Version 1.13.15.
[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 # rjones <rjones@redhat.com>, 2011.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: libguestfs\n"
9 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
10 "POT-Creation-Date: 2011-09-28 21:49+0200\n"
11 "PO-Revision-Date: 2011-07-17 20:50+0000\n"
12 "Last-Translator: rjones <rjones@redhat.com>\n"
13 "Language-Team: Japanese (http://www.transifex.net/projects/p/fedora/team/"
14 "ja/)\n"
15 "Language: ja\n"
16 "MIME-Version: 1.0\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19 "Plural-Forms: nplurals=1; plural=0\n"
20
21 #. type: =head1
22 #: ../cat/virt-cat.pod:3 ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3
23 #: ../df/virt-df.pod:3 ../edit/virt-edit.pod:3
24 #: ../erlang/examples/guestfs-erlang.pod:3 ../examples/guestfs-examples.pod:3
25 #: ../examples/guestfs-recipes.pod:14 ../fish/guestfish.pod:3
26 #: ../fish/virt-copy-in.pod:3 ../fish/virt-copy-out.pod:3
27 #: ../fish/virt-tar-in.pod:3 ../fish/virt-tar-out.pod:3
28 #: ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pod:3
29 #: ../java/examples/guestfs-java.pod:3 ../ocaml/examples/guestfs-ocaml.pod:3
30 #: ../perl/examples/guestfs-perl.pod:3 ../python/examples/guestfs-python.pod:3
31 #: ../rescue/virt-rescue.pod:3 ../resize/virt-resize.pod:3
32 #: ../ruby/examples/guestfs-ruby.pod:3 ../src/guestfs.pod:3
33 #: ../test-tool/libguestfs-test-tool.pod:3
34 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
35 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
36 #: ../tools/virt-win-reg.pl:35
37 msgid "NAME"
38 msgstr "名前"
39
40 #. type: textblock
41 #: ../cat/virt-cat.pod:5
42 msgid "virt-cat - Display files in a virtual machine"
43 msgstr ""
44
45 #. type: =head1
46 #: ../cat/virt-cat.pod:7 ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7
47 #: ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
48 #: ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7
49 #: ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7
50 #: ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7
51 #: ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7
52 #: ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7
53 #: ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7
54 #: ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7
55 #: ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7
56 #: ../src/guestfs.pod:7 ../test-tool/libguestfs-test-tool.pod:7
57 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
58 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
59 #: ../tools/virt-win-reg.pl:39
60 msgid "SYNOPSIS"
61 msgstr ""
62
63 #. type: verbatim
64 #: ../cat/virt-cat.pod:9
65 #, no-wrap
66 msgid ""
67 " virt-cat [--options] -d domname file [file ...]\n"
68 "\n"
69 msgstr ""
70
71 #. type: verbatim
72 #: ../cat/virt-cat.pod:11
73 #, no-wrap
74 msgid ""
75 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
76 "\n"
77 msgstr ""
78
79 #. type: textblock
80 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
81 #: ../inspector/virt-inspector.pod:13
82 msgid "Old-style:"
83 msgstr ""
84
85 #. type: verbatim
86 #: ../cat/virt-cat.pod:15
87 #, no-wrap
88 msgid ""
89 " virt-cat domname file\n"
90 "\n"
91 msgstr ""
92
93 #. type: verbatim
94 #: ../cat/virt-cat.pod:17
95 #, no-wrap
96 msgid ""
97 " virt-cat disk.img file\n"
98 "\n"
99 msgstr ""
100
101 #. type: =head1
102 #: ../cat/virt-cat.pod:19 ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
103 #: ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
104 #: ../erlang/examples/guestfs-erlang.pod:16
105 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
106 #: ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19
107 #: ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21
108 #: ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20
109 #: ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15
110 #: ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18
111 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29
112 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
113 #: ../src/guestfs.pod:23 ../test-tool/libguestfs-test-tool.pod:11
114 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
115 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
116 #: ../tools/virt-win-reg.pl:63
117 msgid "DESCRIPTION"
118 msgstr ""
119
120 #. type: textblock
121 #: ../cat/virt-cat.pod:21
122 msgid ""
123 "C<virt-cat> is a command line tool to display the contents of C<file> where "
124 "C<file> exists in the named virtual machine (or disk image)."
125 msgstr ""
126
127 #. type: textblock
128 #: ../cat/virt-cat.pod:24
129 msgid ""
130 "Multiple filenames can be given, in which case they are concatenated "
131 "together.  Each filename must be a full path, starting at the root directory "
132 "(starting with '/')."
133 msgstr ""
134
135 #. type: textblock
136 #: ../cat/virt-cat.pod:28
137 msgid ""
138 "C<virt-cat> can be used to quickly view a file.  To edit a file, use C<virt-"
139 "edit>.  For more complex cases you should look at the L<guestfish(1)> tool "
140 "(see L</USING GUESTFISH> below)."
141 msgstr ""
142
143 #. type: =head1
144 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
145 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
146 #: ../fish/guestfish.pod:1018 ../fish/virt-copy-in.pod:29
147 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
148 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
149 #: ../resize/virt-resize.pod:27 ../tools/virt-tar.pl:50
150 msgid "EXAMPLES"
151 msgstr ""
152
153 #. type: textblock
154 #: ../cat/virt-cat.pod:34
155 msgid ""
156 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
157 msgstr ""
158
159 #. type: verbatim
160 #: ../cat/virt-cat.pod:37
161 #, no-wrap
162 msgid ""
163 " virt-cat -d mydomain /etc/fstab\n"
164 "\n"
165 msgstr ""
166
167 #. type: textblock
168 #: ../cat/virt-cat.pod:39
169 msgid "List syslog messages from a VM disk image file:"
170 msgstr ""
171
172 #. type: verbatim
173 #: ../cat/virt-cat.pod:41
174 #, no-wrap
175 msgid ""
176 " virt-cat -a disk.img /var/log/messages | tail\n"
177 "\n"
178 msgstr ""
179
180 #. type: textblock
181 #: ../cat/virt-cat.pod:43
182 msgid "Find out what DHCP IP address a VM acquired:"
183 msgstr ""
184
185 #. type: verbatim
186 #: ../cat/virt-cat.pod:45
187 #, no-wrap
188 msgid ""
189 " virt-cat -d mydomain /var/log/messages | \\\n"
190 "   grep 'dhclient: bound to' | tail\n"
191 "\n"
192 msgstr ""
193
194 #. type: textblock
195 #: ../cat/virt-cat.pod:48
196 msgid "Find out what packages were recently installed:"
197 msgstr ""
198
199 #. type: verbatim
200 #: ../cat/virt-cat.pod:50
201 #, no-wrap
202 msgid ""
203 " virt-cat -d mydomain /var/log/yum.log | tail\n"
204 "\n"
205 msgstr ""
206
207 #. type: textblock
208 #: ../cat/virt-cat.pod:52
209 msgid "Find out who is logged on inside a virtual machine:"
210 msgstr ""
211
212 #. type: verbatim
213 #: ../cat/virt-cat.pod:54
214 #, no-wrap
215 msgid ""
216 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
217 " who /tmp/utmp\n"
218 "\n"
219 msgstr ""
220
221 #. type: textblock
222 #: ../cat/virt-cat.pod:57
223 msgid "or who was logged on:"
224 msgstr ""
225
226 #. type: verbatim
227 #: ../cat/virt-cat.pod:59
228 #, no-wrap
229 msgid ""
230 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
231 " last -f /tmp/wtmp\n"
232 "\n"
233 msgstr ""
234
235 #. type: =head1
236 #: ../cat/virt-cat.pod:62 ../cat/virt-filesystems.pod:91
237 #: ../cat/virt-ls.pod:261 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
238 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
239 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
240 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:83
241 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84
242 #: ../resize/virt-resize.pod:241 ../test-tool/libguestfs-test-tool.pod:36
243 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
244 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
245 #: ../tools/virt-win-reg.pl:96
246 msgid "OPTIONS"
247 msgstr ""
248
249 #. type: =item
250 #: ../cat/virt-cat.pod:66 ../cat/virt-filesystems.pod:95
251 #: ../cat/virt-ls.pod:265 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
252 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:151
253 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88
254 #: ../resize/virt-resize.pod:245 ../test-tool/libguestfs-test-tool.pod:40
255 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
256 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
257 #: ../tools/virt-win-reg.pl:104
258 msgid "B<--help>"
259 msgstr ""
260
261 #. type: textblock
262 #: ../cat/virt-cat.pod:68 ../cat/virt-filesystems.pod:97
263 #: ../cat/virt-ls.pod:267 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
264 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90
265 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
266 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
267 #: ../tools/virt-win-reg.pl:106
268 msgid "Display brief help."
269 msgstr ""
270
271 #. type: =item
272 #: ../cat/virt-cat.pod:70 ../cat/virt-filesystems.pod:99
273 #: ../cat/virt-ls.pod:269 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
274 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
275 msgid "B<-a> file"
276 msgstr ""
277
278 #. type: =item
279 #: ../cat/virt-cat.pod:72 ../cat/virt-filesystems.pod:101
280 #: ../cat/virt-ls.pod:271 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
281 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
282 msgid "B<--add> file"
283 msgstr ""
284
285 #. type: textblock
286 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
287 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
288 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
289 msgid ""
290 "Add I<file> which should be a disk image from a virtual machine.  If the "
291 "virtual machine has multiple block devices, you must supply all of them with "
292 "separate I<-a> options."
293 msgstr ""
294
295 #. type: textblock
296 #: ../cat/virt-cat.pod:78 ../cat/virt-filesystems.pod:107
297 #: ../cat/virt-ls.pod:277 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
298 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:93
299 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
300 msgid ""
301 "The format of the disk image is auto-detected.  To override this and force a "
302 "particular format use the I<--format=..> option."
303 msgstr ""
304
305 #. type: =item
306 #: ../cat/virt-cat.pod:81 ../cat/virt-filesystems.pod:125
307 #: ../cat/virt-ls.pod:291 ../df/virt-df.pod:78 ../rescue/virt-rescue.pod:107
308 msgid "B<-c> URI"
309 msgstr ""
310
311 #. type: =item
312 #: ../cat/virt-cat.pod:83 ../cat/virt-filesystems.pod:127
313 #: ../cat/virt-ls.pod:293 ../df/virt-df.pod:80 ../rescue/virt-rescue.pod:109
314 msgid "B<--connect> URI"
315 msgstr ""
316
317 #. type: textblock
318 #: ../cat/virt-cat.pod:85 ../cat/virt-filesystems.pod:129
319 #: ../cat/virt-ls.pod:295 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
320 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111
321 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
322 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
323 msgid ""
324 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
325 "to the default libvirt hypervisor."
326 msgstr ""
327
328 #. type: textblock
329 #: ../cat/virt-cat.pod:88 ../cat/virt-filesystems.pod:132
330 #: ../cat/virt-ls.pod:298 ../df/virt-df.pod:85 ../rescue/virt-rescue.pod:114
331 msgid ""
332 "If you specify guest block devices directly (I<-a>), then libvirt is not "
333 "used at all."
334 msgstr ""
335
336 #. type: =item
337 #: ../cat/virt-cat.pod:91 ../cat/virt-filesystems.pod:141
338 #: ../cat/virt-ls.pod:307 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
339 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
340 msgid "B<-d> guest"
341 msgstr ""
342
343 #. type: =item
344 #: ../cat/virt-cat.pod:93 ../cat/virt-filesystems.pod:143
345 #: ../cat/virt-ls.pod:309 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
346 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
347 msgid "B<--domain> guest"
348 msgstr ""
349
350 #. type: textblock
351 #: ../cat/virt-cat.pod:95 ../cat/virt-filesystems.pod:145
352 #: ../cat/virt-ls.pod:311 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
353 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
354 msgid ""
355 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
356 "instead of names."
357 msgstr ""
358
359 #. type: =item
360 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
361 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
362 #: ../fuse/guestmount.pod:126 ../inspector/virt-inspector.pod:92
363 msgid "B<--echo-keys>"
364 msgstr ""
365
366 #. type: textblock
367 #: ../cat/virt-cat.pod:100
368 msgid ""
369 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
370 "so you cannot see what you are typing.  If you are not worried about Tempest "
371 "attacks and there is no one else in the room you can specify this flag to "
372 "see what you are typing."
373 msgstr ""
374
375 #. type: =item
376 #: ../cat/virt-cat.pod:105 ../cat/virt-filesystems.pod:170
377 #: ../cat/virt-ls.pod:328 ../df/virt-df.pod:101 ../fish/guestfish.pod:233
378 #: ../fuse/guestmount.pod:133 ../inspector/virt-inspector.pod:99
379 #: ../rescue/virt-rescue.pod:124
380 msgid "B<--format=raw|qcow2|..>"
381 msgstr ""
382
383 #. type: =item
384 #: ../cat/virt-cat.pod:107 ../cat/virt-filesystems.pod:172
385 #: ../cat/virt-ls.pod:330 ../df/virt-df.pod:103 ../edit/virt-edit.pod:134
386 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:135
387 #: ../inspector/virt-inspector.pod:101 ../rescue/virt-rescue.pod:126
388 msgid "B<--format>"
389 msgstr ""
390
391 #. type: textblock
392 #: ../cat/virt-cat.pod:109 ../cat/virt-filesystems.pod:174
393 #: ../cat/virt-ls.pod:332 ../df/virt-df.pod:105 ../edit/virt-edit.pod:136
394 #: ../fish/guestfish.pod:237 ../fuse/guestmount.pod:137
395 #: ../rescue/virt-rescue.pod:128
396 msgid ""
397 "The default for the I<-a> option is to auto-detect the format of the disk "
398 "image.  Using this forces the disk format for I<-a> options which follow on "
399 "the command line.  Using I<--format> with no argument switches back to auto-"
400 "detection for subsequent I<-a> options."
401 msgstr ""
402
403 #. type: textblock
404 #: ../cat/virt-cat.pod:114 ../cat/virt-filesystems.pod:179
405 #: ../cat/virt-ls.pod:337 ../df/virt-df.pod:110 ../edit/virt-edit.pod:141
406 #: ../fish/guestfish.pod:242 ../fish/guestfish.pod:673
407 #: ../inspector/virt-inspector.pod:336 ../rescue/virt-rescue.pod:133
408 #: ../src/guestfs.pod:2788
409 msgid "For example:"
410 msgstr ""
411
412 #. type: verbatim
413 #: ../cat/virt-cat.pod:116
414 #, no-wrap
415 msgid ""
416 " virt-cat --format=raw -a disk.img file\n"
417 "\n"
418 msgstr ""
419
420 #. type: textblock
421 #: ../cat/virt-cat.pod:118 ../cat/virt-filesystems.pod:183
422 #: ../cat/virt-ls.pod:341 ../df/virt-df.pod:114 ../edit/virt-edit.pod:145
423 #: ../fish/guestfish.pod:246 ../rescue/virt-rescue.pod:137
424 msgid "forces raw format (no auto-detection) for C<disk.img>."
425 msgstr ""
426
427 #. type: verbatim
428 #: ../cat/virt-cat.pod:120
429 #, no-wrap
430 msgid ""
431 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
432 "\n"
433 msgstr ""
434
435 #. type: textblock
436 #: ../cat/virt-cat.pod:122 ../cat/virt-filesystems.pod:187
437 #: ../cat/virt-ls.pod:345 ../df/virt-df.pod:118 ../edit/virt-edit.pod:149
438 #: ../fish/guestfish.pod:250 ../rescue/virt-rescue.pod:141
439 msgid ""
440 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
441 "detection for C<another.img>."
442 msgstr ""
443
444 #. type: textblock
445 #: ../cat/virt-cat.pod:125 ../cat/virt-filesystems.pod:190
446 #: ../cat/virt-ls.pod:348 ../df/virt-df.pod:121 ../edit/virt-edit.pod:152
447 #: ../rescue/virt-rescue.pod:144
448 msgid ""
449 "If you have untrusted raw-format guest disk images, you should use this "
450 "option to specify the disk format.  This avoids a possible security problem "
451 "with malicious guests (CVE-2010-3851)."
452 msgstr ""
453
454 #. type: =item
455 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
456 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
457 #: ../fuse/guestmount.pod:163 ../inspector/virt-inspector.pod:114
458 msgid "B<--keys-from-stdin>"
459 msgstr ""
460
461 #. type: textblock
462 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
463 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
464 #: ../fuse/guestmount.pod:165 ../inspector/virt-inspector.pod:116
465 msgid ""
466 "Read key or passphrase parameters from stdin.  The default is to try to read "
467 "passphrases from the user by opening C</dev/tty>."
468 msgstr ""
469
470 #. type: =item
471 #: ../cat/virt-cat.pod:134 ../cat/virt-filesystems.pod:261
472 #: ../cat/virt-ls.pod:425 ../df/virt-df.pod:173 ../edit/virt-edit.pod:161
473 #: ../fish/guestfish.pod:390 ../fuse/guestmount.pod:257
474 #: ../inspector/virt-inspector.pod:119 ../rescue/virt-rescue.pod:182
475 msgid "B<-v>"
476 msgstr ""
477
478 #. type: =item
479 #: ../cat/virt-cat.pod:136 ../cat/virt-filesystems.pod:263
480 #: ../cat/virt-ls.pod:427 ../df/virt-df.pod:175 ../edit/virt-edit.pod:163
481 #: ../fish/guestfish.pod:392 ../fuse/guestmount.pod:259
482 #: ../inspector/virt-inspector.pod:121 ../rescue/virt-rescue.pod:184
483 msgid "B<--verbose>"
484 msgstr ""
485
486 #. type: textblock
487 #: ../cat/virt-cat.pod:138 ../cat/virt-filesystems.pod:265
488 #: ../cat/virt-ls.pod:429 ../df/virt-df.pod:177 ../edit/virt-edit.pod:165
489 #: ../inspector/virt-inspector.pod:123 ../rescue/virt-rescue.pod:186
490 msgid "Enable verbose messages for debugging."
491 msgstr ""
492
493 #. type: =item
494 #: ../cat/virt-cat.pod:140 ../cat/virt-filesystems.pod:267
495 #: ../cat/virt-ls.pod:431 ../df/virt-df.pod:179 ../edit/virt-edit.pod:167
496 #: ../fish/guestfish.pod:397 ../fuse/guestmount.pod:263
497 #: ../inspector/virt-inspector.pod:125 ../rescue/virt-rescue.pod:188
498 #: ../resize/virt-resize.pod:484
499 msgid "B<-V>"
500 msgstr ""
501
502 #. type: =item
503 #: ../cat/virt-cat.pod:142 ../cat/virt-filesystems.pod:269
504 #: ../cat/virt-ls.pod:433 ../df/virt-df.pod:181 ../edit/virt-edit.pod:169
505 #: ../fish/guestfish.pod:399 ../fuse/guestmount.pod:265
506 #: ../inspector/virt-inspector.pod:127 ../rescue/virt-rescue.pod:190
507 #: ../resize/virt-resize.pod:486 ../tools/virt-list-filesystems.pl:69
508 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
509 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
510 msgid "B<--version>"
511 msgstr ""
512
513 #. type: textblock
514 #: ../cat/virt-cat.pod:144 ../cat/virt-filesystems.pod:271
515 #: ../cat/virt-ls.pod:435 ../df/virt-df.pod:183 ../edit/virt-edit.pod:171
516 #: ../inspector/virt-inspector.pod:129 ../rescue/virt-rescue.pod:192
517 #: ../resize/virt-resize.pod:488 ../tools/virt-list-filesystems.pl:71
518 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
519 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
520 msgid "Display version number and exit."
521 msgstr ""
522
523 #. type: =item
524 #: ../cat/virt-cat.pod:146 ../cat/virt-filesystems.pod:281
525 #: ../cat/virt-ls.pod:437 ../df/virt-df.pod:185 ../edit/virt-edit.pod:173
526 #: ../fish/guestfish.pod:412 ../fuse/guestmount.pod:278
527 #: ../inspector/virt-inspector.pod:131 ../rescue/virt-rescue.pod:203
528 #: ../tools/virt-tar.pl:158
529 msgid "B<-x>"
530 msgstr ""
531
532 #. type: textblock
533 #: ../cat/virt-cat.pod:148 ../cat/virt-filesystems.pod:283
534 #: ../cat/virt-ls.pod:439 ../df/virt-df.pod:187 ../edit/virt-edit.pod:175
535 #: ../inspector/virt-inspector.pod:133 ../rescue/virt-rescue.pod:205
536 msgid "Enable tracing of libguestfs API calls."
537 msgstr ""
538
539 #. type: =head1
540 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
541 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:209
542 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
543 msgstr ""
544
545 #. type: textblock
546 #: ../cat/virt-cat.pod:154
547 msgid "Previous versions of virt-cat allowed you to write either:"
548 msgstr ""
549
550 #. type: verbatim
551 #: ../cat/virt-cat.pod:156
552 #, no-wrap
553 msgid ""
554 " virt-cat disk.img [disk.img ...] file\n"
555 "\n"
556 msgstr ""
557
558 #. type: textblock
559 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
560 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:215
561 msgid "or"
562 msgstr ""
563
564 #. type: verbatim
565 #: ../cat/virt-cat.pod:160
566 #, no-wrap
567 msgid ""
568 " virt-cat guestname file\n"
569 "\n"
570 msgstr ""
571
572 #. type: textblock
573 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
574 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:219
575 msgid ""
576 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
577 "the confusing case where a disk image might have the same name as a guest."
578 msgstr ""
579
580 #. type: textblock
581 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
582 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:223
583 msgid "For compatibility the old style is still supported."
584 msgstr ""
585
586 #. type: =head1
587 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
588 msgid "USING GUESTFISH"
589 msgstr ""
590
591 #. type: textblock
592 #: ../cat/virt-cat.pod:170
593 msgid ""
594 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
595 "C<virt-cat> doesn't work."
596 msgstr ""
597
598 #. type: textblock
599 #: ../cat/virt-cat.pod:173
600 msgid "Using C<virt-cat> is approximately equivalent to doing:"
601 msgstr ""
602
603 #. type: verbatim
604 #: ../cat/virt-cat.pod:175
605 #, no-wrap
606 msgid ""
607 " guestfish --ro -i -d domname download file -\n"
608 "\n"
609 msgstr ""
610
611 #. type: textblock
612 #: ../cat/virt-cat.pod:177
613 msgid ""
614 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
615 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
616 msgstr ""
617
618 #. type: textblock
619 #: ../cat/virt-cat.pod:181
620 msgid ""
621 "The command above uses libguestfs's guest inspection feature and so does not "
622 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
623 "disk images that don't contain guests.  To display a file from a disk image "
624 "directly, use:"
625 msgstr ""
626
627 #. type: verbatim
628 #: ../cat/virt-cat.pod:186
629 #, no-wrap
630 msgid ""
631 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
632 "\n"
633 msgstr ""
634
635 #. type: textblock
636 #: ../cat/virt-cat.pod:188
637 msgid ""
638 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
639 "the disk image, and C<file> is the full path to the file."
640 msgstr ""
641
642 #. type: =head1
643 #: ../cat/virt-cat.pod:191 ../cat/virt-filesystems.pod:365
644 #: ../cat/virt-ls.pod:483 ../df/virt-df.pod:215 ../edit/virt-edit.pod:342
645 #: ../inspector/virt-inspector.pod:352 ../rescue/virt-rescue.pod:266
646 #: ../resize/virt-resize.pod:601 ../tools/virt-list-filesystems.pl:188
647 #: ../tools/virt-list-partitions.pl:258 ../tools/virt-make-fs.pl:532
648 #: ../tools/virt-tar.pl:289 ../tools/virt-win-reg.pl:733
649 msgid "SHELL QUOTING"
650 msgstr ""
651
652 #. type: textblock
653 #: ../cat/virt-cat.pod:193 ../cat/virt-filesystems.pod:367
654 #: ../cat/virt-ls.pod:485 ../df/virt-df.pod:217 ../edit/virt-edit.pod:344
655 #: ../inspector/virt-inspector.pod:354 ../rescue/virt-rescue.pod:268
656 #: ../resize/virt-resize.pod:603 ../tools/virt-list-filesystems.pl:190
657 #: ../tools/virt-list-partitions.pl:260 ../tools/virt-make-fs.pl:534
658 #: ../tools/virt-tar.pl:291 ../tools/virt-win-reg.pl:741
659 msgid ""
660 "Libvirt guest names can contain arbitrary characters, some of which have "
661 "meaning to the shell such as C<#> and space.  You may need to quote or "
662 "escape these characters on the command line.  See the shell manual page L<sh"
663 "(1)> for details."
664 msgstr ""
665
666 #. type: =head1
667 #: ../cat/virt-cat.pod:198 ../cat/virt-filesystems.pod:372
668 #: ../cat/virt-ls.pod:490 ../df/virt-df.pod:222 ../edit/virt-edit.pod:349
669 #: ../fish/guestfish.pod:1081 ../fuse/guestmount.pod:303
670 #: ../inspector/virt-inspector.pod:375 ../resize/virt-resize.pod:608
671 #: ../test-tool/libguestfs-test-tool.pod:90
672 msgid "EXIT STATUS"
673 msgstr ""
674
675 #. type: textblock
676 #: ../cat/virt-cat.pod:200 ../cat/virt-filesystems.pod:374
677 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
678 #: ../fuse/guestmount.pod:305 ../inspector/virt-inspector.pod:377
679 #: ../resize/virt-resize.pod:610
680 msgid ""
681 "This program returns 0 if successful, or non-zero if there was an error."
682 msgstr ""
683
684 #. type: =head1
685 #: ../cat/virt-cat.pod:203 ../cat/virt-filesystems.pod:377
686 #: ../cat/virt-ls.pod:495 ../df/virt-df.pod:227 ../edit/virt-edit.pod:354
687 #: ../erlang/examples/guestfs-erlang.pod:97
688 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
689 #: ../fish/guestfish.pod:1235 ../fish/virt-copy-in.pod:50
690 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
691 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:308
692 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45
693 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
694 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288
695 #: ../resize/virt-resize.pod:613 ../ruby/examples/guestfs-ruby.pod:36
696 #: ../src/guestfs.pod:3164 ../test-tool/libguestfs-test-tool.pod:100
697 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
698 #: ../tools/virt-make-fs.pl:539 ../tools/virt-tar.pl:296
699 #: ../tools/virt-win-reg.pl:746
700 msgid "SEE ALSO"
701 msgstr ""
702
703 #. type: textblock
704 #: ../cat/virt-cat.pod:205
705 msgid ""
706 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
707 "tar-out(1)>, L<http://libguestfs.org/>."
708 msgstr ""
709
710 #. type: =head1
711 #: ../cat/virt-cat.pod:212 ../cat/virt-filesystems.pod:388
712 #: ../cat/virt-ls.pod:507 ../df/virt-df.pod:235 ../edit/virt-edit.pod:368
713 #: ../rescue/virt-rescue.pod:296 ../resize/virt-resize.pod:634
714 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
715 #: ../tools/virt-make-fs.pl:564 ../tools/virt-tar.pl:311
716 #: ../tools/virt-win-reg.pl:772
717 msgid "AUTHOR"
718 msgstr ""
719
720 #. type: textblock
721 #: ../cat/virt-cat.pod:214 ../cat/virt-filesystems.pod:390
722 #: ../cat/virt-ls.pod:509 ../df/virt-df.pod:237 ../edit/virt-edit.pod:370
723 #: ../inspector/virt-inspector.pod:395 ../rescue/virt-rescue.pod:298
724 #: ../resize/virt-resize.pod:636 ../tools/virt-list-filesystems.pl:210
725 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:566
726 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:774
727 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
728 msgstr ""
729
730 #. type: =head1
731 #: ../cat/virt-cat.pod:216 ../cat/virt-filesystems.pod:392
732 #: ../cat/virt-ls.pod:511 ../df/virt-df.pod:239 ../edit/virt-edit.pod:372
733 #: ../erlang/examples/guestfs-erlang.pod:114
734 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
735 #: ../fish/guestfish.pod:1264 ../fish/virt-copy-in.pod:64
736 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
737 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:323
738 #: ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:62
739 #: ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56
740 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300
741 #: ../resize/virt-resize.pod:638 ../ruby/examples/guestfs-ruby.pod:52
742 #: ../src/guestfs.pod:3241 ../test-tool/libguestfs-test-tool.pod:110
743 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
744 #: ../tools/virt-make-fs.pl:568 ../tools/virt-tar.pl:315
745 #: ../tools/virt-win-reg.pl:776
746 msgid "COPYRIGHT"
747 msgstr ""
748
749 #. type: textblock
750 #: ../cat/virt-cat.pod:218 ../inspector/virt-inspector.pod:405
751 #: ../resize/virt-resize.pod:640
752 msgid "Copyright (C) 2010-2011 Red Hat Inc."
753 msgstr ""
754
755 #. type: textblock
756 #: ../cat/virt-cat.pod:220 ../cat/virt-filesystems.pod:396
757 #: ../cat/virt-ls.pod:515 ../df/virt-df.pod:243 ../edit/virt-edit.pod:376
758 #: ../fish/guestfish.pod:1269 ../fish/virt-copy-in.pod:69
759 #: ../fish/virt-copy-out.pod:58 ../fish/virt-tar-in.pod:67
760 #: ../fish/virt-tar-out.pod:60 ../fuse/guestmount.pod:328
761 #: ../inspector/virt-inspector.pod:407 ../rescue/virt-rescue.pod:304
762 #: ../resize/virt-resize.pod:642 ../test-tool/libguestfs-test-tool.pod:115
763 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
764 #: ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319
765 #: ../tools/virt-win-reg.pl:780
766 msgid ""
767 "This program is free software; you can redistribute it and/or modify it "
768 "under the terms of the GNU General Public License as published by the Free "
769 "Software Foundation; either version 2 of the License, or (at your option) "
770 "any later version."
771 msgstr ""
772
773 #. type: textblock
774 #: ../cat/virt-cat.pod:225 ../cat/virt-filesystems.pod:401
775 #: ../cat/virt-ls.pod:520 ../df/virt-df.pod:248 ../edit/virt-edit.pod:381
776 #: ../fish/guestfish.pod:1274 ../fish/virt-copy-in.pod:74
777 #: ../fish/virt-copy-out.pod:63 ../fish/virt-tar-in.pod:72
778 #: ../fish/virt-tar-out.pod:65 ../fuse/guestmount.pod:333
779 #: ../inspector/virt-inspector.pod:412 ../rescue/virt-rescue.pod:309
780 #: ../resize/virt-resize.pod:647 ../test-tool/libguestfs-test-tool.pod:120
781 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
782 #: ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324
783 #: ../tools/virt-win-reg.pl:785
784 msgid ""
785 "This program is distributed in the hope that it will be useful, but WITHOUT "
786 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
787 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
788 "more details."
789 msgstr ""
790
791 #. type: textblock
792 #: ../cat/virt-cat.pod:230 ../cat/virt-filesystems.pod:406
793 #: ../cat/virt-ls.pod:525 ../df/virt-df.pod:253 ../edit/virt-edit.pod:386
794 #: ../fish/guestfish.pod:1279 ../fish/virt-copy-in.pod:79
795 #: ../fish/virt-copy-out.pod:68 ../fish/virt-tar-in.pod:77
796 #: ../fish/virt-tar-out.pod:70 ../fuse/guestmount.pod:338
797 #: ../inspector/virt-inspector.pod:417 ../rescue/virt-rescue.pod:314
798 #: ../resize/virt-resize.pod:652 ../test-tool/libguestfs-test-tool.pod:125
799 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
800 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329
801 #: ../tools/virt-win-reg.pl:790
802 msgid ""
803 "You should have received a copy of the GNU General Public License along with "
804 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
805 "Ave, Cambridge, MA 02139, USA."
806 msgstr ""
807
808 #. type: textblock
809 #: ../cat/virt-filesystems.pod:5
810 msgid ""
811 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
812 "virtual machine or disk image"
813 msgstr ""
814
815 #. type: verbatim
816 #: ../cat/virt-filesystems.pod:9
817 #, no-wrap
818 msgid ""
819 " virt-filesystems [--options] -d domname\n"
820 "\n"
821 msgstr ""
822
823 #. type: verbatim
824 #: ../cat/virt-filesystems.pod:11
825 #, no-wrap
826 msgid ""
827 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
828 "\n"
829 msgstr ""
830
831 #. type: textblock
832 #: ../cat/virt-filesystems.pod:15
833 msgid ""
834 "This tool allows you to discover filesystems, partitions, logical volumes, "
835 "and their sizes in a disk image or virtual machine.  It is a replacement for "
836 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
837 msgstr ""
838
839 #. type: textblock
840 #: ../cat/virt-filesystems.pod:20
841 msgid ""
842 "One use for this tool is from shell scripts to iterate over all filesystems "
843 "from a disk image:"
844 msgstr ""
845
846 #. type: verbatim
847 #: ../cat/virt-filesystems.pod:23
848 #, no-wrap
849 msgid ""
850 " for fs in $(virt-filesystems -a disk.img); do\n"
851 "   # ...\n"
852 " done\n"
853 "\n"
854 msgstr ""
855
856 #. type: textblock
857 #: ../cat/virt-filesystems.pod:27
858 msgid ""
859 "Another use is to list partitions before using another tool to modify those "
860 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
861 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
862 msgstr ""
863
864 #. type: textblock
865 #: ../cat/virt-filesystems.pod:32
866 msgid ""
867 "Various command line options control what this program displays.  You need "
868 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
869 "guest respectively.  If you just specify that then the program shows "
870 "filesystems found, one per line, like this:"
871 msgstr ""
872
873 #. type: verbatim
874 #: ../cat/virt-filesystems.pod:37
875 #, no-wrap
876 msgid ""
877 " $ virt-filesystems -a disk.img\n"
878 " /dev/sda1\n"
879 " /dev/vg_guest/lv_root\n"
880 "\n"
881 msgstr ""
882
883 #. type: textblock
884 #: ../cat/virt-filesystems.pod:41
885 msgid ""
886 "If you add I<-l> or I<--long> then the output includes extra information:"
887 msgstr ""
888
889 #. type: verbatim
890 #: ../cat/virt-filesystems.pod:44
891 #, no-wrap
892 msgid ""
893 " $ virt-filesystems -a disk.img -l\n"
894 " Name                   Type         VFS   Label  Size\n"
895 " /dev/sda1              filesystem   ext4  boot   524288000\n"
896 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
897 "\n"
898 msgstr ""
899
900 #. type: textblock
901 #: ../cat/virt-filesystems.pod:49
902 msgid ""
903 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
904 "shown as well:"
905 msgstr ""
906
907 #. type: verbatim
908 #: ../cat/virt-filesystems.pod:52
909 #, no-wrap
910 msgid ""
911 " $ virt-filesystems -a disk.img --extra\n"
912 " /dev/sda1\n"
913 " /dev/vg_guest/lv_root\n"
914 " /dev/vg_guest/lv_swap\n"
915 " /dev/vg_guest/lv_data\n"
916 "\n"
917 msgstr ""
918
919 #. type: textblock
920 #: ../cat/virt-filesystems.pod:58
921 msgid ""
922 "If you add I<--partitions> then partitions are shown instead of filesystems:"
923 msgstr ""
924
925 #. type: verbatim
926 #: ../cat/virt-filesystems.pod:60
927 #, no-wrap
928 msgid ""
929 " $ virt-filesystems -a disk.img --partitions\n"
930 " /dev/sda1\n"
931 " /dev/sda2\n"
932 "\n"
933 msgstr ""
934
935 #. type: textblock
936 #: ../cat/virt-filesystems.pod:64
937 msgid ""
938 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
939 "volumes>, I<--block-devices> to list those items."
940 msgstr ""
941
942 #. type: textblock
943 #: ../cat/virt-filesystems.pod:67
944 msgid ""
945 "You can use these options in combination as well (if you want a combination "
946 "including filesystems, you have to add I<--filesystems>).  Notice that some "
947 "items fall into several categories (eg. C</dev/sda1> might be both a "
948 "partition and a filesystem).  These items are listed several times.  To get "
949 "a list which includes absolutely everything that virt-filesystems knows "
950 "about, use the I<--all> option."
951 msgstr ""
952
953 #. type: textblock
954 #: ../cat/virt-filesystems.pod:74
955 msgid ""
956 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
957 "uuid> option to display device and filesystem UUIDs in the long output."
958 msgstr ""
959
960 #. type: textblock
961 #: ../cat/virt-filesystems.pod:78
962 msgid ""
963 "I<--all --long --uuid> is a useful combination to display all possible "
964 "information about everything."
965 msgstr ""
966
967 #. type: verbatim
968 #: ../cat/virt-filesystems.pod:81
969 #, no-wrap
970 msgid ""
971 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
972 " Name      Type       VFS  Label           Size Parent   UUID\n"
973 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
974 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
975 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
976 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
977 " /dev/sda  device     -    -               20G  -        -\n"
978 "\n"
979 msgstr ""
980
981 #. type: textblock
982 #: ../cat/virt-filesystems.pod:89
983 msgid ""
984 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
985 msgstr ""
986
987 #. type: =item
988 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
989 msgid "B<--all>"
990 msgstr ""
991
992 #. type: textblock
993 #: ../cat/virt-filesystems.pod:112
994 msgid ""
995 "Display everything.  This is currently the same as specifying these options: "
996 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
997 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
998 "added to this list in future)."
999 msgstr ""
1000
1001 #. type: textblock
1002 #: ../cat/virt-filesystems.pod:117
1003 msgid "See also I<--long>."
1004 msgstr ""
1005
1006 #. type: =item
1007 #: ../cat/virt-filesystems.pod:119
1008 msgid "B<--blkdevs>"
1009 msgstr ""
1010
1011 #. type: =item
1012 #: ../cat/virt-filesystems.pod:121
1013 msgid "B<--block-devices>"
1014 msgstr ""
1015
1016 #. type: textblock
1017 #: ../cat/virt-filesystems.pod:123
1018 msgid "Display block devices."
1019 msgstr ""
1020
1021 #. type: =item
1022 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1023 msgid "B<--csv>"
1024 msgstr ""
1025
1026 #. type: textblock
1027 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1028 msgid ""
1029 "Write out the results in CSV format (comma-separated values).  This format "
1030 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1031 "ABOUT CSV FORMAT> below."
1032 msgstr ""
1033
1034 #. type: textblock
1035 #: ../cat/virt-filesystems.pod:150
1036 msgid ""
1037 "When prompting for keys and passphrases, virt-filesystems normally turns "
1038 "echoing off so you cannot see what you are typing.  If you are not worried "
1039 "about Tempest attacks and there is no one else in the room you can specify "
1040 "this flag to see what you are typing."
1041 msgstr ""
1042
1043 #. type: =item
1044 #: ../cat/virt-filesystems.pod:155
1045 msgid "B<--extra>"
1046 msgstr ""
1047
1048 #. type: textblock
1049 #: ../cat/virt-filesystems.pod:157
1050 msgid ""
1051 "This causes filesystems that are not ordinary, mountable filesystems to be "
1052 "displayed.  This category includes swapspace, and filesystems that are empty "
1053 "or contain unknown data."
1054 msgstr ""
1055
1056 #. type: textblock
1057 #: ../cat/virt-filesystems.pod:161
1058 msgid "This option implies I<--filesystems>."
1059 msgstr ""
1060
1061 #. type: =item
1062 #: ../cat/virt-filesystems.pod:163
1063 msgid "B<--filesystems>"
1064 msgstr ""
1065
1066 #. type: textblock
1067 #: ../cat/virt-filesystems.pod:165
1068 msgid ""
1069 "Display mountable filesystems.  If no display option was selected then this "
1070 "option is implied."
1071 msgstr ""
1072
1073 #. type: textblock
1074 #: ../cat/virt-filesystems.pod:168
1075 msgid "With I<--extra>, non-mountable filesystems are shown too."
1076 msgstr ""
1077
1078 #. type: verbatim
1079 #: ../cat/virt-filesystems.pod:181
1080 #, no-wrap
1081 msgid ""
1082 " virt-filesystems --format=raw -a disk.img\n"
1083 "\n"
1084 msgstr ""
1085
1086 #. type: verbatim
1087 #: ../cat/virt-filesystems.pod:185
1088 #, no-wrap
1089 msgid ""
1090 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1091 "\n"
1092 msgstr ""
1093
1094 #. type: =item
1095 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1096 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1097 #: ../tools/virt-list-partitions.pl:109
1098 msgid "B<-h>"
1099 msgstr ""
1100
1101 #. type: =item
1102 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1103 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1104 msgid "B<--human-readable>"
1105 msgstr ""
1106
1107 #. type: textblock
1108 #: ../cat/virt-filesystems.pod:198
1109 msgid "In I<--long> mode, display sizes in human-readable format."
1110 msgstr ""
1111
1112 #. type: =item
1113 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1114 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1115 msgid "B<-l>"
1116 msgstr ""
1117
1118 #. type: =item
1119 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1120 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1121 msgid "B<--long>"
1122 msgstr ""
1123
1124 #. type: textblock
1125 #: ../cat/virt-filesystems.pod:209
1126 msgid "Display extra columns of data (\"long format\")."
1127 msgstr ""
1128
1129 #. type: textblock
1130 #: ../cat/virt-filesystems.pod:211
1131 msgid "A title row is added unless you also specify I<--no-title>."
1132 msgstr ""
1133
1134 #. type: textblock
1135 #: ../cat/virt-filesystems.pod:213
1136 msgid ""
1137 "The extra columns displayed depend on what output you select, and the "
1138 "ordering of columns may change in future versions.  Use the title row, I<--"
1139 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1140 "programs."
1141 msgstr ""
1142
1143 #. type: textblock
1144 #: ../cat/virt-filesystems.pod:218
1145 msgid ""
1146 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1147 "default is to show raw numbers of I<bytes>."
1148 msgstr ""
1149
1150 #. type: textblock
1151 #: ../cat/virt-filesystems.pod:221
1152 msgid "Use I<--uuid> to display UUIDs too."
1153 msgstr ""
1154
1155 #. type: =item
1156 #: ../cat/virt-filesystems.pod:223
1157 msgid "B<--lvs>"
1158 msgstr ""
1159
1160 #. type: =item
1161 #: ../cat/virt-filesystems.pod:225
1162 msgid "B<--logvols>"
1163 msgstr ""
1164
1165 #. type: =item
1166 #: ../cat/virt-filesystems.pod:227
1167 msgid "B<--logical-volumes>"
1168 msgstr ""
1169
1170 #. type: textblock
1171 #: ../cat/virt-filesystems.pod:229
1172 msgid ""
1173 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1174 "of whether the LVs contain filesystems."
1175 msgstr ""
1176
1177 #. type: =item
1178 #: ../cat/virt-filesystems.pod:232
1179 msgid "B<--no-title>"
1180 msgstr ""
1181
1182 #. type: textblock
1183 #: ../cat/virt-filesystems.pod:234
1184 msgid "In I<--long> mode, don't add a title row."
1185 msgstr ""
1186
1187 #. type: textblock
1188 #: ../cat/virt-filesystems.pod:236
1189 msgid ""
1190 "Note that the order of the columns is not fixed, and may change in future "
1191 "versions of virt-filesystems, so using this option may give you unexpected "
1192 "surprises."
1193 msgstr ""
1194
1195 #. type: =item
1196 #: ../cat/virt-filesystems.pod:240
1197 msgid "B<--parts>"
1198 msgstr ""
1199
1200 #. type: =item
1201 #: ../cat/virt-filesystems.pod:242
1202 msgid "B<--partitions>"
1203 msgstr ""
1204
1205 #. type: textblock
1206 #: ../cat/virt-filesystems.pod:244
1207 msgid ""
1208 "Display partitions.  In this mode, these are displayed irrespective of "
1209 "whether the partitions contain filesystems."
1210 msgstr ""
1211
1212 #. type: =item
1213 #: ../cat/virt-filesystems.pod:247
1214 msgid "B<--pvs>"
1215 msgstr ""
1216
1217 #. type: =item
1218 #: ../cat/virt-filesystems.pod:249
1219 msgid "B<--physvols>"
1220 msgstr ""
1221
1222 #. type: =item
1223 #: ../cat/virt-filesystems.pod:251
1224 msgid "B<--physical-volumes>"
1225 msgstr ""
1226
1227 #. type: textblock
1228 #: ../cat/virt-filesystems.pod:253
1229 msgid "Display LVM physical volumes."
1230 msgstr ""
1231
1232 #. type: =item
1233 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1234 msgid "B<--uuid>"
1235 msgstr ""
1236
1237 #. type: =item
1238 #: ../cat/virt-filesystems.pod:257
1239 msgid "B<--uuids>"
1240 msgstr ""
1241
1242 #. type: textblock
1243 #: ../cat/virt-filesystems.pod:259
1244 msgid "In I<--long> mode, display UUIDs as well."
1245 msgstr ""
1246
1247 #. type: =item
1248 #: ../cat/virt-filesystems.pod:273
1249 msgid "B<--vgs>"
1250 msgstr ""
1251
1252 #. type: =item
1253 #: ../cat/virt-filesystems.pod:275
1254 msgid "B<--volgroups>"
1255 msgstr ""
1256
1257 #. type: =item
1258 #: ../cat/virt-filesystems.pod:277
1259 msgid "B<--volume-groups>"
1260 msgstr ""
1261
1262 #. type: textblock
1263 #: ../cat/virt-filesystems.pod:279
1264 msgid "Display LVM volume groups."
1265 msgstr ""
1266
1267 #. type: =head1
1268 #: ../cat/virt-filesystems.pod:287
1269 msgid "COLUMNS"
1270 msgstr ""
1271
1272 #. type: textblock
1273 #: ../cat/virt-filesystems.pod:289
1274 msgid ""
1275 "Note that columns in the output are subject to reordering and change in "
1276 "future versions of this tool."
1277 msgstr ""
1278
1279 #. type: =item
1280 #: ../cat/virt-filesystems.pod:294
1281 msgid "B<Name>"
1282 msgstr ""
1283
1284 #. type: textblock
1285 #: ../cat/virt-filesystems.pod:296
1286 msgid "The filesystem, partition, block device or LVM name."
1287 msgstr ""
1288
1289 #. type: textblock
1290 #: ../cat/virt-filesystems.pod:298
1291 msgid ""
1292 "For device and partition names these are displayed as canonical libguestfs "
1293 "names, so that for example C</dev/sda2> is the second partition on the first "
1294 "device."
1295 msgstr ""
1296
1297 #. type: textblock
1298 #: ../cat/virt-filesystems.pod:302
1299 msgid ""
1300 "If the I<--long> option is B<not> specified, then only the name column is "
1301 "shown in the output."
1302 msgstr ""
1303
1304 #. type: =item
1305 #: ../cat/virt-filesystems.pod:305
1306 msgid "B<Type>"
1307 msgstr ""
1308
1309 #. type: textblock
1310 #: ../cat/virt-filesystems.pod:307
1311 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1312 msgstr ""
1313
1314 #. type: =item
1315 #: ../cat/virt-filesystems.pod:309
1316 msgid "B<VFS>"
1317 msgstr ""
1318
1319 #. type: textblock
1320 #: ../cat/virt-filesystems.pod:311
1321 msgid ""
1322 "If there is a filesystem, then this column displays the filesystem type if "
1323 "one could be detected, eg. C<ext4>."
1324 msgstr ""
1325
1326 #. type: =item
1327 #: ../cat/virt-filesystems.pod:314
1328 msgid "B<Label>"
1329 msgstr ""
1330
1331 #. type: textblock
1332 #: ../cat/virt-filesystems.pod:316
1333 msgid ""
1334 "If the object has a label (used for identifying and mounting filesystems) "
1335 "then this column contains the label."
1336 msgstr ""
1337
1338 #. type: =item
1339 #: ../cat/virt-filesystems.pod:319
1340 msgid "B<Size>"
1341 msgstr ""
1342
1343 #. type: textblock
1344 #: ../cat/virt-filesystems.pod:321
1345 msgid ""
1346 "The size of the object in bytes.  If the I<--human> option is used then the "
1347 "size is displayed in a human-readable form."
1348 msgstr ""
1349
1350 #. type: =item
1351 #: ../cat/virt-filesystems.pod:324
1352 msgid "B<Parent>"
1353 msgstr ""
1354
1355 #. type: textblock
1356 #: ../cat/virt-filesystems.pod:326
1357 msgid ""
1358 "The parent column records the parent relationship between objects.  For "
1359 "example, if the object is a partition, then this column contains the name of "
1360 "the containing device.  If the object is a logical volume, then this column "
1361 "is the name of the volume group."
1362 msgstr ""
1363
1364 #. type: =item
1365 #: ../cat/virt-filesystems.pod:331
1366 msgid "B<UUID>"
1367 msgstr ""
1368
1369 #. type: textblock
1370 #: ../cat/virt-filesystems.pod:333
1371 msgid ""
1372 "If the object has a UUID (used for identifying and mounting filesystems and "
1373 "block devices) then this column contains the UUID as a string."
1374 msgstr ""
1375
1376 #. type: textblock
1377 #: ../cat/virt-filesystems.pod:337
1378 msgid "The UUID is only displayed if the I<--uuid> option is given."
1379 msgstr ""
1380
1381 #. type: =head1
1382 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459
1383 #: ../df/virt-df.pod:191
1384 msgid "NOTE ABOUT CSV FORMAT"
1385 msgstr ""
1386
1387 #. type: textblock
1388 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461
1389 #: ../df/virt-df.pod:193
1390 msgid ""
1391 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
1392 "should be easy to parse, but it is definitely not easy to parse."
1393 msgstr ""
1394
1395 #. type: textblock
1396 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464
1397 #: ../df/virt-df.pod:196
1398 msgid ""
1399 "Myth: Just split fields at commas.  Reality: This does I<not> work "
1400 "reliably.  This example has two columns:"
1401 msgstr ""
1402
1403 #. type: verbatim
1404 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467
1405 #: ../df/virt-df.pod:199
1406 #, no-wrap
1407 msgid ""
1408 " \"foo,bar\",baz\n"
1409 "\n"
1410 msgstr ""
1411
1412 #. type: textblock
1413 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469
1414 #: ../df/virt-df.pod:201
1415 msgid ""
1416 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
1417 "reliably.  This example has one row:"
1418 msgstr ""
1419
1420 #. type: verbatim
1421 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472
1422 #: ../df/virt-df.pod:204
1423 #, no-wrap
1424 msgid ""
1425 " \"foo\n"
1426 " bar\",baz\n"
1427 "\n"
1428 msgstr ""
1429
1430 #. type: textblock
1431 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475
1432 #: ../df/virt-df.pod:207
1433 msgid ""
1434 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1435 "packaged in major Linux distributions)."
1436 msgstr ""
1437
1438 #. type: textblock
1439 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478
1440 #: ../df/virt-df.pod:210
1441 msgid ""
1442 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1443 "or Python's built-in csv library)."
1444 msgstr ""
1445
1446 #. type: textblock
1447 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481
1448 #: ../df/virt-df.pod:213
1449 msgid "Most spreadsheets and databases can import CSV directly."
1450 msgstr ""
1451
1452 #. type: textblock
1453 #: ../cat/virt-filesystems.pod:379
1454 msgid ""
1455 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
1456 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
1457 "libguestfs.org/>."
1458 msgstr ""
1459
1460 #. type: textblock
1461 #: ../cat/virt-filesystems.pod:394 ../tools/virt-make-fs.pl:570
1462 #: ../tools/virt-win-reg.pl:778
1463 msgid "Copyright (C) 2010 Red Hat Inc."
1464 msgstr ""
1465
1466 #. type: textblock
1467 #: ../cat/virt-ls.pod:5
1468 msgid "virt-ls - List files in a virtual machine"
1469 msgstr ""
1470
1471 #. type: verbatim
1472 #: ../cat/virt-ls.pod:9
1473 #, no-wrap
1474 msgid ""
1475 " virt-ls [--options] -d domname directory [directory ...]\n"
1476 "\n"
1477 msgstr ""
1478
1479 #. type: verbatim
1480 #: ../cat/virt-ls.pod:11
1481 #, no-wrap
1482 msgid ""
1483 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
1484 "\n"
1485 msgstr ""
1486
1487 #. type: textblock
1488 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
1489 msgid "Old style:"
1490 msgstr ""
1491
1492 #. type: verbatim
1493 #: ../cat/virt-ls.pod:15
1494 #, no-wrap
1495 msgid ""
1496 " virt-ls [--options] domname directory\n"
1497 "\n"
1498 msgstr ""
1499
1500 #. type: verbatim
1501 #: ../cat/virt-ls.pod:17
1502 #, no-wrap
1503 msgid ""
1504 " virt-ls [--options] disk.img [disk.img ...] directory\n"
1505 "\n"
1506 msgstr ""
1507
1508 #. type: textblock
1509 #: ../cat/virt-ls.pod:21
1510 msgid ""
1511 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
1512 "more from a virtual machine or disk image."
1513 msgstr ""
1514
1515 #. type: textblock
1516 #: ../cat/virt-ls.pod:24
1517 msgid ""
1518 "Multiple directory names can be given, in which case the output from each is "
1519 "concatenated."
1520 msgstr ""
1521
1522 #. type: textblock
1523 #: ../cat/virt-ls.pod:27
1524 msgid ""
1525 "To list directories from a libvirt guest use the I<-d> option to specify the "
1526 "name of the guest.  For a disk image, use the I<-a> option."
1527 msgstr ""
1528
1529 #. type: textblock
1530 #: ../cat/virt-ls.pod:31
1531 msgid ""
1532 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
1533 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
1534 "(3)> API."
1535 msgstr ""
1536
1537 #. type: textblock
1538 #: ../cat/virt-ls.pod:37
1539 msgid "Get a list of all files and directories in a virtual machine:"
1540 msgstr ""
1541
1542 #. type: verbatim
1543 #: ../cat/virt-ls.pod:39
1544 #, no-wrap
1545 msgid ""
1546 " virt-ls -R -d guest /\n"
1547 "\n"
1548 msgstr ""
1549
1550 #. type: textblock
1551 #: ../cat/virt-ls.pod:41
1552 msgid "List all setuid or setgid programs in a Linux virtual machine:"
1553 msgstr ""
1554
1555 #. type: verbatim
1556 #: ../cat/virt-ls.pod:43
1557 #, no-wrap
1558 msgid ""
1559 " virt-ls -lR -d guest / | grep '^- [42]'\n"
1560 "\n"
1561 msgstr ""
1562
1563 #. type: textblock
1564 #: ../cat/virt-ls.pod:45
1565 msgid "List all public-writable directories in a Linux virtual machine:"
1566 msgstr ""
1567
1568 #. type: verbatim
1569 #: ../cat/virt-ls.pod:47
1570 #, no-wrap
1571 msgid ""
1572 " virt-ls -lR -d guest / | grep '^d ...7'\n"
1573 "\n"
1574 msgstr ""
1575
1576 #. type: textblock
1577 #: ../cat/virt-ls.pod:49
1578 msgid "List all Unix domain sockets in a Linux virtual machine:"
1579 msgstr ""
1580
1581 #. type: verbatim
1582 #: ../cat/virt-ls.pod:51
1583 #, no-wrap
1584 msgid ""
1585 " virt-ls -lR -d guest / | grep '^s'\n"
1586 "\n"
1587 msgstr ""
1588
1589 #. type: textblock
1590 #: ../cat/virt-ls.pod:53
1591 msgid "List all regular files with filenames ending in '.png':"
1592 msgstr ""
1593
1594 #. type: verbatim
1595 #: ../cat/virt-ls.pod:55
1596 #, no-wrap
1597 msgid ""
1598 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
1599 "\n"
1600 msgstr ""
1601
1602 #. type: textblock
1603 #: ../cat/virt-ls.pod:57
1604 msgid "To display files larger than 10MB in home directories:"
1605 msgstr ""
1606
1607 #. type: verbatim
1608 #: ../cat/virt-ls.pod:59
1609 #, no-wrap
1610 msgid ""
1611 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
1612 "\n"
1613 msgstr ""
1614
1615 #. type: textblock
1616 #: ../cat/virt-ls.pod:61
1617 msgid "Find everything modified in the last 7 days:"
1618 msgstr ""
1619
1620 #. type: verbatim
1621 #: ../cat/virt-ls.pod:63
1622 #, no-wrap
1623 msgid ""
1624 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
1625 "\n"
1626 msgstr ""
1627
1628 #. type: textblock
1629 #: ../cat/virt-ls.pod:65
1630 msgid "Find regular files modified in the last 24 hours:"
1631 msgstr ""
1632
1633 #. type: verbatim
1634 #: ../cat/virt-ls.pod:67
1635 #, no-wrap
1636 msgid ""
1637 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
1638 "\n"
1639 msgstr ""
1640
1641 #. type: =head2
1642 #: ../cat/virt-ls.pod:69
1643 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
1644 msgstr ""
1645
1646 #. type: textblock
1647 #: ../cat/virt-ls.pod:71
1648 msgid ""
1649 "Find the differences between files in a guest and an earlier snapshot of the "
1650 "same guest."
1651 msgstr ""
1652
1653 #. type: verbatim
1654 #: ../cat/virt-ls.pod:74
1655 #, no-wrap
1656 msgid ""
1657 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
1658 " virt-ls -lR -a current.img / --uids --time-t > new\n"
1659 " diff -u old new | less\n"
1660 "\n"
1661 msgstr ""
1662
1663 #. type: textblock
1664 #: ../cat/virt-ls.pod:78
1665 msgid ""
1666 "The commands above won't find files where the content has changed but the "
1667 "metadata (eg. file size and modification date) is the same.  To do that, you "
1668 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
1669 "checksum> can be quite slow since it has to read and compute a checksum of "
1670 "every regular file in the virtual machine."
1671 msgstr ""
1672
1673 #. type: =head1
1674 #: ../cat/virt-ls.pod:84
1675 msgid "OUTPUT MODES"
1676 msgstr ""
1677
1678 #. type: textblock
1679 #: ../cat/virt-ls.pod:86
1680 msgid ""
1681 "C<virt-ls> has four output modes, controlled by different combinations of "
1682 "the I<-l> and I<-R> options."
1683 msgstr ""
1684
1685 #. type: =head2
1686 #: ../cat/virt-ls.pod:89
1687 msgid "SIMPLE LISTING"
1688 msgstr ""
1689
1690 #. type: textblock
1691 #: ../cat/virt-ls.pod:91
1692 msgid "A simple listing is like the ordinary L<ls(1)> command:"
1693 msgstr ""
1694
1695 #. type: verbatim
1696 #: ../cat/virt-ls.pod:93
1697 #, no-wrap
1698 msgid ""
1699 " $ virt-ls -d guest /\n"
1700 " bin\n"
1701 " boot\n"
1702 " [etc.]\n"
1703 "\n"
1704 msgstr ""
1705
1706 #. type: =head2
1707 #: ../cat/virt-ls.pod:98
1708 msgid "LONG LISTING"
1709 msgstr ""
1710
1711 #. type: textblock
1712 #: ../cat/virt-ls.pod:100
1713 msgid ""
1714 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
1715 "(more specifically, like the C<guestfs_ll> function)."
1716 msgstr ""
1717
1718 #. type: verbatim
1719 #: ../cat/virt-ls.pod:103
1720 #, no-wrap
1721 msgid ""
1722 " $ virt-ls -l -d guest /\n"
1723 " total 204\n"
1724 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
1725 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
1726 " [etc.]\n"
1727 "\n"
1728 msgstr ""
1729
1730 #. type: textblock
1731 #: ../cat/virt-ls.pod:109
1732 msgid ""
1733 "Note that while this is useful for displaying a directory, do not try "
1734 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
1735 "instead."
1736 msgstr ""
1737
1738 #. type: =head2
1739 #: ../cat/virt-ls.pod:113
1740 msgid "RECURSIVE LISTING"
1741 msgstr ""
1742
1743 #. type: textblock
1744 #: ../cat/virt-ls.pod:115
1745 msgid ""
1746 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
1747 "and directories recursively:"
1748 msgstr ""
1749
1750 #. type: verbatim
1751 #: ../cat/virt-ls.pod:118
1752 #, no-wrap
1753 msgid ""
1754 " $ virt-ls -R -d guest /tmp\n"
1755 " foo\n"
1756 " foo/bar\n"
1757 " [etc.]\n"
1758 "\n"
1759 msgstr ""
1760
1761 #. type: textblock
1762 #: ../cat/virt-ls.pod:123
1763 msgid ""
1764 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
1765 "converts C<\\0> characters to C<\\n>."
1766 msgstr ""
1767
1768 #. type: =head2
1769 #: ../cat/virt-ls.pod:126
1770 msgid "RECURSIVE LONG LISTING"
1771 msgstr ""
1772
1773 #. type: textblock
1774 #: ../cat/virt-ls.pod:128
1775 msgid ""
1776 "Using I<-lR> options together changes the output to display directories "
1777 "recursively, with file stats, and optionally other features such as "
1778 "checksums and extended attributes."
1779 msgstr ""
1780
1781 #. type: textblock
1782 #: ../cat/virt-ls.pod:132
1783 msgid ""
1784 "Most of the interesting features of C<virt-ls> are only available when using "
1785 "I<-lR> mode."
1786 msgstr ""
1787
1788 #. type: textblock
1789 #: ../cat/virt-ls.pod:135
1790 msgid ""
1791 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
1792 "you cannot use the output in another program (because filenames can contain "
1793 "spaces and other unsafe characters).  If the guest was untrusted and someone "
1794 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
1795 "on you by creating filenames with embedded newline characters.  To B<safely> "
1796 "parse the output in another program, use the I<--csv> (Comma-Separated "
1797 "Values) option."
1798 msgstr ""
1799
1800 #. type: textblock
1801 #: ../cat/virt-ls.pod:143
1802 msgid ""
1803 "Note that this output format is completely unrelated to the C<ls -lR> "
1804 "command."
1805 msgstr ""
1806
1807 #. type: verbatim
1808 #: ../cat/virt-ls.pod:146
1809 #, no-wrap
1810 msgid ""
1811 " $ virt-ls -lR -d guest /bin\n"
1812 " d 0555       4096 /bin\n"
1813 " - 0755        123 /bin/alsaunmute\n"
1814 " - 0755      28328 /bin/arch\n"
1815 " l 0777          4 /bin/awk -> gawk\n"
1816 " - 0755      27216 /bin/basename\n"
1817 " - 0755     943360 /bin/bash\n"
1818 " [etc.]\n"
1819 "\n"
1820 msgstr ""
1821
1822 #. type: textblock
1823 #: ../cat/virt-ls.pod:155
1824 msgid "These basic fields are always shown:"
1825 msgstr ""
1826
1827 #. type: =item
1828 #: ../cat/virt-ls.pod:159
1829 msgid "type"
1830 msgstr ""
1831
1832 #. type: textblock
1833 #: ../cat/virt-ls.pod:161
1834 msgid ""
1835 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
1836 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
1837 "link), C<s> (socket) or C<u> (unknown)."
1838 msgstr ""
1839
1840 #. type: =item
1841 #: ../cat/virt-ls.pod:171
1842 msgid "permissions"
1843 msgstr ""
1844
1845 #. type: textblock
1846 #: ../cat/virt-ls.pod:173
1847 msgid "The Unix permissions, displayed as a 4 digit octal number."
1848 msgstr ""
1849
1850 #. type: =item
1851 #: ../cat/virt-ls.pod:175
1852 msgid "size"
1853 msgstr ""
1854
1855 #. type: textblock
1856 #: ../cat/virt-ls.pod:177
1857 msgid ""
1858 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
1859 "readable> option is given, in which case this is shown as a human-readable "
1860 "number."
1861 msgstr ""
1862
1863 #. type: =head2
1864 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4255
1865 msgid "path"
1866 msgstr ""
1867
1868 #. type: textblock
1869 #: ../cat/virt-ls.pod:183
1870 msgid "The full path of the file or directory."
1871 msgstr ""
1872
1873 #. type: =item
1874 #: ../cat/virt-ls.pod:185
1875 msgid "link"
1876 msgstr ""
1877
1878 #. type: textblock
1879 #: ../cat/virt-ls.pod:187
1880 msgid "For symbolic links only, the link target."
1881 msgstr ""
1882
1883 #. type: textblock
1884 #: ../cat/virt-ls.pod:191
1885 msgid ""
1886 "In I<-lR> mode, additional command line options enable the display of more "
1887 "fields."
1888 msgstr ""
1889
1890 #. type: textblock
1891 #: ../cat/virt-ls.pod:194
1892 msgid ""
1893 "With the I<--uids> flag, these additional fields are displayed before the "
1894 "path:"
1895 msgstr ""
1896
1897 #. type: =item
1898 #: ../cat/virt-ls.pod:199
1899 msgid "uid"
1900 msgstr ""
1901
1902 #. type: =item
1903 #: ../cat/virt-ls.pod:201
1904 msgid "gid"
1905 msgstr ""
1906
1907 #. type: textblock
1908 #: ../cat/virt-ls.pod:203
1909 msgid ""
1910 "The UID and GID of the owner of the file (displayed numerically).  Note "
1911 "these only make sense in the context of a Unix-like guest."
1912 msgstr ""
1913
1914 #. type: textblock
1915 #: ../cat/virt-ls.pod:208
1916 msgid "With the I<--times> flag, these additional fields are displayed:"
1917 msgstr ""
1918
1919 #. type: =item
1920 #: ../cat/virt-ls.pod:212
1921 msgid "atime"
1922 msgstr ""
1923
1924 #. type: textblock
1925 #: ../cat/virt-ls.pod:214
1926 msgid "The time of last access."
1927 msgstr ""
1928
1929 #. type: =item
1930 #: ../cat/virt-ls.pod:216
1931 msgid "mtime"
1932 msgstr ""
1933
1934 #. type: textblock
1935 #: ../cat/virt-ls.pod:218
1936 msgid "The time of last modification."
1937 msgstr ""
1938
1939 #. type: =item
1940 #: ../cat/virt-ls.pod:220
1941 msgid "ctime"
1942 msgstr ""
1943
1944 #. type: textblock
1945 #: ../cat/virt-ls.pod:222
1946 msgid "The time of last status change."
1947 msgstr ""
1948
1949 #. type: textblock
1950 #: ../cat/virt-ls.pod:226
1951 msgid ""
1952 "The time fields are displayed as string dates and times, unless one of the "
1953 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
1954 msgstr ""
1955
1956 #. type: textblock
1957 #: ../cat/virt-ls.pod:229
1958 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
1959 msgstr ""
1960
1961 #. type: =item
1962 #: ../cat/virt-ls.pod:233
1963 msgid "device"
1964 msgstr ""
1965
1966 #. type: textblock
1967 #: ../cat/virt-ls.pod:235
1968 msgid ""
1969 "The device containing the file (displayed as major:minor).  This may not "
1970 "match devices as known to the guest."
1971 msgstr ""
1972
1973 #. type: =item
1974 #: ../cat/virt-ls.pod:238
1975 msgid "inode"
1976 msgstr ""
1977
1978 #. type: textblock
1979 #: ../cat/virt-ls.pod:240
1980 msgid "The inode number."
1981 msgstr ""
1982
1983 #. type: =item
1984 #: ../cat/virt-ls.pod:242
1985 msgid "nlink"
1986 msgstr ""
1987
1988 #. type: textblock
1989 #: ../cat/virt-ls.pod:244
1990 msgid "The number of hard links."
1991 msgstr ""
1992
1993 #. type: =item
1994 #: ../cat/virt-ls.pod:246
1995 msgid "rdev"
1996 msgstr ""
1997
1998 #. type: textblock
1999 #: ../cat/virt-ls.pod:248
2000 msgid ""
2001 "For block and char special files, the device (displayed as major:minor)."
2002 msgstr ""
2003
2004 #. type: =item
2005 #: ../cat/virt-ls.pod:251
2006 msgid "blocks"
2007 msgstr ""
2008
2009 #. type: textblock
2010 #: ../cat/virt-ls.pod:253
2011 msgid "The number of 512 byte blocks allocated to the file."
2012 msgstr ""
2013
2014 #. type: textblock
2015 #: ../cat/virt-ls.pod:257
2016 msgid ""
2017 "With the I<--checksum> flag, the checksum of the file contents is shown "
2018 "(only for regular files).  Computing file checksums can take a considerable "
2019 "amount of time."
2020 msgstr ""
2021
2022 #. type: =item
2023 #: ../cat/virt-ls.pod:280
2024 msgid "B<--checksum>"
2025 msgstr ""
2026
2027 #. type: =item
2028 #: ../cat/virt-ls.pod:282
2029 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2030 msgstr ""
2031
2032 #. type: textblock
2033 #: ../cat/virt-ls.pod:284
2034 msgid ""
2035 "Display checksum over file contents for regular files.  With no argument, "
2036 "this defaults to using I<md5>.  Using an argument, you can select the "
2037 "checksum type to use."
2038 msgstr ""
2039
2040 #. type: textblock
2041 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2042 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2043 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2044 msgid ""
2045 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2046 "LISTING> above."
2047 msgstr ""
2048
2049 #. type: textblock
2050 #: ../cat/virt-ls.pod:316
2051 msgid ""
2052 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2053 "so you cannot see what you are typing.  If you are not worried about Tempest "
2054 "attacks and there is no one else in the room you can specify this flag to "
2055 "see what you are typing."
2056 msgstr ""
2057
2058 #. type: =item
2059 #: ../cat/virt-ls.pod:321
2060 msgid "B<--extra-stats>"
2061 msgstr ""
2062
2063 #. type: textblock
2064 #: ../cat/virt-ls.pod:323
2065 msgid "Display extra stats."
2066 msgstr ""
2067
2068 #. type: verbatim
2069 #: ../cat/virt-ls.pod:339
2070 #, no-wrap
2071 msgid ""
2072 " virt-ls --format=raw -a disk.img /dir\n"
2073 "\n"
2074 msgstr ""
2075
2076 #. type: verbatim
2077 #: ../cat/virt-ls.pod:343
2078 #, no-wrap
2079 msgid ""
2080 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2081 "\n"
2082 msgstr ""
2083
2084 #. type: textblock
2085 #: ../cat/virt-ls.pod:356
2086 msgid "Display file sizes in human-readable format."
2087 msgstr ""
2088
2089 #. type: =item
2090 #: ../cat/virt-ls.pod:370
2091 msgid "B<-R>"
2092 msgstr ""
2093
2094 #. type: =item
2095 #: ../cat/virt-ls.pod:372
2096 msgid "B<--recursive>"
2097 msgstr ""
2098
2099 #. type: textblock
2100 #: ../cat/virt-ls.pod:374
2101 msgid ""
2102 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2103 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2104 "LISTING>."
2105 msgstr ""
2106
2107 #. type: textblock
2108 #: ../cat/virt-ls.pod:378
2109 msgid ""
2110 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2111 "LONG LISTING>."
2112 msgstr ""
2113
2114 #. type: textblock
2115 #: ../cat/virt-ls.pod:381
2116 msgid ""
2117 "C<virt-ls -R> produces a recursive list of files starting at the named "
2118 "directory.  See L</RECURSIVE LISTING>."
2119 msgstr ""
2120
2121 #. type: textblock
2122 #: ../cat/virt-ls.pod:384
2123 msgid ""
2124 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2125 "parsed.  See L</RECURSIVE LONG LISTING>."
2126 msgstr ""
2127
2128 #. type: =item
2129 #: ../cat/virt-ls.pod:387
2130 msgid "B<--times>"
2131 msgstr ""
2132
2133 #. type: textblock
2134 #: ../cat/virt-ls.pod:389
2135 msgid "Display time fields."
2136 msgstr ""
2137
2138 #. type: =item
2139 #: ../cat/virt-ls.pod:394
2140 msgid "B<--time-days>"
2141 msgstr ""
2142
2143 #. type: textblock
2144 #: ../cat/virt-ls.pod:396
2145 msgid "Display time fields as days before now (negative if in the future)."
2146 msgstr ""
2147
2148 #. type: textblock
2149 #: ../cat/virt-ls.pod:398
2150 msgid ""
2151 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2152 "of the file is between 0 and 86399 seconds."
2153 msgstr ""
2154
2155 #. type: =item
2156 #: ../cat/virt-ls.pod:404
2157 msgid "B<--time-relative>"
2158 msgstr ""
2159
2160 #. type: textblock
2161 #: ../cat/virt-ls.pod:406
2162 msgid "Display time fields as seconds before now (negative if in the future)."
2163 msgstr ""
2164
2165 #. type: =item
2166 #: ../cat/virt-ls.pod:411
2167 msgid "B<--time-t>"
2168 msgstr ""
2169
2170 #. type: textblock
2171 #: ../cat/virt-ls.pod:413
2172 msgid "Display time fields as seconds since the Unix epoch."
2173 msgstr ""
2174
2175 #. type: =item
2176 #: ../cat/virt-ls.pod:418
2177 msgid "B<--uids>"
2178 msgstr ""
2179
2180 #. type: textblock
2181 #: ../cat/virt-ls.pod:420
2182 msgid "Display UID and GID fields."
2183 msgstr ""
2184
2185 #. type: textblock
2186 #: ../cat/virt-ls.pod:445
2187 msgid "Previous versions of virt-ls allowed you to write either:"
2188 msgstr ""
2189
2190 #. type: verbatim
2191 #: ../cat/virt-ls.pod:447
2192 #, no-wrap
2193 msgid ""
2194 " virt-ls disk.img [disk.img ...] /dir\n"
2195 "\n"
2196 msgstr ""
2197
2198 #. type: verbatim
2199 #: ../cat/virt-ls.pod:451
2200 #, no-wrap
2201 msgid ""
2202 " virt-ls guestname /dir\n"
2203 "\n"
2204 msgstr ""
2205
2206 #. type: textblock
2207 #: ../cat/virt-ls.pod:497
2208 msgid ""
2209 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2210 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2211 "L<http://libguestfs.org/>."
2212 msgstr ""
2213
2214 #. type: textblock
2215 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
2216 #: ../rescue/virt-rescue.pod:302
2217 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2218 msgstr ""
2219
2220 #. type: textblock
2221 #: ../df/virt-df.pod:5
2222 msgid "virt-df - Display free space on virtual filesystems"
2223 msgstr ""
2224
2225 #. type: verbatim
2226 #: ../df/virt-df.pod:9
2227 #, no-wrap
2228 msgid ""
2229 " virt-df [--options]\n"
2230 "\n"
2231 msgstr ""
2232
2233 #. type: verbatim
2234 #: ../df/virt-df.pod:11
2235 #, no-wrap
2236 msgid ""
2237 " virt-df [--options] -d domname\n"
2238 "\n"
2239 msgstr ""
2240
2241 #. type: verbatim
2242 #: ../df/virt-df.pod:13
2243 #, no-wrap
2244 msgid ""
2245 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
2246 "\n"
2247 msgstr ""
2248
2249 #. type: verbatim
2250 #: ../df/virt-df.pod:17
2251 #, no-wrap
2252 msgid ""
2253 " virt-df [--options] domname\n"
2254 "\n"
2255 msgstr ""
2256
2257 #. type: verbatim
2258 #: ../df/virt-df.pod:19
2259 #, no-wrap
2260 msgid ""
2261 " virt-df [--options] disk.img [disk.img ...]\n"
2262 "\n"
2263 msgstr ""
2264
2265 #. type: textblock
2266 #: ../df/virt-df.pod:23
2267 msgid ""
2268 "C<virt-df> is a command line tool to display free space on virtual machine "
2269 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
2270 "allocated to a virtual machine, but can look inside disk images to see how "
2271 "much space is really being used."
2272 msgstr ""
2273
2274 #. type: textblock
2275 #: ../df/virt-df.pod:28
2276 msgid ""
2277 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
2278 "to get a list of all active and inactive guests, and performs a C<df>-type "
2279 "operation on each one in turn, printing out the results."
2280 msgstr ""
2281
2282 #. type: textblock
2283 #: ../df/virt-df.pod:32
2284 msgid ""
2285 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
2286 "type operation on either the single named libvirt domain, or on the disk "
2287 "image(s) listed on the command line (which must all belong to a single VM).  "
2288 "In this mode (with arguments), C<virt-df> will I<only work for a single "
2289 "guest>.  If you want to run on multiple guests, then you have to invoke "
2290 "C<virt-df> multiple times."
2291 msgstr ""
2292
2293 #. type: textblock
2294 #: ../df/virt-df.pod:39
2295 msgid ""
2296 "Use the I<--csv> option to get a format which can be easily parsed by other "
2297 "programs.  Other options are similar to the standard L<df(1)> command."
2298 msgstr ""
2299
2300 #. type: textblock
2301 #: ../df/virt-df.pod:45
2302 msgid ""
2303 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
2304 "output human-readable:"
2305 msgstr ""
2306
2307 #. type: verbatim
2308 #: ../df/virt-df.pod:48
2309 #, no-wrap
2310 msgid ""
2311 " # virt-df -d F14x64 -h\n"
2312 " Filesystem                       Size     Used  Available  Use%\n"
2313 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
2314 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
2315 "\n"
2316 msgstr ""
2317
2318 #. type: textblock
2319 #: ../df/virt-df.pod:53
2320 msgid "Show disk usage for a disk image file called C<test.img>:"
2321 msgstr ""
2322
2323 #. type: verbatim
2324 #: ../df/virt-df.pod:55
2325 #, no-wrap
2326 msgid ""
2327 " $ virt-df -a test1.img\n"
2328 " Filesystem                  1K-blocks     Used  Available  Use%\n"
2329 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
2330 "\n"
2331 msgstr ""
2332
2333 #. type: verbatim
2334 #: ../df/virt-df.pod:112
2335 #, no-wrap
2336 msgid ""
2337 " virt-df --format=raw -a disk.img\n"
2338 "\n"
2339 msgstr ""
2340
2341 #. type: verbatim
2342 #: ../df/virt-df.pod:116
2343 #, no-wrap
2344 msgid ""
2345 " virt-df --format=raw -a disk.img --format -a another.img\n"
2346 "\n"
2347 msgstr ""
2348
2349 #. type: textblock
2350 #: ../df/virt-df.pod:129
2351 msgid "Print sizes in human-readable format."
2352 msgstr ""
2353
2354 #. type: textblock
2355 #: ../df/virt-df.pod:131
2356 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
2357 msgstr ""
2358
2359 #. type: =item
2360 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:155
2361 msgid "B<-i>"
2362 msgstr ""
2363
2364 #. type: =item
2365 #: ../df/virt-df.pod:135
2366 msgid "B<--inodes>"
2367 msgstr ""
2368
2369 #. type: textblock
2370 #: ../df/virt-df.pod:137
2371 msgid "Print inodes instead of blocks."
2372 msgstr ""
2373
2374 #. type: =item
2375 #: ../df/virt-df.pod:139
2376 msgid "B<--one-per-guest>"
2377 msgstr ""
2378
2379 #. type: textblock
2380 #: ../df/virt-df.pod:141
2381 msgid ""
2382 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
2383 "disks from several guests to a single libguestfs appliance."
2384 msgstr ""
2385
2386 #. type: textblock
2387 #: ../df/virt-df.pod:144
2388 msgid "You might use this option in the following circumstances:"
2389 msgstr ""
2390
2391 #. type: =item
2392 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
2393 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
2394 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
2395 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
2396 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
2397 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
2398 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
2399 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
2400 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
2401 #: ../fish/guestfish-actions.pod:390 ../fish/guestfish-actions.pod:398
2402 #: ../fish/guestfish-actions.pod:405 ../fish/guestfish-actions.pod:412
2403 #: ../fish/guestfish-actions.pod:1139 ../fish/guestfish-actions.pod:1143
2404 #: ../fish/guestfish-actions.pod:1147 ../fish/guestfish-actions.pod:1151
2405 #: ../fish/guestfish-actions.pod:1159 ../fish/guestfish-actions.pod:1163
2406 #: ../fish/guestfish-actions.pod:1167 ../fish/guestfish-actions.pod:1177
2407 #: ../fish/guestfish-actions.pod:1181 ../fish/guestfish-actions.pod:1185
2408 #: ../fish/guestfish-actions.pod:1275 ../fish/guestfish-actions.pod:1279
2409 #: ../fish/guestfish-actions.pod:1284 ../fish/guestfish-actions.pod:1289
2410 #: ../fish/guestfish-actions.pod:1331 ../fish/guestfish-actions.pod:1335
2411 #: ../fish/guestfish-actions.pod:1340 ../fish/guestfish-actions.pod:1596
2412 #: ../fish/guestfish-actions.pod:1603 ../fish/guestfish-actions.pod:1610
2413 #: ../fish/guestfish-actions.pod:2005 ../fish/guestfish-actions.pod:2011
2414 #: ../fish/guestfish-actions.pod:2019 ../fish/guestfish-actions.pod:2026
2415 #: ../fish/guestfish-actions.pod:2033 ../fish/guestfish.pod:445
2416 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
2417 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393
2418 #: ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:282
2419 #: ../resize/virt-resize.pod:286 ../resize/virt-resize.pod:295
2420 #: ../resize/virt-resize.pod:301 ../src/guestfs-actions.pod:22
2421 #: ../src/guestfs-actions.pod:29 ../src/guestfs-actions.pod:588
2422 #: ../src/guestfs-actions.pod:596 ../src/guestfs-actions.pod:603
2423 #: ../src/guestfs-actions.pod:610 ../src/guestfs-actions.pod:1774
2424 #: ../src/guestfs-actions.pod:1778 ../src/guestfs-actions.pod:1782
2425 #: ../src/guestfs-actions.pod:1786 ../src/guestfs-actions.pod:1794
2426 #: ../src/guestfs-actions.pod:1798 ../src/guestfs-actions.pod:1802
2427 #: ../src/guestfs-actions.pod:1812 ../src/guestfs-actions.pod:1816
2428 #: ../src/guestfs-actions.pod:1820 ../src/guestfs-actions.pod:1958
2429 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:1967
2430 #: ../src/guestfs-actions.pod:1972 ../src/guestfs-actions.pod:2033
2431 #: ../src/guestfs-actions.pod:2037 ../src/guestfs-actions.pod:2042
2432 #: ../src/guestfs-actions.pod:2455 ../src/guestfs-actions.pod:2462
2433 #: ../src/guestfs-actions.pod:2469 ../src/guestfs-actions.pod:3006
2434 #: ../src/guestfs-actions.pod:3012 ../src/guestfs-actions.pod:3020
2435 #: ../src/guestfs-actions.pod:3027 ../src/guestfs-actions.pod:3034
2436 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398
2437 #: ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411
2438 #: ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1091
2439 #: ../src/guestfs.pod:1095 ../src/guestfs.pod:1099 ../src/guestfs.pod:1104
2440 #: ../src/guestfs.pod:1112 ../src/guestfs.pod:1131 ../src/guestfs.pod:1139
2441 #: ../src/guestfs.pod:1161 ../src/guestfs.pod:1165 ../src/guestfs.pod:1169
2442 #: ../src/guestfs.pod:1173 ../src/guestfs.pod:1177 ../src/guestfs.pod:1181
2443 #: ../src/guestfs.pod:1671 ../src/guestfs.pod:1676 ../src/guestfs.pod:1680
2444 #: ../src/guestfs.pod:1782 ../src/guestfs.pod:1787 ../src/guestfs.pod:1791
2445 #: ../src/guestfs.pod:1801 ../src/guestfs.pod:2090 ../src/guestfs.pod:2095
2446 #: ../src/guestfs.pod:2101 ../src/guestfs.pod:2109 ../src/guestfs.pod:2556
2447 #: ../src/guestfs.pod:2562 ../src/guestfs.pod:2567 ../src/guestfs.pod:2573
2448 #: ../src/guestfs.pod:2956 ../src/guestfs.pod:2961 ../src/guestfs.pod:2965
2449 #: ../src/guestfs.pod:2969 ../src/guestfs.pod:2973 ../src/guestfs.pod:2987
2450 #: ../src/guestfs.pod:2992 ../src/guestfs.pod:3218 ../src/guestfs.pod:3222
2451 #: ../src/guestfs.pod:3226 ../src/guestfs.pod:3230
2452 #: ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202
2453 #: ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:710
2454 #: ../tools/virt-win-reg.pl:716 ../tools/virt-win-reg.pl:722
2455 msgid "*"
2456 msgstr ""
2457
2458 #. type: textblock
2459 #: ../df/virt-df.pod:150
2460 msgid ""
2461 "If you think an untrusted guest might actively try to exploit the libguestfs "
2462 "appliance kernel, then this prevents one guest from interfering with the "
2463 "stats printed for another guest."
2464 msgstr ""
2465
2466 #. type: textblock
2467 #: ../df/virt-df.pod:156
2468 msgid ""
2469 "If the kernel has a bug which stops it from accessing a filesystem in one "
2470 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
2471 "and report stats for further guests."
2472 msgstr ""
2473
2474 #. type: textblock
2475 #: ../df/virt-df.pod:165
2476 msgid ""
2477 "Print UUIDs instead of names.  This is useful for following a guest even "
2478 "when the guest is migrated or renamed, or when two guests happen to have the "
2479 "same name."
2480 msgstr ""
2481
2482 #. type: textblock
2483 #: ../df/virt-df.pod:169
2484 msgid ""
2485 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
2486 "images, we still print the disk image name even when this option is "
2487 "specified."
2488 msgstr ""
2489
2490 #. type: textblock
2491 #: ../df/virt-df.pod:229
2492 msgid ""
2493 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
2494 "libguestfs.org/>."
2495 msgstr ""
2496
2497 #. type: textblock
2498 #: ../edit/virt-edit.pod:5
2499 msgid "virt-edit - Edit a file in a virtual machine"
2500 msgstr ""
2501
2502 #. type: verbatim
2503 #: ../edit/virt-edit.pod:9
2504 #, no-wrap
2505 msgid ""
2506 " virt-edit [--options] -d domname file [file ...]\n"
2507 "\n"
2508 msgstr ""
2509
2510 #. type: verbatim
2511 #: ../edit/virt-edit.pod:11
2512 #, no-wrap
2513 msgid ""
2514 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
2515 "\n"
2516 msgstr ""
2517
2518 #. type: verbatim
2519 #: ../edit/virt-edit.pod:13
2520 #, no-wrap
2521 msgid ""
2522 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
2523 "\n"
2524 msgstr ""
2525
2526 #. type: verbatim
2527 #: ../edit/virt-edit.pod:17
2528 #, no-wrap
2529 msgid ""
2530 " virt-edit domname file\n"
2531 "\n"
2532 msgstr ""
2533
2534 #. type: verbatim
2535 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
2536 #, no-wrap
2537 msgid ""
2538 " virt-edit disk.img [disk.img ...] file\n"
2539 "\n"
2540 msgstr ""
2541
2542 #. type: =head1
2543 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
2544 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
2545 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
2546 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
2547 msgid "WARNING"
2548 msgstr ""
2549
2550 #. type: textblock
2551 #: ../edit/virt-edit.pod:23
2552 msgid ""
2553 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
2554 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
2555 "doing this, but doesn't catch all cases."
2556 msgstr ""
2557
2558 #. type: textblock
2559 #: ../edit/virt-edit.pod:29
2560 msgid ""
2561 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
2562 "exists in the named virtual machine (or disk image)."
2563 msgstr ""
2564
2565 #. type: textblock
2566 #: ../edit/virt-edit.pod:32
2567 msgid ""
2568 "Multiple filenames can be given, in which case they are each edited in "
2569 "turn.  Each filename must be a full path, starting at the root directory "
2570 "(starting with '/')."
2571 msgstr ""
2572
2573 #. type: textblock
2574 #: ../edit/virt-edit.pod:36
2575 msgid "If you want to just view a file, use L<virt-cat(1)>."
2576 msgstr ""
2577
2578 #. type: textblock
2579 #: ../edit/virt-edit.pod:38
2580 msgid ""
2581 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
2582 "USING GUESTFISH> below)."
2583 msgstr ""
2584
2585 #. type: textblock
2586 #: ../edit/virt-edit.pod:41
2587 msgid ""
2588 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
2589 "that and much more."
2590 msgstr ""
2591
2592 #. type: textblock
2593 #: ../edit/virt-edit.pod:46
2594 msgid "Edit the named files interactively:"
2595 msgstr ""
2596
2597 #. type: verbatim
2598 #: ../edit/virt-edit.pod:48
2599 #, no-wrap
2600 msgid ""
2601 " virt-edit -d mydomain /boot/grub/grub.conf\n"
2602 "\n"
2603 msgstr ""
2604
2605 #. type: verbatim
2606 #: ../edit/virt-edit.pod:50
2607 #, no-wrap
2608 msgid ""
2609 " virt-edit -d mydomain /etc/passwd\n"
2610 "\n"
2611 msgstr ""
2612
2613 #. type: textblock
2614 #: ../edit/virt-edit.pod:52
2615 msgid "For Windows guests, some Windows paths are understood:"
2616 msgstr ""
2617
2618 #. type: verbatim
2619 #: ../edit/virt-edit.pod:54
2620 #, no-wrap
2621 msgid ""
2622 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
2623 "\n"
2624 msgstr ""
2625
2626 #. type: textblock
2627 #: ../edit/virt-edit.pod:56
2628 msgid ""
2629 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
2630 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
2631 msgstr ""
2632
2633 #. type: verbatim
2634 #: ../edit/virt-edit.pod:60
2635 #, no-wrap
2636 msgid ""
2637 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
2638 "\n"
2639 msgstr ""
2640
2641 #. type: =item
2642 #: ../edit/virt-edit.pod:81
2643 msgid "B<-b> extension"
2644 msgstr ""
2645
2646 #. type: =item
2647 #: ../edit/virt-edit.pod:83
2648 msgid "B<--backup> extension"
2649 msgstr ""
2650
2651 #. type: textblock
2652 #: ../edit/virt-edit.pod:85
2653 msgid ""
2654 "Create a backup of the original file I<in the guest disk image>.  The backup "
2655 "has the original filename with C<extension> added."
2656 msgstr ""
2657
2658 #. type: textblock
2659 #: ../edit/virt-edit.pod:88
2660 msgid ""
2661 "Usually the first character of C<extension> would be a dot C<.> so you would "
2662 "write:"
2663 msgstr ""
2664
2665 #. type: verbatim
2666 #: ../edit/virt-edit.pod:91
2667 #, no-wrap
2668 msgid ""
2669 " virt-edit -b .orig [etc]\n"
2670 "\n"
2671 msgstr ""
2672
2673 #. type: textblock
2674 #: ../edit/virt-edit.pod:93
2675 msgid "By default, no backup file is made."
2676 msgstr ""
2677
2678 #. type: =item
2679 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
2680 #: ../fuse/guestmount.pod:96 ../inspector/virt-inspector.pod:74
2681 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
2682 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
2683 msgid "B<-c URI>"
2684 msgstr ""
2685
2686 #. type: =item
2687 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
2688 #: ../fuse/guestmount.pod:98 ../inspector/virt-inspector.pod:76
2689 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
2690 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
2691 msgid "B<--connect URI>"
2692 msgstr ""
2693
2694 #. type: textblock
2695 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
2696 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
2697 #: ../tools/virt-win-reg.pl:135
2698 msgid ""
2699 "If you specify guest block devices directly, then libvirt is not used at all."
2700 msgstr ""
2701
2702 #. type: textblock
2703 #: ../edit/virt-edit.pod:114
2704 msgid ""
2705 "When prompting for keys and passphrases, virt-edit normally turns echoing "
2706 "off so you cannot see what you are typing.  If you are not worried about "
2707 "Tempest attacks and there is no one else in the room you can specify this "
2708 "flag to see what you are typing."
2709 msgstr ""
2710
2711 #. type: =item
2712 #: ../edit/virt-edit.pod:119
2713 msgid "B<-e> EXPR"
2714 msgstr ""
2715
2716 #. type: =item
2717 #: ../edit/virt-edit.pod:121
2718 msgid "B<--expr> EXPR"
2719 msgstr ""
2720
2721 #. type: textblock
2722 #: ../edit/virt-edit.pod:123
2723 msgid ""
2724 "Instead of launching the external editor, non-interactively apply the Perl "
2725 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
2726 "EDITING> below."
2727 msgstr ""
2728
2729 #. type: textblock
2730 #: ../edit/virt-edit.pod:127
2731 msgid ""
2732 "Be careful to properly quote the expression to prevent it from being altered "
2733 "by the shell."
2734 msgstr ""
2735
2736 #. type: textblock
2737 #: ../edit/virt-edit.pod:130
2738 msgid "Note that this option is only available when Perl 5 is installed."
2739 msgstr ""
2740
2741 #. type: =item
2742 #: ../edit/virt-edit.pod:132
2743 msgid "B<--format> raw|qcow2|..."
2744 msgstr ""
2745
2746 #. type: verbatim
2747 #: ../edit/virt-edit.pod:143
2748 #, no-wrap
2749 msgid ""
2750 " virt-edit --format=raw -a disk.img file\n"
2751 "\n"
2752 msgstr ""
2753
2754 #. type: verbatim
2755 #: ../edit/virt-edit.pod:147
2756 #, no-wrap
2757 msgid ""
2758 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
2759 "\n"
2760 msgstr ""
2761
2762 #. type: textblock
2763 #: ../edit/virt-edit.pod:181
2764 msgid "Previous versions of virt-edit allowed you to write either:"
2765 msgstr ""
2766
2767 #. type: verbatim
2768 #: ../edit/virt-edit.pod:187
2769 #, no-wrap
2770 msgid ""
2771 " virt-edit guestname file\n"
2772 "\n"
2773 msgstr ""
2774
2775 #. type: =head1
2776 #: ../edit/virt-edit.pod:195
2777 msgid "NON-INTERACTIVE EDITING"
2778 msgstr ""
2779
2780 #. type: textblock
2781 #: ../edit/virt-edit.pod:197
2782 msgid ""
2783 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
2784 "administrator can interactively edit the file."
2785 msgstr ""
2786
2787 #. type: textblock
2788 #: ../edit/virt-edit.pod:200
2789 msgid ""
2790 "There are two ways also to use C<virt-edit> from scripts in order to make "
2791 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
2792 "like this, it's less error-prone to write scripts directly using the "
2793 "libguestfs API and Augeas for configuration file editing.)"
2794 msgstr ""
2795
2796 #. type: textblock
2797 #: ../edit/virt-edit.pod:206
2798 msgid ""
2799 "The first method is to temporarily set C<$EDITOR> to any script or program "
2800 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
2801 "update C<tmpfile> in place however it likes."
2802 msgstr ""
2803
2804 #. type: textblock
2805 #: ../edit/virt-edit.pod:210
2806 msgid ""
2807 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
2808 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
2809 "instances of C<foo> with C<bar> in a file:"
2810 msgstr ""
2811
2812 #. type: verbatim
2813 #: ../edit/virt-edit.pod:214
2814 #, no-wrap
2815 msgid ""
2816 " virt-edit -d domname filename -e 's/foo/bar/'\n"
2817 "\n"
2818 msgstr ""
2819
2820 #. type: textblock
2821 #: ../edit/virt-edit.pod:216
2822 msgid ""
2823 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
2824 "For example to delete root's password you could do:"
2825 msgstr ""
2826
2827 #. type: verbatim
2828 #: ../edit/virt-edit.pod:219
2829 #, no-wrap
2830 msgid ""
2831 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
2832 "\n"
2833 msgstr ""
2834
2835 #. type: textblock
2836 #: ../edit/virt-edit.pod:221
2837 msgid ""
2838 "What really happens is that the snippet is evaluated as a Perl expression "
2839 "for each line of the file.  The line, including the final C<\\n>, is passed "
2840 "in C<$_> and the expression should update C<$_> or leave it unchanged."
2841 msgstr ""
2842
2843 #. type: textblock
2844 #: ../edit/virt-edit.pod:226
2845 msgid ""
2846 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
2847 "C<apache> user account from the password file you can do:"
2848 msgstr ""
2849
2850 #. type: verbatim
2851 #: ../edit/virt-edit.pod:229
2852 #, no-wrap
2853 msgid ""
2854 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
2855 "\n"
2856 msgstr ""
2857
2858 #. type: textblock
2859 #: ../edit/virt-edit.pod:231
2860 msgid ""
2861 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
2862 "the end of the file is rather difficult this way since there is no concept "
2863 "of \"last line of the file\" - your expression just doesn't get called "
2864 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
2865 "want to do this."
2866 msgstr ""
2867
2868 #. type: textblock
2869 #: ../edit/virt-edit.pod:237
2870 msgid ""
2871 "The variable C<$lineno> contains the current line number.  As is "
2872 "traditional, the first line in the file is number C<1>."
2873 msgstr ""
2874
2875 #. type: textblock
2876 #: ../edit/virt-edit.pod:240
2877 msgid ""
2878 "The return value from the expression is ignored, but the expression may call "
2879 "C<die> in order to abort the whole program, leaving the original file "
2880 "untouched."
2881 msgstr ""
2882
2883 #. type: textblock
2884 #: ../edit/virt-edit.pod:244
2885 msgid ""
2886 "Remember when matching the end of a line that C<$_> may contain the final C<"
2887 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
2888 "newline then neither of these.  Thus to match or substitute some text at the "
2889 "end of a line, use this regular expression:"
2890 msgstr ""
2891
2892 #. type: verbatim
2893 #: ../edit/virt-edit.pod:249
2894 #, no-wrap
2895 msgid ""
2896 " /some text(\\r?\\n)?$/\n"
2897 "\n"
2898 msgstr ""
2899
2900 #. type: textblock
2901 #: ../edit/virt-edit.pod:251
2902 msgid ""
2903 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
2904 "$_> itself (since that would remove all newlines from the file):"
2905 msgstr ""
2906
2907 #. type: verbatim
2908 #: ../edit/virt-edit.pod:255
2909 #, no-wrap
2910 msgid ""
2911 " my $m = $_; chomp $m; $m =~ /some text$/\n"
2912 "\n"
2913 msgstr ""
2914
2915 #. type: =head1
2916 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
2917 msgid "WINDOWS PATHS"
2918 msgstr ""
2919
2920 #. type: textblock
2921 #: ../edit/virt-edit.pod:259
2922 msgid ""
2923 "C<virt-edit> has a limited ability to understand Windows drive letters and "
2924 "paths (eg. C<E:\\foo\\bar.txt>)."
2925 msgstr ""
2926
2927 #. type: textblock
2928 #: ../edit/virt-edit.pod:262
2929 msgid "If and only if the guest is running Windows then:"
2930 msgstr ""
2931
2932 #. type: textblock
2933 #: ../edit/virt-edit.pod:268
2934 msgid ""
2935 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
2936 "to the correct filesystem."
2937 msgstr ""
2938
2939 #. type: textblock
2940 #: ../edit/virt-edit.pod:273
2941 msgid ""
2942 "Any backslash (C<\\>) characters in the path are replaced with forward "
2943 "slashes so that libguestfs can process it."
2944 msgstr ""
2945
2946 #. type: textblock
2947 #: ../edit/virt-edit.pod:278
2948 msgid ""
2949 "The path is resolved case insensitively to locate the file that should be "
2950 "edited."
2951 msgstr ""
2952
2953 #. type: textblock
2954 #: ../edit/virt-edit.pod:283
2955 msgid "There are some known shortcomings:"
2956 msgstr ""
2957
2958 #. type: textblock
2959 #: ../edit/virt-edit.pod:289
2960 msgid "Some NTFS symbolic links may not be followed correctly."
2961 msgstr ""
2962
2963 #. type: textblock
2964 #: ../edit/virt-edit.pod:293
2965 msgid "NTFS junction points that cross filesystems are not followed."
2966 msgstr ""
2967
2968 #. type: textblock
2969 #: ../edit/virt-edit.pod:299
2970 msgid ""
2971 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
2972 "C<virt-edit> doesn't work."
2973 msgstr ""
2974
2975 #. type: textblock
2976 #: ../edit/virt-edit.pod:302
2977 msgid "Using C<virt-edit> is approximately equivalent to doing:"
2978 msgstr ""
2979
2980 #. type: verbatim
2981 #: ../edit/virt-edit.pod:304
2982 #, no-wrap
2983 msgid ""
2984 " guestfish --rw -i -d domname edit /file\n"
2985 "\n"
2986 msgstr ""
2987
2988 #. type: textblock
2989 #: ../edit/virt-edit.pod:306
2990 msgid ""
2991 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
2992 "path to the file."
2993 msgstr ""
2994
2995 #. type: textblock
2996 #: ../edit/virt-edit.pod:309
2997 msgid ""
2998 "The command above uses libguestfs's guest inspection feature and so does not "
2999 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
3000 "disk images that don't contain guests.  To edit a file on a disk image "
3001 "directly, use:"
3002 msgstr ""
3003
3004 #. type: verbatim
3005 #: ../edit/virt-edit.pod:314
3006 #, no-wrap
3007 msgid ""
3008 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
3009 "\n"
3010 msgstr ""
3011
3012 #. type: textblock
3013 #: ../edit/virt-edit.pod:316
3014 msgid ""
3015 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
3016 "the disk image to edit, and C</file> is the full path to the file."
3017 msgstr ""
3018
3019 #. type: textblock
3020 #: ../edit/virt-edit.pod:320
3021 msgid ""
3022 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
3023 "C<write> or C<upload> instead:"
3024 msgstr ""
3025
3026 #. type: verbatim
3027 #: ../edit/virt-edit.pod:323
3028 #, no-wrap
3029 msgid ""
3030 " guestfish --rw -i -d domname touch /newfile\n"
3031 "\n"
3032 msgstr ""
3033
3034 #. type: verbatim
3035 #: ../edit/virt-edit.pod:325
3036 #, no-wrap
3037 msgid ""
3038 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
3039 "\n"
3040 msgstr ""
3041
3042 #. type: verbatim
3043 #: ../edit/virt-edit.pod:327
3044 #, no-wrap
3045 msgid ""
3046 " guestfish --rw -i -d domname upload localfile /newfile\n"
3047 "\n"
3048 msgstr ""
3049
3050 #. type: =head1
3051 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1086
3052 #: ../rescue/virt-rescue.pod:261 ../src/guestfs.pod:3103
3053 #: ../test-tool/libguestfs-test-tool.pod:95
3054 msgid "ENVIRONMENT VARIABLES"
3055 msgstr ""
3056
3057 #. type: =item
3058 #: ../edit/virt-edit.pod:333
3059 msgid "C<EDITOR>"
3060 msgstr ""
3061
3062 #. type: textblock
3063 #: ../edit/virt-edit.pod:335
3064 msgid ""
3065 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
3066 "\"emacs -nw\">"
3067 msgstr ""
3068
3069 #. type: textblock
3070 #: ../edit/virt-edit.pod:338
3071 msgid "If not set, C<vi> is used."
3072 msgstr ""
3073
3074 #. type: textblock
3075 #: ../edit/virt-edit.pod:356
3076 msgid ""
3077 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
3078 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3079 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
3080 msgstr ""
3081
3082 #. type: textblock
3083 #: ../erlang/examples/guestfs-erlang.pod:5
3084 msgid "guestfs-erlang - How to use libguestfs from Erlang"
3085 msgstr ""
3086
3087 #. type: verbatim
3088 #: ../erlang/examples/guestfs-erlang.pod:9
3089 #, no-wrap
3090 msgid ""
3091 " {ok, G} = guestfs:create(),\n"
3092 " ok = guestfs:add_drive_opts(G, Disk,\n"
3093 "                             [{format, \"raw\"}, {readonly, true}]),\n"
3094 " ok = guestfs:launch(G),\n"
3095 " [Device] = guestfs:list_devices(G),\n"
3096 " ok = guestfs:close(G).\n"
3097 "\n"
3098 msgstr ""
3099
3100 #. type: textblock
3101 #: ../erlang/examples/guestfs-erlang.pod:18
3102 msgid ""
3103 "This manual page documents how to call libguestfs from the Erlang "
3104 "programming language.  This page just documents the differences from the C "
3105 "API and gives some examples.  If you are not familiar with using libguestfs, "
3106 "you also need to read L<guestfs(3)>."
3107 msgstr ""
3108
3109 #. type: =head2
3110 #: ../erlang/examples/guestfs-erlang.pod:23
3111 msgid "OPENING AND CLOSING THE HANDLE"
3112 msgstr ""
3113
3114 #. type: textblock
3115 #: ../erlang/examples/guestfs-erlang.pod:25
3116 msgid ""
3117 "The Erlang bindings are implemented using an external program called C<erl-"
3118 "guestfs>.  This program must be on the current PATH, or else you should "
3119 "specify the full path to the program:"
3120 msgstr ""
3121
3122 #. type: verbatim
3123 #: ../erlang/examples/guestfs-erlang.pod:29
3124 #, no-wrap
3125 msgid ""
3126 " {ok, G} = guestfs:create().\n"
3127 "\n"
3128 msgstr ""
3129
3130 #. type: verbatim
3131 #: ../erlang/examples/guestfs-erlang.pod:31
3132 #, no-wrap
3133 msgid ""
3134 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
3135 "\n"
3136 msgstr ""
3137
3138 #. type: textblock
3139 #: ../erlang/examples/guestfs-erlang.pod:33
3140 msgid "C<G> is the libguestfs handle which you should pass to other functions."
3141 msgstr ""
3142
3143 #. type: textblock
3144 #: ../erlang/examples/guestfs-erlang.pod:36
3145 msgid "To close the handle:"
3146 msgstr ""
3147
3148 #. type: verbatim
3149 #: ../erlang/examples/guestfs-erlang.pod:38
3150 #, no-wrap
3151 msgid ""
3152 " ok = guestfs:close(G).\n"
3153 "\n"
3154 msgstr ""
3155
3156 #. type: =head2
3157 #: ../erlang/examples/guestfs-erlang.pod:40
3158 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
3159 msgstr ""
3160
3161 #. type: textblock
3162 #: ../erlang/examples/guestfs-erlang.pod:42
3163 msgid ""
3164 "For functions that take optional arguments, the first arguments are the non-"
3165 "optional ones.  The last argument is a list of tuples supplying the "
3166 "remaining optional arguments."
3167 msgstr ""
3168
3169 #. type: verbatim
3170 #: ../erlang/examples/guestfs-erlang.pod:46
3171 #, no-wrap
3172 msgid ""
3173 " ok = guestfs:add_drive_opts(G, Disk,\n"
3174 "                             [{format, \"raw\"}, {readonly, true}]).\n"
3175 "\n"
3176 msgstr ""
3177
3178 #. type: textblock
3179 #: ../erlang/examples/guestfs-erlang.pod:49
3180 msgid "If the last argument would be an empty list, you can also omit it:"
3181 msgstr ""
3182
3183 #. type: verbatim
3184 #: ../erlang/examples/guestfs-erlang.pod:51
3185 #, no-wrap
3186 msgid ""
3187 " ok = guestfs:add_drive_opts(G, Disk).\n"
3188 "\n"
3189 msgstr ""
3190
3191 #. type: =head2
3192 #: ../erlang/examples/guestfs-erlang.pod:53
3193 msgid "RETURN VALUES AND ERRORS"
3194 msgstr ""
3195
3196 #. type: textblock
3197 #: ../erlang/examples/guestfs-erlang.pod:55
3198 msgid ""
3199 "On success, most functions return a C<Result> term (which could be a list, "
3200 "string, tuple etc.).  If there is nothing for the function to return, then "
3201 "the atom C<ok> is returned."
3202 msgstr ""
3203
3204 #. type: textblock
3205 #: ../erlang/examples/guestfs-erlang.pod:59
3206 msgid "On error, you would see one of the following tuples:"
3207 msgstr ""
3208
3209 #. type: =item
3210 #: ../erlang/examples/guestfs-erlang.pod:63
3211 msgid "C<{error, Msg, Errno}>"
3212 msgstr ""
3213
3214 #. type: textblock
3215 #: ../erlang/examples/guestfs-erlang.pod:65
3216 msgid "This indicates an ordinary error from the function."
3217 msgstr ""
3218
3219 #. type: textblock
3220 #: ../erlang/examples/guestfs-erlang.pod:67
3221 msgid ""
3222 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
3223 "(integer)."
3224 msgstr ""
3225
3226 #. type: textblock
3227 #: ../erlang/examples/guestfs-erlang.pod:70
3228 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
3229 msgstr ""
3230
3231 #. type: =item
3232 #: ../erlang/examples/guestfs-erlang.pod:72
3233 msgid "C<{unknown, Function}>"
3234 msgstr ""
3235
3236 #. type: textblock
3237 #: ../erlang/examples/guestfs-erlang.pod:74
3238 msgid ""
3239 "This indicates that the function you called is not known.  Generally this "
3240 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
3241 "which you should not do."
3242 msgstr ""
3243
3244 #. type: textblock
3245 #: ../erlang/examples/guestfs-erlang.pod:78
3246 msgid "C<Function> is the name of the unknown function."
3247 msgstr ""
3248
3249 #. type: =item
3250 #: ../erlang/examples/guestfs-erlang.pod:80
3251 msgid "C<{unknownarg, Arg}>"
3252 msgstr ""
3253
3254 #. type: textblock
3255 #: ../erlang/examples/guestfs-erlang.pod:82
3256 msgid ""
3257 "This indicates that you called a function with optional arguments, with an "
3258 "unknown argument name."
3259 msgstr ""
3260
3261 #. type: textblock
3262 #: ../erlang/examples/guestfs-erlang.pod:85
3263 msgid "C<Arg> is the name of the unknown argument."
3264 msgstr ""
3265
3266 #. type: =head1
3267 #: ../erlang/examples/guestfs-erlang.pod:89
3268 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
3269 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
3270 #: ../python/examples/guestfs-python.pod:34
3271 #: ../ruby/examples/guestfs-ruby.pod:28
3272 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
3273 msgstr ""
3274
3275 #. type: textblock
3276 #: ../erlang/examples/guestfs-erlang.pod:91
3277 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
3278 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
3279 #: ../python/examples/guestfs-python.pod:36
3280 #: ../ruby/examples/guestfs-ruby.pod:30
3281 msgid "@EXAMPLE1@"
3282 msgstr ""
3283
3284 #. type: =head1
3285 #: ../erlang/examples/guestfs-erlang.pod:93
3286 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
3287 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
3288 #: ../python/examples/guestfs-python.pod:38
3289 #: ../ruby/examples/guestfs-ruby.pod:32
3290 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
3291 msgstr ""
3292
3293 #. type: textblock
3294 #: ../erlang/examples/guestfs-erlang.pod:95
3295 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
3296 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
3297 #: ../python/examples/guestfs-python.pod:40
3298 #: ../ruby/examples/guestfs-ruby.pod:34
3299 msgid "@EXAMPLE2@"
3300 msgstr ""
3301
3302 #. type: textblock
3303 #: ../erlang/examples/guestfs-erlang.pod:99
3304 msgid ""
3305 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
3306 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
3307 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  L<http://libguestfs.org/>."
3308 msgstr ""
3309
3310 #. type: =head1
3311 #: ../erlang/examples/guestfs-erlang.pod:110
3312 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
3313 #: ../fish/guestfish.pod:1260 ../fish/virt-copy-in.pod:60
3314 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
3315 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:319
3316 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:58
3317 #: ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52
3318 #: ../python/examples/guestfs-python.pod:54
3319 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3237
3320 #: ../test-tool/libguestfs-test-tool.pod:106
3321 msgid "AUTHORS"
3322 msgstr ""
3323
3324 #. type: textblock
3325 #: ../erlang/examples/guestfs-erlang.pod:112
3326 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
3327 #: ../fish/guestfish.pod:1262 ../fish/virt-copy-in.pod:62
3328 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
3329 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:321
3330 #: ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93
3331 #: ../perl/examples/guestfs-perl.pod:54
3332 #: ../python/examples/guestfs-python.pod:56
3333 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3239
3334 #: ../test-tool/libguestfs-test-tool.pod:108
3335 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3336 msgstr ""
3337
3338 #. type: textblock
3339 #: ../erlang/examples/guestfs-erlang.pod:116
3340 #: ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
3341 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
3342 msgstr ""
3343
3344 #. type: textblock
3345 #: ../erlang/examples/guestfs-erlang.pod:118
3346 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
3347 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
3348 #: ../perl/examples/guestfs-perl.pod:60
3349 #: ../python/examples/guestfs-python.pod:62
3350 #: ../ruby/examples/guestfs-ruby.pod:56
3351 msgid ""
3352 "The examples in this manual page may be freely copied, modified and "
3353 "distributed without any restrictions."
3354 msgstr ""
3355
3356 #. type: textblock
3357 #: ../erlang/examples/guestfs-erlang.pod:121
3358 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
3359 #: ../java/examples/guestfs-java.pod:69
3360 #: ../ocaml/examples/guestfs-ocaml.pod:102
3361 #: ../perl/examples/guestfs-perl.pod:63
3362 #: ../python/examples/guestfs-python.pod:65
3363 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3246
3364 msgid ""
3365 "This library is free software; you can redistribute it and/or modify it "
3366 "under the terms of the GNU Lesser General Public License as published by the "
3367 "Free Software Foundation; either version 2 of the License, or (at your "
3368 "option) any later version."
3369 msgstr ""
3370
3371 #. type: textblock
3372 #: ../erlang/examples/guestfs-erlang.pod:126
3373 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
3374 #: ../java/examples/guestfs-java.pod:74
3375 #: ../ocaml/examples/guestfs-ocaml.pod:107
3376 #: ../perl/examples/guestfs-perl.pod:68
3377 #: ../python/examples/guestfs-python.pod:70
3378 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3251
3379 msgid ""
3380 "This library is distributed in the hope that it will be useful, but WITHOUT "
3381 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3382 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3383 "for more details."
3384 msgstr ""
3385
3386 #. type: textblock
3387 #: ../erlang/examples/guestfs-erlang.pod:131
3388 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
3389 #: ../java/examples/guestfs-java.pod:79
3390 #: ../ocaml/examples/guestfs-ocaml.pod:112
3391 #: ../perl/examples/guestfs-perl.pod:73
3392 #: ../python/examples/guestfs-python.pod:75
3393 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3256
3394 msgid ""
3395 "You should have received a copy of the GNU Lesser General Public License "
3396 "along with this library; if not, write to the Free Software Foundation, "
3397 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3398 msgstr ""
3399
3400 #. type: textblock
3401 #: ../examples/guestfs-examples.pod:5
3402 msgid "guestfs-examples - Examples of using libguestfs from C"
3403 msgstr ""
3404
3405 #. type: verbatim
3406 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
3407 #, no-wrap
3408 msgid ""
3409 " #include <guestfs.h>\n"
3410 " \n"
3411 msgstr ""
3412
3413 #. type: verbatim
3414 #: ../examples/guestfs-examples.pod:11
3415 #, no-wrap
3416 msgid ""
3417 " guestfs_h *g = guestfs_create ();\n"
3418 " guestfs_add_drive_ro (g, \"disk.img\");\n"
3419 " guestfs_launch (g);\n"
3420 "\n"
3421 msgstr ""
3422
3423 #. type: verbatim
3424 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
3425 #, no-wrap
3426 msgid ""
3427 " cc prog.c -o prog -lguestfs\n"
3428 "or:\n"
3429 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3430 "\n"
3431 msgstr ""
3432
3433 #. type: textblock
3434 #: ../examples/guestfs-examples.pod:21
3435 msgid ""
3436 "This manual page contains examples of calling libguestfs from the C "
3437 "programming language.  If you are not familiar with using libguestfs, you "
3438 "also need to read L<guestfs(3)>."
3439 msgstr ""
3440
3441 #. type: textblock
3442 #: ../examples/guestfs-examples.pod:35
3443 msgid ""
3444 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
3445 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
3446 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
3447 msgstr ""
3448
3449 #. type: textblock
3450 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
3451 #: ../python/examples/guestfs-python.pod:60
3452 #: ../ruby/examples/guestfs-ruby.pod:54
3453 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
3454 msgstr ""
3455
3456 #. type: =end
3457 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
3458 msgid "comment"
3459 msgstr ""
3460
3461 #. type: textblock
3462 #: ../examples/guestfs-recipes.pod:5
3463 msgid ""
3464 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
3465 "here.  The only way which works for both sorts of output is to just write "
3466 "the URL directly.  Do NOT use L<...> for URLs."
3467 msgstr ""
3468
3469 #. type: textblock
3470 #: ../examples/guestfs-recipes.pod:9
3471 msgid ""
3472 "We break with tradition here and don't use ALL CAPS for the section "
3473 "headings, as this makes them much easier to read."
3474 msgstr ""
3475
3476 #. type: textblock
3477 #: ../examples/guestfs-recipes.pod:16
3478 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
3479 msgstr ""
3480
3481 #. type: textblock
3482 #: ../examples/guestfs-recipes.pod:20
3483 msgid ""
3484 "This page contains recipes for and links to things you can do using "
3485 "libguestfs, L<guestfish(1)> and the virt tools."
3486 msgstr ""
3487
3488 #. type: =head1
3489 #: ../examples/guestfs-recipes.pod:23
3490 msgid "Audit a virtual machine for setuid files"
3491 msgstr ""
3492
3493 #. type: textblock
3494 #: ../examples/guestfs-recipes.pod:25
3495 msgid ""
3496 "The link below contains a small program which can be used to audit a Linux "
3497 "virtual machine to see what setuid and setgid files it contains."
3498 msgstr ""
3499
3500 #. type: textblock
3501 #: ../examples/guestfs-recipes.pod:28
3502 msgid ""
3503 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
3504 "files/#content"
3505 msgstr ""
3506
3507 #. type: =head1
3508 #: ../examples/guestfs-recipes.pod:30
3509 msgid "Change the background image in a Windows XP VM"
3510 msgstr ""
3511
3512 #. type: textblock
3513 #: ../examples/guestfs-recipes.pod:32
3514 msgid ""
3515 "The links below explain how to use L<guestfish(1)> to change the background "
3516 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
3517 "be substantially different for each version of Windows."
3518 msgstr ""
3519
3520 #. type: textblock
3521 #: ../examples/guestfs-recipes.pod:37
3522 msgid ""
3523 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
3524 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
3525 msgstr ""
3526
3527 #. type: =head1
3528 #: ../examples/guestfs-recipes.pod:40
3529 msgid "Cloning a virtual machine (Linux)"
3530 msgstr ""
3531
3532 #. type: textblock
3533 #: ../examples/guestfs-recipes.pod:42
3534 msgid ""
3535 "The guestfish technique described in the link below works well for most "
3536 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
3537 "slightly."
3538 msgstr ""
3539
3540 #. type: textblock
3541 #: ../examples/guestfs-recipes.pod:46
3542 msgid ""
3543 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
3544 "vm/#content"
3545 msgstr ""
3546
3547 #. type: textblock
3548 #: ../examples/guestfs-recipes.pod:48
3549 msgid ""
3550 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
3551 "discussion."
3552 msgstr ""
3553
3554 #. type: textblock
3555 #: ../examples/guestfs-recipes.pod:51
3556 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
3557 msgstr ""
3558
3559 #. type: =head1
3560 #: ../examples/guestfs-recipes.pod:53
3561 msgid "Cloning a virtual machine (Windows)"
3562 msgstr ""
3563
3564 #. type: textblock
3565 #: ../examples/guestfs-recipes.pod:55
3566 msgid ""
3567 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
3568 "straightforward.  Currently there is code in the Aeolus Oz project which "
3569 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
3570 "we may add sysprepping ability."
3571 msgstr ""
3572
3573 #. type: textblock
3574 #: ../examples/guestfs-recipes.pod:60
3575 msgid ""
3576 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
3577 "list/2011-May/msg00019.html"
3578 msgstr ""
3579
3580 #. type: =head1
3581 #: ../examples/guestfs-recipes.pod:63
3582 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
3583 msgstr ""
3584
3585 #. type: textblock
3586 #: ../examples/guestfs-recipes.pod:65
3587 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
3588 msgstr ""
3589
3590 #. type: verbatim
3591 #: ../examples/guestfs-recipes.pod:67
3592 #, no-wrap
3593 msgid ""
3594 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
3595 "\n"
3596 msgstr ""
3597
3598 #. type: textblock
3599 #: ../examples/guestfs-recipes.pod:69
3600 msgid "To export just a subdirectory, eg. C</files>, do:"
3601 msgstr ""
3602
3603 #. type: verbatim
3604 #: ../examples/guestfs-recipes.pod:71
3605 #, no-wrap
3606 msgid ""
3607 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
3608 "\n"
3609 msgstr ""
3610
3611 #. type: =head1
3612 #: ../examples/guestfs-recipes.pod:73
3613 msgid "Create empty disk images"
3614 msgstr ""
3615
3616 #. type: textblock
3617 #: ../examples/guestfs-recipes.pod:75
3618 msgid ""
3619 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
3620 "The useful guide below explains the options available."
3621 msgstr ""
3622
3623 #. type: textblock
3624 #: ../examples/guestfs-recipes.pod:78
3625 msgid ""
3626 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
3627 "#content"
3628 msgstr ""
3629
3630 #. type: =head1
3631 #: ../examples/guestfs-recipes.pod:80
3632 msgid "Dump raw filesystem content from inside a disk image or VM"
3633 msgstr ""
3634
3635 #. type: textblock
3636 #: ../examples/guestfs-recipes.pod:82
3637 msgid ""
3638 "You can use the L<guestfish(1)> C<download> command to extract the raw "
3639 "filesystem content from any filesystem in a disk image or a VM (even one "
3640 "which is encrypted or buried inside an LV):"
3641 msgstr ""
3642
3643 #. type: verbatim
3644 #: ../examples/guestfs-recipes.pod:86
3645 #, no-wrap
3646 msgid ""
3647 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
3648 "\n"
3649 msgstr ""
3650
3651 #. type: verbatim
3652 #: ../examples/guestfs-recipes.pod:88
3653 #, no-wrap
3654 msgid ""
3655 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
3656 "\n"
3657 msgstr ""
3658
3659 #. type: textblock
3660 #: ../examples/guestfs-recipes.pod:90
3661 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
3662 msgstr ""
3663
3664 #. type: =head1
3665 #: ../examples/guestfs-recipes.pod:92
3666 msgid "Edit grub configuration in a VM"
3667 msgstr ""
3668
3669 #. type: textblock
3670 #: ../examples/guestfs-recipes.pod:94
3671 msgid "You can use this to:"
3672 msgstr ""
3673
3674 #. type: textblock
3675 #: ../examples/guestfs-recipes.pod:100
3676 msgid "Fix a virtual machine that does not boot."
3677 msgstr ""
3678
3679 #. type: textblock
3680 #: ../examples/guestfs-recipes.pod:104
3681 msgid "Change which kernel is used to boot the VM."
3682 msgstr ""
3683
3684 #. type: textblock
3685 #: ../examples/guestfs-recipes.pod:108
3686 msgid "Change kernel command line options."
3687 msgstr ""
3688
3689 #. type: textblock
3690 #: ../examples/guestfs-recipes.pod:112
3691 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
3692 msgstr ""
3693
3694 #. type: verbatim
3695 #: ../examples/guestfs-recipes.pod:114
3696 #, no-wrap
3697 msgid ""
3698 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
3699 "\n"
3700 msgstr ""
3701
3702 #. type: textblock
3703 #: ../examples/guestfs-recipes.pod:116
3704 msgid ""
3705 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
3706 "this:"
3707 msgstr ""
3708
3709 #. type: verbatim
3710 #: ../examples/guestfs-recipes.pod:119
3711 #, no-wrap
3712 msgid ""
3713 " virt-rescue -d BrokenGuest\n"
3714 "\n"
3715 msgstr ""
3716
3717 #. type: =head1
3718 #: ../examples/guestfs-recipes.pod:121
3719 msgid "Export any directory from a VM"
3720 msgstr ""
3721
3722 #. type: textblock
3723 #: ../examples/guestfs-recipes.pod:123
3724 msgid ""
3725 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
3726 msgstr ""
3727
3728 #. type: verbatim
3729 #: ../examples/guestfs-recipes.pod:126
3730 #, no-wrap
3731 msgid ""
3732 " virt-copy-out -d Guest /home .\n"
3733 "\n"
3734 msgstr ""
3735
3736 #. type: textblock
3737 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
3738 #: ../fish/guestfish-actions.pod:1327 ../fish/guestfish-actions.pod:1592
3739 #: ../fish/guestfish-actions.pod:2001 ../src/guestfs-actions.pod:18
3740 #: ../src/guestfs-actions.pod:2029 ../src/guestfs-actions.pod:2451
3741 #: ../src/guestfs-actions.pod:3002 ../src/guestfs.pod:1667
3742 #: ../tools/virt-win-reg.pl:706
3743 msgid "Notes:"
3744 msgstr ""
3745
3746 #. type: textblock
3747 #: ../examples/guestfs-recipes.pod:134
3748 msgid ""
3749 "The final dot of the command is not a printing error.  It means we want to "
3750 "copy out to the current directory."
3751 msgstr ""
3752
3753 #. type: textblock
3754 #: ../examples/guestfs-recipes.pod:139
3755 msgid "This creates a directory called C<home> under the current directory."
3756 msgstr ""
3757
3758 #. type: textblock
3759 #: ../examples/guestfs-recipes.pod:143
3760 msgid ""
3761 "If the guest is a Windows guest then you can use drive letters and "
3762 "backslashes, but you must prefix the path with C<win:> and quote it to "
3763 "protect it from the shell, like this:"
3764 msgstr ""
3765
3766 #. type: verbatim
3767 #: ../examples/guestfs-recipes.pod:147
3768 #, no-wrap
3769 msgid ""
3770 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
3771 "\n"
3772 msgstr ""
3773
3774 #. type: textblock
3775 #: ../examples/guestfs-recipes.pod:149
3776 msgid "To get the output as a compressed tarball, do:"
3777 msgstr ""
3778
3779 #. type: verbatim
3780 #: ../examples/guestfs-recipes.pod:151
3781 #, no-wrap
3782 msgid ""
3783 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
3784 "\n"
3785 msgstr ""
3786
3787 #. type: textblock
3788 #: ../examples/guestfs-recipes.pod:153
3789 msgid ""
3790 "Although it sounds tempting, this is usually not a reliable way to get a "
3791 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
3792 "org/FAQ.html#backup"
3793 msgstr ""
3794
3795 #. type: =head1
3796 #: ../examples/guestfs-recipes.pod:157
3797 msgid "Find out which user is using the most space"
3798 msgstr ""
3799
3800 #. type: textblock
3801 #: ../examples/guestfs-recipes.pod:159
3802 msgid ""
3803 "This simple script examines a Linux guest to find out which user is using "
3804 "the most space in their home directory:"
3805 msgstr ""
3806
3807 #. type: verbatim
3808 #: ../examples/guestfs-recipes.pod:162
3809 #, no-wrap
3810 msgid ""
3811 " #!/bin/sh -\n"
3812 " \n"
3813 msgstr ""
3814
3815 #. type: verbatim
3816 #: ../examples/guestfs-recipes.pod:164
3817 #, no-wrap
3818 msgid ""
3819 " set -e\n"
3820 " \n"
3821 msgstr ""
3822
3823 #. type: verbatim
3824 #: ../examples/guestfs-recipes.pod:166
3825 #, no-wrap
3826 msgid ""
3827 " vm=\"$1\"\n"
3828 " dir=/home\n"
3829 " \n"
3830 msgstr ""
3831
3832 #. type: verbatim
3833 #: ../examples/guestfs-recipes.pod:169
3834 #, no-wrap
3835 msgid ""
3836 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
3837 " \n"
3838 msgstr ""
3839
3840 #. type: verbatim
3841 #: ../examples/guestfs-recipes.pod:171
3842 #, no-wrap
3843 msgid ""
3844 " for d in $(guestfish --remote ls \"$dir\"); do\n"
3845 "     echo -n \"$dir/$d\"\n"
3846 "     echo -ne '\\t'\n"
3847 "     guestfish --remote du \"$dir/$d\";\n"
3848 " done | sort -nr -k 2\n"
3849 " \n"
3850 msgstr ""
3851
3852 #. type: verbatim
3853 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
3854 #, no-wrap
3855 msgid ""
3856 " guestfish --remote exit\n"
3857 "\n"
3858 msgstr ""
3859
3860 #. type: =head1
3861 #: ../examples/guestfs-recipes.pod:179
3862 msgid "Get DHCP address from a VM"
3863 msgstr ""
3864
3865 #. type: textblock
3866 #: ../examples/guestfs-recipes.pod:181
3867 msgid ""
3868 "The link below explains the many different possible techniques for getting "
3869 "the last assigned DHCP address of a virtual machine."
3870 msgstr ""
3871
3872 #. type: textblock
3873 #: ../examples/guestfs-recipes.pod:184
3874 msgid ""
3875 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
3876 "a-virtual-machine-disk-image/#content"
3877 msgstr ""
3878
3879 #. type: textblock
3880 #: ../examples/guestfs-recipes.pod:186
3881 msgid ""
3882 "In the libguestfs source examples directory you will find the latest version "
3883 "of the C<virt-dhcp-address.c> program."
3884 msgstr ""
3885
3886 #. type: =head1
3887 #: ../examples/guestfs-recipes.pod:189
3888 msgid "Get the operating system product name string"
3889 msgstr ""
3890
3891 #. type: textblock
3892 #: ../examples/guestfs-recipes.pod:191
3893 msgid "Save the following script into a file called C<product-name.sh>:"
3894 msgstr ""
3895
3896 #. type: verbatim
3897 #: ../examples/guestfs-recipes.pod:193
3898 #, no-wrap
3899 msgid ""
3900 " #!/bin/sh -\n"
3901 " set -e\n"
3902 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
3903 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
3904 " guestfish --remote inspect-get-product-name \"$root\"\n"
3905 " guestfish --remote exit\n"
3906 "\n"
3907 msgstr ""
3908
3909 #. type: textblock
3910 #: ../examples/guestfs-recipes.pod:200
3911 msgid "Make the script executable and run it on a named guest:"
3912 msgstr ""
3913
3914 #. type: verbatim
3915 #: ../examples/guestfs-recipes.pod:202
3916 #, no-wrap
3917 msgid ""
3918 " # product-name.sh RHEL60x64\n"
3919 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
3920 "\n"
3921 msgstr ""
3922
3923 #. type: textblock
3924 #: ../examples/guestfs-recipes.pod:205
3925 msgid ""
3926 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
3927 "C<xpath> command line tool or from your favourite programming language:"
3928 msgstr ""
3929
3930 #. type: verbatim
3931 #: ../examples/guestfs-recipes.pod:209
3932 #, no-wrap
3933 msgid ""
3934 " # virt-inspector RHEL60x64 > xml\n"
3935 " # xpath '//product_name' < xml\n"
3936 " Found 1 nodes:\n"
3937 " -- NODE --\n"
3938 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
3939 "\n"
3940 msgstr ""
3941
3942 #. type: =head1
3943 #: ../examples/guestfs-recipes.pod:215
3944 msgid "Get the default boot kernel for a Linux VM"
3945 msgstr ""
3946
3947 #. type: textblock
3948 #: ../examples/guestfs-recipes.pod:217
3949 msgid ""
3950 "The link below contains a program to print the default boot kernel for a "
3951 "Linux VM."
3952 msgstr ""
3953
3954 #. type: textblock
3955 #: ../examples/guestfs-recipes.pod:220
3956 msgid ""
3957 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
3958 "kernel-for-a-vm/#content"
3959 msgstr ""
3960
3961 #. type: textblock
3962 #: ../examples/guestfs-recipes.pod:222
3963 msgid ""
3964 "It uses Augeas, and the technique is generally applicable for many different "
3965 "tasks, such as:"
3966 msgstr ""
3967
3968 #. type: textblock
3969 #: ../examples/guestfs-recipes.pod:229
3970 msgid "listing the user accounts in the guest"
3971 msgstr ""
3972
3973 #. type: textblock
3974 #: ../examples/guestfs-recipes.pod:233
3975 msgid "what repositories is it configured to use"
3976 msgstr ""
3977
3978 #. type: textblock
3979 #: ../examples/guestfs-recipes.pod:237
3980 msgid "what NTP servers does it connect to"
3981 msgstr ""
3982
3983 #. type: textblock
3984 #: ../examples/guestfs-recipes.pod:241
3985 msgid "what were the boot messages last time it booted"
3986 msgstr ""
3987
3988 #. type: textblock
3989 #: ../examples/guestfs-recipes.pod:245
3990 msgid "listing who was logged in recently"
3991 msgstr ""
3992
3993 #. type: textblock
3994 #: ../examples/guestfs-recipes.pod:249
3995 msgid "http://augeas.net/"
3996 msgstr ""
3997
3998 #. type: =head1
3999 #: ../examples/guestfs-recipes.pod:251
4000 msgid "Install RPMs in a guest"
4001 msgstr ""
4002
4003 #. type: textblock
4004 #: ../examples/guestfs-recipes.pod:253
4005 msgid ""
4006 "The link below contains a method to install RPMs in a guest.  In fact the "
4007 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
4008 "installs them next time the guest is booted.  You could use this technique "
4009 "to install vital security updates in an offline guest."
4010 msgstr ""
4011
4012 #. type: textblock
4013 #: ../examples/guestfs-recipes.pod:259
4014 msgid ""
4015 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
4016 msgstr ""
4017
4018 #. type: =head1
4019 #: ../examples/guestfs-recipes.pod:261
4020 msgid "List applications installed in a VM"
4021 msgstr ""
4022
4023 #. type: textblock
4024 #: ../examples/guestfs-recipes.pod:263
4025 msgid "Save the following to a file C<list-apps.sh>:"
4026 msgstr ""
4027
4028 #. type: verbatim
4029 #: ../examples/guestfs-recipes.pod:265
4030 #, no-wrap
4031 msgid ""
4032 " #!/bin/sh -\n"
4033 " set -e\n"
4034 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4035 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4036 " guestfish --remote inspect-list-applications \"$root\"\n"
4037 " guestfish --remote exit\n"
4038 "\n"
4039 msgstr ""
4040
4041 #. type: textblock
4042 #: ../examples/guestfs-recipes.pod:272
4043 msgid ""
4044 "Make the file executable and then you can run it on any named virtual "
4045 "machine:"
4046 msgstr ""
4047
4048 #. type: verbatim
4049 #: ../examples/guestfs-recipes.pod:275
4050 #, no-wrap
4051 msgid ""
4052 " # list-apps.sh WinGuest\n"
4053 " [0] = {\n"
4054 "   app_name: Mozilla Firefox (3.6.12)\n"
4055 "   app_display_name: Mozilla Firefox (3.6.12)\n"
4056 "   app_epoch: 0\n"
4057 "   app_version: 3.6.12 (en-GB)\n"
4058 "   app_release:\n"
4059 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
4060 "   app_trans_path:\n"
4061 "   app_publisher: Mozilla\n"
4062 "   app_url: http://www.mozilla.com/en-GB/\n"
4063 "   app_source_package:\n"
4064 "   app_summary:\n"
4065 "   app_description: Mozilla Firefox\n"
4066 " }\n"
4067 " [1] = {\n"
4068 "   app_name: VLC media player\n"
4069 "   app_display_name: VLC media player 1.1.5\n"
4070 "   app_epoch: 0\n"
4071 "   app_version: 1.1.5\n"
4072 "   app_release:\n"
4073 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
4074 "   app_trans_path:\n"
4075 "   app_publisher: VideoLAN\n"
4076 "   app_url: http://www.videolan.org/\n"
4077 "   app_source_package:\n"
4078 "   app_summary:\n"
4079 "   app_description:\n"
4080 " }\n"
4081 "\n"
4082 msgstr ""
4083
4084 #. type: textblock
4085 #: ../examples/guestfs-recipes.pod:305
4086 msgid ""
4087 "If you want to run the script on disk images (instead of libvirt virtual "
4088 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
4089 ">."
4090 msgstr ""
4091
4092 #. type: =head1
4093 #: ../examples/guestfs-recipes.pod:309
4094 msgid "List files and directories in a VM"
4095 msgstr ""
4096
4097 #. type: textblock
4098 #: ../examples/guestfs-recipes.pod:311
4099 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
4100 msgstr ""
4101
4102 #. type: verbatim
4103 #: ../examples/guestfs-recipes.pod:313
4104 #, no-wrap
4105 msgid ""
4106 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
4107 "\n"
4108 msgstr ""
4109
4110 #. type: =head1
4111 #: ../examples/guestfs-recipes.pod:315
4112 msgid "List services in a Windows VM"
4113 msgstr ""
4114
4115 #. type: textblock
4116 #: ../examples/guestfs-recipes.pod:317
4117 msgid ""
4118 "The link below contains a script that can be used to list out the services "
4119 "from a Windows VM, and whether those services run at boot time or are loaded "
4120 "on demand."
4121 msgstr ""
4122
4123 #. type: textblock
4124 #: ../examples/guestfs-recipes.pod:321
4125 msgid ""
4126 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
4127 "#content"
4128 msgstr ""
4129
4130 #. type: =head1
4131 #: ../examples/guestfs-recipes.pod:323
4132 msgid "Make a disk image sparse"
4133 msgstr ""
4134
4135 #. type: textblock
4136 #: ../examples/guestfs-recipes.pod:325
4137 msgid ""
4138 "The link below contains some guides for making a disk image sparse (or "
4139 "reintroducing sparseness)."
4140 msgstr ""
4141
4142 #. type: textblock
4143 #: ../examples/guestfs-recipes.pod:328
4144 msgid ""
4145 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
4146 msgstr ""
4147
4148 #. type: =head1
4149 #: ../examples/guestfs-recipes.pod:330
4150 msgid "Monitor disk usage over time"
4151 msgstr ""
4152
4153 #. type: textblock
4154 #: ../examples/guestfs-recipes.pod:332
4155 msgid ""
4156 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
4157 "The link below contains a guide."
4158 msgstr ""
4159
4160 #. type: textblock
4161 #: ../examples/guestfs-recipes.pod:335
4162 msgid "http://virt-tools.org/learning/advanced-virt-df/"
4163 msgstr ""
4164
4165 #. type: =head1
4166 #: ../examples/guestfs-recipes.pod:337
4167 msgid "Reading the Windows Event Log from Windows Vista (or later)"
4168 msgstr ""
4169
4170 #. type: textblock
4171 #: ../examples/guestfs-recipes.pod:339
4172 msgid ""
4173 "L<guestfish(1)> plus the tools described in the link below can be used to "
4174 "read out the Windows Event Log from any virtual machine running Windows "
4175 "Vista or a later version."
4176 msgstr ""
4177
4178 #. type: textblock
4179 #: ../examples/guestfs-recipes.pod:343
4180 msgid ""
4181 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
4182 "guestfish/#content"
4183 msgstr ""
4184
4185 #. type: =head1
4186 #: ../examples/guestfs-recipes.pod:345
4187 msgid "Remove root password (Linux)"
4188 msgstr ""
4189
4190 #. type: textblock
4191 #: ../examples/guestfs-recipes.pod:347
4192 msgid ""
4193 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
4194 "files.  One use is to remove the root password from a Linux guest:"
4195 msgstr ""
4196
4197 #. type: verbatim
4198 #: ../examples/guestfs-recipes.pod:350
4199 #, no-wrap
4200 msgid ""
4201 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4202 "\n"
4203 msgstr ""
4204
4205 #. type: =head1
4206 #: ../examples/guestfs-recipes.pod:352
4207 msgid "Remove Administrator password (Windows)"
4208 msgstr ""
4209
4210 #. type: textblock
4211 #: ../examples/guestfs-recipes.pod:354
4212 msgid ""
4213 "The link below contains one technique for removing the Administrator "
4214 "password from a Windows VM, or to be more precise, it gives you a command "
4215 "prompt the next time you log in which you can use to bypass any security:"
4216 msgstr ""
4217
4218 #. type: textblock
4219 #: ../examples/guestfs-recipes.pod:359
4220 msgid ""
4221 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
4222 "administrator-password-with-guestfish/"
4223 msgstr ""
4224
4225 #. type: =head1
4226 #: ../examples/guestfs-recipes.pod:361
4227 msgid "Unpack a live CD"
4228 msgstr ""
4229
4230 #. type: textblock
4231 #: ../examples/guestfs-recipes.pod:363
4232 msgid ""
4233 "Linux live CDs often contain multiple layers of disk images wrapped like a "
4234 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
4235 "layers, as outlined in the guide below."
4236 msgstr ""
4237
4238 #. type: textblock
4239 #: ../examples/guestfs-recipes.pod:367
4240 msgid ""
4241 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
4242 "cd/#content"
4243 msgstr ""
4244
4245 #. type: =head1
4246 #: ../examples/guestfs-recipes.pod:369
4247 msgid "Uploading and downloading files"
4248 msgstr ""
4249
4250 #. type: textblock
4251 #: ../examples/guestfs-recipes.pod:371
4252 msgid ""
4253 "The link below contains general tips on uploading (copying in)  and "
4254 "downloading (copying out) files from VMs."
4255 msgstr ""
4256
4257 #. type: textblock
4258 #: ../examples/guestfs-recipes.pod:374
4259 msgid ""
4260 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
4261 msgstr ""
4262
4263 #. type: =head1
4264 #: ../examples/guestfs-recipes.pod:376
4265 msgid "Use libguestfs tools on VMware ESX guests"
4266 msgstr ""
4267
4268 #. type: textblock
4269 #: ../examples/guestfs-recipes.pod:378
4270 msgid ""
4271 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
4272 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
4273 msgstr ""
4274
4275 #. type: textblock
4276 #: ../examples/guestfs-recipes.pod:382
4277 msgid ""
4278 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
4279 "guests/#content"
4280 msgstr ""
4281
4282 #. type: textblock
4283 #: ../examples/guestfs-recipes.pod:386
4284 msgid ""
4285 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
4286 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
4287 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4288 msgstr ""
4289
4290 #. type: textblock
4291 #: ../examples/guestfs-recipes.pod:403
4292 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
4293 msgstr ""
4294
4295 #. type: =head2
4296 #: ../fish/guestfish-actions.pod:1
4297 msgid "add-cdrom"
4298 msgstr ""
4299
4300 #. type: verbatim
4301 #: ../fish/guestfish-actions.pod:3
4302 #, no-wrap
4303 msgid ""
4304 " add-cdrom filename\n"
4305 "\n"
4306 msgstr ""
4307
4308 #. type: textblock
4309 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
4310 msgid "This function adds a virtual CD-ROM disk image to the guest."
4311 msgstr ""
4312
4313 #. type: textblock
4314 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
4315 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
4316 msgstr ""
4317
4318 #. type: textblock
4319 #: ../fish/guestfish-actions.pod:15
4320 msgid ""
4321 "This call checks for the existence of C<filename>.  This stops you from "
4322 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4323 "and C<http:> URLs.  To specify those, use the general L</config> call "
4324 "instead."
4325 msgstr ""
4326
4327 #. type: textblock
4328 #: ../fish/guestfish-actions.pod:22
4329 msgid ""
4330 "If you just want to add an ISO file (often you use this as an efficient way "
4331 "to transfer large files into the guest), then you should probably use L</add-"
4332 "drive-ro> instead."
4333 msgstr ""
4334
4335 #. type: textblock
4336 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163
4337 #: ../fish/guestfish-actions.pod:177
4338 msgid ""
4339 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
4340 "instead."
4341 msgstr ""
4342
4343 #. type: textblock
4344 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166
4345 #: ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:1026
4346 #: ../fish/guestfish-actions.pod:1386 ../fish/guestfish-actions.pod:1400
4347 #: ../fish/guestfish-actions.pod:3157 ../fish/guestfish-actions.pod:3364
4348 #: ../fish/guestfish-actions.pod:3478 ../fish/guestfish-actions.pod:3526
4349 #: ../fish/guestfish-actions.pod:4439 ../fish/guestfish-actions.pod:4462
4350 #: ../fish/guestfish-actions.pod:4484 ../fish/guestfish-actions.pod:4522
4351 #: ../fish/guestfish-actions.pod:5171 ../fish/guestfish-actions.pod:5277
4352 #: ../src/guestfs-actions.pod:10 ../src/guestfs-actions.pod:252
4353 #: ../src/guestfs-actions.pod:273 ../src/guestfs-actions.pod:1615
4354 #: ../src/guestfs-actions.pod:2114 ../src/guestfs-actions.pod:2135
4355 #: ../src/guestfs-actions.pod:4765 ../src/guestfs-actions.pod:5068
4356 #: ../src/guestfs-actions.pod:5297 ../src/guestfs-actions.pod:5397
4357 #: ../src/guestfs-actions.pod:6677 ../src/guestfs-actions.pod:6721
4358 #: ../src/guestfs-actions.pod:6755 ../src/guestfs-actions.pod:6818
4359 #: ../src/guestfs-actions.pod:7750 ../src/guestfs-actions.pod:7859
4360 #: ../src/guestfs-actions.pod:8042
4361 msgid ""
4362 "Deprecated functions will not be removed from the API, but the fact that "
4363 "they are deprecated indicates that there are problems with correct use of "
4364 "these functions."
4365 msgstr ""
4366
4367 #. type: =head2
4368 #: ../fish/guestfish-actions.pod:35
4369 msgid "add-domain"
4370 msgstr ""
4371
4372 #. type: =head2
4373 #: ../fish/guestfish-actions.pod:37
4374 msgid "domain"
4375 msgstr ""
4376
4377 #. type: verbatim
4378 #: ../fish/guestfish-actions.pod:39
4379 #, no-wrap
4380 msgid ""
4381 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
4382 "\n"
4383 msgstr ""
4384
4385 #. type: textblock
4386 #: ../fish/guestfish-actions.pod:41
4387 msgid ""
4388 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4389 "It works by connecting to libvirt, requesting the domain and domain XML from "
4390 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
4391 msgstr ""
4392
4393 #. type: textblock
4394 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
4395 msgid ""
4396 "The number of disks added is returned.  This operation is atomic: if an "
4397 "error is returned, then no disks are added."
4398 msgstr ""
4399
4400 #. type: textblock
4401 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
4402 msgid ""
4403 "This function does some minimal checks to make sure the libvirt domain is "
4404 "not running (unless C<readonly> is true).  In a future version we will try "
4405 "to acquire the libvirt lock on each disk."
4406 msgstr ""
4407
4408 #. type: textblock
4409 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
4410 msgid ""
4411 "Disks must be accessible locally.  This often means that adding disks from a "
4412 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4413 "unless those disks are accessible via the same device path locally too."
4414 msgstr ""
4415
4416 #. type: textblock
4417 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
4418 msgid ""
4419 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4420 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
4421 "libvirt URI (or one set through an environment variable, see the libvirt "
4422 "documentation for full details)."
4423 msgstr ""
4424
4425 #. type: textblock
4426 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
4427 msgid ""
4428 "The optional C<live> flag controls whether this call will try to connect to "
4429 "a running virtual machine C<guestfsd> process if it sees a suitable "
4430 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
4431 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
4432 "DAEMONS> for more information."
4433 msgstr ""
4434
4435 #. type: textblock
4436 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
4437 msgid ""
4438 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
4439 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
4440 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
4441 "as usual."
4442 msgstr ""
4443
4444 #. type: textblock
4445 #: ../fish/guestfish-actions.pod:76
4446 msgid ""
4447 "The other optional parameters are passed directly through to L</add-drive-"
4448 "opts>."
4449 msgstr ""
4450
4451 #. type: textblock
4452 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
4453 #: ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:784
4454 #: ../fish/guestfish-actions.pod:805 ../fish/guestfish-actions.pod:2040
4455 #: ../fish/guestfish-actions.pod:3206 ../fish/guestfish-actions.pod:3379
4456 #: ../fish/guestfish-actions.pod:3514
4457 msgid ""
4458 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
4459 msgstr ""
4460
4461 #. type: =head2
4462 #: ../fish/guestfish-actions.pod:81
4463 msgid "add-drive"
4464 msgstr ""
4465
4466 #. type: verbatim
4467 #: ../fish/guestfish-actions.pod:83
4468 #, no-wrap
4469 msgid ""
4470 " add-drive filename\n"
4471 "\n"
4472 msgstr ""
4473
4474 #. type: textblock
4475 #: ../fish/guestfish-actions.pod:85
4476 msgid ""
4477 "This function is the equivalent of calling L</add-drive-opts> with no "
4478 "optional parameters, so the disk is added writable, with the format being "
4479 "detected automatically."
4480 msgstr ""
4481
4482 #. type: textblock
4483 #: ../fish/guestfish-actions.pod:89
4484 msgid ""
4485 "Automatic detection of the format opens you up to a potential security hole "
4486 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4487 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4488 "you should think about replacing calls to this function with calls to L</add-"
4489 "drive-opts>, and specifying the format."
4490 msgstr ""
4491
4492 #. type: =head2
4493 #: ../fish/guestfish-actions.pod:96
4494 msgid "add-drive-opts"
4495 msgstr ""
4496
4497 #. type: =head2
4498 #: ../fish/guestfish-actions.pod:98
4499 msgid "add"
4500 msgstr ""
4501
4502 #. type: verbatim
4503 #: ../fish/guestfish-actions.pod:100
4504 #, no-wrap
4505 msgid ""
4506 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
4507 "\n"
4508 msgstr ""
4509
4510 #. type: textblock
4511 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
4512 msgid ""
4513 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4514 "The first time you call this function, the disk appears as C</dev/sda>, the "
4515 "second time as C</dev/sdb>, and so on."
4516 msgstr ""
4517
4518 #. type: textblock
4519 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
4520 msgid ""
4521 "You don't necessarily need to be root when using libguestfs.  However you "
4522 "obviously do need sufficient permissions to access the filename for whatever "
4523 "operations you want to perform (ie. read access if you just want to read the "
4524 "image or write access if you want to modify the image)."
4525 msgstr ""
4526
4527 #. type: textblock
4528 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
4529 msgid "This call checks that C<filename> exists."
4530 msgstr ""
4531
4532 #. type: textblock
4533 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3168
4534 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4802
4535 msgid "The optional arguments are:"
4536 msgstr ""
4537
4538 #. type: =item
4539 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
4540 msgid "C<readonly>"
4541 msgstr ""
4542
4543 #. type: textblock
4544 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
4545 msgid ""
4546 "If true then the image is treated as read-only.  Writes are still allowed, "
4547 "but they are stored in a temporary snapshot overlay which is discarded at "
4548 "the end.  The disk that you add is not modified."
4549 msgstr ""
4550
4551 #. type: =item
4552 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
4553 msgid "C<format>"
4554 msgstr ""
4555
4556 #. type: textblock
4557 #: ../fish/guestfish-actions.pod:127
4558 msgid ""
4559 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
4560 "add-drive-ro>) then the format is automatically detected.  Possible formats "
4561 "include C<raw> and C<qcow2>."
4562 msgstr ""
4563
4564 #. type: textblock
4565 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
4566 msgid ""
4567 "Automatic detection of the format opens you up to a potential security hole "
4568 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4569 "RHBZ#642934.  Specifying the format closes this security hole."
4570 msgstr ""
4571
4572 #. type: =item
4573 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
4574 msgid "C<iface>"
4575 msgstr ""
4576
4577 #. type: textblock
4578 #: ../fish/guestfish-actions.pod:138
4579 msgid ""
4580 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
4581 "add-drive-with-if> call (q.v.)"
4582 msgstr ""
4583
4584 #. type: =head2
4585 #: ../fish/guestfish-actions.pod:145
4586 msgid "add-drive-ro"
4587 msgstr ""
4588
4589 #. type: =head2
4590 #: ../fish/guestfish-actions.pod:147
4591 msgid "add-ro"
4592 msgstr ""
4593
4594 #. type: verbatim
4595 #: ../fish/guestfish-actions.pod:149
4596 #, no-wrap
4597 msgid ""
4598 " add-drive-ro filename\n"
4599 "\n"
4600 msgstr ""
4601
4602 #. type: textblock
4603 #: ../fish/guestfish-actions.pod:151
4604 msgid ""
4605 "This function is the equivalent of calling L</add-drive-opts> with the "
4606 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
4607 "is added read-only, with the format being detected automatically."
4608 msgstr ""
4609
4610 #. type: =head2
4611 #: ../fish/guestfish-actions.pod:156
4612 msgid "add-drive-ro-with-if"
4613 msgstr ""
4614
4615 #. type: verbatim
4616 #: ../fish/guestfish-actions.pod:158
4617 #, no-wrap
4618 msgid ""
4619 " add-drive-ro-with-if filename iface\n"
4620 "\n"
4621 msgstr ""
4622
4623 #. type: textblock
4624 #: ../fish/guestfish-actions.pod:160
4625 msgid ""
4626 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
4627 "interface emulation to use at run time."
4628 msgstr ""
4629
4630 #. type: =head2
4631 #: ../fish/guestfish-actions.pod:170
4632 msgid "add-drive-with-if"
4633 msgstr ""
4634
4635 #. type: verbatim
4636 #: ../fish/guestfish-actions.pod:172
4637 #, no-wrap
4638 msgid ""
4639 " add-drive-with-if filename iface\n"
4640 "\n"
4641 msgstr ""
4642
4643 #. type: textblock
4644 #: ../fish/guestfish-actions.pod:174
4645 msgid ""
4646 "This is the same as L</add-drive> but it allows you to specify the QEMU "
4647 "interface emulation to use at run time."
4648 msgstr ""
4649
4650 #. type: =head2
4651 #: ../fish/guestfish-actions.pod:184
4652 msgid "aug-clear"
4653 msgstr ""
4654
4655 #. type: verbatim
4656 #: ../fish/guestfish-actions.pod:186
4657 #, no-wrap
4658 msgid ""
4659 " aug-clear augpath\n"
4660 "\n"
4661 msgstr ""
4662
4663 #. type: textblock
4664 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
4665 msgid ""
4666 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4667 "L<augtool(1)> C<clear> command."
4668 msgstr ""
4669
4670 #. type: =head2
4671 #: ../fish/guestfish-actions.pod:191
4672 msgid "aug-close"
4673 msgstr ""
4674
4675 #. type: verbatim
4676 #: ../fish/guestfish-actions.pod:193
4677 #, no-wrap
4678 msgid ""
4679 " aug-close\n"
4680 "\n"
4681 msgstr ""
4682
4683 #. type: textblock
4684 #: ../fish/guestfish-actions.pod:195
4685 msgid ""
4686 "Close the current Augeas handle and free up any resources used by it.  After "
4687 "calling this, you have to call L</aug-init> again before you can use any "
4688 "other Augeas functions."
4689 msgstr ""
4690
4691 #. type: =head2
4692 #: ../fish/guestfish-actions.pod:200
4693 msgid "aug-defnode"
4694 msgstr ""
4695
4696 #. type: verbatim
4697 #: ../fish/guestfish-actions.pod:202
4698 #, no-wrap
4699 msgid ""
4700 " aug-defnode name expr val\n"
4701 "\n"
4702 msgstr ""
4703
4704 #. type: textblock
4705 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
4706 msgid ""
4707 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4708 msgstr ""
4709
4710 #. type: textblock
4711 #: ../fish/guestfish-actions.pod:207
4712 msgid ""
4713 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4714 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
4715 "containing that single node."
4716 msgstr ""
4717
4718 #. type: textblock
4719 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
4720 msgid ""
4721 "On success this returns a pair containing the number of nodes in the "
4722 "nodeset, and a boolean flag if a node was created."
4723 msgstr ""
4724
4725 #. type: =head2
4726 #: ../fish/guestfish-actions.pod:215
4727 msgid "aug-defvar"
4728 msgstr ""
4729
4730 #. type: verbatim
4731 #: ../fish/guestfish-actions.pod:217
4732 #, no-wrap
4733 msgid ""
4734 " aug-defvar name expr\n"
4735 "\n"
4736 msgstr ""
4737
4738 #. type: textblock
4739 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
4740 msgid ""
4741 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4742 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4743 msgstr ""
4744
4745 #. type: textblock
4746 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
4747 msgid ""
4748 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4749 "evaluates to something which is not a nodeset."
4750 msgstr ""
4751
4752 #. type: =head2
4753 #: ../fish/guestfish-actions.pod:226
4754 msgid "aug-get"
4755 msgstr ""
4756
4757 #. type: verbatim
4758 #: ../fish/guestfish-actions.pod:228
4759 #, no-wrap
4760 msgid ""
4761 " aug-get augpath\n"
4762 "\n"
4763 msgstr ""
4764
4765 #. type: textblock
4766 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
4767 msgid ""
4768 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4769 "node, the C<value> is returned."
4770 msgstr ""
4771
4772 #. type: =head2
4773 #: ../fish/guestfish-actions.pod:233
4774 msgid "aug-init"
4775 msgstr ""
4776
4777 #. type: verbatim
4778 #: ../fish/guestfish-actions.pod:235
4779 #, no-wrap
4780 msgid ""
4781 " aug-init root flags\n"
4782 "\n"
4783 msgstr ""
4784
4785 #. type: textblock
4786 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
4787 msgid ""
4788 "Create a new Augeas handle for editing configuration files.  If there was "
4789 "any previous Augeas handle associated with this guestfs session, then it is "
4790 "closed."
4791 msgstr ""
4792
4793 #. type: textblock
4794 #: ../fish/guestfish-actions.pod:241
4795 msgid "You must call this before using any other L</aug-*> commands."
4796 msgstr ""
4797
4798 #. type: textblock
4799 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
4800 msgid ""
4801 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4802 msgstr ""
4803
4804 #. type: textblock
4805 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
4806 msgid ""
4807 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4808 "logical I<or> of the following integers:"
4809 msgstr ""
4810
4811 #. type: =item
4812 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
4813 msgid "C<AUG_SAVE_BACKUP> = 1"
4814 msgstr ""
4815
4816 #. type: textblock
4817 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
4818 msgid "Keep the original file with a C<.augsave> extension."
4819 msgstr ""
4820
4821 #. type: =item
4822 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
4823 msgid "C<AUG_SAVE_NEWFILE> = 2"
4824 msgstr ""
4825
4826 #. type: textblock
4827 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
4828 msgid ""
4829 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4830 "original.  Overrides C<AUG_SAVE_BACKUP>."
4831 msgstr ""
4832
4833 #. type: =item
4834 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
4835 msgid "C<AUG_TYPE_CHECK> = 4"
4836 msgstr ""
4837
4838 #. type: textblock
4839 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
4840 msgid "Typecheck lenses."
4841 msgstr ""
4842
4843 #. type: textblock
4844 #: ../fish/guestfish-actions.pod:266
4845 msgid ""
4846 "This option is only useful when debugging Augeas lenses.  Use of this option "
4847 "may require additional memory for the libguestfs appliance.  You may need to "
4848 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
4849 msgstr ""
4850
4851 #. type: =item
4852 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
4853 msgid "C<AUG_NO_STDINC> = 8"
4854 msgstr ""
4855
4856 #. type: textblock
4857 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
4858 msgid "Do not use standard load path for modules."
4859 msgstr ""
4860
4861 #. type: =item
4862 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
4863 msgid "C<AUG_SAVE_NOOP> = 16"
4864 msgstr ""
4865
4866 #. type: textblock
4867 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
4868 msgid "Make save a no-op, just record what would have been changed."
4869 msgstr ""
4870
4871 #. type: =item
4872 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
4873 msgid "C<AUG_NO_LOAD> = 32"
4874 msgstr ""
4875
4876 #. type: textblock
4877 #: ../fish/guestfish-actions.pod:281
4878 msgid "Do not load the tree in L</aug-init>."
4879 msgstr ""
4880
4881 #. type: textblock
4882 #: ../fish/guestfish-actions.pod:285
4883 msgid "To close the handle, you can call L</aug-close>."
4884 msgstr ""
4885
4886 #. type: textblock
4887 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
4888 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4889 msgstr ""
4890
4891 #. type: =head2
4892 #: ../fish/guestfish-actions.pod:289
4893 msgid "aug-insert"
4894 msgstr ""
4895
4896 #. type: verbatim
4897 #: ../fish/guestfish-actions.pod:291
4898 #, no-wrap
4899 msgid ""
4900 " aug-insert augpath label true|false\n"
4901 "\n"
4902 msgstr ""
4903
4904 #. type: textblock
4905 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
4906 msgid ""
4907 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4908 "or after C<path> (depending on the boolean flag C<before>)."
4909 msgstr ""
4910
4911 #. type: textblock
4912 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
4913 msgid ""
4914 "C<path> must match exactly one existing node in the tree, and C<label> must "
4915 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4916 msgstr ""
4917
4918 #. type: =head2
4919 #: ../fish/guestfish-actions.pod:301
4920 msgid "aug-load"
4921 msgstr ""
4922
4923 #. type: verbatim
4924 #: ../fish/guestfish-actions.pod:303
4925 #, no-wrap
4926 msgid ""
4927 " aug-load\n"
4928 "\n"
4929 msgstr ""
4930
4931 #. type: textblock
4932 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
4933 msgid "Load files into the tree."
4934 msgstr ""
4935
4936 #. type: textblock
4937 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
4938 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4939 msgstr ""
4940
4941 #. type: =head2
4942 #: ../fish/guestfish-actions.pod:310
4943 msgid "aug-ls"
4944 msgstr ""
4945
4946 #. type: verbatim
4947 #: ../fish/guestfish-actions.pod:312
4948 #, no-wrap
4949 msgid ""
4950 " aug-ls augpath\n"
4951 "\n"
4952 msgstr ""
4953
4954 #. type: textblock
4955 #: ../fish/guestfish-actions.pod:314
4956 msgid ""
4957 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
4958 "resulting nodes into alphabetical order."
4959 msgstr ""
4960
4961 #. type: =head2
4962 #: ../fish/guestfish-actions.pod:317
4963 msgid "aug-match"
4964 msgstr ""
4965
4966 #. type: verbatim
4967 #: ../fish/guestfish-actions.pod:319
4968 #, no-wrap
4969 msgid ""
4970 " aug-match augpath\n"
4971 "\n"
4972 msgstr ""
4973
4974 #. type: textblock
4975 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
4976 msgid ""
4977 "Returns a list of paths which match the path expression C<path>.  The "
4978 "returned paths are sufficiently qualified so that they match exactly one "
4979 "node in the current tree."
4980 msgstr ""
4981
4982 #. type: =head2
4983 #: ../fish/guestfish-actions.pod:325
4984 msgid "aug-mv"
4985 msgstr ""
4986
4987 #. type: verbatim
4988 #: ../fish/guestfish-actions.pod:327
4989 #, no-wrap
4990 msgid ""
4991 " aug-mv src dest\n"
4992 "\n"
4993 msgstr ""
4994
4995 #. type: textblock
4996 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
4997 msgid ""
4998 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4999 "C<dest> is overwritten if it exists."
5000 msgstr ""
5001
5002 #. type: =head2
5003 #: ../fish/guestfish-actions.pod:332
5004 msgid "aug-rm"
5005 msgstr ""
5006
5007 #. type: verbatim
5008 #: ../fish/guestfish-actions.pod:334
5009 #, no-wrap
5010 msgid ""
5011 " aug-rm augpath\n"
5012 "\n"
5013 msgstr ""
5014
5015 #. type: textblock
5016 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
5017 msgid "Remove C<path> and all of its children."
5018 msgstr ""
5019
5020 #. type: textblock
5021 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
5022 msgid "On success this returns the number of entries which were removed."
5023 msgstr ""
5024
5025 #. type: =head2
5026 #: ../fish/guestfish-actions.pod:340
5027 msgid "aug-save"
5028 msgstr ""
5029
5030 #. type: verbatim
5031 #: ../fish/guestfish-actions.pod:342
5032 #, no-wrap
5033 msgid ""
5034 " aug-save\n"
5035 "\n"
5036 msgstr ""
5037
5038 #. type: textblock
5039 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
5040 msgid "This writes all pending changes to disk."
5041 msgstr ""
5042
5043 #. type: textblock
5044 #: ../fish/guestfish-actions.pod:346
5045 msgid ""
5046 "The flags which were passed to L</aug-init> affect exactly how files are "
5047 "saved."
5048 msgstr ""
5049
5050 #. type: =head2
5051 #: ../fish/guestfish-actions.pod:349
5052 msgid "aug-set"
5053 msgstr ""
5054
5055 #. type: verbatim
5056 #: ../fish/guestfish-actions.pod:351
5057 #, no-wrap
5058 msgid ""
5059 " aug-set augpath val\n"
5060 "\n"
5061 msgstr ""
5062
5063 #. type: textblock
5064 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
5065 msgid "Set the value associated with C<path> to C<val>."
5066 msgstr ""
5067
5068 #. type: textblock
5069 #: ../fish/guestfish-actions.pod:355
5070 msgid ""
5071 "In the Augeas API, it is possible to clear a node by setting the value to "
5072 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5073 "this call.  Instead you must use the L</aug-clear> call."
5074 msgstr ""
5075
5076 #. type: =head2
5077 #: ../fish/guestfish-actions.pod:360
5078 msgid "available"
5079 msgstr ""
5080
5081 #. type: verbatim
5082 #: ../fish/guestfish-actions.pod:362
5083 #, no-wrap
5084 msgid ""
5085 " available 'groups ...'\n"
5086 "\n"
5087 msgstr ""
5088
5089 #. type: textblock
5090 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
5091 msgid ""
5092 "This command is used to check the availability of some groups of "
5093 "functionality in the appliance, which not all builds of the libguestfs "
5094 "appliance will be able to provide."
5095 msgstr ""
5096
5097 #. type: textblock
5098 #: ../fish/guestfish-actions.pod:368
5099 msgid ""
5100 "The libguestfs groups, and the functions that those groups correspond to, "
5101 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5102 "runtime by calling L</available-all-groups>."
5103 msgstr ""
5104
5105 #. type: textblock
5106 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
5107 msgid ""
5108 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5109 "\"]> would check for the availability of the Linux inotify functions and "
5110 "Augeas (configuration file editing) functions."
5111 msgstr ""
5112
5113 #. type: textblock
5114 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
5115 msgid "The command returns no error if I<all> requested groups are available."
5116 msgstr ""
5117
5118 #. type: textblock
5119 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:578
5120 msgid ""
5121 "It fails with an error if one or more of the requested groups is unavailable "
5122 "in the appliance."
5123 msgstr ""
5124
5125 #. type: textblock
5126 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:581
5127 msgid ""
5128 "If an unknown group name is included in the list of groups then an error is "
5129 "always returned."
5130 msgstr ""
5131
5132 #. type: textblock
5133 #: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:584
5134 msgid "I<Notes:>"
5135 msgstr ""
5136
5137 #. type: textblock
5138 #: ../fish/guestfish-actions.pod:392
5139 msgid "You must call L</launch> before calling this function."
5140 msgstr ""
5141
5142 #. type: textblock
5143 #: ../fish/guestfish-actions.pod:394 ../src/guestfs-actions.pod:592
5144 msgid ""
5145 "The reason is because we don't know what groups are supported by the "
5146 "appliance/daemon until it is running and can be queried."
5147 msgstr ""
5148
5149 #. type: textblock
5150 #: ../fish/guestfish-actions.pod:400 ../src/guestfs-actions.pod:598
5151 msgid ""
5152 "If a group of functions is available, this does not necessarily mean that "
5153 "they will work.  You still have to check for errors when calling individual "
5154 "API functions even if they are available."
5155 msgstr ""
5156
5157 #. type: textblock
5158 #: ../fish/guestfish-actions.pod:407 ../src/guestfs-actions.pod:605
5159 msgid ""
5160 "It is usually the job of distro packagers to build complete functionality "
5161 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5162 "with all requirements satisfied, will support everything."
5163 msgstr ""
5164
5165 #. type: textblock
5166 #: ../fish/guestfish-actions.pod:414
5167 msgid ""
5168 "This call was added in version C<1.0.80>.  In previous versions of "
5169 "libguestfs all you could do would be to speculatively execute a command to "
5170 "find out if the daemon implemented it.  See also L</version>."
5171 msgstr ""
5172
5173 #. type: =head2
5174 #: ../fish/guestfish-actions.pod:421
5175 msgid "available-all-groups"
5176 msgstr ""
5177
5178 #. type: verbatim
5179 #: ../fish/guestfish-actions.pod:423
5180 #, no-wrap
5181 msgid ""
5182 " available-all-groups\n"
5183 "\n"
5184 msgstr ""
5185
5186 #. type: textblock
5187 #: ../fish/guestfish-actions.pod:425
5188 msgid ""
5189 "This command returns a list of all optional groups that this daemon knows "
5190 "about.  Note this returns both supported and unsupported groups.  To find "
5191 "out which ones the daemon can actually support you have to call L</"
5192 "available> on each member of the returned list."
5193 msgstr ""
5194
5195 #. type: textblock
5196 #: ../fish/guestfish-actions.pod:431
5197 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
5198 msgstr ""
5199
5200 #. type: =head2
5201 #: ../fish/guestfish-actions.pod:433
5202 msgid "base64-in"
5203 msgstr ""
5204
5205 #. type: verbatim
5206 #: ../fish/guestfish-actions.pod:435
5207 #, no-wrap
5208 msgid ""
5209 " base64-in (base64file|-) filename\n"
5210 "\n"
5211 msgstr ""
5212
5213 #. type: textblock
5214 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:649
5215 msgid ""
5216 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5217 msgstr ""
5218
5219 #. type: textblock
5220 #: ../fish/guestfish-actions.pod:440 ../fish/guestfish-actions.pod:449
5221 #: ../fish/guestfish-actions.pod:698 ../fish/guestfish-actions.pod:782
5222 #: ../fish/guestfish-actions.pod:803 ../fish/guestfish-actions.pod:902
5223 #: ../fish/guestfish-actions.pod:921 ../fish/guestfish-actions.pod:1295
5224 #: ../fish/guestfish-actions.pod:4742 ../fish/guestfish-actions.pod:4754
5225 #: ../fish/guestfish-actions.pod:4765 ../fish/guestfish-actions.pod:4776
5226 #: ../fish/guestfish-actions.pod:4828 ../fish/guestfish-actions.pod:4837
5227 #: ../fish/guestfish-actions.pod:4891 ../fish/guestfish-actions.pod:4914
5228 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
5229 msgstr ""
5230
5231 #. type: =head2
5232 #: ../fish/guestfish-actions.pod:442
5233 msgid "base64-out"
5234 msgstr ""
5235
5236 #. type: verbatim
5237 #: ../fish/guestfish-actions.pod:444
5238 #, no-wrap
5239 msgid ""
5240 " base64-out filename (base64file|-)\n"
5241 "\n"
5242 msgstr ""
5243
5244 #. type: textblock
5245 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
5246 msgid ""
5247 "This command downloads the contents of C<filename>, writing it out to local "
5248 "file C<base64file> encoded as base64."
5249 msgstr ""
5250
5251 #. type: =head2
5252 #: ../fish/guestfish-actions.pod:451
5253 msgid "blockdev-flushbufs"
5254 msgstr ""
5255
5256 #. type: verbatim
5257 #: ../fish/guestfish-actions.pod:453
5258 #, no-wrap
5259 msgid ""
5260 " blockdev-flushbufs device\n"
5261 "\n"
5262 msgstr ""
5263
5264 #. type: textblock
5265 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
5266 msgid ""
5267 "This tells the kernel to flush internal buffers associated with C<device>."
5268 msgstr ""
5269
5270 #. type: textblock
5271 #: ../fish/guestfish-actions.pod:458 ../fish/guestfish-actions.pod:469
5272 #: ../fish/guestfish-actions.pod:478 ../fish/guestfish-actions.pod:488
5273 #: ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:513
5274 #: ../fish/guestfish-actions.pod:521 ../fish/guestfish-actions.pod:532
5275 #: ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:548
5276 #: ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:696
5277 #: ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:727
5278 #: ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:764
5279 #: ../src/guestfs-actions.pod:778 ../src/guestfs-actions.pod:796
5280 #: ../src/guestfs-actions.pod:810 ../src/guestfs-actions.pod:824
5281 msgid "This uses the L<blockdev(8)> command."
5282 msgstr ""
5283
5284 #. type: =head2
5285 #: ../fish/guestfish-actions.pod:460
5286 msgid "blockdev-getbsz"
5287 msgstr ""
5288
5289 #. type: verbatim
5290 #: ../fish/guestfish-actions.pod:462
5291 #, no-wrap
5292 msgid ""
5293 " blockdev-getbsz device\n"
5294 "\n"
5295 msgstr ""
5296
5297 #. type: textblock
5298 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
5299 msgid "This returns the block size of a device."
5300 msgstr ""
5301
5302 #. type: textblock
5303 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529
5304 #: ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
5305 msgid ""
5306 "(Note this is different from both I<size in blocks> and I<filesystem block "
5307 "size>)."
5308 msgstr ""
5309
5310 #. type: =head2
5311 #: ../fish/guestfish-actions.pod:471
5312 msgid "blockdev-getro"
5313 msgstr ""
5314
5315 #. type: verbatim
5316 #: ../fish/guestfish-actions.pod:473
5317 #, no-wrap
5318 msgid ""
5319 " blockdev-getro device\n"
5320 "\n"
5321 msgstr ""
5322
5323 #. type: textblock
5324 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
5325 msgid ""
5326 "Returns a boolean indicating if the block device is read-only (true if read-"
5327 "only, false if not)."
5328 msgstr ""
5329
5330 #. type: =head2
5331 #: ../fish/guestfish-actions.pod:480
5332 msgid "blockdev-getsize64"
5333 msgstr ""
5334
5335 #. type: verbatim
5336 #: ../fish/guestfish-actions.pod:482
5337 #, no-wrap
5338 msgid ""
5339 " blockdev-getsize64 device\n"
5340 "\n"
5341 msgstr ""
5342
5343 #. type: textblock
5344 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
5345 msgid "This returns the size of the device in bytes."
5346 msgstr ""
5347
5348 #. type: textblock
5349 #: ../fish/guestfish-actions.pod:486
5350 msgid "See also L</blockdev-getsz>."
5351 msgstr ""
5352
5353 #. type: =head2
5354 #: ../fish/guestfish-actions.pod:490
5355 msgid "blockdev-getss"
5356 msgstr ""
5357
5358 #. type: verbatim
5359 #: ../fish/guestfish-actions.pod:492
5360 #, no-wrap
5361 msgid ""
5362 " blockdev-getss device\n"
5363 "\n"
5364 msgstr ""
5365
5366 #. type: textblock
5367 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
5368 msgid ""
5369 "This returns the size of sectors on a block device.  Usually 512, but can be "
5370 "larger for modern devices."
5371 msgstr ""
5372
5373 #. type: textblock
5374 #: ../fish/guestfish-actions.pod:497
5375 msgid ""
5376 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
5377 msgstr ""
5378
5379 #. type: =head2
5380 #: ../fish/guestfish-actions.pod:502
5381 msgid "blockdev-getsz"
5382 msgstr ""
5383
5384 #. type: verbatim
5385 #: ../fish/guestfish-actions.pod:504
5386 #, no-wrap
5387 msgid ""
5388 " blockdev-getsz device\n"
5389 "\n"
5390 msgstr ""
5391
5392 #. type: textblock
5393 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
5394 msgid ""
5395 "This returns the size of the device in units of 512-byte sectors (even if "
5396 "the sectorsize isn't 512 bytes ... weird)."
5397 msgstr ""
5398
5399 #. type: textblock
5400 #: ../fish/guestfish-actions.pod:509
5401 msgid ""
5402 "See also L</blockdev-getss> for the real sector size of the device, and L</"
5403 "blockdev-getsize64> for the more useful I<size in bytes>."
5404 msgstr ""
5405
5406 #. type: =head2
5407 #: ../fish/guestfish-actions.pod:515
5408 msgid "blockdev-rereadpt"
5409 msgstr ""
5410
5411 #. type: verbatim
5412 #: ../fish/guestfish-actions.pod:517
5413 #, no-wrap
5414 msgid ""
5415 " blockdev-rereadpt device\n"
5416 "\n"
5417 msgstr ""
5418
5419 #. type: textblock
5420 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
5421 msgid "Reread the partition table on C<device>."
5422 msgstr ""
5423
5424 #. type: =head2
5425 #: ../fish/guestfish-actions.pod:523
5426 msgid "blockdev-setbsz"
5427 msgstr ""
5428
5429 #. type: verbatim
5430 #: ../fish/guestfish-actions.pod:525
5431 #, no-wrap
5432 msgid ""
5433 " blockdev-setbsz device blocksize\n"
5434 "\n"
5435 msgstr ""
5436
5437 #. type: textblock
5438 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
5439 msgid "This sets the block size of a device."
5440 msgstr ""
5441
5442 #. type: =head2
5443 #: ../fish/guestfish-actions.pod:534
5444 msgid "blockdev-setro"
5445 msgstr ""
5446
5447 #. type: verbatim
5448 #: ../fish/guestfish-actions.pod:536
5449 #, no-wrap
5450 msgid ""
5451 " blockdev-setro device\n"
5452 "\n"
5453 msgstr ""
5454
5455 #. type: textblock
5456 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
5457 msgid "Sets the block device named C<device> to read-only."
5458 msgstr ""
5459
5460 #. type: =head2
5461 #: ../fish/guestfish-actions.pod:542
5462 msgid "blockdev-setrw"
5463 msgstr ""
5464
5465 #. type: verbatim
5466 #: ../fish/guestfish-actions.pod:544
5467 #, no-wrap
5468 msgid ""
5469 " blockdev-setrw device\n"
5470 "\n"
5471 msgstr ""
5472
5473 #. type: textblock
5474 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
5475 msgid "Sets the block device named C<device> to read-write."
5476 msgstr ""
5477
5478 #. type: =head2
5479 #: ../fish/guestfish-actions.pod:550
5480 msgid "btrfs-filesystem-resize"
5481 msgstr ""
5482
5483 #. type: verbatim
5484 #: ../fish/guestfish-actions.pod:552
5485 #, no-wrap
5486 msgid ""
5487 " btrfs-filesystem-resize mountpoint [size:..]\n"
5488 "\n"
5489 msgstr ""
5490
5491 #. type: textblock
5492 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
5493 msgid "This command resizes a btrfs filesystem."
5494 msgstr ""
5495
5496 #. type: textblock
5497 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
5498 msgid ""
5499 "Note that unlike other resize calls, the filesystem has to be mounted and "
5500 "the parameter is the mountpoint not the device (this is a requirement of "
5501 "btrfs itself)."
5502 msgstr ""
5503
5504 #. type: textblock
5505 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3489
5506 #: ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5336
5507 msgid "The optional parameters are:"
5508 msgstr ""
5509
5510 #. type: =item
5511 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3493
5512 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5340
5513 msgid "C<size>"
5514 msgstr ""
5515
5516 #. type: textblock
5517 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
5518 msgid ""
5519 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
5520 "resized to the maximum size."
5521 msgstr ""
5522
5523 #. type: textblock
5524 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
5525 msgid "See also L<btrfs(8)>."
5526 msgstr ""
5527
5528 #. type: =head2
5529 #: ../fish/guestfish-actions.pod:575
5530 msgid "case-sensitive-path"
5531 msgstr ""
5532
5533 #. type: verbatim
5534 #: ../fish/guestfish-actions.pod:577
5535 #, no-wrap
5536 msgid ""
5537 " case-sensitive-path path\n"
5538 "\n"
5539 msgstr ""
5540
5541 #. type: textblock
5542 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
5543 msgid ""
5544 "This can be used to resolve case insensitive paths on a filesystem which is "
5545 "case sensitive.  The use case is to resolve paths which you have read from "
5546 "Windows configuration files or the Windows Registry, to the true path."
5547 msgstr ""
5548
5549 #. type: textblock
5550 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
5551 msgid ""
5552 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5553 "(and probably others), which is that although the underlying filesystem is "
5554 "case-insensitive, the driver exports the filesystem to Linux as case-"
5555 "sensitive."
5556 msgstr ""
5557
5558 #. type: textblock
5559 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
5560 msgid ""
5561 "One consequence of this is that special directories such as C<c:\\windows> "
5562 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5563 "precise details of how they were created.  In Windows itself this would not "
5564 "be a problem."
5565 msgstr ""
5566
5567 #. type: textblock
5568 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
5569 msgid ""
5570 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5571 "#posixfilenames1>"
5572 msgstr ""
5573
5574 #. type: textblock
5575 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
5576 msgid ""
5577 "This function resolves the true case of each element in the path and returns "
5578 "the case-sensitive path."
5579 msgstr ""
5580
5581 #. type: textblock
5582 #: ../fish/guestfish-actions.pod:601
5583 msgid ""
5584 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
5585 "WINDOWS/system32\"> (the exact return value would depend on details of how "
5586 "the directories were originally created under Windows)."
5587 msgstr ""
5588
5589 #. type: textblock
5590 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
5591 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5592 msgstr ""
5593
5594 #. type: textblock
5595 #: ../fish/guestfish-actions.pod:609
5596 msgid "See also L</realpath>."
5597 msgstr ""
5598
5599 #. type: =head2
5600 #: ../fish/guestfish-actions.pod:611
5601 msgid "cat"
5602 msgstr ""
5603
5604 #. type: verbatim
5605 #: ../fish/guestfish-actions.pod:613
5606 #, no-wrap
5607 msgid ""
5608 " cat path\n"
5609 "\n"
5610 msgstr ""
5611
5612 #. type: textblock
5613 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3909
5614 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5979
5615 msgid "Return the contents of the file named C<path>."
5616 msgstr ""
5617
5618 #. type: textblock
5619 #: ../fish/guestfish-actions.pod:617
5620 msgid ""
5621 "Note that this function cannot correctly handle binary files (specifically, "
5622 "files containing C<\\0> character which is treated as end of string).  For "
5623 "those you need to use the L</read-file> or L</download> functions which have "
5624 "a more complex interface."
5625 msgstr ""
5626
5627 #. type: textblock
5628 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:757
5629 #: ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:980
5630 #: ../fish/guestfish-actions.pod:990 ../fish/guestfish-actions.pod:1057
5631 #: ../fish/guestfish-actions.pod:1067 ../fish/guestfish-actions.pod:1259
5632 #: ../fish/guestfish-actions.pod:1572 ../fish/guestfish-actions.pod:1582
5633 #: ../fish/guestfish-actions.pod:1632 ../fish/guestfish-actions.pod:1647
5634 #: ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1676
5635 #: ../fish/guestfish-actions.pod:3779 ../fish/guestfish-actions.pod:3794
5636 #: ../fish/guestfish-actions.pod:3870 ../fish/guestfish-actions.pod:3887
5637 #: ../fish/guestfish-actions.pod:3902 ../fish/guestfish-actions.pod:4583
5638 #: ../fish/guestfish-actions.pod:4629 ../fish/guestfish-actions.pod:4714
5639 #: ../fish/guestfish-actions.pod:4729 ../fish/guestfish-actions.pod:5135
5640 #: ../fish/guestfish-actions.pod:5147 ../fish/guestfish-actions.pod:5165
5641 #: ../fish/guestfish-actions.pod:5182 ../fish/guestfish-actions.pod:5192
5642 #: ../fish/guestfish-actions.pod:5249 ../fish/guestfish-actions.pod:5259
5643 #: ../fish/guestfish-actions.pod:5288 ../fish/guestfish-actions.pod:5298
5644 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:1127
5645 #: ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1550
5646 #: ../src/guestfs-actions.pod:1569 ../src/guestfs-actions.pod:1672
5647 #: ../src/guestfs-actions.pod:1691 ../src/guestfs-actions.pod:1937
5648 #: ../src/guestfs-actions.pod:2417 ../src/guestfs-actions.pod:2436
5649 #: ../src/guestfs-actions.pod:2501 ../src/guestfs-actions.pod:2525
5650 #: ../src/guestfs-actions.pod:2542 ../src/guestfs-actions.pod:2571
5651 #: ../src/guestfs-actions.pod:5761 ../src/guestfs-actions.pod:5787
5652 #: ../src/guestfs-actions.pod:5918 ../src/guestfs-actions.pod:5944
5653 #: ../src/guestfs-actions.pod:5968 ../src/guestfs-actions.pod:6933
5654 #: ../src/guestfs-actions.pod:6988 ../src/guestfs-actions.pod:7134
5655 #: ../src/guestfs-actions.pod:7158 ../src/guestfs-actions.pod:7823
5656 #: ../src/guestfs-actions.pod:7843 ../src/guestfs-actions.pod:7876
5657 #: ../src/guestfs-actions.pod:7895 ../src/guestfs-actions.pod:7914
5658 #: ../src/guestfs-actions.pod:8008 ../src/guestfs-actions.pod:8027
5659 #: ../src/guestfs-actions.pod:8073 ../src/guestfs-actions.pod:8092
5660 msgid ""
5661 "Because of the message protocol, there is a transfer limit of somewhere "
5662 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5663 msgstr ""
5664
5665 #. type: =head2
5666 #: ../fish/guestfish-actions.pod:625
5667 msgid "checksum"
5668 msgstr ""
5669
5670 #. type: verbatim
5671 #: ../fish/guestfish-actions.pod:627
5672 #, no-wrap
5673 msgid ""
5674 " checksum csumtype path\n"
5675 "\n"
5676 msgstr ""
5677
5678 #. type: textblock
5679 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
5680 msgid ""
5681 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5682 msgstr ""
5683
5684 #. type: textblock
5685 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
5686 msgid ""
5687 "The type of checksum to compute is given by the C<csumtype> parameter which "
5688 "must have one of the following values:"
5689 msgstr ""
5690
5691 #. type: =item
5692 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
5693 msgid "C<crc>"
5694 msgstr ""
5695
5696 #. type: textblock
5697 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
5698 msgid ""
5699 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5700 "C<cksum> command."
5701 msgstr ""
5702
5703 #. type: =item
5704 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
5705 msgid "C<md5>"
5706 msgstr ""
5707
5708 #. type: textblock
5709 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
5710 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5711 msgstr ""
5712
5713 #. type: =item
5714 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
5715 msgid "C<sha1>"
5716 msgstr ""
5717
5718 #. type: textblock
5719 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
5720 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5721 msgstr ""
5722
5723 #. type: =item
5724 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
5725 msgid "C<sha224>"
5726 msgstr ""
5727
5728 #. type: textblock
5729 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
5730 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5731 msgstr ""
5732
5733 #. type: =item
5734 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
5735 msgid "C<sha256>"
5736 msgstr ""
5737
5738 #. type: textblock
5739 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
5740 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5741 msgstr ""
5742
5743 #. type: =item
5744 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
5745 msgid "C<sha384>"
5746 msgstr ""
5747
5748 #. type: textblock
5749 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
5750 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5751 msgstr ""
5752
5753 #. type: =item
5754 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
5755 msgid "C<sha512>"
5756 msgstr ""
5757
5758 #. type: textblock
5759 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
5760 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5761 msgstr ""
5762
5763 #. type: textblock
5764 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
5765 msgid "The checksum is returned as a printable string."
5766 msgstr ""
5767
5768 #. type: textblock
5769 #: ../fish/guestfish-actions.pod:670
5770 msgid "To get the checksum for a device, use L</checksum-device>."
5771 msgstr ""
5772
5773 #. type: textblock
5774 #: ../fish/guestfish-actions.pod:672
5775 msgid "To get the checksums for many files, use L</checksums-out>."
5776 msgstr ""
5777
5778 #. type: =head2
5779 #: ../fish/guestfish-actions.pod:674
5780 msgid "checksum-device"
5781 msgstr ""
5782
5783 #. type: verbatim
5784 #: ../fish/guestfish-actions.pod:676
5785 #, no-wrap
5786 msgid ""
5787 " checksum-device csumtype device\n"
5788 "\n"
5789 msgstr ""
5790
5791 #. type: textblock
5792 #: ../fish/guestfish-actions.pod:678
5793 msgid ""
5794 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5795 "device named C<device>.  For the types of checksums supported see the L</"
5796 "checksum> command."
5797 msgstr ""
5798
5799 #. type: =head2
5800 #: ../fish/guestfish-actions.pod:682
5801 msgid "checksums-out"
5802 msgstr ""
5803
5804 #. type: verbatim
5805 #: ../fish/guestfish-actions.pod:684
5806 #, no-wrap
5807 msgid ""
5808 " checksums-out csumtype directory (sumsfile|-)\n"
5809 "\n"
5810 msgstr ""
5811
5812 #. type: textblock
5813 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
5814 msgid ""
5815 "This command computes the checksums of all regular files in C<directory> and "
5816 "then emits a list of those checksums to the local output file C<sumsfile>."
5817 msgstr ""
5818
5819 #. type: textblock
5820 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
5821 msgid ""
5822 "This can be used for verifying the integrity of a virtual machine.  However "
5823 "to be properly secure you should pay attention to the output of the checksum "
5824 "command (it uses the ones from GNU coreutils).  In particular when the "
5825 "filename is not printable, coreutils uses a special backslash syntax.  For "
5826 "more information, see the GNU coreutils info file."
5827 msgstr ""
5828
5829 #. type: =head2
5830 #: ../fish/guestfish-actions.pod:700
5831 msgid "chmod"
5832 msgstr ""
5833
5834 #. type: verbatim
5835 #: ../fish/guestfish-actions.pod:702
5836 #, no-wrap
5837 msgid ""
5838 " chmod mode path\n"
5839 "\n"
5840 msgstr ""
5841
5842 #. type: textblock
5843 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
5844 msgid ""
5845 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5846 "supported."
5847 msgstr ""
5848
5849 #. type: textblock
5850 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
5851 msgid ""
5852 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5853 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5854 "C<700>."
5855 msgstr ""
5856
5857 #. type: textblock
5858 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3132
5859 #: ../fish/guestfish-actions.pod:3271 ../fish/guestfish-actions.pod:3281
5860 #: ../fish/guestfish-actions.pod:3291 ../src/guestfs-actions.pod:1064
5861 #: ../src/guestfs-actions.pod:4733 ../src/guestfs-actions.pod:4942
5862 #: ../src/guestfs-actions.pod:4961 ../src/guestfs-actions.pod:4980
5863 msgid "The mode actually set is affected by the umask."
5864 msgstr ""
5865
5866 #. type: =head2
5867 #: ../fish/guestfish-actions.pod:713
5868 msgid "chown"
5869 msgstr ""
5870
5871 #. type: verbatim
5872 #: ../fish/guestfish-actions.pod:715
5873 #, no-wrap
5874 msgid ""
5875 " chown owner group path\n"
5876 "\n"
5877 msgstr ""
5878
5879 #. type: textblock
5880 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
5881 msgid "Change the file owner to C<owner> and group to C<group>."
5882 msgstr ""
5883
5884 #. type: textblock
5885 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2567
5886 #: ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3804
5887 msgid ""
5888 "Only numeric uid and gid are supported.  If you want to use names, you will "
5889 "need to locate and parse the password file yourself (Augeas support makes "
5890 "this relatively easy)."
5891 msgstr ""
5892
5893 #. type: =head2
5894 #: ../fish/guestfish-actions.pod:723
5895 msgid "command"
5896 msgstr ""
5897
5898 #. type: verbatim
5899 #: ../fish/guestfish-actions.pod:725
5900 #, no-wrap
5901 msgid ""
5902 " command 'arguments ...'\n"
5903 "\n"
5904 msgstr ""
5905
5906 #. type: textblock
5907 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
5908 msgid ""
5909 "This call runs a command from the guest filesystem.  The filesystem must be "
5910 "mounted, and must contain a compatible operating system (ie. something "
5911 "Linux, with the same or compatible processor architecture)."
5912 msgstr ""
5913
5914 #. type: textblock
5915 #: ../fish/guestfish-actions.pod:732
5916 msgid ""
5917 "The single parameter is an argv-style list of arguments.  The first element "
5918 "is the name of the program to run.  Subsequent elements are parameters.  The "
5919 "list must be non-empty (ie. must contain a program name).  Note that the "
5920 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
5921 msgstr ""
5922
5923 #. type: textblock
5924 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
5925 msgid "The return value is anything printed to I<stdout> by the command."
5926 msgstr ""
5927
5928 #. type: textblock
5929 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
5930 msgid ""
5931 "If the command returns a non-zero exit status, then this function returns an "
5932 "error message.  The error message string is the content of I<stderr> from "
5933 "the command."
5934 msgstr ""
5935
5936 #. type: textblock
5937 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
5938 msgid ""
5939 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
5940 "bin>.  If you require a program from another location, you should provide "
5941 "the full path in the first parameter."
5942 msgstr ""
5943
5944 #. type: textblock
5945 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
5946 msgid ""
5947 "Shared libraries and data files required by the program must be available on "
5948 "filesystems which are mounted in the correct places.  It is the caller's "
5949 "responsibility to ensure all filesystems that are needed are mounted at the "
5950 "right locations."
5951 msgstr ""
5952
5953 #. type: =head2
5954 #: ../fish/guestfish-actions.pod:760
5955 msgid "command-lines"
5956 msgstr ""
5957
5958 #. type: verbatim
5959 #: ../fish/guestfish-actions.pod:762
5960 #, no-wrap
5961 msgid ""
5962 " command-lines 'arguments ...'\n"
5963 "\n"
5964 msgstr ""
5965
5966 #. type: textblock
5967 #: ../fish/guestfish-actions.pod:764
5968 msgid ""
5969 "This is the same as L</command>, but splits the result into a list of lines."
5970 msgstr ""
5971
5972 #. type: textblock
5973 #: ../fish/guestfish-actions.pod:767
5974 msgid "See also: L</sh-lines>"
5975 msgstr ""
5976
5977 #. type: =head2
5978 #: ../fish/guestfish-actions.pod:772
5979 msgid "compress-device-out"
5980 msgstr ""
5981
5982 #. type: verbatim
5983 #: ../fish/guestfish-actions.pod:774
5984 #, no-wrap
5985 msgid ""
5986 " compress-device-out ctype device (zdevice|-) [level:..]\n"
5987 "\n"
5988 msgstr ""
5989
5990 #. type: textblock
5991 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1168
5992 msgid ""
5993 "This command compresses C<device> and writes it out to the local file "
5994 "C<zdevice>."
5995 msgstr ""
5996
5997 #. type: textblock
5998 #: ../fish/guestfish-actions.pod:779
5999 msgid ""
6000 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
6001 "compress-out>."
6002 msgstr ""
6003
6004 #. type: =head2
6005 #: ../fish/guestfish-actions.pod:786
6006 msgid "compress-out"
6007 msgstr ""
6008
6009 #. type: verbatim
6010 #: ../fish/guestfish-actions.pod:788
6011 #, no-wrap
6012 msgid ""
6013 " compress-out ctype file (zfile|-) [level:..]\n"
6014 "\n"
6015 msgstr ""
6016
6017 #. type: textblock
6018 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1218
6019 msgid ""
6020 "This command compresses C<file> and writes it out to the local file C<zfile>."
6021 msgstr ""
6022
6023 #. type: textblock
6024 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1221
6025 msgid ""
6026 "The compression program used is controlled by the C<ctype> parameter.  "
6027 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
6028 "Some compression types may not be supported by particular builds of "
6029 "libguestfs, in which case you will get an error containing the substring "
6030 "\"not supported\"."
6031 msgstr ""
6032
6033 #. type: textblock
6034 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1227
6035 msgid ""
6036 "The optional C<level> parameter controls compression level.  The meaning and "
6037 "default for this parameter depends on the compression program being used."
6038 msgstr ""
6039
6040 #. type: =head2
6041 #: ../fish/guestfish-actions.pod:807
6042 msgid "config"
6043 msgstr ""
6044
6045 #. type: verbatim
6046 #: ../fish/guestfish-actions.pod:809
6047 #, no-wrap
6048 msgid ""
6049 " config qemuparam qemuvalue\n"
6050 "\n"
6051 msgstr ""
6052
6053 #. type: textblock
6054 #: ../fish/guestfish-actions.pod:811 ../src/guestfs-actions.pod:1266
6055 msgid ""
6056 "This can be used to add arbitrary qemu command line parameters of the form "
6057 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6058 "setting some parameters which would interfere with parameters that we use."
6059 msgstr ""
6060
6061 #. type: textblock
6062 #: ../fish/guestfish-actions.pod:816 ../src/guestfs-actions.pod:1271
6063 msgid "The first character of C<param> string must be a C<-> (dash)."
6064 msgstr ""
6065
6066 #. type: textblock
6067 #: ../fish/guestfish-actions.pod:818 ../src/guestfs-actions.pod:1273
6068 msgid "C<value> can be NULL."
6069 msgstr ""
6070
6071 #. type: =head2
6072 #: ../fish/guestfish-actions.pod:820
6073 msgid "copy-size"
6074 msgstr ""
6075
6076 #. type: verbatim
6077 #: ../fish/guestfish-actions.pod:822
6078 #, no-wrap
6079 msgid ""
6080 " copy-size src dest size\n"
6081 "\n"
6082 msgstr ""
6083
6084 #. type: textblock
6085 #: ../fish/guestfish-actions.pod:824 ../src/guestfs-actions.pod:1287
6086 msgid ""
6087 "This command copies exactly C<size> bytes from one source device or file "
6088 "C<src> to another destination device or file C<dest>."
6089 msgstr ""
6090
6091 #. type: textblock
6092 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1290
6093 msgid ""
6094 "Note this will fail if the source is too short or if the destination is not "
6095 "large enough."
6096 msgstr ""
6097
6098 #. type: =head2
6099 #: ../fish/guestfish-actions.pod:830
6100 msgid "cp"
6101 msgstr ""
6102
6103 #. type: verbatim
6104 #: ../fish/guestfish-actions.pod:832
6105 #, no-wrap
6106 msgid ""
6107 " cp src dest\n"
6108 "\n"
6109 msgstr ""
6110
6111 #. type: textblock
6112 #: ../fish/guestfish-actions.pod:834 ../src/guestfs-actions.pod:1309
6113 msgid ""
6114 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6115 "destination filename or destination directory."
6116 msgstr ""
6117
6118 #. type: =head2
6119 #: ../fish/guestfish-actions.pod:837
6120 msgid "cp-a"
6121 msgstr ""
6122
6123 #. type: verbatim
6124 #: ../fish/guestfish-actions.pod:839
6125 #, no-wrap
6126 msgid ""
6127 " cp-a src dest\n"
6128 "\n"
6129 msgstr ""
6130
6131 #. type: textblock
6132 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1323
6133 msgid ""
6134 "This copies a file or directory from C<src> to C<dest> recursively using the "
6135 "C<cp -a> command."
6136 msgstr ""
6137
6138 #. type: =head2
6139 #: ../fish/guestfish-actions.pod:844
6140 msgid "dd"
6141 msgstr ""
6142
6143 #. type: verbatim
6144 #: ../fish/guestfish-actions.pod:846
6145 #, no-wrap
6146 msgid ""
6147 " dd src dest\n"
6148 "\n"
6149 msgstr ""
6150
6151 #. type: textblock
6152 #: ../fish/guestfish-actions.pod:848 ../src/guestfs-actions.pod:1337
6153 msgid ""
6154 "This command copies from one source device or file C<src> to another "
6155 "destination device or file C<dest>.  Normally you would use this to copy to "
6156 "or from a device or partition, for example to duplicate a filesystem."
6157 msgstr ""
6158
6159 #. type: textblock
6160 #: ../fish/guestfish-actions.pod:853
6161 msgid ""
6162 "If the destination is a device, it must be as large or larger than the "
6163 "source file or device, otherwise the copy will fail.  This command cannot do "
6164 "partial copies (see L</copy-size>)."
6165 msgstr ""
6166
6167 #. type: =head2
6168 #: ../fish/guestfish-actions.pod:857
6169 msgid "df"
6170 msgstr ""
6171
6172 #. type: verbatim
6173 #: ../fish/guestfish-actions.pod:859
6174 #, no-wrap
6175 msgid ""
6176 " df\n"
6177 "\n"
6178 msgstr ""
6179
6180 #. type: textblock
6181 #: ../fish/guestfish-actions.pod:861 ../src/guestfs-actions.pod:1355
6182 msgid "This command runs the C<df> command to report disk space used."
6183 msgstr ""
6184
6185 #. type: textblock
6186 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:874
6187 msgid ""
6188 "This command is mostly useful for interactive sessions.  It is I<not> "
6189 "intended that you try to parse the output string.  Use L</statvfs> from "
6190 "programs."
6191 msgstr ""
6192
6193 #. type: =head2
6194 #: ../fish/guestfish-actions.pod:867
6195 msgid "df-h"
6196 msgstr ""
6197
6198 #. type: verbatim
6199 #: ../fish/guestfish-actions.pod:869
6200 #, no-wrap
6201 msgid ""
6202 " df-h\n"
6203 "\n"
6204 msgstr ""
6205
6206 #. type: textblock
6207 #: ../fish/guestfish-actions.pod:871 ../src/guestfs-actions.pod:1371
6208 msgid ""
6209 "This command runs the C<df -h> command to report disk space used in human-"
6210 "readable format."
6211 msgstr ""
6212
6213 #. type: =head2
6214 #: ../fish/guestfish-actions.pod:878
6215 msgid "dmesg"
6216 msgstr ""
6217
6218 #. type: verbatim
6219 #: ../fish/guestfish-actions.pod:880
6220 #, no-wrap
6221 msgid ""
6222 " dmesg\n"
6223 "\n"
6224 msgstr ""
6225
6226 #. type: textblock
6227 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1388
6228 msgid ""
6229 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6230 "This is sometimes useful for extended debugging of problems."
6231 msgstr ""
6232
6233 #. type: textblock
6234 #: ../fish/guestfish-actions.pod:886
6235 msgid ""
6236 "Another way to get the same information is to enable verbose messages with "
6237 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
6238 "before running the program."
6239 msgstr ""
6240
6241 #. type: =head2
6242 #: ../fish/guestfish-actions.pod:891
6243 msgid "download"
6244 msgstr ""
6245
6246 #. type: verbatim
6247 #: ../fish/guestfish-actions.pod:893
6248 #, no-wrap
6249 msgid ""
6250 " download remotefilename (filename|-)\n"
6251 "\n"
6252 msgstr ""
6253
6254 #. type: textblock
6255 #: ../fish/guestfish-actions.pod:895 ../fish/guestfish-actions.pod:908
6256 #: ../src/guestfs-actions.pod:1409 ../src/guestfs-actions.pod:1434
6257 msgid ""
6258 "Download file C<remotefilename> and save it as C<filename> on the local "
6259 "machine."
6260 msgstr ""
6261
6262 #. type: textblock
6263 #: ../fish/guestfish-actions.pod:898 ../fish/guestfish-actions.pod:4887
6264 #: ../src/guestfs-actions.pod:1412 ../src/guestfs-actions.pod:7393
6265 msgid "C<filename> can also be a named pipe."
6266 msgstr ""
6267
6268 #. type: textblock
6269 #: ../fish/guestfish-actions.pod:900
6270 msgid "See also L</upload>, L</cat>."
6271 msgstr ""
6272
6273 #. type: =head2
6274 #: ../fish/guestfish-actions.pod:904
6275 msgid "download-offset"
6276 msgstr ""
6277
6278 #. type: verbatim
6279 #: ../fish/guestfish-actions.pod:906
6280 #, no-wrap
6281 msgid ""
6282 " download-offset remotefilename (filename|-) offset size\n"
6283 "\n"
6284 msgstr ""
6285
6286 #. type: textblock
6287 #: ../fish/guestfish-actions.pod:911 ../src/guestfs-actions.pod:1437
6288 msgid ""
6289 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6290 "region must be within the file or device)."
6291 msgstr ""
6292
6293 #. type: textblock
6294 #: ../fish/guestfish-actions.pod:914
6295 msgid ""
6296 "Note that there is no limit on the amount of data that can be downloaded "
6297 "with this call, unlike with L</pread>, and this call always reads the full "
6298 "amount unless an error occurs."
6299 msgstr ""
6300
6301 #. type: textblock
6302 #: ../fish/guestfish-actions.pod:919
6303 msgid "See also L</download>, L</pread>."
6304 msgstr ""
6305
6306 #. type: =head2
6307 #: ../fish/guestfish-actions.pod:923
6308 msgid "drop-caches"
6309 msgstr ""
6310
6311 #. type: verbatim
6312 #: ../fish/guestfish-actions.pod:925
6313 #, no-wrap
6314 msgid ""
6315 " drop-caches whattodrop\n"
6316 "\n"
6317 msgstr ""
6318
6319 #. type: textblock
6320 #: ../fish/guestfish-actions.pod:927 ../src/guestfs-actions.pod:1462
6321 msgid ""
6322 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6323 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6324 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6325 msgstr ""
6326
6327 #. type: textblock
6328 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1467
6329 msgid "Setting C<whattodrop> to 3 should drop everything."
6330 msgstr ""
6331
6332 #. type: textblock
6333 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1469
6334 msgid ""
6335 "This automatically calls L<sync(2)> before the operation, so that the "
6336 "maximum guest memory is freed."
6337 msgstr ""
6338
6339 #. type: =head2
6340 #: ../fish/guestfish-actions.pod:937
6341 msgid "du"
6342 msgstr ""
6343
6344 #. type: verbatim
6345 #: ../fish/guestfish-actions.pod:939
6346 #, no-wrap
6347 msgid ""
6348 " du path\n"
6349 "\n"
6350 msgstr ""
6351
6352 #. type: textblock
6353 #: ../fish/guestfish-actions.pod:941 ../src/guestfs-actions.pod:1482
6354 msgid ""
6355 "This command runs the C<du -s> command to estimate file space usage for "
6356 "C<path>."
6357 msgstr ""
6358
6359 #. type: textblock
6360 #: ../fish/guestfish-actions.pod:944 ../src/guestfs-actions.pod:1485
6361 msgid ""
6362 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6363 "estimate includes the contents of the directory and all subdirectories "
6364 "(recursively)."
6365 msgstr ""
6366
6367 #. type: textblock
6368 #: ../fish/guestfish-actions.pod:948 ../src/guestfs-actions.pod:1489
6369 msgid ""
6370 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6371 msgstr ""
6372
6373 #. type: =head2
6374 #: ../fish/guestfish-actions.pod:951
6375 msgid "e2fsck-f"
6376 msgstr ""
6377
6378 #. type: verbatim
6379 #: ../fish/guestfish-actions.pod:953
6380 #, no-wrap
6381 msgid ""
6382 " e2fsck-f device\n"
6383 "\n"
6384 msgstr ""
6385
6386 #. type: textblock
6387 #: ../fish/guestfish-actions.pod:955 ../src/guestfs-actions.pod:1507
6388 msgid ""
6389 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6390 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
6391 "clean (I<-f>)."
6392 msgstr ""
6393
6394 #. type: textblock
6395 #: ../fish/guestfish-actions.pod:959
6396 msgid ""
6397 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
6398 "should use L</fsck>."
6399 msgstr ""
6400
6401 #. type: =head2
6402 #: ../fish/guestfish-actions.pod:962
6403 msgid "echo-daemon"
6404 msgstr ""
6405
6406 #. type: verbatim
6407 #: ../fish/guestfish-actions.pod:964
6408 #, no-wrap
6409 msgid ""
6410 " echo-daemon 'words ...'\n"
6411 "\n"
6412 msgstr ""
6413
6414 #. type: textblock
6415 #: ../fish/guestfish-actions.pod:966 ../src/guestfs-actions.pod:1524
6416 msgid ""
6417 "This command concatenates the list of C<words> passed with single spaces "
6418 "between them and returns the resulting string."
6419 msgstr ""
6420
6421 #. type: textblock
6422 #: ../fish/guestfish-actions.pod:969 ../src/guestfs-actions.pod:1527
6423 msgid "You can use this command to test the connection through to the daemon."
6424 msgstr ""
6425
6426 #. type: textblock
6427 #: ../fish/guestfish-actions.pod:971
6428 msgid "See also L</ping-daemon>."
6429 msgstr ""
6430
6431 #. type: =head2
6432 #: ../fish/guestfish-actions.pod:973
6433 msgid "egrep"
6434 msgstr ""
6435
6436 #. type: verbatim
6437 #: ../fish/guestfish-actions.pod:975
6438 #, no-wrap
6439 msgid ""
6440 " egrep regex path\n"
6441 "\n"
6442 msgstr ""
6443
6444 #. type: textblock
6445 #: ../fish/guestfish-actions.pod:977 ../src/guestfs-actions.pod:1543
6446 msgid ""
6447 "This calls the external C<egrep> program and returns the matching lines."
6448 msgstr ""
6449
6450 #. type: =head2
6451 #: ../fish/guestfish-actions.pod:983
6452 msgid "egrepi"
6453 msgstr ""
6454
6455 #. type: verbatim
6456 #: ../fish/guestfish-actions.pod:985
6457 #, no-wrap
6458 msgid ""
6459 " egrepi regex path\n"
6460 "\n"
6461 msgstr ""
6462
6463 #. type: textblock
6464 #: ../fish/guestfish-actions.pod:987 ../src/guestfs-actions.pod:1562
6465 msgid ""
6466 "This calls the external C<egrep -i> program and returns the matching lines."
6467 msgstr ""
6468
6469 #. type: =head2
6470 #: ../fish/guestfish-actions.pod:993
6471 msgid "equal"
6472 msgstr ""
6473
6474 #. type: verbatim
6475 #: ../fish/guestfish-actions.pod:995
6476 #, no-wrap
6477 msgid ""
6478 " equal file1 file2\n"
6479 "\n"
6480 msgstr ""
6481
6482 #. type: textblock
6483 #: ../fish/guestfish-actions.pod:997 ../src/guestfs-actions.pod:1581
6484 msgid ""
6485 "This compares the two files C<file1> and C<file2> and returns true if their "
6486 "content is exactly equal, or false otherwise."
6487 msgstr ""
6488
6489 #. type: textblock
6490 #: ../fish/guestfish-actions.pod:1000 ../src/guestfs-actions.pod:1584
6491 msgid "The external L<cmp(1)> program is used for the comparison."
6492 msgstr ""
6493
6494 #. type: =head2
6495 #: ../fish/guestfish-actions.pod:1002
6496 msgid "exists"
6497 msgstr ""
6498
6499 #. type: verbatim
6500 #: ../fish/guestfish-actions.pod:1004
6501 #, no-wrap
6502 msgid ""
6503 " exists path\n"
6504 "\n"
6505 msgstr ""
6506
6507 #. type: textblock
6508 #: ../fish/guestfish-actions.pod:1006 ../src/guestfs-actions.pod:1596
6509 msgid ""
6510 "This returns C<true> if and only if there is a file, directory (or anything) "
6511 "with the given C<path> name."
6512 msgstr ""
6513
6514 #. type: textblock
6515 #: ../fish/guestfish-actions.pod:1009
6516 msgid "See also L</is-file>, L</is-dir>, L</stat>."
6517 msgstr ""
6518
6519 #. type: =head2
6520 #: ../fish/guestfish-actions.pod:1011
6521 msgid "fallocate"
6522 msgstr ""
6523
6524 #. type: verbatim
6525 #: ../fish/guestfish-actions.pod:1013
6526 #, no-wrap
6527 msgid ""
6528 " fallocate path len\n"
6529 "\n"
6530 msgstr ""
6531
6532 #. type: textblock
6533 #: ../fish/guestfish-actions.pod:1015 ../fish/guestfish-actions.pod:1034
6534 #: ../src/guestfs-actions.pod:1619 ../src/guestfs-actions.pod:1638
6535 msgid ""
6536 "This command preallocates a file (containing zero bytes) named C<path> of "
6537 "size C<len> bytes.  If the file exists already, it is overwritten."
6538 msgstr ""
6539
6540 #. type: textblock
6541 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1623
6542 msgid ""
6543 "Do not confuse this with the guestfish-specific C<alloc> command which "
6544 "allocates a file in the host and attaches it as a device."
6545 msgstr ""
6546
6547 #. type: textblock
6548 #: ../fish/guestfish-actions.pod:1023
6549 msgid ""
6550 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
6551 "instead."
6552 msgstr ""
6553
6554 #. type: =head2
6555 #: ../fish/guestfish-actions.pod:1030
6556 msgid "fallocate64"
6557 msgstr ""
6558
6559 #. type: verbatim
6560 #: ../fish/guestfish-actions.pod:1032
6561 #, no-wrap
6562 msgid ""
6563 " fallocate64 path len\n"
6564 "\n"
6565 msgstr ""
6566
6567 #. type: textblock
6568 #: ../fish/guestfish-actions.pod:1038
6569 msgid ""
6570 "Note that this call allocates disk blocks for the file.  To create a sparse "
6571 "file use L</truncate-size> instead."
6572 msgstr ""
6573
6574 #. type: textblock
6575 #: ../fish/guestfish-actions.pod:1041
6576 msgid ""
6577 "The deprecated call L</fallocate> does the same, but owing to an oversight "
6578 "it only allowed 30 bit lengths to be specified, effectively limiting the "
6579 "maximum size of files created through that call to 1GB."
6580 msgstr ""
6581
6582 #. type: textblock
6583 #: ../fish/guestfish-actions.pod:1046 ../src/guestfs-actions.pod:1650
6584 msgid ""
6585 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6586 "commands which create a file in the host and attach it as a device."
6587 msgstr ""
6588
6589 #. type: =head2
6590 #: ../fish/guestfish-actions.pod:1050
6591 msgid "fgrep"
6592 msgstr ""
6593
6594 #. type: verbatim
6595 #: ../fish/guestfish-actions.pod:1052
6596 #, no-wrap
6597 msgid ""
6598 " fgrep pattern path\n"
6599 "\n"
6600 msgstr ""
6601
6602 #. type: textblock
6603 #: ../fish/guestfish-actions.pod:1054 ../src/guestfs-actions.pod:1665
6604 msgid ""
6605 "This calls the external C<fgrep> program and returns the matching lines."
6606 msgstr ""
6607
6608 #. type: =head2
6609 #: ../fish/guestfish-actions.pod:1060
6610 msgid "fgrepi"
6611 msgstr ""
6612
6613 #. type: verbatim
6614 #: ../fish/guestfish-actions.pod:1062
6615 #, no-wrap
6616 msgid ""
6617 " fgrepi pattern path\n"
6618 "\n"
6619 msgstr ""
6620
6621 #. type: textblock
6622 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1684
6623 msgid ""
6624 "This calls the external C<fgrep -i> program and returns the matching lines."
6625 msgstr ""
6626
6627 #. type: =head2
6628 #: ../fish/guestfish-actions.pod:1070
6629 msgid "file"
6630 msgstr ""
6631
6632 #. type: verbatim
6633 #: ../fish/guestfish-actions.pod:1072
6634 #, no-wrap
6635 msgid ""
6636 " file path\n"
6637 "\n"
6638 msgstr ""
6639
6640 #. type: textblock
6641 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1702
6642 msgid ""
6643 "This call uses the standard L<file(1)> command to determine the type or "
6644 "contents of the file."
6645 msgstr ""
6646
6647 #. type: textblock
6648 #: ../fish/guestfish-actions.pod:1077 ../src/guestfs-actions.pod:1705
6649 msgid ""
6650 "This call will also transparently look inside various types of compressed "
6651 "file."
6652 msgstr ""
6653
6654 #. type: textblock
6655 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1708
6656 msgid ""
6657 "The exact command which runs is C<file -zb path>.  Note in particular that "
6658 "the filename is not prepended to the output (the I<-b> option)."
6659 msgstr ""
6660
6661 #. type: textblock
6662 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1712
6663 msgid ""
6664 "The output depends on the output of the underlying L<file(1)> command and it "
6665 "can change in future in ways beyond our control.  In other words, the output "
6666 "is not guaranteed by the ABI."
6667 msgstr ""
6668
6669 #. type: textblock
6670 #: ../fish/guestfish-actions.pod:1088
6671 msgid ""
6672 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
6673 "(etc), L</is-zero>."
6674 msgstr ""
6675
6676 #. type: =head2
6677 #: ../fish/guestfish-actions.pod:1091
6678 msgid "file-architecture"
6679 msgstr ""
6680
6681 #. type: verbatim
6682 #: ../fish/guestfish-actions.pod:1093
6683 #, no-wrap
6684 msgid ""
6685 " file-architecture filename\n"
6686 "\n"
6687 msgstr ""
6688
6689 #. type: textblock
6690 #: ../fish/guestfish-actions.pod:1095 ../src/guestfs-actions.pod:1730
6691 msgid ""
6692 "This detects the architecture of the binary C<filename>, and returns it if "
6693 "known."
6694 msgstr ""
6695
6696 #. type: textblock
6697 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1733
6698 msgid "Currently defined architectures are:"
6699 msgstr ""
6700
6701 #. type: =item
6702 #: ../fish/guestfish-actions.pod:1102 ../src/guestfs-actions.pod:1737
6703 msgid "\"i386\""
6704 msgstr ""
6705
6706 #. type: textblock
6707 #: ../fish/guestfish-actions.pod:1104 ../src/guestfs-actions.pod:1739
6708 msgid ""
6709 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6710 "irrespective of the precise processor requirements of the binary."
6711 msgstr ""
6712
6713 #. type: =item
6714 #: ../fish/guestfish-actions.pod:1107 ../src/guestfs-actions.pod:1742
6715 msgid "\"x86_64\""
6716 msgstr ""
6717
6718 #. type: textblock
6719 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1744
6720 msgid "64 bit x86-64."
6721 msgstr ""
6722
6723 #. type: =item
6724 #: ../fish/guestfish-actions.pod:1111 ../src/guestfs-actions.pod:1746
6725 msgid "\"sparc\""
6726 msgstr ""
6727
6728 #. type: textblock
6729 #: ../fish/guestfish-actions.pod:1113 ../src/guestfs-actions.pod:1748
6730 msgid "32 bit SPARC."
6731 msgstr ""
6732
6733 #. type: =item
6734 #: ../fish/guestfish-actions.pod:1115 ../src/guestfs-actions.pod:1750
6735 msgid "\"sparc64\""
6736 msgstr ""
6737
6738 #. type: textblock
6739 #: ../fish/guestfish-actions.pod:1117 ../src/guestfs-actions.pod:1752
6740 msgid "64 bit SPARC V9 and above."
6741 msgstr ""
6742
6743 #. type: =item
6744 #: ../fish/guestfish-actions.pod:1119 ../src/guestfs-actions.pod:1754
6745 msgid "\"ia64\""
6746 msgstr ""
6747
6748 #. type: textblock
6749 #: ../fish/guestfish-actions.pod:1121 ../src/guestfs-actions.pod:1756
6750 msgid "Intel Itanium."
6751 msgstr ""
6752
6753 #. type: =item
6754 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1758
6755 msgid "\"ppc\""
6756 msgstr ""
6757
6758 #. type: textblock
6759 #: ../fish/guestfish-actions.pod:1125 ../src/guestfs-actions.pod:1760
6760 msgid "32 bit Power PC."
6761 msgstr ""
6762
6763 #. type: =item
6764 #: ../fish/guestfish-actions.pod:1127 ../src/guestfs-actions.pod:1762
6765 msgid "\"ppc64\""
6766 msgstr ""
6767
6768 #. type: textblock
6769 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1764
6770 msgid "64 bit Power PC."
6771 msgstr ""
6772
6773 #. type: textblock
6774 #: ../fish/guestfish-actions.pod:1133 ../src/guestfs-actions.pod:1768
6775 msgid "Libguestfs may return other architecture strings in future."
6776 msgstr ""
6777
6778 #. type: textblock
6779 #: ../fish/guestfish-actions.pod:1135 ../src/guestfs-actions.pod:1770
6780 msgid "The function works on at least the following types of files:"
6781 msgstr ""
6782
6783 #. type: textblock
6784 #: ../fish/guestfish-actions.pod:1141 ../src/guestfs-actions.pod:1776
6785 msgid "many types of Un*x and Linux binary"
6786 msgstr ""
6787
6788 #. type: textblock
6789 #: ../fish/guestfish-actions.pod:1145 ../src/guestfs-actions.pod:1780
6790 msgid "many types of Un*x and Linux shared library"
6791 msgstr ""
6792
6793 #. type: textblock
6794 #: ../fish/guestfish-actions.pod:1149 ../src/guestfs-actions.pod:1784
6795 msgid "Windows Win32 and Win64 binaries"
6796 msgstr ""
6797
6798 #. type: textblock
6799 #: ../fish/guestfish-actions.pod:1153 ../src/guestfs-actions.pod:1788
6800 msgid "Windows Win32 and Win64 DLLs"
6801 msgstr ""
6802
6803 #. type: textblock
6804 #: ../fish/guestfish-actions.pod:1155 ../src/guestfs-actions.pod:1790
6805 msgid "Win32 binaries and DLLs return C<i386>."
6806 msgstr ""
6807
6808 #. type: textblock
6809 #: ../fish/guestfish-actions.pod:1157 ../src/guestfs-actions.pod:1792
6810 msgid "Win64 binaries and DLLs return C<x86_64>."
6811 msgstr ""
6812
6813 #. type: textblock
6814 #: ../fish/guestfish-actions.pod:1161 ../src/guestfs-actions.pod:1796
6815 msgid "Linux kernel modules"
6816 msgstr ""
6817
6818 #. type: textblock
6819 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1800
6820 msgid "Linux new-style initrd images"
6821 msgstr ""
6822
6823 #. type: textblock
6824 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1804
6825 msgid "some non-x86 Linux vmlinuz kernels"
6826 msgstr ""
6827
6828 #. type: textblock
6829 #: ../fish/guestfish-actions.pod:1173 ../src/guestfs-actions.pod:1808
6830 msgid "What it can't do currently:"
6831 msgstr ""
6832
6833 #. type: textblock
6834 #: ../fish/guestfish-actions.pod:1179 ../src/guestfs-actions.pod:1814
6835 msgid "static libraries (libfoo.a)"
6836 msgstr ""
6837
6838 #. type: textblock
6839 #: ../fish/guestfish-actions.pod:1183 ../src/guestfs-actions.pod:1818
6840 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6841 msgstr ""
6842
6843 #. type: textblock
6844 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1822
6845 msgid "x86 Linux vmlinuz kernels"
6846 msgstr ""
6847
6848 #. type: textblock
6849 #: ../fish/guestfish-actions.pod:1189 ../src/guestfs-actions.pod:1824
6850 msgid ""
6851 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6852 "compressed code, and are horribly hard to unpack.  If you want to find the "
6853 "architecture of a kernel, use the architecture of the associated initrd or "
6854 "kernel module(s) instead."
6855 msgstr ""
6856
6857 #. type: =head2
6858 #: ../fish/guestfish-actions.pod:1196
6859 msgid "filesize"
6860 msgstr ""
6861
6862 #. type: verbatim
6863 #: ../fish/guestfish-actions.pod:1198
6864 #, no-wrap
6865 msgid ""
6866 " filesize file\n"
6867 "\n"
6868 msgstr ""
6869
6870 #. type: textblock
6871 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:1842
6872 msgid "This command returns the size of C<file> in bytes."
6873 msgstr ""
6874
6875 #. type: textblock
6876 #: ../fish/guestfish-actions.pod:1202
6877 msgid ""
6878 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
6879 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
6880 msgstr ""
6881
6882 #. type: =head2
6883 #: ../fish/guestfish-actions.pod:1206
6884 msgid "fill"
6885 msgstr ""
6886
6887 #. type: verbatim
6888 #: ../fish/guestfish-actions.pod:1208
6889 #, no-wrap
6890 msgid ""
6891 " fill c len path\n"
6892 "\n"
6893 msgstr ""
6894
6895 #. type: textblock
6896 #: ../fish/guestfish-actions.pod:1210 ../src/guestfs-actions.pod:1860
6897 msgid ""
6898 "This command creates a new file called C<path>.  The initial content of the "
6899 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
6900 "[0..255]>."
6901 msgstr ""
6902
6903 #. type: textblock
6904 #: ../fish/guestfish-actions.pod:1214
6905 msgid ""
6906 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6907 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
6908 "L</fill-pattern>."
6909 msgstr ""
6910
6911 #. type: =head2
6912 #: ../fish/guestfish-actions.pod:1219
6913 msgid "fill-pattern"
6914 msgstr ""
6915
6916 #. type: verbatim
6917 #: ../fish/guestfish-actions.pod:1221
6918 #, no-wrap
6919 msgid ""
6920 " fill-pattern pattern len path\n"
6921 "\n"
6922 msgstr ""
6923
6924 #. type: textblock
6925 #: ../fish/guestfish-actions.pod:1223
6926 msgid ""
6927 "This function is like L</fill> except that it creates a new file of length "
6928 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
6929 "is truncated if necessary to ensure the length of the file is exactly C<len> "
6930 "bytes."
6931 msgstr ""
6932
6933 #. type: =head2
6934 #: ../fish/guestfish-actions.pod:1228
6935 msgid "find"
6936 msgstr ""
6937
6938 #. type: verbatim
6939 #: ../fish/guestfish-actions.pod:1230
6940 #, no-wrap
6941 msgid ""
6942 " find directory\n"
6943 "\n"
6944 msgstr ""
6945
6946 #. type: textblock
6947 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:1906
6948 msgid ""
6949 "This command lists out all files and directories, recursively, starting at "
6950 "C<directory>.  It is essentially equivalent to running the shell command "
6951 "C<find directory -print> but some post-processing happens on the output, "
6952 "described below."
6953 msgstr ""
6954
6955 #. type: textblock
6956 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1911
6957 msgid ""
6958 "This returns a list of strings I<without any prefix>.  Thus if the directory "
6959 "structure was:"
6960 msgstr ""
6961
6962 #. type: verbatim
6963 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:1914
6964 #, no-wrap
6965 msgid ""
6966 " /tmp/a\n"
6967 " /tmp/b\n"
6968 " /tmp/c/d\n"
6969 "\n"
6970 msgstr ""
6971
6972 #. type: textblock
6973 #: ../fish/guestfish-actions.pod:1244
6974 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
6975 msgstr ""
6976
6977 #. type: verbatim
6978 #: ../fish/guestfish-actions.pod:1247 ../src/guestfs-actions.pod:1921
6979 #, no-wrap
6980 msgid ""
6981 " a\n"
6982 " b\n"
6983 " c\n"
6984 " c/d\n"
6985 "\n"
6986 msgstr ""
6987
6988 #. type: textblock
6989 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:1926
6990 msgid "If C<directory> is not a directory, then this command returns an error."
6991 msgstr ""
6992
6993 #. type: textblock
6994 #: ../fish/guestfish-actions.pod:1255 ../src/guestfs-actions.pod:1929
6995 msgid "The returned list is sorted."
6996 msgstr ""
6997
6998 #. type: textblock
6999 #: ../fish/guestfish-actions.pod:1257
7000 msgid "See also L</find0>."
7001 msgstr ""
7002
7003 #. type: =head2
7004 #: ../fish/guestfish-actions.pod:1262
7005 msgid "find0"
7006 msgstr ""
7007
7008 #. type: verbatim
7009 #: ../fish/guestfish-actions.pod:1264
7010 #, no-wrap
7011 msgid ""
7012 " find0 directory (files|-)\n"
7013 "\n"
7014 msgstr ""
7015
7016 #. type: textblock
7017 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1949
7018 msgid ""
7019 "This command lists out all files and directories, recursively, starting at "
7020 "C<directory>, placing the resulting list in the external file called "
7021 "C<files>."
7022 msgstr ""
7023
7024 #. type: textblock
7025 #: ../fish/guestfish-actions.pod:1270
7026 msgid ""
7027 "This command works the same way as L</find> with the following exceptions:"
7028 msgstr ""
7029
7030 #. type: textblock
7031 #: ../fish/guestfish-actions.pod:1277 ../src/guestfs-actions.pod:1960
7032 msgid "The resulting list is written to an external file."
7033 msgstr ""
7034
7035 #. type: textblock
7036 #: ../fish/guestfish-actions.pod:1281 ../src/guestfs-actions.pod:1964
7037 msgid ""
7038 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7039 "L<find(1)> option I<-print0>."
7040 msgstr ""
7041
7042 #. type: textblock
7043 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1969
7044 msgid "This command is not limited in the number of names that it can return."
7045 msgstr ""
7046
7047 #. type: textblock
7048 #: ../fish/guestfish-actions.pod:1291 ../src/guestfs-actions.pod:1974
7049 msgid "The result list is not sorted."
7050 msgstr ""
7051
7052 #. type: =head2
7053 #: ../fish/guestfish-actions.pod:1297
7054 msgid "findfs-label"
7055 msgstr ""
7056
7057 #. type: verbatim
7058 #: ../fish/guestfish-actions.pod:1299
7059 #, no-wrap
7060 msgid ""
7061 " findfs-label label\n"
7062 "\n"
7063 msgstr ""
7064
7065 #. type: textblock
7066 #: ../fish/guestfish-actions.pod:1301 ../src/guestfs-actions.pod:1988
7067 msgid ""
7068 "This command searches the filesystems and returns the one which has the "
7069 "given label.  An error is returned if no such filesystem can be found."
7070 msgstr ""
7071
7072 #. type: textblock
7073 #: ../fish/guestfish-actions.pod:1305
7074 msgid "To find the label of a filesystem, use L</vfs-label>."
7075 msgstr ""
7076
7077 #. type: =head2
7078 #: ../fish/guestfish-actions.pod:1307
7079 msgid "findfs-uuid"
7080 msgstr ""
7081
7082 #. type: verbatim
7083 #: ../fish/guestfish-actions.pod:1309
7084 #, no-wrap
7085 msgid ""
7086 " findfs-uuid uuid\n"
7087 "\n"
7088 msgstr ""
7089
7090 #. type: textblock
7091 #: ../fish/guestfish-actions.pod:1311 ../src/guestfs-actions.pod:2005
7092 msgid ""
7093 "This command searches the filesystems and returns the one which has the "
7094 "given UUID.  An error is returned if no such filesystem can be found."
7095 msgstr ""
7096
7097 #. type: textblock
7098 #: ../fish/guestfish-actions.pod:1315
7099 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
7100 msgstr ""
7101
7102 #. type: =head2
7103 #: ../fish/guestfish-actions.pod:1317
7104 msgid "fsck"
7105 msgstr ""
7106
7107 #. type: verbatim
7108 #: ../fish/guestfish-actions.pod:1319
7109 #, no-wrap
7110 msgid ""
7111 " fsck fstype device\n"
7112 "\n"
7113 msgstr ""
7114
7115 #. type: textblock
7116 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:2023
7117 msgid ""
7118 "This runs the filesystem checker (fsck) on C<device> which should have "
7119 "filesystem type C<fstype>."
7120 msgstr ""
7121
7122 #. type: textblock
7123 #: ../fish/guestfish-actions.pod:1324 ../src/guestfs-actions.pod:2026
7124 msgid ""
7125 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7126 "codes from C<fsck>."
7127 msgstr ""
7128
7129 #. type: textblock
7130 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2035
7131 msgid "Multiple status codes can be summed together."
7132 msgstr ""
7133
7134 #. type: textblock
7135 #: ../fish/guestfish-actions.pod:1337 ../src/guestfs-actions.pod:2039
7136 msgid ""
7137 "A non-zero return code can mean \"success\", for example if errors have been "
7138 "corrected on the filesystem."
7139 msgstr ""
7140
7141 #. type: textblock
7142 #: ../fish/guestfish-actions.pod:1342 ../src/guestfs-actions.pod:2044
7143 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7144 msgstr ""
7145
7146 #. type: textblock
7147 #: ../fish/guestfish-actions.pod:1347 ../src/guestfs-actions.pod:2049
7148 msgid ""
7149 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7150 msgstr ""
7151
7152 #. type: =head2
7153 #: ../fish/guestfish-actions.pod:1349
7154 msgid "get-append"
7155 msgstr ""
7156
7157 #. type: verbatim
7158 #: ../fish/guestfish-actions.pod:1351
7159 #, no-wrap
7160 msgid ""
7161 " get-append\n"
7162 "\n"
7163 msgstr ""
7164
7165 #. type: textblock
7166 #: ../fish/guestfish-actions.pod:1353 ../src/guestfs-actions.pod:2060
7167 msgid ""
7168 "Return the additional kernel options which are added to the guest kernel "
7169 "command line."
7170 msgstr ""
7171
7172 #. type: textblock
7173 #: ../fish/guestfish-actions.pod:1356 ../src/guestfs-actions.pod:2063
7174 msgid "If C<NULL> then no options are added."
7175 msgstr ""
7176
7177 #. type: =head2
7178 #: ../fish/guestfish-actions.pod:1358
7179 msgid "get-attach-method"
7180 msgstr ""
7181
7182 #. type: verbatim
7183 #: ../fish/guestfish-actions.pod:1360
7184 #, no-wrap
7185 msgid ""
7186 " get-attach-method\n"
7187 "\n"
7188 msgstr ""
7189
7190 #. type: textblock
7191 #: ../fish/guestfish-actions.pod:1362
7192 msgid "Return the current attach method.  See L</set-attach-method>."
7193 msgstr ""
7194
7195 #. type: =head2
7196 #: ../fish/guestfish-actions.pod:1364
7197 msgid "get-autosync"
7198 msgstr ""
7199
7200 #. type: verbatim
7201 #: ../fish/guestfish-actions.pod:1366
7202 #, no-wrap
7203 msgid ""
7204 " get-autosync\n"
7205 "\n"
7206 msgstr ""
7207
7208 #. type: textblock
7209 #: ../fish/guestfish-actions.pod:1368 ../src/guestfs-actions.pod:2088
7210 msgid "Get the autosync flag."
7211 msgstr ""
7212
7213 #. type: =head2
7214 #: ../fish/guestfish-actions.pod:1370
7215 msgid "get-direct"
7216 msgstr ""
7217
7218 #. type: verbatim
7219 #: ../fish/guestfish-actions.pod:1372
7220 #, no-wrap
7221 msgid ""
7222 " get-direct\n"
7223 "\n"
7224 msgstr ""
7225
7226 #. type: textblock
7227 #: ../fish/guestfish-actions.pod:1374 ../src/guestfs-actions.pod:2099
7228 msgid "Return the direct appliance mode flag."
7229 msgstr ""
7230
7231 #. type: =head2
7232 #: ../fish/guestfish-actions.pod:1376
7233 msgid "get-e2label"
7234 msgstr ""
7235
7236 #. type: verbatim
7237 #: ../fish/guestfish-actions.pod:1378
7238 #, no-wrap
7239 msgid ""
7240 " get-e2label device\n"
7241 "\n"
7242 msgstr ""
7243
7244 #. type: textblock
7245 #: ../fish/guestfish-actions.pod:1380 ../src/guestfs-actions.pod:2118
7246 msgid ""
7247 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7248 msgstr ""
7249
7250 #. type: textblock
7251 #: ../fish/guestfish-actions.pod:1383
7252 msgid ""
7253 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
7254 "instead."
7255 msgstr ""
7256
7257 #. type: =head2
7258 #: ../fish/guestfish-actions.pod:1390
7259 msgid "get-e2uuid"
7260 msgstr ""
7261
7262 #. type: verbatim
7263 #: ../fish/guestfish-actions.pod:1392
7264 #, no-wrap
7265 msgid ""
7266 " get-e2uuid device\n"
7267 "\n"
7268 msgstr ""
7269
7270 #. type: textblock
7271 #: ../fish/guestfish-actions.pod:1394 ../src/guestfs-actions.pod:2139
7272 msgid ""
7273 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7274 msgstr ""
7275
7276 #. type: textblock
7277 #: ../fish/guestfish-actions.pod:1397
7278 msgid ""
7279 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
7280 "instead."
7281 msgstr ""
7282
7283 #. type: =head2
7284 #: ../fish/guestfish-actions.pod:1404
7285 msgid "get-memsize"
7286 msgstr ""
7287
7288 #. type: verbatim
7289 #: ../fish/guestfish-actions.pod:1406
7290 #, no-wrap
7291 msgid ""
7292 " get-memsize\n"
7293 "\n"
7294 msgstr ""
7295
7296 #. type: textblock
7297 #: ../fish/guestfish-actions.pod:1408 ../src/guestfs-actions.pod:2152
7298 msgid ""
7299 "This gets the memory size in megabytes allocated to the qemu subprocess."
7300 msgstr ""
7301
7302 #. type: textblock
7303 #: ../fish/guestfish-actions.pod:1411
7304 msgid ""
7305 "If L</set-memsize> was not called on this handle, and if "
7306 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7307 "value for memsize."
7308 msgstr ""
7309
7310 #. type: textblock
7311 #: ../fish/guestfish-actions.pod:1415 ../fish/guestfish-actions.pod:1472
7312 #: ../fish/guestfish-actions.pod:4235 ../fish/guestfish-actions.pod:4337
7313 #: ../src/guestfs-actions.pod:2159 ../src/guestfs-actions.pod:2251
7314 #: ../src/guestfs-actions.pod:6440 ../src/guestfs-actions.pod:6566
7315 msgid ""
7316 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7317 msgstr ""
7318
7319 #. type: =head2
7320 #: ../fish/guestfish-actions.pod:1418
7321 msgid "get-network"
7322 msgstr ""
7323
7324 #. type: verbatim
7325 #: ../fish/guestfish-actions.pod:1420
7326 #, no-wrap
7327 msgid ""
7328 " get-network\n"
7329 "\n"
7330 msgstr ""
7331
7332 #. type: textblock
7333 #: ../fish/guestfish-actions.pod:1422 ../src/guestfs-actions.pod:2171
7334 msgid "This returns the enable network flag."
7335 msgstr ""
7336
7337 #. type: =head2
7338 #: ../fish/guestfish-actions.pod:1424
7339 msgid "get-path"
7340 msgstr ""
7341
7342 #. type: verbatim
7343 #: ../fish/guestfish-actions.pod:1426
7344 #, no-wrap
7345 msgid ""
7346 " get-path\n"
7347 "\n"
7348 msgstr ""
7349
7350 #. type: textblock
7351 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2182
7352 msgid "Return the current search path."
7353 msgstr ""
7354
7355 #. type: textblock
7356 #: ../fish/guestfish-actions.pod:1430 ../src/guestfs-actions.pod:2184
7357 msgid ""
7358 "This is always non-NULL.  If it wasn't set already, then this will return "
7359 "the default path."
7360 msgstr ""
7361
7362 #. type: =head2
7363 #: ../fish/guestfish-actions.pod:1433
7364 msgid "get-pgroup"
7365 msgstr ""
7366
7367 #. type: verbatim
7368 #: ../fish/guestfish-actions.pod:1435
7369 #, no-wrap
7370 msgid ""
7371 " get-pgroup\n"
7372 "\n"
7373 msgstr ""
7374
7375 #. type: textblock
7376 #: ../fish/guestfish-actions.pod:1437 ../src/guestfs-actions.pod:2197
7377 msgid "This returns the process group flag."
7378 msgstr ""
7379
7380 #. type: =head2
7381 #: ../fish/guestfish-actions.pod:1439
7382 msgid "get-pid"
7383 msgstr ""
7384
7385 #. type: =head2
7386 #: ../fish/guestfish-actions.pod:1441
7387 msgid "pid"
7388 msgstr ""
7389
7390 #. type: verbatim
7391 #: ../fish/guestfish-actions.pod:1443
7392 #, no-wrap
7393 msgid ""
7394 " get-pid\n"
7395 "\n"
7396 msgstr ""
7397
7398 #. type: textblock
7399 #: ../fish/guestfish-actions.pod:1445 ../src/guestfs-actions.pod:2208
7400 msgid ""
7401 "Return the process ID of the qemu subprocess.  If there is no qemu "
7402 "subprocess, then this will return an error."
7403 msgstr ""
7404
7405 #. type: textblock
7406 #: ../fish/guestfish-actions.pod:1448 ../src/guestfs-actions.pod:2211
7407 msgid "This is an internal call used for debugging and testing."
7408 msgstr ""
7409
7410 #. type: =head2
7411 #: ../fish/guestfish-actions.pod:1450
7412 msgid "get-qemu"
7413 msgstr ""
7414
7415 #. type: verbatim
7416 #: ../fish/guestfish-actions.pod:1452
7417 #, no-wrap
7418 msgid ""
7419 " get-qemu\n"
7420 "\n"
7421 msgstr ""
7422
7423 #. type: textblock
7424 #: ../fish/guestfish-actions.pod:1454 ../src/guestfs-actions.pod:2222
7425 msgid "Return the current qemu binary."
7426 msgstr ""
7427
7428 #. type: textblock
7429 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2224
7430 msgid ""
7431 "This is always non-NULL.  If it wasn't set already, then this will return "
7432 "the default qemu binary name."
7433 msgstr ""
7434
7435 #. type: =head2
7436 #: ../fish/guestfish-actions.pod:1459
7437 msgid "get-recovery-proc"
7438 msgstr ""
7439
7440 #. type: verbatim
7441 #: ../fish/guestfish-actions.pod:1461
7442 #, no-wrap
7443 msgid ""
7444 " get-recovery-proc\n"
7445 "\n"
7446 msgstr ""
7447
7448 #. type: textblock
7449 #: ../fish/guestfish-actions.pod:1463 ../src/guestfs-actions.pod:2237
7450 msgid "Return the recovery process enabled flag."
7451 msgstr ""
7452
7453 #. type: =head2
7454 #: ../fish/guestfish-actions.pod:1465
7455 msgid "get-selinux"
7456 msgstr ""
7457
7458 #. type: verbatim
7459 #: ../fish/guestfish-actions.pod:1467
7460 #, no-wrap
7461 msgid ""
7462 " get-selinux\n"
7463 "\n"
7464 msgstr ""
7465
7466 #. type: textblock
7467 #: ../fish/guestfish-actions.pod:1469
7468 msgid ""
7469 "This returns the current setting of the selinux flag which is passed to the "
7470 "appliance at boot time.  See L</set-selinux>."
7471 msgstr ""
7472
7473 #. type: =head2
7474 #: ../fish/guestfish-actions.pod:1475
7475 msgid "get-smp"
7476 msgstr ""
7477
7478 #. type: verbatim
7479 #: ../fish/guestfish-actions.pod:1477
7480 #, no-wrap
7481 msgid ""
7482 " get-smp\n"
7483 "\n"
7484 msgstr ""
7485
7486 #. type: textblock
7487 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2263
7488 msgid "This returns the number of virtual CPUs assigned to the appliance."
7489 msgstr ""
7490
7491 #. type: =head2
7492 #: ../fish/guestfish-actions.pod:1481
7493 msgid "get-state"
7494 msgstr ""
7495
7496 #. type: verbatim
7497 #: ../fish/guestfish-actions.pod:1483
7498 #, no-wrap
7499 msgid ""
7500 " get-state\n"
7501 "\n"
7502 msgstr ""
7503
7504 #. type: textblock
7505 #: ../fish/guestfish-actions.pod:1485 ../src/guestfs-actions.pod:2272
7506 msgid ""
7507 "This returns the current state as an opaque integer.  This is only useful "
7508 "for printing debug and internal error messages."
7509 msgstr ""
7510
7511 #. type: textblock
7512 #: ../fish/guestfish-actions.pod:1488 ../fish/guestfish-actions.pod:2434
7513 #: ../fish/guestfish-actions.pod:2452 ../fish/guestfish-actions.pod:2490
7514 #: ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:2275
7515 #: ../src/guestfs-actions.pod:3581 ../src/guestfs-actions.pod:3610
7516 #: ../src/guestfs-actions.pod:3671 ../src/guestfs-actions.pod:3698
7517 msgid "For more information on states, see L<guestfs(3)>."
7518 msgstr ""
7519
7520 #. type: =head2
7521 #: ../fish/guestfish-actions.pod:1490
7522 msgid "get-trace"
7523 msgstr ""
7524
7525 #. type: verbatim
7526 #: ../fish/guestfish-actions.pod:1492
7527 #, no-wrap
7528 msgid ""
7529 " get-trace\n"
7530 "\n"
7531 msgstr ""
7532
7533 #. type: textblock
7534 #: ../fish/guestfish-actions.pod:1494 ../src/guestfs-actions.pod:2286
7535 msgid "Return the command trace flag."
7536 msgstr ""
7537
7538 #. type: =head2
7539 #: ../fish/guestfish-actions.pod:1496
7540 msgid "get-umask"
7541 msgstr ""
7542
7543 #. type: verbatim
7544 #: ../fish/guestfish-actions.pod:1498
7545 #, no-wrap
7546 msgid ""
7547 " get-umask\n"
7548 "\n"
7549 msgstr ""
7550
7551 #. type: textblock
7552 #: ../fish/guestfish-actions.pod:1500
7553 msgid ""
7554 "Return the current umask.  By default the umask is C<022> unless it has been "
7555 "set by calling L</umask>."
7556 msgstr ""
7557
7558 #. type: =head2
7559 #: ../fish/guestfish-actions.pod:1503
7560 msgid "get-verbose"
7561 msgstr ""
7562
7563 #. type: verbatim
7564 #: ../fish/guestfish-actions.pod:1505
7565 #, no-wrap
7566 msgid ""
7567 " get-verbose\n"
7568 "\n"
7569 msgstr ""
7570
7571 #. type: textblock
7572 #: ../fish/guestfish-actions.pod:1507 ../src/guestfs-actions.pod:2309
7573 msgid "This returns the verbose messages flag."
7574 msgstr ""
7575
7576 #. type: =head2
7577 #: ../fish/guestfish-actions.pod:1509
7578 msgid "getcon"
7579 msgstr ""
7580
7581 #. type: verbatim
7582 #: ../fish/guestfish-actions.pod:1511
7583 #, no-wrap
7584 msgid ""
7585 " getcon\n"
7586 "\n"
7587 msgstr ""
7588
7589 #. type: textblock
7590 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2320
7591 msgid "This gets the SELinux security context of the daemon."
7592 msgstr ""
7593
7594 #. type: textblock
7595 #: ../fish/guestfish-actions.pod:1515
7596 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
7597 msgstr ""
7598
7599 #. type: =head2
7600 #: ../fish/guestfish-actions.pod:1518
7601 msgid "getxattr"
7602 msgstr ""
7603
7604 #. type: verbatim
7605 #: ../fish/guestfish-actions.pod:1520
7606 #, no-wrap
7607 msgid ""
7608 " getxattr path name\n"
7609 "\n"
7610 msgstr ""
7611
7612 #. type: textblock
7613 #: ../fish/guestfish-actions.pod:1522
7614 msgid ""
7615 "Get a single extended attribute from file C<path> named C<name>.  This call "
7616 "follows symlinks.  If you want to lookup an extended attribute for the "
7617 "symlink itself, use L</lgetxattr>."
7618 msgstr ""
7619
7620 #. type: textblock
7621 #: ../fish/guestfish-actions.pod:1526 ../fish/guestfish-actions.pod:2579
7622 msgid ""
7623 "Normally it is better to get all extended attributes from a file in one go "
7624 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
7625 "buggy and do not provide a way to list out attributes.  For these "
7626 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
7627 "attributes you want in advance and call this function."
7628 msgstr ""
7629
7630 #. type: textblock
7631 #: ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:2586
7632 #: ../src/guestfs-actions.pod:2349 ../src/guestfs-actions.pod:3831
7633 msgid ""
7634 "Extended attribute values are blobs of binary data.  If there is no extended "
7635 "attribute named C<name>, this returns an error."
7636 msgstr ""
7637
7638 #. type: textblock
7639 #: ../fish/guestfish-actions.pod:1536
7640 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7641 msgstr ""
7642
7643 #. type: =head2
7644 #: ../fish/guestfish-actions.pod:1538
7645 msgid "getxattrs"
7646 msgstr ""
7647
7648 #. type: verbatim
7649 #: ../fish/guestfish-actions.pod:1540
7650 #, no-wrap
7651 msgid ""
7652 " getxattrs path\n"
7653 "\n"
7654 msgstr ""
7655
7656 #. type: textblock
7657 #: ../fish/guestfish-actions.pod:1542 ../src/guestfs-actions.pod:2366
7658 msgid ""
7659 "This call lists the extended attributes of the file or directory C<path>."
7660 msgstr ""
7661
7662 #. type: textblock
7663 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2369
7664 msgid ""
7665 "At the system call level, this is a combination of the L<listxattr(2)> and "
7666 "L<getxattr(2)> calls."
7667 msgstr ""
7668
7669 #. type: textblock
7670 #: ../fish/guestfish-actions.pod:1548
7671 msgid "See also: L</lgetxattrs>, L<attr(5)>."
7672 msgstr ""
7673
7674 #. type: =head2
7675 #: ../fish/guestfish-actions.pod:1550
7676 msgid "glob-expand"
7677 msgstr ""
7678
7679 #. type: verbatim
7680 #: ../fish/guestfish-actions.pod:1552
7681 #, no-wrap
7682 msgid ""
7683 " glob-expand pattern\n"
7684 "\n"
7685 msgstr ""
7686
7687 #. type: textblock
7688 #: ../fish/guestfish-actions.pod:1554 ../src/guestfs-actions.pod:2386
7689 msgid ""
7690 "This command searches for all the pathnames matching C<pattern> according to "
7691 "the wildcard expansion rules used by the shell."
7692 msgstr ""
7693
7694 #. type: textblock
7695 #: ../fish/guestfish-actions.pod:1558 ../src/guestfs-actions.pod:2390
7696 msgid ""
7697 "If no paths match, then this returns an empty list (note: not an error)."
7698 msgstr ""
7699
7700 #. type: textblock
7701 #: ../fish/guestfish-actions.pod:1561 ../src/guestfs-actions.pod:2393
7702 msgid ""
7703 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
7704 "GLOB_BRACE>.  See that manual page for more details."
7705 msgstr ""
7706
7707 #. type: =head2
7708 #: ../fish/guestfish-actions.pod:1565
7709 msgid "grep"
7710 msgstr ""
7711
7712 #. type: verbatim
7713 #: ../fish/guestfish-actions.pod:1567
7714 #, no-wrap
7715 msgid ""
7716 " grep regex path\n"
7717 "\n"
7718 msgstr ""
7719
7720 #. type: textblock
7721 #: ../fish/guestfish-actions.pod:1569 ../src/guestfs-actions.pod:2410
7722 msgid "This calls the external C<grep> program and returns the matching lines."
7723 msgstr ""
7724
7725 #. type: =head2
7726 #: ../fish/guestfish-actions.pod:1575
7727 msgid "grepi"
7728 msgstr ""
7729
7730 #. type: verbatim
7731 #: ../fish/guestfish-actions.pod:1577
7732 #, no-wrap
7733 msgid ""
7734 " grepi regex path\n"
7735 "\n"
7736 msgstr ""
7737
7738 #. type: textblock
7739 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2429
7740 msgid ""
7741 "This calls the external C<grep -i> program and returns the matching lines."
7742 msgstr ""
7743
7744 #. type: =head2
7745 #: ../fish/guestfish-actions.pod:1585
7746 msgid "grub-install"
7747 msgstr ""
7748
7749 #. type: verbatim
7750 #: ../fish/guestfish-actions.pod:1587
7751 #, no-wrap
7752 msgid ""
7753 " grub-install root device\n"
7754 "\n"
7755 msgstr ""
7756
7757 #. type: textblock
7758 #: ../fish/guestfish-actions.pod:1589 ../src/guestfs-actions.pod:2448
7759 msgid ""
7760 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
7761 "with the root directory being C<root>."
7762 msgstr ""
7763
7764 #. type: textblock
7765 #: ../fish/guestfish-actions.pod:1598 ../src/guestfs-actions.pod:2457
7766 msgid ""
7767 "There is currently no way in the API to install grub2, which is used by most "
7768 "modern Linux guests.  It is possible to run the grub2 command from the "
7769 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
7770 msgstr ""
7771
7772 #. type: textblock
7773 #: ../fish/guestfish-actions.pod:1605 ../src/guestfs-actions.pod:2464
7774 msgid ""
7775 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
7776 "compatible with itself, so this only works in rather narrow circumstances.  "
7777 "Careful testing with each guest version is advisable."
7778 msgstr ""
7779
7780 #. type: textblock
7781 #: ../fish/guestfish-actions.pod:1612 ../src/guestfs-actions.pod:2471
7782 msgid ""
7783 "If grub-install reports the error \"No suitable drive was found in the "
7784 "generated device map.\" it may be that you need to create a C</boot/grub/"
7785 "device.map> file first that contains the mapping between grub device names "
7786 "and Linux device names.  It is usually sufficient to create a file "
7787 "containing:"
7788 msgstr ""
7789
7790 #. type: verbatim
7791 #: ../fish/guestfish-actions.pod:1619 ../src/guestfs-actions.pod:2478
7792 #, no-wrap
7793 msgid ""
7794 " (hd0) /dev/vda\n"
7795 "\n"
7796 msgstr ""
7797
7798 #. type: textblock
7799 #: ../fish/guestfish-actions.pod:1621 ../src/guestfs-actions.pod:2480
7800 msgid "replacing C</dev/vda> with the name of the installation device."
7801 msgstr ""
7802
7803 #. type: =head2
7804 #: ../fish/guestfish-actions.pod:1625
7805 msgid "head"
7806 msgstr ""
7807
7808 #. type: verbatim
7809 #: ../fish/guestfish-actions.pod:1627
7810 #, no-wrap
7811 msgid ""
7812 " head path\n"
7813 "\n"
7814 msgstr ""
7815
7816 #. type: textblock
7817 #: ../fish/guestfish-actions.pod:1629 ../src/guestfs-actions.pod:2494
7818 msgid ""
7819 "This command returns up to the first 10 lines of a file as a list of strings."
7820 msgstr ""
7821
7822 #. type: =head2
7823 #: ../fish/guestfish-actions.pod:1635
7824 msgid "head-n"
7825 msgstr ""
7826
7827 #. type: verbatim
7828 #: ../fish/guestfish-actions.pod:1637
7829 #, no-wrap
7830 msgid ""
7831 " head-n nrlines path\n"
7832 "\n"
7833 msgstr ""
7834
7835 #. type: textblock
7836 #: ../fish/guestfish-actions.pod:1639 ../src/guestfs-actions.pod:2513
7837 msgid ""
7838 "If the parameter C<nrlines> is a positive number, this returns the first "
7839 "C<nrlines> lines of the file C<path>."
7840 msgstr ""
7841
7842 #. type: textblock
7843 #: ../fish/guestfish-actions.pod:1642 ../src/guestfs-actions.pod:2516
7844 msgid ""
7845 "If the parameter C<nrlines> is a negative number, this returns lines from "
7846 "the file C<path>, excluding the last C<nrlines> lines."
7847 msgstr ""
7848
7849 #. type: textblock
7850 #: ../fish/guestfish-actions.pod:1645 ../fish/guestfish-actions.pod:4727
7851 #: ../src/guestfs-actions.pod:2519 ../src/guestfs-actions.pod:7152
7852 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7853 msgstr ""
7854
7855 #. type: =head2
7856 #: ../fish/guestfish-actions.pod:1650
7857 msgid "hexdump"
7858 msgstr ""
7859
7860 #. type: verbatim
7861 #: ../fish/guestfish-actions.pod:1652
7862 #, no-wrap
7863 msgid ""
7864 " hexdump path\n"
7865 "\n"
7866 msgstr ""
7867
7868 #. type: textblock
7869 #: ../fish/guestfish-actions.pod:1654 ../src/guestfs-actions.pod:2536
7870 msgid ""
7871 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
7872 "readable, canonical hex dump of the file."
7873 msgstr ""
7874
7875 #. type: =head2
7876 #: ../fish/guestfish-actions.pod:1660
7877 msgid "initrd-cat"
7878 msgstr ""
7879
7880 #. type: verbatim
7881 #: ../fish/guestfish-actions.pod:1662
7882 #, no-wrap
7883 msgid ""
7884 " initrd-cat initrdpath filename\n"
7885 "\n"
7886 msgstr ""
7887
7888 #. type: textblock
7889 #: ../fish/guestfish-actions.pod:1664 ../src/guestfs-actions.pod:2555
7890 msgid ""
7891 "This command unpacks the file C<filename> from the initrd file called "
7892 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7893 "character."
7894 msgstr ""
7895
7896 #. type: textblock
7897 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2559
7898 msgid ""
7899 "For example, in guestfish you could use the following command to examine the "
7900 "boot script (usually called C</init>)  contained in a Linux initrd or "
7901 "initramfs image:"
7902 msgstr ""
7903
7904 #. type: verbatim
7905 #: ../fish/guestfish-actions.pod:1672 ../src/guestfs-actions.pod:2563
7906 #, no-wrap
7907 msgid ""
7908 " initrd-cat /boot/initrd-<version>.img init\n"
7909 "\n"
7910 msgstr ""
7911
7912 #. type: textblock
7913 #: ../fish/guestfish-actions.pod:1674
7914 msgid "See also L</initrd-list>."
7915 msgstr ""
7916
7917 #. type: =head2
7918 #: ../fish/guestfish-actions.pod:1679
7919 msgid "initrd-list"
7920 msgstr ""
7921
7922 #. type: verbatim
7923 #: ../fish/guestfish-actions.pod:1681
7924 #, no-wrap
7925 msgid ""
7926 " initrd-list path\n"
7927 "\n"
7928 msgstr ""
7929
7930 #. type: textblock
7931 #: ../fish/guestfish-actions.pod:1683 ../src/guestfs-actions.pod:2582
7932 msgid "This command lists out files contained in an initrd."
7933 msgstr ""
7934
7935 #. type: textblock
7936 #: ../fish/guestfish-actions.pod:1685 ../src/guestfs-actions.pod:2584
7937 msgid ""
7938 "The files are listed without any initial C</> character.  The files are "
7939 "listed in the order they appear (not necessarily alphabetical).  Directory "
7940 "names are listed as separate items."
7941 msgstr ""
7942
7943 #. type: textblock
7944 #: ../fish/guestfish-actions.pod:1689 ../src/guestfs-actions.pod:2588
7945 msgid ""
7946 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
7947 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
7948 "files)."
7949 msgstr ""
7950
7951 #. type: =head2
7952 #: ../fish/guestfish-actions.pod:1693
7953 msgid "inotify-add-watch"
7954 msgstr ""
7955
7956 #. type: verbatim
7957 #: ../fish/guestfish-actions.pod:1695
7958 #, no-wrap
7959 msgid ""
7960 " inotify-add-watch path mask\n"
7961 "\n"
7962 msgstr ""
7963
7964 #. type: textblock
7965 #: ../fish/guestfish-actions.pod:1697 ../src/guestfs-actions.pod:2605
7966 msgid "Watch C<path> for the events listed in C<mask>."
7967 msgstr ""
7968
7969 #. type: textblock
7970 #: ../fish/guestfish-actions.pod:1699 ../src/guestfs-actions.pod:2607
7971 msgid ""
7972 "Note that if C<path> is a directory then events within that directory are "
7973 "watched, but this does I<not> happen recursively (in subdirectories)."
7974 msgstr ""
7975
7976 #. type: textblock
7977 #: ../fish/guestfish-actions.pod:1703 ../src/guestfs-actions.pod:2611
7978 msgid ""
7979 "Note for non-C or non-Linux callers: the inotify events are defined by the "
7980 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
7981 msgstr ""
7982
7983 #. type: =head2
7984 #: ../fish/guestfish-actions.pod:1707
7985 msgid "inotify-close"
7986 msgstr ""
7987
7988 #. type: verbatim
7989 #: ../fish/guestfish-actions.pod:1709
7990 #, no-wrap
7991 msgid ""
7992 " inotify-close\n"
7993 "\n"
7994 msgstr ""
7995
7996 #. type: textblock
7997 #: ../fish/guestfish-actions.pod:1711 ../src/guestfs-actions.pod:2624
7998 msgid ""
7999 "This closes the inotify handle which was previously opened by inotify_init.  "
8000 "It removes all watches, throws away any pending events, and deallocates all "
8001 "resources."
8002 msgstr ""
8003
8004 #. type: =head2
8005 #: ../fish/guestfish-actions.pod:1715
8006 msgid "inotify-files"
8007 msgstr ""
8008
8009 #. type: verbatim
8010 #: ../fish/guestfish-actions.pod:1717
8011 #, no-wrap
8012 msgid ""
8013 " inotify-files\n"
8014 "\n"
8015 msgstr ""
8016
8017 #. type: textblock
8018 #: ../fish/guestfish-actions.pod:1719
8019 msgid ""
8020 "This function is a helpful wrapper around L</inotify-read> which just "
8021 "returns a list of pathnames of objects that were touched.  The returned "
8022 "pathnames are sorted and deduplicated."
8023 msgstr ""
8024
8025 #. type: =head2
8026 #: ../fish/guestfish-actions.pod:1723
8027 msgid "inotify-init"
8028 msgstr ""
8029
8030 #. type: verbatim
8031 #: ../fish/guestfish-actions.pod:1725
8032 #, no-wrap
8033 msgid ""
8034 " inotify-init maxevents\n"
8035 "\n"
8036 msgstr ""
8037
8038 #. type: textblock
8039 #: ../fish/guestfish-actions.pod:1727 ../src/guestfs-actions.pod:2653
8040 msgid ""
8041 "This command creates a new inotify handle.  The inotify subsystem can be "
8042 "used to notify events which happen to objects in the guest filesystem."
8043 msgstr ""
8044
8045 #. type: textblock
8046 #: ../fish/guestfish-actions.pod:1731
8047 msgid ""
8048 "C<maxevents> is the maximum number of events which will be queued up between "
8049 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
8050 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
8051 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
8052 "but records the fact that it threw them away by setting a flag "
8053 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
8054 msgstr ""
8055
8056 #. type: textblock
8057 #: ../fish/guestfish-actions.pod:1741
8058 msgid ""
8059 "Before any events are generated, you have to add some watches to the "
8060 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
8061 "L</inotify-watch-all>."
8062 msgstr ""
8063
8064 #. type: textblock
8065 #: ../fish/guestfish-actions.pod:1747
8066 msgid ""
8067 "Queued up events should be read periodically by calling L</inotify-read> (or "
8068 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
8069 "If you don't read the events out often enough then you risk the internal "
8070 "queue overflowing."
8071 msgstr ""
8072
8073 #. type: textblock
8074 #: ../fish/guestfish-actions.pod:1754
8075 msgid ""
8076 "The handle should be closed after use by calling L</inotify-close>.  This "
8077 "also removes any watches automatically."
8078 msgstr ""
8079
8080 #. type: textblock
8081 #: ../fish/guestfish-actions.pod:1758 ../src/guestfs-actions.pod:2684
8082 msgid ""
8083 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8084 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8085 "that there is one global inotify handle per libguestfs instance."
8086 msgstr ""
8087
8088 #. type: =head2
8089 #: ../fish/guestfish-actions.pod:1763
8090 msgid "inotify-read"
8091 msgstr ""
8092
8093 #. type: verbatim
8094 #: ../fish/guestfish-actions.pod:1765
8095 #, no-wrap
8096 msgid ""
8097 " inotify-read\n"
8098 "\n"
8099 msgstr ""
8100
8101 #. type: textblock
8102 #: ../fish/guestfish-actions.pod:1767 ../src/guestfs-actions.pod:2698
8103 msgid ""
8104 "Return the complete queue of events that have happened since the previous "
8105 "read call."
8106 msgstr ""
8107
8108 #. type: textblock
8109 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2701
8110 msgid "If no events have happened, this returns an empty list."
8111 msgstr ""
8112
8113 #. type: textblock
8114 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2703
8115 msgid ""
8116 "I<Note>: In order to make sure that all events have been read, you must call "
8117 "this function repeatedly until it returns an empty list.  The reason is that "
8118 "the call will read events up to the maximum appliance-to-host message size "
8119 "and leave remaining events in the queue."
8120 msgstr ""
8121
8122 #. type: =head2
8123 #: ../fish/guestfish-actions.pod:1778
8124 msgid "inotify-rm-watch"
8125 msgstr ""
8126
8127 #. type: verbatim
8128 #: ../fish/guestfish-actions.pod:1780
8129 #, no-wrap
8130 msgid ""
8131 " inotify-rm-watch wd\n"
8132 "\n"
8133 msgstr ""
8134
8135 #. type: textblock
8136 #: ../fish/guestfish-actions.pod:1782
8137 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
8138 msgstr ""
8139
8140 #. type: =head2
8141 #: ../fish/guestfish-actions.pod:1785
8142 msgid "inspect-get-arch"
8143 msgstr ""
8144
8145 #. type: verbatim
8146 #: ../fish/guestfish-actions.pod:1787
8147 #, no-wrap
8148 msgid ""
8149 " inspect-get-arch root\n"
8150 "\n"
8151 msgstr ""
8152
8153 #. type: textblock
8154 #: ../fish/guestfish-actions.pod:1789
8155 msgid ""
8156 "This returns the architecture of the inspected operating system.  The "
8157 "possible return values are listed under L</file-architecture>."
8158 msgstr ""
8159
8160 #. type: textblock
8161 #: ../fish/guestfish-actions.pod:1793 ../src/guestfs-actions.pod:2738
8162 msgid ""
8163 "If the architecture could not be determined, then the string C<unknown> is "
8164 "returned."
8165 msgstr ""
8166
8167 #. type: textblock
8168 #: ../fish/guestfish-actions.pod:1796 ../fish/guestfish-actions.pod:1883
8169 #: ../fish/guestfish-actions.pod:1962 ../fish/guestfish-actions.pod:1974
8170 #: ../fish/guestfish-actions.pod:2058 ../fish/guestfish-actions.pod:2119
8171 #: ../fish/guestfish-actions.pod:2140 ../fish/guestfish-actions.pod:2154
8172 #: ../fish/guestfish-actions.pod:2194 ../fish/guestfish-actions.pod:2226
8173 #: ../fish/guestfish-actions.pod:2239 ../fish/guestfish-actions.pod:2252
8174 #: ../fish/guestfish-actions.pod:2262 ../fish/guestfish-actions.pod:2272
8175 #: ../fish/guestfish-actions.pod:2284 ../fish/guestfish-actions.pod:2380
8176 #: ../fish/guestfish-actions.pod:2414 ../src/guestfs-actions.pod:2741
8177 #: ../src/guestfs-actions.pod:2835 ../src/guestfs-actions.pod:2939
8178 #: ../src/guestfs-actions.pod:2958 ../src/guestfs-actions.pod:3089
8179 #: ../src/guestfs-actions.pod:3172 ../src/guestfs-actions.pod:3200
8180 #: ../src/guestfs-actions.pod:3221 ../src/guestfs-actions.pod:3274
8181 #: ../src/guestfs-actions.pod:3314 ../src/guestfs-actions.pod:3334
8182 #: ../src/guestfs-actions.pod:3354 ../src/guestfs-actions.pod:3371
8183 #: ../src/guestfs-actions.pod:3387 ../src/guestfs-actions.pod:3405
8184 #: ../src/guestfs-actions.pod:3507 ../src/guestfs-actions.pod:3548
8185 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8186 msgstr ""
8187
8188 #. type: =head2
8189 #: ../fish/guestfish-actions.pod:1798
8190 msgid "inspect-get-distro"
8191 msgstr ""
8192
8193 #. type: verbatim
8194 #: ../fish/guestfish-actions.pod:1800
8195 #, no-wrap
8196 msgid ""
8197 " inspect-get-distro root\n"
8198 "\n"
8199 msgstr ""
8200
8201 #. type: textblock
8202 #: ../fish/guestfish-actions.pod:1802 ../src/guestfs-actions.pod:2754
8203 msgid ""
8204 "This returns the distro (distribution) of the inspected operating system."
8205 msgstr ""
8206
8207 #. type: textblock
8208 #: ../fish/guestfish-actions.pod:1805 ../src/guestfs-actions.pod:2757
8209 msgid "Currently defined distros are:"
8210 msgstr ""
8211
8212 #. type: =item
8213 #: ../fish/guestfish-actions.pod:1809 ../src/guestfs-actions.pod:2761
8214 msgid "\"archlinux\""
8215 msgstr ""
8216
8217 #. type: textblock
8218 #: ../fish/guestfish-actions.pod:1811 ../src/guestfs-actions.pod:2763
8219 msgid "Arch Linux."
8220 msgstr ""
8221
8222 #. type: =item
8223 #: ../fish/guestfish-actions.pod:1813 ../src/guestfs-actions.pod:2765
8224 msgid "\"centos\""
8225 msgstr ""
8226
8227 #. type: textblock
8228 #: ../fish/guestfish-actions.pod:1815 ../src/guestfs-actions.pod:2767
8229 msgid "CentOS."
8230 msgstr ""
8231
8232 #. type: =item
8233 #: ../fish/guestfish-actions.pod:1817 ../src/guestfs-actions.pod:2769
8234 msgid "\"debian\""
8235 msgstr ""
8236
8237 #. type: textblock
8238 #: ../fish/guestfish-actions.pod:1819 ../src/guestfs-actions.pod:2771
8239 msgid "Debian."
8240 msgstr ""
8241
8242 #. type: =item
8243 #: ../fish/guestfish-actions.pod:1821 ../src/guestfs-actions.pod:2773
8244 msgid "\"fedora\""
8245 msgstr ""
8246
8247 #. type: textblock
8248 #: ../fish/guestfish-actions.pod:1823 ../src/guestfs-actions.pod:2775
8249 msgid "Fedora."
8250 msgstr ""
8251
8252 #. type: =item
8253 #: ../fish/guestfish-actions.pod:1825 ../src/guestfs-actions.pod:2777
8254 msgid "\"gentoo\""
8255 msgstr ""
8256
8257 #. type: textblock
8258 #: ../fish/guestfish-actions.pod:1827 ../src/guestfs-actions.pod:2779
8259 msgid "Gentoo."
8260 msgstr ""
8261
8262 #. type: =item
8263 #: ../fish/guestfish-actions.pod:1829 ../src/guestfs-actions.pod:2781
8264 msgid "\"linuxmint\""
8265 msgstr ""
8266
8267 #. type: textblock
8268 #: ../fish/guestfish-actions.pod:1831 ../src/guestfs-actions.pod:2783
8269 msgid "Linux Mint."
8270 msgstr ""
8271
8272 #. type: =item
8273 #: ../fish/guestfish-actions.pod:1833 ../src/guestfs-actions.pod:2785
8274 msgid "\"mandriva\""
8275 msgstr ""
8276
8277 #. type: textblock
8278 #: ../fish/guestfish-actions.pod:1835 ../src/guestfs-actions.pod:2787
8279 msgid "Mandriva."
8280 msgstr ""
8281
8282 #. type: =item
8283 #: ../fish/guestfish-actions.pod:1837 ../src/guestfs-actions.pod:2789
8284 msgid "\"meego\""
8285 msgstr ""
8286
8287 #. type: textblock
8288 #: ../fish/guestfish-actions.pod:1839 ../src/guestfs-actions.pod:2791
8289 msgid "MeeGo."
8290 msgstr ""
8291
8292 #. type: =item
8293 #: ../fish/guestfish-actions.pod:1841 ../src/guestfs-actions.pod:2793
8294 msgid "\"pardus\""
8295 msgstr ""
8296
8297 #. type: textblock
8298 #: ../fish/guestfish-actions.pod:1843 ../src/guestfs-actions.pod:2795
8299 msgid "Pardus."
8300 msgstr ""
8301
8302 #. type: =item
8303 #: ../fish/guestfish-actions.pod:1845 ../src/guestfs-actions.pod:2797
8304 msgid "\"redhat-based\""
8305 msgstr ""
8306
8307 #. type: textblock
8308 #: ../fish/guestfish-actions.pod:1847 ../src/guestfs-actions.pod:2799
8309 msgid "Some Red Hat-derived distro."
8310 msgstr ""
8311
8312 #. type: =item
8313 #: ../fish/guestfish-actions.pod:1849 ../src/guestfs-actions.pod:2801
8314 msgid "\"rhel\""
8315 msgstr ""
8316
8317 #. type: textblock
8318 #: ../fish/guestfish-actions.pod:1851 ../src/guestfs-actions.pod:2803
8319 msgid "Red Hat Enterprise Linux."
8320 msgstr ""
8321
8322 #. type: =item
8323 #: ../fish/guestfish-actions.pod:1853 ../src/guestfs-actions.pod:2805
8324 msgid "\"scientificlinux\""
8325 msgstr ""
8326
8327 #. type: textblock
8328 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2807
8329 msgid "Scientific Linux."
8330 msgstr ""
8331
8332 #. type: =item
8333 #: ../fish/guestfish-actions.pod:1857 ../src/guestfs-actions.pod:2809
8334 msgid "\"slackware\""
8335 msgstr ""
8336
8337 #. type: textblock
8338 #: ../fish/guestfish-actions.pod:1859 ../src/guestfs-actions.pod:2811
8339 msgid "Slackware."
8340 msgstr ""
8341
8342 #. type: =item
8343 #: ../fish/guestfish-actions.pod:1861 ../src/guestfs-actions.pod:2813
8344 msgid "\"ttylinux\""
8345 msgstr ""
8346
8347 #. type: textblock
8348 #: ../fish/guestfish-actions.pod:1863 ../src/guestfs-actions.pod:2815
8349 msgid "ttylinux."
8350 msgstr ""
8351
8352 #. type: =item
8353 #: ../fish/guestfish-actions.pod:1865 ../src/guestfs-actions.pod:2817
8354 msgid "\"ubuntu\""
8355 msgstr ""
8356
8357 #. type: textblock
8358 #: ../fish/guestfish-actions.pod:1867 ../src/guestfs-actions.pod:2819
8359 msgid "Ubuntu."
8360 msgstr ""
8361
8362 #. type: =item
8363 #: ../fish/guestfish-actions.pod:1869 ../fish/guestfish-actions.pod:1953
8364 #: ../fish/guestfish-actions.pod:2217 ../src/guestfs-actions.pod:2821
8365 #: ../src/guestfs-actions.pod:2930 ../src/guestfs-actions.pod:3305
8366 msgid "\"unknown\""
8367 msgstr ""
8368
8369 #. type: textblock
8370 #: ../fish/guestfish-actions.pod:1871 ../src/guestfs-actions.pod:2823
8371 msgid "The distro could not be determined."
8372 msgstr ""
8373
8374 #. type: =item
8375 #: ../fish/guestfish-actions.pod:1873 ../fish/guestfish-actions.pod:2209
8376 #: ../src/guestfs-actions.pod:2825 ../src/guestfs-actions.pod:3297
8377 msgid "\"windows\""
8378 msgstr ""
8379
8380 #. type: textblock
8381 #: ../fish/guestfish-actions.pod:1875 ../src/guestfs-actions.pod:2827
8382 msgid ""
8383 "Windows does not have distributions.  This string is returned if the OS type "
8384 "is Windows."
8385 msgstr ""
8386
8387 #. type: textblock
8388 #: ../fish/guestfish-actions.pod:1880 ../fish/guestfish-actions.pod:1959
8389 #: ../fish/guestfish-actions.pod:2223 ../src/guestfs-actions.pod:2832
8390 #: ../src/guestfs-actions.pod:2936 ../src/guestfs-actions.pod:3311
8391 msgid ""
8392 "Future versions of libguestfs may return other strings here.  The caller "
8393 "should be prepared to handle any string."
8394 msgstr ""
8395
8396 #. type: =head2
8397 #: ../fish/guestfish-actions.pod:1885
8398 msgid "inspect-get-drive-mappings"
8399 msgstr ""
8400
8401 #. type: verbatim
8402 #: ../fish/guestfish-actions.pod:1887
8403 #, no-wrap
8404 msgid ""
8405 " inspect-get-drive-mappings root\n"
8406 "\n"
8407 msgstr ""
8408
8409 #. type: textblock
8410 #: ../fish/guestfish-actions.pod:1889 ../src/guestfs-actions.pod:2848
8411 msgid ""
8412 "This call is useful for Windows which uses a primitive system of assigning "
8413 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
8414 "Windows Registry to find out how disks/partitions are mapped to drive "
8415 "letters, and returns a hash table as in the example below:"
8416 msgstr ""
8417
8418 #. type: verbatim
8419 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:2854
8420 #, no-wrap
8421 msgid ""
8422 " C      =>     /dev/vda2\n"
8423 " E      =>     /dev/vdb1\n"
8424 " F      =>     /dev/vdc1\n"
8425 "\n"
8426 msgstr ""
8427
8428 #. type: textblock
8429 #: ../fish/guestfish-actions.pod:1899 ../src/guestfs-actions.pod:2858
8430 msgid ""
8431 "Note that keys are drive letters.  For Windows, the key is case insensitive "
8432 "and just contains the drive letter, without the customary colon separator "
8433 "character."
8434 msgstr ""
8435
8436 #. type: textblock
8437 #: ../fish/guestfish-actions.pod:1903 ../src/guestfs-actions.pod:2862
8438 msgid ""
8439 "In future we may support other operating systems that also used drive "
8440 "letters, but the keys for those might not be case insensitive and might be "
8441 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
8442 "C<h1> etc."
8443 msgstr ""
8444
8445 #. type: textblock
8446 #: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:2867
8447 msgid ""
8448 "For Windows guests, currently only hard drive mappings are returned.  "
8449 "Removable disks (eg. DVD-ROMs) are ignored."
8450 msgstr ""
8451
8452 #. type: textblock
8453 #: ../fish/guestfish-actions.pod:1911 ../src/guestfs-actions.pod:2870
8454 msgid ""
8455 "For guests that do not use drive mappings, or if the drive mappings could "
8456 "not be determined, this returns an empty hash table."
8457 msgstr ""
8458
8459 #. type: textblock
8460 #: ../fish/guestfish-actions.pod:1914
8461 msgid ""
8462 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8463 "get-mountpoints>, L</inspect-get-filesystems>."
8464 msgstr ""
8465
8466 #. type: =head2
8467 #: ../fish/guestfish-actions.pod:1918
8468 msgid "inspect-get-filesystems"
8469 msgstr ""
8470
8471 #. type: verbatim
8472 #: ../fish/guestfish-actions.pod:1920
8473 #, no-wrap
8474 msgid ""
8475 " inspect-get-filesystems root\n"
8476 "\n"
8477 msgstr ""
8478
8479 #. type: textblock
8480 #: ../fish/guestfish-actions.pod:1922 ../src/guestfs-actions.pod:2891
8481 msgid ""
8482 "This returns a list of all the filesystems that we think are associated with "
8483 "this operating system.  This includes the root filesystem, other ordinary "
8484 "filesystems, and non-mounted devices like swap partitions."
8485 msgstr ""
8486
8487 #. type: textblock
8488 #: ../fish/guestfish-actions.pod:1927 ../src/guestfs-actions.pod:2896
8489 msgid ""
8490 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8491 "to be shared between operating systems."
8492 msgstr ""
8493
8494 #. type: textblock
8495 #: ../fish/guestfish-actions.pod:1930
8496 msgid ""
8497 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8498 "get-mountpoints>."
8499 msgstr ""
8500
8501 #. type: =head2
8502 #: ../fish/guestfish-actions.pod:1933
8503 msgid "inspect-get-format"
8504 msgstr ""
8505
8506 #. type: verbatim
8507 #: ../fish/guestfish-actions.pod:1935
8508 #, no-wrap
8509 msgid ""
8510 " inspect-get-format root\n"
8511 "\n"
8512 msgstr ""
8513
8514 #. type: textblock
8515 #: ../fish/guestfish-actions.pod:1937 ../src/guestfs-actions.pod:2914
8516 msgid ""
8517 "This returns the format of the inspected operating system.  You can use it "
8518 "to detect install images, live CDs and similar."
8519 msgstr ""
8520
8521 #. type: textblock
8522 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2917
8523 msgid "Currently defined formats are:"
8524 msgstr ""
8525
8526 #. type: =item
8527 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:2921
8528 msgid "\"installed\""
8529 msgstr ""
8530
8531 #. type: textblock
8532 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:2923
8533 msgid "This is an installed operating system."
8534 msgstr ""
8535
8536 #. type: =item
8537 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:2925
8538 msgid "\"installer\""
8539 msgstr ""
8540
8541 #. type: textblock
8542 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:2927
8543 msgid ""
8544 "The disk image being inspected is not an installed operating system, but a "
8545 "I<bootable> install disk, live CD, or similar."
8546 msgstr ""
8547
8548 #. type: textblock
8549 #: ../fish/guestfish-actions.pod:1955 ../src/guestfs-actions.pod:2932
8550 msgid "The format of this disk image is not known."
8551 msgstr ""
8552
8553 #. type: =head2
8554 #: ../fish/guestfish-actions.pod:1964
8555 msgid "inspect-get-hostname"
8556 msgstr ""
8557
8558 #. type: verbatim
8559 #: ../fish/guestfish-actions.pod:1966
8560 #, no-wrap
8561 msgid ""
8562 " inspect-get-hostname root\n"
8563 "\n"
8564 msgstr ""
8565
8566 #. type: textblock
8567 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2952
8568 msgid ""
8569 "This function returns the hostname of the operating system as found by "
8570 "inspection of the guest's configuration files."
8571 msgstr ""
8572
8573 #. type: textblock
8574 #: ../fish/guestfish-actions.pod:1971 ../src/guestfs-actions.pod:2955
8575 msgid ""
8576 "If the hostname could not be determined, then the string C<unknown> is "
8577 "returned."
8578 msgstr ""
8579
8580 #. type: =head2
8581 #: ../fish/guestfish-actions.pod:1976
8582 msgid "inspect-get-icon"
8583 msgstr ""
8584
8585 #. type: verbatim
8586 #: ../fish/guestfish-actions.pod:1978
8587 #, no-wrap
8588 msgid ""
8589 " inspect-get-icon root [favicon:..] [highquality:..]\n"
8590 "\n"
8591 msgstr ""
8592
8593 #. type: textblock
8594 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:2981
8595 msgid ""
8596 "This function returns an icon corresponding to the inspected operating "
8597 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
8598 "to PNG if necessary)."
8599 msgstr ""
8600
8601 #. type: textblock
8602 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:2985
8603 msgid ""
8604 "If it was not possible to get an icon this function returns a zero-length "
8605 "(non-NULL) buffer.  I<Callers must check for this case>."
8606 msgstr ""
8607
8608 #. type: textblock
8609 #: ../fish/guestfish-actions.pod:1987 ../src/guestfs-actions.pod:2988
8610 msgid ""
8611 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
8612 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
8613 "this file will be returned.  You can disable favicons by passing the "
8614 "optional C<favicon> boolean as false (default is true)."
8615 msgstr ""
8616
8617 #. type: textblock
8618 #: ../fish/guestfish-actions.pod:1993 ../src/guestfs-actions.pod:2994
8619 msgid ""
8620 "If finding the favicon fails, then we look in other places in the guest for "
8621 "a suitable icon."
8622 msgstr ""
8623
8624 #. type: textblock
8625 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:2997
8626 msgid ""
8627 "If the optional C<highquality> boolean is true then only high quality icons "
8628 "are returned, which means only icons of high resolution with an alpha "
8629 "channel.  The default (false) is to return any icon we can, even if it is of "
8630 "substandard quality."
8631 msgstr ""
8632
8633 #. type: textblock
8634 #: ../fish/guestfish-actions.pod:2007 ../src/guestfs-actions.pod:3008
8635 msgid ""
8636 "Unlike most other inspection API calls, the guest's disks must be mounted up "
8637 "before you call this, since it needs to read information from the guest "
8638 "filesystem during the call."
8639 msgstr ""
8640
8641 #. type: textblock
8642 #: ../fish/guestfish-actions.pod:2013 ../src/guestfs-actions.pod:3014
8643 msgid ""
8644 "B<Security:> The icon data comes from the untrusted guest, and should be "
8645 "treated with caution.  PNG files have been known to contain exploits.  "
8646 "Ensure that libpng (or other relevant libraries) are fully up to date before "
8647 "trying to process or display the icon."
8648 msgstr ""
8649
8650 #. type: textblock
8651 #: ../fish/guestfish-actions.pod:2021 ../src/guestfs-actions.pod:3022
8652 msgid ""
8653 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
8654 "tries to return the largest, highest quality icon available.  The "
8655 "application must scale the icon to the required size."
8656 msgstr ""
8657
8658 #. type: textblock
8659 #: ../fish/guestfish-actions.pod:2028 ../src/guestfs-actions.pod:3029
8660 msgid ""
8661 "Extracting icons from Windows guests requires the external C<wrestool> "
8662 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
8663 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
8664 "installed separately."
8665 msgstr ""
8666
8667 #. type: textblock
8668 #: ../fish/guestfish-actions.pod:2035 ../src/guestfs-actions.pod:3036
8669 msgid ""
8670 "Operating system icons are usually trademarks.  Seek legal advice before "
8671 "using trademarks in applications."
8672 msgstr ""
8673
8674 #. type: =head2
8675 #: ../fish/guestfish-actions.pod:2042
8676 msgid "inspect-get-major-version"
8677 msgstr ""
8678
8679 #. type: verbatim
8680 #: ../fish/guestfish-actions.pod:2044
8681 #, no-wrap
8682 msgid ""
8683 " inspect-get-major-version root\n"
8684 "\n"
8685 msgstr ""
8686
8687 #. type: textblock
8688 #: ../fish/guestfish-actions.pod:2046 ../src/guestfs-actions.pod:3077
8689 msgid ""
8690 "This returns the major version number of the inspected operating system."
8691 msgstr ""
8692
8693 #. type: textblock
8694 #: ../fish/guestfish-actions.pod:2049 ../src/guestfs-actions.pod:3080
8695 msgid ""
8696 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8697 "popular public names used by the operating system.  Notably the operating "
8698 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8699 "1).  You can find out the real versions corresponding to releases of Windows "
8700 "by consulting Wikipedia or MSDN."
8701 msgstr ""
8702
8703 #. type: textblock
8704 #: ../fish/guestfish-actions.pod:2056 ../fish/guestfish-actions.pod:2067
8705 #: ../src/guestfs-actions.pod:3087 ../src/guestfs-actions.pod:3104
8706 msgid "If the version could not be determined, then C<0> is returned."
8707 msgstr ""
8708
8709 #. type: =head2
8710 #: ../fish/guestfish-actions.pod:2060
8711 msgid "inspect-get-minor-version"
8712 msgstr ""
8713
8714 #. type: verbatim
8715 #: ../fish/guestfish-actions.pod:2062
8716 #, no-wrap
8717 msgid ""
8718 " inspect-get-minor-version root\n"
8719 "\n"
8720 msgstr ""
8721
8722 #. type: textblock
8723 #: ../fish/guestfish-actions.pod:2064 ../src/guestfs-actions.pod:3101
8724 msgid ""
8725 "This returns the minor version number of the inspected operating system."
8726 msgstr ""
8727
8728 #. type: textblock
8729 #: ../fish/guestfish-actions.pod:2069
8730 msgid ""
8731 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8732 "get-major-version>."
8733 msgstr ""
8734
8735 #. type: =head2
8736 #: ../fish/guestfish-actions.pod:2072
8737 msgid "inspect-get-mountpoints"
8738 msgstr ""
8739
8740 #. type: verbatim
8741 #: ../fish/guestfish-actions.pod:2074
8742 #, no-wrap
8743 msgid ""
8744 " inspect-get-mountpoints root\n"
8745 "\n"
8746 msgstr ""
8747
8748 #. type: textblock
8749 #: ../fish/guestfish-actions.pod:2076 ../src/guestfs-actions.pod:3119
8750 msgid ""
8751 "This returns a hash of where we think the filesystems associated with this "
8752 "operating system should be mounted.  Callers should note that this is at "
8753 "best an educated guess made by reading configuration files such as C</etc/"
8754 "fstab>.  I<In particular note> that this may return filesystems which are "
8755 "non-existent or not mountable and callers should be prepared to handle or "
8756 "ignore failures if they try to mount them."
8757 msgstr ""
8758
8759 #. type: textblock
8760 #: ../fish/guestfish-actions.pod:2085 ../src/guestfs-actions.pod:3128
8761 msgid ""
8762 "Each element in the returned hashtable has a key which is the path of the "
8763 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8764 "mounted there (eg. C</dev/sda1>)."
8765 msgstr ""
8766
8767 #. type: textblock
8768 #: ../fish/guestfish-actions.pod:2090 ../src/guestfs-actions.pod:3133
8769 msgid ""
8770 "Non-mounted devices such as swap devices are I<not> returned in this list."
8771 msgstr ""
8772
8773 #. type: textblock
8774 #: ../fish/guestfish-actions.pod:2093
8775 msgid ""
8776 "For operating systems like Windows which still use drive letters, this call "
8777 "will only return an entry for the first drive \"mounted on\" C</>.  For "
8778 "information about the mapping of drive letters to partitions, see L</inspect-"
8779 "get-drive-mappings>."
8780 msgstr ""
8781
8782 #. type: textblock
8783 #: ../fish/guestfish-actions.pod:2099
8784 msgid ""
8785 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8786 "get-filesystems>."
8787 msgstr ""
8788
8789 #. type: =head2
8790 #: ../fish/guestfish-actions.pod:2102
8791 msgid "inspect-get-package-format"
8792 msgstr ""
8793
8794 #. type: verbatim
8795 #: ../fish/guestfish-actions.pod:2104
8796 #, no-wrap
8797 msgid ""
8798 " inspect-get-package-format root\n"
8799 "\n"
8800 msgstr ""
8801
8802 #. type: textblock
8803 #: ../fish/guestfish-actions.pod:2106
8804 msgid ""
8805 "This function and L</inspect-get-package-management> return the package "
8806 "format and package management tool used by the inspected operating system.  "
8807 "For example for Fedora these functions would return C<rpm> (package format) "
8808 "and C<yum> (package management)."
8809 msgstr ""
8810
8811 #. type: textblock
8812 #: ../fish/guestfish-actions.pod:2112 ../src/guestfs-actions.pod:3165
8813 msgid ""
8814 "This returns the string C<unknown> if we could not determine the package "
8815 "format I<or> if the operating system does not have a real packaging system "
8816 "(eg. Windows)."
8817 msgstr ""
8818
8819 #. type: textblock
8820 #: ../fish/guestfish-actions.pod:2116 ../src/guestfs-actions.pod:3169
8821 msgid ""
8822 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
8823 "Future versions of libguestfs may return other strings."
8824 msgstr ""
8825
8826 #. type: =head2
8827 #: ../fish/guestfish-actions.pod:2121
8828 msgid "inspect-get-package-management"
8829 msgstr ""
8830
8831 #. type: verbatim
8832 #: ../fish/guestfish-actions.pod:2123
8833 #, no-wrap
8834 msgid ""
8835 " inspect-get-package-management root\n"
8836 "\n"
8837 msgstr ""
8838
8839 #. type: textblock
8840 #: ../fish/guestfish-actions.pod:2125
8841 msgid ""
8842 "L</inspect-get-package-format> and this function return the package format "
8843 "and package management tool used by the inspected operating system.  For "
8844 "example for Fedora these functions would return C<rpm> (package format) and "
8845 "C<yum> (package management)."
8846 msgstr ""
8847
8848 #. type: textblock
8849 #: ../fish/guestfish-actions.pod:2131 ../src/guestfs-actions.pod:3191
8850 msgid ""
8851 "This returns the string C<unknown> if we could not determine the package "
8852 "management tool I<or> if the operating system does not have a real packaging "
8853 "system (eg. Windows)."
8854 msgstr ""
8855
8856 #. type: textblock
8857 #: ../fish/guestfish-actions.pod:2135 ../src/guestfs-actions.pod:3195
8858 msgid ""
8859 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
8860 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
8861 "libguestfs may return other strings."
8862 msgstr ""
8863
8864 #. type: =head2
8865 #: ../fish/guestfish-actions.pod:2142
8866 msgid "inspect-get-product-name"
8867 msgstr ""
8868
8869 #. type: verbatim
8870 #: ../fish/guestfish-actions.pod:2144
8871 #, no-wrap
8872 msgid ""
8873 " inspect-get-product-name root\n"
8874 "\n"
8875 msgstr ""
8876
8877 #. type: textblock
8878 #: ../fish/guestfish-actions.pod:2146 ../src/guestfs-actions.pod:3213
8879 msgid ""
8880 "This returns the product name of the inspected operating system.  The "
8881 "product name is generally some freeform string which can be displayed to the "
8882 "user, but should not be parsed by programs."
8883 msgstr ""
8884
8885 #. type: textblock
8886 #: ../fish/guestfish-actions.pod:2151 ../src/guestfs-actions.pod:3218
8887 msgid ""
8888 "If the product name could not be determined, then the string C<unknown> is "
8889 "returned."
8890 msgstr ""
8891
8892 #. type: =head2
8893 #: ../fish/guestfish-actions.pod:2156
8894 msgid "inspect-get-product-variant"
8895 msgstr ""
8896
8897 #. type: verbatim
8898 #: ../fish/guestfish-actions.pod:2158
8899 #, no-wrap
8900 msgid ""
8901 " inspect-get-product-variant root\n"
8902 "\n"
8903 msgstr ""
8904
8905 #. type: textblock
8906 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3234
8907 msgid "This returns the product variant of the inspected operating system."
8908 msgstr ""
8909
8910 #. type: textblock
8911 #: ../fish/guestfish-actions.pod:2163 ../src/guestfs-actions.pod:3237
8912 msgid ""
8913 "For Windows guests, this returns the contents of the Registry key C<HKLM"
8914 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
8915 "is usually a string such as C<Client> or C<Server> (other values are "
8916 "possible).  This can be used to distinguish consumer and enterprise versions "
8917 "of Windows that have the same version number (for example, Windows 7 and "
8918 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
8919 "the latter is C<Server>)."
8920 msgstr ""
8921
8922 #. type: textblock
8923 #: ../fish/guestfish-actions.pod:2172 ../src/guestfs-actions.pod:3246
8924 msgid ""
8925 "For enterprise Linux guests, in future we intend this to return the product "
8926 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
8927 "implemented at present."
8928 msgstr ""
8929
8930 #. type: textblock
8931 #: ../fish/guestfish-actions.pod:2176 ../src/guestfs-actions.pod:3250
8932 msgid ""
8933 "If the product variant could not be determined, then the string C<unknown> "
8934 "is returned."
8935 msgstr ""
8936
8937 #. type: textblock
8938 #: ../fish/guestfish-actions.pod:2179
8939 msgid ""
8940 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8941 "get-product-name>, L</inspect-get-major-version>."
8942 msgstr ""
8943
8944 #. type: =head2
8945 #: ../fish/guestfish-actions.pod:2183
8946 msgid "inspect-get-roots"
8947 msgstr ""
8948
8949 #. type: verbatim
8950 #: ../fish/guestfish-actions.pod:2185
8951 #, no-wrap
8952 msgid ""
8953 " inspect-get-roots\n"
8954 "\n"
8955 msgstr ""
8956
8957 #. type: textblock
8958 #: ../fish/guestfish-actions.pod:2187
8959 msgid ""
8960 "This function is a convenient way to get the list of root devices, as "
8961 "returned from a previous call to L</inspect-os>, but without redoing the "
8962 "whole inspection process."
8963 msgstr ""
8964
8965 #. type: textblock
8966 #: ../fish/guestfish-actions.pod:2191
8967 msgid ""
8968 "This returns an empty list if either no root devices were found or the "
8969 "caller has not called L</inspect-os>."
8970 msgstr ""
8971
8972 #. type: =head2
8973 #: ../fish/guestfish-actions.pod:2196
8974 msgid "inspect-get-type"
8975 msgstr ""
8976
8977 #. type: verbatim
8978 #: ../fish/guestfish-actions.pod:2198
8979 #, no-wrap
8980 msgid ""
8981 " inspect-get-type root\n"
8982 "\n"
8983 msgstr ""
8984
8985 #. type: textblock
8986 #: ../fish/guestfish-actions.pod:2200 ../src/guestfs-actions.pod:3288
8987 msgid ""
8988 "This returns the type of the inspected operating system.  Currently defined "
8989 "types are:"
8990 msgstr ""
8991
8992 #. type: =item
8993 #: ../fish/guestfish-actions.pod:2205 ../src/guestfs-actions.pod:3293
8994 msgid "\"linux\""
8995 msgstr ""
8996
8997 #. type: textblock
8998 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3295
8999 msgid "Any Linux-based operating system."
9000 msgstr ""
9001
9002 #. type: textblock
9003 #: ../fish/guestfish-actions.pod:2211 ../src/guestfs-actions.pod:3299
9004 msgid "Any Microsoft Windows operating system."
9005 msgstr ""
9006
9007 #. type: =item
9008 #: ../fish/guestfish-actions.pod:2213 ../src/guestfs-actions.pod:3301
9009 msgid "\"freebsd\""
9010 msgstr ""
9011
9012 #. type: textblock
9013 #: ../fish/guestfish-actions.pod:2215 ../src/guestfs-actions.pod:3303
9014 msgid "FreeBSD."
9015 msgstr ""
9016
9017 #. type: textblock
9018 #: ../fish/guestfish-actions.pod:2219 ../src/guestfs-actions.pod:3307
9019 msgid "The operating system type could not be determined."
9020 msgstr ""
9021
9022 #. type: =head2
9023 #: ../fish/guestfish-actions.pod:2228
9024 msgid "inspect-get-windows-current-control-set"
9025 msgstr ""
9026
9027 #. type: verbatim
9028 #: ../fish/guestfish-actions.pod:2230
9029 #, no-wrap
9030 msgid ""
9031 " inspect-get-windows-current-control-set root\n"
9032 "\n"
9033 msgstr ""
9034
9035 #. type: textblock
9036 #: ../fish/guestfish-actions.pod:2232 ../src/guestfs-actions.pod:3327
9037 msgid ""
9038 "This returns the Windows CurrentControlSet of the inspected guest.  The "
9039 "CurrentControlSet is a registry key name such as C<ControlSet001>."
9040 msgstr ""
9041
9042 #. type: textblock
9043 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:3330
9044 msgid ""
9045 "This call assumes that the guest is Windows and that the Registry could be "
9046 "examined by inspection.  If this is not the case then an error is returned."
9047 msgstr ""
9048
9049 #. type: =head2
9050 #: ../fish/guestfish-actions.pod:2241
9051 msgid "inspect-get-windows-systemroot"
9052 msgstr ""
9053
9054 #. type: verbatim
9055 #: ../fish/guestfish-actions.pod:2243
9056 #, no-wrap
9057 msgid ""
9058 " inspect-get-windows-systemroot root\n"
9059 "\n"
9060 msgstr ""
9061
9062 #. type: textblock
9063 #: ../fish/guestfish-actions.pod:2245 ../src/guestfs-actions.pod:3347
9064 msgid ""
9065 "This returns the Windows systemroot of the inspected guest.  The systemroot "
9066 "is a directory path such as C</WINDOWS>."
9067 msgstr ""
9068
9069 #. type: textblock
9070 #: ../fish/guestfish-actions.pod:2248 ../src/guestfs-actions.pod:3350
9071 msgid ""
9072 "This call assumes that the guest is Windows and that the systemroot could be "
9073 "determined by inspection.  If this is not the case then an error is returned."
9074 msgstr ""
9075
9076 #. type: =head2
9077 #: ../fish/guestfish-actions.pod:2254
9078 msgid "inspect-is-live"
9079 msgstr ""
9080
9081 #. type: verbatim
9082 #: ../fish/guestfish-actions.pod:2256
9083 #, no-wrap
9084 msgid ""
9085 " inspect-is-live root\n"
9086 "\n"
9087 msgstr ""
9088
9089 #. type: textblock
9090 #: ../fish/guestfish-actions.pod:2258
9091 msgid ""
9092 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9093 "then this returns true if a live image was detected on the disk."
9094 msgstr ""
9095
9096 #. type: =head2
9097 #: ../fish/guestfish-actions.pod:2264
9098 msgid "inspect-is-multipart"
9099 msgstr ""
9100
9101 #. type: verbatim
9102 #: ../fish/guestfish-actions.pod:2266
9103 #, no-wrap
9104 msgid ""
9105 " inspect-is-multipart root\n"
9106 "\n"
9107 msgstr ""
9108
9109 #. type: textblock
9110 #: ../fish/guestfish-actions.pod:2268
9111 msgid ""
9112 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9113 "then this returns true if the disk is part of a set."
9114 msgstr ""
9115
9116 #. type: =head2
9117 #: ../fish/guestfish-actions.pod:2274
9118 msgid "inspect-is-netinst"
9119 msgstr ""
9120
9121 #. type: verbatim
9122 #: ../fish/guestfish-actions.pod:2276
9123 #, no-wrap
9124 msgid ""
9125 " inspect-is-netinst root\n"
9126 "\n"
9127 msgstr ""
9128
9129 #. type: textblock
9130 #: ../fish/guestfish-actions.pod:2278
9131 msgid ""
9132 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9133 "then this returns true if the disk is a network installer, ie. not a self-"
9134 "contained install CD but one which is likely to require network access to "
9135 "complete the install."
9136 msgstr ""
9137
9138 #. type: =head2
9139 #: ../fish/guestfish-actions.pod:2286
9140 msgid "inspect-list-applications"
9141 msgstr ""
9142
9143 #. type: verbatim
9144 #: ../fish/guestfish-actions.pod:2288
9145 #, no-wrap
9146 msgid ""
9147 " inspect-list-applications root\n"
9148 "\n"
9149 msgstr ""
9150
9151 #. type: textblock
9152 #: ../fish/guestfish-actions.pod:2290 ../src/guestfs-actions.pod:3417
9153 msgid "Return the list of applications installed in the operating system."
9154 msgstr ""
9155
9156 #. type: textblock
9157 #: ../fish/guestfish-actions.pod:2292
9158 msgid ""
9159 "I<Note:> This call works differently from other parts of the inspection "
9160 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
9161 "then mount up the disks, before calling this.  Listing applications is a "
9162 "significantly more difficult operation which requires access to the full "
9163 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
9164 "are just returning data cached in the libguestfs handle, this call actually "
9165 "reads parts of the mounted filesystems during the call."
9166 msgstr ""
9167
9168 #. type: textblock
9169 #: ../fish/guestfish-actions.pod:2302 ../src/guestfs-actions.pod:3429
9170 msgid ""
9171 "This returns an empty list if the inspection code was not able to determine "
9172 "the list of applications."
9173 msgstr ""
9174
9175 #. type: textblock
9176 #: ../fish/guestfish-actions.pod:2305 ../src/guestfs-actions.pod:3432
9177 msgid "The application structure contains the following fields:"
9178 msgstr ""
9179
9180 #. type: =item
9181 #: ../fish/guestfish-actions.pod:2309 ../src/guestfs-actions.pod:3436
9182 msgid "C<app_name>"
9183 msgstr ""
9184
9185 #. type: textblock
9186 #: ../fish/guestfish-actions.pod:2311 ../src/guestfs-actions.pod:3438
9187 msgid ""
9188 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
9189 "guests, this is the package name."
9190 msgstr ""
9191
9192 #. type: =item
9193 #: ../fish/guestfish-actions.pod:2314 ../src/guestfs-actions.pod:3441
9194 msgid "C<app_display_name>"
9195 msgstr ""
9196
9197 #. type: textblock
9198 #: ../fish/guestfish-actions.pod:2316 ../src/guestfs-actions.pod:3443
9199 msgid ""
9200 "The display name of the application, sometimes localized to the install "
9201 "language of the guest operating system."
9202 msgstr ""
9203
9204 #. type: textblock
9205 #: ../fish/guestfish-actions.pod:2319 ../src/guestfs-actions.pod:3446
9206 msgid ""
9207 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
9208 "to display something can use C<app_name> instead."
9209 msgstr ""
9210
9211 #. type: =item
9212 #: ../fish/guestfish-actions.pod:2322 ../src/guestfs-actions.pod:3449
9213 msgid "C<app_epoch>"
9214 msgstr ""
9215
9216 #. type: textblock
9217 #: ../fish/guestfish-actions.pod:2324 ../src/guestfs-actions.pod:3451
9218 msgid ""
9219 "For package managers which use epochs, this contains the epoch of the "
9220 "package (an integer).  If unavailable, this is returned as C<0>."
9221 msgstr ""
9222
9223 #. type: =item
9224 #: ../fish/guestfish-actions.pod:2327 ../src/guestfs-actions.pod:3454
9225 msgid "C<app_version>"
9226 msgstr ""
9227
9228 #. type: textblock
9229 #: ../fish/guestfish-actions.pod:2329 ../src/guestfs-actions.pod:3456
9230 msgid ""
9231 "The version string of the application or package.  If unavailable this is "
9232 "returned as an empty string C<\"\">."
9233 msgstr ""
9234
9235 #. type: =item
9236 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3459
9237 msgid "C<app_release>"
9238 msgstr ""
9239
9240 #. type: textblock
9241 #: ../fish/guestfish-actions.pod:2334 ../src/guestfs-actions.pod:3461
9242 msgid ""
9243 "The release string of the application or package, for package managers that "
9244 "use this.  If unavailable this is returned as an empty string C<\"\">."
9245 msgstr ""
9246
9247 #. type: =item
9248 #: ../fish/guestfish-actions.pod:2338 ../src/guestfs-actions.pod:3465
9249 msgid "C<app_install_path>"
9250 msgstr ""
9251
9252 #. type: textblock
9253 #: ../fish/guestfish-actions.pod:2340 ../src/guestfs-actions.pod:3467
9254 msgid ""
9255 "The installation path of the application (on operating systems such as "
9256 "Windows which use installation paths).  This path is in the format used by "
9257 "the guest operating system, it is not a libguestfs path."
9258 msgstr ""
9259
9260 #. type: textblock
9261 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3472
9262 msgid "If unavailable this is returned as an empty string C<\"\">."
9263 msgstr ""
9264
9265 #. type: =item
9266 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3474
9267 msgid "C<app_trans_path>"
9268 msgstr ""
9269
9270 #. type: textblock
9271 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3476
9272 msgid ""
9273 "The install path translated into a libguestfs path.  If unavailable this is "
9274 "returned as an empty string C<\"\">."
9275 msgstr ""
9276
9277 #. type: =item
9278 #: ../fish/guestfish-actions.pod:2352 ../src/guestfs-actions.pod:3479
9279 msgid "C<app_publisher>"
9280 msgstr ""
9281
9282 #. type: textblock
9283 #: ../fish/guestfish-actions.pod:2354 ../src/guestfs-actions.pod:3481
9284 msgid ""
9285 "The name of the publisher of the application, for package managers that use "
9286 "this.  If unavailable this is returned as an empty string C<\"\">."
9287 msgstr ""
9288
9289 #. type: =item
9290 #: ../fish/guestfish-actions.pod:2358 ../src/guestfs-actions.pod:3485
9291 msgid "C<app_url>"
9292 msgstr ""
9293
9294 #. type: textblock
9295 #: ../fish/guestfish-actions.pod:2360 ../src/guestfs-actions.pod:3487
9296 msgid ""
9297 "The URL (eg. upstream URL) of the application.  If unavailable this is "
9298 "returned as an empty string C<\"\">."
9299 msgstr ""
9300
9301 #. type: =item
9302 #: ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3490
9303 msgid "C<app_source_package>"
9304 msgstr ""
9305
9306 #. type: textblock
9307 #: ../fish/guestfish-actions.pod:2365 ../src/guestfs-actions.pod:3492
9308 msgid ""
9309 "For packaging systems which support this, the name of the source package.  "
9310 "If unavailable this is returned as an empty string C<\"\">."
9311 msgstr ""
9312
9313 #. type: =item
9314 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3495
9315 msgid "C<app_summary>"
9316 msgstr ""
9317
9318 #. type: textblock
9319 #: ../fish/guestfish-actions.pod:2370 ../src/guestfs-actions.pod:3497
9320 msgid ""
9321 "A short (usually one line) description of the application or package.  If "
9322 "unavailable this is returned as an empty string C<\"\">."
9323 msgstr ""
9324
9325 #. type: =item
9326 #: ../fish/guestfish-actions.pod:2373 ../src/guestfs-actions.pod:3500
9327 msgid "C<app_description>"
9328 msgstr ""
9329
9330 #. type: textblock
9331 #: ../fish/guestfish-actions.pod:2375 ../src/guestfs-actions.pod:3502
9332 msgid ""
9333 "A longer description of the application or package.  If unavailable this is "
9334 "returned as an empty string C<\"\">."
9335 msgstr ""
9336
9337 #. type: =head2
9338 #: ../fish/guestfish-actions.pod:2382
9339 msgid "inspect-os"
9340 msgstr ""
9341
9342 #. type: verbatim
9343 #: ../fish/guestfish-actions.pod:2384
9344 #, no-wrap
9345 msgid ""
9346 " inspect-os\n"
9347 "\n"
9348 msgstr ""
9349
9350 #. type: textblock
9351 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3520
9352 msgid ""
9353 "This function uses other libguestfs functions and certain heuristics to "
9354 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9355 "for operating systems."
9356 msgstr ""
9357
9358 #. type: textblock
9359 #: ../fish/guestfish-actions.pod:2390 ../src/guestfs-actions.pod:3524
9360 msgid "The list returned is empty if no operating systems were found."
9361 msgstr ""
9362
9363 #. type: textblock
9364 #: ../fish/guestfish-actions.pod:2392 ../src/guestfs-actions.pod:3526
9365 msgid ""
9366 "If one operating system was found, then this returns a list with a single "
9367 "element, which is the name of the root filesystem of this operating system.  "
9368 "It is also possible for this function to return a list containing more than "
9369 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9370 "element being the root filesystem of one of the operating systems."
9371 msgstr ""
9372
9373 #. type: textblock
9374 #: ../fish/guestfish-actions.pod:2399
9375 msgid ""
9376 "You can pass the root string(s) returned to other L</inspect-get-*> "
9377 "functions in order to query further information about each operating system, "
9378 "such as the name and version."
9379 msgstr ""
9380
9381 #. type: textblock
9382 #: ../fish/guestfish-actions.pod:2404
9383 msgid ""
9384 "This function uses other libguestfs features such as L</mount-ro> and L</"
9385 "umount-all> in order to mount and unmount filesystems and look at the "
9386 "contents.  This should be called with no disks currently mounted.  The "
9387 "function may also use Augeas, so any existing Augeas handle will be closed."
9388 msgstr ""
9389
9390 #. type: textblock
9391 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3544
9392 msgid ""
9393 "This function cannot decrypt encrypted disks.  The caller must do that first "
9394 "(supplying the necessary keys) if the disk is encrypted."
9395 msgstr ""
9396
9397 #. type: textblock
9398 #: ../fish/guestfish-actions.pod:2416 ../fish/guestfish-actions.pod:2614
9399 #: ../fish/guestfish-actions.pod:2673
9400 msgid "See also L</list-filesystems>."
9401 msgstr ""
9402
9403 #. type: =head2
9404 #: ../fish/guestfish-actions.pod:2418
9405 msgid "is-blockdev"
9406 msgstr ""
9407
9408 #. type: verbatim
9409 #: ../fish/guestfish-actions.pod:2420
9410 #, no-wrap
9411 msgid ""
9412 " is-blockdev path\n"
9413 "\n"
9414 msgstr ""
9415
9416 #. type: textblock
9417 #: ../fish/guestfish-actions.pod:2422 ../src/guestfs-actions.pod:3564
9418 msgid ""
9419 "This returns C<true> if and only if there is a block device with the given "
9420 "C<path> name."
9421 msgstr ""
9422
9423 #. type: textblock
9424 #: ../fish/guestfish-actions.pod:2425 ../fish/guestfish-actions.pod:2443
9425 #: ../fish/guestfish-actions.pod:2462 ../fish/guestfish-actions.pod:2471
9426 #: ../fish/guestfish-actions.pod:2481 ../fish/guestfish-actions.pod:2515
9427 #: ../fish/guestfish-actions.pod:2524
9428 msgid "See also L</stat>."
9429 msgstr ""
9430
9431 #. type: =head2
9432 #: ../fish/guestfish-actions.pod:2427
9433 msgid "is-busy"
9434 msgstr ""
9435
9436 #. type: verbatim
9437 #: ../fish/guestfish-actions.pod:2429
9438 #, no-wrap
9439 msgid ""
9440 " is-busy\n"
9441 "\n"
9442 msgstr ""
9443
9444 #. type: textblock
9445 #: ../fish/guestfish-actions.pod:2431 ../src/guestfs-actions.pod:3578
9446 msgid ""
9447 "This returns true iff this handle is busy processing a command (in the "
9448 "C<BUSY> state)."
9449 msgstr ""
9450
9451 #. type: =head2
9452 #: ../fish/guestfish-actions.pod:2436
9453 msgid "is-chardev"
9454 msgstr ""
9455
9456 #. type: verbatim
9457 #: ../fish/guestfish-actions.pod:2438
9458 #, no-wrap
9459 msgid ""
9460 " is-chardev path\n"
9461 "\n"
9462 msgstr ""
9463
9464 #. type: textblock
9465 #: ../fish/guestfish-actions.pod:2440 ../src/guestfs-actions.pod:3593
9466 msgid ""
9467 "This returns C<true> if and only if there is a character device with the "
9468 "given C<path> name."
9469 msgstr ""
9470
9471 #. type: =head2
9472 #: ../fish/guestfish-actions.pod:2445
9473 msgid "is-config"
9474 msgstr ""
9475
9476 #. type: verbatim
9477 #: ../fish/guestfish-actions.pod:2447
9478 #, no-wrap
9479 msgid ""
9480 " is-config\n"
9481 "\n"
9482 msgstr ""
9483
9484 #. type: textblock
9485 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3607
9486 msgid ""
9487 "This returns true iff this handle is being configured (in the C<CONFIG> "
9488 "state)."
9489 msgstr ""
9490
9491 #. type: =head2
9492 #: ../fish/guestfish-actions.pod:2454
9493 msgid "is-dir"
9494 msgstr ""
9495
9496 #. type: verbatim
9497 #: ../fish/guestfish-actions.pod:2456
9498 #, no-wrap
9499 msgid ""
9500 " is-dir path\n"
9501 "\n"
9502 msgstr ""
9503
9504 #. type: textblock
9505 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3622
9506 msgid ""
9507 "This returns C<true> if and only if there is a directory with the given "
9508 "C<path> name.  Note that it returns false for other objects like files."
9509 msgstr ""
9510
9511 #. type: =head2
9512 #: ../fish/guestfish-actions.pod:2464
9513 msgid "is-fifo"
9514 msgstr ""
9515
9516 #. type: verbatim
9517 #: ../fish/guestfish-actions.pod:2466
9518 #, no-wrap
9519 msgid ""
9520 " is-fifo path\n"
9521 "\n"
9522 msgstr ""
9523
9524 #. type: textblock
9525 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3638
9526 msgid ""
9527 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9528 "given C<path> name."
9529 msgstr ""
9530
9531 #. type: =head2
9532 #: ../fish/guestfish-actions.pod:2473
9533 msgid "is-file"
9534 msgstr ""
9535
9536 #. type: verbatim
9537 #: ../fish/guestfish-actions.pod:2475
9538 #, no-wrap
9539 msgid ""
9540 " is-file path\n"
9541 "\n"
9542 msgstr ""
9543
9544 #. type: textblock
9545 #: ../fish/guestfish-actions.pod:2477 ../src/guestfs-actions.pod:3653
9546 msgid ""
9547 "This returns C<true> if and only if there is a regular file with the given "
9548 "C<path> name.  Note that it returns false for other objects like directories."
9549 msgstr ""
9550
9551 #. type: =head2
9552 #: ../fish/guestfish-actions.pod:2483
9553 msgid "is-launching"
9554 msgstr ""
9555
9556 #. type: verbatim
9557 #: ../fish/guestfish-actions.pod:2485
9558 #, no-wrap
9559 msgid ""
9560 " is-launching\n"
9561 "\n"
9562 msgstr ""
9563
9564 #. type: textblock
9565 #: ../fish/guestfish-actions.pod:2487 ../src/guestfs-actions.pod:3668
9566 msgid ""
9567 "This returns true iff this handle is launching the subprocess (in the "
9568 "C<LAUNCHING> state)."
9569 msgstr ""
9570
9571 #. type: =head2
9572 #: ../fish/guestfish-actions.pod:2492
9573 msgid "is-lv"
9574 msgstr ""
9575
9576 #. type: verbatim
9577 #: ../fish/guestfish-actions.pod:2494
9578 #, no-wrap
9579 msgid ""
9580 " is-lv device\n"
9581 "\n"
9582 msgstr ""
9583
9584 #. type: textblock
9585 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3683
9586 msgid ""
9587 "This command tests whether C<device> is a logical volume, and returns true "
9588 "iff this is the case."
9589 msgstr ""
9590
9591 #. type: =head2
9592 #: ../fish/guestfish-actions.pod:2499
9593 msgid "is-ready"
9594 msgstr ""
9595
9596 #. type: verbatim
9597 #: ../fish/guestfish-actions.pod:2501
9598 #, no-wrap
9599 msgid ""
9600 " is-ready\n"
9601 "\n"
9602 msgstr ""
9603
9604 #. type: textblock
9605 #: ../fish/guestfish-actions.pod:2503 ../src/guestfs-actions.pod:3695
9606 msgid ""
9607 "This returns true iff this handle is ready to accept commands (in the "
9608 "C<READY> state)."
9609 msgstr ""
9610
9611 #. type: =head2
9612 #: ../fish/guestfish-actions.pod:2508
9613 msgid "is-socket"
9614 msgstr ""
9615
9616 #. type: verbatim
9617 #: ../fish/guestfish-actions.pod:2510
9618 #, no-wrap
9619 msgid ""
9620 " is-socket path\n"
9621 "\n"
9622 msgstr ""
9623
9624 #. type: textblock
9625 #: ../fish/guestfish-actions.pod:2512 ../src/guestfs-actions.pod:3710
9626 msgid ""
9627 "This returns C<true> if and only if there is a Unix domain socket with the "
9628 "given C<path> name."
9629 msgstr ""
9630
9631 #. type: =head2
9632 #: ../fish/guestfish-actions.pod:2517
9633 msgid "is-symlink"
9634 msgstr ""
9635
9636 #. type: verbatim
9637 #: ../fish/guestfish-actions.pod:2519
9638 #, no-wrap
9639 msgid ""
9640 " is-symlink path\n"
9641 "\n"
9642 msgstr ""
9643
9644 #. type: textblock
9645 #: ../fish/guestfish-actions.pod:2521 ../src/guestfs-actions.pod:3725
9646 msgid ""
9647 "This returns C<true> if and only if there is a symbolic link with the given "
9648 "C<path> name."
9649 msgstr ""
9650
9651 #. type: =head2
9652 #: ../fish/guestfish-actions.pod:2526
9653 msgid "is-zero"
9654 msgstr ""
9655
9656 #. type: verbatim
9657 #: ../fish/guestfish-actions.pod:2528
9658 #, no-wrap
9659 msgid ""
9660 " is-zero path\n"
9661 "\n"
9662 msgstr ""
9663
9664 #. type: textblock
9665 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3740
9666 msgid ""
9667 "This returns true iff the file exists and the file is empty or it contains "
9668 "all zero bytes."
9669 msgstr ""
9670
9671 #. type: =head2
9672 #: ../fish/guestfish-actions.pod:2533
9673 msgid "is-zero-device"
9674 msgstr ""
9675
9676 #. type: verbatim
9677 #: ../fish/guestfish-actions.pod:2535
9678 #, no-wrap
9679 msgid ""
9680 " is-zero-device device\n"
9681 "\n"
9682 msgstr ""
9683
9684 #. type: textblock
9685 #: ../fish/guestfish-actions.pod:2537 ../src/guestfs-actions.pod:3753
9686 msgid "This returns true iff the device exists and contains all zero bytes."
9687 msgstr ""
9688
9689 #. type: textblock
9690 #: ../fish/guestfish-actions.pod:2539 ../src/guestfs-actions.pod:3755
9691 msgid "Note that for large devices this can take a long time to run."
9692 msgstr ""
9693
9694 #. type: =head2
9695 #: ../fish/guestfish-actions.pod:2541
9696 msgid "kill-subprocess"
9697 msgstr ""
9698
9699 #. type: verbatim
9700 #: ../fish/guestfish-actions.pod:2543
9701 #, no-wrap
9702 msgid ""
9703 " kill-subprocess\n"
9704 "\n"
9705 msgstr ""
9706
9707 #. type: textblock
9708 #: ../fish/guestfish-actions.pod:2545 ../src/guestfs-actions.pod:3766
9709 msgid "This kills the qemu subprocess.  You should never need to call this."
9710 msgstr ""
9711
9712 #. type: =head2
9713 #: ../fish/guestfish-actions.pod:2547
9714 msgid "launch"
9715 msgstr ""
9716
9717 #. type: =head2
9718 #: ../fish/guestfish-actions.pod:2549
9719 msgid "run"
9720 msgstr ""
9721
9722 #. type: verbatim
9723 #: ../fish/guestfish-actions.pod:2551
9724 #, no-wrap
9725 msgid ""
9726 " launch\n"
9727 "\n"
9728 msgstr ""
9729
9730 #. type: textblock
9731 #: ../fish/guestfish-actions.pod:2553 ../src/guestfs-actions.pod:3777
9732 msgid ""
9733 "Internally libguestfs is implemented by running a virtual machine using "
9734 "L<qemu(1)>."
9735 msgstr ""
9736
9737 #. type: textblock
9738 #: ../fish/guestfish-actions.pod:2556 ../src/guestfs-actions.pod:3780
9739 msgid ""
9740 "You should call this after configuring the handle (eg. adding drives) but "
9741 "before performing any actions."
9742 msgstr ""
9743
9744 #. type: =head2
9745 #: ../fish/guestfish-actions.pod:2559
9746 msgid "lchown"
9747 msgstr ""
9748
9749 #. type: verbatim
9750 #: ../fish/guestfish-actions.pod:2561
9751 #, no-wrap
9752 msgid ""
9753 " lchown owner group path\n"
9754 "\n"
9755 msgstr ""
9756
9757 #. type: textblock
9758 #: ../fish/guestfish-actions.pod:2563
9759 msgid ""
9760 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
9761 "chown> but if C<path> is a symlink then the link itself is changed, not the "
9762 "target."
9763 msgstr ""
9764
9765 #. type: =head2
9766 #: ../fish/guestfish-actions.pod:2571
9767 msgid "lgetxattr"
9768 msgstr ""
9769
9770 #. type: verbatim
9771 #: ../fish/guestfish-actions.pod:2573
9772 #, no-wrap
9773 msgid ""
9774 " lgetxattr path name\n"
9775 "\n"
9776 msgstr ""
9777
9778 #. type: textblock
9779 #: ../fish/guestfish-actions.pod:2575 ../src/guestfs-actions.pod:3820
9780 msgid ""
9781 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
9782 "is a symlink, then this call returns an extended attribute from the symlink."
9783 msgstr ""
9784
9785 #. type: textblock
9786 #: ../fish/guestfish-actions.pod:2589
9787 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
9788 msgstr ""
9789
9790 #. type: =head2
9791 #: ../fish/guestfish-actions.pod:2591
9792 msgid "lgetxattrs"
9793 msgstr ""
9794
9795 #. type: verbatim
9796 #: ../fish/guestfish-actions.pod:2593
9797 #, no-wrap
9798 msgid ""
9799 " lgetxattrs path\n"
9800 "\n"
9801 msgstr ""
9802
9803 #. type: textblock
9804 #: ../fish/guestfish-actions.pod:2595
9805 msgid ""
9806 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
9807 "it returns the extended attributes of the link itself."
9808 msgstr ""
9809
9810 #. type: =head2
9811 #: ../fish/guestfish-actions.pod:2599
9812 msgid "list-9p"
9813 msgstr ""
9814
9815 #. type: verbatim
9816 #: ../fish/guestfish-actions.pod:2601
9817 #, no-wrap
9818 msgid ""
9819 " list-9p\n"
9820 "\n"
9821 msgstr ""
9822
9823 #. type: textblock
9824 #: ../fish/guestfish-actions.pod:2603 ../src/guestfs-actions.pod:3863
9825 msgid ""
9826 "List all 9p filesystems attached to the guest.  A list of mount tags is "
9827 "returned."
9828 msgstr ""
9829
9830 #. type: =head2
9831 #: ../fish/guestfish-actions.pod:2606
9832 msgid "list-devices"
9833 msgstr ""
9834
9835 #. type: verbatim
9836 #: ../fish/guestfish-actions.pod:2608
9837 #, no-wrap
9838 msgid ""
9839 " list-devices\n"
9840 "\n"
9841 msgstr ""
9842
9843 #. type: textblock
9844 #: ../fish/guestfish-actions.pod:2610 ../src/guestfs-actions.pod:3877
9845 msgid "List all the block devices."
9846 msgstr ""
9847
9848 #. type: textblock
9849 #: ../fish/guestfish-actions.pod:2612 ../src/guestfs-actions.pod:3879
9850 msgid "The full block device names are returned, eg. C</dev/sda>."
9851 msgstr ""
9852
9853 #. type: =head2
9854 #: ../fish/guestfish-actions.pod:2616
9855 msgid "list-dm-devices"
9856 msgstr ""
9857
9858 #. type: verbatim
9859 #: ../fish/guestfish-actions.pod:2618
9860 #, no-wrap
9861 msgid ""
9862 " list-dm-devices\n"
9863 "\n"
9864 msgstr ""
9865
9866 #. type: textblock
9867 #: ../fish/guestfish-actions.pod:2620 ../src/guestfs-actions.pod:3894
9868 msgid "List all device mapper devices."
9869 msgstr ""
9870
9871 #. type: textblock
9872 #: ../fish/guestfish-actions.pod:2622
9873 msgid ""
9874 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
9875 "previous call to L</luks-open>."
9876 msgstr ""
9877
9878 #. type: textblock
9879 #: ../fish/guestfish-actions.pod:2625
9880 msgid ""
9881 "Device mapper devices which correspond to logical volumes are I<not> "
9882 "returned in this list.  Call L</lvs> if you want to list logical volumes."
9883 msgstr ""
9884
9885 #. type: =head2
9886 #: ../fish/guestfish-actions.pod:2629
9887 msgid "list-filesystems"
9888 msgstr ""
9889
9890 #. type: verbatim
9891 #: ../fish/guestfish-actions.pod:2631
9892 #, no-wrap
9893 msgid ""
9894 " list-filesystems\n"
9895 "\n"
9896 msgstr ""
9897
9898 #. type: textblock
9899 #: ../fish/guestfish-actions.pod:2633 ../src/guestfs-actions.pod:3914
9900 msgid ""
9901 "This inspection command looks for filesystems on partitions, block devices "
9902 "and logical volumes, returning a list of devices containing filesystems and "
9903 "their type."
9904 msgstr ""
9905
9906 #. type: textblock
9907 #: ../fish/guestfish-actions.pod:2637 ../src/guestfs-actions.pod:3918
9908 msgid ""
9909 "The return value is a hash, where the keys are the devices containing "
9910 "filesystems, and the values are the filesystem types.  For example:"
9911 msgstr ""
9912
9913 #. type: verbatim
9914 #: ../fish/guestfish-actions.pod:2641 ../src/guestfs-actions.pod:3922
9915 #, no-wrap
9916 msgid ""
9917 " \"/dev/sda1\" => \"ntfs\"\n"
9918 " \"/dev/sda2\" => \"ext2\"\n"
9919 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
9920 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
9921 "\n"
9922 msgstr ""
9923
9924 #. type: textblock
9925 #: ../fish/guestfish-actions.pod:2646 ../src/guestfs-actions.pod:3927
9926 msgid ""
9927 "The value can have the special value \"unknown\", meaning the content of the "
9928 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
9929 msgstr ""
9930
9931 #. type: textblock
9932 #: ../fish/guestfish-actions.pod:2650
9933 msgid ""
9934 "This command runs other libguestfs commands, which might include L</mount> "
9935 "and L</umount>, and therefore you should use this soon after launch and only "
9936 "when nothing is mounted."
9937 msgstr ""
9938
9939 #. type: textblock
9940 #: ../fish/guestfish-actions.pod:2654
9941 msgid ""
9942 "Not all of the filesystems returned will be mountable.  In particular, swap "
9943 "partitions are returned in the list.  Also this command does not check that "
9944 "each filesystem found is valid and mountable, and some filesystems might be "
9945 "mountable but require special options.  Filesystems may not all belong to a "
9946 "single logical operating system (use L</inspect-os> to look for OSes)."
9947 msgstr ""
9948
9949 #. type: =head2
9950 #: ../fish/guestfish-actions.pod:2662
9951 msgid "list-partitions"
9952 msgstr ""
9953
9954 #. type: verbatim
9955 #: ../fish/guestfish-actions.pod:2664
9956 #, no-wrap
9957 msgid ""
9958 " list-partitions\n"
9959 "\n"
9960 msgstr ""
9961
9962 #. type: textblock
9963 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:3956
9964 msgid "List all the partitions detected on all block devices."
9965 msgstr ""
9966
9967 #. type: textblock
9968 #: ../fish/guestfish-actions.pod:2668 ../src/guestfs-actions.pod:3958
9969 msgid "The full partition device names are returned, eg. C</dev/sda1>"
9970 msgstr ""
9971
9972 #. type: textblock
9973 #: ../fish/guestfish-actions.pod:2670
9974 msgid ""
9975 "This does not return logical volumes.  For that you will need to call L</"
9976 "lvs>."
9977 msgstr ""
9978
9979 #. type: =head2
9980 #: ../fish/guestfish-actions.pod:2675
9981 msgid "ll"
9982 msgstr ""
9983
9984 #. type: verbatim
9985 #: ../fish/guestfish-actions.pod:2677
9986 #, no-wrap
9987 msgid ""
9988 " ll directory\n"
9989 "\n"
9990 msgstr ""
9991
9992 #. type: textblock
9993 #: ../fish/guestfish-actions.pod:2679 ../src/guestfs-actions.pod:3977
9994 msgid ""
9995 "List the files in C<directory> (relative to the root directory, there is no "
9996 "cwd) in the format of 'ls -la'."
9997 msgstr ""
9998
9999 #. type: textblock
10000 #: ../fish/guestfish-actions.pod:2682 ../src/guestfs-actions.pod:3980
10001 msgid ""
10002 "This command is mostly useful for interactive sessions.  It is I<not> "
10003 "intended that you try to parse the output string."
10004 msgstr ""
10005
10006 #. type: =head2
10007 #: ../fish/guestfish-actions.pod:2685
10008 msgid "ln"
10009 msgstr ""
10010
10011 #. type: verbatim
10012 #: ../fish/guestfish-actions.pod:2687
10013 #, no-wrap
10014 msgid ""
10015 " ln target linkname\n"
10016 "\n"
10017 msgstr ""
10018
10019 #. type: textblock
10020 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:3995
10021 msgid "This command creates a hard link using the C<ln> command."
10022 msgstr ""
10023
10024 #. type: =head2
10025 #: ../fish/guestfish-actions.pod:2691
10026 msgid "ln-f"
10027 msgstr ""
10028
10029 #. type: verbatim
10030 #: ../fish/guestfish-actions.pod:2693
10031 #, no-wrap
10032 msgid ""
10033 " ln-f target linkname\n"
10034 "\n"
10035 msgstr ""
10036
10037 #. type: textblock
10038 #: ../fish/guestfish-actions.pod:2695 ../src/guestfs-actions.pod:4008
10039 msgid ""
10040 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
10041 "option removes the link (C<linkname>) if it exists already."
10042 msgstr ""
10043
10044 #. type: =head2
10045 #: ../fish/guestfish-actions.pod:2698
10046 msgid "ln-s"
10047 msgstr ""
10048
10049 #. type: verbatim
10050 #: ../fish/guestfish-actions.pod:2700
10051 #, no-wrap
10052 msgid ""
10053 " ln-s target linkname\n"
10054 "\n"
10055 msgstr ""
10056
10057 #. type: textblock
10058 #: ../fish/guestfish-actions.pod:2702 ../src/guestfs-actions.pod:4022
10059 msgid "This command creates a symbolic link using the C<ln -s> command."
10060 msgstr ""
10061
10062 #. type: =head2
10063 #: ../fish/guestfish-actions.pod:2704
10064 msgid "ln-sf"
10065 msgstr ""
10066
10067 #. type: verbatim
10068 #: ../fish/guestfish-actions.pod:2706
10069 #, no-wrap
10070 msgid ""
10071 " ln-sf target linkname\n"
10072 "\n"
10073 msgstr ""
10074
10075 #. type: textblock
10076 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4035
10077 msgid ""
10078 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
10079 "option removes the link (C<linkname>) if it exists already."
10080 msgstr ""
10081
10082 #. type: =head2
10083 #: ../fish/guestfish-actions.pod:2711
10084 msgid "lremovexattr"
10085 msgstr ""
10086
10087 #. type: verbatim
10088 #: ../fish/guestfish-actions.pod:2713
10089 #, no-wrap
10090 msgid ""
10091 " lremovexattr xattr path\n"
10092 "\n"
10093 msgstr ""
10094
10095 #. type: textblock
10096 #: ../fish/guestfish-actions.pod:2715
10097 msgid ""
10098 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
10099 "it removes an extended attribute of the link itself."
10100 msgstr ""
10101
10102 #. type: =head2
10103 #: ../fish/guestfish-actions.pod:2719
10104 msgid "ls"
10105 msgstr ""
10106
10107 #. type: verbatim
10108 #: ../fish/guestfish-actions.pod:2721
10109 #, no-wrap
10110 msgid ""
10111 " ls directory\n"
10112 "\n"
10113 msgstr ""
10114
10115 #. type: textblock
10116 #: ../fish/guestfish-actions.pod:2723 ../src/guestfs-actions.pod:4063
10117 msgid ""
10118 "List the files in C<directory> (relative to the root directory, there is no "
10119 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
10120 msgstr ""
10121
10122 #. type: textblock
10123 #: ../fish/guestfish-actions.pod:2727
10124 msgid ""
10125 "This command is mostly useful for interactive sessions.  Programs should "
10126 "probably use L</readdir> instead."
10127 msgstr ""
10128
10129 #. type: =head2
10130 #: ../fish/guestfish-actions.pod:2730
10131 msgid "lsetxattr"
10132 msgstr ""
10133
10134 #. type: verbatim
10135 #: ../fish/guestfish-actions.pod:2732
10136 #, no-wrap
10137 msgid ""
10138 " lsetxattr xattr val vallen path\n"
10139 "\n"
10140 msgstr ""
10141
10142 #. type: textblock
10143 #: ../fish/guestfish-actions.pod:2734
10144 msgid ""
10145 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
10146 "sets an extended attribute of the link itself."
10147 msgstr ""
10148
10149 #. type: =head2
10150 #: ../fish/guestfish-actions.pod:2738
10151 msgid "lstat"
10152 msgstr ""
10153
10154 #. type: verbatim
10155 #: ../fish/guestfish-actions.pod:2740
10156 #, no-wrap
10157 msgid ""
10158 " lstat path\n"
10159 "\n"
10160 msgstr ""
10161
10162 #. type: textblock
10163 #: ../fish/guestfish-actions.pod:2742 ../fish/guestfish-actions.pod:4562
10164 #: ../src/guestfs-actions.pod:4099 ../src/guestfs-actions.pod:6892
10165 msgid "Returns file information for the given C<path>."
10166 msgstr ""
10167
10168 #. type: textblock
10169 #: ../fish/guestfish-actions.pod:2744
10170 msgid ""
10171 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
10172 "the link is stat-ed, not the file it refers to."
10173 msgstr ""
10174
10175 #. type: textblock
10176 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4105
10177 msgid "This is the same as the C<lstat(2)> system call."
10178 msgstr ""
10179
10180 #. type: =head2
10181 #: ../fish/guestfish-actions.pod:2750
10182 msgid "lstatlist"
10183 msgstr ""
10184
10185 #. type: verbatim
10186 #: ../fish/guestfish-actions.pod:2752
10187 #, no-wrap
10188 msgid ""
10189 " lstatlist path 'names ...'\n"
10190 "\n"
10191 msgstr ""
10192
10193 #. type: textblock
10194 #: ../fish/guestfish-actions.pod:2754
10195 msgid ""
10196 "This call allows you to perform the L</lstat> operation on multiple files, "
10197 "where all files are in the directory C<path>.  C<names> is the list of files "
10198 "from this directory."
10199 msgstr ""
10200
10201 #. type: textblock
10202 #: ../fish/guestfish-actions.pod:2758 ../src/guestfs-actions.pod:4124
10203 msgid ""
10204 "On return you get a list of stat structs, with a one-to-one correspondence "
10205 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
10206 "then the C<ino> field of that structure is set to C<-1>."
10207 msgstr ""
10208
10209 #. type: textblock
10210 #: ../fish/guestfish-actions.pod:2763
10211 msgid ""
10212 "This call is intended for programs that want to efficiently list a directory "
10213 "contents without making many round-trips.  See also L</lxattrlist> for a "
10214 "similarly efficient call for getting extended attributes.  Very long "
10215 "directory listings might cause the protocol message size to be exceeded, "
10216 "causing this call to fail.  The caller must split up such requests into "
10217 "smaller groups of names."
10218 msgstr ""
10219
10220 #. type: =head2
10221 #: ../fish/guestfish-actions.pod:2771
10222 msgid "luks-add-key"
10223 msgstr ""
10224
10225 #. type: verbatim
10226 #: ../fish/guestfish-actions.pod:2773
10227 #, no-wrap
10228 msgid ""
10229 " luks-add-key device keyslot\n"
10230 "\n"
10231 msgstr ""
10232
10233 #. type: textblock
10234 #: ../fish/guestfish-actions.pod:2775 ../src/guestfs-actions.pod:4152
10235 msgid ""
10236 "This command adds a new key on LUKS device C<device>.  C<key> is any "
10237 "existing key, and is used to access the device.  C<newkey> is the new key to "
10238 "add.  C<keyslot> is the key slot that will be replaced."
10239 msgstr ""
10240
10241 #. type: textblock
10242 #: ../fish/guestfish-actions.pod:2780
10243 msgid ""
10244 "Note that if C<keyslot> already contains a key, then this command will "
10245 "fail.  You have to use L</luks-kill-slot> first to remove that key."
10246 msgstr ""
10247
10248 #. type: textblock
10249 #: ../fish/guestfish-actions.pod:2784 ../fish/guestfish-actions.pod:2806
10250 #: ../fish/guestfish-actions.pod:2819 ../fish/guestfish-actions.pod:2833
10251 #: ../fish/guestfish-actions.pod:2859 ../fish/guestfish-actions.pod:2869
10252 msgid ""
10253 "This command has one or more key or passphrase parameters.  Guestfish will "
10254 "prompt for these separately."
10255 msgstr ""
10256
10257 #. type: =head2
10258 #: ../fish/guestfish-actions.pod:2787
10259 msgid "luks-close"
10260 msgstr ""
10261
10262 #. type: verbatim
10263 #: ../fish/guestfish-actions.pod:2789
10264 #, no-wrap
10265 msgid ""
10266 " luks-close device\n"
10267 "\n"
10268 msgstr ""
10269
10270 #. type: textblock
10271 #: ../fish/guestfish-actions.pod:2791
10272 msgid ""
10273 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
10274 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
10275 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
10276 "block device."
10277 msgstr ""
10278
10279 #. type: =head2
10280 #: ../fish/guestfish-actions.pod:2797
10281 msgid "luks-format"
10282 msgstr ""
10283
10284 #. type: verbatim
10285 #: ../fish/guestfish-actions.pod:2799
10286 #, no-wrap
10287 msgid ""
10288 " luks-format device keyslot\n"
10289 "\n"
10290 msgstr ""
10291
10292 #. type: textblock
10293 #: ../fish/guestfish-actions.pod:2801 ../src/guestfs-actions.pod:4193
10294 msgid ""
10295 "This command erases existing data on C<device> and formats the device as a "
10296 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10297 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10298 msgstr ""
10299
10300 #. type: textblock
10301 #: ../fish/guestfish-actions.pod:2809 ../fish/guestfish-actions.pod:2822
10302 #: ../fish/guestfish-actions.pod:2909 ../fish/guestfish-actions.pod:3570
10303 #: ../fish/guestfish-actions.pod:4096 ../fish/guestfish-actions.pod:4433
10304 #: ../fish/guestfish-actions.pod:4456 ../fish/guestfish-actions.pod:4478
10305 #: ../fish/guestfish-actions.pod:5224 ../src/guestfs-actions.pod:4200
10306 #: ../src/guestfs-actions.pod:4223 ../src/guestfs-actions.pod:4366
10307 #: ../src/guestfs-actions.pod:5469 ../src/guestfs-actions.pod:6257
10308 #: ../src/guestfs-actions.pod:6706 ../src/guestfs-actions.pod:6736
10309 #: ../src/guestfs-actions.pod:6769 ../src/guestfs-actions.pod:7968
10310 msgid ""
10311 "B<This command is dangerous.  Without careful use you can easily destroy all "
10312 "your data>."
10313 msgstr ""
10314
10315 #. type: =head2
10316 #: ../fish/guestfish-actions.pod:2812
10317 msgid "luks-format-cipher"
10318 msgstr ""
10319
10320 #. type: verbatim
10321 #: ../fish/guestfish-actions.pod:2814
10322 #, no-wrap
10323 msgid ""
10324 " luks-format-cipher device keyslot cipher\n"
10325 "\n"
10326 msgstr ""
10327
10328 #. type: textblock
10329 #: ../fish/guestfish-actions.pod:2816
10330 msgid ""
10331 "This command is the same as L</luks-format> but it also allows you to set "
10332 "the C<cipher> used."
10333 msgstr ""
10334
10335 #. type: =head2
10336 #: ../fish/guestfish-actions.pod:2825
10337 msgid "luks-kill-slot"
10338 msgstr ""
10339
10340 #. type: verbatim
10341 #: ../fish/guestfish-actions.pod:2827
10342 #, no-wrap
10343 msgid ""
10344 " luks-kill-slot device keyslot\n"
10345 "\n"
10346 msgstr ""
10347
10348 #. type: textblock
10349 #: ../fish/guestfish-actions.pod:2829 ../src/guestfs-actions.pod:4240
10350 msgid ""
10351 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10352 "device C<device>.  C<key> must be one of the I<other> keys."
10353 msgstr ""
10354
10355 #. type: =head2
10356 #: ../fish/guestfish-actions.pod:2836
10357 msgid "luks-open"
10358 msgstr ""
10359
10360 #. type: verbatim
10361 #: ../fish/guestfish-actions.pod:2838
10362 #, no-wrap
10363 msgid ""
10364 " luks-open device mapname\n"
10365 "\n"
10366 msgstr ""
10367
10368 #. type: textblock
10369 #: ../fish/guestfish-actions.pod:2840 ../src/guestfs-actions.pod:4260
10370 msgid ""
10371 "This command opens a block device which has been encrypted according to the "
10372 "Linux Unified Key Setup (LUKS) standard."
10373 msgstr ""
10374
10375 #. type: textblock
10376 #: ../fish/guestfish-actions.pod:2843 ../src/guestfs-actions.pod:4263
10377 msgid "C<device> is the encrypted block device or partition."
10378 msgstr ""
10379
10380 #. type: textblock
10381 #: ../fish/guestfish-actions.pod:2845 ../src/guestfs-actions.pod:4265
10382 msgid ""
10383 "The caller must supply one of the keys associated with the LUKS block "
10384 "device, in the C<key> parameter."
10385 msgstr ""
10386
10387 #. type: textblock
10388 #: ../fish/guestfish-actions.pod:2848 ../src/guestfs-actions.pod:4268
10389 msgid ""
10390 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10391 "writes to this block device are decrypted from and encrypted to the "
10392 "underlying C<device> respectively."
10393 msgstr ""
10394
10395 #. type: textblock
10396 #: ../fish/guestfish-actions.pod:2852
10397 msgid ""
10398 "If this block device contains LVM volume groups, then calling L</vgscan> "
10399 "followed by L</vg-activate-all> will make them visible."
10400 msgstr ""
10401
10402 #. type: textblock
10403 #: ../fish/guestfish-actions.pod:2856
10404 msgid "Use L</list-dm-devices> to list all device mapper devices."
10405 msgstr ""
10406
10407 #. type: =head2
10408 #: ../fish/guestfish-actions.pod:2862
10409 msgid "luks-open-ro"
10410 msgstr ""
10411
10412 #. type: verbatim
10413 #: ../fish/guestfish-actions.pod:2864
10414 #, no-wrap
10415 msgid ""
10416 " luks-open-ro device mapname\n"
10417 "\n"
10418 msgstr ""
10419
10420 #. type: textblock
10421 #: ../fish/guestfish-actions.pod:2866
10422 msgid ""
10423 "This is the same as L</luks-open> except that a read-only mapping is created."
10424 msgstr ""
10425
10426 #. type: =head2
10427 #: ../fish/guestfish-actions.pod:2872
10428 msgid "lvcreate"
10429 msgstr ""
10430
10431 #. type: verbatim
10432 #: ../fish/guestfish-actions.pod:2874
10433 #, no-wrap
10434 msgid ""
10435 " lvcreate logvol volgroup mbytes\n"
10436 "\n"
10437 msgstr ""
10438
10439 #. type: textblock
10440 #: ../fish/guestfish-actions.pod:2876 ../src/guestfs-actions.pod:4314
10441 msgid ""
10442 "This creates an LVM logical volume called C<logvol> on the volume group "
10443 "C<volgroup>, with C<size> megabytes."
10444 msgstr ""
10445
10446 #. type: =head2
10447 #: ../fish/guestfish-actions.pod:2879
10448 msgid "lvm-canonical-lv-name"
10449 msgstr ""
10450
10451 #. type: verbatim
10452 #: ../fish/guestfish-actions.pod:2881
10453 #, no-wrap
10454 msgid ""
10455 " lvm-canonical-lv-name lvname\n"
10456 "\n"
10457 msgstr ""
10458
10459 #. type: textblock
10460 #: ../fish/guestfish-actions.pod:2883 ../src/guestfs-actions.pod:4327
10461 msgid ""
10462 "This converts alternative naming schemes for LVs that you might find to the "
10463 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10464 "LV>."
10465 msgstr ""
10466
10467 #. type: textblock
10468 #: ../fish/guestfish-actions.pod:2887 ../src/guestfs-actions.pod:4331
10469 msgid ""
10470 "This command returns an error if the C<lvname> parameter does not refer to a "
10471 "logical volume."
10472 msgstr ""
10473
10474 #. type: textblock
10475 #: ../fish/guestfish-actions.pod:2890
10476 msgid "See also L</is-lv>."
10477 msgstr ""
10478
10479 #. type: =head2
10480 #: ../fish/guestfish-actions.pod:2892
10481 msgid "lvm-clear-filter"
10482 msgstr ""
10483
10484 #. type: verbatim
10485 #: ../fish/guestfish-actions.pod:2894
10486 #, no-wrap
10487 msgid ""
10488 " lvm-clear-filter\n"
10489 "\n"
10490 msgstr ""
10491
10492 #. type: textblock
10493 #: ../fish/guestfish-actions.pod:2896
10494 msgid ""
10495 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
10496 "block device."
10497 msgstr ""
10498
10499 #. type: textblock
10500 #: ../fish/guestfish-actions.pod:2899 ../fish/guestfish-actions.pod:2930
10501 #: ../src/guestfs-actions.pod:4349 ../src/guestfs-actions.pod:4391
10502 msgid ""
10503 "This command also clears the LVM cache and performs a volume group scan."
10504 msgstr ""
10505
10506 #. type: =head2
10507 #: ../fish/guestfish-actions.pod:2902
10508 msgid "lvm-remove-all"
10509 msgstr ""
10510
10511 #. type: verbatim
10512 #: ../fish/guestfish-actions.pod:2904
10513 #, no-wrap
10514 msgid ""
10515 " lvm-remove-all\n"
10516 "\n"
10517 msgstr ""
10518
10519 #. type: textblock
10520 #: ../fish/guestfish-actions.pod:2906 ../src/guestfs-actions.pod:4361
10521 msgid ""
10522 "This command removes all LVM logical volumes, volume groups and physical "
10523 "volumes."
10524 msgstr ""
10525
10526 #. type: =head2
10527 #: ../fish/guestfish-actions.pod:2912
10528 msgid "lvm-set-filter"
10529 msgstr ""
10530
10531 #. type: verbatim
10532 #: ../fish/guestfish-actions.pod:2914
10533 #, no-wrap
10534 msgid ""
10535 " lvm-set-filter 'devices ...'\n"
10536 "\n"
10537 msgstr ""
10538
10539 #. type: textblock
10540 #: ../fish/guestfish-actions.pod:2916 ../src/guestfs-actions.pod:4377
10541 msgid ""
10542 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10543 "block devices in the list C<devices>, and will ignore all other attached "
10544 "block devices."
10545 msgstr ""
10546
10547 #. type: textblock
10548 #: ../fish/guestfish-actions.pod:2920 ../src/guestfs-actions.pod:4381
10549 msgid ""
10550 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10551 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10552 "there are two types of duplication possible: either cloned PVs/VGs which "
10553 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10554 "same name.  In normal operation you cannot create this situation, but you "
10555 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10556 "inside the LVM metadata."
10557 msgstr ""
10558
10559 #. type: textblock
10560 #: ../fish/guestfish-actions.pod:2933 ../src/guestfs-actions.pod:4394
10561 msgid "You can filter whole block devices or individual partitions."
10562 msgstr ""
10563
10564 #. type: textblock
10565 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4396
10566 msgid ""
10567 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10568 "filesystem), even if you are not filtering out that VG."
10569 msgstr ""
10570
10571 #. type: =head2
10572 #: ../fish/guestfish-actions.pod:2939
10573 msgid "lvremove"
10574 msgstr ""
10575
10576 #. type: verbatim
10577 #: ../fish/guestfish-actions.pod:2941
10578 #, no-wrap
10579 msgid ""
10580 " lvremove device\n"
10581 "\n"
10582 msgstr ""
10583
10584 #. type: textblock
10585 #: ../fish/guestfish-actions.pod:2943 ../src/guestfs-actions.pod:4410
10586 msgid ""
10587 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10588 "LV, such as C</dev/VG/LV>."
10589 msgstr ""
10590
10591 #. type: textblock
10592 #: ../fish/guestfish-actions.pod:2946 ../src/guestfs-actions.pod:4413
10593 msgid ""
10594 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10595 "dev/VG>."
10596 msgstr ""
10597
10598 #. type: =head2
10599 #: ../fish/guestfish-actions.pod:2949
10600 msgid "lvrename"
10601 msgstr ""
10602
10603 #. type: verbatim
10604 #: ../fish/guestfish-actions.pod:2951
10605 #, no-wrap
10606 msgid ""
10607 " lvrename logvol newlogvol\n"
10608 "\n"
10609 msgstr ""
10610
10611 #. type: textblock
10612 #: ../fish/guestfish-actions.pod:2953 ../src/guestfs-actions.pod:4427
10613 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10614 msgstr ""
10615
10616 #. type: =head2
10617 #: ../fish/guestfish-actions.pod:2955
10618 msgid "lvresize"
10619 msgstr ""
10620
10621 #. type: verbatim
10622 #: ../fish/guestfish-actions.pod:2957
10623 #, no-wrap
10624 msgid ""
10625 " lvresize device mbytes\n"
10626 "\n"
10627 msgstr ""
10628
10629 #. type: textblock
10630 #: ../fish/guestfish-actions.pod:2959 ../src/guestfs-actions.pod:4440
10631 msgid ""
10632 "This resizes (expands or shrinks) an existing LVM logical volume to "
10633 "C<mbytes>.  When reducing, data in the reduced part is lost."
10634 msgstr ""
10635
10636 #. type: =head2
10637 #: ../fish/guestfish-actions.pod:2963
10638 msgid "lvresize-free"
10639 msgstr ""
10640
10641 #. type: verbatim
10642 #: ../fish/guestfish-actions.pod:2965
10643 #, no-wrap
10644 msgid ""
10645 " lvresize-free lv percent\n"
10646 "\n"
10647 msgstr ""
10648
10649 #. type: textblock
10650 #: ../fish/guestfish-actions.pod:2967 ../src/guestfs-actions.pod:4455
10651 msgid ""
10652 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10653 "remaining free space in the volume group.  Commonly you would call this with "
10654 "pc = 100 which expands the logical volume as much as possible, using all "
10655 "remaining free space in the volume group."
10656 msgstr ""
10657
10658 #. type: =head2
10659 #: ../fish/guestfish-actions.pod:2973
10660 msgid "lvs"
10661 msgstr ""
10662
10663 #. type: verbatim
10664 #: ../fish/guestfish-actions.pod:2975
10665 #, no-wrap
10666 msgid ""
10667 " lvs\n"
10668 "\n"
10669 msgstr ""
10670
10671 #. type: textblock
10672 #: ../fish/guestfish-actions.pod:2977 ../src/guestfs-actions.pod:4470
10673 msgid ""
10674 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10675 "(8)> command."
10676 msgstr ""
10677
10678 #. type: textblock
10679 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4473
10680 msgid ""
10681 "This returns a list of the logical volume device names (eg. C</dev/"
10682 "VolGroup00/LogVol00>)."
10683 msgstr ""
10684
10685 #. type: textblock
10686 #: ../fish/guestfish-actions.pod:2983
10687 msgid "See also L</lvs-full>, L</list-filesystems>."
10688 msgstr ""
10689
10690 #. type: =head2
10691 #: ../fish/guestfish-actions.pod:2985
10692 msgid "lvs-full"
10693 msgstr ""
10694
10695 #. type: verbatim
10696 #: ../fish/guestfish-actions.pod:2987
10697 #, no-wrap
10698 msgid ""
10699 " lvs-full\n"
10700 "\n"
10701 msgstr ""
10702
10703 #. type: textblock
10704 #: ../fish/guestfish-actions.pod:2989 ../src/guestfs-actions.pod:4489
10705 msgid ""
10706 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10707 "(8)> command.  The \"full\" version includes all fields."
10708 msgstr ""
10709
10710 #. type: =head2
10711 #: ../fish/guestfish-actions.pod:2992
10712 msgid "lvuuid"
10713 msgstr ""
10714
10715 #. type: verbatim
10716 #: ../fish/guestfish-actions.pod:2994
10717 #, no-wrap
10718 msgid ""
10719 " lvuuid device\n"
10720 "\n"
10721 msgstr ""
10722
10723 #. type: textblock
10724 #: ../fish/guestfish-actions.pod:2996 ../src/guestfs-actions.pod:4504
10725 msgid "This command returns the UUID of the LVM LV C<device>."
10726 msgstr ""
10727
10728 #. type: =head2
10729 #: ../fish/guestfish-actions.pod:2998
10730 msgid "lxattrlist"
10731 msgstr ""
10732
10733 #. type: verbatim
10734 #: ../fish/guestfish-actions.pod:3000
10735 #, no-wrap
10736 msgid ""
10737 " lxattrlist path 'names ...'\n"
10738 "\n"
10739 msgstr ""
10740
10741 #. type: textblock
10742 #: ../fish/guestfish-actions.pod:3002 ../src/guestfs-actions.pod:4518
10743 msgid ""
10744 "This call allows you to get the extended attributes of multiple files, where "
10745 "all files are in the directory C<path>.  C<names> is the list of files from "
10746 "this directory."
10747 msgstr ""
10748
10749 #. type: textblock
10750 #: ../fish/guestfish-actions.pod:3006 ../src/guestfs-actions.pod:4522
10751 msgid ""
10752 "On return you get a flat list of xattr structs which must be interpreted "
10753 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
10754 "C<attrval> in this struct is zero-length to indicate there was an error "
10755 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
10756 "number (the number of following attributes for this file, which could be C<"
10757 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
10758 "for the first named file.  This repeats for the second and subsequent files."
10759 msgstr ""
10760
10761 #. type: textblock
10762 #: ../fish/guestfish-actions.pod:3016
10763 msgid ""
10764 "This call is intended for programs that want to efficiently list a directory "
10765 "contents without making many round-trips.  See also L</lstatlist> for a "
10766 "similarly efficient call for getting standard stats.  Very long directory "
10767 "listings might cause the protocol message size to be exceeded, causing this "
10768 "call to fail.  The caller must split up such requests into smaller groups of "
10769 "names."
10770 msgstr ""
10771
10772 #. type: =head2
10773 #: ../fish/guestfish-actions.pod:3024
10774 msgid "mkdir"
10775 msgstr ""
10776
10777 #. type: verbatim
10778 #: ../fish/guestfish-actions.pod:3026
10779 #, no-wrap
10780 msgid ""
10781 " mkdir path\n"
10782 "\n"
10783 msgstr ""
10784
10785 #. type: textblock
10786 #: ../fish/guestfish-actions.pod:3028 ../src/guestfs-actions.pod:4552
10787 msgid "Create a directory named C<path>."
10788 msgstr ""
10789
10790 #. type: =head2
10791 #: ../fish/guestfish-actions.pod:3030
10792 msgid "mkdir-mode"
10793 msgstr ""
10794
10795 #. type: verbatim
10796 #: ../fish/guestfish-actions.pod:3032
10797 #, no-wrap
10798 msgid ""
10799 " mkdir-mode path mode\n"
10800 "\n"
10801 msgstr ""
10802
10803 #. type: textblock
10804 #: ../fish/guestfish-actions.pod:3034 ../src/guestfs-actions.pod:4565
10805 msgid ""
10806 "This command creates a directory, setting the initial permissions of the "
10807 "directory to C<mode>."
10808 msgstr ""
10809
10810 #. type: textblock
10811 #: ../fish/guestfish-actions.pod:3037 ../src/guestfs-actions.pod:4568
10812 msgid ""
10813 "For common Linux filesystems, the actual mode which is set will be C<mode & "
10814 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
10815 "other ways."
10816 msgstr ""
10817
10818 #. type: textblock
10819 #: ../fish/guestfish-actions.pod:3041
10820 msgid "See also L</mkdir>, L</umask>"
10821 msgstr ""
10822
10823 #. type: =head2
10824 #: ../fish/guestfish-actions.pod:3043
10825 msgid "mkdir-p"
10826 msgstr ""
10827
10828 #. type: verbatim
10829 #: ../fish/guestfish-actions.pod:3045
10830 #, no-wrap
10831 msgid ""
10832 " mkdir-p path\n"
10833 "\n"
10834 msgstr ""
10835
10836 #. type: textblock
10837 #: ../fish/guestfish-actions.pod:3047 ../src/guestfs-actions.pod:4584
10838 msgid ""
10839 "Create a directory named C<path>, creating any parent directories as "
10840 "necessary.  This is like the C<mkdir -p> shell command."
10841 msgstr ""
10842
10843 #. type: =head2
10844 #: ../fish/guestfish-actions.pod:3050
10845 msgid "mkdtemp"
10846 msgstr ""
10847
10848 #. type: verbatim
10849 #: ../fish/guestfish-actions.pod:3052
10850 #, no-wrap
10851 msgid ""
10852 " mkdtemp template\n"
10853 "\n"
10854 msgstr ""
10855
10856 #. type: textblock
10857 #: ../fish/guestfish-actions.pod:3054 ../src/guestfs-actions.pod:4597
10858 msgid ""
10859 "This command creates a temporary directory.  The C<template> parameter "
10860 "should be a full pathname for the temporary directory name with the final "
10861 "six characters being \"XXXXXX\"."
10862 msgstr ""
10863
10864 #. type: textblock
10865 #: ../fish/guestfish-actions.pod:3059 ../src/guestfs-actions.pod:4602
10866 msgid ""
10867 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
10868 "being suitable for Windows filesystems."
10869 msgstr ""
10870
10871 #. type: textblock
10872 #: ../fish/guestfish-actions.pod:3062 ../src/guestfs-actions.pod:4605
10873 msgid "The name of the temporary directory that was created is returned."
10874 msgstr ""
10875
10876 #. type: textblock
10877 #: ../fish/guestfish-actions.pod:3065 ../src/guestfs-actions.pod:4608
10878 msgid "The temporary directory is created with mode 0700 and is owned by root."
10879 msgstr ""
10880
10881 #. type: textblock
10882 #: ../fish/guestfish-actions.pod:3068 ../src/guestfs-actions.pod:4611
10883 msgid ""
10884 "The caller is responsible for deleting the temporary directory and its "
10885 "contents after use."
10886 msgstr ""
10887
10888 #. type: textblock
10889 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4614
10890 msgid "See also: L<mkdtemp(3)>"
10891 msgstr ""
10892
10893 #. type: =head2
10894 #: ../fish/guestfish-actions.pod:3073
10895 msgid "mke2fs-J"
10896 msgstr ""
10897
10898 #. type: verbatim
10899 #: ../fish/guestfish-actions.pod:3075
10900 #, no-wrap
10901 msgid ""
10902 " mke2fs-J fstype blocksize device journal\n"
10903 "\n"
10904 msgstr ""
10905
10906 #. type: textblock
10907 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4630
10908 msgid ""
10909 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10910 "C<journal>.  It is equivalent to the command:"
10911 msgstr ""
10912
10913 #. type: verbatim
10914 #: ../fish/guestfish-actions.pod:3081 ../src/guestfs-actions.pod:4634
10915 #, no-wrap
10916 msgid ""
10917 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
10918 "\n"
10919 msgstr ""
10920
10921 #. type: textblock
10922 #: ../fish/guestfish-actions.pod:3083
10923 msgid "See also L</mke2journal>."
10924 msgstr ""
10925
10926 #. type: =head2
10927 #: ../fish/guestfish-actions.pod:3085
10928 msgid "mke2fs-JL"
10929 msgstr ""
10930
10931 #. type: verbatim
10932 #: ../fish/guestfish-actions.pod:3087
10933 #, no-wrap
10934 msgid ""
10935 " mke2fs-JL fstype blocksize device label\n"
10936 "\n"
10937 msgstr ""
10938
10939 #. type: textblock
10940 #: ../fish/guestfish-actions.pod:3089 ../src/guestfs-actions.pod:4651
10941 msgid ""
10942 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10943 "the journal labeled C<label>."
10944 msgstr ""
10945
10946 #. type: textblock
10947 #: ../fish/guestfish-actions.pod:3092
10948 msgid "See also L</mke2journal-L>."
10949 msgstr ""
10950
10951 #. type: =head2
10952 #: ../fish/guestfish-actions.pod:3094
10953 msgid "mke2fs-JU"
10954 msgstr ""
10955
10956 #. type: verbatim
10957 #: ../fish/guestfish-actions.pod:3096
10958 #, no-wrap
10959 msgid ""
10960 " mke2fs-JU fstype blocksize device uuid\n"
10961 "\n"
10962 msgstr ""
10963
10964 #. type: textblock
10965 #: ../fish/guestfish-actions.pod:3098 ../src/guestfs-actions.pod:4669
10966 msgid ""
10967 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10968 "the journal with UUID C<uuid>."
10969 msgstr ""
10970
10971 #. type: textblock
10972 #: ../fish/guestfish-actions.pod:3101
10973 msgid "See also L</mke2journal-U>."
10974 msgstr ""
10975
10976 #. type: =head2
10977 #: ../fish/guestfish-actions.pod:3103
10978 msgid "mke2journal"
10979 msgstr ""
10980
10981 #. type: verbatim
10982 #: ../fish/guestfish-actions.pod:3105
10983 #, no-wrap
10984 msgid ""
10985 " mke2journal blocksize device\n"
10986 "\n"
10987 msgstr ""
10988
10989 #. type: textblock
10990 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4685
10991 msgid ""
10992 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
10993 "command:"
10994 msgstr ""
10995
10996 #. type: verbatim
10997 #: ../fish/guestfish-actions.pod:3110 ../src/guestfs-actions.pod:4688
10998 #, no-wrap
10999 msgid ""
11000 " mke2fs -O journal_dev -b blocksize device\n"
11001 "\n"
11002 msgstr ""
11003
11004 #. type: =head2
11005 #: ../fish/guestfish-actions.pod:3112
11006 msgid "mke2journal-L"
11007 msgstr ""
11008
11009 #. type: verbatim
11010 #: ../fish/guestfish-actions.pod:3114
11011 #, no-wrap
11012 msgid ""
11013 " mke2journal-L blocksize label device\n"
11014 "\n"
11015 msgstr ""
11016
11017 #. type: textblock
11018 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4702
11019 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11020 msgstr ""
11021
11022 #. type: =head2
11023 #: ../fish/guestfish-actions.pod:3118
11024 msgid "mke2journal-U"
11025 msgstr ""
11026
11027 #. type: verbatim
11028 #: ../fish/guestfish-actions.pod:3120
11029 #, no-wrap
11030 msgid ""
11031 " mke2journal-U blocksize uuid device\n"
11032 "\n"
11033 msgstr ""
11034
11035 #. type: textblock
11036 #: ../fish/guestfish-actions.pod:3122 ../src/guestfs-actions.pod:4716
11037 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11038 msgstr ""
11039
11040 #. type: =head2
11041 #: ../fish/guestfish-actions.pod:3124
11042 msgid "mkfifo"
11043 msgstr ""
11044
11045 #. type: verbatim
11046 #: ../fish/guestfish-actions.pod:3126
11047 #, no-wrap
11048 msgid ""
11049 " mkfifo mode path\n"
11050 "\n"
11051 msgstr ""
11052
11053 #. type: textblock
11054 #: ../fish/guestfish-actions.pod:3128
11055 msgid ""
11056 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
11057 "is just a convenient wrapper around L</mknod>."
11058 msgstr ""
11059
11060 #. type: =head2
11061 #: ../fish/guestfish-actions.pod:3134
11062 msgid "mkfs"
11063 msgstr ""
11064
11065 #. type: verbatim
11066 #: ../fish/guestfish-actions.pod:3136
11067 #, no-wrap
11068 msgid ""
11069 " mkfs fstype device\n"
11070 "\n"
11071 msgstr ""
11072
11073 #. type: textblock
11074 #: ../fish/guestfish-actions.pod:3138 ../src/guestfs-actions.pod:4746
11075 msgid ""
11076 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11077 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
11078 msgstr ""
11079
11080 #. type: =head2
11081 #: ../fish/guestfish-actions.pod:3142
11082 msgid "mkfs-b"
11083 msgstr ""
11084
11085 #. type: verbatim
11086 #: ../fish/guestfish-actions.pod:3144
11087 #, no-wrap
11088 msgid ""
11089 " mkfs-b fstype blocksize device\n"
11090 "\n"
11091 msgstr ""
11092
11093 #. type: textblock
11094 #: ../fish/guestfish-actions.pod:3146
11095 msgid ""
11096 "This call is similar to L</mkfs>, but it allows you to control the block "
11097 "size of the resulting filesystem.  Supported block sizes depend on the "
11098 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11099 msgstr ""
11100
11101 #. type: textblock
11102 #: ../fish/guestfish-actions.pod:3151 ../fish/guestfish-actions.pod:3178
11103 #: ../src/guestfs-actions.pod:4774 ../src/guestfs-actions.pod:4812
11104 msgid ""
11105 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11106 "cluster size."
11107 msgstr ""
11108
11109 #. type: textblock
11110 #: ../fish/guestfish-actions.pod:3154
11111 msgid ""
11112 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
11113 "instead."
11114 msgstr ""
11115
11116 #. type: =head2
11117 #: ../fish/guestfish-actions.pod:3161
11118 msgid "mkfs-opts"
11119 msgstr ""
11120
11121 #. type: verbatim
11122 #: ../fish/guestfish-actions.pod:3163
11123 #, no-wrap
11124 msgid ""
11125 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
11126 "\n"
11127 msgstr ""
11128
11129 #. type: textblock
11130 #: ../fish/guestfish-actions.pod:3165 ../src/guestfs-actions.pod:4799
11131 msgid ""
11132 "This function creates a filesystem on C<device>.  The filesystem type is "
11133 "C<fstype>, for example C<ext3>."
11134 msgstr ""
11135
11136 #. type: =item
11137 #: ../fish/guestfish-actions.pod:3172 ../src/guestfs-actions.pod:4806
11138 msgid "C<blocksize>"
11139 msgstr ""
11140
11141 #. type: textblock
11142 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4808
11143 msgid ""
11144 "The filesystem block size.  Supported block sizes depend on the filesystem "
11145 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
11146 "filesystems."
11147 msgstr ""
11148
11149 #. type: textblock
11150 #: ../fish/guestfish-actions.pod:3181 ../src/guestfs-actions.pod:4815
11151 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
11152 msgstr ""
11153
11154 #. type: =item
11155 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4817
11156 msgid "C<features>"
11157 msgstr ""
11158
11159 #. type: textblock
11160 #: ../fish/guestfish-actions.pod:3185 ../src/guestfs-actions.pod:4819
11161 msgid "This passes the I<-O> parameter to the external mkfs program."
11162 msgstr ""
11163
11164 #. type: textblock
11165 #: ../fish/guestfish-actions.pod:3187 ../src/guestfs-actions.pod:4821
11166 msgid ""
11167 "For certain filesystem types, this allows extra filesystem features to be "
11168 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
11169 msgstr ""
11170
11171 #. type: textblock
11172 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4825
11173 msgid ""
11174 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
11175 "type."
11176 msgstr ""
11177
11178 #. type: =item
11179 #: ../fish/guestfish-actions.pod:3194 ../src/guestfs-actions.pod:4828
11180 msgid "C<inode>"
11181 msgstr ""
11182
11183 #. type: textblock
11184 #: ../fish/guestfish-actions.pod:3196 ../src/guestfs-actions.pod:4830
11185 msgid ""
11186 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
11187 "sets the inode size (only for ext2/3/4 filesystems at present)."
11188 msgstr ""
11189
11190 #. type: =item
11191 #: ../fish/guestfish-actions.pod:3199 ../src/guestfs-actions.pod:4833
11192 msgid "C<sectorsize>"
11193 msgstr ""
11194
11195 #. type: textblock
11196 #: ../fish/guestfish-actions.pod:3201 ../src/guestfs-actions.pod:4835
11197 msgid ""
11198 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
11199 "sets sector size for ufs filesystem."
11200 msgstr ""
11201
11202 #. type: =head2
11203 #: ../fish/guestfish-actions.pod:3208
11204 msgid "mkmountpoint"
11205 msgstr ""
11206
11207 #. type: verbatim
11208 #: ../fish/guestfish-actions.pod:3210
11209 #, no-wrap
11210 msgid ""
11211 " mkmountpoint exemptpath\n"
11212 "\n"
11213 msgstr ""
11214
11215 #. type: textblock
11216 #: ../fish/guestfish-actions.pod:3212
11217 msgid ""
11218 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
11219 "to create extra mountpoints before mounting the first filesystem."
11220 msgstr ""
11221
11222 #. type: textblock
11223 #: ../fish/guestfish-actions.pod:3216 ../src/guestfs-actions.pod:4878
11224 msgid ""
11225 "These calls are I<only> necessary in some very limited circumstances, mainly "
11226 "the case where you want to mount a mix of unrelated and/or read-only "
11227 "filesystems together."
11228 msgstr ""
11229
11230 #. type: textblock
11231 #: ../fish/guestfish-actions.pod:3220 ../src/guestfs-actions.pod:4882
11232 msgid ""
11233 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11234 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11235 "inside that.  You can unpack this as follows in guestfish:"
11236 msgstr ""
11237
11238 #. type: verbatim
11239 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4887
11240 #, no-wrap
11241 msgid ""
11242 " add-ro Fedora-11-i686-Live.iso\n"
11243 " run\n"
11244 " mkmountpoint /cd\n"
11245 " mkmountpoint /sqsh\n"
11246 " mkmountpoint /ext3fs\n"
11247 " mount /dev/sda /cd\n"
11248 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11249 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11250 "\n"
11251 msgstr ""
11252
11253 #. type: textblock
11254 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4896
11255 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11256 msgstr ""
11257
11258 #. type: textblock
11259 #: ../fish/guestfish-actions.pod:3236
11260 msgid ""
11261 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
11262 "unexpected errors if you try to mix these calls.  It is safest to manually "
11263 "unmount filesystems and remove mountpoints after use."
11264 msgstr ""
11265
11266 #. type: textblock
11267 #: ../fish/guestfish-actions.pod:3240
11268 msgid ""
11269 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
11270 "for this to work for manual mountpoints, you must ensure that the innermost "
11271 "mountpoints have the longest pathnames, as in the example code above."
11272 msgstr ""
11273
11274 #. type: textblock
11275 #: ../fish/guestfish-actions.pod:3245 ../src/guestfs-actions.pod:4907
11276 msgid ""
11277 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11278 msgstr ""
11279
11280 #. type: textblock
11281 #: ../fish/guestfish-actions.pod:3247
11282 msgid ""
11283 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
11284 "L</umount-all> to be called when the handle is closed which can also trigger "
11285 "these issues."
11286 msgstr ""
11287
11288 #. type: =head2
11289 #: ../fish/guestfish-actions.pod:3251
11290 msgid "mknod"
11291 msgstr ""
11292
11293 #. type: verbatim
11294 #: ../fish/guestfish-actions.pod:3253
11295 #, no-wrap
11296 msgid ""
11297 " mknod mode devmajor devminor path\n"
11298 "\n"
11299 msgstr ""
11300
11301 #. type: textblock
11302 #: ../fish/guestfish-actions.pod:3255 ../src/guestfs-actions.pod:4926
11303 msgid ""
11304 "This call creates block or character special devices, or named pipes (FIFOs)."
11305 msgstr ""
11306
11307 #. type: textblock
11308 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:4929
11309 msgid ""
11310 "The C<mode> parameter should be the mode, using the standard constants.  "
11311 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11312 "used when creating block and character special devices."
11313 msgstr ""
11314
11315 #. type: textblock
11316 #: ../fish/guestfish-actions.pod:3263
11317 msgid ""
11318 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11319 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11320 "regular file).  These constants are available in the standard Linux header "
11321 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
11322 "wrappers around this command which bitwise OR in the appropriate constant "
11323 "for you."
11324 msgstr ""
11325
11326 #. type: =head2
11327 #: ../fish/guestfish-actions.pod:3273
11328 msgid "mknod-b"
11329 msgstr ""
11330
11331 #. type: verbatim
11332 #: ../fish/guestfish-actions.pod:3275
11333 #, no-wrap
11334 msgid ""
11335 " mknod-b mode devmajor devminor path\n"
11336 "\n"
11337 msgstr ""
11338
11339 #. type: textblock
11340 #: ../fish/guestfish-actions.pod:3277
11341 msgid ""
11342 "This call creates a block device node called C<path> with mode C<mode> and "
11343 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11344 "wrapper around L</mknod>."
11345 msgstr ""
11346
11347 #. type: =head2
11348 #: ../fish/guestfish-actions.pod:3283
11349 msgid "mknod-c"
11350 msgstr ""
11351
11352 #. type: verbatim
11353 #: ../fish/guestfish-actions.pod:3285
11354 #, no-wrap
11355 msgid ""
11356 " mknod-c mode devmajor devminor path\n"
11357 "\n"
11358 msgstr ""
11359
11360 #. type: textblock
11361 #: ../fish/guestfish-actions.pod:3287
11362 msgid ""
11363 "This call creates a char device node called C<path> with mode C<mode> and "
11364 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11365 "wrapper around L</mknod>."
11366 msgstr ""
11367
11368 #. type: =head2
11369 #: ../fish/guestfish-actions.pod:3293
11370 msgid "mkswap"
11371 msgstr ""
11372
11373 #. type: verbatim
11374 #: ../fish/guestfish-actions.pod:3295
11375 #, no-wrap
11376 msgid ""
11377 " mkswap device\n"
11378 "\n"
11379 msgstr ""
11380
11381 #. type: textblock
11382 #: ../fish/guestfish-actions.pod:3297 ../src/guestfs-actions.pod:4992
11383 msgid "Create a swap partition on C<device>."
11384 msgstr ""
11385
11386 #. type: =head2
11387 #: ../fish/guestfish-actions.pod:3299
11388 msgid "mkswap-L"
11389 msgstr ""
11390
11391 #. type: verbatim
11392 #: ../fish/guestfish-actions.pod:3301
11393 #, no-wrap
11394 msgid ""
11395 " mkswap-L label device\n"
11396 "\n"
11397 msgstr ""
11398
11399 #. type: textblock
11400 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:5005
11401 msgid "Create a swap partition on C<device> with label C<label>."
11402 msgstr ""
11403
11404 #. type: textblock
11405 #: ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:5007
11406 msgid ""
11407 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11408 "sda>), just to a partition.  This appears to be a limitation of the kernel "
11409 "or swap tools."
11410 msgstr ""
11411
11412 #. type: =head2
11413 #: ../fish/guestfish-actions.pod:3309
11414 msgid "mkswap-U"
11415 msgstr ""
11416
11417 #. type: verbatim
11418 #: ../fish/guestfish-actions.pod:3311
11419 #, no-wrap
11420 msgid ""
11421 " mkswap-U uuid device\n"
11422 "\n"
11423 msgstr ""
11424
11425 #. type: textblock
11426 #: ../fish/guestfish-actions.pod:3313 ../src/guestfs-actions.pod:5022
11427 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11428 msgstr ""
11429
11430 #. type: =head2
11431 #: ../fish/guestfish-actions.pod:3315
11432 msgid "mkswap-file"
11433 msgstr ""
11434
11435 #. type: verbatim
11436 #: ../fish/guestfish-actions.pod:3317
11437 #, no-wrap
11438 msgid ""
11439 " mkswap-file path\n"
11440 "\n"
11441 msgstr ""
11442
11443 #. type: textblock
11444 #: ../fish/guestfish-actions.pod:3319 ../src/guestfs-actions.pod:5034
11445 msgid "Create a swap file."
11446 msgstr ""
11447
11448 #. type: textblock
11449 #: ../fish/guestfish-actions.pod:3321
11450 msgid ""
11451 "This command just writes a swap file signature to an existing file.  To "
11452 "create the file itself, use something like L</fallocate>."
11453 msgstr ""
11454
11455 #. type: =head2
11456 #: ../fish/guestfish-actions.pod:3324
11457 msgid "modprobe"
11458 msgstr ""
11459
11460 #. type: verbatim
11461 #: ../fish/guestfish-actions.pod:3326
11462 #, no-wrap
11463 msgid ""
11464 " modprobe modulename\n"
11465 "\n"
11466 msgstr ""
11467
11468 #. type: textblock
11469 #: ../fish/guestfish-actions.pod:3328 ../src/guestfs-actions.pod:5049
11470 msgid "This loads a kernel module in the appliance."
11471 msgstr ""
11472
11473 #. type: textblock
11474 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5051
11475 msgid ""
11476 "The kernel module must have been whitelisted when libguestfs was built (see "
11477 "C<appliance/kmod.whitelist.in> in the source)."
11478 msgstr ""
11479
11480 #. type: =head2
11481 #: ../fish/guestfish-actions.pod:3333
11482 msgid "mount"
11483 msgstr ""
11484
11485 #. type: verbatim
11486 #: ../fish/guestfish-actions.pod:3335
11487 #, no-wrap
11488 msgid ""
11489 " mount device mountpoint\n"
11490 "\n"
11491 msgstr ""
11492
11493 #. type: textblock
11494 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5072
11495 msgid ""
11496 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11497 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11498 "those block devices contain partitions, they will have the usual names (eg. "
11499 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11500 msgstr ""
11501
11502 #. type: textblock
11503 #: ../fish/guestfish-actions.pod:3343 ../src/guestfs-actions.pod:5078
11504 msgid ""
11505 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11506 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11507 "mounted on directories which already exist."
11508 msgstr ""
11509
11510 #. type: textblock
11511 #: ../fish/guestfish-actions.pod:3348 ../src/guestfs-actions.pod:5083
11512 msgid ""
11513 "The mounted filesystem is writable, if we have sufficient permissions on the "
11514 "underlying device."
11515 msgstr ""
11516
11517 #. type: textblock
11518 #: ../fish/guestfish-actions.pod:3351
11519 msgid ""
11520 "B<Important note:> When you use this call, the filesystem options C<sync> "
11521 "and C<noatime> are set implicitly.  This was originally done because we "
11522 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11523 "very large negative performance impact and negligible effect on "
11524 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
11525 "code that needs performance, and instead use L</mount-options> (use an empty "
11526 "string for the first parameter if you don't want any options)."
11527 msgstr ""
11528
11529 #. type: textblock
11530 #: ../fish/guestfish-actions.pod:3361
11531 msgid ""
11532 "I<This function is deprecated.> In new code, use the L</mount_options> call "
11533 "instead."
11534 msgstr ""
11535
11536 #. type: =head2
11537 #: ../fish/guestfish-actions.pod:3368
11538 msgid "mount-9p"
11539 msgstr ""
11540
11541 #. type: verbatim
11542 #: ../fish/guestfish-actions.pod:3370
11543 #, no-wrap
11544 msgid ""
11545 " mount-9p mounttag mountpoint [options:..]\n"
11546 "\n"
11547 msgstr ""
11548
11549 #. type: textblock
11550 #: ../fish/guestfish-actions.pod:3372 ../src/guestfs-actions.pod:5115
11551 msgid ""
11552 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
11553 "C<mountpoint>."
11554 msgstr ""
11555
11556 #. type: textblock
11557 #: ../fish/guestfish-actions.pod:3375 ../src/guestfs-actions.pod:5118
11558 msgid ""
11559 "If required, C<trans=virtio> will be automatically added to the options.  "
11560 "Any other options required can be passed in the optional C<options> "
11561 "parameter."
11562 msgstr ""
11563
11564 #. type: =head2
11565 #: ../fish/guestfish-actions.pod:3381
11566 msgid "mount-loop"
11567 msgstr ""
11568
11569 #. type: verbatim
11570 #: ../fish/guestfish-actions.pod:3383
11571 #, no-wrap
11572 msgid ""
11573 " mount-loop file mountpoint\n"
11574 "\n"
11575 msgstr ""
11576
11577 #. type: textblock
11578 #: ../fish/guestfish-actions.pod:3385 ../src/guestfs-actions.pod:5157
11579 msgid ""
11580 "This command lets you mount C<file> (a filesystem image in a file) on a "
11581 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11582 "mountpoint>."
11583 msgstr ""
11584
11585 #. type: =head2
11586 #: ../fish/guestfish-actions.pod:3389
11587 msgid "mount-options"
11588 msgstr ""
11589
11590 #. type: verbatim
11591 #: ../fish/guestfish-actions.pod:3391
11592 #, no-wrap
11593 msgid ""
11594 " mount-options options device mountpoint\n"
11595 "\n"
11596 msgstr ""
11597
11598 #. type: textblock
11599 #: ../fish/guestfish-actions.pod:3393
11600 msgid ""
11601 "This is the same as the L</mount> command, but it allows you to set the "
11602 "mount options as for the L<mount(8)> I<-o> flag."
11603 msgstr ""
11604
11605 #. type: textblock
11606 #: ../fish/guestfish-actions.pod:3397 ../src/guestfs-actions.pod:5177
11607 msgid ""
11608 "If the C<options> parameter is an empty string, then no options are passed "
11609 "(all options default to whatever the filesystem uses)."
11610 msgstr ""
11611
11612 #. type: =head2
11613 #: ../fish/guestfish-actions.pod:3401
11614 msgid "mount-ro"
11615 msgstr ""
11616
11617 #. type: verbatim
11618 #: ../fish/guestfish-actions.pod:3403
11619 #, no-wrap
11620 msgid ""
11621 " mount-ro device mountpoint\n"
11622 "\n"
11623 msgstr ""
11624
11625 #. type: textblock
11626 #: ../fish/guestfish-actions.pod:3405
11627 msgid ""
11628 "This is the same as the L</mount> command, but it mounts the filesystem with "
11629 "the read-only (I<-o ro>) flag."
11630 msgstr ""
11631
11632 #. type: =head2
11633 #: ../fish/guestfish-actions.pod:3408
11634 msgid "mount-vfs"
11635 msgstr ""
11636
11637 #. type: verbatim
11638 #: ../fish/guestfish-actions.pod:3410
11639 #, no-wrap
11640 msgid ""
11641 " mount-vfs options vfstype device mountpoint\n"
11642 "\n"
11643 msgstr ""
11644
11645 #. type: textblock
11646 #: ../fish/guestfish-actions.pod:3412
11647 msgid ""
11648 "This is the same as the L</mount> command, but it allows you to set both the "
11649 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
11650 msgstr ""
11651
11652 #. type: =head2
11653 #: ../fish/guestfish-actions.pod:3416
11654 msgid "mountpoints"
11655 msgstr ""
11656
11657 #. type: verbatim
11658 #: ../fish/guestfish-actions.pod:3418
11659 #, no-wrap
11660 msgid ""
11661 " mountpoints\n"
11662 "\n"
11663 msgstr ""
11664
11665 #. type: textblock
11666 #: ../fish/guestfish-actions.pod:3420
11667 msgid ""
11668 "This call is similar to L</mounts>.  That call returns a list of devices.  "
11669 "This one returns a hash table (map) of device name to directory where the "
11670 "device is mounted."
11671 msgstr ""
11672
11673 #. type: =head2
11674 #: ../fish/guestfish-actions.pod:3424
11675 msgid "mounts"
11676 msgstr ""
11677
11678 #. type: verbatim
11679 #: ../fish/guestfish-actions.pod:3426
11680 #, no-wrap
11681 msgid ""
11682 " mounts\n"
11683 "\n"
11684 msgstr ""
11685
11686 #. type: textblock
11687 #: ../fish/guestfish-actions.pod:3428 ../src/guestfs-actions.pod:5238
11688 msgid ""
11689 "This returns the list of currently mounted filesystems.  It returns the list "
11690 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
11691 msgstr ""
11692
11693 #. type: textblock
11694 #: ../fish/guestfish-actions.pod:3431 ../src/guestfs-actions.pod:5241
11695 msgid "Some internal mounts are not shown."
11696 msgstr ""
11697
11698 #. type: textblock
11699 #: ../fish/guestfish-actions.pod:3433
11700 msgid "See also: L</mountpoints>"
11701 msgstr ""
11702
11703 #. type: =head2
11704 #: ../fish/guestfish-actions.pod:3435
11705 msgid "mv"
11706 msgstr ""
11707
11708 #. type: verbatim
11709 #: ../fish/guestfish-actions.pod:3437
11710 #, no-wrap
11711 msgid ""
11712 " mv src dest\n"
11713 "\n"
11714 msgstr ""
11715
11716 #. type: textblock
11717 #: ../fish/guestfish-actions.pod:3439 ../src/guestfs-actions.pod:5258
11718 msgid ""
11719 "This moves a file from C<src> to C<dest> where C<dest> is either a "
11720 "destination filename or destination directory."
11721 msgstr ""
11722
11723 #. type: =head2
11724 #: ../fish/guestfish-actions.pod:3442
11725 msgid "ntfs-3g-probe"
11726 msgstr ""
11727
11728 #. type: verbatim
11729 #: ../fish/guestfish-actions.pod:3444
11730 #, no-wrap
11731 msgid ""
11732 " ntfs-3g-probe true|false device\n"
11733 "\n"
11734 msgstr ""
11735
11736 #. type: textblock
11737 #: ../fish/guestfish-actions.pod:3446 ../src/guestfs-actions.pod:5272
11738 msgid ""
11739 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
11740 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
11741 "write, and some cannot be mounted at all)."
11742 msgstr ""
11743
11744 #. type: textblock
11745 #: ../fish/guestfish-actions.pod:3450 ../src/guestfs-actions.pod:5276
11746 msgid ""
11747 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
11748 "can be mounted read-write.  Set it to false if you want to test if the "
11749 "volume can be mounted read-only."
11750 msgstr ""
11751
11752 #. type: textblock
11753 #: ../fish/guestfish-actions.pod:3454 ../src/guestfs-actions.pod:5280
11754 msgid ""
11755 "The return value is an integer which C<0> if the operation would succeed, or "
11756 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
11757 msgstr ""
11758
11759 #. type: =head2
11760 #: ../fish/guestfish-actions.pod:3458
11761 msgid "ntfsresize"
11762 msgstr ""
11763
11764 #. type: verbatim
11765 #: ../fish/guestfish-actions.pod:3460
11766 #, no-wrap
11767 msgid ""
11768 " ntfsresize device\n"
11769 "\n"
11770 msgstr ""
11771
11772 #. type: textblock
11773 #: ../fish/guestfish-actions.pod:3462 ../fish/guestfish-actions.pod:3486
11774 #: ../src/guestfs-actions.pod:5301 ../src/guestfs-actions.pod:5333
11775 msgid ""
11776 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
11777 "size of the underlying device."
11778 msgstr ""
11779
11780 #. type: textblock
11781 #: ../fish/guestfish-actions.pod:3465 ../src/guestfs-actions.pod:5304
11782 msgid ""
11783 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
11784 "consistency check (for safety).  You have to boot into Windows to perform "
11785 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
11786 "resize filesystems which have been marked in this way.  So in effect it is "
11787 "not possible to call ntfsresize multiple times on a single filesystem "
11788 "without booting into Windows between each resize."
11789 msgstr ""
11790
11791 #. type: textblock
11792 #: ../fish/guestfish-actions.pod:3473 ../fish/guestfish-actions.pod:3512
11793 #: ../src/guestfs-actions.pod:5312 ../src/guestfs-actions.pod:5359
11794 msgid "See also L<ntfsresize(8)>."
11795 msgstr ""
11796
11797 #. type: textblock
11798 #: ../fish/guestfish-actions.pod:3475 ../fish/guestfish-actions.pod:3523
11799 msgid ""
11800 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
11801 "call instead."
11802 msgstr ""
11803
11804 #. type: =head2
11805 #: ../fish/guestfish-actions.pod:3482
11806 msgid "ntfsresize-opts"
11807 msgstr ""
11808
11809 #. type: verbatim
11810 #: ../fish/guestfish-actions.pod:3484
11811 #, no-wrap
11812 msgid ""
11813 " ntfsresize-opts device [size:..] [force:..]\n"
11814 "\n"
11815 msgstr ""
11816
11817 #. type: textblock
11818 #: ../fish/guestfish-actions.pod:3495 ../src/guestfs-actions.pod:5342
11819 msgid ""
11820 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
11821 "resized to fit the container (eg. partition)."
11822 msgstr ""
11823
11824 #. type: =item
11825 #: ../fish/guestfish-actions.pod:3498 ../src/guestfs-actions.pod:5345
11826 msgid "C<force>"
11827 msgstr ""
11828
11829 #. type: textblock
11830 #: ../fish/guestfish-actions.pod:3500 ../src/guestfs-actions.pod:5347
11831 msgid ""
11832 "If this option is true, then force the resize of the filesystem even if the "
11833 "filesystem is marked as requiring a consistency check."
11834 msgstr ""
11835
11836 #. type: textblock
11837 #: ../fish/guestfish-actions.pod:3503
11838 msgid ""
11839 "After the resize operation, the filesystem is always marked as requiring a "
11840 "consistency check (for safety).  You have to boot into Windows to perform "
11841 "this check and clear this condition.  If you I<don't> set the C<force> "
11842 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
11843 "a single filesystem without booting into Windows between each resize."
11844 msgstr ""
11845
11846 #. type: =head2
11847 #: ../fish/guestfish-actions.pod:3516
11848 msgid "ntfsresize-size"
11849 msgstr ""
11850
11851 #. type: verbatim
11852 #: ../fish/guestfish-actions.pod:3518
11853 #, no-wrap
11854 msgid ""
11855 " ntfsresize-size device size\n"
11856 "\n"
11857 msgstr ""
11858
11859 #. type: textblock
11860 #: ../fish/guestfish-actions.pod:3520
11861 msgid ""
11862 "This command is the same as L</ntfsresize> except that it allows you to "
11863 "specify the new size (in bytes) explicitly."
11864 msgstr ""
11865
11866 #. type: =head2
11867 #: ../fish/guestfish-actions.pod:3530
11868 msgid "part-add"
11869 msgstr ""
11870
11871 #. type: verbatim
11872 #: ../fish/guestfish-actions.pod:3532
11873 #, no-wrap
11874 msgid ""
11875 " part-add device prlogex startsect endsect\n"
11876 "\n"
11877 msgstr ""
11878
11879 #. type: textblock
11880 #: ../fish/guestfish-actions.pod:3534
11881 msgid ""
11882 "This command adds a partition to C<device>.  If there is no partition table "
11883 "on the device, call L</part-init> first."
11884 msgstr ""
11885
11886 #. type: textblock
11887 #: ../fish/guestfish-actions.pod:3537 ../src/guestfs-actions.pod:5420
11888 msgid ""
11889 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
11890 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
11891 "C<logical>) and C<e> (or C<extended>) partition types."
11892 msgstr ""
11893
11894 #. type: textblock
11895 #: ../fish/guestfish-actions.pod:3542 ../src/guestfs-actions.pod:5425
11896 msgid ""
11897 "C<startsect> and C<endsect> are the start and end of the partition in "
11898 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
11899 "from the end of the disk (C<-1> is the last sector)."
11900 msgstr ""
11901
11902 #. type: textblock
11903 #: ../fish/guestfish-actions.pod:3546
11904 msgid ""
11905 "Creating a partition which covers the whole disk is not so easy.  Use L</"
11906 "part-disk> to do that."
11907 msgstr ""
11908
11909 #. type: =head2
11910 #: ../fish/guestfish-actions.pod:3549
11911 msgid "part-del"
11912 msgstr ""
11913
11914 #. type: verbatim
11915 #: ../fish/guestfish-actions.pod:3551
11916 #, no-wrap
11917 msgid ""
11918 " part-del device partnum\n"
11919 "\n"
11920 msgstr ""
11921
11922 #. type: textblock
11923 #: ../fish/guestfish-actions.pod:3553 ../src/guestfs-actions.pod:5443
11924 msgid "This command deletes the partition numbered C<partnum> on C<device>."
11925 msgstr ""
11926
11927 #. type: textblock
11928 #: ../fish/guestfish-actions.pod:3555 ../src/guestfs-actions.pod:5445
11929 msgid ""
11930 "Note that in the case of MBR partitioning, deleting an extended partition "
11931 "also deletes any logical partitions it contains."
11932 msgstr ""
11933
11934 #. type: =head2
11935 #: ../fish/guestfish-actions.pod:3559
11936 msgid "part-disk"
11937 msgstr ""
11938
11939 #. type: verbatim
11940 #: ../fish/guestfish-actions.pod:3561
11941 #, no-wrap
11942 msgid ""
11943 " part-disk device parttype\n"
11944 "\n"
11945 msgstr ""
11946
11947 #. type: textblock
11948 #: ../fish/guestfish-actions.pod:3563
11949 msgid ""
11950 "This command is simply a combination of L</part-init> followed by L</part-"
11951 "add> to create a single primary partition covering the whole disk."
11952 msgstr ""
11953
11954 #. type: textblock
11955 #: ../fish/guestfish-actions.pod:3567
11956 msgid ""
11957 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
11958 "possible values are described in L</part-init>."
11959 msgstr ""
11960
11961 #. type: =head2
11962 #: ../fish/guestfish-actions.pod:3573
11963 msgid "part-get-bootable"
11964 msgstr ""
11965
11966 #. type: verbatim
11967 #: ../fish/guestfish-actions.pod:3575
11968 #, no-wrap
11969 msgid ""
11970 " part-get-bootable device partnum\n"
11971 "\n"
11972 msgstr ""
11973
11974 #. type: textblock
11975 #: ../fish/guestfish-actions.pod:3577 ../src/guestfs-actions.pod:5481
11976 msgid ""
11977 "This command returns true if the partition C<partnum> on C<device> has the "
11978 "bootable flag set."
11979 msgstr ""
11980
11981 #. type: textblock
11982 #: ../fish/guestfish-actions.pod:3580
11983 msgid "See also L</part-set-bootable>."
11984 msgstr ""
11985
11986 #. type: =head2
11987 #: ../fish/guestfish-actions.pod:3582
11988 msgid "part-get-mbr-id"
11989 msgstr ""
11990
11991 #. type: verbatim
11992 #: ../fish/guestfish-actions.pod:3584
11993 #, no-wrap
11994 msgid ""
11995 " part-get-mbr-id device partnum\n"
11996 "\n"
11997 msgstr ""
11998
11999 #. type: textblock
12000 #: ../fish/guestfish-actions.pod:3586 ../src/guestfs-actions.pod:5497
12001 msgid ""
12002 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12003 "partition C<partnum>."
12004 msgstr ""
12005
12006 #. type: textblock
12007 #: ../fish/guestfish-actions.pod:3589 ../fish/guestfish-actions.pod:3733
12008 msgid ""
12009 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
12010 "undefined results for other partition table types (see L</part-get-"
12011 "parttype>)."
12012 msgstr ""
12013
12014 #. type: =head2
12015 #: ../fish/guestfish-actions.pod:3593
12016 msgid "part-get-parttype"
12017 msgstr ""
12018
12019 #. type: verbatim
12020 #: ../fish/guestfish-actions.pod:3595
12021 #, no-wrap
12022 msgid ""
12023 " part-get-parttype device\n"
12024 "\n"
12025 msgstr ""
12026
12027 #. type: textblock
12028 #: ../fish/guestfish-actions.pod:3597 ../src/guestfs-actions.pod:5514
12029 msgid ""
12030 "This command examines the partition table on C<device> and returns the "
12031 "partition table type (format) being used."
12032 msgstr ""
12033
12034 #. type: textblock
12035 #: ../fish/guestfish-actions.pod:3600
12036 msgid ""
12037 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12038 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
12039 "possible, although unusual.  See L</part-init> for a full list."
12040 msgstr ""
12041
12042 #. type: =head2
12043 #: ../fish/guestfish-actions.pod:3605
12044 msgid "part-init"
12045 msgstr ""
12046
12047 #. type: verbatim
12048 #: ../fish/guestfish-actions.pod:3607
12049 #, no-wrap
12050 msgid ""
12051 " part-init device parttype\n"
12052 "\n"
12053 msgstr ""
12054
12055 #. type: textblock
12056 #: ../fish/guestfish-actions.pod:3609 ../src/guestfs-actions.pod:5534
12057 msgid ""
12058 "This creates an empty partition table on C<device> of one of the partition "
12059 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
12060 "(for large disks)."
12061 msgstr ""
12062
12063 #. type: textblock
12064 #: ../fish/guestfish-actions.pod:3613
12065 msgid ""
12066 "Initially there are no partitions.  Following this, you should call L</part-"
12067 "add> for each partition required."
12068 msgstr ""
12069
12070 #. type: textblock
12071 #: ../fish/guestfish-actions.pod:3616 ../src/guestfs-actions.pod:5541
12072 msgid "Possible values for C<parttype> are:"
12073 msgstr ""
12074
12075 #. type: =item
12076 #: ../fish/guestfish-actions.pod:3620 ../src/guestfs-actions.pod:5545
12077 msgid "B<efi>"
12078 msgstr ""
12079
12080 #. type: =item
12081 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5547
12082 msgid "B<gpt>"
12083 msgstr ""
12084
12085 #. type: textblock
12086 #: ../fish/guestfish-actions.pod:3624 ../src/guestfs-actions.pod:5549
12087 msgid "Intel EFI / GPT partition table."
12088 msgstr ""
12089
12090 #. type: textblock
12091 #: ../fish/guestfish-actions.pod:3626 ../src/guestfs-actions.pod:5551
12092 msgid ""
12093 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12094 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
12095 "the C<mbr> format."
12096 msgstr ""
12097
12098 #. type: =item
12099 #: ../fish/guestfish-actions.pod:3630 ../src/guestfs-actions.pod:5555
12100 msgid "B<mbr>"
12101 msgstr ""
12102
12103 #. type: =item
12104 #: ../fish/guestfish-actions.pod:3632 ../src/guestfs-actions.pod:5557
12105 msgid "B<msdos>"
12106 msgstr ""
12107
12108 #. type: textblock
12109 #: ../fish/guestfish-actions.pod:3634 ../src/guestfs-actions.pod:5559
12110 msgid ""
12111 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12112 "Windows.  This partition type will B<only> work for device sizes up to 2 "
12113 "TB.  For large disks we recommend using C<gpt>."
12114 msgstr ""
12115
12116 #. type: textblock
12117 #: ../fish/guestfish-actions.pod:3641 ../src/guestfs-actions.pod:5566
12118 msgid ""
12119 "Other partition table types that may work but are not supported include:"
12120 msgstr ""
12121
12122 #. type: =item
12123 #: ../fish/guestfish-actions.pod:3646 ../src/guestfs-actions.pod:5571
12124 msgid "B<aix>"
12125 msgstr ""
12126
12127 #. type: textblock
12128 #: ../fish/guestfish-actions.pod:3648 ../src/guestfs-actions.pod:5573
12129 msgid "AIX disk labels."
12130 msgstr ""
12131
12132 #. type: =item
12133 #: ../fish/guestfish-actions.pod:3650 ../src/guestfs-actions.pod:5575
12134 msgid "B<amiga>"
12135 msgstr ""
12136
12137 #. type: =item
12138 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5577
12139 msgid "B<rdb>"
12140 msgstr ""
12141
12142 #. type: textblock
12143 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5579
12144 msgid "Amiga \"Rigid Disk Block\" format."
12145 msgstr ""
12146
12147 #. type: =item
12148 #: ../fish/guestfish-actions.pod:3656 ../src/guestfs-actions.pod:5581
12149 msgid "B<bsd>"
12150 msgstr ""
12151
12152 #. type: textblock
12153 #: ../fish/guestfish-actions.pod:3658 ../src/guestfs-actions.pod:5583
12154 msgid "BSD disk labels."
12155 msgstr ""
12156
12157 #. type: =item
12158 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5585
12159 msgid "B<dasd>"
12160 msgstr ""
12161
12162 #. type: textblock
12163 #: ../fish/guestfish-actions.pod:3662 ../src/guestfs-actions.pod:5587
12164 msgid "DASD, used on IBM mainframes."
12165 msgstr ""
12166
12167 #. type: =item
12168 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5589
12169 msgid "B<dvh>"
12170 msgstr ""
12171
12172 #. type: textblock
12173 #: ../fish/guestfish-actions.pod:3666 ../src/guestfs-actions.pod:5591
12174 msgid "MIPS/SGI volumes."
12175 msgstr ""
12176
12177 #. type: =item
12178 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5593
12179 msgid "B<mac>"
12180 msgstr ""
12181
12182 #. type: textblock
12183 #: ../fish/guestfish-actions.pod:3670 ../src/guestfs-actions.pod:5595
12184 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
12185 msgstr ""
12186
12187 #. type: =item
12188 #: ../fish/guestfish-actions.pod:3672 ../src/guestfs-actions.pod:5597
12189 msgid "B<pc98>"
12190 msgstr ""
12191
12192 #. type: textblock
12193 #: ../fish/guestfish-actions.pod:3674 ../src/guestfs-actions.pod:5599
12194 msgid "NEC PC-98 format, common in Japan apparently."
12195 msgstr ""
12196
12197 #. type: =item
12198 #: ../fish/guestfish-actions.pod:3676 ../src/guestfs-actions.pod:5601
12199 msgid "B<sun>"
12200 msgstr ""
12201
12202 #. type: textblock
12203 #: ../fish/guestfish-actions.pod:3678 ../src/guestfs-actions.pod:5603
12204 msgid "Sun disk labels."
12205 msgstr ""
12206
12207 #. type: =head2
12208 #: ../fish/guestfish-actions.pod:3682
12209 msgid "part-list"
12210 msgstr ""
12211
12212 #. type: verbatim
12213 #: ../fish/guestfish-actions.pod:3684
12214 #, no-wrap
12215 msgid ""
12216 " part-list device\n"
12217 "\n"
12218 msgstr ""
12219
12220 #. type: textblock
12221 #: ../fish/guestfish-actions.pod:3686 ../src/guestfs-actions.pod:5617
12222 msgid ""
12223 "This command parses the partition table on C<device> and returns the list of "
12224 "partitions found."
12225 msgstr ""
12226
12227 #. type: textblock
12228 #: ../fish/guestfish-actions.pod:3689 ../src/guestfs-actions.pod:5620
12229 msgid "The fields in the returned structure are:"
12230 msgstr ""
12231
12232 #. type: =item
12233 #: ../fish/guestfish-actions.pod:3693 ../src/guestfs-actions.pod:5624
12234 msgid "B<part_num>"
12235 msgstr ""
12236
12237 #. type: textblock
12238 #: ../fish/guestfish-actions.pod:3695 ../src/guestfs-actions.pod:5626
12239 msgid "Partition number, counting from 1."
12240 msgstr ""
12241
12242 #. type: =item
12243 #: ../fish/guestfish-actions.pod:3697 ../src/guestfs-actions.pod:5628
12244 msgid "B<part_start>"
12245 msgstr ""
12246
12247 #. type: textblock
12248 #: ../fish/guestfish-actions.pod:3699
12249 msgid ""
12250 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
12251 "the device's sector size, see L</blockdev-getss>."
12252 msgstr ""
12253
12254 #. type: =item
12255 #: ../fish/guestfish-actions.pod:3702 ../src/guestfs-actions.pod:5633
12256 msgid "B<part_end>"
12257 msgstr ""
12258
12259 #. type: textblock
12260 #: ../fish/guestfish-actions.pod:3704 ../src/guestfs-actions.pod:5635
12261 msgid "End of the partition in bytes."
12262 msgstr ""
12263
12264 #. type: =item
12265 #: ../fish/guestfish-actions.pod:3706 ../src/guestfs-actions.pod:5637
12266 msgid "B<part_size>"
12267 msgstr ""
12268
12269 #. type: textblock
12270 #: ../fish/guestfish-actions.pod:3708 ../src/guestfs-actions.pod:5639
12271 msgid "Size of the partition in bytes."
12272 msgstr ""
12273
12274 #. type: =head2
12275 #: ../fish/guestfish-actions.pod:3712
12276 msgid "part-set-bootable"
12277 msgstr ""
12278
12279 #. type: verbatim
12280 #: ../fish/guestfish-actions.pod:3714
12281 #, no-wrap
12282 msgid ""
12283 " part-set-bootable device partnum true|false\n"
12284 "\n"
12285 msgstr ""
12286
12287 #. type: textblock
12288 #: ../fish/guestfish-actions.pod:3716 ../src/guestfs-actions.pod:5657
12289 msgid ""
12290 "This sets the bootable flag on partition numbered C<partnum> on device "
12291 "C<device>.  Note that partitions are numbered from 1."
12292 msgstr ""
12293
12294 #. type: textblock
12295 #: ../fish/guestfish-actions.pod:3719 ../src/guestfs-actions.pod:5660
12296 msgid ""
12297 "The bootable flag is used by some operating systems (notably Windows) to "
12298 "determine which partition to boot from.  It is by no means universally "
12299 "recognized."
12300 msgstr ""
12301
12302 #. type: =head2
12303 #: ../fish/guestfish-actions.pod:3723
12304 msgid "part-set-mbr-id"
12305 msgstr ""
12306
12307 #. type: verbatim
12308 #: ../fish/guestfish-actions.pod:3725
12309 #, no-wrap
12310 msgid ""
12311 " part-set-mbr-id device partnum idbyte\n"
12312 "\n"
12313 msgstr ""
12314
12315 #. type: textblock
12316 #: ../fish/guestfish-actions.pod:3727 ../src/guestfs-actions.pod:5676
12317 msgid ""
12318 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12319 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12320 "documentation are in fact hexadecimal numbers, but usually documented "
12321 "without any leading \"0x\" which might be confusing."
12322 msgstr ""
12323
12324 #. type: =head2
12325 #: ../fish/guestfish-actions.pod:3737
12326 msgid "part-set-name"
12327 msgstr ""
12328
12329 #. type: verbatim
12330 #: ../fish/guestfish-actions.pod:3739
12331 #, no-wrap
12332 msgid ""
12333 " part-set-name device partnum name\n"
12334 "\n"
12335 msgstr ""
12336
12337 #. type: textblock
12338 #: ../fish/guestfish-actions.pod:3741 ../src/guestfs-actions.pod:5698
12339 msgid ""
12340 "This sets the partition name on partition numbered C<partnum> on device "
12341 "C<device>.  Note that partitions are numbered from 1."
12342 msgstr ""
12343
12344 #. type: textblock
12345 #: ../fish/guestfish-actions.pod:3744 ../src/guestfs-actions.pod:5701
12346 msgid ""
12347 "The partition name can only be set on certain types of partition table.  "
12348 "This works on C<gpt> but not on C<mbr> partitions."
12349 msgstr ""
12350
12351 #. type: =head2
12352 #: ../fish/guestfish-actions.pod:3747
12353 msgid "part-to-dev"
12354 msgstr ""
12355
12356 #. type: verbatim
12357 #: ../fish/guestfish-actions.pod:3749
12358 #, no-wrap
12359 msgid ""
12360 " part-to-dev partition\n"
12361 "\n"
12362 msgstr ""
12363
12364 #. type: textblock
12365 #: ../fish/guestfish-actions.pod:3751 ../src/guestfs-actions.pod:5714
12366 msgid ""
12367 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12368 "partition number, returning the device name (eg. \"/dev/sdb\")."
12369 msgstr ""
12370
12371 #. type: textblock
12372 #: ../fish/guestfish-actions.pod:3755
12373 msgid ""
12374 "The named partition must exist, for example as a string returned from L</"
12375 "list-partitions>."
12376 msgstr ""
12377
12378 #. type: =head2
12379 #: ../fish/guestfish-actions.pod:3758
12380 msgid "ping-daemon"
12381 msgstr ""
12382
12383 #. type: verbatim
12384 #: ../fish/guestfish-actions.pod:3760
12385 #, no-wrap
12386 msgid ""
12387 " ping-daemon\n"
12388 "\n"
12389 msgstr ""
12390
12391 #. type: textblock
12392 #: ../fish/guestfish-actions.pod:3762 ../src/guestfs-actions.pod:5731
12393 msgid ""
12394 "This is a test probe into the guestfs daemon running inside the qemu "
12395 "subprocess.  Calling this function checks that the daemon responds to the "
12396 "ping message, without affecting the daemon or attached block device(s) in "
12397 "any other way."
12398 msgstr ""
12399
12400 #. type: =head2
12401 #: ../fish/guestfish-actions.pod:3767
12402 msgid "pread"
12403 msgstr ""
12404
12405 #. type: verbatim
12406 #: ../fish/guestfish-actions.pod:3769
12407 #, no-wrap
12408 msgid ""
12409 " pread path count offset\n"
12410 "\n"
12411 msgstr ""
12412
12413 #. type: textblock
12414 #: ../fish/guestfish-actions.pod:3771 ../src/guestfs-actions.pod:5749
12415 msgid ""
12416 "This command lets you read part of a file.  It reads C<count> bytes of the "
12417 "file, starting at C<offset>, from file C<path>."
12418 msgstr ""
12419
12420 #. type: textblock
12421 #: ../fish/guestfish-actions.pod:3774 ../fish/guestfish-actions.pod:3789
12422 #: ../src/guestfs-actions.pod:5752 ../src/guestfs-actions.pod:5778
12423 msgid ""
12424 "This may read fewer bytes than requested.  For further details see the "
12425 "L<pread(2)> system call."
12426 msgstr ""
12427
12428 #. type: textblock
12429 #: ../fish/guestfish-actions.pod:3777
12430 msgid "See also L</pwrite>, L</pread-device>."
12431 msgstr ""
12432
12433 #. type: =head2
12434 #: ../fish/guestfish-actions.pod:3782
12435 msgid "pread-device"
12436 msgstr ""
12437
12438 #. type: verbatim
12439 #: ../fish/guestfish-actions.pod:3784
12440 #, no-wrap
12441 msgid ""
12442 " pread-device device count offset\n"
12443 "\n"
12444 msgstr ""
12445
12446 #. type: textblock
12447 #: ../fish/guestfish-actions.pod:3786 ../src/guestfs-actions.pod:5775
12448 msgid ""
12449 "This command lets you read part of a file.  It reads C<count> bytes of "
12450 "C<device>, starting at C<offset>."
12451 msgstr ""
12452
12453 #. type: textblock
12454 #: ../fish/guestfish-actions.pod:3792
12455 msgid "See also L</pread>."
12456 msgstr ""
12457
12458 #. type: =head2
12459 #: ../fish/guestfish-actions.pod:3797
12460 msgid "pvcreate"
12461 msgstr ""
12462
12463 #. type: verbatim
12464 #: ../fish/guestfish-actions.pod:3799
12465 #, no-wrap
12466 msgid ""
12467 " pvcreate device\n"
12468 "\n"
12469 msgstr ""
12470
12471 #. type: textblock
12472 #: ../fish/guestfish-actions.pod:3801 ../src/guestfs-actions.pod:5798
12473 msgid ""
12474 "This creates an LVM physical volume on the named C<device>, where C<device> "
12475 "should usually be a partition name such as C</dev/sda1>."
12476 msgstr ""
12477
12478 #. type: =head2
12479 #: ../fish/guestfish-actions.pod:3805
12480 msgid "pvremove"
12481 msgstr ""
12482
12483 #. type: verbatim
12484 #: ../fish/guestfish-actions.pod:3807
12485 #, no-wrap
12486 msgid ""
12487 " pvremove device\n"
12488 "\n"
12489 msgstr ""
12490
12491 #. type: textblock
12492 #: ../fish/guestfish-actions.pod:3809 ../src/guestfs-actions.pod:5812
12493 msgid ""
12494 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12495 "it."
12496 msgstr ""
12497
12498 #. type: textblock
12499 #: ../fish/guestfish-actions.pod:3812 ../src/guestfs-actions.pod:5815
12500 msgid ""
12501 "The implementation uses the C<pvremove> command which refuses to wipe "
12502 "physical volumes that contain any volume groups, so you have to remove those "
12503 "first."
12504 msgstr ""
12505
12506 #. type: =head2
12507 #: ../fish/guestfish-actions.pod:3816
12508 msgid "pvresize"
12509 msgstr ""
12510
12511 #. type: verbatim
12512 #: ../fish/guestfish-actions.pod:3818
12513 #, no-wrap
12514 msgid ""
12515 " pvresize device\n"
12516 "\n"
12517 msgstr ""
12518
12519 #. type: textblock
12520 #: ../fish/guestfish-actions.pod:3820 ../src/guestfs-actions.pod:5829
12521 msgid ""
12522 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12523 "the new size of the underlying device."
12524 msgstr ""
12525
12526 #. type: =head2
12527 #: ../fish/guestfish-actions.pod:3823
12528 msgid "pvresize-size"
12529 msgstr ""
12530
12531 #. type: verbatim
12532 #: ../fish/guestfish-actions.pod:3825
12533 #, no-wrap
12534 msgid ""
12535 " pvresize-size device size\n"
12536 "\n"
12537 msgstr ""
12538
12539 #. type: textblock
12540 #: ../fish/guestfish-actions.pod:3827
12541 msgid ""
12542 "This command is the same as L</pvresize> except that it allows you to "
12543 "specify the new size (in bytes) explicitly."
12544 msgstr ""
12545
12546 #. type: =head2
12547 #: ../fish/guestfish-actions.pod:3830
12548 msgid "pvs"
12549 msgstr ""
12550
12551 #. type: verbatim
12552 #: ../fish/guestfish-actions.pod:3832
12553 #, no-wrap
12554 msgid ""
12555 " pvs\n"
12556 "\n"
12557 msgstr ""
12558
12559 #. type: textblock
12560 #: ../fish/guestfish-actions.pod:3834 ../src/guestfs-actions.pod:5855
12561 msgid ""
12562 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12563 "(8)> command."
12564 msgstr ""
12565
12566 #. type: textblock
12567 #: ../fish/guestfish-actions.pod:3837 ../src/guestfs-actions.pod:5858
12568 msgid ""
12569 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12570 "sda2>)."
12571 msgstr ""
12572
12573 #. type: textblock
12574 #: ../fish/guestfish-actions.pod:3840
12575 msgid "See also L</pvs-full>."
12576 msgstr ""
12577
12578 #. type: =head2
12579 #: ../fish/guestfish-actions.pod:3842
12580 msgid "pvs-full"
12581 msgstr ""
12582
12583 #. type: verbatim
12584 #: ../fish/guestfish-actions.pod:3844
12585 #, no-wrap
12586 msgid ""
12587 " pvs-full\n"
12588 "\n"
12589 msgstr ""
12590
12591 #. type: textblock
12592 #: ../fish/guestfish-actions.pod:3846 ../src/guestfs-actions.pod:5874
12593 msgid ""
12594 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12595 "(8)> command.  The \"full\" version includes all fields."
12596 msgstr ""
12597
12598 #. type: =head2
12599 #: ../fish/guestfish-actions.pod:3849
12600 msgid "pvuuid"
12601 msgstr ""
12602
12603 #. type: verbatim
12604 #: ../fish/guestfish-actions.pod:3851
12605 #, no-wrap
12606 msgid ""
12607 " pvuuid device\n"
12608 "\n"
12609 msgstr ""
12610
12611 #. type: textblock
12612 #: ../fish/guestfish-actions.pod:3853 ../src/guestfs-actions.pod:5889
12613 msgid "This command returns the UUID of the LVM PV C<device>."
12614 msgstr ""
12615
12616 #. type: =head2
12617 #: ../fish/guestfish-actions.pod:3855
12618 msgid "pwrite"
12619 msgstr ""
12620
12621 #. type: verbatim
12622 #: ../fish/guestfish-actions.pod:3857
12623 #, no-wrap
12624 msgid ""
12625 " pwrite path content offset\n"
12626 "\n"
12627 msgstr ""
12628
12629 #. type: textblock
12630 #: ../fish/guestfish-actions.pod:3859 ../src/guestfs-actions.pod:5905
12631 msgid ""
12632 "This command writes to part of a file.  It writes the data buffer C<content> "
12633 "to the file C<path> starting at offset C<offset>."
12634 msgstr ""
12635
12636 #. type: textblock
12637 #: ../fish/guestfish-actions.pod:3862 ../src/guestfs-actions.pod:5908
12638 msgid ""
12639 "This command implements the L<pwrite(2)> system call, and like that system "
12640 "call it may not write the full data requested.  The return value is the "
12641 "number of bytes that were actually written to the file.  This could even be "
12642 "0, although short writes are unlikely for regular files in ordinary "
12643 "circumstances."
12644 msgstr ""
12645
12646 #. type: textblock
12647 #: ../fish/guestfish-actions.pod:3868
12648 msgid "See also L</pread>, L</pwrite-device>."
12649 msgstr ""
12650
12651 #. type: =head2
12652 #: ../fish/guestfish-actions.pod:3873
12653 msgid "pwrite-device"
12654 msgstr ""
12655
12656 #. type: verbatim
12657 #: ../fish/guestfish-actions.pod:3875
12658 #, no-wrap
12659 msgid ""
12660 " pwrite-device device content offset\n"
12661 "\n"
12662 msgstr ""
12663
12664 #. type: textblock
12665 #: ../fish/guestfish-actions.pod:3877 ../src/guestfs-actions.pod:5932
12666 msgid ""
12667 "This command writes to part of a device.  It writes the data buffer "
12668 "C<content> to C<device> starting at offset C<offset>."
12669 msgstr ""
12670
12671 #. type: textblock
12672 #: ../fish/guestfish-actions.pod:3880 ../src/guestfs-actions.pod:5935
12673 msgid ""
12674 "This command implements the L<pwrite(2)> system call, and like that system "
12675 "call it may not write the full data requested (although short writes to disk "
12676 "devices and partitions are probably impossible with standard Linux kernels)."
12677 msgstr ""
12678
12679 #. type: textblock
12680 #: ../fish/guestfish-actions.pod:3885
12681 msgid "See also L</pwrite>."
12682 msgstr ""
12683
12684 #. type: =head2
12685 #: ../fish/guestfish-actions.pod:3890
12686 msgid "read-file"
12687 msgstr ""
12688
12689 #. type: verbatim
12690 #: ../fish/guestfish-actions.pod:3892
12691 #, no-wrap
12692 msgid ""
12693 " read-file path\n"
12694 "\n"
12695 msgstr ""
12696
12697 #. type: textblock
12698 #: ../fish/guestfish-actions.pod:3894 ../src/guestfs-actions.pod:5956
12699 msgid "This calls returns the contents of the file C<path> as a buffer."
12700 msgstr ""
12701
12702 #. type: textblock
12703 #: ../fish/guestfish-actions.pod:3897
12704 msgid ""
12705 "Unlike L</cat>, this function can correctly handle files that contain "
12706 "embedded ASCII NUL characters.  However unlike L</download>, this function "
12707 "is limited in the total size of file that can be handled."
12708 msgstr ""
12709
12710 #. type: =head2
12711 #: ../fish/guestfish-actions.pod:3905
12712 msgid "read-lines"
12713 msgstr ""
12714
12715 #. type: verbatim
12716 #: ../fish/guestfish-actions.pod:3907
12717 #, no-wrap
12718 msgid ""
12719 " read-lines path\n"
12720 "\n"
12721 msgstr ""
12722
12723 #. type: textblock
12724 #: ../fish/guestfish-actions.pod:3911 ../src/guestfs-actions.pod:5981
12725 msgid ""
12726 "The file contents are returned as a list of lines.  Trailing C<LF> and "
12727 "C<CRLF> character sequences are I<not> returned."
12728 msgstr ""
12729
12730 #. type: textblock
12731 #: ../fish/guestfish-actions.pod:3914
12732 msgid ""
12733 "Note that this function cannot correctly handle binary files (specifically, "
12734 "files containing C<\\0> character which is treated as end of line).  For "
12735 "those you need to use the L</read-file> function which has a more complex "
12736 "interface."
12737 msgstr ""
12738
12739 #. type: =head2
12740 #: ../fish/guestfish-actions.pod:3919
12741 msgid "readdir"
12742 msgstr ""
12743
12744 #. type: verbatim
12745 #: ../fish/guestfish-actions.pod:3921
12746 #, no-wrap
12747 msgid ""
12748 " readdir dir\n"
12749 "\n"
12750 msgstr ""
12751
12752 #. type: textblock
12753 #: ../fish/guestfish-actions.pod:3923 ../src/guestfs-actions.pod:6001
12754 msgid "This returns the list of directory entries in directory C<dir>."
12755 msgstr ""
12756
12757 #. type: textblock
12758 #: ../fish/guestfish-actions.pod:3925 ../src/guestfs-actions.pod:6003
12759 msgid ""
12760 "All entries in the directory are returned, including C<.> and C<..>.  The "
12761 "entries are I<not> sorted, but returned in the same order as the underlying "
12762 "filesystem."
12763 msgstr ""
12764
12765 #. type: textblock
12766 #: ../fish/guestfish-actions.pod:3929 ../src/guestfs-actions.pod:6007
12767 msgid ""
12768 "Also this call returns basic file type information about each file.  The "
12769 "C<ftyp> field will contain one of the following characters:"
12770 msgstr ""
12771
12772 #. type: =item
12773 #: ../fish/guestfish-actions.pod:3934 ../src/guestfs-actions.pod:6012
12774 msgid "'b'"
12775 msgstr ""
12776
12777 #. type: textblock
12778 #: ../fish/guestfish-actions.pod:3936 ../src/guestfs-actions.pod:6014
12779 msgid "Block special"
12780 msgstr ""
12781
12782 #. type: =item
12783 #: ../fish/guestfish-actions.pod:3938 ../src/guestfs-actions.pod:6016
12784 msgid "'c'"
12785 msgstr ""
12786
12787 #. type: textblock
12788 #: ../fish/guestfish-actions.pod:3940 ../src/guestfs-actions.pod:6018
12789 msgid "Char special"
12790 msgstr ""
12791
12792 #. type: =item
12793 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:6020
12794 msgid "'d'"
12795 msgstr ""
12796
12797 #. type: textblock
12798 #: ../fish/guestfish-actions.pod:3944 ../src/guestfs-actions.pod:6022
12799 msgid "Directory"
12800 msgstr ""
12801
12802 #. type: =item
12803 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:6024
12804 msgid "'f'"
12805 msgstr ""
12806
12807 #. type: textblock
12808 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6026
12809 msgid "FIFO (named pipe)"
12810 msgstr ""
12811
12812 #. type: =item
12813 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:6028
12814 msgid "'l'"
12815 msgstr ""
12816
12817 #. type: textblock
12818 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6030
12819 msgid "Symbolic link"
12820 msgstr ""
12821
12822 #. type: =item
12823 #: ../fish/guestfish-actions.pod:3954 ../src/guestfs-actions.pod:6032
12824 msgid "'r'"
12825 msgstr ""
12826
12827 #. type: textblock
12828 #: ../fish/guestfish-actions.pod:3956 ../src/guestfs-actions.pod:6034
12829 msgid "Regular file"
12830 msgstr ""
12831
12832 #. type: =item
12833 #: ../fish/guestfish-actions.pod:3958 ../src/guestfs-actions.pod:6036
12834 msgid "'s'"
12835 msgstr ""
12836
12837 #. type: textblock
12838 #: ../fish/guestfish-actions.pod:3960 ../src/guestfs-actions.pod:6038
12839 msgid "Socket"
12840 msgstr ""
12841
12842 #. type: =item
12843 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6040
12844 msgid "'u'"
12845 msgstr ""
12846
12847 #. type: textblock
12848 #: ../fish/guestfish-actions.pod:3964 ../src/guestfs-actions.pod:6042
12849 msgid "Unknown file type"
12850 msgstr ""
12851
12852 #. type: =item
12853 #: ../fish/guestfish-actions.pod:3966 ../src/guestfs-actions.pod:6044
12854 msgid "'?'"
12855 msgstr ""
12856
12857 #. type: textblock
12858 #: ../fish/guestfish-actions.pod:3968 ../src/guestfs-actions.pod:6046
12859 msgid ""
12860 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
12861 msgstr ""
12862
12863 #. type: textblock
12864 #: ../fish/guestfish-actions.pod:3973
12865 msgid ""
12866 "This function is primarily intended for use by programs.  To get a simple "
12867 "list of names, use L</ls>.  To get a printable directory for human "
12868 "consumption, use L</ll>."
12869 msgstr ""
12870
12871 #. type: =head2
12872 #: ../fish/guestfish-actions.pod:3977
12873 msgid "readlink"
12874 msgstr ""
12875
12876 #. type: verbatim
12877 #: ../fish/guestfish-actions.pod:3979
12878 #, no-wrap
12879 msgid ""
12880 " readlink path\n"
12881 "\n"
12882 msgstr ""
12883
12884 #. type: textblock
12885 #: ../fish/guestfish-actions.pod:3981 ../src/guestfs-actions.pod:6067
12886 msgid "This command reads the target of a symbolic link."
12887 msgstr ""
12888
12889 #. type: =head2
12890 #: ../fish/guestfish-actions.pod:3983
12891 msgid "readlinklist"
12892 msgstr ""
12893
12894 #. type: verbatim
12895 #: ../fish/guestfish-actions.pod:3985
12896 #, no-wrap
12897 msgid ""
12898 " readlinklist path 'names ...'\n"
12899 "\n"
12900 msgstr ""
12901
12902 #. type: textblock
12903 #: ../fish/guestfish-actions.pod:3987 ../src/guestfs-actions.pod:6081
12904 msgid ""
12905 "This call allows you to do a C<readlink> operation on multiple files, where "
12906 "all files are in the directory C<path>.  C<names> is the list of files from "
12907 "this directory."
12908 msgstr ""
12909
12910 #. type: textblock
12911 #: ../fish/guestfish-actions.pod:3991 ../src/guestfs-actions.pod:6085
12912 msgid ""
12913 "On return you get a list of strings, with a one-to-one correspondence to the "
12914 "C<names> list.  Each string is the value of the symbolic link."
12915 msgstr ""
12916
12917 #. type: textblock
12918 #: ../fish/guestfish-actions.pod:3995 ../src/guestfs-actions.pod:6089
12919 msgid ""
12920 "If the C<readlink(2)> operation fails on any name, then the corresponding "
12921 "result string is the empty string C<\"\">.  However the whole operation is "
12922 "completed even if there were C<readlink(2)> errors, and so you can call this "
12923 "function with names where you don't know if they are symbolic links already "
12924 "(albeit slightly less efficient)."
12925 msgstr ""
12926
12927 #. type: textblock
12928 #: ../fish/guestfish-actions.pod:4002 ../src/guestfs-actions.pod:6096
12929 msgid ""
12930 "This call is intended for programs that want to efficiently list a directory "
12931 "contents without making many round-trips.  Very long directory listings "
12932 "might cause the protocol message size to be exceeded, causing this call to "
12933 "fail.  The caller must split up such requests into smaller groups of names."
12934 msgstr ""
12935
12936 #. type: =head2
12937 #: ../fish/guestfish-actions.pod:4009
12938 msgid "realpath"
12939 msgstr ""
12940
12941 #. type: verbatim
12942 #: ../fish/guestfish-actions.pod:4011
12943 #, no-wrap
12944 msgid ""
12945 " realpath path\n"
12946 "\n"
12947 msgstr ""
12948
12949 #. type: textblock
12950 #: ../fish/guestfish-actions.pod:4013 ../src/guestfs-actions.pod:6115
12951 msgid ""
12952 "Return the canonicalized absolute pathname of C<path>.  The returned path "
12953 "has no C<.>, C<..> or symbolic link path elements."
12954 msgstr ""
12955
12956 #. type: =head2
12957 #: ../fish/guestfish-actions.pod:4016
12958 msgid "removexattr"
12959 msgstr ""
12960
12961 #. type: verbatim
12962 #: ../fish/guestfish-actions.pod:4018
12963 #, no-wrap
12964 msgid ""
12965 " removexattr xattr path\n"
12966 "\n"
12967 msgstr ""
12968
12969 #. type: textblock
12970 #: ../fish/guestfish-actions.pod:4020 ../src/guestfs-actions.pod:6130
12971 msgid ""
12972 "This call removes the extended attribute named C<xattr> of the file C<path>."
12973 msgstr ""
12974
12975 #. type: textblock
12976 #: ../fish/guestfish-actions.pod:4023
12977 msgid "See also: L</lremovexattr>, L<attr(5)>."
12978 msgstr ""
12979
12980 #. type: =head2
12981 #: ../fish/guestfish-actions.pod:4025
12982 msgid "resize2fs"
12983 msgstr ""
12984
12985 #. type: verbatim
12986 #: ../fish/guestfish-actions.pod:4027
12987 #, no-wrap
12988 msgid ""
12989 " resize2fs device\n"
12990 "\n"
12991 msgstr ""
12992
12993 #. type: textblock
12994 #: ../fish/guestfish-actions.pod:4029 ../src/guestfs-actions.pod:6145
12995 msgid ""
12996 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
12997 "underlying device."
12998 msgstr ""
12999
13000 #. type: textblock
13001 #: ../fish/guestfish-actions.pod:4032
13002 msgid ""
13003 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
13004 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
13005 "gives an error about this and sometimes not.  In any case, it is always safe "
13006 "to call L</e2fsck-f> before calling this function."
13007 msgstr ""
13008
13009 #. type: =head2
13010 #: ../fish/guestfish-actions.pod:4038
13011 msgid "resize2fs-M"
13012 msgstr ""
13013
13014 #. type: verbatim
13015 #: ../fish/guestfish-actions.pod:4040
13016 #, no-wrap
13017 msgid ""
13018 " resize2fs-M device\n"
13019 "\n"
13020 msgstr ""
13021
13022 #. type: textblock
13023 #: ../fish/guestfish-actions.pod:4042
13024 msgid ""
13025 "This command is the same as L</resize2fs>, but the filesystem is resized to "
13026 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
13027 "command."
13028 msgstr ""
13029
13030 #. type: textblock
13031 #: ../fish/guestfish-actions.pod:4046
13032 msgid ""
13033 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
13034 "and read the C<Block size> and C<Block count> values.  These two numbers, "
13035 "multiplied together, give the resulting size of the minimal filesystem in "
13036 "bytes."
13037 msgstr ""
13038
13039 #. type: =head2
13040 #: ../fish/guestfish-actions.pod:4051
13041 msgid "resize2fs-size"
13042 msgstr ""
13043
13044 #. type: verbatim
13045 #: ../fish/guestfish-actions.pod:4053
13046 #, no-wrap
13047 msgid ""
13048 " resize2fs-size device size\n"
13049 "\n"
13050 msgstr ""
13051
13052 #. type: textblock
13053 #: ../fish/guestfish-actions.pod:4055
13054 msgid ""
13055 "This command is the same as L</resize2fs> except that it allows you to "
13056 "specify the new size (in bytes) explicitly."
13057 msgstr ""
13058
13059 #. type: =head2
13060 #: ../fish/guestfish-actions.pod:4058
13061 msgid "rm"
13062 msgstr ""
13063
13064 #. type: verbatim
13065 #: ../fish/guestfish-actions.pod:4060
13066 #, no-wrap
13067 msgid ""
13068 " rm path\n"
13069 "\n"
13070 msgstr ""
13071
13072 #. type: textblock
13073 #: ../fish/guestfish-actions.pod:4062 ../src/guestfs-actions.pod:6197
13074 msgid "Remove the single file C<path>."
13075 msgstr ""
13076
13077 #. type: =head2
13078 #: ../fish/guestfish-actions.pod:4064
13079 msgid "rm-rf"
13080 msgstr ""
13081
13082 #. type: verbatim
13083 #: ../fish/guestfish-actions.pod:4066
13084 #, no-wrap
13085 msgid ""
13086 " rm-rf path\n"
13087 "\n"
13088 msgstr ""
13089
13090 #. type: textblock
13091 #: ../fish/guestfish-actions.pod:4068 ../src/guestfs-actions.pod:6209
13092 msgid ""
13093 "Remove the file or directory C<path>, recursively removing the contents if "
13094 "its a directory.  This is like the C<rm -rf> shell command."
13095 msgstr ""
13096
13097 #. type: =head2
13098 #: ../fish/guestfish-actions.pod:4072
13099 msgid "rmdir"
13100 msgstr ""
13101
13102 #. type: verbatim
13103 #: ../fish/guestfish-actions.pod:4074
13104 #, no-wrap
13105 msgid ""
13106 " rmdir path\n"
13107 "\n"
13108 msgstr ""
13109
13110 #. type: textblock
13111 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6223
13112 msgid "Remove the single directory C<path>."
13113 msgstr ""
13114
13115 #. type: =head2
13116 #: ../fish/guestfish-actions.pod:4078
13117 msgid "rmmountpoint"
13118 msgstr ""
13119
13120 #. type: verbatim
13121 #: ../fish/guestfish-actions.pod:4080
13122 #, no-wrap
13123 msgid ""
13124 " rmmountpoint exemptpath\n"
13125 "\n"
13126 msgstr ""
13127
13128 #. type: textblock
13129 #: ../fish/guestfish-actions.pod:4082
13130 msgid ""
13131 "This calls removes a mountpoint that was previously created with L</"
13132 "mkmountpoint>.  See L</mkmountpoint> for full details."
13133 msgstr ""
13134
13135 #. type: =head2
13136 #: ../fish/guestfish-actions.pod:4086
13137 msgid "scrub-device"
13138 msgstr ""
13139
13140 #. type: verbatim
13141 #: ../fish/guestfish-actions.pod:4088
13142 #, no-wrap
13143 msgid ""
13144 " scrub-device device\n"
13145 "\n"
13146 msgstr ""
13147
13148 #. type: textblock
13149 #: ../fish/guestfish-actions.pod:4090 ../src/guestfs-actions.pod:6249
13150 msgid ""
13151 "This command writes patterns over C<device> to make data retrieval more "
13152 "difficult."
13153 msgstr ""
13154
13155 #. type: textblock
13156 #: ../fish/guestfish-actions.pod:4093 ../fish/guestfish-actions.pod:4108
13157 #: ../fish/guestfish-actions.pod:4121 ../src/guestfs-actions.pod:6252
13158 #: ../src/guestfs-actions.pod:6273 ../src/guestfs-actions.pod:6292
13159 msgid ""
13160 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13161 "more details."
13162 msgstr ""
13163
13164 #. type: =head2
13165 #: ../fish/guestfish-actions.pod:4099
13166 msgid "scrub-file"
13167 msgstr ""
13168
13169 #. type: verbatim
13170 #: ../fish/guestfish-actions.pod:4101
13171 #, no-wrap
13172 msgid ""
13173 " scrub-file file\n"
13174 "\n"
13175 msgstr ""
13176
13177 #. type: textblock
13178 #: ../fish/guestfish-actions.pod:4103 ../src/guestfs-actions.pod:6268
13179 msgid ""
13180 "This command writes patterns over a file to make data retrieval more "
13181 "difficult."
13182 msgstr ""
13183
13184 #. type: textblock
13185 #: ../fish/guestfish-actions.pod:4106 ../src/guestfs-actions.pod:6271
13186 msgid "The file is I<removed> after scrubbing."
13187 msgstr ""
13188
13189 #. type: =head2
13190 #: ../fish/guestfish-actions.pod:4111
13191 msgid "scrub-freespace"
13192 msgstr ""
13193
13194 #. type: verbatim
13195 #: ../fish/guestfish-actions.pod:4113
13196 #, no-wrap
13197 msgid ""
13198 " scrub-freespace dir\n"
13199 "\n"
13200 msgstr ""
13201
13202 #. type: textblock
13203 #: ../fish/guestfish-actions.pod:4115
13204 msgid ""
13205 "This command creates the directory C<dir> and then fills it with files until "
13206 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
13207 "deletes them.  The intention is to scrub any free space on the partition "
13208 "containing C<dir>."
13209 msgstr ""
13210
13211 #. type: =head2
13212 #: ../fish/guestfish-actions.pod:4124
13213 msgid "set-append"
13214 msgstr ""
13215
13216 #. type: =head2
13217 #: ../fish/guestfish-actions.pod:4126
13218 msgid "append"
13219 msgstr ""
13220
13221 #. type: verbatim
13222 #: ../fish/guestfish-actions.pod:4128
13223 #, no-wrap
13224 msgid ""
13225 " set-append append\n"
13226 "\n"
13227 msgstr ""
13228
13229 #. type: textblock
13230 #: ../fish/guestfish-actions.pod:4130 ../src/guestfs-actions.pod:6305
13231 msgid ""
13232 "This function is used to add additional options to the guest kernel command "
13233 "line."
13234 msgstr ""
13235
13236 #. type: textblock
13237 #: ../fish/guestfish-actions.pod:4133 ../src/guestfs-actions.pod:6308
13238 msgid ""
13239 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13240 "environment variable."
13241 msgstr ""
13242
13243 #. type: textblock
13244 #: ../fish/guestfish-actions.pod:4136 ../src/guestfs-actions.pod:6311
13245 msgid ""
13246 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13247 "(libguestfs always adds a few of its own)."
13248 msgstr ""
13249
13250 #. type: =head2
13251 #: ../fish/guestfish-actions.pod:4139
13252 msgid "set-attach-method"
13253 msgstr ""
13254
13255 #. type: =head2
13256 #: ../fish/guestfish-actions.pod:4141
13257 msgid "attach-method"
13258 msgstr ""
13259
13260 #. type: verbatim
13261 #: ../fish/guestfish-actions.pod:4143
13262 #, no-wrap
13263 msgid ""
13264 " set-attach-method attachmethod\n"
13265 "\n"
13266 msgstr ""
13267
13268 #. type: textblock
13269 #: ../fish/guestfish-actions.pod:4145 ../src/guestfs-actions.pod:6324
13270 msgid ""
13271 "Set the method that libguestfs uses to connect to the back end guestfsd "
13272 "daemon.  Possible methods are:"
13273 msgstr ""
13274
13275 #. type: =item
13276 #: ../fish/guestfish-actions.pod:4150 ../src/guestfs-actions.pod:6329
13277 #: ../src/guestfs.pod:2823
13278 msgid "C<appliance>"
13279 msgstr ""
13280
13281 #. type: textblock
13282 #: ../fish/guestfish-actions.pod:4152 ../src/guestfs-actions.pod:6331
13283 msgid ""
13284 "Launch an appliance and connect to it.  This is the ordinary method and the "
13285 "default."
13286 msgstr ""
13287
13288 #. type: =item
13289 #: ../fish/guestfish-actions.pod:4155 ../src/guestfs-actions.pod:6334
13290 msgid "C<unix:I<path>>"
13291 msgstr ""
13292
13293 #. type: textblock
13294 #: ../fish/guestfish-actions.pod:4157 ../src/guestfs-actions.pod:6336
13295 msgid "Connect to the Unix domain socket I<path>."
13296 msgstr ""
13297
13298 #. type: textblock
13299 #: ../fish/guestfish-actions.pod:4159 ../src/guestfs-actions.pod:6338
13300 msgid ""
13301 "This method lets you connect to an existing daemon or (using virtio-serial) "
13302 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
13303 "RUNNING DAEMONS>."
13304 msgstr ""
13305
13306 #. type: =head2
13307 #: ../fish/guestfish-actions.pod:4165
13308 msgid "set-autosync"
13309 msgstr ""
13310
13311 #. type: =head2
13312 #: ../fish/guestfish-actions.pod:4167
13313 msgid "autosync"
13314 msgstr ""
13315
13316 #. type: verbatim
13317 #: ../fish/guestfish-actions.pod:4169
13318 #, no-wrap
13319 msgid ""
13320 " set-autosync true|false\n"
13321 "\n"
13322 msgstr ""
13323
13324 #. type: textblock
13325 #: ../fish/guestfish-actions.pod:4171 ../src/guestfs-actions.pod:6354
13326 msgid ""
13327 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13328 "effort attempt to make filesystems consistent and synchronized when the "
13329 "handle is closed (also if the program exits without closing handles)."
13330 msgstr ""
13331
13332 #. type: textblock
13333 #: ../fish/guestfish-actions.pod:4176 ../src/guestfs-actions.pod:6359
13334 msgid ""
13335 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13336 "disabled by default)."
13337 msgstr ""
13338
13339 #. type: =head2
13340 #: ../fish/guestfish-actions.pod:4179
13341 msgid "set-direct"
13342 msgstr ""
13343
13344 #. type: =head2
13345 #: ../fish/guestfish-actions.pod:4181
13346 msgid "direct"
13347 msgstr ""
13348
13349 #. type: verbatim
13350 #: ../fish/guestfish-actions.pod:4183
13351 #, no-wrap
13352 msgid ""
13353 " set-direct true|false\n"
13354 "\n"
13355 msgstr ""
13356
13357 #. type: textblock
13358 #: ../fish/guestfish-actions.pod:4185 ../src/guestfs-actions.pod:6372
13359 msgid ""
13360 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13361 "passed directly through to the appliance once it is launched."
13362 msgstr ""
13363
13364 #. type: textblock
13365 #: ../fish/guestfish-actions.pod:4189
13366 msgid ""
13367 "One consequence of this is that log messages aren't caught by the library "
13368 "and handled by L</set-log-message-callback>, but go straight to stdout."
13369 msgstr ""
13370
13371 #. type: textblock
13372 #: ../fish/guestfish-actions.pod:4193 ../src/guestfs-actions.pod:6380
13373 msgid "You probably don't want to use this unless you know what you are doing."
13374 msgstr ""
13375
13376 #. type: textblock
13377 #: ../fish/guestfish-actions.pod:4196 ../src/guestfs-actions.pod:6383
13378 msgid "The default is disabled."
13379 msgstr ""
13380
13381 #. type: =head2
13382 #: ../fish/guestfish-actions.pod:4198
13383 msgid "set-e2label"
13384 msgstr ""
13385
13386 #. type: verbatim
13387 #: ../fish/guestfish-actions.pod:4200
13388 #, no-wrap
13389 msgid ""
13390 " set-e2label device label\n"
13391 "\n"
13392 msgstr ""
13393
13394 #. type: textblock
13395 #: ../fish/guestfish-actions.pod:4202 ../src/guestfs-actions.pod:6396
13396 msgid ""
13397 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13398 "C<label>.  Filesystem labels are limited to 16 characters."
13399 msgstr ""
13400
13401 #. type: textblock
13402 #: ../fish/guestfish-actions.pod:4206
13403 msgid ""
13404 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
13405 "label on a filesystem."
13406 msgstr ""
13407
13408 #. type: =head2
13409 #: ../fish/guestfish-actions.pod:4209
13410 msgid "set-e2uuid"
13411 msgstr ""
13412
13413 #. type: verbatim
13414 #: ../fish/guestfish-actions.pod:4211
13415 #, no-wrap
13416 msgid ""
13417 " set-e2uuid device uuid\n"
13418 "\n"
13419 msgstr ""
13420
13421 #. type: textblock
13422 #: ../fish/guestfish-actions.pod:4213 ../src/guestfs-actions.pod:6414
13423 msgid ""
13424 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13425 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13426 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13427 msgstr ""
13428
13429 #. type: textblock
13430 #: ../fish/guestfish-actions.pod:4218
13431 msgid ""
13432 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
13433 "UUID of a filesystem."
13434 msgstr ""
13435
13436 #. type: =head2
13437 #: ../fish/guestfish-actions.pod:4221
13438 msgid "set-memsize"
13439 msgstr ""
13440
13441 #. type: =head2
13442 #: ../fish/guestfish-actions.pod:4223
13443 msgid "memsize"
13444 msgstr ""
13445
13446 #. type: verbatim
13447 #: ../fish/guestfish-actions.pod:4225
13448 #, no-wrap
13449 msgid ""
13450 " set-memsize memsize\n"
13451 "\n"
13452 msgstr ""
13453
13454 #. type: textblock
13455 #: ../fish/guestfish-actions.pod:4227
13456 msgid ""
13457 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13458 "This only has any effect if called before L</launch>."
13459 msgstr ""
13460
13461 #. type: textblock
13462 #: ../fish/guestfish-actions.pod:4231 ../src/guestfs-actions.pod:6436
13463 msgid ""
13464 "You can also change this by setting the environment variable "
13465 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13466 msgstr ""
13467
13468 #. type: =head2
13469 #: ../fish/guestfish-actions.pod:4238
13470 msgid "set-network"
13471 msgstr ""
13472
13473 #. type: =head2
13474 #: ../fish/guestfish-actions.pod:4240
13475 msgid "network"
13476 msgstr ""
13477
13478 #. type: verbatim
13479 #: ../fish/guestfish-actions.pod:4242
13480 #, no-wrap
13481 msgid ""
13482 " set-network true|false\n"
13483 "\n"
13484 msgstr ""
13485
13486 #. type: textblock
13487 #: ../fish/guestfish-actions.pod:4244 ../src/guestfs-actions.pod:6453
13488 msgid ""
13489 "If C<network> is true, then the network is enabled in the libguestfs "
13490 "appliance.  The default is false."
13491 msgstr ""
13492
13493 #. type: textblock
13494 #: ../fish/guestfish-actions.pod:4247 ../src/guestfs-actions.pod:6456
13495 msgid ""
13496 "This affects whether commands are able to access the network (see L<guestfs"
13497 "(3)/RUNNING COMMANDS>)."
13498 msgstr ""
13499
13500 #. type: textblock
13501 #: ../fish/guestfish-actions.pod:4250
13502 msgid ""
13503 "You must call this before calling L</launch>, otherwise it has no effect."
13504 msgstr ""
13505
13506 #. type: =head2
13507 #: ../fish/guestfish-actions.pod:4253
13508 msgid "set-path"
13509 msgstr ""
13510
13511 #. type: verbatim
13512 #: ../fish/guestfish-actions.pod:4257
13513 #, no-wrap
13514 msgid ""
13515 " set-path searchpath\n"
13516 "\n"
13517 msgstr ""
13518
13519 #. type: textblock
13520 #: ../fish/guestfish-actions.pod:4259 ../src/guestfs-actions.pod:6472
13521 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13522 msgstr ""
13523
13524 #. type: textblock
13525 #: ../fish/guestfish-actions.pod:4261 ../src/guestfs-actions.pod:6474
13526 msgid ""
13527 "The default is C<$libdir/guestfs> unless overridden by setting "
13528 "C<LIBGUESTFS_PATH> environment variable."
13529 msgstr ""
13530
13531 #. type: textblock
13532 #: ../fish/guestfish-actions.pod:4264 ../src/guestfs-actions.pod:6477
13533 msgid "Setting C<path> to C<NULL> restores the default path."
13534 msgstr ""
13535
13536 #. type: =head2
13537 #: ../fish/guestfish-actions.pod:4266
13538 msgid "set-pgroup"
13539 msgstr ""
13540
13541 #. type: =head2
13542 #: ../fish/guestfish-actions.pod:4268
13543 msgid "pgroup"
13544 msgstr ""
13545
13546 #. type: verbatim
13547 #: ../fish/guestfish-actions.pod:4270
13548 #, no-wrap
13549 msgid ""
13550 " set-pgroup true|false\n"
13551 "\n"
13552 msgstr ""
13553
13554 #. type: textblock
13555 #: ../fish/guestfish-actions.pod:4272 ../src/guestfs-actions.pod:6489
13556 msgid ""
13557 "If C<pgroup> is true, child processes are placed into their own process "
13558 "group."
13559 msgstr ""
13560
13561 #. type: textblock
13562 #: ../fish/guestfish-actions.pod:4275 ../src/guestfs-actions.pod:6492
13563 msgid ""
13564 "The practical upshot of this is that signals like C<SIGINT> (from users "
13565 "pressing C<^C>) won't be received by the child process."
13566 msgstr ""
13567
13568 #. type: textblock
13569 #: ../fish/guestfish-actions.pod:4278 ../src/guestfs-actions.pod:6495
13570 msgid ""
13571 "The default for this flag is false, because usually you want C<^C> to kill "
13572 "the subprocess."
13573 msgstr ""
13574
13575 #. type: =head2
13576 #: ../fish/guestfish-actions.pod:4281
13577 msgid "set-qemu"
13578 msgstr ""
13579
13580 #. type: =head2
13581 #: ../fish/guestfish-actions.pod:4283
13582 msgid "qemu"
13583 msgstr ""
13584
13585 #. type: verbatim
13586 #: ../fish/guestfish-actions.pod:4285
13587 #, no-wrap
13588 msgid ""
13589 " set-qemu qemu\n"
13590 "\n"
13591 msgstr ""
13592
13593 #. type: textblock
13594 #: ../fish/guestfish-actions.pod:4287 ../src/guestfs-actions.pod:6508
13595 msgid "Set the qemu binary that we will use."
13596 msgstr ""
13597
13598 #. type: textblock
13599 #: ../fish/guestfish-actions.pod:4289 ../src/guestfs-actions.pod:6510
13600 msgid ""
13601 "The default is chosen when the library was compiled by the configure script."
13602 msgstr ""
13603
13604 #. type: textblock
13605 #: ../fish/guestfish-actions.pod:4292 ../src/guestfs-actions.pod:6513
13606 msgid ""
13607 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13608 "variable."
13609 msgstr ""
13610
13611 #. type: textblock
13612 #: ../fish/guestfish-actions.pod:4295 ../src/guestfs-actions.pod:6516
13613 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13614 msgstr ""
13615
13616 #. type: textblock
13617 #: ../fish/guestfish-actions.pod:4297 ../src/guestfs-actions.pod:6518
13618 msgid ""
13619 "Note that you should call this function as early as possible after creating "
13620 "the handle.  This is because some pre-launch operations depend on testing "
13621 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13622 "don't retest features, and so you might see inconsistent results.  Using the "
13623 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13624 "the qemu binary at the same time as the handle is created."
13625 msgstr ""
13626
13627 #. type: =head2
13628 #: ../fish/guestfish-actions.pod:4305
13629 msgid "set-recovery-proc"
13630 msgstr ""
13631
13632 #. type: =head2
13633 #: ../fish/guestfish-actions.pod:4307
13634 msgid "recovery-proc"
13635 msgstr ""
13636
13637 #. type: verbatim
13638 #: ../fish/guestfish-actions.pod:4309
13639 #, no-wrap
13640 msgid ""
13641 " set-recovery-proc true|false\n"
13642 "\n"
13643 msgstr ""
13644
13645 #. type: textblock
13646 #: ../fish/guestfish-actions.pod:4311
13647 msgid ""
13648 "If this is called with the parameter C<false> then L</launch> does not "
13649 "create a recovery process.  The purpose of the recovery process is to stop "
13650 "runaway qemu processes in the case where the main program aborts abruptly."
13651 msgstr ""
13652
13653 #. type: textblock
13654 #: ../fish/guestfish-actions.pod:4316
13655 msgid ""
13656 "This only has any effect if called before L</launch>, and the default is "
13657 "true."
13658 msgstr ""
13659
13660 #. type: textblock
13661 #: ../fish/guestfish-actions.pod:4319 ../src/guestfs-actions.pod:6544
13662 msgid ""
13663 "About the only time when you would want to disable this is if the main "
13664 "process will fork itself into the background (\"daemonize\" itself).  In "
13665 "this case the recovery process thinks that the main program has disappeared "
13666 "and so kills qemu, which is not very helpful."
13667 msgstr ""
13668
13669 #. type: =head2
13670 #: ../fish/guestfish-actions.pod:4325
13671 msgid "set-selinux"
13672 msgstr ""
13673
13674 #. type: =head2
13675 #: ../fish/guestfish-actions.pod:4327
13676 msgid "selinux"
13677 msgstr ""
13678
13679 #. type: verbatim
13680 #: ../fish/guestfish-actions.pod:4329
13681 #, no-wrap
13682 msgid ""
13683 " set-selinux true|false\n"
13684 "\n"
13685 msgstr ""
13686
13687 #. type: textblock
13688 #: ../fish/guestfish-actions.pod:4331 ../src/guestfs-actions.pod:6560
13689 msgid ""
13690 "This sets the selinux flag that is passed to the appliance at boot time.  "
13691 "The default is C<selinux=0> (disabled)."
13692 msgstr ""
13693
13694 #. type: textblock
13695 #: ../fish/guestfish-actions.pod:4334 ../src/guestfs-actions.pod:6563
13696 msgid ""
13697 "Note that if SELinux is enabled, it is always in Permissive mode "
13698 "(C<enforcing=0>)."
13699 msgstr ""
13700
13701 #. type: =head2
13702 #: ../fish/guestfish-actions.pod:4340
13703 msgid "set-smp"
13704 msgstr ""
13705
13706 #. type: =head2
13707 #: ../fish/guestfish-actions.pod:4342
13708 msgid "smp"
13709 msgstr ""
13710
13711 #. type: verbatim
13712 #: ../fish/guestfish-actions.pod:4344
13713 #, no-wrap
13714 msgid ""
13715 " set-smp smp\n"
13716 "\n"
13717 msgstr ""
13718
13719 #. type: textblock
13720 #: ../fish/guestfish-actions.pod:4346 ../src/guestfs-actions.pod:6579
13721 msgid ""
13722 "Change the number of virtual CPUs assigned to the appliance.  The default is "
13723 "C<1>.  Increasing this may improve performance, though often it has no "
13724 "effect."
13725 msgstr ""
13726
13727 #. type: textblock
13728 #: ../fish/guestfish-actions.pod:4350
13729 msgid "This function must be called before L</launch>."
13730 msgstr ""
13731
13732 #. type: =head2
13733 #: ../fish/guestfish-actions.pod:4352
13734 msgid "set-trace"
13735 msgstr ""
13736
13737 #. type: =head2
13738 #: ../fish/guestfish-actions.pod:4354
13739 msgid "trace"
13740 msgstr ""
13741
13742 #. type: verbatim
13743 #: ../fish/guestfish-actions.pod:4356
13744 #, no-wrap
13745 msgid ""
13746 " set-trace true|false\n"
13747 "\n"
13748 msgstr ""
13749
13750 #. type: textblock
13751 #: ../fish/guestfish-actions.pod:4358 ../src/guestfs-actions.pod:6593
13752 msgid ""
13753 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
13754 "return values are traced."
13755 msgstr ""
13756
13757 #. type: textblock
13758 #: ../fish/guestfish-actions.pod:4361 ../src/guestfs-actions.pod:6596
13759 msgid ""
13760 "If you want to trace C API calls into libguestfs (and other libraries) then "
13761 "possibly a better way is to use the external ltrace(1) command."
13762 msgstr ""
13763
13764 #. type: textblock
13765 #: ../fish/guestfish-actions.pod:4365 ../src/guestfs-actions.pod:6600
13766 msgid ""
13767 "Command traces are disabled unless the environment variable "
13768 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
13769 msgstr ""
13770
13771 #. type: textblock
13772 #: ../fish/guestfish-actions.pod:4368
13773 msgid ""
13774 "Trace messages are normally sent to C<stderr>, unless you register a "
13775 "callback to send them somewhere else (see L</set-event-callback>)."
13776 msgstr ""
13777
13778 #. type: =head2
13779 #: ../fish/guestfish-actions.pod:4372
13780 msgid "set-verbose"
13781 msgstr ""
13782
13783 #. type: =head2
13784 #: ../fish/guestfish-actions.pod:4374
13785 msgid "verbose"
13786 msgstr ""
13787
13788 #. type: verbatim
13789 #: ../fish/guestfish-actions.pod:4376
13790 #, no-wrap
13791 msgid ""
13792 " set-verbose true|false\n"
13793 "\n"
13794 msgstr ""
13795
13796 #. type: textblock
13797 #: ../fish/guestfish-actions.pod:4378 ../src/guestfs-actions.pod:6617
13798 msgid "If C<verbose> is true, this turns on verbose messages."
13799 msgstr ""
13800
13801 #. type: textblock
13802 #: ../fish/guestfish-actions.pod:4380 ../src/guestfs-actions.pod:6619
13803 msgid ""
13804 "Verbose messages are disabled unless the environment variable "
13805 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
13806 msgstr ""
13807
13808 #. type: textblock
13809 #: ../fish/guestfish-actions.pod:4383
13810 msgid ""
13811 "Verbose messages are normally sent to C<stderr>, unless you register a "
13812 "callback to send them somewhere else (see L</set-event-callback>)."
13813 msgstr ""
13814
13815 #. type: =head2
13816 #: ../fish/guestfish-actions.pod:4387
13817 msgid "setcon"
13818 msgstr ""
13819
13820 #. type: verbatim
13821 #: ../fish/guestfish-actions.pod:4389
13822 #, no-wrap
13823 msgid ""
13824 " setcon context\n"
13825 "\n"
13826 msgstr ""
13827
13828 #. type: textblock
13829 #: ../fish/guestfish-actions.pod:4391 ../src/guestfs-actions.pod:6636
13830 msgid ""
13831 "This sets the SELinux security context of the daemon to the string "
13832 "C<context>."
13833 msgstr ""
13834
13835 #. type: textblock
13836 #: ../fish/guestfish-actions.pod:4394 ../src/guestfs-actions.pod:6639
13837 msgid "See the documentation about SELINUX in L<guestfs(3)>."
13838 msgstr ""
13839
13840 #. type: =head2
13841 #: ../fish/guestfish-actions.pod:4396
13842 msgid "setxattr"
13843 msgstr ""
13844
13845 #. type: verbatim
13846 #: ../fish/guestfish-actions.pod:4398
13847 #, no-wrap
13848 msgid ""
13849 " setxattr xattr val vallen path\n"
13850 "\n"
13851 msgstr ""
13852
13853 #. type: textblock
13854 #: ../fish/guestfish-actions.pod:4400 ../src/guestfs-actions.pod:6654
13855 msgid ""
13856 "This call sets the extended attribute named C<xattr> of the file C<path> to "
13857 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
13858 msgstr ""
13859
13860 #. type: textblock
13861 #: ../fish/guestfish-actions.pod:4404
13862 msgid "See also: L</lsetxattr>, L<attr(5)>."
13863 msgstr ""
13864
13865 #. type: =head2
13866 #: ../fish/guestfish-actions.pod:4406
13867 msgid "sfdisk"
13868 msgstr ""
13869
13870 #. type: verbatim
13871 #: ../fish/guestfish-actions.pod:4408
13872 #, no-wrap
13873 msgid ""
13874 " sfdisk device cyls heads sectors 'lines ...'\n"
13875 "\n"
13876 msgstr ""
13877
13878 #. type: textblock
13879 #: ../fish/guestfish-actions.pod:4410 ../src/guestfs-actions.pod:6681
13880 msgid ""
13881 "This is a direct interface to the L<sfdisk(8)> program for creating "
13882 "partitions on block devices."
13883 msgstr ""
13884
13885 #. type: textblock
13886 #: ../fish/guestfish-actions.pod:4413 ../src/guestfs-actions.pod:6684
13887 msgid "C<device> should be a block device, for example C</dev/sda>."
13888 msgstr ""
13889
13890 #. type: textblock
13891 #: ../fish/guestfish-actions.pod:4415 ../src/guestfs-actions.pod:6686
13892 msgid ""
13893 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
13894 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
13895 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
13896 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
13897 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
13898 "the kernel) cannot work out the right geometry and you will need to tell it."
13899 msgstr ""
13900
13901 #. type: textblock
13902 #: ../fish/guestfish-actions.pod:4423 ../src/guestfs-actions.pod:6694
13903 msgid ""
13904 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
13905 "refer to the L<sfdisk(8)> manpage."
13906 msgstr ""
13907
13908 #. type: textblock
13909 #: ../fish/guestfish-actions.pod:4426 ../src/guestfs-actions.pod:6697
13910 msgid ""
13911 "To create a single partition occupying the whole disk, you would pass "
13912 "C<lines> as a single element list, when the single element being the string "
13913 "C<,> (comma)."
13914 msgstr ""
13915
13916 #. type: textblock
13917 #: ../fish/guestfish-actions.pod:4430
13918 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
13919 msgstr ""
13920
13921 #. type: textblock
13922 #: ../fish/guestfish-actions.pod:4436 ../fish/guestfish-actions.pod:4459
13923 #: ../fish/guestfish-actions.pod:4481
13924 msgid ""
13925 "I<This function is deprecated.> In new code, use the L</part_add> call "
13926 "instead."
13927 msgstr ""
13928
13929 #. type: =head2
13930 #: ../fish/guestfish-actions.pod:4443
13931 msgid "sfdiskM"
13932 msgstr ""
13933
13934 #. type: verbatim
13935 #: ../fish/guestfish-actions.pod:4445
13936 #, no-wrap
13937 msgid ""
13938 " sfdiskM device 'lines ...'\n"
13939 "\n"
13940 msgstr ""
13941
13942 #. type: textblock
13943 #: ../fish/guestfish-actions.pod:4447
13944 msgid ""
13945 "This is a simplified interface to the L</sfdisk> command, where partition "
13946 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
13947 "you don't need to specify the cyls, heads and sectors parameters which were "
13948 "rarely if ever used anyway."
13949 msgstr ""
13950
13951 #. type: textblock
13952 #: ../fish/guestfish-actions.pod:4453
13953 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
13954 msgstr ""
13955
13956 #. type: =head2
13957 #: ../fish/guestfish-actions.pod:4466
13958 msgid "sfdisk-N"
13959 msgstr ""
13960
13961 #. type: verbatim
13962 #: ../fish/guestfish-actions.pod:4468
13963 #, no-wrap
13964 msgid ""
13965 " sfdisk-N device partnum cyls heads sectors line\n"
13966 "\n"
13967 msgstr ""
13968
13969 #. type: textblock
13970 #: ../fish/guestfish-actions.pod:4470 ../src/guestfs-actions.pod:6759
13971 msgid ""
13972 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
13973 "(note: C<n> counts from 1)."
13974 msgstr ""
13975
13976 #. type: textblock
13977 #: ../fish/guestfish-actions.pod:4473
13978 msgid ""
13979 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
13980 "cyls/heads/sectors parameters."
13981 msgstr ""
13982
13983 #. type: textblock
13984 #: ../fish/guestfish-actions.pod:4476
13985 msgid "See also: L</part-add>"
13986 msgstr ""
13987
13988 #. type: =head2
13989 #: ../fish/guestfish-actions.pod:4488
13990 msgid "sfdisk-disk-geometry"
13991 msgstr ""
13992
13993 #. type: verbatim
13994 #: ../fish/guestfish-actions.pod:4490
13995 #, no-wrap
13996 msgid ""
13997 " sfdisk-disk-geometry device\n"
13998 "\n"
13999 msgstr ""
14000
14001 #. type: textblock
14002 #: ../fish/guestfish-actions.pod:4492
14003 msgid ""
14004 "This displays the disk geometry of C<device> read from the partition table.  "
14005 "Especially in the case where the underlying block device has been resized, "
14006 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
14007 "kernel-geometry>)."
14008 msgstr ""
14009
14010 #. type: textblock
14011 #: ../fish/guestfish-actions.pod:4497 ../fish/guestfish-actions.pod:4506
14012 #: ../src/guestfs-actions.pod:6785 ../src/guestfs-actions.pod:6801
14013 msgid "The result is in human-readable format, and not designed to be parsed."
14014 msgstr ""
14015
14016 #. type: =head2
14017 #: ../fish/guestfish-actions.pod:4500
14018 msgid "sfdisk-kernel-geometry"
14019 msgstr ""
14020
14021 #. type: verbatim
14022 #: ../fish/guestfish-actions.pod:4502
14023 #, no-wrap
14024 msgid ""
14025 " sfdisk-kernel-geometry device\n"
14026 "\n"
14027 msgstr ""
14028
14029 #. type: textblock
14030 #: ../fish/guestfish-actions.pod:4504 ../src/guestfs-actions.pod:6799
14031 msgid "This displays the kernel's idea of the geometry of C<device>."
14032 msgstr ""
14033
14034 #. type: =head2
14035 #: ../fish/guestfish-actions.pod:4509
14036 msgid "sfdisk-l"
14037 msgstr ""
14038
14039 #. type: verbatim
14040 #: ../fish/guestfish-actions.pod:4511
14041 #, no-wrap
14042 msgid ""
14043 " sfdisk-l device\n"
14044 "\n"
14045 msgstr ""
14046
14047 #. type: textblock
14048 #: ../fish/guestfish-actions.pod:4513 ../src/guestfs-actions.pod:6822
14049 msgid ""
14050 "This displays the partition table on C<device>, in the human-readable output "
14051 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
14052 msgstr ""
14053
14054 #. type: textblock
14055 #: ../fish/guestfish-actions.pod:4517
14056 msgid "See also: L</part-list>"
14057 msgstr ""
14058
14059 #. type: textblock
14060 #: ../fish/guestfish-actions.pod:4519
14061 msgid ""
14062 "I<This function is deprecated.> In new code, use the L</part_list> call "
14063 "instead."
14064 msgstr ""
14065
14066 #. type: =head2
14067 #: ../fish/guestfish-actions.pod:4526
14068 msgid "sh"
14069 msgstr ""
14070
14071 #. type: verbatim
14072 #: ../fish/guestfish-actions.pod:4528
14073 #, no-wrap
14074 msgid ""
14075 " sh command\n"
14076 "\n"
14077 msgstr ""
14078
14079 #. type: textblock
14080 #: ../fish/guestfish-actions.pod:4530 ../src/guestfs-actions.pod:6839
14081 msgid ""
14082 "This call runs a command from the guest filesystem via the guest's C</bin/"
14083 "sh>."
14084 msgstr ""
14085
14086 #. type: textblock
14087 #: ../fish/guestfish-actions.pod:4533
14088 msgid "This is like L</command>, but passes the command to:"
14089 msgstr ""
14090
14091 #. type: verbatim
14092 #: ../fish/guestfish-actions.pod:4535 ../src/guestfs-actions.pod:6844
14093 #, no-wrap
14094 msgid ""
14095 " /bin/sh -c \"command\"\n"
14096 "\n"
14097 msgstr ""
14098
14099 #. type: textblock
14100 #: ../fish/guestfish-actions.pod:4537 ../src/guestfs-actions.pod:6846
14101 msgid ""
14102 "Depending on the guest's shell, this usually results in wildcards being "
14103 "expanded, shell expressions being interpolated and so on."
14104 msgstr ""
14105
14106 #. type: textblock
14107 #: ../fish/guestfish-actions.pod:4541
14108 msgid "All the provisos about L</command> apply to this call."
14109 msgstr ""
14110
14111 #. type: =head2
14112 #: ../fish/guestfish-actions.pod:4543
14113 msgid "sh-lines"
14114 msgstr ""
14115
14116 #. type: verbatim
14117 #: ../fish/guestfish-actions.pod:4545
14118 #, no-wrap
14119 msgid ""
14120 " sh-lines command\n"
14121 "\n"
14122 msgstr ""
14123
14124 #. type: textblock
14125 #: ../fish/guestfish-actions.pod:4547
14126 msgid "This is the same as L</sh>, but splits the result into a list of lines."
14127 msgstr ""
14128
14129 #. type: textblock
14130 #: ../fish/guestfish-actions.pod:4550
14131 msgid "See also: L</command-lines>"
14132 msgstr ""
14133
14134 #. type: =head2
14135 #: ../fish/guestfish-actions.pod:4552
14136 msgid "sleep"
14137 msgstr ""
14138
14139 #. type: verbatim
14140 #: ../fish/guestfish-actions.pod:4554
14141 #, no-wrap
14142 msgid ""
14143 " sleep secs\n"
14144 "\n"
14145 msgstr ""
14146
14147 #. type: textblock
14148 #: ../fish/guestfish-actions.pod:4556 ../src/guestfs-actions.pod:6880
14149 msgid "Sleep for C<secs> seconds."
14150 msgstr ""
14151
14152 #. type: =head2
14153 #: ../fish/guestfish-actions.pod:4558
14154 msgid "stat"
14155 msgstr ""
14156
14157 #. type: verbatim
14158 #: ../fish/guestfish-actions.pod:4560
14159 #, no-wrap
14160 msgid ""
14161 " stat path\n"
14162 "\n"
14163 msgstr ""
14164
14165 #. type: textblock
14166 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:6894
14167 msgid "This is the same as the C<stat(2)> system call."
14168 msgstr ""
14169
14170 #. type: =head2
14171 #: ../fish/guestfish-actions.pod:4566
14172 msgid "statvfs"
14173 msgstr ""
14174
14175 #. type: verbatim
14176 #: ../fish/guestfish-actions.pod:4568
14177 #, no-wrap
14178 msgid ""
14179 " statvfs path\n"
14180 "\n"
14181 msgstr ""
14182
14183 #. type: textblock
14184 #: ../fish/guestfish-actions.pod:4570 ../src/guestfs-actions.pod:6908
14185 msgid ""
14186 "Returns file system statistics for any mounted file system.  C<path> should "
14187 "be a file or directory in the mounted file system (typically it is the mount "
14188 "point itself, but it doesn't need to be)."
14189 msgstr ""
14190
14191 #. type: textblock
14192 #: ../fish/guestfish-actions.pod:4574 ../src/guestfs-actions.pod:6912
14193 msgid "This is the same as the C<statvfs(2)> system call."
14194 msgstr ""
14195
14196 #. type: =head2
14197 #: ../fish/guestfish-actions.pod:4576
14198 msgid "strings"
14199 msgstr ""
14200
14201 #. type: verbatim
14202 #: ../fish/guestfish-actions.pod:4578
14203 #, no-wrap
14204 msgid ""
14205 " strings path\n"
14206 "\n"
14207 msgstr ""
14208
14209 #. type: textblock
14210 #: ../fish/guestfish-actions.pod:4580 ../src/guestfs-actions.pod:6926
14211 msgid ""
14212 "This runs the L<strings(1)> command on a file and returns the list of "
14213 "printable strings found."
14214 msgstr ""
14215
14216 #. type: =head2
14217 #: ../fish/guestfish-actions.pod:4586
14218 msgid "strings-e"
14219 msgstr ""
14220
14221 #. type: verbatim
14222 #: ../fish/guestfish-actions.pod:4588
14223 #, no-wrap
14224 msgid ""
14225 " strings-e encoding path\n"
14226 "\n"
14227 msgstr ""
14228
14229 #. type: textblock
14230 #: ../fish/guestfish-actions.pod:4590
14231 msgid ""
14232 "This is like the L</strings> command, but allows you to specify the encoding "
14233 "of strings that are looked for in the source file C<path>."
14234 msgstr ""
14235
14236 #. type: textblock
14237 #: ../fish/guestfish-actions.pod:4594 ../src/guestfs-actions.pod:6949
14238 msgid "Allowed encodings are:"
14239 msgstr ""
14240
14241 #. type: =item
14242 #: ../fish/guestfish-actions.pod:4598 ../src/guestfs-actions.pod:6953
14243 msgid "s"
14244 msgstr ""
14245
14246 #. type: textblock
14247 #: ../fish/guestfish-actions.pod:4600
14248 msgid ""
14249 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14250 "ISO-8859-X (this is what L</strings> uses)."
14251 msgstr ""
14252
14253 #. type: =item
14254 #: ../fish/guestfish-actions.pod:4603 ../src/guestfs-actions.pod:6958
14255 msgid "S"
14256 msgstr ""
14257
14258 #. type: textblock
14259 #: ../fish/guestfish-actions.pod:4605 ../src/guestfs-actions.pod:6960
14260 msgid "Single 8-bit-byte characters."
14261 msgstr ""
14262
14263 #. type: =item
14264 #: ../fish/guestfish-actions.pod:4607 ../src/guestfs-actions.pod:6962
14265 msgid "b"
14266 msgstr ""
14267
14268 #. type: textblock
14269 #: ../fish/guestfish-actions.pod:4609 ../src/guestfs-actions.pod:6964
14270 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14271 msgstr ""
14272
14273 #. type: =item
14274 #: ../fish/guestfish-actions.pod:4612 ../src/guestfs-actions.pod:6967
14275 msgid "l (lower case letter L)"
14276 msgstr ""
14277
14278 #. type: textblock
14279 #: ../fish/guestfish-actions.pod:4614 ../src/guestfs-actions.pod:6969
14280 msgid ""
14281 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
14282 "examining binaries in Windows guests."
14283 msgstr ""
14284
14285 #. type: =item
14286 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:6972
14287 msgid "B"
14288 msgstr ""
14289
14290 #. type: textblock
14291 #: ../fish/guestfish-actions.pod:4619 ../src/guestfs-actions.pod:6974
14292 msgid "32-bit big endian such as UCS-4BE."
14293 msgstr ""
14294
14295 #. type: =item
14296 #: ../fish/guestfish-actions.pod:4621 ../src/guestfs-actions.pod:6976
14297 msgid "L"
14298 msgstr ""
14299
14300 #. type: textblock
14301 #: ../fish/guestfish-actions.pod:4623 ../src/guestfs-actions.pod:6978
14302 msgid "32-bit little endian such as UCS-4LE."
14303 msgstr ""
14304
14305 #. type: textblock
14306 #: ../fish/guestfish-actions.pod:4627 ../src/guestfs-actions.pod:6982
14307 msgid "The returned strings are transcoded to UTF-8."
14308 msgstr ""
14309
14310 #. type: =head2
14311 #: ../fish/guestfish-actions.pod:4632
14312 msgid "swapoff-device"
14313 msgstr ""
14314
14315 #. type: verbatim
14316 #: ../fish/guestfish-actions.pod:4634
14317 #, no-wrap
14318 msgid ""
14319 " swapoff-device device\n"
14320 "\n"
14321 msgstr ""
14322
14323 #. type: textblock
14324 #: ../fish/guestfish-actions.pod:4636
14325 msgid ""
14326 "This command disables the libguestfs appliance swap device or partition "
14327 "named C<device>.  See L</swapon-device>."
14328 msgstr ""
14329
14330 #. type: =head2
14331 #: ../fish/guestfish-actions.pod:4640
14332 msgid "swapoff-file"
14333 msgstr ""
14334
14335 #. type: verbatim
14336 #: ../fish/guestfish-actions.pod:4642
14337 #, no-wrap
14338 msgid ""
14339 " swapoff-file file\n"
14340 "\n"
14341 msgstr ""
14342
14343 #. type: textblock
14344 #: ../fish/guestfish-actions.pod:4644 ../src/guestfs-actions.pod:7013
14345 msgid "This command disables the libguestfs appliance swap on file."
14346 msgstr ""
14347
14348 #. type: =head2
14349 #: ../fish/guestfish-actions.pod:4646
14350 msgid "swapoff-label"
14351 msgstr ""
14352
14353 #. type: verbatim
14354 #: ../fish/guestfish-actions.pod:4648
14355 #, no-wrap
14356 msgid ""
14357 " swapoff-label label\n"
14358 "\n"
14359 msgstr ""
14360
14361 #. type: textblock
14362 #: ../fish/guestfish-actions.pod:4650 ../src/guestfs-actions.pod:7025
14363 msgid ""
14364 "This command disables the libguestfs appliance swap on labeled swap "
14365 "partition."
14366 msgstr ""
14367
14368 #. type: =head2
14369 #: ../fish/guestfish-actions.pod:4653
14370 msgid "swapoff-uuid"
14371 msgstr ""
14372
14373 #. type: verbatim
14374 #: ../fish/guestfish-actions.pod:4655
14375 #, no-wrap
14376 msgid ""
14377 " swapoff-uuid uuid\n"
14378 "\n"
14379 msgstr ""
14380
14381 #. type: textblock
14382 #: ../fish/guestfish-actions.pod:4657 ../src/guestfs-actions.pod:7038
14383 msgid ""
14384 "This command disables the libguestfs appliance swap partition with the given "
14385 "UUID."
14386 msgstr ""
14387
14388 #. type: =head2
14389 #: ../fish/guestfish-actions.pod:4660
14390 msgid "swapon-device"
14391 msgstr ""
14392
14393 #. type: verbatim
14394 #: ../fish/guestfish-actions.pod:4662
14395 #, no-wrap
14396 msgid ""
14397 " swapon-device device\n"
14398 "\n"
14399 msgstr ""
14400
14401 #. type: textblock
14402 #: ../fish/guestfish-actions.pod:4664
14403 msgid ""
14404 "This command enables the libguestfs appliance to use the swap device or "
14405 "partition named C<device>.  The increased memory is made available for all "
14406 "commands, for example those run using L</command> or L</sh>."
14407 msgstr ""
14408
14409 #. type: textblock
14410 #: ../fish/guestfish-actions.pod:4669 ../src/guestfs-actions.pod:7056
14411 msgid ""
14412 "Note that you should not swap to existing guest swap partitions unless you "
14413 "know what you are doing.  They may contain hibernation information, or other "
14414 "information that the guest doesn't want you to trash.  You also risk leaking "
14415 "information about the host to the guest this way.  Instead, attach a new "
14416 "host device to the guest and swap on that."
14417 msgstr ""
14418
14419 #. type: =head2
14420 #: ../fish/guestfish-actions.pod:4676
14421 msgid "swapon-file"
14422 msgstr ""
14423
14424 #. type: verbatim
14425 #: ../fish/guestfish-actions.pod:4678
14426 #, no-wrap
14427 msgid ""
14428 " swapon-file file\n"
14429 "\n"
14430 msgstr ""
14431
14432 #. type: textblock
14433 #: ../fish/guestfish-actions.pod:4680
14434 msgid ""
14435 "This command enables swap to a file.  See L</swapon-device> for other notes."
14436 msgstr ""
14437
14438 #. type: =head2
14439 #: ../fish/guestfish-actions.pod:4683
14440 msgid "swapon-label"
14441 msgstr ""
14442
14443 #. type: verbatim
14444 #: ../fish/guestfish-actions.pod:4685
14445 #, no-wrap
14446 msgid ""
14447 " swapon-label label\n"
14448 "\n"
14449 msgstr ""
14450
14451 #. type: textblock
14452 #: ../fish/guestfish-actions.pod:4687
14453 msgid ""
14454 "This command enables swap to a labeled swap partition.  See L</swapon-"
14455 "device> for other notes."
14456 msgstr ""
14457
14458 #. type: =head2
14459 #: ../fish/guestfish-actions.pod:4690
14460 msgid "swapon-uuid"
14461 msgstr ""
14462
14463 #. type: verbatim
14464 #: ../fish/guestfish-actions.pod:4692
14465 #, no-wrap
14466 msgid ""
14467 " swapon-uuid uuid\n"
14468 "\n"
14469 msgstr ""
14470
14471 #. type: textblock
14472 #: ../fish/guestfish-actions.pod:4694
14473 msgid ""
14474 "This command enables swap to a swap partition with the given UUID.  See L</"
14475 "swapon-device> for other notes."
14476 msgstr ""
14477
14478 #. type: =head2
14479 #: ../fish/guestfish-actions.pod:4697
14480 msgid "sync"
14481 msgstr ""
14482
14483 #. type: verbatim
14484 #: ../fish/guestfish-actions.pod:4699
14485 #, no-wrap
14486 msgid ""
14487 " sync\n"
14488 "\n"
14489 msgstr ""
14490
14491 #. type: textblock
14492 #: ../fish/guestfish-actions.pod:4701 ../src/guestfs-actions.pod:7111
14493 msgid ""
14494 "This syncs the disk, so that any writes are flushed through to the "
14495 "underlying disk image."
14496 msgstr ""
14497
14498 #. type: textblock
14499 #: ../fish/guestfish-actions.pod:4704 ../src/guestfs-actions.pod:7114
14500 msgid ""
14501 "You should always call this if you have modified a disk image, before "
14502 "closing the handle."
14503 msgstr ""
14504
14505 #. type: =head2
14506 #: ../fish/guestfish-actions.pod:4707
14507 msgid "tail"
14508 msgstr ""
14509
14510 #. type: verbatim
14511 #: ../fish/guestfish-actions.pod:4709
14512 #, no-wrap
14513 msgid ""
14514 " tail path\n"
14515 "\n"
14516 msgstr ""
14517
14518 #. type: textblock
14519 #: ../fish/guestfish-actions.pod:4711 ../src/guestfs-actions.pod:7127
14520 msgid ""
14521 "This command returns up to the last 10 lines of a file as a list of strings."
14522 msgstr ""
14523
14524 #. type: =head2
14525 #: ../fish/guestfish-actions.pod:4717
14526 msgid "tail-n"
14527 msgstr ""
14528
14529 #. type: verbatim
14530 #: ../fish/guestfish-actions.pod:4719
14531 #, no-wrap
14532 msgid ""
14533 " tail-n nrlines path\n"
14534 "\n"
14535 msgstr ""
14536
14537 #. type: textblock
14538 #: ../fish/guestfish-actions.pod:4721 ../src/guestfs-actions.pod:7146
14539 msgid ""
14540 "If the parameter C<nrlines> is a positive number, this returns the last "
14541 "C<nrlines> lines of the file C<path>."
14542 msgstr ""
14543
14544 #. type: textblock
14545 #: ../fish/guestfish-actions.pod:4724 ../src/guestfs-actions.pod:7149
14546 msgid ""
14547 "If the parameter C<nrlines> is a negative number, this returns lines from "
14548 "the file C<path>, starting with the C<-nrlines>th line."
14549 msgstr ""
14550
14551 #. type: =head2
14552 #: ../fish/guestfish-actions.pod:4732
14553 msgid "tar-in"
14554 msgstr ""
14555
14556 #. type: verbatim
14557 #: ../fish/guestfish-actions.pod:4734
14558 #, no-wrap
14559 msgid ""
14560 " tar-in (tarfile|-) directory\n"
14561 "\n"
14562 msgstr ""
14563
14564 #. type: textblock
14565 #: ../fish/guestfish-actions.pod:4736 ../src/guestfs-actions.pod:7170
14566 msgid ""
14567 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14568 "tar file) into C<directory>."
14569 msgstr ""
14570
14571 #. type: textblock
14572 #: ../fish/guestfish-actions.pod:4739
14573 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
14574 msgstr ""
14575
14576 #. type: =head2
14577 #: ../fish/guestfish-actions.pod:4744
14578 msgid "tar-out"
14579 msgstr ""
14580
14581 #. type: verbatim
14582 #: ../fish/guestfish-actions.pod:4746
14583 #, no-wrap
14584 msgid ""
14585 " tar-out directory (tarfile|-)\n"
14586 "\n"
14587 msgstr ""
14588
14589 #. type: textblock
14590 #: ../fish/guestfish-actions.pod:4748 ../src/guestfs-actions.pod:7187
14591 msgid ""
14592 "This command packs the contents of C<directory> and downloads it to local "
14593 "file C<tarfile>."
14594 msgstr ""
14595
14596 #. type: textblock
14597 #: ../fish/guestfish-actions.pod:4751
14598 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
14599 msgstr ""
14600
14601 #. type: =head2
14602 #: ../fish/guestfish-actions.pod:4756
14603 msgid "tgz-in"
14604 msgstr ""
14605
14606 #. type: verbatim
14607 #: ../fish/guestfish-actions.pod:4758
14608 #, no-wrap
14609 msgid ""
14610 " tgz-in (tarball|-) directory\n"
14611 "\n"
14612 msgstr ""
14613
14614 #. type: textblock
14615 #: ../fish/guestfish-actions.pod:4760 ../src/guestfs-actions.pod:7204
14616 msgid ""
14617 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14618 "tar file) into C<directory>."
14619 msgstr ""
14620
14621 #. type: textblock
14622 #: ../fish/guestfish-actions.pod:4763
14623 msgid "To upload an uncompressed tarball, use L</tar-in>."
14624 msgstr ""
14625
14626 #. type: =head2
14627 #: ../fish/guestfish-actions.pod:4767
14628 msgid "tgz-out"
14629 msgstr ""
14630
14631 #. type: verbatim
14632 #: ../fish/guestfish-actions.pod:4769
14633 #, no-wrap
14634 msgid ""
14635 " tgz-out directory (tarball|-)\n"
14636 "\n"
14637 msgstr ""
14638
14639 #. type: textblock
14640 #: ../fish/guestfish-actions.pod:4771 ../src/guestfs-actions.pod:7220
14641 msgid ""
14642 "This command packs the contents of C<directory> and downloads it to local "
14643 "file C<tarball>."
14644 msgstr ""
14645
14646 #. type: textblock
14647 #: ../fish/guestfish-actions.pod:4774
14648 msgid "To download an uncompressed tarball, use L</tar-out>."
14649 msgstr ""
14650
14651 #. type: =head2
14652 #: ../fish/guestfish-actions.pod:4778
14653 msgid "touch"
14654 msgstr ""
14655
14656 #. type: verbatim
14657 #: ../fish/guestfish-actions.pod:4780
14658 #, no-wrap
14659 msgid ""
14660 " touch path\n"
14661 "\n"
14662 msgstr ""
14663
14664 #. type: textblock
14665 #: ../fish/guestfish-actions.pod:4782 ../src/guestfs-actions.pod:7235
14666 msgid ""
14667 "Touch acts like the L<touch(1)> command.  It can be used to update the "
14668 "timestamps on a file, or, if the file does not exist, to create a new zero-"
14669 "length file."
14670 msgstr ""
14671
14672 #. type: textblock
14673 #: ../fish/guestfish-actions.pod:4786 ../src/guestfs-actions.pod:7239
14674 msgid ""
14675 "This command only works on regular files, and will fail on other file types "
14676 "such as directories, symbolic links, block special etc."
14677 msgstr ""
14678
14679 #. type: =head2
14680 #: ../fish/guestfish-actions.pod:4789
14681 msgid "truncate"
14682 msgstr ""
14683
14684 #. type: verbatim
14685 #: ../fish/guestfish-actions.pod:4791
14686 #, no-wrap
14687 msgid ""
14688 " truncate path\n"
14689 "\n"
14690 msgstr ""
14691
14692 #. type: textblock
14693 #: ../fish/guestfish-actions.pod:4793 ../src/guestfs-actions.pod:7252
14694 msgid ""
14695 "This command truncates C<path> to a zero-length file.  The file must exist "
14696 "already."
14697 msgstr ""
14698
14699 #. type: =head2
14700 #: ../fish/guestfish-actions.pod:4796
14701 msgid "truncate-size"
14702 msgstr ""
14703
14704 #. type: verbatim
14705 #: ../fish/guestfish-actions.pod:4798
14706 #, no-wrap
14707 msgid ""
14708 " truncate-size path size\n"
14709 "\n"
14710 msgstr ""
14711
14712 #. type: textblock
14713 #: ../fish/guestfish-actions.pod:4800 ../src/guestfs-actions.pod:7266
14714 msgid ""
14715 "This command truncates C<path> to size C<size> bytes.  The file must exist "
14716 "already."
14717 msgstr ""
14718
14719 #. type: textblock
14720 #: ../fish/guestfish-actions.pod:4803
14721 msgid ""
14722 "If the current file size is less than C<size> then the file is extended to "
14723 "the required size with zero bytes.  This creates a sparse file (ie. disk "
14724 "blocks are not allocated for the file until you write to it).  To create a "
14725 "non-sparse file of zeroes, use L</fallocate64> instead."
14726 msgstr ""
14727
14728 #. type: =head2
14729 #: ../fish/guestfish-actions.pod:4809
14730 msgid "tune2fs-l"
14731 msgstr ""
14732
14733 #. type: verbatim
14734 #: ../fish/guestfish-actions.pod:4811
14735 #, no-wrap
14736 msgid ""
14737 " tune2fs-l device\n"
14738 "\n"
14739 msgstr ""
14740
14741 #. type: textblock
14742 #: ../fish/guestfish-actions.pod:4813 ../src/guestfs-actions.pod:7285
14743 msgid ""
14744 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
14745 "C<device>."
14746 msgstr ""
14747
14748 #. type: textblock
14749 #: ../fish/guestfish-actions.pod:4816 ../src/guestfs-actions.pod:7288
14750 msgid ""
14751 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
14752 "for more details.  The list of fields returned isn't clearly defined, and "
14753 "depends on both the version of C<tune2fs> that libguestfs was built against, "
14754 "and the filesystem itself."
14755 msgstr ""
14756
14757 #. type: =head2
14758 #: ../fish/guestfish-actions.pod:4821
14759 msgid "txz-in"
14760 msgstr ""
14761
14762 #. type: verbatim
14763 #: ../fish/guestfish-actions.pod:4823
14764 #, no-wrap
14765 msgid ""
14766 " txz-in (tarball|-) directory\n"
14767 "\n"
14768 msgstr ""
14769
14770 #. type: textblock
14771 #: ../fish/guestfish-actions.pod:4825 ../src/guestfs-actions.pod:7308
14772 msgid ""
14773 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
14774 "tar file) into C<directory>."
14775 msgstr ""
14776
14777 #. type: =head2
14778 #: ../fish/guestfish-actions.pod:4830
14779 msgid "txz-out"
14780 msgstr ""
14781
14782 #. type: verbatim
14783 #: ../fish/guestfish-actions.pod:4832
14784 #, no-wrap
14785 msgid ""
14786 " txz-out directory (tarball|-)\n"
14787 "\n"
14788 msgstr ""
14789
14790 #. type: textblock
14791 #: ../fish/guestfish-actions.pod:4834 ../src/guestfs-actions.pod:7322
14792 msgid ""
14793 "This command packs the contents of C<directory> and downloads it to local "
14794 "file C<tarball> (as an xz compressed tar archive)."
14795 msgstr ""
14796
14797 #. type: =head2
14798 #: ../fish/guestfish-actions.pod:4839
14799 msgid "umask"
14800 msgstr ""
14801
14802 #. type: verbatim
14803 #: ../fish/guestfish-actions.pod:4841
14804 #, no-wrap
14805 msgid ""
14806 " umask mask\n"
14807 "\n"
14808 msgstr ""
14809
14810 #. type: textblock
14811 #: ../fish/guestfish-actions.pod:4843 ../src/guestfs-actions.pod:7335
14812 msgid ""
14813 "This function sets the mask used for creating new files and device nodes to "
14814 "C<mask & 0777>."
14815 msgstr ""
14816
14817 #. type: textblock
14818 #: ../fish/guestfish-actions.pod:4846 ../src/guestfs-actions.pod:7338
14819 msgid ""
14820 "Typical umask values would be C<022> which creates new files with "
14821 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
14822 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
14823 msgstr ""
14824
14825 #. type: textblock
14826 #: ../fish/guestfish-actions.pod:4851 ../src/guestfs-actions.pod:7343
14827 msgid ""
14828 "The default umask is C<022>.  This is important because it means that "
14829 "directories and device nodes will be created with C<0644> or C<0755> mode "
14830 "even if you specify C<0777>."
14831 msgstr ""
14832
14833 #. type: textblock
14834 #: ../fish/guestfish-actions.pod:4855
14835 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
14836 msgstr ""
14837
14838 #. type: textblock
14839 #: ../fish/guestfish-actions.pod:4858 ../src/guestfs-actions.pod:7350
14840 msgid "This call returns the previous umask."
14841 msgstr ""
14842
14843 #. type: =head2
14844 #: ../fish/guestfish-actions.pod:4860
14845 msgid "umount"
14846 msgstr ""
14847
14848 #. type: =head2
14849 #: ../fish/guestfish-actions.pod:4862
14850 msgid "unmount"
14851 msgstr ""
14852
14853 #. type: verbatim
14854 #: ../fish/guestfish-actions.pod:4864
14855 #, no-wrap
14856 msgid ""
14857 " umount pathordevice\n"
14858 "\n"
14859 msgstr ""
14860
14861 #. type: textblock
14862 #: ../fish/guestfish-actions.pod:4866 ../src/guestfs-actions.pod:7362
14863 msgid ""
14864 "This unmounts the given filesystem.  The filesystem may be specified either "
14865 "by its mountpoint (path) or the device which contains the filesystem."
14866 msgstr ""
14867
14868 #. type: =head2
14869 #: ../fish/guestfish-actions.pod:4870
14870 msgid "umount-all"
14871 msgstr ""
14872
14873 #. type: =head2
14874 #: ../fish/guestfish-actions.pod:4872
14875 msgid "unmount-all"
14876 msgstr ""
14877
14878 #. type: verbatim
14879 #: ../fish/guestfish-actions.pod:4874
14880 #, no-wrap
14881 msgid ""
14882 " umount-all\n"
14883 "\n"
14884 msgstr ""
14885
14886 #. type: textblock
14887 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7375
14888 msgid "This unmounts all mounted filesystems."
14889 msgstr ""
14890
14891 #. type: textblock
14892 #: ../fish/guestfish-actions.pod:4878 ../src/guestfs-actions.pod:7377
14893 msgid "Some internal mounts are not unmounted by this call."
14894 msgstr ""
14895
14896 #. type: =head2
14897 #: ../fish/guestfish-actions.pod:4880
14898 msgid "upload"
14899 msgstr ""
14900
14901 #. type: verbatim
14902 #: ../fish/guestfish-actions.pod:4882
14903 #, no-wrap
14904 msgid ""
14905 " upload (filename|-) remotefilename\n"
14906 "\n"
14907 msgstr ""
14908
14909 #. type: textblock
14910 #: ../fish/guestfish-actions.pod:4884 ../fish/guestfish-actions.pod:4897
14911 #: ../src/guestfs-actions.pod:7390 ../src/guestfs-actions.pod:7414
14912 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
14913 msgstr ""
14914
14915 #. type: textblock
14916 #: ../fish/guestfish-actions.pod:4889
14917 msgid "See also L</download>."
14918 msgstr ""
14919
14920 #. type: =head2
14921 #: ../fish/guestfish-actions.pod:4893
14922 msgid "upload-offset"
14923 msgstr ""
14924
14925 #. type: verbatim
14926 #: ../fish/guestfish-actions.pod:4895
14927 #, no-wrap
14928 msgid ""
14929 " upload-offset (filename|-) remotefilename offset\n"
14930 "\n"
14931 msgstr ""
14932
14933 #. type: textblock
14934 #: ../fish/guestfish-actions.pod:4900 ../src/guestfs-actions.pod:7417
14935 msgid ""
14936 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
14937 "The intention is to overwrite parts of existing files or devices, although "
14938 "if a non-existant file is specified then it is created with a \"hole\" "
14939 "before C<offset>.  The size of the data written is implicit in the size of "
14940 "the source C<filename>."
14941 msgstr ""
14942
14943 #. type: textblock
14944 #: ../fish/guestfish-actions.pod:4907
14945 msgid ""
14946 "Note that there is no limit on the amount of data that can be uploaded with "
14947 "this call, unlike with L</pwrite>, and this call always writes the full "
14948 "amount unless an error occurs."
14949 msgstr ""
14950
14951 #. type: textblock
14952 #: ../fish/guestfish-actions.pod:4912
14953 msgid "See also L</upload>, L</pwrite>."
14954 msgstr ""
14955
14956 #. type: =head2
14957 #: ../fish/guestfish-actions.pod:4916
14958 msgid "utimens"
14959 msgstr ""
14960
14961 #. type: verbatim
14962 #: ../fish/guestfish-actions.pod:4918
14963 #, no-wrap
14964 msgid ""
14965 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
14966 "\n"
14967 msgstr ""
14968
14969 #. type: textblock
14970 #: ../fish/guestfish-actions.pod:4920 ../src/guestfs-actions.pod:7450
14971 msgid "This command sets the timestamps of a file with nanosecond precision."
14972 msgstr ""
14973
14974 #. type: textblock
14975 #: ../fish/guestfish-actions.pod:4923 ../src/guestfs-actions.pod:7453
14976 msgid ""
14977 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
14978 "from the epoch."
14979 msgstr ""
14980
14981 #. type: textblock
14982 #: ../fish/guestfish-actions.pod:4926 ../src/guestfs-actions.pod:7456
14983 msgid ""
14984 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
14985 "nanoseconds from the epoch."
14986 msgstr ""
14987
14988 #. type: textblock
14989 #: ../fish/guestfish-actions.pod:4929 ../src/guestfs-actions.pod:7459
14990 msgid ""
14991 "If the C<*nsecs> field contains the special value C<-1> then the "
14992 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
14993 "ignored in this case)."
14994 msgstr ""
14995
14996 #. type: textblock
14997 #: ../fish/guestfish-actions.pod:4933 ../src/guestfs-actions.pod:7463
14998 msgid ""
14999 "If the C<*nsecs> field contains the special value C<-2> then the "
15000 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
15001 "in this case)."
15002 msgstr ""
15003
15004 #. type: =head2
15005 #: ../fish/guestfish-actions.pod:4937
15006 msgid "version"
15007 msgstr ""
15008
15009 #. type: verbatim
15010 #: ../fish/guestfish-actions.pod:4939
15011 #, no-wrap
15012 msgid ""
15013 " version\n"
15014 "\n"
15015 msgstr ""
15016
15017 #. type: textblock
15018 #: ../fish/guestfish-actions.pod:4941 ../src/guestfs-actions.pod:7476
15019 msgid ""
15020 "Return the libguestfs version number that the program is linked against."
15021 msgstr ""
15022
15023 #. type: textblock
15024 #: ../fish/guestfish-actions.pod:4944 ../src/guestfs-actions.pod:7479
15025 msgid ""
15026 "Note that because of dynamic linking this is not necessarily the version of "
15027 "libguestfs that you compiled against.  You can compile the program, and then "
15028 "at runtime dynamically link against a completely different C<libguestfs.so> "
15029 "library."
15030 msgstr ""
15031
15032 #. type: textblock
15033 #: ../fish/guestfish-actions.pod:4949 ../src/guestfs-actions.pod:7484
15034 msgid ""
15035 "This call was added in version C<1.0.58>.  In previous versions of "
15036 "libguestfs there was no way to get the version number.  From C code you can "
15037 "use dynamic linker functions to find out if this symbol exists (if it "
15038 "doesn't, then it's an earlier version)."
15039 msgstr ""
15040
15041 #. type: textblock
15042 #: ../fish/guestfish-actions.pod:4955 ../src/guestfs-actions.pod:7490
15043 msgid ""
15044 "The call returns a structure with four elements.  The first three (C<major>, "
15045 "C<minor> and C<release>) are numbers and correspond to the usual version "
15046 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
15047 "but may be used for distro-specific information."
15048 msgstr ""
15049
15050 #. type: textblock
15051 #: ../fish/guestfish-actions.pod:4961 ../src/guestfs-actions.pod:7496
15052 msgid ""
15053 "To construct the original version string: C<$major.$minor.$release$extra>"
15054 msgstr ""
15055
15056 #. type: textblock
15057 #: ../fish/guestfish-actions.pod:4964 ../src/guestfs-actions.pod:7499
15058 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15059 msgstr ""
15060
15061 #. type: textblock
15062 #: ../fish/guestfish-actions.pod:4966
15063 msgid ""
15064 "I<Note:> Don't use this call to test for availability of features.  In "
15065 "enterprise distributions we backport features from later versions into "
15066 "earlier versions, making this an unreliable way to test for features.  Use "
15067 "L</available> instead."
15068 msgstr ""
15069
15070 #. type: =head2
15071 #: ../fish/guestfish-actions.pod:4972
15072 msgid "vfs-label"
15073 msgstr ""
15074
15075 #. type: verbatim
15076 #: ../fish/guestfish-actions.pod:4974
15077 #, no-wrap
15078 msgid ""
15079 " vfs-label device\n"
15080 "\n"
15081 msgstr ""
15082
15083 #. type: textblock
15084 #: ../fish/guestfish-actions.pod:4976 ../src/guestfs-actions.pod:7519
15085 msgid "This returns the filesystem label of the filesystem on C<device>."
15086 msgstr ""
15087
15088 #. type: textblock
15089 #: ../fish/guestfish-actions.pod:4979 ../src/guestfs-actions.pod:7522
15090 msgid "If the filesystem is unlabeled, this returns the empty string."
15091 msgstr ""
15092
15093 #. type: textblock
15094 #: ../fish/guestfish-actions.pod:4981
15095 msgid "To find a filesystem from the label, use L</findfs-label>."
15096 msgstr ""
15097
15098 #. type: =head2
15099 #: ../fish/guestfish-actions.pod:4983
15100 msgid "vfs-type"
15101 msgstr ""
15102
15103 #. type: verbatim
15104 #: ../fish/guestfish-actions.pod:4985
15105 #, no-wrap
15106 msgid ""
15107 " vfs-type device\n"
15108 "\n"
15109 msgstr ""
15110
15111 #. type: textblock
15112 #: ../fish/guestfish-actions.pod:4987 ../src/guestfs-actions.pod:7537
15113 msgid ""
15114 "This command gets the filesystem type corresponding to the filesystem on "
15115 "C<device>."
15116 msgstr ""
15117
15118 #. type: textblock
15119 #: ../fish/guestfish-actions.pod:4990 ../src/guestfs-actions.pod:7540
15120 msgid ""
15121 "For most filesystems, the result is the name of the Linux VFS module which "
15122 "would be used to mount this filesystem if you mounted it without specifying "
15123 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
15124 msgstr ""
15125
15126 #. type: =head2
15127 #: ../fish/guestfish-actions.pod:4995
15128 msgid "vfs-uuid"
15129 msgstr ""
15130
15131 #. type: verbatim
15132 #: ../fish/guestfish-actions.pod:4997
15133 #, no-wrap
15134 msgid ""
15135 " vfs-uuid device\n"
15136 "\n"
15137 msgstr ""
15138
15139 #. type: textblock
15140 #: ../fish/guestfish-actions.pod:4999 ../src/guestfs-actions.pod:7556
15141 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15142 msgstr ""
15143
15144 #. type: textblock
15145 #: ../fish/guestfish-actions.pod:5002 ../src/guestfs-actions.pod:7559
15146 msgid "If the filesystem does not have a UUID, this returns the empty string."
15147 msgstr ""
15148
15149 #. type: textblock
15150 #: ../fish/guestfish-actions.pod:5004
15151 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
15152 msgstr ""
15153
15154 #. type: =head2
15155 #: ../fish/guestfish-actions.pod:5006
15156 msgid "vg-activate"
15157 msgstr ""
15158
15159 #. type: verbatim
15160 #: ../fish/guestfish-actions.pod:5008
15161 #, no-wrap
15162 msgid ""
15163 " vg-activate true|false 'volgroups ...'\n"
15164 "\n"
15165 msgstr ""
15166
15167 #. type: textblock
15168 #: ../fish/guestfish-actions.pod:5010 ../src/guestfs-actions.pod:7575
15169 msgid ""
15170 "This command activates or (if C<activate> is false) deactivates all logical "
15171 "volumes in the listed volume groups C<volgroups>."
15172 msgstr ""
15173
15174 #. type: textblock
15175 #: ../fish/guestfish-actions.pod:5013 ../src/guestfs-actions.pod:7578
15176 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15177 msgstr ""
15178
15179 #. type: textblock
15180 #: ../fish/guestfish-actions.pod:5015 ../src/guestfs-actions.pod:7580
15181 msgid ""
15182 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15183 "activated or deactivated."
15184 msgstr ""
15185
15186 #. type: =head2
15187 #: ../fish/guestfish-actions.pod:5018
15188 msgid "vg-activate-all"
15189 msgstr ""
15190
15191 #. type: verbatim
15192 #: ../fish/guestfish-actions.pod:5020
15193 #, no-wrap
15194 msgid ""
15195 " vg-activate-all true|false\n"
15196 "\n"
15197 msgstr ""
15198
15199 #. type: textblock
15200 #: ../fish/guestfish-actions.pod:5022 ../src/guestfs-actions.pod:7593
15201 msgid ""
15202 "This command activates or (if C<activate> is false) deactivates all logical "
15203 "volumes in all volume groups."
15204 msgstr ""
15205
15206 #. type: textblock
15207 #: ../fish/guestfish-actions.pod:5025 ../src/guestfs-actions.pod:7596
15208 msgid "This command is the same as running C<vgchange -a y|n>"
15209 msgstr ""
15210
15211 #. type: =head2
15212 #: ../fish/guestfish-actions.pod:5027
15213 msgid "vgcreate"
15214 msgstr ""
15215
15216 #. type: verbatim
15217 #: ../fish/guestfish-actions.pod:5029
15218 #, no-wrap
15219 msgid ""
15220 " vgcreate volgroup 'physvols ...'\n"
15221 "\n"
15222 msgstr ""
15223
15224 #. type: textblock
15225 #: ../fish/guestfish-actions.pod:5031 ../src/guestfs-actions.pod:7609
15226 msgid ""
15227 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15228 "of physical volumes C<physvols>."
15229 msgstr ""
15230
15231 #. type: =head2
15232 #: ../fish/guestfish-actions.pod:5034
15233 msgid "vglvuuids"
15234 msgstr ""
15235
15236 #. type: verbatim
15237 #: ../fish/guestfish-actions.pod:5036
15238 #, no-wrap
15239 msgid ""
15240 " vglvuuids vgname\n"
15241 "\n"
15242 msgstr ""
15243
15244 #. type: textblock
15245 #: ../fish/guestfish-actions.pod:5038 ../src/guestfs-actions.pod:7622
15246 msgid ""
15247 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15248 "volumes created in this volume group."
15249 msgstr ""
15250
15251 #. type: textblock
15252 #: ../fish/guestfish-actions.pod:5041
15253 msgid ""
15254 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
15255 "logical volumes and volume groups."
15256 msgstr ""
15257
15258 #. type: textblock
15259 #: ../fish/guestfish-actions.pod:5044
15260 msgid "See also L</vgpvuuids>."
15261 msgstr ""
15262
15263 #. type: =head2
15264 #: ../fish/guestfish-actions.pod:5046
15265 msgid "vgpvuuids"
15266 msgstr ""
15267
15268 #. type: verbatim
15269 #: ../fish/guestfish-actions.pod:5048
15270 #, no-wrap
15271 msgid ""
15272 " vgpvuuids vgname\n"
15273 "\n"
15274 msgstr ""
15275
15276 #. type: textblock
15277 #: ../fish/guestfish-actions.pod:5050 ../src/guestfs-actions.pod:7642
15278 msgid ""
15279 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15280 "volumes that this volume group resides on."
15281 msgstr ""
15282
15283 #. type: textblock
15284 #: ../fish/guestfish-actions.pod:5053
15285 msgid ""
15286 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
15287 "physical volumes and volume groups."
15288 msgstr ""
15289
15290 #. type: textblock
15291 #: ../fish/guestfish-actions.pod:5056
15292 msgid "See also L</vglvuuids>."
15293 msgstr ""
15294
15295 #. type: =head2
15296 #: ../fish/guestfish-actions.pod:5058
15297 msgid "vgremove"
15298 msgstr ""
15299
15300 #. type: verbatim
15301 #: ../fish/guestfish-actions.pod:5060
15302 #, no-wrap
15303 msgid ""
15304 " vgremove vgname\n"
15305 "\n"
15306 msgstr ""
15307
15308 #. type: textblock
15309 #: ../fish/guestfish-actions.pod:5062 ../src/guestfs-actions.pod:7662
15310 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15311 msgstr ""
15312
15313 #. type: textblock
15314 #: ../fish/guestfish-actions.pod:5064 ../src/guestfs-actions.pod:7664
15315 msgid ""
15316 "This also forcibly removes all logical volumes in the volume group (if any)."
15317 msgstr ""
15318
15319 #. type: =head2
15320 #: ../fish/guestfish-actions.pod:5067
15321 msgid "vgrename"
15322 msgstr ""
15323
15324 #. type: verbatim
15325 #: ../fish/guestfish-actions.pod:5069
15326 #, no-wrap
15327 msgid ""
15328 " vgrename volgroup newvolgroup\n"
15329 "\n"
15330 msgstr ""
15331
15332 #. type: textblock
15333 #: ../fish/guestfish-actions.pod:5071 ../src/guestfs-actions.pod:7678
15334 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15335 msgstr ""
15336
15337 #. type: =head2
15338 #: ../fish/guestfish-actions.pod:5073
15339 msgid "vgs"
15340 msgstr ""
15341
15342 #. type: verbatim
15343 #: ../fish/guestfish-actions.pod:5075
15344 #, no-wrap
15345 msgid ""
15346 " vgs\n"
15347 "\n"
15348 msgstr ""
15349
15350 #. type: textblock
15351 #: ../fish/guestfish-actions.pod:5077 ../src/guestfs-actions.pod:7689
15352 msgid ""
15353 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15354 "> command."
15355 msgstr ""
15356
15357 #. type: textblock
15358 #: ../fish/guestfish-actions.pod:5080 ../src/guestfs-actions.pod:7692
15359 msgid ""
15360 "This returns a list of just the volume group names that were detected (eg. "
15361 "C<VolGroup00>)."
15362 msgstr ""
15363
15364 #. type: textblock
15365 #: ../fish/guestfish-actions.pod:5083
15366 msgid "See also L</vgs-full>."
15367 msgstr ""
15368
15369 #. type: =head2
15370 #: ../fish/guestfish-actions.pod:5085
15371 msgid "vgs-full"
15372 msgstr ""
15373
15374 #. type: verbatim
15375 #: ../fish/guestfish-actions.pod:5087
15376 #, no-wrap
15377 msgid ""
15378 " vgs-full\n"
15379 "\n"
15380 msgstr ""
15381
15382 #. type: textblock
15383 #: ../fish/guestfish-actions.pod:5089 ../src/guestfs-actions.pod:7708
15384 msgid ""
15385 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15386 "> command.  The \"full\" version includes all fields."
15387 msgstr ""
15388
15389 #. type: =head2
15390 #: ../fish/guestfish-actions.pod:5092
15391 msgid "vgscan"
15392 msgstr ""
15393
15394 #. type: verbatim
15395 #: ../fish/guestfish-actions.pod:5094
15396 #, no-wrap
15397 msgid ""
15398 " vgscan\n"
15399 "\n"
15400 msgstr ""
15401
15402 #. type: textblock
15403 #: ../fish/guestfish-actions.pod:5096 ../src/guestfs-actions.pod:7722
15404 msgid ""
15405 "This rescans all block devices and rebuilds the list of LVM physical "
15406 "volumes, volume groups and logical volumes."
15407 msgstr ""
15408
15409 #. type: =head2
15410 #: ../fish/guestfish-actions.pod:5099
15411 msgid "vguuid"
15412 msgstr ""
15413
15414 #. type: verbatim
15415 #: ../fish/guestfish-actions.pod:5101
15416 #, no-wrap
15417 msgid ""
15418 " vguuid vgname\n"
15419 "\n"
15420 msgstr ""
15421
15422 #. type: textblock
15423 #: ../fish/guestfish-actions.pod:5103 ../src/guestfs-actions.pod:7735
15424 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15425 msgstr ""
15426
15427 #. type: =head2
15428 #: ../fish/guestfish-actions.pod:5105
15429 msgid "wc-c"
15430 msgstr ""
15431
15432 #. type: verbatim
15433 #: ../fish/guestfish-actions.pod:5107
15434 #, no-wrap
15435 msgid ""
15436 " wc-c path\n"
15437 "\n"
15438 msgstr ""
15439
15440 #. type: textblock
15441 #: ../fish/guestfish-actions.pod:5109 ../src/guestfs-actions.pod:7775
15442 msgid ""
15443 "This command counts the characters in a file, using the C<wc -c> external "
15444 "command."
15445 msgstr ""
15446
15447 #. type: =head2
15448 #: ../fish/guestfish-actions.pod:5112
15449 msgid "wc-l"
15450 msgstr ""
15451
15452 #. type: verbatim
15453 #: ../fish/guestfish-actions.pod:5114
15454 #, no-wrap
15455 msgid ""
15456 " wc-l path\n"
15457 "\n"
15458 msgstr ""
15459
15460 #. type: textblock
15461 #: ../fish/guestfish-actions.pod:5116 ../src/guestfs-actions.pod:7788
15462 msgid ""
15463 "This command counts the lines in a file, using the C<wc -l> external command."
15464 msgstr ""
15465
15466 #. type: =head2
15467 #: ../fish/guestfish-actions.pod:5119
15468 msgid "wc-w"
15469 msgstr ""
15470
15471 #. type: verbatim
15472 #: ../fish/guestfish-actions.pod:5121
15473 #, no-wrap
15474 msgid ""
15475 " wc-w path\n"
15476 "\n"
15477 msgstr ""
15478
15479 #. type: textblock
15480 #: ../fish/guestfish-actions.pod:5123 ../src/guestfs-actions.pod:7801
15481 msgid ""
15482 "This command counts the words in a file, using the C<wc -w> external command."
15483 msgstr ""
15484
15485 #. type: =head2
15486 #: ../fish/guestfish-actions.pod:5126
15487 msgid "write"
15488 msgstr ""
15489
15490 #. type: verbatim
15491 #: ../fish/guestfish-actions.pod:5128
15492 #, no-wrap
15493 msgid ""
15494 " write path content\n"
15495 "\n"
15496 msgstr ""
15497
15498 #. type: textblock
15499 #: ../fish/guestfish-actions.pod:5130 ../src/guestfs-actions.pod:7816
15500 msgid ""
15501 "This call creates a file called C<path>.  The content of the file is the "
15502 "string C<content> (which can contain any 8 bit data)."
15503 msgstr ""
15504
15505 #. type: textblock
15506 #: ../fish/guestfish-actions.pod:5133
15507 msgid "See also L</write-append>."
15508 msgstr ""
15509
15510 #. type: =head2
15511 #: ../fish/guestfish-actions.pod:5138
15512 msgid "write-append"
15513 msgstr ""
15514
15515 #. type: verbatim
15516 #: ../fish/guestfish-actions.pod:5140
15517 #, no-wrap
15518 msgid ""
15519 " write-append path content\n"
15520 "\n"
15521 msgstr ""
15522
15523 #. type: textblock
15524 #: ../fish/guestfish-actions.pod:5142 ../src/guestfs-actions.pod:7836
15525 msgid ""
15526 "This call appends C<content> to the end of file C<path>.  If C<path> does "
15527 "not exist, then a new file is created."
15528 msgstr ""
15529
15530 #. type: textblock
15531 #: ../fish/guestfish-actions.pod:5145
15532 msgid "See also L</write>."
15533 msgstr ""
15534
15535 #. type: =head2
15536 #: ../fish/guestfish-actions.pod:5150
15537 msgid "write-file"
15538 msgstr ""
15539
15540 #. type: verbatim
15541 #: ../fish/guestfish-actions.pod:5152
15542 #, no-wrap
15543 msgid ""
15544 " write-file path content size\n"
15545 "\n"
15546 msgstr ""
15547
15548 #. type: textblock
15549 #: ../fish/guestfish-actions.pod:5154 ../src/guestfs-actions.pod:7863
15550 msgid ""
15551 "This call creates a file called C<path>.  The contents of the file is the "
15552 "string C<content> (which can contain any 8 bit data), with length C<size>."
15553 msgstr ""
15554
15555 #. type: textblock
15556 #: ../fish/guestfish-actions.pod:5158 ../src/guestfs-actions.pod:7867
15557 msgid ""
15558 "As a special case, if C<size> is C<0> then the length is calculated using "
15559 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
15560 msgstr ""
15561
15562 #. type: textblock
15563 #: ../fish/guestfish-actions.pod:5162 ../src/guestfs-actions.pod:7871
15564 msgid ""
15565 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
15566 "I<not> work, even if the length is specified."
15567 msgstr ""
15568
15569 #. type: textblock
15570 #: ../fish/guestfish-actions.pod:5168
15571 msgid ""
15572 "I<This function is deprecated.> In new code, use the L</write> call instead."
15573 msgstr ""
15574
15575 #. type: =head2
15576 #: ../fish/guestfish-actions.pod:5175
15577 msgid "zegrep"
15578 msgstr ""
15579
15580 #. type: verbatim
15581 #: ../fish/guestfish-actions.pod:5177
15582 #, no-wrap
15583 msgid ""
15584 " zegrep regex path\n"
15585 "\n"
15586 msgstr ""
15587
15588 #. type: textblock
15589 #: ../fish/guestfish-actions.pod:5179 ../src/guestfs-actions.pod:7888
15590 msgid ""
15591 "This calls the external C<zegrep> program and returns the matching lines."
15592 msgstr ""
15593
15594 #. type: =head2
15595 #: ../fish/guestfish-actions.pod:5185
15596 msgid "zegrepi"
15597 msgstr ""
15598
15599 #. type: verbatim
15600 #: ../fish/guestfish-actions.pod:5187
15601 #, no-wrap
15602 msgid ""
15603 " zegrepi regex path\n"
15604 "\n"
15605 msgstr ""
15606
15607 #. type: textblock
15608 #: ../fish/guestfish-actions.pod:5189 ../src/guestfs-actions.pod:7907
15609 msgid ""
15610 "This calls the external C<zegrep -i> program and returns the matching lines."
15611 msgstr ""
15612
15613 #. type: =head2
15614 #: ../fish/guestfish-actions.pod:5195
15615 msgid "zero"
15616 msgstr ""
15617
15618 #. type: verbatim
15619 #: ../fish/guestfish-actions.pod:5197
15620 #, no-wrap
15621 msgid ""
15622 " zero device\n"
15623 "\n"
15624 msgstr ""
15625
15626 #. type: textblock
15627 #: ../fish/guestfish-actions.pod:5199 ../src/guestfs-actions.pod:7925
15628 msgid "This command writes zeroes over the first few blocks of C<device>."
15629 msgstr ""
15630
15631 #. type: textblock
15632 #: ../fish/guestfish-actions.pod:5201 ../src/guestfs-actions.pod:7927
15633 msgid ""
15634 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
15635 "securely wipe the device).  It should be sufficient to remove any partition "
15636 "tables, filesystem superblocks and so on."
15637 msgstr ""
15638
15639 #. type: textblock
15640 #: ../fish/guestfish-actions.pod:5205 ../fish/guestfish-actions.pod:5220
15641 #: ../src/guestfs-actions.pod:7931 ../src/guestfs-actions.pod:7957
15642 msgid ""
15643 "If blocks are already zero, then this command avoids writing zeroes.  This "
15644 "prevents the underlying device from becoming non-sparse or growing "
15645 "unnecessarily."
15646 msgstr ""
15647
15648 #. type: textblock
15649 #: ../fish/guestfish-actions.pod:5209
15650 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
15651 msgstr ""
15652
15653 #. type: =head2
15654 #: ../fish/guestfish-actions.pod:5212
15655 msgid "zero-device"
15656 msgstr ""
15657
15658 #. type: verbatim
15659 #: ../fish/guestfish-actions.pod:5214
15660 #, no-wrap
15661 msgid ""
15662 " zero-device device\n"
15663 "\n"
15664 msgstr ""
15665
15666 #. type: textblock
15667 #: ../fish/guestfish-actions.pod:5216
15668 msgid ""
15669 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
15670 "which just zeroes the first few blocks of a device."
15671 msgstr ""
15672
15673 #. type: =head2
15674 #: ../fish/guestfish-actions.pod:5227
15675 msgid "zerofree"
15676 msgstr ""
15677
15678 #. type: verbatim
15679 #: ../fish/guestfish-actions.pod:5229
15680 #, no-wrap
15681 msgid ""
15682 " zerofree device\n"
15683 "\n"
15684 msgstr ""
15685
15686 #. type: textblock
15687 #: ../fish/guestfish-actions.pod:5231 ../src/guestfs-actions.pod:7979
15688 msgid ""
15689 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
15690 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
15691 "possible to compress the filesystem more effectively."
15692 msgstr ""
15693
15694 #. type: textblock
15695 #: ../fish/guestfish-actions.pod:5236 ../src/guestfs-actions.pod:7984
15696 msgid "You should B<not> run this program if the filesystem is mounted."
15697 msgstr ""
15698
15699 #. type: textblock
15700 #: ../fish/guestfish-actions.pod:5239 ../src/guestfs-actions.pod:7987
15701 msgid ""
15702 "It is possible that using this program can damage the filesystem or data on "
15703 "the filesystem."
15704 msgstr ""
15705
15706 #. type: =head2
15707 #: ../fish/guestfish-actions.pod:5242
15708 msgid "zfgrep"
15709 msgstr ""
15710
15711 #. type: verbatim
15712 #: ../fish/guestfish-actions.pod:5244
15713 #, no-wrap
15714 msgid ""
15715 " zfgrep pattern path\n"
15716 "\n"
15717 msgstr ""
15718
15719 #. type: textblock
15720 #: ../fish/guestfish-actions.pod:5246 ../src/guestfs-actions.pod:8001
15721 msgid ""
15722 "This calls the external C<zfgrep> program and returns the matching lines."
15723 msgstr ""
15724
15725 #. type: =head2
15726 #: ../fish/guestfish-actions.pod:5252
15727 msgid "zfgrepi"
15728 msgstr ""
15729
15730 #. type: verbatim
15731 #: ../fish/guestfish-actions.pod:5254
15732 #, no-wrap
15733 msgid ""
15734 " zfgrepi pattern path\n"
15735 "\n"
15736 msgstr ""
15737
15738 #. type: textblock
15739 #: ../fish/guestfish-actions.pod:5256 ../src/guestfs-actions.pod:8020
15740 msgid ""
15741 "This calls the external C<zfgrep -i> program and returns the matching lines."
15742 msgstr ""
15743
15744 #. type: =head2
15745 #: ../fish/guestfish-actions.pod:5262
15746 msgid "zfile"
15747 msgstr ""
15748
15749 #. type: verbatim
15750 #: ../fish/guestfish-actions.pod:5264
15751 #, no-wrap
15752 msgid ""
15753 " zfile meth path\n"
15754 "\n"
15755 msgstr ""
15756
15757 #. type: textblock
15758 #: ../fish/guestfish-actions.pod:5266 ../src/guestfs-actions.pod:8046
15759 msgid ""
15760 "This command runs C<file> after first decompressing C<path> using C<method>."
15761 msgstr ""
15762
15763 #. type: textblock
15764 #: ../fish/guestfish-actions.pod:5269 ../src/guestfs-actions.pod:8049
15765 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
15766 msgstr ""
15767
15768 #. type: textblock
15769 #: ../fish/guestfish-actions.pod:5271
15770 msgid ""
15771 "Since 1.0.63, use L</file> instead which can now process compressed files."
15772 msgstr ""
15773
15774 #. type: textblock
15775 #: ../fish/guestfish-actions.pod:5274
15776 msgid ""
15777 "I<This function is deprecated.> In new code, use the L</file> call instead."
15778 msgstr ""
15779
15780 #. type: =head2
15781 #: ../fish/guestfish-actions.pod:5281
15782 msgid "zgrep"
15783 msgstr ""
15784
15785 #. type: verbatim
15786 #: ../fish/guestfish-actions.pod:5283
15787 #, no-wrap
15788 msgid ""
15789 " zgrep regex path\n"
15790 "\n"
15791 msgstr ""
15792
15793 #. type: textblock
15794 #: ../fish/guestfish-actions.pod:5285 ../src/guestfs-actions.pod:8066
15795 msgid ""
15796 "This calls the external C<zgrep> program and returns the matching lines."
15797 msgstr ""
15798
15799 #. type: =head2
15800 #: ../fish/guestfish-actions.pod:5291
15801 msgid "zgrepi"
15802 msgstr ""
15803
15804 #. type: verbatim
15805 #: ../fish/guestfish-actions.pod:5293
15806 #, no-wrap
15807 msgid ""
15808 " zgrepi regex path\n"
15809 "\n"
15810 msgstr ""
15811
15812 #. type: textblock
15813 #: ../fish/guestfish-actions.pod:5295 ../src/guestfs-actions.pod:8085
15814 msgid ""
15815 "This calls the external C<zgrep -i> program and returns the matching lines."
15816 msgstr ""
15817
15818 #. type: =head2
15819 #: ../fish/guestfish-commands.pod:1
15820 msgid "alloc"
15821 msgstr ""
15822
15823 #. type: =head2
15824 #: ../fish/guestfish-commands.pod:3
15825 msgid "allocate"
15826 msgstr ""
15827
15828 #. type: verbatim
15829 #: ../fish/guestfish-commands.pod:5
15830 #, no-wrap
15831 msgid ""
15832 " alloc filename size\n"
15833 "\n"
15834 msgstr ""
15835
15836 #. type: textblock
15837 #: ../fish/guestfish-commands.pod:7
15838 msgid ""
15839 "This creates an empty (zeroed) file of the given size, and then adds so it "
15840 "can be further examined."
15841 msgstr ""
15842
15843 #. type: textblock
15844 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
15845 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
15846 msgstr ""
15847
15848 #. type: textblock
15849 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
15850 msgid "Size can be specified using standard suffixes, eg. C<1M>."
15851 msgstr ""
15852
15853 #. type: textblock
15854 #: ../fish/guestfish-commands.pod:14
15855 msgid ""
15856 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
15857 "image, see L</PREPARED DISK IMAGES>."
15858 msgstr ""
15859
15860 #. type: =head2
15861 #: ../fish/guestfish-commands.pod:17
15862 msgid "copy-in"
15863 msgstr ""
15864
15865 #. type: verbatim
15866 #: ../fish/guestfish-commands.pod:19
15867 #, no-wrap
15868 msgid ""
15869 " copy-in local [local ...] /remotedir\n"
15870 "\n"
15871 msgstr ""
15872
15873 #. type: textblock
15874 #: ../fish/guestfish-commands.pod:21
15875 msgid ""
15876 "C<copy-in> copies local files or directories recursively into the disk "
15877 "image, placing them in the directory called C</remotedir> (which must "
15878 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
15879 "other commands as necessary."
15880 msgstr ""
15881
15882 #. type: textblock
15883 #: ../fish/guestfish-commands.pod:26
15884 msgid ""
15885 "Multiple local files and directories can be specified, but the last "
15886 "parameter must always be a remote directory.  Wildcards cannot be used."
15887 msgstr ""
15888
15889 #. type: =head2
15890 #: ../fish/guestfish-commands.pod:30
15891 msgid "copy-out"
15892 msgstr ""
15893
15894 #. type: verbatim
15895 #: ../fish/guestfish-commands.pod:32
15896 #, no-wrap
15897 msgid ""
15898 " copy-out remote [remote ...] localdir\n"
15899 "\n"
15900 msgstr ""
15901
15902 #. type: textblock
15903 #: ../fish/guestfish-commands.pod:34
15904 msgid ""
15905 "C<copy-out> copies remote files or directories recursively out of the disk "
15906 "image, placing them on the host disk in a local directory called C<localdir> "
15907 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
15908 "download>, L</tar-out> and other commands as necessary."
15909 msgstr ""
15910
15911 #. type: textblock
15912 #: ../fish/guestfish-commands.pod:40
15913 msgid ""
15914 "Multiple remote files and directories can be specified, but the last "
15915 "parameter must always be a local directory.  To download to the current "
15916 "directory, use C<.> as in:"
15917 msgstr ""
15918
15919 #. type: verbatim
15920 #: ../fish/guestfish-commands.pod:44
15921 #, no-wrap
15922 msgid ""
15923 " copy-out /home .\n"
15924 "\n"
15925 msgstr ""
15926
15927 #. type: textblock
15928 #: ../fish/guestfish-commands.pod:46
15929 msgid ""
15930 "Wildcards cannot be used in the ordinary command, but you can use them with "
15931 "the help of L</glob> like this:"
15932 msgstr ""
15933
15934 #. type: verbatim
15935 #: ../fish/guestfish-commands.pod:49
15936 #, no-wrap
15937 msgid ""
15938 " glob copy-out /home/* .\n"
15939 "\n"
15940 msgstr ""
15941
15942 #. type: =head2
15943 #: ../fish/guestfish-commands.pod:51
15944 msgid "display"
15945 msgstr ""
15946
15947 #. type: verbatim
15948 #: ../fish/guestfish-commands.pod:53
15949 #, no-wrap
15950 msgid ""
15951 " display filename\n"
15952 "\n"
15953 msgstr ""
15954
15955 #. type: textblock
15956 #: ../fish/guestfish-commands.pod:55
15957 msgid ""
15958 "Use C<display> (a graphical display program) to display an image file.  It "
15959 "downloads the file, and runs C<display> on it."
15960 msgstr ""
15961
15962 #. type: textblock
15963 #: ../fish/guestfish-commands.pod:58
15964 msgid ""
15965 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
15966 "environment variable.  For example to use the GNOME display program:"
15967 msgstr ""
15968
15969 #. type: verbatim
15970 #: ../fish/guestfish-commands.pod:61
15971 #, no-wrap
15972 msgid ""
15973 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
15974 "\n"
15975 msgstr ""
15976
15977 #. type: textblock
15978 #: ../fish/guestfish-commands.pod:63
15979 msgid "See also L<display(1)>."
15980 msgstr ""
15981
15982 #. type: =head2
15983 #: ../fish/guestfish-commands.pod:65
15984 msgid "echo"
15985 msgstr ""
15986
15987 #. type: verbatim
15988 #: ../fish/guestfish-commands.pod:67
15989 #, no-wrap
15990 msgid ""
15991 " echo [params ...]\n"
15992 "\n"
15993 msgstr ""
15994
15995 #. type: textblock
15996 #: ../fish/guestfish-commands.pod:69
15997 msgid "This echos the parameters to the terminal."
15998 msgstr ""
15999
16000 #. type: =head2
16001 #: ../fish/guestfish-commands.pod:71
16002 msgid "edit"
16003 msgstr ""
16004
16005 #. type: =head2
16006 #: ../fish/guestfish-commands.pod:73
16007 msgid "vi"
16008 msgstr ""
16009
16010 #. type: =head2
16011 #: ../fish/guestfish-commands.pod:75
16012 msgid "emacs"
16013 msgstr ""
16014
16015 #. type: verbatim
16016 #: ../fish/guestfish-commands.pod:77
16017 #, no-wrap
16018 msgid ""
16019 " edit filename\n"
16020 "\n"
16021 msgstr ""
16022
16023 #. type: textblock
16024 #: ../fish/guestfish-commands.pod:79
16025 msgid ""
16026 "This is used to edit a file.  It downloads the file, edits it locally using "
16027 "your editor, then uploads the result."
16028 msgstr ""
16029
16030 #. type: textblock
16031 #: ../fish/guestfish-commands.pod:82
16032 msgid ""
16033 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
16034 "or C<emacs> you will get those corresponding editors."
16035 msgstr ""
16036
16037 #. type: =head2
16038 #: ../fish/guestfish-commands.pod:86
16039 msgid "glob"
16040 msgstr ""
16041
16042 #. type: verbatim
16043 #: ../fish/guestfish-commands.pod:88
16044 #, no-wrap
16045 msgid ""
16046 " glob command args...\n"
16047 "\n"
16048 msgstr ""
16049
16050 #. type: textblock
16051 #: ../fish/guestfish-commands.pod:90
16052 msgid ""
16053 "Expand wildcards in any paths in the args list, and run C<command> "
16054 "repeatedly on each matching path."
16055 msgstr ""
16056
16057 #. type: textblock
16058 #: ../fish/guestfish-commands.pod:93
16059 msgid "See L</WILDCARDS AND GLOBBING>."
16060 msgstr ""
16061
16062 #. type: =head2
16063 #: ../fish/guestfish-commands.pod:95
16064 msgid "hexedit"
16065 msgstr ""
16066
16067 #. type: verbatim
16068 #: ../fish/guestfish-commands.pod:97
16069 #, no-wrap
16070 msgid ""
16071 " hexedit <filename|device>\n"
16072 " hexedit <filename|device> <max>\n"
16073 " hexedit <filename|device> <start> <max>\n"
16074 "\n"
16075 msgstr ""
16076
16077 #. type: textblock
16078 #: ../fish/guestfish-commands.pod:101
16079 msgid ""
16080 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
16081 "device."
16082 msgstr ""
16083
16084 #. type: textblock
16085 #: ../fish/guestfish-commands.pod:104
16086 msgid ""
16087 "This command works by downloading potentially the whole file or device, "
16088 "editing it locally, then uploading it.  If the file or device is large, you "
16089 "have to specify which part you wish to edit by using C<max> and/or C<start> "
16090 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
16091 "usual modifiers allowed such as C<1M> (1 megabyte)."
16092 msgstr ""
16093
16094 #. type: textblock
16095 #: ../fish/guestfish-commands.pod:111
16096 msgid "For example to edit the first few sectors of a disk you might do:"
16097 msgstr ""
16098
16099 #. type: verbatim
16100 #: ../fish/guestfish-commands.pod:114
16101 #, no-wrap
16102 msgid ""
16103 " hexedit /dev/sda 1M\n"
16104 "\n"
16105 msgstr ""
16106
16107 #. type: textblock
16108 #: ../fish/guestfish-commands.pod:116
16109 msgid ""
16110 "which would allow you to edit anywhere within the first megabyte of the disk."
16111 msgstr ""
16112
16113 #. type: textblock
16114 #: ../fish/guestfish-commands.pod:119
16115 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
16116 msgstr ""
16117
16118 #. type: verbatim
16119 #: ../fish/guestfish-commands.pod:121
16120 #, no-wrap
16121 msgid ""
16122 " hexedit /dev/sda1 0x400 0x400\n"
16123 "\n"
16124 msgstr ""
16125
16126 #. type: textblock
16127 #: ../fish/guestfish-commands.pod:123
16128 msgid "(assuming the superblock is in the standard location)."
16129 msgstr ""
16130
16131 #. type: textblock
16132 #: ../fish/guestfish-commands.pod:125
16133 msgid ""
16134 "This command requires the external L<hexedit(1)> program.  You can specify "
16135 "another program to use by setting the C<HEXEDITOR> environment variable."
16136 msgstr ""
16137
16138 #. type: textblock
16139 #: ../fish/guestfish-commands.pod:129
16140 msgid "See also L</hexdump>."
16141 msgstr ""
16142
16143 #. type: =head2
16144 #: ../fish/guestfish-commands.pod:131
16145 msgid "lcd"
16146 msgstr ""
16147
16148 #. type: verbatim
16149 #: ../fish/guestfish-commands.pod:133
16150 #, no-wrap
16151 msgid ""
16152 " lcd directory\n"
16153 "\n"
16154 msgstr ""
16155
16156 #. type: textblock
16157 #: ../fish/guestfish-commands.pod:135
16158 msgid ""
16159 "Change the local directory, ie. the current directory of guestfish itself."
16160 msgstr ""
16161
16162 #. type: textblock
16163 #: ../fish/guestfish-commands.pod:138
16164 msgid "Note that C<!cd> won't do what you might expect."
16165 msgstr ""
16166
16167 #. type: =head2
16168 #: ../fish/guestfish-commands.pod:140
16169 msgid "man"
16170 msgstr ""
16171
16172 #. type: =head2
16173 #: ../fish/guestfish-commands.pod:142
16174 msgid "manual"
16175 msgstr ""
16176
16177 #. type: verbatim
16178 #: ../fish/guestfish-commands.pod:144
16179 #, no-wrap
16180 msgid ""
16181 "  man\n"
16182 "\n"
16183 msgstr ""
16184
16185 #. type: textblock
16186 #: ../fish/guestfish-commands.pod:146
16187 msgid "Opens the manual page for guestfish."
16188 msgstr ""
16189
16190 #. type: =head2
16191 #: ../fish/guestfish-commands.pod:148
16192 msgid "more"
16193 msgstr ""
16194
16195 #. type: =head2
16196 #: ../fish/guestfish-commands.pod:150
16197 msgid "less"
16198 msgstr ""
16199
16200 #. type: verbatim
16201 #: ../fish/guestfish-commands.pod:152
16202 #, no-wrap
16203 msgid ""
16204 " more filename\n"
16205 "\n"
16206 msgstr ""
16207
16208 #. type: verbatim
16209 #: ../fish/guestfish-commands.pod:154
16210 #, no-wrap
16211 msgid ""
16212 " less filename\n"
16213 "\n"
16214 msgstr ""
16215
16216 #. type: textblock
16217 #: ../fish/guestfish-commands.pod:156
16218 msgid "This is used to view a file."
16219 msgstr ""
16220
16221 #. type: textblock
16222 #: ../fish/guestfish-commands.pod:158
16223 msgid ""
16224 "The default viewer is C<$PAGER>.  However if you use the alternate command "
16225 "C<less> you will get the C<less> command specifically."
16226 msgstr ""
16227
16228 #. type: =head2
16229 #: ../fish/guestfish-commands.pod:161
16230 msgid "reopen"
16231 msgstr ""
16232
16233 #. type: verbatim
16234 #: ../fish/guestfish-commands.pod:163
16235 #, no-wrap
16236 msgid ""
16237 "  reopen\n"
16238 "\n"
16239 msgstr ""
16240
16241 #. type: textblock
16242 #: ../fish/guestfish-commands.pod:165
16243 msgid ""
16244 "Close and reopen the libguestfs handle.  It is not necessary to use this "
16245 "normally, because the handle is closed properly when guestfish exits.  "
16246 "However this is occasionally useful for testing."
16247 msgstr ""
16248
16249 #. type: =head2
16250 #: ../fish/guestfish-commands.pod:169
16251 msgid "setenv"
16252 msgstr ""
16253
16254 #. type: verbatim
16255 #: ../fish/guestfish-commands.pod:171
16256 #, no-wrap
16257 msgid ""
16258 "  setenv VAR value\n"
16259 "\n"
16260 msgstr ""
16261
16262 #. type: textblock
16263 #: ../fish/guestfish-commands.pod:173
16264 msgid "Set the environment variable C<VAR> to the string C<value>."
16265 msgstr ""
16266
16267 #. type: textblock
16268 #: ../fish/guestfish-commands.pod:175
16269 msgid ""
16270 "To print the value of an environment variable use a shell command such as:"
16271 msgstr ""
16272
16273 #. type: verbatim
16274 #: ../fish/guestfish-commands.pod:178
16275 #, no-wrap
16276 msgid ""
16277 " !echo $VAR\n"
16278 "\n"
16279 msgstr ""
16280
16281 #. type: =head2
16282 #: ../fish/guestfish-commands.pod:180
16283 msgid "sparse"
16284 msgstr ""
16285
16286 #. type: verbatim
16287 #: ../fish/guestfish-commands.pod:182
16288 #, no-wrap
16289 msgid ""
16290 " sparse filename size\n"
16291 "\n"
16292 msgstr ""
16293
16294 #. type: textblock
16295 #: ../fish/guestfish-commands.pod:184
16296 msgid ""
16297 "This creates an empty sparse file of the given size, and then adds so it can "
16298 "be further examined."
16299 msgstr ""
16300
16301 #. type: textblock
16302 #: ../fish/guestfish-commands.pod:187
16303 msgid ""
16304 "In all respects it works the same as the L</alloc> command, except that the "
16305 "image file is allocated sparsely, which means that disk blocks are not "
16306 "assigned to the file until they are needed.  Sparse disk files only use "
16307 "space when written to, but they are slower and there is a danger you could "
16308 "run out of real disk space during a write operation."
16309 msgstr ""
16310
16311 #. type: =head2
16312 #: ../fish/guestfish-commands.pod:197
16313 msgid "supported"
16314 msgstr ""
16315
16316 #. type: verbatim
16317 #: ../fish/guestfish-commands.pod:199
16318 #, no-wrap
16319 msgid ""
16320 " supported\n"
16321 "\n"
16322 msgstr ""
16323
16324 #. type: textblock
16325 #: ../fish/guestfish-commands.pod:201
16326 msgid ""
16327 "This command returns a list of the optional groups known to the daemon, and "
16328 "indicates which ones are supported by this build of the libguestfs appliance."
16329 msgstr ""
16330
16331 #. type: textblock
16332 #: ../fish/guestfish-commands.pod:205
16333 msgid "See also L<guestfs(3)/AVAILABILITY>."
16334 msgstr ""
16335
16336 #. type: =head2
16337 #: ../fish/guestfish-commands.pod:207
16338 msgid "time"
16339 msgstr ""
16340
16341 #. type: verbatim
16342 #: ../fish/guestfish-commands.pod:209
16343 #, no-wrap
16344 msgid ""
16345 " time command args...\n"
16346 "\n"
16347 msgstr ""
16348
16349 #. type: textblock
16350 #: ../fish/guestfish-commands.pod:211
16351 msgid ""
16352 "Run the command as usual, but print the elapsed time afterwards.  This can "
16353 "be useful for benchmarking operations."
16354 msgstr ""
16355
16356 #. type: =head2
16357 #: ../fish/guestfish-commands.pod:214
16358 msgid "unsetenv"
16359 msgstr ""
16360
16361 #. type: verbatim
16362 #: ../fish/guestfish-commands.pod:216
16363 #, no-wrap
16364 msgid ""
16365 "  unsetenv VAR\n"
16366 "\n"
16367 msgstr ""
16368
16369 #. type: textblock
16370 #: ../fish/guestfish-commands.pod:218
16371 msgid "Remove C<VAR> from the environment."
16372 msgstr ""
16373
16374 #. type: textblock
16375 #: ../fish/guestfish.pod:5
16376 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16377 msgstr ""
16378
16379 #. type: verbatim
16380 #: ../fish/guestfish.pod:9
16381 #, no-wrap
16382 msgid ""
16383 " guestfish [--options] [commands]\n"
16384 "\n"
16385 msgstr ""
16386
16387 #. type: verbatim
16388 #: ../fish/guestfish.pod:11
16389 #, no-wrap
16390 msgid ""
16391 " guestfish\n"
16392 "\n"
16393 msgstr ""
16394
16395 #. type: verbatim
16396 #: ../fish/guestfish.pod:13
16397 #, no-wrap
16398 msgid ""
16399 " guestfish [--ro|--rw] -a disk.img\n"
16400 "\n"
16401 msgstr ""
16402
16403 #. type: verbatim
16404 #: ../fish/guestfish.pod:15
16405 #, no-wrap
16406 msgid ""
16407 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16408 "\n"
16409 msgstr ""
16410
16411 #. type: verbatim
16412 #: ../fish/guestfish.pod:17
16413 #, no-wrap
16414 msgid ""
16415 " guestfish -d libvirt-domain\n"
16416 "\n"
16417 msgstr ""
16418
16419 #. type: verbatim
16420 #: ../fish/guestfish.pod:19
16421 #, no-wrap
16422 msgid ""
16423 " guestfish [--ro|--rw] -a disk.img -i\n"
16424 "\n"
16425 msgstr ""
16426
16427 #. type: verbatim
16428 #: ../fish/guestfish.pod:21
16429 #, no-wrap
16430 msgid ""
16431 " guestfish -d libvirt-domain -i\n"
16432 "\n"
16433 msgstr ""
16434
16435 #. type: textblock
16436 #: ../fish/guestfish.pod:25
16437 msgid ""
16438 "Using guestfish in read/write mode on live virtual machines can be "
16439 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16440 "option to use guestfish safely if the disk image or virtual machine might be "
16441 "live."
16442 msgstr ""
16443
16444 #. type: textblock
16445 #: ../fish/guestfish.pod:32
16446 msgid ""
16447 "Guestfish is a shell and command-line tool for examining and modifying "
16448 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16449 "functionality of the guestfs API, see L<guestfs(3)>."
16450 msgstr ""
16451
16452 #. type: textblock
16453 #: ../fish/guestfish.pod:36
16454 msgid ""
16455 "Guestfish gives you structured access to the libguestfs API, from shell "
16456 "scripts or the command line or interactively.  If you want to rescue a "
16457 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16458 "command."
16459 msgstr ""
16460
16461 #. type: =head2
16462 #: ../fish/guestfish.pod:43
16463 msgid "As an interactive shell"
16464 msgstr ""
16465
16466 #. type: verbatim
16467 #: ../fish/guestfish.pod:45
16468 #, no-wrap
16469 msgid ""
16470 " $ guestfish\n"
16471 " \n"
16472 msgstr ""
16473
16474 #. type: verbatim
16475 #: ../fish/guestfish.pod:47
16476 #, no-wrap
16477 msgid ""
16478 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16479 " editing virtual machine filesystems.\n"
16480 " \n"
16481 msgstr ""
16482
16483 #. type: verbatim
16484 #: ../fish/guestfish.pod:50
16485 #, no-wrap
16486 msgid ""
16487 " Type: 'help' for a list of commands\n"
16488 "       'man' to read the manual\n"
16489 "       'quit' to quit the shell\n"
16490 " \n"
16491 msgstr ""
16492
16493 #. type: verbatim
16494 #: ../fish/guestfish.pod:54
16495 #, no-wrap
16496 msgid ""
16497 " ><fs> add-ro disk.img\n"
16498 " ><fs> run\n"
16499 " ><fs> list-filesystems\n"
16500 " /dev/sda1: ext4\n"
16501 " /dev/vg_guest/lv_root: ext4\n"
16502 " /dev/vg_guest/lv_swap: swap\n"
16503 " ><fs> mount /dev/vg_guest/lv_root /\n"
16504 " ><fs> cat /etc/fstab\n"
16505 " # /etc/fstab\n"
16506 " # Created by anaconda\n"
16507 " [...]\n"
16508 " ><fs> exit\n"
16509 "\n"
16510 msgstr ""
16511
16512 #. type: =head2
16513 #: ../fish/guestfish.pod:67
16514 msgid "From shell scripts"
16515 msgstr ""
16516
16517 #. type: textblock
16518 #: ../fish/guestfish.pod:69
16519 msgid "Create a new C</etc/motd> file in a guest or disk image:"
16520 msgstr ""
16521
16522 #. type: verbatim
16523 #: ../fish/guestfish.pod:71
16524 #, no-wrap
16525 msgid ""
16526 " guestfish <<_EOF_\n"
16527 " add disk.img\n"
16528 " run\n"
16529 " mount /dev/vg_guest/lv_root /\n"
16530 " write /etc/motd \"Welcome, new users\"\n"
16531 " _EOF_\n"
16532 "\n"
16533 msgstr ""
16534
16535 #. type: textblock
16536 #: ../fish/guestfish.pod:78
16537 msgid "List the LVM logical volumes in a disk image:"
16538 msgstr ""
16539
16540 #. type: verbatim
16541 #: ../fish/guestfish.pod:80
16542 #, no-wrap
16543 msgid ""
16544 " guestfish -a disk.img --ro <<_EOF_\n"
16545 " run\n"
16546 " lvs\n"
16547 " _EOF_\n"
16548 "\n"
16549 msgstr ""
16550
16551 #. type: textblock
16552 #: ../fish/guestfish.pod:85
16553 msgid "List all the filesystems in a disk image:"
16554 msgstr ""
16555
16556 #. type: verbatim
16557 #: ../fish/guestfish.pod:87
16558 #, no-wrap
16559 msgid ""
16560 " guestfish -a disk.img --ro <<_EOF_\n"
16561 " run\n"
16562 " list-filesystems\n"
16563 " _EOF_\n"
16564 "\n"
16565 msgstr ""
16566
16567 #. type: =head2
16568 #: ../fish/guestfish.pod:92
16569 msgid "On one command line"
16570 msgstr ""
16571
16572 #. type: textblock
16573 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
16574 msgid "Update C</etc/resolv.conf> in a guest:"
16575 msgstr ""
16576
16577 #. type: verbatim
16578 #: ../fish/guestfish.pod:96
16579 #, no-wrap
16580 msgid ""
16581 " guestfish \\\n"
16582 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
16583 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
16584 "\n"
16585 msgstr ""
16586
16587 #. type: textblock
16588 #: ../fish/guestfish.pod:100
16589 msgid "Edit C</boot/grub/grub.conf> interactively:"
16590 msgstr ""
16591
16592 #. type: verbatim
16593 #: ../fish/guestfish.pod:102
16594 #, no-wrap
16595 msgid ""
16596 " guestfish --rw --add disk.img \\\n"
16597 "   --mount /dev/vg_guest/lv_root \\\n"
16598 "   --mount /dev/sda1:/boot \\\n"
16599 "   edit /boot/grub/grub.conf\n"
16600 "\n"
16601 msgstr ""
16602
16603 #. type: =head2
16604 #: ../fish/guestfish.pod:107
16605 msgid "Mount disks automatically"
16606 msgstr ""
16607
16608 #. type: textblock
16609 #: ../fish/guestfish.pod:109
16610 msgid ""
16611 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
16612 msgstr ""
16613
16614 #. type: verbatim
16615 #: ../fish/guestfish.pod:112
16616 #, no-wrap
16617 msgid ""
16618 " guestfish --ro -a disk.img -i cat /etc/group\n"
16619 "\n"
16620 msgstr ""
16621
16622 #. type: verbatim
16623 #: ../fish/guestfish.pod:114
16624 #, no-wrap
16625 msgid ""
16626 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
16627 "\n"
16628 msgstr ""
16629
16630 #. type: textblock
16631 #: ../fish/guestfish.pod:116
16632 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
16633 msgstr ""
16634
16635 #. type: verbatim
16636 #: ../fish/guestfish.pod:118
16637 #, no-wrap
16638 msgid ""
16639 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
16640 "\n"
16641 msgstr ""
16642
16643 #. type: =head2
16644 #: ../fish/guestfish.pod:120
16645 msgid "As a script interpreter"
16646 msgstr ""
16647
16648 #. type: textblock
16649 #: ../fish/guestfish.pod:122
16650 msgid "Create a 100MB disk containing an ext2-formatted partition:"
16651 msgstr ""
16652
16653 #. type: verbatim
16654 #: ../fish/guestfish.pod:124
16655 #, no-wrap
16656 msgid ""
16657 " #!/usr/bin/guestfish -f\n"
16658 " sparse test1.img 100M\n"
16659 " run\n"
16660 " part-disk /dev/sda mbr\n"
16661 " mkfs ext2 /dev/sda1\n"
16662 "\n"
16663 msgstr ""
16664
16665 #. type: =head2
16666 #: ../fish/guestfish.pod:130
16667 msgid "Start with a prepared disk"
16668 msgstr ""
16669
16670 #. type: textblock
16671 #: ../fish/guestfish.pod:132
16672 msgid ""
16673 "An alternate way to create a 100MB disk called C<test1.img> containing a "
16674 "single ext2-formatted partition:"
16675 msgstr ""
16676
16677 #. type: verbatim
16678 #: ../fish/guestfish.pod:135
16679 #, no-wrap
16680 msgid ""
16681 " guestfish -N fs\n"
16682 "\n"
16683 msgstr ""
16684
16685 #. type: textblock
16686 #: ../fish/guestfish.pod:137
16687 msgid "To list what is available do:"
16688 msgstr ""
16689
16690 #. type: verbatim
16691 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1009
16692 #, no-wrap
16693 msgid ""
16694 " guestfish -N help | less\n"
16695 "\n"
16696 msgstr ""
16697
16698 #. type: =head2
16699 #: ../fish/guestfish.pod:141
16700 msgid "Remote control"
16701 msgstr ""
16702
16703 #. type: verbatim
16704 #: ../fish/guestfish.pod:143
16705 #, no-wrap
16706 msgid ""
16707 " eval \"`guestfish --listen`\"\n"
16708 " guestfish --remote add-ro disk.img\n"
16709 " guestfish --remote run\n"
16710 " guestfish --remote lvs\n"
16711 "\n"
16712 msgstr ""
16713
16714 #. type: textblock
16715 #: ../fish/guestfish.pod:154
16716 msgid "Displays general help on options."
16717 msgstr ""
16718
16719 #. type: =item
16720 #: ../fish/guestfish.pod:158
16721 msgid "B<--cmd-help>"
16722 msgstr ""
16723
16724 #. type: textblock
16725 #: ../fish/guestfish.pod:160
16726 msgid "Lists all available guestfish commands."
16727 msgstr ""
16728
16729 #. type: =item
16730 #: ../fish/guestfish.pod:162
16731 msgid "B<-h cmd>"
16732 msgstr ""
16733
16734 #. type: =item
16735 #: ../fish/guestfish.pod:164
16736 msgid "B<--cmd-help cmd>"
16737 msgstr ""
16738
16739 #. type: textblock
16740 #: ../fish/guestfish.pod:166
16741 msgid "Displays detailed help on a single command C<cmd>."
16742 msgstr ""
16743
16744 #. type: =item
16745 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
16746 msgid "B<-a image>"
16747 msgstr ""
16748
16749 #. type: =item
16750 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
16751 msgid "B<--add image>"
16752 msgstr ""
16753
16754 #. type: textblock
16755 #: ../fish/guestfish.pod:172
16756 msgid "Add a block device or virtual machine image to the shell."
16757 msgstr ""
16758
16759 #. type: textblock
16760 #: ../fish/guestfish.pod:177
16761 msgid ""
16762 "Using this flag is mostly equivalent to using the C<add> command, with "
16763 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
16764 "the I<--format=...> flag was given."
16765 msgstr ""
16766
16767 #. type: textblock
16768 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
16769 msgid ""
16770 "When used in conjunction with the I<-d> option, this specifies the libvirt "
16771 "URI to use.  The default is to use the default libvirt connection."
16772 msgstr ""
16773
16774 #. type: =item
16775 #: ../fish/guestfish.pod:189
16776 msgid "B<--csh>"
16777 msgstr ""
16778
16779 #. type: textblock
16780 #: ../fish/guestfish.pod:191
16781 msgid ""
16782 "If using the I<--listen> option and a csh-like shell, use this option.  See "
16783 "section L</REMOTE CONTROL AND CSH> below."
16784 msgstr ""
16785
16786 #. type: =item
16787 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
16788 msgid "B<-d libvirt-domain>"
16789 msgstr ""
16790
16791 #. type: =item
16792 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
16793 msgid "B<--domain libvirt-domain>"
16794 msgstr ""
16795
16796 #. type: textblock
16797 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
16798 msgid ""
16799 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
16800 "used, then any libvirt domain can be used.  However in write mode, only "
16801 "libvirt domains which are shut down can be named here."
16802 msgstr ""
16803
16804 #. type: textblock
16805 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
16806 msgid "Domain UUIDs can be used instead of names."
16807 msgstr ""
16808
16809 #. type: textblock
16810 #: ../fish/guestfish.pod:204
16811 msgid ""
16812 "Using this flag is mostly equivalent to using the C<add-domain> command, "
16813 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
16814 "if the I<--format:...> flag was given."
16815 msgstr ""
16816
16817 #. type: =item
16818 #: ../fish/guestfish.pod:208
16819 msgid "B<-D>"
16820 msgstr ""
16821
16822 #. type: =item
16823 #: ../fish/guestfish.pod:210
16824 msgid "B<--no-dest-paths>"
16825 msgstr ""
16826
16827 #. type: textblock
16828 #: ../fish/guestfish.pod:212
16829 msgid ""
16830 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
16831 "to hit the tab key to complete paths on the guest filesystem, but this "
16832 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
16833 "allow this feature to be disabled."
16834 msgstr ""
16835
16836 #. type: textblock
16837 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
16838 msgid ""
16839 "When prompting for keys and passphrases, guestfish normally turns echoing "
16840 "off so you cannot see what you are typing.  If you are not worried about "
16841 "Tempest attacks and there is no one else in the room you can specify this "
16842 "flag to see what you are typing."
16843 msgstr ""
16844
16845 #. type: =item
16846 #: ../fish/guestfish.pod:224
16847 msgid "B<-f file>"
16848 msgstr ""
16849
16850 #. type: =item
16851 #: ../fish/guestfish.pod:226
16852 msgid "B<--file file>"
16853 msgstr ""
16854
16855 #. type: textblock
16856 #: ../fish/guestfish.pod:228
16857 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
16858 msgstr ""
16859
16860 #. type: verbatim
16861 #: ../fish/guestfish.pod:231
16862 #, no-wrap
16863 msgid ""
16864 " #!/usr/bin/guestfish -f\n"
16865 "\n"
16866 msgstr ""
16867
16868 #. type: verbatim
16869 #: ../fish/guestfish.pod:244
16870 #, no-wrap
16871 msgid ""
16872 " guestfish --format=raw -a disk.img\n"
16873 "\n"
16874 msgstr ""
16875
16876 #. type: verbatim
16877 #: ../fish/guestfish.pod:248
16878 #, no-wrap
16879 msgid ""
16880 " guestfish --format=raw -a disk.img --format -a another.img\n"
16881 "\n"
16882 msgstr ""
16883
16884 #. type: textblock
16885 #: ../fish/guestfish.pod:253
16886 msgid ""
16887 "If you have untrusted raw-format guest disk images, you should use this "
16888 "option to specify the disk format.  This avoids a possible security problem "
16889 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
16890 msgstr ""
16891
16892 #. type: =item
16893 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
16894 msgid "B<--inspector>"
16895 msgstr ""
16896
16897 #. type: textblock
16898 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
16899 msgid ""
16900 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
16901 "system and mount filesystems as they would be mounted on the real virtual "
16902 "machine."
16903 msgstr ""
16904
16905 #. type: textblock
16906 #: ../fish/guestfish.pod:266
16907 msgid "Typical usage is either:"
16908 msgstr ""
16909
16910 #. type: verbatim
16911 #: ../fish/guestfish.pod:268
16912 #, no-wrap
16913 msgid ""
16914 " guestfish -d myguest -i\n"
16915 "\n"
16916 msgstr ""
16917
16918 #. type: textblock
16919 #: ../fish/guestfish.pod:270
16920 msgid "(for an inactive libvirt domain called I<myguest>), or:"
16921 msgstr ""
16922
16923 #. type: verbatim
16924 #: ../fish/guestfish.pod:272
16925 #, no-wrap
16926 msgid ""
16927 " guestfish --ro -d myguest -i\n"
16928 "\n"
16929 msgstr ""
16930
16931 #. type: textblock
16932 #: ../fish/guestfish.pod:274
16933 msgid "(for active domains, readonly), or specify the block device directly:"
16934 msgstr ""
16935
16936 #. type: verbatim
16937 #: ../fish/guestfish.pod:276
16938 #, no-wrap
16939 msgid ""
16940 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
16941 "\n"
16942 msgstr ""
16943
16944 #. type: textblock
16945 #: ../fish/guestfish.pod:278
16946 msgid ""
16947 "Note that the command line syntax changed slightly over older versions of "
16948 "guestfish.  You can still use the old syntax:"
16949 msgstr ""
16950
16951 #. type: verbatim
16952 #: ../fish/guestfish.pod:281
16953 #, no-wrap
16954 msgid ""
16955 " guestfish [--ro] -i disk.img\n"
16956 "\n"
16957 msgstr ""
16958
16959 #. type: verbatim
16960 #: ../fish/guestfish.pod:283
16961 #, no-wrap
16962 msgid ""
16963 " guestfish [--ro] -i libvirt-domain\n"
16964 "\n"
16965 msgstr ""
16966
16967 #. type: textblock
16968 #: ../fish/guestfish.pod:285
16969 msgid ""
16970 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
16971 "then using other commands to mount the filesystems that were found."
16972 msgstr ""
16973
16974 #. type: =item
16975 #: ../fish/guestfish.pod:294
16976 msgid "B<--listen>"
16977 msgstr ""
16978
16979 #. type: textblock
16980 #: ../fish/guestfish.pod:296
16981 msgid ""
16982 "Fork into the background and listen for remote commands.  See section L</"
16983 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
16984 msgstr ""
16985
16986 #. type: =item
16987 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
16988 msgid "B<--live>"
16989 msgstr ""
16990
16991 #. type: textblock
16992 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
16993 msgid ""
16994 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
16995 "ATTACHING TO RUNNING DAEMONS>)."
16996 msgstr ""
16997
16998 #. type: =item
16999 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
17000 msgid "B<-m dev[:mountpoint[:options]]>"
17001 msgstr ""
17002
17003 #. type: =item
17004 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
17005 msgid "B<--mount dev[:mountpoint[:options]]>"
17006 msgstr ""
17007
17008 #. type: textblock
17009 #: ../fish/guestfish.pod:308
17010 msgid "Mount the named partition or logical volume on the given mountpoint."
17011 msgstr ""
17012
17013 #. type: textblock
17014 #: ../fish/guestfish.pod:310
17015 msgid "If the mountpoint is omitted, it defaults to C</>."
17016 msgstr ""
17017
17018 #. type: textblock
17019 #: ../fish/guestfish.pod:312
17020 msgid "You have to mount something on C</> before most commands will work."
17021 msgstr ""
17022
17023 #. type: textblock
17024 #: ../fish/guestfish.pod:314
17025 msgid ""
17026 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17027 "launched."
17028 msgstr ""
17029
17030 #. type: textblock
17031 #: ../fish/guestfish.pod:317
17032 msgid ""
17033 "If you don't know what filesystems a disk image contains, you can either run "
17034 "guestfish without this option, then list the partitions, filesystems and LVs "
17035 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17036 "commands), or you can use the L<virt-filesystems(1)> program."
17037 msgstr ""
17038
17039 #. type: textblock
17040 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
17041 msgid ""
17042 "The third (and rarely used) part of the mount parameter is the list of mount "
17043 "options used to mount the underlying filesystem.  If this is not given, then "
17044 "the mount options are either the empty string or C<ro> (the latter if the "
17045 "I<--ro> flag is used).  By specifying the mount options, you override this "
17046 "default choice.  Probably the only time you would use this is to enable ACLs "
17047 "and/or extended attributes if the filesystem can support them:"
17048 msgstr ""
17049
17050 #. type: verbatim
17051 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
17052 #, no-wrap
17053 msgid ""
17054 " -m /dev/sda1:/:acl,user_xattr\n"
17055 "\n"
17056 msgstr ""
17057
17058 #. type: textblock
17059 #: ../fish/guestfish.pod:333
17060 msgid "Using this flag is equivalent to using the C<mount-options> command."
17061 msgstr ""
17062
17063 #. type: =item
17064 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193
17065 #: ../resize/virt-resize.pod:358
17066 msgid "B<-n>"
17067 msgstr ""
17068
17069 #. type: =item
17070 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
17071 msgid "B<--no-sync>"
17072 msgstr ""
17073
17074 #. type: textblock
17075 #: ../fish/guestfish.pod:339
17076 msgid ""
17077 "Disable autosync.  This is enabled by default.  See the discussion of "
17078 "autosync in the L<guestfs(3)> manpage."
17079 msgstr ""
17080
17081 #. type: =item
17082 #: ../fish/guestfish.pod:342
17083 msgid "B<-N type>"
17084 msgstr ""
17085
17086 #. type: =item
17087 #: ../fish/guestfish.pod:344
17088 msgid "B<--new type>"
17089 msgstr ""
17090
17091 #. type: =item
17092 #: ../fish/guestfish.pod:346
17093 msgid "B<-N help>"
17094 msgstr ""
17095
17096 #. type: textblock
17097 #: ../fish/guestfish.pod:348
17098 msgid ""
17099 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17100 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17101 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17102 "IMAGES> below."
17103 msgstr ""
17104
17105 #. type: =item
17106 #: ../fish/guestfish.pod:353
17107 msgid "B<--progress-bars>"
17108 msgstr ""
17109
17110 #. type: textblock
17111 #: ../fish/guestfish.pod:355
17112 msgid "Enable progress bars, even when guestfish is used non-interactively."
17113 msgstr ""
17114
17115 #. type: textblock
17116 #: ../fish/guestfish.pod:357
17117 msgid ""
17118 "Progress bars are enabled by default when guestfish is used as an "
17119 "interactive shell."
17120 msgstr ""
17121
17122 #. type: =item
17123 #: ../fish/guestfish.pod:360
17124 msgid "B<--no-progress-bars>"
17125 msgstr ""
17126
17127 #. type: textblock
17128 #: ../fish/guestfish.pod:362
17129 msgid "Disable progress bars."
17130 msgstr ""
17131
17132 #. type: =item
17133 #: ../fish/guestfish.pod:364
17134 msgid "B<--remote[=pid]>"
17135 msgstr ""
17136
17137 #. type: textblock
17138 #: ../fish/guestfish.pod:366
17139 msgid ""
17140 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17141 "CONTROL GUESTFISH OVER A SOCKET> below."
17142 msgstr ""
17143
17144 #. type: =item
17145 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239
17146 #: ../rescue/virt-rescue.pod:161
17147 msgid "B<-r>"
17148 msgstr ""
17149
17150 #. type: =item
17151 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241
17152 #: ../rescue/virt-rescue.pod:163
17153 msgid "B<--ro>"
17154 msgstr ""
17155
17156 #. type: textblock
17157 #: ../fish/guestfish.pod:373
17158 msgid ""
17159 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17160 "mounts are done read-only."
17161 msgstr ""
17162
17163 #. type: textblock
17164 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
17165 msgid ""
17166 "The option must always be used if the disk image or virtual machine might be "
17167 "running, and is generally recommended in cases where you don't need write "
17168 "access to the disk."
17169 msgstr ""
17170
17171 #. type: textblock
17172 #: ../fish/guestfish.pod:380
17173 msgid ""
17174 "Note that prepared disk images created with I<-N> are not affected by this "
17175 "option.  Also commands like C<add> are not affected - you have to specify "
17176 "the C<readonly:true> option explicitly if you need it."
17177 msgstr ""
17178
17179 #. type: textblock
17180 #: ../fish/guestfish.pod:384
17181 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17182 msgstr ""
17183
17184 #. type: =item
17185 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253
17186 #: ../rescue/virt-rescue.pod:173
17187 msgid "B<--selinux>"
17188 msgstr ""
17189
17190 #. type: textblock
17191 #: ../fish/guestfish.pod:388
17192 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
17193 msgstr ""
17194
17195 #. type: textblock
17196 #: ../fish/guestfish.pod:394
17197 msgid ""
17198 "Enable very verbose messages.  This is particularly useful if you find a bug."
17199 msgstr ""
17200
17201 #. type: textblock
17202 #: ../fish/guestfish.pod:401
17203 msgid "Display the guestfish / libguestfs version number and exit."
17204 msgstr ""
17205
17206 #. type: =item
17207 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269
17208 #: ../rescue/virt-rescue.pod:194
17209 msgid "B<-w>"
17210 msgstr ""
17211
17212 #. type: =item
17213 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271
17214 #: ../rescue/virt-rescue.pod:196
17215 msgid "B<--rw>"
17216 msgstr ""
17217
17218 #. type: textblock
17219 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
17220 msgid ""
17221 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17222 "mounts are done read-write."
17223 msgstr ""
17224
17225 #. type: textblock
17226 #: ../fish/guestfish.pod:410
17227 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
17228 msgstr ""
17229
17230 #. type: textblock
17231 #: ../fish/guestfish.pod:414
17232 msgid "Echo each command before executing it."
17233 msgstr ""
17234
17235 #. type: =head1
17236 #: ../fish/guestfish.pod:418
17237 msgid "COMMANDS ON COMMAND LINE"
17238 msgstr ""
17239
17240 #. type: textblock
17241 #: ../fish/guestfish.pod:420
17242 msgid ""
17243 "Any additional (non-option) arguments are treated as commands to execute."
17244 msgstr ""
17245
17246 #. type: textblock
17247 #: ../fish/guestfish.pod:423
17248 msgid ""
17249 "Commands to execute should be separated by a colon (C<:>), where the colon "
17250 "is a separate parameter.  Thus:"
17251 msgstr ""
17252
17253 #. type: verbatim
17254 #: ../fish/guestfish.pod:426
17255 #, no-wrap
17256 msgid ""
17257 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17258 "\n"
17259 msgstr ""
17260
17261 #. type: textblock
17262 #: ../fish/guestfish.pod:428
17263 msgid ""
17264 "If there are no additional arguments, then we enter a shell, either an "
17265 "interactive shell with a prompt (if the input is a terminal) or a non-"
17266 "interactive shell."
17267 msgstr ""
17268
17269 #. type: textblock
17270 #: ../fish/guestfish.pod:432
17271 msgid ""
17272 "In either command line mode or non-interactive shell, the first command that "
17273 "gives an error causes the whole shell to exit.  In interactive mode (with a "
17274 "prompt) if a command fails, you can continue to enter commands."
17275 msgstr ""
17276
17277 #. type: =head1
17278 #: ../fish/guestfish.pod:437
17279 msgid "USING launch (OR run)"
17280 msgstr ""
17281
17282 #. type: textblock
17283 #: ../fish/guestfish.pod:439
17284 msgid ""
17285 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17286 "then launch it, then mount any disks you need, and finally issue actions/"
17287 "commands.  So the general order of the day is:"
17288 msgstr ""
17289
17290 #. type: textblock
17291 #: ../fish/guestfish.pod:447
17292 msgid "add or -a/--add"
17293 msgstr ""
17294
17295 #. type: textblock
17296 #: ../fish/guestfish.pod:451
17297 msgid "launch (aka run)"
17298 msgstr ""
17299
17300 #. type: textblock
17301 #: ../fish/guestfish.pod:455
17302 msgid "mount or -m/--mount"
17303 msgstr ""
17304
17305 #. type: textblock
17306 #: ../fish/guestfish.pod:459
17307 msgid "any other commands"
17308 msgstr ""
17309
17310 #. type: textblock
17311 #: ../fish/guestfish.pod:463
17312 msgid ""
17313 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
17314 "guest before mounting or performing any other commands."
17315 msgstr ""
17316
17317 #. type: textblock
17318 #: ../fish/guestfish.pod:466
17319 msgid ""
17320 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17321 "I<--new> options were given then C<run> is done automatically, simply "
17322 "because guestfish can't perform the action you asked for without doing this."
17323 msgstr ""
17324
17325 #. type: =head1
17326 #: ../fish/guestfish.pod:471
17327 msgid "OPENING DISKS FOR READ AND WRITE"
17328 msgstr ""
17329
17330 #. type: textblock
17331 #: ../fish/guestfish.pod:473
17332 msgid ""
17333 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
17334 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
17335 "I<-i> and I<-m> open disk images read-only or for writing."
17336 msgstr ""
17337
17338 #. type: textblock
17339 #: ../fish/guestfish.pod:478
17340 msgid ""
17341 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
17342 "opening disk images supplied on the command line for write.  To open a disk "
17343 "image read-only you have to do I<-a image --ro>."
17344 msgstr ""
17345
17346 #. type: textblock
17347 #: ../fish/guestfish.pod:482
17348 msgid ""
17349 "This matters: If you accidentally open a live VM disk image writable then "
17350 "you will cause irreversible disk corruption."
17351 msgstr ""
17352
17353 #. type: textblock
17354 #: ../fish/guestfish.pod:485
17355 msgid ""
17356 "In a future libguestfs we intend to change the default the other way.  Disk "
17357 "images will be opened read-only.  You will have to either specify "
17358 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
17359 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
17360 "access for disk images specified by those other command line options."
17361 msgstr ""
17362
17363 #. type: textblock
17364 #: ../fish/guestfish.pod:492
17365 msgid ""
17366 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
17367 "which does nothing (it is already the default).  However it is highly "
17368 "recommended that you use this option to indicate that you need write access, "
17369 "and prepare your scripts for the day when this option will be required for "
17370 "write access."
17371 msgstr ""
17372
17373 #. type: textblock
17374 #: ../fish/guestfish.pod:498
17375 msgid ""
17376 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17377 "other libguestfs program apart from guestfish and guestmount."
17378 msgstr ""
17379
17380 #. type: =head1
17381 #: ../fish/guestfish.pod:501
17382 msgid "QUOTING"
17383 msgstr ""
17384
17385 #. type: textblock
17386 #: ../fish/guestfish.pod:503
17387 msgid ""
17388 "You can quote ordinary parameters using either single or double quotes.  For "
17389 "example:"
17390 msgstr ""
17391
17392 #. type: verbatim
17393 #: ../fish/guestfish.pod:506
17394 #, no-wrap
17395 msgid ""
17396 " add \"file with a space.img\"\n"
17397 "\n"
17398 msgstr ""
17399
17400 #. type: verbatim
17401 #: ../fish/guestfish.pod:508
17402 #, no-wrap
17403 msgid ""
17404 " rm '/file name'\n"
17405 "\n"
17406 msgstr ""
17407
17408 #. type: verbatim
17409 #: ../fish/guestfish.pod:510
17410 #, no-wrap
17411 msgid ""
17412 " rm '/\"'\n"
17413 "\n"
17414 msgstr ""
17415
17416 #. type: textblock
17417 #: ../fish/guestfish.pod:512
17418 msgid ""
17419 "A few commands require a list of strings to be passed.  For these, use a "
17420 "whitespace-separated list, enclosed in quotes.  Strings containing "
17421 "whitespace to be passed through must be enclosed in single quotes.  A "
17422 "literal single quote must be escaped with a backslash."
17423 msgstr ""
17424
17425 #. type: verbatim
17426 #: ../fish/guestfish.pod:517
17427 #, no-wrap
17428 msgid ""
17429 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17430 " command \"/bin/echo 'foo      bar'\"\n"
17431 " command \"/bin/echo \\'foo\\'\"\n"
17432 "\n"
17433 msgstr ""
17434
17435 #. type: =head2
17436 #: ../fish/guestfish.pod:521
17437 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
17438 msgstr ""
17439
17440 #. type: textblock
17441 #: ../fish/guestfish.pod:523
17442 msgid ""
17443 "In double-quoted arguments (only) use backslash to insert special characters:"
17444 msgstr ""
17445
17446 #. type: =item
17447 #: ../fish/guestfish.pod:528
17448 msgid "C<\\a>"
17449 msgstr ""
17450
17451 #. type: textblock
17452 #: ../fish/guestfish.pod:530
17453 msgid "Alert (bell) character."
17454 msgstr ""
17455
17456 #. type: =item
17457 #: ../fish/guestfish.pod:532
17458 msgid "C<\\b>"
17459 msgstr ""
17460
17461 #. type: textblock
17462 #: ../fish/guestfish.pod:534
17463 msgid "Backspace character."
17464 msgstr ""
17465
17466 #. type: =item
17467 #: ../fish/guestfish.pod:536
17468 msgid "C<\\f>"
17469 msgstr ""
17470
17471 #. type: textblock
17472 #: ../fish/guestfish.pod:538
17473 msgid "Form feed character."
17474 msgstr ""
17475
17476 #. type: =item
17477 #: ../fish/guestfish.pod:540
17478 msgid "C<\\n>"
17479 msgstr ""
17480
17481 #. type: textblock
17482 #: ../fish/guestfish.pod:542
17483 msgid "Newline character."
17484 msgstr ""
17485
17486 #. type: =item
17487 #: ../fish/guestfish.pod:544
17488 msgid "C<\\r>"
17489 msgstr ""
17490
17491 #. type: textblock
17492 #: ../fish/guestfish.pod:546
17493 msgid "Carriage return character."
17494 msgstr ""
17495
17496 #. type: =item
17497 #: ../fish/guestfish.pod:548
17498 msgid "C<\\t>"
17499 msgstr ""
17500
17501 #. type: textblock
17502 #: ../fish/guestfish.pod:550
17503 msgid "Horizontal tab character."
17504 msgstr ""
17505
17506 #. type: =item
17507 #: ../fish/guestfish.pod:552
17508 msgid "C<\\v>"
17509 msgstr ""
17510
17511 #. type: textblock
17512 #: ../fish/guestfish.pod:554
17513 msgid "Vertical tab character."
17514 msgstr ""
17515
17516 #. type: =item
17517 #: ../fish/guestfish.pod:556
17518 msgid "C<\\\">"
17519 msgstr ""
17520
17521 #. type: textblock
17522 #: ../fish/guestfish.pod:558
17523 msgid "A literal double quote character."
17524 msgstr ""
17525
17526 #. type: =item
17527 #: ../fish/guestfish.pod:560
17528 msgid "C<\\ooo>"
17529 msgstr ""
17530
17531 #. type: textblock
17532 #: ../fish/guestfish.pod:562
17533 msgid ""
17534 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
17535 "(unlike C)."
17536 msgstr ""
17537
17538 #. type: =item
17539 #: ../fish/guestfish.pod:565
17540 msgid "C<\\xhh>"
17541 msgstr ""
17542
17543 #. type: textblock
17544 #: ../fish/guestfish.pod:567
17545 msgid ""
17546 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
17547 msgstr ""
17548
17549 #. type: textblock
17550 #: ../fish/guestfish.pod:570
17551 msgid ""
17552 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
17553 "strings."
17554 msgstr ""
17555
17556 #. type: =item
17557 #: ../fish/guestfish.pod:573
17558 msgid "C<\\\\>"
17559 msgstr ""
17560
17561 #. type: textblock
17562 #: ../fish/guestfish.pod:575
17563 msgid "A literal backslash character."
17564 msgstr ""
17565
17566 #. type: =head1
17567 #: ../fish/guestfish.pod:579
17568 msgid "OPTIONAL ARGUMENTS"
17569 msgstr ""
17570
17571 #. type: textblock
17572 #: ../fish/guestfish.pod:581
17573 msgid ""
17574 "Some commands take optional arguments.  These arguments appear in this "
17575 "documentation as C<[argname:..]>.  You can use them as in these examples:"
17576 msgstr ""
17577
17578 #. type: verbatim
17579 #: ../fish/guestfish.pod:585
17580 #, no-wrap
17581 msgid ""
17582 " add-drive-opts filename\n"
17583 "\n"
17584 msgstr ""
17585
17586 #. type: verbatim
17587 #: ../fish/guestfish.pod:587
17588 #, no-wrap
17589 msgid ""
17590 " add-drive-opts filename readonly:true\n"
17591 "\n"
17592 msgstr ""
17593
17594 #. type: verbatim
17595 #: ../fish/guestfish.pod:589
17596 #, no-wrap
17597 msgid ""
17598 " add-drive-opts filename format:qcow2 readonly:false\n"
17599 "\n"
17600 msgstr ""
17601
17602 #. type: textblock
17603 #: ../fish/guestfish.pod:591
17604 msgid ""
17605 "Each optional argument can appear at most once.  All optional arguments must "
17606 "appear after the required ones."
17607 msgstr ""
17608
17609 #. type: =head1
17610 #: ../fish/guestfish.pod:594
17611 msgid "NUMBERS"
17612 msgstr ""
17613
17614 #. type: textblock
17615 #: ../fish/guestfish.pod:596
17616 msgid ""
17617 "This section applies to all commands which can take integers as parameters."
17618 msgstr ""
17619
17620 #. type: =head2
17621 #: ../fish/guestfish.pod:599
17622 msgid "SIZE SUFFIX"
17623 msgstr ""
17624
17625 #. type: textblock
17626 #: ../fish/guestfish.pod:601
17627 msgid ""
17628 "When the command takes a parameter measured in bytes, you can use one of the "
17629 "following suffixes to specify kilobytes, megabytes and larger sizes:"
17630 msgstr ""
17631
17632 #. type: =item
17633 #: ../fish/guestfish.pod:607
17634 msgid "B<k> or B<K> or B<KiB>"
17635 msgstr ""
17636
17637 #. type: textblock
17638 #: ../fish/guestfish.pod:609
17639 msgid "The size in kilobytes (multiplied by 1024)."
17640 msgstr ""
17641
17642 #. type: =item
17643 #: ../fish/guestfish.pod:611
17644 msgid "B<KB>"
17645 msgstr ""
17646
17647 #. type: textblock
17648 #: ../fish/guestfish.pod:613
17649 msgid "The size in SI 1000 byte units."
17650 msgstr ""
17651
17652 #. type: =item
17653 #: ../fish/guestfish.pod:615
17654 msgid "B<M> or B<MiB>"
17655 msgstr ""
17656
17657 #. type: textblock
17658 #: ../fish/guestfish.pod:617
17659 msgid "The size in megabytes (multiplied by 1048576)."
17660 msgstr ""
17661
17662 #. type: =item
17663 #: ../fish/guestfish.pod:619
17664 msgid "B<MB>"
17665 msgstr ""
17666
17667 #. type: textblock
17668 #: ../fish/guestfish.pod:621
17669 msgid "The size in SI 1000000 byte units."
17670 msgstr ""
17671
17672 #. type: =item
17673 #: ../fish/guestfish.pod:623
17674 msgid "B<G> or B<GiB>"
17675 msgstr ""
17676
17677 #. type: textblock
17678 #: ../fish/guestfish.pod:625
17679 msgid "The size in gigabytes (multiplied by 2**30)."
17680 msgstr ""
17681
17682 #. type: =item
17683 #: ../fish/guestfish.pod:627
17684 msgid "B<GB>"
17685 msgstr ""
17686
17687 #. type: textblock
17688 #: ../fish/guestfish.pod:629
17689 msgid "The size in SI 10**9 byte units."
17690 msgstr ""
17691
17692 #. type: =item
17693 #: ../fish/guestfish.pod:631
17694 msgid "B<T> or B<TiB>"
17695 msgstr ""
17696
17697 #. type: textblock
17698 #: ../fish/guestfish.pod:633
17699 msgid "The size in terabytes (multiplied by 2**40)."
17700 msgstr ""
17701
17702 #. type: =item
17703 #: ../fish/guestfish.pod:635
17704 msgid "B<TB>"
17705 msgstr ""
17706
17707 #. type: textblock
17708 #: ../fish/guestfish.pod:637
17709 msgid "The size in SI 10**12 byte units."
17710 msgstr ""
17711
17712 #. type: =item
17713 #: ../fish/guestfish.pod:639
17714 msgid "B<P> or B<PiB>"
17715 msgstr ""
17716
17717 #. type: textblock
17718 #: ../fish/guestfish.pod:641
17719 msgid "The size in petabytes (multiplied by 2**50)."
17720 msgstr ""
17721
17722 #. type: =item
17723 #: ../fish/guestfish.pod:643
17724 msgid "B<PB>"
17725 msgstr ""
17726
17727 #. type: textblock
17728 #: ../fish/guestfish.pod:645
17729 msgid "The size in SI 10**15 byte units."
17730 msgstr ""
17731
17732 #. type: =item
17733 #: ../fish/guestfish.pod:647
17734 msgid "B<E> or B<EiB>"
17735 msgstr ""
17736
17737 #. type: textblock
17738 #: ../fish/guestfish.pod:649
17739 msgid "The size in exabytes (multiplied by 2**60)."
17740 msgstr ""
17741
17742 #. type: =item
17743 #: ../fish/guestfish.pod:651
17744 msgid "B<EB>"
17745 msgstr ""
17746
17747 #. type: textblock
17748 #: ../fish/guestfish.pod:653
17749 msgid "The size in SI 10**18 byte units."
17750 msgstr ""
17751
17752 #. type: =item
17753 #: ../fish/guestfish.pod:655
17754 msgid "B<Z> or B<ZiB>"
17755 msgstr ""
17756
17757 #. type: textblock
17758 #: ../fish/guestfish.pod:657
17759 msgid "The size in zettabytes (multiplied by 2**70)."
17760 msgstr ""
17761
17762 #. type: =item
17763 #: ../fish/guestfish.pod:659
17764 msgid "B<ZB>"
17765 msgstr ""
17766
17767 #. type: textblock
17768 #: ../fish/guestfish.pod:661
17769 msgid "The size in SI 10**21 byte units."
17770 msgstr ""
17771
17772 #. type: =item
17773 #: ../fish/guestfish.pod:663
17774 msgid "B<Y> or B<YiB>"
17775 msgstr ""
17776
17777 #. type: textblock
17778 #: ../fish/guestfish.pod:665
17779 msgid "The size in yottabytes (multiplied by 2**80)."
17780 msgstr ""
17781
17782 #. type: =item
17783 #: ../fish/guestfish.pod:667
17784 msgid "B<YB>"
17785 msgstr ""
17786
17787 #. type: textblock
17788 #: ../fish/guestfish.pod:669
17789 msgid "The size in SI 10**24 byte units."
17790 msgstr ""
17791
17792 #. type: verbatim
17793 #: ../fish/guestfish.pod:675
17794 #, no-wrap
17795 msgid ""
17796 " truncate-size /file 1G\n"
17797 "\n"
17798 msgstr ""
17799
17800 #. type: textblock
17801 #: ../fish/guestfish.pod:677
17802 msgid "would truncate the file to 1 gigabyte."
17803 msgstr ""
17804
17805 #. type: textblock
17806 #: ../fish/guestfish.pod:679
17807 msgid ""
17808 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
17809 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
17810 "suffix will probably not do what you expect."
17811 msgstr ""
17812
17813 #. type: =head2
17814 #: ../fish/guestfish.pod:683
17815 msgid "OCTAL AND HEXADECIMAL NUMBERS"
17816 msgstr ""
17817
17818 #. type: textblock
17819 #: ../fish/guestfish.pod:685
17820 msgid ""
17821 "For specifying the radix (base) use the C convention: C<0> to prefix an "
17822 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
17823 msgstr ""
17824
17825 #. type: verbatim
17826 #: ../fish/guestfish.pod:688
17827 #, no-wrap
17828 msgid ""
17829 " 1234      decimal number 1234\n"
17830 " 02322     octal number, equivalent to decimal 1234\n"
17831 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
17832 "\n"
17833 msgstr ""
17834
17835 #. type: textblock
17836 #: ../fish/guestfish.pod:692
17837 msgid ""
17838 "When using the C<chmod> command, you almost always want to specify an octal "
17839 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
17840 "L<chmod(1)> program):"
17841 msgstr ""
17842
17843 #. type: verbatim
17844 #: ../fish/guestfish.pod:696
17845 #, no-wrap
17846 msgid ""
17847 " chmod 0777 /public  # OK\n"
17848 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
17849 "\n"
17850 msgstr ""
17851
17852 #. type: textblock
17853 #: ../fish/guestfish.pod:699
17854 msgid ""
17855 "Commands that return numbers usually print them in decimal, but some "
17856 "commands print numbers in other radices (eg. C<umask> prints the mode in "
17857 "octal, preceeded by C<0>)."
17858 msgstr ""
17859
17860 #. type: =head1
17861 #: ../fish/guestfish.pod:703
17862 msgid "WILDCARDS AND GLOBBING"
17863 msgstr ""
17864
17865 #. type: textblock
17866 #: ../fish/guestfish.pod:705
17867 msgid ""
17868 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
17869 "(globbing) by default.  So for example the following will not do what you "
17870 "expect:"
17871 msgstr ""
17872
17873 #. type: verbatim
17874 #: ../fish/guestfish.pod:709
17875 #, no-wrap
17876 msgid ""
17877 " rm-rf /home/*\n"
17878 "\n"
17879 msgstr ""
17880
17881 #. type: textblock
17882 #: ../fish/guestfish.pod:711
17883 msgid ""
17884 "Assuming you don't have a directory called literally C</home/*> then the "
17885 "above command will return an error."
17886 msgstr ""
17887
17888 #. type: textblock
17889 #: ../fish/guestfish.pod:714
17890 msgid "To perform wildcard expansion, use the C<glob> command."
17891 msgstr ""
17892
17893 #. type: verbatim
17894 #: ../fish/guestfish.pod:716
17895 #, no-wrap
17896 msgid ""
17897 " glob rm-rf /home/*\n"
17898 "\n"
17899 msgstr ""
17900
17901 #. type: textblock
17902 #: ../fish/guestfish.pod:718
17903 msgid ""
17904 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
17905 "many times), equivalent to:"
17906 msgstr ""
17907
17908 #. type: verbatim
17909 #: ../fish/guestfish.pod:721
17910 #, no-wrap
17911 msgid ""
17912 " rm-rf /home/jim\n"
17913 " rm-rf /home/joe\n"
17914 " rm-rf /home/mary\n"
17915 "\n"
17916 msgstr ""
17917
17918 #. type: textblock
17919 #: ../fish/guestfish.pod:725
17920 msgid "C<glob> only works on simple guest paths and not on device names."
17921 msgstr ""
17922
17923 #. type: textblock
17924 #: ../fish/guestfish.pod:727
17925 msgid ""
17926 "If you have several parameters, each containing a wildcard, then glob will "
17927 "perform a Cartesian product."
17928 msgstr ""
17929
17930 #. type: =head1
17931 #: ../fish/guestfish.pod:730
17932 msgid "COMMENTS"
17933 msgstr ""
17934
17935 #. type: textblock
17936 #: ../fish/guestfish.pod:732
17937 msgid ""
17938 "Any line which starts with a I<#> character is treated as a comment and "
17939 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
17940 "a command.  For example:"
17941 msgstr ""
17942
17943 #. type: verbatim
17944 #: ../fish/guestfish.pod:736
17945 #, no-wrap
17946 msgid ""
17947 " # this is a comment\n"
17948 "         # this is a comment\n"
17949 " foo # NOT a comment\n"
17950 "\n"
17951 msgstr ""
17952
17953 #. type: textblock
17954 #: ../fish/guestfish.pod:740
17955 msgid "Blank lines are also ignored."
17956 msgstr ""
17957
17958 #. type: =head1
17959 #: ../fish/guestfish.pod:742
17960 msgid "RUNNING COMMANDS LOCALLY"
17961 msgstr ""
17962
17963 #. type: textblock
17964 #: ../fish/guestfish.pod:744
17965 msgid ""
17966 "Any line which starts with a I<!> character is treated as a command sent to "
17967 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
17968 msgstr ""
17969
17970 #. type: verbatim
17971 #: ../fish/guestfish.pod:748
17972 #, no-wrap
17973 msgid ""
17974 " !mkdir local\n"
17975 " tgz-out /remote local/remote-data.tar.gz\n"
17976 "\n"
17977 msgstr ""
17978
17979 #. type: textblock
17980 #: ../fish/guestfish.pod:751
17981 msgid ""
17982 "will create a directory C<local> on the host, and then export the contents "
17983 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
17984 "(See C<tgz-out>)."
17985 msgstr ""
17986
17987 #. type: textblock
17988 #: ../fish/guestfish.pod:755
17989 msgid ""
17990 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
17991 "effect, due to the way that subprocesses work in Unix."
17992 msgstr ""
17993
17994 #. type: =head2
17995 #: ../fish/guestfish.pod:758
17996 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
17997 msgstr ""
17998
17999 #. type: textblock
18000 #: ../fish/guestfish.pod:760
18001 msgid ""
18002 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
18003 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
18004 "and executed as guestfish commands."
18005 msgstr ""
18006
18007 #. type: textblock
18008 #: ../fish/guestfish.pod:764
18009 msgid ""
18010 "Thus you can use shell script to construct arbitrary guestfish commands "
18011 "which are then parsed by guestfish."
18012 msgstr ""
18013
18014 #. type: textblock
18015 #: ../fish/guestfish.pod:767
18016 msgid ""
18017 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
18018 "through C</foo.100>) using guestfish commands alone.  However this is simple "
18019 "if we use a shell script to create the guestfish commands for us:"
18020 msgstr ""
18021
18022 #. type: verbatim
18023 #: ../fish/guestfish.pod:772
18024 #, no-wrap
18025 msgid ""
18026 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
18027 "\n"
18028 msgstr ""
18029
18030 #. type: textblock
18031 #: ../fish/guestfish.pod:774
18032 msgid "or with names like C</foo.001>:"
18033 msgstr ""
18034
18035 #. type: verbatim
18036 #: ../fish/guestfish.pod:776
18037 #, no-wrap
18038 msgid ""
18039 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
18040 "\n"
18041 msgstr ""
18042
18043 #. type: textblock
18044 #: ../fish/guestfish.pod:778
18045 msgid ""
18046 "When using guestfish interactively it can be helpful to just run the shell "
18047 "script first (ie. remove the initial C<E<lt>> character so it is just an "
18048 "ordinary I<!> local command), see what guestfish commands it would run, and "
18049 "when you are happy with those prepend the C<E<lt>> character to run the "
18050 "guestfish commands for real."
18051 msgstr ""
18052
18053 #. type: =head1
18054 #: ../fish/guestfish.pod:784
18055 msgid "PIPES"
18056 msgstr ""
18057
18058 #. type: textblock
18059 #: ../fish/guestfish.pod:786
18060 msgid ""
18061 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18062 "command (a guestfish command) to the second command (any host command).  For "
18063 "example:"
18064 msgstr ""
18065
18066 #. type: verbatim
18067 #: ../fish/guestfish.pod:790
18068 #, no-wrap
18069 msgid ""
18070 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18071 "\n"
18072 msgstr ""
18073
18074 #. type: textblock
18075 #: ../fish/guestfish.pod:792
18076 msgid ""
18077 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18078 "program).  The above command would list all accounts in the guest filesystem "
18079 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
18080 msgstr ""
18081
18082 #. type: verbatim
18083 #: ../fish/guestfish.pod:797
18084 #, no-wrap
18085 msgid ""
18086 " hexdump /bin/ls | head\n"
18087 " list-devices | tail -1\n"
18088 " tgz-out / - | tar ztf -\n"
18089 "\n"
18090 msgstr ""
18091
18092 #. type: textblock
18093 #: ../fish/guestfish.pod:801
18094 msgid ""
18095 "The space before the pipe symbol is required, any space after the pipe "
18096 "symbol is optional.  Everything after the pipe symbol is just passed "
18097 "straight to the host shell, so it can contain redirections, globs and "
18098 "anything else that makes sense on the host side."
18099 msgstr ""
18100
18101 #. type: textblock
18102 #: ../fish/guestfish.pod:806
18103 msgid ""
18104 "To use a literal argument which begins with a pipe symbol, you have to quote "
18105 "it, eg:"
18106 msgstr ""
18107
18108 #. type: verbatim
18109 #: ../fish/guestfish.pod:809
18110 #, no-wrap
18111 msgid ""
18112 " echo \"|\"\n"
18113 "\n"
18114 msgstr ""
18115
18116 #. type: =head1
18117 #: ../fish/guestfish.pod:811
18118 msgid "HOME DIRECTORIES"
18119 msgstr ""
18120
18121 #. type: textblock
18122 #: ../fish/guestfish.pod:813
18123 msgid ""
18124 "If a parameter starts with the character C<~> then the tilde may be expanded "
18125 "as a home directory path (either C<~> for the current user's home directory, "
18126 "or C<~user> for another user)."
18127 msgstr ""
18128
18129 #. type: textblock
18130 #: ../fish/guestfish.pod:817
18131 msgid ""
18132 "Note that home directory expansion happens for users known I<on the host>, "
18133 "not in the guest filesystem."
18134 msgstr ""
18135
18136 #. type: textblock
18137 #: ../fish/guestfish.pod:820
18138 msgid ""
18139 "To use a literal argument which begins with a tilde, you have to quote it, "
18140 "eg:"
18141 msgstr ""
18142
18143 #. type: verbatim
18144 #: ../fish/guestfish.pod:823
18145 #, no-wrap
18146 msgid ""
18147 " echo \"~\"\n"
18148 "\n"
18149 msgstr ""
18150
18151 #. type: =head2
18152 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
18153 msgid "ENCRYPTED DISKS"
18154 msgstr ""
18155
18156 #. type: textblock
18157 #: ../fish/guestfish.pod:827
18158 msgid ""
18159 "Libguestfs has some support for Linux guests encrypted according to the "
18160 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18161 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
18162 "LUKS is supported."
18163 msgstr ""
18164
18165 #. type: textblock
18166 #: ../fish/guestfish.pod:832
18167 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18168 msgstr ""
18169
18170 #. type: verbatim
18171 #: ../fish/guestfish.pod:834
18172 #, no-wrap
18173 msgid ""
18174 " ><fs> vfs-type /dev/sda2\n"
18175 " crypto_LUKS\n"
18176 "\n"
18177 msgstr ""
18178
18179 #. type: textblock
18180 #: ../fish/guestfish.pod:837
18181 msgid ""
18182 "Then open those devices using L</luks-open>.  This creates a device-mapper "
18183 "device called C</dev/mapper/luksdev>."
18184 msgstr ""
18185
18186 #. type: verbatim
18187 #: ../fish/guestfish.pod:840
18188 #, no-wrap
18189 msgid ""
18190 " ><fs> luks-open /dev/sda2 luksdev\n"
18191 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18192 "\n"
18193 msgstr ""
18194
18195 #. type: textblock
18196 #: ../fish/guestfish.pod:843
18197 msgid ""
18198 "Finally you have to tell LVM to scan for volume groups on the newly created "
18199 "mapper device:"
18200 msgstr ""
18201
18202 #. type: verbatim
18203 #: ../fish/guestfish.pod:846
18204 #, no-wrap
18205 msgid ""
18206 " vgscan\n"
18207 " vg-activate-all true\n"
18208 "\n"
18209 msgstr ""
18210
18211 #. type: textblock
18212 #: ../fish/guestfish.pod:849
18213 msgid "The logical volume(s) can now be mounted in the usual way."
18214 msgstr ""
18215
18216 #. type: textblock
18217 #: ../fish/guestfish.pod:851
18218 msgid ""
18219 "Before closing a LUKS device you must unmount any logical volumes on it and "
18220 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18221 "one.  Then you can close the mapper device:"
18222 msgstr ""
18223
18224 #. type: verbatim
18225 #: ../fish/guestfish.pod:855
18226 #, no-wrap
18227 msgid ""
18228 " vg-activate false /dev/VG\n"
18229 " luks-close /dev/mapper/luksdev\n"
18230 "\n"
18231 msgstr ""
18232
18233 #. type: textblock
18234 #: ../fish/guestfish.pod:860
18235 msgid ""
18236 "If a path is prefixed with C<win:> then you can use Windows-style drive "
18237 "letters and paths (with some limitations).  The following commands are "
18238 "equivalent:"
18239 msgstr ""
18240
18241 #. type: verbatim
18242 #: ../fish/guestfish.pod:864
18243 #, no-wrap
18244 msgid ""
18245 " file /WINDOWS/system32/config/system.LOG\n"
18246 "\n"
18247 msgstr ""
18248
18249 #. type: verbatim
18250 #: ../fish/guestfish.pod:866
18251 #, no-wrap
18252 msgid ""
18253 " file win:\\windows\\system32\\config\\system.log\n"
18254 "\n"
18255 msgstr ""
18256
18257 #. type: verbatim
18258 #: ../fish/guestfish.pod:868
18259 #, no-wrap
18260 msgid ""
18261 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
18262 "\n"
18263 msgstr ""
18264
18265 #. type: textblock
18266 #: ../fish/guestfish.pod:870
18267 msgid ""
18268 "The parameter is rewritten \"behind the scenes\" by looking up the position "
18269 "where the drive is mounted, prepending that to the path, changing all "
18270 "backslash characters to forward slash, then resolving the result using L</"
18271 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
18272 "the parameter might be rewritten like this:"
18273 msgstr ""
18274
18275 #. type: verbatim
18276 #: ../fish/guestfish.pod:876
18277 #, no-wrap
18278 msgid ""
18279 " win:e:\\foo\\bar => /e/FOO/bar\n"
18280 "\n"
18281 msgstr ""
18282
18283 #. type: textblock
18284 #: ../fish/guestfish.pod:878
18285 msgid "This only works in argument positions that expect a path."
18286 msgstr ""
18287
18288 #. type: =head1
18289 #: ../fish/guestfish.pod:880
18290 msgid "UPLOADING AND DOWNLOADING FILES"
18291 msgstr ""
18292
18293 #. type: textblock
18294 #: ../fish/guestfish.pod:882
18295 msgid ""
18296 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18297 "others which upload from or download to a local file, you can use the "
18298 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
18299 msgstr ""
18300
18301 #. type: verbatim
18302 #: ../fish/guestfish.pod:886
18303 #, no-wrap
18304 msgid ""
18305 " upload - /foo\n"
18306 "\n"
18307 msgstr ""
18308
18309 #. type: textblock
18310 #: ../fish/guestfish.pod:888
18311 msgid ""
18312 "reads stdin and creates from that a file C</foo> in the disk image, and:"
18313 msgstr ""
18314
18315 #. type: verbatim
18316 #: ../fish/guestfish.pod:891
18317 #, no-wrap
18318 msgid ""
18319 " tar-out /etc - | tar tf -\n"
18320 "\n"
18321 msgstr ""
18322
18323 #. type: textblock
18324 #: ../fish/guestfish.pod:893
18325 msgid ""
18326 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18327 "command (see L</PIPES>)."
18328 msgstr ""
18329
18330 #. type: textblock
18331 #: ../fish/guestfish.pod:896
18332 msgid ""
18333 "When using C<-> to read from stdin, the input is read up to the end of "
18334 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
18335 "some arbitrary end marker:"
18336 msgstr ""
18337
18338 #. type: verbatim
18339 #: ../fish/guestfish.pod:900
18340 #, no-wrap
18341 msgid ""
18342 " upload -<<END /foo\n"
18343 " input line 1\n"
18344 " input line 2\n"
18345 " input line 3\n"
18346 " END\n"
18347 "\n"
18348 msgstr ""
18349
18350 #. type: textblock
18351 #: ../fish/guestfish.pod:906
18352 msgid ""
18353 "Any string of characters can be used instead of C<END>.  The end marker must "
18354 "appear on a line of its own, without any preceeding or following characters "
18355 "(not even spaces)."
18356 msgstr ""
18357
18358 #. type: textblock
18359 #: ../fish/guestfish.pod:910
18360 msgid ""
18361 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18362 "upload local files (so-called \"FileIn\" parameters in the generator)."
18363 msgstr ""
18364
18365 #. type: =head1
18366 #: ../fish/guestfish.pod:913
18367 msgid "EXIT ON ERROR BEHAVIOUR"
18368 msgstr ""
18369
18370 #. type: textblock
18371 #: ../fish/guestfish.pod:915
18372 msgid ""
18373 "By default, guestfish will ignore any errors when in interactive mode (ie. "
18374 "taking commands from a human over a tty), and will exit on the first error "
18375 "in non-interactive mode (scripts, commands given on the command line)."
18376 msgstr ""
18377
18378 #. type: textblock
18379 #: ../fish/guestfish.pod:920
18380 msgid ""
18381 "If you prefix a command with a I<-> character, then that command will not "
18382 "cause guestfish to exit, even if that (one) command returns an error."
18383 msgstr ""
18384
18385 #. type: =head1
18386 #: ../fish/guestfish.pod:924
18387 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18388 msgstr ""
18389
18390 #. type: textblock
18391 #: ../fish/guestfish.pod:926
18392 msgid ""
18393 "Guestfish can be remote-controlled over a socket.  This is useful "
18394 "particularly in shell scripts where you want to make several different "
18395 "changes to a filesystem, but you don't want the overhead of starting up a "
18396 "guestfish process each time."
18397 msgstr ""
18398
18399 #. type: textblock
18400 #: ../fish/guestfish.pod:931
18401 msgid "Start a guestfish server process using:"
18402 msgstr ""
18403
18404 #. type: verbatim
18405 #: ../fish/guestfish.pod:933
18406 #, no-wrap
18407 msgid ""
18408 " eval \"`guestfish --listen`\"\n"
18409 "\n"
18410 msgstr ""
18411
18412 #. type: textblock
18413 #: ../fish/guestfish.pod:935
18414 msgid "and then send it commands by doing:"
18415 msgstr ""
18416
18417 #. type: verbatim
18418 #: ../fish/guestfish.pod:937
18419 #, no-wrap
18420 msgid ""
18421 " guestfish --remote cmd [...]\n"
18422 "\n"
18423 msgstr ""
18424
18425 #. type: textblock
18426 #: ../fish/guestfish.pod:939
18427 msgid "To cause the server to exit, send it the exit command:"
18428 msgstr ""
18429
18430 #. type: textblock
18431 #: ../fish/guestfish.pod:943
18432 msgid ""
18433 "Note that the server will normally exit if there is an error in a command.  "
18434 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18435 "BEHAVIOUR>."
18436 msgstr ""
18437
18438 #. type: =head2
18439 #: ../fish/guestfish.pod:947
18440 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18441 msgstr ""
18442
18443 #. type: textblock
18444 #: ../fish/guestfish.pod:949
18445 msgid ""
18446 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18447 "is how the I<--remote> option knows where to send the commands.  You can "
18448 "have several guestfish listener processes running using:"
18449 msgstr ""
18450
18451 #. type: verbatim
18452 #: ../fish/guestfish.pod:953
18453 #, no-wrap
18454 msgid ""
18455 " eval \"`guestfish --listen`\"\n"
18456 " pid1=$GUESTFISH_PID\n"
18457 " eval \"`guestfish --listen`\"\n"
18458 " pid2=$GUESTFISH_PID\n"
18459 " ...\n"
18460 " guestfish --remote=$pid1 cmd\n"
18461 " guestfish --remote=$pid2 cmd\n"
18462 "\n"
18463 msgstr ""
18464
18465 #. type: =head2
18466 #: ../fish/guestfish.pod:961
18467 msgid "REMOTE CONTROL AND CSH"
18468 msgstr ""
18469
18470 #. type: textblock
18471 #: ../fish/guestfish.pod:963
18472 msgid ""
18473 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18474 "option:"
18475 msgstr ""
18476
18477 #. type: verbatim
18478 #: ../fish/guestfish.pod:966
18479 #, no-wrap
18480 msgid ""
18481 " eval \"`guestfish --listen --csh`\"\n"
18482 "\n"
18483 msgstr ""
18484
18485 #. type: =head2
18486 #: ../fish/guestfish.pod:968
18487 msgid "REMOTE CONTROL DETAILS"
18488 msgstr ""
18489
18490 #. type: textblock
18491 #: ../fish/guestfish.pod:970
18492 msgid ""
18493 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
18494 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
18495 "and C<$PID> is the process ID of the server."
18496 msgstr ""
18497
18498 #. type: textblock
18499 #: ../fish/guestfish.pod:974
18500 msgid "Guestfish client and server versions must match exactly."
18501 msgstr ""
18502
18503 #. type: =head2
18504 #: ../fish/guestfish.pod:976
18505 msgid "REMOTE CONTROL RUN COMMAND HANGING"
18506 msgstr ""
18507
18508 #. type: textblock
18509 #: ../fish/guestfish.pod:978
18510 msgid ""
18511 "Using the C<run> (or C<launch>) command remotely in a command substitution "
18512 "context hangs, ie. don't do (note the backquotes):"
18513 msgstr ""
18514
18515 #. type: verbatim
18516 #: ../fish/guestfish.pod:981
18517 #, no-wrap
18518 msgid ""
18519 " a=`guestfish --remote run`\n"
18520 "\n"
18521 msgstr ""
18522
18523 #. type: textblock
18524 #: ../fish/guestfish.pod:983
18525 msgid ""
18526 "Since the C<run> command produces no output on stdout, this is not useful "
18527 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
18528 "cgi?id=592910>."
18529 msgstr ""
18530
18531 #. type: =head1
18532 #: ../fish/guestfish.pod:987
18533 msgid "PREPARED DISK IMAGES"
18534 msgstr ""
18535
18536 #. type: textblock
18537 #: ../fish/guestfish.pod:989
18538 msgid ""
18539 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18540 "preformatted disk images that guestfish can make for you to save typing.  "
18541 "This is particularly useful for testing purposes.  This option is used "
18542 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18543 "can be mixed with I<-a>)."
18544 msgstr ""
18545
18546 #. type: textblock
18547 #: ../fish/guestfish.pod:995
18548 msgid ""
18549 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
18550 "the second and so on.  Existing files in the current directory are "
18551 "I<overwritten>."
18552 msgstr ""
18553
18554 #. type: textblock
18555 #: ../fish/guestfish.pod:999
18556 msgid ""
18557 "The type briefly describes how the disk should be sized, partitioned, how "
18558 "filesystem(s) should be created, and how content should be added.  "
18559 "Optionally the type can be followed by extra parameters, separated by C<:> "
18560 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
18561 "allocated disk, containing a single partition, with the partition formatted "
18562 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
18563 "disk instead."
18564 msgstr ""
18565
18566 #. type: textblock
18567 #: ../fish/guestfish.pod:1007
18568 msgid "To list the available types and any extra parameters they take, run:"
18569 msgstr ""
18570
18571 #. type: textblock
18572 #: ../fish/guestfish.pod:1011
18573 msgid ""
18574 "Note that the prepared filesystem is not mounted.  You would usually have to "
18575 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
18576 msgstr ""
18577
18578 #. type: textblock
18579 #: ../fish/guestfish.pod:1015
18580 msgid ""
18581 "If any I<-N> or I<--new> options are given, the guest is automatically "
18582 "launched."
18583 msgstr ""
18584
18585 #. type: textblock
18586 #: ../fish/guestfish.pod:1020
18587 msgid "Create a 100MB disk with an ext4-formatted partition:"
18588 msgstr ""
18589
18590 #. type: verbatim
18591 #: ../fish/guestfish.pod:1022
18592 #, no-wrap
18593 msgid ""
18594 " guestfish -N fs:ext4\n"
18595 "\n"
18596 msgstr ""
18597
18598 #. type: textblock
18599 #: ../fish/guestfish.pod:1024
18600 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
18601 msgstr ""
18602
18603 #. type: verbatim
18604 #: ../fish/guestfish.pod:1026
18605 #, no-wrap
18606 msgid ""
18607 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
18608 "\n"
18609 msgstr ""
18610
18611 #. type: textblock
18612 #: ../fish/guestfish.pod:1028
18613 msgid "Create a blank 200MB disk:"
18614 msgstr ""
18615
18616 #. type: verbatim
18617 #: ../fish/guestfish.pod:1030
18618 #, no-wrap
18619 msgid ""
18620 " guestfish -N disk:200M\n"
18621 "\n"
18622 msgstr ""
18623
18624 #. type: =head1
18625 #: ../fish/guestfish.pod:1032
18626 msgid "PROGRESS BARS"
18627 msgstr ""
18628
18629 #. type: textblock
18630 #: ../fish/guestfish.pod:1034
18631 msgid ""
18632 "Some (not all) long-running commands send progress notification messages as "
18633 "they are running.  Guestfish turns these messages into progress bars."
18634 msgstr ""
18635
18636 #. type: textblock
18637 #: ../fish/guestfish.pod:1038
18638 msgid ""
18639 "When a command that supports progress bars takes longer than two seconds to "
18640 "run, and if progress bars are enabled, then you will see one appearing below "
18641 "the command:"
18642 msgstr ""
18643
18644 #. type: verbatim
18645 #: ../fish/guestfish.pod:1042
18646 #, no-wrap
18647 msgid ""
18648 " ><fs> copy-size /large-file /another-file 2048M\n"
18649 " / 10% [#####-----------------------------------------] 00:30\n"
18650 "\n"
18651 msgstr ""
18652
18653 #. type: textblock
18654 #: ../fish/guestfish.pod:1045
18655 msgid ""
18656 "The spinner on the left hand side moves round once for every progress "
18657 "notification received from the backend.  This is a (reasonably) golden "
18658 "assurance that the command is \"doing something\" even if the progress bar "
18659 "is not moving, because the command is able to send the progress "
18660 "notifications.  When the bar reaches 100% and the command finishes, the "
18661 "spinner disappears."
18662 msgstr ""
18663
18664 #. type: textblock
18665 #: ../fish/guestfish.pod:1052
18666 msgid ""
18667 "Progress bars are enabled by default when guestfish is used interactively.  "
18668 "You can enable them even for non-interactive modes using I<--progress-bars>, "
18669 "and you can disable them completely using I<--no-progress-bars>."
18670 msgstr ""
18671
18672 #. type: =head1
18673 #: ../fish/guestfish.pod:1057
18674 msgid "GUESTFISH COMMANDS"
18675 msgstr ""
18676
18677 #. type: textblock
18678 #: ../fish/guestfish.pod:1059
18679 msgid ""
18680 "The commands in this section are guestfish convenience commands, in other "
18681 "words, they are not part of the L<guestfs(3)> API."
18682 msgstr ""
18683
18684 #. type: =head2
18685 #: ../fish/guestfish.pod:1062
18686 msgid "help"
18687 msgstr ""
18688
18689 #. type: verbatim
18690 #: ../fish/guestfish.pod:1064
18691 #, no-wrap
18692 msgid ""
18693 " help\n"
18694 " help cmd\n"
18695 "\n"
18696 msgstr ""
18697
18698 #. type: textblock
18699 #: ../fish/guestfish.pod:1067
18700 msgid "Without any parameter, this provides general help."
18701 msgstr ""
18702
18703 #. type: textblock
18704 #: ../fish/guestfish.pod:1069
18705 msgid "With a C<cmd> parameter, this displays detailed help for that command."
18706 msgstr ""
18707
18708 #. type: =head2
18709 #: ../fish/guestfish.pod:1071
18710 msgid "quit | exit"
18711 msgstr ""
18712
18713 #. type: textblock
18714 #: ../fish/guestfish.pod:1073
18715 msgid "This exits guestfish.  You can also use C<^D> key."
18716 msgstr ""
18717
18718 #. type: textblock
18719 #: ../fish/guestfish.pod:1075
18720 msgid "@FISH_COMMANDS@"
18721 msgstr ""
18722
18723 #. type: =head1
18724 #: ../fish/guestfish.pod:1077
18725 msgid "COMMANDS"
18726 msgstr ""
18727
18728 #. type: textblock
18729 #: ../fish/guestfish.pod:1079 ../src/guestfs.pod:1502
18730 msgid "@ACTIONS@"
18731 msgstr ""
18732
18733 #. type: textblock
18734 #: ../fish/guestfish.pod:1083
18735 msgid ""
18736 "guestfish returns 0 if the commands completed without error, or 1 if there "
18737 "was an error."
18738 msgstr ""
18739
18740 #. type: =item
18741 #: ../fish/guestfish.pod:1090
18742 msgid "EDITOR"
18743 msgstr ""
18744
18745 #. type: textblock
18746 #: ../fish/guestfish.pod:1092
18747 msgid ""
18748 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
18749 "C<vi>."
18750 msgstr ""
18751
18752 #. type: =item
18753 #: ../fish/guestfish.pod:1095 ../src/guestfs.pod:3107
18754 msgid "FEBOOTSTRAP_KERNEL"
18755 msgstr ""
18756
18757 #. type: =item
18758 #: ../fish/guestfish.pod:1097 ../src/guestfs.pod:3109
18759 msgid "FEBOOTSTRAP_MODULES"
18760 msgstr ""
18761
18762 #. type: textblock
18763 #: ../fish/guestfish.pod:1099 ../src/guestfs.pod:3111
18764 msgid ""
18765 "These two environment variables allow the kernel that libguestfs uses in the "
18766 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
18767 "most recent host kernel is chosen.  For more information about kernel "
18768 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
18769 "available in febootstrap E<ge> 3.8."
18770 msgstr ""
18771
18772 #. type: =item
18773 #: ../fish/guestfish.pod:1105
18774 msgid "GUESTFISH_DISPLAY_IMAGE"
18775 msgstr ""
18776
18777 #. type: textblock
18778 #: ../fish/guestfish.pod:1107
18779 msgid ""
18780 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
18781 "If not set, it uses L<display(1)>."
18782 msgstr ""
18783
18784 #. type: =item
18785 #: ../fish/guestfish.pod:1110
18786 msgid "GUESTFISH_PID"
18787 msgstr ""
18788
18789 #. type: textblock
18790 #: ../fish/guestfish.pod:1112
18791 msgid ""
18792 "Used with the I<--remote> option to specify the remote guestfish process to "
18793 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
18794 msgstr ""
18795
18796 #. type: =item
18797 #: ../fish/guestfish.pod:1116
18798 msgid "HEXEDITOR"
18799 msgstr ""
18800
18801 #. type: textblock
18802 #: ../fish/guestfish.pod:1118
18803 msgid ""
18804 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
18805 "not specified, the external L<hexedit(1)> program is used."
18806 msgstr ""
18807
18808 #. type: =item
18809 #: ../fish/guestfish.pod:1122
18810 msgid "HOME"
18811 msgstr ""
18812
18813 #. type: textblock
18814 #: ../fish/guestfish.pod:1124
18815 msgid ""
18816 "If compiled with GNU readline support, various files in the home directory "
18817 "can be used.  See L</FILES>."
18818 msgstr ""
18819
18820 #. type: =item
18821 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:3117
18822 msgid "LIBGUESTFS_APPEND"
18823 msgstr ""
18824
18825 #. type: textblock
18826 #: ../fish/guestfish.pod:1129 ../src/guestfs.pod:3119
18827 msgid "Pass additional options to the guest kernel."
18828 msgstr ""
18829
18830 #. type: =item
18831 #: ../fish/guestfish.pod:1131 ../src/guestfs.pod:3121
18832 msgid "LIBGUESTFS_DEBUG"
18833 msgstr ""
18834
18835 #. type: textblock
18836 #: ../fish/guestfish.pod:1133
18837 msgid ""
18838 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
18839 "effect as using the B<-v> option."
18840 msgstr ""
18841
18842 #. type: =item
18843 #: ../fish/guestfish.pod:1136 ../src/guestfs.pod:3126
18844 msgid "LIBGUESTFS_MEMSIZE"
18845 msgstr ""
18846
18847 #. type: textblock
18848 #: ../fish/guestfish.pod:1138 ../src/guestfs.pod:3128
18849 msgid ""
18850 "Set the memory allocated to the qemu process, in megabytes.  For example:"
18851 msgstr ""
18852
18853 #. type: verbatim
18854 #: ../fish/guestfish.pod:1141 ../src/guestfs.pod:3131
18855 #, no-wrap
18856 msgid ""
18857 " LIBGUESTFS_MEMSIZE=700\n"
18858 "\n"
18859 msgstr ""
18860
18861 #. type: =item
18862 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:3133
18863 msgid "LIBGUESTFS_PATH"
18864 msgstr ""
18865
18866 #. type: textblock
18867 #: ../fish/guestfish.pod:1145
18868 msgid ""
18869 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
18870 "the discussion of paths in L<guestfs(3)>."
18871 msgstr ""
18872
18873 #. type: =item
18874 #: ../fish/guestfish.pod:1148 ../src/guestfs.pod:3138
18875 msgid "LIBGUESTFS_QEMU"
18876 msgstr ""
18877
18878 #. type: textblock
18879 #: ../fish/guestfish.pod:1150 ../src/guestfs.pod:3140
18880 msgid ""
18881 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
18882 "which was found at compile time by the configure script is used."
18883 msgstr ""
18884
18885 #. type: =item
18886 #: ../fish/guestfish.pod:1154 ../src/guestfs.pod:3146
18887 msgid "LIBGUESTFS_TRACE"
18888 msgstr ""
18889
18890 #. type: textblock
18891 #: ../fish/guestfish.pod:1156
18892 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
18893 msgstr ""
18894
18895 #. type: =item
18896 #: ../fish/guestfish.pod:1158
18897 msgid "PAGER"
18898 msgstr ""
18899
18900 #. type: textblock
18901 #: ../fish/guestfish.pod:1160
18902 msgid ""
18903 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
18904 "C<more>."
18905 msgstr ""
18906
18907 #. type: =item
18908 #: ../fish/guestfish.pod:1163 ../src/guestfs.pod:3151
18909 msgid "TMPDIR"
18910 msgstr ""
18911
18912 #. type: textblock
18913 #: ../fish/guestfish.pod:1165 ../src/guestfs.pod:3153
18914 msgid ""
18915 "Location of temporary directory, defaults to C</tmp> except for the cached "
18916 "supermin appliance which defaults to C</var/tmp>."
18917 msgstr ""
18918
18919 #. type: textblock
18920 #: ../fish/guestfish.pod:1168 ../src/guestfs.pod:3156
18921 msgid ""
18922 "If libguestfs was compiled to use the supermin appliance then the real "
18923 "appliance is cached in this directory, shared between all handles belonging "
18924 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
18925 "use in case C</var/tmp> is not large enough."
18926 msgstr ""
18927
18928 #. type: =head1
18929 #: ../fish/guestfish.pod:1176 ../fuse/guestmount.pod:288
18930 #: ../rescue/virt-rescue.pod:273
18931 msgid "FILES"
18932 msgstr ""
18933
18934 #. type: =item
18935 #: ../fish/guestfish.pod:1180 ../fuse/guestmount.pod:292
18936 #: ../rescue/virt-rescue.pod:277
18937 msgid "$HOME/.libguestfs-tools.rc"
18938 msgstr ""
18939
18940 #. type: =item
18941 #: ../fish/guestfish.pod:1182 ../fuse/guestmount.pod:294
18942 #: ../rescue/virt-rescue.pod:279
18943 msgid "/etc/libguestfs-tools.conf"
18944 msgstr ""
18945
18946 #. type: textblock
18947 #: ../fish/guestfish.pod:1184 ../fuse/guestmount.pod:296
18948 #: ../rescue/virt-rescue.pod:281
18949 msgid ""
18950 "This configuration file controls the default read-only or read-write mode "
18951 "(I<--ro> or I<--rw>)."
18952 msgstr ""
18953
18954 #. type: textblock
18955 #: ../fish/guestfish.pod:1187
18956 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
18957 msgstr ""
18958
18959 #. type: =item
18960 #: ../fish/guestfish.pod:1189
18961 msgid "$HOME/.guestfish"
18962 msgstr ""
18963
18964 #. type: textblock
18965 #: ../fish/guestfish.pod:1191
18966 msgid ""
18967 "If compiled with GNU readline support, then the command history is saved in "
18968 "this file."
18969 msgstr ""
18970
18971 #. type: =item
18972 #: ../fish/guestfish.pod:1194
18973 msgid "$HOME/.inputrc"
18974 msgstr ""
18975
18976 #. type: =item
18977 #: ../fish/guestfish.pod:1196
18978 msgid "/etc/inputrc"
18979 msgstr ""
18980
18981 #. type: textblock
18982 #: ../fish/guestfish.pod:1198
18983 msgid ""
18984 "If compiled with GNU readline support, then these files can be used to "
18985 "configure readline.  For further information, please see L<readline(3)/"
18986 "INITIALIZATION FILE>."
18987 msgstr ""
18988
18989 #. type: textblock
18990 #: ../fish/guestfish.pod:1202
18991 msgid "To write rules which only apply to guestfish, use:"
18992 msgstr ""
18993
18994 #. type: verbatim
18995 #: ../fish/guestfish.pod:1204
18996 #, no-wrap
18997 msgid ""
18998 " $if guestfish\n"
18999 " ...\n"
19000 " $endif\n"
19001 "\n"
19002 msgstr ""
19003
19004 #. type: textblock
19005 #: ../fish/guestfish.pod:1208
19006 msgid ""
19007 "Variables that you can set in inputrc that change the behaviour of guestfish "
19008 "in useful ways include:"
19009 msgstr ""
19010
19011 #. type: =item
19012 #: ../fish/guestfish.pod:1213
19013 msgid "completion-ignore-case (default: on)"
19014 msgstr ""
19015
19016 #. type: textblock
19017 #: ../fish/guestfish.pod:1215
19018 msgid ""
19019 "By default, guestfish will ignore case when tab-completing paths on the "
19020 "disk.  Use:"
19021 msgstr ""
19022
19023 #. type: verbatim
19024 #: ../fish/guestfish.pod:1218
19025 #, no-wrap
19026 msgid ""
19027 " set completion-ignore-case off\n"
19028 "\n"
19029 msgstr ""
19030
19031 #. type: textblock
19032 #: ../fish/guestfish.pod:1220
19033 msgid "to make guestfish case sensitive."
19034 msgstr ""
19035
19036 #. type: =item
19037 #: ../fish/guestfish.pod:1224
19038 msgid "test1.img"
19039 msgstr ""
19040
19041 #. type: =item
19042 #: ../fish/guestfish.pod:1226
19043 msgid "test2.img (etc)"
19044 msgstr ""
19045
19046 #. type: textblock
19047 #: ../fish/guestfish.pod:1228
19048 msgid ""
19049 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
19050 "will be created in the file C<test1.img> in the current directory.  The "
19051 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
19052 "the same name will be overwritten."
19053 msgstr ""
19054
19055 #. type: textblock
19056 #: ../fish/guestfish.pod:1237
19057 msgid ""
19058 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
19059 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
19060 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
19061 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
19062 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
19063 ">, L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
19064 msgstr ""
19065
19066 #. type: textblock
19067 #: ../fish/guestfish.pod:1266 ../src/guestfs.pod:3243
19068 #: ../test-tool/libguestfs-test-tool.pod:112
19069 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
19070 msgstr ""
19071
19072 #. type: textblock
19073 #: ../fish/virt-copy-in.pod:5
19074 msgid ""
19075 "virt-copy-in - Copy files and directories into a virtual machine disk image."
19076 msgstr ""
19077
19078 #. type: verbatim
19079 #: ../fish/virt-copy-in.pod:9
19080 #, no-wrap
19081 msgid ""
19082 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
19083 "\n"
19084 msgstr ""
19085
19086 #. type: verbatim
19087 #: ../fish/virt-copy-in.pod:11
19088 #, no-wrap
19089 msgid ""
19090 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
19091 "\n"
19092 msgstr ""
19093
19094 #. type: textblock
19095 #: ../fish/virt-copy-in.pod:15
19096 msgid ""
19097 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
19098 "causing disk corruption.  The virtual machine must be shut down before you "
19099 "use this command."
19100 msgstr ""
19101
19102 #. type: textblock
19103 #: ../fish/virt-copy-in.pod:21
19104 msgid ""
19105 "C<virt-copy-in> copies files and directories from the local disk into a "
19106 "virtual machine disk image or named libvirt domain."
19107 msgstr ""
19108
19109 #. type: textblock
19110 #: ../fish/virt-copy-in.pod:24
19111 msgid ""
19112 "You can give one of more filenames and directories on the command line.  "
19113 "Directories are copied in recursively.  The final parameter must be the "
19114 "destination directory in the disk image which must be an absolute path "
19115 "starting with a C</> character."
19116 msgstr ""
19117
19118 #. type: verbatim
19119 #: ../fish/virt-copy-in.pod:33
19120 #, no-wrap
19121 msgid ""
19122 " virt-copy-in -d MyGuest resolv.conf /etc\n"
19123 "\n"
19124 msgstr ""
19125
19126 #. type: textblock
19127 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
19128 msgid "Upload a home directory to a guest:"
19129 msgstr ""
19130
19131 #. type: verbatim
19132 #: ../fish/virt-copy-in.pod:37
19133 #, no-wrap
19134 msgid ""
19135 " virt-copy-in -d MyGuest skel /home\n"
19136 "\n"
19137 msgstr ""
19138
19139 #. type: =head1
19140 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
19141 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
19142 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
19143 msgstr ""
19144
19145 #. type: textblock
19146 #: ../fish/virt-copy-in.pod:41
19147 msgid ""
19148 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19149 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
19150 "are probably better off using guestfish directly."
19151 msgstr ""
19152
19153 #. type: textblock
19154 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
19155 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
19156 msgid ""
19157 "Since the shell script just passes options straight to guestfish, read "
19158 "L<guestfish(1)> to see the full list of options."
19159 msgstr ""
19160
19161 #. type: textblock
19162 #: ../fish/virt-copy-in.pod:52
19163 msgid ""
19164 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
19165 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19166 msgstr ""
19167
19168 #. type: textblock
19169 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
19170 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
19171 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
19172 msgstr ""
19173
19174 #. type: textblock
19175 #: ../fish/virt-copy-out.pod:5
19176 msgid ""
19177 "virt-copy-out - Copy files and directories out of a virtual machine disk "
19178 "image."
19179 msgstr ""
19180
19181 #. type: verbatim
19182 #: ../fish/virt-copy-out.pod:9
19183 #, no-wrap
19184 msgid ""
19185 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
19186 "\n"
19187 msgstr ""
19188
19189 #. type: verbatim
19190 #: ../fish/virt-copy-out.pod:11
19191 #, no-wrap
19192 msgid ""
19193 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
19194 "\n"
19195 msgstr ""
19196
19197 #. type: textblock
19198 #: ../fish/virt-copy-out.pod:15
19199 msgid ""
19200 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
19201 "image or named libvirt domain."
19202 msgstr ""
19203
19204 #. type: textblock
19205 #: ../fish/virt-copy-out.pod:18
19206 msgid ""
19207 "You can give one of more filenames and directories on the command line.  "
19208 "Directories are copied out recursively."
19209 msgstr ""
19210
19211 #. type: textblock
19212 #: ../fish/virt-copy-out.pod:23
19213 msgid "Download the home directories from a virtual machine:"
19214 msgstr ""
19215
19216 #. type: verbatim
19217 #: ../fish/virt-copy-out.pod:25
19218 #, no-wrap
19219 msgid ""
19220 " mkdir homes\n"
19221 " virt-copy-out -d MyGuest /home homes\n"
19222 "\n"
19223 msgstr ""
19224
19225 #. type: textblock
19226 #: ../fish/virt-copy-out.pod:30
19227 msgid ""
19228 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19229 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
19230 "are probably better off using guestfish directly."
19231 msgstr ""
19232
19233 #. type: textblock
19234 #: ../fish/virt-copy-out.pod:41
19235 msgid ""
19236 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
19237 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19238 msgstr ""
19239
19240 #. type: textblock
19241 #: ../fish/virt-tar-in.pod:5
19242 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
19243 msgstr ""
19244
19245 #. type: verbatim
19246 #: ../fish/virt-tar-in.pod:9
19247 #, no-wrap
19248 msgid ""
19249 " virt-tar-in -a disk.img data.tar /destination\n"
19250 "\n"
19251 msgstr ""
19252
19253 #. type: verbatim
19254 #: ../fish/virt-tar-in.pod:11
19255 #, no-wrap
19256 msgid ""
19257 " virt-tar-in -d domain data.tar /destination\n"
19258 "\n"
19259 msgstr ""
19260
19261 #. type: verbatim
19262 #: ../fish/virt-tar-in.pod:13
19263 #, no-wrap
19264 msgid ""
19265 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
19266 "\n"
19267 msgstr ""
19268
19269 #. type: textblock
19270 #: ../fish/virt-tar-in.pod:17
19271 msgid ""
19272 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
19273 "causing disk corruption.  The virtual machine must be shut down before you "
19274 "use this command."
19275 msgstr ""
19276
19277 #. type: textblock
19278 #: ../fish/virt-tar-in.pod:23
19279 msgid ""
19280 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
19281 "image or named libvirt domain."
19282 msgstr ""
19283
19284 #. type: textblock
19285 #: ../fish/virt-tar-in.pod:26
19286 msgid ""
19287 "The first parameter is the tar file.  Use C<-> to read the tar file from "
19288 "standard input.  The second parameter is the absolute target directory to "
19289 "unpack into."
19290 msgstr ""
19291
19292 #. type: verbatim
19293 #: ../fish/virt-tar-in.pod:34
19294 #, no-wrap
19295 msgid ""
19296 " virt-tar-in -d MyGuest homes.tar /home\n"
19297 "\n"
19298 msgstr ""
19299
19300 #. type: textblock
19301 #: ../fish/virt-tar-in.pod:38
19302 msgid ""
19303 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19304 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
19305 "probably better off using guestfish directly."
19306 msgstr ""
19307
19308 #. type: textblock
19309 #: ../fish/virt-tar-in.pod:49
19310 msgid ""
19311 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19312 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
19313 "org/>."
19314 msgstr ""
19315
19316 #. type: textblock
19317 #: ../fish/virt-tar-out.pod:5
19318 msgid ""
19319 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
19320 msgstr ""
19321
19322 #. type: verbatim
19323 #: ../fish/virt-tar-out.pod:9
19324 #, no-wrap
19325 msgid ""
19326 " virt-tar-out -a disk.img /dir files.tar\n"
19327 "\n"
19328 msgstr ""
19329
19330 #. type: verbatim
19331 #: ../fish/virt-tar-out.pod:11
19332 #, no-wrap
19333 msgid ""
19334 " virt-tar-out -d domain /dir files.tar\n"
19335 "\n"
19336 msgstr ""
19337
19338 #. type: verbatim
19339 #: ../fish/virt-tar-out.pod:13
19340 #, no-wrap
19341 msgid ""
19342 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
19343 "\n"
19344 msgstr ""
19345
19346 #. type: textblock
19347 #: ../fish/virt-tar-out.pod:17
19348 msgid ""
19349 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
19350 msgstr ""
19351
19352 #. type: textblock
19353 #: ../fish/virt-tar-out.pod:20
19354 msgid ""
19355 "The first parameter is the absolute path of the virtual machine directory.  "
19356 "The second parameter is the tar file to write.  Use C<-> to write to "
19357 "standard output."
19358 msgstr ""
19359
19360 #. type: textblock
19361 #: ../fish/virt-tar-out.pod:26
19362 msgid "Download the home directories from a guest:"
19363 msgstr ""
19364
19365 #. type: verbatim
19366 #: ../fish/virt-tar-out.pod:28
19367 #, no-wrap
19368 msgid ""
19369 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
19370 "\n"
19371 msgstr ""
19372
19373 #. type: textblock
19374 #: ../fish/virt-tar-out.pod:32
19375 msgid ""
19376 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19377 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
19378 "are probably better off using guestfish directly."
19379 msgstr ""
19380
19381 #. type: textblock
19382 #: ../fish/virt-tar-out.pod:43
19383 msgid ""
19384 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19385 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
19386 msgstr ""
19387
19388 #. type: textblock
19389 #: ../fuse/guestmount.pod:5
19390 msgid ""
19391 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
19392 msgstr ""
19393
19394 #. type: verbatim
19395 #: ../fuse/guestmount.pod:9
19396 #, no-wrap
19397 msgid ""
19398 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
19399 "\n"
19400 msgstr ""
19401
19402 #. type: verbatim
19403 #: ../fuse/guestmount.pod:11
19404 #, no-wrap
19405 msgid ""
19406 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
19407 "\n"
19408 msgstr ""
19409
19410 #. type: verbatim
19411 #: ../fuse/guestmount.pod:13
19412 #, no-wrap
19413 msgid ""
19414 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
19415 "\n"
19416 msgstr ""
19417
19418 #. type: textblock
19419 #: ../fuse/guestmount.pod:17
19420 msgid ""
19421 "You must I<not> use C<guestmount> in read-write mode on live virtual "
19422 "machines.  If you do this, you risk disk corruption in the VM."
19423 msgstr ""
19424
19425 #. type: textblock
19426 #: ../fuse/guestmount.pod:22
19427 msgid ""
19428 "The guestmount program can be used to mount virtual machine filesystems and "
19429 "other disk images on the host.  It uses libguestfs for access to the guest "
19430 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
19431 "a mountable device."
19432 msgstr ""
19433
19434 #. type: textblock
19435 #: ../fuse/guestmount.pod:27
19436 msgid ""
19437 "Along with other options, you have to give at least one device (I<-a> "
19438 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
19439 "option) or use the I<-i> inspection option.  How this works is better "
19440 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
19441 "below."
19442 msgstr ""
19443
19444 #. type: textblock
19445 #: ../fuse/guestmount.pod:33
19446 msgid ""
19447 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
19448 "by you, and the filesystem will not be visible to any other users unless you "
19449 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
19450 "the filesystem, use the C<fusermount -u> command."
19451 msgstr ""
19452
19453 #. type: textblock
19454 #: ../fuse/guestmount.pod:41
19455 msgid ""
19456 "For a typical Windows guest which has its main filesystem on the first "
19457 "partition:"
19458 msgstr ""
19459
19460 #. type: verbatim
19461 #: ../fuse/guestmount.pod:44
19462 #, no-wrap
19463 msgid ""
19464 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
19465 "\n"
19466 msgstr ""
19467
19468 #. type: textblock
19469 #: ../fuse/guestmount.pod:46
19470 msgid ""
19471 "For a typical Linux guest which has a /boot filesystem on the first "
19472 "partition, and the root filesystem on a logical volume:"
19473 msgstr ""
19474
19475 #. type: verbatim
19476 #: ../fuse/guestmount.pod:49
19477 #, no-wrap
19478 msgid ""
19479 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
19480 "\n"
19481 msgstr ""
19482
19483 #. type: textblock
19484 #: ../fuse/guestmount.pod:51
19485 msgid "To get libguestfs to detect guest mountpoints for you:"
19486 msgstr ""
19487
19488 #. type: verbatim
19489 #: ../fuse/guestmount.pod:53
19490 #, no-wrap
19491 msgid ""
19492 " guestmount -a guest.img -i --ro /mnt\n"
19493 "\n"
19494 msgstr ""
19495
19496 #. type: textblock
19497 #: ../fuse/guestmount.pod:55
19498 msgid "For a libvirt guest called \"Guest\" you could do:"
19499 msgstr ""
19500
19501 #. type: verbatim
19502 #: ../fuse/guestmount.pod:57
19503 #, no-wrap
19504 msgid ""
19505 " guestmount -d Guest -i --ro /mnt\n"
19506 "\n"
19507 msgstr ""
19508
19509 #. type: textblock
19510 #: ../fuse/guestmount.pod:59
19511 msgid ""
19512 "If you don't know what filesystems are contained in a guest or disk image, "
19513 "use L<virt-filesystems(1)> first:"
19514 msgstr ""
19515
19516 #. type: verbatim
19517 #: ../fuse/guestmount.pod:62
19518 #, no-wrap
19519 msgid ""
19520 " virt-filesystems MyGuest\n"
19521 "\n"
19522 msgstr ""
19523
19524 #. type: textblock
19525 #: ../fuse/guestmount.pod:64
19526 msgid ""
19527 "If you want to trace the libguestfs calls but without excessive debugging "
19528 "information, we recommend:"
19529 msgstr ""
19530
19531 #. type: verbatim
19532 #: ../fuse/guestmount.pod:67
19533 #, no-wrap
19534 msgid ""
19535 " guestmount [...] --trace /mnt\n"
19536 "\n"
19537 msgstr ""
19538
19539 #. type: textblock
19540 #: ../fuse/guestmount.pod:69
19541 msgid "If you want to debug the program, we recommend:"
19542 msgstr ""
19543
19544 #. type: verbatim
19545 #: ../fuse/guestmount.pod:71
19546 #, no-wrap
19547 msgid ""
19548 " guestmount [...] --trace --verbose /mnt\n"
19549 "\n"
19550 msgstr ""
19551
19552 #. type: =head1
19553 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
19554 #: ../resize/virt-resize.pod:544
19555 msgid "NOTES"
19556 msgstr ""
19557
19558 #. type: =head2
19559 #: ../fuse/guestmount.pod:75
19560 msgid "Other users cannot see the filesystem by default"
19561 msgstr ""
19562
19563 #. type: textblock
19564 #: ../fuse/guestmount.pod:77
19565 msgid ""
19566 "If you mount a filesystem as one user (eg. root), then other users will not "
19567 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
19568 "option when mounting:"
19569 msgstr ""
19570
19571 #. type: verbatim
19572 #: ../fuse/guestmount.pod:81
19573 #, no-wrap
19574 msgid ""
19575 " sudo guestmount [...] -o allow_other /mnt\n"
19576 "\n"
19577 msgstr ""
19578
19579 #. type: textblock
19580 #: ../fuse/guestmount.pod:91
19581 msgid "Add a block device or virtual machine image."
19582 msgstr ""
19583
19584 #. type: =item
19585 #: ../fuse/guestmount.pod:114
19586 msgid "B<--dir-cache-timeout N>"
19587 msgstr ""
19588
19589 #. type: textblock
19590 #: ../fuse/guestmount.pod:116
19591 msgid ""
19592 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
19593 "seconds.  The readdir cache [actually, there are several semi-independent "
19594 "caches] is populated after a readdir(2) call with the stat and extended "
19595 "attributes of the files in the directory, in anticipation that they will be "
19596 "requested soon after."
19597 msgstr ""
19598
19599 #. type: textblock
19600 #: ../fuse/guestmount.pod:122
19601 msgid ""
19602 "There is also a different attribute cache implemented by FUSE (see the FUSE "
19603 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
19604 "requests, only cache existing ones."
19605 msgstr ""
19606
19607 #. type: textblock
19608 #: ../fuse/guestmount.pod:142
19609 msgid ""
19610 "If you have untrusted raw-format guest disk images, you should use this "
19611 "option to specify the disk format.  This avoids a possible security problem "
19612 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
19613 "guestfs_add_drive_opts>."
19614 msgstr ""
19615
19616 #. type: =item
19617 #: ../fuse/guestmount.pod:147
19618 msgid "B<--fuse-help>"
19619 msgstr ""
19620
19621 #. type: textblock
19622 #: ../fuse/guestmount.pod:149
19623 msgid "Display help on special FUSE options (see I<-o> below)."
19624 msgstr ""
19625
19626 #. type: textblock
19627 #: ../fuse/guestmount.pod:153
19628 msgid "Display brief help and exit."
19629 msgstr ""
19630
19631 #. type: textblock
19632 #: ../fuse/guestmount.pod:177
19633 msgid ""
19634 "Mount the named partition or logical volume on the given mountpoint B<in the "
19635 "guest> (this has nothing to do with mountpoints in the host)."
19636 msgstr ""
19637
19638 #. type: textblock
19639 #: ../fuse/guestmount.pod:180
19640 msgid ""
19641 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
19642 "something on C</>."
19643 msgstr ""
19644
19645 #. type: textblock
19646 #: ../fuse/guestmount.pod:197
19647 msgid ""
19648 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
19649 "unmounted.  If you specify this option, then we don't attempt to sync the "
19650 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
19651 msgstr ""
19652
19653 #. type: =item
19654 #: ../fuse/guestmount.pod:202
19655 msgid "B<-o option>"
19656 msgstr ""
19657
19658 #. type: =item
19659 #: ../fuse/guestmount.pod:204
19660 msgid "B<--option option>"
19661 msgstr ""
19662
19663 #. type: textblock
19664 #: ../fuse/guestmount.pod:206
19665 msgid "Pass extra options to FUSE."
19666 msgstr ""
19667
19668 #. type: textblock
19669 #: ../fuse/guestmount.pod:208
19670 msgid ""
19671 "To get a list of all the extra options supported by FUSE, use the command "
19672 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
19673 "of them are a good idea."
19674 msgstr ""
19675
19676 #. type: verbatim
19677 #: ../fuse/guestmount.pod:212
19678 #, no-wrap
19679 msgid ""
19680 " guestmount --fuse-help\n"
19681 "\n"
19682 msgstr ""
19683
19684 #. type: textblock
19685 #: ../fuse/guestmount.pod:214
19686 msgid "Some potentially useful FUSE options:"
19687 msgstr ""
19688
19689 #. type: =item
19690 #: ../fuse/guestmount.pod:218
19691 msgid "B<-o allow_other>"
19692 msgstr ""
19693
19694 #. type: textblock
19695 #: ../fuse/guestmount.pod:220
19696 msgid "Allow other users to see the filesystem."
19697 msgstr ""
19698
19699 #. type: =item
19700 #: ../fuse/guestmount.pod:222
19701 msgid "B<-o attr_timeout=N>"
19702 msgstr ""
19703
19704 #. type: textblock
19705 #: ../fuse/guestmount.pod:224
19706 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
19707 msgstr ""
19708
19709 #. type: =item
19710 #: ../fuse/guestmount.pod:226
19711 msgid "B<-o kernel_cache>"
19712 msgstr ""
19713
19714 #. type: textblock
19715 #: ../fuse/guestmount.pod:228
19716 msgid ""
19717 "Allow the kernel to cache files (reduces the number of reads that have to go "
19718 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
19719 "afford the extra memory usage."
19720 msgstr ""
19721
19722 #. type: =item
19723 #: ../fuse/guestmount.pod:232
19724 msgid "B<-o uid=N> B<-o gid=N>"
19725 msgstr ""
19726
19727 #. type: textblock
19728 #: ../fuse/guestmount.pod:234
19729 msgid ""
19730 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
19731 "the chosen values."
19732 msgstr ""
19733
19734 #. type: textblock
19735 #: ../fuse/guestmount.pod:243
19736 msgid ""
19737 "Add devices and mount everything read-only.  Also disallow writes and make "
19738 "the disk appear read-only to FUSE."
19739 msgstr ""
19740
19741 #. type: textblock
19742 #: ../fuse/guestmount.pod:246
19743 msgid ""
19744 "This is highly recommended if you are not going to edit the guest disk.  If "
19745 "the guest is running and this option is I<not> supplied, then there is a "
19746 "strong risk of disk corruption in the guest.  We try to prevent this from "
19747 "happening, but it is not always possible."
19748 msgstr ""
19749
19750 #. type: textblock
19751 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
19752 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
19753 msgstr ""
19754
19755 #. type: textblock
19756 #: ../fuse/guestmount.pod:255
19757 msgid "Enable SELinux support for the guest."
19758 msgstr ""
19759
19760 #. type: textblock
19761 #: ../fuse/guestmount.pod:261
19762 msgid "Enable verbose messages from underlying libguestfs."
19763 msgstr ""
19764
19765 #. type: textblock
19766 #: ../fuse/guestmount.pod:267
19767 msgid "Display the program version and exit."
19768 msgstr ""
19769
19770 #. type: textblock
19771 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299
19772 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
19773 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
19774 msgstr ""
19775
19776 #. type: =item
19777 #: ../fuse/guestmount.pod:280
19778 msgid "B<--trace>"
19779 msgstr ""
19780
19781 #. type: textblock
19782 #: ../fuse/guestmount.pod:282
19783 msgid "Trace libguestfs calls and entry into each FUSE function."
19784 msgstr ""
19785
19786 #. type: textblock
19787 #: ../fuse/guestmount.pod:284
19788 msgid "This also stops the daemon from forking into the background."
19789 msgstr ""
19790
19791 #. type: textblock
19792 #: ../fuse/guestmount.pod:310
19793 msgid ""
19794 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
19795 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
19796 "net/>."
19797 msgstr ""
19798
19799 #. type: textblock
19800 #: ../fuse/guestmount.pod:325
19801 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
19802 msgstr ""
19803
19804 #. type: textblock
19805 #: ../inspector/virt-inspector.pod:5
19806 msgid ""
19807 "virt-inspector - Display operating system version and other information "
19808 "about a virtual machine"
19809 msgstr ""
19810
19811 #. type: verbatim
19812 #: ../inspector/virt-inspector.pod:9
19813 #, no-wrap
19814 msgid ""
19815 " virt-inspector [--options] -d domname\n"
19816 "\n"
19817 msgstr ""
19818
19819 #. type: verbatim
19820 #: ../inspector/virt-inspector.pod:11
19821 #, no-wrap
19822 msgid ""
19823 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
19824 "\n"
19825 msgstr ""
19826
19827 #. type: verbatim
19828 #: ../inspector/virt-inspector.pod:15
19829 #, no-wrap
19830 msgid ""
19831 " virt-inspector domname\n"
19832 "\n"
19833 msgstr ""
19834
19835 #. type: verbatim
19836 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
19837 #, no-wrap
19838 msgid ""
19839 " virt-inspector disk.img [disk.img ...]\n"
19840 "\n"
19841 msgstr ""
19842
19843 #. type: textblock
19844 #: ../inspector/virt-inspector.pod:21
19845 msgid ""
19846 "B<virt-inspector> examines a virtual machine or disk image and tries to "
19847 "determine the version of the operating system and other information about "
19848 "the virtual machine."
19849 msgstr ""
19850
19851 #. type: textblock
19852 #: ../inspector/virt-inspector.pod:25
19853 msgid "Virt-inspector produces XML output for feeding into other programs."
19854 msgstr ""
19855
19856 #. type: textblock
19857 #: ../inspector/virt-inspector.pod:27
19858 msgid ""
19859 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
19860 "the libvirt domain (see: C<virsh list --all>)."
19861 msgstr ""
19862
19863 #. type: textblock
19864 #: ../inspector/virt-inspector.pod:30
19865 msgid ""
19866 "You can also run virt-inspector directly on disk images from a single "
19867 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
19868 "has several block devices, in which case you should list several I<-a> "
19869 "options one after another, with the first corresponding to the guest's C</"
19870 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
19871 msgstr ""
19872
19873 #. type: textblock
19874 #: ../inspector/virt-inspector.pod:37
19875 msgid ""
19876 "You can also run virt-inspector on install disks, live CDs, bootable USB "
19877 "keys and similar."
19878 msgstr ""
19879
19880 #. type: textblock
19881 #: ../inspector/virt-inspector.pod:40
19882 msgid ""
19883 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
19884 "inspect several virtual machines, you have to run virt-inspector several "
19885 "times (for example, from a shell script for-loop)."
19886 msgstr ""
19887
19888 #. type: textblock
19889 #: ../inspector/virt-inspector.pod:45
19890 msgid ""
19891 "Because virt-inspector needs direct access to guest images, it won't "
19892 "normally work over remote libvirt connections."
19893 msgstr ""
19894
19895 #. type: textblock
19896 #: ../inspector/virt-inspector.pod:48
19897 msgid ""
19898 "All of the information available from virt-inspector is also available "
19899 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
19900 "The same information can also be fetched using guestfish or via libguestfs "
19901 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
19902 "WITH OTHER PROGRAMMING LANGUAGES>)."
19903 msgstr ""
19904
19905 #. type: textblock
19906 #: ../inspector/virt-inspector.pod:81
19907 msgid ""
19908 "Libvirt is only used if you specify a C<domname> on the command line.  If "
19909 "you specify guest block devices directly (I<-a>), then libvirt is not used "
19910 "at all."
19911 msgstr ""
19912
19913 #. type: textblock
19914 #: ../inspector/virt-inspector.pod:94
19915 msgid ""
19916 "When prompting for keys and passphrases, virt-inspector normally turns "
19917 "echoing off so you cannot see what you are typing.  If you are not worried "
19918 "about Tempest attacks and there is no one else in the room you can specify "
19919 "this flag to see what you are typing."
19920 msgstr ""
19921
19922 #. type: textblock
19923 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
19924 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
19925 #: ../tools/virt-win-reg.pl:144
19926 msgid ""
19927 "Specify the format of disk images given on the command line.  If this is "
19928 "omitted then the format is autodetected from the content of the disk image."
19929 msgstr ""
19930
19931 #. type: textblock
19932 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
19933 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
19934 #: ../tools/virt-win-reg.pl:148
19935 msgid ""
19936 "If disk images are requested from libvirt, then this program asks libvirt "
19937 "for this information.  In this case, the value of the format parameter is "
19938 "ignored."
19939 msgstr ""
19940
19941 #. type: textblock
19942 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
19943 #: ../resize/virt-resize.pod:406 ../tools/virt-list-filesystems.pl:101
19944 #: ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151
19945 #: ../tools/virt-win-reg.pl:152
19946 msgid ""
19947 "If working with untrusted raw-format guest disk images, you should ensure "
19948 "the format is always specified."
19949 msgstr ""
19950
19951 #. type: textblock
19952 #: ../inspector/virt-inspector.pod:139
19953 msgid "Previous versions of virt-inspector allowed you to write either:"
19954 msgstr ""
19955
19956 #. type: verbatim
19957 #: ../inspector/virt-inspector.pod:145
19958 #, no-wrap
19959 msgid ""
19960 " virt-inspector guestname\n"
19961 "\n"
19962 msgstr ""
19963
19964 #. type: =head1
19965 #: ../inspector/virt-inspector.pod:153
19966 msgid "XML FORMAT"
19967 msgstr ""
19968
19969 #. type: textblock
19970 #: ../inspector/virt-inspector.pod:155
19971 msgid ""
19972 "The virt-inspector XML is described precisely in a RELAX NG schema file "
19973 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
19974 "just an overview."
19975 msgstr ""
19976
19977 #. type: textblock
19978 #: ../inspector/virt-inspector.pod:159
19979 msgid ""
19980 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
19981 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
19982 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
19983 "which is vanishingly rare in real world VMs."
19984 msgstr ""
19985
19986 #. type: =head2
19987 #: ../inspector/virt-inspector.pod:164
19988 msgid "E<lt>operatingsystemE<gt>"
19989 msgstr ""
19990
19991 #. type: textblock
19992 #: ../inspector/virt-inspector.pod:166
19993 msgid ""
19994 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
19995 "describe the operating system, its architecture, the descriptive \"product "
19996 "name\" string, the type of OS and so on, as in this example:"
19997 msgstr ""
19998
19999 #. type: verbatim
20000 #: ../inspector/virt-inspector.pod:170
20001 #, no-wrap
20002 msgid ""
20003 " <operatingsystems>\n"
20004 "   <operatingsystem>\n"
20005 "     <root>/dev/sda2</root>\n"
20006 "     <name>windows</name>\n"
20007 "     <arch>i386</arch>\n"
20008 "     <distro>windows</distro>\n"
20009 "     <product_name>Windows 7 Enterprise</product_name>\n"
20010 "     <product_variant>Client</product_variant>\n"
20011 "     <major_version>6</major_version>\n"
20012 "     <minor_version>1</minor_version>\n"
20013 "     <windows_systemroot>/Windows</windows_systemroot>\n"
20014 "     <format>installed</format>\n"
20015 "\n"
20016 msgstr ""
20017
20018 #. type: textblock
20019 #: ../inspector/virt-inspector.pod:183
20020 msgid ""
20021 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
20022 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
20023 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
20024 "architecture.  The other fields are fairly self-explanatory, but because "
20025 "these fields are taken directly from the libguestfs inspection API you can "
20026 "find precise information from L<guestfs(3)/INSPECTION>."
20027 msgstr ""
20028
20029 #. type: textblock
20030 #: ../inspector/virt-inspector.pod:191
20031 msgid ""
20032 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
20033 "of view of libguestfs (block devices may have completely different names "
20034 "inside the VM itself)."
20035 msgstr ""
20036
20037 #. type: =head2
20038 #: ../inspector/virt-inspector.pod:195
20039 msgid "E<lt>mountpointsE<gt>"
20040 msgstr ""
20041
20042 #. type: textblock
20043 #: ../inspector/virt-inspector.pod:197
20044 msgid ""
20045 "Un*x-like guests typically have multiple filesystems which are mounted at "
20046 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
20047 "element which looks like this:"
20048 msgstr ""
20049
20050 #. type: verbatim
20051 #: ../inspector/virt-inspector.pod:201
20052 #, no-wrap
20053 msgid ""
20054 " <operatingsystems>\n"
20055 "   <operatingsystem>\n"
20056 "     ...\n"
20057 "     <mountpoints>\n"
20058 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
20059 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
20060 "     </mountpoints>\n"
20061 "\n"
20062 msgstr ""
20063
20064 #. type: textblock
20065 #: ../inspector/virt-inspector.pod:209
20066 msgid ""
20067 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
20068 "and may have completely different names inside the guest.  Only mountable "
20069 "filesystems appear in this list, not things like swap devices."
20070 msgstr ""
20071
20072 #. type: =head2
20073 #: ../inspector/virt-inspector.pod:214
20074 msgid "E<lt>filesystemsE<gt>"
20075 msgstr ""
20076
20077 #. type: textblock
20078 #: ../inspector/virt-inspector.pod:216
20079 msgid ""
20080 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
20081 "filesystems belonging to the guest, including swap and empty partitions.  "
20082 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
20083 "this OS or shared with this OS and other OSes)."
20084 msgstr ""
20085
20086 #. type: textblock
20087 #: ../inspector/virt-inspector.pod:222
20088 msgid "You might see something like this:"
20089 msgstr ""
20090
20091 #. type: verbatim
20092 #: ../inspector/virt-inspector.pod:224
20093 #, no-wrap
20094 msgid ""
20095 " <operatingsystems>\n"
20096 "   <operatingsystem>\n"
20097 "     ...\n"
20098 "     <filesystems>\n"
20099 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20100 "         <type>ext4</type>\n"
20101 "         <label>Fedora-13-x86_64</label>\n"
20102 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
20103 "       </filesystem>\n"
20104 "\n"
20105 msgstr ""
20106
20107 #. type: textblock
20108 #: ../inspector/virt-inspector.pod:234
20109 msgid ""
20110 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
20111 "the label, and the UUID."
20112 msgstr ""
20113
20114 #. type: =head2
20115 #: ../inspector/virt-inspector.pod:237
20116 msgid "E<lt>applicationsE<gt>"
20117 msgstr ""
20118
20119 #. type: textblock
20120 #: ../inspector/virt-inspector.pod:239
20121 msgid ""
20122 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
20123 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
20124 "machine."
20125 msgstr ""
20126
20127 #. type: textblock
20128 #: ../inspector/virt-inspector.pod:243
20129 msgid ""
20130 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
20131 "Typical values would be C<rpm> and C<deb>."
20132 msgstr ""
20133
20134 #. type: textblock
20135 #: ../inspector/virt-inspector.pod:246
20136 msgid ""
20137 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
20138 "Typical values include C<yum>, C<up2date> and C<apt>"
20139 msgstr ""
20140
20141 #. type: textblock
20142 #: ../inspector/virt-inspector.pod:249
20143 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
20144 msgstr ""
20145
20146 #. type: verbatim
20147 #: ../inspector/virt-inspector.pod:252
20148 #, no-wrap
20149 msgid ""
20150 " <operatingsystems>\n"
20151 "   <operatingsystem>\n"
20152 "     ...\n"
20153 "     <applications>\n"
20154 "       <application>\n"
20155 "         <name>coreutils</name>\n"
20156 "         <version>8.5</version>\n"
20157 "         <release>1</release>\n"
20158 "       </application>\n"
20159 "\n"
20160 msgstr ""
20161
20162 #. type: textblock
20163 #: ../inspector/virt-inspector.pod:262
20164 msgid ""
20165 "The version and release fields may not be available for some types guests.  "
20166 "Other fields are possible, see L<guestfs(3)/"
20167 "guestfs_inspect_list_applications>."
20168 msgstr ""
20169
20170 #. type: =head2
20171 #: ../inspector/virt-inspector.pod:266
20172 msgid "E<lt>drive_mappingsE<gt>"
20173 msgstr ""
20174
20175 #. type: textblock
20176 #: ../inspector/virt-inspector.pod:268
20177 msgid ""
20178 "For operating systems like Windows which use drive letters, virt-inspector "
20179 "is able to find out how drive letters map to filesystems."
20180 msgstr ""
20181
20182 #. type: verbatim
20183 #: ../inspector/virt-inspector.pod:272
20184 #, no-wrap
20185 msgid ""
20186 " <operatingsystems>\n"
20187 "   <operatingsystem>\n"
20188 "     ...\n"
20189 "     <drive_mappings>\n"
20190 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
20191 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
20192 "     </drive_mappings>\n"
20193 "\n"
20194 msgstr ""
20195
20196 #. type: textblock
20197 #: ../inspector/virt-inspector.pod:280
20198 msgid ""
20199 "In the example above, drive C maps to the filesystem on the second partition "
20200 "on the first disk, and drive E maps to the filesystem on the first partition "
20201 "on the second disk."
20202 msgstr ""
20203
20204 #. type: textblock
20205 #: ../inspector/virt-inspector.pod:284
20206 msgid ""
20207 "Note that this only covers permanent local filesystem mappings, not things "
20208 "like network shares.  Furthermore NTFS volume mount points may not be listed "
20209 "here."
20210 msgstr ""
20211
20212 #. type: =head2
20213 #: ../inspector/virt-inspector.pod:288
20214 msgid "E<lt>iconE<gt>"
20215 msgstr ""
20216
20217 #. type: textblock
20218 #: ../inspector/virt-inspector.pod:290
20219 msgid ""
20220 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
20221 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
20222 "very large and high quality."
20223 msgstr ""
20224
20225 #. type: verbatim
20226 #: ../inspector/virt-inspector.pod:294
20227 #, no-wrap
20228 msgid ""
20229 " <operatingsystems>\n"
20230 "   <operatingsystem>\n"
20231 "     ...\n"
20232 "     <icon>\n"
20233 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
20234 "       [... many lines of base64 data ...]\n"
20235 "     </icon>\n"
20236 "\n"
20237 msgstr ""
20238
20239 #. type: textblock
20240 #: ../inspector/virt-inspector.pod:302
20241 msgid ""
20242 "To display the icon, you have to extract it and convert the base64 data back "
20243 "to a binary file.  Use an XPath query or simply an editor to extract the "
20244 "data, then use the coreutils L<base64(1)> program to do the conversion back "
20245 "to a PNG file:"
20246 msgstr ""
20247
20248 #. type: verbatim
20249 #: ../inspector/virt-inspector.pod:307
20250 #, no-wrap
20251 msgid ""
20252 " base64 -i -d < icon.data > icon.png\n"
20253 "\n"
20254 msgstr ""
20255
20256 #. type: =head2
20257 #: ../inspector/virt-inspector.pod:309
20258 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
20259 msgstr ""
20260
20261 #. type: textblock
20262 #: ../inspector/virt-inspector.pod:311
20263 msgid ""
20264 "Virt-inspector can detect some operating system installers on install disks, "
20265 "live CDs, bootable USB keys and more."
20266 msgstr ""
20267
20268 #. type: textblock
20269 #: ../inspector/virt-inspector.pod:314
20270 msgid ""
20271 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
20272 "fields may be present to indicate a live CD, network installer, or one part "
20273 "of a multipart CD.  For example:"
20274 msgstr ""
20275
20276 #. type: verbatim
20277 #: ../inspector/virt-inspector.pod:318
20278 #, no-wrap
20279 msgid ""
20280 " <operatingsystems>\n"
20281 "   <operatingsystem>\n"
20282 "     <root>/dev/sda</root>\n"
20283 "     <name>linux</name>\n"
20284 "     <arch>i386</arch>\n"
20285 "     <distro>ubuntu</distro>\n"
20286 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
20287 "     <major_version>10</major_version>\n"
20288 "     <minor_version>10</minor_version>\n"
20289 "     <format>installer</format>\n"
20290 "     <live/>\n"
20291 "\n"
20292 msgstr ""
20293
20294 #. type: =head1
20295 #: ../inspector/virt-inspector.pod:330
20296 msgid "USING XPATH"
20297 msgstr ""
20298
20299 #. type: textblock
20300 #: ../inspector/virt-inspector.pod:332
20301 msgid ""
20302 "You can use the XPath query language to select parts of the XML.  We "
20303 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
20304 msgstr ""
20305
20306 #. type: verbatim
20307 #: ../inspector/virt-inspector.pod:338
20308 #, no-wrap
20309 msgid ""
20310 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
20311 " <filesystems>\n"
20312 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20313 "        <type>ext4</type>\n"
20314 " [...]\n"
20315 "\n"
20316 msgstr ""
20317
20318 #. type: verbatim
20319 #: ../inspector/virt-inspector.pod:344
20320 #, no-wrap
20321 msgid ""
20322 " $ virt-inspector -d Guest | \\\n"
20323 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
20324 " ext4\n"
20325 "\n"
20326 msgstr ""
20327
20328 #. type: verbatim
20329 #: ../inspector/virt-inspector.pod:348
20330 #, no-wrap
20331 msgid ""
20332 " $ virt-inspector -d Guest | \\\n"
20333 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
20334 " [displays the guest icon, if there is one]\n"
20335 "\n"
20336 msgstr ""
20337
20338 #. type: =head1
20339 #: ../inspector/virt-inspector.pod:359
20340 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
20341 msgstr ""
20342
20343 #. type: textblock
20344 #: ../inspector/virt-inspector.pod:361
20345 msgid ""
20346 "Early versions of libguestfs shipped with a different virt-inspector program "
20347 "written in Perl (the current version is written in C).  The XML output of "
20348 "the Perl virt-inspector was different and it could also output in other "
20349 "formats like text."
20350 msgstr ""
20351
20352 #. type: textblock
20353 #: ../inspector/virt-inspector.pod:366
20354 msgid ""
20355 "The old virt-inspector is no longer supported or shipped with libguestfs."
20356 msgstr ""
20357
20358 #. type: textblock
20359 #: ../inspector/virt-inspector.pod:369
20360 msgid ""
20361 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
20362 "versions of virt-inspector with different names:"
20363 msgstr ""
20364
20365 #. type: verbatim
20366 #: ../inspector/virt-inspector.pod:372
20367 #, no-wrap
20368 msgid ""
20369 " virt-inspector     Old Perl version.\n"
20370 " virt-inspector2    New C version.\n"
20371 "\n"
20372 msgstr ""
20373
20374 #. type: textblock
20375 #: ../inspector/virt-inspector.pod:382
20376 msgid ""
20377 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
20378 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
20379 msgstr ""
20380
20381 #. type: textblock
20382 #: ../inspector/virt-inspector.pod:399
20383 msgid "Matthew Booth L<mbooth@redhat.com>"
20384 msgstr ""
20385
20386 #. type: textblock
20387 #: ../java/examples/guestfs-java.pod:5
20388 msgid "guestfs-java - How to use libguestfs from Java"
20389 msgstr ""
20390
20391 #. type: verbatim
20392 #: ../java/examples/guestfs-java.pod:9
20393 #, no-wrap
20394 msgid ""
20395 " import com.redhat.et.libguestfs.*;\n"
20396 " \n"
20397 msgstr ""
20398
20399 #. type: verbatim
20400 #: ../java/examples/guestfs-java.pod:11
20401 #, no-wrap
20402 msgid ""
20403 " GuestFS g = new GuestFS ();\n"
20404 " g.add_drive_opts (\"disk.img\", null);\n"
20405 " g.launch ();\n"
20406 "\n"
20407 msgstr ""
20408
20409 #. type: textblock
20410 #: ../java/examples/guestfs-java.pod:17
20411 msgid ""
20412 "This manual page documents how to call libguestfs from the Java programming "
20413 "language.  This page just documents the differences from the C API and gives "
20414 "some examples.  If you are not familiar with using libguestfs, you also need "
20415 "to read L<guestfs(3)>."
20416 msgstr ""
20417
20418 #. type: =head2
20419 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
20420 msgid "CLOSING THE HANDLE"
20421 msgstr ""
20422
20423 #. type: textblock
20424 #: ../java/examples/guestfs-java.pod:24
20425 msgid ""
20426 "The handle is closed when it is reaped by the garbage collector.  Because "
20427 "libguestfs handles include a lot of state, it is also possible to close (and "
20428 "hence free) them explicitly by calling the C<close> method."
20429 msgstr ""
20430
20431 #. type: =head2
20432 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
20433 #: ../python/examples/guestfs-python.pod:21
20434 #: ../ruby/examples/guestfs-ruby.pod:22
20435 msgid "EXCEPTIONS"
20436 msgstr ""
20437
20438 #. type: textblock
20439 #: ../java/examples/guestfs-java.pod:31
20440 msgid ""
20441 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
20442 "exception.  This has a single parameter which is the error message (a "
20443 "C<String>)."
20444 msgstr ""
20445
20446 #. type: textblock
20447 #: ../java/examples/guestfs-java.pod:35
20448 msgid "Calling any method on a closed handle raises the same exception."
20449 msgstr ""
20450
20451 #. type: textblock
20452 #: ../java/examples/guestfs-java.pod:47
20453 msgid ""
20454 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
20455 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
20456 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
20457 msgstr ""
20458
20459 #. type: textblock
20460 #: ../ocaml/examples/guestfs-ocaml.pod:5
20461 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
20462 msgstr ""
20463
20464 #. type: textblock
20465 #: ../ocaml/examples/guestfs-ocaml.pod:9
20466 msgid "Module style:"
20467 msgstr ""
20468
20469 #. type: verbatim
20470 #: ../ocaml/examples/guestfs-ocaml.pod:11
20471 #, no-wrap
20472 msgid ""
20473 " let g = Guestfs.create () in\n"
20474 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
20475 " Guestfs.launch g;\n"
20476 "\n"
20477 msgstr ""
20478
20479 #. type: textblock
20480 #: ../ocaml/examples/guestfs-ocaml.pod:15
20481 msgid "Object-oriented style:"
20482 msgstr ""
20483
20484 #. type: verbatim
20485 #: ../ocaml/examples/guestfs-ocaml.pod:17
20486 #, no-wrap
20487 msgid ""
20488 " let g = new Guestfs.guestfs () in\n"
20489 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
20490 " g#launch ();\n"
20491 "\n"
20492 msgstr ""
20493
20494 #. type: verbatim
20495 #: ../ocaml/examples/guestfs-ocaml.pod:21
20496 #, no-wrap
20497 msgid ""
20498 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
20499 "or:\n"
20500 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
20501 "\n"
20502 msgstr ""
20503
20504 #. type: textblock
20505 #: ../ocaml/examples/guestfs-ocaml.pod:27
20506 msgid ""
20507 "This manual page documents how to call libguestfs from the OCaml programming "
20508 "language.  This page just documents the differences from the C API and gives "
20509 "some examples.  If you are not familiar with using libguestfs, you also need "
20510 "to read L<guestfs(3)>."
20511 msgstr ""
20512
20513 #. type: =head2
20514 #: ../ocaml/examples/guestfs-ocaml.pod:32
20515 msgid "PROGRAMMING STYLES"
20516 msgstr ""
20517
20518 #. type: textblock
20519 #: ../ocaml/examples/guestfs-ocaml.pod:34
20520 msgid ""
20521 "There are two different programming styles supported by the OCaml bindings.  "
20522 "You can use a module style, with each C function mapped to an OCaml function:"
20523 msgstr ""
20524
20525 #. type: verbatim
20526 #: ../ocaml/examples/guestfs-ocaml.pod:38
20527 #, no-wrap
20528 msgid ""
20529 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
20530 "\n"
20531 msgstr ""
20532
20533 #. type: textblock
20534 #: ../ocaml/examples/guestfs-ocaml.pod:40
20535 msgid "becomes:"
20536 msgstr ""
20537
20538 #. type: verbatim
20539 #: ../ocaml/examples/guestfs-ocaml.pod:42
20540 #, no-wrap
20541 msgid ""
20542 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
20543 "\n"
20544 msgstr ""
20545
20546 #. type: textblock
20547 #: ../ocaml/examples/guestfs-ocaml.pod:44
20548 msgid ""
20549 "Alternately you can use an object-oriented style, calling methods on the "
20550 "class C<Guestfs.guestfs>:"
20551 msgstr ""
20552
20553 #. type: verbatim
20554 #: ../ocaml/examples/guestfs-ocaml.pod:47
20555 #, no-wrap
20556 msgid ""
20557 " method set_verbose : bool -> unit\n"
20558 "\n"
20559 msgstr ""
20560
20561 #. type: textblock
20562 #: ../ocaml/examples/guestfs-ocaml.pod:49
20563 msgid ""
20564 "The object-oriented style is usually briefer, and the minor performance "
20565 "penalty isn't noticable in the general overhead of performing libguestfs "
20566 "functions."
20567 msgstr ""
20568
20569 #. type: textblock
20570 #: ../ocaml/examples/guestfs-ocaml.pod:55
20571 msgid ""
20572 "The handle is closed when it is reaped by the garbage collector.  Because "
20573 "libguestfs handles include a lot of state, it is also possible to close (and "
20574 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
20575 "method."
20576 msgstr ""
20577
20578 #. type: textblock
20579 #: ../ocaml/examples/guestfs-ocaml.pod:62
20580 msgid ""
20581 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
20582 "exception.  This has a single parameter which is the error message (a "
20583 "string)."
20584 msgstr ""
20585
20586 #. type: textblock
20587 #: ../ocaml/examples/guestfs-ocaml.pod:66
20588 msgid ""
20589 "Calling any function/method on a closed handle raises C<Guestfs."
20590 "Handle_closed>.  The single parameter is the name of the function that you "
20591 "called."
20592 msgstr ""
20593
20594 #. type: textblock
20595 #: ../ocaml/examples/guestfs-ocaml.pod:80
20596 msgid ""
20597 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
20598 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
20599 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
20600 msgstr ""
20601
20602 #. type: textblock
20603 #: ../perl/examples/guestfs-perl.pod:5
20604 msgid "guestfs-perl - How to use libguestfs from Perl"
20605 msgstr ""
20606
20607 #. type: verbatim
20608 #: ../perl/examples/guestfs-perl.pod:9
20609 #, no-wrap
20610 msgid ""
20611 " use Sys::Guestfs;\n"
20612 " \n"
20613 msgstr ""
20614
20615 #. type: verbatim
20616 #: ../perl/examples/guestfs-perl.pod:11
20617 #, no-wrap
20618 msgid ""
20619 " my $h = Sys::Guestfs->new ();\n"
20620 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
20621 " $h->launch ();\n"
20622 " $h->mount_options ('', '/dev/sda1', '/');\n"
20623 " $h->touch ('/hello');\n"
20624 " $h->sync ();\n"
20625 "\n"
20626 msgstr ""
20627
20628 #. type: textblock
20629 #: ../perl/examples/guestfs-perl.pod:20
20630 msgid ""
20631 "This manual page documents how to call libguestfs from the Perl programming "
20632 "language.  This page just documents the differences from the C API and gives "
20633 "some examples.  If you are not familiar with using libguestfs, you also need "
20634 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
20635 msgstr ""
20636
20637 #. type: =head2
20638 #: ../perl/examples/guestfs-perl.pod:26
20639 msgid "ERRORS"
20640 msgstr ""
20641
20642 #. type: textblock
20643 #: ../perl/examples/guestfs-perl.pod:28
20644 msgid ""
20645 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
20646 ">)."
20647 msgstr ""
20648
20649 #. type: textblock
20650 #: ../perl/examples/guestfs-perl.pod:41
20651 msgid ""
20652 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
20653 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
20654 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
20655 msgstr ""
20656
20657 #. type: textblock
20658 #: ../python/examples/guestfs-python.pod:5
20659 msgid "guestfs-python - How to use libguestfs from Python"
20660 msgstr ""
20661
20662 #. type: verbatim
20663 #: ../python/examples/guestfs-python.pod:9
20664 #, no-wrap
20665 msgid ""
20666 " import guestfs\n"
20667 " g = guestfs.GuestFS ()\n"
20668 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
20669 " g.launch\n"
20670 "\n"
20671 msgstr ""
20672
20673 #. type: textblock
20674 #: ../python/examples/guestfs-python.pod:16
20675 msgid ""
20676 "This manual page documents how to call libguestfs from the Python "
20677 "programming language.  This page just documents the differences from the C "
20678 "API and gives some examples.  If you are not familiar with using libguestfs, "
20679 "you also need to read L<guestfs(3)>."
20680 msgstr ""
20681
20682 #. type: textblock
20683 #: ../python/examples/guestfs-python.pod:23
20684 msgid ""
20685 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
20686 "single string argument which is the error message."
20687 msgstr ""
20688
20689 #. type: =head2
20690 #: ../python/examples/guestfs-python.pod:26
20691 msgid "MORE DOCUMENTATION"
20692 msgstr ""
20693
20694 #. type: textblock
20695 #: ../python/examples/guestfs-python.pod:28
20696 msgid "Type:"
20697 msgstr ""
20698
20699 #. type: verbatim
20700 #: ../python/examples/guestfs-python.pod:30
20701 #, no-wrap
20702 msgid ""
20703 " $ python\n"
20704 " >>> import guestfs\n"
20705 " >>> help (guestfs)\n"
20706 "\n"
20707 msgstr ""
20708
20709 #. type: textblock
20710 #: ../python/examples/guestfs-python.pod:44
20711 msgid ""
20712 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
20713 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
20714 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
20715 msgstr ""
20716
20717 #. type: textblock
20718 #: ../rescue/virt-rescue.pod:5
20719 msgid "virt-rescue - Run a rescue shell on a virtual machine"
20720 msgstr ""
20721
20722 #. type: verbatim
20723 #: ../rescue/virt-rescue.pod:9
20724 #, no-wrap
20725 msgid ""
20726 " virt-rescue [--options] -d domname\n"
20727 "\n"
20728 msgstr ""
20729
20730 #. type: verbatim
20731 #: ../rescue/virt-rescue.pod:11
20732 #, no-wrap
20733 msgid ""
20734 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
20735 "\n"
20736 msgstr ""
20737
20738 #. type: verbatim
20739 #: ../rescue/virt-rescue.pod:15
20740 #, no-wrap
20741 msgid ""
20742 " virt-rescue [--options] domname\n"
20743 "\n"
20744 msgstr ""
20745
20746 #. type: verbatim
20747 #: ../rescue/virt-rescue.pod:17
20748 #, no-wrap
20749 msgid ""
20750 " virt-rescue [--options] disk.img [disk.img ...]\n"
20751 "\n"
20752 msgstr ""
20753
20754 #. type: textblock
20755 #: ../rescue/virt-rescue.pod:21
20756 msgid ""
20757 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
20758 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
20759 "you from doing this, but doesn't catch all cases."
20760 msgstr ""
20761
20762 #. type: textblock
20763 #: ../rescue/virt-rescue.pod:25
20764 msgid ""
20765 "However if you use the I<--ro> (read only) option, then you can attach a "
20766 "shell to a live virtual machine.  The results might be strange or "
20767 "inconsistent at times but you won't get disk corruption."
20768 msgstr ""
20769
20770 #. type: textblock
20771 #: ../rescue/virt-rescue.pod:31
20772 msgid ""
20773 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
20774 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
20775 "recovery tools which you can use to examine or rescue a virtual machine or "
20776 "disk image."
20777 msgstr ""
20778
20779 #. type: textblock
20780 #: ../rescue/virt-rescue.pod:36
20781 msgid ""
20782 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
20783 "on disk image(s):"
20784 msgstr ""
20785
20786 #. type: verbatim
20787 #: ../rescue/virt-rescue.pod:39
20788 #, no-wrap
20789 msgid ""
20790 " virt-rescue -d GuestName\n"
20791 "\n"
20792 msgstr ""
20793
20794 #. type: verbatim
20795 #: ../rescue/virt-rescue.pod:41
20796 #, no-wrap
20797 msgid ""
20798 " virt-rescue --ro -a /path/to/disk.img\n"
20799 "\n"
20800 msgstr ""
20801
20802 #. type: verbatim
20803 #: ../rescue/virt-rescue.pod:43
20804 #, no-wrap
20805 msgid ""
20806 " virt-rescue -a /dev/sdc\n"
20807 "\n"
20808 msgstr ""
20809
20810 #. type: textblock
20811 #: ../rescue/virt-rescue.pod:45
20812 msgid "For live VMs you I<must> use the --ro option."
20813 msgstr ""
20814
20815 #. type: textblock
20816 #: ../rescue/virt-rescue.pod:47
20817 msgid ""
20818 "When you run virt-rescue on a virtual machine or disk image, you are placed "
20819 "in an interactive bash shell where you can use many ordinary Linux "
20820 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
20821 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
20822 "is an empty directory called C</sysroot> where you can mount filesystems."
20823 msgstr ""
20824
20825 #. type: textblock
20826 #: ../rescue/virt-rescue.pod:54
20827 msgid ""
20828 "In the example below, we list logical volumes, then choose one to mount "
20829 "under C</sysroot>:"
20830 msgstr ""
20831
20832 #. type: verbatim
20833 #: ../rescue/virt-rescue.pod:57
20834 #, no-wrap
20835 msgid ""
20836 " ><rescue> lvs\n"
20837 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
20838 " lv_root vg_f11x64 -wi-a-   8.83G\n"
20839 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
20840 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
20841 " ><rescue> ls /sysroot\n"
20842 "\n"
20843 msgstr ""
20844
20845 #. type: textblock
20846 #: ../rescue/virt-rescue.pod:64
20847 msgid ""
20848 "If you don't know what filesystems are available on the virtual machine then "
20849 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
20850 msgstr ""
20851
20852 #. type: textblock
20853 #: ../rescue/virt-rescue.pod:70
20854 msgid ""
20855 "Virt-rescue can be used on I<any> disk image file or device, not just a "
20856 "virtual machine.  For example you can use it on a blank file if you want to "
20857 "partition that file (although we would recommend using L<guestfish(1)> "
20858 "instead as it is more suitable for this purpose).  You can even use virt-"
20859 "rescue on things like SD cards."
20860 msgstr ""
20861
20862 #. type: textblock
20863 #: ../rescue/virt-rescue.pod:76
20864 msgid ""
20865 "Virt-rescue does not require root.  You only need to run it as root if you "
20866 "need root to open the disk image."
20867 msgstr ""
20868
20869 #. type: textblock
20870 #: ../rescue/virt-rescue.pod:79
20871 msgid ""
20872 "This tool is just designed for quick interactive hacking on a virtual "
20873 "machine.  For more structured access to a virtual machine disk image, you "
20874 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
20875 "make scripted changes to guests, use L<guestfish(1)>."
20876 msgstr ""
20877
20878 #. type: =item
20879 #: ../rescue/virt-rescue.pod:103
20880 msgid "B<--append kernelopts>"
20881 msgstr ""
20882
20883 #. type: textblock
20884 #: ../rescue/virt-rescue.pod:105
20885 msgid "Pass additional options to the rescue kernel."
20886 msgstr ""
20887
20888 #. type: verbatim
20889 #: ../rescue/virt-rescue.pod:135
20890 #, no-wrap
20891 msgid ""
20892 " virt-rescue --format=raw -a disk.img\n"
20893 "\n"
20894 msgstr ""
20895
20896 #. type: verbatim
20897 #: ../rescue/virt-rescue.pod:139
20898 #, no-wrap
20899 msgid ""
20900 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
20901 "\n"
20902 msgstr ""
20903
20904 #. type: =item
20905 #: ../rescue/virt-rescue.pod:148
20906 msgid "B<-m MB>"
20907 msgstr ""
20908
20909 #. type: =item
20910 #: ../rescue/virt-rescue.pod:150
20911 msgid "B<--memsize MB>"
20912 msgstr ""
20913
20914 #. type: textblock
20915 #: ../rescue/virt-rescue.pod:152
20916 msgid ""
20917 "Change the amount of memory allocated to the rescue system.  The default is "
20918 "set by libguestfs and is small but adequate for running system tools.  The "
20919 "occasional program might need more memory.  The parameter is specified in "
20920 "megabytes."
20921 msgstr ""
20922
20923 #. type: =item
20924 #: ../rescue/virt-rescue.pod:157
20925 msgid "B<--network>"
20926 msgstr ""
20927
20928 #. type: textblock
20929 #: ../rescue/virt-rescue.pod:159
20930 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
20931 msgstr ""
20932
20933 #. type: textblock
20934 #: ../rescue/virt-rescue.pod:165
20935 msgid "Open the image read-only."
20936 msgstr ""
20937
20938 #. type: textblock
20939 #: ../rescue/virt-rescue.pod:175
20940 msgid ""
20941 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
20942 "SELINUX> before using this option."
20943 msgstr ""
20944
20945 #. type: =item
20946 #: ../rescue/virt-rescue.pod:178
20947 msgid "B<--smp> N"
20948 msgstr ""
20949
20950 #. type: textblock
20951 #: ../rescue/virt-rescue.pod:180
20952 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
20953 msgstr ""
20954
20955 #. type: textblock
20956 #: ../rescue/virt-rescue.pod:198
20957 msgid ""
20958 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
20959 "are done read-write."
20960 msgstr ""
20961
20962 #. type: textblock
20963 #: ../rescue/virt-rescue.pod:211
20964 msgid "Previous versions of virt-rescue allowed you to write either:"
20965 msgstr ""
20966
20967 #. type: verbatim
20968 #: ../rescue/virt-rescue.pod:213
20969 #, no-wrap
20970 msgid ""
20971 " virt-rescue disk.img [disk.img ...]\n"
20972 "\n"
20973 msgstr ""
20974
20975 #. type: verbatim
20976 #: ../rescue/virt-rescue.pod:217
20977 #, no-wrap
20978 msgid ""
20979 " virt-rescue guestname\n"
20980 "\n"
20981 msgstr ""
20982
20983 #. type: =head1
20984 #: ../rescue/virt-rescue.pod:225
20985 msgid "NETWORK"
20986 msgstr ""
20987
20988 #. type: textblock
20989 #: ../rescue/virt-rescue.pod:227
20990 msgid ""
20991 "Adding the I<--network> option enables QEMU user networking in the rescue "
20992 "appliance.  There are some differences between user networking and ordinary "
20993 "networking:"
20994 msgstr ""
20995
20996 #. type: =item
20997 #: ../rescue/virt-rescue.pod:233
20998 msgid "ping does not work"
20999 msgstr ""
21000
21001 #. type: textblock
21002 #: ../rescue/virt-rescue.pod:235
21003 msgid ""
21004 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
21005 "send the ping packets, and because virt-rescue must be able to run as non-"
21006 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
21007 "The ping command will appear to resolve addresses but will not be able to "
21008 "send or receive any packets.  This does not mean that the network is not "
21009 "working."
21010 msgstr ""
21011
21012 #. type: =item
21013 #: ../rescue/virt-rescue.pod:242
21014 msgid "cannot receive connections"
21015 msgstr ""
21016
21017 #. type: textblock
21018 #: ../rescue/virt-rescue.pod:244
21019 msgid "QEMU user networking cannot receive incoming connections."
21020 msgstr ""
21021
21022 #. type: =item
21023 #: ../rescue/virt-rescue.pod:246
21024 msgid "making TCP connections"
21025 msgstr ""
21026
21027 #. type: textblock
21028 #: ../rescue/virt-rescue.pod:248
21029 msgid ""
21030 "The virt-rescue appliance needs to be small and so does not include many "
21031 "network tools.  In particular there is no L<telnet(1)> command.  You can "
21032 "make TCP connections from the shell using the magical C</dev/tcp/"
21033 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
21034 msgstr ""
21035
21036 #. type: verbatim
21037 #: ../rescue/virt-rescue.pod:253
21038 #, no-wrap
21039 msgid ""
21040 " exec 3<>/dev/tcp/redhat.com/80\n"
21041 " echo \"GET /\" >&3\n"
21042 " cat <&3\n"
21043 "\n"
21044 msgstr ""
21045
21046 #. type: textblock
21047 #: ../rescue/virt-rescue.pod:257
21048 msgid "See L<bash(1)> for more details."
21049 msgstr ""
21050
21051 #. type: textblock
21052 #: ../rescue/virt-rescue.pod:263
21053 msgid ""
21054 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
21055 "ENVIRONMENT VARIABLES> for the complete list."
21056 msgstr ""
21057
21058 #. type: textblock
21059 #: ../rescue/virt-rescue.pod:290
21060 msgid ""
21061 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
21062 "libguestfs.org/>."
21063 msgstr ""
21064
21065 #. type: textblock
21066 #: ../resize/virt-resize.pod:5
21067 msgid "virt-resize - Resize a virtual machine disk"
21068 msgstr ""
21069
21070 #. type: verbatim
21071 #: ../resize/virt-resize.pod:9
21072 #, no-wrap
21073 msgid ""
21074 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
21075 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
21076 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
21077 "\n"
21078 msgstr ""
21079
21080 #. type: textblock
21081 #: ../resize/virt-resize.pod:15
21082 msgid ""
21083 "Virt-resize is a tool which can resize a virtual machine disk, making it "
21084 "larger or smaller overall, and resizing or deleting any partitions contained "
21085 "within."
21086 msgstr ""
21087
21088 #. type: textblock
21089 #: ../resize/virt-resize.pod:19
21090 msgid ""
21091 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
21092 "not> be used on live virtual machines - for consistent results, shut the "
21093 "virtual machine down before resizing it."
21094 msgstr ""
21095
21096 #. type: textblock
21097 #: ../resize/virt-resize.pod:23
21098 msgid ""
21099 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
21100 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
21101 msgstr ""
21102
21103 #. type: =item
21104 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:520
21105 #: ../src/guestfs.pod:469 ../src/guestfs.pod:1284 ../src/guestfs.pod:1423
21106 #: ../src/guestfs.pod:2601
21107 msgid "1."
21108 msgstr ""
21109
21110 #. type: textblock
21111 #: ../resize/virt-resize.pod:33
21112 msgid ""
21113 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
21114 "fill the extra 5GB of space."
21115 msgstr ""
21116
21117 #. type: verbatim
21118 #: ../resize/virt-resize.pod:36
21119 #, no-wrap
21120 msgid ""
21121 " virt-filesystems --long -h --all -a olddisk\n"
21122 " \n"
21123 msgstr ""
21124
21125 #. type: verbatim
21126 #: ../resize/virt-resize.pod:38
21127 #, no-wrap
21128 msgid ""
21129 " truncate -r olddisk newdisk\n"
21130 " truncate -s +5G newdisk\n"
21131 " \n"
21132 msgstr ""
21133
21134 #. type: verbatim
21135 #: ../resize/virt-resize.pod:41
21136 #, no-wrap
21137 msgid ""
21138 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
21139 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
21140 "\n"
21141 msgstr ""
21142
21143 #. type: =item
21144 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:527
21145 #: ../src/guestfs.pod:475 ../src/guestfs.pod:1288 ../src/guestfs.pod:1427
21146 #: ../src/guestfs.pod:2626
21147 msgid "2."
21148 msgstr ""
21149
21150 #. type: textblock
21151 #: ../resize/virt-resize.pod:46
21152 msgid ""
21153 "As above, but make the /boot partition 200MB bigger, while giving the "
21154 "remaining space to /dev/sda2:"
21155 msgstr ""
21156
21157 #. type: verbatim
21158 #: ../resize/virt-resize.pod:49
21159 #, no-wrap
21160 msgid ""
21161 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
21162 "   olddisk newdisk\n"
21163 "\n"
21164 msgstr ""
21165
21166 #. type: =item
21167 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:533
21168 #: ../src/guestfs.pod:486 ../src/guestfs.pod:1433
21169 msgid "3."
21170 msgstr ""
21171
21172 #. type: textblock
21173 #: ../resize/virt-resize.pod:54
21174 msgid ""
21175 "As in the first example, but expand a logical volume as the final step.  "
21176 "This is what you would typically use for Linux guests that use LVM:"
21177 msgstr ""
21178
21179 #. type: verbatim
21180 #: ../resize/virt-resize.pod:58
21181 #, no-wrap
21182 msgid ""
21183 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
21184 "   olddisk newdisk\n"
21185 "\n"
21186 msgstr ""
21187
21188 #. type: =item
21189 #: ../resize/virt-resize.pod:61
21190 msgid "4."
21191 msgstr ""
21192
21193 #. type: textblock
21194 #: ../resize/virt-resize.pod:63
21195 msgid ""
21196 "As in the first example, but the output format will be qcow2 instead of a "
21197 "raw disk:"
21198 msgstr ""
21199
21200 #. type: verbatim
21201 #: ../resize/virt-resize.pod:66
21202 #, no-wrap
21203 msgid ""
21204 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
21205 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
21206 "\n"
21207 msgstr ""
21208
21209 #. type: =head1
21210 #: ../resize/virt-resize.pod:71
21211 msgid "DETAILED USAGE"
21212 msgstr ""
21213
21214 #. type: =head2
21215 #: ../resize/virt-resize.pod:73
21216 msgid "EXPANDING A VIRTUAL MACHINE DISK"
21217 msgstr ""
21218
21219 #. type: =item
21220 #: ../resize/virt-resize.pod:77
21221 msgid "1. Shut down the virtual machine"
21222 msgstr ""
21223
21224 #. type: =item
21225 #: ../resize/virt-resize.pod:79
21226 msgid "2. Locate input disk image"
21227 msgstr ""
21228
21229 #. type: textblock
21230 #: ../resize/virt-resize.pod:81
21231 msgid ""
21232 "Locate the input disk image (ie. the file or device on the host containing "
21233 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
21234 "dumpxml> like this to find the disk image name:"
21235 msgstr ""
21236
21237 #. type: verbatim
21238 #: ../resize/virt-resize.pod:85
21239 #, no-wrap
21240 msgid ""
21241 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
21242 " Found 1 nodes:\n"
21243 " -- NODE --\n"
21244 " <source dev=\"/dev/vg/lv_guest\" />\n"
21245 "\n"
21246 msgstr ""
21247
21248 #. type: =item
21249 #: ../resize/virt-resize.pod:90
21250 msgid "3. Look at current sizing"
21251 msgstr ""
21252
21253 #. type: textblock
21254 #: ../resize/virt-resize.pod:92
21255 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
21256 msgstr ""
21257
21258 #. type: verbatim
21259 #: ../resize/virt-resize.pod:95
21260 #, no-wrap
21261 msgid ""
21262 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
21263 " Name       Type       Size  Parent\n"
21264 " /dev/sda1  partition  101M  /dev/sda\n"
21265 " /dev/sda2  partition  7.9G  /dev/sda\n"
21266 " /dev/sda   device     8.0G  -\n"
21267 "\n"
21268 msgstr ""
21269
21270 #. type: textblock
21271 #: ../resize/virt-resize.pod:101
21272 msgid ""
21273 "(This example is a virtual machine with an 8 GB disk which we would like to "
21274 "expand up to 10 GB)."
21275 msgstr ""
21276
21277 #. type: =item
21278 #: ../resize/virt-resize.pod:104
21279 msgid "4. Create output disk"
21280 msgstr ""
21281
21282 #. type: textblock
21283 #: ../resize/virt-resize.pod:106
21284 msgid ""
21285 "Virt-resize cannot do in-place disk modifications.  You have to have space "
21286 "to store the resized output disk."
21287 msgstr ""
21288
21289 #. type: textblock
21290 #: ../resize/virt-resize.pod:109
21291 msgid ""
21292 "To store the resized disk image in a file, create a file of a suitable size:"
21293 msgstr ""
21294
21295 #. type: verbatim
21296 #: ../resize/virt-resize.pod:112
21297 #, no-wrap
21298 msgid ""
21299 " # rm -f outdisk\n"
21300 " # truncate -s 10G outdisk\n"
21301 "\n"
21302 msgstr ""
21303
21304 #. type: textblock
21305 #: ../resize/virt-resize.pod:115
21306 msgid "Or use L<lvcreate(1)> to create a logical volume:"
21307 msgstr ""
21308
21309 #. type: verbatim
21310 #: ../resize/virt-resize.pod:117
21311 #, no-wrap
21312 msgid ""
21313 " # lvcreate -L 10G -n lv_name vg_name\n"
21314 "\n"
21315 msgstr ""
21316
21317 #. type: textblock
21318 #: ../resize/virt-resize.pod:119
21319 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
21320 msgstr ""
21321
21322 #. type: verbatim
21323 #: ../resize/virt-resize.pod:121
21324 #, no-wrap
21325 msgid ""
21326 " # virsh pool-list\n"
21327 " # virsh vol-create-as poolname newvol 10G\n"
21328 "\n"
21329 msgstr ""
21330
21331 #. type: =item
21332 #: ../resize/virt-resize.pod:124
21333 msgid "5. Resize"
21334 msgstr ""
21335
21336 #. type: textblock
21337 #: ../resize/virt-resize.pod:126
21338 msgid ""
21339 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
21340 "file) and the output disk.  The output disk is the one created in the "
21341 "previous step."
21342 msgstr ""
21343
21344 #. type: verbatim
21345 #: ../resize/virt-resize.pod:130
21346 #, no-wrap
21347 msgid ""
21348 " # virt-resize indisk outdisk\n"
21349 "\n"
21350 msgstr ""
21351
21352 #. type: textblock
21353 #: ../resize/virt-resize.pod:132
21354 msgid ""
21355 "This command just copies disk image C<indisk> to disk image C<outdisk> "
21356 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
21357 "larger, then an extra, empty partition is created at the end of the disk "
21358 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
21359 "error."
21360 msgstr ""
21361
21362 #. type: textblock
21363 #: ../resize/virt-resize.pod:138
21364 msgid ""
21365 "More realistically you'd want to expand existing partitions in the disk "
21366 "image by passing extra options (for the full list see the L</OPTIONS> "
21367 "section below)."
21368 msgstr ""
21369
21370 #. type: textblock
21371 #: ../resize/virt-resize.pod:142
21372 msgid ""
21373 "L</--expand> is the most useful option.  It expands the named partition "
21374 "within the disk to fill any extra space:"
21375 msgstr ""
21376
21377 #. type: verbatim
21378 #: ../resize/virt-resize.pod:145
21379 #, no-wrap
21380 msgid ""
21381 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
21382 "\n"
21383 msgstr ""
21384
21385 #. type: textblock
21386 #: ../resize/virt-resize.pod:147
21387 msgid ""
21388 "(In this case, an extra partition is I<not> created at the end of the disk, "
21389 "because there will be no unused space)."
21390 msgstr ""
21391
21392 #. type: textblock
21393 #: ../resize/virt-resize.pod:150
21394 msgid ""
21395 "L</--resize> is the other commonly used option.  The following would "
21396 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
21397 "rest of the available space:"
21398 msgstr ""
21399
21400 #. type: verbatim
21401 #: ../resize/virt-resize.pod:154
21402 #, no-wrap
21403 msgid ""
21404 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
21405 "     indisk outdisk\n"
21406 "\n"
21407 msgstr ""
21408
21409 #. type: textblock
21410 #: ../resize/virt-resize.pod:157
21411 msgid ""
21412 "If the expanded partition in the image contains a filesystem or LVM PV, then "
21413 "if virt-resize knows how, it will resize the contents, the equivalent of "
21414 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
21415 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
21416 "filesystems, so you would have to online resize them after booting the guest."
21417 msgstr ""
21418
21419 #. type: textblock
21420 #: ../resize/virt-resize.pod:164
21421 msgid "Other options are covered below."
21422 msgstr ""
21423
21424 #. type: =item
21425 #: ../resize/virt-resize.pod:166
21426 msgid "6. Test"
21427 msgstr ""
21428
21429 #. type: textblock
21430 #: ../resize/virt-resize.pod:168
21431 msgid "Thoroughly test the new disk image I<before> discarding the old one."
21432 msgstr ""
21433
21434 #. type: textblock
21435 #: ../resize/virt-resize.pod:170
21436 msgid "If you are using libvirt, edit the XML to point at the new disk:"
21437 msgstr ""
21438
21439 #. type: verbatim
21440 #: ../resize/virt-resize.pod:172
21441 #, no-wrap
21442 msgid ""
21443 " # virsh edit guestname\n"
21444 "\n"
21445 msgstr ""
21446
21447 #. type: textblock
21448 #: ../resize/virt-resize.pod:174
21449 msgid ""
21450 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
21451 "html#elementsDisks>"
21452 msgstr ""
21453
21454 #. type: textblock
21455 #: ../resize/virt-resize.pod:177
21456 msgid "Then start up the domain with the new, resized disk:"
21457 msgstr ""
21458
21459 #. type: verbatim
21460 #: ../resize/virt-resize.pod:179
21461 #, no-wrap
21462 msgid ""
21463 " # virsh start guestname\n"
21464 "\n"
21465 msgstr ""
21466
21467 #. type: textblock
21468 #: ../resize/virt-resize.pod:181
21469 msgid ""
21470 "and check that it still works.  See also the L</NOTES> section below for "
21471 "additional information."
21472 msgstr ""
21473
21474 #. type: =item
21475 #: ../resize/virt-resize.pod:184
21476 msgid "7. Resize LVs etc inside the guest"
21477 msgstr ""
21478
21479 #. type: textblock
21480 #: ../resize/virt-resize.pod:186
21481 msgid "(This can also be done offline using L<guestfish(1)>)"
21482 msgstr ""
21483
21484 #. type: textblock
21485 #: ../resize/virt-resize.pod:188
21486 msgid ""
21487 "Once the guest has booted you should see the new space available, at least "
21488 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
21489 "may need to resize LVs inside PVs, and also resize filesystem types that "
21490 "virt-resize does not know how to expand."
21491 msgstr ""
21492
21493 #. type: =head2
21494 #: ../resize/virt-resize.pod:195
21495 msgid "SHRINKING A VIRTUAL MACHINE DISK"
21496 msgstr ""
21497
21498 #. type: textblock
21499 #: ../resize/virt-resize.pod:197
21500 msgid ""
21501 "Shrinking is somewhat more complex than expanding, and only an overview is "
21502 "given here."
21503 msgstr ""
21504
21505 #. type: textblock
21506 #: ../resize/virt-resize.pod:200
21507 msgid ""
21508 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
21509 "filesystems).  The user has to shrink content before passing the disk image "
21510 "to virt-resize, and virt-resize will check that the content has been shrunk "
21511 "properly."
21512 msgstr ""
21513
21514 #. type: textblock
21515 #: ../resize/virt-resize.pod:205
21516 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
21517 msgstr ""
21518
21519 #. type: textblock
21520 #: ../resize/virt-resize.pod:207
21521 msgid ""
21522 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
21523 "steps 3 and 4 above to allocate a new disk image."
21524 msgstr ""
21525
21526 #. type: textblock
21527 #: ../resize/virt-resize.pod:210
21528 msgid ""
21529 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
21530 msgstr ""
21531
21532 #. type: =head2
21533 #: ../resize/virt-resize.pod:213
21534 msgid "IGNORING OR DELETING PARTITIONS"
21535 msgstr ""
21536
21537 #. type: textblock
21538 #: ../resize/virt-resize.pod:215
21539 msgid ""
21540 "virt-resize also gives a convenient way to ignore or delete partitions when "
21541 "copying from the input disk to the output disk.  Ignoring a partition speeds "
21542 "up the copy where you don't care about the existing contents of a "
21543 "partition.  Deleting a partition removes it completely, but note that it "
21544 "also renumbers any partitions after the one which is deleted, which can "
21545 "leave some guests unbootable."
21546 msgstr ""
21547
21548 #. type: =head2
21549 #: ../resize/virt-resize.pod:222
21550 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
21551 msgstr ""
21552
21553 #. type: textblock
21554 #: ../resize/virt-resize.pod:224
21555 msgid ""
21556 "If the input disk is in qcow2 format, then you may prefer that the output is "
21557 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
21558 "the fly.  The output format is simply determined by the format of the empty "
21559 "output container that you provide.  Thus to create qcow2 output, use:"
21560 msgstr ""
21561
21562 #. type: verbatim
21563 #: ../resize/virt-resize.pod:230
21564 #, no-wrap
21565 msgid ""
21566 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
21567 "\n"
21568 msgstr ""
21569
21570 #. type: textblock
21571 #: ../resize/virt-resize.pod:232
21572 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
21573 msgstr ""
21574
21575 #. type: textblock
21576 #: ../resize/virt-resize.pod:234
21577 msgid "Similarly, to get non-sparse raw output use:"
21578 msgstr ""
21579
21580 #. type: verbatim
21581 #: ../resize/virt-resize.pod:236
21582 #, no-wrap
21583 msgid ""
21584 " fallocate -l size outdisk\n"
21585 "\n"
21586 msgstr ""
21587
21588 #. type: textblock
21589 #: ../resize/virt-resize.pod:238
21590 msgid ""
21591 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
21592 "dev/zero of=outdisk bs=1M count=..>)"
21593 msgstr ""
21594
21595 #. type: textblock
21596 #: ../resize/virt-resize.pod:247
21597 msgid "Display help."
21598 msgstr ""
21599
21600 #. type: =item
21601 #: ../resize/virt-resize.pod:249
21602 msgid "B<-d>"
21603 msgstr ""
21604
21605 #. type: =item
21606 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
21607 #: ../tools/virt-win-reg.pl:120
21608 msgid "B<--debug>"
21609 msgstr ""
21610
21611 #. type: textblock
21612 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
21613 msgid "Enable debugging messages."
21614 msgstr ""
21615
21616 #. type: =item
21617 #: ../resize/virt-resize.pod:255
21618 msgid "B<--delete part>"
21619 msgstr ""
21620
21621 #. type: textblock
21622 #: ../resize/virt-resize.pod:257
21623 msgid ""
21624 "Delete the named partition.  It would be more accurate to describe this as "
21625 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
21626 "the original disk image is left intact."
21627 msgstr ""
21628
21629 #. type: textblock
21630 #: ../resize/virt-resize.pod:261
21631 msgid ""
21632 "Note that when you delete a partition, then anything contained in the "
21633 "partition is also deleted.  Furthermore, this causes any partitions that "
21634 "come after to be I<renumbered>, which can easily make your guest unbootable."
21635 msgstr ""
21636
21637 #. type: textblock
21638 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
21639 #: ../resize/virt-resize.pod:454
21640 msgid "You can give this option multiple times."
21641 msgstr ""
21642
21643 #. type: =item
21644 #: ../resize/virt-resize.pod:268
21645 msgid "B<--expand part>"
21646 msgstr ""
21647
21648 #. type: textblock
21649 #: ../resize/virt-resize.pod:270
21650 msgid ""
21651 "Expand the named partition so it uses up all extra space (space left over "
21652 "after any other resize changes that you request have been done)."
21653 msgstr ""
21654
21655 #. type: textblock
21656 #: ../resize/virt-resize.pod:273
21657 msgid ""
21658 "If virt-resize knows how, it will expand the direct content of the "
21659 "partition.  For example, if the partition is an LVM PV, it will expand the "
21660 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
21661 "content it doesn't know about alone."
21662 msgstr ""
21663
21664 #. type: textblock
21665 #: ../resize/virt-resize.pod:278
21666 msgid "Currently virt-resize can resize:"
21667 msgstr ""
21668
21669 #. type: textblock
21670 #: ../resize/virt-resize.pod:284
21671 msgid "ext2, ext3 and ext4 filesystems."
21672 msgstr ""
21673
21674 #. type: textblock
21675 #: ../resize/virt-resize.pod:288
21676 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
21677 msgstr ""
21678
21679 #. type: textblock
21680 #: ../resize/virt-resize.pod:290
21681 msgid ""
21682 "The filesystem must have been shut down consistently last time it was used.  "
21683 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
21684 "consistency check, so at the first boot after resizing Windows will check "
21685 "the disk."
21686 msgstr ""
21687
21688 #. type: textblock
21689 #: ../resize/virt-resize.pod:297
21690 msgid ""
21691 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
21692 "inside the PV, but see the I<--LV-expand> option.  The user could also "
21693 "resize LVs as desired after boot."
21694 msgstr ""
21695
21696 #. type: textblock
21697 #: ../resize/virt-resize.pod:303
21698 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
21699 msgstr ""
21700
21701 #. type: textblock
21702 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
21703 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
21704 msgstr ""
21705
21706 #. type: =item
21707 #: ../resize/virt-resize.pod:309 ../tools/virt-list-filesystems.pl:91
21708 #: ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141
21709 #: ../tools/virt-win-reg.pl:142
21710 msgid "B<--format> raw"
21711 msgstr ""
21712
21713 #. type: textblock
21714 #: ../resize/virt-resize.pod:311
21715 msgid ""
21716 "Specify the format of the input disk image.  If this flag is not given then "
21717 "it is auto-detected from the image itself."
21718 msgstr ""
21719
21720 #. type: textblock
21721 #: ../resize/virt-resize.pod:317
21722 msgid ""
21723 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
21724 "AND NON-SPARSE RAW FORMATS>."
21725 msgstr ""
21726
21727 #. type: =item
21728 #: ../resize/virt-resize.pod:320
21729 msgid "B<--ignore part>"
21730 msgstr ""
21731
21732 #. type: textblock
21733 #: ../resize/virt-resize.pod:322
21734 msgid ""
21735 "Ignore the named partition.  Effectively this means the partition is "
21736 "allocated on the destination disk, but the content is not copied across from "
21737 "the source disk.  The content of the partition will be blank (all zero "
21738 "bytes)."
21739 msgstr ""
21740
21741 #. type: =item
21742 #: ../resize/virt-resize.pod:329
21743 msgid "B<--LV-expand logvol>"
21744 msgstr ""
21745
21746 #. type: textblock
21747 #: ../resize/virt-resize.pod:331
21748 msgid ""
21749 "This takes the logical volume and, as a final step, expands it to fill all "
21750 "the space available in its volume group.  A typical usage, assuming a Linux "
21751 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
21752 "lv_root> would be:"
21753 msgstr ""
21754
21755 #. type: verbatim
21756 #: ../resize/virt-resize.pod:336
21757 #, no-wrap
21758 msgid ""
21759 " virt-resize indisk outdisk \\\n"
21760 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
21761 "\n"
21762 msgstr ""
21763
21764 #. type: textblock
21765 #: ../resize/virt-resize.pod:339
21766 msgid ""
21767 "This would first expand the partition (and PV), and then expand the root "
21768 "device to fill the extra space in the PV."
21769 msgstr ""
21770
21771 #. type: textblock
21772 #: ../resize/virt-resize.pod:342
21773 msgid ""
21774 "The contents of the LV are also resized if virt-resize knows how to do "
21775 "that.  You can stop virt-resize from trying to expand the content by using "
21776 "the option I<--no-expand-content>."
21777 msgstr ""
21778
21779 #. type: textblock
21780 #: ../resize/virt-resize.pod:346
21781 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
21782 msgstr ""
21783
21784 #. type: textblock
21785 #: ../resize/virt-resize.pod:348
21786 msgid ""
21787 "You can give this option multiple times, I<but> it doesn't make sense to do "
21788 "this unless the logical volumes you specify are all in different volume "
21789 "groups."
21790 msgstr ""
21791
21792 #. type: =item
21793 #: ../resize/virt-resize.pod:352
21794 msgid "B<--machine-readable>"
21795 msgstr ""
21796
21797 #. type: textblock
21798 #: ../resize/virt-resize.pod:354
21799 msgid ""
21800 "This option is used to make the output more machine friendly when being "
21801 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
21802 msgstr ""
21803
21804 #. type: =item
21805 #: ../resize/virt-resize.pod:360
21806 msgid "B<--dryrun>"
21807 msgstr ""
21808
21809 #. type: textblock
21810 #: ../resize/virt-resize.pod:362
21811 msgid "Print a summary of what would be done, but don't do anything."
21812 msgstr ""
21813
21814 #. type: =item
21815 #: ../resize/virt-resize.pod:364
21816 msgid "B<--no-copy-boot-loader>"
21817 msgstr ""
21818
21819 #. type: textblock
21820 #: ../resize/virt-resize.pod:366
21821 msgid ""
21822 "By default, virt-resize copies over some sectors at the start of the disk "
21823 "(up to the beginning of the first partition).  Commonly these sectors "
21824 "contain the Master Boot Record (MBR) and the boot loader, and are required "
21825 "in order for the guest to boot correctly."
21826 msgstr ""
21827
21828 #. type: textblock
21829 #: ../resize/virt-resize.pod:371
21830 msgid ""
21831 "If you specify this flag, then this initial copy is not done.  You may need "
21832 "to reinstall the boot loader in this case."
21833 msgstr ""
21834
21835 #. type: =item
21836 #: ../resize/virt-resize.pod:374
21837 msgid "B<--no-extra-partition>"
21838 msgstr ""
21839
21840 #. type: textblock
21841 #: ../resize/virt-resize.pod:376
21842 msgid ""
21843 "By default, virt-resize creates an extra partition if there is any extra, "
21844 "unused space after all resizing has happened.  Use this option to prevent "
21845 "the extra partition from being created.  If you do this then the extra space "
21846 "will be inaccessible until you run fdisk, parted, or some other partitioning "
21847 "tool in the guest."
21848 msgstr ""
21849
21850 #. type: textblock
21851 #: ../resize/virt-resize.pod:382
21852 msgid ""
21853 "Note that if the surplus space is smaller than 10 MB, no extra partition "
21854 "will be created."
21855 msgstr ""
21856
21857 #. type: =item
21858 #: ../resize/virt-resize.pod:385
21859 msgid "B<--no-expand-content>"
21860 msgstr ""
21861
21862 #. type: textblock
21863 #: ../resize/virt-resize.pod:387
21864 msgid ""
21865 "By default, virt-resize will try to expand the direct contents of "
21866 "partitions, if it knows how (see I<--expand> option above)."
21867 msgstr ""
21868
21869 #. type: textblock
21870 #: ../resize/virt-resize.pod:390
21871 msgid ""
21872 "If you give the I<--no-expand-content> option then virt-resize will not "
21873 "attempt this."
21874 msgstr ""
21875
21876 #. type: =item
21877 #: ../resize/virt-resize.pod:393
21878 msgid "B<--ntfsresize-force>"
21879 msgstr ""
21880
21881 #. type: textblock
21882 #: ../resize/virt-resize.pod:395
21883 msgid ""
21884 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
21885 "the NTFS disk is marked as needing a consistency check.  You have to use "
21886 "this option if you want to resize a Windows guest multiple times without "
21887 "booting into Windows between each resize."
21888 msgstr ""
21889
21890 #. type: =item
21891 #: ../resize/virt-resize.pod:401
21892 msgid "B<--output-format> raw"
21893 msgstr ""
21894
21895 #. type: textblock
21896 #: ../resize/virt-resize.pod:403
21897 msgid ""
21898 "Specify the format of the output disk image.  If this flag is not given then "
21899 "it is auto-detected from the image itself."
21900 msgstr ""
21901
21902 #. type: textblock
21903 #: ../resize/virt-resize.pod:409
21904 msgid ""
21905 "Note that this option I<does not create> the output format.  This option "
21906 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
21907 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
21908 "SPARSE RAW FORMATS>."
21909 msgstr ""
21910
21911 #. type: =item
21912 #: ../resize/virt-resize.pod:414
21913 msgid "B<-q>"
21914 msgstr ""
21915
21916 #. type: =item
21917 #: ../resize/virt-resize.pod:416
21918 msgid "B<--quiet>"
21919 msgstr ""
21920
21921 #. type: textblock
21922 #: ../resize/virt-resize.pod:418
21923 msgid "Don't print the summary."
21924 msgstr ""
21925
21926 #. type: =item
21927 #: ../resize/virt-resize.pod:420
21928 msgid "B<--resize part=size>"
21929 msgstr ""
21930
21931 #. type: textblock
21932 #: ../resize/virt-resize.pod:422
21933 msgid ""
21934 "Resize the named partition (expanding or shrinking it) so that it has the "
21935 "given size."
21936 msgstr ""
21937
21938 #. type: textblock
21939 #: ../resize/virt-resize.pod:425
21940 msgid ""
21941 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
21942 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
21943 "size; or as a relative number or percentage.  For example:"
21944 msgstr ""
21945
21946 #. type: verbatim
21947 #: ../resize/virt-resize.pod:431
21948 #, no-wrap
21949 msgid ""
21950 " --resize /dev/sda2=10G\n"
21951 "\n"
21952 msgstr ""
21953
21954 #. type: verbatim
21955 #: ../resize/virt-resize.pod:433
21956 #, no-wrap
21957 msgid ""
21958 " --resize /dev/sda4=90%\n"
21959 "\n"
21960 msgstr ""
21961
21962 #. type: verbatim
21963 #: ../resize/virt-resize.pod:435
21964 #, no-wrap
21965 msgid ""
21966 " --resize /dev/sda2=+1G\n"
21967 "\n"
21968 msgstr ""
21969
21970 #. type: verbatim
21971 #: ../resize/virt-resize.pod:437
21972 #, no-wrap
21973 msgid ""
21974 " --resize /dev/sda2=-200M\n"
21975 "\n"
21976 msgstr ""
21977
21978 #. type: verbatim
21979 #: ../resize/virt-resize.pod:439
21980 #, no-wrap
21981 msgid ""
21982 " --resize /dev/sda1=+128K\n"
21983 "\n"
21984 msgstr ""
21985
21986 #. type: verbatim
21987 #: ../resize/virt-resize.pod:441
21988 #, no-wrap
21989 msgid ""
21990 " --resize /dev/sda1=+10%\n"
21991 "\n"
21992 msgstr ""
21993
21994 #. type: verbatim
21995 #: ../resize/virt-resize.pod:443
21996 #, no-wrap
21997 msgid ""
21998 " --resize /dev/sda1=-10%\n"
21999 "\n"
22000 msgstr ""
22001
22002 #. type: textblock
22003 #: ../resize/virt-resize.pod:445
22004 msgid ""
22005 "You can increase the size of any partition.  Virt-resize will expand the "
22006 "direct content of the partition if it knows how (see I<--expand> below)."
22007 msgstr ""
22008
22009 #. type: textblock
22010 #: ../resize/virt-resize.pod:449
22011 msgid ""
22012 "You can only I<decrease> the size of partitions that contain filesystems or "
22013 "PVs which have already been shrunk.  Virt-resize will check this has been "
22014 "done before proceeding, or else will print an error (see also I<--resize-"
22015 "force>)."
22016 msgstr ""
22017
22018 #. type: =item
22019 #: ../resize/virt-resize.pod:456
22020 msgid "B<--resize-force part=size>"
22021 msgstr ""
22022
22023 #. type: textblock
22024 #: ../resize/virt-resize.pod:458
22025 msgid ""
22026 "This is the same as I<--resize> except that it will let you decrease the "
22027 "size of any partition.  Generally this means you will lose any data which "
22028 "was at the end of the partition you shrink, but you may not care about that "
22029 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
22030 "as a swap partition)."
22031 msgstr ""
22032
22033 #. type: textblock
22034 #: ../resize/virt-resize.pod:464
22035 msgid "See also the I<--ignore> option."
22036 msgstr ""
22037
22038 #. type: =item
22039 #: ../resize/virt-resize.pod:466
22040 msgid "B<--shrink part>"
22041 msgstr ""
22042
22043 #. type: textblock
22044 #: ../resize/virt-resize.pod:468
22045 msgid ""
22046 "Shrink the named partition until the overall disk image fits in the "
22047 "destination.  The named partition B<must> contain a filesystem or PV which "
22048 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
22049 "online tools).  Virt-resize will check this and give an error if it has not "
22050 "been done."
22051 msgstr ""
22052
22053 #. type: textblock
22054 #: ../resize/virt-resize.pod:474
22055 msgid ""
22056 "The amount by which the overall disk must be shrunk (after carrying out all "
22057 "other operations requested by the user) is called the \"deficit\".  For "
22058 "example, a straight copy (assume no other operations)  from a 5GB disk image "
22059 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
22060 "would give an error unless the user specified a partition to shrink and that "
22061 "partition had more than a gigabyte of free space."
22062 msgstr ""
22063
22064 #. type: =head1
22065 #: ../resize/virt-resize.pod:492
22066 msgid "MACHINE READABLE OUTPUT"
22067 msgstr ""
22068
22069 #. type: textblock
22070 #: ../resize/virt-resize.pod:494
22071 msgid ""
22072 "The I<--machine-readable> option can be used to make the output more machine "
22073 "friendly, which is useful when calling virt-resize from other programs, GUIs "
22074 "etc."
22075 msgstr ""
22076
22077 #. type: textblock
22078 #: ../resize/virt-resize.pod:498
22079 msgid "There are two ways to use this option."
22080 msgstr ""
22081
22082 #. type: textblock
22083 #: ../resize/virt-resize.pod:500
22084 msgid ""
22085 "Firstly use the option on its own to query the capabilities of the virt-"
22086 "resize binary.  Typical output looks like this:"
22087 msgstr ""
22088
22089 #. type: verbatim
22090 #: ../resize/virt-resize.pod:503
22091 #, no-wrap
22092 msgid ""
22093 " $ virt-resize --machine-readable\n"
22094 " virt-resize\n"
22095 " ntfsresize-force\n"
22096 " 32bitok\n"
22097 " ntfs\n"
22098 " btrfs\n"
22099 "\n"
22100 msgstr ""
22101
22102 #. type: textblock
22103 #: ../resize/virt-resize.pod:510
22104 msgid ""
22105 "A list of features is printed, one per line, and the program exits with "
22106 "status 0."
22107 msgstr ""
22108
22109 #. type: textblock
22110 #: ../resize/virt-resize.pod:513
22111 msgid ""
22112 "Secondly use the option in conjunction with other options to make the "
22113 "regular program output more machine friendly."
22114 msgstr ""
22115
22116 #. type: textblock
22117 #: ../resize/virt-resize.pod:516
22118 msgid "At the moment this means:"
22119 msgstr ""
22120
22121 #. type: textblock
22122 #: ../resize/virt-resize.pod:522
22123 msgid ""
22124 "Progress bar messages can be parsed from stdout by looking for this regular "
22125 "expression:"
22126 msgstr ""
22127
22128 #. type: verbatim
22129 #: ../resize/virt-resize.pod:525
22130 #, no-wrap
22131 msgid ""
22132 " ^[0-9]+/[0-9]+$\n"
22133 "\n"
22134 msgstr ""
22135
22136 #. type: textblock
22137 #: ../resize/virt-resize.pod:529
22138 msgid ""
22139 "The calling program should treat messages sent to stdout (except for "
22140 "progress bar messages) as status messages.  They can be logged and/or "
22141 "displayed to the user."
22142 msgstr ""
22143
22144 #. type: textblock
22145 #: ../resize/virt-resize.pod:535
22146 msgid ""
22147 "The calling program should treat messages sent to stderr as error messages.  "
22148 "In addition, virt-resize exits with a non-zero status code if there was a "
22149 "fatal error."
22150 msgstr ""
22151
22152 #. type: textblock
22153 #: ../resize/virt-resize.pod:541
22154 msgid ""
22155 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
22156 "readable> option and will return an error."
22157 msgstr ""
22158
22159 #. type: =head2
22160 #: ../resize/virt-resize.pod:546
22161 msgid "\"Partition 1 does not end on cylinder boundary.\""
22162 msgstr ""
22163
22164 #. type: textblock
22165 #: ../resize/virt-resize.pod:548
22166 msgid ""
22167 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
22168 "means the partitions will not be aligned to the ancient CHS geometry.  "
22169 "However CHS geometry is meaningless for disks manufactured since the early "
22170 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
22171 "cylinders is not required by any modern operating system."
22172 msgstr ""
22173
22174 #. type: =head2
22175 #: ../resize/virt-resize.pod:555
22176 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
22177 msgstr ""
22178
22179 #. type: textblock
22180 #: ../resize/virt-resize.pod:557
22181 msgid ""
22182 "In Windows Vista and later versions, Microsoft switched to using a separate "
22183 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
22184 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
22185 "the boot partition.  Doing so seems to break the guest completely.  However "
22186 "expanding the second partition (ie. C: drive) should work."
22187 msgstr ""
22188
22189 #. type: textblock
22190 #: ../resize/virt-resize.pod:564
22191 msgid ""
22192 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
22193 "NTFS partitions have been expanded.  This is just a safety check and (unless "
22194 "it find errors) is nothing to worry about."
22195 msgstr ""
22196
22197 #. type: =head2
22198 #: ../resize/virt-resize.pod:568
22199 msgid "GUEST BOOT STUCK AT \"GRUB\""
22200 msgstr ""
22201
22202 #. type: textblock
22203 #: ../resize/virt-resize.pod:570
22204 msgid ""
22205 "If a Linux guest does not boot after resizing, and the boot is stuck after "
22206 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
22207 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
22208 "although we think is to do with partition alignment."
22209 msgstr ""
22210
22211 #. type: verbatim
22212 #: ../resize/virt-resize.pod:575
22213 #, no-wrap
22214 msgid ""
22215 " guestfish -i -a newdisk\n"
22216 " ><fs> cat /boot/grub/device.map\n"
22217 " # check the contents of this file are sensible or\n"
22218 " # edit the file if necessary\n"
22219 " ><fs> grub-install / /dev/vda\n"
22220 " ><fs> exit\n"
22221 "\n"
22222 msgstr ""
22223
22224 #. type: textblock
22225 #: ../resize/virt-resize.pod:582
22226 msgid ""
22227 "For more flexible guest reconfiguration, including if you need to specify "
22228 "other parameters to grub-install, use L<virt-rescue(1)>."
22229 msgstr ""
22230
22231 #. type: =head1
22232 #: ../resize/virt-resize.pod:585
22233 msgid "ALTERNATIVE TOOLS"
22234 msgstr ""
22235
22236 #. type: textblock
22237 #: ../resize/virt-resize.pod:587
22238 msgid ""
22239 "There are several proprietary tools for resizing partitions.  We won't "
22240 "mention any here."
22241 msgstr ""
22242
22243 #. type: textblock
22244 #: ../resize/virt-resize.pod:590
22245 msgid ""
22246 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
22247 "operations on disk images.  They can resize and move partitions, but I don't "
22248 "think they can do anything with the contents, and they certainly don't "
22249 "understand LVM."
22250 msgstr ""
22251
22252 #. type: textblock
22253 #: ../resize/virt-resize.pod:595
22254 msgid ""
22255 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
22256 "but at a much lower level.  You will probably end up hand-calculating sector "
22257 "offsets, which is something that virt-resize was designed to avoid.  If you "
22258 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
22259 "I<--debug> flag."
22260 msgstr ""
22261
22262 #. type: textblock
22263 #: ../resize/virt-resize.pod:615
22264 msgid ""
22265 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
22266 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
22267 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
22268 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<http://libguestfs.org/>."
22269 msgstr ""
22270
22271 #. type: textblock
22272 #: ../ruby/examples/guestfs-ruby.pod:5
22273 msgid "guestfs-ruby - How to use libguestfs from Ruby"
22274 msgstr ""
22275
22276 #. type: verbatim
22277 #: ../ruby/examples/guestfs-ruby.pod:9
22278 #, no-wrap
22279 msgid ""
22280 " require 'guestfs'\n"
22281 " g = Guestfs::Guestfs.new()\n"
22282 " g.add_drive_opts(\"disk.img\",\n"
22283 "                  :readonly => 1, :format => \"raw\")\n"
22284 " g.launch()\n"
22285 "\n"
22286 msgstr ""
22287
22288 #. type: textblock
22289 #: ../ruby/examples/guestfs-ruby.pod:17
22290 msgid ""
22291 "This manual page documents how to call libguestfs from the Ruby programming "
22292 "language.  This page just documents the differences from the C API and gives "
22293 "some examples.  If you are not familiar with using libguestfs, you also need "
22294 "to read L<guestfs(3)>."
22295 msgstr ""
22296
22297 #. type: textblock
22298 #: ../ruby/examples/guestfs-ruby.pod:24
22299 msgid ""
22300 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
22301 "This has a single parameter which is the error message (a string)."
22302 msgstr ""
22303
22304 #. type: textblock
22305 #: ../ruby/examples/guestfs-ruby.pod:38
22306 msgid ""
22307 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
22308 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
22309 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
22310 msgstr ""
22311
22312 #. type: =head2
22313 #: ../src/guestfs-actions.pod:1
22314 msgid "guestfs_add_cdrom"
22315 msgstr ""
22316
22317 #. type: verbatim
22318 #: ../src/guestfs-actions.pod:3
22319 #, no-wrap
22320 msgid ""
22321 " int\n"
22322 " guestfs_add_cdrom (guestfs_h *g,\n"
22323 "                    const char *filename);\n"
22324 "\n"
22325 msgstr ""
22326
22327 #. type: textblock
22328 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:249
22329 #: ../src/guestfs-actions.pod:270
22330 msgid ""
22331 "I<This function is deprecated.> In new code, use the L</"
22332 "guestfs_add_drive_opts> call instead."
22333 msgstr ""
22334
22335 #. type: textblock
22336 #: ../src/guestfs-actions.pod:24
22337 msgid ""
22338 "This call checks for the existence of C<filename>.  This stops you from "
22339 "specifying other types of drive which are supported by qemu such as C<nbd:> "
22340 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
22341 "instead."
22342 msgstr ""
22343
22344 #. type: textblock
22345 #: ../src/guestfs-actions.pod:31
22346 msgid ""
22347 "If you just want to add an ISO file (often you use this as an efficient way "
22348 "to transfer large files into the guest), then you should probably use "
22349 "C<guestfs_add_drive_ro> instead."
22350 msgstr ""
22351
22352 #. type: textblock
22353 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
22354 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
22355 #: ../src/guestfs-actions.pod:259 ../src/guestfs-actions.pod:280
22356 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
22357 #: ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447
22358 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506
22359 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552
22360 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652
22361 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681
22362 #: ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798
22363 #: ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826
22364 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046
22365 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084
22366 #: ../src/guestfs-actions.pod:1174 ../src/guestfs-actions.pod:1231
22367 #: ../src/guestfs-actions.pod:1275 ../src/guestfs-actions.pod:1293
22368 #: ../src/guestfs-actions.pod:1312 ../src/guestfs-actions.pod:1326
22369 #: ../src/guestfs-actions.pod:1346 ../src/guestfs-actions.pod:1416
22370 #: ../src/guestfs-actions.pod:1447 ../src/guestfs-actions.pod:1472
22371 #: ../src/guestfs-actions.pod:1514 ../src/guestfs-actions.pod:1627
22372 #: ../src/guestfs-actions.pod:1654 ../src/guestfs-actions.pod:1869
22373 #: ../src/guestfs-actions.pod:1891 ../src/guestfs-actions.pod:1978
22374 #: ../src/guestfs-actions.pod:2484 ../src/guestfs-actions.pod:2628
22375 #: ../src/guestfs-actions.pod:2689 ../src/guestfs-actions.pod:2724
22376 #: ../src/guestfs-actions.pod:3768 ../src/guestfs-actions.pod:3783
22377 #: ../src/guestfs-actions.pod:3808 ../src/guestfs-actions.pod:3997
22378 #: ../src/guestfs-actions.pod:4011 ../src/guestfs-actions.pod:4024
22379 #: ../src/guestfs-actions.pod:4038 ../src/guestfs-actions.pod:4053
22380 #: ../src/guestfs-actions.pod:4089 ../src/guestfs-actions.pod:4161
22381 #: ../src/guestfs-actions.pod:4181 ../src/guestfs-actions.pod:4198
22382 #: ../src/guestfs-actions.pod:4221 ../src/guestfs-actions.pod:4244
22383 #: ../src/guestfs-actions.pod:4279 ../src/guestfs-actions.pod:4298
22384 #: ../src/guestfs-actions.pod:4317 ../src/guestfs-actions.pod:4352
22385 #: ../src/guestfs-actions.pod:4364 ../src/guestfs-actions.pod:4400
22386 #: ../src/guestfs-actions.pod:4416 ../src/guestfs-actions.pod:4429
22387 #: ../src/guestfs-actions.pod:4444 ../src/guestfs-actions.pod:4461
22388 #: ../src/guestfs-actions.pod:4554 ../src/guestfs-actions.pod:4574
22389 #: ../src/guestfs-actions.pod:4587 ../src/guestfs-actions.pod:4638
22390 #: ../src/guestfs-actions.pod:4656 ../src/guestfs-actions.pod:4674
22391 #: ../src/guestfs-actions.pod:4690 ../src/guestfs-actions.pod:4704
22392 #: ../src/guestfs-actions.pod:4718 ../src/guestfs-actions.pod:4735
22393 #: ../src/guestfs-actions.pod:4750 ../src/guestfs-actions.pod:4777
22394 #: ../src/guestfs-actions.pod:4840 ../src/guestfs-actions.pod:4913
22395 #: ../src/guestfs-actions.pod:4944 ../src/guestfs-actions.pod:4963
22396 #: ../src/guestfs-actions.pod:4982 ../src/guestfs-actions.pod:4994
22397 #: ../src/guestfs-actions.pod:5011 ../src/guestfs-actions.pod:5024
22398 #: ../src/guestfs-actions.pod:5039 ../src/guestfs-actions.pod:5054
22399 #: ../src/guestfs-actions.pod:5096 ../src/guestfs-actions.pod:5122
22400 #: ../src/guestfs-actions.pod:5161 ../src/guestfs-actions.pod:5181
22401 #: ../src/guestfs-actions.pod:5195 ../src/guestfs-actions.pod:5212
22402 #: ../src/guestfs-actions.pod:5261 ../src/guestfs-actions.pod:5314
22403 #: ../src/guestfs-actions.pod:5361 ../src/guestfs-actions.pod:5404
22404 #: ../src/guestfs-actions.pod:5432 ../src/guestfs-actions.pod:5449
22405 #: ../src/guestfs-actions.pod:5467 ../src/guestfs-actions.pod:5607
22406 #: ../src/guestfs-actions.pod:5664 ../src/guestfs-actions.pod:5686
22407 #: ../src/guestfs-actions.pod:5704 ../src/guestfs-actions.pod:5736
22408 #: ../src/guestfs-actions.pod:5802 ../src/guestfs-actions.pod:5819
22409 #: ../src/guestfs-actions.pod:5832 ../src/guestfs-actions.pod:5846
22410 #: ../src/guestfs-actions.pod:6135 ../src/guestfs-actions.pod:6154
22411 #: ../src/guestfs-actions.pod:6173 ../src/guestfs-actions.pod:6187
22412 #: ../src/guestfs-actions.pod:6199 ../src/guestfs-actions.pod:6213
22413 #: ../src/guestfs-actions.pod:6225 ../src/guestfs-actions.pod:6239
22414 #: ../src/guestfs-actions.pod:6255 ../src/guestfs-actions.pod:6276
22415 #: ../src/guestfs-actions.pod:6295 ../src/guestfs-actions.pod:6314
22416 #: ../src/guestfs-actions.pod:6344 ../src/guestfs-actions.pod:6362
22417 #: ../src/guestfs-actions.pod:6385 ../src/guestfs-actions.pod:6403
22418 #: ../src/guestfs-actions.pod:6422 ../src/guestfs-actions.pod:6443
22419 #: ../src/guestfs-actions.pod:6462 ../src/guestfs-actions.pod:6479
22420 #: ../src/guestfs-actions.pod:6498 ../src/guestfs-actions.pod:6526
22421 #: ../src/guestfs-actions.pod:6550 ../src/guestfs-actions.pod:6569
22422 #: ../src/guestfs-actions.pod:6585 ../src/guestfs-actions.pod:6607
22423 #: ../src/guestfs-actions.pod:6626 ../src/guestfs-actions.pod:6641
22424 #: ../src/guestfs-actions.pod:6660 ../src/guestfs-actions.pod:6704
22425 #: ../src/guestfs-actions.pod:6734 ../src/guestfs-actions.pod:6767
22426 #: ../src/guestfs-actions.pod:6882 ../src/guestfs-actions.pod:7003
22427 #: ../src/guestfs-actions.pod:7015 ../src/guestfs-actions.pod:7028
22428 #: ../src/guestfs-actions.pod:7041 ../src/guestfs-actions.pod:7063
22429 #: ../src/guestfs-actions.pod:7076 ../src/guestfs-actions.pod:7089
22430 #: ../src/guestfs-actions.pod:7102 ../src/guestfs-actions.pod:7117
22431 #: ../src/guestfs-actions.pod:7176 ../src/guestfs-actions.pod:7193
22432 #: ../src/guestfs-actions.pod:7209 ../src/guestfs-actions.pod:7225
22433 #: ../src/guestfs-actions.pod:7242 ../src/guestfs-actions.pod:7255
22434 #: ../src/guestfs-actions.pod:7275 ../src/guestfs-actions.pod:7311
22435 #: ../src/guestfs-actions.pod:7325 ../src/guestfs-actions.pod:7366
22436 #: ../src/guestfs-actions.pod:7379 ../src/guestfs-actions.pod:7397
22437 #: ../src/guestfs-actions.pod:7431 ../src/guestfs-actions.pod:7467
22438 #: ../src/guestfs-actions.pod:7583 ../src/guestfs-actions.pod:7598
22439 #: ../src/guestfs-actions.pod:7612 ../src/guestfs-actions.pod:7667
22440 #: ../src/guestfs-actions.pod:7680 ../src/guestfs-actions.pod:7725
22441 #: ../src/guestfs-actions.pod:7765 ../src/guestfs-actions.pod:7821
22442 #: ../src/guestfs-actions.pod:7841 ../src/guestfs-actions.pod:7874
22443 #: ../src/guestfs-actions.pod:7938 ../src/guestfs-actions.pod:7961
22444 #: ../src/guestfs-actions.pod:7990
22445 msgid "This function returns 0 on success or -1 on error."
22446 msgstr ""
22447
22448 #. type: textblock
22449 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
22450 #: ../src/guestfs-actions.pod:1277 ../src/guestfs-actions.pod:2092
22451 #: ../src/guestfs-actions.pod:2190 ../src/guestfs-actions.pod:2313
22452 #: ../src/guestfs-actions.pod:3770 ../src/guestfs-actions.pod:3790
22453 #: ../src/guestfs-actions.pod:5098 ../src/guestfs-actions.pod:6364
22454 #: ../src/guestfs-actions.pod:6481 ../src/guestfs-actions.pod:6628
22455 #: ../src/guestfs-actions.pod:7119 ../src/guestfs-actions.pod:7244
22456 #: ../src/guestfs-actions.pod:7767
22457 msgid "(Added in 0.3)"
22458 msgstr ""
22459
22460 #. type: =head2
22461 #: ../src/guestfs-actions.pod:41
22462 msgid "guestfs_add_domain"
22463 msgstr ""
22464
22465 #. type: verbatim
22466 #: ../src/guestfs-actions.pod:43
22467 #, no-wrap
22468 msgid ""
22469 " int\n"
22470 " guestfs_add_domain (guestfs_h *g,\n"
22471 "                     const char *dom,\n"
22472 "                     ...);\n"
22473 "\n"
22474 msgstr ""
22475
22476 #. type: textblock
22477 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
22478 #: ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:1161
22479 #: ../src/guestfs-actions.pod:1211 ../src/guestfs-actions.pod:2973
22480 #: ../src/guestfs-actions.pod:4789 ../src/guestfs-actions.pod:5108
22481 #: ../src/guestfs-actions.pod:5325
22482 msgid ""
22483 "You may supply a list of optional arguments to this call.  Use zero or more "
22484 "of the following pairs of parameters, and terminate the list with C<-1> on "
22485 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
22486 msgstr ""
22487
22488 #. type: verbatim
22489 #: ../src/guestfs-actions.pod:53
22490 #, no-wrap
22491 msgid ""
22492 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
22493 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
22494 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
22495 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
22496 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
22497 "\n"
22498 msgstr ""
22499
22500 #. type: textblock
22501 #: ../src/guestfs-actions.pod:59
22502 msgid ""
22503 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
22504 "It works by connecting to libvirt, requesting the domain and domain XML from "
22505 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
22506 "one."
22507 msgstr ""
22508
22509 #. type: textblock
22510 #: ../src/guestfs-actions.pod:94
22511 msgid ""
22512 "The other optional parameters are passed directly through to "
22513 "C<guestfs_add_drive_opts>."
22514 msgstr ""
22515
22516 #. type: textblock
22517 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
22518 #: ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698
22519 #: ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747
22520 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1492
22521 #: ../src/guestfs-actions.pod:1848 ../src/guestfs-actions.pod:2051
22522 #: ../src/guestfs-actions.pod:2162 ../src/guestfs-actions.pod:2213
22523 #: ../src/guestfs-actions.pod:2265 ../src/guestfs-actions.pod:2277
22524 #: ../src/guestfs-actions.pod:2300 ../src/guestfs-actions.pod:2615
22525 #: ../src/guestfs-actions.pod:3091 ../src/guestfs-actions.pod:3109
22526 #: ../src/guestfs-actions.pod:5284 ../src/guestfs-actions.pod:5504
22527 #: ../src/guestfs-actions.pod:5916 ../src/guestfs-actions.pod:5942
22528 #: ../src/guestfs-actions.pod:7352 ../src/guestfs-actions.pod:7778
22529 #: ../src/guestfs-actions.pod:7791 ../src/guestfs-actions.pod:7804
22530 msgid "On error this function returns -1."
22531 msgstr ""
22532
22533 #. type: textblock
22534 #: ../src/guestfs-actions.pod:99
22535 msgid "(Added in 1.7.4)"
22536 msgstr ""
22537
22538 #. type: =head2
22539 #: ../src/guestfs-actions.pod:101
22540 msgid "guestfs_add_domain_va"
22541 msgstr ""
22542
22543 #. type: verbatim
22544 #: ../src/guestfs-actions.pod:103
22545 #, no-wrap
22546 msgid ""
22547 " int\n"
22548 " guestfs_add_domain_va (guestfs_h *g,\n"
22549 "                        const char *dom,\n"
22550 "                        va_list args);\n"
22551 "\n"
22552 msgstr ""
22553
22554 #. type: textblock
22555 #: ../src/guestfs-actions.pod:108
22556 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
22557 msgstr ""
22558
22559 #. type: textblock
22560 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
22561 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
22562 #: ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887
22563 #: ../src/guestfs-actions.pod:1187 ../src/guestfs-actions.pod:1200
22564 #: ../src/guestfs-actions.pod:1244 ../src/guestfs-actions.pod:1257
22565 #: ../src/guestfs-actions.pod:3057 ../src/guestfs-actions.pod:3069
22566 #: ../src/guestfs-actions.pod:4854 ../src/guestfs-actions.pod:4866
22567 #: ../src/guestfs-actions.pod:5136 ../src/guestfs-actions.pod:5148
22568 #: ../src/guestfs-actions.pod:5374 ../src/guestfs-actions.pod:5385
22569 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
22570 msgstr ""
22571
22572 #. type: =head2
22573 #: ../src/guestfs-actions.pod:112
22574 msgid "guestfs_add_domain_argv"
22575 msgstr ""
22576
22577 #. type: verbatim
22578 #: ../src/guestfs-actions.pod:114
22579 #, no-wrap
22580 msgid ""
22581 " int\n"
22582 " guestfs_add_domain_argv (guestfs_h *g,\n"
22583 "                          const char *dom,\n"
22584 "                          const struct guestfs_add_domain_argv *optargs);\n"
22585 "\n"
22586 msgstr ""
22587
22588 #. type: textblock
22589 #: ../src/guestfs-actions.pod:119
22590 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
22591 msgstr ""
22592
22593 #. type: =head2
22594 #: ../src/guestfs-actions.pod:123
22595 msgid "guestfs_add_drive"
22596 msgstr ""
22597
22598 #. type: verbatim
22599 #: ../src/guestfs-actions.pod:125
22600 #, no-wrap
22601 msgid ""
22602 " int\n"
22603 " guestfs_add_drive (guestfs_h *g,\n"
22604 "                    const char *filename);\n"
22605 "\n"
22606 msgstr ""
22607
22608 #. type: textblock
22609 #: ../src/guestfs-actions.pod:129
22610 msgid ""
22611 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
22612 "optional parameters, so the disk is added writable, with the format being "
22613 "detected automatically."
22614 msgstr ""
22615
22616 #. type: textblock
22617 #: ../src/guestfs-actions.pod:133
22618 msgid ""
22619 "Automatic detection of the format opens you up to a potential security hole "
22620 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
22621 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
22622 "you should think about replacing calls to this function with calls to "
22623 "C<guestfs_add_drive_opts>, and specifying the format."
22624 msgstr ""
22625
22626 #. type: =head2
22627 #: ../src/guestfs-actions.pod:144
22628 msgid "guestfs_add_drive_opts"
22629 msgstr ""
22630
22631 #. type: verbatim
22632 #: ../src/guestfs-actions.pod:146
22633 #, no-wrap
22634 msgid ""
22635 " int\n"
22636 " guestfs_add_drive_opts (guestfs_h *g,\n"
22637 "                         const char *filename,\n"
22638 "                         ...);\n"
22639 "\n"
22640 msgstr ""
22641
22642 #. type: verbatim
22643 #: ../src/guestfs-actions.pod:156
22644 #, no-wrap
22645 msgid ""
22646 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
22647 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
22648 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
22649 "\n"
22650 msgstr ""
22651
22652 #. type: textblock
22653 #: ../src/guestfs-actions.pod:185
22654 msgid ""
22655 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
22656 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
22657 "Possible formats include C<raw> and C<qcow2>."
22658 msgstr ""
22659
22660 #. type: textblock
22661 #: ../src/guestfs-actions.pod:196
22662 msgid ""
22663 "This rarely-used option lets you emulate the behaviour of the deprecated "
22664 "C<guestfs_add_drive_with_if> call (q.v.)"
22665 msgstr ""
22666
22667 #. type: textblock
22668 #: ../src/guestfs-actions.pod:203
22669 msgid "(Added in 1.5.23)"
22670 msgstr ""
22671
22672 #. type: =head2
22673 #: ../src/guestfs-actions.pod:205
22674 msgid "guestfs_add_drive_opts_va"
22675 msgstr ""
22676
22677 #. type: verbatim
22678 #: ../src/guestfs-actions.pod:207
22679 #, no-wrap
22680 msgid ""
22681 " int\n"
22682 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
22683 "                            const char *filename,\n"
22684 "                            va_list args);\n"
22685 "\n"
22686 msgstr ""
22687
22688 #. type: textblock
22689 #: ../src/guestfs-actions.pod:212
22690 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
22691 msgstr ""
22692
22693 #. type: =head2
22694 #: ../src/guestfs-actions.pod:216
22695 msgid "guestfs_add_drive_opts_argv"
22696 msgstr ""
22697
22698 #. type: verbatim
22699 #: ../src/guestfs-actions.pod:218
22700 #, no-wrap
22701 msgid ""
22702 " int\n"
22703 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
22704 "                              const char *filename,\n"
22705 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
22706 "\n"
22707 msgstr ""
22708
22709 #. type: textblock
22710 #: ../src/guestfs-actions.pod:223
22711 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
22712 msgstr ""
22713
22714 #. type: =head2
22715 #: ../src/guestfs-actions.pod:227
22716 msgid "guestfs_add_drive_ro"
22717 msgstr ""
22718
22719 #. type: verbatim
22720 #: ../src/guestfs-actions.pod:229
22721 #, no-wrap
22722 msgid ""
22723 " int\n"
22724 " guestfs_add_drive_ro (guestfs_h *g,\n"
22725 "                       const char *filename);\n"
22726 "\n"
22727 msgstr ""
22728
22729 #. type: textblock
22730 #: ../src/guestfs-actions.pod:233
22731 msgid ""
22732 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
22733 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
22734 "disk is added read-only, with the format being detected automatically."
22735 msgstr ""
22736
22737 #. type: textblock
22738 #: ../src/guestfs-actions.pod:240
22739 msgid "(Added in 1.0.38)"
22740 msgstr ""
22741
22742 #. type: =head2
22743 #: ../src/guestfs-actions.pod:242
22744 msgid "guestfs_add_drive_ro_with_if"
22745 msgstr ""
22746
22747 #. type: verbatim
22748 #: ../src/guestfs-actions.pod:244
22749 #, no-wrap
22750 msgid ""
22751 " int\n"
22752 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
22753 "                               const char *filename,\n"
22754 "                               const char *iface);\n"
22755 "\n"
22756 msgstr ""
22757
22758 #. type: textblock
22759 #: ../src/guestfs-actions.pod:256
22760 msgid ""
22761 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
22762 "QEMU interface emulation to use at run time."
22763 msgstr ""
22764
22765 #. type: textblock
22766 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
22767 #: ../src/guestfs-actions.pod:2574
22768 msgid "(Added in 1.0.84)"
22769 msgstr ""
22770
22771 #. type: =head2
22772 #: ../src/guestfs-actions.pod:263
22773 msgid "guestfs_add_drive_with_if"
22774 msgstr ""
22775
22776 #. type: verbatim
22777 #: ../src/guestfs-actions.pod:265
22778 #, no-wrap
22779 msgid ""
22780 " int\n"
22781 " guestfs_add_drive_with_if (guestfs_h *g,\n"
22782 "                            const char *filename,\n"
22783 "                            const char *iface);\n"
22784 "\n"
22785 msgstr ""
22786
22787 #. type: textblock
22788 #: ../src/guestfs-actions.pod:277
22789 msgid ""
22790 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
22791 "QEMU interface emulation to use at run time."
22792 msgstr ""
22793
22794 #. type: =head2
22795 #: ../src/guestfs-actions.pod:284
22796 msgid "guestfs_aug_clear"
22797 msgstr ""
22798
22799 #. type: verbatim
22800 #: ../src/guestfs-actions.pod:286
22801 #, no-wrap
22802 msgid ""
22803 " int\n"
22804 " guestfs_aug_clear (guestfs_h *g,\n"
22805 "                    const char *augpath);\n"
22806 "\n"
22807 msgstr ""
22808
22809 #. type: textblock
22810 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2302
22811 msgid "(Added in 1.3.4)"
22812 msgstr ""
22813
22814 #. type: =head2
22815 #: ../src/guestfs-actions.pod:297
22816 msgid "guestfs_aug_close"
22817 msgstr ""
22818
22819 #. type: verbatim
22820 #: ../src/guestfs-actions.pod:299
22821 #, no-wrap
22822 msgid ""
22823 " int\n"
22824 " guestfs_aug_close (guestfs_h *g);\n"
22825 "\n"
22826 msgstr ""
22827
22828 #. type: textblock
22829 #: ../src/guestfs-actions.pod:302
22830 msgid ""
22831 "Close the current Augeas handle and free up any resources used by it.  After "
22832 "calling this, you have to call C<guestfs_aug_init> again before you can use "
22833 "any other Augeas functions."
22834 msgstr ""
22835
22836 #. type: textblock
22837 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
22838 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
22839 #: ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449
22840 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494
22841 #: ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522
22842 #: ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554
22843 #: ../src/guestfs-actions.pod:5993
22844 msgid "(Added in 0.7)"
22845 msgstr ""
22846
22847 #. type: =head2
22848 #: ../src/guestfs-actions.pod:311
22849 msgid "guestfs_aug_defnode"
22850 msgstr ""
22851
22852 #. type: verbatim
22853 #: ../src/guestfs-actions.pod:313
22854 #, no-wrap
22855 msgid ""
22856 " struct guestfs_int_bool *\n"
22857 " guestfs_aug_defnode (guestfs_h *g,\n"
22858 "                      const char *name,\n"
22859 "                      const char *expr,\n"
22860 "                      const char *val);\n"
22861 "\n"
22862 msgstr ""
22863
22864 #. type: textblock
22865 #: ../src/guestfs-actions.pod:322
22866 msgid ""
22867 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
22868 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
22869 "containing that single node."
22870 msgstr ""
22871
22872 #. type: textblock
22873 #: ../src/guestfs-actions.pod:330
22874 msgid ""
22875 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
22876 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
22877 msgstr ""
22878
22879 #. type: =head2
22880 #: ../src/guestfs-actions.pod:336
22881 msgid "guestfs_aug_defvar"
22882 msgstr ""
22883
22884 #. type: verbatim
22885 #: ../src/guestfs-actions.pod:338
22886 #, no-wrap
22887 msgid ""
22888 " int\n"
22889 " guestfs_aug_defvar (guestfs_h *g,\n"
22890 "                     const char *name,\n"
22891 "                     const char *expr);\n"
22892 "\n"
22893 msgstr ""
22894
22895 #. type: =head2
22896 #: ../src/guestfs-actions.pod:354
22897 msgid "guestfs_aug_get"
22898 msgstr ""
22899
22900 #. type: verbatim
22901 #: ../src/guestfs-actions.pod:356
22902 #, no-wrap
22903 msgid ""
22904 " char *\n"
22905 " guestfs_aug_get (guestfs_h *g,\n"
22906 "                  const char *augpath);\n"
22907 "\n"
22908 msgstr ""
22909
22910 #. type: textblock
22911 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927
22912 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005
22913 #: ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124
22914 #: ../src/guestfs-actions.pod:1361 ../src/guestfs-actions.pod:1378
22915 #: ../src/guestfs-actions.pod:1397 ../src/guestfs-actions.pod:1531
22916 #: ../src/guestfs-actions.pod:1719 ../src/guestfs-actions.pod:1831
22917 #: ../src/guestfs-actions.pod:1994 ../src/guestfs-actions.pod:2011
22918 #: ../src/guestfs-actions.pod:2078 ../src/guestfs-actions.pod:2121
22919 #: ../src/guestfs-actions.pod:2142 ../src/guestfs-actions.pod:2325
22920 #: ../src/guestfs-actions.pod:2539 ../src/guestfs-actions.pod:2743
22921 #: ../src/guestfs-actions.pod:2837 ../src/guestfs-actions.pod:2941
22922 #: ../src/guestfs-actions.pod:2960 ../src/guestfs-actions.pod:3174
22923 #: ../src/guestfs-actions.pod:3202 ../src/guestfs-actions.pod:3223
22924 #: ../src/guestfs-actions.pod:3257 ../src/guestfs-actions.pod:3316
22925 #: ../src/guestfs-actions.pod:3336 ../src/guestfs-actions.pod:3356
22926 #: ../src/guestfs-actions.pod:3983 ../src/guestfs-actions.pod:4336
22927 #: ../src/guestfs-actions.pod:4506 ../src/guestfs-actions.pod:4616
22928 #: ../src/guestfs-actions.pod:5522 ../src/guestfs-actions.pod:5721
22929 #: ../src/guestfs-actions.pod:5891 ../src/guestfs-actions.pod:6069
22930 #: ../src/guestfs-actions.pod:6118 ../src/guestfs-actions.pod:6788
22931 #: ../src/guestfs-actions.pod:6804 ../src/guestfs-actions.pod:6828
22932 #: ../src/guestfs-actions.pod:6852 ../src/guestfs-actions.pod:7526
22933 #: ../src/guestfs-actions.pod:7545 ../src/guestfs-actions.pod:7563
22934 #: ../src/guestfs-actions.pod:7737 ../src/guestfs-actions.pod:8054
22935 msgid ""
22936 "This function returns a string, or NULL on error.  I<The caller must free "
22937 "the returned string after use>."
22938 msgstr ""
22939
22940 #. type: =head2
22941 #: ../src/guestfs-actions.pod:368
22942 msgid "guestfs_aug_init"
22943 msgstr ""
22944
22945 #. type: verbatim
22946 #: ../src/guestfs-actions.pod:370
22947 #, no-wrap
22948 msgid ""
22949 " int\n"
22950 " guestfs_aug_init (guestfs_h *g,\n"
22951 "                   const char *root,\n"
22952 "                   int flags);\n"
22953 "\n"
22954 msgstr ""
22955
22956 #. type: textblock
22957 #: ../src/guestfs-actions.pod:379
22958 msgid "You must call this before using any other C<guestfs_aug_*> commands."
22959 msgstr ""
22960
22961 #. type: textblock
22962 #: ../src/guestfs-actions.pod:404
22963 msgid ""
22964 "This option is only useful when debugging Augeas lenses.  Use of this option "
22965 "may require additional memory for the libguestfs appliance.  You may need to "
22966 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
22967 "C<guestfs_set_memsize>."
22968 msgstr ""
22969
22970 #. type: textblock
22971 #: ../src/guestfs-actions.pod:419
22972 msgid "Do not load the tree in C<guestfs_aug_init>."
22973 msgstr ""
22974
22975 #. type: textblock
22976 #: ../src/guestfs-actions.pod:423
22977 msgid "To close the handle, you can call C<guestfs_aug_close>."
22978 msgstr ""
22979
22980 #. type: =head2
22981 #: ../src/guestfs-actions.pod:431
22982 msgid "guestfs_aug_insert"
22983 msgstr ""
22984
22985 #. type: verbatim
22986 #: ../src/guestfs-actions.pod:433
22987 #, no-wrap
22988 msgid ""
22989 " int\n"
22990 " guestfs_aug_insert (guestfs_h *g,\n"
22991 "                     const char *augpath,\n"
22992 "                     const char *label,\n"
22993 "                     int before);\n"
22994 "\n"
22995 msgstr ""
22996
22997 #. type: =head2
22998 #: ../src/guestfs-actions.pod:451
22999 msgid "guestfs_aug_load"
23000 msgstr ""
23001
23002 #. type: verbatim
23003 #: ../src/guestfs-actions.pod:453
23004 #, no-wrap
23005 msgid ""
23006 " int\n"
23007 " guestfs_aug_load (guestfs_h *g);\n"
23008 "\n"
23009 msgstr ""
23010
23011 #. type: =head2
23012 #: ../src/guestfs-actions.pod:465
23013 msgid "guestfs_aug_ls"
23014 msgstr ""
23015
23016 #. type: verbatim
23017 #: ../src/guestfs-actions.pod:467
23018 #, no-wrap
23019 msgid ""
23020 " char **\n"
23021 " guestfs_aug_ls (guestfs_h *g,\n"
23022 "                 const char *augpath);\n"
23023 "\n"
23024 msgstr ""
23025
23026 #. type: textblock
23027 #: ../src/guestfs-actions.pod:471
23028 msgid ""
23029 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
23030 "sorting the resulting nodes into alphabetical order."
23031 msgstr ""
23032
23033 #. type: textblock
23034 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490
23035 #: ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143
23036 #: ../src/guestfs-actions.pod:1546 ../src/guestfs-actions.pod:1565
23037 #: ../src/guestfs-actions.pod:1668 ../src/guestfs-actions.pod:1687
23038 #: ../src/guestfs-actions.pod:1933 ../src/guestfs-actions.pod:2397
23039 #: ../src/guestfs-actions.pod:2413 ../src/guestfs-actions.pod:2432
23040 #: ../src/guestfs-actions.pod:2497 ../src/guestfs-actions.pod:2521
23041 #: ../src/guestfs-actions.pod:2592 ../src/guestfs-actions.pod:2641
23042 #: ../src/guestfs-actions.pod:2902 ../src/guestfs-actions.pod:3276
23043 #: ../src/guestfs-actions.pod:3552 ../src/guestfs-actions.pod:3866
23044 #: ../src/guestfs-actions.pod:3883 ../src/guestfs-actions.pod:3903
23045 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:4070
23046 #: ../src/guestfs-actions.pod:4478 ../src/guestfs-actions.pod:5245
23047 #: ../src/guestfs-actions.pod:5863 ../src/guestfs-actions.pod:5989
23048 #: ../src/guestfs-actions.pod:6103 ../src/guestfs-actions.pod:6868
23049 #: ../src/guestfs-actions.pod:6929 ../src/guestfs-actions.pod:6984
23050 #: ../src/guestfs-actions.pod:7130 ../src/guestfs-actions.pod:7154
23051 #: ../src/guestfs-actions.pod:7630 ../src/guestfs-actions.pod:7650
23052 #: ../src/guestfs-actions.pod:7697 ../src/guestfs-actions.pod:7891
23053 #: ../src/guestfs-actions.pod:7910 ../src/guestfs-actions.pod:8004
23054 #: ../src/guestfs-actions.pod:8023 ../src/guestfs-actions.pod:8069
23055 #: ../src/guestfs-actions.pod:8088
23056 msgid ""
23057 "This function returns a NULL-terminated array of strings (like L<environ(3)"
23058 ">), or NULL if there was an error.  I<The caller must free the strings and "
23059 "the array after use>."
23060 msgstr ""
23061
23062 #. type: textblock
23063 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068
23064 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1603
23065 #: ../src/guestfs-actions.pod:3630 ../src/guestfs-actions.pod:3661
23066 #: ../src/guestfs-actions.pod:4319 ../src/guestfs-actions.pod:4369
23067 #: ../src/guestfs-actions.pod:4556 ../src/guestfs-actions.pod:4589
23068 #: ../src/guestfs-actions.pod:4752 ../src/guestfs-actions.pod:5249
23069 #: ../src/guestfs-actions.pod:5804 ../src/guestfs-actions.pod:6201
23070 #: ../src/guestfs-actions.pod:6215 ../src/guestfs-actions.pod:6227
23071 #: ../src/guestfs-actions.pod:6709 ../src/guestfs-actions.pod:7368
23072 #: ../src/guestfs-actions.pod:7381 ../src/guestfs-actions.pod:7614
23073 #: ../src/guestfs-actions.pod:7879
23074 msgid "(Added in 0.8)"
23075 msgstr ""
23076
23077 #. type: =head2
23078 #: ../src/guestfs-actions.pod:480
23079 msgid "guestfs_aug_match"
23080 msgstr ""
23081
23082 #. type: verbatim
23083 #: ../src/guestfs-actions.pod:482
23084 #, no-wrap
23085 msgid ""
23086 " char **\n"
23087 " guestfs_aug_match (guestfs_h *g,\n"
23088 "                    const char *augpath);\n"
23089 "\n"
23090 msgstr ""
23091
23092 #. type: =head2
23093 #: ../src/guestfs-actions.pod:496
23094 msgid "guestfs_aug_mv"
23095 msgstr ""
23096
23097 #. type: verbatim
23098 #: ../src/guestfs-actions.pod:498
23099 #, no-wrap
23100 msgid ""
23101 " int\n"
23102 " guestfs_aug_mv (guestfs_h *g,\n"
23103 "                 const char *src,\n"
23104 "                 const char *dest);\n"
23105 "\n"
23106 msgstr ""
23107
23108 #. type: =head2
23109 #: ../src/guestfs-actions.pod:510
23110 msgid "guestfs_aug_rm"
23111 msgstr ""
23112
23113 #. type: verbatim
23114 #: ../src/guestfs-actions.pod:512
23115 #, no-wrap
23116 msgid ""
23117 " int\n"
23118 " guestfs_aug_rm (guestfs_h *g,\n"
23119 "                 const char *augpath);\n"
23120 "\n"
23121 msgstr ""
23122
23123 #. type: =head2
23124 #: ../src/guestfs-actions.pod:524
23125 msgid "guestfs_aug_save"
23126 msgstr ""
23127
23128 #. type: verbatim
23129 #: ../src/guestfs-actions.pod:526
23130 #, no-wrap
23131 msgid ""
23132 " int\n"
23133 " guestfs_aug_save (guestfs_h *g);\n"
23134 "\n"
23135 msgstr ""
23136
23137 #. type: textblock
23138 #: ../src/guestfs-actions.pod:531
23139 msgid ""
23140 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
23141 "are saved."
23142 msgstr ""
23143
23144 #. type: =head2
23145 #: ../src/guestfs-actions.pod:538
23146 msgid "guestfs_aug_set"
23147 msgstr ""
23148
23149 #. type: verbatim
23150 #: ../src/guestfs-actions.pod:540
23151 #, no-wrap
23152 msgid ""
23153 " int\n"
23154 " guestfs_aug_set (guestfs_h *g,\n"
23155 "                  const char *augpath,\n"
23156 "                  const char *val);\n"
23157 "\n"
23158 msgstr ""
23159
23160 #. type: textblock
23161 #: ../src/guestfs-actions.pod:547
23162 msgid ""
23163 "In the Augeas API, it is possible to clear a node by setting the value to "
23164 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
23165 "this call.  Instead you must use the C<guestfs_aug_clear> call."
23166 msgstr ""
23167
23168 #. type: =head2
23169 #: ../src/guestfs-actions.pod:556
23170 msgid "guestfs_available"
23171 msgstr ""
23172
23173 #. type: verbatim
23174 #: ../src/guestfs-actions.pod:558
23175 #, no-wrap
23176 msgid ""
23177 " int\n"
23178 " guestfs_available (guestfs_h *g,\n"
23179 "                    char *const *groups);\n"
23180 "\n"
23181 msgstr ""
23182
23183 #. type: textblock
23184 #: ../src/guestfs-actions.pod:566
23185 msgid ""
23186 "The libguestfs groups, and the functions that those groups correspond to, "
23187 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
23188 "runtime by calling C<guestfs_available_all_groups>."
23189 msgstr ""
23190
23191 #. type: textblock
23192 #: ../src/guestfs-actions.pod:590
23193 msgid "You must call C<guestfs_launch> before calling this function."
23194 msgstr ""
23195
23196 #. type: textblock
23197 #: ../src/guestfs-actions.pod:612
23198 msgid ""
23199 "This call was added in version C<1.0.80>.  In previous versions of "
23200 "libguestfs all you could do would be to speculatively execute a command to "
23201 "find out if the daemon implemented it.  See also C<guestfs_version>."
23202 msgstr ""
23203
23204 #. type: textblock
23205 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1348
23206 msgid "(Added in 1.0.80)"
23207 msgstr ""
23208
23209 #. type: =head2
23210 #: ../src/guestfs-actions.pod:623
23211 msgid "guestfs_available_all_groups"
23212 msgstr ""
23213
23214 #. type: verbatim
23215 #: ../src/guestfs-actions.pod:625
23216 #, no-wrap
23217 msgid ""
23218 " char **\n"
23219 " guestfs_available_all_groups (guestfs_h *g);\n"
23220 "\n"
23221 msgstr ""
23222
23223 #. type: textblock
23224 #: ../src/guestfs-actions.pod:628
23225 msgid ""
23226 "This command returns a list of all optional groups that this daemon knows "
23227 "about.  Note this returns both supported and unsupported groups.  To find "
23228 "out which ones the daemon can actually support you have to call "
23229 "C<guestfs_available> on each member of the returned list."
23230 msgstr ""
23231
23232 #. type: textblock
23233 #: ../src/guestfs-actions.pod:634
23234 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
23235 msgstr ""
23236
23237 #. type: textblock
23238 #: ../src/guestfs-actions.pod:640
23239 msgid "(Added in 1.3.15)"
23240 msgstr ""
23241
23242 #. type: =head2
23243 #: ../src/guestfs-actions.pod:642
23244 msgid "guestfs_base64_in"
23245 msgstr ""
23246
23247 #. type: verbatim
23248 #: ../src/guestfs-actions.pod:644
23249 #, no-wrap
23250 msgid ""
23251 " int\n"
23252 " guestfs_base64_in (guestfs_h *g,\n"
23253 "                    const char *base64file,\n"
23254 "                    const char *filename);\n"
23255 "\n"
23256 msgstr ""
23257
23258 #. type: textblock
23259 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
23260 msgid "(Added in 1.3.5)"
23261 msgstr ""
23262
23263 #. type: =head2
23264 #: ../src/guestfs-actions.pod:656
23265 msgid "guestfs_base64_out"
23266 msgstr ""
23267
23268 #. type: verbatim
23269 #: ../src/guestfs-actions.pod:658
23270 #, no-wrap
23271 msgid ""
23272 " int\n"
23273 " guestfs_base64_out (guestfs_h *g,\n"
23274 "                     const char *filename,\n"
23275 "                     const char *base64file);\n"
23276 "\n"
23277 msgstr ""
23278
23279 #. type: =head2
23280 #: ../src/guestfs-actions.pod:670
23281 msgid "guestfs_blockdev_flushbufs"
23282 msgstr ""
23283
23284 #. type: verbatim
23285 #: ../src/guestfs-actions.pod:672
23286 #, no-wrap
23287 msgid ""
23288 " int\n"
23289 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
23290 "                             const char *device);\n"
23291 "\n"
23292 msgstr ""
23293
23294 #. type: textblock
23295 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700
23296 #: ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731
23297 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768
23298 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
23299 #: ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
23300 msgid "(Added in 0.9.3)"
23301 msgstr ""
23302
23303 #. type: =head2
23304 #: ../src/guestfs-actions.pod:685
23305 msgid "guestfs_blockdev_getbsz"
23306 msgstr ""
23307
23308 #. type: verbatim
23309 #: ../src/guestfs-actions.pod:687
23310 #, no-wrap
23311 msgid ""
23312 " int\n"
23313 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
23314 "                          const char *device);\n"
23315 "\n"
23316 msgstr ""
23317
23318 #. type: =head2
23319 #: ../src/guestfs-actions.pod:702
23320 msgid "guestfs_blockdev_getro"
23321 msgstr ""
23322
23323 #. type: verbatim
23324 #: ../src/guestfs-actions.pod:704
23325 #, no-wrap
23326 msgid ""
23327 " int\n"
23328 " guestfs_blockdev_getro (guestfs_h *g,\n"
23329 "                         const char *device);\n"
23330 "\n"
23331 msgstr ""
23332
23333 #. type: textblock
23334 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1586
23335 #: ../src/guestfs-actions.pod:1601 ../src/guestfs-actions.pod:2090
23336 #: ../src/guestfs-actions.pod:2101 ../src/guestfs-actions.pod:2173
23337 #: ../src/guestfs-actions.pod:2199 ../src/guestfs-actions.pod:2239
23338 #: ../src/guestfs-actions.pod:2254 ../src/guestfs-actions.pod:2288
23339 #: ../src/guestfs-actions.pod:2311 ../src/guestfs-actions.pod:3373
23340 #: ../src/guestfs-actions.pod:3389 ../src/guestfs-actions.pod:3407
23341 #: ../src/guestfs-actions.pod:3569 ../src/guestfs-actions.pod:3583
23342 #: ../src/guestfs-actions.pod:3598 ../src/guestfs-actions.pod:3612
23343 #: ../src/guestfs-actions.pod:3628 ../src/guestfs-actions.pod:3643
23344 #: ../src/guestfs-actions.pod:3659 ../src/guestfs-actions.pod:3673
23345 #: ../src/guestfs-actions.pod:3686 ../src/guestfs-actions.pod:3700
23346 #: ../src/guestfs-actions.pod:3715 ../src/guestfs-actions.pod:3730
23347 #: ../src/guestfs-actions.pod:3743 ../src/guestfs-actions.pod:3757
23348 #: ../src/guestfs-actions.pod:5486
23349 msgid "This function returns a C truth value on success or -1 on error."
23350 msgstr ""
23351
23352 #. type: =head2
23353 #: ../src/guestfs-actions.pod:717
23354 msgid "guestfs_blockdev_getsize64"
23355 msgstr ""
23356
23357 #. type: verbatim
23358 #: ../src/guestfs-actions.pod:719
23359 #, no-wrap
23360 msgid ""
23361 " int64_t\n"
23362 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
23363 "                             const char *device);\n"
23364 "\n"
23365 msgstr ""
23366
23367 #. type: textblock
23368 #: ../src/guestfs-actions.pod:725
23369 msgid "See also C<guestfs_blockdev_getsz>."
23370 msgstr ""
23371
23372 #. type: =head2
23373 #: ../src/guestfs-actions.pod:733
23374 msgid "guestfs_blockdev_getss"
23375 msgstr ""
23376
23377 #. type: verbatim
23378 #: ../src/guestfs-actions.pod:735
23379 #, no-wrap
23380 msgid ""
23381 " int\n"
23382 " guestfs_blockdev_getss (guestfs_h *g,\n"
23383 "                         const char *device);\n"
23384 "\n"
23385 msgstr ""
23386
23387 #. type: textblock
23388 #: ../src/guestfs-actions.pod:742
23389 msgid ""
23390 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
23391 "that)."
23392 msgstr ""
23393
23394 #. type: =head2
23395 #: ../src/guestfs-actions.pod:751
23396 msgid "guestfs_blockdev_getsz"
23397 msgstr ""
23398
23399 #. type: verbatim
23400 #: ../src/guestfs-actions.pod:753
23401 #, no-wrap
23402 msgid ""
23403 " int64_t\n"
23404 " guestfs_blockdev_getsz (guestfs_h *g,\n"
23405 "                         const char *device);\n"
23406 "\n"
23407 msgstr ""
23408
23409 #. type: textblock
23410 #: ../src/guestfs-actions.pod:760
23411 msgid ""
23412 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
23413 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
23414 msgstr ""
23415
23416 #. type: =head2
23417 #: ../src/guestfs-actions.pod:770
23418 msgid "guestfs_blockdev_rereadpt"
23419 msgstr ""
23420
23421 #. type: verbatim
23422 #: ../src/guestfs-actions.pod:772
23423 #, no-wrap
23424 msgid ""
23425 " int\n"
23426 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
23427 "                            const char *device);\n"
23428 "\n"
23429 msgstr ""
23430
23431 #. type: =head2
23432 #: ../src/guestfs-actions.pod:784
23433 msgid "guestfs_blockdev_setbsz"
23434 msgstr ""
23435
23436 #. type: verbatim
23437 #: ../src/guestfs-actions.pod:786
23438 #, no-wrap
23439 msgid ""
23440 " int\n"
23441 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
23442 "                          const char *device,\n"
23443 "                          int blocksize);\n"
23444 "\n"
23445 msgstr ""
23446
23447 #. type: =head2
23448 #: ../src/guestfs-actions.pod:802
23449 msgid "guestfs_blockdev_setro"
23450 msgstr ""
23451
23452 #. type: verbatim
23453 #: ../src/guestfs-actions.pod:804
23454 #, no-wrap
23455 msgid ""
23456 " int\n"
23457 " guestfs_blockdev_setro (guestfs_h *g,\n"
23458 "                         const char *device);\n"
23459 "\n"
23460 msgstr ""
23461
23462 #. type: =head2
23463 #: ../src/guestfs-actions.pod:816
23464 msgid "guestfs_blockdev_setrw"
23465 msgstr ""
23466
23467 #. type: verbatim
23468 #: ../src/guestfs-actions.pod:818
23469 #, no-wrap
23470 msgid ""
23471 " int\n"
23472 " guestfs_blockdev_setrw (guestfs_h *g,\n"
23473 "                         const char *device);\n"
23474 "\n"
23475 msgstr ""
23476
23477 #. type: =head2
23478 #: ../src/guestfs-actions.pod:830
23479 msgid "guestfs_btrfs_filesystem_resize"
23480 msgstr ""
23481
23482 #. type: verbatim
23483 #: ../src/guestfs-actions.pod:832
23484 #, no-wrap
23485 msgid ""
23486 " int\n"
23487 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
23488 "                                  const char *mountpoint,\n"
23489 "                                  ...);\n"
23490 "\n"
23491 msgstr ""
23492
23493 #. type: verbatim
23494 #: ../src/guestfs-actions.pod:842
23495 #, no-wrap
23496 msgid ""
23497 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
23498 "\n"
23499 msgstr ""
23500
23501 #. type: textblock
23502 #: ../src/guestfs-actions.pod:865
23503 msgid "(Added in 1.11.17)"
23504 msgstr ""
23505
23506 #. type: =head2
23507 #: ../src/guestfs-actions.pod:867
23508 msgid "guestfs_btrfs_filesystem_resize_va"
23509 msgstr ""
23510
23511 #. type: verbatim
23512 #: ../src/guestfs-actions.pod:869
23513 #, no-wrap
23514 msgid ""
23515 " int\n"
23516 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
23517 "                                     const char *mountpoint,\n"
23518 "                                     va_list args);\n"
23519 "\n"
23520 msgstr ""
23521
23522 #. type: textblock
23523 #: ../src/guestfs-actions.pod:874
23524 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
23525 msgstr ""
23526
23527 #. type: =head2
23528 #: ../src/guestfs-actions.pod:878
23529 msgid "guestfs_btrfs_filesystem_resize_argv"
23530 msgstr ""
23531
23532 #. type: verbatim
23533 #: ../src/guestfs-actions.pod:880
23534 #, no-wrap
23535 msgid ""
23536 " int\n"
23537 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
23538 "                                       const char *mountpoint,\n"
23539 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
23540 "\n"
23541 msgstr ""
23542
23543 #. type: textblock
23544 #: ../src/guestfs-actions.pod:885
23545 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
23546 msgstr ""
23547
23548 #. type: =head2
23549 #: ../src/guestfs-actions.pod:889
23550 msgid "guestfs_case_sensitive_path"
23551 msgstr ""
23552
23553 #. type: verbatim
23554 #: ../src/guestfs-actions.pod:891
23555 #, no-wrap
23556 msgid ""
23557 " char *\n"
23558 " guestfs_case_sensitive_path (guestfs_h *g,\n"
23559 "                              const char *path);\n"
23560 "\n"
23561 msgstr ""
23562
23563 #. type: textblock
23564 #: ../src/guestfs-actions.pod:917
23565 msgid ""
23566 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
23567 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
23568 "how the directories were originally created under Windows)."
23569 msgstr ""
23570
23571 #. type: textblock
23572 #: ../src/guestfs-actions.pod:925
23573 msgid "See also C<guestfs_realpath>."
23574 msgstr ""
23575
23576 #. type: textblock
23577 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7548
23578 msgid "(Added in 1.0.75)"
23579 msgstr ""
23580
23581 #. type: =head2
23582 #: ../src/guestfs-actions.pod:932
23583 msgid "guestfs_cat"
23584 msgstr ""
23585
23586 #. type: verbatim
23587 #: ../src/guestfs-actions.pod:934
23588 #, no-wrap
23589 msgid ""
23590 " char *\n"
23591 " guestfs_cat (guestfs_h *g,\n"
23592 "              const char *path);\n"
23593 "\n"
23594 msgstr ""
23595
23596 #. type: textblock
23597 #: ../src/guestfs-actions.pod:940
23598 msgid ""
23599 "Note that this function cannot correctly handle binary files (specifically, "
23600 "files containing C<\\0> character which is treated as end of string).  For "
23601 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
23602 "functions which have a more complex interface."
23603 msgstr ""
23604
23605 #. type: textblock
23606 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3887
23607 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:3986
23608 #: ../src/guestfs-actions.pod:4074 ../src/guestfs-actions.pod:4482
23609 #: ../src/guestfs-actions.pod:4496 ../src/guestfs-actions.pod:5867
23610 #: ../src/guestfs-actions.pod:5881 ../src/guestfs-actions.pod:7701
23611 #: ../src/guestfs-actions.pod:7715
23612 msgid "(Added in 0.4)"
23613 msgstr ""
23614
23615 #. type: =head2
23616 #: ../src/guestfs-actions.pod:953
23617 msgid "guestfs_checksum"
23618 msgstr ""
23619
23620 #. type: verbatim
23621 #: ../src/guestfs-actions.pod:955
23622 #, no-wrap
23623 msgid ""
23624 " char *\n"
23625 " guestfs_checksum (guestfs_h *g,\n"
23626 "                   const char *csumtype,\n"
23627 "                   const char *path);\n"
23628 "\n"
23629 msgstr ""
23630
23631 #. type: textblock
23632 #: ../src/guestfs-actions.pod:1001
23633 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
23634 msgstr ""
23635
23636 #. type: textblock
23637 #: ../src/guestfs-actions.pod:1003
23638 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
23639 msgstr ""
23640
23641 #. type: textblock
23642 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1423
23643 #: ../src/guestfs-actions.pod:2279 ../src/guestfs-actions.pod:3585
23644 #: ../src/guestfs-actions.pod:3614 ../src/guestfs-actions.pod:3675
23645 #: ../src/guestfs-actions.pod:3702 ../src/guestfs-actions.pod:7404
23646 msgid "(Added in 1.0.2)"
23647 msgstr ""
23648
23649 #. type: =head2
23650 #: ../src/guestfs-actions.pod:1010
23651 msgid "guestfs_checksum_device"
23652 msgstr ""
23653
23654 #. type: verbatim
23655 #: ../src/guestfs-actions.pod:1012
23656 #, no-wrap
23657 msgid ""
23658 " char *\n"
23659 " guestfs_checksum_device (guestfs_h *g,\n"
23660 "                          const char *csumtype,\n"
23661 "                          const char *device);\n"
23662 "\n"
23663 msgstr ""
23664
23665 #. type: textblock
23666 #: ../src/guestfs-actions.pod:1017
23667 msgid ""
23668 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
23669 "device named C<device>.  For the types of checksums supported see the "
23670 "C<guestfs_checksum> command."
23671 msgstr ""
23672
23673 #. type: textblock
23674 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5316
23675 #: ../src/guestfs-actions.pod:5451 ../src/guestfs-actions.pod:5488
23676 #: ../src/guestfs-actions.pod:5506 ../src/guestfs-actions.pod:5688
23677 #: ../src/guestfs-actions.pod:7313 ../src/guestfs-actions.pod:7327
23678 #: ../src/guestfs-actions.pod:7727
23679 msgid "(Added in 1.3.2)"
23680 msgstr ""
23681
23682 #. type: =head2
23683 #: ../src/guestfs-actions.pod:1026
23684 msgid "guestfs_checksums_out"
23685 msgstr ""
23686
23687 #. type: verbatim
23688 #: ../src/guestfs-actions.pod:1028
23689 #, no-wrap
23690 msgid ""
23691 " int\n"
23692 " guestfs_checksums_out (guestfs_h *g,\n"
23693 "                        const char *csumtype,\n"
23694 "                        const char *directory,\n"
23695 "                        const char *sumsfile);\n"
23696 "\n"
23697 msgstr ""
23698
23699 #. type: textblock
23700 #: ../src/guestfs-actions.pod:1048
23701 msgid "(Added in 1.3.7)"
23702 msgstr ""
23703
23704 #. type: =head2
23705 #: ../src/guestfs-actions.pod:1050
23706 msgid "guestfs_chmod"
23707 msgstr ""
23708
23709 #. type: verbatim
23710 #: ../src/guestfs-actions.pod:1052
23711 #, no-wrap
23712 msgid ""
23713 " int\n"
23714 " guestfs_chmod (guestfs_h *g,\n"
23715 "                int mode,\n"
23716 "                const char *path);\n"
23717 "\n"
23718 msgstr ""
23719
23720 #. type: =head2
23721 #: ../src/guestfs-actions.pod:1070
23722 msgid "guestfs_chown"
23723 msgstr ""
23724
23725 #. type: verbatim
23726 #: ../src/guestfs-actions.pod:1072
23727 #, no-wrap
23728 msgid ""
23729 " int\n"
23730 " guestfs_chown (guestfs_h *g,\n"
23731 "                int owner,\n"
23732 "                int group,\n"
23733 "                const char *path);\n"
23734 "\n"
23735 msgstr ""
23736
23737 #. type: =head2
23738 #: ../src/guestfs-actions.pod:1088
23739 msgid "guestfs_command"
23740 msgstr ""
23741
23742 #. type: verbatim
23743 #: ../src/guestfs-actions.pod:1090
23744 #, no-wrap
23745 msgid ""
23746 " char *\n"
23747 " guestfs_command (guestfs_h *g,\n"
23748 "                  char *const *arguments);\n"
23749 "\n"
23750 msgstr ""
23751
23752 #. type: textblock
23753 #: ../src/guestfs-actions.pod:1099
23754 msgid ""
23755 "The single parameter is an argv-style list of arguments.  The first element "
23756 "is the name of the program to run.  Subsequent elements are parameters.  The "
23757 "list must be non-empty (ie. must contain a program name).  Note that the "
23758 "command runs directly, and is I<not> invoked via the shell (see "
23759 "C<guestfs_sh>)."
23760 msgstr ""
23761
23762 #. type: textblock
23763 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150
23764 #: ../src/guestfs-actions.pod:1722
23765 msgid "(Added in 0.9.1)"
23766 msgstr ""
23767
23768 #. type: =head2
23769 #: ../src/guestfs-actions.pod:1132
23770 msgid "guestfs_command_lines"
23771 msgstr ""
23772
23773 #. type: verbatim
23774 #: ../src/guestfs-actions.pod:1134
23775 #, no-wrap
23776 msgid ""
23777 " char **\n"
23778 " guestfs_command_lines (guestfs_h *g,\n"
23779 "                        char *const *arguments);\n"
23780 "\n"
23781 msgstr ""
23782
23783 #. type: textblock
23784 #: ../src/guestfs-actions.pod:1138
23785 msgid ""
23786 "This is the same as C<guestfs_command>, but splits the result into a list of "
23787 "lines."
23788 msgstr ""
23789
23790 #. type: textblock
23791 #: ../src/guestfs-actions.pod:1141
23792 msgid "See also: C<guestfs_sh_lines>"
23793 msgstr ""
23794
23795 #. type: =head2
23796 #: ../src/guestfs-actions.pod:1152
23797 msgid "guestfs_compress_device_out"
23798 msgstr ""
23799
23800 #. type: verbatim
23801 #: ../src/guestfs-actions.pod:1154
23802 #, no-wrap
23803 msgid ""
23804 " int\n"
23805 " guestfs_compress_device_out (guestfs_h *g,\n"
23806 "                              const char *ctype,\n"
23807 "                              const char *device,\n"
23808 "                              const char *zdevice,\n"
23809 "                              ...);\n"
23810 "\n"
23811 msgstr ""
23812
23813 #. type: verbatim
23814 #: ../src/guestfs-actions.pod:1166
23815 #, no-wrap
23816 msgid ""
23817 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
23818 "\n"
23819 msgstr ""
23820
23821 #. type: textblock
23822 #: ../src/guestfs-actions.pod:1171
23823 msgid ""
23824 "The C<ctype> and optional C<level> parameters have the same meaning as in "
23825 "C<guestfs_compress_out>."
23826 msgstr ""
23827
23828 #. type: =head2
23829 #: ../src/guestfs-actions.pod:1176
23830 msgid "guestfs_compress_device_out_va"
23831 msgstr ""
23832
23833 #. type: verbatim
23834 #: ../src/guestfs-actions.pod:1178
23835 #, no-wrap
23836 msgid ""
23837 " int\n"
23838 " guestfs_compress_device_out_va (guestfs_h *g,\n"
23839 "                                 const char *ctype,\n"
23840 "                                 const char *device,\n"
23841 "                                 const char *zdevice,\n"
23842 "                                 va_list args);\n"
23843 "\n"
23844 msgstr ""
23845
23846 #. type: textblock
23847 #: ../src/guestfs-actions.pod:1185
23848 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
23849 msgstr ""
23850
23851 #. type: =head2
23852 #: ../src/guestfs-actions.pod:1189
23853 msgid "guestfs_compress_device_out_argv"
23854 msgstr ""
23855
23856 #. type: verbatim
23857 #: ../src/guestfs-actions.pod:1191
23858 #, no-wrap
23859 msgid ""
23860 " int\n"
23861 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
23862 "                                   const char *ctype,\n"
23863 "                                   const char *device,\n"
23864 "                                   const char *zdevice,\n"
23865 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
23866 "\n"
23867 msgstr ""
23868
23869 #. type: textblock
23870 #: ../src/guestfs-actions.pod:1198
23871 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
23872 msgstr ""
23873
23874 #. type: =head2
23875 #: ../src/guestfs-actions.pod:1202
23876 msgid "guestfs_compress_out"
23877 msgstr ""
23878
23879 #. type: verbatim
23880 #: ../src/guestfs-actions.pod:1204
23881 #, no-wrap
23882 msgid ""
23883 " int\n"
23884 " guestfs_compress_out (guestfs_h *g,\n"
23885 "                       const char *ctype,\n"
23886 "                       const char *file,\n"
23887 "                       const char *zfile,\n"
23888 "                       ...);\n"
23889 "\n"
23890 msgstr ""
23891
23892 #. type: verbatim
23893 #: ../src/guestfs-actions.pod:1216
23894 #, no-wrap
23895 msgid ""
23896 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
23897 "\n"
23898 msgstr ""
23899
23900 #. type: =head2
23901 #: ../src/guestfs-actions.pod:1233
23902 msgid "guestfs_compress_out_va"
23903 msgstr ""
23904
23905 #. type: verbatim
23906 #: ../src/guestfs-actions.pod:1235
23907 #, no-wrap
23908 msgid ""
23909 " int\n"
23910 " guestfs_compress_out_va (guestfs_h *g,\n"
23911 "                          const char *ctype,\n"
23912 "                          const char *file,\n"
23913 "                          const char *zfile,\n"
23914 "                          va_list args);\n"
23915 "\n"
23916 msgstr ""
23917
23918 #. type: textblock
23919 #: ../src/guestfs-actions.pod:1242
23920 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
23921 msgstr ""
23922
23923 #. type: =head2
23924 #: ../src/guestfs-actions.pod:1246
23925 msgid "guestfs_compress_out_argv"
23926 msgstr ""
23927
23928 #. type: verbatim
23929 #: ../src/guestfs-actions.pod:1248
23930 #, no-wrap
23931 msgid ""
23932 " int\n"
23933 " guestfs_compress_out_argv (guestfs_h *g,\n"
23934 "                            const char *ctype,\n"
23935 "                            const char *file,\n"
23936 "                            const char *zfile,\n"
23937 "                            const struct guestfs_compress_out_argv *optargs);\n"
23938 "\n"
23939 msgstr ""
23940
23941 #. type: textblock
23942 #: ../src/guestfs-actions.pod:1255
23943 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
23944 msgstr ""
23945
23946 #. type: =head2
23947 #: ../src/guestfs-actions.pod:1259
23948 msgid "guestfs_config"
23949 msgstr ""
23950
23951 #. type: verbatim
23952 #: ../src/guestfs-actions.pod:1261
23953 #, no-wrap
23954 msgid ""
23955 " int\n"
23956 " guestfs_config (guestfs_h *g,\n"
23957 "                 const char *qemuparam,\n"
23958 "                 const char *qemuvalue);\n"
23959 "\n"
23960 msgstr ""
23961
23962 #. type: =head2
23963 #: ../src/guestfs-actions.pod:1279
23964 msgid "guestfs_copy_size"
23965 msgstr ""
23966
23967 #. type: verbatim
23968 #: ../src/guestfs-actions.pod:1281
23969 #, no-wrap
23970 msgid ""
23971 " int\n"
23972 " guestfs_copy_size (guestfs_h *g,\n"
23973 "                    const char *src,\n"
23974 "                    const char *dest,\n"
23975 "                    int64_t size);\n"
23976 "\n"
23977 msgstr ""
23978
23979 #. type: textblock
23980 #: ../src/guestfs-actions.pod:1295 ../src/guestfs-actions.pod:1418
23981 #: ../src/guestfs-actions.pod:1449 ../src/guestfs-actions.pod:1494
23982 #: ../src/guestfs-actions.pod:1871 ../src/guestfs-actions.pod:1893
23983 #: ../src/guestfs-actions.pod:3785 ../src/guestfs-actions.pod:7399
23984 #: ../src/guestfs-actions.pod:7433 ../src/guestfs-actions.pod:7940
23985 #: ../src/guestfs-actions.pod:7963
23986 msgid ""
23987 "This long-running command can generate progress notification messages so "
23988 "that the caller can display a progress bar or indicator.  To receive these "
23989 "messages, the caller must register a progress event callback.  See L<guestfs"
23990 "(3)/GUESTFS_EVENT_PROGRESS>."
23991 msgstr ""
23992
23993 #. type: textblock
23994 #: ../src/guestfs-actions.pod:1300 ../src/guestfs-actions.pod:4509
23995 #: ../src/guestfs-actions.pod:5894 ../src/guestfs-actions.pod:7634
23996 #: ../src/guestfs-actions.pod:7654 ../src/guestfs-actions.pod:7740
23997 msgid "(Added in 1.0.87)"
23998 msgstr ""
23999
24000 #. type: =head2
24001 #: ../src/guestfs-actions.pod:1302
24002 msgid "guestfs_cp"
24003 msgstr ""
24004
24005 #. type: verbatim
24006 #: ../src/guestfs-actions.pod:1304
24007 #, no-wrap
24008 msgid ""
24009 " int\n"
24010 " guestfs_cp (guestfs_h *g,\n"
24011 "             const char *src,\n"
24012 "             const char *dest);\n"
24013 "\n"
24014 msgstr ""
24015
24016 #. type: textblock
24017 #: ../src/guestfs-actions.pod:1314 ../src/guestfs-actions.pod:1328
24018 #: ../src/guestfs-actions.pod:1400 ../src/guestfs-actions.pod:1474
24019 #: ../src/guestfs-actions.pod:1588 ../src/guestfs-actions.pod:5263
24020 #: ../src/guestfs-actions.pod:5738
24021 msgid "(Added in 1.0.18)"
24022 msgstr ""
24023
24024 #. type: =head2
24025 #: ../src/guestfs-actions.pod:1316
24026 msgid "guestfs_cp_a"
24027 msgstr ""
24028
24029 #. type: verbatim
24030 #: ../src/guestfs-actions.pod:1318
24031 #, no-wrap
24032 msgid ""
24033 " int\n"
24034 " guestfs_cp_a (guestfs_h *g,\n"
24035 "               const char *src,\n"
24036 "               const char *dest);\n"
24037 "\n"
24038 msgstr ""
24039
24040 #. type: =head2
24041 #: ../src/guestfs-actions.pod:1330
24042 msgid "guestfs_dd"
24043 msgstr ""
24044
24045 #. type: verbatim
24046 #: ../src/guestfs-actions.pod:1332
24047 #, no-wrap
24048 msgid ""
24049 " int\n"
24050 " guestfs_dd (guestfs_h *g,\n"
24051 "             const char *src,\n"
24052 "             const char *dest);\n"
24053 "\n"
24054 msgstr ""
24055
24056 #. type: textblock
24057 #: ../src/guestfs-actions.pod:1342
24058 msgid ""
24059 "If the destination is a device, it must be as large or larger than the "
24060 "source file or device, otherwise the copy will fail.  This command cannot do "
24061 "partial copies (see C<guestfs_copy_size>)."
24062 msgstr ""
24063
24064 #. type: =head2
24065 #: ../src/guestfs-actions.pod:1350
24066 msgid "guestfs_df"
24067 msgstr ""
24068
24069 #. type: verbatim
24070 #: ../src/guestfs-actions.pod:1352
24071 #, no-wrap
24072 msgid ""
24073 " char *\n"
24074 " guestfs_df (guestfs_h *g);\n"
24075 "\n"
24076 msgstr ""
24077
24078 #. type: textblock
24079 #: ../src/guestfs-actions.pod:1357 ../src/guestfs-actions.pod:1374
24080 msgid ""
24081 "This command is mostly useful for interactive sessions.  It is I<not> "
24082 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
24083 "from programs."
24084 msgstr ""
24085
24086 #. type: textblock
24087 #: ../src/guestfs-actions.pod:1364 ../src/guestfs-actions.pod:1381
24088 #: ../src/guestfs-actions.pod:1499 ../src/guestfs-actions.pod:2504
24089 #: ../src/guestfs-actions.pod:2528 ../src/guestfs-actions.pod:2596
24090 #: ../src/guestfs-actions.pod:4619 ../src/guestfs-actions.pod:5163
24091 #: ../src/guestfs-actions.pod:7137 ../src/guestfs-actions.pod:7161
24092 #: ../src/guestfs-actions.pod:7780 ../src/guestfs-actions.pod:7793
24093 #: ../src/guestfs-actions.pod:7806
24094 msgid "(Added in 1.0.54)"
24095 msgstr ""
24096
24097 #. type: =head2
24098 #: ../src/guestfs-actions.pod:1366
24099 msgid "guestfs_df_h"
24100 msgstr ""
24101
24102 #. type: verbatim
24103 #: ../src/guestfs-actions.pod:1368
24104 #, no-wrap
24105 msgid ""
24106 " char *\n"
24107 " guestfs_df_h (guestfs_h *g);\n"
24108 "\n"
24109 msgstr ""
24110
24111 #. type: =head2
24112 #: ../src/guestfs-actions.pod:1383
24113 msgid "guestfs_dmesg"
24114 msgstr ""
24115
24116 #. type: verbatim
24117 #: ../src/guestfs-actions.pod:1385
24118 #, no-wrap
24119 msgid ""
24120 " char *\n"
24121 " guestfs_dmesg (guestfs_h *g);\n"
24122 "\n"
24123 msgstr ""
24124
24125 #. type: textblock
24126 #: ../src/guestfs-actions.pod:1392
24127 msgid ""
24128 "Another way to get the same information is to enable verbose messages with "
24129 "C<guestfs_set_verbose> or by setting the environment variable "
24130 "C<LIBGUESTFS_DEBUG=1> before running the program."
24131 msgstr ""
24132
24133 #. type: =head2
24134 #: ../src/guestfs-actions.pod:1402
24135 msgid "guestfs_download"
24136 msgstr ""
24137
24138 #. type: verbatim
24139 #: ../src/guestfs-actions.pod:1404
24140 #, no-wrap
24141 msgid ""
24142 " int\n"
24143 " guestfs_download (guestfs_h *g,\n"
24144 "                   const char *remotefilename,\n"
24145 "                   const char *filename);\n"
24146 "\n"
24147 msgstr ""
24148
24149 #. type: textblock
24150 #: ../src/guestfs-actions.pod:1414
24151 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
24152 msgstr ""
24153
24154 #. type: =head2
24155 #: ../src/guestfs-actions.pod:1425
24156 msgid "guestfs_download_offset"
24157 msgstr ""
24158
24159 #. type: verbatim
24160 #: ../src/guestfs-actions.pod:1427
24161 #, no-wrap
24162 msgid ""
24163 " int\n"
24164 " guestfs_download_offset (guestfs_h *g,\n"
24165 "                          const char *remotefilename,\n"
24166 "                          const char *filename,\n"
24167 "                          int64_t offset,\n"
24168 "                          int64_t size);\n"
24169 "\n"
24170 msgstr ""
24171
24172 #. type: textblock
24173 #: ../src/guestfs-actions.pod:1440
24174 msgid ""
24175 "Note that there is no limit on the amount of data that can be downloaded "
24176 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
24177 "full amount unless an error occurs."
24178 msgstr ""
24179
24180 #. type: textblock
24181 #: ../src/guestfs-actions.pod:1445
24182 msgid "See also C<guestfs_download>, C<guestfs_pread>."
24183 msgstr ""
24184
24185 #. type: textblock
24186 #: ../src/guestfs-actions.pod:1454 ../src/guestfs-actions.pod:7438
24187 msgid "(Added in 1.5.17)"
24188 msgstr ""
24189
24190 #. type: =head2
24191 #: ../src/guestfs-actions.pod:1456
24192 msgid "guestfs_drop_caches"
24193 msgstr ""
24194
24195 #. type: verbatim
24196 #: ../src/guestfs-actions.pod:1458
24197 #, no-wrap
24198 msgid ""
24199 " int\n"
24200 " guestfs_drop_caches (guestfs_h *g,\n"
24201 "                      int whattodrop);\n"
24202 "\n"
24203 msgstr ""
24204
24205 #. type: =head2
24206 #: ../src/guestfs-actions.pod:1476
24207 msgid "guestfs_du"
24208 msgstr ""
24209
24210 #. type: verbatim
24211 #: ../src/guestfs-actions.pod:1478
24212 #, no-wrap
24213 msgid ""
24214 " int64_t\n"
24215 " guestfs_du (guestfs_h *g,\n"
24216 "             const char *path);\n"
24217 "\n"
24218 msgstr ""
24219
24220 #. type: =head2
24221 #: ../src/guestfs-actions.pod:1501
24222 msgid "guestfs_e2fsck_f"
24223 msgstr ""
24224
24225 #. type: verbatim
24226 #: ../src/guestfs-actions.pod:1503
24227 #, no-wrap
24228 msgid ""
24229 " int\n"
24230 " guestfs_e2fsck_f (guestfs_h *g,\n"
24231 "                   const char *device);\n"
24232 "\n"
24233 msgstr ""
24234
24235 #. type: textblock
24236 #: ../src/guestfs-actions.pod:1511
24237 msgid ""
24238 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
24239 "Normally you should use C<guestfs_fsck>."
24240 msgstr ""
24241
24242 #. type: textblock
24243 #: ../src/guestfs-actions.pod:1516
24244 msgid "(Added in 1.0.29)"
24245 msgstr ""
24246
24247 #. type: =head2
24248 #: ../src/guestfs-actions.pod:1518
24249 msgid "guestfs_echo_daemon"
24250 msgstr ""
24251
24252 #. type: verbatim
24253 #: ../src/guestfs-actions.pod:1520
24254 #, no-wrap
24255 msgid ""
24256 " char *\n"
24257 " guestfs_echo_daemon (guestfs_h *g,\n"
24258 "                      char *const *words);\n"
24259 "\n"
24260 msgstr ""
24261
24262 #. type: textblock
24263 #: ../src/guestfs-actions.pod:1529
24264 msgid "See also C<guestfs_ping_daemon>."
24265 msgstr ""
24266
24267 #. type: textblock
24268 #: ../src/guestfs-actions.pod:1534 ../src/guestfs-actions.pod:2290
24269 #: ../src/guestfs-actions.pod:6609
24270 msgid "(Added in 1.0.69)"
24271 msgstr ""
24272
24273 #. type: =head2
24274 #: ../src/guestfs-actions.pod:1536
24275 msgid "guestfs_egrep"
24276 msgstr ""
24277
24278 #. type: verbatim
24279 #: ../src/guestfs-actions.pod:1538
24280 #, no-wrap
24281 msgid ""
24282 " char **\n"
24283 " guestfs_egrep (guestfs_h *g,\n"
24284 "                const char *regex,\n"
24285 "                const char *path);\n"
24286 "\n"
24287 msgstr ""
24288
24289 #. type: textblock
24290 #: ../src/guestfs-actions.pod:1553 ../src/guestfs-actions.pod:1572
24291 #: ../src/guestfs-actions.pod:1629 ../src/guestfs-actions.pod:1675
24292 #: ../src/guestfs-actions.pod:1694 ../src/guestfs-actions.pod:2420
24293 #: ../src/guestfs-actions.pod:2439 ../src/guestfs-actions.pod:2617
24294 #: ../src/guestfs-actions.pod:2630 ../src/guestfs-actions.pod:2645
24295 #: ../src/guestfs-actions.pod:2691 ../src/guestfs-actions.pod:2713
24296 #: ../src/guestfs-actions.pod:2726 ../src/guestfs-actions.pod:3999
24297 #: ../src/guestfs-actions.pod:4013 ../src/guestfs-actions.pod:4026
24298 #: ../src/guestfs-actions.pod:4040 ../src/guestfs-actions.pod:5041
24299 #: ../src/guestfs-actions.pod:6072 ../src/guestfs-actions.pod:6121
24300 #: ../src/guestfs-actions.pod:7005 ../src/guestfs-actions.pod:7017
24301 #: ../src/guestfs-actions.pod:7030 ../src/guestfs-actions.pod:7043
24302 #: ../src/guestfs-actions.pod:7065 ../src/guestfs-actions.pod:7078
24303 #: ../src/guestfs-actions.pod:7091 ../src/guestfs-actions.pod:7104
24304 #: ../src/guestfs-actions.pod:7898 ../src/guestfs-actions.pod:7917
24305 #: ../src/guestfs-actions.pod:8011 ../src/guestfs-actions.pod:8030
24306 #: ../src/guestfs-actions.pod:8076 ../src/guestfs-actions.pod:8095
24307 msgid "(Added in 1.0.66)"
24308 msgstr ""
24309
24310 #. type: =head2
24311 #: ../src/guestfs-actions.pod:1555
24312 msgid "guestfs_egrepi"
24313 msgstr ""
24314
24315 #. type: verbatim
24316 #: ../src/guestfs-actions.pod:1557
24317 #, no-wrap
24318 msgid ""
24319 " char **\n"
24320 " guestfs_egrepi (guestfs_h *g,\n"
24321 "                 const char *regex,\n"
24322 "                 const char *path);\n"
24323 "\n"
24324 msgstr ""
24325
24326 #. type: =head2
24327 #: ../src/guestfs-actions.pod:1574
24328 msgid "guestfs_equal"
24329 msgstr ""
24330
24331 #. type: verbatim
24332 #: ../src/guestfs-actions.pod:1576
24333 #, no-wrap
24334 msgid ""
24335 " int\n"
24336 " guestfs_equal (guestfs_h *g,\n"
24337 "                const char *file1,\n"
24338 "                const char *file2);\n"
24339 "\n"
24340 msgstr ""
24341
24342 #. type: =head2
24343 #: ../src/guestfs-actions.pod:1590
24344 msgid "guestfs_exists"
24345 msgstr ""
24346
24347 #. type: verbatim
24348 #: ../src/guestfs-actions.pod:1592
24349 #, no-wrap
24350 msgid ""
24351 " int\n"
24352 " guestfs_exists (guestfs_h *g,\n"
24353 "                 const char *path);\n"
24354 "\n"
24355 msgstr ""
24356
24357 #. type: textblock
24358 #: ../src/guestfs-actions.pod:1599
24359 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
24360 msgstr ""
24361
24362 #. type: =head2
24363 #: ../src/guestfs-actions.pod:1605
24364 msgid "guestfs_fallocate"
24365 msgstr ""
24366
24367 #. type: verbatim
24368 #: ../src/guestfs-actions.pod:1607
24369 #, no-wrap
24370 msgid ""
24371 " int\n"
24372 " guestfs_fallocate (guestfs_h *g,\n"
24373 "                    const char *path,\n"
24374 "                    int len);\n"
24375 "\n"
24376 msgstr ""
24377
24378 #. type: textblock
24379 #: ../src/guestfs-actions.pod:1612
24380 msgid ""
24381 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
24382 "call instead."
24383 msgstr ""
24384
24385 #. type: =head2
24386 #: ../src/guestfs-actions.pod:1631
24387 msgid "guestfs_fallocate64"
24388 msgstr ""
24389
24390 #. type: verbatim
24391 #: ../src/guestfs-actions.pod:1633
24392 #, no-wrap
24393 msgid ""
24394 " int\n"
24395 " guestfs_fallocate64 (guestfs_h *g,\n"
24396 "                      const char *path,\n"
24397 "                      int64_t len);\n"
24398 "\n"
24399 msgstr ""
24400
24401 #. type: textblock
24402 #: ../src/guestfs-actions.pod:1642
24403 msgid ""
24404 "Note that this call allocates disk blocks for the file.  To create a sparse "
24405 "file use C<guestfs_truncate_size> instead."
24406 msgstr ""
24407
24408 #. type: textblock
24409 #: ../src/guestfs-actions.pod:1645
24410 msgid ""
24411 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
24412 "oversight it only allowed 30 bit lengths to be specified, effectively "
24413 "limiting the maximum size of files created through that call to 1GB."
24414 msgstr ""
24415
24416 #. type: textblock
24417 #: ../src/guestfs-actions.pod:1656
24418 msgid "(Added in 1.3.17)"
24419 msgstr ""
24420
24421 #. type: =head2
24422 #: ../src/guestfs-actions.pod:1658
24423 msgid "guestfs_fgrep"
24424 msgstr ""
24425
24426 #. type: verbatim
24427 #: ../src/guestfs-actions.pod:1660
24428 #, no-wrap
24429 msgid ""
24430 " char **\n"
24431 " guestfs_fgrep (guestfs_h *g,\n"
24432 "                const char *pattern,\n"
24433 "                const char *path);\n"
24434 "\n"
24435 msgstr ""
24436
24437 #. type: =head2
24438 #: ../src/guestfs-actions.pod:1677
24439 msgid "guestfs_fgrepi"
24440 msgstr ""
24441
24442 #. type: verbatim
24443 #: ../src/guestfs-actions.pod:1679
24444 #, no-wrap
24445 msgid ""
24446 " char **\n"
24447 " guestfs_fgrepi (guestfs_h *g,\n"
24448 "                 const char *pattern,\n"
24449 "                 const char *path);\n"
24450 "\n"
24451 msgstr ""
24452
24453 #. type: =head2
24454 #: ../src/guestfs-actions.pod:1696
24455 msgid "guestfs_file"
24456 msgstr ""
24457
24458 #. type: verbatim
24459 #: ../src/guestfs-actions.pod:1698
24460 #, no-wrap
24461 msgid ""
24462 " char *\n"
24463 " guestfs_file (guestfs_h *g,\n"
24464 "               const char *path);\n"
24465 "\n"
24466 msgstr ""
24467
24468 #. type: textblock
24469 #: ../src/guestfs-actions.pod:1716
24470 msgid ""
24471 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
24472 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
24473 msgstr ""
24474
24475 #. type: =head2
24476 #: ../src/guestfs-actions.pod:1724
24477 msgid "guestfs_file_architecture"
24478 msgstr ""
24479
24480 #. type: verbatim
24481 #: ../src/guestfs-actions.pod:1726
24482 #, no-wrap
24483 msgid ""
24484 " char *\n"
24485 " guestfs_file_architecture (guestfs_h *g,\n"
24486 "                            const char *filename);\n"
24487 "\n"
24488 msgstr ""
24489
24490 #. type: textblock
24491 #: ../src/guestfs-actions.pod:1834 ../src/guestfs-actions.pod:1997
24492 #: ../src/guestfs-actions.pod:2014 ../src/guestfs-actions.pod:2746
24493 #: ../src/guestfs-actions.pod:2840 ../src/guestfs-actions.pod:2906
24494 #: ../src/guestfs-actions.pod:3093 ../src/guestfs-actions.pod:3111
24495 #: ../src/guestfs-actions.pod:3151 ../src/guestfs-actions.pod:3226
24496 #: ../src/guestfs-actions.pod:3319 ../src/guestfs-actions.pod:3556
24497 #: ../src/guestfs-actions.pod:3688
24498 msgid "(Added in 1.5.3)"
24499 msgstr ""
24500
24501 #. type: =head2
24502 #: ../src/guestfs-actions.pod:1836
24503 msgid "guestfs_filesize"
24504 msgstr ""
24505
24506 #. type: verbatim
24507 #: ../src/guestfs-actions.pod:1838
24508 #, no-wrap
24509 msgid ""
24510 " int64_t\n"
24511 " guestfs_filesize (guestfs_h *g,\n"
24512 "                   const char *file);\n"
24513 "\n"
24514 msgstr ""
24515
24516 #. type: textblock
24517 #: ../src/guestfs-actions.pod:1844
24518 msgid ""
24519 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
24520 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
24521 "devices, use C<guestfs_blockdev_getsize64>."
24522 msgstr ""
24523
24524 #. type: textblock
24525 #: ../src/guestfs-actions.pod:1850
24526 msgid "(Added in 1.0.82)"
24527 msgstr ""
24528
24529 #. type: =head2
24530 #: ../src/guestfs-actions.pod:1852
24531 msgid "guestfs_fill"
24532 msgstr ""
24533
24534 #. type: verbatim
24535 #: ../src/guestfs-actions.pod:1854
24536 #, no-wrap
24537 msgid ""
24538 " int\n"
24539 " guestfs_fill (guestfs_h *g,\n"
24540 "               int c,\n"
24541 "               int len,\n"
24542 "               const char *path);\n"
24543 "\n"
24544 msgstr ""
24545
24546 #. type: textblock
24547 #: ../src/guestfs-actions.pod:1864
24548 msgid ""
24549 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
24550 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
24551 "bytes use C<guestfs_fill_pattern>."
24552 msgstr ""
24553
24554 #. type: textblock
24555 #: ../src/guestfs-actions.pod:1876
24556 msgid "(Added in 1.0.79)"
24557 msgstr ""
24558
24559 #. type: =head2
24560 #: ../src/guestfs-actions.pod:1878
24561 msgid "guestfs_fill_pattern"
24562 msgstr ""
24563
24564 #. type: verbatim
24565 #: ../src/guestfs-actions.pod:1880
24566 #, no-wrap
24567 msgid ""
24568 " int\n"
24569 " guestfs_fill_pattern (guestfs_h *g,\n"
24570 "                       const char *pattern,\n"
24571 "                       int len,\n"
24572 "                       const char *path);\n"
24573 "\n"
24574 msgstr ""
24575
24576 #. type: textblock
24577 #: ../src/guestfs-actions.pod:1886
24578 msgid ""
24579 "This function is like C<guestfs_fill> except that it creates a new file of "
24580 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
24581 "pattern is truncated if necessary to ensure the length of the file is "
24582 "exactly C<len> bytes."
24583 msgstr ""
24584
24585 #. type: textblock
24586 #: ../src/guestfs-actions.pod:1898
24587 msgid "(Added in 1.3.12)"
24588 msgstr ""
24589
24590 #. type: =head2
24591 #: ../src/guestfs-actions.pod:1900
24592 msgid "guestfs_find"
24593 msgstr ""
24594
24595 #. type: verbatim
24596 #: ../src/guestfs-actions.pod:1902
24597 #, no-wrap
24598 msgid ""
24599 " char **\n"
24600 " guestfs_find (guestfs_h *g,\n"
24601 "               const char *directory);\n"
24602 "\n"
24603 msgstr ""
24604
24605 #. type: textblock
24606 #: ../src/guestfs-actions.pod:1918
24607 msgid ""
24608 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
24609 msgstr ""
24610
24611 #. type: textblock
24612 #: ../src/guestfs-actions.pod:1931
24613 msgid "See also C<guestfs_find0>."
24614 msgstr ""
24615
24616 #. type: textblock
24617 #: ../src/guestfs-actions.pod:1940 ../src/guestfs-actions.pod:4446
24618 #: ../src/guestfs-actions.pod:6156
24619 msgid "(Added in 1.0.27)"
24620 msgstr ""
24621
24622 #. type: =head2
24623 #: ../src/guestfs-actions.pod:1942
24624 msgid "guestfs_find0"
24625 msgstr ""
24626
24627 #. type: verbatim
24628 #: ../src/guestfs-actions.pod:1944
24629 #, no-wrap
24630 msgid ""
24631 " int\n"
24632 " guestfs_find0 (guestfs_h *g,\n"
24633 "                const char *directory,\n"
24634 "                const char *files);\n"
24635 "\n"
24636 msgstr ""
24637
24638 #. type: textblock
24639 #: ../src/guestfs-actions.pod:1953
24640 msgid ""
24641 "This command works the same way as C<guestfs_find> with the following "
24642 "exceptions:"
24643 msgstr ""
24644
24645 #. type: textblock
24646 #: ../src/guestfs-actions.pod:1980
24647 msgid "(Added in 1.0.74)"
24648 msgstr ""
24649
24650 #. type: =head2
24651 #: ../src/guestfs-actions.pod:1982
24652 msgid "guestfs_findfs_label"
24653 msgstr ""
24654
24655 #. type: verbatim
24656 #: ../src/guestfs-actions.pod:1984
24657 #, no-wrap
24658 msgid ""
24659 " char *\n"
24660 " guestfs_findfs_label (guestfs_h *g,\n"
24661 "                       const char *label);\n"
24662 "\n"
24663 msgstr ""
24664
24665 #. type: textblock
24666 #: ../src/guestfs-actions.pod:1992
24667 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
24668 msgstr ""
24669
24670 #. type: =head2
24671 #: ../src/guestfs-actions.pod:1999
24672 msgid "guestfs_findfs_uuid"
24673 msgstr ""
24674
24675 #. type: verbatim
24676 #: ../src/guestfs-actions.pod:2001
24677 #, no-wrap
24678 msgid ""
24679 " char *\n"
24680 " guestfs_findfs_uuid (guestfs_h *g,\n"
24681 "                      const char *uuid);\n"
24682 "\n"
24683 msgstr ""
24684
24685 #. type: textblock
24686 #: ../src/guestfs-actions.pod:2009
24687 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
24688 msgstr ""
24689
24690 #. type: =head2
24691 #: ../src/guestfs-actions.pod:2016
24692 msgid "guestfs_fsck"
24693 msgstr ""
24694
24695 #. type: verbatim
24696 #: ../src/guestfs-actions.pod:2018
24697 #, no-wrap
24698 msgid ""
24699 " int\n"
24700 " guestfs_fsck (guestfs_h *g,\n"
24701 "               const char *fstype,\n"
24702 "               const char *device);\n"
24703 "\n"
24704 msgstr ""
24705
24706 #. type: textblock
24707 #: ../src/guestfs-actions.pod:2053 ../src/guestfs-actions.pod:7945
24708 msgid "(Added in 1.0.16)"
24709 msgstr ""
24710
24711 #. type: =head2
24712 #: ../src/guestfs-actions.pod:2055
24713 msgid "guestfs_get_append"
24714 msgstr ""
24715
24716 #. type: verbatim
24717 #: ../src/guestfs-actions.pod:2057
24718 #, no-wrap
24719 msgid ""
24720 " const char *\n"
24721 " guestfs_get_append (guestfs_h *g);\n"
24722 "\n"
24723 msgstr ""
24724
24725 #. type: textblock
24726 #: ../src/guestfs-actions.pod:2065
24727 msgid ""
24728 "This function returns a string which may be NULL.  There is no way to return "
24729 "an error from this function.  The string is owned by the guest handle and "
24730 "must I<not> be freed."
24731 msgstr ""
24732
24733 #. type: textblock
24734 #: ../src/guestfs-actions.pod:2069 ../src/guestfs-actions.pod:5834
24735 #: ../src/guestfs-actions.pod:6316 ../src/guestfs-actions.pod:6772
24736 #: ../src/guestfs-actions.pod:6791 ../src/guestfs-actions.pod:6807
24737 #: ../src/guestfs-actions.pod:6831 ../src/guestfs-actions.pod:7585
24738 #: ../src/guestfs-actions.pod:7600 ../src/guestfs-actions.pod:7992
24739 msgid "(Added in 1.0.26)"
24740 msgstr ""
24741
24742 #. type: =head2
24743 #: ../src/guestfs-actions.pod:2071
24744 msgid "guestfs_get_attach_method"
24745 msgstr ""
24746
24747 #. type: verbatim
24748 #: ../src/guestfs-actions.pod:2073
24749 #, no-wrap
24750 msgid ""
24751 " char *\n"
24752 " guestfs_get_attach_method (guestfs_h *g);\n"
24753 "\n"
24754 msgstr ""
24755
24756 #. type: textblock
24757 #: ../src/guestfs-actions.pod:2076
24758 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
24759 msgstr ""
24760
24761 #. type: textblock
24762 #: ../src/guestfs-actions.pod:2081 ../src/guestfs-actions.pod:6346
24763 msgid "(Added in 1.9.8)"
24764 msgstr ""
24765
24766 #. type: =head2
24767 #: ../src/guestfs-actions.pod:2083
24768 msgid "guestfs_get_autosync"
24769 msgstr ""
24770
24771 #. type: verbatim
24772 #: ../src/guestfs-actions.pod:2085
24773 #, no-wrap
24774 msgid ""
24775 " int\n"
24776 " guestfs_get_autosync (guestfs_h *g);\n"
24777 "\n"
24778 msgstr ""
24779
24780 #. type: =head2
24781 #: ../src/guestfs-actions.pod:2094
24782 msgid "guestfs_get_direct"
24783 msgstr ""
24784
24785 #. type: verbatim
24786 #: ../src/guestfs-actions.pod:2096
24787 #, no-wrap
24788 msgid ""
24789 " int\n"
24790 " guestfs_get_direct (guestfs_h *g);\n"
24791 "\n"
24792 msgstr ""
24793
24794 #. type: textblock
24795 #: ../src/guestfs-actions.pod:2103 ../src/guestfs-actions.pod:6387
24796 msgid "(Added in 1.0.72)"
24797 msgstr ""
24798
24799 #. type: =head2
24800 #: ../src/guestfs-actions.pod:2105
24801 msgid "guestfs_get_e2label"
24802 msgstr ""
24803
24804 #. type: verbatim
24805 #: ../src/guestfs-actions.pod:2107
24806 #, no-wrap
24807 msgid ""
24808 " char *\n"
24809 " guestfs_get_e2label (guestfs_h *g,\n"
24810 "                      const char *device);\n"
24811 "\n"
24812 msgstr ""
24813
24814 #. type: textblock
24815 #: ../src/guestfs-actions.pod:2111
24816 msgid ""
24817 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
24818 "call instead."
24819 msgstr ""
24820
24821 #. type: textblock
24822 #: ../src/guestfs-actions.pod:2124 ../src/guestfs-actions.pod:2145
24823 #: ../src/guestfs-actions.pod:6405 ../src/guestfs-actions.pod:6424
24824 msgid "(Added in 1.0.15)"
24825 msgstr ""
24826
24827 #. type: =head2
24828 #: ../src/guestfs-actions.pod:2126
24829 msgid "guestfs_get_e2uuid"
24830 msgstr ""
24831
24832 #. type: verbatim
24833 #: ../src/guestfs-actions.pod:2128
24834 #, no-wrap
24835 msgid ""
24836 " char *\n"
24837 " guestfs_get_e2uuid (guestfs_h *g,\n"
24838 "                     const char *device);\n"
24839 "\n"
24840 msgstr ""
24841
24842 #. type: textblock
24843 #: ../src/guestfs-actions.pod:2132
24844 msgid ""
24845 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
24846 "call instead."
24847 msgstr ""
24848
24849 #. type: =head2
24850 #: ../src/guestfs-actions.pod:2147
24851 msgid "guestfs_get_memsize"
24852 msgstr ""
24853
24854 #. type: verbatim
24855 #: ../src/guestfs-actions.pod:2149
24856 #, no-wrap
24857 msgid ""
24858 " int\n"
24859 " guestfs_get_memsize (guestfs_h *g);\n"
24860 "\n"
24861 msgstr ""
24862
24863 #. type: textblock
24864 #: ../src/guestfs-actions.pod:2155
24865 msgid ""
24866 "If C<guestfs_set_memsize> was not called on this handle, and if "
24867 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
24868 "value for memsize."
24869 msgstr ""
24870
24871 #. type: textblock
24872 #: ../src/guestfs-actions.pod:2164 ../src/guestfs-actions.pod:4737
24873 #: ../src/guestfs-actions.pod:4946 ../src/guestfs-actions.pod:4965
24874 #: ../src/guestfs-actions.pod:4984 ../src/guestfs-actions.pod:4996
24875 #: ../src/guestfs-actions.pod:5013 ../src/guestfs-actions.pod:5026
24876 #: ../src/guestfs-actions.pod:6059 ../src/guestfs-actions.pod:6445
24877 #: ../src/guestfs-actions.pod:6739 ../src/guestfs-actions.pod:7354
24878 msgid "(Added in 1.0.55)"
24879 msgstr ""
24880
24881 #. type: =head2
24882 #: ../src/guestfs-actions.pod:2166
24883 msgid "guestfs_get_network"
24884 msgstr ""
24885
24886 #. type: verbatim
24887 #: ../src/guestfs-actions.pod:2168
24888 #, no-wrap
24889 msgid ""
24890 " int\n"
24891 " guestfs_get_network (guestfs_h *g);\n"
24892 "\n"
24893 msgstr ""
24894
24895 #. type: textblock
24896 #: ../src/guestfs-actions.pod:2175 ../src/guestfs-actions.pod:6464
24897 msgid "(Added in 1.5.4)"
24898 msgstr ""
24899
24900 #. type: =head2
24901 #: ../src/guestfs-actions.pod:2177
24902 msgid "guestfs_get_path"
24903 msgstr ""
24904
24905 #. type: verbatim
24906 #: ../src/guestfs-actions.pod:2179
24907 #, no-wrap
24908 msgid ""
24909 " const char *\n"
24910 " guestfs_get_path (guestfs_h *g);\n"
24911 "\n"
24912 msgstr ""
24913
24914 #. type: textblock
24915 #: ../src/guestfs-actions.pod:2187 ../src/guestfs-actions.pod:2227
24916 msgid ""
24917 "This function returns a string, or NULL on error.  The string is owned by "
24918 "the guest handle and must I<not> be freed."
24919 msgstr ""
24920
24921 #. type: =head2
24922 #: ../src/guestfs-actions.pod:2192
24923 msgid "guestfs_get_pgroup"
24924 msgstr ""
24925
24926 #. type: verbatim
24927 #: ../src/guestfs-actions.pod:2194
24928 #, no-wrap
24929 msgid ""
24930 " int\n"
24931 " guestfs_get_pgroup (guestfs_h *g);\n"
24932 "\n"
24933 msgstr ""
24934
24935 #. type: textblock
24936 #: ../src/guestfs-actions.pod:2201 ../src/guestfs-actions.pod:6500
24937 #: ../src/guestfs-actions.pod:7846
24938 msgid "(Added in 1.11.18)"
24939 msgstr ""
24940
24941 #. type: =head2
24942 #: ../src/guestfs-actions.pod:2203
24943 msgid "guestfs_get_pid"
24944 msgstr ""
24945
24946 #. type: verbatim
24947 #: ../src/guestfs-actions.pod:2205
24948 #, no-wrap
24949 msgid ""
24950 " int\n"
24951 " guestfs_get_pid (guestfs_h *g);\n"
24952 "\n"
24953 msgstr ""
24954
24955 #. type: textblock
24956 #: ../src/guestfs-actions.pod:2215
24957 msgid "(Added in 1.0.56)"
24958 msgstr ""
24959
24960 #. type: =head2
24961 #: ../src/guestfs-actions.pod:2217
24962 msgid "guestfs_get_qemu"
24963 msgstr ""
24964
24965 #. type: verbatim
24966 #: ../src/guestfs-actions.pod:2219
24967 #, no-wrap
24968 msgid ""
24969 " const char *\n"
24970 " guestfs_get_qemu (guestfs_h *g);\n"
24971 "\n"
24972 msgstr ""
24973
24974 #. type: textblock
24975 #: ../src/guestfs-actions.pod:2230 ../src/guestfs-actions.pod:6528
24976 msgid "(Added in 1.0.6)"
24977 msgstr ""
24978
24979 #. type: =head2
24980 #: ../src/guestfs-actions.pod:2232
24981 msgid "guestfs_get_recovery_proc"
24982 msgstr ""
24983
24984 #. type: verbatim
24985 #: ../src/guestfs-actions.pod:2234
24986 #, no-wrap
24987 msgid ""
24988 " int\n"
24989 " guestfs_get_recovery_proc (guestfs_h *g);\n"
24990 "\n"
24991 msgstr ""
24992
24993 #. type: textblock
24994 #: ../src/guestfs-actions.pod:2241 ../src/guestfs-actions.pod:3810
24995 #: ../src/guestfs-actions.pod:4141 ../src/guestfs-actions.pod:4544
24996 #: ../src/guestfs-actions.pod:4576 ../src/guestfs-actions.pod:5764
24997 #: ../src/guestfs-actions.pod:6107 ../src/guestfs-actions.pod:6552
24998 #: ../src/guestfs-actions.pod:7257 ../src/guestfs-actions.pod:7277
24999 #: ../src/guestfs-actions.pod:7469
25000 msgid "(Added in 1.0.77)"
25001 msgstr ""
25002
25003 #. type: =head2
25004 #: ../src/guestfs-actions.pod:2243
25005 msgid "guestfs_get_selinux"
25006 msgstr ""
25007
25008 #. type: verbatim
25009 #: ../src/guestfs-actions.pod:2245
25010 #, no-wrap
25011 msgid ""
25012 " int\n"
25013 " guestfs_get_selinux (guestfs_h *g);\n"
25014 "\n"
25015 msgstr ""
25016
25017 #. type: textblock
25018 #: ../src/guestfs-actions.pod:2248
25019 msgid ""
25020 "This returns the current setting of the selinux flag which is passed to the "
25021 "appliance at boot time.  See C<guestfs_set_selinux>."
25022 msgstr ""
25023
25024 #. type: textblock
25025 #: ../src/guestfs-actions.pod:2256 ../src/guestfs-actions.pod:2328
25026 #: ../src/guestfs-actions.pod:6571 ../src/guestfs-actions.pod:6643
25027 msgid "(Added in 1.0.67)"
25028 msgstr ""
25029
25030 #. type: =head2
25031 #: ../src/guestfs-actions.pod:2258
25032 msgid "guestfs_get_smp"
25033 msgstr ""
25034
25035 #. type: verbatim
25036 #: ../src/guestfs-actions.pod:2260
25037 #, no-wrap
25038 msgid ""
25039 " int\n"
25040 " guestfs_get_smp (guestfs_h *g);\n"
25041 "\n"
25042 msgstr ""
25043
25044 #. type: =head2
25045 #: ../src/guestfs-actions.pod:2267
25046 msgid "guestfs_get_state"
25047 msgstr ""
25048
25049 #. type: verbatim
25050 #: ../src/guestfs-actions.pod:2269
25051 #, no-wrap
25052 msgid ""
25053 " int\n"
25054 " guestfs_get_state (guestfs_h *g);\n"
25055 "\n"
25056 msgstr ""
25057
25058 #. type: =head2
25059 #: ../src/guestfs-actions.pod:2281
25060 msgid "guestfs_get_trace"
25061 msgstr ""
25062
25063 #. type: verbatim
25064 #: ../src/guestfs-actions.pod:2283
25065 #, no-wrap
25066 msgid ""
25067 " int\n"
25068 " guestfs_get_trace (guestfs_h *g);\n"
25069 "\n"
25070 msgstr ""
25071
25072 #. type: =head2
25073 #: ../src/guestfs-actions.pod:2292
25074 msgid "guestfs_get_umask"
25075 msgstr ""
25076
25077 #. type: verbatim
25078 #: ../src/guestfs-actions.pod:2294
25079 #, no-wrap
25080 msgid ""
25081 " int\n"
25082 " guestfs_get_umask (guestfs_h *g);\n"
25083 "\n"
25084 msgstr ""
25085
25086 #. type: textblock
25087 #: ../src/guestfs-actions.pod:2297
25088 msgid ""
25089 "Return the current umask.  By default the umask is C<022> unless it has been "
25090 "set by calling C<guestfs_umask>."
25091 msgstr ""
25092
25093 #. type: =head2
25094 #: ../src/guestfs-actions.pod:2304
25095 msgid "guestfs_get_verbose"
25096 msgstr ""
25097
25098 #. type: verbatim
25099 #: ../src/guestfs-actions.pod:2306
25100 #, no-wrap
25101 msgid ""
25102 " int\n"
25103 " guestfs_get_verbose (guestfs_h *g);\n"
25104 "\n"
25105 msgstr ""
25106
25107 #. type: =head2
25108 #: ../src/guestfs-actions.pod:2315
25109 msgid "guestfs_getcon"
25110 msgstr ""
25111
25112 #. type: verbatim
25113 #: ../src/guestfs-actions.pod:2317
25114 #, no-wrap
25115 msgid ""
25116 " char *\n"
25117 " guestfs_getcon (guestfs_h *g);\n"
25118 "\n"
25119 msgstr ""
25120
25121 #. type: textblock
25122 #: ../src/guestfs-actions.pod:2322
25123 msgid ""
25124 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
25125 msgstr ""
25126
25127 #. type: =head2
25128 #: ../src/guestfs-actions.pod:2330
25129 msgid "guestfs_getxattr"
25130 msgstr ""
25131
25132 #. type: verbatim
25133 #: ../src/guestfs-actions.pod:2332
25134 #, no-wrap
25135 msgid ""
25136 " char *\n"
25137 " guestfs_getxattr (guestfs_h *g,\n"
25138 "                   const char *path,\n"
25139 "                   const char *name,\n"
25140 "                   size_t *size_r);\n"
25141 "\n"
25142 msgstr ""
25143
25144 #. type: textblock
25145 #: ../src/guestfs-actions.pod:2338
25146 msgid ""
25147 "Get a single extended attribute from file C<path> named C<name>.  This call "
25148 "follows symlinks.  If you want to lookup an extended attribute for the "
25149 "symlink itself, use C<guestfs_lgetxattr>."
25150 msgstr ""
25151
25152 #. type: textblock
25153 #: ../src/guestfs-actions.pod:2342 ../src/guestfs-actions.pod:3824
25154 msgid ""
25155 "Normally it is better to get all extended attributes from a file in one go "
25156 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
25157 "implementations are buggy and do not provide a way to list out attributes.  "
25158 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
25159 "extended attributes you want in advance and call this function."
25160 msgstr ""
25161
25162 #. type: textblock
25163 #: ../src/guestfs-actions.pod:2352
25164 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
25165 msgstr ""
25166
25167 #. type: textblock
25168 #: ../src/guestfs-actions.pod:2354 ../src/guestfs-actions.pod:2567
25169 #: ../src/guestfs-actions.pod:3041 ../src/guestfs-actions.pod:3836
25170 #: ../src/guestfs-actions.pod:5757 ../src/guestfs-actions.pod:5783
25171 #: ../src/guestfs-actions.pod:5964
25172 msgid ""
25173 "This function returns a buffer, or NULL on error.  The size of the returned "
25174 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
25175 "after use>."
25176 msgstr ""
25177
25178 #. type: textblock
25179 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:3840
25180 msgid "(Added in 1.7.24)"
25181 msgstr ""
25182
25183 #. type: =head2
25184 #: ../src/guestfs-actions.pod:2360
25185 msgid "guestfs_getxattrs"
25186 msgstr ""
25187
25188 #. type: verbatim
25189 #: ../src/guestfs-actions.pod:2362
25190 #, no-wrap
25191 msgid ""
25192 " struct guestfs_xattr_list *\n"
25193 " guestfs_getxattrs (guestfs_h *g,\n"
25194 "                    const char *path);\n"
25195 "\n"
25196 msgstr ""
25197
25198 #. type: textblock
25199 #: ../src/guestfs-actions.pod:2372
25200 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
25201 msgstr ""
25202
25203 #. type: textblock
25204 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:3852
25205 #: ../src/guestfs-actions.pod:4540
25206 msgid ""
25207 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
25208 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
25209 msgstr ""
25210
25211 #. type: textblock
25212 #: ../src/guestfs-actions.pod:2378 ../src/guestfs-actions.pod:3856
25213 #: ../src/guestfs-actions.pod:4055 ../src/guestfs-actions.pod:4091
25214 #: ../src/guestfs-actions.pod:6137 ../src/guestfs-actions.pod:6662
25215 #: ../src/guestfs-actions.pod:8057
25216 msgid "(Added in 1.0.59)"
25217 msgstr ""
25218
25219 #. type: =head2
25220 #: ../src/guestfs-actions.pod:2380
25221 msgid "guestfs_glob_expand"
25222 msgstr ""
25223
25224 #. type: verbatim
25225 #: ../src/guestfs-actions.pod:2382
25226 #, no-wrap
25227 msgid ""
25228 " char **\n"
25229 " guestfs_glob_expand (guestfs_h *g,\n"
25230 "                      const char *pattern);\n"
25231 "\n"
25232 msgstr ""
25233
25234 #. type: textblock
25235 #: ../src/guestfs-actions.pod:2401 ../src/guestfs-actions.pod:6855
25236 #: ../src/guestfs-actions.pod:6872
25237 msgid "(Added in 1.0.50)"
25238 msgstr ""
25239
25240 #. type: =head2
25241 #: ../src/guestfs-actions.pod:2403
25242 msgid "guestfs_grep"
25243 msgstr ""
25244
25245 #. type: verbatim
25246 #: ../src/guestfs-actions.pod:2405
25247 #, no-wrap
25248 msgid ""
25249 " char **\n"
25250 " guestfs_grep (guestfs_h *g,\n"
25251 "               const char *regex,\n"
25252 "               const char *path);\n"
25253 "\n"
25254 msgstr ""
25255
25256 #. type: =head2
25257 #: ../src/guestfs-actions.pod:2422
25258 msgid "guestfs_grepi"
25259 msgstr ""
25260
25261 #. type: verbatim
25262 #: ../src/guestfs-actions.pod:2424
25263 #, no-wrap
25264 msgid ""
25265 " char **\n"
25266 " guestfs_grepi (guestfs_h *g,\n"
25267 "                const char *regex,\n"
25268 "                const char *path);\n"
25269 "\n"
25270 msgstr ""
25271
25272 #. type: =head2
25273 #: ../src/guestfs-actions.pod:2441
25274 msgid "guestfs_grub_install"
25275 msgstr ""
25276
25277 #. type: verbatim
25278 #: ../src/guestfs-actions.pod:2443
25279 #, no-wrap
25280 msgid ""
25281 " int\n"
25282 " guestfs_grub_install (guestfs_h *g,\n"
25283 "                       const char *root,\n"
25284 "                       const char *device);\n"
25285 "\n"
25286 msgstr ""
25287
25288 #. type: textblock
25289 #: ../src/guestfs-actions.pod:2486
25290 msgid "(Added in 1.0.17)"
25291 msgstr ""
25292
25293 #. type: =head2
25294 #: ../src/guestfs-actions.pod:2488
25295 msgid "guestfs_head"
25296 msgstr ""
25297
25298 #. type: verbatim
25299 #: ../src/guestfs-actions.pod:2490
25300 #, no-wrap
25301 msgid ""
25302 " char **\n"
25303 " guestfs_head (guestfs_h *g,\n"
25304 "               const char *path);\n"
25305 "\n"
25306 msgstr ""
25307
25308 #. type: =head2
25309 #: ../src/guestfs-actions.pod:2506
25310 msgid "guestfs_head_n"
25311 msgstr ""
25312
25313 #. type: verbatim
25314 #: ../src/guestfs-actions.pod:2508
25315 #, no-wrap
25316 msgid ""
25317 " char **\n"
25318 " guestfs_head_n (guestfs_h *g,\n"
25319 "                 int nrlines,\n"
25320 "                 const char *path);\n"
25321 "\n"
25322 msgstr ""
25323
25324 #. type: =head2
25325 #: ../src/guestfs-actions.pod:2530
25326 msgid "guestfs_hexdump"
25327 msgstr ""
25328
25329 #. type: verbatim
25330 #: ../src/guestfs-actions.pod:2532
25331 #, no-wrap
25332 msgid ""
25333 " char *\n"
25334 " guestfs_hexdump (guestfs_h *g,\n"
25335 "                  const char *path);\n"
25336 "\n"
25337 msgstr ""
25338
25339 #. type: textblock
25340 #: ../src/guestfs-actions.pod:2545 ../src/guestfs-actions.pod:6936
25341 #: ../src/guestfs-actions.pod:6991
25342 msgid "(Added in 1.0.22)"
25343 msgstr ""
25344
25345 #. type: =head2
25346 #: ../src/guestfs-actions.pod:2547
25347 msgid "guestfs_initrd_cat"
25348 msgstr ""
25349
25350 #. type: verbatim
25351 #: ../src/guestfs-actions.pod:2549
25352 #, no-wrap
25353 msgid ""
25354 " char *\n"
25355 " guestfs_initrd_cat (guestfs_h *g,\n"
25356 "                     const char *initrdpath,\n"
25357 "                     const char *filename,\n"
25358 "                     size_t *size_r);\n"
25359 "\n"
25360 msgstr ""
25361
25362 #. type: textblock
25363 #: ../src/guestfs-actions.pod:2565
25364 msgid "See also C<guestfs_initrd_list>."
25365 msgstr ""
25366
25367 #. type: =head2
25368 #: ../src/guestfs-actions.pod:2576
25369 msgid "guestfs_initrd_list"
25370 msgstr ""
25371
25372 #. type: verbatim
25373 #: ../src/guestfs-actions.pod:2578
25374 #, no-wrap
25375 msgid ""
25376 " char **\n"
25377 " guestfs_initrd_list (guestfs_h *g,\n"
25378 "                      const char *path);\n"
25379 "\n"
25380 msgstr ""
25381
25382 #. type: =head2
25383 #: ../src/guestfs-actions.pod:2598
25384 msgid "guestfs_inotify_add_watch"
25385 msgstr ""
25386
25387 #. type: verbatim
25388 #: ../src/guestfs-actions.pod:2600
25389 #, no-wrap
25390 msgid ""
25391 " int64_t\n"
25392 " guestfs_inotify_add_watch (guestfs_h *g,\n"
25393 "                            const char *path,\n"
25394 "                            int mask);\n"
25395 "\n"
25396 msgstr ""
25397
25398 #. type: =head2
25399 #: ../src/guestfs-actions.pod:2619
25400 msgid "guestfs_inotify_close"
25401 msgstr ""
25402
25403 #. type: verbatim
25404 #: ../src/guestfs-actions.pod:2621
25405 #, no-wrap
25406 msgid ""
25407 " int\n"
25408 " guestfs_inotify_close (guestfs_h *g);\n"
25409 "\n"
25410 msgstr ""
25411
25412 #. type: =head2
25413 #: ../src/guestfs-actions.pod:2632
25414 msgid "guestfs_inotify_files"
25415 msgstr ""
25416
25417 #. type: verbatim
25418 #: ../src/guestfs-actions.pod:2634
25419 #, no-wrap
25420 msgid ""
25421 " char **\n"
25422 " guestfs_inotify_files (guestfs_h *g);\n"
25423 "\n"
25424 msgstr ""
25425
25426 #. type: textblock
25427 #: ../src/guestfs-actions.pod:2637
25428 msgid ""
25429 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
25430 "returns a list of pathnames of objects that were touched.  The returned "
25431 "pathnames are sorted and deduplicated."
25432 msgstr ""
25433
25434 #. type: =head2
25435 #: ../src/guestfs-actions.pod:2647
25436 msgid "guestfs_inotify_init"
25437 msgstr ""
25438
25439 #. type: verbatim
25440 #: ../src/guestfs-actions.pod:2649
25441 #, no-wrap
25442 msgid ""
25443 " int\n"
25444 " guestfs_inotify_init (guestfs_h *g,\n"
25445 "                       int maxevents);\n"
25446 "\n"
25447 msgstr ""
25448
25449 #. type: textblock
25450 #: ../src/guestfs-actions.pod:2657
25451 msgid ""
25452 "C<maxevents> is the maximum number of events which will be queued up between "
25453 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
25454 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
25455 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
25456 "throws away events, but records the fact that it threw them away by setting "
25457 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
25458 "C<guestfs_inotify_read>)."
25459 msgstr ""
25460
25461 #. type: textblock
25462 #: ../src/guestfs-actions.pod:2667
25463 msgid ""
25464 "Before any events are generated, you have to add some watches to the "
25465 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
25466 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
25467 msgstr ""
25468
25469 #. type: textblock
25470 #: ../src/guestfs-actions.pod:2673
25471 msgid ""
25472 "Queued up events should be read periodically by calling "
25473 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
25474 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
25475 "often enough then you risk the internal queue overflowing."
25476 msgstr ""
25477
25478 #. type: textblock
25479 #: ../src/guestfs-actions.pod:2680
25480 msgid ""
25481 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
25482 "This also removes any watches automatically."
25483 msgstr ""
25484
25485 #. type: =head2
25486 #: ../src/guestfs-actions.pod:2693
25487 msgid "guestfs_inotify_read"
25488 msgstr ""
25489
25490 #. type: verbatim
25491 #: ../src/guestfs-actions.pod:2695
25492 #, no-wrap
25493 msgid ""
25494 " struct guestfs_inotify_event_list *\n"
25495 " guestfs_inotify_read (guestfs_h *g);\n"
25496 "\n"
25497 msgstr ""
25498
25499 #. type: textblock
25500 #: ../src/guestfs-actions.pod:2709
25501 msgid ""
25502 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
25503 "there was an error.  I<The caller must call "
25504 "C<guestfs_free_inotify_event_list> after use>."
25505 msgstr ""
25506
25507 #. type: =head2
25508 #: ../src/guestfs-actions.pod:2715
25509 msgid "guestfs_inotify_rm_watch"
25510 msgstr ""
25511
25512 #. type: verbatim
25513 #: ../src/guestfs-actions.pod:2717
25514 #, no-wrap
25515 msgid ""
25516 " int\n"
25517 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
25518 "                           int wd);\n"
25519 "\n"
25520 msgstr ""
25521
25522 #. type: textblock
25523 #: ../src/guestfs-actions.pod:2721
25524 msgid ""
25525 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
25526 msgstr ""
25527
25528 #. type: =head2
25529 #: ../src/guestfs-actions.pod:2728
25530 msgid "guestfs_inspect_get_arch"
25531 msgstr ""
25532
25533 #. type: verbatim
25534 #: ../src/guestfs-actions.pod:2730
25535 #, no-wrap
25536 msgid ""
25537 " char *\n"
25538 " guestfs_inspect_get_arch (guestfs_h *g,\n"
25539 "                           const char *root);\n"
25540 "\n"
25541 msgstr ""
25542
25543 #. type: textblock
25544 #: ../src/guestfs-actions.pod:2734
25545 msgid ""
25546 "This returns the architecture of the inspected operating system.  The "
25547 "possible return values are listed under C<guestfs_file_architecture>."
25548 msgstr ""
25549
25550 #. type: =head2
25551 #: ../src/guestfs-actions.pod:2748
25552 msgid "guestfs_inspect_get_distro"
25553 msgstr ""
25554
25555 #. type: verbatim
25556 #: ../src/guestfs-actions.pod:2750
25557 #, no-wrap
25558 msgid ""
25559 " char *\n"
25560 " guestfs_inspect_get_distro (guestfs_h *g,\n"
25561 "                             const char *root);\n"
25562 "\n"
25563 msgstr ""
25564
25565 #. type: =head2
25566 #: ../src/guestfs-actions.pod:2842
25567 msgid "guestfs_inspect_get_drive_mappings"
25568 msgstr ""
25569
25570 #. type: verbatim
25571 #: ../src/guestfs-actions.pod:2844
25572 #, no-wrap
25573 msgid ""
25574 " char **\n"
25575 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
25576 "                                     const char *root);\n"
25577 "\n"
25578 msgstr ""
25579
25580 #. type: textblock
25581 #: ../src/guestfs-actions.pod:2873
25582 msgid ""
25583 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25584 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
25585 msgstr ""
25586
25587 #. type: textblock
25588 #: ../src/guestfs-actions.pod:2877 ../src/guestfs-actions.pod:3145
25589 #: ../src/guestfs-actions.pod:3943 ../src/guestfs-actions.pod:5225
25590 #: ../src/guestfs-actions.pod:7293
25591 msgid ""
25592 "This function returns a NULL-terminated array of strings, or NULL if there "
25593 "was an error.  The array of strings will always have length C<2n+1>, where "
25594 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
25595 "caller must free the strings and the array after use>."
25596 msgstr ""
25597
25598 #. type: textblock
25599 #: ../src/guestfs-actions.pod:2883 ../src/guestfs-actions.pod:3339
25600 msgid "(Added in 1.9.17)"
25601 msgstr ""
25602
25603 #. type: =head2
25604 #: ../src/guestfs-actions.pod:2885
25605 msgid "guestfs_inspect_get_filesystems"
25606 msgstr ""
25607
25608 #. type: verbatim
25609 #: ../src/guestfs-actions.pod:2887
25610 #, no-wrap
25611 msgid ""
25612 " char **\n"
25613 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
25614 "                                  const char *root);\n"
25615 "\n"
25616 msgstr ""
25617
25618 #. type: textblock
25619 #: ../src/guestfs-actions.pod:2899
25620 msgid ""
25621 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25622 "C<guestfs_inspect_get_mountpoints>."
25623 msgstr ""
25624
25625 #. type: =head2
25626 #: ../src/guestfs-actions.pod:2908
25627 msgid "guestfs_inspect_get_format"
25628 msgstr ""
25629
25630 #. type: verbatim
25631 #: ../src/guestfs-actions.pod:2910
25632 #, no-wrap
25633 msgid ""
25634 " char *\n"
25635 " guestfs_inspect_get_format (guestfs_h *g,\n"
25636 "                             const char *root);\n"
25637 "\n"
25638 msgstr ""
25639
25640 #. type: textblock
25641 #: ../src/guestfs-actions.pod:2944 ../src/guestfs-actions.pod:3375
25642 #: ../src/guestfs-actions.pod:3391 ../src/guestfs-actions.pod:3409
25643 #: ../src/guestfs-actions.pod:6175
25644 msgid "(Added in 1.9.4)"
25645 msgstr ""
25646
25647 #. type: =head2
25648 #: ../src/guestfs-actions.pod:2946
25649 msgid "guestfs_inspect_get_hostname"
25650 msgstr ""
25651
25652 #. type: verbatim
25653 #: ../src/guestfs-actions.pod:2948
25654 #, no-wrap
25655 msgid ""
25656 " char *\n"
25657 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
25658 "                               const char *root);\n"
25659 "\n"
25660 msgstr ""
25661
25662 #. type: textblock
25663 #: ../src/guestfs-actions.pod:2963
25664 msgid "(Added in 1.7.9)"
25665 msgstr ""
25666
25667 #. type: =head2
25668 #: ../src/guestfs-actions.pod:2965
25669 msgid "guestfs_inspect_get_icon"
25670 msgstr ""
25671
25672 #. type: verbatim
25673 #: ../src/guestfs-actions.pod:2967
25674 #, no-wrap
25675 msgid ""
25676 " char *\n"
25677 " guestfs_inspect_get_icon (guestfs_h *g,\n"
25678 "                           const char *root,\n"
25679 "                           size_t *size_r,\n"
25680 "                           ...);\n"
25681 "\n"
25682 msgstr ""
25683
25684 #. type: verbatim
25685 #: ../src/guestfs-actions.pod:2978
25686 #, no-wrap
25687 msgid ""
25688 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
25689 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
25690 "\n"
25691 msgstr ""
25692
25693 #. type: textblock
25694 #: ../src/guestfs-actions.pod:3045 ../src/guestfs-actions.pod:3870
25695 #: ../src/guestfs-actions.pod:5124
25696 msgid "(Added in 1.11.12)"
25697 msgstr ""
25698
25699 #. type: =head2
25700 #: ../src/guestfs-actions.pod:3047
25701 msgid "guestfs_inspect_get_icon_va"
25702 msgstr ""
25703
25704 #. type: verbatim
25705 #: ../src/guestfs-actions.pod:3049
25706 #, no-wrap
25707 msgid ""
25708 " char *\n"
25709 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
25710 "                              const char *root,\n"
25711 "                              size_t *size_r,\n"
25712 "                              va_list args);\n"
25713 "\n"
25714 msgstr ""
25715
25716 #. type: textblock
25717 #: ../src/guestfs-actions.pod:3055
25718 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
25719 msgstr ""
25720
25721 #. type: =head2
25722 #: ../src/guestfs-actions.pod:3059
25723 msgid "guestfs_inspect_get_icon_argv"
25724 msgstr ""
25725
25726 #. type: verbatim
25727 #: ../src/guestfs-actions.pod:3061
25728 #, no-wrap
25729 msgid ""
25730 " char *\n"
25731 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
25732 "                                const char *root,\n"
25733 "                                size_t *size_r,\n"
25734 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
25735 "\n"
25736 msgstr ""
25737
25738 #. type: textblock
25739 #: ../src/guestfs-actions.pod:3067
25740 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
25741 msgstr ""
25742
25743 #. type: =head2
25744 #: ../src/guestfs-actions.pod:3071
25745 msgid "guestfs_inspect_get_major_version"
25746 msgstr ""
25747
25748 #. type: verbatim
25749 #: ../src/guestfs-actions.pod:3073
25750 #, no-wrap
25751 msgid ""
25752 " int\n"
25753 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
25754 "                                    const char *root);\n"
25755 "\n"
25756 msgstr ""
25757
25758 #. type: =head2
25759 #: ../src/guestfs-actions.pod:3095
25760 msgid "guestfs_inspect_get_minor_version"
25761 msgstr ""
25762
25763 #. type: verbatim
25764 #: ../src/guestfs-actions.pod:3097
25765 #, no-wrap
25766 msgid ""
25767 " int\n"
25768 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
25769 "                                    const char *root);\n"
25770 "\n"
25771 msgstr ""
25772
25773 #. type: textblock
25774 #: ../src/guestfs-actions.pod:3106
25775 msgid ""
25776 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25777 "C<guestfs_inspect_get_major_version>."
25778 msgstr ""
25779
25780 #. type: =head2
25781 #: ../src/guestfs-actions.pod:3113
25782 msgid "guestfs_inspect_get_mountpoints"
25783 msgstr ""
25784
25785 #. type: verbatim
25786 #: ../src/guestfs-actions.pod:3115
25787 #, no-wrap
25788 msgid ""
25789 " char **\n"
25790 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
25791 "                                  const char *root);\n"
25792 "\n"
25793 msgstr ""
25794
25795 #. type: textblock
25796 #: ../src/guestfs-actions.pod:3136
25797 msgid ""
25798 "For operating systems like Windows which still use drive letters, this call "
25799 "will only return an entry for the first drive \"mounted on\" C</>.  For "
25800 "information about the mapping of drive letters to partitions, see "
25801 "C<guestfs_inspect_get_drive_mappings>."
25802 msgstr ""
25803
25804 #. type: textblock
25805 #: ../src/guestfs-actions.pod:3142
25806 msgid ""
25807 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25808 "C<guestfs_inspect_get_filesystems>."
25809 msgstr ""
25810
25811 #. type: =head2
25812 #: ../src/guestfs-actions.pod:3153
25813 msgid "guestfs_inspect_get_package_format"
25814 msgstr ""
25815
25816 #. type: verbatim
25817 #: ../src/guestfs-actions.pod:3155
25818 #, no-wrap
25819 msgid ""
25820 " char *\n"
25821 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
25822 "                                     const char *root);\n"
25823 "\n"
25824 msgstr ""
25825
25826 #. type: textblock
25827 #: ../src/guestfs-actions.pod:3159
25828 msgid ""
25829 "This function and C<guestfs_inspect_get_package_management> return the "
25830 "package format and package management tool used by the inspected operating "
25831 "system.  For example for Fedora these functions would return C<rpm> (package "
25832 "format) and C<yum> (package management)."
25833 msgstr ""
25834
25835 #. type: textblock
25836 #: ../src/guestfs-actions.pod:3177 ../src/guestfs-actions.pod:3205
25837 msgid "(Added in 1.7.5)"
25838 msgstr ""
25839
25840 #. type: =head2
25841 #: ../src/guestfs-actions.pod:3179
25842 msgid "guestfs_inspect_get_package_management"
25843 msgstr ""
25844
25845 #. type: verbatim
25846 #: ../src/guestfs-actions.pod:3181
25847 #, no-wrap
25848 msgid ""
25849 " char *\n"
25850 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
25851 "                                         const char *root);\n"
25852 "\n"
25853 msgstr ""
25854
25855 #. type: textblock
25856 #: ../src/guestfs-actions.pod:3185
25857 msgid ""
25858 "C<guestfs_inspect_get_package_format> and this function return the package "
25859 "format and package management tool used by the inspected operating system.  "
25860 "For example for Fedora these functions would return C<rpm> (package format) "
25861 "and C<yum> (package management)."
25862 msgstr ""
25863
25864 #. type: =head2
25865 #: ../src/guestfs-actions.pod:3207
25866 msgid "guestfs_inspect_get_product_name"
25867 msgstr ""
25868
25869 #. type: verbatim
25870 #: ../src/guestfs-actions.pod:3209
25871 #, no-wrap
25872 msgid ""
25873 " char *\n"
25874 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
25875 "                                   const char *root);\n"
25876 "\n"
25877 msgstr ""
25878
25879 #. type: =head2
25880 #: ../src/guestfs-actions.pod:3228
25881 msgid "guestfs_inspect_get_product_variant"
25882 msgstr ""
25883
25884 #. type: verbatim
25885 #: ../src/guestfs-actions.pod:3230
25886 #, no-wrap
25887 msgid ""
25888 " char *\n"
25889 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
25890 "                                      const char *root);\n"
25891 "\n"
25892 msgstr ""
25893
25894 #. type: textblock
25895 #: ../src/guestfs-actions.pod:3253
25896 msgid ""
25897 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25898 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
25899 msgstr ""
25900
25901 #. type: textblock
25902 #: ../src/guestfs-actions.pod:3260
25903 msgid "(Added in 1.9.13)"
25904 msgstr ""
25905
25906 #. type: =head2
25907 #: ../src/guestfs-actions.pod:3262
25908 msgid "guestfs_inspect_get_roots"
25909 msgstr ""
25910
25911 #. type: verbatim
25912 #: ../src/guestfs-actions.pod:3264
25913 #, no-wrap
25914 msgid ""
25915 " char **\n"
25916 " guestfs_inspect_get_roots (guestfs_h *g);\n"
25917 "\n"
25918 msgstr ""
25919
25920 #. type: textblock
25921 #: ../src/guestfs-actions.pod:3267
25922 msgid ""
25923 "This function is a convenient way to get the list of root devices, as "
25924 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
25925 "the whole inspection process."
25926 msgstr ""
25927
25928 #. type: textblock
25929 #: ../src/guestfs-actions.pod:3271
25930 msgid ""
25931 "This returns an empty list if either no root devices were found or the "
25932 "caller has not called C<guestfs_inspect_os>."
25933 msgstr ""
25934
25935 #. type: textblock
25936 #: ../src/guestfs-actions.pod:3280
25937 msgid "(Added in 1.7.3)"
25938 msgstr ""
25939
25940 #. type: =head2
25941 #: ../src/guestfs-actions.pod:3282
25942 msgid "guestfs_inspect_get_type"
25943 msgstr ""
25944
25945 #. type: verbatim
25946 #: ../src/guestfs-actions.pod:3284
25947 #, no-wrap
25948 msgid ""
25949 " char *\n"
25950 " guestfs_inspect_get_type (guestfs_h *g,\n"
25951 "                           const char *root);\n"
25952 "\n"
25953 msgstr ""
25954
25955 #. type: =head2
25956 #: ../src/guestfs-actions.pod:3321
25957 msgid "guestfs_inspect_get_windows_current_control_set"
25958 msgstr ""
25959
25960 #. type: verbatim
25961 #: ../src/guestfs-actions.pod:3323
25962 #, no-wrap
25963 msgid ""
25964 " char *\n"
25965 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
25966 "                                                  const char *root);\n"
25967 "\n"
25968 msgstr ""
25969
25970 #. type: =head2
25971 #: ../src/guestfs-actions.pod:3341
25972 msgid "guestfs_inspect_get_windows_systemroot"
25973 msgstr ""
25974
25975 #. type: verbatim
25976 #: ../src/guestfs-actions.pod:3343
25977 #, no-wrap
25978 msgid ""
25979 " char *\n"
25980 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
25981 "                                         const char *root);\n"
25982 "\n"
25983 msgstr ""
25984
25985 #. type: textblock
25986 #: ../src/guestfs-actions.pod:3359
25987 msgid "(Added in 1.5.25)"
25988 msgstr ""
25989
25990 #. type: =head2
25991 #: ../src/guestfs-actions.pod:3361
25992 msgid "guestfs_inspect_is_live"
25993 msgstr ""
25994
25995 #. type: verbatim
25996 #: ../src/guestfs-actions.pod:3363
25997 #, no-wrap
25998 msgid ""
25999 " int\n"
26000 " guestfs_inspect_is_live (guestfs_h *g,\n"
26001 "                          const char *root);\n"
26002 "\n"
26003 msgstr ""
26004
26005 #. type: textblock
26006 #: ../src/guestfs-actions.pod:3367
26007 msgid ""
26008 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26009 "disk), then this returns true if a live image was detected on the disk."
26010 msgstr ""
26011
26012 #. type: =head2
26013 #: ../src/guestfs-actions.pod:3377
26014 msgid "guestfs_inspect_is_multipart"
26015 msgstr ""
26016
26017 #. type: verbatim
26018 #: ../src/guestfs-actions.pod:3379
26019 #, no-wrap
26020 msgid ""
26021 " int\n"
26022 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
26023 "                               const char *root);\n"
26024 "\n"
26025 msgstr ""
26026
26027 #. type: textblock
26028 #: ../src/guestfs-actions.pod:3383
26029 msgid ""
26030 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26031 "disk), then this returns true if the disk is part of a set."
26032 msgstr ""
26033
26034 #. type: =head2
26035 #: ../src/guestfs-actions.pod:3393
26036 msgid "guestfs_inspect_is_netinst"
26037 msgstr ""
26038
26039 #. type: verbatim
26040 #: ../src/guestfs-actions.pod:3395
26041 #, no-wrap
26042 msgid ""
26043 " int\n"
26044 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
26045 "                             const char *root);\n"
26046 "\n"
26047 msgstr ""
26048
26049 #. type: textblock
26050 #: ../src/guestfs-actions.pod:3399
26051 msgid ""
26052 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26053 "disk), then this returns true if the disk is a network installer, ie. not a "
26054 "self-contained install CD but one which is likely to require network access "
26055 "to complete the install."
26056 msgstr ""
26057
26058 #. type: =head2
26059 #: ../src/guestfs-actions.pod:3411
26060 msgid "guestfs_inspect_list_applications"
26061 msgstr ""
26062
26063 #. type: verbatim
26064 #: ../src/guestfs-actions.pod:3413
26065 #, no-wrap
26066 msgid ""
26067 " struct guestfs_application_list *\n"
26068 " guestfs_inspect_list_applications (guestfs_h *g,\n"
26069 "                                    const char *root);\n"
26070 "\n"
26071 msgstr ""
26072
26073 #. type: textblock
26074 #: ../src/guestfs-actions.pod:3419
26075 msgid ""
26076 "I<Note:> This call works differently from other parts of the inspection "
26077 "API.  You have to call C<guestfs_inspect_os>, then "
26078 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
26079 "this.  Listing applications is a significantly more difficult operation "
26080 "which requires access to the full filesystem.  Also note that unlike the "
26081 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
26082 "the libguestfs handle, this call actually reads parts of the mounted "
26083 "filesystems during the call."
26084 msgstr ""
26085
26086 #. type: textblock
26087 #: ../src/guestfs-actions.pod:3509
26088 msgid ""
26089 "This function returns a C<struct guestfs_application_list *>, or NULL if "
26090 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
26091 "after use>."
26092 msgstr ""
26093
26094 #. type: textblock
26095 #: ../src/guestfs-actions.pod:3513
26096 msgid "(Added in 1.7.8)"
26097 msgstr ""
26098
26099 #. type: =head2
26100 #: ../src/guestfs-actions.pod:3515
26101 msgid "guestfs_inspect_os"
26102 msgstr ""
26103
26104 #. type: verbatim
26105 #: ../src/guestfs-actions.pod:3517
26106 #, no-wrap
26107 msgid ""
26108 " char **\n"
26109 " guestfs_inspect_os (guestfs_h *g);\n"
26110 "\n"
26111 msgstr ""
26112
26113 #. type: textblock
26114 #: ../src/guestfs-actions.pod:3533
26115 msgid ""
26116 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
26117 "functions in order to query further information about each operating system, "
26118 "such as the name and version."
26119 msgstr ""
26120
26121 #. type: textblock
26122 #: ../src/guestfs-actions.pod:3538
26123 msgid ""
26124 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
26125 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
26126 "the contents.  This should be called with no disks currently mounted.  The "
26127 "function may also use Augeas, so any existing Augeas handle will be closed."
26128 msgstr ""
26129
26130 #. type: textblock
26131 #: ../src/guestfs-actions.pod:3550 ../src/guestfs-actions.pod:3881
26132 #: ../src/guestfs-actions.pod:3963
26133 msgid "See also C<guestfs_list_filesystems>."
26134 msgstr ""
26135
26136 #. type: =head2
26137 #: ../src/guestfs-actions.pod:3558
26138 msgid "guestfs_is_blockdev"
26139 msgstr ""
26140
26141 #. type: verbatim
26142 #: ../src/guestfs-actions.pod:3560
26143 #, no-wrap
26144 msgid ""
26145 " int\n"
26146 " guestfs_is_blockdev (guestfs_h *g,\n"
26147 "                      const char *path);\n"
26148 "\n"
26149 msgstr ""
26150
26151 #. type: textblock
26152 #: ../src/guestfs-actions.pod:3567 ../src/guestfs-actions.pod:3596
26153 #: ../src/guestfs-actions.pod:3626 ../src/guestfs-actions.pod:3641
26154 #: ../src/guestfs-actions.pod:3657 ../src/guestfs-actions.pod:3713
26155 #: ../src/guestfs-actions.pod:3728
26156 msgid "See also C<guestfs_stat>."
26157 msgstr ""
26158
26159 #. type: textblock
26160 #: ../src/guestfs-actions.pod:3571 ../src/guestfs-actions.pod:3600
26161 #: ../src/guestfs-actions.pod:3645 ../src/guestfs-actions.pod:3717
26162 #: ../src/guestfs-actions.pod:3732
26163 msgid "(Added in 1.5.10)"
26164 msgstr ""
26165
26166 #. type: =head2
26167 #: ../src/guestfs-actions.pod:3573
26168 msgid "guestfs_is_busy"
26169 msgstr ""
26170
26171 #. type: verbatim
26172 #: ../src/guestfs-actions.pod:3575
26173 #, no-wrap
26174 msgid ""
26175 " int\n"
26176 " guestfs_is_busy (guestfs_h *g);\n"
26177 "\n"
26178 msgstr ""
26179
26180 #. type: =head2
26181 #: ../src/guestfs-actions.pod:3587
26182 msgid "guestfs_is_chardev"
26183 msgstr ""
26184
26185 #. type: verbatim
26186 #: ../src/guestfs-actions.pod:3589
26187 #, no-wrap
26188 msgid ""
26189 " int\n"
26190 " guestfs_is_chardev (guestfs_h *g,\n"
26191 "                     const char *path);\n"
26192 "\n"
26193 msgstr ""
26194
26195 #. type: =head2
26196 #: ../src/guestfs-actions.pod:3602
26197 msgid "guestfs_is_config"
26198 msgstr ""
26199
26200 #. type: verbatim
26201 #: ../src/guestfs-actions.pod:3604
26202 #, no-wrap
26203 msgid ""
26204 " int\n"
26205 " guestfs_is_config (guestfs_h *g);\n"
26206 "\n"
26207 msgstr ""
26208
26209 #. type: =head2
26210 #: ../src/guestfs-actions.pod:3616
26211 msgid "guestfs_is_dir"
26212 msgstr ""
26213
26214 #. type: verbatim
26215 #: ../src/guestfs-actions.pod:3618
26216 #, no-wrap
26217 msgid ""
26218 " int\n"
26219 " guestfs_is_dir (guestfs_h *g,\n"
26220 "                 const char *path);\n"
26221 "\n"
26222 msgstr ""
26223
26224 #. type: =head2
26225 #: ../src/guestfs-actions.pod:3632
26226 msgid "guestfs_is_fifo"
26227 msgstr ""
26228
26229 #. type: verbatim
26230 #: ../src/guestfs-actions.pod:3634
26231 #, no-wrap
26232 msgid ""
26233 " int\n"
26234 " guestfs_is_fifo (guestfs_h *g,\n"
26235 "                  const char *path);\n"
26236 "\n"
26237 msgstr ""
26238
26239 #. type: =head2
26240 #: ../src/guestfs-actions.pod:3647
26241 msgid "guestfs_is_file"
26242 msgstr ""
26243
26244 #. type: verbatim
26245 #: ../src/guestfs-actions.pod:3649
26246 #, no-wrap
26247 msgid ""
26248 " int\n"
26249 " guestfs_is_file (guestfs_h *g,\n"
26250 "                  const char *path);\n"
26251 "\n"
26252 msgstr ""
26253
26254 #. type: =head2
26255 #: ../src/guestfs-actions.pod:3663
26256 msgid "guestfs_is_launching"
26257 msgstr ""
26258
26259 #. type: verbatim
26260 #: ../src/guestfs-actions.pod:3665
26261 #, no-wrap
26262 msgid ""
26263 " int\n"
26264 " guestfs_is_launching (guestfs_h *g);\n"
26265 "\n"
26266 msgstr ""
26267
26268 #. type: =head2
26269 #: ../src/guestfs-actions.pod:3677
26270 msgid "guestfs_is_lv"
26271 msgstr ""
26272
26273 #. type: verbatim
26274 #: ../src/guestfs-actions.pod:3679
26275 #, no-wrap
26276 msgid ""
26277 " int\n"
26278 " guestfs_is_lv (guestfs_h *g,\n"
26279 "                const char *device);\n"
26280 "\n"
26281 msgstr ""
26282
26283 #. type: =head2
26284 #: ../src/guestfs-actions.pod:3690
26285 msgid "guestfs_is_ready"
26286 msgstr ""
26287
26288 #. type: verbatim
26289 #: ../src/guestfs-actions.pod:3692
26290 #, no-wrap
26291 msgid ""
26292 " int\n"
26293 " guestfs_is_ready (guestfs_h *g);\n"
26294 "\n"
26295 msgstr ""
26296
26297 #. type: =head2
26298 #: ../src/guestfs-actions.pod:3704
26299 msgid "guestfs_is_socket"
26300 msgstr ""
26301
26302 #. type: verbatim
26303 #: ../src/guestfs-actions.pod:3706
26304 #, no-wrap
26305 msgid ""
26306 " int\n"
26307 " guestfs_is_socket (guestfs_h *g,\n"
26308 "                    const char *path);\n"
26309 "\n"
26310 msgstr ""
26311
26312 #. type: =head2
26313 #: ../src/guestfs-actions.pod:3719
26314 msgid "guestfs_is_symlink"
26315 msgstr ""
26316
26317 #. type: verbatim
26318 #: ../src/guestfs-actions.pod:3721
26319 #, no-wrap
26320 msgid ""
26321 " int\n"
26322 " guestfs_is_symlink (guestfs_h *g,\n"
26323 "                     const char *path);\n"
26324 "\n"
26325 msgstr ""
26326
26327 #. type: =head2
26328 #: ../src/guestfs-actions.pod:3734
26329 msgid "guestfs_is_zero"
26330 msgstr ""
26331
26332 #. type: verbatim
26333 #: ../src/guestfs-actions.pod:3736
26334 #, no-wrap
26335 msgid ""
26336 " int\n"
26337 " guestfs_is_zero (guestfs_h *g,\n"
26338 "                  const char *path);\n"
26339 "\n"
26340 msgstr ""
26341
26342 #. type: textblock
26343 #: ../src/guestfs-actions.pod:3745 ../src/guestfs-actions.pod:3759
26344 msgid "(Added in 1.11.8)"
26345 msgstr ""
26346
26347 #. type: =head2
26348 #: ../src/guestfs-actions.pod:3747
26349 msgid "guestfs_is_zero_device"
26350 msgstr ""
26351
26352 #. type: verbatim
26353 #: ../src/guestfs-actions.pod:3749
26354 #, no-wrap
26355 msgid ""
26356 " int\n"
26357 " guestfs_is_zero_device (guestfs_h *g,\n"
26358 "                         const char *device);\n"
26359 "\n"
26360 msgstr ""
26361
26362 #. type: =head2
26363 #: ../src/guestfs-actions.pod:3761
26364 msgid "guestfs_kill_subprocess"
26365 msgstr ""
26366
26367 #. type: verbatim
26368 #: ../src/guestfs-actions.pod:3763
26369 #, no-wrap
26370 msgid ""
26371 " int\n"
26372 " guestfs_kill_subprocess (guestfs_h *g);\n"
26373 "\n"
26374 msgstr ""
26375
26376 #. type: =head2
26377 #: ../src/guestfs-actions.pod:3772
26378 msgid "guestfs_launch"
26379 msgstr ""
26380
26381 #. type: verbatim
26382 #: ../src/guestfs-actions.pod:3774
26383 #, no-wrap
26384 msgid ""
26385 " int\n"
26386 " guestfs_launch (guestfs_h *g);\n"
26387 "\n"
26388 msgstr ""
26389
26390 #. type: =head2
26391 #: ../src/guestfs-actions.pod:3792
26392 msgid "guestfs_lchown"
26393 msgstr ""
26394
26395 #. type: verbatim
26396 #: ../src/guestfs-actions.pod:3794
26397 #, no-wrap
26398 msgid ""
26399 " int\n"
26400 " guestfs_lchown (guestfs_h *g,\n"
26401 "                 int owner,\n"
26402 "                 int group,\n"
26403 "                 const char *path);\n"
26404 "\n"
26405 msgstr ""
26406
26407 #. type: textblock
26408 #: ../src/guestfs-actions.pod:3800
26409 msgid ""
26410 "Change the file owner to C<owner> and group to C<group>.  This is like "
26411 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
26412 "changed, not the target."
26413 msgstr ""
26414
26415 #. type: =head2
26416 #: ../src/guestfs-actions.pod:3812
26417 msgid "guestfs_lgetxattr"
26418 msgstr ""
26419
26420 #. type: verbatim
26421 #: ../src/guestfs-actions.pod:3814
26422 #, no-wrap
26423 msgid ""
26424 " char *\n"
26425 " guestfs_lgetxattr (guestfs_h *g,\n"
26426 "                    const char *path,\n"
26427 "                    const char *name,\n"
26428 "                    size_t *size_r);\n"
26429 "\n"
26430 msgstr ""
26431
26432 #. type: textblock
26433 #: ../src/guestfs-actions.pod:3834
26434 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
26435 msgstr ""
26436
26437 #. type: =head2
26438 #: ../src/guestfs-actions.pod:3842
26439 msgid "guestfs_lgetxattrs"
26440 msgstr ""
26441
26442 #. type: verbatim
26443 #: ../src/guestfs-actions.pod:3844
26444 #, no-wrap
26445 msgid ""
26446 " struct guestfs_xattr_list *\n"
26447 " guestfs_lgetxattrs (guestfs_h *g,\n"
26448 "                     const char *path);\n"
26449 "\n"
26450 msgstr ""
26451
26452 #. type: textblock
26453 #: ../src/guestfs-actions.pod:3848
26454 msgid ""
26455 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
26456 "then it returns the extended attributes of the link itself."
26457 msgstr ""
26458
26459 #. type: =head2
26460 #: ../src/guestfs-actions.pod:3858
26461 msgid "guestfs_list_9p"
26462 msgstr ""
26463
26464 #. type: verbatim
26465 #: ../src/guestfs-actions.pod:3860
26466 #, no-wrap
26467 msgid ""
26468 " char **\n"
26469 " guestfs_list_9p (guestfs_h *g);\n"
26470 "\n"
26471 msgstr ""
26472
26473 #. type: =head2
26474 #: ../src/guestfs-actions.pod:3872
26475 msgid "guestfs_list_devices"
26476 msgstr ""
26477
26478 #. type: verbatim
26479 #: ../src/guestfs-actions.pod:3874
26480 #, no-wrap
26481 msgid ""
26482 " char **\n"
26483 " guestfs_list_devices (guestfs_h *g);\n"
26484 "\n"
26485 msgstr ""
26486
26487 #. type: =head2
26488 #: ../src/guestfs-actions.pod:3889
26489 msgid "guestfs_list_dm_devices"
26490 msgstr ""
26491
26492 #. type: verbatim
26493 #: ../src/guestfs-actions.pod:3891
26494 #, no-wrap
26495 msgid ""
26496 " char **\n"
26497 " guestfs_list_dm_devices (guestfs_h *g);\n"
26498 "\n"
26499 msgstr ""
26500
26501 #. type: textblock
26502 #: ../src/guestfs-actions.pod:3896
26503 msgid ""
26504 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
26505 "previous call to C<guestfs_luks_open>."
26506 msgstr ""
26507
26508 #. type: textblock
26509 #: ../src/guestfs-actions.pod:3899
26510 msgid ""
26511 "Device mapper devices which correspond to logical volumes are I<not> "
26512 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
26513 "volumes."
26514 msgstr ""
26515
26516 #. type: textblock
26517 #: ../src/guestfs-actions.pod:3907 ../src/guestfs-actions.pod:5363
26518 msgid "(Added in 1.11.15)"
26519 msgstr ""
26520
26521 #. type: =head2
26522 #: ../src/guestfs-actions.pod:3909
26523 msgid "guestfs_list_filesystems"
26524 msgstr ""
26525
26526 #. type: verbatim
26527 #: ../src/guestfs-actions.pod:3911
26528 #, no-wrap
26529 msgid ""
26530 " char **\n"
26531 " guestfs_list_filesystems (guestfs_h *g);\n"
26532 "\n"
26533 msgstr ""
26534
26535 #. type: textblock
26536 #: ../src/guestfs-actions.pod:3931
26537 msgid ""
26538 "This command runs other libguestfs commands, which might include "
26539 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
26540 "soon after launch and only when nothing is mounted."
26541 msgstr ""
26542
26543 #. type: textblock
26544 #: ../src/guestfs-actions.pod:3935
26545 msgid ""
26546 "Not all of the filesystems returned will be mountable.  In particular, swap "
26547 "partitions are returned in the list.  Also this command does not check that "
26548 "each filesystem found is valid and mountable, and some filesystems might be "
26549 "mountable but require special options.  Filesystems may not all belong to a "
26550 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
26551 msgstr ""
26552
26553 #. type: textblock
26554 #: ../src/guestfs-actions.pod:3949 ../src/guestfs-actions.pod:5724
26555 msgid "(Added in 1.5.15)"
26556 msgstr ""
26557
26558 #. type: =head2
26559 #: ../src/guestfs-actions.pod:3951
26560 msgid "guestfs_list_partitions"
26561 msgstr ""
26562
26563 #. type: verbatim
26564 #: ../src/guestfs-actions.pod:3953
26565 #, no-wrap
26566 msgid ""
26567 " char **\n"
26568 " guestfs_list_partitions (guestfs_h *g);\n"
26569 "\n"
26570 msgstr ""
26571
26572 #. type: textblock
26573 #: ../src/guestfs-actions.pod:3960
26574 msgid ""
26575 "This does not return logical volumes.  For that you will need to call "
26576 "C<guestfs_lvs>."
26577 msgstr ""
26578
26579 #. type: =head2
26580 #: ../src/guestfs-actions.pod:3971
26581 msgid "guestfs_ll"
26582 msgstr ""
26583
26584 #. type: verbatim
26585 #: ../src/guestfs-actions.pod:3973
26586 #, no-wrap
26587 msgid ""
26588 " char *\n"
26589 " guestfs_ll (guestfs_h *g,\n"
26590 "             const char *directory);\n"
26591 "\n"
26592 msgstr ""
26593
26594 #. type: =head2
26595 #: ../src/guestfs-actions.pod:3988
26596 msgid "guestfs_ln"
26597 msgstr ""
26598
26599 #. type: verbatim
26600 #: ../src/guestfs-actions.pod:3990
26601 #, no-wrap
26602 msgid ""
26603 " int\n"
26604 " guestfs_ln (guestfs_h *g,\n"
26605 "             const char *target,\n"
26606 "             const char *linkname);\n"
26607 "\n"
26608 msgstr ""
26609
26610 #. type: =head2
26611 #: ../src/guestfs-actions.pod:4001
26612 msgid "guestfs_ln_f"
26613 msgstr ""
26614
26615 #. type: verbatim
26616 #: ../src/guestfs-actions.pod:4003
26617 #, no-wrap
26618 msgid ""
26619 " int\n"
26620 " guestfs_ln_f (guestfs_h *g,\n"
26621 "               const char *target,\n"
26622 "               const char *linkname);\n"
26623 "\n"
26624 msgstr ""
26625
26626 #. type: =head2
26627 #: ../src/guestfs-actions.pod:4015
26628 msgid "guestfs_ln_s"
26629 msgstr ""
26630
26631 #. type: verbatim
26632 #: ../src/guestfs-actions.pod:4017
26633 #, no-wrap
26634 msgid ""
26635 " int\n"
26636 " guestfs_ln_s (guestfs_h *g,\n"
26637 "               const char *target,\n"
26638 "               const char *linkname);\n"
26639 "\n"
26640 msgstr ""
26641
26642 #. type: =head2
26643 #: ../src/guestfs-actions.pod:4028
26644 msgid "guestfs_ln_sf"
26645 msgstr ""
26646
26647 #. type: verbatim
26648 #: ../src/guestfs-actions.pod:4030
26649 #, no-wrap
26650 msgid ""
26651 " int\n"
26652 " guestfs_ln_sf (guestfs_h *g,\n"
26653 "                const char *target,\n"
26654 "                const char *linkname);\n"
26655 "\n"
26656 msgstr ""
26657
26658 #. type: =head2
26659 #: ../src/guestfs-actions.pod:4042
26660 msgid "guestfs_lremovexattr"
26661 msgstr ""
26662
26663 #. type: verbatim
26664 #: ../src/guestfs-actions.pod:4044
26665 #, no-wrap
26666 msgid ""
26667 " int\n"
26668 " guestfs_lremovexattr (guestfs_h *g,\n"
26669 "                       const char *xattr,\n"
26670 "                       const char *path);\n"
26671 "\n"
26672 msgstr ""
26673
26674 #. type: textblock
26675 #: ../src/guestfs-actions.pod:4049
26676 msgid ""
26677 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
26678 "link, then it removes an extended attribute of the link itself."
26679 msgstr ""
26680
26681 #. type: =head2
26682 #: ../src/guestfs-actions.pod:4057
26683 msgid "guestfs_ls"
26684 msgstr ""
26685
26686 #. type: verbatim
26687 #: ../src/guestfs-actions.pod:4059
26688 #, no-wrap
26689 msgid ""
26690 " char **\n"
26691 " guestfs_ls (guestfs_h *g,\n"
26692 "             const char *directory);\n"
26693 "\n"
26694 msgstr ""
26695
26696 #. type: textblock
26697 #: ../src/guestfs-actions.pod:4067
26698 msgid ""
26699 "This command is mostly useful for interactive sessions.  Programs should "
26700 "probably use C<guestfs_readdir> instead."
26701 msgstr ""
26702
26703 #. type: =head2
26704 #: ../src/guestfs-actions.pod:4076
26705 msgid "guestfs_lsetxattr"
26706 msgstr ""
26707
26708 #. type: verbatim
26709 #: ../src/guestfs-actions.pod:4078
26710 #, no-wrap
26711 msgid ""
26712 " int\n"
26713 " guestfs_lsetxattr (guestfs_h *g,\n"
26714 "                    const char *xattr,\n"
26715 "                    const char *val,\n"
26716 "                    int vallen,\n"
26717 "                    const char *path);\n"
26718 "\n"
26719 msgstr ""
26720
26721 #. type: textblock
26722 #: ../src/guestfs-actions.pod:4085
26723 msgid ""
26724 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
26725 "then it sets an extended attribute of the link itself."
26726 msgstr ""
26727
26728 #. type: =head2
26729 #: ../src/guestfs-actions.pod:4093
26730 msgid "guestfs_lstat"
26731 msgstr ""
26732
26733 #. type: verbatim
26734 #: ../src/guestfs-actions.pod:4095
26735 #, no-wrap
26736 msgid ""
26737 " struct guestfs_stat *\n"
26738 " guestfs_lstat (guestfs_h *g,\n"
26739 "                const char *path);\n"
26740 "\n"
26741 msgstr ""
26742
26743 #. type: textblock
26744 #: ../src/guestfs-actions.pod:4101
26745 msgid ""
26746 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
26747 "link, then the link is stat-ed, not the file it refers to."
26748 msgstr ""
26749
26750 #. type: textblock
26751 #: ../src/guestfs-actions.pod:4107 ../src/guestfs-actions.pod:6896
26752 msgid ""
26753 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
26754 "error.  I<The caller must call C<guestfs_free_stat> after use>."
26755 msgstr ""
26756
26757 #. type: textblock
26758 #: ../src/guestfs-actions.pod:4111 ../src/guestfs-actions.pod:6900
26759 #: ../src/guestfs-actions.pod:6918 ../src/guestfs-actions.pod:7299
26760 msgid "(Added in 0.9.2)"
26761 msgstr ""
26762
26763 #. type: =head2
26764 #: ../src/guestfs-actions.pod:4113
26765 msgid "guestfs_lstatlist"
26766 msgstr ""
26767
26768 #. type: verbatim
26769 #: ../src/guestfs-actions.pod:4115
26770 #, no-wrap
26771 msgid ""
26772 " struct guestfs_stat_list *\n"
26773 " guestfs_lstatlist (guestfs_h *g,\n"
26774 "                    const char *path,\n"
26775 "                    char *const *names);\n"
26776 "\n"
26777 msgstr ""
26778
26779 #. type: textblock
26780 #: ../src/guestfs-actions.pod:4120
26781 msgid ""
26782 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
26783 "files, where all files are in the directory C<path>.  C<names> is the list "
26784 "of files from this directory."
26785 msgstr ""
26786
26787 #. type: textblock
26788 #: ../src/guestfs-actions.pod:4129
26789 msgid ""
26790 "This call is intended for programs that want to efficiently list a directory "
26791 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
26792 "for a similarly efficient call for getting extended attributes.  Very long "
26793 "directory listings might cause the protocol message size to be exceeded, "
26794 "causing this call to fail.  The caller must split up such requests into "
26795 "smaller groups of names."
26796 msgstr ""
26797
26798 #. type: textblock
26799 #: ../src/guestfs-actions.pod:4137
26800 msgid ""
26801 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
26802 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
26803 msgstr ""
26804
26805 #. type: =head2
26806 #: ../src/guestfs-actions.pod:4143
26807 msgid "guestfs_luks_add_key"
26808 msgstr ""
26809
26810 #. type: verbatim
26811 #: ../src/guestfs-actions.pod:4145
26812 #, no-wrap
26813 msgid ""
26814 " int\n"
26815 " guestfs_luks_add_key (guestfs_h *g,\n"
26816 "                       const char *device,\n"
26817 "                       const char *key,\n"
26818 "                       const char *newkey,\n"
26819 "                       int keyslot);\n"
26820 "\n"
26821 msgstr ""
26822
26823 #. type: textblock
26824 #: ../src/guestfs-actions.pod:4157
26825 msgid ""
26826 "Note that if C<keyslot> already contains a key, then this command will "
26827 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
26828 msgstr ""
26829
26830 #. type: textblock
26831 #: ../src/guestfs-actions.pod:4163 ../src/guestfs-actions.pod:4203
26832 #: ../src/guestfs-actions.pod:4226 ../src/guestfs-actions.pod:4246
26833 #: ../src/guestfs-actions.pod:4281 ../src/guestfs-actions.pod:4300
26834 msgid ""
26835 "This function takes a key or passphrase parameter which could contain "
26836 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
26837 "information."
26838 msgstr ""
26839
26840 #. type: textblock
26841 #: ../src/guestfs-actions.pod:4167 ../src/guestfs-actions.pod:4207
26842 #: ../src/guestfs-actions.pod:4230 ../src/guestfs-actions.pod:4250
26843 msgid "(Added in 1.5.2)"
26844 msgstr ""
26845
26846 #. type: =head2
26847 #: ../src/guestfs-actions.pod:4169
26848 msgid "guestfs_luks_close"
26849 msgstr ""
26850
26851 #. type: verbatim
26852 #: ../src/guestfs-actions.pod:4171
26853 #, no-wrap
26854 msgid ""
26855 " int\n"
26856 " guestfs_luks_close (guestfs_h *g,\n"
26857 "                     const char *device);\n"
26858 "\n"
26859 msgstr ""
26860
26861 #. type: textblock
26862 #: ../src/guestfs-actions.pod:4175
26863 msgid ""
26864 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
26865 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
26866 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
26867 "underlying block device."
26868 msgstr ""
26869
26870 #. type: textblock
26871 #: ../src/guestfs-actions.pod:4183 ../src/guestfs-actions.pod:4285
26872 #: ../src/guestfs-actions.pod:4304 ../src/guestfs-actions.pod:4354
26873 #: ../src/guestfs-actions.pod:4402
26874 msgid "(Added in 1.5.1)"
26875 msgstr ""
26876
26877 #. type: =head2
26878 #: ../src/guestfs-actions.pod:4185
26879 msgid "guestfs_luks_format"
26880 msgstr ""
26881
26882 #. type: verbatim
26883 #: ../src/guestfs-actions.pod:4187
26884 #, no-wrap
26885 msgid ""
26886 " int\n"
26887 " guestfs_luks_format (guestfs_h *g,\n"
26888 "                      const char *device,\n"
26889 "                      const char *key,\n"
26890 "                      int keyslot);\n"
26891 "\n"
26892 msgstr ""
26893
26894 #. type: =head2
26895 #: ../src/guestfs-actions.pod:4209
26896 msgid "guestfs_luks_format_cipher"
26897 msgstr ""
26898
26899 #. type: verbatim
26900 #: ../src/guestfs-actions.pod:4211
26901 #, no-wrap
26902 msgid ""
26903 " int\n"
26904 " guestfs_luks_format_cipher (guestfs_h *g,\n"
26905 "                             const char *device,\n"
26906 "                             const char *key,\n"
26907 "                             int keyslot,\n"
26908 "                             const char *cipher);\n"
26909 "\n"
26910 msgstr ""
26911
26912 #. type: textblock
26913 #: ../src/guestfs-actions.pod:4218
26914 msgid ""
26915 "This command is the same as C<guestfs_luks_format> but it also allows you to "
26916 "set the C<cipher> used."
26917 msgstr ""
26918
26919 #. type: =head2
26920 #: ../src/guestfs-actions.pod:4232
26921 msgid "guestfs_luks_kill_slot"
26922 msgstr ""
26923
26924 #. type: verbatim
26925 #: ../src/guestfs-actions.pod:4234
26926 #, no-wrap
26927 msgid ""
26928 " int\n"
26929 " guestfs_luks_kill_slot (guestfs_h *g,\n"
26930 "                         const char *device,\n"
26931 "                         const char *key,\n"
26932 "                         int keyslot);\n"
26933 "\n"
26934 msgstr ""
26935
26936 #. type: =head2
26937 #: ../src/guestfs-actions.pod:4252
26938 msgid "guestfs_luks_open"
26939 msgstr ""
26940
26941 #. type: verbatim
26942 #: ../src/guestfs-actions.pod:4254
26943 #, no-wrap
26944 msgid ""
26945 " int\n"
26946 " guestfs_luks_open (guestfs_h *g,\n"
26947 "                    const char *device,\n"
26948 "                    const char *key,\n"
26949 "                    const char *mapname);\n"
26950 "\n"
26951 msgstr ""
26952
26953 #. type: textblock
26954 #: ../src/guestfs-actions.pod:4272
26955 msgid ""
26956 "If this block device contains LVM volume groups, then calling "
26957 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
26958 "visible."
26959 msgstr ""
26960
26961 #. type: textblock
26962 #: ../src/guestfs-actions.pod:4276
26963 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
26964 msgstr ""
26965
26966 #. type: =head2
26967 #: ../src/guestfs-actions.pod:4287
26968 msgid "guestfs_luks_open_ro"
26969 msgstr ""
26970
26971 #. type: verbatim
26972 #: ../src/guestfs-actions.pod:4289
26973 #, no-wrap
26974 msgid ""
26975 " int\n"
26976 " guestfs_luks_open_ro (guestfs_h *g,\n"
26977 "                       const char *device,\n"
26978 "                       const char *key,\n"
26979 "                       const char *mapname);\n"
26980 "\n"
26981 msgstr ""
26982
26983 #. type: textblock
26984 #: ../src/guestfs-actions.pod:4295
26985 msgid ""
26986 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
26987 "created."
26988 msgstr ""
26989
26990 #. type: =head2
26991 #: ../src/guestfs-actions.pod:4306
26992 msgid "guestfs_lvcreate"
26993 msgstr ""
26994
26995 #. type: verbatim
26996 #: ../src/guestfs-actions.pod:4308
26997 #, no-wrap
26998 msgid ""
26999 " int\n"
27000 " guestfs_lvcreate (guestfs_h *g,\n"
27001 "                   const char *logvol,\n"
27002 "                   const char *volgroup,\n"
27003 "                   int mbytes);\n"
27004 "\n"
27005 msgstr ""
27006
27007 #. type: =head2
27008 #: ../src/guestfs-actions.pod:4321
27009 msgid "guestfs_lvm_canonical_lv_name"
27010 msgstr ""
27011
27012 #. type: verbatim
27013 #: ../src/guestfs-actions.pod:4323
27014 #, no-wrap
27015 msgid ""
27016 " char *\n"
27017 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
27018 "                                const char *lvname);\n"
27019 "\n"
27020 msgstr ""
27021
27022 #. type: textblock
27023 #: ../src/guestfs-actions.pod:4334
27024 msgid "See also C<guestfs_is_lv>."
27025 msgstr ""
27026
27027 #. type: textblock
27028 #: ../src/guestfs-actions.pod:4339
27029 msgid "(Added in 1.5.24)"
27030 msgstr ""
27031
27032 #. type: =head2
27033 #: ../src/guestfs-actions.pod:4341
27034 msgid "guestfs_lvm_clear_filter"
27035 msgstr ""
27036
27037 #. type: verbatim
27038 #: ../src/guestfs-actions.pod:4343
27039 #, no-wrap
27040 msgid ""
27041 " int\n"
27042 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
27043 "\n"
27044 msgstr ""
27045
27046 #. type: textblock
27047 #: ../src/guestfs-actions.pod:4346
27048 msgid ""
27049 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
27050 "see every block device."
27051 msgstr ""
27052
27053 #. type: =head2
27054 #: ../src/guestfs-actions.pod:4356
27055 msgid "guestfs_lvm_remove_all"
27056 msgstr ""
27057
27058 #. type: verbatim
27059 #: ../src/guestfs-actions.pod:4358
27060 #, no-wrap
27061 msgid ""
27062 " int\n"
27063 " guestfs_lvm_remove_all (guestfs_h *g);\n"
27064 "\n"
27065 msgstr ""
27066
27067 #. type: =head2
27068 #: ../src/guestfs-actions.pod:4371
27069 msgid "guestfs_lvm_set_filter"
27070 msgstr ""
27071
27072 #. type: verbatim
27073 #: ../src/guestfs-actions.pod:4373
27074 #, no-wrap
27075 msgid ""
27076 " int\n"
27077 " guestfs_lvm_set_filter (guestfs_h *g,\n"
27078 "                         char *const *devices);\n"
27079 "\n"
27080 msgstr ""
27081
27082 #. type: =head2
27083 #: ../src/guestfs-actions.pod:4404
27084 msgid "guestfs_lvremove"
27085 msgstr ""
27086
27087 #. type: verbatim
27088 #: ../src/guestfs-actions.pod:4406
27089 #, no-wrap
27090 msgid ""
27091 " int\n"
27092 " guestfs_lvremove (guestfs_h *g,\n"
27093 "                   const char *device);\n"
27094 "\n"
27095 msgstr ""
27096
27097 #. type: textblock
27098 #: ../src/guestfs-actions.pod:4418 ../src/guestfs-actions.pod:5821
27099 #: ../src/guestfs-actions.pod:7669
27100 msgid "(Added in 1.0.13)"
27101 msgstr ""
27102
27103 #. type: =head2
27104 #: ../src/guestfs-actions.pod:4420
27105 msgid "guestfs_lvrename"
27106 msgstr ""
27107
27108 #. type: verbatim
27109 #: ../src/guestfs-actions.pod:4422
27110 #, no-wrap
27111 msgid ""
27112 " int\n"
27113 " guestfs_lvrename (guestfs_h *g,\n"
27114 "                   const char *logvol,\n"
27115 "                   const char *newlogvol);\n"
27116 "\n"
27117 msgstr ""
27118
27119 #. type: textblock
27120 #: ../src/guestfs-actions.pod:4431 ../src/guestfs-actions.pod:7682
27121 msgid "(Added in 1.0.83)"
27122 msgstr ""
27123
27124 #. type: =head2
27125 #: ../src/guestfs-actions.pod:4433
27126 msgid "guestfs_lvresize"
27127 msgstr ""
27128
27129 #. type: verbatim
27130 #: ../src/guestfs-actions.pod:4435
27131 #, no-wrap
27132 msgid ""
27133 " int\n"
27134 " guestfs_lvresize (guestfs_h *g,\n"
27135 "                   const char *device,\n"
27136 "                   int mbytes);\n"
27137 "\n"
27138 msgstr ""
27139
27140 #. type: =head2
27141 #: ../src/guestfs-actions.pod:4448
27142 msgid "guestfs_lvresize_free"
27143 msgstr ""
27144
27145 #. type: verbatim
27146 #: ../src/guestfs-actions.pod:4450
27147 #, no-wrap
27148 msgid ""
27149 " int\n"
27150 " guestfs_lvresize_free (guestfs_h *g,\n"
27151 "                        const char *lv,\n"
27152 "                        int percent);\n"
27153 "\n"
27154 msgstr ""
27155
27156 #. type: textblock
27157 #: ../src/guestfs-actions.pod:4463
27158 msgid "(Added in 1.3.3)"
27159 msgstr ""
27160
27161 #. type: =head2
27162 #: ../src/guestfs-actions.pod:4465
27163 msgid "guestfs_lvs"
27164 msgstr ""
27165
27166 #. type: verbatim
27167 #: ../src/guestfs-actions.pod:4467
27168 #, no-wrap
27169 msgid ""
27170 " char **\n"
27171 " guestfs_lvs (guestfs_h *g);\n"
27172 "\n"
27173 msgstr ""
27174
27175 #. type: textblock
27176 #: ../src/guestfs-actions.pod:4476
27177 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
27178 msgstr ""
27179
27180 #. type: =head2
27181 #: ../src/guestfs-actions.pod:4484
27182 msgid "guestfs_lvs_full"
27183 msgstr ""
27184
27185 #. type: verbatim
27186 #: ../src/guestfs-actions.pod:4486
27187 #, no-wrap
27188 msgid ""
27189 " struct guestfs_lvm_lv_list *\n"
27190 " guestfs_lvs_full (guestfs_h *g);\n"
27191 "\n"
27192 msgstr ""
27193
27194 #. type: textblock
27195 #: ../src/guestfs-actions.pod:4492
27196 msgid ""
27197 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
27198 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
27199 msgstr ""
27200
27201 #. type: =head2
27202 #: ../src/guestfs-actions.pod:4498
27203 msgid "guestfs_lvuuid"
27204 msgstr ""
27205
27206 #. type: verbatim
27207 #: ../src/guestfs-actions.pod:4500
27208 #, no-wrap
27209 msgid ""
27210 " char *\n"
27211 " guestfs_lvuuid (guestfs_h *g,\n"
27212 "                 const char *device);\n"
27213 "\n"
27214 msgstr ""
27215
27216 #. type: =head2
27217 #: ../src/guestfs-actions.pod:4511
27218 msgid "guestfs_lxattrlist"
27219 msgstr ""
27220
27221 #. type: verbatim
27222 #: ../src/guestfs-actions.pod:4513
27223 #, no-wrap
27224 msgid ""
27225 " struct guestfs_xattr_list *\n"
27226 " guestfs_lxattrlist (guestfs_h *g,\n"
27227 "                     const char *path,\n"
27228 "                     char *const *names);\n"
27229 "\n"
27230 msgstr ""
27231
27232 #. type: textblock
27233 #: ../src/guestfs-actions.pod:4532
27234 msgid ""
27235 "This call is intended for programs that want to efficiently list a directory "
27236 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
27237 "a similarly efficient call for getting standard stats.  Very long directory "
27238 "listings might cause the protocol message size to be exceeded, causing this "
27239 "call to fail.  The caller must split up such requests into smaller groups of "
27240 "names."
27241 msgstr ""
27242
27243 #. type: =head2
27244 #: ../src/guestfs-actions.pod:4546
27245 msgid "guestfs_mkdir"
27246 msgstr ""
27247
27248 #. type: verbatim
27249 #: ../src/guestfs-actions.pod:4548
27250 #, no-wrap
27251 msgid ""
27252 " int\n"
27253 " guestfs_mkdir (guestfs_h *g,\n"
27254 "                const char *path);\n"
27255 "\n"
27256 msgstr ""
27257
27258 #. type: =head2
27259 #: ../src/guestfs-actions.pod:4558
27260 msgid "guestfs_mkdir_mode"
27261 msgstr ""
27262
27263 #. type: verbatim
27264 #: ../src/guestfs-actions.pod:4560
27265 #, no-wrap
27266 msgid ""
27267 " int\n"
27268 " guestfs_mkdir_mode (guestfs_h *g,\n"
27269 "                     const char *path,\n"
27270 "                     int mode);\n"
27271 "\n"
27272 msgstr ""
27273
27274 #. type: textblock
27275 #: ../src/guestfs-actions.pod:4572
27276 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
27277 msgstr ""
27278
27279 #. type: =head2
27280 #: ../src/guestfs-actions.pod:4578
27281 msgid "guestfs_mkdir_p"
27282 msgstr ""
27283
27284 #. type: verbatim
27285 #: ../src/guestfs-actions.pod:4580
27286 #, no-wrap
27287 msgid ""
27288 " int\n"
27289 " guestfs_mkdir_p (guestfs_h *g,\n"
27290 "                  const char *path);\n"
27291 "\n"
27292 msgstr ""
27293
27294 #. type: =head2
27295 #: ../src/guestfs-actions.pod:4591
27296 msgid "guestfs_mkdtemp"
27297 msgstr ""
27298
27299 #. type: verbatim
27300 #: ../src/guestfs-actions.pod:4593
27301 #, no-wrap
27302 msgid ""
27303 " char *\n"
27304 " guestfs_mkdtemp (guestfs_h *g,\n"
27305 "                  const char *template);\n"
27306 "\n"
27307 msgstr ""
27308
27309 #. type: =head2
27310 #: ../src/guestfs-actions.pod:4621
27311 msgid "guestfs_mke2fs_J"
27312 msgstr ""
27313
27314 #. type: verbatim
27315 #: ../src/guestfs-actions.pod:4623
27316 #, no-wrap
27317 msgid ""
27318 " int\n"
27319 " guestfs_mke2fs_J (guestfs_h *g,\n"
27320 "                   const char *fstype,\n"
27321 "                   int blocksize,\n"
27322 "                   const char *device,\n"
27323 "                   const char *journal);\n"
27324 "\n"
27325 msgstr ""
27326
27327 #. type: textblock
27328 #: ../src/guestfs-actions.pod:4636
27329 msgid "See also C<guestfs_mke2journal>."
27330 msgstr ""
27331
27332 #. type: textblock
27333 #: ../src/guestfs-actions.pod:4640 ../src/guestfs-actions.pod:4658
27334 #: ../src/guestfs-actions.pod:4676 ../src/guestfs-actions.pod:4692
27335 #: ../src/guestfs-actions.pod:4706 ../src/guestfs-actions.pod:4720
27336 #: ../src/guestfs-actions.pod:4779 ../src/guestfs-actions.pod:5056
27337 msgid "(Added in 1.0.68)"
27338 msgstr ""
27339
27340 #. type: =head2
27341 #: ../src/guestfs-actions.pod:4642
27342 msgid "guestfs_mke2fs_JL"
27343 msgstr ""
27344
27345 #. type: verbatim
27346 #: ../src/guestfs-actions.pod:4644
27347 #, no-wrap
27348 msgid ""
27349 " int\n"
27350 " guestfs_mke2fs_JL (guestfs_h *g,\n"
27351 "                    const char *fstype,\n"
27352 "                    int blocksize,\n"
27353 "                    const char *device,\n"
27354 "                    const char *label);\n"
27355 "\n"
27356 msgstr ""
27357
27358 #. type: textblock
27359 #: ../src/guestfs-actions.pod:4654
27360 msgid "See also C<guestfs_mke2journal_L>."
27361 msgstr ""
27362
27363 #. type: =head2
27364 #: ../src/guestfs-actions.pod:4660
27365 msgid "guestfs_mke2fs_JU"
27366 msgstr ""
27367
27368 #. type: verbatim
27369 #: ../src/guestfs-actions.pod:4662
27370 #, no-wrap
27371 msgid ""
27372 " int\n"
27373 " guestfs_mke2fs_JU (guestfs_h *g,\n"
27374 "                    const char *fstype,\n"
27375 "                    int blocksize,\n"
27376 "                    const char *device,\n"
27377 "                    const char *uuid);\n"
27378 "\n"
27379 msgstr ""
27380
27381 #. type: textblock
27382 #: ../src/guestfs-actions.pod:4672
27383 msgid "See also C<guestfs_mke2journal_U>."
27384 msgstr ""
27385
27386 #. type: =head2
27387 #: ../src/guestfs-actions.pod:4678
27388 msgid "guestfs_mke2journal"
27389 msgstr ""
27390
27391 #. type: verbatim
27392 #: ../src/guestfs-actions.pod:4680
27393 #, no-wrap
27394 msgid ""
27395 " int\n"
27396 " guestfs_mke2journal (guestfs_h *g,\n"
27397 "                      int blocksize,\n"
27398 "                      const char *device);\n"
27399 "\n"
27400 msgstr ""
27401
27402 #. type: =head2
27403 #: ../src/guestfs-actions.pod:4694
27404 msgid "guestfs_mke2journal_L"
27405 msgstr ""
27406
27407 #. type: verbatim
27408 #: ../src/guestfs-actions.pod:4696
27409 #, no-wrap
27410 msgid ""
27411 " int\n"
27412 " guestfs_mke2journal_L (guestfs_h *g,\n"
27413 "                        int blocksize,\n"
27414 "                        const char *label,\n"
27415 "                        const char *device);\n"
27416 "\n"
27417 msgstr ""
27418
27419 #. type: =head2
27420 #: ../src/guestfs-actions.pod:4708
27421 msgid "guestfs_mke2journal_U"
27422 msgstr ""
27423
27424 #. type: verbatim
27425 #: ../src/guestfs-actions.pod:4710
27426 #, no-wrap
27427 msgid ""
27428 " int\n"
27429 " guestfs_mke2journal_U (guestfs_h *g,\n"
27430 "                        int blocksize,\n"
27431 "                        const char *uuid,\n"
27432 "                        const char *device);\n"
27433 "\n"
27434 msgstr ""
27435
27436 #. type: =head2
27437 #: ../src/guestfs-actions.pod:4722
27438 msgid "guestfs_mkfifo"
27439 msgstr ""
27440
27441 #. type: verbatim
27442 #: ../src/guestfs-actions.pod:4724
27443 #, no-wrap
27444 msgid ""
27445 " int\n"
27446 " guestfs_mkfifo (guestfs_h *g,\n"
27447 "                 int mode,\n"
27448 "                 const char *path);\n"
27449 "\n"
27450 msgstr ""
27451
27452 #. type: textblock
27453 #: ../src/guestfs-actions.pod:4729
27454 msgid ""
27455 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
27456 "is just a convenient wrapper around C<guestfs_mknod>."
27457 msgstr ""
27458
27459 #. type: =head2
27460 #: ../src/guestfs-actions.pod:4739
27461 msgid "guestfs_mkfs"
27462 msgstr ""
27463
27464 #. type: verbatim
27465 #: ../src/guestfs-actions.pod:4741
27466 #, no-wrap
27467 msgid ""
27468 " int\n"
27469 " guestfs_mkfs (guestfs_h *g,\n"
27470 "               const char *fstype,\n"
27471 "               const char *device);\n"
27472 "\n"
27473 msgstr ""
27474
27475 #. type: =head2
27476 #: ../src/guestfs-actions.pod:4754
27477 msgid "guestfs_mkfs_b"
27478 msgstr ""
27479
27480 #. type: verbatim
27481 #: ../src/guestfs-actions.pod:4756
27482 #, no-wrap
27483 msgid ""
27484 " int\n"
27485 " guestfs_mkfs_b (guestfs_h *g,\n"
27486 "                 const char *fstype,\n"
27487 "                 int blocksize,\n"
27488 "                 const char *device);\n"
27489 "\n"
27490 msgstr ""
27491
27492 #. type: textblock
27493 #: ../src/guestfs-actions.pod:4762
27494 msgid ""
27495 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
27496 "call instead."
27497 msgstr ""
27498
27499 #. type: textblock
27500 #: ../src/guestfs-actions.pod:4769
27501 msgid ""
27502 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
27503 "block size of the resulting filesystem.  Supported block sizes depend on the "
27504 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
27505 msgstr ""
27506
27507 #. type: =head2
27508 #: ../src/guestfs-actions.pod:4781
27509 msgid "guestfs_mkfs_opts"
27510 msgstr ""
27511
27512 #. type: verbatim
27513 #: ../src/guestfs-actions.pod:4783
27514 #, no-wrap
27515 msgid ""
27516 " int\n"
27517 " guestfs_mkfs_opts (guestfs_h *g,\n"
27518 "                    const char *fstype,\n"
27519 "                    const char *device,\n"
27520 "                    ...);\n"
27521 "\n"
27522 msgstr ""
27523
27524 #. type: verbatim
27525 #: ../src/guestfs-actions.pod:4794
27526 #, no-wrap
27527 msgid ""
27528 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
27529 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
27530 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
27531 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
27532 "\n"
27533 msgstr ""
27534
27535 #. type: textblock
27536 #: ../src/guestfs-actions.pod:4842
27537 msgid "(Added in 1.7.19)"
27538 msgstr ""
27539
27540 #. type: =head2
27541 #: ../src/guestfs-actions.pod:4844
27542 msgid "guestfs_mkfs_opts_va"
27543 msgstr ""
27544
27545 #. type: verbatim
27546 #: ../src/guestfs-actions.pod:4846
27547 #, no-wrap
27548 msgid ""
27549 " int\n"
27550 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
27551 "                       const char *fstype,\n"
27552 "                       const char *device,\n"
27553 "                       va_list args);\n"
27554 "\n"
27555 msgstr ""
27556
27557 #. type: textblock
27558 #: ../src/guestfs-actions.pod:4852
27559 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
27560 msgstr ""
27561
27562 #. type: =head2
27563 #: ../src/guestfs-actions.pod:4856
27564 msgid "guestfs_mkfs_opts_argv"
27565 msgstr ""
27566
27567 #. type: verbatim
27568 #: ../src/guestfs-actions.pod:4858
27569 #, no-wrap
27570 msgid ""
27571 " int\n"
27572 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27573 "                         const char *fstype,\n"
27574 "                         const char *device,\n"
27575 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
27576 "\n"
27577 msgstr ""
27578
27579 #. type: textblock
27580 #: ../src/guestfs-actions.pod:4864
27581 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
27582 msgstr ""
27583
27584 #. type: =head2
27585 #: ../src/guestfs-actions.pod:4868
27586 msgid "guestfs_mkmountpoint"
27587 msgstr ""
27588
27589 #. type: verbatim
27590 #: ../src/guestfs-actions.pod:4870
27591 #, no-wrap
27592 msgid ""
27593 " int\n"
27594 " guestfs_mkmountpoint (guestfs_h *g,\n"
27595 "                       const char *exemptpath);\n"
27596 "\n"
27597 msgstr ""
27598
27599 #. type: textblock
27600 #: ../src/guestfs-actions.pod:4874
27601 msgid ""
27602 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
27603 "that can be used to create extra mountpoints before mounting the first "
27604 "filesystem."
27605 msgstr ""
27606
27607 #. type: textblock
27608 #: ../src/guestfs-actions.pod:4898
27609 msgid ""
27610 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
27611 "may get unexpected errors if you try to mix these calls.  It is safest to "
27612 "manually unmount filesystems and remove mountpoints after use."
27613 msgstr ""
27614
27615 #. type: textblock
27616 #: ../src/guestfs-actions.pod:4902
27617 msgid ""
27618 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
27619 "first, so for this to work for manual mountpoints, you must ensure that the "
27620 "innermost mountpoints have the longest pathnames, as in the example code "
27621 "above."
27622 msgstr ""
27623
27624 #. type: textblock
27625 #: ../src/guestfs-actions.pod:4909
27626 msgid ""
27627 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
27628 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
27629 "can also trigger these issues."
27630 msgstr ""
27631
27632 #. type: textblock
27633 #: ../src/guestfs-actions.pod:4915 ../src/guestfs-actions.pod:5231
27634 #: ../src/guestfs-actions.pod:6241
27635 msgid "(Added in 1.0.62)"
27636 msgstr ""
27637
27638 #. type: =head2
27639 #: ../src/guestfs-actions.pod:4917
27640 msgid "guestfs_mknod"
27641 msgstr ""
27642
27643 #. type: verbatim
27644 #: ../src/guestfs-actions.pod:4919
27645 #, no-wrap
27646 msgid ""
27647 " int\n"
27648 " guestfs_mknod (guestfs_h *g,\n"
27649 "                int mode,\n"
27650 "                int devmajor,\n"
27651 "                int devminor,\n"
27652 "                const char *path);\n"
27653 "\n"
27654 msgstr ""
27655
27656 #. type: textblock
27657 #: ../src/guestfs-actions.pod:4934
27658 msgid ""
27659 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
27660 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
27661 "regular file).  These constants are available in the standard Linux header "
27662 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
27663 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
27664 "the appropriate constant for you."
27665 msgstr ""
27666
27667 #. type: =head2
27668 #: ../src/guestfs-actions.pod:4948
27669 msgid "guestfs_mknod_b"
27670 msgstr ""
27671
27672 #. type: verbatim
27673 #: ../src/guestfs-actions.pod:4950
27674 #, no-wrap
27675 msgid ""
27676 " int\n"
27677 " guestfs_mknod_b (guestfs_h *g,\n"
27678 "                  int mode,\n"
27679 "                  int devmajor,\n"
27680 "                  int devminor,\n"
27681 "                  const char *path);\n"
27682 "\n"
27683 msgstr ""
27684
27685 #. type: textblock
27686 #: ../src/guestfs-actions.pod:4957
27687 msgid ""
27688 "This call creates a block device node called C<path> with mode C<mode> and "
27689 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
27690 "wrapper around C<guestfs_mknod>."
27691 msgstr ""
27692
27693 #. type: =head2
27694 #: ../src/guestfs-actions.pod:4967
27695 msgid "guestfs_mknod_c"
27696 msgstr ""
27697
27698 #. type: verbatim
27699 #: ../src/guestfs-actions.pod:4969
27700 #, no-wrap
27701 msgid ""
27702 " int\n"
27703 " guestfs_mknod_c (guestfs_h *g,\n"
27704 "                  int mode,\n"
27705 "                  int devmajor,\n"
27706 "                  int devminor,\n"
27707 "                  const char *path);\n"
27708 "\n"
27709 msgstr ""
27710
27711 #. type: textblock
27712 #: ../src/guestfs-actions.pod:4976
27713 msgid ""
27714 "This call creates a char device node called C<path> with mode C<mode> and "
27715 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
27716 "wrapper around C<guestfs_mknod>."
27717 msgstr ""
27718
27719 #. type: =head2
27720 #: ../src/guestfs-actions.pod:4986
27721 msgid "guestfs_mkswap"
27722 msgstr ""
27723
27724 #. type: verbatim
27725 #: ../src/guestfs-actions.pod:4988
27726 #, no-wrap
27727 msgid ""
27728 " int\n"
27729 " guestfs_mkswap (guestfs_h *g,\n"
27730 "                 const char *device);\n"
27731 "\n"
27732 msgstr ""
27733
27734 #. type: =head2
27735 #: ../src/guestfs-actions.pod:4998
27736 msgid "guestfs_mkswap_L"
27737 msgstr ""
27738
27739 #. type: verbatim
27740 #: ../src/guestfs-actions.pod:5000
27741 #, no-wrap
27742 msgid ""
27743 " int\n"
27744 " guestfs_mkswap_L (guestfs_h *g,\n"
27745 "                   const char *label,\n"
27746 "                   const char *device);\n"
27747 "\n"
27748 msgstr ""
27749
27750 #. type: =head2
27751 #: ../src/guestfs-actions.pod:5015
27752 msgid "guestfs_mkswap_U"
27753 msgstr ""
27754
27755 #. type: verbatim
27756 #: ../src/guestfs-actions.pod:5017
27757 #, no-wrap
27758 msgid ""
27759 " int\n"
27760 " guestfs_mkswap_U (guestfs_h *g,\n"
27761 "                   const char *uuid,\n"
27762 "                   const char *device);\n"
27763 "\n"
27764 msgstr ""
27765
27766 #. type: =head2
27767 #: ../src/guestfs-actions.pod:5028
27768 msgid "guestfs_mkswap_file"
27769 msgstr ""
27770
27771 #. type: verbatim
27772 #: ../src/guestfs-actions.pod:5030
27773 #, no-wrap
27774 msgid ""
27775 " int\n"
27776 " guestfs_mkswap_file (guestfs_h *g,\n"
27777 "                      const char *path);\n"
27778 "\n"
27779 msgstr ""
27780
27781 #. type: textblock
27782 #: ../src/guestfs-actions.pod:5036
27783 msgid ""
27784 "This command just writes a swap file signature to an existing file.  To "
27785 "create the file itself, use something like C<guestfs_fallocate>."
27786 msgstr ""
27787
27788 #. type: =head2
27789 #: ../src/guestfs-actions.pod:5043
27790 msgid "guestfs_modprobe"
27791 msgstr ""
27792
27793 #. type: verbatim
27794 #: ../src/guestfs-actions.pod:5045
27795 #, no-wrap
27796 msgid ""
27797 " int\n"
27798 " guestfs_modprobe (guestfs_h *g,\n"
27799 "                   const char *modulename);\n"
27800 "\n"
27801 msgstr ""
27802
27803 #. type: =head2
27804 #: ../src/guestfs-actions.pod:5058
27805 msgid "guestfs_mount"
27806 msgstr ""
27807
27808 #. type: verbatim
27809 #: ../src/guestfs-actions.pod:5060
27810 #, no-wrap
27811 msgid ""
27812 " int\n"
27813 " guestfs_mount (guestfs_h *g,\n"
27814 "                const char *device,\n"
27815 "                const char *mountpoint);\n"
27816 "\n"
27817 msgstr ""
27818
27819 #. type: textblock
27820 #: ../src/guestfs-actions.pod:5065
27821 msgid ""
27822 "I<This function is deprecated.> In new code, use the L</"
27823 "guestfs_mount_options> call instead."
27824 msgstr ""
27825
27826 #. type: textblock
27827 #: ../src/guestfs-actions.pod:5086
27828 msgid ""
27829 "B<Important note:> When you use this call, the filesystem options C<sync> "
27830 "and C<noatime> are set implicitly.  This was originally done because we "
27831 "thought it would improve reliability, but it turns out that I<-o sync> has a "
27832 "very large negative performance impact and negligible effect on "
27833 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
27834 "in any code that needs performance, and instead use C<guestfs_mount_options> "
27835 "(use an empty string for the first parameter if you don't want any options)."
27836 msgstr ""
27837
27838 #. type: =head2
27839 #: ../src/guestfs-actions.pod:5100
27840 msgid "guestfs_mount_9p"
27841 msgstr ""
27842
27843 #. type: verbatim
27844 #: ../src/guestfs-actions.pod:5102
27845 #, no-wrap
27846 msgid ""
27847 " int\n"
27848 " guestfs_mount_9p (guestfs_h *g,\n"
27849 "                   const char *mounttag,\n"
27850 "                   const char *mountpoint,\n"
27851 "                   ...);\n"
27852 "\n"
27853 msgstr ""
27854
27855 #. type: verbatim
27856 #: ../src/guestfs-actions.pod:5113
27857 #, no-wrap
27858 msgid ""
27859 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
27860 "\n"
27861 msgstr ""
27862
27863 #. type: =head2
27864 #: ../src/guestfs-actions.pod:5126
27865 msgid "guestfs_mount_9p_va"
27866 msgstr ""
27867
27868 #. type: verbatim
27869 #: ../src/guestfs-actions.pod:5128
27870 #, no-wrap
27871 msgid ""
27872 " int\n"
27873 " guestfs_mount_9p_va (guestfs_h *g,\n"
27874 "                      const char *mounttag,\n"
27875 "                      const char *mountpoint,\n"
27876 "                      va_list args);\n"
27877 "\n"
27878 msgstr ""
27879
27880 #. type: textblock
27881 #: ../src/guestfs-actions.pod:5134
27882 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
27883 msgstr ""
27884
27885 #. type: =head2
27886 #: ../src/guestfs-actions.pod:5138
27887 msgid "guestfs_mount_9p_argv"
27888 msgstr ""
27889
27890 #. type: verbatim
27891 #: ../src/guestfs-actions.pod:5140
27892 #, no-wrap
27893 msgid ""
27894 " int\n"
27895 " guestfs_mount_9p_argv (guestfs_h *g,\n"
27896 "                        const char *mounttag,\n"
27897 "                        const char *mountpoint,\n"
27898 "                        const struct guestfs_mount_9p_argv *optargs);\n"
27899 "\n"
27900 msgstr ""
27901
27902 #. type: textblock
27903 #: ../src/guestfs-actions.pod:5146
27904 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
27905 msgstr ""
27906
27907 #. type: =head2
27908 #: ../src/guestfs-actions.pod:5150
27909 msgid "guestfs_mount_loop"
27910 msgstr ""
27911
27912 #. type: verbatim
27913 #: ../src/guestfs-actions.pod:5152
27914 #, no-wrap
27915 msgid ""
27916 " int\n"
27917 " guestfs_mount_loop (guestfs_h *g,\n"
27918 "                     const char *file,\n"
27919 "                     const char *mountpoint);\n"
27920 "\n"
27921 msgstr ""
27922
27923 #. type: =head2
27924 #: ../src/guestfs-actions.pod:5165
27925 msgid "guestfs_mount_options"
27926 msgstr ""
27927
27928 #. type: verbatim
27929 #: ../src/guestfs-actions.pod:5167
27930 #, no-wrap
27931 msgid ""
27932 " int\n"
27933 " guestfs_mount_options (guestfs_h *g,\n"
27934 "                        const char *options,\n"
27935 "                        const char *device,\n"
27936 "                        const char *mountpoint);\n"
27937 "\n"
27938 msgstr ""
27939
27940 #. type: textblock
27941 #: ../src/guestfs-actions.pod:5173
27942 msgid ""
27943 "This is the same as the C<guestfs_mount> command, but it allows you to set "
27944 "the mount options as for the L<mount(8)> I<-o> flag."
27945 msgstr ""
27946
27947 #. type: textblock
27948 #: ../src/guestfs-actions.pod:5183 ../src/guestfs-actions.pod:5197
27949 #: ../src/guestfs-actions.pod:5214
27950 msgid "(Added in 1.0.10)"
27951 msgstr ""
27952
27953 #. type: =head2
27954 #: ../src/guestfs-actions.pod:5185
27955 msgid "guestfs_mount_ro"
27956 msgstr ""
27957
27958 #. type: verbatim
27959 #: ../src/guestfs-actions.pod:5187
27960 #, no-wrap
27961 msgid ""
27962 " int\n"
27963 " guestfs_mount_ro (guestfs_h *g,\n"
27964 "                   const char *device,\n"
27965 "                   const char *mountpoint);\n"
27966 "\n"
27967 msgstr ""
27968
27969 #. type: textblock
27970 #: ../src/guestfs-actions.pod:5192
27971 msgid ""
27972 "This is the same as the C<guestfs_mount> command, but it mounts the "
27973 "filesystem with the read-only (I<-o ro>) flag."
27974 msgstr ""
27975
27976 #. type: =head2
27977 #: ../src/guestfs-actions.pod:5199
27978 msgid "guestfs_mount_vfs"
27979 msgstr ""
27980
27981 #. type: verbatim
27982 #: ../src/guestfs-actions.pod:5201
27983 #, no-wrap
27984 msgid ""
27985 " int\n"
27986 " guestfs_mount_vfs (guestfs_h *g,\n"
27987 "                    const char *options,\n"
27988 "                    const char *vfstype,\n"
27989 "                    const char *device,\n"
27990 "                    const char *mountpoint);\n"
27991 "\n"
27992 msgstr ""
27993
27994 #. type: textblock
27995 #: ../src/guestfs-actions.pod:5208
27996 msgid ""
27997 "This is the same as the C<guestfs_mount> command, but it allows you to set "
27998 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
27999 "t> flags."
28000 msgstr ""
28001
28002 #. type: =head2
28003 #: ../src/guestfs-actions.pod:5216
28004 msgid "guestfs_mountpoints"
28005 msgstr ""
28006
28007 #. type: verbatim
28008 #: ../src/guestfs-actions.pod:5218
28009 #, no-wrap
28010 msgid ""
28011 " char **\n"
28012 " guestfs_mountpoints (guestfs_h *g);\n"
28013 "\n"
28014 msgstr ""
28015
28016 #. type: textblock
28017 #: ../src/guestfs-actions.pod:5221
28018 msgid ""
28019 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
28020 "devices.  This one returns a hash table (map) of device name to directory "
28021 "where the device is mounted."
28022 msgstr ""
28023
28024 #. type: =head2
28025 #: ../src/guestfs-actions.pod:5233
28026 msgid "guestfs_mounts"
28027 msgstr ""
28028
28029 #. type: verbatim
28030 #: ../src/guestfs-actions.pod:5235
28031 #, no-wrap
28032 msgid ""
28033 " char **\n"
28034 " guestfs_mounts (guestfs_h *g);\n"
28035 "\n"
28036 msgstr ""
28037
28038 #. type: textblock
28039 #: ../src/guestfs-actions.pod:5243
28040 msgid "See also: C<guestfs_mountpoints>"
28041 msgstr ""
28042
28043 #. type: =head2
28044 #: ../src/guestfs-actions.pod:5251
28045 msgid "guestfs_mv"
28046 msgstr ""
28047
28048 #. type: verbatim
28049 #: ../src/guestfs-actions.pod:5253
28050 #, no-wrap
28051 msgid ""
28052 " int\n"
28053 " guestfs_mv (guestfs_h *g,\n"
28054 "             const char *src,\n"
28055 "             const char *dest);\n"
28056 "\n"
28057 msgstr ""
28058
28059 #. type: =head2
28060 #: ../src/guestfs-actions.pod:5265
28061 msgid "guestfs_ntfs_3g_probe"
28062 msgstr ""
28063
28064 #. type: verbatim
28065 #: ../src/guestfs-actions.pod:5267
28066 #, no-wrap
28067 msgid ""
28068 " int\n"
28069 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
28070 "                        int rw,\n"
28071 "                        const char *device);\n"
28072 "\n"
28073 msgstr ""
28074
28075 #. type: textblock
28076 #: ../src/guestfs-actions.pod:5286
28077 msgid "(Added in 1.0.43)"
28078 msgstr ""
28079
28080 #. type: =head2
28081 #: ../src/guestfs-actions.pod:5288
28082 msgid "guestfs_ntfsresize"
28083 msgstr ""
28084
28085 #. type: verbatim
28086 #: ../src/guestfs-actions.pod:5290
28087 #, no-wrap
28088 msgid ""
28089 " int\n"
28090 " guestfs_ntfsresize (guestfs_h *g,\n"
28091 "                     const char *device);\n"
28092 "\n"
28093 msgstr ""
28094
28095 #. type: textblock
28096 #: ../src/guestfs-actions.pod:5294 ../src/guestfs-actions.pod:5394
28097 msgid ""
28098 "I<This function is deprecated.> In new code, use the L</"
28099 "guestfs_ntfsresize_opts> call instead."
28100 msgstr ""
28101
28102 #. type: =head2
28103 #: ../src/guestfs-actions.pod:5318
28104 msgid "guestfs_ntfsresize_opts"
28105 msgstr ""
28106
28107 #. type: verbatim
28108 #: ../src/guestfs-actions.pod:5320
28109 #, no-wrap
28110 msgid ""
28111 " int\n"
28112 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
28113 "                          const char *device,\n"
28114 "                          ...);\n"
28115 "\n"
28116 msgstr ""
28117
28118 #. type: verbatim
28119 #: ../src/guestfs-actions.pod:5330
28120 #, no-wrap
28121 msgid ""
28122 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
28123 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
28124 "\n"
28125 msgstr ""
28126
28127 #. type: textblock
28128 #: ../src/guestfs-actions.pod:5350
28129 msgid ""
28130 "After the resize operation, the filesystem is always marked as requiring a "
28131 "consistency check (for safety).  You have to boot into Windows to perform "
28132 "this check and clear this condition.  If you I<don't> set the C<force> "
28133 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
28134 "times on a single filesystem without booting into Windows between each "
28135 "resize."
28136 msgstr ""
28137
28138 #. type: =head2
28139 #: ../src/guestfs-actions.pod:5365
28140 msgid "guestfs_ntfsresize_opts_va"
28141 msgstr ""
28142
28143 #. type: verbatim
28144 #: ../src/guestfs-actions.pod:5367
28145 #, no-wrap
28146 msgid ""
28147 " int\n"
28148 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
28149 "                             const char *device,\n"
28150 "                             va_list args);\n"
28151 "\n"
28152 msgstr ""
28153
28154 #. type: textblock
28155 #: ../src/guestfs-actions.pod:5372
28156 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
28157 msgstr ""
28158
28159 #. type: =head2
28160 #: ../src/guestfs-actions.pod:5376
28161 msgid "guestfs_ntfsresize_opts_argv"
28162 msgstr ""
28163
28164 #. type: verbatim
28165 #: ../src/guestfs-actions.pod:5378
28166 #, no-wrap
28167 msgid ""
28168 " int\n"
28169 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
28170 "                               const char *device,\n"
28171 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
28172 "\n"
28173 msgstr ""
28174
28175 #. type: textblock
28176 #: ../src/guestfs-actions.pod:5383
28177 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
28178 msgstr ""
28179
28180 #. type: =head2
28181 #: ../src/guestfs-actions.pod:5387
28182 msgid "guestfs_ntfsresize_size"
28183 msgstr ""
28184
28185 #. type: verbatim
28186 #: ../src/guestfs-actions.pod:5389
28187 #, no-wrap
28188 msgid ""
28189 " int\n"
28190 " guestfs_ntfsresize_size (guestfs_h *g,\n"
28191 "                          const char *device,\n"
28192 "                          int64_t size);\n"
28193 "\n"
28194 msgstr ""
28195
28196 #. type: textblock
28197 #: ../src/guestfs-actions.pod:5401
28198 msgid ""
28199 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
28200 "to specify the new size (in bytes) explicitly."
28201 msgstr ""
28202
28203 #. type: textblock
28204 #: ../src/guestfs-actions.pod:5406 ../src/guestfs-actions.pod:5848
28205 #: ../src/guestfs-actions.pod:5921 ../src/guestfs-actions.pod:6189
28206 #: ../src/guestfs-actions.pod:7826
28207 msgid "(Added in 1.3.14)"
28208 msgstr ""
28209
28210 #. type: =head2
28211 #: ../src/guestfs-actions.pod:5408
28212 msgid "guestfs_part_add"
28213 msgstr ""
28214
28215 #. type: verbatim
28216 #: ../src/guestfs-actions.pod:5410
28217 #, no-wrap
28218 msgid ""
28219 " int\n"
28220 " guestfs_part_add (guestfs_h *g,\n"
28221 "                   const char *device,\n"
28222 "                   const char *prlogex,\n"
28223 "                   int64_t startsect,\n"
28224 "                   int64_t endsect);\n"
28225 "\n"
28226 msgstr ""
28227
28228 #. type: textblock
28229 #: ../src/guestfs-actions.pod:5417
28230 msgid ""
28231 "This command adds a partition to C<device>.  If there is no partition table "
28232 "on the device, call C<guestfs_part_init> first."
28233 msgstr ""
28234
28235 #. type: textblock
28236 #: ../src/guestfs-actions.pod:5429
28237 msgid ""
28238 "Creating a partition which covers the whole disk is not so easy.  Use "
28239 "C<guestfs_part_disk> to do that."
28240 msgstr ""
28241
28242 #. type: textblock
28243 #: ../src/guestfs-actions.pod:5434 ../src/guestfs-actions.pod:5472
28244 #: ../src/guestfs-actions.pod:5525 ../src/guestfs-actions.pod:5609
28245 #: ../src/guestfs-actions.pod:5647 ../src/guestfs-actions.pod:5666
28246 #: ../src/guestfs-actions.pod:5706
28247 msgid "(Added in 1.0.78)"
28248 msgstr ""
28249
28250 #. type: =head2
28251 #: ../src/guestfs-actions.pod:5436
28252 msgid "guestfs_part_del"
28253 msgstr ""
28254
28255 #. type: verbatim
28256 #: ../src/guestfs-actions.pod:5438
28257 #, no-wrap
28258 msgid ""
28259 " int\n"
28260 " guestfs_part_del (guestfs_h *g,\n"
28261 "                   const char *device,\n"
28262 "                   int partnum);\n"
28263 "\n"
28264 msgstr ""
28265
28266 #. type: =head2
28267 #: ../src/guestfs-actions.pod:5453
28268 msgid "guestfs_part_disk"
28269 msgstr ""
28270
28271 #. type: verbatim
28272 #: ../src/guestfs-actions.pod:5455
28273 #, no-wrap
28274 msgid ""
28275 " int\n"
28276 " guestfs_part_disk (guestfs_h *g,\n"
28277 "                    const char *device,\n"
28278 "                    const char *parttype);\n"
28279 "\n"
28280 msgstr ""
28281
28282 #. type: textblock
28283 #: ../src/guestfs-actions.pod:5460
28284 msgid ""
28285 "This command is simply a combination of C<guestfs_part_init> followed by "
28286 "C<guestfs_part_add> to create a single primary partition covering the whole "
28287 "disk."
28288 msgstr ""
28289
28290 #. type: textblock
28291 #: ../src/guestfs-actions.pod:5464
28292 msgid ""
28293 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
28294 "possible values are described in C<guestfs_part_init>."
28295 msgstr ""
28296
28297 #. type: =head2
28298 #: ../src/guestfs-actions.pod:5474
28299 msgid "guestfs_part_get_bootable"
28300 msgstr ""
28301
28302 #. type: verbatim
28303 #: ../src/guestfs-actions.pod:5476
28304 #, no-wrap
28305 msgid ""
28306 " int\n"
28307 " guestfs_part_get_bootable (guestfs_h *g,\n"
28308 "                            const char *device,\n"
28309 "                            int partnum);\n"
28310 "\n"
28311 msgstr ""
28312
28313 #. type: textblock
28314 #: ../src/guestfs-actions.pod:5484
28315 msgid "See also C<guestfs_part_set_bootable>."
28316 msgstr ""
28317
28318 #. type: =head2
28319 #: ../src/guestfs-actions.pod:5490
28320 msgid "guestfs_part_get_mbr_id"
28321 msgstr ""
28322
28323 #. type: verbatim
28324 #: ../src/guestfs-actions.pod:5492
28325 #, no-wrap
28326 msgid ""
28327 " int\n"
28328 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
28329 "                          const char *device,\n"
28330 "                          int partnum);\n"
28331 "\n"
28332 msgstr ""
28333
28334 #. type: textblock
28335 #: ../src/guestfs-actions.pod:5500 ../src/guestfs-actions.pod:5682
28336 msgid ""
28337 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
28338 "undefined results for other partition table types (see "
28339 "C<guestfs_part_get_parttype>)."
28340 msgstr ""
28341
28342 #. type: =head2
28343 #: ../src/guestfs-actions.pod:5508
28344 msgid "guestfs_part_get_parttype"
28345 msgstr ""
28346
28347 #. type: verbatim
28348 #: ../src/guestfs-actions.pod:5510
28349 #, no-wrap
28350 msgid ""
28351 " char *\n"
28352 " guestfs_part_get_parttype (guestfs_h *g,\n"
28353 "                            const char *device);\n"
28354 "\n"
28355 msgstr ""
28356
28357 #. type: textblock
28358 #: ../src/guestfs-actions.pod:5517
28359 msgid ""
28360 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
28361 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
28362 "possible, although unusual.  See C<guestfs_part_init> for a full list."
28363 msgstr ""
28364
28365 #. type: =head2
28366 #: ../src/guestfs-actions.pod:5527
28367 msgid "guestfs_part_init"
28368 msgstr ""
28369
28370 #. type: verbatim
28371 #: ../src/guestfs-actions.pod:5529
28372 #, no-wrap
28373 msgid ""
28374 " int\n"
28375 " guestfs_part_init (guestfs_h *g,\n"
28376 "                    const char *device,\n"
28377 "                    const char *parttype);\n"
28378 "\n"
28379 msgstr ""
28380
28381 #. type: textblock
28382 #: ../src/guestfs-actions.pod:5538
28383 msgid ""
28384 "Initially there are no partitions.  Following this, you should call "
28385 "C<guestfs_part_add> for each partition required."
28386 msgstr ""
28387
28388 #. type: =head2
28389 #: ../src/guestfs-actions.pod:5611
28390 msgid "guestfs_part_list"
28391 msgstr ""
28392
28393 #. type: verbatim
28394 #: ../src/guestfs-actions.pod:5613
28395 #, no-wrap
28396 msgid ""
28397 " struct guestfs_partition_list *\n"
28398 " guestfs_part_list (guestfs_h *g,\n"
28399 "                    const char *device);\n"
28400 "\n"
28401 msgstr ""
28402
28403 #. type: textblock
28404 #: ../src/guestfs-actions.pod:5630
28405 msgid ""
28406 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
28407 "the device's sector size, see C<guestfs_blockdev_getss>."
28408 msgstr ""
28409
28410 #. type: textblock
28411 #: ../src/guestfs-actions.pod:5643
28412 msgid ""
28413 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
28414 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
28415 "use>."
28416 msgstr ""
28417
28418 #. type: =head2
28419 #: ../src/guestfs-actions.pod:5649
28420 msgid "guestfs_part_set_bootable"
28421 msgstr ""
28422
28423 #. type: verbatim
28424 #: ../src/guestfs-actions.pod:5651
28425 #, no-wrap
28426 msgid ""
28427 " int\n"
28428 " guestfs_part_set_bootable (guestfs_h *g,\n"
28429 "                            const char *device,\n"
28430 "                            int partnum,\n"
28431 "                            int bootable);\n"
28432 "\n"
28433 msgstr ""
28434
28435 #. type: =head2
28436 #: ../src/guestfs-actions.pod:5668
28437 msgid "guestfs_part_set_mbr_id"
28438 msgstr ""
28439
28440 #. type: verbatim
28441 #: ../src/guestfs-actions.pod:5670
28442 #, no-wrap
28443 msgid ""
28444 " int\n"
28445 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
28446 "                          const char *device,\n"
28447 "                          int partnum,\n"
28448 "                          int idbyte);\n"
28449 "\n"
28450 msgstr ""
28451
28452 #. type: =head2
28453 #: ../src/guestfs-actions.pod:5690
28454 msgid "guestfs_part_set_name"
28455 msgstr ""
28456
28457 #. type: verbatim
28458 #: ../src/guestfs-actions.pod:5692
28459 #, no-wrap
28460 msgid ""
28461 " int\n"
28462 " guestfs_part_set_name (guestfs_h *g,\n"
28463 "                        const char *device,\n"
28464 "                        int partnum,\n"
28465 "                        const char *name);\n"
28466 "\n"
28467 msgstr ""
28468
28469 #. type: =head2
28470 #: ../src/guestfs-actions.pod:5708
28471 msgid "guestfs_part_to_dev"
28472 msgstr ""
28473
28474 #. type: verbatim
28475 #: ../src/guestfs-actions.pod:5710
28476 #, no-wrap
28477 msgid ""
28478 " char *\n"
28479 " guestfs_part_to_dev (guestfs_h *g,\n"
28480 "                      const char *partition);\n"
28481 "\n"
28482 msgstr ""
28483
28484 #. type: textblock
28485 #: ../src/guestfs-actions.pod:5718
28486 msgid ""
28487 "The named partition must exist, for example as a string returned from "
28488 "C<guestfs_list_partitions>."
28489 msgstr ""
28490
28491 #. type: =head2
28492 #: ../src/guestfs-actions.pod:5726
28493 msgid "guestfs_ping_daemon"
28494 msgstr ""
28495
28496 #. type: verbatim
28497 #: ../src/guestfs-actions.pod:5728
28498 #, no-wrap
28499 msgid ""
28500 " int\n"
28501 " guestfs_ping_daemon (guestfs_h *g);\n"
28502 "\n"
28503 msgstr ""
28504
28505 #. type: =head2
28506 #: ../src/guestfs-actions.pod:5740
28507 msgid "guestfs_pread"
28508 msgstr ""
28509
28510 #. type: verbatim
28511 #: ../src/guestfs-actions.pod:5742
28512 #, no-wrap
28513 msgid ""
28514 " char *\n"
28515 " guestfs_pread (guestfs_h *g,\n"
28516 "                const char *path,\n"
28517 "                int count,\n"
28518 "                int64_t offset,\n"
28519 "                size_t *size_r);\n"
28520 "\n"
28521 msgstr ""
28522
28523 #. type: textblock
28524 #: ../src/guestfs-actions.pod:5755
28525 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
28526 msgstr ""
28527
28528 #. type: =head2
28529 #: ../src/guestfs-actions.pod:5766
28530 msgid "guestfs_pread_device"
28531 msgstr ""
28532
28533 #. type: verbatim
28534 #: ../src/guestfs-actions.pod:5768
28535 #, no-wrap
28536 msgid ""
28537 " char *\n"
28538 " guestfs_pread_device (guestfs_h *g,\n"
28539 "                       const char *device,\n"
28540 "                       int count,\n"
28541 "                       int64_t offset,\n"
28542 "                       size_t *size_r);\n"
28543 "\n"
28544 msgstr ""
28545
28546 #. type: textblock
28547 #: ../src/guestfs-actions.pod:5781
28548 msgid "See also C<guestfs_pread>."
28549 msgstr ""
28550
28551 #. type: textblock
28552 #: ../src/guestfs-actions.pod:5790
28553 msgid "(Added in 1.5.21)"
28554 msgstr ""
28555
28556 #. type: =head2
28557 #: ../src/guestfs-actions.pod:5792
28558 msgid "guestfs_pvcreate"
28559 msgstr ""
28560
28561 #. type: verbatim
28562 #: ../src/guestfs-actions.pod:5794
28563 #, no-wrap
28564 msgid ""
28565 " int\n"
28566 " guestfs_pvcreate (guestfs_h *g,\n"
28567 "                   const char *device);\n"
28568 "\n"
28569 msgstr ""
28570
28571 #. type: =head2
28572 #: ../src/guestfs-actions.pod:5806
28573 msgid "guestfs_pvremove"
28574 msgstr ""
28575
28576 #. type: verbatim
28577 #: ../src/guestfs-actions.pod:5808
28578 #, no-wrap
28579 msgid ""
28580 " int\n"
28581 " guestfs_pvremove (guestfs_h *g,\n"
28582 "                   const char *device);\n"
28583 "\n"
28584 msgstr ""
28585
28586 #. type: =head2
28587 #: ../src/guestfs-actions.pod:5823
28588 msgid "guestfs_pvresize"
28589 msgstr ""
28590
28591 #. type: verbatim
28592 #: ../src/guestfs-actions.pod:5825
28593 #, no-wrap
28594 msgid ""
28595 " int\n"
28596 " guestfs_pvresize (guestfs_h *g,\n"
28597 "                   const char *device);\n"
28598 "\n"
28599 msgstr ""
28600
28601 #. type: =head2
28602 #: ../src/guestfs-actions.pod:5836
28603 msgid "guestfs_pvresize_size"
28604 msgstr ""
28605
28606 #. type: verbatim
28607 #: ../src/guestfs-actions.pod:5838
28608 #, no-wrap
28609 msgid ""
28610 " int\n"
28611 " guestfs_pvresize_size (guestfs_h *g,\n"
28612 "                        const char *device,\n"
28613 "                        int64_t size);\n"
28614 "\n"
28615 msgstr ""
28616
28617 #. type: textblock
28618 #: ../src/guestfs-actions.pod:5843
28619 msgid ""
28620 "This command is the same as C<guestfs_pvresize> except that it allows you to "
28621 "specify the new size (in bytes) explicitly."
28622 msgstr ""
28623
28624 #. type: =head2
28625 #: ../src/guestfs-actions.pod:5850
28626 msgid "guestfs_pvs"
28627 msgstr ""
28628
28629 #. type: verbatim
28630 #: ../src/guestfs-actions.pod:5852
28631 #, no-wrap
28632 msgid ""
28633 " char **\n"
28634 " guestfs_pvs (guestfs_h *g);\n"
28635 "\n"
28636 msgstr ""
28637
28638 #. type: textblock
28639 #: ../src/guestfs-actions.pod:5861
28640 msgid "See also C<guestfs_pvs_full>."
28641 msgstr ""
28642
28643 #. type: =head2
28644 #: ../src/guestfs-actions.pod:5869
28645 msgid "guestfs_pvs_full"
28646 msgstr ""
28647
28648 #. type: verbatim
28649 #: ../src/guestfs-actions.pod:5871
28650 #, no-wrap
28651 msgid ""
28652 " struct guestfs_lvm_pv_list *\n"
28653 " guestfs_pvs_full (guestfs_h *g);\n"
28654 "\n"
28655 msgstr ""
28656
28657 #. type: textblock
28658 #: ../src/guestfs-actions.pod:5877
28659 msgid ""
28660 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
28661 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
28662 msgstr ""
28663
28664 #. type: =head2
28665 #: ../src/guestfs-actions.pod:5883
28666 msgid "guestfs_pvuuid"
28667 msgstr ""
28668
28669 #. type: verbatim
28670 #: ../src/guestfs-actions.pod:5885
28671 #, no-wrap
28672 msgid ""
28673 " char *\n"
28674 " guestfs_pvuuid (guestfs_h *g,\n"
28675 "                 const char *device);\n"
28676 "\n"
28677 msgstr ""
28678
28679 #. type: =head2
28680 #: ../src/guestfs-actions.pod:5896
28681 msgid "guestfs_pwrite"
28682 msgstr ""
28683
28684 #. type: verbatim
28685 #: ../src/guestfs-actions.pod:5898
28686 #, no-wrap
28687 msgid ""
28688 " int\n"
28689 " guestfs_pwrite (guestfs_h *g,\n"
28690 "                 const char *path,\n"
28691 "                 const char *content,\n"
28692 "                 size_t content_size,\n"
28693 "                 int64_t offset);\n"
28694 "\n"
28695 msgstr ""
28696
28697 #. type: textblock
28698 #: ../src/guestfs-actions.pod:5914
28699 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
28700 msgstr ""
28701
28702 #. type: =head2
28703 #: ../src/guestfs-actions.pod:5923
28704 msgid "guestfs_pwrite_device"
28705 msgstr ""
28706
28707 #. type: verbatim
28708 #: ../src/guestfs-actions.pod:5925
28709 #, no-wrap
28710 msgid ""
28711 " int\n"
28712 " guestfs_pwrite_device (guestfs_h *g,\n"
28713 "                        const char *device,\n"
28714 "                        const char *content,\n"
28715 "                        size_t content_size,\n"
28716 "                        int64_t offset);\n"
28717 "\n"
28718 msgstr ""
28719
28720 #. type: textblock
28721 #: ../src/guestfs-actions.pod:5940
28722 msgid "See also C<guestfs_pwrite>."
28723 msgstr ""
28724
28725 #. type: textblock
28726 #: ../src/guestfs-actions.pod:5947
28727 msgid "(Added in 1.5.20)"
28728 msgstr ""
28729
28730 #. type: =head2
28731 #: ../src/guestfs-actions.pod:5949
28732 msgid "guestfs_read_file"
28733 msgstr ""
28734
28735 #. type: verbatim
28736 #: ../src/guestfs-actions.pod:5951
28737 #, no-wrap
28738 msgid ""
28739 " char *\n"
28740 " guestfs_read_file (guestfs_h *g,\n"
28741 "                    const char *path,\n"
28742 "                    size_t *size_r);\n"
28743 "\n"
28744 msgstr ""
28745
28746 #. type: textblock
28747 #: ../src/guestfs-actions.pod:5959
28748 msgid ""
28749 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
28750 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
28751 "function is limited in the total size of file that can be handled."
28752 msgstr ""
28753
28754 #. type: textblock
28755 #: ../src/guestfs-actions.pod:5971
28756 msgid "(Added in 1.0.63)"
28757 msgstr ""
28758
28759 #. type: =head2
28760 #: ../src/guestfs-actions.pod:5973
28761 msgid "guestfs_read_lines"
28762 msgstr ""
28763
28764 #. type: verbatim
28765 #: ../src/guestfs-actions.pod:5975
28766 #, no-wrap
28767 msgid ""
28768 " char **\n"
28769 " guestfs_read_lines (guestfs_h *g,\n"
28770 "                     const char *path);\n"
28771 "\n"
28772 msgstr ""
28773
28774 #. type: textblock
28775 #: ../src/guestfs-actions.pod:5984
28776 msgid ""
28777 "Note that this function cannot correctly handle binary files (specifically, "
28778 "files containing C<\\0> character which is treated as end of line).  For "
28779 "those you need to use the C<guestfs_read_file> function which has a more "
28780 "complex interface."
28781 msgstr ""
28782
28783 #. type: =head2
28784 #: ../src/guestfs-actions.pod:5995
28785 msgid "guestfs_readdir"
28786 msgstr ""
28787
28788 #. type: verbatim
28789 #: ../src/guestfs-actions.pod:5997
28790 #, no-wrap
28791 msgid ""
28792 " struct guestfs_dirent_list *\n"
28793 " guestfs_readdir (guestfs_h *g,\n"
28794 "                  const char *dir);\n"
28795 "\n"
28796 msgstr ""
28797
28798 #. type: textblock
28799 #: ../src/guestfs-actions.pod:6051
28800 msgid ""
28801 "This function is primarily intended for use by programs.  To get a simple "
28802 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
28803 "consumption, use C<guestfs_ll>."
28804 msgstr ""
28805
28806 #. type: textblock
28807 #: ../src/guestfs-actions.pod:6055
28808 msgid ""
28809 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
28810 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
28811 msgstr ""
28812
28813 #. type: =head2
28814 #: ../src/guestfs-actions.pod:6061
28815 msgid "guestfs_readlink"
28816 msgstr ""
28817
28818 #. type: verbatim
28819 #: ../src/guestfs-actions.pod:6063
28820 #, no-wrap
28821 msgid ""
28822 " char *\n"
28823 " guestfs_readlink (guestfs_h *g,\n"
28824 "                   const char *path);\n"
28825 "\n"
28826 msgstr ""
28827
28828 #. type: =head2
28829 #: ../src/guestfs-actions.pod:6074
28830 msgid "guestfs_readlinklist"
28831 msgstr ""
28832
28833 #. type: verbatim
28834 #: ../src/guestfs-actions.pod:6076
28835 #, no-wrap
28836 msgid ""
28837 " char **\n"
28838 " guestfs_readlinklist (guestfs_h *g,\n"
28839 "                       const char *path,\n"
28840 "                       char *const *names);\n"
28841 "\n"
28842 msgstr ""
28843
28844 #. type: =head2
28845 #: ../src/guestfs-actions.pod:6109
28846 msgid "guestfs_realpath"
28847 msgstr ""
28848
28849 #. type: verbatim
28850 #: ../src/guestfs-actions.pod:6111
28851 #, no-wrap
28852 msgid ""
28853 " char *\n"
28854 " guestfs_realpath (guestfs_h *g,\n"
28855 "                   const char *path);\n"
28856 "\n"
28857 msgstr ""
28858
28859 #. type: =head2
28860 #: ../src/guestfs-actions.pod:6123
28861 msgid "guestfs_removexattr"
28862 msgstr ""
28863
28864 #. type: verbatim
28865 #: ../src/guestfs-actions.pod:6125
28866 #, no-wrap
28867 msgid ""
28868 " int\n"
28869 " guestfs_removexattr (guestfs_h *g,\n"
28870 "                      const char *xattr,\n"
28871 "                      const char *path);\n"
28872 "\n"
28873 msgstr ""
28874
28875 #. type: textblock
28876 #: ../src/guestfs-actions.pod:6133
28877 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
28878 msgstr ""
28879
28880 #. type: =head2
28881 #: ../src/guestfs-actions.pod:6139
28882 msgid "guestfs_resize2fs"
28883 msgstr ""
28884
28885 #. type: verbatim
28886 #: ../src/guestfs-actions.pod:6141
28887 #, no-wrap
28888 msgid ""
28889 " int\n"
28890 " guestfs_resize2fs (guestfs_h *g,\n"
28891 "                    const char *device);\n"
28892 "\n"
28893 msgstr ""
28894
28895 #. type: textblock
28896 #: ../src/guestfs-actions.pod:6148
28897 msgid ""
28898 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
28899 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
28900 "sometimes gives an error about this and sometimes not.  In any case, it is "
28901 "always safe to call C<guestfs_e2fsck_f> before calling this function."
28902 msgstr ""
28903
28904 #. type: =head2
28905 #: ../src/guestfs-actions.pod:6158
28906 msgid "guestfs_resize2fs_M"
28907 msgstr ""
28908
28909 #. type: verbatim
28910 #: ../src/guestfs-actions.pod:6160
28911 #, no-wrap
28912 msgid ""
28913 " int\n"
28914 " guestfs_resize2fs_M (guestfs_h *g,\n"
28915 "                      const char *device);\n"
28916 "\n"
28917 msgstr ""
28918
28919 #. type: textblock
28920 #: ../src/guestfs-actions.pod:6164
28921 msgid ""
28922 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
28923 "resized to its minimum size.  This works like the I<-M> option to the "
28924 "C<resize2fs> command."
28925 msgstr ""
28926
28927 #. type: textblock
28928 #: ../src/guestfs-actions.pod:6168
28929 msgid ""
28930 "To get the resulting size of the filesystem you should call "
28931 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
28932 "These two numbers, multiplied together, give the resulting size of the "
28933 "minimal filesystem in bytes."
28934 msgstr ""
28935
28936 #. type: =head2
28937 #: ../src/guestfs-actions.pod:6177
28938 msgid "guestfs_resize2fs_size"
28939 msgstr ""
28940
28941 #. type: verbatim
28942 #: ../src/guestfs-actions.pod:6179
28943 #, no-wrap
28944 msgid ""
28945 " int\n"
28946 " guestfs_resize2fs_size (guestfs_h *g,\n"
28947 "                         const char *device,\n"
28948 "                         int64_t size);\n"
28949 "\n"
28950 msgstr ""
28951
28952 #. type: textblock
28953 #: ../src/guestfs-actions.pod:6184
28954 msgid ""
28955 "This command is the same as C<guestfs_resize2fs> except that it allows you "
28956 "to specify the new size (in bytes) explicitly."
28957 msgstr ""
28958
28959 #. type: =head2
28960 #: ../src/guestfs-actions.pod:6191
28961 msgid "guestfs_rm"
28962 msgstr ""
28963
28964 #. type: verbatim
28965 #: ../src/guestfs-actions.pod:6193
28966 #, no-wrap
28967 msgid ""
28968 " int\n"
28969 " guestfs_rm (guestfs_h *g,\n"
28970 "             const char *path);\n"
28971 "\n"
28972 msgstr ""
28973
28974 #. type: =head2
28975 #: ../src/guestfs-actions.pod:6203
28976 msgid "guestfs_rm_rf"
28977 msgstr ""
28978
28979 #. type: verbatim
28980 #: ../src/guestfs-actions.pod:6205
28981 #, no-wrap
28982 msgid ""
28983 " int\n"
28984 " guestfs_rm_rf (guestfs_h *g,\n"
28985 "                const char *path);\n"
28986 "\n"
28987 msgstr ""
28988
28989 #. type: =head2
28990 #: ../src/guestfs-actions.pod:6217
28991 msgid "guestfs_rmdir"
28992 msgstr ""
28993
28994 #. type: verbatim
28995 #: ../src/guestfs-actions.pod:6219
28996 #, no-wrap
28997 msgid ""
28998 " int\n"
28999 " guestfs_rmdir (guestfs_h *g,\n"
29000 "                const char *path);\n"
29001 "\n"
29002 msgstr ""
29003
29004 #. type: =head2
29005 #: ../src/guestfs-actions.pod:6229
29006 msgid "guestfs_rmmountpoint"
29007 msgstr ""
29008
29009 #. type: verbatim
29010 #: ../src/guestfs-actions.pod:6231
29011 #, no-wrap
29012 msgid ""
29013 " int\n"
29014 " guestfs_rmmountpoint (guestfs_h *g,\n"
29015 "                       const char *exemptpath);\n"
29016 "\n"
29017 msgstr ""
29018
29019 #. type: textblock
29020 #: ../src/guestfs-actions.pod:6235
29021 msgid ""
29022 "This calls removes a mountpoint that was previously created with "
29023 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
29024 msgstr ""
29025
29026 #. type: =head2
29027 #: ../src/guestfs-actions.pod:6243
29028 msgid "guestfs_scrub_device"
29029 msgstr ""
29030
29031 #. type: verbatim
29032 #: ../src/guestfs-actions.pod:6245
29033 #, no-wrap
29034 msgid ""
29035 " int\n"
29036 " guestfs_scrub_device (guestfs_h *g,\n"
29037 "                       const char *device);\n"
29038 "\n"
29039 msgstr ""
29040
29041 #. type: textblock
29042 #: ../src/guestfs-actions.pod:6260 ../src/guestfs-actions.pod:6278
29043 #: ../src/guestfs-actions.pod:6297
29044 msgid "(Added in 1.0.52)"
29045 msgstr ""
29046
29047 #. type: =head2
29048 #: ../src/guestfs-actions.pod:6262
29049 msgid "guestfs_scrub_file"
29050 msgstr ""
29051
29052 #. type: verbatim
29053 #: ../src/guestfs-actions.pod:6264
29054 #, no-wrap
29055 msgid ""
29056 " int\n"
29057 " guestfs_scrub_file (guestfs_h *g,\n"
29058 "                     const char *file);\n"
29059 "\n"
29060 msgstr ""
29061
29062 #. type: =head2
29063 #: ../src/guestfs-actions.pod:6280
29064 msgid "guestfs_scrub_freespace"
29065 msgstr ""
29066
29067 #. type: verbatim
29068 #: ../src/guestfs-actions.pod:6282
29069 #, no-wrap
29070 msgid ""
29071 " int\n"
29072 " guestfs_scrub_freespace (guestfs_h *g,\n"
29073 "                          const char *dir);\n"
29074 "\n"
29075 msgstr ""
29076
29077 #. type: textblock
29078 #: ../src/guestfs-actions.pod:6286
29079 msgid ""
29080 "This command creates the directory C<dir> and then fills it with files until "
29081 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
29082 "and deletes them.  The intention is to scrub any free space on the partition "
29083 "containing C<dir>."
29084 msgstr ""
29085
29086 #. type: =head2
29087 #: ../src/guestfs-actions.pod:6299
29088 msgid "guestfs_set_append"
29089 msgstr ""
29090
29091 #. type: verbatim
29092 #: ../src/guestfs-actions.pod:6301
29093 #, no-wrap
29094 msgid ""
29095 " int\n"
29096 " guestfs_set_append (guestfs_h *g,\n"
29097 "                     const char *append);\n"
29098 "\n"
29099 msgstr ""
29100
29101 #. type: =head2
29102 #: ../src/guestfs-actions.pod:6318
29103 msgid "guestfs_set_attach_method"
29104 msgstr ""
29105
29106 #. type: verbatim
29107 #: ../src/guestfs-actions.pod:6320
29108 #, no-wrap
29109 msgid ""
29110 " int\n"
29111 " guestfs_set_attach_method (guestfs_h *g,\n"
29112 "                            const char *attachmethod);\n"
29113 "\n"
29114 msgstr ""
29115
29116 #. type: =head2
29117 #: ../src/guestfs-actions.pod:6348
29118 msgid "guestfs_set_autosync"
29119 msgstr ""
29120
29121 #. type: verbatim
29122 #: ../src/guestfs-actions.pod:6350
29123 #, no-wrap
29124 msgid ""
29125 " int\n"
29126 " guestfs_set_autosync (guestfs_h *g,\n"
29127 "                       int autosync);\n"
29128 "\n"
29129 msgstr ""
29130
29131 #. type: =head2
29132 #: ../src/guestfs-actions.pod:6366
29133 msgid "guestfs_set_direct"
29134 msgstr ""
29135
29136 #. type: verbatim
29137 #: ../src/guestfs-actions.pod:6368
29138 #, no-wrap
29139 msgid ""
29140 " int\n"
29141 " guestfs_set_direct (guestfs_h *g,\n"
29142 "                     int direct);\n"
29143 "\n"
29144 msgstr ""
29145
29146 #. type: textblock
29147 #: ../src/guestfs-actions.pod:6376
29148 msgid ""
29149 "One consequence of this is that log messages aren't caught by the library "
29150 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
29151 "stdout."
29152 msgstr ""
29153
29154 #. type: =head2
29155 #: ../src/guestfs-actions.pod:6389
29156 msgid "guestfs_set_e2label"
29157 msgstr ""
29158
29159 #. type: verbatim
29160 #: ../src/guestfs-actions.pod:6391
29161 #, no-wrap
29162 msgid ""
29163 " int\n"
29164 " guestfs_set_e2label (guestfs_h *g,\n"
29165 "                      const char *device,\n"
29166 "                      const char *label);\n"
29167 "\n"
29168 msgstr ""
29169
29170 #. type: textblock
29171 #: ../src/guestfs-actions.pod:6400
29172 msgid ""
29173 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
29174 "the existing label on a filesystem."
29175 msgstr ""
29176
29177 #. type: =head2
29178 #: ../src/guestfs-actions.pod:6407
29179 msgid "guestfs_set_e2uuid"
29180 msgstr ""
29181
29182 #. type: verbatim
29183 #: ../src/guestfs-actions.pod:6409
29184 #, no-wrap
29185 msgid ""
29186 " int\n"
29187 " guestfs_set_e2uuid (guestfs_h *g,\n"
29188 "                     const char *device,\n"
29189 "                     const char *uuid);\n"
29190 "\n"
29191 msgstr ""
29192
29193 #. type: textblock
29194 #: ../src/guestfs-actions.pod:6419
29195 msgid ""
29196 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
29197 "the existing UUID of a filesystem."
29198 msgstr ""
29199
29200 #. type: =head2
29201 #: ../src/guestfs-actions.pod:6426
29202 msgid "guestfs_set_memsize"
29203 msgstr ""
29204
29205 #. type: verbatim
29206 #: ../src/guestfs-actions.pod:6428
29207 #, no-wrap
29208 msgid ""
29209 " int\n"
29210 " guestfs_set_memsize (guestfs_h *g,\n"
29211 "                      int memsize);\n"
29212 "\n"
29213 msgstr ""
29214
29215 #. type: textblock
29216 #: ../src/guestfs-actions.pod:6432
29217 msgid ""
29218 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
29219 "This only has any effect if called before C<guestfs_launch>."
29220 msgstr ""
29221
29222 #. type: =head2
29223 #: ../src/guestfs-actions.pod:6447
29224 msgid "guestfs_set_network"
29225 msgstr ""
29226
29227 #. type: verbatim
29228 #: ../src/guestfs-actions.pod:6449
29229 #, no-wrap
29230 msgid ""
29231 " int\n"
29232 " guestfs_set_network (guestfs_h *g,\n"
29233 "                      int network);\n"
29234 "\n"
29235 msgstr ""
29236
29237 #. type: textblock
29238 #: ../src/guestfs-actions.pod:6459
29239 msgid ""
29240 "You must call this before calling C<guestfs_launch>, otherwise it has no "
29241 "effect."
29242 msgstr ""
29243
29244 #. type: =head2
29245 #: ../src/guestfs-actions.pod:6466
29246 msgid "guestfs_set_path"
29247 msgstr ""
29248
29249 #. type: verbatim
29250 #: ../src/guestfs-actions.pod:6468
29251 #, no-wrap
29252 msgid ""
29253 " int\n"
29254 " guestfs_set_path (guestfs_h *g,\n"
29255 "                   const char *searchpath);\n"
29256 "\n"
29257 msgstr ""
29258
29259 #. type: =head2
29260 #: ../src/guestfs-actions.pod:6483
29261 msgid "guestfs_set_pgroup"
29262 msgstr ""
29263
29264 #. type: verbatim
29265 #: ../src/guestfs-actions.pod:6485
29266 #, no-wrap
29267 msgid ""
29268 " int\n"
29269 " guestfs_set_pgroup (guestfs_h *g,\n"
29270 "                     int pgroup);\n"
29271 "\n"
29272 msgstr ""
29273
29274 #. type: =head2
29275 #: ../src/guestfs-actions.pod:6502
29276 msgid "guestfs_set_qemu"
29277 msgstr ""
29278
29279 #. type: verbatim
29280 #: ../src/guestfs-actions.pod:6504
29281 #, no-wrap
29282 msgid ""
29283 " int\n"
29284 " guestfs_set_qemu (guestfs_h *g,\n"
29285 "                   const char *qemu);\n"
29286 "\n"
29287 msgstr ""
29288
29289 #. type: =head2
29290 #: ../src/guestfs-actions.pod:6530
29291 msgid "guestfs_set_recovery_proc"
29292 msgstr ""
29293
29294 #. type: verbatim
29295 #: ../src/guestfs-actions.pod:6532
29296 #, no-wrap
29297 msgid ""
29298 " int\n"
29299 " guestfs_set_recovery_proc (guestfs_h *g,\n"
29300 "                            int recoveryproc);\n"
29301 "\n"
29302 msgstr ""
29303
29304 #. type: textblock
29305 #: ../src/guestfs-actions.pod:6536
29306 msgid ""
29307 "If this is called with the parameter C<false> then C<guestfs_launch> does "
29308 "not create a recovery process.  The purpose of the recovery process is to "
29309 "stop runaway qemu processes in the case where the main program aborts "
29310 "abruptly."
29311 msgstr ""
29312
29313 #. type: textblock
29314 #: ../src/guestfs-actions.pod:6541
29315 msgid ""
29316 "This only has any effect if called before C<guestfs_launch>, and the default "
29317 "is true."
29318 msgstr ""
29319
29320 #. type: =head2
29321 #: ../src/guestfs-actions.pod:6554
29322 msgid "guestfs_set_selinux"
29323 msgstr ""
29324
29325 #. type: verbatim
29326 #: ../src/guestfs-actions.pod:6556
29327 #, no-wrap
29328 msgid ""
29329 " int\n"
29330 " guestfs_set_selinux (guestfs_h *g,\n"
29331 "                      int selinux);\n"
29332 "\n"
29333 msgstr ""
29334
29335 #. type: =head2
29336 #: ../src/guestfs-actions.pod:6573
29337 msgid "guestfs_set_smp"
29338 msgstr ""
29339
29340 #. type: verbatim
29341 #: ../src/guestfs-actions.pod:6575
29342 #, no-wrap
29343 msgid ""
29344 " int\n"
29345 " guestfs_set_smp (guestfs_h *g,\n"
29346 "                  int smp);\n"
29347 "\n"
29348 msgstr ""
29349
29350 #. type: textblock
29351 #: ../src/guestfs-actions.pod:6583
29352 msgid "This function must be called before C<guestfs_launch>."
29353 msgstr ""
29354
29355 #. type: =head2
29356 #: ../src/guestfs-actions.pod:6587
29357 msgid "guestfs_set_trace"
29358 msgstr ""
29359
29360 #. type: verbatim
29361 #: ../src/guestfs-actions.pod:6589
29362 #, no-wrap
29363 msgid ""
29364 " int\n"
29365 " guestfs_set_trace (guestfs_h *g,\n"
29366 "                    int trace);\n"
29367 "\n"
29368 msgstr ""
29369
29370 #. type: textblock
29371 #: ../src/guestfs-actions.pod:6603
29372 msgid ""
29373 "Trace messages are normally sent to C<stderr>, unless you register a "
29374 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
29375 msgstr ""
29376
29377 #. type: =head2
29378 #: ../src/guestfs-actions.pod:6611
29379 msgid "guestfs_set_verbose"
29380 msgstr ""
29381
29382 #. type: verbatim
29383 #: ../src/guestfs-actions.pod:6613
29384 #, no-wrap
29385 msgid ""
29386 " int\n"
29387 " guestfs_set_verbose (guestfs_h *g,\n"
29388 "                      int verbose);\n"
29389 "\n"
29390 msgstr ""
29391
29392 #. type: textblock
29393 #: ../src/guestfs-actions.pod:6622
29394 msgid ""
29395 "Verbose messages are normally sent to C<stderr>, unless you register a "
29396 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
29397 msgstr ""
29398
29399 #. type: =head2
29400 #: ../src/guestfs-actions.pod:6630
29401 msgid "guestfs_setcon"
29402 msgstr ""
29403
29404 #. type: verbatim
29405 #: ../src/guestfs-actions.pod:6632
29406 #, no-wrap
29407 msgid ""
29408 " int\n"
29409 " guestfs_setcon (guestfs_h *g,\n"
29410 "                 const char *context);\n"
29411 "\n"
29412 msgstr ""
29413
29414 #. type: =head2
29415 #: ../src/guestfs-actions.pod:6645
29416 msgid "guestfs_setxattr"
29417 msgstr ""
29418
29419 #. type: verbatim
29420 #: ../src/guestfs-actions.pod:6647
29421 #, no-wrap
29422 msgid ""
29423 " int\n"
29424 " guestfs_setxattr (guestfs_h *g,\n"
29425 "                   const char *xattr,\n"
29426 "                   const char *val,\n"
29427 "                   int vallen,\n"
29428 "                   const char *path);\n"
29429 "\n"
29430 msgstr ""
29431
29432 #. type: textblock
29433 #: ../src/guestfs-actions.pod:6658
29434 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
29435 msgstr ""
29436
29437 #. type: =head2
29438 #: ../src/guestfs-actions.pod:6664
29439 msgid "guestfs_sfdisk"
29440 msgstr ""
29441
29442 #. type: verbatim
29443 #: ../src/guestfs-actions.pod:6666
29444 #, no-wrap
29445 msgid ""
29446 " int\n"
29447 " guestfs_sfdisk (guestfs_h *g,\n"
29448 "                 const char *device,\n"
29449 "                 int cyls,\n"
29450 "                 int heads,\n"
29451 "                 int sectors,\n"
29452 "                 char *const *lines);\n"
29453 "\n"
29454 msgstr ""
29455
29456 #. type: textblock
29457 #: ../src/guestfs-actions.pod:6674 ../src/guestfs-actions.pod:6718
29458 #: ../src/guestfs-actions.pod:6752
29459 msgid ""
29460 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
29461 "call instead."
29462 msgstr ""
29463
29464 #. type: textblock
29465 #: ../src/guestfs-actions.pod:6701
29466 msgid ""
29467 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
29468 msgstr ""
29469
29470 #. type: =head2
29471 #: ../src/guestfs-actions.pod:6711
29472 msgid "guestfs_sfdiskM"
29473 msgstr ""
29474
29475 #. type: verbatim
29476 #: ../src/guestfs-actions.pod:6713
29477 #, no-wrap
29478 msgid ""
29479 " int\n"
29480 " guestfs_sfdiskM (guestfs_h *g,\n"
29481 "                  const char *device,\n"
29482 "                  char *const *lines);\n"
29483 "\n"
29484 msgstr ""
29485
29486 #. type: textblock
29487 #: ../src/guestfs-actions.pod:6725
29488 msgid ""
29489 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
29490 "partition sizes are specified in megabytes only (rounded to the nearest "
29491 "cylinder) and you don't need to specify the cyls, heads and sectors "
29492 "parameters which were rarely if ever used anyway."
29493 msgstr ""
29494
29495 #. type: textblock
29496 #: ../src/guestfs-actions.pod:6731
29497 msgid ""
29498 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
29499 "C<guestfs_part_disk>"
29500 msgstr ""
29501
29502 #. type: =head2
29503 #: ../src/guestfs-actions.pod:6741
29504 msgid "guestfs_sfdisk_N"
29505 msgstr ""
29506
29507 #. type: verbatim
29508 #: ../src/guestfs-actions.pod:6743
29509 #, no-wrap
29510 msgid ""
29511 " int\n"
29512 " guestfs_sfdisk_N (guestfs_h *g,\n"
29513 "                   const char *device,\n"
29514 "                   int partnum,\n"
29515 "                   int cyls,\n"
29516 "                   int heads,\n"
29517 "                   int sectors,\n"
29518 "                   const char *line);\n"
29519 "\n"
29520 msgstr ""
29521
29522 #. type: textblock
29523 #: ../src/guestfs-actions.pod:6762
29524 msgid ""
29525 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
29526 "for the cyls/heads/sectors parameters."
29527 msgstr ""
29528
29529 #. type: textblock
29530 #: ../src/guestfs-actions.pod:6765
29531 msgid "See also: C<guestfs_part_add>"
29532 msgstr ""
29533
29534 #. type: =head2
29535 #: ../src/guestfs-actions.pod:6774
29536 msgid "guestfs_sfdisk_disk_geometry"
29537 msgstr ""
29538
29539 #. type: verbatim
29540 #: ../src/guestfs-actions.pod:6776
29541 #, no-wrap
29542 msgid ""
29543 " char *\n"
29544 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
29545 "                               const char *device);\n"
29546 "\n"
29547 msgstr ""
29548
29549 #. type: textblock
29550 #: ../src/guestfs-actions.pod:6780
29551 msgid ""
29552 "This displays the disk geometry of C<device> read from the partition table.  "
29553 "Especially in the case where the underlying block device has been resized, "
29554 "this can be different from the kernel's idea of the geometry (see "
29555 "C<guestfs_sfdisk_kernel_geometry>)."
29556 msgstr ""
29557
29558 #. type: =head2
29559 #: ../src/guestfs-actions.pod:6793
29560 msgid "guestfs_sfdisk_kernel_geometry"
29561 msgstr ""
29562
29563 #. type: verbatim
29564 #: ../src/guestfs-actions.pod:6795
29565 #, no-wrap
29566 msgid ""
29567 " char *\n"
29568 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
29569 "                                 const char *device);\n"
29570 "\n"
29571 msgstr ""
29572
29573 #. type: =head2
29574 #: ../src/guestfs-actions.pod:6809
29575 msgid "guestfs_sfdisk_l"
29576 msgstr ""
29577
29578 #. type: verbatim
29579 #: ../src/guestfs-actions.pod:6811
29580 #, no-wrap
29581 msgid ""
29582 " char *\n"
29583 " guestfs_sfdisk_l (guestfs_h *g,\n"
29584 "                   const char *device);\n"
29585 "\n"
29586 msgstr ""
29587
29588 #. type: textblock
29589 #: ../src/guestfs-actions.pod:6815
29590 msgid ""
29591 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
29592 "call instead."
29593 msgstr ""
29594
29595 #. type: textblock
29596 #: ../src/guestfs-actions.pod:6826
29597 msgid "See also: C<guestfs_part_list>"
29598 msgstr ""
29599
29600 #. type: =head2
29601 #: ../src/guestfs-actions.pod:6833
29602 msgid "guestfs_sh"
29603 msgstr ""
29604
29605 #. type: verbatim
29606 #: ../src/guestfs-actions.pod:6835
29607 #, no-wrap
29608 msgid ""
29609 " char *\n"
29610 " guestfs_sh (guestfs_h *g,\n"
29611 "             const char *command);\n"
29612 "\n"
29613 msgstr ""
29614
29615 #. type: textblock
29616 #: ../src/guestfs-actions.pod:6842
29617 msgid "This is like C<guestfs_command>, but passes the command to:"
29618 msgstr ""
29619
29620 #. type: textblock
29621 #: ../src/guestfs-actions.pod:6850
29622 msgid "All the provisos about C<guestfs_command> apply to this call."
29623 msgstr ""
29624
29625 #. type: =head2
29626 #: ../src/guestfs-actions.pod:6857
29627 msgid "guestfs_sh_lines"
29628 msgstr ""
29629
29630 #. type: verbatim
29631 #: ../src/guestfs-actions.pod:6859
29632 #, no-wrap
29633 msgid ""
29634 " char **\n"
29635 " guestfs_sh_lines (guestfs_h *g,\n"
29636 "                   const char *command);\n"
29637 "\n"
29638 msgstr ""
29639
29640 #. type: textblock
29641 #: ../src/guestfs-actions.pod:6863
29642 msgid ""
29643 "This is the same as C<guestfs_sh>, but splits the result into a list of "
29644 "lines."
29645 msgstr ""
29646
29647 #. type: textblock
29648 #: ../src/guestfs-actions.pod:6866
29649 msgid "See also: C<guestfs_command_lines>"
29650 msgstr ""
29651
29652 #. type: =head2
29653 #: ../src/guestfs-actions.pod:6874
29654 msgid "guestfs_sleep"
29655 msgstr ""
29656
29657 #. type: verbatim
29658 #: ../src/guestfs-actions.pod:6876
29659 #, no-wrap
29660 msgid ""
29661 " int\n"
29662 " guestfs_sleep (guestfs_h *g,\n"
29663 "                int secs);\n"
29664 "\n"
29665 msgstr ""
29666
29667 #. type: textblock
29668 #: ../src/guestfs-actions.pod:6884
29669 msgid "(Added in 1.0.41)"
29670 msgstr ""
29671
29672 #. type: =head2
29673 #: ../src/guestfs-actions.pod:6886 ../src/guestfs-structs.pod:109
29674 msgid "guestfs_stat"
29675 msgstr ""
29676
29677 #. type: verbatim
29678 #: ../src/guestfs-actions.pod:6888
29679 #, no-wrap
29680 msgid ""
29681 " struct guestfs_stat *\n"
29682 " guestfs_stat (guestfs_h *g,\n"
29683 "               const char *path);\n"
29684 "\n"
29685 msgstr ""
29686
29687 #. type: =head2
29688 #: ../src/guestfs-actions.pod:6902 ../src/guestfs-structs.pod:135
29689 msgid "guestfs_statvfs"
29690 msgstr ""
29691
29692 #. type: verbatim
29693 #: ../src/guestfs-actions.pod:6904
29694 #, no-wrap
29695 msgid ""
29696 " struct guestfs_statvfs *\n"
29697 " guestfs_statvfs (guestfs_h *g,\n"
29698 "                  const char *path);\n"
29699 "\n"
29700 msgstr ""
29701
29702 #. type: textblock
29703 #: ../src/guestfs-actions.pod:6914
29704 msgid ""
29705 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
29706 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
29707 msgstr ""
29708
29709 #. type: =head2
29710 #: ../src/guestfs-actions.pod:6920
29711 msgid "guestfs_strings"
29712 msgstr ""
29713
29714 #. type: verbatim
29715 #: ../src/guestfs-actions.pod:6922
29716 #, no-wrap
29717 msgid ""
29718 " char **\n"
29719 " guestfs_strings (guestfs_h *g,\n"
29720 "                  const char *path);\n"
29721 "\n"
29722 msgstr ""
29723
29724 #. type: =head2
29725 #: ../src/guestfs-actions.pod:6938
29726 msgid "guestfs_strings_e"
29727 msgstr ""
29728
29729 #. type: verbatim
29730 #: ../src/guestfs-actions.pod:6940
29731 #, no-wrap
29732 msgid ""
29733 " char **\n"
29734 " guestfs_strings_e (guestfs_h *g,\n"
29735 "                    const char *encoding,\n"
29736 "                    const char *path);\n"
29737 "\n"
29738 msgstr ""
29739
29740 #. type: textblock
29741 #: ../src/guestfs-actions.pod:6945
29742 msgid ""
29743 "This is like the C<guestfs_strings> command, but allows you to specify the "
29744 "encoding of strings that are looked for in the source file C<path>."
29745 msgstr ""
29746
29747 #. type: textblock
29748 #: ../src/guestfs-actions.pod:6955
29749 msgid ""
29750 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
29751 "ISO-8859-X (this is what C<guestfs_strings> uses)."
29752 msgstr ""
29753
29754 #. type: =head2
29755 #: ../src/guestfs-actions.pod:6993
29756 msgid "guestfs_swapoff_device"
29757 msgstr ""
29758
29759 #. type: verbatim
29760 #: ../src/guestfs-actions.pod:6995
29761 #, no-wrap
29762 msgid ""
29763 " int\n"
29764 " guestfs_swapoff_device (guestfs_h *g,\n"
29765 "                         const char *device);\n"
29766 "\n"
29767 msgstr ""
29768
29769 #. type: textblock
29770 #: ../src/guestfs-actions.pod:6999
29771 msgid ""
29772 "This command disables the libguestfs appliance swap device or partition "
29773 "named C<device>.  See C<guestfs_swapon_device>."
29774 msgstr ""
29775
29776 #. type: =head2
29777 #: ../src/guestfs-actions.pod:7007
29778 msgid "guestfs_swapoff_file"
29779 msgstr ""
29780
29781 #. type: verbatim
29782 #: ../src/guestfs-actions.pod:7009
29783 #, no-wrap
29784 msgid ""
29785 " int\n"
29786 " guestfs_swapoff_file (guestfs_h *g,\n"
29787 "                       const char *file);\n"
29788 "\n"
29789 msgstr ""
29790
29791 #. type: =head2
29792 #: ../src/guestfs-actions.pod:7019
29793 msgid "guestfs_swapoff_label"
29794 msgstr ""
29795
29796 #. type: verbatim
29797 #: ../src/guestfs-actions.pod:7021
29798 #, no-wrap
29799 msgid ""
29800 " int\n"
29801 " guestfs_swapoff_label (guestfs_h *g,\n"
29802 "                        const char *label);\n"
29803 "\n"
29804 msgstr ""
29805
29806 #. type: =head2
29807 #: ../src/guestfs-actions.pod:7032
29808 msgid "guestfs_swapoff_uuid"
29809 msgstr ""
29810
29811 #. type: verbatim
29812 #: ../src/guestfs-actions.pod:7034
29813 #, no-wrap
29814 msgid ""
29815 " int\n"
29816 " guestfs_swapoff_uuid (guestfs_h *g,\n"
29817 "                       const char *uuid);\n"
29818 "\n"
29819 msgstr ""
29820
29821 #. type: =head2
29822 #: ../src/guestfs-actions.pod:7045
29823 msgid "guestfs_swapon_device"
29824 msgstr ""
29825
29826 #. type: verbatim
29827 #: ../src/guestfs-actions.pod:7047
29828 #, no-wrap
29829 msgid ""
29830 " int\n"
29831 " guestfs_swapon_device (guestfs_h *g,\n"
29832 "                        const char *device);\n"
29833 "\n"
29834 msgstr ""
29835
29836 #. type: textblock
29837 #: ../src/guestfs-actions.pod:7051
29838 msgid ""
29839 "This command enables the libguestfs appliance to use the swap device or "
29840 "partition named C<device>.  The increased memory is made available for all "
29841 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
29842 msgstr ""
29843
29844 #. type: =head2
29845 #: ../src/guestfs-actions.pod:7067
29846 msgid "guestfs_swapon_file"
29847 msgstr ""
29848
29849 #. type: verbatim
29850 #: ../src/guestfs-actions.pod:7069
29851 #, no-wrap
29852 msgid ""
29853 " int\n"
29854 " guestfs_swapon_file (guestfs_h *g,\n"
29855 "                      const char *file);\n"
29856 "\n"
29857 msgstr ""
29858
29859 #. type: textblock
29860 #: ../src/guestfs-actions.pod:7073
29861 msgid ""
29862 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
29863 "notes."
29864 msgstr ""
29865
29866 #. type: =head2
29867 #: ../src/guestfs-actions.pod:7080
29868 msgid "guestfs_swapon_label"
29869 msgstr ""
29870
29871 #. type: verbatim
29872 #: ../src/guestfs-actions.pod:7082
29873 #, no-wrap
29874 msgid ""
29875 " int\n"
29876 " guestfs_swapon_label (guestfs_h *g,\n"
29877 "                       const char *label);\n"
29878 "\n"
29879 msgstr ""
29880
29881 #. type: textblock
29882 #: ../src/guestfs-actions.pod:7086
29883 msgid ""
29884 "This command enables swap to a labeled swap partition.  See "
29885 "C<guestfs_swapon_device> for other notes."
29886 msgstr ""
29887
29888 #. type: =head2
29889 #: ../src/guestfs-actions.pod:7093
29890 msgid "guestfs_swapon_uuid"
29891 msgstr ""
29892
29893 #. type: verbatim
29894 #: ../src/guestfs-actions.pod:7095
29895 #, no-wrap
29896 msgid ""
29897 " int\n"
29898 " guestfs_swapon_uuid (guestfs_h *g,\n"
29899 "                      const char *uuid);\n"
29900 "\n"
29901 msgstr ""
29902
29903 #. type: textblock
29904 #: ../src/guestfs-actions.pod:7099
29905 msgid ""
29906 "This command enables swap to a swap partition with the given UUID.  See "
29907 "C<guestfs_swapon_device> for other notes."
29908 msgstr ""
29909
29910 #. type: =head2
29911 #: ../src/guestfs-actions.pod:7106
29912 msgid "guestfs_sync"
29913 msgstr ""
29914
29915 #. type: verbatim
29916 #: ../src/guestfs-actions.pod:7108
29917 #, no-wrap
29918 msgid ""
29919 " int\n"
29920 " guestfs_sync (guestfs_h *g);\n"
29921 "\n"
29922 msgstr ""
29923
29924 #. type: =head2
29925 #: ../src/guestfs-actions.pod:7121
29926 msgid "guestfs_tail"
29927 msgstr ""
29928
29929 #. type: verbatim
29930 #: ../src/guestfs-actions.pod:7123
29931 #, no-wrap
29932 msgid ""
29933 " char **\n"
29934 " guestfs_tail (guestfs_h *g,\n"
29935 "               const char *path);\n"
29936 "\n"
29937 msgstr ""
29938
29939 #. type: =head2
29940 #: ../src/guestfs-actions.pod:7139
29941 msgid "guestfs_tail_n"
29942 msgstr ""
29943
29944 #. type: verbatim
29945 #: ../src/guestfs-actions.pod:7141
29946 #, no-wrap
29947 msgid ""
29948 " char **\n"
29949 " guestfs_tail_n (guestfs_h *g,\n"
29950 "                 int nrlines,\n"
29951 "                 const char *path);\n"
29952 "\n"
29953 msgstr ""
29954
29955 #. type: =head2
29956 #: ../src/guestfs-actions.pod:7163
29957 msgid "guestfs_tar_in"
29958 msgstr ""
29959
29960 #. type: verbatim
29961 #: ../src/guestfs-actions.pod:7165
29962 #, no-wrap
29963 msgid ""
29964 " int\n"
29965 " guestfs_tar_in (guestfs_h *g,\n"
29966 "                 const char *tarfile,\n"
29967 "                 const char *directory);\n"
29968 "\n"
29969 msgstr ""
29970
29971 #. type: textblock
29972 #: ../src/guestfs-actions.pod:7173
29973 msgid ""
29974 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
29975 msgstr ""
29976
29977 #. type: textblock
29978 #: ../src/guestfs-actions.pod:7178 ../src/guestfs-actions.pod:7195
29979 #: ../src/guestfs-actions.pod:7211 ../src/guestfs-actions.pod:7227
29980 msgid "(Added in 1.0.3)"
29981 msgstr ""
29982
29983 #. type: =head2
29984 #: ../src/guestfs-actions.pod:7180
29985 msgid "guestfs_tar_out"
29986 msgstr ""
29987
29988 #. type: verbatim
29989 #: ../src/guestfs-actions.pod:7182
29990 #, no-wrap
29991 msgid ""
29992 " int\n"
29993 " guestfs_tar_out (guestfs_h *g,\n"
29994 "                  const char *directory,\n"
29995 "                  const char *tarfile);\n"
29996 "\n"
29997 msgstr ""
29998
29999 #. type: textblock
30000 #: ../src/guestfs-actions.pod:7190
30001 msgid ""
30002 "To download a compressed tarball, use C<guestfs_tgz_out> or "
30003 "C<guestfs_txz_out>."
30004 msgstr ""
30005
30006 #. type: =head2
30007 #: ../src/guestfs-actions.pod:7197
30008 msgid "guestfs_tgz_in"
30009 msgstr ""
30010
30011 #. type: verbatim
30012 #: ../src/guestfs-actions.pod:7199
30013 #, no-wrap
30014 msgid ""
30015 " int\n"
30016 " guestfs_tgz_in (guestfs_h *g,\n"
30017 "                 const char *tarball,\n"
30018 "                 const char *directory);\n"
30019 "\n"
30020 msgstr ""
30021
30022 #. type: textblock
30023 #: ../src/guestfs-actions.pod:7207
30024 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
30025 msgstr ""
30026
30027 #. type: =head2
30028 #: ../src/guestfs-actions.pod:7213
30029 msgid "guestfs_tgz_out"
30030 msgstr ""
30031
30032 #. type: verbatim
30033 #: ../src/guestfs-actions.pod:7215
30034 #, no-wrap
30035 msgid ""
30036 " int\n"
30037 " guestfs_tgz_out (guestfs_h *g,\n"
30038 "                  const char *directory,\n"
30039 "                  const char *tarball);\n"
30040 "\n"
30041 msgstr ""
30042
30043 #. type: textblock
30044 #: ../src/guestfs-actions.pod:7223
30045 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
30046 msgstr ""
30047
30048 #. type: =head2
30049 #: ../src/guestfs-actions.pod:7229
30050 msgid "guestfs_touch"
30051 msgstr ""
30052
30053 #. type: verbatim
30054 #: ../src/guestfs-actions.pod:7231
30055 #, no-wrap
30056 msgid ""
30057 " int\n"
30058 " guestfs_touch (guestfs_h *g,\n"
30059 "                const char *path);\n"
30060 "\n"
30061 msgstr ""
30062
30063 #. type: =head2
30064 #: ../src/guestfs-actions.pod:7246
30065 msgid "guestfs_truncate"
30066 msgstr ""
30067
30068 #. type: verbatim
30069 #: ../src/guestfs-actions.pod:7248
30070 #, no-wrap
30071 msgid ""
30072 " int\n"
30073 " guestfs_truncate (guestfs_h *g,\n"
30074 "                   const char *path);\n"
30075 "\n"
30076 msgstr ""
30077
30078 #. type: =head2
30079 #: ../src/guestfs-actions.pod:7259
30080 msgid "guestfs_truncate_size"
30081 msgstr ""
30082
30083 #. type: verbatim
30084 #: ../src/guestfs-actions.pod:7261
30085 #, no-wrap
30086 msgid ""
30087 " int\n"
30088 " guestfs_truncate_size (guestfs_h *g,\n"
30089 "                        const char *path,\n"
30090 "                        int64_t size);\n"
30091 "\n"
30092 msgstr ""
30093
30094 #. type: textblock
30095 #: ../src/guestfs-actions.pod:7269
30096 msgid ""
30097 "If the current file size is less than C<size> then the file is extended to "
30098 "the required size with zero bytes.  This creates a sparse file (ie. disk "
30099 "blocks are not allocated for the file until you write to it).  To create a "
30100 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
30101 msgstr ""
30102
30103 #. type: =head2
30104 #: ../src/guestfs-actions.pod:7279
30105 msgid "guestfs_tune2fs_l"
30106 msgstr ""
30107
30108 #. type: verbatim
30109 #: ../src/guestfs-actions.pod:7281
30110 #, no-wrap
30111 msgid ""
30112 " char **\n"
30113 " guestfs_tune2fs_l (guestfs_h *g,\n"
30114 "                    const char *device);\n"
30115 "\n"
30116 msgstr ""
30117
30118 #. type: =head2
30119 #: ../src/guestfs-actions.pod:7301
30120 msgid "guestfs_txz_in"
30121 msgstr ""
30122
30123 #. type: verbatim
30124 #: ../src/guestfs-actions.pod:7303
30125 #, no-wrap
30126 msgid ""
30127 " int\n"
30128 " guestfs_txz_in (guestfs_h *g,\n"
30129 "                 const char *tarball,\n"
30130 "                 const char *directory);\n"
30131 "\n"
30132 msgstr ""
30133
30134 #. type: =head2
30135 #: ../src/guestfs-actions.pod:7315
30136 msgid "guestfs_txz_out"
30137 msgstr ""
30138
30139 #. type: verbatim
30140 #: ../src/guestfs-actions.pod:7317
30141 #, no-wrap
30142 msgid ""
30143 " int\n"
30144 " guestfs_txz_out (guestfs_h *g,\n"
30145 "                  const char *directory,\n"
30146 "                  const char *tarball);\n"
30147 "\n"
30148 msgstr ""
30149
30150 #. type: =head2
30151 #: ../src/guestfs-actions.pod:7329
30152 msgid "guestfs_umask"
30153 msgstr ""
30154
30155 #. type: verbatim
30156 #: ../src/guestfs-actions.pod:7331
30157 #, no-wrap
30158 msgid ""
30159 " int\n"
30160 " guestfs_umask (guestfs_h *g,\n"
30161 "                int mask);\n"
30162 "\n"
30163 msgstr ""
30164
30165 #. type: textblock
30166 #: ../src/guestfs-actions.pod:7347
30167 msgid ""
30168 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
30169 "C<guestfs_mkdir>."
30170 msgstr ""
30171
30172 #. type: =head2
30173 #: ../src/guestfs-actions.pod:7356
30174 msgid "guestfs_umount"
30175 msgstr ""
30176
30177 #. type: verbatim
30178 #: ../src/guestfs-actions.pod:7358
30179 #, no-wrap
30180 msgid ""
30181 " int\n"
30182 " guestfs_umount (guestfs_h *g,\n"
30183 "                 const char *pathordevice);\n"
30184 "\n"
30185 msgstr ""
30186
30187 #. type: =head2
30188 #: ../src/guestfs-actions.pod:7370
30189 msgid "guestfs_umount_all"
30190 msgstr ""
30191
30192 #. type: verbatim
30193 #: ../src/guestfs-actions.pod:7372
30194 #, no-wrap
30195 msgid ""
30196 " int\n"
30197 " guestfs_umount_all (guestfs_h *g);\n"
30198 "\n"
30199 msgstr ""
30200
30201 #. type: =head2
30202 #: ../src/guestfs-actions.pod:7383
30203 msgid "guestfs_upload"
30204 msgstr ""
30205
30206 #. type: verbatim
30207 #: ../src/guestfs-actions.pod:7385
30208 #, no-wrap
30209 msgid ""
30210 " int\n"
30211 " guestfs_upload (guestfs_h *g,\n"
30212 "                 const char *filename,\n"
30213 "                 const char *remotefilename);\n"
30214 "\n"
30215 msgstr ""
30216
30217 #. type: textblock
30218 #: ../src/guestfs-actions.pod:7395
30219 msgid "See also C<guestfs_download>."
30220 msgstr ""
30221
30222 #. type: =head2
30223 #: ../src/guestfs-actions.pod:7406
30224 msgid "guestfs_upload_offset"
30225 msgstr ""
30226
30227 #. type: verbatim
30228 #: ../src/guestfs-actions.pod:7408
30229 #, no-wrap
30230 msgid ""
30231 " int\n"
30232 " guestfs_upload_offset (guestfs_h *g,\n"
30233 "                        const char *filename,\n"
30234 "                        const char *remotefilename,\n"
30235 "                        int64_t offset);\n"
30236 "\n"
30237 msgstr ""
30238
30239 #. type: textblock
30240 #: ../src/guestfs-actions.pod:7424
30241 msgid ""
30242 "Note that there is no limit on the amount of data that can be uploaded with "
30243 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
30244 "full amount unless an error occurs."
30245 msgstr ""
30246
30247 #. type: textblock
30248 #: ../src/guestfs-actions.pod:7429
30249 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
30250 msgstr ""
30251
30252 #. type: =head2
30253 #: ../src/guestfs-actions.pod:7440
30254 msgid "guestfs_utimens"
30255 msgstr ""
30256
30257 #. type: verbatim
30258 #: ../src/guestfs-actions.pod:7442
30259 #, no-wrap
30260 msgid ""
30261 " int\n"
30262 " guestfs_utimens (guestfs_h *g,\n"
30263 "                  const char *path,\n"
30264 "                  int64_t atsecs,\n"
30265 "                  int64_t atnsecs,\n"
30266 "                  int64_t mtsecs,\n"
30267 "                  int64_t mtnsecs);\n"
30268 "\n"
30269 msgstr ""
30270
30271 #. type: =head2
30272 #: ../src/guestfs-actions.pod:7471 ../src/guestfs-structs.pod:175
30273 msgid "guestfs_version"
30274 msgstr ""
30275
30276 #. type: verbatim
30277 #: ../src/guestfs-actions.pod:7473
30278 #, no-wrap
30279 msgid ""
30280 " struct guestfs_version *\n"
30281 " guestfs_version (guestfs_h *g);\n"
30282 "\n"
30283 msgstr ""
30284
30285 #. type: textblock
30286 #: ../src/guestfs-actions.pod:7501
30287 msgid ""
30288 "I<Note:> Don't use this call to test for availability of features.  In "
30289 "enterprise distributions we backport features from later versions into "
30290 "earlier versions, making this an unreliable way to test for features.  Use "
30291 "C<guestfs_available> instead."
30292 msgstr ""
30293
30294 #. type: textblock
30295 #: ../src/guestfs-actions.pod:7507
30296 msgid ""
30297 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
30298 "error.  I<The caller must call C<guestfs_free_version> after use>."
30299 msgstr ""
30300
30301 #. type: textblock
30302 #: ../src/guestfs-actions.pod:7511
30303 msgid "(Added in 1.0.58)"
30304 msgstr ""
30305
30306 #. type: =head2
30307 #: ../src/guestfs-actions.pod:7513
30308 msgid "guestfs_vfs_label"
30309 msgstr ""
30310
30311 #. type: verbatim
30312 #: ../src/guestfs-actions.pod:7515
30313 #, no-wrap
30314 msgid ""
30315 " char *\n"
30316 " guestfs_vfs_label (guestfs_h *g,\n"
30317 "                    const char *device);\n"
30318 "\n"
30319 msgstr ""
30320
30321 #. type: textblock
30322 #: ../src/guestfs-actions.pod:7524
30323 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
30324 msgstr ""
30325
30326 #. type: textblock
30327 #: ../src/guestfs-actions.pod:7529 ../src/guestfs-actions.pod:7566
30328 msgid "(Added in 1.3.18)"
30329 msgstr ""
30330
30331 #. type: =head2
30332 #: ../src/guestfs-actions.pod:7531
30333 msgid "guestfs_vfs_type"
30334 msgstr ""
30335
30336 #. type: verbatim
30337 #: ../src/guestfs-actions.pod:7533
30338 #, no-wrap
30339 msgid ""
30340 " char *\n"
30341 " guestfs_vfs_type (guestfs_h *g,\n"
30342 "                   const char *device);\n"
30343 "\n"
30344 msgstr ""
30345
30346 #. type: =head2
30347 #: ../src/guestfs-actions.pod:7550
30348 msgid "guestfs_vfs_uuid"
30349 msgstr ""
30350
30351 #. type: verbatim
30352 #: ../src/guestfs-actions.pod:7552
30353 #, no-wrap
30354 msgid ""
30355 " char *\n"
30356 " guestfs_vfs_uuid (guestfs_h *g,\n"
30357 "                   const char *device);\n"
30358 "\n"
30359 msgstr ""
30360
30361 #. type: textblock
30362 #: ../src/guestfs-actions.pod:7561
30363 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
30364 msgstr ""
30365
30366 #. type: =head2
30367 #: ../src/guestfs-actions.pod:7568
30368 msgid "guestfs_vg_activate"
30369 msgstr ""
30370
30371 #. type: verbatim
30372 #: ../src/guestfs-actions.pod:7570
30373 #, no-wrap
30374 msgid ""
30375 " int\n"
30376 " guestfs_vg_activate (guestfs_h *g,\n"
30377 "                      int activate,\n"
30378 "                      char *const *volgroups);\n"
30379 "\n"
30380 msgstr ""
30381
30382 #. type: =head2
30383 #: ../src/guestfs-actions.pod:7587
30384 msgid "guestfs_vg_activate_all"
30385 msgstr ""
30386
30387 #. type: verbatim
30388 #: ../src/guestfs-actions.pod:7589
30389 #, no-wrap
30390 msgid ""
30391 " int\n"
30392 " guestfs_vg_activate_all (guestfs_h *g,\n"
30393 "                          int activate);\n"
30394 "\n"
30395 msgstr ""
30396
30397 #. type: =head2
30398 #: ../src/guestfs-actions.pod:7602
30399 msgid "guestfs_vgcreate"
30400 msgstr ""
30401
30402 #. type: verbatim
30403 #: ../src/guestfs-actions.pod:7604
30404 #, no-wrap
30405 msgid ""
30406 " int\n"
30407 " guestfs_vgcreate (guestfs_h *g,\n"
30408 "                   const char *volgroup,\n"
30409 "                   char *const *physvols);\n"
30410 "\n"
30411 msgstr ""
30412
30413 #. type: =head2
30414 #: ../src/guestfs-actions.pod:7616
30415 msgid "guestfs_vglvuuids"
30416 msgstr ""
30417
30418 #. type: verbatim
30419 #: ../src/guestfs-actions.pod:7618
30420 #, no-wrap
30421 msgid ""
30422 " char **\n"
30423 " guestfs_vglvuuids (guestfs_h *g,\n"
30424 "                    const char *vgname);\n"
30425 "\n"
30426 msgstr ""
30427
30428 #. type: textblock
30429 #: ../src/guestfs-actions.pod:7625
30430 msgid ""
30431 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
30432 "associate logical volumes and volume groups."
30433 msgstr ""
30434
30435 #. type: textblock
30436 #: ../src/guestfs-actions.pod:7628
30437 msgid "See also C<guestfs_vgpvuuids>."
30438 msgstr ""
30439
30440 #. type: =head2
30441 #: ../src/guestfs-actions.pod:7636
30442 msgid "guestfs_vgpvuuids"
30443 msgstr ""
30444
30445 #. type: verbatim
30446 #: ../src/guestfs-actions.pod:7638
30447 #, no-wrap
30448 msgid ""
30449 " char **\n"
30450 " guestfs_vgpvuuids (guestfs_h *g,\n"
30451 "                    const char *vgname);\n"
30452 "\n"
30453 msgstr ""
30454
30455 #. type: textblock
30456 #: ../src/guestfs-actions.pod:7645
30457 msgid ""
30458 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
30459 "associate physical volumes and volume groups."
30460 msgstr ""
30461
30462 #. type: textblock
30463 #: ../src/guestfs-actions.pod:7648
30464 msgid "See also C<guestfs_vglvuuids>."
30465 msgstr ""
30466
30467 #. type: =head2
30468 #: ../src/guestfs-actions.pod:7656
30469 msgid "guestfs_vgremove"
30470 msgstr ""
30471
30472 #. type: verbatim
30473 #: ../src/guestfs-actions.pod:7658
30474 #, no-wrap
30475 msgid ""
30476 " int\n"
30477 " guestfs_vgremove (guestfs_h *g,\n"
30478 "                   const char *vgname);\n"
30479 "\n"
30480 msgstr ""
30481
30482 #. type: =head2
30483 #: ../src/guestfs-actions.pod:7671
30484 msgid "guestfs_vgrename"
30485 msgstr ""
30486
30487 #. type: verbatim
30488 #: ../src/guestfs-actions.pod:7673
30489 #, no-wrap
30490 msgid ""
30491 " int\n"
30492 " guestfs_vgrename (guestfs_h *g,\n"
30493 "                   const char *volgroup,\n"
30494 "                   const char *newvolgroup);\n"
30495 "\n"
30496 msgstr ""
30497
30498 #. type: =head2
30499 #: ../src/guestfs-actions.pod:7684
30500 msgid "guestfs_vgs"
30501 msgstr ""
30502
30503 #. type: verbatim
30504 #: ../src/guestfs-actions.pod:7686
30505 #, no-wrap
30506 msgid ""
30507 " char **\n"
30508 " guestfs_vgs (guestfs_h *g);\n"
30509 "\n"
30510 msgstr ""
30511
30512 #. type: textblock
30513 #: ../src/guestfs-actions.pod:7695
30514 msgid "See also C<guestfs_vgs_full>."
30515 msgstr ""
30516
30517 #. type: =head2
30518 #: ../src/guestfs-actions.pod:7703
30519 msgid "guestfs_vgs_full"
30520 msgstr ""
30521
30522 #. type: verbatim
30523 #: ../src/guestfs-actions.pod:7705
30524 #, no-wrap
30525 msgid ""
30526 " struct guestfs_lvm_vg_list *\n"
30527 " guestfs_vgs_full (guestfs_h *g);\n"
30528 "\n"
30529 msgstr ""
30530
30531 #. type: textblock
30532 #: ../src/guestfs-actions.pod:7711
30533 msgid ""
30534 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
30535 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
30536 msgstr ""
30537
30538 #. type: =head2
30539 #: ../src/guestfs-actions.pod:7717
30540 msgid "guestfs_vgscan"
30541 msgstr ""
30542
30543 #. type: verbatim
30544 #: ../src/guestfs-actions.pod:7719
30545 #, no-wrap
30546 msgid ""
30547 " int\n"
30548 " guestfs_vgscan (guestfs_h *g);\n"
30549 "\n"
30550 msgstr ""
30551
30552 #. type: =head2
30553 #: ../src/guestfs-actions.pod:7729
30554 msgid "guestfs_vguuid"
30555 msgstr ""
30556
30557 #. type: verbatim
30558 #: ../src/guestfs-actions.pod:7731
30559 #, no-wrap
30560 msgid ""
30561 " char *\n"
30562 " guestfs_vguuid (guestfs_h *g,\n"
30563 "                 const char *vgname);\n"
30564 "\n"
30565 msgstr ""
30566
30567 #. type: =head2
30568 #: ../src/guestfs-actions.pod:7742
30569 msgid "guestfs_wait_ready"
30570 msgstr ""
30571
30572 #. type: verbatim
30573 #: ../src/guestfs-actions.pod:7744
30574 #, no-wrap
30575 msgid ""
30576 " int\n"
30577 " guestfs_wait_ready (guestfs_h *g);\n"
30578 "\n"
30579 msgstr ""
30580
30581 #. type: textblock
30582 #: ../src/guestfs-actions.pod:7747
30583 msgid ""
30584 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
30585 "instead."
30586 msgstr ""
30587
30588 #. type: textblock
30589 #: ../src/guestfs-actions.pod:7754
30590 msgid "This function is a no op."
30591 msgstr ""
30592
30593 #. type: textblock
30594 #: ../src/guestfs-actions.pod:7756
30595 msgid ""
30596 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
30597 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
30598 "is no longer necessary because C<guestfs_launch> now does the waiting."
30599 msgstr ""
30600
30601 #. type: textblock
30602 #: ../src/guestfs-actions.pod:7761
30603 msgid ""
30604 "If you see any calls to this function in code then you can just remove them, "
30605 "unless you want to retain compatibility with older versions of the API."
30606 msgstr ""
30607
30608 #. type: =head2
30609 #: ../src/guestfs-actions.pod:7769
30610 msgid "guestfs_wc_c"
30611 msgstr ""
30612
30613 #. type: verbatim
30614 #: ../src/guestfs-actions.pod:7771
30615 #, no-wrap
30616 msgid ""
30617 " int\n"
30618 " guestfs_wc_c (guestfs_h *g,\n"
30619 "               const char *path);\n"
30620 "\n"
30621 msgstr ""
30622
30623 #. type: =head2
30624 #: ../src/guestfs-actions.pod:7782
30625 msgid "guestfs_wc_l"
30626 msgstr ""
30627
30628 #. type: verbatim
30629 #: ../src/guestfs-actions.pod:7784
30630 #, no-wrap
30631 msgid ""
30632 " int\n"
30633 " guestfs_wc_l (guestfs_h *g,\n"
30634 "               const char *path);\n"
30635 "\n"
30636 msgstr ""
30637
30638 #. type: =head2
30639 #: ../src/guestfs-actions.pod:7795
30640 msgid "guestfs_wc_w"
30641 msgstr ""
30642
30643 #. type: verbatim
30644 #: ../src/guestfs-actions.pod:7797
30645 #, no-wrap
30646 msgid ""
30647 " int\n"
30648 " guestfs_wc_w (guestfs_h *g,\n"
30649 "               const char *path);\n"
30650 "\n"
30651 msgstr ""
30652
30653 #. type: =head2
30654 #: ../src/guestfs-actions.pod:7808
30655 msgid "guestfs_write"
30656 msgstr ""
30657
30658 #. type: verbatim
30659 #: ../src/guestfs-actions.pod:7810
30660 #, no-wrap
30661 msgid ""
30662 " int\n"
30663 " guestfs_write (guestfs_h *g,\n"
30664 "                const char *path,\n"
30665 "                const char *content,\n"
30666 "                size_t content_size);\n"
30667 "\n"
30668 msgstr ""
30669
30670 #. type: textblock
30671 #: ../src/guestfs-actions.pod:7819
30672 msgid "See also C<guestfs_write_append>."
30673 msgstr ""
30674
30675 #. type: =head2
30676 #: ../src/guestfs-actions.pod:7828
30677 msgid "guestfs_write_append"
30678 msgstr ""
30679
30680 #. type: verbatim
30681 #: ../src/guestfs-actions.pod:7830
30682 #, no-wrap
30683 msgid ""
30684 " int\n"
30685 " guestfs_write_append (guestfs_h *g,\n"
30686 "                       const char *path,\n"
30687 "                       const char *content,\n"
30688 "                       size_t content_size);\n"
30689 "\n"
30690 msgstr ""
30691
30692 #. type: textblock
30693 #: ../src/guestfs-actions.pod:7839
30694 msgid "See also C<guestfs_write>."
30695 msgstr ""
30696
30697 #. type: =head2
30698 #: ../src/guestfs-actions.pod:7848
30699 msgid "guestfs_write_file"
30700 msgstr ""
30701
30702 #. type: verbatim
30703 #: ../src/guestfs-actions.pod:7850
30704 #, no-wrap
30705 msgid ""
30706 " int\n"
30707 " guestfs_write_file (guestfs_h *g,\n"
30708 "                     const char *path,\n"
30709 "                     const char *content,\n"
30710 "                     int size);\n"
30711 "\n"
30712 msgstr ""
30713
30714 #. type: textblock
30715 #: ../src/guestfs-actions.pod:7856
30716 msgid ""
30717 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
30718 "instead."
30719 msgstr ""
30720
30721 #. type: =head2
30722 #: ../src/guestfs-actions.pod:7881
30723 msgid "guestfs_zegrep"
30724 msgstr ""
30725
30726 #. type: verbatim
30727 #: ../src/guestfs-actions.pod:7883
30728 #, no-wrap
30729 msgid ""
30730 " char **\n"
30731 " guestfs_zegrep (guestfs_h *g,\n"
30732 "                 const char *regex,\n"
30733 "                 const char *path);\n"
30734 "\n"
30735 msgstr ""
30736
30737 #. type: =head2
30738 #: ../src/guestfs-actions.pod:7900
30739 msgid "guestfs_zegrepi"
30740 msgstr ""
30741
30742 #. type: verbatim
30743 #: ../src/guestfs-actions.pod:7902
30744 #, no-wrap
30745 msgid ""
30746 " char **\n"
30747 " guestfs_zegrepi (guestfs_h *g,\n"
30748 "                  const char *regex,\n"
30749 "                  const char *path);\n"
30750 "\n"
30751 msgstr ""
30752
30753 #. type: =head2
30754 #: ../src/guestfs-actions.pod:7919
30755 msgid "guestfs_zero"
30756 msgstr ""
30757
30758 #. type: verbatim
30759 #: ../src/guestfs-actions.pod:7921
30760 #, no-wrap
30761 msgid ""
30762 " int\n"
30763 " guestfs_zero (guestfs_h *g,\n"
30764 "               const char *device);\n"
30765 "\n"
30766 msgstr ""
30767
30768 #. type: textblock
30769 #: ../src/guestfs-actions.pod:7935
30770 msgid ""
30771 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
30772 "C<guestfs_is_zero_device>"
30773 msgstr ""
30774
30775 #. type: =head2
30776 #: ../src/guestfs-actions.pod:7947
30777 msgid "guestfs_zero_device"
30778 msgstr ""
30779
30780 #. type: verbatim
30781 #: ../src/guestfs-actions.pod:7949
30782 #, no-wrap
30783 msgid ""
30784 " int\n"
30785 " guestfs_zero_device (guestfs_h *g,\n"
30786 "                      const char *device);\n"
30787 "\n"
30788 msgstr ""
30789
30790 #. type: textblock
30791 #: ../src/guestfs-actions.pod:7953
30792 msgid ""
30793 "This command writes zeroes over the entire C<device>.  Compare with "
30794 "C<guestfs_zero> which just zeroes the first few blocks of a device."
30795 msgstr ""
30796
30797 #. type: textblock
30798 #: ../src/guestfs-actions.pod:7971
30799 msgid "(Added in 1.3.1)"
30800 msgstr ""
30801
30802 #. type: =head2
30803 #: ../src/guestfs-actions.pod:7973
30804 msgid "guestfs_zerofree"
30805 msgstr ""
30806
30807 #. type: verbatim
30808 #: ../src/guestfs-actions.pod:7975
30809 #, no-wrap
30810 msgid ""
30811 " int\n"
30812 " guestfs_zerofree (guestfs_h *g,\n"
30813 "                   const char *device);\n"
30814 "\n"
30815 msgstr ""
30816
30817 #. type: =head2
30818 #: ../src/guestfs-actions.pod:7994
30819 msgid "guestfs_zfgrep"
30820 msgstr ""
30821
30822 #. type: verbatim
30823 #: ../src/guestfs-actions.pod:7996
30824 #, no-wrap
30825 msgid ""
30826 " char **\n"
30827 " guestfs_zfgrep (guestfs_h *g,\n"
30828 "                 const char *pattern,\n"
30829 "                 const char *path);\n"
30830 "\n"
30831 msgstr ""
30832
30833 #. type: =head2
30834 #: ../src/guestfs-actions.pod:8013
30835 msgid "guestfs_zfgrepi"
30836 msgstr ""
30837
30838 #. type: verbatim
30839 #: ../src/guestfs-actions.pod:8015
30840 #, no-wrap
30841 msgid ""
30842 " char **\n"
30843 " guestfs_zfgrepi (guestfs_h *g,\n"
30844 "                  const char *pattern,\n"
30845 "                  const char *path);\n"
30846 "\n"
30847 msgstr ""
30848
30849 #. type: =head2
30850 #: ../src/guestfs-actions.pod:8032
30851 msgid "guestfs_zfile"
30852 msgstr ""
30853
30854 #. type: verbatim
30855 #: ../src/guestfs-actions.pod:8034
30856 #, no-wrap
30857 msgid ""
30858 " char *\n"
30859 " guestfs_zfile (guestfs_h *g,\n"
30860 "                const char *meth,\n"
30861 "                const char *path);\n"
30862 "\n"
30863 msgstr ""
30864
30865 #. type: textblock
30866 #: ../src/guestfs-actions.pod:8039
30867 msgid ""
30868 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
30869 "instead."
30870 msgstr ""
30871
30872 #. type: textblock
30873 #: ../src/guestfs-actions.pod:8051
30874 msgid ""
30875 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
30876 "files."
30877 msgstr ""
30878
30879 #. type: =head2
30880 #: ../src/guestfs-actions.pod:8059
30881 msgid "guestfs_zgrep"
30882 msgstr ""
30883
30884 #. type: verbatim
30885 #: ../src/guestfs-actions.pod:8061
30886 #, no-wrap
30887 msgid ""
30888 " char **\n"
30889 " guestfs_zgrep (guestfs_h *g,\n"
30890 "                const char *regex,\n"
30891 "                const char *path);\n"
30892 "\n"
30893 msgstr ""
30894
30895 #. type: =head2
30896 #: ../src/guestfs-actions.pod:8078
30897 msgid "guestfs_zgrepi"
30898 msgstr ""
30899
30900 #. type: verbatim
30901 #: ../src/guestfs-actions.pod:8080
30902 #, no-wrap
30903 msgid ""
30904 " char **\n"
30905 " guestfs_zgrepi (guestfs_h *g,\n"
30906 "                 const char *regex,\n"
30907 "                 const char *path);\n"
30908 "\n"
30909 msgstr ""
30910
30911 #. type: =item
30912 #: ../src/guestfs-availability.pod:3
30913 msgid "B<augeas>"
30914 msgstr ""
30915
30916 #. type: textblock
30917 #: ../src/guestfs-availability.pod:5
30918 msgid ""
30919 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
30920 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
30921 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
30922 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
30923 "L</guestfs_aug_save> L</guestfs_aug_set>"
30924 msgstr ""
30925
30926 #. type: =item
30927 #: ../src/guestfs-availability.pod:21
30928 msgid "B<btrfs>"
30929 msgstr ""
30930
30931 #. type: textblock
30932 #: ../src/guestfs-availability.pod:23
30933 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
30934 msgstr ""
30935
30936 #. type: =item
30937 #: ../src/guestfs-availability.pod:26
30938 msgid "B<grub>"
30939 msgstr ""
30940
30941 #. type: textblock
30942 #: ../src/guestfs-availability.pod:28
30943 msgid "The following functions: L</guestfs_grub_install>"
30944 msgstr ""
30945
30946 #. type: =item
30947 #: ../src/guestfs-availability.pod:31
30948 msgid "B<inotify>"
30949 msgstr ""
30950
30951 #. type: textblock
30952 #: ../src/guestfs-availability.pod:33
30953 msgid ""
30954 "The following functions: L</guestfs_inotify_add_watch> L</"
30955 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
30956 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
30957 msgstr ""
30958
30959 #. type: =item
30960 #: ../src/guestfs-availability.pod:41
30961 msgid "B<linuxfsuuid>"
30962 msgstr ""
30963
30964 #. type: textblock
30965 #: ../src/guestfs-availability.pod:43
30966 msgid ""
30967 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
30968 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
30969 msgstr ""
30970
30971 #. type: =item
30972 #: ../src/guestfs-availability.pod:50
30973 msgid "B<linuxmodules>"
30974 msgstr ""
30975
30976 #. type: textblock
30977 #: ../src/guestfs-availability.pod:52
30978 msgid "The following functions: L</guestfs_modprobe>"
30979 msgstr ""
30980
30981 #. type: =item
30982 #: ../src/guestfs-availability.pod:55
30983 msgid "B<linuxxattrs>"
30984 msgstr ""
30985
30986 #. type: textblock
30987 #: ../src/guestfs-availability.pod:57
30988 msgid ""
30989 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
30990 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
30991 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
30992 "guestfs_setxattr>"
30993 msgstr ""
30994
30995 #. type: =item
30996 #: ../src/guestfs-availability.pod:68
30997 msgid "B<luks>"
30998 msgstr ""
30999
31000 #. type: textblock
31001 #: ../src/guestfs-availability.pod:70
31002 msgid ""
31003 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
31004 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
31005 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
31006 msgstr ""
31007
31008 #. type: =item
31009 #: ../src/guestfs-availability.pod:79
31010 msgid "B<lvm2>"
31011 msgstr ""
31012
31013 #. type: textblock
31014 #: ../src/guestfs-availability.pod:81
31015 msgid ""
31016 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
31017 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
31018 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
31019 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
31020 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
31021 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
31022 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
31023 msgstr ""
31024
31025 #. type: =item
31026 #: ../src/guestfs-availability.pod:104
31027 msgid "B<mknod>"
31028 msgstr ""
31029
31030 #. type: textblock
31031 #: ../src/guestfs-availability.pod:106
31032 msgid ""
31033 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
31034 "guestfs_mknod_b> L</guestfs_mknod_c>"
31035 msgstr ""
31036
31037 #. type: =item
31038 #: ../src/guestfs-availability.pod:112
31039 msgid "B<ntfs3g>"
31040 msgstr ""
31041
31042 #. type: textblock
31043 #: ../src/guestfs-availability.pod:114
31044 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
31045 msgstr ""
31046
31047 #. type: =item
31048 #: ../src/guestfs-availability.pod:117
31049 msgid "B<ntfsprogs>"
31050 msgstr ""
31051
31052 #. type: textblock
31053 #: ../src/guestfs-availability.pod:119
31054 msgid ""
31055 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
31056 "L</guestfs_ntfsresize_size>"
31057 msgstr ""
31058
31059 #. type: =item
31060 #: ../src/guestfs-availability.pod:124
31061 msgid "B<realpath>"
31062 msgstr ""
31063
31064 #. type: textblock
31065 #: ../src/guestfs-availability.pod:126
31066 msgid "The following functions: L</guestfs_realpath>"
31067 msgstr ""
31068
31069 #. type: =item
31070 #: ../src/guestfs-availability.pod:129
31071 msgid "B<scrub>"
31072 msgstr ""
31073
31074 #. type: textblock
31075 #: ../src/guestfs-availability.pod:131
31076 msgid ""
31077 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
31078 "guestfs_scrub_freespace>"
31079 msgstr ""
31080
31081 #. type: =item
31082 #: ../src/guestfs-availability.pod:136
31083 msgid "B<selinux>"
31084 msgstr ""
31085
31086 #. type: textblock
31087 #: ../src/guestfs-availability.pod:138
31088 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
31089 msgstr ""
31090
31091 #. type: =item
31092 #: ../src/guestfs-availability.pod:142
31093 msgid "B<xz>"
31094 msgstr ""
31095
31096 #. type: textblock
31097 #: ../src/guestfs-availability.pod:144
31098 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
31099 msgstr ""
31100
31101 #. type: =item
31102 #: ../src/guestfs-availability.pod:148
31103 msgid "B<zerofree>"
31104 msgstr ""
31105
31106 #. type: textblock
31107 #: ../src/guestfs-availability.pod:150
31108 msgid "The following functions: L</guestfs_zerofree>"
31109 msgstr ""
31110
31111 #. type: =head2
31112 #: ../src/guestfs-structs.pod:1
31113 msgid "guestfs_int_bool"
31114 msgstr ""
31115
31116 #. type: verbatim
31117 #: ../src/guestfs-structs.pod:3
31118 #, no-wrap
31119 msgid ""
31120 " struct guestfs_int_bool {\n"
31121 "   int32_t i;\n"
31122 "   int32_t b;\n"
31123 " };\n"
31124 " \n"
31125 msgstr ""
31126
31127 #. type: verbatim
31128 #: ../src/guestfs-structs.pod:8
31129 #, no-wrap
31130 msgid ""
31131 " struct guestfs_int_bool_list {\n"
31132 "   uint32_t len; /* Number of elements in list. */\n"
31133 "   struct guestfs_int_bool *val; /* Elements. */\n"
31134 " };\n"
31135 " \n"
31136 msgstr ""
31137
31138 #. type: verbatim
31139 #: ../src/guestfs-structs.pod:13
31140 #, no-wrap
31141 msgid ""
31142 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
31143 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
31144 "\n"
31145 msgstr ""
31146
31147 #. type: =head2
31148 #: ../src/guestfs-structs.pod:16
31149 msgid "guestfs_lvm_pv"
31150 msgstr ""
31151
31152 #. type: verbatim
31153 #: ../src/guestfs-structs.pod:18
31154 #, no-wrap
31155 msgid ""
31156 " struct guestfs_lvm_pv {\n"
31157 "   char *pv_name;\n"
31158 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
31159 "   char pv_uuid[32];\n"
31160 "   char *pv_fmt;\n"
31161 "   uint64_t pv_size;\n"
31162 "   uint64_t dev_size;\n"
31163 "   uint64_t pv_free;\n"
31164 "   uint64_t pv_used;\n"
31165 "   char *pv_attr;\n"
31166 "   int64_t pv_pe_count;\n"
31167 "   int64_t pv_pe_alloc_count;\n"
31168 "   char *pv_tags;\n"
31169 "   uint64_t pe_start;\n"
31170 "   int64_t pv_mda_count;\n"
31171 "   uint64_t pv_mda_free;\n"
31172 " };\n"
31173 " \n"
31174 msgstr ""
31175
31176 #. type: verbatim
31177 #: ../src/guestfs-structs.pod:36
31178 #, no-wrap
31179 msgid ""
31180 " struct guestfs_lvm_pv_list {\n"
31181 "   uint32_t len; /* Number of elements in list. */\n"
31182 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
31183 " };\n"
31184 " \n"
31185 msgstr ""
31186
31187 #. type: verbatim
31188 #: ../src/guestfs-structs.pod:41
31189 #, no-wrap
31190 msgid ""
31191 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
31192 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
31193 "\n"
31194 msgstr ""
31195
31196 #. type: =head2
31197 #: ../src/guestfs-structs.pod:44
31198 msgid "guestfs_lvm_vg"
31199 msgstr ""
31200
31201 #. type: verbatim
31202 #: ../src/guestfs-structs.pod:46
31203 #, no-wrap
31204 msgid ""
31205 " struct guestfs_lvm_vg {\n"
31206 "   char *vg_name;\n"
31207 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
31208 "   char vg_uuid[32];\n"
31209 "   char *vg_fmt;\n"
31210 "   char *vg_attr;\n"
31211 "   uint64_t vg_size;\n"
31212 "   uint64_t vg_free;\n"
31213 "   char *vg_sysid;\n"
31214 "   uint64_t vg_extent_size;\n"
31215 "   int64_t vg_extent_count;\n"
31216 "   int64_t vg_free_count;\n"
31217 "   int64_t max_lv;\n"
31218 "   int64_t max_pv;\n"
31219 "   int64_t pv_count;\n"
31220 "   int64_t lv_count;\n"
31221 "   int64_t snap_count;\n"
31222 "   int64_t vg_seqno;\n"
31223 "   char *vg_tags;\n"
31224 "   int64_t vg_mda_count;\n"
31225 "   uint64_t vg_mda_free;\n"
31226 " };\n"
31227 " \n"
31228 msgstr ""
31229
31230 #. type: verbatim
31231 #: ../src/guestfs-structs.pod:69
31232 #, no-wrap
31233 msgid ""
31234 " struct guestfs_lvm_vg_list {\n"
31235 "   uint32_t len; /* Number of elements in list. */\n"
31236 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
31237 " };\n"
31238 " \n"
31239 msgstr ""
31240
31241 #. type: verbatim
31242 #: ../src/guestfs-structs.pod:74
31243 #, no-wrap
31244 msgid ""
31245 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
31246 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
31247 "\n"
31248 msgstr ""
31249
31250 #. type: =head2
31251 #: ../src/guestfs-structs.pod:77
31252 msgid "guestfs_lvm_lv"
31253 msgstr ""
31254
31255 #. type: verbatim
31256 #: ../src/guestfs-structs.pod:79
31257 #, no-wrap
31258 msgid ""
31259 " struct guestfs_lvm_lv {\n"
31260 "   char *lv_name;\n"
31261 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
31262 "   char lv_uuid[32];\n"
31263 "   char *lv_attr;\n"
31264 "   int64_t lv_major;\n"
31265 "   int64_t lv_minor;\n"
31266 "   int64_t lv_kernel_major;\n"
31267 "   int64_t lv_kernel_minor;\n"
31268 "   uint64_t lv_size;\n"
31269 "   int64_t seg_count;\n"
31270 "   char *origin;\n"
31271 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
31272 "   float snap_percent;\n"
31273 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
31274 "   float copy_percent;\n"
31275 "   char *move_pv;\n"
31276 "   char *lv_tags;\n"
31277 "   char *mirror_log;\n"
31278 "   char *modules;\n"
31279 " };\n"
31280 " \n"
31281 msgstr ""
31282
31283 #. type: verbatim
31284 #: ../src/guestfs-structs.pod:101
31285 #, no-wrap
31286 msgid ""
31287 " struct guestfs_lvm_lv_list {\n"
31288 "   uint32_t len; /* Number of elements in list. */\n"
31289 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
31290 " };\n"
31291 " \n"
31292 msgstr ""
31293
31294 #. type: verbatim
31295 #: ../src/guestfs-structs.pod:106
31296 #, no-wrap
31297 msgid ""
31298 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
31299 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
31300 "\n"
31301 msgstr ""
31302
31303 #. type: verbatim
31304 #: ../src/guestfs-structs.pod:111
31305 #, no-wrap
31306 msgid ""
31307 " struct guestfs_stat {\n"
31308 "   int64_t dev;\n"
31309 "   int64_t ino;\n"
31310 "   int64_t mode;\n"
31311 "   int64_t nlink;\n"
31312 "   int64_t uid;\n"
31313 "   int64_t gid;\n"
31314 "   int64_t rdev;\n"
31315 "   int64_t size;\n"
31316 "   int64_t blksize;\n"
31317 "   int64_t blocks;\n"
31318 "   int64_t atime;\n"
31319 "   int64_t mtime;\n"
31320 "   int64_t ctime;\n"
31321 " };\n"
31322 " \n"
31323 msgstr ""
31324
31325 #. type: verbatim
31326 #: ../src/guestfs-structs.pod:127
31327 #, no-wrap
31328 msgid ""
31329 " struct guestfs_stat_list {\n"
31330 "   uint32_t len; /* Number of elements in list. */\n"
31331 "   struct guestfs_stat *val; /* Elements. */\n"
31332 " };\n"
31333 " \n"
31334 msgstr ""
31335
31336 #. type: verbatim
31337 #: ../src/guestfs-structs.pod:132
31338 #, no-wrap
31339 msgid ""
31340 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
31341 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
31342 "\n"
31343 msgstr ""
31344
31345 #. type: verbatim
31346 #: ../src/guestfs-structs.pod:137
31347 #, no-wrap
31348 msgid ""
31349 " struct guestfs_statvfs {\n"
31350 "   int64_t bsize;\n"
31351 "   int64_t frsize;\n"
31352 "   int64_t blocks;\n"
31353 "   int64_t bfree;\n"
31354 "   int64_t bavail;\n"
31355 "   int64_t files;\n"
31356 "   int64_t ffree;\n"
31357 "   int64_t favail;\n"
31358 "   int64_t fsid;\n"
31359 "   int64_t flag;\n"
31360 "   int64_t namemax;\n"
31361 " };\n"
31362 " \n"
31363 msgstr ""
31364
31365 #. type: verbatim
31366 #: ../src/guestfs-structs.pod:151
31367 #, no-wrap
31368 msgid ""
31369 " struct guestfs_statvfs_list {\n"
31370 "   uint32_t len; /* Number of elements in list. */\n"
31371 "   struct guestfs_statvfs *val; /* Elements. */\n"
31372 " };\n"
31373 " \n"
31374 msgstr ""
31375
31376 #. type: verbatim
31377 #: ../src/guestfs-structs.pod:156
31378 #, no-wrap
31379 msgid ""
31380 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
31381 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
31382 "\n"
31383 msgstr ""
31384
31385 #. type: =head2
31386 #: ../src/guestfs-structs.pod:159
31387 msgid "guestfs_dirent"
31388 msgstr ""
31389
31390 #. type: verbatim
31391 #: ../src/guestfs-structs.pod:161
31392 #, no-wrap
31393 msgid ""
31394 " struct guestfs_dirent {\n"
31395 "   int64_t ino;\n"
31396 "   char ftyp;\n"
31397 "   char *name;\n"
31398 " };\n"
31399 " \n"
31400 msgstr ""
31401
31402 #. type: verbatim
31403 #: ../src/guestfs-structs.pod:167
31404 #, no-wrap
31405 msgid ""
31406 " struct guestfs_dirent_list {\n"
31407 "   uint32_t len; /* Number of elements in list. */\n"
31408 "   struct guestfs_dirent *val; /* Elements. */\n"
31409 " };\n"
31410 " \n"
31411 msgstr ""
31412
31413 #. type: verbatim
31414 #: ../src/guestfs-structs.pod:172
31415 #, no-wrap
31416 msgid ""
31417 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
31418 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
31419 "\n"
31420 msgstr ""
31421
31422 #. type: verbatim
31423 #: ../src/guestfs-structs.pod:177
31424 #, no-wrap
31425 msgid ""
31426 " struct guestfs_version {\n"
31427 "   int64_t major;\n"
31428 "   int64_t minor;\n"
31429 "   int64_t release;\n"
31430 "   char *extra;\n"
31431 " };\n"
31432 " \n"
31433 msgstr ""
31434
31435 #. type: verbatim
31436 #: ../src/guestfs-structs.pod:184
31437 #, no-wrap
31438 msgid ""
31439 " struct guestfs_version_list {\n"
31440 "   uint32_t len; /* Number of elements in list. */\n"
31441 "   struct guestfs_version *val; /* Elements. */\n"
31442 " };\n"
31443 " \n"
31444 msgstr ""
31445
31446 #. type: verbatim
31447 #: ../src/guestfs-structs.pod:189
31448 #, no-wrap
31449 msgid ""
31450 " void guestfs_free_version (struct guestfs_free_version *);\n"
31451 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
31452 "\n"
31453 msgstr ""
31454
31455 #. type: =head2
31456 #: ../src/guestfs-structs.pod:192
31457 msgid "guestfs_xattr"
31458 msgstr ""
31459
31460 #. type: verbatim
31461 #: ../src/guestfs-structs.pod:194
31462 #, no-wrap
31463 msgid ""
31464 " struct guestfs_xattr {\n"
31465 "   char *attrname;\n"
31466 "   /* The next two fields describe a byte array. */\n"
31467 "   uint32_t attrval_len;\n"
31468 "   char *attrval;\n"
31469 " };\n"
31470 " \n"
31471 msgstr ""
31472
31473 #. type: verbatim
31474 #: ../src/guestfs-structs.pod:201
31475 #, no-wrap
31476 msgid ""
31477 " struct guestfs_xattr_list {\n"
31478 "   uint32_t len; /* Number of elements in list. */\n"
31479 "   struct guestfs_xattr *val; /* Elements. */\n"
31480 " };\n"
31481 " \n"
31482 msgstr ""
31483
31484 #. type: verbatim
31485 #: ../src/guestfs-structs.pod:206
31486 #, no-wrap
31487 msgid ""
31488 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
31489 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
31490 "\n"
31491 msgstr ""
31492
31493 #. type: =head2
31494 #: ../src/guestfs-structs.pod:209
31495 msgid "guestfs_inotify_event"
31496 msgstr ""
31497
31498 #. type: verbatim
31499 #: ../src/guestfs-structs.pod:211
31500 #, no-wrap
31501 msgid ""
31502 " struct guestfs_inotify_event {\n"
31503 "   int64_t in_wd;\n"
31504 "   uint32_t in_mask;\n"
31505 "   uint32_t in_cookie;\n"
31506 "   char *in_name;\n"
31507 " };\n"
31508 " \n"
31509 msgstr ""
31510
31511 #. type: verbatim
31512 #: ../src/guestfs-structs.pod:218
31513 #, no-wrap
31514 msgid ""
31515 " struct guestfs_inotify_event_list {\n"
31516 "   uint32_t len; /* Number of elements in list. */\n"
31517 "   struct guestfs_inotify_event *val; /* Elements. */\n"
31518 " };\n"
31519 " \n"
31520 msgstr ""
31521
31522 #. type: verbatim
31523 #: ../src/guestfs-structs.pod:223
31524 #, no-wrap
31525 msgid ""
31526 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
31527 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
31528 "\n"
31529 msgstr ""
31530
31531 #. type: =head2
31532 #: ../src/guestfs-structs.pod:226
31533 msgid "guestfs_partition"
31534 msgstr ""
31535
31536 #. type: verbatim
31537 #: ../src/guestfs-structs.pod:228
31538 #, no-wrap
31539 msgid ""
31540 " struct guestfs_partition {\n"
31541 "   int32_t part_num;\n"
31542 "   uint64_t part_start;\n"
31543 "   uint64_t part_end;\n"
31544 "   uint64_t part_size;\n"
31545 " };\n"
31546 " \n"
31547 msgstr ""
31548
31549 #. type: verbatim
31550 #: ../src/guestfs-structs.pod:235
31551 #, no-wrap
31552 msgid ""
31553 " struct guestfs_partition_list {\n"
31554 "   uint32_t len; /* Number of elements in list. */\n"
31555 "   struct guestfs_partition *val; /* Elements. */\n"
31556 " };\n"
31557 " \n"
31558 msgstr ""
31559
31560 #. type: verbatim
31561 #: ../src/guestfs-structs.pod:240
31562 #, no-wrap
31563 msgid ""
31564 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
31565 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
31566 "\n"
31567 msgstr ""
31568
31569 #. type: =head2
31570 #: ../src/guestfs-structs.pod:243
31571 msgid "guestfs_application"
31572 msgstr ""
31573
31574 #. type: verbatim
31575 #: ../src/guestfs-structs.pod:245
31576 #, no-wrap
31577 msgid ""
31578 " struct guestfs_application {\n"
31579 "   char *app_name;\n"
31580 "   char *app_display_name;\n"
31581 "   int32_t app_epoch;\n"
31582 "   char *app_version;\n"
31583 "   char *app_release;\n"
31584 "   char *app_install_path;\n"
31585 "   char *app_trans_path;\n"
31586 "   char *app_publisher;\n"
31587 "   char *app_url;\n"
31588 "   char *app_source_package;\n"
31589 "   char *app_summary;\n"
31590 "   char *app_description;\n"
31591 " };\n"
31592 " \n"
31593 msgstr ""
31594
31595 #. type: verbatim
31596 #: ../src/guestfs-structs.pod:260
31597 #, no-wrap
31598 msgid ""
31599 " struct guestfs_application_list {\n"
31600 "   uint32_t len; /* Number of elements in list. */\n"
31601 "   struct guestfs_application *val; /* Elements. */\n"
31602 " };\n"
31603 " \n"
31604 msgstr ""
31605
31606 #. type: verbatim
31607 #: ../src/guestfs-structs.pod:265
31608 #, no-wrap
31609 msgid ""
31610 " void guestfs_free_application (struct guestfs_free_application *);\n"
31611 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
31612 "\n"
31613 msgstr ""
31614
31615 #. type: textblock
31616 #: ../src/guestfs.pod:5
31617 msgid "guestfs - Library for accessing and modifying virtual machine images"
31618 msgstr ""
31619
31620 #. type: verbatim
31621 #: ../src/guestfs.pod:11
31622 #, no-wrap
31623 msgid ""
31624 " guestfs_h *g = guestfs_create ();\n"
31625 " guestfs_add_drive (g, \"guest.img\");\n"
31626 " guestfs_launch (g);\n"
31627 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
31628 " guestfs_touch (g, \"/hello\");\n"
31629 " guestfs_umount (g, \"/\");\n"
31630 " guestfs_close (g);\n"
31631 "\n"
31632 msgstr ""
31633
31634 #. type: textblock
31635 #: ../src/guestfs.pod:25
31636 msgid ""
31637 "Libguestfs is a library for accessing and modifying guest disk images.  "
31638 "Amongst the things this is good for: making batch configuration changes to "
31639 "guests, getting disk used/free statistics (see also: virt-df), migrating "
31640 "between virtualization systems (see also: virt-p2v), performing partial "
31641 "backups, performing partial guest clones, cloning guests and changing "
31642 "registry/UUID/hostname info, and much else besides."
31643 msgstr ""
31644
31645 #. type: textblock
31646 #: ../src/guestfs.pod:33
31647 msgid ""
31648 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
31649 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
31650 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
31651 "qcow2, vmdk."
31652 msgstr ""
31653
31654 #. type: textblock
31655 #: ../src/guestfs.pod:38
31656 msgid ""
31657 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
31658 "what filesystem is in each LV, etc.).  It can also run commands in the "
31659 "context of the guest.  Also you can access filesystems over FUSE."
31660 msgstr ""
31661
31662 #. type: textblock
31663 #: ../src/guestfs.pod:43
31664 msgid ""
31665 "Libguestfs is a library that can be linked with C and C++ management "
31666 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
31667 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
31668 "command line."
31669 msgstr ""
31670
31671 #. type: textblock
31672 #: ../src/guestfs.pod:48
31673 msgid ""
31674 "You don't need to be root to use libguestfs, although obviously you do need "
31675 "enough permissions to access the disk images."
31676 msgstr ""
31677
31678 #. type: textblock
31679 #: ../src/guestfs.pod:51
31680 msgid ""
31681 "Libguestfs is a large API because it can do many things.  For a gentle "
31682 "introduction, please read the L</API OVERVIEW> section next."
31683 msgstr ""
31684
31685 #. type: textblock
31686 #: ../src/guestfs.pod:54
31687 msgid ""
31688 "There are also some example programs in the L<guestfs-examples(3)> manual "
31689 "page."
31690 msgstr ""
31691
31692 #. type: =head1
31693 #: ../src/guestfs.pod:57
31694 msgid "API OVERVIEW"
31695 msgstr ""
31696
31697 #. type: textblock
31698 #: ../src/guestfs.pod:59
31699 msgid ""
31700 "This section provides a gentler overview of the libguestfs API.  We also try "
31701 "to group API calls together, where that may not be obvious from reading "
31702 "about the individual calls in the main section of this manual."
31703 msgstr ""
31704
31705 #. type: =head2
31706 #: ../src/guestfs.pod:64
31707 msgid "HANDLES"
31708 msgstr ""
31709
31710 #. type: textblock
31711 #: ../src/guestfs.pod:66
31712 msgid ""
31713 "Before you can use libguestfs calls, you have to create a handle.  Then you "
31714 "must add at least one disk image to the handle, followed by launching the "
31715 "handle, then performing whatever operations you want, and finally closing "
31716 "the handle.  By convention we use the single letter C<g> for the name of the "
31717 "handle variable, although of course you can use any name you want."
31718 msgstr ""
31719
31720 #. type: textblock
31721 #: ../src/guestfs.pod:73
31722 msgid "The general structure of all libguestfs-using programs looks like this:"
31723 msgstr ""
31724
31725 #. type: verbatim
31726 #: ../src/guestfs.pod:76
31727 #, no-wrap
31728 msgid ""
31729 " guestfs_h *g = guestfs_create ();\n"
31730 " \n"
31731 msgstr ""
31732
31733 #. type: verbatim
31734 #: ../src/guestfs.pod:78
31735 #, no-wrap
31736 msgid ""
31737 " /* Call guestfs_add_drive additional times if there are\n"
31738 "  * multiple disk images.\n"
31739 "  */\n"
31740 " guestfs_add_drive (g, \"guest.img\");\n"
31741 " \n"
31742 msgstr ""
31743
31744 #. type: verbatim
31745 #: ../src/guestfs.pod:83
31746 #, no-wrap
31747 msgid ""
31748 " /* Most manipulation calls won't work until you've launched\n"
31749 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
31750 "  * and _before_ other commands.\n"
31751 "  */\n"
31752 " guestfs_launch (g);\n"
31753 " \n"
31754 msgstr ""
31755
31756 #. type: verbatim
31757 #: ../src/guestfs.pod:89
31758 #, no-wrap
31759 msgid ""
31760 " /* Now you can examine what partitions, LVs etc are available.\n"
31761 "  */\n"
31762 " char **partitions = guestfs_list_partitions (g);\n"
31763 " char **logvols = guestfs_lvs (g);\n"
31764 " \n"
31765 msgstr ""
31766
31767 #. type: verbatim
31768 #: ../src/guestfs.pod:94
31769 #, no-wrap
31770 msgid ""
31771 " /* To access a filesystem in the image, you must mount it.\n"
31772 "  */\n"
31773 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
31774 " \n"
31775 msgstr ""
31776
31777 #. type: verbatim
31778 #: ../src/guestfs.pod:98
31779 #, no-wrap
31780 msgid ""
31781 " /* Now you can perform filesystem actions on the guest\n"
31782 "  * disk image.\n"
31783 "  */\n"
31784 " guestfs_touch (g, \"/hello\");\n"
31785 " \n"
31786 msgstr ""
31787
31788 #. type: verbatim
31789 #: ../src/guestfs.pod:103
31790 #, no-wrap
31791 msgid ""
31792 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
31793 "  * it is done automatically when you close the handle.  See\n"
31794 "  * discussion of autosync in this page.\n"
31795 "  */\n"
31796 " guestfs_sync (g);\n"
31797 " \n"
31798 msgstr ""
31799
31800 #. type: verbatim
31801 #: ../src/guestfs.pod:109
31802 #, no-wrap
31803 msgid ""
31804 " /* Close the handle 'g'. */\n"
31805 " guestfs_close (g);\n"
31806 "\n"
31807 msgstr ""
31808
31809 #. type: textblock
31810 #: ../src/guestfs.pod:112
31811 msgid ""
31812 "The code above doesn't include any error checking.  In real code you should "
31813 "check return values carefully for errors.  In general all functions that "
31814 "return integers return C<-1> on error, and all functions that return "
31815 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
31816 "how to handle errors, and consult the documentation for each function call "
31817 "below to see precisely how they return error indications.  See L<guestfs-"
31818 "examples(3)> for fully worked examples."
31819 msgstr ""
31820
31821 #. type: =head2
31822 #: ../src/guestfs.pod:121
31823 msgid "DISK IMAGES"
31824 msgstr ""
31825
31826 #. type: textblock
31827 #: ../src/guestfs.pod:123
31828 msgid ""
31829 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
31830 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
31831 "actual block device, or simply an empty file of zeroes that you have created "
31832 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
31833 "of these."
31834 msgstr ""
31835
31836 #. type: textblock
31837 #: ../src/guestfs.pod:129
31838 msgid ""
31839 "The call you should use in modern code for adding drives is L</"
31840 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
31841 "specifying that the format is raw, do:"
31842 msgstr ""
31843
31844 #. type: verbatim
31845 #: ../src/guestfs.pod:133
31846 #, no-wrap
31847 msgid ""
31848 " guestfs_add_drive_opts (g, filename,\n"
31849 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
31850 "                         -1);\n"
31851 "\n"
31852 msgstr ""
31853
31854 #. type: textblock
31855 #: ../src/guestfs.pod:137
31856 msgid "You can add a disk read-only using:"
31857 msgstr ""
31858
31859 #. type: verbatim
31860 #: ../src/guestfs.pod:139
31861 #, no-wrap
31862 msgid ""
31863 " guestfs_add_drive_opts (g, filename,\n"
31864 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
31865 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
31866 "                         -1);\n"
31867 "\n"
31868 msgstr ""
31869
31870 #. type: textblock
31871 #: ../src/guestfs.pod:144
31872 msgid ""
31873 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
31874 "libguestfs won't modify the file."
31875 msgstr ""
31876
31877 #. type: textblock
31878 #: ../src/guestfs.pod:147
31879 msgid ""
31880 "Be extremely cautious if the disk image is in use, eg. if it is being used "
31881 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
31882 "corruption, but adding it read-only is safe."
31883 msgstr ""
31884
31885 #. type: textblock
31886 #: ../src/guestfs.pod:151
31887 msgid ""
31888 "You must add at least one disk image, and you may add multiple disk images.  "
31889 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
31890 "first one you added), C</dev/sdb> (for the second one you added), etc."
31891 msgstr ""
31892
31893 #. type: textblock
31894 #: ../src/guestfs.pod:156
31895 msgid ""
31896 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
31897 "can call L</guestfs_list_devices> to get a list of the device names, in the "
31898 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
31899 msgstr ""
31900
31901 #. type: =head2
31902 #: ../src/guestfs.pod:161
31903 msgid "MOUNTING"
31904 msgstr ""
31905
31906 #. type: textblock
31907 #: ../src/guestfs.pod:163
31908 msgid ""
31909 "Before you can read or write files, create directories and so on in a disk "
31910 "image that contains filesystems, you have to mount those filesystems using "
31911 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
31912 "a disk image contains (for example) one partition with a filesystem on that "
31913 "partition, then you can mount it directly:"
31914 msgstr ""
31915
31916 #. type: verbatim
31917 #: ../src/guestfs.pod:170
31918 #, no-wrap
31919 msgid ""
31920 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
31921 "\n"
31922 msgstr ""
31923
31924 #. type: textblock
31925 #: ../src/guestfs.pod:172
31926 msgid ""
31927 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
31928 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
31929 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
31930 "that these are libguestfs virtual devices, and are nothing to do with host "
31931 "devices."
31932 msgstr ""
31933
31934 #. type: textblock
31935 #: ../src/guestfs.pod:178
31936 msgid ""
31937 "If you are given a disk image and you don't know what it contains then you "
31938 "have to find out.  Libguestfs can do that too: use L</"
31939 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
31940 "LVs, and either try mounting each to see what is mountable, or else examine "
31941 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
31942 "filesystems, use L</guestfs_list_filesystems>."
31943 msgstr ""
31944
31945 #. type: textblock
31946 #: ../src/guestfs.pod:186
31947 msgid ""
31948 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
31949 "L</INSPECTION> below).  But you might find it easier to look at higher level "
31950 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
31951 msgstr ""
31952
31953 #. type: textblock
31954 #: ../src/guestfs.pod:191
31955 msgid ""
31956 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
31957 "several other variations of the C<guestfs_mount_*> call."
31958 msgstr ""
31959
31960 #. type: =head2
31961 #: ../src/guestfs.pod:194
31962 msgid "FILESYSTEM ACCESS AND MODIFICATION"
31963 msgstr ""
31964
31965 #. type: textblock
31966 #: ../src/guestfs.pod:196
31967 msgid ""
31968 "The majority of the libguestfs API consists of fairly low-level calls for "
31969 "accessing and modifying the files, directories, symlinks etc on mounted "
31970 "filesystems.  There are over a hundred such calls which you can find listed "
31971 "in detail below in this man page, and we don't even pretend to cover them "
31972 "all in this overview."
31973 msgstr ""
31974
31975 #. type: textblock
31976 #: ../src/guestfs.pod:202
31977 msgid ""
31978 "Specify filenames as full paths, starting with C<\"/\"> and including the "
31979 "mount point."
31980 msgstr ""
31981
31982 #. type: textblock
31983 #: ../src/guestfs.pod:205
31984 msgid ""
31985 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
31986 "the file called C<\"etc/passwd\"> then you could do:"
31987 msgstr ""
31988
31989 #. type: verbatim
31990 #: ../src/guestfs.pod:208
31991 #, no-wrap
31992 msgid ""
31993 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
31994 "\n"
31995 msgstr ""
31996
31997 #. type: textblock
31998 #: ../src/guestfs.pod:210
31999 msgid ""
32000 "This would return C<data> as a newly allocated buffer containing the full "
32001 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
32002 "or C<NULL> if there was an error."
32003 msgstr ""
32004
32005 #. type: textblock
32006 #: ../src/guestfs.pod:214
32007 msgid ""
32008 "As another example, to create a top-level directory on that filesystem "
32009 "called C<\"var\"> you would do:"
32010 msgstr ""
32011
32012 #. type: verbatim
32013 #: ../src/guestfs.pod:217
32014 #, no-wrap
32015 msgid ""
32016 " guestfs_mkdir (g, \"/var\");\n"
32017 "\n"
32018 msgstr ""
32019
32020 #. type: textblock
32021 #: ../src/guestfs.pod:219
32022 msgid "To create a symlink you could do:"
32023 msgstr ""
32024
32025 #. type: verbatim
32026 #: ../src/guestfs.pod:221
32027 #, no-wrap
32028 msgid ""
32029 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
32030 "               \"/etc/rc3.d/S30portmap\");\n"
32031 "\n"
32032 msgstr ""
32033
32034 #. type: textblock
32035 #: ../src/guestfs.pod:224
32036 msgid ""
32037 "Libguestfs will reject attempts to use relative paths and there is no "
32038 "concept of a current working directory."
32039 msgstr ""
32040
32041 #. type: textblock
32042 #: ../src/guestfs.pod:227
32043 msgid ""
32044 "Libguestfs can return errors in many situations: for example if the "
32045 "filesystem isn't writable, or if a file or directory that you requested "
32046 "doesn't exist.  If you are using the C API (documented here)  you have to "
32047 "check for those error conditions after each call.  (Other language bindings "
32048 "turn these errors into exceptions)."
32049 msgstr ""
32050
32051 #. type: textblock
32052 #: ../src/guestfs.pod:233
32053 msgid ""
32054 "File writes are affected by the per-handle umask, set by calling L</"
32055 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
32056 msgstr ""
32057
32058 #. type: =head2
32059 #: ../src/guestfs.pod:236
32060 msgid "PARTITIONING"
32061 msgstr ""
32062
32063 #. type: textblock
32064 #: ../src/guestfs.pod:238
32065 msgid ""
32066 "Libguestfs contains API calls to read, create and modify partition tables on "
32067 "disk images."
32068 msgstr ""
32069
32070 #. type: textblock
32071 #: ../src/guestfs.pod:241
32072 msgid ""
32073 "In the common case where you want to create a single partition covering the "
32074 "whole disk, you should use the L</guestfs_part_disk> call:"
32075 msgstr ""
32076
32077 #. type: verbatim
32078 #: ../src/guestfs.pod:245
32079 #, no-wrap
32080 msgid ""
32081 " const char *parttype = \"mbr\";\n"
32082 " if (disk_is_larger_than_2TB)\n"
32083 "   parttype = \"gpt\";\n"
32084 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
32085 "\n"
32086 msgstr ""
32087
32088 #. type: textblock
32089 #: ../src/guestfs.pod:250
32090 msgid ""
32091 "Obviously this effectively wipes anything that was on that disk image before."
32092 msgstr ""
32093
32094 #. type: =head2
32095 #: ../src/guestfs.pod:253
32096 msgid "LVM2"
32097 msgstr ""
32098
32099 #. type: textblock
32100 #: ../src/guestfs.pod:255
32101 msgid ""
32102 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
32103 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
32104 "you familiarize yourself with the concepts of physical volumes, volume "
32105 "groups and logical volumes."
32106 msgstr ""
32107
32108 #. type: textblock
32109 #: ../src/guestfs.pod:260
32110 msgid ""
32111 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
32112 "tldp.org/HOWTO/LVM-HOWTO/>."
32113 msgstr ""
32114
32115 #. type: =head2
32116 #: ../src/guestfs.pod:263
32117 msgid "DOWNLOADING"
32118 msgstr ""
32119
32120 #. type: textblock
32121 #: ../src/guestfs.pod:265
32122 msgid ""
32123 "Use L</guestfs_cat> to download small, text only files.  This call is "
32124 "limited to files which are less than 2 MB and which cannot contain any ASCII "
32125 "NUL (C<\\0>) characters.  However the API is very simple to use."
32126 msgstr ""
32127
32128 #. type: textblock
32129 #: ../src/guestfs.pod:269
32130 msgid ""
32131 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
32132 "bit data, since it returns a (pointer, size) pair.  However it is still "
32133 "limited to \"small\" files, less than 2 MB."
32134 msgstr ""
32135
32136 #. type: textblock
32137 #: ../src/guestfs.pod:273
32138 msgid ""
32139 "L</guestfs_download> can be used to download any file, with no limits on "
32140 "content or size (even files larger than 4 GB)."
32141 msgstr ""
32142
32143 #. type: textblock
32144 #: ../src/guestfs.pod:276
32145 msgid ""
32146 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
32147 msgstr ""
32148
32149 #. type: =head2
32150 #: ../src/guestfs.pod:279
32151 msgid "UPLOADING"
32152 msgstr ""
32153
32154 #. type: textblock
32155 #: ../src/guestfs.pod:281
32156 msgid ""
32157 "It's often the case that you want to write a file or files to the disk image."
32158 msgstr ""
32159
32160 #. type: textblock
32161 #: ../src/guestfs.pod:284
32162 msgid ""
32163 "To write a small file with fixed content, use L</guestfs_write>.  To create "
32164 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
32165 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
32166 "of other functions for creating test files, for example L</guestfs_fill> and "
32167 "L</guestfs_fill_pattern>."
32168 msgstr ""
32169
32170 #. type: textblock
32171 #: ../src/guestfs.pod:290
32172 msgid ""
32173 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
32174 "file content or size (even files larger than 4 GB)."
32175 msgstr ""
32176
32177 #. type: textblock
32178 #: ../src/guestfs.pod:293
32179 msgid ""
32180 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
32181 msgstr ""
32182
32183 #. type: textblock
32184 #: ../src/guestfs.pod:295
32185 msgid ""
32186 "However the fastest way to upload I<large numbers of arbitrary files> is to "
32187 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
32188 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
32189 "in a predictable way (eg. adding it last after all other drives) then you "
32190 "can get the device name from L</guestfs_list_devices> and mount it directly "
32191 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
32192 "portable between kernel versions, and they don't support labels or UUIDs.  "
32193 "If you want to pre-build an image or you need to mount it using a label or "
32194 "UUID, use an ISO image instead."
32195 msgstr ""
32196
32197 #. type: =head2
32198 #: ../src/guestfs.pod:306
32199 msgid "COPYING"
32200 msgstr ""
32201
32202 #. type: textblock
32203 #: ../src/guestfs.pod:308
32204 msgid ""
32205 "There are various different commands for copying between files and devices "
32206 "and in and out of the guest filesystem.  These are summarised in the table "
32207 "below."
32208 msgstr ""
32209
32210 #. type: =item
32211 #: ../src/guestfs.pod:314
32212 msgid "B<file> to B<file>"
32213 msgstr ""
32214
32215 #. type: textblock
32216 #: ../src/guestfs.pod:316
32217 msgid ""
32218 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
32219 "directories recursively."
32220 msgstr ""
32221
32222 #. type: =item
32223 #: ../src/guestfs.pod:319
32224 msgid "B<file or device> to B<file or device>"
32225 msgstr ""
32226
32227 #. type: textblock
32228 #: ../src/guestfs.pod:321
32229 msgid ""
32230 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
32231 "devices in the guest."
32232 msgstr ""
32233
32234 #. type: textblock
32235 #: ../src/guestfs.pod:324
32236 msgid "Example: duplicate the contents of an LV:"
32237 msgstr ""
32238
32239 #. type: verbatim
32240 #: ../src/guestfs.pod:326
32241 #, no-wrap
32242 msgid ""
32243 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
32244 "\n"
32245 msgstr ""
32246
32247 #. type: textblock
32248 #: ../src/guestfs.pod:328
32249 msgid ""
32250 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
32251 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
32252 "guestfs_copy_size>."
32253 msgstr ""
32254
32255 #. type: =item
32256 #: ../src/guestfs.pod:332
32257 msgid "B<file on the host> to B<file or device>"
32258 msgstr ""
32259
32260 #. type: textblock
32261 #: ../src/guestfs.pod:334
32262 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
32263 msgstr ""
32264
32265 #. type: =item
32266 #: ../src/guestfs.pod:336
32267 msgid "B<file or device> to B<file on the host>"
32268 msgstr ""
32269
32270 #. type: textblock
32271 #: ../src/guestfs.pod:338
32272 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
32273 msgstr ""
32274
32275 #. type: =head2
32276 #: ../src/guestfs.pod:342
32277 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
32278 msgstr ""
32279
32280 #. type: textblock
32281 #: ../src/guestfs.pod:344
32282 msgid ""
32283 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
32284 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
32285 "appears you can only upload and download to files.  However many Un*x-like "
32286 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
32287 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
32288 "and arbitrary file descriptor N."
32289 msgstr ""
32290
32291 #. type: textblock
32292 #: ../src/guestfs.pod:352
32293 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
32294 msgstr ""
32295
32296 #. type: verbatim
32297 #: ../src/guestfs.pod:355
32298 #, no-wrap
32299 msgid ""
32300 " guestfs_download (g, filename, \"/dev/stdout\");\n"
32301 "\n"
32302 msgstr ""
32303
32304 #. type: textblock
32305 #: ../src/guestfs.pod:357
32306 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
32307 msgstr ""
32308
32309 #. type: verbatim
32310 #: ../src/guestfs.pod:359
32311 #, no-wrap
32312 msgid ""
32313 " char devfd[64];\n"
32314 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
32315 " guestfs_tar_out (g, \"/\", devfd);\n"
32316 "\n"
32317 msgstr ""
32318
32319 #. type: =head2
32320 #: ../src/guestfs.pod:363
32321 msgid "LISTING FILES"
32322 msgstr ""
32323
32324 #. type: textblock
32325 #: ../src/guestfs.pod:365
32326 msgid ""
32327 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
32328 "L<guestfish(1)>-equivalent command C<ll>)."
32329 msgstr ""
32330
32331 #. type: textblock
32332 #: ../src/guestfs.pod:368
32333 msgid ""
32334 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
32335 "programs, as a flat list of strings."
32336 msgstr ""
32337
32338 #. type: textblock
32339 #: ../src/guestfs.pod:371
32340 msgid ""
32341 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
32342 "directory, plus additional information about each one.  It is more "
32343 "equivalent to using the L<readdir(3)> call on a local filesystem."
32344 msgstr ""
32345
32346 #. type: textblock
32347 #: ../src/guestfs.pod:375
32348 msgid ""
32349 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
32350 msgstr ""
32351
32352 #. type: =head2
32353 #: ../src/guestfs.pod:378
32354 msgid "RUNNING COMMANDS"
32355 msgstr ""
32356
32357 #. type: textblock
32358 #: ../src/guestfs.pod:380
32359 msgid ""
32360 "Although libguestfs is primarily an API for manipulating files inside guest "
32361 "images, we also provide some limited facilities for running commands inside "
32362 "guests."
32363 msgstr ""
32364
32365 #. type: textblock
32366 #: ../src/guestfs.pod:384
32367 msgid "There are many limitations to this:"
32368 msgstr ""
32369
32370 #. type: textblock
32371 #: ../src/guestfs.pod:390
32372 msgid ""
32373 "The kernel version that the command runs under will be different from what "
32374 "it expects."
32375 msgstr ""
32376
32377 #. type: textblock
32378 #: ../src/guestfs.pod:395
32379 msgid ""
32380 "If the command needs to communicate with daemons, then most likely they "
32381 "won't be running."
32382 msgstr ""
32383
32384 #. type: textblock
32385 #: ../src/guestfs.pod:400
32386 msgid "The command will be running in limited memory."
32387 msgstr ""
32388
32389 #. type: textblock
32390 #: ../src/guestfs.pod:404
32391 msgid ""
32392 "The network may not be available unless you enable it (see L</"
32393 "guestfs_set_network>)."
32394 msgstr ""
32395
32396 #. type: textblock
32397 #: ../src/guestfs.pod:409
32398 msgid "Only supports Linux guests (not Windows, BSD, etc)."
32399 msgstr ""
32400
32401 #. type: textblock
32402 #: ../src/guestfs.pod:413
32403 msgid ""
32404 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
32405 msgstr ""
32406
32407 #. type: textblock
32408 #: ../src/guestfs.pod:418
32409 msgid ""
32410 "For SELinux guests, you may need to enable SELinux and load policy first.  "
32411 "See L</SELINUX> in this manpage."
32412 msgstr ""
32413
32414 #. type: textblock
32415 #: ../src/guestfs.pod:423
32416 msgid ""
32417 "I<Security:> It is not safe to run commands from untrusted, possibly "
32418 "malicious guests.  These commands may attempt to exploit your program by "
32419 "sending unexpected output.  They could also try to exploit the Linux kernel "
32420 "or qemu provided by the libguestfs appliance.  They could use the network "
32421 "provided by the libguestfs appliance to bypass ordinary network partitions "
32422 "and firewalls.  They could use the elevated privileges or different SELinux "
32423 "context of your program to their advantage."
32424 msgstr ""
32425
32426 #. type: textblock
32427 #: ../src/guestfs.pod:432
32428 msgid ""
32429 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
32430 "(a script which runs when the guest next boots normally), and to have this "
32431 "script run the commands you want in the normal context of the running guest, "
32432 "network security and so on.  For information about other security issues, "
32433 "see L</SECURITY>."
32434 msgstr ""
32435
32436 #. type: textblock
32437 #: ../src/guestfs.pod:440
32438 msgid ""
32439 "The two main API calls to run commands are L</guestfs_command> and L</"
32440 "guestfs_sh> (there are also variations)."
32441 msgstr ""
32442
32443 #. type: textblock
32444 #: ../src/guestfs.pod:443
32445 msgid ""
32446 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
32447 "shell globs, redirections, etc will work."
32448 msgstr ""
32449
32450 #. type: =head2
32451 #: ../src/guestfs.pod:446
32452 msgid "CONFIGURATION FILES"
32453 msgstr ""
32454
32455 #. type: textblock
32456 #: ../src/guestfs.pod:448
32457 msgid ""
32458 "To read and write configuration files in Linux guest filesystems, we "
32459 "strongly recommend using Augeas.  For example, Augeas understands how to "
32460 "read and write, say, a Linux shadow password file or X.org configuration "
32461 "file, and so avoids you having to write that code."
32462 msgstr ""
32463
32464 #. type: textblock
32465 #: ../src/guestfs.pod:453
32466 msgid ""
32467 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
32468 "document Augeas itself here because there is excellent documentation on the "
32469 "L<http://augeas.net/> website."
32470 msgstr ""
32471
32472 #. type: textblock
32473 #: ../src/guestfs.pod:457
32474 msgid ""
32475 "If you don't want to use Augeas (you fool!) then try calling L</"
32476 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
32477 "over."
32478 msgstr ""
32479
32480 #. type: =head2
32481 #: ../src/guestfs.pod:461
32482 msgid "SELINUX"
32483 msgstr ""
32484
32485 #. type: textblock
32486 #: ../src/guestfs.pod:463
32487 msgid ""
32488 "We support SELinux guests.  To ensure that labeling happens correctly in "
32489 "SELinux guests, you need to enable SELinux and load the guest's policy:"
32490 msgstr ""
32491
32492 #. type: textblock
32493 #: ../src/guestfs.pod:471
32494 msgid "Before launching, do:"
32495 msgstr ""
32496
32497 #. type: verbatim
32498 #: ../src/guestfs.pod:473
32499 #, no-wrap
32500 msgid ""
32501 " guestfs_set_selinux (g, 1);\n"
32502 "\n"
32503 msgstr ""
32504
32505 #. type: textblock
32506 #: ../src/guestfs.pod:477
32507 msgid ""
32508 "After mounting the guest's filesystem(s), load the policy.  This is best "
32509 "done by running the L<load_policy(8)> command in the guest itself:"
32510 msgstr ""
32511
32512 #. type: verbatim
32513 #: ../src/guestfs.pod:481
32514 #, no-wrap
32515 msgid ""
32516 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
32517 "\n"
32518 msgstr ""
32519
32520 #. type: textblock
32521 #: ../src/guestfs.pod:483
32522 msgid ""
32523 "(Older versions of C<load_policy> require you to specify the name of the "
32524 "policy file)."
32525 msgstr ""
32526
32527 #. type: textblock
32528 #: ../src/guestfs.pod:488
32529 msgid ""
32530 "Optionally, set the security context for the API.  The correct security "
32531 "context to use can only be known by inspecting the guest.  As an example:"
32532 msgstr ""
32533
32534 #. type: verbatim
32535 #: ../src/guestfs.pod:492
32536 #, no-wrap
32537 msgid ""
32538 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
32539 "\n"
32540 msgstr ""
32541
32542 #. type: textblock
32543 #: ../src/guestfs.pod:496
32544 msgid "This will work for running commands and editing existing files."
32545 msgstr ""
32546
32547 #. type: textblock
32548 #: ../src/guestfs.pod:498
32549 msgid ""
32550 "When new files are created, you may need to label them explicitly, for "
32551 "example by running the external command C<restorecon pathname>."
32552 msgstr ""
32553
32554 #. type: =head2
32555 #: ../src/guestfs.pod:502
32556 msgid "UMASK"
32557 msgstr ""
32558
32559 #. type: textblock
32560 #: ../src/guestfs.pod:504
32561 msgid ""
32562 "Certain calls are affected by the current file mode creation mask (the "
32563 "\"umask\").  In particular ones which create files or directories, such as "
32564 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
32565 "either the default mode that the file is created with or modifies the mode "
32566 "that you supply."
32567 msgstr ""
32568
32569 #. type: textblock
32570 #: ../src/guestfs.pod:510
32571 msgid ""
32572 "The default umask is C<022>, so files are created with modes such as C<0644> "
32573 "and directories with C<0755>."
32574 msgstr ""
32575
32576 #. type: textblock
32577 #: ../src/guestfs.pod:513
32578 msgid ""
32579 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
32580 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
32581 "guestfs_chmod> after creating each file or directory."
32582 msgstr ""
32583
32584 #. type: textblock
32585 #: ../src/guestfs.pod:517
32586 msgid "For more information about umask, see L<umask(2)>."
32587 msgstr ""
32588
32589 #. type: textblock
32590 #: ../src/guestfs.pod:521
32591 msgid ""
32592 "Libguestfs allows you to access Linux guests which have been encrypted using "
32593 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
32594 "standard.  This includes nearly all whole disk encryption systems used by "
32595 "modern Linux guests."
32596 msgstr ""
32597
32598 #. type: textblock
32599 #: ../src/guestfs.pod:527
32600 msgid ""
32601 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
32602 "returns the string C<crypto_LUKS>)."
32603 msgstr ""
32604
32605 #. type: textblock
32606 #: ../src/guestfs.pod:530
32607 msgid ""
32608 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
32609 "will require the passphrase!"
32610 msgstr ""
32611
32612 #. type: textblock
32613 #: ../src/guestfs.pod:533
32614 msgid ""
32615 "Opening a LUKS device creates a new device mapper device called C</dev/"
32616 "mapper/mapname> (where C<mapname> is the string you supply to L</"
32617 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
32618 "from and encrypted to the underlying block device respectively."
32619 msgstr ""
32620
32621 #. type: textblock
32622 #: ../src/guestfs.pod:539
32623 msgid ""
32624 "LVM volume groups on the device can be made visible by calling L</"
32625 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
32626 "(s) can now be mounted in the usual way."
32627 msgstr ""
32628
32629 #. type: textblock
32630 #: ../src/guestfs.pod:543
32631 msgid ""
32632 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
32633 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
32634 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
32635 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
32636 "underlying encrypted block device)."
32637 msgstr ""
32638
32639 #. type: =head2
32640 #: ../src/guestfs.pod:550
32641 msgid "INSPECTION"
32642 msgstr ""
32643
32644 #. type: textblock
32645 #: ../src/guestfs.pod:552
32646 msgid ""
32647 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
32648 "contains operating systems, an install CD or a live CD.  (These APIs used to "
32649 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
32650 "version 1.5.3 the most frequently used part of this library has been "
32651 "rewritten in C and moved into the core code)."
32652 msgstr ""
32653
32654 #. type: textblock
32655 #: ../src/guestfs.pod:559
32656 msgid ""
32657 "Add all disks belonging to the unknown virtual machine and call L</"
32658 "guestfs_launch> in the usual way."
32659 msgstr ""
32660
32661 #. type: textblock
32662 #: ../src/guestfs.pod:562
32663 msgid ""
32664 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
32665 "and certain heuristics, and returns a list of operating systems that were "
32666 "found.  An empty list means none were found.  A single element is the root "
32667 "filesystem of the operating system.  For dual- or multi-boot guests, "
32668 "multiple roots can be returned, each one corresponding to a separate "
32669 "operating system.  (Multi-boot virtual machines are extremely rare in the "
32670 "world of virtualization, but since this scenario can happen, we have built "
32671 "libguestfs to deal with it.)"
32672 msgstr ""
32673
32674 #. type: textblock
32675 #: ../src/guestfs.pod:571
32676 msgid ""
32677 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
32678 "to get additional details about that operating system.  For example, call L</"
32679 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
32680 "Windows and Linux-based operating systems respectively."
32681 msgstr ""
32682
32683 #. type: textblock
32684 #: ../src/guestfs.pod:577
32685 msgid ""
32686 "Un*x-like and Linux-based operating systems usually consist of several "
32687 "filesystems which are mounted at boot time (for example, a separate boot "
32688 "partition mounted on C</boot>).  The inspection rules are able to detect how "
32689 "filesystems correspond to mount points.  Call "
32690 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
32691 "hash table like this example:"
32692 msgstr ""
32693
32694 #. type: verbatim
32695 #: ../src/guestfs.pod:584
32696 #, no-wrap
32697 msgid ""
32698 " /boot => /dev/sda1\n"
32699 " /     => /dev/vg_guest/lv_root\n"
32700 " /usr  => /dev/vg_guest/lv_usr\n"
32701 "\n"
32702 msgstr ""
32703
32704 #. type: textblock
32705 #: ../src/guestfs.pod:588
32706 msgid ""
32707 "The caller can then make calls to L</guestfs_mount_options> to mount the "
32708 "filesystems as suggested."
32709 msgstr ""
32710
32711 #. type: textblock
32712 #: ../src/guestfs.pod:591
32713 msgid ""
32714 "Be careful to mount filesystems in the right order (eg. C</> before C</"
32715 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
32716 msgstr ""
32717
32718 #. type: textblock
32719 #: ../src/guestfs.pod:595
32720 msgid ""
32721 "Inspection currently only works for some common operating systems.  "
32722 "Contributors are welcome to send patches for other operating systems that we "
32723 "currently cannot detect."
32724 msgstr ""
32725
32726 #. type: textblock
32727 #: ../src/guestfs.pod:599
32728 msgid ""
32729 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
32730 "for more details.  The L</guestfs_inspect_os> function just ignores any "
32731 "encrypted devices."
32732 msgstr ""
32733
32734 #. type: textblock
32735 #: ../src/guestfs.pod:603
32736 msgid ""
32737 "A note on the implementation: The call L</guestfs_inspect_os> performs "
32738 "inspection and caches the results in the guest handle.  Subsequent calls to "
32739 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
32740 "read the disks.  If you change the content of the guest disks, you can redo "
32741 "inspection by calling L</guestfs_inspect_os> again.  (L</"
32742 "guestfs_inspect_list_applications> works a little differently from the other "
32743 "calls and does read the disks.  See documentation for that function for "
32744 "details)."
32745 msgstr ""
32746
32747 #. type: =head3
32748 #: ../src/guestfs.pod:612
32749 msgid "INSPECTING INSTALL DISKS"
32750 msgstr ""
32751
32752 #. type: textblock
32753 #: ../src/guestfs.pod:614
32754 msgid ""
32755 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
32756 "CDs and more."
32757 msgstr ""
32758
32759 #. type: textblock
32760 #: ../src/guestfs.pod:617
32761 msgid ""
32762 "Call L</guestfs_inspect_get_format> to return the format of the operating "
32763 "system, which currently can be C<installed> (a regular operating system) or "
32764 "C<installer> (some sort of install disk)."
32765 msgstr ""
32766
32767 #. type: textblock
32768 #: ../src/guestfs.pod:621
32769 msgid ""
32770 "Further information is available about the operating system that can be "
32771 "installed using the regular inspection APIs like L</"
32772 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
32773 msgstr ""
32774
32775 #. type: textblock
32776 #: ../src/guestfs.pod:626
32777 msgid ""
32778 "Some additional information specific to installer disks is also available "
32779 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
32780 "guestfs_inspect_is_multipart> calls."
32781 msgstr ""
32782
32783 #. type: =head2
32784 #: ../src/guestfs.pod:631
32785 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
32786 msgstr ""
32787
32788 #. type: textblock
32789 #: ../src/guestfs.pod:633
32790 msgid ""
32791 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
32792 "ntfs-3g.org/> driver."
32793 msgstr ""
32794
32795 #. type: =head3
32796 #: ../src/guestfs.pod:636
32797 msgid "DRIVE LETTERS AND PATHS"
32798 msgstr ""
32799
32800 #. type: textblock
32801 #: ../src/guestfs.pod:638
32802 msgid ""
32803 "DOS and Windows still use drive letters, and the filesystems are always "
32804 "treated as case insensitive by Windows itself, and therefore you might find "
32805 "a Windows configuration file referring to a path like C<c:\\windows"
32806 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
32807 "might be referred to as C</WINDOWS/System32>."
32808 msgstr ""
32809
32810 #. type: textblock
32811 #: ../src/guestfs.pod:644
32812 msgid ""
32813 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
32814 "L</guestfs_inspect_get_drive_mappings>)"
32815 msgstr ""
32816
32817 #. type: textblock
32818 #: ../src/guestfs.pod:647
32819 msgid ""
32820 "Dealing with separator characters (backslash vs forward slash) is outside "
32821 "the scope of libguestfs, but usually a simple character replacement will "
32822 "work."
32823 msgstr ""
32824
32825 #. type: textblock
32826 #: ../src/guestfs.pod:651
32827 msgid ""
32828 "To resolve the case insensitivity of paths, call L</"
32829 "guestfs_case_sensitive_path>."
32830 msgstr ""
32831
32832 #. type: =head3
32833 #: ../src/guestfs.pod:654
32834 msgid "ACCESSING THE WINDOWS REGISTRY"
32835 msgstr ""
32836
32837 #. type: textblock
32838 #: ../src/guestfs.pod:656
32839 msgid ""
32840 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
32841 "files, through the library C<hivex> which is part of the libguestfs project "
32842 "although ships as a separate tarball.  You have to locate and download the "
32843 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
32844 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
32845 "reg(1)> for more help on this issue."
32846 msgstr ""
32847
32848 #. type: =head3
32849 #: ../src/guestfs.pod:664
32850 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
32851 msgstr ""
32852
32853 #. type: textblock
32854 #: ../src/guestfs.pod:666
32855 msgid ""
32856 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
32857 "provide something which looks like a Linux symlink.  The way it tries to do "
32858 "the rewriting is described here:"
32859 msgstr ""
32860
32861 #. type: textblock
32862 #: ../src/guestfs.pod:670
32863 msgid ""
32864 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
32865 "symbolic-links/>"
32866 msgstr ""
32867
32868 #. type: textblock
32869 #: ../src/guestfs.pod:672
32870 msgid ""
32871 "The essential problem is that ntfs-3g simply does not have enough "
32872 "information to do a correct job.  NTFS links can contain drive letters and "
32873 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
32874 "It is almost certainly the case that libguestfs callers should ignore what "
32875 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
32876 msgstr ""
32877
32878 #. type: textblock
32879 #: ../src/guestfs.pod:679
32880 msgid ""
32881 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
32882 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
32883 "attribute, and read the raw reparse data from that (you can find the format "
32884 "documented in various places around the web)."
32885 msgstr ""
32886
32887 #. type: =head3
32888 #: ../src/guestfs.pod:684
32889 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
32890 msgstr ""
32891
32892 #. type: textblock
32893 #: ../src/guestfs.pod:686
32894 msgid ""
32895 "There are other useful extended attributes that can be read from ntfs-3g "
32896 "filesystems (using L</guestfs_getxattr>).  See:"
32897 msgstr ""
32898
32899 #. type: textblock
32900 #: ../src/guestfs.pod:689
32901 msgid ""
32902 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
32903 msgstr ""
32904
32905 #. type: =head2
32906 #: ../src/guestfs.pod:691
32907 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
32908 msgstr ""
32909
32910 #. type: textblock
32911 #: ../src/guestfs.pod:693
32912 msgid ""
32913 "Although we don't want to discourage you from using the C API, we will "
32914 "mention here that the same API is also available in other languages."
32915 msgstr ""
32916
32917 #. type: textblock
32918 #: ../src/guestfs.pod:696
32919 msgid ""
32920 "The API is broadly identical in all supported languages.  This means that "
32921 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
32922 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
32923 "OCaml.  In other words, a straightforward, predictable isomorphism between "
32924 "each language."
32925 msgstr ""
32926
32927 #. type: textblock
32928 #: ../src/guestfs.pod:702
32929 msgid ""
32930 "Error messages are automatically transformed into exceptions if the language "
32931 "supports it."
32932 msgstr ""
32933
32934 #. type: textblock
32935 #: ../src/guestfs.pod:705
32936 msgid ""
32937 "We don't try to \"object orientify\" parts of the API in OO languages, "
32938 "although contributors are welcome to write higher level APIs above what we "
32939 "provide in their favourite languages if they wish."
32940 msgstr ""
32941
32942 #. type: =item
32943 #: ../src/guestfs.pod:711
32944 msgid "B<C++>"
32945 msgstr ""
32946
32947 #. type: textblock
32948 #: ../src/guestfs.pod:713
32949 msgid ""
32950 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
32951 "identical to the C API.  C++ classes and exceptions are not used."
32952 msgstr ""
32953
32954 #. type: =item
32955 #: ../src/guestfs.pod:717
32956 msgid "B<C#>"
32957 msgstr ""
32958
32959 #. type: textblock
32960 #: ../src/guestfs.pod:719
32961 msgid ""
32962 "The C# bindings are highly experimental.  Please read the warnings at the "
32963 "top of C<csharp/Libguestfs.cs>."
32964 msgstr ""
32965
32966 #. type: =item
32967 #: ../src/guestfs.pod:722
32968 msgid "B<Erlang>"
32969 msgstr ""
32970
32971 #. type: textblock
32972 #: ../src/guestfs.pod:724
32973 msgid "See L<guestfs-erlang(3)>."
32974 msgstr ""
32975
32976 #. type: =item
32977 #: ../src/guestfs.pod:726
32978 msgid "B<Haskell>"
32979 msgstr ""
32980
32981 #. type: textblock
32982 #: ../src/guestfs.pod:728
32983 msgid ""
32984 "This is the only language binding that is working but incomplete.  Only "
32985 "calls which return simple integers have been bound in Haskell, and we are "
32986 "looking for help to complete this binding."
32987 msgstr ""
32988
32989 #. type: =item
32990 #: ../src/guestfs.pod:732
32991 msgid "B<Java>"
32992 msgstr ""
32993
32994 #. type: textblock
32995 #: ../src/guestfs.pod:734
32996 msgid ""
32997 "Full documentation is contained in the Javadoc which is distributed with "
32998 "libguestfs.  For examples, see L<guestfs-java(3)>."
32999 msgstr ""
33000
33001 #. type: =item
33002 #: ../src/guestfs.pod:737
33003 msgid "B<OCaml>"
33004 msgstr ""
33005
33006 #. type: textblock
33007 #: ../src/guestfs.pod:739
33008 msgid "See L<guestfs-ocaml(3)>."
33009 msgstr ""
33010
33011 #. type: =item
33012 #: ../src/guestfs.pod:741
33013 msgid "B<Perl>"
33014 msgstr ""
33015
33016 #. type: textblock
33017 #: ../src/guestfs.pod:743
33018 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
33019 msgstr ""
33020
33021 #. type: =item
33022 #: ../src/guestfs.pod:745
33023 msgid "B<PHP>"
33024 msgstr ""
33025
33026 #. type: textblock
33027 #: ../src/guestfs.pod:747
33028 msgid ""
33029 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
33030 "the php-libguestfs package for your distribution."
33031 msgstr ""
33032
33033 #. type: textblock
33034 #: ../src/guestfs.pod:750
33035 msgid "The PHP binding only works correctly on 64 bit machines."
33036 msgstr ""
33037
33038 #. type: =item
33039 #: ../src/guestfs.pod:752
33040 msgid "B<Python>"
33041 msgstr ""
33042
33043 #. type: textblock
33044 #: ../src/guestfs.pod:754
33045 msgid "See L<guestfs-python(3)>."
33046 msgstr ""
33047
33048 #. type: =item
33049 #: ../src/guestfs.pod:756
33050 msgid "B<Ruby>"
33051 msgstr ""
33052
33053 #. type: textblock
33054 #: ../src/guestfs.pod:758
33055 msgid "See L<guestfs-ruby(3)>."
33056 msgstr ""
33057
33058 #. type: =item
33059 #: ../src/guestfs.pod:760
33060 msgid "B<shell scripts>"
33061 msgstr ""
33062
33063 #. type: textblock
33064 #: ../src/guestfs.pod:762
33065 msgid "See L<guestfish(1)>."
33066 msgstr ""
33067
33068 #. type: =head2
33069 #: ../src/guestfs.pod:766
33070 msgid "LIBGUESTFS GOTCHAS"
33071 msgstr ""
33072
33073 #. type: textblock
33074 #: ../src/guestfs.pod:768
33075 msgid ""
33076 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
33077 "system [...] that works in the way it is documented but is counterintuitive "
33078 "and almost invites mistakes.\""
33079 msgstr ""
33080
33081 #. type: textblock
33082 #: ../src/guestfs.pod:772
33083 msgid ""
33084 "Since we developed libguestfs and the associated tools, there are several "
33085 "things we would have designed differently, but are now stuck with for "
33086 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
33087 "release, you can expect these to change.  Beware of them."
33088 msgstr ""
33089
33090 #. type: =item
33091 #: ../src/guestfs.pod:780
33092 msgid "Autosync / forgetting to sync."
33093 msgstr ""
33094
33095 #. type: textblock
33096 #: ../src/guestfs.pod:782
33097 msgid ""
33098 "I<Update:> Autosync is enabled by default for all API users starting from "
33099 "libguestfs 1.5.24.  This section only applies to older versions."
33100 msgstr ""
33101
33102 #. type: textblock
33103 #: ../src/guestfs.pod:785
33104 msgid ""
33105 "When modifying a filesystem from C or another language, you B<must> unmount "
33106 "all filesystems and call L</guestfs_sync> explicitly before you close the "
33107 "libguestfs handle.  You can also call:"
33108 msgstr ""
33109
33110 #. type: verbatim
33111 #: ../src/guestfs.pod:789
33112 #, no-wrap
33113 msgid ""
33114 " guestfs_set_autosync (g, 1);\n"
33115 "\n"
33116 msgstr ""
33117
33118 #. type: textblock
33119 #: ../src/guestfs.pod:791
33120 msgid ""
33121 "to have the unmount/sync done automatically for you when the handle 'g' is "
33122 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
33123 msgstr ""
33124
33125 #. type: textblock
33126 #: ../src/guestfs.pod:795
33127 msgid ""
33128 "If you forget to do this, then it is entirely possible that your changes "
33129 "won't be written out, or will be partially written, or (very rarely) that "
33130 "you'll get disk corruption."
33131 msgstr ""
33132
33133 #. type: textblock
33134 #: ../src/guestfs.pod:799
33135 msgid ""
33136 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
33137 "guestfish scripts that forget to sync will work just fine, which can make "
33138 "this very puzzling if you are trying to debug a problem."
33139 msgstr ""
33140
33141 #. type: =item
33142 #: ../src/guestfs.pod:803
33143 msgid "Mount option C<-o sync> should not be the default."
33144 msgstr ""
33145
33146 #. type: textblock
33147 #: ../src/guestfs.pod:805
33148 msgid ""
33149 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
33150 "However C<-o sync> does not add any reliability benefit, but does have a "
33151 "very large performance impact."
33152 msgstr ""
33153
33154 #. type: textblock
33155 #: ../src/guestfs.pod:809
33156 msgid ""
33157 "The work around is to use L</guestfs_mount_options> and set the mount "
33158 "options that you actually want to use."
33159 msgstr ""
33160
33161 #. type: =item
33162 #: ../src/guestfs.pod:812
33163 msgid "Read-only should be the default."
33164 msgstr ""
33165
33166 #. type: textblock
33167 #: ../src/guestfs.pod:814
33168 msgid ""
33169 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
33170 "specify I<--rw> if you want to make changes to the image."
33171 msgstr ""
33172
33173 #. type: textblock
33174 #: ../src/guestfs.pod:817
33175 msgid "This would reduce the potential to corrupt live VM images."
33176 msgstr ""
33177
33178 #. type: textblock
33179 #: ../src/guestfs.pod:819
33180 msgid ""
33181 "Note that many filesystems change the disk when you just mount and unmount, "
33182 "even if you didn't perform any writes.  You need to use L</"
33183 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
33184 msgstr ""
33185
33186 #. type: =item
33187 #: ../src/guestfs.pod:823
33188 msgid "guestfish command line is hard to use."
33189 msgstr ""
33190
33191 #. type: textblock
33192 #: ../src/guestfs.pod:825
33193 msgid ""
33194 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
33195 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
33196 "exist, so it fails.  In earlier versions of guestfish the error message was "
33197 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
33198 "we should have used C<guestfish -c command> to run commands."
33199 msgstr ""
33200
33201 #. type: =item
33202 #: ../src/guestfs.pod:832
33203 msgid "guestfish megabyte modifiers don't work right on all commands"
33204 msgstr ""
33205
33206 #. type: textblock
33207 #: ../src/guestfs.pod:834
33208 msgid ""
33209 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
33210 "other modifiers).  What guestfish actually does is to multiply the number "
33211 "part by the modifier part and pass the result to the C API.  However this "
33212 "doesn't work for a few APIs which aren't expecting bytes, but are already "
33213 "expecting some other unit (eg. megabytes)."
33214 msgstr ""
33215
33216 #. type: textblock
33217 #: ../src/guestfs.pod:841
33218 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
33219 msgstr ""
33220
33221 #. type: verbatim
33222 #: ../src/guestfs.pod:843
33223 #, no-wrap
33224 msgid ""
33225 " lvcreate LV VG 100M\n"
33226 "\n"
33227 msgstr ""
33228
33229 #. type: textblock
33230 #: ../src/guestfs.pod:845
33231 msgid ""
33232 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
33233 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
33234 "megabytes * megabytes) logical volume.  The error message you get from this "
33235 "is also a little obscure."
33236 msgstr ""
33237
33238 #. type: textblock
33239 #: ../src/guestfs.pod:850
33240 msgid ""
33241 "This could be fixed in the generator by specially marking parameters and "
33242 "return values which take bytes or other units."
33243 msgstr ""
33244
33245 #. type: =item
33246 #: ../src/guestfs.pod:853
33247 msgid "Ambiguity between devices and paths"
33248 msgstr ""
33249
33250 #. type: textblock
33251 #: ../src/guestfs.pod:855
33252 msgid ""
33253 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
33254 "sdb2>) and a similar pathname.  A file might just happen to be called "
33255 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
33256 msgstr ""
33257
33258 #. type: textblock
33259 #: ../src/guestfs.pod:860
33260 msgid ""
33261 "In the current API we usually resolve this ambiguity by having two separate "
33262 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
33263 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
33264 "detecting if the path supplied begins with C</dev/>."
33265 msgstr ""
33266
33267 #. type: textblock
33268 #: ../src/guestfs.pod:866
33269 msgid ""
33270 "To avoid both the ambiguity and the need to duplicate some calls, we could "
33271 "make paths/devices into structured names.  One way to do this would be to "
33272 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
33273 "aspect of grub.  Another way would be to use a structured type, equivalent "
33274 "to this OCaml type:"
33275 msgstr ""
33276
33277 #. type: verbatim
33278 #: ../src/guestfs.pod:872
33279 #, no-wrap
33280 msgid ""
33281 " type path = Path of string | Device of int | Partition of int * int\n"
33282 "\n"
33283 msgstr ""
33284
33285 #. type: textblock
33286 #: ../src/guestfs.pod:874
33287 msgid "which would allow you to pass arguments like:"
33288 msgstr ""
33289
33290 #. type: verbatim
33291 #: ../src/guestfs.pod:876
33292 #, no-wrap
33293 msgid ""
33294 " Path \"/foo/bar\"\n"
33295 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
33296 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
33297 " Path \"/dev/sdb2\"    (* not a device *)\n"
33298 "\n"
33299 msgstr ""
33300
33301 #. type: textblock
33302 #: ../src/guestfs.pod:881
33303 msgid ""
33304 "As you can see there are still problems to resolve even with this "
33305 "representation.  Also consider how it might work in guestfish."
33306 msgstr ""
33307
33308 #. type: =head2
33309 #: ../src/guestfs.pod:886
33310 msgid "KEYS AND PASSPHRASES"
33311 msgstr ""
33312
33313 #. type: textblock
33314 #: ../src/guestfs.pod:888
33315 msgid ""
33316 "Certain libguestfs calls take a parameter that contains sensitive key "
33317 "material, passed in as a C string."
33318 msgstr ""
33319
33320 #. type: textblock
33321 #: ../src/guestfs.pod:891
33322 msgid ""
33323 "In the future we would hope to change the libguestfs implementation so that "
33324 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
33325 "swap.  However this is I<not> done at the moment, because of the complexity "
33326 "of such an implementation."
33327 msgstr ""
33328
33329 #. type: textblock
33330 #: ../src/guestfs.pod:896
33331 msgid ""
33332 "Therefore you should be aware that any key parameter you pass to libguestfs "
33333 "might end up being written out to the swap partition.  If this is a concern, "
33334 "scrub the swap partition or don't use libguestfs on encrypted devices."
33335 msgstr ""
33336
33337 #. type: =head2
33338 #: ../src/guestfs.pod:901
33339 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
33340 msgstr ""
33341
33342 #. type: textblock
33343 #: ../src/guestfs.pod:903
33344 msgid ""
33345 "All high-level libguestfs actions are synchronous.  If you want to use "
33346 "libguestfs asynchronously then you must create a thread."
33347 msgstr ""
33348
33349 #. type: textblock
33350 #: ../src/guestfs.pod:906
33351 msgid ""
33352 "Only use the handle from a single thread.  Either use the handle exclusively "
33353 "from one thread, or provide your own mutex so that two threads cannot issue "
33354 "calls on the same handle at the same time."
33355 msgstr ""
33356
33357 #. type: textblock
33358 #: ../src/guestfs.pod:910
33359 msgid ""
33360 "See the graphical program guestfs-browser for one possible architecture for "
33361 "multithreaded programs using libvirt and libguestfs."
33362 msgstr ""
33363
33364 #. type: =head2
33365 #: ../src/guestfs.pod:913
33366 msgid "PATH"
33367 msgstr ""
33368
33369 #. type: textblock
33370 #: ../src/guestfs.pod:915
33371 msgid ""
33372 "Libguestfs needs a supermin appliance, which it finds by looking along an "
33373 "internal path."
33374 msgstr ""
33375
33376 #. type: textblock
33377 #: ../src/guestfs.pod:918
33378 msgid ""
33379 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
33380 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
33381 msgstr ""
33382
33383 #. type: textblock
33384 #: ../src/guestfs.pod:921
33385 msgid ""
33386 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
33387 "to change the directories that libguestfs will search in.  The value is a "
33388 "colon-separated list of paths.  The current directory is I<not> searched "
33389 "unless the path contains an empty element or C<.>.  For example "
33390 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
33391 "then C</usr/lib/guestfs>."
33392 msgstr ""
33393
33394 #. type: =head2
33395 #: ../src/guestfs.pod:928
33396 msgid "QEMU WRAPPERS"
33397 msgstr ""
33398
33399 #. type: textblock
33400 #: ../src/guestfs.pod:930
33401 msgid ""
33402 "If you want to compile your own qemu, run qemu from a non-standard location, "
33403 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
33404 "around qemu."
33405 msgstr ""
33406
33407 #. type: textblock
33408 #: ../src/guestfs.pod:934
33409 msgid ""
33410 "There is one important rule to remember: you I<must C<exec qemu>> as the "
33411 "last command in the shell script (so that qemu replaces the shell and "
33412 "becomes the direct child of the libguestfs-using program).  If you don't do "
33413 "this, then the qemu process won't be cleaned up correctly."
33414 msgstr ""
33415
33416 #. type: textblock
33417 #: ../src/guestfs.pod:939
33418 msgid ""
33419 "Here is an example of a wrapper, where I have built my own copy of qemu from "
33420 "source:"
33421 msgstr ""
33422
33423 #. type: verbatim
33424 #: ../src/guestfs.pod:942
33425 #, no-wrap
33426 msgid ""
33427 " #!/bin/sh -\n"
33428 " qemudir=/home/rjones/d/qemu\n"
33429 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
33430 "\n"
33431 msgstr ""
33432
33433 #. type: textblock
33434 #: ../src/guestfs.pod:946
33435 msgid ""
33436 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
33437 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
33438 "example:"
33439 msgstr ""
33440
33441 #. type: verbatim
33442 #: ../src/guestfs.pod:950
33443 #, no-wrap
33444 msgid ""
33445 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
33446 "\n"
33447 msgstr ""
33448
33449 #. type: textblock
33450 #: ../src/guestfs.pod:952
33451 msgid ""
33452 "Note that libguestfs also calls qemu with the -help and -version options in "
33453 "order to determine features."
33454 msgstr ""
33455
33456 #. type: textblock
33457 #: ../src/guestfs.pod:955
33458 msgid ""
33459 "Wrappers can also be used to edit the options passed to qemu.  In the "
33460 "following example, the C<-machine ...> option (C<-machine> and the following "
33461 "argument) are removed from the command line and replaced with C<-machine pc,"
33462 "accel=tcg>.  The while loop iterates over the options until it finds the "
33463 "right one to remove, putting the remaining options into the C<args> array."
33464 msgstr ""
33465
33466 #. type: verbatim
33467 #: ../src/guestfs.pod:962
33468 #, no-wrap
33469 msgid ""
33470 " #!/bin/bash -\n"
33471 " \n"
33472 msgstr ""
33473
33474 #. type: verbatim
33475 #: ../src/guestfs.pod:964
33476 #, no-wrap
33477 msgid ""
33478 " i=0\n"
33479 " while [ $# -gt 0 ]; do\n"
33480 "     case \"$1\" in\n"
33481 "     -machine)\n"
33482 "         shift 2;;\n"
33483 "     *)\n"
33484 "         args[i]=\"$1\"\n"
33485 "         (( i++ ))\n"
33486 "         shift ;;\n"
33487 "     esac\n"
33488 " done\n"
33489 " \n"
33490 msgstr ""
33491
33492 #. type: verbatim
33493 #: ../src/guestfs.pod:976
33494 #, no-wrap
33495 msgid ""
33496 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
33497 "\n"
33498 msgstr ""
33499
33500 #. type: =head2
33501 #: ../src/guestfs.pod:978
33502 msgid "ATTACHING TO RUNNING DAEMONS"
33503 msgstr ""
33504
33505 #. type: textblock
33506 #: ../src/guestfs.pod:980
33507 msgid ""
33508 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
33509 "babies.  Use with caution."
33510 msgstr ""
33511
33512 #. type: textblock
33513 #: ../src/guestfs.pod:983
33514 msgid ""
33515 "I<Note (2):> This section explains how to attach to a running daemon from a "
33516 "low level perspective.  For most users, simply using virt tools such as "
33517 "L<guestfish(1)> with the I<--live> option will \"just work\"."
33518 msgstr ""
33519
33520 #. type: =head3
33521 #: ../src/guestfs.pod:987
33522 msgid "Using guestfs_set_attach_method"
33523 msgstr ""
33524
33525 #. type: textblock
33526 #: ../src/guestfs.pod:989
33527 msgid ""
33528 "By calling L</guestfs_set_attach_method> you can change how the library "
33529 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
33530 "ARCHITECTURE> for some background)."
33531 msgstr ""
33532
33533 #. type: textblock
33534 #: ../src/guestfs.pod:993
33535 msgid ""
33536 "The normal attach method is C<appliance>, where a small appliance is created "
33537 "containing the daemon, and then the library connects to this."
33538 msgstr ""
33539
33540 #. type: textblock
33541 #: ../src/guestfs.pod:996
33542 msgid ""
33543 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
33544 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
33545 "daemon over the Unix domain socket."
33546 msgstr ""
33547
33548 #. type: textblock
33549 #: ../src/guestfs.pod:1000
33550 msgid ""
33551 "The normal use for this is to connect to a running virtual machine that "
33552 "contains a C<guestfsd> daemon, and send commands so you can read and write "
33553 "files inside the live virtual machine."
33554 msgstr ""
33555
33556 #. type: =head3
33557 #: ../src/guestfs.pod:1004
33558 msgid "Using guestfs_add_domain with live flag"
33559 msgstr ""
33560
33561 #. type: textblock
33562 #: ../src/guestfs.pod:1006
33563 msgid ""
33564 "L</guestfs_add_domain> provides some help for getting the correct attach "
33565 "method.  If you pass the C<live> option to this function, then (if the "
33566 "virtual machine is running) it will examine the libvirt XML looking for a "
33567 "virtio-serial channel to connect to:"
33568 msgstr ""
33569
33570 #. type: verbatim
33571 #: ../src/guestfs.pod:1012
33572 #, no-wrap
33573 msgid ""
33574 " <domain>\n"
33575 "   ...\n"
33576 "   <devices>\n"
33577 "     ...\n"
33578 "     <channel type='unix'>\n"
33579 "       <source mode='bind' path='/path/to/socket'/>\n"
33580 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
33581 "     </channel>\n"
33582 "     ...\n"
33583 "   </devices>\n"
33584 " </domain>\n"
33585 "\n"
33586 msgstr ""
33587
33588 #. type: textblock
33589 #: ../src/guestfs.pod:1024
33590 msgid ""
33591 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
33592 "method to C<unix:/path/to/socket>."
33593 msgstr ""
33594
33595 #. type: textblock
33596 #: ../src/guestfs.pod:1027
33597 msgid ""
33598 "Some of the libguestfs tools (including guestfish) support a I<--live> "
33599 "option which is passed through to L</guestfs_add_domain> thus allowing you "
33600 "to attach to and modify live virtual machines."
33601 msgstr ""
33602
33603 #. type: textblock
33604 #: ../src/guestfs.pod:1031
33605 msgid ""
33606 "The virtual machine needs to have been set up beforehand so that it has the "
33607 "virtio-serial channel and so that guestfsd is running inside it."
33608 msgstr ""
33609
33610 #. type: =head2
33611 #: ../src/guestfs.pod:1035
33612 msgid "ABI GUARANTEE"
33613 msgstr ""
33614
33615 #. type: textblock
33616 #: ../src/guestfs.pod:1037
33617 msgid ""
33618 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
33619 "actions as outlined in this section.  Although we will deprecate some "
33620 "actions, for example if they get replaced by newer calls, we will keep the "
33621 "old actions forever.  This allows you the developer to program in confidence "
33622 "against the libguestfs API."
33623 msgstr ""
33624
33625 #. type: =head2
33626 #: ../src/guestfs.pod:1043
33627 msgid "BLOCK DEVICE NAMING"
33628 msgstr ""
33629
33630 #. type: textblock
33631 #: ../src/guestfs.pod:1045
33632 msgid ""
33633 "In the kernel there is now quite a profusion of schemata for naming block "
33634 "devices (in this context, by I<block device> I mean a physical or virtual "
33635 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
33636 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
33637 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
33638 "for the old IDE driver (particularly for SATA devices) those devices also "
33639 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
33640 "paravirtualized drivers.  This has created several different naming systems, "
33641 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
33642 msgstr ""
33643
33644 #. type: textblock
33645 #: ../src/guestfs.pod:1057
33646 msgid ""
33647 "As discussed above, libguestfs uses a qemu appliance running an embedded "
33648 "Linux kernel to access block devices.  We can run a variety of appliances "
33649 "based on a variety of Linux kernels."
33650 msgstr ""
33651
33652 #. type: textblock
33653 #: ../src/guestfs.pod:1061
33654 msgid ""
33655 "This causes a problem for libguestfs because many API calls use device or "
33656 "partition names.  Working scripts and the recipe (example) scripts that we "
33657 "make available over the internet could fail if the naming scheme changes."
33658 msgstr ""
33659
33660 #. type: textblock
33661 #: ../src/guestfs.pod:1066
33662 msgid ""
33663 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
33664 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
33665 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
33666 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
33667 msgstr ""
33668
33669 #. type: textblock
33670 #: ../src/guestfs.pod:1072
33671 msgid ""
33672 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
33673 "L</guestfs_list_partitions> and similar calls return the true names of the "
33674 "devices and partitions as known to the appliance."
33675 msgstr ""
33676
33677 #. type: =head3
33678 #: ../src/guestfs.pod:1077
33679 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
33680 msgstr ""
33681
33682 #. type: textblock
33683 #: ../src/guestfs.pod:1079
33684 msgid ""
33685 "Usually this translation is transparent.  However in some (very rare)  cases "
33686 "you may need to know the exact algorithm.  Such cases include where you use "
33687 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
33688 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
33689 msgstr ""
33690
33691 #. type: textblock
33692 #: ../src/guestfs.pod:1085
33693 msgid ""
33694 "The algorithm is applied only to I<parameters> which are known to be either "
33695 "device or partition names.  Return values from functions such as L</"
33696 "guestfs_list_devices> are never changed."
33697 msgstr ""
33698
33699 #. type: textblock
33700 #: ../src/guestfs.pod:1093
33701 msgid "Is the string a parameter which is a device or partition name?"
33702 msgstr ""
33703
33704 #. type: textblock
33705 #: ../src/guestfs.pod:1097
33706 msgid "Does the string begin with C</dev/sd>?"
33707 msgstr ""
33708
33709 #. type: textblock
33710 #: ../src/guestfs.pod:1101
33711 msgid ""
33712 "Does the named device exist? If so, we use that device.  However if I<not> "
33713 "then we continue with this algorithm."
33714 msgstr ""
33715
33716 #. type: textblock
33717 #: ../src/guestfs.pod:1106
33718 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
33719 msgstr ""
33720
33721 #. type: textblock
33722 #: ../src/guestfs.pod:1108
33723 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
33724 msgstr ""
33725
33726 #. type: textblock
33727 #: ../src/guestfs.pod:1110
33728 msgid "If that named device exists, use it.  If not, continue."
33729 msgstr ""
33730
33731 #. type: textblock
33732 #: ../src/guestfs.pod:1114
33733 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
33734 msgstr ""
33735
33736 #. type: textblock
33737 #: ../src/guestfs.pod:1116
33738 msgid "If that named device exists, use it.  If not, return an error."
33739 msgstr ""
33740
33741 #. type: =head3
33742 #: ../src/guestfs.pod:1120
33743 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
33744 msgstr ""
33745
33746 #. type: textblock
33747 #: ../src/guestfs.pod:1122
33748 msgid ""
33749 "Although the standard naming scheme and automatic translation is useful for "
33750 "simple programs and guestfish scripts, for larger programs it is best not to "
33751 "rely on this mechanism."
33752 msgstr ""
33753
33754 #. type: textblock
33755 #: ../src/guestfs.pod:1126
33756 msgid ""
33757 "Where possible for maximum future portability programs using libguestfs "
33758 "should use these future-proof techniques:"
33759 msgstr ""
33760
33761 #. type: textblock
33762 #: ../src/guestfs.pod:1133
33763 msgid ""
33764 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
33765 "device names, and then use those names directly."
33766 msgstr ""
33767
33768 #. type: textblock
33769 #: ../src/guestfs.pod:1136
33770 msgid ""
33771 "Since those device names exist by definition, they will never be translated."
33772 msgstr ""
33773
33774 #. type: textblock
33775 #: ../src/guestfs.pod:1141
33776 msgid ""
33777 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
33778 "filesystem labels."
33779 msgstr ""
33780
33781 #. type: =head1
33782 #: ../src/guestfs.pod:1146
33783 msgid "SECURITY"
33784 msgstr ""
33785
33786 #. type: textblock
33787 #: ../src/guestfs.pod:1148
33788 msgid ""
33789 "This section discusses security implications of using libguestfs, "
33790 "particularly with untrusted or malicious guests or disk images."
33791 msgstr ""
33792
33793 #. type: =head2
33794 #: ../src/guestfs.pod:1151
33795 msgid "GENERAL SECURITY CONSIDERATIONS"
33796 msgstr ""
33797
33798 #. type: textblock
33799 #: ../src/guestfs.pod:1153
33800 msgid ""
33801 "Be careful with any files or data that you download from a guest (by "
33802 "\"download\" we mean not just the L</guestfs_download> command but any "
33803 "command that reads files, filenames, directories or anything else from a "
33804 "disk image).  An attacker could manipulate the data to fool your program "
33805 "into doing the wrong thing.  Consider cases such as:"
33806 msgstr ""
33807
33808 #. type: textblock
33809 #: ../src/guestfs.pod:1163
33810 msgid "the data (file etc) not being present"
33811 msgstr ""
33812
33813 #. type: textblock
33814 #: ../src/guestfs.pod:1167
33815 msgid "being present but empty"
33816 msgstr ""
33817
33818 #. type: textblock
33819 #: ../src/guestfs.pod:1171
33820 msgid "being much larger than normal"
33821 msgstr ""
33822
33823 #. type: textblock
33824 #: ../src/guestfs.pod:1175
33825 msgid "containing arbitrary 8 bit data"
33826 msgstr ""
33827
33828 #. type: textblock
33829 #: ../src/guestfs.pod:1179
33830 msgid "being in an unexpected character encoding"
33831 msgstr ""
33832
33833 #. type: textblock
33834 #: ../src/guestfs.pod:1183
33835 msgid "containing homoglyphs."
33836 msgstr ""
33837
33838 #. type: =head2
33839 #: ../src/guestfs.pod:1187
33840 msgid "SECURITY OF MOUNTING FILESYSTEMS"
33841 msgstr ""
33842
33843 #. type: textblock
33844 #: ../src/guestfs.pod:1189
33845 msgid ""
33846 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
33847 "(VFS) module can sometimes be escalated into exploits by deliberately "
33848 "creating a malicious, malformed filesystem.  These exploits are very severe "
33849 "for two reasons.  Firstly there are very many filesystem drivers in the "
33850 "kernel, and many of them are infrequently used and not much developer "
33851 "attention has been paid to the code.  Linux userspace helps potential "
33852 "crackers by detecting the filesystem type and automatically choosing the "
33853 "right VFS driver, even if that filesystem type is obscure or unexpected for "
33854 "the administrator.  Secondly, a kernel-level exploit is like a local root "
33855 "exploit (worse in some ways), giving immediate and total access to the "
33856 "system right down to the hardware level."
33857 msgstr ""
33858
33859 #. type: textblock
33860 #: ../src/guestfs.pod:1202
33861 msgid ""
33862 "That explains why you should never mount a filesystem from an untrusted "
33863 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
33864 "inside a qemu virtual machine, usually running as a non-root user.  The "
33865 "attacker would need to write a filesystem which first exploited the kernel, "
33866 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
33867 "the libguestfs protocol, and finally to be as serious as the host kernel "
33868 "exploit it would need to escalate its privileges to root.  This multi-step "
33869 "escalation, performed by a static piece of data, is thought to be extremely "
33870 "hard to do, although we never say 'never' about security issues."
33871 msgstr ""
33872
33873 #. type: textblock
33874 #: ../src/guestfs.pod:1213
33875 msgid ""
33876 "In any case callers can reduce the attack surface by forcing the filesystem "
33877 "type when mounting (use L</guestfs_mount_vfs>)."
33878 msgstr ""
33879
33880 #. type: =head2
33881 #: ../src/guestfs.pod:1216
33882 msgid "PROTOCOL SECURITY"
33883 msgstr ""
33884
33885 #. type: textblock
33886 #: ../src/guestfs.pod:1218
33887 msgid ""
33888 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
33889 "defined upper message size.  However a program that uses libguestfs must "
33890 "also take care - for example you can write a program that downloads a binary "
33891 "from a disk image and executes it locally, and no amount of protocol "
33892 "security will save you from the consequences."
33893 msgstr ""
33894
33895 #. type: =head2
33896 #: ../src/guestfs.pod:1224
33897 msgid "INSPECTION SECURITY"
33898 msgstr ""
33899
33900 #. type: textblock
33901 #: ../src/guestfs.pod:1226
33902 msgid ""
33903 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
33904 "directly from the guest, and these could contain any 8 bit data.  Callers "
33905 "should be careful to escape these before printing them to a structured file "
33906 "(for example, use HTML escaping if creating a web page)."
33907 msgstr ""
33908
33909 #. type: textblock
33910 #: ../src/guestfs.pod:1232
33911 msgid ""
33912 "Guest configuration may be altered in unusual ways by the administrator of "
33913 "the virtual machine, and may not reflect reality (particularly for untrusted "
33914 "or actively malicious guests).  For example we parse the hostname from "
33915 "configuration files like C</etc/sysconfig/network> that we find in the "
33916 "guest, but the guest administrator can easily manipulate these files to "
33917 "provide the wrong hostname."
33918 msgstr ""
33919
33920 #. type: textblock
33921 #: ../src/guestfs.pod:1240
33922 msgid ""
33923 "The inspection API parses guest configuration using two external libraries: "
33924 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
33925 "designed to be robust in the face of malicious data, although denial of "
33926 "service attacks are still possible, for example with oversized configuration "
33927 "files."
33928 msgstr ""
33929
33930 #. type: =head2
33931 #: ../src/guestfs.pod:1246
33932 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
33933 msgstr ""
33934
33935 #. type: textblock
33936 #: ../src/guestfs.pod:1248
33937 msgid ""
33938 "Be very cautious about running commands from the guest.  By running a "
33939 "command in the guest, you are giving CPU time to a binary that you do not "
33940 "control, under the same user account as the library, albeit wrapped in qemu "
33941 "virtualization.  More information and alternatives can be found in the "
33942 "section L</RUNNING COMMANDS>."
33943 msgstr ""
33944
33945 #. type: =head2
33946 #: ../src/guestfs.pod:1254
33947 msgid "CVE-2010-3851"
33948 msgstr ""
33949
33950 #. type: textblock
33951 #: ../src/guestfs.pod:1256
33952 msgid "https://bugzilla.redhat.com/642934"
33953 msgstr ""
33954
33955 #. type: textblock
33956 #: ../src/guestfs.pod:1258
33957 msgid ""
33958 "This security bug concerns the automatic disk format detection that qemu "
33959 "does on disk images."
33960 msgstr ""
33961
33962 #. type: textblock
33963 #: ../src/guestfs.pod:1261
33964 msgid ""
33965 "A raw disk image is just the raw bytes, there is no header.  Other disk "
33966 "images like qcow2 contain a special header.  Qemu deals with this by looking "
33967 "for one of the known headers, and if none is found then assuming the disk "
33968 "image must be raw."
33969 msgstr ""
33970
33971 #. type: textblock
33972 #: ../src/guestfs.pod:1266
33973 msgid ""
33974 "This allows a guest which has been given a raw disk image to write some "
33975 "other header.  At next boot (or when the disk image is accessed by "
33976 "libguestfs) qemu would do autodetection and think the disk image format was, "
33977 "say, qcow2 based on the header written by the guest."
33978 msgstr ""
33979
33980 #. type: textblock
33981 #: ../src/guestfs.pod:1271
33982 msgid ""
33983 "This in itself would not be a problem, but qcow2 offers many features, one "
33984 "of which is to allow a disk image to refer to another image (called the "
33985 "\"backing disk\").  It does this by placing the path to the backing disk "
33986 "into the qcow2 header.  This path is not validated and could point to any "
33987 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
33988 "\"holes\" in the qcow2 disk image, which of course is completely under the "
33989 "control of the attacker."
33990 msgstr ""
33991
33992 #. type: textblock
33993 #: ../src/guestfs.pod:1279
33994 msgid ""
33995 "In libguestfs this is rather hard to exploit except under two circumstances:"
33996 msgstr ""
33997
33998 #. type: textblock
33999 #: ../src/guestfs.pod:1286
34000 msgid "You have enabled the network or have opened the disk in write mode."
34001 msgstr ""
34002
34003 #. type: textblock
34004 #: ../src/guestfs.pod:1290
34005 msgid ""
34006 "You are also running untrusted code from the guest (see L</RUNNING "
34007 "COMMANDS>)."
34008 msgstr ""
34009
34010 #. type: textblock
34011 #: ../src/guestfs.pod:1295
34012 msgid ""
34013 "The way to avoid this is to specify the expected disk format when adding "
34014 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
34015 "should always do this if the disk is raw format, and it's a good idea for "
34016 "other cases too."
34017 msgstr ""
34018
34019 #. type: textblock
34020 #: ../src/guestfs.pod:1300
34021 msgid ""
34022 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
34023 "format is fetched from libvirt and passed through."
34024 msgstr ""
34025
34026 #. type: textblock
34027 #: ../src/guestfs.pod:1303
34028 msgid ""
34029 "For libguestfs tools, use the I<--format> command line parameter as "
34030 "appropriate."
34031 msgstr ""
34032
34033 #. type: =head1
34034 #: ../src/guestfs.pod:1306
34035 msgid "CONNECTION MANAGEMENT"
34036 msgstr ""
34037
34038 #. type: =head2
34039 #: ../src/guestfs.pod:1308
34040 msgid "guestfs_h *"
34041 msgstr ""
34042
34043 #. type: textblock
34044 #: ../src/guestfs.pod:1310
34045 msgid ""
34046 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
34047 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
34048 "handle and release all resources used."
34049 msgstr ""
34050
34051 #. type: textblock
34052 #: ../src/guestfs.pod:1314
34053 msgid ""
34054 "For information on using multiple handles and threads, see the section L</"
34055 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
34056 msgstr ""
34057
34058 #. type: =head2
34059 #: ../src/guestfs.pod:1317
34060 msgid "guestfs_create"
34061 msgstr ""
34062
34063 #. type: verbatim
34064 #: ../src/guestfs.pod:1319
34065 #, no-wrap
34066 msgid ""
34067 " guestfs_h *guestfs_create (void);\n"
34068 "\n"
34069 msgstr ""
34070
34071 #. type: textblock
34072 #: ../src/guestfs.pod:1321
34073 msgid "Create a connection handle."
34074 msgstr ""
34075
34076 #. type: textblock
34077 #: ../src/guestfs.pod:1323
34078 msgid ""
34079 "On success this returns a non-NULL pointer to a handle.  On error it returns "
34080 "NULL."
34081 msgstr ""
34082
34083 #. type: textblock
34084 #: ../src/guestfs.pod:1326
34085 msgid ""
34086 "You have to \"configure\" the handle after creating it.  This includes "
34087 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
34088 "handle at least once."
34089 msgstr ""
34090
34091 #. type: textblock
34092 #: ../src/guestfs.pod:1330
34093 msgid "After configuring the handle, you have to call L</guestfs_launch>."
34094 msgstr ""
34095
34096 #. type: textblock
34097 #: ../src/guestfs.pod:1332
34098 msgid ""
34099 "You may also want to configure error handling for the handle.  See the L</"
34100 "ERROR HANDLING> section below."
34101 msgstr ""
34102
34103 #. type: =head2
34104 #: ../src/guestfs.pod:1335
34105 msgid "guestfs_close"
34106 msgstr ""
34107
34108 #. type: verbatim
34109 #: ../src/guestfs.pod:1337
34110 #, no-wrap
34111 msgid ""
34112 " void guestfs_close (guestfs_h *g);\n"
34113 "\n"
34114 msgstr ""
34115
34116 #. type: textblock
34117 #: ../src/guestfs.pod:1339
34118 msgid "This closes the connection handle and frees up all resources used."
34119 msgstr ""
34120
34121 #. type: textblock
34122 #: ../src/guestfs.pod:1341
34123 msgid ""
34124 "If autosync was set on the handle and the handle was launched, then this "
34125 "implicitly calls various functions to unmount filesystems and sync the "
34126 "disk.  See L</guestfs_set_autosync> for more details."
34127 msgstr ""
34128
34129 #. type: textblock
34130 #: ../src/guestfs.pod:1345
34131 msgid "If a close callback was set on the handle, then it is called."
34132 msgstr ""
34133
34134 #. type: =head1
34135 #: ../src/guestfs.pod:1347
34136 msgid "ERROR HANDLING"
34137 msgstr ""
34138
34139 #. type: textblock
34140 #: ../src/guestfs.pod:1349
34141 msgid ""
34142 "API functions can return errors.  For example, almost all functions that "
34143 "return C<int> will return C<-1> to indicate an error."
34144 msgstr ""
34145
34146 #. type: textblock
34147 #: ../src/guestfs.pod:1352
34148 msgid ""
34149 "Additional information is available for errors: an error message string and "
34150 "optionally an error number (errno) if the thing that failed was a system "
34151 "call."
34152 msgstr ""
34153
34154 #. type: textblock
34155 #: ../src/guestfs.pod:1356
34156 msgid ""
34157 "You can get at the additional information about the last error on the handle "
34158 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
34159 "up an error handler with L</guestfs_set_error_handler>."
34160 msgstr ""
34161
34162 #. type: textblock
34163 #: ../src/guestfs.pod:1361
34164 msgid ""
34165 "When the handle is created, a default error handler is installed which "
34166 "prints the error message string to C<stderr>.  For small short-running "
34167 "command line programs it is sufficient to do:"
34168 msgstr ""
34169
34170 #. type: verbatim
34171 #: ../src/guestfs.pod:1365
34172 #, no-wrap
34173 msgid ""
34174 " if (guestfs_launch (g) == -1)\n"
34175 "   exit (EXIT_FAILURE);\n"
34176 "\n"
34177 msgstr ""
34178
34179 #. type: textblock
34180 #: ../src/guestfs.pod:1368
34181 msgid ""
34182 "since the default error handler will ensure that an error message has been "
34183 "printed to C<stderr> before the program exits."
34184 msgstr ""
34185
34186 #. type: textblock
34187 #: ../src/guestfs.pod:1371
34188 msgid ""
34189 "For other programs the caller will almost certainly want to install an "
34190 "alternate error handler or do error handling in-line like this:"
34191 msgstr ""
34192
34193 #. type: verbatim
34194 #: ../src/guestfs.pod:1374
34195 #, no-wrap
34196 msgid ""
34197 " /* This disables the default behaviour of printing errors\n"
34198 "    on stderr. */\n"
34199 " guestfs_set_error_handler (g, NULL, NULL);\n"
34200 " \n"
34201 msgstr ""
34202
34203 #. type: verbatim
34204 #: ../src/guestfs.pod:1378
34205 #, no-wrap
34206 msgid ""
34207 " if (guestfs_launch (g) == -1) {\n"
34208 "   /* Examine the error message and print it etc. */\n"
34209 "   char *msg = guestfs_last_error (g);\n"
34210 "   int errnum = guestfs_last_errno (g);\n"
34211 "   fprintf (stderr, \"%s\", msg);\n"
34212 "   if (errnum != 0)\n"
34213 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
34214 "   fprintf (stderr, \"\\n\");\n"
34215 "   /* ... */\n"
34216 " }\n"
34217 "\n"
34218 msgstr ""
34219
34220 #. type: textblock
34221 #: ../src/guestfs.pod:1389
34222 msgid ""
34223 "Out of memory errors are handled differently.  The default action is to call "
34224 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
34225 "guestfs_set_out_of_memory_handler>."
34226 msgstr ""
34227
34228 #. type: textblock
34229 #: ../src/guestfs.pod:1393
34230 msgid ""
34231 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
34232 "because there is no handle if this happens there is no way to get additional "
34233 "error information.  However L</guestfs_create> is supposed to be a "
34234 "lightweight operation which can only fail because of insufficient memory (it "
34235 "returns NULL in this case)."
34236 msgstr ""
34237
34238 #. type: =head2
34239 #: ../src/guestfs.pod:1399
34240 msgid "guestfs_last_error"
34241 msgstr ""
34242
34243 #. type: verbatim
34244 #: ../src/guestfs.pod:1401
34245 #, no-wrap
34246 msgid ""
34247 " const char *guestfs_last_error (guestfs_h *g);\n"
34248 "\n"
34249 msgstr ""
34250
34251 #. type: textblock
34252 #: ../src/guestfs.pod:1403
34253 msgid ""
34254 "This returns the last error message that happened on C<g>.  If there has not "
34255 "been an error since the handle was created, then this returns C<NULL>."
34256 msgstr ""
34257
34258 #. type: textblock
34259 #: ../src/guestfs.pod:1407
34260 msgid ""
34261 "The lifetime of the returned string is until the next error occurs, or L</"
34262 "guestfs_close> is called."
34263 msgstr ""
34264
34265 #. type: =head2
34266 #: ../src/guestfs.pod:1410
34267 msgid "guestfs_last_errno"
34268 msgstr ""
34269
34270 #. type: verbatim
34271 #: ../src/guestfs.pod:1412
34272 #, no-wrap
34273 msgid ""
34274 " int guestfs_last_errno (guestfs_h *g);\n"
34275 "\n"
34276 msgstr ""
34277
34278 #. type: textblock
34279 #: ../src/guestfs.pod:1414
34280 msgid "This returns the last error number (errno) that happened on C<g>."
34281 msgstr ""
34282
34283 #. type: textblock
34284 #: ../src/guestfs.pod:1416
34285 msgid "If successful, an errno integer not equal to zero is returned."
34286 msgstr ""
34287
34288 #. type: textblock
34289 #: ../src/guestfs.pod:1418
34290 msgid ""
34291 "If no error, this returns 0.  This call can return 0 in three situations:"
34292 msgstr ""
34293
34294 #. type: textblock
34295 #: ../src/guestfs.pod:1425
34296 msgid "There has not been any error on the handle."
34297 msgstr ""
34298
34299 #. type: textblock
34300 #: ../src/guestfs.pod:1429
34301 msgid ""
34302 "There has been an error but the errno was meaningless.  This corresponds to "
34303 "the case where the error did not come from a failed system call, but for "
34304 "some other reason."
34305 msgstr ""
34306
34307 #. type: textblock
34308 #: ../src/guestfs.pod:1435
34309 msgid ""
34310 "There was an error from a failed system call, but for some reason the errno "
34311 "was not captured and returned.  This usually indicates a bug in libguestfs."
34312 msgstr ""
34313
34314 #. type: textblock
34315 #: ../src/guestfs.pod:1441
34316 msgid ""
34317 "Libguestfs tries to convert the errno from inside the applicance into a "
34318 "corresponding errno for the caller (not entirely trivial: the appliance "
34319 "might be running a completely different operating system from the library "
34320 "and error numbers are not standardized across Un*xen).  If this could not be "
34321 "done, then the error is translated to C<EINVAL>.  In practice this should "
34322 "only happen in very rare circumstances."
34323 msgstr ""
34324
34325 #. type: =head2
34326 #: ../src/guestfs.pod:1449
34327 msgid "guestfs_set_error_handler"
34328 msgstr ""
34329
34330 #. type: verbatim
34331 #: ../src/guestfs.pod:1451
34332 #, no-wrap
34333 msgid ""
34334 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
34335 "                                           void *opaque,\n"
34336 "                                           const char *msg);\n"
34337 " void guestfs_set_error_handler (guestfs_h *g,\n"
34338 "                                 guestfs_error_handler_cb cb,\n"
34339 "                                 void *opaque);\n"
34340 "\n"
34341 msgstr ""
34342
34343 #. type: textblock
34344 #: ../src/guestfs.pod:1458
34345 msgid ""
34346 "The callback C<cb> will be called if there is an error.  The parameters "
34347 "passed to the callback are an opaque data pointer and the error message "
34348 "string."
34349 msgstr ""
34350
34351 #. type: textblock
34352 #: ../src/guestfs.pod:1462
34353 msgid ""
34354 "C<errno> is not passed to the callback.  To get that the callback must call "
34355 "L</guestfs_last_errno>."
34356 msgstr ""
34357
34358 #. type: textblock
34359 #: ../src/guestfs.pod:1465
34360 msgid ""
34361 "Note that the message string C<msg> is freed as soon as the callback "
34362 "function returns, so if you want to stash it somewhere you must make your "
34363 "own copy."
34364 msgstr ""
34365
34366 #. type: textblock
34367 #: ../src/guestfs.pod:1469
34368 msgid "The default handler prints messages on C<stderr>."
34369 msgstr ""
34370
34371 #. type: textblock
34372 #: ../src/guestfs.pod:1471
34373 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
34374 msgstr ""
34375
34376 #. type: =head2
34377 #: ../src/guestfs.pod:1473
34378 msgid "guestfs_get_error_handler"
34379 msgstr ""
34380
34381 #. type: verbatim
34382 #: ../src/guestfs.pod:1475
34383 #, no-wrap
34384 msgid ""
34385 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
34386 "                                                     void **opaque_rtn);\n"
34387 "\n"
34388 msgstr ""
34389
34390 #. type: textblock
34391 #: ../src/guestfs.pod:1478
34392 msgid "Returns the current error handler callback."
34393 msgstr ""
34394
34395 #. type: =head2
34396 #: ../src/guestfs.pod:1480
34397 msgid "guestfs_set_out_of_memory_handler"
34398 msgstr ""
34399
34400 #. type: verbatim
34401 #: ../src/guestfs.pod:1482
34402 #, no-wrap
34403 msgid ""
34404 " typedef void (*guestfs_abort_cb) (void);\n"
34405 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
34406 "                                         guestfs_abort_cb);\n"
34407 "\n"
34408 msgstr ""
34409
34410 #. type: textblock
34411 #: ../src/guestfs.pod:1486
34412 msgid ""
34413 "The callback C<cb> will be called if there is an out of memory situation.  "
34414 "I<Note this callback must not return>."
34415 msgstr ""
34416
34417 #. type: textblock
34418 #: ../src/guestfs.pod:1489
34419 msgid "The default is to call L<abort(3)>."
34420 msgstr ""
34421
34422 #. type: textblock
34423 #: ../src/guestfs.pod:1491
34424 msgid ""
34425 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
34426 msgstr ""
34427
34428 #. type: =head2
34429 #: ../src/guestfs.pod:1494
34430 msgid "guestfs_get_out_of_memory_handler"
34431 msgstr ""
34432
34433 #. type: verbatim
34434 #: ../src/guestfs.pod:1496
34435 #, no-wrap
34436 msgid ""
34437 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
34438 "\n"
34439 msgstr ""
34440
34441 #. type: textblock
34442 #: ../src/guestfs.pod:1498
34443 msgid "This returns the current out of memory handler."
34444 msgstr ""
34445
34446 #. type: =head1
34447 #: ../src/guestfs.pod:1500
34448 msgid "API CALLS"
34449 msgstr ""
34450
34451 #. type: =head1
34452 #: ../src/guestfs.pod:1504
34453 msgid "STRUCTURES"
34454 msgstr ""
34455
34456 #. type: textblock
34457 #: ../src/guestfs.pod:1506
34458 msgid "@STRUCTS@"
34459 msgstr ""
34460
34461 #. type: =head1
34462 #: ../src/guestfs.pod:1508
34463 msgid "AVAILABILITY"
34464 msgstr ""
34465
34466 #. type: =head2
34467 #: ../src/guestfs.pod:1510
34468 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
34469 msgstr ""
34470
34471 #. type: textblock
34472 #: ../src/guestfs.pod:1512
34473 msgid ""
34474 "Using L</guestfs_available> you can test availability of the following "
34475 "groups of functions.  This test queries the appliance to see if the "
34476 "appliance you are currently using supports the functionality."
34477 msgstr ""
34478
34479 #. type: textblock
34480 #: ../src/guestfs.pod:1517
34481 msgid "@AVAILABILITY@"
34482 msgstr ""
34483
34484 #. type: =head2
34485 #: ../src/guestfs.pod:1519
34486 msgid "GUESTFISH supported COMMAND"
34487 msgstr ""
34488
34489 #. type: textblock
34490 #: ../src/guestfs.pod:1521
34491 msgid ""
34492 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
34493 "prints out the available groups and whether they are supported by this build "
34494 "of libguestfs.  Note however that you have to do C<run> first."
34495 msgstr ""
34496
34497 #. type: =head2
34498 #: ../src/guestfs.pod:1526
34499 msgid "SINGLE CALLS AT COMPILE TIME"
34500 msgstr ""
34501
34502 #. type: textblock
34503 #: ../src/guestfs.pod:1528
34504 msgid ""
34505 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
34506 "function, such as:"
34507 msgstr ""
34508
34509 #. type: verbatim
34510 #: ../src/guestfs.pod:1531
34511 #, no-wrap
34512 msgid ""
34513 " #define LIBGUESTFS_HAVE_DD 1\n"
34514 "\n"
34515 msgstr ""
34516
34517 #. type: textblock
34518 #: ../src/guestfs.pod:1533
34519 msgid "if L</guestfs_dd> is available."
34520 msgstr ""
34521
34522 #. type: textblock
34523 #: ../src/guestfs.pod:1535
34524 msgid ""
34525 "Before version 1.5.8, if you needed to test whether a single libguestfs "
34526 "function is available at compile time, we recommended using build tools such "
34527 "as autoconf or cmake.  For example in autotools you could use:"
34528 msgstr ""
34529
34530 #. type: verbatim
34531 #: ../src/guestfs.pod:1540
34532 #, no-wrap
34533 msgid ""
34534 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
34535 " AC_CHECK_FUNCS([guestfs_dd])\n"
34536 "\n"
34537 msgstr ""
34538
34539 #. type: textblock
34540 #: ../src/guestfs.pod:1543
34541 msgid ""
34542 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
34543 "in your program."
34544 msgstr ""
34545
34546 #. type: =head2
34547 #: ../src/guestfs.pod:1546
34548 msgid "SINGLE CALLS AT RUN TIME"
34549 msgstr ""
34550
34551 #. type: textblock
34552 #: ../src/guestfs.pod:1548
34553 msgid ""
34554 "Testing at compile time doesn't guarantee that a function really exists in "
34555 "the library.  The reason is that you might be dynamically linked against a "
34556 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
34557 "This situation unfortunately results in a segmentation fault, which is a "
34558 "shortcoming of the C dynamic linking system itself."
34559 msgstr ""
34560
34561 #. type: textblock
34562 #: ../src/guestfs.pod:1555
34563 msgid ""
34564 "You can use L<dlopen(3)> to test if a function is available at run time, as "
34565 "in this example program (note that you still need the compile time check as "
34566 "well):"
34567 msgstr ""
34568
34569 #. type: verbatim
34570 #: ../src/guestfs.pod:1559
34571 #, no-wrap
34572 msgid ""
34573 " #include <stdio.h>\n"
34574 " #include <stdlib.h>\n"
34575 " #include <unistd.h>\n"
34576 " #include <dlfcn.h>\n"
34577 " #include <guestfs.h>\n"
34578 " \n"
34579 msgstr ""
34580
34581 #. type: verbatim
34582 #: ../src/guestfs.pod:1565
34583 #, no-wrap
34584 msgid ""
34585 " main ()\n"
34586 " {\n"
34587 " #ifdef LIBGUESTFS_HAVE_DD\n"
34588 "   void *dl;\n"
34589 "   int has_function;\n"
34590 " \n"
34591 msgstr ""
34592
34593 #. type: verbatim
34594 #: ../src/guestfs.pod:1571
34595 #, no-wrap
34596 msgid ""
34597 "   /* Test if the function guestfs_dd is really available. */\n"
34598 "   dl = dlopen (NULL, RTLD_LAZY);\n"
34599 "   if (!dl) {\n"
34600 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
34601 "     exit (EXIT_FAILURE);\n"
34602 "   }\n"
34603 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
34604 "   dlclose (dl);\n"
34605 " \n"
34606 msgstr ""
34607
34608 #. type: verbatim
34609 #: ../src/guestfs.pod:1580
34610 #, no-wrap
34611 msgid ""
34612 "   if (!has_function)\n"
34613 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
34614 "   else {\n"
34615 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
34616 "     /* Now it's safe to call\n"
34617 "     guestfs_dd (g, \"foo\", \"bar\");\n"
34618 "     */\n"
34619 "   }\n"
34620 " #else\n"
34621 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
34622 " #endif\n"
34623 "  }\n"
34624 "\n"
34625 msgstr ""
34626
34627 #. type: textblock
34628 #: ../src/guestfs.pod:1593
34629 msgid ""
34630 "You may think the above is an awful lot of hassle, and it is.  There are "
34631 "other ways outside of the C linking system to ensure that this kind of "
34632 "incompatibility never arises, such as using package versioning:"
34633 msgstr ""
34634
34635 #. type: verbatim
34636 #: ../src/guestfs.pod:1598
34637 #, no-wrap
34638 msgid ""
34639 " Requires: libguestfs >= 1.0.80\n"
34640 "\n"
34641 msgstr ""
34642
34643 #. type: =head1
34644 #: ../src/guestfs.pod:1600
34645 msgid "CALLS WITH OPTIONAL ARGUMENTS"
34646 msgstr ""
34647
34648 #. type: textblock
34649 #: ../src/guestfs.pod:1602
34650 msgid ""
34651 "A recent feature of the API is the introduction of calls which take optional "
34652 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
34653 "takes variable arguments (ie. C<...>), as in this example:"
34654 msgstr ""
34655
34656 #. type: verbatim
34657 #: ../src/guestfs.pod:1607
34658 #, no-wrap
34659 msgid ""
34660 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
34661 "\n"
34662 msgstr ""
34663
34664 #. type: textblock
34665 #: ../src/guestfs.pod:1609
34666 msgid ""
34667 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
34668 "call with no optional arguments specified:"
34669 msgstr ""
34670
34671 #. type: verbatim
34672 #: ../src/guestfs.pod:1612
34673 #, no-wrap
34674 msgid ""
34675 " guestfs_add_drive_opts (g, filename, -1);\n"
34676 "\n"
34677 msgstr ""
34678
34679 #. type: textblock
34680 #: ../src/guestfs.pod:1614
34681 msgid "With a single optional argument:"
34682 msgstr ""
34683
34684 #. type: verbatim
34685 #: ../src/guestfs.pod:1616
34686 #, no-wrap
34687 msgid ""
34688 " guestfs_add_drive_opts (g, filename,\n"
34689 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
34690 "                         -1);\n"
34691 "\n"
34692 msgstr ""
34693
34694 #. type: textblock
34695 #: ../src/guestfs.pod:1620
34696 msgid "With two:"
34697 msgstr ""
34698
34699 #. type: verbatim
34700 #: ../src/guestfs.pod:1622
34701 #, no-wrap
34702 msgid ""
34703 " guestfs_add_drive_opts (g, filename,\n"
34704 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
34705 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
34706 "                         -1);\n"
34707 "\n"
34708 msgstr ""
34709
34710 #. type: textblock
34711 #: ../src/guestfs.pod:1627
34712 msgid ""
34713 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
34714 "happen!"
34715 msgstr ""
34716
34717 #. type: =head2
34718 #: ../src/guestfs.pod:1630
34719 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
34720 msgstr ""
34721
34722 #. type: textblock
34723 #: ../src/guestfs.pod:1632
34724 msgid ""
34725 "The second variant has the same name with the suffix C<_va>, which works the "
34726 "same way but takes a C<va_list>.  See the C manual for details.  For the "
34727 "example function, this is declared:"
34728 msgstr ""
34729
34730 #. type: verbatim
34731 #: ../src/guestfs.pod:1636
34732 #, no-wrap
34733 msgid ""
34734 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
34735 "                                va_list args);\n"
34736 "\n"
34737 msgstr ""
34738
34739 #. type: =head2
34740 #: ../src/guestfs.pod:1639
34741 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
34742 msgstr ""
34743
34744 #. type: textblock
34745 #: ../src/guestfs.pod:1641
34746 msgid ""
34747 "The third variant is useful where you need to construct these calls.  You "
34748 "pass in a structure where you fill in the optional fields.  The structure "
34749 "has a bitmask as the first element which you must set to indicate which "
34750 "fields you have filled in.  For our example function the structure and call "
34751 "are declared:"
34752 msgstr ""
34753
34754 #. type: verbatim
34755 #: ../src/guestfs.pod:1647
34756 #, no-wrap
34757 msgid ""
34758 " struct guestfs_add_drive_opts_argv {\n"
34759 "   uint64_t bitmask;\n"
34760 "   int readonly;\n"
34761 "   const char *format;\n"
34762 "   /* ... */\n"
34763 " };\n"
34764 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
34765 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
34766 "\n"
34767 msgstr ""
34768
34769 #. type: textblock
34770 #: ../src/guestfs.pod:1656
34771 msgid "You could call it like this:"
34772 msgstr ""
34773
34774 #. type: verbatim
34775 #: ../src/guestfs.pod:1658
34776 #, no-wrap
34777 msgid ""
34778 " struct guestfs_add_drive_opts_argv optargs = {\n"
34779 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
34780 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
34781 "   .readonly = 1,\n"
34782 "   .format = \"qcow2\"\n"
34783 " };\n"
34784 " \n"
34785 msgstr ""
34786
34787 #. type: verbatim
34788 #: ../src/guestfs.pod:1665
34789 #, no-wrap
34790 msgid ""
34791 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
34792 "\n"
34793 msgstr ""
34794
34795 #. type: textblock
34796 #: ../src/guestfs.pod:1673
34797 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
34798 msgstr ""
34799
34800 #. type: textblock
34801 #: ../src/guestfs.pod:1678
34802 msgid "You do not need to fill in all fields of the structure."
34803 msgstr ""
34804
34805 #. type: textblock
34806 #: ../src/guestfs.pod:1682
34807 msgid ""
34808 "There must be a one-to-one correspondence between fields of the structure "
34809 "that are filled in, and bits set in the bitmask."
34810 msgstr ""
34811
34812 #. type: =head2
34813 #: ../src/guestfs.pod:1687
34814 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
34815 msgstr ""
34816
34817 #. type: textblock
34818 #: ../src/guestfs.pod:1689
34819 msgid ""
34820 "In other languages, optional arguments are expressed in the way that is "
34821 "natural for that language.  We refer you to the language-specific "
34822 "documentation for more details on that."
34823 msgstr ""
34824
34825 #. type: textblock
34826 #: ../src/guestfs.pod:1693
34827 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
34828 msgstr ""
34829
34830 #. type: =head2
34831 #: ../src/guestfs.pod:1695
34832 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
34833 msgstr ""
34834
34835 #. type: textblock
34836 #: ../src/guestfs.pod:1697
34837 msgid ""
34838 "B<Note:> This section documents the generic event mechanism introduced in "
34839 "libguestfs 1.10, which you should use in new code if possible.  The old "
34840 "functions C<guestfs_set_log_message_callback>, "
34841 "C<guestfs_set_subprocess_quit_callback>, "
34842 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
34843 "C<guestfs_set_progress_callback> are no longer documented in this manual "
34844 "page.  Because of the ABI guarantee, the old functions continue to work."
34845 msgstr ""
34846
34847 #. type: textblock
34848 #: ../src/guestfs.pod:1706
34849 msgid ""
34850 "Handles generate events when certain things happen, such as log messages "
34851 "being generated, progress messages during long-running operations, or the "
34852 "handle being closed.  The API calls described below let you register a "
34853 "callback to be called when events happen.  You can register multiple "
34854 "callbacks (for the same, different or overlapping sets of events), and "
34855 "individually remove callbacks.  If callbacks are not removed, then they "
34856 "remain in force until the handle is closed."
34857 msgstr ""
34858
34859 #. type: textblock
34860 #: ../src/guestfs.pod:1714
34861 msgid ""
34862 "In the current implementation, events are only generated synchronously: that "
34863 "means that events (and hence callbacks) can only happen while you are in the "
34864 "middle of making another libguestfs call.  The callback is called in the "
34865 "same thread."
34866 msgstr ""
34867
34868 #. type: textblock
34869 #: ../src/guestfs.pod:1719
34870 msgid ""
34871 "Events may contain a payload, usually nothing (void), an array of 64 bit "
34872 "unsigned integers, or a message buffer.  Payloads are discussed later on."
34873 msgstr ""
34874
34875 #. type: =head3
34876 #: ../src/guestfs.pod:1723
34877 msgid "CLASSES OF EVENTS"
34878 msgstr ""
34879
34880 #. type: =item
34881 #: ../src/guestfs.pod:1727
34882 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
34883 msgstr ""
34884
34885 #. type: textblock
34886 #: ../src/guestfs.pod:1730
34887 msgid ""
34888 "The callback function will be called while the handle is being closed "
34889 "(synchronously from L</guestfs_close>)."
34890 msgstr ""
34891
34892 #. type: textblock
34893 #: ../src/guestfs.pod:1733
34894 msgid ""
34895 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
34896 "handles that are open when the program exits.  This means that this callback "
34897 "might be called indirectly from L<exit(3)>, which can cause unexpected "
34898 "problems in higher-level languages (eg. if your HLL interpreter has already "
34899 "been cleaned up by the time this is called, and if your callback then jumps "
34900 "into some HLL function)."
34901 msgstr ""
34902
34903 #. type: textblock
34904 #: ../src/guestfs.pod:1740
34905 msgid ""
34906 "If no callback is registered: the handle is closed without any callback "
34907 "being invoked."
34908 msgstr ""
34909
34910 #. type: =item
34911 #: ../src/guestfs.pod:1743
34912 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
34913 msgstr ""
34914
34915 #. type: textblock
34916 #: ../src/guestfs.pod:1746
34917 msgid ""
34918 "The callback function will be called when the child process quits, either "
34919 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
34920 "corresponds to a transition from any state to the CONFIG state)."
34921 msgstr ""
34922
34923 #. type: textblock
34924 #: ../src/guestfs.pod:1750 ../src/guestfs.pod:1759 ../src/guestfs.pod:1876
34925 msgid "If no callback is registered: the event is ignored."
34926 msgstr ""
34927
34928 #. type: =item
34929 #: ../src/guestfs.pod:1752
34930 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
34931 msgstr ""
34932
34933 #. type: textblock
34934 #: ../src/guestfs.pod:1755
34935 msgid ""
34936 "The callback function will be called when the child process becomes ready "
34937 "first time after it has been launched.  (This corresponds to a transition "
34938 "from LAUNCHING to the READY state)."
34939 msgstr ""
34940
34941 #. type: =item
34942 #: ../src/guestfs.pod:1761
34943 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
34944 msgstr ""
34945
34946 #. type: textblock
34947 #: ../src/guestfs.pod:1764
34948 msgid ""
34949 "Some long-running operations can generate progress messages.  If this "
34950 "callback is registered, then it will be called each time a progress message "
34951 "is generated (usually two seconds after the operation started, and three "
34952 "times per second thereafter until it completes, although the frequency may "
34953 "change in future versions)."
34954 msgstr ""
34955
34956 #. type: textblock
34957 #: ../src/guestfs.pod:1770
34958 msgid ""
34959 "The callback receives in the payload four unsigned 64 bit numbers which are "
34960 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
34961 msgstr ""
34962
34963 #. type: textblock
34964 #: ../src/guestfs.pod:1773
34965 msgid ""
34966 "The units of C<total> are not defined, although for some operations C<total> "
34967 "may relate in some way to the amount of data to be transferred (eg. in bytes "
34968 "or megabytes), and C<position> may be the portion which has been transferred."
34969 msgstr ""
34970
34971 #. type: textblock
34972 #: ../src/guestfs.pod:1778
34973 msgid "The only defined and stable parts of the API are:"
34974 msgstr ""
34975
34976 #. type: textblock
34977 #: ../src/guestfs.pod:1784
34978 msgid ""
34979 "The callback can display to the user some type of progress bar or indicator "
34980 "which shows the ratio of C<position>:C<total>."
34981 msgstr ""
34982
34983 #. type: textblock
34984 #: ../src/guestfs.pod:1789
34985 msgid "0 E<lt>= C<position> E<lt>= C<total>"
34986 msgstr ""
34987
34988 #. type: textblock
34989 #: ../src/guestfs.pod:1793
34990 msgid ""
34991 "If any progress notification is sent during a call, then a final progress "
34992 "notification is always sent when C<position> = C<total> (I<unless> the call "
34993 "fails with an error)."
34994 msgstr ""
34995
34996 #. type: textblock
34997 #: ../src/guestfs.pod:1797
34998 msgid ""
34999 "This is to simplify caller code, so callers can easily set the progress "
35000 "indicator to \"100%\" at the end of the operation, without requiring special "
35001 "code to detect this case."
35002 msgstr ""
35003
35004 #. type: textblock
35005 #: ../src/guestfs.pod:1803
35006 msgid ""
35007 "For some calls we are unable to estimate the progress of the call, but we "
35008 "can still generate progress messages to indicate activity.  This is known as "
35009 "\"pulse mode\", and is directly supported by certain progress bar "
35010 "implementations (eg. GtkProgressBar)."
35011 msgstr ""
35012
35013 #. type: textblock
35014 #: ../src/guestfs.pod:1808
35015 msgid ""
35016 "For these calls, zero or more progress messages are generated with "
35017 "C<position = 0> and C<total = 1>, followed by a final message with "
35018 "C<position = total = 1>."
35019 msgstr ""
35020
35021 #. type: textblock
35022 #: ../src/guestfs.pod:1812
35023 msgid ""
35024 "As noted above, if the call fails with an error then the final message may "
35025 "not be generated."
35026 msgstr ""
35027
35028 #. type: textblock
35029 #: ../src/guestfs.pod:1817
35030 msgid ""
35031 "The callback also receives the procedure number (C<proc_nr>) and serial "
35032 "number (C<serial>) of the call.  These are only useful for debugging "
35033 "protocol issues, and the callback can normally ignore them.  The callback "
35034 "may want to print these numbers in error messages or debugging messages."
35035 msgstr ""
35036
35037 #. type: textblock
35038 #: ../src/guestfs.pod:1823
35039 msgid "If no callback is registered: progress messages are discarded."
35040 msgstr ""
35041
35042 #. type: =item
35043 #: ../src/guestfs.pod:1825
35044 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
35045 msgstr ""
35046
35047 #. type: textblock
35048 #: ../src/guestfs.pod:1828
35049 msgid ""
35050 "The callback function is called whenever a log message is generated by qemu, "
35051 "the appliance kernel, guestfsd (daemon), or utility programs."
35052 msgstr ""
35053
35054 #. type: textblock
35055 #: ../src/guestfs.pod:1831
35056 msgid ""
35057 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
35058 "guestfs_launch>) then additional debug messages are generated."
35059 msgstr ""
35060
35061 #. type: textblock
35062 #: ../src/guestfs.pod:1834 ../src/guestfs.pod:1848
35063 msgid ""
35064 "If no callback is registered: the messages are discarded unless the verbose "
35065 "flag is set in which case they are sent to stderr.  You can override the "
35066 "printing of verbose messages to stderr by setting up a callback."
35067 msgstr ""
35068
35069 #. type: =item
35070 #: ../src/guestfs.pod:1839
35071 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
35072 msgstr ""
35073
35074 #. type: textblock
35075 #: ../src/guestfs.pod:1842
35076 msgid ""
35077 "The callback function is called whenever a log message is generated by the "
35078 "library part of libguestfs."
35079 msgstr ""
35080
35081 #. type: textblock
35082 #: ../src/guestfs.pod:1845
35083 msgid ""
35084 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
35085 "messages are generated."
35086 msgstr ""
35087
35088 #. type: =item
35089 #: ../src/guestfs.pod:1853
35090 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
35091 msgstr ""
35092
35093 #. type: textblock
35094 #: ../src/guestfs.pod:1856
35095 msgid ""
35096 "The callback function is called whenever a trace message is generated.  This "
35097 "only applies if the trace flag (L</guestfs_set_trace>) is set."
35098 msgstr ""
35099
35100 #. type: textblock
35101 #: ../src/guestfs.pod:1859
35102 msgid ""
35103 "If no callback is registered: the messages are sent to stderr.  You can "
35104 "override the printing of trace messages to stderr by setting up a callback."
35105 msgstr ""
35106
35107 #. type: =item
35108 #: ../src/guestfs.pod:1863
35109 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
35110 msgstr ""
35111
35112 #. type: textblock
35113 #: ../src/guestfs.pod:1866
35114 msgid ""
35115 "The callback function is called whenever a libguestfs function is entered."
35116 msgstr ""
35117
35118 #. type: textblock
35119 #: ../src/guestfs.pod:1869
35120 msgid ""
35121 "The payload is a string which contains the name of the function that we are "
35122 "entering (not including C<guestfs_> prefix)."
35123 msgstr ""
35124
35125 #. type: textblock
35126 #: ../src/guestfs.pod:1872
35127 msgid ""
35128 "Note that libguestfs functions can call themselves, so you may see many "
35129 "events from a single call.  A few libguestfs functions do not generate this "
35130 "event."
35131 msgstr ""
35132
35133 #. type: =head3
35134 #: ../src/guestfs.pod:1880
35135 msgid "guestfs_set_event_callback"
35136 msgstr ""
35137
35138 #. type: verbatim
35139 #: ../src/guestfs.pod:1882
35140 #, no-wrap
35141 msgid ""
35142 " int guestfs_set_event_callback (guestfs_h *g,\n"
35143 "                                 guestfs_event_callback cb,\n"
35144 "                                 uint64_t event_bitmask,\n"
35145 "                                 int flags,\n"
35146 "                                 void *opaque);\n"
35147 "\n"
35148 msgstr ""
35149
35150 #. type: textblock
35151 #: ../src/guestfs.pod:1888
35152 msgid ""
35153 "This function registers a callback (C<cb>) for all event classes in the "
35154 "C<event_bitmask>."
35155 msgstr ""
35156
35157 #. type: textblock
35158 #: ../src/guestfs.pod:1891
35159 msgid ""
35160 "For example, to register for all log message events, you could call this "
35161 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
35162 "To register a single callback for all possible classes of events, use "
35163 "C<GUESTFS_EVENT_ALL>."
35164 msgstr ""
35165
35166 #. type: textblock
35167 #: ../src/guestfs.pod:1897
35168 msgid "C<flags> should always be passed as 0."
35169 msgstr ""
35170
35171 #. type: textblock
35172 #: ../src/guestfs.pod:1899
35173 msgid ""
35174 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
35175 "it for any purpose."
35176 msgstr ""
35177
35178 #. type: textblock
35179 #: ../src/guestfs.pod:1902
35180 msgid ""
35181 "The return value is the event handle (an integer) which you can use to "
35182 "delete the callback (see below)."
35183 msgstr ""
35184
35185 #. type: textblock
35186 #: ../src/guestfs.pod:1905
35187 msgid ""
35188 "If there is an error, this function returns C<-1>, and sets the error in the "
35189 "handle in the usual way (see L</guestfs_last_error> etc.)"
35190 msgstr ""
35191
35192 #. type: textblock
35193 #: ../src/guestfs.pod:1908
35194 msgid ""
35195 "Callbacks remain in effect until they are deleted, or until the handle is "
35196 "closed."
35197 msgstr ""
35198
35199 #. type: textblock
35200 #: ../src/guestfs.pod:1911
35201 msgid ""
35202 "In the case where multiple callbacks are registered for a particular event "
35203 "class, all of the callbacks are called.  The order in which multiple "
35204 "callbacks are called is not defined."
35205 msgstr ""
35206
35207 #. type: =head3
35208 #: ../src/guestfs.pod:1915
35209 msgid "guestfs_delete_event_callback"
35210 msgstr ""
35211
35212 #. type: verbatim
35213 #: ../src/guestfs.pod:1917
35214 #, no-wrap
35215 msgid ""
35216 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
35217 "\n"
35218 msgstr ""
35219
35220 #. type: textblock
35221 #: ../src/guestfs.pod:1919
35222 msgid ""
35223 "Delete a callback that was previously registered.  C<event_handle> should be "
35224 "the integer that was returned by a previous call to "
35225 "C<guestfs_set_event_callback> on the same handle."
35226 msgstr ""
35227
35228 #. type: =head3
35229 #: ../src/guestfs.pod:1923
35230 msgid "guestfs_event_callback"
35231 msgstr ""
35232
35233 #. type: verbatim
35234 #: ../src/guestfs.pod:1925
35235 #, no-wrap
35236 msgid ""
35237 " typedef void (*guestfs_event_callback) (\n"
35238 "                  guestfs_h *g,\n"
35239 "                  void *opaque,\n"
35240 "                  uint64_t event,\n"
35241 "                  int event_handle,\n"
35242 "                  int flags,\n"
35243 "                  const char *buf, size_t buf_len,\n"
35244 "                  const uint64_t *array, size_t array_len);\n"
35245 "\n"
35246 msgstr ""
35247
35248 #. type: textblock
35249 #: ../src/guestfs.pod:1934
35250 msgid ""
35251 "This is the type of the event callback function that you have to provide."
35252 msgstr ""
35253
35254 #. type: textblock
35255 #: ../src/guestfs.pod:1937
35256 msgid ""
35257 "The basic parameters are: the handle (C<g>), the opaque user pointer "
35258 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
35259 "handle, and C<flags> which in the current API you should ignore."
35260 msgstr ""
35261
35262 #. type: textblock
35263 #: ../src/guestfs.pod:1941
35264 msgid ""
35265 "The remaining parameters contain the event payload (if any).  Each event may "
35266 "contain a payload, which usually relates to the event class, but for future "
35267 "proofing your code should be written to handle any payload for any event "
35268 "class."
35269 msgstr ""
35270
35271 #. type: textblock
35272 #: ../src/guestfs.pod:1946
35273 msgid ""
35274 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
35275 "there is no message buffer).  Note that this message buffer can contain "
35276 "arbitrary 8 bit data, including NUL bytes."
35277 msgstr ""
35278
35279 #. type: textblock
35280 #: ../src/guestfs.pod:1950
35281 msgid ""
35282 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
35283 "moment this is only used for progress messages."
35284 msgstr ""
35285
35286 #. type: =head3
35287 #: ../src/guestfs.pod:1953
35288 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
35289 msgstr ""
35290
35291 #. type: textblock
35292 #: ../src/guestfs.pod:1955
35293 msgid ""
35294 "One motivation for the generic event API was to allow GUI programs to "
35295 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
35296 "unconditionally to C<stderr>."
35297 msgstr ""
35298
35299 #. type: textblock
35300 #: ../src/guestfs.pod:1959
35301 msgid ""
35302 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
35303 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
35304 "messages are not events; you must capture error messages separately)."
35305 msgstr ""
35306
35307 #. type: textblock
35308 #: ../src/guestfs.pod:1964
35309 msgid ""
35310 "Programs have to set up a callback to capture the classes of events of "
35311 "interest:"
35312 msgstr ""
35313
35314 #. type: verbatim
35315 #: ../src/guestfs.pod:1967
35316 #, no-wrap
35317 msgid ""
35318 " int eh =\n"
35319 "   guestfs_set_event_callback\n"
35320 "     (g, message_callback,\n"
35321 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
35322 "      GUESTFS_EVENT_TRACE,\n"
35323 "      0, NULL) == -1)\n"
35324 " if (eh == -1) {\n"
35325 "   // handle error in the usual way\n"
35326 " }\n"
35327 "\n"
35328 msgstr ""
35329
35330 #. type: textblock
35331 #: ../src/guestfs.pod:1977
35332 msgid ""
35333 "The callback can then direct messages to the appropriate place.  In this "
35334 "example, messages are directed to syslog:"
35335 msgstr ""
35336
35337 #. type: verbatim
35338 #: ../src/guestfs.pod:1980
35339 #, no-wrap
35340 msgid ""
35341 " static void\n"
35342 " message_callback (\n"
35343 "         guestfs_h *g,\n"
35344 "         void *opaque,\n"
35345 "         uint64_t event,\n"
35346 "         int event_handle,\n"
35347 "         int flags,\n"
35348 "         const char *buf, size_t buf_len,\n"
35349 "         const uint64_t *array, size_t array_len)\n"
35350 " {\n"
35351 "   const int priority = LOG_USER|LOG_INFO;\n"
35352 "   if (buf_len > 0)\n"
35353 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
35354 " }\n"
35355 "\n"
35356 msgstr ""
35357
35358 #. type: =head1
35359 #: ../src/guestfs.pod:1995
35360 msgid "CANCELLING LONG TRANSFERS"
35361 msgstr ""
35362
35363 #. type: textblock
35364 #: ../src/guestfs.pod:1997
35365 msgid ""
35366 "Some operations can be cancelled by the caller while they are in progress.  "
35367 "Currently only operations that involve uploading or downloading data can be "
35368 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
35369 "parameters in the generator)."
35370 msgstr ""
35371
35372 #. type: =head2
35373 #: ../src/guestfs.pod:2002
35374 msgid "guestfs_user_cancel"
35375 msgstr ""
35376
35377 #. type: verbatim
35378 #: ../src/guestfs.pod:2004
35379 #, no-wrap
35380 msgid ""
35381 " void guestfs_user_cancel (guestfs_h *g);\n"
35382 "\n"
35383 msgstr ""
35384
35385 #. type: textblock
35386 #: ../src/guestfs.pod:2006
35387 msgid ""
35388 "C<guestfs_user_cancel> cancels the current upload or download operation."
35389 msgstr ""
35390
35391 #. type: textblock
35392 #: ../src/guestfs.pod:2009
35393 msgid ""
35394 "Unlike most other libguestfs calls, this function is signal safe and thread "
35395 "safe.  You can call it from a signal handler or from another thread, without "
35396 "needing to do any locking."
35397 msgstr ""
35398
35399 #. type: textblock
35400 #: ../src/guestfs.pod:2013
35401 msgid ""
35402 "The transfer that was in progress (if there is one) will stop shortly "
35403 "afterwards, and will return an error.  The errno (see L</"
35404 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
35405 "out if the operation was cancelled or failed because of another error."
35406 msgstr ""
35407
35408 #. type: textblock
35409 #: ../src/guestfs.pod:2019
35410 msgid ""
35411 "No cleanup is performed: for example, if a file was being uploaded then "
35412 "after cancellation there may be a partially uploaded file.  It is the "
35413 "caller's responsibility to clean up if necessary."
35414 msgstr ""
35415
35416 #. type: textblock
35417 #: ../src/guestfs.pod:2023
35418 msgid "There are two common places that you might call C<guestfs_user_cancel>."
35419 msgstr ""
35420
35421 #. type: textblock
35422 #: ../src/guestfs.pod:2025
35423 msgid ""
35424 "In an interactive text-based program, you might call it from a C<SIGINT> "
35425 "signal handler so that pressing C<^C> cancels the current operation.  (You "
35426 "also need to call L</guestfs_set_pgroup> so that child processes don't "
35427 "receive the C<^C> signal)."
35428 msgstr ""
35429
35430 #. type: textblock
35431 #: ../src/guestfs.pod:2030
35432 msgid ""
35433 "In a graphical program, when the main thread is displaying a progress bar "
35434 "with a cancel button, wire up the cancel button to call this function."
35435 msgstr ""
35436
35437 #. type: =head1
35438 #: ../src/guestfs.pod:2034
35439 msgid "PRIVATE DATA AREA"
35440 msgstr ""
35441
35442 #. type: textblock
35443 #: ../src/guestfs.pod:2036
35444 msgid ""
35445 "You can attach named pieces of private data to the libguestfs handle, fetch "
35446 "them by name, and walk over them, for the lifetime of the handle.  This is "
35447 "called the private data area and is only available from the C API."
35448 msgstr ""
35449
35450 #. type: textblock
35451 #: ../src/guestfs.pod:2041
35452 msgid "To attach a named piece of data, use the following call:"
35453 msgstr ""
35454
35455 #. type: verbatim
35456 #: ../src/guestfs.pod:2043
35457 #, no-wrap
35458 msgid ""
35459 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
35460 "\n"
35461 msgstr ""
35462
35463 #. type: textblock
35464 #: ../src/guestfs.pod:2045
35465 msgid ""
35466 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
35467 "pointer (which can be C<NULL>).  Any previous item with the same key is "
35468 "overwritten."
35469 msgstr ""
35470
35471 #. type: textblock
35472 #: ../src/guestfs.pod:2049
35473 msgid ""
35474 "You can use any C<key> you want, but your key should I<not> start with an "
35475 "underscore character.  Keys beginning with an underscore character are "
35476 "reserved for internal libguestfs purposes (eg. for implementing language "
35477 "bindings).  It is recommended that you prefix the key with some unique "
35478 "string to avoid collisions with other users."
35479 msgstr ""
35480
35481 #. type: textblock
35482 #: ../src/guestfs.pod:2055
35483 msgid "To retrieve the pointer, use:"
35484 msgstr ""
35485
35486 #. type: verbatim
35487 #: ../src/guestfs.pod:2057
35488 #, no-wrap
35489 msgid ""
35490 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
35491 "\n"
35492 msgstr ""
35493
35494 #. type: textblock
35495 #: ../src/guestfs.pod:2059
35496 msgid ""
35497 "This function returns C<NULL> if either no data is found associated with "
35498 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
35499 "C<NULL>."
35500 msgstr ""
35501
35502 #. type: textblock
35503 #: ../src/guestfs.pod:2063
35504 msgid ""
35505 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
35506 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
35507 "all.  In particular, libguestfs does I<not> try to free the data when the "
35508 "handle is closed.  If the data must be freed, then the caller must either "
35509 "free it before calling L</guestfs_close> or must set up a close callback to "
35510 "do it (see L</GUESTFS_EVENT_CLOSE>)."
35511 msgstr ""
35512
35513 #. type: textblock
35514 #: ../src/guestfs.pod:2070
35515 msgid "To walk over all entries, use these two functions:"
35516 msgstr ""
35517
35518 #. type: verbatim
35519 #: ../src/guestfs.pod:2072
35520 #, no-wrap
35521 msgid ""
35522 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
35523 "\n"
35524 msgstr ""
35525
35526 #. type: verbatim
35527 #: ../src/guestfs.pod:2074
35528 #, no-wrap
35529 msgid ""
35530 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
35531 "\n"
35532 msgstr ""
35533
35534 #. type: textblock
35535 #: ../src/guestfs.pod:2076
35536 msgid ""
35537 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
35538 "not have any particular meaning -- keys are not returned in any defined "
35539 "order).  A pointer to the key is returned in C<*key_rtn> and the "
35540 "corresponding data pointer is returned from the function.  C<NULL> is "
35541 "returned if there are no keys stored in the handle."
35542 msgstr ""
35543
35544 #. type: textblock
35545 #: ../src/guestfs.pod:2082
35546 msgid ""
35547 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
35548 "value of this function is also C<NULL> is there are no further entries to "
35549 "return."
35550 msgstr ""
35551
35552 #. type: textblock
35553 #: ../src/guestfs.pod:2086
35554 msgid "Notes about walking over entries:"
35555 msgstr ""
35556
35557 #. type: textblock
35558 #: ../src/guestfs.pod:2092
35559 msgid ""
35560 "You must not call C<guestfs_set_private> while walking over the entries."
35561 msgstr ""
35562
35563 #. type: textblock
35564 #: ../src/guestfs.pod:2097
35565 msgid ""
35566 "The handle maintains an internal iterator which is reset when you call "
35567 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
35568 "call C<guestfs_set_private>."
35569 msgstr ""
35570
35571 #. type: textblock
35572 #: ../src/guestfs.pod:2103
35573 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
35574 msgstr ""
35575
35576 #. type: verbatim
35577 #: ../src/guestfs.pod:2105
35578 #, no-wrap
35579 msgid ""
35580 " guestfs_set_private (g, key, NULL);\n"
35581 "\n"
35582 msgstr ""
35583
35584 #. type: textblock
35585 #: ../src/guestfs.pod:2107
35586 msgid "then that C<key> is not returned when walking."
35587 msgstr ""
35588
35589 #. type: textblock
35590 #: ../src/guestfs.pod:2111
35591 msgid ""
35592 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
35593 "C<guestfs_next_private> or C<guestfs_set_private>."
35594 msgstr ""
35595
35596 #. type: textblock
35597 #: ../src/guestfs.pod:2117
35598 msgid ""
35599 "The following example code shows how to print all keys and data pointers "
35600 "that are associated with the handle C<g>:"
35601 msgstr ""
35602
35603 #. type: verbatim
35604 #: ../src/guestfs.pod:2120
35605 #, no-wrap
35606 msgid ""
35607 " const char *key;\n"
35608 " void *data = guestfs_first_private (g, &key);\n"
35609 " while (data != NULL)\n"
35610 "   {\n"
35611 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
35612 "     data = guestfs_next_private (g, &key);\n"
35613 "   }\n"
35614 "\n"
35615 msgstr ""
35616
35617 #. type: textblock
35618 #: ../src/guestfs.pod:2128
35619 msgid ""
35620 "More commonly you are only interested in keys that begin with an application-"
35621 "specific prefix C<foo_>.  Modify the loop like so:"
35622 msgstr ""
35623
35624 #. type: verbatim
35625 #: ../src/guestfs.pod:2131
35626 #, no-wrap
35627 msgid ""
35628 " const char *key;\n"
35629 " void *data = guestfs_first_private (g, &key);\n"
35630 " while (data != NULL)\n"
35631 "   {\n"
35632 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
35633 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
35634 "     data = guestfs_next_private (g, &key);\n"
35635 "   }\n"
35636 "\n"
35637 msgstr ""
35638
35639 #. type: textblock
35640 #: ../src/guestfs.pod:2140
35641 msgid ""
35642 "If you need to modify keys while walking, then you have to jump back to the "
35643 "beginning of the loop.  For example, to delete all keys prefixed with "
35644 "C<foo_>:"
35645 msgstr ""
35646
35647 #. type: verbatim
35648 #: ../src/guestfs.pod:2144
35649 #, no-wrap
35650 msgid ""
35651 "  const char *key;\n"
35652 "  void *data;\n"
35653 " again:\n"
35654 "  data = guestfs_first_private (g, &key);\n"
35655 "  while (data != NULL)\n"
35656 "    {\n"
35657 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
35658 "        {\n"
35659 "          guestfs_set_private (g, key, NULL);\n"
35660 "          /* note that 'key' pointer is now invalid, and so is\n"
35661 "             the internal iterator */\n"
35662 "          goto again;\n"
35663 "        }\n"
35664 "      data = guestfs_next_private (g, &key);\n"
35665 "    }\n"
35666 "\n"
35667 msgstr ""
35668
35669 #. type: textblock
35670 #: ../src/guestfs.pod:2160
35671 msgid ""
35672 "Note that the above loop is guaranteed to terminate because the keys are "
35673 "being deleted, but other manipulations of keys within the loop might not "
35674 "terminate unless you also maintain an indication of which keys have been "
35675 "visited."
35676 msgstr ""
35677
35678 #. type: =end
35679 #: ../src/guestfs.pod:2165 ../src/guestfs.pod:2170
35680 msgid "html"
35681 msgstr ""
35682
35683 #. type: textblock
35684 #: ../src/guestfs.pod:2167
35685 msgid ""
35686 "<!-- old anchor for the next section --> <a name="
35687 "\"state_machine_and_low_level_event_api\"/>"
35688 msgstr ""
35689
35690 #. type: =head1
35691 #: ../src/guestfs.pod:2172
35692 msgid "ARCHITECTURE"
35693 msgstr ""
35694
35695 #. type: textblock
35696 #: ../src/guestfs.pod:2174
35697 msgid ""
35698 "Internally, libguestfs is implemented by running an appliance (a special "
35699 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
35700 "process of the main program."
35701 msgstr ""
35702
35703 #. type: verbatim
35704 #: ../src/guestfs.pod:2178
35705 #, no-wrap
35706 msgid ""
35707 "  ___________________\n"
35708 " /                   \\\n"
35709 " | main program      |\n"
35710 " |                   |\n"
35711 " |                   |           child process / appliance\n"
35712 " |                   |           __________________________\n"
35713 " |                   |          / qemu                     \\\n"
35714 " +-------------------+   RPC    |      +-----------------+ |\n"
35715 " | libguestfs     <--------------------> guestfsd        | |\n"
35716 " |                   |          |      +-----------------+ |\n"
35717 " \\___________________/          |      | Linux kernel    | |\n"
35718 "                                |      +--^--------------+ |\n"
35719 "                                \\_________|________________/\n"
35720 "                                          |\n"
35721 "                                   _______v______\n"
35722 "                                  /              \\\n"
35723 "                                  | Device or    |\n"
35724 "                                  | disk image   |\n"
35725 "                                  \\______________/\n"
35726 "\n"
35727 msgstr ""
35728
35729 #. type: textblock
35730 #: ../src/guestfs.pod:2198
35731 msgid ""
35732 "The library, linked to the main program, creates the child process and hence "
35733 "the appliance in the L</guestfs_launch> function."
35734 msgstr ""
35735
35736 #. type: textblock
35737 #: ../src/guestfs.pod:2201
35738 msgid ""
35739 "Inside the appliance is a Linux kernel and a complete stack of userspace "
35740 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
35741 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
35742 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
35743 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
35744 "attached to the qemu process which translates device access by the "
35745 "appliance's Linux kernel into accesses to the image."
35746 msgstr ""
35747
35748 #. type: textblock
35749 #: ../src/guestfs.pod:2210
35750 msgid ""
35751 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
35752 "Although the disk image you are attached to might also be used by some "
35753 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
35754 "care if both libguestfs's qemu process and your virtual machine are trying "
35755 "to update the disk image at the same time, since these usually results in "
35756 "massive disk corruption)."
35757 msgstr ""
35758
35759 #. type: =head1
35760 #: ../src/guestfs.pod:2217
35761 msgid "STATE MACHINE"
35762 msgstr ""
35763
35764 #. type: textblock
35765 #: ../src/guestfs.pod:2219
35766 msgid "libguestfs uses a state machine to model the child process:"
35767 msgstr ""
35768
35769 #. type: verbatim
35770 #: ../src/guestfs.pod:2221
35771 #, no-wrap
35772 msgid ""
35773 "                         |\n"
35774 "                    guestfs_create\n"
35775 "                         |\n"
35776 "                         |\n"
35777 "                     ____V_____\n"
35778 "                    /          \\\n"
35779 "                    |  CONFIG  |\n"
35780 "                    \\__________/\n"
35781 "                     ^ ^   ^  \\\n"
35782 "                    /  |    \\  \\ guestfs_launch\n"
35783 "                   /   |    _\\__V______\n"
35784 "                  /    |   /           \\\n"
35785 "                 /     |   | LAUNCHING |\n"
35786 "                /      |   \\___________/\n"
35787 "               /       |       /\n"
35788 "              /        |  guestfs_launch\n"
35789 "             /         |     /\n"
35790 "    ______  /        __|____V\n"
35791 "   /      \\ ------> /        \\\n"
35792 "   | BUSY |         | READY  |\n"
35793 "   \\______/ <------ \\________/\n"
35794 "\n"
35795 msgstr ""
35796
35797 #. type: textblock
35798 #: ../src/guestfs.pod:2243
35799 msgid ""
35800 "The normal transitions are (1) CONFIG (when the handle is created, but there "
35801 "is no child process), (2) LAUNCHING (when the child process is booting up), "
35802 "(3) alternating between READY and BUSY as commands are issued to, and "
35803 "carried out by, the child process."
35804 msgstr ""
35805
35806 #. type: textblock
35807 #: ../src/guestfs.pod:2248
35808 msgid ""
35809 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
35810 "asynchronously at any time (eg. due to some internal error), and that causes "
35811 "the state to transition back to CONFIG."
35812 msgstr ""
35813
35814 #. type: textblock
35815 #: ../src/guestfs.pod:2252
35816 msgid ""
35817 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
35818 "issued when in the CONFIG state."
35819 msgstr ""
35820
35821 #. type: textblock
35822 #: ../src/guestfs.pod:2255
35823 msgid ""
35824 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
35825 "L</guestfs_launch> blocks until the child process is READY to accept "
35826 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
35827 "moves the state from CONFIG to LAUNCHING while it is running."
35828 msgstr ""
35829
35830 #. type: textblock
35831 #: ../src/guestfs.pod:2261
35832 msgid ""
35833 "API actions such as L</guestfs_mount> can only be issued when in the READY "
35834 "state.  These API calls block waiting for the command to be carried out (ie. "
35835 "the state to transition to BUSY and then back to READY).  There are no non-"
35836 "blocking versions, and no way to issue more than one command per handle at "
35837 "the same time."
35838 msgstr ""
35839
35840 #. type: textblock
35841 #: ../src/guestfs.pod:2267
35842 msgid ""
35843 "Finally, the child process sends asynchronous messages back to the main "
35844 "program, such as kernel log messages.  You can register a callback to "
35845 "receive these messages."
35846 msgstr ""
35847
35848 #. type: =head1
35849 #: ../src/guestfs.pod:2271
35850 msgid "INTERNALS"
35851 msgstr ""
35852
35853 #. type: =head2
35854 #: ../src/guestfs.pod:2273
35855 msgid "APPLIANCE BOOT PROCESS"
35856 msgstr ""
35857
35858 #. type: textblock
35859 #: ../src/guestfs.pod:2275
35860 msgid ""
35861 "This process has evolved and continues to evolve.  The description here "
35862 "corresponds only to the current version of libguestfs and is provided for "
35863 "information only."
35864 msgstr ""
35865
35866 #. type: textblock
35867 #: ../src/guestfs.pod:2279
35868 msgid ""
35869 "In order to follow the stages involved below, enable libguestfs debugging "
35870 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
35871 msgstr ""
35872
35873 #. type: =item
35874 #: ../src/guestfs.pod:2284
35875 msgid "Create the appliance"
35876 msgstr ""
35877
35878 #. type: textblock
35879 #: ../src/guestfs.pod:2286
35880 msgid ""
35881 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
35882 "initrd and the appliance."
35883 msgstr ""
35884
35885 #. type: textblock
35886 #: ../src/guestfs.pod:2289
35887 msgid ""
35888 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
35889 "directory if C<TMPDIR> is set)."
35890 msgstr ""
35891
35892 #. type: textblock
35893 #: ../src/guestfs.pod:2292
35894 msgid ""
35895 "For a complete description of how the appliance is created and cached, read "
35896 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
35897 msgstr ""
35898
35899 #. type: =item
35900 #: ../src/guestfs.pod:2296
35901 msgid "Start qemu and boot the kernel"
35902 msgstr ""
35903
35904 #. type: textblock
35905 #: ../src/guestfs.pod:2298
35906 msgid "qemu is invoked to boot the kernel."
35907 msgstr ""
35908
35909 #. type: =item
35910 #: ../src/guestfs.pod:2300
35911 msgid "Run the initrd"
35912 msgstr ""
35913
35914 #. type: textblock
35915 #: ../src/guestfs.pod:2302
35916 msgid ""
35917 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
35918 "appliance.  The purpose of the initrd is to load enough kernel modules in "
35919 "order that the appliance itself can be mounted and started."
35920 msgstr ""
35921
35922 #. type: textblock
35923 #: ../src/guestfs.pod:2306
35924 msgid ""
35925 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
35926 "initrd>."
35927 msgstr ""
35928
35929 #. type: textblock
35930 #: ../src/guestfs.pod:2309
35931 msgid ""
35932 "When the initrd has started you will see messages showing that kernel "
35933 "modules are being loaded, similar to this:"
35934 msgstr ""
35935
35936 #. type: verbatim
35937 #: ../src/guestfs.pod:2312
35938 #, no-wrap
35939 msgid ""
35940 " febootstrap: ext2 mini initrd starting up\n"
35941 " febootstrap: mounting /sys\n"
35942 " febootstrap: internal insmod libcrc32c.ko\n"
35943 " febootstrap: internal insmod crc32c-intel.ko\n"
35944 "\n"
35945 msgstr ""
35946
35947 #. type: =item
35948 #: ../src/guestfs.pod:2317
35949 msgid "Find and mount the appliance device"
35950 msgstr ""
35951
35952 #. type: textblock
35953 #: ../src/guestfs.pod:2319
35954 msgid ""
35955 "The appliance is a sparse file containing an ext2 filesystem which contains "
35956 "a familiar (although reduced in size) Linux operating system.  It would "
35957 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
35958 msgstr ""
35959
35960 #. type: textblock
35961 #: ../src/guestfs.pod:2323
35962 msgid ""
35963 "The regular disks being inspected by libguestfs are the first devices "
35964 "exposed by qemu (eg. as C</dev/vda>)."
35965 msgstr ""
35966
35967 #. type: textblock
35968 #: ../src/guestfs.pod:2326
35969 msgid ""
35970 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
35971 "there was only one regular disk)."
35972 msgstr ""
35973
35974 #. type: textblock
35975 #: ../src/guestfs.pod:2329
35976 msgid ""
35977 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
35978 "and switch root into the appliance, and run C</init> from the appliance."
35979 msgstr ""
35980
35981 #. type: textblock
35982 #: ../src/guestfs.pod:2333
35983 msgid "If this works successfully you will see messages such as:"
35984 msgstr ""
35985
35986 #. type: verbatim
35987 #: ../src/guestfs.pod:2335
35988 #, no-wrap
35989 msgid ""
35990 " febootstrap: picked /sys/block/vdb/dev as root device\n"
35991 " febootstrap: creating /dev/root as block special 252:16\n"
35992 " febootstrap: mounting new root on /root\n"
35993 " febootstrap: chroot\n"
35994 " Starting /init script ...\n"
35995 "\n"
35996 msgstr ""
35997
35998 #. type: textblock
35999 #: ../src/guestfs.pod:2341
36000 msgid ""
36001 "Note that C<Starting /init script ...> indicates that the appliance's init "
36002 "script is now running."
36003 msgstr ""
36004
36005 #. type: =item
36006 #: ../src/guestfs.pod:2344
36007 msgid "Initialize the appliance"
36008 msgstr ""
36009
36010 #. type: textblock
36011 #: ../src/guestfs.pod:2346
36012 msgid ""
36013 "The appliance itself now initializes itself.  This involves starting certain "
36014 "processes like C<udev>, possibly printing some debug information, and "
36015 "finally running the daemon (C<guestfsd>)."
36016 msgstr ""
36017
36018 #. type: =item
36019 #: ../src/guestfs.pod:2350
36020 msgid "The daemon"
36021 msgstr ""
36022
36023 #. type: textblock
36024 #: ../src/guestfs.pod:2352
36025 msgid ""
36026 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
36027 "should see:"
36028 msgstr ""
36029
36030 #. type: verbatim
36031 #: ../src/guestfs.pod:2355
36032 #, no-wrap
36033 msgid ""
36034 " verbose daemon enabled\n"
36035 "\n"
36036 msgstr ""
36037
36038 #. type: textblock
36039 #: ../src/guestfs.pod:2357
36040 msgid ""
36041 "The daemon expects to see a named virtio-serial port exposed by qemu and "
36042 "connected on the other end to the library."
36043 msgstr ""
36044
36045 #. type: textblock
36046 #: ../src/guestfs.pod:2360
36047 msgid ""
36048 "The daemon connects to this port (and hence to the library) and sends a four "
36049 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
36050 "protocol (see below)."
36051 msgstr ""
36052
36053 #. type: =head2
36054 #: ../src/guestfs.pod:2366
36055 msgid "COMMUNICATION PROTOCOL"
36056 msgstr ""
36057
36058 #. type: textblock
36059 #: ../src/guestfs.pod:2368
36060 msgid ""
36061 "Don't rely on using this protocol directly.  This section documents how it "
36062 "currently works, but it may change at any time."
36063 msgstr ""
36064
36065 #. type: textblock
36066 #: ../src/guestfs.pod:2371
36067 msgid ""
36068 "The protocol used to talk between the library and the daemon running inside "
36069 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
36070 "1014, RFC 1832, RFC 4506)."
36071 msgstr ""
36072
36073 #. type: textblock
36074 #: ../src/guestfs.pod:2375
36075 msgid ""
36076 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
36077 "this file is automatically generated)."
36078 msgstr ""
36079
36080 #. type: textblock
36081 #: ../src/guestfs.pod:2378
36082 msgid ""
36083 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
36084 "and C<FileOut> parameters, which are handled with very simple request/reply "
36085 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
36086 "parameters, which use the same request and reply messages, but they may also "
36087 "be followed by files sent using a chunked encoding."
36088 msgstr ""
36089
36090 #. type: =head3
36091 #: ../src/guestfs.pod:2385
36092 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
36093 msgstr ""
36094
36095 #. type: textblock
36096 #: ../src/guestfs.pod:2387
36097 msgid "For ordinary functions, the request message is:"
36098 msgstr ""
36099
36100 #. type: verbatim
36101 #: ../src/guestfs.pod:2389
36102 #, no-wrap
36103 msgid ""
36104 " total length (header + arguments,\n"
36105 "      but not including the length word itself)\n"
36106 " struct guestfs_message_header (encoded as XDR)\n"
36107 " struct guestfs_<foo>_args (encoded as XDR)\n"
36108 "\n"
36109 msgstr ""
36110
36111 #. type: textblock
36112 #: ../src/guestfs.pod:2394
36113 msgid ""
36114 "The total length field allows the daemon to allocate a fixed size buffer "
36115 "into which it slurps the rest of the message.  As a result, the total length "
36116 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
36117 "effective size of any request is limited to somewhere under this size."
36118 msgstr ""
36119
36120 #. type: textblock
36121 #: ../src/guestfs.pod:2400
36122 msgid ""
36123 "Note also that many functions don't take any arguments, in which case the "
36124 "C<guestfs_I<foo>_args> is completely omitted."
36125 msgstr ""
36126
36127 #. type: textblock
36128 #: ../src/guestfs.pod:2403
36129 msgid ""
36130 "The header contains the procedure number (C<guestfs_proc>) which is how the "
36131 "receiver knows what type of args structure to expect, or none at all."
36132 msgstr ""
36133
36134 #. type: textblock
36135 #: ../src/guestfs.pod:2407
36136 msgid ""
36137 "For functions that take optional arguments, the optional arguments are "
36138 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
36139 "arguments.  A bitmask in the header indicates which optional arguments are "
36140 "meaningful.  The bitmask is also checked to see if it contains bits set "
36141 "which the daemon does not know about (eg. if more optional arguments were "
36142 "added in a later version of the library), and this causes the call to be "
36143 "rejected."
36144 msgstr ""
36145
36146 #. type: textblock
36147 #: ../src/guestfs.pod:2415
36148 msgid "The reply message for ordinary functions is:"
36149 msgstr ""
36150
36151 #. type: verbatim
36152 #: ../src/guestfs.pod:2417
36153 #, no-wrap
36154 msgid ""
36155 " total length (header + ret,\n"
36156 "      but not including the length word itself)\n"
36157 " struct guestfs_message_header (encoded as XDR)\n"
36158 " struct guestfs_<foo>_ret (encoded as XDR)\n"
36159 "\n"
36160 msgstr ""
36161
36162 #. type: textblock
36163 #: ../src/guestfs.pod:2422
36164 msgid ""
36165 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
36166 "functions that return no formal return values."
36167 msgstr ""
36168
36169 #. type: textblock
36170 #: ../src/guestfs.pod:2425
36171 msgid ""
36172 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
36173 msgstr ""
36174
36175 #. type: textblock
36176 #: ../src/guestfs.pod:2428
36177 msgid ""
36178 "In the case of an error, a flag is set in the header, and the reply message "
36179 "is slightly changed:"
36180 msgstr ""
36181
36182 #. type: verbatim
36183 #: ../src/guestfs.pod:2431
36184 #, no-wrap
36185 msgid ""
36186 " total length (header + error,\n"
36187 "      but not including the length word itself)\n"
36188 " struct guestfs_message_header (encoded as XDR)\n"
36189 " struct guestfs_message_error (encoded as XDR)\n"
36190 "\n"
36191 msgstr ""
36192
36193 #. type: textblock
36194 #: ../src/guestfs.pod:2436
36195 msgid ""
36196 "The C<guestfs_message_error> structure contains the error message as a "
36197 "string."
36198 msgstr ""
36199
36200 #. type: =head3
36201 #: ../src/guestfs.pod:2439
36202 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
36203 msgstr ""
36204
36205 #. type: textblock
36206 #: ../src/guestfs.pod:2441
36207 msgid ""
36208 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
36209 "The normal request message is sent (see above).  However this is followed by "
36210 "a sequence of file chunks."
36211 msgstr ""
36212
36213 #. type: verbatim
36214 #: ../src/guestfs.pod:2445
36215 #, no-wrap
36216 msgid ""
36217 " total length (header + arguments,\n"
36218 "      but not including the length word itself,\n"
36219 "      and not including the chunks)\n"
36220 " struct guestfs_message_header (encoded as XDR)\n"
36221 " struct guestfs_<foo>_args (encoded as XDR)\n"
36222 " sequence of chunks for FileIn param #0\n"
36223 " sequence of chunks for FileIn param #1 etc.\n"
36224 "\n"
36225 msgstr ""
36226
36227 #. type: textblock
36228 #: ../src/guestfs.pod:2453
36229 msgid "The \"sequence of chunks\" is:"
36230 msgstr ""
36231
36232 #. type: verbatim
36233 #: ../src/guestfs.pod:2455
36234 #, no-wrap
36235 msgid ""
36236 " length of chunk (not including length word itself)\n"
36237 " struct guestfs_chunk (encoded as XDR)\n"
36238 " length of chunk\n"
36239 " struct guestfs_chunk (encoded as XDR)\n"
36240 "   ...\n"
36241 " length of chunk\n"
36242 " struct guestfs_chunk (with data.data_len == 0)\n"
36243 "\n"
36244 msgstr ""
36245
36246 #. type: textblock
36247 #: ../src/guestfs.pod:2463
36248 msgid ""
36249 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
36250 "is set in the final chunk to indicate either successful completion or early "
36251 "cancellation."
36252 msgstr ""
36253
36254 #. type: textblock
36255 #: ../src/guestfs.pod:2467
36256 msgid ""
36257 "At time of writing there are no functions that have more than one FileIn "
36258 "parameter.  However this is (theoretically) supported, by sending the "
36259 "sequence of chunks for each FileIn parameter one after another (from left to "
36260 "right)."
36261 msgstr ""
36262
36263 #. type: textblock
36264 #: ../src/guestfs.pod:2472
36265 msgid ""
36266 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
36267 "transfer.  The library does this by sending a chunk with a special flag set "
36268 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
36269 "RPC, does I<not> send any reply, and goes back to reading the next request."
36270 msgstr ""
36271
36272 #. type: textblock
36273 #: ../src/guestfs.pod:2478
36274 msgid ""
36275 "The daemon may also cancel.  It does this by writing a special word "
36276 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
36277 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
36278 "cancel chunk).  The special word is chosen so that even if cancellation "
36279 "happens right at the end of the transfer (after the library has finished "
36280 "writing and has started listening for the reply), the \"spurious\" cancel "
36281 "flag will not be confused with the reply message."
36282 msgstr ""
36283
36284 #. type: textblock
36285 #: ../src/guestfs.pod:2487
36286 msgid ""
36287 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
36288 "limit), and also files where the size is not known in advance (eg. from "
36289 "pipes or sockets).  However the chunks are rather small "
36290 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
36291 "to keep much in memory."
36292 msgstr ""
36293
36294 #. type: =head3
36295 #: ../src/guestfs.pod:2493
36296 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
36297 msgstr ""
36298
36299 #. type: textblock
36300 #: ../src/guestfs.pod:2495
36301 msgid ""
36302 "The protocol for FileOut parameters is exactly the same as for FileIn "
36303 "parameters, but with the roles of daemon and library reversed."
36304 msgstr ""
36305
36306 #. type: verbatim
36307 #: ../src/guestfs.pod:2498
36308 #, no-wrap
36309 msgid ""
36310 " total length (header + ret,\n"
36311 "      but not including the length word itself,\n"
36312 "      and not including the chunks)\n"
36313 " struct guestfs_message_header (encoded as XDR)\n"
36314 " struct guestfs_<foo>_ret (encoded as XDR)\n"
36315 " sequence of chunks for FileOut param #0\n"
36316 " sequence of chunks for FileOut param #1 etc.\n"
36317 "\n"
36318 msgstr ""
36319
36320 #. type: =head3
36321 #: ../src/guestfs.pod:2506
36322 msgid "INITIAL MESSAGE"
36323 msgstr ""
36324
36325 #. type: textblock
36326 #: ../src/guestfs.pod:2508
36327 msgid ""
36328 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
36329 "which indicates that the guest and daemon is alive.  This is what L</"
36330 "guestfs_launch> waits for."
36331 msgstr ""
36332
36333 #. type: =head3
36334 #: ../src/guestfs.pod:2512
36335 msgid "PROGRESS NOTIFICATION MESSAGES"
36336 msgstr ""
36337
36338 #. type: textblock
36339 #: ../src/guestfs.pod:2514
36340 msgid ""
36341 "The daemon may send progress notification messages at any time.  These are "
36342 "distinguished by the normal length word being replaced by "
36343 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
36344 msgstr ""
36345
36346 #. type: textblock
36347 #: ../src/guestfs.pod:2518
36348 msgid ""
36349 "The library turns them into progress callbacks (see L</"
36350 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
36351 "if not."
36352 msgstr ""
36353
36354 #. type: textblock
36355 #: ../src/guestfs.pod:2522
36356 msgid ""
36357 "The daemon self-limits the frequency of progress messages it sends (see "
36358 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
36359 "messages."
36360 msgstr ""
36361
36362 #. type: =head1
36363 #: ../src/guestfs.pod:2526
36364 msgid "LIBGUESTFS VERSION NUMBERS"
36365 msgstr ""
36366
36367 #. type: textblock
36368 #: ../src/guestfs.pod:2528
36369 msgid ""
36370 "Since April 2010, libguestfs has started to make separate development and "
36371 "stable releases, along with corresponding branches in our git repository.  "
36372 "These separate releases can be identified by version number:"
36373 msgstr ""
36374
36375 #. type: verbatim
36376 #: ../src/guestfs.pod:2533
36377 #, no-wrap
36378 msgid ""
36379 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
36380 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
36381 "       |\n"
36382 "       v\n"
36383 " 1  .  3  .  5\n"
36384 " ^           ^\n"
36385 " |           |\n"
36386 " |           `-------- sub-version\n"
36387 " |\n"
36388 " `------ always '1' because we don't change the ABI\n"
36389 "\n"
36390 msgstr ""
36391
36392 #. type: textblock
36393 #: ../src/guestfs.pod:2544
36394 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
36395 msgstr ""
36396
36397 #. type: textblock
36398 #: ../src/guestfs.pod:2546
36399 msgid ""
36400 "As time passes we cherry pick fixes from the development branch and backport "
36401 "those into the stable branch, the effect being that the stable branch should "
36402 "get more stable and less buggy over time.  So the stable releases are ideal "
36403 "for people who don't need new features but would just like the software to "
36404 "work."
36405 msgstr ""
36406
36407 #. type: textblock
36408 #: ../src/guestfs.pod:2552
36409 msgid "Our criteria for backporting changes are:"
36410 msgstr ""
36411
36412 #. type: textblock
36413 #: ../src/guestfs.pod:2558
36414 msgid ""
36415 "Documentation changes which don't affect any code are backported unless the "
36416 "documentation refers to a future feature which is not in stable."
36417 msgstr ""
36418
36419 #. type: textblock
36420 #: ../src/guestfs.pod:2564
36421 msgid ""
36422 "Bug fixes which are not controversial, fix obvious problems, and have been "
36423 "well tested are backported."
36424 msgstr ""
36425
36426 #. type: textblock
36427 #: ../src/guestfs.pod:2569
36428 msgid ""
36429 "Simple rearrangements of code which shouldn't affect how it works get "
36430 "backported.  This is so that the code in the two branches doesn't get too "
36431 "far out of step, allowing us to backport future fixes more easily."
36432 msgstr ""
36433
36434 #. type: textblock
36435 #: ../src/guestfs.pod:2575
36436 msgid ""
36437 "We I<don't> backport new features, new APIs, new tools etc, except in one "
36438 "exceptional case: the new feature is required in order to implement an "
36439 "important bug fix."
36440 msgstr ""
36441
36442 #. type: textblock
36443 #: ../src/guestfs.pod:2581
36444 msgid ""
36445 "A new stable branch starts when we think the new features in development are "
36446 "substantial and compelling enough over the current stable branch to warrant "
36447 "it.  When that happens we create new stable and development versions 1.N.0 "
36448 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
36449 "stable at this point, but by backporting fixes from development, that branch "
36450 "will stabilize over time."
36451 msgstr ""
36452
36453 #. type: =head1
36454 #: ../src/guestfs.pod:2589
36455 msgid "EXTENDING LIBGUESTFS"
36456 msgstr ""
36457
36458 #. type: =head2
36459 #: ../src/guestfs.pod:2591
36460 msgid "ADDING A NEW API ACTION"
36461 msgstr ""
36462
36463 #. type: textblock
36464 #: ../src/guestfs.pod:2593
36465 msgid ""
36466 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
36467 "documentation) are generated, and this makes it easy to extend the "
36468 "libguestfs API."
36469 msgstr ""
36470
36471 #. type: textblock
36472 #: ../src/guestfs.pod:2597
36473 msgid "To add a new API action there are two changes:"
36474 msgstr ""
36475
36476 #. type: textblock
36477 #: ../src/guestfs.pod:2603
36478 msgid ""
36479 "You need to add a description of the call (name, parameters, return type, "
36480 "tests, documentation) to C<generator/generator_actions.ml>."
36481 msgstr ""
36482
36483 #. type: textblock
36484 #: ../src/guestfs.pod:2606
36485 msgid ""
36486 "There are two sorts of API action, depending on whether the call goes "
36487 "through to the daemon in the appliance, or is serviced entirely by the "
36488 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
36489 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
36490 "an example of the latter, since a trace flag is maintained in the handle and "
36491 "all tracing is done on the library side."
36492 msgstr ""
36493
36494 #. type: textblock
36495 #: ../src/guestfs.pod:2614
36496 msgid ""
36497 "Most new actions are of the first type, and get added to the "
36498 "C<daemon_functions> list.  Each function has a unique procedure number used "
36499 "in the RPC protocol which is assigned to that action when we publish "
36500 "libguestfs and cannot be reused.  Take the latest procedure number and "
36501 "increment it."
36502 msgstr ""
36503
36504 #. type: textblock
36505 #: ../src/guestfs.pod:2620
36506 msgid ""
36507 "For library-only actions of the second type, add to the "
36508 "C<non_daemon_functions> list.  Since these functions are serviced by the "
36509 "library and do not travel over the RPC mechanism to the daemon, these "
36510 "functions do not need a procedure number, and so the procedure number is set "
36511 "to C<-1>."
36512 msgstr ""
36513
36514 #. type: textblock
36515 #: ../src/guestfs.pod:2628
36516 msgid "Implement the action (in C):"
36517 msgstr ""
36518
36519 #. type: textblock
36520 #: ../src/guestfs.pod:2630
36521 msgid ""
36522 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
36523 "C<daemon/> directory."
36524 msgstr ""
36525
36526 #. type: textblock
36527 #: ../src/guestfs.pod:2633
36528 msgid ""
36529 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
36530 "(note: double underscore) in the C<src/> directory."
36531 msgstr ""
36532
36533 #. type: textblock
36534 #: ../src/guestfs.pod:2636
36535 msgid "In either case, use another function as an example of what to do."
36536 msgstr ""
36537
36538 #. type: textblock
36539 #: ../src/guestfs.pod:2640
36540 msgid "After making these changes, use C<make> to compile."
36541 msgstr ""
36542
36543 #. type: textblock
36544 #: ../src/guestfs.pod:2642
36545 msgid ""
36546 "Note that you don't need to implement the RPC, language bindings, manual "
36547 "pages or anything else.  It's all automatically generated from the OCaml "
36548 "description."
36549 msgstr ""
36550
36551 #. type: =head2
36552 #: ../src/guestfs.pod:2646
36553 msgid "ADDING TESTS FOR AN API ACTION"
36554 msgstr ""
36555
36556 #. type: textblock
36557 #: ../src/guestfs.pod:2648
36558 msgid ""
36559 "You can supply zero or as many tests as you want per API call.  The tests "
36560 "can either be added as part of the API description (C<generator/"
36561 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
36562 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
36563 "slower, so if possible use the first method."
36564 msgstr ""
36565
36566 #. type: textblock
36567 #: ../src/guestfs.pod:2654
36568 msgid ""
36569 "The following describes the test environment used when you add an API test "
36570 "in C<generator_actions.ml>."
36571 msgstr ""
36572
36573 #. type: textblock
36574 #: ../src/guestfs.pod:2657
36575 msgid "The test environment has 4 block devices:"
36576 msgstr ""
36577
36578 #. type: =item
36579 #: ../src/guestfs.pod:2661
36580 msgid "C</dev/sda> 500MB"
36581 msgstr ""
36582
36583 #. type: textblock
36584 #: ../src/guestfs.pod:2663
36585 msgid "General block device for testing."
36586 msgstr ""
36587
36588 #. type: =item
36589 #: ../src/guestfs.pod:2665
36590 msgid "C</dev/sdb> 50MB"
36591 msgstr ""
36592
36593 #. type: textblock
36594 #: ../src/guestfs.pod:2667
36595 msgid ""
36596 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
36597 "operations."
36598 msgstr ""
36599
36600 #. type: =item
36601 #: ../src/guestfs.pod:2670
36602 msgid "C</dev/sdc> 10MB"
36603 msgstr ""
36604
36605 #. type: textblock
36606 #: ../src/guestfs.pod:2672
36607 msgid "Used in a few tests where two block devices are needed."
36608 msgstr ""
36609
36610 #. type: =item
36611 #: ../src/guestfs.pod:2674
36612 msgid "C</dev/sdd>"
36613 msgstr ""
36614
36615 #. type: textblock
36616 #: ../src/guestfs.pod:2676
36617 msgid "ISO with fixed content (see C<images/test.iso>)."
36618 msgstr ""
36619
36620 #. type: textblock
36621 #: ../src/guestfs.pod:2680
36622 msgid ""
36623 "To be able to run the tests in a reasonable amount of time, the libguestfs "
36624 "appliance and block devices are reused between tests.  So don't try testing "
36625 "L</guestfs_kill_subprocess> :-x"
36626 msgstr ""
36627
36628 #. type: textblock
36629 #: ../src/guestfs.pod:2684
36630 msgid ""
36631 "Each test starts with an initial scenario, selected using one of the "
36632 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
36633 "initialize the disks mentioned above in a particular way as documented in "
36634 "C<generator_types.ml>.  You should not assume anything about the previous "
36635 "contents of other disks that are not initialized."
36636 msgstr ""
36637
36638 #. type: textblock
36639 #: ../src/guestfs.pod:2690
36640 msgid ""
36641 "You can add a prerequisite clause to any individual test.  This is a run-"
36642 "time check, which, if it fails, causes the test to be skipped.  Useful if "
36643 "testing a command which might not work on all variations of libguestfs "
36644 "builds.  A test that has prerequisite of C<Always> means to run "
36645 "unconditionally."
36646 msgstr ""
36647
36648 #. type: textblock
36649 #: ../src/guestfs.pod:2696
36650 msgid ""
36651 "In addition, packagers can skip individual tests by setting environment "
36652 "variables before running C<make check>."
36653 msgstr ""
36654
36655 #. type: verbatim
36656 #: ../src/guestfs.pod:2699
36657 #, no-wrap
36658 msgid ""
36659 " SKIP_TEST_<CMD>_<NUM>=1\n"
36660 "\n"
36661 msgstr ""
36662
36663 #. type: textblock
36664 #: ../src/guestfs.pod:2701
36665 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
36666 msgstr ""
36667
36668 #. type: textblock
36669 #: ../src/guestfs.pod:2703
36670 msgid "or:"
36671 msgstr ""
36672
36673 #. type: verbatim
36674 #: ../src/guestfs.pod:2705
36675 #, no-wrap
36676 msgid ""
36677 " SKIP_TEST_<CMD>=1\n"
36678 "\n"
36679 msgstr ""
36680
36681 #. type: textblock
36682 #: ../src/guestfs.pod:2707
36683 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
36684 msgstr ""
36685
36686 #. type: textblock
36687 #: ../src/guestfs.pod:2709
36688 msgid "Packagers can run only certain tests by setting for example:"
36689 msgstr ""
36690
36691 #. type: verbatim
36692 #: ../src/guestfs.pod:2711
36693 #, no-wrap
36694 msgid ""
36695 " TEST_ONLY=\"vfs_type zerofree\"\n"
36696 "\n"
36697 msgstr ""
36698
36699 #. type: textblock
36700 #: ../src/guestfs.pod:2713
36701 msgid ""
36702 "See C<capitests/tests.c> for more details of how these environment variables "
36703 "work."
36704 msgstr ""
36705
36706 #. type: =head2
36707 #: ../src/guestfs.pod:2716
36708 msgid "DEBUGGING NEW API ACTIONS"
36709 msgstr ""
36710
36711 #. type: textblock
36712 #: ../src/guestfs.pod:2718
36713 msgid "Test new actions work before submitting them."
36714 msgstr ""
36715
36716 #. type: textblock
36717 #: ../src/guestfs.pod:2720
36718 msgid "You can use guestfish to try out new commands."
36719 msgstr ""
36720
36721 #. type: textblock
36722 #: ../src/guestfs.pod:2722
36723 msgid ""
36724 "Debugging the daemon is a problem because it runs inside a minimal "
36725 "environment.  However you can fprintf messages in the daemon to stderr, and "
36726 "they will show up if you use C<guestfish -v>."
36727 msgstr ""
36728
36729 #. type: =head2
36730 #: ../src/guestfs.pod:2726
36731 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
36732 msgstr ""
36733
36734 #. type: textblock
36735 #: ../src/guestfs.pod:2728
36736 msgid ""
36737 "Our C source code generally adheres to some basic code-formatting "
36738 "conventions.  The existing code base is not totally consistent on this "
36739 "front, but we do prefer that contributed code be formatted similarly.  In "
36740 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
36741 "indentation level, and other than that, follow the K&R style."
36742 msgstr ""
36743
36744 #. type: textblock
36745 #: ../src/guestfs.pod:2734
36746 msgid ""
36747 "If you use Emacs, add the following to one of one of your start-up files (e."
36748 "g., ~/.emacs), to help ensure that you get indentation right:"
36749 msgstr ""
36750
36751 #. type: verbatim
36752 #: ../src/guestfs.pod:2737
36753 #, no-wrap
36754 msgid ""
36755 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
36756 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
36757 " (add-hook 'find-file-hook\n"
36758 "     '(lambda () (if (and buffer-file-name\n"
36759 "                          (string-match \"/libguestfs\\\\>\"\n"
36760 "                              (buffer-file-name))\n"
36761 "                          (not (string-equal mode-name \"Change Log\"))\n"
36762 "                          (not (string-equal mode-name \"Makefile\")))\n"
36763 "                     (setq indent-tabs-mode nil))))\n"
36764 " \n"
36765 msgstr ""
36766
36767 #. type: verbatim
36768 #: ../src/guestfs.pod:2747
36769 #, no-wrap
36770 msgid ""
36771 " ;;; When editing C sources in libguestfs, use this style.\n"
36772 " (defun libguestfs-c-mode ()\n"
36773 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
36774 "   (interactive)\n"
36775 "   (c-set-style \"K&R\")\n"
36776 "   (setq c-indent-level 2)\n"
36777 "   (setq c-basic-offset 2))\n"
36778 " (add-hook 'c-mode-hook\n"
36779 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
36780 "                               (buffer-file-name))\n"
36781 "                           (libguestfs-c-mode))))\n"
36782 "\n"
36783 msgstr ""
36784
36785 #. type: textblock
36786 #: ../src/guestfs.pod:2759
36787 msgid "Enable warnings when compiling (and fix any problems this finds):"
36788 msgstr ""
36789
36790 #. type: verbatim
36791 #: ../src/guestfs.pod:2762
36792 #, no-wrap
36793 msgid ""
36794 " ./configure --enable-gcc-warnings\n"
36795 "\n"
36796 msgstr ""
36797
36798 #. type: textblock
36799 #: ../src/guestfs.pod:2764
36800 msgid "Useful targets are:"
36801 msgstr ""
36802
36803 #. type: verbatim
36804 #: ../src/guestfs.pod:2766
36805 #, no-wrap
36806 msgid ""
36807 " make syntax-check  # checks the syntax of the C code\n"
36808 " make check         # runs the test suite\n"
36809 "\n"
36810 msgstr ""
36811
36812 #. type: =head2
36813 #: ../src/guestfs.pod:2769
36814 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
36815 msgstr ""
36816
36817 #. type: textblock
36818 #: ../src/guestfs.pod:2771
36819 msgid ""
36820 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
36821 "which are used to do shell quoting."
36822 msgstr ""
36823
36824 #. type: =item
36825 #: ../src/guestfs.pod:2776
36826 msgid "%Q"
36827 msgstr ""
36828
36829 #. type: textblock
36830 #: ../src/guestfs.pod:2778
36831 msgid ""
36832 "Simple shell quoted string.  Any spaces or other shell characters are "
36833 "escaped for you."
36834 msgstr ""
36835
36836 #. type: =item
36837 #: ../src/guestfs.pod:2781
36838 msgid "%R"
36839 msgstr ""
36840
36841 #. type: textblock
36842 #: ../src/guestfs.pod:2783
36843 msgid ""
36844 "Same as C<%Q> except the string is treated as a path which is prefixed by "
36845 "the sysroot."
36846 msgstr ""
36847
36848 #. type: verbatim
36849 #: ../src/guestfs.pod:2790
36850 #, no-wrap
36851 msgid ""
36852 " asprintf (&cmd, \"cat %R\", path);\n"
36853 "\n"
36854 msgstr ""
36855
36856 #. type: textblock
36857 #: ../src/guestfs.pod:2792
36858 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
36859 msgstr ""
36860
36861 #. type: textblock
36862 #: ../src/guestfs.pod:2794
36863 msgid ""
36864 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
36865 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
36866 "they are not passed via the shell (instead, straight to exec).  You probably "
36867 "want to use the C<sysroot_path()> function however."
36868 msgstr ""
36869
36870 #. type: =head2
36871 #: ../src/guestfs.pod:2800
36872 msgid "SUBMITTING YOUR NEW API ACTIONS"
36873 msgstr ""
36874
36875 #. type: textblock
36876 #: ../src/guestfs.pod:2802
36877 msgid ""
36878 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
36879 "libguestfs> and CC to L<rjones@redhat.com>."
36880 msgstr ""
36881
36882 #. type: =head2
36883 #: ../src/guestfs.pod:2806
36884 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
36885 msgstr ""
36886
36887 #. type: textblock
36888 #: ../src/guestfs.pod:2808
36889 msgid "We support i18n (gettext anyhow) in the library."
36890 msgstr ""
36891
36892 #. type: textblock
36893 #: ../src/guestfs.pod:2810
36894 msgid ""
36895 "However many messages come from the daemon, and we don't translate those at "
36896 "the moment.  One reason is that the appliance generally has all locale files "
36897 "removed from it, because they take up a lot of space.  So we'd have to readd "
36898 "some of those, as well as copying our PO files into the appliance."
36899 msgstr ""
36900
36901 #. type: textblock
36902 #: ../src/guestfs.pod:2816
36903 msgid ""
36904 "Debugging messages are never translated, since they are intended for the "
36905 "programmers."
36906 msgstr ""
36907
36908 #. type: =head2
36909 #: ../src/guestfs.pod:2819
36910 msgid "SOURCE CODE SUBDIRECTORIES"
36911 msgstr ""
36912
36913 #. type: textblock
36914 #: ../src/guestfs.pod:2825
36915 msgid "The libguestfs appliance, build scripts and so on."
36916 msgstr ""
36917
36918 #. type: =item
36919 #: ../src/guestfs.pod:2827
36920 msgid "C<capitests>"
36921 msgstr ""
36922
36923 #. type: textblock
36924 #: ../src/guestfs.pod:2829
36925 msgid "Automated tests of the C API."
36926 msgstr ""
36927
36928 #. type: =item
36929 #: ../src/guestfs.pod:2831
36930 msgid "C<cat>"
36931 msgstr ""
36932
36933 #. type: textblock
36934 #: ../src/guestfs.pod:2833
36935 msgid ""
36936 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
36937 "documentation."
36938 msgstr ""
36939
36940 #. type: =item
36941 #: ../src/guestfs.pod:2836
36942 msgid "C<caution>"
36943 msgstr ""
36944
36945 #. type: textblock
36946 #: ../src/guestfs.pod:2838
36947 msgid ""
36948 "Safety and liveness tests of components that libguestfs depends upon (not of "
36949 "libguestfs itself).  Mainly this is for qemu and the kernel."
36950 msgstr ""
36951
36952 #. type: =item
36953 #: ../src/guestfs.pod:2841
36954 msgid "C<contrib>"
36955 msgstr ""
36956
36957 #. type: textblock
36958 #: ../src/guestfs.pod:2843
36959 msgid "Outside contributions, experimental parts."
36960 msgstr ""
36961
36962 #. type: =item
36963 #: ../src/guestfs.pod:2845
36964 msgid "C<daemon>"
36965 msgstr ""
36966
36967 #. type: textblock
36968 #: ../src/guestfs.pod:2847
36969 msgid ""
36970 "The daemon that runs inside the libguestfs appliance and carries out actions."
36971 msgstr ""
36972
36973 #. type: =item
36974 #: ../src/guestfs.pod:2850
36975 msgid "C<df>"
36976 msgstr ""
36977
36978 #. type: textblock
36979 #: ../src/guestfs.pod:2852
36980 msgid "L<virt-df(1)> command and documentation."
36981 msgstr ""
36982
36983 #. type: =item
36984 #: ../src/guestfs.pod:2854
36985 msgid "C<edit>"
36986 msgstr ""
36987
36988 #. type: textblock
36989 #: ../src/guestfs.pod:2856
36990 msgid "L<virt-edit(1)> command and documentation."
36991 msgstr ""
36992
36993 #. type: =item
36994 #: ../src/guestfs.pod:2858
36995 msgid "C<examples>"
36996 msgstr ""
36997
36998 #. type: textblock
36999 #: ../src/guestfs.pod:2860
37000 msgid "C API example code."
37001 msgstr ""
37002
37003 #. type: =item
37004 #: ../src/guestfs.pod:2862
37005 msgid "C<fish>"
37006 msgstr ""
37007
37008 #. type: textblock
37009 #: ../src/guestfs.pod:2864
37010 msgid ""
37011 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
37012 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
37013 "L<virt-tar-out(1)>."
37014 msgstr ""
37015
37016 #. type: =item
37017 #: ../src/guestfs.pod:2868
37018 msgid "C<fuse>"
37019 msgstr ""
37020
37021 #. type: textblock
37022 #: ../src/guestfs.pod:2870
37023 msgid ""
37024 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
37025 msgstr ""
37026
37027 #. type: =item
37028 #: ../src/guestfs.pod:2872
37029 msgid "C<generator>"
37030 msgstr ""
37031
37032 #. type: textblock
37033 #: ../src/guestfs.pod:2874
37034 msgid ""
37035 "The crucially important generator, used to automatically generate large "
37036 "amounts of boilerplate C code for things like RPC and bindings."
37037 msgstr ""
37038
37039 #. type: =item
37040 #: ../src/guestfs.pod:2877
37041 msgid "C<images>"
37042 msgstr ""
37043
37044 #. type: textblock
37045 #: ../src/guestfs.pod:2879
37046 msgid "Files used by the test suite."
37047 msgstr ""
37048
37049 #. type: textblock
37050 #: ../src/guestfs.pod:2881
37051 msgid "Some \"phony\" guest images which we test against."
37052 msgstr ""
37053
37054 #. type: =item
37055 #: ../src/guestfs.pod:2883
37056 msgid "C<inspector>"
37057 msgstr ""
37058
37059 #. type: textblock
37060 #: ../src/guestfs.pod:2885
37061 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
37062 msgstr ""
37063
37064 #. type: =item
37065 #: ../src/guestfs.pod:2887
37066 msgid "C<logo>"
37067 msgstr ""
37068
37069 #. type: textblock
37070 #: ../src/guestfs.pod:2889
37071 msgid "Logo used on the website.  The fish is called Arthur by the way."
37072 msgstr ""
37073
37074 #. type: =item
37075 #: ../src/guestfs.pod:2891
37076 msgid "C<m4>"
37077 msgstr ""
37078
37079 #. type: textblock
37080 #: ../src/guestfs.pod:2893
37081 msgid "M4 macros used by autoconf."
37082 msgstr ""
37083
37084 #. type: =item
37085 #: ../src/guestfs.pod:2895
37086 msgid "C<po>"
37087 msgstr ""
37088
37089 #. type: textblock
37090 #: ../src/guestfs.pod:2897
37091 msgid "Translations of simple gettext strings."
37092 msgstr ""
37093
37094 #. type: =item
37095 #: ../src/guestfs.pod:2899
37096 msgid "C<po-docs>"
37097 msgstr ""
37098
37099 #. type: textblock
37100 #: ../src/guestfs.pod:2901
37101 msgid ""
37102 "The build infrastructure and PO files for translations of manpages and POD "
37103 "files.  Eventually this will be combined with the C<po> directory, but that "
37104 "is rather complicated."
37105 msgstr ""
37106
37107 #. type: =item
37108 #: ../src/guestfs.pod:2905
37109 msgid "C<regressions>"
37110 msgstr ""
37111
37112 #. type: textblock
37113 #: ../src/guestfs.pod:2907
37114 msgid "Regression tests."
37115 msgstr ""
37116
37117 #. type: =item
37118 #: ../src/guestfs.pod:2909
37119 msgid "C<rescue>"
37120 msgstr ""
37121
37122 #. type: textblock
37123 #: ../src/guestfs.pod:2911
37124 msgid "L<virt-rescue(1)> command and documentation."
37125 msgstr ""
37126
37127 #. type: =item
37128 #: ../src/guestfs.pod:2913
37129 msgid "C<src>"
37130 msgstr ""
37131
37132 #. type: textblock
37133 #: ../src/guestfs.pod:2915
37134 msgid "Source code to the C library."
37135 msgstr ""
37136
37137 #. type: =item
37138 #: ../src/guestfs.pod:2917
37139 msgid "C<tools>"
37140 msgstr ""
37141
37142 #. type: textblock
37143 #: ../src/guestfs.pod:2919
37144 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
37145 msgstr ""
37146
37147 #. type: =item
37148 #: ../src/guestfs.pod:2921
37149 msgid "C<test-tool>"
37150 msgstr ""
37151
37152 #. type: textblock
37153 #: ../src/guestfs.pod:2923
37154 msgid ""
37155 "Test tool for end users to test if their qemu/kernel combination will work "
37156 "with libguestfs."
37157 msgstr ""
37158
37159 #. type: =item
37160 #: ../src/guestfs.pod:2926
37161 msgid "C<csharp>"
37162 msgstr ""
37163
37164 #. type: =item
37165 #: ../src/guestfs.pod:2928
37166 msgid "C<erlang>"
37167 msgstr ""
37168
37169 #. type: =item
37170 #: ../src/guestfs.pod:2930
37171 msgid "C<haskell>"
37172 msgstr ""
37173
37174 #. type: =item
37175 #: ../src/guestfs.pod:2932
37176 msgid "C<java>"
37177 msgstr ""
37178
37179 #. type: =item
37180 #: ../src/guestfs.pod:2934
37181 msgid "C<ocaml>"
37182 msgstr ""
37183
37184 #. type: =item
37185 #: ../src/guestfs.pod:2936
37186 msgid "C<php>"
37187 msgstr ""
37188
37189 #. type: =item
37190 #: ../src/guestfs.pod:2938
37191 msgid "C<perl>"
37192 msgstr ""
37193
37194 #. type: =item
37195 #: ../src/guestfs.pod:2940
37196 msgid "C<python>"
37197 msgstr ""
37198
37199 #. type: =item
37200 #: ../src/guestfs.pod:2942
37201 msgid "C<ruby>"
37202 msgstr ""
37203
37204 #. type: textblock
37205 #: ../src/guestfs.pod:2944
37206 msgid "Language bindings."
37207 msgstr ""
37208
37209 #. type: =head2
37210 #: ../src/guestfs.pod:2948
37211 msgid "MAKING A STABLE RELEASE"
37212 msgstr ""
37213
37214 #. type: textblock
37215 #: ../src/guestfs.pod:2950
37216 msgid ""
37217 "When we make a stable release, there are several steps documented here.  See "
37218 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
37219 "branch policy."
37220 msgstr ""
37221
37222 #. type: textblock
37223 #: ../src/guestfs.pod:2958
37224 msgid ""
37225 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
37226 msgstr ""
37227
37228 #. type: textblock
37229 #: ../src/guestfs.pod:2963
37230 msgid "Finalize RELEASE-NOTES."
37231 msgstr ""
37232
37233 #. type: textblock
37234 #: ../src/guestfs.pod:2967
37235 msgid "Update ROADMAP."
37236 msgstr ""
37237
37238 #. type: textblock
37239 #: ../src/guestfs.pod:2971
37240 msgid "Run C<src/api-support/update-from-tarballs.sh>."
37241 msgstr ""
37242
37243 #. type: textblock
37244 #: ../src/guestfs.pod:2975
37245 msgid "Push and pull from Transifex."
37246 msgstr ""
37247
37248 #. type: textblock
37249 #: ../src/guestfs.pod:2977
37250 msgid "Run:"
37251 msgstr ""
37252
37253 #. type: verbatim
37254 #: ../src/guestfs.pod:2979
37255 #, no-wrap
37256 msgid ""
37257 " tx push -s\n"
37258 "\n"
37259 msgstr ""
37260
37261 #. type: textblock
37262 #: ../src/guestfs.pod:2981
37263 msgid "to push the latest POT files to Transifex.  Then run:"
37264 msgstr ""
37265
37266 #. type: verbatim
37267 #: ../src/guestfs.pod:2983
37268 #, no-wrap
37269 msgid ""
37270 " ./tx-pull.sh\n"
37271 "\n"
37272 msgstr ""
37273
37274 #. type: textblock
37275 #: ../src/guestfs.pod:2985
37276 msgid "which is a wrapper to pull the latest translated C<*.po> files."
37277 msgstr ""
37278
37279 #. type: textblock
37280 #: ../src/guestfs.pod:2989
37281 msgid ""
37282 "Create new stable and development directories under L<http://libguestfs.org/"
37283 "download>."
37284 msgstr ""
37285
37286 #. type: textblock
37287 #: ../src/guestfs.pod:2994
37288 msgid "Create the branch in git:"
37289 msgstr ""
37290
37291 #. type: verbatim
37292 #: ../src/guestfs.pod:2996
37293 #, no-wrap
37294 msgid ""
37295 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
37296 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
37297 " git branch stable-1.XX\n"
37298 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
37299 "\n"
37300 msgstr ""
37301
37302 #. type: =head1
37303 #: ../src/guestfs.pod:3003
37304 msgid "LIMITS"
37305 msgstr ""
37306
37307 #. type: =head2
37308 #: ../src/guestfs.pod:3005
37309 msgid "PROTOCOL LIMITS"
37310 msgstr ""
37311
37312 #. type: textblock
37313 #: ../src/guestfs.pod:3007
37314 msgid ""
37315 "Internally libguestfs uses a message-based protocol to pass API calls and "
37316 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
37317 "plenty more detail about this).  The maximum message size used by the "
37318 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
37319 "aware of this limit.  The API calls which may be affected are individually "
37320 "documented, with a link back to this section of the documentation."
37321 msgstr ""
37322
37323 #. type: textblock
37324 #: ../src/guestfs.pod:3015
37325 msgid ""
37326 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
37327 "a simple string.  Because this string is at some point internally encoded as "
37328 "a message, the maximum size that it can return is slightly under 4 MB.  If "
37329 "the requested file is larger than this then you will get an error."
37330 msgstr ""
37331
37332 #. type: textblock
37333 #: ../src/guestfs.pod:3021
37334 msgid ""
37335 "In order to transfer large files into and out of the guest filesystem, you "
37336 "need to use particular calls that support this.  The sections L</UPLOADING> "
37337 "and L</DOWNLOADING> document how to do this."
37338 msgstr ""
37339
37340 #. type: textblock
37341 #: ../src/guestfs.pod:3025
37342 msgid ""
37343 "You might also consider mounting the disk image using our FUSE filesystem "
37344 "support (L<guestmount(1)>)."
37345 msgstr ""
37346
37347 #. type: =head2
37348 #: ../src/guestfs.pod:3028
37349 msgid "MAXIMUM NUMBER OF DISKS"
37350 msgstr ""
37351
37352 #. type: textblock
37353 #: ../src/guestfs.pod:3030
37354 msgid "When using virtio disks (the default) the current limit is B<25> disks."
37355 msgstr ""
37356
37357 #. type: textblock
37358 #: ../src/guestfs.pod:3033
37359 msgid ""
37360 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
37361 "slots.  However febootstrap only understands disks with names C</dev/vda> "
37362 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
37363 "purposes."
37364 msgstr ""
37365
37366 #. type: textblock
37367 #: ../src/guestfs.pod:3038
37368 msgid ""
37369 "We are working to substantially raise this limit in future versions but it "
37370 "requires complex changes to qemu."
37371 msgstr ""
37372
37373 #. type: textblock
37374 #: ../src/guestfs.pod:3041
37375 msgid ""
37376 "In future versions of libguestfs it should also be possible to \"hot plug\" "
37377 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
37378 "requires changes to qemu."
37379 msgstr ""
37380
37381 #. type: =head2
37382 #: ../src/guestfs.pod:3045
37383 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
37384 msgstr ""
37385
37386 #. type: textblock
37387 #: ../src/guestfs.pod:3047
37388 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
37389 msgstr ""
37390
37391 #. type: textblock
37392 #: ../src/guestfs.pod:3049
37393 msgid ""
37394 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
37395 "vda>, and C</dev/vda1> through C</dev/vda15>)."
37396 msgstr ""
37397
37398 #. type: textblock
37399 #: ../src/guestfs.pod:3052
37400 msgid ""
37401 "If you attach a disk with more than 15 partitions, the extra partitions are "
37402 "ignored by libguestfs."
37403 msgstr ""
37404
37405 #. type: =head2
37406 #: ../src/guestfs.pod:3055
37407 msgid "MAXIMUM SIZE OF A DISK"
37408 msgstr ""
37409
37410 #. type: textblock
37411 #: ../src/guestfs.pod:3057
37412 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
37413 msgstr ""
37414
37415 #. type: textblock
37416 #: ../src/guestfs.pod:3059
37417 msgid ""
37418 "We have tested block devices up to 1 exabyte (2**60 or "
37419 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
37420 "filesystem."
37421 msgstr ""
37422
37423 #. type: textblock
37424 #: ../src/guestfs.pod:3063
37425 msgid ""
37426 "Although libguestfs probably does not impose any limit, the underlying host "
37427 "storage will.  If you store disk images on a host ext4 filesystem, then the "
37428 "maximum size will be limited by the maximum ext4 file size (currently 16 "
37429 "TB).  If you store disk images as host logical volumes then you are limited "
37430 "by the maximum size of an LV."
37431 msgstr ""
37432
37433 #. type: textblock
37434 #: ../src/guestfs.pod:3069
37435 msgid ""
37436 "For the hugest disk image files, we recommend using XFS on the host for "
37437 "storage."
37438 msgstr ""
37439
37440 #. type: =head2
37441 #: ../src/guestfs.pod:3072
37442 msgid "MAXIMUM SIZE OF A PARTITION"
37443 msgstr ""
37444
37445 #. type: textblock
37446 #: ../src/guestfs.pod:3074
37447 msgid ""
37448 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
37449 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
37450 "address a partition located beyond 2 TB on the disk."
37451 msgstr ""
37452
37453 #. type: textblock
37454 #: ../src/guestfs.pod:3078
37455 msgid ""
37456 "It is recommended that you use GPT partitions on disks which are larger than "
37457 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
37458 "which are theoretically larger than the largest disk we could support."
37459 msgstr ""
37460
37461 #. type: =head2
37462 #: ../src/guestfs.pod:3083
37463 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
37464 msgstr ""
37465
37466 #. type: textblock
37467 #: ../src/guestfs.pod:3085
37468 msgid ""
37469 "This depends on the filesystem type.  libguestfs itself does not impose any "
37470 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
37471 "what these limits are."
37472 msgstr ""
37473
37474 #. type: =head2
37475 #: ../src/guestfs.pod:3089
37476 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
37477 msgstr ""
37478
37479 #. type: textblock
37480 #: ../src/guestfs.pod:3091
37481 msgid ""
37482 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
37483 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
37484 "uploads and downloads."
37485 msgstr ""
37486
37487 #. type: =head2
37488 #: ../src/guestfs.pod:3095
37489 msgid "INSPECTION LIMITS"
37490 msgstr ""
37491
37492 #. type: textblock
37493 #: ../src/guestfs.pod:3097
37494 msgid ""
37495 "The inspection code has several arbitrary limits on things like the size of "
37496 "Windows Registry hive it will read, and the length of product name.  These "
37497 "are intended to stop a malicious guest from consuming arbitrary amounts of "
37498 "memory and disk space on the host, and should not be reached in practice.  "
37499 "See the source code for more information."
37500 msgstr ""
37501
37502 #. type: textblock
37503 #: ../src/guestfs.pod:3123
37504 msgid ""
37505 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
37506 "effect as calling C<guestfs_set_verbose (g, 1)>."
37507 msgstr ""
37508
37509 #. type: textblock
37510 #: ../src/guestfs.pod:3135
37511 msgid ""
37512 "Set the path that libguestfs uses to search for a supermin appliance.  See "
37513 "the discussion of paths in section L</PATH> above."
37514 msgstr ""
37515
37516 #. type: textblock
37517 #: ../src/guestfs.pod:3144
37518 msgid "See also L</QEMU WRAPPERS> above."
37519 msgstr ""
37520
37521 #. type: textblock
37522 #: ../src/guestfs.pod:3148
37523 msgid ""
37524 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
37525 "effect as calling C<guestfs_set_trace (g, 1)>."
37526 msgstr ""
37527
37528 #. type: textblock
37529 #: ../src/guestfs.pod:3166
37530 msgid ""
37531 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
37532 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
37533 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
37534 "L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, "
37535 "L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)"
37536 ">, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-tar(1)>, "
37537 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
37538 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://"
37539 "libguestfs.org/>."
37540 msgstr ""
37541
37542 #. type: textblock
37543 #: ../src/guestfs.pod:3197
37544 msgid ""
37545 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
37546 "(8)>, L<disktype(1)>."
37547 msgstr ""
37548
37549 #. type: =head1
37550 #: ../src/guestfs.pod:3204 ../tools/virt-make-fs.pl:553
37551 #: ../tools/virt-win-reg.pl:761
37552 msgid "BUGS"
37553 msgstr ""
37554
37555 #. type: textblock
37556 #: ../src/guestfs.pod:3206
37557 msgid "To get a list of bugs against libguestfs use this link:"
37558 msgstr ""
37559
37560 #. type: textblock
37561 #: ../src/guestfs.pod:3208
37562 msgid ""
37563 "L<https://bugzilla.redhat.com/buglist.cgi?"
37564 "component=libguestfs&product=Virtualization+Tools>"
37565 msgstr ""
37566
37567 #. type: textblock
37568 #: ../src/guestfs.pod:3210
37569 msgid "To report a new bug against libguestfs use this link:"
37570 msgstr ""
37571
37572 #. type: textblock
37573 #: ../src/guestfs.pod:3212
37574 msgid ""
37575 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
37576 "component=libguestfs&product=Virtualization+Tools>"
37577 msgstr ""
37578
37579 #. type: textblock
37580 #: ../src/guestfs.pod:3214
37581 msgid "When reporting a bug, please check:"
37582 msgstr ""
37583
37584 #. type: textblock
37585 #: ../src/guestfs.pod:3220
37586 msgid "That the bug hasn't been reported already."
37587 msgstr ""
37588
37589 #. type: textblock
37590 #: ../src/guestfs.pod:3224
37591 msgid "That you are testing a recent version."
37592 msgstr ""
37593
37594 #. type: textblock
37595 #: ../src/guestfs.pod:3228
37596 msgid "Describe the bug accurately, and give a way to reproduce it."
37597 msgstr ""
37598
37599 #. type: textblock
37600 #: ../src/guestfs.pod:3232
37601 msgid ""
37602 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
37603 "bug report."
37604 msgstr ""
37605
37606 #. type: textblock
37607 #: ../test-tool/libguestfs-test-tool.pod:5
37608 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
37609 msgstr ""
37610
37611 #. type: verbatim
37612 #: ../test-tool/libguestfs-test-tool.pod:9
37613 #, no-wrap
37614 msgid ""
37615 " libguestfs-test-tool [--options]\n"
37616 "\n"
37617 msgstr ""
37618
37619 #. type: textblock
37620 #: ../test-tool/libguestfs-test-tool.pod:13
37621 msgid ""
37622 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
37623 "to check basic libguestfs functionality is working.  This is needed because "
37624 "libguestfs occasionally breaks for reasons beyond our control: usually "
37625 "because of changes in the underlying qemu or kernel packages, or the host "
37626 "environment."
37627 msgstr ""
37628
37629 #. type: textblock
37630 #: ../test-tool/libguestfs-test-tool.pod:19
37631 msgid "If you suspect a problem in libguestfs, then just run:"
37632 msgstr ""
37633
37634 #. type: verbatim
37635 #: ../test-tool/libguestfs-test-tool.pod:21
37636 #, no-wrap
37637 msgid ""
37638 " libguestfs-test-tool\n"
37639 "\n"
37640 msgstr ""
37641
37642 #. type: textblock
37643 #: ../test-tool/libguestfs-test-tool.pod:23
37644 msgid "It will print lots of diagnostic messages."
37645 msgstr ""
37646
37647 #. type: textblock
37648 #: ../test-tool/libguestfs-test-tool.pod:25
37649 msgid "If it runs to completion successfully, you will see this near the end:"
37650 msgstr ""
37651
37652 #. type: verbatim
37653 #: ../test-tool/libguestfs-test-tool.pod:27
37654 #, no-wrap
37655 msgid ""
37656 " ===== TEST FINISHED OK =====\n"
37657 "\n"
37658 msgstr ""
37659
37660 #. type: textblock
37661 #: ../test-tool/libguestfs-test-tool.pod:29
37662 msgid "and the test tool will exit with code 0."
37663 msgstr ""
37664
37665 #. type: textblock
37666 #: ../test-tool/libguestfs-test-tool.pod:31
37667 msgid ""
37668 "If it fails (and/or exits with non-zero error code), please paste the "
37669 "I<complete, unedited> output of the test tool into a bug report.  More "
37670 "information about reporting bugs can be found on the L<http://libguestfs.org/"
37671 "> website."
37672 msgstr ""
37673
37674 #. type: textblock
37675 #: ../test-tool/libguestfs-test-tool.pod:42
37676 msgid "Display short usage information and exit."
37677 msgstr ""
37678
37679 #. type: =item
37680 #: ../test-tool/libguestfs-test-tool.pod:44
37681 msgid "B<--qemu qemu_binary>"
37682 msgstr ""
37683
37684 #. type: textblock
37685 #: ../test-tool/libguestfs-test-tool.pod:46
37686 msgid ""
37687 "If you have downloaded another qemu binary, point this option at the full "
37688 "path of the binary to try it."
37689 msgstr ""
37690
37691 #. type: =item
37692 #: ../test-tool/libguestfs-test-tool.pod:49
37693 msgid "B<--qemudir qemu_source_dir>"
37694 msgstr ""
37695
37696 #. type: textblock
37697 #: ../test-tool/libguestfs-test-tool.pod:51
37698 msgid ""
37699 "If you have compiled qemu from source, point this option at the source "
37700 "directory to try it."
37701 msgstr ""
37702
37703 #. type: =item
37704 #: ../test-tool/libguestfs-test-tool.pod:54
37705 msgid "B<-t N>"
37706 msgstr ""
37707
37708 #. type: =item
37709 #: ../test-tool/libguestfs-test-tool.pod:56
37710 msgid "B<--timeout N>"
37711 msgstr ""
37712
37713 #. type: textblock
37714 #: ../test-tool/libguestfs-test-tool.pod:58
37715 msgid ""
37716 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
37717 "minutes) which does not usually need to be adjusted."
37718 msgstr ""
37719
37720 #. type: =head1
37721 #: ../test-tool/libguestfs-test-tool.pod:63
37722 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
37723 msgstr ""
37724
37725 #. type: textblock
37726 #: ../test-tool/libguestfs-test-tool.pod:65
37727 msgid ""
37728 "If you have compiled another version of qemu from source and would like to "
37729 "try that, then you can use the I<--qemudir> option to point to the qemu "
37730 "source directory."
37731 msgstr ""
37732
37733 #. type: textblock
37734 #: ../test-tool/libguestfs-test-tool.pod:69
37735 msgid ""
37736 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
37737 "option to point to the binary."
37738 msgstr ""
37739
37740 #. type: textblock
37741 #: ../test-tool/libguestfs-test-tool.pod:72
37742 msgid ""
37743 "Note when using these options, you can ignore the business of qemu wrapper "
37744 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
37745 "wrapper script for you if one is needed."
37746 msgstr ""
37747
37748 #. type: =head1
37749 #: ../test-tool/libguestfs-test-tool.pod:76
37750 msgid "TRYING OUT A DIFFERENT KERNEL"
37751 msgstr ""
37752
37753 #. type: textblock
37754 #: ../test-tool/libguestfs-test-tool.pod:78
37755 msgid ""
37756 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
37757 "libguestfs tries.  You do this by setting the environment variables "
37758 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
37759 msgstr ""
37760
37761 #. type: textblock
37762 #: ../test-tool/libguestfs-test-tool.pod:82
37763 msgid ""
37764 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
37765 "information."
37766 msgstr ""
37767
37768 #. type: =head1
37769 #: ../test-tool/libguestfs-test-tool.pod:85
37770 msgid "SELF-DIAGNOSIS"
37771 msgstr ""
37772
37773 #. type: textblock
37774 #: ../test-tool/libguestfs-test-tool.pod:87
37775 msgid ""
37776 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
37777 "produced by libguestfs-test-tool and/or possible errors."
37778 msgstr ""
37779
37780 #. type: textblock
37781 #: ../test-tool/libguestfs-test-tool.pod:92
37782 msgid ""
37783 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
37784 "I<1> if there was an error."
37785 msgstr ""
37786
37787 #. type: textblock
37788 #: ../test-tool/libguestfs-test-tool.pod:97
37789 msgid ""
37790 "For the full list of environment variables which may affect libguestfs, "
37791 "please see the L<guestfs(3)> manual page."
37792 msgstr ""
37793
37794 #. type: textblock
37795 #: ../test-tool/libguestfs-test-tool.pod:102
37796 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
37797 msgstr ""
37798
37799 #. type: textblock
37800 #: ../tools/virt-list-filesystems.pl:32
37801 msgid ""
37802 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
37803 msgstr ""
37804
37805 #. type: verbatim
37806 #: ../tools/virt-list-filesystems.pl:36
37807 #, no-wrap
37808 msgid ""
37809 " virt-list-filesystems [--options] domname\n"
37810 "\n"
37811 msgstr ""
37812
37813 #. type: verbatim
37814 #: ../tools/virt-list-filesystems.pl:38
37815 #, no-wrap
37816 msgid ""
37817 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
37818 "\n"
37819 msgstr ""
37820
37821 #. type: textblock
37822 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
37823 msgid ""
37824 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
37825 "replacement."
37826 msgstr ""
37827
37828 #. type: textblock
37829 #: ../tools/virt-list-filesystems.pl:45
37830 msgid ""
37831 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
37832 "are contained in a virtual machine or disk image."
37833 msgstr ""
37834
37835 #. type: textblock
37836 #: ../tools/virt-list-filesystems.pl:49
37837 msgid ""
37838 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
37839 "functionality.  For more complex cases you should look at the L<guestfish(1)"
37840 "> tool."
37841 msgstr ""
37842
37843 #. type: textblock
37844 #: ../tools/virt-list-filesystems.pl:112
37845 msgid ""
37846 "With this option, C<virt-list-filesystems> displays the type of each "
37847 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
37848 msgstr ""
37849
37850 #. type: =item
37851 #: ../tools/virt-list-filesystems.pl:119
37852 msgid "B<-a>"
37853 msgstr ""
37854
37855 #. type: textblock
37856 #: ../tools/virt-list-filesystems.pl:123
37857 msgid ""
37858 "Normally we only show mountable filesystems.  If this option is given then "
37859 "swap devices are shown too."
37860 msgstr ""
37861
37862 #. type: textblock
37863 #: ../tools/virt-list-filesystems.pl:197
37864 msgid ""
37865 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
37866 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
37867 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
37868 msgstr ""
37869
37870 #. type: textblock
37871 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
37872 msgid "Copyright (C) 2009 Red Hat Inc."
37873 msgstr ""
37874
37875 #. type: textblock
37876 #: ../tools/virt-list-partitions.pl:32
37877 msgid ""
37878 "virt-list-partitions - List partitions in a virtual machine or disk image"
37879 msgstr ""
37880
37881 #. type: verbatim
37882 #: ../tools/virt-list-partitions.pl:36
37883 #, no-wrap
37884 msgid ""
37885 " virt-list-partitions [--options] domname\n"
37886 "\n"
37887 msgstr ""
37888
37889 #. type: verbatim
37890 #: ../tools/virt-list-partitions.pl:38
37891 #, no-wrap
37892 msgid ""
37893 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
37894 "\n"
37895 msgstr ""
37896
37897 #. type: textblock
37898 #: ../tools/virt-list-partitions.pl:45
37899 msgid ""
37900 "C<virt-list-partitions> is a command line tool to list the partitions that "
37901 "are contained in a virtual machine or disk image.  It is mainly useful as a "
37902 "first step to using L<virt-resize(1)>."
37903 msgstr ""
37904
37905 #. type: textblock
37906 #: ../tools/virt-list-partitions.pl:50
37907 msgid ""
37908 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
37909 "functionality.  For more complex cases you should look at the L<guestfish(1)"
37910 "> tool."
37911 msgstr ""
37912
37913 #. type: textblock
37914 #: ../tools/virt-list-partitions.pl:113
37915 msgid "Show sizes in human-readable form (eg. \"1G\")."
37916 msgstr ""
37917
37918 #. type: textblock
37919 #: ../tools/virt-list-partitions.pl:123
37920 msgid ""
37921 "With this option, C<virt-list-partitions> displays the type and size of each "
37922 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
37923 msgstr ""
37924
37925 #. type: =item
37926 #: ../tools/virt-list-partitions.pl:130
37927 msgid "B<-t>"
37928 msgstr ""
37929
37930 #. type: =item
37931 #: ../tools/virt-list-partitions.pl:132
37932 msgid "B<--total>"
37933 msgstr ""
37934
37935 #. type: textblock
37936 #: ../tools/virt-list-partitions.pl:134
37937 msgid ""
37938 "Display the total size of each block device (as a separate row or rows)."
37939 msgstr ""
37940
37941 #. type: textblock
37942 #: ../tools/virt-list-partitions.pl:267
37943 msgid ""
37944 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
37945 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
37946 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
37947 msgstr ""
37948
37949 #. type: textblock
37950 #: ../tools/virt-list-partitions.pl:283
37951 msgid "Copyright (C) 2009-2010 Red Hat Inc."
37952 msgstr ""
37953
37954 #. type: textblock
37955 #: ../tools/virt-make-fs.pl:37
37956 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
37957 msgstr ""
37958
37959 #. type: verbatim
37960 #: ../tools/virt-make-fs.pl:41
37961 #, no-wrap
37962 msgid ""
37963 " virt-make-fs [--options] input.tar output.img\n"
37964 "\n"
37965 msgstr ""
37966
37967 #. type: verbatim
37968 #: ../tools/virt-make-fs.pl:43
37969 #, no-wrap
37970 msgid ""
37971 " virt-make-fs [--options] input.tar.gz output.img\n"
37972 "\n"
37973 msgstr ""
37974
37975 #. type: verbatim
37976 #: ../tools/virt-make-fs.pl:45
37977 #, no-wrap
37978 msgid ""
37979 " virt-make-fs [--options] directory output.img\n"
37980 "\n"
37981 msgstr ""
37982
37983 #. type: textblock
37984 #: ../tools/virt-make-fs.pl:49
37985 msgid ""
37986 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
37987 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
37988 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
37989 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
37990 "you want to attach these filesystems to existing virtual machines (eg. to "
37991 "import large amounts of read-only data to a VM)."
37992 msgstr ""
37993
37994 #. type: textblock
37995 #: ../tools/virt-make-fs.pl:57
37996 msgid "Basic usage is:"
37997 msgstr ""
37998
37999 #. type: verbatim
38000 #: ../tools/virt-make-fs.pl:59
38001 #, no-wrap
38002 msgid ""
38003 " virt-make-fs input output\n"
38004 "\n"
38005 msgstr ""
38006
38007 #. type: textblock
38008 #: ../tools/virt-make-fs.pl:61
38009 msgid ""
38010 "where C<input> is either a directory containing files that you want to add, "
38011 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
38012 "C<output> is a disk image.  The input type is detected automatically.  The "
38013 "output disk image defaults to a raw ext2 image unless you specify extra "
38014 "flags (see L</OPTIONS> below)."
38015 msgstr ""
38016
38017 #. type: =head2
38018 #: ../tools/virt-make-fs.pl:67
38019 msgid "EXTRA SPACE"
38020 msgstr ""
38021
38022 #. type: textblock
38023 #: ../tools/virt-make-fs.pl:69
38024 msgid ""
38025 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
38026 "the files that it contains, but might have extra space.  Depending on how "
38027 "you are going to use the output, you might think this extra space is wasted "
38028 "and want to minimize it, or you might want to leave space so that more files "
38029 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
38030 "but you can use the I<--size> flag to leave space in the filesystem if you "
38031 "want it."
38032 msgstr ""
38033
38034 #. type: textblock
38035 #: ../tools/virt-make-fs.pl:77
38036 msgid ""
38037 "An alternative way to leave extra space but not make the output image any "
38038 "bigger is to use an alternative disk image format (instead of the default "
38039 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
38040 "image format (check your hypervisor supports this before using it).  This "
38041 "allows you to choose a large I<--size> but the extra space won't actually be "
38042 "allocated in the image until you try to store something in it."
38043 msgstr ""
38044
38045 #. type: textblock
38046 #: ../tools/virt-make-fs.pl:85
38047 msgid ""
38048 "Don't forget that you can also use local commands including L<resize2fs(8)> "
38049 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
38050 "to build another image from scratch."
38051 msgstr ""
38052
38053 #. type: =head3
38054 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
38055 #: ../tools/virt-make-fs.pl:142
38056 msgid "EXAMPLE"
38057 msgstr ""
38058
38059 #. type: verbatim
38060 #: ../tools/virt-make-fs.pl:91
38061 #, no-wrap
38062 msgid ""
38063 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
38064 "\n"
38065 msgstr ""
38066
38067 #. type: =head2
38068 #: ../tools/virt-make-fs.pl:93
38069 msgid "FILESYSTEM TYPE"
38070 msgstr ""
38071
38072 #. type: textblock
38073 #: ../tools/virt-make-fs.pl:95
38074 msgid ""
38075 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
38076 "libguestfs supports can be used (but I<not> read-only formats like "
38077 "ISO9660).  Here are some of the more common choices:"
38078 msgstr ""
38079
38080 #. type: =item
38081 #: ../tools/virt-make-fs.pl:101
38082 msgid "I<ext3>"
38083 msgstr ""
38084
38085 #. type: textblock
38086 #: ../tools/virt-make-fs.pl:103
38087 msgid ""
38088 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
38089 "you are not going to use the filesystem in a way that requires the journal, "
38090 "then this is just wasted overhead."
38091 msgstr ""
38092
38093 #. type: =item
38094 #: ../tools/virt-make-fs.pl:107
38095 msgid "I<ntfs> or I<vfat>"
38096 msgstr ""
38097
38098 #. type: textblock
38099 #: ../tools/virt-make-fs.pl:109
38100 msgid "Useful if exporting data to a Windows guest."
38101 msgstr ""
38102
38103 #. type: textblock
38104 #: ../tools/virt-make-fs.pl:111
38105 msgid ""
38106 "I<Note for vfat>: The tar archive or local directory must only contain files "
38107 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
38108 "program running within libguestfs is unable to change the ownership of non-"
38109 "root files, since vfat itself does not support this."
38110 msgstr ""
38111
38112 #. type: =item
38113 #: ../tools/virt-make-fs.pl:116
38114 msgid "I<minix>"
38115 msgstr ""
38116
38117 #. type: textblock
38118 #: ../tools/virt-make-fs.pl:118
38119 msgid ""
38120 "Lower overhead than C<ext2>, but certain limitations on filename length and "
38121 "total filesystem size."
38122 msgstr ""
38123
38124 #. type: verbatim
38125 #: ../tools/virt-make-fs.pl:125
38126 #, no-wrap
38127 msgid ""
38128 " virt-make-fs --type=minix input minixfs.img\n"
38129 "\n"
38130 msgstr ""
38131
38132 #. type: =head2
38133 #: ../tools/virt-make-fs.pl:127
38134 msgid "TO PARTITION OR NOT TO PARTITION"
38135 msgstr ""
38136
38137 #. type: textblock
38138 #: ../tools/virt-make-fs.pl:129
38139 msgid "Optionally virt-make-fs can add a partition table to the output disk."
38140 msgstr ""
38141
38142 #. type: textblock
38143 #: ../tools/virt-make-fs.pl:131
38144 msgid ""
38145 "Adding a partition can make the disk image more compatible with certain "
38146 "virtualized operating systems which don't expect to see a filesystem "
38147 "directly located on a block device (Linux doesn't care and will happily "
38148 "handle both types)."
38149 msgstr ""
38150
38151 #. type: textblock
38152 #: ../tools/virt-make-fs.pl:136
38153 msgid ""
38154 "On the other hand, if you have a partition table then the output image is no "
38155 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
38156 "directly on a partitioned disk image.  (However libguestfs tools such as "
38157 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
38158 msgstr ""
38159
38160 #. type: textblock
38161 #: ../tools/virt-make-fs.pl:144
38162 msgid "Add an MBR partition:"
38163 msgstr ""
38164
38165 #. type: verbatim
38166 #: ../tools/virt-make-fs.pl:146
38167 #, no-wrap
38168 msgid ""
38169 " virt-make-fs --partition -- input disk.img\n"
38170 "\n"
38171 msgstr ""
38172
38173 #. type: textblock
38174 #: ../tools/virt-make-fs.pl:148
38175 msgid ""
38176 "If the output disk image could be terabyte-sized or larger, it's better to "
38177 "use an EFI/GPT-compatible partition table:"
38178 msgstr ""
38179
38180 #. type: verbatim
38181 #: ../tools/virt-make-fs.pl:151
38182 #, no-wrap
38183 msgid ""
38184 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
38185 "\n"
38186 msgstr ""
38187
38188 #. type: textblock
38189 #: ../tools/virt-make-fs.pl:179
38190 msgid "Enable debugging information."
38191 msgstr ""
38192
38193 #. type: =item
38194 #: ../tools/virt-make-fs.pl:185
38195 msgid "B<--size=E<lt>NE<gt>>"
38196 msgstr ""
38197
38198 #. type: =item
38199 #: ../tools/virt-make-fs.pl:187
38200 msgid "B<--size=+E<lt>NE<gt>>"
38201 msgstr ""
38202
38203 #. type: =item
38204 #: ../tools/virt-make-fs.pl:189
38205 msgid "B<-s E<lt>NE<gt>>"
38206 msgstr ""
38207
38208 #. type: =item
38209 #: ../tools/virt-make-fs.pl:191
38210 msgid "B<-s +E<lt>NE<gt>>"
38211 msgstr ""
38212
38213 #. type: textblock
38214 #: ../tools/virt-make-fs.pl:193
38215 msgid ""
38216 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
38217 msgstr ""
38218
38219 #. type: textblock
38220 #: ../tools/virt-make-fs.pl:196
38221 msgid ""
38222 "If this option is I<not> given, then the output image will be just large "
38223 "enough to contain all the files, with not much wasted space."
38224 msgstr ""
38225
38226 #. type: textblock
38227 #: ../tools/virt-make-fs.pl:199
38228 msgid ""
38229 "To choose a fixed size output disk, specify an absolute number followed by b/"
38230 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
38231 "Petabytes or Exabytes.  This must be large enough to contain all the input "
38232 "files, else you will get an error."
38233 msgstr ""
38234
38235 #. type: textblock
38236 #: ../tools/virt-make-fs.pl:204
38237 msgid ""
38238 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
38239 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
38240 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
38241 "the input files, and (approximately) an extra 200 MB free space."
38242 msgstr ""
38243
38244 #. type: textblock
38245 #: ../tools/virt-make-fs.pl:210
38246 msgid ""
38247 "Note that virt-make-fs estimates free space, and therefore will not produce "
38248 "filesystems containing precisely the free space requested.  (It is much more "
38249 "expensive and time-consuming to produce a filesystem which has precisely the "
38250 "desired free space)."
38251 msgstr ""
38252
38253 #. type: =item
38254 #: ../tools/virt-make-fs.pl:219
38255 msgid "B<--format=E<lt>fmtE<gt>>"
38256 msgstr ""
38257
38258 #. type: =item
38259 #: ../tools/virt-make-fs.pl:221
38260 msgid "B<-F E<lt>fmtE<gt>>"
38261 msgstr ""
38262
38263 #. type: textblock
38264 #: ../tools/virt-make-fs.pl:223
38265 msgid "Choose the output disk image format."
38266 msgstr ""
38267
38268 #. type: textblock
38269 #: ../tools/virt-make-fs.pl:225
38270 msgid "The default is C<raw> (raw disk image)."
38271 msgstr ""
38272
38273 #. type: textblock
38274 #: ../tools/virt-make-fs.pl:227
38275 msgid ""
38276 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
38277 "that would really make sense here is C<qcow2>."
38278 msgstr ""
38279
38280 #. type: =item
38281 #: ../tools/virt-make-fs.pl:234
38282 msgid "B<--type=E<lt>fsE<gt>>"
38283 msgstr ""
38284
38285 #. type: =item
38286 #: ../tools/virt-make-fs.pl:236
38287 msgid "B<-t E<lt>fsE<gt>>"
38288 msgstr ""
38289
38290 #. type: textblock
38291 #: ../tools/virt-make-fs.pl:238
38292 msgid "Choose the output filesystem type."
38293 msgstr ""
38294
38295 #. type: textblock
38296 #: ../tools/virt-make-fs.pl:240
38297 msgid "The default is C<ext2>."
38298 msgstr ""
38299
38300 #. type: textblock
38301 #: ../tools/virt-make-fs.pl:242
38302 msgid ""
38303 "Any filesystem which is supported read-write by libguestfs can be used here."
38304 msgstr ""
38305
38306 #. type: =item
38307 #: ../tools/virt-make-fs.pl:249
38308 msgid "B<--partition>"
38309 msgstr ""
38310
38311 #. type: =item
38312 #: ../tools/virt-make-fs.pl:251
38313 msgid "B<--partition=E<lt>parttypeE<gt>>"
38314 msgstr ""
38315
38316 #. type: textblock
38317 #: ../tools/virt-make-fs.pl:253
38318 msgid ""
38319 "If specified, this flag adds an MBR partition table to the output disk image."
38320 msgstr ""
38321
38322 #. type: textblock
38323 #: ../tools/virt-make-fs.pl:256
38324 msgid ""
38325 "You can change the partition table type, eg. I<--partition=gpt> for large "
38326 "disks."
38327 msgstr ""
38328
38329 #. type: textblock
38330 #: ../tools/virt-make-fs.pl:259
38331 msgid ""
38332 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
38333 "might consider the next parameter to be the partition type.  For example:"
38334 msgstr ""
38335
38336 #. type: verbatim
38337 #: ../tools/virt-make-fs.pl:263
38338 #, no-wrap
38339 msgid ""
38340 " virt-make-fs --partition input.tar ...\n"
38341 "\n"
38342 msgstr ""
38343
38344 #. type: textblock
38345 #: ../tools/virt-make-fs.pl:265
38346 msgid ""
38347 "would cause virt-make-fs to think you wanted to use a partition type of "
38348 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
38349 "dash) between options and the input file argument:"
38350 msgstr ""
38351
38352 #. type: verbatim
38353 #: ../tools/virt-make-fs.pl:269
38354 #, no-wrap
38355 msgid ""
38356 " virt-make-fs --partition -- input.tar ...\n"
38357 "\n"
38358 msgstr ""
38359
38360 #. type: textblock
38361 #: ../tools/virt-make-fs.pl:541
38362 msgid ""
38363 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
38364 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
38365 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
38366 msgstr ""
38367
38368 #. type: textblock
38369 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
38370 msgid ""
38371 "When reporting bugs, please enable debugging and capture the I<complete> "
38372 "output:"
38373 msgstr ""
38374
38375 #. type: verbatim
38376 #: ../tools/virt-make-fs.pl:558
38377 #, no-wrap
38378 msgid ""
38379 " export LIBGUESTFS_DEBUG=1\n"
38380 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
38381 "\n"
38382 msgstr ""
38383
38384 #. type: textblock
38385 #: ../tools/virt-make-fs.pl:561
38386 msgid ""
38387 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
38388 "redhat.com/>"
38389 msgstr ""
38390
38391 #. type: textblock
38392 #: ../tools/virt-tar.pl:33
38393 msgid "virt-tar - Extract or upload files to a virtual machine"
38394 msgstr ""
38395
38396 #. type: verbatim
38397 #: ../tools/virt-tar.pl:37
38398 #, no-wrap
38399 msgid ""
38400 " virt-tar [--options] -x domname directory tarball\n"
38401 "\n"
38402 msgstr ""
38403
38404 #. type: verbatim
38405 #: ../tools/virt-tar.pl:39
38406 #, no-wrap
38407 msgid ""
38408 " virt-tar [--options] -u domname tarball directory\n"
38409 "\n"
38410 msgstr ""
38411
38412 #. type: verbatim
38413 #: ../tools/virt-tar.pl:41
38414 #, no-wrap
38415 msgid ""
38416 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
38417 "\n"
38418 msgstr ""
38419
38420 #. type: verbatim
38421 #: ../tools/virt-tar.pl:43
38422 #, no-wrap
38423 msgid ""
38424 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
38425 "\n"
38426 msgstr ""
38427
38428 #. type: =head2
38429 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
38430 msgid "NOTE"
38431 msgstr ""
38432
38433 #. type: textblock
38434 #: ../tools/virt-tar.pl:47
38435 msgid ""
38436 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
38437 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
38438 msgstr ""
38439
38440 #. type: textblock
38441 #: ../tools/virt-tar.pl:52
38442 msgid "Download C</home> from the VM into a local tarball:"
38443 msgstr ""
38444
38445 #. type: verbatim
38446 #: ../tools/virt-tar.pl:54
38447 #, no-wrap
38448 msgid ""
38449 " virt-tar -x domname /home home.tar\n"
38450 "\n"
38451 msgstr ""
38452
38453 #. type: verbatim
38454 #: ../tools/virt-tar.pl:56
38455 #, no-wrap
38456 msgid ""
38457 " virt-tar -zx domname /home home.tar.gz\n"
38458 "\n"
38459 msgstr ""
38460
38461 #. type: textblock
38462 #: ../tools/virt-tar.pl:58
38463 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
38464 msgstr ""
38465
38466 #. type: verbatim
38467 #: ../tools/virt-tar.pl:60
38468 #, no-wrap
38469 msgid ""
38470 " virt-tar -u domname uploadstuff.tar /tmp\n"
38471 "\n"
38472 msgstr ""
38473
38474 #. type: verbatim
38475 #: ../tools/virt-tar.pl:62
38476 #, no-wrap
38477 msgid ""
38478 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
38479 "\n"
38480 msgstr ""
38481
38482 #. type: textblock
38483 #: ../tools/virt-tar.pl:66
38484 msgid ""
38485 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
38486 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
38487 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
38488 msgstr ""
38489
38490 #. type: textblock
38491 #: ../tools/virt-tar.pl:71
38492 msgid ""
38493 "You can use I<-x> (extract) on live virtual machines, but you might get "
38494 "inconsistent results or errors if there is filesystem activity inside the "
38495 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
38496 "work, but the only way to guarantee consistent results is if the virtual "
38497 "machine is shut down."
38498 msgstr ""
38499
38500 #. type: textblock
38501 #: ../tools/virt-tar.pl:79
38502 msgid ""
38503 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
38504 "parts of a guest filesystem.  There are many possibilities: making backups, "
38505 "uploading data files, snooping on guest activity, fixing or customizing "
38506 "guests, etc."
38507 msgstr ""
38508
38509 #. type: textblock
38510 #: ../tools/virt-tar.pl:84
38511 msgid ""
38512 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
38513 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
38514 "should look at the L<guestfish(1)> tool."
38515 msgstr ""
38516
38517 #. type: textblock
38518 #: ../tools/virt-tar.pl:88
38519 msgid ""
38520 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
38521 "its contents (recursively) from the virtual machine into a local tarball.  "
38522 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
38523 "virtual machine.  You cannot use these two options together."
38524 msgstr ""
38525
38526 #. type: textblock
38527 #: ../tools/virt-tar.pl:94
38528 msgid ""
38529 "In addition, you may need to use the I<-z> (gZip) option to enable "
38530 "compression.  When uploading, you have to specify I<-z> if the upload file "
38531 "is compressed because virt-tar won't detect this on its own."
38532 msgstr ""
38533
38534 #. type: textblock
38535 #: ../tools/virt-tar.pl:98
38536 msgid ""
38537 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
38538 "example it cannot do PKZip files or bzip2 compression.  If you want that "
38539 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
38540 "the L<libguestfs(3)> API)."
38541 msgstr ""
38542
38543 #. type: =item
38544 #: ../tools/virt-tar.pl:160
38545 msgid "B<--extract>"
38546 msgstr ""
38547
38548 #. type: =item
38549 #: ../tools/virt-tar.pl:162
38550 msgid "B<--download>"
38551 msgstr ""
38552
38553 #. type: =item
38554 #: ../tools/virt-tar.pl:164
38555 msgid "B<-u>"
38556 msgstr ""
38557
38558 #. type: =item
38559 #: ../tools/virt-tar.pl:166
38560 msgid "B<--upload>"
38561 msgstr ""
38562
38563 #. type: textblock
38564 #: ../tools/virt-tar.pl:168
38565 msgid ""
38566 "Use I<-x> to extract (download) a directory from a virtual machine to a "
38567 "local tarball."
38568 msgstr ""
38569
38570 #. type: textblock
38571 #: ../tools/virt-tar.pl:171
38572 msgid ""
38573 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
38574 "Please read the L</WARNING> section above before using this option."
38575 msgstr ""
38576
38577 #. type: textblock
38578 #: ../tools/virt-tar.pl:175
38579 msgid "You must specify exactly one of these options."
38580 msgstr ""
38581
38582 #. type: =item
38583 #: ../tools/virt-tar.pl:181
38584 msgid "B<-z>"
38585 msgstr ""
38586
38587 #. type: =item
38588 #: ../tools/virt-tar.pl:183
38589 msgid "B<--gzip>"
38590 msgstr ""
38591
38592 #. type: textblock
38593 #: ../tools/virt-tar.pl:185
38594 msgid "Specify that the input or output tarball is gzip-compressed."
38595 msgstr ""
38596
38597 #. type: textblock
38598 #: ../tools/virt-tar.pl:298
38599 msgid ""
38600 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
38601 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
38602 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
38603 "org/>."
38604 msgstr ""
38605
38606 #. type: textblock
38607 #: ../tools/virt-win-reg.pl:37
38608 msgid ""
38609 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
38610 msgstr ""
38611
38612 #. type: verbatim
38613 #: ../tools/virt-win-reg.pl:41
38614 #, no-wrap
38615 msgid ""
38616 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
38617 "\n"
38618 msgstr ""
38619
38620 #. type: verbatim
38621 #: ../tools/virt-win-reg.pl:43
38622 #, no-wrap
38623 msgid ""
38624 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
38625 "\n"
38626 msgstr ""
38627
38628 #. type: verbatim
38629 #: ../tools/virt-win-reg.pl:45
38630 #, no-wrap
38631 msgid ""
38632 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
38633 "\n"
38634 msgstr ""
38635
38636 #. type: verbatim
38637 #: ../tools/virt-win-reg.pl:47
38638 #, no-wrap
38639 msgid ""
38640 " virt-win-reg --merge domname [input.reg ...]\n"
38641 "\n"
38642 msgstr ""
38643
38644 #. type: verbatim
38645 #: ../tools/virt-win-reg.pl:49
38646 #, no-wrap
38647 msgid ""
38648 " virt-win-reg [--options] disk.img ... # instead of domname\n"
38649 "\n"
38650 msgstr ""
38651
38652 #. type: textblock
38653 #: ../tools/virt-win-reg.pl:53
38654 msgid ""
38655 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
38656 "virtual machines.  If you do this, you I<will> get irreversible disk "
38657 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
38658 "but doesn't catch all cases."
38659 msgstr ""
38660
38661 #. type: textblock
38662 #: ../tools/virt-win-reg.pl:58
38663 msgid ""
38664 "Modifying the Windows Registry is an inherently risky operation.  The format "
38665 "is deliberately obscure and undocumented, and Registry changes can leave the "
38666 "system unbootable.  Therefore when using the I<--merge> option, make sure "
38667 "you have a reliable backup first."
38668 msgstr ""
38669
38670 #. type: textblock
38671 #: ../tools/virt-win-reg.pl:65
38672 msgid ""
38673 "This program can export and merge Windows Registry entries from a Windows "
38674 "guest."
38675 msgstr ""
38676
38677 #. type: textblock
38678 #: ../tools/virt-win-reg.pl:68
38679 msgid ""
38680 "The first parameter is the libvirt guest name or the raw disk image of a "
38681 "Windows guest."
38682 msgstr ""
38683
38684 #. type: textblock
38685 #: ../tools/virt-win-reg.pl:71
38686 msgid ""
38687 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
38688 "exported (recursively).  For example:"
38689 msgstr ""
38690
38691 #. type: verbatim
38692 #: ../tools/virt-win-reg.pl:74
38693 #, no-wrap
38694 msgid ""
38695 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
38696 "\n"
38697 msgstr ""
38698
38699 #. type: textblock
38700 #: ../tools/virt-win-reg.pl:76
38701 msgid ""
38702 "You can also display single values from within registry keys, for example:"
38703 msgstr ""
38704
38705 #. type: verbatim
38706 #: ../tools/virt-win-reg.pl:79
38707 #, no-wrap
38708 msgid ""
38709 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
38710 " $ virt-win-reg Windows7 $cvkey ProductName\n"
38711 " Windows 7 Enterprise\n"
38712 "\n"
38713 msgstr ""
38714
38715 #. type: textblock
38716 #: ../tools/virt-win-reg.pl:83
38717 msgid ""
38718 "With I<--merge>, you can merge a textual regedit file into the Windows "
38719 "Registry:"
38720 msgstr ""
38721
38722 #. type: verbatim
38723 #: ../tools/virt-win-reg.pl:86
38724 #, no-wrap
38725 msgid ""
38726 " $ virt-win-reg --merge Windows7 changes.reg\n"
38727 "\n"
38728 msgstr ""
38729
38730 #. type: textblock
38731 #: ../tools/virt-win-reg.pl:90
38732 msgid ""
38733 "This program is only meant for simple access to the registry.  If you want "
38734 "to do complicated things with the registry, we suggest you download the "
38735 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
38736 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
38737 "L<hivexregedit(1)>."
38738 msgstr ""
38739
38740 #. type: =item
38741 #: ../tools/virt-win-reg.pl:159
38742 msgid "B<--merge>"
38743 msgstr ""
38744
38745 #. type: textblock
38746 #: ../tools/virt-win-reg.pl:161
38747 msgid ""
38748 "In merge mode, this merges a textual regedit file into the Windows Registry "
38749 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
38750 "displays or exports Registry entries instead."
38751 msgstr ""
38752
38753 #. type: textblock
38754 #: ../tools/virt-win-reg.pl:165
38755 msgid ""
38756 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
38757 "result in disk corruption.  However exporting (without this flag)  is always "
38758 "safe."
38759 msgstr ""
38760
38761 #. type: =item
38762 #: ../tools/virt-win-reg.pl:173
38763 msgid "B<--encoding> UTF-16LE|ASCII"
38764 msgstr ""
38765
38766 #. type: textblock
38767 #: ../tools/virt-win-reg.pl:175
38768 msgid ""
38769 "When merging (only), you may need to specify the encoding for strings to be "
38770 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
38771 "(3)/ENCODING STRINGS>."
38772 msgstr ""
38773
38774 #. type: textblock
38775 #: ../tools/virt-win-reg.pl:179
38776 msgid ""
38777 "The default is to use UTF-16LE, which should work with recent versions of "
38778 "Windows."
38779 msgstr ""
38780
38781 #. type: =item
38782 #: ../tools/virt-win-reg.pl:186
38783 msgid "B<--unsafe-printable-strings>"
38784 msgstr ""
38785
38786 #. type: textblock
38787 #: ../tools/virt-win-reg.pl:188
38788 msgid ""
38789 "When exporting (only), assume strings are UTF-16LE and print them as strings "
38790 "instead of hex sequences.  Remove the final zero codepoint from strings if "
38791 "present."
38792 msgstr ""
38793
38794 #. type: textblock
38795 #: ../tools/virt-win-reg.pl:192
38796 msgid ""
38797 "This is unsafe and does not preserve the fidelity of strings in the original "
38798 "Registry for various reasons:"
38799 msgstr ""
38800
38801 #. type: textblock
38802 #: ../tools/virt-win-reg.pl:199
38803 msgid ""
38804 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
38805 "other encodings will be corrupted by this transformation."
38806 msgstr ""
38807
38808 #. type: textblock
38809 #: ../tools/virt-win-reg.pl:204
38810 msgid ""
38811 "Assumes that everything which has type 1 or 2 is really a string and that "
38812 "everything else is not a string, but the type field in real Registries is "
38813 "not reliable."
38814 msgstr ""
38815
38816 #. type: textblock
38817 #: ../tools/virt-win-reg.pl:210
38818 msgid ""
38819 "Loses information about whether a zero codepoint followed the string in the "
38820 "Registry or not."
38821 msgstr ""
38822
38823 #. type: textblock
38824 #: ../tools/virt-win-reg.pl:215
38825 msgid ""
38826 "This all happens because the Registry itself contains no information about "
38827 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
38828 msgstr ""
38829
38830 #. type: textblock
38831 #: ../tools/virt-win-reg.pl:219
38832 msgid ""
38833 "You should only use this option for quick hacking and debugging of the "
38834 "Registry contents, and I<never> use it if the output is going to be passed "
38835 "into another program or stored in another Registry."
38836 msgstr ""
38837
38838 #. type: =head1
38839 #: ../tools/virt-win-reg.pl:556
38840 msgid "SUPPORTED SYSTEMS"
38841 msgstr ""
38842
38843 #. type: textblock
38844 #: ../tools/virt-win-reg.pl:558
38845 msgid ""
38846 "The program currently supports Windows NT-derived guests starting with "
38847 "Windows XP through to at least Windows 7."
38848 msgstr ""
38849
38850 #. type: textblock
38851 #: ../tools/virt-win-reg.pl:561
38852 msgid "The following Registry keys are supported:"
38853 msgstr ""
38854
38855 #. type: =item
38856 #: ../tools/virt-win-reg.pl:565
38857 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
38858 msgstr ""
38859
38860 #. type: =item
38861 #: ../tools/virt-win-reg.pl:567
38862 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
38863 msgstr ""
38864
38865 #. type: =item
38866 #: ../tools/virt-win-reg.pl:569
38867 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
38868 msgstr ""
38869
38870 #. type: =item
38871 #: ../tools/virt-win-reg.pl:571
38872 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
38873 msgstr ""
38874
38875 #. type: =item
38876 #: ../tools/virt-win-reg.pl:573
38877 msgid "C<HKEY_USERS\\.DEFAULT>"
38878 msgstr ""
38879
38880 #. type: =item
38881 #: ../tools/virt-win-reg.pl:575
38882 msgid "C<HKEY_USERS\\I<SID>>"
38883 msgstr ""
38884
38885 #. type: textblock
38886 #: ../tools/virt-win-reg.pl:577
38887 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
38888 msgstr ""
38889
38890 #. type: =item
38891 #: ../tools/virt-win-reg.pl:579
38892 msgid "C<HKEY_USERS\\I<username>>"
38893 msgstr ""
38894
38895 #. type: textblock
38896 #: ../tools/virt-win-reg.pl:581
38897 msgid ""
38898 "where I<username> is a local user name (this is a libguestfs extension)."
38899 msgstr ""
38900
38901 #. type: textblock
38902 #: ../tools/virt-win-reg.pl:585
38903 msgid ""
38904 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
38905 "C<HKEY_USERS>."
38906 msgstr ""
38907
38908 #. type: textblock
38909 #: ../tools/virt-win-reg.pl:588
38910 msgid ""
38911 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
38912 "supported (there is no \"current user\")."
38913 msgstr ""
38914
38915 #. type: =head1
38916 #: ../tools/virt-win-reg.pl:591
38917 msgid "ENCODING"
38918 msgstr ""
38919
38920 #. type: textblock
38921 #: ../tools/virt-win-reg.pl:593
38922 msgid ""
38923 "C<virt-win-reg> expects that regedit files have already been reencoded in "
38924 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
38925 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
38926 "Windows-style line endings, you may need to reencode the whole file before "
38927 "or after processing."
38928 msgstr ""
38929
38930 #. type: textblock
38931 #: ../tools/virt-win-reg.pl:599
38932 msgid ""
38933 "To reencode a file from Windows format to Linux (before processing it with "
38934 "the I<--merge> option), you would do something like this:"
38935 msgstr ""
38936
38937 #. type: verbatim
38938 #: ../tools/virt-win-reg.pl:602
38939 #, no-wrap
38940 msgid ""
38941 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
38942 "\n"
38943 msgstr ""
38944
38945 #. type: textblock
38946 #: ../tools/virt-win-reg.pl:604
38947 msgid ""
38948 "To go in the opposite direction, after exporting and before sending the file "
38949 "to a Windows user, do something like this:"
38950 msgstr ""
38951
38952 #. type: verbatim
38953 #: ../tools/virt-win-reg.pl:607
38954 #, no-wrap
38955 msgid ""
38956 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
38957 "\n"
38958 msgstr ""
38959
38960 #. type: textblock
38961 #: ../tools/virt-win-reg.pl:609
38962 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
38963 msgstr ""
38964
38965 #. type: textblock
38966 #: ../tools/virt-win-reg.pl:611
38967 msgid ""
38968 "If you are unsure about the current encoding, use the L<file(1)> command.  "
38969 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
38970 "style (CRLF) line endings, like this:"
38971 msgstr ""
38972
38973 #. type: verbatim
38974 #: ../tools/virt-win-reg.pl:615
38975 #, no-wrap
38976 msgid ""
38977 " $ file software.reg\n"
38978 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
38979 " with CRLF line terminators\n"
38980 "\n"
38981 msgstr ""
38982
38983 #. type: textblock
38984 #: ../tools/virt-win-reg.pl:619
38985 msgid "This file would need conversion before you could I<--merge> it."
38986 msgstr ""
38987
38988 #. type: =head1
38989 #: ../tools/virt-win-reg.pl:621
38990 msgid "CurrentControlSet etc."
38991 msgstr ""
38992
38993 #. type: textblock
38994 #: ../tools/virt-win-reg.pl:623
38995 msgid ""
38996 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
38997 "Registry at the level of the hive file, and therefore you cannot modify "
38998 "these."
38999 msgstr ""
39000
39001 #. type: textblock
39002 #: ../tools/virt-win-reg.pl:627
39003 msgid ""
39004 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
39005 "circumstances it might refer to another control set.  The way to find out is "
39006 "to look at the C<HKLM\\SYSTEM\\Select> key:"
39007 msgstr ""
39008
39009 #. type: verbatim
39010 #: ../tools/virt-win-reg.pl:631
39011 #, no-wrap
39012 msgid ""
39013 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
39014 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
39015 " \"Current\"=dword:00000001\n"
39016 " \"Default\"=dword:00000001\n"
39017 " \"Failed\"=dword:00000000\n"
39018 " \"LastKnownGood\"=dword:00000002\n"
39019 "\n"
39020 msgstr ""
39021
39022 #. type: textblock
39023 #: ../tools/virt-win-reg.pl:638
39024 msgid "\"Current\" is the one which Windows will choose when it boots."
39025 msgstr ""
39026
39027 #. type: textblock
39028 #: ../tools/virt-win-reg.pl:640
39029 msgid ""
39030 "Similarly, other C<Current...> keys in the path may need to be replaced."
39031 msgstr ""
39032
39033 #. type: =head1
39034 #: ../tools/virt-win-reg.pl:643
39035 msgid "WINDOWS TIPS"
39036 msgstr ""
39037
39038 #. type: textblock
39039 #: ../tools/virt-win-reg.pl:645
39040 msgid ""
39041 "Note that some of these tips modify the guest disk image.  The guest I<must> "
39042 "be shut off, else you will get disk corruption."
39043 msgstr ""
39044
39045 #. type: =head2
39046 #: ../tools/virt-win-reg.pl:648
39047 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
39048 msgstr ""
39049
39050 #. type: textblock
39051 #: ../tools/virt-win-reg.pl:650
39052 msgid ""
39053 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
39054 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
39055 "is uploaded into C<C:\\>:"
39056 msgstr ""
39057
39058 #. type: verbatim
39059 #: ../tools/virt-win-reg.pl:654
39060 #, no-wrap
39061 msgid ""
39062 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
39063 "\n"
39064 msgstr ""
39065
39066 #. type: textblock
39067 #: ../tools/virt-win-reg.pl:656
39068 msgid "Prepare a regedit file containing the registry change:"
39069 msgstr ""
39070
39071 #. type: verbatim
39072 #: ../tools/virt-win-reg.pl:658
39073 #, no-wrap
39074 msgid ""
39075 " cat > test.reg <<'EOF'\n"
39076 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
39077 " \"Test\"=\"c:\\\\test.bat\"\n"
39078 " EOF\n"
39079 "\n"
39080 msgstr ""
39081
39082 #. type: textblock
39083 #: ../tools/virt-win-reg.pl:663
39084 msgid ""
39085 "In this example we use the key C<RunOnce> which means that the script will "
39086 "run precisely once when the first user logs in.  If you want it to run every "
39087 "time a user logs in, replace C<RunOnce> with C<Run>."
39088 msgstr ""
39089
39090 #. type: textblock
39091 #: ../tools/virt-win-reg.pl:667
39092 msgid "Now update the registry:"
39093 msgstr ""
39094
39095 #. type: verbatim
39096 #: ../tools/virt-win-reg.pl:669
39097 #, no-wrap
39098 msgid ""
39099 " virt-win-reg --merge WindowsGuest test.reg\n"
39100 "\n"
39101 msgstr ""
39102
39103 #. type: =head2
39104 #: ../tools/virt-win-reg.pl:671
39105 msgid "INSTALLING A SERVICE"
39106 msgstr ""
39107
39108 #. type: textblock
39109 #: ../tools/virt-win-reg.pl:673
39110 msgid ""
39111 "This section assumes you are familiar with Windows services, and you either "
39112 "have a program which handles the Windows Service Control Protocol directly "
39113 "or you want to run any program using a service wrapper like SrvAny or the "
39114 "free RHSrvAny."
39115 msgstr ""
39116
39117 #. type: textblock
39118 #: ../tools/virt-win-reg.pl:678
39119 msgid ""
39120 "First upload the program and optionally the service wrapper.  In this case "
39121 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
39122 msgstr ""
39123
39124 #. type: verbatim
39125 #: ../tools/virt-win-reg.pl:682
39126 #, no-wrap
39127 msgid ""
39128 " guestfish -i -d WindowsGuest <<EOF\n"
39129 "   upload rhsrvany.exe /rhsrvany.exe\n"
39130 "   upload test.exe /test.exe\n"
39131 " EOF\n"
39132 "\n"
39133 msgstr ""
39134
39135 #. type: textblock
39136 #: ../tools/virt-win-reg.pl:687
39137 msgid ""
39138 "Prepare a regedit file containing the registry changes.  In this example, "
39139 "the first registry change is needed for the service itself or the service "
39140 "wrapper (if used).  The second registry change is only needed because I am "
39141 "using the RHSrvAny service wrapper."
39142 msgstr ""
39143
39144 #. type: verbatim
39145 #: ../tools/virt-win-reg.pl:692
39146 #, no-wrap
39147 msgid ""
39148 " cat > service.reg <<'EOF'\n"
39149 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
39150 " \"Type\"=dword:00000010\n"
39151 " \"Start\"=dword:00000002\n"
39152 " \"ErrorControl\"=dword:00000001\n"
39153 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
39154 " \"DisplayName\"=\"RHSrvAny\"\n"
39155 " \"ObjectName\"=\"NetworkService\"\n"
39156 " \n"
39157 msgstr ""
39158
39159 #. type: verbatim
39160 #: ../tools/virt-win-reg.pl:701
39161 #, no-wrap
39162 msgid ""
39163 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
39164 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
39165 " \"PWD\"=\"c:\\\\Temp\"\n"
39166 " EOF\n"
39167 "\n"
39168 msgstr ""
39169
39170 #. type: textblock
39171 #: ../tools/virt-win-reg.pl:712
39172 msgid ""
39173 "For use of C<ControlSet001> see the section above in this manual page.  You "
39174 "may need to adjust this according to the control set that is in use by the "
39175 "guest."
39176 msgstr ""
39177
39178 #. type: textblock
39179 #: ../tools/virt-win-reg.pl:718
39180 msgid ""
39181 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
39182 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
39183 "privileged account."
39184 msgstr ""
39185
39186 #. type: textblock
39187 #: ../tools/virt-win-reg.pl:724
39188 msgid ""
39189 "For the meaning of the magic numbers, see this Microsoft KB article: "
39190 "L<http://support.microsoft.com/kb/103000>."
39191 msgstr ""
39192
39193 #. type: textblock
39194 #: ../tools/virt-win-reg.pl:729
39195 msgid "Update the registry:"
39196 msgstr ""
39197
39198 #. type: verbatim
39199 #: ../tools/virt-win-reg.pl:731
39200 #, no-wrap
39201 msgid ""
39202 " virt-win-reg --merge WindowsGuest service.reg\n"
39203 "\n"
39204 msgstr ""
39205
39206 #. type: textblock
39207 #: ../tools/virt-win-reg.pl:735
39208 msgid ""
39209 "Be careful when passing parameters containing C<\\> (backslash) in the "
39210 "shell.  Usually you will have to use 'single quotes' or double backslashes "
39211 "(but not both) to protect them from the shell."
39212 msgstr ""
39213
39214 #. type: textblock
39215 #: ../tools/virt-win-reg.pl:739
39216 msgid "Paths and value names are case-insensitive."
39217 msgstr ""
39218
39219 #. type: textblock
39220 #: ../tools/virt-win-reg.pl:748
39221 msgid ""
39222 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
39223 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
39224 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39225 msgstr ""
39226
39227 #. type: verbatim
39228 #: ../tools/virt-win-reg.pl:766
39229 #, no-wrap
39230 msgid ""
39231 " export LIBGUESTFS_DEBUG=1\n"
39232 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
39233 "\n"
39234 msgstr ""
39235
39236 #. type: textblock
39237 #: ../tools/virt-win-reg.pl:769
39238 msgid ""
39239 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
39240 "redhat.com/>"
39241 msgstr ""