2e0406f9b8e62bea9de0b513e45433818b409e06
[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-10-01 14:27+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:2791
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:3167 ../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:3244 ../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:4245
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:1094
2439 #: ../src/guestfs.pod:1098 ../src/guestfs.pod:1102 ../src/guestfs.pod:1107
2440 #: ../src/guestfs.pod:1115 ../src/guestfs.pod:1134 ../src/guestfs.pod:1142
2441 #: ../src/guestfs.pod:1164 ../src/guestfs.pod:1168 ../src/guestfs.pod:1172
2442 #: ../src/guestfs.pod:1176 ../src/guestfs.pod:1180 ../src/guestfs.pod:1184
2443 #: ../src/guestfs.pod:1674 ../src/guestfs.pod:1679 ../src/guestfs.pod:1683
2444 #: ../src/guestfs.pod:1785 ../src/guestfs.pod:1790 ../src/guestfs.pod:1794
2445 #: ../src/guestfs.pod:1804 ../src/guestfs.pod:2093 ../src/guestfs.pod:2098
2446 #: ../src/guestfs.pod:2104 ../src/guestfs.pod:2112 ../src/guestfs.pod:2559
2447 #: ../src/guestfs.pod:2565 ../src/guestfs.pod:2570 ../src/guestfs.pod:2576
2448 #: ../src/guestfs.pod:2959 ../src/guestfs.pod:2964 ../src/guestfs.pod:2968
2449 #: ../src/guestfs.pod:2972 ../src/guestfs.pod:2976 ../src/guestfs.pod:2990
2450 #: ../src/guestfs.pod:2995 ../src/guestfs.pod:3221 ../src/guestfs.pod:3225
2451 #: ../src/guestfs.pod:3229 ../src/guestfs.pod:3233
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:3106
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:3240
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:3242
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:3249
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:3254
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:3259
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:1670
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:3468
4348 #: ../fish/guestfish-actions.pod:3516 ../fish/guestfish-actions.pod:4429
4349 #: ../fish/guestfish-actions.pod:4452 ../fish/guestfish-actions.pod:4474
4350 #: ../fish/guestfish-actions.pod:4512 ../fish/guestfish-actions.pod:5161
4351 #: ../fish/guestfish-actions.pod:5267 ../src/guestfs-actions.pod:10
4352 #: ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273
4353 #: ../src/guestfs-actions.pod:1615 ../src/guestfs-actions.pod:2114
4354 #: ../src/guestfs-actions.pod:2135 ../src/guestfs-actions.pod:4765
4355 #: ../src/guestfs-actions.pod:5287 ../src/guestfs-actions.pod:5387
4356 #: ../src/guestfs-actions.pod:6667 ../src/guestfs-actions.pod:6711
4357 #: ../src/guestfs-actions.pod:6745 ../src/guestfs-actions.pod:6808
4358 #: ../src/guestfs-actions.pod:7740 ../src/guestfs-actions.pod:7849
4359 #: ../src/guestfs-actions.pod:8032
4360 msgid ""
4361 "Deprecated functions will not be removed from the API, but the fact that "
4362 "they are deprecated indicates that there are problems with correct use of "
4363 "these functions."
4364 msgstr ""
4365
4366 #. type: =head2
4367 #: ../fish/guestfish-actions.pod:35
4368 msgid "add-domain"
4369 msgstr ""
4370
4371 #. type: =head2
4372 #: ../fish/guestfish-actions.pod:37
4373 msgid "domain"
4374 msgstr ""
4375
4376 #. type: verbatim
4377 #: ../fish/guestfish-actions.pod:39
4378 #, no-wrap
4379 msgid ""
4380 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
4381 "\n"
4382 msgstr ""
4383
4384 #. type: textblock
4385 #: ../fish/guestfish-actions.pod:41
4386 msgid ""
4387 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4388 "It works by connecting to libvirt, requesting the domain and domain XML from "
4389 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
4390 msgstr ""
4391
4392 #. type: textblock
4393 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
4394 msgid ""
4395 "The number of disks added is returned.  This operation is atomic: if an "
4396 "error is returned, then no disks are added."
4397 msgstr ""
4398
4399 #. type: textblock
4400 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
4401 msgid ""
4402 "This function does some minimal checks to make sure the libvirt domain is "
4403 "not running (unless C<readonly> is true).  In a future version we will try "
4404 "to acquire the libvirt lock on each disk."
4405 msgstr ""
4406
4407 #. type: textblock
4408 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
4409 msgid ""
4410 "Disks must be accessible locally.  This often means that adding disks from a "
4411 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4412 "unless those disks are accessible via the same device path locally too."
4413 msgstr ""
4414
4415 #. type: textblock
4416 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
4417 msgid ""
4418 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4419 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
4420 "libvirt URI (or one set through an environment variable, see the libvirt "
4421 "documentation for full details)."
4422 msgstr ""
4423
4424 #. type: textblock
4425 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
4426 msgid ""
4427 "The optional C<live> flag controls whether this call will try to connect to "
4428 "a running virtual machine C<guestfsd> process if it sees a suitable "
4429 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
4430 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
4431 "DAEMONS> for more information."
4432 msgstr ""
4433
4434 #. type: textblock
4435 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
4436 msgid ""
4437 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
4438 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
4439 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
4440 "as usual."
4441 msgstr ""
4442
4443 #. type: textblock
4444 #: ../fish/guestfish-actions.pod:76
4445 msgid ""
4446 "The other optional parameters are passed directly through to L</add-drive-"
4447 "opts>."
4448 msgstr ""
4449
4450 #. type: textblock
4451 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
4452 #: ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:784
4453 #: ../fish/guestfish-actions.pod:805 ../fish/guestfish-actions.pod:2040
4454 #: ../fish/guestfish-actions.pod:3206 ../fish/guestfish-actions.pod:3369
4455 #: ../fish/guestfish-actions.pod:3504
4456 msgid ""
4457 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
4458 msgstr ""
4459
4460 #. type: =head2
4461 #: ../fish/guestfish-actions.pod:81
4462 msgid "add-drive"
4463 msgstr ""
4464
4465 #. type: verbatim
4466 #: ../fish/guestfish-actions.pod:83
4467 #, no-wrap
4468 msgid ""
4469 " add-drive filename\n"
4470 "\n"
4471 msgstr ""
4472
4473 #. type: textblock
4474 #: ../fish/guestfish-actions.pod:85
4475 msgid ""
4476 "This function is the equivalent of calling L</add-drive-opts> with no "
4477 "optional parameters, so the disk is added writable, with the format being "
4478 "detected automatically."
4479 msgstr ""
4480
4481 #. type: textblock
4482 #: ../fish/guestfish-actions.pod:89
4483 msgid ""
4484 "Automatic detection of the format opens you up to a potential security hole "
4485 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4486 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4487 "you should think about replacing calls to this function with calls to L</add-"
4488 "drive-opts>, and specifying the format."
4489 msgstr ""
4490
4491 #. type: =head2
4492 #: ../fish/guestfish-actions.pod:96
4493 msgid "add-drive-opts"
4494 msgstr ""
4495
4496 #. type: =head2
4497 #: ../fish/guestfish-actions.pod:98
4498 msgid "add"
4499 msgstr ""
4500
4501 #. type: verbatim
4502 #: ../fish/guestfish-actions.pod:100
4503 #, no-wrap
4504 msgid ""
4505 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
4506 "\n"
4507 msgstr ""
4508
4509 #. type: textblock
4510 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
4511 msgid ""
4512 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4513 "The first time you call this function, the disk appears as C</dev/sda>, the "
4514 "second time as C</dev/sdb>, and so on."
4515 msgstr ""
4516
4517 #. type: textblock
4518 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
4519 msgid ""
4520 "You don't necessarily need to be root when using libguestfs.  However you "
4521 "obviously do need sufficient permissions to access the filename for whatever "
4522 "operations you want to perform (ie. read access if you just want to read the "
4523 "image or write access if you want to modify the image)."
4524 msgstr ""
4525
4526 #. type: textblock
4527 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
4528 msgid "This call checks that C<filename> exists."
4529 msgstr ""
4530
4531 #. type: textblock
4532 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3168
4533 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4802
4534 msgid "The optional arguments are:"
4535 msgstr ""
4536
4537 #. type: =item
4538 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
4539 msgid "C<readonly>"
4540 msgstr ""
4541
4542 #. type: textblock
4543 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
4544 msgid ""
4545 "If true then the image is treated as read-only.  Writes are still allowed, "
4546 "but they are stored in a temporary snapshot overlay which is discarded at "
4547 "the end.  The disk that you add is not modified."
4548 msgstr ""
4549
4550 #. type: =item
4551 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
4552 msgid "C<format>"
4553 msgstr ""
4554
4555 #. type: textblock
4556 #: ../fish/guestfish-actions.pod:127
4557 msgid ""
4558 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
4559 "add-drive-ro>) then the format is automatically detected.  Possible formats "
4560 "include C<raw> and C<qcow2>."
4561 msgstr ""
4562
4563 #. type: textblock
4564 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
4565 msgid ""
4566 "Automatic detection of the format opens you up to a potential security hole "
4567 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4568 "RHBZ#642934.  Specifying the format closes this security hole."
4569 msgstr ""
4570
4571 #. type: =item
4572 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
4573 msgid "C<iface>"
4574 msgstr ""
4575
4576 #. type: textblock
4577 #: ../fish/guestfish-actions.pod:138
4578 msgid ""
4579 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
4580 "add-drive-with-if> call (q.v.)"
4581 msgstr ""
4582
4583 #. type: =head2
4584 #: ../fish/guestfish-actions.pod:145
4585 msgid "add-drive-ro"
4586 msgstr ""
4587
4588 #. type: =head2
4589 #: ../fish/guestfish-actions.pod:147
4590 msgid "add-ro"
4591 msgstr ""
4592
4593 #. type: verbatim
4594 #: ../fish/guestfish-actions.pod:149
4595 #, no-wrap
4596 msgid ""
4597 " add-drive-ro filename\n"
4598 "\n"
4599 msgstr ""
4600
4601 #. type: textblock
4602 #: ../fish/guestfish-actions.pod:151
4603 msgid ""
4604 "This function is the equivalent of calling L</add-drive-opts> with the "
4605 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
4606 "is added read-only, with the format being detected automatically."
4607 msgstr ""
4608
4609 #. type: =head2
4610 #: ../fish/guestfish-actions.pod:156
4611 msgid "add-drive-ro-with-if"
4612 msgstr ""
4613
4614 #. type: verbatim
4615 #: ../fish/guestfish-actions.pod:158
4616 #, no-wrap
4617 msgid ""
4618 " add-drive-ro-with-if filename iface\n"
4619 "\n"
4620 msgstr ""
4621
4622 #. type: textblock
4623 #: ../fish/guestfish-actions.pod:160
4624 msgid ""
4625 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
4626 "interface emulation to use at run time."
4627 msgstr ""
4628
4629 #. type: =head2
4630 #: ../fish/guestfish-actions.pod:170
4631 msgid "add-drive-with-if"
4632 msgstr ""
4633
4634 #. type: verbatim
4635 #: ../fish/guestfish-actions.pod:172
4636 #, no-wrap
4637 msgid ""
4638 " add-drive-with-if filename iface\n"
4639 "\n"
4640 msgstr ""
4641
4642 #. type: textblock
4643 #: ../fish/guestfish-actions.pod:174
4644 msgid ""
4645 "This is the same as L</add-drive> but it allows you to specify the QEMU "
4646 "interface emulation to use at run time."
4647 msgstr ""
4648
4649 #. type: =head2
4650 #: ../fish/guestfish-actions.pod:184
4651 msgid "aug-clear"
4652 msgstr ""
4653
4654 #. type: verbatim
4655 #: ../fish/guestfish-actions.pod:186
4656 #, no-wrap
4657 msgid ""
4658 " aug-clear augpath\n"
4659 "\n"
4660 msgstr ""
4661
4662 #. type: textblock
4663 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
4664 msgid ""
4665 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4666 "L<augtool(1)> C<clear> command."
4667 msgstr ""
4668
4669 #. type: =head2
4670 #: ../fish/guestfish-actions.pod:191
4671 msgid "aug-close"
4672 msgstr ""
4673
4674 #. type: verbatim
4675 #: ../fish/guestfish-actions.pod:193
4676 #, no-wrap
4677 msgid ""
4678 " aug-close\n"
4679 "\n"
4680 msgstr ""
4681
4682 #. type: textblock
4683 #: ../fish/guestfish-actions.pod:195
4684 msgid ""
4685 "Close the current Augeas handle and free up any resources used by it.  After "
4686 "calling this, you have to call L</aug-init> again before you can use any "
4687 "other Augeas functions."
4688 msgstr ""
4689
4690 #. type: =head2
4691 #: ../fish/guestfish-actions.pod:200
4692 msgid "aug-defnode"
4693 msgstr ""
4694
4695 #. type: verbatim
4696 #: ../fish/guestfish-actions.pod:202
4697 #, no-wrap
4698 msgid ""
4699 " aug-defnode name expr val\n"
4700 "\n"
4701 msgstr ""
4702
4703 #. type: textblock
4704 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
4705 msgid ""
4706 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4707 msgstr ""
4708
4709 #. type: textblock
4710 #: ../fish/guestfish-actions.pod:207
4711 msgid ""
4712 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4713 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
4714 "containing that single node."
4715 msgstr ""
4716
4717 #. type: textblock
4718 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
4719 msgid ""
4720 "On success this returns a pair containing the number of nodes in the "
4721 "nodeset, and a boolean flag if a node was created."
4722 msgstr ""
4723
4724 #. type: =head2
4725 #: ../fish/guestfish-actions.pod:215
4726 msgid "aug-defvar"
4727 msgstr ""
4728
4729 #. type: verbatim
4730 #: ../fish/guestfish-actions.pod:217
4731 #, no-wrap
4732 msgid ""
4733 " aug-defvar name expr\n"
4734 "\n"
4735 msgstr ""
4736
4737 #. type: textblock
4738 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
4739 msgid ""
4740 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4741 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4742 msgstr ""
4743
4744 #. type: textblock
4745 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
4746 msgid ""
4747 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4748 "evaluates to something which is not a nodeset."
4749 msgstr ""
4750
4751 #. type: =head2
4752 #: ../fish/guestfish-actions.pod:226
4753 msgid "aug-get"
4754 msgstr ""
4755
4756 #. type: verbatim
4757 #: ../fish/guestfish-actions.pod:228
4758 #, no-wrap
4759 msgid ""
4760 " aug-get augpath\n"
4761 "\n"
4762 msgstr ""
4763
4764 #. type: textblock
4765 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
4766 msgid ""
4767 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4768 "node, the C<value> is returned."
4769 msgstr ""
4770
4771 #. type: =head2
4772 #: ../fish/guestfish-actions.pod:233
4773 msgid "aug-init"
4774 msgstr ""
4775
4776 #. type: verbatim
4777 #: ../fish/guestfish-actions.pod:235
4778 #, no-wrap
4779 msgid ""
4780 " aug-init root flags\n"
4781 "\n"
4782 msgstr ""
4783
4784 #. type: textblock
4785 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
4786 msgid ""
4787 "Create a new Augeas handle for editing configuration files.  If there was "
4788 "any previous Augeas handle associated with this guestfs session, then it is "
4789 "closed."
4790 msgstr ""
4791
4792 #. type: textblock
4793 #: ../fish/guestfish-actions.pod:241
4794 msgid "You must call this before using any other L</aug-*> commands."
4795 msgstr ""
4796
4797 #. type: textblock
4798 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
4799 msgid ""
4800 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4801 msgstr ""
4802
4803 #. type: textblock
4804 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
4805 msgid ""
4806 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4807 "logical I<or> of the following integers:"
4808 msgstr ""
4809
4810 #. type: =item
4811 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
4812 msgid "C<AUG_SAVE_BACKUP> = 1"
4813 msgstr ""
4814
4815 #. type: textblock
4816 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
4817 msgid "Keep the original file with a C<.augsave> extension."
4818 msgstr ""
4819
4820 #. type: =item
4821 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
4822 msgid "C<AUG_SAVE_NEWFILE> = 2"
4823 msgstr ""
4824
4825 #. type: textblock
4826 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
4827 msgid ""
4828 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4829 "original.  Overrides C<AUG_SAVE_BACKUP>."
4830 msgstr ""
4831
4832 #. type: =item
4833 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
4834 msgid "C<AUG_TYPE_CHECK> = 4"
4835 msgstr ""
4836
4837 #. type: textblock
4838 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
4839 msgid "Typecheck lenses."
4840 msgstr ""
4841
4842 #. type: textblock
4843 #: ../fish/guestfish-actions.pod:266
4844 msgid ""
4845 "This option is only useful when debugging Augeas lenses.  Use of this option "
4846 "may require additional memory for the libguestfs appliance.  You may need to "
4847 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
4848 msgstr ""
4849
4850 #. type: =item
4851 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
4852 msgid "C<AUG_NO_STDINC> = 8"
4853 msgstr ""
4854
4855 #. type: textblock
4856 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
4857 msgid "Do not use standard load path for modules."
4858 msgstr ""
4859
4860 #. type: =item
4861 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
4862 msgid "C<AUG_SAVE_NOOP> = 16"
4863 msgstr ""
4864
4865 #. type: textblock
4866 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
4867 msgid "Make save a no-op, just record what would have been changed."
4868 msgstr ""
4869
4870 #. type: =item
4871 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
4872 msgid "C<AUG_NO_LOAD> = 32"
4873 msgstr ""
4874
4875 #. type: textblock
4876 #: ../fish/guestfish-actions.pod:281
4877 msgid "Do not load the tree in L</aug-init>."
4878 msgstr ""
4879
4880 #. type: textblock
4881 #: ../fish/guestfish-actions.pod:285
4882 msgid "To close the handle, you can call L</aug-close>."
4883 msgstr ""
4884
4885 #. type: textblock
4886 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
4887 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4888 msgstr ""
4889
4890 #. type: =head2
4891 #: ../fish/guestfish-actions.pod:289
4892 msgid "aug-insert"
4893 msgstr ""
4894
4895 #. type: verbatim
4896 #: ../fish/guestfish-actions.pod:291
4897 #, no-wrap
4898 msgid ""
4899 " aug-insert augpath label true|false\n"
4900 "\n"
4901 msgstr ""
4902
4903 #. type: textblock
4904 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
4905 msgid ""
4906 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4907 "or after C<path> (depending on the boolean flag C<before>)."
4908 msgstr ""
4909
4910 #. type: textblock
4911 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
4912 msgid ""
4913 "C<path> must match exactly one existing node in the tree, and C<label> must "
4914 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4915 msgstr ""
4916
4917 #. type: =head2
4918 #: ../fish/guestfish-actions.pod:301
4919 msgid "aug-load"
4920 msgstr ""
4921
4922 #. type: verbatim
4923 #: ../fish/guestfish-actions.pod:303
4924 #, no-wrap
4925 msgid ""
4926 " aug-load\n"
4927 "\n"
4928 msgstr ""
4929
4930 #. type: textblock
4931 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
4932 msgid "Load files into the tree."
4933 msgstr ""
4934
4935 #. type: textblock
4936 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
4937 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4938 msgstr ""
4939
4940 #. type: =head2
4941 #: ../fish/guestfish-actions.pod:310
4942 msgid "aug-ls"
4943 msgstr ""
4944
4945 #. type: verbatim
4946 #: ../fish/guestfish-actions.pod:312
4947 #, no-wrap
4948 msgid ""
4949 " aug-ls augpath\n"
4950 "\n"
4951 msgstr ""
4952
4953 #. type: textblock
4954 #: ../fish/guestfish-actions.pod:314
4955 msgid ""
4956 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
4957 "resulting nodes into alphabetical order."
4958 msgstr ""
4959
4960 #. type: =head2
4961 #: ../fish/guestfish-actions.pod:317
4962 msgid "aug-match"
4963 msgstr ""
4964
4965 #. type: verbatim
4966 #: ../fish/guestfish-actions.pod:319
4967 #, no-wrap
4968 msgid ""
4969 " aug-match augpath\n"
4970 "\n"
4971 msgstr ""
4972
4973 #. type: textblock
4974 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
4975 msgid ""
4976 "Returns a list of paths which match the path expression C<path>.  The "
4977 "returned paths are sufficiently qualified so that they match exactly one "
4978 "node in the current tree."
4979 msgstr ""
4980
4981 #. type: =head2
4982 #: ../fish/guestfish-actions.pod:325
4983 msgid "aug-mv"
4984 msgstr ""
4985
4986 #. type: verbatim
4987 #: ../fish/guestfish-actions.pod:327
4988 #, no-wrap
4989 msgid ""
4990 " aug-mv src dest\n"
4991 "\n"
4992 msgstr ""
4993
4994 #. type: textblock
4995 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
4996 msgid ""
4997 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4998 "C<dest> is overwritten if it exists."
4999 msgstr ""
5000
5001 #. type: =head2
5002 #: ../fish/guestfish-actions.pod:332
5003 msgid "aug-rm"
5004 msgstr ""
5005
5006 #. type: verbatim
5007 #: ../fish/guestfish-actions.pod:334
5008 #, no-wrap
5009 msgid ""
5010 " aug-rm augpath\n"
5011 "\n"
5012 msgstr ""
5013
5014 #. type: textblock
5015 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
5016 msgid "Remove C<path> and all of its children."
5017 msgstr ""
5018
5019 #. type: textblock
5020 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
5021 msgid "On success this returns the number of entries which were removed."
5022 msgstr ""
5023
5024 #. type: =head2
5025 #: ../fish/guestfish-actions.pod:340
5026 msgid "aug-save"
5027 msgstr ""
5028
5029 #. type: verbatim
5030 #: ../fish/guestfish-actions.pod:342
5031 #, no-wrap
5032 msgid ""
5033 " aug-save\n"
5034 "\n"
5035 msgstr ""
5036
5037 #. type: textblock
5038 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
5039 msgid "This writes all pending changes to disk."
5040 msgstr ""
5041
5042 #. type: textblock
5043 #: ../fish/guestfish-actions.pod:346
5044 msgid ""
5045 "The flags which were passed to L</aug-init> affect exactly how files are "
5046 "saved."
5047 msgstr ""
5048
5049 #. type: =head2
5050 #: ../fish/guestfish-actions.pod:349
5051 msgid "aug-set"
5052 msgstr ""
5053
5054 #. type: verbatim
5055 #: ../fish/guestfish-actions.pod:351
5056 #, no-wrap
5057 msgid ""
5058 " aug-set augpath val\n"
5059 "\n"
5060 msgstr ""
5061
5062 #. type: textblock
5063 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
5064 msgid "Set the value associated with C<path> to C<val>."
5065 msgstr ""
5066
5067 #. type: textblock
5068 #: ../fish/guestfish-actions.pod:355
5069 msgid ""
5070 "In the Augeas API, it is possible to clear a node by setting the value to "
5071 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5072 "this call.  Instead you must use the L</aug-clear> call."
5073 msgstr ""
5074
5075 #. type: =head2
5076 #: ../fish/guestfish-actions.pod:360
5077 msgid "available"
5078 msgstr ""
5079
5080 #. type: verbatim
5081 #: ../fish/guestfish-actions.pod:362
5082 #, no-wrap
5083 msgid ""
5084 " available 'groups ...'\n"
5085 "\n"
5086 msgstr ""
5087
5088 #. type: textblock
5089 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
5090 msgid ""
5091 "This command is used to check the availability of some groups of "
5092 "functionality in the appliance, which not all builds of the libguestfs "
5093 "appliance will be able to provide."
5094 msgstr ""
5095
5096 #. type: textblock
5097 #: ../fish/guestfish-actions.pod:368
5098 msgid ""
5099 "The libguestfs groups, and the functions that those groups correspond to, "
5100 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5101 "runtime by calling L</available-all-groups>."
5102 msgstr ""
5103
5104 #. type: textblock
5105 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
5106 msgid ""
5107 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5108 "\"]> would check for the availability of the Linux inotify functions and "
5109 "Augeas (configuration file editing) functions."
5110 msgstr ""
5111
5112 #. type: textblock
5113 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
5114 msgid "The command returns no error if I<all> requested groups are available."
5115 msgstr ""
5116
5117 #. type: textblock
5118 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:578
5119 msgid ""
5120 "It fails with an error if one or more of the requested groups is unavailable "
5121 "in the appliance."
5122 msgstr ""
5123
5124 #. type: textblock
5125 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:581
5126 msgid ""
5127 "If an unknown group name is included in the list of groups then an error is "
5128 "always returned."
5129 msgstr ""
5130
5131 #. type: textblock
5132 #: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:584
5133 msgid "I<Notes:>"
5134 msgstr ""
5135
5136 #. type: textblock
5137 #: ../fish/guestfish-actions.pod:392
5138 msgid "You must call L</launch> before calling this function."
5139 msgstr ""
5140
5141 #. type: textblock
5142 #: ../fish/guestfish-actions.pod:394 ../src/guestfs-actions.pod:592
5143 msgid ""
5144 "The reason is because we don't know what groups are supported by the "
5145 "appliance/daemon until it is running and can be queried."
5146 msgstr ""
5147
5148 #. type: textblock
5149 #: ../fish/guestfish-actions.pod:400 ../src/guestfs-actions.pod:598
5150 msgid ""
5151 "If a group of functions is available, this does not necessarily mean that "
5152 "they will work.  You still have to check for errors when calling individual "
5153 "API functions even if they are available."
5154 msgstr ""
5155
5156 #. type: textblock
5157 #: ../fish/guestfish-actions.pod:407 ../src/guestfs-actions.pod:605
5158 msgid ""
5159 "It is usually the job of distro packagers to build complete functionality "
5160 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5161 "with all requirements satisfied, will support everything."
5162 msgstr ""
5163
5164 #. type: textblock
5165 #: ../fish/guestfish-actions.pod:414
5166 msgid ""
5167 "This call was added in version C<1.0.80>.  In previous versions of "
5168 "libguestfs all you could do would be to speculatively execute a command to "
5169 "find out if the daemon implemented it.  See also L</version>."
5170 msgstr ""
5171
5172 #. type: =head2
5173 #: ../fish/guestfish-actions.pod:421
5174 msgid "available-all-groups"
5175 msgstr ""
5176
5177 #. type: verbatim
5178 #: ../fish/guestfish-actions.pod:423
5179 #, no-wrap
5180 msgid ""
5181 " available-all-groups\n"
5182 "\n"
5183 msgstr ""
5184
5185 #. type: textblock
5186 #: ../fish/guestfish-actions.pod:425
5187 msgid ""
5188 "This command returns a list of all optional groups that this daemon knows "
5189 "about.  Note this returns both supported and unsupported groups.  To find "
5190 "out which ones the daemon can actually support you have to call L</"
5191 "available> on each member of the returned list."
5192 msgstr ""
5193
5194 #. type: textblock
5195 #: ../fish/guestfish-actions.pod:431
5196 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
5197 msgstr ""
5198
5199 #. type: =head2
5200 #: ../fish/guestfish-actions.pod:433
5201 msgid "base64-in"
5202 msgstr ""
5203
5204 #. type: verbatim
5205 #: ../fish/guestfish-actions.pod:435
5206 #, no-wrap
5207 msgid ""
5208 " base64-in (base64file|-) filename\n"
5209 "\n"
5210 msgstr ""
5211
5212 #. type: textblock
5213 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:649
5214 msgid ""
5215 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5216 msgstr ""
5217
5218 #. type: textblock
5219 #: ../fish/guestfish-actions.pod:440 ../fish/guestfish-actions.pod:449
5220 #: ../fish/guestfish-actions.pod:698 ../fish/guestfish-actions.pod:782
5221 #: ../fish/guestfish-actions.pod:803 ../fish/guestfish-actions.pod:902
5222 #: ../fish/guestfish-actions.pod:921 ../fish/guestfish-actions.pod:1295
5223 #: ../fish/guestfish-actions.pod:4732 ../fish/guestfish-actions.pod:4744
5224 #: ../fish/guestfish-actions.pod:4755 ../fish/guestfish-actions.pod:4766
5225 #: ../fish/guestfish-actions.pod:4818 ../fish/guestfish-actions.pod:4827
5226 #: ../fish/guestfish-actions.pod:4881 ../fish/guestfish-actions.pod:4904
5227 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
5228 msgstr ""
5229
5230 #. type: =head2
5231 #: ../fish/guestfish-actions.pod:442
5232 msgid "base64-out"
5233 msgstr ""
5234
5235 #. type: verbatim
5236 #: ../fish/guestfish-actions.pod:444
5237 #, no-wrap
5238 msgid ""
5239 " base64-out filename (base64file|-)\n"
5240 "\n"
5241 msgstr ""
5242
5243 #. type: textblock
5244 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
5245 msgid ""
5246 "This command downloads the contents of C<filename>, writing it out to local "
5247 "file C<base64file> encoded as base64."
5248 msgstr ""
5249
5250 #. type: =head2
5251 #: ../fish/guestfish-actions.pod:451
5252 msgid "blockdev-flushbufs"
5253 msgstr ""
5254
5255 #. type: verbatim
5256 #: ../fish/guestfish-actions.pod:453
5257 #, no-wrap
5258 msgid ""
5259 " blockdev-flushbufs device\n"
5260 "\n"
5261 msgstr ""
5262
5263 #. type: textblock
5264 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
5265 msgid ""
5266 "This tells the kernel to flush internal buffers associated with C<device>."
5267 msgstr ""
5268
5269 #. type: textblock
5270 #: ../fish/guestfish-actions.pod:458 ../fish/guestfish-actions.pod:469
5271 #: ../fish/guestfish-actions.pod:478 ../fish/guestfish-actions.pod:488
5272 #: ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:513
5273 #: ../fish/guestfish-actions.pod:521 ../fish/guestfish-actions.pod:532
5274 #: ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:548
5275 #: ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:696
5276 #: ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:727
5277 #: ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:764
5278 #: ../src/guestfs-actions.pod:778 ../src/guestfs-actions.pod:796
5279 #: ../src/guestfs-actions.pod:810 ../src/guestfs-actions.pod:824
5280 msgid "This uses the L<blockdev(8)> command."
5281 msgstr ""
5282
5283 #. type: =head2
5284 #: ../fish/guestfish-actions.pod:460
5285 msgid "blockdev-getbsz"
5286 msgstr ""
5287
5288 #. type: verbatim
5289 #: ../fish/guestfish-actions.pod:462
5290 #, no-wrap
5291 msgid ""
5292 " blockdev-getbsz device\n"
5293 "\n"
5294 msgstr ""
5295
5296 #. type: textblock
5297 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
5298 msgid "This returns the block size of a device."
5299 msgstr ""
5300
5301 #. type: textblock
5302 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529
5303 #: ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
5304 msgid ""
5305 "(Note this is different from both I<size in blocks> and I<filesystem block "
5306 "size>)."
5307 msgstr ""
5308
5309 #. type: =head2
5310 #: ../fish/guestfish-actions.pod:471
5311 msgid "blockdev-getro"
5312 msgstr ""
5313
5314 #. type: verbatim
5315 #: ../fish/guestfish-actions.pod:473
5316 #, no-wrap
5317 msgid ""
5318 " blockdev-getro device\n"
5319 "\n"
5320 msgstr ""
5321
5322 #. type: textblock
5323 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
5324 msgid ""
5325 "Returns a boolean indicating if the block device is read-only (true if read-"
5326 "only, false if not)."
5327 msgstr ""
5328
5329 #. type: =head2
5330 #: ../fish/guestfish-actions.pod:480
5331 msgid "blockdev-getsize64"
5332 msgstr ""
5333
5334 #. type: verbatim
5335 #: ../fish/guestfish-actions.pod:482
5336 #, no-wrap
5337 msgid ""
5338 " blockdev-getsize64 device\n"
5339 "\n"
5340 msgstr ""
5341
5342 #. type: textblock
5343 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
5344 msgid "This returns the size of the device in bytes."
5345 msgstr ""
5346
5347 #. type: textblock
5348 #: ../fish/guestfish-actions.pod:486
5349 msgid "See also L</blockdev-getsz>."
5350 msgstr ""
5351
5352 #. type: =head2
5353 #: ../fish/guestfish-actions.pod:490
5354 msgid "blockdev-getss"
5355 msgstr ""
5356
5357 #. type: verbatim
5358 #: ../fish/guestfish-actions.pod:492
5359 #, no-wrap
5360 msgid ""
5361 " blockdev-getss device\n"
5362 "\n"
5363 msgstr ""
5364
5365 #. type: textblock
5366 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
5367 msgid ""
5368 "This returns the size of sectors on a block device.  Usually 512, but can be "
5369 "larger for modern devices."
5370 msgstr ""
5371
5372 #. type: textblock
5373 #: ../fish/guestfish-actions.pod:497
5374 msgid ""
5375 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
5376 msgstr ""
5377
5378 #. type: =head2
5379 #: ../fish/guestfish-actions.pod:502
5380 msgid "blockdev-getsz"
5381 msgstr ""
5382
5383 #. type: verbatim
5384 #: ../fish/guestfish-actions.pod:504
5385 #, no-wrap
5386 msgid ""
5387 " blockdev-getsz device\n"
5388 "\n"
5389 msgstr ""
5390
5391 #. type: textblock
5392 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
5393 msgid ""
5394 "This returns the size of the device in units of 512-byte sectors (even if "
5395 "the sectorsize isn't 512 bytes ... weird)."
5396 msgstr ""
5397
5398 #. type: textblock
5399 #: ../fish/guestfish-actions.pod:509
5400 msgid ""
5401 "See also L</blockdev-getss> for the real sector size of the device, and L</"
5402 "blockdev-getsize64> for the more useful I<size in bytes>."
5403 msgstr ""
5404
5405 #. type: =head2
5406 #: ../fish/guestfish-actions.pod:515
5407 msgid "blockdev-rereadpt"
5408 msgstr ""
5409
5410 #. type: verbatim
5411 #: ../fish/guestfish-actions.pod:517
5412 #, no-wrap
5413 msgid ""
5414 " blockdev-rereadpt device\n"
5415 "\n"
5416 msgstr ""
5417
5418 #. type: textblock
5419 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
5420 msgid "Reread the partition table on C<device>."
5421 msgstr ""
5422
5423 #. type: =head2
5424 #: ../fish/guestfish-actions.pod:523
5425 msgid "blockdev-setbsz"
5426 msgstr ""
5427
5428 #. type: verbatim
5429 #: ../fish/guestfish-actions.pod:525
5430 #, no-wrap
5431 msgid ""
5432 " blockdev-setbsz device blocksize\n"
5433 "\n"
5434 msgstr ""
5435
5436 #. type: textblock
5437 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
5438 msgid "This sets the block size of a device."
5439 msgstr ""
5440
5441 #. type: =head2
5442 #: ../fish/guestfish-actions.pod:534
5443 msgid "blockdev-setro"
5444 msgstr ""
5445
5446 #. type: verbatim
5447 #: ../fish/guestfish-actions.pod:536
5448 #, no-wrap
5449 msgid ""
5450 " blockdev-setro device\n"
5451 "\n"
5452 msgstr ""
5453
5454 #. type: textblock
5455 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
5456 msgid "Sets the block device named C<device> to read-only."
5457 msgstr ""
5458
5459 #. type: =head2
5460 #: ../fish/guestfish-actions.pod:542
5461 msgid "blockdev-setrw"
5462 msgstr ""
5463
5464 #. type: verbatim
5465 #: ../fish/guestfish-actions.pod:544
5466 #, no-wrap
5467 msgid ""
5468 " blockdev-setrw device\n"
5469 "\n"
5470 msgstr ""
5471
5472 #. type: textblock
5473 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
5474 msgid "Sets the block device named C<device> to read-write."
5475 msgstr ""
5476
5477 #. type: =head2
5478 #: ../fish/guestfish-actions.pod:550
5479 msgid "btrfs-filesystem-resize"
5480 msgstr ""
5481
5482 #. type: verbatim
5483 #: ../fish/guestfish-actions.pod:552
5484 #, no-wrap
5485 msgid ""
5486 " btrfs-filesystem-resize mountpoint [size:..]\n"
5487 "\n"
5488 msgstr ""
5489
5490 #. type: textblock
5491 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
5492 msgid "This command resizes a btrfs filesystem."
5493 msgstr ""
5494
5495 #. type: textblock
5496 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
5497 msgid ""
5498 "Note that unlike other resize calls, the filesystem has to be mounted and "
5499 "the parameter is the mountpoint not the device (this is a requirement of "
5500 "btrfs itself)."
5501 msgstr ""
5502
5503 #. type: textblock
5504 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3479
5505 #: ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5326
5506 msgid "The optional parameters are:"
5507 msgstr ""
5508
5509 #. type: =item
5510 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3483
5511 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5330
5512 msgid "C<size>"
5513 msgstr ""
5514
5515 #. type: textblock
5516 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
5517 msgid ""
5518 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
5519 "resized to the maximum size."
5520 msgstr ""
5521
5522 #. type: textblock
5523 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
5524 msgid "See also L<btrfs(8)>."
5525 msgstr ""
5526
5527 #. type: =head2
5528 #: ../fish/guestfish-actions.pod:575
5529 msgid "case-sensitive-path"
5530 msgstr ""
5531
5532 #. type: verbatim
5533 #: ../fish/guestfish-actions.pod:577
5534 #, no-wrap
5535 msgid ""
5536 " case-sensitive-path path\n"
5537 "\n"
5538 msgstr ""
5539
5540 #. type: textblock
5541 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
5542 msgid ""
5543 "This can be used to resolve case insensitive paths on a filesystem which is "
5544 "case sensitive.  The use case is to resolve paths which you have read from "
5545 "Windows configuration files or the Windows Registry, to the true path."
5546 msgstr ""
5547
5548 #. type: textblock
5549 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
5550 msgid ""
5551 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5552 "(and probably others), which is that although the underlying filesystem is "
5553 "case-insensitive, the driver exports the filesystem to Linux as case-"
5554 "sensitive."
5555 msgstr ""
5556
5557 #. type: textblock
5558 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
5559 msgid ""
5560 "One consequence of this is that special directories such as C<c:\\windows> "
5561 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5562 "precise details of how they were created.  In Windows itself this would not "
5563 "be a problem."
5564 msgstr ""
5565
5566 #. type: textblock
5567 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
5568 msgid ""
5569 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5570 "#posixfilenames1>"
5571 msgstr ""
5572
5573 #. type: textblock
5574 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
5575 msgid ""
5576 "This function resolves the true case of each element in the path and returns "
5577 "the case-sensitive path."
5578 msgstr ""
5579
5580 #. type: textblock
5581 #: ../fish/guestfish-actions.pod:601
5582 msgid ""
5583 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
5584 "WINDOWS/system32\"> (the exact return value would depend on details of how "
5585 "the directories were originally created under Windows)."
5586 msgstr ""
5587
5588 #. type: textblock
5589 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
5590 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5591 msgstr ""
5592
5593 #. type: textblock
5594 #: ../fish/guestfish-actions.pod:609
5595 msgid "See also L</realpath>."
5596 msgstr ""
5597
5598 #. type: =head2
5599 #: ../fish/guestfish-actions.pod:611
5600 msgid "cat"
5601 msgstr ""
5602
5603 #. type: verbatim
5604 #: ../fish/guestfish-actions.pod:613
5605 #, no-wrap
5606 msgid ""
5607 " cat path\n"
5608 "\n"
5609 msgstr ""
5610
5611 #. type: textblock
5612 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3899
5613 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5969
5614 msgid "Return the contents of the file named C<path>."
5615 msgstr ""
5616
5617 #. type: textblock
5618 #: ../fish/guestfish-actions.pod:617
5619 msgid ""
5620 "Note that this function cannot correctly handle binary files (specifically, "
5621 "files containing C<\\0> character which is treated as end of string).  For "
5622 "those you need to use the L</read-file> or L</download> functions which have "
5623 "a more complex interface."
5624 msgstr ""
5625
5626 #. type: textblock
5627 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:757
5628 #: ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:980
5629 #: ../fish/guestfish-actions.pod:990 ../fish/guestfish-actions.pod:1057
5630 #: ../fish/guestfish-actions.pod:1067 ../fish/guestfish-actions.pod:1259
5631 #: ../fish/guestfish-actions.pod:1572 ../fish/guestfish-actions.pod:1582
5632 #: ../fish/guestfish-actions.pod:1632 ../fish/guestfish-actions.pod:1647
5633 #: ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1676
5634 #: ../fish/guestfish-actions.pod:3769 ../fish/guestfish-actions.pod:3784
5635 #: ../fish/guestfish-actions.pod:3860 ../fish/guestfish-actions.pod:3877
5636 #: ../fish/guestfish-actions.pod:3892 ../fish/guestfish-actions.pod:4573
5637 #: ../fish/guestfish-actions.pod:4619 ../fish/guestfish-actions.pod:4704
5638 #: ../fish/guestfish-actions.pod:4719 ../fish/guestfish-actions.pod:5125
5639 #: ../fish/guestfish-actions.pod:5137 ../fish/guestfish-actions.pod:5155
5640 #: ../fish/guestfish-actions.pod:5172 ../fish/guestfish-actions.pod:5182
5641 #: ../fish/guestfish-actions.pod:5239 ../fish/guestfish-actions.pod:5249
5642 #: ../fish/guestfish-actions.pod:5278 ../fish/guestfish-actions.pod:5288
5643 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:1127
5644 #: ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1550
5645 #: ../src/guestfs-actions.pod:1569 ../src/guestfs-actions.pod:1672
5646 #: ../src/guestfs-actions.pod:1691 ../src/guestfs-actions.pod:1937
5647 #: ../src/guestfs-actions.pod:2417 ../src/guestfs-actions.pod:2436
5648 #: ../src/guestfs-actions.pod:2501 ../src/guestfs-actions.pod:2525
5649 #: ../src/guestfs-actions.pod:2542 ../src/guestfs-actions.pod:2571
5650 #: ../src/guestfs-actions.pod:5751 ../src/guestfs-actions.pod:5777
5651 #: ../src/guestfs-actions.pod:5908 ../src/guestfs-actions.pod:5934
5652 #: ../src/guestfs-actions.pod:5958 ../src/guestfs-actions.pod:6923
5653 #: ../src/guestfs-actions.pod:6978 ../src/guestfs-actions.pod:7124
5654 #: ../src/guestfs-actions.pod:7148 ../src/guestfs-actions.pod:7813
5655 #: ../src/guestfs-actions.pod:7833 ../src/guestfs-actions.pod:7866
5656 #: ../src/guestfs-actions.pod:7885 ../src/guestfs-actions.pod:7904
5657 #: ../src/guestfs-actions.pod:7998 ../src/guestfs-actions.pod:8017
5658 #: ../src/guestfs-actions.pod:8063 ../src/guestfs-actions.pod:8082
5659 msgid ""
5660 "Because of the message protocol, there is a transfer limit of somewhere "
5661 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5662 msgstr ""
5663
5664 #. type: =head2
5665 #: ../fish/guestfish-actions.pod:625
5666 msgid "checksum"
5667 msgstr ""
5668
5669 #. type: verbatim
5670 #: ../fish/guestfish-actions.pod:627
5671 #, no-wrap
5672 msgid ""
5673 " checksum csumtype path\n"
5674 "\n"
5675 msgstr ""
5676
5677 #. type: textblock
5678 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
5679 msgid ""
5680 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5681 msgstr ""
5682
5683 #. type: textblock
5684 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
5685 msgid ""
5686 "The type of checksum to compute is given by the C<csumtype> parameter which "
5687 "must have one of the following values:"
5688 msgstr ""
5689
5690 #. type: =item
5691 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
5692 msgid "C<crc>"
5693 msgstr ""
5694
5695 #. type: textblock
5696 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
5697 msgid ""
5698 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5699 "C<cksum> command."
5700 msgstr ""
5701
5702 #. type: =item
5703 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
5704 msgid "C<md5>"
5705 msgstr ""
5706
5707 #. type: textblock
5708 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
5709 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5710 msgstr ""
5711
5712 #. type: =item
5713 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
5714 msgid "C<sha1>"
5715 msgstr ""
5716
5717 #. type: textblock
5718 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
5719 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5720 msgstr ""
5721
5722 #. type: =item
5723 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
5724 msgid "C<sha224>"
5725 msgstr ""
5726
5727 #. type: textblock
5728 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
5729 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5730 msgstr ""
5731
5732 #. type: =item
5733 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
5734 msgid "C<sha256>"
5735 msgstr ""
5736
5737 #. type: textblock
5738 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
5739 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5740 msgstr ""
5741
5742 #. type: =item
5743 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
5744 msgid "C<sha384>"
5745 msgstr ""
5746
5747 #. type: textblock
5748 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
5749 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5750 msgstr ""
5751
5752 #. type: =item
5753 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
5754 msgid "C<sha512>"
5755 msgstr ""
5756
5757 #. type: textblock
5758 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
5759 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5760 msgstr ""
5761
5762 #. type: textblock
5763 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
5764 msgid "The checksum is returned as a printable string."
5765 msgstr ""
5766
5767 #. type: textblock
5768 #: ../fish/guestfish-actions.pod:670
5769 msgid "To get the checksum for a device, use L</checksum-device>."
5770 msgstr ""
5771
5772 #. type: textblock
5773 #: ../fish/guestfish-actions.pod:672
5774 msgid "To get the checksums for many files, use L</checksums-out>."
5775 msgstr ""
5776
5777 #. type: =head2
5778 #: ../fish/guestfish-actions.pod:674
5779 msgid "checksum-device"
5780 msgstr ""
5781
5782 #. type: verbatim
5783 #: ../fish/guestfish-actions.pod:676
5784 #, no-wrap
5785 msgid ""
5786 " checksum-device csumtype device\n"
5787 "\n"
5788 msgstr ""
5789
5790 #. type: textblock
5791 #: ../fish/guestfish-actions.pod:678
5792 msgid ""
5793 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5794 "device named C<device>.  For the types of checksums supported see the L</"
5795 "checksum> command."
5796 msgstr ""
5797
5798 #. type: =head2
5799 #: ../fish/guestfish-actions.pod:682
5800 msgid "checksums-out"
5801 msgstr ""
5802
5803 #. type: verbatim
5804 #: ../fish/guestfish-actions.pod:684
5805 #, no-wrap
5806 msgid ""
5807 " checksums-out csumtype directory (sumsfile|-)\n"
5808 "\n"
5809 msgstr ""
5810
5811 #. type: textblock
5812 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
5813 msgid ""
5814 "This command computes the checksums of all regular files in C<directory> and "
5815 "then emits a list of those checksums to the local output file C<sumsfile>."
5816 msgstr ""
5817
5818 #. type: textblock
5819 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
5820 msgid ""
5821 "This can be used for verifying the integrity of a virtual machine.  However "
5822 "to be properly secure you should pay attention to the output of the checksum "
5823 "command (it uses the ones from GNU coreutils).  In particular when the "
5824 "filename is not printable, coreutils uses a special backslash syntax.  For "
5825 "more information, see the GNU coreutils info file."
5826 msgstr ""
5827
5828 #. type: =head2
5829 #: ../fish/guestfish-actions.pod:700
5830 msgid "chmod"
5831 msgstr ""
5832
5833 #. type: verbatim
5834 #: ../fish/guestfish-actions.pod:702
5835 #, no-wrap
5836 msgid ""
5837 " chmod mode path\n"
5838 "\n"
5839 msgstr ""
5840
5841 #. type: textblock
5842 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
5843 msgid ""
5844 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5845 "supported."
5846 msgstr ""
5847
5848 #. type: textblock
5849 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
5850 msgid ""
5851 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5852 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5853 "C<700>."
5854 msgstr ""
5855
5856 #. type: textblock
5857 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3132
5858 #: ../fish/guestfish-actions.pod:3271 ../fish/guestfish-actions.pod:3281
5859 #: ../fish/guestfish-actions.pod:3291 ../src/guestfs-actions.pod:1064
5860 #: ../src/guestfs-actions.pod:4733 ../src/guestfs-actions.pod:4942
5861 #: ../src/guestfs-actions.pod:4961 ../src/guestfs-actions.pod:4980
5862 msgid "The mode actually set is affected by the umask."
5863 msgstr ""
5864
5865 #. type: =head2
5866 #: ../fish/guestfish-actions.pod:713
5867 msgid "chown"
5868 msgstr ""
5869
5870 #. type: verbatim
5871 #: ../fish/guestfish-actions.pod:715
5872 #, no-wrap
5873 msgid ""
5874 " chown owner group path\n"
5875 "\n"
5876 msgstr ""
5877
5878 #. type: textblock
5879 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
5880 msgid "Change the file owner to C<owner> and group to C<group>."
5881 msgstr ""
5882
5883 #. type: textblock
5884 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2567
5885 #: ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3804
5886 msgid ""
5887 "Only numeric uid and gid are supported.  If you want to use names, you will "
5888 "need to locate and parse the password file yourself (Augeas support makes "
5889 "this relatively easy)."
5890 msgstr ""
5891
5892 #. type: =head2
5893 #: ../fish/guestfish-actions.pod:723
5894 msgid "command"
5895 msgstr ""
5896
5897 #. type: verbatim
5898 #: ../fish/guestfish-actions.pod:725
5899 #, no-wrap
5900 msgid ""
5901 " command 'arguments ...'\n"
5902 "\n"
5903 msgstr ""
5904
5905 #. type: textblock
5906 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
5907 msgid ""
5908 "This call runs a command from the guest filesystem.  The filesystem must be "
5909 "mounted, and must contain a compatible operating system (ie. something "
5910 "Linux, with the same or compatible processor architecture)."
5911 msgstr ""
5912
5913 #. type: textblock
5914 #: ../fish/guestfish-actions.pod:732
5915 msgid ""
5916 "The single parameter is an argv-style list of arguments.  The first element "
5917 "is the name of the program to run.  Subsequent elements are parameters.  The "
5918 "list must be non-empty (ie. must contain a program name).  Note that the "
5919 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
5920 msgstr ""
5921
5922 #. type: textblock
5923 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
5924 msgid "The return value is anything printed to I<stdout> by the command."
5925 msgstr ""
5926
5927 #. type: textblock
5928 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
5929 msgid ""
5930 "If the command returns a non-zero exit status, then this function returns an "
5931 "error message.  The error message string is the content of I<stderr> from "
5932 "the command."
5933 msgstr ""
5934
5935 #. type: textblock
5936 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
5937 msgid ""
5938 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
5939 "bin>.  If you require a program from another location, you should provide "
5940 "the full path in the first parameter."
5941 msgstr ""
5942
5943 #. type: textblock
5944 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
5945 msgid ""
5946 "Shared libraries and data files required by the program must be available on "
5947 "filesystems which are mounted in the correct places.  It is the caller's "
5948 "responsibility to ensure all filesystems that are needed are mounted at the "
5949 "right locations."
5950 msgstr ""
5951
5952 #. type: =head2
5953 #: ../fish/guestfish-actions.pod:760
5954 msgid "command-lines"
5955 msgstr ""
5956
5957 #. type: verbatim
5958 #: ../fish/guestfish-actions.pod:762
5959 #, no-wrap
5960 msgid ""
5961 " command-lines 'arguments ...'\n"
5962 "\n"
5963 msgstr ""
5964
5965 #. type: textblock
5966 #: ../fish/guestfish-actions.pod:764
5967 msgid ""
5968 "This is the same as L</command>, but splits the result into a list of lines."
5969 msgstr ""
5970
5971 #. type: textblock
5972 #: ../fish/guestfish-actions.pod:767
5973 msgid "See also: L</sh-lines>"
5974 msgstr ""
5975
5976 #. type: =head2
5977 #: ../fish/guestfish-actions.pod:772
5978 msgid "compress-device-out"
5979 msgstr ""
5980
5981 #. type: verbatim
5982 #: ../fish/guestfish-actions.pod:774
5983 #, no-wrap
5984 msgid ""
5985 " compress-device-out ctype device (zdevice|-) [level:..]\n"
5986 "\n"
5987 msgstr ""
5988
5989 #. type: textblock
5990 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1168
5991 msgid ""
5992 "This command compresses C<device> and writes it out to the local file "
5993 "C<zdevice>."
5994 msgstr ""
5995
5996 #. type: textblock
5997 #: ../fish/guestfish-actions.pod:779
5998 msgid ""
5999 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
6000 "compress-out>."
6001 msgstr ""
6002
6003 #. type: =head2
6004 #: ../fish/guestfish-actions.pod:786
6005 msgid "compress-out"
6006 msgstr ""
6007
6008 #. type: verbatim
6009 #: ../fish/guestfish-actions.pod:788
6010 #, no-wrap
6011 msgid ""
6012 " compress-out ctype file (zfile|-) [level:..]\n"
6013 "\n"
6014 msgstr ""
6015
6016 #. type: textblock
6017 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1218
6018 msgid ""
6019 "This command compresses C<file> and writes it out to the local file C<zfile>."
6020 msgstr ""
6021
6022 #. type: textblock
6023 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1221
6024 msgid ""
6025 "The compression program used is controlled by the C<ctype> parameter.  "
6026 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
6027 "Some compression types may not be supported by particular builds of "
6028 "libguestfs, in which case you will get an error containing the substring "
6029 "\"not supported\"."
6030 msgstr ""
6031
6032 #. type: textblock
6033 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1227
6034 msgid ""
6035 "The optional C<level> parameter controls compression level.  The meaning and "
6036 "default for this parameter depends on the compression program being used."
6037 msgstr ""
6038
6039 #. type: =head2
6040 #: ../fish/guestfish-actions.pod:807
6041 msgid "config"
6042 msgstr ""
6043
6044 #. type: verbatim
6045 #: ../fish/guestfish-actions.pod:809
6046 #, no-wrap
6047 msgid ""
6048 " config qemuparam qemuvalue\n"
6049 "\n"
6050 msgstr ""
6051
6052 #. type: textblock
6053 #: ../fish/guestfish-actions.pod:811 ../src/guestfs-actions.pod:1266
6054 msgid ""
6055 "This can be used to add arbitrary qemu command line parameters of the form "
6056 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6057 "setting some parameters which would interfere with parameters that we use."
6058 msgstr ""
6059
6060 #. type: textblock
6061 #: ../fish/guestfish-actions.pod:816 ../src/guestfs-actions.pod:1271
6062 msgid "The first character of C<param> string must be a C<-> (dash)."
6063 msgstr ""
6064
6065 #. type: textblock
6066 #: ../fish/guestfish-actions.pod:818 ../src/guestfs-actions.pod:1273
6067 msgid "C<value> can be NULL."
6068 msgstr ""
6069
6070 #. type: =head2
6071 #: ../fish/guestfish-actions.pod:820
6072 msgid "copy-size"
6073 msgstr ""
6074
6075 #. type: verbatim
6076 #: ../fish/guestfish-actions.pod:822
6077 #, no-wrap
6078 msgid ""
6079 " copy-size src dest size\n"
6080 "\n"
6081 msgstr ""
6082
6083 #. type: textblock
6084 #: ../fish/guestfish-actions.pod:824 ../src/guestfs-actions.pod:1287
6085 msgid ""
6086 "This command copies exactly C<size> bytes from one source device or file "
6087 "C<src> to another destination device or file C<dest>."
6088 msgstr ""
6089
6090 #. type: textblock
6091 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1290
6092 msgid ""
6093 "Note this will fail if the source is too short or if the destination is not "
6094 "large enough."
6095 msgstr ""
6096
6097 #. type: =head2
6098 #: ../fish/guestfish-actions.pod:830
6099 msgid "cp"
6100 msgstr ""
6101
6102 #. type: verbatim
6103 #: ../fish/guestfish-actions.pod:832
6104 #, no-wrap
6105 msgid ""
6106 " cp src dest\n"
6107 "\n"
6108 msgstr ""
6109
6110 #. type: textblock
6111 #: ../fish/guestfish-actions.pod:834 ../src/guestfs-actions.pod:1309
6112 msgid ""
6113 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6114 "destination filename or destination directory."
6115 msgstr ""
6116
6117 #. type: =head2
6118 #: ../fish/guestfish-actions.pod:837
6119 msgid "cp-a"
6120 msgstr ""
6121
6122 #. type: verbatim
6123 #: ../fish/guestfish-actions.pod:839
6124 #, no-wrap
6125 msgid ""
6126 " cp-a src dest\n"
6127 "\n"
6128 msgstr ""
6129
6130 #. type: textblock
6131 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1323
6132 msgid ""
6133 "This copies a file or directory from C<src> to C<dest> recursively using the "
6134 "C<cp -a> command."
6135 msgstr ""
6136
6137 #. type: =head2
6138 #: ../fish/guestfish-actions.pod:844
6139 msgid "dd"
6140 msgstr ""
6141
6142 #. type: verbatim
6143 #: ../fish/guestfish-actions.pod:846
6144 #, no-wrap
6145 msgid ""
6146 " dd src dest\n"
6147 "\n"
6148 msgstr ""
6149
6150 #. type: textblock
6151 #: ../fish/guestfish-actions.pod:848 ../src/guestfs-actions.pod:1337
6152 msgid ""
6153 "This command copies from one source device or file C<src> to another "
6154 "destination device or file C<dest>.  Normally you would use this to copy to "
6155 "or from a device or partition, for example to duplicate a filesystem."
6156 msgstr ""
6157
6158 #. type: textblock
6159 #: ../fish/guestfish-actions.pod:853
6160 msgid ""
6161 "If the destination is a device, it must be as large or larger than the "
6162 "source file or device, otherwise the copy will fail.  This command cannot do "
6163 "partial copies (see L</copy-size>)."
6164 msgstr ""
6165
6166 #. type: =head2
6167 #: ../fish/guestfish-actions.pod:857
6168 msgid "df"
6169 msgstr ""
6170
6171 #. type: verbatim
6172 #: ../fish/guestfish-actions.pod:859
6173 #, no-wrap
6174 msgid ""
6175 " df\n"
6176 "\n"
6177 msgstr ""
6178
6179 #. type: textblock
6180 #: ../fish/guestfish-actions.pod:861 ../src/guestfs-actions.pod:1355
6181 msgid "This command runs the C<df> command to report disk space used."
6182 msgstr ""
6183
6184 #. type: textblock
6185 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:874
6186 msgid ""
6187 "This command is mostly useful for interactive sessions.  It is I<not> "
6188 "intended that you try to parse the output string.  Use L</statvfs> from "
6189 "programs."
6190 msgstr ""
6191
6192 #. type: =head2
6193 #: ../fish/guestfish-actions.pod:867
6194 msgid "df-h"
6195 msgstr ""
6196
6197 #. type: verbatim
6198 #: ../fish/guestfish-actions.pod:869
6199 #, no-wrap
6200 msgid ""
6201 " df-h\n"
6202 "\n"
6203 msgstr ""
6204
6205 #. type: textblock
6206 #: ../fish/guestfish-actions.pod:871 ../src/guestfs-actions.pod:1371
6207 msgid ""
6208 "This command runs the C<df -h> command to report disk space used in human-"
6209 "readable format."
6210 msgstr ""
6211
6212 #. type: =head2
6213 #: ../fish/guestfish-actions.pod:878
6214 msgid "dmesg"
6215 msgstr ""
6216
6217 #. type: verbatim
6218 #: ../fish/guestfish-actions.pod:880
6219 #, no-wrap
6220 msgid ""
6221 " dmesg\n"
6222 "\n"
6223 msgstr ""
6224
6225 #. type: textblock
6226 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1388
6227 msgid ""
6228 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6229 "This is sometimes useful for extended debugging of problems."
6230 msgstr ""
6231
6232 #. type: textblock
6233 #: ../fish/guestfish-actions.pod:886
6234 msgid ""
6235 "Another way to get the same information is to enable verbose messages with "
6236 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
6237 "before running the program."
6238 msgstr ""
6239
6240 #. type: =head2
6241 #: ../fish/guestfish-actions.pod:891
6242 msgid "download"
6243 msgstr ""
6244
6245 #. type: verbatim
6246 #: ../fish/guestfish-actions.pod:893
6247 #, no-wrap
6248 msgid ""
6249 " download remotefilename (filename|-)\n"
6250 "\n"
6251 msgstr ""
6252
6253 #. type: textblock
6254 #: ../fish/guestfish-actions.pod:895 ../fish/guestfish-actions.pod:908
6255 #: ../src/guestfs-actions.pod:1409 ../src/guestfs-actions.pod:1434
6256 msgid ""
6257 "Download file C<remotefilename> and save it as C<filename> on the local "
6258 "machine."
6259 msgstr ""
6260
6261 #. type: textblock
6262 #: ../fish/guestfish-actions.pod:898 ../fish/guestfish-actions.pod:4877
6263 #: ../src/guestfs-actions.pod:1412 ../src/guestfs-actions.pod:7383
6264 msgid "C<filename> can also be a named pipe."
6265 msgstr ""
6266
6267 #. type: textblock
6268 #: ../fish/guestfish-actions.pod:900
6269 msgid "See also L</upload>, L</cat>."
6270 msgstr ""
6271
6272 #. type: =head2
6273 #: ../fish/guestfish-actions.pod:904
6274 msgid "download-offset"
6275 msgstr ""
6276
6277 #. type: verbatim
6278 #: ../fish/guestfish-actions.pod:906
6279 #, no-wrap
6280 msgid ""
6281 " download-offset remotefilename (filename|-) offset size\n"
6282 "\n"
6283 msgstr ""
6284
6285 #. type: textblock
6286 #: ../fish/guestfish-actions.pod:911 ../src/guestfs-actions.pod:1437
6287 msgid ""
6288 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6289 "region must be within the file or device)."
6290 msgstr ""
6291
6292 #. type: textblock
6293 #: ../fish/guestfish-actions.pod:914
6294 msgid ""
6295 "Note that there is no limit on the amount of data that can be downloaded "
6296 "with this call, unlike with L</pread>, and this call always reads the full "
6297 "amount unless an error occurs."
6298 msgstr ""
6299
6300 #. type: textblock
6301 #: ../fish/guestfish-actions.pod:919
6302 msgid "See also L</download>, L</pread>."
6303 msgstr ""
6304
6305 #. type: =head2
6306 #: ../fish/guestfish-actions.pod:923
6307 msgid "drop-caches"
6308 msgstr ""
6309
6310 #. type: verbatim
6311 #: ../fish/guestfish-actions.pod:925
6312 #, no-wrap
6313 msgid ""
6314 " drop-caches whattodrop\n"
6315 "\n"
6316 msgstr ""
6317
6318 #. type: textblock
6319 #: ../fish/guestfish-actions.pod:927 ../src/guestfs-actions.pod:1462
6320 msgid ""
6321 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6322 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6323 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6324 msgstr ""
6325
6326 #. type: textblock
6327 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1467
6328 msgid "Setting C<whattodrop> to 3 should drop everything."
6329 msgstr ""
6330
6331 #. type: textblock
6332 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1469
6333 msgid ""
6334 "This automatically calls L<sync(2)> before the operation, so that the "
6335 "maximum guest memory is freed."
6336 msgstr ""
6337
6338 #. type: =head2
6339 #: ../fish/guestfish-actions.pod:937
6340 msgid "du"
6341 msgstr ""
6342
6343 #. type: verbatim
6344 #: ../fish/guestfish-actions.pod:939
6345 #, no-wrap
6346 msgid ""
6347 " du path\n"
6348 "\n"
6349 msgstr ""
6350
6351 #. type: textblock
6352 #: ../fish/guestfish-actions.pod:941 ../src/guestfs-actions.pod:1482
6353 msgid ""
6354 "This command runs the C<du -s> command to estimate file space usage for "
6355 "C<path>."
6356 msgstr ""
6357
6358 #. type: textblock
6359 #: ../fish/guestfish-actions.pod:944 ../src/guestfs-actions.pod:1485
6360 msgid ""
6361 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6362 "estimate includes the contents of the directory and all subdirectories "
6363 "(recursively)."
6364 msgstr ""
6365
6366 #. type: textblock
6367 #: ../fish/guestfish-actions.pod:948 ../src/guestfs-actions.pod:1489
6368 msgid ""
6369 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6370 msgstr ""
6371
6372 #. type: =head2
6373 #: ../fish/guestfish-actions.pod:951
6374 msgid "e2fsck-f"
6375 msgstr ""
6376
6377 #. type: verbatim
6378 #: ../fish/guestfish-actions.pod:953
6379 #, no-wrap
6380 msgid ""
6381 " e2fsck-f device\n"
6382 "\n"
6383 msgstr ""
6384
6385 #. type: textblock
6386 #: ../fish/guestfish-actions.pod:955 ../src/guestfs-actions.pod:1507
6387 msgid ""
6388 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6389 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
6390 "clean (I<-f>)."
6391 msgstr ""
6392
6393 #. type: textblock
6394 #: ../fish/guestfish-actions.pod:959
6395 msgid ""
6396 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
6397 "should use L</fsck>."
6398 msgstr ""
6399
6400 #. type: =head2
6401 #: ../fish/guestfish-actions.pod:962
6402 msgid "echo-daemon"
6403 msgstr ""
6404
6405 #. type: verbatim
6406 #: ../fish/guestfish-actions.pod:964
6407 #, no-wrap
6408 msgid ""
6409 " echo-daemon 'words ...'\n"
6410 "\n"
6411 msgstr ""
6412
6413 #. type: textblock
6414 #: ../fish/guestfish-actions.pod:966 ../src/guestfs-actions.pod:1524
6415 msgid ""
6416 "This command concatenates the list of C<words> passed with single spaces "
6417 "between them and returns the resulting string."
6418 msgstr ""
6419
6420 #. type: textblock
6421 #: ../fish/guestfish-actions.pod:969 ../src/guestfs-actions.pod:1527
6422 msgid "You can use this command to test the connection through to the daemon."
6423 msgstr ""
6424
6425 #. type: textblock
6426 #: ../fish/guestfish-actions.pod:971
6427 msgid "See also L</ping-daemon>."
6428 msgstr ""
6429
6430 #. type: =head2
6431 #: ../fish/guestfish-actions.pod:973
6432 msgid "egrep"
6433 msgstr ""
6434
6435 #. type: verbatim
6436 #: ../fish/guestfish-actions.pod:975
6437 #, no-wrap
6438 msgid ""
6439 " egrep regex path\n"
6440 "\n"
6441 msgstr ""
6442
6443 #. type: textblock
6444 #: ../fish/guestfish-actions.pod:977 ../src/guestfs-actions.pod:1543
6445 msgid ""
6446 "This calls the external C<egrep> program and returns the matching lines."
6447 msgstr ""
6448
6449 #. type: =head2
6450 #: ../fish/guestfish-actions.pod:983
6451 msgid "egrepi"
6452 msgstr ""
6453
6454 #. type: verbatim
6455 #: ../fish/guestfish-actions.pod:985
6456 #, no-wrap
6457 msgid ""
6458 " egrepi regex path\n"
6459 "\n"
6460 msgstr ""
6461
6462 #. type: textblock
6463 #: ../fish/guestfish-actions.pod:987 ../src/guestfs-actions.pod:1562
6464 msgid ""
6465 "This calls the external C<egrep -i> program and returns the matching lines."
6466 msgstr ""
6467
6468 #. type: =head2
6469 #: ../fish/guestfish-actions.pod:993
6470 msgid "equal"
6471 msgstr ""
6472
6473 #. type: verbatim
6474 #: ../fish/guestfish-actions.pod:995
6475 #, no-wrap
6476 msgid ""
6477 " equal file1 file2\n"
6478 "\n"
6479 msgstr ""
6480
6481 #. type: textblock
6482 #: ../fish/guestfish-actions.pod:997 ../src/guestfs-actions.pod:1581
6483 msgid ""
6484 "This compares the two files C<file1> and C<file2> and returns true if their "
6485 "content is exactly equal, or false otherwise."
6486 msgstr ""
6487
6488 #. type: textblock
6489 #: ../fish/guestfish-actions.pod:1000 ../src/guestfs-actions.pod:1584
6490 msgid "The external L<cmp(1)> program is used for the comparison."
6491 msgstr ""
6492
6493 #. type: =head2
6494 #: ../fish/guestfish-actions.pod:1002
6495 msgid "exists"
6496 msgstr ""
6497
6498 #. type: verbatim
6499 #: ../fish/guestfish-actions.pod:1004
6500 #, no-wrap
6501 msgid ""
6502 " exists path\n"
6503 "\n"
6504 msgstr ""
6505
6506 #. type: textblock
6507 #: ../fish/guestfish-actions.pod:1006 ../src/guestfs-actions.pod:1596
6508 msgid ""
6509 "This returns C<true> if and only if there is a file, directory (or anything) "
6510 "with the given C<path> name."
6511 msgstr ""
6512
6513 #. type: textblock
6514 #: ../fish/guestfish-actions.pod:1009
6515 msgid "See also L</is-file>, L</is-dir>, L</stat>."
6516 msgstr ""
6517
6518 #. type: =head2
6519 #: ../fish/guestfish-actions.pod:1011
6520 msgid "fallocate"
6521 msgstr ""
6522
6523 #. type: verbatim
6524 #: ../fish/guestfish-actions.pod:1013
6525 #, no-wrap
6526 msgid ""
6527 " fallocate path len\n"
6528 "\n"
6529 msgstr ""
6530
6531 #. type: textblock
6532 #: ../fish/guestfish-actions.pod:1015 ../fish/guestfish-actions.pod:1034
6533 #: ../src/guestfs-actions.pod:1619 ../src/guestfs-actions.pod:1638
6534 msgid ""
6535 "This command preallocates a file (containing zero bytes) named C<path> of "
6536 "size C<len> bytes.  If the file exists already, it is overwritten."
6537 msgstr ""
6538
6539 #. type: textblock
6540 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1623
6541 msgid ""
6542 "Do not confuse this with the guestfish-specific C<alloc> command which "
6543 "allocates a file in the host and attaches it as a device."
6544 msgstr ""
6545
6546 #. type: textblock
6547 #: ../fish/guestfish-actions.pod:1023
6548 msgid ""
6549 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
6550 "instead."
6551 msgstr ""
6552
6553 #. type: =head2
6554 #: ../fish/guestfish-actions.pod:1030
6555 msgid "fallocate64"
6556 msgstr ""
6557
6558 #. type: verbatim
6559 #: ../fish/guestfish-actions.pod:1032
6560 #, no-wrap
6561 msgid ""
6562 " fallocate64 path len\n"
6563 "\n"
6564 msgstr ""
6565
6566 #. type: textblock
6567 #: ../fish/guestfish-actions.pod:1038
6568 msgid ""
6569 "Note that this call allocates disk blocks for the file.  To create a sparse "
6570 "file use L</truncate-size> instead."
6571 msgstr ""
6572
6573 #. type: textblock
6574 #: ../fish/guestfish-actions.pod:1041
6575 msgid ""
6576 "The deprecated call L</fallocate> does the same, but owing to an oversight "
6577 "it only allowed 30 bit lengths to be specified, effectively limiting the "
6578 "maximum size of files created through that call to 1GB."
6579 msgstr ""
6580
6581 #. type: textblock
6582 #: ../fish/guestfish-actions.pod:1046 ../src/guestfs-actions.pod:1650
6583 msgid ""
6584 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6585 "commands which create a file in the host and attach it as a device."
6586 msgstr ""
6587
6588 #. type: =head2
6589 #: ../fish/guestfish-actions.pod:1050
6590 msgid "fgrep"
6591 msgstr ""
6592
6593 #. type: verbatim
6594 #: ../fish/guestfish-actions.pod:1052
6595 #, no-wrap
6596 msgid ""
6597 " fgrep pattern path\n"
6598 "\n"
6599 msgstr ""
6600
6601 #. type: textblock
6602 #: ../fish/guestfish-actions.pod:1054 ../src/guestfs-actions.pod:1665
6603 msgid ""
6604 "This calls the external C<fgrep> program and returns the matching lines."
6605 msgstr ""
6606
6607 #. type: =head2
6608 #: ../fish/guestfish-actions.pod:1060
6609 msgid "fgrepi"
6610 msgstr ""
6611
6612 #. type: verbatim
6613 #: ../fish/guestfish-actions.pod:1062
6614 #, no-wrap
6615 msgid ""
6616 " fgrepi pattern path\n"
6617 "\n"
6618 msgstr ""
6619
6620 #. type: textblock
6621 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1684
6622 msgid ""
6623 "This calls the external C<fgrep -i> program and returns the matching lines."
6624 msgstr ""
6625
6626 #. type: =head2
6627 #: ../fish/guestfish-actions.pod:1070
6628 msgid "file"
6629 msgstr ""
6630
6631 #. type: verbatim
6632 #: ../fish/guestfish-actions.pod:1072
6633 #, no-wrap
6634 msgid ""
6635 " file path\n"
6636 "\n"
6637 msgstr ""
6638
6639 #. type: textblock
6640 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1702
6641 msgid ""
6642 "This call uses the standard L<file(1)> command to determine the type or "
6643 "contents of the file."
6644 msgstr ""
6645
6646 #. type: textblock
6647 #: ../fish/guestfish-actions.pod:1077 ../src/guestfs-actions.pod:1705
6648 msgid ""
6649 "This call will also transparently look inside various types of compressed "
6650 "file."
6651 msgstr ""
6652
6653 #. type: textblock
6654 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1708
6655 msgid ""
6656 "The exact command which runs is C<file -zb path>.  Note in particular that "
6657 "the filename is not prepended to the output (the I<-b> option)."
6658 msgstr ""
6659
6660 #. type: textblock
6661 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1712
6662 msgid ""
6663 "The output depends on the output of the underlying L<file(1)> command and it "
6664 "can change in future in ways beyond our control.  In other words, the output "
6665 "is not guaranteed by the ABI."
6666 msgstr ""
6667
6668 #. type: textblock
6669 #: ../fish/guestfish-actions.pod:1088
6670 msgid ""
6671 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
6672 "(etc), L</is-zero>."
6673 msgstr ""
6674
6675 #. type: =head2
6676 #: ../fish/guestfish-actions.pod:1091
6677 msgid "file-architecture"
6678 msgstr ""
6679
6680 #. type: verbatim
6681 #: ../fish/guestfish-actions.pod:1093
6682 #, no-wrap
6683 msgid ""
6684 " file-architecture filename\n"
6685 "\n"
6686 msgstr ""
6687
6688 #. type: textblock
6689 #: ../fish/guestfish-actions.pod:1095 ../src/guestfs-actions.pod:1730
6690 msgid ""
6691 "This detects the architecture of the binary C<filename>, and returns it if "
6692 "known."
6693 msgstr ""
6694
6695 #. type: textblock
6696 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1733
6697 msgid "Currently defined architectures are:"
6698 msgstr ""
6699
6700 #. type: =item
6701 #: ../fish/guestfish-actions.pod:1102 ../src/guestfs-actions.pod:1737
6702 msgid "\"i386\""
6703 msgstr ""
6704
6705 #. type: textblock
6706 #: ../fish/guestfish-actions.pod:1104 ../src/guestfs-actions.pod:1739
6707 msgid ""
6708 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6709 "irrespective of the precise processor requirements of the binary."
6710 msgstr ""
6711
6712 #. type: =item
6713 #: ../fish/guestfish-actions.pod:1107 ../src/guestfs-actions.pod:1742
6714 msgid "\"x86_64\""
6715 msgstr ""
6716
6717 #. type: textblock
6718 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1744
6719 msgid "64 bit x86-64."
6720 msgstr ""
6721
6722 #. type: =item
6723 #: ../fish/guestfish-actions.pod:1111 ../src/guestfs-actions.pod:1746
6724 msgid "\"sparc\""
6725 msgstr ""
6726
6727 #. type: textblock
6728 #: ../fish/guestfish-actions.pod:1113 ../src/guestfs-actions.pod:1748
6729 msgid "32 bit SPARC."
6730 msgstr ""
6731
6732 #. type: =item
6733 #: ../fish/guestfish-actions.pod:1115 ../src/guestfs-actions.pod:1750
6734 msgid "\"sparc64\""
6735 msgstr ""
6736
6737 #. type: textblock
6738 #: ../fish/guestfish-actions.pod:1117 ../src/guestfs-actions.pod:1752
6739 msgid "64 bit SPARC V9 and above."
6740 msgstr ""
6741
6742 #. type: =item
6743 #: ../fish/guestfish-actions.pod:1119 ../src/guestfs-actions.pod:1754
6744 msgid "\"ia64\""
6745 msgstr ""
6746
6747 #. type: textblock
6748 #: ../fish/guestfish-actions.pod:1121 ../src/guestfs-actions.pod:1756
6749 msgid "Intel Itanium."
6750 msgstr ""
6751
6752 #. type: =item
6753 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1758
6754 msgid "\"ppc\""
6755 msgstr ""
6756
6757 #. type: textblock
6758 #: ../fish/guestfish-actions.pod:1125 ../src/guestfs-actions.pod:1760
6759 msgid "32 bit Power PC."
6760 msgstr ""
6761
6762 #. type: =item
6763 #: ../fish/guestfish-actions.pod:1127 ../src/guestfs-actions.pod:1762
6764 msgid "\"ppc64\""
6765 msgstr ""
6766
6767 #. type: textblock
6768 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1764
6769 msgid "64 bit Power PC."
6770 msgstr ""
6771
6772 #. type: textblock
6773 #: ../fish/guestfish-actions.pod:1133 ../src/guestfs-actions.pod:1768
6774 msgid "Libguestfs may return other architecture strings in future."
6775 msgstr ""
6776
6777 #. type: textblock
6778 #: ../fish/guestfish-actions.pod:1135 ../src/guestfs-actions.pod:1770
6779 msgid "The function works on at least the following types of files:"
6780 msgstr ""
6781
6782 #. type: textblock
6783 #: ../fish/guestfish-actions.pod:1141 ../src/guestfs-actions.pod:1776
6784 msgid "many types of Un*x and Linux binary"
6785 msgstr ""
6786
6787 #. type: textblock
6788 #: ../fish/guestfish-actions.pod:1145 ../src/guestfs-actions.pod:1780
6789 msgid "many types of Un*x and Linux shared library"
6790 msgstr ""
6791
6792 #. type: textblock
6793 #: ../fish/guestfish-actions.pod:1149 ../src/guestfs-actions.pod:1784
6794 msgid "Windows Win32 and Win64 binaries"
6795 msgstr ""
6796
6797 #. type: textblock
6798 #: ../fish/guestfish-actions.pod:1153 ../src/guestfs-actions.pod:1788
6799 msgid "Windows Win32 and Win64 DLLs"
6800 msgstr ""
6801
6802 #. type: textblock
6803 #: ../fish/guestfish-actions.pod:1155 ../src/guestfs-actions.pod:1790
6804 msgid "Win32 binaries and DLLs return C<i386>."
6805 msgstr ""
6806
6807 #. type: textblock
6808 #: ../fish/guestfish-actions.pod:1157 ../src/guestfs-actions.pod:1792
6809 msgid "Win64 binaries and DLLs return C<x86_64>."
6810 msgstr ""
6811
6812 #. type: textblock
6813 #: ../fish/guestfish-actions.pod:1161 ../src/guestfs-actions.pod:1796
6814 msgid "Linux kernel modules"
6815 msgstr ""
6816
6817 #. type: textblock
6818 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1800
6819 msgid "Linux new-style initrd images"
6820 msgstr ""
6821
6822 #. type: textblock
6823 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1804
6824 msgid "some non-x86 Linux vmlinuz kernels"
6825 msgstr ""
6826
6827 #. type: textblock
6828 #: ../fish/guestfish-actions.pod:1173 ../src/guestfs-actions.pod:1808
6829 msgid "What it can't do currently:"
6830 msgstr ""
6831
6832 #. type: textblock
6833 #: ../fish/guestfish-actions.pod:1179 ../src/guestfs-actions.pod:1814
6834 msgid "static libraries (libfoo.a)"
6835 msgstr ""
6836
6837 #. type: textblock
6838 #: ../fish/guestfish-actions.pod:1183 ../src/guestfs-actions.pod:1818
6839 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6840 msgstr ""
6841
6842 #. type: textblock
6843 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1822
6844 msgid "x86 Linux vmlinuz kernels"
6845 msgstr ""
6846
6847 #. type: textblock
6848 #: ../fish/guestfish-actions.pod:1189 ../src/guestfs-actions.pod:1824
6849 msgid ""
6850 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6851 "compressed code, and are horribly hard to unpack.  If you want to find the "
6852 "architecture of a kernel, use the architecture of the associated initrd or "
6853 "kernel module(s) instead."
6854 msgstr ""
6855
6856 #. type: =head2
6857 #: ../fish/guestfish-actions.pod:1196
6858 msgid "filesize"
6859 msgstr ""
6860
6861 #. type: verbatim
6862 #: ../fish/guestfish-actions.pod:1198
6863 #, no-wrap
6864 msgid ""
6865 " filesize file\n"
6866 "\n"
6867 msgstr ""
6868
6869 #. type: textblock
6870 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:1842
6871 msgid "This command returns the size of C<file> in bytes."
6872 msgstr ""
6873
6874 #. type: textblock
6875 #: ../fish/guestfish-actions.pod:1202
6876 msgid ""
6877 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
6878 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
6879 msgstr ""
6880
6881 #. type: =head2
6882 #: ../fish/guestfish-actions.pod:1206
6883 msgid "fill"
6884 msgstr ""
6885
6886 #. type: verbatim
6887 #: ../fish/guestfish-actions.pod:1208
6888 #, no-wrap
6889 msgid ""
6890 " fill c len path\n"
6891 "\n"
6892 msgstr ""
6893
6894 #. type: textblock
6895 #: ../fish/guestfish-actions.pod:1210 ../src/guestfs-actions.pod:1860
6896 msgid ""
6897 "This command creates a new file called C<path>.  The initial content of the "
6898 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
6899 "[0..255]>."
6900 msgstr ""
6901
6902 #. type: textblock
6903 #: ../fish/guestfish-actions.pod:1214
6904 msgid ""
6905 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6906 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
6907 "L</fill-pattern>."
6908 msgstr ""
6909
6910 #. type: =head2
6911 #: ../fish/guestfish-actions.pod:1219
6912 msgid "fill-pattern"
6913 msgstr ""
6914
6915 #. type: verbatim
6916 #: ../fish/guestfish-actions.pod:1221
6917 #, no-wrap
6918 msgid ""
6919 " fill-pattern pattern len path\n"
6920 "\n"
6921 msgstr ""
6922
6923 #. type: textblock
6924 #: ../fish/guestfish-actions.pod:1223
6925 msgid ""
6926 "This function is like L</fill> except that it creates a new file of length "
6927 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
6928 "is truncated if necessary to ensure the length of the file is exactly C<len> "
6929 "bytes."
6930 msgstr ""
6931
6932 #. type: =head2
6933 #: ../fish/guestfish-actions.pod:1228
6934 msgid "find"
6935 msgstr ""
6936
6937 #. type: verbatim
6938 #: ../fish/guestfish-actions.pod:1230
6939 #, no-wrap
6940 msgid ""
6941 " find directory\n"
6942 "\n"
6943 msgstr ""
6944
6945 #. type: textblock
6946 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:1906
6947 msgid ""
6948 "This command lists out all files and directories, recursively, starting at "
6949 "C<directory>.  It is essentially equivalent to running the shell command "
6950 "C<find directory -print> but some post-processing happens on the output, "
6951 "described below."
6952 msgstr ""
6953
6954 #. type: textblock
6955 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1911
6956 msgid ""
6957 "This returns a list of strings I<without any prefix>.  Thus if the directory "
6958 "structure was:"
6959 msgstr ""
6960
6961 #. type: verbatim
6962 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:1914
6963 #, no-wrap
6964 msgid ""
6965 " /tmp/a\n"
6966 " /tmp/b\n"
6967 " /tmp/c/d\n"
6968 "\n"
6969 msgstr ""
6970
6971 #. type: textblock
6972 #: ../fish/guestfish-actions.pod:1244
6973 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
6974 msgstr ""
6975
6976 #. type: verbatim
6977 #: ../fish/guestfish-actions.pod:1247 ../src/guestfs-actions.pod:1921
6978 #, no-wrap
6979 msgid ""
6980 " a\n"
6981 " b\n"
6982 " c\n"
6983 " c/d\n"
6984 "\n"
6985 msgstr ""
6986
6987 #. type: textblock
6988 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:1926
6989 msgid "If C<directory> is not a directory, then this command returns an error."
6990 msgstr ""
6991
6992 #. type: textblock
6993 #: ../fish/guestfish-actions.pod:1255 ../src/guestfs-actions.pod:1929
6994 msgid "The returned list is sorted."
6995 msgstr ""
6996
6997 #. type: textblock
6998 #: ../fish/guestfish-actions.pod:1257
6999 msgid "See also L</find0>."
7000 msgstr ""
7001
7002 #. type: =head2
7003 #: ../fish/guestfish-actions.pod:1262
7004 msgid "find0"
7005 msgstr ""
7006
7007 #. type: verbatim
7008 #: ../fish/guestfish-actions.pod:1264
7009 #, no-wrap
7010 msgid ""
7011 " find0 directory (files|-)\n"
7012 "\n"
7013 msgstr ""
7014
7015 #. type: textblock
7016 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1949
7017 msgid ""
7018 "This command lists out all files and directories, recursively, starting at "
7019 "C<directory>, placing the resulting list in the external file called "
7020 "C<files>."
7021 msgstr ""
7022
7023 #. type: textblock
7024 #: ../fish/guestfish-actions.pod:1270
7025 msgid ""
7026 "This command works the same way as L</find> with the following exceptions:"
7027 msgstr ""
7028
7029 #. type: textblock
7030 #: ../fish/guestfish-actions.pod:1277 ../src/guestfs-actions.pod:1960
7031 msgid "The resulting list is written to an external file."
7032 msgstr ""
7033
7034 #. type: textblock
7035 #: ../fish/guestfish-actions.pod:1281 ../src/guestfs-actions.pod:1964
7036 msgid ""
7037 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7038 "L<find(1)> option I<-print0>."
7039 msgstr ""
7040
7041 #. type: textblock
7042 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1969
7043 msgid "This command is not limited in the number of names that it can return."
7044 msgstr ""
7045
7046 #. type: textblock
7047 #: ../fish/guestfish-actions.pod:1291 ../src/guestfs-actions.pod:1974
7048 msgid "The result list is not sorted."
7049 msgstr ""
7050
7051 #. type: =head2
7052 #: ../fish/guestfish-actions.pod:1297
7053 msgid "findfs-label"
7054 msgstr ""
7055
7056 #. type: verbatim
7057 #: ../fish/guestfish-actions.pod:1299
7058 #, no-wrap
7059 msgid ""
7060 " findfs-label label\n"
7061 "\n"
7062 msgstr ""
7063
7064 #. type: textblock
7065 #: ../fish/guestfish-actions.pod:1301 ../src/guestfs-actions.pod:1988
7066 msgid ""
7067 "This command searches the filesystems and returns the one which has the "
7068 "given label.  An error is returned if no such filesystem can be found."
7069 msgstr ""
7070
7071 #. type: textblock
7072 #: ../fish/guestfish-actions.pod:1305
7073 msgid "To find the label of a filesystem, use L</vfs-label>."
7074 msgstr ""
7075
7076 #. type: =head2
7077 #: ../fish/guestfish-actions.pod:1307
7078 msgid "findfs-uuid"
7079 msgstr ""
7080
7081 #. type: verbatim
7082 #: ../fish/guestfish-actions.pod:1309
7083 #, no-wrap
7084 msgid ""
7085 " findfs-uuid uuid\n"
7086 "\n"
7087 msgstr ""
7088
7089 #. type: textblock
7090 #: ../fish/guestfish-actions.pod:1311 ../src/guestfs-actions.pod:2005
7091 msgid ""
7092 "This command searches the filesystems and returns the one which has the "
7093 "given UUID.  An error is returned if no such filesystem can be found."
7094 msgstr ""
7095
7096 #. type: textblock
7097 #: ../fish/guestfish-actions.pod:1315
7098 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
7099 msgstr ""
7100
7101 #. type: =head2
7102 #: ../fish/guestfish-actions.pod:1317
7103 msgid "fsck"
7104 msgstr ""
7105
7106 #. type: verbatim
7107 #: ../fish/guestfish-actions.pod:1319
7108 #, no-wrap
7109 msgid ""
7110 " fsck fstype device\n"
7111 "\n"
7112 msgstr ""
7113
7114 #. type: textblock
7115 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:2023
7116 msgid ""
7117 "This runs the filesystem checker (fsck) on C<device> which should have "
7118 "filesystem type C<fstype>."
7119 msgstr ""
7120
7121 #. type: textblock
7122 #: ../fish/guestfish-actions.pod:1324 ../src/guestfs-actions.pod:2026
7123 msgid ""
7124 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7125 "codes from C<fsck>."
7126 msgstr ""
7127
7128 #. type: textblock
7129 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2035
7130 msgid "Multiple status codes can be summed together."
7131 msgstr ""
7132
7133 #. type: textblock
7134 #: ../fish/guestfish-actions.pod:1337 ../src/guestfs-actions.pod:2039
7135 msgid ""
7136 "A non-zero return code can mean \"success\", for example if errors have been "
7137 "corrected on the filesystem."
7138 msgstr ""
7139
7140 #. type: textblock
7141 #: ../fish/guestfish-actions.pod:1342 ../src/guestfs-actions.pod:2044
7142 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7143 msgstr ""
7144
7145 #. type: textblock
7146 #: ../fish/guestfish-actions.pod:1347 ../src/guestfs-actions.pod:2049
7147 msgid ""
7148 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7149 msgstr ""
7150
7151 #. type: =head2
7152 #: ../fish/guestfish-actions.pod:1349
7153 msgid "get-append"
7154 msgstr ""
7155
7156 #. type: verbatim
7157 #: ../fish/guestfish-actions.pod:1351
7158 #, no-wrap
7159 msgid ""
7160 " get-append\n"
7161 "\n"
7162 msgstr ""
7163
7164 #. type: textblock
7165 #: ../fish/guestfish-actions.pod:1353 ../src/guestfs-actions.pod:2060
7166 msgid ""
7167 "Return the additional kernel options which are added to the guest kernel "
7168 "command line."
7169 msgstr ""
7170
7171 #. type: textblock
7172 #: ../fish/guestfish-actions.pod:1356 ../src/guestfs-actions.pod:2063
7173 msgid "If C<NULL> then no options are added."
7174 msgstr ""
7175
7176 #. type: =head2
7177 #: ../fish/guestfish-actions.pod:1358
7178 msgid "get-attach-method"
7179 msgstr ""
7180
7181 #. type: verbatim
7182 #: ../fish/guestfish-actions.pod:1360
7183 #, no-wrap
7184 msgid ""
7185 " get-attach-method\n"
7186 "\n"
7187 msgstr ""
7188
7189 #. type: textblock
7190 #: ../fish/guestfish-actions.pod:1362
7191 msgid "Return the current attach method.  See L</set-attach-method>."
7192 msgstr ""
7193
7194 #. type: =head2
7195 #: ../fish/guestfish-actions.pod:1364
7196 msgid "get-autosync"
7197 msgstr ""
7198
7199 #. type: verbatim
7200 #: ../fish/guestfish-actions.pod:1366
7201 #, no-wrap
7202 msgid ""
7203 " get-autosync\n"
7204 "\n"
7205 msgstr ""
7206
7207 #. type: textblock
7208 #: ../fish/guestfish-actions.pod:1368 ../src/guestfs-actions.pod:2088
7209 msgid "Get the autosync flag."
7210 msgstr ""
7211
7212 #. type: =head2
7213 #: ../fish/guestfish-actions.pod:1370
7214 msgid "get-direct"
7215 msgstr ""
7216
7217 #. type: verbatim
7218 #: ../fish/guestfish-actions.pod:1372
7219 #, no-wrap
7220 msgid ""
7221 " get-direct\n"
7222 "\n"
7223 msgstr ""
7224
7225 #. type: textblock
7226 #: ../fish/guestfish-actions.pod:1374 ../src/guestfs-actions.pod:2099
7227 msgid "Return the direct appliance mode flag."
7228 msgstr ""
7229
7230 #. type: =head2
7231 #: ../fish/guestfish-actions.pod:1376
7232 msgid "get-e2label"
7233 msgstr ""
7234
7235 #. type: verbatim
7236 #: ../fish/guestfish-actions.pod:1378
7237 #, no-wrap
7238 msgid ""
7239 " get-e2label device\n"
7240 "\n"
7241 msgstr ""
7242
7243 #. type: textblock
7244 #: ../fish/guestfish-actions.pod:1380 ../src/guestfs-actions.pod:2118
7245 msgid ""
7246 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7247 msgstr ""
7248
7249 #. type: textblock
7250 #: ../fish/guestfish-actions.pod:1383
7251 msgid ""
7252 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
7253 "instead."
7254 msgstr ""
7255
7256 #. type: =head2
7257 #: ../fish/guestfish-actions.pod:1390
7258 msgid "get-e2uuid"
7259 msgstr ""
7260
7261 #. type: verbatim
7262 #: ../fish/guestfish-actions.pod:1392
7263 #, no-wrap
7264 msgid ""
7265 " get-e2uuid device\n"
7266 "\n"
7267 msgstr ""
7268
7269 #. type: textblock
7270 #: ../fish/guestfish-actions.pod:1394 ../src/guestfs-actions.pod:2139
7271 msgid ""
7272 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7273 msgstr ""
7274
7275 #. type: textblock
7276 #: ../fish/guestfish-actions.pod:1397
7277 msgid ""
7278 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
7279 "instead."
7280 msgstr ""
7281
7282 #. type: =head2
7283 #: ../fish/guestfish-actions.pod:1404
7284 msgid "get-memsize"
7285 msgstr ""
7286
7287 #. type: verbatim
7288 #: ../fish/guestfish-actions.pod:1406
7289 #, no-wrap
7290 msgid ""
7291 " get-memsize\n"
7292 "\n"
7293 msgstr ""
7294
7295 #. type: textblock
7296 #: ../fish/guestfish-actions.pod:1408 ../src/guestfs-actions.pod:2152
7297 msgid ""
7298 "This gets the memory size in megabytes allocated to the qemu subprocess."
7299 msgstr ""
7300
7301 #. type: textblock
7302 #: ../fish/guestfish-actions.pod:1411
7303 msgid ""
7304 "If L</set-memsize> was not called on this handle, and if "
7305 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7306 "value for memsize."
7307 msgstr ""
7308
7309 #. type: textblock
7310 #: ../fish/guestfish-actions.pod:1415 ../fish/guestfish-actions.pod:1472
7311 #: ../fish/guestfish-actions.pod:4225 ../fish/guestfish-actions.pod:4327
7312 #: ../src/guestfs-actions.pod:2159 ../src/guestfs-actions.pod:2251
7313 #: ../src/guestfs-actions.pod:6430 ../src/guestfs-actions.pod:6556
7314 msgid ""
7315 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7316 msgstr ""
7317
7318 #. type: =head2
7319 #: ../fish/guestfish-actions.pod:1418
7320 msgid "get-network"
7321 msgstr ""
7322
7323 #. type: verbatim
7324 #: ../fish/guestfish-actions.pod:1420
7325 #, no-wrap
7326 msgid ""
7327 " get-network\n"
7328 "\n"
7329 msgstr ""
7330
7331 #. type: textblock
7332 #: ../fish/guestfish-actions.pod:1422 ../src/guestfs-actions.pod:2171
7333 msgid "This returns the enable network flag."
7334 msgstr ""
7335
7336 #. type: =head2
7337 #: ../fish/guestfish-actions.pod:1424
7338 msgid "get-path"
7339 msgstr ""
7340
7341 #. type: verbatim
7342 #: ../fish/guestfish-actions.pod:1426
7343 #, no-wrap
7344 msgid ""
7345 " get-path\n"
7346 "\n"
7347 msgstr ""
7348
7349 #. type: textblock
7350 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2182
7351 msgid "Return the current search path."
7352 msgstr ""
7353
7354 #. type: textblock
7355 #: ../fish/guestfish-actions.pod:1430 ../src/guestfs-actions.pod:2184
7356 msgid ""
7357 "This is always non-NULL.  If it wasn't set already, then this will return "
7358 "the default path."
7359 msgstr ""
7360
7361 #. type: =head2
7362 #: ../fish/guestfish-actions.pod:1433
7363 msgid "get-pgroup"
7364 msgstr ""
7365
7366 #. type: verbatim
7367 #: ../fish/guestfish-actions.pod:1435
7368 #, no-wrap
7369 msgid ""
7370 " get-pgroup\n"
7371 "\n"
7372 msgstr ""
7373
7374 #. type: textblock
7375 #: ../fish/guestfish-actions.pod:1437 ../src/guestfs-actions.pod:2197
7376 msgid "This returns the process group flag."
7377 msgstr ""
7378
7379 #. type: =head2
7380 #: ../fish/guestfish-actions.pod:1439
7381 msgid "get-pid"
7382 msgstr ""
7383
7384 #. type: =head2
7385 #: ../fish/guestfish-actions.pod:1441
7386 msgid "pid"
7387 msgstr ""
7388
7389 #. type: verbatim
7390 #: ../fish/guestfish-actions.pod:1443
7391 #, no-wrap
7392 msgid ""
7393 " get-pid\n"
7394 "\n"
7395 msgstr ""
7396
7397 #. type: textblock
7398 #: ../fish/guestfish-actions.pod:1445 ../src/guestfs-actions.pod:2208
7399 msgid ""
7400 "Return the process ID of the qemu subprocess.  If there is no qemu "
7401 "subprocess, then this will return an error."
7402 msgstr ""
7403
7404 #. type: textblock
7405 #: ../fish/guestfish-actions.pod:1448 ../src/guestfs-actions.pod:2211
7406 msgid "This is an internal call used for debugging and testing."
7407 msgstr ""
7408
7409 #. type: =head2
7410 #: ../fish/guestfish-actions.pod:1450
7411 msgid "get-qemu"
7412 msgstr ""
7413
7414 #. type: verbatim
7415 #: ../fish/guestfish-actions.pod:1452
7416 #, no-wrap
7417 msgid ""
7418 " get-qemu\n"
7419 "\n"
7420 msgstr ""
7421
7422 #. type: textblock
7423 #: ../fish/guestfish-actions.pod:1454 ../src/guestfs-actions.pod:2222
7424 msgid "Return the current qemu binary."
7425 msgstr ""
7426
7427 #. type: textblock
7428 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2224
7429 msgid ""
7430 "This is always non-NULL.  If it wasn't set already, then this will return "
7431 "the default qemu binary name."
7432 msgstr ""
7433
7434 #. type: =head2
7435 #: ../fish/guestfish-actions.pod:1459
7436 msgid "get-recovery-proc"
7437 msgstr ""
7438
7439 #. type: verbatim
7440 #: ../fish/guestfish-actions.pod:1461
7441 #, no-wrap
7442 msgid ""
7443 " get-recovery-proc\n"
7444 "\n"
7445 msgstr ""
7446
7447 #. type: textblock
7448 #: ../fish/guestfish-actions.pod:1463 ../src/guestfs-actions.pod:2237
7449 msgid "Return the recovery process enabled flag."
7450 msgstr ""
7451
7452 #. type: =head2
7453 #: ../fish/guestfish-actions.pod:1465
7454 msgid "get-selinux"
7455 msgstr ""
7456
7457 #. type: verbatim
7458 #: ../fish/guestfish-actions.pod:1467
7459 #, no-wrap
7460 msgid ""
7461 " get-selinux\n"
7462 "\n"
7463 msgstr ""
7464
7465 #. type: textblock
7466 #: ../fish/guestfish-actions.pod:1469
7467 msgid ""
7468 "This returns the current setting of the selinux flag which is passed to the "
7469 "appliance at boot time.  See L</set-selinux>."
7470 msgstr ""
7471
7472 #. type: =head2
7473 #: ../fish/guestfish-actions.pod:1475
7474 msgid "get-smp"
7475 msgstr ""
7476
7477 #. type: verbatim
7478 #: ../fish/guestfish-actions.pod:1477
7479 #, no-wrap
7480 msgid ""
7481 " get-smp\n"
7482 "\n"
7483 msgstr ""
7484
7485 #. type: textblock
7486 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2263
7487 msgid "This returns the number of virtual CPUs assigned to the appliance."
7488 msgstr ""
7489
7490 #. type: =head2
7491 #: ../fish/guestfish-actions.pod:1481
7492 msgid "get-state"
7493 msgstr ""
7494
7495 #. type: verbatim
7496 #: ../fish/guestfish-actions.pod:1483
7497 #, no-wrap
7498 msgid ""
7499 " get-state\n"
7500 "\n"
7501 msgstr ""
7502
7503 #. type: textblock
7504 #: ../fish/guestfish-actions.pod:1485 ../src/guestfs-actions.pod:2272
7505 msgid ""
7506 "This returns the current state as an opaque integer.  This is only useful "
7507 "for printing debug and internal error messages."
7508 msgstr ""
7509
7510 #. type: textblock
7511 #: ../fish/guestfish-actions.pod:1488 ../fish/guestfish-actions.pod:2434
7512 #: ../fish/guestfish-actions.pod:2452 ../fish/guestfish-actions.pod:2490
7513 #: ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:2275
7514 #: ../src/guestfs-actions.pod:3581 ../src/guestfs-actions.pod:3610
7515 #: ../src/guestfs-actions.pod:3671 ../src/guestfs-actions.pod:3698
7516 msgid "For more information on states, see L<guestfs(3)>."
7517 msgstr ""
7518
7519 #. type: =head2
7520 #: ../fish/guestfish-actions.pod:1490
7521 msgid "get-trace"
7522 msgstr ""
7523
7524 #. type: verbatim
7525 #: ../fish/guestfish-actions.pod:1492
7526 #, no-wrap
7527 msgid ""
7528 " get-trace\n"
7529 "\n"
7530 msgstr ""
7531
7532 #. type: textblock
7533 #: ../fish/guestfish-actions.pod:1494 ../src/guestfs-actions.pod:2286
7534 msgid "Return the command trace flag."
7535 msgstr ""
7536
7537 #. type: =head2
7538 #: ../fish/guestfish-actions.pod:1496
7539 msgid "get-umask"
7540 msgstr ""
7541
7542 #. type: verbatim
7543 #: ../fish/guestfish-actions.pod:1498
7544 #, no-wrap
7545 msgid ""
7546 " get-umask\n"
7547 "\n"
7548 msgstr ""
7549
7550 #. type: textblock
7551 #: ../fish/guestfish-actions.pod:1500
7552 msgid ""
7553 "Return the current umask.  By default the umask is C<022> unless it has been "
7554 "set by calling L</umask>."
7555 msgstr ""
7556
7557 #. type: =head2
7558 #: ../fish/guestfish-actions.pod:1503
7559 msgid "get-verbose"
7560 msgstr ""
7561
7562 #. type: verbatim
7563 #: ../fish/guestfish-actions.pod:1505
7564 #, no-wrap
7565 msgid ""
7566 " get-verbose\n"
7567 "\n"
7568 msgstr ""
7569
7570 #. type: textblock
7571 #: ../fish/guestfish-actions.pod:1507 ../src/guestfs-actions.pod:2309
7572 msgid "This returns the verbose messages flag."
7573 msgstr ""
7574
7575 #. type: =head2
7576 #: ../fish/guestfish-actions.pod:1509
7577 msgid "getcon"
7578 msgstr ""
7579
7580 #. type: verbatim
7581 #: ../fish/guestfish-actions.pod:1511
7582 #, no-wrap
7583 msgid ""
7584 " getcon\n"
7585 "\n"
7586 msgstr ""
7587
7588 #. type: textblock
7589 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2320
7590 msgid "This gets the SELinux security context of the daemon."
7591 msgstr ""
7592
7593 #. type: textblock
7594 #: ../fish/guestfish-actions.pod:1515
7595 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
7596 msgstr ""
7597
7598 #. type: =head2
7599 #: ../fish/guestfish-actions.pod:1518
7600 msgid "getxattr"
7601 msgstr ""
7602
7603 #. type: verbatim
7604 #: ../fish/guestfish-actions.pod:1520
7605 #, no-wrap
7606 msgid ""
7607 " getxattr path name\n"
7608 "\n"
7609 msgstr ""
7610
7611 #. type: textblock
7612 #: ../fish/guestfish-actions.pod:1522
7613 msgid ""
7614 "Get a single extended attribute from file C<path> named C<name>.  This call "
7615 "follows symlinks.  If you want to lookup an extended attribute for the "
7616 "symlink itself, use L</lgetxattr>."
7617 msgstr ""
7618
7619 #. type: textblock
7620 #: ../fish/guestfish-actions.pod:1526 ../fish/guestfish-actions.pod:2579
7621 msgid ""
7622 "Normally it is better to get all extended attributes from a file in one go "
7623 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
7624 "buggy and do not provide a way to list out attributes.  For these "
7625 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
7626 "attributes you want in advance and call this function."
7627 msgstr ""
7628
7629 #. type: textblock
7630 #: ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:2586
7631 #: ../src/guestfs-actions.pod:2349 ../src/guestfs-actions.pod:3831
7632 msgid ""
7633 "Extended attribute values are blobs of binary data.  If there is no extended "
7634 "attribute named C<name>, this returns an error."
7635 msgstr ""
7636
7637 #. type: textblock
7638 #: ../fish/guestfish-actions.pod:1536
7639 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7640 msgstr ""
7641
7642 #. type: =head2
7643 #: ../fish/guestfish-actions.pod:1538
7644 msgid "getxattrs"
7645 msgstr ""
7646
7647 #. type: verbatim
7648 #: ../fish/guestfish-actions.pod:1540
7649 #, no-wrap
7650 msgid ""
7651 " getxattrs path\n"
7652 "\n"
7653 msgstr ""
7654
7655 #. type: textblock
7656 #: ../fish/guestfish-actions.pod:1542 ../src/guestfs-actions.pod:2366
7657 msgid ""
7658 "This call lists the extended attributes of the file or directory C<path>."
7659 msgstr ""
7660
7661 #. type: textblock
7662 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2369
7663 msgid ""
7664 "At the system call level, this is a combination of the L<listxattr(2)> and "
7665 "L<getxattr(2)> calls."
7666 msgstr ""
7667
7668 #. type: textblock
7669 #: ../fish/guestfish-actions.pod:1548
7670 msgid "See also: L</lgetxattrs>, L<attr(5)>."
7671 msgstr ""
7672
7673 #. type: =head2
7674 #: ../fish/guestfish-actions.pod:1550
7675 msgid "glob-expand"
7676 msgstr ""
7677
7678 #. type: verbatim
7679 #: ../fish/guestfish-actions.pod:1552
7680 #, no-wrap
7681 msgid ""
7682 " glob-expand pattern\n"
7683 "\n"
7684 msgstr ""
7685
7686 #. type: textblock
7687 #: ../fish/guestfish-actions.pod:1554 ../src/guestfs-actions.pod:2386
7688 msgid ""
7689 "This command searches for all the pathnames matching C<pattern> according to "
7690 "the wildcard expansion rules used by the shell."
7691 msgstr ""
7692
7693 #. type: textblock
7694 #: ../fish/guestfish-actions.pod:1558 ../src/guestfs-actions.pod:2390
7695 msgid ""
7696 "If no paths match, then this returns an empty list (note: not an error)."
7697 msgstr ""
7698
7699 #. type: textblock
7700 #: ../fish/guestfish-actions.pod:1561 ../src/guestfs-actions.pod:2393
7701 msgid ""
7702 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
7703 "GLOB_BRACE>.  See that manual page for more details."
7704 msgstr ""
7705
7706 #. type: =head2
7707 #: ../fish/guestfish-actions.pod:1565
7708 msgid "grep"
7709 msgstr ""
7710
7711 #. type: verbatim
7712 #: ../fish/guestfish-actions.pod:1567
7713 #, no-wrap
7714 msgid ""
7715 " grep regex path\n"
7716 "\n"
7717 msgstr ""
7718
7719 #. type: textblock
7720 #: ../fish/guestfish-actions.pod:1569 ../src/guestfs-actions.pod:2410
7721 msgid "This calls the external C<grep> program and returns the matching lines."
7722 msgstr ""
7723
7724 #. type: =head2
7725 #: ../fish/guestfish-actions.pod:1575
7726 msgid "grepi"
7727 msgstr ""
7728
7729 #. type: verbatim
7730 #: ../fish/guestfish-actions.pod:1577
7731 #, no-wrap
7732 msgid ""
7733 " grepi regex path\n"
7734 "\n"
7735 msgstr ""
7736
7737 #. type: textblock
7738 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2429
7739 msgid ""
7740 "This calls the external C<grep -i> program and returns the matching lines."
7741 msgstr ""
7742
7743 #. type: =head2
7744 #: ../fish/guestfish-actions.pod:1585
7745 msgid "grub-install"
7746 msgstr ""
7747
7748 #. type: verbatim
7749 #: ../fish/guestfish-actions.pod:1587
7750 #, no-wrap
7751 msgid ""
7752 " grub-install root device\n"
7753 "\n"
7754 msgstr ""
7755
7756 #. type: textblock
7757 #: ../fish/guestfish-actions.pod:1589 ../src/guestfs-actions.pod:2448
7758 msgid ""
7759 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
7760 "with the root directory being C<root>."
7761 msgstr ""
7762
7763 #. type: textblock
7764 #: ../fish/guestfish-actions.pod:1598 ../src/guestfs-actions.pod:2457
7765 msgid ""
7766 "There is currently no way in the API to install grub2, which is used by most "
7767 "modern Linux guests.  It is possible to run the grub2 command from the "
7768 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
7769 msgstr ""
7770
7771 #. type: textblock
7772 #: ../fish/guestfish-actions.pod:1605 ../src/guestfs-actions.pod:2464
7773 msgid ""
7774 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
7775 "compatible with itself, so this only works in rather narrow circumstances.  "
7776 "Careful testing with each guest version is advisable."
7777 msgstr ""
7778
7779 #. type: textblock
7780 #: ../fish/guestfish-actions.pod:1612 ../src/guestfs-actions.pod:2471
7781 msgid ""
7782 "If grub-install reports the error \"No suitable drive was found in the "
7783 "generated device map.\" it may be that you need to create a C</boot/grub/"
7784 "device.map> file first that contains the mapping between grub device names "
7785 "and Linux device names.  It is usually sufficient to create a file "
7786 "containing:"
7787 msgstr ""
7788
7789 #. type: verbatim
7790 #: ../fish/guestfish-actions.pod:1619 ../src/guestfs-actions.pod:2478
7791 #, no-wrap
7792 msgid ""
7793 " (hd0) /dev/vda\n"
7794 "\n"
7795 msgstr ""
7796
7797 #. type: textblock
7798 #: ../fish/guestfish-actions.pod:1621 ../src/guestfs-actions.pod:2480
7799 msgid "replacing C</dev/vda> with the name of the installation device."
7800 msgstr ""
7801
7802 #. type: =head2
7803 #: ../fish/guestfish-actions.pod:1625
7804 msgid "head"
7805 msgstr ""
7806
7807 #. type: verbatim
7808 #: ../fish/guestfish-actions.pod:1627
7809 #, no-wrap
7810 msgid ""
7811 " head path\n"
7812 "\n"
7813 msgstr ""
7814
7815 #. type: textblock
7816 #: ../fish/guestfish-actions.pod:1629 ../src/guestfs-actions.pod:2494
7817 msgid ""
7818 "This command returns up to the first 10 lines of a file as a list of strings."
7819 msgstr ""
7820
7821 #. type: =head2
7822 #: ../fish/guestfish-actions.pod:1635
7823 msgid "head-n"
7824 msgstr ""
7825
7826 #. type: verbatim
7827 #: ../fish/guestfish-actions.pod:1637
7828 #, no-wrap
7829 msgid ""
7830 " head-n nrlines path\n"
7831 "\n"
7832 msgstr ""
7833
7834 #. type: textblock
7835 #: ../fish/guestfish-actions.pod:1639 ../src/guestfs-actions.pod:2513
7836 msgid ""
7837 "If the parameter C<nrlines> is a positive number, this returns the first "
7838 "C<nrlines> lines of the file C<path>."
7839 msgstr ""
7840
7841 #. type: textblock
7842 #: ../fish/guestfish-actions.pod:1642 ../src/guestfs-actions.pod:2516
7843 msgid ""
7844 "If the parameter C<nrlines> is a negative number, this returns lines from "
7845 "the file C<path>, excluding the last C<nrlines> lines."
7846 msgstr ""
7847
7848 #. type: textblock
7849 #: ../fish/guestfish-actions.pod:1645 ../fish/guestfish-actions.pod:4717
7850 #: ../src/guestfs-actions.pod:2519 ../src/guestfs-actions.pod:7142
7851 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7852 msgstr ""
7853
7854 #. type: =head2
7855 #: ../fish/guestfish-actions.pod:1650
7856 msgid "hexdump"
7857 msgstr ""
7858
7859 #. type: verbatim
7860 #: ../fish/guestfish-actions.pod:1652
7861 #, no-wrap
7862 msgid ""
7863 " hexdump path\n"
7864 "\n"
7865 msgstr ""
7866
7867 #. type: textblock
7868 #: ../fish/guestfish-actions.pod:1654 ../src/guestfs-actions.pod:2536
7869 msgid ""
7870 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
7871 "readable, canonical hex dump of the file."
7872 msgstr ""
7873
7874 #. type: =head2
7875 #: ../fish/guestfish-actions.pod:1660
7876 msgid "initrd-cat"
7877 msgstr ""
7878
7879 #. type: verbatim
7880 #: ../fish/guestfish-actions.pod:1662
7881 #, no-wrap
7882 msgid ""
7883 " initrd-cat initrdpath filename\n"
7884 "\n"
7885 msgstr ""
7886
7887 #. type: textblock
7888 #: ../fish/guestfish-actions.pod:1664 ../src/guestfs-actions.pod:2555
7889 msgid ""
7890 "This command unpacks the file C<filename> from the initrd file called "
7891 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7892 "character."
7893 msgstr ""
7894
7895 #. type: textblock
7896 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2559
7897 msgid ""
7898 "For example, in guestfish you could use the following command to examine the "
7899 "boot script (usually called C</init>)  contained in a Linux initrd or "
7900 "initramfs image:"
7901 msgstr ""
7902
7903 #. type: verbatim
7904 #: ../fish/guestfish-actions.pod:1672 ../src/guestfs-actions.pod:2563
7905 #, no-wrap
7906 msgid ""
7907 " initrd-cat /boot/initrd-<version>.img init\n"
7908 "\n"
7909 msgstr ""
7910
7911 #. type: textblock
7912 #: ../fish/guestfish-actions.pod:1674
7913 msgid "See also L</initrd-list>."
7914 msgstr ""
7915
7916 #. type: =head2
7917 #: ../fish/guestfish-actions.pod:1679
7918 msgid "initrd-list"
7919 msgstr ""
7920
7921 #. type: verbatim
7922 #: ../fish/guestfish-actions.pod:1681
7923 #, no-wrap
7924 msgid ""
7925 " initrd-list path\n"
7926 "\n"
7927 msgstr ""
7928
7929 #. type: textblock
7930 #: ../fish/guestfish-actions.pod:1683 ../src/guestfs-actions.pod:2582
7931 msgid "This command lists out files contained in an initrd."
7932 msgstr ""
7933
7934 #. type: textblock
7935 #: ../fish/guestfish-actions.pod:1685 ../src/guestfs-actions.pod:2584
7936 msgid ""
7937 "The files are listed without any initial C</> character.  The files are "
7938 "listed in the order they appear (not necessarily alphabetical).  Directory "
7939 "names are listed as separate items."
7940 msgstr ""
7941
7942 #. type: textblock
7943 #: ../fish/guestfish-actions.pod:1689 ../src/guestfs-actions.pod:2588
7944 msgid ""
7945 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
7946 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
7947 "files)."
7948 msgstr ""
7949
7950 #. type: =head2
7951 #: ../fish/guestfish-actions.pod:1693
7952 msgid "inotify-add-watch"
7953 msgstr ""
7954
7955 #. type: verbatim
7956 #: ../fish/guestfish-actions.pod:1695
7957 #, no-wrap
7958 msgid ""
7959 " inotify-add-watch path mask\n"
7960 "\n"
7961 msgstr ""
7962
7963 #. type: textblock
7964 #: ../fish/guestfish-actions.pod:1697 ../src/guestfs-actions.pod:2605
7965 msgid "Watch C<path> for the events listed in C<mask>."
7966 msgstr ""
7967
7968 #. type: textblock
7969 #: ../fish/guestfish-actions.pod:1699 ../src/guestfs-actions.pod:2607
7970 msgid ""
7971 "Note that if C<path> is a directory then events within that directory are "
7972 "watched, but this does I<not> happen recursively (in subdirectories)."
7973 msgstr ""
7974
7975 #. type: textblock
7976 #: ../fish/guestfish-actions.pod:1703 ../src/guestfs-actions.pod:2611
7977 msgid ""
7978 "Note for non-C or non-Linux callers: the inotify events are defined by the "
7979 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
7980 msgstr ""
7981
7982 #. type: =head2
7983 #: ../fish/guestfish-actions.pod:1707
7984 msgid "inotify-close"
7985 msgstr ""
7986
7987 #. type: verbatim
7988 #: ../fish/guestfish-actions.pod:1709
7989 #, no-wrap
7990 msgid ""
7991 " inotify-close\n"
7992 "\n"
7993 msgstr ""
7994
7995 #. type: textblock
7996 #: ../fish/guestfish-actions.pod:1711 ../src/guestfs-actions.pod:2624
7997 msgid ""
7998 "This closes the inotify handle which was previously opened by inotify_init.  "
7999 "It removes all watches, throws away any pending events, and deallocates all "
8000 "resources."
8001 msgstr ""
8002
8003 #. type: =head2
8004 #: ../fish/guestfish-actions.pod:1715
8005 msgid "inotify-files"
8006 msgstr ""
8007
8008 #. type: verbatim
8009 #: ../fish/guestfish-actions.pod:1717
8010 #, no-wrap
8011 msgid ""
8012 " inotify-files\n"
8013 "\n"
8014 msgstr ""
8015
8016 #. type: textblock
8017 #: ../fish/guestfish-actions.pod:1719
8018 msgid ""
8019 "This function is a helpful wrapper around L</inotify-read> which just "
8020 "returns a list of pathnames of objects that were touched.  The returned "
8021 "pathnames are sorted and deduplicated."
8022 msgstr ""
8023
8024 #. type: =head2
8025 #: ../fish/guestfish-actions.pod:1723
8026 msgid "inotify-init"
8027 msgstr ""
8028
8029 #. type: verbatim
8030 #: ../fish/guestfish-actions.pod:1725
8031 #, no-wrap
8032 msgid ""
8033 " inotify-init maxevents\n"
8034 "\n"
8035 msgstr ""
8036
8037 #. type: textblock
8038 #: ../fish/guestfish-actions.pod:1727 ../src/guestfs-actions.pod:2653
8039 msgid ""
8040 "This command creates a new inotify handle.  The inotify subsystem can be "
8041 "used to notify events which happen to objects in the guest filesystem."
8042 msgstr ""
8043
8044 #. type: textblock
8045 #: ../fish/guestfish-actions.pod:1731
8046 msgid ""
8047 "C<maxevents> is the maximum number of events which will be queued up between "
8048 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
8049 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
8050 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
8051 "but records the fact that it threw them away by setting a flag "
8052 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
8053 msgstr ""
8054
8055 #. type: textblock
8056 #: ../fish/guestfish-actions.pod:1741
8057 msgid ""
8058 "Before any events are generated, you have to add some watches to the "
8059 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
8060 "L</inotify-watch-all>."
8061 msgstr ""
8062
8063 #. type: textblock
8064 #: ../fish/guestfish-actions.pod:1747
8065 msgid ""
8066 "Queued up events should be read periodically by calling L</inotify-read> (or "
8067 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
8068 "If you don't read the events out often enough then you risk the internal "
8069 "queue overflowing."
8070 msgstr ""
8071
8072 #. type: textblock
8073 #: ../fish/guestfish-actions.pod:1754
8074 msgid ""
8075 "The handle should be closed after use by calling L</inotify-close>.  This "
8076 "also removes any watches automatically."
8077 msgstr ""
8078
8079 #. type: textblock
8080 #: ../fish/guestfish-actions.pod:1758 ../src/guestfs-actions.pod:2684
8081 msgid ""
8082 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8083 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8084 "that there is one global inotify handle per libguestfs instance."
8085 msgstr ""
8086
8087 #. type: =head2
8088 #: ../fish/guestfish-actions.pod:1763
8089 msgid "inotify-read"
8090 msgstr ""
8091
8092 #. type: verbatim
8093 #: ../fish/guestfish-actions.pod:1765
8094 #, no-wrap
8095 msgid ""
8096 " inotify-read\n"
8097 "\n"
8098 msgstr ""
8099
8100 #. type: textblock
8101 #: ../fish/guestfish-actions.pod:1767 ../src/guestfs-actions.pod:2698
8102 msgid ""
8103 "Return the complete queue of events that have happened since the previous "
8104 "read call."
8105 msgstr ""
8106
8107 #. type: textblock
8108 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2701
8109 msgid "If no events have happened, this returns an empty list."
8110 msgstr ""
8111
8112 #. type: textblock
8113 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2703
8114 msgid ""
8115 "I<Note>: In order to make sure that all events have been read, you must call "
8116 "this function repeatedly until it returns an empty list.  The reason is that "
8117 "the call will read events up to the maximum appliance-to-host message size "
8118 "and leave remaining events in the queue."
8119 msgstr ""
8120
8121 #. type: =head2
8122 #: ../fish/guestfish-actions.pod:1778
8123 msgid "inotify-rm-watch"
8124 msgstr ""
8125
8126 #. type: verbatim
8127 #: ../fish/guestfish-actions.pod:1780
8128 #, no-wrap
8129 msgid ""
8130 " inotify-rm-watch wd\n"
8131 "\n"
8132 msgstr ""
8133
8134 #. type: textblock
8135 #: ../fish/guestfish-actions.pod:1782
8136 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
8137 msgstr ""
8138
8139 #. type: =head2
8140 #: ../fish/guestfish-actions.pod:1785
8141 msgid "inspect-get-arch"
8142 msgstr ""
8143
8144 #. type: verbatim
8145 #: ../fish/guestfish-actions.pod:1787
8146 #, no-wrap
8147 msgid ""
8148 " inspect-get-arch root\n"
8149 "\n"
8150 msgstr ""
8151
8152 #. type: textblock
8153 #: ../fish/guestfish-actions.pod:1789
8154 msgid ""
8155 "This returns the architecture of the inspected operating system.  The "
8156 "possible return values are listed under L</file-architecture>."
8157 msgstr ""
8158
8159 #. type: textblock
8160 #: ../fish/guestfish-actions.pod:1793 ../src/guestfs-actions.pod:2738
8161 msgid ""
8162 "If the architecture could not be determined, then the string C<unknown> is "
8163 "returned."
8164 msgstr ""
8165
8166 #. type: textblock
8167 #: ../fish/guestfish-actions.pod:1796 ../fish/guestfish-actions.pod:1883
8168 #: ../fish/guestfish-actions.pod:1962 ../fish/guestfish-actions.pod:1974
8169 #: ../fish/guestfish-actions.pod:2058 ../fish/guestfish-actions.pod:2119
8170 #: ../fish/guestfish-actions.pod:2140 ../fish/guestfish-actions.pod:2154
8171 #: ../fish/guestfish-actions.pod:2194 ../fish/guestfish-actions.pod:2226
8172 #: ../fish/guestfish-actions.pod:2239 ../fish/guestfish-actions.pod:2252
8173 #: ../fish/guestfish-actions.pod:2262 ../fish/guestfish-actions.pod:2272
8174 #: ../fish/guestfish-actions.pod:2284 ../fish/guestfish-actions.pod:2380
8175 #: ../fish/guestfish-actions.pod:2414 ../src/guestfs-actions.pod:2741
8176 #: ../src/guestfs-actions.pod:2835 ../src/guestfs-actions.pod:2939
8177 #: ../src/guestfs-actions.pod:2958 ../src/guestfs-actions.pod:3089
8178 #: ../src/guestfs-actions.pod:3172 ../src/guestfs-actions.pod:3200
8179 #: ../src/guestfs-actions.pod:3221 ../src/guestfs-actions.pod:3274
8180 #: ../src/guestfs-actions.pod:3314 ../src/guestfs-actions.pod:3334
8181 #: ../src/guestfs-actions.pod:3354 ../src/guestfs-actions.pod:3371
8182 #: ../src/guestfs-actions.pod:3387 ../src/guestfs-actions.pod:3405
8183 #: ../src/guestfs-actions.pod:3507 ../src/guestfs-actions.pod:3548
8184 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8185 msgstr ""
8186
8187 #. type: =head2
8188 #: ../fish/guestfish-actions.pod:1798
8189 msgid "inspect-get-distro"
8190 msgstr ""
8191
8192 #. type: verbatim
8193 #: ../fish/guestfish-actions.pod:1800
8194 #, no-wrap
8195 msgid ""
8196 " inspect-get-distro root\n"
8197 "\n"
8198 msgstr ""
8199
8200 #. type: textblock
8201 #: ../fish/guestfish-actions.pod:1802 ../src/guestfs-actions.pod:2754
8202 msgid ""
8203 "This returns the distro (distribution) of the inspected operating system."
8204 msgstr ""
8205
8206 #. type: textblock
8207 #: ../fish/guestfish-actions.pod:1805 ../src/guestfs-actions.pod:2757
8208 msgid "Currently defined distros are:"
8209 msgstr ""
8210
8211 #. type: =item
8212 #: ../fish/guestfish-actions.pod:1809 ../src/guestfs-actions.pod:2761
8213 msgid "\"archlinux\""
8214 msgstr ""
8215
8216 #. type: textblock
8217 #: ../fish/guestfish-actions.pod:1811 ../src/guestfs-actions.pod:2763
8218 msgid "Arch Linux."
8219 msgstr ""
8220
8221 #. type: =item
8222 #: ../fish/guestfish-actions.pod:1813 ../src/guestfs-actions.pod:2765
8223 msgid "\"centos\""
8224 msgstr ""
8225
8226 #. type: textblock
8227 #: ../fish/guestfish-actions.pod:1815 ../src/guestfs-actions.pod:2767
8228 msgid "CentOS."
8229 msgstr ""
8230
8231 #. type: =item
8232 #: ../fish/guestfish-actions.pod:1817 ../src/guestfs-actions.pod:2769
8233 msgid "\"debian\""
8234 msgstr ""
8235
8236 #. type: textblock
8237 #: ../fish/guestfish-actions.pod:1819 ../src/guestfs-actions.pod:2771
8238 msgid "Debian."
8239 msgstr ""
8240
8241 #. type: =item
8242 #: ../fish/guestfish-actions.pod:1821 ../src/guestfs-actions.pod:2773
8243 msgid "\"fedora\""
8244 msgstr ""
8245
8246 #. type: textblock
8247 #: ../fish/guestfish-actions.pod:1823 ../src/guestfs-actions.pod:2775
8248 msgid "Fedora."
8249 msgstr ""
8250
8251 #. type: =item
8252 #: ../fish/guestfish-actions.pod:1825 ../src/guestfs-actions.pod:2777
8253 msgid "\"gentoo\""
8254 msgstr ""
8255
8256 #. type: textblock
8257 #: ../fish/guestfish-actions.pod:1827 ../src/guestfs-actions.pod:2779
8258 msgid "Gentoo."
8259 msgstr ""
8260
8261 #. type: =item
8262 #: ../fish/guestfish-actions.pod:1829 ../src/guestfs-actions.pod:2781
8263 msgid "\"linuxmint\""
8264 msgstr ""
8265
8266 #. type: textblock
8267 #: ../fish/guestfish-actions.pod:1831 ../src/guestfs-actions.pod:2783
8268 msgid "Linux Mint."
8269 msgstr ""
8270
8271 #. type: =item
8272 #: ../fish/guestfish-actions.pod:1833 ../src/guestfs-actions.pod:2785
8273 msgid "\"mandriva\""
8274 msgstr ""
8275
8276 #. type: textblock
8277 #: ../fish/guestfish-actions.pod:1835 ../src/guestfs-actions.pod:2787
8278 msgid "Mandriva."
8279 msgstr ""
8280
8281 #. type: =item
8282 #: ../fish/guestfish-actions.pod:1837 ../src/guestfs-actions.pod:2789
8283 msgid "\"meego\""
8284 msgstr ""
8285
8286 #. type: textblock
8287 #: ../fish/guestfish-actions.pod:1839 ../src/guestfs-actions.pod:2791
8288 msgid "MeeGo."
8289 msgstr ""
8290
8291 #. type: =item
8292 #: ../fish/guestfish-actions.pod:1841 ../src/guestfs-actions.pod:2793
8293 msgid "\"pardus\""
8294 msgstr ""
8295
8296 #. type: textblock
8297 #: ../fish/guestfish-actions.pod:1843 ../src/guestfs-actions.pod:2795
8298 msgid "Pardus."
8299 msgstr ""
8300
8301 #. type: =item
8302 #: ../fish/guestfish-actions.pod:1845 ../src/guestfs-actions.pod:2797
8303 msgid "\"redhat-based\""
8304 msgstr ""
8305
8306 #. type: textblock
8307 #: ../fish/guestfish-actions.pod:1847 ../src/guestfs-actions.pod:2799
8308 msgid "Some Red Hat-derived distro."
8309 msgstr ""
8310
8311 #. type: =item
8312 #: ../fish/guestfish-actions.pod:1849 ../src/guestfs-actions.pod:2801
8313 msgid "\"rhel\""
8314 msgstr ""
8315
8316 #. type: textblock
8317 #: ../fish/guestfish-actions.pod:1851 ../src/guestfs-actions.pod:2803
8318 msgid "Red Hat Enterprise Linux."
8319 msgstr ""
8320
8321 #. type: =item
8322 #: ../fish/guestfish-actions.pod:1853 ../src/guestfs-actions.pod:2805
8323 msgid "\"scientificlinux\""
8324 msgstr ""
8325
8326 #. type: textblock
8327 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2807
8328 msgid "Scientific Linux."
8329 msgstr ""
8330
8331 #. type: =item
8332 #: ../fish/guestfish-actions.pod:1857 ../src/guestfs-actions.pod:2809
8333 msgid "\"slackware\""
8334 msgstr ""
8335
8336 #. type: textblock
8337 #: ../fish/guestfish-actions.pod:1859 ../src/guestfs-actions.pod:2811
8338 msgid "Slackware."
8339 msgstr ""
8340
8341 #. type: =item
8342 #: ../fish/guestfish-actions.pod:1861 ../src/guestfs-actions.pod:2813
8343 msgid "\"ttylinux\""
8344 msgstr ""
8345
8346 #. type: textblock
8347 #: ../fish/guestfish-actions.pod:1863 ../src/guestfs-actions.pod:2815
8348 msgid "ttylinux."
8349 msgstr ""
8350
8351 #. type: =item
8352 #: ../fish/guestfish-actions.pod:1865 ../src/guestfs-actions.pod:2817
8353 msgid "\"ubuntu\""
8354 msgstr ""
8355
8356 #. type: textblock
8357 #: ../fish/guestfish-actions.pod:1867 ../src/guestfs-actions.pod:2819
8358 msgid "Ubuntu."
8359 msgstr ""
8360
8361 #. type: =item
8362 #: ../fish/guestfish-actions.pod:1869 ../fish/guestfish-actions.pod:1953
8363 #: ../fish/guestfish-actions.pod:2217 ../src/guestfs-actions.pod:2821
8364 #: ../src/guestfs-actions.pod:2930 ../src/guestfs-actions.pod:3305
8365 msgid "\"unknown\""
8366 msgstr ""
8367
8368 #. type: textblock
8369 #: ../fish/guestfish-actions.pod:1871 ../src/guestfs-actions.pod:2823
8370 msgid "The distro could not be determined."
8371 msgstr ""
8372
8373 #. type: =item
8374 #: ../fish/guestfish-actions.pod:1873 ../fish/guestfish-actions.pod:2209
8375 #: ../src/guestfs-actions.pod:2825 ../src/guestfs-actions.pod:3297
8376 msgid "\"windows\""
8377 msgstr ""
8378
8379 #. type: textblock
8380 #: ../fish/guestfish-actions.pod:1875 ../src/guestfs-actions.pod:2827
8381 msgid ""
8382 "Windows does not have distributions.  This string is returned if the OS type "
8383 "is Windows."
8384 msgstr ""
8385
8386 #. type: textblock
8387 #: ../fish/guestfish-actions.pod:1880 ../fish/guestfish-actions.pod:1959
8388 #: ../fish/guestfish-actions.pod:2223 ../src/guestfs-actions.pod:2832
8389 #: ../src/guestfs-actions.pod:2936 ../src/guestfs-actions.pod:3311
8390 msgid ""
8391 "Future versions of libguestfs may return other strings here.  The caller "
8392 "should be prepared to handle any string."
8393 msgstr ""
8394
8395 #. type: =head2
8396 #: ../fish/guestfish-actions.pod:1885
8397 msgid "inspect-get-drive-mappings"
8398 msgstr ""
8399
8400 #. type: verbatim
8401 #: ../fish/guestfish-actions.pod:1887
8402 #, no-wrap
8403 msgid ""
8404 " inspect-get-drive-mappings root\n"
8405 "\n"
8406 msgstr ""
8407
8408 #. type: textblock
8409 #: ../fish/guestfish-actions.pod:1889 ../src/guestfs-actions.pod:2848
8410 msgid ""
8411 "This call is useful for Windows which uses a primitive system of assigning "
8412 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
8413 "Windows Registry to find out how disks/partitions are mapped to drive "
8414 "letters, and returns a hash table as in the example below:"
8415 msgstr ""
8416
8417 #. type: verbatim
8418 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:2854
8419 #, no-wrap
8420 msgid ""
8421 " C      =>     /dev/vda2\n"
8422 " E      =>     /dev/vdb1\n"
8423 " F      =>     /dev/vdc1\n"
8424 "\n"
8425 msgstr ""
8426
8427 #. type: textblock
8428 #: ../fish/guestfish-actions.pod:1899 ../src/guestfs-actions.pod:2858
8429 msgid ""
8430 "Note that keys are drive letters.  For Windows, the key is case insensitive "
8431 "and just contains the drive letter, without the customary colon separator "
8432 "character."
8433 msgstr ""
8434
8435 #. type: textblock
8436 #: ../fish/guestfish-actions.pod:1903 ../src/guestfs-actions.pod:2862
8437 msgid ""
8438 "In future we may support other operating systems that also used drive "
8439 "letters, but the keys for those might not be case insensitive and might be "
8440 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
8441 "C<h1> etc."
8442 msgstr ""
8443
8444 #. type: textblock
8445 #: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:2867
8446 msgid ""
8447 "For Windows guests, currently only hard drive mappings are returned.  "
8448 "Removable disks (eg. DVD-ROMs) are ignored."
8449 msgstr ""
8450
8451 #. type: textblock
8452 #: ../fish/guestfish-actions.pod:1911 ../src/guestfs-actions.pod:2870
8453 msgid ""
8454 "For guests that do not use drive mappings, or if the drive mappings could "
8455 "not be determined, this returns an empty hash table."
8456 msgstr ""
8457
8458 #. type: textblock
8459 #: ../fish/guestfish-actions.pod:1914
8460 msgid ""
8461 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8462 "get-mountpoints>, L</inspect-get-filesystems>."
8463 msgstr ""
8464
8465 #. type: =head2
8466 #: ../fish/guestfish-actions.pod:1918
8467 msgid "inspect-get-filesystems"
8468 msgstr ""
8469
8470 #. type: verbatim
8471 #: ../fish/guestfish-actions.pod:1920
8472 #, no-wrap
8473 msgid ""
8474 " inspect-get-filesystems root\n"
8475 "\n"
8476 msgstr ""
8477
8478 #. type: textblock
8479 #: ../fish/guestfish-actions.pod:1922 ../src/guestfs-actions.pod:2891
8480 msgid ""
8481 "This returns a list of all the filesystems that we think are associated with "
8482 "this operating system.  This includes the root filesystem, other ordinary "
8483 "filesystems, and non-mounted devices like swap partitions."
8484 msgstr ""
8485
8486 #. type: textblock
8487 #: ../fish/guestfish-actions.pod:1927 ../src/guestfs-actions.pod:2896
8488 msgid ""
8489 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8490 "to be shared between operating systems."
8491 msgstr ""
8492
8493 #. type: textblock
8494 #: ../fish/guestfish-actions.pod:1930
8495 msgid ""
8496 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8497 "get-mountpoints>."
8498 msgstr ""
8499
8500 #. type: =head2
8501 #: ../fish/guestfish-actions.pod:1933
8502 msgid "inspect-get-format"
8503 msgstr ""
8504
8505 #. type: verbatim
8506 #: ../fish/guestfish-actions.pod:1935
8507 #, no-wrap
8508 msgid ""
8509 " inspect-get-format root\n"
8510 "\n"
8511 msgstr ""
8512
8513 #. type: textblock
8514 #: ../fish/guestfish-actions.pod:1937 ../src/guestfs-actions.pod:2914
8515 msgid ""
8516 "This returns the format of the inspected operating system.  You can use it "
8517 "to detect install images, live CDs and similar."
8518 msgstr ""
8519
8520 #. type: textblock
8521 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2917
8522 msgid "Currently defined formats are:"
8523 msgstr ""
8524
8525 #. type: =item
8526 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:2921
8527 msgid "\"installed\""
8528 msgstr ""
8529
8530 #. type: textblock
8531 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:2923
8532 msgid "This is an installed operating system."
8533 msgstr ""
8534
8535 #. type: =item
8536 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:2925
8537 msgid "\"installer\""
8538 msgstr ""
8539
8540 #. type: textblock
8541 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:2927
8542 msgid ""
8543 "The disk image being inspected is not an installed operating system, but a "
8544 "I<bootable> install disk, live CD, or similar."
8545 msgstr ""
8546
8547 #. type: textblock
8548 #: ../fish/guestfish-actions.pod:1955 ../src/guestfs-actions.pod:2932
8549 msgid "The format of this disk image is not known."
8550 msgstr ""
8551
8552 #. type: =head2
8553 #: ../fish/guestfish-actions.pod:1964
8554 msgid "inspect-get-hostname"
8555 msgstr ""
8556
8557 #. type: verbatim
8558 #: ../fish/guestfish-actions.pod:1966
8559 #, no-wrap
8560 msgid ""
8561 " inspect-get-hostname root\n"
8562 "\n"
8563 msgstr ""
8564
8565 #. type: textblock
8566 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2952
8567 msgid ""
8568 "This function returns the hostname of the operating system as found by "
8569 "inspection of the guest's configuration files."
8570 msgstr ""
8571
8572 #. type: textblock
8573 #: ../fish/guestfish-actions.pod:1971 ../src/guestfs-actions.pod:2955
8574 msgid ""
8575 "If the hostname could not be determined, then the string C<unknown> is "
8576 "returned."
8577 msgstr ""
8578
8579 #. type: =head2
8580 #: ../fish/guestfish-actions.pod:1976
8581 msgid "inspect-get-icon"
8582 msgstr ""
8583
8584 #. type: verbatim
8585 #: ../fish/guestfish-actions.pod:1978
8586 #, no-wrap
8587 msgid ""
8588 " inspect-get-icon root [favicon:..] [highquality:..]\n"
8589 "\n"
8590 msgstr ""
8591
8592 #. type: textblock
8593 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:2981
8594 msgid ""
8595 "This function returns an icon corresponding to the inspected operating "
8596 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
8597 "to PNG if necessary)."
8598 msgstr ""
8599
8600 #. type: textblock
8601 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:2985
8602 msgid ""
8603 "If it was not possible to get an icon this function returns a zero-length "
8604 "(non-NULL) buffer.  I<Callers must check for this case>."
8605 msgstr ""
8606
8607 #. type: textblock
8608 #: ../fish/guestfish-actions.pod:1987 ../src/guestfs-actions.pod:2988
8609 msgid ""
8610 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
8611 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
8612 "this file will be returned.  You can disable favicons by passing the "
8613 "optional C<favicon> boolean as false (default is true)."
8614 msgstr ""
8615
8616 #. type: textblock
8617 #: ../fish/guestfish-actions.pod:1993 ../src/guestfs-actions.pod:2994
8618 msgid ""
8619 "If finding the favicon fails, then we look in other places in the guest for "
8620 "a suitable icon."
8621 msgstr ""
8622
8623 #. type: textblock
8624 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:2997
8625 msgid ""
8626 "If the optional C<highquality> boolean is true then only high quality icons "
8627 "are returned, which means only icons of high resolution with an alpha "
8628 "channel.  The default (false) is to return any icon we can, even if it is of "
8629 "substandard quality."
8630 msgstr ""
8631
8632 #. type: textblock
8633 #: ../fish/guestfish-actions.pod:2007 ../src/guestfs-actions.pod:3008
8634 msgid ""
8635 "Unlike most other inspection API calls, the guest's disks must be mounted up "
8636 "before you call this, since it needs to read information from the guest "
8637 "filesystem during the call."
8638 msgstr ""
8639
8640 #. type: textblock
8641 #: ../fish/guestfish-actions.pod:2013 ../src/guestfs-actions.pod:3014
8642 msgid ""
8643 "B<Security:> The icon data comes from the untrusted guest, and should be "
8644 "treated with caution.  PNG files have been known to contain exploits.  "
8645 "Ensure that libpng (or other relevant libraries) are fully up to date before "
8646 "trying to process or display the icon."
8647 msgstr ""
8648
8649 #. type: textblock
8650 #: ../fish/guestfish-actions.pod:2021 ../src/guestfs-actions.pod:3022
8651 msgid ""
8652 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
8653 "tries to return the largest, highest quality icon available.  The "
8654 "application must scale the icon to the required size."
8655 msgstr ""
8656
8657 #. type: textblock
8658 #: ../fish/guestfish-actions.pod:2028 ../src/guestfs-actions.pod:3029
8659 msgid ""
8660 "Extracting icons from Windows guests requires the external C<wrestool> "
8661 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
8662 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
8663 "installed separately."
8664 msgstr ""
8665
8666 #. type: textblock
8667 #: ../fish/guestfish-actions.pod:2035 ../src/guestfs-actions.pod:3036
8668 msgid ""
8669 "Operating system icons are usually trademarks.  Seek legal advice before "
8670 "using trademarks in applications."
8671 msgstr ""
8672
8673 #. type: =head2
8674 #: ../fish/guestfish-actions.pod:2042
8675 msgid "inspect-get-major-version"
8676 msgstr ""
8677
8678 #. type: verbatim
8679 #: ../fish/guestfish-actions.pod:2044
8680 #, no-wrap
8681 msgid ""
8682 " inspect-get-major-version root\n"
8683 "\n"
8684 msgstr ""
8685
8686 #. type: textblock
8687 #: ../fish/guestfish-actions.pod:2046 ../src/guestfs-actions.pod:3077
8688 msgid ""
8689 "This returns the major version number of the inspected operating system."
8690 msgstr ""
8691
8692 #. type: textblock
8693 #: ../fish/guestfish-actions.pod:2049 ../src/guestfs-actions.pod:3080
8694 msgid ""
8695 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8696 "popular public names used by the operating system.  Notably the operating "
8697 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8698 "1).  You can find out the real versions corresponding to releases of Windows "
8699 "by consulting Wikipedia or MSDN."
8700 msgstr ""
8701
8702 #. type: textblock
8703 #: ../fish/guestfish-actions.pod:2056 ../fish/guestfish-actions.pod:2067
8704 #: ../src/guestfs-actions.pod:3087 ../src/guestfs-actions.pod:3104
8705 msgid "If the version could not be determined, then C<0> is returned."
8706 msgstr ""
8707
8708 #. type: =head2
8709 #: ../fish/guestfish-actions.pod:2060
8710 msgid "inspect-get-minor-version"
8711 msgstr ""
8712
8713 #. type: verbatim
8714 #: ../fish/guestfish-actions.pod:2062
8715 #, no-wrap
8716 msgid ""
8717 " inspect-get-minor-version root\n"
8718 "\n"
8719 msgstr ""
8720
8721 #. type: textblock
8722 #: ../fish/guestfish-actions.pod:2064 ../src/guestfs-actions.pod:3101
8723 msgid ""
8724 "This returns the minor version number of the inspected operating system."
8725 msgstr ""
8726
8727 #. type: textblock
8728 #: ../fish/guestfish-actions.pod:2069
8729 msgid ""
8730 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8731 "get-major-version>."
8732 msgstr ""
8733
8734 #. type: =head2
8735 #: ../fish/guestfish-actions.pod:2072
8736 msgid "inspect-get-mountpoints"
8737 msgstr ""
8738
8739 #. type: verbatim
8740 #: ../fish/guestfish-actions.pod:2074
8741 #, no-wrap
8742 msgid ""
8743 " inspect-get-mountpoints root\n"
8744 "\n"
8745 msgstr ""
8746
8747 #. type: textblock
8748 #: ../fish/guestfish-actions.pod:2076 ../src/guestfs-actions.pod:3119
8749 msgid ""
8750 "This returns a hash of where we think the filesystems associated with this "
8751 "operating system should be mounted.  Callers should note that this is at "
8752 "best an educated guess made by reading configuration files such as C</etc/"
8753 "fstab>.  I<In particular note> that this may return filesystems which are "
8754 "non-existent or not mountable and callers should be prepared to handle or "
8755 "ignore failures if they try to mount them."
8756 msgstr ""
8757
8758 #. type: textblock
8759 #: ../fish/guestfish-actions.pod:2085 ../src/guestfs-actions.pod:3128
8760 msgid ""
8761 "Each element in the returned hashtable has a key which is the path of the "
8762 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8763 "mounted there (eg. C</dev/sda1>)."
8764 msgstr ""
8765
8766 #. type: textblock
8767 #: ../fish/guestfish-actions.pod:2090 ../src/guestfs-actions.pod:3133
8768 msgid ""
8769 "Non-mounted devices such as swap devices are I<not> returned in this list."
8770 msgstr ""
8771
8772 #. type: textblock
8773 #: ../fish/guestfish-actions.pod:2093
8774 msgid ""
8775 "For operating systems like Windows which still use drive letters, this call "
8776 "will only return an entry for the first drive \"mounted on\" C</>.  For "
8777 "information about the mapping of drive letters to partitions, see L</inspect-"
8778 "get-drive-mappings>."
8779 msgstr ""
8780
8781 #. type: textblock
8782 #: ../fish/guestfish-actions.pod:2099
8783 msgid ""
8784 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8785 "get-filesystems>."
8786 msgstr ""
8787
8788 #. type: =head2
8789 #: ../fish/guestfish-actions.pod:2102
8790 msgid "inspect-get-package-format"
8791 msgstr ""
8792
8793 #. type: verbatim
8794 #: ../fish/guestfish-actions.pod:2104
8795 #, no-wrap
8796 msgid ""
8797 " inspect-get-package-format root\n"
8798 "\n"
8799 msgstr ""
8800
8801 #. type: textblock
8802 #: ../fish/guestfish-actions.pod:2106
8803 msgid ""
8804 "This function and L</inspect-get-package-management> return the package "
8805 "format and package management tool used by the inspected operating system.  "
8806 "For example for Fedora these functions would return C<rpm> (package format) "
8807 "and C<yum> (package management)."
8808 msgstr ""
8809
8810 #. type: textblock
8811 #: ../fish/guestfish-actions.pod:2112 ../src/guestfs-actions.pod:3165
8812 msgid ""
8813 "This returns the string C<unknown> if we could not determine the package "
8814 "format I<or> if the operating system does not have a real packaging system "
8815 "(eg. Windows)."
8816 msgstr ""
8817
8818 #. type: textblock
8819 #: ../fish/guestfish-actions.pod:2116 ../src/guestfs-actions.pod:3169
8820 msgid ""
8821 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
8822 "Future versions of libguestfs may return other strings."
8823 msgstr ""
8824
8825 #. type: =head2
8826 #: ../fish/guestfish-actions.pod:2121
8827 msgid "inspect-get-package-management"
8828 msgstr ""
8829
8830 #. type: verbatim
8831 #: ../fish/guestfish-actions.pod:2123
8832 #, no-wrap
8833 msgid ""
8834 " inspect-get-package-management root\n"
8835 "\n"
8836 msgstr ""
8837
8838 #. type: textblock
8839 #: ../fish/guestfish-actions.pod:2125
8840 msgid ""
8841 "L</inspect-get-package-format> and this function return the package format "
8842 "and package management tool used by the inspected operating system.  For "
8843 "example for Fedora these functions would return C<rpm> (package format) and "
8844 "C<yum> (package management)."
8845 msgstr ""
8846
8847 #. type: textblock
8848 #: ../fish/guestfish-actions.pod:2131 ../src/guestfs-actions.pod:3191
8849 msgid ""
8850 "This returns the string C<unknown> if we could not determine the package "
8851 "management tool I<or> if the operating system does not have a real packaging "
8852 "system (eg. Windows)."
8853 msgstr ""
8854
8855 #. type: textblock
8856 #: ../fish/guestfish-actions.pod:2135 ../src/guestfs-actions.pod:3195
8857 msgid ""
8858 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
8859 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
8860 "libguestfs may return other strings."
8861 msgstr ""
8862
8863 #. type: =head2
8864 #: ../fish/guestfish-actions.pod:2142
8865 msgid "inspect-get-product-name"
8866 msgstr ""
8867
8868 #. type: verbatim
8869 #: ../fish/guestfish-actions.pod:2144
8870 #, no-wrap
8871 msgid ""
8872 " inspect-get-product-name root\n"
8873 "\n"
8874 msgstr ""
8875
8876 #. type: textblock
8877 #: ../fish/guestfish-actions.pod:2146 ../src/guestfs-actions.pod:3213
8878 msgid ""
8879 "This returns the product name of the inspected operating system.  The "
8880 "product name is generally some freeform string which can be displayed to the "
8881 "user, but should not be parsed by programs."
8882 msgstr ""
8883
8884 #. type: textblock
8885 #: ../fish/guestfish-actions.pod:2151 ../src/guestfs-actions.pod:3218
8886 msgid ""
8887 "If the product name could not be determined, then the string C<unknown> is "
8888 "returned."
8889 msgstr ""
8890
8891 #. type: =head2
8892 #: ../fish/guestfish-actions.pod:2156
8893 msgid "inspect-get-product-variant"
8894 msgstr ""
8895
8896 #. type: verbatim
8897 #: ../fish/guestfish-actions.pod:2158
8898 #, no-wrap
8899 msgid ""
8900 " inspect-get-product-variant root\n"
8901 "\n"
8902 msgstr ""
8903
8904 #. type: textblock
8905 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3234
8906 msgid "This returns the product variant of the inspected operating system."
8907 msgstr ""
8908
8909 #. type: textblock
8910 #: ../fish/guestfish-actions.pod:2163 ../src/guestfs-actions.pod:3237
8911 msgid ""
8912 "For Windows guests, this returns the contents of the Registry key C<HKLM"
8913 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
8914 "is usually a string such as C<Client> or C<Server> (other values are "
8915 "possible).  This can be used to distinguish consumer and enterprise versions "
8916 "of Windows that have the same version number (for example, Windows 7 and "
8917 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
8918 "the latter is C<Server>)."
8919 msgstr ""
8920
8921 #. type: textblock
8922 #: ../fish/guestfish-actions.pod:2172 ../src/guestfs-actions.pod:3246
8923 msgid ""
8924 "For enterprise Linux guests, in future we intend this to return the product "
8925 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
8926 "implemented at present."
8927 msgstr ""
8928
8929 #. type: textblock
8930 #: ../fish/guestfish-actions.pod:2176 ../src/guestfs-actions.pod:3250
8931 msgid ""
8932 "If the product variant could not be determined, then the string C<unknown> "
8933 "is returned."
8934 msgstr ""
8935
8936 #. type: textblock
8937 #: ../fish/guestfish-actions.pod:2179
8938 msgid ""
8939 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8940 "get-product-name>, L</inspect-get-major-version>."
8941 msgstr ""
8942
8943 #. type: =head2
8944 #: ../fish/guestfish-actions.pod:2183
8945 msgid "inspect-get-roots"
8946 msgstr ""
8947
8948 #. type: verbatim
8949 #: ../fish/guestfish-actions.pod:2185
8950 #, no-wrap
8951 msgid ""
8952 " inspect-get-roots\n"
8953 "\n"
8954 msgstr ""
8955
8956 #. type: textblock
8957 #: ../fish/guestfish-actions.pod:2187
8958 msgid ""
8959 "This function is a convenient way to get the list of root devices, as "
8960 "returned from a previous call to L</inspect-os>, but without redoing the "
8961 "whole inspection process."
8962 msgstr ""
8963
8964 #. type: textblock
8965 #: ../fish/guestfish-actions.pod:2191
8966 msgid ""
8967 "This returns an empty list if either no root devices were found or the "
8968 "caller has not called L</inspect-os>."
8969 msgstr ""
8970
8971 #. type: =head2
8972 #: ../fish/guestfish-actions.pod:2196
8973 msgid "inspect-get-type"
8974 msgstr ""
8975
8976 #. type: verbatim
8977 #: ../fish/guestfish-actions.pod:2198
8978 #, no-wrap
8979 msgid ""
8980 " inspect-get-type root\n"
8981 "\n"
8982 msgstr ""
8983
8984 #. type: textblock
8985 #: ../fish/guestfish-actions.pod:2200 ../src/guestfs-actions.pod:3288
8986 msgid ""
8987 "This returns the type of the inspected operating system.  Currently defined "
8988 "types are:"
8989 msgstr ""
8990
8991 #. type: =item
8992 #: ../fish/guestfish-actions.pod:2205 ../src/guestfs-actions.pod:3293
8993 msgid "\"linux\""
8994 msgstr ""
8995
8996 #. type: textblock
8997 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3295
8998 msgid "Any Linux-based operating system."
8999 msgstr ""
9000
9001 #. type: textblock
9002 #: ../fish/guestfish-actions.pod:2211 ../src/guestfs-actions.pod:3299
9003 msgid "Any Microsoft Windows operating system."
9004 msgstr ""
9005
9006 #. type: =item
9007 #: ../fish/guestfish-actions.pod:2213 ../src/guestfs-actions.pod:3301
9008 msgid "\"freebsd\""
9009 msgstr ""
9010
9011 #. type: textblock
9012 #: ../fish/guestfish-actions.pod:2215 ../src/guestfs-actions.pod:3303
9013 msgid "FreeBSD."
9014 msgstr ""
9015
9016 #. type: textblock
9017 #: ../fish/guestfish-actions.pod:2219 ../src/guestfs-actions.pod:3307
9018 msgid "The operating system type could not be determined."
9019 msgstr ""
9020
9021 #. type: =head2
9022 #: ../fish/guestfish-actions.pod:2228
9023 msgid "inspect-get-windows-current-control-set"
9024 msgstr ""
9025
9026 #. type: verbatim
9027 #: ../fish/guestfish-actions.pod:2230
9028 #, no-wrap
9029 msgid ""
9030 " inspect-get-windows-current-control-set root\n"
9031 "\n"
9032 msgstr ""
9033
9034 #. type: textblock
9035 #: ../fish/guestfish-actions.pod:2232 ../src/guestfs-actions.pod:3327
9036 msgid ""
9037 "This returns the Windows CurrentControlSet of the inspected guest.  The "
9038 "CurrentControlSet is a registry key name such as C<ControlSet001>."
9039 msgstr ""
9040
9041 #. type: textblock
9042 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:3330
9043 msgid ""
9044 "This call assumes that the guest is Windows and that the Registry could be "
9045 "examined by inspection.  If this is not the case then an error is returned."
9046 msgstr ""
9047
9048 #. type: =head2
9049 #: ../fish/guestfish-actions.pod:2241
9050 msgid "inspect-get-windows-systemroot"
9051 msgstr ""
9052
9053 #. type: verbatim
9054 #: ../fish/guestfish-actions.pod:2243
9055 #, no-wrap
9056 msgid ""
9057 " inspect-get-windows-systemroot root\n"
9058 "\n"
9059 msgstr ""
9060
9061 #. type: textblock
9062 #: ../fish/guestfish-actions.pod:2245 ../src/guestfs-actions.pod:3347
9063 msgid ""
9064 "This returns the Windows systemroot of the inspected guest.  The systemroot "
9065 "is a directory path such as C</WINDOWS>."
9066 msgstr ""
9067
9068 #. type: textblock
9069 #: ../fish/guestfish-actions.pod:2248 ../src/guestfs-actions.pod:3350
9070 msgid ""
9071 "This call assumes that the guest is Windows and that the systemroot could be "
9072 "determined by inspection.  If this is not the case then an error is returned."
9073 msgstr ""
9074
9075 #. type: =head2
9076 #: ../fish/guestfish-actions.pod:2254
9077 msgid "inspect-is-live"
9078 msgstr ""
9079
9080 #. type: verbatim
9081 #: ../fish/guestfish-actions.pod:2256
9082 #, no-wrap
9083 msgid ""
9084 " inspect-is-live root\n"
9085 "\n"
9086 msgstr ""
9087
9088 #. type: textblock
9089 #: ../fish/guestfish-actions.pod:2258
9090 msgid ""
9091 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9092 "then this returns true if a live image was detected on the disk."
9093 msgstr ""
9094
9095 #. type: =head2
9096 #: ../fish/guestfish-actions.pod:2264
9097 msgid "inspect-is-multipart"
9098 msgstr ""
9099
9100 #. type: verbatim
9101 #: ../fish/guestfish-actions.pod:2266
9102 #, no-wrap
9103 msgid ""
9104 " inspect-is-multipart root\n"
9105 "\n"
9106 msgstr ""
9107
9108 #. type: textblock
9109 #: ../fish/guestfish-actions.pod:2268
9110 msgid ""
9111 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9112 "then this returns true if the disk is part of a set."
9113 msgstr ""
9114
9115 #. type: =head2
9116 #: ../fish/guestfish-actions.pod:2274
9117 msgid "inspect-is-netinst"
9118 msgstr ""
9119
9120 #. type: verbatim
9121 #: ../fish/guestfish-actions.pod:2276
9122 #, no-wrap
9123 msgid ""
9124 " inspect-is-netinst root\n"
9125 "\n"
9126 msgstr ""
9127
9128 #. type: textblock
9129 #: ../fish/guestfish-actions.pod:2278
9130 msgid ""
9131 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9132 "then this returns true if the disk is a network installer, ie. not a self-"
9133 "contained install CD but one which is likely to require network access to "
9134 "complete the install."
9135 msgstr ""
9136
9137 #. type: =head2
9138 #: ../fish/guestfish-actions.pod:2286
9139 msgid "inspect-list-applications"
9140 msgstr ""
9141
9142 #. type: verbatim
9143 #: ../fish/guestfish-actions.pod:2288
9144 #, no-wrap
9145 msgid ""
9146 " inspect-list-applications root\n"
9147 "\n"
9148 msgstr ""
9149
9150 #. type: textblock
9151 #: ../fish/guestfish-actions.pod:2290 ../src/guestfs-actions.pod:3417
9152 msgid "Return the list of applications installed in the operating system."
9153 msgstr ""
9154
9155 #. type: textblock
9156 #: ../fish/guestfish-actions.pod:2292
9157 msgid ""
9158 "I<Note:> This call works differently from other parts of the inspection "
9159 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
9160 "then mount up the disks, before calling this.  Listing applications is a "
9161 "significantly more difficult operation which requires access to the full "
9162 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
9163 "are just returning data cached in the libguestfs handle, this call actually "
9164 "reads parts of the mounted filesystems during the call."
9165 msgstr ""
9166
9167 #. type: textblock
9168 #: ../fish/guestfish-actions.pod:2302 ../src/guestfs-actions.pod:3429
9169 msgid ""
9170 "This returns an empty list if the inspection code was not able to determine "
9171 "the list of applications."
9172 msgstr ""
9173
9174 #. type: textblock
9175 #: ../fish/guestfish-actions.pod:2305 ../src/guestfs-actions.pod:3432
9176 msgid "The application structure contains the following fields:"
9177 msgstr ""
9178
9179 #. type: =item
9180 #: ../fish/guestfish-actions.pod:2309 ../src/guestfs-actions.pod:3436
9181 msgid "C<app_name>"
9182 msgstr ""
9183
9184 #. type: textblock
9185 #: ../fish/guestfish-actions.pod:2311 ../src/guestfs-actions.pod:3438
9186 msgid ""
9187 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
9188 "guests, this is the package name."
9189 msgstr ""
9190
9191 #. type: =item
9192 #: ../fish/guestfish-actions.pod:2314 ../src/guestfs-actions.pod:3441
9193 msgid "C<app_display_name>"
9194 msgstr ""
9195
9196 #. type: textblock
9197 #: ../fish/guestfish-actions.pod:2316 ../src/guestfs-actions.pod:3443
9198 msgid ""
9199 "The display name of the application, sometimes localized to the install "
9200 "language of the guest operating system."
9201 msgstr ""
9202
9203 #. type: textblock
9204 #: ../fish/guestfish-actions.pod:2319 ../src/guestfs-actions.pod:3446
9205 msgid ""
9206 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
9207 "to display something can use C<app_name> instead."
9208 msgstr ""
9209
9210 #. type: =item
9211 #: ../fish/guestfish-actions.pod:2322 ../src/guestfs-actions.pod:3449
9212 msgid "C<app_epoch>"
9213 msgstr ""
9214
9215 #. type: textblock
9216 #: ../fish/guestfish-actions.pod:2324 ../src/guestfs-actions.pod:3451
9217 msgid ""
9218 "For package managers which use epochs, this contains the epoch of the "
9219 "package (an integer).  If unavailable, this is returned as C<0>."
9220 msgstr ""
9221
9222 #. type: =item
9223 #: ../fish/guestfish-actions.pod:2327 ../src/guestfs-actions.pod:3454
9224 msgid "C<app_version>"
9225 msgstr ""
9226
9227 #. type: textblock
9228 #: ../fish/guestfish-actions.pod:2329 ../src/guestfs-actions.pod:3456
9229 msgid ""
9230 "The version string of the application or package.  If unavailable this is "
9231 "returned as an empty string C<\"\">."
9232 msgstr ""
9233
9234 #. type: =item
9235 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3459
9236 msgid "C<app_release>"
9237 msgstr ""
9238
9239 #. type: textblock
9240 #: ../fish/guestfish-actions.pod:2334 ../src/guestfs-actions.pod:3461
9241 msgid ""
9242 "The release string of the application or package, for package managers that "
9243 "use this.  If unavailable this is returned as an empty string C<\"\">."
9244 msgstr ""
9245
9246 #. type: =item
9247 #: ../fish/guestfish-actions.pod:2338 ../src/guestfs-actions.pod:3465
9248 msgid "C<app_install_path>"
9249 msgstr ""
9250
9251 #. type: textblock
9252 #: ../fish/guestfish-actions.pod:2340 ../src/guestfs-actions.pod:3467
9253 msgid ""
9254 "The installation path of the application (on operating systems such as "
9255 "Windows which use installation paths).  This path is in the format used by "
9256 "the guest operating system, it is not a libguestfs path."
9257 msgstr ""
9258
9259 #. type: textblock
9260 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3472
9261 msgid "If unavailable this is returned as an empty string C<\"\">."
9262 msgstr ""
9263
9264 #. type: =item
9265 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3474
9266 msgid "C<app_trans_path>"
9267 msgstr ""
9268
9269 #. type: textblock
9270 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3476
9271 msgid ""
9272 "The install path translated into a libguestfs path.  If unavailable this is "
9273 "returned as an empty string C<\"\">."
9274 msgstr ""
9275
9276 #. type: =item
9277 #: ../fish/guestfish-actions.pod:2352 ../src/guestfs-actions.pod:3479
9278 msgid "C<app_publisher>"
9279 msgstr ""
9280
9281 #. type: textblock
9282 #: ../fish/guestfish-actions.pod:2354 ../src/guestfs-actions.pod:3481
9283 msgid ""
9284 "The name of the publisher of the application, for package managers that use "
9285 "this.  If unavailable this is returned as an empty string C<\"\">."
9286 msgstr ""
9287
9288 #. type: =item
9289 #: ../fish/guestfish-actions.pod:2358 ../src/guestfs-actions.pod:3485
9290 msgid "C<app_url>"
9291 msgstr ""
9292
9293 #. type: textblock
9294 #: ../fish/guestfish-actions.pod:2360 ../src/guestfs-actions.pod:3487
9295 msgid ""
9296 "The URL (eg. upstream URL) of the application.  If unavailable this is "
9297 "returned as an empty string C<\"\">."
9298 msgstr ""
9299
9300 #. type: =item
9301 #: ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3490
9302 msgid "C<app_source_package>"
9303 msgstr ""
9304
9305 #. type: textblock
9306 #: ../fish/guestfish-actions.pod:2365 ../src/guestfs-actions.pod:3492
9307 msgid ""
9308 "For packaging systems which support this, the name of the source package.  "
9309 "If unavailable this is returned as an empty string C<\"\">."
9310 msgstr ""
9311
9312 #. type: =item
9313 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3495
9314 msgid "C<app_summary>"
9315 msgstr ""
9316
9317 #. type: textblock
9318 #: ../fish/guestfish-actions.pod:2370 ../src/guestfs-actions.pod:3497
9319 msgid ""
9320 "A short (usually one line) description of the application or package.  If "
9321 "unavailable this is returned as an empty string C<\"\">."
9322 msgstr ""
9323
9324 #. type: =item
9325 #: ../fish/guestfish-actions.pod:2373 ../src/guestfs-actions.pod:3500
9326 msgid "C<app_description>"
9327 msgstr ""
9328
9329 #. type: textblock
9330 #: ../fish/guestfish-actions.pod:2375 ../src/guestfs-actions.pod:3502
9331 msgid ""
9332 "A longer description of the application or package.  If unavailable this is "
9333 "returned as an empty string C<\"\">."
9334 msgstr ""
9335
9336 #. type: =head2
9337 #: ../fish/guestfish-actions.pod:2382
9338 msgid "inspect-os"
9339 msgstr ""
9340
9341 #. type: verbatim
9342 #: ../fish/guestfish-actions.pod:2384
9343 #, no-wrap
9344 msgid ""
9345 " inspect-os\n"
9346 "\n"
9347 msgstr ""
9348
9349 #. type: textblock
9350 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3520
9351 msgid ""
9352 "This function uses other libguestfs functions and certain heuristics to "
9353 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9354 "for operating systems."
9355 msgstr ""
9356
9357 #. type: textblock
9358 #: ../fish/guestfish-actions.pod:2390 ../src/guestfs-actions.pod:3524
9359 msgid "The list returned is empty if no operating systems were found."
9360 msgstr ""
9361
9362 #. type: textblock
9363 #: ../fish/guestfish-actions.pod:2392 ../src/guestfs-actions.pod:3526
9364 msgid ""
9365 "If one operating system was found, then this returns a list with a single "
9366 "element, which is the name of the root filesystem of this operating system.  "
9367 "It is also possible for this function to return a list containing more than "
9368 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9369 "element being the root filesystem of one of the operating systems."
9370 msgstr ""
9371
9372 #. type: textblock
9373 #: ../fish/guestfish-actions.pod:2399
9374 msgid ""
9375 "You can pass the root string(s) returned to other L</inspect-get-*> "
9376 "functions in order to query further information about each operating system, "
9377 "such as the name and version."
9378 msgstr ""
9379
9380 #. type: textblock
9381 #: ../fish/guestfish-actions.pod:2404
9382 msgid ""
9383 "This function uses other libguestfs features such as L</mount-ro> and L</"
9384 "umount-all> in order to mount and unmount filesystems and look at the "
9385 "contents.  This should be called with no disks currently mounted.  The "
9386 "function may also use Augeas, so any existing Augeas handle will be closed."
9387 msgstr ""
9388
9389 #. type: textblock
9390 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3544
9391 msgid ""
9392 "This function cannot decrypt encrypted disks.  The caller must do that first "
9393 "(supplying the necessary keys) if the disk is encrypted."
9394 msgstr ""
9395
9396 #. type: textblock
9397 #: ../fish/guestfish-actions.pod:2416 ../fish/guestfish-actions.pod:2614
9398 #: ../fish/guestfish-actions.pod:2673
9399 msgid "See also L</list-filesystems>."
9400 msgstr ""
9401
9402 #. type: =head2
9403 #: ../fish/guestfish-actions.pod:2418
9404 msgid "is-blockdev"
9405 msgstr ""
9406
9407 #. type: verbatim
9408 #: ../fish/guestfish-actions.pod:2420
9409 #, no-wrap
9410 msgid ""
9411 " is-blockdev path\n"
9412 "\n"
9413 msgstr ""
9414
9415 #. type: textblock
9416 #: ../fish/guestfish-actions.pod:2422 ../src/guestfs-actions.pod:3564
9417 msgid ""
9418 "This returns C<true> if and only if there is a block device with the given "
9419 "C<path> name."
9420 msgstr ""
9421
9422 #. type: textblock
9423 #: ../fish/guestfish-actions.pod:2425 ../fish/guestfish-actions.pod:2443
9424 #: ../fish/guestfish-actions.pod:2462 ../fish/guestfish-actions.pod:2471
9425 #: ../fish/guestfish-actions.pod:2481 ../fish/guestfish-actions.pod:2515
9426 #: ../fish/guestfish-actions.pod:2524
9427 msgid "See also L</stat>."
9428 msgstr ""
9429
9430 #. type: =head2
9431 #: ../fish/guestfish-actions.pod:2427
9432 msgid "is-busy"
9433 msgstr ""
9434
9435 #. type: verbatim
9436 #: ../fish/guestfish-actions.pod:2429
9437 #, no-wrap
9438 msgid ""
9439 " is-busy\n"
9440 "\n"
9441 msgstr ""
9442
9443 #. type: textblock
9444 #: ../fish/guestfish-actions.pod:2431 ../src/guestfs-actions.pod:3578
9445 msgid ""
9446 "This returns true iff this handle is busy processing a command (in the "
9447 "C<BUSY> state)."
9448 msgstr ""
9449
9450 #. type: =head2
9451 #: ../fish/guestfish-actions.pod:2436
9452 msgid "is-chardev"
9453 msgstr ""
9454
9455 #. type: verbatim
9456 #: ../fish/guestfish-actions.pod:2438
9457 #, no-wrap
9458 msgid ""
9459 " is-chardev path\n"
9460 "\n"
9461 msgstr ""
9462
9463 #. type: textblock
9464 #: ../fish/guestfish-actions.pod:2440 ../src/guestfs-actions.pod:3593
9465 msgid ""
9466 "This returns C<true> if and only if there is a character device with the "
9467 "given C<path> name."
9468 msgstr ""
9469
9470 #. type: =head2
9471 #: ../fish/guestfish-actions.pod:2445
9472 msgid "is-config"
9473 msgstr ""
9474
9475 #. type: verbatim
9476 #: ../fish/guestfish-actions.pod:2447
9477 #, no-wrap
9478 msgid ""
9479 " is-config\n"
9480 "\n"
9481 msgstr ""
9482
9483 #. type: textblock
9484 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3607
9485 msgid ""
9486 "This returns true iff this handle is being configured (in the C<CONFIG> "
9487 "state)."
9488 msgstr ""
9489
9490 #. type: =head2
9491 #: ../fish/guestfish-actions.pod:2454
9492 msgid "is-dir"
9493 msgstr ""
9494
9495 #. type: verbatim
9496 #: ../fish/guestfish-actions.pod:2456
9497 #, no-wrap
9498 msgid ""
9499 " is-dir path\n"
9500 "\n"
9501 msgstr ""
9502
9503 #. type: textblock
9504 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3622
9505 msgid ""
9506 "This returns C<true> if and only if there is a directory with the given "
9507 "C<path> name.  Note that it returns false for other objects like files."
9508 msgstr ""
9509
9510 #. type: =head2
9511 #: ../fish/guestfish-actions.pod:2464
9512 msgid "is-fifo"
9513 msgstr ""
9514
9515 #. type: verbatim
9516 #: ../fish/guestfish-actions.pod:2466
9517 #, no-wrap
9518 msgid ""
9519 " is-fifo path\n"
9520 "\n"
9521 msgstr ""
9522
9523 #. type: textblock
9524 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3638
9525 msgid ""
9526 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9527 "given C<path> name."
9528 msgstr ""
9529
9530 #. type: =head2
9531 #: ../fish/guestfish-actions.pod:2473
9532 msgid "is-file"
9533 msgstr ""
9534
9535 #. type: verbatim
9536 #: ../fish/guestfish-actions.pod:2475
9537 #, no-wrap
9538 msgid ""
9539 " is-file path\n"
9540 "\n"
9541 msgstr ""
9542
9543 #. type: textblock
9544 #: ../fish/guestfish-actions.pod:2477 ../src/guestfs-actions.pod:3653
9545 msgid ""
9546 "This returns C<true> if and only if there is a regular file with the given "
9547 "C<path> name.  Note that it returns false for other objects like directories."
9548 msgstr ""
9549
9550 #. type: =head2
9551 #: ../fish/guestfish-actions.pod:2483
9552 msgid "is-launching"
9553 msgstr ""
9554
9555 #. type: verbatim
9556 #: ../fish/guestfish-actions.pod:2485
9557 #, no-wrap
9558 msgid ""
9559 " is-launching\n"
9560 "\n"
9561 msgstr ""
9562
9563 #. type: textblock
9564 #: ../fish/guestfish-actions.pod:2487 ../src/guestfs-actions.pod:3668
9565 msgid ""
9566 "This returns true iff this handle is launching the subprocess (in the "
9567 "C<LAUNCHING> state)."
9568 msgstr ""
9569
9570 #. type: =head2
9571 #: ../fish/guestfish-actions.pod:2492
9572 msgid "is-lv"
9573 msgstr ""
9574
9575 #. type: verbatim
9576 #: ../fish/guestfish-actions.pod:2494
9577 #, no-wrap
9578 msgid ""
9579 " is-lv device\n"
9580 "\n"
9581 msgstr ""
9582
9583 #. type: textblock
9584 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3683
9585 msgid ""
9586 "This command tests whether C<device> is a logical volume, and returns true "
9587 "iff this is the case."
9588 msgstr ""
9589
9590 #. type: =head2
9591 #: ../fish/guestfish-actions.pod:2499
9592 msgid "is-ready"
9593 msgstr ""
9594
9595 #. type: verbatim
9596 #: ../fish/guestfish-actions.pod:2501
9597 #, no-wrap
9598 msgid ""
9599 " is-ready\n"
9600 "\n"
9601 msgstr ""
9602
9603 #. type: textblock
9604 #: ../fish/guestfish-actions.pod:2503 ../src/guestfs-actions.pod:3695
9605 msgid ""
9606 "This returns true iff this handle is ready to accept commands (in the "
9607 "C<READY> state)."
9608 msgstr ""
9609
9610 #. type: =head2
9611 #: ../fish/guestfish-actions.pod:2508
9612 msgid "is-socket"
9613 msgstr ""
9614
9615 #. type: verbatim
9616 #: ../fish/guestfish-actions.pod:2510
9617 #, no-wrap
9618 msgid ""
9619 " is-socket path\n"
9620 "\n"
9621 msgstr ""
9622
9623 #. type: textblock
9624 #: ../fish/guestfish-actions.pod:2512 ../src/guestfs-actions.pod:3710
9625 msgid ""
9626 "This returns C<true> if and only if there is a Unix domain socket with the "
9627 "given C<path> name."
9628 msgstr ""
9629
9630 #. type: =head2
9631 #: ../fish/guestfish-actions.pod:2517
9632 msgid "is-symlink"
9633 msgstr ""
9634
9635 #. type: verbatim
9636 #: ../fish/guestfish-actions.pod:2519
9637 #, no-wrap
9638 msgid ""
9639 " is-symlink path\n"
9640 "\n"
9641 msgstr ""
9642
9643 #. type: textblock
9644 #: ../fish/guestfish-actions.pod:2521 ../src/guestfs-actions.pod:3725
9645 msgid ""
9646 "This returns C<true> if and only if there is a symbolic link with the given "
9647 "C<path> name."
9648 msgstr ""
9649
9650 #. type: =head2
9651 #: ../fish/guestfish-actions.pod:2526
9652 msgid "is-zero"
9653 msgstr ""
9654
9655 #. type: verbatim
9656 #: ../fish/guestfish-actions.pod:2528
9657 #, no-wrap
9658 msgid ""
9659 " is-zero path\n"
9660 "\n"
9661 msgstr ""
9662
9663 #. type: textblock
9664 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3740
9665 msgid ""
9666 "This returns true iff the file exists and the file is empty or it contains "
9667 "all zero bytes."
9668 msgstr ""
9669
9670 #. type: =head2
9671 #: ../fish/guestfish-actions.pod:2533
9672 msgid "is-zero-device"
9673 msgstr ""
9674
9675 #. type: verbatim
9676 #: ../fish/guestfish-actions.pod:2535
9677 #, no-wrap
9678 msgid ""
9679 " is-zero-device device\n"
9680 "\n"
9681 msgstr ""
9682
9683 #. type: textblock
9684 #: ../fish/guestfish-actions.pod:2537 ../src/guestfs-actions.pod:3753
9685 msgid "This returns true iff the device exists and contains all zero bytes."
9686 msgstr ""
9687
9688 #. type: textblock
9689 #: ../fish/guestfish-actions.pod:2539 ../src/guestfs-actions.pod:3755
9690 msgid "Note that for large devices this can take a long time to run."
9691 msgstr ""
9692
9693 #. type: =head2
9694 #: ../fish/guestfish-actions.pod:2541
9695 msgid "kill-subprocess"
9696 msgstr ""
9697
9698 #. type: verbatim
9699 #: ../fish/guestfish-actions.pod:2543
9700 #, no-wrap
9701 msgid ""
9702 " kill-subprocess\n"
9703 "\n"
9704 msgstr ""
9705
9706 #. type: textblock
9707 #: ../fish/guestfish-actions.pod:2545 ../src/guestfs-actions.pod:3766
9708 msgid "This kills the qemu subprocess.  You should never need to call this."
9709 msgstr ""
9710
9711 #. type: =head2
9712 #: ../fish/guestfish-actions.pod:2547
9713 msgid "launch"
9714 msgstr ""
9715
9716 #. type: =head2
9717 #: ../fish/guestfish-actions.pod:2549
9718 msgid "run"
9719 msgstr ""
9720
9721 #. type: verbatim
9722 #: ../fish/guestfish-actions.pod:2551
9723 #, no-wrap
9724 msgid ""
9725 " launch\n"
9726 "\n"
9727 msgstr ""
9728
9729 #. type: textblock
9730 #: ../fish/guestfish-actions.pod:2553 ../src/guestfs-actions.pod:3777
9731 msgid ""
9732 "Internally libguestfs is implemented by running a virtual machine using "
9733 "L<qemu(1)>."
9734 msgstr ""
9735
9736 #. type: textblock
9737 #: ../fish/guestfish-actions.pod:2556 ../src/guestfs-actions.pod:3780
9738 msgid ""
9739 "You should call this after configuring the handle (eg. adding drives) but "
9740 "before performing any actions."
9741 msgstr ""
9742
9743 #. type: =head2
9744 #: ../fish/guestfish-actions.pod:2559
9745 msgid "lchown"
9746 msgstr ""
9747
9748 #. type: verbatim
9749 #: ../fish/guestfish-actions.pod:2561
9750 #, no-wrap
9751 msgid ""
9752 " lchown owner group path\n"
9753 "\n"
9754 msgstr ""
9755
9756 #. type: textblock
9757 #: ../fish/guestfish-actions.pod:2563
9758 msgid ""
9759 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
9760 "chown> but if C<path> is a symlink then the link itself is changed, not the "
9761 "target."
9762 msgstr ""
9763
9764 #. type: =head2
9765 #: ../fish/guestfish-actions.pod:2571
9766 msgid "lgetxattr"
9767 msgstr ""
9768
9769 #. type: verbatim
9770 #: ../fish/guestfish-actions.pod:2573
9771 #, no-wrap
9772 msgid ""
9773 " lgetxattr path name\n"
9774 "\n"
9775 msgstr ""
9776
9777 #. type: textblock
9778 #: ../fish/guestfish-actions.pod:2575 ../src/guestfs-actions.pod:3820
9779 msgid ""
9780 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
9781 "is a symlink, then this call returns an extended attribute from the symlink."
9782 msgstr ""
9783
9784 #. type: textblock
9785 #: ../fish/guestfish-actions.pod:2589
9786 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
9787 msgstr ""
9788
9789 #. type: =head2
9790 #: ../fish/guestfish-actions.pod:2591
9791 msgid "lgetxattrs"
9792 msgstr ""
9793
9794 #. type: verbatim
9795 #: ../fish/guestfish-actions.pod:2593
9796 #, no-wrap
9797 msgid ""
9798 " lgetxattrs path\n"
9799 "\n"
9800 msgstr ""
9801
9802 #. type: textblock
9803 #: ../fish/guestfish-actions.pod:2595
9804 msgid ""
9805 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
9806 "it returns the extended attributes of the link itself."
9807 msgstr ""
9808
9809 #. type: =head2
9810 #: ../fish/guestfish-actions.pod:2599
9811 msgid "list-9p"
9812 msgstr ""
9813
9814 #. type: verbatim
9815 #: ../fish/guestfish-actions.pod:2601
9816 #, no-wrap
9817 msgid ""
9818 " list-9p\n"
9819 "\n"
9820 msgstr ""
9821
9822 #. type: textblock
9823 #: ../fish/guestfish-actions.pod:2603 ../src/guestfs-actions.pod:3863
9824 msgid ""
9825 "List all 9p filesystems attached to the guest.  A list of mount tags is "
9826 "returned."
9827 msgstr ""
9828
9829 #. type: =head2
9830 #: ../fish/guestfish-actions.pod:2606
9831 msgid "list-devices"
9832 msgstr ""
9833
9834 #. type: verbatim
9835 #: ../fish/guestfish-actions.pod:2608
9836 #, no-wrap
9837 msgid ""
9838 " list-devices\n"
9839 "\n"
9840 msgstr ""
9841
9842 #. type: textblock
9843 #: ../fish/guestfish-actions.pod:2610 ../src/guestfs-actions.pod:3877
9844 msgid "List all the block devices."
9845 msgstr ""
9846
9847 #. type: textblock
9848 #: ../fish/guestfish-actions.pod:2612 ../src/guestfs-actions.pod:3879
9849 msgid "The full block device names are returned, eg. C</dev/sda>."
9850 msgstr ""
9851
9852 #. type: =head2
9853 #: ../fish/guestfish-actions.pod:2616
9854 msgid "list-dm-devices"
9855 msgstr ""
9856
9857 #. type: verbatim
9858 #: ../fish/guestfish-actions.pod:2618
9859 #, no-wrap
9860 msgid ""
9861 " list-dm-devices\n"
9862 "\n"
9863 msgstr ""
9864
9865 #. type: textblock
9866 #: ../fish/guestfish-actions.pod:2620 ../src/guestfs-actions.pod:3894
9867 msgid "List all device mapper devices."
9868 msgstr ""
9869
9870 #. type: textblock
9871 #: ../fish/guestfish-actions.pod:2622
9872 msgid ""
9873 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
9874 "previous call to L</luks-open>."
9875 msgstr ""
9876
9877 #. type: textblock
9878 #: ../fish/guestfish-actions.pod:2625
9879 msgid ""
9880 "Device mapper devices which correspond to logical volumes are I<not> "
9881 "returned in this list.  Call L</lvs> if you want to list logical volumes."
9882 msgstr ""
9883
9884 #. type: =head2
9885 #: ../fish/guestfish-actions.pod:2629
9886 msgid "list-filesystems"
9887 msgstr ""
9888
9889 #. type: verbatim
9890 #: ../fish/guestfish-actions.pod:2631
9891 #, no-wrap
9892 msgid ""
9893 " list-filesystems\n"
9894 "\n"
9895 msgstr ""
9896
9897 #. type: textblock
9898 #: ../fish/guestfish-actions.pod:2633 ../src/guestfs-actions.pod:3914
9899 msgid ""
9900 "This inspection command looks for filesystems on partitions, block devices "
9901 "and logical volumes, returning a list of devices containing filesystems and "
9902 "their type."
9903 msgstr ""
9904
9905 #. type: textblock
9906 #: ../fish/guestfish-actions.pod:2637 ../src/guestfs-actions.pod:3918
9907 msgid ""
9908 "The return value is a hash, where the keys are the devices containing "
9909 "filesystems, and the values are the filesystem types.  For example:"
9910 msgstr ""
9911
9912 #. type: verbatim
9913 #: ../fish/guestfish-actions.pod:2641 ../src/guestfs-actions.pod:3922
9914 #, no-wrap
9915 msgid ""
9916 " \"/dev/sda1\" => \"ntfs\"\n"
9917 " \"/dev/sda2\" => \"ext2\"\n"
9918 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
9919 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
9920 "\n"
9921 msgstr ""
9922
9923 #. type: textblock
9924 #: ../fish/guestfish-actions.pod:2646 ../src/guestfs-actions.pod:3927
9925 msgid ""
9926 "The value can have the special value \"unknown\", meaning the content of the "
9927 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
9928 msgstr ""
9929
9930 #. type: textblock
9931 #: ../fish/guestfish-actions.pod:2650
9932 msgid ""
9933 "This command runs other libguestfs commands, which might include L</mount> "
9934 "and L</umount>, and therefore you should use this soon after launch and only "
9935 "when nothing is mounted."
9936 msgstr ""
9937
9938 #. type: textblock
9939 #: ../fish/guestfish-actions.pod:2654
9940 msgid ""
9941 "Not all of the filesystems returned will be mountable.  In particular, swap "
9942 "partitions are returned in the list.  Also this command does not check that "
9943 "each filesystem found is valid and mountable, and some filesystems might be "
9944 "mountable but require special options.  Filesystems may not all belong to a "
9945 "single logical operating system (use L</inspect-os> to look for OSes)."
9946 msgstr ""
9947
9948 #. type: =head2
9949 #: ../fish/guestfish-actions.pod:2662
9950 msgid "list-partitions"
9951 msgstr ""
9952
9953 #. type: verbatim
9954 #: ../fish/guestfish-actions.pod:2664
9955 #, no-wrap
9956 msgid ""
9957 " list-partitions\n"
9958 "\n"
9959 msgstr ""
9960
9961 #. type: textblock
9962 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:3956
9963 msgid "List all the partitions detected on all block devices."
9964 msgstr ""
9965
9966 #. type: textblock
9967 #: ../fish/guestfish-actions.pod:2668 ../src/guestfs-actions.pod:3958
9968 msgid "The full partition device names are returned, eg. C</dev/sda1>"
9969 msgstr ""
9970
9971 #. type: textblock
9972 #: ../fish/guestfish-actions.pod:2670
9973 msgid ""
9974 "This does not return logical volumes.  For that you will need to call L</"
9975 "lvs>."
9976 msgstr ""
9977
9978 #. type: =head2
9979 #: ../fish/guestfish-actions.pod:2675
9980 msgid "ll"
9981 msgstr ""
9982
9983 #. type: verbatim
9984 #: ../fish/guestfish-actions.pod:2677
9985 #, no-wrap
9986 msgid ""
9987 " ll directory\n"
9988 "\n"
9989 msgstr ""
9990
9991 #. type: textblock
9992 #: ../fish/guestfish-actions.pod:2679 ../src/guestfs-actions.pod:3977
9993 msgid ""
9994 "List the files in C<directory> (relative to the root directory, there is no "
9995 "cwd) in the format of 'ls -la'."
9996 msgstr ""
9997
9998 #. type: textblock
9999 #: ../fish/guestfish-actions.pod:2682 ../src/guestfs-actions.pod:3980
10000 msgid ""
10001 "This command is mostly useful for interactive sessions.  It is I<not> "
10002 "intended that you try to parse the output string."
10003 msgstr ""
10004
10005 #. type: =head2
10006 #: ../fish/guestfish-actions.pod:2685
10007 msgid "ln"
10008 msgstr ""
10009
10010 #. type: verbatim
10011 #: ../fish/guestfish-actions.pod:2687
10012 #, no-wrap
10013 msgid ""
10014 " ln target linkname\n"
10015 "\n"
10016 msgstr ""
10017
10018 #. type: textblock
10019 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:3995
10020 msgid "This command creates a hard link using the C<ln> command."
10021 msgstr ""
10022
10023 #. type: =head2
10024 #: ../fish/guestfish-actions.pod:2691
10025 msgid "ln-f"
10026 msgstr ""
10027
10028 #. type: verbatim
10029 #: ../fish/guestfish-actions.pod:2693
10030 #, no-wrap
10031 msgid ""
10032 " ln-f target linkname\n"
10033 "\n"
10034 msgstr ""
10035
10036 #. type: textblock
10037 #: ../fish/guestfish-actions.pod:2695 ../src/guestfs-actions.pod:4008
10038 msgid ""
10039 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
10040 "option removes the link (C<linkname>) if it exists already."
10041 msgstr ""
10042
10043 #. type: =head2
10044 #: ../fish/guestfish-actions.pod:2698
10045 msgid "ln-s"
10046 msgstr ""
10047
10048 #. type: verbatim
10049 #: ../fish/guestfish-actions.pod:2700
10050 #, no-wrap
10051 msgid ""
10052 " ln-s target linkname\n"
10053 "\n"
10054 msgstr ""
10055
10056 #. type: textblock
10057 #: ../fish/guestfish-actions.pod:2702 ../src/guestfs-actions.pod:4022
10058 msgid "This command creates a symbolic link using the C<ln -s> command."
10059 msgstr ""
10060
10061 #. type: =head2
10062 #: ../fish/guestfish-actions.pod:2704
10063 msgid "ln-sf"
10064 msgstr ""
10065
10066 #. type: verbatim
10067 #: ../fish/guestfish-actions.pod:2706
10068 #, no-wrap
10069 msgid ""
10070 " ln-sf target linkname\n"
10071 "\n"
10072 msgstr ""
10073
10074 #. type: textblock
10075 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4035
10076 msgid ""
10077 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
10078 "option removes the link (C<linkname>) if it exists already."
10079 msgstr ""
10080
10081 #. type: =head2
10082 #: ../fish/guestfish-actions.pod:2711
10083 msgid "lremovexattr"
10084 msgstr ""
10085
10086 #. type: verbatim
10087 #: ../fish/guestfish-actions.pod:2713
10088 #, no-wrap
10089 msgid ""
10090 " lremovexattr xattr path\n"
10091 "\n"
10092 msgstr ""
10093
10094 #. type: textblock
10095 #: ../fish/guestfish-actions.pod:2715
10096 msgid ""
10097 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
10098 "it removes an extended attribute of the link itself."
10099 msgstr ""
10100
10101 #. type: =head2
10102 #: ../fish/guestfish-actions.pod:2719
10103 msgid "ls"
10104 msgstr ""
10105
10106 #. type: verbatim
10107 #: ../fish/guestfish-actions.pod:2721
10108 #, no-wrap
10109 msgid ""
10110 " ls directory\n"
10111 "\n"
10112 msgstr ""
10113
10114 #. type: textblock
10115 #: ../fish/guestfish-actions.pod:2723 ../src/guestfs-actions.pod:4063
10116 msgid ""
10117 "List the files in C<directory> (relative to the root directory, there is no "
10118 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
10119 msgstr ""
10120
10121 #. type: textblock
10122 #: ../fish/guestfish-actions.pod:2727
10123 msgid ""
10124 "This command is mostly useful for interactive sessions.  Programs should "
10125 "probably use L</readdir> instead."
10126 msgstr ""
10127
10128 #. type: =head2
10129 #: ../fish/guestfish-actions.pod:2730
10130 msgid "lsetxattr"
10131 msgstr ""
10132
10133 #. type: verbatim
10134 #: ../fish/guestfish-actions.pod:2732
10135 #, no-wrap
10136 msgid ""
10137 " lsetxattr xattr val vallen path\n"
10138 "\n"
10139 msgstr ""
10140
10141 #. type: textblock
10142 #: ../fish/guestfish-actions.pod:2734
10143 msgid ""
10144 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
10145 "sets an extended attribute of the link itself."
10146 msgstr ""
10147
10148 #. type: =head2
10149 #: ../fish/guestfish-actions.pod:2738
10150 msgid "lstat"
10151 msgstr ""
10152
10153 #. type: verbatim
10154 #: ../fish/guestfish-actions.pod:2740
10155 #, no-wrap
10156 msgid ""
10157 " lstat path\n"
10158 "\n"
10159 msgstr ""
10160
10161 #. type: textblock
10162 #: ../fish/guestfish-actions.pod:2742 ../fish/guestfish-actions.pod:4552
10163 #: ../src/guestfs-actions.pod:4099 ../src/guestfs-actions.pod:6882
10164 msgid "Returns file information for the given C<path>."
10165 msgstr ""
10166
10167 #. type: textblock
10168 #: ../fish/guestfish-actions.pod:2744
10169 msgid ""
10170 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
10171 "the link is stat-ed, not the file it refers to."
10172 msgstr ""
10173
10174 #. type: textblock
10175 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4105
10176 msgid "This is the same as the C<lstat(2)> system call."
10177 msgstr ""
10178
10179 #. type: =head2
10180 #: ../fish/guestfish-actions.pod:2750
10181 msgid "lstatlist"
10182 msgstr ""
10183
10184 #. type: verbatim
10185 #: ../fish/guestfish-actions.pod:2752
10186 #, no-wrap
10187 msgid ""
10188 " lstatlist path 'names ...'\n"
10189 "\n"
10190 msgstr ""
10191
10192 #. type: textblock
10193 #: ../fish/guestfish-actions.pod:2754
10194 msgid ""
10195 "This call allows you to perform the L</lstat> operation on multiple files, "
10196 "where all files are in the directory C<path>.  C<names> is the list of files "
10197 "from this directory."
10198 msgstr ""
10199
10200 #. type: textblock
10201 #: ../fish/guestfish-actions.pod:2758 ../src/guestfs-actions.pod:4124
10202 msgid ""
10203 "On return you get a list of stat structs, with a one-to-one correspondence "
10204 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
10205 "then the C<ino> field of that structure is set to C<-1>."
10206 msgstr ""
10207
10208 #. type: textblock
10209 #: ../fish/guestfish-actions.pod:2763
10210 msgid ""
10211 "This call is intended for programs that want to efficiently list a directory "
10212 "contents without making many round-trips.  See also L</lxattrlist> for a "
10213 "similarly efficient call for getting extended attributes.  Very long "
10214 "directory listings might cause the protocol message size to be exceeded, "
10215 "causing this call to fail.  The caller must split up such requests into "
10216 "smaller groups of names."
10217 msgstr ""
10218
10219 #. type: =head2
10220 #: ../fish/guestfish-actions.pod:2771
10221 msgid "luks-add-key"
10222 msgstr ""
10223
10224 #. type: verbatim
10225 #: ../fish/guestfish-actions.pod:2773
10226 #, no-wrap
10227 msgid ""
10228 " luks-add-key device keyslot\n"
10229 "\n"
10230 msgstr ""
10231
10232 #. type: textblock
10233 #: ../fish/guestfish-actions.pod:2775 ../src/guestfs-actions.pod:4152
10234 msgid ""
10235 "This command adds a new key on LUKS device C<device>.  C<key> is any "
10236 "existing key, and is used to access the device.  C<newkey> is the new key to "
10237 "add.  C<keyslot> is the key slot that will be replaced."
10238 msgstr ""
10239
10240 #. type: textblock
10241 #: ../fish/guestfish-actions.pod:2780
10242 msgid ""
10243 "Note that if C<keyslot> already contains a key, then this command will "
10244 "fail.  You have to use L</luks-kill-slot> first to remove that key."
10245 msgstr ""
10246
10247 #. type: textblock
10248 #: ../fish/guestfish-actions.pod:2784 ../fish/guestfish-actions.pod:2806
10249 #: ../fish/guestfish-actions.pod:2819 ../fish/guestfish-actions.pod:2833
10250 #: ../fish/guestfish-actions.pod:2859 ../fish/guestfish-actions.pod:2869
10251 msgid ""
10252 "This command has one or more key or passphrase parameters.  Guestfish will "
10253 "prompt for these separately."
10254 msgstr ""
10255
10256 #. type: =head2
10257 #: ../fish/guestfish-actions.pod:2787
10258 msgid "luks-close"
10259 msgstr ""
10260
10261 #. type: verbatim
10262 #: ../fish/guestfish-actions.pod:2789
10263 #, no-wrap
10264 msgid ""
10265 " luks-close device\n"
10266 "\n"
10267 msgstr ""
10268
10269 #. type: textblock
10270 #: ../fish/guestfish-actions.pod:2791
10271 msgid ""
10272 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
10273 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
10274 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
10275 "block device."
10276 msgstr ""
10277
10278 #. type: =head2
10279 #: ../fish/guestfish-actions.pod:2797
10280 msgid "luks-format"
10281 msgstr ""
10282
10283 #. type: verbatim
10284 #: ../fish/guestfish-actions.pod:2799
10285 #, no-wrap
10286 msgid ""
10287 " luks-format device keyslot\n"
10288 "\n"
10289 msgstr ""
10290
10291 #. type: textblock
10292 #: ../fish/guestfish-actions.pod:2801 ../src/guestfs-actions.pod:4193
10293 msgid ""
10294 "This command erases existing data on C<device> and formats the device as a "
10295 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10296 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10297 msgstr ""
10298
10299 #. type: textblock
10300 #: ../fish/guestfish-actions.pod:2809 ../fish/guestfish-actions.pod:2822
10301 #: ../fish/guestfish-actions.pod:2909 ../fish/guestfish-actions.pod:3560
10302 #: ../fish/guestfish-actions.pod:4086 ../fish/guestfish-actions.pod:4423
10303 #: ../fish/guestfish-actions.pod:4446 ../fish/guestfish-actions.pod:4468
10304 #: ../fish/guestfish-actions.pod:5214 ../src/guestfs-actions.pod:4200
10305 #: ../src/guestfs-actions.pod:4223 ../src/guestfs-actions.pod:4366
10306 #: ../src/guestfs-actions.pod:5459 ../src/guestfs-actions.pod:6247
10307 #: ../src/guestfs-actions.pod:6696 ../src/guestfs-actions.pod:6726
10308 #: ../src/guestfs-actions.pod:6759 ../src/guestfs-actions.pod:7958
10309 msgid ""
10310 "B<This command is dangerous.  Without careful use you can easily destroy all "
10311 "your data>."
10312 msgstr ""
10313
10314 #. type: =head2
10315 #: ../fish/guestfish-actions.pod:2812
10316 msgid "luks-format-cipher"
10317 msgstr ""
10318
10319 #. type: verbatim
10320 #: ../fish/guestfish-actions.pod:2814
10321 #, no-wrap
10322 msgid ""
10323 " luks-format-cipher device keyslot cipher\n"
10324 "\n"
10325 msgstr ""
10326
10327 #. type: textblock
10328 #: ../fish/guestfish-actions.pod:2816
10329 msgid ""
10330 "This command is the same as L</luks-format> but it also allows you to set "
10331 "the C<cipher> used."
10332 msgstr ""
10333
10334 #. type: =head2
10335 #: ../fish/guestfish-actions.pod:2825
10336 msgid "luks-kill-slot"
10337 msgstr ""
10338
10339 #. type: verbatim
10340 #: ../fish/guestfish-actions.pod:2827
10341 #, no-wrap
10342 msgid ""
10343 " luks-kill-slot device keyslot\n"
10344 "\n"
10345 msgstr ""
10346
10347 #. type: textblock
10348 #: ../fish/guestfish-actions.pod:2829 ../src/guestfs-actions.pod:4240
10349 msgid ""
10350 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10351 "device C<device>.  C<key> must be one of the I<other> keys."
10352 msgstr ""
10353
10354 #. type: =head2
10355 #: ../fish/guestfish-actions.pod:2836
10356 msgid "luks-open"
10357 msgstr ""
10358
10359 #. type: verbatim
10360 #: ../fish/guestfish-actions.pod:2838
10361 #, no-wrap
10362 msgid ""
10363 " luks-open device mapname\n"
10364 "\n"
10365 msgstr ""
10366
10367 #. type: textblock
10368 #: ../fish/guestfish-actions.pod:2840 ../src/guestfs-actions.pod:4260
10369 msgid ""
10370 "This command opens a block device which has been encrypted according to the "
10371 "Linux Unified Key Setup (LUKS) standard."
10372 msgstr ""
10373
10374 #. type: textblock
10375 #: ../fish/guestfish-actions.pod:2843 ../src/guestfs-actions.pod:4263
10376 msgid "C<device> is the encrypted block device or partition."
10377 msgstr ""
10378
10379 #. type: textblock
10380 #: ../fish/guestfish-actions.pod:2845 ../src/guestfs-actions.pod:4265
10381 msgid ""
10382 "The caller must supply one of the keys associated with the LUKS block "
10383 "device, in the C<key> parameter."
10384 msgstr ""
10385
10386 #. type: textblock
10387 #: ../fish/guestfish-actions.pod:2848 ../src/guestfs-actions.pod:4268
10388 msgid ""
10389 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10390 "writes to this block device are decrypted from and encrypted to the "
10391 "underlying C<device> respectively."
10392 msgstr ""
10393
10394 #. type: textblock
10395 #: ../fish/guestfish-actions.pod:2852
10396 msgid ""
10397 "If this block device contains LVM volume groups, then calling L</vgscan> "
10398 "followed by L</vg-activate-all> will make them visible."
10399 msgstr ""
10400
10401 #. type: textblock
10402 #: ../fish/guestfish-actions.pod:2856
10403 msgid "Use L</list-dm-devices> to list all device mapper devices."
10404 msgstr ""
10405
10406 #. type: =head2
10407 #: ../fish/guestfish-actions.pod:2862
10408 msgid "luks-open-ro"
10409 msgstr ""
10410
10411 #. type: verbatim
10412 #: ../fish/guestfish-actions.pod:2864
10413 #, no-wrap
10414 msgid ""
10415 " luks-open-ro device mapname\n"
10416 "\n"
10417 msgstr ""
10418
10419 #. type: textblock
10420 #: ../fish/guestfish-actions.pod:2866
10421 msgid ""
10422 "This is the same as L</luks-open> except that a read-only mapping is created."
10423 msgstr ""
10424
10425 #. type: =head2
10426 #: ../fish/guestfish-actions.pod:2872
10427 msgid "lvcreate"
10428 msgstr ""
10429
10430 #. type: verbatim
10431 #: ../fish/guestfish-actions.pod:2874
10432 #, no-wrap
10433 msgid ""
10434 " lvcreate logvol volgroup mbytes\n"
10435 "\n"
10436 msgstr ""
10437
10438 #. type: textblock
10439 #: ../fish/guestfish-actions.pod:2876 ../src/guestfs-actions.pod:4314
10440 msgid ""
10441 "This creates an LVM logical volume called C<logvol> on the volume group "
10442 "C<volgroup>, with C<size> megabytes."
10443 msgstr ""
10444
10445 #. type: =head2
10446 #: ../fish/guestfish-actions.pod:2879
10447 msgid "lvm-canonical-lv-name"
10448 msgstr ""
10449
10450 #. type: verbatim
10451 #: ../fish/guestfish-actions.pod:2881
10452 #, no-wrap
10453 msgid ""
10454 " lvm-canonical-lv-name lvname\n"
10455 "\n"
10456 msgstr ""
10457
10458 #. type: textblock
10459 #: ../fish/guestfish-actions.pod:2883 ../src/guestfs-actions.pod:4327
10460 msgid ""
10461 "This converts alternative naming schemes for LVs that you might find to the "
10462 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10463 "LV>."
10464 msgstr ""
10465
10466 #. type: textblock
10467 #: ../fish/guestfish-actions.pod:2887 ../src/guestfs-actions.pod:4331
10468 msgid ""
10469 "This command returns an error if the C<lvname> parameter does not refer to a "
10470 "logical volume."
10471 msgstr ""
10472
10473 #. type: textblock
10474 #: ../fish/guestfish-actions.pod:2890
10475 msgid "See also L</is-lv>."
10476 msgstr ""
10477
10478 #. type: =head2
10479 #: ../fish/guestfish-actions.pod:2892
10480 msgid "lvm-clear-filter"
10481 msgstr ""
10482
10483 #. type: verbatim
10484 #: ../fish/guestfish-actions.pod:2894
10485 #, no-wrap
10486 msgid ""
10487 " lvm-clear-filter\n"
10488 "\n"
10489 msgstr ""
10490
10491 #. type: textblock
10492 #: ../fish/guestfish-actions.pod:2896
10493 msgid ""
10494 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
10495 "block device."
10496 msgstr ""
10497
10498 #. type: textblock
10499 #: ../fish/guestfish-actions.pod:2899 ../fish/guestfish-actions.pod:2930
10500 #: ../src/guestfs-actions.pod:4349 ../src/guestfs-actions.pod:4391
10501 msgid ""
10502 "This command also clears the LVM cache and performs a volume group scan."
10503 msgstr ""
10504
10505 #. type: =head2
10506 #: ../fish/guestfish-actions.pod:2902
10507 msgid "lvm-remove-all"
10508 msgstr ""
10509
10510 #. type: verbatim
10511 #: ../fish/guestfish-actions.pod:2904
10512 #, no-wrap
10513 msgid ""
10514 " lvm-remove-all\n"
10515 "\n"
10516 msgstr ""
10517
10518 #. type: textblock
10519 #: ../fish/guestfish-actions.pod:2906 ../src/guestfs-actions.pod:4361
10520 msgid ""
10521 "This command removes all LVM logical volumes, volume groups and physical "
10522 "volumes."
10523 msgstr ""
10524
10525 #. type: =head2
10526 #: ../fish/guestfish-actions.pod:2912
10527 msgid "lvm-set-filter"
10528 msgstr ""
10529
10530 #. type: verbatim
10531 #: ../fish/guestfish-actions.pod:2914
10532 #, no-wrap
10533 msgid ""
10534 " lvm-set-filter 'devices ...'\n"
10535 "\n"
10536 msgstr ""
10537
10538 #. type: textblock
10539 #: ../fish/guestfish-actions.pod:2916 ../src/guestfs-actions.pod:4377
10540 msgid ""
10541 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10542 "block devices in the list C<devices>, and will ignore all other attached "
10543 "block devices."
10544 msgstr ""
10545
10546 #. type: textblock
10547 #: ../fish/guestfish-actions.pod:2920 ../src/guestfs-actions.pod:4381
10548 msgid ""
10549 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10550 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10551 "there are two types of duplication possible: either cloned PVs/VGs which "
10552 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10553 "same name.  In normal operation you cannot create this situation, but you "
10554 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10555 "inside the LVM metadata."
10556 msgstr ""
10557
10558 #. type: textblock
10559 #: ../fish/guestfish-actions.pod:2933 ../src/guestfs-actions.pod:4394
10560 msgid "You can filter whole block devices or individual partitions."
10561 msgstr ""
10562
10563 #. type: textblock
10564 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4396
10565 msgid ""
10566 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10567 "filesystem), even if you are not filtering out that VG."
10568 msgstr ""
10569
10570 #. type: =head2
10571 #: ../fish/guestfish-actions.pod:2939
10572 msgid "lvremove"
10573 msgstr ""
10574
10575 #. type: verbatim
10576 #: ../fish/guestfish-actions.pod:2941
10577 #, no-wrap
10578 msgid ""
10579 " lvremove device\n"
10580 "\n"
10581 msgstr ""
10582
10583 #. type: textblock
10584 #: ../fish/guestfish-actions.pod:2943 ../src/guestfs-actions.pod:4410
10585 msgid ""
10586 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10587 "LV, such as C</dev/VG/LV>."
10588 msgstr ""
10589
10590 #. type: textblock
10591 #: ../fish/guestfish-actions.pod:2946 ../src/guestfs-actions.pod:4413
10592 msgid ""
10593 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10594 "dev/VG>."
10595 msgstr ""
10596
10597 #. type: =head2
10598 #: ../fish/guestfish-actions.pod:2949
10599 msgid "lvrename"
10600 msgstr ""
10601
10602 #. type: verbatim
10603 #: ../fish/guestfish-actions.pod:2951
10604 #, no-wrap
10605 msgid ""
10606 " lvrename logvol newlogvol\n"
10607 "\n"
10608 msgstr ""
10609
10610 #. type: textblock
10611 #: ../fish/guestfish-actions.pod:2953 ../src/guestfs-actions.pod:4427
10612 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10613 msgstr ""
10614
10615 #. type: =head2
10616 #: ../fish/guestfish-actions.pod:2955
10617 msgid "lvresize"
10618 msgstr ""
10619
10620 #. type: verbatim
10621 #: ../fish/guestfish-actions.pod:2957
10622 #, no-wrap
10623 msgid ""
10624 " lvresize device mbytes\n"
10625 "\n"
10626 msgstr ""
10627
10628 #. type: textblock
10629 #: ../fish/guestfish-actions.pod:2959 ../src/guestfs-actions.pod:4440
10630 msgid ""
10631 "This resizes (expands or shrinks) an existing LVM logical volume to "
10632 "C<mbytes>.  When reducing, data in the reduced part is lost."
10633 msgstr ""
10634
10635 #. type: =head2
10636 #: ../fish/guestfish-actions.pod:2963
10637 msgid "lvresize-free"
10638 msgstr ""
10639
10640 #. type: verbatim
10641 #: ../fish/guestfish-actions.pod:2965
10642 #, no-wrap
10643 msgid ""
10644 " lvresize-free lv percent\n"
10645 "\n"
10646 msgstr ""
10647
10648 #. type: textblock
10649 #: ../fish/guestfish-actions.pod:2967 ../src/guestfs-actions.pod:4455
10650 msgid ""
10651 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10652 "remaining free space in the volume group.  Commonly you would call this with "
10653 "pc = 100 which expands the logical volume as much as possible, using all "
10654 "remaining free space in the volume group."
10655 msgstr ""
10656
10657 #. type: =head2
10658 #: ../fish/guestfish-actions.pod:2973
10659 msgid "lvs"
10660 msgstr ""
10661
10662 #. type: verbatim
10663 #: ../fish/guestfish-actions.pod:2975
10664 #, no-wrap
10665 msgid ""
10666 " lvs\n"
10667 "\n"
10668 msgstr ""
10669
10670 #. type: textblock
10671 #: ../fish/guestfish-actions.pod:2977 ../src/guestfs-actions.pod:4470
10672 msgid ""
10673 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10674 "(8)> command."
10675 msgstr ""
10676
10677 #. type: textblock
10678 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4473
10679 msgid ""
10680 "This returns a list of the logical volume device names (eg. C</dev/"
10681 "VolGroup00/LogVol00>)."
10682 msgstr ""
10683
10684 #. type: textblock
10685 #: ../fish/guestfish-actions.pod:2983
10686 msgid "See also L</lvs-full>, L</list-filesystems>."
10687 msgstr ""
10688
10689 #. type: =head2
10690 #: ../fish/guestfish-actions.pod:2985
10691 msgid "lvs-full"
10692 msgstr ""
10693
10694 #. type: verbatim
10695 #: ../fish/guestfish-actions.pod:2987
10696 #, no-wrap
10697 msgid ""
10698 " lvs-full\n"
10699 "\n"
10700 msgstr ""
10701
10702 #. type: textblock
10703 #: ../fish/guestfish-actions.pod:2989 ../src/guestfs-actions.pod:4489
10704 msgid ""
10705 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10706 "(8)> command.  The \"full\" version includes all fields."
10707 msgstr ""
10708
10709 #. type: =head2
10710 #: ../fish/guestfish-actions.pod:2992
10711 msgid "lvuuid"
10712 msgstr ""
10713
10714 #. type: verbatim
10715 #: ../fish/guestfish-actions.pod:2994
10716 #, no-wrap
10717 msgid ""
10718 " lvuuid device\n"
10719 "\n"
10720 msgstr ""
10721
10722 #. type: textblock
10723 #: ../fish/guestfish-actions.pod:2996 ../src/guestfs-actions.pod:4504
10724 msgid "This command returns the UUID of the LVM LV C<device>."
10725 msgstr ""
10726
10727 #. type: =head2
10728 #: ../fish/guestfish-actions.pod:2998
10729 msgid "lxattrlist"
10730 msgstr ""
10731
10732 #. type: verbatim
10733 #: ../fish/guestfish-actions.pod:3000
10734 #, no-wrap
10735 msgid ""
10736 " lxattrlist path 'names ...'\n"
10737 "\n"
10738 msgstr ""
10739
10740 #. type: textblock
10741 #: ../fish/guestfish-actions.pod:3002 ../src/guestfs-actions.pod:4518
10742 msgid ""
10743 "This call allows you to get the extended attributes of multiple files, where "
10744 "all files are in the directory C<path>.  C<names> is the list of files from "
10745 "this directory."
10746 msgstr ""
10747
10748 #. type: textblock
10749 #: ../fish/guestfish-actions.pod:3006 ../src/guestfs-actions.pod:4522
10750 msgid ""
10751 "On return you get a flat list of xattr structs which must be interpreted "
10752 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
10753 "C<attrval> in this struct is zero-length to indicate there was an error "
10754 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
10755 "number (the number of following attributes for this file, which could be C<"
10756 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
10757 "for the first named file.  This repeats for the second and subsequent files."
10758 msgstr ""
10759
10760 #. type: textblock
10761 #: ../fish/guestfish-actions.pod:3016
10762 msgid ""
10763 "This call is intended for programs that want to efficiently list a directory "
10764 "contents without making many round-trips.  See also L</lstatlist> for a "
10765 "similarly efficient call for getting standard stats.  Very long directory "
10766 "listings might cause the protocol message size to be exceeded, causing this "
10767 "call to fail.  The caller must split up such requests into smaller groups of "
10768 "names."
10769 msgstr ""
10770
10771 #. type: =head2
10772 #: ../fish/guestfish-actions.pod:3024
10773 msgid "mkdir"
10774 msgstr ""
10775
10776 #. type: verbatim
10777 #: ../fish/guestfish-actions.pod:3026
10778 #, no-wrap
10779 msgid ""
10780 " mkdir path\n"
10781 "\n"
10782 msgstr ""
10783
10784 #. type: textblock
10785 #: ../fish/guestfish-actions.pod:3028 ../src/guestfs-actions.pod:4552
10786 msgid "Create a directory named C<path>."
10787 msgstr ""
10788
10789 #. type: =head2
10790 #: ../fish/guestfish-actions.pod:3030
10791 msgid "mkdir-mode"
10792 msgstr ""
10793
10794 #. type: verbatim
10795 #: ../fish/guestfish-actions.pod:3032
10796 #, no-wrap
10797 msgid ""
10798 " mkdir-mode path mode\n"
10799 "\n"
10800 msgstr ""
10801
10802 #. type: textblock
10803 #: ../fish/guestfish-actions.pod:3034 ../src/guestfs-actions.pod:4565
10804 msgid ""
10805 "This command creates a directory, setting the initial permissions of the "
10806 "directory to C<mode>."
10807 msgstr ""
10808
10809 #. type: textblock
10810 #: ../fish/guestfish-actions.pod:3037 ../src/guestfs-actions.pod:4568
10811 msgid ""
10812 "For common Linux filesystems, the actual mode which is set will be C<mode & "
10813 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
10814 "other ways."
10815 msgstr ""
10816
10817 #. type: textblock
10818 #: ../fish/guestfish-actions.pod:3041
10819 msgid "See also L</mkdir>, L</umask>"
10820 msgstr ""
10821
10822 #. type: =head2
10823 #: ../fish/guestfish-actions.pod:3043
10824 msgid "mkdir-p"
10825 msgstr ""
10826
10827 #. type: verbatim
10828 #: ../fish/guestfish-actions.pod:3045
10829 #, no-wrap
10830 msgid ""
10831 " mkdir-p path\n"
10832 "\n"
10833 msgstr ""
10834
10835 #. type: textblock
10836 #: ../fish/guestfish-actions.pod:3047 ../src/guestfs-actions.pod:4584
10837 msgid ""
10838 "Create a directory named C<path>, creating any parent directories as "
10839 "necessary.  This is like the C<mkdir -p> shell command."
10840 msgstr ""
10841
10842 #. type: =head2
10843 #: ../fish/guestfish-actions.pod:3050
10844 msgid "mkdtemp"
10845 msgstr ""
10846
10847 #. type: verbatim
10848 #: ../fish/guestfish-actions.pod:3052
10849 #, no-wrap
10850 msgid ""
10851 " mkdtemp template\n"
10852 "\n"
10853 msgstr ""
10854
10855 #. type: textblock
10856 #: ../fish/guestfish-actions.pod:3054 ../src/guestfs-actions.pod:4597
10857 msgid ""
10858 "This command creates a temporary directory.  The C<template> parameter "
10859 "should be a full pathname for the temporary directory name with the final "
10860 "six characters being \"XXXXXX\"."
10861 msgstr ""
10862
10863 #. type: textblock
10864 #: ../fish/guestfish-actions.pod:3059 ../src/guestfs-actions.pod:4602
10865 msgid ""
10866 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
10867 "being suitable for Windows filesystems."
10868 msgstr ""
10869
10870 #. type: textblock
10871 #: ../fish/guestfish-actions.pod:3062 ../src/guestfs-actions.pod:4605
10872 msgid "The name of the temporary directory that was created is returned."
10873 msgstr ""
10874
10875 #. type: textblock
10876 #: ../fish/guestfish-actions.pod:3065 ../src/guestfs-actions.pod:4608
10877 msgid "The temporary directory is created with mode 0700 and is owned by root."
10878 msgstr ""
10879
10880 #. type: textblock
10881 #: ../fish/guestfish-actions.pod:3068 ../src/guestfs-actions.pod:4611
10882 msgid ""
10883 "The caller is responsible for deleting the temporary directory and its "
10884 "contents after use."
10885 msgstr ""
10886
10887 #. type: textblock
10888 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4614
10889 msgid "See also: L<mkdtemp(3)>"
10890 msgstr ""
10891
10892 #. type: =head2
10893 #: ../fish/guestfish-actions.pod:3073
10894 msgid "mke2fs-J"
10895 msgstr ""
10896
10897 #. type: verbatim
10898 #: ../fish/guestfish-actions.pod:3075
10899 #, no-wrap
10900 msgid ""
10901 " mke2fs-J fstype blocksize device journal\n"
10902 "\n"
10903 msgstr ""
10904
10905 #. type: textblock
10906 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4630
10907 msgid ""
10908 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10909 "C<journal>.  It is equivalent to the command:"
10910 msgstr ""
10911
10912 #. type: verbatim
10913 #: ../fish/guestfish-actions.pod:3081 ../src/guestfs-actions.pod:4634
10914 #, no-wrap
10915 msgid ""
10916 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
10917 "\n"
10918 msgstr ""
10919
10920 #. type: textblock
10921 #: ../fish/guestfish-actions.pod:3083
10922 msgid "See also L</mke2journal>."
10923 msgstr ""
10924
10925 #. type: =head2
10926 #: ../fish/guestfish-actions.pod:3085
10927 msgid "mke2fs-JL"
10928 msgstr ""
10929
10930 #. type: verbatim
10931 #: ../fish/guestfish-actions.pod:3087
10932 #, no-wrap
10933 msgid ""
10934 " mke2fs-JL fstype blocksize device label\n"
10935 "\n"
10936 msgstr ""
10937
10938 #. type: textblock
10939 #: ../fish/guestfish-actions.pod:3089 ../src/guestfs-actions.pod:4651
10940 msgid ""
10941 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10942 "the journal labeled C<label>."
10943 msgstr ""
10944
10945 #. type: textblock
10946 #: ../fish/guestfish-actions.pod:3092
10947 msgid "See also L</mke2journal-L>."
10948 msgstr ""
10949
10950 #. type: =head2
10951 #: ../fish/guestfish-actions.pod:3094
10952 msgid "mke2fs-JU"
10953 msgstr ""
10954
10955 #. type: verbatim
10956 #: ../fish/guestfish-actions.pod:3096
10957 #, no-wrap
10958 msgid ""
10959 " mke2fs-JU fstype blocksize device uuid\n"
10960 "\n"
10961 msgstr ""
10962
10963 #. type: textblock
10964 #: ../fish/guestfish-actions.pod:3098 ../src/guestfs-actions.pod:4669
10965 msgid ""
10966 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10967 "the journal with UUID C<uuid>."
10968 msgstr ""
10969
10970 #. type: textblock
10971 #: ../fish/guestfish-actions.pod:3101
10972 msgid "See also L</mke2journal-U>."
10973 msgstr ""
10974
10975 #. type: =head2
10976 #: ../fish/guestfish-actions.pod:3103
10977 msgid "mke2journal"
10978 msgstr ""
10979
10980 #. type: verbatim
10981 #: ../fish/guestfish-actions.pod:3105
10982 #, no-wrap
10983 msgid ""
10984 " mke2journal blocksize device\n"
10985 "\n"
10986 msgstr ""
10987
10988 #. type: textblock
10989 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4685
10990 msgid ""
10991 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
10992 "command:"
10993 msgstr ""
10994
10995 #. type: verbatim
10996 #: ../fish/guestfish-actions.pod:3110 ../src/guestfs-actions.pod:4688
10997 #, no-wrap
10998 msgid ""
10999 " mke2fs -O journal_dev -b blocksize device\n"
11000 "\n"
11001 msgstr ""
11002
11003 #. type: =head2
11004 #: ../fish/guestfish-actions.pod:3112
11005 msgid "mke2journal-L"
11006 msgstr ""
11007
11008 #. type: verbatim
11009 #: ../fish/guestfish-actions.pod:3114
11010 #, no-wrap
11011 msgid ""
11012 " mke2journal-L blocksize label device\n"
11013 "\n"
11014 msgstr ""
11015
11016 #. type: textblock
11017 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4702
11018 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11019 msgstr ""
11020
11021 #. type: =head2
11022 #: ../fish/guestfish-actions.pod:3118
11023 msgid "mke2journal-U"
11024 msgstr ""
11025
11026 #. type: verbatim
11027 #: ../fish/guestfish-actions.pod:3120
11028 #, no-wrap
11029 msgid ""
11030 " mke2journal-U blocksize uuid device\n"
11031 "\n"
11032 msgstr ""
11033
11034 #. type: textblock
11035 #: ../fish/guestfish-actions.pod:3122 ../src/guestfs-actions.pod:4716
11036 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11037 msgstr ""
11038
11039 #. type: =head2
11040 #: ../fish/guestfish-actions.pod:3124
11041 msgid "mkfifo"
11042 msgstr ""
11043
11044 #. type: verbatim
11045 #: ../fish/guestfish-actions.pod:3126
11046 #, no-wrap
11047 msgid ""
11048 " mkfifo mode path\n"
11049 "\n"
11050 msgstr ""
11051
11052 #. type: textblock
11053 #: ../fish/guestfish-actions.pod:3128
11054 msgid ""
11055 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
11056 "is just a convenient wrapper around L</mknod>."
11057 msgstr ""
11058
11059 #. type: =head2
11060 #: ../fish/guestfish-actions.pod:3134
11061 msgid "mkfs"
11062 msgstr ""
11063
11064 #. type: verbatim
11065 #: ../fish/guestfish-actions.pod:3136
11066 #, no-wrap
11067 msgid ""
11068 " mkfs fstype device\n"
11069 "\n"
11070 msgstr ""
11071
11072 #. type: textblock
11073 #: ../fish/guestfish-actions.pod:3138 ../src/guestfs-actions.pod:4746
11074 msgid ""
11075 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11076 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
11077 msgstr ""
11078
11079 #. type: =head2
11080 #: ../fish/guestfish-actions.pod:3142
11081 msgid "mkfs-b"
11082 msgstr ""
11083
11084 #. type: verbatim
11085 #: ../fish/guestfish-actions.pod:3144
11086 #, no-wrap
11087 msgid ""
11088 " mkfs-b fstype blocksize device\n"
11089 "\n"
11090 msgstr ""
11091
11092 #. type: textblock
11093 #: ../fish/guestfish-actions.pod:3146
11094 msgid ""
11095 "This call is similar to L</mkfs>, but it allows you to control the block "
11096 "size of the resulting filesystem.  Supported block sizes depend on the "
11097 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11098 msgstr ""
11099
11100 #. type: textblock
11101 #: ../fish/guestfish-actions.pod:3151 ../fish/guestfish-actions.pod:3178
11102 #: ../src/guestfs-actions.pod:4774 ../src/guestfs-actions.pod:4812
11103 msgid ""
11104 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11105 "cluster size."
11106 msgstr ""
11107
11108 #. type: textblock
11109 #: ../fish/guestfish-actions.pod:3154
11110 msgid ""
11111 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
11112 "instead."
11113 msgstr ""
11114
11115 #. type: =head2
11116 #: ../fish/guestfish-actions.pod:3161
11117 msgid "mkfs-opts"
11118 msgstr ""
11119
11120 #. type: verbatim
11121 #: ../fish/guestfish-actions.pod:3163
11122 #, no-wrap
11123 msgid ""
11124 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
11125 "\n"
11126 msgstr ""
11127
11128 #. type: textblock
11129 #: ../fish/guestfish-actions.pod:3165 ../src/guestfs-actions.pod:4799
11130 msgid ""
11131 "This function creates a filesystem on C<device>.  The filesystem type is "
11132 "C<fstype>, for example C<ext3>."
11133 msgstr ""
11134
11135 #. type: =item
11136 #: ../fish/guestfish-actions.pod:3172 ../src/guestfs-actions.pod:4806
11137 msgid "C<blocksize>"
11138 msgstr ""
11139
11140 #. type: textblock
11141 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4808
11142 msgid ""
11143 "The filesystem block size.  Supported block sizes depend on the filesystem "
11144 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
11145 "filesystems."
11146 msgstr ""
11147
11148 #. type: textblock
11149 #: ../fish/guestfish-actions.pod:3181 ../src/guestfs-actions.pod:4815
11150 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
11151 msgstr ""
11152
11153 #. type: =item
11154 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4817
11155 msgid "C<features>"
11156 msgstr ""
11157
11158 #. type: textblock
11159 #: ../fish/guestfish-actions.pod:3185 ../src/guestfs-actions.pod:4819
11160 msgid "This passes the I<-O> parameter to the external mkfs program."
11161 msgstr ""
11162
11163 #. type: textblock
11164 #: ../fish/guestfish-actions.pod:3187 ../src/guestfs-actions.pod:4821
11165 msgid ""
11166 "For certain filesystem types, this allows extra filesystem features to be "
11167 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
11168 msgstr ""
11169
11170 #. type: textblock
11171 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4825
11172 msgid ""
11173 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
11174 "type."
11175 msgstr ""
11176
11177 #. type: =item
11178 #: ../fish/guestfish-actions.pod:3194 ../src/guestfs-actions.pod:4828
11179 msgid "C<inode>"
11180 msgstr ""
11181
11182 #. type: textblock
11183 #: ../fish/guestfish-actions.pod:3196 ../src/guestfs-actions.pod:4830
11184 msgid ""
11185 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
11186 "sets the inode size (only for ext2/3/4 filesystems at present)."
11187 msgstr ""
11188
11189 #. type: =item
11190 #: ../fish/guestfish-actions.pod:3199 ../src/guestfs-actions.pod:4833
11191 msgid "C<sectorsize>"
11192 msgstr ""
11193
11194 #. type: textblock
11195 #: ../fish/guestfish-actions.pod:3201 ../src/guestfs-actions.pod:4835
11196 msgid ""
11197 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
11198 "sets sector size for ufs filesystem."
11199 msgstr ""
11200
11201 #. type: =head2
11202 #: ../fish/guestfish-actions.pod:3208
11203 msgid "mkmountpoint"
11204 msgstr ""
11205
11206 #. type: verbatim
11207 #: ../fish/guestfish-actions.pod:3210
11208 #, no-wrap
11209 msgid ""
11210 " mkmountpoint exemptpath\n"
11211 "\n"
11212 msgstr ""
11213
11214 #. type: textblock
11215 #: ../fish/guestfish-actions.pod:3212
11216 msgid ""
11217 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
11218 "to create extra mountpoints before mounting the first filesystem."
11219 msgstr ""
11220
11221 #. type: textblock
11222 #: ../fish/guestfish-actions.pod:3216 ../src/guestfs-actions.pod:4878
11223 msgid ""
11224 "These calls are I<only> necessary in some very limited circumstances, mainly "
11225 "the case where you want to mount a mix of unrelated and/or read-only "
11226 "filesystems together."
11227 msgstr ""
11228
11229 #. type: textblock
11230 #: ../fish/guestfish-actions.pod:3220 ../src/guestfs-actions.pod:4882
11231 msgid ""
11232 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11233 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11234 "inside that.  You can unpack this as follows in guestfish:"
11235 msgstr ""
11236
11237 #. type: verbatim
11238 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4887
11239 #, no-wrap
11240 msgid ""
11241 " add-ro Fedora-11-i686-Live.iso\n"
11242 " run\n"
11243 " mkmountpoint /cd\n"
11244 " mkmountpoint /sqsh\n"
11245 " mkmountpoint /ext3fs\n"
11246 " mount /dev/sda /cd\n"
11247 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11248 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11249 "\n"
11250 msgstr ""
11251
11252 #. type: textblock
11253 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4896
11254 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11255 msgstr ""
11256
11257 #. type: textblock
11258 #: ../fish/guestfish-actions.pod:3236
11259 msgid ""
11260 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
11261 "unexpected errors if you try to mix these calls.  It is safest to manually "
11262 "unmount filesystems and remove mountpoints after use."
11263 msgstr ""
11264
11265 #. type: textblock
11266 #: ../fish/guestfish-actions.pod:3240
11267 msgid ""
11268 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
11269 "for this to work for manual mountpoints, you must ensure that the innermost "
11270 "mountpoints have the longest pathnames, as in the example code above."
11271 msgstr ""
11272
11273 #. type: textblock
11274 #: ../fish/guestfish-actions.pod:3245 ../src/guestfs-actions.pod:4907
11275 msgid ""
11276 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11277 msgstr ""
11278
11279 #. type: textblock
11280 #: ../fish/guestfish-actions.pod:3247
11281 msgid ""
11282 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
11283 "L</umount-all> to be called when the handle is closed which can also trigger "
11284 "these issues."
11285 msgstr ""
11286
11287 #. type: =head2
11288 #: ../fish/guestfish-actions.pod:3251
11289 msgid "mknod"
11290 msgstr ""
11291
11292 #. type: verbatim
11293 #: ../fish/guestfish-actions.pod:3253
11294 #, no-wrap
11295 msgid ""
11296 " mknod mode devmajor devminor path\n"
11297 "\n"
11298 msgstr ""
11299
11300 #. type: textblock
11301 #: ../fish/guestfish-actions.pod:3255 ../src/guestfs-actions.pod:4926
11302 msgid ""
11303 "This call creates block or character special devices, or named pipes (FIFOs)."
11304 msgstr ""
11305
11306 #. type: textblock
11307 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:4929
11308 msgid ""
11309 "The C<mode> parameter should be the mode, using the standard constants.  "
11310 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11311 "used when creating block and character special devices."
11312 msgstr ""
11313
11314 #. type: textblock
11315 #: ../fish/guestfish-actions.pod:3263
11316 msgid ""
11317 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11318 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11319 "regular file).  These constants are available in the standard Linux header "
11320 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
11321 "wrappers around this command which bitwise OR in the appropriate constant "
11322 "for you."
11323 msgstr ""
11324
11325 #. type: =head2
11326 #: ../fish/guestfish-actions.pod:3273
11327 msgid "mknod-b"
11328 msgstr ""
11329
11330 #. type: verbatim
11331 #: ../fish/guestfish-actions.pod:3275
11332 #, no-wrap
11333 msgid ""
11334 " mknod-b mode devmajor devminor path\n"
11335 "\n"
11336 msgstr ""
11337
11338 #. type: textblock
11339 #: ../fish/guestfish-actions.pod:3277
11340 msgid ""
11341 "This call creates a block device node called C<path> with mode C<mode> and "
11342 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11343 "wrapper around L</mknod>."
11344 msgstr ""
11345
11346 #. type: =head2
11347 #: ../fish/guestfish-actions.pod:3283
11348 msgid "mknod-c"
11349 msgstr ""
11350
11351 #. type: verbatim
11352 #: ../fish/guestfish-actions.pod:3285
11353 #, no-wrap
11354 msgid ""
11355 " mknod-c mode devmajor devminor path\n"
11356 "\n"
11357 msgstr ""
11358
11359 #. type: textblock
11360 #: ../fish/guestfish-actions.pod:3287
11361 msgid ""
11362 "This call creates a char device node called C<path> with mode C<mode> and "
11363 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11364 "wrapper around L</mknod>."
11365 msgstr ""
11366
11367 #. type: =head2
11368 #: ../fish/guestfish-actions.pod:3293
11369 msgid "mkswap"
11370 msgstr ""
11371
11372 #. type: verbatim
11373 #: ../fish/guestfish-actions.pod:3295
11374 #, no-wrap
11375 msgid ""
11376 " mkswap device\n"
11377 "\n"
11378 msgstr ""
11379
11380 #. type: textblock
11381 #: ../fish/guestfish-actions.pod:3297 ../src/guestfs-actions.pod:4992
11382 msgid "Create a swap partition on C<device>."
11383 msgstr ""
11384
11385 #. type: =head2
11386 #: ../fish/guestfish-actions.pod:3299
11387 msgid "mkswap-L"
11388 msgstr ""
11389
11390 #. type: verbatim
11391 #: ../fish/guestfish-actions.pod:3301
11392 #, no-wrap
11393 msgid ""
11394 " mkswap-L label device\n"
11395 "\n"
11396 msgstr ""
11397
11398 #. type: textblock
11399 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:5005
11400 msgid "Create a swap partition on C<device> with label C<label>."
11401 msgstr ""
11402
11403 #. type: textblock
11404 #: ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:5007
11405 msgid ""
11406 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11407 "sda>), just to a partition.  This appears to be a limitation of the kernel "
11408 "or swap tools."
11409 msgstr ""
11410
11411 #. type: =head2
11412 #: ../fish/guestfish-actions.pod:3309
11413 msgid "mkswap-U"
11414 msgstr ""
11415
11416 #. type: verbatim
11417 #: ../fish/guestfish-actions.pod:3311
11418 #, no-wrap
11419 msgid ""
11420 " mkswap-U uuid device\n"
11421 "\n"
11422 msgstr ""
11423
11424 #. type: textblock
11425 #: ../fish/guestfish-actions.pod:3313 ../src/guestfs-actions.pod:5022
11426 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11427 msgstr ""
11428
11429 #. type: =head2
11430 #: ../fish/guestfish-actions.pod:3315
11431 msgid "mkswap-file"
11432 msgstr ""
11433
11434 #. type: verbatim
11435 #: ../fish/guestfish-actions.pod:3317
11436 #, no-wrap
11437 msgid ""
11438 " mkswap-file path\n"
11439 "\n"
11440 msgstr ""
11441
11442 #. type: textblock
11443 #: ../fish/guestfish-actions.pod:3319 ../src/guestfs-actions.pod:5034
11444 msgid "Create a swap file."
11445 msgstr ""
11446
11447 #. type: textblock
11448 #: ../fish/guestfish-actions.pod:3321
11449 msgid ""
11450 "This command just writes a swap file signature to an existing file.  To "
11451 "create the file itself, use something like L</fallocate>."
11452 msgstr ""
11453
11454 #. type: =head2
11455 #: ../fish/guestfish-actions.pod:3324
11456 msgid "modprobe"
11457 msgstr ""
11458
11459 #. type: verbatim
11460 #: ../fish/guestfish-actions.pod:3326
11461 #, no-wrap
11462 msgid ""
11463 " modprobe modulename\n"
11464 "\n"
11465 msgstr ""
11466
11467 #. type: textblock
11468 #: ../fish/guestfish-actions.pod:3328 ../src/guestfs-actions.pod:5049
11469 msgid "This loads a kernel module in the appliance."
11470 msgstr ""
11471
11472 #. type: textblock
11473 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5051
11474 msgid ""
11475 "The kernel module must have been whitelisted when libguestfs was built (see "
11476 "C<appliance/kmod.whitelist.in> in the source)."
11477 msgstr ""
11478
11479 #. type: =head2
11480 #: ../fish/guestfish-actions.pod:3333
11481 msgid "mount"
11482 msgstr ""
11483
11484 #. type: verbatim
11485 #: ../fish/guestfish-actions.pod:3335
11486 #, no-wrap
11487 msgid ""
11488 " mount device mountpoint\n"
11489 "\n"
11490 msgstr ""
11491
11492 #. type: textblock
11493 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5065
11494 msgid ""
11495 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11496 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11497 "those block devices contain partitions, they will have the usual names (eg. "
11498 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11499 msgstr ""
11500
11501 #. type: textblock
11502 #: ../fish/guestfish-actions.pod:3343 ../src/guestfs-actions.pod:5071
11503 msgid ""
11504 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11505 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11506 "mounted on directories which already exist."
11507 msgstr ""
11508
11509 #. type: textblock
11510 #: ../fish/guestfish-actions.pod:3348 ../src/guestfs-actions.pod:5076
11511 msgid ""
11512 "The mounted filesystem is writable, if we have sufficient permissions on the "
11513 "underlying device."
11514 msgstr ""
11515
11516 #. type: textblock
11517 #: ../fish/guestfish-actions.pod:3351
11518 msgid ""
11519 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
11520 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
11521 "problems for users.  If your program might need to work with older versions "
11522 "of libguestfs, use L</mount-options> instead (using an empty string for the "
11523 "first parameter if you don't want any options)."
11524 msgstr ""
11525
11526 #. type: =head2
11527 #: ../fish/guestfish-actions.pod:3358
11528 msgid "mount-9p"
11529 msgstr ""
11530
11531 #. type: verbatim
11532 #: ../fish/guestfish-actions.pod:3360
11533 #, no-wrap
11534 msgid ""
11535 " mount-9p mounttag mountpoint [options:..]\n"
11536 "\n"
11537 msgstr ""
11538
11539 #. type: textblock
11540 #: ../fish/guestfish-actions.pod:3362 ../src/guestfs-actions.pod:5105
11541 msgid ""
11542 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
11543 "C<mountpoint>."
11544 msgstr ""
11545
11546 #. type: textblock
11547 #: ../fish/guestfish-actions.pod:3365 ../src/guestfs-actions.pod:5108
11548 msgid ""
11549 "If required, C<trans=virtio> will be automatically added to the options.  "
11550 "Any other options required can be passed in the optional C<options> "
11551 "parameter."
11552 msgstr ""
11553
11554 #. type: =head2
11555 #: ../fish/guestfish-actions.pod:3371
11556 msgid "mount-loop"
11557 msgstr ""
11558
11559 #. type: verbatim
11560 #: ../fish/guestfish-actions.pod:3373
11561 #, no-wrap
11562 msgid ""
11563 " mount-loop file mountpoint\n"
11564 "\n"
11565 msgstr ""
11566
11567 #. type: textblock
11568 #: ../fish/guestfish-actions.pod:3375 ../src/guestfs-actions.pod:5147
11569 msgid ""
11570 "This command lets you mount C<file> (a filesystem image in a file) on a "
11571 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11572 "mountpoint>."
11573 msgstr ""
11574
11575 #. type: =head2
11576 #: ../fish/guestfish-actions.pod:3379
11577 msgid "mount-options"
11578 msgstr ""
11579
11580 #. type: verbatim
11581 #: ../fish/guestfish-actions.pod:3381
11582 #, no-wrap
11583 msgid ""
11584 " mount-options options device mountpoint\n"
11585 "\n"
11586 msgstr ""
11587
11588 #. type: textblock
11589 #: ../fish/guestfish-actions.pod:3383
11590 msgid ""
11591 "This is the same as the L</mount> command, but it allows you to set the "
11592 "mount options as for the L<mount(8)> I<-o> flag."
11593 msgstr ""
11594
11595 #. type: textblock
11596 #: ../fish/guestfish-actions.pod:3387 ../src/guestfs-actions.pod:5167
11597 msgid ""
11598 "If the C<options> parameter is an empty string, then no options are passed "
11599 "(all options default to whatever the filesystem uses)."
11600 msgstr ""
11601
11602 #. type: =head2
11603 #: ../fish/guestfish-actions.pod:3391
11604 msgid "mount-ro"
11605 msgstr ""
11606
11607 #. type: verbatim
11608 #: ../fish/guestfish-actions.pod:3393
11609 #, no-wrap
11610 msgid ""
11611 " mount-ro device mountpoint\n"
11612 "\n"
11613 msgstr ""
11614
11615 #. type: textblock
11616 #: ../fish/guestfish-actions.pod:3395
11617 msgid ""
11618 "This is the same as the L</mount> command, but it mounts the filesystem with "
11619 "the read-only (I<-o ro>) flag."
11620 msgstr ""
11621
11622 #. type: =head2
11623 #: ../fish/guestfish-actions.pod:3398
11624 msgid "mount-vfs"
11625 msgstr ""
11626
11627 #. type: verbatim
11628 #: ../fish/guestfish-actions.pod:3400
11629 #, no-wrap
11630 msgid ""
11631 " mount-vfs options vfstype device mountpoint\n"
11632 "\n"
11633 msgstr ""
11634
11635 #. type: textblock
11636 #: ../fish/guestfish-actions.pod:3402
11637 msgid ""
11638 "This is the same as the L</mount> command, but it allows you to set both the "
11639 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
11640 msgstr ""
11641
11642 #. type: =head2
11643 #: ../fish/guestfish-actions.pod:3406
11644 msgid "mountpoints"
11645 msgstr ""
11646
11647 #. type: verbatim
11648 #: ../fish/guestfish-actions.pod:3408
11649 #, no-wrap
11650 msgid ""
11651 " mountpoints\n"
11652 "\n"
11653 msgstr ""
11654
11655 #. type: textblock
11656 #: ../fish/guestfish-actions.pod:3410
11657 msgid ""
11658 "This call is similar to L</mounts>.  That call returns a list of devices.  "
11659 "This one returns a hash table (map) of device name to directory where the "
11660 "device is mounted."
11661 msgstr ""
11662
11663 #. type: =head2
11664 #: ../fish/guestfish-actions.pod:3414
11665 msgid "mounts"
11666 msgstr ""
11667
11668 #. type: verbatim
11669 #: ../fish/guestfish-actions.pod:3416
11670 #, no-wrap
11671 msgid ""
11672 " mounts\n"
11673 "\n"
11674 msgstr ""
11675
11676 #. type: textblock
11677 #: ../fish/guestfish-actions.pod:3418 ../src/guestfs-actions.pod:5228
11678 msgid ""
11679 "This returns the list of currently mounted filesystems.  It returns the list "
11680 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
11681 msgstr ""
11682
11683 #. type: textblock
11684 #: ../fish/guestfish-actions.pod:3421 ../src/guestfs-actions.pod:5231
11685 msgid "Some internal mounts are not shown."
11686 msgstr ""
11687
11688 #. type: textblock
11689 #: ../fish/guestfish-actions.pod:3423
11690 msgid "See also: L</mountpoints>"
11691 msgstr ""
11692
11693 #. type: =head2
11694 #: ../fish/guestfish-actions.pod:3425
11695 msgid "mv"
11696 msgstr ""
11697
11698 #. type: verbatim
11699 #: ../fish/guestfish-actions.pod:3427
11700 #, no-wrap
11701 msgid ""
11702 " mv src dest\n"
11703 "\n"
11704 msgstr ""
11705
11706 #. type: textblock
11707 #: ../fish/guestfish-actions.pod:3429 ../src/guestfs-actions.pod:5248
11708 msgid ""
11709 "This moves a file from C<src> to C<dest> where C<dest> is either a "
11710 "destination filename or destination directory."
11711 msgstr ""
11712
11713 #. type: =head2
11714 #: ../fish/guestfish-actions.pod:3432
11715 msgid "ntfs-3g-probe"
11716 msgstr ""
11717
11718 #. type: verbatim
11719 #: ../fish/guestfish-actions.pod:3434
11720 #, no-wrap
11721 msgid ""
11722 " ntfs-3g-probe true|false device\n"
11723 "\n"
11724 msgstr ""
11725
11726 #. type: textblock
11727 #: ../fish/guestfish-actions.pod:3436 ../src/guestfs-actions.pod:5262
11728 msgid ""
11729 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
11730 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
11731 "write, and some cannot be mounted at all)."
11732 msgstr ""
11733
11734 #. type: textblock
11735 #: ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5266
11736 msgid ""
11737 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
11738 "can be mounted read-write.  Set it to false if you want to test if the "
11739 "volume can be mounted read-only."
11740 msgstr ""
11741
11742 #. type: textblock
11743 #: ../fish/guestfish-actions.pod:3444 ../src/guestfs-actions.pod:5270
11744 msgid ""
11745 "The return value is an integer which C<0> if the operation would succeed, or "
11746 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
11747 msgstr ""
11748
11749 #. type: =head2
11750 #: ../fish/guestfish-actions.pod:3448
11751 msgid "ntfsresize"
11752 msgstr ""
11753
11754 #. type: verbatim
11755 #: ../fish/guestfish-actions.pod:3450
11756 #, no-wrap
11757 msgid ""
11758 " ntfsresize device\n"
11759 "\n"
11760 msgstr ""
11761
11762 #. type: textblock
11763 #: ../fish/guestfish-actions.pod:3452 ../fish/guestfish-actions.pod:3476
11764 #: ../src/guestfs-actions.pod:5291 ../src/guestfs-actions.pod:5323
11765 msgid ""
11766 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
11767 "size of the underlying device."
11768 msgstr ""
11769
11770 #. type: textblock
11771 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5294
11772 msgid ""
11773 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
11774 "consistency check (for safety).  You have to boot into Windows to perform "
11775 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
11776 "resize filesystems which have been marked in this way.  So in effect it is "
11777 "not possible to call ntfsresize multiple times on a single filesystem "
11778 "without booting into Windows between each resize."
11779 msgstr ""
11780
11781 #. type: textblock
11782 #: ../fish/guestfish-actions.pod:3463 ../fish/guestfish-actions.pod:3502
11783 #: ../src/guestfs-actions.pod:5302 ../src/guestfs-actions.pod:5349
11784 msgid "See also L<ntfsresize(8)>."
11785 msgstr ""
11786
11787 #. type: textblock
11788 #: ../fish/guestfish-actions.pod:3465 ../fish/guestfish-actions.pod:3513
11789 msgid ""
11790 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
11791 "call instead."
11792 msgstr ""
11793
11794 #. type: =head2
11795 #: ../fish/guestfish-actions.pod:3472
11796 msgid "ntfsresize-opts"
11797 msgstr ""
11798
11799 #. type: verbatim
11800 #: ../fish/guestfish-actions.pod:3474
11801 #, no-wrap
11802 msgid ""
11803 " ntfsresize-opts device [size:..] [force:..]\n"
11804 "\n"
11805 msgstr ""
11806
11807 #. type: textblock
11808 #: ../fish/guestfish-actions.pod:3485 ../src/guestfs-actions.pod:5332
11809 msgid ""
11810 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
11811 "resized to fit the container (eg. partition)."
11812 msgstr ""
11813
11814 #. type: =item
11815 #: ../fish/guestfish-actions.pod:3488 ../src/guestfs-actions.pod:5335
11816 msgid "C<force>"
11817 msgstr ""
11818
11819 #. type: textblock
11820 #: ../fish/guestfish-actions.pod:3490 ../src/guestfs-actions.pod:5337
11821 msgid ""
11822 "If this option is true, then force the resize of the filesystem even if the "
11823 "filesystem is marked as requiring a consistency check."
11824 msgstr ""
11825
11826 #. type: textblock
11827 #: ../fish/guestfish-actions.pod:3493
11828 msgid ""
11829 "After the resize operation, the filesystem is always marked as requiring a "
11830 "consistency check (for safety).  You have to boot into Windows to perform "
11831 "this check and clear this condition.  If you I<don't> set the C<force> "
11832 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
11833 "a single filesystem without booting into Windows between each resize."
11834 msgstr ""
11835
11836 #. type: =head2
11837 #: ../fish/guestfish-actions.pod:3506
11838 msgid "ntfsresize-size"
11839 msgstr ""
11840
11841 #. type: verbatim
11842 #: ../fish/guestfish-actions.pod:3508
11843 #, no-wrap
11844 msgid ""
11845 " ntfsresize-size device size\n"
11846 "\n"
11847 msgstr ""
11848
11849 #. type: textblock
11850 #: ../fish/guestfish-actions.pod:3510
11851 msgid ""
11852 "This command is the same as L</ntfsresize> except that it allows you to "
11853 "specify the new size (in bytes) explicitly."
11854 msgstr ""
11855
11856 #. type: =head2
11857 #: ../fish/guestfish-actions.pod:3520
11858 msgid "part-add"
11859 msgstr ""
11860
11861 #. type: verbatim
11862 #: ../fish/guestfish-actions.pod:3522
11863 #, no-wrap
11864 msgid ""
11865 " part-add device prlogex startsect endsect\n"
11866 "\n"
11867 msgstr ""
11868
11869 #. type: textblock
11870 #: ../fish/guestfish-actions.pod:3524
11871 msgid ""
11872 "This command adds a partition to C<device>.  If there is no partition table "
11873 "on the device, call L</part-init> first."
11874 msgstr ""
11875
11876 #. type: textblock
11877 #: ../fish/guestfish-actions.pod:3527 ../src/guestfs-actions.pod:5410
11878 msgid ""
11879 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
11880 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
11881 "C<logical>) and C<e> (or C<extended>) partition types."
11882 msgstr ""
11883
11884 #. type: textblock
11885 #: ../fish/guestfish-actions.pod:3532 ../src/guestfs-actions.pod:5415
11886 msgid ""
11887 "C<startsect> and C<endsect> are the start and end of the partition in "
11888 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
11889 "from the end of the disk (C<-1> is the last sector)."
11890 msgstr ""
11891
11892 #. type: textblock
11893 #: ../fish/guestfish-actions.pod:3536
11894 msgid ""
11895 "Creating a partition which covers the whole disk is not so easy.  Use L</"
11896 "part-disk> to do that."
11897 msgstr ""
11898
11899 #. type: =head2
11900 #: ../fish/guestfish-actions.pod:3539
11901 msgid "part-del"
11902 msgstr ""
11903
11904 #. type: verbatim
11905 #: ../fish/guestfish-actions.pod:3541
11906 #, no-wrap
11907 msgid ""
11908 " part-del device partnum\n"
11909 "\n"
11910 msgstr ""
11911
11912 #. type: textblock
11913 #: ../fish/guestfish-actions.pod:3543 ../src/guestfs-actions.pod:5433
11914 msgid "This command deletes the partition numbered C<partnum> on C<device>."
11915 msgstr ""
11916
11917 #. type: textblock
11918 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5435
11919 msgid ""
11920 "Note that in the case of MBR partitioning, deleting an extended partition "
11921 "also deletes any logical partitions it contains."
11922 msgstr ""
11923
11924 #. type: =head2
11925 #: ../fish/guestfish-actions.pod:3549
11926 msgid "part-disk"
11927 msgstr ""
11928
11929 #. type: verbatim
11930 #: ../fish/guestfish-actions.pod:3551
11931 #, no-wrap
11932 msgid ""
11933 " part-disk device parttype\n"
11934 "\n"
11935 msgstr ""
11936
11937 #. type: textblock
11938 #: ../fish/guestfish-actions.pod:3553
11939 msgid ""
11940 "This command is simply a combination of L</part-init> followed by L</part-"
11941 "add> to create a single primary partition covering the whole disk."
11942 msgstr ""
11943
11944 #. type: textblock
11945 #: ../fish/guestfish-actions.pod:3557
11946 msgid ""
11947 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
11948 "possible values are described in L</part-init>."
11949 msgstr ""
11950
11951 #. type: =head2
11952 #: ../fish/guestfish-actions.pod:3563
11953 msgid "part-get-bootable"
11954 msgstr ""
11955
11956 #. type: verbatim
11957 #: ../fish/guestfish-actions.pod:3565
11958 #, no-wrap
11959 msgid ""
11960 " part-get-bootable device partnum\n"
11961 "\n"
11962 msgstr ""
11963
11964 #. type: textblock
11965 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5471
11966 msgid ""
11967 "This command returns true if the partition C<partnum> on C<device> has the "
11968 "bootable flag set."
11969 msgstr ""
11970
11971 #. type: textblock
11972 #: ../fish/guestfish-actions.pod:3570
11973 msgid "See also L</part-set-bootable>."
11974 msgstr ""
11975
11976 #. type: =head2
11977 #: ../fish/guestfish-actions.pod:3572
11978 msgid "part-get-mbr-id"
11979 msgstr ""
11980
11981 #. type: verbatim
11982 #: ../fish/guestfish-actions.pod:3574
11983 #, no-wrap
11984 msgid ""
11985 " part-get-mbr-id device partnum\n"
11986 "\n"
11987 msgstr ""
11988
11989 #. type: textblock
11990 #: ../fish/guestfish-actions.pod:3576 ../src/guestfs-actions.pod:5487
11991 msgid ""
11992 "Returns the MBR type byte (also known as the ID byte) from the numbered "
11993 "partition C<partnum>."
11994 msgstr ""
11995
11996 #. type: textblock
11997 #: ../fish/guestfish-actions.pod:3579 ../fish/guestfish-actions.pod:3723
11998 msgid ""
11999 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
12000 "undefined results for other partition table types (see L</part-get-"
12001 "parttype>)."
12002 msgstr ""
12003
12004 #. type: =head2
12005 #: ../fish/guestfish-actions.pod:3583
12006 msgid "part-get-parttype"
12007 msgstr ""
12008
12009 #. type: verbatim
12010 #: ../fish/guestfish-actions.pod:3585
12011 #, no-wrap
12012 msgid ""
12013 " part-get-parttype device\n"
12014 "\n"
12015 msgstr ""
12016
12017 #. type: textblock
12018 #: ../fish/guestfish-actions.pod:3587 ../src/guestfs-actions.pod:5504
12019 msgid ""
12020 "This command examines the partition table on C<device> and returns the "
12021 "partition table type (format) being used."
12022 msgstr ""
12023
12024 #. type: textblock
12025 #: ../fish/guestfish-actions.pod:3590
12026 msgid ""
12027 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12028 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
12029 "possible, although unusual.  See L</part-init> for a full list."
12030 msgstr ""
12031
12032 #. type: =head2
12033 #: ../fish/guestfish-actions.pod:3595
12034 msgid "part-init"
12035 msgstr ""
12036
12037 #. type: verbatim
12038 #: ../fish/guestfish-actions.pod:3597
12039 #, no-wrap
12040 msgid ""
12041 " part-init device parttype\n"
12042 "\n"
12043 msgstr ""
12044
12045 #. type: textblock
12046 #: ../fish/guestfish-actions.pod:3599 ../src/guestfs-actions.pod:5524
12047 msgid ""
12048 "This creates an empty partition table on C<device> of one of the partition "
12049 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
12050 "(for large disks)."
12051 msgstr ""
12052
12053 #. type: textblock
12054 #: ../fish/guestfish-actions.pod:3603
12055 msgid ""
12056 "Initially there are no partitions.  Following this, you should call L</part-"
12057 "add> for each partition required."
12058 msgstr ""
12059
12060 #. type: textblock
12061 #: ../fish/guestfish-actions.pod:3606 ../src/guestfs-actions.pod:5531
12062 msgid "Possible values for C<parttype> are:"
12063 msgstr ""
12064
12065 #. type: =item
12066 #: ../fish/guestfish-actions.pod:3610 ../src/guestfs-actions.pod:5535
12067 msgid "B<efi>"
12068 msgstr ""
12069
12070 #. type: =item
12071 #: ../fish/guestfish-actions.pod:3612 ../src/guestfs-actions.pod:5537
12072 msgid "B<gpt>"
12073 msgstr ""
12074
12075 #. type: textblock
12076 #: ../fish/guestfish-actions.pod:3614 ../src/guestfs-actions.pod:5539
12077 msgid "Intel EFI / GPT partition table."
12078 msgstr ""
12079
12080 #. type: textblock
12081 #: ../fish/guestfish-actions.pod:3616 ../src/guestfs-actions.pod:5541
12082 msgid ""
12083 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12084 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
12085 "the C<mbr> format."
12086 msgstr ""
12087
12088 #. type: =item
12089 #: ../fish/guestfish-actions.pod:3620 ../src/guestfs-actions.pod:5545
12090 msgid "B<mbr>"
12091 msgstr ""
12092
12093 #. type: =item
12094 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5547
12095 msgid "B<msdos>"
12096 msgstr ""
12097
12098 #. type: textblock
12099 #: ../fish/guestfish-actions.pod:3624 ../src/guestfs-actions.pod:5549
12100 msgid ""
12101 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12102 "Windows.  This partition type will B<only> work for device sizes up to 2 "
12103 "TB.  For large disks we recommend using C<gpt>."
12104 msgstr ""
12105
12106 #. type: textblock
12107 #: ../fish/guestfish-actions.pod:3631 ../src/guestfs-actions.pod:5556
12108 msgid ""
12109 "Other partition table types that may work but are not supported include:"
12110 msgstr ""
12111
12112 #. type: =item
12113 #: ../fish/guestfish-actions.pod:3636 ../src/guestfs-actions.pod:5561
12114 msgid "B<aix>"
12115 msgstr ""
12116
12117 #. type: textblock
12118 #: ../fish/guestfish-actions.pod:3638 ../src/guestfs-actions.pod:5563
12119 msgid "AIX disk labels."
12120 msgstr ""
12121
12122 #. type: =item
12123 #: ../fish/guestfish-actions.pod:3640 ../src/guestfs-actions.pod:5565
12124 msgid "B<amiga>"
12125 msgstr ""
12126
12127 #. type: =item
12128 #: ../fish/guestfish-actions.pod:3642 ../src/guestfs-actions.pod:5567
12129 msgid "B<rdb>"
12130 msgstr ""
12131
12132 #. type: textblock
12133 #: ../fish/guestfish-actions.pod:3644 ../src/guestfs-actions.pod:5569
12134 msgid "Amiga \"Rigid Disk Block\" format."
12135 msgstr ""
12136
12137 #. type: =item
12138 #: ../fish/guestfish-actions.pod:3646 ../src/guestfs-actions.pod:5571
12139 msgid "B<bsd>"
12140 msgstr ""
12141
12142 #. type: textblock
12143 #: ../fish/guestfish-actions.pod:3648 ../src/guestfs-actions.pod:5573
12144 msgid "BSD disk labels."
12145 msgstr ""
12146
12147 #. type: =item
12148 #: ../fish/guestfish-actions.pod:3650 ../src/guestfs-actions.pod:5575
12149 msgid "B<dasd>"
12150 msgstr ""
12151
12152 #. type: textblock
12153 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5577
12154 msgid "DASD, used on IBM mainframes."
12155 msgstr ""
12156
12157 #. type: =item
12158 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5579
12159 msgid "B<dvh>"
12160 msgstr ""
12161
12162 #. type: textblock
12163 #: ../fish/guestfish-actions.pod:3656 ../src/guestfs-actions.pod:5581
12164 msgid "MIPS/SGI volumes."
12165 msgstr ""
12166
12167 #. type: =item
12168 #: ../fish/guestfish-actions.pod:3658 ../src/guestfs-actions.pod:5583
12169 msgid "B<mac>"
12170 msgstr ""
12171
12172 #. type: textblock
12173 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5585
12174 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
12175 msgstr ""
12176
12177 #. type: =item
12178 #: ../fish/guestfish-actions.pod:3662 ../src/guestfs-actions.pod:5587
12179 msgid "B<pc98>"
12180 msgstr ""
12181
12182 #. type: textblock
12183 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5589
12184 msgid "NEC PC-98 format, common in Japan apparently."
12185 msgstr ""
12186
12187 #. type: =item
12188 #: ../fish/guestfish-actions.pod:3666 ../src/guestfs-actions.pod:5591
12189 msgid "B<sun>"
12190 msgstr ""
12191
12192 #. type: textblock
12193 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5593
12194 msgid "Sun disk labels."
12195 msgstr ""
12196
12197 #. type: =head2
12198 #: ../fish/guestfish-actions.pod:3672
12199 msgid "part-list"
12200 msgstr ""
12201
12202 #. type: verbatim
12203 #: ../fish/guestfish-actions.pod:3674
12204 #, no-wrap
12205 msgid ""
12206 " part-list device\n"
12207 "\n"
12208 msgstr ""
12209
12210 #. type: textblock
12211 #: ../fish/guestfish-actions.pod:3676 ../src/guestfs-actions.pod:5607
12212 msgid ""
12213 "This command parses the partition table on C<device> and returns the list of "
12214 "partitions found."
12215 msgstr ""
12216
12217 #. type: textblock
12218 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5610
12219 msgid "The fields in the returned structure are:"
12220 msgstr ""
12221
12222 #. type: =item
12223 #: ../fish/guestfish-actions.pod:3683 ../src/guestfs-actions.pod:5614
12224 msgid "B<part_num>"
12225 msgstr ""
12226
12227 #. type: textblock
12228 #: ../fish/guestfish-actions.pod:3685 ../src/guestfs-actions.pod:5616
12229 msgid "Partition number, counting from 1."
12230 msgstr ""
12231
12232 #. type: =item
12233 #: ../fish/guestfish-actions.pod:3687 ../src/guestfs-actions.pod:5618
12234 msgid "B<part_start>"
12235 msgstr ""
12236
12237 #. type: textblock
12238 #: ../fish/guestfish-actions.pod:3689
12239 msgid ""
12240 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
12241 "the device's sector size, see L</blockdev-getss>."
12242 msgstr ""
12243
12244 #. type: =item
12245 #: ../fish/guestfish-actions.pod:3692 ../src/guestfs-actions.pod:5623
12246 msgid "B<part_end>"
12247 msgstr ""
12248
12249 #. type: textblock
12250 #: ../fish/guestfish-actions.pod:3694 ../src/guestfs-actions.pod:5625
12251 msgid "End of the partition in bytes."
12252 msgstr ""
12253
12254 #. type: =item
12255 #: ../fish/guestfish-actions.pod:3696 ../src/guestfs-actions.pod:5627
12256 msgid "B<part_size>"
12257 msgstr ""
12258
12259 #. type: textblock
12260 #: ../fish/guestfish-actions.pod:3698 ../src/guestfs-actions.pod:5629
12261 msgid "Size of the partition in bytes."
12262 msgstr ""
12263
12264 #. type: =head2
12265 #: ../fish/guestfish-actions.pod:3702
12266 msgid "part-set-bootable"
12267 msgstr ""
12268
12269 #. type: verbatim
12270 #: ../fish/guestfish-actions.pod:3704
12271 #, no-wrap
12272 msgid ""
12273 " part-set-bootable device partnum true|false\n"
12274 "\n"
12275 msgstr ""
12276
12277 #. type: textblock
12278 #: ../fish/guestfish-actions.pod:3706 ../src/guestfs-actions.pod:5647
12279 msgid ""
12280 "This sets the bootable flag on partition numbered C<partnum> on device "
12281 "C<device>.  Note that partitions are numbered from 1."
12282 msgstr ""
12283
12284 #. type: textblock
12285 #: ../fish/guestfish-actions.pod:3709 ../src/guestfs-actions.pod:5650
12286 msgid ""
12287 "The bootable flag is used by some operating systems (notably Windows) to "
12288 "determine which partition to boot from.  It is by no means universally "
12289 "recognized."
12290 msgstr ""
12291
12292 #. type: =head2
12293 #: ../fish/guestfish-actions.pod:3713
12294 msgid "part-set-mbr-id"
12295 msgstr ""
12296
12297 #. type: verbatim
12298 #: ../fish/guestfish-actions.pod:3715
12299 #, no-wrap
12300 msgid ""
12301 " part-set-mbr-id device partnum idbyte\n"
12302 "\n"
12303 msgstr ""
12304
12305 #. type: textblock
12306 #: ../fish/guestfish-actions.pod:3717 ../src/guestfs-actions.pod:5666
12307 msgid ""
12308 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12309 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12310 "documentation are in fact hexadecimal numbers, but usually documented "
12311 "without any leading \"0x\" which might be confusing."
12312 msgstr ""
12313
12314 #. type: =head2
12315 #: ../fish/guestfish-actions.pod:3727
12316 msgid "part-set-name"
12317 msgstr ""
12318
12319 #. type: verbatim
12320 #: ../fish/guestfish-actions.pod:3729
12321 #, no-wrap
12322 msgid ""
12323 " part-set-name device partnum name\n"
12324 "\n"
12325 msgstr ""
12326
12327 #. type: textblock
12328 #: ../fish/guestfish-actions.pod:3731 ../src/guestfs-actions.pod:5688
12329 msgid ""
12330 "This sets the partition name on partition numbered C<partnum> on device "
12331 "C<device>.  Note that partitions are numbered from 1."
12332 msgstr ""
12333
12334 #. type: textblock
12335 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5691
12336 msgid ""
12337 "The partition name can only be set on certain types of partition table.  "
12338 "This works on C<gpt> but not on C<mbr> partitions."
12339 msgstr ""
12340
12341 #. type: =head2
12342 #: ../fish/guestfish-actions.pod:3737
12343 msgid "part-to-dev"
12344 msgstr ""
12345
12346 #. type: verbatim
12347 #: ../fish/guestfish-actions.pod:3739
12348 #, no-wrap
12349 msgid ""
12350 " part-to-dev partition\n"
12351 "\n"
12352 msgstr ""
12353
12354 #. type: textblock
12355 #: ../fish/guestfish-actions.pod:3741 ../src/guestfs-actions.pod:5704
12356 msgid ""
12357 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12358 "partition number, returning the device name (eg. \"/dev/sdb\")."
12359 msgstr ""
12360
12361 #. type: textblock
12362 #: ../fish/guestfish-actions.pod:3745
12363 msgid ""
12364 "The named partition must exist, for example as a string returned from L</"
12365 "list-partitions>."
12366 msgstr ""
12367
12368 #. type: =head2
12369 #: ../fish/guestfish-actions.pod:3748
12370 msgid "ping-daemon"
12371 msgstr ""
12372
12373 #. type: verbatim
12374 #: ../fish/guestfish-actions.pod:3750
12375 #, no-wrap
12376 msgid ""
12377 " ping-daemon\n"
12378 "\n"
12379 msgstr ""
12380
12381 #. type: textblock
12382 #: ../fish/guestfish-actions.pod:3752 ../src/guestfs-actions.pod:5721
12383 msgid ""
12384 "This is a test probe into the guestfs daemon running inside the qemu "
12385 "subprocess.  Calling this function checks that the daemon responds to the "
12386 "ping message, without affecting the daemon or attached block device(s) in "
12387 "any other way."
12388 msgstr ""
12389
12390 #. type: =head2
12391 #: ../fish/guestfish-actions.pod:3757
12392 msgid "pread"
12393 msgstr ""
12394
12395 #. type: verbatim
12396 #: ../fish/guestfish-actions.pod:3759
12397 #, no-wrap
12398 msgid ""
12399 " pread path count offset\n"
12400 "\n"
12401 msgstr ""
12402
12403 #. type: textblock
12404 #: ../fish/guestfish-actions.pod:3761 ../src/guestfs-actions.pod:5739
12405 msgid ""
12406 "This command lets you read part of a file.  It reads C<count> bytes of the "
12407 "file, starting at C<offset>, from file C<path>."
12408 msgstr ""
12409
12410 #. type: textblock
12411 #: ../fish/guestfish-actions.pod:3764 ../fish/guestfish-actions.pod:3779
12412 #: ../src/guestfs-actions.pod:5742 ../src/guestfs-actions.pod:5768
12413 msgid ""
12414 "This may read fewer bytes than requested.  For further details see the "
12415 "L<pread(2)> system call."
12416 msgstr ""
12417
12418 #. type: textblock
12419 #: ../fish/guestfish-actions.pod:3767
12420 msgid "See also L</pwrite>, L</pread-device>."
12421 msgstr ""
12422
12423 #. type: =head2
12424 #: ../fish/guestfish-actions.pod:3772
12425 msgid "pread-device"
12426 msgstr ""
12427
12428 #. type: verbatim
12429 #: ../fish/guestfish-actions.pod:3774
12430 #, no-wrap
12431 msgid ""
12432 " pread-device device count offset\n"
12433 "\n"
12434 msgstr ""
12435
12436 #. type: textblock
12437 #: ../fish/guestfish-actions.pod:3776 ../src/guestfs-actions.pod:5765
12438 msgid ""
12439 "This command lets you read part of a file.  It reads C<count> bytes of "
12440 "C<device>, starting at C<offset>."
12441 msgstr ""
12442
12443 #. type: textblock
12444 #: ../fish/guestfish-actions.pod:3782
12445 msgid "See also L</pread>."
12446 msgstr ""
12447
12448 #. type: =head2
12449 #: ../fish/guestfish-actions.pod:3787
12450 msgid "pvcreate"
12451 msgstr ""
12452
12453 #. type: verbatim
12454 #: ../fish/guestfish-actions.pod:3789
12455 #, no-wrap
12456 msgid ""
12457 " pvcreate device\n"
12458 "\n"
12459 msgstr ""
12460
12461 #. type: textblock
12462 #: ../fish/guestfish-actions.pod:3791 ../src/guestfs-actions.pod:5788
12463 msgid ""
12464 "This creates an LVM physical volume on the named C<device>, where C<device> "
12465 "should usually be a partition name such as C</dev/sda1>."
12466 msgstr ""
12467
12468 #. type: =head2
12469 #: ../fish/guestfish-actions.pod:3795
12470 msgid "pvremove"
12471 msgstr ""
12472
12473 #. type: verbatim
12474 #: ../fish/guestfish-actions.pod:3797
12475 #, no-wrap
12476 msgid ""
12477 " pvremove device\n"
12478 "\n"
12479 msgstr ""
12480
12481 #. type: textblock
12482 #: ../fish/guestfish-actions.pod:3799 ../src/guestfs-actions.pod:5802
12483 msgid ""
12484 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12485 "it."
12486 msgstr ""
12487
12488 #. type: textblock
12489 #: ../fish/guestfish-actions.pod:3802 ../src/guestfs-actions.pod:5805
12490 msgid ""
12491 "The implementation uses the C<pvremove> command which refuses to wipe "
12492 "physical volumes that contain any volume groups, so you have to remove those "
12493 "first."
12494 msgstr ""
12495
12496 #. type: =head2
12497 #: ../fish/guestfish-actions.pod:3806
12498 msgid "pvresize"
12499 msgstr ""
12500
12501 #. type: verbatim
12502 #: ../fish/guestfish-actions.pod:3808
12503 #, no-wrap
12504 msgid ""
12505 " pvresize device\n"
12506 "\n"
12507 msgstr ""
12508
12509 #. type: textblock
12510 #: ../fish/guestfish-actions.pod:3810 ../src/guestfs-actions.pod:5819
12511 msgid ""
12512 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12513 "the new size of the underlying device."
12514 msgstr ""
12515
12516 #. type: =head2
12517 #: ../fish/guestfish-actions.pod:3813
12518 msgid "pvresize-size"
12519 msgstr ""
12520
12521 #. type: verbatim
12522 #: ../fish/guestfish-actions.pod:3815
12523 #, no-wrap
12524 msgid ""
12525 " pvresize-size device size\n"
12526 "\n"
12527 msgstr ""
12528
12529 #. type: textblock
12530 #: ../fish/guestfish-actions.pod:3817
12531 msgid ""
12532 "This command is the same as L</pvresize> except that it allows you to "
12533 "specify the new size (in bytes) explicitly."
12534 msgstr ""
12535
12536 #. type: =head2
12537 #: ../fish/guestfish-actions.pod:3820
12538 msgid "pvs"
12539 msgstr ""
12540
12541 #. type: verbatim
12542 #: ../fish/guestfish-actions.pod:3822
12543 #, no-wrap
12544 msgid ""
12545 " pvs\n"
12546 "\n"
12547 msgstr ""
12548
12549 #. type: textblock
12550 #: ../fish/guestfish-actions.pod:3824 ../src/guestfs-actions.pod:5845
12551 msgid ""
12552 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12553 "(8)> command."
12554 msgstr ""
12555
12556 #. type: textblock
12557 #: ../fish/guestfish-actions.pod:3827 ../src/guestfs-actions.pod:5848
12558 msgid ""
12559 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12560 "sda2>)."
12561 msgstr ""
12562
12563 #. type: textblock
12564 #: ../fish/guestfish-actions.pod:3830
12565 msgid "See also L</pvs-full>."
12566 msgstr ""
12567
12568 #. type: =head2
12569 #: ../fish/guestfish-actions.pod:3832
12570 msgid "pvs-full"
12571 msgstr ""
12572
12573 #. type: verbatim
12574 #: ../fish/guestfish-actions.pod:3834
12575 #, no-wrap
12576 msgid ""
12577 " pvs-full\n"
12578 "\n"
12579 msgstr ""
12580
12581 #. type: textblock
12582 #: ../fish/guestfish-actions.pod:3836 ../src/guestfs-actions.pod:5864
12583 msgid ""
12584 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12585 "(8)> command.  The \"full\" version includes all fields."
12586 msgstr ""
12587
12588 #. type: =head2
12589 #: ../fish/guestfish-actions.pod:3839
12590 msgid "pvuuid"
12591 msgstr ""
12592
12593 #. type: verbatim
12594 #: ../fish/guestfish-actions.pod:3841
12595 #, no-wrap
12596 msgid ""
12597 " pvuuid device\n"
12598 "\n"
12599 msgstr ""
12600
12601 #. type: textblock
12602 #: ../fish/guestfish-actions.pod:3843 ../src/guestfs-actions.pod:5879
12603 msgid "This command returns the UUID of the LVM PV C<device>."
12604 msgstr ""
12605
12606 #. type: =head2
12607 #: ../fish/guestfish-actions.pod:3845
12608 msgid "pwrite"
12609 msgstr ""
12610
12611 #. type: verbatim
12612 #: ../fish/guestfish-actions.pod:3847
12613 #, no-wrap
12614 msgid ""
12615 " pwrite path content offset\n"
12616 "\n"
12617 msgstr ""
12618
12619 #. type: textblock
12620 #: ../fish/guestfish-actions.pod:3849 ../src/guestfs-actions.pod:5895
12621 msgid ""
12622 "This command writes to part of a file.  It writes the data buffer C<content> "
12623 "to the file C<path> starting at offset C<offset>."
12624 msgstr ""
12625
12626 #. type: textblock
12627 #: ../fish/guestfish-actions.pod:3852 ../src/guestfs-actions.pod:5898
12628 msgid ""
12629 "This command implements the L<pwrite(2)> system call, and like that system "
12630 "call it may not write the full data requested.  The return value is the "
12631 "number of bytes that were actually written to the file.  This could even be "
12632 "0, although short writes are unlikely for regular files in ordinary "
12633 "circumstances."
12634 msgstr ""
12635
12636 #. type: textblock
12637 #: ../fish/guestfish-actions.pod:3858
12638 msgid "See also L</pread>, L</pwrite-device>."
12639 msgstr ""
12640
12641 #. type: =head2
12642 #: ../fish/guestfish-actions.pod:3863
12643 msgid "pwrite-device"
12644 msgstr ""
12645
12646 #. type: verbatim
12647 #: ../fish/guestfish-actions.pod:3865
12648 #, no-wrap
12649 msgid ""
12650 " pwrite-device device content offset\n"
12651 "\n"
12652 msgstr ""
12653
12654 #. type: textblock
12655 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5922
12656 msgid ""
12657 "This command writes to part of a device.  It writes the data buffer "
12658 "C<content> to C<device> starting at offset C<offset>."
12659 msgstr ""
12660
12661 #. type: textblock
12662 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:5925
12663 msgid ""
12664 "This command implements the L<pwrite(2)> system call, and like that system "
12665 "call it may not write the full data requested (although short writes to disk "
12666 "devices and partitions are probably impossible with standard Linux kernels)."
12667 msgstr ""
12668
12669 #. type: textblock
12670 #: ../fish/guestfish-actions.pod:3875
12671 msgid "See also L</pwrite>."
12672 msgstr ""
12673
12674 #. type: =head2
12675 #: ../fish/guestfish-actions.pod:3880
12676 msgid "read-file"
12677 msgstr ""
12678
12679 #. type: verbatim
12680 #: ../fish/guestfish-actions.pod:3882
12681 #, no-wrap
12682 msgid ""
12683 " read-file path\n"
12684 "\n"
12685 msgstr ""
12686
12687 #. type: textblock
12688 #: ../fish/guestfish-actions.pod:3884 ../src/guestfs-actions.pod:5946
12689 msgid "This calls returns the contents of the file C<path> as a buffer."
12690 msgstr ""
12691
12692 #. type: textblock
12693 #: ../fish/guestfish-actions.pod:3887
12694 msgid ""
12695 "Unlike L</cat>, this function can correctly handle files that contain "
12696 "embedded ASCII NUL characters.  However unlike L</download>, this function "
12697 "is limited in the total size of file that can be handled."
12698 msgstr ""
12699
12700 #. type: =head2
12701 #: ../fish/guestfish-actions.pod:3895
12702 msgid "read-lines"
12703 msgstr ""
12704
12705 #. type: verbatim
12706 #: ../fish/guestfish-actions.pod:3897
12707 #, no-wrap
12708 msgid ""
12709 " read-lines path\n"
12710 "\n"
12711 msgstr ""
12712
12713 #. type: textblock
12714 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:5971
12715 msgid ""
12716 "The file contents are returned as a list of lines.  Trailing C<LF> and "
12717 "C<CRLF> character sequences are I<not> returned."
12718 msgstr ""
12719
12720 #. type: textblock
12721 #: ../fish/guestfish-actions.pod:3904
12722 msgid ""
12723 "Note that this function cannot correctly handle binary files (specifically, "
12724 "files containing C<\\0> character which is treated as end of line).  For "
12725 "those you need to use the L</read-file> function which has a more complex "
12726 "interface."
12727 msgstr ""
12728
12729 #. type: =head2
12730 #: ../fish/guestfish-actions.pod:3909
12731 msgid "readdir"
12732 msgstr ""
12733
12734 #. type: verbatim
12735 #: ../fish/guestfish-actions.pod:3911
12736 #, no-wrap
12737 msgid ""
12738 " readdir dir\n"
12739 "\n"
12740 msgstr ""
12741
12742 #. type: textblock
12743 #: ../fish/guestfish-actions.pod:3913 ../src/guestfs-actions.pod:5991
12744 msgid "This returns the list of directory entries in directory C<dir>."
12745 msgstr ""
12746
12747 #. type: textblock
12748 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:5993
12749 msgid ""
12750 "All entries in the directory are returned, including C<.> and C<..>.  The "
12751 "entries are I<not> sorted, but returned in the same order as the underlying "
12752 "filesystem."
12753 msgstr ""
12754
12755 #. type: textblock
12756 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:5997
12757 msgid ""
12758 "Also this call returns basic file type information about each file.  The "
12759 "C<ftyp> field will contain one of the following characters:"
12760 msgstr ""
12761
12762 #. type: =item
12763 #: ../fish/guestfish-actions.pod:3924 ../src/guestfs-actions.pod:6002
12764 msgid "'b'"
12765 msgstr ""
12766
12767 #. type: textblock
12768 #: ../fish/guestfish-actions.pod:3926 ../src/guestfs-actions.pod:6004
12769 msgid "Block special"
12770 msgstr ""
12771
12772 #. type: =item
12773 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:6006
12774 msgid "'c'"
12775 msgstr ""
12776
12777 #. type: textblock
12778 #: ../fish/guestfish-actions.pod:3930 ../src/guestfs-actions.pod:6008
12779 msgid "Char special"
12780 msgstr ""
12781
12782 #. type: =item
12783 #: ../fish/guestfish-actions.pod:3932 ../src/guestfs-actions.pod:6010
12784 msgid "'d'"
12785 msgstr ""
12786
12787 #. type: textblock
12788 #: ../fish/guestfish-actions.pod:3934 ../src/guestfs-actions.pod:6012
12789 msgid "Directory"
12790 msgstr ""
12791
12792 #. type: =item
12793 #: ../fish/guestfish-actions.pod:3936 ../src/guestfs-actions.pod:6014
12794 msgid "'f'"
12795 msgstr ""
12796
12797 #. type: textblock
12798 #: ../fish/guestfish-actions.pod:3938 ../src/guestfs-actions.pod:6016
12799 msgid "FIFO (named pipe)"
12800 msgstr ""
12801
12802 #. type: =item
12803 #: ../fish/guestfish-actions.pod:3940 ../src/guestfs-actions.pod:6018
12804 msgid "'l'"
12805 msgstr ""
12806
12807 #. type: textblock
12808 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:6020
12809 msgid "Symbolic link"
12810 msgstr ""
12811
12812 #. type: =item
12813 #: ../fish/guestfish-actions.pod:3944 ../src/guestfs-actions.pod:6022
12814 msgid "'r'"
12815 msgstr ""
12816
12817 #. type: textblock
12818 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:6024
12819 msgid "Regular file"
12820 msgstr ""
12821
12822 #. type: =item
12823 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6026
12824 msgid "'s'"
12825 msgstr ""
12826
12827 #. type: textblock
12828 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:6028
12829 msgid "Socket"
12830 msgstr ""
12831
12832 #. type: =item
12833 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6030
12834 msgid "'u'"
12835 msgstr ""
12836
12837 #. type: textblock
12838 #: ../fish/guestfish-actions.pod:3954 ../src/guestfs-actions.pod:6032
12839 msgid "Unknown file type"
12840 msgstr ""
12841
12842 #. type: =item
12843 #: ../fish/guestfish-actions.pod:3956 ../src/guestfs-actions.pod:6034
12844 msgid "'?'"
12845 msgstr ""
12846
12847 #. type: textblock
12848 #: ../fish/guestfish-actions.pod:3958 ../src/guestfs-actions.pod:6036
12849 msgid ""
12850 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
12851 msgstr ""
12852
12853 #. type: textblock
12854 #: ../fish/guestfish-actions.pod:3963
12855 msgid ""
12856 "This function is primarily intended for use by programs.  To get a simple "
12857 "list of names, use L</ls>.  To get a printable directory for human "
12858 "consumption, use L</ll>."
12859 msgstr ""
12860
12861 #. type: =head2
12862 #: ../fish/guestfish-actions.pod:3967
12863 msgid "readlink"
12864 msgstr ""
12865
12866 #. type: verbatim
12867 #: ../fish/guestfish-actions.pod:3969
12868 #, no-wrap
12869 msgid ""
12870 " readlink path\n"
12871 "\n"
12872 msgstr ""
12873
12874 #. type: textblock
12875 #: ../fish/guestfish-actions.pod:3971 ../src/guestfs-actions.pod:6057
12876 msgid "This command reads the target of a symbolic link."
12877 msgstr ""
12878
12879 #. type: =head2
12880 #: ../fish/guestfish-actions.pod:3973
12881 msgid "readlinklist"
12882 msgstr ""
12883
12884 #. type: verbatim
12885 #: ../fish/guestfish-actions.pod:3975
12886 #, no-wrap
12887 msgid ""
12888 " readlinklist path 'names ...'\n"
12889 "\n"
12890 msgstr ""
12891
12892 #. type: textblock
12893 #: ../fish/guestfish-actions.pod:3977 ../src/guestfs-actions.pod:6071
12894 msgid ""
12895 "This call allows you to do a C<readlink> operation on multiple files, where "
12896 "all files are in the directory C<path>.  C<names> is the list of files from "
12897 "this directory."
12898 msgstr ""
12899
12900 #. type: textblock
12901 #: ../fish/guestfish-actions.pod:3981 ../src/guestfs-actions.pod:6075
12902 msgid ""
12903 "On return you get a list of strings, with a one-to-one correspondence to the "
12904 "C<names> list.  Each string is the value of the symbolic link."
12905 msgstr ""
12906
12907 #. type: textblock
12908 #: ../fish/guestfish-actions.pod:3985 ../src/guestfs-actions.pod:6079
12909 msgid ""
12910 "If the C<readlink(2)> operation fails on any name, then the corresponding "
12911 "result string is the empty string C<\"\">.  However the whole operation is "
12912 "completed even if there were C<readlink(2)> errors, and so you can call this "
12913 "function with names where you don't know if they are symbolic links already "
12914 "(albeit slightly less efficient)."
12915 msgstr ""
12916
12917 #. type: textblock
12918 #: ../fish/guestfish-actions.pod:3992 ../src/guestfs-actions.pod:6086
12919 msgid ""
12920 "This call is intended for programs that want to efficiently list a directory "
12921 "contents without making many round-trips.  Very long directory listings "
12922 "might cause the protocol message size to be exceeded, causing this call to "
12923 "fail.  The caller must split up such requests into smaller groups of names."
12924 msgstr ""
12925
12926 #. type: =head2
12927 #: ../fish/guestfish-actions.pod:3999
12928 msgid "realpath"
12929 msgstr ""
12930
12931 #. type: verbatim
12932 #: ../fish/guestfish-actions.pod:4001
12933 #, no-wrap
12934 msgid ""
12935 " realpath path\n"
12936 "\n"
12937 msgstr ""
12938
12939 #. type: textblock
12940 #: ../fish/guestfish-actions.pod:4003 ../src/guestfs-actions.pod:6105
12941 msgid ""
12942 "Return the canonicalized absolute pathname of C<path>.  The returned path "
12943 "has no C<.>, C<..> or symbolic link path elements."
12944 msgstr ""
12945
12946 #. type: =head2
12947 #: ../fish/guestfish-actions.pod:4006
12948 msgid "removexattr"
12949 msgstr ""
12950
12951 #. type: verbatim
12952 #: ../fish/guestfish-actions.pod:4008
12953 #, no-wrap
12954 msgid ""
12955 " removexattr xattr path\n"
12956 "\n"
12957 msgstr ""
12958
12959 #. type: textblock
12960 #: ../fish/guestfish-actions.pod:4010 ../src/guestfs-actions.pod:6120
12961 msgid ""
12962 "This call removes the extended attribute named C<xattr> of the file C<path>."
12963 msgstr ""
12964
12965 #. type: textblock
12966 #: ../fish/guestfish-actions.pod:4013
12967 msgid "See also: L</lremovexattr>, L<attr(5)>."
12968 msgstr ""
12969
12970 #. type: =head2
12971 #: ../fish/guestfish-actions.pod:4015
12972 msgid "resize2fs"
12973 msgstr ""
12974
12975 #. type: verbatim
12976 #: ../fish/guestfish-actions.pod:4017
12977 #, no-wrap
12978 msgid ""
12979 " resize2fs device\n"
12980 "\n"
12981 msgstr ""
12982
12983 #. type: textblock
12984 #: ../fish/guestfish-actions.pod:4019 ../src/guestfs-actions.pod:6135
12985 msgid ""
12986 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
12987 "underlying device."
12988 msgstr ""
12989
12990 #. type: textblock
12991 #: ../fish/guestfish-actions.pod:4022
12992 msgid ""
12993 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
12994 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
12995 "gives an error about this and sometimes not.  In any case, it is always safe "
12996 "to call L</e2fsck-f> before calling this function."
12997 msgstr ""
12998
12999 #. type: =head2
13000 #: ../fish/guestfish-actions.pod:4028
13001 msgid "resize2fs-M"
13002 msgstr ""
13003
13004 #. type: verbatim
13005 #: ../fish/guestfish-actions.pod:4030
13006 #, no-wrap
13007 msgid ""
13008 " resize2fs-M device\n"
13009 "\n"
13010 msgstr ""
13011
13012 #. type: textblock
13013 #: ../fish/guestfish-actions.pod:4032
13014 msgid ""
13015 "This command is the same as L</resize2fs>, but the filesystem is resized to "
13016 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
13017 "command."
13018 msgstr ""
13019
13020 #. type: textblock
13021 #: ../fish/guestfish-actions.pod:4036
13022 msgid ""
13023 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
13024 "and read the C<Block size> and C<Block count> values.  These two numbers, "
13025 "multiplied together, give the resulting size of the minimal filesystem in "
13026 "bytes."
13027 msgstr ""
13028
13029 #. type: =head2
13030 #: ../fish/guestfish-actions.pod:4041
13031 msgid "resize2fs-size"
13032 msgstr ""
13033
13034 #. type: verbatim
13035 #: ../fish/guestfish-actions.pod:4043
13036 #, no-wrap
13037 msgid ""
13038 " resize2fs-size device size\n"
13039 "\n"
13040 msgstr ""
13041
13042 #. type: textblock
13043 #: ../fish/guestfish-actions.pod:4045
13044 msgid ""
13045 "This command is the same as L</resize2fs> except that it allows you to "
13046 "specify the new size (in bytes) explicitly."
13047 msgstr ""
13048
13049 #. type: =head2
13050 #: ../fish/guestfish-actions.pod:4048
13051 msgid "rm"
13052 msgstr ""
13053
13054 #. type: verbatim
13055 #: ../fish/guestfish-actions.pod:4050
13056 #, no-wrap
13057 msgid ""
13058 " rm path\n"
13059 "\n"
13060 msgstr ""
13061
13062 #. type: textblock
13063 #: ../fish/guestfish-actions.pod:4052 ../src/guestfs-actions.pod:6187
13064 msgid "Remove the single file C<path>."
13065 msgstr ""
13066
13067 #. type: =head2
13068 #: ../fish/guestfish-actions.pod:4054
13069 msgid "rm-rf"
13070 msgstr ""
13071
13072 #. type: verbatim
13073 #: ../fish/guestfish-actions.pod:4056
13074 #, no-wrap
13075 msgid ""
13076 " rm-rf path\n"
13077 "\n"
13078 msgstr ""
13079
13080 #. type: textblock
13081 #: ../fish/guestfish-actions.pod:4058 ../src/guestfs-actions.pod:6199
13082 msgid ""
13083 "Remove the file or directory C<path>, recursively removing the contents if "
13084 "its a directory.  This is like the C<rm -rf> shell command."
13085 msgstr ""
13086
13087 #. type: =head2
13088 #: ../fish/guestfish-actions.pod:4062
13089 msgid "rmdir"
13090 msgstr ""
13091
13092 #. type: verbatim
13093 #: ../fish/guestfish-actions.pod:4064
13094 #, no-wrap
13095 msgid ""
13096 " rmdir path\n"
13097 "\n"
13098 msgstr ""
13099
13100 #. type: textblock
13101 #: ../fish/guestfish-actions.pod:4066 ../src/guestfs-actions.pod:6213
13102 msgid "Remove the single directory C<path>."
13103 msgstr ""
13104
13105 #. type: =head2
13106 #: ../fish/guestfish-actions.pod:4068
13107 msgid "rmmountpoint"
13108 msgstr ""
13109
13110 #. type: verbatim
13111 #: ../fish/guestfish-actions.pod:4070
13112 #, no-wrap
13113 msgid ""
13114 " rmmountpoint exemptpath\n"
13115 "\n"
13116 msgstr ""
13117
13118 #. type: textblock
13119 #: ../fish/guestfish-actions.pod:4072
13120 msgid ""
13121 "This calls removes a mountpoint that was previously created with L</"
13122 "mkmountpoint>.  See L</mkmountpoint> for full details."
13123 msgstr ""
13124
13125 #. type: =head2
13126 #: ../fish/guestfish-actions.pod:4076
13127 msgid "scrub-device"
13128 msgstr ""
13129
13130 #. type: verbatim
13131 #: ../fish/guestfish-actions.pod:4078
13132 #, no-wrap
13133 msgid ""
13134 " scrub-device device\n"
13135 "\n"
13136 msgstr ""
13137
13138 #. type: textblock
13139 #: ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6239
13140 msgid ""
13141 "This command writes patterns over C<device> to make data retrieval more "
13142 "difficult."
13143 msgstr ""
13144
13145 #. type: textblock
13146 #: ../fish/guestfish-actions.pod:4083 ../fish/guestfish-actions.pod:4098
13147 #: ../fish/guestfish-actions.pod:4111 ../src/guestfs-actions.pod:6242
13148 #: ../src/guestfs-actions.pod:6263 ../src/guestfs-actions.pod:6282
13149 msgid ""
13150 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13151 "more details."
13152 msgstr ""
13153
13154 #. type: =head2
13155 #: ../fish/guestfish-actions.pod:4089
13156 msgid "scrub-file"
13157 msgstr ""
13158
13159 #. type: verbatim
13160 #: ../fish/guestfish-actions.pod:4091
13161 #, no-wrap
13162 msgid ""
13163 " scrub-file file\n"
13164 "\n"
13165 msgstr ""
13166
13167 #. type: textblock
13168 #: ../fish/guestfish-actions.pod:4093 ../src/guestfs-actions.pod:6258
13169 msgid ""
13170 "This command writes patterns over a file to make data retrieval more "
13171 "difficult."
13172 msgstr ""
13173
13174 #. type: textblock
13175 #: ../fish/guestfish-actions.pod:4096 ../src/guestfs-actions.pod:6261
13176 msgid "The file is I<removed> after scrubbing."
13177 msgstr ""
13178
13179 #. type: =head2
13180 #: ../fish/guestfish-actions.pod:4101
13181 msgid "scrub-freespace"
13182 msgstr ""
13183
13184 #. type: verbatim
13185 #: ../fish/guestfish-actions.pod:4103
13186 #, no-wrap
13187 msgid ""
13188 " scrub-freespace dir\n"
13189 "\n"
13190 msgstr ""
13191
13192 #. type: textblock
13193 #: ../fish/guestfish-actions.pod:4105
13194 msgid ""
13195 "This command creates the directory C<dir> and then fills it with files until "
13196 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
13197 "deletes them.  The intention is to scrub any free space on the partition "
13198 "containing C<dir>."
13199 msgstr ""
13200
13201 #. type: =head2
13202 #: ../fish/guestfish-actions.pod:4114
13203 msgid "set-append"
13204 msgstr ""
13205
13206 #. type: =head2
13207 #: ../fish/guestfish-actions.pod:4116
13208 msgid "append"
13209 msgstr ""
13210
13211 #. type: verbatim
13212 #: ../fish/guestfish-actions.pod:4118
13213 #, no-wrap
13214 msgid ""
13215 " set-append append\n"
13216 "\n"
13217 msgstr ""
13218
13219 #. type: textblock
13220 #: ../fish/guestfish-actions.pod:4120 ../src/guestfs-actions.pod:6295
13221 msgid ""
13222 "This function is used to add additional options to the guest kernel command "
13223 "line."
13224 msgstr ""
13225
13226 #. type: textblock
13227 #: ../fish/guestfish-actions.pod:4123 ../src/guestfs-actions.pod:6298
13228 msgid ""
13229 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13230 "environment variable."
13231 msgstr ""
13232
13233 #. type: textblock
13234 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6301
13235 msgid ""
13236 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13237 "(libguestfs always adds a few of its own)."
13238 msgstr ""
13239
13240 #. type: =head2
13241 #: ../fish/guestfish-actions.pod:4129
13242 msgid "set-attach-method"
13243 msgstr ""
13244
13245 #. type: =head2
13246 #: ../fish/guestfish-actions.pod:4131
13247 msgid "attach-method"
13248 msgstr ""
13249
13250 #. type: verbatim
13251 #: ../fish/guestfish-actions.pod:4133
13252 #, no-wrap
13253 msgid ""
13254 " set-attach-method attachmethod\n"
13255 "\n"
13256 msgstr ""
13257
13258 #. type: textblock
13259 #: ../fish/guestfish-actions.pod:4135 ../src/guestfs-actions.pod:6314
13260 msgid ""
13261 "Set the method that libguestfs uses to connect to the back end guestfsd "
13262 "daemon.  Possible methods are:"
13263 msgstr ""
13264
13265 #. type: =item
13266 #: ../fish/guestfish-actions.pod:4140 ../src/guestfs-actions.pod:6319
13267 #: ../src/guestfs.pod:2826
13268 msgid "C<appliance>"
13269 msgstr ""
13270
13271 #. type: textblock
13272 #: ../fish/guestfish-actions.pod:4142 ../src/guestfs-actions.pod:6321
13273 msgid ""
13274 "Launch an appliance and connect to it.  This is the ordinary method and the "
13275 "default."
13276 msgstr ""
13277
13278 #. type: =item
13279 #: ../fish/guestfish-actions.pod:4145 ../src/guestfs-actions.pod:6324
13280 msgid "C<unix:I<path>>"
13281 msgstr ""
13282
13283 #. type: textblock
13284 #: ../fish/guestfish-actions.pod:4147 ../src/guestfs-actions.pod:6326
13285 msgid "Connect to the Unix domain socket I<path>."
13286 msgstr ""
13287
13288 #. type: textblock
13289 #: ../fish/guestfish-actions.pod:4149 ../src/guestfs-actions.pod:6328
13290 msgid ""
13291 "This method lets you connect to an existing daemon or (using virtio-serial) "
13292 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
13293 "RUNNING DAEMONS>."
13294 msgstr ""
13295
13296 #. type: =head2
13297 #: ../fish/guestfish-actions.pod:4155
13298 msgid "set-autosync"
13299 msgstr ""
13300
13301 #. type: =head2
13302 #: ../fish/guestfish-actions.pod:4157
13303 msgid "autosync"
13304 msgstr ""
13305
13306 #. type: verbatim
13307 #: ../fish/guestfish-actions.pod:4159
13308 #, no-wrap
13309 msgid ""
13310 " set-autosync true|false\n"
13311 "\n"
13312 msgstr ""
13313
13314 #. type: textblock
13315 #: ../fish/guestfish-actions.pod:4161 ../src/guestfs-actions.pod:6344
13316 msgid ""
13317 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13318 "effort attempt to make filesystems consistent and synchronized when the "
13319 "handle is closed (also if the program exits without closing handles)."
13320 msgstr ""
13321
13322 #. type: textblock
13323 #: ../fish/guestfish-actions.pod:4166 ../src/guestfs-actions.pod:6349
13324 msgid ""
13325 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13326 "disabled by default)."
13327 msgstr ""
13328
13329 #. type: =head2
13330 #: ../fish/guestfish-actions.pod:4169
13331 msgid "set-direct"
13332 msgstr ""
13333
13334 #. type: =head2
13335 #: ../fish/guestfish-actions.pod:4171
13336 msgid "direct"
13337 msgstr ""
13338
13339 #. type: verbatim
13340 #: ../fish/guestfish-actions.pod:4173
13341 #, no-wrap
13342 msgid ""
13343 " set-direct true|false\n"
13344 "\n"
13345 msgstr ""
13346
13347 #. type: textblock
13348 #: ../fish/guestfish-actions.pod:4175 ../src/guestfs-actions.pod:6362
13349 msgid ""
13350 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13351 "passed directly through to the appliance once it is launched."
13352 msgstr ""
13353
13354 #. type: textblock
13355 #: ../fish/guestfish-actions.pod:4179
13356 msgid ""
13357 "One consequence of this is that log messages aren't caught by the library "
13358 "and handled by L</set-log-message-callback>, but go straight to stdout."
13359 msgstr ""
13360
13361 #. type: textblock
13362 #: ../fish/guestfish-actions.pod:4183 ../src/guestfs-actions.pod:6370
13363 msgid "You probably don't want to use this unless you know what you are doing."
13364 msgstr ""
13365
13366 #. type: textblock
13367 #: ../fish/guestfish-actions.pod:4186 ../src/guestfs-actions.pod:6373
13368 msgid "The default is disabled."
13369 msgstr ""
13370
13371 #. type: =head2
13372 #: ../fish/guestfish-actions.pod:4188
13373 msgid "set-e2label"
13374 msgstr ""
13375
13376 #. type: verbatim
13377 #: ../fish/guestfish-actions.pod:4190
13378 #, no-wrap
13379 msgid ""
13380 " set-e2label device label\n"
13381 "\n"
13382 msgstr ""
13383
13384 #. type: textblock
13385 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6386
13386 msgid ""
13387 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13388 "C<label>.  Filesystem labels are limited to 16 characters."
13389 msgstr ""
13390
13391 #. type: textblock
13392 #: ../fish/guestfish-actions.pod:4196
13393 msgid ""
13394 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
13395 "label on a filesystem."
13396 msgstr ""
13397
13398 #. type: =head2
13399 #: ../fish/guestfish-actions.pod:4199
13400 msgid "set-e2uuid"
13401 msgstr ""
13402
13403 #. type: verbatim
13404 #: ../fish/guestfish-actions.pod:4201
13405 #, no-wrap
13406 msgid ""
13407 " set-e2uuid device uuid\n"
13408 "\n"
13409 msgstr ""
13410
13411 #. type: textblock
13412 #: ../fish/guestfish-actions.pod:4203 ../src/guestfs-actions.pod:6404
13413 msgid ""
13414 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13415 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13416 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13417 msgstr ""
13418
13419 #. type: textblock
13420 #: ../fish/guestfish-actions.pod:4208
13421 msgid ""
13422 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
13423 "UUID of a filesystem."
13424 msgstr ""
13425
13426 #. type: =head2
13427 #: ../fish/guestfish-actions.pod:4211
13428 msgid "set-memsize"
13429 msgstr ""
13430
13431 #. type: =head2
13432 #: ../fish/guestfish-actions.pod:4213
13433 msgid "memsize"
13434 msgstr ""
13435
13436 #. type: verbatim
13437 #: ../fish/guestfish-actions.pod:4215
13438 #, no-wrap
13439 msgid ""
13440 " set-memsize memsize\n"
13441 "\n"
13442 msgstr ""
13443
13444 #. type: textblock
13445 #: ../fish/guestfish-actions.pod:4217
13446 msgid ""
13447 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13448 "This only has any effect if called before L</launch>."
13449 msgstr ""
13450
13451 #. type: textblock
13452 #: ../fish/guestfish-actions.pod:4221 ../src/guestfs-actions.pod:6426
13453 msgid ""
13454 "You can also change this by setting the environment variable "
13455 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13456 msgstr ""
13457
13458 #. type: =head2
13459 #: ../fish/guestfish-actions.pod:4228
13460 msgid "set-network"
13461 msgstr ""
13462
13463 #. type: =head2
13464 #: ../fish/guestfish-actions.pod:4230
13465 msgid "network"
13466 msgstr ""
13467
13468 #. type: verbatim
13469 #: ../fish/guestfish-actions.pod:4232
13470 #, no-wrap
13471 msgid ""
13472 " set-network true|false\n"
13473 "\n"
13474 msgstr ""
13475
13476 #. type: textblock
13477 #: ../fish/guestfish-actions.pod:4234 ../src/guestfs-actions.pod:6443
13478 msgid ""
13479 "If C<network> is true, then the network is enabled in the libguestfs "
13480 "appliance.  The default is false."
13481 msgstr ""
13482
13483 #. type: textblock
13484 #: ../fish/guestfish-actions.pod:4237 ../src/guestfs-actions.pod:6446
13485 msgid ""
13486 "This affects whether commands are able to access the network (see L<guestfs"
13487 "(3)/RUNNING COMMANDS>)."
13488 msgstr ""
13489
13490 #. type: textblock
13491 #: ../fish/guestfish-actions.pod:4240
13492 msgid ""
13493 "You must call this before calling L</launch>, otherwise it has no effect."
13494 msgstr ""
13495
13496 #. type: =head2
13497 #: ../fish/guestfish-actions.pod:4243
13498 msgid "set-path"
13499 msgstr ""
13500
13501 #. type: verbatim
13502 #: ../fish/guestfish-actions.pod:4247
13503 #, no-wrap
13504 msgid ""
13505 " set-path searchpath\n"
13506 "\n"
13507 msgstr ""
13508
13509 #. type: textblock
13510 #: ../fish/guestfish-actions.pod:4249 ../src/guestfs-actions.pod:6462
13511 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13512 msgstr ""
13513
13514 #. type: textblock
13515 #: ../fish/guestfish-actions.pod:4251 ../src/guestfs-actions.pod:6464
13516 msgid ""
13517 "The default is C<$libdir/guestfs> unless overridden by setting "
13518 "C<LIBGUESTFS_PATH> environment variable."
13519 msgstr ""
13520
13521 #. type: textblock
13522 #: ../fish/guestfish-actions.pod:4254 ../src/guestfs-actions.pod:6467
13523 msgid "Setting C<path> to C<NULL> restores the default path."
13524 msgstr ""
13525
13526 #. type: =head2
13527 #: ../fish/guestfish-actions.pod:4256
13528 msgid "set-pgroup"
13529 msgstr ""
13530
13531 #. type: =head2
13532 #: ../fish/guestfish-actions.pod:4258
13533 msgid "pgroup"
13534 msgstr ""
13535
13536 #. type: verbatim
13537 #: ../fish/guestfish-actions.pod:4260
13538 #, no-wrap
13539 msgid ""
13540 " set-pgroup true|false\n"
13541 "\n"
13542 msgstr ""
13543
13544 #. type: textblock
13545 #: ../fish/guestfish-actions.pod:4262 ../src/guestfs-actions.pod:6479
13546 msgid ""
13547 "If C<pgroup> is true, child processes are placed into their own process "
13548 "group."
13549 msgstr ""
13550
13551 #. type: textblock
13552 #: ../fish/guestfish-actions.pod:4265 ../src/guestfs-actions.pod:6482
13553 msgid ""
13554 "The practical upshot of this is that signals like C<SIGINT> (from users "
13555 "pressing C<^C>) won't be received by the child process."
13556 msgstr ""
13557
13558 #. type: textblock
13559 #: ../fish/guestfish-actions.pod:4268 ../src/guestfs-actions.pod:6485
13560 msgid ""
13561 "The default for this flag is false, because usually you want C<^C> to kill "
13562 "the subprocess."
13563 msgstr ""
13564
13565 #. type: =head2
13566 #: ../fish/guestfish-actions.pod:4271
13567 msgid "set-qemu"
13568 msgstr ""
13569
13570 #. type: =head2
13571 #: ../fish/guestfish-actions.pod:4273
13572 msgid "qemu"
13573 msgstr ""
13574
13575 #. type: verbatim
13576 #: ../fish/guestfish-actions.pod:4275
13577 #, no-wrap
13578 msgid ""
13579 " set-qemu qemu\n"
13580 "\n"
13581 msgstr ""
13582
13583 #. type: textblock
13584 #: ../fish/guestfish-actions.pod:4277 ../src/guestfs-actions.pod:6498
13585 msgid "Set the qemu binary that we will use."
13586 msgstr ""
13587
13588 #. type: textblock
13589 #: ../fish/guestfish-actions.pod:4279 ../src/guestfs-actions.pod:6500
13590 msgid ""
13591 "The default is chosen when the library was compiled by the configure script."
13592 msgstr ""
13593
13594 #. type: textblock
13595 #: ../fish/guestfish-actions.pod:4282 ../src/guestfs-actions.pod:6503
13596 msgid ""
13597 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13598 "variable."
13599 msgstr ""
13600
13601 #. type: textblock
13602 #: ../fish/guestfish-actions.pod:4285 ../src/guestfs-actions.pod:6506
13603 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13604 msgstr ""
13605
13606 #. type: textblock
13607 #: ../fish/guestfish-actions.pod:4287 ../src/guestfs-actions.pod:6508
13608 msgid ""
13609 "Note that you should call this function as early as possible after creating "
13610 "the handle.  This is because some pre-launch operations depend on testing "
13611 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13612 "don't retest features, and so you might see inconsistent results.  Using the "
13613 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13614 "the qemu binary at the same time as the handle is created."
13615 msgstr ""
13616
13617 #. type: =head2
13618 #: ../fish/guestfish-actions.pod:4295
13619 msgid "set-recovery-proc"
13620 msgstr ""
13621
13622 #. type: =head2
13623 #: ../fish/guestfish-actions.pod:4297
13624 msgid "recovery-proc"
13625 msgstr ""
13626
13627 #. type: verbatim
13628 #: ../fish/guestfish-actions.pod:4299
13629 #, no-wrap
13630 msgid ""
13631 " set-recovery-proc true|false\n"
13632 "\n"
13633 msgstr ""
13634
13635 #. type: textblock
13636 #: ../fish/guestfish-actions.pod:4301
13637 msgid ""
13638 "If this is called with the parameter C<false> then L</launch> does not "
13639 "create a recovery process.  The purpose of the recovery process is to stop "
13640 "runaway qemu processes in the case where the main program aborts abruptly."
13641 msgstr ""
13642
13643 #. type: textblock
13644 #: ../fish/guestfish-actions.pod:4306
13645 msgid ""
13646 "This only has any effect if called before L</launch>, and the default is "
13647 "true."
13648 msgstr ""
13649
13650 #. type: textblock
13651 #: ../fish/guestfish-actions.pod:4309 ../src/guestfs-actions.pod:6534
13652 msgid ""
13653 "About the only time when you would want to disable this is if the main "
13654 "process will fork itself into the background (\"daemonize\" itself).  In "
13655 "this case the recovery process thinks that the main program has disappeared "
13656 "and so kills qemu, which is not very helpful."
13657 msgstr ""
13658
13659 #. type: =head2
13660 #: ../fish/guestfish-actions.pod:4315
13661 msgid "set-selinux"
13662 msgstr ""
13663
13664 #. type: =head2
13665 #: ../fish/guestfish-actions.pod:4317
13666 msgid "selinux"
13667 msgstr ""
13668
13669 #. type: verbatim
13670 #: ../fish/guestfish-actions.pod:4319
13671 #, no-wrap
13672 msgid ""
13673 " set-selinux true|false\n"
13674 "\n"
13675 msgstr ""
13676
13677 #. type: textblock
13678 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6550
13679 msgid ""
13680 "This sets the selinux flag that is passed to the appliance at boot time.  "
13681 "The default is C<selinux=0> (disabled)."
13682 msgstr ""
13683
13684 #. type: textblock
13685 #: ../fish/guestfish-actions.pod:4324 ../src/guestfs-actions.pod:6553
13686 msgid ""
13687 "Note that if SELinux is enabled, it is always in Permissive mode "
13688 "(C<enforcing=0>)."
13689 msgstr ""
13690
13691 #. type: =head2
13692 #: ../fish/guestfish-actions.pod:4330
13693 msgid "set-smp"
13694 msgstr ""
13695
13696 #. type: =head2
13697 #: ../fish/guestfish-actions.pod:4332
13698 msgid "smp"
13699 msgstr ""
13700
13701 #. type: verbatim
13702 #: ../fish/guestfish-actions.pod:4334
13703 #, no-wrap
13704 msgid ""
13705 " set-smp smp\n"
13706 "\n"
13707 msgstr ""
13708
13709 #. type: textblock
13710 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6569
13711 msgid ""
13712 "Change the number of virtual CPUs assigned to the appliance.  The default is "
13713 "C<1>.  Increasing this may improve performance, though often it has no "
13714 "effect."
13715 msgstr ""
13716
13717 #. type: textblock
13718 #: ../fish/guestfish-actions.pod:4340
13719 msgid "This function must be called before L</launch>."
13720 msgstr ""
13721
13722 #. type: =head2
13723 #: ../fish/guestfish-actions.pod:4342
13724 msgid "set-trace"
13725 msgstr ""
13726
13727 #. type: =head2
13728 #: ../fish/guestfish-actions.pod:4344
13729 msgid "trace"
13730 msgstr ""
13731
13732 #. type: verbatim
13733 #: ../fish/guestfish-actions.pod:4346
13734 #, no-wrap
13735 msgid ""
13736 " set-trace true|false\n"
13737 "\n"
13738 msgstr ""
13739
13740 #. type: textblock
13741 #: ../fish/guestfish-actions.pod:4348 ../src/guestfs-actions.pod:6583
13742 msgid ""
13743 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
13744 "return values are traced."
13745 msgstr ""
13746
13747 #. type: textblock
13748 #: ../fish/guestfish-actions.pod:4351 ../src/guestfs-actions.pod:6586
13749 msgid ""
13750 "If you want to trace C API calls into libguestfs (and other libraries) then "
13751 "possibly a better way is to use the external ltrace(1) command."
13752 msgstr ""
13753
13754 #. type: textblock
13755 #: ../fish/guestfish-actions.pod:4355 ../src/guestfs-actions.pod:6590
13756 msgid ""
13757 "Command traces are disabled unless the environment variable "
13758 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
13759 msgstr ""
13760
13761 #. type: textblock
13762 #: ../fish/guestfish-actions.pod:4358
13763 msgid ""
13764 "Trace messages are normally sent to C<stderr>, unless you register a "
13765 "callback to send them somewhere else (see L</set-event-callback>)."
13766 msgstr ""
13767
13768 #. type: =head2
13769 #: ../fish/guestfish-actions.pod:4362
13770 msgid "set-verbose"
13771 msgstr ""
13772
13773 #. type: =head2
13774 #: ../fish/guestfish-actions.pod:4364
13775 msgid "verbose"
13776 msgstr ""
13777
13778 #. type: verbatim
13779 #: ../fish/guestfish-actions.pod:4366
13780 #, no-wrap
13781 msgid ""
13782 " set-verbose true|false\n"
13783 "\n"
13784 msgstr ""
13785
13786 #. type: textblock
13787 #: ../fish/guestfish-actions.pod:4368 ../src/guestfs-actions.pod:6607
13788 msgid "If C<verbose> is true, this turns on verbose messages."
13789 msgstr ""
13790
13791 #. type: textblock
13792 #: ../fish/guestfish-actions.pod:4370 ../src/guestfs-actions.pod:6609
13793 msgid ""
13794 "Verbose messages are disabled unless the environment variable "
13795 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
13796 msgstr ""
13797
13798 #. type: textblock
13799 #: ../fish/guestfish-actions.pod:4373
13800 msgid ""
13801 "Verbose messages are normally sent to C<stderr>, unless you register a "
13802 "callback to send them somewhere else (see L</set-event-callback>)."
13803 msgstr ""
13804
13805 #. type: =head2
13806 #: ../fish/guestfish-actions.pod:4377
13807 msgid "setcon"
13808 msgstr ""
13809
13810 #. type: verbatim
13811 #: ../fish/guestfish-actions.pod:4379
13812 #, no-wrap
13813 msgid ""
13814 " setcon context\n"
13815 "\n"
13816 msgstr ""
13817
13818 #. type: textblock
13819 #: ../fish/guestfish-actions.pod:4381 ../src/guestfs-actions.pod:6626
13820 msgid ""
13821 "This sets the SELinux security context of the daemon to the string "
13822 "C<context>."
13823 msgstr ""
13824
13825 #. type: textblock
13826 #: ../fish/guestfish-actions.pod:4384 ../src/guestfs-actions.pod:6629
13827 msgid "See the documentation about SELINUX in L<guestfs(3)>."
13828 msgstr ""
13829
13830 #. type: =head2
13831 #: ../fish/guestfish-actions.pod:4386
13832 msgid "setxattr"
13833 msgstr ""
13834
13835 #. type: verbatim
13836 #: ../fish/guestfish-actions.pod:4388
13837 #, no-wrap
13838 msgid ""
13839 " setxattr xattr val vallen path\n"
13840 "\n"
13841 msgstr ""
13842
13843 #. type: textblock
13844 #: ../fish/guestfish-actions.pod:4390 ../src/guestfs-actions.pod:6644
13845 msgid ""
13846 "This call sets the extended attribute named C<xattr> of the file C<path> to "
13847 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
13848 msgstr ""
13849
13850 #. type: textblock
13851 #: ../fish/guestfish-actions.pod:4394
13852 msgid "See also: L</lsetxattr>, L<attr(5)>."
13853 msgstr ""
13854
13855 #. type: =head2
13856 #: ../fish/guestfish-actions.pod:4396
13857 msgid "sfdisk"
13858 msgstr ""
13859
13860 #. type: verbatim
13861 #: ../fish/guestfish-actions.pod:4398
13862 #, no-wrap
13863 msgid ""
13864 " sfdisk device cyls heads sectors 'lines ...'\n"
13865 "\n"
13866 msgstr ""
13867
13868 #. type: textblock
13869 #: ../fish/guestfish-actions.pod:4400 ../src/guestfs-actions.pod:6671
13870 msgid ""
13871 "This is a direct interface to the L<sfdisk(8)> program for creating "
13872 "partitions on block devices."
13873 msgstr ""
13874
13875 #. type: textblock
13876 #: ../fish/guestfish-actions.pod:4403 ../src/guestfs-actions.pod:6674
13877 msgid "C<device> should be a block device, for example C</dev/sda>."
13878 msgstr ""
13879
13880 #. type: textblock
13881 #: ../fish/guestfish-actions.pod:4405 ../src/guestfs-actions.pod:6676
13882 msgid ""
13883 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
13884 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
13885 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
13886 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
13887 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
13888 "the kernel) cannot work out the right geometry and you will need to tell it."
13889 msgstr ""
13890
13891 #. type: textblock
13892 #: ../fish/guestfish-actions.pod:4413 ../src/guestfs-actions.pod:6684
13893 msgid ""
13894 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
13895 "refer to the L<sfdisk(8)> manpage."
13896 msgstr ""
13897
13898 #. type: textblock
13899 #: ../fish/guestfish-actions.pod:4416 ../src/guestfs-actions.pod:6687
13900 msgid ""
13901 "To create a single partition occupying the whole disk, you would pass "
13902 "C<lines> as a single element list, when the single element being the string "
13903 "C<,> (comma)."
13904 msgstr ""
13905
13906 #. type: textblock
13907 #: ../fish/guestfish-actions.pod:4420
13908 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
13909 msgstr ""
13910
13911 #. type: textblock
13912 #: ../fish/guestfish-actions.pod:4426 ../fish/guestfish-actions.pod:4449
13913 #: ../fish/guestfish-actions.pod:4471
13914 msgid ""
13915 "I<This function is deprecated.> In new code, use the L</part_add> call "
13916 "instead."
13917 msgstr ""
13918
13919 #. type: =head2
13920 #: ../fish/guestfish-actions.pod:4433
13921 msgid "sfdiskM"
13922 msgstr ""
13923
13924 #. type: verbatim
13925 #: ../fish/guestfish-actions.pod:4435
13926 #, no-wrap
13927 msgid ""
13928 " sfdiskM device 'lines ...'\n"
13929 "\n"
13930 msgstr ""
13931
13932 #. type: textblock
13933 #: ../fish/guestfish-actions.pod:4437
13934 msgid ""
13935 "This is a simplified interface to the L</sfdisk> command, where partition "
13936 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
13937 "you don't need to specify the cyls, heads and sectors parameters which were "
13938 "rarely if ever used anyway."
13939 msgstr ""
13940
13941 #. type: textblock
13942 #: ../fish/guestfish-actions.pod:4443
13943 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
13944 msgstr ""
13945
13946 #. type: =head2
13947 #: ../fish/guestfish-actions.pod:4456
13948 msgid "sfdisk-N"
13949 msgstr ""
13950
13951 #. type: verbatim
13952 #: ../fish/guestfish-actions.pod:4458
13953 #, no-wrap
13954 msgid ""
13955 " sfdisk-N device partnum cyls heads sectors line\n"
13956 "\n"
13957 msgstr ""
13958
13959 #. type: textblock
13960 #: ../fish/guestfish-actions.pod:4460 ../src/guestfs-actions.pod:6749
13961 msgid ""
13962 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
13963 "(note: C<n> counts from 1)."
13964 msgstr ""
13965
13966 #. type: textblock
13967 #: ../fish/guestfish-actions.pod:4463
13968 msgid ""
13969 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
13970 "cyls/heads/sectors parameters."
13971 msgstr ""
13972
13973 #. type: textblock
13974 #: ../fish/guestfish-actions.pod:4466
13975 msgid "See also: L</part-add>"
13976 msgstr ""
13977
13978 #. type: =head2
13979 #: ../fish/guestfish-actions.pod:4478
13980 msgid "sfdisk-disk-geometry"
13981 msgstr ""
13982
13983 #. type: verbatim
13984 #: ../fish/guestfish-actions.pod:4480
13985 #, no-wrap
13986 msgid ""
13987 " sfdisk-disk-geometry device\n"
13988 "\n"
13989 msgstr ""
13990
13991 #. type: textblock
13992 #: ../fish/guestfish-actions.pod:4482
13993 msgid ""
13994 "This displays the disk geometry of C<device> read from the partition table.  "
13995 "Especially in the case where the underlying block device has been resized, "
13996 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
13997 "kernel-geometry>)."
13998 msgstr ""
13999
14000 #. type: textblock
14001 #: ../fish/guestfish-actions.pod:4487 ../fish/guestfish-actions.pod:4496
14002 #: ../src/guestfs-actions.pod:6775 ../src/guestfs-actions.pod:6791
14003 msgid "The result is in human-readable format, and not designed to be parsed."
14004 msgstr ""
14005
14006 #. type: =head2
14007 #: ../fish/guestfish-actions.pod:4490
14008 msgid "sfdisk-kernel-geometry"
14009 msgstr ""
14010
14011 #. type: verbatim
14012 #: ../fish/guestfish-actions.pod:4492
14013 #, no-wrap
14014 msgid ""
14015 " sfdisk-kernel-geometry device\n"
14016 "\n"
14017 msgstr ""
14018
14019 #. type: textblock
14020 #: ../fish/guestfish-actions.pod:4494 ../src/guestfs-actions.pod:6789
14021 msgid "This displays the kernel's idea of the geometry of C<device>."
14022 msgstr ""
14023
14024 #. type: =head2
14025 #: ../fish/guestfish-actions.pod:4499
14026 msgid "sfdisk-l"
14027 msgstr ""
14028
14029 #. type: verbatim
14030 #: ../fish/guestfish-actions.pod:4501
14031 #, no-wrap
14032 msgid ""
14033 " sfdisk-l device\n"
14034 "\n"
14035 msgstr ""
14036
14037 #. type: textblock
14038 #: ../fish/guestfish-actions.pod:4503 ../src/guestfs-actions.pod:6812
14039 msgid ""
14040 "This displays the partition table on C<device>, in the human-readable output "
14041 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
14042 msgstr ""
14043
14044 #. type: textblock
14045 #: ../fish/guestfish-actions.pod:4507
14046 msgid "See also: L</part-list>"
14047 msgstr ""
14048
14049 #. type: textblock
14050 #: ../fish/guestfish-actions.pod:4509
14051 msgid ""
14052 "I<This function is deprecated.> In new code, use the L</part_list> call "
14053 "instead."
14054 msgstr ""
14055
14056 #. type: =head2
14057 #: ../fish/guestfish-actions.pod:4516
14058 msgid "sh"
14059 msgstr ""
14060
14061 #. type: verbatim
14062 #: ../fish/guestfish-actions.pod:4518
14063 #, no-wrap
14064 msgid ""
14065 " sh command\n"
14066 "\n"
14067 msgstr ""
14068
14069 #. type: textblock
14070 #: ../fish/guestfish-actions.pod:4520 ../src/guestfs-actions.pod:6829
14071 msgid ""
14072 "This call runs a command from the guest filesystem via the guest's C</bin/"
14073 "sh>."
14074 msgstr ""
14075
14076 #. type: textblock
14077 #: ../fish/guestfish-actions.pod:4523
14078 msgid "This is like L</command>, but passes the command to:"
14079 msgstr ""
14080
14081 #. type: verbatim
14082 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6834
14083 #, no-wrap
14084 msgid ""
14085 " /bin/sh -c \"command\"\n"
14086 "\n"
14087 msgstr ""
14088
14089 #. type: textblock
14090 #: ../fish/guestfish-actions.pod:4527 ../src/guestfs-actions.pod:6836
14091 msgid ""
14092 "Depending on the guest's shell, this usually results in wildcards being "
14093 "expanded, shell expressions being interpolated and so on."
14094 msgstr ""
14095
14096 #. type: textblock
14097 #: ../fish/guestfish-actions.pod:4531
14098 msgid "All the provisos about L</command> apply to this call."
14099 msgstr ""
14100
14101 #. type: =head2
14102 #: ../fish/guestfish-actions.pod:4533
14103 msgid "sh-lines"
14104 msgstr ""
14105
14106 #. type: verbatim
14107 #: ../fish/guestfish-actions.pod:4535
14108 #, no-wrap
14109 msgid ""
14110 " sh-lines command\n"
14111 "\n"
14112 msgstr ""
14113
14114 #. type: textblock
14115 #: ../fish/guestfish-actions.pod:4537
14116 msgid "This is the same as L</sh>, but splits the result into a list of lines."
14117 msgstr ""
14118
14119 #. type: textblock
14120 #: ../fish/guestfish-actions.pod:4540
14121 msgid "See also: L</command-lines>"
14122 msgstr ""
14123
14124 #. type: =head2
14125 #: ../fish/guestfish-actions.pod:4542
14126 msgid "sleep"
14127 msgstr ""
14128
14129 #. type: verbatim
14130 #: ../fish/guestfish-actions.pod:4544
14131 #, no-wrap
14132 msgid ""
14133 " sleep secs\n"
14134 "\n"
14135 msgstr ""
14136
14137 #. type: textblock
14138 #: ../fish/guestfish-actions.pod:4546 ../src/guestfs-actions.pod:6870
14139 msgid "Sleep for C<secs> seconds."
14140 msgstr ""
14141
14142 #. type: =head2
14143 #: ../fish/guestfish-actions.pod:4548
14144 msgid "stat"
14145 msgstr ""
14146
14147 #. type: verbatim
14148 #: ../fish/guestfish-actions.pod:4550
14149 #, no-wrap
14150 msgid ""
14151 " stat path\n"
14152 "\n"
14153 msgstr ""
14154
14155 #. type: textblock
14156 #: ../fish/guestfish-actions.pod:4554 ../src/guestfs-actions.pod:6884
14157 msgid "This is the same as the C<stat(2)> system call."
14158 msgstr ""
14159
14160 #. type: =head2
14161 #: ../fish/guestfish-actions.pod:4556
14162 msgid "statvfs"
14163 msgstr ""
14164
14165 #. type: verbatim
14166 #: ../fish/guestfish-actions.pod:4558
14167 #, no-wrap
14168 msgid ""
14169 " statvfs path\n"
14170 "\n"
14171 msgstr ""
14172
14173 #. type: textblock
14174 #: ../fish/guestfish-actions.pod:4560 ../src/guestfs-actions.pod:6898
14175 msgid ""
14176 "Returns file system statistics for any mounted file system.  C<path> should "
14177 "be a file or directory in the mounted file system (typically it is the mount "
14178 "point itself, but it doesn't need to be)."
14179 msgstr ""
14180
14181 #. type: textblock
14182 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:6902
14183 msgid "This is the same as the C<statvfs(2)> system call."
14184 msgstr ""
14185
14186 #. type: =head2
14187 #: ../fish/guestfish-actions.pod:4566
14188 msgid "strings"
14189 msgstr ""
14190
14191 #. type: verbatim
14192 #: ../fish/guestfish-actions.pod:4568
14193 #, no-wrap
14194 msgid ""
14195 " strings path\n"
14196 "\n"
14197 msgstr ""
14198
14199 #. type: textblock
14200 #: ../fish/guestfish-actions.pod:4570 ../src/guestfs-actions.pod:6916
14201 msgid ""
14202 "This runs the L<strings(1)> command on a file and returns the list of "
14203 "printable strings found."
14204 msgstr ""
14205
14206 #. type: =head2
14207 #: ../fish/guestfish-actions.pod:4576
14208 msgid "strings-e"
14209 msgstr ""
14210
14211 #. type: verbatim
14212 #: ../fish/guestfish-actions.pod:4578
14213 #, no-wrap
14214 msgid ""
14215 " strings-e encoding path\n"
14216 "\n"
14217 msgstr ""
14218
14219 #. type: textblock
14220 #: ../fish/guestfish-actions.pod:4580
14221 msgid ""
14222 "This is like the L</strings> command, but allows you to specify the encoding "
14223 "of strings that are looked for in the source file C<path>."
14224 msgstr ""
14225
14226 #. type: textblock
14227 #: ../fish/guestfish-actions.pod:4584 ../src/guestfs-actions.pod:6939
14228 msgid "Allowed encodings are:"
14229 msgstr ""
14230
14231 #. type: =item
14232 #: ../fish/guestfish-actions.pod:4588 ../src/guestfs-actions.pod:6943
14233 msgid "s"
14234 msgstr ""
14235
14236 #. type: textblock
14237 #: ../fish/guestfish-actions.pod:4590
14238 msgid ""
14239 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14240 "ISO-8859-X (this is what L</strings> uses)."
14241 msgstr ""
14242
14243 #. type: =item
14244 #: ../fish/guestfish-actions.pod:4593 ../src/guestfs-actions.pod:6948
14245 msgid "S"
14246 msgstr ""
14247
14248 #. type: textblock
14249 #: ../fish/guestfish-actions.pod:4595 ../src/guestfs-actions.pod:6950
14250 msgid "Single 8-bit-byte characters."
14251 msgstr ""
14252
14253 #. type: =item
14254 #: ../fish/guestfish-actions.pod:4597 ../src/guestfs-actions.pod:6952
14255 msgid "b"
14256 msgstr ""
14257
14258 #. type: textblock
14259 #: ../fish/guestfish-actions.pod:4599 ../src/guestfs-actions.pod:6954
14260 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14261 msgstr ""
14262
14263 #. type: =item
14264 #: ../fish/guestfish-actions.pod:4602 ../src/guestfs-actions.pod:6957
14265 msgid "l (lower case letter L)"
14266 msgstr ""
14267
14268 #. type: textblock
14269 #: ../fish/guestfish-actions.pod:4604 ../src/guestfs-actions.pod:6959
14270 msgid ""
14271 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
14272 "examining binaries in Windows guests."
14273 msgstr ""
14274
14275 #. type: =item
14276 #: ../fish/guestfish-actions.pod:4607 ../src/guestfs-actions.pod:6962
14277 msgid "B"
14278 msgstr ""
14279
14280 #. type: textblock
14281 #: ../fish/guestfish-actions.pod:4609 ../src/guestfs-actions.pod:6964
14282 msgid "32-bit big endian such as UCS-4BE."
14283 msgstr ""
14284
14285 #. type: =item
14286 #: ../fish/guestfish-actions.pod:4611 ../src/guestfs-actions.pod:6966
14287 msgid "L"
14288 msgstr ""
14289
14290 #. type: textblock
14291 #: ../fish/guestfish-actions.pod:4613 ../src/guestfs-actions.pod:6968
14292 msgid "32-bit little endian such as UCS-4LE."
14293 msgstr ""
14294
14295 #. type: textblock
14296 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:6972
14297 msgid "The returned strings are transcoded to UTF-8."
14298 msgstr ""
14299
14300 #. type: =head2
14301 #: ../fish/guestfish-actions.pod:4622
14302 msgid "swapoff-device"
14303 msgstr ""
14304
14305 #. type: verbatim
14306 #: ../fish/guestfish-actions.pod:4624
14307 #, no-wrap
14308 msgid ""
14309 " swapoff-device device\n"
14310 "\n"
14311 msgstr ""
14312
14313 #. type: textblock
14314 #: ../fish/guestfish-actions.pod:4626
14315 msgid ""
14316 "This command disables the libguestfs appliance swap device or partition "
14317 "named C<device>.  See L</swapon-device>."
14318 msgstr ""
14319
14320 #. type: =head2
14321 #: ../fish/guestfish-actions.pod:4630
14322 msgid "swapoff-file"
14323 msgstr ""
14324
14325 #. type: verbatim
14326 #: ../fish/guestfish-actions.pod:4632
14327 #, no-wrap
14328 msgid ""
14329 " swapoff-file file\n"
14330 "\n"
14331 msgstr ""
14332
14333 #. type: textblock
14334 #: ../fish/guestfish-actions.pod:4634 ../src/guestfs-actions.pod:7003
14335 msgid "This command disables the libguestfs appliance swap on file."
14336 msgstr ""
14337
14338 #. type: =head2
14339 #: ../fish/guestfish-actions.pod:4636
14340 msgid "swapoff-label"
14341 msgstr ""
14342
14343 #. type: verbatim
14344 #: ../fish/guestfish-actions.pod:4638
14345 #, no-wrap
14346 msgid ""
14347 " swapoff-label label\n"
14348 "\n"
14349 msgstr ""
14350
14351 #. type: textblock
14352 #: ../fish/guestfish-actions.pod:4640 ../src/guestfs-actions.pod:7015
14353 msgid ""
14354 "This command disables the libguestfs appliance swap on labeled swap "
14355 "partition."
14356 msgstr ""
14357
14358 #. type: =head2
14359 #: ../fish/guestfish-actions.pod:4643
14360 msgid "swapoff-uuid"
14361 msgstr ""
14362
14363 #. type: verbatim
14364 #: ../fish/guestfish-actions.pod:4645
14365 #, no-wrap
14366 msgid ""
14367 " swapoff-uuid uuid\n"
14368 "\n"
14369 msgstr ""
14370
14371 #. type: textblock
14372 #: ../fish/guestfish-actions.pod:4647 ../src/guestfs-actions.pod:7028
14373 msgid ""
14374 "This command disables the libguestfs appliance swap partition with the given "
14375 "UUID."
14376 msgstr ""
14377
14378 #. type: =head2
14379 #: ../fish/guestfish-actions.pod:4650
14380 msgid "swapon-device"
14381 msgstr ""
14382
14383 #. type: verbatim
14384 #: ../fish/guestfish-actions.pod:4652
14385 #, no-wrap
14386 msgid ""
14387 " swapon-device device\n"
14388 "\n"
14389 msgstr ""
14390
14391 #. type: textblock
14392 #: ../fish/guestfish-actions.pod:4654
14393 msgid ""
14394 "This command enables the libguestfs appliance to use the swap device or "
14395 "partition named C<device>.  The increased memory is made available for all "
14396 "commands, for example those run using L</command> or L</sh>."
14397 msgstr ""
14398
14399 #. type: textblock
14400 #: ../fish/guestfish-actions.pod:4659 ../src/guestfs-actions.pod:7046
14401 msgid ""
14402 "Note that you should not swap to existing guest swap partitions unless you "
14403 "know what you are doing.  They may contain hibernation information, or other "
14404 "information that the guest doesn't want you to trash.  You also risk leaking "
14405 "information about the host to the guest this way.  Instead, attach a new "
14406 "host device to the guest and swap on that."
14407 msgstr ""
14408
14409 #. type: =head2
14410 #: ../fish/guestfish-actions.pod:4666
14411 msgid "swapon-file"
14412 msgstr ""
14413
14414 #. type: verbatim
14415 #: ../fish/guestfish-actions.pod:4668
14416 #, no-wrap
14417 msgid ""
14418 " swapon-file file\n"
14419 "\n"
14420 msgstr ""
14421
14422 #. type: textblock
14423 #: ../fish/guestfish-actions.pod:4670
14424 msgid ""
14425 "This command enables swap to a file.  See L</swapon-device> for other notes."
14426 msgstr ""
14427
14428 #. type: =head2
14429 #: ../fish/guestfish-actions.pod:4673
14430 msgid "swapon-label"
14431 msgstr ""
14432
14433 #. type: verbatim
14434 #: ../fish/guestfish-actions.pod:4675
14435 #, no-wrap
14436 msgid ""
14437 " swapon-label label\n"
14438 "\n"
14439 msgstr ""
14440
14441 #. type: textblock
14442 #: ../fish/guestfish-actions.pod:4677
14443 msgid ""
14444 "This command enables swap to a labeled swap partition.  See L</swapon-"
14445 "device> for other notes."
14446 msgstr ""
14447
14448 #. type: =head2
14449 #: ../fish/guestfish-actions.pod:4680
14450 msgid "swapon-uuid"
14451 msgstr ""
14452
14453 #. type: verbatim
14454 #: ../fish/guestfish-actions.pod:4682
14455 #, no-wrap
14456 msgid ""
14457 " swapon-uuid uuid\n"
14458 "\n"
14459 msgstr ""
14460
14461 #. type: textblock
14462 #: ../fish/guestfish-actions.pod:4684
14463 msgid ""
14464 "This command enables swap to a swap partition with the given UUID.  See L</"
14465 "swapon-device> for other notes."
14466 msgstr ""
14467
14468 #. type: =head2
14469 #: ../fish/guestfish-actions.pod:4687
14470 msgid "sync"
14471 msgstr ""
14472
14473 #. type: verbatim
14474 #: ../fish/guestfish-actions.pod:4689
14475 #, no-wrap
14476 msgid ""
14477 " sync\n"
14478 "\n"
14479 msgstr ""
14480
14481 #. type: textblock
14482 #: ../fish/guestfish-actions.pod:4691 ../src/guestfs-actions.pod:7101
14483 msgid ""
14484 "This syncs the disk, so that any writes are flushed through to the "
14485 "underlying disk image."
14486 msgstr ""
14487
14488 #. type: textblock
14489 #: ../fish/guestfish-actions.pod:4694 ../src/guestfs-actions.pod:7104
14490 msgid ""
14491 "You should always call this if you have modified a disk image, before "
14492 "closing the handle."
14493 msgstr ""
14494
14495 #. type: =head2
14496 #: ../fish/guestfish-actions.pod:4697
14497 msgid "tail"
14498 msgstr ""
14499
14500 #. type: verbatim
14501 #: ../fish/guestfish-actions.pod:4699
14502 #, no-wrap
14503 msgid ""
14504 " tail path\n"
14505 "\n"
14506 msgstr ""
14507
14508 #. type: textblock
14509 #: ../fish/guestfish-actions.pod:4701 ../src/guestfs-actions.pod:7117
14510 msgid ""
14511 "This command returns up to the last 10 lines of a file as a list of strings."
14512 msgstr ""
14513
14514 #. type: =head2
14515 #: ../fish/guestfish-actions.pod:4707
14516 msgid "tail-n"
14517 msgstr ""
14518
14519 #. type: verbatim
14520 #: ../fish/guestfish-actions.pod:4709
14521 #, no-wrap
14522 msgid ""
14523 " tail-n nrlines path\n"
14524 "\n"
14525 msgstr ""
14526
14527 #. type: textblock
14528 #: ../fish/guestfish-actions.pod:4711 ../src/guestfs-actions.pod:7136
14529 msgid ""
14530 "If the parameter C<nrlines> is a positive number, this returns the last "
14531 "C<nrlines> lines of the file C<path>."
14532 msgstr ""
14533
14534 #. type: textblock
14535 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7139
14536 msgid ""
14537 "If the parameter C<nrlines> is a negative number, this returns lines from "
14538 "the file C<path>, starting with the C<-nrlines>th line."
14539 msgstr ""
14540
14541 #. type: =head2
14542 #: ../fish/guestfish-actions.pod:4722
14543 msgid "tar-in"
14544 msgstr ""
14545
14546 #. type: verbatim
14547 #: ../fish/guestfish-actions.pod:4724
14548 #, no-wrap
14549 msgid ""
14550 " tar-in (tarfile|-) directory\n"
14551 "\n"
14552 msgstr ""
14553
14554 #. type: textblock
14555 #: ../fish/guestfish-actions.pod:4726 ../src/guestfs-actions.pod:7160
14556 msgid ""
14557 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14558 "tar file) into C<directory>."
14559 msgstr ""
14560
14561 #. type: textblock
14562 #: ../fish/guestfish-actions.pod:4729
14563 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
14564 msgstr ""
14565
14566 #. type: =head2
14567 #: ../fish/guestfish-actions.pod:4734
14568 msgid "tar-out"
14569 msgstr ""
14570
14571 #. type: verbatim
14572 #: ../fish/guestfish-actions.pod:4736
14573 #, no-wrap
14574 msgid ""
14575 " tar-out directory (tarfile|-)\n"
14576 "\n"
14577 msgstr ""
14578
14579 #. type: textblock
14580 #: ../fish/guestfish-actions.pod:4738 ../src/guestfs-actions.pod:7177
14581 msgid ""
14582 "This command packs the contents of C<directory> and downloads it to local "
14583 "file C<tarfile>."
14584 msgstr ""
14585
14586 #. type: textblock
14587 #: ../fish/guestfish-actions.pod:4741
14588 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
14589 msgstr ""
14590
14591 #. type: =head2
14592 #: ../fish/guestfish-actions.pod:4746
14593 msgid "tgz-in"
14594 msgstr ""
14595
14596 #. type: verbatim
14597 #: ../fish/guestfish-actions.pod:4748
14598 #, no-wrap
14599 msgid ""
14600 " tgz-in (tarball|-) directory\n"
14601 "\n"
14602 msgstr ""
14603
14604 #. type: textblock
14605 #: ../fish/guestfish-actions.pod:4750 ../src/guestfs-actions.pod:7194
14606 msgid ""
14607 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14608 "tar file) into C<directory>."
14609 msgstr ""
14610
14611 #. type: textblock
14612 #: ../fish/guestfish-actions.pod:4753
14613 msgid "To upload an uncompressed tarball, use L</tar-in>."
14614 msgstr ""
14615
14616 #. type: =head2
14617 #: ../fish/guestfish-actions.pod:4757
14618 msgid "tgz-out"
14619 msgstr ""
14620
14621 #. type: verbatim
14622 #: ../fish/guestfish-actions.pod:4759
14623 #, no-wrap
14624 msgid ""
14625 " tgz-out directory (tarball|-)\n"
14626 "\n"
14627 msgstr ""
14628
14629 #. type: textblock
14630 #: ../fish/guestfish-actions.pod:4761 ../src/guestfs-actions.pod:7210
14631 msgid ""
14632 "This command packs the contents of C<directory> and downloads it to local "
14633 "file C<tarball>."
14634 msgstr ""
14635
14636 #. type: textblock
14637 #: ../fish/guestfish-actions.pod:4764
14638 msgid "To download an uncompressed tarball, use L</tar-out>."
14639 msgstr ""
14640
14641 #. type: =head2
14642 #: ../fish/guestfish-actions.pod:4768
14643 msgid "touch"
14644 msgstr ""
14645
14646 #. type: verbatim
14647 #: ../fish/guestfish-actions.pod:4770
14648 #, no-wrap
14649 msgid ""
14650 " touch path\n"
14651 "\n"
14652 msgstr ""
14653
14654 #. type: textblock
14655 #: ../fish/guestfish-actions.pod:4772 ../src/guestfs-actions.pod:7225
14656 msgid ""
14657 "Touch acts like the L<touch(1)> command.  It can be used to update the "
14658 "timestamps on a file, or, if the file does not exist, to create a new zero-"
14659 "length file."
14660 msgstr ""
14661
14662 #. type: textblock
14663 #: ../fish/guestfish-actions.pod:4776 ../src/guestfs-actions.pod:7229
14664 msgid ""
14665 "This command only works on regular files, and will fail on other file types "
14666 "such as directories, symbolic links, block special etc."
14667 msgstr ""
14668
14669 #. type: =head2
14670 #: ../fish/guestfish-actions.pod:4779
14671 msgid "truncate"
14672 msgstr ""
14673
14674 #. type: verbatim
14675 #: ../fish/guestfish-actions.pod:4781
14676 #, no-wrap
14677 msgid ""
14678 " truncate path\n"
14679 "\n"
14680 msgstr ""
14681
14682 #. type: textblock
14683 #: ../fish/guestfish-actions.pod:4783 ../src/guestfs-actions.pod:7242
14684 msgid ""
14685 "This command truncates C<path> to a zero-length file.  The file must exist "
14686 "already."
14687 msgstr ""
14688
14689 #. type: =head2
14690 #: ../fish/guestfish-actions.pod:4786
14691 msgid "truncate-size"
14692 msgstr ""
14693
14694 #. type: verbatim
14695 #: ../fish/guestfish-actions.pod:4788
14696 #, no-wrap
14697 msgid ""
14698 " truncate-size path size\n"
14699 "\n"
14700 msgstr ""
14701
14702 #. type: textblock
14703 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7256
14704 msgid ""
14705 "This command truncates C<path> to size C<size> bytes.  The file must exist "
14706 "already."
14707 msgstr ""
14708
14709 #. type: textblock
14710 #: ../fish/guestfish-actions.pod:4793
14711 msgid ""
14712 "If the current file size is less than C<size> then the file is extended to "
14713 "the required size with zero bytes.  This creates a sparse file (ie. disk "
14714 "blocks are not allocated for the file until you write to it).  To create a "
14715 "non-sparse file of zeroes, use L</fallocate64> instead."
14716 msgstr ""
14717
14718 #. type: =head2
14719 #: ../fish/guestfish-actions.pod:4799
14720 msgid "tune2fs-l"
14721 msgstr ""
14722
14723 #. type: verbatim
14724 #: ../fish/guestfish-actions.pod:4801
14725 #, no-wrap
14726 msgid ""
14727 " tune2fs-l device\n"
14728 "\n"
14729 msgstr ""
14730
14731 #. type: textblock
14732 #: ../fish/guestfish-actions.pod:4803 ../src/guestfs-actions.pod:7275
14733 msgid ""
14734 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
14735 "C<device>."
14736 msgstr ""
14737
14738 #. type: textblock
14739 #: ../fish/guestfish-actions.pod:4806 ../src/guestfs-actions.pod:7278
14740 msgid ""
14741 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
14742 "for more details.  The list of fields returned isn't clearly defined, and "
14743 "depends on both the version of C<tune2fs> that libguestfs was built against, "
14744 "and the filesystem itself."
14745 msgstr ""
14746
14747 #. type: =head2
14748 #: ../fish/guestfish-actions.pod:4811
14749 msgid "txz-in"
14750 msgstr ""
14751
14752 #. type: verbatim
14753 #: ../fish/guestfish-actions.pod:4813
14754 #, no-wrap
14755 msgid ""
14756 " txz-in (tarball|-) directory\n"
14757 "\n"
14758 msgstr ""
14759
14760 #. type: textblock
14761 #: ../fish/guestfish-actions.pod:4815 ../src/guestfs-actions.pod:7298
14762 msgid ""
14763 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
14764 "tar file) into C<directory>."
14765 msgstr ""
14766
14767 #. type: =head2
14768 #: ../fish/guestfish-actions.pod:4820
14769 msgid "txz-out"
14770 msgstr ""
14771
14772 #. type: verbatim
14773 #: ../fish/guestfish-actions.pod:4822
14774 #, no-wrap
14775 msgid ""
14776 " txz-out directory (tarball|-)\n"
14777 "\n"
14778 msgstr ""
14779
14780 #. type: textblock
14781 #: ../fish/guestfish-actions.pod:4824 ../src/guestfs-actions.pod:7312
14782 msgid ""
14783 "This command packs the contents of C<directory> and downloads it to local "
14784 "file C<tarball> (as an xz compressed tar archive)."
14785 msgstr ""
14786
14787 #. type: =head2
14788 #: ../fish/guestfish-actions.pod:4829
14789 msgid "umask"
14790 msgstr ""
14791
14792 #. type: verbatim
14793 #: ../fish/guestfish-actions.pod:4831
14794 #, no-wrap
14795 msgid ""
14796 " umask mask\n"
14797 "\n"
14798 msgstr ""
14799
14800 #. type: textblock
14801 #: ../fish/guestfish-actions.pod:4833 ../src/guestfs-actions.pod:7325
14802 msgid ""
14803 "This function sets the mask used for creating new files and device nodes to "
14804 "C<mask & 0777>."
14805 msgstr ""
14806
14807 #. type: textblock
14808 #: ../fish/guestfish-actions.pod:4836 ../src/guestfs-actions.pod:7328
14809 msgid ""
14810 "Typical umask values would be C<022> which creates new files with "
14811 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
14812 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
14813 msgstr ""
14814
14815 #. type: textblock
14816 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7333
14817 msgid ""
14818 "The default umask is C<022>.  This is important because it means that "
14819 "directories and device nodes will be created with C<0644> or C<0755> mode "
14820 "even if you specify C<0777>."
14821 msgstr ""
14822
14823 #. type: textblock
14824 #: ../fish/guestfish-actions.pod:4845
14825 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
14826 msgstr ""
14827
14828 #. type: textblock
14829 #: ../fish/guestfish-actions.pod:4848 ../src/guestfs-actions.pod:7340
14830 msgid "This call returns the previous umask."
14831 msgstr ""
14832
14833 #. type: =head2
14834 #: ../fish/guestfish-actions.pod:4850
14835 msgid "umount"
14836 msgstr ""
14837
14838 #. type: =head2
14839 #: ../fish/guestfish-actions.pod:4852
14840 msgid "unmount"
14841 msgstr ""
14842
14843 #. type: verbatim
14844 #: ../fish/guestfish-actions.pod:4854
14845 #, no-wrap
14846 msgid ""
14847 " umount pathordevice\n"
14848 "\n"
14849 msgstr ""
14850
14851 #. type: textblock
14852 #: ../fish/guestfish-actions.pod:4856 ../src/guestfs-actions.pod:7352
14853 msgid ""
14854 "This unmounts the given filesystem.  The filesystem may be specified either "
14855 "by its mountpoint (path) or the device which contains the filesystem."
14856 msgstr ""
14857
14858 #. type: =head2
14859 #: ../fish/guestfish-actions.pod:4860
14860 msgid "umount-all"
14861 msgstr ""
14862
14863 #. type: =head2
14864 #: ../fish/guestfish-actions.pod:4862
14865 msgid "unmount-all"
14866 msgstr ""
14867
14868 #. type: verbatim
14869 #: ../fish/guestfish-actions.pod:4864
14870 #, no-wrap
14871 msgid ""
14872 " umount-all\n"
14873 "\n"
14874 msgstr ""
14875
14876 #. type: textblock
14877 #: ../fish/guestfish-actions.pod:4866 ../src/guestfs-actions.pod:7365
14878 msgid "This unmounts all mounted filesystems."
14879 msgstr ""
14880
14881 #. type: textblock
14882 #: ../fish/guestfish-actions.pod:4868 ../src/guestfs-actions.pod:7367
14883 msgid "Some internal mounts are not unmounted by this call."
14884 msgstr ""
14885
14886 #. type: =head2
14887 #: ../fish/guestfish-actions.pod:4870
14888 msgid "upload"
14889 msgstr ""
14890
14891 #. type: verbatim
14892 #: ../fish/guestfish-actions.pod:4872
14893 #, no-wrap
14894 msgid ""
14895 " upload (filename|-) remotefilename\n"
14896 "\n"
14897 msgstr ""
14898
14899 #. type: textblock
14900 #: ../fish/guestfish-actions.pod:4874 ../fish/guestfish-actions.pod:4887
14901 #: ../src/guestfs-actions.pod:7380 ../src/guestfs-actions.pod:7404
14902 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
14903 msgstr ""
14904
14905 #. type: textblock
14906 #: ../fish/guestfish-actions.pod:4879
14907 msgid "See also L</download>."
14908 msgstr ""
14909
14910 #. type: =head2
14911 #: ../fish/guestfish-actions.pod:4883
14912 msgid "upload-offset"
14913 msgstr ""
14914
14915 #. type: verbatim
14916 #: ../fish/guestfish-actions.pod:4885
14917 #, no-wrap
14918 msgid ""
14919 " upload-offset (filename|-) remotefilename offset\n"
14920 "\n"
14921 msgstr ""
14922
14923 #. type: textblock
14924 #: ../fish/guestfish-actions.pod:4890 ../src/guestfs-actions.pod:7407
14925 msgid ""
14926 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
14927 "The intention is to overwrite parts of existing files or devices, although "
14928 "if a non-existant file is specified then it is created with a \"hole\" "
14929 "before C<offset>.  The size of the data written is implicit in the size of "
14930 "the source C<filename>."
14931 msgstr ""
14932
14933 #. type: textblock
14934 #: ../fish/guestfish-actions.pod:4897
14935 msgid ""
14936 "Note that there is no limit on the amount of data that can be uploaded with "
14937 "this call, unlike with L</pwrite>, and this call always writes the full "
14938 "amount unless an error occurs."
14939 msgstr ""
14940
14941 #. type: textblock
14942 #: ../fish/guestfish-actions.pod:4902
14943 msgid "See also L</upload>, L</pwrite>."
14944 msgstr ""
14945
14946 #. type: =head2
14947 #: ../fish/guestfish-actions.pod:4906
14948 msgid "utimens"
14949 msgstr ""
14950
14951 #. type: verbatim
14952 #: ../fish/guestfish-actions.pod:4908
14953 #, no-wrap
14954 msgid ""
14955 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
14956 "\n"
14957 msgstr ""
14958
14959 #. type: textblock
14960 #: ../fish/guestfish-actions.pod:4910 ../src/guestfs-actions.pod:7440
14961 msgid "This command sets the timestamps of a file with nanosecond precision."
14962 msgstr ""
14963
14964 #. type: textblock
14965 #: ../fish/guestfish-actions.pod:4913 ../src/guestfs-actions.pod:7443
14966 msgid ""
14967 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
14968 "from the epoch."
14969 msgstr ""
14970
14971 #. type: textblock
14972 #: ../fish/guestfish-actions.pod:4916 ../src/guestfs-actions.pod:7446
14973 msgid ""
14974 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
14975 "nanoseconds from the epoch."
14976 msgstr ""
14977
14978 #. type: textblock
14979 #: ../fish/guestfish-actions.pod:4919 ../src/guestfs-actions.pod:7449
14980 msgid ""
14981 "If the C<*nsecs> field contains the special value C<-1> then the "
14982 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
14983 "ignored in this case)."
14984 msgstr ""
14985
14986 #. type: textblock
14987 #: ../fish/guestfish-actions.pod:4923 ../src/guestfs-actions.pod:7453
14988 msgid ""
14989 "If the C<*nsecs> field contains the special value C<-2> then the "
14990 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
14991 "in this case)."
14992 msgstr ""
14993
14994 #. type: =head2
14995 #: ../fish/guestfish-actions.pod:4927
14996 msgid "version"
14997 msgstr ""
14998
14999 #. type: verbatim
15000 #: ../fish/guestfish-actions.pod:4929
15001 #, no-wrap
15002 msgid ""
15003 " version\n"
15004 "\n"
15005 msgstr ""
15006
15007 #. type: textblock
15008 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7466
15009 msgid ""
15010 "Return the libguestfs version number that the program is linked against."
15011 msgstr ""
15012
15013 #. type: textblock
15014 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7469
15015 msgid ""
15016 "Note that because of dynamic linking this is not necessarily the version of "
15017 "libguestfs that you compiled against.  You can compile the program, and then "
15018 "at runtime dynamically link against a completely different C<libguestfs.so> "
15019 "library."
15020 msgstr ""
15021
15022 #. type: textblock
15023 #: ../fish/guestfish-actions.pod:4939 ../src/guestfs-actions.pod:7474
15024 msgid ""
15025 "This call was added in version C<1.0.58>.  In previous versions of "
15026 "libguestfs there was no way to get the version number.  From C code you can "
15027 "use dynamic linker functions to find out if this symbol exists (if it "
15028 "doesn't, then it's an earlier version)."
15029 msgstr ""
15030
15031 #. type: textblock
15032 #: ../fish/guestfish-actions.pod:4945 ../src/guestfs-actions.pod:7480
15033 msgid ""
15034 "The call returns a structure with four elements.  The first three (C<major>, "
15035 "C<minor> and C<release>) are numbers and correspond to the usual version "
15036 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
15037 "but may be used for distro-specific information."
15038 msgstr ""
15039
15040 #. type: textblock
15041 #: ../fish/guestfish-actions.pod:4951 ../src/guestfs-actions.pod:7486
15042 msgid ""
15043 "To construct the original version string: C<$major.$minor.$release$extra>"
15044 msgstr ""
15045
15046 #. type: textblock
15047 #: ../fish/guestfish-actions.pod:4954 ../src/guestfs-actions.pod:7489
15048 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15049 msgstr ""
15050
15051 #. type: textblock
15052 #: ../fish/guestfish-actions.pod:4956
15053 msgid ""
15054 "I<Note:> Don't use this call to test for availability of features.  In "
15055 "enterprise distributions we backport features from later versions into "
15056 "earlier versions, making this an unreliable way to test for features.  Use "
15057 "L</available> instead."
15058 msgstr ""
15059
15060 #. type: =head2
15061 #: ../fish/guestfish-actions.pod:4962
15062 msgid "vfs-label"
15063 msgstr ""
15064
15065 #. type: verbatim
15066 #: ../fish/guestfish-actions.pod:4964
15067 #, no-wrap
15068 msgid ""
15069 " vfs-label device\n"
15070 "\n"
15071 msgstr ""
15072
15073 #. type: textblock
15074 #: ../fish/guestfish-actions.pod:4966 ../src/guestfs-actions.pod:7509
15075 msgid "This returns the filesystem label of the filesystem on C<device>."
15076 msgstr ""
15077
15078 #. type: textblock
15079 #: ../fish/guestfish-actions.pod:4969 ../src/guestfs-actions.pod:7512
15080 msgid "If the filesystem is unlabeled, this returns the empty string."
15081 msgstr ""
15082
15083 #. type: textblock
15084 #: ../fish/guestfish-actions.pod:4971
15085 msgid "To find a filesystem from the label, use L</findfs-label>."
15086 msgstr ""
15087
15088 #. type: =head2
15089 #: ../fish/guestfish-actions.pod:4973
15090 msgid "vfs-type"
15091 msgstr ""
15092
15093 #. type: verbatim
15094 #: ../fish/guestfish-actions.pod:4975
15095 #, no-wrap
15096 msgid ""
15097 " vfs-type device\n"
15098 "\n"
15099 msgstr ""
15100
15101 #. type: textblock
15102 #: ../fish/guestfish-actions.pod:4977 ../src/guestfs-actions.pod:7527
15103 msgid ""
15104 "This command gets the filesystem type corresponding to the filesystem on "
15105 "C<device>."
15106 msgstr ""
15107
15108 #. type: textblock
15109 #: ../fish/guestfish-actions.pod:4980 ../src/guestfs-actions.pod:7530
15110 msgid ""
15111 "For most filesystems, the result is the name of the Linux VFS module which "
15112 "would be used to mount this filesystem if you mounted it without specifying "
15113 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
15114 msgstr ""
15115
15116 #. type: =head2
15117 #: ../fish/guestfish-actions.pod:4985
15118 msgid "vfs-uuid"
15119 msgstr ""
15120
15121 #. type: verbatim
15122 #: ../fish/guestfish-actions.pod:4987
15123 #, no-wrap
15124 msgid ""
15125 " vfs-uuid device\n"
15126 "\n"
15127 msgstr ""
15128
15129 #. type: textblock
15130 #: ../fish/guestfish-actions.pod:4989 ../src/guestfs-actions.pod:7546
15131 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15132 msgstr ""
15133
15134 #. type: textblock
15135 #: ../fish/guestfish-actions.pod:4992 ../src/guestfs-actions.pod:7549
15136 msgid "If the filesystem does not have a UUID, this returns the empty string."
15137 msgstr ""
15138
15139 #. type: textblock
15140 #: ../fish/guestfish-actions.pod:4994
15141 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
15142 msgstr ""
15143
15144 #. type: =head2
15145 #: ../fish/guestfish-actions.pod:4996
15146 msgid "vg-activate"
15147 msgstr ""
15148
15149 #. type: verbatim
15150 #: ../fish/guestfish-actions.pod:4998
15151 #, no-wrap
15152 msgid ""
15153 " vg-activate true|false 'volgroups ...'\n"
15154 "\n"
15155 msgstr ""
15156
15157 #. type: textblock
15158 #: ../fish/guestfish-actions.pod:5000 ../src/guestfs-actions.pod:7565
15159 msgid ""
15160 "This command activates or (if C<activate> is false) deactivates all logical "
15161 "volumes in the listed volume groups C<volgroups>."
15162 msgstr ""
15163
15164 #. type: textblock
15165 #: ../fish/guestfish-actions.pod:5003 ../src/guestfs-actions.pod:7568
15166 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15167 msgstr ""
15168
15169 #. type: textblock
15170 #: ../fish/guestfish-actions.pod:5005 ../src/guestfs-actions.pod:7570
15171 msgid ""
15172 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15173 "activated or deactivated."
15174 msgstr ""
15175
15176 #. type: =head2
15177 #: ../fish/guestfish-actions.pod:5008
15178 msgid "vg-activate-all"
15179 msgstr ""
15180
15181 #. type: verbatim
15182 #: ../fish/guestfish-actions.pod:5010
15183 #, no-wrap
15184 msgid ""
15185 " vg-activate-all true|false\n"
15186 "\n"
15187 msgstr ""
15188
15189 #. type: textblock
15190 #: ../fish/guestfish-actions.pod:5012 ../src/guestfs-actions.pod:7583
15191 msgid ""
15192 "This command activates or (if C<activate> is false) deactivates all logical "
15193 "volumes in all volume groups."
15194 msgstr ""
15195
15196 #. type: textblock
15197 #: ../fish/guestfish-actions.pod:5015 ../src/guestfs-actions.pod:7586
15198 msgid "This command is the same as running C<vgchange -a y|n>"
15199 msgstr ""
15200
15201 #. type: =head2
15202 #: ../fish/guestfish-actions.pod:5017
15203 msgid "vgcreate"
15204 msgstr ""
15205
15206 #. type: verbatim
15207 #: ../fish/guestfish-actions.pod:5019
15208 #, no-wrap
15209 msgid ""
15210 " vgcreate volgroup 'physvols ...'\n"
15211 "\n"
15212 msgstr ""
15213
15214 #. type: textblock
15215 #: ../fish/guestfish-actions.pod:5021 ../src/guestfs-actions.pod:7599
15216 msgid ""
15217 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15218 "of physical volumes C<physvols>."
15219 msgstr ""
15220
15221 #. type: =head2
15222 #: ../fish/guestfish-actions.pod:5024
15223 msgid "vglvuuids"
15224 msgstr ""
15225
15226 #. type: verbatim
15227 #: ../fish/guestfish-actions.pod:5026
15228 #, no-wrap
15229 msgid ""
15230 " vglvuuids vgname\n"
15231 "\n"
15232 msgstr ""
15233
15234 #. type: textblock
15235 #: ../fish/guestfish-actions.pod:5028 ../src/guestfs-actions.pod:7612
15236 msgid ""
15237 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15238 "volumes created in this volume group."
15239 msgstr ""
15240
15241 #. type: textblock
15242 #: ../fish/guestfish-actions.pod:5031
15243 msgid ""
15244 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
15245 "logical volumes and volume groups."
15246 msgstr ""
15247
15248 #. type: textblock
15249 #: ../fish/guestfish-actions.pod:5034
15250 msgid "See also L</vgpvuuids>."
15251 msgstr ""
15252
15253 #. type: =head2
15254 #: ../fish/guestfish-actions.pod:5036
15255 msgid "vgpvuuids"
15256 msgstr ""
15257
15258 #. type: verbatim
15259 #: ../fish/guestfish-actions.pod:5038
15260 #, no-wrap
15261 msgid ""
15262 " vgpvuuids vgname\n"
15263 "\n"
15264 msgstr ""
15265
15266 #. type: textblock
15267 #: ../fish/guestfish-actions.pod:5040 ../src/guestfs-actions.pod:7632
15268 msgid ""
15269 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15270 "volumes that this volume group resides on."
15271 msgstr ""
15272
15273 #. type: textblock
15274 #: ../fish/guestfish-actions.pod:5043
15275 msgid ""
15276 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
15277 "physical volumes and volume groups."
15278 msgstr ""
15279
15280 #. type: textblock
15281 #: ../fish/guestfish-actions.pod:5046
15282 msgid "See also L</vglvuuids>."
15283 msgstr ""
15284
15285 #. type: =head2
15286 #: ../fish/guestfish-actions.pod:5048
15287 msgid "vgremove"
15288 msgstr ""
15289
15290 #. type: verbatim
15291 #: ../fish/guestfish-actions.pod:5050
15292 #, no-wrap
15293 msgid ""
15294 " vgremove vgname\n"
15295 "\n"
15296 msgstr ""
15297
15298 #. type: textblock
15299 #: ../fish/guestfish-actions.pod:5052 ../src/guestfs-actions.pod:7652
15300 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15301 msgstr ""
15302
15303 #. type: textblock
15304 #: ../fish/guestfish-actions.pod:5054 ../src/guestfs-actions.pod:7654
15305 msgid ""
15306 "This also forcibly removes all logical volumes in the volume group (if any)."
15307 msgstr ""
15308
15309 #. type: =head2
15310 #: ../fish/guestfish-actions.pod:5057
15311 msgid "vgrename"
15312 msgstr ""
15313
15314 #. type: verbatim
15315 #: ../fish/guestfish-actions.pod:5059
15316 #, no-wrap
15317 msgid ""
15318 " vgrename volgroup newvolgroup\n"
15319 "\n"
15320 msgstr ""
15321
15322 #. type: textblock
15323 #: ../fish/guestfish-actions.pod:5061 ../src/guestfs-actions.pod:7668
15324 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15325 msgstr ""
15326
15327 #. type: =head2
15328 #: ../fish/guestfish-actions.pod:5063
15329 msgid "vgs"
15330 msgstr ""
15331
15332 #. type: verbatim
15333 #: ../fish/guestfish-actions.pod:5065
15334 #, no-wrap
15335 msgid ""
15336 " vgs\n"
15337 "\n"
15338 msgstr ""
15339
15340 #. type: textblock
15341 #: ../fish/guestfish-actions.pod:5067 ../src/guestfs-actions.pod:7679
15342 msgid ""
15343 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15344 "> command."
15345 msgstr ""
15346
15347 #. type: textblock
15348 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7682
15349 msgid ""
15350 "This returns a list of just the volume group names that were detected (eg. "
15351 "C<VolGroup00>)."
15352 msgstr ""
15353
15354 #. type: textblock
15355 #: ../fish/guestfish-actions.pod:5073
15356 msgid "See also L</vgs-full>."
15357 msgstr ""
15358
15359 #. type: =head2
15360 #: ../fish/guestfish-actions.pod:5075
15361 msgid "vgs-full"
15362 msgstr ""
15363
15364 #. type: verbatim
15365 #: ../fish/guestfish-actions.pod:5077
15366 #, no-wrap
15367 msgid ""
15368 " vgs-full\n"
15369 "\n"
15370 msgstr ""
15371
15372 #. type: textblock
15373 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7698
15374 msgid ""
15375 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15376 "> command.  The \"full\" version includes all fields."
15377 msgstr ""
15378
15379 #. type: =head2
15380 #: ../fish/guestfish-actions.pod:5082
15381 msgid "vgscan"
15382 msgstr ""
15383
15384 #. type: verbatim
15385 #: ../fish/guestfish-actions.pod:5084
15386 #, no-wrap
15387 msgid ""
15388 " vgscan\n"
15389 "\n"
15390 msgstr ""
15391
15392 #. type: textblock
15393 #: ../fish/guestfish-actions.pod:5086 ../src/guestfs-actions.pod:7712
15394 msgid ""
15395 "This rescans all block devices and rebuilds the list of LVM physical "
15396 "volumes, volume groups and logical volumes."
15397 msgstr ""
15398
15399 #. type: =head2
15400 #: ../fish/guestfish-actions.pod:5089
15401 msgid "vguuid"
15402 msgstr ""
15403
15404 #. type: verbatim
15405 #: ../fish/guestfish-actions.pod:5091
15406 #, no-wrap
15407 msgid ""
15408 " vguuid vgname\n"
15409 "\n"
15410 msgstr ""
15411
15412 #. type: textblock
15413 #: ../fish/guestfish-actions.pod:5093 ../src/guestfs-actions.pod:7725
15414 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15415 msgstr ""
15416
15417 #. type: =head2
15418 #: ../fish/guestfish-actions.pod:5095
15419 msgid "wc-c"
15420 msgstr ""
15421
15422 #. type: verbatim
15423 #: ../fish/guestfish-actions.pod:5097
15424 #, no-wrap
15425 msgid ""
15426 " wc-c path\n"
15427 "\n"
15428 msgstr ""
15429
15430 #. type: textblock
15431 #: ../fish/guestfish-actions.pod:5099 ../src/guestfs-actions.pod:7765
15432 msgid ""
15433 "This command counts the characters in a file, using the C<wc -c> external "
15434 "command."
15435 msgstr ""
15436
15437 #. type: =head2
15438 #: ../fish/guestfish-actions.pod:5102
15439 msgid "wc-l"
15440 msgstr ""
15441
15442 #. type: verbatim
15443 #: ../fish/guestfish-actions.pod:5104
15444 #, no-wrap
15445 msgid ""
15446 " wc-l path\n"
15447 "\n"
15448 msgstr ""
15449
15450 #. type: textblock
15451 #: ../fish/guestfish-actions.pod:5106 ../src/guestfs-actions.pod:7778
15452 msgid ""
15453 "This command counts the lines in a file, using the C<wc -l> external command."
15454 msgstr ""
15455
15456 #. type: =head2
15457 #: ../fish/guestfish-actions.pod:5109
15458 msgid "wc-w"
15459 msgstr ""
15460
15461 #. type: verbatim
15462 #: ../fish/guestfish-actions.pod:5111
15463 #, no-wrap
15464 msgid ""
15465 " wc-w path\n"
15466 "\n"
15467 msgstr ""
15468
15469 #. type: textblock
15470 #: ../fish/guestfish-actions.pod:5113 ../src/guestfs-actions.pod:7791
15471 msgid ""
15472 "This command counts the words in a file, using the C<wc -w> external command."
15473 msgstr ""
15474
15475 #. type: =head2
15476 #: ../fish/guestfish-actions.pod:5116
15477 msgid "write"
15478 msgstr ""
15479
15480 #. type: verbatim
15481 #: ../fish/guestfish-actions.pod:5118
15482 #, no-wrap
15483 msgid ""
15484 " write path content\n"
15485 "\n"
15486 msgstr ""
15487
15488 #. type: textblock
15489 #: ../fish/guestfish-actions.pod:5120 ../src/guestfs-actions.pod:7806
15490 msgid ""
15491 "This call creates a file called C<path>.  The content of the file is the "
15492 "string C<content> (which can contain any 8 bit data)."
15493 msgstr ""
15494
15495 #. type: textblock
15496 #: ../fish/guestfish-actions.pod:5123
15497 msgid "See also L</write-append>."
15498 msgstr ""
15499
15500 #. type: =head2
15501 #: ../fish/guestfish-actions.pod:5128
15502 msgid "write-append"
15503 msgstr ""
15504
15505 #. type: verbatim
15506 #: ../fish/guestfish-actions.pod:5130
15507 #, no-wrap
15508 msgid ""
15509 " write-append path content\n"
15510 "\n"
15511 msgstr ""
15512
15513 #. type: textblock
15514 #: ../fish/guestfish-actions.pod:5132 ../src/guestfs-actions.pod:7826
15515 msgid ""
15516 "This call appends C<content> to the end of file C<path>.  If C<path> does "
15517 "not exist, then a new file is created."
15518 msgstr ""
15519
15520 #. type: textblock
15521 #: ../fish/guestfish-actions.pod:5135
15522 msgid "See also L</write>."
15523 msgstr ""
15524
15525 #. type: =head2
15526 #: ../fish/guestfish-actions.pod:5140
15527 msgid "write-file"
15528 msgstr ""
15529
15530 #. type: verbatim
15531 #: ../fish/guestfish-actions.pod:5142
15532 #, no-wrap
15533 msgid ""
15534 " write-file path content size\n"
15535 "\n"
15536 msgstr ""
15537
15538 #. type: textblock
15539 #: ../fish/guestfish-actions.pod:5144 ../src/guestfs-actions.pod:7853
15540 msgid ""
15541 "This call creates a file called C<path>.  The contents of the file is the "
15542 "string C<content> (which can contain any 8 bit data), with length C<size>."
15543 msgstr ""
15544
15545 #. type: textblock
15546 #: ../fish/guestfish-actions.pod:5148 ../src/guestfs-actions.pod:7857
15547 msgid ""
15548 "As a special case, if C<size> is C<0> then the length is calculated using "
15549 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
15550 msgstr ""
15551
15552 #. type: textblock
15553 #: ../fish/guestfish-actions.pod:5152 ../src/guestfs-actions.pod:7861
15554 msgid ""
15555 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
15556 "I<not> work, even if the length is specified."
15557 msgstr ""
15558
15559 #. type: textblock
15560 #: ../fish/guestfish-actions.pod:5158
15561 msgid ""
15562 "I<This function is deprecated.> In new code, use the L</write> call instead."
15563 msgstr ""
15564
15565 #. type: =head2
15566 #: ../fish/guestfish-actions.pod:5165
15567 msgid "zegrep"
15568 msgstr ""
15569
15570 #. type: verbatim
15571 #: ../fish/guestfish-actions.pod:5167
15572 #, no-wrap
15573 msgid ""
15574 " zegrep regex path\n"
15575 "\n"
15576 msgstr ""
15577
15578 #. type: textblock
15579 #: ../fish/guestfish-actions.pod:5169 ../src/guestfs-actions.pod:7878
15580 msgid ""
15581 "This calls the external C<zegrep> program and returns the matching lines."
15582 msgstr ""
15583
15584 #. type: =head2
15585 #: ../fish/guestfish-actions.pod:5175
15586 msgid "zegrepi"
15587 msgstr ""
15588
15589 #. type: verbatim
15590 #: ../fish/guestfish-actions.pod:5177
15591 #, no-wrap
15592 msgid ""
15593 " zegrepi regex path\n"
15594 "\n"
15595 msgstr ""
15596
15597 #. type: textblock
15598 #: ../fish/guestfish-actions.pod:5179 ../src/guestfs-actions.pod:7897
15599 msgid ""
15600 "This calls the external C<zegrep -i> program and returns the matching lines."
15601 msgstr ""
15602
15603 #. type: =head2
15604 #: ../fish/guestfish-actions.pod:5185
15605 msgid "zero"
15606 msgstr ""
15607
15608 #. type: verbatim
15609 #: ../fish/guestfish-actions.pod:5187
15610 #, no-wrap
15611 msgid ""
15612 " zero device\n"
15613 "\n"
15614 msgstr ""
15615
15616 #. type: textblock
15617 #: ../fish/guestfish-actions.pod:5189 ../src/guestfs-actions.pod:7915
15618 msgid "This command writes zeroes over the first few blocks of C<device>."
15619 msgstr ""
15620
15621 #. type: textblock
15622 #: ../fish/guestfish-actions.pod:5191 ../src/guestfs-actions.pod:7917
15623 msgid ""
15624 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
15625 "securely wipe the device).  It should be sufficient to remove any partition "
15626 "tables, filesystem superblocks and so on."
15627 msgstr ""
15628
15629 #. type: textblock
15630 #: ../fish/guestfish-actions.pod:5195 ../fish/guestfish-actions.pod:5210
15631 #: ../src/guestfs-actions.pod:7921 ../src/guestfs-actions.pod:7947
15632 msgid ""
15633 "If blocks are already zero, then this command avoids writing zeroes.  This "
15634 "prevents the underlying device from becoming non-sparse or growing "
15635 "unnecessarily."
15636 msgstr ""
15637
15638 #. type: textblock
15639 #: ../fish/guestfish-actions.pod:5199
15640 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
15641 msgstr ""
15642
15643 #. type: =head2
15644 #: ../fish/guestfish-actions.pod:5202
15645 msgid "zero-device"
15646 msgstr ""
15647
15648 #. type: verbatim
15649 #: ../fish/guestfish-actions.pod:5204
15650 #, no-wrap
15651 msgid ""
15652 " zero-device device\n"
15653 "\n"
15654 msgstr ""
15655
15656 #. type: textblock
15657 #: ../fish/guestfish-actions.pod:5206
15658 msgid ""
15659 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
15660 "which just zeroes the first few blocks of a device."
15661 msgstr ""
15662
15663 #. type: =head2
15664 #: ../fish/guestfish-actions.pod:5217
15665 msgid "zerofree"
15666 msgstr ""
15667
15668 #. type: verbatim
15669 #: ../fish/guestfish-actions.pod:5219
15670 #, no-wrap
15671 msgid ""
15672 " zerofree device\n"
15673 "\n"
15674 msgstr ""
15675
15676 #. type: textblock
15677 #: ../fish/guestfish-actions.pod:5221 ../src/guestfs-actions.pod:7969
15678 msgid ""
15679 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
15680 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
15681 "possible to compress the filesystem more effectively."
15682 msgstr ""
15683
15684 #. type: textblock
15685 #: ../fish/guestfish-actions.pod:5226 ../src/guestfs-actions.pod:7974
15686 msgid "You should B<not> run this program if the filesystem is mounted."
15687 msgstr ""
15688
15689 #. type: textblock
15690 #: ../fish/guestfish-actions.pod:5229 ../src/guestfs-actions.pod:7977
15691 msgid ""
15692 "It is possible that using this program can damage the filesystem or data on "
15693 "the filesystem."
15694 msgstr ""
15695
15696 #. type: =head2
15697 #: ../fish/guestfish-actions.pod:5232
15698 msgid "zfgrep"
15699 msgstr ""
15700
15701 #. type: verbatim
15702 #: ../fish/guestfish-actions.pod:5234
15703 #, no-wrap
15704 msgid ""
15705 " zfgrep pattern path\n"
15706 "\n"
15707 msgstr ""
15708
15709 #. type: textblock
15710 #: ../fish/guestfish-actions.pod:5236 ../src/guestfs-actions.pod:7991
15711 msgid ""
15712 "This calls the external C<zfgrep> program and returns the matching lines."
15713 msgstr ""
15714
15715 #. type: =head2
15716 #: ../fish/guestfish-actions.pod:5242
15717 msgid "zfgrepi"
15718 msgstr ""
15719
15720 #. type: verbatim
15721 #: ../fish/guestfish-actions.pod:5244
15722 #, no-wrap
15723 msgid ""
15724 " zfgrepi pattern path\n"
15725 "\n"
15726 msgstr ""
15727
15728 #. type: textblock
15729 #: ../fish/guestfish-actions.pod:5246 ../src/guestfs-actions.pod:8010
15730 msgid ""
15731 "This calls the external C<zfgrep -i> program and returns the matching lines."
15732 msgstr ""
15733
15734 #. type: =head2
15735 #: ../fish/guestfish-actions.pod:5252
15736 msgid "zfile"
15737 msgstr ""
15738
15739 #. type: verbatim
15740 #: ../fish/guestfish-actions.pod:5254
15741 #, no-wrap
15742 msgid ""
15743 " zfile meth path\n"
15744 "\n"
15745 msgstr ""
15746
15747 #. type: textblock
15748 #: ../fish/guestfish-actions.pod:5256 ../src/guestfs-actions.pod:8036
15749 msgid ""
15750 "This command runs C<file> after first decompressing C<path> using C<method>."
15751 msgstr ""
15752
15753 #. type: textblock
15754 #: ../fish/guestfish-actions.pod:5259 ../src/guestfs-actions.pod:8039
15755 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
15756 msgstr ""
15757
15758 #. type: textblock
15759 #: ../fish/guestfish-actions.pod:5261
15760 msgid ""
15761 "Since 1.0.63, use L</file> instead which can now process compressed files."
15762 msgstr ""
15763
15764 #. type: textblock
15765 #: ../fish/guestfish-actions.pod:5264
15766 msgid ""
15767 "I<This function is deprecated.> In new code, use the L</file> call instead."
15768 msgstr ""
15769
15770 #. type: =head2
15771 #: ../fish/guestfish-actions.pod:5271
15772 msgid "zgrep"
15773 msgstr ""
15774
15775 #. type: verbatim
15776 #: ../fish/guestfish-actions.pod:5273
15777 #, no-wrap
15778 msgid ""
15779 " zgrep regex path\n"
15780 "\n"
15781 msgstr ""
15782
15783 #. type: textblock
15784 #: ../fish/guestfish-actions.pod:5275 ../src/guestfs-actions.pod:8056
15785 msgid ""
15786 "This calls the external C<zgrep> program and returns the matching lines."
15787 msgstr ""
15788
15789 #. type: =head2
15790 #: ../fish/guestfish-actions.pod:5281
15791 msgid "zgrepi"
15792 msgstr ""
15793
15794 #. type: verbatim
15795 #: ../fish/guestfish-actions.pod:5283
15796 #, no-wrap
15797 msgid ""
15798 " zgrepi regex path\n"
15799 "\n"
15800 msgstr ""
15801
15802 #. type: textblock
15803 #: ../fish/guestfish-actions.pod:5285 ../src/guestfs-actions.pod:8075
15804 msgid ""
15805 "This calls the external C<zgrep -i> program and returns the matching lines."
15806 msgstr ""
15807
15808 #. type: =head2
15809 #: ../fish/guestfish-commands.pod:1
15810 msgid "alloc"
15811 msgstr ""
15812
15813 #. type: =head2
15814 #: ../fish/guestfish-commands.pod:3
15815 msgid "allocate"
15816 msgstr ""
15817
15818 #. type: verbatim
15819 #: ../fish/guestfish-commands.pod:5
15820 #, no-wrap
15821 msgid ""
15822 " alloc filename size\n"
15823 "\n"
15824 msgstr ""
15825
15826 #. type: textblock
15827 #: ../fish/guestfish-commands.pod:7
15828 msgid ""
15829 "This creates an empty (zeroed) file of the given size, and then adds so it "
15830 "can be further examined."
15831 msgstr ""
15832
15833 #. type: textblock
15834 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
15835 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
15836 msgstr ""
15837
15838 #. type: textblock
15839 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
15840 msgid "Size can be specified using standard suffixes, eg. C<1M>."
15841 msgstr ""
15842
15843 #. type: textblock
15844 #: ../fish/guestfish-commands.pod:14
15845 msgid ""
15846 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
15847 "image, see L</PREPARED DISK IMAGES>."
15848 msgstr ""
15849
15850 #. type: =head2
15851 #: ../fish/guestfish-commands.pod:17
15852 msgid "copy-in"
15853 msgstr ""
15854
15855 #. type: verbatim
15856 #: ../fish/guestfish-commands.pod:19
15857 #, no-wrap
15858 msgid ""
15859 " copy-in local [local ...] /remotedir\n"
15860 "\n"
15861 msgstr ""
15862
15863 #. type: textblock
15864 #: ../fish/guestfish-commands.pod:21
15865 msgid ""
15866 "C<copy-in> copies local files or directories recursively into the disk "
15867 "image, placing them in the directory called C</remotedir> (which must "
15868 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
15869 "other commands as necessary."
15870 msgstr ""
15871
15872 #. type: textblock
15873 #: ../fish/guestfish-commands.pod:26
15874 msgid ""
15875 "Multiple local files and directories can be specified, but the last "
15876 "parameter must always be a remote directory.  Wildcards cannot be used."
15877 msgstr ""
15878
15879 #. type: =head2
15880 #: ../fish/guestfish-commands.pod:30
15881 msgid "copy-out"
15882 msgstr ""
15883
15884 #. type: verbatim
15885 #: ../fish/guestfish-commands.pod:32
15886 #, no-wrap
15887 msgid ""
15888 " copy-out remote [remote ...] localdir\n"
15889 "\n"
15890 msgstr ""
15891
15892 #. type: textblock
15893 #: ../fish/guestfish-commands.pod:34
15894 msgid ""
15895 "C<copy-out> copies remote files or directories recursively out of the disk "
15896 "image, placing them on the host disk in a local directory called C<localdir> "
15897 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
15898 "download>, L</tar-out> and other commands as necessary."
15899 msgstr ""
15900
15901 #. type: textblock
15902 #: ../fish/guestfish-commands.pod:40
15903 msgid ""
15904 "Multiple remote files and directories can be specified, but the last "
15905 "parameter must always be a local directory.  To download to the current "
15906 "directory, use C<.> as in:"
15907 msgstr ""
15908
15909 #. type: verbatim
15910 #: ../fish/guestfish-commands.pod:44
15911 #, no-wrap
15912 msgid ""
15913 " copy-out /home .\n"
15914 "\n"
15915 msgstr ""
15916
15917 #. type: textblock
15918 #: ../fish/guestfish-commands.pod:46
15919 msgid ""
15920 "Wildcards cannot be used in the ordinary command, but you can use them with "
15921 "the help of L</glob> like this:"
15922 msgstr ""
15923
15924 #. type: verbatim
15925 #: ../fish/guestfish-commands.pod:49
15926 #, no-wrap
15927 msgid ""
15928 " glob copy-out /home/* .\n"
15929 "\n"
15930 msgstr ""
15931
15932 #. type: =head2
15933 #: ../fish/guestfish-commands.pod:51
15934 msgid "display"
15935 msgstr ""
15936
15937 #. type: verbatim
15938 #: ../fish/guestfish-commands.pod:53
15939 #, no-wrap
15940 msgid ""
15941 " display filename\n"
15942 "\n"
15943 msgstr ""
15944
15945 #. type: textblock
15946 #: ../fish/guestfish-commands.pod:55
15947 msgid ""
15948 "Use C<display> (a graphical display program) to display an image file.  It "
15949 "downloads the file, and runs C<display> on it."
15950 msgstr ""
15951
15952 #. type: textblock
15953 #: ../fish/guestfish-commands.pod:58
15954 msgid ""
15955 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
15956 "environment variable.  For example to use the GNOME display program:"
15957 msgstr ""
15958
15959 #. type: verbatim
15960 #: ../fish/guestfish-commands.pod:61
15961 #, no-wrap
15962 msgid ""
15963 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
15964 "\n"
15965 msgstr ""
15966
15967 #. type: textblock
15968 #: ../fish/guestfish-commands.pod:63
15969 msgid "See also L<display(1)>."
15970 msgstr ""
15971
15972 #. type: =head2
15973 #: ../fish/guestfish-commands.pod:65
15974 msgid "echo"
15975 msgstr ""
15976
15977 #. type: verbatim
15978 #: ../fish/guestfish-commands.pod:67
15979 #, no-wrap
15980 msgid ""
15981 " echo [params ...]\n"
15982 "\n"
15983 msgstr ""
15984
15985 #. type: textblock
15986 #: ../fish/guestfish-commands.pod:69
15987 msgid "This echos the parameters to the terminal."
15988 msgstr ""
15989
15990 #. type: =head2
15991 #: ../fish/guestfish-commands.pod:71
15992 msgid "edit"
15993 msgstr ""
15994
15995 #. type: =head2
15996 #: ../fish/guestfish-commands.pod:73
15997 msgid "vi"
15998 msgstr ""
15999
16000 #. type: =head2
16001 #: ../fish/guestfish-commands.pod:75
16002 msgid "emacs"
16003 msgstr ""
16004
16005 #. type: verbatim
16006 #: ../fish/guestfish-commands.pod:77
16007 #, no-wrap
16008 msgid ""
16009 " edit filename\n"
16010 "\n"
16011 msgstr ""
16012
16013 #. type: textblock
16014 #: ../fish/guestfish-commands.pod:79
16015 msgid ""
16016 "This is used to edit a file.  It downloads the file, edits it locally using "
16017 "your editor, then uploads the result."
16018 msgstr ""
16019
16020 #. type: textblock
16021 #: ../fish/guestfish-commands.pod:82
16022 msgid ""
16023 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
16024 "or C<emacs> you will get those corresponding editors."
16025 msgstr ""
16026
16027 #. type: =head2
16028 #: ../fish/guestfish-commands.pod:86
16029 msgid "glob"
16030 msgstr ""
16031
16032 #. type: verbatim
16033 #: ../fish/guestfish-commands.pod:88
16034 #, no-wrap
16035 msgid ""
16036 " glob command args...\n"
16037 "\n"
16038 msgstr ""
16039
16040 #. type: textblock
16041 #: ../fish/guestfish-commands.pod:90
16042 msgid ""
16043 "Expand wildcards in any paths in the args list, and run C<command> "
16044 "repeatedly on each matching path."
16045 msgstr ""
16046
16047 #. type: textblock
16048 #: ../fish/guestfish-commands.pod:93
16049 msgid "See L</WILDCARDS AND GLOBBING>."
16050 msgstr ""
16051
16052 #. type: =head2
16053 #: ../fish/guestfish-commands.pod:95
16054 msgid "hexedit"
16055 msgstr ""
16056
16057 #. type: verbatim
16058 #: ../fish/guestfish-commands.pod:97
16059 #, no-wrap
16060 msgid ""
16061 " hexedit <filename|device>\n"
16062 " hexedit <filename|device> <max>\n"
16063 " hexedit <filename|device> <start> <max>\n"
16064 "\n"
16065 msgstr ""
16066
16067 #. type: textblock
16068 #: ../fish/guestfish-commands.pod:101
16069 msgid ""
16070 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
16071 "device."
16072 msgstr ""
16073
16074 #. type: textblock
16075 #: ../fish/guestfish-commands.pod:104
16076 msgid ""
16077 "This command works by downloading potentially the whole file or device, "
16078 "editing it locally, then uploading it.  If the file or device is large, you "
16079 "have to specify which part you wish to edit by using C<max> and/or C<start> "
16080 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
16081 "usual modifiers allowed such as C<1M> (1 megabyte)."
16082 msgstr ""
16083
16084 #. type: textblock
16085 #: ../fish/guestfish-commands.pod:111
16086 msgid "For example to edit the first few sectors of a disk you might do:"
16087 msgstr ""
16088
16089 #. type: verbatim
16090 #: ../fish/guestfish-commands.pod:114
16091 #, no-wrap
16092 msgid ""
16093 " hexedit /dev/sda 1M\n"
16094 "\n"
16095 msgstr ""
16096
16097 #. type: textblock
16098 #: ../fish/guestfish-commands.pod:116
16099 msgid ""
16100 "which would allow you to edit anywhere within the first megabyte of the disk."
16101 msgstr ""
16102
16103 #. type: textblock
16104 #: ../fish/guestfish-commands.pod:119
16105 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
16106 msgstr ""
16107
16108 #. type: verbatim
16109 #: ../fish/guestfish-commands.pod:121
16110 #, no-wrap
16111 msgid ""
16112 " hexedit /dev/sda1 0x400 0x400\n"
16113 "\n"
16114 msgstr ""
16115
16116 #. type: textblock
16117 #: ../fish/guestfish-commands.pod:123
16118 msgid "(assuming the superblock is in the standard location)."
16119 msgstr ""
16120
16121 #. type: textblock
16122 #: ../fish/guestfish-commands.pod:125
16123 msgid ""
16124 "This command requires the external L<hexedit(1)> program.  You can specify "
16125 "another program to use by setting the C<HEXEDITOR> environment variable."
16126 msgstr ""
16127
16128 #. type: textblock
16129 #: ../fish/guestfish-commands.pod:129
16130 msgid "See also L</hexdump>."
16131 msgstr ""
16132
16133 #. type: =head2
16134 #: ../fish/guestfish-commands.pod:131
16135 msgid "lcd"
16136 msgstr ""
16137
16138 #. type: verbatim
16139 #: ../fish/guestfish-commands.pod:133
16140 #, no-wrap
16141 msgid ""
16142 " lcd directory\n"
16143 "\n"
16144 msgstr ""
16145
16146 #. type: textblock
16147 #: ../fish/guestfish-commands.pod:135
16148 msgid ""
16149 "Change the local directory, ie. the current directory of guestfish itself."
16150 msgstr ""
16151
16152 #. type: textblock
16153 #: ../fish/guestfish-commands.pod:138
16154 msgid "Note that C<!cd> won't do what you might expect."
16155 msgstr ""
16156
16157 #. type: =head2
16158 #: ../fish/guestfish-commands.pod:140
16159 msgid "man"
16160 msgstr ""
16161
16162 #. type: =head2
16163 #: ../fish/guestfish-commands.pod:142
16164 msgid "manual"
16165 msgstr ""
16166
16167 #. type: verbatim
16168 #: ../fish/guestfish-commands.pod:144
16169 #, no-wrap
16170 msgid ""
16171 "  man\n"
16172 "\n"
16173 msgstr ""
16174
16175 #. type: textblock
16176 #: ../fish/guestfish-commands.pod:146
16177 msgid "Opens the manual page for guestfish."
16178 msgstr ""
16179
16180 #. type: =head2
16181 #: ../fish/guestfish-commands.pod:148
16182 msgid "more"
16183 msgstr ""
16184
16185 #. type: =head2
16186 #: ../fish/guestfish-commands.pod:150
16187 msgid "less"
16188 msgstr ""
16189
16190 #. type: verbatim
16191 #: ../fish/guestfish-commands.pod:152
16192 #, no-wrap
16193 msgid ""
16194 " more filename\n"
16195 "\n"
16196 msgstr ""
16197
16198 #. type: verbatim
16199 #: ../fish/guestfish-commands.pod:154
16200 #, no-wrap
16201 msgid ""
16202 " less filename\n"
16203 "\n"
16204 msgstr ""
16205
16206 #. type: textblock
16207 #: ../fish/guestfish-commands.pod:156
16208 msgid "This is used to view a file."
16209 msgstr ""
16210
16211 #. type: textblock
16212 #: ../fish/guestfish-commands.pod:158
16213 msgid ""
16214 "The default viewer is C<$PAGER>.  However if you use the alternate command "
16215 "C<less> you will get the C<less> command specifically."
16216 msgstr ""
16217
16218 #. type: =head2
16219 #: ../fish/guestfish-commands.pod:161
16220 msgid "reopen"
16221 msgstr ""
16222
16223 #. type: verbatim
16224 #: ../fish/guestfish-commands.pod:163
16225 #, no-wrap
16226 msgid ""
16227 "  reopen\n"
16228 "\n"
16229 msgstr ""
16230
16231 #. type: textblock
16232 #: ../fish/guestfish-commands.pod:165
16233 msgid ""
16234 "Close and reopen the libguestfs handle.  It is not necessary to use this "
16235 "normally, because the handle is closed properly when guestfish exits.  "
16236 "However this is occasionally useful for testing."
16237 msgstr ""
16238
16239 #. type: =head2
16240 #: ../fish/guestfish-commands.pod:169
16241 msgid "setenv"
16242 msgstr ""
16243
16244 #. type: verbatim
16245 #: ../fish/guestfish-commands.pod:171
16246 #, no-wrap
16247 msgid ""
16248 "  setenv VAR value\n"
16249 "\n"
16250 msgstr ""
16251
16252 #. type: textblock
16253 #: ../fish/guestfish-commands.pod:173
16254 msgid "Set the environment variable C<VAR> to the string C<value>."
16255 msgstr ""
16256
16257 #. type: textblock
16258 #: ../fish/guestfish-commands.pod:175
16259 msgid ""
16260 "To print the value of an environment variable use a shell command such as:"
16261 msgstr ""
16262
16263 #. type: verbatim
16264 #: ../fish/guestfish-commands.pod:178
16265 #, no-wrap
16266 msgid ""
16267 " !echo $VAR\n"
16268 "\n"
16269 msgstr ""
16270
16271 #. type: =head2
16272 #: ../fish/guestfish-commands.pod:180
16273 msgid "sparse"
16274 msgstr ""
16275
16276 #. type: verbatim
16277 #: ../fish/guestfish-commands.pod:182
16278 #, no-wrap
16279 msgid ""
16280 " sparse filename size\n"
16281 "\n"
16282 msgstr ""
16283
16284 #. type: textblock
16285 #: ../fish/guestfish-commands.pod:184
16286 msgid ""
16287 "This creates an empty sparse file of the given size, and then adds so it can "
16288 "be further examined."
16289 msgstr ""
16290
16291 #. type: textblock
16292 #: ../fish/guestfish-commands.pod:187
16293 msgid ""
16294 "In all respects it works the same as the L</alloc> command, except that the "
16295 "image file is allocated sparsely, which means that disk blocks are not "
16296 "assigned to the file until they are needed.  Sparse disk files only use "
16297 "space when written to, but they are slower and there is a danger you could "
16298 "run out of real disk space during a write operation."
16299 msgstr ""
16300
16301 #. type: =head2
16302 #: ../fish/guestfish-commands.pod:197
16303 msgid "supported"
16304 msgstr ""
16305
16306 #. type: verbatim
16307 #: ../fish/guestfish-commands.pod:199
16308 #, no-wrap
16309 msgid ""
16310 " supported\n"
16311 "\n"
16312 msgstr ""
16313
16314 #. type: textblock
16315 #: ../fish/guestfish-commands.pod:201
16316 msgid ""
16317 "This command returns a list of the optional groups known to the daemon, and "
16318 "indicates which ones are supported by this build of the libguestfs appliance."
16319 msgstr ""
16320
16321 #. type: textblock
16322 #: ../fish/guestfish-commands.pod:205
16323 msgid "See also L<guestfs(3)/AVAILABILITY>."
16324 msgstr ""
16325
16326 #. type: =head2
16327 #: ../fish/guestfish-commands.pod:207
16328 msgid "time"
16329 msgstr ""
16330
16331 #. type: verbatim
16332 #: ../fish/guestfish-commands.pod:209
16333 #, no-wrap
16334 msgid ""
16335 " time command args...\n"
16336 "\n"
16337 msgstr ""
16338
16339 #. type: textblock
16340 #: ../fish/guestfish-commands.pod:211
16341 msgid ""
16342 "Run the command as usual, but print the elapsed time afterwards.  This can "
16343 "be useful for benchmarking operations."
16344 msgstr ""
16345
16346 #. type: =head2
16347 #: ../fish/guestfish-commands.pod:214
16348 msgid "unsetenv"
16349 msgstr ""
16350
16351 #. type: verbatim
16352 #: ../fish/guestfish-commands.pod:216
16353 #, no-wrap
16354 msgid ""
16355 "  unsetenv VAR\n"
16356 "\n"
16357 msgstr ""
16358
16359 #. type: textblock
16360 #: ../fish/guestfish-commands.pod:218
16361 msgid "Remove C<VAR> from the environment."
16362 msgstr ""
16363
16364 #. type: textblock
16365 #: ../fish/guestfish.pod:5
16366 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16367 msgstr ""
16368
16369 #. type: verbatim
16370 #: ../fish/guestfish.pod:9
16371 #, no-wrap
16372 msgid ""
16373 " guestfish [--options] [commands]\n"
16374 "\n"
16375 msgstr ""
16376
16377 #. type: verbatim
16378 #: ../fish/guestfish.pod:11
16379 #, no-wrap
16380 msgid ""
16381 " guestfish\n"
16382 "\n"
16383 msgstr ""
16384
16385 #. type: verbatim
16386 #: ../fish/guestfish.pod:13
16387 #, no-wrap
16388 msgid ""
16389 " guestfish [--ro|--rw] -a disk.img\n"
16390 "\n"
16391 msgstr ""
16392
16393 #. type: verbatim
16394 #: ../fish/guestfish.pod:15
16395 #, no-wrap
16396 msgid ""
16397 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16398 "\n"
16399 msgstr ""
16400
16401 #. type: verbatim
16402 #: ../fish/guestfish.pod:17
16403 #, no-wrap
16404 msgid ""
16405 " guestfish -d libvirt-domain\n"
16406 "\n"
16407 msgstr ""
16408
16409 #. type: verbatim
16410 #: ../fish/guestfish.pod:19
16411 #, no-wrap
16412 msgid ""
16413 " guestfish [--ro|--rw] -a disk.img -i\n"
16414 "\n"
16415 msgstr ""
16416
16417 #. type: verbatim
16418 #: ../fish/guestfish.pod:21
16419 #, no-wrap
16420 msgid ""
16421 " guestfish -d libvirt-domain -i\n"
16422 "\n"
16423 msgstr ""
16424
16425 #. type: textblock
16426 #: ../fish/guestfish.pod:25
16427 msgid ""
16428 "Using guestfish in read/write mode on live virtual machines can be "
16429 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16430 "option to use guestfish safely if the disk image or virtual machine might be "
16431 "live."
16432 msgstr ""
16433
16434 #. type: textblock
16435 #: ../fish/guestfish.pod:32
16436 msgid ""
16437 "Guestfish is a shell and command-line tool for examining and modifying "
16438 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16439 "functionality of the guestfs API, see L<guestfs(3)>."
16440 msgstr ""
16441
16442 #. type: textblock
16443 #: ../fish/guestfish.pod:36
16444 msgid ""
16445 "Guestfish gives you structured access to the libguestfs API, from shell "
16446 "scripts or the command line or interactively.  If you want to rescue a "
16447 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16448 "command."
16449 msgstr ""
16450
16451 #. type: =head2
16452 #: ../fish/guestfish.pod:43
16453 msgid "As an interactive shell"
16454 msgstr ""
16455
16456 #. type: verbatim
16457 #: ../fish/guestfish.pod:45
16458 #, no-wrap
16459 msgid ""
16460 " $ guestfish\n"
16461 " \n"
16462 msgstr ""
16463
16464 #. type: verbatim
16465 #: ../fish/guestfish.pod:47
16466 #, no-wrap
16467 msgid ""
16468 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16469 " editing virtual machine filesystems.\n"
16470 " \n"
16471 msgstr ""
16472
16473 #. type: verbatim
16474 #: ../fish/guestfish.pod:50
16475 #, no-wrap
16476 msgid ""
16477 " Type: 'help' for a list of commands\n"
16478 "       'man' to read the manual\n"
16479 "       'quit' to quit the shell\n"
16480 " \n"
16481 msgstr ""
16482
16483 #. type: verbatim
16484 #: ../fish/guestfish.pod:54
16485 #, no-wrap
16486 msgid ""
16487 " ><fs> add-ro disk.img\n"
16488 " ><fs> run\n"
16489 " ><fs> list-filesystems\n"
16490 " /dev/sda1: ext4\n"
16491 " /dev/vg_guest/lv_root: ext4\n"
16492 " /dev/vg_guest/lv_swap: swap\n"
16493 " ><fs> mount /dev/vg_guest/lv_root /\n"
16494 " ><fs> cat /etc/fstab\n"
16495 " # /etc/fstab\n"
16496 " # Created by anaconda\n"
16497 " [...]\n"
16498 " ><fs> exit\n"
16499 "\n"
16500 msgstr ""
16501
16502 #. type: =head2
16503 #: ../fish/guestfish.pod:67
16504 msgid "From shell scripts"
16505 msgstr ""
16506
16507 #. type: textblock
16508 #: ../fish/guestfish.pod:69
16509 msgid "Create a new C</etc/motd> file in a guest or disk image:"
16510 msgstr ""
16511
16512 #. type: verbatim
16513 #: ../fish/guestfish.pod:71
16514 #, no-wrap
16515 msgid ""
16516 " guestfish <<_EOF_\n"
16517 " add disk.img\n"
16518 " run\n"
16519 " mount /dev/vg_guest/lv_root /\n"
16520 " write /etc/motd \"Welcome, new users\"\n"
16521 " _EOF_\n"
16522 "\n"
16523 msgstr ""
16524
16525 #. type: textblock
16526 #: ../fish/guestfish.pod:78
16527 msgid "List the LVM logical volumes in a disk image:"
16528 msgstr ""
16529
16530 #. type: verbatim
16531 #: ../fish/guestfish.pod:80
16532 #, no-wrap
16533 msgid ""
16534 " guestfish -a disk.img --ro <<_EOF_\n"
16535 " run\n"
16536 " lvs\n"
16537 " _EOF_\n"
16538 "\n"
16539 msgstr ""
16540
16541 #. type: textblock
16542 #: ../fish/guestfish.pod:85
16543 msgid "List all the filesystems in a disk image:"
16544 msgstr ""
16545
16546 #. type: verbatim
16547 #: ../fish/guestfish.pod:87
16548 #, no-wrap
16549 msgid ""
16550 " guestfish -a disk.img --ro <<_EOF_\n"
16551 " run\n"
16552 " list-filesystems\n"
16553 " _EOF_\n"
16554 "\n"
16555 msgstr ""
16556
16557 #. type: =head2
16558 #: ../fish/guestfish.pod:92
16559 msgid "On one command line"
16560 msgstr ""
16561
16562 #. type: textblock
16563 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
16564 msgid "Update C</etc/resolv.conf> in a guest:"
16565 msgstr ""
16566
16567 #. type: verbatim
16568 #: ../fish/guestfish.pod:96
16569 #, no-wrap
16570 msgid ""
16571 " guestfish \\\n"
16572 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
16573 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
16574 "\n"
16575 msgstr ""
16576
16577 #. type: textblock
16578 #: ../fish/guestfish.pod:100
16579 msgid "Edit C</boot/grub/grub.conf> interactively:"
16580 msgstr ""
16581
16582 #. type: verbatim
16583 #: ../fish/guestfish.pod:102
16584 #, no-wrap
16585 msgid ""
16586 " guestfish --rw --add disk.img \\\n"
16587 "   --mount /dev/vg_guest/lv_root \\\n"
16588 "   --mount /dev/sda1:/boot \\\n"
16589 "   edit /boot/grub/grub.conf\n"
16590 "\n"
16591 msgstr ""
16592
16593 #. type: =head2
16594 #: ../fish/guestfish.pod:107
16595 msgid "Mount disks automatically"
16596 msgstr ""
16597
16598 #. type: textblock
16599 #: ../fish/guestfish.pod:109
16600 msgid ""
16601 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
16602 msgstr ""
16603
16604 #. type: verbatim
16605 #: ../fish/guestfish.pod:112
16606 #, no-wrap
16607 msgid ""
16608 " guestfish --ro -a disk.img -i cat /etc/group\n"
16609 "\n"
16610 msgstr ""
16611
16612 #. type: verbatim
16613 #: ../fish/guestfish.pod:114
16614 #, no-wrap
16615 msgid ""
16616 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
16617 "\n"
16618 msgstr ""
16619
16620 #. type: textblock
16621 #: ../fish/guestfish.pod:116
16622 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
16623 msgstr ""
16624
16625 #. type: verbatim
16626 #: ../fish/guestfish.pod:118
16627 #, no-wrap
16628 msgid ""
16629 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
16630 "\n"
16631 msgstr ""
16632
16633 #. type: =head2
16634 #: ../fish/guestfish.pod:120
16635 msgid "As a script interpreter"
16636 msgstr ""
16637
16638 #. type: textblock
16639 #: ../fish/guestfish.pod:122
16640 msgid "Create a 100MB disk containing an ext2-formatted partition:"
16641 msgstr ""
16642
16643 #. type: verbatim
16644 #: ../fish/guestfish.pod:124
16645 #, no-wrap
16646 msgid ""
16647 " #!/usr/bin/guestfish -f\n"
16648 " sparse test1.img 100M\n"
16649 " run\n"
16650 " part-disk /dev/sda mbr\n"
16651 " mkfs ext2 /dev/sda1\n"
16652 "\n"
16653 msgstr ""
16654
16655 #. type: =head2
16656 #: ../fish/guestfish.pod:130
16657 msgid "Start with a prepared disk"
16658 msgstr ""
16659
16660 #. type: textblock
16661 #: ../fish/guestfish.pod:132
16662 msgid ""
16663 "An alternate way to create a 100MB disk called C<test1.img> containing a "
16664 "single ext2-formatted partition:"
16665 msgstr ""
16666
16667 #. type: verbatim
16668 #: ../fish/guestfish.pod:135
16669 #, no-wrap
16670 msgid ""
16671 " guestfish -N fs\n"
16672 "\n"
16673 msgstr ""
16674
16675 #. type: textblock
16676 #: ../fish/guestfish.pod:137
16677 msgid "To list what is available do:"
16678 msgstr ""
16679
16680 #. type: verbatim
16681 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1009
16682 #, no-wrap
16683 msgid ""
16684 " guestfish -N help | less\n"
16685 "\n"
16686 msgstr ""
16687
16688 #. type: =head2
16689 #: ../fish/guestfish.pod:141
16690 msgid "Remote control"
16691 msgstr ""
16692
16693 #. type: verbatim
16694 #: ../fish/guestfish.pod:143
16695 #, no-wrap
16696 msgid ""
16697 " eval \"`guestfish --listen`\"\n"
16698 " guestfish --remote add-ro disk.img\n"
16699 " guestfish --remote run\n"
16700 " guestfish --remote lvs\n"
16701 "\n"
16702 msgstr ""
16703
16704 #. type: textblock
16705 #: ../fish/guestfish.pod:154
16706 msgid "Displays general help on options."
16707 msgstr ""
16708
16709 #. type: =item
16710 #: ../fish/guestfish.pod:158
16711 msgid "B<--cmd-help>"
16712 msgstr ""
16713
16714 #. type: textblock
16715 #: ../fish/guestfish.pod:160
16716 msgid "Lists all available guestfish commands."
16717 msgstr ""
16718
16719 #. type: =item
16720 #: ../fish/guestfish.pod:162
16721 msgid "B<-h cmd>"
16722 msgstr ""
16723
16724 #. type: =item
16725 #: ../fish/guestfish.pod:164
16726 msgid "B<--cmd-help cmd>"
16727 msgstr ""
16728
16729 #. type: textblock
16730 #: ../fish/guestfish.pod:166
16731 msgid "Displays detailed help on a single command C<cmd>."
16732 msgstr ""
16733
16734 #. type: =item
16735 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
16736 msgid "B<-a image>"
16737 msgstr ""
16738
16739 #. type: =item
16740 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
16741 msgid "B<--add image>"
16742 msgstr ""
16743
16744 #. type: textblock
16745 #: ../fish/guestfish.pod:172
16746 msgid "Add a block device or virtual machine image to the shell."
16747 msgstr ""
16748
16749 #. type: textblock
16750 #: ../fish/guestfish.pod:177
16751 msgid ""
16752 "Using this flag is mostly equivalent to using the C<add> command, with "
16753 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
16754 "the I<--format=...> flag was given."
16755 msgstr ""
16756
16757 #. type: textblock
16758 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
16759 msgid ""
16760 "When used in conjunction with the I<-d> option, this specifies the libvirt "
16761 "URI to use.  The default is to use the default libvirt connection."
16762 msgstr ""
16763
16764 #. type: =item
16765 #: ../fish/guestfish.pod:189
16766 msgid "B<--csh>"
16767 msgstr ""
16768
16769 #. type: textblock
16770 #: ../fish/guestfish.pod:191
16771 msgid ""
16772 "If using the I<--listen> option and a csh-like shell, use this option.  See "
16773 "section L</REMOTE CONTROL AND CSH> below."
16774 msgstr ""
16775
16776 #. type: =item
16777 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
16778 msgid "B<-d libvirt-domain>"
16779 msgstr ""
16780
16781 #. type: =item
16782 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
16783 msgid "B<--domain libvirt-domain>"
16784 msgstr ""
16785
16786 #. type: textblock
16787 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
16788 msgid ""
16789 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
16790 "used, then any libvirt domain can be used.  However in write mode, only "
16791 "libvirt domains which are shut down can be named here."
16792 msgstr ""
16793
16794 #. type: textblock
16795 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
16796 msgid "Domain UUIDs can be used instead of names."
16797 msgstr ""
16798
16799 #. type: textblock
16800 #: ../fish/guestfish.pod:204
16801 msgid ""
16802 "Using this flag is mostly equivalent to using the C<add-domain> command, "
16803 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
16804 "if the I<--format:...> flag was given."
16805 msgstr ""
16806
16807 #. type: =item
16808 #: ../fish/guestfish.pod:208
16809 msgid "B<-D>"
16810 msgstr ""
16811
16812 #. type: =item
16813 #: ../fish/guestfish.pod:210
16814 msgid "B<--no-dest-paths>"
16815 msgstr ""
16816
16817 #. type: textblock
16818 #: ../fish/guestfish.pod:212
16819 msgid ""
16820 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
16821 "to hit the tab key to complete paths on the guest filesystem, but this "
16822 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
16823 "allow this feature to be disabled."
16824 msgstr ""
16825
16826 #. type: textblock
16827 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
16828 msgid ""
16829 "When prompting for keys and passphrases, guestfish normally turns echoing "
16830 "off so you cannot see what you are typing.  If you are not worried about "
16831 "Tempest attacks and there is no one else in the room you can specify this "
16832 "flag to see what you are typing."
16833 msgstr ""
16834
16835 #. type: =item
16836 #: ../fish/guestfish.pod:224
16837 msgid "B<-f file>"
16838 msgstr ""
16839
16840 #. type: =item
16841 #: ../fish/guestfish.pod:226
16842 msgid "B<--file file>"
16843 msgstr ""
16844
16845 #. type: textblock
16846 #: ../fish/guestfish.pod:228
16847 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
16848 msgstr ""
16849
16850 #. type: verbatim
16851 #: ../fish/guestfish.pod:231
16852 #, no-wrap
16853 msgid ""
16854 " #!/usr/bin/guestfish -f\n"
16855 "\n"
16856 msgstr ""
16857
16858 #. type: verbatim
16859 #: ../fish/guestfish.pod:244
16860 #, no-wrap
16861 msgid ""
16862 " guestfish --format=raw -a disk.img\n"
16863 "\n"
16864 msgstr ""
16865
16866 #. type: verbatim
16867 #: ../fish/guestfish.pod:248
16868 #, no-wrap
16869 msgid ""
16870 " guestfish --format=raw -a disk.img --format -a another.img\n"
16871 "\n"
16872 msgstr ""
16873
16874 #. type: textblock
16875 #: ../fish/guestfish.pod:253
16876 msgid ""
16877 "If you have untrusted raw-format guest disk images, you should use this "
16878 "option to specify the disk format.  This avoids a possible security problem "
16879 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
16880 msgstr ""
16881
16882 #. type: =item
16883 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
16884 msgid "B<--inspector>"
16885 msgstr ""
16886
16887 #. type: textblock
16888 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
16889 msgid ""
16890 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
16891 "system and mount filesystems as they would be mounted on the real virtual "
16892 "machine."
16893 msgstr ""
16894
16895 #. type: textblock
16896 #: ../fish/guestfish.pod:266
16897 msgid "Typical usage is either:"
16898 msgstr ""
16899
16900 #. type: verbatim
16901 #: ../fish/guestfish.pod:268
16902 #, no-wrap
16903 msgid ""
16904 " guestfish -d myguest -i\n"
16905 "\n"
16906 msgstr ""
16907
16908 #. type: textblock
16909 #: ../fish/guestfish.pod:270
16910 msgid "(for an inactive libvirt domain called I<myguest>), or:"
16911 msgstr ""
16912
16913 #. type: verbatim
16914 #: ../fish/guestfish.pod:272
16915 #, no-wrap
16916 msgid ""
16917 " guestfish --ro -d myguest -i\n"
16918 "\n"
16919 msgstr ""
16920
16921 #. type: textblock
16922 #: ../fish/guestfish.pod:274
16923 msgid "(for active domains, readonly), or specify the block device directly:"
16924 msgstr ""
16925
16926 #. type: verbatim
16927 #: ../fish/guestfish.pod:276
16928 #, no-wrap
16929 msgid ""
16930 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
16931 "\n"
16932 msgstr ""
16933
16934 #. type: textblock
16935 #: ../fish/guestfish.pod:278
16936 msgid ""
16937 "Note that the command line syntax changed slightly over older versions of "
16938 "guestfish.  You can still use the old syntax:"
16939 msgstr ""
16940
16941 #. type: verbatim
16942 #: ../fish/guestfish.pod:281
16943 #, no-wrap
16944 msgid ""
16945 " guestfish [--ro] -i disk.img\n"
16946 "\n"
16947 msgstr ""
16948
16949 #. type: verbatim
16950 #: ../fish/guestfish.pod:283
16951 #, no-wrap
16952 msgid ""
16953 " guestfish [--ro] -i libvirt-domain\n"
16954 "\n"
16955 msgstr ""
16956
16957 #. type: textblock
16958 #: ../fish/guestfish.pod:285
16959 msgid ""
16960 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
16961 "then using other commands to mount the filesystems that were found."
16962 msgstr ""
16963
16964 #. type: =item
16965 #: ../fish/guestfish.pod:294
16966 msgid "B<--listen>"
16967 msgstr ""
16968
16969 #. type: textblock
16970 #: ../fish/guestfish.pod:296
16971 msgid ""
16972 "Fork into the background and listen for remote commands.  See section L</"
16973 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
16974 msgstr ""
16975
16976 #. type: =item
16977 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
16978 msgid "B<--live>"
16979 msgstr ""
16980
16981 #. type: textblock
16982 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
16983 msgid ""
16984 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
16985 "ATTACHING TO RUNNING DAEMONS>)."
16986 msgstr ""
16987
16988 #. type: =item
16989 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
16990 msgid "B<-m dev[:mountpoint[:options]]>"
16991 msgstr ""
16992
16993 #. type: =item
16994 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
16995 msgid "B<--mount dev[:mountpoint[:options]]>"
16996 msgstr ""
16997
16998 #. type: textblock
16999 #: ../fish/guestfish.pod:308
17000 msgid "Mount the named partition or logical volume on the given mountpoint."
17001 msgstr ""
17002
17003 #. type: textblock
17004 #: ../fish/guestfish.pod:310
17005 msgid "If the mountpoint is omitted, it defaults to C</>."
17006 msgstr ""
17007
17008 #. type: textblock
17009 #: ../fish/guestfish.pod:312
17010 msgid "You have to mount something on C</> before most commands will work."
17011 msgstr ""
17012
17013 #. type: textblock
17014 #: ../fish/guestfish.pod:314
17015 msgid ""
17016 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17017 "launched."
17018 msgstr ""
17019
17020 #. type: textblock
17021 #: ../fish/guestfish.pod:317
17022 msgid ""
17023 "If you don't know what filesystems a disk image contains, you can either run "
17024 "guestfish without this option, then list the partitions, filesystems and LVs "
17025 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17026 "commands), or you can use the L<virt-filesystems(1)> program."
17027 msgstr ""
17028
17029 #. type: textblock
17030 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
17031 msgid ""
17032 "The third (and rarely used) part of the mount parameter is the list of mount "
17033 "options used to mount the underlying filesystem.  If this is not given, then "
17034 "the mount options are either the empty string or C<ro> (the latter if the "
17035 "I<--ro> flag is used).  By specifying the mount options, you override this "
17036 "default choice.  Probably the only time you would use this is to enable ACLs "
17037 "and/or extended attributes if the filesystem can support them:"
17038 msgstr ""
17039
17040 #. type: verbatim
17041 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
17042 #, no-wrap
17043 msgid ""
17044 " -m /dev/sda1:/:acl,user_xattr\n"
17045 "\n"
17046 msgstr ""
17047
17048 #. type: textblock
17049 #: ../fish/guestfish.pod:333
17050 msgid "Using this flag is equivalent to using the C<mount-options> command."
17051 msgstr ""
17052
17053 #. type: =item
17054 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193
17055 #: ../resize/virt-resize.pod:358
17056 msgid "B<-n>"
17057 msgstr ""
17058
17059 #. type: =item
17060 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
17061 msgid "B<--no-sync>"
17062 msgstr ""
17063
17064 #. type: textblock
17065 #: ../fish/guestfish.pod:339
17066 msgid ""
17067 "Disable autosync.  This is enabled by default.  See the discussion of "
17068 "autosync in the L<guestfs(3)> manpage."
17069 msgstr ""
17070
17071 #. type: =item
17072 #: ../fish/guestfish.pod:342
17073 msgid "B<-N type>"
17074 msgstr ""
17075
17076 #. type: =item
17077 #: ../fish/guestfish.pod:344
17078 msgid "B<--new type>"
17079 msgstr ""
17080
17081 #. type: =item
17082 #: ../fish/guestfish.pod:346
17083 msgid "B<-N help>"
17084 msgstr ""
17085
17086 #. type: textblock
17087 #: ../fish/guestfish.pod:348
17088 msgid ""
17089 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17090 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17091 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17092 "IMAGES> below."
17093 msgstr ""
17094
17095 #. type: =item
17096 #: ../fish/guestfish.pod:353
17097 msgid "B<--progress-bars>"
17098 msgstr ""
17099
17100 #. type: textblock
17101 #: ../fish/guestfish.pod:355
17102 msgid "Enable progress bars, even when guestfish is used non-interactively."
17103 msgstr ""
17104
17105 #. type: textblock
17106 #: ../fish/guestfish.pod:357
17107 msgid ""
17108 "Progress bars are enabled by default when guestfish is used as an "
17109 "interactive shell."
17110 msgstr ""
17111
17112 #. type: =item
17113 #: ../fish/guestfish.pod:360
17114 msgid "B<--no-progress-bars>"
17115 msgstr ""
17116
17117 #. type: textblock
17118 #: ../fish/guestfish.pod:362
17119 msgid "Disable progress bars."
17120 msgstr ""
17121
17122 #. type: =item
17123 #: ../fish/guestfish.pod:364
17124 msgid "B<--remote[=pid]>"
17125 msgstr ""
17126
17127 #. type: textblock
17128 #: ../fish/guestfish.pod:366
17129 msgid ""
17130 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17131 "CONTROL GUESTFISH OVER A SOCKET> below."
17132 msgstr ""
17133
17134 #. type: =item
17135 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239
17136 #: ../rescue/virt-rescue.pod:161
17137 msgid "B<-r>"
17138 msgstr ""
17139
17140 #. type: =item
17141 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241
17142 #: ../rescue/virt-rescue.pod:163
17143 msgid "B<--ro>"
17144 msgstr ""
17145
17146 #. type: textblock
17147 #: ../fish/guestfish.pod:373
17148 msgid ""
17149 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17150 "mounts are done read-only."
17151 msgstr ""
17152
17153 #. type: textblock
17154 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
17155 msgid ""
17156 "The option must always be used if the disk image or virtual machine might be "
17157 "running, and is generally recommended in cases where you don't need write "
17158 "access to the disk."
17159 msgstr ""
17160
17161 #. type: textblock
17162 #: ../fish/guestfish.pod:380
17163 msgid ""
17164 "Note that prepared disk images created with I<-N> are not affected by this "
17165 "option.  Also commands like C<add> are not affected - you have to specify "
17166 "the C<readonly:true> option explicitly if you need it."
17167 msgstr ""
17168
17169 #. type: textblock
17170 #: ../fish/guestfish.pod:384
17171 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17172 msgstr ""
17173
17174 #. type: =item
17175 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253
17176 #: ../rescue/virt-rescue.pod:173
17177 msgid "B<--selinux>"
17178 msgstr ""
17179
17180 #. type: textblock
17181 #: ../fish/guestfish.pod:388
17182 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
17183 msgstr ""
17184
17185 #. type: textblock
17186 #: ../fish/guestfish.pod:394
17187 msgid ""
17188 "Enable very verbose messages.  This is particularly useful if you find a bug."
17189 msgstr ""
17190
17191 #. type: textblock
17192 #: ../fish/guestfish.pod:401
17193 msgid "Display the guestfish / libguestfs version number and exit."
17194 msgstr ""
17195
17196 #. type: =item
17197 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269
17198 #: ../rescue/virt-rescue.pod:194
17199 msgid "B<-w>"
17200 msgstr ""
17201
17202 #. type: =item
17203 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271
17204 #: ../rescue/virt-rescue.pod:196
17205 msgid "B<--rw>"
17206 msgstr ""
17207
17208 #. type: textblock
17209 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
17210 msgid ""
17211 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17212 "mounts are done read-write."
17213 msgstr ""
17214
17215 #. type: textblock
17216 #: ../fish/guestfish.pod:410
17217 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
17218 msgstr ""
17219
17220 #. type: textblock
17221 #: ../fish/guestfish.pod:414
17222 msgid "Echo each command before executing it."
17223 msgstr ""
17224
17225 #. type: =head1
17226 #: ../fish/guestfish.pod:418
17227 msgid "COMMANDS ON COMMAND LINE"
17228 msgstr ""
17229
17230 #. type: textblock
17231 #: ../fish/guestfish.pod:420
17232 msgid ""
17233 "Any additional (non-option) arguments are treated as commands to execute."
17234 msgstr ""
17235
17236 #. type: textblock
17237 #: ../fish/guestfish.pod:423
17238 msgid ""
17239 "Commands to execute should be separated by a colon (C<:>), where the colon "
17240 "is a separate parameter.  Thus:"
17241 msgstr ""
17242
17243 #. type: verbatim
17244 #: ../fish/guestfish.pod:426
17245 #, no-wrap
17246 msgid ""
17247 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17248 "\n"
17249 msgstr ""
17250
17251 #. type: textblock
17252 #: ../fish/guestfish.pod:428
17253 msgid ""
17254 "If there are no additional arguments, then we enter a shell, either an "
17255 "interactive shell with a prompt (if the input is a terminal) or a non-"
17256 "interactive shell."
17257 msgstr ""
17258
17259 #. type: textblock
17260 #: ../fish/guestfish.pod:432
17261 msgid ""
17262 "In either command line mode or non-interactive shell, the first command that "
17263 "gives an error causes the whole shell to exit.  In interactive mode (with a "
17264 "prompt) if a command fails, you can continue to enter commands."
17265 msgstr ""
17266
17267 #. type: =head1
17268 #: ../fish/guestfish.pod:437
17269 msgid "USING launch (OR run)"
17270 msgstr ""
17271
17272 #. type: textblock
17273 #: ../fish/guestfish.pod:439
17274 msgid ""
17275 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17276 "then launch it, then mount any disks you need, and finally issue actions/"
17277 "commands.  So the general order of the day is:"
17278 msgstr ""
17279
17280 #. type: textblock
17281 #: ../fish/guestfish.pod:447
17282 msgid "add or -a/--add"
17283 msgstr ""
17284
17285 #. type: textblock
17286 #: ../fish/guestfish.pod:451
17287 msgid "launch (aka run)"
17288 msgstr ""
17289
17290 #. type: textblock
17291 #: ../fish/guestfish.pod:455
17292 msgid "mount or -m/--mount"
17293 msgstr ""
17294
17295 #. type: textblock
17296 #: ../fish/guestfish.pod:459
17297 msgid "any other commands"
17298 msgstr ""
17299
17300 #. type: textblock
17301 #: ../fish/guestfish.pod:463
17302 msgid ""
17303 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
17304 "guest before mounting or performing any other commands."
17305 msgstr ""
17306
17307 #. type: textblock
17308 #: ../fish/guestfish.pod:466
17309 msgid ""
17310 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17311 "I<--new> options were given then C<run> is done automatically, simply "
17312 "because guestfish can't perform the action you asked for without doing this."
17313 msgstr ""
17314
17315 #. type: =head1
17316 #: ../fish/guestfish.pod:471
17317 msgid "OPENING DISKS FOR READ AND WRITE"
17318 msgstr ""
17319
17320 #. type: textblock
17321 #: ../fish/guestfish.pod:473
17322 msgid ""
17323 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
17324 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
17325 "I<-i> and I<-m> open disk images read-only or for writing."
17326 msgstr ""
17327
17328 #. type: textblock
17329 #: ../fish/guestfish.pod:478
17330 msgid ""
17331 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
17332 "opening disk images supplied on the command line for write.  To open a disk "
17333 "image read-only you have to do I<-a image --ro>."
17334 msgstr ""
17335
17336 #. type: textblock
17337 #: ../fish/guestfish.pod:482
17338 msgid ""
17339 "This matters: If you accidentally open a live VM disk image writable then "
17340 "you will cause irreversible disk corruption."
17341 msgstr ""
17342
17343 #. type: textblock
17344 #: ../fish/guestfish.pod:485
17345 msgid ""
17346 "In a future libguestfs we intend to change the default the other way.  Disk "
17347 "images will be opened read-only.  You will have to either specify "
17348 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
17349 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
17350 "access for disk images specified by those other command line options."
17351 msgstr ""
17352
17353 #. type: textblock
17354 #: ../fish/guestfish.pod:492
17355 msgid ""
17356 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
17357 "which does nothing (it is already the default).  However it is highly "
17358 "recommended that you use this option to indicate that you need write access, "
17359 "and prepare your scripts for the day when this option will be required for "
17360 "write access."
17361 msgstr ""
17362
17363 #. type: textblock
17364 #: ../fish/guestfish.pod:498
17365 msgid ""
17366 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17367 "other libguestfs program apart from guestfish and guestmount."
17368 msgstr ""
17369
17370 #. type: =head1
17371 #: ../fish/guestfish.pod:501
17372 msgid "QUOTING"
17373 msgstr ""
17374
17375 #. type: textblock
17376 #: ../fish/guestfish.pod:503
17377 msgid ""
17378 "You can quote ordinary parameters using either single or double quotes.  For "
17379 "example:"
17380 msgstr ""
17381
17382 #. type: verbatim
17383 #: ../fish/guestfish.pod:506
17384 #, no-wrap
17385 msgid ""
17386 " add \"file with a space.img\"\n"
17387 "\n"
17388 msgstr ""
17389
17390 #. type: verbatim
17391 #: ../fish/guestfish.pod:508
17392 #, no-wrap
17393 msgid ""
17394 " rm '/file name'\n"
17395 "\n"
17396 msgstr ""
17397
17398 #. type: verbatim
17399 #: ../fish/guestfish.pod:510
17400 #, no-wrap
17401 msgid ""
17402 " rm '/\"'\n"
17403 "\n"
17404 msgstr ""
17405
17406 #. type: textblock
17407 #: ../fish/guestfish.pod:512
17408 msgid ""
17409 "A few commands require a list of strings to be passed.  For these, use a "
17410 "whitespace-separated list, enclosed in quotes.  Strings containing "
17411 "whitespace to be passed through must be enclosed in single quotes.  A "
17412 "literal single quote must be escaped with a backslash."
17413 msgstr ""
17414
17415 #. type: verbatim
17416 #: ../fish/guestfish.pod:517
17417 #, no-wrap
17418 msgid ""
17419 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17420 " command \"/bin/echo 'foo      bar'\"\n"
17421 " command \"/bin/echo \\'foo\\'\"\n"
17422 "\n"
17423 msgstr ""
17424
17425 #. type: =head2
17426 #: ../fish/guestfish.pod:521
17427 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
17428 msgstr ""
17429
17430 #. type: textblock
17431 #: ../fish/guestfish.pod:523
17432 msgid ""
17433 "In double-quoted arguments (only) use backslash to insert special characters:"
17434 msgstr ""
17435
17436 #. type: =item
17437 #: ../fish/guestfish.pod:528
17438 msgid "C<\\a>"
17439 msgstr ""
17440
17441 #. type: textblock
17442 #: ../fish/guestfish.pod:530
17443 msgid "Alert (bell) character."
17444 msgstr ""
17445
17446 #. type: =item
17447 #: ../fish/guestfish.pod:532
17448 msgid "C<\\b>"
17449 msgstr ""
17450
17451 #. type: textblock
17452 #: ../fish/guestfish.pod:534
17453 msgid "Backspace character."
17454 msgstr ""
17455
17456 #. type: =item
17457 #: ../fish/guestfish.pod:536
17458 msgid "C<\\f>"
17459 msgstr ""
17460
17461 #. type: textblock
17462 #: ../fish/guestfish.pod:538
17463 msgid "Form feed character."
17464 msgstr ""
17465
17466 #. type: =item
17467 #: ../fish/guestfish.pod:540
17468 msgid "C<\\n>"
17469 msgstr ""
17470
17471 #. type: textblock
17472 #: ../fish/guestfish.pod:542
17473 msgid "Newline character."
17474 msgstr ""
17475
17476 #. type: =item
17477 #: ../fish/guestfish.pod:544
17478 msgid "C<\\r>"
17479 msgstr ""
17480
17481 #. type: textblock
17482 #: ../fish/guestfish.pod:546
17483 msgid "Carriage return character."
17484 msgstr ""
17485
17486 #. type: =item
17487 #: ../fish/guestfish.pod:548
17488 msgid "C<\\t>"
17489 msgstr ""
17490
17491 #. type: textblock
17492 #: ../fish/guestfish.pod:550
17493 msgid "Horizontal tab character."
17494 msgstr ""
17495
17496 #. type: =item
17497 #: ../fish/guestfish.pod:552
17498 msgid "C<\\v>"
17499 msgstr ""
17500
17501 #. type: textblock
17502 #: ../fish/guestfish.pod:554
17503 msgid "Vertical tab character."
17504 msgstr ""
17505
17506 #. type: =item
17507 #: ../fish/guestfish.pod:556
17508 msgid "C<\\\">"
17509 msgstr ""
17510
17511 #. type: textblock
17512 #: ../fish/guestfish.pod:558
17513 msgid "A literal double quote character."
17514 msgstr ""
17515
17516 #. type: =item
17517 #: ../fish/guestfish.pod:560
17518 msgid "C<\\ooo>"
17519 msgstr ""
17520
17521 #. type: textblock
17522 #: ../fish/guestfish.pod:562
17523 msgid ""
17524 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
17525 "(unlike C)."
17526 msgstr ""
17527
17528 #. type: =item
17529 #: ../fish/guestfish.pod:565
17530 msgid "C<\\xhh>"
17531 msgstr ""
17532
17533 #. type: textblock
17534 #: ../fish/guestfish.pod:567
17535 msgid ""
17536 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
17537 msgstr ""
17538
17539 #. type: textblock
17540 #: ../fish/guestfish.pod:570
17541 msgid ""
17542 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
17543 "strings."
17544 msgstr ""
17545
17546 #. type: =item
17547 #: ../fish/guestfish.pod:573
17548 msgid "C<\\\\>"
17549 msgstr ""
17550
17551 #. type: textblock
17552 #: ../fish/guestfish.pod:575
17553 msgid "A literal backslash character."
17554 msgstr ""
17555
17556 #. type: =head1
17557 #: ../fish/guestfish.pod:579
17558 msgid "OPTIONAL ARGUMENTS"
17559 msgstr ""
17560
17561 #. type: textblock
17562 #: ../fish/guestfish.pod:581
17563 msgid ""
17564 "Some commands take optional arguments.  These arguments appear in this "
17565 "documentation as C<[argname:..]>.  You can use them as in these examples:"
17566 msgstr ""
17567
17568 #. type: verbatim
17569 #: ../fish/guestfish.pod:585
17570 #, no-wrap
17571 msgid ""
17572 " add-drive-opts filename\n"
17573 "\n"
17574 msgstr ""
17575
17576 #. type: verbatim
17577 #: ../fish/guestfish.pod:587
17578 #, no-wrap
17579 msgid ""
17580 " add-drive-opts filename readonly:true\n"
17581 "\n"
17582 msgstr ""
17583
17584 #. type: verbatim
17585 #: ../fish/guestfish.pod:589
17586 #, no-wrap
17587 msgid ""
17588 " add-drive-opts filename format:qcow2 readonly:false\n"
17589 "\n"
17590 msgstr ""
17591
17592 #. type: textblock
17593 #: ../fish/guestfish.pod:591
17594 msgid ""
17595 "Each optional argument can appear at most once.  All optional arguments must "
17596 "appear after the required ones."
17597 msgstr ""
17598
17599 #. type: =head1
17600 #: ../fish/guestfish.pod:594
17601 msgid "NUMBERS"
17602 msgstr ""
17603
17604 #. type: textblock
17605 #: ../fish/guestfish.pod:596
17606 msgid ""
17607 "This section applies to all commands which can take integers as parameters."
17608 msgstr ""
17609
17610 #. type: =head2
17611 #: ../fish/guestfish.pod:599
17612 msgid "SIZE SUFFIX"
17613 msgstr ""
17614
17615 #. type: textblock
17616 #: ../fish/guestfish.pod:601
17617 msgid ""
17618 "When the command takes a parameter measured in bytes, you can use one of the "
17619 "following suffixes to specify kilobytes, megabytes and larger sizes:"
17620 msgstr ""
17621
17622 #. type: =item
17623 #: ../fish/guestfish.pod:607
17624 msgid "B<k> or B<K> or B<KiB>"
17625 msgstr ""
17626
17627 #. type: textblock
17628 #: ../fish/guestfish.pod:609
17629 msgid "The size in kilobytes (multiplied by 1024)."
17630 msgstr ""
17631
17632 #. type: =item
17633 #: ../fish/guestfish.pod:611
17634 msgid "B<KB>"
17635 msgstr ""
17636
17637 #. type: textblock
17638 #: ../fish/guestfish.pod:613
17639 msgid "The size in SI 1000 byte units."
17640 msgstr ""
17641
17642 #. type: =item
17643 #: ../fish/guestfish.pod:615
17644 msgid "B<M> or B<MiB>"
17645 msgstr ""
17646
17647 #. type: textblock
17648 #: ../fish/guestfish.pod:617
17649 msgid "The size in megabytes (multiplied by 1048576)."
17650 msgstr ""
17651
17652 #. type: =item
17653 #: ../fish/guestfish.pod:619
17654 msgid "B<MB>"
17655 msgstr ""
17656
17657 #. type: textblock
17658 #: ../fish/guestfish.pod:621
17659 msgid "The size in SI 1000000 byte units."
17660 msgstr ""
17661
17662 #. type: =item
17663 #: ../fish/guestfish.pod:623
17664 msgid "B<G> or B<GiB>"
17665 msgstr ""
17666
17667 #. type: textblock
17668 #: ../fish/guestfish.pod:625
17669 msgid "The size in gigabytes (multiplied by 2**30)."
17670 msgstr ""
17671
17672 #. type: =item
17673 #: ../fish/guestfish.pod:627
17674 msgid "B<GB>"
17675 msgstr ""
17676
17677 #. type: textblock
17678 #: ../fish/guestfish.pod:629
17679 msgid "The size in SI 10**9 byte units."
17680 msgstr ""
17681
17682 #. type: =item
17683 #: ../fish/guestfish.pod:631
17684 msgid "B<T> or B<TiB>"
17685 msgstr ""
17686
17687 #. type: textblock
17688 #: ../fish/guestfish.pod:633
17689 msgid "The size in terabytes (multiplied by 2**40)."
17690 msgstr ""
17691
17692 #. type: =item
17693 #: ../fish/guestfish.pod:635
17694 msgid "B<TB>"
17695 msgstr ""
17696
17697 #. type: textblock
17698 #: ../fish/guestfish.pod:637
17699 msgid "The size in SI 10**12 byte units."
17700 msgstr ""
17701
17702 #. type: =item
17703 #: ../fish/guestfish.pod:639
17704 msgid "B<P> or B<PiB>"
17705 msgstr ""
17706
17707 #. type: textblock
17708 #: ../fish/guestfish.pod:641
17709 msgid "The size in petabytes (multiplied by 2**50)."
17710 msgstr ""
17711
17712 #. type: =item
17713 #: ../fish/guestfish.pod:643
17714 msgid "B<PB>"
17715 msgstr ""
17716
17717 #. type: textblock
17718 #: ../fish/guestfish.pod:645
17719 msgid "The size in SI 10**15 byte units."
17720 msgstr ""
17721
17722 #. type: =item
17723 #: ../fish/guestfish.pod:647
17724 msgid "B<E> or B<EiB>"
17725 msgstr ""
17726
17727 #. type: textblock
17728 #: ../fish/guestfish.pod:649
17729 msgid "The size in exabytes (multiplied by 2**60)."
17730 msgstr ""
17731
17732 #. type: =item
17733 #: ../fish/guestfish.pod:651
17734 msgid "B<EB>"
17735 msgstr ""
17736
17737 #. type: textblock
17738 #: ../fish/guestfish.pod:653
17739 msgid "The size in SI 10**18 byte units."
17740 msgstr ""
17741
17742 #. type: =item
17743 #: ../fish/guestfish.pod:655
17744 msgid "B<Z> or B<ZiB>"
17745 msgstr ""
17746
17747 #. type: textblock
17748 #: ../fish/guestfish.pod:657
17749 msgid "The size in zettabytes (multiplied by 2**70)."
17750 msgstr ""
17751
17752 #. type: =item
17753 #: ../fish/guestfish.pod:659
17754 msgid "B<ZB>"
17755 msgstr ""
17756
17757 #. type: textblock
17758 #: ../fish/guestfish.pod:661
17759 msgid "The size in SI 10**21 byte units."
17760 msgstr ""
17761
17762 #. type: =item
17763 #: ../fish/guestfish.pod:663
17764 msgid "B<Y> or B<YiB>"
17765 msgstr ""
17766
17767 #. type: textblock
17768 #: ../fish/guestfish.pod:665
17769 msgid "The size in yottabytes (multiplied by 2**80)."
17770 msgstr ""
17771
17772 #. type: =item
17773 #: ../fish/guestfish.pod:667
17774 msgid "B<YB>"
17775 msgstr ""
17776
17777 #. type: textblock
17778 #: ../fish/guestfish.pod:669
17779 msgid "The size in SI 10**24 byte units."
17780 msgstr ""
17781
17782 #. type: verbatim
17783 #: ../fish/guestfish.pod:675
17784 #, no-wrap
17785 msgid ""
17786 " truncate-size /file 1G\n"
17787 "\n"
17788 msgstr ""
17789
17790 #. type: textblock
17791 #: ../fish/guestfish.pod:677
17792 msgid "would truncate the file to 1 gigabyte."
17793 msgstr ""
17794
17795 #. type: textblock
17796 #: ../fish/guestfish.pod:679
17797 msgid ""
17798 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
17799 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
17800 "suffix will probably not do what you expect."
17801 msgstr ""
17802
17803 #. type: =head2
17804 #: ../fish/guestfish.pod:683
17805 msgid "OCTAL AND HEXADECIMAL NUMBERS"
17806 msgstr ""
17807
17808 #. type: textblock
17809 #: ../fish/guestfish.pod:685
17810 msgid ""
17811 "For specifying the radix (base) use the C convention: C<0> to prefix an "
17812 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
17813 msgstr ""
17814
17815 #. type: verbatim
17816 #: ../fish/guestfish.pod:688
17817 #, no-wrap
17818 msgid ""
17819 " 1234      decimal number 1234\n"
17820 " 02322     octal number, equivalent to decimal 1234\n"
17821 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
17822 "\n"
17823 msgstr ""
17824
17825 #. type: textblock
17826 #: ../fish/guestfish.pod:692
17827 msgid ""
17828 "When using the C<chmod> command, you almost always want to specify an octal "
17829 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
17830 "L<chmod(1)> program):"
17831 msgstr ""
17832
17833 #. type: verbatim
17834 #: ../fish/guestfish.pod:696
17835 #, no-wrap
17836 msgid ""
17837 " chmod 0777 /public  # OK\n"
17838 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
17839 "\n"
17840 msgstr ""
17841
17842 #. type: textblock
17843 #: ../fish/guestfish.pod:699
17844 msgid ""
17845 "Commands that return numbers usually print them in decimal, but some "
17846 "commands print numbers in other radices (eg. C<umask> prints the mode in "
17847 "octal, preceeded by C<0>)."
17848 msgstr ""
17849
17850 #. type: =head1
17851 #: ../fish/guestfish.pod:703
17852 msgid "WILDCARDS AND GLOBBING"
17853 msgstr ""
17854
17855 #. type: textblock
17856 #: ../fish/guestfish.pod:705
17857 msgid ""
17858 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
17859 "(globbing) by default.  So for example the following will not do what you "
17860 "expect:"
17861 msgstr ""
17862
17863 #. type: verbatim
17864 #: ../fish/guestfish.pod:709
17865 #, no-wrap
17866 msgid ""
17867 " rm-rf /home/*\n"
17868 "\n"
17869 msgstr ""
17870
17871 #. type: textblock
17872 #: ../fish/guestfish.pod:711
17873 msgid ""
17874 "Assuming you don't have a directory called literally C</home/*> then the "
17875 "above command will return an error."
17876 msgstr ""
17877
17878 #. type: textblock
17879 #: ../fish/guestfish.pod:714
17880 msgid "To perform wildcard expansion, use the C<glob> command."
17881 msgstr ""
17882
17883 #. type: verbatim
17884 #: ../fish/guestfish.pod:716
17885 #, no-wrap
17886 msgid ""
17887 " glob rm-rf /home/*\n"
17888 "\n"
17889 msgstr ""
17890
17891 #. type: textblock
17892 #: ../fish/guestfish.pod:718
17893 msgid ""
17894 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
17895 "many times), equivalent to:"
17896 msgstr ""
17897
17898 #. type: verbatim
17899 #: ../fish/guestfish.pod:721
17900 #, no-wrap
17901 msgid ""
17902 " rm-rf /home/jim\n"
17903 " rm-rf /home/joe\n"
17904 " rm-rf /home/mary\n"
17905 "\n"
17906 msgstr ""
17907
17908 #. type: textblock
17909 #: ../fish/guestfish.pod:725
17910 msgid "C<glob> only works on simple guest paths and not on device names."
17911 msgstr ""
17912
17913 #. type: textblock
17914 #: ../fish/guestfish.pod:727
17915 msgid ""
17916 "If you have several parameters, each containing a wildcard, then glob will "
17917 "perform a Cartesian product."
17918 msgstr ""
17919
17920 #. type: =head1
17921 #: ../fish/guestfish.pod:730
17922 msgid "COMMENTS"
17923 msgstr ""
17924
17925 #. type: textblock
17926 #: ../fish/guestfish.pod:732
17927 msgid ""
17928 "Any line which starts with a I<#> character is treated as a comment and "
17929 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
17930 "a command.  For example:"
17931 msgstr ""
17932
17933 #. type: verbatim
17934 #: ../fish/guestfish.pod:736
17935 #, no-wrap
17936 msgid ""
17937 " # this is a comment\n"
17938 "         # this is a comment\n"
17939 " foo # NOT a comment\n"
17940 "\n"
17941 msgstr ""
17942
17943 #. type: textblock
17944 #: ../fish/guestfish.pod:740
17945 msgid "Blank lines are also ignored."
17946 msgstr ""
17947
17948 #. type: =head1
17949 #: ../fish/guestfish.pod:742
17950 msgid "RUNNING COMMANDS LOCALLY"
17951 msgstr ""
17952
17953 #. type: textblock
17954 #: ../fish/guestfish.pod:744
17955 msgid ""
17956 "Any line which starts with a I<!> character is treated as a command sent to "
17957 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
17958 msgstr ""
17959
17960 #. type: verbatim
17961 #: ../fish/guestfish.pod:748
17962 #, no-wrap
17963 msgid ""
17964 " !mkdir local\n"
17965 " tgz-out /remote local/remote-data.tar.gz\n"
17966 "\n"
17967 msgstr ""
17968
17969 #. type: textblock
17970 #: ../fish/guestfish.pod:751
17971 msgid ""
17972 "will create a directory C<local> on the host, and then export the contents "
17973 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
17974 "(See C<tgz-out>)."
17975 msgstr ""
17976
17977 #. type: textblock
17978 #: ../fish/guestfish.pod:755
17979 msgid ""
17980 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
17981 "effect, due to the way that subprocesses work in Unix."
17982 msgstr ""
17983
17984 #. type: =head2
17985 #: ../fish/guestfish.pod:758
17986 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
17987 msgstr ""
17988
17989 #. type: textblock
17990 #: ../fish/guestfish.pod:760
17991 msgid ""
17992 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
17993 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
17994 "and executed as guestfish commands."
17995 msgstr ""
17996
17997 #. type: textblock
17998 #: ../fish/guestfish.pod:764
17999 msgid ""
18000 "Thus you can use shell script to construct arbitrary guestfish commands "
18001 "which are then parsed by guestfish."
18002 msgstr ""
18003
18004 #. type: textblock
18005 #: ../fish/guestfish.pod:767
18006 msgid ""
18007 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
18008 "through C</foo.100>) using guestfish commands alone.  However this is simple "
18009 "if we use a shell script to create the guestfish commands for us:"
18010 msgstr ""
18011
18012 #. type: verbatim
18013 #: ../fish/guestfish.pod:772
18014 #, no-wrap
18015 msgid ""
18016 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
18017 "\n"
18018 msgstr ""
18019
18020 #. type: textblock
18021 #: ../fish/guestfish.pod:774
18022 msgid "or with names like C</foo.001>:"
18023 msgstr ""
18024
18025 #. type: verbatim
18026 #: ../fish/guestfish.pod:776
18027 #, no-wrap
18028 msgid ""
18029 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
18030 "\n"
18031 msgstr ""
18032
18033 #. type: textblock
18034 #: ../fish/guestfish.pod:778
18035 msgid ""
18036 "When using guestfish interactively it can be helpful to just run the shell "
18037 "script first (ie. remove the initial C<E<lt>> character so it is just an "
18038 "ordinary I<!> local command), see what guestfish commands it would run, and "
18039 "when you are happy with those prepend the C<E<lt>> character to run the "
18040 "guestfish commands for real."
18041 msgstr ""
18042
18043 #. type: =head1
18044 #: ../fish/guestfish.pod:784
18045 msgid "PIPES"
18046 msgstr ""
18047
18048 #. type: textblock
18049 #: ../fish/guestfish.pod:786
18050 msgid ""
18051 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18052 "command (a guestfish command) to the second command (any host command).  For "
18053 "example:"
18054 msgstr ""
18055
18056 #. type: verbatim
18057 #: ../fish/guestfish.pod:790
18058 #, no-wrap
18059 msgid ""
18060 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18061 "\n"
18062 msgstr ""
18063
18064 #. type: textblock
18065 #: ../fish/guestfish.pod:792
18066 msgid ""
18067 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18068 "program).  The above command would list all accounts in the guest filesystem "
18069 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
18070 msgstr ""
18071
18072 #. type: verbatim
18073 #: ../fish/guestfish.pod:797
18074 #, no-wrap
18075 msgid ""
18076 " hexdump /bin/ls | head\n"
18077 " list-devices | tail -1\n"
18078 " tgz-out / - | tar ztf -\n"
18079 "\n"
18080 msgstr ""
18081
18082 #. type: textblock
18083 #: ../fish/guestfish.pod:801
18084 msgid ""
18085 "The space before the pipe symbol is required, any space after the pipe "
18086 "symbol is optional.  Everything after the pipe symbol is just passed "
18087 "straight to the host shell, so it can contain redirections, globs and "
18088 "anything else that makes sense on the host side."
18089 msgstr ""
18090
18091 #. type: textblock
18092 #: ../fish/guestfish.pod:806
18093 msgid ""
18094 "To use a literal argument which begins with a pipe symbol, you have to quote "
18095 "it, eg:"
18096 msgstr ""
18097
18098 #. type: verbatim
18099 #: ../fish/guestfish.pod:809
18100 #, no-wrap
18101 msgid ""
18102 " echo \"|\"\n"
18103 "\n"
18104 msgstr ""
18105
18106 #. type: =head1
18107 #: ../fish/guestfish.pod:811
18108 msgid "HOME DIRECTORIES"
18109 msgstr ""
18110
18111 #. type: textblock
18112 #: ../fish/guestfish.pod:813
18113 msgid ""
18114 "If a parameter starts with the character C<~> then the tilde may be expanded "
18115 "as a home directory path (either C<~> for the current user's home directory, "
18116 "or C<~user> for another user)."
18117 msgstr ""
18118
18119 #. type: textblock
18120 #: ../fish/guestfish.pod:817
18121 msgid ""
18122 "Note that home directory expansion happens for users known I<on the host>, "
18123 "not in the guest filesystem."
18124 msgstr ""
18125
18126 #. type: textblock
18127 #: ../fish/guestfish.pod:820
18128 msgid ""
18129 "To use a literal argument which begins with a tilde, you have to quote it, "
18130 "eg:"
18131 msgstr ""
18132
18133 #. type: verbatim
18134 #: ../fish/guestfish.pod:823
18135 #, no-wrap
18136 msgid ""
18137 " echo \"~\"\n"
18138 "\n"
18139 msgstr ""
18140
18141 #. type: =head2
18142 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
18143 msgid "ENCRYPTED DISKS"
18144 msgstr ""
18145
18146 #. type: textblock
18147 #: ../fish/guestfish.pod:827
18148 msgid ""
18149 "Libguestfs has some support for Linux guests encrypted according to the "
18150 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18151 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
18152 "LUKS is supported."
18153 msgstr ""
18154
18155 #. type: textblock
18156 #: ../fish/guestfish.pod:832
18157 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18158 msgstr ""
18159
18160 #. type: verbatim
18161 #: ../fish/guestfish.pod:834
18162 #, no-wrap
18163 msgid ""
18164 " ><fs> vfs-type /dev/sda2\n"
18165 " crypto_LUKS\n"
18166 "\n"
18167 msgstr ""
18168
18169 #. type: textblock
18170 #: ../fish/guestfish.pod:837
18171 msgid ""
18172 "Then open those devices using L</luks-open>.  This creates a device-mapper "
18173 "device called C</dev/mapper/luksdev>."
18174 msgstr ""
18175
18176 #. type: verbatim
18177 #: ../fish/guestfish.pod:840
18178 #, no-wrap
18179 msgid ""
18180 " ><fs> luks-open /dev/sda2 luksdev\n"
18181 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18182 "\n"
18183 msgstr ""
18184
18185 #. type: textblock
18186 #: ../fish/guestfish.pod:843
18187 msgid ""
18188 "Finally you have to tell LVM to scan for volume groups on the newly created "
18189 "mapper device:"
18190 msgstr ""
18191
18192 #. type: verbatim
18193 #: ../fish/guestfish.pod:846
18194 #, no-wrap
18195 msgid ""
18196 " vgscan\n"
18197 " vg-activate-all true\n"
18198 "\n"
18199 msgstr ""
18200
18201 #. type: textblock
18202 #: ../fish/guestfish.pod:849
18203 msgid "The logical volume(s) can now be mounted in the usual way."
18204 msgstr ""
18205
18206 #. type: textblock
18207 #: ../fish/guestfish.pod:851
18208 msgid ""
18209 "Before closing a LUKS device you must unmount any logical volumes on it and "
18210 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18211 "one.  Then you can close the mapper device:"
18212 msgstr ""
18213
18214 #. type: verbatim
18215 #: ../fish/guestfish.pod:855
18216 #, no-wrap
18217 msgid ""
18218 " vg-activate false /dev/VG\n"
18219 " luks-close /dev/mapper/luksdev\n"
18220 "\n"
18221 msgstr ""
18222
18223 #. type: textblock
18224 #: ../fish/guestfish.pod:860
18225 msgid ""
18226 "If a path is prefixed with C<win:> then you can use Windows-style drive "
18227 "letters and paths (with some limitations).  The following commands are "
18228 "equivalent:"
18229 msgstr ""
18230
18231 #. type: verbatim
18232 #: ../fish/guestfish.pod:864
18233 #, no-wrap
18234 msgid ""
18235 " file /WINDOWS/system32/config/system.LOG\n"
18236 "\n"
18237 msgstr ""
18238
18239 #. type: verbatim
18240 #: ../fish/guestfish.pod:866
18241 #, no-wrap
18242 msgid ""
18243 " file win:\\windows\\system32\\config\\system.log\n"
18244 "\n"
18245 msgstr ""
18246
18247 #. type: verbatim
18248 #: ../fish/guestfish.pod:868
18249 #, no-wrap
18250 msgid ""
18251 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
18252 "\n"
18253 msgstr ""
18254
18255 #. type: textblock
18256 #: ../fish/guestfish.pod:870
18257 msgid ""
18258 "The parameter is rewritten \"behind the scenes\" by looking up the position "
18259 "where the drive is mounted, prepending that to the path, changing all "
18260 "backslash characters to forward slash, then resolving the result using L</"
18261 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
18262 "the parameter might be rewritten like this:"
18263 msgstr ""
18264
18265 #. type: verbatim
18266 #: ../fish/guestfish.pod:876
18267 #, no-wrap
18268 msgid ""
18269 " win:e:\\foo\\bar => /e/FOO/bar\n"
18270 "\n"
18271 msgstr ""
18272
18273 #. type: textblock
18274 #: ../fish/guestfish.pod:878
18275 msgid "This only works in argument positions that expect a path."
18276 msgstr ""
18277
18278 #. type: =head1
18279 #: ../fish/guestfish.pod:880
18280 msgid "UPLOADING AND DOWNLOADING FILES"
18281 msgstr ""
18282
18283 #. type: textblock
18284 #: ../fish/guestfish.pod:882
18285 msgid ""
18286 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18287 "others which upload from or download to a local file, you can use the "
18288 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
18289 msgstr ""
18290
18291 #. type: verbatim
18292 #: ../fish/guestfish.pod:886
18293 #, no-wrap
18294 msgid ""
18295 " upload - /foo\n"
18296 "\n"
18297 msgstr ""
18298
18299 #. type: textblock
18300 #: ../fish/guestfish.pod:888
18301 msgid ""
18302 "reads stdin and creates from that a file C</foo> in the disk image, and:"
18303 msgstr ""
18304
18305 #. type: verbatim
18306 #: ../fish/guestfish.pod:891
18307 #, no-wrap
18308 msgid ""
18309 " tar-out /etc - | tar tf -\n"
18310 "\n"
18311 msgstr ""
18312
18313 #. type: textblock
18314 #: ../fish/guestfish.pod:893
18315 msgid ""
18316 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18317 "command (see L</PIPES>)."
18318 msgstr ""
18319
18320 #. type: textblock
18321 #: ../fish/guestfish.pod:896
18322 msgid ""
18323 "When using C<-> to read from stdin, the input is read up to the end of "
18324 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
18325 "some arbitrary end marker:"
18326 msgstr ""
18327
18328 #. type: verbatim
18329 #: ../fish/guestfish.pod:900
18330 #, no-wrap
18331 msgid ""
18332 " upload -<<END /foo\n"
18333 " input line 1\n"
18334 " input line 2\n"
18335 " input line 3\n"
18336 " END\n"
18337 "\n"
18338 msgstr ""
18339
18340 #. type: textblock
18341 #: ../fish/guestfish.pod:906
18342 msgid ""
18343 "Any string of characters can be used instead of C<END>.  The end marker must "
18344 "appear on a line of its own, without any preceeding or following characters "
18345 "(not even spaces)."
18346 msgstr ""
18347
18348 #. type: textblock
18349 #: ../fish/guestfish.pod:910
18350 msgid ""
18351 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18352 "upload local files (so-called \"FileIn\" parameters in the generator)."
18353 msgstr ""
18354
18355 #. type: =head1
18356 #: ../fish/guestfish.pod:913
18357 msgid "EXIT ON ERROR BEHAVIOUR"
18358 msgstr ""
18359
18360 #. type: textblock
18361 #: ../fish/guestfish.pod:915
18362 msgid ""
18363 "By default, guestfish will ignore any errors when in interactive mode (ie. "
18364 "taking commands from a human over a tty), and will exit on the first error "
18365 "in non-interactive mode (scripts, commands given on the command line)."
18366 msgstr ""
18367
18368 #. type: textblock
18369 #: ../fish/guestfish.pod:920
18370 msgid ""
18371 "If you prefix a command with a I<-> character, then that command will not "
18372 "cause guestfish to exit, even if that (one) command returns an error."
18373 msgstr ""
18374
18375 #. type: =head1
18376 #: ../fish/guestfish.pod:924
18377 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18378 msgstr ""
18379
18380 #. type: textblock
18381 #: ../fish/guestfish.pod:926
18382 msgid ""
18383 "Guestfish can be remote-controlled over a socket.  This is useful "
18384 "particularly in shell scripts where you want to make several different "
18385 "changes to a filesystem, but you don't want the overhead of starting up a "
18386 "guestfish process each time."
18387 msgstr ""
18388
18389 #. type: textblock
18390 #: ../fish/guestfish.pod:931
18391 msgid "Start a guestfish server process using:"
18392 msgstr ""
18393
18394 #. type: verbatim
18395 #: ../fish/guestfish.pod:933
18396 #, no-wrap
18397 msgid ""
18398 " eval \"`guestfish --listen`\"\n"
18399 "\n"
18400 msgstr ""
18401
18402 #. type: textblock
18403 #: ../fish/guestfish.pod:935
18404 msgid "and then send it commands by doing:"
18405 msgstr ""
18406
18407 #. type: verbatim
18408 #: ../fish/guestfish.pod:937
18409 #, no-wrap
18410 msgid ""
18411 " guestfish --remote cmd [...]\n"
18412 "\n"
18413 msgstr ""
18414
18415 #. type: textblock
18416 #: ../fish/guestfish.pod:939
18417 msgid "To cause the server to exit, send it the exit command:"
18418 msgstr ""
18419
18420 #. type: textblock
18421 #: ../fish/guestfish.pod:943
18422 msgid ""
18423 "Note that the server will normally exit if there is an error in a command.  "
18424 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18425 "BEHAVIOUR>."
18426 msgstr ""
18427
18428 #. type: =head2
18429 #: ../fish/guestfish.pod:947
18430 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18431 msgstr ""
18432
18433 #. type: textblock
18434 #: ../fish/guestfish.pod:949
18435 msgid ""
18436 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18437 "is how the I<--remote> option knows where to send the commands.  You can "
18438 "have several guestfish listener processes running using:"
18439 msgstr ""
18440
18441 #. type: verbatim
18442 #: ../fish/guestfish.pod:953
18443 #, no-wrap
18444 msgid ""
18445 " eval \"`guestfish --listen`\"\n"
18446 " pid1=$GUESTFISH_PID\n"
18447 " eval \"`guestfish --listen`\"\n"
18448 " pid2=$GUESTFISH_PID\n"
18449 " ...\n"
18450 " guestfish --remote=$pid1 cmd\n"
18451 " guestfish --remote=$pid2 cmd\n"
18452 "\n"
18453 msgstr ""
18454
18455 #. type: =head2
18456 #: ../fish/guestfish.pod:961
18457 msgid "REMOTE CONTROL AND CSH"
18458 msgstr ""
18459
18460 #. type: textblock
18461 #: ../fish/guestfish.pod:963
18462 msgid ""
18463 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18464 "option:"
18465 msgstr ""
18466
18467 #. type: verbatim
18468 #: ../fish/guestfish.pod:966
18469 #, no-wrap
18470 msgid ""
18471 " eval \"`guestfish --listen --csh`\"\n"
18472 "\n"
18473 msgstr ""
18474
18475 #. type: =head2
18476 #: ../fish/guestfish.pod:968
18477 msgid "REMOTE CONTROL DETAILS"
18478 msgstr ""
18479
18480 #. type: textblock
18481 #: ../fish/guestfish.pod:970
18482 msgid ""
18483 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
18484 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
18485 "and C<$PID> is the process ID of the server."
18486 msgstr ""
18487
18488 #. type: textblock
18489 #: ../fish/guestfish.pod:974
18490 msgid "Guestfish client and server versions must match exactly."
18491 msgstr ""
18492
18493 #. type: =head2
18494 #: ../fish/guestfish.pod:976
18495 msgid "REMOTE CONTROL RUN COMMAND HANGING"
18496 msgstr ""
18497
18498 #. type: textblock
18499 #: ../fish/guestfish.pod:978
18500 msgid ""
18501 "Using the C<run> (or C<launch>) command remotely in a command substitution "
18502 "context hangs, ie. don't do (note the backquotes):"
18503 msgstr ""
18504
18505 #. type: verbatim
18506 #: ../fish/guestfish.pod:981
18507 #, no-wrap
18508 msgid ""
18509 " a=`guestfish --remote run`\n"
18510 "\n"
18511 msgstr ""
18512
18513 #. type: textblock
18514 #: ../fish/guestfish.pod:983
18515 msgid ""
18516 "Since the C<run> command produces no output on stdout, this is not useful "
18517 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
18518 "cgi?id=592910>."
18519 msgstr ""
18520
18521 #. type: =head1
18522 #: ../fish/guestfish.pod:987
18523 msgid "PREPARED DISK IMAGES"
18524 msgstr ""
18525
18526 #. type: textblock
18527 #: ../fish/guestfish.pod:989
18528 msgid ""
18529 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18530 "preformatted disk images that guestfish can make for you to save typing.  "
18531 "This is particularly useful for testing purposes.  This option is used "
18532 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18533 "can be mixed with I<-a>)."
18534 msgstr ""
18535
18536 #. type: textblock
18537 #: ../fish/guestfish.pod:995
18538 msgid ""
18539 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
18540 "the second and so on.  Existing files in the current directory are "
18541 "I<overwritten>."
18542 msgstr ""
18543
18544 #. type: textblock
18545 #: ../fish/guestfish.pod:999
18546 msgid ""
18547 "The type briefly describes how the disk should be sized, partitioned, how "
18548 "filesystem(s) should be created, and how content should be added.  "
18549 "Optionally the type can be followed by extra parameters, separated by C<:> "
18550 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
18551 "allocated disk, containing a single partition, with the partition formatted "
18552 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
18553 "disk instead."
18554 msgstr ""
18555
18556 #. type: textblock
18557 #: ../fish/guestfish.pod:1007
18558 msgid "To list the available types and any extra parameters they take, run:"
18559 msgstr ""
18560
18561 #. type: textblock
18562 #: ../fish/guestfish.pod:1011
18563 msgid ""
18564 "Note that the prepared filesystem is not mounted.  You would usually have to "
18565 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
18566 msgstr ""
18567
18568 #. type: textblock
18569 #: ../fish/guestfish.pod:1015
18570 msgid ""
18571 "If any I<-N> or I<--new> options are given, the guest is automatically "
18572 "launched."
18573 msgstr ""
18574
18575 #. type: textblock
18576 #: ../fish/guestfish.pod:1020
18577 msgid "Create a 100MB disk with an ext4-formatted partition:"
18578 msgstr ""
18579
18580 #. type: verbatim
18581 #: ../fish/guestfish.pod:1022
18582 #, no-wrap
18583 msgid ""
18584 " guestfish -N fs:ext4\n"
18585 "\n"
18586 msgstr ""
18587
18588 #. type: textblock
18589 #: ../fish/guestfish.pod:1024
18590 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
18591 msgstr ""
18592
18593 #. type: verbatim
18594 #: ../fish/guestfish.pod:1026
18595 #, no-wrap
18596 msgid ""
18597 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
18598 "\n"
18599 msgstr ""
18600
18601 #. type: textblock
18602 #: ../fish/guestfish.pod:1028
18603 msgid "Create a blank 200MB disk:"
18604 msgstr ""
18605
18606 #. type: verbatim
18607 #: ../fish/guestfish.pod:1030
18608 #, no-wrap
18609 msgid ""
18610 " guestfish -N disk:200M\n"
18611 "\n"
18612 msgstr ""
18613
18614 #. type: =head1
18615 #: ../fish/guestfish.pod:1032
18616 msgid "PROGRESS BARS"
18617 msgstr ""
18618
18619 #. type: textblock
18620 #: ../fish/guestfish.pod:1034
18621 msgid ""
18622 "Some (not all) long-running commands send progress notification messages as "
18623 "they are running.  Guestfish turns these messages into progress bars."
18624 msgstr ""
18625
18626 #. type: textblock
18627 #: ../fish/guestfish.pod:1038
18628 msgid ""
18629 "When a command that supports progress bars takes longer than two seconds to "
18630 "run, and if progress bars are enabled, then you will see one appearing below "
18631 "the command:"
18632 msgstr ""
18633
18634 #. type: verbatim
18635 #: ../fish/guestfish.pod:1042
18636 #, no-wrap
18637 msgid ""
18638 " ><fs> copy-size /large-file /another-file 2048M\n"
18639 " / 10% [#####-----------------------------------------] 00:30\n"
18640 "\n"
18641 msgstr ""
18642
18643 #. type: textblock
18644 #: ../fish/guestfish.pod:1045
18645 msgid ""
18646 "The spinner on the left hand side moves round once for every progress "
18647 "notification received from the backend.  This is a (reasonably) golden "
18648 "assurance that the command is \"doing something\" even if the progress bar "
18649 "is not moving, because the command is able to send the progress "
18650 "notifications.  When the bar reaches 100% and the command finishes, the "
18651 "spinner disappears."
18652 msgstr ""
18653
18654 #. type: textblock
18655 #: ../fish/guestfish.pod:1052
18656 msgid ""
18657 "Progress bars are enabled by default when guestfish is used interactively.  "
18658 "You can enable them even for non-interactive modes using I<--progress-bars>, "
18659 "and you can disable them completely using I<--no-progress-bars>."
18660 msgstr ""
18661
18662 #. type: =head1
18663 #: ../fish/guestfish.pod:1057
18664 msgid "GUESTFISH COMMANDS"
18665 msgstr ""
18666
18667 #. type: textblock
18668 #: ../fish/guestfish.pod:1059
18669 msgid ""
18670 "The commands in this section are guestfish convenience commands, in other "
18671 "words, they are not part of the L<guestfs(3)> API."
18672 msgstr ""
18673
18674 #. type: =head2
18675 #: ../fish/guestfish.pod:1062
18676 msgid "help"
18677 msgstr ""
18678
18679 #. type: verbatim
18680 #: ../fish/guestfish.pod:1064
18681 #, no-wrap
18682 msgid ""
18683 " help\n"
18684 " help cmd\n"
18685 "\n"
18686 msgstr ""
18687
18688 #. type: textblock
18689 #: ../fish/guestfish.pod:1067
18690 msgid "Without any parameter, this provides general help."
18691 msgstr ""
18692
18693 #. type: textblock
18694 #: ../fish/guestfish.pod:1069
18695 msgid "With a C<cmd> parameter, this displays detailed help for that command."
18696 msgstr ""
18697
18698 #. type: =head2
18699 #: ../fish/guestfish.pod:1071
18700 msgid "quit | exit"
18701 msgstr ""
18702
18703 #. type: textblock
18704 #: ../fish/guestfish.pod:1073
18705 msgid "This exits guestfish.  You can also use C<^D> key."
18706 msgstr ""
18707
18708 #. type: textblock
18709 #: ../fish/guestfish.pod:1075
18710 msgid "@FISH_COMMANDS@"
18711 msgstr ""
18712
18713 #. type: =head1
18714 #: ../fish/guestfish.pod:1077
18715 msgid "COMMANDS"
18716 msgstr ""
18717
18718 #. type: textblock
18719 #: ../fish/guestfish.pod:1079 ../src/guestfs.pod:1505
18720 msgid "@ACTIONS@"
18721 msgstr ""
18722
18723 #. type: textblock
18724 #: ../fish/guestfish.pod:1083
18725 msgid ""
18726 "guestfish returns 0 if the commands completed without error, or 1 if there "
18727 "was an error."
18728 msgstr ""
18729
18730 #. type: =item
18731 #: ../fish/guestfish.pod:1090
18732 msgid "EDITOR"
18733 msgstr ""
18734
18735 #. type: textblock
18736 #: ../fish/guestfish.pod:1092
18737 msgid ""
18738 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
18739 "C<vi>."
18740 msgstr ""
18741
18742 #. type: =item
18743 #: ../fish/guestfish.pod:1095 ../src/guestfs.pod:3110
18744 msgid "FEBOOTSTRAP_KERNEL"
18745 msgstr ""
18746
18747 #. type: =item
18748 #: ../fish/guestfish.pod:1097 ../src/guestfs.pod:3112
18749 msgid "FEBOOTSTRAP_MODULES"
18750 msgstr ""
18751
18752 #. type: textblock
18753 #: ../fish/guestfish.pod:1099 ../src/guestfs.pod:3114
18754 msgid ""
18755 "These two environment variables allow the kernel that libguestfs uses in the "
18756 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
18757 "most recent host kernel is chosen.  For more information about kernel "
18758 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
18759 "available in febootstrap E<ge> 3.8."
18760 msgstr ""
18761
18762 #. type: =item
18763 #: ../fish/guestfish.pod:1105
18764 msgid "GUESTFISH_DISPLAY_IMAGE"
18765 msgstr ""
18766
18767 #. type: textblock
18768 #: ../fish/guestfish.pod:1107
18769 msgid ""
18770 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
18771 "If not set, it uses L<display(1)>."
18772 msgstr ""
18773
18774 #. type: =item
18775 #: ../fish/guestfish.pod:1110
18776 msgid "GUESTFISH_PID"
18777 msgstr ""
18778
18779 #. type: textblock
18780 #: ../fish/guestfish.pod:1112
18781 msgid ""
18782 "Used with the I<--remote> option to specify the remote guestfish process to "
18783 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
18784 msgstr ""
18785
18786 #. type: =item
18787 #: ../fish/guestfish.pod:1116
18788 msgid "HEXEDITOR"
18789 msgstr ""
18790
18791 #. type: textblock
18792 #: ../fish/guestfish.pod:1118
18793 msgid ""
18794 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
18795 "not specified, the external L<hexedit(1)> program is used."
18796 msgstr ""
18797
18798 #. type: =item
18799 #: ../fish/guestfish.pod:1122
18800 msgid "HOME"
18801 msgstr ""
18802
18803 #. type: textblock
18804 #: ../fish/guestfish.pod:1124
18805 msgid ""
18806 "If compiled with GNU readline support, various files in the home directory "
18807 "can be used.  See L</FILES>."
18808 msgstr ""
18809
18810 #. type: =item
18811 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:3120
18812 msgid "LIBGUESTFS_APPEND"
18813 msgstr ""
18814
18815 #. type: textblock
18816 #: ../fish/guestfish.pod:1129 ../src/guestfs.pod:3122
18817 msgid "Pass additional options to the guest kernel."
18818 msgstr ""
18819
18820 #. type: =item
18821 #: ../fish/guestfish.pod:1131 ../src/guestfs.pod:3124
18822 msgid "LIBGUESTFS_DEBUG"
18823 msgstr ""
18824
18825 #. type: textblock
18826 #: ../fish/guestfish.pod:1133
18827 msgid ""
18828 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
18829 "effect as using the B<-v> option."
18830 msgstr ""
18831
18832 #. type: =item
18833 #: ../fish/guestfish.pod:1136 ../src/guestfs.pod:3129
18834 msgid "LIBGUESTFS_MEMSIZE"
18835 msgstr ""
18836
18837 #. type: textblock
18838 #: ../fish/guestfish.pod:1138 ../src/guestfs.pod:3131
18839 msgid ""
18840 "Set the memory allocated to the qemu process, in megabytes.  For example:"
18841 msgstr ""
18842
18843 #. type: verbatim
18844 #: ../fish/guestfish.pod:1141 ../src/guestfs.pod:3134
18845 #, no-wrap
18846 msgid ""
18847 " LIBGUESTFS_MEMSIZE=700\n"
18848 "\n"
18849 msgstr ""
18850
18851 #. type: =item
18852 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:3136
18853 msgid "LIBGUESTFS_PATH"
18854 msgstr ""
18855
18856 #. type: textblock
18857 #: ../fish/guestfish.pod:1145
18858 msgid ""
18859 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
18860 "the discussion of paths in L<guestfs(3)>."
18861 msgstr ""
18862
18863 #. type: =item
18864 #: ../fish/guestfish.pod:1148 ../src/guestfs.pod:3141
18865 msgid "LIBGUESTFS_QEMU"
18866 msgstr ""
18867
18868 #. type: textblock
18869 #: ../fish/guestfish.pod:1150 ../src/guestfs.pod:3143
18870 msgid ""
18871 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
18872 "which was found at compile time by the configure script is used."
18873 msgstr ""
18874
18875 #. type: =item
18876 #: ../fish/guestfish.pod:1154 ../src/guestfs.pod:3149
18877 msgid "LIBGUESTFS_TRACE"
18878 msgstr ""
18879
18880 #. type: textblock
18881 #: ../fish/guestfish.pod:1156
18882 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
18883 msgstr ""
18884
18885 #. type: =item
18886 #: ../fish/guestfish.pod:1158
18887 msgid "PAGER"
18888 msgstr ""
18889
18890 #. type: textblock
18891 #: ../fish/guestfish.pod:1160
18892 msgid ""
18893 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
18894 "C<more>."
18895 msgstr ""
18896
18897 #. type: =item
18898 #: ../fish/guestfish.pod:1163 ../src/guestfs.pod:3154
18899 msgid "TMPDIR"
18900 msgstr ""
18901
18902 #. type: textblock
18903 #: ../fish/guestfish.pod:1165 ../src/guestfs.pod:3156
18904 msgid ""
18905 "Location of temporary directory, defaults to C</tmp> except for the cached "
18906 "supermin appliance which defaults to C</var/tmp>."
18907 msgstr ""
18908
18909 #. type: textblock
18910 #: ../fish/guestfish.pod:1168 ../src/guestfs.pod:3159
18911 msgid ""
18912 "If libguestfs was compiled to use the supermin appliance then the real "
18913 "appliance is cached in this directory, shared between all handles belonging "
18914 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
18915 "use in case C</var/tmp> is not large enough."
18916 msgstr ""
18917
18918 #. type: =head1
18919 #: ../fish/guestfish.pod:1176 ../fuse/guestmount.pod:288
18920 #: ../rescue/virt-rescue.pod:273
18921 msgid "FILES"
18922 msgstr ""
18923
18924 #. type: =item
18925 #: ../fish/guestfish.pod:1180 ../fuse/guestmount.pod:292
18926 #: ../rescue/virt-rescue.pod:277
18927 msgid "$HOME/.libguestfs-tools.rc"
18928 msgstr ""
18929
18930 #. type: =item
18931 #: ../fish/guestfish.pod:1182 ../fuse/guestmount.pod:294
18932 #: ../rescue/virt-rescue.pod:279
18933 msgid "/etc/libguestfs-tools.conf"
18934 msgstr ""
18935
18936 #. type: textblock
18937 #: ../fish/guestfish.pod:1184 ../fuse/guestmount.pod:296
18938 #: ../rescue/virt-rescue.pod:281
18939 msgid ""
18940 "This configuration file controls the default read-only or read-write mode "
18941 "(I<--ro> or I<--rw>)."
18942 msgstr ""
18943
18944 #. type: textblock
18945 #: ../fish/guestfish.pod:1187
18946 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
18947 msgstr ""
18948
18949 #. type: =item
18950 #: ../fish/guestfish.pod:1189
18951 msgid "$HOME/.guestfish"
18952 msgstr ""
18953
18954 #. type: textblock
18955 #: ../fish/guestfish.pod:1191
18956 msgid ""
18957 "If compiled with GNU readline support, then the command history is saved in "
18958 "this file."
18959 msgstr ""
18960
18961 #. type: =item
18962 #: ../fish/guestfish.pod:1194
18963 msgid "$HOME/.inputrc"
18964 msgstr ""
18965
18966 #. type: =item
18967 #: ../fish/guestfish.pod:1196
18968 msgid "/etc/inputrc"
18969 msgstr ""
18970
18971 #. type: textblock
18972 #: ../fish/guestfish.pod:1198
18973 msgid ""
18974 "If compiled with GNU readline support, then these files can be used to "
18975 "configure readline.  For further information, please see L<readline(3)/"
18976 "INITIALIZATION FILE>."
18977 msgstr ""
18978
18979 #. type: textblock
18980 #: ../fish/guestfish.pod:1202
18981 msgid "To write rules which only apply to guestfish, use:"
18982 msgstr ""
18983
18984 #. type: verbatim
18985 #: ../fish/guestfish.pod:1204
18986 #, no-wrap
18987 msgid ""
18988 " $if guestfish\n"
18989 " ...\n"
18990 " $endif\n"
18991 "\n"
18992 msgstr ""
18993
18994 #. type: textblock
18995 #: ../fish/guestfish.pod:1208
18996 msgid ""
18997 "Variables that you can set in inputrc that change the behaviour of guestfish "
18998 "in useful ways include:"
18999 msgstr ""
19000
19001 #. type: =item
19002 #: ../fish/guestfish.pod:1213
19003 msgid "completion-ignore-case (default: on)"
19004 msgstr ""
19005
19006 #. type: textblock
19007 #: ../fish/guestfish.pod:1215
19008 msgid ""
19009 "By default, guestfish will ignore case when tab-completing paths on the "
19010 "disk.  Use:"
19011 msgstr ""
19012
19013 #. type: verbatim
19014 #: ../fish/guestfish.pod:1218
19015 #, no-wrap
19016 msgid ""
19017 " set completion-ignore-case off\n"
19018 "\n"
19019 msgstr ""
19020
19021 #. type: textblock
19022 #: ../fish/guestfish.pod:1220
19023 msgid "to make guestfish case sensitive."
19024 msgstr ""
19025
19026 #. type: =item
19027 #: ../fish/guestfish.pod:1224
19028 msgid "test1.img"
19029 msgstr ""
19030
19031 #. type: =item
19032 #: ../fish/guestfish.pod:1226
19033 msgid "test2.img (etc)"
19034 msgstr ""
19035
19036 #. type: textblock
19037 #: ../fish/guestfish.pod:1228
19038 msgid ""
19039 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
19040 "will be created in the file C<test1.img> in the current directory.  The "
19041 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
19042 "the same name will be overwritten."
19043 msgstr ""
19044
19045 #. type: textblock
19046 #: ../fish/guestfish.pod:1237
19047 msgid ""
19048 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
19049 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
19050 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
19051 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
19052 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
19053 ">, L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
19054 msgstr ""
19055
19056 #. type: textblock
19057 #: ../fish/guestfish.pod:1266 ../src/guestfs.pod:3246
19058 #: ../test-tool/libguestfs-test-tool.pod:112
19059 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
19060 msgstr ""
19061
19062 #. type: textblock
19063 #: ../fish/virt-copy-in.pod:5
19064 msgid ""
19065 "virt-copy-in - Copy files and directories into a virtual machine disk image."
19066 msgstr ""
19067
19068 #. type: verbatim
19069 #: ../fish/virt-copy-in.pod:9
19070 #, no-wrap
19071 msgid ""
19072 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
19073 "\n"
19074 msgstr ""
19075
19076 #. type: verbatim
19077 #: ../fish/virt-copy-in.pod:11
19078 #, no-wrap
19079 msgid ""
19080 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
19081 "\n"
19082 msgstr ""
19083
19084 #. type: textblock
19085 #: ../fish/virt-copy-in.pod:15
19086 msgid ""
19087 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
19088 "causing disk corruption.  The virtual machine must be shut down before you "
19089 "use this command."
19090 msgstr ""
19091
19092 #. type: textblock
19093 #: ../fish/virt-copy-in.pod:21
19094 msgid ""
19095 "C<virt-copy-in> copies files and directories from the local disk into a "
19096 "virtual machine disk image or named libvirt domain."
19097 msgstr ""
19098
19099 #. type: textblock
19100 #: ../fish/virt-copy-in.pod:24
19101 msgid ""
19102 "You can give one of more filenames and directories on the command line.  "
19103 "Directories are copied in recursively.  The final parameter must be the "
19104 "destination directory in the disk image which must be an absolute path "
19105 "starting with a C</> character."
19106 msgstr ""
19107
19108 #. type: verbatim
19109 #: ../fish/virt-copy-in.pod:33
19110 #, no-wrap
19111 msgid ""
19112 " virt-copy-in -d MyGuest resolv.conf /etc\n"
19113 "\n"
19114 msgstr ""
19115
19116 #. type: textblock
19117 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
19118 msgid "Upload a home directory to a guest:"
19119 msgstr ""
19120
19121 #. type: verbatim
19122 #: ../fish/virt-copy-in.pod:37
19123 #, no-wrap
19124 msgid ""
19125 " virt-copy-in -d MyGuest skel /home\n"
19126 "\n"
19127 msgstr ""
19128
19129 #. type: =head1
19130 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
19131 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
19132 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
19133 msgstr ""
19134
19135 #. type: textblock
19136 #: ../fish/virt-copy-in.pod:41
19137 msgid ""
19138 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19139 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
19140 "are probably better off using guestfish directly."
19141 msgstr ""
19142
19143 #. type: textblock
19144 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
19145 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
19146 msgid ""
19147 "Since the shell script just passes options straight to guestfish, read "
19148 "L<guestfish(1)> to see the full list of options."
19149 msgstr ""
19150
19151 #. type: textblock
19152 #: ../fish/virt-copy-in.pod:52
19153 msgid ""
19154 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
19155 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19156 msgstr ""
19157
19158 #. type: textblock
19159 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
19160 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
19161 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
19162 msgstr ""
19163
19164 #. type: textblock
19165 #: ../fish/virt-copy-out.pod:5
19166 msgid ""
19167 "virt-copy-out - Copy files and directories out of a virtual machine disk "
19168 "image."
19169 msgstr ""
19170
19171 #. type: verbatim
19172 #: ../fish/virt-copy-out.pod:9
19173 #, no-wrap
19174 msgid ""
19175 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
19176 "\n"
19177 msgstr ""
19178
19179 #. type: verbatim
19180 #: ../fish/virt-copy-out.pod:11
19181 #, no-wrap
19182 msgid ""
19183 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
19184 "\n"
19185 msgstr ""
19186
19187 #. type: textblock
19188 #: ../fish/virt-copy-out.pod:15
19189 msgid ""
19190 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
19191 "image or named libvirt domain."
19192 msgstr ""
19193
19194 #. type: textblock
19195 #: ../fish/virt-copy-out.pod:18
19196 msgid ""
19197 "You can give one of more filenames and directories on the command line.  "
19198 "Directories are copied out recursively."
19199 msgstr ""
19200
19201 #. type: textblock
19202 #: ../fish/virt-copy-out.pod:23
19203 msgid "Download the home directories from a virtual machine:"
19204 msgstr ""
19205
19206 #. type: verbatim
19207 #: ../fish/virt-copy-out.pod:25
19208 #, no-wrap
19209 msgid ""
19210 " mkdir homes\n"
19211 " virt-copy-out -d MyGuest /home homes\n"
19212 "\n"
19213 msgstr ""
19214
19215 #. type: textblock
19216 #: ../fish/virt-copy-out.pod:30
19217 msgid ""
19218 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19219 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
19220 "are probably better off using guestfish directly."
19221 msgstr ""
19222
19223 #. type: textblock
19224 #: ../fish/virt-copy-out.pod:41
19225 msgid ""
19226 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
19227 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19228 msgstr ""
19229
19230 #. type: textblock
19231 #: ../fish/virt-tar-in.pod:5
19232 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
19233 msgstr ""
19234
19235 #. type: verbatim
19236 #: ../fish/virt-tar-in.pod:9
19237 #, no-wrap
19238 msgid ""
19239 " virt-tar-in -a disk.img data.tar /destination\n"
19240 "\n"
19241 msgstr ""
19242
19243 #. type: verbatim
19244 #: ../fish/virt-tar-in.pod:11
19245 #, no-wrap
19246 msgid ""
19247 " virt-tar-in -d domain data.tar /destination\n"
19248 "\n"
19249 msgstr ""
19250
19251 #. type: verbatim
19252 #: ../fish/virt-tar-in.pod:13
19253 #, no-wrap
19254 msgid ""
19255 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
19256 "\n"
19257 msgstr ""
19258
19259 #. type: textblock
19260 #: ../fish/virt-tar-in.pod:17
19261 msgid ""
19262 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
19263 "causing disk corruption.  The virtual machine must be shut down before you "
19264 "use this command."
19265 msgstr ""
19266
19267 #. type: textblock
19268 #: ../fish/virt-tar-in.pod:23
19269 msgid ""
19270 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
19271 "image or named libvirt domain."
19272 msgstr ""
19273
19274 #. type: textblock
19275 #: ../fish/virt-tar-in.pod:26
19276 msgid ""
19277 "The first parameter is the tar file.  Use C<-> to read the tar file from "
19278 "standard input.  The second parameter is the absolute target directory to "
19279 "unpack into."
19280 msgstr ""
19281
19282 #. type: verbatim
19283 #: ../fish/virt-tar-in.pod:34
19284 #, no-wrap
19285 msgid ""
19286 " virt-tar-in -d MyGuest homes.tar /home\n"
19287 "\n"
19288 msgstr ""
19289
19290 #. type: textblock
19291 #: ../fish/virt-tar-in.pod:38
19292 msgid ""
19293 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19294 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
19295 "probably better off using guestfish directly."
19296 msgstr ""
19297
19298 #. type: textblock
19299 #: ../fish/virt-tar-in.pod:49
19300 msgid ""
19301 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19302 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
19303 "org/>."
19304 msgstr ""
19305
19306 #. type: textblock
19307 #: ../fish/virt-tar-out.pod:5
19308 msgid ""
19309 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
19310 msgstr ""
19311
19312 #. type: verbatim
19313 #: ../fish/virt-tar-out.pod:9
19314 #, no-wrap
19315 msgid ""
19316 " virt-tar-out -a disk.img /dir files.tar\n"
19317 "\n"
19318 msgstr ""
19319
19320 #. type: verbatim
19321 #: ../fish/virt-tar-out.pod:11
19322 #, no-wrap
19323 msgid ""
19324 " virt-tar-out -d domain /dir files.tar\n"
19325 "\n"
19326 msgstr ""
19327
19328 #. type: verbatim
19329 #: ../fish/virt-tar-out.pod:13
19330 #, no-wrap
19331 msgid ""
19332 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
19333 "\n"
19334 msgstr ""
19335
19336 #. type: textblock
19337 #: ../fish/virt-tar-out.pod:17
19338 msgid ""
19339 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
19340 msgstr ""
19341
19342 #. type: textblock
19343 #: ../fish/virt-tar-out.pod:20
19344 msgid ""
19345 "The first parameter is the absolute path of the virtual machine directory.  "
19346 "The second parameter is the tar file to write.  Use C<-> to write to "
19347 "standard output."
19348 msgstr ""
19349
19350 #. type: textblock
19351 #: ../fish/virt-tar-out.pod:26
19352 msgid "Download the home directories from a guest:"
19353 msgstr ""
19354
19355 #. type: verbatim
19356 #: ../fish/virt-tar-out.pod:28
19357 #, no-wrap
19358 msgid ""
19359 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
19360 "\n"
19361 msgstr ""
19362
19363 #. type: textblock
19364 #: ../fish/virt-tar-out.pod:32
19365 msgid ""
19366 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19367 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
19368 "are probably better off using guestfish directly."
19369 msgstr ""
19370
19371 #. type: textblock
19372 #: ../fish/virt-tar-out.pod:43
19373 msgid ""
19374 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19375 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
19376 msgstr ""
19377
19378 #. type: textblock
19379 #: ../fuse/guestmount.pod:5
19380 msgid ""
19381 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
19382 msgstr ""
19383
19384 #. type: verbatim
19385 #: ../fuse/guestmount.pod:9
19386 #, no-wrap
19387 msgid ""
19388 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
19389 "\n"
19390 msgstr ""
19391
19392 #. type: verbatim
19393 #: ../fuse/guestmount.pod:11
19394 #, no-wrap
19395 msgid ""
19396 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
19397 "\n"
19398 msgstr ""
19399
19400 #. type: verbatim
19401 #: ../fuse/guestmount.pod:13
19402 #, no-wrap
19403 msgid ""
19404 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
19405 "\n"
19406 msgstr ""
19407
19408 #. type: textblock
19409 #: ../fuse/guestmount.pod:17
19410 msgid ""
19411 "You must I<not> use C<guestmount> in read-write mode on live virtual "
19412 "machines.  If you do this, you risk disk corruption in the VM."
19413 msgstr ""
19414
19415 #. type: textblock
19416 #: ../fuse/guestmount.pod:22
19417 msgid ""
19418 "The guestmount program can be used to mount virtual machine filesystems and "
19419 "other disk images on the host.  It uses libguestfs for access to the guest "
19420 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
19421 "a mountable device."
19422 msgstr ""
19423
19424 #. type: textblock
19425 #: ../fuse/guestmount.pod:27
19426 msgid ""
19427 "Along with other options, you have to give at least one device (I<-a> "
19428 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
19429 "option) or use the I<-i> inspection option.  How this works is better "
19430 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
19431 "below."
19432 msgstr ""
19433
19434 #. type: textblock
19435 #: ../fuse/guestmount.pod:33
19436 msgid ""
19437 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
19438 "by you, and the filesystem will not be visible to any other users unless you "
19439 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
19440 "the filesystem, use the C<fusermount -u> command."
19441 msgstr ""
19442
19443 #. type: textblock
19444 #: ../fuse/guestmount.pod:41
19445 msgid ""
19446 "For a typical Windows guest which has its main filesystem on the first "
19447 "partition:"
19448 msgstr ""
19449
19450 #. type: verbatim
19451 #: ../fuse/guestmount.pod:44
19452 #, no-wrap
19453 msgid ""
19454 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
19455 "\n"
19456 msgstr ""
19457
19458 #. type: textblock
19459 #: ../fuse/guestmount.pod:46
19460 msgid ""
19461 "For a typical Linux guest which has a /boot filesystem on the first "
19462 "partition, and the root filesystem on a logical volume:"
19463 msgstr ""
19464
19465 #. type: verbatim
19466 #: ../fuse/guestmount.pod:49
19467 #, no-wrap
19468 msgid ""
19469 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
19470 "\n"
19471 msgstr ""
19472
19473 #. type: textblock
19474 #: ../fuse/guestmount.pod:51
19475 msgid "To get libguestfs to detect guest mountpoints for you:"
19476 msgstr ""
19477
19478 #. type: verbatim
19479 #: ../fuse/guestmount.pod:53
19480 #, no-wrap
19481 msgid ""
19482 " guestmount -a guest.img -i --ro /mnt\n"
19483 "\n"
19484 msgstr ""
19485
19486 #. type: textblock
19487 #: ../fuse/guestmount.pod:55
19488 msgid "For a libvirt guest called \"Guest\" you could do:"
19489 msgstr ""
19490
19491 #. type: verbatim
19492 #: ../fuse/guestmount.pod:57
19493 #, no-wrap
19494 msgid ""
19495 " guestmount -d Guest -i --ro /mnt\n"
19496 "\n"
19497 msgstr ""
19498
19499 #. type: textblock
19500 #: ../fuse/guestmount.pod:59
19501 msgid ""
19502 "If you don't know what filesystems are contained in a guest or disk image, "
19503 "use L<virt-filesystems(1)> first:"
19504 msgstr ""
19505
19506 #. type: verbatim
19507 #: ../fuse/guestmount.pod:62
19508 #, no-wrap
19509 msgid ""
19510 " virt-filesystems MyGuest\n"
19511 "\n"
19512 msgstr ""
19513
19514 #. type: textblock
19515 #: ../fuse/guestmount.pod:64
19516 msgid ""
19517 "If you want to trace the libguestfs calls but without excessive debugging "
19518 "information, we recommend:"
19519 msgstr ""
19520
19521 #. type: verbatim
19522 #: ../fuse/guestmount.pod:67
19523 #, no-wrap
19524 msgid ""
19525 " guestmount [...] --trace /mnt\n"
19526 "\n"
19527 msgstr ""
19528
19529 #. type: textblock
19530 #: ../fuse/guestmount.pod:69
19531 msgid "If you want to debug the program, we recommend:"
19532 msgstr ""
19533
19534 #. type: verbatim
19535 #: ../fuse/guestmount.pod:71
19536 #, no-wrap
19537 msgid ""
19538 " guestmount [...] --trace --verbose /mnt\n"
19539 "\n"
19540 msgstr ""
19541
19542 #. type: =head1
19543 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
19544 #: ../resize/virt-resize.pod:544
19545 msgid "NOTES"
19546 msgstr ""
19547
19548 #. type: =head2
19549 #: ../fuse/guestmount.pod:75
19550 msgid "Other users cannot see the filesystem by default"
19551 msgstr ""
19552
19553 #. type: textblock
19554 #: ../fuse/guestmount.pod:77
19555 msgid ""
19556 "If you mount a filesystem as one user (eg. root), then other users will not "
19557 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
19558 "option when mounting:"
19559 msgstr ""
19560
19561 #. type: verbatim
19562 #: ../fuse/guestmount.pod:81
19563 #, no-wrap
19564 msgid ""
19565 " sudo guestmount [...] -o allow_other /mnt\n"
19566 "\n"
19567 msgstr ""
19568
19569 #. type: textblock
19570 #: ../fuse/guestmount.pod:91
19571 msgid "Add a block device or virtual machine image."
19572 msgstr ""
19573
19574 #. type: =item
19575 #: ../fuse/guestmount.pod:114
19576 msgid "B<--dir-cache-timeout N>"
19577 msgstr ""
19578
19579 #. type: textblock
19580 #: ../fuse/guestmount.pod:116
19581 msgid ""
19582 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
19583 "seconds.  The readdir cache [actually, there are several semi-independent "
19584 "caches] is populated after a readdir(2) call with the stat and extended "
19585 "attributes of the files in the directory, in anticipation that they will be "
19586 "requested soon after."
19587 msgstr ""
19588
19589 #. type: textblock
19590 #: ../fuse/guestmount.pod:122
19591 msgid ""
19592 "There is also a different attribute cache implemented by FUSE (see the FUSE "
19593 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
19594 "requests, only cache existing ones."
19595 msgstr ""
19596
19597 #. type: textblock
19598 #: ../fuse/guestmount.pod:142
19599 msgid ""
19600 "If you have untrusted raw-format guest disk images, you should use this "
19601 "option to specify the disk format.  This avoids a possible security problem "
19602 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
19603 "guestfs_add_drive_opts>."
19604 msgstr ""
19605
19606 #. type: =item
19607 #: ../fuse/guestmount.pod:147
19608 msgid "B<--fuse-help>"
19609 msgstr ""
19610
19611 #. type: textblock
19612 #: ../fuse/guestmount.pod:149
19613 msgid "Display help on special FUSE options (see I<-o> below)."
19614 msgstr ""
19615
19616 #. type: textblock
19617 #: ../fuse/guestmount.pod:153
19618 msgid "Display brief help and exit."
19619 msgstr ""
19620
19621 #. type: textblock
19622 #: ../fuse/guestmount.pod:177
19623 msgid ""
19624 "Mount the named partition or logical volume on the given mountpoint B<in the "
19625 "guest> (this has nothing to do with mountpoints in the host)."
19626 msgstr ""
19627
19628 #. type: textblock
19629 #: ../fuse/guestmount.pod:180
19630 msgid ""
19631 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
19632 "something on C</>."
19633 msgstr ""
19634
19635 #. type: textblock
19636 #: ../fuse/guestmount.pod:197
19637 msgid ""
19638 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
19639 "unmounted.  If you specify this option, then we don't attempt to sync the "
19640 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
19641 msgstr ""
19642
19643 #. type: =item
19644 #: ../fuse/guestmount.pod:202
19645 msgid "B<-o option>"
19646 msgstr ""
19647
19648 #. type: =item
19649 #: ../fuse/guestmount.pod:204
19650 msgid "B<--option option>"
19651 msgstr ""
19652
19653 #. type: textblock
19654 #: ../fuse/guestmount.pod:206
19655 msgid "Pass extra options to FUSE."
19656 msgstr ""
19657
19658 #. type: textblock
19659 #: ../fuse/guestmount.pod:208
19660 msgid ""
19661 "To get a list of all the extra options supported by FUSE, use the command "
19662 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
19663 "of them are a good idea."
19664 msgstr ""
19665
19666 #. type: verbatim
19667 #: ../fuse/guestmount.pod:212
19668 #, no-wrap
19669 msgid ""
19670 " guestmount --fuse-help\n"
19671 "\n"
19672 msgstr ""
19673
19674 #. type: textblock
19675 #: ../fuse/guestmount.pod:214
19676 msgid "Some potentially useful FUSE options:"
19677 msgstr ""
19678
19679 #. type: =item
19680 #: ../fuse/guestmount.pod:218
19681 msgid "B<-o allow_other>"
19682 msgstr ""
19683
19684 #. type: textblock
19685 #: ../fuse/guestmount.pod:220
19686 msgid "Allow other users to see the filesystem."
19687 msgstr ""
19688
19689 #. type: =item
19690 #: ../fuse/guestmount.pod:222
19691 msgid "B<-o attr_timeout=N>"
19692 msgstr ""
19693
19694 #. type: textblock
19695 #: ../fuse/guestmount.pod:224
19696 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
19697 msgstr ""
19698
19699 #. type: =item
19700 #: ../fuse/guestmount.pod:226
19701 msgid "B<-o kernel_cache>"
19702 msgstr ""
19703
19704 #. type: textblock
19705 #: ../fuse/guestmount.pod:228
19706 msgid ""
19707 "Allow the kernel to cache files (reduces the number of reads that have to go "
19708 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
19709 "afford the extra memory usage."
19710 msgstr ""
19711
19712 #. type: =item
19713 #: ../fuse/guestmount.pod:232
19714 msgid "B<-o uid=N> B<-o gid=N>"
19715 msgstr ""
19716
19717 #. type: textblock
19718 #: ../fuse/guestmount.pod:234
19719 msgid ""
19720 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
19721 "the chosen values."
19722 msgstr ""
19723
19724 #. type: textblock
19725 #: ../fuse/guestmount.pod:243
19726 msgid ""
19727 "Add devices and mount everything read-only.  Also disallow writes and make "
19728 "the disk appear read-only to FUSE."
19729 msgstr ""
19730
19731 #. type: textblock
19732 #: ../fuse/guestmount.pod:246
19733 msgid ""
19734 "This is highly recommended if you are not going to edit the guest disk.  If "
19735 "the guest is running and this option is I<not> supplied, then there is a "
19736 "strong risk of disk corruption in the guest.  We try to prevent this from "
19737 "happening, but it is not always possible."
19738 msgstr ""
19739
19740 #. type: textblock
19741 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
19742 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
19743 msgstr ""
19744
19745 #. type: textblock
19746 #: ../fuse/guestmount.pod:255
19747 msgid "Enable SELinux support for the guest."
19748 msgstr ""
19749
19750 #. type: textblock
19751 #: ../fuse/guestmount.pod:261
19752 msgid "Enable verbose messages from underlying libguestfs."
19753 msgstr ""
19754
19755 #. type: textblock
19756 #: ../fuse/guestmount.pod:267
19757 msgid "Display the program version and exit."
19758 msgstr ""
19759
19760 #. type: textblock
19761 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299
19762 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
19763 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
19764 msgstr ""
19765
19766 #. type: =item
19767 #: ../fuse/guestmount.pod:280
19768 msgid "B<--trace>"
19769 msgstr ""
19770
19771 #. type: textblock
19772 #: ../fuse/guestmount.pod:282
19773 msgid "Trace libguestfs calls and entry into each FUSE function."
19774 msgstr ""
19775
19776 #. type: textblock
19777 #: ../fuse/guestmount.pod:284
19778 msgid "This also stops the daemon from forking into the background."
19779 msgstr ""
19780
19781 #. type: textblock
19782 #: ../fuse/guestmount.pod:310
19783 msgid ""
19784 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
19785 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
19786 "net/>."
19787 msgstr ""
19788
19789 #. type: textblock
19790 #: ../fuse/guestmount.pod:325
19791 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
19792 msgstr ""
19793
19794 #. type: textblock
19795 #: ../inspector/virt-inspector.pod:5
19796 msgid ""
19797 "virt-inspector - Display operating system version and other information "
19798 "about a virtual machine"
19799 msgstr ""
19800
19801 #. type: verbatim
19802 #: ../inspector/virt-inspector.pod:9
19803 #, no-wrap
19804 msgid ""
19805 " virt-inspector [--options] -d domname\n"
19806 "\n"
19807 msgstr ""
19808
19809 #. type: verbatim
19810 #: ../inspector/virt-inspector.pod:11
19811 #, no-wrap
19812 msgid ""
19813 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
19814 "\n"
19815 msgstr ""
19816
19817 #. type: verbatim
19818 #: ../inspector/virt-inspector.pod:15
19819 #, no-wrap
19820 msgid ""
19821 " virt-inspector domname\n"
19822 "\n"
19823 msgstr ""
19824
19825 #. type: verbatim
19826 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
19827 #, no-wrap
19828 msgid ""
19829 " virt-inspector disk.img [disk.img ...]\n"
19830 "\n"
19831 msgstr ""
19832
19833 #. type: textblock
19834 #: ../inspector/virt-inspector.pod:21
19835 msgid ""
19836 "B<virt-inspector> examines a virtual machine or disk image and tries to "
19837 "determine the version of the operating system and other information about "
19838 "the virtual machine."
19839 msgstr ""
19840
19841 #. type: textblock
19842 #: ../inspector/virt-inspector.pod:25
19843 msgid "Virt-inspector produces XML output for feeding into other programs."
19844 msgstr ""
19845
19846 #. type: textblock
19847 #: ../inspector/virt-inspector.pod:27
19848 msgid ""
19849 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
19850 "the libvirt domain (see: C<virsh list --all>)."
19851 msgstr ""
19852
19853 #. type: textblock
19854 #: ../inspector/virt-inspector.pod:30
19855 msgid ""
19856 "You can also run virt-inspector directly on disk images from a single "
19857 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
19858 "has several block devices, in which case you should list several I<-a> "
19859 "options one after another, with the first corresponding to the guest's C</"
19860 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
19861 msgstr ""
19862
19863 #. type: textblock
19864 #: ../inspector/virt-inspector.pod:37
19865 msgid ""
19866 "You can also run virt-inspector on install disks, live CDs, bootable USB "
19867 "keys and similar."
19868 msgstr ""
19869
19870 #. type: textblock
19871 #: ../inspector/virt-inspector.pod:40
19872 msgid ""
19873 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
19874 "inspect several virtual machines, you have to run virt-inspector several "
19875 "times (for example, from a shell script for-loop)."
19876 msgstr ""
19877
19878 #. type: textblock
19879 #: ../inspector/virt-inspector.pod:45
19880 msgid ""
19881 "Because virt-inspector needs direct access to guest images, it won't "
19882 "normally work over remote libvirt connections."
19883 msgstr ""
19884
19885 #. type: textblock
19886 #: ../inspector/virt-inspector.pod:48
19887 msgid ""
19888 "All of the information available from virt-inspector is also available "
19889 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
19890 "The same information can also be fetched using guestfish or via libguestfs "
19891 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
19892 "WITH OTHER PROGRAMMING LANGUAGES>)."
19893 msgstr ""
19894
19895 #. type: textblock
19896 #: ../inspector/virt-inspector.pod:81
19897 msgid ""
19898 "Libvirt is only used if you specify a C<domname> on the command line.  If "
19899 "you specify guest block devices directly (I<-a>), then libvirt is not used "
19900 "at all."
19901 msgstr ""
19902
19903 #. type: textblock
19904 #: ../inspector/virt-inspector.pod:94
19905 msgid ""
19906 "When prompting for keys and passphrases, virt-inspector normally turns "
19907 "echoing off so you cannot see what you are typing.  If you are not worried "
19908 "about Tempest attacks and there is no one else in the room you can specify "
19909 "this flag to see what you are typing."
19910 msgstr ""
19911
19912 #. type: textblock
19913 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
19914 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
19915 #: ../tools/virt-win-reg.pl:144
19916 msgid ""
19917 "Specify the format of disk images given on the command line.  If this is "
19918 "omitted then the format is autodetected from the content of the disk image."
19919 msgstr ""
19920
19921 #. type: textblock
19922 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
19923 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
19924 #: ../tools/virt-win-reg.pl:148
19925 msgid ""
19926 "If disk images are requested from libvirt, then this program asks libvirt "
19927 "for this information.  In this case, the value of the format parameter is "
19928 "ignored."
19929 msgstr ""
19930
19931 #. type: textblock
19932 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
19933 #: ../resize/virt-resize.pod:406 ../tools/virt-list-filesystems.pl:101
19934 #: ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151
19935 #: ../tools/virt-win-reg.pl:152
19936 msgid ""
19937 "If working with untrusted raw-format guest disk images, you should ensure "
19938 "the format is always specified."
19939 msgstr ""
19940
19941 #. type: textblock
19942 #: ../inspector/virt-inspector.pod:139
19943 msgid "Previous versions of virt-inspector allowed you to write either:"
19944 msgstr ""
19945
19946 #. type: verbatim
19947 #: ../inspector/virt-inspector.pod:145
19948 #, no-wrap
19949 msgid ""
19950 " virt-inspector guestname\n"
19951 "\n"
19952 msgstr ""
19953
19954 #. type: =head1
19955 #: ../inspector/virt-inspector.pod:153
19956 msgid "XML FORMAT"
19957 msgstr ""
19958
19959 #. type: textblock
19960 #: ../inspector/virt-inspector.pod:155
19961 msgid ""
19962 "The virt-inspector XML is described precisely in a RELAX NG schema file "
19963 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
19964 "just an overview."
19965 msgstr ""
19966
19967 #. type: textblock
19968 #: ../inspector/virt-inspector.pod:159
19969 msgid ""
19970 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
19971 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
19972 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
19973 "which is vanishingly rare in real world VMs."
19974 msgstr ""
19975
19976 #. type: =head2
19977 #: ../inspector/virt-inspector.pod:164
19978 msgid "E<lt>operatingsystemE<gt>"
19979 msgstr ""
19980
19981 #. type: textblock
19982 #: ../inspector/virt-inspector.pod:166
19983 msgid ""
19984 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
19985 "describe the operating system, its architecture, the descriptive \"product "
19986 "name\" string, the type of OS and so on, as in this example:"
19987 msgstr ""
19988
19989 #. type: verbatim
19990 #: ../inspector/virt-inspector.pod:170
19991 #, no-wrap
19992 msgid ""
19993 " <operatingsystems>\n"
19994 "   <operatingsystem>\n"
19995 "     <root>/dev/sda2</root>\n"
19996 "     <name>windows</name>\n"
19997 "     <arch>i386</arch>\n"
19998 "     <distro>windows</distro>\n"
19999 "     <product_name>Windows 7 Enterprise</product_name>\n"
20000 "     <product_variant>Client</product_variant>\n"
20001 "     <major_version>6</major_version>\n"
20002 "     <minor_version>1</minor_version>\n"
20003 "     <windows_systemroot>/Windows</windows_systemroot>\n"
20004 "     <format>installed</format>\n"
20005 "\n"
20006 msgstr ""
20007
20008 #. type: textblock
20009 #: ../inspector/virt-inspector.pod:183
20010 msgid ""
20011 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
20012 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
20013 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
20014 "architecture.  The other fields are fairly self-explanatory, but because "
20015 "these fields are taken directly from the libguestfs inspection API you can "
20016 "find precise information from L<guestfs(3)/INSPECTION>."
20017 msgstr ""
20018
20019 #. type: textblock
20020 #: ../inspector/virt-inspector.pod:191
20021 msgid ""
20022 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
20023 "of view of libguestfs (block devices may have completely different names "
20024 "inside the VM itself)."
20025 msgstr ""
20026
20027 #. type: =head2
20028 #: ../inspector/virt-inspector.pod:195
20029 msgid "E<lt>mountpointsE<gt>"
20030 msgstr ""
20031
20032 #. type: textblock
20033 #: ../inspector/virt-inspector.pod:197
20034 msgid ""
20035 "Un*x-like guests typically have multiple filesystems which are mounted at "
20036 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
20037 "element which looks like this:"
20038 msgstr ""
20039
20040 #. type: verbatim
20041 #: ../inspector/virt-inspector.pod:201
20042 #, no-wrap
20043 msgid ""
20044 " <operatingsystems>\n"
20045 "   <operatingsystem>\n"
20046 "     ...\n"
20047 "     <mountpoints>\n"
20048 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
20049 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
20050 "     </mountpoints>\n"
20051 "\n"
20052 msgstr ""
20053
20054 #. type: textblock
20055 #: ../inspector/virt-inspector.pod:209
20056 msgid ""
20057 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
20058 "and may have completely different names inside the guest.  Only mountable "
20059 "filesystems appear in this list, not things like swap devices."
20060 msgstr ""
20061
20062 #. type: =head2
20063 #: ../inspector/virt-inspector.pod:214
20064 msgid "E<lt>filesystemsE<gt>"
20065 msgstr ""
20066
20067 #. type: textblock
20068 #: ../inspector/virt-inspector.pod:216
20069 msgid ""
20070 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
20071 "filesystems belonging to the guest, including swap and empty partitions.  "
20072 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
20073 "this OS or shared with this OS and other OSes)."
20074 msgstr ""
20075
20076 #. type: textblock
20077 #: ../inspector/virt-inspector.pod:222
20078 msgid "You might see something like this:"
20079 msgstr ""
20080
20081 #. type: verbatim
20082 #: ../inspector/virt-inspector.pod:224
20083 #, no-wrap
20084 msgid ""
20085 " <operatingsystems>\n"
20086 "   <operatingsystem>\n"
20087 "     ...\n"
20088 "     <filesystems>\n"
20089 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20090 "         <type>ext4</type>\n"
20091 "         <label>Fedora-13-x86_64</label>\n"
20092 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
20093 "       </filesystem>\n"
20094 "\n"
20095 msgstr ""
20096
20097 #. type: textblock
20098 #: ../inspector/virt-inspector.pod:234
20099 msgid ""
20100 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
20101 "the label, and the UUID."
20102 msgstr ""
20103
20104 #. type: =head2
20105 #: ../inspector/virt-inspector.pod:237
20106 msgid "E<lt>applicationsE<gt>"
20107 msgstr ""
20108
20109 #. type: textblock
20110 #: ../inspector/virt-inspector.pod:239
20111 msgid ""
20112 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
20113 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
20114 "machine."
20115 msgstr ""
20116
20117 #. type: textblock
20118 #: ../inspector/virt-inspector.pod:243
20119 msgid ""
20120 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
20121 "Typical values would be C<rpm> and C<deb>."
20122 msgstr ""
20123
20124 #. type: textblock
20125 #: ../inspector/virt-inspector.pod:246
20126 msgid ""
20127 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
20128 "Typical values include C<yum>, C<up2date> and C<apt>"
20129 msgstr ""
20130
20131 #. type: textblock
20132 #: ../inspector/virt-inspector.pod:249
20133 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
20134 msgstr ""
20135
20136 #. type: verbatim
20137 #: ../inspector/virt-inspector.pod:252
20138 #, no-wrap
20139 msgid ""
20140 " <operatingsystems>\n"
20141 "   <operatingsystem>\n"
20142 "     ...\n"
20143 "     <applications>\n"
20144 "       <application>\n"
20145 "         <name>coreutils</name>\n"
20146 "         <version>8.5</version>\n"
20147 "         <release>1</release>\n"
20148 "       </application>\n"
20149 "\n"
20150 msgstr ""
20151
20152 #. type: textblock
20153 #: ../inspector/virt-inspector.pod:262
20154 msgid ""
20155 "The version and release fields may not be available for some types guests.  "
20156 "Other fields are possible, see L<guestfs(3)/"
20157 "guestfs_inspect_list_applications>."
20158 msgstr ""
20159
20160 #. type: =head2
20161 #: ../inspector/virt-inspector.pod:266
20162 msgid "E<lt>drive_mappingsE<gt>"
20163 msgstr ""
20164
20165 #. type: textblock
20166 #: ../inspector/virt-inspector.pod:268
20167 msgid ""
20168 "For operating systems like Windows which use drive letters, virt-inspector "
20169 "is able to find out how drive letters map to filesystems."
20170 msgstr ""
20171
20172 #. type: verbatim
20173 #: ../inspector/virt-inspector.pod:272
20174 #, no-wrap
20175 msgid ""
20176 " <operatingsystems>\n"
20177 "   <operatingsystem>\n"
20178 "     ...\n"
20179 "     <drive_mappings>\n"
20180 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
20181 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
20182 "     </drive_mappings>\n"
20183 "\n"
20184 msgstr ""
20185
20186 #. type: textblock
20187 #: ../inspector/virt-inspector.pod:280
20188 msgid ""
20189 "In the example above, drive C maps to the filesystem on the second partition "
20190 "on the first disk, and drive E maps to the filesystem on the first partition "
20191 "on the second disk."
20192 msgstr ""
20193
20194 #. type: textblock
20195 #: ../inspector/virt-inspector.pod:284
20196 msgid ""
20197 "Note that this only covers permanent local filesystem mappings, not things "
20198 "like network shares.  Furthermore NTFS volume mount points may not be listed "
20199 "here."
20200 msgstr ""
20201
20202 #. type: =head2
20203 #: ../inspector/virt-inspector.pod:288
20204 msgid "E<lt>iconE<gt>"
20205 msgstr ""
20206
20207 #. type: textblock
20208 #: ../inspector/virt-inspector.pod:290
20209 msgid ""
20210 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
20211 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
20212 "very large and high quality."
20213 msgstr ""
20214
20215 #. type: verbatim
20216 #: ../inspector/virt-inspector.pod:294
20217 #, no-wrap
20218 msgid ""
20219 " <operatingsystems>\n"
20220 "   <operatingsystem>\n"
20221 "     ...\n"
20222 "     <icon>\n"
20223 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
20224 "       [... many lines of base64 data ...]\n"
20225 "     </icon>\n"
20226 "\n"
20227 msgstr ""
20228
20229 #. type: textblock
20230 #: ../inspector/virt-inspector.pod:302
20231 msgid ""
20232 "To display the icon, you have to extract it and convert the base64 data back "
20233 "to a binary file.  Use an XPath query or simply an editor to extract the "
20234 "data, then use the coreutils L<base64(1)> program to do the conversion back "
20235 "to a PNG file:"
20236 msgstr ""
20237
20238 #. type: verbatim
20239 #: ../inspector/virt-inspector.pod:307
20240 #, no-wrap
20241 msgid ""
20242 " base64 -i -d < icon.data > icon.png\n"
20243 "\n"
20244 msgstr ""
20245
20246 #. type: =head2
20247 #: ../inspector/virt-inspector.pod:309
20248 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
20249 msgstr ""
20250
20251 #. type: textblock
20252 #: ../inspector/virt-inspector.pod:311
20253 msgid ""
20254 "Virt-inspector can detect some operating system installers on install disks, "
20255 "live CDs, bootable USB keys and more."
20256 msgstr ""
20257
20258 #. type: textblock
20259 #: ../inspector/virt-inspector.pod:314
20260 msgid ""
20261 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
20262 "fields may be present to indicate a live CD, network installer, or one part "
20263 "of a multipart CD.  For example:"
20264 msgstr ""
20265
20266 #. type: verbatim
20267 #: ../inspector/virt-inspector.pod:318
20268 #, no-wrap
20269 msgid ""
20270 " <operatingsystems>\n"
20271 "   <operatingsystem>\n"
20272 "     <root>/dev/sda</root>\n"
20273 "     <name>linux</name>\n"
20274 "     <arch>i386</arch>\n"
20275 "     <distro>ubuntu</distro>\n"
20276 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
20277 "     <major_version>10</major_version>\n"
20278 "     <minor_version>10</minor_version>\n"
20279 "     <format>installer</format>\n"
20280 "     <live/>\n"
20281 "\n"
20282 msgstr ""
20283
20284 #. type: =head1
20285 #: ../inspector/virt-inspector.pod:330
20286 msgid "USING XPATH"
20287 msgstr ""
20288
20289 #. type: textblock
20290 #: ../inspector/virt-inspector.pod:332
20291 msgid ""
20292 "You can use the XPath query language to select parts of the XML.  We "
20293 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
20294 msgstr ""
20295
20296 #. type: verbatim
20297 #: ../inspector/virt-inspector.pod:338
20298 #, no-wrap
20299 msgid ""
20300 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
20301 " <filesystems>\n"
20302 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20303 "        <type>ext4</type>\n"
20304 " [...]\n"
20305 "\n"
20306 msgstr ""
20307
20308 #. type: verbatim
20309 #: ../inspector/virt-inspector.pod:344
20310 #, no-wrap
20311 msgid ""
20312 " $ virt-inspector -d Guest | \\\n"
20313 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
20314 " ext4\n"
20315 "\n"
20316 msgstr ""
20317
20318 #. type: verbatim
20319 #: ../inspector/virt-inspector.pod:348
20320 #, no-wrap
20321 msgid ""
20322 " $ virt-inspector -d Guest | \\\n"
20323 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
20324 " [displays the guest icon, if there is one]\n"
20325 "\n"
20326 msgstr ""
20327
20328 #. type: =head1
20329 #: ../inspector/virt-inspector.pod:359
20330 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
20331 msgstr ""
20332
20333 #. type: textblock
20334 #: ../inspector/virt-inspector.pod:361
20335 msgid ""
20336 "Early versions of libguestfs shipped with a different virt-inspector program "
20337 "written in Perl (the current version is written in C).  The XML output of "
20338 "the Perl virt-inspector was different and it could also output in other "
20339 "formats like text."
20340 msgstr ""
20341
20342 #. type: textblock
20343 #: ../inspector/virt-inspector.pod:366
20344 msgid ""
20345 "The old virt-inspector is no longer supported or shipped with libguestfs."
20346 msgstr ""
20347
20348 #. type: textblock
20349 #: ../inspector/virt-inspector.pod:369
20350 msgid ""
20351 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
20352 "versions of virt-inspector with different names:"
20353 msgstr ""
20354
20355 #. type: verbatim
20356 #: ../inspector/virt-inspector.pod:372
20357 #, no-wrap
20358 msgid ""
20359 " virt-inspector     Old Perl version.\n"
20360 " virt-inspector2    New C version.\n"
20361 "\n"
20362 msgstr ""
20363
20364 #. type: textblock
20365 #: ../inspector/virt-inspector.pod:382
20366 msgid ""
20367 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
20368 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
20369 msgstr ""
20370
20371 #. type: textblock
20372 #: ../inspector/virt-inspector.pod:399
20373 msgid "Matthew Booth L<mbooth@redhat.com>"
20374 msgstr ""
20375
20376 #. type: textblock
20377 #: ../java/examples/guestfs-java.pod:5
20378 msgid "guestfs-java - How to use libguestfs from Java"
20379 msgstr ""
20380
20381 #. type: verbatim
20382 #: ../java/examples/guestfs-java.pod:9
20383 #, no-wrap
20384 msgid ""
20385 " import com.redhat.et.libguestfs.*;\n"
20386 " \n"
20387 msgstr ""
20388
20389 #. type: verbatim
20390 #: ../java/examples/guestfs-java.pod:11
20391 #, no-wrap
20392 msgid ""
20393 " GuestFS g = new GuestFS ();\n"
20394 " g.add_drive_opts (\"disk.img\", null);\n"
20395 " g.launch ();\n"
20396 "\n"
20397 msgstr ""
20398
20399 #. type: textblock
20400 #: ../java/examples/guestfs-java.pod:17
20401 msgid ""
20402 "This manual page documents how to call libguestfs from the Java programming "
20403 "language.  This page just documents the differences from the C API and gives "
20404 "some examples.  If you are not familiar with using libguestfs, you also need "
20405 "to read L<guestfs(3)>."
20406 msgstr ""
20407
20408 #. type: =head2
20409 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
20410 msgid "CLOSING THE HANDLE"
20411 msgstr ""
20412
20413 #. type: textblock
20414 #: ../java/examples/guestfs-java.pod:24
20415 msgid ""
20416 "The handle is closed when it is reaped by the garbage collector.  Because "
20417 "libguestfs handles include a lot of state, it is also possible to close (and "
20418 "hence free) them explicitly by calling the C<close> method."
20419 msgstr ""
20420
20421 #. type: =head2
20422 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
20423 #: ../python/examples/guestfs-python.pod:21
20424 #: ../ruby/examples/guestfs-ruby.pod:22
20425 msgid "EXCEPTIONS"
20426 msgstr ""
20427
20428 #. type: textblock
20429 #: ../java/examples/guestfs-java.pod:31
20430 msgid ""
20431 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
20432 "exception.  This has a single parameter which is the error message (a "
20433 "C<String>)."
20434 msgstr ""
20435
20436 #. type: textblock
20437 #: ../java/examples/guestfs-java.pod:35
20438 msgid "Calling any method on a closed handle raises the same exception."
20439 msgstr ""
20440
20441 #. type: textblock
20442 #: ../java/examples/guestfs-java.pod:47
20443 msgid ""
20444 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
20445 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
20446 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
20447 msgstr ""
20448
20449 #. type: textblock
20450 #: ../ocaml/examples/guestfs-ocaml.pod:5
20451 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
20452 msgstr ""
20453
20454 #. type: textblock
20455 #: ../ocaml/examples/guestfs-ocaml.pod:9
20456 msgid "Module style:"
20457 msgstr ""
20458
20459 #. type: verbatim
20460 #: ../ocaml/examples/guestfs-ocaml.pod:11
20461 #, no-wrap
20462 msgid ""
20463 " let g = Guestfs.create () in\n"
20464 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
20465 " Guestfs.launch g;\n"
20466 "\n"
20467 msgstr ""
20468
20469 #. type: textblock
20470 #: ../ocaml/examples/guestfs-ocaml.pod:15
20471 msgid "Object-oriented style:"
20472 msgstr ""
20473
20474 #. type: verbatim
20475 #: ../ocaml/examples/guestfs-ocaml.pod:17
20476 #, no-wrap
20477 msgid ""
20478 " let g = new Guestfs.guestfs () in\n"
20479 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
20480 " g#launch ();\n"
20481 "\n"
20482 msgstr ""
20483
20484 #. type: verbatim
20485 #: ../ocaml/examples/guestfs-ocaml.pod:21
20486 #, no-wrap
20487 msgid ""
20488 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
20489 "or:\n"
20490 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
20491 "\n"
20492 msgstr ""
20493
20494 #. type: textblock
20495 #: ../ocaml/examples/guestfs-ocaml.pod:27
20496 msgid ""
20497 "This manual page documents how to call libguestfs from the OCaml programming "
20498 "language.  This page just documents the differences from the C API and gives "
20499 "some examples.  If you are not familiar with using libguestfs, you also need "
20500 "to read L<guestfs(3)>."
20501 msgstr ""
20502
20503 #. type: =head2
20504 #: ../ocaml/examples/guestfs-ocaml.pod:32
20505 msgid "PROGRAMMING STYLES"
20506 msgstr ""
20507
20508 #. type: textblock
20509 #: ../ocaml/examples/guestfs-ocaml.pod:34
20510 msgid ""
20511 "There are two different programming styles supported by the OCaml bindings.  "
20512 "You can use a module style, with each C function mapped to an OCaml function:"
20513 msgstr ""
20514
20515 #. type: verbatim
20516 #: ../ocaml/examples/guestfs-ocaml.pod:38
20517 #, no-wrap
20518 msgid ""
20519 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
20520 "\n"
20521 msgstr ""
20522
20523 #. type: textblock
20524 #: ../ocaml/examples/guestfs-ocaml.pod:40
20525 msgid "becomes:"
20526 msgstr ""
20527
20528 #. type: verbatim
20529 #: ../ocaml/examples/guestfs-ocaml.pod:42
20530 #, no-wrap
20531 msgid ""
20532 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
20533 "\n"
20534 msgstr ""
20535
20536 #. type: textblock
20537 #: ../ocaml/examples/guestfs-ocaml.pod:44
20538 msgid ""
20539 "Alternately you can use an object-oriented style, calling methods on the "
20540 "class C<Guestfs.guestfs>:"
20541 msgstr ""
20542
20543 #. type: verbatim
20544 #: ../ocaml/examples/guestfs-ocaml.pod:47
20545 #, no-wrap
20546 msgid ""
20547 " method set_verbose : bool -> unit\n"
20548 "\n"
20549 msgstr ""
20550
20551 #. type: textblock
20552 #: ../ocaml/examples/guestfs-ocaml.pod:49
20553 msgid ""
20554 "The object-oriented style is usually briefer, and the minor performance "
20555 "penalty isn't noticable in the general overhead of performing libguestfs "
20556 "functions."
20557 msgstr ""
20558
20559 #. type: textblock
20560 #: ../ocaml/examples/guestfs-ocaml.pod:55
20561 msgid ""
20562 "The handle is closed when it is reaped by the garbage collector.  Because "
20563 "libguestfs handles include a lot of state, it is also possible to close (and "
20564 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
20565 "method."
20566 msgstr ""
20567
20568 #. type: textblock
20569 #: ../ocaml/examples/guestfs-ocaml.pod:62
20570 msgid ""
20571 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
20572 "exception.  This has a single parameter which is the error message (a "
20573 "string)."
20574 msgstr ""
20575
20576 #. type: textblock
20577 #: ../ocaml/examples/guestfs-ocaml.pod:66
20578 msgid ""
20579 "Calling any function/method on a closed handle raises C<Guestfs."
20580 "Handle_closed>.  The single parameter is the name of the function that you "
20581 "called."
20582 msgstr ""
20583
20584 #. type: textblock
20585 #: ../ocaml/examples/guestfs-ocaml.pod:80
20586 msgid ""
20587 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
20588 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
20589 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
20590 msgstr ""
20591
20592 #. type: textblock
20593 #: ../perl/examples/guestfs-perl.pod:5
20594 msgid "guestfs-perl - How to use libguestfs from Perl"
20595 msgstr ""
20596
20597 #. type: verbatim
20598 #: ../perl/examples/guestfs-perl.pod:9
20599 #, no-wrap
20600 msgid ""
20601 " use Sys::Guestfs;\n"
20602 " \n"
20603 msgstr ""
20604
20605 #. type: verbatim
20606 #: ../perl/examples/guestfs-perl.pod:11
20607 #, no-wrap
20608 msgid ""
20609 " my $h = Sys::Guestfs->new ();\n"
20610 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
20611 " $h->launch ();\n"
20612 " $h->mount_options ('', '/dev/sda1', '/');\n"
20613 " $h->touch ('/hello');\n"
20614 " $h->sync ();\n"
20615 "\n"
20616 msgstr ""
20617
20618 #. type: textblock
20619 #: ../perl/examples/guestfs-perl.pod:20
20620 msgid ""
20621 "This manual page documents how to call libguestfs from the Perl programming "
20622 "language.  This page just documents the differences from the C API and gives "
20623 "some examples.  If you are not familiar with using libguestfs, you also need "
20624 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
20625 msgstr ""
20626
20627 #. type: =head2
20628 #: ../perl/examples/guestfs-perl.pod:26
20629 msgid "ERRORS"
20630 msgstr ""
20631
20632 #. type: textblock
20633 #: ../perl/examples/guestfs-perl.pod:28
20634 msgid ""
20635 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
20636 ">)."
20637 msgstr ""
20638
20639 #. type: textblock
20640 #: ../perl/examples/guestfs-perl.pod:41
20641 msgid ""
20642 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
20643 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
20644 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
20645 msgstr ""
20646
20647 #. type: textblock
20648 #: ../python/examples/guestfs-python.pod:5
20649 msgid "guestfs-python - How to use libguestfs from Python"
20650 msgstr ""
20651
20652 #. type: verbatim
20653 #: ../python/examples/guestfs-python.pod:9
20654 #, no-wrap
20655 msgid ""
20656 " import guestfs\n"
20657 " g = guestfs.GuestFS ()\n"
20658 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
20659 " g.launch\n"
20660 "\n"
20661 msgstr ""
20662
20663 #. type: textblock
20664 #: ../python/examples/guestfs-python.pod:16
20665 msgid ""
20666 "This manual page documents how to call libguestfs from the Python "
20667 "programming language.  This page just documents the differences from the C "
20668 "API and gives some examples.  If you are not familiar with using libguestfs, "
20669 "you also need to read L<guestfs(3)>."
20670 msgstr ""
20671
20672 #. type: textblock
20673 #: ../python/examples/guestfs-python.pod:23
20674 msgid ""
20675 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
20676 "single string argument which is the error message."
20677 msgstr ""
20678
20679 #. type: =head2
20680 #: ../python/examples/guestfs-python.pod:26
20681 msgid "MORE DOCUMENTATION"
20682 msgstr ""
20683
20684 #. type: textblock
20685 #: ../python/examples/guestfs-python.pod:28
20686 msgid "Type:"
20687 msgstr ""
20688
20689 #. type: verbatim
20690 #: ../python/examples/guestfs-python.pod:30
20691 #, no-wrap
20692 msgid ""
20693 " $ python\n"
20694 " >>> import guestfs\n"
20695 " >>> help (guestfs)\n"
20696 "\n"
20697 msgstr ""
20698
20699 #. type: textblock
20700 #: ../python/examples/guestfs-python.pod:44
20701 msgid ""
20702 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
20703 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
20704 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
20705 msgstr ""
20706
20707 #. type: textblock
20708 #: ../rescue/virt-rescue.pod:5
20709 msgid "virt-rescue - Run a rescue shell on a virtual machine"
20710 msgstr ""
20711
20712 #. type: verbatim
20713 #: ../rescue/virt-rescue.pod:9
20714 #, no-wrap
20715 msgid ""
20716 " virt-rescue [--options] -d domname\n"
20717 "\n"
20718 msgstr ""
20719
20720 #. type: verbatim
20721 #: ../rescue/virt-rescue.pod:11
20722 #, no-wrap
20723 msgid ""
20724 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
20725 "\n"
20726 msgstr ""
20727
20728 #. type: verbatim
20729 #: ../rescue/virt-rescue.pod:15
20730 #, no-wrap
20731 msgid ""
20732 " virt-rescue [--options] domname\n"
20733 "\n"
20734 msgstr ""
20735
20736 #. type: verbatim
20737 #: ../rescue/virt-rescue.pod:17
20738 #, no-wrap
20739 msgid ""
20740 " virt-rescue [--options] disk.img [disk.img ...]\n"
20741 "\n"
20742 msgstr ""
20743
20744 #. type: textblock
20745 #: ../rescue/virt-rescue.pod:21
20746 msgid ""
20747 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
20748 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
20749 "you from doing this, but doesn't catch all cases."
20750 msgstr ""
20751
20752 #. type: textblock
20753 #: ../rescue/virt-rescue.pod:25
20754 msgid ""
20755 "However if you use the I<--ro> (read only) option, then you can attach a "
20756 "shell to a live virtual machine.  The results might be strange or "
20757 "inconsistent at times but you won't get disk corruption."
20758 msgstr ""
20759
20760 #. type: textblock
20761 #: ../rescue/virt-rescue.pod:31
20762 msgid ""
20763 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
20764 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
20765 "recovery tools which you can use to examine or rescue a virtual machine or "
20766 "disk image."
20767 msgstr ""
20768
20769 #. type: textblock
20770 #: ../rescue/virt-rescue.pod:36
20771 msgid ""
20772 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
20773 "on disk image(s):"
20774 msgstr ""
20775
20776 #. type: verbatim
20777 #: ../rescue/virt-rescue.pod:39
20778 #, no-wrap
20779 msgid ""
20780 " virt-rescue -d GuestName\n"
20781 "\n"
20782 msgstr ""
20783
20784 #. type: verbatim
20785 #: ../rescue/virt-rescue.pod:41
20786 #, no-wrap
20787 msgid ""
20788 " virt-rescue --ro -a /path/to/disk.img\n"
20789 "\n"
20790 msgstr ""
20791
20792 #. type: verbatim
20793 #: ../rescue/virt-rescue.pod:43
20794 #, no-wrap
20795 msgid ""
20796 " virt-rescue -a /dev/sdc\n"
20797 "\n"
20798 msgstr ""
20799
20800 #. type: textblock
20801 #: ../rescue/virt-rescue.pod:45
20802 msgid "For live VMs you I<must> use the --ro option."
20803 msgstr ""
20804
20805 #. type: textblock
20806 #: ../rescue/virt-rescue.pod:47
20807 msgid ""
20808 "When you run virt-rescue on a virtual machine or disk image, you are placed "
20809 "in an interactive bash shell where you can use many ordinary Linux "
20810 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
20811 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
20812 "is an empty directory called C</sysroot> where you can mount filesystems."
20813 msgstr ""
20814
20815 #. type: textblock
20816 #: ../rescue/virt-rescue.pod:54
20817 msgid ""
20818 "In the example below, we list logical volumes, then choose one to mount "
20819 "under C</sysroot>:"
20820 msgstr ""
20821
20822 #. type: verbatim
20823 #: ../rescue/virt-rescue.pod:57
20824 #, no-wrap
20825 msgid ""
20826 " ><rescue> lvs\n"
20827 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
20828 " lv_root vg_f11x64 -wi-a-   8.83G\n"
20829 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
20830 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
20831 " ><rescue> ls /sysroot\n"
20832 "\n"
20833 msgstr ""
20834
20835 #. type: textblock
20836 #: ../rescue/virt-rescue.pod:64
20837 msgid ""
20838 "If you don't know what filesystems are available on the virtual machine then "
20839 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
20840 msgstr ""
20841
20842 #. type: textblock
20843 #: ../rescue/virt-rescue.pod:70
20844 msgid ""
20845 "Virt-rescue can be used on I<any> disk image file or device, not just a "
20846 "virtual machine.  For example you can use it on a blank file if you want to "
20847 "partition that file (although we would recommend using L<guestfish(1)> "
20848 "instead as it is more suitable for this purpose).  You can even use virt-"
20849 "rescue on things like SD cards."
20850 msgstr ""
20851
20852 #. type: textblock
20853 #: ../rescue/virt-rescue.pod:76
20854 msgid ""
20855 "Virt-rescue does not require root.  You only need to run it as root if you "
20856 "need root to open the disk image."
20857 msgstr ""
20858
20859 #. type: textblock
20860 #: ../rescue/virt-rescue.pod:79
20861 msgid ""
20862 "This tool is just designed for quick interactive hacking on a virtual "
20863 "machine.  For more structured access to a virtual machine disk image, you "
20864 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
20865 "make scripted changes to guests, use L<guestfish(1)>."
20866 msgstr ""
20867
20868 #. type: =item
20869 #: ../rescue/virt-rescue.pod:103
20870 msgid "B<--append kernelopts>"
20871 msgstr ""
20872
20873 #. type: textblock
20874 #: ../rescue/virt-rescue.pod:105
20875 msgid "Pass additional options to the rescue kernel."
20876 msgstr ""
20877
20878 #. type: verbatim
20879 #: ../rescue/virt-rescue.pod:135
20880 #, no-wrap
20881 msgid ""
20882 " virt-rescue --format=raw -a disk.img\n"
20883 "\n"
20884 msgstr ""
20885
20886 #. type: verbatim
20887 #: ../rescue/virt-rescue.pod:139
20888 #, no-wrap
20889 msgid ""
20890 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
20891 "\n"
20892 msgstr ""
20893
20894 #. type: =item
20895 #: ../rescue/virt-rescue.pod:148
20896 msgid "B<-m MB>"
20897 msgstr ""
20898
20899 #. type: =item
20900 #: ../rescue/virt-rescue.pod:150
20901 msgid "B<--memsize MB>"
20902 msgstr ""
20903
20904 #. type: textblock
20905 #: ../rescue/virt-rescue.pod:152
20906 msgid ""
20907 "Change the amount of memory allocated to the rescue system.  The default is "
20908 "set by libguestfs and is small but adequate for running system tools.  The "
20909 "occasional program might need more memory.  The parameter is specified in "
20910 "megabytes."
20911 msgstr ""
20912
20913 #. type: =item
20914 #: ../rescue/virt-rescue.pod:157
20915 msgid "B<--network>"
20916 msgstr ""
20917
20918 #. type: textblock
20919 #: ../rescue/virt-rescue.pod:159
20920 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
20921 msgstr ""
20922
20923 #. type: textblock
20924 #: ../rescue/virt-rescue.pod:165
20925 msgid "Open the image read-only."
20926 msgstr ""
20927
20928 #. type: textblock
20929 #: ../rescue/virt-rescue.pod:175
20930 msgid ""
20931 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
20932 "SELINUX> before using this option."
20933 msgstr ""
20934
20935 #. type: =item
20936 #: ../rescue/virt-rescue.pod:178
20937 msgid "B<--smp> N"
20938 msgstr ""
20939
20940 #. type: textblock
20941 #: ../rescue/virt-rescue.pod:180
20942 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
20943 msgstr ""
20944
20945 #. type: textblock
20946 #: ../rescue/virt-rescue.pod:198
20947 msgid ""
20948 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
20949 "are done read-write."
20950 msgstr ""
20951
20952 #. type: textblock
20953 #: ../rescue/virt-rescue.pod:211
20954 msgid "Previous versions of virt-rescue allowed you to write either:"
20955 msgstr ""
20956
20957 #. type: verbatim
20958 #: ../rescue/virt-rescue.pod:213
20959 #, no-wrap
20960 msgid ""
20961 " virt-rescue disk.img [disk.img ...]\n"
20962 "\n"
20963 msgstr ""
20964
20965 #. type: verbatim
20966 #: ../rescue/virt-rescue.pod:217
20967 #, no-wrap
20968 msgid ""
20969 " virt-rescue guestname\n"
20970 "\n"
20971 msgstr ""
20972
20973 #. type: =head1
20974 #: ../rescue/virt-rescue.pod:225
20975 msgid "NETWORK"
20976 msgstr ""
20977
20978 #. type: textblock
20979 #: ../rescue/virt-rescue.pod:227
20980 msgid ""
20981 "Adding the I<--network> option enables QEMU user networking in the rescue "
20982 "appliance.  There are some differences between user networking and ordinary "
20983 "networking:"
20984 msgstr ""
20985
20986 #. type: =item
20987 #: ../rescue/virt-rescue.pod:233
20988 msgid "ping does not work"
20989 msgstr ""
20990
20991 #. type: textblock
20992 #: ../rescue/virt-rescue.pod:235
20993 msgid ""
20994 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
20995 "send the ping packets, and because virt-rescue must be able to run as non-"
20996 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
20997 "The ping command will appear to resolve addresses but will not be able to "
20998 "send or receive any packets.  This does not mean that the network is not "
20999 "working."
21000 msgstr ""
21001
21002 #. type: =item
21003 #: ../rescue/virt-rescue.pod:242
21004 msgid "cannot receive connections"
21005 msgstr ""
21006
21007 #. type: textblock
21008 #: ../rescue/virt-rescue.pod:244
21009 msgid "QEMU user networking cannot receive incoming connections."
21010 msgstr ""
21011
21012 #. type: =item
21013 #: ../rescue/virt-rescue.pod:246
21014 msgid "making TCP connections"
21015 msgstr ""
21016
21017 #. type: textblock
21018 #: ../rescue/virt-rescue.pod:248
21019 msgid ""
21020 "The virt-rescue appliance needs to be small and so does not include many "
21021 "network tools.  In particular there is no L<telnet(1)> command.  You can "
21022 "make TCP connections from the shell using the magical C</dev/tcp/"
21023 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
21024 msgstr ""
21025
21026 #. type: verbatim
21027 #: ../rescue/virt-rescue.pod:253
21028 #, no-wrap
21029 msgid ""
21030 " exec 3<>/dev/tcp/redhat.com/80\n"
21031 " echo \"GET /\" >&3\n"
21032 " cat <&3\n"
21033 "\n"
21034 msgstr ""
21035
21036 #. type: textblock
21037 #: ../rescue/virt-rescue.pod:257
21038 msgid "See L<bash(1)> for more details."
21039 msgstr ""
21040
21041 #. type: textblock
21042 #: ../rescue/virt-rescue.pod:263
21043 msgid ""
21044 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
21045 "ENVIRONMENT VARIABLES> for the complete list."
21046 msgstr ""
21047
21048 #. type: textblock
21049 #: ../rescue/virt-rescue.pod:290
21050 msgid ""
21051 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
21052 "libguestfs.org/>."
21053 msgstr ""
21054
21055 #. type: textblock
21056 #: ../resize/virt-resize.pod:5
21057 msgid "virt-resize - Resize a virtual machine disk"
21058 msgstr ""
21059
21060 #. type: verbatim
21061 #: ../resize/virt-resize.pod:9
21062 #, no-wrap
21063 msgid ""
21064 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
21065 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
21066 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
21067 "\n"
21068 msgstr ""
21069
21070 #. type: textblock
21071 #: ../resize/virt-resize.pod:15
21072 msgid ""
21073 "Virt-resize is a tool which can resize a virtual machine disk, making it "
21074 "larger or smaller overall, and resizing or deleting any partitions contained "
21075 "within."
21076 msgstr ""
21077
21078 #. type: textblock
21079 #: ../resize/virt-resize.pod:19
21080 msgid ""
21081 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
21082 "not> be used on live virtual machines - for consistent results, shut the "
21083 "virtual machine down before resizing it."
21084 msgstr ""
21085
21086 #. type: textblock
21087 #: ../resize/virt-resize.pod:23
21088 msgid ""
21089 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
21090 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
21091 msgstr ""
21092
21093 #. type: =item
21094 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:520
21095 #: ../src/guestfs.pod:469 ../src/guestfs.pod:1287 ../src/guestfs.pod:1426
21096 #: ../src/guestfs.pod:2604
21097 msgid "1."
21098 msgstr ""
21099
21100 #. type: textblock
21101 #: ../resize/virt-resize.pod:33
21102 msgid ""
21103 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
21104 "fill the extra 5GB of space."
21105 msgstr ""
21106
21107 #. type: verbatim
21108 #: ../resize/virt-resize.pod:36
21109 #, no-wrap
21110 msgid ""
21111 " virt-filesystems --long -h --all -a olddisk\n"
21112 " \n"
21113 msgstr ""
21114
21115 #. type: verbatim
21116 #: ../resize/virt-resize.pod:38
21117 #, no-wrap
21118 msgid ""
21119 " truncate -r olddisk newdisk\n"
21120 " truncate -s +5G newdisk\n"
21121 " \n"
21122 msgstr ""
21123
21124 #. type: verbatim
21125 #: ../resize/virt-resize.pod:41
21126 #, no-wrap
21127 msgid ""
21128 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
21129 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
21130 "\n"
21131 msgstr ""
21132
21133 #. type: =item
21134 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:527
21135 #: ../src/guestfs.pod:475 ../src/guestfs.pod:1291 ../src/guestfs.pod:1430
21136 #: ../src/guestfs.pod:2629
21137 msgid "2."
21138 msgstr ""
21139
21140 #. type: textblock
21141 #: ../resize/virt-resize.pod:46
21142 msgid ""
21143 "As above, but make the /boot partition 200MB bigger, while giving the "
21144 "remaining space to /dev/sda2:"
21145 msgstr ""
21146
21147 #. type: verbatim
21148 #: ../resize/virt-resize.pod:49
21149 #, no-wrap
21150 msgid ""
21151 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
21152 "   olddisk newdisk\n"
21153 "\n"
21154 msgstr ""
21155
21156 #. type: =item
21157 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:533
21158 #: ../src/guestfs.pod:486 ../src/guestfs.pod:1436
21159 msgid "3."
21160 msgstr ""
21161
21162 #. type: textblock
21163 #: ../resize/virt-resize.pod:54
21164 msgid ""
21165 "As in the first example, but expand a logical volume as the final step.  "
21166 "This is what you would typically use for Linux guests that use LVM:"
21167 msgstr ""
21168
21169 #. type: verbatim
21170 #: ../resize/virt-resize.pod:58
21171 #, no-wrap
21172 msgid ""
21173 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
21174 "   olddisk newdisk\n"
21175 "\n"
21176 msgstr ""
21177
21178 #. type: =item
21179 #: ../resize/virt-resize.pod:61
21180 msgid "4."
21181 msgstr ""
21182
21183 #. type: textblock
21184 #: ../resize/virt-resize.pod:63
21185 msgid ""
21186 "As in the first example, but the output format will be qcow2 instead of a "
21187 "raw disk:"
21188 msgstr ""
21189
21190 #. type: verbatim
21191 #: ../resize/virt-resize.pod:66
21192 #, no-wrap
21193 msgid ""
21194 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
21195 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
21196 "\n"
21197 msgstr ""
21198
21199 #. type: =head1
21200 #: ../resize/virt-resize.pod:71
21201 msgid "DETAILED USAGE"
21202 msgstr ""
21203
21204 #. type: =head2
21205 #: ../resize/virt-resize.pod:73
21206 msgid "EXPANDING A VIRTUAL MACHINE DISK"
21207 msgstr ""
21208
21209 #. type: =item
21210 #: ../resize/virt-resize.pod:77
21211 msgid "1. Shut down the virtual machine"
21212 msgstr ""
21213
21214 #. type: =item
21215 #: ../resize/virt-resize.pod:79
21216 msgid "2. Locate input disk image"
21217 msgstr ""
21218
21219 #. type: textblock
21220 #: ../resize/virt-resize.pod:81
21221 msgid ""
21222 "Locate the input disk image (ie. the file or device on the host containing "
21223 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
21224 "dumpxml> like this to find the disk image name:"
21225 msgstr ""
21226
21227 #. type: verbatim
21228 #: ../resize/virt-resize.pod:85
21229 #, no-wrap
21230 msgid ""
21231 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
21232 " Found 1 nodes:\n"
21233 " -- NODE --\n"
21234 " <source dev=\"/dev/vg/lv_guest\" />\n"
21235 "\n"
21236 msgstr ""
21237
21238 #. type: =item
21239 #: ../resize/virt-resize.pod:90
21240 msgid "3. Look at current sizing"
21241 msgstr ""
21242
21243 #. type: textblock
21244 #: ../resize/virt-resize.pod:92
21245 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
21246 msgstr ""
21247
21248 #. type: verbatim
21249 #: ../resize/virt-resize.pod:95
21250 #, no-wrap
21251 msgid ""
21252 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
21253 " Name       Type       Size  Parent\n"
21254 " /dev/sda1  partition  101M  /dev/sda\n"
21255 " /dev/sda2  partition  7.9G  /dev/sda\n"
21256 " /dev/sda   device     8.0G  -\n"
21257 "\n"
21258 msgstr ""
21259
21260 #. type: textblock
21261 #: ../resize/virt-resize.pod:101
21262 msgid ""
21263 "(This example is a virtual machine with an 8 GB disk which we would like to "
21264 "expand up to 10 GB)."
21265 msgstr ""
21266
21267 #. type: =item
21268 #: ../resize/virt-resize.pod:104
21269 msgid "4. Create output disk"
21270 msgstr ""
21271
21272 #. type: textblock
21273 #: ../resize/virt-resize.pod:106
21274 msgid ""
21275 "Virt-resize cannot do in-place disk modifications.  You have to have space "
21276 "to store the resized output disk."
21277 msgstr ""
21278
21279 #. type: textblock
21280 #: ../resize/virt-resize.pod:109
21281 msgid ""
21282 "To store the resized disk image in a file, create a file of a suitable size:"
21283 msgstr ""
21284
21285 #. type: verbatim
21286 #: ../resize/virt-resize.pod:112
21287 #, no-wrap
21288 msgid ""
21289 " # rm -f outdisk\n"
21290 " # truncate -s 10G outdisk\n"
21291 "\n"
21292 msgstr ""
21293
21294 #. type: textblock
21295 #: ../resize/virt-resize.pod:115
21296 msgid "Or use L<lvcreate(1)> to create a logical volume:"
21297 msgstr ""
21298
21299 #. type: verbatim
21300 #: ../resize/virt-resize.pod:117
21301 #, no-wrap
21302 msgid ""
21303 " # lvcreate -L 10G -n lv_name vg_name\n"
21304 "\n"
21305 msgstr ""
21306
21307 #. type: textblock
21308 #: ../resize/virt-resize.pod:119
21309 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
21310 msgstr ""
21311
21312 #. type: verbatim
21313 #: ../resize/virt-resize.pod:121
21314 #, no-wrap
21315 msgid ""
21316 " # virsh pool-list\n"
21317 " # virsh vol-create-as poolname newvol 10G\n"
21318 "\n"
21319 msgstr ""
21320
21321 #. type: =item
21322 #: ../resize/virt-resize.pod:124
21323 msgid "5. Resize"
21324 msgstr ""
21325
21326 #. type: textblock
21327 #: ../resize/virt-resize.pod:126
21328 msgid ""
21329 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
21330 "file) and the output disk.  The output disk is the one created in the "
21331 "previous step."
21332 msgstr ""
21333
21334 #. type: verbatim
21335 #: ../resize/virt-resize.pod:130
21336 #, no-wrap
21337 msgid ""
21338 " # virt-resize indisk outdisk\n"
21339 "\n"
21340 msgstr ""
21341
21342 #. type: textblock
21343 #: ../resize/virt-resize.pod:132
21344 msgid ""
21345 "This command just copies disk image C<indisk> to disk image C<outdisk> "
21346 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
21347 "larger, then an extra, empty partition is created at the end of the disk "
21348 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
21349 "error."
21350 msgstr ""
21351
21352 #. type: textblock
21353 #: ../resize/virt-resize.pod:138
21354 msgid ""
21355 "More realistically you'd want to expand existing partitions in the disk "
21356 "image by passing extra options (for the full list see the L</OPTIONS> "
21357 "section below)."
21358 msgstr ""
21359
21360 #. type: textblock
21361 #: ../resize/virt-resize.pod:142
21362 msgid ""
21363 "L</--expand> is the most useful option.  It expands the named partition "
21364 "within the disk to fill any extra space:"
21365 msgstr ""
21366
21367 #. type: verbatim
21368 #: ../resize/virt-resize.pod:145
21369 #, no-wrap
21370 msgid ""
21371 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
21372 "\n"
21373 msgstr ""
21374
21375 #. type: textblock
21376 #: ../resize/virt-resize.pod:147
21377 msgid ""
21378 "(In this case, an extra partition is I<not> created at the end of the disk, "
21379 "because there will be no unused space)."
21380 msgstr ""
21381
21382 #. type: textblock
21383 #: ../resize/virt-resize.pod:150
21384 msgid ""
21385 "L</--resize> is the other commonly used option.  The following would "
21386 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
21387 "rest of the available space:"
21388 msgstr ""
21389
21390 #. type: verbatim
21391 #: ../resize/virt-resize.pod:154
21392 #, no-wrap
21393 msgid ""
21394 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
21395 "     indisk outdisk\n"
21396 "\n"
21397 msgstr ""
21398
21399 #. type: textblock
21400 #: ../resize/virt-resize.pod:157
21401 msgid ""
21402 "If the expanded partition in the image contains a filesystem or LVM PV, then "
21403 "if virt-resize knows how, it will resize the contents, the equivalent of "
21404 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
21405 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
21406 "filesystems, so you would have to online resize them after booting the guest."
21407 msgstr ""
21408
21409 #. type: textblock
21410 #: ../resize/virt-resize.pod:164
21411 msgid "Other options are covered below."
21412 msgstr ""
21413
21414 #. type: =item
21415 #: ../resize/virt-resize.pod:166
21416 msgid "6. Test"
21417 msgstr ""
21418
21419 #. type: textblock
21420 #: ../resize/virt-resize.pod:168
21421 msgid "Thoroughly test the new disk image I<before> discarding the old one."
21422 msgstr ""
21423
21424 #. type: textblock
21425 #: ../resize/virt-resize.pod:170
21426 msgid "If you are using libvirt, edit the XML to point at the new disk:"
21427 msgstr ""
21428
21429 #. type: verbatim
21430 #: ../resize/virt-resize.pod:172
21431 #, no-wrap
21432 msgid ""
21433 " # virsh edit guestname\n"
21434 "\n"
21435 msgstr ""
21436
21437 #. type: textblock
21438 #: ../resize/virt-resize.pod:174
21439 msgid ""
21440 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
21441 "html#elementsDisks>"
21442 msgstr ""
21443
21444 #. type: textblock
21445 #: ../resize/virt-resize.pod:177
21446 msgid "Then start up the domain with the new, resized disk:"
21447 msgstr ""
21448
21449 #. type: verbatim
21450 #: ../resize/virt-resize.pod:179
21451 #, no-wrap
21452 msgid ""
21453 " # virsh start guestname\n"
21454 "\n"
21455 msgstr ""
21456
21457 #. type: textblock
21458 #: ../resize/virt-resize.pod:181
21459 msgid ""
21460 "and check that it still works.  See also the L</NOTES> section below for "
21461 "additional information."
21462 msgstr ""
21463
21464 #. type: =item
21465 #: ../resize/virt-resize.pod:184
21466 msgid "7. Resize LVs etc inside the guest"
21467 msgstr ""
21468
21469 #. type: textblock
21470 #: ../resize/virt-resize.pod:186
21471 msgid "(This can also be done offline using L<guestfish(1)>)"
21472 msgstr ""
21473
21474 #. type: textblock
21475 #: ../resize/virt-resize.pod:188
21476 msgid ""
21477 "Once the guest has booted you should see the new space available, at least "
21478 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
21479 "may need to resize LVs inside PVs, and also resize filesystem types that "
21480 "virt-resize does not know how to expand."
21481 msgstr ""
21482
21483 #. type: =head2
21484 #: ../resize/virt-resize.pod:195
21485 msgid "SHRINKING A VIRTUAL MACHINE DISK"
21486 msgstr ""
21487
21488 #. type: textblock
21489 #: ../resize/virt-resize.pod:197
21490 msgid ""
21491 "Shrinking is somewhat more complex than expanding, and only an overview is "
21492 "given here."
21493 msgstr ""
21494
21495 #. type: textblock
21496 #: ../resize/virt-resize.pod:200
21497 msgid ""
21498 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
21499 "filesystems).  The user has to shrink content before passing the disk image "
21500 "to virt-resize, and virt-resize will check that the content has been shrunk "
21501 "properly."
21502 msgstr ""
21503
21504 #. type: textblock
21505 #: ../resize/virt-resize.pod:205
21506 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
21507 msgstr ""
21508
21509 #. type: textblock
21510 #: ../resize/virt-resize.pod:207
21511 msgid ""
21512 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
21513 "steps 3 and 4 above to allocate a new disk image."
21514 msgstr ""
21515
21516 #. type: textblock
21517 #: ../resize/virt-resize.pod:210
21518 msgid ""
21519 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
21520 msgstr ""
21521
21522 #. type: =head2
21523 #: ../resize/virt-resize.pod:213
21524 msgid "IGNORING OR DELETING PARTITIONS"
21525 msgstr ""
21526
21527 #. type: textblock
21528 #: ../resize/virt-resize.pod:215
21529 msgid ""
21530 "virt-resize also gives a convenient way to ignore or delete partitions when "
21531 "copying from the input disk to the output disk.  Ignoring a partition speeds "
21532 "up the copy where you don't care about the existing contents of a "
21533 "partition.  Deleting a partition removes it completely, but note that it "
21534 "also renumbers any partitions after the one which is deleted, which can "
21535 "leave some guests unbootable."
21536 msgstr ""
21537
21538 #. type: =head2
21539 #: ../resize/virt-resize.pod:222
21540 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
21541 msgstr ""
21542
21543 #. type: textblock
21544 #: ../resize/virt-resize.pod:224
21545 msgid ""
21546 "If the input disk is in qcow2 format, then you may prefer that the output is "
21547 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
21548 "the fly.  The output format is simply determined by the format of the empty "
21549 "output container that you provide.  Thus to create qcow2 output, use:"
21550 msgstr ""
21551
21552 #. type: verbatim
21553 #: ../resize/virt-resize.pod:230
21554 #, no-wrap
21555 msgid ""
21556 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
21557 "\n"
21558 msgstr ""
21559
21560 #. type: textblock
21561 #: ../resize/virt-resize.pod:232
21562 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
21563 msgstr ""
21564
21565 #. type: textblock
21566 #: ../resize/virt-resize.pod:234
21567 msgid "Similarly, to get non-sparse raw output use:"
21568 msgstr ""
21569
21570 #. type: verbatim
21571 #: ../resize/virt-resize.pod:236
21572 #, no-wrap
21573 msgid ""
21574 " fallocate -l size outdisk\n"
21575 "\n"
21576 msgstr ""
21577
21578 #. type: textblock
21579 #: ../resize/virt-resize.pod:238
21580 msgid ""
21581 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
21582 "dev/zero of=outdisk bs=1M count=..>)"
21583 msgstr ""
21584
21585 #. type: textblock
21586 #: ../resize/virt-resize.pod:247
21587 msgid "Display help."
21588 msgstr ""
21589
21590 #. type: =item
21591 #: ../resize/virt-resize.pod:249
21592 msgid "B<-d>"
21593 msgstr ""
21594
21595 #. type: =item
21596 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
21597 #: ../tools/virt-win-reg.pl:120
21598 msgid "B<--debug>"
21599 msgstr ""
21600
21601 #. type: textblock
21602 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
21603 msgid "Enable debugging messages."
21604 msgstr ""
21605
21606 #. type: =item
21607 #: ../resize/virt-resize.pod:255
21608 msgid "B<--delete part>"
21609 msgstr ""
21610
21611 #. type: textblock
21612 #: ../resize/virt-resize.pod:257
21613 msgid ""
21614 "Delete the named partition.  It would be more accurate to describe this as "
21615 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
21616 "the original disk image is left intact."
21617 msgstr ""
21618
21619 #. type: textblock
21620 #: ../resize/virt-resize.pod:261
21621 msgid ""
21622 "Note that when you delete a partition, then anything contained in the "
21623 "partition is also deleted.  Furthermore, this causes any partitions that "
21624 "come after to be I<renumbered>, which can easily make your guest unbootable."
21625 msgstr ""
21626
21627 #. type: textblock
21628 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
21629 #: ../resize/virt-resize.pod:454
21630 msgid "You can give this option multiple times."
21631 msgstr ""
21632
21633 #. type: =item
21634 #: ../resize/virt-resize.pod:268
21635 msgid "B<--expand part>"
21636 msgstr ""
21637
21638 #. type: textblock
21639 #: ../resize/virt-resize.pod:270
21640 msgid ""
21641 "Expand the named partition so it uses up all extra space (space left over "
21642 "after any other resize changes that you request have been done)."
21643 msgstr ""
21644
21645 #. type: textblock
21646 #: ../resize/virt-resize.pod:273
21647 msgid ""
21648 "If virt-resize knows how, it will expand the direct content of the "
21649 "partition.  For example, if the partition is an LVM PV, it will expand the "
21650 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
21651 "content it doesn't know about alone."
21652 msgstr ""
21653
21654 #. type: textblock
21655 #: ../resize/virt-resize.pod:278
21656 msgid "Currently virt-resize can resize:"
21657 msgstr ""
21658
21659 #. type: textblock
21660 #: ../resize/virt-resize.pod:284
21661 msgid "ext2, ext3 and ext4 filesystems."
21662 msgstr ""
21663
21664 #. type: textblock
21665 #: ../resize/virt-resize.pod:288
21666 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
21667 msgstr ""
21668
21669 #. type: textblock
21670 #: ../resize/virt-resize.pod:290
21671 msgid ""
21672 "The filesystem must have been shut down consistently last time it was used.  "
21673 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
21674 "consistency check, so at the first boot after resizing Windows will check "
21675 "the disk."
21676 msgstr ""
21677
21678 #. type: textblock
21679 #: ../resize/virt-resize.pod:297
21680 msgid ""
21681 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
21682 "inside the PV, but see the I<--LV-expand> option.  The user could also "
21683 "resize LVs as desired after boot."
21684 msgstr ""
21685
21686 #. type: textblock
21687 #: ../resize/virt-resize.pod:303
21688 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
21689 msgstr ""
21690
21691 #. type: textblock
21692 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
21693 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
21694 msgstr ""
21695
21696 #. type: =item
21697 #: ../resize/virt-resize.pod:309 ../tools/virt-list-filesystems.pl:91
21698 #: ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141
21699 #: ../tools/virt-win-reg.pl:142
21700 msgid "B<--format> raw"
21701 msgstr ""
21702
21703 #. type: textblock
21704 #: ../resize/virt-resize.pod:311
21705 msgid ""
21706 "Specify the format of the input disk image.  If this flag is not given then "
21707 "it is auto-detected from the image itself."
21708 msgstr ""
21709
21710 #. type: textblock
21711 #: ../resize/virt-resize.pod:317
21712 msgid ""
21713 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
21714 "AND NON-SPARSE RAW FORMATS>."
21715 msgstr ""
21716
21717 #. type: =item
21718 #: ../resize/virt-resize.pod:320
21719 msgid "B<--ignore part>"
21720 msgstr ""
21721
21722 #. type: textblock
21723 #: ../resize/virt-resize.pod:322
21724 msgid ""
21725 "Ignore the named partition.  Effectively this means the partition is "
21726 "allocated on the destination disk, but the content is not copied across from "
21727 "the source disk.  The content of the partition will be blank (all zero "
21728 "bytes)."
21729 msgstr ""
21730
21731 #. type: =item
21732 #: ../resize/virt-resize.pod:329
21733 msgid "B<--LV-expand logvol>"
21734 msgstr ""
21735
21736 #. type: textblock
21737 #: ../resize/virt-resize.pod:331
21738 msgid ""
21739 "This takes the logical volume and, as a final step, expands it to fill all "
21740 "the space available in its volume group.  A typical usage, assuming a Linux "
21741 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
21742 "lv_root> would be:"
21743 msgstr ""
21744
21745 #. type: verbatim
21746 #: ../resize/virt-resize.pod:336
21747 #, no-wrap
21748 msgid ""
21749 " virt-resize indisk outdisk \\\n"
21750 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
21751 "\n"
21752 msgstr ""
21753
21754 #. type: textblock
21755 #: ../resize/virt-resize.pod:339
21756 msgid ""
21757 "This would first expand the partition (and PV), and then expand the root "
21758 "device to fill the extra space in the PV."
21759 msgstr ""
21760
21761 #. type: textblock
21762 #: ../resize/virt-resize.pod:342
21763 msgid ""
21764 "The contents of the LV are also resized if virt-resize knows how to do "
21765 "that.  You can stop virt-resize from trying to expand the content by using "
21766 "the option I<--no-expand-content>."
21767 msgstr ""
21768
21769 #. type: textblock
21770 #: ../resize/virt-resize.pod:346
21771 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
21772 msgstr ""
21773
21774 #. type: textblock
21775 #: ../resize/virt-resize.pod:348
21776 msgid ""
21777 "You can give this option multiple times, I<but> it doesn't make sense to do "
21778 "this unless the logical volumes you specify are all in different volume "
21779 "groups."
21780 msgstr ""
21781
21782 #. type: =item
21783 #: ../resize/virt-resize.pod:352
21784 msgid "B<--machine-readable>"
21785 msgstr ""
21786
21787 #. type: textblock
21788 #: ../resize/virt-resize.pod:354
21789 msgid ""
21790 "This option is used to make the output more machine friendly when being "
21791 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
21792 msgstr ""
21793
21794 #. type: =item
21795 #: ../resize/virt-resize.pod:360
21796 msgid "B<--dryrun>"
21797 msgstr ""
21798
21799 #. type: textblock
21800 #: ../resize/virt-resize.pod:362
21801 msgid "Print a summary of what would be done, but don't do anything."
21802 msgstr ""
21803
21804 #. type: =item
21805 #: ../resize/virt-resize.pod:364
21806 msgid "B<--no-copy-boot-loader>"
21807 msgstr ""
21808
21809 #. type: textblock
21810 #: ../resize/virt-resize.pod:366
21811 msgid ""
21812 "By default, virt-resize copies over some sectors at the start of the disk "
21813 "(up to the beginning of the first partition).  Commonly these sectors "
21814 "contain the Master Boot Record (MBR) and the boot loader, and are required "
21815 "in order for the guest to boot correctly."
21816 msgstr ""
21817
21818 #. type: textblock
21819 #: ../resize/virt-resize.pod:371
21820 msgid ""
21821 "If you specify this flag, then this initial copy is not done.  You may need "
21822 "to reinstall the boot loader in this case."
21823 msgstr ""
21824
21825 #. type: =item
21826 #: ../resize/virt-resize.pod:374
21827 msgid "B<--no-extra-partition>"
21828 msgstr ""
21829
21830 #. type: textblock
21831 #: ../resize/virt-resize.pod:376
21832 msgid ""
21833 "By default, virt-resize creates an extra partition if there is any extra, "
21834 "unused space after all resizing has happened.  Use this option to prevent "
21835 "the extra partition from being created.  If you do this then the extra space "
21836 "will be inaccessible until you run fdisk, parted, or some other partitioning "
21837 "tool in the guest."
21838 msgstr ""
21839
21840 #. type: textblock
21841 #: ../resize/virt-resize.pod:382
21842 msgid ""
21843 "Note that if the surplus space is smaller than 10 MB, no extra partition "
21844 "will be created."
21845 msgstr ""
21846
21847 #. type: =item
21848 #: ../resize/virt-resize.pod:385
21849 msgid "B<--no-expand-content>"
21850 msgstr ""
21851
21852 #. type: textblock
21853 #: ../resize/virt-resize.pod:387
21854 msgid ""
21855 "By default, virt-resize will try to expand the direct contents of "
21856 "partitions, if it knows how (see I<--expand> option above)."
21857 msgstr ""
21858
21859 #. type: textblock
21860 #: ../resize/virt-resize.pod:390
21861 msgid ""
21862 "If you give the I<--no-expand-content> option then virt-resize will not "
21863 "attempt this."
21864 msgstr ""
21865
21866 #. type: =item
21867 #: ../resize/virt-resize.pod:393
21868 msgid "B<--ntfsresize-force>"
21869 msgstr ""
21870
21871 #. type: textblock
21872 #: ../resize/virt-resize.pod:395
21873 msgid ""
21874 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
21875 "the NTFS disk is marked as needing a consistency check.  You have to use "
21876 "this option if you want to resize a Windows guest multiple times without "
21877 "booting into Windows between each resize."
21878 msgstr ""
21879
21880 #. type: =item
21881 #: ../resize/virt-resize.pod:401
21882 msgid "B<--output-format> raw"
21883 msgstr ""
21884
21885 #. type: textblock
21886 #: ../resize/virt-resize.pod:403
21887 msgid ""
21888 "Specify the format of the output disk image.  If this flag is not given then "
21889 "it is auto-detected from the image itself."
21890 msgstr ""
21891
21892 #. type: textblock
21893 #: ../resize/virt-resize.pod:409
21894 msgid ""
21895 "Note that this option I<does not create> the output format.  This option "
21896 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
21897 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
21898 "SPARSE RAW FORMATS>."
21899 msgstr ""
21900
21901 #. type: =item
21902 #: ../resize/virt-resize.pod:414
21903 msgid "B<-q>"
21904 msgstr ""
21905
21906 #. type: =item
21907 #: ../resize/virt-resize.pod:416
21908 msgid "B<--quiet>"
21909 msgstr ""
21910
21911 #. type: textblock
21912 #: ../resize/virt-resize.pod:418
21913 msgid "Don't print the summary."
21914 msgstr ""
21915
21916 #. type: =item
21917 #: ../resize/virt-resize.pod:420
21918 msgid "B<--resize part=size>"
21919 msgstr ""
21920
21921 #. type: textblock
21922 #: ../resize/virt-resize.pod:422
21923 msgid ""
21924 "Resize the named partition (expanding or shrinking it) so that it has the "
21925 "given size."
21926 msgstr ""
21927
21928 #. type: textblock
21929 #: ../resize/virt-resize.pod:425
21930 msgid ""
21931 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
21932 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
21933 "size; or as a relative number or percentage.  For example:"
21934 msgstr ""
21935
21936 #. type: verbatim
21937 #: ../resize/virt-resize.pod:431
21938 #, no-wrap
21939 msgid ""
21940 " --resize /dev/sda2=10G\n"
21941 "\n"
21942 msgstr ""
21943
21944 #. type: verbatim
21945 #: ../resize/virt-resize.pod:433
21946 #, no-wrap
21947 msgid ""
21948 " --resize /dev/sda4=90%\n"
21949 "\n"
21950 msgstr ""
21951
21952 #. type: verbatim
21953 #: ../resize/virt-resize.pod:435
21954 #, no-wrap
21955 msgid ""
21956 " --resize /dev/sda2=+1G\n"
21957 "\n"
21958 msgstr ""
21959
21960 #. type: verbatim
21961 #: ../resize/virt-resize.pod:437
21962 #, no-wrap
21963 msgid ""
21964 " --resize /dev/sda2=-200M\n"
21965 "\n"
21966 msgstr ""
21967
21968 #. type: verbatim
21969 #: ../resize/virt-resize.pod:439
21970 #, no-wrap
21971 msgid ""
21972 " --resize /dev/sda1=+128K\n"
21973 "\n"
21974 msgstr ""
21975
21976 #. type: verbatim
21977 #: ../resize/virt-resize.pod:441
21978 #, no-wrap
21979 msgid ""
21980 " --resize /dev/sda1=+10%\n"
21981 "\n"
21982 msgstr ""
21983
21984 #. type: verbatim
21985 #: ../resize/virt-resize.pod:443
21986 #, no-wrap
21987 msgid ""
21988 " --resize /dev/sda1=-10%\n"
21989 "\n"
21990 msgstr ""
21991
21992 #. type: textblock
21993 #: ../resize/virt-resize.pod:445
21994 msgid ""
21995 "You can increase the size of any partition.  Virt-resize will expand the "
21996 "direct content of the partition if it knows how (see I<--expand> below)."
21997 msgstr ""
21998
21999 #. type: textblock
22000 #: ../resize/virt-resize.pod:449
22001 msgid ""
22002 "You can only I<decrease> the size of partitions that contain filesystems or "
22003 "PVs which have already been shrunk.  Virt-resize will check this has been "
22004 "done before proceeding, or else will print an error (see also I<--resize-"
22005 "force>)."
22006 msgstr ""
22007
22008 #. type: =item
22009 #: ../resize/virt-resize.pod:456
22010 msgid "B<--resize-force part=size>"
22011 msgstr ""
22012
22013 #. type: textblock
22014 #: ../resize/virt-resize.pod:458
22015 msgid ""
22016 "This is the same as I<--resize> except that it will let you decrease the "
22017 "size of any partition.  Generally this means you will lose any data which "
22018 "was at the end of the partition you shrink, but you may not care about that "
22019 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
22020 "as a swap partition)."
22021 msgstr ""
22022
22023 #. type: textblock
22024 #: ../resize/virt-resize.pod:464
22025 msgid "See also the I<--ignore> option."
22026 msgstr ""
22027
22028 #. type: =item
22029 #: ../resize/virt-resize.pod:466
22030 msgid "B<--shrink part>"
22031 msgstr ""
22032
22033 #. type: textblock
22034 #: ../resize/virt-resize.pod:468
22035 msgid ""
22036 "Shrink the named partition until the overall disk image fits in the "
22037 "destination.  The named partition B<must> contain a filesystem or PV which "
22038 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
22039 "online tools).  Virt-resize will check this and give an error if it has not "
22040 "been done."
22041 msgstr ""
22042
22043 #. type: textblock
22044 #: ../resize/virt-resize.pod:474
22045 msgid ""
22046 "The amount by which the overall disk must be shrunk (after carrying out all "
22047 "other operations requested by the user) is called the \"deficit\".  For "
22048 "example, a straight copy (assume no other operations)  from a 5GB disk image "
22049 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
22050 "would give an error unless the user specified a partition to shrink and that "
22051 "partition had more than a gigabyte of free space."
22052 msgstr ""
22053
22054 #. type: =head1
22055 #: ../resize/virt-resize.pod:492
22056 msgid "MACHINE READABLE OUTPUT"
22057 msgstr ""
22058
22059 #. type: textblock
22060 #: ../resize/virt-resize.pod:494
22061 msgid ""
22062 "The I<--machine-readable> option can be used to make the output more machine "
22063 "friendly, which is useful when calling virt-resize from other programs, GUIs "
22064 "etc."
22065 msgstr ""
22066
22067 #. type: textblock
22068 #: ../resize/virt-resize.pod:498
22069 msgid "There are two ways to use this option."
22070 msgstr ""
22071
22072 #. type: textblock
22073 #: ../resize/virt-resize.pod:500
22074 msgid ""
22075 "Firstly use the option on its own to query the capabilities of the virt-"
22076 "resize binary.  Typical output looks like this:"
22077 msgstr ""
22078
22079 #. type: verbatim
22080 #: ../resize/virt-resize.pod:503
22081 #, no-wrap
22082 msgid ""
22083 " $ virt-resize --machine-readable\n"
22084 " virt-resize\n"
22085 " ntfsresize-force\n"
22086 " 32bitok\n"
22087 " ntfs\n"
22088 " btrfs\n"
22089 "\n"
22090 msgstr ""
22091
22092 #. type: textblock
22093 #: ../resize/virt-resize.pod:510
22094 msgid ""
22095 "A list of features is printed, one per line, and the program exits with "
22096 "status 0."
22097 msgstr ""
22098
22099 #. type: textblock
22100 #: ../resize/virt-resize.pod:513
22101 msgid ""
22102 "Secondly use the option in conjunction with other options to make the "
22103 "regular program output more machine friendly."
22104 msgstr ""
22105
22106 #. type: textblock
22107 #: ../resize/virt-resize.pod:516
22108 msgid "At the moment this means:"
22109 msgstr ""
22110
22111 #. type: textblock
22112 #: ../resize/virt-resize.pod:522
22113 msgid ""
22114 "Progress bar messages can be parsed from stdout by looking for this regular "
22115 "expression:"
22116 msgstr ""
22117
22118 #. type: verbatim
22119 #: ../resize/virt-resize.pod:525
22120 #, no-wrap
22121 msgid ""
22122 " ^[0-9]+/[0-9]+$\n"
22123 "\n"
22124 msgstr ""
22125
22126 #. type: textblock
22127 #: ../resize/virt-resize.pod:529
22128 msgid ""
22129 "The calling program should treat messages sent to stdout (except for "
22130 "progress bar messages) as status messages.  They can be logged and/or "
22131 "displayed to the user."
22132 msgstr ""
22133
22134 #. type: textblock
22135 #: ../resize/virt-resize.pod:535
22136 msgid ""
22137 "The calling program should treat messages sent to stderr as error messages.  "
22138 "In addition, virt-resize exits with a non-zero status code if there was a "
22139 "fatal error."
22140 msgstr ""
22141
22142 #. type: textblock
22143 #: ../resize/virt-resize.pod:541
22144 msgid ""
22145 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
22146 "readable> option and will return an error."
22147 msgstr ""
22148
22149 #. type: =head2
22150 #: ../resize/virt-resize.pod:546
22151 msgid "\"Partition 1 does not end on cylinder boundary.\""
22152 msgstr ""
22153
22154 #. type: textblock
22155 #: ../resize/virt-resize.pod:548
22156 msgid ""
22157 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
22158 "means the partitions will not be aligned to the ancient CHS geometry.  "
22159 "However CHS geometry is meaningless for disks manufactured since the early "
22160 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
22161 "cylinders is not required by any modern operating system."
22162 msgstr ""
22163
22164 #. type: =head2
22165 #: ../resize/virt-resize.pod:555
22166 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
22167 msgstr ""
22168
22169 #. type: textblock
22170 #: ../resize/virt-resize.pod:557
22171 msgid ""
22172 "In Windows Vista and later versions, Microsoft switched to using a separate "
22173 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
22174 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
22175 "the boot partition.  Doing so seems to break the guest completely.  However "
22176 "expanding the second partition (ie. C: drive) should work."
22177 msgstr ""
22178
22179 #. type: textblock
22180 #: ../resize/virt-resize.pod:564
22181 msgid ""
22182 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
22183 "NTFS partitions have been expanded.  This is just a safety check and (unless "
22184 "it find errors) is nothing to worry about."
22185 msgstr ""
22186
22187 #. type: =head2
22188 #: ../resize/virt-resize.pod:568
22189 msgid "GUEST BOOT STUCK AT \"GRUB\""
22190 msgstr ""
22191
22192 #. type: textblock
22193 #: ../resize/virt-resize.pod:570
22194 msgid ""
22195 "If a Linux guest does not boot after resizing, and the boot is stuck after "
22196 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
22197 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
22198 "although we think is to do with partition alignment."
22199 msgstr ""
22200
22201 #. type: verbatim
22202 #: ../resize/virt-resize.pod:575
22203 #, no-wrap
22204 msgid ""
22205 " guestfish -i -a newdisk\n"
22206 " ><fs> cat /boot/grub/device.map\n"
22207 " # check the contents of this file are sensible or\n"
22208 " # edit the file if necessary\n"
22209 " ><fs> grub-install / /dev/vda\n"
22210 " ><fs> exit\n"
22211 "\n"
22212 msgstr ""
22213
22214 #. type: textblock
22215 #: ../resize/virt-resize.pod:582
22216 msgid ""
22217 "For more flexible guest reconfiguration, including if you need to specify "
22218 "other parameters to grub-install, use L<virt-rescue(1)>."
22219 msgstr ""
22220
22221 #. type: =head1
22222 #: ../resize/virt-resize.pod:585
22223 msgid "ALTERNATIVE TOOLS"
22224 msgstr ""
22225
22226 #. type: textblock
22227 #: ../resize/virt-resize.pod:587
22228 msgid ""
22229 "There are several proprietary tools for resizing partitions.  We won't "
22230 "mention any here."
22231 msgstr ""
22232
22233 #. type: textblock
22234 #: ../resize/virt-resize.pod:590
22235 msgid ""
22236 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
22237 "operations on disk images.  They can resize and move partitions, but I don't "
22238 "think they can do anything with the contents, and they certainly don't "
22239 "understand LVM."
22240 msgstr ""
22241
22242 #. type: textblock
22243 #: ../resize/virt-resize.pod:595
22244 msgid ""
22245 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
22246 "but at a much lower level.  You will probably end up hand-calculating sector "
22247 "offsets, which is something that virt-resize was designed to avoid.  If you "
22248 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
22249 "I<--debug> flag."
22250 msgstr ""
22251
22252 #. type: textblock
22253 #: ../resize/virt-resize.pod:615
22254 msgid ""
22255 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
22256 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
22257 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
22258 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<http://libguestfs.org/>."
22259 msgstr ""
22260
22261 #. type: textblock
22262 #: ../ruby/examples/guestfs-ruby.pod:5
22263 msgid "guestfs-ruby - How to use libguestfs from Ruby"
22264 msgstr ""
22265
22266 #. type: verbatim
22267 #: ../ruby/examples/guestfs-ruby.pod:9
22268 #, no-wrap
22269 msgid ""
22270 " require 'guestfs'\n"
22271 " g = Guestfs::Guestfs.new()\n"
22272 " g.add_drive_opts(\"disk.img\",\n"
22273 "                  :readonly => 1, :format => \"raw\")\n"
22274 " g.launch()\n"
22275 "\n"
22276 msgstr ""
22277
22278 #. type: textblock
22279 #: ../ruby/examples/guestfs-ruby.pod:17
22280 msgid ""
22281 "This manual page documents how to call libguestfs from the Ruby programming "
22282 "language.  This page just documents the differences from the C API and gives "
22283 "some examples.  If you are not familiar with using libguestfs, you also need "
22284 "to read L<guestfs(3)>."
22285 msgstr ""
22286
22287 #. type: textblock
22288 #: ../ruby/examples/guestfs-ruby.pod:24
22289 msgid ""
22290 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
22291 "This has a single parameter which is the error message (a string)."
22292 msgstr ""
22293
22294 #. type: textblock
22295 #: ../ruby/examples/guestfs-ruby.pod:38
22296 msgid ""
22297 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
22298 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
22299 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
22300 msgstr ""
22301
22302 #. type: =head2
22303 #: ../src/guestfs-actions.pod:1
22304 msgid "guestfs_add_cdrom"
22305 msgstr ""
22306
22307 #. type: verbatim
22308 #: ../src/guestfs-actions.pod:3
22309 #, no-wrap
22310 msgid ""
22311 " int\n"
22312 " guestfs_add_cdrom (guestfs_h *g,\n"
22313 "                    const char *filename);\n"
22314 "\n"
22315 msgstr ""
22316
22317 #. type: textblock
22318 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:249
22319 #: ../src/guestfs-actions.pod:270
22320 msgid ""
22321 "I<This function is deprecated.> In new code, use the L</"
22322 "guestfs_add_drive_opts> call instead."
22323 msgstr ""
22324
22325 #. type: textblock
22326 #: ../src/guestfs-actions.pod:24
22327 msgid ""
22328 "This call checks for the existence of C<filename>.  This stops you from "
22329 "specifying other types of drive which are supported by qemu such as C<nbd:> "
22330 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
22331 "instead."
22332 msgstr ""
22333
22334 #. type: textblock
22335 #: ../src/guestfs-actions.pod:31
22336 msgid ""
22337 "If you just want to add an ISO file (often you use this as an efficient way "
22338 "to transfer large files into the guest), then you should probably use "
22339 "C<guestfs_add_drive_ro> instead."
22340 msgstr ""
22341
22342 #. type: textblock
22343 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
22344 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
22345 #: ../src/guestfs-actions.pod:259 ../src/guestfs-actions.pod:280
22346 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
22347 #: ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447
22348 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506
22349 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552
22350 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652
22351 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681
22352 #: ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798
22353 #: ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826
22354 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046
22355 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084
22356 #: ../src/guestfs-actions.pod:1174 ../src/guestfs-actions.pod:1231
22357 #: ../src/guestfs-actions.pod:1275 ../src/guestfs-actions.pod:1293
22358 #: ../src/guestfs-actions.pod:1312 ../src/guestfs-actions.pod:1326
22359 #: ../src/guestfs-actions.pod:1346 ../src/guestfs-actions.pod:1416
22360 #: ../src/guestfs-actions.pod:1447 ../src/guestfs-actions.pod:1472
22361 #: ../src/guestfs-actions.pod:1514 ../src/guestfs-actions.pod:1627
22362 #: ../src/guestfs-actions.pod:1654 ../src/guestfs-actions.pod:1869
22363 #: ../src/guestfs-actions.pod:1891 ../src/guestfs-actions.pod:1978
22364 #: ../src/guestfs-actions.pod:2484 ../src/guestfs-actions.pod:2628
22365 #: ../src/guestfs-actions.pod:2689 ../src/guestfs-actions.pod:2724
22366 #: ../src/guestfs-actions.pod:3768 ../src/guestfs-actions.pod:3783
22367 #: ../src/guestfs-actions.pod:3808 ../src/guestfs-actions.pod:3997
22368 #: ../src/guestfs-actions.pod:4011 ../src/guestfs-actions.pod:4024
22369 #: ../src/guestfs-actions.pod:4038 ../src/guestfs-actions.pod:4053
22370 #: ../src/guestfs-actions.pod:4089 ../src/guestfs-actions.pod:4161
22371 #: ../src/guestfs-actions.pod:4181 ../src/guestfs-actions.pod:4198
22372 #: ../src/guestfs-actions.pod:4221 ../src/guestfs-actions.pod:4244
22373 #: ../src/guestfs-actions.pod:4279 ../src/guestfs-actions.pod:4298
22374 #: ../src/guestfs-actions.pod:4317 ../src/guestfs-actions.pod:4352
22375 #: ../src/guestfs-actions.pod:4364 ../src/guestfs-actions.pod:4400
22376 #: ../src/guestfs-actions.pod:4416 ../src/guestfs-actions.pod:4429
22377 #: ../src/guestfs-actions.pod:4444 ../src/guestfs-actions.pod:4461
22378 #: ../src/guestfs-actions.pod:4554 ../src/guestfs-actions.pod:4574
22379 #: ../src/guestfs-actions.pod:4587 ../src/guestfs-actions.pod:4638
22380 #: ../src/guestfs-actions.pod:4656 ../src/guestfs-actions.pod:4674
22381 #: ../src/guestfs-actions.pod:4690 ../src/guestfs-actions.pod:4704
22382 #: ../src/guestfs-actions.pod:4718 ../src/guestfs-actions.pod:4735
22383 #: ../src/guestfs-actions.pod:4750 ../src/guestfs-actions.pod:4777
22384 #: ../src/guestfs-actions.pod:4840 ../src/guestfs-actions.pod:4913
22385 #: ../src/guestfs-actions.pod:4944 ../src/guestfs-actions.pod:4963
22386 #: ../src/guestfs-actions.pod:4982 ../src/guestfs-actions.pod:4994
22387 #: ../src/guestfs-actions.pod:5011 ../src/guestfs-actions.pod:5024
22388 #: ../src/guestfs-actions.pod:5039 ../src/guestfs-actions.pod:5054
22389 #: ../src/guestfs-actions.pod:5086 ../src/guestfs-actions.pod:5112
22390 #: ../src/guestfs-actions.pod:5151 ../src/guestfs-actions.pod:5171
22391 #: ../src/guestfs-actions.pod:5185 ../src/guestfs-actions.pod:5202
22392 #: ../src/guestfs-actions.pod:5251 ../src/guestfs-actions.pod:5304
22393 #: ../src/guestfs-actions.pod:5351 ../src/guestfs-actions.pod:5394
22394 #: ../src/guestfs-actions.pod:5422 ../src/guestfs-actions.pod:5439
22395 #: ../src/guestfs-actions.pod:5457 ../src/guestfs-actions.pod:5597
22396 #: ../src/guestfs-actions.pod:5654 ../src/guestfs-actions.pod:5676
22397 #: ../src/guestfs-actions.pod:5694 ../src/guestfs-actions.pod:5726
22398 #: ../src/guestfs-actions.pod:5792 ../src/guestfs-actions.pod:5809
22399 #: ../src/guestfs-actions.pod:5822 ../src/guestfs-actions.pod:5836
22400 #: ../src/guestfs-actions.pod:6125 ../src/guestfs-actions.pod:6144
22401 #: ../src/guestfs-actions.pod:6163 ../src/guestfs-actions.pod:6177
22402 #: ../src/guestfs-actions.pod:6189 ../src/guestfs-actions.pod:6203
22403 #: ../src/guestfs-actions.pod:6215 ../src/guestfs-actions.pod:6229
22404 #: ../src/guestfs-actions.pod:6245 ../src/guestfs-actions.pod:6266
22405 #: ../src/guestfs-actions.pod:6285 ../src/guestfs-actions.pod:6304
22406 #: ../src/guestfs-actions.pod:6334 ../src/guestfs-actions.pod:6352
22407 #: ../src/guestfs-actions.pod:6375 ../src/guestfs-actions.pod:6393
22408 #: ../src/guestfs-actions.pod:6412 ../src/guestfs-actions.pod:6433
22409 #: ../src/guestfs-actions.pod:6452 ../src/guestfs-actions.pod:6469
22410 #: ../src/guestfs-actions.pod:6488 ../src/guestfs-actions.pod:6516
22411 #: ../src/guestfs-actions.pod:6540 ../src/guestfs-actions.pod:6559
22412 #: ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:6597
22413 #: ../src/guestfs-actions.pod:6616 ../src/guestfs-actions.pod:6631
22414 #: ../src/guestfs-actions.pod:6650 ../src/guestfs-actions.pod:6694
22415 #: ../src/guestfs-actions.pod:6724 ../src/guestfs-actions.pod:6757
22416 #: ../src/guestfs-actions.pod:6872 ../src/guestfs-actions.pod:6993
22417 #: ../src/guestfs-actions.pod:7005 ../src/guestfs-actions.pod:7018
22418 #: ../src/guestfs-actions.pod:7031 ../src/guestfs-actions.pod:7053
22419 #: ../src/guestfs-actions.pod:7066 ../src/guestfs-actions.pod:7079
22420 #: ../src/guestfs-actions.pod:7092 ../src/guestfs-actions.pod:7107
22421 #: ../src/guestfs-actions.pod:7166 ../src/guestfs-actions.pod:7183
22422 #: ../src/guestfs-actions.pod:7199 ../src/guestfs-actions.pod:7215
22423 #: ../src/guestfs-actions.pod:7232 ../src/guestfs-actions.pod:7245
22424 #: ../src/guestfs-actions.pod:7265 ../src/guestfs-actions.pod:7301
22425 #: ../src/guestfs-actions.pod:7315 ../src/guestfs-actions.pod:7356
22426 #: ../src/guestfs-actions.pod:7369 ../src/guestfs-actions.pod:7387
22427 #: ../src/guestfs-actions.pod:7421 ../src/guestfs-actions.pod:7457
22428 #: ../src/guestfs-actions.pod:7573 ../src/guestfs-actions.pod:7588
22429 #: ../src/guestfs-actions.pod:7602 ../src/guestfs-actions.pod:7657
22430 #: ../src/guestfs-actions.pod:7670 ../src/guestfs-actions.pod:7715
22431 #: ../src/guestfs-actions.pod:7755 ../src/guestfs-actions.pod:7811
22432 #: ../src/guestfs-actions.pod:7831 ../src/guestfs-actions.pod:7864
22433 #: ../src/guestfs-actions.pod:7928 ../src/guestfs-actions.pod:7951
22434 #: ../src/guestfs-actions.pod:7980
22435 msgid "This function returns 0 on success or -1 on error."
22436 msgstr ""
22437
22438 #. type: textblock
22439 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
22440 #: ../src/guestfs-actions.pod:1277 ../src/guestfs-actions.pod:2092
22441 #: ../src/guestfs-actions.pod:2190 ../src/guestfs-actions.pod:2313
22442 #: ../src/guestfs-actions.pod:3770 ../src/guestfs-actions.pod:3790
22443 #: ../src/guestfs-actions.pod:5088 ../src/guestfs-actions.pod:6354
22444 #: ../src/guestfs-actions.pod:6471 ../src/guestfs-actions.pod:6618
22445 #: ../src/guestfs-actions.pod:7109 ../src/guestfs-actions.pod:7234
22446 #: ../src/guestfs-actions.pod:7757
22447 msgid "(Added in 0.3)"
22448 msgstr ""
22449
22450 #. type: =head2
22451 #: ../src/guestfs-actions.pod:41
22452 msgid "guestfs_add_domain"
22453 msgstr ""
22454
22455 #. type: verbatim
22456 #: ../src/guestfs-actions.pod:43
22457 #, no-wrap
22458 msgid ""
22459 " int\n"
22460 " guestfs_add_domain (guestfs_h *g,\n"
22461 "                     const char *dom,\n"
22462 "                     ...);\n"
22463 "\n"
22464 msgstr ""
22465
22466 #. type: textblock
22467 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
22468 #: ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:1161
22469 #: ../src/guestfs-actions.pod:1211 ../src/guestfs-actions.pod:2973
22470 #: ../src/guestfs-actions.pod:4789 ../src/guestfs-actions.pod:5098
22471 #: ../src/guestfs-actions.pod:5315
22472 msgid ""
22473 "You may supply a list of optional arguments to this call.  Use zero or more "
22474 "of the following pairs of parameters, and terminate the list with C<-1> on "
22475 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
22476 msgstr ""
22477
22478 #. type: verbatim
22479 #: ../src/guestfs-actions.pod:53
22480 #, no-wrap
22481 msgid ""
22482 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
22483 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
22484 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
22485 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
22486 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
22487 "\n"
22488 msgstr ""
22489
22490 #. type: textblock
22491 #: ../src/guestfs-actions.pod:59
22492 msgid ""
22493 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
22494 "It works by connecting to libvirt, requesting the domain and domain XML from "
22495 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
22496 "one."
22497 msgstr ""
22498
22499 #. type: textblock
22500 #: ../src/guestfs-actions.pod:94
22501 msgid ""
22502 "The other optional parameters are passed directly through to "
22503 "C<guestfs_add_drive_opts>."
22504 msgstr ""
22505
22506 #. type: textblock
22507 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
22508 #: ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698
22509 #: ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747
22510 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1492
22511 #: ../src/guestfs-actions.pod:1848 ../src/guestfs-actions.pod:2051
22512 #: ../src/guestfs-actions.pod:2162 ../src/guestfs-actions.pod:2213
22513 #: ../src/guestfs-actions.pod:2265 ../src/guestfs-actions.pod:2277
22514 #: ../src/guestfs-actions.pod:2300 ../src/guestfs-actions.pod:2615
22515 #: ../src/guestfs-actions.pod:3091 ../src/guestfs-actions.pod:3109
22516 #: ../src/guestfs-actions.pod:5274 ../src/guestfs-actions.pod:5494
22517 #: ../src/guestfs-actions.pod:5906 ../src/guestfs-actions.pod:5932
22518 #: ../src/guestfs-actions.pod:7342 ../src/guestfs-actions.pod:7768
22519 #: ../src/guestfs-actions.pod:7781 ../src/guestfs-actions.pod:7794
22520 msgid "On error this function returns -1."
22521 msgstr ""
22522
22523 #. type: textblock
22524 #: ../src/guestfs-actions.pod:99
22525 msgid "(Added in 1.7.4)"
22526 msgstr ""
22527
22528 #. type: =head2
22529 #: ../src/guestfs-actions.pod:101
22530 msgid "guestfs_add_domain_va"
22531 msgstr ""
22532
22533 #. type: verbatim
22534 #: ../src/guestfs-actions.pod:103
22535 #, no-wrap
22536 msgid ""
22537 " int\n"
22538 " guestfs_add_domain_va (guestfs_h *g,\n"
22539 "                        const char *dom,\n"
22540 "                        va_list args);\n"
22541 "\n"
22542 msgstr ""
22543
22544 #. type: textblock
22545 #: ../src/guestfs-actions.pod:108
22546 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
22547 msgstr ""
22548
22549 #. type: textblock
22550 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
22551 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
22552 #: ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887
22553 #: ../src/guestfs-actions.pod:1187 ../src/guestfs-actions.pod:1200
22554 #: ../src/guestfs-actions.pod:1244 ../src/guestfs-actions.pod:1257
22555 #: ../src/guestfs-actions.pod:3057 ../src/guestfs-actions.pod:3069
22556 #: ../src/guestfs-actions.pod:4854 ../src/guestfs-actions.pod:4866
22557 #: ../src/guestfs-actions.pod:5126 ../src/guestfs-actions.pod:5138
22558 #: ../src/guestfs-actions.pod:5364 ../src/guestfs-actions.pod:5375
22559 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
22560 msgstr ""
22561
22562 #. type: =head2
22563 #: ../src/guestfs-actions.pod:112
22564 msgid "guestfs_add_domain_argv"
22565 msgstr ""
22566
22567 #. type: verbatim
22568 #: ../src/guestfs-actions.pod:114
22569 #, no-wrap
22570 msgid ""
22571 " int\n"
22572 " guestfs_add_domain_argv (guestfs_h *g,\n"
22573 "                          const char *dom,\n"
22574 "                          const struct guestfs_add_domain_argv *optargs);\n"
22575 "\n"
22576 msgstr ""
22577
22578 #. type: textblock
22579 #: ../src/guestfs-actions.pod:119
22580 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
22581 msgstr ""
22582
22583 #. type: =head2
22584 #: ../src/guestfs-actions.pod:123
22585 msgid "guestfs_add_drive"
22586 msgstr ""
22587
22588 #. type: verbatim
22589 #: ../src/guestfs-actions.pod:125
22590 #, no-wrap
22591 msgid ""
22592 " int\n"
22593 " guestfs_add_drive (guestfs_h *g,\n"
22594 "                    const char *filename);\n"
22595 "\n"
22596 msgstr ""
22597
22598 #. type: textblock
22599 #: ../src/guestfs-actions.pod:129
22600 msgid ""
22601 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
22602 "optional parameters, so the disk is added writable, with the format being "
22603 "detected automatically."
22604 msgstr ""
22605
22606 #. type: textblock
22607 #: ../src/guestfs-actions.pod:133
22608 msgid ""
22609 "Automatic detection of the format opens you up to a potential security hole "
22610 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
22611 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
22612 "you should think about replacing calls to this function with calls to "
22613 "C<guestfs_add_drive_opts>, and specifying the format."
22614 msgstr ""
22615
22616 #. type: =head2
22617 #: ../src/guestfs-actions.pod:144
22618 msgid "guestfs_add_drive_opts"
22619 msgstr ""
22620
22621 #. type: verbatim
22622 #: ../src/guestfs-actions.pod:146
22623 #, no-wrap
22624 msgid ""
22625 " int\n"
22626 " guestfs_add_drive_opts (guestfs_h *g,\n"
22627 "                         const char *filename,\n"
22628 "                         ...);\n"
22629 "\n"
22630 msgstr ""
22631
22632 #. type: verbatim
22633 #: ../src/guestfs-actions.pod:156
22634 #, no-wrap
22635 msgid ""
22636 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
22637 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
22638 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
22639 "\n"
22640 msgstr ""
22641
22642 #. type: textblock
22643 #: ../src/guestfs-actions.pod:185
22644 msgid ""
22645 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
22646 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
22647 "Possible formats include C<raw> and C<qcow2>."
22648 msgstr ""
22649
22650 #. type: textblock
22651 #: ../src/guestfs-actions.pod:196
22652 msgid ""
22653 "This rarely-used option lets you emulate the behaviour of the deprecated "
22654 "C<guestfs_add_drive_with_if> call (q.v.)"
22655 msgstr ""
22656
22657 #. type: textblock
22658 #: ../src/guestfs-actions.pod:203
22659 msgid "(Added in 1.5.23)"
22660 msgstr ""
22661
22662 #. type: =head2
22663 #: ../src/guestfs-actions.pod:205
22664 msgid "guestfs_add_drive_opts_va"
22665 msgstr ""
22666
22667 #. type: verbatim
22668 #: ../src/guestfs-actions.pod:207
22669 #, no-wrap
22670 msgid ""
22671 " int\n"
22672 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
22673 "                            const char *filename,\n"
22674 "                            va_list args);\n"
22675 "\n"
22676 msgstr ""
22677
22678 #. type: textblock
22679 #: ../src/guestfs-actions.pod:212
22680 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
22681 msgstr ""
22682
22683 #. type: =head2
22684 #: ../src/guestfs-actions.pod:216
22685 msgid "guestfs_add_drive_opts_argv"
22686 msgstr ""
22687
22688 #. type: verbatim
22689 #: ../src/guestfs-actions.pod:218
22690 #, no-wrap
22691 msgid ""
22692 " int\n"
22693 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
22694 "                              const char *filename,\n"
22695 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
22696 "\n"
22697 msgstr ""
22698
22699 #. type: textblock
22700 #: ../src/guestfs-actions.pod:223
22701 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
22702 msgstr ""
22703
22704 #. type: =head2
22705 #: ../src/guestfs-actions.pod:227
22706 msgid "guestfs_add_drive_ro"
22707 msgstr ""
22708
22709 #. type: verbatim
22710 #: ../src/guestfs-actions.pod:229
22711 #, no-wrap
22712 msgid ""
22713 " int\n"
22714 " guestfs_add_drive_ro (guestfs_h *g,\n"
22715 "                       const char *filename);\n"
22716 "\n"
22717 msgstr ""
22718
22719 #. type: textblock
22720 #: ../src/guestfs-actions.pod:233
22721 msgid ""
22722 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
22723 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
22724 "disk is added read-only, with the format being detected automatically."
22725 msgstr ""
22726
22727 #. type: textblock
22728 #: ../src/guestfs-actions.pod:240
22729 msgid "(Added in 1.0.38)"
22730 msgstr ""
22731
22732 #. type: =head2
22733 #: ../src/guestfs-actions.pod:242
22734 msgid "guestfs_add_drive_ro_with_if"
22735 msgstr ""
22736
22737 #. type: verbatim
22738 #: ../src/guestfs-actions.pod:244
22739 #, no-wrap
22740 msgid ""
22741 " int\n"
22742 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
22743 "                               const char *filename,\n"
22744 "                               const char *iface);\n"
22745 "\n"
22746 msgstr ""
22747
22748 #. type: textblock
22749 #: ../src/guestfs-actions.pod:256
22750 msgid ""
22751 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
22752 "QEMU interface emulation to use at run time."
22753 msgstr ""
22754
22755 #. type: textblock
22756 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
22757 #: ../src/guestfs-actions.pod:2574
22758 msgid "(Added in 1.0.84)"
22759 msgstr ""
22760
22761 #. type: =head2
22762 #: ../src/guestfs-actions.pod:263
22763 msgid "guestfs_add_drive_with_if"
22764 msgstr ""
22765
22766 #. type: verbatim
22767 #: ../src/guestfs-actions.pod:265
22768 #, no-wrap
22769 msgid ""
22770 " int\n"
22771 " guestfs_add_drive_with_if (guestfs_h *g,\n"
22772 "                            const char *filename,\n"
22773 "                            const char *iface);\n"
22774 "\n"
22775 msgstr ""
22776
22777 #. type: textblock
22778 #: ../src/guestfs-actions.pod:277
22779 msgid ""
22780 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
22781 "QEMU interface emulation to use at run time."
22782 msgstr ""
22783
22784 #. type: =head2
22785 #: ../src/guestfs-actions.pod:284
22786 msgid "guestfs_aug_clear"
22787 msgstr ""
22788
22789 #. type: verbatim
22790 #: ../src/guestfs-actions.pod:286
22791 #, no-wrap
22792 msgid ""
22793 " int\n"
22794 " guestfs_aug_clear (guestfs_h *g,\n"
22795 "                    const char *augpath);\n"
22796 "\n"
22797 msgstr ""
22798
22799 #. type: textblock
22800 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2302
22801 msgid "(Added in 1.3.4)"
22802 msgstr ""
22803
22804 #. type: =head2
22805 #: ../src/guestfs-actions.pod:297
22806 msgid "guestfs_aug_close"
22807 msgstr ""
22808
22809 #. type: verbatim
22810 #: ../src/guestfs-actions.pod:299
22811 #, no-wrap
22812 msgid ""
22813 " int\n"
22814 " guestfs_aug_close (guestfs_h *g);\n"
22815 "\n"
22816 msgstr ""
22817
22818 #. type: textblock
22819 #: ../src/guestfs-actions.pod:302
22820 msgid ""
22821 "Close the current Augeas handle and free up any resources used by it.  After "
22822 "calling this, you have to call C<guestfs_aug_init> again before you can use "
22823 "any other Augeas functions."
22824 msgstr ""
22825
22826 #. type: textblock
22827 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
22828 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
22829 #: ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449
22830 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494
22831 #: ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522
22832 #: ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554
22833 #: ../src/guestfs-actions.pod:5983
22834 msgid "(Added in 0.7)"
22835 msgstr ""
22836
22837 #. type: =head2
22838 #: ../src/guestfs-actions.pod:311
22839 msgid "guestfs_aug_defnode"
22840 msgstr ""
22841
22842 #. type: verbatim
22843 #: ../src/guestfs-actions.pod:313
22844 #, no-wrap
22845 msgid ""
22846 " struct guestfs_int_bool *\n"
22847 " guestfs_aug_defnode (guestfs_h *g,\n"
22848 "                      const char *name,\n"
22849 "                      const char *expr,\n"
22850 "                      const char *val);\n"
22851 "\n"
22852 msgstr ""
22853
22854 #. type: textblock
22855 #: ../src/guestfs-actions.pod:322
22856 msgid ""
22857 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
22858 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
22859 "containing that single node."
22860 msgstr ""
22861
22862 #. type: textblock
22863 #: ../src/guestfs-actions.pod:330
22864 msgid ""
22865 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
22866 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
22867 msgstr ""
22868
22869 #. type: =head2
22870 #: ../src/guestfs-actions.pod:336
22871 msgid "guestfs_aug_defvar"
22872 msgstr ""
22873
22874 #. type: verbatim
22875 #: ../src/guestfs-actions.pod:338
22876 #, no-wrap
22877 msgid ""
22878 " int\n"
22879 " guestfs_aug_defvar (guestfs_h *g,\n"
22880 "                     const char *name,\n"
22881 "                     const char *expr);\n"
22882 "\n"
22883 msgstr ""
22884
22885 #. type: =head2
22886 #: ../src/guestfs-actions.pod:354
22887 msgid "guestfs_aug_get"
22888 msgstr ""
22889
22890 #. type: verbatim
22891 #: ../src/guestfs-actions.pod:356
22892 #, no-wrap
22893 msgid ""
22894 " char *\n"
22895 " guestfs_aug_get (guestfs_h *g,\n"
22896 "                  const char *augpath);\n"
22897 "\n"
22898 msgstr ""
22899
22900 #. type: textblock
22901 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927
22902 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005
22903 #: ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124
22904 #: ../src/guestfs-actions.pod:1361 ../src/guestfs-actions.pod:1378
22905 #: ../src/guestfs-actions.pod:1397 ../src/guestfs-actions.pod:1531
22906 #: ../src/guestfs-actions.pod:1719 ../src/guestfs-actions.pod:1831
22907 #: ../src/guestfs-actions.pod:1994 ../src/guestfs-actions.pod:2011
22908 #: ../src/guestfs-actions.pod:2078 ../src/guestfs-actions.pod:2121
22909 #: ../src/guestfs-actions.pod:2142 ../src/guestfs-actions.pod:2325
22910 #: ../src/guestfs-actions.pod:2539 ../src/guestfs-actions.pod:2743
22911 #: ../src/guestfs-actions.pod:2837 ../src/guestfs-actions.pod:2941
22912 #: ../src/guestfs-actions.pod:2960 ../src/guestfs-actions.pod:3174
22913 #: ../src/guestfs-actions.pod:3202 ../src/guestfs-actions.pod:3223
22914 #: ../src/guestfs-actions.pod:3257 ../src/guestfs-actions.pod:3316
22915 #: ../src/guestfs-actions.pod:3336 ../src/guestfs-actions.pod:3356
22916 #: ../src/guestfs-actions.pod:3983 ../src/guestfs-actions.pod:4336
22917 #: ../src/guestfs-actions.pod:4506 ../src/guestfs-actions.pod:4616
22918 #: ../src/guestfs-actions.pod:5512 ../src/guestfs-actions.pod:5711
22919 #: ../src/guestfs-actions.pod:5881 ../src/guestfs-actions.pod:6059
22920 #: ../src/guestfs-actions.pod:6108 ../src/guestfs-actions.pod:6778
22921 #: ../src/guestfs-actions.pod:6794 ../src/guestfs-actions.pod:6818
22922 #: ../src/guestfs-actions.pod:6842 ../src/guestfs-actions.pod:7516
22923 #: ../src/guestfs-actions.pod:7535 ../src/guestfs-actions.pod:7553
22924 #: ../src/guestfs-actions.pod:7727 ../src/guestfs-actions.pod:8044
22925 msgid ""
22926 "This function returns a string, or NULL on error.  I<The caller must free "
22927 "the returned string after use>."
22928 msgstr ""
22929
22930 #. type: =head2
22931 #: ../src/guestfs-actions.pod:368
22932 msgid "guestfs_aug_init"
22933 msgstr ""
22934
22935 #. type: verbatim
22936 #: ../src/guestfs-actions.pod:370
22937 #, no-wrap
22938 msgid ""
22939 " int\n"
22940 " guestfs_aug_init (guestfs_h *g,\n"
22941 "                   const char *root,\n"
22942 "                   int flags);\n"
22943 "\n"
22944 msgstr ""
22945
22946 #. type: textblock
22947 #: ../src/guestfs-actions.pod:379
22948 msgid "You must call this before using any other C<guestfs_aug_*> commands."
22949 msgstr ""
22950
22951 #. type: textblock
22952 #: ../src/guestfs-actions.pod:404
22953 msgid ""
22954 "This option is only useful when debugging Augeas lenses.  Use of this option "
22955 "may require additional memory for the libguestfs appliance.  You may need to "
22956 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
22957 "C<guestfs_set_memsize>."
22958 msgstr ""
22959
22960 #. type: textblock
22961 #: ../src/guestfs-actions.pod:419
22962 msgid "Do not load the tree in C<guestfs_aug_init>."
22963 msgstr ""
22964
22965 #. type: textblock
22966 #: ../src/guestfs-actions.pod:423
22967 msgid "To close the handle, you can call C<guestfs_aug_close>."
22968 msgstr ""
22969
22970 #. type: =head2
22971 #: ../src/guestfs-actions.pod:431
22972 msgid "guestfs_aug_insert"
22973 msgstr ""
22974
22975 #. type: verbatim
22976 #: ../src/guestfs-actions.pod:433
22977 #, no-wrap
22978 msgid ""
22979 " int\n"
22980 " guestfs_aug_insert (guestfs_h *g,\n"
22981 "                     const char *augpath,\n"
22982 "                     const char *label,\n"
22983 "                     int before);\n"
22984 "\n"
22985 msgstr ""
22986
22987 #. type: =head2
22988 #: ../src/guestfs-actions.pod:451
22989 msgid "guestfs_aug_load"
22990 msgstr ""
22991
22992 #. type: verbatim
22993 #: ../src/guestfs-actions.pod:453
22994 #, no-wrap
22995 msgid ""
22996 " int\n"
22997 " guestfs_aug_load (guestfs_h *g);\n"
22998 "\n"
22999 msgstr ""
23000
23001 #. type: =head2
23002 #: ../src/guestfs-actions.pod:465
23003 msgid "guestfs_aug_ls"
23004 msgstr ""
23005
23006 #. type: verbatim
23007 #: ../src/guestfs-actions.pod:467
23008 #, no-wrap
23009 msgid ""
23010 " char **\n"
23011 " guestfs_aug_ls (guestfs_h *g,\n"
23012 "                 const char *augpath);\n"
23013 "\n"
23014 msgstr ""
23015
23016 #. type: textblock
23017 #: ../src/guestfs-actions.pod:471
23018 msgid ""
23019 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
23020 "sorting the resulting nodes into alphabetical order."
23021 msgstr ""
23022
23023 #. type: textblock
23024 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490
23025 #: ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143
23026 #: ../src/guestfs-actions.pod:1546 ../src/guestfs-actions.pod:1565
23027 #: ../src/guestfs-actions.pod:1668 ../src/guestfs-actions.pod:1687
23028 #: ../src/guestfs-actions.pod:1933 ../src/guestfs-actions.pod:2397
23029 #: ../src/guestfs-actions.pod:2413 ../src/guestfs-actions.pod:2432
23030 #: ../src/guestfs-actions.pod:2497 ../src/guestfs-actions.pod:2521
23031 #: ../src/guestfs-actions.pod:2592 ../src/guestfs-actions.pod:2641
23032 #: ../src/guestfs-actions.pod:2902 ../src/guestfs-actions.pod:3276
23033 #: ../src/guestfs-actions.pod:3552 ../src/guestfs-actions.pod:3866
23034 #: ../src/guestfs-actions.pod:3883 ../src/guestfs-actions.pod:3903
23035 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:4070
23036 #: ../src/guestfs-actions.pod:4478 ../src/guestfs-actions.pod:5235
23037 #: ../src/guestfs-actions.pod:5853 ../src/guestfs-actions.pod:5979
23038 #: ../src/guestfs-actions.pod:6093 ../src/guestfs-actions.pod:6858
23039 #: ../src/guestfs-actions.pod:6919 ../src/guestfs-actions.pod:6974
23040 #: ../src/guestfs-actions.pod:7120 ../src/guestfs-actions.pod:7144
23041 #: ../src/guestfs-actions.pod:7620 ../src/guestfs-actions.pod:7640
23042 #: ../src/guestfs-actions.pod:7687 ../src/guestfs-actions.pod:7881
23043 #: ../src/guestfs-actions.pod:7900 ../src/guestfs-actions.pod:7994
23044 #: ../src/guestfs-actions.pod:8013 ../src/guestfs-actions.pod:8059
23045 #: ../src/guestfs-actions.pod:8078
23046 msgid ""
23047 "This function returns a NULL-terminated array of strings (like L<environ(3)"
23048 ">), or NULL if there was an error.  I<The caller must free the strings and "
23049 "the array after use>."
23050 msgstr ""
23051
23052 #. type: textblock
23053 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068
23054 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1603
23055 #: ../src/guestfs-actions.pod:3630 ../src/guestfs-actions.pod:3661
23056 #: ../src/guestfs-actions.pod:4319 ../src/guestfs-actions.pod:4369
23057 #: ../src/guestfs-actions.pod:4556 ../src/guestfs-actions.pod:4589
23058 #: ../src/guestfs-actions.pod:4752 ../src/guestfs-actions.pod:5239
23059 #: ../src/guestfs-actions.pod:5794 ../src/guestfs-actions.pod:6191
23060 #: ../src/guestfs-actions.pod:6205 ../src/guestfs-actions.pod:6217
23061 #: ../src/guestfs-actions.pod:6699 ../src/guestfs-actions.pod:7358
23062 #: ../src/guestfs-actions.pod:7371 ../src/guestfs-actions.pod:7604
23063 #: ../src/guestfs-actions.pod:7869
23064 msgid "(Added in 0.8)"
23065 msgstr ""
23066
23067 #. type: =head2
23068 #: ../src/guestfs-actions.pod:480
23069 msgid "guestfs_aug_match"
23070 msgstr ""
23071
23072 #. type: verbatim
23073 #: ../src/guestfs-actions.pod:482
23074 #, no-wrap
23075 msgid ""
23076 " char **\n"
23077 " guestfs_aug_match (guestfs_h *g,\n"
23078 "                    const char *augpath);\n"
23079 "\n"
23080 msgstr ""
23081
23082 #. type: =head2
23083 #: ../src/guestfs-actions.pod:496
23084 msgid "guestfs_aug_mv"
23085 msgstr ""
23086
23087 #. type: verbatim
23088 #: ../src/guestfs-actions.pod:498
23089 #, no-wrap
23090 msgid ""
23091 " int\n"
23092 " guestfs_aug_mv (guestfs_h *g,\n"
23093 "                 const char *src,\n"
23094 "                 const char *dest);\n"
23095 "\n"
23096 msgstr ""
23097
23098 #. type: =head2
23099 #: ../src/guestfs-actions.pod:510
23100 msgid "guestfs_aug_rm"
23101 msgstr ""
23102
23103 #. type: verbatim
23104 #: ../src/guestfs-actions.pod:512
23105 #, no-wrap
23106 msgid ""
23107 " int\n"
23108 " guestfs_aug_rm (guestfs_h *g,\n"
23109 "                 const char *augpath);\n"
23110 "\n"
23111 msgstr ""
23112
23113 #. type: =head2
23114 #: ../src/guestfs-actions.pod:524
23115 msgid "guestfs_aug_save"
23116 msgstr ""
23117
23118 #. type: verbatim
23119 #: ../src/guestfs-actions.pod:526
23120 #, no-wrap
23121 msgid ""
23122 " int\n"
23123 " guestfs_aug_save (guestfs_h *g);\n"
23124 "\n"
23125 msgstr ""
23126
23127 #. type: textblock
23128 #: ../src/guestfs-actions.pod:531
23129 msgid ""
23130 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
23131 "are saved."
23132 msgstr ""
23133
23134 #. type: =head2
23135 #: ../src/guestfs-actions.pod:538
23136 msgid "guestfs_aug_set"
23137 msgstr ""
23138
23139 #. type: verbatim
23140 #: ../src/guestfs-actions.pod:540
23141 #, no-wrap
23142 msgid ""
23143 " int\n"
23144 " guestfs_aug_set (guestfs_h *g,\n"
23145 "                  const char *augpath,\n"
23146 "                  const char *val);\n"
23147 "\n"
23148 msgstr ""
23149
23150 #. type: textblock
23151 #: ../src/guestfs-actions.pod:547
23152 msgid ""
23153 "In the Augeas API, it is possible to clear a node by setting the value to "
23154 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
23155 "this call.  Instead you must use the C<guestfs_aug_clear> call."
23156 msgstr ""
23157
23158 #. type: =head2
23159 #: ../src/guestfs-actions.pod:556
23160 msgid "guestfs_available"
23161 msgstr ""
23162
23163 #. type: verbatim
23164 #: ../src/guestfs-actions.pod:558
23165 #, no-wrap
23166 msgid ""
23167 " int\n"
23168 " guestfs_available (guestfs_h *g,\n"
23169 "                    char *const *groups);\n"
23170 "\n"
23171 msgstr ""
23172
23173 #. type: textblock
23174 #: ../src/guestfs-actions.pod:566
23175 msgid ""
23176 "The libguestfs groups, and the functions that those groups correspond to, "
23177 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
23178 "runtime by calling C<guestfs_available_all_groups>."
23179 msgstr ""
23180
23181 #. type: textblock
23182 #: ../src/guestfs-actions.pod:590
23183 msgid "You must call C<guestfs_launch> before calling this function."
23184 msgstr ""
23185
23186 #. type: textblock
23187 #: ../src/guestfs-actions.pod:612
23188 msgid ""
23189 "This call was added in version C<1.0.80>.  In previous versions of "
23190 "libguestfs all you could do would be to speculatively execute a command to "
23191 "find out if the daemon implemented it.  See also C<guestfs_version>."
23192 msgstr ""
23193
23194 #. type: textblock
23195 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1348
23196 msgid "(Added in 1.0.80)"
23197 msgstr ""
23198
23199 #. type: =head2
23200 #: ../src/guestfs-actions.pod:623
23201 msgid "guestfs_available_all_groups"
23202 msgstr ""
23203
23204 #. type: verbatim
23205 #: ../src/guestfs-actions.pod:625
23206 #, no-wrap
23207 msgid ""
23208 " char **\n"
23209 " guestfs_available_all_groups (guestfs_h *g);\n"
23210 "\n"
23211 msgstr ""
23212
23213 #. type: textblock
23214 #: ../src/guestfs-actions.pod:628
23215 msgid ""
23216 "This command returns a list of all optional groups that this daemon knows "
23217 "about.  Note this returns both supported and unsupported groups.  To find "
23218 "out which ones the daemon can actually support you have to call "
23219 "C<guestfs_available> on each member of the returned list."
23220 msgstr ""
23221
23222 #. type: textblock
23223 #: ../src/guestfs-actions.pod:634
23224 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
23225 msgstr ""
23226
23227 #. type: textblock
23228 #: ../src/guestfs-actions.pod:640
23229 msgid "(Added in 1.3.15)"
23230 msgstr ""
23231
23232 #. type: =head2
23233 #: ../src/guestfs-actions.pod:642
23234 msgid "guestfs_base64_in"
23235 msgstr ""
23236
23237 #. type: verbatim
23238 #: ../src/guestfs-actions.pod:644
23239 #, no-wrap
23240 msgid ""
23241 " int\n"
23242 " guestfs_base64_in (guestfs_h *g,\n"
23243 "                    const char *base64file,\n"
23244 "                    const char *filename);\n"
23245 "\n"
23246 msgstr ""
23247
23248 #. type: textblock
23249 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
23250 msgid "(Added in 1.3.5)"
23251 msgstr ""
23252
23253 #. type: =head2
23254 #: ../src/guestfs-actions.pod:656
23255 msgid "guestfs_base64_out"
23256 msgstr ""
23257
23258 #. type: verbatim
23259 #: ../src/guestfs-actions.pod:658
23260 #, no-wrap
23261 msgid ""
23262 " int\n"
23263 " guestfs_base64_out (guestfs_h *g,\n"
23264 "                     const char *filename,\n"
23265 "                     const char *base64file);\n"
23266 "\n"
23267 msgstr ""
23268
23269 #. type: =head2
23270 #: ../src/guestfs-actions.pod:670
23271 msgid "guestfs_blockdev_flushbufs"
23272 msgstr ""
23273
23274 #. type: verbatim
23275 #: ../src/guestfs-actions.pod:672
23276 #, no-wrap
23277 msgid ""
23278 " int\n"
23279 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
23280 "                             const char *device);\n"
23281 "\n"
23282 msgstr ""
23283
23284 #. type: textblock
23285 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700
23286 #: ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731
23287 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768
23288 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
23289 #: ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
23290 msgid "(Added in 0.9.3)"
23291 msgstr ""
23292
23293 #. type: =head2
23294 #: ../src/guestfs-actions.pod:685
23295 msgid "guestfs_blockdev_getbsz"
23296 msgstr ""
23297
23298 #. type: verbatim
23299 #: ../src/guestfs-actions.pod:687
23300 #, no-wrap
23301 msgid ""
23302 " int\n"
23303 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
23304 "                          const char *device);\n"
23305 "\n"
23306 msgstr ""
23307
23308 #. type: =head2
23309 #: ../src/guestfs-actions.pod:702
23310 msgid "guestfs_blockdev_getro"
23311 msgstr ""
23312
23313 #. type: verbatim
23314 #: ../src/guestfs-actions.pod:704
23315 #, no-wrap
23316 msgid ""
23317 " int\n"
23318 " guestfs_blockdev_getro (guestfs_h *g,\n"
23319 "                         const char *device);\n"
23320 "\n"
23321 msgstr ""
23322
23323 #. type: textblock
23324 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1586
23325 #: ../src/guestfs-actions.pod:1601 ../src/guestfs-actions.pod:2090
23326 #: ../src/guestfs-actions.pod:2101 ../src/guestfs-actions.pod:2173
23327 #: ../src/guestfs-actions.pod:2199 ../src/guestfs-actions.pod:2239
23328 #: ../src/guestfs-actions.pod:2254 ../src/guestfs-actions.pod:2288
23329 #: ../src/guestfs-actions.pod:2311 ../src/guestfs-actions.pod:3373
23330 #: ../src/guestfs-actions.pod:3389 ../src/guestfs-actions.pod:3407
23331 #: ../src/guestfs-actions.pod:3569 ../src/guestfs-actions.pod:3583
23332 #: ../src/guestfs-actions.pod:3598 ../src/guestfs-actions.pod:3612
23333 #: ../src/guestfs-actions.pod:3628 ../src/guestfs-actions.pod:3643
23334 #: ../src/guestfs-actions.pod:3659 ../src/guestfs-actions.pod:3673
23335 #: ../src/guestfs-actions.pod:3686 ../src/guestfs-actions.pod:3700
23336 #: ../src/guestfs-actions.pod:3715 ../src/guestfs-actions.pod:3730
23337 #: ../src/guestfs-actions.pod:3743 ../src/guestfs-actions.pod:3757
23338 #: ../src/guestfs-actions.pod:5476
23339 msgid "This function returns a C truth value on success or -1 on error."
23340 msgstr ""
23341
23342 #. type: =head2
23343 #: ../src/guestfs-actions.pod:717
23344 msgid "guestfs_blockdev_getsize64"
23345 msgstr ""
23346
23347 #. type: verbatim
23348 #: ../src/guestfs-actions.pod:719
23349 #, no-wrap
23350 msgid ""
23351 " int64_t\n"
23352 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
23353 "                             const char *device);\n"
23354 "\n"
23355 msgstr ""
23356
23357 #. type: textblock
23358 #: ../src/guestfs-actions.pod:725
23359 msgid "See also C<guestfs_blockdev_getsz>."
23360 msgstr ""
23361
23362 #. type: =head2
23363 #: ../src/guestfs-actions.pod:733
23364 msgid "guestfs_blockdev_getss"
23365 msgstr ""
23366
23367 #. type: verbatim
23368 #: ../src/guestfs-actions.pod:735
23369 #, no-wrap
23370 msgid ""
23371 " int\n"
23372 " guestfs_blockdev_getss (guestfs_h *g,\n"
23373 "                         const char *device);\n"
23374 "\n"
23375 msgstr ""
23376
23377 #. type: textblock
23378 #: ../src/guestfs-actions.pod:742
23379 msgid ""
23380 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
23381 "that)."
23382 msgstr ""
23383
23384 #. type: =head2
23385 #: ../src/guestfs-actions.pod:751
23386 msgid "guestfs_blockdev_getsz"
23387 msgstr ""
23388
23389 #. type: verbatim
23390 #: ../src/guestfs-actions.pod:753
23391 #, no-wrap
23392 msgid ""
23393 " int64_t\n"
23394 " guestfs_blockdev_getsz (guestfs_h *g,\n"
23395 "                         const char *device);\n"
23396 "\n"
23397 msgstr ""
23398
23399 #. type: textblock
23400 #: ../src/guestfs-actions.pod:760
23401 msgid ""
23402 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
23403 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
23404 msgstr ""
23405
23406 #. type: =head2
23407 #: ../src/guestfs-actions.pod:770
23408 msgid "guestfs_blockdev_rereadpt"
23409 msgstr ""
23410
23411 #. type: verbatim
23412 #: ../src/guestfs-actions.pod:772
23413 #, no-wrap
23414 msgid ""
23415 " int\n"
23416 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
23417 "                            const char *device);\n"
23418 "\n"
23419 msgstr ""
23420
23421 #. type: =head2
23422 #: ../src/guestfs-actions.pod:784
23423 msgid "guestfs_blockdev_setbsz"
23424 msgstr ""
23425
23426 #. type: verbatim
23427 #: ../src/guestfs-actions.pod:786
23428 #, no-wrap
23429 msgid ""
23430 " int\n"
23431 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
23432 "                          const char *device,\n"
23433 "                          int blocksize);\n"
23434 "\n"
23435 msgstr ""
23436
23437 #. type: =head2
23438 #: ../src/guestfs-actions.pod:802
23439 msgid "guestfs_blockdev_setro"
23440 msgstr ""
23441
23442 #. type: verbatim
23443 #: ../src/guestfs-actions.pod:804
23444 #, no-wrap
23445 msgid ""
23446 " int\n"
23447 " guestfs_blockdev_setro (guestfs_h *g,\n"
23448 "                         const char *device);\n"
23449 "\n"
23450 msgstr ""
23451
23452 #. type: =head2
23453 #: ../src/guestfs-actions.pod:816
23454 msgid "guestfs_blockdev_setrw"
23455 msgstr ""
23456
23457 #. type: verbatim
23458 #: ../src/guestfs-actions.pod:818
23459 #, no-wrap
23460 msgid ""
23461 " int\n"
23462 " guestfs_blockdev_setrw (guestfs_h *g,\n"
23463 "                         const char *device);\n"
23464 "\n"
23465 msgstr ""
23466
23467 #. type: =head2
23468 #: ../src/guestfs-actions.pod:830
23469 msgid "guestfs_btrfs_filesystem_resize"
23470 msgstr ""
23471
23472 #. type: verbatim
23473 #: ../src/guestfs-actions.pod:832
23474 #, no-wrap
23475 msgid ""
23476 " int\n"
23477 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
23478 "                                  const char *mountpoint,\n"
23479 "                                  ...);\n"
23480 "\n"
23481 msgstr ""
23482
23483 #. type: verbatim
23484 #: ../src/guestfs-actions.pod:842
23485 #, no-wrap
23486 msgid ""
23487 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
23488 "\n"
23489 msgstr ""
23490
23491 #. type: textblock
23492 #: ../src/guestfs-actions.pod:865
23493 msgid "(Added in 1.11.17)"
23494 msgstr ""
23495
23496 #. type: =head2
23497 #: ../src/guestfs-actions.pod:867
23498 msgid "guestfs_btrfs_filesystem_resize_va"
23499 msgstr ""
23500
23501 #. type: verbatim
23502 #: ../src/guestfs-actions.pod:869
23503 #, no-wrap
23504 msgid ""
23505 " int\n"
23506 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
23507 "                                     const char *mountpoint,\n"
23508 "                                     va_list args);\n"
23509 "\n"
23510 msgstr ""
23511
23512 #. type: textblock
23513 #: ../src/guestfs-actions.pod:874
23514 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
23515 msgstr ""
23516
23517 #. type: =head2
23518 #: ../src/guestfs-actions.pod:878
23519 msgid "guestfs_btrfs_filesystem_resize_argv"
23520 msgstr ""
23521
23522 #. type: verbatim
23523 #: ../src/guestfs-actions.pod:880
23524 #, no-wrap
23525 msgid ""
23526 " int\n"
23527 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
23528 "                                       const char *mountpoint,\n"
23529 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
23530 "\n"
23531 msgstr ""
23532
23533 #. type: textblock
23534 #: ../src/guestfs-actions.pod:885
23535 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
23536 msgstr ""
23537
23538 #. type: =head2
23539 #: ../src/guestfs-actions.pod:889
23540 msgid "guestfs_case_sensitive_path"
23541 msgstr ""
23542
23543 #. type: verbatim
23544 #: ../src/guestfs-actions.pod:891
23545 #, no-wrap
23546 msgid ""
23547 " char *\n"
23548 " guestfs_case_sensitive_path (guestfs_h *g,\n"
23549 "                              const char *path);\n"
23550 "\n"
23551 msgstr ""
23552
23553 #. type: textblock
23554 #: ../src/guestfs-actions.pod:917
23555 msgid ""
23556 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
23557 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
23558 "how the directories were originally created under Windows)."
23559 msgstr ""
23560
23561 #. type: textblock
23562 #: ../src/guestfs-actions.pod:925
23563 msgid "See also C<guestfs_realpath>."
23564 msgstr ""
23565
23566 #. type: textblock
23567 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7538
23568 msgid "(Added in 1.0.75)"
23569 msgstr ""
23570
23571 #. type: =head2
23572 #: ../src/guestfs-actions.pod:932
23573 msgid "guestfs_cat"
23574 msgstr ""
23575
23576 #. type: verbatim
23577 #: ../src/guestfs-actions.pod:934
23578 #, no-wrap
23579 msgid ""
23580 " char *\n"
23581 " guestfs_cat (guestfs_h *g,\n"
23582 "              const char *path);\n"
23583 "\n"
23584 msgstr ""
23585
23586 #. type: textblock
23587 #: ../src/guestfs-actions.pod:940
23588 msgid ""
23589 "Note that this function cannot correctly handle binary files (specifically, "
23590 "files containing C<\\0> character which is treated as end of string).  For "
23591 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
23592 "functions which have a more complex interface."
23593 msgstr ""
23594
23595 #. type: textblock
23596 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3887
23597 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:3986
23598 #: ../src/guestfs-actions.pod:4074 ../src/guestfs-actions.pod:4482
23599 #: ../src/guestfs-actions.pod:4496 ../src/guestfs-actions.pod:5857
23600 #: ../src/guestfs-actions.pod:5871 ../src/guestfs-actions.pod:7691
23601 #: ../src/guestfs-actions.pod:7705
23602 msgid "(Added in 0.4)"
23603 msgstr ""
23604
23605 #. type: =head2
23606 #: ../src/guestfs-actions.pod:953
23607 msgid "guestfs_checksum"
23608 msgstr ""
23609
23610 #. type: verbatim
23611 #: ../src/guestfs-actions.pod:955
23612 #, no-wrap
23613 msgid ""
23614 " char *\n"
23615 " guestfs_checksum (guestfs_h *g,\n"
23616 "                   const char *csumtype,\n"
23617 "                   const char *path);\n"
23618 "\n"
23619 msgstr ""
23620
23621 #. type: textblock
23622 #: ../src/guestfs-actions.pod:1001
23623 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
23624 msgstr ""
23625
23626 #. type: textblock
23627 #: ../src/guestfs-actions.pod:1003
23628 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
23629 msgstr ""
23630
23631 #. type: textblock
23632 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1423
23633 #: ../src/guestfs-actions.pod:2279 ../src/guestfs-actions.pod:3585
23634 #: ../src/guestfs-actions.pod:3614 ../src/guestfs-actions.pod:3675
23635 #: ../src/guestfs-actions.pod:3702 ../src/guestfs-actions.pod:7394
23636 msgid "(Added in 1.0.2)"
23637 msgstr ""
23638
23639 #. type: =head2
23640 #: ../src/guestfs-actions.pod:1010
23641 msgid "guestfs_checksum_device"
23642 msgstr ""
23643
23644 #. type: verbatim
23645 #: ../src/guestfs-actions.pod:1012
23646 #, no-wrap
23647 msgid ""
23648 " char *\n"
23649 " guestfs_checksum_device (guestfs_h *g,\n"
23650 "                          const char *csumtype,\n"
23651 "                          const char *device);\n"
23652 "\n"
23653 msgstr ""
23654
23655 #. type: textblock
23656 #: ../src/guestfs-actions.pod:1017
23657 msgid ""
23658 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
23659 "device named C<device>.  For the types of checksums supported see the "
23660 "C<guestfs_checksum> command."
23661 msgstr ""
23662
23663 #. type: textblock
23664 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5306
23665 #: ../src/guestfs-actions.pod:5441 ../src/guestfs-actions.pod:5478
23666 #: ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:5678
23667 #: ../src/guestfs-actions.pod:7303 ../src/guestfs-actions.pod:7317
23668 #: ../src/guestfs-actions.pod:7717
23669 msgid "(Added in 1.3.2)"
23670 msgstr ""
23671
23672 #. type: =head2
23673 #: ../src/guestfs-actions.pod:1026
23674 msgid "guestfs_checksums_out"
23675 msgstr ""
23676
23677 #. type: verbatim
23678 #: ../src/guestfs-actions.pod:1028
23679 #, no-wrap
23680 msgid ""
23681 " int\n"
23682 " guestfs_checksums_out (guestfs_h *g,\n"
23683 "                        const char *csumtype,\n"
23684 "                        const char *directory,\n"
23685 "                        const char *sumsfile);\n"
23686 "\n"
23687 msgstr ""
23688
23689 #. type: textblock
23690 #: ../src/guestfs-actions.pod:1048
23691 msgid "(Added in 1.3.7)"
23692 msgstr ""
23693
23694 #. type: =head2
23695 #: ../src/guestfs-actions.pod:1050
23696 msgid "guestfs_chmod"
23697 msgstr ""
23698
23699 #. type: verbatim
23700 #: ../src/guestfs-actions.pod:1052
23701 #, no-wrap
23702 msgid ""
23703 " int\n"
23704 " guestfs_chmod (guestfs_h *g,\n"
23705 "                int mode,\n"
23706 "                const char *path);\n"
23707 "\n"
23708 msgstr ""
23709
23710 #. type: =head2
23711 #: ../src/guestfs-actions.pod:1070
23712 msgid "guestfs_chown"
23713 msgstr ""
23714
23715 #. type: verbatim
23716 #: ../src/guestfs-actions.pod:1072
23717 #, no-wrap
23718 msgid ""
23719 " int\n"
23720 " guestfs_chown (guestfs_h *g,\n"
23721 "                int owner,\n"
23722 "                int group,\n"
23723 "                const char *path);\n"
23724 "\n"
23725 msgstr ""
23726
23727 #. type: =head2
23728 #: ../src/guestfs-actions.pod:1088
23729 msgid "guestfs_command"
23730 msgstr ""
23731
23732 #. type: verbatim
23733 #: ../src/guestfs-actions.pod:1090
23734 #, no-wrap
23735 msgid ""
23736 " char *\n"
23737 " guestfs_command (guestfs_h *g,\n"
23738 "                  char *const *arguments);\n"
23739 "\n"
23740 msgstr ""
23741
23742 #. type: textblock
23743 #: ../src/guestfs-actions.pod:1099
23744 msgid ""
23745 "The single parameter is an argv-style list of arguments.  The first element "
23746 "is the name of the program to run.  Subsequent elements are parameters.  The "
23747 "list must be non-empty (ie. must contain a program name).  Note that the "
23748 "command runs directly, and is I<not> invoked via the shell (see "
23749 "C<guestfs_sh>)."
23750 msgstr ""
23751
23752 #. type: textblock
23753 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150
23754 #: ../src/guestfs-actions.pod:1722
23755 msgid "(Added in 0.9.1)"
23756 msgstr ""
23757
23758 #. type: =head2
23759 #: ../src/guestfs-actions.pod:1132
23760 msgid "guestfs_command_lines"
23761 msgstr ""
23762
23763 #. type: verbatim
23764 #: ../src/guestfs-actions.pod:1134
23765 #, no-wrap
23766 msgid ""
23767 " char **\n"
23768 " guestfs_command_lines (guestfs_h *g,\n"
23769 "                        char *const *arguments);\n"
23770 "\n"
23771 msgstr ""
23772
23773 #. type: textblock
23774 #: ../src/guestfs-actions.pod:1138
23775 msgid ""
23776 "This is the same as C<guestfs_command>, but splits the result into a list of "
23777 "lines."
23778 msgstr ""
23779
23780 #. type: textblock
23781 #: ../src/guestfs-actions.pod:1141
23782 msgid "See also: C<guestfs_sh_lines>"
23783 msgstr ""
23784
23785 #. type: =head2
23786 #: ../src/guestfs-actions.pod:1152
23787 msgid "guestfs_compress_device_out"
23788 msgstr ""
23789
23790 #. type: verbatim
23791 #: ../src/guestfs-actions.pod:1154
23792 #, no-wrap
23793 msgid ""
23794 " int\n"
23795 " guestfs_compress_device_out (guestfs_h *g,\n"
23796 "                              const char *ctype,\n"
23797 "                              const char *device,\n"
23798 "                              const char *zdevice,\n"
23799 "                              ...);\n"
23800 "\n"
23801 msgstr ""
23802
23803 #. type: verbatim
23804 #: ../src/guestfs-actions.pod:1166
23805 #, no-wrap
23806 msgid ""
23807 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
23808 "\n"
23809 msgstr ""
23810
23811 #. type: textblock
23812 #: ../src/guestfs-actions.pod:1171
23813 msgid ""
23814 "The C<ctype> and optional C<level> parameters have the same meaning as in "
23815 "C<guestfs_compress_out>."
23816 msgstr ""
23817
23818 #. type: =head2
23819 #: ../src/guestfs-actions.pod:1176
23820 msgid "guestfs_compress_device_out_va"
23821 msgstr ""
23822
23823 #. type: verbatim
23824 #: ../src/guestfs-actions.pod:1178
23825 #, no-wrap
23826 msgid ""
23827 " int\n"
23828 " guestfs_compress_device_out_va (guestfs_h *g,\n"
23829 "                                 const char *ctype,\n"
23830 "                                 const char *device,\n"
23831 "                                 const char *zdevice,\n"
23832 "                                 va_list args);\n"
23833 "\n"
23834 msgstr ""
23835
23836 #. type: textblock
23837 #: ../src/guestfs-actions.pod:1185
23838 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
23839 msgstr ""
23840
23841 #. type: =head2
23842 #: ../src/guestfs-actions.pod:1189
23843 msgid "guestfs_compress_device_out_argv"
23844 msgstr ""
23845
23846 #. type: verbatim
23847 #: ../src/guestfs-actions.pod:1191
23848 #, no-wrap
23849 msgid ""
23850 " int\n"
23851 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
23852 "                                   const char *ctype,\n"
23853 "                                   const char *device,\n"
23854 "                                   const char *zdevice,\n"
23855 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
23856 "\n"
23857 msgstr ""
23858
23859 #. type: textblock
23860 #: ../src/guestfs-actions.pod:1198
23861 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
23862 msgstr ""
23863
23864 #. type: =head2
23865 #: ../src/guestfs-actions.pod:1202
23866 msgid "guestfs_compress_out"
23867 msgstr ""
23868
23869 #. type: verbatim
23870 #: ../src/guestfs-actions.pod:1204
23871 #, no-wrap
23872 msgid ""
23873 " int\n"
23874 " guestfs_compress_out (guestfs_h *g,\n"
23875 "                       const char *ctype,\n"
23876 "                       const char *file,\n"
23877 "                       const char *zfile,\n"
23878 "                       ...);\n"
23879 "\n"
23880 msgstr ""
23881
23882 #. type: verbatim
23883 #: ../src/guestfs-actions.pod:1216
23884 #, no-wrap
23885 msgid ""
23886 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
23887 "\n"
23888 msgstr ""
23889
23890 #. type: =head2
23891 #: ../src/guestfs-actions.pod:1233
23892 msgid "guestfs_compress_out_va"
23893 msgstr ""
23894
23895 #. type: verbatim
23896 #: ../src/guestfs-actions.pod:1235
23897 #, no-wrap
23898 msgid ""
23899 " int\n"
23900 " guestfs_compress_out_va (guestfs_h *g,\n"
23901 "                          const char *ctype,\n"
23902 "                          const char *file,\n"
23903 "                          const char *zfile,\n"
23904 "                          va_list args);\n"
23905 "\n"
23906 msgstr ""
23907
23908 #. type: textblock
23909 #: ../src/guestfs-actions.pod:1242
23910 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
23911 msgstr ""
23912
23913 #. type: =head2
23914 #: ../src/guestfs-actions.pod:1246
23915 msgid "guestfs_compress_out_argv"
23916 msgstr ""
23917
23918 #. type: verbatim
23919 #: ../src/guestfs-actions.pod:1248
23920 #, no-wrap
23921 msgid ""
23922 " int\n"
23923 " guestfs_compress_out_argv (guestfs_h *g,\n"
23924 "                            const char *ctype,\n"
23925 "                            const char *file,\n"
23926 "                            const char *zfile,\n"
23927 "                            const struct guestfs_compress_out_argv *optargs);\n"
23928 "\n"
23929 msgstr ""
23930
23931 #. type: textblock
23932 #: ../src/guestfs-actions.pod:1255
23933 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
23934 msgstr ""
23935
23936 #. type: =head2
23937 #: ../src/guestfs-actions.pod:1259
23938 msgid "guestfs_config"
23939 msgstr ""
23940
23941 #. type: verbatim
23942 #: ../src/guestfs-actions.pod:1261
23943 #, no-wrap
23944 msgid ""
23945 " int\n"
23946 " guestfs_config (guestfs_h *g,\n"
23947 "                 const char *qemuparam,\n"
23948 "                 const char *qemuvalue);\n"
23949 "\n"
23950 msgstr ""
23951
23952 #. type: =head2
23953 #: ../src/guestfs-actions.pod:1279
23954 msgid "guestfs_copy_size"
23955 msgstr ""
23956
23957 #. type: verbatim
23958 #: ../src/guestfs-actions.pod:1281
23959 #, no-wrap
23960 msgid ""
23961 " int\n"
23962 " guestfs_copy_size (guestfs_h *g,\n"
23963 "                    const char *src,\n"
23964 "                    const char *dest,\n"
23965 "                    int64_t size);\n"
23966 "\n"
23967 msgstr ""
23968
23969 #. type: textblock
23970 #: ../src/guestfs-actions.pod:1295 ../src/guestfs-actions.pod:1418
23971 #: ../src/guestfs-actions.pod:1449 ../src/guestfs-actions.pod:1494
23972 #: ../src/guestfs-actions.pod:1871 ../src/guestfs-actions.pod:1893
23973 #: ../src/guestfs-actions.pod:3785 ../src/guestfs-actions.pod:7389
23974 #: ../src/guestfs-actions.pod:7423 ../src/guestfs-actions.pod:7930
23975 #: ../src/guestfs-actions.pod:7953
23976 msgid ""
23977 "This long-running command can generate progress notification messages so "
23978 "that the caller can display a progress bar or indicator.  To receive these "
23979 "messages, the caller must register a progress event callback.  See L<guestfs"
23980 "(3)/GUESTFS_EVENT_PROGRESS>."
23981 msgstr ""
23982
23983 #. type: textblock
23984 #: ../src/guestfs-actions.pod:1300 ../src/guestfs-actions.pod:4509
23985 #: ../src/guestfs-actions.pod:5884 ../src/guestfs-actions.pod:7624
23986 #: ../src/guestfs-actions.pod:7644 ../src/guestfs-actions.pod:7730
23987 msgid "(Added in 1.0.87)"
23988 msgstr ""
23989
23990 #. type: =head2
23991 #: ../src/guestfs-actions.pod:1302
23992 msgid "guestfs_cp"
23993 msgstr ""
23994
23995 #. type: verbatim
23996 #: ../src/guestfs-actions.pod:1304
23997 #, no-wrap
23998 msgid ""
23999 " int\n"
24000 " guestfs_cp (guestfs_h *g,\n"
24001 "             const char *src,\n"
24002 "             const char *dest);\n"
24003 "\n"
24004 msgstr ""
24005
24006 #. type: textblock
24007 #: ../src/guestfs-actions.pod:1314 ../src/guestfs-actions.pod:1328
24008 #: ../src/guestfs-actions.pod:1400 ../src/guestfs-actions.pod:1474
24009 #: ../src/guestfs-actions.pod:1588 ../src/guestfs-actions.pod:5253
24010 #: ../src/guestfs-actions.pod:5728
24011 msgid "(Added in 1.0.18)"
24012 msgstr ""
24013
24014 #. type: =head2
24015 #: ../src/guestfs-actions.pod:1316
24016 msgid "guestfs_cp_a"
24017 msgstr ""
24018
24019 #. type: verbatim
24020 #: ../src/guestfs-actions.pod:1318
24021 #, no-wrap
24022 msgid ""
24023 " int\n"
24024 " guestfs_cp_a (guestfs_h *g,\n"
24025 "               const char *src,\n"
24026 "               const char *dest);\n"
24027 "\n"
24028 msgstr ""
24029
24030 #. type: =head2
24031 #: ../src/guestfs-actions.pod:1330
24032 msgid "guestfs_dd"
24033 msgstr ""
24034
24035 #. type: verbatim
24036 #: ../src/guestfs-actions.pod:1332
24037 #, no-wrap
24038 msgid ""
24039 " int\n"
24040 " guestfs_dd (guestfs_h *g,\n"
24041 "             const char *src,\n"
24042 "             const char *dest);\n"
24043 "\n"
24044 msgstr ""
24045
24046 #. type: textblock
24047 #: ../src/guestfs-actions.pod:1342
24048 msgid ""
24049 "If the destination is a device, it must be as large or larger than the "
24050 "source file or device, otherwise the copy will fail.  This command cannot do "
24051 "partial copies (see C<guestfs_copy_size>)."
24052 msgstr ""
24053
24054 #. type: =head2
24055 #: ../src/guestfs-actions.pod:1350
24056 msgid "guestfs_df"
24057 msgstr ""
24058
24059 #. type: verbatim
24060 #: ../src/guestfs-actions.pod:1352
24061 #, no-wrap
24062 msgid ""
24063 " char *\n"
24064 " guestfs_df (guestfs_h *g);\n"
24065 "\n"
24066 msgstr ""
24067
24068 #. type: textblock
24069 #: ../src/guestfs-actions.pod:1357 ../src/guestfs-actions.pod:1374
24070 msgid ""
24071 "This command is mostly useful for interactive sessions.  It is I<not> "
24072 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
24073 "from programs."
24074 msgstr ""
24075
24076 #. type: textblock
24077 #: ../src/guestfs-actions.pod:1364 ../src/guestfs-actions.pod:1381
24078 #: ../src/guestfs-actions.pod:1499 ../src/guestfs-actions.pod:2504
24079 #: ../src/guestfs-actions.pod:2528 ../src/guestfs-actions.pod:2596
24080 #: ../src/guestfs-actions.pod:4619 ../src/guestfs-actions.pod:5153
24081 #: ../src/guestfs-actions.pod:7127 ../src/guestfs-actions.pod:7151
24082 #: ../src/guestfs-actions.pod:7770 ../src/guestfs-actions.pod:7783
24083 #: ../src/guestfs-actions.pod:7796
24084 msgid "(Added in 1.0.54)"
24085 msgstr ""
24086
24087 #. type: =head2
24088 #: ../src/guestfs-actions.pod:1366
24089 msgid "guestfs_df_h"
24090 msgstr ""
24091
24092 #. type: verbatim
24093 #: ../src/guestfs-actions.pod:1368
24094 #, no-wrap
24095 msgid ""
24096 " char *\n"
24097 " guestfs_df_h (guestfs_h *g);\n"
24098 "\n"
24099 msgstr ""
24100
24101 #. type: =head2
24102 #: ../src/guestfs-actions.pod:1383
24103 msgid "guestfs_dmesg"
24104 msgstr ""
24105
24106 #. type: verbatim
24107 #: ../src/guestfs-actions.pod:1385
24108 #, no-wrap
24109 msgid ""
24110 " char *\n"
24111 " guestfs_dmesg (guestfs_h *g);\n"
24112 "\n"
24113 msgstr ""
24114
24115 #. type: textblock
24116 #: ../src/guestfs-actions.pod:1392
24117 msgid ""
24118 "Another way to get the same information is to enable verbose messages with "
24119 "C<guestfs_set_verbose> or by setting the environment variable "
24120 "C<LIBGUESTFS_DEBUG=1> before running the program."
24121 msgstr ""
24122
24123 #. type: =head2
24124 #: ../src/guestfs-actions.pod:1402
24125 msgid "guestfs_download"
24126 msgstr ""
24127
24128 #. type: verbatim
24129 #: ../src/guestfs-actions.pod:1404
24130 #, no-wrap
24131 msgid ""
24132 " int\n"
24133 " guestfs_download (guestfs_h *g,\n"
24134 "                   const char *remotefilename,\n"
24135 "                   const char *filename);\n"
24136 "\n"
24137 msgstr ""
24138
24139 #. type: textblock
24140 #: ../src/guestfs-actions.pod:1414
24141 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
24142 msgstr ""
24143
24144 #. type: =head2
24145 #: ../src/guestfs-actions.pod:1425
24146 msgid "guestfs_download_offset"
24147 msgstr ""
24148
24149 #. type: verbatim
24150 #: ../src/guestfs-actions.pod:1427
24151 #, no-wrap
24152 msgid ""
24153 " int\n"
24154 " guestfs_download_offset (guestfs_h *g,\n"
24155 "                          const char *remotefilename,\n"
24156 "                          const char *filename,\n"
24157 "                          int64_t offset,\n"
24158 "                          int64_t size);\n"
24159 "\n"
24160 msgstr ""
24161
24162 #. type: textblock
24163 #: ../src/guestfs-actions.pod:1440
24164 msgid ""
24165 "Note that there is no limit on the amount of data that can be downloaded "
24166 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
24167 "full amount unless an error occurs."
24168 msgstr ""
24169
24170 #. type: textblock
24171 #: ../src/guestfs-actions.pod:1445
24172 msgid "See also C<guestfs_download>, C<guestfs_pread>."
24173 msgstr ""
24174
24175 #. type: textblock
24176 #: ../src/guestfs-actions.pod:1454 ../src/guestfs-actions.pod:7428
24177 msgid "(Added in 1.5.17)"
24178 msgstr ""
24179
24180 #. type: =head2
24181 #: ../src/guestfs-actions.pod:1456
24182 msgid "guestfs_drop_caches"
24183 msgstr ""
24184
24185 #. type: verbatim
24186 #: ../src/guestfs-actions.pod:1458
24187 #, no-wrap
24188 msgid ""
24189 " int\n"
24190 " guestfs_drop_caches (guestfs_h *g,\n"
24191 "                      int whattodrop);\n"
24192 "\n"
24193 msgstr ""
24194
24195 #. type: =head2
24196 #: ../src/guestfs-actions.pod:1476
24197 msgid "guestfs_du"
24198 msgstr ""
24199
24200 #. type: verbatim
24201 #: ../src/guestfs-actions.pod:1478
24202 #, no-wrap
24203 msgid ""
24204 " int64_t\n"
24205 " guestfs_du (guestfs_h *g,\n"
24206 "             const char *path);\n"
24207 "\n"
24208 msgstr ""
24209
24210 #. type: =head2
24211 #: ../src/guestfs-actions.pod:1501
24212 msgid "guestfs_e2fsck_f"
24213 msgstr ""
24214
24215 #. type: verbatim
24216 #: ../src/guestfs-actions.pod:1503
24217 #, no-wrap
24218 msgid ""
24219 " int\n"
24220 " guestfs_e2fsck_f (guestfs_h *g,\n"
24221 "                   const char *device);\n"
24222 "\n"
24223 msgstr ""
24224
24225 #. type: textblock
24226 #: ../src/guestfs-actions.pod:1511
24227 msgid ""
24228 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
24229 "Normally you should use C<guestfs_fsck>."
24230 msgstr ""
24231
24232 #. type: textblock
24233 #: ../src/guestfs-actions.pod:1516
24234 msgid "(Added in 1.0.29)"
24235 msgstr ""
24236
24237 #. type: =head2
24238 #: ../src/guestfs-actions.pod:1518
24239 msgid "guestfs_echo_daemon"
24240 msgstr ""
24241
24242 #. type: verbatim
24243 #: ../src/guestfs-actions.pod:1520
24244 #, no-wrap
24245 msgid ""
24246 " char *\n"
24247 " guestfs_echo_daemon (guestfs_h *g,\n"
24248 "                      char *const *words);\n"
24249 "\n"
24250 msgstr ""
24251
24252 #. type: textblock
24253 #: ../src/guestfs-actions.pod:1529
24254 msgid "See also C<guestfs_ping_daemon>."
24255 msgstr ""
24256
24257 #. type: textblock
24258 #: ../src/guestfs-actions.pod:1534 ../src/guestfs-actions.pod:2290
24259 #: ../src/guestfs-actions.pod:6599
24260 msgid "(Added in 1.0.69)"
24261 msgstr ""
24262
24263 #. type: =head2
24264 #: ../src/guestfs-actions.pod:1536
24265 msgid "guestfs_egrep"
24266 msgstr ""
24267
24268 #. type: verbatim
24269 #: ../src/guestfs-actions.pod:1538
24270 #, no-wrap
24271 msgid ""
24272 " char **\n"
24273 " guestfs_egrep (guestfs_h *g,\n"
24274 "                const char *regex,\n"
24275 "                const char *path);\n"
24276 "\n"
24277 msgstr ""
24278
24279 #. type: textblock
24280 #: ../src/guestfs-actions.pod:1553 ../src/guestfs-actions.pod:1572
24281 #: ../src/guestfs-actions.pod:1629 ../src/guestfs-actions.pod:1675
24282 #: ../src/guestfs-actions.pod:1694 ../src/guestfs-actions.pod:2420
24283 #: ../src/guestfs-actions.pod:2439 ../src/guestfs-actions.pod:2617
24284 #: ../src/guestfs-actions.pod:2630 ../src/guestfs-actions.pod:2645
24285 #: ../src/guestfs-actions.pod:2691 ../src/guestfs-actions.pod:2713
24286 #: ../src/guestfs-actions.pod:2726 ../src/guestfs-actions.pod:3999
24287 #: ../src/guestfs-actions.pod:4013 ../src/guestfs-actions.pod:4026
24288 #: ../src/guestfs-actions.pod:4040 ../src/guestfs-actions.pod:5041
24289 #: ../src/guestfs-actions.pod:6062 ../src/guestfs-actions.pod:6111
24290 #: ../src/guestfs-actions.pod:6995 ../src/guestfs-actions.pod:7007
24291 #: ../src/guestfs-actions.pod:7020 ../src/guestfs-actions.pod:7033
24292 #: ../src/guestfs-actions.pod:7055 ../src/guestfs-actions.pod:7068
24293 #: ../src/guestfs-actions.pod:7081 ../src/guestfs-actions.pod:7094
24294 #: ../src/guestfs-actions.pod:7888 ../src/guestfs-actions.pod:7907
24295 #: ../src/guestfs-actions.pod:8001 ../src/guestfs-actions.pod:8020
24296 #: ../src/guestfs-actions.pod:8066 ../src/guestfs-actions.pod:8085
24297 msgid "(Added in 1.0.66)"
24298 msgstr ""
24299
24300 #. type: =head2
24301 #: ../src/guestfs-actions.pod:1555
24302 msgid "guestfs_egrepi"
24303 msgstr ""
24304
24305 #. type: verbatim
24306 #: ../src/guestfs-actions.pod:1557
24307 #, no-wrap
24308 msgid ""
24309 " char **\n"
24310 " guestfs_egrepi (guestfs_h *g,\n"
24311 "                 const char *regex,\n"
24312 "                 const char *path);\n"
24313 "\n"
24314 msgstr ""
24315
24316 #. type: =head2
24317 #: ../src/guestfs-actions.pod:1574
24318 msgid "guestfs_equal"
24319 msgstr ""
24320
24321 #. type: verbatim
24322 #: ../src/guestfs-actions.pod:1576
24323 #, no-wrap
24324 msgid ""
24325 " int\n"
24326 " guestfs_equal (guestfs_h *g,\n"
24327 "                const char *file1,\n"
24328 "                const char *file2);\n"
24329 "\n"
24330 msgstr ""
24331
24332 #. type: =head2
24333 #: ../src/guestfs-actions.pod:1590
24334 msgid "guestfs_exists"
24335 msgstr ""
24336
24337 #. type: verbatim
24338 #: ../src/guestfs-actions.pod:1592
24339 #, no-wrap
24340 msgid ""
24341 " int\n"
24342 " guestfs_exists (guestfs_h *g,\n"
24343 "                 const char *path);\n"
24344 "\n"
24345 msgstr ""
24346
24347 #. type: textblock
24348 #: ../src/guestfs-actions.pod:1599
24349 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
24350 msgstr ""
24351
24352 #. type: =head2
24353 #: ../src/guestfs-actions.pod:1605
24354 msgid "guestfs_fallocate"
24355 msgstr ""
24356
24357 #. type: verbatim
24358 #: ../src/guestfs-actions.pod:1607
24359 #, no-wrap
24360 msgid ""
24361 " int\n"
24362 " guestfs_fallocate (guestfs_h *g,\n"
24363 "                    const char *path,\n"
24364 "                    int len);\n"
24365 "\n"
24366 msgstr ""
24367
24368 #. type: textblock
24369 #: ../src/guestfs-actions.pod:1612
24370 msgid ""
24371 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
24372 "call instead."
24373 msgstr ""
24374
24375 #. type: =head2
24376 #: ../src/guestfs-actions.pod:1631
24377 msgid "guestfs_fallocate64"
24378 msgstr ""
24379
24380 #. type: verbatim
24381 #: ../src/guestfs-actions.pod:1633
24382 #, no-wrap
24383 msgid ""
24384 " int\n"
24385 " guestfs_fallocate64 (guestfs_h *g,\n"
24386 "                      const char *path,\n"
24387 "                      int64_t len);\n"
24388 "\n"
24389 msgstr ""
24390
24391 #. type: textblock
24392 #: ../src/guestfs-actions.pod:1642
24393 msgid ""
24394 "Note that this call allocates disk blocks for the file.  To create a sparse "
24395 "file use C<guestfs_truncate_size> instead."
24396 msgstr ""
24397
24398 #. type: textblock
24399 #: ../src/guestfs-actions.pod:1645
24400 msgid ""
24401 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
24402 "oversight it only allowed 30 bit lengths to be specified, effectively "
24403 "limiting the maximum size of files created through that call to 1GB."
24404 msgstr ""
24405
24406 #. type: textblock
24407 #: ../src/guestfs-actions.pod:1656
24408 msgid "(Added in 1.3.17)"
24409 msgstr ""
24410
24411 #. type: =head2
24412 #: ../src/guestfs-actions.pod:1658
24413 msgid "guestfs_fgrep"
24414 msgstr ""
24415
24416 #. type: verbatim
24417 #: ../src/guestfs-actions.pod:1660
24418 #, no-wrap
24419 msgid ""
24420 " char **\n"
24421 " guestfs_fgrep (guestfs_h *g,\n"
24422 "                const char *pattern,\n"
24423 "                const char *path);\n"
24424 "\n"
24425 msgstr ""
24426
24427 #. type: =head2
24428 #: ../src/guestfs-actions.pod:1677
24429 msgid "guestfs_fgrepi"
24430 msgstr ""
24431
24432 #. type: verbatim
24433 #: ../src/guestfs-actions.pod:1679
24434 #, no-wrap
24435 msgid ""
24436 " char **\n"
24437 " guestfs_fgrepi (guestfs_h *g,\n"
24438 "                 const char *pattern,\n"
24439 "                 const char *path);\n"
24440 "\n"
24441 msgstr ""
24442
24443 #. type: =head2
24444 #: ../src/guestfs-actions.pod:1696
24445 msgid "guestfs_file"
24446 msgstr ""
24447
24448 #. type: verbatim
24449 #: ../src/guestfs-actions.pod:1698
24450 #, no-wrap
24451 msgid ""
24452 " char *\n"
24453 " guestfs_file (guestfs_h *g,\n"
24454 "               const char *path);\n"
24455 "\n"
24456 msgstr ""
24457
24458 #. type: textblock
24459 #: ../src/guestfs-actions.pod:1716
24460 msgid ""
24461 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
24462 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
24463 msgstr ""
24464
24465 #. type: =head2
24466 #: ../src/guestfs-actions.pod:1724
24467 msgid "guestfs_file_architecture"
24468 msgstr ""
24469
24470 #. type: verbatim
24471 #: ../src/guestfs-actions.pod:1726
24472 #, no-wrap
24473 msgid ""
24474 " char *\n"
24475 " guestfs_file_architecture (guestfs_h *g,\n"
24476 "                            const char *filename);\n"
24477 "\n"
24478 msgstr ""
24479
24480 #. type: textblock
24481 #: ../src/guestfs-actions.pod:1834 ../src/guestfs-actions.pod:1997
24482 #: ../src/guestfs-actions.pod:2014 ../src/guestfs-actions.pod:2746
24483 #: ../src/guestfs-actions.pod:2840 ../src/guestfs-actions.pod:2906
24484 #: ../src/guestfs-actions.pod:3093 ../src/guestfs-actions.pod:3111
24485 #: ../src/guestfs-actions.pod:3151 ../src/guestfs-actions.pod:3226
24486 #: ../src/guestfs-actions.pod:3319 ../src/guestfs-actions.pod:3556
24487 #: ../src/guestfs-actions.pod:3688
24488 msgid "(Added in 1.5.3)"
24489 msgstr ""
24490
24491 #. type: =head2
24492 #: ../src/guestfs-actions.pod:1836
24493 msgid "guestfs_filesize"
24494 msgstr ""
24495
24496 #. type: verbatim
24497 #: ../src/guestfs-actions.pod:1838
24498 #, no-wrap
24499 msgid ""
24500 " int64_t\n"
24501 " guestfs_filesize (guestfs_h *g,\n"
24502 "                   const char *file);\n"
24503 "\n"
24504 msgstr ""
24505
24506 #. type: textblock
24507 #: ../src/guestfs-actions.pod:1844
24508 msgid ""
24509 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
24510 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
24511 "devices, use C<guestfs_blockdev_getsize64>."
24512 msgstr ""
24513
24514 #. type: textblock
24515 #: ../src/guestfs-actions.pod:1850
24516 msgid "(Added in 1.0.82)"
24517 msgstr ""
24518
24519 #. type: =head2
24520 #: ../src/guestfs-actions.pod:1852
24521 msgid "guestfs_fill"
24522 msgstr ""
24523
24524 #. type: verbatim
24525 #: ../src/guestfs-actions.pod:1854
24526 #, no-wrap
24527 msgid ""
24528 " int\n"
24529 " guestfs_fill (guestfs_h *g,\n"
24530 "               int c,\n"
24531 "               int len,\n"
24532 "               const char *path);\n"
24533 "\n"
24534 msgstr ""
24535
24536 #. type: textblock
24537 #: ../src/guestfs-actions.pod:1864
24538 msgid ""
24539 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
24540 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
24541 "bytes use C<guestfs_fill_pattern>."
24542 msgstr ""
24543
24544 #. type: textblock
24545 #: ../src/guestfs-actions.pod:1876
24546 msgid "(Added in 1.0.79)"
24547 msgstr ""
24548
24549 #. type: =head2
24550 #: ../src/guestfs-actions.pod:1878
24551 msgid "guestfs_fill_pattern"
24552 msgstr ""
24553
24554 #. type: verbatim
24555 #: ../src/guestfs-actions.pod:1880
24556 #, no-wrap
24557 msgid ""
24558 " int\n"
24559 " guestfs_fill_pattern (guestfs_h *g,\n"
24560 "                       const char *pattern,\n"
24561 "                       int len,\n"
24562 "                       const char *path);\n"
24563 "\n"
24564 msgstr ""
24565
24566 #. type: textblock
24567 #: ../src/guestfs-actions.pod:1886
24568 msgid ""
24569 "This function is like C<guestfs_fill> except that it creates a new file of "
24570 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
24571 "pattern is truncated if necessary to ensure the length of the file is "
24572 "exactly C<len> bytes."
24573 msgstr ""
24574
24575 #. type: textblock
24576 #: ../src/guestfs-actions.pod:1898
24577 msgid "(Added in 1.3.12)"
24578 msgstr ""
24579
24580 #. type: =head2
24581 #: ../src/guestfs-actions.pod:1900
24582 msgid "guestfs_find"
24583 msgstr ""
24584
24585 #. type: verbatim
24586 #: ../src/guestfs-actions.pod:1902
24587 #, no-wrap
24588 msgid ""
24589 " char **\n"
24590 " guestfs_find (guestfs_h *g,\n"
24591 "               const char *directory);\n"
24592 "\n"
24593 msgstr ""
24594
24595 #. type: textblock
24596 #: ../src/guestfs-actions.pod:1918
24597 msgid ""
24598 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
24599 msgstr ""
24600
24601 #. type: textblock
24602 #: ../src/guestfs-actions.pod:1931
24603 msgid "See also C<guestfs_find0>."
24604 msgstr ""
24605
24606 #. type: textblock
24607 #: ../src/guestfs-actions.pod:1940 ../src/guestfs-actions.pod:4446
24608 #: ../src/guestfs-actions.pod:6146
24609 msgid "(Added in 1.0.27)"
24610 msgstr ""
24611
24612 #. type: =head2
24613 #: ../src/guestfs-actions.pod:1942
24614 msgid "guestfs_find0"
24615 msgstr ""
24616
24617 #. type: verbatim
24618 #: ../src/guestfs-actions.pod:1944
24619 #, no-wrap
24620 msgid ""
24621 " int\n"
24622 " guestfs_find0 (guestfs_h *g,\n"
24623 "                const char *directory,\n"
24624 "                const char *files);\n"
24625 "\n"
24626 msgstr ""
24627
24628 #. type: textblock
24629 #: ../src/guestfs-actions.pod:1953
24630 msgid ""
24631 "This command works the same way as C<guestfs_find> with the following "
24632 "exceptions:"
24633 msgstr ""
24634
24635 #. type: textblock
24636 #: ../src/guestfs-actions.pod:1980
24637 msgid "(Added in 1.0.74)"
24638 msgstr ""
24639
24640 #. type: =head2
24641 #: ../src/guestfs-actions.pod:1982
24642 msgid "guestfs_findfs_label"
24643 msgstr ""
24644
24645 #. type: verbatim
24646 #: ../src/guestfs-actions.pod:1984
24647 #, no-wrap
24648 msgid ""
24649 " char *\n"
24650 " guestfs_findfs_label (guestfs_h *g,\n"
24651 "                       const char *label);\n"
24652 "\n"
24653 msgstr ""
24654
24655 #. type: textblock
24656 #: ../src/guestfs-actions.pod:1992
24657 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
24658 msgstr ""
24659
24660 #. type: =head2
24661 #: ../src/guestfs-actions.pod:1999
24662 msgid "guestfs_findfs_uuid"
24663 msgstr ""
24664
24665 #. type: verbatim
24666 #: ../src/guestfs-actions.pod:2001
24667 #, no-wrap
24668 msgid ""
24669 " char *\n"
24670 " guestfs_findfs_uuid (guestfs_h *g,\n"
24671 "                      const char *uuid);\n"
24672 "\n"
24673 msgstr ""
24674
24675 #. type: textblock
24676 #: ../src/guestfs-actions.pod:2009
24677 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
24678 msgstr ""
24679
24680 #. type: =head2
24681 #: ../src/guestfs-actions.pod:2016
24682 msgid "guestfs_fsck"
24683 msgstr ""
24684
24685 #. type: verbatim
24686 #: ../src/guestfs-actions.pod:2018
24687 #, no-wrap
24688 msgid ""
24689 " int\n"
24690 " guestfs_fsck (guestfs_h *g,\n"
24691 "               const char *fstype,\n"
24692 "               const char *device);\n"
24693 "\n"
24694 msgstr ""
24695
24696 #. type: textblock
24697 #: ../src/guestfs-actions.pod:2053 ../src/guestfs-actions.pod:7935
24698 msgid "(Added in 1.0.16)"
24699 msgstr ""
24700
24701 #. type: =head2
24702 #: ../src/guestfs-actions.pod:2055
24703 msgid "guestfs_get_append"
24704 msgstr ""
24705
24706 #. type: verbatim
24707 #: ../src/guestfs-actions.pod:2057
24708 #, no-wrap
24709 msgid ""
24710 " const char *\n"
24711 " guestfs_get_append (guestfs_h *g);\n"
24712 "\n"
24713 msgstr ""
24714
24715 #. type: textblock
24716 #: ../src/guestfs-actions.pod:2065
24717 msgid ""
24718 "This function returns a string which may be NULL.  There is no way to return "
24719 "an error from this function.  The string is owned by the guest handle and "
24720 "must I<not> be freed."
24721 msgstr ""
24722
24723 #. type: textblock
24724 #: ../src/guestfs-actions.pod:2069 ../src/guestfs-actions.pod:5824
24725 #: ../src/guestfs-actions.pod:6306 ../src/guestfs-actions.pod:6762
24726 #: ../src/guestfs-actions.pod:6781 ../src/guestfs-actions.pod:6797
24727 #: ../src/guestfs-actions.pod:6821 ../src/guestfs-actions.pod:7575
24728 #: ../src/guestfs-actions.pod:7590 ../src/guestfs-actions.pod:7982
24729 msgid "(Added in 1.0.26)"
24730 msgstr ""
24731
24732 #. type: =head2
24733 #: ../src/guestfs-actions.pod:2071
24734 msgid "guestfs_get_attach_method"
24735 msgstr ""
24736
24737 #. type: verbatim
24738 #: ../src/guestfs-actions.pod:2073
24739 #, no-wrap
24740 msgid ""
24741 " char *\n"
24742 " guestfs_get_attach_method (guestfs_h *g);\n"
24743 "\n"
24744 msgstr ""
24745
24746 #. type: textblock
24747 #: ../src/guestfs-actions.pod:2076
24748 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
24749 msgstr ""
24750
24751 #. type: textblock
24752 #: ../src/guestfs-actions.pod:2081 ../src/guestfs-actions.pod:6336
24753 msgid "(Added in 1.9.8)"
24754 msgstr ""
24755
24756 #. type: =head2
24757 #: ../src/guestfs-actions.pod:2083
24758 msgid "guestfs_get_autosync"
24759 msgstr ""
24760
24761 #. type: verbatim
24762 #: ../src/guestfs-actions.pod:2085
24763 #, no-wrap
24764 msgid ""
24765 " int\n"
24766 " guestfs_get_autosync (guestfs_h *g);\n"
24767 "\n"
24768 msgstr ""
24769
24770 #. type: =head2
24771 #: ../src/guestfs-actions.pod:2094
24772 msgid "guestfs_get_direct"
24773 msgstr ""
24774
24775 #. type: verbatim
24776 #: ../src/guestfs-actions.pod:2096
24777 #, no-wrap
24778 msgid ""
24779 " int\n"
24780 " guestfs_get_direct (guestfs_h *g);\n"
24781 "\n"
24782 msgstr ""
24783
24784 #. type: textblock
24785 #: ../src/guestfs-actions.pod:2103 ../src/guestfs-actions.pod:6377
24786 msgid "(Added in 1.0.72)"
24787 msgstr ""
24788
24789 #. type: =head2
24790 #: ../src/guestfs-actions.pod:2105
24791 msgid "guestfs_get_e2label"
24792 msgstr ""
24793
24794 #. type: verbatim
24795 #: ../src/guestfs-actions.pod:2107
24796 #, no-wrap
24797 msgid ""
24798 " char *\n"
24799 " guestfs_get_e2label (guestfs_h *g,\n"
24800 "                      const char *device);\n"
24801 "\n"
24802 msgstr ""
24803
24804 #. type: textblock
24805 #: ../src/guestfs-actions.pod:2111
24806 msgid ""
24807 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
24808 "call instead."
24809 msgstr ""
24810
24811 #. type: textblock
24812 #: ../src/guestfs-actions.pod:2124 ../src/guestfs-actions.pod:2145
24813 #: ../src/guestfs-actions.pod:6395 ../src/guestfs-actions.pod:6414
24814 msgid "(Added in 1.0.15)"
24815 msgstr ""
24816
24817 #. type: =head2
24818 #: ../src/guestfs-actions.pod:2126
24819 msgid "guestfs_get_e2uuid"
24820 msgstr ""
24821
24822 #. type: verbatim
24823 #: ../src/guestfs-actions.pod:2128
24824 #, no-wrap
24825 msgid ""
24826 " char *\n"
24827 " guestfs_get_e2uuid (guestfs_h *g,\n"
24828 "                     const char *device);\n"
24829 "\n"
24830 msgstr ""
24831
24832 #. type: textblock
24833 #: ../src/guestfs-actions.pod:2132
24834 msgid ""
24835 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
24836 "call instead."
24837 msgstr ""
24838
24839 #. type: =head2
24840 #: ../src/guestfs-actions.pod:2147
24841 msgid "guestfs_get_memsize"
24842 msgstr ""
24843
24844 #. type: verbatim
24845 #: ../src/guestfs-actions.pod:2149
24846 #, no-wrap
24847 msgid ""
24848 " int\n"
24849 " guestfs_get_memsize (guestfs_h *g);\n"
24850 "\n"
24851 msgstr ""
24852
24853 #. type: textblock
24854 #: ../src/guestfs-actions.pod:2155
24855 msgid ""
24856 "If C<guestfs_set_memsize> was not called on this handle, and if "
24857 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
24858 "value for memsize."
24859 msgstr ""
24860
24861 #. type: textblock
24862 #: ../src/guestfs-actions.pod:2164 ../src/guestfs-actions.pod:4737
24863 #: ../src/guestfs-actions.pod:4946 ../src/guestfs-actions.pod:4965
24864 #: ../src/guestfs-actions.pod:4984 ../src/guestfs-actions.pod:4996
24865 #: ../src/guestfs-actions.pod:5013 ../src/guestfs-actions.pod:5026
24866 #: ../src/guestfs-actions.pod:6049 ../src/guestfs-actions.pod:6435
24867 #: ../src/guestfs-actions.pod:6729 ../src/guestfs-actions.pod:7344
24868 msgid "(Added in 1.0.55)"
24869 msgstr ""
24870
24871 #. type: =head2
24872 #: ../src/guestfs-actions.pod:2166
24873 msgid "guestfs_get_network"
24874 msgstr ""
24875
24876 #. type: verbatim
24877 #: ../src/guestfs-actions.pod:2168
24878 #, no-wrap
24879 msgid ""
24880 " int\n"
24881 " guestfs_get_network (guestfs_h *g);\n"
24882 "\n"
24883 msgstr ""
24884
24885 #. type: textblock
24886 #: ../src/guestfs-actions.pod:2175 ../src/guestfs-actions.pod:6454
24887 msgid "(Added in 1.5.4)"
24888 msgstr ""
24889
24890 #. type: =head2
24891 #: ../src/guestfs-actions.pod:2177
24892 msgid "guestfs_get_path"
24893 msgstr ""
24894
24895 #. type: verbatim
24896 #: ../src/guestfs-actions.pod:2179
24897 #, no-wrap
24898 msgid ""
24899 " const char *\n"
24900 " guestfs_get_path (guestfs_h *g);\n"
24901 "\n"
24902 msgstr ""
24903
24904 #. type: textblock
24905 #: ../src/guestfs-actions.pod:2187 ../src/guestfs-actions.pod:2227
24906 msgid ""
24907 "This function returns a string, or NULL on error.  The string is owned by "
24908 "the guest handle and must I<not> be freed."
24909 msgstr ""
24910
24911 #. type: =head2
24912 #: ../src/guestfs-actions.pod:2192
24913 msgid "guestfs_get_pgroup"
24914 msgstr ""
24915
24916 #. type: verbatim
24917 #: ../src/guestfs-actions.pod:2194
24918 #, no-wrap
24919 msgid ""
24920 " int\n"
24921 " guestfs_get_pgroup (guestfs_h *g);\n"
24922 "\n"
24923 msgstr ""
24924
24925 #. type: textblock
24926 #: ../src/guestfs-actions.pod:2201 ../src/guestfs-actions.pod:6490
24927 #: ../src/guestfs-actions.pod:7836
24928 msgid "(Added in 1.11.18)"
24929 msgstr ""
24930
24931 #. type: =head2
24932 #: ../src/guestfs-actions.pod:2203
24933 msgid "guestfs_get_pid"
24934 msgstr ""
24935
24936 #. type: verbatim
24937 #: ../src/guestfs-actions.pod:2205
24938 #, no-wrap
24939 msgid ""
24940 " int\n"
24941 " guestfs_get_pid (guestfs_h *g);\n"
24942 "\n"
24943 msgstr ""
24944
24945 #. type: textblock
24946 #: ../src/guestfs-actions.pod:2215
24947 msgid "(Added in 1.0.56)"
24948 msgstr ""
24949
24950 #. type: =head2
24951 #: ../src/guestfs-actions.pod:2217
24952 msgid "guestfs_get_qemu"
24953 msgstr ""
24954
24955 #. type: verbatim
24956 #: ../src/guestfs-actions.pod:2219
24957 #, no-wrap
24958 msgid ""
24959 " const char *\n"
24960 " guestfs_get_qemu (guestfs_h *g);\n"
24961 "\n"
24962 msgstr ""
24963
24964 #. type: textblock
24965 #: ../src/guestfs-actions.pod:2230 ../src/guestfs-actions.pod:6518
24966 msgid "(Added in 1.0.6)"
24967 msgstr ""
24968
24969 #. type: =head2
24970 #: ../src/guestfs-actions.pod:2232
24971 msgid "guestfs_get_recovery_proc"
24972 msgstr ""
24973
24974 #. type: verbatim
24975 #: ../src/guestfs-actions.pod:2234
24976 #, no-wrap
24977 msgid ""
24978 " int\n"
24979 " guestfs_get_recovery_proc (guestfs_h *g);\n"
24980 "\n"
24981 msgstr ""
24982
24983 #. type: textblock
24984 #: ../src/guestfs-actions.pod:2241 ../src/guestfs-actions.pod:3810
24985 #: ../src/guestfs-actions.pod:4141 ../src/guestfs-actions.pod:4544
24986 #: ../src/guestfs-actions.pod:4576 ../src/guestfs-actions.pod:5754
24987 #: ../src/guestfs-actions.pod:6097 ../src/guestfs-actions.pod:6542
24988 #: ../src/guestfs-actions.pod:7247 ../src/guestfs-actions.pod:7267
24989 #: ../src/guestfs-actions.pod:7459
24990 msgid "(Added in 1.0.77)"
24991 msgstr ""
24992
24993 #. type: =head2
24994 #: ../src/guestfs-actions.pod:2243
24995 msgid "guestfs_get_selinux"
24996 msgstr ""
24997
24998 #. type: verbatim
24999 #: ../src/guestfs-actions.pod:2245
25000 #, no-wrap
25001 msgid ""
25002 " int\n"
25003 " guestfs_get_selinux (guestfs_h *g);\n"
25004 "\n"
25005 msgstr ""
25006
25007 #. type: textblock
25008 #: ../src/guestfs-actions.pod:2248
25009 msgid ""
25010 "This returns the current setting of the selinux flag which is passed to the "
25011 "appliance at boot time.  See C<guestfs_set_selinux>."
25012 msgstr ""
25013
25014 #. type: textblock
25015 #: ../src/guestfs-actions.pod:2256 ../src/guestfs-actions.pod:2328
25016 #: ../src/guestfs-actions.pod:6561 ../src/guestfs-actions.pod:6633
25017 msgid "(Added in 1.0.67)"
25018 msgstr ""
25019
25020 #. type: =head2
25021 #: ../src/guestfs-actions.pod:2258
25022 msgid "guestfs_get_smp"
25023 msgstr ""
25024
25025 #. type: verbatim
25026 #: ../src/guestfs-actions.pod:2260
25027 #, no-wrap
25028 msgid ""
25029 " int\n"
25030 " guestfs_get_smp (guestfs_h *g);\n"
25031 "\n"
25032 msgstr ""
25033
25034 #. type: =head2
25035 #: ../src/guestfs-actions.pod:2267
25036 msgid "guestfs_get_state"
25037 msgstr ""
25038
25039 #. type: verbatim
25040 #: ../src/guestfs-actions.pod:2269
25041 #, no-wrap
25042 msgid ""
25043 " int\n"
25044 " guestfs_get_state (guestfs_h *g);\n"
25045 "\n"
25046 msgstr ""
25047
25048 #. type: =head2
25049 #: ../src/guestfs-actions.pod:2281
25050 msgid "guestfs_get_trace"
25051 msgstr ""
25052
25053 #. type: verbatim
25054 #: ../src/guestfs-actions.pod:2283
25055 #, no-wrap
25056 msgid ""
25057 " int\n"
25058 " guestfs_get_trace (guestfs_h *g);\n"
25059 "\n"
25060 msgstr ""
25061
25062 #. type: =head2
25063 #: ../src/guestfs-actions.pod:2292
25064 msgid "guestfs_get_umask"
25065 msgstr ""
25066
25067 #. type: verbatim
25068 #: ../src/guestfs-actions.pod:2294
25069 #, no-wrap
25070 msgid ""
25071 " int\n"
25072 " guestfs_get_umask (guestfs_h *g);\n"
25073 "\n"
25074 msgstr ""
25075
25076 #. type: textblock
25077 #: ../src/guestfs-actions.pod:2297
25078 msgid ""
25079 "Return the current umask.  By default the umask is C<022> unless it has been "
25080 "set by calling C<guestfs_umask>."
25081 msgstr ""
25082
25083 #. type: =head2
25084 #: ../src/guestfs-actions.pod:2304
25085 msgid "guestfs_get_verbose"
25086 msgstr ""
25087
25088 #. type: verbatim
25089 #: ../src/guestfs-actions.pod:2306
25090 #, no-wrap
25091 msgid ""
25092 " int\n"
25093 " guestfs_get_verbose (guestfs_h *g);\n"
25094 "\n"
25095 msgstr ""
25096
25097 #. type: =head2
25098 #: ../src/guestfs-actions.pod:2315
25099 msgid "guestfs_getcon"
25100 msgstr ""
25101
25102 #. type: verbatim
25103 #: ../src/guestfs-actions.pod:2317
25104 #, no-wrap
25105 msgid ""
25106 " char *\n"
25107 " guestfs_getcon (guestfs_h *g);\n"
25108 "\n"
25109 msgstr ""
25110
25111 #. type: textblock
25112 #: ../src/guestfs-actions.pod:2322
25113 msgid ""
25114 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
25115 msgstr ""
25116
25117 #. type: =head2
25118 #: ../src/guestfs-actions.pod:2330
25119 msgid "guestfs_getxattr"
25120 msgstr ""
25121
25122 #. type: verbatim
25123 #: ../src/guestfs-actions.pod:2332
25124 #, no-wrap
25125 msgid ""
25126 " char *\n"
25127 " guestfs_getxattr (guestfs_h *g,\n"
25128 "                   const char *path,\n"
25129 "                   const char *name,\n"
25130 "                   size_t *size_r);\n"
25131 "\n"
25132 msgstr ""
25133
25134 #. type: textblock
25135 #: ../src/guestfs-actions.pod:2338
25136 msgid ""
25137 "Get a single extended attribute from file C<path> named C<name>.  This call "
25138 "follows symlinks.  If you want to lookup an extended attribute for the "
25139 "symlink itself, use C<guestfs_lgetxattr>."
25140 msgstr ""
25141
25142 #. type: textblock
25143 #: ../src/guestfs-actions.pod:2342 ../src/guestfs-actions.pod:3824
25144 msgid ""
25145 "Normally it is better to get all extended attributes from a file in one go "
25146 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
25147 "implementations are buggy and do not provide a way to list out attributes.  "
25148 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
25149 "extended attributes you want in advance and call this function."
25150 msgstr ""
25151
25152 #. type: textblock
25153 #: ../src/guestfs-actions.pod:2352
25154 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
25155 msgstr ""
25156
25157 #. type: textblock
25158 #: ../src/guestfs-actions.pod:2354 ../src/guestfs-actions.pod:2567
25159 #: ../src/guestfs-actions.pod:3041 ../src/guestfs-actions.pod:3836
25160 #: ../src/guestfs-actions.pod:5747 ../src/guestfs-actions.pod:5773
25161 #: ../src/guestfs-actions.pod:5954
25162 msgid ""
25163 "This function returns a buffer, or NULL on error.  The size of the returned "
25164 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
25165 "after use>."
25166 msgstr ""
25167
25168 #. type: textblock
25169 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:3840
25170 msgid "(Added in 1.7.24)"
25171 msgstr ""
25172
25173 #. type: =head2
25174 #: ../src/guestfs-actions.pod:2360
25175 msgid "guestfs_getxattrs"
25176 msgstr ""
25177
25178 #. type: verbatim
25179 #: ../src/guestfs-actions.pod:2362
25180 #, no-wrap
25181 msgid ""
25182 " struct guestfs_xattr_list *\n"
25183 " guestfs_getxattrs (guestfs_h *g,\n"
25184 "                    const char *path);\n"
25185 "\n"
25186 msgstr ""
25187
25188 #. type: textblock
25189 #: ../src/guestfs-actions.pod:2372
25190 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
25191 msgstr ""
25192
25193 #. type: textblock
25194 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:3852
25195 #: ../src/guestfs-actions.pod:4540
25196 msgid ""
25197 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
25198 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
25199 msgstr ""
25200
25201 #. type: textblock
25202 #: ../src/guestfs-actions.pod:2378 ../src/guestfs-actions.pod:3856
25203 #: ../src/guestfs-actions.pod:4055 ../src/guestfs-actions.pod:4091
25204 #: ../src/guestfs-actions.pod:6127 ../src/guestfs-actions.pod:6652
25205 #: ../src/guestfs-actions.pod:8047
25206 msgid "(Added in 1.0.59)"
25207 msgstr ""
25208
25209 #. type: =head2
25210 #: ../src/guestfs-actions.pod:2380
25211 msgid "guestfs_glob_expand"
25212 msgstr ""
25213
25214 #. type: verbatim
25215 #: ../src/guestfs-actions.pod:2382
25216 #, no-wrap
25217 msgid ""
25218 " char **\n"
25219 " guestfs_glob_expand (guestfs_h *g,\n"
25220 "                      const char *pattern);\n"
25221 "\n"
25222 msgstr ""
25223
25224 #. type: textblock
25225 #: ../src/guestfs-actions.pod:2401 ../src/guestfs-actions.pod:6845
25226 #: ../src/guestfs-actions.pod:6862
25227 msgid "(Added in 1.0.50)"
25228 msgstr ""
25229
25230 #. type: =head2
25231 #: ../src/guestfs-actions.pod:2403
25232 msgid "guestfs_grep"
25233 msgstr ""
25234
25235 #. type: verbatim
25236 #: ../src/guestfs-actions.pod:2405
25237 #, no-wrap
25238 msgid ""
25239 " char **\n"
25240 " guestfs_grep (guestfs_h *g,\n"
25241 "               const char *regex,\n"
25242 "               const char *path);\n"
25243 "\n"
25244 msgstr ""
25245
25246 #. type: =head2
25247 #: ../src/guestfs-actions.pod:2422
25248 msgid "guestfs_grepi"
25249 msgstr ""
25250
25251 #. type: verbatim
25252 #: ../src/guestfs-actions.pod:2424
25253 #, no-wrap
25254 msgid ""
25255 " char **\n"
25256 " guestfs_grepi (guestfs_h *g,\n"
25257 "                const char *regex,\n"
25258 "                const char *path);\n"
25259 "\n"
25260 msgstr ""
25261
25262 #. type: =head2
25263 #: ../src/guestfs-actions.pod:2441
25264 msgid "guestfs_grub_install"
25265 msgstr ""
25266
25267 #. type: verbatim
25268 #: ../src/guestfs-actions.pod:2443
25269 #, no-wrap
25270 msgid ""
25271 " int\n"
25272 " guestfs_grub_install (guestfs_h *g,\n"
25273 "                       const char *root,\n"
25274 "                       const char *device);\n"
25275 "\n"
25276 msgstr ""
25277
25278 #. type: textblock
25279 #: ../src/guestfs-actions.pod:2486
25280 msgid "(Added in 1.0.17)"
25281 msgstr ""
25282
25283 #. type: =head2
25284 #: ../src/guestfs-actions.pod:2488
25285 msgid "guestfs_head"
25286 msgstr ""
25287
25288 #. type: verbatim
25289 #: ../src/guestfs-actions.pod:2490
25290 #, no-wrap
25291 msgid ""
25292 " char **\n"
25293 " guestfs_head (guestfs_h *g,\n"
25294 "               const char *path);\n"
25295 "\n"
25296 msgstr ""
25297
25298 #. type: =head2
25299 #: ../src/guestfs-actions.pod:2506
25300 msgid "guestfs_head_n"
25301 msgstr ""
25302
25303 #. type: verbatim
25304 #: ../src/guestfs-actions.pod:2508
25305 #, no-wrap
25306 msgid ""
25307 " char **\n"
25308 " guestfs_head_n (guestfs_h *g,\n"
25309 "                 int nrlines,\n"
25310 "                 const char *path);\n"
25311 "\n"
25312 msgstr ""
25313
25314 #. type: =head2
25315 #: ../src/guestfs-actions.pod:2530
25316 msgid "guestfs_hexdump"
25317 msgstr ""
25318
25319 #. type: verbatim
25320 #: ../src/guestfs-actions.pod:2532
25321 #, no-wrap
25322 msgid ""
25323 " char *\n"
25324 " guestfs_hexdump (guestfs_h *g,\n"
25325 "                  const char *path);\n"
25326 "\n"
25327 msgstr ""
25328
25329 #. type: textblock
25330 #: ../src/guestfs-actions.pod:2545 ../src/guestfs-actions.pod:6926
25331 #: ../src/guestfs-actions.pod:6981
25332 msgid "(Added in 1.0.22)"
25333 msgstr ""
25334
25335 #. type: =head2
25336 #: ../src/guestfs-actions.pod:2547
25337 msgid "guestfs_initrd_cat"
25338 msgstr ""
25339
25340 #. type: verbatim
25341 #: ../src/guestfs-actions.pod:2549
25342 #, no-wrap
25343 msgid ""
25344 " char *\n"
25345 " guestfs_initrd_cat (guestfs_h *g,\n"
25346 "                     const char *initrdpath,\n"
25347 "                     const char *filename,\n"
25348 "                     size_t *size_r);\n"
25349 "\n"
25350 msgstr ""
25351
25352 #. type: textblock
25353 #: ../src/guestfs-actions.pod:2565
25354 msgid "See also C<guestfs_initrd_list>."
25355 msgstr ""
25356
25357 #. type: =head2
25358 #: ../src/guestfs-actions.pod:2576
25359 msgid "guestfs_initrd_list"
25360 msgstr ""
25361
25362 #. type: verbatim
25363 #: ../src/guestfs-actions.pod:2578
25364 #, no-wrap
25365 msgid ""
25366 " char **\n"
25367 " guestfs_initrd_list (guestfs_h *g,\n"
25368 "                      const char *path);\n"
25369 "\n"
25370 msgstr ""
25371
25372 #. type: =head2
25373 #: ../src/guestfs-actions.pod:2598
25374 msgid "guestfs_inotify_add_watch"
25375 msgstr ""
25376
25377 #. type: verbatim
25378 #: ../src/guestfs-actions.pod:2600
25379 #, no-wrap
25380 msgid ""
25381 " int64_t\n"
25382 " guestfs_inotify_add_watch (guestfs_h *g,\n"
25383 "                            const char *path,\n"
25384 "                            int mask);\n"
25385 "\n"
25386 msgstr ""
25387
25388 #. type: =head2
25389 #: ../src/guestfs-actions.pod:2619
25390 msgid "guestfs_inotify_close"
25391 msgstr ""
25392
25393 #. type: verbatim
25394 #: ../src/guestfs-actions.pod:2621
25395 #, no-wrap
25396 msgid ""
25397 " int\n"
25398 " guestfs_inotify_close (guestfs_h *g);\n"
25399 "\n"
25400 msgstr ""
25401
25402 #. type: =head2
25403 #: ../src/guestfs-actions.pod:2632
25404 msgid "guestfs_inotify_files"
25405 msgstr ""
25406
25407 #. type: verbatim
25408 #: ../src/guestfs-actions.pod:2634
25409 #, no-wrap
25410 msgid ""
25411 " char **\n"
25412 " guestfs_inotify_files (guestfs_h *g);\n"
25413 "\n"
25414 msgstr ""
25415
25416 #. type: textblock
25417 #: ../src/guestfs-actions.pod:2637
25418 msgid ""
25419 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
25420 "returns a list of pathnames of objects that were touched.  The returned "
25421 "pathnames are sorted and deduplicated."
25422 msgstr ""
25423
25424 #. type: =head2
25425 #: ../src/guestfs-actions.pod:2647
25426 msgid "guestfs_inotify_init"
25427 msgstr ""
25428
25429 #. type: verbatim
25430 #: ../src/guestfs-actions.pod:2649
25431 #, no-wrap
25432 msgid ""
25433 " int\n"
25434 " guestfs_inotify_init (guestfs_h *g,\n"
25435 "                       int maxevents);\n"
25436 "\n"
25437 msgstr ""
25438
25439 #. type: textblock
25440 #: ../src/guestfs-actions.pod:2657
25441 msgid ""
25442 "C<maxevents> is the maximum number of events which will be queued up between "
25443 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
25444 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
25445 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
25446 "throws away events, but records the fact that it threw them away by setting "
25447 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
25448 "C<guestfs_inotify_read>)."
25449 msgstr ""
25450
25451 #. type: textblock
25452 #: ../src/guestfs-actions.pod:2667
25453 msgid ""
25454 "Before any events are generated, you have to add some watches to the "
25455 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
25456 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
25457 msgstr ""
25458
25459 #. type: textblock
25460 #: ../src/guestfs-actions.pod:2673
25461 msgid ""
25462 "Queued up events should be read periodically by calling "
25463 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
25464 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
25465 "often enough then you risk the internal queue overflowing."
25466 msgstr ""
25467
25468 #. type: textblock
25469 #: ../src/guestfs-actions.pod:2680
25470 msgid ""
25471 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
25472 "This also removes any watches automatically."
25473 msgstr ""
25474
25475 #. type: =head2
25476 #: ../src/guestfs-actions.pod:2693
25477 msgid "guestfs_inotify_read"
25478 msgstr ""
25479
25480 #. type: verbatim
25481 #: ../src/guestfs-actions.pod:2695
25482 #, no-wrap
25483 msgid ""
25484 " struct guestfs_inotify_event_list *\n"
25485 " guestfs_inotify_read (guestfs_h *g);\n"
25486 "\n"
25487 msgstr ""
25488
25489 #. type: textblock
25490 #: ../src/guestfs-actions.pod:2709
25491 msgid ""
25492 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
25493 "there was an error.  I<The caller must call "
25494 "C<guestfs_free_inotify_event_list> after use>."
25495 msgstr ""
25496
25497 #. type: =head2
25498 #: ../src/guestfs-actions.pod:2715
25499 msgid "guestfs_inotify_rm_watch"
25500 msgstr ""
25501
25502 #. type: verbatim
25503 #: ../src/guestfs-actions.pod:2717
25504 #, no-wrap
25505 msgid ""
25506 " int\n"
25507 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
25508 "                           int wd);\n"
25509 "\n"
25510 msgstr ""
25511
25512 #. type: textblock
25513 #: ../src/guestfs-actions.pod:2721
25514 msgid ""
25515 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
25516 msgstr ""
25517
25518 #. type: =head2
25519 #: ../src/guestfs-actions.pod:2728
25520 msgid "guestfs_inspect_get_arch"
25521 msgstr ""
25522
25523 #. type: verbatim
25524 #: ../src/guestfs-actions.pod:2730
25525 #, no-wrap
25526 msgid ""
25527 " char *\n"
25528 " guestfs_inspect_get_arch (guestfs_h *g,\n"
25529 "                           const char *root);\n"
25530 "\n"
25531 msgstr ""
25532
25533 #. type: textblock
25534 #: ../src/guestfs-actions.pod:2734
25535 msgid ""
25536 "This returns the architecture of the inspected operating system.  The "
25537 "possible return values are listed under C<guestfs_file_architecture>."
25538 msgstr ""
25539
25540 #. type: =head2
25541 #: ../src/guestfs-actions.pod:2748
25542 msgid "guestfs_inspect_get_distro"
25543 msgstr ""
25544
25545 #. type: verbatim
25546 #: ../src/guestfs-actions.pod:2750
25547 #, no-wrap
25548 msgid ""
25549 " char *\n"
25550 " guestfs_inspect_get_distro (guestfs_h *g,\n"
25551 "                             const char *root);\n"
25552 "\n"
25553 msgstr ""
25554
25555 #. type: =head2
25556 #: ../src/guestfs-actions.pod:2842
25557 msgid "guestfs_inspect_get_drive_mappings"
25558 msgstr ""
25559
25560 #. type: verbatim
25561 #: ../src/guestfs-actions.pod:2844
25562 #, no-wrap
25563 msgid ""
25564 " char **\n"
25565 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
25566 "                                     const char *root);\n"
25567 "\n"
25568 msgstr ""
25569
25570 #. type: textblock
25571 #: ../src/guestfs-actions.pod:2873
25572 msgid ""
25573 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25574 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
25575 msgstr ""
25576
25577 #. type: textblock
25578 #: ../src/guestfs-actions.pod:2877 ../src/guestfs-actions.pod:3145
25579 #: ../src/guestfs-actions.pod:3943 ../src/guestfs-actions.pod:5215
25580 #: ../src/guestfs-actions.pod:7283
25581 msgid ""
25582 "This function returns a NULL-terminated array of strings, or NULL if there "
25583 "was an error.  The array of strings will always have length C<2n+1>, where "
25584 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
25585 "caller must free the strings and the array after use>."
25586 msgstr ""
25587
25588 #. type: textblock
25589 #: ../src/guestfs-actions.pod:2883 ../src/guestfs-actions.pod:3339
25590 msgid "(Added in 1.9.17)"
25591 msgstr ""
25592
25593 #. type: =head2
25594 #: ../src/guestfs-actions.pod:2885
25595 msgid "guestfs_inspect_get_filesystems"
25596 msgstr ""
25597
25598 #. type: verbatim
25599 #: ../src/guestfs-actions.pod:2887
25600 #, no-wrap
25601 msgid ""
25602 " char **\n"
25603 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
25604 "                                  const char *root);\n"
25605 "\n"
25606 msgstr ""
25607
25608 #. type: textblock
25609 #: ../src/guestfs-actions.pod:2899
25610 msgid ""
25611 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25612 "C<guestfs_inspect_get_mountpoints>."
25613 msgstr ""
25614
25615 #. type: =head2
25616 #: ../src/guestfs-actions.pod:2908
25617 msgid "guestfs_inspect_get_format"
25618 msgstr ""
25619
25620 #. type: verbatim
25621 #: ../src/guestfs-actions.pod:2910
25622 #, no-wrap
25623 msgid ""
25624 " char *\n"
25625 " guestfs_inspect_get_format (guestfs_h *g,\n"
25626 "                             const char *root);\n"
25627 "\n"
25628 msgstr ""
25629
25630 #. type: textblock
25631 #: ../src/guestfs-actions.pod:2944 ../src/guestfs-actions.pod:3375
25632 #: ../src/guestfs-actions.pod:3391 ../src/guestfs-actions.pod:3409
25633 #: ../src/guestfs-actions.pod:6165
25634 msgid "(Added in 1.9.4)"
25635 msgstr ""
25636
25637 #. type: =head2
25638 #: ../src/guestfs-actions.pod:2946
25639 msgid "guestfs_inspect_get_hostname"
25640 msgstr ""
25641
25642 #. type: verbatim
25643 #: ../src/guestfs-actions.pod:2948
25644 #, no-wrap
25645 msgid ""
25646 " char *\n"
25647 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
25648 "                               const char *root);\n"
25649 "\n"
25650 msgstr ""
25651
25652 #. type: textblock
25653 #: ../src/guestfs-actions.pod:2963
25654 msgid "(Added in 1.7.9)"
25655 msgstr ""
25656
25657 #. type: =head2
25658 #: ../src/guestfs-actions.pod:2965
25659 msgid "guestfs_inspect_get_icon"
25660 msgstr ""
25661
25662 #. type: verbatim
25663 #: ../src/guestfs-actions.pod:2967
25664 #, no-wrap
25665 msgid ""
25666 " char *\n"
25667 " guestfs_inspect_get_icon (guestfs_h *g,\n"
25668 "                           const char *root,\n"
25669 "                           size_t *size_r,\n"
25670 "                           ...);\n"
25671 "\n"
25672 msgstr ""
25673
25674 #. type: verbatim
25675 #: ../src/guestfs-actions.pod:2978
25676 #, no-wrap
25677 msgid ""
25678 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
25679 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
25680 "\n"
25681 msgstr ""
25682
25683 #. type: textblock
25684 #: ../src/guestfs-actions.pod:3045 ../src/guestfs-actions.pod:3870
25685 #: ../src/guestfs-actions.pod:5114
25686 msgid "(Added in 1.11.12)"
25687 msgstr ""
25688
25689 #. type: =head2
25690 #: ../src/guestfs-actions.pod:3047
25691 msgid "guestfs_inspect_get_icon_va"
25692 msgstr ""
25693
25694 #. type: verbatim
25695 #: ../src/guestfs-actions.pod:3049
25696 #, no-wrap
25697 msgid ""
25698 " char *\n"
25699 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
25700 "                              const char *root,\n"
25701 "                              size_t *size_r,\n"
25702 "                              va_list args);\n"
25703 "\n"
25704 msgstr ""
25705
25706 #. type: textblock
25707 #: ../src/guestfs-actions.pod:3055
25708 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
25709 msgstr ""
25710
25711 #. type: =head2
25712 #: ../src/guestfs-actions.pod:3059
25713 msgid "guestfs_inspect_get_icon_argv"
25714 msgstr ""
25715
25716 #. type: verbatim
25717 #: ../src/guestfs-actions.pod:3061
25718 #, no-wrap
25719 msgid ""
25720 " char *\n"
25721 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
25722 "                                const char *root,\n"
25723 "                                size_t *size_r,\n"
25724 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
25725 "\n"
25726 msgstr ""
25727
25728 #. type: textblock
25729 #: ../src/guestfs-actions.pod:3067
25730 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
25731 msgstr ""
25732
25733 #. type: =head2
25734 #: ../src/guestfs-actions.pod:3071
25735 msgid "guestfs_inspect_get_major_version"
25736 msgstr ""
25737
25738 #. type: verbatim
25739 #: ../src/guestfs-actions.pod:3073
25740 #, no-wrap
25741 msgid ""
25742 " int\n"
25743 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
25744 "                                    const char *root);\n"
25745 "\n"
25746 msgstr ""
25747
25748 #. type: =head2
25749 #: ../src/guestfs-actions.pod:3095
25750 msgid "guestfs_inspect_get_minor_version"
25751 msgstr ""
25752
25753 #. type: verbatim
25754 #: ../src/guestfs-actions.pod:3097
25755 #, no-wrap
25756 msgid ""
25757 " int\n"
25758 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
25759 "                                    const char *root);\n"
25760 "\n"
25761 msgstr ""
25762
25763 #. type: textblock
25764 #: ../src/guestfs-actions.pod:3106
25765 msgid ""
25766 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25767 "C<guestfs_inspect_get_major_version>."
25768 msgstr ""
25769
25770 #. type: =head2
25771 #: ../src/guestfs-actions.pod:3113
25772 msgid "guestfs_inspect_get_mountpoints"
25773 msgstr ""
25774
25775 #. type: verbatim
25776 #: ../src/guestfs-actions.pod:3115
25777 #, no-wrap
25778 msgid ""
25779 " char **\n"
25780 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
25781 "                                  const char *root);\n"
25782 "\n"
25783 msgstr ""
25784
25785 #. type: textblock
25786 #: ../src/guestfs-actions.pod:3136
25787 msgid ""
25788 "For operating systems like Windows which still use drive letters, this call "
25789 "will only return an entry for the first drive \"mounted on\" C</>.  For "
25790 "information about the mapping of drive letters to partitions, see "
25791 "C<guestfs_inspect_get_drive_mappings>."
25792 msgstr ""
25793
25794 #. type: textblock
25795 #: ../src/guestfs-actions.pod:3142
25796 msgid ""
25797 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25798 "C<guestfs_inspect_get_filesystems>."
25799 msgstr ""
25800
25801 #. type: =head2
25802 #: ../src/guestfs-actions.pod:3153
25803 msgid "guestfs_inspect_get_package_format"
25804 msgstr ""
25805
25806 #. type: verbatim
25807 #: ../src/guestfs-actions.pod:3155
25808 #, no-wrap
25809 msgid ""
25810 " char *\n"
25811 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
25812 "                                     const char *root);\n"
25813 "\n"
25814 msgstr ""
25815
25816 #. type: textblock
25817 #: ../src/guestfs-actions.pod:3159
25818 msgid ""
25819 "This function and C<guestfs_inspect_get_package_management> return the "
25820 "package format and package management tool used by the inspected operating "
25821 "system.  For example for Fedora these functions would return C<rpm> (package "
25822 "format) and C<yum> (package management)."
25823 msgstr ""
25824
25825 #. type: textblock
25826 #: ../src/guestfs-actions.pod:3177 ../src/guestfs-actions.pod:3205
25827 msgid "(Added in 1.7.5)"
25828 msgstr ""
25829
25830 #. type: =head2
25831 #: ../src/guestfs-actions.pod:3179
25832 msgid "guestfs_inspect_get_package_management"
25833 msgstr ""
25834
25835 #. type: verbatim
25836 #: ../src/guestfs-actions.pod:3181
25837 #, no-wrap
25838 msgid ""
25839 " char *\n"
25840 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
25841 "                                         const char *root);\n"
25842 "\n"
25843 msgstr ""
25844
25845 #. type: textblock
25846 #: ../src/guestfs-actions.pod:3185
25847 msgid ""
25848 "C<guestfs_inspect_get_package_format> and this function return the package "
25849 "format and package management tool used by the inspected operating system.  "
25850 "For example for Fedora these functions would return C<rpm> (package format) "
25851 "and C<yum> (package management)."
25852 msgstr ""
25853
25854 #. type: =head2
25855 #: ../src/guestfs-actions.pod:3207
25856 msgid "guestfs_inspect_get_product_name"
25857 msgstr ""
25858
25859 #. type: verbatim
25860 #: ../src/guestfs-actions.pod:3209
25861 #, no-wrap
25862 msgid ""
25863 " char *\n"
25864 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
25865 "                                   const char *root);\n"
25866 "\n"
25867 msgstr ""
25868
25869 #. type: =head2
25870 #: ../src/guestfs-actions.pod:3228
25871 msgid "guestfs_inspect_get_product_variant"
25872 msgstr ""
25873
25874 #. type: verbatim
25875 #: ../src/guestfs-actions.pod:3230
25876 #, no-wrap
25877 msgid ""
25878 " char *\n"
25879 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
25880 "                                      const char *root);\n"
25881 "\n"
25882 msgstr ""
25883
25884 #. type: textblock
25885 #: ../src/guestfs-actions.pod:3253
25886 msgid ""
25887 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25888 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
25889 msgstr ""
25890
25891 #. type: textblock
25892 #: ../src/guestfs-actions.pod:3260
25893 msgid "(Added in 1.9.13)"
25894 msgstr ""
25895
25896 #. type: =head2
25897 #: ../src/guestfs-actions.pod:3262
25898 msgid "guestfs_inspect_get_roots"
25899 msgstr ""
25900
25901 #. type: verbatim
25902 #: ../src/guestfs-actions.pod:3264
25903 #, no-wrap
25904 msgid ""
25905 " char **\n"
25906 " guestfs_inspect_get_roots (guestfs_h *g);\n"
25907 "\n"
25908 msgstr ""
25909
25910 #. type: textblock
25911 #: ../src/guestfs-actions.pod:3267
25912 msgid ""
25913 "This function is a convenient way to get the list of root devices, as "
25914 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
25915 "the whole inspection process."
25916 msgstr ""
25917
25918 #. type: textblock
25919 #: ../src/guestfs-actions.pod:3271
25920 msgid ""
25921 "This returns an empty list if either no root devices were found or the "
25922 "caller has not called C<guestfs_inspect_os>."
25923 msgstr ""
25924
25925 #. type: textblock
25926 #: ../src/guestfs-actions.pod:3280
25927 msgid "(Added in 1.7.3)"
25928 msgstr ""
25929
25930 #. type: =head2
25931 #: ../src/guestfs-actions.pod:3282
25932 msgid "guestfs_inspect_get_type"
25933 msgstr ""
25934
25935 #. type: verbatim
25936 #: ../src/guestfs-actions.pod:3284
25937 #, no-wrap
25938 msgid ""
25939 " char *\n"
25940 " guestfs_inspect_get_type (guestfs_h *g,\n"
25941 "                           const char *root);\n"
25942 "\n"
25943 msgstr ""
25944
25945 #. type: =head2
25946 #: ../src/guestfs-actions.pod:3321
25947 msgid "guestfs_inspect_get_windows_current_control_set"
25948 msgstr ""
25949
25950 #. type: verbatim
25951 #: ../src/guestfs-actions.pod:3323
25952 #, no-wrap
25953 msgid ""
25954 " char *\n"
25955 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
25956 "                                                  const char *root);\n"
25957 "\n"
25958 msgstr ""
25959
25960 #. type: =head2
25961 #: ../src/guestfs-actions.pod:3341
25962 msgid "guestfs_inspect_get_windows_systemroot"
25963 msgstr ""
25964
25965 #. type: verbatim
25966 #: ../src/guestfs-actions.pod:3343
25967 #, no-wrap
25968 msgid ""
25969 " char *\n"
25970 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
25971 "                                         const char *root);\n"
25972 "\n"
25973 msgstr ""
25974
25975 #. type: textblock
25976 #: ../src/guestfs-actions.pod:3359
25977 msgid "(Added in 1.5.25)"
25978 msgstr ""
25979
25980 #. type: =head2
25981 #: ../src/guestfs-actions.pod:3361
25982 msgid "guestfs_inspect_is_live"
25983 msgstr ""
25984
25985 #. type: verbatim
25986 #: ../src/guestfs-actions.pod:3363
25987 #, no-wrap
25988 msgid ""
25989 " int\n"
25990 " guestfs_inspect_is_live (guestfs_h *g,\n"
25991 "                          const char *root);\n"
25992 "\n"
25993 msgstr ""
25994
25995 #. type: textblock
25996 #: ../src/guestfs-actions.pod:3367
25997 msgid ""
25998 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
25999 "disk), then this returns true if a live image was detected on the disk."
26000 msgstr ""
26001
26002 #. type: =head2
26003 #: ../src/guestfs-actions.pod:3377
26004 msgid "guestfs_inspect_is_multipart"
26005 msgstr ""
26006
26007 #. type: verbatim
26008 #: ../src/guestfs-actions.pod:3379
26009 #, no-wrap
26010 msgid ""
26011 " int\n"
26012 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
26013 "                               const char *root);\n"
26014 "\n"
26015 msgstr ""
26016
26017 #. type: textblock
26018 #: ../src/guestfs-actions.pod:3383
26019 msgid ""
26020 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26021 "disk), then this returns true if the disk is part of a set."
26022 msgstr ""
26023
26024 #. type: =head2
26025 #: ../src/guestfs-actions.pod:3393
26026 msgid "guestfs_inspect_is_netinst"
26027 msgstr ""
26028
26029 #. type: verbatim
26030 #: ../src/guestfs-actions.pod:3395
26031 #, no-wrap
26032 msgid ""
26033 " int\n"
26034 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
26035 "                             const char *root);\n"
26036 "\n"
26037 msgstr ""
26038
26039 #. type: textblock
26040 #: ../src/guestfs-actions.pod:3399
26041 msgid ""
26042 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26043 "disk), then this returns true if the disk is a network installer, ie. not a "
26044 "self-contained install CD but one which is likely to require network access "
26045 "to complete the install."
26046 msgstr ""
26047
26048 #. type: =head2
26049 #: ../src/guestfs-actions.pod:3411
26050 msgid "guestfs_inspect_list_applications"
26051 msgstr ""
26052
26053 #. type: verbatim
26054 #: ../src/guestfs-actions.pod:3413
26055 #, no-wrap
26056 msgid ""
26057 " struct guestfs_application_list *\n"
26058 " guestfs_inspect_list_applications (guestfs_h *g,\n"
26059 "                                    const char *root);\n"
26060 "\n"
26061 msgstr ""
26062
26063 #. type: textblock
26064 #: ../src/guestfs-actions.pod:3419
26065 msgid ""
26066 "I<Note:> This call works differently from other parts of the inspection "
26067 "API.  You have to call C<guestfs_inspect_os>, then "
26068 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
26069 "this.  Listing applications is a significantly more difficult operation "
26070 "which requires access to the full filesystem.  Also note that unlike the "
26071 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
26072 "the libguestfs handle, this call actually reads parts of the mounted "
26073 "filesystems during the call."
26074 msgstr ""
26075
26076 #. type: textblock
26077 #: ../src/guestfs-actions.pod:3509
26078 msgid ""
26079 "This function returns a C<struct guestfs_application_list *>, or NULL if "
26080 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
26081 "after use>."
26082 msgstr ""
26083
26084 #. type: textblock
26085 #: ../src/guestfs-actions.pod:3513
26086 msgid "(Added in 1.7.8)"
26087 msgstr ""
26088
26089 #. type: =head2
26090 #: ../src/guestfs-actions.pod:3515
26091 msgid "guestfs_inspect_os"
26092 msgstr ""
26093
26094 #. type: verbatim
26095 #: ../src/guestfs-actions.pod:3517
26096 #, no-wrap
26097 msgid ""
26098 " char **\n"
26099 " guestfs_inspect_os (guestfs_h *g);\n"
26100 "\n"
26101 msgstr ""
26102
26103 #. type: textblock
26104 #: ../src/guestfs-actions.pod:3533
26105 msgid ""
26106 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
26107 "functions in order to query further information about each operating system, "
26108 "such as the name and version."
26109 msgstr ""
26110
26111 #. type: textblock
26112 #: ../src/guestfs-actions.pod:3538
26113 msgid ""
26114 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
26115 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
26116 "the contents.  This should be called with no disks currently mounted.  The "
26117 "function may also use Augeas, so any existing Augeas handle will be closed."
26118 msgstr ""
26119
26120 #. type: textblock
26121 #: ../src/guestfs-actions.pod:3550 ../src/guestfs-actions.pod:3881
26122 #: ../src/guestfs-actions.pod:3963
26123 msgid "See also C<guestfs_list_filesystems>."
26124 msgstr ""
26125
26126 #. type: =head2
26127 #: ../src/guestfs-actions.pod:3558
26128 msgid "guestfs_is_blockdev"
26129 msgstr ""
26130
26131 #. type: verbatim
26132 #: ../src/guestfs-actions.pod:3560
26133 #, no-wrap
26134 msgid ""
26135 " int\n"
26136 " guestfs_is_blockdev (guestfs_h *g,\n"
26137 "                      const char *path);\n"
26138 "\n"
26139 msgstr ""
26140
26141 #. type: textblock
26142 #: ../src/guestfs-actions.pod:3567 ../src/guestfs-actions.pod:3596
26143 #: ../src/guestfs-actions.pod:3626 ../src/guestfs-actions.pod:3641
26144 #: ../src/guestfs-actions.pod:3657 ../src/guestfs-actions.pod:3713
26145 #: ../src/guestfs-actions.pod:3728
26146 msgid "See also C<guestfs_stat>."
26147 msgstr ""
26148
26149 #. type: textblock
26150 #: ../src/guestfs-actions.pod:3571 ../src/guestfs-actions.pod:3600
26151 #: ../src/guestfs-actions.pod:3645 ../src/guestfs-actions.pod:3717
26152 #: ../src/guestfs-actions.pod:3732
26153 msgid "(Added in 1.5.10)"
26154 msgstr ""
26155
26156 #. type: =head2
26157 #: ../src/guestfs-actions.pod:3573
26158 msgid "guestfs_is_busy"
26159 msgstr ""
26160
26161 #. type: verbatim
26162 #: ../src/guestfs-actions.pod:3575
26163 #, no-wrap
26164 msgid ""
26165 " int\n"
26166 " guestfs_is_busy (guestfs_h *g);\n"
26167 "\n"
26168 msgstr ""
26169
26170 #. type: =head2
26171 #: ../src/guestfs-actions.pod:3587
26172 msgid "guestfs_is_chardev"
26173 msgstr ""
26174
26175 #. type: verbatim
26176 #: ../src/guestfs-actions.pod:3589
26177 #, no-wrap
26178 msgid ""
26179 " int\n"
26180 " guestfs_is_chardev (guestfs_h *g,\n"
26181 "                     const char *path);\n"
26182 "\n"
26183 msgstr ""
26184
26185 #. type: =head2
26186 #: ../src/guestfs-actions.pod:3602
26187 msgid "guestfs_is_config"
26188 msgstr ""
26189
26190 #. type: verbatim
26191 #: ../src/guestfs-actions.pod:3604
26192 #, no-wrap
26193 msgid ""
26194 " int\n"
26195 " guestfs_is_config (guestfs_h *g);\n"
26196 "\n"
26197 msgstr ""
26198
26199 #. type: =head2
26200 #: ../src/guestfs-actions.pod:3616
26201 msgid "guestfs_is_dir"
26202 msgstr ""
26203
26204 #. type: verbatim
26205 #: ../src/guestfs-actions.pod:3618
26206 #, no-wrap
26207 msgid ""
26208 " int\n"
26209 " guestfs_is_dir (guestfs_h *g,\n"
26210 "                 const char *path);\n"
26211 "\n"
26212 msgstr ""
26213
26214 #. type: =head2
26215 #: ../src/guestfs-actions.pod:3632
26216 msgid "guestfs_is_fifo"
26217 msgstr ""
26218
26219 #. type: verbatim
26220 #: ../src/guestfs-actions.pod:3634
26221 #, no-wrap
26222 msgid ""
26223 " int\n"
26224 " guestfs_is_fifo (guestfs_h *g,\n"
26225 "                  const char *path);\n"
26226 "\n"
26227 msgstr ""
26228
26229 #. type: =head2
26230 #: ../src/guestfs-actions.pod:3647
26231 msgid "guestfs_is_file"
26232 msgstr ""
26233
26234 #. type: verbatim
26235 #: ../src/guestfs-actions.pod:3649
26236 #, no-wrap
26237 msgid ""
26238 " int\n"
26239 " guestfs_is_file (guestfs_h *g,\n"
26240 "                  const char *path);\n"
26241 "\n"
26242 msgstr ""
26243
26244 #. type: =head2
26245 #: ../src/guestfs-actions.pod:3663
26246 msgid "guestfs_is_launching"
26247 msgstr ""
26248
26249 #. type: verbatim
26250 #: ../src/guestfs-actions.pod:3665
26251 #, no-wrap
26252 msgid ""
26253 " int\n"
26254 " guestfs_is_launching (guestfs_h *g);\n"
26255 "\n"
26256 msgstr ""
26257
26258 #. type: =head2
26259 #: ../src/guestfs-actions.pod:3677
26260 msgid "guestfs_is_lv"
26261 msgstr ""
26262
26263 #. type: verbatim
26264 #: ../src/guestfs-actions.pod:3679
26265 #, no-wrap
26266 msgid ""
26267 " int\n"
26268 " guestfs_is_lv (guestfs_h *g,\n"
26269 "                const char *device);\n"
26270 "\n"
26271 msgstr ""
26272
26273 #. type: =head2
26274 #: ../src/guestfs-actions.pod:3690
26275 msgid "guestfs_is_ready"
26276 msgstr ""
26277
26278 #. type: verbatim
26279 #: ../src/guestfs-actions.pod:3692
26280 #, no-wrap
26281 msgid ""
26282 " int\n"
26283 " guestfs_is_ready (guestfs_h *g);\n"
26284 "\n"
26285 msgstr ""
26286
26287 #. type: =head2
26288 #: ../src/guestfs-actions.pod:3704
26289 msgid "guestfs_is_socket"
26290 msgstr ""
26291
26292 #. type: verbatim
26293 #: ../src/guestfs-actions.pod:3706
26294 #, no-wrap
26295 msgid ""
26296 " int\n"
26297 " guestfs_is_socket (guestfs_h *g,\n"
26298 "                    const char *path);\n"
26299 "\n"
26300 msgstr ""
26301
26302 #. type: =head2
26303 #: ../src/guestfs-actions.pod:3719
26304 msgid "guestfs_is_symlink"
26305 msgstr ""
26306
26307 #. type: verbatim
26308 #: ../src/guestfs-actions.pod:3721
26309 #, no-wrap
26310 msgid ""
26311 " int\n"
26312 " guestfs_is_symlink (guestfs_h *g,\n"
26313 "                     const char *path);\n"
26314 "\n"
26315 msgstr ""
26316
26317 #. type: =head2
26318 #: ../src/guestfs-actions.pod:3734
26319 msgid "guestfs_is_zero"
26320 msgstr ""
26321
26322 #. type: verbatim
26323 #: ../src/guestfs-actions.pod:3736
26324 #, no-wrap
26325 msgid ""
26326 " int\n"
26327 " guestfs_is_zero (guestfs_h *g,\n"
26328 "                  const char *path);\n"
26329 "\n"
26330 msgstr ""
26331
26332 #. type: textblock
26333 #: ../src/guestfs-actions.pod:3745 ../src/guestfs-actions.pod:3759
26334 msgid "(Added in 1.11.8)"
26335 msgstr ""
26336
26337 #. type: =head2
26338 #: ../src/guestfs-actions.pod:3747
26339 msgid "guestfs_is_zero_device"
26340 msgstr ""
26341
26342 #. type: verbatim
26343 #: ../src/guestfs-actions.pod:3749
26344 #, no-wrap
26345 msgid ""
26346 " int\n"
26347 " guestfs_is_zero_device (guestfs_h *g,\n"
26348 "                         const char *device);\n"
26349 "\n"
26350 msgstr ""
26351
26352 #. type: =head2
26353 #: ../src/guestfs-actions.pod:3761
26354 msgid "guestfs_kill_subprocess"
26355 msgstr ""
26356
26357 #. type: verbatim
26358 #: ../src/guestfs-actions.pod:3763
26359 #, no-wrap
26360 msgid ""
26361 " int\n"
26362 " guestfs_kill_subprocess (guestfs_h *g);\n"
26363 "\n"
26364 msgstr ""
26365
26366 #. type: =head2
26367 #: ../src/guestfs-actions.pod:3772
26368 msgid "guestfs_launch"
26369 msgstr ""
26370
26371 #. type: verbatim
26372 #: ../src/guestfs-actions.pod:3774
26373 #, no-wrap
26374 msgid ""
26375 " int\n"
26376 " guestfs_launch (guestfs_h *g);\n"
26377 "\n"
26378 msgstr ""
26379
26380 #. type: =head2
26381 #: ../src/guestfs-actions.pod:3792
26382 msgid "guestfs_lchown"
26383 msgstr ""
26384
26385 #. type: verbatim
26386 #: ../src/guestfs-actions.pod:3794
26387 #, no-wrap
26388 msgid ""
26389 " int\n"
26390 " guestfs_lchown (guestfs_h *g,\n"
26391 "                 int owner,\n"
26392 "                 int group,\n"
26393 "                 const char *path);\n"
26394 "\n"
26395 msgstr ""
26396
26397 #. type: textblock
26398 #: ../src/guestfs-actions.pod:3800
26399 msgid ""
26400 "Change the file owner to C<owner> and group to C<group>.  This is like "
26401 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
26402 "changed, not the target."
26403 msgstr ""
26404
26405 #. type: =head2
26406 #: ../src/guestfs-actions.pod:3812
26407 msgid "guestfs_lgetxattr"
26408 msgstr ""
26409
26410 #. type: verbatim
26411 #: ../src/guestfs-actions.pod:3814
26412 #, no-wrap
26413 msgid ""
26414 " char *\n"
26415 " guestfs_lgetxattr (guestfs_h *g,\n"
26416 "                    const char *path,\n"
26417 "                    const char *name,\n"
26418 "                    size_t *size_r);\n"
26419 "\n"
26420 msgstr ""
26421
26422 #. type: textblock
26423 #: ../src/guestfs-actions.pod:3834
26424 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
26425 msgstr ""
26426
26427 #. type: =head2
26428 #: ../src/guestfs-actions.pod:3842
26429 msgid "guestfs_lgetxattrs"
26430 msgstr ""
26431
26432 #. type: verbatim
26433 #: ../src/guestfs-actions.pod:3844
26434 #, no-wrap
26435 msgid ""
26436 " struct guestfs_xattr_list *\n"
26437 " guestfs_lgetxattrs (guestfs_h *g,\n"
26438 "                     const char *path);\n"
26439 "\n"
26440 msgstr ""
26441
26442 #. type: textblock
26443 #: ../src/guestfs-actions.pod:3848
26444 msgid ""
26445 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
26446 "then it returns the extended attributes of the link itself."
26447 msgstr ""
26448
26449 #. type: =head2
26450 #: ../src/guestfs-actions.pod:3858
26451 msgid "guestfs_list_9p"
26452 msgstr ""
26453
26454 #. type: verbatim
26455 #: ../src/guestfs-actions.pod:3860
26456 #, no-wrap
26457 msgid ""
26458 " char **\n"
26459 " guestfs_list_9p (guestfs_h *g);\n"
26460 "\n"
26461 msgstr ""
26462
26463 #. type: =head2
26464 #: ../src/guestfs-actions.pod:3872
26465 msgid "guestfs_list_devices"
26466 msgstr ""
26467
26468 #. type: verbatim
26469 #: ../src/guestfs-actions.pod:3874
26470 #, no-wrap
26471 msgid ""
26472 " char **\n"
26473 " guestfs_list_devices (guestfs_h *g);\n"
26474 "\n"
26475 msgstr ""
26476
26477 #. type: =head2
26478 #: ../src/guestfs-actions.pod:3889
26479 msgid "guestfs_list_dm_devices"
26480 msgstr ""
26481
26482 #. type: verbatim
26483 #: ../src/guestfs-actions.pod:3891
26484 #, no-wrap
26485 msgid ""
26486 " char **\n"
26487 " guestfs_list_dm_devices (guestfs_h *g);\n"
26488 "\n"
26489 msgstr ""
26490
26491 #. type: textblock
26492 #: ../src/guestfs-actions.pod:3896
26493 msgid ""
26494 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
26495 "previous call to C<guestfs_luks_open>."
26496 msgstr ""
26497
26498 #. type: textblock
26499 #: ../src/guestfs-actions.pod:3899
26500 msgid ""
26501 "Device mapper devices which correspond to logical volumes are I<not> "
26502 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
26503 "volumes."
26504 msgstr ""
26505
26506 #. type: textblock
26507 #: ../src/guestfs-actions.pod:3907 ../src/guestfs-actions.pod:5353
26508 msgid "(Added in 1.11.15)"
26509 msgstr ""
26510
26511 #. type: =head2
26512 #: ../src/guestfs-actions.pod:3909
26513 msgid "guestfs_list_filesystems"
26514 msgstr ""
26515
26516 #. type: verbatim
26517 #: ../src/guestfs-actions.pod:3911
26518 #, no-wrap
26519 msgid ""
26520 " char **\n"
26521 " guestfs_list_filesystems (guestfs_h *g);\n"
26522 "\n"
26523 msgstr ""
26524
26525 #. type: textblock
26526 #: ../src/guestfs-actions.pod:3931
26527 msgid ""
26528 "This command runs other libguestfs commands, which might include "
26529 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
26530 "soon after launch and only when nothing is mounted."
26531 msgstr ""
26532
26533 #. type: textblock
26534 #: ../src/guestfs-actions.pod:3935
26535 msgid ""
26536 "Not all of the filesystems returned will be mountable.  In particular, swap "
26537 "partitions are returned in the list.  Also this command does not check that "
26538 "each filesystem found is valid and mountable, and some filesystems might be "
26539 "mountable but require special options.  Filesystems may not all belong to a "
26540 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
26541 msgstr ""
26542
26543 #. type: textblock
26544 #: ../src/guestfs-actions.pod:3949 ../src/guestfs-actions.pod:5714
26545 msgid "(Added in 1.5.15)"
26546 msgstr ""
26547
26548 #. type: =head2
26549 #: ../src/guestfs-actions.pod:3951
26550 msgid "guestfs_list_partitions"
26551 msgstr ""
26552
26553 #. type: verbatim
26554 #: ../src/guestfs-actions.pod:3953
26555 #, no-wrap
26556 msgid ""
26557 " char **\n"
26558 " guestfs_list_partitions (guestfs_h *g);\n"
26559 "\n"
26560 msgstr ""
26561
26562 #. type: textblock
26563 #: ../src/guestfs-actions.pod:3960
26564 msgid ""
26565 "This does not return logical volumes.  For that you will need to call "
26566 "C<guestfs_lvs>."
26567 msgstr ""
26568
26569 #. type: =head2
26570 #: ../src/guestfs-actions.pod:3971
26571 msgid "guestfs_ll"
26572 msgstr ""
26573
26574 #. type: verbatim
26575 #: ../src/guestfs-actions.pod:3973
26576 #, no-wrap
26577 msgid ""
26578 " char *\n"
26579 " guestfs_ll (guestfs_h *g,\n"
26580 "             const char *directory);\n"
26581 "\n"
26582 msgstr ""
26583
26584 #. type: =head2
26585 #: ../src/guestfs-actions.pod:3988
26586 msgid "guestfs_ln"
26587 msgstr ""
26588
26589 #. type: verbatim
26590 #: ../src/guestfs-actions.pod:3990
26591 #, no-wrap
26592 msgid ""
26593 " int\n"
26594 " guestfs_ln (guestfs_h *g,\n"
26595 "             const char *target,\n"
26596 "             const char *linkname);\n"
26597 "\n"
26598 msgstr ""
26599
26600 #. type: =head2
26601 #: ../src/guestfs-actions.pod:4001
26602 msgid "guestfs_ln_f"
26603 msgstr ""
26604
26605 #. type: verbatim
26606 #: ../src/guestfs-actions.pod:4003
26607 #, no-wrap
26608 msgid ""
26609 " int\n"
26610 " guestfs_ln_f (guestfs_h *g,\n"
26611 "               const char *target,\n"
26612 "               const char *linkname);\n"
26613 "\n"
26614 msgstr ""
26615
26616 #. type: =head2
26617 #: ../src/guestfs-actions.pod:4015
26618 msgid "guestfs_ln_s"
26619 msgstr ""
26620
26621 #. type: verbatim
26622 #: ../src/guestfs-actions.pod:4017
26623 #, no-wrap
26624 msgid ""
26625 " int\n"
26626 " guestfs_ln_s (guestfs_h *g,\n"
26627 "               const char *target,\n"
26628 "               const char *linkname);\n"
26629 "\n"
26630 msgstr ""
26631
26632 #. type: =head2
26633 #: ../src/guestfs-actions.pod:4028
26634 msgid "guestfs_ln_sf"
26635 msgstr ""
26636
26637 #. type: verbatim
26638 #: ../src/guestfs-actions.pod:4030
26639 #, no-wrap
26640 msgid ""
26641 " int\n"
26642 " guestfs_ln_sf (guestfs_h *g,\n"
26643 "                const char *target,\n"
26644 "                const char *linkname);\n"
26645 "\n"
26646 msgstr ""
26647
26648 #. type: =head2
26649 #: ../src/guestfs-actions.pod:4042
26650 msgid "guestfs_lremovexattr"
26651 msgstr ""
26652
26653 #. type: verbatim
26654 #: ../src/guestfs-actions.pod:4044
26655 #, no-wrap
26656 msgid ""
26657 " int\n"
26658 " guestfs_lremovexattr (guestfs_h *g,\n"
26659 "                       const char *xattr,\n"
26660 "                       const char *path);\n"
26661 "\n"
26662 msgstr ""
26663
26664 #. type: textblock
26665 #: ../src/guestfs-actions.pod:4049
26666 msgid ""
26667 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
26668 "link, then it removes an extended attribute of the link itself."
26669 msgstr ""
26670
26671 #. type: =head2
26672 #: ../src/guestfs-actions.pod:4057
26673 msgid "guestfs_ls"
26674 msgstr ""
26675
26676 #. type: verbatim
26677 #: ../src/guestfs-actions.pod:4059
26678 #, no-wrap
26679 msgid ""
26680 " char **\n"
26681 " guestfs_ls (guestfs_h *g,\n"
26682 "             const char *directory);\n"
26683 "\n"
26684 msgstr ""
26685
26686 #. type: textblock
26687 #: ../src/guestfs-actions.pod:4067
26688 msgid ""
26689 "This command is mostly useful for interactive sessions.  Programs should "
26690 "probably use C<guestfs_readdir> instead."
26691 msgstr ""
26692
26693 #. type: =head2
26694 #: ../src/guestfs-actions.pod:4076
26695 msgid "guestfs_lsetxattr"
26696 msgstr ""
26697
26698 #. type: verbatim
26699 #: ../src/guestfs-actions.pod:4078
26700 #, no-wrap
26701 msgid ""
26702 " int\n"
26703 " guestfs_lsetxattr (guestfs_h *g,\n"
26704 "                    const char *xattr,\n"
26705 "                    const char *val,\n"
26706 "                    int vallen,\n"
26707 "                    const char *path);\n"
26708 "\n"
26709 msgstr ""
26710
26711 #. type: textblock
26712 #: ../src/guestfs-actions.pod:4085
26713 msgid ""
26714 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
26715 "then it sets an extended attribute of the link itself."
26716 msgstr ""
26717
26718 #. type: =head2
26719 #: ../src/guestfs-actions.pod:4093
26720 msgid "guestfs_lstat"
26721 msgstr ""
26722
26723 #. type: verbatim
26724 #: ../src/guestfs-actions.pod:4095
26725 #, no-wrap
26726 msgid ""
26727 " struct guestfs_stat *\n"
26728 " guestfs_lstat (guestfs_h *g,\n"
26729 "                const char *path);\n"
26730 "\n"
26731 msgstr ""
26732
26733 #. type: textblock
26734 #: ../src/guestfs-actions.pod:4101
26735 msgid ""
26736 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
26737 "link, then the link is stat-ed, not the file it refers to."
26738 msgstr ""
26739
26740 #. type: textblock
26741 #: ../src/guestfs-actions.pod:4107 ../src/guestfs-actions.pod:6886
26742 msgid ""
26743 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
26744 "error.  I<The caller must call C<guestfs_free_stat> after use>."
26745 msgstr ""
26746
26747 #. type: textblock
26748 #: ../src/guestfs-actions.pod:4111 ../src/guestfs-actions.pod:6890
26749 #: ../src/guestfs-actions.pod:6908 ../src/guestfs-actions.pod:7289
26750 msgid "(Added in 0.9.2)"
26751 msgstr ""
26752
26753 #. type: =head2
26754 #: ../src/guestfs-actions.pod:4113
26755 msgid "guestfs_lstatlist"
26756 msgstr ""
26757
26758 #. type: verbatim
26759 #: ../src/guestfs-actions.pod:4115
26760 #, no-wrap
26761 msgid ""
26762 " struct guestfs_stat_list *\n"
26763 " guestfs_lstatlist (guestfs_h *g,\n"
26764 "                    const char *path,\n"
26765 "                    char *const *names);\n"
26766 "\n"
26767 msgstr ""
26768
26769 #. type: textblock
26770 #: ../src/guestfs-actions.pod:4120
26771 msgid ""
26772 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
26773 "files, where all files are in the directory C<path>.  C<names> is the list "
26774 "of files from this directory."
26775 msgstr ""
26776
26777 #. type: textblock
26778 #: ../src/guestfs-actions.pod:4129
26779 msgid ""
26780 "This call is intended for programs that want to efficiently list a directory "
26781 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
26782 "for a similarly efficient call for getting extended attributes.  Very long "
26783 "directory listings might cause the protocol message size to be exceeded, "
26784 "causing this call to fail.  The caller must split up such requests into "
26785 "smaller groups of names."
26786 msgstr ""
26787
26788 #. type: textblock
26789 #: ../src/guestfs-actions.pod:4137
26790 msgid ""
26791 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
26792 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
26793 msgstr ""
26794
26795 #. type: =head2
26796 #: ../src/guestfs-actions.pod:4143
26797 msgid "guestfs_luks_add_key"
26798 msgstr ""
26799
26800 #. type: verbatim
26801 #: ../src/guestfs-actions.pod:4145
26802 #, no-wrap
26803 msgid ""
26804 " int\n"
26805 " guestfs_luks_add_key (guestfs_h *g,\n"
26806 "                       const char *device,\n"
26807 "                       const char *key,\n"
26808 "                       const char *newkey,\n"
26809 "                       int keyslot);\n"
26810 "\n"
26811 msgstr ""
26812
26813 #. type: textblock
26814 #: ../src/guestfs-actions.pod:4157
26815 msgid ""
26816 "Note that if C<keyslot> already contains a key, then this command will "
26817 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
26818 msgstr ""
26819
26820 #. type: textblock
26821 #: ../src/guestfs-actions.pod:4163 ../src/guestfs-actions.pod:4203
26822 #: ../src/guestfs-actions.pod:4226 ../src/guestfs-actions.pod:4246
26823 #: ../src/guestfs-actions.pod:4281 ../src/guestfs-actions.pod:4300
26824 msgid ""
26825 "This function takes a key or passphrase parameter which could contain "
26826 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
26827 "information."
26828 msgstr ""
26829
26830 #. type: textblock
26831 #: ../src/guestfs-actions.pod:4167 ../src/guestfs-actions.pod:4207
26832 #: ../src/guestfs-actions.pod:4230 ../src/guestfs-actions.pod:4250
26833 msgid "(Added in 1.5.2)"
26834 msgstr ""
26835
26836 #. type: =head2
26837 #: ../src/guestfs-actions.pod:4169
26838 msgid "guestfs_luks_close"
26839 msgstr ""
26840
26841 #. type: verbatim
26842 #: ../src/guestfs-actions.pod:4171
26843 #, no-wrap
26844 msgid ""
26845 " int\n"
26846 " guestfs_luks_close (guestfs_h *g,\n"
26847 "                     const char *device);\n"
26848 "\n"
26849 msgstr ""
26850
26851 #. type: textblock
26852 #: ../src/guestfs-actions.pod:4175
26853 msgid ""
26854 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
26855 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
26856 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
26857 "underlying block device."
26858 msgstr ""
26859
26860 #. type: textblock
26861 #: ../src/guestfs-actions.pod:4183 ../src/guestfs-actions.pod:4285
26862 #: ../src/guestfs-actions.pod:4304 ../src/guestfs-actions.pod:4354
26863 #: ../src/guestfs-actions.pod:4402
26864 msgid "(Added in 1.5.1)"
26865 msgstr ""
26866
26867 #. type: =head2
26868 #: ../src/guestfs-actions.pod:4185
26869 msgid "guestfs_luks_format"
26870 msgstr ""
26871
26872 #. type: verbatim
26873 #: ../src/guestfs-actions.pod:4187
26874 #, no-wrap
26875 msgid ""
26876 " int\n"
26877 " guestfs_luks_format (guestfs_h *g,\n"
26878 "                      const char *device,\n"
26879 "                      const char *key,\n"
26880 "                      int keyslot);\n"
26881 "\n"
26882 msgstr ""
26883
26884 #. type: =head2
26885 #: ../src/guestfs-actions.pod:4209
26886 msgid "guestfs_luks_format_cipher"
26887 msgstr ""
26888
26889 #. type: verbatim
26890 #: ../src/guestfs-actions.pod:4211
26891 #, no-wrap
26892 msgid ""
26893 " int\n"
26894 " guestfs_luks_format_cipher (guestfs_h *g,\n"
26895 "                             const char *device,\n"
26896 "                             const char *key,\n"
26897 "                             int keyslot,\n"
26898 "                             const char *cipher);\n"
26899 "\n"
26900 msgstr ""
26901
26902 #. type: textblock
26903 #: ../src/guestfs-actions.pod:4218
26904 msgid ""
26905 "This command is the same as C<guestfs_luks_format> but it also allows you to "
26906 "set the C<cipher> used."
26907 msgstr ""
26908
26909 #. type: =head2
26910 #: ../src/guestfs-actions.pod:4232
26911 msgid "guestfs_luks_kill_slot"
26912 msgstr ""
26913
26914 #. type: verbatim
26915 #: ../src/guestfs-actions.pod:4234
26916 #, no-wrap
26917 msgid ""
26918 " int\n"
26919 " guestfs_luks_kill_slot (guestfs_h *g,\n"
26920 "                         const char *device,\n"
26921 "                         const char *key,\n"
26922 "                         int keyslot);\n"
26923 "\n"
26924 msgstr ""
26925
26926 #. type: =head2
26927 #: ../src/guestfs-actions.pod:4252
26928 msgid "guestfs_luks_open"
26929 msgstr ""
26930
26931 #. type: verbatim
26932 #: ../src/guestfs-actions.pod:4254
26933 #, no-wrap
26934 msgid ""
26935 " int\n"
26936 " guestfs_luks_open (guestfs_h *g,\n"
26937 "                    const char *device,\n"
26938 "                    const char *key,\n"
26939 "                    const char *mapname);\n"
26940 "\n"
26941 msgstr ""
26942
26943 #. type: textblock
26944 #: ../src/guestfs-actions.pod:4272
26945 msgid ""
26946 "If this block device contains LVM volume groups, then calling "
26947 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
26948 "visible."
26949 msgstr ""
26950
26951 #. type: textblock
26952 #: ../src/guestfs-actions.pod:4276
26953 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
26954 msgstr ""
26955
26956 #. type: =head2
26957 #: ../src/guestfs-actions.pod:4287
26958 msgid "guestfs_luks_open_ro"
26959 msgstr ""
26960
26961 #. type: verbatim
26962 #: ../src/guestfs-actions.pod:4289
26963 #, no-wrap
26964 msgid ""
26965 " int\n"
26966 " guestfs_luks_open_ro (guestfs_h *g,\n"
26967 "                       const char *device,\n"
26968 "                       const char *key,\n"
26969 "                       const char *mapname);\n"
26970 "\n"
26971 msgstr ""
26972
26973 #. type: textblock
26974 #: ../src/guestfs-actions.pod:4295
26975 msgid ""
26976 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
26977 "created."
26978 msgstr ""
26979
26980 #. type: =head2
26981 #: ../src/guestfs-actions.pod:4306
26982 msgid "guestfs_lvcreate"
26983 msgstr ""
26984
26985 #. type: verbatim
26986 #: ../src/guestfs-actions.pod:4308
26987 #, no-wrap
26988 msgid ""
26989 " int\n"
26990 " guestfs_lvcreate (guestfs_h *g,\n"
26991 "                   const char *logvol,\n"
26992 "                   const char *volgroup,\n"
26993 "                   int mbytes);\n"
26994 "\n"
26995 msgstr ""
26996
26997 #. type: =head2
26998 #: ../src/guestfs-actions.pod:4321
26999 msgid "guestfs_lvm_canonical_lv_name"
27000 msgstr ""
27001
27002 #. type: verbatim
27003 #: ../src/guestfs-actions.pod:4323
27004 #, no-wrap
27005 msgid ""
27006 " char *\n"
27007 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
27008 "                                const char *lvname);\n"
27009 "\n"
27010 msgstr ""
27011
27012 #. type: textblock
27013 #: ../src/guestfs-actions.pod:4334
27014 msgid "See also C<guestfs_is_lv>."
27015 msgstr ""
27016
27017 #. type: textblock
27018 #: ../src/guestfs-actions.pod:4339
27019 msgid "(Added in 1.5.24)"
27020 msgstr ""
27021
27022 #. type: =head2
27023 #: ../src/guestfs-actions.pod:4341
27024 msgid "guestfs_lvm_clear_filter"
27025 msgstr ""
27026
27027 #. type: verbatim
27028 #: ../src/guestfs-actions.pod:4343
27029 #, no-wrap
27030 msgid ""
27031 " int\n"
27032 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
27033 "\n"
27034 msgstr ""
27035
27036 #. type: textblock
27037 #: ../src/guestfs-actions.pod:4346
27038 msgid ""
27039 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
27040 "see every block device."
27041 msgstr ""
27042
27043 #. type: =head2
27044 #: ../src/guestfs-actions.pod:4356
27045 msgid "guestfs_lvm_remove_all"
27046 msgstr ""
27047
27048 #. type: verbatim
27049 #: ../src/guestfs-actions.pod:4358
27050 #, no-wrap
27051 msgid ""
27052 " int\n"
27053 " guestfs_lvm_remove_all (guestfs_h *g);\n"
27054 "\n"
27055 msgstr ""
27056
27057 #. type: =head2
27058 #: ../src/guestfs-actions.pod:4371
27059 msgid "guestfs_lvm_set_filter"
27060 msgstr ""
27061
27062 #. type: verbatim
27063 #: ../src/guestfs-actions.pod:4373
27064 #, no-wrap
27065 msgid ""
27066 " int\n"
27067 " guestfs_lvm_set_filter (guestfs_h *g,\n"
27068 "                         char *const *devices);\n"
27069 "\n"
27070 msgstr ""
27071
27072 #. type: =head2
27073 #: ../src/guestfs-actions.pod:4404
27074 msgid "guestfs_lvremove"
27075 msgstr ""
27076
27077 #. type: verbatim
27078 #: ../src/guestfs-actions.pod:4406
27079 #, no-wrap
27080 msgid ""
27081 " int\n"
27082 " guestfs_lvremove (guestfs_h *g,\n"
27083 "                   const char *device);\n"
27084 "\n"
27085 msgstr ""
27086
27087 #. type: textblock
27088 #: ../src/guestfs-actions.pod:4418 ../src/guestfs-actions.pod:5811
27089 #: ../src/guestfs-actions.pod:7659
27090 msgid "(Added in 1.0.13)"
27091 msgstr ""
27092
27093 #. type: =head2
27094 #: ../src/guestfs-actions.pod:4420
27095 msgid "guestfs_lvrename"
27096 msgstr ""
27097
27098 #. type: verbatim
27099 #: ../src/guestfs-actions.pod:4422
27100 #, no-wrap
27101 msgid ""
27102 " int\n"
27103 " guestfs_lvrename (guestfs_h *g,\n"
27104 "                   const char *logvol,\n"
27105 "                   const char *newlogvol);\n"
27106 "\n"
27107 msgstr ""
27108
27109 #. type: textblock
27110 #: ../src/guestfs-actions.pod:4431 ../src/guestfs-actions.pod:7672
27111 msgid "(Added in 1.0.83)"
27112 msgstr ""
27113
27114 #. type: =head2
27115 #: ../src/guestfs-actions.pod:4433
27116 msgid "guestfs_lvresize"
27117 msgstr ""
27118
27119 #. type: verbatim
27120 #: ../src/guestfs-actions.pod:4435
27121 #, no-wrap
27122 msgid ""
27123 " int\n"
27124 " guestfs_lvresize (guestfs_h *g,\n"
27125 "                   const char *device,\n"
27126 "                   int mbytes);\n"
27127 "\n"
27128 msgstr ""
27129
27130 #. type: =head2
27131 #: ../src/guestfs-actions.pod:4448
27132 msgid "guestfs_lvresize_free"
27133 msgstr ""
27134
27135 #. type: verbatim
27136 #: ../src/guestfs-actions.pod:4450
27137 #, no-wrap
27138 msgid ""
27139 " int\n"
27140 " guestfs_lvresize_free (guestfs_h *g,\n"
27141 "                        const char *lv,\n"
27142 "                        int percent);\n"
27143 "\n"
27144 msgstr ""
27145
27146 #. type: textblock
27147 #: ../src/guestfs-actions.pod:4463
27148 msgid "(Added in 1.3.3)"
27149 msgstr ""
27150
27151 #. type: =head2
27152 #: ../src/guestfs-actions.pod:4465
27153 msgid "guestfs_lvs"
27154 msgstr ""
27155
27156 #. type: verbatim
27157 #: ../src/guestfs-actions.pod:4467
27158 #, no-wrap
27159 msgid ""
27160 " char **\n"
27161 " guestfs_lvs (guestfs_h *g);\n"
27162 "\n"
27163 msgstr ""
27164
27165 #. type: textblock
27166 #: ../src/guestfs-actions.pod:4476
27167 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
27168 msgstr ""
27169
27170 #. type: =head2
27171 #: ../src/guestfs-actions.pod:4484
27172 msgid "guestfs_lvs_full"
27173 msgstr ""
27174
27175 #. type: verbatim
27176 #: ../src/guestfs-actions.pod:4486
27177 #, no-wrap
27178 msgid ""
27179 " struct guestfs_lvm_lv_list *\n"
27180 " guestfs_lvs_full (guestfs_h *g);\n"
27181 "\n"
27182 msgstr ""
27183
27184 #. type: textblock
27185 #: ../src/guestfs-actions.pod:4492
27186 msgid ""
27187 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
27188 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
27189 msgstr ""
27190
27191 #. type: =head2
27192 #: ../src/guestfs-actions.pod:4498
27193 msgid "guestfs_lvuuid"
27194 msgstr ""
27195
27196 #. type: verbatim
27197 #: ../src/guestfs-actions.pod:4500
27198 #, no-wrap
27199 msgid ""
27200 " char *\n"
27201 " guestfs_lvuuid (guestfs_h *g,\n"
27202 "                 const char *device);\n"
27203 "\n"
27204 msgstr ""
27205
27206 #. type: =head2
27207 #: ../src/guestfs-actions.pod:4511
27208 msgid "guestfs_lxattrlist"
27209 msgstr ""
27210
27211 #. type: verbatim
27212 #: ../src/guestfs-actions.pod:4513
27213 #, no-wrap
27214 msgid ""
27215 " struct guestfs_xattr_list *\n"
27216 " guestfs_lxattrlist (guestfs_h *g,\n"
27217 "                     const char *path,\n"
27218 "                     char *const *names);\n"
27219 "\n"
27220 msgstr ""
27221
27222 #. type: textblock
27223 #: ../src/guestfs-actions.pod:4532
27224 msgid ""
27225 "This call is intended for programs that want to efficiently list a directory "
27226 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
27227 "a similarly efficient call for getting standard stats.  Very long directory "
27228 "listings might cause the protocol message size to be exceeded, causing this "
27229 "call to fail.  The caller must split up such requests into smaller groups of "
27230 "names."
27231 msgstr ""
27232
27233 #. type: =head2
27234 #: ../src/guestfs-actions.pod:4546
27235 msgid "guestfs_mkdir"
27236 msgstr ""
27237
27238 #. type: verbatim
27239 #: ../src/guestfs-actions.pod:4548
27240 #, no-wrap
27241 msgid ""
27242 " int\n"
27243 " guestfs_mkdir (guestfs_h *g,\n"
27244 "                const char *path);\n"
27245 "\n"
27246 msgstr ""
27247
27248 #. type: =head2
27249 #: ../src/guestfs-actions.pod:4558
27250 msgid "guestfs_mkdir_mode"
27251 msgstr ""
27252
27253 #. type: verbatim
27254 #: ../src/guestfs-actions.pod:4560
27255 #, no-wrap
27256 msgid ""
27257 " int\n"
27258 " guestfs_mkdir_mode (guestfs_h *g,\n"
27259 "                     const char *path,\n"
27260 "                     int mode);\n"
27261 "\n"
27262 msgstr ""
27263
27264 #. type: textblock
27265 #: ../src/guestfs-actions.pod:4572
27266 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
27267 msgstr ""
27268
27269 #. type: =head2
27270 #: ../src/guestfs-actions.pod:4578
27271 msgid "guestfs_mkdir_p"
27272 msgstr ""
27273
27274 #. type: verbatim
27275 #: ../src/guestfs-actions.pod:4580
27276 #, no-wrap
27277 msgid ""
27278 " int\n"
27279 " guestfs_mkdir_p (guestfs_h *g,\n"
27280 "                  const char *path);\n"
27281 "\n"
27282 msgstr ""
27283
27284 #. type: =head2
27285 #: ../src/guestfs-actions.pod:4591
27286 msgid "guestfs_mkdtemp"
27287 msgstr ""
27288
27289 #. type: verbatim
27290 #: ../src/guestfs-actions.pod:4593
27291 #, no-wrap
27292 msgid ""
27293 " char *\n"
27294 " guestfs_mkdtemp (guestfs_h *g,\n"
27295 "                  const char *template);\n"
27296 "\n"
27297 msgstr ""
27298
27299 #. type: =head2
27300 #: ../src/guestfs-actions.pod:4621
27301 msgid "guestfs_mke2fs_J"
27302 msgstr ""
27303
27304 #. type: verbatim
27305 #: ../src/guestfs-actions.pod:4623
27306 #, no-wrap
27307 msgid ""
27308 " int\n"
27309 " guestfs_mke2fs_J (guestfs_h *g,\n"
27310 "                   const char *fstype,\n"
27311 "                   int blocksize,\n"
27312 "                   const char *device,\n"
27313 "                   const char *journal);\n"
27314 "\n"
27315 msgstr ""
27316
27317 #. type: textblock
27318 #: ../src/guestfs-actions.pod:4636
27319 msgid "See also C<guestfs_mke2journal>."
27320 msgstr ""
27321
27322 #. type: textblock
27323 #: ../src/guestfs-actions.pod:4640 ../src/guestfs-actions.pod:4658
27324 #: ../src/guestfs-actions.pod:4676 ../src/guestfs-actions.pod:4692
27325 #: ../src/guestfs-actions.pod:4706 ../src/guestfs-actions.pod:4720
27326 #: ../src/guestfs-actions.pod:4779 ../src/guestfs-actions.pod:5056
27327 msgid "(Added in 1.0.68)"
27328 msgstr ""
27329
27330 #. type: =head2
27331 #: ../src/guestfs-actions.pod:4642
27332 msgid "guestfs_mke2fs_JL"
27333 msgstr ""
27334
27335 #. type: verbatim
27336 #: ../src/guestfs-actions.pod:4644
27337 #, no-wrap
27338 msgid ""
27339 " int\n"
27340 " guestfs_mke2fs_JL (guestfs_h *g,\n"
27341 "                    const char *fstype,\n"
27342 "                    int blocksize,\n"
27343 "                    const char *device,\n"
27344 "                    const char *label);\n"
27345 "\n"
27346 msgstr ""
27347
27348 #. type: textblock
27349 #: ../src/guestfs-actions.pod:4654
27350 msgid "See also C<guestfs_mke2journal_L>."
27351 msgstr ""
27352
27353 #. type: =head2
27354 #: ../src/guestfs-actions.pod:4660
27355 msgid "guestfs_mke2fs_JU"
27356 msgstr ""
27357
27358 #. type: verbatim
27359 #: ../src/guestfs-actions.pod:4662
27360 #, no-wrap
27361 msgid ""
27362 " int\n"
27363 " guestfs_mke2fs_JU (guestfs_h *g,\n"
27364 "                    const char *fstype,\n"
27365 "                    int blocksize,\n"
27366 "                    const char *device,\n"
27367 "                    const char *uuid);\n"
27368 "\n"
27369 msgstr ""
27370
27371 #. type: textblock
27372 #: ../src/guestfs-actions.pod:4672
27373 msgid "See also C<guestfs_mke2journal_U>."
27374 msgstr ""
27375
27376 #. type: =head2
27377 #: ../src/guestfs-actions.pod:4678
27378 msgid "guestfs_mke2journal"
27379 msgstr ""
27380
27381 #. type: verbatim
27382 #: ../src/guestfs-actions.pod:4680
27383 #, no-wrap
27384 msgid ""
27385 " int\n"
27386 " guestfs_mke2journal (guestfs_h *g,\n"
27387 "                      int blocksize,\n"
27388 "                      const char *device);\n"
27389 "\n"
27390 msgstr ""
27391
27392 #. type: =head2
27393 #: ../src/guestfs-actions.pod:4694
27394 msgid "guestfs_mke2journal_L"
27395 msgstr ""
27396
27397 #. type: verbatim
27398 #: ../src/guestfs-actions.pod:4696
27399 #, no-wrap
27400 msgid ""
27401 " int\n"
27402 " guestfs_mke2journal_L (guestfs_h *g,\n"
27403 "                        int blocksize,\n"
27404 "                        const char *label,\n"
27405 "                        const char *device);\n"
27406 "\n"
27407 msgstr ""
27408
27409 #. type: =head2
27410 #: ../src/guestfs-actions.pod:4708
27411 msgid "guestfs_mke2journal_U"
27412 msgstr ""
27413
27414 #. type: verbatim
27415 #: ../src/guestfs-actions.pod:4710
27416 #, no-wrap
27417 msgid ""
27418 " int\n"
27419 " guestfs_mke2journal_U (guestfs_h *g,\n"
27420 "                        int blocksize,\n"
27421 "                        const char *uuid,\n"
27422 "                        const char *device);\n"
27423 "\n"
27424 msgstr ""
27425
27426 #. type: =head2
27427 #: ../src/guestfs-actions.pod:4722
27428 msgid "guestfs_mkfifo"
27429 msgstr ""
27430
27431 #. type: verbatim
27432 #: ../src/guestfs-actions.pod:4724
27433 #, no-wrap
27434 msgid ""
27435 " int\n"
27436 " guestfs_mkfifo (guestfs_h *g,\n"
27437 "                 int mode,\n"
27438 "                 const char *path);\n"
27439 "\n"
27440 msgstr ""
27441
27442 #. type: textblock
27443 #: ../src/guestfs-actions.pod:4729
27444 msgid ""
27445 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
27446 "is just a convenient wrapper around C<guestfs_mknod>."
27447 msgstr ""
27448
27449 #. type: =head2
27450 #: ../src/guestfs-actions.pod:4739
27451 msgid "guestfs_mkfs"
27452 msgstr ""
27453
27454 #. type: verbatim
27455 #: ../src/guestfs-actions.pod:4741
27456 #, no-wrap
27457 msgid ""
27458 " int\n"
27459 " guestfs_mkfs (guestfs_h *g,\n"
27460 "               const char *fstype,\n"
27461 "               const char *device);\n"
27462 "\n"
27463 msgstr ""
27464
27465 #. type: =head2
27466 #: ../src/guestfs-actions.pod:4754
27467 msgid "guestfs_mkfs_b"
27468 msgstr ""
27469
27470 #. type: verbatim
27471 #: ../src/guestfs-actions.pod:4756
27472 #, no-wrap
27473 msgid ""
27474 " int\n"
27475 " guestfs_mkfs_b (guestfs_h *g,\n"
27476 "                 const char *fstype,\n"
27477 "                 int blocksize,\n"
27478 "                 const char *device);\n"
27479 "\n"
27480 msgstr ""
27481
27482 #. type: textblock
27483 #: ../src/guestfs-actions.pod:4762
27484 msgid ""
27485 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
27486 "call instead."
27487 msgstr ""
27488
27489 #. type: textblock
27490 #: ../src/guestfs-actions.pod:4769
27491 msgid ""
27492 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
27493 "block size of the resulting filesystem.  Supported block sizes depend on the "
27494 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
27495 msgstr ""
27496
27497 #. type: =head2
27498 #: ../src/guestfs-actions.pod:4781
27499 msgid "guestfs_mkfs_opts"
27500 msgstr ""
27501
27502 #. type: verbatim
27503 #: ../src/guestfs-actions.pod:4783
27504 #, no-wrap
27505 msgid ""
27506 " int\n"
27507 " guestfs_mkfs_opts (guestfs_h *g,\n"
27508 "                    const char *fstype,\n"
27509 "                    const char *device,\n"
27510 "                    ...);\n"
27511 "\n"
27512 msgstr ""
27513
27514 #. type: verbatim
27515 #: ../src/guestfs-actions.pod:4794
27516 #, no-wrap
27517 msgid ""
27518 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
27519 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
27520 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
27521 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
27522 "\n"
27523 msgstr ""
27524
27525 #. type: textblock
27526 #: ../src/guestfs-actions.pod:4842
27527 msgid "(Added in 1.7.19)"
27528 msgstr ""
27529
27530 #. type: =head2
27531 #: ../src/guestfs-actions.pod:4844
27532 msgid "guestfs_mkfs_opts_va"
27533 msgstr ""
27534
27535 #. type: verbatim
27536 #: ../src/guestfs-actions.pod:4846
27537 #, no-wrap
27538 msgid ""
27539 " int\n"
27540 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
27541 "                       const char *fstype,\n"
27542 "                       const char *device,\n"
27543 "                       va_list args);\n"
27544 "\n"
27545 msgstr ""
27546
27547 #. type: textblock
27548 #: ../src/guestfs-actions.pod:4852
27549 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
27550 msgstr ""
27551
27552 #. type: =head2
27553 #: ../src/guestfs-actions.pod:4856
27554 msgid "guestfs_mkfs_opts_argv"
27555 msgstr ""
27556
27557 #. type: verbatim
27558 #: ../src/guestfs-actions.pod:4858
27559 #, no-wrap
27560 msgid ""
27561 " int\n"
27562 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27563 "                         const char *fstype,\n"
27564 "                         const char *device,\n"
27565 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
27566 "\n"
27567 msgstr ""
27568
27569 #. type: textblock
27570 #: ../src/guestfs-actions.pod:4864
27571 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
27572 msgstr ""
27573
27574 #. type: =head2
27575 #: ../src/guestfs-actions.pod:4868
27576 msgid "guestfs_mkmountpoint"
27577 msgstr ""
27578
27579 #. type: verbatim
27580 #: ../src/guestfs-actions.pod:4870
27581 #, no-wrap
27582 msgid ""
27583 " int\n"
27584 " guestfs_mkmountpoint (guestfs_h *g,\n"
27585 "                       const char *exemptpath);\n"
27586 "\n"
27587 msgstr ""
27588
27589 #. type: textblock
27590 #: ../src/guestfs-actions.pod:4874
27591 msgid ""
27592 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
27593 "that can be used to create extra mountpoints before mounting the first "
27594 "filesystem."
27595 msgstr ""
27596
27597 #. type: textblock
27598 #: ../src/guestfs-actions.pod:4898
27599 msgid ""
27600 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
27601 "may get unexpected errors if you try to mix these calls.  It is safest to "
27602 "manually unmount filesystems and remove mountpoints after use."
27603 msgstr ""
27604
27605 #. type: textblock
27606 #: ../src/guestfs-actions.pod:4902
27607 msgid ""
27608 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
27609 "first, so for this to work for manual mountpoints, you must ensure that the "
27610 "innermost mountpoints have the longest pathnames, as in the example code "
27611 "above."
27612 msgstr ""
27613
27614 #. type: textblock
27615 #: ../src/guestfs-actions.pod:4909
27616 msgid ""
27617 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
27618 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
27619 "can also trigger these issues."
27620 msgstr ""
27621
27622 #. type: textblock
27623 #: ../src/guestfs-actions.pod:4915 ../src/guestfs-actions.pod:5221
27624 #: ../src/guestfs-actions.pod:6231
27625 msgid "(Added in 1.0.62)"
27626 msgstr ""
27627
27628 #. type: =head2
27629 #: ../src/guestfs-actions.pod:4917
27630 msgid "guestfs_mknod"
27631 msgstr ""
27632
27633 #. type: verbatim
27634 #: ../src/guestfs-actions.pod:4919
27635 #, no-wrap
27636 msgid ""
27637 " int\n"
27638 " guestfs_mknod (guestfs_h *g,\n"
27639 "                int mode,\n"
27640 "                int devmajor,\n"
27641 "                int devminor,\n"
27642 "                const char *path);\n"
27643 "\n"
27644 msgstr ""
27645
27646 #. type: textblock
27647 #: ../src/guestfs-actions.pod:4934
27648 msgid ""
27649 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
27650 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
27651 "regular file).  These constants are available in the standard Linux header "
27652 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
27653 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
27654 "the appropriate constant for you."
27655 msgstr ""
27656
27657 #. type: =head2
27658 #: ../src/guestfs-actions.pod:4948
27659 msgid "guestfs_mknod_b"
27660 msgstr ""
27661
27662 #. type: verbatim
27663 #: ../src/guestfs-actions.pod:4950
27664 #, no-wrap
27665 msgid ""
27666 " int\n"
27667 " guestfs_mknod_b (guestfs_h *g,\n"
27668 "                  int mode,\n"
27669 "                  int devmajor,\n"
27670 "                  int devminor,\n"
27671 "                  const char *path);\n"
27672 "\n"
27673 msgstr ""
27674
27675 #. type: textblock
27676 #: ../src/guestfs-actions.pod:4957
27677 msgid ""
27678 "This call creates a block device node called C<path> with mode C<mode> and "
27679 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
27680 "wrapper around C<guestfs_mknod>."
27681 msgstr ""
27682
27683 #. type: =head2
27684 #: ../src/guestfs-actions.pod:4967
27685 msgid "guestfs_mknod_c"
27686 msgstr ""
27687
27688 #. type: verbatim
27689 #: ../src/guestfs-actions.pod:4969
27690 #, no-wrap
27691 msgid ""
27692 " int\n"
27693 " guestfs_mknod_c (guestfs_h *g,\n"
27694 "                  int mode,\n"
27695 "                  int devmajor,\n"
27696 "                  int devminor,\n"
27697 "                  const char *path);\n"
27698 "\n"
27699 msgstr ""
27700
27701 #. type: textblock
27702 #: ../src/guestfs-actions.pod:4976
27703 msgid ""
27704 "This call creates a char device node called C<path> with mode C<mode> and "
27705 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
27706 "wrapper around C<guestfs_mknod>."
27707 msgstr ""
27708
27709 #. type: =head2
27710 #: ../src/guestfs-actions.pod:4986
27711 msgid "guestfs_mkswap"
27712 msgstr ""
27713
27714 #. type: verbatim
27715 #: ../src/guestfs-actions.pod:4988
27716 #, no-wrap
27717 msgid ""
27718 " int\n"
27719 " guestfs_mkswap (guestfs_h *g,\n"
27720 "                 const char *device);\n"
27721 "\n"
27722 msgstr ""
27723
27724 #. type: =head2
27725 #: ../src/guestfs-actions.pod:4998
27726 msgid "guestfs_mkswap_L"
27727 msgstr ""
27728
27729 #. type: verbatim
27730 #: ../src/guestfs-actions.pod:5000
27731 #, no-wrap
27732 msgid ""
27733 " int\n"
27734 " guestfs_mkswap_L (guestfs_h *g,\n"
27735 "                   const char *label,\n"
27736 "                   const char *device);\n"
27737 "\n"
27738 msgstr ""
27739
27740 #. type: =head2
27741 #: ../src/guestfs-actions.pod:5015
27742 msgid "guestfs_mkswap_U"
27743 msgstr ""
27744
27745 #. type: verbatim
27746 #: ../src/guestfs-actions.pod:5017
27747 #, no-wrap
27748 msgid ""
27749 " int\n"
27750 " guestfs_mkswap_U (guestfs_h *g,\n"
27751 "                   const char *uuid,\n"
27752 "                   const char *device);\n"
27753 "\n"
27754 msgstr ""
27755
27756 #. type: =head2
27757 #: ../src/guestfs-actions.pod:5028
27758 msgid "guestfs_mkswap_file"
27759 msgstr ""
27760
27761 #. type: verbatim
27762 #: ../src/guestfs-actions.pod:5030
27763 #, no-wrap
27764 msgid ""
27765 " int\n"
27766 " guestfs_mkswap_file (guestfs_h *g,\n"
27767 "                      const char *path);\n"
27768 "\n"
27769 msgstr ""
27770
27771 #. type: textblock
27772 #: ../src/guestfs-actions.pod:5036
27773 msgid ""
27774 "This command just writes a swap file signature to an existing file.  To "
27775 "create the file itself, use something like C<guestfs_fallocate>."
27776 msgstr ""
27777
27778 #. type: =head2
27779 #: ../src/guestfs-actions.pod:5043
27780 msgid "guestfs_modprobe"
27781 msgstr ""
27782
27783 #. type: verbatim
27784 #: ../src/guestfs-actions.pod:5045
27785 #, no-wrap
27786 msgid ""
27787 " int\n"
27788 " guestfs_modprobe (guestfs_h *g,\n"
27789 "                   const char *modulename);\n"
27790 "\n"
27791 msgstr ""
27792
27793 #. type: =head2
27794 #: ../src/guestfs-actions.pod:5058
27795 msgid "guestfs_mount"
27796 msgstr ""
27797
27798 #. type: verbatim
27799 #: ../src/guestfs-actions.pod:5060
27800 #, no-wrap
27801 msgid ""
27802 " int\n"
27803 " guestfs_mount (guestfs_h *g,\n"
27804 "                const char *device,\n"
27805 "                const char *mountpoint);\n"
27806 "\n"
27807 msgstr ""
27808
27809 #. type: textblock
27810 #: ../src/guestfs-actions.pod:5079
27811 msgid ""
27812 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
27813 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
27814 "problems for users.  If your program might need to work with older versions "
27815 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
27816 "for the first parameter if you don't want any options)."
27817 msgstr ""
27818
27819 #. type: =head2
27820 #: ../src/guestfs-actions.pod:5090
27821 msgid "guestfs_mount_9p"
27822 msgstr ""
27823
27824 #. type: verbatim
27825 #: ../src/guestfs-actions.pod:5092
27826 #, no-wrap
27827 msgid ""
27828 " int\n"
27829 " guestfs_mount_9p (guestfs_h *g,\n"
27830 "                   const char *mounttag,\n"
27831 "                   const char *mountpoint,\n"
27832 "                   ...);\n"
27833 "\n"
27834 msgstr ""
27835
27836 #. type: verbatim
27837 #: ../src/guestfs-actions.pod:5103
27838 #, no-wrap
27839 msgid ""
27840 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
27841 "\n"
27842 msgstr ""
27843
27844 #. type: =head2
27845 #: ../src/guestfs-actions.pod:5116
27846 msgid "guestfs_mount_9p_va"
27847 msgstr ""
27848
27849 #. type: verbatim
27850 #: ../src/guestfs-actions.pod:5118
27851 #, no-wrap
27852 msgid ""
27853 " int\n"
27854 " guestfs_mount_9p_va (guestfs_h *g,\n"
27855 "                      const char *mounttag,\n"
27856 "                      const char *mountpoint,\n"
27857 "                      va_list args);\n"
27858 "\n"
27859 msgstr ""
27860
27861 #. type: textblock
27862 #: ../src/guestfs-actions.pod:5124
27863 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
27864 msgstr ""
27865
27866 #. type: =head2
27867 #: ../src/guestfs-actions.pod:5128
27868 msgid "guestfs_mount_9p_argv"
27869 msgstr ""
27870
27871 #. type: verbatim
27872 #: ../src/guestfs-actions.pod:5130
27873 #, no-wrap
27874 msgid ""
27875 " int\n"
27876 " guestfs_mount_9p_argv (guestfs_h *g,\n"
27877 "                        const char *mounttag,\n"
27878 "                        const char *mountpoint,\n"
27879 "                        const struct guestfs_mount_9p_argv *optargs);\n"
27880 "\n"
27881 msgstr ""
27882
27883 #. type: textblock
27884 #: ../src/guestfs-actions.pod:5136
27885 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
27886 msgstr ""
27887
27888 #. type: =head2
27889 #: ../src/guestfs-actions.pod:5140
27890 msgid "guestfs_mount_loop"
27891 msgstr ""
27892
27893 #. type: verbatim
27894 #: ../src/guestfs-actions.pod:5142
27895 #, no-wrap
27896 msgid ""
27897 " int\n"
27898 " guestfs_mount_loop (guestfs_h *g,\n"
27899 "                     const char *file,\n"
27900 "                     const char *mountpoint);\n"
27901 "\n"
27902 msgstr ""
27903
27904 #. type: =head2
27905 #: ../src/guestfs-actions.pod:5155
27906 msgid "guestfs_mount_options"
27907 msgstr ""
27908
27909 #. type: verbatim
27910 #: ../src/guestfs-actions.pod:5157
27911 #, no-wrap
27912 msgid ""
27913 " int\n"
27914 " guestfs_mount_options (guestfs_h *g,\n"
27915 "                        const char *options,\n"
27916 "                        const char *device,\n"
27917 "                        const char *mountpoint);\n"
27918 "\n"
27919 msgstr ""
27920
27921 #. type: textblock
27922 #: ../src/guestfs-actions.pod:5163
27923 msgid ""
27924 "This is the same as the C<guestfs_mount> command, but it allows you to set "
27925 "the mount options as for the L<mount(8)> I<-o> flag."
27926 msgstr ""
27927
27928 #. type: textblock
27929 #: ../src/guestfs-actions.pod:5173 ../src/guestfs-actions.pod:5187
27930 #: ../src/guestfs-actions.pod:5204
27931 msgid "(Added in 1.0.10)"
27932 msgstr ""
27933
27934 #. type: =head2
27935 #: ../src/guestfs-actions.pod:5175
27936 msgid "guestfs_mount_ro"
27937 msgstr ""
27938
27939 #. type: verbatim
27940 #: ../src/guestfs-actions.pod:5177
27941 #, no-wrap
27942 msgid ""
27943 " int\n"
27944 " guestfs_mount_ro (guestfs_h *g,\n"
27945 "                   const char *device,\n"
27946 "                   const char *mountpoint);\n"
27947 "\n"
27948 msgstr ""
27949
27950 #. type: textblock
27951 #: ../src/guestfs-actions.pod:5182
27952 msgid ""
27953 "This is the same as the C<guestfs_mount> command, but it mounts the "
27954 "filesystem with the read-only (I<-o ro>) flag."
27955 msgstr ""
27956
27957 #. type: =head2
27958 #: ../src/guestfs-actions.pod:5189
27959 msgid "guestfs_mount_vfs"
27960 msgstr ""
27961
27962 #. type: verbatim
27963 #: ../src/guestfs-actions.pod:5191
27964 #, no-wrap
27965 msgid ""
27966 " int\n"
27967 " guestfs_mount_vfs (guestfs_h *g,\n"
27968 "                    const char *options,\n"
27969 "                    const char *vfstype,\n"
27970 "                    const char *device,\n"
27971 "                    const char *mountpoint);\n"
27972 "\n"
27973 msgstr ""
27974
27975 #. type: textblock
27976 #: ../src/guestfs-actions.pod:5198
27977 msgid ""
27978 "This is the same as the C<guestfs_mount> command, but it allows you to set "
27979 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
27980 "t> flags."
27981 msgstr ""
27982
27983 #. type: =head2
27984 #: ../src/guestfs-actions.pod:5206
27985 msgid "guestfs_mountpoints"
27986 msgstr ""
27987
27988 #. type: verbatim
27989 #: ../src/guestfs-actions.pod:5208
27990 #, no-wrap
27991 msgid ""
27992 " char **\n"
27993 " guestfs_mountpoints (guestfs_h *g);\n"
27994 "\n"
27995 msgstr ""
27996
27997 #. type: textblock
27998 #: ../src/guestfs-actions.pod:5211
27999 msgid ""
28000 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
28001 "devices.  This one returns a hash table (map) of device name to directory "
28002 "where the device is mounted."
28003 msgstr ""
28004
28005 #. type: =head2
28006 #: ../src/guestfs-actions.pod:5223
28007 msgid "guestfs_mounts"
28008 msgstr ""
28009
28010 #. type: verbatim
28011 #: ../src/guestfs-actions.pod:5225
28012 #, no-wrap
28013 msgid ""
28014 " char **\n"
28015 " guestfs_mounts (guestfs_h *g);\n"
28016 "\n"
28017 msgstr ""
28018
28019 #. type: textblock
28020 #: ../src/guestfs-actions.pod:5233
28021 msgid "See also: C<guestfs_mountpoints>"
28022 msgstr ""
28023
28024 #. type: =head2
28025 #: ../src/guestfs-actions.pod:5241
28026 msgid "guestfs_mv"
28027 msgstr ""
28028
28029 #. type: verbatim
28030 #: ../src/guestfs-actions.pod:5243
28031 #, no-wrap
28032 msgid ""
28033 " int\n"
28034 " guestfs_mv (guestfs_h *g,\n"
28035 "             const char *src,\n"
28036 "             const char *dest);\n"
28037 "\n"
28038 msgstr ""
28039
28040 #. type: =head2
28041 #: ../src/guestfs-actions.pod:5255
28042 msgid "guestfs_ntfs_3g_probe"
28043 msgstr ""
28044
28045 #. type: verbatim
28046 #: ../src/guestfs-actions.pod:5257
28047 #, no-wrap
28048 msgid ""
28049 " int\n"
28050 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
28051 "                        int rw,\n"
28052 "                        const char *device);\n"
28053 "\n"
28054 msgstr ""
28055
28056 #. type: textblock
28057 #: ../src/guestfs-actions.pod:5276
28058 msgid "(Added in 1.0.43)"
28059 msgstr ""
28060
28061 #. type: =head2
28062 #: ../src/guestfs-actions.pod:5278
28063 msgid "guestfs_ntfsresize"
28064 msgstr ""
28065
28066 #. type: verbatim
28067 #: ../src/guestfs-actions.pod:5280
28068 #, no-wrap
28069 msgid ""
28070 " int\n"
28071 " guestfs_ntfsresize (guestfs_h *g,\n"
28072 "                     const char *device);\n"
28073 "\n"
28074 msgstr ""
28075
28076 #. type: textblock
28077 #: ../src/guestfs-actions.pod:5284 ../src/guestfs-actions.pod:5384
28078 msgid ""
28079 "I<This function is deprecated.> In new code, use the L</"
28080 "guestfs_ntfsresize_opts> call instead."
28081 msgstr ""
28082
28083 #. type: =head2
28084 #: ../src/guestfs-actions.pod:5308
28085 msgid "guestfs_ntfsresize_opts"
28086 msgstr ""
28087
28088 #. type: verbatim
28089 #: ../src/guestfs-actions.pod:5310
28090 #, no-wrap
28091 msgid ""
28092 " int\n"
28093 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
28094 "                          const char *device,\n"
28095 "                          ...);\n"
28096 "\n"
28097 msgstr ""
28098
28099 #. type: verbatim
28100 #: ../src/guestfs-actions.pod:5320
28101 #, no-wrap
28102 msgid ""
28103 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
28104 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
28105 "\n"
28106 msgstr ""
28107
28108 #. type: textblock
28109 #: ../src/guestfs-actions.pod:5340
28110 msgid ""
28111 "After the resize operation, the filesystem is always marked as requiring a "
28112 "consistency check (for safety).  You have to boot into Windows to perform "
28113 "this check and clear this condition.  If you I<don't> set the C<force> "
28114 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
28115 "times on a single filesystem without booting into Windows between each "
28116 "resize."
28117 msgstr ""
28118
28119 #. type: =head2
28120 #: ../src/guestfs-actions.pod:5355
28121 msgid "guestfs_ntfsresize_opts_va"
28122 msgstr ""
28123
28124 #. type: verbatim
28125 #: ../src/guestfs-actions.pod:5357
28126 #, no-wrap
28127 msgid ""
28128 " int\n"
28129 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
28130 "                             const char *device,\n"
28131 "                             va_list args);\n"
28132 "\n"
28133 msgstr ""
28134
28135 #. type: textblock
28136 #: ../src/guestfs-actions.pod:5362
28137 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
28138 msgstr ""
28139
28140 #. type: =head2
28141 #: ../src/guestfs-actions.pod:5366
28142 msgid "guestfs_ntfsresize_opts_argv"
28143 msgstr ""
28144
28145 #. type: verbatim
28146 #: ../src/guestfs-actions.pod:5368
28147 #, no-wrap
28148 msgid ""
28149 " int\n"
28150 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
28151 "                               const char *device,\n"
28152 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
28153 "\n"
28154 msgstr ""
28155
28156 #. type: textblock
28157 #: ../src/guestfs-actions.pod:5373
28158 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
28159 msgstr ""
28160
28161 #. type: =head2
28162 #: ../src/guestfs-actions.pod:5377
28163 msgid "guestfs_ntfsresize_size"
28164 msgstr ""
28165
28166 #. type: verbatim
28167 #: ../src/guestfs-actions.pod:5379
28168 #, no-wrap
28169 msgid ""
28170 " int\n"
28171 " guestfs_ntfsresize_size (guestfs_h *g,\n"
28172 "                          const char *device,\n"
28173 "                          int64_t size);\n"
28174 "\n"
28175 msgstr ""
28176
28177 #. type: textblock
28178 #: ../src/guestfs-actions.pod:5391
28179 msgid ""
28180 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
28181 "to specify the new size (in bytes) explicitly."
28182 msgstr ""
28183
28184 #. type: textblock
28185 #: ../src/guestfs-actions.pod:5396 ../src/guestfs-actions.pod:5838
28186 #: ../src/guestfs-actions.pod:5911 ../src/guestfs-actions.pod:6179
28187 #: ../src/guestfs-actions.pod:7816
28188 msgid "(Added in 1.3.14)"
28189 msgstr ""
28190
28191 #. type: =head2
28192 #: ../src/guestfs-actions.pod:5398
28193 msgid "guestfs_part_add"
28194 msgstr ""
28195
28196 #. type: verbatim
28197 #: ../src/guestfs-actions.pod:5400
28198 #, no-wrap
28199 msgid ""
28200 " int\n"
28201 " guestfs_part_add (guestfs_h *g,\n"
28202 "                   const char *device,\n"
28203 "                   const char *prlogex,\n"
28204 "                   int64_t startsect,\n"
28205 "                   int64_t endsect);\n"
28206 "\n"
28207 msgstr ""
28208
28209 #. type: textblock
28210 #: ../src/guestfs-actions.pod:5407
28211 msgid ""
28212 "This command adds a partition to C<device>.  If there is no partition table "
28213 "on the device, call C<guestfs_part_init> first."
28214 msgstr ""
28215
28216 #. type: textblock
28217 #: ../src/guestfs-actions.pod:5419
28218 msgid ""
28219 "Creating a partition which covers the whole disk is not so easy.  Use "
28220 "C<guestfs_part_disk> to do that."
28221 msgstr ""
28222
28223 #. type: textblock
28224 #: ../src/guestfs-actions.pod:5424 ../src/guestfs-actions.pod:5462
28225 #: ../src/guestfs-actions.pod:5515 ../src/guestfs-actions.pod:5599
28226 #: ../src/guestfs-actions.pod:5637 ../src/guestfs-actions.pod:5656
28227 #: ../src/guestfs-actions.pod:5696
28228 msgid "(Added in 1.0.78)"
28229 msgstr ""
28230
28231 #. type: =head2
28232 #: ../src/guestfs-actions.pod:5426
28233 msgid "guestfs_part_del"
28234 msgstr ""
28235
28236 #. type: verbatim
28237 #: ../src/guestfs-actions.pod:5428
28238 #, no-wrap
28239 msgid ""
28240 " int\n"
28241 " guestfs_part_del (guestfs_h *g,\n"
28242 "                   const char *device,\n"
28243 "                   int partnum);\n"
28244 "\n"
28245 msgstr ""
28246
28247 #. type: =head2
28248 #: ../src/guestfs-actions.pod:5443
28249 msgid "guestfs_part_disk"
28250 msgstr ""
28251
28252 #. type: verbatim
28253 #: ../src/guestfs-actions.pod:5445
28254 #, no-wrap
28255 msgid ""
28256 " int\n"
28257 " guestfs_part_disk (guestfs_h *g,\n"
28258 "                    const char *device,\n"
28259 "                    const char *parttype);\n"
28260 "\n"
28261 msgstr ""
28262
28263 #. type: textblock
28264 #: ../src/guestfs-actions.pod:5450
28265 msgid ""
28266 "This command is simply a combination of C<guestfs_part_init> followed by "
28267 "C<guestfs_part_add> to create a single primary partition covering the whole "
28268 "disk."
28269 msgstr ""
28270
28271 #. type: textblock
28272 #: ../src/guestfs-actions.pod:5454
28273 msgid ""
28274 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
28275 "possible values are described in C<guestfs_part_init>."
28276 msgstr ""
28277
28278 #. type: =head2
28279 #: ../src/guestfs-actions.pod:5464
28280 msgid "guestfs_part_get_bootable"
28281 msgstr ""
28282
28283 #. type: verbatim
28284 #: ../src/guestfs-actions.pod:5466
28285 #, no-wrap
28286 msgid ""
28287 " int\n"
28288 " guestfs_part_get_bootable (guestfs_h *g,\n"
28289 "                            const char *device,\n"
28290 "                            int partnum);\n"
28291 "\n"
28292 msgstr ""
28293
28294 #. type: textblock
28295 #: ../src/guestfs-actions.pod:5474
28296 msgid "See also C<guestfs_part_set_bootable>."
28297 msgstr ""
28298
28299 #. type: =head2
28300 #: ../src/guestfs-actions.pod:5480
28301 msgid "guestfs_part_get_mbr_id"
28302 msgstr ""
28303
28304 #. type: verbatim
28305 #: ../src/guestfs-actions.pod:5482
28306 #, no-wrap
28307 msgid ""
28308 " int\n"
28309 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
28310 "                          const char *device,\n"
28311 "                          int partnum);\n"
28312 "\n"
28313 msgstr ""
28314
28315 #. type: textblock
28316 #: ../src/guestfs-actions.pod:5490 ../src/guestfs-actions.pod:5672
28317 msgid ""
28318 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
28319 "undefined results for other partition table types (see "
28320 "C<guestfs_part_get_parttype>)."
28321 msgstr ""
28322
28323 #. type: =head2
28324 #: ../src/guestfs-actions.pod:5498
28325 msgid "guestfs_part_get_parttype"
28326 msgstr ""
28327
28328 #. type: verbatim
28329 #: ../src/guestfs-actions.pod:5500
28330 #, no-wrap
28331 msgid ""
28332 " char *\n"
28333 " guestfs_part_get_parttype (guestfs_h *g,\n"
28334 "                            const char *device);\n"
28335 "\n"
28336 msgstr ""
28337
28338 #. type: textblock
28339 #: ../src/guestfs-actions.pod:5507
28340 msgid ""
28341 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
28342 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
28343 "possible, although unusual.  See C<guestfs_part_init> for a full list."
28344 msgstr ""
28345
28346 #. type: =head2
28347 #: ../src/guestfs-actions.pod:5517
28348 msgid "guestfs_part_init"
28349 msgstr ""
28350
28351 #. type: verbatim
28352 #: ../src/guestfs-actions.pod:5519
28353 #, no-wrap
28354 msgid ""
28355 " int\n"
28356 " guestfs_part_init (guestfs_h *g,\n"
28357 "                    const char *device,\n"
28358 "                    const char *parttype);\n"
28359 "\n"
28360 msgstr ""
28361
28362 #. type: textblock
28363 #: ../src/guestfs-actions.pod:5528
28364 msgid ""
28365 "Initially there are no partitions.  Following this, you should call "
28366 "C<guestfs_part_add> for each partition required."
28367 msgstr ""
28368
28369 #. type: =head2
28370 #: ../src/guestfs-actions.pod:5601
28371 msgid "guestfs_part_list"
28372 msgstr ""
28373
28374 #. type: verbatim
28375 #: ../src/guestfs-actions.pod:5603
28376 #, no-wrap
28377 msgid ""
28378 " struct guestfs_partition_list *\n"
28379 " guestfs_part_list (guestfs_h *g,\n"
28380 "                    const char *device);\n"
28381 "\n"
28382 msgstr ""
28383
28384 #. type: textblock
28385 #: ../src/guestfs-actions.pod:5620
28386 msgid ""
28387 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
28388 "the device's sector size, see C<guestfs_blockdev_getss>."
28389 msgstr ""
28390
28391 #. type: textblock
28392 #: ../src/guestfs-actions.pod:5633
28393 msgid ""
28394 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
28395 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
28396 "use>."
28397 msgstr ""
28398
28399 #. type: =head2
28400 #: ../src/guestfs-actions.pod:5639
28401 msgid "guestfs_part_set_bootable"
28402 msgstr ""
28403
28404 #. type: verbatim
28405 #: ../src/guestfs-actions.pod:5641
28406 #, no-wrap
28407 msgid ""
28408 " int\n"
28409 " guestfs_part_set_bootable (guestfs_h *g,\n"
28410 "                            const char *device,\n"
28411 "                            int partnum,\n"
28412 "                            int bootable);\n"
28413 "\n"
28414 msgstr ""
28415
28416 #. type: =head2
28417 #: ../src/guestfs-actions.pod:5658
28418 msgid "guestfs_part_set_mbr_id"
28419 msgstr ""
28420
28421 #. type: verbatim
28422 #: ../src/guestfs-actions.pod:5660
28423 #, no-wrap
28424 msgid ""
28425 " int\n"
28426 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
28427 "                          const char *device,\n"
28428 "                          int partnum,\n"
28429 "                          int idbyte);\n"
28430 "\n"
28431 msgstr ""
28432
28433 #. type: =head2
28434 #: ../src/guestfs-actions.pod:5680
28435 msgid "guestfs_part_set_name"
28436 msgstr ""
28437
28438 #. type: verbatim
28439 #: ../src/guestfs-actions.pod:5682
28440 #, no-wrap
28441 msgid ""
28442 " int\n"
28443 " guestfs_part_set_name (guestfs_h *g,\n"
28444 "                        const char *device,\n"
28445 "                        int partnum,\n"
28446 "                        const char *name);\n"
28447 "\n"
28448 msgstr ""
28449
28450 #. type: =head2
28451 #: ../src/guestfs-actions.pod:5698
28452 msgid "guestfs_part_to_dev"
28453 msgstr ""
28454
28455 #. type: verbatim
28456 #: ../src/guestfs-actions.pod:5700
28457 #, no-wrap
28458 msgid ""
28459 " char *\n"
28460 " guestfs_part_to_dev (guestfs_h *g,\n"
28461 "                      const char *partition);\n"
28462 "\n"
28463 msgstr ""
28464
28465 #. type: textblock
28466 #: ../src/guestfs-actions.pod:5708
28467 msgid ""
28468 "The named partition must exist, for example as a string returned from "
28469 "C<guestfs_list_partitions>."
28470 msgstr ""
28471
28472 #. type: =head2
28473 #: ../src/guestfs-actions.pod:5716
28474 msgid "guestfs_ping_daemon"
28475 msgstr ""
28476
28477 #. type: verbatim
28478 #: ../src/guestfs-actions.pod:5718
28479 #, no-wrap
28480 msgid ""
28481 " int\n"
28482 " guestfs_ping_daemon (guestfs_h *g);\n"
28483 "\n"
28484 msgstr ""
28485
28486 #. type: =head2
28487 #: ../src/guestfs-actions.pod:5730
28488 msgid "guestfs_pread"
28489 msgstr ""
28490
28491 #. type: verbatim
28492 #: ../src/guestfs-actions.pod:5732
28493 #, no-wrap
28494 msgid ""
28495 " char *\n"
28496 " guestfs_pread (guestfs_h *g,\n"
28497 "                const char *path,\n"
28498 "                int count,\n"
28499 "                int64_t offset,\n"
28500 "                size_t *size_r);\n"
28501 "\n"
28502 msgstr ""
28503
28504 #. type: textblock
28505 #: ../src/guestfs-actions.pod:5745
28506 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
28507 msgstr ""
28508
28509 #. type: =head2
28510 #: ../src/guestfs-actions.pod:5756
28511 msgid "guestfs_pread_device"
28512 msgstr ""
28513
28514 #. type: verbatim
28515 #: ../src/guestfs-actions.pod:5758
28516 #, no-wrap
28517 msgid ""
28518 " char *\n"
28519 " guestfs_pread_device (guestfs_h *g,\n"
28520 "                       const char *device,\n"
28521 "                       int count,\n"
28522 "                       int64_t offset,\n"
28523 "                       size_t *size_r);\n"
28524 "\n"
28525 msgstr ""
28526
28527 #. type: textblock
28528 #: ../src/guestfs-actions.pod:5771
28529 msgid "See also C<guestfs_pread>."
28530 msgstr ""
28531
28532 #. type: textblock
28533 #: ../src/guestfs-actions.pod:5780
28534 msgid "(Added in 1.5.21)"
28535 msgstr ""
28536
28537 #. type: =head2
28538 #: ../src/guestfs-actions.pod:5782
28539 msgid "guestfs_pvcreate"
28540 msgstr ""
28541
28542 #. type: verbatim
28543 #: ../src/guestfs-actions.pod:5784
28544 #, no-wrap
28545 msgid ""
28546 " int\n"
28547 " guestfs_pvcreate (guestfs_h *g,\n"
28548 "                   const char *device);\n"
28549 "\n"
28550 msgstr ""
28551
28552 #. type: =head2
28553 #: ../src/guestfs-actions.pod:5796
28554 msgid "guestfs_pvremove"
28555 msgstr ""
28556
28557 #. type: verbatim
28558 #: ../src/guestfs-actions.pod:5798
28559 #, no-wrap
28560 msgid ""
28561 " int\n"
28562 " guestfs_pvremove (guestfs_h *g,\n"
28563 "                   const char *device);\n"
28564 "\n"
28565 msgstr ""
28566
28567 #. type: =head2
28568 #: ../src/guestfs-actions.pod:5813
28569 msgid "guestfs_pvresize"
28570 msgstr ""
28571
28572 #. type: verbatim
28573 #: ../src/guestfs-actions.pod:5815
28574 #, no-wrap
28575 msgid ""
28576 " int\n"
28577 " guestfs_pvresize (guestfs_h *g,\n"
28578 "                   const char *device);\n"
28579 "\n"
28580 msgstr ""
28581
28582 #. type: =head2
28583 #: ../src/guestfs-actions.pod:5826
28584 msgid "guestfs_pvresize_size"
28585 msgstr ""
28586
28587 #. type: verbatim
28588 #: ../src/guestfs-actions.pod:5828
28589 #, no-wrap
28590 msgid ""
28591 " int\n"
28592 " guestfs_pvresize_size (guestfs_h *g,\n"
28593 "                        const char *device,\n"
28594 "                        int64_t size);\n"
28595 "\n"
28596 msgstr ""
28597
28598 #. type: textblock
28599 #: ../src/guestfs-actions.pod:5833
28600 msgid ""
28601 "This command is the same as C<guestfs_pvresize> except that it allows you to "
28602 "specify the new size (in bytes) explicitly."
28603 msgstr ""
28604
28605 #. type: =head2
28606 #: ../src/guestfs-actions.pod:5840
28607 msgid "guestfs_pvs"
28608 msgstr ""
28609
28610 #. type: verbatim
28611 #: ../src/guestfs-actions.pod:5842
28612 #, no-wrap
28613 msgid ""
28614 " char **\n"
28615 " guestfs_pvs (guestfs_h *g);\n"
28616 "\n"
28617 msgstr ""
28618
28619 #. type: textblock
28620 #: ../src/guestfs-actions.pod:5851
28621 msgid "See also C<guestfs_pvs_full>."
28622 msgstr ""
28623
28624 #. type: =head2
28625 #: ../src/guestfs-actions.pod:5859
28626 msgid "guestfs_pvs_full"
28627 msgstr ""
28628
28629 #. type: verbatim
28630 #: ../src/guestfs-actions.pod:5861
28631 #, no-wrap
28632 msgid ""
28633 " struct guestfs_lvm_pv_list *\n"
28634 " guestfs_pvs_full (guestfs_h *g);\n"
28635 "\n"
28636 msgstr ""
28637
28638 #. type: textblock
28639 #: ../src/guestfs-actions.pod:5867
28640 msgid ""
28641 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
28642 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
28643 msgstr ""
28644
28645 #. type: =head2
28646 #: ../src/guestfs-actions.pod:5873
28647 msgid "guestfs_pvuuid"
28648 msgstr ""
28649
28650 #. type: verbatim
28651 #: ../src/guestfs-actions.pod:5875
28652 #, no-wrap
28653 msgid ""
28654 " char *\n"
28655 " guestfs_pvuuid (guestfs_h *g,\n"
28656 "                 const char *device);\n"
28657 "\n"
28658 msgstr ""
28659
28660 #. type: =head2
28661 #: ../src/guestfs-actions.pod:5886
28662 msgid "guestfs_pwrite"
28663 msgstr ""
28664
28665 #. type: verbatim
28666 #: ../src/guestfs-actions.pod:5888
28667 #, no-wrap
28668 msgid ""
28669 " int\n"
28670 " guestfs_pwrite (guestfs_h *g,\n"
28671 "                 const char *path,\n"
28672 "                 const char *content,\n"
28673 "                 size_t content_size,\n"
28674 "                 int64_t offset);\n"
28675 "\n"
28676 msgstr ""
28677
28678 #. type: textblock
28679 #: ../src/guestfs-actions.pod:5904
28680 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
28681 msgstr ""
28682
28683 #. type: =head2
28684 #: ../src/guestfs-actions.pod:5913
28685 msgid "guestfs_pwrite_device"
28686 msgstr ""
28687
28688 #. type: verbatim
28689 #: ../src/guestfs-actions.pod:5915
28690 #, no-wrap
28691 msgid ""
28692 " int\n"
28693 " guestfs_pwrite_device (guestfs_h *g,\n"
28694 "                        const char *device,\n"
28695 "                        const char *content,\n"
28696 "                        size_t content_size,\n"
28697 "                        int64_t offset);\n"
28698 "\n"
28699 msgstr ""
28700
28701 #. type: textblock
28702 #: ../src/guestfs-actions.pod:5930
28703 msgid "See also C<guestfs_pwrite>."
28704 msgstr ""
28705
28706 #. type: textblock
28707 #: ../src/guestfs-actions.pod:5937
28708 msgid "(Added in 1.5.20)"
28709 msgstr ""
28710
28711 #. type: =head2
28712 #: ../src/guestfs-actions.pod:5939
28713 msgid "guestfs_read_file"
28714 msgstr ""
28715
28716 #. type: verbatim
28717 #: ../src/guestfs-actions.pod:5941
28718 #, no-wrap
28719 msgid ""
28720 " char *\n"
28721 " guestfs_read_file (guestfs_h *g,\n"
28722 "                    const char *path,\n"
28723 "                    size_t *size_r);\n"
28724 "\n"
28725 msgstr ""
28726
28727 #. type: textblock
28728 #: ../src/guestfs-actions.pod:5949
28729 msgid ""
28730 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
28731 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
28732 "function is limited in the total size of file that can be handled."
28733 msgstr ""
28734
28735 #. type: textblock
28736 #: ../src/guestfs-actions.pod:5961
28737 msgid "(Added in 1.0.63)"
28738 msgstr ""
28739
28740 #. type: =head2
28741 #: ../src/guestfs-actions.pod:5963
28742 msgid "guestfs_read_lines"
28743 msgstr ""
28744
28745 #. type: verbatim
28746 #: ../src/guestfs-actions.pod:5965
28747 #, no-wrap
28748 msgid ""
28749 " char **\n"
28750 " guestfs_read_lines (guestfs_h *g,\n"
28751 "                     const char *path);\n"
28752 "\n"
28753 msgstr ""
28754
28755 #. type: textblock
28756 #: ../src/guestfs-actions.pod:5974
28757 msgid ""
28758 "Note that this function cannot correctly handle binary files (specifically, "
28759 "files containing C<\\0> character which is treated as end of line).  For "
28760 "those you need to use the C<guestfs_read_file> function which has a more "
28761 "complex interface."
28762 msgstr ""
28763
28764 #. type: =head2
28765 #: ../src/guestfs-actions.pod:5985
28766 msgid "guestfs_readdir"
28767 msgstr ""
28768
28769 #. type: verbatim
28770 #: ../src/guestfs-actions.pod:5987
28771 #, no-wrap
28772 msgid ""
28773 " struct guestfs_dirent_list *\n"
28774 " guestfs_readdir (guestfs_h *g,\n"
28775 "                  const char *dir);\n"
28776 "\n"
28777 msgstr ""
28778
28779 #. type: textblock
28780 #: ../src/guestfs-actions.pod:6041
28781 msgid ""
28782 "This function is primarily intended for use by programs.  To get a simple "
28783 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
28784 "consumption, use C<guestfs_ll>."
28785 msgstr ""
28786
28787 #. type: textblock
28788 #: ../src/guestfs-actions.pod:6045
28789 msgid ""
28790 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
28791 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
28792 msgstr ""
28793
28794 #. type: =head2
28795 #: ../src/guestfs-actions.pod:6051
28796 msgid "guestfs_readlink"
28797 msgstr ""
28798
28799 #. type: verbatim
28800 #: ../src/guestfs-actions.pod:6053
28801 #, no-wrap
28802 msgid ""
28803 " char *\n"
28804 " guestfs_readlink (guestfs_h *g,\n"
28805 "                   const char *path);\n"
28806 "\n"
28807 msgstr ""
28808
28809 #. type: =head2
28810 #: ../src/guestfs-actions.pod:6064
28811 msgid "guestfs_readlinklist"
28812 msgstr ""
28813
28814 #. type: verbatim
28815 #: ../src/guestfs-actions.pod:6066
28816 #, no-wrap
28817 msgid ""
28818 " char **\n"
28819 " guestfs_readlinklist (guestfs_h *g,\n"
28820 "                       const char *path,\n"
28821 "                       char *const *names);\n"
28822 "\n"
28823 msgstr ""
28824
28825 #. type: =head2
28826 #: ../src/guestfs-actions.pod:6099
28827 msgid "guestfs_realpath"
28828 msgstr ""
28829
28830 #. type: verbatim
28831 #: ../src/guestfs-actions.pod:6101
28832 #, no-wrap
28833 msgid ""
28834 " char *\n"
28835 " guestfs_realpath (guestfs_h *g,\n"
28836 "                   const char *path);\n"
28837 "\n"
28838 msgstr ""
28839
28840 #. type: =head2
28841 #: ../src/guestfs-actions.pod:6113
28842 msgid "guestfs_removexattr"
28843 msgstr ""
28844
28845 #. type: verbatim
28846 #: ../src/guestfs-actions.pod:6115
28847 #, no-wrap
28848 msgid ""
28849 " int\n"
28850 " guestfs_removexattr (guestfs_h *g,\n"
28851 "                      const char *xattr,\n"
28852 "                      const char *path);\n"
28853 "\n"
28854 msgstr ""
28855
28856 #. type: textblock
28857 #: ../src/guestfs-actions.pod:6123
28858 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
28859 msgstr ""
28860
28861 #. type: =head2
28862 #: ../src/guestfs-actions.pod:6129
28863 msgid "guestfs_resize2fs"
28864 msgstr ""
28865
28866 #. type: verbatim
28867 #: ../src/guestfs-actions.pod:6131
28868 #, no-wrap
28869 msgid ""
28870 " int\n"
28871 " guestfs_resize2fs (guestfs_h *g,\n"
28872 "                    const char *device);\n"
28873 "\n"
28874 msgstr ""
28875
28876 #. type: textblock
28877 #: ../src/guestfs-actions.pod:6138
28878 msgid ""
28879 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
28880 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
28881 "sometimes gives an error about this and sometimes not.  In any case, it is "
28882 "always safe to call C<guestfs_e2fsck_f> before calling this function."
28883 msgstr ""
28884
28885 #. type: =head2
28886 #: ../src/guestfs-actions.pod:6148
28887 msgid "guestfs_resize2fs_M"
28888 msgstr ""
28889
28890 #. type: verbatim
28891 #: ../src/guestfs-actions.pod:6150
28892 #, no-wrap
28893 msgid ""
28894 " int\n"
28895 " guestfs_resize2fs_M (guestfs_h *g,\n"
28896 "                      const char *device);\n"
28897 "\n"
28898 msgstr ""
28899
28900 #. type: textblock
28901 #: ../src/guestfs-actions.pod:6154
28902 msgid ""
28903 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
28904 "resized to its minimum size.  This works like the I<-M> option to the "
28905 "C<resize2fs> command."
28906 msgstr ""
28907
28908 #. type: textblock
28909 #: ../src/guestfs-actions.pod:6158
28910 msgid ""
28911 "To get the resulting size of the filesystem you should call "
28912 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
28913 "These two numbers, multiplied together, give the resulting size of the "
28914 "minimal filesystem in bytes."
28915 msgstr ""
28916
28917 #. type: =head2
28918 #: ../src/guestfs-actions.pod:6167
28919 msgid "guestfs_resize2fs_size"
28920 msgstr ""
28921
28922 #. type: verbatim
28923 #: ../src/guestfs-actions.pod:6169
28924 #, no-wrap
28925 msgid ""
28926 " int\n"
28927 " guestfs_resize2fs_size (guestfs_h *g,\n"
28928 "                         const char *device,\n"
28929 "                         int64_t size);\n"
28930 "\n"
28931 msgstr ""
28932
28933 #. type: textblock
28934 #: ../src/guestfs-actions.pod:6174
28935 msgid ""
28936 "This command is the same as C<guestfs_resize2fs> except that it allows you "
28937 "to specify the new size (in bytes) explicitly."
28938 msgstr ""
28939
28940 #. type: =head2
28941 #: ../src/guestfs-actions.pod:6181
28942 msgid "guestfs_rm"
28943 msgstr ""
28944
28945 #. type: verbatim
28946 #: ../src/guestfs-actions.pod:6183
28947 #, no-wrap
28948 msgid ""
28949 " int\n"
28950 " guestfs_rm (guestfs_h *g,\n"
28951 "             const char *path);\n"
28952 "\n"
28953 msgstr ""
28954
28955 #. type: =head2
28956 #: ../src/guestfs-actions.pod:6193
28957 msgid "guestfs_rm_rf"
28958 msgstr ""
28959
28960 #. type: verbatim
28961 #: ../src/guestfs-actions.pod:6195
28962 #, no-wrap
28963 msgid ""
28964 " int\n"
28965 " guestfs_rm_rf (guestfs_h *g,\n"
28966 "                const char *path);\n"
28967 "\n"
28968 msgstr ""
28969
28970 #. type: =head2
28971 #: ../src/guestfs-actions.pod:6207
28972 msgid "guestfs_rmdir"
28973 msgstr ""
28974
28975 #. type: verbatim
28976 #: ../src/guestfs-actions.pod:6209
28977 #, no-wrap
28978 msgid ""
28979 " int\n"
28980 " guestfs_rmdir (guestfs_h *g,\n"
28981 "                const char *path);\n"
28982 "\n"
28983 msgstr ""
28984
28985 #. type: =head2
28986 #: ../src/guestfs-actions.pod:6219
28987 msgid "guestfs_rmmountpoint"
28988 msgstr ""
28989
28990 #. type: verbatim
28991 #: ../src/guestfs-actions.pod:6221
28992 #, no-wrap
28993 msgid ""
28994 " int\n"
28995 " guestfs_rmmountpoint (guestfs_h *g,\n"
28996 "                       const char *exemptpath);\n"
28997 "\n"
28998 msgstr ""
28999
29000 #. type: textblock
29001 #: ../src/guestfs-actions.pod:6225
29002 msgid ""
29003 "This calls removes a mountpoint that was previously created with "
29004 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
29005 msgstr ""
29006
29007 #. type: =head2
29008 #: ../src/guestfs-actions.pod:6233
29009 msgid "guestfs_scrub_device"
29010 msgstr ""
29011
29012 #. type: verbatim
29013 #: ../src/guestfs-actions.pod:6235
29014 #, no-wrap
29015 msgid ""
29016 " int\n"
29017 " guestfs_scrub_device (guestfs_h *g,\n"
29018 "                       const char *device);\n"
29019 "\n"
29020 msgstr ""
29021
29022 #. type: textblock
29023 #: ../src/guestfs-actions.pod:6250 ../src/guestfs-actions.pod:6268
29024 #: ../src/guestfs-actions.pod:6287
29025 msgid "(Added in 1.0.52)"
29026 msgstr ""
29027
29028 #. type: =head2
29029 #: ../src/guestfs-actions.pod:6252
29030 msgid "guestfs_scrub_file"
29031 msgstr ""
29032
29033 #. type: verbatim
29034 #: ../src/guestfs-actions.pod:6254
29035 #, no-wrap
29036 msgid ""
29037 " int\n"
29038 " guestfs_scrub_file (guestfs_h *g,\n"
29039 "                     const char *file);\n"
29040 "\n"
29041 msgstr ""
29042
29043 #. type: =head2
29044 #: ../src/guestfs-actions.pod:6270
29045 msgid "guestfs_scrub_freespace"
29046 msgstr ""
29047
29048 #. type: verbatim
29049 #: ../src/guestfs-actions.pod:6272
29050 #, no-wrap
29051 msgid ""
29052 " int\n"
29053 " guestfs_scrub_freespace (guestfs_h *g,\n"
29054 "                          const char *dir);\n"
29055 "\n"
29056 msgstr ""
29057
29058 #. type: textblock
29059 #: ../src/guestfs-actions.pod:6276
29060 msgid ""
29061 "This command creates the directory C<dir> and then fills it with files until "
29062 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
29063 "and deletes them.  The intention is to scrub any free space on the partition "
29064 "containing C<dir>."
29065 msgstr ""
29066
29067 #. type: =head2
29068 #: ../src/guestfs-actions.pod:6289
29069 msgid "guestfs_set_append"
29070 msgstr ""
29071
29072 #. type: verbatim
29073 #: ../src/guestfs-actions.pod:6291
29074 #, no-wrap
29075 msgid ""
29076 " int\n"
29077 " guestfs_set_append (guestfs_h *g,\n"
29078 "                     const char *append);\n"
29079 "\n"
29080 msgstr ""
29081
29082 #. type: =head2
29083 #: ../src/guestfs-actions.pod:6308
29084 msgid "guestfs_set_attach_method"
29085 msgstr ""
29086
29087 #. type: verbatim
29088 #: ../src/guestfs-actions.pod:6310
29089 #, no-wrap
29090 msgid ""
29091 " int\n"
29092 " guestfs_set_attach_method (guestfs_h *g,\n"
29093 "                            const char *attachmethod);\n"
29094 "\n"
29095 msgstr ""
29096
29097 #. type: =head2
29098 #: ../src/guestfs-actions.pod:6338
29099 msgid "guestfs_set_autosync"
29100 msgstr ""
29101
29102 #. type: verbatim
29103 #: ../src/guestfs-actions.pod:6340
29104 #, no-wrap
29105 msgid ""
29106 " int\n"
29107 " guestfs_set_autosync (guestfs_h *g,\n"
29108 "                       int autosync);\n"
29109 "\n"
29110 msgstr ""
29111
29112 #. type: =head2
29113 #: ../src/guestfs-actions.pod:6356
29114 msgid "guestfs_set_direct"
29115 msgstr ""
29116
29117 #. type: verbatim
29118 #: ../src/guestfs-actions.pod:6358
29119 #, no-wrap
29120 msgid ""
29121 " int\n"
29122 " guestfs_set_direct (guestfs_h *g,\n"
29123 "                     int direct);\n"
29124 "\n"
29125 msgstr ""
29126
29127 #. type: textblock
29128 #: ../src/guestfs-actions.pod:6366
29129 msgid ""
29130 "One consequence of this is that log messages aren't caught by the library "
29131 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
29132 "stdout."
29133 msgstr ""
29134
29135 #. type: =head2
29136 #: ../src/guestfs-actions.pod:6379
29137 msgid "guestfs_set_e2label"
29138 msgstr ""
29139
29140 #. type: verbatim
29141 #: ../src/guestfs-actions.pod:6381
29142 #, no-wrap
29143 msgid ""
29144 " int\n"
29145 " guestfs_set_e2label (guestfs_h *g,\n"
29146 "                      const char *device,\n"
29147 "                      const char *label);\n"
29148 "\n"
29149 msgstr ""
29150
29151 #. type: textblock
29152 #: ../src/guestfs-actions.pod:6390
29153 msgid ""
29154 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
29155 "the existing label on a filesystem."
29156 msgstr ""
29157
29158 #. type: =head2
29159 #: ../src/guestfs-actions.pod:6397
29160 msgid "guestfs_set_e2uuid"
29161 msgstr ""
29162
29163 #. type: verbatim
29164 #: ../src/guestfs-actions.pod:6399
29165 #, no-wrap
29166 msgid ""
29167 " int\n"
29168 " guestfs_set_e2uuid (guestfs_h *g,\n"
29169 "                     const char *device,\n"
29170 "                     const char *uuid);\n"
29171 "\n"
29172 msgstr ""
29173
29174 #. type: textblock
29175 #: ../src/guestfs-actions.pod:6409
29176 msgid ""
29177 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
29178 "the existing UUID of a filesystem."
29179 msgstr ""
29180
29181 #. type: =head2
29182 #: ../src/guestfs-actions.pod:6416
29183 msgid "guestfs_set_memsize"
29184 msgstr ""
29185
29186 #. type: verbatim
29187 #: ../src/guestfs-actions.pod:6418
29188 #, no-wrap
29189 msgid ""
29190 " int\n"
29191 " guestfs_set_memsize (guestfs_h *g,\n"
29192 "                      int memsize);\n"
29193 "\n"
29194 msgstr ""
29195
29196 #. type: textblock
29197 #: ../src/guestfs-actions.pod:6422
29198 msgid ""
29199 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
29200 "This only has any effect if called before C<guestfs_launch>."
29201 msgstr ""
29202
29203 #. type: =head2
29204 #: ../src/guestfs-actions.pod:6437
29205 msgid "guestfs_set_network"
29206 msgstr ""
29207
29208 #. type: verbatim
29209 #: ../src/guestfs-actions.pod:6439
29210 #, no-wrap
29211 msgid ""
29212 " int\n"
29213 " guestfs_set_network (guestfs_h *g,\n"
29214 "                      int network);\n"
29215 "\n"
29216 msgstr ""
29217
29218 #. type: textblock
29219 #: ../src/guestfs-actions.pod:6449
29220 msgid ""
29221 "You must call this before calling C<guestfs_launch>, otherwise it has no "
29222 "effect."
29223 msgstr ""
29224
29225 #. type: =head2
29226 #: ../src/guestfs-actions.pod:6456
29227 msgid "guestfs_set_path"
29228 msgstr ""
29229
29230 #. type: verbatim
29231 #: ../src/guestfs-actions.pod:6458
29232 #, no-wrap
29233 msgid ""
29234 " int\n"
29235 " guestfs_set_path (guestfs_h *g,\n"
29236 "                   const char *searchpath);\n"
29237 "\n"
29238 msgstr ""
29239
29240 #. type: =head2
29241 #: ../src/guestfs-actions.pod:6473
29242 msgid "guestfs_set_pgroup"
29243 msgstr ""
29244
29245 #. type: verbatim
29246 #: ../src/guestfs-actions.pod:6475
29247 #, no-wrap
29248 msgid ""
29249 " int\n"
29250 " guestfs_set_pgroup (guestfs_h *g,\n"
29251 "                     int pgroup);\n"
29252 "\n"
29253 msgstr ""
29254
29255 #. type: =head2
29256 #: ../src/guestfs-actions.pod:6492
29257 msgid "guestfs_set_qemu"
29258 msgstr ""
29259
29260 #. type: verbatim
29261 #: ../src/guestfs-actions.pod:6494
29262 #, no-wrap
29263 msgid ""
29264 " int\n"
29265 " guestfs_set_qemu (guestfs_h *g,\n"
29266 "                   const char *qemu);\n"
29267 "\n"
29268 msgstr ""
29269
29270 #. type: =head2
29271 #: ../src/guestfs-actions.pod:6520
29272 msgid "guestfs_set_recovery_proc"
29273 msgstr ""
29274
29275 #. type: verbatim
29276 #: ../src/guestfs-actions.pod:6522
29277 #, no-wrap
29278 msgid ""
29279 " int\n"
29280 " guestfs_set_recovery_proc (guestfs_h *g,\n"
29281 "                            int recoveryproc);\n"
29282 "\n"
29283 msgstr ""
29284
29285 #. type: textblock
29286 #: ../src/guestfs-actions.pod:6526
29287 msgid ""
29288 "If this is called with the parameter C<false> then C<guestfs_launch> does "
29289 "not create a recovery process.  The purpose of the recovery process is to "
29290 "stop runaway qemu processes in the case where the main program aborts "
29291 "abruptly."
29292 msgstr ""
29293
29294 #. type: textblock
29295 #: ../src/guestfs-actions.pod:6531
29296 msgid ""
29297 "This only has any effect if called before C<guestfs_launch>, and the default "
29298 "is true."
29299 msgstr ""
29300
29301 #. type: =head2
29302 #: ../src/guestfs-actions.pod:6544
29303 msgid "guestfs_set_selinux"
29304 msgstr ""
29305
29306 #. type: verbatim
29307 #: ../src/guestfs-actions.pod:6546
29308 #, no-wrap
29309 msgid ""
29310 " int\n"
29311 " guestfs_set_selinux (guestfs_h *g,\n"
29312 "                      int selinux);\n"
29313 "\n"
29314 msgstr ""
29315
29316 #. type: =head2
29317 #: ../src/guestfs-actions.pod:6563
29318 msgid "guestfs_set_smp"
29319 msgstr ""
29320
29321 #. type: verbatim
29322 #: ../src/guestfs-actions.pod:6565
29323 #, no-wrap
29324 msgid ""
29325 " int\n"
29326 " guestfs_set_smp (guestfs_h *g,\n"
29327 "                  int smp);\n"
29328 "\n"
29329 msgstr ""
29330
29331 #. type: textblock
29332 #: ../src/guestfs-actions.pod:6573
29333 msgid "This function must be called before C<guestfs_launch>."
29334 msgstr ""
29335
29336 #. type: =head2
29337 #: ../src/guestfs-actions.pod:6577
29338 msgid "guestfs_set_trace"
29339 msgstr ""
29340
29341 #. type: verbatim
29342 #: ../src/guestfs-actions.pod:6579
29343 #, no-wrap
29344 msgid ""
29345 " int\n"
29346 " guestfs_set_trace (guestfs_h *g,\n"
29347 "                    int trace);\n"
29348 "\n"
29349 msgstr ""
29350
29351 #. type: textblock
29352 #: ../src/guestfs-actions.pod:6593
29353 msgid ""
29354 "Trace messages are normally sent to C<stderr>, unless you register a "
29355 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
29356 msgstr ""
29357
29358 #. type: =head2
29359 #: ../src/guestfs-actions.pod:6601
29360 msgid "guestfs_set_verbose"
29361 msgstr ""
29362
29363 #. type: verbatim
29364 #: ../src/guestfs-actions.pod:6603
29365 #, no-wrap
29366 msgid ""
29367 " int\n"
29368 " guestfs_set_verbose (guestfs_h *g,\n"
29369 "                      int verbose);\n"
29370 "\n"
29371 msgstr ""
29372
29373 #. type: textblock
29374 #: ../src/guestfs-actions.pod:6612
29375 msgid ""
29376 "Verbose messages are normally sent to C<stderr>, unless you register a "
29377 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
29378 msgstr ""
29379
29380 #. type: =head2
29381 #: ../src/guestfs-actions.pod:6620
29382 msgid "guestfs_setcon"
29383 msgstr ""
29384
29385 #. type: verbatim
29386 #: ../src/guestfs-actions.pod:6622
29387 #, no-wrap
29388 msgid ""
29389 " int\n"
29390 " guestfs_setcon (guestfs_h *g,\n"
29391 "                 const char *context);\n"
29392 "\n"
29393 msgstr ""
29394
29395 #. type: =head2
29396 #: ../src/guestfs-actions.pod:6635
29397 msgid "guestfs_setxattr"
29398 msgstr ""
29399
29400 #. type: verbatim
29401 #: ../src/guestfs-actions.pod:6637
29402 #, no-wrap
29403 msgid ""
29404 " int\n"
29405 " guestfs_setxattr (guestfs_h *g,\n"
29406 "                   const char *xattr,\n"
29407 "                   const char *val,\n"
29408 "                   int vallen,\n"
29409 "                   const char *path);\n"
29410 "\n"
29411 msgstr ""
29412
29413 #. type: textblock
29414 #: ../src/guestfs-actions.pod:6648
29415 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
29416 msgstr ""
29417
29418 #. type: =head2
29419 #: ../src/guestfs-actions.pod:6654
29420 msgid "guestfs_sfdisk"
29421 msgstr ""
29422
29423 #. type: verbatim
29424 #: ../src/guestfs-actions.pod:6656
29425 #, no-wrap
29426 msgid ""
29427 " int\n"
29428 " guestfs_sfdisk (guestfs_h *g,\n"
29429 "                 const char *device,\n"
29430 "                 int cyls,\n"
29431 "                 int heads,\n"
29432 "                 int sectors,\n"
29433 "                 char *const *lines);\n"
29434 "\n"
29435 msgstr ""
29436
29437 #. type: textblock
29438 #: ../src/guestfs-actions.pod:6664 ../src/guestfs-actions.pod:6708
29439 #: ../src/guestfs-actions.pod:6742
29440 msgid ""
29441 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
29442 "call instead."
29443 msgstr ""
29444
29445 #. type: textblock
29446 #: ../src/guestfs-actions.pod:6691
29447 msgid ""
29448 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
29449 msgstr ""
29450
29451 #. type: =head2
29452 #: ../src/guestfs-actions.pod:6701
29453 msgid "guestfs_sfdiskM"
29454 msgstr ""
29455
29456 #. type: verbatim
29457 #: ../src/guestfs-actions.pod:6703
29458 #, no-wrap
29459 msgid ""
29460 " int\n"
29461 " guestfs_sfdiskM (guestfs_h *g,\n"
29462 "                  const char *device,\n"
29463 "                  char *const *lines);\n"
29464 "\n"
29465 msgstr ""
29466
29467 #. type: textblock
29468 #: ../src/guestfs-actions.pod:6715
29469 msgid ""
29470 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
29471 "partition sizes are specified in megabytes only (rounded to the nearest "
29472 "cylinder) and you don't need to specify the cyls, heads and sectors "
29473 "parameters which were rarely if ever used anyway."
29474 msgstr ""
29475
29476 #. type: textblock
29477 #: ../src/guestfs-actions.pod:6721
29478 msgid ""
29479 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
29480 "C<guestfs_part_disk>"
29481 msgstr ""
29482
29483 #. type: =head2
29484 #: ../src/guestfs-actions.pod:6731
29485 msgid "guestfs_sfdisk_N"
29486 msgstr ""
29487
29488 #. type: verbatim
29489 #: ../src/guestfs-actions.pod:6733
29490 #, no-wrap
29491 msgid ""
29492 " int\n"
29493 " guestfs_sfdisk_N (guestfs_h *g,\n"
29494 "                   const char *device,\n"
29495 "                   int partnum,\n"
29496 "                   int cyls,\n"
29497 "                   int heads,\n"
29498 "                   int sectors,\n"
29499 "                   const char *line);\n"
29500 "\n"
29501 msgstr ""
29502
29503 #. type: textblock
29504 #: ../src/guestfs-actions.pod:6752
29505 msgid ""
29506 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
29507 "for the cyls/heads/sectors parameters."
29508 msgstr ""
29509
29510 #. type: textblock
29511 #: ../src/guestfs-actions.pod:6755
29512 msgid "See also: C<guestfs_part_add>"
29513 msgstr ""
29514
29515 #. type: =head2
29516 #: ../src/guestfs-actions.pod:6764
29517 msgid "guestfs_sfdisk_disk_geometry"
29518 msgstr ""
29519
29520 #. type: verbatim
29521 #: ../src/guestfs-actions.pod:6766
29522 #, no-wrap
29523 msgid ""
29524 " char *\n"
29525 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
29526 "                               const char *device);\n"
29527 "\n"
29528 msgstr ""
29529
29530 #. type: textblock
29531 #: ../src/guestfs-actions.pod:6770
29532 msgid ""
29533 "This displays the disk geometry of C<device> read from the partition table.  "
29534 "Especially in the case where the underlying block device has been resized, "
29535 "this can be different from the kernel's idea of the geometry (see "
29536 "C<guestfs_sfdisk_kernel_geometry>)."
29537 msgstr ""
29538
29539 #. type: =head2
29540 #: ../src/guestfs-actions.pod:6783
29541 msgid "guestfs_sfdisk_kernel_geometry"
29542 msgstr ""
29543
29544 #. type: verbatim
29545 #: ../src/guestfs-actions.pod:6785
29546 #, no-wrap
29547 msgid ""
29548 " char *\n"
29549 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
29550 "                                 const char *device);\n"
29551 "\n"
29552 msgstr ""
29553
29554 #. type: =head2
29555 #: ../src/guestfs-actions.pod:6799
29556 msgid "guestfs_sfdisk_l"
29557 msgstr ""
29558
29559 #. type: verbatim
29560 #: ../src/guestfs-actions.pod:6801
29561 #, no-wrap
29562 msgid ""
29563 " char *\n"
29564 " guestfs_sfdisk_l (guestfs_h *g,\n"
29565 "                   const char *device);\n"
29566 "\n"
29567 msgstr ""
29568
29569 #. type: textblock
29570 #: ../src/guestfs-actions.pod:6805
29571 msgid ""
29572 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
29573 "call instead."
29574 msgstr ""
29575
29576 #. type: textblock
29577 #: ../src/guestfs-actions.pod:6816
29578 msgid "See also: C<guestfs_part_list>"
29579 msgstr ""
29580
29581 #. type: =head2
29582 #: ../src/guestfs-actions.pod:6823
29583 msgid "guestfs_sh"
29584 msgstr ""
29585
29586 #. type: verbatim
29587 #: ../src/guestfs-actions.pod:6825
29588 #, no-wrap
29589 msgid ""
29590 " char *\n"
29591 " guestfs_sh (guestfs_h *g,\n"
29592 "             const char *command);\n"
29593 "\n"
29594 msgstr ""
29595
29596 #. type: textblock
29597 #: ../src/guestfs-actions.pod:6832
29598 msgid "This is like C<guestfs_command>, but passes the command to:"
29599 msgstr ""
29600
29601 #. type: textblock
29602 #: ../src/guestfs-actions.pod:6840
29603 msgid "All the provisos about C<guestfs_command> apply to this call."
29604 msgstr ""
29605
29606 #. type: =head2
29607 #: ../src/guestfs-actions.pod:6847
29608 msgid "guestfs_sh_lines"
29609 msgstr ""
29610
29611 #. type: verbatim
29612 #: ../src/guestfs-actions.pod:6849
29613 #, no-wrap
29614 msgid ""
29615 " char **\n"
29616 " guestfs_sh_lines (guestfs_h *g,\n"
29617 "                   const char *command);\n"
29618 "\n"
29619 msgstr ""
29620
29621 #. type: textblock
29622 #: ../src/guestfs-actions.pod:6853
29623 msgid ""
29624 "This is the same as C<guestfs_sh>, but splits the result into a list of "
29625 "lines."
29626 msgstr ""
29627
29628 #. type: textblock
29629 #: ../src/guestfs-actions.pod:6856
29630 msgid "See also: C<guestfs_command_lines>"
29631 msgstr ""
29632
29633 #. type: =head2
29634 #: ../src/guestfs-actions.pod:6864
29635 msgid "guestfs_sleep"
29636 msgstr ""
29637
29638 #. type: verbatim
29639 #: ../src/guestfs-actions.pod:6866
29640 #, no-wrap
29641 msgid ""
29642 " int\n"
29643 " guestfs_sleep (guestfs_h *g,\n"
29644 "                int secs);\n"
29645 "\n"
29646 msgstr ""
29647
29648 #. type: textblock
29649 #: ../src/guestfs-actions.pod:6874
29650 msgid "(Added in 1.0.41)"
29651 msgstr ""
29652
29653 #. type: =head2
29654 #: ../src/guestfs-actions.pod:6876 ../src/guestfs-structs.pod:109
29655 msgid "guestfs_stat"
29656 msgstr ""
29657
29658 #. type: verbatim
29659 #: ../src/guestfs-actions.pod:6878
29660 #, no-wrap
29661 msgid ""
29662 " struct guestfs_stat *\n"
29663 " guestfs_stat (guestfs_h *g,\n"
29664 "               const char *path);\n"
29665 "\n"
29666 msgstr ""
29667
29668 #. type: =head2
29669 #: ../src/guestfs-actions.pod:6892 ../src/guestfs-structs.pod:135
29670 msgid "guestfs_statvfs"
29671 msgstr ""
29672
29673 #. type: verbatim
29674 #: ../src/guestfs-actions.pod:6894
29675 #, no-wrap
29676 msgid ""
29677 " struct guestfs_statvfs *\n"
29678 " guestfs_statvfs (guestfs_h *g,\n"
29679 "                  const char *path);\n"
29680 "\n"
29681 msgstr ""
29682
29683 #. type: textblock
29684 #: ../src/guestfs-actions.pod:6904
29685 msgid ""
29686 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
29687 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
29688 msgstr ""
29689
29690 #. type: =head2
29691 #: ../src/guestfs-actions.pod:6910
29692 msgid "guestfs_strings"
29693 msgstr ""
29694
29695 #. type: verbatim
29696 #: ../src/guestfs-actions.pod:6912
29697 #, no-wrap
29698 msgid ""
29699 " char **\n"
29700 " guestfs_strings (guestfs_h *g,\n"
29701 "                  const char *path);\n"
29702 "\n"
29703 msgstr ""
29704
29705 #. type: =head2
29706 #: ../src/guestfs-actions.pod:6928
29707 msgid "guestfs_strings_e"
29708 msgstr ""
29709
29710 #. type: verbatim
29711 #: ../src/guestfs-actions.pod:6930
29712 #, no-wrap
29713 msgid ""
29714 " char **\n"
29715 " guestfs_strings_e (guestfs_h *g,\n"
29716 "                    const char *encoding,\n"
29717 "                    const char *path);\n"
29718 "\n"
29719 msgstr ""
29720
29721 #. type: textblock
29722 #: ../src/guestfs-actions.pod:6935
29723 msgid ""
29724 "This is like the C<guestfs_strings> command, but allows you to specify the "
29725 "encoding of strings that are looked for in the source file C<path>."
29726 msgstr ""
29727
29728 #. type: textblock
29729 #: ../src/guestfs-actions.pod:6945
29730 msgid ""
29731 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
29732 "ISO-8859-X (this is what C<guestfs_strings> uses)."
29733 msgstr ""
29734
29735 #. type: =head2
29736 #: ../src/guestfs-actions.pod:6983
29737 msgid "guestfs_swapoff_device"
29738 msgstr ""
29739
29740 #. type: verbatim
29741 #: ../src/guestfs-actions.pod:6985
29742 #, no-wrap
29743 msgid ""
29744 " int\n"
29745 " guestfs_swapoff_device (guestfs_h *g,\n"
29746 "                         const char *device);\n"
29747 "\n"
29748 msgstr ""
29749
29750 #. type: textblock
29751 #: ../src/guestfs-actions.pod:6989
29752 msgid ""
29753 "This command disables the libguestfs appliance swap device or partition "
29754 "named C<device>.  See C<guestfs_swapon_device>."
29755 msgstr ""
29756
29757 #. type: =head2
29758 #: ../src/guestfs-actions.pod:6997
29759 msgid "guestfs_swapoff_file"
29760 msgstr ""
29761
29762 #. type: verbatim
29763 #: ../src/guestfs-actions.pod:6999
29764 #, no-wrap
29765 msgid ""
29766 " int\n"
29767 " guestfs_swapoff_file (guestfs_h *g,\n"
29768 "                       const char *file);\n"
29769 "\n"
29770 msgstr ""
29771
29772 #. type: =head2
29773 #: ../src/guestfs-actions.pod:7009
29774 msgid "guestfs_swapoff_label"
29775 msgstr ""
29776
29777 #. type: verbatim
29778 #: ../src/guestfs-actions.pod:7011
29779 #, no-wrap
29780 msgid ""
29781 " int\n"
29782 " guestfs_swapoff_label (guestfs_h *g,\n"
29783 "                        const char *label);\n"
29784 "\n"
29785 msgstr ""
29786
29787 #. type: =head2
29788 #: ../src/guestfs-actions.pod:7022
29789 msgid "guestfs_swapoff_uuid"
29790 msgstr ""
29791
29792 #. type: verbatim
29793 #: ../src/guestfs-actions.pod:7024
29794 #, no-wrap
29795 msgid ""
29796 " int\n"
29797 " guestfs_swapoff_uuid (guestfs_h *g,\n"
29798 "                       const char *uuid);\n"
29799 "\n"
29800 msgstr ""
29801
29802 #. type: =head2
29803 #: ../src/guestfs-actions.pod:7035
29804 msgid "guestfs_swapon_device"
29805 msgstr ""
29806
29807 #. type: verbatim
29808 #: ../src/guestfs-actions.pod:7037
29809 #, no-wrap
29810 msgid ""
29811 " int\n"
29812 " guestfs_swapon_device (guestfs_h *g,\n"
29813 "                        const char *device);\n"
29814 "\n"
29815 msgstr ""
29816
29817 #. type: textblock
29818 #: ../src/guestfs-actions.pod:7041
29819 msgid ""
29820 "This command enables the libguestfs appliance to use the swap device or "
29821 "partition named C<device>.  The increased memory is made available for all "
29822 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
29823 msgstr ""
29824
29825 #. type: =head2
29826 #: ../src/guestfs-actions.pod:7057
29827 msgid "guestfs_swapon_file"
29828 msgstr ""
29829
29830 #. type: verbatim
29831 #: ../src/guestfs-actions.pod:7059
29832 #, no-wrap
29833 msgid ""
29834 " int\n"
29835 " guestfs_swapon_file (guestfs_h *g,\n"
29836 "                      const char *file);\n"
29837 "\n"
29838 msgstr ""
29839
29840 #. type: textblock
29841 #: ../src/guestfs-actions.pod:7063
29842 msgid ""
29843 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
29844 "notes."
29845 msgstr ""
29846
29847 #. type: =head2
29848 #: ../src/guestfs-actions.pod:7070
29849 msgid "guestfs_swapon_label"
29850 msgstr ""
29851
29852 #. type: verbatim
29853 #: ../src/guestfs-actions.pod:7072
29854 #, no-wrap
29855 msgid ""
29856 " int\n"
29857 " guestfs_swapon_label (guestfs_h *g,\n"
29858 "                       const char *label);\n"
29859 "\n"
29860 msgstr ""
29861
29862 #. type: textblock
29863 #: ../src/guestfs-actions.pod:7076
29864 msgid ""
29865 "This command enables swap to a labeled swap partition.  See "
29866 "C<guestfs_swapon_device> for other notes."
29867 msgstr ""
29868
29869 #. type: =head2
29870 #: ../src/guestfs-actions.pod:7083
29871 msgid "guestfs_swapon_uuid"
29872 msgstr ""
29873
29874 #. type: verbatim
29875 #: ../src/guestfs-actions.pod:7085
29876 #, no-wrap
29877 msgid ""
29878 " int\n"
29879 " guestfs_swapon_uuid (guestfs_h *g,\n"
29880 "                      const char *uuid);\n"
29881 "\n"
29882 msgstr ""
29883
29884 #. type: textblock
29885 #: ../src/guestfs-actions.pod:7089
29886 msgid ""
29887 "This command enables swap to a swap partition with the given UUID.  See "
29888 "C<guestfs_swapon_device> for other notes."
29889 msgstr ""
29890
29891 #. type: =head2
29892 #: ../src/guestfs-actions.pod:7096
29893 msgid "guestfs_sync"
29894 msgstr ""
29895
29896 #. type: verbatim
29897 #: ../src/guestfs-actions.pod:7098
29898 #, no-wrap
29899 msgid ""
29900 " int\n"
29901 " guestfs_sync (guestfs_h *g);\n"
29902 "\n"
29903 msgstr ""
29904
29905 #. type: =head2
29906 #: ../src/guestfs-actions.pod:7111
29907 msgid "guestfs_tail"
29908 msgstr ""
29909
29910 #. type: verbatim
29911 #: ../src/guestfs-actions.pod:7113
29912 #, no-wrap
29913 msgid ""
29914 " char **\n"
29915 " guestfs_tail (guestfs_h *g,\n"
29916 "               const char *path);\n"
29917 "\n"
29918 msgstr ""
29919
29920 #. type: =head2
29921 #: ../src/guestfs-actions.pod:7129
29922 msgid "guestfs_tail_n"
29923 msgstr ""
29924
29925 #. type: verbatim
29926 #: ../src/guestfs-actions.pod:7131
29927 #, no-wrap
29928 msgid ""
29929 " char **\n"
29930 " guestfs_tail_n (guestfs_h *g,\n"
29931 "                 int nrlines,\n"
29932 "                 const char *path);\n"
29933 "\n"
29934 msgstr ""
29935
29936 #. type: =head2
29937 #: ../src/guestfs-actions.pod:7153
29938 msgid "guestfs_tar_in"
29939 msgstr ""
29940
29941 #. type: verbatim
29942 #: ../src/guestfs-actions.pod:7155
29943 #, no-wrap
29944 msgid ""
29945 " int\n"
29946 " guestfs_tar_in (guestfs_h *g,\n"
29947 "                 const char *tarfile,\n"
29948 "                 const char *directory);\n"
29949 "\n"
29950 msgstr ""
29951
29952 #. type: textblock
29953 #: ../src/guestfs-actions.pod:7163
29954 msgid ""
29955 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
29956 msgstr ""
29957
29958 #. type: textblock
29959 #: ../src/guestfs-actions.pod:7168 ../src/guestfs-actions.pod:7185
29960 #: ../src/guestfs-actions.pod:7201 ../src/guestfs-actions.pod:7217
29961 msgid "(Added in 1.0.3)"
29962 msgstr ""
29963
29964 #. type: =head2
29965 #: ../src/guestfs-actions.pod:7170
29966 msgid "guestfs_tar_out"
29967 msgstr ""
29968
29969 #. type: verbatim
29970 #: ../src/guestfs-actions.pod:7172
29971 #, no-wrap
29972 msgid ""
29973 " int\n"
29974 " guestfs_tar_out (guestfs_h *g,\n"
29975 "                  const char *directory,\n"
29976 "                  const char *tarfile);\n"
29977 "\n"
29978 msgstr ""
29979
29980 #. type: textblock
29981 #: ../src/guestfs-actions.pod:7180
29982 msgid ""
29983 "To download a compressed tarball, use C<guestfs_tgz_out> or "
29984 "C<guestfs_txz_out>."
29985 msgstr ""
29986
29987 #. type: =head2
29988 #: ../src/guestfs-actions.pod:7187
29989 msgid "guestfs_tgz_in"
29990 msgstr ""
29991
29992 #. type: verbatim
29993 #: ../src/guestfs-actions.pod:7189
29994 #, no-wrap
29995 msgid ""
29996 " int\n"
29997 " guestfs_tgz_in (guestfs_h *g,\n"
29998 "                 const char *tarball,\n"
29999 "                 const char *directory);\n"
30000 "\n"
30001 msgstr ""
30002
30003 #. type: textblock
30004 #: ../src/guestfs-actions.pod:7197
30005 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
30006 msgstr ""
30007
30008 #. type: =head2
30009 #: ../src/guestfs-actions.pod:7203
30010 msgid "guestfs_tgz_out"
30011 msgstr ""
30012
30013 #. type: verbatim
30014 #: ../src/guestfs-actions.pod:7205
30015 #, no-wrap
30016 msgid ""
30017 " int\n"
30018 " guestfs_tgz_out (guestfs_h *g,\n"
30019 "                  const char *directory,\n"
30020 "                  const char *tarball);\n"
30021 "\n"
30022 msgstr ""
30023
30024 #. type: textblock
30025 #: ../src/guestfs-actions.pod:7213
30026 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
30027 msgstr ""
30028
30029 #. type: =head2
30030 #: ../src/guestfs-actions.pod:7219
30031 msgid "guestfs_touch"
30032 msgstr ""
30033
30034 #. type: verbatim
30035 #: ../src/guestfs-actions.pod:7221
30036 #, no-wrap
30037 msgid ""
30038 " int\n"
30039 " guestfs_touch (guestfs_h *g,\n"
30040 "                const char *path);\n"
30041 "\n"
30042 msgstr ""
30043
30044 #. type: =head2
30045 #: ../src/guestfs-actions.pod:7236
30046 msgid "guestfs_truncate"
30047 msgstr ""
30048
30049 #. type: verbatim
30050 #: ../src/guestfs-actions.pod:7238
30051 #, no-wrap
30052 msgid ""
30053 " int\n"
30054 " guestfs_truncate (guestfs_h *g,\n"
30055 "                   const char *path);\n"
30056 "\n"
30057 msgstr ""
30058
30059 #. type: =head2
30060 #: ../src/guestfs-actions.pod:7249
30061 msgid "guestfs_truncate_size"
30062 msgstr ""
30063
30064 #. type: verbatim
30065 #: ../src/guestfs-actions.pod:7251
30066 #, no-wrap
30067 msgid ""
30068 " int\n"
30069 " guestfs_truncate_size (guestfs_h *g,\n"
30070 "                        const char *path,\n"
30071 "                        int64_t size);\n"
30072 "\n"
30073 msgstr ""
30074
30075 #. type: textblock
30076 #: ../src/guestfs-actions.pod:7259
30077 msgid ""
30078 "If the current file size is less than C<size> then the file is extended to "
30079 "the required size with zero bytes.  This creates a sparse file (ie. disk "
30080 "blocks are not allocated for the file until you write to it).  To create a "
30081 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
30082 msgstr ""
30083
30084 #. type: =head2
30085 #: ../src/guestfs-actions.pod:7269
30086 msgid "guestfs_tune2fs_l"
30087 msgstr ""
30088
30089 #. type: verbatim
30090 #: ../src/guestfs-actions.pod:7271
30091 #, no-wrap
30092 msgid ""
30093 " char **\n"
30094 " guestfs_tune2fs_l (guestfs_h *g,\n"
30095 "                    const char *device);\n"
30096 "\n"
30097 msgstr ""
30098
30099 #. type: =head2
30100 #: ../src/guestfs-actions.pod:7291
30101 msgid "guestfs_txz_in"
30102 msgstr ""
30103
30104 #. type: verbatim
30105 #: ../src/guestfs-actions.pod:7293
30106 #, no-wrap
30107 msgid ""
30108 " int\n"
30109 " guestfs_txz_in (guestfs_h *g,\n"
30110 "                 const char *tarball,\n"
30111 "                 const char *directory);\n"
30112 "\n"
30113 msgstr ""
30114
30115 #. type: =head2
30116 #: ../src/guestfs-actions.pod:7305
30117 msgid "guestfs_txz_out"
30118 msgstr ""
30119
30120 #. type: verbatim
30121 #: ../src/guestfs-actions.pod:7307
30122 #, no-wrap
30123 msgid ""
30124 " int\n"
30125 " guestfs_txz_out (guestfs_h *g,\n"
30126 "                  const char *directory,\n"
30127 "                  const char *tarball);\n"
30128 "\n"
30129 msgstr ""
30130
30131 #. type: =head2
30132 #: ../src/guestfs-actions.pod:7319
30133 msgid "guestfs_umask"
30134 msgstr ""
30135
30136 #. type: verbatim
30137 #: ../src/guestfs-actions.pod:7321
30138 #, no-wrap
30139 msgid ""
30140 " int\n"
30141 " guestfs_umask (guestfs_h *g,\n"
30142 "                int mask);\n"
30143 "\n"
30144 msgstr ""
30145
30146 #. type: textblock
30147 #: ../src/guestfs-actions.pod:7337
30148 msgid ""
30149 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
30150 "C<guestfs_mkdir>."
30151 msgstr ""
30152
30153 #. type: =head2
30154 #: ../src/guestfs-actions.pod:7346
30155 msgid "guestfs_umount"
30156 msgstr ""
30157
30158 #. type: verbatim
30159 #: ../src/guestfs-actions.pod:7348
30160 #, no-wrap
30161 msgid ""
30162 " int\n"
30163 " guestfs_umount (guestfs_h *g,\n"
30164 "                 const char *pathordevice);\n"
30165 "\n"
30166 msgstr ""
30167
30168 #. type: =head2
30169 #: ../src/guestfs-actions.pod:7360
30170 msgid "guestfs_umount_all"
30171 msgstr ""
30172
30173 #. type: verbatim
30174 #: ../src/guestfs-actions.pod:7362
30175 #, no-wrap
30176 msgid ""
30177 " int\n"
30178 " guestfs_umount_all (guestfs_h *g);\n"
30179 "\n"
30180 msgstr ""
30181
30182 #. type: =head2
30183 #: ../src/guestfs-actions.pod:7373
30184 msgid "guestfs_upload"
30185 msgstr ""
30186
30187 #. type: verbatim
30188 #: ../src/guestfs-actions.pod:7375
30189 #, no-wrap
30190 msgid ""
30191 " int\n"
30192 " guestfs_upload (guestfs_h *g,\n"
30193 "                 const char *filename,\n"
30194 "                 const char *remotefilename);\n"
30195 "\n"
30196 msgstr ""
30197
30198 #. type: textblock
30199 #: ../src/guestfs-actions.pod:7385
30200 msgid "See also C<guestfs_download>."
30201 msgstr ""
30202
30203 #. type: =head2
30204 #: ../src/guestfs-actions.pod:7396
30205 msgid "guestfs_upload_offset"
30206 msgstr ""
30207
30208 #. type: verbatim
30209 #: ../src/guestfs-actions.pod:7398
30210 #, no-wrap
30211 msgid ""
30212 " int\n"
30213 " guestfs_upload_offset (guestfs_h *g,\n"
30214 "                        const char *filename,\n"
30215 "                        const char *remotefilename,\n"
30216 "                        int64_t offset);\n"
30217 "\n"
30218 msgstr ""
30219
30220 #. type: textblock
30221 #: ../src/guestfs-actions.pod:7414
30222 msgid ""
30223 "Note that there is no limit on the amount of data that can be uploaded with "
30224 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
30225 "full amount unless an error occurs."
30226 msgstr ""
30227
30228 #. type: textblock
30229 #: ../src/guestfs-actions.pod:7419
30230 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
30231 msgstr ""
30232
30233 #. type: =head2
30234 #: ../src/guestfs-actions.pod:7430
30235 msgid "guestfs_utimens"
30236 msgstr ""
30237
30238 #. type: verbatim
30239 #: ../src/guestfs-actions.pod:7432
30240 #, no-wrap
30241 msgid ""
30242 " int\n"
30243 " guestfs_utimens (guestfs_h *g,\n"
30244 "                  const char *path,\n"
30245 "                  int64_t atsecs,\n"
30246 "                  int64_t atnsecs,\n"
30247 "                  int64_t mtsecs,\n"
30248 "                  int64_t mtnsecs);\n"
30249 "\n"
30250 msgstr ""
30251
30252 #. type: =head2
30253 #: ../src/guestfs-actions.pod:7461 ../src/guestfs-structs.pod:175
30254 msgid "guestfs_version"
30255 msgstr ""
30256
30257 #. type: verbatim
30258 #: ../src/guestfs-actions.pod:7463
30259 #, no-wrap
30260 msgid ""
30261 " struct guestfs_version *\n"
30262 " guestfs_version (guestfs_h *g);\n"
30263 "\n"
30264 msgstr ""
30265
30266 #. type: textblock
30267 #: ../src/guestfs-actions.pod:7491
30268 msgid ""
30269 "I<Note:> Don't use this call to test for availability of features.  In "
30270 "enterprise distributions we backport features from later versions into "
30271 "earlier versions, making this an unreliable way to test for features.  Use "
30272 "C<guestfs_available> instead."
30273 msgstr ""
30274
30275 #. type: textblock
30276 #: ../src/guestfs-actions.pod:7497
30277 msgid ""
30278 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
30279 "error.  I<The caller must call C<guestfs_free_version> after use>."
30280 msgstr ""
30281
30282 #. type: textblock
30283 #: ../src/guestfs-actions.pod:7501
30284 msgid "(Added in 1.0.58)"
30285 msgstr ""
30286
30287 #. type: =head2
30288 #: ../src/guestfs-actions.pod:7503
30289 msgid "guestfs_vfs_label"
30290 msgstr ""
30291
30292 #. type: verbatim
30293 #: ../src/guestfs-actions.pod:7505
30294 #, no-wrap
30295 msgid ""
30296 " char *\n"
30297 " guestfs_vfs_label (guestfs_h *g,\n"
30298 "                    const char *device);\n"
30299 "\n"
30300 msgstr ""
30301
30302 #. type: textblock
30303 #: ../src/guestfs-actions.pod:7514
30304 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
30305 msgstr ""
30306
30307 #. type: textblock
30308 #: ../src/guestfs-actions.pod:7519 ../src/guestfs-actions.pod:7556
30309 msgid "(Added in 1.3.18)"
30310 msgstr ""
30311
30312 #. type: =head2
30313 #: ../src/guestfs-actions.pod:7521
30314 msgid "guestfs_vfs_type"
30315 msgstr ""
30316
30317 #. type: verbatim
30318 #: ../src/guestfs-actions.pod:7523
30319 #, no-wrap
30320 msgid ""
30321 " char *\n"
30322 " guestfs_vfs_type (guestfs_h *g,\n"
30323 "                   const char *device);\n"
30324 "\n"
30325 msgstr ""
30326
30327 #. type: =head2
30328 #: ../src/guestfs-actions.pod:7540
30329 msgid "guestfs_vfs_uuid"
30330 msgstr ""
30331
30332 #. type: verbatim
30333 #: ../src/guestfs-actions.pod:7542
30334 #, no-wrap
30335 msgid ""
30336 " char *\n"
30337 " guestfs_vfs_uuid (guestfs_h *g,\n"
30338 "                   const char *device);\n"
30339 "\n"
30340 msgstr ""
30341
30342 #. type: textblock
30343 #: ../src/guestfs-actions.pod:7551
30344 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
30345 msgstr ""
30346
30347 #. type: =head2
30348 #: ../src/guestfs-actions.pod:7558
30349 msgid "guestfs_vg_activate"
30350 msgstr ""
30351
30352 #. type: verbatim
30353 #: ../src/guestfs-actions.pod:7560
30354 #, no-wrap
30355 msgid ""
30356 " int\n"
30357 " guestfs_vg_activate (guestfs_h *g,\n"
30358 "                      int activate,\n"
30359 "                      char *const *volgroups);\n"
30360 "\n"
30361 msgstr ""
30362
30363 #. type: =head2
30364 #: ../src/guestfs-actions.pod:7577
30365 msgid "guestfs_vg_activate_all"
30366 msgstr ""
30367
30368 #. type: verbatim
30369 #: ../src/guestfs-actions.pod:7579
30370 #, no-wrap
30371 msgid ""
30372 " int\n"
30373 " guestfs_vg_activate_all (guestfs_h *g,\n"
30374 "                          int activate);\n"
30375 "\n"
30376 msgstr ""
30377
30378 #. type: =head2
30379 #: ../src/guestfs-actions.pod:7592
30380 msgid "guestfs_vgcreate"
30381 msgstr ""
30382
30383 #. type: verbatim
30384 #: ../src/guestfs-actions.pod:7594
30385 #, no-wrap
30386 msgid ""
30387 " int\n"
30388 " guestfs_vgcreate (guestfs_h *g,\n"
30389 "                   const char *volgroup,\n"
30390 "                   char *const *physvols);\n"
30391 "\n"
30392 msgstr ""
30393
30394 #. type: =head2
30395 #: ../src/guestfs-actions.pod:7606
30396 msgid "guestfs_vglvuuids"
30397 msgstr ""
30398
30399 #. type: verbatim
30400 #: ../src/guestfs-actions.pod:7608
30401 #, no-wrap
30402 msgid ""
30403 " char **\n"
30404 " guestfs_vglvuuids (guestfs_h *g,\n"
30405 "                    const char *vgname);\n"
30406 "\n"
30407 msgstr ""
30408
30409 #. type: textblock
30410 #: ../src/guestfs-actions.pod:7615
30411 msgid ""
30412 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
30413 "associate logical volumes and volume groups."
30414 msgstr ""
30415
30416 #. type: textblock
30417 #: ../src/guestfs-actions.pod:7618
30418 msgid "See also C<guestfs_vgpvuuids>."
30419 msgstr ""
30420
30421 #. type: =head2
30422 #: ../src/guestfs-actions.pod:7626
30423 msgid "guestfs_vgpvuuids"
30424 msgstr ""
30425
30426 #. type: verbatim
30427 #: ../src/guestfs-actions.pod:7628
30428 #, no-wrap
30429 msgid ""
30430 " char **\n"
30431 " guestfs_vgpvuuids (guestfs_h *g,\n"
30432 "                    const char *vgname);\n"
30433 "\n"
30434 msgstr ""
30435
30436 #. type: textblock
30437 #: ../src/guestfs-actions.pod:7635
30438 msgid ""
30439 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
30440 "associate physical volumes and volume groups."
30441 msgstr ""
30442
30443 #. type: textblock
30444 #: ../src/guestfs-actions.pod:7638
30445 msgid "See also C<guestfs_vglvuuids>."
30446 msgstr ""
30447
30448 #. type: =head2
30449 #: ../src/guestfs-actions.pod:7646
30450 msgid "guestfs_vgremove"
30451 msgstr ""
30452
30453 #. type: verbatim
30454 #: ../src/guestfs-actions.pod:7648
30455 #, no-wrap
30456 msgid ""
30457 " int\n"
30458 " guestfs_vgremove (guestfs_h *g,\n"
30459 "                   const char *vgname);\n"
30460 "\n"
30461 msgstr ""
30462
30463 #. type: =head2
30464 #: ../src/guestfs-actions.pod:7661
30465 msgid "guestfs_vgrename"
30466 msgstr ""
30467
30468 #. type: verbatim
30469 #: ../src/guestfs-actions.pod:7663
30470 #, no-wrap
30471 msgid ""
30472 " int\n"
30473 " guestfs_vgrename (guestfs_h *g,\n"
30474 "                   const char *volgroup,\n"
30475 "                   const char *newvolgroup);\n"
30476 "\n"
30477 msgstr ""
30478
30479 #. type: =head2
30480 #: ../src/guestfs-actions.pod:7674
30481 msgid "guestfs_vgs"
30482 msgstr ""
30483
30484 #. type: verbatim
30485 #: ../src/guestfs-actions.pod:7676
30486 #, no-wrap
30487 msgid ""
30488 " char **\n"
30489 " guestfs_vgs (guestfs_h *g);\n"
30490 "\n"
30491 msgstr ""
30492
30493 #. type: textblock
30494 #: ../src/guestfs-actions.pod:7685
30495 msgid "See also C<guestfs_vgs_full>."
30496 msgstr ""
30497
30498 #. type: =head2
30499 #: ../src/guestfs-actions.pod:7693
30500 msgid "guestfs_vgs_full"
30501 msgstr ""
30502
30503 #. type: verbatim
30504 #: ../src/guestfs-actions.pod:7695
30505 #, no-wrap
30506 msgid ""
30507 " struct guestfs_lvm_vg_list *\n"
30508 " guestfs_vgs_full (guestfs_h *g);\n"
30509 "\n"
30510 msgstr ""
30511
30512 #. type: textblock
30513 #: ../src/guestfs-actions.pod:7701
30514 msgid ""
30515 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
30516 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
30517 msgstr ""
30518
30519 #. type: =head2
30520 #: ../src/guestfs-actions.pod:7707
30521 msgid "guestfs_vgscan"
30522 msgstr ""
30523
30524 #. type: verbatim
30525 #: ../src/guestfs-actions.pod:7709
30526 #, no-wrap
30527 msgid ""
30528 " int\n"
30529 " guestfs_vgscan (guestfs_h *g);\n"
30530 "\n"
30531 msgstr ""
30532
30533 #. type: =head2
30534 #: ../src/guestfs-actions.pod:7719
30535 msgid "guestfs_vguuid"
30536 msgstr ""
30537
30538 #. type: verbatim
30539 #: ../src/guestfs-actions.pod:7721
30540 #, no-wrap
30541 msgid ""
30542 " char *\n"
30543 " guestfs_vguuid (guestfs_h *g,\n"
30544 "                 const char *vgname);\n"
30545 "\n"
30546 msgstr ""
30547
30548 #. type: =head2
30549 #: ../src/guestfs-actions.pod:7732
30550 msgid "guestfs_wait_ready"
30551 msgstr ""
30552
30553 #. type: verbatim
30554 #: ../src/guestfs-actions.pod:7734
30555 #, no-wrap
30556 msgid ""
30557 " int\n"
30558 " guestfs_wait_ready (guestfs_h *g);\n"
30559 "\n"
30560 msgstr ""
30561
30562 #. type: textblock
30563 #: ../src/guestfs-actions.pod:7737
30564 msgid ""
30565 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
30566 "instead."
30567 msgstr ""
30568
30569 #. type: textblock
30570 #: ../src/guestfs-actions.pod:7744
30571 msgid "This function is a no op."
30572 msgstr ""
30573
30574 #. type: textblock
30575 #: ../src/guestfs-actions.pod:7746
30576 msgid ""
30577 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
30578 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
30579 "is no longer necessary because C<guestfs_launch> now does the waiting."
30580 msgstr ""
30581
30582 #. type: textblock
30583 #: ../src/guestfs-actions.pod:7751
30584 msgid ""
30585 "If you see any calls to this function in code then you can just remove them, "
30586 "unless you want to retain compatibility with older versions of the API."
30587 msgstr ""
30588
30589 #. type: =head2
30590 #: ../src/guestfs-actions.pod:7759
30591 msgid "guestfs_wc_c"
30592 msgstr ""
30593
30594 #. type: verbatim
30595 #: ../src/guestfs-actions.pod:7761
30596 #, no-wrap
30597 msgid ""
30598 " int\n"
30599 " guestfs_wc_c (guestfs_h *g,\n"
30600 "               const char *path);\n"
30601 "\n"
30602 msgstr ""
30603
30604 #. type: =head2
30605 #: ../src/guestfs-actions.pod:7772
30606 msgid "guestfs_wc_l"
30607 msgstr ""
30608
30609 #. type: verbatim
30610 #: ../src/guestfs-actions.pod:7774
30611 #, no-wrap
30612 msgid ""
30613 " int\n"
30614 " guestfs_wc_l (guestfs_h *g,\n"
30615 "               const char *path);\n"
30616 "\n"
30617 msgstr ""
30618
30619 #. type: =head2
30620 #: ../src/guestfs-actions.pod:7785
30621 msgid "guestfs_wc_w"
30622 msgstr ""
30623
30624 #. type: verbatim
30625 #: ../src/guestfs-actions.pod:7787
30626 #, no-wrap
30627 msgid ""
30628 " int\n"
30629 " guestfs_wc_w (guestfs_h *g,\n"
30630 "               const char *path);\n"
30631 "\n"
30632 msgstr ""
30633
30634 #. type: =head2
30635 #: ../src/guestfs-actions.pod:7798
30636 msgid "guestfs_write"
30637 msgstr ""
30638
30639 #. type: verbatim
30640 #: ../src/guestfs-actions.pod:7800
30641 #, no-wrap
30642 msgid ""
30643 " int\n"
30644 " guestfs_write (guestfs_h *g,\n"
30645 "                const char *path,\n"
30646 "                const char *content,\n"
30647 "                size_t content_size);\n"
30648 "\n"
30649 msgstr ""
30650
30651 #. type: textblock
30652 #: ../src/guestfs-actions.pod:7809
30653 msgid "See also C<guestfs_write_append>."
30654 msgstr ""
30655
30656 #. type: =head2
30657 #: ../src/guestfs-actions.pod:7818
30658 msgid "guestfs_write_append"
30659 msgstr ""
30660
30661 #. type: verbatim
30662 #: ../src/guestfs-actions.pod:7820
30663 #, no-wrap
30664 msgid ""
30665 " int\n"
30666 " guestfs_write_append (guestfs_h *g,\n"
30667 "                       const char *path,\n"
30668 "                       const char *content,\n"
30669 "                       size_t content_size);\n"
30670 "\n"
30671 msgstr ""
30672
30673 #. type: textblock
30674 #: ../src/guestfs-actions.pod:7829
30675 msgid "See also C<guestfs_write>."
30676 msgstr ""
30677
30678 #. type: =head2
30679 #: ../src/guestfs-actions.pod:7838
30680 msgid "guestfs_write_file"
30681 msgstr ""
30682
30683 #. type: verbatim
30684 #: ../src/guestfs-actions.pod:7840
30685 #, no-wrap
30686 msgid ""
30687 " int\n"
30688 " guestfs_write_file (guestfs_h *g,\n"
30689 "                     const char *path,\n"
30690 "                     const char *content,\n"
30691 "                     int size);\n"
30692 "\n"
30693 msgstr ""
30694
30695 #. type: textblock
30696 #: ../src/guestfs-actions.pod:7846
30697 msgid ""
30698 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
30699 "instead."
30700 msgstr ""
30701
30702 #. type: =head2
30703 #: ../src/guestfs-actions.pod:7871
30704 msgid "guestfs_zegrep"
30705 msgstr ""
30706
30707 #. type: verbatim
30708 #: ../src/guestfs-actions.pod:7873
30709 #, no-wrap
30710 msgid ""
30711 " char **\n"
30712 " guestfs_zegrep (guestfs_h *g,\n"
30713 "                 const char *regex,\n"
30714 "                 const char *path);\n"
30715 "\n"
30716 msgstr ""
30717
30718 #. type: =head2
30719 #: ../src/guestfs-actions.pod:7890
30720 msgid "guestfs_zegrepi"
30721 msgstr ""
30722
30723 #. type: verbatim
30724 #: ../src/guestfs-actions.pod:7892
30725 #, no-wrap
30726 msgid ""
30727 " char **\n"
30728 " guestfs_zegrepi (guestfs_h *g,\n"
30729 "                  const char *regex,\n"
30730 "                  const char *path);\n"
30731 "\n"
30732 msgstr ""
30733
30734 #. type: =head2
30735 #: ../src/guestfs-actions.pod:7909
30736 msgid "guestfs_zero"
30737 msgstr ""
30738
30739 #. type: verbatim
30740 #: ../src/guestfs-actions.pod:7911
30741 #, no-wrap
30742 msgid ""
30743 " int\n"
30744 " guestfs_zero (guestfs_h *g,\n"
30745 "               const char *device);\n"
30746 "\n"
30747 msgstr ""
30748
30749 #. type: textblock
30750 #: ../src/guestfs-actions.pod:7925
30751 msgid ""
30752 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
30753 "C<guestfs_is_zero_device>"
30754 msgstr ""
30755
30756 #. type: =head2
30757 #: ../src/guestfs-actions.pod:7937
30758 msgid "guestfs_zero_device"
30759 msgstr ""
30760
30761 #. type: verbatim
30762 #: ../src/guestfs-actions.pod:7939
30763 #, no-wrap
30764 msgid ""
30765 " int\n"
30766 " guestfs_zero_device (guestfs_h *g,\n"
30767 "                      const char *device);\n"
30768 "\n"
30769 msgstr ""
30770
30771 #. type: textblock
30772 #: ../src/guestfs-actions.pod:7943
30773 msgid ""
30774 "This command writes zeroes over the entire C<device>.  Compare with "
30775 "C<guestfs_zero> which just zeroes the first few blocks of a device."
30776 msgstr ""
30777
30778 #. type: textblock
30779 #: ../src/guestfs-actions.pod:7961
30780 msgid "(Added in 1.3.1)"
30781 msgstr ""
30782
30783 #. type: =head2
30784 #: ../src/guestfs-actions.pod:7963
30785 msgid "guestfs_zerofree"
30786 msgstr ""
30787
30788 #. type: verbatim
30789 #: ../src/guestfs-actions.pod:7965
30790 #, no-wrap
30791 msgid ""
30792 " int\n"
30793 " guestfs_zerofree (guestfs_h *g,\n"
30794 "                   const char *device);\n"
30795 "\n"
30796 msgstr ""
30797
30798 #. type: =head2
30799 #: ../src/guestfs-actions.pod:7984
30800 msgid "guestfs_zfgrep"
30801 msgstr ""
30802
30803 #. type: verbatim
30804 #: ../src/guestfs-actions.pod:7986
30805 #, no-wrap
30806 msgid ""
30807 " char **\n"
30808 " guestfs_zfgrep (guestfs_h *g,\n"
30809 "                 const char *pattern,\n"
30810 "                 const char *path);\n"
30811 "\n"
30812 msgstr ""
30813
30814 #. type: =head2
30815 #: ../src/guestfs-actions.pod:8003
30816 msgid "guestfs_zfgrepi"
30817 msgstr ""
30818
30819 #. type: verbatim
30820 #: ../src/guestfs-actions.pod:8005
30821 #, no-wrap
30822 msgid ""
30823 " char **\n"
30824 " guestfs_zfgrepi (guestfs_h *g,\n"
30825 "                  const char *pattern,\n"
30826 "                  const char *path);\n"
30827 "\n"
30828 msgstr ""
30829
30830 #. type: =head2
30831 #: ../src/guestfs-actions.pod:8022
30832 msgid "guestfs_zfile"
30833 msgstr ""
30834
30835 #. type: verbatim
30836 #: ../src/guestfs-actions.pod:8024
30837 #, no-wrap
30838 msgid ""
30839 " char *\n"
30840 " guestfs_zfile (guestfs_h *g,\n"
30841 "                const char *meth,\n"
30842 "                const char *path);\n"
30843 "\n"
30844 msgstr ""
30845
30846 #. type: textblock
30847 #: ../src/guestfs-actions.pod:8029
30848 msgid ""
30849 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
30850 "instead."
30851 msgstr ""
30852
30853 #. type: textblock
30854 #: ../src/guestfs-actions.pod:8041
30855 msgid ""
30856 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
30857 "files."
30858 msgstr ""
30859
30860 #. type: =head2
30861 #: ../src/guestfs-actions.pod:8049
30862 msgid "guestfs_zgrep"
30863 msgstr ""
30864
30865 #. type: verbatim
30866 #: ../src/guestfs-actions.pod:8051
30867 #, no-wrap
30868 msgid ""
30869 " char **\n"
30870 " guestfs_zgrep (guestfs_h *g,\n"
30871 "                const char *regex,\n"
30872 "                const char *path);\n"
30873 "\n"
30874 msgstr ""
30875
30876 #. type: =head2
30877 #: ../src/guestfs-actions.pod:8068
30878 msgid "guestfs_zgrepi"
30879 msgstr ""
30880
30881 #. type: verbatim
30882 #: ../src/guestfs-actions.pod:8070
30883 #, no-wrap
30884 msgid ""
30885 " char **\n"
30886 " guestfs_zgrepi (guestfs_h *g,\n"
30887 "                 const char *regex,\n"
30888 "                 const char *path);\n"
30889 "\n"
30890 msgstr ""
30891
30892 #. type: =item
30893 #: ../src/guestfs-availability.pod:3
30894 msgid "B<augeas>"
30895 msgstr ""
30896
30897 #. type: textblock
30898 #: ../src/guestfs-availability.pod:5
30899 msgid ""
30900 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
30901 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
30902 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
30903 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
30904 "L</guestfs_aug_save> L</guestfs_aug_set>"
30905 msgstr ""
30906
30907 #. type: =item
30908 #: ../src/guestfs-availability.pod:21
30909 msgid "B<btrfs>"
30910 msgstr ""
30911
30912 #. type: textblock
30913 #: ../src/guestfs-availability.pod:23
30914 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
30915 msgstr ""
30916
30917 #. type: =item
30918 #: ../src/guestfs-availability.pod:26
30919 msgid "B<grub>"
30920 msgstr ""
30921
30922 #. type: textblock
30923 #: ../src/guestfs-availability.pod:28
30924 msgid "The following functions: L</guestfs_grub_install>"
30925 msgstr ""
30926
30927 #. type: =item
30928 #: ../src/guestfs-availability.pod:31
30929 msgid "B<inotify>"
30930 msgstr ""
30931
30932 #. type: textblock
30933 #: ../src/guestfs-availability.pod:33
30934 msgid ""
30935 "The following functions: L</guestfs_inotify_add_watch> L</"
30936 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
30937 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
30938 msgstr ""
30939
30940 #. type: =item
30941 #: ../src/guestfs-availability.pod:41
30942 msgid "B<linuxfsuuid>"
30943 msgstr ""
30944
30945 #. type: textblock
30946 #: ../src/guestfs-availability.pod:43
30947 msgid ""
30948 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
30949 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
30950 msgstr ""
30951
30952 #. type: =item
30953 #: ../src/guestfs-availability.pod:50
30954 msgid "B<linuxmodules>"
30955 msgstr ""
30956
30957 #. type: textblock
30958 #: ../src/guestfs-availability.pod:52
30959 msgid "The following functions: L</guestfs_modprobe>"
30960 msgstr ""
30961
30962 #. type: =item
30963 #: ../src/guestfs-availability.pod:55
30964 msgid "B<linuxxattrs>"
30965 msgstr ""
30966
30967 #. type: textblock
30968 #: ../src/guestfs-availability.pod:57
30969 msgid ""
30970 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
30971 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
30972 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
30973 "guestfs_setxattr>"
30974 msgstr ""
30975
30976 #. type: =item
30977 #: ../src/guestfs-availability.pod:68
30978 msgid "B<luks>"
30979 msgstr ""
30980
30981 #. type: textblock
30982 #: ../src/guestfs-availability.pod:70
30983 msgid ""
30984 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
30985 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
30986 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
30987 msgstr ""
30988
30989 #. type: =item
30990 #: ../src/guestfs-availability.pod:79
30991 msgid "B<lvm2>"
30992 msgstr ""
30993
30994 #. type: textblock
30995 #: ../src/guestfs-availability.pod:81
30996 msgid ""
30997 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
30998 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
30999 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
31000 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
31001 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
31002 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
31003 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
31004 msgstr ""
31005
31006 #. type: =item
31007 #: ../src/guestfs-availability.pod:104
31008 msgid "B<mknod>"
31009 msgstr ""
31010
31011 #. type: textblock
31012 #: ../src/guestfs-availability.pod:106
31013 msgid ""
31014 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
31015 "guestfs_mknod_b> L</guestfs_mknod_c>"
31016 msgstr ""
31017
31018 #. type: =item
31019 #: ../src/guestfs-availability.pod:112
31020 msgid "B<ntfs3g>"
31021 msgstr ""
31022
31023 #. type: textblock
31024 #: ../src/guestfs-availability.pod:114
31025 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
31026 msgstr ""
31027
31028 #. type: =item
31029 #: ../src/guestfs-availability.pod:117
31030 msgid "B<ntfsprogs>"
31031 msgstr ""
31032
31033 #. type: textblock
31034 #: ../src/guestfs-availability.pod:119
31035 msgid ""
31036 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
31037 "L</guestfs_ntfsresize_size>"
31038 msgstr ""
31039
31040 #. type: =item
31041 #: ../src/guestfs-availability.pod:124
31042 msgid "B<realpath>"
31043 msgstr ""
31044
31045 #. type: textblock
31046 #: ../src/guestfs-availability.pod:126
31047 msgid "The following functions: L</guestfs_realpath>"
31048 msgstr ""
31049
31050 #. type: =item
31051 #: ../src/guestfs-availability.pod:129
31052 msgid "B<scrub>"
31053 msgstr ""
31054
31055 #. type: textblock
31056 #: ../src/guestfs-availability.pod:131
31057 msgid ""
31058 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
31059 "guestfs_scrub_freespace>"
31060 msgstr ""
31061
31062 #. type: =item
31063 #: ../src/guestfs-availability.pod:136
31064 msgid "B<selinux>"
31065 msgstr ""
31066
31067 #. type: textblock
31068 #: ../src/guestfs-availability.pod:138
31069 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
31070 msgstr ""
31071
31072 #. type: =item
31073 #: ../src/guestfs-availability.pod:142
31074 msgid "B<xz>"
31075 msgstr ""
31076
31077 #. type: textblock
31078 #: ../src/guestfs-availability.pod:144
31079 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
31080 msgstr ""
31081
31082 #. type: =item
31083 #: ../src/guestfs-availability.pod:148
31084 msgid "B<zerofree>"
31085 msgstr ""
31086
31087 #. type: textblock
31088 #: ../src/guestfs-availability.pod:150
31089 msgid "The following functions: L</guestfs_zerofree>"
31090 msgstr ""
31091
31092 #. type: =head2
31093 #: ../src/guestfs-structs.pod:1
31094 msgid "guestfs_int_bool"
31095 msgstr ""
31096
31097 #. type: verbatim
31098 #: ../src/guestfs-structs.pod:3
31099 #, no-wrap
31100 msgid ""
31101 " struct guestfs_int_bool {\n"
31102 "   int32_t i;\n"
31103 "   int32_t b;\n"
31104 " };\n"
31105 " \n"
31106 msgstr ""
31107
31108 #. type: verbatim
31109 #: ../src/guestfs-structs.pod:8
31110 #, no-wrap
31111 msgid ""
31112 " struct guestfs_int_bool_list {\n"
31113 "   uint32_t len; /* Number of elements in list. */\n"
31114 "   struct guestfs_int_bool *val; /* Elements. */\n"
31115 " };\n"
31116 " \n"
31117 msgstr ""
31118
31119 #. type: verbatim
31120 #: ../src/guestfs-structs.pod:13
31121 #, no-wrap
31122 msgid ""
31123 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
31124 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
31125 "\n"
31126 msgstr ""
31127
31128 #. type: =head2
31129 #: ../src/guestfs-structs.pod:16
31130 msgid "guestfs_lvm_pv"
31131 msgstr ""
31132
31133 #. type: verbatim
31134 #: ../src/guestfs-structs.pod:18
31135 #, no-wrap
31136 msgid ""
31137 " struct guestfs_lvm_pv {\n"
31138 "   char *pv_name;\n"
31139 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
31140 "   char pv_uuid[32];\n"
31141 "   char *pv_fmt;\n"
31142 "   uint64_t pv_size;\n"
31143 "   uint64_t dev_size;\n"
31144 "   uint64_t pv_free;\n"
31145 "   uint64_t pv_used;\n"
31146 "   char *pv_attr;\n"
31147 "   int64_t pv_pe_count;\n"
31148 "   int64_t pv_pe_alloc_count;\n"
31149 "   char *pv_tags;\n"
31150 "   uint64_t pe_start;\n"
31151 "   int64_t pv_mda_count;\n"
31152 "   uint64_t pv_mda_free;\n"
31153 " };\n"
31154 " \n"
31155 msgstr ""
31156
31157 #. type: verbatim
31158 #: ../src/guestfs-structs.pod:36
31159 #, no-wrap
31160 msgid ""
31161 " struct guestfs_lvm_pv_list {\n"
31162 "   uint32_t len; /* Number of elements in list. */\n"
31163 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
31164 " };\n"
31165 " \n"
31166 msgstr ""
31167
31168 #. type: verbatim
31169 #: ../src/guestfs-structs.pod:41
31170 #, no-wrap
31171 msgid ""
31172 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
31173 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
31174 "\n"
31175 msgstr ""
31176
31177 #. type: =head2
31178 #: ../src/guestfs-structs.pod:44
31179 msgid "guestfs_lvm_vg"
31180 msgstr ""
31181
31182 #. type: verbatim
31183 #: ../src/guestfs-structs.pod:46
31184 #, no-wrap
31185 msgid ""
31186 " struct guestfs_lvm_vg {\n"
31187 "   char *vg_name;\n"
31188 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
31189 "   char vg_uuid[32];\n"
31190 "   char *vg_fmt;\n"
31191 "   char *vg_attr;\n"
31192 "   uint64_t vg_size;\n"
31193 "   uint64_t vg_free;\n"
31194 "   char *vg_sysid;\n"
31195 "   uint64_t vg_extent_size;\n"
31196 "   int64_t vg_extent_count;\n"
31197 "   int64_t vg_free_count;\n"
31198 "   int64_t max_lv;\n"
31199 "   int64_t max_pv;\n"
31200 "   int64_t pv_count;\n"
31201 "   int64_t lv_count;\n"
31202 "   int64_t snap_count;\n"
31203 "   int64_t vg_seqno;\n"
31204 "   char *vg_tags;\n"
31205 "   int64_t vg_mda_count;\n"
31206 "   uint64_t vg_mda_free;\n"
31207 " };\n"
31208 " \n"
31209 msgstr ""
31210
31211 #. type: verbatim
31212 #: ../src/guestfs-structs.pod:69
31213 #, no-wrap
31214 msgid ""
31215 " struct guestfs_lvm_vg_list {\n"
31216 "   uint32_t len; /* Number of elements in list. */\n"
31217 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
31218 " };\n"
31219 " \n"
31220 msgstr ""
31221
31222 #. type: verbatim
31223 #: ../src/guestfs-structs.pod:74
31224 #, no-wrap
31225 msgid ""
31226 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
31227 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
31228 "\n"
31229 msgstr ""
31230
31231 #. type: =head2
31232 #: ../src/guestfs-structs.pod:77
31233 msgid "guestfs_lvm_lv"
31234 msgstr ""
31235
31236 #. type: verbatim
31237 #: ../src/guestfs-structs.pod:79
31238 #, no-wrap
31239 msgid ""
31240 " struct guestfs_lvm_lv {\n"
31241 "   char *lv_name;\n"
31242 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
31243 "   char lv_uuid[32];\n"
31244 "   char *lv_attr;\n"
31245 "   int64_t lv_major;\n"
31246 "   int64_t lv_minor;\n"
31247 "   int64_t lv_kernel_major;\n"
31248 "   int64_t lv_kernel_minor;\n"
31249 "   uint64_t lv_size;\n"
31250 "   int64_t seg_count;\n"
31251 "   char *origin;\n"
31252 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
31253 "   float snap_percent;\n"
31254 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
31255 "   float copy_percent;\n"
31256 "   char *move_pv;\n"
31257 "   char *lv_tags;\n"
31258 "   char *mirror_log;\n"
31259 "   char *modules;\n"
31260 " };\n"
31261 " \n"
31262 msgstr ""
31263
31264 #. type: verbatim
31265 #: ../src/guestfs-structs.pod:101
31266 #, no-wrap
31267 msgid ""
31268 " struct guestfs_lvm_lv_list {\n"
31269 "   uint32_t len; /* Number of elements in list. */\n"
31270 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
31271 " };\n"
31272 " \n"
31273 msgstr ""
31274
31275 #. type: verbatim
31276 #: ../src/guestfs-structs.pod:106
31277 #, no-wrap
31278 msgid ""
31279 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
31280 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
31281 "\n"
31282 msgstr ""
31283
31284 #. type: verbatim
31285 #: ../src/guestfs-structs.pod:111
31286 #, no-wrap
31287 msgid ""
31288 " struct guestfs_stat {\n"
31289 "   int64_t dev;\n"
31290 "   int64_t ino;\n"
31291 "   int64_t mode;\n"
31292 "   int64_t nlink;\n"
31293 "   int64_t uid;\n"
31294 "   int64_t gid;\n"
31295 "   int64_t rdev;\n"
31296 "   int64_t size;\n"
31297 "   int64_t blksize;\n"
31298 "   int64_t blocks;\n"
31299 "   int64_t atime;\n"
31300 "   int64_t mtime;\n"
31301 "   int64_t ctime;\n"
31302 " };\n"
31303 " \n"
31304 msgstr ""
31305
31306 #. type: verbatim
31307 #: ../src/guestfs-structs.pod:127
31308 #, no-wrap
31309 msgid ""
31310 " struct guestfs_stat_list {\n"
31311 "   uint32_t len; /* Number of elements in list. */\n"
31312 "   struct guestfs_stat *val; /* Elements. */\n"
31313 " };\n"
31314 " \n"
31315 msgstr ""
31316
31317 #. type: verbatim
31318 #: ../src/guestfs-structs.pod:132
31319 #, no-wrap
31320 msgid ""
31321 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
31322 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
31323 "\n"
31324 msgstr ""
31325
31326 #. type: verbatim
31327 #: ../src/guestfs-structs.pod:137
31328 #, no-wrap
31329 msgid ""
31330 " struct guestfs_statvfs {\n"
31331 "   int64_t bsize;\n"
31332 "   int64_t frsize;\n"
31333 "   int64_t blocks;\n"
31334 "   int64_t bfree;\n"
31335 "   int64_t bavail;\n"
31336 "   int64_t files;\n"
31337 "   int64_t ffree;\n"
31338 "   int64_t favail;\n"
31339 "   int64_t fsid;\n"
31340 "   int64_t flag;\n"
31341 "   int64_t namemax;\n"
31342 " };\n"
31343 " \n"
31344 msgstr ""
31345
31346 #. type: verbatim
31347 #: ../src/guestfs-structs.pod:151
31348 #, no-wrap
31349 msgid ""
31350 " struct guestfs_statvfs_list {\n"
31351 "   uint32_t len; /* Number of elements in list. */\n"
31352 "   struct guestfs_statvfs *val; /* Elements. */\n"
31353 " };\n"
31354 " \n"
31355 msgstr ""
31356
31357 #. type: verbatim
31358 #: ../src/guestfs-structs.pod:156
31359 #, no-wrap
31360 msgid ""
31361 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
31362 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
31363 "\n"
31364 msgstr ""
31365
31366 #. type: =head2
31367 #: ../src/guestfs-structs.pod:159
31368 msgid "guestfs_dirent"
31369 msgstr ""
31370
31371 #. type: verbatim
31372 #: ../src/guestfs-structs.pod:161
31373 #, no-wrap
31374 msgid ""
31375 " struct guestfs_dirent {\n"
31376 "   int64_t ino;\n"
31377 "   char ftyp;\n"
31378 "   char *name;\n"
31379 " };\n"
31380 " \n"
31381 msgstr ""
31382
31383 #. type: verbatim
31384 #: ../src/guestfs-structs.pod:167
31385 #, no-wrap
31386 msgid ""
31387 " struct guestfs_dirent_list {\n"
31388 "   uint32_t len; /* Number of elements in list. */\n"
31389 "   struct guestfs_dirent *val; /* Elements. */\n"
31390 " };\n"
31391 " \n"
31392 msgstr ""
31393
31394 #. type: verbatim
31395 #: ../src/guestfs-structs.pod:172
31396 #, no-wrap
31397 msgid ""
31398 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
31399 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
31400 "\n"
31401 msgstr ""
31402
31403 #. type: verbatim
31404 #: ../src/guestfs-structs.pod:177
31405 #, no-wrap
31406 msgid ""
31407 " struct guestfs_version {\n"
31408 "   int64_t major;\n"
31409 "   int64_t minor;\n"
31410 "   int64_t release;\n"
31411 "   char *extra;\n"
31412 " };\n"
31413 " \n"
31414 msgstr ""
31415
31416 #. type: verbatim
31417 #: ../src/guestfs-structs.pod:184
31418 #, no-wrap
31419 msgid ""
31420 " struct guestfs_version_list {\n"
31421 "   uint32_t len; /* Number of elements in list. */\n"
31422 "   struct guestfs_version *val; /* Elements. */\n"
31423 " };\n"
31424 " \n"
31425 msgstr ""
31426
31427 #. type: verbatim
31428 #: ../src/guestfs-structs.pod:189
31429 #, no-wrap
31430 msgid ""
31431 " void guestfs_free_version (struct guestfs_free_version *);\n"
31432 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
31433 "\n"
31434 msgstr ""
31435
31436 #. type: =head2
31437 #: ../src/guestfs-structs.pod:192
31438 msgid "guestfs_xattr"
31439 msgstr ""
31440
31441 #. type: verbatim
31442 #: ../src/guestfs-structs.pod:194
31443 #, no-wrap
31444 msgid ""
31445 " struct guestfs_xattr {\n"
31446 "   char *attrname;\n"
31447 "   /* The next two fields describe a byte array. */\n"
31448 "   uint32_t attrval_len;\n"
31449 "   char *attrval;\n"
31450 " };\n"
31451 " \n"
31452 msgstr ""
31453
31454 #. type: verbatim
31455 #: ../src/guestfs-structs.pod:201
31456 #, no-wrap
31457 msgid ""
31458 " struct guestfs_xattr_list {\n"
31459 "   uint32_t len; /* Number of elements in list. */\n"
31460 "   struct guestfs_xattr *val; /* Elements. */\n"
31461 " };\n"
31462 " \n"
31463 msgstr ""
31464
31465 #. type: verbatim
31466 #: ../src/guestfs-structs.pod:206
31467 #, no-wrap
31468 msgid ""
31469 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
31470 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
31471 "\n"
31472 msgstr ""
31473
31474 #. type: =head2
31475 #: ../src/guestfs-structs.pod:209
31476 msgid "guestfs_inotify_event"
31477 msgstr ""
31478
31479 #. type: verbatim
31480 #: ../src/guestfs-structs.pod:211
31481 #, no-wrap
31482 msgid ""
31483 " struct guestfs_inotify_event {\n"
31484 "   int64_t in_wd;\n"
31485 "   uint32_t in_mask;\n"
31486 "   uint32_t in_cookie;\n"
31487 "   char *in_name;\n"
31488 " };\n"
31489 " \n"
31490 msgstr ""
31491
31492 #. type: verbatim
31493 #: ../src/guestfs-structs.pod:218
31494 #, no-wrap
31495 msgid ""
31496 " struct guestfs_inotify_event_list {\n"
31497 "   uint32_t len; /* Number of elements in list. */\n"
31498 "   struct guestfs_inotify_event *val; /* Elements. */\n"
31499 " };\n"
31500 " \n"
31501 msgstr ""
31502
31503 #. type: verbatim
31504 #: ../src/guestfs-structs.pod:223
31505 #, no-wrap
31506 msgid ""
31507 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
31508 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
31509 "\n"
31510 msgstr ""
31511
31512 #. type: =head2
31513 #: ../src/guestfs-structs.pod:226
31514 msgid "guestfs_partition"
31515 msgstr ""
31516
31517 #. type: verbatim
31518 #: ../src/guestfs-structs.pod:228
31519 #, no-wrap
31520 msgid ""
31521 " struct guestfs_partition {\n"
31522 "   int32_t part_num;\n"
31523 "   uint64_t part_start;\n"
31524 "   uint64_t part_end;\n"
31525 "   uint64_t part_size;\n"
31526 " };\n"
31527 " \n"
31528 msgstr ""
31529
31530 #. type: verbatim
31531 #: ../src/guestfs-structs.pod:235
31532 #, no-wrap
31533 msgid ""
31534 " struct guestfs_partition_list {\n"
31535 "   uint32_t len; /* Number of elements in list. */\n"
31536 "   struct guestfs_partition *val; /* Elements. */\n"
31537 " };\n"
31538 " \n"
31539 msgstr ""
31540
31541 #. type: verbatim
31542 #: ../src/guestfs-structs.pod:240
31543 #, no-wrap
31544 msgid ""
31545 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
31546 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
31547 "\n"
31548 msgstr ""
31549
31550 #. type: =head2
31551 #: ../src/guestfs-structs.pod:243
31552 msgid "guestfs_application"
31553 msgstr ""
31554
31555 #. type: verbatim
31556 #: ../src/guestfs-structs.pod:245
31557 #, no-wrap
31558 msgid ""
31559 " struct guestfs_application {\n"
31560 "   char *app_name;\n"
31561 "   char *app_display_name;\n"
31562 "   int32_t app_epoch;\n"
31563 "   char *app_version;\n"
31564 "   char *app_release;\n"
31565 "   char *app_install_path;\n"
31566 "   char *app_trans_path;\n"
31567 "   char *app_publisher;\n"
31568 "   char *app_url;\n"
31569 "   char *app_source_package;\n"
31570 "   char *app_summary;\n"
31571 "   char *app_description;\n"
31572 " };\n"
31573 " \n"
31574 msgstr ""
31575
31576 #. type: verbatim
31577 #: ../src/guestfs-structs.pod:260
31578 #, no-wrap
31579 msgid ""
31580 " struct guestfs_application_list {\n"
31581 "   uint32_t len; /* Number of elements in list. */\n"
31582 "   struct guestfs_application *val; /* Elements. */\n"
31583 " };\n"
31584 " \n"
31585 msgstr ""
31586
31587 #. type: verbatim
31588 #: ../src/guestfs-structs.pod:265
31589 #, no-wrap
31590 msgid ""
31591 " void guestfs_free_application (struct guestfs_free_application *);\n"
31592 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
31593 "\n"
31594 msgstr ""
31595
31596 #. type: textblock
31597 #: ../src/guestfs.pod:5
31598 msgid "guestfs - Library for accessing and modifying virtual machine images"
31599 msgstr ""
31600
31601 #. type: verbatim
31602 #: ../src/guestfs.pod:11
31603 #, no-wrap
31604 msgid ""
31605 " guestfs_h *g = guestfs_create ();\n"
31606 " guestfs_add_drive (g, \"guest.img\");\n"
31607 " guestfs_launch (g);\n"
31608 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
31609 " guestfs_touch (g, \"/hello\");\n"
31610 " guestfs_umount (g, \"/\");\n"
31611 " guestfs_close (g);\n"
31612 "\n"
31613 msgstr ""
31614
31615 #. type: textblock
31616 #: ../src/guestfs.pod:25
31617 msgid ""
31618 "Libguestfs is a library for accessing and modifying guest disk images.  "
31619 "Amongst the things this is good for: making batch configuration changes to "
31620 "guests, getting disk used/free statistics (see also: virt-df), migrating "
31621 "between virtualization systems (see also: virt-p2v), performing partial "
31622 "backups, performing partial guest clones, cloning guests and changing "
31623 "registry/UUID/hostname info, and much else besides."
31624 msgstr ""
31625
31626 #. type: textblock
31627 #: ../src/guestfs.pod:33
31628 msgid ""
31629 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
31630 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
31631 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
31632 "qcow2, vmdk."
31633 msgstr ""
31634
31635 #. type: textblock
31636 #: ../src/guestfs.pod:38
31637 msgid ""
31638 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
31639 "what filesystem is in each LV, etc.).  It can also run commands in the "
31640 "context of the guest.  Also you can access filesystems over FUSE."
31641 msgstr ""
31642
31643 #. type: textblock
31644 #: ../src/guestfs.pod:43
31645 msgid ""
31646 "Libguestfs is a library that can be linked with C and C++ management "
31647 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
31648 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
31649 "command line."
31650 msgstr ""
31651
31652 #. type: textblock
31653 #: ../src/guestfs.pod:48
31654 msgid ""
31655 "You don't need to be root to use libguestfs, although obviously you do need "
31656 "enough permissions to access the disk images."
31657 msgstr ""
31658
31659 #. type: textblock
31660 #: ../src/guestfs.pod:51
31661 msgid ""
31662 "Libguestfs is a large API because it can do many things.  For a gentle "
31663 "introduction, please read the L</API OVERVIEW> section next."
31664 msgstr ""
31665
31666 #. type: textblock
31667 #: ../src/guestfs.pod:54
31668 msgid ""
31669 "There are also some example programs in the L<guestfs-examples(3)> manual "
31670 "page."
31671 msgstr ""
31672
31673 #. type: =head1
31674 #: ../src/guestfs.pod:57
31675 msgid "API OVERVIEW"
31676 msgstr ""
31677
31678 #. type: textblock
31679 #: ../src/guestfs.pod:59
31680 msgid ""
31681 "This section provides a gentler overview of the libguestfs API.  We also try "
31682 "to group API calls together, where that may not be obvious from reading "
31683 "about the individual calls in the main section of this manual."
31684 msgstr ""
31685
31686 #. type: =head2
31687 #: ../src/guestfs.pod:64
31688 msgid "HANDLES"
31689 msgstr ""
31690
31691 #. type: textblock
31692 #: ../src/guestfs.pod:66
31693 msgid ""
31694 "Before you can use libguestfs calls, you have to create a handle.  Then you "
31695 "must add at least one disk image to the handle, followed by launching the "
31696 "handle, then performing whatever operations you want, and finally closing "
31697 "the handle.  By convention we use the single letter C<g> for the name of the "
31698 "handle variable, although of course you can use any name you want."
31699 msgstr ""
31700
31701 #. type: textblock
31702 #: ../src/guestfs.pod:73
31703 msgid "The general structure of all libguestfs-using programs looks like this:"
31704 msgstr ""
31705
31706 #. type: verbatim
31707 #: ../src/guestfs.pod:76
31708 #, no-wrap
31709 msgid ""
31710 " guestfs_h *g = guestfs_create ();\n"
31711 " \n"
31712 msgstr ""
31713
31714 #. type: verbatim
31715 #: ../src/guestfs.pod:78
31716 #, no-wrap
31717 msgid ""
31718 " /* Call guestfs_add_drive additional times if there are\n"
31719 "  * multiple disk images.\n"
31720 "  */\n"
31721 " guestfs_add_drive (g, \"guest.img\");\n"
31722 " \n"
31723 msgstr ""
31724
31725 #. type: verbatim
31726 #: ../src/guestfs.pod:83
31727 #, no-wrap
31728 msgid ""
31729 " /* Most manipulation calls won't work until you've launched\n"
31730 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
31731 "  * and _before_ other commands.\n"
31732 "  */\n"
31733 " guestfs_launch (g);\n"
31734 " \n"
31735 msgstr ""
31736
31737 #. type: verbatim
31738 #: ../src/guestfs.pod:89
31739 #, no-wrap
31740 msgid ""
31741 " /* Now you can examine what partitions, LVs etc are available.\n"
31742 "  */\n"
31743 " char **partitions = guestfs_list_partitions (g);\n"
31744 " char **logvols = guestfs_lvs (g);\n"
31745 " \n"
31746 msgstr ""
31747
31748 #. type: verbatim
31749 #: ../src/guestfs.pod:94
31750 #, no-wrap
31751 msgid ""
31752 " /* To access a filesystem in the image, you must mount it.\n"
31753 "  */\n"
31754 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
31755 " \n"
31756 msgstr ""
31757
31758 #. type: verbatim
31759 #: ../src/guestfs.pod:98
31760 #, no-wrap
31761 msgid ""
31762 " /* Now you can perform filesystem actions on the guest\n"
31763 "  * disk image.\n"
31764 "  */\n"
31765 " guestfs_touch (g, \"/hello\");\n"
31766 " \n"
31767 msgstr ""
31768
31769 #. type: verbatim
31770 #: ../src/guestfs.pod:103
31771 #, no-wrap
31772 msgid ""
31773 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
31774 "  * it is done automatically when you close the handle.  See\n"
31775 "  * discussion of autosync in this page.\n"
31776 "  */\n"
31777 " guestfs_sync (g);\n"
31778 " \n"
31779 msgstr ""
31780
31781 #. type: verbatim
31782 #: ../src/guestfs.pod:109
31783 #, no-wrap
31784 msgid ""
31785 " /* Close the handle 'g'. */\n"
31786 " guestfs_close (g);\n"
31787 "\n"
31788 msgstr ""
31789
31790 #. type: textblock
31791 #: ../src/guestfs.pod:112
31792 msgid ""
31793 "The code above doesn't include any error checking.  In real code you should "
31794 "check return values carefully for errors.  In general all functions that "
31795 "return integers return C<-1> on error, and all functions that return "
31796 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
31797 "how to handle errors, and consult the documentation for each function call "
31798 "below to see precisely how they return error indications.  See L<guestfs-"
31799 "examples(3)> for fully worked examples."
31800 msgstr ""
31801
31802 #. type: =head2
31803 #: ../src/guestfs.pod:121
31804 msgid "DISK IMAGES"
31805 msgstr ""
31806
31807 #. type: textblock
31808 #: ../src/guestfs.pod:123
31809 msgid ""
31810 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
31811 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
31812 "actual block device, or simply an empty file of zeroes that you have created "
31813 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
31814 "of these."
31815 msgstr ""
31816
31817 #. type: textblock
31818 #: ../src/guestfs.pod:129
31819 msgid ""
31820 "The call you should use in modern code for adding drives is L</"
31821 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
31822 "specifying that the format is raw, do:"
31823 msgstr ""
31824
31825 #. type: verbatim
31826 #: ../src/guestfs.pod:133
31827 #, no-wrap
31828 msgid ""
31829 " guestfs_add_drive_opts (g, filename,\n"
31830 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
31831 "                         -1);\n"
31832 "\n"
31833 msgstr ""
31834
31835 #. type: textblock
31836 #: ../src/guestfs.pod:137
31837 msgid "You can add a disk read-only using:"
31838 msgstr ""
31839
31840 #. type: verbatim
31841 #: ../src/guestfs.pod:139
31842 #, no-wrap
31843 msgid ""
31844 " guestfs_add_drive_opts (g, filename,\n"
31845 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
31846 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
31847 "                         -1);\n"
31848 "\n"
31849 msgstr ""
31850
31851 #. type: textblock
31852 #: ../src/guestfs.pod:144
31853 msgid ""
31854 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
31855 "libguestfs won't modify the file."
31856 msgstr ""
31857
31858 #. type: textblock
31859 #: ../src/guestfs.pod:147
31860 msgid ""
31861 "Be extremely cautious if the disk image is in use, eg. if it is being used "
31862 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
31863 "corruption, but adding it read-only is safe."
31864 msgstr ""
31865
31866 #. type: textblock
31867 #: ../src/guestfs.pod:151
31868 msgid ""
31869 "You must add at least one disk image, and you may add multiple disk images.  "
31870 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
31871 "first one you added), C</dev/sdb> (for the second one you added), etc."
31872 msgstr ""
31873
31874 #. type: textblock
31875 #: ../src/guestfs.pod:156
31876 msgid ""
31877 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
31878 "can call L</guestfs_list_devices> to get a list of the device names, in the "
31879 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
31880 msgstr ""
31881
31882 #. type: =head2
31883 #: ../src/guestfs.pod:161
31884 msgid "MOUNTING"
31885 msgstr ""
31886
31887 #. type: textblock
31888 #: ../src/guestfs.pod:163
31889 msgid ""
31890 "Before you can read or write files, create directories and so on in a disk "
31891 "image that contains filesystems, you have to mount those filesystems using "
31892 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
31893 "a disk image contains (for example) one partition with a filesystem on that "
31894 "partition, then you can mount it directly:"
31895 msgstr ""
31896
31897 #. type: verbatim
31898 #: ../src/guestfs.pod:170
31899 #, no-wrap
31900 msgid ""
31901 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
31902 "\n"
31903 msgstr ""
31904
31905 #. type: textblock
31906 #: ../src/guestfs.pod:172
31907 msgid ""
31908 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
31909 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
31910 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
31911 "that these are libguestfs virtual devices, and are nothing to do with host "
31912 "devices."
31913 msgstr ""
31914
31915 #. type: textblock
31916 #: ../src/guestfs.pod:178
31917 msgid ""
31918 "If you are given a disk image and you don't know what it contains then you "
31919 "have to find out.  Libguestfs can do that too: use L</"
31920 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
31921 "LVs, and either try mounting each to see what is mountable, or else examine "
31922 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
31923 "filesystems, use L</guestfs_list_filesystems>."
31924 msgstr ""
31925
31926 #. type: textblock
31927 #: ../src/guestfs.pod:186
31928 msgid ""
31929 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
31930 "L</INSPECTION> below).  But you might find it easier to look at higher level "
31931 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
31932 msgstr ""
31933
31934 #. type: textblock
31935 #: ../src/guestfs.pod:191
31936 msgid ""
31937 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
31938 "several other variations of the C<guestfs_mount_*> call."
31939 msgstr ""
31940
31941 #. type: =head2
31942 #: ../src/guestfs.pod:194
31943 msgid "FILESYSTEM ACCESS AND MODIFICATION"
31944 msgstr ""
31945
31946 #. type: textblock
31947 #: ../src/guestfs.pod:196
31948 msgid ""
31949 "The majority of the libguestfs API consists of fairly low-level calls for "
31950 "accessing and modifying the files, directories, symlinks etc on mounted "
31951 "filesystems.  There are over a hundred such calls which you can find listed "
31952 "in detail below in this man page, and we don't even pretend to cover them "
31953 "all in this overview."
31954 msgstr ""
31955
31956 #. type: textblock
31957 #: ../src/guestfs.pod:202
31958 msgid ""
31959 "Specify filenames as full paths, starting with C<\"/\"> and including the "
31960 "mount point."
31961 msgstr ""
31962
31963 #. type: textblock
31964 #: ../src/guestfs.pod:205
31965 msgid ""
31966 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
31967 "the file called C<\"etc/passwd\"> then you could do:"
31968 msgstr ""
31969
31970 #. type: verbatim
31971 #: ../src/guestfs.pod:208
31972 #, no-wrap
31973 msgid ""
31974 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
31975 "\n"
31976 msgstr ""
31977
31978 #. type: textblock
31979 #: ../src/guestfs.pod:210
31980 msgid ""
31981 "This would return C<data> as a newly allocated buffer containing the full "
31982 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
31983 "or C<NULL> if there was an error."
31984 msgstr ""
31985
31986 #. type: textblock
31987 #: ../src/guestfs.pod:214
31988 msgid ""
31989 "As another example, to create a top-level directory on that filesystem "
31990 "called C<\"var\"> you would do:"
31991 msgstr ""
31992
31993 #. type: verbatim
31994 #: ../src/guestfs.pod:217
31995 #, no-wrap
31996 msgid ""
31997 " guestfs_mkdir (g, \"/var\");\n"
31998 "\n"
31999 msgstr ""
32000
32001 #. type: textblock
32002 #: ../src/guestfs.pod:219
32003 msgid "To create a symlink you could do:"
32004 msgstr ""
32005
32006 #. type: verbatim
32007 #: ../src/guestfs.pod:221
32008 #, no-wrap
32009 msgid ""
32010 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
32011 "               \"/etc/rc3.d/S30portmap\");\n"
32012 "\n"
32013 msgstr ""
32014
32015 #. type: textblock
32016 #: ../src/guestfs.pod:224
32017 msgid ""
32018 "Libguestfs will reject attempts to use relative paths and there is no "
32019 "concept of a current working directory."
32020 msgstr ""
32021
32022 #. type: textblock
32023 #: ../src/guestfs.pod:227
32024 msgid ""
32025 "Libguestfs can return errors in many situations: for example if the "
32026 "filesystem isn't writable, or if a file or directory that you requested "
32027 "doesn't exist.  If you are using the C API (documented here)  you have to "
32028 "check for those error conditions after each call.  (Other language bindings "
32029 "turn these errors into exceptions)."
32030 msgstr ""
32031
32032 #. type: textblock
32033 #: ../src/guestfs.pod:233
32034 msgid ""
32035 "File writes are affected by the per-handle umask, set by calling L</"
32036 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
32037 msgstr ""
32038
32039 #. type: =head2
32040 #: ../src/guestfs.pod:236
32041 msgid "PARTITIONING"
32042 msgstr ""
32043
32044 #. type: textblock
32045 #: ../src/guestfs.pod:238
32046 msgid ""
32047 "Libguestfs contains API calls to read, create and modify partition tables on "
32048 "disk images."
32049 msgstr ""
32050
32051 #. type: textblock
32052 #: ../src/guestfs.pod:241
32053 msgid ""
32054 "In the common case where you want to create a single partition covering the "
32055 "whole disk, you should use the L</guestfs_part_disk> call:"
32056 msgstr ""
32057
32058 #. type: verbatim
32059 #: ../src/guestfs.pod:245
32060 #, no-wrap
32061 msgid ""
32062 " const char *parttype = \"mbr\";\n"
32063 " if (disk_is_larger_than_2TB)\n"
32064 "   parttype = \"gpt\";\n"
32065 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
32066 "\n"
32067 msgstr ""
32068
32069 #. type: textblock
32070 #: ../src/guestfs.pod:250
32071 msgid ""
32072 "Obviously this effectively wipes anything that was on that disk image before."
32073 msgstr ""
32074
32075 #. type: =head2
32076 #: ../src/guestfs.pod:253
32077 msgid "LVM2"
32078 msgstr ""
32079
32080 #. type: textblock
32081 #: ../src/guestfs.pod:255
32082 msgid ""
32083 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
32084 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
32085 "you familiarize yourself with the concepts of physical volumes, volume "
32086 "groups and logical volumes."
32087 msgstr ""
32088
32089 #. type: textblock
32090 #: ../src/guestfs.pod:260
32091 msgid ""
32092 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
32093 "tldp.org/HOWTO/LVM-HOWTO/>."
32094 msgstr ""
32095
32096 #. type: =head2
32097 #: ../src/guestfs.pod:263
32098 msgid "DOWNLOADING"
32099 msgstr ""
32100
32101 #. type: textblock
32102 #: ../src/guestfs.pod:265
32103 msgid ""
32104 "Use L</guestfs_cat> to download small, text only files.  This call is "
32105 "limited to files which are less than 2 MB and which cannot contain any ASCII "
32106 "NUL (C<\\0>) characters.  However the API is very simple to use."
32107 msgstr ""
32108
32109 #. type: textblock
32110 #: ../src/guestfs.pod:269
32111 msgid ""
32112 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
32113 "bit data, since it returns a (pointer, size) pair.  However it is still "
32114 "limited to \"small\" files, less than 2 MB."
32115 msgstr ""
32116
32117 #. type: textblock
32118 #: ../src/guestfs.pod:273
32119 msgid ""
32120 "L</guestfs_download> can be used to download any file, with no limits on "
32121 "content or size (even files larger than 4 GB)."
32122 msgstr ""
32123
32124 #. type: textblock
32125 #: ../src/guestfs.pod:276
32126 msgid ""
32127 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
32128 msgstr ""
32129
32130 #. type: =head2
32131 #: ../src/guestfs.pod:279
32132 msgid "UPLOADING"
32133 msgstr ""
32134
32135 #. type: textblock
32136 #: ../src/guestfs.pod:281
32137 msgid ""
32138 "It's often the case that you want to write a file or files to the disk image."
32139 msgstr ""
32140
32141 #. type: textblock
32142 #: ../src/guestfs.pod:284
32143 msgid ""
32144 "To write a small file with fixed content, use L</guestfs_write>.  To create "
32145 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
32146 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
32147 "of other functions for creating test files, for example L</guestfs_fill> and "
32148 "L</guestfs_fill_pattern>."
32149 msgstr ""
32150
32151 #. type: textblock
32152 #: ../src/guestfs.pod:290
32153 msgid ""
32154 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
32155 "file content or size (even files larger than 4 GB)."
32156 msgstr ""
32157
32158 #. type: textblock
32159 #: ../src/guestfs.pod:293
32160 msgid ""
32161 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
32162 msgstr ""
32163
32164 #. type: textblock
32165 #: ../src/guestfs.pod:295
32166 msgid ""
32167 "However the fastest way to upload I<large numbers of arbitrary files> is to "
32168 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
32169 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
32170 "in a predictable way (eg. adding it last after all other drives) then you "
32171 "can get the device name from L</guestfs_list_devices> and mount it directly "
32172 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
32173 "portable between kernel versions, and they don't support labels or UUIDs.  "
32174 "If you want to pre-build an image or you need to mount it using a label or "
32175 "UUID, use an ISO image instead."
32176 msgstr ""
32177
32178 #. type: =head2
32179 #: ../src/guestfs.pod:306
32180 msgid "COPYING"
32181 msgstr ""
32182
32183 #. type: textblock
32184 #: ../src/guestfs.pod:308
32185 msgid ""
32186 "There are various different commands for copying between files and devices "
32187 "and in and out of the guest filesystem.  These are summarised in the table "
32188 "below."
32189 msgstr ""
32190
32191 #. type: =item
32192 #: ../src/guestfs.pod:314
32193 msgid "B<file> to B<file>"
32194 msgstr ""
32195
32196 #. type: textblock
32197 #: ../src/guestfs.pod:316
32198 msgid ""
32199 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
32200 "directories recursively."
32201 msgstr ""
32202
32203 #. type: =item
32204 #: ../src/guestfs.pod:319
32205 msgid "B<file or device> to B<file or device>"
32206 msgstr ""
32207
32208 #. type: textblock
32209 #: ../src/guestfs.pod:321
32210 msgid ""
32211 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
32212 "devices in the guest."
32213 msgstr ""
32214
32215 #. type: textblock
32216 #: ../src/guestfs.pod:324
32217 msgid "Example: duplicate the contents of an LV:"
32218 msgstr ""
32219
32220 #. type: verbatim
32221 #: ../src/guestfs.pod:326
32222 #, no-wrap
32223 msgid ""
32224 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
32225 "\n"
32226 msgstr ""
32227
32228 #. type: textblock
32229 #: ../src/guestfs.pod:328
32230 msgid ""
32231 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
32232 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
32233 "guestfs_copy_size>."
32234 msgstr ""
32235
32236 #. type: =item
32237 #: ../src/guestfs.pod:332
32238 msgid "B<file on the host> to B<file or device>"
32239 msgstr ""
32240
32241 #. type: textblock
32242 #: ../src/guestfs.pod:334
32243 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
32244 msgstr ""
32245
32246 #. type: =item
32247 #: ../src/guestfs.pod:336
32248 msgid "B<file or device> to B<file on the host>"
32249 msgstr ""
32250
32251 #. type: textblock
32252 #: ../src/guestfs.pod:338
32253 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
32254 msgstr ""
32255
32256 #. type: =head2
32257 #: ../src/guestfs.pod:342
32258 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
32259 msgstr ""
32260
32261 #. type: textblock
32262 #: ../src/guestfs.pod:344
32263 msgid ""
32264 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
32265 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
32266 "appears you can only upload and download to files.  However many Un*x-like "
32267 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
32268 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
32269 "and arbitrary file descriptor N."
32270 msgstr ""
32271
32272 #. type: textblock
32273 #: ../src/guestfs.pod:352
32274 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
32275 msgstr ""
32276
32277 #. type: verbatim
32278 #: ../src/guestfs.pod:355
32279 #, no-wrap
32280 msgid ""
32281 " guestfs_download (g, filename, \"/dev/stdout\");\n"
32282 "\n"
32283 msgstr ""
32284
32285 #. type: textblock
32286 #: ../src/guestfs.pod:357
32287 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
32288 msgstr ""
32289
32290 #. type: verbatim
32291 #: ../src/guestfs.pod:359
32292 #, no-wrap
32293 msgid ""
32294 " char devfd[64];\n"
32295 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
32296 " guestfs_tar_out (g, \"/\", devfd);\n"
32297 "\n"
32298 msgstr ""
32299
32300 #. type: =head2
32301 #: ../src/guestfs.pod:363
32302 msgid "LISTING FILES"
32303 msgstr ""
32304
32305 #. type: textblock
32306 #: ../src/guestfs.pod:365
32307 msgid ""
32308 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
32309 "L<guestfish(1)>-equivalent command C<ll>)."
32310 msgstr ""
32311
32312 #. type: textblock
32313 #: ../src/guestfs.pod:368
32314 msgid ""
32315 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
32316 "programs, as a flat list of strings."
32317 msgstr ""
32318
32319 #. type: textblock
32320 #: ../src/guestfs.pod:371
32321 msgid ""
32322 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
32323 "directory, plus additional information about each one.  It is more "
32324 "equivalent to using the L<readdir(3)> call on a local filesystem."
32325 msgstr ""
32326
32327 #. type: textblock
32328 #: ../src/guestfs.pod:375
32329 msgid ""
32330 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
32331 msgstr ""
32332
32333 #. type: =head2
32334 #: ../src/guestfs.pod:378
32335 msgid "RUNNING COMMANDS"
32336 msgstr ""
32337
32338 #. type: textblock
32339 #: ../src/guestfs.pod:380
32340 msgid ""
32341 "Although libguestfs is primarily an API for manipulating files inside guest "
32342 "images, we also provide some limited facilities for running commands inside "
32343 "guests."
32344 msgstr ""
32345
32346 #. type: textblock
32347 #: ../src/guestfs.pod:384
32348 msgid "There are many limitations to this:"
32349 msgstr ""
32350
32351 #. type: textblock
32352 #: ../src/guestfs.pod:390
32353 msgid ""
32354 "The kernel version that the command runs under will be different from what "
32355 "it expects."
32356 msgstr ""
32357
32358 #. type: textblock
32359 #: ../src/guestfs.pod:395
32360 msgid ""
32361 "If the command needs to communicate with daemons, then most likely they "
32362 "won't be running."
32363 msgstr ""
32364
32365 #. type: textblock
32366 #: ../src/guestfs.pod:400
32367 msgid "The command will be running in limited memory."
32368 msgstr ""
32369
32370 #. type: textblock
32371 #: ../src/guestfs.pod:404
32372 msgid ""
32373 "The network may not be available unless you enable it (see L</"
32374 "guestfs_set_network>)."
32375 msgstr ""
32376
32377 #. type: textblock
32378 #: ../src/guestfs.pod:409
32379 msgid "Only supports Linux guests (not Windows, BSD, etc)."
32380 msgstr ""
32381
32382 #. type: textblock
32383 #: ../src/guestfs.pod:413
32384 msgid ""
32385 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
32386 msgstr ""
32387
32388 #. type: textblock
32389 #: ../src/guestfs.pod:418
32390 msgid ""
32391 "For SELinux guests, you may need to enable SELinux and load policy first.  "
32392 "See L</SELINUX> in this manpage."
32393 msgstr ""
32394
32395 #. type: textblock
32396 #: ../src/guestfs.pod:423
32397 msgid ""
32398 "I<Security:> It is not safe to run commands from untrusted, possibly "
32399 "malicious guests.  These commands may attempt to exploit your program by "
32400 "sending unexpected output.  They could also try to exploit the Linux kernel "
32401 "or qemu provided by the libguestfs appliance.  They could use the network "
32402 "provided by the libguestfs appliance to bypass ordinary network partitions "
32403 "and firewalls.  They could use the elevated privileges or different SELinux "
32404 "context of your program to their advantage."
32405 msgstr ""
32406
32407 #. type: textblock
32408 #: ../src/guestfs.pod:432
32409 msgid ""
32410 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
32411 "(a script which runs when the guest next boots normally), and to have this "
32412 "script run the commands you want in the normal context of the running guest, "
32413 "network security and so on.  For information about other security issues, "
32414 "see L</SECURITY>."
32415 msgstr ""
32416
32417 #. type: textblock
32418 #: ../src/guestfs.pod:440
32419 msgid ""
32420 "The two main API calls to run commands are L</guestfs_command> and L</"
32421 "guestfs_sh> (there are also variations)."
32422 msgstr ""
32423
32424 #. type: textblock
32425 #: ../src/guestfs.pod:443
32426 msgid ""
32427 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
32428 "shell globs, redirections, etc will work."
32429 msgstr ""
32430
32431 #. type: =head2
32432 #: ../src/guestfs.pod:446
32433 msgid "CONFIGURATION FILES"
32434 msgstr ""
32435
32436 #. type: textblock
32437 #: ../src/guestfs.pod:448
32438 msgid ""
32439 "To read and write configuration files in Linux guest filesystems, we "
32440 "strongly recommend using Augeas.  For example, Augeas understands how to "
32441 "read and write, say, a Linux shadow password file or X.org configuration "
32442 "file, and so avoids you having to write that code."
32443 msgstr ""
32444
32445 #. type: textblock
32446 #: ../src/guestfs.pod:453
32447 msgid ""
32448 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
32449 "document Augeas itself here because there is excellent documentation on the "
32450 "L<http://augeas.net/> website."
32451 msgstr ""
32452
32453 #. type: textblock
32454 #: ../src/guestfs.pod:457
32455 msgid ""
32456 "If you don't want to use Augeas (you fool!) then try calling L</"
32457 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
32458 "over."
32459 msgstr ""
32460
32461 #. type: =head2
32462 #: ../src/guestfs.pod:461
32463 msgid "SELINUX"
32464 msgstr ""
32465
32466 #. type: textblock
32467 #: ../src/guestfs.pod:463
32468 msgid ""
32469 "We support SELinux guests.  To ensure that labeling happens correctly in "
32470 "SELinux guests, you need to enable SELinux and load the guest's policy:"
32471 msgstr ""
32472
32473 #. type: textblock
32474 #: ../src/guestfs.pod:471
32475 msgid "Before launching, do:"
32476 msgstr ""
32477
32478 #. type: verbatim
32479 #: ../src/guestfs.pod:473
32480 #, no-wrap
32481 msgid ""
32482 " guestfs_set_selinux (g, 1);\n"
32483 "\n"
32484 msgstr ""
32485
32486 #. type: textblock
32487 #: ../src/guestfs.pod:477
32488 msgid ""
32489 "After mounting the guest's filesystem(s), load the policy.  This is best "
32490 "done by running the L<load_policy(8)> command in the guest itself:"
32491 msgstr ""
32492
32493 #. type: verbatim
32494 #: ../src/guestfs.pod:481
32495 #, no-wrap
32496 msgid ""
32497 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
32498 "\n"
32499 msgstr ""
32500
32501 #. type: textblock
32502 #: ../src/guestfs.pod:483
32503 msgid ""
32504 "(Older versions of C<load_policy> require you to specify the name of the "
32505 "policy file)."
32506 msgstr ""
32507
32508 #. type: textblock
32509 #: ../src/guestfs.pod:488
32510 msgid ""
32511 "Optionally, set the security context for the API.  The correct security "
32512 "context to use can only be known by inspecting the guest.  As an example:"
32513 msgstr ""
32514
32515 #. type: verbatim
32516 #: ../src/guestfs.pod:492
32517 #, no-wrap
32518 msgid ""
32519 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
32520 "\n"
32521 msgstr ""
32522
32523 #. type: textblock
32524 #: ../src/guestfs.pod:496
32525 msgid "This will work for running commands and editing existing files."
32526 msgstr ""
32527
32528 #. type: textblock
32529 #: ../src/guestfs.pod:498
32530 msgid ""
32531 "When new files are created, you may need to label them explicitly, for "
32532 "example by running the external command C<restorecon pathname>."
32533 msgstr ""
32534
32535 #. type: =head2
32536 #: ../src/guestfs.pod:502
32537 msgid "UMASK"
32538 msgstr ""
32539
32540 #. type: textblock
32541 #: ../src/guestfs.pod:504
32542 msgid ""
32543 "Certain calls are affected by the current file mode creation mask (the "
32544 "\"umask\").  In particular ones which create files or directories, such as "
32545 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
32546 "either the default mode that the file is created with or modifies the mode "
32547 "that you supply."
32548 msgstr ""
32549
32550 #. type: textblock
32551 #: ../src/guestfs.pod:510
32552 msgid ""
32553 "The default umask is C<022>, so files are created with modes such as C<0644> "
32554 "and directories with C<0755>."
32555 msgstr ""
32556
32557 #. type: textblock
32558 #: ../src/guestfs.pod:513
32559 msgid ""
32560 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
32561 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
32562 "guestfs_chmod> after creating each file or directory."
32563 msgstr ""
32564
32565 #. type: textblock
32566 #: ../src/guestfs.pod:517
32567 msgid "For more information about umask, see L<umask(2)>."
32568 msgstr ""
32569
32570 #. type: textblock
32571 #: ../src/guestfs.pod:521
32572 msgid ""
32573 "Libguestfs allows you to access Linux guests which have been encrypted using "
32574 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
32575 "standard.  This includes nearly all whole disk encryption systems used by "
32576 "modern Linux guests."
32577 msgstr ""
32578
32579 #. type: textblock
32580 #: ../src/guestfs.pod:527
32581 msgid ""
32582 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
32583 "returns the string C<crypto_LUKS>)."
32584 msgstr ""
32585
32586 #. type: textblock
32587 #: ../src/guestfs.pod:530
32588 msgid ""
32589 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
32590 "will require the passphrase!"
32591 msgstr ""
32592
32593 #. type: textblock
32594 #: ../src/guestfs.pod:533
32595 msgid ""
32596 "Opening a LUKS device creates a new device mapper device called C</dev/"
32597 "mapper/mapname> (where C<mapname> is the string you supply to L</"
32598 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
32599 "from and encrypted to the underlying block device respectively."
32600 msgstr ""
32601
32602 #. type: textblock
32603 #: ../src/guestfs.pod:539
32604 msgid ""
32605 "LVM volume groups on the device can be made visible by calling L</"
32606 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
32607 "(s) can now be mounted in the usual way."
32608 msgstr ""
32609
32610 #. type: textblock
32611 #: ../src/guestfs.pod:543
32612 msgid ""
32613 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
32614 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
32615 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
32616 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
32617 "underlying encrypted block device)."
32618 msgstr ""
32619
32620 #. type: =head2
32621 #: ../src/guestfs.pod:550
32622 msgid "INSPECTION"
32623 msgstr ""
32624
32625 #. type: textblock
32626 #: ../src/guestfs.pod:552
32627 msgid ""
32628 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
32629 "contains operating systems, an install CD or a live CD.  (These APIs used to "
32630 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
32631 "version 1.5.3 the most frequently used part of this library has been "
32632 "rewritten in C and moved into the core code)."
32633 msgstr ""
32634
32635 #. type: textblock
32636 #: ../src/guestfs.pod:559
32637 msgid ""
32638 "Add all disks belonging to the unknown virtual machine and call L</"
32639 "guestfs_launch> in the usual way."
32640 msgstr ""
32641
32642 #. type: textblock
32643 #: ../src/guestfs.pod:562
32644 msgid ""
32645 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
32646 "and certain heuristics, and returns a list of operating systems that were "
32647 "found.  An empty list means none were found.  A single element is the root "
32648 "filesystem of the operating system.  For dual- or multi-boot guests, "
32649 "multiple roots can be returned, each one corresponding to a separate "
32650 "operating system.  (Multi-boot virtual machines are extremely rare in the "
32651 "world of virtualization, but since this scenario can happen, we have built "
32652 "libguestfs to deal with it.)"
32653 msgstr ""
32654
32655 #. type: textblock
32656 #: ../src/guestfs.pod:571
32657 msgid ""
32658 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
32659 "to get additional details about that operating system.  For example, call L</"
32660 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
32661 "Windows and Linux-based operating systems respectively."
32662 msgstr ""
32663
32664 #. type: textblock
32665 #: ../src/guestfs.pod:577
32666 msgid ""
32667 "Un*x-like and Linux-based operating systems usually consist of several "
32668 "filesystems which are mounted at boot time (for example, a separate boot "
32669 "partition mounted on C</boot>).  The inspection rules are able to detect how "
32670 "filesystems correspond to mount points.  Call "
32671 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
32672 "hash table like this example:"
32673 msgstr ""
32674
32675 #. type: verbatim
32676 #: ../src/guestfs.pod:584
32677 #, no-wrap
32678 msgid ""
32679 " /boot => /dev/sda1\n"
32680 " /     => /dev/vg_guest/lv_root\n"
32681 " /usr  => /dev/vg_guest/lv_usr\n"
32682 "\n"
32683 msgstr ""
32684
32685 #. type: textblock
32686 #: ../src/guestfs.pod:588
32687 msgid ""
32688 "The caller can then make calls to L</guestfs_mount_options> to mount the "
32689 "filesystems as suggested."
32690 msgstr ""
32691
32692 #. type: textblock
32693 #: ../src/guestfs.pod:591
32694 msgid ""
32695 "Be careful to mount filesystems in the right order (eg. C</> before C</"
32696 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
32697 msgstr ""
32698
32699 #. type: textblock
32700 #: ../src/guestfs.pod:595
32701 msgid ""
32702 "Inspection currently only works for some common operating systems.  "
32703 "Contributors are welcome to send patches for other operating systems that we "
32704 "currently cannot detect."
32705 msgstr ""
32706
32707 #. type: textblock
32708 #: ../src/guestfs.pod:599
32709 msgid ""
32710 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
32711 "for more details.  The L</guestfs_inspect_os> function just ignores any "
32712 "encrypted devices."
32713 msgstr ""
32714
32715 #. type: textblock
32716 #: ../src/guestfs.pod:603
32717 msgid ""
32718 "A note on the implementation: The call L</guestfs_inspect_os> performs "
32719 "inspection and caches the results in the guest handle.  Subsequent calls to "
32720 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
32721 "read the disks.  If you change the content of the guest disks, you can redo "
32722 "inspection by calling L</guestfs_inspect_os> again.  (L</"
32723 "guestfs_inspect_list_applications> works a little differently from the other "
32724 "calls and does read the disks.  See documentation for that function for "
32725 "details)."
32726 msgstr ""
32727
32728 #. type: =head3
32729 #: ../src/guestfs.pod:612
32730 msgid "INSPECTING INSTALL DISKS"
32731 msgstr ""
32732
32733 #. type: textblock
32734 #: ../src/guestfs.pod:614
32735 msgid ""
32736 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
32737 "CDs and more."
32738 msgstr ""
32739
32740 #. type: textblock
32741 #: ../src/guestfs.pod:617
32742 msgid ""
32743 "Call L</guestfs_inspect_get_format> to return the format of the operating "
32744 "system, which currently can be C<installed> (a regular operating system) or "
32745 "C<installer> (some sort of install disk)."
32746 msgstr ""
32747
32748 #. type: textblock
32749 #: ../src/guestfs.pod:621
32750 msgid ""
32751 "Further information is available about the operating system that can be "
32752 "installed using the regular inspection APIs like L</"
32753 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
32754 msgstr ""
32755
32756 #. type: textblock
32757 #: ../src/guestfs.pod:626
32758 msgid ""
32759 "Some additional information specific to installer disks is also available "
32760 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
32761 "guestfs_inspect_is_multipart> calls."
32762 msgstr ""
32763
32764 #. type: =head2
32765 #: ../src/guestfs.pod:631
32766 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
32767 msgstr ""
32768
32769 #. type: textblock
32770 #: ../src/guestfs.pod:633
32771 msgid ""
32772 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
32773 "ntfs-3g.org/> driver."
32774 msgstr ""
32775
32776 #. type: =head3
32777 #: ../src/guestfs.pod:636
32778 msgid "DRIVE LETTERS AND PATHS"
32779 msgstr ""
32780
32781 #. type: textblock
32782 #: ../src/guestfs.pod:638
32783 msgid ""
32784 "DOS and Windows still use drive letters, and the filesystems are always "
32785 "treated as case insensitive by Windows itself, and therefore you might find "
32786 "a Windows configuration file referring to a path like C<c:\\windows"
32787 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
32788 "might be referred to as C</WINDOWS/System32>."
32789 msgstr ""
32790
32791 #. type: textblock
32792 #: ../src/guestfs.pod:644
32793 msgid ""
32794 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
32795 "L</guestfs_inspect_get_drive_mappings>)"
32796 msgstr ""
32797
32798 #. type: textblock
32799 #: ../src/guestfs.pod:647
32800 msgid ""
32801 "Dealing with separator characters (backslash vs forward slash) is outside "
32802 "the scope of libguestfs, but usually a simple character replacement will "
32803 "work."
32804 msgstr ""
32805
32806 #. type: textblock
32807 #: ../src/guestfs.pod:651
32808 msgid ""
32809 "To resolve the case insensitivity of paths, call L</"
32810 "guestfs_case_sensitive_path>."
32811 msgstr ""
32812
32813 #. type: =head3
32814 #: ../src/guestfs.pod:654
32815 msgid "ACCESSING THE WINDOWS REGISTRY"
32816 msgstr ""
32817
32818 #. type: textblock
32819 #: ../src/guestfs.pod:656
32820 msgid ""
32821 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
32822 "files, through the library C<hivex> which is part of the libguestfs project "
32823 "although ships as a separate tarball.  You have to locate and download the "
32824 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
32825 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
32826 "reg(1)> for more help on this issue."
32827 msgstr ""
32828
32829 #. type: =head3
32830 #: ../src/guestfs.pod:664
32831 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
32832 msgstr ""
32833
32834 #. type: textblock
32835 #: ../src/guestfs.pod:666
32836 msgid ""
32837 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
32838 "provide something which looks like a Linux symlink.  The way it tries to do "
32839 "the rewriting is described here:"
32840 msgstr ""
32841
32842 #. type: textblock
32843 #: ../src/guestfs.pod:670
32844 msgid ""
32845 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
32846 "symbolic-links/>"
32847 msgstr ""
32848
32849 #. type: textblock
32850 #: ../src/guestfs.pod:672
32851 msgid ""
32852 "The essential problem is that ntfs-3g simply does not have enough "
32853 "information to do a correct job.  NTFS links can contain drive letters and "
32854 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
32855 "It is almost certainly the case that libguestfs callers should ignore what "
32856 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
32857 msgstr ""
32858
32859 #. type: textblock
32860 #: ../src/guestfs.pod:679
32861 msgid ""
32862 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
32863 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
32864 "attribute, and read the raw reparse data from that (you can find the format "
32865 "documented in various places around the web)."
32866 msgstr ""
32867
32868 #. type: =head3
32869 #: ../src/guestfs.pod:684
32870 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
32871 msgstr ""
32872
32873 #. type: textblock
32874 #: ../src/guestfs.pod:686
32875 msgid ""
32876 "There are other useful extended attributes that can be read from ntfs-3g "
32877 "filesystems (using L</guestfs_getxattr>).  See:"
32878 msgstr ""
32879
32880 #. type: textblock
32881 #: ../src/guestfs.pod:689
32882 msgid ""
32883 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
32884 msgstr ""
32885
32886 #. type: =head2
32887 #: ../src/guestfs.pod:691
32888 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
32889 msgstr ""
32890
32891 #. type: textblock
32892 #: ../src/guestfs.pod:693
32893 msgid ""
32894 "Although we don't want to discourage you from using the C API, we will "
32895 "mention here that the same API is also available in other languages."
32896 msgstr ""
32897
32898 #. type: textblock
32899 #: ../src/guestfs.pod:696
32900 msgid ""
32901 "The API is broadly identical in all supported languages.  This means that "
32902 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
32903 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
32904 "OCaml.  In other words, a straightforward, predictable isomorphism between "
32905 "each language."
32906 msgstr ""
32907
32908 #. type: textblock
32909 #: ../src/guestfs.pod:702
32910 msgid ""
32911 "Error messages are automatically transformed into exceptions if the language "
32912 "supports it."
32913 msgstr ""
32914
32915 #. type: textblock
32916 #: ../src/guestfs.pod:705
32917 msgid ""
32918 "We don't try to \"object orientify\" parts of the API in OO languages, "
32919 "although contributors are welcome to write higher level APIs above what we "
32920 "provide in their favourite languages if they wish."
32921 msgstr ""
32922
32923 #. type: =item
32924 #: ../src/guestfs.pod:711
32925 msgid "B<C++>"
32926 msgstr ""
32927
32928 #. type: textblock
32929 #: ../src/guestfs.pod:713
32930 msgid ""
32931 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
32932 "identical to the C API.  C++ classes and exceptions are not used."
32933 msgstr ""
32934
32935 #. type: =item
32936 #: ../src/guestfs.pod:717
32937 msgid "B<C#>"
32938 msgstr ""
32939
32940 #. type: textblock
32941 #: ../src/guestfs.pod:719
32942 msgid ""
32943 "The C# bindings are highly experimental.  Please read the warnings at the "
32944 "top of C<csharp/Libguestfs.cs>."
32945 msgstr ""
32946
32947 #. type: =item
32948 #: ../src/guestfs.pod:722
32949 msgid "B<Erlang>"
32950 msgstr ""
32951
32952 #. type: textblock
32953 #: ../src/guestfs.pod:724
32954 msgid "See L<guestfs-erlang(3)>."
32955 msgstr ""
32956
32957 #. type: =item
32958 #: ../src/guestfs.pod:726
32959 msgid "B<Haskell>"
32960 msgstr ""
32961
32962 #. type: textblock
32963 #: ../src/guestfs.pod:728
32964 msgid ""
32965 "This is the only language binding that is working but incomplete.  Only "
32966 "calls which return simple integers have been bound in Haskell, and we are "
32967 "looking for help to complete this binding."
32968 msgstr ""
32969
32970 #. type: =item
32971 #: ../src/guestfs.pod:732
32972 msgid "B<Java>"
32973 msgstr ""
32974
32975 #. type: textblock
32976 #: ../src/guestfs.pod:734
32977 msgid ""
32978 "Full documentation is contained in the Javadoc which is distributed with "
32979 "libguestfs.  For examples, see L<guestfs-java(3)>."
32980 msgstr ""
32981
32982 #. type: =item
32983 #: ../src/guestfs.pod:737
32984 msgid "B<OCaml>"
32985 msgstr ""
32986
32987 #. type: textblock
32988 #: ../src/guestfs.pod:739
32989 msgid "See L<guestfs-ocaml(3)>."
32990 msgstr ""
32991
32992 #. type: =item
32993 #: ../src/guestfs.pod:741
32994 msgid "B<Perl>"
32995 msgstr ""
32996
32997 #. type: textblock
32998 #: ../src/guestfs.pod:743
32999 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
33000 msgstr ""
33001
33002 #. type: =item
33003 #: ../src/guestfs.pod:745
33004 msgid "B<PHP>"
33005 msgstr ""
33006
33007 #. type: textblock
33008 #: ../src/guestfs.pod:747
33009 msgid ""
33010 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
33011 "the php-libguestfs package for your distribution."
33012 msgstr ""
33013
33014 #. type: textblock
33015 #: ../src/guestfs.pod:750
33016 msgid "The PHP binding only works correctly on 64 bit machines."
33017 msgstr ""
33018
33019 #. type: =item
33020 #: ../src/guestfs.pod:752
33021 msgid "B<Python>"
33022 msgstr ""
33023
33024 #. type: textblock
33025 #: ../src/guestfs.pod:754
33026 msgid "See L<guestfs-python(3)>."
33027 msgstr ""
33028
33029 #. type: =item
33030 #: ../src/guestfs.pod:756
33031 msgid "B<Ruby>"
33032 msgstr ""
33033
33034 #. type: textblock
33035 #: ../src/guestfs.pod:758
33036 msgid "See L<guestfs-ruby(3)>."
33037 msgstr ""
33038
33039 #. type: =item
33040 #: ../src/guestfs.pod:760
33041 msgid "B<shell scripts>"
33042 msgstr ""
33043
33044 #. type: textblock
33045 #: ../src/guestfs.pod:762
33046 msgid "See L<guestfish(1)>."
33047 msgstr ""
33048
33049 #. type: =head2
33050 #: ../src/guestfs.pod:766
33051 msgid "LIBGUESTFS GOTCHAS"
33052 msgstr ""
33053
33054 #. type: textblock
33055 #: ../src/guestfs.pod:768
33056 msgid ""
33057 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
33058 "system [...] that works in the way it is documented but is counterintuitive "
33059 "and almost invites mistakes.\""
33060 msgstr ""
33061
33062 #. type: textblock
33063 #: ../src/guestfs.pod:772
33064 msgid ""
33065 "Since we developed libguestfs and the associated tools, there are several "
33066 "things we would have designed differently, but are now stuck with for "
33067 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
33068 "release, you can expect these to change.  Beware of them."
33069 msgstr ""
33070
33071 #. type: =item
33072 #: ../src/guestfs.pod:780
33073 msgid "Autosync / forgetting to sync."
33074 msgstr ""
33075
33076 #. type: textblock
33077 #: ../src/guestfs.pod:782
33078 msgid ""
33079 "I<Update:> Autosync is enabled by default for all API users starting from "
33080 "libguestfs 1.5.24.  This section only applies to older versions."
33081 msgstr ""
33082
33083 #. type: textblock
33084 #: ../src/guestfs.pod:785
33085 msgid ""
33086 "When modifying a filesystem from C or another language, you B<must> unmount "
33087 "all filesystems and call L</guestfs_sync> explicitly before you close the "
33088 "libguestfs handle.  You can also call:"
33089 msgstr ""
33090
33091 #. type: verbatim
33092 #: ../src/guestfs.pod:789
33093 #, no-wrap
33094 msgid ""
33095 " guestfs_set_autosync (g, 1);\n"
33096 "\n"
33097 msgstr ""
33098
33099 #. type: textblock
33100 #: ../src/guestfs.pod:791
33101 msgid ""
33102 "to have the unmount/sync done automatically for you when the handle 'g' is "
33103 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
33104 msgstr ""
33105
33106 #. type: textblock
33107 #: ../src/guestfs.pod:795
33108 msgid ""
33109 "If you forget to do this, then it is entirely possible that your changes "
33110 "won't be written out, or will be partially written, or (very rarely) that "
33111 "you'll get disk corruption."
33112 msgstr ""
33113
33114 #. type: textblock
33115 #: ../src/guestfs.pod:799
33116 msgid ""
33117 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
33118 "guestfish scripts that forget to sync will work just fine, which can make "
33119 "this very puzzling if you are trying to debug a problem."
33120 msgstr ""
33121
33122 #. type: =item
33123 #: ../src/guestfs.pod:803
33124 msgid "Mount option C<-o sync> should not be the default."
33125 msgstr ""
33126
33127 #. type: textblock
33128 #: ../src/guestfs.pod:805
33129 msgid ""
33130 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
33131 "libguestfs 1.13.16.  This section only applies to older versions."
33132 msgstr ""
33133
33134 #. type: textblock
33135 #: ../src/guestfs.pod:808
33136 msgid ""
33137 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
33138 "However C<-o sync> does not add any reliability benefit, but does have a "
33139 "very large performance impact."
33140 msgstr ""
33141
33142 #. type: textblock
33143 #: ../src/guestfs.pod:812
33144 msgid ""
33145 "The work around is to use L</guestfs_mount_options> and set the mount "
33146 "options that you actually want to use."
33147 msgstr ""
33148
33149 #. type: =item
33150 #: ../src/guestfs.pod:815
33151 msgid "Read-only should be the default."
33152 msgstr ""
33153
33154 #. type: textblock
33155 #: ../src/guestfs.pod:817
33156 msgid ""
33157 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
33158 "specify I<--rw> if you want to make changes to the image."
33159 msgstr ""
33160
33161 #. type: textblock
33162 #: ../src/guestfs.pod:820
33163 msgid "This would reduce the potential to corrupt live VM images."
33164 msgstr ""
33165
33166 #. type: textblock
33167 #: ../src/guestfs.pod:822
33168 msgid ""
33169 "Note that many filesystems change the disk when you just mount and unmount, "
33170 "even if you didn't perform any writes.  You need to use L</"
33171 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
33172 msgstr ""
33173
33174 #. type: =item
33175 #: ../src/guestfs.pod:826
33176 msgid "guestfish command line is hard to use."
33177 msgstr ""
33178
33179 #. type: textblock
33180 #: ../src/guestfs.pod:828
33181 msgid ""
33182 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
33183 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
33184 "exist, so it fails.  In earlier versions of guestfish the error message was "
33185 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
33186 "we should have used C<guestfish -c command> to run commands."
33187 msgstr ""
33188
33189 #. type: =item
33190 #: ../src/guestfs.pod:835
33191 msgid "guestfish megabyte modifiers don't work right on all commands"
33192 msgstr ""
33193
33194 #. type: textblock
33195 #: ../src/guestfs.pod:837
33196 msgid ""
33197 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
33198 "other modifiers).  What guestfish actually does is to multiply the number "
33199 "part by the modifier part and pass the result to the C API.  However this "
33200 "doesn't work for a few APIs which aren't expecting bytes, but are already "
33201 "expecting some other unit (eg. megabytes)."
33202 msgstr ""
33203
33204 #. type: textblock
33205 #: ../src/guestfs.pod:844
33206 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
33207 msgstr ""
33208
33209 #. type: verbatim
33210 #: ../src/guestfs.pod:846
33211 #, no-wrap
33212 msgid ""
33213 " lvcreate LV VG 100M\n"
33214 "\n"
33215 msgstr ""
33216
33217 #. type: textblock
33218 #: ../src/guestfs.pod:848
33219 msgid ""
33220 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
33221 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
33222 "megabytes * megabytes) logical volume.  The error message you get from this "
33223 "is also a little obscure."
33224 msgstr ""
33225
33226 #. type: textblock
33227 #: ../src/guestfs.pod:853
33228 msgid ""
33229 "This could be fixed in the generator by specially marking parameters and "
33230 "return values which take bytes or other units."
33231 msgstr ""
33232
33233 #. type: =item
33234 #: ../src/guestfs.pod:856
33235 msgid "Ambiguity between devices and paths"
33236 msgstr ""
33237
33238 #. type: textblock
33239 #: ../src/guestfs.pod:858
33240 msgid ""
33241 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
33242 "sdb2>) and a similar pathname.  A file might just happen to be called "
33243 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
33244 msgstr ""
33245
33246 #. type: textblock
33247 #: ../src/guestfs.pod:863
33248 msgid ""
33249 "In the current API we usually resolve this ambiguity by having two separate "
33250 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
33251 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
33252 "detecting if the path supplied begins with C</dev/>."
33253 msgstr ""
33254
33255 #. type: textblock
33256 #: ../src/guestfs.pod:869
33257 msgid ""
33258 "To avoid both the ambiguity and the need to duplicate some calls, we could "
33259 "make paths/devices into structured names.  One way to do this would be to "
33260 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
33261 "aspect of grub.  Another way would be to use a structured type, equivalent "
33262 "to this OCaml type:"
33263 msgstr ""
33264
33265 #. type: verbatim
33266 #: ../src/guestfs.pod:875
33267 #, no-wrap
33268 msgid ""
33269 " type path = Path of string | Device of int | Partition of int * int\n"
33270 "\n"
33271 msgstr ""
33272
33273 #. type: textblock
33274 #: ../src/guestfs.pod:877
33275 msgid "which would allow you to pass arguments like:"
33276 msgstr ""
33277
33278 #. type: verbatim
33279 #: ../src/guestfs.pod:879
33280 #, no-wrap
33281 msgid ""
33282 " Path \"/foo/bar\"\n"
33283 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
33284 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
33285 " Path \"/dev/sdb2\"    (* not a device *)\n"
33286 "\n"
33287 msgstr ""
33288
33289 #. type: textblock
33290 #: ../src/guestfs.pod:884
33291 msgid ""
33292 "As you can see there are still problems to resolve even with this "
33293 "representation.  Also consider how it might work in guestfish."
33294 msgstr ""
33295
33296 #. type: =head2
33297 #: ../src/guestfs.pod:889
33298 msgid "KEYS AND PASSPHRASES"
33299 msgstr ""
33300
33301 #. type: textblock
33302 #: ../src/guestfs.pod:891
33303 msgid ""
33304 "Certain libguestfs calls take a parameter that contains sensitive key "
33305 "material, passed in as a C string."
33306 msgstr ""
33307
33308 #. type: textblock
33309 #: ../src/guestfs.pod:894
33310 msgid ""
33311 "In the future we would hope to change the libguestfs implementation so that "
33312 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
33313 "swap.  However this is I<not> done at the moment, because of the complexity "
33314 "of such an implementation."
33315 msgstr ""
33316
33317 #. type: textblock
33318 #: ../src/guestfs.pod:899
33319 msgid ""
33320 "Therefore you should be aware that any key parameter you pass to libguestfs "
33321 "might end up being written out to the swap partition.  If this is a concern, "
33322 "scrub the swap partition or don't use libguestfs on encrypted devices."
33323 msgstr ""
33324
33325 #. type: =head2
33326 #: ../src/guestfs.pod:904
33327 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
33328 msgstr ""
33329
33330 #. type: textblock
33331 #: ../src/guestfs.pod:906
33332 msgid ""
33333 "All high-level libguestfs actions are synchronous.  If you want to use "
33334 "libguestfs asynchronously then you must create a thread."
33335 msgstr ""
33336
33337 #. type: textblock
33338 #: ../src/guestfs.pod:909
33339 msgid ""
33340 "Only use the handle from a single thread.  Either use the handle exclusively "
33341 "from one thread, or provide your own mutex so that two threads cannot issue "
33342 "calls on the same handle at the same time."
33343 msgstr ""
33344
33345 #. type: textblock
33346 #: ../src/guestfs.pod:913
33347 msgid ""
33348 "See the graphical program guestfs-browser for one possible architecture for "
33349 "multithreaded programs using libvirt and libguestfs."
33350 msgstr ""
33351
33352 #. type: =head2
33353 #: ../src/guestfs.pod:916
33354 msgid "PATH"
33355 msgstr ""
33356
33357 #. type: textblock
33358 #: ../src/guestfs.pod:918
33359 msgid ""
33360 "Libguestfs needs a supermin appliance, which it finds by looking along an "
33361 "internal path."
33362 msgstr ""
33363
33364 #. type: textblock
33365 #: ../src/guestfs.pod:921
33366 msgid ""
33367 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
33368 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
33369 msgstr ""
33370
33371 #. type: textblock
33372 #: ../src/guestfs.pod:924
33373 msgid ""
33374 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
33375 "to change the directories that libguestfs will search in.  The value is a "
33376 "colon-separated list of paths.  The current directory is I<not> searched "
33377 "unless the path contains an empty element or C<.>.  For example "
33378 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
33379 "then C</usr/lib/guestfs>."
33380 msgstr ""
33381
33382 #. type: =head2
33383 #: ../src/guestfs.pod:931
33384 msgid "QEMU WRAPPERS"
33385 msgstr ""
33386
33387 #. type: textblock
33388 #: ../src/guestfs.pod:933
33389 msgid ""
33390 "If you want to compile your own qemu, run qemu from a non-standard location, "
33391 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
33392 "around qemu."
33393 msgstr ""
33394
33395 #. type: textblock
33396 #: ../src/guestfs.pod:937
33397 msgid ""
33398 "There is one important rule to remember: you I<must C<exec qemu>> as the "
33399 "last command in the shell script (so that qemu replaces the shell and "
33400 "becomes the direct child of the libguestfs-using program).  If you don't do "
33401 "this, then the qemu process won't be cleaned up correctly."
33402 msgstr ""
33403
33404 #. type: textblock
33405 #: ../src/guestfs.pod:942
33406 msgid ""
33407 "Here is an example of a wrapper, where I have built my own copy of qemu from "
33408 "source:"
33409 msgstr ""
33410
33411 #. type: verbatim
33412 #: ../src/guestfs.pod:945
33413 #, no-wrap
33414 msgid ""
33415 " #!/bin/sh -\n"
33416 " qemudir=/home/rjones/d/qemu\n"
33417 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
33418 "\n"
33419 msgstr ""
33420
33421 #. type: textblock
33422 #: ../src/guestfs.pod:949
33423 msgid ""
33424 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
33425 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
33426 "example:"
33427 msgstr ""
33428
33429 #. type: verbatim
33430 #: ../src/guestfs.pod:953
33431 #, no-wrap
33432 msgid ""
33433 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
33434 "\n"
33435 msgstr ""
33436
33437 #. type: textblock
33438 #: ../src/guestfs.pod:955
33439 msgid ""
33440 "Note that libguestfs also calls qemu with the -help and -version options in "
33441 "order to determine features."
33442 msgstr ""
33443
33444 #. type: textblock
33445 #: ../src/guestfs.pod:958
33446 msgid ""
33447 "Wrappers can also be used to edit the options passed to qemu.  In the "
33448 "following example, the C<-machine ...> option (C<-machine> and the following "
33449 "argument) are removed from the command line and replaced with C<-machine pc,"
33450 "accel=tcg>.  The while loop iterates over the options until it finds the "
33451 "right one to remove, putting the remaining options into the C<args> array."
33452 msgstr ""
33453
33454 #. type: verbatim
33455 #: ../src/guestfs.pod:965
33456 #, no-wrap
33457 msgid ""
33458 " #!/bin/bash -\n"
33459 " \n"
33460 msgstr ""
33461
33462 #. type: verbatim
33463 #: ../src/guestfs.pod:967
33464 #, no-wrap
33465 msgid ""
33466 " i=0\n"
33467 " while [ $# -gt 0 ]; do\n"
33468 "     case \"$1\" in\n"
33469 "     -machine)\n"
33470 "         shift 2;;\n"
33471 "     *)\n"
33472 "         args[i]=\"$1\"\n"
33473 "         (( i++ ))\n"
33474 "         shift ;;\n"
33475 "     esac\n"
33476 " done\n"
33477 " \n"
33478 msgstr ""
33479
33480 #. type: verbatim
33481 #: ../src/guestfs.pod:979
33482 #, no-wrap
33483 msgid ""
33484 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
33485 "\n"
33486 msgstr ""
33487
33488 #. type: =head2
33489 #: ../src/guestfs.pod:981
33490 msgid "ATTACHING TO RUNNING DAEMONS"
33491 msgstr ""
33492
33493 #. type: textblock
33494 #: ../src/guestfs.pod:983
33495 msgid ""
33496 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
33497 "babies.  Use with caution."
33498 msgstr ""
33499
33500 #. type: textblock
33501 #: ../src/guestfs.pod:986
33502 msgid ""
33503 "I<Note (2):> This section explains how to attach to a running daemon from a "
33504 "low level perspective.  For most users, simply using virt tools such as "
33505 "L<guestfish(1)> with the I<--live> option will \"just work\"."
33506 msgstr ""
33507
33508 #. type: =head3
33509 #: ../src/guestfs.pod:990
33510 msgid "Using guestfs_set_attach_method"
33511 msgstr ""
33512
33513 #. type: textblock
33514 #: ../src/guestfs.pod:992
33515 msgid ""
33516 "By calling L</guestfs_set_attach_method> you can change how the library "
33517 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
33518 "ARCHITECTURE> for some background)."
33519 msgstr ""
33520
33521 #. type: textblock
33522 #: ../src/guestfs.pod:996
33523 msgid ""
33524 "The normal attach method is C<appliance>, where a small appliance is created "
33525 "containing the daemon, and then the library connects to this."
33526 msgstr ""
33527
33528 #. type: textblock
33529 #: ../src/guestfs.pod:999
33530 msgid ""
33531 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
33532 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
33533 "daemon over the Unix domain socket."
33534 msgstr ""
33535
33536 #. type: textblock
33537 #: ../src/guestfs.pod:1003
33538 msgid ""
33539 "The normal use for this is to connect to a running virtual machine that "
33540 "contains a C<guestfsd> daemon, and send commands so you can read and write "
33541 "files inside the live virtual machine."
33542 msgstr ""
33543
33544 #. type: =head3
33545 #: ../src/guestfs.pod:1007
33546 msgid "Using guestfs_add_domain with live flag"
33547 msgstr ""
33548
33549 #. type: textblock
33550 #: ../src/guestfs.pod:1009
33551 msgid ""
33552 "L</guestfs_add_domain> provides some help for getting the correct attach "
33553 "method.  If you pass the C<live> option to this function, then (if the "
33554 "virtual machine is running) it will examine the libvirt XML looking for a "
33555 "virtio-serial channel to connect to:"
33556 msgstr ""
33557
33558 #. type: verbatim
33559 #: ../src/guestfs.pod:1015
33560 #, no-wrap
33561 msgid ""
33562 " <domain>\n"
33563 "   ...\n"
33564 "   <devices>\n"
33565 "     ...\n"
33566 "     <channel type='unix'>\n"
33567 "       <source mode='bind' path='/path/to/socket'/>\n"
33568 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
33569 "     </channel>\n"
33570 "     ...\n"
33571 "   </devices>\n"
33572 " </domain>\n"
33573 "\n"
33574 msgstr ""
33575
33576 #. type: textblock
33577 #: ../src/guestfs.pod:1027
33578 msgid ""
33579 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
33580 "method to C<unix:/path/to/socket>."
33581 msgstr ""
33582
33583 #. type: textblock
33584 #: ../src/guestfs.pod:1030
33585 msgid ""
33586 "Some of the libguestfs tools (including guestfish) support a I<--live> "
33587 "option which is passed through to L</guestfs_add_domain> thus allowing you "
33588 "to attach to and modify live virtual machines."
33589 msgstr ""
33590
33591 #. type: textblock
33592 #: ../src/guestfs.pod:1034
33593 msgid ""
33594 "The virtual machine needs to have been set up beforehand so that it has the "
33595 "virtio-serial channel and so that guestfsd is running inside it."
33596 msgstr ""
33597
33598 #. type: =head2
33599 #: ../src/guestfs.pod:1038
33600 msgid "ABI GUARANTEE"
33601 msgstr ""
33602
33603 #. type: textblock
33604 #: ../src/guestfs.pod:1040
33605 msgid ""
33606 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
33607 "actions as outlined in this section.  Although we will deprecate some "
33608 "actions, for example if they get replaced by newer calls, we will keep the "
33609 "old actions forever.  This allows you the developer to program in confidence "
33610 "against the libguestfs API."
33611 msgstr ""
33612
33613 #. type: =head2
33614 #: ../src/guestfs.pod:1046
33615 msgid "BLOCK DEVICE NAMING"
33616 msgstr ""
33617
33618 #. type: textblock
33619 #: ../src/guestfs.pod:1048
33620 msgid ""
33621 "In the kernel there is now quite a profusion of schemata for naming block "
33622 "devices (in this context, by I<block device> I mean a physical or virtual "
33623 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
33624 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
33625 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
33626 "for the old IDE driver (particularly for SATA devices) those devices also "
33627 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
33628 "paravirtualized drivers.  This has created several different naming systems, "
33629 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
33630 msgstr ""
33631
33632 #. type: textblock
33633 #: ../src/guestfs.pod:1060
33634 msgid ""
33635 "As discussed above, libguestfs uses a qemu appliance running an embedded "
33636 "Linux kernel to access block devices.  We can run a variety of appliances "
33637 "based on a variety of Linux kernels."
33638 msgstr ""
33639
33640 #. type: textblock
33641 #: ../src/guestfs.pod:1064
33642 msgid ""
33643 "This causes a problem for libguestfs because many API calls use device or "
33644 "partition names.  Working scripts and the recipe (example) scripts that we "
33645 "make available over the internet could fail if the naming scheme changes."
33646 msgstr ""
33647
33648 #. type: textblock
33649 #: ../src/guestfs.pod:1069
33650 msgid ""
33651 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
33652 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
33653 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
33654 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
33655 msgstr ""
33656
33657 #. type: textblock
33658 #: ../src/guestfs.pod:1075
33659 msgid ""
33660 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
33661 "L</guestfs_list_partitions> and similar calls return the true names of the "
33662 "devices and partitions as known to the appliance."
33663 msgstr ""
33664
33665 #. type: =head3
33666 #: ../src/guestfs.pod:1080
33667 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
33668 msgstr ""
33669
33670 #. type: textblock
33671 #: ../src/guestfs.pod:1082
33672 msgid ""
33673 "Usually this translation is transparent.  However in some (very rare)  cases "
33674 "you may need to know the exact algorithm.  Such cases include where you use "
33675 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
33676 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
33677 msgstr ""
33678
33679 #. type: textblock
33680 #: ../src/guestfs.pod:1088
33681 msgid ""
33682 "The algorithm is applied only to I<parameters> which are known to be either "
33683 "device or partition names.  Return values from functions such as L</"
33684 "guestfs_list_devices> are never changed."
33685 msgstr ""
33686
33687 #. type: textblock
33688 #: ../src/guestfs.pod:1096
33689 msgid "Is the string a parameter which is a device or partition name?"
33690 msgstr ""
33691
33692 #. type: textblock
33693 #: ../src/guestfs.pod:1100
33694 msgid "Does the string begin with C</dev/sd>?"
33695 msgstr ""
33696
33697 #. type: textblock
33698 #: ../src/guestfs.pod:1104
33699 msgid ""
33700 "Does the named device exist? If so, we use that device.  However if I<not> "
33701 "then we continue with this algorithm."
33702 msgstr ""
33703
33704 #. type: textblock
33705 #: ../src/guestfs.pod:1109
33706 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
33707 msgstr ""
33708
33709 #. type: textblock
33710 #: ../src/guestfs.pod:1111
33711 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
33712 msgstr ""
33713
33714 #. type: textblock
33715 #: ../src/guestfs.pod:1113
33716 msgid "If that named device exists, use it.  If not, continue."
33717 msgstr ""
33718
33719 #. type: textblock
33720 #: ../src/guestfs.pod:1117
33721 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
33722 msgstr ""
33723
33724 #. type: textblock
33725 #: ../src/guestfs.pod:1119
33726 msgid "If that named device exists, use it.  If not, return an error."
33727 msgstr ""
33728
33729 #. type: =head3
33730 #: ../src/guestfs.pod:1123
33731 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
33732 msgstr ""
33733
33734 #. type: textblock
33735 #: ../src/guestfs.pod:1125
33736 msgid ""
33737 "Although the standard naming scheme and automatic translation is useful for "
33738 "simple programs and guestfish scripts, for larger programs it is best not to "
33739 "rely on this mechanism."
33740 msgstr ""
33741
33742 #. type: textblock
33743 #: ../src/guestfs.pod:1129
33744 msgid ""
33745 "Where possible for maximum future portability programs using libguestfs "
33746 "should use these future-proof techniques:"
33747 msgstr ""
33748
33749 #. type: textblock
33750 #: ../src/guestfs.pod:1136
33751 msgid ""
33752 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
33753 "device names, and then use those names directly."
33754 msgstr ""
33755
33756 #. type: textblock
33757 #: ../src/guestfs.pod:1139
33758 msgid ""
33759 "Since those device names exist by definition, they will never be translated."
33760 msgstr ""
33761
33762 #. type: textblock
33763 #: ../src/guestfs.pod:1144
33764 msgid ""
33765 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
33766 "filesystem labels."
33767 msgstr ""
33768
33769 #. type: =head1
33770 #: ../src/guestfs.pod:1149
33771 msgid "SECURITY"
33772 msgstr ""
33773
33774 #. type: textblock
33775 #: ../src/guestfs.pod:1151
33776 msgid ""
33777 "This section discusses security implications of using libguestfs, "
33778 "particularly with untrusted or malicious guests or disk images."
33779 msgstr ""
33780
33781 #. type: =head2
33782 #: ../src/guestfs.pod:1154
33783 msgid "GENERAL SECURITY CONSIDERATIONS"
33784 msgstr ""
33785
33786 #. type: textblock
33787 #: ../src/guestfs.pod:1156
33788 msgid ""
33789 "Be careful with any files or data that you download from a guest (by "
33790 "\"download\" we mean not just the L</guestfs_download> command but any "
33791 "command that reads files, filenames, directories or anything else from a "
33792 "disk image).  An attacker could manipulate the data to fool your program "
33793 "into doing the wrong thing.  Consider cases such as:"
33794 msgstr ""
33795
33796 #. type: textblock
33797 #: ../src/guestfs.pod:1166
33798 msgid "the data (file etc) not being present"
33799 msgstr ""
33800
33801 #. type: textblock
33802 #: ../src/guestfs.pod:1170
33803 msgid "being present but empty"
33804 msgstr ""
33805
33806 #. type: textblock
33807 #: ../src/guestfs.pod:1174
33808 msgid "being much larger than normal"
33809 msgstr ""
33810
33811 #. type: textblock
33812 #: ../src/guestfs.pod:1178
33813 msgid "containing arbitrary 8 bit data"
33814 msgstr ""
33815
33816 #. type: textblock
33817 #: ../src/guestfs.pod:1182
33818 msgid "being in an unexpected character encoding"
33819 msgstr ""
33820
33821 #. type: textblock
33822 #: ../src/guestfs.pod:1186
33823 msgid "containing homoglyphs."
33824 msgstr ""
33825
33826 #. type: =head2
33827 #: ../src/guestfs.pod:1190
33828 msgid "SECURITY OF MOUNTING FILESYSTEMS"
33829 msgstr ""
33830
33831 #. type: textblock
33832 #: ../src/guestfs.pod:1192
33833 msgid ""
33834 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
33835 "(VFS) module can sometimes be escalated into exploits by deliberately "
33836 "creating a malicious, malformed filesystem.  These exploits are very severe "
33837 "for two reasons.  Firstly there are very many filesystem drivers in the "
33838 "kernel, and many of them are infrequently used and not much developer "
33839 "attention has been paid to the code.  Linux userspace helps potential "
33840 "crackers by detecting the filesystem type and automatically choosing the "
33841 "right VFS driver, even if that filesystem type is obscure or unexpected for "
33842 "the administrator.  Secondly, a kernel-level exploit is like a local root "
33843 "exploit (worse in some ways), giving immediate and total access to the "
33844 "system right down to the hardware level."
33845 msgstr ""
33846
33847 #. type: textblock
33848 #: ../src/guestfs.pod:1205
33849 msgid ""
33850 "That explains why you should never mount a filesystem from an untrusted "
33851 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
33852 "inside a qemu virtual machine, usually running as a non-root user.  The "
33853 "attacker would need to write a filesystem which first exploited the kernel, "
33854 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
33855 "the libguestfs protocol, and finally to be as serious as the host kernel "
33856 "exploit it would need to escalate its privileges to root.  This multi-step "
33857 "escalation, performed by a static piece of data, is thought to be extremely "
33858 "hard to do, although we never say 'never' about security issues."
33859 msgstr ""
33860
33861 #. type: textblock
33862 #: ../src/guestfs.pod:1216
33863 msgid ""
33864 "In any case callers can reduce the attack surface by forcing the filesystem "
33865 "type when mounting (use L</guestfs_mount_vfs>)."
33866 msgstr ""
33867
33868 #. type: =head2
33869 #: ../src/guestfs.pod:1219
33870 msgid "PROTOCOL SECURITY"
33871 msgstr ""
33872
33873 #. type: textblock
33874 #: ../src/guestfs.pod:1221
33875 msgid ""
33876 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
33877 "defined upper message size.  However a program that uses libguestfs must "
33878 "also take care - for example you can write a program that downloads a binary "
33879 "from a disk image and executes it locally, and no amount of protocol "
33880 "security will save you from the consequences."
33881 msgstr ""
33882
33883 #. type: =head2
33884 #: ../src/guestfs.pod:1227
33885 msgid "INSPECTION SECURITY"
33886 msgstr ""
33887
33888 #. type: textblock
33889 #: ../src/guestfs.pod:1229
33890 msgid ""
33891 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
33892 "directly from the guest, and these could contain any 8 bit data.  Callers "
33893 "should be careful to escape these before printing them to a structured file "
33894 "(for example, use HTML escaping if creating a web page)."
33895 msgstr ""
33896
33897 #. type: textblock
33898 #: ../src/guestfs.pod:1235
33899 msgid ""
33900 "Guest configuration may be altered in unusual ways by the administrator of "
33901 "the virtual machine, and may not reflect reality (particularly for untrusted "
33902 "or actively malicious guests).  For example we parse the hostname from "
33903 "configuration files like C</etc/sysconfig/network> that we find in the "
33904 "guest, but the guest administrator can easily manipulate these files to "
33905 "provide the wrong hostname."
33906 msgstr ""
33907
33908 #. type: textblock
33909 #: ../src/guestfs.pod:1243
33910 msgid ""
33911 "The inspection API parses guest configuration using two external libraries: "
33912 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
33913 "designed to be robust in the face of malicious data, although denial of "
33914 "service attacks are still possible, for example with oversized configuration "
33915 "files."
33916 msgstr ""
33917
33918 #. type: =head2
33919 #: ../src/guestfs.pod:1249
33920 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
33921 msgstr ""
33922
33923 #. type: textblock
33924 #: ../src/guestfs.pod:1251
33925 msgid ""
33926 "Be very cautious about running commands from the guest.  By running a "
33927 "command in the guest, you are giving CPU time to a binary that you do not "
33928 "control, under the same user account as the library, albeit wrapped in qemu "
33929 "virtualization.  More information and alternatives can be found in the "
33930 "section L</RUNNING COMMANDS>."
33931 msgstr ""
33932
33933 #. type: =head2
33934 #: ../src/guestfs.pod:1257
33935 msgid "CVE-2010-3851"
33936 msgstr ""
33937
33938 #. type: textblock
33939 #: ../src/guestfs.pod:1259
33940 msgid "https://bugzilla.redhat.com/642934"
33941 msgstr ""
33942
33943 #. type: textblock
33944 #: ../src/guestfs.pod:1261
33945 msgid ""
33946 "This security bug concerns the automatic disk format detection that qemu "
33947 "does on disk images."
33948 msgstr ""
33949
33950 #. type: textblock
33951 #: ../src/guestfs.pod:1264
33952 msgid ""
33953 "A raw disk image is just the raw bytes, there is no header.  Other disk "
33954 "images like qcow2 contain a special header.  Qemu deals with this by looking "
33955 "for one of the known headers, and if none is found then assuming the disk "
33956 "image must be raw."
33957 msgstr ""
33958
33959 #. type: textblock
33960 #: ../src/guestfs.pod:1269
33961 msgid ""
33962 "This allows a guest which has been given a raw disk image to write some "
33963 "other header.  At next boot (or when the disk image is accessed by "
33964 "libguestfs) qemu would do autodetection and think the disk image format was, "
33965 "say, qcow2 based on the header written by the guest."
33966 msgstr ""
33967
33968 #. type: textblock
33969 #: ../src/guestfs.pod:1274
33970 msgid ""
33971 "This in itself would not be a problem, but qcow2 offers many features, one "
33972 "of which is to allow a disk image to refer to another image (called the "
33973 "\"backing disk\").  It does this by placing the path to the backing disk "
33974 "into the qcow2 header.  This path is not validated and could point to any "
33975 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
33976 "\"holes\" in the qcow2 disk image, which of course is completely under the "
33977 "control of the attacker."
33978 msgstr ""
33979
33980 #. type: textblock
33981 #: ../src/guestfs.pod:1282
33982 msgid ""
33983 "In libguestfs this is rather hard to exploit except under two circumstances:"
33984 msgstr ""
33985
33986 #. type: textblock
33987 #: ../src/guestfs.pod:1289
33988 msgid "You have enabled the network or have opened the disk in write mode."
33989 msgstr ""
33990
33991 #. type: textblock
33992 #: ../src/guestfs.pod:1293
33993 msgid ""
33994 "You are also running untrusted code from the guest (see L</RUNNING "
33995 "COMMANDS>)."
33996 msgstr ""
33997
33998 #. type: textblock
33999 #: ../src/guestfs.pod:1298
34000 msgid ""
34001 "The way to avoid this is to specify the expected disk format when adding "
34002 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
34003 "should always do this if the disk is raw format, and it's a good idea for "
34004 "other cases too."
34005 msgstr ""
34006
34007 #. type: textblock
34008 #: ../src/guestfs.pod:1303
34009 msgid ""
34010 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
34011 "format is fetched from libvirt and passed through."
34012 msgstr ""
34013
34014 #. type: textblock
34015 #: ../src/guestfs.pod:1306
34016 msgid ""
34017 "For libguestfs tools, use the I<--format> command line parameter as "
34018 "appropriate."
34019 msgstr ""
34020
34021 #. type: =head1
34022 #: ../src/guestfs.pod:1309
34023 msgid "CONNECTION MANAGEMENT"
34024 msgstr ""
34025
34026 #. type: =head2
34027 #: ../src/guestfs.pod:1311
34028 msgid "guestfs_h *"
34029 msgstr ""
34030
34031 #. type: textblock
34032 #: ../src/guestfs.pod:1313
34033 msgid ""
34034 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
34035 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
34036 "handle and release all resources used."
34037 msgstr ""
34038
34039 #. type: textblock
34040 #: ../src/guestfs.pod:1317
34041 msgid ""
34042 "For information on using multiple handles and threads, see the section L</"
34043 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
34044 msgstr ""
34045
34046 #. type: =head2
34047 #: ../src/guestfs.pod:1320
34048 msgid "guestfs_create"
34049 msgstr ""
34050
34051 #. type: verbatim
34052 #: ../src/guestfs.pod:1322
34053 #, no-wrap
34054 msgid ""
34055 " guestfs_h *guestfs_create (void);\n"
34056 "\n"
34057 msgstr ""
34058
34059 #. type: textblock
34060 #: ../src/guestfs.pod:1324
34061 msgid "Create a connection handle."
34062 msgstr ""
34063
34064 #. type: textblock
34065 #: ../src/guestfs.pod:1326
34066 msgid ""
34067 "On success this returns a non-NULL pointer to a handle.  On error it returns "
34068 "NULL."
34069 msgstr ""
34070
34071 #. type: textblock
34072 #: ../src/guestfs.pod:1329
34073 msgid ""
34074 "You have to \"configure\" the handle after creating it.  This includes "
34075 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
34076 "handle at least once."
34077 msgstr ""
34078
34079 #. type: textblock
34080 #: ../src/guestfs.pod:1333
34081 msgid "After configuring the handle, you have to call L</guestfs_launch>."
34082 msgstr ""
34083
34084 #. type: textblock
34085 #: ../src/guestfs.pod:1335
34086 msgid ""
34087 "You may also want to configure error handling for the handle.  See the L</"
34088 "ERROR HANDLING> section below."
34089 msgstr ""
34090
34091 #. type: =head2
34092 #: ../src/guestfs.pod:1338
34093 msgid "guestfs_close"
34094 msgstr ""
34095
34096 #. type: verbatim
34097 #: ../src/guestfs.pod:1340
34098 #, no-wrap
34099 msgid ""
34100 " void guestfs_close (guestfs_h *g);\n"
34101 "\n"
34102 msgstr ""
34103
34104 #. type: textblock
34105 #: ../src/guestfs.pod:1342
34106 msgid "This closes the connection handle and frees up all resources used."
34107 msgstr ""
34108
34109 #. type: textblock
34110 #: ../src/guestfs.pod:1344
34111 msgid ""
34112 "If autosync was set on the handle and the handle was launched, then this "
34113 "implicitly calls various functions to unmount filesystems and sync the "
34114 "disk.  See L</guestfs_set_autosync> for more details."
34115 msgstr ""
34116
34117 #. type: textblock
34118 #: ../src/guestfs.pod:1348
34119 msgid "If a close callback was set on the handle, then it is called."
34120 msgstr ""
34121
34122 #. type: =head1
34123 #: ../src/guestfs.pod:1350
34124 msgid "ERROR HANDLING"
34125 msgstr ""
34126
34127 #. type: textblock
34128 #: ../src/guestfs.pod:1352
34129 msgid ""
34130 "API functions can return errors.  For example, almost all functions that "
34131 "return C<int> will return C<-1> to indicate an error."
34132 msgstr ""
34133
34134 #. type: textblock
34135 #: ../src/guestfs.pod:1355
34136 msgid ""
34137 "Additional information is available for errors: an error message string and "
34138 "optionally an error number (errno) if the thing that failed was a system "
34139 "call."
34140 msgstr ""
34141
34142 #. type: textblock
34143 #: ../src/guestfs.pod:1359
34144 msgid ""
34145 "You can get at the additional information about the last error on the handle "
34146 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
34147 "up an error handler with L</guestfs_set_error_handler>."
34148 msgstr ""
34149
34150 #. type: textblock
34151 #: ../src/guestfs.pod:1364
34152 msgid ""
34153 "When the handle is created, a default error handler is installed which "
34154 "prints the error message string to C<stderr>.  For small short-running "
34155 "command line programs it is sufficient to do:"
34156 msgstr ""
34157
34158 #. type: verbatim
34159 #: ../src/guestfs.pod:1368
34160 #, no-wrap
34161 msgid ""
34162 " if (guestfs_launch (g) == -1)\n"
34163 "   exit (EXIT_FAILURE);\n"
34164 "\n"
34165 msgstr ""
34166
34167 #. type: textblock
34168 #: ../src/guestfs.pod:1371
34169 msgid ""
34170 "since the default error handler will ensure that an error message has been "
34171 "printed to C<stderr> before the program exits."
34172 msgstr ""
34173
34174 #. type: textblock
34175 #: ../src/guestfs.pod:1374
34176 msgid ""
34177 "For other programs the caller will almost certainly want to install an "
34178 "alternate error handler or do error handling in-line like this:"
34179 msgstr ""
34180
34181 #. type: verbatim
34182 #: ../src/guestfs.pod:1377
34183 #, no-wrap
34184 msgid ""
34185 " /* This disables the default behaviour of printing errors\n"
34186 "    on stderr. */\n"
34187 " guestfs_set_error_handler (g, NULL, NULL);\n"
34188 " \n"
34189 msgstr ""
34190
34191 #. type: verbatim
34192 #: ../src/guestfs.pod:1381
34193 #, no-wrap
34194 msgid ""
34195 " if (guestfs_launch (g) == -1) {\n"
34196 "   /* Examine the error message and print it etc. */\n"
34197 "   char *msg = guestfs_last_error (g);\n"
34198 "   int errnum = guestfs_last_errno (g);\n"
34199 "   fprintf (stderr, \"%s\", msg);\n"
34200 "   if (errnum != 0)\n"
34201 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
34202 "   fprintf (stderr, \"\\n\");\n"
34203 "   /* ... */\n"
34204 " }\n"
34205 "\n"
34206 msgstr ""
34207
34208 #. type: textblock
34209 #: ../src/guestfs.pod:1392
34210 msgid ""
34211 "Out of memory errors are handled differently.  The default action is to call "
34212 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
34213 "guestfs_set_out_of_memory_handler>."
34214 msgstr ""
34215
34216 #. type: textblock
34217 #: ../src/guestfs.pod:1396
34218 msgid ""
34219 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
34220 "because there is no handle if this happens there is no way to get additional "
34221 "error information.  However L</guestfs_create> is supposed to be a "
34222 "lightweight operation which can only fail because of insufficient memory (it "
34223 "returns NULL in this case)."
34224 msgstr ""
34225
34226 #. type: =head2
34227 #: ../src/guestfs.pod:1402
34228 msgid "guestfs_last_error"
34229 msgstr ""
34230
34231 #. type: verbatim
34232 #: ../src/guestfs.pod:1404
34233 #, no-wrap
34234 msgid ""
34235 " const char *guestfs_last_error (guestfs_h *g);\n"
34236 "\n"
34237 msgstr ""
34238
34239 #. type: textblock
34240 #: ../src/guestfs.pod:1406
34241 msgid ""
34242 "This returns the last error message that happened on C<g>.  If there has not "
34243 "been an error since the handle was created, then this returns C<NULL>."
34244 msgstr ""
34245
34246 #. type: textblock
34247 #: ../src/guestfs.pod:1410
34248 msgid ""
34249 "The lifetime of the returned string is until the next error occurs, or L</"
34250 "guestfs_close> is called."
34251 msgstr ""
34252
34253 #. type: =head2
34254 #: ../src/guestfs.pod:1413
34255 msgid "guestfs_last_errno"
34256 msgstr ""
34257
34258 #. type: verbatim
34259 #: ../src/guestfs.pod:1415
34260 #, no-wrap
34261 msgid ""
34262 " int guestfs_last_errno (guestfs_h *g);\n"
34263 "\n"
34264 msgstr ""
34265
34266 #. type: textblock
34267 #: ../src/guestfs.pod:1417
34268 msgid "This returns the last error number (errno) that happened on C<g>."
34269 msgstr ""
34270
34271 #. type: textblock
34272 #: ../src/guestfs.pod:1419
34273 msgid "If successful, an errno integer not equal to zero is returned."
34274 msgstr ""
34275
34276 #. type: textblock
34277 #: ../src/guestfs.pod:1421
34278 msgid ""
34279 "If no error, this returns 0.  This call can return 0 in three situations:"
34280 msgstr ""
34281
34282 #. type: textblock
34283 #: ../src/guestfs.pod:1428
34284 msgid "There has not been any error on the handle."
34285 msgstr ""
34286
34287 #. type: textblock
34288 #: ../src/guestfs.pod:1432
34289 msgid ""
34290 "There has been an error but the errno was meaningless.  This corresponds to "
34291 "the case where the error did not come from a failed system call, but for "
34292 "some other reason."
34293 msgstr ""
34294
34295 #. type: textblock
34296 #: ../src/guestfs.pod:1438
34297 msgid ""
34298 "There was an error from a failed system call, but for some reason the errno "
34299 "was not captured and returned.  This usually indicates a bug in libguestfs."
34300 msgstr ""
34301
34302 #. type: textblock
34303 #: ../src/guestfs.pod:1444
34304 msgid ""
34305 "Libguestfs tries to convert the errno from inside the applicance into a "
34306 "corresponding errno for the caller (not entirely trivial: the appliance "
34307 "might be running a completely different operating system from the library "
34308 "and error numbers are not standardized across Un*xen).  If this could not be "
34309 "done, then the error is translated to C<EINVAL>.  In practice this should "
34310 "only happen in very rare circumstances."
34311 msgstr ""
34312
34313 #. type: =head2
34314 #: ../src/guestfs.pod:1452
34315 msgid "guestfs_set_error_handler"
34316 msgstr ""
34317
34318 #. type: verbatim
34319 #: ../src/guestfs.pod:1454
34320 #, no-wrap
34321 msgid ""
34322 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
34323 "                                           void *opaque,\n"
34324 "                                           const char *msg);\n"
34325 " void guestfs_set_error_handler (guestfs_h *g,\n"
34326 "                                 guestfs_error_handler_cb cb,\n"
34327 "                                 void *opaque);\n"
34328 "\n"
34329 msgstr ""
34330
34331 #. type: textblock
34332 #: ../src/guestfs.pod:1461
34333 msgid ""
34334 "The callback C<cb> will be called if there is an error.  The parameters "
34335 "passed to the callback are an opaque data pointer and the error message "
34336 "string."
34337 msgstr ""
34338
34339 #. type: textblock
34340 #: ../src/guestfs.pod:1465
34341 msgid ""
34342 "C<errno> is not passed to the callback.  To get that the callback must call "
34343 "L</guestfs_last_errno>."
34344 msgstr ""
34345
34346 #. type: textblock
34347 #: ../src/guestfs.pod:1468
34348 msgid ""
34349 "Note that the message string C<msg> is freed as soon as the callback "
34350 "function returns, so if you want to stash it somewhere you must make your "
34351 "own copy."
34352 msgstr ""
34353
34354 #. type: textblock
34355 #: ../src/guestfs.pod:1472
34356 msgid "The default handler prints messages on C<stderr>."
34357 msgstr ""
34358
34359 #. type: textblock
34360 #: ../src/guestfs.pod:1474
34361 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
34362 msgstr ""
34363
34364 #. type: =head2
34365 #: ../src/guestfs.pod:1476
34366 msgid "guestfs_get_error_handler"
34367 msgstr ""
34368
34369 #. type: verbatim
34370 #: ../src/guestfs.pod:1478
34371 #, no-wrap
34372 msgid ""
34373 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
34374 "                                                     void **opaque_rtn);\n"
34375 "\n"
34376 msgstr ""
34377
34378 #. type: textblock
34379 #: ../src/guestfs.pod:1481
34380 msgid "Returns the current error handler callback."
34381 msgstr ""
34382
34383 #. type: =head2
34384 #: ../src/guestfs.pod:1483
34385 msgid "guestfs_set_out_of_memory_handler"
34386 msgstr ""
34387
34388 #. type: verbatim
34389 #: ../src/guestfs.pod:1485
34390 #, no-wrap
34391 msgid ""
34392 " typedef void (*guestfs_abort_cb) (void);\n"
34393 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
34394 "                                         guestfs_abort_cb);\n"
34395 "\n"
34396 msgstr ""
34397
34398 #. type: textblock
34399 #: ../src/guestfs.pod:1489
34400 msgid ""
34401 "The callback C<cb> will be called if there is an out of memory situation.  "
34402 "I<Note this callback must not return>."
34403 msgstr ""
34404
34405 #. type: textblock
34406 #: ../src/guestfs.pod:1492
34407 msgid "The default is to call L<abort(3)>."
34408 msgstr ""
34409
34410 #. type: textblock
34411 #: ../src/guestfs.pod:1494
34412 msgid ""
34413 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
34414 msgstr ""
34415
34416 #. type: =head2
34417 #: ../src/guestfs.pod:1497
34418 msgid "guestfs_get_out_of_memory_handler"
34419 msgstr ""
34420
34421 #. type: verbatim
34422 #: ../src/guestfs.pod:1499
34423 #, no-wrap
34424 msgid ""
34425 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
34426 "\n"
34427 msgstr ""
34428
34429 #. type: textblock
34430 #: ../src/guestfs.pod:1501
34431 msgid "This returns the current out of memory handler."
34432 msgstr ""
34433
34434 #. type: =head1
34435 #: ../src/guestfs.pod:1503
34436 msgid "API CALLS"
34437 msgstr ""
34438
34439 #. type: =head1
34440 #: ../src/guestfs.pod:1507
34441 msgid "STRUCTURES"
34442 msgstr ""
34443
34444 #. type: textblock
34445 #: ../src/guestfs.pod:1509
34446 msgid "@STRUCTS@"
34447 msgstr ""
34448
34449 #. type: =head1
34450 #: ../src/guestfs.pod:1511
34451 msgid "AVAILABILITY"
34452 msgstr ""
34453
34454 #. type: =head2
34455 #: ../src/guestfs.pod:1513
34456 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
34457 msgstr ""
34458
34459 #. type: textblock
34460 #: ../src/guestfs.pod:1515
34461 msgid ""
34462 "Using L</guestfs_available> you can test availability of the following "
34463 "groups of functions.  This test queries the appliance to see if the "
34464 "appliance you are currently using supports the functionality."
34465 msgstr ""
34466
34467 #. type: textblock
34468 #: ../src/guestfs.pod:1520
34469 msgid "@AVAILABILITY@"
34470 msgstr ""
34471
34472 #. type: =head2
34473 #: ../src/guestfs.pod:1522
34474 msgid "GUESTFISH supported COMMAND"
34475 msgstr ""
34476
34477 #. type: textblock
34478 #: ../src/guestfs.pod:1524
34479 msgid ""
34480 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
34481 "prints out the available groups and whether they are supported by this build "
34482 "of libguestfs.  Note however that you have to do C<run> first."
34483 msgstr ""
34484
34485 #. type: =head2
34486 #: ../src/guestfs.pod:1529
34487 msgid "SINGLE CALLS AT COMPILE TIME"
34488 msgstr ""
34489
34490 #. type: textblock
34491 #: ../src/guestfs.pod:1531
34492 msgid ""
34493 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
34494 "function, such as:"
34495 msgstr ""
34496
34497 #. type: verbatim
34498 #: ../src/guestfs.pod:1534
34499 #, no-wrap
34500 msgid ""
34501 " #define LIBGUESTFS_HAVE_DD 1\n"
34502 "\n"
34503 msgstr ""
34504
34505 #. type: textblock
34506 #: ../src/guestfs.pod:1536
34507 msgid "if L</guestfs_dd> is available."
34508 msgstr ""
34509
34510 #. type: textblock
34511 #: ../src/guestfs.pod:1538
34512 msgid ""
34513 "Before version 1.5.8, if you needed to test whether a single libguestfs "
34514 "function is available at compile time, we recommended using build tools such "
34515 "as autoconf or cmake.  For example in autotools you could use:"
34516 msgstr ""
34517
34518 #. type: verbatim
34519 #: ../src/guestfs.pod:1543
34520 #, no-wrap
34521 msgid ""
34522 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
34523 " AC_CHECK_FUNCS([guestfs_dd])\n"
34524 "\n"
34525 msgstr ""
34526
34527 #. type: textblock
34528 #: ../src/guestfs.pod:1546
34529 msgid ""
34530 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
34531 "in your program."
34532 msgstr ""
34533
34534 #. type: =head2
34535 #: ../src/guestfs.pod:1549
34536 msgid "SINGLE CALLS AT RUN TIME"
34537 msgstr ""
34538
34539 #. type: textblock
34540 #: ../src/guestfs.pod:1551
34541 msgid ""
34542 "Testing at compile time doesn't guarantee that a function really exists in "
34543 "the library.  The reason is that you might be dynamically linked against a "
34544 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
34545 "This situation unfortunately results in a segmentation fault, which is a "
34546 "shortcoming of the C dynamic linking system itself."
34547 msgstr ""
34548
34549 #. type: textblock
34550 #: ../src/guestfs.pod:1558
34551 msgid ""
34552 "You can use L<dlopen(3)> to test if a function is available at run time, as "
34553 "in this example program (note that you still need the compile time check as "
34554 "well):"
34555 msgstr ""
34556
34557 #. type: verbatim
34558 #: ../src/guestfs.pod:1562
34559 #, no-wrap
34560 msgid ""
34561 " #include <stdio.h>\n"
34562 " #include <stdlib.h>\n"
34563 " #include <unistd.h>\n"
34564 " #include <dlfcn.h>\n"
34565 " #include <guestfs.h>\n"
34566 " \n"
34567 msgstr ""
34568
34569 #. type: verbatim
34570 #: ../src/guestfs.pod:1568
34571 #, no-wrap
34572 msgid ""
34573 " main ()\n"
34574 " {\n"
34575 " #ifdef LIBGUESTFS_HAVE_DD\n"
34576 "   void *dl;\n"
34577 "   int has_function;\n"
34578 " \n"
34579 msgstr ""
34580
34581 #. type: verbatim
34582 #: ../src/guestfs.pod:1574
34583 #, no-wrap
34584 msgid ""
34585 "   /* Test if the function guestfs_dd is really available. */\n"
34586 "   dl = dlopen (NULL, RTLD_LAZY);\n"
34587 "   if (!dl) {\n"
34588 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
34589 "     exit (EXIT_FAILURE);\n"
34590 "   }\n"
34591 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
34592 "   dlclose (dl);\n"
34593 " \n"
34594 msgstr ""
34595
34596 #. type: verbatim
34597 #: ../src/guestfs.pod:1583
34598 #, no-wrap
34599 msgid ""
34600 "   if (!has_function)\n"
34601 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
34602 "   else {\n"
34603 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
34604 "     /* Now it's safe to call\n"
34605 "     guestfs_dd (g, \"foo\", \"bar\");\n"
34606 "     */\n"
34607 "   }\n"
34608 " #else\n"
34609 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
34610 " #endif\n"
34611 "  }\n"
34612 "\n"
34613 msgstr ""
34614
34615 #. type: textblock
34616 #: ../src/guestfs.pod:1596
34617 msgid ""
34618 "You may think the above is an awful lot of hassle, and it is.  There are "
34619 "other ways outside of the C linking system to ensure that this kind of "
34620 "incompatibility never arises, such as using package versioning:"
34621 msgstr ""
34622
34623 #. type: verbatim
34624 #: ../src/guestfs.pod:1601
34625 #, no-wrap
34626 msgid ""
34627 " Requires: libguestfs >= 1.0.80\n"
34628 "\n"
34629 msgstr ""
34630
34631 #. type: =head1
34632 #: ../src/guestfs.pod:1603
34633 msgid "CALLS WITH OPTIONAL ARGUMENTS"
34634 msgstr ""
34635
34636 #. type: textblock
34637 #: ../src/guestfs.pod:1605
34638 msgid ""
34639 "A recent feature of the API is the introduction of calls which take optional "
34640 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
34641 "takes variable arguments (ie. C<...>), as in this example:"
34642 msgstr ""
34643
34644 #. type: verbatim
34645 #: ../src/guestfs.pod:1610
34646 #, no-wrap
34647 msgid ""
34648 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
34649 "\n"
34650 msgstr ""
34651
34652 #. type: textblock
34653 #: ../src/guestfs.pod:1612
34654 msgid ""
34655 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
34656 "call with no optional arguments specified:"
34657 msgstr ""
34658
34659 #. type: verbatim
34660 #: ../src/guestfs.pod:1615
34661 #, no-wrap
34662 msgid ""
34663 " guestfs_add_drive_opts (g, filename, -1);\n"
34664 "\n"
34665 msgstr ""
34666
34667 #. type: textblock
34668 #: ../src/guestfs.pod:1617
34669 msgid "With a single optional argument:"
34670 msgstr ""
34671
34672 #. type: verbatim
34673 #: ../src/guestfs.pod:1619
34674 #, no-wrap
34675 msgid ""
34676 " guestfs_add_drive_opts (g, filename,\n"
34677 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
34678 "                         -1);\n"
34679 "\n"
34680 msgstr ""
34681
34682 #. type: textblock
34683 #: ../src/guestfs.pod:1623
34684 msgid "With two:"
34685 msgstr ""
34686
34687 #. type: verbatim
34688 #: ../src/guestfs.pod:1625
34689 #, no-wrap
34690 msgid ""
34691 " guestfs_add_drive_opts (g, filename,\n"
34692 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
34693 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
34694 "                         -1);\n"
34695 "\n"
34696 msgstr ""
34697
34698 #. type: textblock
34699 #: ../src/guestfs.pod:1630
34700 msgid ""
34701 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
34702 "happen!"
34703 msgstr ""
34704
34705 #. type: =head2
34706 #: ../src/guestfs.pod:1633
34707 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
34708 msgstr ""
34709
34710 #. type: textblock
34711 #: ../src/guestfs.pod:1635
34712 msgid ""
34713 "The second variant has the same name with the suffix C<_va>, which works the "
34714 "same way but takes a C<va_list>.  See the C manual for details.  For the "
34715 "example function, this is declared:"
34716 msgstr ""
34717
34718 #. type: verbatim
34719 #: ../src/guestfs.pod:1639
34720 #, no-wrap
34721 msgid ""
34722 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
34723 "                                va_list args);\n"
34724 "\n"
34725 msgstr ""
34726
34727 #. type: =head2
34728 #: ../src/guestfs.pod:1642
34729 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
34730 msgstr ""
34731
34732 #. type: textblock
34733 #: ../src/guestfs.pod:1644
34734 msgid ""
34735 "The third variant is useful where you need to construct these calls.  You "
34736 "pass in a structure where you fill in the optional fields.  The structure "
34737 "has a bitmask as the first element which you must set to indicate which "
34738 "fields you have filled in.  For our example function the structure and call "
34739 "are declared:"
34740 msgstr ""
34741
34742 #. type: verbatim
34743 #: ../src/guestfs.pod:1650
34744 #, no-wrap
34745 msgid ""
34746 " struct guestfs_add_drive_opts_argv {\n"
34747 "   uint64_t bitmask;\n"
34748 "   int readonly;\n"
34749 "   const char *format;\n"
34750 "   /* ... */\n"
34751 " };\n"
34752 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
34753 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
34754 "\n"
34755 msgstr ""
34756
34757 #. type: textblock
34758 #: ../src/guestfs.pod:1659
34759 msgid "You could call it like this:"
34760 msgstr ""
34761
34762 #. type: verbatim
34763 #: ../src/guestfs.pod:1661
34764 #, no-wrap
34765 msgid ""
34766 " struct guestfs_add_drive_opts_argv optargs = {\n"
34767 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
34768 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
34769 "   .readonly = 1,\n"
34770 "   .format = \"qcow2\"\n"
34771 " };\n"
34772 " \n"
34773 msgstr ""
34774
34775 #. type: verbatim
34776 #: ../src/guestfs.pod:1668
34777 #, no-wrap
34778 msgid ""
34779 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
34780 "\n"
34781 msgstr ""
34782
34783 #. type: textblock
34784 #: ../src/guestfs.pod:1676
34785 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
34786 msgstr ""
34787
34788 #. type: textblock
34789 #: ../src/guestfs.pod:1681
34790 msgid "You do not need to fill in all fields of the structure."
34791 msgstr ""
34792
34793 #. type: textblock
34794 #: ../src/guestfs.pod:1685
34795 msgid ""
34796 "There must be a one-to-one correspondence between fields of the structure "
34797 "that are filled in, and bits set in the bitmask."
34798 msgstr ""
34799
34800 #. type: =head2
34801 #: ../src/guestfs.pod:1690
34802 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
34803 msgstr ""
34804
34805 #. type: textblock
34806 #: ../src/guestfs.pod:1692
34807 msgid ""
34808 "In other languages, optional arguments are expressed in the way that is "
34809 "natural for that language.  We refer you to the language-specific "
34810 "documentation for more details on that."
34811 msgstr ""
34812
34813 #. type: textblock
34814 #: ../src/guestfs.pod:1696
34815 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
34816 msgstr ""
34817
34818 #. type: =head2
34819 #: ../src/guestfs.pod:1698
34820 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
34821 msgstr ""
34822
34823 #. type: textblock
34824 #: ../src/guestfs.pod:1700
34825 msgid ""
34826 "B<Note:> This section documents the generic event mechanism introduced in "
34827 "libguestfs 1.10, which you should use in new code if possible.  The old "
34828 "functions C<guestfs_set_log_message_callback>, "
34829 "C<guestfs_set_subprocess_quit_callback>, "
34830 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
34831 "C<guestfs_set_progress_callback> are no longer documented in this manual "
34832 "page.  Because of the ABI guarantee, the old functions continue to work."
34833 msgstr ""
34834
34835 #. type: textblock
34836 #: ../src/guestfs.pod:1709
34837 msgid ""
34838 "Handles generate events when certain things happen, such as log messages "
34839 "being generated, progress messages during long-running operations, or the "
34840 "handle being closed.  The API calls described below let you register a "
34841 "callback to be called when events happen.  You can register multiple "
34842 "callbacks (for the same, different or overlapping sets of events), and "
34843 "individually remove callbacks.  If callbacks are not removed, then they "
34844 "remain in force until the handle is closed."
34845 msgstr ""
34846
34847 #. type: textblock
34848 #: ../src/guestfs.pod:1717
34849 msgid ""
34850 "In the current implementation, events are only generated synchronously: that "
34851 "means that events (and hence callbacks) can only happen while you are in the "
34852 "middle of making another libguestfs call.  The callback is called in the "
34853 "same thread."
34854 msgstr ""
34855
34856 #. type: textblock
34857 #: ../src/guestfs.pod:1722
34858 msgid ""
34859 "Events may contain a payload, usually nothing (void), an array of 64 bit "
34860 "unsigned integers, or a message buffer.  Payloads are discussed later on."
34861 msgstr ""
34862
34863 #. type: =head3
34864 #: ../src/guestfs.pod:1726
34865 msgid "CLASSES OF EVENTS"
34866 msgstr ""
34867
34868 #. type: =item
34869 #: ../src/guestfs.pod:1730
34870 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
34871 msgstr ""
34872
34873 #. type: textblock
34874 #: ../src/guestfs.pod:1733
34875 msgid ""
34876 "The callback function will be called while the handle is being closed "
34877 "(synchronously from L</guestfs_close>)."
34878 msgstr ""
34879
34880 #. type: textblock
34881 #: ../src/guestfs.pod:1736
34882 msgid ""
34883 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
34884 "handles that are open when the program exits.  This means that this callback "
34885 "might be called indirectly from L<exit(3)>, which can cause unexpected "
34886 "problems in higher-level languages (eg. if your HLL interpreter has already "
34887 "been cleaned up by the time this is called, and if your callback then jumps "
34888 "into some HLL function)."
34889 msgstr ""
34890
34891 #. type: textblock
34892 #: ../src/guestfs.pod:1743
34893 msgid ""
34894 "If no callback is registered: the handle is closed without any callback "
34895 "being invoked."
34896 msgstr ""
34897
34898 #. type: =item
34899 #: ../src/guestfs.pod:1746
34900 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
34901 msgstr ""
34902
34903 #. type: textblock
34904 #: ../src/guestfs.pod:1749
34905 msgid ""
34906 "The callback function will be called when the child process quits, either "
34907 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
34908 "corresponds to a transition from any state to the CONFIG state)."
34909 msgstr ""
34910
34911 #. type: textblock
34912 #: ../src/guestfs.pod:1753 ../src/guestfs.pod:1762 ../src/guestfs.pod:1879
34913 msgid "If no callback is registered: the event is ignored."
34914 msgstr ""
34915
34916 #. type: =item
34917 #: ../src/guestfs.pod:1755
34918 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
34919 msgstr ""
34920
34921 #. type: textblock
34922 #: ../src/guestfs.pod:1758
34923 msgid ""
34924 "The callback function will be called when the child process becomes ready "
34925 "first time after it has been launched.  (This corresponds to a transition "
34926 "from LAUNCHING to the READY state)."
34927 msgstr ""
34928
34929 #. type: =item
34930 #: ../src/guestfs.pod:1764
34931 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
34932 msgstr ""
34933
34934 #. type: textblock
34935 #: ../src/guestfs.pod:1767
34936 msgid ""
34937 "Some long-running operations can generate progress messages.  If this "
34938 "callback is registered, then it will be called each time a progress message "
34939 "is generated (usually two seconds after the operation started, and three "
34940 "times per second thereafter until it completes, although the frequency may "
34941 "change in future versions)."
34942 msgstr ""
34943
34944 #. type: textblock
34945 #: ../src/guestfs.pod:1773
34946 msgid ""
34947 "The callback receives in the payload four unsigned 64 bit numbers which are "
34948 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
34949 msgstr ""
34950
34951 #. type: textblock
34952 #: ../src/guestfs.pod:1776
34953 msgid ""
34954 "The units of C<total> are not defined, although for some operations C<total> "
34955 "may relate in some way to the amount of data to be transferred (eg. in bytes "
34956 "or megabytes), and C<position> may be the portion which has been transferred."
34957 msgstr ""
34958
34959 #. type: textblock
34960 #: ../src/guestfs.pod:1781
34961 msgid "The only defined and stable parts of the API are:"
34962 msgstr ""
34963
34964 #. type: textblock
34965 #: ../src/guestfs.pod:1787
34966 msgid ""
34967 "The callback can display to the user some type of progress bar or indicator "
34968 "which shows the ratio of C<position>:C<total>."
34969 msgstr ""
34970
34971 #. type: textblock
34972 #: ../src/guestfs.pod:1792
34973 msgid "0 E<lt>= C<position> E<lt>= C<total>"
34974 msgstr ""
34975
34976 #. type: textblock
34977 #: ../src/guestfs.pod:1796
34978 msgid ""
34979 "If any progress notification is sent during a call, then a final progress "
34980 "notification is always sent when C<position> = C<total> (I<unless> the call "
34981 "fails with an error)."
34982 msgstr ""
34983
34984 #. type: textblock
34985 #: ../src/guestfs.pod:1800
34986 msgid ""
34987 "This is to simplify caller code, so callers can easily set the progress "
34988 "indicator to \"100%\" at the end of the operation, without requiring special "
34989 "code to detect this case."
34990 msgstr ""
34991
34992 #. type: textblock
34993 #: ../src/guestfs.pod:1806
34994 msgid ""
34995 "For some calls we are unable to estimate the progress of the call, but we "
34996 "can still generate progress messages to indicate activity.  This is known as "
34997 "\"pulse mode\", and is directly supported by certain progress bar "
34998 "implementations (eg. GtkProgressBar)."
34999 msgstr ""
35000
35001 #. type: textblock
35002 #: ../src/guestfs.pod:1811
35003 msgid ""
35004 "For these calls, zero or more progress messages are generated with "
35005 "C<position = 0> and C<total = 1>, followed by a final message with "
35006 "C<position = total = 1>."
35007 msgstr ""
35008
35009 #. type: textblock
35010 #: ../src/guestfs.pod:1815
35011 msgid ""
35012 "As noted above, if the call fails with an error then the final message may "
35013 "not be generated."
35014 msgstr ""
35015
35016 #. type: textblock
35017 #: ../src/guestfs.pod:1820
35018 msgid ""
35019 "The callback also receives the procedure number (C<proc_nr>) and serial "
35020 "number (C<serial>) of the call.  These are only useful for debugging "
35021 "protocol issues, and the callback can normally ignore them.  The callback "
35022 "may want to print these numbers in error messages or debugging messages."
35023 msgstr ""
35024
35025 #. type: textblock
35026 #: ../src/guestfs.pod:1826
35027 msgid "If no callback is registered: progress messages are discarded."
35028 msgstr ""
35029
35030 #. type: =item
35031 #: ../src/guestfs.pod:1828
35032 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
35033 msgstr ""
35034
35035 #. type: textblock
35036 #: ../src/guestfs.pod:1831
35037 msgid ""
35038 "The callback function is called whenever a log message is generated by qemu, "
35039 "the appliance kernel, guestfsd (daemon), or utility programs."
35040 msgstr ""
35041
35042 #. type: textblock
35043 #: ../src/guestfs.pod:1834
35044 msgid ""
35045 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
35046 "guestfs_launch>) then additional debug messages are generated."
35047 msgstr ""
35048
35049 #. type: textblock
35050 #: ../src/guestfs.pod:1837 ../src/guestfs.pod:1851
35051 msgid ""
35052 "If no callback is registered: the messages are discarded unless the verbose "
35053 "flag is set in which case they are sent to stderr.  You can override the "
35054 "printing of verbose messages to stderr by setting up a callback."
35055 msgstr ""
35056
35057 #. type: =item
35058 #: ../src/guestfs.pod:1842
35059 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
35060 msgstr ""
35061
35062 #. type: textblock
35063 #: ../src/guestfs.pod:1845
35064 msgid ""
35065 "The callback function is called whenever a log message is generated by the "
35066 "library part of libguestfs."
35067 msgstr ""
35068
35069 #. type: textblock
35070 #: ../src/guestfs.pod:1848
35071 msgid ""
35072 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
35073 "messages are generated."
35074 msgstr ""
35075
35076 #. type: =item
35077 #: ../src/guestfs.pod:1856
35078 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
35079 msgstr ""
35080
35081 #. type: textblock
35082 #: ../src/guestfs.pod:1859
35083 msgid ""
35084 "The callback function is called whenever a trace message is generated.  This "
35085 "only applies if the trace flag (L</guestfs_set_trace>) is set."
35086 msgstr ""
35087
35088 #. type: textblock
35089 #: ../src/guestfs.pod:1862
35090 msgid ""
35091 "If no callback is registered: the messages are sent to stderr.  You can "
35092 "override the printing of trace messages to stderr by setting up a callback."
35093 msgstr ""
35094
35095 #. type: =item
35096 #: ../src/guestfs.pod:1866
35097 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
35098 msgstr ""
35099
35100 #. type: textblock
35101 #: ../src/guestfs.pod:1869
35102 msgid ""
35103 "The callback function is called whenever a libguestfs function is entered."
35104 msgstr ""
35105
35106 #. type: textblock
35107 #: ../src/guestfs.pod:1872
35108 msgid ""
35109 "The payload is a string which contains the name of the function that we are "
35110 "entering (not including C<guestfs_> prefix)."
35111 msgstr ""
35112
35113 #. type: textblock
35114 #: ../src/guestfs.pod:1875
35115 msgid ""
35116 "Note that libguestfs functions can call themselves, so you may see many "
35117 "events from a single call.  A few libguestfs functions do not generate this "
35118 "event."
35119 msgstr ""
35120
35121 #. type: =head3
35122 #: ../src/guestfs.pod:1883
35123 msgid "guestfs_set_event_callback"
35124 msgstr ""
35125
35126 #. type: verbatim
35127 #: ../src/guestfs.pod:1885
35128 #, no-wrap
35129 msgid ""
35130 " int guestfs_set_event_callback (guestfs_h *g,\n"
35131 "                                 guestfs_event_callback cb,\n"
35132 "                                 uint64_t event_bitmask,\n"
35133 "                                 int flags,\n"
35134 "                                 void *opaque);\n"
35135 "\n"
35136 msgstr ""
35137
35138 #. type: textblock
35139 #: ../src/guestfs.pod:1891
35140 msgid ""
35141 "This function registers a callback (C<cb>) for all event classes in the "
35142 "C<event_bitmask>."
35143 msgstr ""
35144
35145 #. type: textblock
35146 #: ../src/guestfs.pod:1894
35147 msgid ""
35148 "For example, to register for all log message events, you could call this "
35149 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
35150 "To register a single callback for all possible classes of events, use "
35151 "C<GUESTFS_EVENT_ALL>."
35152 msgstr ""
35153
35154 #. type: textblock
35155 #: ../src/guestfs.pod:1900
35156 msgid "C<flags> should always be passed as 0."
35157 msgstr ""
35158
35159 #. type: textblock
35160 #: ../src/guestfs.pod:1902
35161 msgid ""
35162 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
35163 "it for any purpose."
35164 msgstr ""
35165
35166 #. type: textblock
35167 #: ../src/guestfs.pod:1905
35168 msgid ""
35169 "The return value is the event handle (an integer) which you can use to "
35170 "delete the callback (see below)."
35171 msgstr ""
35172
35173 #. type: textblock
35174 #: ../src/guestfs.pod:1908
35175 msgid ""
35176 "If there is an error, this function returns C<-1>, and sets the error in the "
35177 "handle in the usual way (see L</guestfs_last_error> etc.)"
35178 msgstr ""
35179
35180 #. type: textblock
35181 #: ../src/guestfs.pod:1911
35182 msgid ""
35183 "Callbacks remain in effect until they are deleted, or until the handle is "
35184 "closed."
35185 msgstr ""
35186
35187 #. type: textblock
35188 #: ../src/guestfs.pod:1914
35189 msgid ""
35190 "In the case where multiple callbacks are registered for a particular event "
35191 "class, all of the callbacks are called.  The order in which multiple "
35192 "callbacks are called is not defined."
35193 msgstr ""
35194
35195 #. type: =head3
35196 #: ../src/guestfs.pod:1918
35197 msgid "guestfs_delete_event_callback"
35198 msgstr ""
35199
35200 #. type: verbatim
35201 #: ../src/guestfs.pod:1920
35202 #, no-wrap
35203 msgid ""
35204 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
35205 "\n"
35206 msgstr ""
35207
35208 #. type: textblock
35209 #: ../src/guestfs.pod:1922
35210 msgid ""
35211 "Delete a callback that was previously registered.  C<event_handle> should be "
35212 "the integer that was returned by a previous call to "
35213 "C<guestfs_set_event_callback> on the same handle."
35214 msgstr ""
35215
35216 #. type: =head3
35217 #: ../src/guestfs.pod:1926
35218 msgid "guestfs_event_callback"
35219 msgstr ""
35220
35221 #. type: verbatim
35222 #: ../src/guestfs.pod:1928
35223 #, no-wrap
35224 msgid ""
35225 " typedef void (*guestfs_event_callback) (\n"
35226 "                  guestfs_h *g,\n"
35227 "                  void *opaque,\n"
35228 "                  uint64_t event,\n"
35229 "                  int event_handle,\n"
35230 "                  int flags,\n"
35231 "                  const char *buf, size_t buf_len,\n"
35232 "                  const uint64_t *array, size_t array_len);\n"
35233 "\n"
35234 msgstr ""
35235
35236 #. type: textblock
35237 #: ../src/guestfs.pod:1937
35238 msgid ""
35239 "This is the type of the event callback function that you have to provide."
35240 msgstr ""
35241
35242 #. type: textblock
35243 #: ../src/guestfs.pod:1940
35244 msgid ""
35245 "The basic parameters are: the handle (C<g>), the opaque user pointer "
35246 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
35247 "handle, and C<flags> which in the current API you should ignore."
35248 msgstr ""
35249
35250 #. type: textblock
35251 #: ../src/guestfs.pod:1944
35252 msgid ""
35253 "The remaining parameters contain the event payload (if any).  Each event may "
35254 "contain a payload, which usually relates to the event class, but for future "
35255 "proofing your code should be written to handle any payload for any event "
35256 "class."
35257 msgstr ""
35258
35259 #. type: textblock
35260 #: ../src/guestfs.pod:1949
35261 msgid ""
35262 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
35263 "there is no message buffer).  Note that this message buffer can contain "
35264 "arbitrary 8 bit data, including NUL bytes."
35265 msgstr ""
35266
35267 #. type: textblock
35268 #: ../src/guestfs.pod:1953
35269 msgid ""
35270 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
35271 "moment this is only used for progress messages."
35272 msgstr ""
35273
35274 #. type: =head3
35275 #: ../src/guestfs.pod:1956
35276 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
35277 msgstr ""
35278
35279 #. type: textblock
35280 #: ../src/guestfs.pod:1958
35281 msgid ""
35282 "One motivation for the generic event API was to allow GUI programs to "
35283 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
35284 "unconditionally to C<stderr>."
35285 msgstr ""
35286
35287 #. type: textblock
35288 #: ../src/guestfs.pod:1962
35289 msgid ""
35290 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
35291 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
35292 "messages are not events; you must capture error messages separately)."
35293 msgstr ""
35294
35295 #. type: textblock
35296 #: ../src/guestfs.pod:1967
35297 msgid ""
35298 "Programs have to set up a callback to capture the classes of events of "
35299 "interest:"
35300 msgstr ""
35301
35302 #. type: verbatim
35303 #: ../src/guestfs.pod:1970
35304 #, no-wrap
35305 msgid ""
35306 " int eh =\n"
35307 "   guestfs_set_event_callback\n"
35308 "     (g, message_callback,\n"
35309 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
35310 "      GUESTFS_EVENT_TRACE,\n"
35311 "      0, NULL) == -1)\n"
35312 " if (eh == -1) {\n"
35313 "   // handle error in the usual way\n"
35314 " }\n"
35315 "\n"
35316 msgstr ""
35317
35318 #. type: textblock
35319 #: ../src/guestfs.pod:1980
35320 msgid ""
35321 "The callback can then direct messages to the appropriate place.  In this "
35322 "example, messages are directed to syslog:"
35323 msgstr ""
35324
35325 #. type: verbatim
35326 #: ../src/guestfs.pod:1983
35327 #, no-wrap
35328 msgid ""
35329 " static void\n"
35330 " message_callback (\n"
35331 "         guestfs_h *g,\n"
35332 "         void *opaque,\n"
35333 "         uint64_t event,\n"
35334 "         int event_handle,\n"
35335 "         int flags,\n"
35336 "         const char *buf, size_t buf_len,\n"
35337 "         const uint64_t *array, size_t array_len)\n"
35338 " {\n"
35339 "   const int priority = LOG_USER|LOG_INFO;\n"
35340 "   if (buf_len > 0)\n"
35341 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
35342 " }\n"
35343 "\n"
35344 msgstr ""
35345
35346 #. type: =head1
35347 #: ../src/guestfs.pod:1998
35348 msgid "CANCELLING LONG TRANSFERS"
35349 msgstr ""
35350
35351 #. type: textblock
35352 #: ../src/guestfs.pod:2000
35353 msgid ""
35354 "Some operations can be cancelled by the caller while they are in progress.  "
35355 "Currently only operations that involve uploading or downloading data can be "
35356 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
35357 "parameters in the generator)."
35358 msgstr ""
35359
35360 #. type: =head2
35361 #: ../src/guestfs.pod:2005
35362 msgid "guestfs_user_cancel"
35363 msgstr ""
35364
35365 #. type: verbatim
35366 #: ../src/guestfs.pod:2007
35367 #, no-wrap
35368 msgid ""
35369 " void guestfs_user_cancel (guestfs_h *g);\n"
35370 "\n"
35371 msgstr ""
35372
35373 #. type: textblock
35374 #: ../src/guestfs.pod:2009
35375 msgid ""
35376 "C<guestfs_user_cancel> cancels the current upload or download operation."
35377 msgstr ""
35378
35379 #. type: textblock
35380 #: ../src/guestfs.pod:2012
35381 msgid ""
35382 "Unlike most other libguestfs calls, this function is signal safe and thread "
35383 "safe.  You can call it from a signal handler or from another thread, without "
35384 "needing to do any locking."
35385 msgstr ""
35386
35387 #. type: textblock
35388 #: ../src/guestfs.pod:2016
35389 msgid ""
35390 "The transfer that was in progress (if there is one) will stop shortly "
35391 "afterwards, and will return an error.  The errno (see L</"
35392 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
35393 "out if the operation was cancelled or failed because of another error."
35394 msgstr ""
35395
35396 #. type: textblock
35397 #: ../src/guestfs.pod:2022
35398 msgid ""
35399 "No cleanup is performed: for example, if a file was being uploaded then "
35400 "after cancellation there may be a partially uploaded file.  It is the "
35401 "caller's responsibility to clean up if necessary."
35402 msgstr ""
35403
35404 #. type: textblock
35405 #: ../src/guestfs.pod:2026
35406 msgid "There are two common places that you might call C<guestfs_user_cancel>."
35407 msgstr ""
35408
35409 #. type: textblock
35410 #: ../src/guestfs.pod:2028
35411 msgid ""
35412 "In an interactive text-based program, you might call it from a C<SIGINT> "
35413 "signal handler so that pressing C<^C> cancels the current operation.  (You "
35414 "also need to call L</guestfs_set_pgroup> so that child processes don't "
35415 "receive the C<^C> signal)."
35416 msgstr ""
35417
35418 #. type: textblock
35419 #: ../src/guestfs.pod:2033
35420 msgid ""
35421 "In a graphical program, when the main thread is displaying a progress bar "
35422 "with a cancel button, wire up the cancel button to call this function."
35423 msgstr ""
35424
35425 #. type: =head1
35426 #: ../src/guestfs.pod:2037
35427 msgid "PRIVATE DATA AREA"
35428 msgstr ""
35429
35430 #. type: textblock
35431 #: ../src/guestfs.pod:2039
35432 msgid ""
35433 "You can attach named pieces of private data to the libguestfs handle, fetch "
35434 "them by name, and walk over them, for the lifetime of the handle.  This is "
35435 "called the private data area and is only available from the C API."
35436 msgstr ""
35437
35438 #. type: textblock
35439 #: ../src/guestfs.pod:2044
35440 msgid "To attach a named piece of data, use the following call:"
35441 msgstr ""
35442
35443 #. type: verbatim
35444 #: ../src/guestfs.pod:2046
35445 #, no-wrap
35446 msgid ""
35447 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
35448 "\n"
35449 msgstr ""
35450
35451 #. type: textblock
35452 #: ../src/guestfs.pod:2048
35453 msgid ""
35454 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
35455 "pointer (which can be C<NULL>).  Any previous item with the same key is "
35456 "overwritten."
35457 msgstr ""
35458
35459 #. type: textblock
35460 #: ../src/guestfs.pod:2052
35461 msgid ""
35462 "You can use any C<key> you want, but your key should I<not> start with an "
35463 "underscore character.  Keys beginning with an underscore character are "
35464 "reserved for internal libguestfs purposes (eg. for implementing language "
35465 "bindings).  It is recommended that you prefix the key with some unique "
35466 "string to avoid collisions with other users."
35467 msgstr ""
35468
35469 #. type: textblock
35470 #: ../src/guestfs.pod:2058
35471 msgid "To retrieve the pointer, use:"
35472 msgstr ""
35473
35474 #. type: verbatim
35475 #: ../src/guestfs.pod:2060
35476 #, no-wrap
35477 msgid ""
35478 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
35479 "\n"
35480 msgstr ""
35481
35482 #. type: textblock
35483 #: ../src/guestfs.pod:2062
35484 msgid ""
35485 "This function returns C<NULL> if either no data is found associated with "
35486 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
35487 "C<NULL>."
35488 msgstr ""
35489
35490 #. type: textblock
35491 #: ../src/guestfs.pod:2066
35492 msgid ""
35493 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
35494 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
35495 "all.  In particular, libguestfs does I<not> try to free the data when the "
35496 "handle is closed.  If the data must be freed, then the caller must either "
35497 "free it before calling L</guestfs_close> or must set up a close callback to "
35498 "do it (see L</GUESTFS_EVENT_CLOSE>)."
35499 msgstr ""
35500
35501 #. type: textblock
35502 #: ../src/guestfs.pod:2073
35503 msgid "To walk over all entries, use these two functions:"
35504 msgstr ""
35505
35506 #. type: verbatim
35507 #: ../src/guestfs.pod:2075
35508 #, no-wrap
35509 msgid ""
35510 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
35511 "\n"
35512 msgstr ""
35513
35514 #. type: verbatim
35515 #: ../src/guestfs.pod:2077
35516 #, no-wrap
35517 msgid ""
35518 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
35519 "\n"
35520 msgstr ""
35521
35522 #. type: textblock
35523 #: ../src/guestfs.pod:2079
35524 msgid ""
35525 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
35526 "not have any particular meaning -- keys are not returned in any defined "
35527 "order).  A pointer to the key is returned in C<*key_rtn> and the "
35528 "corresponding data pointer is returned from the function.  C<NULL> is "
35529 "returned if there are no keys stored in the handle."
35530 msgstr ""
35531
35532 #. type: textblock
35533 #: ../src/guestfs.pod:2085
35534 msgid ""
35535 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
35536 "value of this function is also C<NULL> is there are no further entries to "
35537 "return."
35538 msgstr ""
35539
35540 #. type: textblock
35541 #: ../src/guestfs.pod:2089
35542 msgid "Notes about walking over entries:"
35543 msgstr ""
35544
35545 #. type: textblock
35546 #: ../src/guestfs.pod:2095
35547 msgid ""
35548 "You must not call C<guestfs_set_private> while walking over the entries."
35549 msgstr ""
35550
35551 #. type: textblock
35552 #: ../src/guestfs.pod:2100
35553 msgid ""
35554 "The handle maintains an internal iterator which is reset when you call "
35555 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
35556 "call C<guestfs_set_private>."
35557 msgstr ""
35558
35559 #. type: textblock
35560 #: ../src/guestfs.pod:2106
35561 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
35562 msgstr ""
35563
35564 #. type: verbatim
35565 #: ../src/guestfs.pod:2108
35566 #, no-wrap
35567 msgid ""
35568 " guestfs_set_private (g, key, NULL);\n"
35569 "\n"
35570 msgstr ""
35571
35572 #. type: textblock
35573 #: ../src/guestfs.pod:2110
35574 msgid "then that C<key> is not returned when walking."
35575 msgstr ""
35576
35577 #. type: textblock
35578 #: ../src/guestfs.pod:2114
35579 msgid ""
35580 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
35581 "C<guestfs_next_private> or C<guestfs_set_private>."
35582 msgstr ""
35583
35584 #. type: textblock
35585 #: ../src/guestfs.pod:2120
35586 msgid ""
35587 "The following example code shows how to print all keys and data pointers "
35588 "that are associated with the handle C<g>:"
35589 msgstr ""
35590
35591 #. type: verbatim
35592 #: ../src/guestfs.pod:2123
35593 #, no-wrap
35594 msgid ""
35595 " const char *key;\n"
35596 " void *data = guestfs_first_private (g, &key);\n"
35597 " while (data != NULL)\n"
35598 "   {\n"
35599 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
35600 "     data = guestfs_next_private (g, &key);\n"
35601 "   }\n"
35602 "\n"
35603 msgstr ""
35604
35605 #. type: textblock
35606 #: ../src/guestfs.pod:2131
35607 msgid ""
35608 "More commonly you are only interested in keys that begin with an application-"
35609 "specific prefix C<foo_>.  Modify the loop like so:"
35610 msgstr ""
35611
35612 #. type: verbatim
35613 #: ../src/guestfs.pod:2134
35614 #, no-wrap
35615 msgid ""
35616 " const char *key;\n"
35617 " void *data = guestfs_first_private (g, &key);\n"
35618 " while (data != NULL)\n"
35619 "   {\n"
35620 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
35621 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
35622 "     data = guestfs_next_private (g, &key);\n"
35623 "   }\n"
35624 "\n"
35625 msgstr ""
35626
35627 #. type: textblock
35628 #: ../src/guestfs.pod:2143
35629 msgid ""
35630 "If you need to modify keys while walking, then you have to jump back to the "
35631 "beginning of the loop.  For example, to delete all keys prefixed with "
35632 "C<foo_>:"
35633 msgstr ""
35634
35635 #. type: verbatim
35636 #: ../src/guestfs.pod:2147
35637 #, no-wrap
35638 msgid ""
35639 "  const char *key;\n"
35640 "  void *data;\n"
35641 " again:\n"
35642 "  data = guestfs_first_private (g, &key);\n"
35643 "  while (data != NULL)\n"
35644 "    {\n"
35645 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
35646 "        {\n"
35647 "          guestfs_set_private (g, key, NULL);\n"
35648 "          /* note that 'key' pointer is now invalid, and so is\n"
35649 "             the internal iterator */\n"
35650 "          goto again;\n"
35651 "        }\n"
35652 "      data = guestfs_next_private (g, &key);\n"
35653 "    }\n"
35654 "\n"
35655 msgstr ""
35656
35657 #. type: textblock
35658 #: ../src/guestfs.pod:2163
35659 msgid ""
35660 "Note that the above loop is guaranteed to terminate because the keys are "
35661 "being deleted, but other manipulations of keys within the loop might not "
35662 "terminate unless you also maintain an indication of which keys have been "
35663 "visited."
35664 msgstr ""
35665
35666 #. type: =end
35667 #: ../src/guestfs.pod:2168 ../src/guestfs.pod:2173
35668 msgid "html"
35669 msgstr ""
35670
35671 #. type: textblock
35672 #: ../src/guestfs.pod:2170
35673 msgid ""
35674 "<!-- old anchor for the next section --> <a name="
35675 "\"state_machine_and_low_level_event_api\"/>"
35676 msgstr ""
35677
35678 #. type: =head1
35679 #: ../src/guestfs.pod:2175
35680 msgid "ARCHITECTURE"
35681 msgstr ""
35682
35683 #. type: textblock
35684 #: ../src/guestfs.pod:2177
35685 msgid ""
35686 "Internally, libguestfs is implemented by running an appliance (a special "
35687 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
35688 "process of the main program."
35689 msgstr ""
35690
35691 #. type: verbatim
35692 #: ../src/guestfs.pod:2181
35693 #, no-wrap
35694 msgid ""
35695 "  ___________________\n"
35696 " /                   \\\n"
35697 " | main program      |\n"
35698 " |                   |\n"
35699 " |                   |           child process / appliance\n"
35700 " |                   |           __________________________\n"
35701 " |                   |          / qemu                     \\\n"
35702 " +-------------------+   RPC    |      +-----------------+ |\n"
35703 " | libguestfs     <--------------------> guestfsd        | |\n"
35704 " |                   |          |      +-----------------+ |\n"
35705 " \\___________________/          |      | Linux kernel    | |\n"
35706 "                                |      +--^--------------+ |\n"
35707 "                                \\_________|________________/\n"
35708 "                                          |\n"
35709 "                                   _______v______\n"
35710 "                                  /              \\\n"
35711 "                                  | Device or    |\n"
35712 "                                  | disk image   |\n"
35713 "                                  \\______________/\n"
35714 "\n"
35715 msgstr ""
35716
35717 #. type: textblock
35718 #: ../src/guestfs.pod:2201
35719 msgid ""
35720 "The library, linked to the main program, creates the child process and hence "
35721 "the appliance in the L</guestfs_launch> function."
35722 msgstr ""
35723
35724 #. type: textblock
35725 #: ../src/guestfs.pod:2204
35726 msgid ""
35727 "Inside the appliance is a Linux kernel and a complete stack of userspace "
35728 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
35729 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
35730 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
35731 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
35732 "attached to the qemu process which translates device access by the "
35733 "appliance's Linux kernel into accesses to the image."
35734 msgstr ""
35735
35736 #. type: textblock
35737 #: ../src/guestfs.pod:2213
35738 msgid ""
35739 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
35740 "Although the disk image you are attached to might also be used by some "
35741 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
35742 "care if both libguestfs's qemu process and your virtual machine are trying "
35743 "to update the disk image at the same time, since these usually results in "
35744 "massive disk corruption)."
35745 msgstr ""
35746
35747 #. type: =head1
35748 #: ../src/guestfs.pod:2220
35749 msgid "STATE MACHINE"
35750 msgstr ""
35751
35752 #. type: textblock
35753 #: ../src/guestfs.pod:2222
35754 msgid "libguestfs uses a state machine to model the child process:"
35755 msgstr ""
35756
35757 #. type: verbatim
35758 #: ../src/guestfs.pod:2224
35759 #, no-wrap
35760 msgid ""
35761 "                         |\n"
35762 "                    guestfs_create\n"
35763 "                         |\n"
35764 "                         |\n"
35765 "                     ____V_____\n"
35766 "                    /          \\\n"
35767 "                    |  CONFIG  |\n"
35768 "                    \\__________/\n"
35769 "                     ^ ^   ^  \\\n"
35770 "                    /  |    \\  \\ guestfs_launch\n"
35771 "                   /   |    _\\__V______\n"
35772 "                  /    |   /           \\\n"
35773 "                 /     |   | LAUNCHING |\n"
35774 "                /      |   \\___________/\n"
35775 "               /       |       /\n"
35776 "              /        |  guestfs_launch\n"
35777 "             /         |     /\n"
35778 "    ______  /        __|____V\n"
35779 "   /      \\ ------> /        \\\n"
35780 "   | BUSY |         | READY  |\n"
35781 "   \\______/ <------ \\________/\n"
35782 "\n"
35783 msgstr ""
35784
35785 #. type: textblock
35786 #: ../src/guestfs.pod:2246
35787 msgid ""
35788 "The normal transitions are (1) CONFIG (when the handle is created, but there "
35789 "is no child process), (2) LAUNCHING (when the child process is booting up), "
35790 "(3) alternating between READY and BUSY as commands are issued to, and "
35791 "carried out by, the child process."
35792 msgstr ""
35793
35794 #. type: textblock
35795 #: ../src/guestfs.pod:2251
35796 msgid ""
35797 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
35798 "asynchronously at any time (eg. due to some internal error), and that causes "
35799 "the state to transition back to CONFIG."
35800 msgstr ""
35801
35802 #. type: textblock
35803 #: ../src/guestfs.pod:2255
35804 msgid ""
35805 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
35806 "issued when in the CONFIG state."
35807 msgstr ""
35808
35809 #. type: textblock
35810 #: ../src/guestfs.pod:2258
35811 msgid ""
35812 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
35813 "L</guestfs_launch> blocks until the child process is READY to accept "
35814 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
35815 "moves the state from CONFIG to LAUNCHING while it is running."
35816 msgstr ""
35817
35818 #. type: textblock
35819 #: ../src/guestfs.pod:2264
35820 msgid ""
35821 "API actions such as L</guestfs_mount> can only be issued when in the READY "
35822 "state.  These API calls block waiting for the command to be carried out (ie. "
35823 "the state to transition to BUSY and then back to READY).  There are no non-"
35824 "blocking versions, and no way to issue more than one command per handle at "
35825 "the same time."
35826 msgstr ""
35827
35828 #. type: textblock
35829 #: ../src/guestfs.pod:2270
35830 msgid ""
35831 "Finally, the child process sends asynchronous messages back to the main "
35832 "program, such as kernel log messages.  You can register a callback to "
35833 "receive these messages."
35834 msgstr ""
35835
35836 #. type: =head1
35837 #: ../src/guestfs.pod:2274
35838 msgid "INTERNALS"
35839 msgstr ""
35840
35841 #. type: =head2
35842 #: ../src/guestfs.pod:2276
35843 msgid "APPLIANCE BOOT PROCESS"
35844 msgstr ""
35845
35846 #. type: textblock
35847 #: ../src/guestfs.pod:2278
35848 msgid ""
35849 "This process has evolved and continues to evolve.  The description here "
35850 "corresponds only to the current version of libguestfs and is provided for "
35851 "information only."
35852 msgstr ""
35853
35854 #. type: textblock
35855 #: ../src/guestfs.pod:2282
35856 msgid ""
35857 "In order to follow the stages involved below, enable libguestfs debugging "
35858 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
35859 msgstr ""
35860
35861 #. type: =item
35862 #: ../src/guestfs.pod:2287
35863 msgid "Create the appliance"
35864 msgstr ""
35865
35866 #. type: textblock
35867 #: ../src/guestfs.pod:2289
35868 msgid ""
35869 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
35870 "initrd and the appliance."
35871 msgstr ""
35872
35873 #. type: textblock
35874 #: ../src/guestfs.pod:2292
35875 msgid ""
35876 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
35877 "directory if C<TMPDIR> is set)."
35878 msgstr ""
35879
35880 #. type: textblock
35881 #: ../src/guestfs.pod:2295
35882 msgid ""
35883 "For a complete description of how the appliance is created and cached, read "
35884 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
35885 msgstr ""
35886
35887 #. type: =item
35888 #: ../src/guestfs.pod:2299
35889 msgid "Start qemu and boot the kernel"
35890 msgstr ""
35891
35892 #. type: textblock
35893 #: ../src/guestfs.pod:2301
35894 msgid "qemu is invoked to boot the kernel."
35895 msgstr ""
35896
35897 #. type: =item
35898 #: ../src/guestfs.pod:2303
35899 msgid "Run the initrd"
35900 msgstr ""
35901
35902 #. type: textblock
35903 #: ../src/guestfs.pod:2305
35904 msgid ""
35905 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
35906 "appliance.  The purpose of the initrd is to load enough kernel modules in "
35907 "order that the appliance itself can be mounted and started."
35908 msgstr ""
35909
35910 #. type: textblock
35911 #: ../src/guestfs.pod:2309
35912 msgid ""
35913 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
35914 "initrd>."
35915 msgstr ""
35916
35917 #. type: textblock
35918 #: ../src/guestfs.pod:2312
35919 msgid ""
35920 "When the initrd has started you will see messages showing that kernel "
35921 "modules are being loaded, similar to this:"
35922 msgstr ""
35923
35924 #. type: verbatim
35925 #: ../src/guestfs.pod:2315
35926 #, no-wrap
35927 msgid ""
35928 " febootstrap: ext2 mini initrd starting up\n"
35929 " febootstrap: mounting /sys\n"
35930 " febootstrap: internal insmod libcrc32c.ko\n"
35931 " febootstrap: internal insmod crc32c-intel.ko\n"
35932 "\n"
35933 msgstr ""
35934
35935 #. type: =item
35936 #: ../src/guestfs.pod:2320
35937 msgid "Find and mount the appliance device"
35938 msgstr ""
35939
35940 #. type: textblock
35941 #: ../src/guestfs.pod:2322
35942 msgid ""
35943 "The appliance is a sparse file containing an ext2 filesystem which contains "
35944 "a familiar (although reduced in size) Linux operating system.  It would "
35945 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
35946 msgstr ""
35947
35948 #. type: textblock
35949 #: ../src/guestfs.pod:2326
35950 msgid ""
35951 "The regular disks being inspected by libguestfs are the first devices "
35952 "exposed by qemu (eg. as C</dev/vda>)."
35953 msgstr ""
35954
35955 #. type: textblock
35956 #: ../src/guestfs.pod:2329
35957 msgid ""
35958 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
35959 "there was only one regular disk)."
35960 msgstr ""
35961
35962 #. type: textblock
35963 #: ../src/guestfs.pod:2332
35964 msgid ""
35965 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
35966 "and switch root into the appliance, and run C</init> from the appliance."
35967 msgstr ""
35968
35969 #. type: textblock
35970 #: ../src/guestfs.pod:2336
35971 msgid "If this works successfully you will see messages such as:"
35972 msgstr ""
35973
35974 #. type: verbatim
35975 #: ../src/guestfs.pod:2338
35976 #, no-wrap
35977 msgid ""
35978 " febootstrap: picked /sys/block/vdb/dev as root device\n"
35979 " febootstrap: creating /dev/root as block special 252:16\n"
35980 " febootstrap: mounting new root on /root\n"
35981 " febootstrap: chroot\n"
35982 " Starting /init script ...\n"
35983 "\n"
35984 msgstr ""
35985
35986 #. type: textblock
35987 #: ../src/guestfs.pod:2344
35988 msgid ""
35989 "Note that C<Starting /init script ...> indicates that the appliance's init "
35990 "script is now running."
35991 msgstr ""
35992
35993 #. type: =item
35994 #: ../src/guestfs.pod:2347
35995 msgid "Initialize the appliance"
35996 msgstr ""
35997
35998 #. type: textblock
35999 #: ../src/guestfs.pod:2349
36000 msgid ""
36001 "The appliance itself now initializes itself.  This involves starting certain "
36002 "processes like C<udev>, possibly printing some debug information, and "
36003 "finally running the daemon (C<guestfsd>)."
36004 msgstr ""
36005
36006 #. type: =item
36007 #: ../src/guestfs.pod:2353
36008 msgid "The daemon"
36009 msgstr ""
36010
36011 #. type: textblock
36012 #: ../src/guestfs.pod:2355
36013 msgid ""
36014 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
36015 "should see:"
36016 msgstr ""
36017
36018 #. type: verbatim
36019 #: ../src/guestfs.pod:2358
36020 #, no-wrap
36021 msgid ""
36022 " verbose daemon enabled\n"
36023 "\n"
36024 msgstr ""
36025
36026 #. type: textblock
36027 #: ../src/guestfs.pod:2360
36028 msgid ""
36029 "The daemon expects to see a named virtio-serial port exposed by qemu and "
36030 "connected on the other end to the library."
36031 msgstr ""
36032
36033 #. type: textblock
36034 #: ../src/guestfs.pod:2363
36035 msgid ""
36036 "The daemon connects to this port (and hence to the library) and sends a four "
36037 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
36038 "protocol (see below)."
36039 msgstr ""
36040
36041 #. type: =head2
36042 #: ../src/guestfs.pod:2369
36043 msgid "COMMUNICATION PROTOCOL"
36044 msgstr ""
36045
36046 #. type: textblock
36047 #: ../src/guestfs.pod:2371
36048 msgid ""
36049 "Don't rely on using this protocol directly.  This section documents how it "
36050 "currently works, but it may change at any time."
36051 msgstr ""
36052
36053 #. type: textblock
36054 #: ../src/guestfs.pod:2374
36055 msgid ""
36056 "The protocol used to talk between the library and the daemon running inside "
36057 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
36058 "1014, RFC 1832, RFC 4506)."
36059 msgstr ""
36060
36061 #. type: textblock
36062 #: ../src/guestfs.pod:2378
36063 msgid ""
36064 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
36065 "this file is automatically generated)."
36066 msgstr ""
36067
36068 #. type: textblock
36069 #: ../src/guestfs.pod:2381
36070 msgid ""
36071 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
36072 "and C<FileOut> parameters, which are handled with very simple request/reply "
36073 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
36074 "parameters, which use the same request and reply messages, but they may also "
36075 "be followed by files sent using a chunked encoding."
36076 msgstr ""
36077
36078 #. type: =head3
36079 #: ../src/guestfs.pod:2388
36080 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
36081 msgstr ""
36082
36083 #. type: textblock
36084 #: ../src/guestfs.pod:2390
36085 msgid "For ordinary functions, the request message is:"
36086 msgstr ""
36087
36088 #. type: verbatim
36089 #: ../src/guestfs.pod:2392
36090 #, no-wrap
36091 msgid ""
36092 " total length (header + arguments,\n"
36093 "      but not including the length word itself)\n"
36094 " struct guestfs_message_header (encoded as XDR)\n"
36095 " struct guestfs_<foo>_args (encoded as XDR)\n"
36096 "\n"
36097 msgstr ""
36098
36099 #. type: textblock
36100 #: ../src/guestfs.pod:2397
36101 msgid ""
36102 "The total length field allows the daemon to allocate a fixed size buffer "
36103 "into which it slurps the rest of the message.  As a result, the total length "
36104 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
36105 "effective size of any request is limited to somewhere under this size."
36106 msgstr ""
36107
36108 #. type: textblock
36109 #: ../src/guestfs.pod:2403
36110 msgid ""
36111 "Note also that many functions don't take any arguments, in which case the "
36112 "C<guestfs_I<foo>_args> is completely omitted."
36113 msgstr ""
36114
36115 #. type: textblock
36116 #: ../src/guestfs.pod:2406
36117 msgid ""
36118 "The header contains the procedure number (C<guestfs_proc>) which is how the "
36119 "receiver knows what type of args structure to expect, or none at all."
36120 msgstr ""
36121
36122 #. type: textblock
36123 #: ../src/guestfs.pod:2410
36124 msgid ""
36125 "For functions that take optional arguments, the optional arguments are "
36126 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
36127 "arguments.  A bitmask in the header indicates which optional arguments are "
36128 "meaningful.  The bitmask is also checked to see if it contains bits set "
36129 "which the daemon does not know about (eg. if more optional arguments were "
36130 "added in a later version of the library), and this causes the call to be "
36131 "rejected."
36132 msgstr ""
36133
36134 #. type: textblock
36135 #: ../src/guestfs.pod:2418
36136 msgid "The reply message for ordinary functions is:"
36137 msgstr ""
36138
36139 #. type: verbatim
36140 #: ../src/guestfs.pod:2420
36141 #, no-wrap
36142 msgid ""
36143 " total length (header + ret,\n"
36144 "      but not including the length word itself)\n"
36145 " struct guestfs_message_header (encoded as XDR)\n"
36146 " struct guestfs_<foo>_ret (encoded as XDR)\n"
36147 "\n"
36148 msgstr ""
36149
36150 #. type: textblock
36151 #: ../src/guestfs.pod:2425
36152 msgid ""
36153 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
36154 "functions that return no formal return values."
36155 msgstr ""
36156
36157 #. type: textblock
36158 #: ../src/guestfs.pod:2428
36159 msgid ""
36160 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
36161 msgstr ""
36162
36163 #. type: textblock
36164 #: ../src/guestfs.pod:2431
36165 msgid ""
36166 "In the case of an error, a flag is set in the header, and the reply message "
36167 "is slightly changed:"
36168 msgstr ""
36169
36170 #. type: verbatim
36171 #: ../src/guestfs.pod:2434
36172 #, no-wrap
36173 msgid ""
36174 " total length (header + error,\n"
36175 "      but not including the length word itself)\n"
36176 " struct guestfs_message_header (encoded as XDR)\n"
36177 " struct guestfs_message_error (encoded as XDR)\n"
36178 "\n"
36179 msgstr ""
36180
36181 #. type: textblock
36182 #: ../src/guestfs.pod:2439
36183 msgid ""
36184 "The C<guestfs_message_error> structure contains the error message as a "
36185 "string."
36186 msgstr ""
36187
36188 #. type: =head3
36189 #: ../src/guestfs.pod:2442
36190 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
36191 msgstr ""
36192
36193 #. type: textblock
36194 #: ../src/guestfs.pod:2444
36195 msgid ""
36196 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
36197 "The normal request message is sent (see above).  However this is followed by "
36198 "a sequence of file chunks."
36199 msgstr ""
36200
36201 #. type: verbatim
36202 #: ../src/guestfs.pod:2448
36203 #, no-wrap
36204 msgid ""
36205 " total length (header + arguments,\n"
36206 "      but not including the length word itself,\n"
36207 "      and not including the chunks)\n"
36208 " struct guestfs_message_header (encoded as XDR)\n"
36209 " struct guestfs_<foo>_args (encoded as XDR)\n"
36210 " sequence of chunks for FileIn param #0\n"
36211 " sequence of chunks for FileIn param #1 etc.\n"
36212 "\n"
36213 msgstr ""
36214
36215 #. type: textblock
36216 #: ../src/guestfs.pod:2456
36217 msgid "The \"sequence of chunks\" is:"
36218 msgstr ""
36219
36220 #. type: verbatim
36221 #: ../src/guestfs.pod:2458
36222 #, no-wrap
36223 msgid ""
36224 " length of chunk (not including length word itself)\n"
36225 " struct guestfs_chunk (encoded as XDR)\n"
36226 " length of chunk\n"
36227 " struct guestfs_chunk (encoded as XDR)\n"
36228 "   ...\n"
36229 " length of chunk\n"
36230 " struct guestfs_chunk (with data.data_len == 0)\n"
36231 "\n"
36232 msgstr ""
36233
36234 #. type: textblock
36235 #: ../src/guestfs.pod:2466
36236 msgid ""
36237 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
36238 "is set in the final chunk to indicate either successful completion or early "
36239 "cancellation."
36240 msgstr ""
36241
36242 #. type: textblock
36243 #: ../src/guestfs.pod:2470
36244 msgid ""
36245 "At time of writing there are no functions that have more than one FileIn "
36246 "parameter.  However this is (theoretically) supported, by sending the "
36247 "sequence of chunks for each FileIn parameter one after another (from left to "
36248 "right)."
36249 msgstr ""
36250
36251 #. type: textblock
36252 #: ../src/guestfs.pod:2475
36253 msgid ""
36254 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
36255 "transfer.  The library does this by sending a chunk with a special flag set "
36256 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
36257 "RPC, does I<not> send any reply, and goes back to reading the next request."
36258 msgstr ""
36259
36260 #. type: textblock
36261 #: ../src/guestfs.pod:2481
36262 msgid ""
36263 "The daemon may also cancel.  It does this by writing a special word "
36264 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
36265 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
36266 "cancel chunk).  The special word is chosen so that even if cancellation "
36267 "happens right at the end of the transfer (after the library has finished "
36268 "writing and has started listening for the reply), the \"spurious\" cancel "
36269 "flag will not be confused with the reply message."
36270 msgstr ""
36271
36272 #. type: textblock
36273 #: ../src/guestfs.pod:2490
36274 msgid ""
36275 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
36276 "limit), and also files where the size is not known in advance (eg. from "
36277 "pipes or sockets).  However the chunks are rather small "
36278 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
36279 "to keep much in memory."
36280 msgstr ""
36281
36282 #. type: =head3
36283 #: ../src/guestfs.pod:2496
36284 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
36285 msgstr ""
36286
36287 #. type: textblock
36288 #: ../src/guestfs.pod:2498
36289 msgid ""
36290 "The protocol for FileOut parameters is exactly the same as for FileIn "
36291 "parameters, but with the roles of daemon and library reversed."
36292 msgstr ""
36293
36294 #. type: verbatim
36295 #: ../src/guestfs.pod:2501
36296 #, no-wrap
36297 msgid ""
36298 " total length (header + ret,\n"
36299 "      but not including the length word itself,\n"
36300 "      and not including the chunks)\n"
36301 " struct guestfs_message_header (encoded as XDR)\n"
36302 " struct guestfs_<foo>_ret (encoded as XDR)\n"
36303 " sequence of chunks for FileOut param #0\n"
36304 " sequence of chunks for FileOut param #1 etc.\n"
36305 "\n"
36306 msgstr ""
36307
36308 #. type: =head3
36309 #: ../src/guestfs.pod:2509
36310 msgid "INITIAL MESSAGE"
36311 msgstr ""
36312
36313 #. type: textblock
36314 #: ../src/guestfs.pod:2511
36315 msgid ""
36316 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
36317 "which indicates that the guest and daemon is alive.  This is what L</"
36318 "guestfs_launch> waits for."
36319 msgstr ""
36320
36321 #. type: =head3
36322 #: ../src/guestfs.pod:2515
36323 msgid "PROGRESS NOTIFICATION MESSAGES"
36324 msgstr ""
36325
36326 #. type: textblock
36327 #: ../src/guestfs.pod:2517
36328 msgid ""
36329 "The daemon may send progress notification messages at any time.  These are "
36330 "distinguished by the normal length word being replaced by "
36331 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
36332 msgstr ""
36333
36334 #. type: textblock
36335 #: ../src/guestfs.pod:2521
36336 msgid ""
36337 "The library turns them into progress callbacks (see L</"
36338 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
36339 "if not."
36340 msgstr ""
36341
36342 #. type: textblock
36343 #: ../src/guestfs.pod:2525
36344 msgid ""
36345 "The daemon self-limits the frequency of progress messages it sends (see "
36346 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
36347 "messages."
36348 msgstr ""
36349
36350 #. type: =head1
36351 #: ../src/guestfs.pod:2529
36352 msgid "LIBGUESTFS VERSION NUMBERS"
36353 msgstr ""
36354
36355 #. type: textblock
36356 #: ../src/guestfs.pod:2531
36357 msgid ""
36358 "Since April 2010, libguestfs has started to make separate development and "
36359 "stable releases, along with corresponding branches in our git repository.  "
36360 "These separate releases can be identified by version number:"
36361 msgstr ""
36362
36363 #. type: verbatim
36364 #: ../src/guestfs.pod:2536
36365 #, no-wrap
36366 msgid ""
36367 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
36368 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
36369 "       |\n"
36370 "       v\n"
36371 " 1  .  3  .  5\n"
36372 " ^           ^\n"
36373 " |           |\n"
36374 " |           `-------- sub-version\n"
36375 " |\n"
36376 " `------ always '1' because we don't change the ABI\n"
36377 "\n"
36378 msgstr ""
36379
36380 #. type: textblock
36381 #: ../src/guestfs.pod:2547
36382 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
36383 msgstr ""
36384
36385 #. type: textblock
36386 #: ../src/guestfs.pod:2549
36387 msgid ""
36388 "As time passes we cherry pick fixes from the development branch and backport "
36389 "those into the stable branch, the effect being that the stable branch should "
36390 "get more stable and less buggy over time.  So the stable releases are ideal "
36391 "for people who don't need new features but would just like the software to "
36392 "work."
36393 msgstr ""
36394
36395 #. type: textblock
36396 #: ../src/guestfs.pod:2555
36397 msgid "Our criteria for backporting changes are:"
36398 msgstr ""
36399
36400 #. type: textblock
36401 #: ../src/guestfs.pod:2561
36402 msgid ""
36403 "Documentation changes which don't affect any code are backported unless the "
36404 "documentation refers to a future feature which is not in stable."
36405 msgstr ""
36406
36407 #. type: textblock
36408 #: ../src/guestfs.pod:2567
36409 msgid ""
36410 "Bug fixes which are not controversial, fix obvious problems, and have been "
36411 "well tested are backported."
36412 msgstr ""
36413
36414 #. type: textblock
36415 #: ../src/guestfs.pod:2572
36416 msgid ""
36417 "Simple rearrangements of code which shouldn't affect how it works get "
36418 "backported.  This is so that the code in the two branches doesn't get too "
36419 "far out of step, allowing us to backport future fixes more easily."
36420 msgstr ""
36421
36422 #. type: textblock
36423 #: ../src/guestfs.pod:2578
36424 msgid ""
36425 "We I<don't> backport new features, new APIs, new tools etc, except in one "
36426 "exceptional case: the new feature is required in order to implement an "
36427 "important bug fix."
36428 msgstr ""
36429
36430 #. type: textblock
36431 #: ../src/guestfs.pod:2584
36432 msgid ""
36433 "A new stable branch starts when we think the new features in development are "
36434 "substantial and compelling enough over the current stable branch to warrant "
36435 "it.  When that happens we create new stable and development versions 1.N.0 "
36436 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
36437 "stable at this point, but by backporting fixes from development, that branch "
36438 "will stabilize over time."
36439 msgstr ""
36440
36441 #. type: =head1
36442 #: ../src/guestfs.pod:2592
36443 msgid "EXTENDING LIBGUESTFS"
36444 msgstr ""
36445
36446 #. type: =head2
36447 #: ../src/guestfs.pod:2594
36448 msgid "ADDING A NEW API ACTION"
36449 msgstr ""
36450
36451 #. type: textblock
36452 #: ../src/guestfs.pod:2596
36453 msgid ""
36454 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
36455 "documentation) are generated, and this makes it easy to extend the "
36456 "libguestfs API."
36457 msgstr ""
36458
36459 #. type: textblock
36460 #: ../src/guestfs.pod:2600
36461 msgid "To add a new API action there are two changes:"
36462 msgstr ""
36463
36464 #. type: textblock
36465 #: ../src/guestfs.pod:2606
36466 msgid ""
36467 "You need to add a description of the call (name, parameters, return type, "
36468 "tests, documentation) to C<generator/generator_actions.ml>."
36469 msgstr ""
36470
36471 #. type: textblock
36472 #: ../src/guestfs.pod:2609
36473 msgid ""
36474 "There are two sorts of API action, depending on whether the call goes "
36475 "through to the daemon in the appliance, or is serviced entirely by the "
36476 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
36477 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
36478 "an example of the latter, since a trace flag is maintained in the handle and "
36479 "all tracing is done on the library side."
36480 msgstr ""
36481
36482 #. type: textblock
36483 #: ../src/guestfs.pod:2617
36484 msgid ""
36485 "Most new actions are of the first type, and get added to the "
36486 "C<daemon_functions> list.  Each function has a unique procedure number used "
36487 "in the RPC protocol which is assigned to that action when we publish "
36488 "libguestfs and cannot be reused.  Take the latest procedure number and "
36489 "increment it."
36490 msgstr ""
36491
36492 #. type: textblock
36493 #: ../src/guestfs.pod:2623
36494 msgid ""
36495 "For library-only actions of the second type, add to the "
36496 "C<non_daemon_functions> list.  Since these functions are serviced by the "
36497 "library and do not travel over the RPC mechanism to the daemon, these "
36498 "functions do not need a procedure number, and so the procedure number is set "
36499 "to C<-1>."
36500 msgstr ""
36501
36502 #. type: textblock
36503 #: ../src/guestfs.pod:2631
36504 msgid "Implement the action (in C):"
36505 msgstr ""
36506
36507 #. type: textblock
36508 #: ../src/guestfs.pod:2633
36509 msgid ""
36510 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
36511 "C<daemon/> directory."
36512 msgstr ""
36513
36514 #. type: textblock
36515 #: ../src/guestfs.pod:2636
36516 msgid ""
36517 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
36518 "(note: double underscore) in the C<src/> directory."
36519 msgstr ""
36520
36521 #. type: textblock
36522 #: ../src/guestfs.pod:2639
36523 msgid "In either case, use another function as an example of what to do."
36524 msgstr ""
36525
36526 #. type: textblock
36527 #: ../src/guestfs.pod:2643
36528 msgid "After making these changes, use C<make> to compile."
36529 msgstr ""
36530
36531 #. type: textblock
36532 #: ../src/guestfs.pod:2645
36533 msgid ""
36534 "Note that you don't need to implement the RPC, language bindings, manual "
36535 "pages or anything else.  It's all automatically generated from the OCaml "
36536 "description."
36537 msgstr ""
36538
36539 #. type: =head2
36540 #: ../src/guestfs.pod:2649
36541 msgid "ADDING TESTS FOR AN API ACTION"
36542 msgstr ""
36543
36544 #. type: textblock
36545 #: ../src/guestfs.pod:2651
36546 msgid ""
36547 "You can supply zero or as many tests as you want per API call.  The tests "
36548 "can either be added as part of the API description (C<generator/"
36549 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
36550 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
36551 "slower, so if possible use the first method."
36552 msgstr ""
36553
36554 #. type: textblock
36555 #: ../src/guestfs.pod:2657
36556 msgid ""
36557 "The following describes the test environment used when you add an API test "
36558 "in C<generator_actions.ml>."
36559 msgstr ""
36560
36561 #. type: textblock
36562 #: ../src/guestfs.pod:2660
36563 msgid "The test environment has 4 block devices:"
36564 msgstr ""
36565
36566 #. type: =item
36567 #: ../src/guestfs.pod:2664
36568 msgid "C</dev/sda> 500MB"
36569 msgstr ""
36570
36571 #. type: textblock
36572 #: ../src/guestfs.pod:2666
36573 msgid "General block device for testing."
36574 msgstr ""
36575
36576 #. type: =item
36577 #: ../src/guestfs.pod:2668
36578 msgid "C</dev/sdb> 50MB"
36579 msgstr ""
36580
36581 #. type: textblock
36582 #: ../src/guestfs.pod:2670
36583 msgid ""
36584 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
36585 "operations."
36586 msgstr ""
36587
36588 #. type: =item
36589 #: ../src/guestfs.pod:2673
36590 msgid "C</dev/sdc> 10MB"
36591 msgstr ""
36592
36593 #. type: textblock
36594 #: ../src/guestfs.pod:2675
36595 msgid "Used in a few tests where two block devices are needed."
36596 msgstr ""
36597
36598 #. type: =item
36599 #: ../src/guestfs.pod:2677
36600 msgid "C</dev/sdd>"
36601 msgstr ""
36602
36603 #. type: textblock
36604 #: ../src/guestfs.pod:2679
36605 msgid "ISO with fixed content (see C<images/test.iso>)."
36606 msgstr ""
36607
36608 #. type: textblock
36609 #: ../src/guestfs.pod:2683
36610 msgid ""
36611 "To be able to run the tests in a reasonable amount of time, the libguestfs "
36612 "appliance and block devices are reused between tests.  So don't try testing "
36613 "L</guestfs_kill_subprocess> :-x"
36614 msgstr ""
36615
36616 #. type: textblock
36617 #: ../src/guestfs.pod:2687
36618 msgid ""
36619 "Each test starts with an initial scenario, selected using one of the "
36620 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
36621 "initialize the disks mentioned above in a particular way as documented in "
36622 "C<generator_types.ml>.  You should not assume anything about the previous "
36623 "contents of other disks that are not initialized."
36624 msgstr ""
36625
36626 #. type: textblock
36627 #: ../src/guestfs.pod:2693
36628 msgid ""
36629 "You can add a prerequisite clause to any individual test.  This is a run-"
36630 "time check, which, if it fails, causes the test to be skipped.  Useful if "
36631 "testing a command which might not work on all variations of libguestfs "
36632 "builds.  A test that has prerequisite of C<Always> means to run "
36633 "unconditionally."
36634 msgstr ""
36635
36636 #. type: textblock
36637 #: ../src/guestfs.pod:2699
36638 msgid ""
36639 "In addition, packagers can skip individual tests by setting environment "
36640 "variables before running C<make check>."
36641 msgstr ""
36642
36643 #. type: verbatim
36644 #: ../src/guestfs.pod:2702
36645 #, no-wrap
36646 msgid ""
36647 " SKIP_TEST_<CMD>_<NUM>=1\n"
36648 "\n"
36649 msgstr ""
36650
36651 #. type: textblock
36652 #: ../src/guestfs.pod:2704
36653 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
36654 msgstr ""
36655
36656 #. type: textblock
36657 #: ../src/guestfs.pod:2706
36658 msgid "or:"
36659 msgstr ""
36660
36661 #. type: verbatim
36662 #: ../src/guestfs.pod:2708
36663 #, no-wrap
36664 msgid ""
36665 " SKIP_TEST_<CMD>=1\n"
36666 "\n"
36667 msgstr ""
36668
36669 #. type: textblock
36670 #: ../src/guestfs.pod:2710
36671 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
36672 msgstr ""
36673
36674 #. type: textblock
36675 #: ../src/guestfs.pod:2712
36676 msgid "Packagers can run only certain tests by setting for example:"
36677 msgstr ""
36678
36679 #. type: verbatim
36680 #: ../src/guestfs.pod:2714
36681 #, no-wrap
36682 msgid ""
36683 " TEST_ONLY=\"vfs_type zerofree\"\n"
36684 "\n"
36685 msgstr ""
36686
36687 #. type: textblock
36688 #: ../src/guestfs.pod:2716
36689 msgid ""
36690 "See C<capitests/tests.c> for more details of how these environment variables "
36691 "work."
36692 msgstr ""
36693
36694 #. type: =head2
36695 #: ../src/guestfs.pod:2719
36696 msgid "DEBUGGING NEW API ACTIONS"
36697 msgstr ""
36698
36699 #. type: textblock
36700 #: ../src/guestfs.pod:2721
36701 msgid "Test new actions work before submitting them."
36702 msgstr ""
36703
36704 #. type: textblock
36705 #: ../src/guestfs.pod:2723
36706 msgid "You can use guestfish to try out new commands."
36707 msgstr ""
36708
36709 #. type: textblock
36710 #: ../src/guestfs.pod:2725
36711 msgid ""
36712 "Debugging the daemon is a problem because it runs inside a minimal "
36713 "environment.  However you can fprintf messages in the daemon to stderr, and "
36714 "they will show up if you use C<guestfish -v>."
36715 msgstr ""
36716
36717 #. type: =head2
36718 #: ../src/guestfs.pod:2729
36719 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
36720 msgstr ""
36721
36722 #. type: textblock
36723 #: ../src/guestfs.pod:2731
36724 msgid ""
36725 "Our C source code generally adheres to some basic code-formatting "
36726 "conventions.  The existing code base is not totally consistent on this "
36727 "front, but we do prefer that contributed code be formatted similarly.  In "
36728 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
36729 "indentation level, and other than that, follow the K&R style."
36730 msgstr ""
36731
36732 #. type: textblock
36733 #: ../src/guestfs.pod:2737
36734 msgid ""
36735 "If you use Emacs, add the following to one of one of your start-up files (e."
36736 "g., ~/.emacs), to help ensure that you get indentation right:"
36737 msgstr ""
36738
36739 #. type: verbatim
36740 #: ../src/guestfs.pod:2740
36741 #, no-wrap
36742 msgid ""
36743 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
36744 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
36745 " (add-hook 'find-file-hook\n"
36746 "     '(lambda () (if (and buffer-file-name\n"
36747 "                          (string-match \"/libguestfs\\\\>\"\n"
36748 "                              (buffer-file-name))\n"
36749 "                          (not (string-equal mode-name \"Change Log\"))\n"
36750 "                          (not (string-equal mode-name \"Makefile\")))\n"
36751 "                     (setq indent-tabs-mode nil))))\n"
36752 " \n"
36753 msgstr ""
36754
36755 #. type: verbatim
36756 #: ../src/guestfs.pod:2750
36757 #, no-wrap
36758 msgid ""
36759 " ;;; When editing C sources in libguestfs, use this style.\n"
36760 " (defun libguestfs-c-mode ()\n"
36761 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
36762 "   (interactive)\n"
36763 "   (c-set-style \"K&R\")\n"
36764 "   (setq c-indent-level 2)\n"
36765 "   (setq c-basic-offset 2))\n"
36766 " (add-hook 'c-mode-hook\n"
36767 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
36768 "                               (buffer-file-name))\n"
36769 "                           (libguestfs-c-mode))))\n"
36770 "\n"
36771 msgstr ""
36772
36773 #. type: textblock
36774 #: ../src/guestfs.pod:2762
36775 msgid "Enable warnings when compiling (and fix any problems this finds):"
36776 msgstr ""
36777
36778 #. type: verbatim
36779 #: ../src/guestfs.pod:2765
36780 #, no-wrap
36781 msgid ""
36782 " ./configure --enable-gcc-warnings\n"
36783 "\n"
36784 msgstr ""
36785
36786 #. type: textblock
36787 #: ../src/guestfs.pod:2767
36788 msgid "Useful targets are:"
36789 msgstr ""
36790
36791 #. type: verbatim
36792 #: ../src/guestfs.pod:2769
36793 #, no-wrap
36794 msgid ""
36795 " make syntax-check  # checks the syntax of the C code\n"
36796 " make check         # runs the test suite\n"
36797 "\n"
36798 msgstr ""
36799
36800 #. type: =head2
36801 #: ../src/guestfs.pod:2772
36802 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
36803 msgstr ""
36804
36805 #. type: textblock
36806 #: ../src/guestfs.pod:2774
36807 msgid ""
36808 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
36809 "which are used to do shell quoting."
36810 msgstr ""
36811
36812 #. type: =item
36813 #: ../src/guestfs.pod:2779
36814 msgid "%Q"
36815 msgstr ""
36816
36817 #. type: textblock
36818 #: ../src/guestfs.pod:2781
36819 msgid ""
36820 "Simple shell quoted string.  Any spaces or other shell characters are "
36821 "escaped for you."
36822 msgstr ""
36823
36824 #. type: =item
36825 #: ../src/guestfs.pod:2784
36826 msgid "%R"
36827 msgstr ""
36828
36829 #. type: textblock
36830 #: ../src/guestfs.pod:2786
36831 msgid ""
36832 "Same as C<%Q> except the string is treated as a path which is prefixed by "
36833 "the sysroot."
36834 msgstr ""
36835
36836 #. type: verbatim
36837 #: ../src/guestfs.pod:2793
36838 #, no-wrap
36839 msgid ""
36840 " asprintf (&cmd, \"cat %R\", path);\n"
36841 "\n"
36842 msgstr ""
36843
36844 #. type: textblock
36845 #: ../src/guestfs.pod:2795
36846 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
36847 msgstr ""
36848
36849 #. type: textblock
36850 #: ../src/guestfs.pod:2797
36851 msgid ""
36852 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
36853 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
36854 "they are not passed via the shell (instead, straight to exec).  You probably "
36855 "want to use the C<sysroot_path()> function however."
36856 msgstr ""
36857
36858 #. type: =head2
36859 #: ../src/guestfs.pod:2803
36860 msgid "SUBMITTING YOUR NEW API ACTIONS"
36861 msgstr ""
36862
36863 #. type: textblock
36864 #: ../src/guestfs.pod:2805
36865 msgid ""
36866 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
36867 "libguestfs> and CC to L<rjones@redhat.com>."
36868 msgstr ""
36869
36870 #. type: =head2
36871 #: ../src/guestfs.pod:2809
36872 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
36873 msgstr ""
36874
36875 #. type: textblock
36876 #: ../src/guestfs.pod:2811
36877 msgid "We support i18n (gettext anyhow) in the library."
36878 msgstr ""
36879
36880 #. type: textblock
36881 #: ../src/guestfs.pod:2813
36882 msgid ""
36883 "However many messages come from the daemon, and we don't translate those at "
36884 "the moment.  One reason is that the appliance generally has all locale files "
36885 "removed from it, because they take up a lot of space.  So we'd have to readd "
36886 "some of those, as well as copying our PO files into the appliance."
36887 msgstr ""
36888
36889 #. type: textblock
36890 #: ../src/guestfs.pod:2819
36891 msgid ""
36892 "Debugging messages are never translated, since they are intended for the "
36893 "programmers."
36894 msgstr ""
36895
36896 #. type: =head2
36897 #: ../src/guestfs.pod:2822
36898 msgid "SOURCE CODE SUBDIRECTORIES"
36899 msgstr ""
36900
36901 #. type: textblock
36902 #: ../src/guestfs.pod:2828
36903 msgid "The libguestfs appliance, build scripts and so on."
36904 msgstr ""
36905
36906 #. type: =item
36907 #: ../src/guestfs.pod:2830
36908 msgid "C<capitests>"
36909 msgstr ""
36910
36911 #. type: textblock
36912 #: ../src/guestfs.pod:2832
36913 msgid "Automated tests of the C API."
36914 msgstr ""
36915
36916 #. type: =item
36917 #: ../src/guestfs.pod:2834
36918 msgid "C<cat>"
36919 msgstr ""
36920
36921 #. type: textblock
36922 #: ../src/guestfs.pod:2836
36923 msgid ""
36924 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
36925 "documentation."
36926 msgstr ""
36927
36928 #. type: =item
36929 #: ../src/guestfs.pod:2839
36930 msgid "C<caution>"
36931 msgstr ""
36932
36933 #. type: textblock
36934 #: ../src/guestfs.pod:2841
36935 msgid ""
36936 "Safety and liveness tests of components that libguestfs depends upon (not of "
36937 "libguestfs itself).  Mainly this is for qemu and the kernel."
36938 msgstr ""
36939
36940 #. type: =item
36941 #: ../src/guestfs.pod:2844
36942 msgid "C<contrib>"
36943 msgstr ""
36944
36945 #. type: textblock
36946 #: ../src/guestfs.pod:2846
36947 msgid "Outside contributions, experimental parts."
36948 msgstr ""
36949
36950 #. type: =item
36951 #: ../src/guestfs.pod:2848
36952 msgid "C<daemon>"
36953 msgstr ""
36954
36955 #. type: textblock
36956 #: ../src/guestfs.pod:2850
36957 msgid ""
36958 "The daemon that runs inside the libguestfs appliance and carries out actions."
36959 msgstr ""
36960
36961 #. type: =item
36962 #: ../src/guestfs.pod:2853
36963 msgid "C<df>"
36964 msgstr ""
36965
36966 #. type: textblock
36967 #: ../src/guestfs.pod:2855
36968 msgid "L<virt-df(1)> command and documentation."
36969 msgstr ""
36970
36971 #. type: =item
36972 #: ../src/guestfs.pod:2857
36973 msgid "C<edit>"
36974 msgstr ""
36975
36976 #. type: textblock
36977 #: ../src/guestfs.pod:2859
36978 msgid "L<virt-edit(1)> command and documentation."
36979 msgstr ""
36980
36981 #. type: =item
36982 #: ../src/guestfs.pod:2861
36983 msgid "C<examples>"
36984 msgstr ""
36985
36986 #. type: textblock
36987 #: ../src/guestfs.pod:2863
36988 msgid "C API example code."
36989 msgstr ""
36990
36991 #. type: =item
36992 #: ../src/guestfs.pod:2865
36993 msgid "C<fish>"
36994 msgstr ""
36995
36996 #. type: textblock
36997 #: ../src/guestfs.pod:2867
36998 msgid ""
36999 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
37000 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
37001 "L<virt-tar-out(1)>."
37002 msgstr ""
37003
37004 #. type: =item
37005 #: ../src/guestfs.pod:2871
37006 msgid "C<fuse>"
37007 msgstr ""
37008
37009 #. type: textblock
37010 #: ../src/guestfs.pod:2873
37011 msgid ""
37012 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
37013 msgstr ""
37014
37015 #. type: =item
37016 #: ../src/guestfs.pod:2875
37017 msgid "C<generator>"
37018 msgstr ""
37019
37020 #. type: textblock
37021 #: ../src/guestfs.pod:2877
37022 msgid ""
37023 "The crucially important generator, used to automatically generate large "
37024 "amounts of boilerplate C code for things like RPC and bindings."
37025 msgstr ""
37026
37027 #. type: =item
37028 #: ../src/guestfs.pod:2880
37029 msgid "C<images>"
37030 msgstr ""
37031
37032 #. type: textblock
37033 #: ../src/guestfs.pod:2882
37034 msgid "Files used by the test suite."
37035 msgstr ""
37036
37037 #. type: textblock
37038 #: ../src/guestfs.pod:2884
37039 msgid "Some \"phony\" guest images which we test against."
37040 msgstr ""
37041
37042 #. type: =item
37043 #: ../src/guestfs.pod:2886
37044 msgid "C<inspector>"
37045 msgstr ""
37046
37047 #. type: textblock
37048 #: ../src/guestfs.pod:2888
37049 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
37050 msgstr ""
37051
37052 #. type: =item
37053 #: ../src/guestfs.pod:2890
37054 msgid "C<logo>"
37055 msgstr ""
37056
37057 #. type: textblock
37058 #: ../src/guestfs.pod:2892
37059 msgid "Logo used on the website.  The fish is called Arthur by the way."
37060 msgstr ""
37061
37062 #. type: =item
37063 #: ../src/guestfs.pod:2894
37064 msgid "C<m4>"
37065 msgstr ""
37066
37067 #. type: textblock
37068 #: ../src/guestfs.pod:2896
37069 msgid "M4 macros used by autoconf."
37070 msgstr ""
37071
37072 #. type: =item
37073 #: ../src/guestfs.pod:2898
37074 msgid "C<po>"
37075 msgstr ""
37076
37077 #. type: textblock
37078 #: ../src/guestfs.pod:2900
37079 msgid "Translations of simple gettext strings."
37080 msgstr ""
37081
37082 #. type: =item
37083 #: ../src/guestfs.pod:2902
37084 msgid "C<po-docs>"
37085 msgstr ""
37086
37087 #. type: textblock
37088 #: ../src/guestfs.pod:2904
37089 msgid ""
37090 "The build infrastructure and PO files for translations of manpages and POD "
37091 "files.  Eventually this will be combined with the C<po> directory, but that "
37092 "is rather complicated."
37093 msgstr ""
37094
37095 #. type: =item
37096 #: ../src/guestfs.pod:2908
37097 msgid "C<regressions>"
37098 msgstr ""
37099
37100 #. type: textblock
37101 #: ../src/guestfs.pod:2910
37102 msgid "Regression tests."
37103 msgstr ""
37104
37105 #. type: =item
37106 #: ../src/guestfs.pod:2912
37107 msgid "C<rescue>"
37108 msgstr ""
37109
37110 #. type: textblock
37111 #: ../src/guestfs.pod:2914
37112 msgid "L<virt-rescue(1)> command and documentation."
37113 msgstr ""
37114
37115 #. type: =item
37116 #: ../src/guestfs.pod:2916
37117 msgid "C<src>"
37118 msgstr ""
37119
37120 #. type: textblock
37121 #: ../src/guestfs.pod:2918
37122 msgid "Source code to the C library."
37123 msgstr ""
37124
37125 #. type: =item
37126 #: ../src/guestfs.pod:2920
37127 msgid "C<tools>"
37128 msgstr ""
37129
37130 #. type: textblock
37131 #: ../src/guestfs.pod:2922
37132 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
37133 msgstr ""
37134
37135 #. type: =item
37136 #: ../src/guestfs.pod:2924
37137 msgid "C<test-tool>"
37138 msgstr ""
37139
37140 #. type: textblock
37141 #: ../src/guestfs.pod:2926
37142 msgid ""
37143 "Test tool for end users to test if their qemu/kernel combination will work "
37144 "with libguestfs."
37145 msgstr ""
37146
37147 #. type: =item
37148 #: ../src/guestfs.pod:2929
37149 msgid "C<csharp>"
37150 msgstr ""
37151
37152 #. type: =item
37153 #: ../src/guestfs.pod:2931
37154 msgid "C<erlang>"
37155 msgstr ""
37156
37157 #. type: =item
37158 #: ../src/guestfs.pod:2933
37159 msgid "C<haskell>"
37160 msgstr ""
37161
37162 #. type: =item
37163 #: ../src/guestfs.pod:2935
37164 msgid "C<java>"
37165 msgstr ""
37166
37167 #. type: =item
37168 #: ../src/guestfs.pod:2937
37169 msgid "C<ocaml>"
37170 msgstr ""
37171
37172 #. type: =item
37173 #: ../src/guestfs.pod:2939
37174 msgid "C<php>"
37175 msgstr ""
37176
37177 #. type: =item
37178 #: ../src/guestfs.pod:2941
37179 msgid "C<perl>"
37180 msgstr ""
37181
37182 #. type: =item
37183 #: ../src/guestfs.pod:2943
37184 msgid "C<python>"
37185 msgstr ""
37186
37187 #. type: =item
37188 #: ../src/guestfs.pod:2945
37189 msgid "C<ruby>"
37190 msgstr ""
37191
37192 #. type: textblock
37193 #: ../src/guestfs.pod:2947
37194 msgid "Language bindings."
37195 msgstr ""
37196
37197 #. type: =head2
37198 #: ../src/guestfs.pod:2951
37199 msgid "MAKING A STABLE RELEASE"
37200 msgstr ""
37201
37202 #. type: textblock
37203 #: ../src/guestfs.pod:2953
37204 msgid ""
37205 "When we make a stable release, there are several steps documented here.  See "
37206 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
37207 "branch policy."
37208 msgstr ""
37209
37210 #. type: textblock
37211 #: ../src/guestfs.pod:2961
37212 msgid ""
37213 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
37214 msgstr ""
37215
37216 #. type: textblock
37217 #: ../src/guestfs.pod:2966
37218 msgid "Finalize RELEASE-NOTES."
37219 msgstr ""
37220
37221 #. type: textblock
37222 #: ../src/guestfs.pod:2970
37223 msgid "Update ROADMAP."
37224 msgstr ""
37225
37226 #. type: textblock
37227 #: ../src/guestfs.pod:2974
37228 msgid "Run C<src/api-support/update-from-tarballs.sh>."
37229 msgstr ""
37230
37231 #. type: textblock
37232 #: ../src/guestfs.pod:2978
37233 msgid "Push and pull from Transifex."
37234 msgstr ""
37235
37236 #. type: textblock
37237 #: ../src/guestfs.pod:2980
37238 msgid "Run:"
37239 msgstr ""
37240
37241 #. type: verbatim
37242 #: ../src/guestfs.pod:2982
37243 #, no-wrap
37244 msgid ""
37245 " tx push -s\n"
37246 "\n"
37247 msgstr ""
37248
37249 #. type: textblock
37250 #: ../src/guestfs.pod:2984
37251 msgid "to push the latest POT files to Transifex.  Then run:"
37252 msgstr ""
37253
37254 #. type: verbatim
37255 #: ../src/guestfs.pod:2986
37256 #, no-wrap
37257 msgid ""
37258 " ./tx-pull.sh\n"
37259 "\n"
37260 msgstr ""
37261
37262 #. type: textblock
37263 #: ../src/guestfs.pod:2988
37264 msgid "which is a wrapper to pull the latest translated C<*.po> files."
37265 msgstr ""
37266
37267 #. type: textblock
37268 #: ../src/guestfs.pod:2992
37269 msgid ""
37270 "Create new stable and development directories under L<http://libguestfs.org/"
37271 "download>."
37272 msgstr ""
37273
37274 #. type: textblock
37275 #: ../src/guestfs.pod:2997
37276 msgid "Create the branch in git:"
37277 msgstr ""
37278
37279 #. type: verbatim
37280 #: ../src/guestfs.pod:2999
37281 #, no-wrap
37282 msgid ""
37283 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
37284 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
37285 " git branch stable-1.XX\n"
37286 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
37287 "\n"
37288 msgstr ""
37289
37290 #. type: =head1
37291 #: ../src/guestfs.pod:3006
37292 msgid "LIMITS"
37293 msgstr ""
37294
37295 #. type: =head2
37296 #: ../src/guestfs.pod:3008
37297 msgid "PROTOCOL LIMITS"
37298 msgstr ""
37299
37300 #. type: textblock
37301 #: ../src/guestfs.pod:3010
37302 msgid ""
37303 "Internally libguestfs uses a message-based protocol to pass API calls and "
37304 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
37305 "plenty more detail about this).  The maximum message size used by the "
37306 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
37307 "aware of this limit.  The API calls which may be affected are individually "
37308 "documented, with a link back to this section of the documentation."
37309 msgstr ""
37310
37311 #. type: textblock
37312 #: ../src/guestfs.pod:3018
37313 msgid ""
37314 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
37315 "a simple string.  Because this string is at some point internally encoded as "
37316 "a message, the maximum size that it can return is slightly under 4 MB.  If "
37317 "the requested file is larger than this then you will get an error."
37318 msgstr ""
37319
37320 #. type: textblock
37321 #: ../src/guestfs.pod:3024
37322 msgid ""
37323 "In order to transfer large files into and out of the guest filesystem, you "
37324 "need to use particular calls that support this.  The sections L</UPLOADING> "
37325 "and L</DOWNLOADING> document how to do this."
37326 msgstr ""
37327
37328 #. type: textblock
37329 #: ../src/guestfs.pod:3028
37330 msgid ""
37331 "You might also consider mounting the disk image using our FUSE filesystem "
37332 "support (L<guestmount(1)>)."
37333 msgstr ""
37334
37335 #. type: =head2
37336 #: ../src/guestfs.pod:3031
37337 msgid "MAXIMUM NUMBER OF DISKS"
37338 msgstr ""
37339
37340 #. type: textblock
37341 #: ../src/guestfs.pod:3033
37342 msgid "When using virtio disks (the default) the current limit is B<25> disks."
37343 msgstr ""
37344
37345 #. type: textblock
37346 #: ../src/guestfs.pod:3036
37347 msgid ""
37348 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
37349 "slots.  However febootstrap only understands disks with names C</dev/vda> "
37350 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
37351 "purposes."
37352 msgstr ""
37353
37354 #. type: textblock
37355 #: ../src/guestfs.pod:3041
37356 msgid ""
37357 "We are working to substantially raise this limit in future versions but it "
37358 "requires complex changes to qemu."
37359 msgstr ""
37360
37361 #. type: textblock
37362 #: ../src/guestfs.pod:3044
37363 msgid ""
37364 "In future versions of libguestfs it should also be possible to \"hot plug\" "
37365 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
37366 "requires changes to qemu."
37367 msgstr ""
37368
37369 #. type: =head2
37370 #: ../src/guestfs.pod:3048
37371 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
37372 msgstr ""
37373
37374 #. type: textblock
37375 #: ../src/guestfs.pod:3050
37376 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
37377 msgstr ""
37378
37379 #. type: textblock
37380 #: ../src/guestfs.pod:3052
37381 msgid ""
37382 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
37383 "vda>, and C</dev/vda1> through C</dev/vda15>)."
37384 msgstr ""
37385
37386 #. type: textblock
37387 #: ../src/guestfs.pod:3055
37388 msgid ""
37389 "If you attach a disk with more than 15 partitions, the extra partitions are "
37390 "ignored by libguestfs."
37391 msgstr ""
37392
37393 #. type: =head2
37394 #: ../src/guestfs.pod:3058
37395 msgid "MAXIMUM SIZE OF A DISK"
37396 msgstr ""
37397
37398 #. type: textblock
37399 #: ../src/guestfs.pod:3060
37400 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
37401 msgstr ""
37402
37403 #. type: textblock
37404 #: ../src/guestfs.pod:3062
37405 msgid ""
37406 "We have tested block devices up to 1 exabyte (2**60 or "
37407 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
37408 "filesystem."
37409 msgstr ""
37410
37411 #. type: textblock
37412 #: ../src/guestfs.pod:3066
37413 msgid ""
37414 "Although libguestfs probably does not impose any limit, the underlying host "
37415 "storage will.  If you store disk images on a host ext4 filesystem, then the "
37416 "maximum size will be limited by the maximum ext4 file size (currently 16 "
37417 "TB).  If you store disk images as host logical volumes then you are limited "
37418 "by the maximum size of an LV."
37419 msgstr ""
37420
37421 #. type: textblock
37422 #: ../src/guestfs.pod:3072
37423 msgid ""
37424 "For the hugest disk image files, we recommend using XFS on the host for "
37425 "storage."
37426 msgstr ""
37427
37428 #. type: =head2
37429 #: ../src/guestfs.pod:3075
37430 msgid "MAXIMUM SIZE OF A PARTITION"
37431 msgstr ""
37432
37433 #. type: textblock
37434 #: ../src/guestfs.pod:3077
37435 msgid ""
37436 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
37437 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
37438 "address a partition located beyond 2 TB on the disk."
37439 msgstr ""
37440
37441 #. type: textblock
37442 #: ../src/guestfs.pod:3081
37443 msgid ""
37444 "It is recommended that you use GPT partitions on disks which are larger than "
37445 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
37446 "which are theoretically larger than the largest disk we could support."
37447 msgstr ""
37448
37449 #. type: =head2
37450 #: ../src/guestfs.pod:3086
37451 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
37452 msgstr ""
37453
37454 #. type: textblock
37455 #: ../src/guestfs.pod:3088
37456 msgid ""
37457 "This depends on the filesystem type.  libguestfs itself does not impose any "
37458 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
37459 "what these limits are."
37460 msgstr ""
37461
37462 #. type: =head2
37463 #: ../src/guestfs.pod:3092
37464 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
37465 msgstr ""
37466
37467 #. type: textblock
37468 #: ../src/guestfs.pod:3094
37469 msgid ""
37470 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
37471 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
37472 "uploads and downloads."
37473 msgstr ""
37474
37475 #. type: =head2
37476 #: ../src/guestfs.pod:3098
37477 msgid "INSPECTION LIMITS"
37478 msgstr ""
37479
37480 #. type: textblock
37481 #: ../src/guestfs.pod:3100
37482 msgid ""
37483 "The inspection code has several arbitrary limits on things like the size of "
37484 "Windows Registry hive it will read, and the length of product name.  These "
37485 "are intended to stop a malicious guest from consuming arbitrary amounts of "
37486 "memory and disk space on the host, and should not be reached in practice.  "
37487 "See the source code for more information."
37488 msgstr ""
37489
37490 #. type: textblock
37491 #: ../src/guestfs.pod:3126
37492 msgid ""
37493 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
37494 "effect as calling C<guestfs_set_verbose (g, 1)>."
37495 msgstr ""
37496
37497 #. type: textblock
37498 #: ../src/guestfs.pod:3138
37499 msgid ""
37500 "Set the path that libguestfs uses to search for a supermin appliance.  See "
37501 "the discussion of paths in section L</PATH> above."
37502 msgstr ""
37503
37504 #. type: textblock
37505 #: ../src/guestfs.pod:3147
37506 msgid "See also L</QEMU WRAPPERS> above."
37507 msgstr ""
37508
37509 #. type: textblock
37510 #: ../src/guestfs.pod:3151
37511 msgid ""
37512 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
37513 "effect as calling C<guestfs_set_trace (g, 1)>."
37514 msgstr ""
37515
37516 #. type: textblock
37517 #: ../src/guestfs.pod:3169
37518 msgid ""
37519 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
37520 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
37521 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
37522 "L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, "
37523 "L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)"
37524 ">, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-tar(1)>, "
37525 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
37526 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://"
37527 "libguestfs.org/>."
37528 msgstr ""
37529
37530 #. type: textblock
37531 #: ../src/guestfs.pod:3200
37532 msgid ""
37533 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
37534 "(8)>, L<disktype(1)>."
37535 msgstr ""
37536
37537 #. type: =head1
37538 #: ../src/guestfs.pod:3207 ../tools/virt-make-fs.pl:553
37539 #: ../tools/virt-win-reg.pl:761
37540 msgid "BUGS"
37541 msgstr ""
37542
37543 #. type: textblock
37544 #: ../src/guestfs.pod:3209
37545 msgid "To get a list of bugs against libguestfs use this link:"
37546 msgstr ""
37547
37548 #. type: textblock
37549 #: ../src/guestfs.pod:3211
37550 msgid ""
37551 "L<https://bugzilla.redhat.com/buglist.cgi?"
37552 "component=libguestfs&product=Virtualization+Tools>"
37553 msgstr ""
37554
37555 #. type: textblock
37556 #: ../src/guestfs.pod:3213
37557 msgid "To report a new bug against libguestfs use this link:"
37558 msgstr ""
37559
37560 #. type: textblock
37561 #: ../src/guestfs.pod:3215
37562 msgid ""
37563 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
37564 "component=libguestfs&product=Virtualization+Tools>"
37565 msgstr ""
37566
37567 #. type: textblock
37568 #: ../src/guestfs.pod:3217
37569 msgid "When reporting a bug, please check:"
37570 msgstr ""
37571
37572 #. type: textblock
37573 #: ../src/guestfs.pod:3223
37574 msgid "That the bug hasn't been reported already."
37575 msgstr ""
37576
37577 #. type: textblock
37578 #: ../src/guestfs.pod:3227
37579 msgid "That you are testing a recent version."
37580 msgstr ""
37581
37582 #. type: textblock
37583 #: ../src/guestfs.pod:3231
37584 msgid "Describe the bug accurately, and give a way to reproduce it."
37585 msgstr ""
37586
37587 #. type: textblock
37588 #: ../src/guestfs.pod:3235
37589 msgid ""
37590 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
37591 "bug report."
37592 msgstr ""
37593
37594 #. type: textblock
37595 #: ../test-tool/libguestfs-test-tool.pod:5
37596 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
37597 msgstr ""
37598
37599 #. type: verbatim
37600 #: ../test-tool/libguestfs-test-tool.pod:9
37601 #, no-wrap
37602 msgid ""
37603 " libguestfs-test-tool [--options]\n"
37604 "\n"
37605 msgstr ""
37606
37607 #. type: textblock
37608 #: ../test-tool/libguestfs-test-tool.pod:13
37609 msgid ""
37610 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
37611 "to check basic libguestfs functionality is working.  This is needed because "
37612 "libguestfs occasionally breaks for reasons beyond our control: usually "
37613 "because of changes in the underlying qemu or kernel packages, or the host "
37614 "environment."
37615 msgstr ""
37616
37617 #. type: textblock
37618 #: ../test-tool/libguestfs-test-tool.pod:19
37619 msgid "If you suspect a problem in libguestfs, then just run:"
37620 msgstr ""
37621
37622 #. type: verbatim
37623 #: ../test-tool/libguestfs-test-tool.pod:21
37624 #, no-wrap
37625 msgid ""
37626 " libguestfs-test-tool\n"
37627 "\n"
37628 msgstr ""
37629
37630 #. type: textblock
37631 #: ../test-tool/libguestfs-test-tool.pod:23
37632 msgid "It will print lots of diagnostic messages."
37633 msgstr ""
37634
37635 #. type: textblock
37636 #: ../test-tool/libguestfs-test-tool.pod:25
37637 msgid "If it runs to completion successfully, you will see this near the end:"
37638 msgstr ""
37639
37640 #. type: verbatim
37641 #: ../test-tool/libguestfs-test-tool.pod:27
37642 #, no-wrap
37643 msgid ""
37644 " ===== TEST FINISHED OK =====\n"
37645 "\n"
37646 msgstr ""
37647
37648 #. type: textblock
37649 #: ../test-tool/libguestfs-test-tool.pod:29
37650 msgid "and the test tool will exit with code 0."
37651 msgstr ""
37652
37653 #. type: textblock
37654 #: ../test-tool/libguestfs-test-tool.pod:31
37655 msgid ""
37656 "If it fails (and/or exits with non-zero error code), please paste the "
37657 "I<complete, unedited> output of the test tool into a bug report.  More "
37658 "information about reporting bugs can be found on the L<http://libguestfs.org/"
37659 "> website."
37660 msgstr ""
37661
37662 #. type: textblock
37663 #: ../test-tool/libguestfs-test-tool.pod:42
37664 msgid "Display short usage information and exit."
37665 msgstr ""
37666
37667 #. type: =item
37668 #: ../test-tool/libguestfs-test-tool.pod:44
37669 msgid "B<--qemu qemu_binary>"
37670 msgstr ""
37671
37672 #. type: textblock
37673 #: ../test-tool/libguestfs-test-tool.pod:46
37674 msgid ""
37675 "If you have downloaded another qemu binary, point this option at the full "
37676 "path of the binary to try it."
37677 msgstr ""
37678
37679 #. type: =item
37680 #: ../test-tool/libguestfs-test-tool.pod:49
37681 msgid "B<--qemudir qemu_source_dir>"
37682 msgstr ""
37683
37684 #. type: textblock
37685 #: ../test-tool/libguestfs-test-tool.pod:51
37686 msgid ""
37687 "If you have compiled qemu from source, point this option at the source "
37688 "directory to try it."
37689 msgstr ""
37690
37691 #. type: =item
37692 #: ../test-tool/libguestfs-test-tool.pod:54
37693 msgid "B<-t N>"
37694 msgstr ""
37695
37696 #. type: =item
37697 #: ../test-tool/libguestfs-test-tool.pod:56
37698 msgid "B<--timeout N>"
37699 msgstr ""
37700
37701 #. type: textblock
37702 #: ../test-tool/libguestfs-test-tool.pod:58
37703 msgid ""
37704 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
37705 "minutes) which does not usually need to be adjusted."
37706 msgstr ""
37707
37708 #. type: =head1
37709 #: ../test-tool/libguestfs-test-tool.pod:63
37710 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
37711 msgstr ""
37712
37713 #. type: textblock
37714 #: ../test-tool/libguestfs-test-tool.pod:65
37715 msgid ""
37716 "If you have compiled another version of qemu from source and would like to "
37717 "try that, then you can use the I<--qemudir> option to point to the qemu "
37718 "source directory."
37719 msgstr ""
37720
37721 #. type: textblock
37722 #: ../test-tool/libguestfs-test-tool.pod:69
37723 msgid ""
37724 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
37725 "option to point to the binary."
37726 msgstr ""
37727
37728 #. type: textblock
37729 #: ../test-tool/libguestfs-test-tool.pod:72
37730 msgid ""
37731 "Note when using these options, you can ignore the business of qemu wrapper "
37732 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
37733 "wrapper script for you if one is needed."
37734 msgstr ""
37735
37736 #. type: =head1
37737 #: ../test-tool/libguestfs-test-tool.pod:76
37738 msgid "TRYING OUT A DIFFERENT KERNEL"
37739 msgstr ""
37740
37741 #. type: textblock
37742 #: ../test-tool/libguestfs-test-tool.pod:78
37743 msgid ""
37744 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
37745 "libguestfs tries.  You do this by setting the environment variables "
37746 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
37747 msgstr ""
37748
37749 #. type: textblock
37750 #: ../test-tool/libguestfs-test-tool.pod:82
37751 msgid ""
37752 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
37753 "information."
37754 msgstr ""
37755
37756 #. type: =head1
37757 #: ../test-tool/libguestfs-test-tool.pod:85
37758 msgid "SELF-DIAGNOSIS"
37759 msgstr ""
37760
37761 #. type: textblock
37762 #: ../test-tool/libguestfs-test-tool.pod:87
37763 msgid ""
37764 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
37765 "produced by libguestfs-test-tool and/or possible errors."
37766 msgstr ""
37767
37768 #. type: textblock
37769 #: ../test-tool/libguestfs-test-tool.pod:92
37770 msgid ""
37771 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
37772 "I<1> if there was an error."
37773 msgstr ""
37774
37775 #. type: textblock
37776 #: ../test-tool/libguestfs-test-tool.pod:97
37777 msgid ""
37778 "For the full list of environment variables which may affect libguestfs, "
37779 "please see the L<guestfs(3)> manual page."
37780 msgstr ""
37781
37782 #. type: textblock
37783 #: ../test-tool/libguestfs-test-tool.pod:102
37784 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
37785 msgstr ""
37786
37787 #. type: textblock
37788 #: ../tools/virt-list-filesystems.pl:32
37789 msgid ""
37790 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
37791 msgstr ""
37792
37793 #. type: verbatim
37794 #: ../tools/virt-list-filesystems.pl:36
37795 #, no-wrap
37796 msgid ""
37797 " virt-list-filesystems [--options] domname\n"
37798 "\n"
37799 msgstr ""
37800
37801 #. type: verbatim
37802 #: ../tools/virt-list-filesystems.pl:38
37803 #, no-wrap
37804 msgid ""
37805 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
37806 "\n"
37807 msgstr ""
37808
37809 #. type: textblock
37810 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
37811 msgid ""
37812 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
37813 "replacement."
37814 msgstr ""
37815
37816 #. type: textblock
37817 #: ../tools/virt-list-filesystems.pl:45
37818 msgid ""
37819 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
37820 "are contained in a virtual machine or disk image."
37821 msgstr ""
37822
37823 #. type: textblock
37824 #: ../tools/virt-list-filesystems.pl:49
37825 msgid ""
37826 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
37827 "functionality.  For more complex cases you should look at the L<guestfish(1)"
37828 "> tool."
37829 msgstr ""
37830
37831 #. type: textblock
37832 #: ../tools/virt-list-filesystems.pl:112
37833 msgid ""
37834 "With this option, C<virt-list-filesystems> displays the type of each "
37835 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
37836 msgstr ""
37837
37838 #. type: =item
37839 #: ../tools/virt-list-filesystems.pl:119
37840 msgid "B<-a>"
37841 msgstr ""
37842
37843 #. type: textblock
37844 #: ../tools/virt-list-filesystems.pl:123
37845 msgid ""
37846 "Normally we only show mountable filesystems.  If this option is given then "
37847 "swap devices are shown too."
37848 msgstr ""
37849
37850 #. type: textblock
37851 #: ../tools/virt-list-filesystems.pl:197
37852 msgid ""
37853 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
37854 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
37855 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
37856 msgstr ""
37857
37858 #. type: textblock
37859 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
37860 msgid "Copyright (C) 2009 Red Hat Inc."
37861 msgstr ""
37862
37863 #. type: textblock
37864 #: ../tools/virt-list-partitions.pl:32
37865 msgid ""
37866 "virt-list-partitions - List partitions in a virtual machine or disk image"
37867 msgstr ""
37868
37869 #. type: verbatim
37870 #: ../tools/virt-list-partitions.pl:36
37871 #, no-wrap
37872 msgid ""
37873 " virt-list-partitions [--options] domname\n"
37874 "\n"
37875 msgstr ""
37876
37877 #. type: verbatim
37878 #: ../tools/virt-list-partitions.pl:38
37879 #, no-wrap
37880 msgid ""
37881 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
37882 "\n"
37883 msgstr ""
37884
37885 #. type: textblock
37886 #: ../tools/virt-list-partitions.pl:45
37887 msgid ""
37888 "C<virt-list-partitions> is a command line tool to list the partitions that "
37889 "are contained in a virtual machine or disk image.  It is mainly useful as a "
37890 "first step to using L<virt-resize(1)>."
37891 msgstr ""
37892
37893 #. type: textblock
37894 #: ../tools/virt-list-partitions.pl:50
37895 msgid ""
37896 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
37897 "functionality.  For more complex cases you should look at the L<guestfish(1)"
37898 "> tool."
37899 msgstr ""
37900
37901 #. type: textblock
37902 #: ../tools/virt-list-partitions.pl:113
37903 msgid "Show sizes in human-readable form (eg. \"1G\")."
37904 msgstr ""
37905
37906 #. type: textblock
37907 #: ../tools/virt-list-partitions.pl:123
37908 msgid ""
37909 "With this option, C<virt-list-partitions> displays the type and size of each "
37910 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
37911 msgstr ""
37912
37913 #. type: =item
37914 #: ../tools/virt-list-partitions.pl:130
37915 msgid "B<-t>"
37916 msgstr ""
37917
37918 #. type: =item
37919 #: ../tools/virt-list-partitions.pl:132
37920 msgid "B<--total>"
37921 msgstr ""
37922
37923 #. type: textblock
37924 #: ../tools/virt-list-partitions.pl:134
37925 msgid ""
37926 "Display the total size of each block device (as a separate row or rows)."
37927 msgstr ""
37928
37929 #. type: textblock
37930 #: ../tools/virt-list-partitions.pl:267
37931 msgid ""
37932 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
37933 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
37934 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
37935 msgstr ""
37936
37937 #. type: textblock
37938 #: ../tools/virt-list-partitions.pl:283
37939 msgid "Copyright (C) 2009-2010 Red Hat Inc."
37940 msgstr ""
37941
37942 #. type: textblock
37943 #: ../tools/virt-make-fs.pl:37
37944 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
37945 msgstr ""
37946
37947 #. type: verbatim
37948 #: ../tools/virt-make-fs.pl:41
37949 #, no-wrap
37950 msgid ""
37951 " virt-make-fs [--options] input.tar output.img\n"
37952 "\n"
37953 msgstr ""
37954
37955 #. type: verbatim
37956 #: ../tools/virt-make-fs.pl:43
37957 #, no-wrap
37958 msgid ""
37959 " virt-make-fs [--options] input.tar.gz output.img\n"
37960 "\n"
37961 msgstr ""
37962
37963 #. type: verbatim
37964 #: ../tools/virt-make-fs.pl:45
37965 #, no-wrap
37966 msgid ""
37967 " virt-make-fs [--options] directory output.img\n"
37968 "\n"
37969 msgstr ""
37970
37971 #. type: textblock
37972 #: ../tools/virt-make-fs.pl:49
37973 msgid ""
37974 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
37975 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
37976 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
37977 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
37978 "you want to attach these filesystems to existing virtual machines (eg. to "
37979 "import large amounts of read-only data to a VM)."
37980 msgstr ""
37981
37982 #. type: textblock
37983 #: ../tools/virt-make-fs.pl:57
37984 msgid "Basic usage is:"
37985 msgstr ""
37986
37987 #. type: verbatim
37988 #: ../tools/virt-make-fs.pl:59
37989 #, no-wrap
37990 msgid ""
37991 " virt-make-fs input output\n"
37992 "\n"
37993 msgstr ""
37994
37995 #. type: textblock
37996 #: ../tools/virt-make-fs.pl:61
37997 msgid ""
37998 "where C<input> is either a directory containing files that you want to add, "
37999 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
38000 "C<output> is a disk image.  The input type is detected automatically.  The "
38001 "output disk image defaults to a raw ext2 image unless you specify extra "
38002 "flags (see L</OPTIONS> below)."
38003 msgstr ""
38004
38005 #. type: =head2
38006 #: ../tools/virt-make-fs.pl:67
38007 msgid "EXTRA SPACE"
38008 msgstr ""
38009
38010 #. type: textblock
38011 #: ../tools/virt-make-fs.pl:69
38012 msgid ""
38013 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
38014 "the files that it contains, but might have extra space.  Depending on how "
38015 "you are going to use the output, you might think this extra space is wasted "
38016 "and want to minimize it, or you might want to leave space so that more files "
38017 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
38018 "but you can use the I<--size> flag to leave space in the filesystem if you "
38019 "want it."
38020 msgstr ""
38021
38022 #. type: textblock
38023 #: ../tools/virt-make-fs.pl:77
38024 msgid ""
38025 "An alternative way to leave extra space but not make the output image any "
38026 "bigger is to use an alternative disk image format (instead of the default "
38027 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
38028 "image format (check your hypervisor supports this before using it).  This "
38029 "allows you to choose a large I<--size> but the extra space won't actually be "
38030 "allocated in the image until you try to store something in it."
38031 msgstr ""
38032
38033 #. type: textblock
38034 #: ../tools/virt-make-fs.pl:85
38035 msgid ""
38036 "Don't forget that you can also use local commands including L<resize2fs(8)> "
38037 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
38038 "to build another image from scratch."
38039 msgstr ""
38040
38041 #. type: =head3
38042 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
38043 #: ../tools/virt-make-fs.pl:142
38044 msgid "EXAMPLE"
38045 msgstr ""
38046
38047 #. type: verbatim
38048 #: ../tools/virt-make-fs.pl:91
38049 #, no-wrap
38050 msgid ""
38051 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
38052 "\n"
38053 msgstr ""
38054
38055 #. type: =head2
38056 #: ../tools/virt-make-fs.pl:93
38057 msgid "FILESYSTEM TYPE"
38058 msgstr ""
38059
38060 #. type: textblock
38061 #: ../tools/virt-make-fs.pl:95
38062 msgid ""
38063 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
38064 "libguestfs supports can be used (but I<not> read-only formats like "
38065 "ISO9660).  Here are some of the more common choices:"
38066 msgstr ""
38067
38068 #. type: =item
38069 #: ../tools/virt-make-fs.pl:101
38070 msgid "I<ext3>"
38071 msgstr ""
38072
38073 #. type: textblock
38074 #: ../tools/virt-make-fs.pl:103
38075 msgid ""
38076 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
38077 "you are not going to use the filesystem in a way that requires the journal, "
38078 "then this is just wasted overhead."
38079 msgstr ""
38080
38081 #. type: =item
38082 #: ../tools/virt-make-fs.pl:107
38083 msgid "I<ntfs> or I<vfat>"
38084 msgstr ""
38085
38086 #. type: textblock
38087 #: ../tools/virt-make-fs.pl:109
38088 msgid "Useful if exporting data to a Windows guest."
38089 msgstr ""
38090
38091 #. type: textblock
38092 #: ../tools/virt-make-fs.pl:111
38093 msgid ""
38094 "I<Note for vfat>: The tar archive or local directory must only contain files "
38095 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
38096 "program running within libguestfs is unable to change the ownership of non-"
38097 "root files, since vfat itself does not support this."
38098 msgstr ""
38099
38100 #. type: =item
38101 #: ../tools/virt-make-fs.pl:116
38102 msgid "I<minix>"
38103 msgstr ""
38104
38105 #. type: textblock
38106 #: ../tools/virt-make-fs.pl:118
38107 msgid ""
38108 "Lower overhead than C<ext2>, but certain limitations on filename length and "
38109 "total filesystem size."
38110 msgstr ""
38111
38112 #. type: verbatim
38113 #: ../tools/virt-make-fs.pl:125
38114 #, no-wrap
38115 msgid ""
38116 " virt-make-fs --type=minix input minixfs.img\n"
38117 "\n"
38118 msgstr ""
38119
38120 #. type: =head2
38121 #: ../tools/virt-make-fs.pl:127
38122 msgid "TO PARTITION OR NOT TO PARTITION"
38123 msgstr ""
38124
38125 #. type: textblock
38126 #: ../tools/virt-make-fs.pl:129
38127 msgid "Optionally virt-make-fs can add a partition table to the output disk."
38128 msgstr ""
38129
38130 #. type: textblock
38131 #: ../tools/virt-make-fs.pl:131
38132 msgid ""
38133 "Adding a partition can make the disk image more compatible with certain "
38134 "virtualized operating systems which don't expect to see a filesystem "
38135 "directly located on a block device (Linux doesn't care and will happily "
38136 "handle both types)."
38137 msgstr ""
38138
38139 #. type: textblock
38140 #: ../tools/virt-make-fs.pl:136
38141 msgid ""
38142 "On the other hand, if you have a partition table then the output image is no "
38143 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
38144 "directly on a partitioned disk image.  (However libguestfs tools such as "
38145 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
38146 msgstr ""
38147
38148 #. type: textblock
38149 #: ../tools/virt-make-fs.pl:144
38150 msgid "Add an MBR partition:"
38151 msgstr ""
38152
38153 #. type: verbatim
38154 #: ../tools/virt-make-fs.pl:146
38155 #, no-wrap
38156 msgid ""
38157 " virt-make-fs --partition -- input disk.img\n"
38158 "\n"
38159 msgstr ""
38160
38161 #. type: textblock
38162 #: ../tools/virt-make-fs.pl:148
38163 msgid ""
38164 "If the output disk image could be terabyte-sized or larger, it's better to "
38165 "use an EFI/GPT-compatible partition table:"
38166 msgstr ""
38167
38168 #. type: verbatim
38169 #: ../tools/virt-make-fs.pl:151
38170 #, no-wrap
38171 msgid ""
38172 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
38173 "\n"
38174 msgstr ""
38175
38176 #. type: textblock
38177 #: ../tools/virt-make-fs.pl:179
38178 msgid "Enable debugging information."
38179 msgstr ""
38180
38181 #. type: =item
38182 #: ../tools/virt-make-fs.pl:185
38183 msgid "B<--size=E<lt>NE<gt>>"
38184 msgstr ""
38185
38186 #. type: =item
38187 #: ../tools/virt-make-fs.pl:187
38188 msgid "B<--size=+E<lt>NE<gt>>"
38189 msgstr ""
38190
38191 #. type: =item
38192 #: ../tools/virt-make-fs.pl:189
38193 msgid "B<-s E<lt>NE<gt>>"
38194 msgstr ""
38195
38196 #. type: =item
38197 #: ../tools/virt-make-fs.pl:191
38198 msgid "B<-s +E<lt>NE<gt>>"
38199 msgstr ""
38200
38201 #. type: textblock
38202 #: ../tools/virt-make-fs.pl:193
38203 msgid ""
38204 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
38205 msgstr ""
38206
38207 #. type: textblock
38208 #: ../tools/virt-make-fs.pl:196
38209 msgid ""
38210 "If this option is I<not> given, then the output image will be just large "
38211 "enough to contain all the files, with not much wasted space."
38212 msgstr ""
38213
38214 #. type: textblock
38215 #: ../tools/virt-make-fs.pl:199
38216 msgid ""
38217 "To choose a fixed size output disk, specify an absolute number followed by b/"
38218 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
38219 "Petabytes or Exabytes.  This must be large enough to contain all the input "
38220 "files, else you will get an error."
38221 msgstr ""
38222
38223 #. type: textblock
38224 #: ../tools/virt-make-fs.pl:204
38225 msgid ""
38226 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
38227 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
38228 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
38229 "the input files, and (approximately) an extra 200 MB free space."
38230 msgstr ""
38231
38232 #. type: textblock
38233 #: ../tools/virt-make-fs.pl:210
38234 msgid ""
38235 "Note that virt-make-fs estimates free space, and therefore will not produce "
38236 "filesystems containing precisely the free space requested.  (It is much more "
38237 "expensive and time-consuming to produce a filesystem which has precisely the "
38238 "desired free space)."
38239 msgstr ""
38240
38241 #. type: =item
38242 #: ../tools/virt-make-fs.pl:219
38243 msgid "B<--format=E<lt>fmtE<gt>>"
38244 msgstr ""
38245
38246 #. type: =item
38247 #: ../tools/virt-make-fs.pl:221
38248 msgid "B<-F E<lt>fmtE<gt>>"
38249 msgstr ""
38250
38251 #. type: textblock
38252 #: ../tools/virt-make-fs.pl:223
38253 msgid "Choose the output disk image format."
38254 msgstr ""
38255
38256 #. type: textblock
38257 #: ../tools/virt-make-fs.pl:225
38258 msgid "The default is C<raw> (raw disk image)."
38259 msgstr ""
38260
38261 #. type: textblock
38262 #: ../tools/virt-make-fs.pl:227
38263 msgid ""
38264 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
38265 "that would really make sense here is C<qcow2>."
38266 msgstr ""
38267
38268 #. type: =item
38269 #: ../tools/virt-make-fs.pl:234
38270 msgid "B<--type=E<lt>fsE<gt>>"
38271 msgstr ""
38272
38273 #. type: =item
38274 #: ../tools/virt-make-fs.pl:236
38275 msgid "B<-t E<lt>fsE<gt>>"
38276 msgstr ""
38277
38278 #. type: textblock
38279 #: ../tools/virt-make-fs.pl:238
38280 msgid "Choose the output filesystem type."
38281 msgstr ""
38282
38283 #. type: textblock
38284 #: ../tools/virt-make-fs.pl:240
38285 msgid "The default is C<ext2>."
38286 msgstr ""
38287
38288 #. type: textblock
38289 #: ../tools/virt-make-fs.pl:242
38290 msgid ""
38291 "Any filesystem which is supported read-write by libguestfs can be used here."
38292 msgstr ""
38293
38294 #. type: =item
38295 #: ../tools/virt-make-fs.pl:249
38296 msgid "B<--partition>"
38297 msgstr ""
38298
38299 #. type: =item
38300 #: ../tools/virt-make-fs.pl:251
38301 msgid "B<--partition=E<lt>parttypeE<gt>>"
38302 msgstr ""
38303
38304 #. type: textblock
38305 #: ../tools/virt-make-fs.pl:253
38306 msgid ""
38307 "If specified, this flag adds an MBR partition table to the output disk image."
38308 msgstr ""
38309
38310 #. type: textblock
38311 #: ../tools/virt-make-fs.pl:256
38312 msgid ""
38313 "You can change the partition table type, eg. I<--partition=gpt> for large "
38314 "disks."
38315 msgstr ""
38316
38317 #. type: textblock
38318 #: ../tools/virt-make-fs.pl:259
38319 msgid ""
38320 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
38321 "might consider the next parameter to be the partition type.  For example:"
38322 msgstr ""
38323
38324 #. type: verbatim
38325 #: ../tools/virt-make-fs.pl:263
38326 #, no-wrap
38327 msgid ""
38328 " virt-make-fs --partition input.tar ...\n"
38329 "\n"
38330 msgstr ""
38331
38332 #. type: textblock
38333 #: ../tools/virt-make-fs.pl:265
38334 msgid ""
38335 "would cause virt-make-fs to think you wanted to use a partition type of "
38336 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
38337 "dash) between options and the input file argument:"
38338 msgstr ""
38339
38340 #. type: verbatim
38341 #: ../tools/virt-make-fs.pl:269
38342 #, no-wrap
38343 msgid ""
38344 " virt-make-fs --partition -- input.tar ...\n"
38345 "\n"
38346 msgstr ""
38347
38348 #. type: textblock
38349 #: ../tools/virt-make-fs.pl:541
38350 msgid ""
38351 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
38352 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
38353 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
38354 msgstr ""
38355
38356 #. type: textblock
38357 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
38358 msgid ""
38359 "When reporting bugs, please enable debugging and capture the I<complete> "
38360 "output:"
38361 msgstr ""
38362
38363 #. type: verbatim
38364 #: ../tools/virt-make-fs.pl:558
38365 #, no-wrap
38366 msgid ""
38367 " export LIBGUESTFS_DEBUG=1\n"
38368 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
38369 "\n"
38370 msgstr ""
38371
38372 #. type: textblock
38373 #: ../tools/virt-make-fs.pl:561
38374 msgid ""
38375 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
38376 "redhat.com/>"
38377 msgstr ""
38378
38379 #. type: textblock
38380 #: ../tools/virt-tar.pl:33
38381 msgid "virt-tar - Extract or upload files to a virtual machine"
38382 msgstr ""
38383
38384 #. type: verbatim
38385 #: ../tools/virt-tar.pl:37
38386 #, no-wrap
38387 msgid ""
38388 " virt-tar [--options] -x domname directory tarball\n"
38389 "\n"
38390 msgstr ""
38391
38392 #. type: verbatim
38393 #: ../tools/virt-tar.pl:39
38394 #, no-wrap
38395 msgid ""
38396 " virt-tar [--options] -u domname tarball directory\n"
38397 "\n"
38398 msgstr ""
38399
38400 #. type: verbatim
38401 #: ../tools/virt-tar.pl:41
38402 #, no-wrap
38403 msgid ""
38404 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
38405 "\n"
38406 msgstr ""
38407
38408 #. type: verbatim
38409 #: ../tools/virt-tar.pl:43
38410 #, no-wrap
38411 msgid ""
38412 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
38413 "\n"
38414 msgstr ""
38415
38416 #. type: =head2
38417 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
38418 msgid "NOTE"
38419 msgstr ""
38420
38421 #. type: textblock
38422 #: ../tools/virt-tar.pl:47
38423 msgid ""
38424 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
38425 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
38426 msgstr ""
38427
38428 #. type: textblock
38429 #: ../tools/virt-tar.pl:52
38430 msgid "Download C</home> from the VM into a local tarball:"
38431 msgstr ""
38432
38433 #. type: verbatim
38434 #: ../tools/virt-tar.pl:54
38435 #, no-wrap
38436 msgid ""
38437 " virt-tar -x domname /home home.tar\n"
38438 "\n"
38439 msgstr ""
38440
38441 #. type: verbatim
38442 #: ../tools/virt-tar.pl:56
38443 #, no-wrap
38444 msgid ""
38445 " virt-tar -zx domname /home home.tar.gz\n"
38446 "\n"
38447 msgstr ""
38448
38449 #. type: textblock
38450 #: ../tools/virt-tar.pl:58
38451 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
38452 msgstr ""
38453
38454 #. type: verbatim
38455 #: ../tools/virt-tar.pl:60
38456 #, no-wrap
38457 msgid ""
38458 " virt-tar -u domname uploadstuff.tar /tmp\n"
38459 "\n"
38460 msgstr ""
38461
38462 #. type: verbatim
38463 #: ../tools/virt-tar.pl:62
38464 #, no-wrap
38465 msgid ""
38466 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
38467 "\n"
38468 msgstr ""
38469
38470 #. type: textblock
38471 #: ../tools/virt-tar.pl:66
38472 msgid ""
38473 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
38474 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
38475 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
38476 msgstr ""
38477
38478 #. type: textblock
38479 #: ../tools/virt-tar.pl:71
38480 msgid ""
38481 "You can use I<-x> (extract) on live virtual machines, but you might get "
38482 "inconsistent results or errors if there is filesystem activity inside the "
38483 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
38484 "work, but the only way to guarantee consistent results is if the virtual "
38485 "machine is shut down."
38486 msgstr ""
38487
38488 #. type: textblock
38489 #: ../tools/virt-tar.pl:79
38490 msgid ""
38491 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
38492 "parts of a guest filesystem.  There are many possibilities: making backups, "
38493 "uploading data files, snooping on guest activity, fixing or customizing "
38494 "guests, etc."
38495 msgstr ""
38496
38497 #. type: textblock
38498 #: ../tools/virt-tar.pl:84
38499 msgid ""
38500 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
38501 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
38502 "should look at the L<guestfish(1)> tool."
38503 msgstr ""
38504
38505 #. type: textblock
38506 #: ../tools/virt-tar.pl:88
38507 msgid ""
38508 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
38509 "its contents (recursively) from the virtual machine into a local tarball.  "
38510 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
38511 "virtual machine.  You cannot use these two options together."
38512 msgstr ""
38513
38514 #. type: textblock
38515 #: ../tools/virt-tar.pl:94
38516 msgid ""
38517 "In addition, you may need to use the I<-z> (gZip) option to enable "
38518 "compression.  When uploading, you have to specify I<-z> if the upload file "
38519 "is compressed because virt-tar won't detect this on its own."
38520 msgstr ""
38521
38522 #. type: textblock
38523 #: ../tools/virt-tar.pl:98
38524 msgid ""
38525 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
38526 "example it cannot do PKZip files or bzip2 compression.  If you want that "
38527 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
38528 "the L<libguestfs(3)> API)."
38529 msgstr ""
38530
38531 #. type: =item
38532 #: ../tools/virt-tar.pl:160
38533 msgid "B<--extract>"
38534 msgstr ""
38535
38536 #. type: =item
38537 #: ../tools/virt-tar.pl:162
38538 msgid "B<--download>"
38539 msgstr ""
38540
38541 #. type: =item
38542 #: ../tools/virt-tar.pl:164
38543 msgid "B<-u>"
38544 msgstr ""
38545
38546 #. type: =item
38547 #: ../tools/virt-tar.pl:166
38548 msgid "B<--upload>"
38549 msgstr ""
38550
38551 #. type: textblock
38552 #: ../tools/virt-tar.pl:168
38553 msgid ""
38554 "Use I<-x> to extract (download) a directory from a virtual machine to a "
38555 "local tarball."
38556 msgstr ""
38557
38558 #. type: textblock
38559 #: ../tools/virt-tar.pl:171
38560 msgid ""
38561 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
38562 "Please read the L</WARNING> section above before using this option."
38563 msgstr ""
38564
38565 #. type: textblock
38566 #: ../tools/virt-tar.pl:175
38567 msgid "You must specify exactly one of these options."
38568 msgstr ""
38569
38570 #. type: =item
38571 #: ../tools/virt-tar.pl:181
38572 msgid "B<-z>"
38573 msgstr ""
38574
38575 #. type: =item
38576 #: ../tools/virt-tar.pl:183
38577 msgid "B<--gzip>"
38578 msgstr ""
38579
38580 #. type: textblock
38581 #: ../tools/virt-tar.pl:185
38582 msgid "Specify that the input or output tarball is gzip-compressed."
38583 msgstr ""
38584
38585 #. type: textblock
38586 #: ../tools/virt-tar.pl:298
38587 msgid ""
38588 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
38589 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
38590 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
38591 "org/>."
38592 msgstr ""
38593
38594 #. type: textblock
38595 #: ../tools/virt-win-reg.pl:37
38596 msgid ""
38597 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
38598 msgstr ""
38599
38600 #. type: verbatim
38601 #: ../tools/virt-win-reg.pl:41
38602 #, no-wrap
38603 msgid ""
38604 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
38605 "\n"
38606 msgstr ""
38607
38608 #. type: verbatim
38609 #: ../tools/virt-win-reg.pl:43
38610 #, no-wrap
38611 msgid ""
38612 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
38613 "\n"
38614 msgstr ""
38615
38616 #. type: verbatim
38617 #: ../tools/virt-win-reg.pl:45
38618 #, no-wrap
38619 msgid ""
38620 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
38621 "\n"
38622 msgstr ""
38623
38624 #. type: verbatim
38625 #: ../tools/virt-win-reg.pl:47
38626 #, no-wrap
38627 msgid ""
38628 " virt-win-reg --merge domname [input.reg ...]\n"
38629 "\n"
38630 msgstr ""
38631
38632 #. type: verbatim
38633 #: ../tools/virt-win-reg.pl:49
38634 #, no-wrap
38635 msgid ""
38636 " virt-win-reg [--options] disk.img ... # instead of domname\n"
38637 "\n"
38638 msgstr ""
38639
38640 #. type: textblock
38641 #: ../tools/virt-win-reg.pl:53
38642 msgid ""
38643 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
38644 "virtual machines.  If you do this, you I<will> get irreversible disk "
38645 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
38646 "but doesn't catch all cases."
38647 msgstr ""
38648
38649 #. type: textblock
38650 #: ../tools/virt-win-reg.pl:58
38651 msgid ""
38652 "Modifying the Windows Registry is an inherently risky operation.  The format "
38653 "is deliberately obscure and undocumented, and Registry changes can leave the "
38654 "system unbootable.  Therefore when using the I<--merge> option, make sure "
38655 "you have a reliable backup first."
38656 msgstr ""
38657
38658 #. type: textblock
38659 #: ../tools/virt-win-reg.pl:65
38660 msgid ""
38661 "This program can export and merge Windows Registry entries from a Windows "
38662 "guest."
38663 msgstr ""
38664
38665 #. type: textblock
38666 #: ../tools/virt-win-reg.pl:68
38667 msgid ""
38668 "The first parameter is the libvirt guest name or the raw disk image of a "
38669 "Windows guest."
38670 msgstr ""
38671
38672 #. type: textblock
38673 #: ../tools/virt-win-reg.pl:71
38674 msgid ""
38675 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
38676 "exported (recursively).  For example:"
38677 msgstr ""
38678
38679 #. type: verbatim
38680 #: ../tools/virt-win-reg.pl:74
38681 #, no-wrap
38682 msgid ""
38683 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
38684 "\n"
38685 msgstr ""
38686
38687 #. type: textblock
38688 #: ../tools/virt-win-reg.pl:76
38689 msgid ""
38690 "You can also display single values from within registry keys, for example:"
38691 msgstr ""
38692
38693 #. type: verbatim
38694 #: ../tools/virt-win-reg.pl:79
38695 #, no-wrap
38696 msgid ""
38697 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
38698 " $ virt-win-reg Windows7 $cvkey ProductName\n"
38699 " Windows 7 Enterprise\n"
38700 "\n"
38701 msgstr ""
38702
38703 #. type: textblock
38704 #: ../tools/virt-win-reg.pl:83
38705 msgid ""
38706 "With I<--merge>, you can merge a textual regedit file into the Windows "
38707 "Registry:"
38708 msgstr ""
38709
38710 #. type: verbatim
38711 #: ../tools/virt-win-reg.pl:86
38712 #, no-wrap
38713 msgid ""
38714 " $ virt-win-reg --merge Windows7 changes.reg\n"
38715 "\n"
38716 msgstr ""
38717
38718 #. type: textblock
38719 #: ../tools/virt-win-reg.pl:90
38720 msgid ""
38721 "This program is only meant for simple access to the registry.  If you want "
38722 "to do complicated things with the registry, we suggest you download the "
38723 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
38724 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
38725 "L<hivexregedit(1)>."
38726 msgstr ""
38727
38728 #. type: =item
38729 #: ../tools/virt-win-reg.pl:159
38730 msgid "B<--merge>"
38731 msgstr ""
38732
38733 #. type: textblock
38734 #: ../tools/virt-win-reg.pl:161
38735 msgid ""
38736 "In merge mode, this merges a textual regedit file into the Windows Registry "
38737 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
38738 "displays or exports Registry entries instead."
38739 msgstr ""
38740
38741 #. type: textblock
38742 #: ../tools/virt-win-reg.pl:165
38743 msgid ""
38744 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
38745 "result in disk corruption.  However exporting (without this flag)  is always "
38746 "safe."
38747 msgstr ""
38748
38749 #. type: =item
38750 #: ../tools/virt-win-reg.pl:173
38751 msgid "B<--encoding> UTF-16LE|ASCII"
38752 msgstr ""
38753
38754 #. type: textblock
38755 #: ../tools/virt-win-reg.pl:175
38756 msgid ""
38757 "When merging (only), you may need to specify the encoding for strings to be "
38758 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
38759 "(3)/ENCODING STRINGS>."
38760 msgstr ""
38761
38762 #. type: textblock
38763 #: ../tools/virt-win-reg.pl:179
38764 msgid ""
38765 "The default is to use UTF-16LE, which should work with recent versions of "
38766 "Windows."
38767 msgstr ""
38768
38769 #. type: =item
38770 #: ../tools/virt-win-reg.pl:186
38771 msgid "B<--unsafe-printable-strings>"
38772 msgstr ""
38773
38774 #. type: textblock
38775 #: ../tools/virt-win-reg.pl:188
38776 msgid ""
38777 "When exporting (only), assume strings are UTF-16LE and print them as strings "
38778 "instead of hex sequences.  Remove the final zero codepoint from strings if "
38779 "present."
38780 msgstr ""
38781
38782 #. type: textblock
38783 #: ../tools/virt-win-reg.pl:192
38784 msgid ""
38785 "This is unsafe and does not preserve the fidelity of strings in the original "
38786 "Registry for various reasons:"
38787 msgstr ""
38788
38789 #. type: textblock
38790 #: ../tools/virt-win-reg.pl:199
38791 msgid ""
38792 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
38793 "other encodings will be corrupted by this transformation."
38794 msgstr ""
38795
38796 #. type: textblock
38797 #: ../tools/virt-win-reg.pl:204
38798 msgid ""
38799 "Assumes that everything which has type 1 or 2 is really a string and that "
38800 "everything else is not a string, but the type field in real Registries is "
38801 "not reliable."
38802 msgstr ""
38803
38804 #. type: textblock
38805 #: ../tools/virt-win-reg.pl:210
38806 msgid ""
38807 "Loses information about whether a zero codepoint followed the string in the "
38808 "Registry or not."
38809 msgstr ""
38810
38811 #. type: textblock
38812 #: ../tools/virt-win-reg.pl:215
38813 msgid ""
38814 "This all happens because the Registry itself contains no information about "
38815 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
38816 msgstr ""
38817
38818 #. type: textblock
38819 #: ../tools/virt-win-reg.pl:219
38820 msgid ""
38821 "You should only use this option for quick hacking and debugging of the "
38822 "Registry contents, and I<never> use it if the output is going to be passed "
38823 "into another program or stored in another Registry."
38824 msgstr ""
38825
38826 #. type: =head1
38827 #: ../tools/virt-win-reg.pl:556
38828 msgid "SUPPORTED SYSTEMS"
38829 msgstr ""
38830
38831 #. type: textblock
38832 #: ../tools/virt-win-reg.pl:558
38833 msgid ""
38834 "The program currently supports Windows NT-derived guests starting with "
38835 "Windows XP through to at least Windows 7."
38836 msgstr ""
38837
38838 #. type: textblock
38839 #: ../tools/virt-win-reg.pl:561
38840 msgid "The following Registry keys are supported:"
38841 msgstr ""
38842
38843 #. type: =item
38844 #: ../tools/virt-win-reg.pl:565
38845 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
38846 msgstr ""
38847
38848 #. type: =item
38849 #: ../tools/virt-win-reg.pl:567
38850 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
38851 msgstr ""
38852
38853 #. type: =item
38854 #: ../tools/virt-win-reg.pl:569
38855 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
38856 msgstr ""
38857
38858 #. type: =item
38859 #: ../tools/virt-win-reg.pl:571
38860 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
38861 msgstr ""
38862
38863 #. type: =item
38864 #: ../tools/virt-win-reg.pl:573
38865 msgid "C<HKEY_USERS\\.DEFAULT>"
38866 msgstr ""
38867
38868 #. type: =item
38869 #: ../tools/virt-win-reg.pl:575
38870 msgid "C<HKEY_USERS\\I<SID>>"
38871 msgstr ""
38872
38873 #. type: textblock
38874 #: ../tools/virt-win-reg.pl:577
38875 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
38876 msgstr ""
38877
38878 #. type: =item
38879 #: ../tools/virt-win-reg.pl:579
38880 msgid "C<HKEY_USERS\\I<username>>"
38881 msgstr ""
38882
38883 #. type: textblock
38884 #: ../tools/virt-win-reg.pl:581
38885 msgid ""
38886 "where I<username> is a local user name (this is a libguestfs extension)."
38887 msgstr ""
38888
38889 #. type: textblock
38890 #: ../tools/virt-win-reg.pl:585
38891 msgid ""
38892 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
38893 "C<HKEY_USERS>."
38894 msgstr ""
38895
38896 #. type: textblock
38897 #: ../tools/virt-win-reg.pl:588
38898 msgid ""
38899 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
38900 "supported (there is no \"current user\")."
38901 msgstr ""
38902
38903 #. type: =head1
38904 #: ../tools/virt-win-reg.pl:591
38905 msgid "ENCODING"
38906 msgstr ""
38907
38908 #. type: textblock
38909 #: ../tools/virt-win-reg.pl:593
38910 msgid ""
38911 "C<virt-win-reg> expects that regedit files have already been reencoded in "
38912 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
38913 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
38914 "Windows-style line endings, you may need to reencode the whole file before "
38915 "or after processing."
38916 msgstr ""
38917
38918 #. type: textblock
38919 #: ../tools/virt-win-reg.pl:599
38920 msgid ""
38921 "To reencode a file from Windows format to Linux (before processing it with "
38922 "the I<--merge> option), you would do something like this:"
38923 msgstr ""
38924
38925 #. type: verbatim
38926 #: ../tools/virt-win-reg.pl:602
38927 #, no-wrap
38928 msgid ""
38929 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
38930 "\n"
38931 msgstr ""
38932
38933 #. type: textblock
38934 #: ../tools/virt-win-reg.pl:604
38935 msgid ""
38936 "To go in the opposite direction, after exporting and before sending the file "
38937 "to a Windows user, do something like this:"
38938 msgstr ""
38939
38940 #. type: verbatim
38941 #: ../tools/virt-win-reg.pl:607
38942 #, no-wrap
38943 msgid ""
38944 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
38945 "\n"
38946 msgstr ""
38947
38948 #. type: textblock
38949 #: ../tools/virt-win-reg.pl:609
38950 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
38951 msgstr ""
38952
38953 #. type: textblock
38954 #: ../tools/virt-win-reg.pl:611
38955 msgid ""
38956 "If you are unsure about the current encoding, use the L<file(1)> command.  "
38957 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
38958 "style (CRLF) line endings, like this:"
38959 msgstr ""
38960
38961 #. type: verbatim
38962 #: ../tools/virt-win-reg.pl:615
38963 #, no-wrap
38964 msgid ""
38965 " $ file software.reg\n"
38966 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
38967 " with CRLF line terminators\n"
38968 "\n"
38969 msgstr ""
38970
38971 #. type: textblock
38972 #: ../tools/virt-win-reg.pl:619
38973 msgid "This file would need conversion before you could I<--merge> it."
38974 msgstr ""
38975
38976 #. type: =head1
38977 #: ../tools/virt-win-reg.pl:621
38978 msgid "CurrentControlSet etc."
38979 msgstr ""
38980
38981 #. type: textblock
38982 #: ../tools/virt-win-reg.pl:623
38983 msgid ""
38984 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
38985 "Registry at the level of the hive file, and therefore you cannot modify "
38986 "these."
38987 msgstr ""
38988
38989 #. type: textblock
38990 #: ../tools/virt-win-reg.pl:627
38991 msgid ""
38992 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
38993 "circumstances it might refer to another control set.  The way to find out is "
38994 "to look at the C<HKLM\\SYSTEM\\Select> key:"
38995 msgstr ""
38996
38997 #. type: verbatim
38998 #: ../tools/virt-win-reg.pl:631
38999 #, no-wrap
39000 msgid ""
39001 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
39002 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
39003 " \"Current\"=dword:00000001\n"
39004 " \"Default\"=dword:00000001\n"
39005 " \"Failed\"=dword:00000000\n"
39006 " \"LastKnownGood\"=dword:00000002\n"
39007 "\n"
39008 msgstr ""
39009
39010 #. type: textblock
39011 #: ../tools/virt-win-reg.pl:638
39012 msgid "\"Current\" is the one which Windows will choose when it boots."
39013 msgstr ""
39014
39015 #. type: textblock
39016 #: ../tools/virt-win-reg.pl:640
39017 msgid ""
39018 "Similarly, other C<Current...> keys in the path may need to be replaced."
39019 msgstr ""
39020
39021 #. type: =head1
39022 #: ../tools/virt-win-reg.pl:643
39023 msgid "WINDOWS TIPS"
39024 msgstr ""
39025
39026 #. type: textblock
39027 #: ../tools/virt-win-reg.pl:645
39028 msgid ""
39029 "Note that some of these tips modify the guest disk image.  The guest I<must> "
39030 "be shut off, else you will get disk corruption."
39031 msgstr ""
39032
39033 #. type: =head2
39034 #: ../tools/virt-win-reg.pl:648
39035 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
39036 msgstr ""
39037
39038 #. type: textblock
39039 #: ../tools/virt-win-reg.pl:650
39040 msgid ""
39041 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
39042 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
39043 "is uploaded into C<C:\\>:"
39044 msgstr ""
39045
39046 #. type: verbatim
39047 #: ../tools/virt-win-reg.pl:654
39048 #, no-wrap
39049 msgid ""
39050 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
39051 "\n"
39052 msgstr ""
39053
39054 #. type: textblock
39055 #: ../tools/virt-win-reg.pl:656
39056 msgid "Prepare a regedit file containing the registry change:"
39057 msgstr ""
39058
39059 #. type: verbatim
39060 #: ../tools/virt-win-reg.pl:658
39061 #, no-wrap
39062 msgid ""
39063 " cat > test.reg <<'EOF'\n"
39064 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
39065 " \"Test\"=\"c:\\\\test.bat\"\n"
39066 " EOF\n"
39067 "\n"
39068 msgstr ""
39069
39070 #. type: textblock
39071 #: ../tools/virt-win-reg.pl:663
39072 msgid ""
39073 "In this example we use the key C<RunOnce> which means that the script will "
39074 "run precisely once when the first user logs in.  If you want it to run every "
39075 "time a user logs in, replace C<RunOnce> with C<Run>."
39076 msgstr ""
39077
39078 #. type: textblock
39079 #: ../tools/virt-win-reg.pl:667
39080 msgid "Now update the registry:"
39081 msgstr ""
39082
39083 #. type: verbatim
39084 #: ../tools/virt-win-reg.pl:669
39085 #, no-wrap
39086 msgid ""
39087 " virt-win-reg --merge WindowsGuest test.reg\n"
39088 "\n"
39089 msgstr ""
39090
39091 #. type: =head2
39092 #: ../tools/virt-win-reg.pl:671
39093 msgid "INSTALLING A SERVICE"
39094 msgstr ""
39095
39096 #. type: textblock
39097 #: ../tools/virt-win-reg.pl:673
39098 msgid ""
39099 "This section assumes you are familiar with Windows services, and you either "
39100 "have a program which handles the Windows Service Control Protocol directly "
39101 "or you want to run any program using a service wrapper like SrvAny or the "
39102 "free RHSrvAny."
39103 msgstr ""
39104
39105 #. type: textblock
39106 #: ../tools/virt-win-reg.pl:678
39107 msgid ""
39108 "First upload the program and optionally the service wrapper.  In this case "
39109 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
39110 msgstr ""
39111
39112 #. type: verbatim
39113 #: ../tools/virt-win-reg.pl:682
39114 #, no-wrap
39115 msgid ""
39116 " guestfish -i -d WindowsGuest <<EOF\n"
39117 "   upload rhsrvany.exe /rhsrvany.exe\n"
39118 "   upload test.exe /test.exe\n"
39119 " EOF\n"
39120 "\n"
39121 msgstr ""
39122
39123 #. type: textblock
39124 #: ../tools/virt-win-reg.pl:687
39125 msgid ""
39126 "Prepare a regedit file containing the registry changes.  In this example, "
39127 "the first registry change is needed for the service itself or the service "
39128 "wrapper (if used).  The second registry change is only needed because I am "
39129 "using the RHSrvAny service wrapper."
39130 msgstr ""
39131
39132 #. type: verbatim
39133 #: ../tools/virt-win-reg.pl:692
39134 #, no-wrap
39135 msgid ""
39136 " cat > service.reg <<'EOF'\n"
39137 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
39138 " \"Type\"=dword:00000010\n"
39139 " \"Start\"=dword:00000002\n"
39140 " \"ErrorControl\"=dword:00000001\n"
39141 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
39142 " \"DisplayName\"=\"RHSrvAny\"\n"
39143 " \"ObjectName\"=\"NetworkService\"\n"
39144 " \n"
39145 msgstr ""
39146
39147 #. type: verbatim
39148 #: ../tools/virt-win-reg.pl:701
39149 #, no-wrap
39150 msgid ""
39151 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
39152 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
39153 " \"PWD\"=\"c:\\\\Temp\"\n"
39154 " EOF\n"
39155 "\n"
39156 msgstr ""
39157
39158 #. type: textblock
39159 #: ../tools/virt-win-reg.pl:712
39160 msgid ""
39161 "For use of C<ControlSet001> see the section above in this manual page.  You "
39162 "may need to adjust this according to the control set that is in use by the "
39163 "guest."
39164 msgstr ""
39165
39166 #. type: textblock
39167 #: ../tools/virt-win-reg.pl:718
39168 msgid ""
39169 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
39170 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
39171 "privileged account."
39172 msgstr ""
39173
39174 #. type: textblock
39175 #: ../tools/virt-win-reg.pl:724
39176 msgid ""
39177 "For the meaning of the magic numbers, see this Microsoft KB article: "
39178 "L<http://support.microsoft.com/kb/103000>."
39179 msgstr ""
39180
39181 #. type: textblock
39182 #: ../tools/virt-win-reg.pl:729
39183 msgid "Update the registry:"
39184 msgstr ""
39185
39186 #. type: verbatim
39187 #: ../tools/virt-win-reg.pl:731
39188 #, no-wrap
39189 msgid ""
39190 " virt-win-reg --merge WindowsGuest service.reg\n"
39191 "\n"
39192 msgstr ""
39193
39194 #. type: textblock
39195 #: ../tools/virt-win-reg.pl:735
39196 msgid ""
39197 "Be careful when passing parameters containing C<\\> (backslash) in the "
39198 "shell.  Usually you will have to use 'single quotes' or double backslashes "
39199 "(but not both) to protect them from the shell."
39200 msgstr ""
39201
39202 #. type: textblock
39203 #: ../tools/virt-win-reg.pl:739
39204 msgid "Paths and value names are case-insensitive."
39205 msgstr ""
39206
39207 #. type: textblock
39208 #: ../tools/virt-win-reg.pl:748
39209 msgid ""
39210 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
39211 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
39212 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39213 msgstr ""
39214
39215 #. type: verbatim
39216 #: ../tools/virt-win-reg.pl:766
39217 #, no-wrap
39218 msgid ""
39219 " export LIBGUESTFS_DEBUG=1\n"
39220 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
39221 "\n"
39222 msgstr ""
39223
39224 #. type: textblock
39225 #: ../tools/virt-win-reg.pl:769
39226 msgid ""
39227 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
39228 "redhat.com/>"
39229 msgstr ""