735ded9de2d8465faaec9fa40b03ef195f6f5a46
[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-31 09:45+0000\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 #: ../examples/guestfs-examples.pod:3 ../examples/guestfs-recipes.pod:14
25 #: ../fish/guestfish.pod:3 ../fish/virt-copy-in.pod:3
26 #: ../fish/virt-copy-out.pod:3 ../fish/virt-tar-in.pod:3
27 #: ../fish/virt-tar-out.pod:3 ../fuse/guestmount.pod:3
28 #: ../inspector/virt-inspector.pod:3 ../java/examples/guestfs-java.pod:3
29 #: ../ocaml/examples/guestfs-ocaml.pod:3 ../perl/examples/guestfs-perl.pod:3
30 #: ../python/examples/guestfs-python.pod:3 ../rescue/virt-rescue.pod:3
31 #: ../resize/virt-resize.pod:3 ../ruby/examples/guestfs-ruby.pod:3
32 #: ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3
33 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
34 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
35 #: ../tools/virt-win-reg.pl:35
36 msgid "NAME"
37 msgstr "名前"
38
39 #. type: textblock
40 #: ../cat/virt-cat.pod:5
41 msgid "virt-cat - Display files in a virtual machine"
42 msgstr ""
43
44 #. type: =head1
45 #: ../cat/virt-cat.pod:7 ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7
46 #: ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
47 #: ../examples/guestfs-examples.pod:7 ../fish/guestfish.pod:7
48 #: ../fish/virt-copy-in.pod:7 ../fish/virt-copy-out.pod:7
49 #: ../fish/virt-tar-in.pod:7 ../fish/virt-tar-out.pod:7
50 #: ../fuse/guestmount.pod:7 ../inspector/virt-inspector.pod:7
51 #: ../java/examples/guestfs-java.pod:7 ../ocaml/examples/guestfs-ocaml.pod:7
52 #: ../perl/examples/guestfs-perl.pod:7 ../python/examples/guestfs-python.pod:7
53 #: ../rescue/virt-rescue.pod:7 ../resize/virt-resize.pod:7
54 #: ../ruby/examples/guestfs-ruby.pod:7 ../src/guestfs.pod:7
55 #: ../test-tool/libguestfs-test-tool.pod:7
56 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
57 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
58 #: ../tools/virt-win-reg.pl:39
59 msgid "SYNOPSIS"
60 msgstr ""
61
62 #. type: verbatim
63 #: ../cat/virt-cat.pod:9
64 #, no-wrap
65 msgid ""
66 " virt-cat [--options] -d domname file [file ...]\n"
67 "\n"
68 msgstr ""
69
70 #. type: verbatim
71 #: ../cat/virt-cat.pod:11
72 #, no-wrap
73 msgid ""
74 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
75 "\n"
76 msgstr ""
77
78 #. type: textblock
79 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
80 #: ../inspector/virt-inspector.pod:13
81 msgid "Old-style:"
82 msgstr ""
83
84 #. type: verbatim
85 #: ../cat/virt-cat.pod:15
86 #, no-wrap
87 msgid ""
88 " virt-cat domname file\n"
89 "\n"
90 msgstr ""
91
92 #. type: verbatim
93 #: ../cat/virt-cat.pod:17
94 #, no-wrap
95 msgid ""
96 " virt-cat disk.img file\n"
97 "\n"
98 msgstr ""
99
100 #. type: =head1
101 #: ../cat/virt-cat.pod:19 ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
102 #: ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
103 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
104 #: ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19
105 #: ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21
106 #: ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20
107 #: ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15
108 #: ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18
109 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29
110 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
111 #: ../src/guestfs.pod:23 ../test-tool/libguestfs-test-tool.pod:11
112 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
113 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
114 #: ../tools/virt-win-reg.pl:63
115 msgid "DESCRIPTION"
116 msgstr ""
117
118 #. type: textblock
119 #: ../cat/virt-cat.pod:21
120 msgid ""
121 "C<virt-cat> is a command line tool to display the contents of C<file> where "
122 "C<file> exists in the named virtual machine (or disk image)."
123 msgstr ""
124
125 #. type: textblock
126 #: ../cat/virt-cat.pod:24
127 msgid ""
128 "Multiple filenames can be given, in which case they are concatenated "
129 "together.  Each filename must be a full path, starting at the root directory "
130 "(starting with '/')."
131 msgstr ""
132
133 #. type: textblock
134 #: ../cat/virt-cat.pod:28
135 msgid ""
136 "C<virt-cat> can be used to quickly view a file.  To edit a file, use C<virt-"
137 "edit>.  For more complex cases you should look at the L<guestfish(1)> tool "
138 "(see L</USING GUESTFISH> below)."
139 msgstr ""
140
141 #. type: =head1
142 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
143 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
144 #: ../fish/guestfish.pod:1051 ../fish/virt-copy-in.pod:29
145 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
146 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
147 #: ../resize/virt-resize.pod:27 ../tools/virt-tar.pl:50
148 msgid "EXAMPLES"
149 msgstr ""
150
151 #. type: textblock
152 #: ../cat/virt-cat.pod:34
153 msgid ""
154 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
155 msgstr ""
156
157 #. type: verbatim
158 #: ../cat/virt-cat.pod:37
159 #, no-wrap
160 msgid ""
161 " virt-cat -d mydomain /etc/fstab\n"
162 "\n"
163 msgstr ""
164
165 #. type: textblock
166 #: ../cat/virt-cat.pod:39
167 msgid "List syslog messages from a VM disk image file:"
168 msgstr ""
169
170 #. type: verbatim
171 #: ../cat/virt-cat.pod:41
172 #, no-wrap
173 msgid ""
174 " virt-cat -a disk.img /var/log/messages | tail\n"
175 "\n"
176 msgstr ""
177
178 #. type: textblock
179 #: ../cat/virt-cat.pod:43
180 msgid "Find out what DHCP IP address a VM acquired:"
181 msgstr ""
182
183 #. type: verbatim
184 #: ../cat/virt-cat.pod:45
185 #, no-wrap
186 msgid ""
187 " virt-cat -d mydomain /var/log/messages | \\\n"
188 "   grep 'dhclient: bound to' | tail\n"
189 "\n"
190 msgstr ""
191
192 #. type: textblock
193 #: ../cat/virt-cat.pod:48
194 msgid "Find out what packages were recently installed:"
195 msgstr ""
196
197 #. type: verbatim
198 #: ../cat/virt-cat.pod:50
199 #, no-wrap
200 msgid ""
201 " virt-cat -d mydomain /var/log/yum.log | tail\n"
202 "\n"
203 msgstr ""
204
205 #. type: textblock
206 #: ../cat/virt-cat.pod:52
207 msgid "Find out who is logged on inside a virtual machine:"
208 msgstr ""
209
210 #. type: verbatim
211 #: ../cat/virt-cat.pod:54
212 #, no-wrap
213 msgid ""
214 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
215 " who /tmp/utmp\n"
216 "\n"
217 msgstr ""
218
219 #. type: textblock
220 #: ../cat/virt-cat.pod:57
221 msgid "or who was logged on:"
222 msgstr ""
223
224 #. type: verbatim
225 #: ../cat/virt-cat.pod:59
226 #, no-wrap
227 msgid ""
228 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
229 " last -f /tmp/wtmp\n"
230 "\n"
231 msgstr ""
232
233 #. type: =head1
234 #: ../cat/virt-cat.pod:62 ../cat/virt-filesystems.pod:91
235 #: ../cat/virt-ls.pod:261 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
236 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
237 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
238 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:92
239 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84
240 #: ../resize/virt-resize.pod:241 ../test-tool/libguestfs-test-tool.pod:36
241 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
242 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
243 #: ../tools/virt-win-reg.pl:96
244 msgid "OPTIONS"
245 msgstr ""
246
247 #. type: =item
248 #: ../cat/virt-cat.pod:66 ../cat/virt-filesystems.pod:95
249 #: ../cat/virt-ls.pod:265 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
250 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:160
251 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88
252 #: ../resize/virt-resize.pod:245 ../test-tool/libguestfs-test-tool.pod:40
253 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
254 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
255 #: ../tools/virt-win-reg.pl:104
256 msgid "B<--help>"
257 msgstr ""
258
259 #. type: textblock
260 #: ../cat/virt-cat.pod:68 ../cat/virt-filesystems.pod:97
261 #: ../cat/virt-ls.pod:267 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
262 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90
263 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
264 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
265 #: ../tools/virt-win-reg.pl:106
266 msgid "Display brief help."
267 msgstr ""
268
269 #. type: =item
270 #: ../cat/virt-cat.pod:70 ../cat/virt-filesystems.pod:99
271 #: ../cat/virt-ls.pod:269 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
272 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
273 msgid "B<-a> file"
274 msgstr ""
275
276 #. type: =item
277 #: ../cat/virt-cat.pod:72 ../cat/virt-filesystems.pod:101
278 #: ../cat/virt-ls.pod:271 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
279 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
280 msgid "B<--add> file"
281 msgstr ""
282
283 #. type: textblock
284 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
285 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
286 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
287 msgid ""
288 "Add I<file> which should be a disk image from a virtual machine.  If the "
289 "virtual machine has multiple block devices, you must supply all of them with "
290 "separate I<-a> options."
291 msgstr ""
292
293 #. type: textblock
294 #: ../cat/virt-cat.pod:78 ../cat/virt-filesystems.pod:107
295 #: ../cat/virt-ls.pod:277 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
296 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:102
297 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
298 msgid ""
299 "The format of the disk image is auto-detected.  To override this and force a "
300 "particular format use the I<--format=..> option."
301 msgstr ""
302
303 #. type: =item
304 #: ../cat/virt-cat.pod:81 ../cat/virt-filesystems.pod:125
305 #: ../cat/virt-ls.pod:291 ../df/virt-df.pod:78 ../rescue/virt-rescue.pod:107
306 msgid "B<-c> URI"
307 msgstr ""
308
309 #. type: =item
310 #: ../cat/virt-cat.pod:83 ../cat/virt-filesystems.pod:127
311 #: ../cat/virt-ls.pod:293 ../df/virt-df.pod:80 ../rescue/virt-rescue.pod:109
312 msgid "B<--connect> URI"
313 msgstr ""
314
315 #. type: textblock
316 #: ../cat/virt-cat.pod:85 ../cat/virt-filesystems.pod:129
317 #: ../cat/virt-ls.pod:295 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
318 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111
319 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
320 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
321 msgid ""
322 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
323 "to the default libvirt hypervisor."
324 msgstr ""
325
326 #. type: textblock
327 #: ../cat/virt-cat.pod:88 ../cat/virt-filesystems.pod:132
328 #: ../cat/virt-ls.pod:298 ../df/virt-df.pod:85 ../rescue/virt-rescue.pod:114
329 msgid ""
330 "If you specify guest block devices directly (I<-a>), then libvirt is not "
331 "used at all."
332 msgstr ""
333
334 #. type: =item
335 #: ../cat/virt-cat.pod:91 ../cat/virt-filesystems.pod:141
336 #: ../cat/virt-ls.pod:307 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
337 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
338 msgid "B<-d> guest"
339 msgstr ""
340
341 #. type: =item
342 #: ../cat/virt-cat.pod:93 ../cat/virt-filesystems.pod:143
343 #: ../cat/virt-ls.pod:309 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
344 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
345 msgid "B<--domain> guest"
346 msgstr ""
347
348 #. type: textblock
349 #: ../cat/virt-cat.pod:95 ../cat/virt-filesystems.pod:145
350 #: ../cat/virt-ls.pod:311 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
351 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
352 msgid ""
353 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
354 "instead of names."
355 msgstr ""
356
357 #. type: =item
358 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
359 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
360 #: ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:92
361 msgid "B<--echo-keys>"
362 msgstr ""
363
364 #. type: textblock
365 #: ../cat/virt-cat.pod:100
366 msgid ""
367 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
368 "so you cannot see what you are typing.  If you are not worried about Tempest "
369 "attacks and there is no one else in the room you can specify this flag to "
370 "see what you are typing."
371 msgstr ""
372
373 #. type: =item
374 #: ../cat/virt-cat.pod:105 ../cat/virt-filesystems.pod:170
375 #: ../cat/virt-ls.pod:328 ../df/virt-df.pod:101 ../fish/guestfish.pod:233
376 #: ../fuse/guestmount.pod:142 ../inspector/virt-inspector.pod:99
377 #: ../rescue/virt-rescue.pod:124
378 msgid "B<--format=raw|qcow2|..>"
379 msgstr ""
380
381 #. type: =item
382 #: ../cat/virt-cat.pod:107 ../cat/virt-filesystems.pod:172
383 #: ../cat/virt-ls.pod:330 ../df/virt-df.pod:103 ../edit/virt-edit.pod:134
384 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:144
385 #: ../inspector/virt-inspector.pod:101 ../rescue/virt-rescue.pod:126
386 msgid "B<--format>"
387 msgstr ""
388
389 #. type: textblock
390 #: ../cat/virt-cat.pod:109 ../cat/virt-filesystems.pod:174
391 #: ../cat/virt-ls.pod:332 ../df/virt-df.pod:105 ../edit/virt-edit.pod:136
392 #: ../fish/guestfish.pod:237 ../fuse/guestmount.pod:146
393 #: ../rescue/virt-rescue.pod:128
394 msgid ""
395 "The default for the I<-a> option is to auto-detect the format of the disk "
396 "image.  Using this forces the disk format for I<-a> options which follow on "
397 "the command line.  Using I<--format> with no argument switches back to auto-"
398 "detection for subsequent I<-a> options."
399 msgstr ""
400
401 #. type: textblock
402 #: ../cat/virt-cat.pod:114 ../cat/virt-filesystems.pod:179
403 #: ../cat/virt-ls.pod:337 ../df/virt-df.pod:110 ../edit/virt-edit.pod:141
404 #: ../fish/guestfish.pod:242 ../fish/guestfish.pod:673
405 #: ../inspector/virt-inspector.pod:336 ../rescue/virt-rescue.pod:133
406 #: ../src/guestfs.pod:2768
407 msgid "For example:"
408 msgstr ""
409
410 #. type: verbatim
411 #: ../cat/virt-cat.pod:116
412 #, no-wrap
413 msgid ""
414 " virt-cat --format=raw -a disk.img file\n"
415 "\n"
416 msgstr ""
417
418 #. type: textblock
419 #: ../cat/virt-cat.pod:118 ../cat/virt-filesystems.pod:183
420 #: ../cat/virt-ls.pod:341 ../df/virt-df.pod:114 ../edit/virt-edit.pod:145
421 #: ../fish/guestfish.pod:246 ../rescue/virt-rescue.pod:137
422 msgid "forces raw format (no auto-detection) for C<disk.img>."
423 msgstr ""
424
425 #. type: verbatim
426 #: ../cat/virt-cat.pod:120
427 #, no-wrap
428 msgid ""
429 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
430 "\n"
431 msgstr ""
432
433 #. type: textblock
434 #: ../cat/virt-cat.pod:122 ../cat/virt-filesystems.pod:187
435 #: ../cat/virt-ls.pod:345 ../df/virt-df.pod:118 ../edit/virt-edit.pod:149
436 #: ../fish/guestfish.pod:250 ../rescue/virt-rescue.pod:141
437 msgid ""
438 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
439 "detection for C<another.img>."
440 msgstr ""
441
442 #. type: textblock
443 #: ../cat/virt-cat.pod:125 ../cat/virt-filesystems.pod:190
444 #: ../cat/virt-ls.pod:348 ../df/virt-df.pod:121 ../edit/virt-edit.pod:152
445 #: ../rescue/virt-rescue.pod:144
446 msgid ""
447 "If you have untrusted raw-format guest disk images, you should use this "
448 "option to specify the disk format.  This avoids a possible security problem "
449 "with malicious guests (CVE-2010-3851)."
450 msgstr ""
451
452 #. type: =item
453 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
454 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
455 #: ../fuse/guestmount.pod:172 ../inspector/virt-inspector.pod:114
456 msgid "B<--keys-from-stdin>"
457 msgstr ""
458
459 #. type: textblock
460 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
461 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
462 #: ../fuse/guestmount.pod:174 ../inspector/virt-inspector.pod:116
463 msgid ""
464 "Read key or passphrase parameters from stdin.  The default is to try to read "
465 "passphrases from the user by opening C</dev/tty>."
466 msgstr ""
467
468 #. type: =item
469 #: ../cat/virt-cat.pod:134 ../cat/virt-filesystems.pod:261
470 #: ../cat/virt-ls.pod:425 ../df/virt-df.pod:173 ../edit/virt-edit.pod:161
471 #: ../fish/guestfish.pod:390 ../fuse/guestmount.pod:266
472 #: ../inspector/virt-inspector.pod:119 ../rescue/virt-rescue.pod:178
473 msgid "B<-v>"
474 msgstr ""
475
476 #. type: =item
477 #: ../cat/virt-cat.pod:136 ../cat/virt-filesystems.pod:263
478 #: ../cat/virt-ls.pod:427 ../df/virt-df.pod:175 ../edit/virt-edit.pod:163
479 #: ../fish/guestfish.pod:392 ../fuse/guestmount.pod:268
480 #: ../inspector/virt-inspector.pod:121 ../rescue/virt-rescue.pod:180
481 msgid "B<--verbose>"
482 msgstr ""
483
484 #. type: textblock
485 #: ../cat/virt-cat.pod:138 ../cat/virt-filesystems.pod:265
486 #: ../cat/virt-ls.pod:429 ../df/virt-df.pod:177 ../edit/virt-edit.pod:165
487 #: ../inspector/virt-inspector.pod:123 ../rescue/virt-rescue.pod:182
488 msgid "Enable verbose messages for debugging."
489 msgstr ""
490
491 #. type: =item
492 #: ../cat/virt-cat.pod:140 ../cat/virt-filesystems.pod:267
493 #: ../cat/virt-ls.pod:431 ../df/virt-df.pod:179 ../edit/virt-edit.pod:167
494 #: ../fish/guestfish.pod:397 ../fuse/guestmount.pod:272
495 #: ../inspector/virt-inspector.pod:125 ../rescue/virt-rescue.pod:184
496 #: ../resize/virt-resize.pod:484
497 msgid "B<-V>"
498 msgstr ""
499
500 #. type: =item
501 #: ../cat/virt-cat.pod:142 ../cat/virt-filesystems.pod:269
502 #: ../cat/virt-ls.pod:433 ../df/virt-df.pod:181 ../edit/virt-edit.pod:169
503 #: ../fish/guestfish.pod:399 ../fuse/guestmount.pod:274
504 #: ../inspector/virt-inspector.pod:127 ../rescue/virt-rescue.pod:186
505 #: ../resize/virt-resize.pod:486 ../tools/virt-list-filesystems.pl:69
506 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
507 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
508 msgid "B<--version>"
509 msgstr ""
510
511 #. type: textblock
512 #: ../cat/virt-cat.pod:144 ../cat/virt-filesystems.pod:271
513 #: ../cat/virt-ls.pod:435 ../df/virt-df.pod:183 ../edit/virt-edit.pod:171
514 #: ../inspector/virt-inspector.pod:129 ../rescue/virt-rescue.pod:188
515 #: ../resize/virt-resize.pod:488 ../tools/virt-list-filesystems.pl:71
516 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
517 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
518 msgid "Display version number and exit."
519 msgstr ""
520
521 #. type: =item
522 #: ../cat/virt-cat.pod:146 ../cat/virt-filesystems.pod:281
523 #: ../cat/virt-ls.pod:437 ../df/virt-df.pod:185 ../edit/virt-edit.pod:173
524 #: ../fish/guestfish.pod:412 ../fuse/guestmount.pod:287
525 #: ../inspector/virt-inspector.pod:131 ../rescue/virt-rescue.pod:199
526 #: ../tools/virt-tar.pl:158
527 msgid "B<-x>"
528 msgstr ""
529
530 #. type: textblock
531 #: ../cat/virt-cat.pod:148 ../cat/virt-filesystems.pod:283
532 #: ../cat/virt-ls.pod:439 ../df/virt-df.pod:187 ../edit/virt-edit.pod:175
533 #: ../inspector/virt-inspector.pod:133 ../rescue/virt-rescue.pod:201
534 msgid "Enable tracing of libguestfs API calls."
535 msgstr ""
536
537 #. type: =head1
538 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
539 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:205
540 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
541 msgstr ""
542
543 #. type: textblock
544 #: ../cat/virt-cat.pod:154
545 msgid "Previous versions of virt-cat allowed you to write either:"
546 msgstr ""
547
548 #. type: verbatim
549 #: ../cat/virt-cat.pod:156
550 #, no-wrap
551 msgid ""
552 " virt-cat disk.img [disk.img ...] file\n"
553 "\n"
554 msgstr ""
555
556 #. type: textblock
557 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
558 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:211
559 msgid "or"
560 msgstr ""
561
562 #. type: verbatim
563 #: ../cat/virt-cat.pod:160
564 #, no-wrap
565 msgid ""
566 " virt-cat guestname file\n"
567 "\n"
568 msgstr ""
569
570 #. type: textblock
571 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
572 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:215
573 msgid ""
574 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
575 "the confusing case where a disk image might have the same name as a guest."
576 msgstr ""
577
578 #. type: textblock
579 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
580 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:219
581 msgid "For compatibility the old style is still supported."
582 msgstr ""
583
584 #. type: =head1
585 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
586 msgid "USING GUESTFISH"
587 msgstr ""
588
589 #. type: textblock
590 #: ../cat/virt-cat.pod:170
591 msgid ""
592 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
593 "C<virt-cat> doesn't work."
594 msgstr ""
595
596 #. type: textblock
597 #: ../cat/virt-cat.pod:173
598 msgid "Using C<virt-cat> is approximately equivalent to doing:"
599 msgstr ""
600
601 #. type: verbatim
602 #: ../cat/virt-cat.pod:175
603 #, no-wrap
604 msgid ""
605 " guestfish --ro -i -d domname download file -\n"
606 "\n"
607 msgstr ""
608
609 #. type: textblock
610 #: ../cat/virt-cat.pod:177
611 msgid ""
612 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
613 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
614 msgstr ""
615
616 #. type: textblock
617 #: ../cat/virt-cat.pod:181
618 msgid ""
619 "The command above uses libguestfs's guest inspection feature and so does not "
620 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
621 "disk images that don't contain guests.  To display a file from a disk image "
622 "directly, use:"
623 msgstr ""
624
625 #. type: verbatim
626 #: ../cat/virt-cat.pod:186
627 #, no-wrap
628 msgid ""
629 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
630 "\n"
631 msgstr ""
632
633 #. type: textblock
634 #: ../cat/virt-cat.pod:188
635 msgid ""
636 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
637 "the disk image, and C<file> is the full path to the file."
638 msgstr ""
639
640 #. type: =head1
641 #: ../cat/virt-cat.pod:191 ../cat/virt-filesystems.pod:365
642 #: ../cat/virt-ls.pod:483 ../df/virt-df.pod:215 ../edit/virt-edit.pod:342
643 #: ../inspector/virt-inspector.pod:352 ../rescue/virt-rescue.pod:262
644 #: ../resize/virt-resize.pod:568 ../tools/virt-list-filesystems.pl:188
645 #: ../tools/virt-list-partitions.pl:258 ../tools/virt-make-fs.pl:550
646 #: ../tools/virt-tar.pl:289 ../tools/virt-win-reg.pl:733
647 msgid "SHELL QUOTING"
648 msgstr ""
649
650 #. type: textblock
651 #: ../cat/virt-cat.pod:193 ../cat/virt-filesystems.pod:367
652 #: ../cat/virt-ls.pod:485 ../df/virt-df.pod:217 ../edit/virt-edit.pod:344
653 #: ../inspector/virt-inspector.pod:354 ../rescue/virt-rescue.pod:264
654 #: ../resize/virt-resize.pod:570 ../tools/virt-list-filesystems.pl:190
655 #: ../tools/virt-list-partitions.pl:260 ../tools/virt-make-fs.pl:552
656 #: ../tools/virt-tar.pl:291 ../tools/virt-win-reg.pl:741
657 msgid ""
658 "Libvirt guest names can contain arbitrary characters, some of which have "
659 "meaning to the shell such as C<#> and space.  You may need to quote or "
660 "escape these characters on the command line.  See the shell manual page L<sh"
661 "(1)> for details."
662 msgstr ""
663
664 #. type: =head1
665 #: ../cat/virt-cat.pod:198 ../cat/virt-filesystems.pod:372
666 #: ../cat/virt-ls.pod:490 ../df/virt-df.pod:222 ../edit/virt-edit.pod:349
667 #: ../fish/guestfish.pod:1114 ../fuse/guestmount.pod:312
668 #: ../inspector/virt-inspector.pod:375 ../resize/virt-resize.pod:575
669 #: ../test-tool/libguestfs-test-tool.pod:90
670 msgid "EXIT STATUS"
671 msgstr ""
672
673 #. type: textblock
674 #: ../cat/virt-cat.pod:200 ../cat/virt-filesystems.pod:374
675 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
676 #: ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:377
677 #: ../resize/virt-resize.pod:577
678 msgid ""
679 "This program returns 0 if successful, or non-zero if there was an error."
680 msgstr ""
681
682 #. type: =head1
683 #: ../cat/virt-cat.pod:203 ../cat/virt-filesystems.pod:377
684 #: ../cat/virt-ls.pod:495 ../df/virt-df.pod:227 ../edit/virt-edit.pod:354
685 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
686 #: ../fish/guestfish.pod:1268 ../fish/virt-copy-in.pod:50
687 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
688 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:317
689 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45
690 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
691 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:284
692 #: ../resize/virt-resize.pod:580 ../ruby/examples/guestfs-ruby.pod:36
693 #: ../src/guestfs.pod:3146 ../test-tool/libguestfs-test-tool.pod:100
694 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
695 #: ../tools/virt-make-fs.pl:557 ../tools/virt-tar.pl:296
696 #: ../tools/virt-win-reg.pl:746
697 msgid "SEE ALSO"
698 msgstr ""
699
700 #. type: textblock
701 #: ../cat/virt-cat.pod:205
702 msgid ""
703 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
704 "tar-out(1)>, L<http://libguestfs.org/>."
705 msgstr ""
706
707 #. type: =head1
708 #: ../cat/virt-cat.pod:212 ../cat/virt-filesystems.pod:388
709 #: ../cat/virt-ls.pod:507 ../df/virt-df.pod:235 ../edit/virt-edit.pod:368
710 #: ../rescue/virt-rescue.pod:292 ../resize/virt-resize.pod:601
711 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
712 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:311
713 #: ../tools/virt-win-reg.pl:772
714 msgid "AUTHOR"
715 msgstr ""
716
717 #. type: textblock
718 #: ../cat/virt-cat.pod:214 ../cat/virt-filesystems.pod:390
719 #: ../cat/virt-ls.pod:509 ../df/virt-df.pod:237 ../edit/virt-edit.pod:370
720 #: ../inspector/virt-inspector.pod:395 ../rescue/virt-rescue.pod:294
721 #: ../resize/virt-resize.pod:603 ../tools/virt-list-filesystems.pl:210
722 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:584
723 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:774
724 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
725 msgstr ""
726
727 #. type: =head1
728 #: ../cat/virt-cat.pod:216 ../cat/virt-filesystems.pod:392
729 #: ../cat/virt-ls.pod:511 ../df/virt-df.pod:239 ../edit/virt-edit.pod:372
730 #: ../examples/guestfs-examples.pod:48 ../examples/guestfs-recipes.pod:400
731 #: ../fish/guestfish.pod:1297 ../fish/virt-copy-in.pod:64
732 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
733 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:332
734 #: ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:61
735 #: ../ocaml/examples/guestfs-ocaml.pod:94 ../perl/examples/guestfs-perl.pod:55
736 #: ../python/examples/guestfs-python.pod:57 ../rescue/virt-rescue.pod:296
737 #: ../resize/virt-resize.pod:605 ../ruby/examples/guestfs-ruby.pod:51
738 #: ../src/guestfs.pod:3223 ../test-tool/libguestfs-test-tool.pod:110
739 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
740 #: ../tools/virt-make-fs.pl:586 ../tools/virt-tar.pl:315
741 #: ../tools/virt-win-reg.pl:776
742 msgid "COPYRIGHT"
743 msgstr ""
744
745 #. type: textblock
746 #: ../cat/virt-cat.pod:218 ../inspector/virt-inspector.pod:405
747 #: ../resize/virt-resize.pod:607 ../tools/virt-make-fs.pl:588
748 msgid "Copyright (C) 2010-2011 Red Hat Inc."
749 msgstr ""
750
751 #. type: textblock
752 #: ../cat/virt-cat.pod:220 ../cat/virt-filesystems.pod:396
753 #: ../cat/virt-ls.pod:515 ../df/virt-df.pod:243 ../edit/virt-edit.pod:376
754 #: ../fish/guestfish.pod:1302 ../fish/virt-copy-in.pod:69
755 #: ../fish/virt-copy-out.pod:58 ../fish/virt-tar-in.pod:67
756 #: ../fish/virt-tar-out.pod:60 ../fuse/guestmount.pod:337
757 #: ../inspector/virt-inspector.pod:407 ../rescue/virt-rescue.pod:300
758 #: ../resize/virt-resize.pod:609 ../test-tool/libguestfs-test-tool.pod:115
759 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
760 #: ../tools/virt-make-fs.pl:590 ../tools/virt-tar.pl:319
761 #: ../tools/virt-win-reg.pl:780
762 msgid ""
763 "This program is free software; you can redistribute it and/or modify it "
764 "under the terms of the GNU General Public License as published by the Free "
765 "Software Foundation; either version 2 of the License, or (at your option) "
766 "any later version."
767 msgstr ""
768
769 #. type: textblock
770 #: ../cat/virt-cat.pod:225 ../cat/virt-filesystems.pod:401
771 #: ../cat/virt-ls.pod:520 ../df/virt-df.pod:248 ../edit/virt-edit.pod:381
772 #: ../fish/guestfish.pod:1307 ../fish/virt-copy-in.pod:74
773 #: ../fish/virt-copy-out.pod:63 ../fish/virt-tar-in.pod:72
774 #: ../fish/virt-tar-out.pod:65 ../fuse/guestmount.pod:342
775 #: ../inspector/virt-inspector.pod:412 ../rescue/virt-rescue.pod:305
776 #: ../resize/virt-resize.pod:614 ../test-tool/libguestfs-test-tool.pod:120
777 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
778 #: ../tools/virt-make-fs.pl:595 ../tools/virt-tar.pl:324
779 #: ../tools/virt-win-reg.pl:785
780 msgid ""
781 "This program is distributed in the hope that it will be useful, but WITHOUT "
782 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
783 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
784 "more details."
785 msgstr ""
786
787 #. type: textblock
788 #: ../cat/virt-cat.pod:230 ../cat/virt-filesystems.pod:406
789 #: ../cat/virt-ls.pod:525 ../df/virt-df.pod:253 ../edit/virt-edit.pod:386
790 #: ../fish/guestfish.pod:1312 ../fish/virt-copy-in.pod:79
791 #: ../fish/virt-copy-out.pod:68 ../fish/virt-tar-in.pod:77
792 #: ../fish/virt-tar-out.pod:70 ../fuse/guestmount.pod:347
793 #: ../inspector/virt-inspector.pod:417 ../rescue/virt-rescue.pod:310
794 #: ../resize/virt-resize.pod:619 ../test-tool/libguestfs-test-tool.pod:125
795 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
796 #: ../tools/virt-make-fs.pl:600 ../tools/virt-tar.pl:329
797 #: ../tools/virt-win-reg.pl:790
798 msgid ""
799 "You should have received a copy of the GNU General Public License along with "
800 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
801 "Ave, Cambridge, MA 02139, USA."
802 msgstr ""
803
804 #. type: textblock
805 #: ../cat/virt-filesystems.pod:5
806 msgid ""
807 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
808 "virtual machine or disk image"
809 msgstr ""
810
811 #. type: verbatim
812 #: ../cat/virt-filesystems.pod:9
813 #, no-wrap
814 msgid ""
815 " virt-filesystems [--options] -d domname\n"
816 "\n"
817 msgstr ""
818
819 #. type: verbatim
820 #: ../cat/virt-filesystems.pod:11
821 #, no-wrap
822 msgid ""
823 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
824 "\n"
825 msgstr ""
826
827 #. type: textblock
828 #: ../cat/virt-filesystems.pod:15
829 msgid ""
830 "This tool allows you to discover filesystems, partitions, logical volumes, "
831 "and their sizes in a disk image or virtual machine.  It is a replacement for "
832 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
833 msgstr ""
834
835 #. type: textblock
836 #: ../cat/virt-filesystems.pod:20
837 msgid ""
838 "One use for this tool is from shell scripts to iterate over all filesystems "
839 "from a disk image:"
840 msgstr ""
841
842 #. type: verbatim
843 #: ../cat/virt-filesystems.pod:23
844 #, no-wrap
845 msgid ""
846 " for fs in $(virt-filesystems -a disk.img); do\n"
847 "   # ...\n"
848 " done\n"
849 "\n"
850 msgstr ""
851
852 #. type: textblock
853 #: ../cat/virt-filesystems.pod:27
854 msgid ""
855 "Another use is to list partitions before using another tool to modify those "
856 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
857 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
858 msgstr ""
859
860 #. type: textblock
861 #: ../cat/virt-filesystems.pod:32
862 msgid ""
863 "Various command line options control what this program displays.  You need "
864 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
865 "guest respectively.  If you just specify that then the program shows "
866 "filesystems found, one per line, like this:"
867 msgstr ""
868
869 #. type: verbatim
870 #: ../cat/virt-filesystems.pod:37
871 #, no-wrap
872 msgid ""
873 " $ virt-filesystems -a disk.img\n"
874 " /dev/sda1\n"
875 " /dev/vg_guest/lv_root\n"
876 "\n"
877 msgstr ""
878
879 #. type: textblock
880 #: ../cat/virt-filesystems.pod:41
881 msgid ""
882 "If you add I<-l> or I<--long> then the output includes extra information:"
883 msgstr ""
884
885 #. type: verbatim
886 #: ../cat/virt-filesystems.pod:44
887 #, no-wrap
888 msgid ""
889 " $ virt-filesystems -a disk.img -l\n"
890 " Name                   Type         VFS   Label  Size\n"
891 " /dev/sda1              filesystem   ext4  boot   524288000\n"
892 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
893 "\n"
894 msgstr ""
895
896 #. type: textblock
897 #: ../cat/virt-filesystems.pod:49
898 msgid ""
899 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
900 "shown as well:"
901 msgstr ""
902
903 #. type: verbatim
904 #: ../cat/virt-filesystems.pod:52
905 #, no-wrap
906 msgid ""
907 " $ virt-filesystems -a disk.img --extra\n"
908 " /dev/sda1\n"
909 " /dev/vg_guest/lv_root\n"
910 " /dev/vg_guest/lv_swap\n"
911 " /dev/vg_guest/lv_data\n"
912 "\n"
913 msgstr ""
914
915 #. type: textblock
916 #: ../cat/virt-filesystems.pod:58
917 msgid ""
918 "If you add I<--partitions> then partitions are shown instead of filesystems:"
919 msgstr ""
920
921 #. type: verbatim
922 #: ../cat/virt-filesystems.pod:60
923 #, no-wrap
924 msgid ""
925 " $ virt-filesystems -a disk.img --partitions\n"
926 " /dev/sda1\n"
927 " /dev/sda2\n"
928 "\n"
929 msgstr ""
930
931 #. type: textblock
932 #: ../cat/virt-filesystems.pod:64
933 msgid ""
934 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
935 "volumes>, I<--block-devices> to list those items."
936 msgstr ""
937
938 #. type: textblock
939 #: ../cat/virt-filesystems.pod:67
940 msgid ""
941 "You can use these options in combination as well (if you want a combination "
942 "including filesystems, you have to add I<--filesystems>).  Notice that some "
943 "items fall into several categories (eg. C</dev/sda1> might be both a "
944 "partition and a filesystem).  These items are listed several times.  To get "
945 "a list which includes absolutely everything that virt-filesystems knows "
946 "about, use the I<--all> option."
947 msgstr ""
948
949 #. type: textblock
950 #: ../cat/virt-filesystems.pod:74
951 msgid ""
952 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
953 "uuid> option to display device and filesystem UUIDs in the long output."
954 msgstr ""
955
956 #. type: textblock
957 #: ../cat/virt-filesystems.pod:78
958 msgid ""
959 "I<--all --long --uuid> is a useful combination to display all possible "
960 "information about everything."
961 msgstr ""
962
963 #. type: verbatim
964 #: ../cat/virt-filesystems.pod:81
965 #, no-wrap
966 msgid ""
967 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
968 " Name      Type       VFS  Label           Size Parent   UUID\n"
969 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
970 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
971 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
972 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
973 " /dev/sda  device     -    -               20G  -        -\n"
974 "\n"
975 msgstr ""
976
977 #. type: textblock
978 #: ../cat/virt-filesystems.pod:89
979 msgid ""
980 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
981 msgstr ""
982
983 #. type: =item
984 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
985 msgid "B<--all>"
986 msgstr ""
987
988 #. type: textblock
989 #: ../cat/virt-filesystems.pod:112
990 msgid ""
991 "Display everything.  This is currently the same as specifying these options: "
992 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
993 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
994 "added to this list in future)."
995 msgstr ""
996
997 #. type: textblock
998 #: ../cat/virt-filesystems.pod:117
999 msgid "See also I<--long>."
1000 msgstr ""
1001
1002 #. type: =item
1003 #: ../cat/virt-filesystems.pod:119
1004 msgid "B<--blkdevs>"
1005 msgstr ""
1006
1007 #. type: =item
1008 #: ../cat/virt-filesystems.pod:121
1009 msgid "B<--block-devices>"
1010 msgstr ""
1011
1012 #. type: textblock
1013 #: ../cat/virt-filesystems.pod:123
1014 msgid "Display block devices."
1015 msgstr ""
1016
1017 #. type: =item
1018 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1019 msgid "B<--csv>"
1020 msgstr ""
1021
1022 #. type: textblock
1023 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1024 msgid ""
1025 "Write out the results in CSV format (comma-separated values).  This format "
1026 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1027 "ABOUT CSV FORMAT> below."
1028 msgstr ""
1029
1030 #. type: textblock
1031 #: ../cat/virt-filesystems.pod:150
1032 msgid ""
1033 "When prompting for keys and passphrases, virt-filesystems normally turns "
1034 "echoing off so you cannot see what you are typing.  If you are not worried "
1035 "about Tempest attacks and there is no one else in the room you can specify "
1036 "this flag to see what you are typing."
1037 msgstr ""
1038
1039 #. type: =item
1040 #: ../cat/virt-filesystems.pod:155
1041 msgid "B<--extra>"
1042 msgstr ""
1043
1044 #. type: textblock
1045 #: ../cat/virt-filesystems.pod:157
1046 msgid ""
1047 "This causes filesystems that are not ordinary, mountable filesystems to be "
1048 "displayed.  This category includes swapspace, and filesystems that are empty "
1049 "or contain unknown data."
1050 msgstr ""
1051
1052 #. type: textblock
1053 #: ../cat/virt-filesystems.pod:161
1054 msgid "This option implies I<--filesystems>."
1055 msgstr ""
1056
1057 #. type: =item
1058 #: ../cat/virt-filesystems.pod:163
1059 msgid "B<--filesystems>"
1060 msgstr ""
1061
1062 #. type: textblock
1063 #: ../cat/virt-filesystems.pod:165
1064 msgid ""
1065 "Display mountable filesystems.  If no display option was selected then this "
1066 "option is implied."
1067 msgstr ""
1068
1069 #. type: textblock
1070 #: ../cat/virt-filesystems.pod:168
1071 msgid "With I<--extra>, non-mountable filesystems are shown too."
1072 msgstr ""
1073
1074 #. type: verbatim
1075 #: ../cat/virt-filesystems.pod:181
1076 #, no-wrap
1077 msgid ""
1078 " virt-filesystems --format=raw -a disk.img\n"
1079 "\n"
1080 msgstr ""
1081
1082 #. type: verbatim
1083 #: ../cat/virt-filesystems.pod:185
1084 #, no-wrap
1085 msgid ""
1086 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1087 "\n"
1088 msgstr ""
1089
1090 #. type: =item
1091 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1092 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1093 #: ../tools/virt-list-partitions.pl:109
1094 msgid "B<-h>"
1095 msgstr ""
1096
1097 #. type: =item
1098 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1099 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1100 msgid "B<--human-readable>"
1101 msgstr ""
1102
1103 #. type: textblock
1104 #: ../cat/virt-filesystems.pod:198
1105 msgid "In I<--long> mode, display sizes in human-readable format."
1106 msgstr ""
1107
1108 #. type: =item
1109 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1110 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1111 msgid "B<-l>"
1112 msgstr ""
1113
1114 #. type: =item
1115 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1116 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1117 msgid "B<--long>"
1118 msgstr ""
1119
1120 #. type: textblock
1121 #: ../cat/virt-filesystems.pod:209
1122 msgid "Display extra columns of data (\"long format\")."
1123 msgstr ""
1124
1125 #. type: textblock
1126 #: ../cat/virt-filesystems.pod:211
1127 msgid "A title row is added unless you also specify I<--no-title>."
1128 msgstr ""
1129
1130 #. type: textblock
1131 #: ../cat/virt-filesystems.pod:213
1132 msgid ""
1133 "The extra columns displayed depend on what output you select, and the "
1134 "ordering of columns may change in future versions.  Use the title row, I<--"
1135 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1136 "programs."
1137 msgstr ""
1138
1139 #. type: textblock
1140 #: ../cat/virt-filesystems.pod:218
1141 msgid ""
1142 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1143 "default is to show raw numbers of I<bytes>."
1144 msgstr ""
1145
1146 #. type: textblock
1147 #: ../cat/virt-filesystems.pod:221
1148 msgid "Use I<--uuid> to display UUIDs too."
1149 msgstr ""
1150
1151 #. type: =item
1152 #: ../cat/virt-filesystems.pod:223
1153 msgid "B<--lvs>"
1154 msgstr ""
1155
1156 #. type: =item
1157 #: ../cat/virt-filesystems.pod:225
1158 msgid "B<--logvols>"
1159 msgstr ""
1160
1161 #. type: =item
1162 #: ../cat/virt-filesystems.pod:227
1163 msgid "B<--logical-volumes>"
1164 msgstr ""
1165
1166 #. type: textblock
1167 #: ../cat/virt-filesystems.pod:229
1168 msgid ""
1169 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1170 "of whether the LVs contain filesystems."
1171 msgstr ""
1172
1173 #. type: =item
1174 #: ../cat/virt-filesystems.pod:232
1175 msgid "B<--no-title>"
1176 msgstr ""
1177
1178 #. type: textblock
1179 #: ../cat/virt-filesystems.pod:234
1180 msgid "In I<--long> mode, don't add a title row."
1181 msgstr ""
1182
1183 #. type: textblock
1184 #: ../cat/virt-filesystems.pod:236
1185 msgid ""
1186 "Note that the order of the columns is not fixed, and may change in future "
1187 "versions of virt-filesystems, so using this option may give you unexpected "
1188 "surprises."
1189 msgstr ""
1190
1191 #. type: =item
1192 #: ../cat/virt-filesystems.pod:240
1193 msgid "B<--parts>"
1194 msgstr ""
1195
1196 #. type: =item
1197 #: ../cat/virt-filesystems.pod:242
1198 msgid "B<--partitions>"
1199 msgstr ""
1200
1201 #. type: textblock
1202 #: ../cat/virt-filesystems.pod:244
1203 msgid ""
1204 "Display partitions.  In this mode, these are displayed irrespective of "
1205 "whether the partitions contain filesystems."
1206 msgstr ""
1207
1208 #. type: =item
1209 #: ../cat/virt-filesystems.pod:247
1210 msgid "B<--pvs>"
1211 msgstr ""
1212
1213 #. type: =item
1214 #: ../cat/virt-filesystems.pod:249
1215 msgid "B<--physvols>"
1216 msgstr ""
1217
1218 #. type: =item
1219 #: ../cat/virt-filesystems.pod:251
1220 msgid "B<--physical-volumes>"
1221 msgstr ""
1222
1223 #. type: textblock
1224 #: ../cat/virt-filesystems.pod:253
1225 msgid "Display LVM physical volumes."
1226 msgstr ""
1227
1228 #. type: =item
1229 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1230 msgid "B<--uuid>"
1231 msgstr ""
1232
1233 #. type: =item
1234 #: ../cat/virt-filesystems.pod:257
1235 msgid "B<--uuids>"
1236 msgstr ""
1237
1238 #. type: textblock
1239 #: ../cat/virt-filesystems.pod:259
1240 msgid "In I<--long> mode, display UUIDs as well."
1241 msgstr ""
1242
1243 #. type: =item
1244 #: ../cat/virt-filesystems.pod:273
1245 msgid "B<--vgs>"
1246 msgstr ""
1247
1248 #. type: =item
1249 #: ../cat/virt-filesystems.pod:275
1250 msgid "B<--volgroups>"
1251 msgstr ""
1252
1253 #. type: =item
1254 #: ../cat/virt-filesystems.pod:277
1255 msgid "B<--volume-groups>"
1256 msgstr ""
1257
1258 #. type: textblock
1259 #: ../cat/virt-filesystems.pod:279
1260 msgid "Display LVM volume groups."
1261 msgstr ""
1262
1263 #. type: =head1
1264 #: ../cat/virt-filesystems.pod:287
1265 msgid "COLUMNS"
1266 msgstr ""
1267
1268 #. type: textblock
1269 #: ../cat/virt-filesystems.pod:289
1270 msgid ""
1271 "Note that columns in the output are subject to reordering and change in "
1272 "future versions of this tool."
1273 msgstr ""
1274
1275 #. type: =item
1276 #: ../cat/virt-filesystems.pod:294
1277 msgid "B<Name>"
1278 msgstr ""
1279
1280 #. type: textblock
1281 #: ../cat/virt-filesystems.pod:296
1282 msgid "The filesystem, partition, block device or LVM name."
1283 msgstr ""
1284
1285 #. type: textblock
1286 #: ../cat/virt-filesystems.pod:298
1287 msgid ""
1288 "For device and partition names these are displayed as canonical libguestfs "
1289 "names, so that for example C</dev/sda2> is the second partition on the first "
1290 "device."
1291 msgstr ""
1292
1293 #. type: textblock
1294 #: ../cat/virt-filesystems.pod:302
1295 msgid ""
1296 "If the I<--long> option is B<not> specified, then only the name column is "
1297 "shown in the output."
1298 msgstr ""
1299
1300 #. type: =item
1301 #: ../cat/virt-filesystems.pod:305
1302 msgid "B<Type>"
1303 msgstr ""
1304
1305 #. type: textblock
1306 #: ../cat/virt-filesystems.pod:307
1307 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1308 msgstr ""
1309
1310 #. type: =item
1311 #: ../cat/virt-filesystems.pod:309
1312 msgid "B<VFS>"
1313 msgstr ""
1314
1315 #. type: textblock
1316 #: ../cat/virt-filesystems.pod:311
1317 msgid ""
1318 "If there is a filesystem, then this column displays the filesystem type if "
1319 "one could be detected, eg. C<ext4>."
1320 msgstr ""
1321
1322 #. type: =item
1323 #: ../cat/virt-filesystems.pod:314
1324 msgid "B<Label>"
1325 msgstr ""
1326
1327 #. type: textblock
1328 #: ../cat/virt-filesystems.pod:316
1329 msgid ""
1330 "If the object has a label (used for identifying and mounting filesystems) "
1331 "then this column contains the label."
1332 msgstr ""
1333
1334 #. type: =item
1335 #: ../cat/virt-filesystems.pod:319
1336 msgid "B<Size>"
1337 msgstr ""
1338
1339 #. type: textblock
1340 #: ../cat/virt-filesystems.pod:321
1341 msgid ""
1342 "The size of the object in bytes.  If the I<--human> option is used then the "
1343 "size is displayed in a human-readable form."
1344 msgstr ""
1345
1346 #. type: =item
1347 #: ../cat/virt-filesystems.pod:324
1348 msgid "B<Parent>"
1349 msgstr ""
1350
1351 #. type: textblock
1352 #: ../cat/virt-filesystems.pod:326
1353 msgid ""
1354 "The parent column records the parent relationship between objects.  For "
1355 "example, if the object is a partition, then this column contains the name of "
1356 "the containing device.  If the object is a logical volume, then this column "
1357 "is the name of the volume group."
1358 msgstr ""
1359
1360 #. type: =item
1361 #: ../cat/virt-filesystems.pod:331
1362 msgid "B<UUID>"
1363 msgstr ""
1364
1365 #. type: textblock
1366 #: ../cat/virt-filesystems.pod:333
1367 msgid ""
1368 "If the object has a UUID (used for identifying and mounting filesystems and "
1369 "block devices) then this column contains the UUID as a string."
1370 msgstr ""
1371
1372 #. type: textblock
1373 #: ../cat/virt-filesystems.pod:337
1374 msgid "The UUID is only displayed if the I<--uuid> option is given."
1375 msgstr ""
1376
1377 #. type: =head1
1378 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459
1379 #: ../df/virt-df.pod:191
1380 msgid "NOTE ABOUT CSV FORMAT"
1381 msgstr ""
1382
1383 #. type: textblock
1384 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461
1385 #: ../df/virt-df.pod:193
1386 msgid ""
1387 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
1388 "should be easy to parse, but it is definitely not easy to parse."
1389 msgstr ""
1390
1391 #. type: textblock
1392 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464
1393 #: ../df/virt-df.pod:196
1394 msgid ""
1395 "Myth: Just split fields at commas.  Reality: This does I<not> work "
1396 "reliably.  This example has two columns:"
1397 msgstr ""
1398
1399 #. type: verbatim
1400 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467
1401 #: ../df/virt-df.pod:199
1402 #, no-wrap
1403 msgid ""
1404 " \"foo,bar\",baz\n"
1405 "\n"
1406 msgstr ""
1407
1408 #. type: textblock
1409 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469
1410 #: ../df/virt-df.pod:201
1411 msgid ""
1412 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
1413 "reliably.  This example has one row:"
1414 msgstr ""
1415
1416 #. type: verbatim
1417 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472
1418 #: ../df/virt-df.pod:204
1419 #, no-wrap
1420 msgid ""
1421 " \"foo\n"
1422 " bar\",baz\n"
1423 "\n"
1424 msgstr ""
1425
1426 #. type: textblock
1427 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475
1428 #: ../df/virt-df.pod:207
1429 msgid ""
1430 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1431 "packaged in major Linux distributions)."
1432 msgstr ""
1433
1434 #. type: textblock
1435 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478
1436 #: ../df/virt-df.pod:210
1437 msgid ""
1438 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1439 "or Python's built-in csv library)."
1440 msgstr ""
1441
1442 #. type: textblock
1443 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481
1444 #: ../df/virt-df.pod:213
1445 msgid "Most spreadsheets and databases can import CSV directly."
1446 msgstr ""
1447
1448 #. type: textblock
1449 #: ../cat/virt-filesystems.pod:379
1450 msgid ""
1451 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
1452 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
1453 "libguestfs.org/>."
1454 msgstr ""
1455
1456 #. type: textblock
1457 #: ../cat/virt-filesystems.pod:394 ../tools/virt-win-reg.pl:778
1458 msgid "Copyright (C) 2010 Red Hat Inc."
1459 msgstr ""
1460
1461 #. type: textblock
1462 #: ../cat/virt-ls.pod:5
1463 msgid "virt-ls - List files in a virtual machine"
1464 msgstr ""
1465
1466 #. type: verbatim
1467 #: ../cat/virt-ls.pod:9
1468 #, no-wrap
1469 msgid ""
1470 " virt-ls [--options] -d domname directory [directory ...]\n"
1471 "\n"
1472 msgstr ""
1473
1474 #. type: verbatim
1475 #: ../cat/virt-ls.pod:11
1476 #, no-wrap
1477 msgid ""
1478 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
1479 "\n"
1480 msgstr ""
1481
1482 #. type: textblock
1483 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
1484 msgid "Old style:"
1485 msgstr ""
1486
1487 #. type: verbatim
1488 #: ../cat/virt-ls.pod:15
1489 #, no-wrap
1490 msgid ""
1491 " virt-ls [--options] domname directory\n"
1492 "\n"
1493 msgstr ""
1494
1495 #. type: verbatim
1496 #: ../cat/virt-ls.pod:17
1497 #, no-wrap
1498 msgid ""
1499 " virt-ls [--options] disk.img [disk.img ...] directory\n"
1500 "\n"
1501 msgstr ""
1502
1503 #. type: textblock
1504 #: ../cat/virt-ls.pod:21
1505 msgid ""
1506 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
1507 "more from a virtual machine or disk image."
1508 msgstr ""
1509
1510 #. type: textblock
1511 #: ../cat/virt-ls.pod:24
1512 msgid ""
1513 "Multiple directory names can be given, in which case the output from each is "
1514 "concatenated."
1515 msgstr ""
1516
1517 #. type: textblock
1518 #: ../cat/virt-ls.pod:27
1519 msgid ""
1520 "To list directories from a libvirt guest use the I<-d> option to specify the "
1521 "name of the guest.  For a disk image, use the I<-a> option."
1522 msgstr ""
1523
1524 #. type: textblock
1525 #: ../cat/virt-ls.pod:31
1526 msgid ""
1527 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
1528 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
1529 "(3)> API."
1530 msgstr ""
1531
1532 #. type: textblock
1533 #: ../cat/virt-ls.pod:37
1534 msgid "Get a list of all files and directories in a virtual machine:"
1535 msgstr ""
1536
1537 #. type: verbatim
1538 #: ../cat/virt-ls.pod:39
1539 #, no-wrap
1540 msgid ""
1541 " virt-ls -R -d guest /\n"
1542 "\n"
1543 msgstr ""
1544
1545 #. type: textblock
1546 #: ../cat/virt-ls.pod:41
1547 msgid "List all setuid or setgid programs in a Linux virtual machine:"
1548 msgstr ""
1549
1550 #. type: verbatim
1551 #: ../cat/virt-ls.pod:43
1552 #, no-wrap
1553 msgid ""
1554 " virt-ls -lR -d guest / | grep '^- [42]'\n"
1555 "\n"
1556 msgstr ""
1557
1558 #. type: textblock
1559 #: ../cat/virt-ls.pod:45
1560 msgid "List all public-writable directories in a Linux virtual machine:"
1561 msgstr ""
1562
1563 #. type: verbatim
1564 #: ../cat/virt-ls.pod:47
1565 #, no-wrap
1566 msgid ""
1567 " virt-ls -lR -d guest / | grep '^d ...7'\n"
1568 "\n"
1569 msgstr ""
1570
1571 #. type: textblock
1572 #: ../cat/virt-ls.pod:49
1573 msgid "List all Unix domain sockets in a Linux virtual machine:"
1574 msgstr ""
1575
1576 #. type: verbatim
1577 #: ../cat/virt-ls.pod:51
1578 #, no-wrap
1579 msgid ""
1580 " virt-ls -lR -d guest / | grep '^s'\n"
1581 "\n"
1582 msgstr ""
1583
1584 #. type: textblock
1585 #: ../cat/virt-ls.pod:53
1586 msgid "List all regular files with filenames ending in '.png':"
1587 msgstr ""
1588
1589 #. type: verbatim
1590 #: ../cat/virt-ls.pod:55
1591 #, no-wrap
1592 msgid ""
1593 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
1594 "\n"
1595 msgstr ""
1596
1597 #. type: textblock
1598 #: ../cat/virt-ls.pod:57
1599 msgid "To display files larger than 10MB in home directories:"
1600 msgstr ""
1601
1602 #. type: verbatim
1603 #: ../cat/virt-ls.pod:59
1604 #, no-wrap
1605 msgid ""
1606 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
1607 "\n"
1608 msgstr ""
1609
1610 #. type: textblock
1611 #: ../cat/virt-ls.pod:61
1612 msgid "Find everything modified in the last 7 days:"
1613 msgstr ""
1614
1615 #. type: verbatim
1616 #: ../cat/virt-ls.pod:63
1617 #, no-wrap
1618 msgid ""
1619 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
1620 "\n"
1621 msgstr ""
1622
1623 #. type: textblock
1624 #: ../cat/virt-ls.pod:65
1625 msgid "Find regular files modified in the last 24 hours:"
1626 msgstr ""
1627
1628 #. type: verbatim
1629 #: ../cat/virt-ls.pod:67
1630 #, no-wrap
1631 msgid ""
1632 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
1633 "\n"
1634 msgstr ""
1635
1636 #. type: =head2
1637 #: ../cat/virt-ls.pod:69
1638 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
1639 msgstr ""
1640
1641 #. type: textblock
1642 #: ../cat/virt-ls.pod:71
1643 msgid ""
1644 "Find the differences between files in a guest and an earlier snapshot of the "
1645 "same guest."
1646 msgstr ""
1647
1648 #. type: verbatim
1649 #: ../cat/virt-ls.pod:74
1650 #, no-wrap
1651 msgid ""
1652 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
1653 " virt-ls -lR -a current.img / --uids --time-t > new\n"
1654 " diff -u old new | less\n"
1655 "\n"
1656 msgstr ""
1657
1658 #. type: textblock
1659 #: ../cat/virt-ls.pod:78
1660 msgid ""
1661 "The commands above won't find files where the content has changed but the "
1662 "metadata (eg. file size and modification date) is the same.  To do that, you "
1663 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
1664 "checksum> can be quite slow since it has to read and compute a checksum of "
1665 "every regular file in the virtual machine."
1666 msgstr ""
1667
1668 #. type: =head1
1669 #: ../cat/virt-ls.pod:84
1670 msgid "OUTPUT MODES"
1671 msgstr ""
1672
1673 #. type: textblock
1674 #: ../cat/virt-ls.pod:86
1675 msgid ""
1676 "C<virt-ls> has four output modes, controlled by different combinations of "
1677 "the I<-l> and I<-R> options."
1678 msgstr ""
1679
1680 #. type: =head2
1681 #: ../cat/virt-ls.pod:89
1682 msgid "SIMPLE LISTING"
1683 msgstr ""
1684
1685 #. type: textblock
1686 #: ../cat/virt-ls.pod:91
1687 msgid "A simple listing is like the ordinary L<ls(1)> command:"
1688 msgstr ""
1689
1690 #. type: verbatim
1691 #: ../cat/virt-ls.pod:93
1692 #, no-wrap
1693 msgid ""
1694 " $ virt-ls -d guest /\n"
1695 " bin\n"
1696 " boot\n"
1697 " [etc.]\n"
1698 "\n"
1699 msgstr ""
1700
1701 #. type: =head2
1702 #: ../cat/virt-ls.pod:98
1703 msgid "LONG LISTING"
1704 msgstr ""
1705
1706 #. type: textblock
1707 #: ../cat/virt-ls.pod:100
1708 msgid ""
1709 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
1710 "(more specifically, like the C<guestfs_ll> function)."
1711 msgstr ""
1712
1713 #. type: verbatim
1714 #: ../cat/virt-ls.pod:103
1715 #, no-wrap
1716 msgid ""
1717 " $ virt-ls -l -d guest /\n"
1718 " total 204\n"
1719 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
1720 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
1721 " [etc.]\n"
1722 "\n"
1723 msgstr ""
1724
1725 #. type: textblock
1726 #: ../cat/virt-ls.pod:109
1727 msgid ""
1728 "Note that while this is useful for displaying a directory, do not try "
1729 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
1730 "instead."
1731 msgstr ""
1732
1733 #. type: =head2
1734 #: ../cat/virt-ls.pod:113
1735 msgid "RECURSIVE LISTING"
1736 msgstr ""
1737
1738 #. type: textblock
1739 #: ../cat/virt-ls.pod:115
1740 msgid ""
1741 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
1742 "and directories recursively:"
1743 msgstr ""
1744
1745 #. type: verbatim
1746 #: ../cat/virt-ls.pod:118
1747 #, no-wrap
1748 msgid ""
1749 " $ virt-ls -R -d guest /tmp\n"
1750 " foo\n"
1751 " foo/bar\n"
1752 " [etc.]\n"
1753 "\n"
1754 msgstr ""
1755
1756 #. type: textblock
1757 #: ../cat/virt-ls.pod:123
1758 msgid ""
1759 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
1760 "converts C<\\0> characters to C<\\n>."
1761 msgstr ""
1762
1763 #. type: =head2
1764 #: ../cat/virt-ls.pod:126
1765 msgid "RECURSIVE LONG LISTING"
1766 msgstr ""
1767
1768 #. type: textblock
1769 #: ../cat/virt-ls.pod:128
1770 msgid ""
1771 "Using I<-lR> options together changes the output to display directories "
1772 "recursively, with file stats, and optionally other features such as "
1773 "checksums and extended attributes."
1774 msgstr ""
1775
1776 #. type: textblock
1777 #: ../cat/virt-ls.pod:132
1778 msgid ""
1779 "Most of the interesting features of C<virt-ls> are only available when using "
1780 "I<-lR> mode."
1781 msgstr ""
1782
1783 #. type: textblock
1784 #: ../cat/virt-ls.pod:135
1785 msgid ""
1786 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
1787 "you cannot use the output in another program (because filenames can contain "
1788 "spaces and other unsafe characters).  If the guest was untrusted and someone "
1789 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
1790 "on you by creating filenames with embedded newline characters.  To B<safely> "
1791 "parse the output in another program, use the I<--csv> (Comma-Separated "
1792 "Values) option."
1793 msgstr ""
1794
1795 #. type: textblock
1796 #: ../cat/virt-ls.pod:143
1797 msgid ""
1798 "Note that this output format is completely unrelated to the C<ls -lR> "
1799 "command."
1800 msgstr ""
1801
1802 #. type: verbatim
1803 #: ../cat/virt-ls.pod:146
1804 #, no-wrap
1805 msgid ""
1806 " $ virt-ls -lR -d guest /bin\n"
1807 " d 0555       4096 /bin\n"
1808 " - 0755        123 /bin/alsaunmute\n"
1809 " - 0755      28328 /bin/arch\n"
1810 " l 0777          4 /bin/awk -> gawk\n"
1811 " - 0755      27216 /bin/basename\n"
1812 " - 0755     943360 /bin/bash\n"
1813 " [etc.]\n"
1814 "\n"
1815 msgstr ""
1816
1817 #. type: textblock
1818 #: ../cat/virt-ls.pod:155
1819 msgid "These basic fields are always shown:"
1820 msgstr ""
1821
1822 #. type: =item
1823 #: ../cat/virt-ls.pod:159
1824 msgid "type"
1825 msgstr ""
1826
1827 #. type: textblock
1828 #: ../cat/virt-ls.pod:161
1829 msgid ""
1830 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
1831 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
1832 "link), C<s> (socket) or C<u> (unknown)."
1833 msgstr ""
1834
1835 #. type: =item
1836 #: ../cat/virt-ls.pod:171
1837 msgid "permissions"
1838 msgstr ""
1839
1840 #. type: textblock
1841 #: ../cat/virt-ls.pod:173
1842 msgid "The Unix permissions, displayed as a 4 digit octal number."
1843 msgstr ""
1844
1845 #. type: =item
1846 #: ../cat/virt-ls.pod:175
1847 msgid "size"
1848 msgstr ""
1849
1850 #. type: textblock
1851 #: ../cat/virt-ls.pod:177
1852 msgid ""
1853 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
1854 "readable> option is given, in which case this is shown as a human-readable "
1855 "number."
1856 msgstr ""
1857
1858 #. type: =head2
1859 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4210
1860 msgid "path"
1861 msgstr ""
1862
1863 #. type: textblock
1864 #: ../cat/virt-ls.pod:183
1865 msgid "The full path of the file or directory."
1866 msgstr ""
1867
1868 #. type: =item
1869 #: ../cat/virt-ls.pod:185
1870 msgid "link"
1871 msgstr ""
1872
1873 #. type: textblock
1874 #: ../cat/virt-ls.pod:187
1875 msgid "For symbolic links only, the link target."
1876 msgstr ""
1877
1878 #. type: textblock
1879 #: ../cat/virt-ls.pod:191
1880 msgid ""
1881 "In I<-lR> mode, additional command line options enable the display of more "
1882 "fields."
1883 msgstr ""
1884
1885 #. type: textblock
1886 #: ../cat/virt-ls.pod:194
1887 msgid ""
1888 "With the I<--uids> flag, these additional fields are displayed before the "
1889 "path:"
1890 msgstr ""
1891
1892 #. type: =item
1893 #: ../cat/virt-ls.pod:199
1894 msgid "uid"
1895 msgstr ""
1896
1897 #. type: =item
1898 #: ../cat/virt-ls.pod:201
1899 msgid "gid"
1900 msgstr ""
1901
1902 #. type: textblock
1903 #: ../cat/virt-ls.pod:203
1904 msgid ""
1905 "The UID and GID of the owner of the file (displayed numerically).  Note "
1906 "these only make sense in the context of a Unix-like guest."
1907 msgstr ""
1908
1909 #. type: textblock
1910 #: ../cat/virt-ls.pod:208
1911 msgid "With the I<--times> flag, these additional fields are displayed:"
1912 msgstr ""
1913
1914 #. type: =item
1915 #: ../cat/virt-ls.pod:212
1916 msgid "atime"
1917 msgstr ""
1918
1919 #. type: textblock
1920 #: ../cat/virt-ls.pod:214
1921 msgid "The time of last access."
1922 msgstr ""
1923
1924 #. type: =item
1925 #: ../cat/virt-ls.pod:216
1926 msgid "mtime"
1927 msgstr ""
1928
1929 #. type: textblock
1930 #: ../cat/virt-ls.pod:218
1931 msgid "The time of last modification."
1932 msgstr ""
1933
1934 #. type: =item
1935 #: ../cat/virt-ls.pod:220
1936 msgid "ctime"
1937 msgstr ""
1938
1939 #. type: textblock
1940 #: ../cat/virt-ls.pod:222
1941 msgid "The time of last status change."
1942 msgstr ""
1943
1944 #. type: textblock
1945 #: ../cat/virt-ls.pod:226
1946 msgid ""
1947 "The time fields are displayed as string dates and times, unless one of the "
1948 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
1949 msgstr ""
1950
1951 #. type: textblock
1952 #: ../cat/virt-ls.pod:229
1953 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
1954 msgstr ""
1955
1956 #. type: =item
1957 #: ../cat/virt-ls.pod:233
1958 msgid "device"
1959 msgstr ""
1960
1961 #. type: textblock
1962 #: ../cat/virt-ls.pod:235
1963 msgid ""
1964 "The device containing the file (displayed as major:minor).  This may not "
1965 "match devices as known to the guest."
1966 msgstr ""
1967
1968 #. type: =item
1969 #: ../cat/virt-ls.pod:238
1970 msgid "inode"
1971 msgstr ""
1972
1973 #. type: textblock
1974 #: ../cat/virt-ls.pod:240
1975 msgid "The inode number."
1976 msgstr ""
1977
1978 #. type: =item
1979 #: ../cat/virt-ls.pod:242
1980 msgid "nlink"
1981 msgstr ""
1982
1983 #. type: textblock
1984 #: ../cat/virt-ls.pod:244
1985 msgid "The number of hard links."
1986 msgstr ""
1987
1988 #. type: =item
1989 #: ../cat/virt-ls.pod:246
1990 msgid "rdev"
1991 msgstr ""
1992
1993 #. type: textblock
1994 #: ../cat/virt-ls.pod:248
1995 msgid ""
1996 "For block and char special files, the device (displayed as major:minor)."
1997 msgstr ""
1998
1999 #. type: =item
2000 #: ../cat/virt-ls.pod:251
2001 msgid "blocks"
2002 msgstr ""
2003
2004 #. type: textblock
2005 #: ../cat/virt-ls.pod:253
2006 msgid "The number of 512 byte blocks allocated to the file."
2007 msgstr ""
2008
2009 #. type: textblock
2010 #: ../cat/virt-ls.pod:257
2011 msgid ""
2012 "With the I<--checksum> flag, the checksum of the file contents is shown "
2013 "(only for regular files).  Computing file checksums can take a considerable "
2014 "amount of time."
2015 msgstr ""
2016
2017 #. type: =item
2018 #: ../cat/virt-ls.pod:280
2019 msgid "B<--checksum>"
2020 msgstr ""
2021
2022 #. type: =item
2023 #: ../cat/virt-ls.pod:282
2024 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2025 msgstr ""
2026
2027 #. type: textblock
2028 #: ../cat/virt-ls.pod:284
2029 msgid ""
2030 "Display checksum over file contents for regular files.  With no argument, "
2031 "this defaults to using I<md5>.  Using an argument, you can select the "
2032 "checksum type to use."
2033 msgstr ""
2034
2035 #. type: textblock
2036 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2037 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2038 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2039 msgid ""
2040 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2041 "LISTING> above."
2042 msgstr ""
2043
2044 #. type: textblock
2045 #: ../cat/virt-ls.pod:316
2046 msgid ""
2047 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2048 "so you cannot see what you are typing.  If you are not worried about Tempest "
2049 "attacks and there is no one else in the room you can specify this flag to "
2050 "see what you are typing."
2051 msgstr ""
2052
2053 #. type: =item
2054 #: ../cat/virt-ls.pod:321
2055 msgid "B<--extra-stats>"
2056 msgstr ""
2057
2058 #. type: textblock
2059 #: ../cat/virt-ls.pod:323
2060 msgid "Display extra stats."
2061 msgstr ""
2062
2063 #. type: verbatim
2064 #: ../cat/virt-ls.pod:339
2065 #, no-wrap
2066 msgid ""
2067 " virt-ls --format=raw -a disk.img /dir\n"
2068 "\n"
2069 msgstr ""
2070
2071 #. type: verbatim
2072 #: ../cat/virt-ls.pod:343
2073 #, no-wrap
2074 msgid ""
2075 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2076 "\n"
2077 msgstr ""
2078
2079 #. type: textblock
2080 #: ../cat/virt-ls.pod:356
2081 msgid "Display file sizes in human-readable format."
2082 msgstr ""
2083
2084 #. type: =item
2085 #: ../cat/virt-ls.pod:370
2086 msgid "B<-R>"
2087 msgstr ""
2088
2089 #. type: =item
2090 #: ../cat/virt-ls.pod:372
2091 msgid "B<--recursive>"
2092 msgstr ""
2093
2094 #. type: textblock
2095 #: ../cat/virt-ls.pod:374
2096 msgid ""
2097 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2098 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2099 "LISTING>."
2100 msgstr ""
2101
2102 #. type: textblock
2103 #: ../cat/virt-ls.pod:378
2104 msgid ""
2105 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2106 "LONG LISTING>."
2107 msgstr ""
2108
2109 #. type: textblock
2110 #: ../cat/virt-ls.pod:381
2111 msgid ""
2112 "C<virt-ls -R> produces a recursive list of files starting at the named "
2113 "directory.  See L</RECURSIVE LISTING>."
2114 msgstr ""
2115
2116 #. type: textblock
2117 #: ../cat/virt-ls.pod:384
2118 msgid ""
2119 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2120 "parsed.  See L</RECURSIVE LONG LISTING>."
2121 msgstr ""
2122
2123 #. type: =item
2124 #: ../cat/virt-ls.pod:387
2125 msgid "B<--times>"
2126 msgstr ""
2127
2128 #. type: textblock
2129 #: ../cat/virt-ls.pod:389
2130 msgid "Display time fields."
2131 msgstr ""
2132
2133 #. type: =item
2134 #: ../cat/virt-ls.pod:394
2135 msgid "B<--time-days>"
2136 msgstr ""
2137
2138 #. type: textblock
2139 #: ../cat/virt-ls.pod:396
2140 msgid "Display time fields as days before now (negative if in the future)."
2141 msgstr ""
2142
2143 #. type: textblock
2144 #: ../cat/virt-ls.pod:398
2145 msgid ""
2146 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2147 "of the file is between 0 and 86399 seconds."
2148 msgstr ""
2149
2150 #. type: =item
2151 #: ../cat/virt-ls.pod:404
2152 msgid "B<--time-relative>"
2153 msgstr ""
2154
2155 #. type: textblock
2156 #: ../cat/virt-ls.pod:406
2157 msgid "Display time fields as seconds before now (negative if in the future)."
2158 msgstr ""
2159
2160 #. type: =item
2161 #: ../cat/virt-ls.pod:411
2162 msgid "B<--time-t>"
2163 msgstr ""
2164
2165 #. type: textblock
2166 #: ../cat/virt-ls.pod:413
2167 msgid "Display time fields as seconds since the Unix epoch."
2168 msgstr ""
2169
2170 #. type: =item
2171 #: ../cat/virt-ls.pod:418
2172 msgid "B<--uids>"
2173 msgstr ""
2174
2175 #. type: textblock
2176 #: ../cat/virt-ls.pod:420
2177 msgid "Display UID and GID fields."
2178 msgstr ""
2179
2180 #. type: textblock
2181 #: ../cat/virt-ls.pod:445
2182 msgid "Previous versions of virt-ls allowed you to write either:"
2183 msgstr ""
2184
2185 #. type: verbatim
2186 #: ../cat/virt-ls.pod:447
2187 #, no-wrap
2188 msgid ""
2189 " virt-ls disk.img [disk.img ...] /dir\n"
2190 "\n"
2191 msgstr ""
2192
2193 #. type: verbatim
2194 #: ../cat/virt-ls.pod:451
2195 #, no-wrap
2196 msgid ""
2197 " virt-ls guestname /dir\n"
2198 "\n"
2199 msgstr ""
2200
2201 #. type: textblock
2202 #: ../cat/virt-ls.pod:497
2203 msgid ""
2204 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2205 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2206 "L<http://libguestfs.org/>."
2207 msgstr ""
2208
2209 #. type: textblock
2210 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
2211 #: ../rescue/virt-rescue.pod:298
2212 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2213 msgstr ""
2214
2215 #. type: textblock
2216 #: ../df/virt-df.pod:5
2217 msgid "virt-df - Display free space on virtual filesystems"
2218 msgstr ""
2219
2220 #. type: verbatim
2221 #: ../df/virt-df.pod:9
2222 #, no-wrap
2223 msgid ""
2224 " virt-df [--options]\n"
2225 "\n"
2226 msgstr ""
2227
2228 #. type: verbatim
2229 #: ../df/virt-df.pod:11
2230 #, no-wrap
2231 msgid ""
2232 " virt-df [--options] -d domname\n"
2233 "\n"
2234 msgstr ""
2235
2236 #. type: verbatim
2237 #: ../df/virt-df.pod:13
2238 #, no-wrap
2239 msgid ""
2240 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
2241 "\n"
2242 msgstr ""
2243
2244 #. type: verbatim
2245 #: ../df/virt-df.pod:17
2246 #, no-wrap
2247 msgid ""
2248 " virt-df [--options] domname\n"
2249 "\n"
2250 msgstr ""
2251
2252 #. type: verbatim
2253 #: ../df/virt-df.pod:19
2254 #, no-wrap
2255 msgid ""
2256 " virt-df [--options] disk.img [disk.img ...]\n"
2257 "\n"
2258 msgstr ""
2259
2260 #. type: textblock
2261 #: ../df/virt-df.pod:23
2262 msgid ""
2263 "C<virt-df> is a command line tool to display free space on virtual machine "
2264 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
2265 "allocated to a virtual machine, but can look inside disk images to see how "
2266 "much space is really being used."
2267 msgstr ""
2268
2269 #. type: textblock
2270 #: ../df/virt-df.pod:28
2271 msgid ""
2272 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
2273 "to get a list of all active and inactive guests, and performs a C<df>-type "
2274 "operation on each one in turn, printing out the results."
2275 msgstr ""
2276
2277 #. type: textblock
2278 #: ../df/virt-df.pod:32
2279 msgid ""
2280 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
2281 "type operation on either the single named libvirt domain, or on the disk "
2282 "image(s) listed on the command line (which must all belong to a single VM).  "
2283 "In this mode (with arguments), C<virt-df> will I<only work for a single "
2284 "guest>.  If you want to run on multiple guests, then you have to invoke "
2285 "C<virt-df> multiple times."
2286 msgstr ""
2287
2288 #. type: textblock
2289 #: ../df/virt-df.pod:39
2290 msgid ""
2291 "Use the I<--csv> option to get a format which can be easily parsed by other "
2292 "programs.  Other options are similar to the standard L<df(1)> command."
2293 msgstr ""
2294
2295 #. type: textblock
2296 #: ../df/virt-df.pod:45
2297 msgid ""
2298 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
2299 "output human-readable:"
2300 msgstr ""
2301
2302 #. type: verbatim
2303 #: ../df/virt-df.pod:48
2304 #, no-wrap
2305 msgid ""
2306 " # virt-df -d F14x64 -h\n"
2307 " Filesystem                       Size     Used  Available  Use%\n"
2308 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
2309 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
2310 "\n"
2311 msgstr ""
2312
2313 #. type: textblock
2314 #: ../df/virt-df.pod:53
2315 msgid "Show disk usage for a disk image file called C<test.img>:"
2316 msgstr ""
2317
2318 #. type: verbatim
2319 #: ../df/virt-df.pod:55
2320 #, no-wrap
2321 msgid ""
2322 " $ virt-df -a test1.img\n"
2323 " Filesystem                  1K-blocks     Used  Available  Use%\n"
2324 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
2325 "\n"
2326 msgstr ""
2327
2328 #. type: verbatim
2329 #: ../df/virt-df.pod:112
2330 #, no-wrap
2331 msgid ""
2332 " virt-df --format=raw -a disk.img\n"
2333 "\n"
2334 msgstr ""
2335
2336 #. type: verbatim
2337 #: ../df/virt-df.pod:116
2338 #, no-wrap
2339 msgid ""
2340 " virt-df --format=raw -a disk.img --format -a another.img\n"
2341 "\n"
2342 msgstr ""
2343
2344 #. type: textblock
2345 #: ../df/virt-df.pod:129
2346 msgid "Print sizes in human-readable format."
2347 msgstr ""
2348
2349 #. type: textblock
2350 #: ../df/virt-df.pod:131
2351 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
2352 msgstr ""
2353
2354 #. type: =item
2355 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
2356 msgid "B<-i>"
2357 msgstr ""
2358
2359 #. type: =item
2360 #: ../df/virt-df.pod:135
2361 msgid "B<--inodes>"
2362 msgstr ""
2363
2364 #. type: textblock
2365 #: ../df/virt-df.pod:137
2366 msgid "Print inodes instead of blocks."
2367 msgstr ""
2368
2369 #. type: =item
2370 #: ../df/virt-df.pod:139
2371 msgid "B<--one-per-guest>"
2372 msgstr ""
2373
2374 #. type: textblock
2375 #: ../df/virt-df.pod:141
2376 msgid ""
2377 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
2378 "disks from several guests to a single libguestfs appliance."
2379 msgstr ""
2380
2381 #. type: textblock
2382 #: ../df/virt-df.pod:144
2383 msgid "You might use this option in the following circumstances:"
2384 msgstr ""
2385
2386 #. type: =item
2387 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
2388 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
2389 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
2390 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
2391 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
2392 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
2393 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
2394 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
2395 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
2396 #: ../fish/guestfish-actions.pod:390 ../fish/guestfish-actions.pod:398
2397 #: ../fish/guestfish-actions.pod:405 ../fish/guestfish-actions.pod:412
2398 #: ../fish/guestfish-actions.pod:1104 ../fish/guestfish-actions.pod:1108
2399 #: ../fish/guestfish-actions.pod:1112 ../fish/guestfish-actions.pod:1116
2400 #: ../fish/guestfish-actions.pod:1124 ../fish/guestfish-actions.pod:1128
2401 #: ../fish/guestfish-actions.pod:1132 ../fish/guestfish-actions.pod:1142
2402 #: ../fish/guestfish-actions.pod:1146 ../fish/guestfish-actions.pod:1150
2403 #: ../fish/guestfish-actions.pod:1240 ../fish/guestfish-actions.pod:1244
2404 #: ../fish/guestfish-actions.pod:1249 ../fish/guestfish-actions.pod:1254
2405 #: ../fish/guestfish-actions.pod:1296 ../fish/guestfish-actions.pod:1300
2406 #: ../fish/guestfish-actions.pod:1305 ../fish/guestfish-actions.pod:1555
2407 #: ../fish/guestfish-actions.pod:1562 ../fish/guestfish-actions.pod:1569
2408 #: ../fish/guestfish-actions.pod:1960 ../fish/guestfish-actions.pod:1966
2409 #: ../fish/guestfish-actions.pod:1974 ../fish/guestfish-actions.pod:1981
2410 #: ../fish/guestfish-actions.pod:1988 ../fish/guestfish.pod:445
2411 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
2412 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393
2413 #: ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:282
2414 #: ../resize/virt-resize.pod:286 ../resize/virt-resize.pod:295
2415 #: ../resize/virt-resize.pod:301 ../src/guestfs-actions.pod:15
2416 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:588
2417 #: ../src/guestfs-actions.pod:596 ../src/guestfs-actions.pod:603
2418 #: ../src/guestfs-actions.pod:610 ../src/guestfs-actions.pod:1667
2419 #: ../src/guestfs-actions.pod:1671 ../src/guestfs-actions.pod:1675
2420 #: ../src/guestfs-actions.pod:1679 ../src/guestfs-actions.pod:1687
2421 #: ../src/guestfs-actions.pod:1691 ../src/guestfs-actions.pod:1695
2422 #: ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1709
2423 #: ../src/guestfs-actions.pod:1713 ../src/guestfs-actions.pod:1851
2424 #: ../src/guestfs-actions.pod:1855 ../src/guestfs-actions.pod:1860
2425 #: ../src/guestfs-actions.pod:1865 ../src/guestfs-actions.pod:1926
2426 #: ../src/guestfs-actions.pod:1930 ../src/guestfs-actions.pod:1935
2427 #: ../src/guestfs-actions.pod:2339 ../src/guestfs-actions.pod:2346
2428 #: ../src/guestfs-actions.pod:2353 ../src/guestfs-actions.pod:2886
2429 #: ../src/guestfs-actions.pod:2892 ../src/guestfs-actions.pod:2900
2430 #: ../src/guestfs-actions.pod:2907 ../src/guestfs-actions.pod:2914
2431 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398
2432 #: ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411
2433 #: ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1087
2434 #: ../src/guestfs.pod:1091 ../src/guestfs.pod:1095 ../src/guestfs.pod:1100
2435 #: ../src/guestfs.pod:1108 ../src/guestfs.pod:1127 ../src/guestfs.pod:1135
2436 #: ../src/guestfs.pod:1157 ../src/guestfs.pod:1161 ../src/guestfs.pod:1165
2437 #: ../src/guestfs.pod:1169 ../src/guestfs.pod:1173 ../src/guestfs.pod:1177
2438 #: ../src/guestfs.pod:1666 ../src/guestfs.pod:1671 ../src/guestfs.pod:1675
2439 #: ../src/guestfs.pod:1777 ../src/guestfs.pod:1782 ../src/guestfs.pod:1786
2440 #: ../src/guestfs.pod:1796 ../src/guestfs.pod:2070 ../src/guestfs.pod:2075
2441 #: ../src/guestfs.pod:2081 ../src/guestfs.pod:2089 ../src/guestfs.pod:2536
2442 #: ../src/guestfs.pod:2542 ../src/guestfs.pod:2547 ../src/guestfs.pod:2553
2443 #: ../src/guestfs.pod:2938 ../src/guestfs.pod:2943 ../src/guestfs.pod:2947
2444 #: ../src/guestfs.pod:2951 ../src/guestfs.pod:2955 ../src/guestfs.pod:2969
2445 #: ../src/guestfs.pod:2974 ../src/guestfs.pod:3200 ../src/guestfs.pod:3204
2446 #: ../src/guestfs.pod:3208 ../src/guestfs.pod:3212
2447 #: ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202
2448 #: ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:710
2449 #: ../tools/virt-win-reg.pl:716 ../tools/virt-win-reg.pl:722
2450 msgid "*"
2451 msgstr ""
2452
2453 #. type: textblock
2454 #: ../df/virt-df.pod:150
2455 msgid ""
2456 "If you think an untrusted guest might actively try to exploit the libguestfs "
2457 "appliance kernel, then this prevents one guest from interfering with the "
2458 "stats printed for another guest."
2459 msgstr ""
2460
2461 #. type: textblock
2462 #: ../df/virt-df.pod:156
2463 msgid ""
2464 "If the kernel has a bug which stops it from accessing a filesystem in one "
2465 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
2466 "and report stats for further guests."
2467 msgstr ""
2468
2469 #. type: textblock
2470 #: ../df/virt-df.pod:165
2471 msgid ""
2472 "Print UUIDs instead of names.  This is useful for following a guest even "
2473 "when the guest is migrated or renamed, or when two guests happen to have the "
2474 "same name."
2475 msgstr ""
2476
2477 #. type: textblock
2478 #: ../df/virt-df.pod:169
2479 msgid ""
2480 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
2481 "images, we still print the disk image name even when this option is "
2482 "specified."
2483 msgstr ""
2484
2485 #. type: textblock
2486 #: ../df/virt-df.pod:229
2487 msgid ""
2488 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
2489 "libguestfs.org/>."
2490 msgstr ""
2491
2492 #. type: textblock
2493 #: ../edit/virt-edit.pod:5
2494 msgid "virt-edit - Edit a file in a virtual machine"
2495 msgstr ""
2496
2497 #. type: verbatim
2498 #: ../edit/virt-edit.pod:9
2499 #, no-wrap
2500 msgid ""
2501 " virt-edit [--options] -d domname file [file ...]\n"
2502 "\n"
2503 msgstr ""
2504
2505 #. type: verbatim
2506 #: ../edit/virt-edit.pod:11
2507 #, no-wrap
2508 msgid ""
2509 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
2510 "\n"
2511 msgstr ""
2512
2513 #. type: verbatim
2514 #: ../edit/virt-edit.pod:13
2515 #, no-wrap
2516 msgid ""
2517 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
2518 "\n"
2519 msgstr ""
2520
2521 #. type: verbatim
2522 #: ../edit/virt-edit.pod:17
2523 #, no-wrap
2524 msgid ""
2525 " virt-edit domname file\n"
2526 "\n"
2527 msgstr ""
2528
2529 #. type: verbatim
2530 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
2531 #, no-wrap
2532 msgid ""
2533 " virt-edit disk.img [disk.img ...] file\n"
2534 "\n"
2535 msgstr ""
2536
2537 #. type: =head1
2538 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
2539 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
2540 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
2541 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
2542 msgid "WARNING"
2543 msgstr ""
2544
2545 #. type: textblock
2546 #: ../edit/virt-edit.pod:23
2547 msgid ""
2548 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
2549 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
2550 "doing this, but doesn't catch all cases."
2551 msgstr ""
2552
2553 #. type: textblock
2554 #: ../edit/virt-edit.pod:29
2555 msgid ""
2556 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
2557 "exists in the named virtual machine (or disk image)."
2558 msgstr ""
2559
2560 #. type: textblock
2561 #: ../edit/virt-edit.pod:32
2562 msgid ""
2563 "Multiple filenames can be given, in which case they are each edited in "
2564 "turn.  Each filename must be a full path, starting at the root directory "
2565 "(starting with '/')."
2566 msgstr ""
2567
2568 #. type: textblock
2569 #: ../edit/virt-edit.pod:36
2570 msgid "If you want to just view a file, use L<virt-cat(1)>."
2571 msgstr ""
2572
2573 #. type: textblock
2574 #: ../edit/virt-edit.pod:38
2575 msgid ""
2576 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
2577 "USING GUESTFISH> below)."
2578 msgstr ""
2579
2580 #. type: textblock
2581 #: ../edit/virt-edit.pod:41
2582 msgid ""
2583 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
2584 "that and much more."
2585 msgstr ""
2586
2587 #. type: textblock
2588 #: ../edit/virt-edit.pod:46
2589 msgid "Edit the named files interactively:"
2590 msgstr ""
2591
2592 #. type: verbatim
2593 #: ../edit/virt-edit.pod:48
2594 #, no-wrap
2595 msgid ""
2596 " virt-edit -d mydomain /boot/grub/grub.conf\n"
2597 "\n"
2598 msgstr ""
2599
2600 #. type: verbatim
2601 #: ../edit/virt-edit.pod:50
2602 #, no-wrap
2603 msgid ""
2604 " virt-edit -d mydomain /etc/passwd\n"
2605 "\n"
2606 msgstr ""
2607
2608 #. type: textblock
2609 #: ../edit/virt-edit.pod:52
2610 msgid "For Windows guests, some Windows paths are understood:"
2611 msgstr ""
2612
2613 #. type: verbatim
2614 #: ../edit/virt-edit.pod:54
2615 #, no-wrap
2616 msgid ""
2617 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
2618 "\n"
2619 msgstr ""
2620
2621 #. type: textblock
2622 #: ../edit/virt-edit.pod:56
2623 msgid ""
2624 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
2625 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
2626 msgstr ""
2627
2628 #. type: verbatim
2629 #: ../edit/virt-edit.pod:60
2630 #, no-wrap
2631 msgid ""
2632 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
2633 "\n"
2634 msgstr ""
2635
2636 #. type: =item
2637 #: ../edit/virt-edit.pod:81
2638 msgid "B<-b> extension"
2639 msgstr ""
2640
2641 #. type: =item
2642 #: ../edit/virt-edit.pod:83
2643 msgid "B<--backup> extension"
2644 msgstr ""
2645
2646 #. type: textblock
2647 #: ../edit/virt-edit.pod:85
2648 msgid ""
2649 "Create a backup of the original file I<in the guest disk image>.  The backup "
2650 "has the original filename with C<extension> added."
2651 msgstr ""
2652
2653 #. type: textblock
2654 #: ../edit/virt-edit.pod:88
2655 msgid ""
2656 "Usually the first character of C<extension> would be a dot C<.> so you would "
2657 "write:"
2658 msgstr ""
2659
2660 #. type: verbatim
2661 #: ../edit/virt-edit.pod:91
2662 #, no-wrap
2663 msgid ""
2664 " virt-edit -b .orig [etc]\n"
2665 "\n"
2666 msgstr ""
2667
2668 #. type: textblock
2669 #: ../edit/virt-edit.pod:93
2670 msgid "By default, no backup file is made."
2671 msgstr ""
2672
2673 #. type: =item
2674 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
2675 #: ../fuse/guestmount.pod:105 ../inspector/virt-inspector.pod:74
2676 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
2677 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
2678 msgid "B<-c URI>"
2679 msgstr ""
2680
2681 #. type: =item
2682 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
2683 #: ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76
2684 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
2685 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
2686 msgid "B<--connect URI>"
2687 msgstr ""
2688
2689 #. type: textblock
2690 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
2691 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
2692 #: ../tools/virt-win-reg.pl:135
2693 msgid ""
2694 "If you specify guest block devices directly, then libvirt is not used at all."
2695 msgstr ""
2696
2697 #. type: textblock
2698 #: ../edit/virt-edit.pod:114
2699 msgid ""
2700 "When prompting for keys and passphrases, virt-edit normally turns echoing "
2701 "off so you cannot see what you are typing.  If you are not worried about "
2702 "Tempest attacks and there is no one else in the room you can specify this "
2703 "flag to see what you are typing."
2704 msgstr ""
2705
2706 #. type: =item
2707 #: ../edit/virt-edit.pod:119
2708 msgid "B<-e> EXPR"
2709 msgstr ""
2710
2711 #. type: =item
2712 #: ../edit/virt-edit.pod:121
2713 msgid "B<--expr> EXPR"
2714 msgstr ""
2715
2716 #. type: textblock
2717 #: ../edit/virt-edit.pod:123
2718 msgid ""
2719 "Instead of launching the external editor, non-interactively apply the Perl "
2720 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
2721 "EDITING> below."
2722 msgstr ""
2723
2724 #. type: textblock
2725 #: ../edit/virt-edit.pod:127
2726 msgid ""
2727 "Be careful to properly quote the expression to prevent it from being altered "
2728 "by the shell."
2729 msgstr ""
2730
2731 #. type: textblock
2732 #: ../edit/virt-edit.pod:130
2733 msgid "Note that this option is only available when Perl 5 is installed."
2734 msgstr ""
2735
2736 #. type: =item
2737 #: ../edit/virt-edit.pod:132
2738 msgid "B<--format> raw|qcow2|..."
2739 msgstr ""
2740
2741 #. type: verbatim
2742 #: ../edit/virt-edit.pod:143
2743 #, no-wrap
2744 msgid ""
2745 " virt-edit --format=raw -a disk.img file\n"
2746 "\n"
2747 msgstr ""
2748
2749 #. type: verbatim
2750 #: ../edit/virt-edit.pod:147
2751 #, no-wrap
2752 msgid ""
2753 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
2754 "\n"
2755 msgstr ""
2756
2757 #. type: textblock
2758 #: ../edit/virt-edit.pod:181
2759 msgid "Previous versions of virt-edit allowed you to write either:"
2760 msgstr ""
2761
2762 #. type: verbatim
2763 #: ../edit/virt-edit.pod:187
2764 #, no-wrap
2765 msgid ""
2766 " virt-edit guestname file\n"
2767 "\n"
2768 msgstr ""
2769
2770 #. type: =head1
2771 #: ../edit/virt-edit.pod:195
2772 msgid "NON-INTERACTIVE EDITING"
2773 msgstr ""
2774
2775 #. type: textblock
2776 #: ../edit/virt-edit.pod:197
2777 msgid ""
2778 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
2779 "administrator can interactively edit the file."
2780 msgstr ""
2781
2782 #. type: textblock
2783 #: ../edit/virt-edit.pod:200
2784 msgid ""
2785 "There are two ways also to use C<virt-edit> from scripts in order to make "
2786 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
2787 "like this, it's less error-prone to write scripts directly using the "
2788 "libguestfs API and Augeas for configuration file editing.)"
2789 msgstr ""
2790
2791 #. type: textblock
2792 #: ../edit/virt-edit.pod:206
2793 msgid ""
2794 "The first method is to temporarily set C<$EDITOR> to any script or program "
2795 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
2796 "update C<tmpfile> in place however it likes."
2797 msgstr ""
2798
2799 #. type: textblock
2800 #: ../edit/virt-edit.pod:210
2801 msgid ""
2802 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
2803 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
2804 "instances of C<foo> with C<bar> in a file:"
2805 msgstr ""
2806
2807 #. type: verbatim
2808 #: ../edit/virt-edit.pod:214
2809 #, no-wrap
2810 msgid ""
2811 " virt-edit -d domname filename -e 's/foo/bar/'\n"
2812 "\n"
2813 msgstr ""
2814
2815 #. type: textblock
2816 #: ../edit/virt-edit.pod:216
2817 msgid ""
2818 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
2819 "For example to delete root's password you could do:"
2820 msgstr ""
2821
2822 #. type: verbatim
2823 #: ../edit/virt-edit.pod:219
2824 #, no-wrap
2825 msgid ""
2826 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
2827 "\n"
2828 msgstr ""
2829
2830 #. type: textblock
2831 #: ../edit/virt-edit.pod:221
2832 msgid ""
2833 "What really happens is that the snippet is evaluated as a Perl expression "
2834 "for each line of the file.  The line, including the final C<\\n>, is passed "
2835 "in C<$_> and the expression should update C<$_> or leave it unchanged."
2836 msgstr ""
2837
2838 #. type: textblock
2839 #: ../edit/virt-edit.pod:226
2840 msgid ""
2841 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
2842 "C<apache> user account from the password file you can do:"
2843 msgstr ""
2844
2845 #. type: verbatim
2846 #: ../edit/virt-edit.pod:229
2847 #, no-wrap
2848 msgid ""
2849 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
2850 "\n"
2851 msgstr ""
2852
2853 #. type: textblock
2854 #: ../edit/virt-edit.pod:231
2855 msgid ""
2856 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
2857 "the end of the file is rather difficult this way since there is no concept "
2858 "of \"last line of the file\" - your expression just doesn't get called "
2859 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
2860 "want to do this."
2861 msgstr ""
2862
2863 #. type: textblock
2864 #: ../edit/virt-edit.pod:237
2865 msgid ""
2866 "The variable C<$lineno> contains the current line number.  As is "
2867 "traditional, the first line in the file is number C<1>."
2868 msgstr ""
2869
2870 #. type: textblock
2871 #: ../edit/virt-edit.pod:240
2872 msgid ""
2873 "The return value from the expression is ignored, but the expression may call "
2874 "C<die> in order to abort the whole program, leaving the original file "
2875 "untouched."
2876 msgstr ""
2877
2878 #. type: textblock
2879 #: ../edit/virt-edit.pod:244
2880 msgid ""
2881 "Remember when matching the end of a line that C<$_> may contain the final C<"
2882 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
2883 "newline then neither of these.  Thus to match or substitute some text at the "
2884 "end of a line, use this regular expression:"
2885 msgstr ""
2886
2887 #. type: verbatim
2888 #: ../edit/virt-edit.pod:249
2889 #, no-wrap
2890 msgid ""
2891 " /some text(\\r?\\n)?$/\n"
2892 "\n"
2893 msgstr ""
2894
2895 #. type: textblock
2896 #: ../edit/virt-edit.pod:251
2897 msgid ""
2898 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
2899 "$_> itself (since that would remove all newlines from the file):"
2900 msgstr ""
2901
2902 #. type: verbatim
2903 #: ../edit/virt-edit.pod:255
2904 #, no-wrap
2905 msgid ""
2906 " my $m = $_; chomp $m; $m =~ /some text$/\n"
2907 "\n"
2908 msgstr ""
2909
2910 #. type: =head1
2911 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
2912 msgid "WINDOWS PATHS"
2913 msgstr ""
2914
2915 #. type: textblock
2916 #: ../edit/virt-edit.pod:259
2917 msgid ""
2918 "C<virt-edit> has a limited ability to understand Windows drive letters and "
2919 "paths (eg. C<E:\\foo\\bar.txt>)."
2920 msgstr ""
2921
2922 #. type: textblock
2923 #: ../edit/virt-edit.pod:262
2924 msgid "If and only if the guest is running Windows then:"
2925 msgstr ""
2926
2927 #. type: textblock
2928 #: ../edit/virt-edit.pod:268
2929 msgid ""
2930 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
2931 "to the correct filesystem."
2932 msgstr ""
2933
2934 #. type: textblock
2935 #: ../edit/virt-edit.pod:273
2936 msgid ""
2937 "Any backslash (C<\\>) characters in the path are replaced with forward "
2938 "slashes so that libguestfs can process it."
2939 msgstr ""
2940
2941 #. type: textblock
2942 #: ../edit/virt-edit.pod:278
2943 msgid ""
2944 "The path is resolved case insensitively to locate the file that should be "
2945 "edited."
2946 msgstr ""
2947
2948 #. type: textblock
2949 #: ../edit/virt-edit.pod:283
2950 msgid "There are some known shortcomings:"
2951 msgstr ""
2952
2953 #. type: textblock
2954 #: ../edit/virt-edit.pod:289
2955 msgid "Some NTFS symbolic links may not be followed correctly."
2956 msgstr ""
2957
2958 #. type: textblock
2959 #: ../edit/virt-edit.pod:293
2960 msgid "NTFS junction points that cross filesystems are not followed."
2961 msgstr ""
2962
2963 #. type: textblock
2964 #: ../edit/virt-edit.pod:299
2965 msgid ""
2966 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
2967 "C<virt-edit> doesn't work."
2968 msgstr ""
2969
2970 #. type: textblock
2971 #: ../edit/virt-edit.pod:302
2972 msgid "Using C<virt-edit> is approximately equivalent to doing:"
2973 msgstr ""
2974
2975 #. type: verbatim
2976 #: ../edit/virt-edit.pod:304
2977 #, no-wrap
2978 msgid ""
2979 " guestfish --rw -i -d domname edit /file\n"
2980 "\n"
2981 msgstr ""
2982
2983 #. type: textblock
2984 #: ../edit/virt-edit.pod:306
2985 msgid ""
2986 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
2987 "path to the file."
2988 msgstr ""
2989
2990 #. type: textblock
2991 #: ../edit/virt-edit.pod:309
2992 msgid ""
2993 "The command above uses libguestfs's guest inspection feature and so does not "
2994 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
2995 "disk images that don't contain guests.  To edit a file on a disk image "
2996 "directly, use:"
2997 msgstr ""
2998
2999 #. type: verbatim
3000 #: ../edit/virt-edit.pod:314
3001 #, no-wrap
3002 msgid ""
3003 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
3004 "\n"
3005 msgstr ""
3006
3007 #. type: textblock
3008 #: ../edit/virt-edit.pod:316
3009 msgid ""
3010 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
3011 "the disk image to edit, and C</file> is the full path to the file."
3012 msgstr ""
3013
3014 #. type: textblock
3015 #: ../edit/virt-edit.pod:320
3016 msgid ""
3017 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
3018 "C<write> or C<upload> instead:"
3019 msgstr ""
3020
3021 #. type: verbatim
3022 #: ../edit/virt-edit.pod:323
3023 #, no-wrap
3024 msgid ""
3025 " guestfish --rw -i -d domname touch /newfile\n"
3026 "\n"
3027 msgstr ""
3028
3029 #. type: verbatim
3030 #: ../edit/virt-edit.pod:325
3031 #, no-wrap
3032 msgid ""
3033 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
3034 "\n"
3035 msgstr ""
3036
3037 #. type: verbatim
3038 #: ../edit/virt-edit.pod:327
3039 #, no-wrap
3040 msgid ""
3041 " guestfish --rw -i -d domname upload localfile /newfile\n"
3042 "\n"
3043 msgstr ""
3044
3045 #. type: =head1
3046 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119
3047 #: ../rescue/virt-rescue.pod:257 ../src/guestfs.pod:3085
3048 #: ../test-tool/libguestfs-test-tool.pod:95
3049 msgid "ENVIRONMENT VARIABLES"
3050 msgstr ""
3051
3052 #. type: =item
3053 #: ../edit/virt-edit.pod:333
3054 msgid "C<EDITOR>"
3055 msgstr ""
3056
3057 #. type: textblock
3058 #: ../edit/virt-edit.pod:335
3059 msgid ""
3060 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
3061 "\"emacs -nw\">"
3062 msgstr ""
3063
3064 #. type: textblock
3065 #: ../edit/virt-edit.pod:338
3066 msgid "If not set, C<vi> is used."
3067 msgstr ""
3068
3069 #. type: textblock
3070 #: ../edit/virt-edit.pod:356
3071 msgid ""
3072 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
3073 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3074 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
3075 msgstr ""
3076
3077 #. type: textblock
3078 #: ../examples/guestfs-examples.pod:5
3079 msgid "guestfs-examples - Examples of using libguestfs from C"
3080 msgstr ""
3081
3082 #. type: verbatim
3083 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
3084 #, no-wrap
3085 msgid ""
3086 " #include <guestfs.h>\n"
3087 " \n"
3088 msgstr ""
3089
3090 #. type: verbatim
3091 #: ../examples/guestfs-examples.pod:11
3092 #, no-wrap
3093 msgid ""
3094 " guestfs_h *g = guestfs_create ();\n"
3095 " guestfs_add_drive_ro (g, \"disk.img\");\n"
3096 " guestfs_launch (g);\n"
3097 "\n"
3098 msgstr ""
3099
3100 #. type: verbatim
3101 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
3102 #, no-wrap
3103 msgid ""
3104 " cc prog.c -o prog -lguestfs\n"
3105 "or:\n"
3106 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3107 "\n"
3108 msgstr ""
3109
3110 #. type: textblock
3111 #: ../examples/guestfs-examples.pod:21
3112 msgid ""
3113 "This manual page contains examples of calling libguestfs from the C "
3114 "programming language.  If you are not familiar with using libguestfs, you "
3115 "also need to read L<guestfs(3)>."
3116 msgstr ""
3117
3118 #. type: =head1
3119 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
3120 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
3121 #: ../python/examples/guestfs-python.pod:34
3122 #: ../ruby/examples/guestfs-ruby.pod:28
3123 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
3124 msgstr ""
3125
3126 #. type: textblock
3127 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
3128 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
3129 #: ../python/examples/guestfs-python.pod:36
3130 #: ../ruby/examples/guestfs-ruby.pod:30
3131 msgid "@EXAMPLE1@"
3132 msgstr ""
3133
3134 #. type: =head1
3135 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
3136 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
3137 #: ../python/examples/guestfs-python.pod:38
3138 #: ../ruby/examples/guestfs-ruby.pod:32
3139 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
3140 msgstr ""
3141
3142 #. type: textblock
3143 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
3144 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
3145 #: ../python/examples/guestfs-python.pod:40
3146 #: ../ruby/examples/guestfs-ruby.pod:34
3147 msgid "@EXAMPLE2@"
3148 msgstr ""
3149
3150 #. type: textblock
3151 #: ../examples/guestfs-examples.pod:35
3152 msgid ""
3153 "L<guestfs(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
3154 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
3155 "libguestfs.org/>."
3156 msgstr ""
3157
3158 #. type: =head1
3159 #: ../examples/guestfs-examples.pod:44 ../examples/guestfs-recipes.pod:396
3160 #: ../fish/guestfish.pod:1293 ../fish/virt-copy-in.pod:60
3161 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
3162 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:328
3163 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:57
3164 #: ../ocaml/examples/guestfs-ocaml.pod:90 ../perl/examples/guestfs-perl.pod:51
3165 #: ../python/examples/guestfs-python.pod:53
3166 #: ../ruby/examples/guestfs-ruby.pod:47 ../src/guestfs.pod:3219
3167 #: ../test-tool/libguestfs-test-tool.pod:106
3168 msgid "AUTHORS"
3169 msgstr ""
3170
3171 #. type: textblock
3172 #: ../examples/guestfs-examples.pod:46 ../examples/guestfs-recipes.pod:398
3173 #: ../fish/guestfish.pod:1295 ../fish/virt-copy-in.pod:62
3174 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
3175 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:330
3176 #: ../java/examples/guestfs-java.pod:59 ../ocaml/examples/guestfs-ocaml.pod:92
3177 #: ../perl/examples/guestfs-perl.pod:53
3178 #: ../python/examples/guestfs-python.pod:55
3179 #: ../ruby/examples/guestfs-ruby.pod:49 ../src/guestfs.pod:3221
3180 #: ../test-tool/libguestfs-test-tool.pod:108
3181 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3182 msgstr ""
3183
3184 #. type: textblock
3185 #: ../examples/guestfs-examples.pod:50 ../ocaml/examples/guestfs-ocaml.pod:96
3186 #: ../python/examples/guestfs-python.pod:59
3187 #: ../ruby/examples/guestfs-ruby.pod:53
3188 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
3189 msgstr ""
3190
3191 #. type: textblock
3192 #: ../examples/guestfs-examples.pod:52 ../examples/guestfs-recipes.pod:404
3193 #: ../java/examples/guestfs-java.pod:65 ../ocaml/examples/guestfs-ocaml.pod:98
3194 #: ../perl/examples/guestfs-perl.pod:59
3195 #: ../python/examples/guestfs-python.pod:61
3196 #: ../ruby/examples/guestfs-ruby.pod:55
3197 msgid ""
3198 "The examples in this manual page may be freely copied, modified and "
3199 "distributed without any restrictions."
3200 msgstr ""
3201
3202 #. type: textblock
3203 #: ../examples/guestfs-examples.pod:55 ../examples/guestfs-recipes.pod:407
3204 #: ../java/examples/guestfs-java.pod:68
3205 #: ../ocaml/examples/guestfs-ocaml.pod:101
3206 #: ../perl/examples/guestfs-perl.pod:62
3207 #: ../python/examples/guestfs-python.pod:64
3208 #: ../ruby/examples/guestfs-ruby.pod:58 ../src/guestfs.pod:3228
3209 msgid ""
3210 "This library is free software; you can redistribute it and/or modify it "
3211 "under the terms of the GNU Lesser General Public License as published by the "
3212 "Free Software Foundation; either version 2 of the License, or (at your "
3213 "option) any later version."
3214 msgstr ""
3215
3216 #. type: textblock
3217 #: ../examples/guestfs-examples.pod:60 ../examples/guestfs-recipes.pod:412
3218 #: ../java/examples/guestfs-java.pod:73
3219 #: ../ocaml/examples/guestfs-ocaml.pod:106
3220 #: ../perl/examples/guestfs-perl.pod:67
3221 #: ../python/examples/guestfs-python.pod:69
3222 #: ../ruby/examples/guestfs-ruby.pod:63 ../src/guestfs.pod:3233
3223 msgid ""
3224 "This library is distributed in the hope that it will be useful, but WITHOUT "
3225 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3226 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3227 "for more details."
3228 msgstr ""
3229
3230 #. type: textblock
3231 #: ../examples/guestfs-examples.pod:65 ../examples/guestfs-recipes.pod:417
3232 #: ../java/examples/guestfs-java.pod:78
3233 #: ../ocaml/examples/guestfs-ocaml.pod:111
3234 #: ../perl/examples/guestfs-perl.pod:72
3235 #: ../python/examples/guestfs-python.pod:74
3236 #: ../ruby/examples/guestfs-ruby.pod:68 ../src/guestfs.pod:3238
3237 msgid ""
3238 "You should have received a copy of the GNU Lesser General Public License "
3239 "along with this library; if not, write to the Free Software Foundation, "
3240 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3241 msgstr ""
3242
3243 #. type: =end
3244 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
3245 msgid "comment"
3246 msgstr ""
3247
3248 #. type: textblock
3249 #: ../examples/guestfs-recipes.pod:5
3250 msgid ""
3251 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
3252 "here.  The only way which works for both sorts of output is to just write "
3253 "the URL directly.  Do NOT use L<...> for URLs."
3254 msgstr ""
3255
3256 #. type: textblock
3257 #: ../examples/guestfs-recipes.pod:9
3258 msgid ""
3259 "We break with tradition here and don't use ALL CAPS for the section "
3260 "headings, as this makes them much easier to read."
3261 msgstr ""
3262
3263 #. type: textblock
3264 #: ../examples/guestfs-recipes.pod:16
3265 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
3266 msgstr ""
3267
3268 #. type: textblock
3269 #: ../examples/guestfs-recipes.pod:20
3270 msgid ""
3271 "This page contains recipes for and links to things you can do using "
3272 "libguestfs, L<guestfish(1)> and the virt tools."
3273 msgstr ""
3274
3275 #. type: =head1
3276 #: ../examples/guestfs-recipes.pod:23
3277 msgid "Audit a virtual machine for setuid files"
3278 msgstr ""
3279
3280 #. type: textblock
3281 #: ../examples/guestfs-recipes.pod:25
3282 msgid ""
3283 "The link below contains a small program which can be used to audit a Linux "
3284 "virtual machine to see what setuid and setgid files it contains."
3285 msgstr ""
3286
3287 #. type: textblock
3288 #: ../examples/guestfs-recipes.pod:28
3289 msgid ""
3290 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
3291 "files/#content"
3292 msgstr ""
3293
3294 #. type: =head1
3295 #: ../examples/guestfs-recipes.pod:30
3296 msgid "Change the background image in a Windows XP VM"
3297 msgstr ""
3298
3299 #. type: textblock
3300 #: ../examples/guestfs-recipes.pod:32
3301 msgid ""
3302 "The links below explain how to use L<guestfish(1)> to change the background "
3303 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
3304 "be substantially different for each version of Windows."
3305 msgstr ""
3306
3307 #. type: textblock
3308 #: ../examples/guestfs-recipes.pod:37
3309 msgid ""
3310 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
3311 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
3312 msgstr ""
3313
3314 #. type: =head1
3315 #: ../examples/guestfs-recipes.pod:40
3316 msgid "Cloning a virtual machine (Linux)"
3317 msgstr ""
3318
3319 #. type: textblock
3320 #: ../examples/guestfs-recipes.pod:42
3321 msgid ""
3322 "The guestfish technique described in the link below works well for most "
3323 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
3324 "slightly."
3325 msgstr ""
3326
3327 #. type: textblock
3328 #: ../examples/guestfs-recipes.pod:46
3329 msgid ""
3330 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
3331 "vm/#content"
3332 msgstr ""
3333
3334 #. type: textblock
3335 #: ../examples/guestfs-recipes.pod:48
3336 msgid ""
3337 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
3338 "discussion."
3339 msgstr ""
3340
3341 #. type: textblock
3342 #: ../examples/guestfs-recipes.pod:51
3343 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
3344 msgstr ""
3345
3346 #. type: =head1
3347 #: ../examples/guestfs-recipes.pod:53
3348 msgid "Cloning a virtual machine (Windows)"
3349 msgstr ""
3350
3351 #. type: textblock
3352 #: ../examples/guestfs-recipes.pod:55
3353 msgid ""
3354 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
3355 "straightforward.  Currently there is code in the Aeolus Oz project which "
3356 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
3357 "we may add sysprepping ability."
3358 msgstr ""
3359
3360 #. type: textblock
3361 #: ../examples/guestfs-recipes.pod:60
3362 msgid ""
3363 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
3364 "list/2011-May/msg00019.html"
3365 msgstr ""
3366
3367 #. type: =head1
3368 #: ../examples/guestfs-recipes.pod:63
3369 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
3370 msgstr ""
3371
3372 #. type: textblock
3373 #: ../examples/guestfs-recipes.pod:65
3374 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
3375 msgstr ""
3376
3377 #. type: verbatim
3378 #: ../examples/guestfs-recipes.pod:67
3379 #, no-wrap
3380 msgid ""
3381 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
3382 "\n"
3383 msgstr ""
3384
3385 #. type: textblock
3386 #: ../examples/guestfs-recipes.pod:69
3387 msgid "To export just a subdirectory, eg. C</files>, do:"
3388 msgstr ""
3389
3390 #. type: verbatim
3391 #: ../examples/guestfs-recipes.pod:71
3392 #, no-wrap
3393 msgid ""
3394 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
3395 "\n"
3396 msgstr ""
3397
3398 #. type: =head1
3399 #: ../examples/guestfs-recipes.pod:73
3400 msgid "Create empty disk images"
3401 msgstr ""
3402
3403 #. type: textblock
3404 #: ../examples/guestfs-recipes.pod:75
3405 msgid ""
3406 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
3407 "The useful guide below explains the options available."
3408 msgstr ""
3409
3410 #. type: textblock
3411 #: ../examples/guestfs-recipes.pod:78
3412 msgid ""
3413 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
3414 "#content"
3415 msgstr ""
3416
3417 #. type: =head1
3418 #: ../examples/guestfs-recipes.pod:80
3419 msgid "Dump raw filesystem content from inside a disk image or VM"
3420 msgstr ""
3421
3422 #. type: textblock
3423 #: ../examples/guestfs-recipes.pod:82
3424 msgid ""
3425 "You can use the L<guestfish(1)> C<download> command to extract the raw "
3426 "filesystem content from any filesystem in a disk image or a VM (even one "
3427 "which is encrypted or buried inside an LV):"
3428 msgstr ""
3429
3430 #. type: verbatim
3431 #: ../examples/guestfs-recipes.pod:86
3432 #, no-wrap
3433 msgid ""
3434 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
3435 "\n"
3436 msgstr ""
3437
3438 #. type: verbatim
3439 #: ../examples/guestfs-recipes.pod:88
3440 #, no-wrap
3441 msgid ""
3442 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
3443 "\n"
3444 msgstr ""
3445
3446 #. type: textblock
3447 #: ../examples/guestfs-recipes.pod:90
3448 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
3449 msgstr ""
3450
3451 #. type: =head1
3452 #: ../examples/guestfs-recipes.pod:92
3453 msgid "Edit grub configuration in a VM"
3454 msgstr ""
3455
3456 #. type: textblock
3457 #: ../examples/guestfs-recipes.pod:94
3458 msgid "You can use this to:"
3459 msgstr ""
3460
3461 #. type: textblock
3462 #: ../examples/guestfs-recipes.pod:100
3463 msgid "Fix a virtual machine that does not boot."
3464 msgstr ""
3465
3466 #. type: textblock
3467 #: ../examples/guestfs-recipes.pod:104
3468 msgid "Change which kernel is used to boot the VM."
3469 msgstr ""
3470
3471 #. type: textblock
3472 #: ../examples/guestfs-recipes.pod:108
3473 msgid "Change kernel command line options."
3474 msgstr ""
3475
3476 #. type: textblock
3477 #: ../examples/guestfs-recipes.pod:112
3478 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
3479 msgstr ""
3480
3481 #. type: verbatim
3482 #: ../examples/guestfs-recipes.pod:114
3483 #, no-wrap
3484 msgid ""
3485 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
3486 "\n"
3487 msgstr ""
3488
3489 #. type: textblock
3490 #: ../examples/guestfs-recipes.pod:116
3491 msgid ""
3492 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
3493 "this:"
3494 msgstr ""
3495
3496 #. type: verbatim
3497 #: ../examples/guestfs-recipes.pod:119
3498 #, no-wrap
3499 msgid ""
3500 " virt-rescue -d BrokenGuest\n"
3501 "\n"
3502 msgstr ""
3503
3504 #. type: =head1
3505 #: ../examples/guestfs-recipes.pod:121
3506 msgid "Export any directory from a VM"
3507 msgstr ""
3508
3509 #. type: textblock
3510 #: ../examples/guestfs-recipes.pod:123
3511 msgid ""
3512 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
3513 msgstr ""
3514
3515 #. type: verbatim
3516 #: ../examples/guestfs-recipes.pod:126
3517 #, no-wrap
3518 msgid ""
3519 " virt-copy-out -d Guest /home .\n"
3520 "\n"
3521 msgstr ""
3522
3523 #. type: textblock
3524 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
3525 #: ../fish/guestfish-actions.pod:1292 ../fish/guestfish-actions.pod:1551
3526 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:11
3527 #: ../src/guestfs-actions.pod:1922 ../src/guestfs-actions.pod:2335
3528 #: ../src/guestfs-actions.pod:2882 ../src/guestfs.pod:1662
3529 #: ../tools/virt-win-reg.pl:706
3530 msgid "Notes:"
3531 msgstr ""
3532
3533 #. type: textblock
3534 #: ../examples/guestfs-recipes.pod:134
3535 msgid ""
3536 "The final dot of the command is not a printing error.  It means we want to "
3537 "copy out to the current directory."
3538 msgstr ""
3539
3540 #. type: textblock
3541 #: ../examples/guestfs-recipes.pod:139
3542 msgid "This creates a directory called C<home> under the current directory."
3543 msgstr ""
3544
3545 #. type: textblock
3546 #: ../examples/guestfs-recipes.pod:143
3547 msgid ""
3548 "If the guest is a Windows guest then you can use drive letters and "
3549 "backslashes, but you must prefix the path with C<win:> and quote it to "
3550 "protect it from the shell, like this:"
3551 msgstr ""
3552
3553 #. type: verbatim
3554 #: ../examples/guestfs-recipes.pod:147
3555 #, no-wrap
3556 msgid ""
3557 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
3558 "\n"
3559 msgstr ""
3560
3561 #. type: textblock
3562 #: ../examples/guestfs-recipes.pod:149
3563 msgid "To get the output as a compressed tarball, do:"
3564 msgstr ""
3565
3566 #. type: verbatim
3567 #: ../examples/guestfs-recipes.pod:151
3568 #, no-wrap
3569 msgid ""
3570 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
3571 "\n"
3572 msgstr ""
3573
3574 #. type: textblock
3575 #: ../examples/guestfs-recipes.pod:153
3576 msgid ""
3577 "Although it sounds tempting, this is usually not a reliable way to get a "
3578 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
3579 "org/FAQ.html#backup"
3580 msgstr ""
3581
3582 #. type: =head1
3583 #: ../examples/guestfs-recipes.pod:157
3584 msgid "Find out which user is using the most space"
3585 msgstr ""
3586
3587 #. type: textblock
3588 #: ../examples/guestfs-recipes.pod:159
3589 msgid ""
3590 "This simple script examines a Linux guest to find out which user is using "
3591 "the most space in their home directory:"
3592 msgstr ""
3593
3594 #. type: verbatim
3595 #: ../examples/guestfs-recipes.pod:162
3596 #, no-wrap
3597 msgid ""
3598 " #!/bin/sh -\n"
3599 " \n"
3600 msgstr ""
3601
3602 #. type: verbatim
3603 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
3604 #, no-wrap
3605 msgid ""
3606 " set -e\n"
3607 " \n"
3608 msgstr ""
3609
3610 #. type: verbatim
3611 #: ../examples/guestfs-recipes.pod:166
3612 #, no-wrap
3613 msgid ""
3614 " vm=\"$1\"\n"
3615 " dir=/home\n"
3616 " \n"
3617 msgstr ""
3618
3619 #. type: verbatim
3620 #: ../examples/guestfs-recipes.pod:169
3621 #, no-wrap
3622 msgid ""
3623 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
3624 " \n"
3625 msgstr ""
3626
3627 #. type: verbatim
3628 #: ../examples/guestfs-recipes.pod:171
3629 #, no-wrap
3630 msgid ""
3631 " for d in $(guestfish --remote ls \"$dir\"); do\n"
3632 "     echo -n \"$dir/$d\"\n"
3633 "     echo -ne '\\t'\n"
3634 "     guestfish --remote du \"$dir/$d\";\n"
3635 " done | sort -nr -k 2\n"
3636 " \n"
3637 msgstr ""
3638
3639 #. type: verbatim
3640 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
3641 #, no-wrap
3642 msgid ""
3643 " guestfish --remote exit\n"
3644 "\n"
3645 msgstr ""
3646
3647 #. type: =head1
3648 #: ../examples/guestfs-recipes.pod:179
3649 msgid "Get DHCP address from a VM"
3650 msgstr ""
3651
3652 #. type: textblock
3653 #: ../examples/guestfs-recipes.pod:181
3654 msgid ""
3655 "The link below explains the many different possible techniques for getting "
3656 "the last assigned DHCP address of a virtual machine."
3657 msgstr ""
3658
3659 #. type: textblock
3660 #: ../examples/guestfs-recipes.pod:184
3661 msgid ""
3662 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
3663 "a-virtual-machine-disk-image/#content"
3664 msgstr ""
3665
3666 #. type: textblock
3667 #: ../examples/guestfs-recipes.pod:186
3668 msgid ""
3669 "In the libguestfs source examples directory you will find the latest version "
3670 "of the C<virt-dhcp-address.c> program."
3671 msgstr ""
3672
3673 #. type: =head1
3674 #: ../examples/guestfs-recipes.pod:189
3675 msgid "Get the operating system product name string"
3676 msgstr ""
3677
3678 #. type: textblock
3679 #: ../examples/guestfs-recipes.pod:191
3680 msgid "Save the following script into a file called C<product-name.sh>:"
3681 msgstr ""
3682
3683 #. type: verbatim
3684 #: ../examples/guestfs-recipes.pod:193
3685 #, no-wrap
3686 msgid ""
3687 " #!/bin/sh -\n"
3688 " set -e\n"
3689 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
3690 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
3691 " guestfish --remote inspect-get-product-name \"$root\"\n"
3692 " guestfish --remote exit\n"
3693 "\n"
3694 msgstr ""
3695
3696 #. type: textblock
3697 #: ../examples/guestfs-recipes.pod:200
3698 msgid "Make the script executable and run it on a named guest:"
3699 msgstr ""
3700
3701 #. type: verbatim
3702 #: ../examples/guestfs-recipes.pod:202
3703 #, no-wrap
3704 msgid ""
3705 " # product-name.sh RHEL60x64\n"
3706 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
3707 "\n"
3708 msgstr ""
3709
3710 #. type: textblock
3711 #: ../examples/guestfs-recipes.pod:205
3712 msgid ""
3713 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
3714 "C<xpath> command line tool or from your favourite programming language:"
3715 msgstr ""
3716
3717 #. type: verbatim
3718 #: ../examples/guestfs-recipes.pod:209
3719 #, no-wrap
3720 msgid ""
3721 " # virt-inspector RHEL60x64 > xml\n"
3722 " # xpath '//product_name' < xml\n"
3723 " Found 1 nodes:\n"
3724 " -- NODE --\n"
3725 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
3726 "\n"
3727 msgstr ""
3728
3729 #. type: =head1
3730 #: ../examples/guestfs-recipes.pod:215
3731 msgid "Get the default boot kernel for a Linux VM"
3732 msgstr ""
3733
3734 #. type: textblock
3735 #: ../examples/guestfs-recipes.pod:217
3736 msgid ""
3737 "The link below contains a program to print the default boot kernel for a "
3738 "Linux VM."
3739 msgstr ""
3740
3741 #. type: textblock
3742 #: ../examples/guestfs-recipes.pod:220
3743 msgid ""
3744 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
3745 "kernel-for-a-vm/#content"
3746 msgstr ""
3747
3748 #. type: textblock
3749 #: ../examples/guestfs-recipes.pod:222
3750 msgid ""
3751 "It uses Augeas, and the technique is generally applicable for many different "
3752 "tasks, such as:"
3753 msgstr ""
3754
3755 #. type: textblock
3756 #: ../examples/guestfs-recipes.pod:229
3757 msgid "listing the user accounts in the guest"
3758 msgstr ""
3759
3760 #. type: textblock
3761 #: ../examples/guestfs-recipes.pod:233
3762 msgid "what repositories is it configured to use"
3763 msgstr ""
3764
3765 #. type: textblock
3766 #: ../examples/guestfs-recipes.pod:237
3767 msgid "what NTP servers does it connect to"
3768 msgstr ""
3769
3770 #. type: textblock
3771 #: ../examples/guestfs-recipes.pod:241
3772 msgid "what were the boot messages last time it booted"
3773 msgstr ""
3774
3775 #. type: textblock
3776 #: ../examples/guestfs-recipes.pod:245
3777 msgid "listing who was logged in recently"
3778 msgstr ""
3779
3780 #. type: textblock
3781 #: ../examples/guestfs-recipes.pod:249
3782 msgid "http://augeas.net/"
3783 msgstr ""
3784
3785 #. type: =head1
3786 #: ../examples/guestfs-recipes.pod:251
3787 msgid "Install RPMs in a guest"
3788 msgstr ""
3789
3790 #. type: textblock
3791 #: ../examples/guestfs-recipes.pod:253
3792 msgid ""
3793 "The link below contains a method to install RPMs in a guest.  In fact the "
3794 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
3795 "installs them next time the guest is booted.  You could use this technique "
3796 "to install vital security updates in an offline guest."
3797 msgstr ""
3798
3799 #. type: textblock
3800 #: ../examples/guestfs-recipes.pod:259
3801 msgid ""
3802 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
3803 msgstr ""
3804
3805 #. type: =head1
3806 #: ../examples/guestfs-recipes.pod:261
3807 msgid "List applications installed in a VM"
3808 msgstr ""
3809
3810 #. type: textblock
3811 #: ../examples/guestfs-recipes.pod:263
3812 msgid "Save the following to a file C<list-apps.sh>:"
3813 msgstr ""
3814
3815 #. type: verbatim
3816 #: ../examples/guestfs-recipes.pod:265
3817 #, no-wrap
3818 msgid ""
3819 " #!/bin/sh -\n"
3820 " set -e\n"
3821 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
3822 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
3823 " guestfish --remote inspect-list-applications \"$root\"\n"
3824 " guestfish --remote exit\n"
3825 "\n"
3826 msgstr ""
3827
3828 #. type: textblock
3829 #: ../examples/guestfs-recipes.pod:272
3830 msgid ""
3831 "Make the file executable and then you can run it on any named virtual "
3832 "machine:"
3833 msgstr ""
3834
3835 #. type: verbatim
3836 #: ../examples/guestfs-recipes.pod:275
3837 #, no-wrap
3838 msgid ""
3839 " # list-apps.sh WinGuest\n"
3840 " [0] = {\n"
3841 "   app_name: Mozilla Firefox (3.6.12)\n"
3842 "   app_display_name: Mozilla Firefox (3.6.12)\n"
3843 "   app_epoch: 0\n"
3844 "   app_version: 3.6.12 (en-GB)\n"
3845 "   app_release:\n"
3846 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
3847 "   app_trans_path:\n"
3848 "   app_publisher: Mozilla\n"
3849 "   app_url: http://www.mozilla.com/en-GB/\n"
3850 "   app_source_package:\n"
3851 "   app_summary:\n"
3852 "   app_description: Mozilla Firefox\n"
3853 " }\n"
3854 " [1] = {\n"
3855 "   app_name: VLC media player\n"
3856 "   app_display_name: VLC media player 1.1.5\n"
3857 "   app_epoch: 0\n"
3858 "   app_version: 1.1.5\n"
3859 "   app_release:\n"
3860 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
3861 "   app_trans_path:\n"
3862 "   app_publisher: VideoLAN\n"
3863 "   app_url: http://www.videolan.org/\n"
3864 "   app_source_package:\n"
3865 "   app_summary:\n"
3866 "   app_description:\n"
3867 " }\n"
3868 "\n"
3869 msgstr ""
3870
3871 #. type: textblock
3872 #: ../examples/guestfs-recipes.pod:305
3873 msgid ""
3874 "If you want to run the script on disk images (instead of libvirt virtual "
3875 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
3876 ">."
3877 msgstr ""
3878
3879 #. type: =head1
3880 #: ../examples/guestfs-recipes.pod:309
3881 msgid "List files and directories in a VM"
3882 msgstr ""
3883
3884 #. type: textblock
3885 #: ../examples/guestfs-recipes.pod:311
3886 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
3887 msgstr ""
3888
3889 #. type: verbatim
3890 #: ../examples/guestfs-recipes.pod:313
3891 #, no-wrap
3892 msgid ""
3893 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
3894 "\n"
3895 msgstr ""
3896
3897 #. type: =head1
3898 #: ../examples/guestfs-recipes.pod:315
3899 msgid "List services in a Windows VM"
3900 msgstr ""
3901
3902 #. type: textblock
3903 #: ../examples/guestfs-recipes.pod:317
3904 msgid ""
3905 "The link below contains a script that can be used to list out the services "
3906 "from a Windows VM, and whether those services run at boot time or are loaded "
3907 "on demand."
3908 msgstr ""
3909
3910 #. type: textblock
3911 #: ../examples/guestfs-recipes.pod:321
3912 msgid ""
3913 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
3914 "#content"
3915 msgstr ""
3916
3917 #. type: =head1
3918 #: ../examples/guestfs-recipes.pod:323
3919 msgid "Make a disk image sparse"
3920 msgstr ""
3921
3922 #. type: textblock
3923 #: ../examples/guestfs-recipes.pod:325
3924 msgid ""
3925 "The link below contains some guides for making a disk image sparse (or "
3926 "reintroducing sparseness)."
3927 msgstr ""
3928
3929 #. type: textblock
3930 #: ../examples/guestfs-recipes.pod:328
3931 msgid ""
3932 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
3933 msgstr ""
3934
3935 #. type: =head1
3936 #: ../examples/guestfs-recipes.pod:330
3937 msgid "Monitor disk usage over time"
3938 msgstr ""
3939
3940 #. type: textblock
3941 #: ../examples/guestfs-recipes.pod:332
3942 msgid ""
3943 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
3944 "The link below contains a guide."
3945 msgstr ""
3946
3947 #. type: textblock
3948 #: ../examples/guestfs-recipes.pod:335
3949 msgid "http://virt-tools.org/learning/advanced-virt-df/"
3950 msgstr ""
3951
3952 #. type: =head1
3953 #: ../examples/guestfs-recipes.pod:337
3954 msgid "Reading the Windows Event Log from Windows Vista (or later)"
3955 msgstr ""
3956
3957 #. type: textblock
3958 #: ../examples/guestfs-recipes.pod:339
3959 msgid ""
3960 "L<guestfish(1)> plus the tools described in the link below can be used to "
3961 "read out the Windows Event Log from any virtual machine running Windows "
3962 "Vista or a later version."
3963 msgstr ""
3964
3965 #. type: textblock
3966 #: ../examples/guestfs-recipes.pod:343
3967 msgid ""
3968 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
3969 "guestfish/#content"
3970 msgstr ""
3971
3972 #. type: =head1
3973 #: ../examples/guestfs-recipes.pod:345
3974 msgid "Remove root password (Linux)"
3975 msgstr ""
3976
3977 #. type: textblock
3978 #: ../examples/guestfs-recipes.pod:347
3979 msgid ""
3980 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
3981 "files.  One use is to remove the root password from a Linux guest:"
3982 msgstr ""
3983
3984 #. type: verbatim
3985 #: ../examples/guestfs-recipes.pod:350
3986 #, no-wrap
3987 msgid ""
3988 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3989 "\n"
3990 msgstr ""
3991
3992 #. type: =head1
3993 #: ../examples/guestfs-recipes.pod:352
3994 msgid "Remove Administrator password (Windows)"
3995 msgstr ""
3996
3997 #. type: textblock
3998 #: ../examples/guestfs-recipes.pod:354
3999 msgid ""
4000 "The link below contains one technique for removing the Administrator "
4001 "password from a Windows VM, or to be more precise, it gives you a command "
4002 "prompt the next time you log in which you can use to bypass any security:"
4003 msgstr ""
4004
4005 #. type: textblock
4006 #: ../examples/guestfs-recipes.pod:359
4007 msgid ""
4008 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
4009 "administrator-password-with-guestfish/"
4010 msgstr ""
4011
4012 #. type: =head1
4013 #: ../examples/guestfs-recipes.pod:361
4014 msgid "Unpack a live CD"
4015 msgstr ""
4016
4017 #. type: textblock
4018 #: ../examples/guestfs-recipes.pod:363
4019 msgid ""
4020 "Linux live CDs often contain multiple layers of disk images wrapped like a "
4021 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
4022 "layers, as outlined in the guide below."
4023 msgstr ""
4024
4025 #. type: textblock
4026 #: ../examples/guestfs-recipes.pod:367
4027 msgid ""
4028 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
4029 "cd/#content"
4030 msgstr ""
4031
4032 #. type: =head1
4033 #: ../examples/guestfs-recipes.pod:369
4034 msgid "Uploading and downloading files"
4035 msgstr ""
4036
4037 #. type: textblock
4038 #: ../examples/guestfs-recipes.pod:371
4039 msgid ""
4040 "The link below contains general tips on uploading (copying in)  and "
4041 "downloading (copying out) files from VMs."
4042 msgstr ""
4043
4044 #. type: textblock
4045 #: ../examples/guestfs-recipes.pod:374
4046 msgid ""
4047 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
4048 msgstr ""
4049
4050 #. type: =head1
4051 #: ../examples/guestfs-recipes.pod:376
4052 msgid "Use libguestfs tools on VMware ESX guests"
4053 msgstr ""
4054
4055 #. type: textblock
4056 #: ../examples/guestfs-recipes.pod:378
4057 msgid ""
4058 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
4059 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
4060 msgstr ""
4061
4062 #. type: textblock
4063 #: ../examples/guestfs-recipes.pod:382
4064 msgid ""
4065 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
4066 "guests/#content"
4067 msgstr ""
4068
4069 #. type: textblock
4070 #: ../examples/guestfs-recipes.pod:386
4071 msgid ""
4072 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
4073 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby"
4074 "(3)>, L<http://libguestfs.org/>."
4075 msgstr ""
4076
4077 #. type: textblock
4078 #: ../examples/guestfs-recipes.pod:402
4079 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
4080 msgstr ""
4081
4082 #. type: =head2
4083 #: ../fish/guestfish-actions.pod:1
4084 msgid "add-cdrom"
4085 msgstr ""
4086
4087 #. type: verbatim
4088 #: ../fish/guestfish-actions.pod:3
4089 #, no-wrap
4090 msgid ""
4091 " add-cdrom filename\n"
4092 "\n"
4093 msgstr ""
4094
4095 #. type: textblock
4096 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:7
4097 msgid "This function adds a virtual CD-ROM disk image to the guest."
4098 msgstr ""
4099
4100 #. type: textblock
4101 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:9
4102 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
4103 msgstr ""
4104
4105 #. type: textblock
4106 #: ../fish/guestfish-actions.pod:15
4107 msgid ""
4108 "This call checks for the existence of C<filename>.  This stops you from "
4109 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4110 "and C<http:> URLs.  To specify those, use the general L</config> call "
4111 "instead."
4112 msgstr ""
4113
4114 #. type: textblock
4115 #: ../fish/guestfish-actions.pod:22
4116 msgid ""
4117 "If you just want to add an ISO file (often you use this as an efficient way "
4118 "to transfer large files into the guest), then you should probably use L</add-"
4119 "drive-ro> instead."
4120 msgstr ""
4121
4122 #. type: textblock
4123 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163
4124 #: ../fish/guestfish-actions.pod:177
4125 msgid ""
4126 "This function is deprecated.  In new code, use the L</add_drive_opts> call "
4127 "instead."
4128 msgstr ""
4129
4130 #. type: textblock
4131 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166
4132 #: ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:991
4133 #: ../fish/guestfish-actions.pod:1351 ../fish/guestfish-actions.pod:1365
4134 #: ../fish/guestfish-actions.pod:3112 ../fish/guestfish-actions.pod:3319
4135 #: ../fish/guestfish-actions.pod:3433 ../fish/guestfish-actions.pod:3481
4136 #: ../fish/guestfish-actions.pod:4382 ../fish/guestfish-actions.pod:4405
4137 #: ../fish/guestfish-actions.pod:4427 ../fish/guestfish-actions.pod:4465
4138 #: ../fish/guestfish-actions.pod:5114 ../fish/guestfish-actions.pod:5220
4139 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:257
4140 #: ../src/guestfs-actions.pod:278 ../src/guestfs-actions.pod:1518
4141 #: ../src/guestfs-actions.pod:2013 ../src/guestfs-actions.pod:2034
4142 #: ../src/guestfs-actions.pod:4655 ../src/guestfs-actions.pod:4974
4143 #: ../src/guestfs-actions.pod:5192 ../src/guestfs-actions.pod:5282
4144 #: ../src/guestfs-actions.pod:6571 ../src/guestfs-actions.pod:6601
4145 #: ../src/guestfs-actions.pod:6634 ../src/guestfs-actions.pod:6693
4146 #: ../src/guestfs-actions.pod:7629 ../src/guestfs-actions.pod:7741
4147 #: ../src/guestfs-actions.pod:7919
4148 msgid ""
4149 "Deprecated functions will not be removed from the API, but the fact that "
4150 "they are deprecated indicates that there are problems with correct use of "
4151 "these functions."
4152 msgstr ""
4153
4154 #. type: =head2
4155 #: ../fish/guestfish-actions.pod:35
4156 msgid "add-domain"
4157 msgstr ""
4158
4159 #. type: =head2
4160 #: ../fish/guestfish-actions.pod:37
4161 msgid "domain"
4162 msgstr ""
4163
4164 #. type: verbatim
4165 #: ../fish/guestfish-actions.pod:39
4166 #, no-wrap
4167 msgid ""
4168 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
4169 "\n"
4170 msgstr ""
4171
4172 #. type: textblock
4173 #: ../fish/guestfish-actions.pod:41
4174 msgid ""
4175 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4176 "It works by connecting to libvirt, requesting the domain and domain XML from "
4177 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
4178 msgstr ""
4179
4180 #. type: textblock
4181 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
4182 msgid ""
4183 "The number of disks added is returned.  This operation is atomic: if an "
4184 "error is returned, then no disks are added."
4185 msgstr ""
4186
4187 #. type: textblock
4188 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
4189 msgid ""
4190 "This function does some minimal checks to make sure the libvirt domain is "
4191 "not running (unless C<readonly> is true).  In a future version we will try "
4192 "to acquire the libvirt lock on each disk."
4193 msgstr ""
4194
4195 #. type: textblock
4196 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
4197 msgid ""
4198 "Disks must be accessible locally.  This often means that adding disks from a "
4199 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4200 "unless those disks are accessible via the same device path locally too."
4201 msgstr ""
4202
4203 #. type: textblock
4204 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
4205 msgid ""
4206 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4207 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
4208 "libvirt URI (or one set through an environment variable, see the libvirt "
4209 "documentation for full details)."
4210 msgstr ""
4211
4212 #. type: textblock
4213 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
4214 msgid ""
4215 "The optional C<live> flag controls whether this call will try to connect to "
4216 "a running virtual machine C<guestfsd> process if it sees a suitable "
4217 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
4218 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
4219 "DAEMONS> for more information."
4220 msgstr ""
4221
4222 #. type: textblock
4223 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
4224 msgid ""
4225 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
4226 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
4227 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
4228 "as usual."
4229 msgstr ""
4230
4231 #. type: textblock
4232 #: ../fish/guestfish-actions.pod:76
4233 msgid ""
4234 "The other optional parameters are passed directly through to L</add-drive-"
4235 "opts>."
4236 msgstr ""
4237
4238 #. type: textblock
4239 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
4240 #: ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:1995
4241 #: ../fish/guestfish-actions.pod:3161 ../fish/guestfish-actions.pod:3334
4242 #: ../fish/guestfish-actions.pod:3469
4243 msgid ""
4244 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
4245 msgstr ""
4246
4247 #. type: =head2
4248 #: ../fish/guestfish-actions.pod:81
4249 msgid "add-drive"
4250 msgstr ""
4251
4252 #. type: verbatim
4253 #: ../fish/guestfish-actions.pod:83
4254 #, no-wrap
4255 msgid ""
4256 " add-drive filename\n"
4257 "\n"
4258 msgstr ""
4259
4260 #. type: textblock
4261 #: ../fish/guestfish-actions.pod:85
4262 msgid ""
4263 "This function is the equivalent of calling L</add-drive-opts> with no "
4264 "optional parameters, so the disk is added writable, with the format being "
4265 "detected automatically."
4266 msgstr ""
4267
4268 #. type: textblock
4269 #: ../fish/guestfish-actions.pod:89
4270 msgid ""
4271 "Automatic detection of the format opens you up to a potential security hole "
4272 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4273 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4274 "you should think about replacing calls to this function with calls to L</add-"
4275 "drive-opts>, and specifying the format."
4276 msgstr ""
4277
4278 #. type: =head2
4279 #: ../fish/guestfish-actions.pod:96
4280 msgid "add-drive-opts"
4281 msgstr ""
4282
4283 #. type: =head2
4284 #: ../fish/guestfish-actions.pod:98
4285 msgid "add"
4286 msgstr ""
4287
4288 #. type: verbatim
4289 #: ../fish/guestfish-actions.pod:100
4290 #, no-wrap
4291 msgid ""
4292 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
4293 "\n"
4294 msgstr ""
4295
4296 #. type: textblock
4297 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
4298 msgid ""
4299 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4300 "The first time you call this function, the disk appears as C</dev/sda>, the "
4301 "second time as C</dev/sdb>, and so on."
4302 msgstr ""
4303
4304 #. type: textblock
4305 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
4306 msgid ""
4307 "You don't necessarily need to be root when using libguestfs.  However you "
4308 "obviously do need sufficient permissions to access the filename for whatever "
4309 "operations you want to perform (ie. read access if you just want to read the "
4310 "image or write access if you want to modify the image)."
4311 msgstr ""
4312
4313 #. type: textblock
4314 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
4315 msgid "This call checks that C<filename> exists."
4316 msgstr ""
4317
4318 #. type: textblock
4319 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3123
4320 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4682
4321 msgid "The optional arguments are:"
4322 msgstr ""
4323
4324 #. type: =item
4325 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
4326 msgid "C<readonly>"
4327 msgstr ""
4328
4329 #. type: textblock
4330 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
4331 msgid ""
4332 "If true then the image is treated as read-only.  Writes are still allowed, "
4333 "but they are stored in a temporary snapshot overlay which is discarded at "
4334 "the end.  The disk that you add is not modified."
4335 msgstr ""
4336
4337 #. type: =item
4338 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
4339 msgid "C<format>"
4340 msgstr ""
4341
4342 #. type: textblock
4343 #: ../fish/guestfish-actions.pod:127
4344 msgid ""
4345 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
4346 "add-drive-ro>) then the format is automatically detected.  Possible formats "
4347 "include C<raw> and C<qcow2>."
4348 msgstr ""
4349
4350 #. type: textblock
4351 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
4352 msgid ""
4353 "Automatic detection of the format opens you up to a potential security hole "
4354 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4355 "RHBZ#642934.  Specifying the format closes this security hole."
4356 msgstr ""
4357
4358 #. type: =item
4359 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
4360 msgid "C<iface>"
4361 msgstr ""
4362
4363 #. type: textblock
4364 #: ../fish/guestfish-actions.pod:138
4365 msgid ""
4366 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
4367 "add-drive-with-if> call (q.v.)"
4368 msgstr ""
4369
4370 #. type: =head2
4371 #: ../fish/guestfish-actions.pod:145
4372 msgid "add-drive-ro"
4373 msgstr ""
4374
4375 #. type: =head2
4376 #: ../fish/guestfish-actions.pod:147
4377 msgid "add-ro"
4378 msgstr ""
4379
4380 #. type: verbatim
4381 #: ../fish/guestfish-actions.pod:149
4382 #, no-wrap
4383 msgid ""
4384 " add-drive-ro filename\n"
4385 "\n"
4386 msgstr ""
4387
4388 #. type: textblock
4389 #: ../fish/guestfish-actions.pod:151
4390 msgid ""
4391 "This function is the equivalent of calling L</add-drive-opts> with the "
4392 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
4393 "is added read-only, with the format being detected automatically."
4394 msgstr ""
4395
4396 #. type: =head2
4397 #: ../fish/guestfish-actions.pod:156
4398 msgid "add-drive-ro-with-if"
4399 msgstr ""
4400
4401 #. type: verbatim
4402 #: ../fish/guestfish-actions.pod:158
4403 #, no-wrap
4404 msgid ""
4405 " add-drive-ro-with-if filename iface\n"
4406 "\n"
4407 msgstr ""
4408
4409 #. type: textblock
4410 #: ../fish/guestfish-actions.pod:160
4411 msgid ""
4412 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
4413 "interface emulation to use at run time."
4414 msgstr ""
4415
4416 #. type: =head2
4417 #: ../fish/guestfish-actions.pod:170
4418 msgid "add-drive-with-if"
4419 msgstr ""
4420
4421 #. type: verbatim
4422 #: ../fish/guestfish-actions.pod:172
4423 #, no-wrap
4424 msgid ""
4425 " add-drive-with-if filename iface\n"
4426 "\n"
4427 msgstr ""
4428
4429 #. type: textblock
4430 #: ../fish/guestfish-actions.pod:174
4431 msgid ""
4432 "This is the same as L</add-drive> but it allows you to specify the QEMU "
4433 "interface emulation to use at run time."
4434 msgstr ""
4435
4436 #. type: =head2
4437 #: ../fish/guestfish-actions.pod:184
4438 msgid "aug-clear"
4439 msgstr ""
4440
4441 #. type: verbatim
4442 #: ../fish/guestfish-actions.pod:186
4443 #, no-wrap
4444 msgid ""
4445 " aug-clear augpath\n"
4446 "\n"
4447 msgstr ""
4448
4449 #. type: textblock
4450 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
4451 msgid ""
4452 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4453 "L<augtool(1)> C<clear> command."
4454 msgstr ""
4455
4456 #. type: =head2
4457 #: ../fish/guestfish-actions.pod:191
4458 msgid "aug-close"
4459 msgstr ""
4460
4461 #. type: verbatim
4462 #: ../fish/guestfish-actions.pod:193
4463 #, no-wrap
4464 msgid ""
4465 " aug-close\n"
4466 "\n"
4467 msgstr ""
4468
4469 #. type: textblock
4470 #: ../fish/guestfish-actions.pod:195
4471 msgid ""
4472 "Close the current Augeas handle and free up any resources used by it.  After "
4473 "calling this, you have to call L</aug-init> again before you can use any "
4474 "other Augeas functions."
4475 msgstr ""
4476
4477 #. type: =head2
4478 #: ../fish/guestfish-actions.pod:200
4479 msgid "aug-defnode"
4480 msgstr ""
4481
4482 #. type: verbatim
4483 #: ../fish/guestfish-actions.pod:202
4484 #, no-wrap
4485 msgid ""
4486 " aug-defnode name expr val\n"
4487 "\n"
4488 msgstr ""
4489
4490 #. type: textblock
4491 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
4492 msgid ""
4493 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4494 msgstr ""
4495
4496 #. type: textblock
4497 #: ../fish/guestfish-actions.pod:207
4498 msgid ""
4499 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4500 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
4501 "containing that single node."
4502 msgstr ""
4503
4504 #. type: textblock
4505 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
4506 msgid ""
4507 "On success this returns a pair containing the number of nodes in the "
4508 "nodeset, and a boolean flag if a node was created."
4509 msgstr ""
4510
4511 #. type: =head2
4512 #: ../fish/guestfish-actions.pod:215
4513 msgid "aug-defvar"
4514 msgstr ""
4515
4516 #. type: verbatim
4517 #: ../fish/guestfish-actions.pod:217
4518 #, no-wrap
4519 msgid ""
4520 " aug-defvar name expr\n"
4521 "\n"
4522 msgstr ""
4523
4524 #. type: textblock
4525 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
4526 msgid ""
4527 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4528 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4529 msgstr ""
4530
4531 #. type: textblock
4532 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
4533 msgid ""
4534 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4535 "evaluates to something which is not a nodeset."
4536 msgstr ""
4537
4538 #. type: =head2
4539 #: ../fish/guestfish-actions.pod:226
4540 msgid "aug-get"
4541 msgstr ""
4542
4543 #. type: verbatim
4544 #: ../fish/guestfish-actions.pod:228
4545 #, no-wrap
4546 msgid ""
4547 " aug-get augpath\n"
4548 "\n"
4549 msgstr ""
4550
4551 #. type: textblock
4552 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
4553 msgid ""
4554 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4555 "node, the C<value> is returned."
4556 msgstr ""
4557
4558 #. type: =head2
4559 #: ../fish/guestfish-actions.pod:233
4560 msgid "aug-init"
4561 msgstr ""
4562
4563 #. type: verbatim
4564 #: ../fish/guestfish-actions.pod:235
4565 #, no-wrap
4566 msgid ""
4567 " aug-init root flags\n"
4568 "\n"
4569 msgstr ""
4570
4571 #. type: textblock
4572 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
4573 msgid ""
4574 "Create a new Augeas handle for editing configuration files.  If there was "
4575 "any previous Augeas handle associated with this guestfs session, then it is "
4576 "closed."
4577 msgstr ""
4578
4579 #. type: textblock
4580 #: ../fish/guestfish-actions.pod:241
4581 msgid "You must call this before using any other L</aug-*> commands."
4582 msgstr ""
4583
4584 #. type: textblock
4585 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
4586 msgid ""
4587 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4588 msgstr ""
4589
4590 #. type: textblock
4591 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
4592 msgid ""
4593 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4594 "logical I<or> of the following integers:"
4595 msgstr ""
4596
4597 #. type: =item
4598 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
4599 msgid "C<AUG_SAVE_BACKUP> = 1"
4600 msgstr ""
4601
4602 #. type: textblock
4603 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
4604 msgid "Keep the original file with a C<.augsave> extension."
4605 msgstr ""
4606
4607 #. type: =item
4608 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
4609 msgid "C<AUG_SAVE_NEWFILE> = 2"
4610 msgstr ""
4611
4612 #. type: textblock
4613 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
4614 msgid ""
4615 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4616 "original.  Overrides C<AUG_SAVE_BACKUP>."
4617 msgstr ""
4618
4619 #. type: =item
4620 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
4621 msgid "C<AUG_TYPE_CHECK> = 4"
4622 msgstr ""
4623
4624 #. type: textblock
4625 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
4626 msgid "Typecheck lenses."
4627 msgstr ""
4628
4629 #. type: textblock
4630 #: ../fish/guestfish-actions.pod:266
4631 msgid ""
4632 "This option is only useful when debugging Augeas lenses.  Use of this option "
4633 "may require additional memory for the libguestfs appliance.  You may need to "
4634 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
4635 msgstr ""
4636
4637 #. type: =item
4638 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
4639 msgid "C<AUG_NO_STDINC> = 8"
4640 msgstr ""
4641
4642 #. type: textblock
4643 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
4644 msgid "Do not use standard load path for modules."
4645 msgstr ""
4646
4647 #. type: =item
4648 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
4649 msgid "C<AUG_SAVE_NOOP> = 16"
4650 msgstr ""
4651
4652 #. type: textblock
4653 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
4654 msgid "Make save a no-op, just record what would have been changed."
4655 msgstr ""
4656
4657 #. type: =item
4658 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
4659 msgid "C<AUG_NO_LOAD> = 32"
4660 msgstr ""
4661
4662 #. type: textblock
4663 #: ../fish/guestfish-actions.pod:281
4664 msgid "Do not load the tree in L</aug-init>."
4665 msgstr ""
4666
4667 #. type: textblock
4668 #: ../fish/guestfish-actions.pod:285
4669 msgid "To close the handle, you can call L</aug-close>."
4670 msgstr ""
4671
4672 #. type: textblock
4673 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
4674 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4675 msgstr ""
4676
4677 #. type: =head2
4678 #: ../fish/guestfish-actions.pod:289
4679 msgid "aug-insert"
4680 msgstr ""
4681
4682 #. type: verbatim
4683 #: ../fish/guestfish-actions.pod:291
4684 #, no-wrap
4685 msgid ""
4686 " aug-insert augpath label true|false\n"
4687 "\n"
4688 msgstr ""
4689
4690 #. type: textblock
4691 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
4692 msgid ""
4693 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4694 "or after C<path> (depending on the boolean flag C<before>)."
4695 msgstr ""
4696
4697 #. type: textblock
4698 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
4699 msgid ""
4700 "C<path> must match exactly one existing node in the tree, and C<label> must "
4701 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4702 msgstr ""
4703
4704 #. type: =head2
4705 #: ../fish/guestfish-actions.pod:301
4706 msgid "aug-load"
4707 msgstr ""
4708
4709 #. type: verbatim
4710 #: ../fish/guestfish-actions.pod:303
4711 #, no-wrap
4712 msgid ""
4713 " aug-load\n"
4714 "\n"
4715 msgstr ""
4716
4717 #. type: textblock
4718 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
4719 msgid "Load files into the tree."
4720 msgstr ""
4721
4722 #. type: textblock
4723 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
4724 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4725 msgstr ""
4726
4727 #. type: =head2
4728 #: ../fish/guestfish-actions.pod:310
4729 msgid "aug-ls"
4730 msgstr ""
4731
4732 #. type: verbatim
4733 #: ../fish/guestfish-actions.pod:312
4734 #, no-wrap
4735 msgid ""
4736 " aug-ls augpath\n"
4737 "\n"
4738 msgstr ""
4739
4740 #. type: textblock
4741 #: ../fish/guestfish-actions.pod:314
4742 msgid ""
4743 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
4744 "resulting nodes into alphabetical order."
4745 msgstr ""
4746
4747 #. type: =head2
4748 #: ../fish/guestfish-actions.pod:317
4749 msgid "aug-match"
4750 msgstr ""
4751
4752 #. type: verbatim
4753 #: ../fish/guestfish-actions.pod:319
4754 #, no-wrap
4755 msgid ""
4756 " aug-match augpath\n"
4757 "\n"
4758 msgstr ""
4759
4760 #. type: textblock
4761 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
4762 msgid ""
4763 "Returns a list of paths which match the path expression C<path>.  The "
4764 "returned paths are sufficiently qualified so that they match exactly one "
4765 "node in the current tree."
4766 msgstr ""
4767
4768 #. type: =head2
4769 #: ../fish/guestfish-actions.pod:325
4770 msgid "aug-mv"
4771 msgstr ""
4772
4773 #. type: verbatim
4774 #: ../fish/guestfish-actions.pod:327
4775 #, no-wrap
4776 msgid ""
4777 " aug-mv src dest\n"
4778 "\n"
4779 msgstr ""
4780
4781 #. type: textblock
4782 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
4783 msgid ""
4784 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4785 "C<dest> is overwritten if it exists."
4786 msgstr ""
4787
4788 #. type: =head2
4789 #: ../fish/guestfish-actions.pod:332
4790 msgid "aug-rm"
4791 msgstr ""
4792
4793 #. type: verbatim
4794 #: ../fish/guestfish-actions.pod:334
4795 #, no-wrap
4796 msgid ""
4797 " aug-rm augpath\n"
4798 "\n"
4799 msgstr ""
4800
4801 #. type: textblock
4802 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
4803 msgid "Remove C<path> and all of its children."
4804 msgstr ""
4805
4806 #. type: textblock
4807 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
4808 msgid "On success this returns the number of entries which were removed."
4809 msgstr ""
4810
4811 #. type: =head2
4812 #: ../fish/guestfish-actions.pod:340
4813 msgid "aug-save"
4814 msgstr ""
4815
4816 #. type: verbatim
4817 #: ../fish/guestfish-actions.pod:342
4818 #, no-wrap
4819 msgid ""
4820 " aug-save\n"
4821 "\n"
4822 msgstr ""
4823
4824 #. type: textblock
4825 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
4826 msgid "This writes all pending changes to disk."
4827 msgstr ""
4828
4829 #. type: textblock
4830 #: ../fish/guestfish-actions.pod:346
4831 msgid ""
4832 "The flags which were passed to L</aug-init> affect exactly how files are "
4833 "saved."
4834 msgstr ""
4835
4836 #. type: =head2
4837 #: ../fish/guestfish-actions.pod:349
4838 msgid "aug-set"
4839 msgstr ""
4840
4841 #. type: verbatim
4842 #: ../fish/guestfish-actions.pod:351
4843 #, no-wrap
4844 msgid ""
4845 " aug-set augpath val\n"
4846 "\n"
4847 msgstr ""
4848
4849 #. type: textblock
4850 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
4851 msgid "Set the value associated with C<path> to C<val>."
4852 msgstr ""
4853
4854 #. type: textblock
4855 #: ../fish/guestfish-actions.pod:355
4856 msgid ""
4857 "In the Augeas API, it is possible to clear a node by setting the value to "
4858 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
4859 "this call.  Instead you must use the L</aug-clear> call."
4860 msgstr ""
4861
4862 #. type: =head2
4863 #: ../fish/guestfish-actions.pod:360
4864 msgid "available"
4865 msgstr ""
4866
4867 #. type: verbatim
4868 #: ../fish/guestfish-actions.pod:362
4869 #, no-wrap
4870 msgid ""
4871 " available 'groups ...'\n"
4872 "\n"
4873 msgstr ""
4874
4875 #. type: textblock
4876 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
4877 msgid ""
4878 "This command is used to check the availability of some groups of "
4879 "functionality in the appliance, which not all builds of the libguestfs "
4880 "appliance will be able to provide."
4881 msgstr ""
4882
4883 #. type: textblock
4884 #: ../fish/guestfish-actions.pod:368
4885 msgid ""
4886 "The libguestfs groups, and the functions that those groups correspond to, "
4887 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
4888 "runtime by calling L</available-all-groups>."
4889 msgstr ""
4890
4891 #. type: textblock
4892 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
4893 msgid ""
4894 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
4895 "\"]> would check for the availability of the Linux inotify functions and "
4896 "Augeas (configuration file editing) functions."
4897 msgstr ""
4898
4899 #. type: textblock
4900 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
4901 msgid "The command returns no error if I<all> requested groups are available."
4902 msgstr ""
4903
4904 #. type: textblock
4905 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:578
4906 msgid ""
4907 "It fails with an error if one or more of the requested groups is unavailable "
4908 "in the appliance."
4909 msgstr ""
4910
4911 #. type: textblock
4912 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:581
4913 msgid ""
4914 "If an unknown group name is included in the list of groups then an error is "
4915 "always returned."
4916 msgstr ""
4917
4918 #. type: textblock
4919 #: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:584
4920 msgid "I<Notes:>"
4921 msgstr ""
4922
4923 #. type: textblock
4924 #: ../fish/guestfish-actions.pod:392
4925 msgid "You must call L</launch> before calling this function."
4926 msgstr ""
4927
4928 #. type: textblock
4929 #: ../fish/guestfish-actions.pod:394 ../src/guestfs-actions.pod:592
4930 msgid ""
4931 "The reason is because we don't know what groups are supported by the "
4932 "appliance/daemon until it is running and can be queried."
4933 msgstr ""
4934
4935 #. type: textblock
4936 #: ../fish/guestfish-actions.pod:400 ../src/guestfs-actions.pod:598
4937 msgid ""
4938 "If a group of functions is available, this does not necessarily mean that "
4939 "they will work.  You still have to check for errors when calling individual "
4940 "API functions even if they are available."
4941 msgstr ""
4942
4943 #. type: textblock
4944 #: ../fish/guestfish-actions.pod:407 ../src/guestfs-actions.pod:605
4945 msgid ""
4946 "It is usually the job of distro packagers to build complete functionality "
4947 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
4948 "with all requirements satisfied, will support everything."
4949 msgstr ""
4950
4951 #. type: textblock
4952 #: ../fish/guestfish-actions.pod:414
4953 msgid ""
4954 "This call was added in version C<1.0.80>.  In previous versions of "
4955 "libguestfs all you could do would be to speculatively execute a command to "
4956 "find out if the daemon implemented it.  See also L</version>."
4957 msgstr ""
4958
4959 #. type: =head2
4960 #: ../fish/guestfish-actions.pod:421
4961 msgid "available-all-groups"
4962 msgstr ""
4963
4964 #. type: verbatim
4965 #: ../fish/guestfish-actions.pod:423
4966 #, no-wrap
4967 msgid ""
4968 " available-all-groups\n"
4969 "\n"
4970 msgstr ""
4971
4972 #. type: textblock
4973 #: ../fish/guestfish-actions.pod:425
4974 msgid ""
4975 "This command returns a list of all optional groups that this daemon knows "
4976 "about.  Note this returns both supported and unsupported groups.  To find "
4977 "out which ones the daemon can actually support you have to call L</"
4978 "available> on each member of the returned list."
4979 msgstr ""
4980
4981 #. type: textblock
4982 #: ../fish/guestfish-actions.pod:431
4983 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
4984 msgstr ""
4985
4986 #. type: =head2
4987 #: ../fish/guestfish-actions.pod:433
4988 msgid "base64-in"
4989 msgstr ""
4990
4991 #. type: verbatim
4992 #: ../fish/guestfish-actions.pod:435
4993 #, no-wrap
4994 msgid ""
4995 " base64-in (base64file|-) filename\n"
4996 "\n"
4997 msgstr ""
4998
4999 #. type: textblock
5000 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:649
5001 msgid ""
5002 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5003 msgstr ""
5004
5005 #. type: textblock
5006 #: ../fish/guestfish-actions.pod:440 ../fish/guestfish-actions.pod:449
5007 #: ../fish/guestfish-actions.pod:698 ../fish/guestfish-actions.pod:867
5008 #: ../fish/guestfish-actions.pod:886 ../fish/guestfish-actions.pod:1260
5009 #: ../fish/guestfish-actions.pod:4685 ../fish/guestfish-actions.pod:4697
5010 #: ../fish/guestfish-actions.pod:4708 ../fish/guestfish-actions.pod:4719
5011 #: ../fish/guestfish-actions.pod:4771 ../fish/guestfish-actions.pod:4780
5012 #: ../fish/guestfish-actions.pod:4834 ../fish/guestfish-actions.pod:4857
5013 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
5014 msgstr ""
5015
5016 #. type: =head2
5017 #: ../fish/guestfish-actions.pod:442
5018 msgid "base64-out"
5019 msgstr ""
5020
5021 #. type: verbatim
5022 #: ../fish/guestfish-actions.pod:444
5023 #, no-wrap
5024 msgid ""
5025 " base64-out filename (base64file|-)\n"
5026 "\n"
5027 msgstr ""
5028
5029 #. type: textblock
5030 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
5031 msgid ""
5032 "This command downloads the contents of C<filename>, writing it out to local "
5033 "file C<base64file> encoded as base64."
5034 msgstr ""
5035
5036 #. type: =head2
5037 #: ../fish/guestfish-actions.pod:451
5038 msgid "blockdev-flushbufs"
5039 msgstr ""
5040
5041 #. type: verbatim
5042 #: ../fish/guestfish-actions.pod:453
5043 #, no-wrap
5044 msgid ""
5045 " blockdev-flushbufs device\n"
5046 "\n"
5047 msgstr ""
5048
5049 #. type: textblock
5050 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
5051 msgid ""
5052 "This tells the kernel to flush internal buffers associated with C<device>."
5053 msgstr ""
5054
5055 #. type: textblock
5056 #: ../fish/guestfish-actions.pod:458 ../fish/guestfish-actions.pod:469
5057 #: ../fish/guestfish-actions.pod:478 ../fish/guestfish-actions.pod:488
5058 #: ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:513
5059 #: ../fish/guestfish-actions.pod:521 ../fish/guestfish-actions.pod:532
5060 #: ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:548
5061 #: ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:696
5062 #: ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:727
5063 #: ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:764
5064 #: ../src/guestfs-actions.pod:778 ../src/guestfs-actions.pod:796
5065 #: ../src/guestfs-actions.pod:810 ../src/guestfs-actions.pod:824
5066 msgid "This uses the L<blockdev(8)> command."
5067 msgstr ""
5068
5069 #. type: =head2
5070 #: ../fish/guestfish-actions.pod:460
5071 msgid "blockdev-getbsz"
5072 msgstr ""
5073
5074 #. type: verbatim
5075 #: ../fish/guestfish-actions.pod:462
5076 #, no-wrap
5077 msgid ""
5078 " blockdev-getbsz device\n"
5079 "\n"
5080 msgstr ""
5081
5082 #. type: textblock
5083 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
5084 msgid "This returns the block size of a device."
5085 msgstr ""
5086
5087 #. type: textblock
5088 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529
5089 #: ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
5090 msgid ""
5091 "(Note this is different from both I<size in blocks> and I<filesystem block "
5092 "size>)."
5093 msgstr ""
5094
5095 #. type: =head2
5096 #: ../fish/guestfish-actions.pod:471
5097 msgid "blockdev-getro"
5098 msgstr ""
5099
5100 #. type: verbatim
5101 #: ../fish/guestfish-actions.pod:473
5102 #, no-wrap
5103 msgid ""
5104 " blockdev-getro device\n"
5105 "\n"
5106 msgstr ""
5107
5108 #. type: textblock
5109 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
5110 msgid ""
5111 "Returns a boolean indicating if the block device is read-only (true if read-"
5112 "only, false if not)."
5113 msgstr ""
5114
5115 #. type: =head2
5116 #: ../fish/guestfish-actions.pod:480
5117 msgid "blockdev-getsize64"
5118 msgstr ""
5119
5120 #. type: verbatim
5121 #: ../fish/guestfish-actions.pod:482
5122 #, no-wrap
5123 msgid ""
5124 " blockdev-getsize64 device\n"
5125 "\n"
5126 msgstr ""
5127
5128 #. type: textblock
5129 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
5130 msgid "This returns the size of the device in bytes."
5131 msgstr ""
5132
5133 #. type: textblock
5134 #: ../fish/guestfish-actions.pod:486
5135 msgid "See also L</blockdev-getsz>."
5136 msgstr ""
5137
5138 #. type: =head2
5139 #: ../fish/guestfish-actions.pod:490
5140 msgid "blockdev-getss"
5141 msgstr ""
5142
5143 #. type: verbatim
5144 #: ../fish/guestfish-actions.pod:492
5145 #, no-wrap
5146 msgid ""
5147 " blockdev-getss device\n"
5148 "\n"
5149 msgstr ""
5150
5151 #. type: textblock
5152 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
5153 msgid ""
5154 "This returns the size of sectors on a block device.  Usually 512, but can be "
5155 "larger for modern devices."
5156 msgstr ""
5157
5158 #. type: textblock
5159 #: ../fish/guestfish-actions.pod:497
5160 msgid ""
5161 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
5162 msgstr ""
5163
5164 #. type: =head2
5165 #: ../fish/guestfish-actions.pod:502
5166 msgid "blockdev-getsz"
5167 msgstr ""
5168
5169 #. type: verbatim
5170 #: ../fish/guestfish-actions.pod:504
5171 #, no-wrap
5172 msgid ""
5173 " blockdev-getsz device\n"
5174 "\n"
5175 msgstr ""
5176
5177 #. type: textblock
5178 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
5179 msgid ""
5180 "This returns the size of the device in units of 512-byte sectors (even if "
5181 "the sectorsize isn't 512 bytes ... weird)."
5182 msgstr ""
5183
5184 #. type: textblock
5185 #: ../fish/guestfish-actions.pod:509
5186 msgid ""
5187 "See also L</blockdev-getss> for the real sector size of the device, and L</"
5188 "blockdev-getsize64> for the more useful I<size in bytes>."
5189 msgstr ""
5190
5191 #. type: =head2
5192 #: ../fish/guestfish-actions.pod:515
5193 msgid "blockdev-rereadpt"
5194 msgstr ""
5195
5196 #. type: verbatim
5197 #: ../fish/guestfish-actions.pod:517
5198 #, no-wrap
5199 msgid ""
5200 " blockdev-rereadpt device\n"
5201 "\n"
5202 msgstr ""
5203
5204 #. type: textblock
5205 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
5206 msgid "Reread the partition table on C<device>."
5207 msgstr ""
5208
5209 #. type: =head2
5210 #: ../fish/guestfish-actions.pod:523
5211 msgid "blockdev-setbsz"
5212 msgstr ""
5213
5214 #. type: verbatim
5215 #: ../fish/guestfish-actions.pod:525
5216 #, no-wrap
5217 msgid ""
5218 " blockdev-setbsz device blocksize\n"
5219 "\n"
5220 msgstr ""
5221
5222 #. type: textblock
5223 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
5224 msgid "This sets the block size of a device."
5225 msgstr ""
5226
5227 #. type: =head2
5228 #: ../fish/guestfish-actions.pod:534
5229 msgid "blockdev-setro"
5230 msgstr ""
5231
5232 #. type: verbatim
5233 #: ../fish/guestfish-actions.pod:536
5234 #, no-wrap
5235 msgid ""
5236 " blockdev-setro device\n"
5237 "\n"
5238 msgstr ""
5239
5240 #. type: textblock
5241 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
5242 msgid "Sets the block device named C<device> to read-only."
5243 msgstr ""
5244
5245 #. type: =head2
5246 #: ../fish/guestfish-actions.pod:542
5247 msgid "blockdev-setrw"
5248 msgstr ""
5249
5250 #. type: verbatim
5251 #: ../fish/guestfish-actions.pod:544
5252 #, no-wrap
5253 msgid ""
5254 " blockdev-setrw device\n"
5255 "\n"
5256 msgstr ""
5257
5258 #. type: textblock
5259 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
5260 msgid "Sets the block device named C<device> to read-write."
5261 msgstr ""
5262
5263 #. type: =head2
5264 #: ../fish/guestfish-actions.pod:550
5265 msgid "btrfs-filesystem-resize"
5266 msgstr ""
5267
5268 #. type: verbatim
5269 #: ../fish/guestfish-actions.pod:552
5270 #, no-wrap
5271 msgid ""
5272 " btrfs-filesystem-resize mountpoint [size:..]\n"
5273 "\n"
5274 msgstr ""
5275
5276 #. type: textblock
5277 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
5278 msgid "This command resizes a btrfs filesystem."
5279 msgstr ""
5280
5281 #. type: textblock
5282 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
5283 msgid ""
5284 "Note that unlike other resize calls, the filesystem has to be mounted and "
5285 "the parameter is the mountpoint not the device (this is a requirement of "
5286 "btrfs itself)."
5287 msgstr ""
5288
5289 #. type: textblock
5290 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3444
5291 #: ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5216
5292 msgid "The optional parameters are:"
5293 msgstr ""
5294
5295 #. type: =item
5296 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3448
5297 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5220
5298 msgid "C<size>"
5299 msgstr ""
5300
5301 #. type: textblock
5302 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
5303 msgid ""
5304 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
5305 "resized to the maximum size."
5306 msgstr ""
5307
5308 #. type: textblock
5309 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
5310 msgid "See also L<btrfs(8)>."
5311 msgstr ""
5312
5313 #. type: =head2
5314 #: ../fish/guestfish-actions.pod:575
5315 msgid "case-sensitive-path"
5316 msgstr ""
5317
5318 #. type: verbatim
5319 #: ../fish/guestfish-actions.pod:577
5320 #, no-wrap
5321 msgid ""
5322 " case-sensitive-path path\n"
5323 "\n"
5324 msgstr ""
5325
5326 #. type: textblock
5327 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
5328 msgid ""
5329 "This can be used to resolve case insensitive paths on a filesystem which is "
5330 "case sensitive.  The use case is to resolve paths which you have read from "
5331 "Windows configuration files or the Windows Registry, to the true path."
5332 msgstr ""
5333
5334 #. type: textblock
5335 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
5336 msgid ""
5337 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5338 "(and probably others), which is that although the underlying filesystem is "
5339 "case-insensitive, the driver exports the filesystem to Linux as case-"
5340 "sensitive."
5341 msgstr ""
5342
5343 #. type: textblock
5344 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
5345 msgid ""
5346 "One consequence of this is that special directories such as C<c:\\windows> "
5347 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5348 "precise details of how they were created.  In Windows itself this would not "
5349 "be a problem."
5350 msgstr ""
5351
5352 #. type: textblock
5353 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
5354 msgid ""
5355 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5356 "#posixfilenames1>"
5357 msgstr ""
5358
5359 #. type: textblock
5360 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
5361 msgid ""
5362 "This function resolves the true case of each element in the path and returns "
5363 "the case-sensitive path."
5364 msgstr ""
5365
5366 #. type: textblock
5367 #: ../fish/guestfish-actions.pod:601
5368 msgid ""
5369 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
5370 "WINDOWS/system32\"> (the exact return value would depend on details of how "
5371 "the directories were originally created under Windows)."
5372 msgstr ""
5373
5374 #. type: textblock
5375 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
5376 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5377 msgstr ""
5378
5379 #. type: textblock
5380 #: ../fish/guestfish-actions.pod:609
5381 msgid "See also L</realpath>."
5382 msgstr ""
5383
5384 #. type: =head2
5385 #: ../fish/guestfish-actions.pod:611
5386 msgid "cat"
5387 msgstr ""
5388
5389 #. type: verbatim
5390 #: ../fish/guestfish-actions.pod:613
5391 #, no-wrap
5392 msgid ""
5393 " cat path\n"
5394 "\n"
5395 msgstr ""
5396
5397 #. type: textblock
5398 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3864
5399 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5859
5400 msgid "Return the contents of the file named C<path>."
5401 msgstr ""
5402
5403 #. type: textblock
5404 #: ../fish/guestfish-actions.pod:617
5405 msgid ""
5406 "Note that this function cannot correctly handle binary files (specifically, "
5407 "files containing C<\\0> character which is treated as end of string).  For "
5408 "those you need to use the L</read-file> or L</download> functions which have "
5409 "a more complex interface."
5410 msgstr ""
5411
5412 #. type: textblock
5413 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:757
5414 #: ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:945
5415 #: ../fish/guestfish-actions.pod:955 ../fish/guestfish-actions.pod:1022
5416 #: ../fish/guestfish-actions.pod:1032 ../fish/guestfish-actions.pod:1224
5417 #: ../fish/guestfish-actions.pod:1531 ../fish/guestfish-actions.pod:1541
5418 #: ../fish/guestfish-actions.pod:1591 ../fish/guestfish-actions.pod:1606
5419 #: ../fish/guestfish-actions.pod:1616 ../fish/guestfish-actions.pod:1635
5420 #: ../fish/guestfish-actions.pod:3734 ../fish/guestfish-actions.pod:3749
5421 #: ../fish/guestfish-actions.pod:3825 ../fish/guestfish-actions.pod:3842
5422 #: ../fish/guestfish-actions.pod:3857 ../fish/guestfish-actions.pod:4526
5423 #: ../fish/guestfish-actions.pod:4572 ../fish/guestfish-actions.pod:4657
5424 #: ../fish/guestfish-actions.pod:4672 ../fish/guestfish-actions.pod:5078
5425 #: ../fish/guestfish-actions.pod:5090 ../fish/guestfish-actions.pod:5108
5426 #: ../fish/guestfish-actions.pod:5125 ../fish/guestfish-actions.pod:5135
5427 #: ../fish/guestfish-actions.pod:5192 ../fish/guestfish-actions.pod:5202
5428 #: ../fish/guestfish-actions.pod:5231 ../fish/guestfish-actions.pod:5241
5429 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:1127
5430 #: ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1443
5431 #: ../src/guestfs-actions.pod:1462 ../src/guestfs-actions.pod:1565
5432 #: ../src/guestfs-actions.pod:1584 ../src/guestfs-actions.pod:1830
5433 #: ../src/guestfs-actions.pod:2301 ../src/guestfs-actions.pod:2320
5434 #: ../src/guestfs-actions.pod:2385 ../src/guestfs-actions.pod:2409
5435 #: ../src/guestfs-actions.pod:2426 ../src/guestfs-actions.pod:2455
5436 #: ../src/guestfs-actions.pod:5641 ../src/guestfs-actions.pod:5667
5437 #: ../src/guestfs-actions.pod:5798 ../src/guestfs-actions.pod:5824
5438 #: ../src/guestfs-actions.pod:5848 ../src/guestfs-actions.pod:6799
5439 #: ../src/guestfs-actions.pod:6854 ../src/guestfs-actions.pod:7000
5440 #: ../src/guestfs-actions.pod:7024 ../src/guestfs-actions.pod:7689
5441 #: ../src/guestfs-actions.pod:7709 ../src/guestfs-actions.pod:7735
5442 #: ../src/guestfs-actions.pod:7761 ../src/guestfs-actions.pod:7780
5443 #: ../src/guestfs-actions.pod:7874 ../src/guestfs-actions.pod:7893
5444 #: ../src/guestfs-actions.pod:7939 ../src/guestfs-actions.pod:7958
5445 msgid ""
5446 "Because of the message protocol, there is a transfer limit of somewhere "
5447 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5448 msgstr ""
5449
5450 #. type: =head2
5451 #: ../fish/guestfish-actions.pod:625
5452 msgid "checksum"
5453 msgstr ""
5454
5455 #. type: verbatim
5456 #: ../fish/guestfish-actions.pod:627
5457 #, no-wrap
5458 msgid ""
5459 " checksum csumtype path\n"
5460 "\n"
5461 msgstr ""
5462
5463 #. type: textblock
5464 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
5465 msgid ""
5466 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5467 msgstr ""
5468
5469 #. type: textblock
5470 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
5471 msgid ""
5472 "The type of checksum to compute is given by the C<csumtype> parameter which "
5473 "must have one of the following values:"
5474 msgstr ""
5475
5476 #. type: =item
5477 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
5478 msgid "C<crc>"
5479 msgstr ""
5480
5481 #. type: textblock
5482 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
5483 msgid ""
5484 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5485 "C<cksum> command."
5486 msgstr ""
5487
5488 #. type: =item
5489 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
5490 msgid "C<md5>"
5491 msgstr ""
5492
5493 #. type: textblock
5494 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
5495 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5496 msgstr ""
5497
5498 #. type: =item
5499 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
5500 msgid "C<sha1>"
5501 msgstr ""
5502
5503 #. type: textblock
5504 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
5505 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5506 msgstr ""
5507
5508 #. type: =item
5509 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
5510 msgid "C<sha224>"
5511 msgstr ""
5512
5513 #. type: textblock
5514 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
5515 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5516 msgstr ""
5517
5518 #. type: =item
5519 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
5520 msgid "C<sha256>"
5521 msgstr ""
5522
5523 #. type: textblock
5524 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
5525 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5526 msgstr ""
5527
5528 #. type: =item
5529 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
5530 msgid "C<sha384>"
5531 msgstr ""
5532
5533 #. type: textblock
5534 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
5535 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5536 msgstr ""
5537
5538 #. type: =item
5539 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
5540 msgid "C<sha512>"
5541 msgstr ""
5542
5543 #. type: textblock
5544 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
5545 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5546 msgstr ""
5547
5548 #. type: textblock
5549 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
5550 msgid "The checksum is returned as a printable string."
5551 msgstr ""
5552
5553 #. type: textblock
5554 #: ../fish/guestfish-actions.pod:670
5555 msgid "To get the checksum for a device, use L</checksum-device>."
5556 msgstr ""
5557
5558 #. type: textblock
5559 #: ../fish/guestfish-actions.pod:672
5560 msgid "To get the checksums for many files, use L</checksums-out>."
5561 msgstr ""
5562
5563 #. type: =head2
5564 #: ../fish/guestfish-actions.pod:674
5565 msgid "checksum-device"
5566 msgstr ""
5567
5568 #. type: verbatim
5569 #: ../fish/guestfish-actions.pod:676
5570 #, no-wrap
5571 msgid ""
5572 " checksum-device csumtype device\n"
5573 "\n"
5574 msgstr ""
5575
5576 #. type: textblock
5577 #: ../fish/guestfish-actions.pod:678
5578 msgid ""
5579 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5580 "device named C<device>.  For the types of checksums supported see the L</"
5581 "checksum> command."
5582 msgstr ""
5583
5584 #. type: =head2
5585 #: ../fish/guestfish-actions.pod:682
5586 msgid "checksums-out"
5587 msgstr ""
5588
5589 #. type: verbatim
5590 #: ../fish/guestfish-actions.pod:684
5591 #, no-wrap
5592 msgid ""
5593 " checksums-out csumtype directory (sumsfile|-)\n"
5594 "\n"
5595 msgstr ""
5596
5597 #. type: textblock
5598 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
5599 msgid ""
5600 "This command computes the checksums of all regular files in C<directory> and "
5601 "then emits a list of those checksums to the local output file C<sumsfile>."
5602 msgstr ""
5603
5604 #. type: textblock
5605 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
5606 msgid ""
5607 "This can be used for verifying the integrity of a virtual machine.  However "
5608 "to be properly secure you should pay attention to the output of the checksum "
5609 "command (it uses the ones from GNU coreutils).  In particular when the "
5610 "filename is not printable, coreutils uses a special backslash syntax.  For "
5611 "more information, see the GNU coreutils info file."
5612 msgstr ""
5613
5614 #. type: =head2
5615 #: ../fish/guestfish-actions.pod:700
5616 msgid "chmod"
5617 msgstr ""
5618
5619 #. type: verbatim
5620 #: ../fish/guestfish-actions.pod:702
5621 #, no-wrap
5622 msgid ""
5623 " chmod mode path\n"
5624 "\n"
5625 msgstr ""
5626
5627 #. type: textblock
5628 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
5629 msgid ""
5630 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5631 "supported."
5632 msgstr ""
5633
5634 #. type: textblock
5635 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
5636 msgid ""
5637 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5638 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5639 "C<700>."
5640 msgstr ""
5641
5642 #. type: textblock
5643 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3087
5644 #: ../fish/guestfish-actions.pod:3226 ../fish/guestfish-actions.pod:3236
5645 #: ../fish/guestfish-actions.pod:3246 ../src/guestfs-actions.pod:1064
5646 #: ../src/guestfs-actions.pod:4613 ../src/guestfs-actions.pod:4822
5647 #: ../src/guestfs-actions.pod:4841 ../src/guestfs-actions.pod:4860
5648 msgid "The mode actually set is affected by the umask."
5649 msgstr ""
5650
5651 #. type: =head2
5652 #: ../fish/guestfish-actions.pod:713
5653 msgid "chown"
5654 msgstr ""
5655
5656 #. type: verbatim
5657 #: ../fish/guestfish-actions.pod:715
5658 #, no-wrap
5659 msgid ""
5660 " chown owner group path\n"
5661 "\n"
5662 msgstr ""
5663
5664 #. type: textblock
5665 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
5666 msgid "Change the file owner to C<owner> and group to C<group>."
5667 msgstr ""
5668
5669 #. type: textblock
5670 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2522
5671 #: ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3684
5672 msgid ""
5673 "Only numeric uid and gid are supported.  If you want to use names, you will "
5674 "need to locate and parse the password file yourself (Augeas support makes "
5675 "this relatively easy)."
5676 msgstr ""
5677
5678 #. type: =head2
5679 #: ../fish/guestfish-actions.pod:723
5680 msgid "command"
5681 msgstr ""
5682
5683 #. type: verbatim
5684 #: ../fish/guestfish-actions.pod:725
5685 #, no-wrap
5686 msgid ""
5687 " command 'arguments ...'\n"
5688 "\n"
5689 msgstr ""
5690
5691 #. type: textblock
5692 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
5693 msgid ""
5694 "This call runs a command from the guest filesystem.  The filesystem must be "
5695 "mounted, and must contain a compatible operating system (ie. something "
5696 "Linux, with the same or compatible processor architecture)."
5697 msgstr ""
5698
5699 #. type: textblock
5700 #: ../fish/guestfish-actions.pod:732
5701 msgid ""
5702 "The single parameter is an argv-style list of arguments.  The first element "
5703 "is the name of the program to run.  Subsequent elements are parameters.  The "
5704 "list must be non-empty (ie. must contain a program name).  Note that the "
5705 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
5706 msgstr ""
5707
5708 #. type: textblock
5709 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
5710 msgid "The return value is anything printed to I<stdout> by the command."
5711 msgstr ""
5712
5713 #. type: textblock
5714 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
5715 msgid ""
5716 "If the command returns a non-zero exit status, then this function returns an "
5717 "error message.  The error message string is the content of I<stderr> from "
5718 "the command."
5719 msgstr ""
5720
5721 #. type: textblock
5722 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
5723 msgid ""
5724 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
5725 "bin>.  If you require a program from another location, you should provide "
5726 "the full path in the first parameter."
5727 msgstr ""
5728
5729 #. type: textblock
5730 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
5731 msgid ""
5732 "Shared libraries and data files required by the program must be available on "
5733 "filesystems which are mounted in the correct places.  It is the caller's "
5734 "responsibility to ensure all filesystems that are needed are mounted at the "
5735 "right locations."
5736 msgstr ""
5737
5738 #. type: =head2
5739 #: ../fish/guestfish-actions.pod:760
5740 msgid "command-lines"
5741 msgstr ""
5742
5743 #. type: verbatim
5744 #: ../fish/guestfish-actions.pod:762
5745 #, no-wrap
5746 msgid ""
5747 " command-lines 'arguments ...'\n"
5748 "\n"
5749 msgstr ""
5750
5751 #. type: textblock
5752 #: ../fish/guestfish-actions.pod:764
5753 msgid ""
5754 "This is the same as L</command>, but splits the result into a list of lines."
5755 msgstr ""
5756
5757 #. type: textblock
5758 #: ../fish/guestfish-actions.pod:767
5759 msgid "See also: L</sh-lines>"
5760 msgstr ""
5761
5762 #. type: =head2
5763 #: ../fish/guestfish-actions.pod:772
5764 msgid "config"
5765 msgstr ""
5766
5767 #. type: verbatim
5768 #: ../fish/guestfish-actions.pod:774
5769 #, no-wrap
5770 msgid ""
5771 " config qemuparam qemuvalue\n"
5772 "\n"
5773 msgstr ""
5774
5775 #. type: textblock
5776 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1159
5777 msgid ""
5778 "This can be used to add arbitrary qemu command line parameters of the form "
5779 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
5780 "setting some parameters which would interfere with parameters that we use."
5781 msgstr ""
5782
5783 #. type: textblock
5784 #: ../fish/guestfish-actions.pod:781 ../src/guestfs-actions.pod:1164
5785 msgid "The first character of C<param> string must be a C<-> (dash)."
5786 msgstr ""
5787
5788 #. type: textblock
5789 #: ../fish/guestfish-actions.pod:783 ../src/guestfs-actions.pod:1166
5790 msgid "C<value> can be NULL."
5791 msgstr ""
5792
5793 #. type: =head2
5794 #: ../fish/guestfish-actions.pod:785
5795 msgid "copy-size"
5796 msgstr ""
5797
5798 #. type: verbatim
5799 #: ../fish/guestfish-actions.pod:787
5800 #, no-wrap
5801 msgid ""
5802 " copy-size src dest size\n"
5803 "\n"
5804 msgstr ""
5805
5806 #. type: textblock
5807 #: ../fish/guestfish-actions.pod:789 ../src/guestfs-actions.pod:1180
5808 msgid ""
5809 "This command copies exactly C<size> bytes from one source device or file "
5810 "C<src> to another destination device or file C<dest>."
5811 msgstr ""
5812
5813 #. type: textblock
5814 #: ../fish/guestfish-actions.pod:792 ../src/guestfs-actions.pod:1183
5815 msgid ""
5816 "Note this will fail if the source is too short or if the destination is not "
5817 "large enough."
5818 msgstr ""
5819
5820 #. type: =head2
5821 #: ../fish/guestfish-actions.pod:795
5822 msgid "cp"
5823 msgstr ""
5824
5825 #. type: verbatim
5826 #: ../fish/guestfish-actions.pod:797
5827 #, no-wrap
5828 msgid ""
5829 " cp src dest\n"
5830 "\n"
5831 msgstr ""
5832
5833 #. type: textblock
5834 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1202
5835 msgid ""
5836 "This copies a file from C<src> to C<dest> where C<dest> is either a "
5837 "destination filename or destination directory."
5838 msgstr ""
5839
5840 #. type: =head2
5841 #: ../fish/guestfish-actions.pod:802
5842 msgid "cp-a"
5843 msgstr ""
5844
5845 #. type: verbatim
5846 #: ../fish/guestfish-actions.pod:804
5847 #, no-wrap
5848 msgid ""
5849 " cp-a src dest\n"
5850 "\n"
5851 msgstr ""
5852
5853 #. type: textblock
5854 #: ../fish/guestfish-actions.pod:806 ../src/guestfs-actions.pod:1216
5855 msgid ""
5856 "This copies a file or directory from C<src> to C<dest> recursively using the "
5857 "C<cp -a> command."
5858 msgstr ""
5859
5860 #. type: =head2
5861 #: ../fish/guestfish-actions.pod:809
5862 msgid "dd"
5863 msgstr ""
5864
5865 #. type: verbatim
5866 #: ../fish/guestfish-actions.pod:811
5867 #, no-wrap
5868 msgid ""
5869 " dd src dest\n"
5870 "\n"
5871 msgstr ""
5872
5873 #. type: textblock
5874 #: ../fish/guestfish-actions.pod:813 ../src/guestfs-actions.pod:1230
5875 msgid ""
5876 "This command copies from one source device or file C<src> to another "
5877 "destination device or file C<dest>.  Normally you would use this to copy to "
5878 "or from a device or partition, for example to duplicate a filesystem."
5879 msgstr ""
5880
5881 #. type: textblock
5882 #: ../fish/guestfish-actions.pod:818
5883 msgid ""
5884 "If the destination is a device, it must be as large or larger than the "
5885 "source file or device, otherwise the copy will fail.  This command cannot do "
5886 "partial copies (see L</copy-size>)."
5887 msgstr ""
5888
5889 #. type: =head2
5890 #: ../fish/guestfish-actions.pod:822
5891 msgid "df"
5892 msgstr ""
5893
5894 #. type: verbatim
5895 #: ../fish/guestfish-actions.pod:824
5896 #, no-wrap
5897 msgid ""
5898 " df\n"
5899 "\n"
5900 msgstr ""
5901
5902 #. type: textblock
5903 #: ../fish/guestfish-actions.pod:826 ../src/guestfs-actions.pod:1248
5904 msgid "This command runs the C<df> command to report disk space used."
5905 msgstr ""
5906
5907 #. type: textblock
5908 #: ../fish/guestfish-actions.pod:828 ../fish/guestfish-actions.pod:839
5909 msgid ""
5910 "This command is mostly useful for interactive sessions.  It is I<not> "
5911 "intended that you try to parse the output string.  Use L</statvfs> from "
5912 "programs."
5913 msgstr ""
5914
5915 #. type: =head2
5916 #: ../fish/guestfish-actions.pod:832
5917 msgid "df-h"
5918 msgstr ""
5919
5920 #. type: verbatim
5921 #: ../fish/guestfish-actions.pod:834
5922 #, no-wrap
5923 msgid ""
5924 " df-h\n"
5925 "\n"
5926 msgstr ""
5927
5928 #. type: textblock
5929 #: ../fish/guestfish-actions.pod:836 ../src/guestfs-actions.pod:1264
5930 msgid ""
5931 "This command runs the C<df -h> command to report disk space used in human-"
5932 "readable format."
5933 msgstr ""
5934
5935 #. type: =head2
5936 #: ../fish/guestfish-actions.pod:843
5937 msgid "dmesg"
5938 msgstr ""
5939
5940 #. type: verbatim
5941 #: ../fish/guestfish-actions.pod:845
5942 #, no-wrap
5943 msgid ""
5944 " dmesg\n"
5945 "\n"
5946 msgstr ""
5947
5948 #. type: textblock
5949 #: ../fish/guestfish-actions.pod:847 ../src/guestfs-actions.pod:1281
5950 msgid ""
5951 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
5952 "This is sometimes useful for extended debugging of problems."
5953 msgstr ""
5954
5955 #. type: textblock
5956 #: ../fish/guestfish-actions.pod:851
5957 msgid ""
5958 "Another way to get the same information is to enable verbose messages with "
5959 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
5960 "before running the program."
5961 msgstr ""
5962
5963 #. type: =head2
5964 #: ../fish/guestfish-actions.pod:856
5965 msgid "download"
5966 msgstr ""
5967
5968 #. type: verbatim
5969 #: ../fish/guestfish-actions.pod:858
5970 #, no-wrap
5971 msgid ""
5972 " download remotefilename (filename|-)\n"
5973 "\n"
5974 msgstr ""
5975
5976 #. type: textblock
5977 #: ../fish/guestfish-actions.pod:860 ../fish/guestfish-actions.pod:873
5978 #: ../src/guestfs-actions.pod:1302 ../src/guestfs-actions.pod:1327
5979 msgid ""
5980 "Download file C<remotefilename> and save it as C<filename> on the local "
5981 "machine."
5982 msgstr ""
5983
5984 #. type: textblock
5985 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:4830
5986 #: ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:7259
5987 msgid "C<filename> can also be a named pipe."
5988 msgstr ""
5989
5990 #. type: textblock
5991 #: ../fish/guestfish-actions.pod:865
5992 msgid "See also L</upload>, L</cat>."
5993 msgstr ""
5994
5995 #. type: =head2
5996 #: ../fish/guestfish-actions.pod:869
5997 msgid "download-offset"
5998 msgstr ""
5999
6000 #. type: verbatim
6001 #: ../fish/guestfish-actions.pod:871
6002 #, no-wrap
6003 msgid ""
6004 " download-offset remotefilename (filename|-) offset size\n"
6005 "\n"
6006 msgstr ""
6007
6008 #. type: textblock
6009 #: ../fish/guestfish-actions.pod:876 ../src/guestfs-actions.pod:1330
6010 msgid ""
6011 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6012 "region must be within the file or device)."
6013 msgstr ""
6014
6015 #. type: textblock
6016 #: ../fish/guestfish-actions.pod:879
6017 msgid ""
6018 "Note that there is no limit on the amount of data that can be downloaded "
6019 "with this call, unlike with L</pread>, and this call always reads the full "
6020 "amount unless an error occurs."
6021 msgstr ""
6022
6023 #. type: textblock
6024 #: ../fish/guestfish-actions.pod:884
6025 msgid "See also L</download>, L</pread>."
6026 msgstr ""
6027
6028 #. type: =head2
6029 #: ../fish/guestfish-actions.pod:888
6030 msgid "drop-caches"
6031 msgstr ""
6032
6033 #. type: verbatim
6034 #: ../fish/guestfish-actions.pod:890
6035 #, no-wrap
6036 msgid ""
6037 " drop-caches whattodrop\n"
6038 "\n"
6039 msgstr ""
6040
6041 #. type: textblock
6042 #: ../fish/guestfish-actions.pod:892 ../src/guestfs-actions.pod:1355
6043 msgid ""
6044 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6045 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6046 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6047 msgstr ""
6048
6049 #. type: textblock
6050 #: ../fish/guestfish-actions.pod:897 ../src/guestfs-actions.pod:1360
6051 msgid "Setting C<whattodrop> to 3 should drop everything."
6052 msgstr ""
6053
6054 #. type: textblock
6055 #: ../fish/guestfish-actions.pod:899 ../src/guestfs-actions.pod:1362
6056 msgid ""
6057 "This automatically calls L<sync(2)> before the operation, so that the "
6058 "maximum guest memory is freed."
6059 msgstr ""
6060
6061 #. type: =head2
6062 #: ../fish/guestfish-actions.pod:902
6063 msgid "du"
6064 msgstr ""
6065
6066 #. type: verbatim
6067 #: ../fish/guestfish-actions.pod:904
6068 #, no-wrap
6069 msgid ""
6070 " du path\n"
6071 "\n"
6072 msgstr ""
6073
6074 #. type: textblock
6075 #: ../fish/guestfish-actions.pod:906 ../src/guestfs-actions.pod:1375
6076 msgid ""
6077 "This command runs the C<du -s> command to estimate file space usage for "
6078 "C<path>."
6079 msgstr ""
6080
6081 #. type: textblock
6082 #: ../fish/guestfish-actions.pod:909 ../src/guestfs-actions.pod:1378
6083 msgid ""
6084 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6085 "estimate includes the contents of the directory and all subdirectories "
6086 "(recursively)."
6087 msgstr ""
6088
6089 #. type: textblock
6090 #: ../fish/guestfish-actions.pod:913 ../src/guestfs-actions.pod:1382
6091 msgid ""
6092 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6093 msgstr ""
6094
6095 #. type: =head2
6096 #: ../fish/guestfish-actions.pod:916
6097 msgid "e2fsck-f"
6098 msgstr ""
6099
6100 #. type: verbatim
6101 #: ../fish/guestfish-actions.pod:918
6102 #, no-wrap
6103 msgid ""
6104 " e2fsck-f device\n"
6105 "\n"
6106 msgstr ""
6107
6108 #. type: textblock
6109 #: ../fish/guestfish-actions.pod:920 ../src/guestfs-actions.pod:1400
6110 msgid ""
6111 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6112 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
6113 "clean (I<-f>)."
6114 msgstr ""
6115
6116 #. type: textblock
6117 #: ../fish/guestfish-actions.pod:924
6118 msgid ""
6119 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
6120 "should use L</fsck>."
6121 msgstr ""
6122
6123 #. type: =head2
6124 #: ../fish/guestfish-actions.pod:927
6125 msgid "echo-daemon"
6126 msgstr ""
6127
6128 #. type: verbatim
6129 #: ../fish/guestfish-actions.pod:929
6130 #, no-wrap
6131 msgid ""
6132 " echo-daemon 'words ...'\n"
6133 "\n"
6134 msgstr ""
6135
6136 #. type: textblock
6137 #: ../fish/guestfish-actions.pod:931 ../src/guestfs-actions.pod:1417
6138 msgid ""
6139 "This command concatenates the list of C<words> passed with single spaces "
6140 "between them and returns the resulting string."
6141 msgstr ""
6142
6143 #. type: textblock
6144 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1420
6145 msgid "You can use this command to test the connection through to the daemon."
6146 msgstr ""
6147
6148 #. type: textblock
6149 #: ../fish/guestfish-actions.pod:936
6150 msgid "See also L</ping-daemon>."
6151 msgstr ""
6152
6153 #. type: =head2
6154 #: ../fish/guestfish-actions.pod:938
6155 msgid "egrep"
6156 msgstr ""
6157
6158 #. type: verbatim
6159 #: ../fish/guestfish-actions.pod:940
6160 #, no-wrap
6161 msgid ""
6162 " egrep regex path\n"
6163 "\n"
6164 msgstr ""
6165
6166 #. type: textblock
6167 #: ../fish/guestfish-actions.pod:942 ../src/guestfs-actions.pod:1436
6168 msgid ""
6169 "This calls the external C<egrep> program and returns the matching lines."
6170 msgstr ""
6171
6172 #. type: =head2
6173 #: ../fish/guestfish-actions.pod:948
6174 msgid "egrepi"
6175 msgstr ""
6176
6177 #. type: verbatim
6178 #: ../fish/guestfish-actions.pod:950
6179 #, no-wrap
6180 msgid ""
6181 " egrepi regex path\n"
6182 "\n"
6183 msgstr ""
6184
6185 #. type: textblock
6186 #: ../fish/guestfish-actions.pod:952 ../src/guestfs-actions.pod:1455
6187 msgid ""
6188 "This calls the external C<egrep -i> program and returns the matching lines."
6189 msgstr ""
6190
6191 #. type: =head2
6192 #: ../fish/guestfish-actions.pod:958
6193 msgid "equal"
6194 msgstr ""
6195
6196 #. type: verbatim
6197 #: ../fish/guestfish-actions.pod:960
6198 #, no-wrap
6199 msgid ""
6200 " equal file1 file2\n"
6201 "\n"
6202 msgstr ""
6203
6204 #. type: textblock
6205 #: ../fish/guestfish-actions.pod:962 ../src/guestfs-actions.pod:1474
6206 msgid ""
6207 "This compares the two files C<file1> and C<file2> and returns true if their "
6208 "content is exactly equal, or false otherwise."
6209 msgstr ""
6210
6211 #. type: textblock
6212 #: ../fish/guestfish-actions.pod:965 ../src/guestfs-actions.pod:1477
6213 msgid "The external L<cmp(1)> program is used for the comparison."
6214 msgstr ""
6215
6216 #. type: =head2
6217 #: ../fish/guestfish-actions.pod:967
6218 msgid "exists"
6219 msgstr ""
6220
6221 #. type: verbatim
6222 #: ../fish/guestfish-actions.pod:969
6223 #, no-wrap
6224 msgid ""
6225 " exists path\n"
6226 "\n"
6227 msgstr ""
6228
6229 #. type: textblock
6230 #: ../fish/guestfish-actions.pod:971 ../src/guestfs-actions.pod:1489
6231 msgid ""
6232 "This returns C<true> if and only if there is a file, directory (or anything) "
6233 "with the given C<path> name."
6234 msgstr ""
6235
6236 #. type: textblock
6237 #: ../fish/guestfish-actions.pod:974
6238 msgid "See also L</is-file>, L</is-dir>, L</stat>."
6239 msgstr ""
6240
6241 #. type: =head2
6242 #: ../fish/guestfish-actions.pod:976
6243 msgid "fallocate"
6244 msgstr ""
6245
6246 #. type: verbatim
6247 #: ../fish/guestfish-actions.pod:978
6248 #, no-wrap
6249 msgid ""
6250 " fallocate path len\n"
6251 "\n"
6252 msgstr ""
6253
6254 #. type: textblock
6255 #: ../fish/guestfish-actions.pod:980 ../fish/guestfish-actions.pod:999
6256 #: ../src/guestfs-actions.pod:1505 ../src/guestfs-actions.pod:1531
6257 msgid ""
6258 "This command preallocates a file (containing zero bytes) named C<path> of "
6259 "size C<len> bytes.  If the file exists already, it is overwritten."
6260 msgstr ""
6261
6262 #. type: textblock
6263 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1509
6264 msgid ""
6265 "Do not confuse this with the guestfish-specific C<alloc> command which "
6266 "allocates a file in the host and attaches it as a device."
6267 msgstr ""
6268
6269 #. type: textblock
6270 #: ../fish/guestfish-actions.pod:988
6271 msgid ""
6272 "This function is deprecated.  In new code, use the L</fallocate64> call "
6273 "instead."
6274 msgstr ""
6275
6276 #. type: =head2
6277 #: ../fish/guestfish-actions.pod:995
6278 msgid "fallocate64"
6279 msgstr ""
6280
6281 #. type: verbatim
6282 #: ../fish/guestfish-actions.pod:997
6283 #, no-wrap
6284 msgid ""
6285 " fallocate64 path len\n"
6286 "\n"
6287 msgstr ""
6288
6289 #. type: textblock
6290 #: ../fish/guestfish-actions.pod:1003
6291 msgid ""
6292 "Note that this call allocates disk blocks for the file.  To create a sparse "
6293 "file use L</truncate-size> instead."
6294 msgstr ""
6295
6296 #. type: textblock
6297 #: ../fish/guestfish-actions.pod:1006
6298 msgid ""
6299 "The deprecated call L</fallocate> does the same, but owing to an oversight "
6300 "it only allowed 30 bit lengths to be specified, effectively limiting the "
6301 "maximum size of files created through that call to 1GB."
6302 msgstr ""
6303
6304 #. type: textblock
6305 #: ../fish/guestfish-actions.pod:1011 ../src/guestfs-actions.pod:1543
6306 msgid ""
6307 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6308 "commands which create a file in the host and attach it as a device."
6309 msgstr ""
6310
6311 #. type: =head2
6312 #: ../fish/guestfish-actions.pod:1015
6313 msgid "fgrep"
6314 msgstr ""
6315
6316 #. type: verbatim
6317 #: ../fish/guestfish-actions.pod:1017
6318 #, no-wrap
6319 msgid ""
6320 " fgrep pattern path\n"
6321 "\n"
6322 msgstr ""
6323
6324 #. type: textblock
6325 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1558
6326 msgid ""
6327 "This calls the external C<fgrep> program and returns the matching lines."
6328 msgstr ""
6329
6330 #. type: =head2
6331 #: ../fish/guestfish-actions.pod:1025
6332 msgid "fgrepi"
6333 msgstr ""
6334
6335 #. type: verbatim
6336 #: ../fish/guestfish-actions.pod:1027
6337 #, no-wrap
6338 msgid ""
6339 " fgrepi pattern path\n"
6340 "\n"
6341 msgstr ""
6342
6343 #. type: textblock
6344 #: ../fish/guestfish-actions.pod:1029 ../src/guestfs-actions.pod:1577
6345 msgid ""
6346 "This calls the external C<fgrep -i> program and returns the matching lines."
6347 msgstr ""
6348
6349 #. type: =head2
6350 #: ../fish/guestfish-actions.pod:1035
6351 msgid "file"
6352 msgstr ""
6353
6354 #. type: verbatim
6355 #: ../fish/guestfish-actions.pod:1037
6356 #, no-wrap
6357 msgid ""
6358 " file path\n"
6359 "\n"
6360 msgstr ""
6361
6362 #. type: textblock
6363 #: ../fish/guestfish-actions.pod:1039 ../src/guestfs-actions.pod:1595
6364 msgid ""
6365 "This call uses the standard L<file(1)> command to determine the type or "
6366 "contents of the file."
6367 msgstr ""
6368
6369 #. type: textblock
6370 #: ../fish/guestfish-actions.pod:1042 ../src/guestfs-actions.pod:1598
6371 msgid ""
6372 "This call will also transparently look inside various types of compressed "
6373 "file."
6374 msgstr ""
6375
6376 #. type: textblock
6377 #: ../fish/guestfish-actions.pod:1045 ../src/guestfs-actions.pod:1601
6378 msgid ""
6379 "The exact command which runs is C<file -zb path>.  Note in particular that "
6380 "the filename is not prepended to the output (the I<-b> option)."
6381 msgstr ""
6382
6383 #. type: textblock
6384 #: ../fish/guestfish-actions.pod:1049 ../src/guestfs-actions.pod:1605
6385 msgid ""
6386 "The output depends on the output of the underlying L<file(1)> command and it "
6387 "can change in future in ways beyond our control.  In other words, the output "
6388 "is not guaranteed by the ABI."
6389 msgstr ""
6390
6391 #. type: textblock
6392 #: ../fish/guestfish-actions.pod:1053
6393 msgid ""
6394 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
6395 "(etc), L</is-zero>."
6396 msgstr ""
6397
6398 #. type: =head2
6399 #: ../fish/guestfish-actions.pod:1056
6400 msgid "file-architecture"
6401 msgstr ""
6402
6403 #. type: verbatim
6404 #: ../fish/guestfish-actions.pod:1058
6405 #, no-wrap
6406 msgid ""
6407 " file-architecture filename\n"
6408 "\n"
6409 msgstr ""
6410
6411 #. type: textblock
6412 #: ../fish/guestfish-actions.pod:1060 ../src/guestfs-actions.pod:1623
6413 msgid ""
6414 "This detects the architecture of the binary C<filename>, and returns it if "
6415 "known."
6416 msgstr ""
6417
6418 #. type: textblock
6419 #: ../fish/guestfish-actions.pod:1063 ../src/guestfs-actions.pod:1626
6420 msgid "Currently defined architectures are:"
6421 msgstr ""
6422
6423 #. type: =item
6424 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1630
6425 msgid "\"i386\""
6426 msgstr ""
6427
6428 #. type: textblock
6429 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1632
6430 msgid ""
6431 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6432 "irrespective of the precise processor requirements of the binary."
6433 msgstr ""
6434
6435 #. type: =item
6436 #: ../fish/guestfish-actions.pod:1072 ../src/guestfs-actions.pod:1635
6437 msgid "\"x86_64\""
6438 msgstr ""
6439
6440 #. type: textblock
6441 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1637
6442 msgid "64 bit x86-64."
6443 msgstr ""
6444
6445 #. type: =item
6446 #: ../fish/guestfish-actions.pod:1076 ../src/guestfs-actions.pod:1639
6447 msgid "\"sparc\""
6448 msgstr ""
6449
6450 #. type: textblock
6451 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1641
6452 msgid "32 bit SPARC."
6453 msgstr ""
6454
6455 #. type: =item
6456 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1643
6457 msgid "\"sparc64\""
6458 msgstr ""
6459
6460 #. type: textblock
6461 #: ../fish/guestfish-actions.pod:1082 ../src/guestfs-actions.pod:1645
6462 msgid "64 bit SPARC V9 and above."
6463 msgstr ""
6464
6465 #. type: =item
6466 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1647
6467 msgid "\"ia64\""
6468 msgstr ""
6469
6470 #. type: textblock
6471 #: ../fish/guestfish-actions.pod:1086 ../src/guestfs-actions.pod:1649
6472 msgid "Intel Itanium."
6473 msgstr ""
6474
6475 #. type: =item
6476 #: ../fish/guestfish-actions.pod:1088 ../src/guestfs-actions.pod:1651
6477 msgid "\"ppc\""
6478 msgstr ""
6479
6480 #. type: textblock
6481 #: ../fish/guestfish-actions.pod:1090 ../src/guestfs-actions.pod:1653
6482 msgid "32 bit Power PC."
6483 msgstr ""
6484
6485 #. type: =item
6486 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1655
6487 msgid "\"ppc64\""
6488 msgstr ""
6489
6490 #. type: textblock
6491 #: ../fish/guestfish-actions.pod:1094 ../src/guestfs-actions.pod:1657
6492 msgid "64 bit Power PC."
6493 msgstr ""
6494
6495 #. type: textblock
6496 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1661
6497 msgid "Libguestfs may return other architecture strings in future."
6498 msgstr ""
6499
6500 #. type: textblock
6501 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1663
6502 msgid "The function works on at least the following types of files:"
6503 msgstr ""
6504
6505 #. type: textblock
6506 #: ../fish/guestfish-actions.pod:1106 ../src/guestfs-actions.pod:1669
6507 msgid "many types of Un*x and Linux binary"
6508 msgstr ""
6509
6510 #. type: textblock
6511 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1673
6512 msgid "many types of Un*x and Linux shared library"
6513 msgstr ""
6514
6515 #. type: textblock
6516 #: ../fish/guestfish-actions.pod:1114 ../src/guestfs-actions.pod:1677
6517 msgid "Windows Win32 and Win64 binaries"
6518 msgstr ""
6519
6520 #. type: textblock
6521 #: ../fish/guestfish-actions.pod:1118 ../src/guestfs-actions.pod:1681
6522 msgid "Windows Win32 and Win64 DLLs"
6523 msgstr ""
6524
6525 #. type: textblock
6526 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1683
6527 msgid "Win32 binaries and DLLs return C<i386>."
6528 msgstr ""
6529
6530 #. type: textblock
6531 #: ../fish/guestfish-actions.pod:1122 ../src/guestfs-actions.pod:1685
6532 msgid "Win64 binaries and DLLs return C<x86_64>."
6533 msgstr ""
6534
6535 #. type: textblock
6536 #: ../fish/guestfish-actions.pod:1126 ../src/guestfs-actions.pod:1689
6537 msgid "Linux kernel modules"
6538 msgstr ""
6539
6540 #. type: textblock
6541 #: ../fish/guestfish-actions.pod:1130 ../src/guestfs-actions.pod:1693
6542 msgid "Linux new-style initrd images"
6543 msgstr ""
6544
6545 #. type: textblock
6546 #: ../fish/guestfish-actions.pod:1134 ../src/guestfs-actions.pod:1697
6547 msgid "some non-x86 Linux vmlinuz kernels"
6548 msgstr ""
6549
6550 #. type: textblock
6551 #: ../fish/guestfish-actions.pod:1138 ../src/guestfs-actions.pod:1701
6552 msgid "What it can't do currently:"
6553 msgstr ""
6554
6555 #. type: textblock
6556 #: ../fish/guestfish-actions.pod:1144 ../src/guestfs-actions.pod:1707
6557 msgid "static libraries (libfoo.a)"
6558 msgstr ""
6559
6560 #. type: textblock
6561 #: ../fish/guestfish-actions.pod:1148 ../src/guestfs-actions.pod:1711
6562 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6563 msgstr ""
6564
6565 #. type: textblock
6566 #: ../fish/guestfish-actions.pod:1152 ../src/guestfs-actions.pod:1715
6567 msgid "x86 Linux vmlinuz kernels"
6568 msgstr ""
6569
6570 #. type: textblock
6571 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1717
6572 msgid ""
6573 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6574 "compressed code, and are horribly hard to unpack.  If you want to find the "
6575 "architecture of a kernel, use the architecture of the associated initrd or "
6576 "kernel module(s) instead."
6577 msgstr ""
6578
6579 #. type: =head2
6580 #: ../fish/guestfish-actions.pod:1161
6581 msgid "filesize"
6582 msgstr ""
6583
6584 #. type: verbatim
6585 #: ../fish/guestfish-actions.pod:1163
6586 #, no-wrap
6587 msgid ""
6588 " filesize file\n"
6589 "\n"
6590 msgstr ""
6591
6592 #. type: textblock
6593 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1735
6594 msgid "This command returns the size of C<file> in bytes."
6595 msgstr ""
6596
6597 #. type: textblock
6598 #: ../fish/guestfish-actions.pod:1167
6599 msgid ""
6600 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
6601 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
6602 msgstr ""
6603
6604 #. type: =head2
6605 #: ../fish/guestfish-actions.pod:1171
6606 msgid "fill"
6607 msgstr ""
6608
6609 #. type: verbatim
6610 #: ../fish/guestfish-actions.pod:1173
6611 #, no-wrap
6612 msgid ""
6613 " fill c len path\n"
6614 "\n"
6615 msgstr ""
6616
6617 #. type: textblock
6618 #: ../fish/guestfish-actions.pod:1175 ../src/guestfs-actions.pod:1753
6619 msgid ""
6620 "This command creates a new file called C<path>.  The initial content of the "
6621 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
6622 "[0..255]>."
6623 msgstr ""
6624
6625 #. type: textblock
6626 #: ../fish/guestfish-actions.pod:1179
6627 msgid ""
6628 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6629 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
6630 "L</fill-pattern>."
6631 msgstr ""
6632
6633 #. type: =head2
6634 #: ../fish/guestfish-actions.pod:1184
6635 msgid "fill-pattern"
6636 msgstr ""
6637
6638 #. type: verbatim
6639 #: ../fish/guestfish-actions.pod:1186
6640 #, no-wrap
6641 msgid ""
6642 " fill-pattern pattern len path\n"
6643 "\n"
6644 msgstr ""
6645
6646 #. type: textblock
6647 #: ../fish/guestfish-actions.pod:1188
6648 msgid ""
6649 "This function is like L</fill> except that it creates a new file of length "
6650 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
6651 "is truncated if necessary to ensure the length of the file is exactly C<len> "
6652 "bytes."
6653 msgstr ""
6654
6655 #. type: =head2
6656 #: ../fish/guestfish-actions.pod:1193
6657 msgid "find"
6658 msgstr ""
6659
6660 #. type: verbatim
6661 #: ../fish/guestfish-actions.pod:1195
6662 #, no-wrap
6663 msgid ""
6664 " find directory\n"
6665 "\n"
6666 msgstr ""
6667
6668 #. type: textblock
6669 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:1799
6670 msgid ""
6671 "This command lists out all files and directories, recursively, starting at "
6672 "C<directory>.  It is essentially equivalent to running the shell command "
6673 "C<find directory -print> but some post-processing happens on the output, "
6674 "described below."
6675 msgstr ""
6676
6677 #. type: textblock
6678 #: ../fish/guestfish-actions.pod:1202 ../src/guestfs-actions.pod:1804
6679 msgid ""
6680 "This returns a list of strings I<without any prefix>.  Thus if the directory "
6681 "structure was:"
6682 msgstr ""
6683
6684 #. type: verbatim
6685 #: ../fish/guestfish-actions.pod:1205 ../src/guestfs-actions.pod:1807
6686 #, no-wrap
6687 msgid ""
6688 " /tmp/a\n"
6689 " /tmp/b\n"
6690 " /tmp/c/d\n"
6691 "\n"
6692 msgstr ""
6693
6694 #. type: textblock
6695 #: ../fish/guestfish-actions.pod:1209
6696 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
6697 msgstr ""
6698
6699 #. type: verbatim
6700 #: ../fish/guestfish-actions.pod:1212 ../src/guestfs-actions.pod:1814
6701 #, no-wrap
6702 msgid ""
6703 " a\n"
6704 " b\n"
6705 " c\n"
6706 " c/d\n"
6707 "\n"
6708 msgstr ""
6709
6710 #. type: textblock
6711 #: ../fish/guestfish-actions.pod:1217 ../src/guestfs-actions.pod:1819
6712 msgid "If C<directory> is not a directory, then this command returns an error."
6713 msgstr ""
6714
6715 #. type: textblock
6716 #: ../fish/guestfish-actions.pod:1220 ../src/guestfs-actions.pod:1822
6717 msgid "The returned list is sorted."
6718 msgstr ""
6719
6720 #. type: textblock
6721 #: ../fish/guestfish-actions.pod:1222
6722 msgid "See also L</find0>."
6723 msgstr ""
6724
6725 #. type: =head2
6726 #: ../fish/guestfish-actions.pod:1227
6727 msgid "find0"
6728 msgstr ""
6729
6730 #. type: verbatim
6731 #: ../fish/guestfish-actions.pod:1229
6732 #, no-wrap
6733 msgid ""
6734 " find0 directory (files|-)\n"
6735 "\n"
6736 msgstr ""
6737
6738 #. type: textblock
6739 #: ../fish/guestfish-actions.pod:1231 ../src/guestfs-actions.pod:1842
6740 msgid ""
6741 "This command lists out all files and directories, recursively, starting at "
6742 "C<directory>, placing the resulting list in the external file called "
6743 "C<files>."
6744 msgstr ""
6745
6746 #. type: textblock
6747 #: ../fish/guestfish-actions.pod:1235
6748 msgid ""
6749 "This command works the same way as L</find> with the following exceptions:"
6750 msgstr ""
6751
6752 #. type: textblock
6753 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:1853
6754 msgid "The resulting list is written to an external file."
6755 msgstr ""
6756
6757 #. type: textblock
6758 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:1857
6759 msgid ""
6760 "Items (filenames) in the result are separated by C<\\0> characters.  See "
6761 "L<find(1)> option I<-print0>."
6762 msgstr ""
6763
6764 #. type: textblock
6765 #: ../fish/guestfish-actions.pod:1251 ../src/guestfs-actions.pod:1862
6766 msgid "This command is not limited in the number of names that it can return."
6767 msgstr ""
6768
6769 #. type: textblock
6770 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:1867
6771 msgid "The result list is not sorted."
6772 msgstr ""
6773
6774 #. type: =head2
6775 #: ../fish/guestfish-actions.pod:1262
6776 msgid "findfs-label"
6777 msgstr ""
6778
6779 #. type: verbatim
6780 #: ../fish/guestfish-actions.pod:1264
6781 #, no-wrap
6782 msgid ""
6783 " findfs-label label\n"
6784 "\n"
6785 msgstr ""
6786
6787 #. type: textblock
6788 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1881
6789 msgid ""
6790 "This command searches the filesystems and returns the one which has the "
6791 "given label.  An error is returned if no such filesystem can be found."
6792 msgstr ""
6793
6794 #. type: textblock
6795 #: ../fish/guestfish-actions.pod:1270
6796 msgid "To find the label of a filesystem, use L</vfs-label>."
6797 msgstr ""
6798
6799 #. type: =head2
6800 #: ../fish/guestfish-actions.pod:1272
6801 msgid "findfs-uuid"
6802 msgstr ""
6803
6804 #. type: verbatim
6805 #: ../fish/guestfish-actions.pod:1274
6806 #, no-wrap
6807 msgid ""
6808 " findfs-uuid uuid\n"
6809 "\n"
6810 msgstr ""
6811
6812 #. type: textblock
6813 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:1898
6814 msgid ""
6815 "This command searches the filesystems and returns the one which has the "
6816 "given UUID.  An error is returned if no such filesystem can be found."
6817 msgstr ""
6818
6819 #. type: textblock
6820 #: ../fish/guestfish-actions.pod:1280
6821 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
6822 msgstr ""
6823
6824 #. type: =head2
6825 #: ../fish/guestfish-actions.pod:1282
6826 msgid "fsck"
6827 msgstr ""
6828
6829 #. type: verbatim
6830 #: ../fish/guestfish-actions.pod:1284
6831 #, no-wrap
6832 msgid ""
6833 " fsck fstype device\n"
6834 "\n"
6835 msgstr ""
6836
6837 #. type: textblock
6838 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1916
6839 msgid ""
6840 "This runs the filesystem checker (fsck) on C<device> which should have "
6841 "filesystem type C<fstype>."
6842 msgstr ""
6843
6844 #. type: textblock
6845 #: ../fish/guestfish-actions.pod:1289 ../src/guestfs-actions.pod:1919
6846 msgid ""
6847 "The returned integer is the status.  See L<fsck(8)> for the list of status "
6848 "codes from C<fsck>."
6849 msgstr ""
6850
6851 #. type: textblock
6852 #: ../fish/guestfish-actions.pod:1298 ../src/guestfs-actions.pod:1928
6853 msgid "Multiple status codes can be summed together."
6854 msgstr ""
6855
6856 #. type: textblock
6857 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:1932
6858 msgid ""
6859 "A non-zero return code can mean \"success\", for example if errors have been "
6860 "corrected on the filesystem."
6861 msgstr ""
6862
6863 #. type: textblock
6864 #: ../fish/guestfish-actions.pod:1307 ../src/guestfs-actions.pod:1937
6865 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
6866 msgstr ""
6867
6868 #. type: textblock
6869 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:1942
6870 msgid ""
6871 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
6872 msgstr ""
6873
6874 #. type: =head2
6875 #: ../fish/guestfish-actions.pod:1314
6876 msgid "get-append"
6877 msgstr ""
6878
6879 #. type: verbatim
6880 #: ../fish/guestfish-actions.pod:1316
6881 #, no-wrap
6882 msgid ""
6883 " get-append\n"
6884 "\n"
6885 msgstr ""
6886
6887 #. type: textblock
6888 #: ../fish/guestfish-actions.pod:1318 ../src/guestfs-actions.pod:1953
6889 msgid ""
6890 "Return the additional kernel options which are added to the guest kernel "
6891 "command line."
6892 msgstr ""
6893
6894 #. type: textblock
6895 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:1956
6896 msgid "If C<NULL> then no options are added."
6897 msgstr ""
6898
6899 #. type: =head2
6900 #: ../fish/guestfish-actions.pod:1323
6901 msgid "get-attach-method"
6902 msgstr ""
6903
6904 #. type: verbatim
6905 #: ../fish/guestfish-actions.pod:1325
6906 #, no-wrap
6907 msgid ""
6908 " get-attach-method\n"
6909 "\n"
6910 msgstr ""
6911
6912 #. type: textblock
6913 #: ../fish/guestfish-actions.pod:1327
6914 msgid "Return the current attach method.  See L</set-attach-method>."
6915 msgstr ""
6916
6917 #. type: =head2
6918 #: ../fish/guestfish-actions.pod:1329
6919 msgid "get-autosync"
6920 msgstr ""
6921
6922 #. type: verbatim
6923 #: ../fish/guestfish-actions.pod:1331
6924 #, no-wrap
6925 msgid ""
6926 " get-autosync\n"
6927 "\n"
6928 msgstr ""
6929
6930 #. type: textblock
6931 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:1981
6932 msgid "Get the autosync flag."
6933 msgstr ""
6934
6935 #. type: =head2
6936 #: ../fish/guestfish-actions.pod:1335
6937 msgid "get-direct"
6938 msgstr ""
6939
6940 #. type: verbatim
6941 #: ../fish/guestfish-actions.pod:1337
6942 #, no-wrap
6943 msgid ""
6944 " get-direct\n"
6945 "\n"
6946 msgstr ""
6947
6948 #. type: textblock
6949 #: ../fish/guestfish-actions.pod:1339 ../src/guestfs-actions.pod:1992
6950 msgid "Return the direct appliance mode flag."
6951 msgstr ""
6952
6953 #. type: =head2
6954 #: ../fish/guestfish-actions.pod:1341
6955 msgid "get-e2label"
6956 msgstr ""
6957
6958 #. type: verbatim
6959 #: ../fish/guestfish-actions.pod:1343
6960 #, no-wrap
6961 msgid ""
6962 " get-e2label device\n"
6963 "\n"
6964 msgstr ""
6965
6966 #. type: textblock
6967 #: ../fish/guestfish-actions.pod:1345 ../src/guestfs-actions.pod:2004
6968 msgid ""
6969 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
6970 msgstr ""
6971
6972 #. type: textblock
6973 #: ../fish/guestfish-actions.pod:1348
6974 msgid ""
6975 "This function is deprecated.  In new code, use the L</vfs_label> call "
6976 "instead."
6977 msgstr ""
6978
6979 #. type: =head2
6980 #: ../fish/guestfish-actions.pod:1355
6981 msgid "get-e2uuid"
6982 msgstr ""
6983
6984 #. type: verbatim
6985 #: ../fish/guestfish-actions.pod:1357
6986 #, no-wrap
6987 msgid ""
6988 " get-e2uuid device\n"
6989 "\n"
6990 msgstr ""
6991
6992 #. type: textblock
6993 #: ../fish/guestfish-actions.pod:1359 ../src/guestfs-actions.pod:2025
6994 msgid ""
6995 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
6996 msgstr ""
6997
6998 #. type: textblock
6999 #: ../fish/guestfish-actions.pod:1362
7000 msgid ""
7001 "This function is deprecated.  In new code, use the L</vfs_uuid> call instead."
7002 msgstr ""
7003
7004 #. type: =head2
7005 #: ../fish/guestfish-actions.pod:1369
7006 msgid "get-memsize"
7007 msgstr ""
7008
7009 #. type: verbatim
7010 #: ../fish/guestfish-actions.pod:1371
7011 #, no-wrap
7012 msgid ""
7013 " get-memsize\n"
7014 "\n"
7015 msgstr ""
7016
7017 #. type: textblock
7018 #: ../fish/guestfish-actions.pod:1373 ../src/guestfs-actions.pod:2045
7019 msgid ""
7020 "This gets the memory size in megabytes allocated to the qemu subprocess."
7021 msgstr ""
7022
7023 #. type: textblock
7024 #: ../fish/guestfish-actions.pod:1376
7025 msgid ""
7026 "If L</set-memsize> was not called on this handle, and if "
7027 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7028 "value for memsize."
7029 msgstr ""
7030
7031 #. type: textblock
7032 #: ../fish/guestfish-actions.pod:1380 ../fish/guestfish-actions.pod:1437
7033 #: ../fish/guestfish-actions.pod:4190 ../fish/guestfish-actions.pod:4292
7034 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2144
7035 #: ../src/guestfs-actions.pod:6320 ../src/guestfs-actions.pod:6446
7036 msgid ""
7037 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7038 msgstr ""
7039
7040 #. type: =head2
7041 #: ../fish/guestfish-actions.pod:1383
7042 msgid "get-network"
7043 msgstr ""
7044
7045 #. type: verbatim
7046 #: ../fish/guestfish-actions.pod:1385
7047 #, no-wrap
7048 msgid ""
7049 " get-network\n"
7050 "\n"
7051 msgstr ""
7052
7053 #. type: textblock
7054 #: ../fish/guestfish-actions.pod:1387 ../src/guestfs-actions.pod:2064
7055 msgid "This returns the enable network flag."
7056 msgstr ""
7057
7058 #. type: =head2
7059 #: ../fish/guestfish-actions.pod:1389
7060 msgid "get-path"
7061 msgstr ""
7062
7063 #. type: verbatim
7064 #: ../fish/guestfish-actions.pod:1391
7065 #, no-wrap
7066 msgid ""
7067 " get-path\n"
7068 "\n"
7069 msgstr ""
7070
7071 #. type: textblock
7072 #: ../fish/guestfish-actions.pod:1393 ../src/guestfs-actions.pod:2075
7073 msgid "Return the current search path."
7074 msgstr ""
7075
7076 #. type: textblock
7077 #: ../fish/guestfish-actions.pod:1395 ../src/guestfs-actions.pod:2077
7078 msgid ""
7079 "This is always non-NULL.  If it wasn't set already, then this will return "
7080 "the default path."
7081 msgstr ""
7082
7083 #. type: =head2
7084 #: ../fish/guestfish-actions.pod:1398
7085 msgid "get-pgroup"
7086 msgstr ""
7087
7088 #. type: verbatim
7089 #: ../fish/guestfish-actions.pod:1400
7090 #, no-wrap
7091 msgid ""
7092 " get-pgroup\n"
7093 "\n"
7094 msgstr ""
7095
7096 #. type: textblock
7097 #: ../fish/guestfish-actions.pod:1402 ../src/guestfs-actions.pod:2090
7098 msgid "This returns the process group flag."
7099 msgstr ""
7100
7101 #. type: =head2
7102 #: ../fish/guestfish-actions.pod:1404
7103 msgid "get-pid"
7104 msgstr ""
7105
7106 #. type: =head2
7107 #: ../fish/guestfish-actions.pod:1406
7108 msgid "pid"
7109 msgstr ""
7110
7111 #. type: verbatim
7112 #: ../fish/guestfish-actions.pod:1408
7113 #, no-wrap
7114 msgid ""
7115 " get-pid\n"
7116 "\n"
7117 msgstr ""
7118
7119 #. type: textblock
7120 #: ../fish/guestfish-actions.pod:1410 ../src/guestfs-actions.pod:2101
7121 msgid ""
7122 "Return the process ID of the qemu subprocess.  If there is no qemu "
7123 "subprocess, then this will return an error."
7124 msgstr ""
7125
7126 #. type: textblock
7127 #: ../fish/guestfish-actions.pod:1413 ../src/guestfs-actions.pod:2104
7128 msgid "This is an internal call used for debugging and testing."
7129 msgstr ""
7130
7131 #. type: =head2
7132 #: ../fish/guestfish-actions.pod:1415
7133 msgid "get-qemu"
7134 msgstr ""
7135
7136 #. type: verbatim
7137 #: ../fish/guestfish-actions.pod:1417
7138 #, no-wrap
7139 msgid ""
7140 " get-qemu\n"
7141 "\n"
7142 msgstr ""
7143
7144 #. type: textblock
7145 #: ../fish/guestfish-actions.pod:1419 ../src/guestfs-actions.pod:2115
7146 msgid "Return the current qemu binary."
7147 msgstr ""
7148
7149 #. type: textblock
7150 #: ../fish/guestfish-actions.pod:1421 ../src/guestfs-actions.pod:2117
7151 msgid ""
7152 "This is always non-NULL.  If it wasn't set already, then this will return "
7153 "the default qemu binary name."
7154 msgstr ""
7155
7156 #. type: =head2
7157 #: ../fish/guestfish-actions.pod:1424
7158 msgid "get-recovery-proc"
7159 msgstr ""
7160
7161 #. type: verbatim
7162 #: ../fish/guestfish-actions.pod:1426
7163 #, no-wrap
7164 msgid ""
7165 " get-recovery-proc\n"
7166 "\n"
7167 msgstr ""
7168
7169 #. type: textblock
7170 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2130
7171 msgid "Return the recovery process enabled flag."
7172 msgstr ""
7173
7174 #. type: =head2
7175 #: ../fish/guestfish-actions.pod:1430
7176 msgid "get-selinux"
7177 msgstr ""
7178
7179 #. type: verbatim
7180 #: ../fish/guestfish-actions.pod:1432
7181 #, no-wrap
7182 msgid ""
7183 " get-selinux\n"
7184 "\n"
7185 msgstr ""
7186
7187 #. type: textblock
7188 #: ../fish/guestfish-actions.pod:1434
7189 msgid ""
7190 "This returns the current setting of the selinux flag which is passed to the "
7191 "appliance at boot time.  See L</set-selinux>."
7192 msgstr ""
7193
7194 #. type: =head2
7195 #: ../fish/guestfish-actions.pod:1440
7196 msgid "get-state"
7197 msgstr ""
7198
7199 #. type: verbatim
7200 #: ../fish/guestfish-actions.pod:1442
7201 #, no-wrap
7202 msgid ""
7203 " get-state\n"
7204 "\n"
7205 msgstr ""
7206
7207 #. type: textblock
7208 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2156
7209 msgid ""
7210 "This returns the current state as an opaque integer.  This is only useful "
7211 "for printing debug and internal error messages."
7212 msgstr ""
7213
7214 #. type: textblock
7215 #: ../fish/guestfish-actions.pod:1447 ../fish/guestfish-actions.pod:2389
7216 #: ../fish/guestfish-actions.pod:2407 ../fish/guestfish-actions.pod:2445
7217 #: ../fish/guestfish-actions.pod:2461 ../src/guestfs-actions.pod:2159
7218 #: ../src/guestfs-actions.pod:3461 ../src/guestfs-actions.pod:3490
7219 #: ../src/guestfs-actions.pod:3551 ../src/guestfs-actions.pod:3578
7220 msgid "For more information on states, see L<guestfs(3)>."
7221 msgstr ""
7222
7223 #. type: =head2
7224 #: ../fish/guestfish-actions.pod:1449
7225 msgid "get-trace"
7226 msgstr ""
7227
7228 #. type: verbatim
7229 #: ../fish/guestfish-actions.pod:1451
7230 #, no-wrap
7231 msgid ""
7232 " get-trace\n"
7233 "\n"
7234 msgstr ""
7235
7236 #. type: textblock
7237 #: ../fish/guestfish-actions.pod:1453 ../src/guestfs-actions.pod:2170
7238 msgid "Return the command trace flag."
7239 msgstr ""
7240
7241 #. type: =head2
7242 #: ../fish/guestfish-actions.pod:1455
7243 msgid "get-umask"
7244 msgstr ""
7245
7246 #. type: verbatim
7247 #: ../fish/guestfish-actions.pod:1457
7248 #, no-wrap
7249 msgid ""
7250 " get-umask\n"
7251 "\n"
7252 msgstr ""
7253
7254 #. type: textblock
7255 #: ../fish/guestfish-actions.pod:1459
7256 msgid ""
7257 "Return the current umask.  By default the umask is C<022> unless it has been "
7258 "set by calling L</umask>."
7259 msgstr ""
7260
7261 #. type: =head2
7262 #: ../fish/guestfish-actions.pod:1462
7263 msgid "get-verbose"
7264 msgstr ""
7265
7266 #. type: verbatim
7267 #: ../fish/guestfish-actions.pod:1464
7268 #, no-wrap
7269 msgid ""
7270 " get-verbose\n"
7271 "\n"
7272 msgstr ""
7273
7274 #. type: textblock
7275 #: ../fish/guestfish-actions.pod:1466 ../src/guestfs-actions.pod:2193
7276 msgid "This returns the verbose messages flag."
7277 msgstr ""
7278
7279 #. type: =head2
7280 #: ../fish/guestfish-actions.pod:1468
7281 msgid "getcon"
7282 msgstr ""
7283
7284 #. type: verbatim
7285 #: ../fish/guestfish-actions.pod:1470
7286 #, no-wrap
7287 msgid ""
7288 " getcon\n"
7289 "\n"
7290 msgstr ""
7291
7292 #. type: textblock
7293 #: ../fish/guestfish-actions.pod:1472 ../src/guestfs-actions.pod:2204
7294 msgid "This gets the SELinux security context of the daemon."
7295 msgstr ""
7296
7297 #. type: textblock
7298 #: ../fish/guestfish-actions.pod:1474
7299 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
7300 msgstr ""
7301
7302 #. type: =head2
7303 #: ../fish/guestfish-actions.pod:1477
7304 msgid "getxattr"
7305 msgstr ""
7306
7307 #. type: verbatim
7308 #: ../fish/guestfish-actions.pod:1479
7309 #, no-wrap
7310 msgid ""
7311 " getxattr path name\n"
7312 "\n"
7313 msgstr ""
7314
7315 #. type: textblock
7316 #: ../fish/guestfish-actions.pod:1481
7317 msgid ""
7318 "Get a single extended attribute from file C<path> named C<name>.  This call "
7319 "follows symlinks.  If you want to lookup an extended attribute for the "
7320 "symlink itself, use L</lgetxattr>."
7321 msgstr ""
7322
7323 #. type: textblock
7324 #: ../fish/guestfish-actions.pod:1485 ../fish/guestfish-actions.pod:2534
7325 msgid ""
7326 "Normally it is better to get all extended attributes from a file in one go "
7327 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
7328 "buggy and do not provide a way to list out attributes.  For these "
7329 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
7330 "attributes you want in advance and call this function."
7331 msgstr ""
7332
7333 #. type: textblock
7334 #: ../fish/guestfish-actions.pod:1492 ../fish/guestfish-actions.pod:2541
7335 #: ../src/guestfs-actions.pod:2233 ../src/guestfs-actions.pod:3711
7336 msgid ""
7337 "Extended attribute values are blobs of binary data.  If there is no extended "
7338 "attribute named C<name>, this returns an error."
7339 msgstr ""
7340
7341 #. type: textblock
7342 #: ../fish/guestfish-actions.pod:1495
7343 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7344 msgstr ""
7345
7346 #. type: =head2
7347 #: ../fish/guestfish-actions.pod:1497
7348 msgid "getxattrs"
7349 msgstr ""
7350
7351 #. type: verbatim
7352 #: ../fish/guestfish-actions.pod:1499
7353 #, no-wrap
7354 msgid ""
7355 " getxattrs path\n"
7356 "\n"
7357 msgstr ""
7358
7359 #. type: textblock
7360 #: ../fish/guestfish-actions.pod:1501 ../src/guestfs-actions.pod:2250
7361 msgid ""
7362 "This call lists the extended attributes of the file or directory C<path>."
7363 msgstr ""
7364
7365 #. type: textblock
7366 #: ../fish/guestfish-actions.pod:1504 ../src/guestfs-actions.pod:2253
7367 msgid ""
7368 "At the system call level, this is a combination of the L<listxattr(2)> and "
7369 "L<getxattr(2)> calls."
7370 msgstr ""
7371
7372 #. type: textblock
7373 #: ../fish/guestfish-actions.pod:1507
7374 msgid "See also: L</lgetxattrs>, L<attr(5)>."
7375 msgstr ""
7376
7377 #. type: =head2
7378 #: ../fish/guestfish-actions.pod:1509
7379 msgid "glob-expand"
7380 msgstr ""
7381
7382 #. type: verbatim
7383 #: ../fish/guestfish-actions.pod:1511
7384 #, no-wrap
7385 msgid ""
7386 " glob-expand pattern\n"
7387 "\n"
7388 msgstr ""
7389
7390 #. type: textblock
7391 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2270
7392 msgid ""
7393 "This command searches for all the pathnames matching C<pattern> according to "
7394 "the wildcard expansion rules used by the shell."
7395 msgstr ""
7396
7397 #. type: textblock
7398 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2274
7399 msgid ""
7400 "If no paths match, then this returns an empty list (note: not an error)."
7401 msgstr ""
7402
7403 #. type: textblock
7404 #: ../fish/guestfish-actions.pod:1520 ../src/guestfs-actions.pod:2277
7405 msgid ""
7406 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
7407 "GLOB_BRACE>.  See that manual page for more details."
7408 msgstr ""
7409
7410 #. type: =head2
7411 #: ../fish/guestfish-actions.pod:1524
7412 msgid "grep"
7413 msgstr ""
7414
7415 #. type: verbatim
7416 #: ../fish/guestfish-actions.pod:1526
7417 #, no-wrap
7418 msgid ""
7419 " grep regex path\n"
7420 "\n"
7421 msgstr ""
7422
7423 #. type: textblock
7424 #: ../fish/guestfish-actions.pod:1528 ../src/guestfs-actions.pod:2294
7425 msgid "This calls the external C<grep> program and returns the matching lines."
7426 msgstr ""
7427
7428 #. type: =head2
7429 #: ../fish/guestfish-actions.pod:1534
7430 msgid "grepi"
7431 msgstr ""
7432
7433 #. type: verbatim
7434 #: ../fish/guestfish-actions.pod:1536
7435 #, no-wrap
7436 msgid ""
7437 " grepi regex path\n"
7438 "\n"
7439 msgstr ""
7440
7441 #. type: textblock
7442 #: ../fish/guestfish-actions.pod:1538 ../src/guestfs-actions.pod:2313
7443 msgid ""
7444 "This calls the external C<grep -i> program and returns the matching lines."
7445 msgstr ""
7446
7447 #. type: =head2
7448 #: ../fish/guestfish-actions.pod:1544
7449 msgid "grub-install"
7450 msgstr ""
7451
7452 #. type: verbatim
7453 #: ../fish/guestfish-actions.pod:1546
7454 #, no-wrap
7455 msgid ""
7456 " grub-install root device\n"
7457 "\n"
7458 msgstr ""
7459
7460 #. type: textblock
7461 #: ../fish/guestfish-actions.pod:1548 ../src/guestfs-actions.pod:2332
7462 msgid ""
7463 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
7464 "with the root directory being C<root>."
7465 msgstr ""
7466
7467 #. type: textblock
7468 #: ../fish/guestfish-actions.pod:1557 ../src/guestfs-actions.pod:2341
7469 msgid ""
7470 "There is currently no way in the API to install grub2, which is used by most "
7471 "modern Linux guests.  It is possible to run the grub2 command from the "
7472 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
7473 msgstr ""
7474
7475 #. type: textblock
7476 #: ../fish/guestfish-actions.pod:1564 ../src/guestfs-actions.pod:2348
7477 msgid ""
7478 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
7479 "compatible with itself, so this only works in rather narrow circumstances.  "
7480 "Careful testing with each guest version is advisable."
7481 msgstr ""
7482
7483 #. type: textblock
7484 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2355
7485 msgid ""
7486 "If grub-install reports the error \"No suitable drive was found in the "
7487 "generated device map.\" it may be that you need to create a C</boot/grub/"
7488 "device.map> file first that contains the mapping between grub device names "
7489 "and Linux device names.  It is usually sufficient to create a file "
7490 "containing:"
7491 msgstr ""
7492
7493 #. type: verbatim
7494 #: ../fish/guestfish-actions.pod:1578 ../src/guestfs-actions.pod:2362
7495 #, no-wrap
7496 msgid ""
7497 " (hd0) /dev/vda\n"
7498 "\n"
7499 msgstr ""
7500
7501 #. type: textblock
7502 #: ../fish/guestfish-actions.pod:1580 ../src/guestfs-actions.pod:2364
7503 msgid "replacing C</dev/vda> with the name of the installation device."
7504 msgstr ""
7505
7506 #. type: =head2
7507 #: ../fish/guestfish-actions.pod:1584
7508 msgid "head"
7509 msgstr ""
7510
7511 #. type: verbatim
7512 #: ../fish/guestfish-actions.pod:1586
7513 #, no-wrap
7514 msgid ""
7515 " head path\n"
7516 "\n"
7517 msgstr ""
7518
7519 #. type: textblock
7520 #: ../fish/guestfish-actions.pod:1588 ../src/guestfs-actions.pod:2378
7521 msgid ""
7522 "This command returns up to the first 10 lines of a file as a list of strings."
7523 msgstr ""
7524
7525 #. type: =head2
7526 #: ../fish/guestfish-actions.pod:1594
7527 msgid "head-n"
7528 msgstr ""
7529
7530 #. type: verbatim
7531 #: ../fish/guestfish-actions.pod:1596
7532 #, no-wrap
7533 msgid ""
7534 " head-n nrlines path\n"
7535 "\n"
7536 msgstr ""
7537
7538 #. type: textblock
7539 #: ../fish/guestfish-actions.pod:1598 ../src/guestfs-actions.pod:2397
7540 msgid ""
7541 "If the parameter C<nrlines> is a positive number, this returns the first "
7542 "C<nrlines> lines of the file C<path>."
7543 msgstr ""
7544
7545 #. type: textblock
7546 #: ../fish/guestfish-actions.pod:1601 ../src/guestfs-actions.pod:2400
7547 msgid ""
7548 "If the parameter C<nrlines> is a negative number, this returns lines from "
7549 "the file C<path>, excluding the last C<nrlines> lines."
7550 msgstr ""
7551
7552 #. type: textblock
7553 #: ../fish/guestfish-actions.pod:1604 ../fish/guestfish-actions.pod:4670
7554 #: ../src/guestfs-actions.pod:2403 ../src/guestfs-actions.pod:7018
7555 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7556 msgstr ""
7557
7558 #. type: =head2
7559 #: ../fish/guestfish-actions.pod:1609
7560 msgid "hexdump"
7561 msgstr ""
7562
7563 #. type: verbatim
7564 #: ../fish/guestfish-actions.pod:1611
7565 #, no-wrap
7566 msgid ""
7567 " hexdump path\n"
7568 "\n"
7569 msgstr ""
7570
7571 #. type: textblock
7572 #: ../fish/guestfish-actions.pod:1613 ../src/guestfs-actions.pod:2420
7573 msgid ""
7574 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
7575 "readable, canonical hex dump of the file."
7576 msgstr ""
7577
7578 #. type: =head2
7579 #: ../fish/guestfish-actions.pod:1619
7580 msgid "initrd-cat"
7581 msgstr ""
7582
7583 #. type: verbatim
7584 #: ../fish/guestfish-actions.pod:1621
7585 #, no-wrap
7586 msgid ""
7587 " initrd-cat initrdpath filename\n"
7588 "\n"
7589 msgstr ""
7590
7591 #. type: textblock
7592 #: ../fish/guestfish-actions.pod:1623 ../src/guestfs-actions.pod:2439
7593 msgid ""
7594 "This command unpacks the file C<filename> from the initrd file called "
7595 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7596 "character."
7597 msgstr ""
7598
7599 #. type: textblock
7600 #: ../fish/guestfish-actions.pod:1627 ../src/guestfs-actions.pod:2443
7601 msgid ""
7602 "For example, in guestfish you could use the following command to examine the "
7603 "boot script (usually called C</init>)  contained in a Linux initrd or "
7604 "initramfs image:"
7605 msgstr ""
7606
7607 #. type: verbatim
7608 #: ../fish/guestfish-actions.pod:1631 ../src/guestfs-actions.pod:2447
7609 #, no-wrap
7610 msgid ""
7611 " initrd-cat /boot/initrd-<version>.img init\n"
7612 "\n"
7613 msgstr ""
7614
7615 #. type: textblock
7616 #: ../fish/guestfish-actions.pod:1633
7617 msgid "See also L</initrd-list>."
7618 msgstr ""
7619
7620 #. type: =head2
7621 #: ../fish/guestfish-actions.pod:1638
7622 msgid "initrd-list"
7623 msgstr ""
7624
7625 #. type: verbatim
7626 #: ../fish/guestfish-actions.pod:1640
7627 #, no-wrap
7628 msgid ""
7629 " initrd-list path\n"
7630 "\n"
7631 msgstr ""
7632
7633 #. type: textblock
7634 #: ../fish/guestfish-actions.pod:1642 ../src/guestfs-actions.pod:2466
7635 msgid "This command lists out files contained in an initrd."
7636 msgstr ""
7637
7638 #. type: textblock
7639 #: ../fish/guestfish-actions.pod:1644 ../src/guestfs-actions.pod:2468
7640 msgid ""
7641 "The files are listed without any initial C</> character.  The files are "
7642 "listed in the order they appear (not necessarily alphabetical).  Directory "
7643 "names are listed as separate items."
7644 msgstr ""
7645
7646 #. type: textblock
7647 #: ../fish/guestfish-actions.pod:1648 ../src/guestfs-actions.pod:2472
7648 msgid ""
7649 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
7650 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
7651 "files)."
7652 msgstr ""
7653
7654 #. type: =head2
7655 #: ../fish/guestfish-actions.pod:1652
7656 msgid "inotify-add-watch"
7657 msgstr ""
7658
7659 #. type: verbatim
7660 #: ../fish/guestfish-actions.pod:1654
7661 #, no-wrap
7662 msgid ""
7663 " inotify-add-watch path mask\n"
7664 "\n"
7665 msgstr ""
7666
7667 #. type: textblock
7668 #: ../fish/guestfish-actions.pod:1656 ../src/guestfs-actions.pod:2489
7669 msgid "Watch C<path> for the events listed in C<mask>."
7670 msgstr ""
7671
7672 #. type: textblock
7673 #: ../fish/guestfish-actions.pod:1658 ../src/guestfs-actions.pod:2491
7674 msgid ""
7675 "Note that if C<path> is a directory then events within that directory are "
7676 "watched, but this does I<not> happen recursively (in subdirectories)."
7677 msgstr ""
7678
7679 #. type: textblock
7680 #: ../fish/guestfish-actions.pod:1662 ../src/guestfs-actions.pod:2495
7681 msgid ""
7682 "Note for non-C or non-Linux callers: the inotify events are defined by the "
7683 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
7684 msgstr ""
7685
7686 #. type: =head2
7687 #: ../fish/guestfish-actions.pod:1666
7688 msgid "inotify-close"
7689 msgstr ""
7690
7691 #. type: verbatim
7692 #: ../fish/guestfish-actions.pod:1668
7693 #, no-wrap
7694 msgid ""
7695 " inotify-close\n"
7696 "\n"
7697 msgstr ""
7698
7699 #. type: textblock
7700 #: ../fish/guestfish-actions.pod:1670 ../src/guestfs-actions.pod:2508
7701 msgid ""
7702 "This closes the inotify handle which was previously opened by inotify_init.  "
7703 "It removes all watches, throws away any pending events, and deallocates all "
7704 "resources."
7705 msgstr ""
7706
7707 #. type: =head2
7708 #: ../fish/guestfish-actions.pod:1674
7709 msgid "inotify-files"
7710 msgstr ""
7711
7712 #. type: verbatim
7713 #: ../fish/guestfish-actions.pod:1676
7714 #, no-wrap
7715 msgid ""
7716 " inotify-files\n"
7717 "\n"
7718 msgstr ""
7719
7720 #. type: textblock
7721 #: ../fish/guestfish-actions.pod:1678
7722 msgid ""
7723 "This function is a helpful wrapper around L</inotify-read> which just "
7724 "returns a list of pathnames of objects that were touched.  The returned "
7725 "pathnames are sorted and deduplicated."
7726 msgstr ""
7727
7728 #. type: =head2
7729 #: ../fish/guestfish-actions.pod:1682
7730 msgid "inotify-init"
7731 msgstr ""
7732
7733 #. type: verbatim
7734 #: ../fish/guestfish-actions.pod:1684
7735 #, no-wrap
7736 msgid ""
7737 " inotify-init maxevents\n"
7738 "\n"
7739 msgstr ""
7740
7741 #. type: textblock
7742 #: ../fish/guestfish-actions.pod:1686 ../src/guestfs-actions.pod:2537
7743 msgid ""
7744 "This command creates a new inotify handle.  The inotify subsystem can be "
7745 "used to notify events which happen to objects in the guest filesystem."
7746 msgstr ""
7747
7748 #. type: textblock
7749 #: ../fish/guestfish-actions.pod:1690
7750 msgid ""
7751 "C<maxevents> is the maximum number of events which will be queued up between "
7752 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
7753 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
7754 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
7755 "but records the fact that it threw them away by setting a flag "
7756 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
7757 msgstr ""
7758
7759 #. type: textblock
7760 #: ../fish/guestfish-actions.pod:1700
7761 msgid ""
7762 "Before any events are generated, you have to add some watches to the "
7763 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
7764 "L</inotify-watch-all>."
7765 msgstr ""
7766
7767 #. type: textblock
7768 #: ../fish/guestfish-actions.pod:1706
7769 msgid ""
7770 "Queued up events should be read periodically by calling L</inotify-read> (or "
7771 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
7772 "If you don't read the events out often enough then you risk the internal "
7773 "queue overflowing."
7774 msgstr ""
7775
7776 #. type: textblock
7777 #: ../fish/guestfish-actions.pod:1713
7778 msgid ""
7779 "The handle should be closed after use by calling L</inotify-close>.  This "
7780 "also removes any watches automatically."
7781 msgstr ""
7782
7783 #. type: textblock
7784 #: ../fish/guestfish-actions.pod:1717 ../src/guestfs-actions.pod:2568
7785 msgid ""
7786 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
7787 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
7788 "that there is one global inotify handle per libguestfs instance."
7789 msgstr ""
7790
7791 #. type: =head2
7792 #: ../fish/guestfish-actions.pod:1722
7793 msgid "inotify-read"
7794 msgstr ""
7795
7796 #. type: verbatim
7797 #: ../fish/guestfish-actions.pod:1724
7798 #, no-wrap
7799 msgid ""
7800 " inotify-read\n"
7801 "\n"
7802 msgstr ""
7803
7804 #. type: textblock
7805 #: ../fish/guestfish-actions.pod:1726 ../src/guestfs-actions.pod:2582
7806 msgid ""
7807 "Return the complete queue of events that have happened since the previous "
7808 "read call."
7809 msgstr ""
7810
7811 #. type: textblock
7812 #: ../fish/guestfish-actions.pod:1729 ../src/guestfs-actions.pod:2585
7813 msgid "If no events have happened, this returns an empty list."
7814 msgstr ""
7815
7816 #. type: textblock
7817 #: ../fish/guestfish-actions.pod:1731 ../src/guestfs-actions.pod:2587
7818 msgid ""
7819 "I<Note>: In order to make sure that all events have been read, you must call "
7820 "this function repeatedly until it returns an empty list.  The reason is that "
7821 "the call will read events up to the maximum appliance-to-host message size "
7822 "and leave remaining events in the queue."
7823 msgstr ""
7824
7825 #. type: =head2
7826 #: ../fish/guestfish-actions.pod:1737
7827 msgid "inotify-rm-watch"
7828 msgstr ""
7829
7830 #. type: verbatim
7831 #: ../fish/guestfish-actions.pod:1739
7832 #, no-wrap
7833 msgid ""
7834 " inotify-rm-watch wd\n"
7835 "\n"
7836 msgstr ""
7837
7838 #. type: textblock
7839 #: ../fish/guestfish-actions.pod:1741
7840 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
7841 msgstr ""
7842
7843 #. type: =head2
7844 #: ../fish/guestfish-actions.pod:1744
7845 msgid "inspect-get-arch"
7846 msgstr ""
7847
7848 #. type: verbatim
7849 #: ../fish/guestfish-actions.pod:1746
7850 #, no-wrap
7851 msgid ""
7852 " inspect-get-arch root\n"
7853 "\n"
7854 msgstr ""
7855
7856 #. type: textblock
7857 #: ../fish/guestfish-actions.pod:1748
7858 msgid ""
7859 "This returns the architecture of the inspected operating system.  The "
7860 "possible return values are listed under L</file-architecture>."
7861 msgstr ""
7862
7863 #. type: textblock
7864 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2622
7865 msgid ""
7866 "If the architecture could not be determined, then the string C<unknown> is "
7867 "returned."
7868 msgstr ""
7869
7870 #. type: textblock
7871 #: ../fish/guestfish-actions.pod:1755 ../fish/guestfish-actions.pod:1838
7872 #: ../fish/guestfish-actions.pod:1917 ../fish/guestfish-actions.pod:1929
7873 #: ../fish/guestfish-actions.pod:2013 ../fish/guestfish-actions.pod:2074
7874 #: ../fish/guestfish-actions.pod:2095 ../fish/guestfish-actions.pod:2109
7875 #: ../fish/guestfish-actions.pod:2149 ../fish/guestfish-actions.pod:2181
7876 #: ../fish/guestfish-actions.pod:2194 ../fish/guestfish-actions.pod:2207
7877 #: ../fish/guestfish-actions.pod:2217 ../fish/guestfish-actions.pod:2227
7878 #: ../fish/guestfish-actions.pod:2239 ../fish/guestfish-actions.pod:2335
7879 #: ../fish/guestfish-actions.pod:2369 ../src/guestfs-actions.pod:2625
7880 #: ../src/guestfs-actions.pod:2715 ../src/guestfs-actions.pod:2819
7881 #: ../src/guestfs-actions.pod:2838 ../src/guestfs-actions.pod:2969
7882 #: ../src/guestfs-actions.pod:3052 ../src/guestfs-actions.pod:3080
7883 #: ../src/guestfs-actions.pod:3101 ../src/guestfs-actions.pod:3154
7884 #: ../src/guestfs-actions.pod:3194 ../src/guestfs-actions.pod:3214
7885 #: ../src/guestfs-actions.pod:3234 ../src/guestfs-actions.pod:3251
7886 #: ../src/guestfs-actions.pod:3267 ../src/guestfs-actions.pod:3285
7887 #: ../src/guestfs-actions.pod:3387 ../src/guestfs-actions.pod:3428
7888 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
7889 msgstr ""
7890
7891 #. type: =head2
7892 #: ../fish/guestfish-actions.pod:1757
7893 msgid "inspect-get-distro"
7894 msgstr ""
7895
7896 #. type: verbatim
7897 #: ../fish/guestfish-actions.pod:1759
7898 #, no-wrap
7899 msgid ""
7900 " inspect-get-distro root\n"
7901 "\n"
7902 msgstr ""
7903
7904 #. type: textblock
7905 #: ../fish/guestfish-actions.pod:1761 ../src/guestfs-actions.pod:2638
7906 msgid ""
7907 "This returns the distro (distribution) of the inspected operating system."
7908 msgstr ""
7909
7910 #. type: textblock
7911 #: ../fish/guestfish-actions.pod:1764 ../src/guestfs-actions.pod:2641
7912 msgid "Currently defined distros are:"
7913 msgstr ""
7914
7915 #. type: =item
7916 #: ../fish/guestfish-actions.pod:1768 ../src/guestfs-actions.pod:2645
7917 msgid "\"archlinux\""
7918 msgstr ""
7919
7920 #. type: textblock
7921 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2647
7922 msgid "Arch Linux."
7923 msgstr ""
7924
7925 #. type: =item
7926 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2649
7927 msgid "\"centos\""
7928 msgstr ""
7929
7930 #. type: textblock
7931 #: ../fish/guestfish-actions.pod:1774 ../src/guestfs-actions.pod:2651
7932 msgid "CentOS."
7933 msgstr ""
7934
7935 #. type: =item
7936 #: ../fish/guestfish-actions.pod:1776 ../src/guestfs-actions.pod:2653
7937 msgid "\"debian\""
7938 msgstr ""
7939
7940 #. type: textblock
7941 #: ../fish/guestfish-actions.pod:1778 ../src/guestfs-actions.pod:2655
7942 msgid "Debian."
7943 msgstr ""
7944
7945 #. type: =item
7946 #: ../fish/guestfish-actions.pod:1780 ../src/guestfs-actions.pod:2657
7947 msgid "\"fedora\""
7948 msgstr ""
7949
7950 #. type: textblock
7951 #: ../fish/guestfish-actions.pod:1782 ../src/guestfs-actions.pod:2659
7952 msgid "Fedora."
7953 msgstr ""
7954
7955 #. type: =item
7956 #: ../fish/guestfish-actions.pod:1784 ../src/guestfs-actions.pod:2661
7957 msgid "\"gentoo\""
7958 msgstr ""
7959
7960 #. type: textblock
7961 #: ../fish/guestfish-actions.pod:1786 ../src/guestfs-actions.pod:2663
7962 msgid "Gentoo."
7963 msgstr ""
7964
7965 #. type: =item
7966 #: ../fish/guestfish-actions.pod:1788 ../src/guestfs-actions.pod:2665
7967 msgid "\"linuxmint\""
7968 msgstr ""
7969
7970 #. type: textblock
7971 #: ../fish/guestfish-actions.pod:1790 ../src/guestfs-actions.pod:2667
7972 msgid "Linux Mint."
7973 msgstr ""
7974
7975 #. type: =item
7976 #: ../fish/guestfish-actions.pod:1792 ../src/guestfs-actions.pod:2669
7977 msgid "\"mandriva\""
7978 msgstr ""
7979
7980 #. type: textblock
7981 #: ../fish/guestfish-actions.pod:1794 ../src/guestfs-actions.pod:2671
7982 msgid "Mandriva."
7983 msgstr ""
7984
7985 #. type: =item
7986 #: ../fish/guestfish-actions.pod:1796 ../src/guestfs-actions.pod:2673
7987 msgid "\"meego\""
7988 msgstr ""
7989
7990 #. type: textblock
7991 #: ../fish/guestfish-actions.pod:1798 ../src/guestfs-actions.pod:2675
7992 msgid "MeeGo."
7993 msgstr ""
7994
7995 #. type: =item
7996 #: ../fish/guestfish-actions.pod:1800 ../src/guestfs-actions.pod:2677
7997 msgid "\"pardus\""
7998 msgstr ""
7999
8000 #. type: textblock
8001 #: ../fish/guestfish-actions.pod:1802 ../src/guestfs-actions.pod:2679
8002 msgid "Pardus."
8003 msgstr ""
8004
8005 #. type: =item
8006 #: ../fish/guestfish-actions.pod:1804 ../src/guestfs-actions.pod:2681
8007 msgid "\"redhat-based\""
8008 msgstr ""
8009
8010 #. type: textblock
8011 #: ../fish/guestfish-actions.pod:1806 ../src/guestfs-actions.pod:2683
8012 msgid "Some Red Hat-derived distro."
8013 msgstr ""
8014
8015 #. type: =item
8016 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2685
8017 msgid "\"rhel\""
8018 msgstr ""
8019
8020 #. type: textblock
8021 #: ../fish/guestfish-actions.pod:1810 ../src/guestfs-actions.pod:2687
8022 msgid "Red Hat Enterprise Linux."
8023 msgstr ""
8024
8025 #. type: =item
8026 #: ../fish/guestfish-actions.pod:1812 ../src/guestfs-actions.pod:2689
8027 msgid "\"scientificlinux\""
8028 msgstr ""
8029
8030 #. type: textblock
8031 #: ../fish/guestfish-actions.pod:1814 ../src/guestfs-actions.pod:2691
8032 msgid "Scientific Linux."
8033 msgstr ""
8034
8035 #. type: =item
8036 #: ../fish/guestfish-actions.pod:1816 ../src/guestfs-actions.pod:2693
8037 msgid "\"slackware\""
8038 msgstr ""
8039
8040 #. type: textblock
8041 #: ../fish/guestfish-actions.pod:1818 ../src/guestfs-actions.pod:2695
8042 msgid "Slackware."
8043 msgstr ""
8044
8045 #. type: =item
8046 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2697
8047 msgid "\"ubuntu\""
8048 msgstr ""
8049
8050 #. type: textblock
8051 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2699
8052 msgid "Ubuntu."
8053 msgstr ""
8054
8055 #. type: =item
8056 #: ../fish/guestfish-actions.pod:1824 ../fish/guestfish-actions.pod:1908
8057 #: ../fish/guestfish-actions.pod:2172 ../src/guestfs-actions.pod:2701
8058 #: ../src/guestfs-actions.pod:2810 ../src/guestfs-actions.pod:3185
8059 msgid "\"unknown\""
8060 msgstr ""
8061
8062 #. type: textblock
8063 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2703
8064 msgid "The distro could not be determined."
8065 msgstr ""
8066
8067 #. type: =item
8068 #: ../fish/guestfish-actions.pod:1828 ../fish/guestfish-actions.pod:2164
8069 #: ../src/guestfs-actions.pod:2705 ../src/guestfs-actions.pod:3177
8070 msgid "\"windows\""
8071 msgstr ""
8072
8073 #. type: textblock
8074 #: ../fish/guestfish-actions.pod:1830 ../src/guestfs-actions.pod:2707
8075 msgid ""
8076 "Windows does not have distributions.  This string is returned if the OS type "
8077 "is Windows."
8078 msgstr ""
8079
8080 #. type: textblock
8081 #: ../fish/guestfish-actions.pod:1835 ../fish/guestfish-actions.pod:1914
8082 #: ../fish/guestfish-actions.pod:2178 ../src/guestfs-actions.pod:2712
8083 #: ../src/guestfs-actions.pod:2816 ../src/guestfs-actions.pod:3191
8084 msgid ""
8085 "Future versions of libguestfs may return other strings here.  The caller "
8086 "should be prepared to handle any string."
8087 msgstr ""
8088
8089 #. type: =head2
8090 #: ../fish/guestfish-actions.pod:1840
8091 msgid "inspect-get-drive-mappings"
8092 msgstr ""
8093
8094 #. type: verbatim
8095 #: ../fish/guestfish-actions.pod:1842
8096 #, no-wrap
8097 msgid ""
8098 " inspect-get-drive-mappings root\n"
8099 "\n"
8100 msgstr ""
8101
8102 #. type: textblock
8103 #: ../fish/guestfish-actions.pod:1844 ../src/guestfs-actions.pod:2728
8104 msgid ""
8105 "This call is useful for Windows which uses a primitive system of assigning "
8106 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
8107 "Windows Registry to find out how disks/partitions are mapped to drive "
8108 "letters, and returns a hash table as in the example below:"
8109 msgstr ""
8110
8111 #. type: verbatim
8112 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2734
8113 #, no-wrap
8114 msgid ""
8115 " C      =>     /dev/vda2\n"
8116 " E      =>     /dev/vdb1\n"
8117 " F      =>     /dev/vdc1\n"
8118 "\n"
8119 msgstr ""
8120
8121 #. type: textblock
8122 #: ../fish/guestfish-actions.pod:1854 ../src/guestfs-actions.pod:2738
8123 msgid ""
8124 "Note that keys are drive letters.  For Windows, the key is case insensitive "
8125 "and just contains the drive letter, without the customary colon separator "
8126 "character."
8127 msgstr ""
8128
8129 #. type: textblock
8130 #: ../fish/guestfish-actions.pod:1858 ../src/guestfs-actions.pod:2742
8131 msgid ""
8132 "In future we may support other operating systems that also used drive "
8133 "letters, but the keys for those might not be case insensitive and might be "
8134 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
8135 "C<h1> etc."
8136 msgstr ""
8137
8138 #. type: textblock
8139 #: ../fish/guestfish-actions.pod:1863 ../src/guestfs-actions.pod:2747
8140 msgid ""
8141 "For Windows guests, currently only hard drive mappings are returned.  "
8142 "Removable disks (eg. DVD-ROMs) are ignored."
8143 msgstr ""
8144
8145 #. type: textblock
8146 #: ../fish/guestfish-actions.pod:1866 ../src/guestfs-actions.pod:2750
8147 msgid ""
8148 "For guests that do not use drive mappings, or if the drive mappings could "
8149 "not be determined, this returns an empty hash table."
8150 msgstr ""
8151
8152 #. type: textblock
8153 #: ../fish/guestfish-actions.pod:1869
8154 msgid ""
8155 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8156 "get-mountpoints>, L</inspect-get-filesystems>."
8157 msgstr ""
8158
8159 #. type: =head2
8160 #: ../fish/guestfish-actions.pod:1873
8161 msgid "inspect-get-filesystems"
8162 msgstr ""
8163
8164 #. type: verbatim
8165 #: ../fish/guestfish-actions.pod:1875
8166 #, no-wrap
8167 msgid ""
8168 " inspect-get-filesystems root\n"
8169 "\n"
8170 msgstr ""
8171
8172 #. type: textblock
8173 #: ../fish/guestfish-actions.pod:1877 ../src/guestfs-actions.pod:2771
8174 msgid ""
8175 "This returns a list of all the filesystems that we think are associated with "
8176 "this operating system.  This includes the root filesystem, other ordinary "
8177 "filesystems, and non-mounted devices like swap partitions."
8178 msgstr ""
8179
8180 #. type: textblock
8181 #: ../fish/guestfish-actions.pod:1882 ../src/guestfs-actions.pod:2776
8182 msgid ""
8183 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8184 "to be shared between operating systems."
8185 msgstr ""
8186
8187 #. type: textblock
8188 #: ../fish/guestfish-actions.pod:1885
8189 msgid ""
8190 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8191 "get-mountpoints>."
8192 msgstr ""
8193
8194 #. type: =head2
8195 #: ../fish/guestfish-actions.pod:1888
8196 msgid "inspect-get-format"
8197 msgstr ""
8198
8199 #. type: verbatim
8200 #: ../fish/guestfish-actions.pod:1890
8201 #, no-wrap
8202 msgid ""
8203 " inspect-get-format root\n"
8204 "\n"
8205 msgstr ""
8206
8207 #. type: textblock
8208 #: ../fish/guestfish-actions.pod:1892 ../src/guestfs-actions.pod:2794
8209 msgid ""
8210 "This returns the format of the inspected operating system.  You can use it "
8211 "to detect install images, live CDs and similar."
8212 msgstr ""
8213
8214 #. type: textblock
8215 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:2797
8216 msgid "Currently defined formats are:"
8217 msgstr ""
8218
8219 #. type: =item
8220 #: ../fish/guestfish-actions.pod:1899 ../src/guestfs-actions.pod:2801
8221 msgid "\"installed\""
8222 msgstr ""
8223
8224 #. type: textblock
8225 #: ../fish/guestfish-actions.pod:1901 ../src/guestfs-actions.pod:2803
8226 msgid "This is an installed operating system."
8227 msgstr ""
8228
8229 #. type: =item
8230 #: ../fish/guestfish-actions.pod:1903 ../src/guestfs-actions.pod:2805
8231 msgid "\"installer\""
8232 msgstr ""
8233
8234 #. type: textblock
8235 #: ../fish/guestfish-actions.pod:1905 ../src/guestfs-actions.pod:2807
8236 msgid ""
8237 "The disk image being inspected is not an installed operating system, but a "
8238 "I<bootable> install disk, live CD, or similar."
8239 msgstr ""
8240
8241 #. type: textblock
8242 #: ../fish/guestfish-actions.pod:1910 ../src/guestfs-actions.pod:2812
8243 msgid "The format of this disk image is not known."
8244 msgstr ""
8245
8246 #. type: =head2
8247 #: ../fish/guestfish-actions.pod:1919
8248 msgid "inspect-get-hostname"
8249 msgstr ""
8250
8251 #. type: verbatim
8252 #: ../fish/guestfish-actions.pod:1921
8253 #, no-wrap
8254 msgid ""
8255 " inspect-get-hostname root\n"
8256 "\n"
8257 msgstr ""
8258
8259 #. type: textblock
8260 #: ../fish/guestfish-actions.pod:1923 ../src/guestfs-actions.pod:2832
8261 msgid ""
8262 "This function returns the hostname of the operating system as found by "
8263 "inspection of the guest's configuration files."
8264 msgstr ""
8265
8266 #. type: textblock
8267 #: ../fish/guestfish-actions.pod:1926 ../src/guestfs-actions.pod:2835
8268 msgid ""
8269 "If the hostname could not be determined, then the string C<unknown> is "
8270 "returned."
8271 msgstr ""
8272
8273 #. type: =head2
8274 #: ../fish/guestfish-actions.pod:1931
8275 msgid "inspect-get-icon"
8276 msgstr ""
8277
8278 #. type: verbatim
8279 #: ../fish/guestfish-actions.pod:1933
8280 #, no-wrap
8281 msgid ""
8282 " inspect-get-icon root [favicon:..] [highquality:..]\n"
8283 "\n"
8284 msgstr ""
8285
8286 #. type: textblock
8287 #: ../fish/guestfish-actions.pod:1935 ../src/guestfs-actions.pod:2861
8288 msgid ""
8289 "This function returns an icon corresponding to the inspected operating "
8290 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
8291 "to PNG if necessary)."
8292 msgstr ""
8293
8294 #. type: textblock
8295 #: ../fish/guestfish-actions.pod:1939 ../src/guestfs-actions.pod:2865
8296 msgid ""
8297 "If it was not possible to get an icon this function returns a zero-length "
8298 "(non-NULL) buffer.  I<Callers must check for this case>."
8299 msgstr ""
8300
8301 #. type: textblock
8302 #: ../fish/guestfish-actions.pod:1942 ../src/guestfs-actions.pod:2868
8303 msgid ""
8304 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
8305 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
8306 "this file will be returned.  You can disable favicons by passing the "
8307 "optional C<favicon> boolean as false (default is true)."
8308 msgstr ""
8309
8310 #. type: textblock
8311 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:2874
8312 msgid ""
8313 "If finding the favicon fails, then we look in other places in the guest for "
8314 "a suitable icon."
8315 msgstr ""
8316
8317 #. type: textblock
8318 #: ../fish/guestfish-actions.pod:1951 ../src/guestfs-actions.pod:2877
8319 msgid ""
8320 "If the optional C<highquality> boolean is true then only high quality icons "
8321 "are returned, which means only icons of high resolution with an alpha "
8322 "channel.  The default (false) is to return any icon we can, even if it is of "
8323 "substandard quality."
8324 msgstr ""
8325
8326 #. type: textblock
8327 #: ../fish/guestfish-actions.pod:1962 ../src/guestfs-actions.pod:2888
8328 msgid ""
8329 "Unlike most other inspection API calls, the guest's disks must be mounted up "
8330 "before you call this, since it needs to read information from the guest "
8331 "filesystem during the call."
8332 msgstr ""
8333
8334 #. type: textblock
8335 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2894
8336 msgid ""
8337 "B<Security:> The icon data comes from the untrusted guest, and should be "
8338 "treated with caution.  PNG files have been known to contain exploits.  "
8339 "Ensure that libpng (or other relevant libraries) are fully up to date before "
8340 "trying to process or display the icon."
8341 msgstr ""
8342
8343 #. type: textblock
8344 #: ../fish/guestfish-actions.pod:1976 ../src/guestfs-actions.pod:2902
8345 msgid ""
8346 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
8347 "tries to return the largest, highest quality icon available.  The "
8348 "application must scale the icon to the required size."
8349 msgstr ""
8350
8351 #. type: textblock
8352 #: ../fish/guestfish-actions.pod:1983 ../src/guestfs-actions.pod:2909
8353 msgid ""
8354 "Extracting icons from Windows guests requires the external C<wrestool> "
8355 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
8356 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
8357 "installed separately."
8358 msgstr ""
8359
8360 #. type: textblock
8361 #: ../fish/guestfish-actions.pod:1990 ../src/guestfs-actions.pod:2916
8362 msgid ""
8363 "Operating system icons are usually trademarks.  Seek legal advice before "
8364 "using trademarks in applications."
8365 msgstr ""
8366
8367 #. type: =head2
8368 #: ../fish/guestfish-actions.pod:1997
8369 msgid "inspect-get-major-version"
8370 msgstr ""
8371
8372 #. type: verbatim
8373 #: ../fish/guestfish-actions.pod:1999
8374 #, no-wrap
8375 msgid ""
8376 " inspect-get-major-version root\n"
8377 "\n"
8378 msgstr ""
8379
8380 #. type: textblock
8381 #: ../fish/guestfish-actions.pod:2001 ../src/guestfs-actions.pod:2957
8382 msgid ""
8383 "This returns the major version number of the inspected operating system."
8384 msgstr ""
8385
8386 #. type: textblock
8387 #: ../fish/guestfish-actions.pod:2004 ../src/guestfs-actions.pod:2960
8388 msgid ""
8389 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8390 "popular public names used by the operating system.  Notably the operating "
8391 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8392 "1).  You can find out the real versions corresponding to releases of Windows "
8393 "by consulting Wikipedia or MSDN."
8394 msgstr ""
8395
8396 #. type: textblock
8397 #: ../fish/guestfish-actions.pod:2011 ../fish/guestfish-actions.pod:2022
8398 #: ../src/guestfs-actions.pod:2967 ../src/guestfs-actions.pod:2984
8399 msgid "If the version could not be determined, then C<0> is returned."
8400 msgstr ""
8401
8402 #. type: =head2
8403 #: ../fish/guestfish-actions.pod:2015
8404 msgid "inspect-get-minor-version"
8405 msgstr ""
8406
8407 #. type: verbatim
8408 #: ../fish/guestfish-actions.pod:2017
8409 #, no-wrap
8410 msgid ""
8411 " inspect-get-minor-version root\n"
8412 "\n"
8413 msgstr ""
8414
8415 #. type: textblock
8416 #: ../fish/guestfish-actions.pod:2019 ../src/guestfs-actions.pod:2981
8417 msgid ""
8418 "This returns the minor version number of the inspected operating system."
8419 msgstr ""
8420
8421 #. type: textblock
8422 #: ../fish/guestfish-actions.pod:2024
8423 msgid ""
8424 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8425 "get-major-version>."
8426 msgstr ""
8427
8428 #. type: =head2
8429 #: ../fish/guestfish-actions.pod:2027
8430 msgid "inspect-get-mountpoints"
8431 msgstr ""
8432
8433 #. type: verbatim
8434 #: ../fish/guestfish-actions.pod:2029
8435 #, no-wrap
8436 msgid ""
8437 " inspect-get-mountpoints root\n"
8438 "\n"
8439 msgstr ""
8440
8441 #. type: textblock
8442 #: ../fish/guestfish-actions.pod:2031 ../src/guestfs-actions.pod:2999
8443 msgid ""
8444 "This returns a hash of where we think the filesystems associated with this "
8445 "operating system should be mounted.  Callers should note that this is at "
8446 "best an educated guess made by reading configuration files such as C</etc/"
8447 "fstab>.  I<In particular note> that this may return filesystems which are "
8448 "non-existent or not mountable and callers should be prepared to handle or "
8449 "ignore failures if they try to mount them."
8450 msgstr ""
8451
8452 #. type: textblock
8453 #: ../fish/guestfish-actions.pod:2040 ../src/guestfs-actions.pod:3008
8454 msgid ""
8455 "Each element in the returned hashtable has a key which is the path of the "
8456 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8457 "mounted there (eg. C</dev/sda1>)."
8458 msgstr ""
8459
8460 #. type: textblock
8461 #: ../fish/guestfish-actions.pod:2045 ../src/guestfs-actions.pod:3013
8462 msgid ""
8463 "Non-mounted devices such as swap devices are I<not> returned in this list."
8464 msgstr ""
8465
8466 #. type: textblock
8467 #: ../fish/guestfish-actions.pod:2048
8468 msgid ""
8469 "For operating systems like Windows which still use drive letters, this call "
8470 "will only return an entry for the first drive \"mounted on\" C</>.  For "
8471 "information about the mapping of drive letters to partitions, see L</inspect-"
8472 "get-drive-mappings>."
8473 msgstr ""
8474
8475 #. type: textblock
8476 #: ../fish/guestfish-actions.pod:2054
8477 msgid ""
8478 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8479 "get-filesystems>."
8480 msgstr ""
8481
8482 #. type: =head2
8483 #: ../fish/guestfish-actions.pod:2057
8484 msgid "inspect-get-package-format"
8485 msgstr ""
8486
8487 #. type: verbatim
8488 #: ../fish/guestfish-actions.pod:2059
8489 #, no-wrap
8490 msgid ""
8491 " inspect-get-package-format root\n"
8492 "\n"
8493 msgstr ""
8494
8495 #. type: textblock
8496 #: ../fish/guestfish-actions.pod:2061
8497 msgid ""
8498 "This function and L</inspect-get-package-management> return the package "
8499 "format and package management tool used by the inspected operating system.  "
8500 "For example for Fedora these functions would return C<rpm> (package format) "
8501 "and C<yum> (package management)."
8502 msgstr ""
8503
8504 #. type: textblock
8505 #: ../fish/guestfish-actions.pod:2067 ../src/guestfs-actions.pod:3045
8506 msgid ""
8507 "This returns the string C<unknown> if we could not determine the package "
8508 "format I<or> if the operating system does not have a real packaging system "
8509 "(eg. Windows)."
8510 msgstr ""
8511
8512 #. type: textblock
8513 #: ../fish/guestfish-actions.pod:2071 ../src/guestfs-actions.pod:3049
8514 msgid ""
8515 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
8516 "Future versions of libguestfs may return other strings."
8517 msgstr ""
8518
8519 #. type: =head2
8520 #: ../fish/guestfish-actions.pod:2076
8521 msgid "inspect-get-package-management"
8522 msgstr ""
8523
8524 #. type: verbatim
8525 #: ../fish/guestfish-actions.pod:2078
8526 #, no-wrap
8527 msgid ""
8528 " inspect-get-package-management root\n"
8529 "\n"
8530 msgstr ""
8531
8532 #. type: textblock
8533 #: ../fish/guestfish-actions.pod:2080
8534 msgid ""
8535 "L</inspect-get-package-format> and this function return the package format "
8536 "and package management tool used by the inspected operating system.  For "
8537 "example for Fedora these functions would return C<rpm> (package format) and "
8538 "C<yum> (package management)."
8539 msgstr ""
8540
8541 #. type: textblock
8542 #: ../fish/guestfish-actions.pod:2086 ../src/guestfs-actions.pod:3071
8543 msgid ""
8544 "This returns the string C<unknown> if we could not determine the package "
8545 "management tool I<or> if the operating system does not have a real packaging "
8546 "system (eg. Windows)."
8547 msgstr ""
8548
8549 #. type: textblock
8550 #: ../fish/guestfish-actions.pod:2090 ../src/guestfs-actions.pod:3075
8551 msgid ""
8552 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
8553 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
8554 "libguestfs may return other strings."
8555 msgstr ""
8556
8557 #. type: =head2
8558 #: ../fish/guestfish-actions.pod:2097
8559 msgid "inspect-get-product-name"
8560 msgstr ""
8561
8562 #. type: verbatim
8563 #: ../fish/guestfish-actions.pod:2099
8564 #, no-wrap
8565 msgid ""
8566 " inspect-get-product-name root\n"
8567 "\n"
8568 msgstr ""
8569
8570 #. type: textblock
8571 #: ../fish/guestfish-actions.pod:2101 ../src/guestfs-actions.pod:3093
8572 msgid ""
8573 "This returns the product name of the inspected operating system.  The "
8574 "product name is generally some freeform string which can be displayed to the "
8575 "user, but should not be parsed by programs."
8576 msgstr ""
8577
8578 #. type: textblock
8579 #: ../fish/guestfish-actions.pod:2106 ../src/guestfs-actions.pod:3098
8580 msgid ""
8581 "If the product name could not be determined, then the string C<unknown> is "
8582 "returned."
8583 msgstr ""
8584
8585 #. type: =head2
8586 #: ../fish/guestfish-actions.pod:2111
8587 msgid "inspect-get-product-variant"
8588 msgstr ""
8589
8590 #. type: verbatim
8591 #: ../fish/guestfish-actions.pod:2113
8592 #, no-wrap
8593 msgid ""
8594 " inspect-get-product-variant root\n"
8595 "\n"
8596 msgstr ""
8597
8598 #. type: textblock
8599 #: ../fish/guestfish-actions.pod:2115 ../src/guestfs-actions.pod:3114
8600 msgid "This returns the product variant of the inspected operating system."
8601 msgstr ""
8602
8603 #. type: textblock
8604 #: ../fish/guestfish-actions.pod:2118 ../src/guestfs-actions.pod:3117
8605 msgid ""
8606 "For Windows guests, this returns the contents of the Registry key C<HKLM"
8607 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
8608 "is usually a string such as C<Client> or C<Server> (other values are "
8609 "possible).  This can be used to distinguish consumer and enterprise versions "
8610 "of Windows that have the same version number (for example, Windows 7 and "
8611 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
8612 "the latter is C<Server>)."
8613 msgstr ""
8614
8615 #. type: textblock
8616 #: ../fish/guestfish-actions.pod:2127 ../src/guestfs-actions.pod:3126
8617 msgid ""
8618 "For enterprise Linux guests, in future we intend this to return the product "
8619 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
8620 "implemented at present."
8621 msgstr ""
8622
8623 #. type: textblock
8624 #: ../fish/guestfish-actions.pod:2131 ../src/guestfs-actions.pod:3130
8625 msgid ""
8626 "If the product variant could not be determined, then the string C<unknown> "
8627 "is returned."
8628 msgstr ""
8629
8630 #. type: textblock
8631 #: ../fish/guestfish-actions.pod:2134
8632 msgid ""
8633 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8634 "get-product-name>, L</inspect-get-major-version>."
8635 msgstr ""
8636
8637 #. type: =head2
8638 #: ../fish/guestfish-actions.pod:2138
8639 msgid "inspect-get-roots"
8640 msgstr ""
8641
8642 #. type: verbatim
8643 #: ../fish/guestfish-actions.pod:2140
8644 #, no-wrap
8645 msgid ""
8646 " inspect-get-roots\n"
8647 "\n"
8648 msgstr ""
8649
8650 #. type: textblock
8651 #: ../fish/guestfish-actions.pod:2142
8652 msgid ""
8653 "This function is a convenient way to get the list of root devices, as "
8654 "returned from a previous call to L</inspect-os>, but without redoing the "
8655 "whole inspection process."
8656 msgstr ""
8657
8658 #. type: textblock
8659 #: ../fish/guestfish-actions.pod:2146
8660 msgid ""
8661 "This returns an empty list if either no root devices were found or the "
8662 "caller has not called L</inspect-os>."
8663 msgstr ""
8664
8665 #. type: =head2
8666 #: ../fish/guestfish-actions.pod:2151
8667 msgid "inspect-get-type"
8668 msgstr ""
8669
8670 #. type: verbatim
8671 #: ../fish/guestfish-actions.pod:2153
8672 #, no-wrap
8673 msgid ""
8674 " inspect-get-type root\n"
8675 "\n"
8676 msgstr ""
8677
8678 #. type: textblock
8679 #: ../fish/guestfish-actions.pod:2155 ../src/guestfs-actions.pod:3168
8680 msgid ""
8681 "This returns the type of the inspected operating system.  Currently defined "
8682 "types are:"
8683 msgstr ""
8684
8685 #. type: =item
8686 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3173
8687 msgid "\"linux\""
8688 msgstr ""
8689
8690 #. type: textblock
8691 #: ../fish/guestfish-actions.pod:2162 ../src/guestfs-actions.pod:3175
8692 msgid "Any Linux-based operating system."
8693 msgstr ""
8694
8695 #. type: textblock
8696 #: ../fish/guestfish-actions.pod:2166 ../src/guestfs-actions.pod:3179
8697 msgid "Any Microsoft Windows operating system."
8698 msgstr ""
8699
8700 #. type: =item
8701 #: ../fish/guestfish-actions.pod:2168 ../src/guestfs-actions.pod:3181
8702 msgid "\"freebsd\""
8703 msgstr ""
8704
8705 #. type: textblock
8706 #: ../fish/guestfish-actions.pod:2170 ../src/guestfs-actions.pod:3183
8707 msgid "FreeBSD."
8708 msgstr ""
8709
8710 #. type: textblock
8711 #: ../fish/guestfish-actions.pod:2174 ../src/guestfs-actions.pod:3187
8712 msgid "The operating system type could not be determined."
8713 msgstr ""
8714
8715 #. type: =head2
8716 #: ../fish/guestfish-actions.pod:2183
8717 msgid "inspect-get-windows-current-control-set"
8718 msgstr ""
8719
8720 #. type: verbatim
8721 #: ../fish/guestfish-actions.pod:2185
8722 #, no-wrap
8723 msgid ""
8724 " inspect-get-windows-current-control-set root\n"
8725 "\n"
8726 msgstr ""
8727
8728 #. type: textblock
8729 #: ../fish/guestfish-actions.pod:2187 ../src/guestfs-actions.pod:3207
8730 msgid ""
8731 "This returns the Windows CurrentControlSet of the inspected guest.  The "
8732 "CurrentControlSet is a registry key name such as C<ControlSet001>."
8733 msgstr ""
8734
8735 #. type: textblock
8736 #: ../fish/guestfish-actions.pod:2190 ../src/guestfs-actions.pod:3210
8737 msgid ""
8738 "This call assumes that the guest is Windows and that the Registry could be "
8739 "examined by inspection.  If this is not the case then an error is returned."
8740 msgstr ""
8741
8742 #. type: =head2
8743 #: ../fish/guestfish-actions.pod:2196
8744 msgid "inspect-get-windows-systemroot"
8745 msgstr ""
8746
8747 #. type: verbatim
8748 #: ../fish/guestfish-actions.pod:2198
8749 #, no-wrap
8750 msgid ""
8751 " inspect-get-windows-systemroot root\n"
8752 "\n"
8753 msgstr ""
8754
8755 #. type: textblock
8756 #: ../fish/guestfish-actions.pod:2200 ../src/guestfs-actions.pod:3227
8757 msgid ""
8758 "This returns the Windows systemroot of the inspected guest.  The systemroot "
8759 "is a directory path such as C</WINDOWS>."
8760 msgstr ""
8761
8762 #. type: textblock
8763 #: ../fish/guestfish-actions.pod:2203 ../src/guestfs-actions.pod:3230
8764 msgid ""
8765 "This call assumes that the guest is Windows and that the systemroot could be "
8766 "determined by inspection.  If this is not the case then an error is returned."
8767 msgstr ""
8768
8769 #. type: =head2
8770 #: ../fish/guestfish-actions.pod:2209
8771 msgid "inspect-is-live"
8772 msgstr ""
8773
8774 #. type: verbatim
8775 #: ../fish/guestfish-actions.pod:2211
8776 #, no-wrap
8777 msgid ""
8778 " inspect-is-live root\n"
8779 "\n"
8780 msgstr ""
8781
8782 #. type: textblock
8783 #: ../fish/guestfish-actions.pod:2213
8784 msgid ""
8785 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8786 "then this returns true if a live image was detected on the disk."
8787 msgstr ""
8788
8789 #. type: =head2
8790 #: ../fish/guestfish-actions.pod:2219
8791 msgid "inspect-is-multipart"
8792 msgstr ""
8793
8794 #. type: verbatim
8795 #: ../fish/guestfish-actions.pod:2221
8796 #, no-wrap
8797 msgid ""
8798 " inspect-is-multipart root\n"
8799 "\n"
8800 msgstr ""
8801
8802 #. type: textblock
8803 #: ../fish/guestfish-actions.pod:2223
8804 msgid ""
8805 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8806 "then this returns true if the disk is part of a set."
8807 msgstr ""
8808
8809 #. type: =head2
8810 #: ../fish/guestfish-actions.pod:2229
8811 msgid "inspect-is-netinst"
8812 msgstr ""
8813
8814 #. type: verbatim
8815 #: ../fish/guestfish-actions.pod:2231
8816 #, no-wrap
8817 msgid ""
8818 " inspect-is-netinst root\n"
8819 "\n"
8820 msgstr ""
8821
8822 #. type: textblock
8823 #: ../fish/guestfish-actions.pod:2233
8824 msgid ""
8825 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8826 "then this returns true if the disk is a network installer, ie. not a self-"
8827 "contained install CD but one which is likely to require network access to "
8828 "complete the install."
8829 msgstr ""
8830
8831 #. type: =head2
8832 #: ../fish/guestfish-actions.pod:2241
8833 msgid "inspect-list-applications"
8834 msgstr ""
8835
8836 #. type: verbatim
8837 #: ../fish/guestfish-actions.pod:2243
8838 #, no-wrap
8839 msgid ""
8840 " inspect-list-applications root\n"
8841 "\n"
8842 msgstr ""
8843
8844 #. type: textblock
8845 #: ../fish/guestfish-actions.pod:2245 ../src/guestfs-actions.pod:3297
8846 msgid "Return the list of applications installed in the operating system."
8847 msgstr ""
8848
8849 #. type: textblock
8850 #: ../fish/guestfish-actions.pod:2247
8851 msgid ""
8852 "I<Note:> This call works differently from other parts of the inspection "
8853 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
8854 "then mount up the disks, before calling this.  Listing applications is a "
8855 "significantly more difficult operation which requires access to the full "
8856 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
8857 "are just returning data cached in the libguestfs handle, this call actually "
8858 "reads parts of the mounted filesystems during the call."
8859 msgstr ""
8860
8861 #. type: textblock
8862 #: ../fish/guestfish-actions.pod:2257 ../src/guestfs-actions.pod:3309
8863 msgid ""
8864 "This returns an empty list if the inspection code was not able to determine "
8865 "the list of applications."
8866 msgstr ""
8867
8868 #. type: textblock
8869 #: ../fish/guestfish-actions.pod:2260 ../src/guestfs-actions.pod:3312
8870 msgid "The application structure contains the following fields:"
8871 msgstr ""
8872
8873 #. type: =item
8874 #: ../fish/guestfish-actions.pod:2264 ../src/guestfs-actions.pod:3316
8875 msgid "C<app_name>"
8876 msgstr ""
8877
8878 #. type: textblock
8879 #: ../fish/guestfish-actions.pod:2266 ../src/guestfs-actions.pod:3318
8880 msgid ""
8881 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
8882 "guests, this is the package name."
8883 msgstr ""
8884
8885 #. type: =item
8886 #: ../fish/guestfish-actions.pod:2269 ../src/guestfs-actions.pod:3321
8887 msgid "C<app_display_name>"
8888 msgstr ""
8889
8890 #. type: textblock
8891 #: ../fish/guestfish-actions.pod:2271 ../src/guestfs-actions.pod:3323
8892 msgid ""
8893 "The display name of the application, sometimes localized to the install "
8894 "language of the guest operating system."
8895 msgstr ""
8896
8897 #. type: textblock
8898 #: ../fish/guestfish-actions.pod:2274 ../src/guestfs-actions.pod:3326
8899 msgid ""
8900 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
8901 "to display something can use C<app_name> instead."
8902 msgstr ""
8903
8904 #. type: =item
8905 #: ../fish/guestfish-actions.pod:2277 ../src/guestfs-actions.pod:3329
8906 msgid "C<app_epoch>"
8907 msgstr ""
8908
8909 #. type: textblock
8910 #: ../fish/guestfish-actions.pod:2279 ../src/guestfs-actions.pod:3331
8911 msgid ""
8912 "For package managers which use epochs, this contains the epoch of the "
8913 "package (an integer).  If unavailable, this is returned as C<0>."
8914 msgstr ""
8915
8916 #. type: =item
8917 #: ../fish/guestfish-actions.pod:2282 ../src/guestfs-actions.pod:3334
8918 msgid "C<app_version>"
8919 msgstr ""
8920
8921 #. type: textblock
8922 #: ../fish/guestfish-actions.pod:2284 ../src/guestfs-actions.pod:3336
8923 msgid ""
8924 "The version string of the application or package.  If unavailable this is "
8925 "returned as an empty string C<\"\">."
8926 msgstr ""
8927
8928 #. type: =item
8929 #: ../fish/guestfish-actions.pod:2287 ../src/guestfs-actions.pod:3339
8930 msgid "C<app_release>"
8931 msgstr ""
8932
8933 #. type: textblock
8934 #: ../fish/guestfish-actions.pod:2289 ../src/guestfs-actions.pod:3341
8935 msgid ""
8936 "The release string of the application or package, for package managers that "
8937 "use this.  If unavailable this is returned as an empty string C<\"\">."
8938 msgstr ""
8939
8940 #. type: =item
8941 #: ../fish/guestfish-actions.pod:2293 ../src/guestfs-actions.pod:3345
8942 msgid "C<app_install_path>"
8943 msgstr ""
8944
8945 #. type: textblock
8946 #: ../fish/guestfish-actions.pod:2295 ../src/guestfs-actions.pod:3347
8947 msgid ""
8948 "The installation path of the application (on operating systems such as "
8949 "Windows which use installation paths).  This path is in the format used by "
8950 "the guest operating system, it is not a libguestfs path."
8951 msgstr ""
8952
8953 #. type: textblock
8954 #: ../fish/guestfish-actions.pod:2300 ../src/guestfs-actions.pod:3352
8955 msgid "If unavailable this is returned as an empty string C<\"\">."
8956 msgstr ""
8957
8958 #. type: =item
8959 #: ../fish/guestfish-actions.pod:2302 ../src/guestfs-actions.pod:3354
8960 msgid "C<app_trans_path>"
8961 msgstr ""
8962
8963 #. type: textblock
8964 #: ../fish/guestfish-actions.pod:2304 ../src/guestfs-actions.pod:3356
8965 msgid ""
8966 "The install path translated into a libguestfs path.  If unavailable this is "
8967 "returned as an empty string C<\"\">."
8968 msgstr ""
8969
8970 #. type: =item
8971 #: ../fish/guestfish-actions.pod:2307 ../src/guestfs-actions.pod:3359
8972 msgid "C<app_publisher>"
8973 msgstr ""
8974
8975 #. type: textblock
8976 #: ../fish/guestfish-actions.pod:2309 ../src/guestfs-actions.pod:3361
8977 msgid ""
8978 "The name of the publisher of the application, for package managers that use "
8979 "this.  If unavailable this is returned as an empty string C<\"\">."
8980 msgstr ""
8981
8982 #. type: =item
8983 #: ../fish/guestfish-actions.pod:2313 ../src/guestfs-actions.pod:3365
8984 msgid "C<app_url>"
8985 msgstr ""
8986
8987 #. type: textblock
8988 #: ../fish/guestfish-actions.pod:2315 ../src/guestfs-actions.pod:3367
8989 msgid ""
8990 "The URL (eg. upstream URL) of the application.  If unavailable this is "
8991 "returned as an empty string C<\"\">."
8992 msgstr ""
8993
8994 #. type: =item
8995 #: ../fish/guestfish-actions.pod:2318 ../src/guestfs-actions.pod:3370
8996 msgid "C<app_source_package>"
8997 msgstr ""
8998
8999 #. type: textblock
9000 #: ../fish/guestfish-actions.pod:2320 ../src/guestfs-actions.pod:3372
9001 msgid ""
9002 "For packaging systems which support this, the name of the source package.  "
9003 "If unavailable this is returned as an empty string C<\"\">."
9004 msgstr ""
9005
9006 #. type: =item
9007 #: ../fish/guestfish-actions.pod:2323 ../src/guestfs-actions.pod:3375
9008 msgid "C<app_summary>"
9009 msgstr ""
9010
9011 #. type: textblock
9012 #: ../fish/guestfish-actions.pod:2325 ../src/guestfs-actions.pod:3377
9013 msgid ""
9014 "A short (usually one line) description of the application or package.  If "
9015 "unavailable this is returned as an empty string C<\"\">."
9016 msgstr ""
9017
9018 #. type: =item
9019 #: ../fish/guestfish-actions.pod:2328 ../src/guestfs-actions.pod:3380
9020 msgid "C<app_description>"
9021 msgstr ""
9022
9023 #. type: textblock
9024 #: ../fish/guestfish-actions.pod:2330 ../src/guestfs-actions.pod:3382
9025 msgid ""
9026 "A longer description of the application or package.  If unavailable this is "
9027 "returned as an empty string C<\"\">."
9028 msgstr ""
9029
9030 #. type: =head2
9031 #: ../fish/guestfish-actions.pod:2337
9032 msgid "inspect-os"
9033 msgstr ""
9034
9035 #. type: verbatim
9036 #: ../fish/guestfish-actions.pod:2339
9037 #, no-wrap
9038 msgid ""
9039 " inspect-os\n"
9040 "\n"
9041 msgstr ""
9042
9043 #. type: textblock
9044 #: ../fish/guestfish-actions.pod:2341 ../src/guestfs-actions.pod:3400
9045 msgid ""
9046 "This function uses other libguestfs functions and certain heuristics to "
9047 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9048 "for operating systems."
9049 msgstr ""
9050
9051 #. type: textblock
9052 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3404
9053 msgid "The list returned is empty if no operating systems were found."
9054 msgstr ""
9055
9056 #. type: textblock
9057 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3406
9058 msgid ""
9059 "If one operating system was found, then this returns a list with a single "
9060 "element, which is the name of the root filesystem of this operating system.  "
9061 "It is also possible for this function to return a list containing more than "
9062 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9063 "element being the root filesystem of one of the operating systems."
9064 msgstr ""
9065
9066 #. type: textblock
9067 #: ../fish/guestfish-actions.pod:2354
9068 msgid ""
9069 "You can pass the root string(s) returned to other L</inspect-get-*> "
9070 "functions in order to query further information about each operating system, "
9071 "such as the name and version."
9072 msgstr ""
9073
9074 #. type: textblock
9075 #: ../fish/guestfish-actions.pod:2359
9076 msgid ""
9077 "This function uses other libguestfs features such as L</mount-ro> and L</"
9078 "umount-all> in order to mount and unmount filesystems and look at the "
9079 "contents.  This should be called with no disks currently mounted.  The "
9080 "function may also use Augeas, so any existing Augeas handle will be closed."
9081 msgstr ""
9082
9083 #. type: textblock
9084 #: ../fish/guestfish-actions.pod:2365 ../src/guestfs-actions.pod:3424
9085 msgid ""
9086 "This function cannot decrypt encrypted disks.  The caller must do that first "
9087 "(supplying the necessary keys) if the disk is encrypted."
9088 msgstr ""
9089
9090 #. type: textblock
9091 #: ../fish/guestfish-actions.pod:2371 ../fish/guestfish-actions.pod:2569
9092 #: ../fish/guestfish-actions.pod:2628
9093 msgid "See also L</list-filesystems>."
9094 msgstr ""
9095
9096 #. type: =head2
9097 #: ../fish/guestfish-actions.pod:2373
9098 msgid "is-blockdev"
9099 msgstr ""
9100
9101 #. type: verbatim
9102 #: ../fish/guestfish-actions.pod:2375
9103 #, no-wrap
9104 msgid ""
9105 " is-blockdev path\n"
9106 "\n"
9107 msgstr ""
9108
9109 #. type: textblock
9110 #: ../fish/guestfish-actions.pod:2377 ../src/guestfs-actions.pod:3444
9111 msgid ""
9112 "This returns C<true> if and only if there is a block device with the given "
9113 "C<path> name."
9114 msgstr ""
9115
9116 #. type: textblock
9117 #: ../fish/guestfish-actions.pod:2380 ../fish/guestfish-actions.pod:2398
9118 #: ../fish/guestfish-actions.pod:2417 ../fish/guestfish-actions.pod:2426
9119 #: ../fish/guestfish-actions.pod:2436 ../fish/guestfish-actions.pod:2470
9120 #: ../fish/guestfish-actions.pod:2479
9121 msgid "See also L</stat>."
9122 msgstr ""
9123
9124 #. type: =head2
9125 #: ../fish/guestfish-actions.pod:2382
9126 msgid "is-busy"
9127 msgstr ""
9128
9129 #. type: verbatim
9130 #: ../fish/guestfish-actions.pod:2384
9131 #, no-wrap
9132 msgid ""
9133 " is-busy\n"
9134 "\n"
9135 msgstr ""
9136
9137 #. type: textblock
9138 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3458
9139 msgid ""
9140 "This returns true iff this handle is busy processing a command (in the "
9141 "C<BUSY> state)."
9142 msgstr ""
9143
9144 #. type: =head2
9145 #: ../fish/guestfish-actions.pod:2391
9146 msgid "is-chardev"
9147 msgstr ""
9148
9149 #. type: verbatim
9150 #: ../fish/guestfish-actions.pod:2393
9151 #, no-wrap
9152 msgid ""
9153 " is-chardev path\n"
9154 "\n"
9155 msgstr ""
9156
9157 #. type: textblock
9158 #: ../fish/guestfish-actions.pod:2395 ../src/guestfs-actions.pod:3473
9159 msgid ""
9160 "This returns C<true> if and only if there is a character device with the "
9161 "given C<path> name."
9162 msgstr ""
9163
9164 #. type: =head2
9165 #: ../fish/guestfish-actions.pod:2400
9166 msgid "is-config"
9167 msgstr ""
9168
9169 #. type: verbatim
9170 #: ../fish/guestfish-actions.pod:2402
9171 #, no-wrap
9172 msgid ""
9173 " is-config\n"
9174 "\n"
9175 msgstr ""
9176
9177 #. type: textblock
9178 #: ../fish/guestfish-actions.pod:2404 ../src/guestfs-actions.pod:3487
9179 msgid ""
9180 "This returns true iff this handle is being configured (in the C<CONFIG> "
9181 "state)."
9182 msgstr ""
9183
9184 #. type: =head2
9185 #: ../fish/guestfish-actions.pod:2409
9186 msgid "is-dir"
9187 msgstr ""
9188
9189 #. type: verbatim
9190 #: ../fish/guestfish-actions.pod:2411
9191 #, no-wrap
9192 msgid ""
9193 " is-dir path\n"
9194 "\n"
9195 msgstr ""
9196
9197 #. type: textblock
9198 #: ../fish/guestfish-actions.pod:2413 ../src/guestfs-actions.pod:3502
9199 msgid ""
9200 "This returns C<true> if and only if there is a directory with the given "
9201 "C<path> name.  Note that it returns false for other objects like files."
9202 msgstr ""
9203
9204 #. type: =head2
9205 #: ../fish/guestfish-actions.pod:2419
9206 msgid "is-fifo"
9207 msgstr ""
9208
9209 #. type: verbatim
9210 #: ../fish/guestfish-actions.pod:2421
9211 #, no-wrap
9212 msgid ""
9213 " is-fifo path\n"
9214 "\n"
9215 msgstr ""
9216
9217 #. type: textblock
9218 #: ../fish/guestfish-actions.pod:2423 ../src/guestfs-actions.pod:3518
9219 msgid ""
9220 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9221 "given C<path> name."
9222 msgstr ""
9223
9224 #. type: =head2
9225 #: ../fish/guestfish-actions.pod:2428
9226 msgid "is-file"
9227 msgstr ""
9228
9229 #. type: verbatim
9230 #: ../fish/guestfish-actions.pod:2430
9231 #, no-wrap
9232 msgid ""
9233 " is-file path\n"
9234 "\n"
9235 msgstr ""
9236
9237 #. type: textblock
9238 #: ../fish/guestfish-actions.pod:2432 ../src/guestfs-actions.pod:3533
9239 msgid ""
9240 "This returns C<true> if and only if there is a regular file with the given "
9241 "C<path> name.  Note that it returns false for other objects like directories."
9242 msgstr ""
9243
9244 #. type: =head2
9245 #: ../fish/guestfish-actions.pod:2438
9246 msgid "is-launching"
9247 msgstr ""
9248
9249 #. type: verbatim
9250 #: ../fish/guestfish-actions.pod:2440
9251 #, no-wrap
9252 msgid ""
9253 " is-launching\n"
9254 "\n"
9255 msgstr ""
9256
9257 #. type: textblock
9258 #: ../fish/guestfish-actions.pod:2442 ../src/guestfs-actions.pod:3548
9259 msgid ""
9260 "This returns true iff this handle is launching the subprocess (in the "
9261 "C<LAUNCHING> state)."
9262 msgstr ""
9263
9264 #. type: =head2
9265 #: ../fish/guestfish-actions.pod:2447
9266 msgid "is-lv"
9267 msgstr ""
9268
9269 #. type: verbatim
9270 #: ../fish/guestfish-actions.pod:2449
9271 #, no-wrap
9272 msgid ""
9273 " is-lv device\n"
9274 "\n"
9275 msgstr ""
9276
9277 #. type: textblock
9278 #: ../fish/guestfish-actions.pod:2451 ../src/guestfs-actions.pod:3563
9279 msgid ""
9280 "This command tests whether C<device> is a logical volume, and returns true "
9281 "iff this is the case."
9282 msgstr ""
9283
9284 #. type: =head2
9285 #: ../fish/guestfish-actions.pod:2454
9286 msgid "is-ready"
9287 msgstr ""
9288
9289 #. type: verbatim
9290 #: ../fish/guestfish-actions.pod:2456
9291 #, no-wrap
9292 msgid ""
9293 " is-ready\n"
9294 "\n"
9295 msgstr ""
9296
9297 #. type: textblock
9298 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3575
9299 msgid ""
9300 "This returns true iff this handle is ready to accept commands (in the "
9301 "C<READY> state)."
9302 msgstr ""
9303
9304 #. type: =head2
9305 #: ../fish/guestfish-actions.pod:2463
9306 msgid "is-socket"
9307 msgstr ""
9308
9309 #. type: verbatim
9310 #: ../fish/guestfish-actions.pod:2465
9311 #, no-wrap
9312 msgid ""
9313 " is-socket path\n"
9314 "\n"
9315 msgstr ""
9316
9317 #. type: textblock
9318 #: ../fish/guestfish-actions.pod:2467 ../src/guestfs-actions.pod:3590
9319 msgid ""
9320 "This returns C<true> if and only if there is a Unix domain socket with the "
9321 "given C<path> name."
9322 msgstr ""
9323
9324 #. type: =head2
9325 #: ../fish/guestfish-actions.pod:2472
9326 msgid "is-symlink"
9327 msgstr ""
9328
9329 #. type: verbatim
9330 #: ../fish/guestfish-actions.pod:2474
9331 #, no-wrap
9332 msgid ""
9333 " is-symlink path\n"
9334 "\n"
9335 msgstr ""
9336
9337 #. type: textblock
9338 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3605
9339 msgid ""
9340 "This returns C<true> if and only if there is a symbolic link with the given "
9341 "C<path> name."
9342 msgstr ""
9343
9344 #. type: =head2
9345 #: ../fish/guestfish-actions.pod:2481
9346 msgid "is-zero"
9347 msgstr ""
9348
9349 #. type: verbatim
9350 #: ../fish/guestfish-actions.pod:2483
9351 #, no-wrap
9352 msgid ""
9353 " is-zero path\n"
9354 "\n"
9355 msgstr ""
9356
9357 #. type: textblock
9358 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3620
9359 msgid ""
9360 "This returns true iff the file exists and the file is empty or it contains "
9361 "all zero bytes."
9362 msgstr ""
9363
9364 #. type: =head2
9365 #: ../fish/guestfish-actions.pod:2488
9366 msgid "is-zero-device"
9367 msgstr ""
9368
9369 #. type: verbatim
9370 #: ../fish/guestfish-actions.pod:2490
9371 #, no-wrap
9372 msgid ""
9373 " is-zero-device device\n"
9374 "\n"
9375 msgstr ""
9376
9377 #. type: textblock
9378 #: ../fish/guestfish-actions.pod:2492 ../src/guestfs-actions.pod:3633
9379 msgid "This returns true iff the device exists and contains all zero bytes."
9380 msgstr ""
9381
9382 #. type: textblock
9383 #: ../fish/guestfish-actions.pod:2494 ../src/guestfs-actions.pod:3635
9384 msgid "Note that for large devices this can take a long time to run."
9385 msgstr ""
9386
9387 #. type: =head2
9388 #: ../fish/guestfish-actions.pod:2496
9389 msgid "kill-subprocess"
9390 msgstr ""
9391
9392 #. type: verbatim
9393 #: ../fish/guestfish-actions.pod:2498
9394 #, no-wrap
9395 msgid ""
9396 " kill-subprocess\n"
9397 "\n"
9398 msgstr ""
9399
9400 #. type: textblock
9401 #: ../fish/guestfish-actions.pod:2500 ../src/guestfs-actions.pod:3646
9402 msgid "This kills the qemu subprocess.  You should never need to call this."
9403 msgstr ""
9404
9405 #. type: =head2
9406 #: ../fish/guestfish-actions.pod:2502
9407 msgid "launch"
9408 msgstr ""
9409
9410 #. type: =head2
9411 #: ../fish/guestfish-actions.pod:2504
9412 msgid "run"
9413 msgstr ""
9414
9415 #. type: verbatim
9416 #: ../fish/guestfish-actions.pod:2506
9417 #, no-wrap
9418 msgid ""
9419 " launch\n"
9420 "\n"
9421 msgstr ""
9422
9423 #. type: textblock
9424 #: ../fish/guestfish-actions.pod:2508 ../src/guestfs-actions.pod:3657
9425 msgid ""
9426 "Internally libguestfs is implemented by running a virtual machine using "
9427 "L<qemu(1)>."
9428 msgstr ""
9429
9430 #. type: textblock
9431 #: ../fish/guestfish-actions.pod:2511 ../src/guestfs-actions.pod:3660
9432 msgid ""
9433 "You should call this after configuring the handle (eg. adding drives) but "
9434 "before performing any actions."
9435 msgstr ""
9436
9437 #. type: =head2
9438 #: ../fish/guestfish-actions.pod:2514
9439 msgid "lchown"
9440 msgstr ""
9441
9442 #. type: verbatim
9443 #: ../fish/guestfish-actions.pod:2516
9444 #, no-wrap
9445 msgid ""
9446 " lchown owner group path\n"
9447 "\n"
9448 msgstr ""
9449
9450 #. type: textblock
9451 #: ../fish/guestfish-actions.pod:2518
9452 msgid ""
9453 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
9454 "chown> but if C<path> is a symlink then the link itself is changed, not the "
9455 "target."
9456 msgstr ""
9457
9458 #. type: =head2
9459 #: ../fish/guestfish-actions.pod:2526
9460 msgid "lgetxattr"
9461 msgstr ""
9462
9463 #. type: verbatim
9464 #: ../fish/guestfish-actions.pod:2528
9465 #, no-wrap
9466 msgid ""
9467 " lgetxattr path name\n"
9468 "\n"
9469 msgstr ""
9470
9471 #. type: textblock
9472 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3700
9473 msgid ""
9474 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
9475 "is a symlink, then this call returns an extended attribute from the symlink."
9476 msgstr ""
9477
9478 #. type: textblock
9479 #: ../fish/guestfish-actions.pod:2544
9480 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
9481 msgstr ""
9482
9483 #. type: =head2
9484 #: ../fish/guestfish-actions.pod:2546
9485 msgid "lgetxattrs"
9486 msgstr ""
9487
9488 #. type: verbatim
9489 #: ../fish/guestfish-actions.pod:2548
9490 #, no-wrap
9491 msgid ""
9492 " lgetxattrs path\n"
9493 "\n"
9494 msgstr ""
9495
9496 #. type: textblock
9497 #: ../fish/guestfish-actions.pod:2550
9498 msgid ""
9499 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
9500 "it returns the extended attributes of the link itself."
9501 msgstr ""
9502
9503 #. type: =head2
9504 #: ../fish/guestfish-actions.pod:2554
9505 msgid "list-9p"
9506 msgstr ""
9507
9508 #. type: verbatim
9509 #: ../fish/guestfish-actions.pod:2556
9510 #, no-wrap
9511 msgid ""
9512 " list-9p\n"
9513 "\n"
9514 msgstr ""
9515
9516 #. type: textblock
9517 #: ../fish/guestfish-actions.pod:2558 ../src/guestfs-actions.pod:3743
9518 msgid ""
9519 "List all 9p filesystems attached to the guest.  A list of mount tags is "
9520 "returned."
9521 msgstr ""
9522
9523 #. type: =head2
9524 #: ../fish/guestfish-actions.pod:2561
9525 msgid "list-devices"
9526 msgstr ""
9527
9528 #. type: verbatim
9529 #: ../fish/guestfish-actions.pod:2563
9530 #, no-wrap
9531 msgid ""
9532 " list-devices\n"
9533 "\n"
9534 msgstr ""
9535
9536 #. type: textblock
9537 #: ../fish/guestfish-actions.pod:2565 ../src/guestfs-actions.pod:3757
9538 msgid "List all the block devices."
9539 msgstr ""
9540
9541 #. type: textblock
9542 #: ../fish/guestfish-actions.pod:2567 ../src/guestfs-actions.pod:3759
9543 msgid "The full block device names are returned, eg. C</dev/sda>."
9544 msgstr ""
9545
9546 #. type: =head2
9547 #: ../fish/guestfish-actions.pod:2571
9548 msgid "list-dm-devices"
9549 msgstr ""
9550
9551 #. type: verbatim
9552 #: ../fish/guestfish-actions.pod:2573
9553 #, no-wrap
9554 msgid ""
9555 " list-dm-devices\n"
9556 "\n"
9557 msgstr ""
9558
9559 #. type: textblock
9560 #: ../fish/guestfish-actions.pod:2575 ../src/guestfs-actions.pod:3774
9561 msgid "List all device mapper devices."
9562 msgstr ""
9563
9564 #. type: textblock
9565 #: ../fish/guestfish-actions.pod:2577
9566 msgid ""
9567 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
9568 "previous call to L</luks-open>."
9569 msgstr ""
9570
9571 #. type: textblock
9572 #: ../fish/guestfish-actions.pod:2580
9573 msgid ""
9574 "Device mapper devices which correspond to logical volumes are I<not> "
9575 "returned in this list.  Call L</lvs> if you want to list logical volumes."
9576 msgstr ""
9577
9578 #. type: =head2
9579 #: ../fish/guestfish-actions.pod:2584
9580 msgid "list-filesystems"
9581 msgstr ""
9582
9583 #. type: verbatim
9584 #: ../fish/guestfish-actions.pod:2586
9585 #, no-wrap
9586 msgid ""
9587 " list-filesystems\n"
9588 "\n"
9589 msgstr ""
9590
9591 #. type: textblock
9592 #: ../fish/guestfish-actions.pod:2588 ../src/guestfs-actions.pod:3794
9593 msgid ""
9594 "This inspection command looks for filesystems on partitions, block devices "
9595 "and logical volumes, returning a list of devices containing filesystems and "
9596 "their type."
9597 msgstr ""
9598
9599 #. type: textblock
9600 #: ../fish/guestfish-actions.pod:2592 ../src/guestfs-actions.pod:3798
9601 msgid ""
9602 "The return value is a hash, where the keys are the devices containing "
9603 "filesystems, and the values are the filesystem types.  For example:"
9604 msgstr ""
9605
9606 #. type: verbatim
9607 #: ../fish/guestfish-actions.pod:2596 ../src/guestfs-actions.pod:3802
9608 #, no-wrap
9609 msgid ""
9610 " \"/dev/sda1\" => \"ntfs\"\n"
9611 " \"/dev/sda2\" => \"ext2\"\n"
9612 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
9613 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
9614 "\n"
9615 msgstr ""
9616
9617 #. type: textblock
9618 #: ../fish/guestfish-actions.pod:2601 ../src/guestfs-actions.pod:3807
9619 msgid ""
9620 "The value can have the special value \"unknown\", meaning the content of the "
9621 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
9622 msgstr ""
9623
9624 #. type: textblock
9625 #: ../fish/guestfish-actions.pod:2605
9626 msgid ""
9627 "This command runs other libguestfs commands, which might include L</mount> "
9628 "and L</umount>, and therefore you should use this soon after launch and only "
9629 "when nothing is mounted."
9630 msgstr ""
9631
9632 #. type: textblock
9633 #: ../fish/guestfish-actions.pod:2609
9634 msgid ""
9635 "Not all of the filesystems returned will be mountable.  In particular, swap "
9636 "partitions are returned in the list.  Also this command does not check that "
9637 "each filesystem found is valid and mountable, and some filesystems might be "
9638 "mountable but require special options.  Filesystems may not all belong to a "
9639 "single logical operating system (use L</inspect-os> to look for OSes)."
9640 msgstr ""
9641
9642 #. type: =head2
9643 #: ../fish/guestfish-actions.pod:2617
9644 msgid "list-partitions"
9645 msgstr ""
9646
9647 #. type: verbatim
9648 #: ../fish/guestfish-actions.pod:2619
9649 #, no-wrap
9650 msgid ""
9651 " list-partitions\n"
9652 "\n"
9653 msgstr ""
9654
9655 #. type: textblock
9656 #: ../fish/guestfish-actions.pod:2621 ../src/guestfs-actions.pod:3836
9657 msgid "List all the partitions detected on all block devices."
9658 msgstr ""
9659
9660 #. type: textblock
9661 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3838
9662 msgid "The full partition device names are returned, eg. C</dev/sda1>"
9663 msgstr ""
9664
9665 #. type: textblock
9666 #: ../fish/guestfish-actions.pod:2625
9667 msgid ""
9668 "This does not return logical volumes.  For that you will need to call L</"
9669 "lvs>."
9670 msgstr ""
9671
9672 #. type: =head2
9673 #: ../fish/guestfish-actions.pod:2630
9674 msgid "ll"
9675 msgstr ""
9676
9677 #. type: verbatim
9678 #: ../fish/guestfish-actions.pod:2632
9679 #, no-wrap
9680 msgid ""
9681 " ll directory\n"
9682 "\n"
9683 msgstr ""
9684
9685 #. type: textblock
9686 #: ../fish/guestfish-actions.pod:2634 ../src/guestfs-actions.pod:3857
9687 msgid ""
9688 "List the files in C<directory> (relative to the root directory, there is no "
9689 "cwd) in the format of 'ls -la'."
9690 msgstr ""
9691
9692 #. type: textblock
9693 #: ../fish/guestfish-actions.pod:2637 ../src/guestfs-actions.pod:3860
9694 msgid ""
9695 "This command is mostly useful for interactive sessions.  It is I<not> "
9696 "intended that you try to parse the output string."
9697 msgstr ""
9698
9699 #. type: =head2
9700 #: ../fish/guestfish-actions.pod:2640
9701 msgid "ln"
9702 msgstr ""
9703
9704 #. type: verbatim
9705 #: ../fish/guestfish-actions.pod:2642
9706 #, no-wrap
9707 msgid ""
9708 " ln target linkname\n"
9709 "\n"
9710 msgstr ""
9711
9712 #. type: textblock
9713 #: ../fish/guestfish-actions.pod:2644 ../src/guestfs-actions.pod:3875
9714 msgid "This command creates a hard link using the C<ln> command."
9715 msgstr ""
9716
9717 #. type: =head2
9718 #: ../fish/guestfish-actions.pod:2646
9719 msgid "ln-f"
9720 msgstr ""
9721
9722 #. type: verbatim
9723 #: ../fish/guestfish-actions.pod:2648
9724 #, no-wrap
9725 msgid ""
9726 " ln-f target linkname\n"
9727 "\n"
9728 msgstr ""
9729
9730 #. type: textblock
9731 #: ../fish/guestfish-actions.pod:2650 ../src/guestfs-actions.pod:3888
9732 msgid ""
9733 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
9734 "option removes the link (C<linkname>) if it exists already."
9735 msgstr ""
9736
9737 #. type: =head2
9738 #: ../fish/guestfish-actions.pod:2653
9739 msgid "ln-s"
9740 msgstr ""
9741
9742 #. type: verbatim
9743 #: ../fish/guestfish-actions.pod:2655
9744 #, no-wrap
9745 msgid ""
9746 " ln-s target linkname\n"
9747 "\n"
9748 msgstr ""
9749
9750 #. type: textblock
9751 #: ../fish/guestfish-actions.pod:2657 ../src/guestfs-actions.pod:3902
9752 msgid "This command creates a symbolic link using the C<ln -s> command."
9753 msgstr ""
9754
9755 #. type: =head2
9756 #: ../fish/guestfish-actions.pod:2659
9757 msgid "ln-sf"
9758 msgstr ""
9759
9760 #. type: verbatim
9761 #: ../fish/guestfish-actions.pod:2661
9762 #, no-wrap
9763 msgid ""
9764 " ln-sf target linkname\n"
9765 "\n"
9766 msgstr ""
9767
9768 #. type: textblock
9769 #: ../fish/guestfish-actions.pod:2663 ../src/guestfs-actions.pod:3915
9770 msgid ""
9771 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
9772 "option removes the link (C<linkname>) if it exists already."
9773 msgstr ""
9774
9775 #. type: =head2
9776 #: ../fish/guestfish-actions.pod:2666
9777 msgid "lremovexattr"
9778 msgstr ""
9779
9780 #. type: verbatim
9781 #: ../fish/guestfish-actions.pod:2668
9782 #, no-wrap
9783 msgid ""
9784 " lremovexattr xattr path\n"
9785 "\n"
9786 msgstr ""
9787
9788 #. type: textblock
9789 #: ../fish/guestfish-actions.pod:2670
9790 msgid ""
9791 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
9792 "it removes an extended attribute of the link itself."
9793 msgstr ""
9794
9795 #. type: =head2
9796 #: ../fish/guestfish-actions.pod:2674
9797 msgid "ls"
9798 msgstr ""
9799
9800 #. type: verbatim
9801 #: ../fish/guestfish-actions.pod:2676
9802 #, no-wrap
9803 msgid ""
9804 " ls directory\n"
9805 "\n"
9806 msgstr ""
9807
9808 #. type: textblock
9809 #: ../fish/guestfish-actions.pod:2678 ../src/guestfs-actions.pod:3943
9810 msgid ""
9811 "List the files in C<directory> (relative to the root directory, there is no "
9812 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
9813 msgstr ""
9814
9815 #. type: textblock
9816 #: ../fish/guestfish-actions.pod:2682
9817 msgid ""
9818 "This command is mostly useful for interactive sessions.  Programs should "
9819 "probably use L</readdir> instead."
9820 msgstr ""
9821
9822 #. type: =head2
9823 #: ../fish/guestfish-actions.pod:2685
9824 msgid "lsetxattr"
9825 msgstr ""
9826
9827 #. type: verbatim
9828 #: ../fish/guestfish-actions.pod:2687
9829 #, no-wrap
9830 msgid ""
9831 " lsetxattr xattr val vallen path\n"
9832 "\n"
9833 msgstr ""
9834
9835 #. type: textblock
9836 #: ../fish/guestfish-actions.pod:2689
9837 msgid ""
9838 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
9839 "sets an extended attribute of the link itself."
9840 msgstr ""
9841
9842 #. type: =head2
9843 #: ../fish/guestfish-actions.pod:2693
9844 msgid "lstat"
9845 msgstr ""
9846
9847 #. type: verbatim
9848 #: ../fish/guestfish-actions.pod:2695
9849 #, no-wrap
9850 msgid ""
9851 " lstat path\n"
9852 "\n"
9853 msgstr ""
9854
9855 #. type: textblock
9856 #: ../fish/guestfish-actions.pod:2697 ../fish/guestfish-actions.pod:4505
9857 #: ../src/guestfs-actions.pod:3979 ../src/guestfs-actions.pod:6758
9858 msgid "Returns file information for the given C<path>."
9859 msgstr ""
9860
9861 #. type: textblock
9862 #: ../fish/guestfish-actions.pod:2699
9863 msgid ""
9864 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
9865 "the link is stat-ed, not the file it refers to."
9866 msgstr ""
9867
9868 #. type: textblock
9869 #: ../fish/guestfish-actions.pod:2703 ../src/guestfs-actions.pod:3985
9870 msgid "This is the same as the C<lstat(2)> system call."
9871 msgstr ""
9872
9873 #. type: =head2
9874 #: ../fish/guestfish-actions.pod:2705
9875 msgid "lstatlist"
9876 msgstr ""
9877
9878 #. type: verbatim
9879 #: ../fish/guestfish-actions.pod:2707
9880 #, no-wrap
9881 msgid ""
9882 " lstatlist path 'names ...'\n"
9883 "\n"
9884 msgstr ""
9885
9886 #. type: textblock
9887 #: ../fish/guestfish-actions.pod:2709
9888 msgid ""
9889 "This call allows you to perform the L</lstat> operation on multiple files, "
9890 "where all files are in the directory C<path>.  C<names> is the list of files "
9891 "from this directory."
9892 msgstr ""
9893
9894 #. type: textblock
9895 #: ../fish/guestfish-actions.pod:2713 ../src/guestfs-actions.pod:4004
9896 msgid ""
9897 "On return you get a list of stat structs, with a one-to-one correspondence "
9898 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
9899 "then the C<ino> field of that structure is set to C<-1>."
9900 msgstr ""
9901
9902 #. type: textblock
9903 #: ../fish/guestfish-actions.pod:2718
9904 msgid ""
9905 "This call is intended for programs that want to efficiently list a directory "
9906 "contents without making many round-trips.  See also L</lxattrlist> for a "
9907 "similarly efficient call for getting extended attributes.  Very long "
9908 "directory listings might cause the protocol message size to be exceeded, "
9909 "causing this call to fail.  The caller must split up such requests into "
9910 "smaller groups of names."
9911 msgstr ""
9912
9913 #. type: =head2
9914 #: ../fish/guestfish-actions.pod:2726
9915 msgid "luks-add-key"
9916 msgstr ""
9917
9918 #. type: verbatim
9919 #: ../fish/guestfish-actions.pod:2728
9920 #, no-wrap
9921 msgid ""
9922 " luks-add-key device keyslot\n"
9923 "\n"
9924 msgstr ""
9925
9926 #. type: textblock
9927 #: ../fish/guestfish-actions.pod:2730 ../src/guestfs-actions.pod:4032
9928 msgid ""
9929 "This command adds a new key on LUKS device C<device>.  C<key> is any "
9930 "existing key, and is used to access the device.  C<newkey> is the new key to "
9931 "add.  C<keyslot> is the key slot that will be replaced."
9932 msgstr ""
9933
9934 #. type: textblock
9935 #: ../fish/guestfish-actions.pod:2735
9936 msgid ""
9937 "Note that if C<keyslot> already contains a key, then this command will "
9938 "fail.  You have to use L</luks-kill-slot> first to remove that key."
9939 msgstr ""
9940
9941 #. type: textblock
9942 #: ../fish/guestfish-actions.pod:2739 ../fish/guestfish-actions.pod:2761
9943 #: ../fish/guestfish-actions.pod:2774 ../fish/guestfish-actions.pod:2788
9944 #: ../fish/guestfish-actions.pod:2814 ../fish/guestfish-actions.pod:2824
9945 msgid ""
9946 "This command has one or more key or passphrase parameters.  Guestfish will "
9947 "prompt for these separately."
9948 msgstr ""
9949
9950 #. type: =head2
9951 #: ../fish/guestfish-actions.pod:2742
9952 msgid "luks-close"
9953 msgstr ""
9954
9955 #. type: verbatim
9956 #: ../fish/guestfish-actions.pod:2744
9957 #, no-wrap
9958 msgid ""
9959 " luks-close device\n"
9960 "\n"
9961 msgstr ""
9962
9963 #. type: textblock
9964 #: ../fish/guestfish-actions.pod:2746
9965 msgid ""
9966 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
9967 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
9968 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
9969 "block device."
9970 msgstr ""
9971
9972 #. type: =head2
9973 #: ../fish/guestfish-actions.pod:2752
9974 msgid "luks-format"
9975 msgstr ""
9976
9977 #. type: verbatim
9978 #: ../fish/guestfish-actions.pod:2754
9979 #, no-wrap
9980 msgid ""
9981 " luks-format device keyslot\n"
9982 "\n"
9983 msgstr ""
9984
9985 #. type: textblock
9986 #: ../fish/guestfish-actions.pod:2756 ../src/guestfs-actions.pod:4073
9987 msgid ""
9988 "This command erases existing data on C<device> and formats the device as a "
9989 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
9990 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
9991 msgstr ""
9992
9993 #. type: textblock
9994 #: ../fish/guestfish-actions.pod:2764 ../fish/guestfish-actions.pod:2777
9995 #: ../fish/guestfish-actions.pod:2864 ../fish/guestfish-actions.pod:3525
9996 #: ../fish/guestfish-actions.pod:4051 ../fish/guestfish-actions.pod:4376
9997 #: ../fish/guestfish-actions.pod:4399 ../fish/guestfish-actions.pod:4421
9998 #: ../fish/guestfish-actions.pod:5167 ../src/guestfs-actions.pod:4080
9999 #: ../src/guestfs-actions.pod:4103 ../src/guestfs-actions.pod:4246
10000 #: ../src/guestfs-actions.pod:5349 ../src/guestfs-actions.pod:6137
10001 #: ../src/guestfs-actions.pod:6565 ../src/guestfs-actions.pod:6595
10002 #: ../src/guestfs-actions.pod:6628 ../src/guestfs-actions.pod:7834
10003 msgid ""
10004 "B<This command is dangerous.  Without careful use you can easily destroy all "
10005 "your data>."
10006 msgstr ""
10007
10008 #. type: =head2
10009 #: ../fish/guestfish-actions.pod:2767
10010 msgid "luks-format-cipher"
10011 msgstr ""
10012
10013 #. type: verbatim
10014 #: ../fish/guestfish-actions.pod:2769
10015 #, no-wrap
10016 msgid ""
10017 " luks-format-cipher device keyslot cipher\n"
10018 "\n"
10019 msgstr ""
10020
10021 #. type: textblock
10022 #: ../fish/guestfish-actions.pod:2771
10023 msgid ""
10024 "This command is the same as L</luks-format> but it also allows you to set "
10025 "the C<cipher> used."
10026 msgstr ""
10027
10028 #. type: =head2
10029 #: ../fish/guestfish-actions.pod:2780
10030 msgid "luks-kill-slot"
10031 msgstr ""
10032
10033 #. type: verbatim
10034 #: ../fish/guestfish-actions.pod:2782
10035 #, no-wrap
10036 msgid ""
10037 " luks-kill-slot device keyslot\n"
10038 "\n"
10039 msgstr ""
10040
10041 #. type: textblock
10042 #: ../fish/guestfish-actions.pod:2784 ../src/guestfs-actions.pod:4120
10043 msgid ""
10044 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10045 "device C<device>.  C<key> must be one of the I<other> keys."
10046 msgstr ""
10047
10048 #. type: =head2
10049 #: ../fish/guestfish-actions.pod:2791
10050 msgid "luks-open"
10051 msgstr ""
10052
10053 #. type: verbatim
10054 #: ../fish/guestfish-actions.pod:2793
10055 #, no-wrap
10056 msgid ""
10057 " luks-open device mapname\n"
10058 "\n"
10059 msgstr ""
10060
10061 #. type: textblock
10062 #: ../fish/guestfish-actions.pod:2795 ../src/guestfs-actions.pod:4140
10063 msgid ""
10064 "This command opens a block device which has been encrypted according to the "
10065 "Linux Unified Key Setup (LUKS) standard."
10066 msgstr ""
10067
10068 #. type: textblock
10069 #: ../fish/guestfish-actions.pod:2798 ../src/guestfs-actions.pod:4143
10070 msgid "C<device> is the encrypted block device or partition."
10071 msgstr ""
10072
10073 #. type: textblock
10074 #: ../fish/guestfish-actions.pod:2800 ../src/guestfs-actions.pod:4145
10075 msgid ""
10076 "The caller must supply one of the keys associated with the LUKS block "
10077 "device, in the C<key> parameter."
10078 msgstr ""
10079
10080 #. type: textblock
10081 #: ../fish/guestfish-actions.pod:2803 ../src/guestfs-actions.pod:4148
10082 msgid ""
10083 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10084 "writes to this block device are decrypted from and encrypted to the "
10085 "underlying C<device> respectively."
10086 msgstr ""
10087
10088 #. type: textblock
10089 #: ../fish/guestfish-actions.pod:2807
10090 msgid ""
10091 "If this block device contains LVM volume groups, then calling L</vgscan> "
10092 "followed by L</vg-activate-all> will make them visible."
10093 msgstr ""
10094
10095 #. type: textblock
10096 #: ../fish/guestfish-actions.pod:2811
10097 msgid "Use L</list-dm-devices> to list all device mapper devices."
10098 msgstr ""
10099
10100 #. type: =head2
10101 #: ../fish/guestfish-actions.pod:2817
10102 msgid "luks-open-ro"
10103 msgstr ""
10104
10105 #. type: verbatim
10106 #: ../fish/guestfish-actions.pod:2819
10107 #, no-wrap
10108 msgid ""
10109 " luks-open-ro device mapname\n"
10110 "\n"
10111 msgstr ""
10112
10113 #. type: textblock
10114 #: ../fish/guestfish-actions.pod:2821
10115 msgid ""
10116 "This is the same as L</luks-open> except that a read-only mapping is created."
10117 msgstr ""
10118
10119 #. type: =head2
10120 #: ../fish/guestfish-actions.pod:2827
10121 msgid "lvcreate"
10122 msgstr ""
10123
10124 #. type: verbatim
10125 #: ../fish/guestfish-actions.pod:2829
10126 #, no-wrap
10127 msgid ""
10128 " lvcreate logvol volgroup mbytes\n"
10129 "\n"
10130 msgstr ""
10131
10132 #. type: textblock
10133 #: ../fish/guestfish-actions.pod:2831 ../src/guestfs-actions.pod:4194
10134 msgid ""
10135 "This creates an LVM logical volume called C<logvol> on the volume group "
10136 "C<volgroup>, with C<size> megabytes."
10137 msgstr ""
10138
10139 #. type: =head2
10140 #: ../fish/guestfish-actions.pod:2834
10141 msgid "lvm-canonical-lv-name"
10142 msgstr ""
10143
10144 #. type: verbatim
10145 #: ../fish/guestfish-actions.pod:2836
10146 #, no-wrap
10147 msgid ""
10148 " lvm-canonical-lv-name lvname\n"
10149 "\n"
10150 msgstr ""
10151
10152 #. type: textblock
10153 #: ../fish/guestfish-actions.pod:2838 ../src/guestfs-actions.pod:4207
10154 msgid ""
10155 "This converts alternative naming schemes for LVs that you might find to the "
10156 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10157 "LV>."
10158 msgstr ""
10159
10160 #. type: textblock
10161 #: ../fish/guestfish-actions.pod:2842 ../src/guestfs-actions.pod:4211
10162 msgid ""
10163 "This command returns an error if the C<lvname> parameter does not refer to a "
10164 "logical volume."
10165 msgstr ""
10166
10167 #. type: textblock
10168 #: ../fish/guestfish-actions.pod:2845
10169 msgid "See also L</is-lv>."
10170 msgstr ""
10171
10172 #. type: =head2
10173 #: ../fish/guestfish-actions.pod:2847
10174 msgid "lvm-clear-filter"
10175 msgstr ""
10176
10177 #. type: verbatim
10178 #: ../fish/guestfish-actions.pod:2849
10179 #, no-wrap
10180 msgid ""
10181 " lvm-clear-filter\n"
10182 "\n"
10183 msgstr ""
10184
10185 #. type: textblock
10186 #: ../fish/guestfish-actions.pod:2851
10187 msgid ""
10188 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
10189 "block device."
10190 msgstr ""
10191
10192 #. type: textblock
10193 #: ../fish/guestfish-actions.pod:2854 ../fish/guestfish-actions.pod:2885
10194 #: ../src/guestfs-actions.pod:4229 ../src/guestfs-actions.pod:4271
10195 msgid ""
10196 "This command also clears the LVM cache and performs a volume group scan."
10197 msgstr ""
10198
10199 #. type: =head2
10200 #: ../fish/guestfish-actions.pod:2857
10201 msgid "lvm-remove-all"
10202 msgstr ""
10203
10204 #. type: verbatim
10205 #: ../fish/guestfish-actions.pod:2859
10206 #, no-wrap
10207 msgid ""
10208 " lvm-remove-all\n"
10209 "\n"
10210 msgstr ""
10211
10212 #. type: textblock
10213 #: ../fish/guestfish-actions.pod:2861 ../src/guestfs-actions.pod:4241
10214 msgid ""
10215 "This command removes all LVM logical volumes, volume groups and physical "
10216 "volumes."
10217 msgstr ""
10218
10219 #. type: =head2
10220 #: ../fish/guestfish-actions.pod:2867
10221 msgid "lvm-set-filter"
10222 msgstr ""
10223
10224 #. type: verbatim
10225 #: ../fish/guestfish-actions.pod:2869
10226 #, no-wrap
10227 msgid ""
10228 " lvm-set-filter 'devices ...'\n"
10229 "\n"
10230 msgstr ""
10231
10232 #. type: textblock
10233 #: ../fish/guestfish-actions.pod:2871 ../src/guestfs-actions.pod:4257
10234 msgid ""
10235 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10236 "block devices in the list C<devices>, and will ignore all other attached "
10237 "block devices."
10238 msgstr ""
10239
10240 #. type: textblock
10241 #: ../fish/guestfish-actions.pod:2875 ../src/guestfs-actions.pod:4261
10242 msgid ""
10243 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10244 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10245 "there are two types of duplication possible: either cloned PVs/VGs which "
10246 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10247 "same name.  In normal operation you cannot create this situation, but you "
10248 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10249 "inside the LVM metadata."
10250 msgstr ""
10251
10252 #. type: textblock
10253 #: ../fish/guestfish-actions.pod:2888 ../src/guestfs-actions.pod:4274
10254 msgid "You can filter whole block devices or individual partitions."
10255 msgstr ""
10256
10257 #. type: textblock
10258 #: ../fish/guestfish-actions.pod:2890 ../src/guestfs-actions.pod:4276
10259 msgid ""
10260 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10261 "filesystem), even if you are not filtering out that VG."
10262 msgstr ""
10263
10264 #. type: =head2
10265 #: ../fish/guestfish-actions.pod:2894
10266 msgid "lvremove"
10267 msgstr ""
10268
10269 #. type: verbatim
10270 #: ../fish/guestfish-actions.pod:2896
10271 #, no-wrap
10272 msgid ""
10273 " lvremove device\n"
10274 "\n"
10275 msgstr ""
10276
10277 #. type: textblock
10278 #: ../fish/guestfish-actions.pod:2898 ../src/guestfs-actions.pod:4290
10279 msgid ""
10280 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10281 "LV, such as C</dev/VG/LV>."
10282 msgstr ""
10283
10284 #. type: textblock
10285 #: ../fish/guestfish-actions.pod:2901 ../src/guestfs-actions.pod:4293
10286 msgid ""
10287 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10288 "dev/VG>."
10289 msgstr ""
10290
10291 #. type: =head2
10292 #: ../fish/guestfish-actions.pod:2904
10293 msgid "lvrename"
10294 msgstr ""
10295
10296 #. type: verbatim
10297 #: ../fish/guestfish-actions.pod:2906
10298 #, no-wrap
10299 msgid ""
10300 " lvrename logvol newlogvol\n"
10301 "\n"
10302 msgstr ""
10303
10304 #. type: textblock
10305 #: ../fish/guestfish-actions.pod:2908 ../src/guestfs-actions.pod:4307
10306 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10307 msgstr ""
10308
10309 #. type: =head2
10310 #: ../fish/guestfish-actions.pod:2910
10311 msgid "lvresize"
10312 msgstr ""
10313
10314 #. type: verbatim
10315 #: ../fish/guestfish-actions.pod:2912
10316 #, no-wrap
10317 msgid ""
10318 " lvresize device mbytes\n"
10319 "\n"
10320 msgstr ""
10321
10322 #. type: textblock
10323 #: ../fish/guestfish-actions.pod:2914 ../src/guestfs-actions.pod:4320
10324 msgid ""
10325 "This resizes (expands or shrinks) an existing LVM logical volume to "
10326 "C<mbytes>.  When reducing, data in the reduced part is lost."
10327 msgstr ""
10328
10329 #. type: =head2
10330 #: ../fish/guestfish-actions.pod:2918
10331 msgid "lvresize-free"
10332 msgstr ""
10333
10334 #. type: verbatim
10335 #: ../fish/guestfish-actions.pod:2920
10336 #, no-wrap
10337 msgid ""
10338 " lvresize-free lv percent\n"
10339 "\n"
10340 msgstr ""
10341
10342 #. type: textblock
10343 #: ../fish/guestfish-actions.pod:2922 ../src/guestfs-actions.pod:4335
10344 msgid ""
10345 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10346 "remaining free space in the volume group.  Commonly you would call this with "
10347 "pc = 100 which expands the logical volume as much as possible, using all "
10348 "remaining free space in the volume group."
10349 msgstr ""
10350
10351 #. type: =head2
10352 #: ../fish/guestfish-actions.pod:2928
10353 msgid "lvs"
10354 msgstr ""
10355
10356 #. type: verbatim
10357 #: ../fish/guestfish-actions.pod:2930
10358 #, no-wrap
10359 msgid ""
10360 " lvs\n"
10361 "\n"
10362 msgstr ""
10363
10364 #. type: textblock
10365 #: ../fish/guestfish-actions.pod:2932 ../src/guestfs-actions.pod:4350
10366 msgid ""
10367 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10368 "(8)> command."
10369 msgstr ""
10370
10371 #. type: textblock
10372 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4353
10373 msgid ""
10374 "This returns a list of the logical volume device names (eg. C</dev/"
10375 "VolGroup00/LogVol00>)."
10376 msgstr ""
10377
10378 #. type: textblock
10379 #: ../fish/guestfish-actions.pod:2938
10380 msgid "See also L</lvs-full>, L</list-filesystems>."
10381 msgstr ""
10382
10383 #. type: =head2
10384 #: ../fish/guestfish-actions.pod:2940
10385 msgid "lvs-full"
10386 msgstr ""
10387
10388 #. type: verbatim
10389 #: ../fish/guestfish-actions.pod:2942
10390 #, no-wrap
10391 msgid ""
10392 " lvs-full\n"
10393 "\n"
10394 msgstr ""
10395
10396 #. type: textblock
10397 #: ../fish/guestfish-actions.pod:2944 ../src/guestfs-actions.pod:4369
10398 msgid ""
10399 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10400 "(8)> command.  The \"full\" version includes all fields."
10401 msgstr ""
10402
10403 #. type: =head2
10404 #: ../fish/guestfish-actions.pod:2947
10405 msgid "lvuuid"
10406 msgstr ""
10407
10408 #. type: verbatim
10409 #: ../fish/guestfish-actions.pod:2949
10410 #, no-wrap
10411 msgid ""
10412 " lvuuid device\n"
10413 "\n"
10414 msgstr ""
10415
10416 #. type: textblock
10417 #: ../fish/guestfish-actions.pod:2951 ../src/guestfs-actions.pod:4384
10418 msgid "This command returns the UUID of the LVM LV C<device>."
10419 msgstr ""
10420
10421 #. type: =head2
10422 #: ../fish/guestfish-actions.pod:2953
10423 msgid "lxattrlist"
10424 msgstr ""
10425
10426 #. type: verbatim
10427 #: ../fish/guestfish-actions.pod:2955
10428 #, no-wrap
10429 msgid ""
10430 " lxattrlist path 'names ...'\n"
10431 "\n"
10432 msgstr ""
10433
10434 #. type: textblock
10435 #: ../fish/guestfish-actions.pod:2957 ../src/guestfs-actions.pod:4398
10436 msgid ""
10437 "This call allows you to get the extended attributes of multiple files, where "
10438 "all files are in the directory C<path>.  C<names> is the list of files from "
10439 "this directory."
10440 msgstr ""
10441
10442 #. type: textblock
10443 #: ../fish/guestfish-actions.pod:2961 ../src/guestfs-actions.pod:4402
10444 msgid ""
10445 "On return you get a flat list of xattr structs which must be interpreted "
10446 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
10447 "C<attrval> in this struct is zero-length to indicate there was an error "
10448 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
10449 "number (the number of following attributes for this file, which could be C<"
10450 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
10451 "for the first named file.  This repeats for the second and subsequent files."
10452 msgstr ""
10453
10454 #. type: textblock
10455 #: ../fish/guestfish-actions.pod:2971
10456 msgid ""
10457 "This call is intended for programs that want to efficiently list a directory "
10458 "contents without making many round-trips.  See also L</lstatlist> for a "
10459 "similarly efficient call for getting standard stats.  Very long directory "
10460 "listings might cause the protocol message size to be exceeded, causing this "
10461 "call to fail.  The caller must split up such requests into smaller groups of "
10462 "names."
10463 msgstr ""
10464
10465 #. type: =head2
10466 #: ../fish/guestfish-actions.pod:2979
10467 msgid "mkdir"
10468 msgstr ""
10469
10470 #. type: verbatim
10471 #: ../fish/guestfish-actions.pod:2981
10472 #, no-wrap
10473 msgid ""
10474 " mkdir path\n"
10475 "\n"
10476 msgstr ""
10477
10478 #. type: textblock
10479 #: ../fish/guestfish-actions.pod:2983 ../src/guestfs-actions.pod:4432
10480 msgid "Create a directory named C<path>."
10481 msgstr ""
10482
10483 #. type: =head2
10484 #: ../fish/guestfish-actions.pod:2985
10485 msgid "mkdir-mode"
10486 msgstr ""
10487
10488 #. type: verbatim
10489 #: ../fish/guestfish-actions.pod:2987
10490 #, no-wrap
10491 msgid ""
10492 " mkdir-mode path mode\n"
10493 "\n"
10494 msgstr ""
10495
10496 #. type: textblock
10497 #: ../fish/guestfish-actions.pod:2989 ../src/guestfs-actions.pod:4445
10498 msgid ""
10499 "This command creates a directory, setting the initial permissions of the "
10500 "directory to C<mode>."
10501 msgstr ""
10502
10503 #. type: textblock
10504 #: ../fish/guestfish-actions.pod:2992 ../src/guestfs-actions.pod:4448
10505 msgid ""
10506 "For common Linux filesystems, the actual mode which is set will be C<mode & "
10507 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
10508 "other ways."
10509 msgstr ""
10510
10511 #. type: textblock
10512 #: ../fish/guestfish-actions.pod:2996
10513 msgid "See also L</mkdir>, L</umask>"
10514 msgstr ""
10515
10516 #. type: =head2
10517 #: ../fish/guestfish-actions.pod:2998
10518 msgid "mkdir-p"
10519 msgstr ""
10520
10521 #. type: verbatim
10522 #: ../fish/guestfish-actions.pod:3000
10523 #, no-wrap
10524 msgid ""
10525 " mkdir-p path\n"
10526 "\n"
10527 msgstr ""
10528
10529 #. type: textblock
10530 #: ../fish/guestfish-actions.pod:3002 ../src/guestfs-actions.pod:4464
10531 msgid ""
10532 "Create a directory named C<path>, creating any parent directories as "
10533 "necessary.  This is like the C<mkdir -p> shell command."
10534 msgstr ""
10535
10536 #. type: =head2
10537 #: ../fish/guestfish-actions.pod:3005
10538 msgid "mkdtemp"
10539 msgstr ""
10540
10541 #. type: verbatim
10542 #: ../fish/guestfish-actions.pod:3007
10543 #, no-wrap
10544 msgid ""
10545 " mkdtemp template\n"
10546 "\n"
10547 msgstr ""
10548
10549 #. type: textblock
10550 #: ../fish/guestfish-actions.pod:3009 ../src/guestfs-actions.pod:4477
10551 msgid ""
10552 "This command creates a temporary directory.  The C<template> parameter "
10553 "should be a full pathname for the temporary directory name with the final "
10554 "six characters being \"XXXXXX\"."
10555 msgstr ""
10556
10557 #. type: textblock
10558 #: ../fish/guestfish-actions.pod:3014 ../src/guestfs-actions.pod:4482
10559 msgid ""
10560 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
10561 "being suitable for Windows filesystems."
10562 msgstr ""
10563
10564 #. type: textblock
10565 #: ../fish/guestfish-actions.pod:3017 ../src/guestfs-actions.pod:4485
10566 msgid "The name of the temporary directory that was created is returned."
10567 msgstr ""
10568
10569 #. type: textblock
10570 #: ../fish/guestfish-actions.pod:3020 ../src/guestfs-actions.pod:4488
10571 msgid "The temporary directory is created with mode 0700 and is owned by root."
10572 msgstr ""
10573
10574 #. type: textblock
10575 #: ../fish/guestfish-actions.pod:3023 ../src/guestfs-actions.pod:4491
10576 msgid ""
10577 "The caller is responsible for deleting the temporary directory and its "
10578 "contents after use."
10579 msgstr ""
10580
10581 #. type: textblock
10582 #: ../fish/guestfish-actions.pod:3026 ../src/guestfs-actions.pod:4494
10583 msgid "See also: L<mkdtemp(3)>"
10584 msgstr ""
10585
10586 #. type: =head2
10587 #: ../fish/guestfish-actions.pod:3028
10588 msgid "mke2fs-J"
10589 msgstr ""
10590
10591 #. type: verbatim
10592 #: ../fish/guestfish-actions.pod:3030
10593 #, no-wrap
10594 msgid ""
10595 " mke2fs-J fstype blocksize device journal\n"
10596 "\n"
10597 msgstr ""
10598
10599 #. type: textblock
10600 #: ../fish/guestfish-actions.pod:3032 ../src/guestfs-actions.pod:4510
10601 msgid ""
10602 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10603 "C<journal>.  It is equivalent to the command:"
10604 msgstr ""
10605
10606 #. type: verbatim
10607 #: ../fish/guestfish-actions.pod:3036 ../src/guestfs-actions.pod:4514
10608 #, no-wrap
10609 msgid ""
10610 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
10611 "\n"
10612 msgstr ""
10613
10614 #. type: textblock
10615 #: ../fish/guestfish-actions.pod:3038
10616 msgid "See also L</mke2journal>."
10617 msgstr ""
10618
10619 #. type: =head2
10620 #: ../fish/guestfish-actions.pod:3040
10621 msgid "mke2fs-JL"
10622 msgstr ""
10623
10624 #. type: verbatim
10625 #: ../fish/guestfish-actions.pod:3042
10626 #, no-wrap
10627 msgid ""
10628 " mke2fs-JL fstype blocksize device label\n"
10629 "\n"
10630 msgstr ""
10631
10632 #. type: textblock
10633 #: ../fish/guestfish-actions.pod:3044 ../src/guestfs-actions.pod:4531
10634 msgid ""
10635 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10636 "the journal labeled C<label>."
10637 msgstr ""
10638
10639 #. type: textblock
10640 #: ../fish/guestfish-actions.pod:3047
10641 msgid "See also L</mke2journal-L>."
10642 msgstr ""
10643
10644 #. type: =head2
10645 #: ../fish/guestfish-actions.pod:3049
10646 msgid "mke2fs-JU"
10647 msgstr ""
10648
10649 #. type: verbatim
10650 #: ../fish/guestfish-actions.pod:3051
10651 #, no-wrap
10652 msgid ""
10653 " mke2fs-JU fstype blocksize device uuid\n"
10654 "\n"
10655 msgstr ""
10656
10657 #. type: textblock
10658 #: ../fish/guestfish-actions.pod:3053 ../src/guestfs-actions.pod:4549
10659 msgid ""
10660 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10661 "the journal with UUID C<uuid>."
10662 msgstr ""
10663
10664 #. type: textblock
10665 #: ../fish/guestfish-actions.pod:3056
10666 msgid "See also L</mke2journal-U>."
10667 msgstr ""
10668
10669 #. type: =head2
10670 #: ../fish/guestfish-actions.pod:3058
10671 msgid "mke2journal"
10672 msgstr ""
10673
10674 #. type: verbatim
10675 #: ../fish/guestfish-actions.pod:3060
10676 #, no-wrap
10677 msgid ""
10678 " mke2journal blocksize device\n"
10679 "\n"
10680 msgstr ""
10681
10682 #. type: textblock
10683 #: ../fish/guestfish-actions.pod:3062 ../src/guestfs-actions.pod:4565
10684 msgid ""
10685 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
10686 "command:"
10687 msgstr ""
10688
10689 #. type: verbatim
10690 #: ../fish/guestfish-actions.pod:3065 ../src/guestfs-actions.pod:4568
10691 #, no-wrap
10692 msgid ""
10693 " mke2fs -O journal_dev -b blocksize device\n"
10694 "\n"
10695 msgstr ""
10696
10697 #. type: =head2
10698 #: ../fish/guestfish-actions.pod:3067
10699 msgid "mke2journal-L"
10700 msgstr ""
10701
10702 #. type: verbatim
10703 #: ../fish/guestfish-actions.pod:3069
10704 #, no-wrap
10705 msgid ""
10706 " mke2journal-L blocksize label device\n"
10707 "\n"
10708 msgstr ""
10709
10710 #. type: textblock
10711 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4582
10712 msgid "This creates an ext2 external journal on C<device> with label C<label>."
10713 msgstr ""
10714
10715 #. type: =head2
10716 #: ../fish/guestfish-actions.pod:3073
10717 msgid "mke2journal-U"
10718 msgstr ""
10719
10720 #. type: verbatim
10721 #: ../fish/guestfish-actions.pod:3075
10722 #, no-wrap
10723 msgid ""
10724 " mke2journal-U blocksize uuid device\n"
10725 "\n"
10726 msgstr ""
10727
10728 #. type: textblock
10729 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4596
10730 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
10731 msgstr ""
10732
10733 #. type: =head2
10734 #: ../fish/guestfish-actions.pod:3079
10735 msgid "mkfifo"
10736 msgstr ""
10737
10738 #. type: verbatim
10739 #: ../fish/guestfish-actions.pod:3081
10740 #, no-wrap
10741 msgid ""
10742 " mkfifo mode path\n"
10743 "\n"
10744 msgstr ""
10745
10746 #. type: textblock
10747 #: ../fish/guestfish-actions.pod:3083
10748 msgid ""
10749 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
10750 "is just a convenient wrapper around L</mknod>."
10751 msgstr ""
10752
10753 #. type: =head2
10754 #: ../fish/guestfish-actions.pod:3089
10755 msgid "mkfs"
10756 msgstr ""
10757
10758 #. type: verbatim
10759 #: ../fish/guestfish-actions.pod:3091
10760 #, no-wrap
10761 msgid ""
10762 " mkfs fstype device\n"
10763 "\n"
10764 msgstr ""
10765
10766 #. type: textblock
10767 #: ../fish/guestfish-actions.pod:3093 ../src/guestfs-actions.pod:4626
10768 msgid ""
10769 "This creates a filesystem on C<device> (usually a partition or LVM logical "
10770 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
10771 msgstr ""
10772
10773 #. type: =head2
10774 #: ../fish/guestfish-actions.pod:3097
10775 msgid "mkfs-b"
10776 msgstr ""
10777
10778 #. type: verbatim
10779 #: ../fish/guestfish-actions.pod:3099
10780 #, no-wrap
10781 msgid ""
10782 " mkfs-b fstype blocksize device\n"
10783 "\n"
10784 msgstr ""
10785
10786 #. type: textblock
10787 #: ../fish/guestfish-actions.pod:3101
10788 msgid ""
10789 "This call is similar to L</mkfs>, but it allows you to control the block "
10790 "size of the resulting filesystem.  Supported block sizes depend on the "
10791 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
10792 msgstr ""
10793
10794 #. type: textblock
10795 #: ../fish/guestfish-actions.pod:3106 ../fish/guestfish-actions.pod:3133
10796 #: ../src/guestfs-actions.pod:4647 ../src/guestfs-actions.pod:4692
10797 msgid ""
10798 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
10799 "cluster size."
10800 msgstr ""
10801
10802 #. type: textblock
10803 #: ../fish/guestfish-actions.pod:3109
10804 msgid ""
10805 "This function is deprecated.  In new code, use the L</mkfs_opts> call "
10806 "instead."
10807 msgstr ""
10808
10809 #. type: =head2
10810 #: ../fish/guestfish-actions.pod:3116
10811 msgid "mkfs-opts"
10812 msgstr ""
10813
10814 #. type: verbatim
10815 #: ../fish/guestfish-actions.pod:3118
10816 #, no-wrap
10817 msgid ""
10818 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
10819 "\n"
10820 msgstr ""
10821
10822 #. type: textblock
10823 #: ../fish/guestfish-actions.pod:3120 ../src/guestfs-actions.pod:4679
10824 msgid ""
10825 "This function creates a filesystem on C<device>.  The filesystem type is "
10826 "C<fstype>, for example C<ext3>."
10827 msgstr ""
10828
10829 #. type: =item
10830 #: ../fish/guestfish-actions.pod:3127 ../src/guestfs-actions.pod:4686
10831 msgid "C<blocksize>"
10832 msgstr ""
10833
10834 #. type: textblock
10835 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4688
10836 msgid ""
10837 "The filesystem block size.  Supported block sizes depend on the filesystem "
10838 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
10839 "filesystems."
10840 msgstr ""
10841
10842 #. type: textblock
10843 #: ../fish/guestfish-actions.pod:3136 ../src/guestfs-actions.pod:4695
10844 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
10845 msgstr ""
10846
10847 #. type: =item
10848 #: ../fish/guestfish-actions.pod:3138 ../src/guestfs-actions.pod:4697
10849 msgid "C<features>"
10850 msgstr ""
10851
10852 #. type: textblock
10853 #: ../fish/guestfish-actions.pod:3140 ../src/guestfs-actions.pod:4699
10854 msgid "This passes the I<-O> parameter to the external mkfs program."
10855 msgstr ""
10856
10857 #. type: textblock
10858 #: ../fish/guestfish-actions.pod:3142 ../src/guestfs-actions.pod:4701
10859 msgid ""
10860 "For certain filesystem types, this allows extra filesystem features to be "
10861 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
10862 msgstr ""
10863
10864 #. type: textblock
10865 #: ../fish/guestfish-actions.pod:3146 ../src/guestfs-actions.pod:4705
10866 msgid ""
10867 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
10868 "type."
10869 msgstr ""
10870
10871 #. type: =item
10872 #: ../fish/guestfish-actions.pod:3149 ../src/guestfs-actions.pod:4708
10873 msgid "C<inode>"
10874 msgstr ""
10875
10876 #. type: textblock
10877 #: ../fish/guestfish-actions.pod:3151 ../src/guestfs-actions.pod:4710
10878 msgid ""
10879 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
10880 "sets the inode size (only for ext2/3/4 filesystems at present)."
10881 msgstr ""
10882
10883 #. type: =item
10884 #: ../fish/guestfish-actions.pod:3154 ../src/guestfs-actions.pod:4713
10885 msgid "C<sectorsize>"
10886 msgstr ""
10887
10888 #. type: textblock
10889 #: ../fish/guestfish-actions.pod:3156 ../src/guestfs-actions.pod:4715
10890 msgid ""
10891 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
10892 "sets sector size for ufs filesystem."
10893 msgstr ""
10894
10895 #. type: =head2
10896 #: ../fish/guestfish-actions.pod:3163
10897 msgid "mkmountpoint"
10898 msgstr ""
10899
10900 #. type: verbatim
10901 #: ../fish/guestfish-actions.pod:3165
10902 #, no-wrap
10903 msgid ""
10904 " mkmountpoint exemptpath\n"
10905 "\n"
10906 msgstr ""
10907
10908 #. type: textblock
10909 #: ../fish/guestfish-actions.pod:3167
10910 msgid ""
10911 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
10912 "to create extra mountpoints before mounting the first filesystem."
10913 msgstr ""
10914
10915 #. type: textblock
10916 #: ../fish/guestfish-actions.pod:3171 ../src/guestfs-actions.pod:4758
10917 msgid ""
10918 "These calls are I<only> necessary in some very limited circumstances, mainly "
10919 "the case where you want to mount a mix of unrelated and/or read-only "
10920 "filesystems together."
10921 msgstr ""
10922
10923 #. type: textblock
10924 #: ../fish/guestfish-actions.pod:3175 ../src/guestfs-actions.pod:4762
10925 msgid ""
10926 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
10927 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
10928 "inside that.  You can unpack this as follows in guestfish:"
10929 msgstr ""
10930
10931 #. type: verbatim
10932 #: ../fish/guestfish-actions.pod:3180 ../src/guestfs-actions.pod:4767
10933 #, no-wrap
10934 msgid ""
10935 " add-ro Fedora-11-i686-Live.iso\n"
10936 " run\n"
10937 " mkmountpoint /cd\n"
10938 " mkmountpoint /sqsh\n"
10939 " mkmountpoint /ext3fs\n"
10940 " mount /dev/sda /cd\n"
10941 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
10942 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
10943 "\n"
10944 msgstr ""
10945
10946 #. type: textblock
10947 #: ../fish/guestfish-actions.pod:3189 ../src/guestfs-actions.pod:4776
10948 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
10949 msgstr ""
10950
10951 #. type: textblock
10952 #: ../fish/guestfish-actions.pod:3191
10953 msgid ""
10954 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
10955 "unexpected errors if you try to mix these calls.  It is safest to manually "
10956 "unmount filesystems and remove mountpoints after use."
10957 msgstr ""
10958
10959 #. type: textblock
10960 #: ../fish/guestfish-actions.pod:3195
10961 msgid ""
10962 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
10963 "for this to work for manual mountpoints, you must ensure that the innermost "
10964 "mountpoints have the longest pathnames, as in the example code above."
10965 msgstr ""
10966
10967 #. type: textblock
10968 #: ../fish/guestfish-actions.pod:3200 ../src/guestfs-actions.pod:4787
10969 msgid ""
10970 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
10971 msgstr ""
10972
10973 #. type: textblock
10974 #: ../fish/guestfish-actions.pod:3202
10975 msgid ""
10976 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
10977 "L</umount-all> to be called when the handle is closed which can also trigger "
10978 "these issues."
10979 msgstr ""
10980
10981 #. type: =head2
10982 #: ../fish/guestfish-actions.pod:3206
10983 msgid "mknod"
10984 msgstr ""
10985
10986 #. type: verbatim
10987 #: ../fish/guestfish-actions.pod:3208
10988 #, no-wrap
10989 msgid ""
10990 " mknod mode devmajor devminor path\n"
10991 "\n"
10992 msgstr ""
10993
10994 #. type: textblock
10995 #: ../fish/guestfish-actions.pod:3210 ../src/guestfs-actions.pod:4806
10996 msgid ""
10997 "This call creates block or character special devices, or named pipes (FIFOs)."
10998 msgstr ""
10999
11000 #. type: textblock
11001 #: ../fish/guestfish-actions.pod:3213 ../src/guestfs-actions.pod:4809
11002 msgid ""
11003 "The C<mode> parameter should be the mode, using the standard constants.  "
11004 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11005 "used when creating block and character special devices."
11006 msgstr ""
11007
11008 #. type: textblock
11009 #: ../fish/guestfish-actions.pod:3218
11010 msgid ""
11011 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11012 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11013 "regular file).  These constants are available in the standard Linux header "
11014 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
11015 "wrappers around this command which bitwise OR in the appropriate constant "
11016 "for you."
11017 msgstr ""
11018
11019 #. type: =head2
11020 #: ../fish/guestfish-actions.pod:3228
11021 msgid "mknod-b"
11022 msgstr ""
11023
11024 #. type: verbatim
11025 #: ../fish/guestfish-actions.pod:3230
11026 #, no-wrap
11027 msgid ""
11028 " mknod-b mode devmajor devminor path\n"
11029 "\n"
11030 msgstr ""
11031
11032 #. type: textblock
11033 #: ../fish/guestfish-actions.pod:3232
11034 msgid ""
11035 "This call creates a block device node called C<path> with mode C<mode> and "
11036 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11037 "wrapper around L</mknod>."
11038 msgstr ""
11039
11040 #. type: =head2
11041 #: ../fish/guestfish-actions.pod:3238
11042 msgid "mknod-c"
11043 msgstr ""
11044
11045 #. type: verbatim
11046 #: ../fish/guestfish-actions.pod:3240
11047 #, no-wrap
11048 msgid ""
11049 " mknod-c mode devmajor devminor path\n"
11050 "\n"
11051 msgstr ""
11052
11053 #. type: textblock
11054 #: ../fish/guestfish-actions.pod:3242
11055 msgid ""
11056 "This call creates a char device node called C<path> with mode C<mode> and "
11057 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11058 "wrapper around L</mknod>."
11059 msgstr ""
11060
11061 #. type: =head2
11062 #: ../fish/guestfish-actions.pod:3248
11063 msgid "mkswap"
11064 msgstr ""
11065
11066 #. type: verbatim
11067 #: ../fish/guestfish-actions.pod:3250
11068 #, no-wrap
11069 msgid ""
11070 " mkswap device\n"
11071 "\n"
11072 msgstr ""
11073
11074 #. type: textblock
11075 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:4872
11076 msgid "Create a swap partition on C<device>."
11077 msgstr ""
11078
11079 #. type: =head2
11080 #: ../fish/guestfish-actions.pod:3254
11081 msgid "mkswap-L"
11082 msgstr ""
11083
11084 #. type: verbatim
11085 #: ../fish/guestfish-actions.pod:3256
11086 #, no-wrap
11087 msgid ""
11088 " mkswap-L label device\n"
11089 "\n"
11090 msgstr ""
11091
11092 #. type: textblock
11093 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:4885
11094 msgid "Create a swap partition on C<device> with label C<label>."
11095 msgstr ""
11096
11097 #. type: textblock
11098 #: ../fish/guestfish-actions.pod:3260 ../src/guestfs-actions.pod:4887
11099 msgid ""
11100 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11101 "sda>), just to a partition.  This appears to be a limitation of the kernel "
11102 "or swap tools."
11103 msgstr ""
11104
11105 #. type: =head2
11106 #: ../fish/guestfish-actions.pod:3264
11107 msgid "mkswap-U"
11108 msgstr ""
11109
11110 #. type: verbatim
11111 #: ../fish/guestfish-actions.pod:3266
11112 #, no-wrap
11113 msgid ""
11114 " mkswap-U uuid device\n"
11115 "\n"
11116 msgstr ""
11117
11118 #. type: textblock
11119 #: ../fish/guestfish-actions.pod:3268 ../src/guestfs-actions.pod:4902
11120 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11121 msgstr ""
11122
11123 #. type: =head2
11124 #: ../fish/guestfish-actions.pod:3270
11125 msgid "mkswap-file"
11126 msgstr ""
11127
11128 #. type: verbatim
11129 #: ../fish/guestfish-actions.pod:3272
11130 #, no-wrap
11131 msgid ""
11132 " mkswap-file path\n"
11133 "\n"
11134 msgstr ""
11135
11136 #. type: textblock
11137 #: ../fish/guestfish-actions.pod:3274 ../src/guestfs-actions.pod:4914
11138 msgid "Create a swap file."
11139 msgstr ""
11140
11141 #. type: textblock
11142 #: ../fish/guestfish-actions.pod:3276
11143 msgid ""
11144 "This command just writes a swap file signature to an existing file.  To "
11145 "create the file itself, use something like L</fallocate>."
11146 msgstr ""
11147
11148 #. type: =head2
11149 #: ../fish/guestfish-actions.pod:3279
11150 msgid "modprobe"
11151 msgstr ""
11152
11153 #. type: verbatim
11154 #: ../fish/guestfish-actions.pod:3281
11155 #, no-wrap
11156 msgid ""
11157 " modprobe modulename\n"
11158 "\n"
11159 msgstr ""
11160
11161 #. type: textblock
11162 #: ../fish/guestfish-actions.pod:3283 ../src/guestfs-actions.pod:4929
11163 msgid "This loads a kernel module in the appliance."
11164 msgstr ""
11165
11166 #. type: textblock
11167 #: ../fish/guestfish-actions.pod:3285 ../src/guestfs-actions.pod:4931
11168 msgid ""
11169 "The kernel module must have been whitelisted when libguestfs was built (see "
11170 "C<appliance/kmod.whitelist.in> in the source)."
11171 msgstr ""
11172
11173 #. type: =head2
11174 #: ../fish/guestfish-actions.pod:3288
11175 msgid "mount"
11176 msgstr ""
11177
11178 #. type: verbatim
11179 #: ../fish/guestfish-actions.pod:3290
11180 #, no-wrap
11181 msgid ""
11182 " mount device mountpoint\n"
11183 "\n"
11184 msgstr ""
11185
11186 #. type: textblock
11187 #: ../fish/guestfish-actions.pod:3292 ../src/guestfs-actions.pod:4945
11188 msgid ""
11189 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11190 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11191 "those block devices contain partitions, they will have the usual names (eg. "
11192 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11193 msgstr ""
11194
11195 #. type: textblock
11196 #: ../fish/guestfish-actions.pod:3298 ../src/guestfs-actions.pod:4951
11197 msgid ""
11198 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11199 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11200 "mounted on directories which already exist."
11201 msgstr ""
11202
11203 #. type: textblock
11204 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:4956
11205 msgid ""
11206 "The mounted filesystem is writable, if we have sufficient permissions on the "
11207 "underlying device."
11208 msgstr ""
11209
11210 #. type: textblock
11211 #: ../fish/guestfish-actions.pod:3306
11212 msgid ""
11213 "B<Important note:> When you use this call, the filesystem options C<sync> "
11214 "and C<noatime> are set implicitly.  This was originally done because we "
11215 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11216 "very large negative performance impact and negligible effect on "
11217 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
11218 "code that needs performance, and instead use L</mount-options> (use an empty "
11219 "string for the first parameter if you don't want any options)."
11220 msgstr ""
11221
11222 #. type: textblock
11223 #: ../fish/guestfish-actions.pod:3316
11224 msgid ""
11225 "This function is deprecated.  In new code, use the L</mount_options> call "
11226 "instead."
11227 msgstr ""
11228
11229 #. type: =head2
11230 #: ../fish/guestfish-actions.pod:3323
11231 msgid "mount-9p"
11232 msgstr ""
11233
11234 #. type: verbatim
11235 #: ../fish/guestfish-actions.pod:3325
11236 #, no-wrap
11237 msgid ""
11238 " mount-9p mounttag mountpoint [options:..]\n"
11239 "\n"
11240 msgstr ""
11241
11242 #. type: textblock
11243 #: ../fish/guestfish-actions.pod:3327 ../src/guestfs-actions.pod:4995
11244 msgid ""
11245 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
11246 "C<mountpoint>."
11247 msgstr ""
11248
11249 #. type: textblock
11250 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:4998
11251 msgid ""
11252 "If required, C<trans=virtio> will be automatically added to the options.  "
11253 "Any other options required can be passed in the optional C<options> "
11254 "parameter."
11255 msgstr ""
11256
11257 #. type: =head2
11258 #: ../fish/guestfish-actions.pod:3336
11259 msgid "mount-loop"
11260 msgstr ""
11261
11262 #. type: verbatim
11263 #: ../fish/guestfish-actions.pod:3338
11264 #, no-wrap
11265 msgid ""
11266 " mount-loop file mountpoint\n"
11267 "\n"
11268 msgstr ""
11269
11270 #. type: textblock
11271 #: ../fish/guestfish-actions.pod:3340 ../src/guestfs-actions.pod:5037
11272 msgid ""
11273 "This command lets you mount C<file> (a filesystem image in a file) on a "
11274 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11275 "mountpoint>."
11276 msgstr ""
11277
11278 #. type: =head2
11279 #: ../fish/guestfish-actions.pod:3344
11280 msgid "mount-options"
11281 msgstr ""
11282
11283 #. type: verbatim
11284 #: ../fish/guestfish-actions.pod:3346
11285 #, no-wrap
11286 msgid ""
11287 " mount-options options device mountpoint\n"
11288 "\n"
11289 msgstr ""
11290
11291 #. type: textblock
11292 #: ../fish/guestfish-actions.pod:3348
11293 msgid ""
11294 "This is the same as the L</mount> command, but it allows you to set the "
11295 "mount options as for the L<mount(8)> I<-o> flag."
11296 msgstr ""
11297
11298 #. type: textblock
11299 #: ../fish/guestfish-actions.pod:3352 ../src/guestfs-actions.pod:5057
11300 msgid ""
11301 "If the C<options> parameter is an empty string, then no options are passed "
11302 "(all options default to whatever the filesystem uses)."
11303 msgstr ""
11304
11305 #. type: =head2
11306 #: ../fish/guestfish-actions.pod:3356
11307 msgid "mount-ro"
11308 msgstr ""
11309
11310 #. type: verbatim
11311 #: ../fish/guestfish-actions.pod:3358
11312 #, no-wrap
11313 msgid ""
11314 " mount-ro device mountpoint\n"
11315 "\n"
11316 msgstr ""
11317
11318 #. type: textblock
11319 #: ../fish/guestfish-actions.pod:3360
11320 msgid ""
11321 "This is the same as the L</mount> command, but it mounts the filesystem with "
11322 "the read-only (I<-o ro>) flag."
11323 msgstr ""
11324
11325 #. type: =head2
11326 #: ../fish/guestfish-actions.pod:3363
11327 msgid "mount-vfs"
11328 msgstr ""
11329
11330 #. type: verbatim
11331 #: ../fish/guestfish-actions.pod:3365
11332 #, no-wrap
11333 msgid ""
11334 " mount-vfs options vfstype device mountpoint\n"
11335 "\n"
11336 msgstr ""
11337
11338 #. type: textblock
11339 #: ../fish/guestfish-actions.pod:3367
11340 msgid ""
11341 "This is the same as the L</mount> command, but it allows you to set both the "
11342 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
11343 msgstr ""
11344
11345 #. type: =head2
11346 #: ../fish/guestfish-actions.pod:3371
11347 msgid "mountpoints"
11348 msgstr ""
11349
11350 #. type: verbatim
11351 #: ../fish/guestfish-actions.pod:3373
11352 #, no-wrap
11353 msgid ""
11354 " mountpoints\n"
11355 "\n"
11356 msgstr ""
11357
11358 #. type: textblock
11359 #: ../fish/guestfish-actions.pod:3375
11360 msgid ""
11361 "This call is similar to L</mounts>.  That call returns a list of devices.  "
11362 "This one returns a hash table (map) of device name to directory where the "
11363 "device is mounted."
11364 msgstr ""
11365
11366 #. type: =head2
11367 #: ../fish/guestfish-actions.pod:3379
11368 msgid "mounts"
11369 msgstr ""
11370
11371 #. type: verbatim
11372 #: ../fish/guestfish-actions.pod:3381
11373 #, no-wrap
11374 msgid ""
11375 " mounts\n"
11376 "\n"
11377 msgstr ""
11378
11379 #. type: textblock
11380 #: ../fish/guestfish-actions.pod:3383 ../src/guestfs-actions.pod:5118
11381 msgid ""
11382 "This returns the list of currently mounted filesystems.  It returns the list "
11383 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
11384 msgstr ""
11385
11386 #. type: textblock
11387 #: ../fish/guestfish-actions.pod:3386 ../src/guestfs-actions.pod:5121
11388 msgid "Some internal mounts are not shown."
11389 msgstr ""
11390
11391 #. type: textblock
11392 #: ../fish/guestfish-actions.pod:3388
11393 msgid "See also: L</mountpoints>"
11394 msgstr ""
11395
11396 #. type: =head2
11397 #: ../fish/guestfish-actions.pod:3390
11398 msgid "mv"
11399 msgstr ""
11400
11401 #. type: verbatim
11402 #: ../fish/guestfish-actions.pod:3392
11403 #, no-wrap
11404 msgid ""
11405 " mv src dest\n"
11406 "\n"
11407 msgstr ""
11408
11409 #. type: textblock
11410 #: ../fish/guestfish-actions.pod:3394 ../src/guestfs-actions.pod:5138
11411 msgid ""
11412 "This moves a file from C<src> to C<dest> where C<dest> is either a "
11413 "destination filename or destination directory."
11414 msgstr ""
11415
11416 #. type: =head2
11417 #: ../fish/guestfish-actions.pod:3397
11418 msgid "ntfs-3g-probe"
11419 msgstr ""
11420
11421 #. type: verbatim
11422 #: ../fish/guestfish-actions.pod:3399
11423 #, no-wrap
11424 msgid ""
11425 " ntfs-3g-probe true|false device\n"
11426 "\n"
11427 msgstr ""
11428
11429 #. type: textblock
11430 #: ../fish/guestfish-actions.pod:3401 ../src/guestfs-actions.pod:5152
11431 msgid ""
11432 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
11433 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
11434 "write, and some cannot be mounted at all)."
11435 msgstr ""
11436
11437 #. type: textblock
11438 #: ../fish/guestfish-actions.pod:3405 ../src/guestfs-actions.pod:5156
11439 msgid ""
11440 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
11441 "can be mounted read-write.  Set it to false if you want to test if the "
11442 "volume can be mounted read-only."
11443 msgstr ""
11444
11445 #. type: textblock
11446 #: ../fish/guestfish-actions.pod:3409 ../src/guestfs-actions.pod:5160
11447 msgid ""
11448 "The return value is an integer which C<0> if the operation would succeed, or "
11449 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
11450 msgstr ""
11451
11452 #. type: =head2
11453 #: ../fish/guestfish-actions.pod:3413
11454 msgid "ntfsresize"
11455 msgstr ""
11456
11457 #. type: verbatim
11458 #: ../fish/guestfish-actions.pod:3415
11459 #, no-wrap
11460 msgid ""
11461 " ntfsresize device\n"
11462 "\n"
11463 msgstr ""
11464
11465 #. type: textblock
11466 #: ../fish/guestfish-actions.pod:3417 ../fish/guestfish-actions.pod:3441
11467 #: ../src/guestfs-actions.pod:5174 ../src/guestfs-actions.pod:5213
11468 msgid ""
11469 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
11470 "size of the underlying device."
11471 msgstr ""
11472
11473 #. type: textblock
11474 #: ../fish/guestfish-actions.pod:3420 ../src/guestfs-actions.pod:5177
11475 msgid ""
11476 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
11477 "consistency check (for safety).  You have to boot into Windows to perform "
11478 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
11479 "resize filesystems which have been marked in this way.  So in effect it is "
11480 "not possible to call ntfsresize multiple times on a single filesystem "
11481 "without booting into Windows between each resize."
11482 msgstr ""
11483
11484 #. type: textblock
11485 #: ../fish/guestfish-actions.pod:3428 ../fish/guestfish-actions.pod:3467
11486 #: ../src/guestfs-actions.pod:5185 ../src/guestfs-actions.pod:5239
11487 msgid "See also L<ntfsresize(8)>."
11488 msgstr ""
11489
11490 #. type: textblock
11491 #: ../fish/guestfish-actions.pod:3430 ../fish/guestfish-actions.pod:3478
11492 msgid ""
11493 "This function is deprecated.  In new code, use the L</ntfsresize_opts> call "
11494 "instead."
11495 msgstr ""
11496
11497 #. type: =head2
11498 #: ../fish/guestfish-actions.pod:3437
11499 msgid "ntfsresize-opts"
11500 msgstr ""
11501
11502 #. type: verbatim
11503 #: ../fish/guestfish-actions.pod:3439
11504 #, no-wrap
11505 msgid ""
11506 " ntfsresize-opts device [size:..] [force:..]\n"
11507 "\n"
11508 msgstr ""
11509
11510 #. type: textblock
11511 #: ../fish/guestfish-actions.pod:3450 ../src/guestfs-actions.pod:5222
11512 msgid ""
11513 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
11514 "resized to fit the container (eg. partition)."
11515 msgstr ""
11516
11517 #. type: =item
11518 #: ../fish/guestfish-actions.pod:3453 ../src/guestfs-actions.pod:5225
11519 msgid "C<force>"
11520 msgstr ""
11521
11522 #. type: textblock
11523 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5227
11524 msgid ""
11525 "If this option is true, then force the resize of the filesystem even if the "
11526 "filesystem is marked as requiring a consistency check."
11527 msgstr ""
11528
11529 #. type: textblock
11530 #: ../fish/guestfish-actions.pod:3458
11531 msgid ""
11532 "After the resize operation, the filesystem is always marked as requiring a "
11533 "consistency check (for safety).  You have to boot into Windows to perform "
11534 "this check and clear this condition.  If you I<don't> set the C<force> "
11535 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
11536 "a single filesystem without booting into Windows between each resize."
11537 msgstr ""
11538
11539 #. type: =head2
11540 #: ../fish/guestfish-actions.pod:3471
11541 msgid "ntfsresize-size"
11542 msgstr ""
11543
11544 #. type: verbatim
11545 #: ../fish/guestfish-actions.pod:3473
11546 #, no-wrap
11547 msgid ""
11548 " ntfsresize-size device size\n"
11549 "\n"
11550 msgstr ""
11551
11552 #. type: textblock
11553 #: ../fish/guestfish-actions.pod:3475
11554 msgid ""
11555 "This command is the same as L</ntfsresize> except that it allows you to "
11556 "specify the new size (in bytes) explicitly."
11557 msgstr ""
11558
11559 #. type: =head2
11560 #: ../fish/guestfish-actions.pod:3485
11561 msgid "part-add"
11562 msgstr ""
11563
11564 #. type: verbatim
11565 #: ../fish/guestfish-actions.pod:3487
11566 #, no-wrap
11567 msgid ""
11568 " part-add device prlogex startsect endsect\n"
11569 "\n"
11570 msgstr ""
11571
11572 #. type: textblock
11573 #: ../fish/guestfish-actions.pod:3489
11574 msgid ""
11575 "This command adds a partition to C<device>.  If there is no partition table "
11576 "on the device, call L</part-init> first."
11577 msgstr ""
11578
11579 #. type: textblock
11580 #: ../fish/guestfish-actions.pod:3492 ../src/guestfs-actions.pod:5300
11581 msgid ""
11582 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
11583 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
11584 "C<logical>) and C<e> (or C<extended>) partition types."
11585 msgstr ""
11586
11587 #. type: textblock
11588 #: ../fish/guestfish-actions.pod:3497 ../src/guestfs-actions.pod:5305
11589 msgid ""
11590 "C<startsect> and C<endsect> are the start and end of the partition in "
11591 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
11592 "from the end of the disk (C<-1> is the last sector)."
11593 msgstr ""
11594
11595 #. type: textblock
11596 #: ../fish/guestfish-actions.pod:3501
11597 msgid ""
11598 "Creating a partition which covers the whole disk is not so easy.  Use L</"
11599 "part-disk> to do that."
11600 msgstr ""
11601
11602 #. type: =head2
11603 #: ../fish/guestfish-actions.pod:3504
11604 msgid "part-del"
11605 msgstr ""
11606
11607 #. type: verbatim
11608 #: ../fish/guestfish-actions.pod:3506
11609 #, no-wrap
11610 msgid ""
11611 " part-del device partnum\n"
11612 "\n"
11613 msgstr ""
11614
11615 #. type: textblock
11616 #: ../fish/guestfish-actions.pod:3508 ../src/guestfs-actions.pod:5323
11617 msgid "This command deletes the partition numbered C<partnum> on C<device>."
11618 msgstr ""
11619
11620 #. type: textblock
11621 #: ../fish/guestfish-actions.pod:3510 ../src/guestfs-actions.pod:5325
11622 msgid ""
11623 "Note that in the case of MBR partitioning, deleting an extended partition "
11624 "also deletes any logical partitions it contains."
11625 msgstr ""
11626
11627 #. type: =head2
11628 #: ../fish/guestfish-actions.pod:3514
11629 msgid "part-disk"
11630 msgstr ""
11631
11632 #. type: verbatim
11633 #: ../fish/guestfish-actions.pod:3516
11634 #, no-wrap
11635 msgid ""
11636 " part-disk device parttype\n"
11637 "\n"
11638 msgstr ""
11639
11640 #. type: textblock
11641 #: ../fish/guestfish-actions.pod:3518
11642 msgid ""
11643 "This command is simply a combination of L</part-init> followed by L</part-"
11644 "add> to create a single primary partition covering the whole disk."
11645 msgstr ""
11646
11647 #. type: textblock
11648 #: ../fish/guestfish-actions.pod:3522
11649 msgid ""
11650 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
11651 "possible values are described in L</part-init>."
11652 msgstr ""
11653
11654 #. type: =head2
11655 #: ../fish/guestfish-actions.pod:3528
11656 msgid "part-get-bootable"
11657 msgstr ""
11658
11659 #. type: verbatim
11660 #: ../fish/guestfish-actions.pod:3530
11661 #, no-wrap
11662 msgid ""
11663 " part-get-bootable device partnum\n"
11664 "\n"
11665 msgstr ""
11666
11667 #. type: textblock
11668 #: ../fish/guestfish-actions.pod:3532 ../src/guestfs-actions.pod:5361
11669 msgid ""
11670 "This command returns true if the partition C<partnum> on C<device> has the "
11671 "bootable flag set."
11672 msgstr ""
11673
11674 #. type: textblock
11675 #: ../fish/guestfish-actions.pod:3535
11676 msgid "See also L</part-set-bootable>."
11677 msgstr ""
11678
11679 #. type: =head2
11680 #: ../fish/guestfish-actions.pod:3537
11681 msgid "part-get-mbr-id"
11682 msgstr ""
11683
11684 #. type: verbatim
11685 #: ../fish/guestfish-actions.pod:3539
11686 #, no-wrap
11687 msgid ""
11688 " part-get-mbr-id device partnum\n"
11689 "\n"
11690 msgstr ""
11691
11692 #. type: textblock
11693 #: ../fish/guestfish-actions.pod:3541 ../src/guestfs-actions.pod:5377
11694 msgid ""
11695 "Returns the MBR type byte (also known as the ID byte) from the numbered "
11696 "partition C<partnum>."
11697 msgstr ""
11698
11699 #. type: textblock
11700 #: ../fish/guestfish-actions.pod:3544 ../fish/guestfish-actions.pod:3688
11701 msgid ""
11702 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
11703 "undefined results for other partition table types (see L</part-get-"
11704 "parttype>)."
11705 msgstr ""
11706
11707 #. type: =head2
11708 #: ../fish/guestfish-actions.pod:3548
11709 msgid "part-get-parttype"
11710 msgstr ""
11711
11712 #. type: verbatim
11713 #: ../fish/guestfish-actions.pod:3550
11714 #, no-wrap
11715 msgid ""
11716 " part-get-parttype device\n"
11717 "\n"
11718 msgstr ""
11719
11720 #. type: textblock
11721 #: ../fish/guestfish-actions.pod:3552 ../src/guestfs-actions.pod:5394
11722 msgid ""
11723 "This command examines the partition table on C<device> and returns the "
11724 "partition table type (format) being used."
11725 msgstr ""
11726
11727 #. type: textblock
11728 #: ../fish/guestfish-actions.pod:3555
11729 msgid ""
11730 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
11731 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
11732 "possible, although unusual.  See L</part-init> for a full list."
11733 msgstr ""
11734
11735 #. type: =head2
11736 #: ../fish/guestfish-actions.pod:3560
11737 msgid "part-init"
11738 msgstr ""
11739
11740 #. type: verbatim
11741 #: ../fish/guestfish-actions.pod:3562
11742 #, no-wrap
11743 msgid ""
11744 " part-init device parttype\n"
11745 "\n"
11746 msgstr ""
11747
11748 #. type: textblock
11749 #: ../fish/guestfish-actions.pod:3564 ../src/guestfs-actions.pod:5414
11750 msgid ""
11751 "This creates an empty partition table on C<device> of one of the partition "
11752 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
11753 "(for large disks)."
11754 msgstr ""
11755
11756 #. type: textblock
11757 #: ../fish/guestfish-actions.pod:3568
11758 msgid ""
11759 "Initially there are no partitions.  Following this, you should call L</part-"
11760 "add> for each partition required."
11761 msgstr ""
11762
11763 #. type: textblock
11764 #: ../fish/guestfish-actions.pod:3571 ../src/guestfs-actions.pod:5421
11765 msgid "Possible values for C<parttype> are:"
11766 msgstr ""
11767
11768 #. type: =item
11769 #: ../fish/guestfish-actions.pod:3575 ../src/guestfs-actions.pod:5425
11770 msgid "B<efi>"
11771 msgstr ""
11772
11773 #. type: =item
11774 #: ../fish/guestfish-actions.pod:3577 ../src/guestfs-actions.pod:5427
11775 msgid "B<gpt>"
11776 msgstr ""
11777
11778 #. type: textblock
11779 #: ../fish/guestfish-actions.pod:3579 ../src/guestfs-actions.pod:5429
11780 msgid "Intel EFI / GPT partition table."
11781 msgstr ""
11782
11783 #. type: textblock
11784 #: ../fish/guestfish-actions.pod:3581 ../src/guestfs-actions.pod:5431
11785 msgid ""
11786 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
11787 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
11788 "the C<mbr> format."
11789 msgstr ""
11790
11791 #. type: =item
11792 #: ../fish/guestfish-actions.pod:3585 ../src/guestfs-actions.pod:5435
11793 msgid "B<mbr>"
11794 msgstr ""
11795
11796 #. type: =item
11797 #: ../fish/guestfish-actions.pod:3587 ../src/guestfs-actions.pod:5437
11798 msgid "B<msdos>"
11799 msgstr ""
11800
11801 #. type: textblock
11802 #: ../fish/guestfish-actions.pod:3589 ../src/guestfs-actions.pod:5439
11803 msgid ""
11804 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
11805 "Windows.  This partition type will B<only> work for device sizes up to 2 "
11806 "TB.  For large disks we recommend using C<gpt>."
11807 msgstr ""
11808
11809 #. type: textblock
11810 #: ../fish/guestfish-actions.pod:3596 ../src/guestfs-actions.pod:5446
11811 msgid ""
11812 "Other partition table types that may work but are not supported include:"
11813 msgstr ""
11814
11815 #. type: =item
11816 #: ../fish/guestfish-actions.pod:3601 ../src/guestfs-actions.pod:5451
11817 msgid "B<aix>"
11818 msgstr ""
11819
11820 #. type: textblock
11821 #: ../fish/guestfish-actions.pod:3603 ../src/guestfs-actions.pod:5453
11822 msgid "AIX disk labels."
11823 msgstr ""
11824
11825 #. type: =item
11826 #: ../fish/guestfish-actions.pod:3605 ../src/guestfs-actions.pod:5455
11827 msgid "B<amiga>"
11828 msgstr ""
11829
11830 #. type: =item
11831 #: ../fish/guestfish-actions.pod:3607 ../src/guestfs-actions.pod:5457
11832 msgid "B<rdb>"
11833 msgstr ""
11834
11835 #. type: textblock
11836 #: ../fish/guestfish-actions.pod:3609 ../src/guestfs-actions.pod:5459
11837 msgid "Amiga \"Rigid Disk Block\" format."
11838 msgstr ""
11839
11840 #. type: =item
11841 #: ../fish/guestfish-actions.pod:3611 ../src/guestfs-actions.pod:5461
11842 msgid "B<bsd>"
11843 msgstr ""
11844
11845 #. type: textblock
11846 #: ../fish/guestfish-actions.pod:3613 ../src/guestfs-actions.pod:5463
11847 msgid "BSD disk labels."
11848 msgstr ""
11849
11850 #. type: =item
11851 #: ../fish/guestfish-actions.pod:3615 ../src/guestfs-actions.pod:5465
11852 msgid "B<dasd>"
11853 msgstr ""
11854
11855 #. type: textblock
11856 #: ../fish/guestfish-actions.pod:3617 ../src/guestfs-actions.pod:5467
11857 msgid "DASD, used on IBM mainframes."
11858 msgstr ""
11859
11860 #. type: =item
11861 #: ../fish/guestfish-actions.pod:3619 ../src/guestfs-actions.pod:5469
11862 msgid "B<dvh>"
11863 msgstr ""
11864
11865 #. type: textblock
11866 #: ../fish/guestfish-actions.pod:3621 ../src/guestfs-actions.pod:5471
11867 msgid "MIPS/SGI volumes."
11868 msgstr ""
11869
11870 #. type: =item
11871 #: ../fish/guestfish-actions.pod:3623 ../src/guestfs-actions.pod:5473
11872 msgid "B<mac>"
11873 msgstr ""
11874
11875 #. type: textblock
11876 #: ../fish/guestfish-actions.pod:3625 ../src/guestfs-actions.pod:5475
11877 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
11878 msgstr ""
11879
11880 #. type: =item
11881 #: ../fish/guestfish-actions.pod:3627 ../src/guestfs-actions.pod:5477
11882 msgid "B<pc98>"
11883 msgstr ""
11884
11885 #. type: textblock
11886 #: ../fish/guestfish-actions.pod:3629 ../src/guestfs-actions.pod:5479
11887 msgid "NEC PC-98 format, common in Japan apparently."
11888 msgstr ""
11889
11890 #. type: =item
11891 #: ../fish/guestfish-actions.pod:3631 ../src/guestfs-actions.pod:5481
11892 msgid "B<sun>"
11893 msgstr ""
11894
11895 #. type: textblock
11896 #: ../fish/guestfish-actions.pod:3633 ../src/guestfs-actions.pod:5483
11897 msgid "Sun disk labels."
11898 msgstr ""
11899
11900 #. type: =head2
11901 #: ../fish/guestfish-actions.pod:3637
11902 msgid "part-list"
11903 msgstr ""
11904
11905 #. type: verbatim
11906 #: ../fish/guestfish-actions.pod:3639
11907 #, no-wrap
11908 msgid ""
11909 " part-list device\n"
11910 "\n"
11911 msgstr ""
11912
11913 #. type: textblock
11914 #: ../fish/guestfish-actions.pod:3641 ../src/guestfs-actions.pod:5497
11915 msgid ""
11916 "This command parses the partition table on C<device> and returns the list of "
11917 "partitions found."
11918 msgstr ""
11919
11920 #. type: textblock
11921 #: ../fish/guestfish-actions.pod:3644 ../src/guestfs-actions.pod:5500
11922 msgid "The fields in the returned structure are:"
11923 msgstr ""
11924
11925 #. type: =item
11926 #: ../fish/guestfish-actions.pod:3648 ../src/guestfs-actions.pod:5504
11927 msgid "B<part_num>"
11928 msgstr ""
11929
11930 #. type: textblock
11931 #: ../fish/guestfish-actions.pod:3650 ../src/guestfs-actions.pod:5506
11932 msgid "Partition number, counting from 1."
11933 msgstr ""
11934
11935 #. type: =item
11936 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5508
11937 msgid "B<part_start>"
11938 msgstr ""
11939
11940 #. type: textblock
11941 #: ../fish/guestfish-actions.pod:3654
11942 msgid ""
11943 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
11944 "the device's sector size, see L</blockdev-getss>."
11945 msgstr ""
11946
11947 #. type: =item
11948 #: ../fish/guestfish-actions.pod:3657 ../src/guestfs-actions.pod:5513
11949 msgid "B<part_end>"
11950 msgstr ""
11951
11952 #. type: textblock
11953 #: ../fish/guestfish-actions.pod:3659 ../src/guestfs-actions.pod:5515
11954 msgid "End of the partition in bytes."
11955 msgstr ""
11956
11957 #. type: =item
11958 #: ../fish/guestfish-actions.pod:3661 ../src/guestfs-actions.pod:5517
11959 msgid "B<part_size>"
11960 msgstr ""
11961
11962 #. type: textblock
11963 #: ../fish/guestfish-actions.pod:3663 ../src/guestfs-actions.pod:5519
11964 msgid "Size of the partition in bytes."
11965 msgstr ""
11966
11967 #. type: =head2
11968 #: ../fish/guestfish-actions.pod:3667
11969 msgid "part-set-bootable"
11970 msgstr ""
11971
11972 #. type: verbatim
11973 #: ../fish/guestfish-actions.pod:3669
11974 #, no-wrap
11975 msgid ""
11976 " part-set-bootable device partnum true|false\n"
11977 "\n"
11978 msgstr ""
11979
11980 #. type: textblock
11981 #: ../fish/guestfish-actions.pod:3671 ../src/guestfs-actions.pod:5537
11982 msgid ""
11983 "This sets the bootable flag on partition numbered C<partnum> on device "
11984 "C<device>.  Note that partitions are numbered from 1."
11985 msgstr ""
11986
11987 #. type: textblock
11988 #: ../fish/guestfish-actions.pod:3674 ../src/guestfs-actions.pod:5540
11989 msgid ""
11990 "The bootable flag is used by some operating systems (notably Windows) to "
11991 "determine which partition to boot from.  It is by no means universally "
11992 "recognized."
11993 msgstr ""
11994
11995 #. type: =head2
11996 #: ../fish/guestfish-actions.pod:3678
11997 msgid "part-set-mbr-id"
11998 msgstr ""
11999
12000 #. type: verbatim
12001 #: ../fish/guestfish-actions.pod:3680
12002 #, no-wrap
12003 msgid ""
12004 " part-set-mbr-id device partnum idbyte\n"
12005 "\n"
12006 msgstr ""
12007
12008 #. type: textblock
12009 #: ../fish/guestfish-actions.pod:3682 ../src/guestfs-actions.pod:5556
12010 msgid ""
12011 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12012 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12013 "documentation are in fact hexadecimal numbers, but usually documented "
12014 "without any leading \"0x\" which might be confusing."
12015 msgstr ""
12016
12017 #. type: =head2
12018 #: ../fish/guestfish-actions.pod:3692
12019 msgid "part-set-name"
12020 msgstr ""
12021
12022 #. type: verbatim
12023 #: ../fish/guestfish-actions.pod:3694
12024 #, no-wrap
12025 msgid ""
12026 " part-set-name device partnum name\n"
12027 "\n"
12028 msgstr ""
12029
12030 #. type: textblock
12031 #: ../fish/guestfish-actions.pod:3696 ../src/guestfs-actions.pod:5578
12032 msgid ""
12033 "This sets the partition name on partition numbered C<partnum> on device "
12034 "C<device>.  Note that partitions are numbered from 1."
12035 msgstr ""
12036
12037 #. type: textblock
12038 #: ../fish/guestfish-actions.pod:3699 ../src/guestfs-actions.pod:5581
12039 msgid ""
12040 "The partition name can only be set on certain types of partition table.  "
12041 "This works on C<gpt> but not on C<mbr> partitions."
12042 msgstr ""
12043
12044 #. type: =head2
12045 #: ../fish/guestfish-actions.pod:3702
12046 msgid "part-to-dev"
12047 msgstr ""
12048
12049 #. type: verbatim
12050 #: ../fish/guestfish-actions.pod:3704
12051 #, no-wrap
12052 msgid ""
12053 " part-to-dev partition\n"
12054 "\n"
12055 msgstr ""
12056
12057 #. type: textblock
12058 #: ../fish/guestfish-actions.pod:3706 ../src/guestfs-actions.pod:5594
12059 msgid ""
12060 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12061 "partition number, returning the device name (eg. \"/dev/sdb\")."
12062 msgstr ""
12063
12064 #. type: textblock
12065 #: ../fish/guestfish-actions.pod:3710
12066 msgid ""
12067 "The named partition must exist, for example as a string returned from L</"
12068 "list-partitions>."
12069 msgstr ""
12070
12071 #. type: =head2
12072 #: ../fish/guestfish-actions.pod:3713
12073 msgid "ping-daemon"
12074 msgstr ""
12075
12076 #. type: verbatim
12077 #: ../fish/guestfish-actions.pod:3715
12078 #, no-wrap
12079 msgid ""
12080 " ping-daemon\n"
12081 "\n"
12082 msgstr ""
12083
12084 #. type: textblock
12085 #: ../fish/guestfish-actions.pod:3717 ../src/guestfs-actions.pod:5611
12086 msgid ""
12087 "This is a test probe into the guestfs daemon running inside the qemu "
12088 "subprocess.  Calling this function checks that the daemon responds to the "
12089 "ping message, without affecting the daemon or attached block device(s) in "
12090 "any other way."
12091 msgstr ""
12092
12093 #. type: =head2
12094 #: ../fish/guestfish-actions.pod:3722
12095 msgid "pread"
12096 msgstr ""
12097
12098 #. type: verbatim
12099 #: ../fish/guestfish-actions.pod:3724
12100 #, no-wrap
12101 msgid ""
12102 " pread path count offset\n"
12103 "\n"
12104 msgstr ""
12105
12106 #. type: textblock
12107 #: ../fish/guestfish-actions.pod:3726 ../src/guestfs-actions.pod:5629
12108 msgid ""
12109 "This command lets you read part of a file.  It reads C<count> bytes of the "
12110 "file, starting at C<offset>, from file C<path>."
12111 msgstr ""
12112
12113 #. type: textblock
12114 #: ../fish/guestfish-actions.pod:3729 ../fish/guestfish-actions.pod:3744
12115 #: ../src/guestfs-actions.pod:5632 ../src/guestfs-actions.pod:5658
12116 msgid ""
12117 "This may read fewer bytes than requested.  For further details see the "
12118 "L<pread(2)> system call."
12119 msgstr ""
12120
12121 #. type: textblock
12122 #: ../fish/guestfish-actions.pod:3732
12123 msgid "See also L</pwrite>, L</pread-device>."
12124 msgstr ""
12125
12126 #. type: =head2
12127 #: ../fish/guestfish-actions.pod:3737
12128 msgid "pread-device"
12129 msgstr ""
12130
12131 #. type: verbatim
12132 #: ../fish/guestfish-actions.pod:3739
12133 #, no-wrap
12134 msgid ""
12135 " pread-device device count offset\n"
12136 "\n"
12137 msgstr ""
12138
12139 #. type: textblock
12140 #: ../fish/guestfish-actions.pod:3741 ../src/guestfs-actions.pod:5655
12141 msgid ""
12142 "This command lets you read part of a file.  It reads C<count> bytes of "
12143 "C<device>, starting at C<offset>."
12144 msgstr ""
12145
12146 #. type: textblock
12147 #: ../fish/guestfish-actions.pod:3747
12148 msgid "See also L</pread>."
12149 msgstr ""
12150
12151 #. type: =head2
12152 #: ../fish/guestfish-actions.pod:3752
12153 msgid "pvcreate"
12154 msgstr ""
12155
12156 #. type: verbatim
12157 #: ../fish/guestfish-actions.pod:3754
12158 #, no-wrap
12159 msgid ""
12160 " pvcreate device\n"
12161 "\n"
12162 msgstr ""
12163
12164 #. type: textblock
12165 #: ../fish/guestfish-actions.pod:3756 ../src/guestfs-actions.pod:5678
12166 msgid ""
12167 "This creates an LVM physical volume on the named C<device>, where C<device> "
12168 "should usually be a partition name such as C</dev/sda1>."
12169 msgstr ""
12170
12171 #. type: =head2
12172 #: ../fish/guestfish-actions.pod:3760
12173 msgid "pvremove"
12174 msgstr ""
12175
12176 #. type: verbatim
12177 #: ../fish/guestfish-actions.pod:3762
12178 #, no-wrap
12179 msgid ""
12180 " pvremove device\n"
12181 "\n"
12182 msgstr ""
12183
12184 #. type: textblock
12185 #: ../fish/guestfish-actions.pod:3764 ../src/guestfs-actions.pod:5692
12186 msgid ""
12187 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12188 "it."
12189 msgstr ""
12190
12191 #. type: textblock
12192 #: ../fish/guestfish-actions.pod:3767 ../src/guestfs-actions.pod:5695
12193 msgid ""
12194 "The implementation uses the C<pvremove> command which refuses to wipe "
12195 "physical volumes that contain any volume groups, so you have to remove those "
12196 "first."
12197 msgstr ""
12198
12199 #. type: =head2
12200 #: ../fish/guestfish-actions.pod:3771
12201 msgid "pvresize"
12202 msgstr ""
12203
12204 #. type: verbatim
12205 #: ../fish/guestfish-actions.pod:3773
12206 #, no-wrap
12207 msgid ""
12208 " pvresize device\n"
12209 "\n"
12210 msgstr ""
12211
12212 #. type: textblock
12213 #: ../fish/guestfish-actions.pod:3775 ../src/guestfs-actions.pod:5709
12214 msgid ""
12215 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12216 "the new size of the underlying device."
12217 msgstr ""
12218
12219 #. type: =head2
12220 #: ../fish/guestfish-actions.pod:3778
12221 msgid "pvresize-size"
12222 msgstr ""
12223
12224 #. type: verbatim
12225 #: ../fish/guestfish-actions.pod:3780
12226 #, no-wrap
12227 msgid ""
12228 " pvresize-size device size\n"
12229 "\n"
12230 msgstr ""
12231
12232 #. type: textblock
12233 #: ../fish/guestfish-actions.pod:3782
12234 msgid ""
12235 "This command is the same as L</pvresize> except that it allows you to "
12236 "specify the new size (in bytes) explicitly."
12237 msgstr ""
12238
12239 #. type: =head2
12240 #: ../fish/guestfish-actions.pod:3785
12241 msgid "pvs"
12242 msgstr ""
12243
12244 #. type: verbatim
12245 #: ../fish/guestfish-actions.pod:3787
12246 #, no-wrap
12247 msgid ""
12248 " pvs\n"
12249 "\n"
12250 msgstr ""
12251
12252 #. type: textblock
12253 #: ../fish/guestfish-actions.pod:3789 ../src/guestfs-actions.pod:5735
12254 msgid ""
12255 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12256 "(8)> command."
12257 msgstr ""
12258
12259 #. type: textblock
12260 #: ../fish/guestfish-actions.pod:3792 ../src/guestfs-actions.pod:5738
12261 msgid ""
12262 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12263 "sda2>)."
12264 msgstr ""
12265
12266 #. type: textblock
12267 #: ../fish/guestfish-actions.pod:3795
12268 msgid "See also L</pvs-full>."
12269 msgstr ""
12270
12271 #. type: =head2
12272 #: ../fish/guestfish-actions.pod:3797
12273 msgid "pvs-full"
12274 msgstr ""
12275
12276 #. type: verbatim
12277 #: ../fish/guestfish-actions.pod:3799
12278 #, no-wrap
12279 msgid ""
12280 " pvs-full\n"
12281 "\n"
12282 msgstr ""
12283
12284 #. type: textblock
12285 #: ../fish/guestfish-actions.pod:3801 ../src/guestfs-actions.pod:5754
12286 msgid ""
12287 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12288 "(8)> command.  The \"full\" version includes all fields."
12289 msgstr ""
12290
12291 #. type: =head2
12292 #: ../fish/guestfish-actions.pod:3804
12293 msgid "pvuuid"
12294 msgstr ""
12295
12296 #. type: verbatim
12297 #: ../fish/guestfish-actions.pod:3806
12298 #, no-wrap
12299 msgid ""
12300 " pvuuid device\n"
12301 "\n"
12302 msgstr ""
12303
12304 #. type: textblock
12305 #: ../fish/guestfish-actions.pod:3808 ../src/guestfs-actions.pod:5769
12306 msgid "This command returns the UUID of the LVM PV C<device>."
12307 msgstr ""
12308
12309 #. type: =head2
12310 #: ../fish/guestfish-actions.pod:3810
12311 msgid "pwrite"
12312 msgstr ""
12313
12314 #. type: verbatim
12315 #: ../fish/guestfish-actions.pod:3812
12316 #, no-wrap
12317 msgid ""
12318 " pwrite path content offset\n"
12319 "\n"
12320 msgstr ""
12321
12322 #. type: textblock
12323 #: ../fish/guestfish-actions.pod:3814 ../src/guestfs-actions.pod:5785
12324 msgid ""
12325 "This command writes to part of a file.  It writes the data buffer C<content> "
12326 "to the file C<path> starting at offset C<offset>."
12327 msgstr ""
12328
12329 #. type: textblock
12330 #: ../fish/guestfish-actions.pod:3817 ../src/guestfs-actions.pod:5788
12331 msgid ""
12332 "This command implements the L<pwrite(2)> system call, and like that system "
12333 "call it may not write the full data requested.  The return value is the "
12334 "number of bytes that were actually written to the file.  This could even be "
12335 "0, although short writes are unlikely for regular files in ordinary "
12336 "circumstances."
12337 msgstr ""
12338
12339 #. type: textblock
12340 #: ../fish/guestfish-actions.pod:3823
12341 msgid "See also L</pread>, L</pwrite-device>."
12342 msgstr ""
12343
12344 #. type: =head2
12345 #: ../fish/guestfish-actions.pod:3828
12346 msgid "pwrite-device"
12347 msgstr ""
12348
12349 #. type: verbatim
12350 #: ../fish/guestfish-actions.pod:3830
12351 #, no-wrap
12352 msgid ""
12353 " pwrite-device device content offset\n"
12354 "\n"
12355 msgstr ""
12356
12357 #. type: textblock
12358 #: ../fish/guestfish-actions.pod:3832 ../src/guestfs-actions.pod:5812
12359 msgid ""
12360 "This command writes to part of a device.  It writes the data buffer "
12361 "C<content> to C<device> starting at offset C<offset>."
12362 msgstr ""
12363
12364 #. type: textblock
12365 #: ../fish/guestfish-actions.pod:3835 ../src/guestfs-actions.pod:5815
12366 msgid ""
12367 "This command implements the L<pwrite(2)> system call, and like that system "
12368 "call it may not write the full data requested (although short writes to disk "
12369 "devices and partitions are probably impossible with standard Linux kernels)."
12370 msgstr ""
12371
12372 #. type: textblock
12373 #: ../fish/guestfish-actions.pod:3840
12374 msgid "See also L</pwrite>."
12375 msgstr ""
12376
12377 #. type: =head2
12378 #: ../fish/guestfish-actions.pod:3845
12379 msgid "read-file"
12380 msgstr ""
12381
12382 #. type: verbatim
12383 #: ../fish/guestfish-actions.pod:3847
12384 #, no-wrap
12385 msgid ""
12386 " read-file path\n"
12387 "\n"
12388 msgstr ""
12389
12390 #. type: textblock
12391 #: ../fish/guestfish-actions.pod:3849 ../src/guestfs-actions.pod:5836
12392 msgid "This calls returns the contents of the file C<path> as a buffer."
12393 msgstr ""
12394
12395 #. type: textblock
12396 #: ../fish/guestfish-actions.pod:3852
12397 msgid ""
12398 "Unlike L</cat>, this function can correctly handle files that contain "
12399 "embedded ASCII NUL characters.  However unlike L</download>, this function "
12400 "is limited in the total size of file that can be handled."
12401 msgstr ""
12402
12403 #. type: =head2
12404 #: ../fish/guestfish-actions.pod:3860
12405 msgid "read-lines"
12406 msgstr ""
12407
12408 #. type: verbatim
12409 #: ../fish/guestfish-actions.pod:3862
12410 #, no-wrap
12411 msgid ""
12412 " read-lines path\n"
12413 "\n"
12414 msgstr ""
12415
12416 #. type: textblock
12417 #: ../fish/guestfish-actions.pod:3866 ../src/guestfs-actions.pod:5861
12418 msgid ""
12419 "The file contents are returned as a list of lines.  Trailing C<LF> and "
12420 "C<CRLF> character sequences are I<not> returned."
12421 msgstr ""
12422
12423 #. type: textblock
12424 #: ../fish/guestfish-actions.pod:3869
12425 msgid ""
12426 "Note that this function cannot correctly handle binary files (specifically, "
12427 "files containing C<\\0> character which is treated as end of line).  For "
12428 "those you need to use the L</read-file> function which has a more complex "
12429 "interface."
12430 msgstr ""
12431
12432 #. type: =head2
12433 #: ../fish/guestfish-actions.pod:3874
12434 msgid "readdir"
12435 msgstr ""
12436
12437 #. type: verbatim
12438 #: ../fish/guestfish-actions.pod:3876
12439 #, no-wrap
12440 msgid ""
12441 " readdir dir\n"
12442 "\n"
12443 msgstr ""
12444
12445 #. type: textblock
12446 #: ../fish/guestfish-actions.pod:3878 ../src/guestfs-actions.pod:5881
12447 msgid "This returns the list of directory entries in directory C<dir>."
12448 msgstr ""
12449
12450 #. type: textblock
12451 #: ../fish/guestfish-actions.pod:3880 ../src/guestfs-actions.pod:5883
12452 msgid ""
12453 "All entries in the directory are returned, including C<.> and C<..>.  The "
12454 "entries are I<not> sorted, but returned in the same order as the underlying "
12455 "filesystem."
12456 msgstr ""
12457
12458 #. type: textblock
12459 #: ../fish/guestfish-actions.pod:3884 ../src/guestfs-actions.pod:5887
12460 msgid ""
12461 "Also this call returns basic file type information about each file.  The "
12462 "C<ftyp> field will contain one of the following characters:"
12463 msgstr ""
12464
12465 #. type: =item
12466 #: ../fish/guestfish-actions.pod:3889 ../src/guestfs-actions.pod:5892
12467 msgid "'b'"
12468 msgstr ""
12469
12470 #. type: textblock
12471 #: ../fish/guestfish-actions.pod:3891 ../src/guestfs-actions.pod:5894
12472 msgid "Block special"
12473 msgstr ""
12474
12475 #. type: =item
12476 #: ../fish/guestfish-actions.pod:3893 ../src/guestfs-actions.pod:5896
12477 msgid "'c'"
12478 msgstr ""
12479
12480 #. type: textblock
12481 #: ../fish/guestfish-actions.pod:3895 ../src/guestfs-actions.pod:5898
12482 msgid "Char special"
12483 msgstr ""
12484
12485 #. type: =item
12486 #: ../fish/guestfish-actions.pod:3897 ../src/guestfs-actions.pod:5900
12487 msgid "'d'"
12488 msgstr ""
12489
12490 #. type: textblock
12491 #: ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:5902
12492 msgid "Directory"
12493 msgstr ""
12494
12495 #. type: =item
12496 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:5904
12497 msgid "'f'"
12498 msgstr ""
12499
12500 #. type: textblock
12501 #: ../fish/guestfish-actions.pod:3903 ../src/guestfs-actions.pod:5906
12502 msgid "FIFO (named pipe)"
12503 msgstr ""
12504
12505 #. type: =item
12506 #: ../fish/guestfish-actions.pod:3905 ../src/guestfs-actions.pod:5908
12507 msgid "'l'"
12508 msgstr ""
12509
12510 #. type: textblock
12511 #: ../fish/guestfish-actions.pod:3907 ../src/guestfs-actions.pod:5910
12512 msgid "Symbolic link"
12513 msgstr ""
12514
12515 #. type: =item
12516 #: ../fish/guestfish-actions.pod:3909 ../src/guestfs-actions.pod:5912
12517 msgid "'r'"
12518 msgstr ""
12519
12520 #. type: textblock
12521 #: ../fish/guestfish-actions.pod:3911 ../src/guestfs-actions.pod:5914
12522 msgid "Regular file"
12523 msgstr ""
12524
12525 #. type: =item
12526 #: ../fish/guestfish-actions.pod:3913 ../src/guestfs-actions.pod:5916
12527 msgid "'s'"
12528 msgstr ""
12529
12530 #. type: textblock
12531 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:5918
12532 msgid "Socket"
12533 msgstr ""
12534
12535 #. type: =item
12536 #: ../fish/guestfish-actions.pod:3917 ../src/guestfs-actions.pod:5920
12537 msgid "'u'"
12538 msgstr ""
12539
12540 #. type: textblock
12541 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:5922
12542 msgid "Unknown file type"
12543 msgstr ""
12544
12545 #. type: =item
12546 #: ../fish/guestfish-actions.pod:3921 ../src/guestfs-actions.pod:5924
12547 msgid "'?'"
12548 msgstr ""
12549
12550 #. type: textblock
12551 #: ../fish/guestfish-actions.pod:3923 ../src/guestfs-actions.pod:5926
12552 msgid ""
12553 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
12554 msgstr ""
12555
12556 #. type: textblock
12557 #: ../fish/guestfish-actions.pod:3928
12558 msgid ""
12559 "This function is primarily intended for use by programs.  To get a simple "
12560 "list of names, use L</ls>.  To get a printable directory for human "
12561 "consumption, use L</ll>."
12562 msgstr ""
12563
12564 #. type: =head2
12565 #: ../fish/guestfish-actions.pod:3932
12566 msgid "readlink"
12567 msgstr ""
12568
12569 #. type: verbatim
12570 #: ../fish/guestfish-actions.pod:3934
12571 #, no-wrap
12572 msgid ""
12573 " readlink path\n"
12574 "\n"
12575 msgstr ""
12576
12577 #. type: textblock
12578 #: ../fish/guestfish-actions.pod:3936 ../src/guestfs-actions.pod:5947
12579 msgid "This command reads the target of a symbolic link."
12580 msgstr ""
12581
12582 #. type: =head2
12583 #: ../fish/guestfish-actions.pod:3938
12584 msgid "readlinklist"
12585 msgstr ""
12586
12587 #. type: verbatim
12588 #: ../fish/guestfish-actions.pod:3940
12589 #, no-wrap
12590 msgid ""
12591 " readlinklist path 'names ...'\n"
12592 "\n"
12593 msgstr ""
12594
12595 #. type: textblock
12596 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:5961
12597 msgid ""
12598 "This call allows you to do a C<readlink> operation on multiple files, where "
12599 "all files are in the directory C<path>.  C<names> is the list of files from "
12600 "this directory."
12601 msgstr ""
12602
12603 #. type: textblock
12604 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:5965
12605 msgid ""
12606 "On return you get a list of strings, with a one-to-one correspondence to the "
12607 "C<names> list.  Each string is the value of the symbolic link."
12608 msgstr ""
12609
12610 #. type: textblock
12611 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:5969
12612 msgid ""
12613 "If the C<readlink(2)> operation fails on any name, then the corresponding "
12614 "result string is the empty string C<\"\">.  However the whole operation is "
12615 "completed even if there were C<readlink(2)> errors, and so you can call this "
12616 "function with names where you don't know if they are symbolic links already "
12617 "(albeit slightly less efficient)."
12618 msgstr ""
12619
12620 #. type: textblock
12621 #: ../fish/guestfish-actions.pod:3957 ../src/guestfs-actions.pod:5976
12622 msgid ""
12623 "This call is intended for programs that want to efficiently list a directory "
12624 "contents without making many round-trips.  Very long directory listings "
12625 "might cause the protocol message size to be exceeded, causing this call to "
12626 "fail.  The caller must split up such requests into smaller groups of names."
12627 msgstr ""
12628
12629 #. type: =head2
12630 #: ../fish/guestfish-actions.pod:3964
12631 msgid "realpath"
12632 msgstr ""
12633
12634 #. type: verbatim
12635 #: ../fish/guestfish-actions.pod:3966
12636 #, no-wrap
12637 msgid ""
12638 " realpath path\n"
12639 "\n"
12640 msgstr ""
12641
12642 #. type: textblock
12643 #: ../fish/guestfish-actions.pod:3968 ../src/guestfs-actions.pod:5995
12644 msgid ""
12645 "Return the canonicalized absolute pathname of C<path>.  The returned path "
12646 "has no C<.>, C<..> or symbolic link path elements."
12647 msgstr ""
12648
12649 #. type: =head2
12650 #: ../fish/guestfish-actions.pod:3971
12651 msgid "removexattr"
12652 msgstr ""
12653
12654 #. type: verbatim
12655 #: ../fish/guestfish-actions.pod:3973
12656 #, no-wrap
12657 msgid ""
12658 " removexattr xattr path\n"
12659 "\n"
12660 msgstr ""
12661
12662 #. type: textblock
12663 #: ../fish/guestfish-actions.pod:3975 ../src/guestfs-actions.pod:6010
12664 msgid ""
12665 "This call removes the extended attribute named C<xattr> of the file C<path>."
12666 msgstr ""
12667
12668 #. type: textblock
12669 #: ../fish/guestfish-actions.pod:3978
12670 msgid "See also: L</lremovexattr>, L<attr(5)>."
12671 msgstr ""
12672
12673 #. type: =head2
12674 #: ../fish/guestfish-actions.pod:3980
12675 msgid "resize2fs"
12676 msgstr ""
12677
12678 #. type: verbatim
12679 #: ../fish/guestfish-actions.pod:3982
12680 #, no-wrap
12681 msgid ""
12682 " resize2fs device\n"
12683 "\n"
12684 msgstr ""
12685
12686 #. type: textblock
12687 #: ../fish/guestfish-actions.pod:3984 ../src/guestfs-actions.pod:6025
12688 msgid ""
12689 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
12690 "underlying device."
12691 msgstr ""
12692
12693 #. type: textblock
12694 #: ../fish/guestfish-actions.pod:3987
12695 msgid ""
12696 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
12697 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
12698 "gives an error about this and sometimes not.  In any case, it is always safe "
12699 "to call L</e2fsck-f> before calling this function."
12700 msgstr ""
12701
12702 #. type: =head2
12703 #: ../fish/guestfish-actions.pod:3993
12704 msgid "resize2fs-M"
12705 msgstr ""
12706
12707 #. type: verbatim
12708 #: ../fish/guestfish-actions.pod:3995
12709 #, no-wrap
12710 msgid ""
12711 " resize2fs-M device\n"
12712 "\n"
12713 msgstr ""
12714
12715 #. type: textblock
12716 #: ../fish/guestfish-actions.pod:3997
12717 msgid ""
12718 "This command is the same as L</resize2fs>, but the filesystem is resized to "
12719 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
12720 "command."
12721 msgstr ""
12722
12723 #. type: textblock
12724 #: ../fish/guestfish-actions.pod:4001
12725 msgid ""
12726 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
12727 "and read the C<Block size> and C<Block count> values.  These two numbers, "
12728 "multiplied together, give the resulting size of the minimal filesystem in "
12729 "bytes."
12730 msgstr ""
12731
12732 #. type: =head2
12733 #: ../fish/guestfish-actions.pod:4006
12734 msgid "resize2fs-size"
12735 msgstr ""
12736
12737 #. type: verbatim
12738 #: ../fish/guestfish-actions.pod:4008
12739 #, no-wrap
12740 msgid ""
12741 " resize2fs-size device size\n"
12742 "\n"
12743 msgstr ""
12744
12745 #. type: textblock
12746 #: ../fish/guestfish-actions.pod:4010
12747 msgid ""
12748 "This command is the same as L</resize2fs> except that it allows you to "
12749 "specify the new size (in bytes) explicitly."
12750 msgstr ""
12751
12752 #. type: =head2
12753 #: ../fish/guestfish-actions.pod:4013
12754 msgid "rm"
12755 msgstr ""
12756
12757 #. type: verbatim
12758 #: ../fish/guestfish-actions.pod:4015
12759 #, no-wrap
12760 msgid ""
12761 " rm path\n"
12762 "\n"
12763 msgstr ""
12764
12765 #. type: textblock
12766 #: ../fish/guestfish-actions.pod:4017 ../src/guestfs-actions.pod:6077
12767 msgid "Remove the single file C<path>."
12768 msgstr ""
12769
12770 #. type: =head2
12771 #: ../fish/guestfish-actions.pod:4019
12772 msgid "rm-rf"
12773 msgstr ""
12774
12775 #. type: verbatim
12776 #: ../fish/guestfish-actions.pod:4021
12777 #, no-wrap
12778 msgid ""
12779 " rm-rf path\n"
12780 "\n"
12781 msgstr ""
12782
12783 #. type: textblock
12784 #: ../fish/guestfish-actions.pod:4023 ../src/guestfs-actions.pod:6089
12785 msgid ""
12786 "Remove the file or directory C<path>, recursively removing the contents if "
12787 "its a directory.  This is like the C<rm -rf> shell command."
12788 msgstr ""
12789
12790 #. type: =head2
12791 #: ../fish/guestfish-actions.pod:4027
12792 msgid "rmdir"
12793 msgstr ""
12794
12795 #. type: verbatim
12796 #: ../fish/guestfish-actions.pod:4029
12797 #, no-wrap
12798 msgid ""
12799 " rmdir path\n"
12800 "\n"
12801 msgstr ""
12802
12803 #. type: textblock
12804 #: ../fish/guestfish-actions.pod:4031 ../src/guestfs-actions.pod:6103
12805 msgid "Remove the single directory C<path>."
12806 msgstr ""
12807
12808 #. type: =head2
12809 #: ../fish/guestfish-actions.pod:4033
12810 msgid "rmmountpoint"
12811 msgstr ""
12812
12813 #. type: verbatim
12814 #: ../fish/guestfish-actions.pod:4035
12815 #, no-wrap
12816 msgid ""
12817 " rmmountpoint exemptpath\n"
12818 "\n"
12819 msgstr ""
12820
12821 #. type: textblock
12822 #: ../fish/guestfish-actions.pod:4037
12823 msgid ""
12824 "This calls removes a mountpoint that was previously created with L</"
12825 "mkmountpoint>.  See L</mkmountpoint> for full details."
12826 msgstr ""
12827
12828 #. type: =head2
12829 #: ../fish/guestfish-actions.pod:4041
12830 msgid "scrub-device"
12831 msgstr ""
12832
12833 #. type: verbatim
12834 #: ../fish/guestfish-actions.pod:4043
12835 #, no-wrap
12836 msgid ""
12837 " scrub-device device\n"
12838 "\n"
12839 msgstr ""
12840
12841 #. type: textblock
12842 #: ../fish/guestfish-actions.pod:4045 ../src/guestfs-actions.pod:6129
12843 msgid ""
12844 "This command writes patterns over C<device> to make data retrieval more "
12845 "difficult."
12846 msgstr ""
12847
12848 #. type: textblock
12849 #: ../fish/guestfish-actions.pod:4048 ../fish/guestfish-actions.pod:4063
12850 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6132
12851 #: ../src/guestfs-actions.pod:6153 ../src/guestfs-actions.pod:6172
12852 msgid ""
12853 "It is an interface to the L<scrub(1)> program.  See that manual page for "
12854 "more details."
12855 msgstr ""
12856
12857 #. type: =head2
12858 #: ../fish/guestfish-actions.pod:4054
12859 msgid "scrub-file"
12860 msgstr ""
12861
12862 #. type: verbatim
12863 #: ../fish/guestfish-actions.pod:4056
12864 #, no-wrap
12865 msgid ""
12866 " scrub-file file\n"
12867 "\n"
12868 msgstr ""
12869
12870 #. type: textblock
12871 #: ../fish/guestfish-actions.pod:4058 ../src/guestfs-actions.pod:6148
12872 msgid ""
12873 "This command writes patterns over a file to make data retrieval more "
12874 "difficult."
12875 msgstr ""
12876
12877 #. type: textblock
12878 #: ../fish/guestfish-actions.pod:4061 ../src/guestfs-actions.pod:6151
12879 msgid "The file is I<removed> after scrubbing."
12880 msgstr ""
12881
12882 #. type: =head2
12883 #: ../fish/guestfish-actions.pod:4066
12884 msgid "scrub-freespace"
12885 msgstr ""
12886
12887 #. type: verbatim
12888 #: ../fish/guestfish-actions.pod:4068
12889 #, no-wrap
12890 msgid ""
12891 " scrub-freespace dir\n"
12892 "\n"
12893 msgstr ""
12894
12895 #. type: textblock
12896 #: ../fish/guestfish-actions.pod:4070
12897 msgid ""
12898 "This command creates the directory C<dir> and then fills it with files until "
12899 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
12900 "deletes them.  The intention is to scrub any free space on the partition "
12901 "containing C<dir>."
12902 msgstr ""
12903
12904 #. type: =head2
12905 #: ../fish/guestfish-actions.pod:4079
12906 msgid "set-append"
12907 msgstr ""
12908
12909 #. type: =head2
12910 #: ../fish/guestfish-actions.pod:4081
12911 msgid "append"
12912 msgstr ""
12913
12914 #. type: verbatim
12915 #: ../fish/guestfish-actions.pod:4083
12916 #, no-wrap
12917 msgid ""
12918 " set-append append\n"
12919 "\n"
12920 msgstr ""
12921
12922 #. type: textblock
12923 #: ../fish/guestfish-actions.pod:4085 ../src/guestfs-actions.pod:6185
12924 msgid ""
12925 "This function is used to add additional options to the guest kernel command "
12926 "line."
12927 msgstr ""
12928
12929 #. type: textblock
12930 #: ../fish/guestfish-actions.pod:4088 ../src/guestfs-actions.pod:6188
12931 msgid ""
12932 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
12933 "environment variable."
12934 msgstr ""
12935
12936 #. type: textblock
12937 #: ../fish/guestfish-actions.pod:4091 ../src/guestfs-actions.pod:6191
12938 msgid ""
12939 "Setting C<append> to C<NULL> means I<no> additional options are passed "
12940 "(libguestfs always adds a few of its own)."
12941 msgstr ""
12942
12943 #. type: =head2
12944 #: ../fish/guestfish-actions.pod:4094
12945 msgid "set-attach-method"
12946 msgstr ""
12947
12948 #. type: =head2
12949 #: ../fish/guestfish-actions.pod:4096
12950 msgid "attach-method"
12951 msgstr ""
12952
12953 #. type: verbatim
12954 #: ../fish/guestfish-actions.pod:4098
12955 #, no-wrap
12956 msgid ""
12957 " set-attach-method attachmethod\n"
12958 "\n"
12959 msgstr ""
12960
12961 #. type: textblock
12962 #: ../fish/guestfish-actions.pod:4100 ../src/guestfs-actions.pod:6204
12963 msgid ""
12964 "Set the method that libguestfs uses to connect to the back end guestfsd "
12965 "daemon.  Possible methods are:"
12966 msgstr ""
12967
12968 #. type: =item
12969 #: ../fish/guestfish-actions.pod:4105 ../src/guestfs-actions.pod:6209
12970 #: ../src/guestfs.pod:2803
12971 msgid "C<appliance>"
12972 msgstr ""
12973
12974 #. type: textblock
12975 #: ../fish/guestfish-actions.pod:4107 ../src/guestfs-actions.pod:6211
12976 msgid ""
12977 "Launch an appliance and connect to it.  This is the ordinary method and the "
12978 "default."
12979 msgstr ""
12980
12981 #. type: =item
12982 #: ../fish/guestfish-actions.pod:4110 ../src/guestfs-actions.pod:6214
12983 msgid "C<unix:I<path>>"
12984 msgstr ""
12985
12986 #. type: textblock
12987 #: ../fish/guestfish-actions.pod:4112 ../src/guestfs-actions.pod:6216
12988 msgid "Connect to the Unix domain socket I<path>."
12989 msgstr ""
12990
12991 #. type: textblock
12992 #: ../fish/guestfish-actions.pod:4114 ../src/guestfs-actions.pod:6218
12993 msgid ""
12994 "This method lets you connect to an existing daemon or (using virtio-serial) "
12995 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
12996 "RUNNING DAEMONS>."
12997 msgstr ""
12998
12999 #. type: =head2
13000 #: ../fish/guestfish-actions.pod:4120
13001 msgid "set-autosync"
13002 msgstr ""
13003
13004 #. type: =head2
13005 #: ../fish/guestfish-actions.pod:4122
13006 msgid "autosync"
13007 msgstr ""
13008
13009 #. type: verbatim
13010 #: ../fish/guestfish-actions.pod:4124
13011 #, no-wrap
13012 msgid ""
13013 " set-autosync true|false\n"
13014 "\n"
13015 msgstr ""
13016
13017 #. type: textblock
13018 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6234
13019 msgid ""
13020 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13021 "effort attempt to make filesystems consistent and synchronized when the "
13022 "handle is closed (also if the program exits without closing handles)."
13023 msgstr ""
13024
13025 #. type: textblock
13026 #: ../fish/guestfish-actions.pod:4131 ../src/guestfs-actions.pod:6239
13027 msgid ""
13028 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13029 "disabled by default)."
13030 msgstr ""
13031
13032 #. type: =head2
13033 #: ../fish/guestfish-actions.pod:4134
13034 msgid "set-direct"
13035 msgstr ""
13036
13037 #. type: =head2
13038 #: ../fish/guestfish-actions.pod:4136
13039 msgid "direct"
13040 msgstr ""
13041
13042 #. type: verbatim
13043 #: ../fish/guestfish-actions.pod:4138
13044 #, no-wrap
13045 msgid ""
13046 " set-direct true|false\n"
13047 "\n"
13048 msgstr ""
13049
13050 #. type: textblock
13051 #: ../fish/guestfish-actions.pod:4140 ../src/guestfs-actions.pod:6252
13052 msgid ""
13053 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13054 "passed directly through to the appliance once it is launched."
13055 msgstr ""
13056
13057 #. type: textblock
13058 #: ../fish/guestfish-actions.pod:4144
13059 msgid ""
13060 "One consequence of this is that log messages aren't caught by the library "
13061 "and handled by L</set-log-message-callback>, but go straight to stdout."
13062 msgstr ""
13063
13064 #. type: textblock
13065 #: ../fish/guestfish-actions.pod:4148 ../src/guestfs-actions.pod:6260
13066 msgid "You probably don't want to use this unless you know what you are doing."
13067 msgstr ""
13068
13069 #. type: textblock
13070 #: ../fish/guestfish-actions.pod:4151 ../src/guestfs-actions.pod:6263
13071 msgid "The default is disabled."
13072 msgstr ""
13073
13074 #. type: =head2
13075 #: ../fish/guestfish-actions.pod:4153
13076 msgid "set-e2label"
13077 msgstr ""
13078
13079 #. type: verbatim
13080 #: ../fish/guestfish-actions.pod:4155
13081 #, no-wrap
13082 msgid ""
13083 " set-e2label device label\n"
13084 "\n"
13085 msgstr ""
13086
13087 #. type: textblock
13088 #: ../fish/guestfish-actions.pod:4157 ../src/guestfs-actions.pod:6276
13089 msgid ""
13090 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13091 "C<label>.  Filesystem labels are limited to 16 characters."
13092 msgstr ""
13093
13094 #. type: textblock
13095 #: ../fish/guestfish-actions.pod:4161
13096 msgid ""
13097 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
13098 "label on a filesystem."
13099 msgstr ""
13100
13101 #. type: =head2
13102 #: ../fish/guestfish-actions.pod:4164
13103 msgid "set-e2uuid"
13104 msgstr ""
13105
13106 #. type: verbatim
13107 #: ../fish/guestfish-actions.pod:4166
13108 #, no-wrap
13109 msgid ""
13110 " set-e2uuid device uuid\n"
13111 "\n"
13112 msgstr ""
13113
13114 #. type: textblock
13115 #: ../fish/guestfish-actions.pod:4168 ../src/guestfs-actions.pod:6294
13116 msgid ""
13117 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13118 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13119 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13120 msgstr ""
13121
13122 #. type: textblock
13123 #: ../fish/guestfish-actions.pod:4173
13124 msgid ""
13125 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
13126 "UUID of a filesystem."
13127 msgstr ""
13128
13129 #. type: =head2
13130 #: ../fish/guestfish-actions.pod:4176
13131 msgid "set-memsize"
13132 msgstr ""
13133
13134 #. type: =head2
13135 #: ../fish/guestfish-actions.pod:4178
13136 msgid "memsize"
13137 msgstr ""
13138
13139 #. type: verbatim
13140 #: ../fish/guestfish-actions.pod:4180
13141 #, no-wrap
13142 msgid ""
13143 " set-memsize memsize\n"
13144 "\n"
13145 msgstr ""
13146
13147 #. type: textblock
13148 #: ../fish/guestfish-actions.pod:4182
13149 msgid ""
13150 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13151 "This only has any effect if called before L</launch>."
13152 msgstr ""
13153
13154 #. type: textblock
13155 #: ../fish/guestfish-actions.pod:4186 ../src/guestfs-actions.pod:6316
13156 msgid ""
13157 "You can also change this by setting the environment variable "
13158 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13159 msgstr ""
13160
13161 #. type: =head2
13162 #: ../fish/guestfish-actions.pod:4193
13163 msgid "set-network"
13164 msgstr ""
13165
13166 #. type: =head2
13167 #: ../fish/guestfish-actions.pod:4195
13168 msgid "network"
13169 msgstr ""
13170
13171 #. type: verbatim
13172 #: ../fish/guestfish-actions.pod:4197
13173 #, no-wrap
13174 msgid ""
13175 " set-network true|false\n"
13176 "\n"
13177 msgstr ""
13178
13179 #. type: textblock
13180 #: ../fish/guestfish-actions.pod:4199 ../src/guestfs-actions.pod:6333
13181 msgid ""
13182 "If C<network> is true, then the network is enabled in the libguestfs "
13183 "appliance.  The default is false."
13184 msgstr ""
13185
13186 #. type: textblock
13187 #: ../fish/guestfish-actions.pod:4202 ../src/guestfs-actions.pod:6336
13188 msgid ""
13189 "This affects whether commands are able to access the network (see L<guestfs"
13190 "(3)/RUNNING COMMANDS>)."
13191 msgstr ""
13192
13193 #. type: textblock
13194 #: ../fish/guestfish-actions.pod:4205
13195 msgid ""
13196 "You must call this before calling L</launch>, otherwise it has no effect."
13197 msgstr ""
13198
13199 #. type: =head2
13200 #: ../fish/guestfish-actions.pod:4208
13201 msgid "set-path"
13202 msgstr ""
13203
13204 #. type: verbatim
13205 #: ../fish/guestfish-actions.pod:4212
13206 #, no-wrap
13207 msgid ""
13208 " set-path searchpath\n"
13209 "\n"
13210 msgstr ""
13211
13212 #. type: textblock
13213 #: ../fish/guestfish-actions.pod:4214 ../src/guestfs-actions.pod:6352
13214 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13215 msgstr ""
13216
13217 #. type: textblock
13218 #: ../fish/guestfish-actions.pod:4216 ../src/guestfs-actions.pod:6354
13219 msgid ""
13220 "The default is C<$libdir/guestfs> unless overridden by setting "
13221 "C<LIBGUESTFS_PATH> environment variable."
13222 msgstr ""
13223
13224 #. type: textblock
13225 #: ../fish/guestfish-actions.pod:4219 ../src/guestfs-actions.pod:6357
13226 msgid "Setting C<path> to C<NULL> restores the default path."
13227 msgstr ""
13228
13229 #. type: =head2
13230 #: ../fish/guestfish-actions.pod:4221
13231 msgid "set-pgroup"
13232 msgstr ""
13233
13234 #. type: =head2
13235 #: ../fish/guestfish-actions.pod:4223
13236 msgid "pgroup"
13237 msgstr ""
13238
13239 #. type: verbatim
13240 #: ../fish/guestfish-actions.pod:4225
13241 #, no-wrap
13242 msgid ""
13243 " set-pgroup true|false\n"
13244 "\n"
13245 msgstr ""
13246
13247 #. type: textblock
13248 #: ../fish/guestfish-actions.pod:4227 ../src/guestfs-actions.pod:6369
13249 msgid ""
13250 "If C<pgroup> is true, child processes are placed into their own process "
13251 "group."
13252 msgstr ""
13253
13254 #. type: textblock
13255 #: ../fish/guestfish-actions.pod:4230 ../src/guestfs-actions.pod:6372
13256 msgid ""
13257 "The practical upshot of this is that signals like C<SIGINT> (from users "
13258 "pressing C<^C>) won't be received by the child process."
13259 msgstr ""
13260
13261 #. type: textblock
13262 #: ../fish/guestfish-actions.pod:4233 ../src/guestfs-actions.pod:6375
13263 msgid ""
13264 "The default for this flag is false, because usually you want C<^C> to kill "
13265 "the subprocess."
13266 msgstr ""
13267
13268 #. type: =head2
13269 #: ../fish/guestfish-actions.pod:4236
13270 msgid "set-qemu"
13271 msgstr ""
13272
13273 #. type: =head2
13274 #: ../fish/guestfish-actions.pod:4238
13275 msgid "qemu"
13276 msgstr ""
13277
13278 #. type: verbatim
13279 #: ../fish/guestfish-actions.pod:4240
13280 #, no-wrap
13281 msgid ""
13282 " set-qemu qemu\n"
13283 "\n"
13284 msgstr ""
13285
13286 #. type: textblock
13287 #: ../fish/guestfish-actions.pod:4242 ../src/guestfs-actions.pod:6388
13288 msgid "Set the qemu binary that we will use."
13289 msgstr ""
13290
13291 #. type: textblock
13292 #: ../fish/guestfish-actions.pod:4244 ../src/guestfs-actions.pod:6390
13293 msgid ""
13294 "The default is chosen when the library was compiled by the configure script."
13295 msgstr ""
13296
13297 #. type: textblock
13298 #: ../fish/guestfish-actions.pod:4247 ../src/guestfs-actions.pod:6393
13299 msgid ""
13300 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13301 "variable."
13302 msgstr ""
13303
13304 #. type: textblock
13305 #: ../fish/guestfish-actions.pod:4250 ../src/guestfs-actions.pod:6396
13306 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13307 msgstr ""
13308
13309 #. type: textblock
13310 #: ../fish/guestfish-actions.pod:4252 ../src/guestfs-actions.pod:6398
13311 msgid ""
13312 "Note that you should call this function as early as possible after creating "
13313 "the handle.  This is because some pre-launch operations depend on testing "
13314 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13315 "don't retest features, and so you might see inconsistent results.  Using the "
13316 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13317 "the qemu binary at the same time as the handle is created."
13318 msgstr ""
13319
13320 #. type: =head2
13321 #: ../fish/guestfish-actions.pod:4260
13322 msgid "set-recovery-proc"
13323 msgstr ""
13324
13325 #. type: =head2
13326 #: ../fish/guestfish-actions.pod:4262
13327 msgid "recovery-proc"
13328 msgstr ""
13329
13330 #. type: verbatim
13331 #: ../fish/guestfish-actions.pod:4264
13332 #, no-wrap
13333 msgid ""
13334 " set-recovery-proc true|false\n"
13335 "\n"
13336 msgstr ""
13337
13338 #. type: textblock
13339 #: ../fish/guestfish-actions.pod:4266
13340 msgid ""
13341 "If this is called with the parameter C<false> then L</launch> does not "
13342 "create a recovery process.  The purpose of the recovery process is to stop "
13343 "runaway qemu processes in the case where the main program aborts abruptly."
13344 msgstr ""
13345
13346 #. type: textblock
13347 #: ../fish/guestfish-actions.pod:4271
13348 msgid ""
13349 "This only has any effect if called before L</launch>, and the default is "
13350 "true."
13351 msgstr ""
13352
13353 #. type: textblock
13354 #: ../fish/guestfish-actions.pod:4274 ../src/guestfs-actions.pod:6424
13355 msgid ""
13356 "About the only time when you would want to disable this is if the main "
13357 "process will fork itself into the background (\"daemonize\" itself).  In "
13358 "this case the recovery process thinks that the main program has disappeared "
13359 "and so kills qemu, which is not very helpful."
13360 msgstr ""
13361
13362 #. type: =head2
13363 #: ../fish/guestfish-actions.pod:4280
13364 msgid "set-selinux"
13365 msgstr ""
13366
13367 #. type: =head2
13368 #: ../fish/guestfish-actions.pod:4282
13369 msgid "selinux"
13370 msgstr ""
13371
13372 #. type: verbatim
13373 #: ../fish/guestfish-actions.pod:4284
13374 #, no-wrap
13375 msgid ""
13376 " set-selinux true|false\n"
13377 "\n"
13378 msgstr ""
13379
13380 #. type: textblock
13381 #: ../fish/guestfish-actions.pod:4286 ../src/guestfs-actions.pod:6440
13382 msgid ""
13383 "This sets the selinux flag that is passed to the appliance at boot time.  "
13384 "The default is C<selinux=0> (disabled)."
13385 msgstr ""
13386
13387 #. type: textblock
13388 #: ../fish/guestfish-actions.pod:4289 ../src/guestfs-actions.pod:6443
13389 msgid ""
13390 "Note that if SELinux is enabled, it is always in Permissive mode "
13391 "(C<enforcing=0>)."
13392 msgstr ""
13393
13394 #. type: =head2
13395 #: ../fish/guestfish-actions.pod:4295
13396 msgid "set-trace"
13397 msgstr ""
13398
13399 #. type: =head2
13400 #: ../fish/guestfish-actions.pod:4297
13401 msgid "trace"
13402 msgstr ""
13403
13404 #. type: verbatim
13405 #: ../fish/guestfish-actions.pod:4299
13406 #, no-wrap
13407 msgid ""
13408 " set-trace true|false\n"
13409 "\n"
13410 msgstr ""
13411
13412 #. type: textblock
13413 #: ../fish/guestfish-actions.pod:4301 ../src/guestfs-actions.pod:6459
13414 msgid ""
13415 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
13416 "return values are traced."
13417 msgstr ""
13418
13419 #. type: textblock
13420 #: ../fish/guestfish-actions.pod:4304 ../src/guestfs-actions.pod:6462
13421 msgid ""
13422 "If you want to trace C API calls into libguestfs (and other libraries) then "
13423 "possibly a better way is to use the external ltrace(1) command."
13424 msgstr ""
13425
13426 #. type: textblock
13427 #: ../fish/guestfish-actions.pod:4308 ../src/guestfs-actions.pod:6466
13428 msgid ""
13429 "Command traces are disabled unless the environment variable "
13430 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
13431 msgstr ""
13432
13433 #. type: textblock
13434 #: ../fish/guestfish-actions.pod:4311
13435 msgid ""
13436 "Trace messages are normally sent to C<stderr>, unless you register a "
13437 "callback to send them somewhere else (see L</set-event-callback>)."
13438 msgstr ""
13439
13440 #. type: =head2
13441 #: ../fish/guestfish-actions.pod:4315
13442 msgid "set-verbose"
13443 msgstr ""
13444
13445 #. type: =head2
13446 #: ../fish/guestfish-actions.pod:4317
13447 msgid "verbose"
13448 msgstr ""
13449
13450 #. type: verbatim
13451 #: ../fish/guestfish-actions.pod:4319
13452 #, no-wrap
13453 msgid ""
13454 " set-verbose true|false\n"
13455 "\n"
13456 msgstr ""
13457
13458 #. type: textblock
13459 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6483
13460 msgid "If C<verbose> is true, this turns on verbose messages."
13461 msgstr ""
13462
13463 #. type: textblock
13464 #: ../fish/guestfish-actions.pod:4323 ../src/guestfs-actions.pod:6485
13465 msgid ""
13466 "Verbose messages are disabled unless the environment variable "
13467 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
13468 msgstr ""
13469
13470 #. type: textblock
13471 #: ../fish/guestfish-actions.pod:4326
13472 msgid ""
13473 "Verbose messages are normally sent to C<stderr>, unless you register a "
13474 "callback to send them somewhere else (see L</set-event-callback>)."
13475 msgstr ""
13476
13477 #. type: =head2
13478 #: ../fish/guestfish-actions.pod:4330
13479 msgid "setcon"
13480 msgstr ""
13481
13482 #. type: verbatim
13483 #: ../fish/guestfish-actions.pod:4332
13484 #, no-wrap
13485 msgid ""
13486 " setcon context\n"
13487 "\n"
13488 msgstr ""
13489
13490 #. type: textblock
13491 #: ../fish/guestfish-actions.pod:4334 ../src/guestfs-actions.pod:6502
13492 msgid ""
13493 "This sets the SELinux security context of the daemon to the string "
13494 "C<context>."
13495 msgstr ""
13496
13497 #. type: textblock
13498 #: ../fish/guestfish-actions.pod:4337 ../src/guestfs-actions.pod:6505
13499 msgid "See the documentation about SELINUX in L<guestfs(3)>."
13500 msgstr ""
13501
13502 #. type: =head2
13503 #: ../fish/guestfish-actions.pod:4339
13504 msgid "setxattr"
13505 msgstr ""
13506
13507 #. type: verbatim
13508 #: ../fish/guestfish-actions.pod:4341
13509 #, no-wrap
13510 msgid ""
13511 " setxattr xattr val vallen path\n"
13512 "\n"
13513 msgstr ""
13514
13515 #. type: textblock
13516 #: ../fish/guestfish-actions.pod:4343 ../src/guestfs-actions.pod:6520
13517 msgid ""
13518 "This call sets the extended attribute named C<xattr> of the file C<path> to "
13519 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
13520 msgstr ""
13521
13522 #. type: textblock
13523 #: ../fish/guestfish-actions.pod:4347
13524 msgid "See also: L</lsetxattr>, L<attr(5)>."
13525 msgstr ""
13526
13527 #. type: =head2
13528 #: ../fish/guestfish-actions.pod:4349
13529 msgid "sfdisk"
13530 msgstr ""
13531
13532 #. type: verbatim
13533 #: ../fish/guestfish-actions.pod:4351
13534 #, no-wrap
13535 msgid ""
13536 " sfdisk device cyls heads sectors 'lines ...'\n"
13537 "\n"
13538 msgstr ""
13539
13540 #. type: textblock
13541 #: ../fish/guestfish-actions.pod:4353 ../src/guestfs-actions.pod:6540
13542 msgid ""
13543 "This is a direct interface to the L<sfdisk(8)> program for creating "
13544 "partitions on block devices."
13545 msgstr ""
13546
13547 #. type: textblock
13548 #: ../fish/guestfish-actions.pod:4356 ../src/guestfs-actions.pod:6543
13549 msgid "C<device> should be a block device, for example C</dev/sda>."
13550 msgstr ""
13551
13552 #. type: textblock
13553 #: ../fish/guestfish-actions.pod:4358 ../src/guestfs-actions.pod:6545
13554 msgid ""
13555 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
13556 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
13557 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
13558 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
13559 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
13560 "the kernel) cannot work out the right geometry and you will need to tell it."
13561 msgstr ""
13562
13563 #. type: textblock
13564 #: ../fish/guestfish-actions.pod:4366 ../src/guestfs-actions.pod:6553
13565 msgid ""
13566 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
13567 "refer to the L<sfdisk(8)> manpage."
13568 msgstr ""
13569
13570 #. type: textblock
13571 #: ../fish/guestfish-actions.pod:4369 ../src/guestfs-actions.pod:6556
13572 msgid ""
13573 "To create a single partition occupying the whole disk, you would pass "
13574 "C<lines> as a single element list, when the single element being the string "
13575 "C<,> (comma)."
13576 msgstr ""
13577
13578 #. type: textblock
13579 #: ../fish/guestfish-actions.pod:4373
13580 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
13581 msgstr ""
13582
13583 #. type: textblock
13584 #: ../fish/guestfish-actions.pod:4379 ../fish/guestfish-actions.pod:4402
13585 #: ../fish/guestfish-actions.pod:4424
13586 msgid ""
13587 "This function is deprecated.  In new code, use the L</part_add> call instead."
13588 msgstr ""
13589
13590 #. type: =head2
13591 #: ../fish/guestfish-actions.pod:4386
13592 msgid "sfdiskM"
13593 msgstr ""
13594
13595 #. type: verbatim
13596 #: ../fish/guestfish-actions.pod:4388
13597 #, no-wrap
13598 msgid ""
13599 " sfdiskM device 'lines ...'\n"
13600 "\n"
13601 msgstr ""
13602
13603 #. type: textblock
13604 #: ../fish/guestfish-actions.pod:4390
13605 msgid ""
13606 "This is a simplified interface to the L</sfdisk> command, where partition "
13607 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
13608 "you don't need to specify the cyls, heads and sectors parameters which were "
13609 "rarely if ever used anyway."
13610 msgstr ""
13611
13612 #. type: textblock
13613 #: ../fish/guestfish-actions.pod:4396
13614 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
13615 msgstr ""
13616
13617 #. type: =head2
13618 #: ../fish/guestfish-actions.pod:4409
13619 msgid "sfdisk-N"
13620 msgstr ""
13621
13622 #. type: verbatim
13623 #: ../fish/guestfish-actions.pod:4411
13624 #, no-wrap
13625 msgid ""
13626 " sfdisk-N device partnum cyls heads sectors line\n"
13627 "\n"
13628 msgstr ""
13629
13630 #. type: textblock
13631 #: ../fish/guestfish-actions.pod:4413 ../src/guestfs-actions.pod:6618
13632 msgid ""
13633 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
13634 "(note: C<n> counts from 1)."
13635 msgstr ""
13636
13637 #. type: textblock
13638 #: ../fish/guestfish-actions.pod:4416
13639 msgid ""
13640 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
13641 "cyls/heads/sectors parameters."
13642 msgstr ""
13643
13644 #. type: textblock
13645 #: ../fish/guestfish-actions.pod:4419
13646 msgid "See also: L</part-add>"
13647 msgstr ""
13648
13649 #. type: =head2
13650 #: ../fish/guestfish-actions.pod:4431
13651 msgid "sfdisk-disk-geometry"
13652 msgstr ""
13653
13654 #. type: verbatim
13655 #: ../fish/guestfish-actions.pod:4433
13656 #, no-wrap
13657 msgid ""
13658 " sfdisk-disk-geometry device\n"
13659 "\n"
13660 msgstr ""
13661
13662 #. type: textblock
13663 #: ../fish/guestfish-actions.pod:4435
13664 msgid ""
13665 "This displays the disk geometry of C<device> read from the partition table.  "
13666 "Especially in the case where the underlying block device has been resized, "
13667 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
13668 "kernel-geometry>)."
13669 msgstr ""
13670
13671 #. type: textblock
13672 #: ../fish/guestfish-actions.pod:4440 ../fish/guestfish-actions.pod:4449
13673 #: ../src/guestfs-actions.pod:6651 ../src/guestfs-actions.pod:6667
13674 msgid "The result is in human-readable format, and not designed to be parsed."
13675 msgstr ""
13676
13677 #. type: =head2
13678 #: ../fish/guestfish-actions.pod:4443
13679 msgid "sfdisk-kernel-geometry"
13680 msgstr ""
13681
13682 #. type: verbatim
13683 #: ../fish/guestfish-actions.pod:4445
13684 #, no-wrap
13685 msgid ""
13686 " sfdisk-kernel-geometry device\n"
13687 "\n"
13688 msgstr ""
13689
13690 #. type: textblock
13691 #: ../fish/guestfish-actions.pod:4447 ../src/guestfs-actions.pod:6665
13692 msgid "This displays the kernel's idea of the geometry of C<device>."
13693 msgstr ""
13694
13695 #. type: =head2
13696 #: ../fish/guestfish-actions.pod:4452
13697 msgid "sfdisk-l"
13698 msgstr ""
13699
13700 #. type: verbatim
13701 #: ../fish/guestfish-actions.pod:4454
13702 #, no-wrap
13703 msgid ""
13704 " sfdisk-l device\n"
13705 "\n"
13706 msgstr ""
13707
13708 #. type: textblock
13709 #: ../fish/guestfish-actions.pod:4456 ../src/guestfs-actions.pod:6681
13710 msgid ""
13711 "This displays the partition table on C<device>, in the human-readable output "
13712 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
13713 msgstr ""
13714
13715 #. type: textblock
13716 #: ../fish/guestfish-actions.pod:4460
13717 msgid "See also: L</part-list>"
13718 msgstr ""
13719
13720 #. type: textblock
13721 #: ../fish/guestfish-actions.pod:4462
13722 msgid ""
13723 "This function is deprecated.  In new code, use the L</part_list> call "
13724 "instead."
13725 msgstr ""
13726
13727 #. type: =head2
13728 #: ../fish/guestfish-actions.pod:4469
13729 msgid "sh"
13730 msgstr ""
13731
13732 #. type: verbatim
13733 #: ../fish/guestfish-actions.pod:4471
13734 #, no-wrap
13735 msgid ""
13736 " sh command\n"
13737 "\n"
13738 msgstr ""
13739
13740 #. type: textblock
13741 #: ../fish/guestfish-actions.pod:4473 ../src/guestfs-actions.pod:6705
13742 msgid ""
13743 "This call runs a command from the guest filesystem via the guest's C</bin/"
13744 "sh>."
13745 msgstr ""
13746
13747 #. type: textblock
13748 #: ../fish/guestfish-actions.pod:4476
13749 msgid "This is like L</command>, but passes the command to:"
13750 msgstr ""
13751
13752 #. type: verbatim
13753 #: ../fish/guestfish-actions.pod:4478 ../src/guestfs-actions.pod:6710
13754 #, no-wrap
13755 msgid ""
13756 " /bin/sh -c \"command\"\n"
13757 "\n"
13758 msgstr ""
13759
13760 #. type: textblock
13761 #: ../fish/guestfish-actions.pod:4480 ../src/guestfs-actions.pod:6712
13762 msgid ""
13763 "Depending on the guest's shell, this usually results in wildcards being "
13764 "expanded, shell expressions being interpolated and so on."
13765 msgstr ""
13766
13767 #. type: textblock
13768 #: ../fish/guestfish-actions.pod:4484
13769 msgid "All the provisos about L</command> apply to this call."
13770 msgstr ""
13771
13772 #. type: =head2
13773 #: ../fish/guestfish-actions.pod:4486
13774 msgid "sh-lines"
13775 msgstr ""
13776
13777 #. type: verbatim
13778 #: ../fish/guestfish-actions.pod:4488
13779 #, no-wrap
13780 msgid ""
13781 " sh-lines command\n"
13782 "\n"
13783 msgstr ""
13784
13785 #. type: textblock
13786 #: ../fish/guestfish-actions.pod:4490
13787 msgid "This is the same as L</sh>, but splits the result into a list of lines."
13788 msgstr ""
13789
13790 #. type: textblock
13791 #: ../fish/guestfish-actions.pod:4493
13792 msgid "See also: L</command-lines>"
13793 msgstr ""
13794
13795 #. type: =head2
13796 #: ../fish/guestfish-actions.pod:4495
13797 msgid "sleep"
13798 msgstr ""
13799
13800 #. type: verbatim
13801 #: ../fish/guestfish-actions.pod:4497
13802 #, no-wrap
13803 msgid ""
13804 " sleep secs\n"
13805 "\n"
13806 msgstr ""
13807
13808 #. type: textblock
13809 #: ../fish/guestfish-actions.pod:4499 ../src/guestfs-actions.pod:6746
13810 msgid "Sleep for C<secs> seconds."
13811 msgstr ""
13812
13813 #. type: =head2
13814 #: ../fish/guestfish-actions.pod:4501
13815 msgid "stat"
13816 msgstr ""
13817
13818 #. type: verbatim
13819 #: ../fish/guestfish-actions.pod:4503
13820 #, no-wrap
13821 msgid ""
13822 " stat path\n"
13823 "\n"
13824 msgstr ""
13825
13826 #. type: textblock
13827 #: ../fish/guestfish-actions.pod:4507 ../src/guestfs-actions.pod:6760
13828 msgid "This is the same as the C<stat(2)> system call."
13829 msgstr ""
13830
13831 #. type: =head2
13832 #: ../fish/guestfish-actions.pod:4509
13833 msgid "statvfs"
13834 msgstr ""
13835
13836 #. type: verbatim
13837 #: ../fish/guestfish-actions.pod:4511
13838 #, no-wrap
13839 msgid ""
13840 " statvfs path\n"
13841 "\n"
13842 msgstr ""
13843
13844 #. type: textblock
13845 #: ../fish/guestfish-actions.pod:4513 ../src/guestfs-actions.pod:6774
13846 msgid ""
13847 "Returns file system statistics for any mounted file system.  C<path> should "
13848 "be a file or directory in the mounted file system (typically it is the mount "
13849 "point itself, but it doesn't need to be)."
13850 msgstr ""
13851
13852 #. type: textblock
13853 #: ../fish/guestfish-actions.pod:4517 ../src/guestfs-actions.pod:6778
13854 msgid "This is the same as the C<statvfs(2)> system call."
13855 msgstr ""
13856
13857 #. type: =head2
13858 #: ../fish/guestfish-actions.pod:4519
13859 msgid "strings"
13860 msgstr ""
13861
13862 #. type: verbatim
13863 #: ../fish/guestfish-actions.pod:4521
13864 #, no-wrap
13865 msgid ""
13866 " strings path\n"
13867 "\n"
13868 msgstr ""
13869
13870 #. type: textblock
13871 #: ../fish/guestfish-actions.pod:4523 ../src/guestfs-actions.pod:6792
13872 msgid ""
13873 "This runs the L<strings(1)> command on a file and returns the list of "
13874 "printable strings found."
13875 msgstr ""
13876
13877 #. type: =head2
13878 #: ../fish/guestfish-actions.pod:4529
13879 msgid "strings-e"
13880 msgstr ""
13881
13882 #. type: verbatim
13883 #: ../fish/guestfish-actions.pod:4531
13884 #, no-wrap
13885 msgid ""
13886 " strings-e encoding path\n"
13887 "\n"
13888 msgstr ""
13889
13890 #. type: textblock
13891 #: ../fish/guestfish-actions.pod:4533
13892 msgid ""
13893 "This is like the L</strings> command, but allows you to specify the encoding "
13894 "of strings that are looked for in the source file C<path>."
13895 msgstr ""
13896
13897 #. type: textblock
13898 #: ../fish/guestfish-actions.pod:4537 ../src/guestfs-actions.pod:6815
13899 msgid "Allowed encodings are:"
13900 msgstr ""
13901
13902 #. type: =item
13903 #: ../fish/guestfish-actions.pod:4541 ../src/guestfs-actions.pod:6819
13904 msgid "s"
13905 msgstr ""
13906
13907 #. type: textblock
13908 #: ../fish/guestfish-actions.pod:4543
13909 msgid ""
13910 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
13911 "ISO-8859-X (this is what L</strings> uses)."
13912 msgstr ""
13913
13914 #. type: =item
13915 #: ../fish/guestfish-actions.pod:4546 ../src/guestfs-actions.pod:6824
13916 msgid "S"
13917 msgstr ""
13918
13919 #. type: textblock
13920 #: ../fish/guestfish-actions.pod:4548 ../src/guestfs-actions.pod:6826
13921 msgid "Single 8-bit-byte characters."
13922 msgstr ""
13923
13924 #. type: =item
13925 #: ../fish/guestfish-actions.pod:4550 ../src/guestfs-actions.pod:6828
13926 msgid "b"
13927 msgstr ""
13928
13929 #. type: textblock
13930 #: ../fish/guestfish-actions.pod:4552 ../src/guestfs-actions.pod:6830
13931 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
13932 msgstr ""
13933
13934 #. type: =item
13935 #: ../fish/guestfish-actions.pod:4555 ../src/guestfs-actions.pod:6833
13936 msgid "l (lower case letter L)"
13937 msgstr ""
13938
13939 #. type: textblock
13940 #: ../fish/guestfish-actions.pod:4557 ../src/guestfs-actions.pod:6835
13941 msgid ""
13942 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
13943 "examining binaries in Windows guests."
13944 msgstr ""
13945
13946 #. type: =item
13947 #: ../fish/guestfish-actions.pod:4560 ../src/guestfs-actions.pod:6838
13948 msgid "B"
13949 msgstr ""
13950
13951 #. type: textblock
13952 #: ../fish/guestfish-actions.pod:4562 ../src/guestfs-actions.pod:6840
13953 msgid "32-bit big endian such as UCS-4BE."
13954 msgstr ""
13955
13956 #. type: =item
13957 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:6842
13958 msgid "L"
13959 msgstr ""
13960
13961 #. type: textblock
13962 #: ../fish/guestfish-actions.pod:4566 ../src/guestfs-actions.pod:6844
13963 msgid "32-bit little endian such as UCS-4LE."
13964 msgstr ""
13965
13966 #. type: textblock
13967 #: ../fish/guestfish-actions.pod:4570 ../src/guestfs-actions.pod:6848
13968 msgid "The returned strings are transcoded to UTF-8."
13969 msgstr ""
13970
13971 #. type: =head2
13972 #: ../fish/guestfish-actions.pod:4575
13973 msgid "swapoff-device"
13974 msgstr ""
13975
13976 #. type: verbatim
13977 #: ../fish/guestfish-actions.pod:4577
13978 #, no-wrap
13979 msgid ""
13980 " swapoff-device device\n"
13981 "\n"
13982 msgstr ""
13983
13984 #. type: textblock
13985 #: ../fish/guestfish-actions.pod:4579
13986 msgid ""
13987 "This command disables the libguestfs appliance swap device or partition "
13988 "named C<device>.  See L</swapon-device>."
13989 msgstr ""
13990
13991 #. type: =head2
13992 #: ../fish/guestfish-actions.pod:4583
13993 msgid "swapoff-file"
13994 msgstr ""
13995
13996 #. type: verbatim
13997 #: ../fish/guestfish-actions.pod:4585
13998 #, no-wrap
13999 msgid ""
14000 " swapoff-file file\n"
14001 "\n"
14002 msgstr ""
14003
14004 #. type: textblock
14005 #: ../fish/guestfish-actions.pod:4587 ../src/guestfs-actions.pod:6879
14006 msgid "This command disables the libguestfs appliance swap on file."
14007 msgstr ""
14008
14009 #. type: =head2
14010 #: ../fish/guestfish-actions.pod:4589
14011 msgid "swapoff-label"
14012 msgstr ""
14013
14014 #. type: verbatim
14015 #: ../fish/guestfish-actions.pod:4591
14016 #, no-wrap
14017 msgid ""
14018 " swapoff-label label\n"
14019 "\n"
14020 msgstr ""
14021
14022 #. type: textblock
14023 #: ../fish/guestfish-actions.pod:4593 ../src/guestfs-actions.pod:6891
14024 msgid ""
14025 "This command disables the libguestfs appliance swap on labeled swap "
14026 "partition."
14027 msgstr ""
14028
14029 #. type: =head2
14030 #: ../fish/guestfish-actions.pod:4596
14031 msgid "swapoff-uuid"
14032 msgstr ""
14033
14034 #. type: verbatim
14035 #: ../fish/guestfish-actions.pod:4598
14036 #, no-wrap
14037 msgid ""
14038 " swapoff-uuid uuid\n"
14039 "\n"
14040 msgstr ""
14041
14042 #. type: textblock
14043 #: ../fish/guestfish-actions.pod:4600 ../src/guestfs-actions.pod:6904
14044 msgid ""
14045 "This command disables the libguestfs appliance swap partition with the given "
14046 "UUID."
14047 msgstr ""
14048
14049 #. type: =head2
14050 #: ../fish/guestfish-actions.pod:4603
14051 msgid "swapon-device"
14052 msgstr ""
14053
14054 #. type: verbatim
14055 #: ../fish/guestfish-actions.pod:4605
14056 #, no-wrap
14057 msgid ""
14058 " swapon-device device\n"
14059 "\n"
14060 msgstr ""
14061
14062 #. type: textblock
14063 #: ../fish/guestfish-actions.pod:4607
14064 msgid ""
14065 "This command enables the libguestfs appliance to use the swap device or "
14066 "partition named C<device>.  The increased memory is made available for all "
14067 "commands, for example those run using L</command> or L</sh>."
14068 msgstr ""
14069
14070 #. type: textblock
14071 #: ../fish/guestfish-actions.pod:4612 ../src/guestfs-actions.pod:6922
14072 msgid ""
14073 "Note that you should not swap to existing guest swap partitions unless you "
14074 "know what you are doing.  They may contain hibernation information, or other "
14075 "information that the guest doesn't want you to trash.  You also risk leaking "
14076 "information about the host to the guest this way.  Instead, attach a new "
14077 "host device to the guest and swap on that."
14078 msgstr ""
14079
14080 #. type: =head2
14081 #: ../fish/guestfish-actions.pod:4619
14082 msgid "swapon-file"
14083 msgstr ""
14084
14085 #. type: verbatim
14086 #: ../fish/guestfish-actions.pod:4621
14087 #, no-wrap
14088 msgid ""
14089 " swapon-file file\n"
14090 "\n"
14091 msgstr ""
14092
14093 #. type: textblock
14094 #: ../fish/guestfish-actions.pod:4623
14095 msgid ""
14096 "This command enables swap to a file.  See L</swapon-device> for other notes."
14097 msgstr ""
14098
14099 #. type: =head2
14100 #: ../fish/guestfish-actions.pod:4626
14101 msgid "swapon-label"
14102 msgstr ""
14103
14104 #. type: verbatim
14105 #: ../fish/guestfish-actions.pod:4628
14106 #, no-wrap
14107 msgid ""
14108 " swapon-label label\n"
14109 "\n"
14110 msgstr ""
14111
14112 #. type: textblock
14113 #: ../fish/guestfish-actions.pod:4630
14114 msgid ""
14115 "This command enables swap to a labeled swap partition.  See L</swapon-"
14116 "device> for other notes."
14117 msgstr ""
14118
14119 #. type: =head2
14120 #: ../fish/guestfish-actions.pod:4633
14121 msgid "swapon-uuid"
14122 msgstr ""
14123
14124 #. type: verbatim
14125 #: ../fish/guestfish-actions.pod:4635
14126 #, no-wrap
14127 msgid ""
14128 " swapon-uuid uuid\n"
14129 "\n"
14130 msgstr ""
14131
14132 #. type: textblock
14133 #: ../fish/guestfish-actions.pod:4637
14134 msgid ""
14135 "This command enables swap to a swap partition with the given UUID.  See L</"
14136 "swapon-device> for other notes."
14137 msgstr ""
14138
14139 #. type: =head2
14140 #: ../fish/guestfish-actions.pod:4640
14141 msgid "sync"
14142 msgstr ""
14143
14144 #. type: verbatim
14145 #: ../fish/guestfish-actions.pod:4642
14146 #, no-wrap
14147 msgid ""
14148 " sync\n"
14149 "\n"
14150 msgstr ""
14151
14152 #. type: textblock
14153 #: ../fish/guestfish-actions.pod:4644 ../src/guestfs-actions.pod:6977
14154 msgid ""
14155 "This syncs the disk, so that any writes are flushed through to the "
14156 "underlying disk image."
14157 msgstr ""
14158
14159 #. type: textblock
14160 #: ../fish/guestfish-actions.pod:4647 ../src/guestfs-actions.pod:6980
14161 msgid ""
14162 "You should always call this if you have modified a disk image, before "
14163 "closing the handle."
14164 msgstr ""
14165
14166 #. type: =head2
14167 #: ../fish/guestfish-actions.pod:4650
14168 msgid "tail"
14169 msgstr ""
14170
14171 #. type: verbatim
14172 #: ../fish/guestfish-actions.pod:4652
14173 #, no-wrap
14174 msgid ""
14175 " tail path\n"
14176 "\n"
14177 msgstr ""
14178
14179 #. type: textblock
14180 #: ../fish/guestfish-actions.pod:4654 ../src/guestfs-actions.pod:6993
14181 msgid ""
14182 "This command returns up to the last 10 lines of a file as a list of strings."
14183 msgstr ""
14184
14185 #. type: =head2
14186 #: ../fish/guestfish-actions.pod:4660
14187 msgid "tail-n"
14188 msgstr ""
14189
14190 #. type: verbatim
14191 #: ../fish/guestfish-actions.pod:4662
14192 #, no-wrap
14193 msgid ""
14194 " tail-n nrlines path\n"
14195 "\n"
14196 msgstr ""
14197
14198 #. type: textblock
14199 #: ../fish/guestfish-actions.pod:4664 ../src/guestfs-actions.pod:7012
14200 msgid ""
14201 "If the parameter C<nrlines> is a positive number, this returns the last "
14202 "C<nrlines> lines of the file C<path>."
14203 msgstr ""
14204
14205 #. type: textblock
14206 #: ../fish/guestfish-actions.pod:4667 ../src/guestfs-actions.pod:7015
14207 msgid ""
14208 "If the parameter C<nrlines> is a negative number, this returns lines from "
14209 "the file C<path>, starting with the C<-nrlines>th line."
14210 msgstr ""
14211
14212 #. type: =head2
14213 #: ../fish/guestfish-actions.pod:4675
14214 msgid "tar-in"
14215 msgstr ""
14216
14217 #. type: verbatim
14218 #: ../fish/guestfish-actions.pod:4677
14219 #, no-wrap
14220 msgid ""
14221 " tar-in (tarfile|-) directory\n"
14222 "\n"
14223 msgstr ""
14224
14225 #. type: textblock
14226 #: ../fish/guestfish-actions.pod:4679 ../src/guestfs-actions.pod:7036
14227 msgid ""
14228 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14229 "tar file) into C<directory>."
14230 msgstr ""
14231
14232 #. type: textblock
14233 #: ../fish/guestfish-actions.pod:4682
14234 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
14235 msgstr ""
14236
14237 #. type: =head2
14238 #: ../fish/guestfish-actions.pod:4687
14239 msgid "tar-out"
14240 msgstr ""
14241
14242 #. type: verbatim
14243 #: ../fish/guestfish-actions.pod:4689
14244 #, no-wrap
14245 msgid ""
14246 " tar-out directory (tarfile|-)\n"
14247 "\n"
14248 msgstr ""
14249
14250 #. type: textblock
14251 #: ../fish/guestfish-actions.pod:4691 ../src/guestfs-actions.pod:7053
14252 msgid ""
14253 "This command packs the contents of C<directory> and downloads it to local "
14254 "file C<tarfile>."
14255 msgstr ""
14256
14257 #. type: textblock
14258 #: ../fish/guestfish-actions.pod:4694
14259 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
14260 msgstr ""
14261
14262 #. type: =head2
14263 #: ../fish/guestfish-actions.pod:4699
14264 msgid "tgz-in"
14265 msgstr ""
14266
14267 #. type: verbatim
14268 #: ../fish/guestfish-actions.pod:4701
14269 #, no-wrap
14270 msgid ""
14271 " tgz-in (tarball|-) directory\n"
14272 "\n"
14273 msgstr ""
14274
14275 #. type: textblock
14276 #: ../fish/guestfish-actions.pod:4703 ../src/guestfs-actions.pod:7070
14277 msgid ""
14278 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14279 "tar file) into C<directory>."
14280 msgstr ""
14281
14282 #. type: textblock
14283 #: ../fish/guestfish-actions.pod:4706
14284 msgid "To upload an uncompressed tarball, use L</tar-in>."
14285 msgstr ""
14286
14287 #. type: =head2
14288 #: ../fish/guestfish-actions.pod:4710
14289 msgid "tgz-out"
14290 msgstr ""
14291
14292 #. type: verbatim
14293 #: ../fish/guestfish-actions.pod:4712
14294 #, no-wrap
14295 msgid ""
14296 " tgz-out directory (tarball|-)\n"
14297 "\n"
14298 msgstr ""
14299
14300 #. type: textblock
14301 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7086
14302 msgid ""
14303 "This command packs the contents of C<directory> and downloads it to local "
14304 "file C<tarball>."
14305 msgstr ""
14306
14307 #. type: textblock
14308 #: ../fish/guestfish-actions.pod:4717
14309 msgid "To download an uncompressed tarball, use L</tar-out>."
14310 msgstr ""
14311
14312 #. type: =head2
14313 #: ../fish/guestfish-actions.pod:4721
14314 msgid "touch"
14315 msgstr ""
14316
14317 #. type: verbatim
14318 #: ../fish/guestfish-actions.pod:4723
14319 #, no-wrap
14320 msgid ""
14321 " touch path\n"
14322 "\n"
14323 msgstr ""
14324
14325 #. type: textblock
14326 #: ../fish/guestfish-actions.pod:4725 ../src/guestfs-actions.pod:7101
14327 msgid ""
14328 "Touch acts like the L<touch(1)> command.  It can be used to update the "
14329 "timestamps on a file, or, if the file does not exist, to create a new zero-"
14330 "length file."
14331 msgstr ""
14332
14333 #. type: textblock
14334 #: ../fish/guestfish-actions.pod:4729 ../src/guestfs-actions.pod:7105
14335 msgid ""
14336 "This command only works on regular files, and will fail on other file types "
14337 "such as directories, symbolic links, block special etc."
14338 msgstr ""
14339
14340 #. type: =head2
14341 #: ../fish/guestfish-actions.pod:4732
14342 msgid "truncate"
14343 msgstr ""
14344
14345 #. type: verbatim
14346 #: ../fish/guestfish-actions.pod:4734
14347 #, no-wrap
14348 msgid ""
14349 " truncate path\n"
14350 "\n"
14351 msgstr ""
14352
14353 #. type: textblock
14354 #: ../fish/guestfish-actions.pod:4736 ../src/guestfs-actions.pod:7118
14355 msgid ""
14356 "This command truncates C<path> to a zero-length file.  The file must exist "
14357 "already."
14358 msgstr ""
14359
14360 #. type: =head2
14361 #: ../fish/guestfish-actions.pod:4739
14362 msgid "truncate-size"
14363 msgstr ""
14364
14365 #. type: verbatim
14366 #: ../fish/guestfish-actions.pod:4741
14367 #, no-wrap
14368 msgid ""
14369 " truncate-size path size\n"
14370 "\n"
14371 msgstr ""
14372
14373 #. type: textblock
14374 #: ../fish/guestfish-actions.pod:4743 ../src/guestfs-actions.pod:7132
14375 msgid ""
14376 "This command truncates C<path> to size C<size> bytes.  The file must exist "
14377 "already."
14378 msgstr ""
14379
14380 #. type: textblock
14381 #: ../fish/guestfish-actions.pod:4746
14382 msgid ""
14383 "If the current file size is less than C<size> then the file is extended to "
14384 "the required size with zero bytes.  This creates a sparse file (ie. disk "
14385 "blocks are not allocated for the file until you write to it).  To create a "
14386 "non-sparse file of zeroes, use L</fallocate64> instead."
14387 msgstr ""
14388
14389 #. type: =head2
14390 #: ../fish/guestfish-actions.pod:4752
14391 msgid "tune2fs-l"
14392 msgstr ""
14393
14394 #. type: verbatim
14395 #: ../fish/guestfish-actions.pod:4754
14396 #, no-wrap
14397 msgid ""
14398 " tune2fs-l device\n"
14399 "\n"
14400 msgstr ""
14401
14402 #. type: textblock
14403 #: ../fish/guestfish-actions.pod:4756 ../src/guestfs-actions.pod:7151
14404 msgid ""
14405 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
14406 "C<device>."
14407 msgstr ""
14408
14409 #. type: textblock
14410 #: ../fish/guestfish-actions.pod:4759 ../src/guestfs-actions.pod:7154
14411 msgid ""
14412 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
14413 "for more details.  The list of fields returned isn't clearly defined, and "
14414 "depends on both the version of C<tune2fs> that libguestfs was built against, "
14415 "and the filesystem itself."
14416 msgstr ""
14417
14418 #. type: =head2
14419 #: ../fish/guestfish-actions.pod:4764
14420 msgid "txz-in"
14421 msgstr ""
14422
14423 #. type: verbatim
14424 #: ../fish/guestfish-actions.pod:4766
14425 #, no-wrap
14426 msgid ""
14427 " txz-in (tarball|-) directory\n"
14428 "\n"
14429 msgstr ""
14430
14431 #. type: textblock
14432 #: ../fish/guestfish-actions.pod:4768 ../src/guestfs-actions.pod:7174
14433 msgid ""
14434 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
14435 "tar file) into C<directory>."
14436 msgstr ""
14437
14438 #. type: =head2
14439 #: ../fish/guestfish-actions.pod:4773
14440 msgid "txz-out"
14441 msgstr ""
14442
14443 #. type: verbatim
14444 #: ../fish/guestfish-actions.pod:4775
14445 #, no-wrap
14446 msgid ""
14447 " txz-out directory (tarball|-)\n"
14448 "\n"
14449 msgstr ""
14450
14451 #. type: textblock
14452 #: ../fish/guestfish-actions.pod:4777 ../src/guestfs-actions.pod:7188
14453 msgid ""
14454 "This command packs the contents of C<directory> and downloads it to local "
14455 "file C<tarball> (as an xz compressed tar archive)."
14456 msgstr ""
14457
14458 #. type: =head2
14459 #: ../fish/guestfish-actions.pod:4782
14460 msgid "umask"
14461 msgstr ""
14462
14463 #. type: verbatim
14464 #: ../fish/guestfish-actions.pod:4784
14465 #, no-wrap
14466 msgid ""
14467 " umask mask\n"
14468 "\n"
14469 msgstr ""
14470
14471 #. type: textblock
14472 #: ../fish/guestfish-actions.pod:4786 ../src/guestfs-actions.pod:7201
14473 msgid ""
14474 "This function sets the mask used for creating new files and device nodes to "
14475 "C<mask & 0777>."
14476 msgstr ""
14477
14478 #. type: textblock
14479 #: ../fish/guestfish-actions.pod:4789 ../src/guestfs-actions.pod:7204
14480 msgid ""
14481 "Typical umask values would be C<022> which creates new files with "
14482 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
14483 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
14484 msgstr ""
14485
14486 #. type: textblock
14487 #: ../fish/guestfish-actions.pod:4794 ../src/guestfs-actions.pod:7209
14488 msgid ""
14489 "The default umask is C<022>.  This is important because it means that "
14490 "directories and device nodes will be created with C<0644> or C<0755> mode "
14491 "even if you specify C<0777>."
14492 msgstr ""
14493
14494 #. type: textblock
14495 #: ../fish/guestfish-actions.pod:4798
14496 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
14497 msgstr ""
14498
14499 #. type: textblock
14500 #: ../fish/guestfish-actions.pod:4801 ../src/guestfs-actions.pod:7216
14501 msgid "This call returns the previous umask."
14502 msgstr ""
14503
14504 #. type: =head2
14505 #: ../fish/guestfish-actions.pod:4803
14506 msgid "umount"
14507 msgstr ""
14508
14509 #. type: =head2
14510 #: ../fish/guestfish-actions.pod:4805
14511 msgid "unmount"
14512 msgstr ""
14513
14514 #. type: verbatim
14515 #: ../fish/guestfish-actions.pod:4807
14516 #, no-wrap
14517 msgid ""
14518 " umount pathordevice\n"
14519 "\n"
14520 msgstr ""
14521
14522 #. type: textblock
14523 #: ../fish/guestfish-actions.pod:4809 ../src/guestfs-actions.pod:7228
14524 msgid ""
14525 "This unmounts the given filesystem.  The filesystem may be specified either "
14526 "by its mountpoint (path) or the device which contains the filesystem."
14527 msgstr ""
14528
14529 #. type: =head2
14530 #: ../fish/guestfish-actions.pod:4813
14531 msgid "umount-all"
14532 msgstr ""
14533
14534 #. type: =head2
14535 #: ../fish/guestfish-actions.pod:4815
14536 msgid "unmount-all"
14537 msgstr ""
14538
14539 #. type: verbatim
14540 #: ../fish/guestfish-actions.pod:4817
14541 #, no-wrap
14542 msgid ""
14543 " umount-all\n"
14544 "\n"
14545 msgstr ""
14546
14547 #. type: textblock
14548 #: ../fish/guestfish-actions.pod:4819 ../src/guestfs-actions.pod:7241
14549 msgid "This unmounts all mounted filesystems."
14550 msgstr ""
14551
14552 #. type: textblock
14553 #: ../fish/guestfish-actions.pod:4821 ../src/guestfs-actions.pod:7243
14554 msgid "Some internal mounts are not unmounted by this call."
14555 msgstr ""
14556
14557 #. type: =head2
14558 #: ../fish/guestfish-actions.pod:4823
14559 msgid "upload"
14560 msgstr ""
14561
14562 #. type: verbatim
14563 #: ../fish/guestfish-actions.pod:4825
14564 #, no-wrap
14565 msgid ""
14566 " upload (filename|-) remotefilename\n"
14567 "\n"
14568 msgstr ""
14569
14570 #. type: textblock
14571 #: ../fish/guestfish-actions.pod:4827 ../fish/guestfish-actions.pod:4840
14572 #: ../src/guestfs-actions.pod:7256 ../src/guestfs-actions.pod:7280
14573 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
14574 msgstr ""
14575
14576 #. type: textblock
14577 #: ../fish/guestfish-actions.pod:4832
14578 msgid "See also L</download>."
14579 msgstr ""
14580
14581 #. type: =head2
14582 #: ../fish/guestfish-actions.pod:4836
14583 msgid "upload-offset"
14584 msgstr ""
14585
14586 #. type: verbatim
14587 #: ../fish/guestfish-actions.pod:4838
14588 #, no-wrap
14589 msgid ""
14590 " upload-offset (filename|-) remotefilename offset\n"
14591 "\n"
14592 msgstr ""
14593
14594 #. type: textblock
14595 #: ../fish/guestfish-actions.pod:4843 ../src/guestfs-actions.pod:7283
14596 msgid ""
14597 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
14598 "The intention is to overwrite parts of existing files or devices, although "
14599 "if a non-existant file is specified then it is created with a \"hole\" "
14600 "before C<offset>.  The size of the data written is implicit in the size of "
14601 "the source C<filename>."
14602 msgstr ""
14603
14604 #. type: textblock
14605 #: ../fish/guestfish-actions.pod:4850
14606 msgid ""
14607 "Note that there is no limit on the amount of data that can be uploaded with "
14608 "this call, unlike with L</pwrite>, and this call always writes the full "
14609 "amount unless an error occurs."
14610 msgstr ""
14611
14612 #. type: textblock
14613 #: ../fish/guestfish-actions.pod:4855
14614 msgid "See also L</upload>, L</pwrite>."
14615 msgstr ""
14616
14617 #. type: =head2
14618 #: ../fish/guestfish-actions.pod:4859
14619 msgid "utimens"
14620 msgstr ""
14621
14622 #. type: verbatim
14623 #: ../fish/guestfish-actions.pod:4861
14624 #, no-wrap
14625 msgid ""
14626 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
14627 "\n"
14628 msgstr ""
14629
14630 #. type: textblock
14631 #: ../fish/guestfish-actions.pod:4863 ../src/guestfs-actions.pod:7316
14632 msgid "This command sets the timestamps of a file with nanosecond precision."
14633 msgstr ""
14634
14635 #. type: textblock
14636 #: ../fish/guestfish-actions.pod:4866 ../src/guestfs-actions.pod:7319
14637 msgid ""
14638 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
14639 "from the epoch."
14640 msgstr ""
14641
14642 #. type: textblock
14643 #: ../fish/guestfish-actions.pod:4869 ../src/guestfs-actions.pod:7322
14644 msgid ""
14645 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
14646 "nanoseconds from the epoch."
14647 msgstr ""
14648
14649 #. type: textblock
14650 #: ../fish/guestfish-actions.pod:4872 ../src/guestfs-actions.pod:7325
14651 msgid ""
14652 "If the C<*nsecs> field contains the special value C<-1> then the "
14653 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
14654 "ignored in this case)."
14655 msgstr ""
14656
14657 #. type: textblock
14658 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7329
14659 msgid ""
14660 "If the C<*nsecs> field contains the special value C<-2> then the "
14661 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
14662 "in this case)."
14663 msgstr ""
14664
14665 #. type: =head2
14666 #: ../fish/guestfish-actions.pod:4880
14667 msgid "version"
14668 msgstr ""
14669
14670 #. type: verbatim
14671 #: ../fish/guestfish-actions.pod:4882
14672 #, no-wrap
14673 msgid ""
14674 " version\n"
14675 "\n"
14676 msgstr ""
14677
14678 #. type: textblock
14679 #: ../fish/guestfish-actions.pod:4884 ../src/guestfs-actions.pod:7342
14680 msgid ""
14681 "Return the libguestfs version number that the program is linked against."
14682 msgstr ""
14683
14684 #. type: textblock
14685 #: ../fish/guestfish-actions.pod:4887 ../src/guestfs-actions.pod:7345
14686 msgid ""
14687 "Note that because of dynamic linking this is not necessarily the version of "
14688 "libguestfs that you compiled against.  You can compile the program, and then "
14689 "at runtime dynamically link against a completely different C<libguestfs.so> "
14690 "library."
14691 msgstr ""
14692
14693 #. type: textblock
14694 #: ../fish/guestfish-actions.pod:4892 ../src/guestfs-actions.pod:7350
14695 msgid ""
14696 "This call was added in version C<1.0.58>.  In previous versions of "
14697 "libguestfs there was no way to get the version number.  From C code you can "
14698 "use dynamic linker functions to find out if this symbol exists (if it "
14699 "doesn't, then it's an earlier version)."
14700 msgstr ""
14701
14702 #. type: textblock
14703 #: ../fish/guestfish-actions.pod:4898 ../src/guestfs-actions.pod:7356
14704 msgid ""
14705 "The call returns a structure with four elements.  The first three (C<major>, "
14706 "C<minor> and C<release>) are numbers and correspond to the usual version "
14707 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
14708 "but may be used for distro-specific information."
14709 msgstr ""
14710
14711 #. type: textblock
14712 #: ../fish/guestfish-actions.pod:4904 ../src/guestfs-actions.pod:7362
14713 msgid ""
14714 "To construct the original version string: C<$major.$minor.$release$extra>"
14715 msgstr ""
14716
14717 #. type: textblock
14718 #: ../fish/guestfish-actions.pod:4907 ../src/guestfs-actions.pod:7365
14719 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
14720 msgstr ""
14721
14722 #. type: textblock
14723 #: ../fish/guestfish-actions.pod:4909
14724 msgid ""
14725 "I<Note:> Don't use this call to test for availability of features.  In "
14726 "enterprise distributions we backport features from later versions into "
14727 "earlier versions, making this an unreliable way to test for features.  Use "
14728 "L</available> instead."
14729 msgstr ""
14730
14731 #. type: =head2
14732 #: ../fish/guestfish-actions.pod:4915
14733 msgid "vfs-label"
14734 msgstr ""
14735
14736 #. type: verbatim
14737 #: ../fish/guestfish-actions.pod:4917
14738 #, no-wrap
14739 msgid ""
14740 " vfs-label device\n"
14741 "\n"
14742 msgstr ""
14743
14744 #. type: textblock
14745 #: ../fish/guestfish-actions.pod:4919 ../src/guestfs-actions.pod:7385
14746 msgid "This returns the filesystem label of the filesystem on C<device>."
14747 msgstr ""
14748
14749 #. type: textblock
14750 #: ../fish/guestfish-actions.pod:4922 ../src/guestfs-actions.pod:7388
14751 msgid "If the filesystem is unlabeled, this returns the empty string."
14752 msgstr ""
14753
14754 #. type: textblock
14755 #: ../fish/guestfish-actions.pod:4924
14756 msgid "To find a filesystem from the label, use L</findfs-label>."
14757 msgstr ""
14758
14759 #. type: =head2
14760 #: ../fish/guestfish-actions.pod:4926
14761 msgid "vfs-type"
14762 msgstr ""
14763
14764 #. type: verbatim
14765 #: ../fish/guestfish-actions.pod:4928
14766 #, no-wrap
14767 msgid ""
14768 " vfs-type device\n"
14769 "\n"
14770 msgstr ""
14771
14772 #. type: textblock
14773 #: ../fish/guestfish-actions.pod:4930 ../src/guestfs-actions.pod:7403
14774 msgid ""
14775 "This command gets the filesystem type corresponding to the filesystem on "
14776 "C<device>."
14777 msgstr ""
14778
14779 #. type: textblock
14780 #: ../fish/guestfish-actions.pod:4933 ../src/guestfs-actions.pod:7406
14781 msgid ""
14782 "For most filesystems, the result is the name of the Linux VFS module which "
14783 "would be used to mount this filesystem if you mounted it without specifying "
14784 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
14785 msgstr ""
14786
14787 #. type: =head2
14788 #: ../fish/guestfish-actions.pod:4938
14789 msgid "vfs-uuid"
14790 msgstr ""
14791
14792 #. type: verbatim
14793 #: ../fish/guestfish-actions.pod:4940
14794 #, no-wrap
14795 msgid ""
14796 " vfs-uuid device\n"
14797 "\n"
14798 msgstr ""
14799
14800 #. type: textblock
14801 #: ../fish/guestfish-actions.pod:4942 ../src/guestfs-actions.pod:7422
14802 msgid "This returns the filesystem UUID of the filesystem on C<device>."
14803 msgstr ""
14804
14805 #. type: textblock
14806 #: ../fish/guestfish-actions.pod:4945 ../src/guestfs-actions.pod:7425
14807 msgid "If the filesystem does not have a UUID, this returns the empty string."
14808 msgstr ""
14809
14810 #. type: textblock
14811 #: ../fish/guestfish-actions.pod:4947
14812 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
14813 msgstr ""
14814
14815 #. type: =head2
14816 #: ../fish/guestfish-actions.pod:4949
14817 msgid "vg-activate"
14818 msgstr ""
14819
14820 #. type: verbatim
14821 #: ../fish/guestfish-actions.pod:4951
14822 #, no-wrap
14823 msgid ""
14824 " vg-activate true|false 'volgroups ...'\n"
14825 "\n"
14826 msgstr ""
14827
14828 #. type: textblock
14829 #: ../fish/guestfish-actions.pod:4953 ../src/guestfs-actions.pod:7441
14830 msgid ""
14831 "This command activates or (if C<activate> is false) deactivates all logical "
14832 "volumes in the listed volume groups C<volgroups>."
14833 msgstr ""
14834
14835 #. type: textblock
14836 #: ../fish/guestfish-actions.pod:4956 ../src/guestfs-actions.pod:7444
14837 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
14838 msgstr ""
14839
14840 #. type: textblock
14841 #: ../fish/guestfish-actions.pod:4958 ../src/guestfs-actions.pod:7446
14842 msgid ""
14843 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
14844 "activated or deactivated."
14845 msgstr ""
14846
14847 #. type: =head2
14848 #: ../fish/guestfish-actions.pod:4961
14849 msgid "vg-activate-all"
14850 msgstr ""
14851
14852 #. type: verbatim
14853 #: ../fish/guestfish-actions.pod:4963
14854 #, no-wrap
14855 msgid ""
14856 " vg-activate-all true|false\n"
14857 "\n"
14858 msgstr ""
14859
14860 #. type: textblock
14861 #: ../fish/guestfish-actions.pod:4965 ../src/guestfs-actions.pod:7459
14862 msgid ""
14863 "This command activates or (if C<activate> is false) deactivates all logical "
14864 "volumes in all volume groups."
14865 msgstr ""
14866
14867 #. type: textblock
14868 #: ../fish/guestfish-actions.pod:4968 ../src/guestfs-actions.pod:7462
14869 msgid "This command is the same as running C<vgchange -a y|n>"
14870 msgstr ""
14871
14872 #. type: =head2
14873 #: ../fish/guestfish-actions.pod:4970
14874 msgid "vgcreate"
14875 msgstr ""
14876
14877 #. type: verbatim
14878 #: ../fish/guestfish-actions.pod:4972
14879 #, no-wrap
14880 msgid ""
14881 " vgcreate volgroup 'physvols ...'\n"
14882 "\n"
14883 msgstr ""
14884
14885 #. type: textblock
14886 #: ../fish/guestfish-actions.pod:4974 ../src/guestfs-actions.pod:7475
14887 msgid ""
14888 "This creates an LVM volume group called C<volgroup> from the non-empty list "
14889 "of physical volumes C<physvols>."
14890 msgstr ""
14891
14892 #. type: =head2
14893 #: ../fish/guestfish-actions.pod:4977
14894 msgid "vglvuuids"
14895 msgstr ""
14896
14897 #. type: verbatim
14898 #: ../fish/guestfish-actions.pod:4979
14899 #, no-wrap
14900 msgid ""
14901 " vglvuuids vgname\n"
14902 "\n"
14903 msgstr ""
14904
14905 #. type: textblock
14906 #: ../fish/guestfish-actions.pod:4981 ../src/guestfs-actions.pod:7488
14907 msgid ""
14908 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
14909 "volumes created in this volume group."
14910 msgstr ""
14911
14912 #. type: textblock
14913 #: ../fish/guestfish-actions.pod:4984
14914 msgid ""
14915 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
14916 "logical volumes and volume groups."
14917 msgstr ""
14918
14919 #. type: textblock
14920 #: ../fish/guestfish-actions.pod:4987
14921 msgid "See also L</vgpvuuids>."
14922 msgstr ""
14923
14924 #. type: =head2
14925 #: ../fish/guestfish-actions.pod:4989
14926 msgid "vgpvuuids"
14927 msgstr ""
14928
14929 #. type: verbatim
14930 #: ../fish/guestfish-actions.pod:4991
14931 #, no-wrap
14932 msgid ""
14933 " vgpvuuids vgname\n"
14934 "\n"
14935 msgstr ""
14936
14937 #. type: textblock
14938 #: ../fish/guestfish-actions.pod:4993 ../src/guestfs-actions.pod:7508
14939 msgid ""
14940 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
14941 "volumes that this volume group resides on."
14942 msgstr ""
14943
14944 #. type: textblock
14945 #: ../fish/guestfish-actions.pod:4996
14946 msgid ""
14947 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
14948 "physical volumes and volume groups."
14949 msgstr ""
14950
14951 #. type: textblock
14952 #: ../fish/guestfish-actions.pod:4999
14953 msgid "See also L</vglvuuids>."
14954 msgstr ""
14955
14956 #. type: =head2
14957 #: ../fish/guestfish-actions.pod:5001
14958 msgid "vgremove"
14959 msgstr ""
14960
14961 #. type: verbatim
14962 #: ../fish/guestfish-actions.pod:5003
14963 #, no-wrap
14964 msgid ""
14965 " vgremove vgname\n"
14966 "\n"
14967 msgstr ""
14968
14969 #. type: textblock
14970 #: ../fish/guestfish-actions.pod:5005 ../src/guestfs-actions.pod:7528
14971 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
14972 msgstr ""
14973
14974 #. type: textblock
14975 #: ../fish/guestfish-actions.pod:5007 ../src/guestfs-actions.pod:7530
14976 msgid ""
14977 "This also forcibly removes all logical volumes in the volume group (if any)."
14978 msgstr ""
14979
14980 #. type: =head2
14981 #: ../fish/guestfish-actions.pod:5010
14982 msgid "vgrename"
14983 msgstr ""
14984
14985 #. type: verbatim
14986 #: ../fish/guestfish-actions.pod:5012
14987 #, no-wrap
14988 msgid ""
14989 " vgrename volgroup newvolgroup\n"
14990 "\n"
14991 msgstr ""
14992
14993 #. type: textblock
14994 #: ../fish/guestfish-actions.pod:5014 ../src/guestfs-actions.pod:7544
14995 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
14996 msgstr ""
14997
14998 #. type: =head2
14999 #: ../fish/guestfish-actions.pod:5016
15000 msgid "vgs"
15001 msgstr ""
15002
15003 #. type: verbatim
15004 #: ../fish/guestfish-actions.pod:5018
15005 #, no-wrap
15006 msgid ""
15007 " vgs\n"
15008 "\n"
15009 msgstr ""
15010
15011 #. type: textblock
15012 #: ../fish/guestfish-actions.pod:5020 ../src/guestfs-actions.pod:7555
15013 msgid ""
15014 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15015 "> command."
15016 msgstr ""
15017
15018 #. type: textblock
15019 #: ../fish/guestfish-actions.pod:5023 ../src/guestfs-actions.pod:7558
15020 msgid ""
15021 "This returns a list of just the volume group names that were detected (eg. "
15022 "C<VolGroup00>)."
15023 msgstr ""
15024
15025 #. type: textblock
15026 #: ../fish/guestfish-actions.pod:5026
15027 msgid "See also L</vgs-full>."
15028 msgstr ""
15029
15030 #. type: =head2
15031 #: ../fish/guestfish-actions.pod:5028
15032 msgid "vgs-full"
15033 msgstr ""
15034
15035 #. type: verbatim
15036 #: ../fish/guestfish-actions.pod:5030
15037 #, no-wrap
15038 msgid ""
15039 " vgs-full\n"
15040 "\n"
15041 msgstr ""
15042
15043 #. type: textblock
15044 #: ../fish/guestfish-actions.pod:5032 ../src/guestfs-actions.pod:7574
15045 msgid ""
15046 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15047 "> command.  The \"full\" version includes all fields."
15048 msgstr ""
15049
15050 #. type: =head2
15051 #: ../fish/guestfish-actions.pod:5035
15052 msgid "vgscan"
15053 msgstr ""
15054
15055 #. type: verbatim
15056 #: ../fish/guestfish-actions.pod:5037
15057 #, no-wrap
15058 msgid ""
15059 " vgscan\n"
15060 "\n"
15061 msgstr ""
15062
15063 #. type: textblock
15064 #: ../fish/guestfish-actions.pod:5039 ../src/guestfs-actions.pod:7588
15065 msgid ""
15066 "This rescans all block devices and rebuilds the list of LVM physical "
15067 "volumes, volume groups and logical volumes."
15068 msgstr ""
15069
15070 #. type: =head2
15071 #: ../fish/guestfish-actions.pod:5042
15072 msgid "vguuid"
15073 msgstr ""
15074
15075 #. type: verbatim
15076 #: ../fish/guestfish-actions.pod:5044
15077 #, no-wrap
15078 msgid ""
15079 " vguuid vgname\n"
15080 "\n"
15081 msgstr ""
15082
15083 #. type: textblock
15084 #: ../fish/guestfish-actions.pod:5046 ../src/guestfs-actions.pod:7601
15085 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15086 msgstr ""
15087
15088 #. type: =head2
15089 #: ../fish/guestfish-actions.pod:5048
15090 msgid "wc-c"
15091 msgstr ""
15092
15093 #. type: verbatim
15094 #: ../fish/guestfish-actions.pod:5050
15095 #, no-wrap
15096 msgid ""
15097 " wc-c path\n"
15098 "\n"
15099 msgstr ""
15100
15101 #. type: textblock
15102 #: ../fish/guestfish-actions.pod:5052 ../src/guestfs-actions.pod:7641
15103 msgid ""
15104 "This command counts the characters in a file, using the C<wc -c> external "
15105 "command."
15106 msgstr ""
15107
15108 #. type: =head2
15109 #: ../fish/guestfish-actions.pod:5055
15110 msgid "wc-l"
15111 msgstr ""
15112
15113 #. type: verbatim
15114 #: ../fish/guestfish-actions.pod:5057
15115 #, no-wrap
15116 msgid ""
15117 " wc-l path\n"
15118 "\n"
15119 msgstr ""
15120
15121 #. type: textblock
15122 #: ../fish/guestfish-actions.pod:5059 ../src/guestfs-actions.pod:7654
15123 msgid ""
15124 "This command counts the lines in a file, using the C<wc -l> external command."
15125 msgstr ""
15126
15127 #. type: =head2
15128 #: ../fish/guestfish-actions.pod:5062
15129 msgid "wc-w"
15130 msgstr ""
15131
15132 #. type: verbatim
15133 #: ../fish/guestfish-actions.pod:5064
15134 #, no-wrap
15135 msgid ""
15136 " wc-w path\n"
15137 "\n"
15138 msgstr ""
15139
15140 #. type: textblock
15141 #: ../fish/guestfish-actions.pod:5066 ../src/guestfs-actions.pod:7667
15142 msgid ""
15143 "This command counts the words in a file, using the C<wc -w> external command."
15144 msgstr ""
15145
15146 #. type: =head2
15147 #: ../fish/guestfish-actions.pod:5069
15148 msgid "write"
15149 msgstr ""
15150
15151 #. type: verbatim
15152 #: ../fish/guestfish-actions.pod:5071
15153 #, no-wrap
15154 msgid ""
15155 " write path content\n"
15156 "\n"
15157 msgstr ""
15158
15159 #. type: textblock
15160 #: ../fish/guestfish-actions.pod:5073 ../src/guestfs-actions.pod:7682
15161 msgid ""
15162 "This call creates a file called C<path>.  The content of the file is the "
15163 "string C<content> (which can contain any 8 bit data)."
15164 msgstr ""
15165
15166 #. type: textblock
15167 #: ../fish/guestfish-actions.pod:5076
15168 msgid "See also L</write-append>."
15169 msgstr ""
15170
15171 #. type: =head2
15172 #: ../fish/guestfish-actions.pod:5081
15173 msgid "write-append"
15174 msgstr ""
15175
15176 #. type: verbatim
15177 #: ../fish/guestfish-actions.pod:5083
15178 #, no-wrap
15179 msgid ""
15180 " write-append path content\n"
15181 "\n"
15182 msgstr ""
15183
15184 #. type: textblock
15185 #: ../fish/guestfish-actions.pod:5085 ../src/guestfs-actions.pod:7702
15186 msgid ""
15187 "This call appends C<content> to the end of file C<path>.  If C<path> does "
15188 "not exist, then a new file is created."
15189 msgstr ""
15190
15191 #. type: textblock
15192 #: ../fish/guestfish-actions.pod:5088
15193 msgid "See also L</write>."
15194 msgstr ""
15195
15196 #. type: =head2
15197 #: ../fish/guestfish-actions.pod:5093
15198 msgid "write-file"
15199 msgstr ""
15200
15201 #. type: verbatim
15202 #: ../fish/guestfish-actions.pod:5095
15203 #, no-wrap
15204 msgid ""
15205 " write-file path content size\n"
15206 "\n"
15207 msgstr ""
15208
15209 #. type: textblock
15210 #: ../fish/guestfish-actions.pod:5097 ../src/guestfs-actions.pod:7722
15211 msgid ""
15212 "This call creates a file called C<path>.  The contents of the file is the "
15213 "string C<content> (which can contain any 8 bit data), with length C<size>."
15214 msgstr ""
15215
15216 #. type: textblock
15217 #: ../fish/guestfish-actions.pod:5101 ../src/guestfs-actions.pod:7726
15218 msgid ""
15219 "As a special case, if C<size> is C<0> then the length is calculated using "
15220 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
15221 msgstr ""
15222
15223 #. type: textblock
15224 #: ../fish/guestfish-actions.pod:5105 ../src/guestfs-actions.pod:7730
15225 msgid ""
15226 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
15227 "I<not> work, even if the length is specified."
15228 msgstr ""
15229
15230 #. type: textblock
15231 #: ../fish/guestfish-actions.pod:5111
15232 msgid ""
15233 "This function is deprecated.  In new code, use the L</write> call instead."
15234 msgstr ""
15235
15236 #. type: =head2
15237 #: ../fish/guestfish-actions.pod:5118
15238 msgid "zegrep"
15239 msgstr ""
15240
15241 #. type: verbatim
15242 #: ../fish/guestfish-actions.pod:5120
15243 #, no-wrap
15244 msgid ""
15245 " zegrep regex path\n"
15246 "\n"
15247 msgstr ""
15248
15249 #. type: textblock
15250 #: ../fish/guestfish-actions.pod:5122 ../src/guestfs-actions.pod:7754
15251 msgid ""
15252 "This calls the external C<zegrep> program and returns the matching lines."
15253 msgstr ""
15254
15255 #. type: =head2
15256 #: ../fish/guestfish-actions.pod:5128
15257 msgid "zegrepi"
15258 msgstr ""
15259
15260 #. type: verbatim
15261 #: ../fish/guestfish-actions.pod:5130
15262 #, no-wrap
15263 msgid ""
15264 " zegrepi regex path\n"
15265 "\n"
15266 msgstr ""
15267
15268 #. type: textblock
15269 #: ../fish/guestfish-actions.pod:5132 ../src/guestfs-actions.pod:7773
15270 msgid ""
15271 "This calls the external C<zegrep -i> program and returns the matching lines."
15272 msgstr ""
15273
15274 #. type: =head2
15275 #: ../fish/guestfish-actions.pod:5138
15276 msgid "zero"
15277 msgstr ""
15278
15279 #. type: verbatim
15280 #: ../fish/guestfish-actions.pod:5140
15281 #, no-wrap
15282 msgid ""
15283 " zero device\n"
15284 "\n"
15285 msgstr ""
15286
15287 #. type: textblock
15288 #: ../fish/guestfish-actions.pod:5142 ../src/guestfs-actions.pod:7791
15289 msgid "This command writes zeroes over the first few blocks of C<device>."
15290 msgstr ""
15291
15292 #. type: textblock
15293 #: ../fish/guestfish-actions.pod:5144 ../src/guestfs-actions.pod:7793
15294 msgid ""
15295 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
15296 "securely wipe the device).  It should be sufficient to remove any partition "
15297 "tables, filesystem superblocks and so on."
15298 msgstr ""
15299
15300 #. type: textblock
15301 #: ../fish/guestfish-actions.pod:5148 ../fish/guestfish-actions.pod:5163
15302 #: ../src/guestfs-actions.pod:7797 ../src/guestfs-actions.pod:7823
15303 msgid ""
15304 "If blocks are already zero, then this command avoids writing zeroes.  This "
15305 "prevents the underlying device from becoming non-sparse or growing "
15306 "unnecessarily."
15307 msgstr ""
15308
15309 #. type: textblock
15310 #: ../fish/guestfish-actions.pod:5152
15311 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
15312 msgstr ""
15313
15314 #. type: =head2
15315 #: ../fish/guestfish-actions.pod:5155
15316 msgid "zero-device"
15317 msgstr ""
15318
15319 #. type: verbatim
15320 #: ../fish/guestfish-actions.pod:5157
15321 #, no-wrap
15322 msgid ""
15323 " zero-device device\n"
15324 "\n"
15325 msgstr ""
15326
15327 #. type: textblock
15328 #: ../fish/guestfish-actions.pod:5159
15329 msgid ""
15330 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
15331 "which just zeroes the first few blocks of a device."
15332 msgstr ""
15333
15334 #. type: =head2
15335 #: ../fish/guestfish-actions.pod:5170
15336 msgid "zerofree"
15337 msgstr ""
15338
15339 #. type: verbatim
15340 #: ../fish/guestfish-actions.pod:5172
15341 #, no-wrap
15342 msgid ""
15343 " zerofree device\n"
15344 "\n"
15345 msgstr ""
15346
15347 #. type: textblock
15348 #: ../fish/guestfish-actions.pod:5174 ../src/guestfs-actions.pod:7845
15349 msgid ""
15350 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
15351 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
15352 "possible to compress the filesystem more effectively."
15353 msgstr ""
15354
15355 #. type: textblock
15356 #: ../fish/guestfish-actions.pod:5179 ../src/guestfs-actions.pod:7850
15357 msgid "You should B<not> run this program if the filesystem is mounted."
15358 msgstr ""
15359
15360 #. type: textblock
15361 #: ../fish/guestfish-actions.pod:5182 ../src/guestfs-actions.pod:7853
15362 msgid ""
15363 "It is possible that using this program can damage the filesystem or data on "
15364 "the filesystem."
15365 msgstr ""
15366
15367 #. type: =head2
15368 #: ../fish/guestfish-actions.pod:5185
15369 msgid "zfgrep"
15370 msgstr ""
15371
15372 #. type: verbatim
15373 #: ../fish/guestfish-actions.pod:5187
15374 #, no-wrap
15375 msgid ""
15376 " zfgrep pattern path\n"
15377 "\n"
15378 msgstr ""
15379
15380 #. type: textblock
15381 #: ../fish/guestfish-actions.pod:5189 ../src/guestfs-actions.pod:7867
15382 msgid ""
15383 "This calls the external C<zfgrep> program and returns the matching lines."
15384 msgstr ""
15385
15386 #. type: =head2
15387 #: ../fish/guestfish-actions.pod:5195
15388 msgid "zfgrepi"
15389 msgstr ""
15390
15391 #. type: verbatim
15392 #: ../fish/guestfish-actions.pod:5197
15393 #, no-wrap
15394 msgid ""
15395 " zfgrepi pattern path\n"
15396 "\n"
15397 msgstr ""
15398
15399 #. type: textblock
15400 #: ../fish/guestfish-actions.pod:5199 ../src/guestfs-actions.pod:7886
15401 msgid ""
15402 "This calls the external C<zfgrep -i> program and returns the matching lines."
15403 msgstr ""
15404
15405 #. type: =head2
15406 #: ../fish/guestfish-actions.pod:5205
15407 msgid "zfile"
15408 msgstr ""
15409
15410 #. type: verbatim
15411 #: ../fish/guestfish-actions.pod:5207
15412 #, no-wrap
15413 msgid ""
15414 " zfile meth path\n"
15415 "\n"
15416 msgstr ""
15417
15418 #. type: textblock
15419 #: ../fish/guestfish-actions.pod:5209 ../src/guestfs-actions.pod:7905
15420 msgid ""
15421 "This command runs C<file> after first decompressing C<path> using C<method>."
15422 msgstr ""
15423
15424 #. type: textblock
15425 #: ../fish/guestfish-actions.pod:5212 ../src/guestfs-actions.pod:7908
15426 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
15427 msgstr ""
15428
15429 #. type: textblock
15430 #: ../fish/guestfish-actions.pod:5214
15431 msgid ""
15432 "Since 1.0.63, use L</file> instead which can now process compressed files."
15433 msgstr ""
15434
15435 #. type: textblock
15436 #: ../fish/guestfish-actions.pod:5217
15437 msgid ""
15438 "This function is deprecated.  In new code, use the L</file> call instead."
15439 msgstr ""
15440
15441 #. type: =head2
15442 #: ../fish/guestfish-actions.pod:5224
15443 msgid "zgrep"
15444 msgstr ""
15445
15446 #. type: verbatim
15447 #: ../fish/guestfish-actions.pod:5226
15448 #, no-wrap
15449 msgid ""
15450 " zgrep regex path\n"
15451 "\n"
15452 msgstr ""
15453
15454 #. type: textblock
15455 #: ../fish/guestfish-actions.pod:5228 ../src/guestfs-actions.pod:7932
15456 msgid ""
15457 "This calls the external C<zgrep> program and returns the matching lines."
15458 msgstr ""
15459
15460 #. type: =head2
15461 #: ../fish/guestfish-actions.pod:5234
15462 msgid "zgrepi"
15463 msgstr ""
15464
15465 #. type: verbatim
15466 #: ../fish/guestfish-actions.pod:5236
15467 #, no-wrap
15468 msgid ""
15469 " zgrepi regex path\n"
15470 "\n"
15471 msgstr ""
15472
15473 #. type: textblock
15474 #: ../fish/guestfish-actions.pod:5238 ../src/guestfs-actions.pod:7951
15475 msgid ""
15476 "This calls the external C<zgrep -i> program and returns the matching lines."
15477 msgstr ""
15478
15479 #. type: =head2
15480 #: ../fish/guestfish-commands.pod:1
15481 msgid "alloc"
15482 msgstr ""
15483
15484 #. type: =head2
15485 #: ../fish/guestfish-commands.pod:3
15486 msgid "allocate"
15487 msgstr ""
15488
15489 #. type: verbatim
15490 #: ../fish/guestfish-commands.pod:5
15491 #, no-wrap
15492 msgid ""
15493 " alloc filename size\n"
15494 "\n"
15495 msgstr ""
15496
15497 #. type: textblock
15498 #: ../fish/guestfish-commands.pod:7
15499 msgid ""
15500 "This creates an empty (zeroed) file of the given size, and then adds so it "
15501 "can be further examined."
15502 msgstr ""
15503
15504 #. type: textblock
15505 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:182
15506 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
15507 msgstr ""
15508
15509 #. type: textblock
15510 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:184
15511 msgid "Size can be specified using standard suffixes, eg. C<1M>."
15512 msgstr ""
15513
15514 #. type: textblock
15515 #: ../fish/guestfish-commands.pod:14
15516 msgid ""
15517 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
15518 "image, see L</PREPARED DISK IMAGES>."
15519 msgstr ""
15520
15521 #. type: =head2
15522 #: ../fish/guestfish-commands.pod:17
15523 msgid "copy-in"
15524 msgstr ""
15525
15526 #. type: verbatim
15527 #: ../fish/guestfish-commands.pod:19
15528 #, no-wrap
15529 msgid ""
15530 " copy-in local [local ...] /remotedir\n"
15531 "\n"
15532 msgstr ""
15533
15534 #. type: textblock
15535 #: ../fish/guestfish-commands.pod:21
15536 msgid ""
15537 "C<copy-in> copies local files or directories recursively into the disk "
15538 "image, placing them in the directory called C</remotedir> (which must "
15539 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
15540 "other commands as necessary."
15541 msgstr ""
15542
15543 #. type: textblock
15544 #: ../fish/guestfish-commands.pod:26
15545 msgid ""
15546 "Multiple local files and directories can be specified, but the last "
15547 "parameter must always be a remote directory.  Wildcards cannot be used."
15548 msgstr ""
15549
15550 #. type: =head2
15551 #: ../fish/guestfish-commands.pod:30
15552 msgid "copy-out"
15553 msgstr ""
15554
15555 #. type: verbatim
15556 #: ../fish/guestfish-commands.pod:32
15557 #, no-wrap
15558 msgid ""
15559 " copy-out remote [remote ...] localdir\n"
15560 "\n"
15561 msgstr ""
15562
15563 #. type: textblock
15564 #: ../fish/guestfish-commands.pod:34
15565 msgid ""
15566 "C<copy-out> copies remote files or directories recursively out of the disk "
15567 "image, placing them on the host disk in a local directory called C<localdir> "
15568 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
15569 "download>, L</tar-out> and other commands as necessary."
15570 msgstr ""
15571
15572 #. type: textblock
15573 #: ../fish/guestfish-commands.pod:40
15574 msgid ""
15575 "Multiple remote files and directories can be specified, but the last "
15576 "parameter must always be a local directory.  To download to the current "
15577 "directory, use C<.> as in:"
15578 msgstr ""
15579
15580 #. type: verbatim
15581 #: ../fish/guestfish-commands.pod:44
15582 #, no-wrap
15583 msgid ""
15584 " copy-out /home .\n"
15585 "\n"
15586 msgstr ""
15587
15588 #. type: textblock
15589 #: ../fish/guestfish-commands.pod:46
15590 msgid ""
15591 "Wildcards cannot be used in the ordinary command, but you can use them with "
15592 "the help of L</glob> like this:"
15593 msgstr ""
15594
15595 #. type: verbatim
15596 #: ../fish/guestfish-commands.pod:49
15597 #, no-wrap
15598 msgid ""
15599 " glob copy-out /home/* .\n"
15600 "\n"
15601 msgstr ""
15602
15603 #. type: =head2
15604 #: ../fish/guestfish-commands.pod:51
15605 msgid "display"
15606 msgstr ""
15607
15608 #. type: verbatim
15609 #: ../fish/guestfish-commands.pod:53
15610 #, no-wrap
15611 msgid ""
15612 " display filename\n"
15613 "\n"
15614 msgstr ""
15615
15616 #. type: textblock
15617 #: ../fish/guestfish-commands.pod:55
15618 msgid ""
15619 "Use C<display> (a graphical display program) to display an image file.  It "
15620 "downloads the file, and runs C<display> on it."
15621 msgstr ""
15622
15623 #. type: textblock
15624 #: ../fish/guestfish-commands.pod:58
15625 msgid ""
15626 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
15627 "environment variable.  For example to use the GNOME display program:"
15628 msgstr ""
15629
15630 #. type: verbatim
15631 #: ../fish/guestfish-commands.pod:61
15632 #, no-wrap
15633 msgid ""
15634 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
15635 "\n"
15636 msgstr ""
15637
15638 #. type: textblock
15639 #: ../fish/guestfish-commands.pod:63
15640 msgid "See also L<display(1)>."
15641 msgstr ""
15642
15643 #. type: =head2
15644 #: ../fish/guestfish-commands.pod:65
15645 msgid "echo"
15646 msgstr ""
15647
15648 #. type: verbatim
15649 #: ../fish/guestfish-commands.pod:67
15650 #, no-wrap
15651 msgid ""
15652 " echo [params ...]\n"
15653 "\n"
15654 msgstr ""
15655
15656 #. type: textblock
15657 #: ../fish/guestfish-commands.pod:69
15658 msgid "This echos the parameters to the terminal."
15659 msgstr ""
15660
15661 #. type: =head2
15662 #: ../fish/guestfish-commands.pod:71
15663 msgid "edit"
15664 msgstr ""
15665
15666 #. type: =head2
15667 #: ../fish/guestfish-commands.pod:73
15668 msgid "vi"
15669 msgstr ""
15670
15671 #. type: =head2
15672 #: ../fish/guestfish-commands.pod:75
15673 msgid "emacs"
15674 msgstr ""
15675
15676 #. type: verbatim
15677 #: ../fish/guestfish-commands.pod:77
15678 #, no-wrap
15679 msgid ""
15680 " edit filename\n"
15681 "\n"
15682 msgstr ""
15683
15684 #. type: textblock
15685 #: ../fish/guestfish-commands.pod:79
15686 msgid ""
15687 "This is used to edit a file.  It downloads the file, edits it locally using "
15688 "your editor, then uploads the result."
15689 msgstr ""
15690
15691 #. type: textblock
15692 #: ../fish/guestfish-commands.pod:82
15693 msgid ""
15694 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
15695 "or C<emacs> you will get those corresponding editors."
15696 msgstr ""
15697
15698 #. type: =head2
15699 #: ../fish/guestfish-commands.pod:86
15700 msgid "glob"
15701 msgstr ""
15702
15703 #. type: verbatim
15704 #: ../fish/guestfish-commands.pod:88
15705 #, no-wrap
15706 msgid ""
15707 " glob command args...\n"
15708 "\n"
15709 msgstr ""
15710
15711 #. type: textblock
15712 #: ../fish/guestfish-commands.pod:90
15713 msgid ""
15714 "Expand wildcards in any paths in the args list, and run C<command> "
15715 "repeatedly on each matching path."
15716 msgstr ""
15717
15718 #. type: textblock
15719 #: ../fish/guestfish-commands.pod:93
15720 msgid "See L</WILDCARDS AND GLOBBING>."
15721 msgstr ""
15722
15723 #. type: =head2
15724 #: ../fish/guestfish-commands.pod:95
15725 msgid "hexedit"
15726 msgstr ""
15727
15728 #. type: verbatim
15729 #: ../fish/guestfish-commands.pod:97
15730 #, no-wrap
15731 msgid ""
15732 " hexedit <filename|device>\n"
15733 " hexedit <filename|device> <max>\n"
15734 " hexedit <filename|device> <start> <max>\n"
15735 "\n"
15736 msgstr ""
15737
15738 #. type: textblock
15739 #: ../fish/guestfish-commands.pod:101
15740 msgid ""
15741 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
15742 "device."
15743 msgstr ""
15744
15745 #. type: textblock
15746 #: ../fish/guestfish-commands.pod:104
15747 msgid ""
15748 "This command works by downloading potentially the whole file or device, "
15749 "editing it locally, then uploading it.  If the file or device is large, you "
15750 "have to specify which part you wish to edit by using C<max> and/or C<start> "
15751 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
15752 "usual modifiers allowed such as C<1M> (1 megabyte)."
15753 msgstr ""
15754
15755 #. type: textblock
15756 #: ../fish/guestfish-commands.pod:111
15757 msgid "For example to edit the first few sectors of a disk you might do:"
15758 msgstr ""
15759
15760 #. type: verbatim
15761 #: ../fish/guestfish-commands.pod:114
15762 #, no-wrap
15763 msgid ""
15764 " hexedit /dev/sda 1M\n"
15765 "\n"
15766 msgstr ""
15767
15768 #. type: textblock
15769 #: ../fish/guestfish-commands.pod:116
15770 msgid ""
15771 "which would allow you to edit anywhere within the first megabyte of the disk."
15772 msgstr ""
15773
15774 #. type: textblock
15775 #: ../fish/guestfish-commands.pod:119
15776 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
15777 msgstr ""
15778
15779 #. type: verbatim
15780 #: ../fish/guestfish-commands.pod:121
15781 #, no-wrap
15782 msgid ""
15783 " hexedit /dev/sda1 0x400 0x400\n"
15784 "\n"
15785 msgstr ""
15786
15787 #. type: textblock
15788 #: ../fish/guestfish-commands.pod:123
15789 msgid "(assuming the superblock is in the standard location)."
15790 msgstr ""
15791
15792 #. type: textblock
15793 #: ../fish/guestfish-commands.pod:125
15794 msgid ""
15795 "This command requires the external L<hexedit(1)> program.  You can specify "
15796 "another program to use by setting the C<HEXEDITOR> environment variable."
15797 msgstr ""
15798
15799 #. type: textblock
15800 #: ../fish/guestfish-commands.pod:129
15801 msgid "See also L</hexdump>."
15802 msgstr ""
15803
15804 #. type: =head2
15805 #: ../fish/guestfish-commands.pod:131
15806 msgid "lcd"
15807 msgstr ""
15808
15809 #. type: verbatim
15810 #: ../fish/guestfish-commands.pod:133
15811 #, no-wrap
15812 msgid ""
15813 " lcd directory\n"
15814 "\n"
15815 msgstr ""
15816
15817 #. type: textblock
15818 #: ../fish/guestfish-commands.pod:135
15819 msgid ""
15820 "Change the local directory, ie. the current directory of guestfish itself."
15821 msgstr ""
15822
15823 #. type: textblock
15824 #: ../fish/guestfish-commands.pod:138
15825 msgid "Note that C<!cd> won't do what you might expect."
15826 msgstr ""
15827
15828 #. type: =head2
15829 #: ../fish/guestfish-commands.pod:140
15830 msgid "man"
15831 msgstr ""
15832
15833 #. type: =head2
15834 #: ../fish/guestfish-commands.pod:142
15835 msgid "manual"
15836 msgstr ""
15837
15838 #. type: verbatim
15839 #: ../fish/guestfish-commands.pod:144
15840 #, no-wrap
15841 msgid ""
15842 "  man\n"
15843 "\n"
15844 msgstr ""
15845
15846 #. type: textblock
15847 #: ../fish/guestfish-commands.pod:146
15848 msgid "Opens the manual page for guestfish."
15849 msgstr ""
15850
15851 #. type: =head2
15852 #: ../fish/guestfish-commands.pod:148
15853 msgid "more"
15854 msgstr ""
15855
15856 #. type: =head2
15857 #: ../fish/guestfish-commands.pod:150
15858 msgid "less"
15859 msgstr ""
15860
15861 #. type: verbatim
15862 #: ../fish/guestfish-commands.pod:152
15863 #, no-wrap
15864 msgid ""
15865 " more filename\n"
15866 "\n"
15867 msgstr ""
15868
15869 #. type: verbatim
15870 #: ../fish/guestfish-commands.pod:154
15871 #, no-wrap
15872 msgid ""
15873 " less filename\n"
15874 "\n"
15875 msgstr ""
15876
15877 #. type: textblock
15878 #: ../fish/guestfish-commands.pod:156
15879 msgid "This is used to view a file."
15880 msgstr ""
15881
15882 #. type: textblock
15883 #: ../fish/guestfish-commands.pod:158
15884 msgid ""
15885 "The default viewer is C<$PAGER>.  However if you use the alternate command "
15886 "C<less> you will get the C<less> command specifically."
15887 msgstr ""
15888
15889 #. type: =head2
15890 #: ../fish/guestfish-commands.pod:161
15891 msgid "reopen"
15892 msgstr ""
15893
15894 #. type: verbatim
15895 #: ../fish/guestfish-commands.pod:163
15896 #, no-wrap
15897 msgid ""
15898 "  reopen\n"
15899 "\n"
15900 msgstr ""
15901
15902 #. type: textblock
15903 #: ../fish/guestfish-commands.pod:165
15904 msgid ""
15905 "Close and reopen the libguestfs handle.  It is not necessary to use this "
15906 "normally, because the handle is closed properly when guestfish exits.  "
15907 "However this is occasionally useful for testing."
15908 msgstr ""
15909
15910 #. type: =head2
15911 #: ../fish/guestfish-commands.pod:169
15912 msgid "sparse"
15913 msgstr ""
15914
15915 #. type: verbatim
15916 #: ../fish/guestfish-commands.pod:171
15917 #, no-wrap
15918 msgid ""
15919 " sparse filename size\n"
15920 "\n"
15921 msgstr ""
15922
15923 #. type: textblock
15924 #: ../fish/guestfish-commands.pod:173
15925 msgid ""
15926 "This creates an empty sparse file of the given size, and then adds so it can "
15927 "be further examined."
15928 msgstr ""
15929
15930 #. type: textblock
15931 #: ../fish/guestfish-commands.pod:176
15932 msgid ""
15933 "In all respects it works the same as the L</alloc> command, except that the "
15934 "image file is allocated sparsely, which means that disk blocks are not "
15935 "assigned to the file until they are needed.  Sparse disk files only use "
15936 "space when written to, but they are slower and there is a danger you could "
15937 "run out of real disk space during a write operation."
15938 msgstr ""
15939
15940 #. type: =head2
15941 #: ../fish/guestfish-commands.pod:186
15942 msgid "supported"
15943 msgstr ""
15944
15945 #. type: verbatim
15946 #: ../fish/guestfish-commands.pod:188
15947 #, no-wrap
15948 msgid ""
15949 " supported\n"
15950 "\n"
15951 msgstr ""
15952
15953 #. type: textblock
15954 #: ../fish/guestfish-commands.pod:190
15955 msgid ""
15956 "This command returns a list of the optional groups known to the daemon, and "
15957 "indicates which ones are supported by this build of the libguestfs appliance."
15958 msgstr ""
15959
15960 #. type: textblock
15961 #: ../fish/guestfish-commands.pod:194
15962 msgid "See also L<guestfs(3)/AVAILABILITY>."
15963 msgstr ""
15964
15965 #. type: =head2
15966 #: ../fish/guestfish-commands.pod:196
15967 msgid "time"
15968 msgstr ""
15969
15970 #. type: verbatim
15971 #: ../fish/guestfish-commands.pod:198
15972 #, no-wrap
15973 msgid ""
15974 " time command args...\n"
15975 "\n"
15976 msgstr ""
15977
15978 #. type: textblock
15979 #: ../fish/guestfish-commands.pod:200
15980 msgid ""
15981 "Run the command as usual, but print the elapsed time afterwards.  This can "
15982 "be useful for benchmarking operations."
15983 msgstr ""
15984
15985 #. type: textblock
15986 #: ../fish/guestfish.pod:5
15987 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
15988 msgstr ""
15989
15990 #. type: verbatim
15991 #: ../fish/guestfish.pod:9
15992 #, no-wrap
15993 msgid ""
15994 " guestfish [--options] [commands]\n"
15995 "\n"
15996 msgstr ""
15997
15998 #. type: verbatim
15999 #: ../fish/guestfish.pod:11
16000 #, no-wrap
16001 msgid ""
16002 " guestfish\n"
16003 "\n"
16004 msgstr ""
16005
16006 #. type: verbatim
16007 #: ../fish/guestfish.pod:13
16008 #, no-wrap
16009 msgid ""
16010 " guestfish [--ro|--rw] -a disk.img\n"
16011 "\n"
16012 msgstr ""
16013
16014 #. type: verbatim
16015 #: ../fish/guestfish.pod:15
16016 #, no-wrap
16017 msgid ""
16018 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16019 "\n"
16020 msgstr ""
16021
16022 #. type: verbatim
16023 #: ../fish/guestfish.pod:17
16024 #, no-wrap
16025 msgid ""
16026 " guestfish -d libvirt-domain\n"
16027 "\n"
16028 msgstr ""
16029
16030 #. type: verbatim
16031 #: ../fish/guestfish.pod:19
16032 #, no-wrap
16033 msgid ""
16034 " guestfish [--ro|--rw] -a disk.img -i\n"
16035 "\n"
16036 msgstr ""
16037
16038 #. type: verbatim
16039 #: ../fish/guestfish.pod:21
16040 #, no-wrap
16041 msgid ""
16042 " guestfish -d libvirt-domain -i\n"
16043 "\n"
16044 msgstr ""
16045
16046 #. type: textblock
16047 #: ../fish/guestfish.pod:25
16048 msgid ""
16049 "Using guestfish in read/write mode on live virtual machines can be "
16050 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16051 "option to use guestfish safely if the disk image or virtual machine might be "
16052 "live."
16053 msgstr ""
16054
16055 #. type: textblock
16056 #: ../fish/guestfish.pod:32
16057 msgid ""
16058 "Guestfish is a shell and command-line tool for examining and modifying "
16059 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16060 "functionality of the guestfs API, see L<guestfs(3)>."
16061 msgstr ""
16062
16063 #. type: textblock
16064 #: ../fish/guestfish.pod:36
16065 msgid ""
16066 "Guestfish gives you structured access to the libguestfs API, from shell "
16067 "scripts or the command line or interactively.  If you want to rescue a "
16068 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16069 "command."
16070 msgstr ""
16071
16072 #. type: =head2
16073 #: ../fish/guestfish.pod:43
16074 msgid "As an interactive shell"
16075 msgstr ""
16076
16077 #. type: verbatim
16078 #: ../fish/guestfish.pod:45
16079 #, no-wrap
16080 msgid ""
16081 " $ guestfish\n"
16082 " \n"
16083 msgstr ""
16084
16085 #. type: verbatim
16086 #: ../fish/guestfish.pod:47
16087 #, no-wrap
16088 msgid ""
16089 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16090 " editing virtual machine filesystems.\n"
16091 " \n"
16092 msgstr ""
16093
16094 #. type: verbatim
16095 #: ../fish/guestfish.pod:50
16096 #, no-wrap
16097 msgid ""
16098 " Type: 'help' for a list of commands\n"
16099 "       'man' to read the manual\n"
16100 "       'quit' to quit the shell\n"
16101 " \n"
16102 msgstr ""
16103
16104 #. type: verbatim
16105 #: ../fish/guestfish.pod:54
16106 #, no-wrap
16107 msgid ""
16108 " ><fs> add-ro disk.img\n"
16109 " ><fs> run\n"
16110 " ><fs> list-filesystems\n"
16111 " /dev/sda1: ext4\n"
16112 " /dev/vg_guest/lv_root: ext4\n"
16113 " /dev/vg_guest/lv_swap: swap\n"
16114 " ><fs> mount /dev/vg_guest/lv_root /\n"
16115 " ><fs> cat /etc/fstab\n"
16116 " # /etc/fstab\n"
16117 " # Created by anaconda\n"
16118 " [...]\n"
16119 " ><fs> exit\n"
16120 "\n"
16121 msgstr ""
16122
16123 #. type: =head2
16124 #: ../fish/guestfish.pod:67
16125 msgid "From shell scripts"
16126 msgstr ""
16127
16128 #. type: textblock
16129 #: ../fish/guestfish.pod:69
16130 msgid "Create a new C</etc/motd> file in a guest or disk image:"
16131 msgstr ""
16132
16133 #. type: verbatim
16134 #: ../fish/guestfish.pod:71
16135 #, no-wrap
16136 msgid ""
16137 " guestfish <<_EOF_\n"
16138 " add disk.img\n"
16139 " run\n"
16140 " mount /dev/vg_guest/lv_root /\n"
16141 " write /etc/motd \"Welcome, new users\"\n"
16142 " _EOF_\n"
16143 "\n"
16144 msgstr ""
16145
16146 #. type: textblock
16147 #: ../fish/guestfish.pod:78
16148 msgid "List the LVM logical volumes in a disk image:"
16149 msgstr ""
16150
16151 #. type: verbatim
16152 #: ../fish/guestfish.pod:80
16153 #, no-wrap
16154 msgid ""
16155 " guestfish -a disk.img --ro <<_EOF_\n"
16156 " run\n"
16157 " lvs\n"
16158 " _EOF_\n"
16159 "\n"
16160 msgstr ""
16161
16162 #. type: textblock
16163 #: ../fish/guestfish.pod:85
16164 msgid "List all the filesystems in a disk image:"
16165 msgstr ""
16166
16167 #. type: verbatim
16168 #: ../fish/guestfish.pod:87
16169 #, no-wrap
16170 msgid ""
16171 " guestfish -a disk.img --ro <<_EOF_\n"
16172 " run\n"
16173 " list-filesystems\n"
16174 " _EOF_\n"
16175 "\n"
16176 msgstr ""
16177
16178 #. type: =head2
16179 #: ../fish/guestfish.pod:92
16180 msgid "On one command line"
16181 msgstr ""
16182
16183 #. type: textblock
16184 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
16185 msgid "Update C</etc/resolv.conf> in a guest:"
16186 msgstr ""
16187
16188 #. type: verbatim
16189 #: ../fish/guestfish.pod:96
16190 #, no-wrap
16191 msgid ""
16192 " guestfish \\\n"
16193 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
16194 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
16195 "\n"
16196 msgstr ""
16197
16198 #. type: textblock
16199 #: ../fish/guestfish.pod:100
16200 msgid "Edit C</boot/grub/grub.conf> interactively:"
16201 msgstr ""
16202
16203 #. type: verbatim
16204 #: ../fish/guestfish.pod:102
16205 #, no-wrap
16206 msgid ""
16207 " guestfish --rw --add disk.img \\\n"
16208 "   --mount /dev/vg_guest/lv_root \\\n"
16209 "   --mount /dev/sda1:/boot \\\n"
16210 "   edit /boot/grub/grub.conf\n"
16211 "\n"
16212 msgstr ""
16213
16214 #. type: =head2
16215 #: ../fish/guestfish.pod:107
16216 msgid "Mount disks automatically"
16217 msgstr ""
16218
16219 #. type: textblock
16220 #: ../fish/guestfish.pod:109
16221 msgid ""
16222 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
16223 msgstr ""
16224
16225 #. type: verbatim
16226 #: ../fish/guestfish.pod:112
16227 #, no-wrap
16228 msgid ""
16229 " guestfish --ro -a disk.img -i cat /etc/group\n"
16230 "\n"
16231 msgstr ""
16232
16233 #. type: verbatim
16234 #: ../fish/guestfish.pod:114
16235 #, no-wrap
16236 msgid ""
16237 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
16238 "\n"
16239 msgstr ""
16240
16241 #. type: textblock
16242 #: ../fish/guestfish.pod:116
16243 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
16244 msgstr ""
16245
16246 #. type: verbatim
16247 #: ../fish/guestfish.pod:118
16248 #, no-wrap
16249 msgid ""
16250 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
16251 "\n"
16252 msgstr ""
16253
16254 #. type: =head2
16255 #: ../fish/guestfish.pod:120
16256 msgid "As a script interpreter"
16257 msgstr ""
16258
16259 #. type: textblock
16260 #: ../fish/guestfish.pod:122
16261 msgid "Create a 100MB disk containing an ext2-formatted partition:"
16262 msgstr ""
16263
16264 #. type: verbatim
16265 #: ../fish/guestfish.pod:124
16266 #, no-wrap
16267 msgid ""
16268 " #!/usr/bin/guestfish -f\n"
16269 " sparse test1.img 100M\n"
16270 " run\n"
16271 " part-disk /dev/sda mbr\n"
16272 " mkfs ext2 /dev/sda1\n"
16273 "\n"
16274 msgstr ""
16275
16276 #. type: =head2
16277 #: ../fish/guestfish.pod:130
16278 msgid "Start with a prepared disk"
16279 msgstr ""
16280
16281 #. type: textblock
16282 #: ../fish/guestfish.pod:132
16283 msgid ""
16284 "An alternate way to create a 100MB disk called C<test1.img> containing a "
16285 "single ext2-formatted partition:"
16286 msgstr ""
16287
16288 #. type: verbatim
16289 #: ../fish/guestfish.pod:135
16290 #, no-wrap
16291 msgid ""
16292 " guestfish -N fs\n"
16293 "\n"
16294 msgstr ""
16295
16296 #. type: textblock
16297 #: ../fish/guestfish.pod:137
16298 msgid "To list what is available do:"
16299 msgstr ""
16300
16301 #. type: verbatim
16302 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
16303 #, no-wrap
16304 msgid ""
16305 " guestfish -N help | less\n"
16306 "\n"
16307 msgstr ""
16308
16309 #. type: =head2
16310 #: ../fish/guestfish.pod:141
16311 msgid "Remote control"
16312 msgstr ""
16313
16314 #. type: verbatim
16315 #: ../fish/guestfish.pod:143
16316 #, no-wrap
16317 msgid ""
16318 " eval \"`guestfish --listen`\"\n"
16319 " guestfish --remote add-ro disk.img\n"
16320 " guestfish --remote run\n"
16321 " guestfish --remote lvs\n"
16322 "\n"
16323 msgstr ""
16324
16325 #. type: textblock
16326 #: ../fish/guestfish.pod:154
16327 msgid "Displays general help on options."
16328 msgstr ""
16329
16330 #. type: =item
16331 #: ../fish/guestfish.pod:158
16332 msgid "B<--cmd-help>"
16333 msgstr ""
16334
16335 #. type: textblock
16336 #: ../fish/guestfish.pod:160
16337 msgid "Lists all available guestfish commands."
16338 msgstr ""
16339
16340 #. type: =item
16341 #: ../fish/guestfish.pod:162
16342 msgid "B<-h cmd>"
16343 msgstr ""
16344
16345 #. type: =item
16346 #: ../fish/guestfish.pod:164
16347 msgid "B<--cmd-help cmd>"
16348 msgstr ""
16349
16350 #. type: textblock
16351 #: ../fish/guestfish.pod:166
16352 msgid "Displays detailed help on a single command C<cmd>."
16353 msgstr ""
16354
16355 #. type: =item
16356 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
16357 msgid "B<-a image>"
16358 msgstr ""
16359
16360 #. type: =item
16361 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
16362 msgid "B<--add image>"
16363 msgstr ""
16364
16365 #. type: textblock
16366 #: ../fish/guestfish.pod:172
16367 msgid "Add a block device or virtual machine image to the shell."
16368 msgstr ""
16369
16370 #. type: textblock
16371 #: ../fish/guestfish.pod:177
16372 msgid ""
16373 "Using this flag is mostly equivalent to using the C<add> command, with "
16374 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
16375 "the I<--format=...> flag was given."
16376 msgstr ""
16377
16378 #. type: textblock
16379 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
16380 msgid ""
16381 "When used in conjunction with the I<-d> option, this specifies the libvirt "
16382 "URI to use.  The default is to use the default libvirt connection."
16383 msgstr ""
16384
16385 #. type: =item
16386 #: ../fish/guestfish.pod:189
16387 msgid "B<--csh>"
16388 msgstr ""
16389
16390 #. type: textblock
16391 #: ../fish/guestfish.pod:191
16392 msgid ""
16393 "If using the I<--listen> option and a csh-like shell, use this option.  See "
16394 "section L</REMOTE CONTROL AND CSH> below."
16395 msgstr ""
16396
16397 #. type: =item
16398 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
16399 msgid "B<-d libvirt-domain>"
16400 msgstr ""
16401
16402 #. type: =item
16403 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
16404 msgid "B<--domain libvirt-domain>"
16405 msgstr ""
16406
16407 #. type: textblock
16408 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
16409 msgid ""
16410 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
16411 "used, then any libvirt domain can be used.  However in write mode, only "
16412 "libvirt domains which are shut down can be named here."
16413 msgstr ""
16414
16415 #. type: textblock
16416 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
16417 msgid "Domain UUIDs can be used instead of names."
16418 msgstr ""
16419
16420 #. type: textblock
16421 #: ../fish/guestfish.pod:204
16422 msgid ""
16423 "Using this flag is mostly equivalent to using the C<add-domain> command, "
16424 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
16425 "if the I<--format:...> flag was given."
16426 msgstr ""
16427
16428 #. type: =item
16429 #: ../fish/guestfish.pod:208
16430 msgid "B<-D>"
16431 msgstr ""
16432
16433 #. type: =item
16434 #: ../fish/guestfish.pod:210
16435 msgid "B<--no-dest-paths>"
16436 msgstr ""
16437
16438 #. type: textblock
16439 #: ../fish/guestfish.pod:212
16440 msgid ""
16441 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
16442 "to hit the tab key to complete paths on the guest filesystem, but this "
16443 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
16444 "allow this feature to be disabled."
16445 msgstr ""
16446
16447 #. type: textblock
16448 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
16449 msgid ""
16450 "When prompting for keys and passphrases, guestfish normally turns echoing "
16451 "off so you cannot see what you are typing.  If you are not worried about "
16452 "Tempest attacks and there is no one else in the room you can specify this "
16453 "flag to see what you are typing."
16454 msgstr ""
16455
16456 #. type: =item
16457 #: ../fish/guestfish.pod:224
16458 msgid "B<-f file>"
16459 msgstr ""
16460
16461 #. type: =item
16462 #: ../fish/guestfish.pod:226
16463 msgid "B<--file file>"
16464 msgstr ""
16465
16466 #. type: textblock
16467 #: ../fish/guestfish.pod:228
16468 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
16469 msgstr ""
16470
16471 #. type: verbatim
16472 #: ../fish/guestfish.pod:231
16473 #, no-wrap
16474 msgid ""
16475 " #!/usr/bin/guestfish -f\n"
16476 "\n"
16477 msgstr ""
16478
16479 #. type: verbatim
16480 #: ../fish/guestfish.pod:244
16481 #, no-wrap
16482 msgid ""
16483 " guestfish --format=raw -a disk.img\n"
16484 "\n"
16485 msgstr ""
16486
16487 #. type: verbatim
16488 #: ../fish/guestfish.pod:248
16489 #, no-wrap
16490 msgid ""
16491 " guestfish --format=raw -a disk.img --format -a another.img\n"
16492 "\n"
16493 msgstr ""
16494
16495 #. type: textblock
16496 #: ../fish/guestfish.pod:253
16497 msgid ""
16498 "If you have untrusted raw-format guest disk images, you should use this "
16499 "option to specify the disk format.  This avoids a possible security problem "
16500 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
16501 msgstr ""
16502
16503 #. type: =item
16504 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
16505 msgid "B<--inspector>"
16506 msgstr ""
16507
16508 #. type: textblock
16509 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
16510 msgid ""
16511 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
16512 "system and mount filesystems as they would be mounted on the real virtual "
16513 "machine."
16514 msgstr ""
16515
16516 #. type: textblock
16517 #: ../fish/guestfish.pod:266
16518 msgid "Typical usage is either:"
16519 msgstr ""
16520
16521 #. type: verbatim
16522 #: ../fish/guestfish.pod:268
16523 #, no-wrap
16524 msgid ""
16525 " guestfish -d myguest -i\n"
16526 "\n"
16527 msgstr ""
16528
16529 #. type: textblock
16530 #: ../fish/guestfish.pod:270
16531 msgid "(for an inactive libvirt domain called I<myguest>), or:"
16532 msgstr ""
16533
16534 #. type: verbatim
16535 #: ../fish/guestfish.pod:272
16536 #, no-wrap
16537 msgid ""
16538 " guestfish --ro -d myguest -i\n"
16539 "\n"
16540 msgstr ""
16541
16542 #. type: textblock
16543 #: ../fish/guestfish.pod:274
16544 msgid "(for active domains, readonly), or specify the block device directly:"
16545 msgstr ""
16546
16547 #. type: verbatim
16548 #: ../fish/guestfish.pod:276
16549 #, no-wrap
16550 msgid ""
16551 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
16552 "\n"
16553 msgstr ""
16554
16555 #. type: textblock
16556 #: ../fish/guestfish.pod:278
16557 msgid ""
16558 "Note that the command line syntax changed slightly over older versions of "
16559 "guestfish.  You can still use the old syntax:"
16560 msgstr ""
16561
16562 #. type: verbatim
16563 #: ../fish/guestfish.pod:281
16564 #, no-wrap
16565 msgid ""
16566 " guestfish [--ro] -i disk.img\n"
16567 "\n"
16568 msgstr ""
16569
16570 #. type: verbatim
16571 #: ../fish/guestfish.pod:283
16572 #, no-wrap
16573 msgid ""
16574 " guestfish [--ro] -i libvirt-domain\n"
16575 "\n"
16576 msgstr ""
16577
16578 #. type: textblock
16579 #: ../fish/guestfish.pod:285
16580 msgid ""
16581 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
16582 "then using other commands to mount the filesystems that were found."
16583 msgstr ""
16584
16585 #. type: =item
16586 #: ../fish/guestfish.pod:294
16587 msgid "B<--listen>"
16588 msgstr ""
16589
16590 #. type: textblock
16591 #: ../fish/guestfish.pod:296
16592 msgid ""
16593 "Fork into the background and listen for remote commands.  See section L</"
16594 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
16595 msgstr ""
16596
16597 #. type: =item
16598 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
16599 msgid "B<--live>"
16600 msgstr ""
16601
16602 #. type: textblock
16603 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
16604 msgid ""
16605 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
16606 "ATTACHING TO RUNNING DAEMONS>)."
16607 msgstr ""
16608
16609 #. type: =item
16610 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
16611 msgid "B<-m dev[:mountpoint[:options]]>"
16612 msgstr ""
16613
16614 #. type: =item
16615 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
16616 msgid "B<--mount dev[:mountpoint[:options]]>"
16617 msgstr ""
16618
16619 #. type: textblock
16620 #: ../fish/guestfish.pod:308
16621 msgid "Mount the named partition or logical volume on the given mountpoint."
16622 msgstr ""
16623
16624 #. type: textblock
16625 #: ../fish/guestfish.pod:310
16626 msgid "If the mountpoint is omitted, it defaults to C</>."
16627 msgstr ""
16628
16629 #. type: textblock
16630 #: ../fish/guestfish.pod:312
16631 msgid "You have to mount something on C</> before most commands will work."
16632 msgstr ""
16633
16634 #. type: textblock
16635 #: ../fish/guestfish.pod:314
16636 msgid ""
16637 "If any I<-m> or I<--mount> options are given, the guest is automatically "
16638 "launched."
16639 msgstr ""
16640
16641 #. type: textblock
16642 #: ../fish/guestfish.pod:317
16643 msgid ""
16644 "If you don't know what filesystems a disk image contains, you can either run "
16645 "guestfish without this option, then list the partitions, filesystems and LVs "
16646 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
16647 "commands), or you can use the L<virt-filesystems(1)> program."
16648 msgstr ""
16649
16650 #. type: textblock
16651 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
16652 msgid ""
16653 "The third (and rarely used) part of the mount parameter is the list of mount "
16654 "options used to mount the underlying filesystem.  If this is not given, then "
16655 "the mount options are either the empty string or C<ro> (the latter if the "
16656 "I<--ro> flag is used).  By specifying the mount options, you override this "
16657 "default choice.  Probably the only time you would use this is to enable ACLs "
16658 "and/or extended attributes if the filesystem can support them:"
16659 msgstr ""
16660
16661 #. type: verbatim
16662 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
16663 #, no-wrap
16664 msgid ""
16665 " -m /dev/sda1:/:acl,user_xattr\n"
16666 "\n"
16667 msgstr ""
16668
16669 #. type: textblock
16670 #: ../fish/guestfish.pod:333
16671 msgid "Using this flag is equivalent to using the C<mount-options> command."
16672 msgstr ""
16673
16674 #. type: =item
16675 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
16676 #: ../resize/virt-resize.pod:358
16677 msgid "B<-n>"
16678 msgstr ""
16679
16680 #. type: =item
16681 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
16682 msgid "B<--no-sync>"
16683 msgstr ""
16684
16685 #. type: textblock
16686 #: ../fish/guestfish.pod:339
16687 msgid ""
16688 "Disable autosync.  This is enabled by default.  See the discussion of "
16689 "autosync in the L<guestfs(3)> manpage."
16690 msgstr ""
16691
16692 #. type: =item
16693 #: ../fish/guestfish.pod:342
16694 msgid "B<-N type>"
16695 msgstr ""
16696
16697 #. type: =item
16698 #: ../fish/guestfish.pod:344
16699 msgid "B<--new type>"
16700 msgstr ""
16701
16702 #. type: =item
16703 #: ../fish/guestfish.pod:346
16704 msgid "B<-N help>"
16705 msgstr ""
16706
16707 #. type: textblock
16708 #: ../fish/guestfish.pod:348
16709 msgid ""
16710 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
16711 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
16712 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
16713 "IMAGES> below."
16714 msgstr ""
16715
16716 #. type: =item
16717 #: ../fish/guestfish.pod:353
16718 msgid "B<--progress-bars>"
16719 msgstr ""
16720
16721 #. type: textblock
16722 #: ../fish/guestfish.pod:355
16723 msgid "Enable progress bars, even when guestfish is used non-interactively."
16724 msgstr ""
16725
16726 #. type: textblock
16727 #: ../fish/guestfish.pod:357
16728 msgid ""
16729 "Progress bars are enabled by default when guestfish is used as an "
16730 "interactive shell."
16731 msgstr ""
16732
16733 #. type: =item
16734 #: ../fish/guestfish.pod:360
16735 msgid "B<--no-progress-bars>"
16736 msgstr ""
16737
16738 #. type: textblock
16739 #: ../fish/guestfish.pod:362
16740 msgid "Disable progress bars."
16741 msgstr ""
16742
16743 #. type: =item
16744 #: ../fish/guestfish.pod:364
16745 msgid "B<--remote[=pid]>"
16746 msgstr ""
16747
16748 #. type: textblock
16749 #: ../fish/guestfish.pod:366
16750 msgid ""
16751 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
16752 "CONTROL GUESTFISH OVER A SOCKET> below."
16753 msgstr ""
16754
16755 #. type: =item
16756 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
16757 #: ../rescue/virt-rescue.pod:161
16758 msgid "B<-r>"
16759 msgstr ""
16760
16761 #. type: =item
16762 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
16763 #: ../rescue/virt-rescue.pod:163
16764 msgid "B<--ro>"
16765 msgstr ""
16766
16767 #. type: textblock
16768 #: ../fish/guestfish.pod:373
16769 msgid ""
16770 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
16771 "mounts are done read-only."
16772 msgstr ""
16773
16774 #. type: textblock
16775 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
16776 msgid ""
16777 "The option must always be used if the disk image or virtual machine might be "
16778 "running, and is generally recommended in cases where you don't need write "
16779 "access to the disk."
16780 msgstr ""
16781
16782 #. type: textblock
16783 #: ../fish/guestfish.pod:380
16784 msgid ""
16785 "Note that prepared disk images created with I<-N> are not affected by this "
16786 "option.  Also commands like C<add> are not affected - you have to specify "
16787 "the C<readonly:true> option explicitly if you need it."
16788 msgstr ""
16789
16790 #. type: textblock
16791 #: ../fish/guestfish.pod:384
16792 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
16793 msgstr ""
16794
16795 #. type: =item
16796 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
16797 #: ../rescue/virt-rescue.pod:173
16798 msgid "B<--selinux>"
16799 msgstr ""
16800
16801 #. type: textblock
16802 #: ../fish/guestfish.pod:388
16803 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
16804 msgstr ""
16805
16806 #. type: textblock
16807 #: ../fish/guestfish.pod:394
16808 msgid ""
16809 "Enable very verbose messages.  This is particularly useful if you find a bug."
16810 msgstr ""
16811
16812 #. type: textblock
16813 #: ../fish/guestfish.pod:401
16814 msgid "Display the guestfish / libguestfs version number and exit."
16815 msgstr ""
16816
16817 #. type: =item
16818 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
16819 #: ../rescue/virt-rescue.pod:190
16820 msgid "B<-w>"
16821 msgstr ""
16822
16823 #. type: =item
16824 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
16825 #: ../rescue/virt-rescue.pod:192
16826 msgid "B<--rw>"
16827 msgstr ""
16828
16829 #. type: textblock
16830 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
16831 msgid ""
16832 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
16833 "mounts are done read-write."
16834 msgstr ""
16835
16836 #. type: textblock
16837 #: ../fish/guestfish.pod:410
16838 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
16839 msgstr ""
16840
16841 #. type: textblock
16842 #: ../fish/guestfish.pod:414
16843 msgid "Echo each command before executing it."
16844 msgstr ""
16845
16846 #. type: =head1
16847 #: ../fish/guestfish.pod:418
16848 msgid "COMMANDS ON COMMAND LINE"
16849 msgstr ""
16850
16851 #. type: textblock
16852 #: ../fish/guestfish.pod:420
16853 msgid ""
16854 "Any additional (non-option) arguments are treated as commands to execute."
16855 msgstr ""
16856
16857 #. type: textblock
16858 #: ../fish/guestfish.pod:423
16859 msgid ""
16860 "Commands to execute should be separated by a colon (C<:>), where the colon "
16861 "is a separate parameter.  Thus:"
16862 msgstr ""
16863
16864 #. type: verbatim
16865 #: ../fish/guestfish.pod:426
16866 #, no-wrap
16867 msgid ""
16868 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
16869 "\n"
16870 msgstr ""
16871
16872 #. type: textblock
16873 #: ../fish/guestfish.pod:428
16874 msgid ""
16875 "If there are no additional arguments, then we enter a shell, either an "
16876 "interactive shell with a prompt (if the input is a terminal) or a non-"
16877 "interactive shell."
16878 msgstr ""
16879
16880 #. type: textblock
16881 #: ../fish/guestfish.pod:432
16882 msgid ""
16883 "In either command line mode or non-interactive shell, the first command that "
16884 "gives an error causes the whole shell to exit.  In interactive mode (with a "
16885 "prompt) if a command fails, you can continue to enter commands."
16886 msgstr ""
16887
16888 #. type: =head1
16889 #: ../fish/guestfish.pod:437
16890 msgid "USING launch (OR run)"
16891 msgstr ""
16892
16893 #. type: textblock
16894 #: ../fish/guestfish.pod:439
16895 msgid ""
16896 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
16897 "then launch it, then mount any disks you need, and finally issue actions/"
16898 "commands.  So the general order of the day is:"
16899 msgstr ""
16900
16901 #. type: textblock
16902 #: ../fish/guestfish.pod:447
16903 msgid "add or -a/--add"
16904 msgstr ""
16905
16906 #. type: textblock
16907 #: ../fish/guestfish.pod:451
16908 msgid "launch (aka run)"
16909 msgstr ""
16910
16911 #. type: textblock
16912 #: ../fish/guestfish.pod:455
16913 msgid "mount or -m/--mount"
16914 msgstr ""
16915
16916 #. type: textblock
16917 #: ../fish/guestfish.pod:459
16918 msgid "any other commands"
16919 msgstr ""
16920
16921 #. type: textblock
16922 #: ../fish/guestfish.pod:463
16923 msgid ""
16924 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
16925 "guest before mounting or performing any other commands."
16926 msgstr ""
16927
16928 #. type: textblock
16929 #: ../fish/guestfish.pod:466
16930 msgid ""
16931 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
16932 "I<--new> options were given then C<run> is done automatically, simply "
16933 "because guestfish can't perform the action you asked for without doing this."
16934 msgstr ""
16935
16936 #. type: =head1
16937 #: ../fish/guestfish.pod:471
16938 msgid "OPENING DISKS FOR READ AND WRITE"
16939 msgstr ""
16940
16941 #. type: textblock
16942 #: ../fish/guestfish.pod:473
16943 msgid ""
16944 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
16945 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
16946 "I<-i> and I<-m> open disk images read-only or for writing."
16947 msgstr ""
16948
16949 #. type: textblock
16950 #: ../fish/guestfish.pod:478
16951 msgid ""
16952 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
16953 "opening disk images supplied on the command line for write.  To open a disk "
16954 "image read-only you have to do I<-a image --ro>."
16955 msgstr ""
16956
16957 #. type: textblock
16958 #: ../fish/guestfish.pod:482
16959 msgid ""
16960 "This matters: If you accidentally open a live VM disk image writable then "
16961 "you will cause irreversible disk corruption."
16962 msgstr ""
16963
16964 #. type: textblock
16965 #: ../fish/guestfish.pod:485
16966 msgid ""
16967 "In a future libguestfs we intend to change the default the other way.  Disk "
16968 "images will be opened read-only.  You will have to either specify "
16969 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
16970 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
16971 "access for disk images specified by those other command line options."
16972 msgstr ""
16973
16974 #. type: textblock
16975 #: ../fish/guestfish.pod:492
16976 msgid ""
16977 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
16978 "which does nothing (it is already the default).  However it is highly "
16979 "recommended that you use this option to indicate that you need write access, "
16980 "and prepare your scripts for the day when this option will be required for "
16981 "write access."
16982 msgstr ""
16983
16984 #. type: textblock
16985 #: ../fish/guestfish.pod:498
16986 msgid ""
16987 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
16988 "other libguestfs program apart from guestfish and guestmount."
16989 msgstr ""
16990
16991 #. type: =head1
16992 #: ../fish/guestfish.pod:501
16993 msgid "QUOTING"
16994 msgstr ""
16995
16996 #. type: textblock
16997 #: ../fish/guestfish.pod:503
16998 msgid ""
16999 "You can quote ordinary parameters using either single or double quotes.  For "
17000 "example:"
17001 msgstr ""
17002
17003 #. type: verbatim
17004 #: ../fish/guestfish.pod:506
17005 #, no-wrap
17006 msgid ""
17007 " add \"file with a space.img\"\n"
17008 "\n"
17009 msgstr ""
17010
17011 #. type: verbatim
17012 #: ../fish/guestfish.pod:508
17013 #, no-wrap
17014 msgid ""
17015 " rm '/file name'\n"
17016 "\n"
17017 msgstr ""
17018
17019 #. type: verbatim
17020 #: ../fish/guestfish.pod:510
17021 #, no-wrap
17022 msgid ""
17023 " rm '/\"'\n"
17024 "\n"
17025 msgstr ""
17026
17027 #. type: textblock
17028 #: ../fish/guestfish.pod:512
17029 msgid ""
17030 "A few commands require a list of strings to be passed.  For these, use a "
17031 "whitespace-separated list, enclosed in quotes.  Strings containing "
17032 "whitespace to be passed through must be enclosed in single quotes.  A "
17033 "literal single quote must be escaped with a backslash."
17034 msgstr ""
17035
17036 #. type: verbatim
17037 #: ../fish/guestfish.pod:517
17038 #, no-wrap
17039 msgid ""
17040 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17041 " command \"/bin/echo 'foo      bar'\"\n"
17042 " command \"/bin/echo \\'foo\\'\"\n"
17043 "\n"
17044 msgstr ""
17045
17046 #. type: =head2
17047 #: ../fish/guestfish.pod:521
17048 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
17049 msgstr ""
17050
17051 #. type: textblock
17052 #: ../fish/guestfish.pod:523
17053 msgid ""
17054 "In double-quoted arguments (only) use backslash to insert special characters:"
17055 msgstr ""
17056
17057 #. type: =item
17058 #: ../fish/guestfish.pod:528
17059 msgid "C<\\a>"
17060 msgstr ""
17061
17062 #. type: textblock
17063 #: ../fish/guestfish.pod:530
17064 msgid "Alert (bell) character."
17065 msgstr ""
17066
17067 #. type: =item
17068 #: ../fish/guestfish.pod:532
17069 msgid "C<\\b>"
17070 msgstr ""
17071
17072 #. type: textblock
17073 #: ../fish/guestfish.pod:534
17074 msgid "Backspace character."
17075 msgstr ""
17076
17077 #. type: =item
17078 #: ../fish/guestfish.pod:536
17079 msgid "C<\\f>"
17080 msgstr ""
17081
17082 #. type: textblock
17083 #: ../fish/guestfish.pod:538
17084 msgid "Form feed character."
17085 msgstr ""
17086
17087 #. type: =item
17088 #: ../fish/guestfish.pod:540
17089 msgid "C<\\n>"
17090 msgstr ""
17091
17092 #. type: textblock
17093 #: ../fish/guestfish.pod:542
17094 msgid "Newline character."
17095 msgstr ""
17096
17097 #. type: =item
17098 #: ../fish/guestfish.pod:544
17099 msgid "C<\\r>"
17100 msgstr ""
17101
17102 #. type: textblock
17103 #: ../fish/guestfish.pod:546
17104 msgid "Carriage return character."
17105 msgstr ""
17106
17107 #. type: =item
17108 #: ../fish/guestfish.pod:548
17109 msgid "C<\\t>"
17110 msgstr ""
17111
17112 #. type: textblock
17113 #: ../fish/guestfish.pod:550
17114 msgid "Horizontal tab character."
17115 msgstr ""
17116
17117 #. type: =item
17118 #: ../fish/guestfish.pod:552
17119 msgid "C<\\v>"
17120 msgstr ""
17121
17122 #. type: textblock
17123 #: ../fish/guestfish.pod:554
17124 msgid "Vertical tab character."
17125 msgstr ""
17126
17127 #. type: =item
17128 #: ../fish/guestfish.pod:556
17129 msgid "C<\\\">"
17130 msgstr ""
17131
17132 #. type: textblock
17133 #: ../fish/guestfish.pod:558
17134 msgid "A literal double quote character."
17135 msgstr ""
17136
17137 #. type: =item
17138 #: ../fish/guestfish.pod:560
17139 msgid "C<\\ooo>"
17140 msgstr ""
17141
17142 #. type: textblock
17143 #: ../fish/guestfish.pod:562
17144 msgid ""
17145 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
17146 "(unlike C)."
17147 msgstr ""
17148
17149 #. type: =item
17150 #: ../fish/guestfish.pod:565
17151 msgid "C<\\xhh>"
17152 msgstr ""
17153
17154 #. type: textblock
17155 #: ../fish/guestfish.pod:567
17156 msgid ""
17157 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
17158 msgstr ""
17159
17160 #. type: textblock
17161 #: ../fish/guestfish.pod:570
17162 msgid ""
17163 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
17164 "strings."
17165 msgstr ""
17166
17167 #. type: =item
17168 #: ../fish/guestfish.pod:573
17169 msgid "C<\\\\>"
17170 msgstr ""
17171
17172 #. type: textblock
17173 #: ../fish/guestfish.pod:575
17174 msgid "A literal backslash character."
17175 msgstr ""
17176
17177 #. type: =head1
17178 #: ../fish/guestfish.pod:579
17179 msgid "OPTIONAL ARGUMENTS"
17180 msgstr ""
17181
17182 #. type: textblock
17183 #: ../fish/guestfish.pod:581
17184 msgid ""
17185 "Some commands take optional arguments.  These arguments appear in this "
17186 "documentation as C<[argname:..]>.  You can use them as in these examples:"
17187 msgstr ""
17188
17189 #. type: verbatim
17190 #: ../fish/guestfish.pod:585
17191 #, no-wrap
17192 msgid ""
17193 " add-drive-opts filename\n"
17194 "\n"
17195 msgstr ""
17196
17197 #. type: verbatim
17198 #: ../fish/guestfish.pod:587
17199 #, no-wrap
17200 msgid ""
17201 " add-drive-opts filename readonly:true\n"
17202 "\n"
17203 msgstr ""
17204
17205 #. type: verbatim
17206 #: ../fish/guestfish.pod:589
17207 #, no-wrap
17208 msgid ""
17209 " add-drive-opts filename format:qcow2 readonly:false\n"
17210 "\n"
17211 msgstr ""
17212
17213 #. type: textblock
17214 #: ../fish/guestfish.pod:591
17215 msgid ""
17216 "Each optional argument can appear at most once.  All optional arguments must "
17217 "appear after the required ones."
17218 msgstr ""
17219
17220 #. type: =head1
17221 #: ../fish/guestfish.pod:594
17222 msgid "NUMBERS"
17223 msgstr ""
17224
17225 #. type: textblock
17226 #: ../fish/guestfish.pod:596
17227 msgid ""
17228 "This section applies to all commands which can take integers as parameters."
17229 msgstr ""
17230
17231 #. type: =head2
17232 #: ../fish/guestfish.pod:599
17233 msgid "SIZE SUFFIX"
17234 msgstr ""
17235
17236 #. type: textblock
17237 #: ../fish/guestfish.pod:601
17238 msgid ""
17239 "When the command takes a parameter measured in bytes, you can use one of the "
17240 "following suffixes to specify kilobytes, megabytes and larger sizes:"
17241 msgstr ""
17242
17243 #. type: =item
17244 #: ../fish/guestfish.pod:607
17245 msgid "B<k> or B<K> or B<KiB>"
17246 msgstr ""
17247
17248 #. type: textblock
17249 #: ../fish/guestfish.pod:609
17250 msgid "The size in kilobytes (multiplied by 1024)."
17251 msgstr ""
17252
17253 #. type: =item
17254 #: ../fish/guestfish.pod:611
17255 msgid "B<KB>"
17256 msgstr ""
17257
17258 #. type: textblock
17259 #: ../fish/guestfish.pod:613
17260 msgid "The size in SI 1000 byte units."
17261 msgstr ""
17262
17263 #. type: =item
17264 #: ../fish/guestfish.pod:615
17265 msgid "B<M> or B<MiB>"
17266 msgstr ""
17267
17268 #. type: textblock
17269 #: ../fish/guestfish.pod:617
17270 msgid "The size in megabytes (multiplied by 1048576)."
17271 msgstr ""
17272
17273 #. type: =item
17274 #: ../fish/guestfish.pod:619
17275 msgid "B<MB>"
17276 msgstr ""
17277
17278 #. type: textblock
17279 #: ../fish/guestfish.pod:621
17280 msgid "The size in SI 1000000 byte units."
17281 msgstr ""
17282
17283 #. type: =item
17284 #: ../fish/guestfish.pod:623
17285 msgid "B<G> or B<GiB>"
17286 msgstr ""
17287
17288 #. type: textblock
17289 #: ../fish/guestfish.pod:625
17290 msgid "The size in gigabytes (multiplied by 2**30)."
17291 msgstr ""
17292
17293 #. type: =item
17294 #: ../fish/guestfish.pod:627
17295 msgid "B<GB>"
17296 msgstr ""
17297
17298 #. type: textblock
17299 #: ../fish/guestfish.pod:629
17300 msgid "The size in SI 10**9 byte units."
17301 msgstr ""
17302
17303 #. type: =item
17304 #: ../fish/guestfish.pod:631
17305 msgid "B<T> or B<TiB>"
17306 msgstr ""
17307
17308 #. type: textblock
17309 #: ../fish/guestfish.pod:633
17310 msgid "The size in terabytes (multiplied by 2**40)."
17311 msgstr ""
17312
17313 #. type: =item
17314 #: ../fish/guestfish.pod:635
17315 msgid "B<TB>"
17316 msgstr ""
17317
17318 #. type: textblock
17319 #: ../fish/guestfish.pod:637
17320 msgid "The size in SI 10**12 byte units."
17321 msgstr ""
17322
17323 #. type: =item
17324 #: ../fish/guestfish.pod:639
17325 msgid "B<P> or B<PiB>"
17326 msgstr ""
17327
17328 #. type: textblock
17329 #: ../fish/guestfish.pod:641
17330 msgid "The size in petabytes (multiplied by 2**50)."
17331 msgstr ""
17332
17333 #. type: =item
17334 #: ../fish/guestfish.pod:643
17335 msgid "B<PB>"
17336 msgstr ""
17337
17338 #. type: textblock
17339 #: ../fish/guestfish.pod:645
17340 msgid "The size in SI 10**15 byte units."
17341 msgstr ""
17342
17343 #. type: =item
17344 #: ../fish/guestfish.pod:647
17345 msgid "B<E> or B<EiB>"
17346 msgstr ""
17347
17348 #. type: textblock
17349 #: ../fish/guestfish.pod:649
17350 msgid "The size in exabytes (multiplied by 2**60)."
17351 msgstr ""
17352
17353 #. type: =item
17354 #: ../fish/guestfish.pod:651
17355 msgid "B<EB>"
17356 msgstr ""
17357
17358 #. type: textblock
17359 #: ../fish/guestfish.pod:653
17360 msgid "The size in SI 10**18 byte units."
17361 msgstr ""
17362
17363 #. type: =item
17364 #: ../fish/guestfish.pod:655
17365 msgid "B<Z> or B<ZiB>"
17366 msgstr ""
17367
17368 #. type: textblock
17369 #: ../fish/guestfish.pod:657
17370 msgid "The size in zettabytes (multiplied by 2**70)."
17371 msgstr ""
17372
17373 #. type: =item
17374 #: ../fish/guestfish.pod:659
17375 msgid "B<ZB>"
17376 msgstr ""
17377
17378 #. type: textblock
17379 #: ../fish/guestfish.pod:661
17380 msgid "The size in SI 10**21 byte units."
17381 msgstr ""
17382
17383 #. type: =item
17384 #: ../fish/guestfish.pod:663
17385 msgid "B<Y> or B<YiB>"
17386 msgstr ""
17387
17388 #. type: textblock
17389 #: ../fish/guestfish.pod:665
17390 msgid "The size in yottabytes (multiplied by 2**80)."
17391 msgstr ""
17392
17393 #. type: =item
17394 #: ../fish/guestfish.pod:667
17395 msgid "B<YB>"
17396 msgstr ""
17397
17398 #. type: textblock
17399 #: ../fish/guestfish.pod:669
17400 msgid "The size in SI 10**24 byte units."
17401 msgstr ""
17402
17403 #. type: verbatim
17404 #: ../fish/guestfish.pod:675
17405 #, no-wrap
17406 msgid ""
17407 " truncate-size /file 1G\n"
17408 "\n"
17409 msgstr ""
17410
17411 #. type: textblock
17412 #: ../fish/guestfish.pod:677
17413 msgid "would truncate the file to 1 gigabyte."
17414 msgstr ""
17415
17416 #. type: textblock
17417 #: ../fish/guestfish.pod:679
17418 msgid ""
17419 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
17420 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
17421 "suffix will probably not do what you expect."
17422 msgstr ""
17423
17424 #. type: =head2
17425 #: ../fish/guestfish.pod:683
17426 msgid "OCTAL AND HEXADECIMAL NUMBERS"
17427 msgstr ""
17428
17429 #. type: textblock
17430 #: ../fish/guestfish.pod:685
17431 msgid ""
17432 "For specifying the radix (base) use the C convention: C<0> to prefix an "
17433 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
17434 msgstr ""
17435
17436 #. type: verbatim
17437 #: ../fish/guestfish.pod:688
17438 #, no-wrap
17439 msgid ""
17440 " 1234      decimal number 1234\n"
17441 " 02322     octal number, equivalent to decimal 1234\n"
17442 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
17443 "\n"
17444 msgstr ""
17445
17446 #. type: textblock
17447 #: ../fish/guestfish.pod:692
17448 msgid ""
17449 "When using the C<chmod> command, you almost always want to specify an octal "
17450 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
17451 "L<chmod(1)> program):"
17452 msgstr ""
17453
17454 #. type: verbatim
17455 #: ../fish/guestfish.pod:696
17456 #, no-wrap
17457 msgid ""
17458 " chmod 0777 /public  # OK\n"
17459 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
17460 "\n"
17461 msgstr ""
17462
17463 #. type: textblock
17464 #: ../fish/guestfish.pod:699
17465 msgid ""
17466 "Commands that return numbers usually print them in decimal, but some "
17467 "commands print numbers in other radices (eg. C<umask> prints the mode in "
17468 "octal, preceeded by C<0>)."
17469 msgstr ""
17470
17471 #. type: =head1
17472 #: ../fish/guestfish.pod:703
17473 msgid "WILDCARDS AND GLOBBING"
17474 msgstr ""
17475
17476 #. type: textblock
17477 #: ../fish/guestfish.pod:705
17478 msgid ""
17479 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
17480 "(globbing) by default.  So for example the following will not do what you "
17481 "expect:"
17482 msgstr ""
17483
17484 #. type: verbatim
17485 #: ../fish/guestfish.pod:709
17486 #, no-wrap
17487 msgid ""
17488 " rm-rf /home/*\n"
17489 "\n"
17490 msgstr ""
17491
17492 #. type: textblock
17493 #: ../fish/guestfish.pod:711
17494 msgid ""
17495 "Assuming you don't have a directory called literally C</home/*> then the "
17496 "above command will return an error."
17497 msgstr ""
17498
17499 #. type: textblock
17500 #: ../fish/guestfish.pod:714
17501 msgid "To perform wildcard expansion, use the C<glob> command."
17502 msgstr ""
17503
17504 #. type: verbatim
17505 #: ../fish/guestfish.pod:716
17506 #, no-wrap
17507 msgid ""
17508 " glob rm-rf /home/*\n"
17509 "\n"
17510 msgstr ""
17511
17512 #. type: textblock
17513 #: ../fish/guestfish.pod:718
17514 msgid ""
17515 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
17516 "many times), equivalent to:"
17517 msgstr ""
17518
17519 #. type: verbatim
17520 #: ../fish/guestfish.pod:721
17521 #, no-wrap
17522 msgid ""
17523 " rm-rf /home/jim\n"
17524 " rm-rf /home/joe\n"
17525 " rm-rf /home/mary\n"
17526 "\n"
17527 msgstr ""
17528
17529 #. type: textblock
17530 #: ../fish/guestfish.pod:725
17531 msgid "C<glob> only works on simple guest paths and not on device names."
17532 msgstr ""
17533
17534 #. type: textblock
17535 #: ../fish/guestfish.pod:727
17536 msgid ""
17537 "If you have several parameters, each containing a wildcard, then glob will "
17538 "perform a Cartesian product."
17539 msgstr ""
17540
17541 #. type: =head1
17542 #: ../fish/guestfish.pod:730
17543 msgid "COMMENTS"
17544 msgstr ""
17545
17546 #. type: textblock
17547 #: ../fish/guestfish.pod:732
17548 msgid ""
17549 "Any line which starts with a I<#> character is treated as a comment and "
17550 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
17551 "a command.  For example:"
17552 msgstr ""
17553
17554 #. type: verbatim
17555 #: ../fish/guestfish.pod:736
17556 #, no-wrap
17557 msgid ""
17558 " # this is a comment\n"
17559 "         # this is a comment\n"
17560 " foo # NOT a comment\n"
17561 "\n"
17562 msgstr ""
17563
17564 #. type: textblock
17565 #: ../fish/guestfish.pod:740
17566 msgid "Blank lines are also ignored."
17567 msgstr ""
17568
17569 #. type: =head1
17570 #: ../fish/guestfish.pod:742
17571 msgid "RUNNING COMMANDS LOCALLY"
17572 msgstr ""
17573
17574 #. type: textblock
17575 #: ../fish/guestfish.pod:744
17576 msgid ""
17577 "Any line which starts with a I<!> character is treated as a command sent to "
17578 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
17579 msgstr ""
17580
17581 #. type: verbatim
17582 #: ../fish/guestfish.pod:748
17583 #, no-wrap
17584 msgid ""
17585 " !mkdir local\n"
17586 " tgz-out /remote local/remote-data.tar.gz\n"
17587 "\n"
17588 msgstr ""
17589
17590 #. type: textblock
17591 #: ../fish/guestfish.pod:751
17592 msgid ""
17593 "will create a directory C<local> on the host, and then export the contents "
17594 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
17595 "(See C<tgz-out>)."
17596 msgstr ""
17597
17598 #. type: textblock
17599 #: ../fish/guestfish.pod:755
17600 msgid ""
17601 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
17602 "effect, due to the way that subprocesses work in Unix."
17603 msgstr ""
17604
17605 #. type: =head2
17606 #: ../fish/guestfish.pod:758
17607 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
17608 msgstr ""
17609
17610 #. type: textblock
17611 #: ../fish/guestfish.pod:760
17612 msgid ""
17613 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
17614 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
17615 "and executed as guestfish commands."
17616 msgstr ""
17617
17618 #. type: textblock
17619 #: ../fish/guestfish.pod:764
17620 msgid ""
17621 "Thus you can use shell script to construct arbitrary guestfish commands "
17622 "which are then parsed by guestfish."
17623 msgstr ""
17624
17625 #. type: textblock
17626 #: ../fish/guestfish.pod:767
17627 msgid ""
17628 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
17629 "through C</foo.100>) using guestfish commands alone.  However this is simple "
17630 "if we use a shell script to create the guestfish commands for us:"
17631 msgstr ""
17632
17633 #. type: verbatim
17634 #: ../fish/guestfish.pod:772
17635 #, no-wrap
17636 msgid ""
17637 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
17638 "\n"
17639 msgstr ""
17640
17641 #. type: textblock
17642 #: ../fish/guestfish.pod:774
17643 msgid "or with names like C</foo.001>:"
17644 msgstr ""
17645
17646 #. type: verbatim
17647 #: ../fish/guestfish.pod:776
17648 #, no-wrap
17649 msgid ""
17650 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
17651 "\n"
17652 msgstr ""
17653
17654 #. type: textblock
17655 #: ../fish/guestfish.pod:778
17656 msgid ""
17657 "When using guestfish interactively it can be helpful to just run the shell "
17658 "script first (ie. remove the initial C<E<lt>> character so it is just an "
17659 "ordinary I<!> local command), see what guestfish commands it would run, and "
17660 "when you are happy with those prepend the C<E<lt>> character to run the "
17661 "guestfish commands for real."
17662 msgstr ""
17663
17664 #. type: =head1
17665 #: ../fish/guestfish.pod:784
17666 msgid "PIPES"
17667 msgstr ""
17668
17669 #. type: textblock
17670 #: ../fish/guestfish.pod:786
17671 msgid ""
17672 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
17673 "command (a guestfish command) to the second command (any host command).  For "
17674 "example:"
17675 msgstr ""
17676
17677 #. type: verbatim
17678 #: ../fish/guestfish.pod:790
17679 #, no-wrap
17680 msgid ""
17681 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
17682 "\n"
17683 msgstr ""
17684
17685 #. type: textblock
17686 #: ../fish/guestfish.pod:792
17687 msgid ""
17688 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
17689 "program).  The above command would list all accounts in the guest filesystem "
17690 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
17691 msgstr ""
17692
17693 #. type: verbatim
17694 #: ../fish/guestfish.pod:797
17695 #, no-wrap
17696 msgid ""
17697 " hexdump /bin/ls | head\n"
17698 " list-devices | tail -1\n"
17699 " tgz-out / - | tar ztf -\n"
17700 "\n"
17701 msgstr ""
17702
17703 #. type: textblock
17704 #: ../fish/guestfish.pod:801
17705 msgid ""
17706 "The space before the pipe symbol is required, any space after the pipe "
17707 "symbol is optional.  Everything after the pipe symbol is just passed "
17708 "straight to the host shell, so it can contain redirections, globs and "
17709 "anything else that makes sense on the host side."
17710 msgstr ""
17711
17712 #. type: textblock
17713 #: ../fish/guestfish.pod:806
17714 msgid ""
17715 "To use a literal argument which begins with a pipe symbol, you have to quote "
17716 "it, eg:"
17717 msgstr ""
17718
17719 #. type: verbatim
17720 #: ../fish/guestfish.pod:809
17721 #, no-wrap
17722 msgid ""
17723 " echo \"|\"\n"
17724 "\n"
17725 msgstr ""
17726
17727 #. type: =head1
17728 #: ../fish/guestfish.pod:811
17729 msgid "HOME DIRECTORIES"
17730 msgstr ""
17731
17732 #. type: textblock
17733 #: ../fish/guestfish.pod:813
17734 msgid ""
17735 "If a parameter starts with the character C<~> then the tilde may be expanded "
17736 "as a home directory path (either C<~> for the current user's home directory, "
17737 "or C<~user> for another user)."
17738 msgstr ""
17739
17740 #. type: textblock
17741 #: ../fish/guestfish.pod:817
17742 msgid ""
17743 "Note that home directory expansion happens for users known I<on the host>, "
17744 "not in the guest filesystem."
17745 msgstr ""
17746
17747 #. type: textblock
17748 #: ../fish/guestfish.pod:820
17749 msgid ""
17750 "To use a literal argument which begins with a tilde, you have to quote it, "
17751 "eg:"
17752 msgstr ""
17753
17754 #. type: verbatim
17755 #: ../fish/guestfish.pod:823
17756 #, no-wrap
17757 msgid ""
17758 " echo \"~\"\n"
17759 "\n"
17760 msgstr ""
17761
17762 #. type: =head2
17763 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
17764 msgid "ENCRYPTED DISKS"
17765 msgstr ""
17766
17767 #. type: textblock
17768 #: ../fish/guestfish.pod:827
17769 msgid ""
17770 "Libguestfs has some support for Linux guests encrypted according to the "
17771 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
17772 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
17773 "LUKS is supported."
17774 msgstr ""
17775
17776 #. type: textblock
17777 #: ../fish/guestfish.pod:832
17778 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
17779 msgstr ""
17780
17781 #. type: verbatim
17782 #: ../fish/guestfish.pod:834
17783 #, no-wrap
17784 msgid ""
17785 " ><fs> vfs-type /dev/sda2\n"
17786 " crypto_LUKS\n"
17787 "\n"
17788 msgstr ""
17789
17790 #. type: textblock
17791 #: ../fish/guestfish.pod:837
17792 msgid ""
17793 "Then open those devices using L</luks-open>.  This creates a device-mapper "
17794 "device called C</dev/mapper/luksdev>."
17795 msgstr ""
17796
17797 #. type: verbatim
17798 #: ../fish/guestfish.pod:840
17799 #, no-wrap
17800 msgid ""
17801 " ><fs> luks-open /dev/sda2 luksdev\n"
17802 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
17803 "\n"
17804 msgstr ""
17805
17806 #. type: textblock
17807 #: ../fish/guestfish.pod:843
17808 msgid ""
17809 "Finally you have to tell LVM to scan for volume groups on the newly created "
17810 "mapper device:"
17811 msgstr ""
17812
17813 #. type: verbatim
17814 #: ../fish/guestfish.pod:846
17815 #, no-wrap
17816 msgid ""
17817 " vgscan\n"
17818 " vg-activate-all true\n"
17819 "\n"
17820 msgstr ""
17821
17822 #. type: textblock
17823 #: ../fish/guestfish.pod:849
17824 msgid "The logical volume(s) can now be mounted in the usual way."
17825 msgstr ""
17826
17827 #. type: textblock
17828 #: ../fish/guestfish.pod:851
17829 msgid ""
17830 "Before closing a LUKS device you must unmount any logical volumes on it and "
17831 "deactivate the volume groups by calling C<vg-activate false VG> on each "
17832 "one.  Then you can close the mapper device:"
17833 msgstr ""
17834
17835 #. type: verbatim
17836 #: ../fish/guestfish.pod:855
17837 #, no-wrap
17838 msgid ""
17839 " vg-activate false /dev/VG\n"
17840 " luks-close /dev/mapper/luksdev\n"
17841 "\n"
17842 msgstr ""
17843
17844 #. type: textblock
17845 #: ../fish/guestfish.pod:860
17846 msgid ""
17847 "If a path is prefixed with C<win:> then you can use Windows-style drive "
17848 "letters and paths (with some limitations).  The following commands are "
17849 "equivalent:"
17850 msgstr ""
17851
17852 #. type: verbatim
17853 #: ../fish/guestfish.pod:864
17854 #, no-wrap
17855 msgid ""
17856 " file /WINDOWS/system32/config/system.LOG\n"
17857 "\n"
17858 msgstr ""
17859
17860 #. type: verbatim
17861 #: ../fish/guestfish.pod:866
17862 #, no-wrap
17863 msgid ""
17864 " file win:\\windows\\system32\\config\\system.log\n"
17865 "\n"
17866 msgstr ""
17867
17868 #. type: verbatim
17869 #: ../fish/guestfish.pod:868
17870 #, no-wrap
17871 msgid ""
17872 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
17873 "\n"
17874 msgstr ""
17875
17876 #. type: textblock
17877 #: ../fish/guestfish.pod:870
17878 msgid ""
17879 "The parameter is rewritten \"behind the scenes\" by looking up the position "
17880 "where the drive is mounted, prepending that to the path, changing all "
17881 "backslash characters to forward slash, then resolving the result using L</"
17882 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
17883 "the parameter might be rewritten like this:"
17884 msgstr ""
17885
17886 #. type: verbatim
17887 #: ../fish/guestfish.pod:876
17888 #, no-wrap
17889 msgid ""
17890 " win:e:\\foo\\bar => /e/FOO/bar\n"
17891 "\n"
17892 msgstr ""
17893
17894 #. type: textblock
17895 #: ../fish/guestfish.pod:878
17896 msgid "This only works in argument positions that expect a path."
17897 msgstr ""
17898
17899 #. type: =head1
17900 #: ../fish/guestfish.pod:880
17901 msgid "UPLOADING AND DOWNLOADING FILES"
17902 msgstr ""
17903
17904 #. type: textblock
17905 #: ../fish/guestfish.pod:882
17906 msgid ""
17907 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
17908 "others which upload from or download to a local file, you can use the "
17909 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
17910 msgstr ""
17911
17912 #. type: verbatim
17913 #: ../fish/guestfish.pod:886
17914 #, no-wrap
17915 msgid ""
17916 " upload - /foo\n"
17917 "\n"
17918 msgstr ""
17919
17920 #. type: textblock
17921 #: ../fish/guestfish.pod:888
17922 msgid ""
17923 "reads stdin and creates from that a file C</foo> in the disk image, and:"
17924 msgstr ""
17925
17926 #. type: verbatim
17927 #: ../fish/guestfish.pod:891
17928 #, no-wrap
17929 msgid ""
17930 " tar-out /etc - | tar tf -\n"
17931 "\n"
17932 msgstr ""
17933
17934 #. type: textblock
17935 #: ../fish/guestfish.pod:893
17936 msgid ""
17937 "writes the tarball to stdout and then pipes that into the external \"tar\" "
17938 "command (see L</PIPES>)."
17939 msgstr ""
17940
17941 #. type: textblock
17942 #: ../fish/guestfish.pod:896
17943 msgid ""
17944 "When using C<-> to read from stdin, the input is read up to the end of "
17945 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
17946 "some arbitrary end marker:"
17947 msgstr ""
17948
17949 #. type: verbatim
17950 #: ../fish/guestfish.pod:900
17951 #, no-wrap
17952 msgid ""
17953 " upload -<<END /foo\n"
17954 " input line 1\n"
17955 " input line 2\n"
17956 " input line 3\n"
17957 " END\n"
17958 "\n"
17959 msgstr ""
17960
17961 #. type: textblock
17962 #: ../fish/guestfish.pod:906
17963 msgid ""
17964 "Any string of characters can be used instead of C<END>.  The end marker must "
17965 "appear on a line of its own, without any preceeding or following characters "
17966 "(not even spaces)."
17967 msgstr ""
17968
17969 #. type: textblock
17970 #: ../fish/guestfish.pod:910
17971 msgid ""
17972 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
17973 "upload local files (so-called \"FileIn\" parameters in the generator)."
17974 msgstr ""
17975
17976 #. type: =head1
17977 #: ../fish/guestfish.pod:913
17978 msgid "EXIT ON ERROR BEHAVIOUR"
17979 msgstr ""
17980
17981 #. type: textblock
17982 #: ../fish/guestfish.pod:915
17983 msgid ""
17984 "By default, guestfish will ignore any errors when in interactive mode (ie. "
17985 "taking commands from a human over a tty), and will exit on the first error "
17986 "in non-interactive mode (scripts, commands given on the command line)."
17987 msgstr ""
17988
17989 #. type: textblock
17990 #: ../fish/guestfish.pod:920
17991 msgid ""
17992 "If you prefix a command with a I<-> character, then that command will not "
17993 "cause guestfish to exit, even if that (one) command returns an error."
17994 msgstr ""
17995
17996 #. type: =head1
17997 #: ../fish/guestfish.pod:924
17998 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
17999 msgstr ""
18000
18001 #. type: textblock
18002 #: ../fish/guestfish.pod:926
18003 msgid ""
18004 "Guestfish can be remote-controlled over a socket.  This is useful "
18005 "particularly in shell scripts where you want to make several different "
18006 "changes to a filesystem, but you don't want the overhead of starting up a "
18007 "guestfish process each time."
18008 msgstr ""
18009
18010 #. type: textblock
18011 #: ../fish/guestfish.pod:931
18012 msgid "Start a guestfish server process using:"
18013 msgstr ""
18014
18015 #. type: verbatim
18016 #: ../fish/guestfish.pod:933
18017 #, no-wrap
18018 msgid ""
18019 " eval \"`guestfish --listen`\"\n"
18020 "\n"
18021 msgstr ""
18022
18023 #. type: textblock
18024 #: ../fish/guestfish.pod:935
18025 msgid "and then send it commands by doing:"
18026 msgstr ""
18027
18028 #. type: verbatim
18029 #: ../fish/guestfish.pod:937
18030 #, no-wrap
18031 msgid ""
18032 " guestfish --remote cmd [...]\n"
18033 "\n"
18034 msgstr ""
18035
18036 #. type: textblock
18037 #: ../fish/guestfish.pod:939
18038 msgid "To cause the server to exit, send it the exit command:"
18039 msgstr ""
18040
18041 #. type: textblock
18042 #: ../fish/guestfish.pod:943
18043 msgid ""
18044 "Note that the server will normally exit if there is an error in a command.  "
18045 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18046 "BEHAVIOUR>."
18047 msgstr ""
18048
18049 #. type: =head2
18050 #: ../fish/guestfish.pod:947
18051 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18052 msgstr ""
18053
18054 #. type: textblock
18055 #: ../fish/guestfish.pod:949
18056 msgid ""
18057 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18058 "is how the I<--remote> option knows where to send the commands.  You can "
18059 "have several guestfish listener processes running using:"
18060 msgstr ""
18061
18062 #. type: verbatim
18063 #: ../fish/guestfish.pod:953
18064 #, no-wrap
18065 msgid ""
18066 " eval \"`guestfish --listen`\"\n"
18067 " pid1=$GUESTFISH_PID\n"
18068 " eval \"`guestfish --listen`\"\n"
18069 " pid2=$GUESTFISH_PID\n"
18070 " ...\n"
18071 " guestfish --remote=$pid1 cmd\n"
18072 " guestfish --remote=$pid2 cmd\n"
18073 "\n"
18074 msgstr ""
18075
18076 #. type: =head2
18077 #: ../fish/guestfish.pod:961
18078 msgid "REMOTE CONTROL AND CSH"
18079 msgstr ""
18080
18081 #. type: textblock
18082 #: ../fish/guestfish.pod:963
18083 msgid ""
18084 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18085 "option:"
18086 msgstr ""
18087
18088 #. type: verbatim
18089 #: ../fish/guestfish.pod:966
18090 #, no-wrap
18091 msgid ""
18092 " eval \"`guestfish --listen --csh`\"\n"
18093 "\n"
18094 msgstr ""
18095
18096 #. type: =head2
18097 #: ../fish/guestfish.pod:968
18098 msgid "REMOTE CONTROL DETAILS"
18099 msgstr ""
18100
18101 #. type: textblock
18102 #: ../fish/guestfish.pod:970
18103 msgid ""
18104 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
18105 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
18106 "and C<$PID> is the process ID of the server."
18107 msgstr ""
18108
18109 #. type: textblock
18110 #: ../fish/guestfish.pod:974
18111 msgid "Guestfish client and server versions must match exactly."
18112 msgstr ""
18113
18114 #. type: =head2
18115 #: ../fish/guestfish.pod:976
18116 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
18117 msgstr ""
18118
18119 #. type: textblock
18120 #: ../fish/guestfish.pod:978
18121 msgid ""
18122 "From Bash, you can use the following code which creates a guestfish "
18123 "instance, correctly quotes the command line, handles failure to start, and "
18124 "cleans up guestfish when the script exits:"
18125 msgstr ""
18126
18127 #. type: verbatim
18128 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:958
18129 #, no-wrap
18130 msgid ""
18131 " #!/bin/bash -\n"
18132 " \n"
18133 msgstr ""
18134
18135 #. type: verbatim
18136 #: ../fish/guestfish.pod:986
18137 #, no-wrap
18138 msgid ""
18139 " guestfish[0]=\"guestfish\"\n"
18140 " guestfish[1]=\"--listen\"\n"
18141 " guestfish[2]=\"--ro\"\n"
18142 " guestfish[3]=\"-a\"\n"
18143 " guestfish[4]=\"disk.img\"\n"
18144 " \n"
18145 msgstr ""
18146
18147 #. type: verbatim
18148 #: ../fish/guestfish.pod:992
18149 #, no-wrap
18150 msgid ""
18151 " GUESTFISH_PID=\n"
18152 " eval $(\"${guestfish[@]}\")\n"
18153 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
18154 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
18155 "     exit 1\n"
18156 " fi\n"
18157 " \n"
18158 msgstr ""
18159
18160 #. type: verbatim
18161 #: ../fish/guestfish.pod:999
18162 #, no-wrap
18163 msgid ""
18164 " cleanup_guestfish ()\n"
18165 " {\n"
18166 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
18167 " }\n"
18168 " trap cleanup_guestfish EXIT ERR\n"
18169 " \n"
18170 msgstr ""
18171
18172 #. type: verbatim
18173 #: ../fish/guestfish.pod:1005
18174 #, no-wrap
18175 msgid ""
18176 " guestfish --remote -- run\n"
18177 " \n"
18178 msgstr ""
18179
18180 #. type: verbatim
18181 #: ../fish/guestfish.pod:1007
18182 #, no-wrap
18183 msgid ""
18184 " # ...\n"
18185 "\n"
18186 msgstr ""
18187
18188 #. type: =head2
18189 #: ../fish/guestfish.pod:1009
18190 msgid "REMOTE CONTROL RUN COMMAND HANGING"
18191 msgstr ""
18192
18193 #. type: textblock
18194 #: ../fish/guestfish.pod:1011
18195 msgid ""
18196 "Using the C<run> (or C<launch>) command remotely in a command substitution "
18197 "context hangs, ie. don't do (note the backquotes):"
18198 msgstr ""
18199
18200 #. type: verbatim
18201 #: ../fish/guestfish.pod:1014
18202 #, no-wrap
18203 msgid ""
18204 " a=`guestfish --remote run`\n"
18205 "\n"
18206 msgstr ""
18207
18208 #. type: textblock
18209 #: ../fish/guestfish.pod:1016
18210 msgid ""
18211 "Since the C<run> command produces no output on stdout, this is not useful "
18212 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
18213 "cgi?id=592910>."
18214 msgstr ""
18215
18216 #. type: =head1
18217 #: ../fish/guestfish.pod:1020
18218 msgid "PREPARED DISK IMAGES"
18219 msgstr ""
18220
18221 #. type: textblock
18222 #: ../fish/guestfish.pod:1022
18223 msgid ""
18224 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18225 "preformatted disk images that guestfish can make for you to save typing.  "
18226 "This is particularly useful for testing purposes.  This option is used "
18227 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18228 "can be mixed with I<-a>)."
18229 msgstr ""
18230
18231 #. type: textblock
18232 #: ../fish/guestfish.pod:1028
18233 msgid ""
18234 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
18235 "the second and so on.  Existing files in the current directory are "
18236 "I<overwritten>."
18237 msgstr ""
18238
18239 #. type: textblock
18240 #: ../fish/guestfish.pod:1032
18241 msgid ""
18242 "The type briefly describes how the disk should be sized, partitioned, how "
18243 "filesystem(s) should be created, and how content should be added.  "
18244 "Optionally the type can be followed by extra parameters, separated by C<:> "
18245 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
18246 "allocated disk, containing a single partition, with the partition formatted "
18247 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
18248 "disk instead."
18249 msgstr ""
18250
18251 #. type: textblock
18252 #: ../fish/guestfish.pod:1040
18253 msgid "To list the available types and any extra parameters they take, run:"
18254 msgstr ""
18255
18256 #. type: textblock
18257 #: ../fish/guestfish.pod:1044
18258 msgid ""
18259 "Note that the prepared filesystem is not mounted.  You would usually have to "
18260 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
18261 msgstr ""
18262
18263 #. type: textblock
18264 #: ../fish/guestfish.pod:1048
18265 msgid ""
18266 "If any I<-N> or I<--new> options are given, the guest is automatically "
18267 "launched."
18268 msgstr ""
18269
18270 #. type: textblock
18271 #: ../fish/guestfish.pod:1053
18272 msgid "Create a 100MB disk with an ext4-formatted partition:"
18273 msgstr ""
18274
18275 #. type: verbatim
18276 #: ../fish/guestfish.pod:1055
18277 #, no-wrap
18278 msgid ""
18279 " guestfish -N fs:ext4\n"
18280 "\n"
18281 msgstr ""
18282
18283 #. type: textblock
18284 #: ../fish/guestfish.pod:1057
18285 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
18286 msgstr ""
18287
18288 #. type: verbatim
18289 #: ../fish/guestfish.pod:1059
18290 #, no-wrap
18291 msgid ""
18292 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
18293 "\n"
18294 msgstr ""
18295
18296 #. type: textblock
18297 #: ../fish/guestfish.pod:1061
18298 msgid "Create a blank 200MB disk:"
18299 msgstr ""
18300
18301 #. type: verbatim
18302 #: ../fish/guestfish.pod:1063
18303 #, no-wrap
18304 msgid ""
18305 " guestfish -N disk:200M\n"
18306 "\n"
18307 msgstr ""
18308
18309 #. type: =head1
18310 #: ../fish/guestfish.pod:1065
18311 msgid "PROGRESS BARS"
18312 msgstr ""
18313
18314 #. type: textblock
18315 #: ../fish/guestfish.pod:1067
18316 msgid ""
18317 "Some (not all) long-running commands send progress notification messages as "
18318 "they are running.  Guestfish turns these messages into progress bars."
18319 msgstr ""
18320
18321 #. type: textblock
18322 #: ../fish/guestfish.pod:1071
18323 msgid ""
18324 "When a command that supports progress bars takes longer than two seconds to "
18325 "run, and if progress bars are enabled, then you will see one appearing below "
18326 "the command:"
18327 msgstr ""
18328
18329 #. type: verbatim
18330 #: ../fish/guestfish.pod:1075
18331 #, no-wrap
18332 msgid ""
18333 " ><fs> copy-size /large-file /another-file 2048M\n"
18334 " / 10% [#####-----------------------------------------] 00:30\n"
18335 "\n"
18336 msgstr ""
18337
18338 #. type: textblock
18339 #: ../fish/guestfish.pod:1078
18340 msgid ""
18341 "The spinner on the left hand side moves round once for every progress "
18342 "notification received from the backend.  This is a (reasonably) golden "
18343 "assurance that the command is \"doing something\" even if the progress bar "
18344 "is not moving, because the command is able to send the progress "
18345 "notifications.  When the bar reaches 100% and the command finishes, the "
18346 "spinner disappears."
18347 msgstr ""
18348
18349 #. type: textblock
18350 #: ../fish/guestfish.pod:1085
18351 msgid ""
18352 "Progress bars are enabled by default when guestfish is used interactively.  "
18353 "You can enable them even for non-interactive modes using I<--progress-bars>, "
18354 "and you can disable them completely using I<--no-progress-bars>."
18355 msgstr ""
18356
18357 #. type: =head1
18358 #: ../fish/guestfish.pod:1090
18359 msgid "GUESTFISH COMMANDS"
18360 msgstr ""
18361
18362 #. type: textblock
18363 #: ../fish/guestfish.pod:1092
18364 msgid ""
18365 "The commands in this section are guestfish convenience commands, in other "
18366 "words, they are not part of the L<guestfs(3)> API."
18367 msgstr ""
18368
18369 #. type: =head2
18370 #: ../fish/guestfish.pod:1095
18371 msgid "help"
18372 msgstr ""
18373
18374 #. type: verbatim
18375 #: ../fish/guestfish.pod:1097
18376 #, no-wrap
18377 msgid ""
18378 " help\n"
18379 " help cmd\n"
18380 "\n"
18381 msgstr ""
18382
18383 #. type: textblock
18384 #: ../fish/guestfish.pod:1100
18385 msgid "Without any parameter, this provides general help."
18386 msgstr ""
18387
18388 #. type: textblock
18389 #: ../fish/guestfish.pod:1102
18390 msgid "With a C<cmd> parameter, this displays detailed help for that command."
18391 msgstr ""
18392
18393 #. type: =head2
18394 #: ../fish/guestfish.pod:1104
18395 msgid "quit | exit"
18396 msgstr ""
18397
18398 #. type: textblock
18399 #: ../fish/guestfish.pod:1106
18400 msgid "This exits guestfish.  You can also use C<^D> key."
18401 msgstr ""
18402
18403 #. type: textblock
18404 #: ../fish/guestfish.pod:1108
18405 msgid "@FISH_COMMANDS@"
18406 msgstr ""
18407
18408 #. type: =head1
18409 #: ../fish/guestfish.pod:1110
18410 msgid "COMMANDS"
18411 msgstr ""
18412
18413 #. type: textblock
18414 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1497
18415 msgid "@ACTIONS@"
18416 msgstr ""
18417
18418 #. type: textblock
18419 #: ../fish/guestfish.pod:1116
18420 msgid ""
18421 "guestfish returns 0 if the commands completed without error, or 1 if there "
18422 "was an error."
18423 msgstr ""
18424
18425 #. type: =item
18426 #: ../fish/guestfish.pod:1123
18427 msgid "EDITOR"
18428 msgstr ""
18429
18430 #. type: textblock
18431 #: ../fish/guestfish.pod:1125
18432 msgid ""
18433 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
18434 "C<vi>."
18435 msgstr ""
18436
18437 #. type: =item
18438 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3089
18439 msgid "FEBOOTSTRAP_KERNEL"
18440 msgstr ""
18441
18442 #. type: =item
18443 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3091
18444 msgid "FEBOOTSTRAP_MODULES"
18445 msgstr ""
18446
18447 #. type: textblock
18448 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3093
18449 msgid ""
18450 "These two environment variables allow the kernel that libguestfs uses in the "
18451 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
18452 "most recent host kernel is chosen.  For more information about kernel "
18453 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
18454 "available in febootstrap E<ge> 3.8."
18455 msgstr ""
18456
18457 #. type: =item
18458 #: ../fish/guestfish.pod:1138
18459 msgid "GUESTFISH_DISPLAY_IMAGE"
18460 msgstr ""
18461
18462 #. type: textblock
18463 #: ../fish/guestfish.pod:1140
18464 msgid ""
18465 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
18466 "If not set, it uses L<display(1)>."
18467 msgstr ""
18468
18469 #. type: =item
18470 #: ../fish/guestfish.pod:1143
18471 msgid "GUESTFISH_PID"
18472 msgstr ""
18473
18474 #. type: textblock
18475 #: ../fish/guestfish.pod:1145
18476 msgid ""
18477 "Used with the I<--remote> option to specify the remote guestfish process to "
18478 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
18479 msgstr ""
18480
18481 #. type: =item
18482 #: ../fish/guestfish.pod:1149
18483 msgid "HEXEDITOR"
18484 msgstr ""
18485
18486 #. type: textblock
18487 #: ../fish/guestfish.pod:1151
18488 msgid ""
18489 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
18490 "not specified, the external L<hexedit(1)> program is used."
18491 msgstr ""
18492
18493 #. type: =item
18494 #: ../fish/guestfish.pod:1155
18495 msgid "HOME"
18496 msgstr ""
18497
18498 #. type: textblock
18499 #: ../fish/guestfish.pod:1157
18500 msgid ""
18501 "If compiled with GNU readline support, various files in the home directory "
18502 "can be used.  See L</FILES>."
18503 msgstr ""
18504
18505 #. type: =item
18506 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3099
18507 msgid "LIBGUESTFS_APPEND"
18508 msgstr ""
18509
18510 #. type: textblock
18511 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3101
18512 msgid "Pass additional options to the guest kernel."
18513 msgstr ""
18514
18515 #. type: =item
18516 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3103
18517 msgid "LIBGUESTFS_DEBUG"
18518 msgstr ""
18519
18520 #. type: textblock
18521 #: ../fish/guestfish.pod:1166
18522 msgid ""
18523 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
18524 "effect as using the B<-v> option."
18525 msgstr ""
18526
18527 #. type: =item
18528 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3108
18529 msgid "LIBGUESTFS_MEMSIZE"
18530 msgstr ""
18531
18532 #. type: textblock
18533 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3110
18534 msgid ""
18535 "Set the memory allocated to the qemu process, in megabytes.  For example:"
18536 msgstr ""
18537
18538 #. type: verbatim
18539 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3113
18540 #, no-wrap
18541 msgid ""
18542 " LIBGUESTFS_MEMSIZE=700\n"
18543 "\n"
18544 msgstr ""
18545
18546 #. type: =item
18547 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3115
18548 msgid "LIBGUESTFS_PATH"
18549 msgstr ""
18550
18551 #. type: textblock
18552 #: ../fish/guestfish.pod:1178
18553 msgid ""
18554 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
18555 "the discussion of paths in L<guestfs(3)>."
18556 msgstr ""
18557
18558 #. type: =item
18559 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3120
18560 msgid "LIBGUESTFS_QEMU"
18561 msgstr ""
18562
18563 #. type: textblock
18564 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3122
18565 msgid ""
18566 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
18567 "which was found at compile time by the configure script is used."
18568 msgstr ""
18569
18570 #. type: =item
18571 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3128
18572 msgid "LIBGUESTFS_TRACE"
18573 msgstr ""
18574
18575 #. type: textblock
18576 #: ../fish/guestfish.pod:1189
18577 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
18578 msgstr ""
18579
18580 #. type: =item
18581 #: ../fish/guestfish.pod:1191
18582 msgid "PAGER"
18583 msgstr ""
18584
18585 #. type: textblock
18586 #: ../fish/guestfish.pod:1193
18587 msgid ""
18588 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
18589 "C<more>."
18590 msgstr ""
18591
18592 #. type: =item
18593 #: ../fish/guestfish.pod:1196 ../src/guestfs.pod:3133
18594 msgid "TMPDIR"
18595 msgstr ""
18596
18597 #. type: textblock
18598 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3135
18599 msgid ""
18600 "Location of temporary directory, defaults to C</tmp> except for the cached "
18601 "supermin appliance which defaults to C</var/tmp>."
18602 msgstr ""
18603
18604 #. type: textblock
18605 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3138
18606 msgid ""
18607 "If libguestfs was compiled to use the supermin appliance then the real "
18608 "appliance is cached in this directory, shared between all handles belonging "
18609 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
18610 "use in case C</var/tmp> is not large enough."
18611 msgstr ""
18612
18613 #. type: =head1
18614 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
18615 #: ../rescue/virt-rescue.pod:269
18616 msgid "FILES"
18617 msgstr ""
18618
18619 #. type: =item
18620 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
18621 #: ../rescue/virt-rescue.pod:273
18622 msgid "$HOME/.libguestfs-tools.rc"
18623 msgstr ""
18624
18625 #. type: =item
18626 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
18627 #: ../rescue/virt-rescue.pod:275
18628 msgid "/etc/libguestfs-tools.conf"
18629 msgstr ""
18630
18631 #. type: textblock
18632 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
18633 #: ../rescue/virt-rescue.pod:277
18634 msgid ""
18635 "This configuration file controls the default read-only or read-write mode "
18636 "(I<--ro> or I<--rw>)."
18637 msgstr ""
18638
18639 #. type: textblock
18640 #: ../fish/guestfish.pod:1220
18641 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
18642 msgstr ""
18643
18644 #. type: =item
18645 #: ../fish/guestfish.pod:1222
18646 msgid "$HOME/.guestfish"
18647 msgstr ""
18648
18649 #. type: textblock
18650 #: ../fish/guestfish.pod:1224
18651 msgid ""
18652 "If compiled with GNU readline support, then the command history is saved in "
18653 "this file."
18654 msgstr ""
18655
18656 #. type: =item
18657 #: ../fish/guestfish.pod:1227
18658 msgid "$HOME/.inputrc"
18659 msgstr ""
18660
18661 #. type: =item
18662 #: ../fish/guestfish.pod:1229
18663 msgid "/etc/inputrc"
18664 msgstr ""
18665
18666 #. type: textblock
18667 #: ../fish/guestfish.pod:1231
18668 msgid ""
18669 "If compiled with GNU readline support, then these files can be used to "
18670 "configure readline.  For further information, please see L<readline(3)/"
18671 "INITIALIZATION FILE>."
18672 msgstr ""
18673
18674 #. type: textblock
18675 #: ../fish/guestfish.pod:1235
18676 msgid "To write rules which only apply to guestfish, use:"
18677 msgstr ""
18678
18679 #. type: verbatim
18680 #: ../fish/guestfish.pod:1237
18681 #, no-wrap
18682 msgid ""
18683 " $if guestfish\n"
18684 " ...\n"
18685 " $endif\n"
18686 "\n"
18687 msgstr ""
18688
18689 #. type: textblock
18690 #: ../fish/guestfish.pod:1241
18691 msgid ""
18692 "Variables that you can set in inputrc that change the behaviour of guestfish "
18693 "in useful ways include:"
18694 msgstr ""
18695
18696 #. type: =item
18697 #: ../fish/guestfish.pod:1246
18698 msgid "completion-ignore-case (default: on)"
18699 msgstr ""
18700
18701 #. type: textblock
18702 #: ../fish/guestfish.pod:1248
18703 msgid ""
18704 "By default, guestfish will ignore case when tab-completing paths on the "
18705 "disk.  Use:"
18706 msgstr ""
18707
18708 #. type: verbatim
18709 #: ../fish/guestfish.pod:1251
18710 #, no-wrap
18711 msgid ""
18712 " set completion-ignore-case off\n"
18713 "\n"
18714 msgstr ""
18715
18716 #. type: textblock
18717 #: ../fish/guestfish.pod:1253
18718 msgid "to make guestfish case sensitive."
18719 msgstr ""
18720
18721 #. type: =item
18722 #: ../fish/guestfish.pod:1257
18723 msgid "test1.img"
18724 msgstr ""
18725
18726 #. type: =item
18727 #: ../fish/guestfish.pod:1259
18728 msgid "test2.img (etc)"
18729 msgstr ""
18730
18731 #. type: textblock
18732 #: ../fish/guestfish.pod:1261
18733 msgid ""
18734 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
18735 "will be created in the file C<test1.img> in the current directory.  The "
18736 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
18737 "the same name will be overwritten."
18738 msgstr ""
18739
18740 #. type: textblock
18741 #: ../fish/guestfish.pod:1270
18742 msgid ""
18743 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
18744 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
18745 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
18746 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
18747 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
18748 ">, L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
18749 msgstr ""
18750
18751 #. type: textblock
18752 #: ../fish/guestfish.pod:1299 ../src/guestfs.pod:3225
18753 #: ../test-tool/libguestfs-test-tool.pod:112
18754 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
18755 msgstr ""
18756
18757 #. type: textblock
18758 #: ../fish/virt-copy-in.pod:5
18759 msgid ""
18760 "virt-copy-in - Copy files and directories into a virtual machine disk image."
18761 msgstr ""
18762
18763 #. type: verbatim
18764 #: ../fish/virt-copy-in.pod:9
18765 #, no-wrap
18766 msgid ""
18767 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
18768 "\n"
18769 msgstr ""
18770
18771 #. type: verbatim
18772 #: ../fish/virt-copy-in.pod:11
18773 #, no-wrap
18774 msgid ""
18775 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
18776 "\n"
18777 msgstr ""
18778
18779 #. type: textblock
18780 #: ../fish/virt-copy-in.pod:15
18781 msgid ""
18782 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
18783 "causing disk corruption.  The virtual machine must be shut down before you "
18784 "use this command."
18785 msgstr ""
18786
18787 #. type: textblock
18788 #: ../fish/virt-copy-in.pod:21
18789 msgid ""
18790 "C<virt-copy-in> copies files and directories from the local disk into a "
18791 "virtual machine disk image or named libvirt domain."
18792 msgstr ""
18793
18794 #. type: textblock
18795 #: ../fish/virt-copy-in.pod:24
18796 msgid ""
18797 "You can give one of more filenames and directories on the command line.  "
18798 "Directories are copied in recursively.  The final parameter must be the "
18799 "destination directory in the disk image which must be an absolute path "
18800 "starting with a C</> character."
18801 msgstr ""
18802
18803 #. type: verbatim
18804 #: ../fish/virt-copy-in.pod:33
18805 #, no-wrap
18806 msgid ""
18807 " virt-copy-in -d MyGuest resolv.conf /etc\n"
18808 "\n"
18809 msgstr ""
18810
18811 #. type: textblock
18812 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
18813 msgid "Upload a home directory to a guest:"
18814 msgstr ""
18815
18816 #. type: verbatim
18817 #: ../fish/virt-copy-in.pod:37
18818 #, no-wrap
18819 msgid ""
18820 " virt-copy-in -d MyGuest skel /home\n"
18821 "\n"
18822 msgstr ""
18823
18824 #. type: =head1
18825 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
18826 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
18827 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
18828 msgstr ""
18829
18830 #. type: textblock
18831 #: ../fish/virt-copy-in.pod:41
18832 msgid ""
18833 "This command is just a simple shell script wrapper around the L<guestfish(1)"
18834 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
18835 "are probably better off using guestfish directly."
18836 msgstr ""
18837
18838 #. type: textblock
18839 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
18840 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
18841 msgid ""
18842 "Since the shell script just passes options straight to guestfish, read "
18843 "L<guestfish(1)> to see the full list of options."
18844 msgstr ""
18845
18846 #. type: textblock
18847 #: ../fish/virt-copy-in.pod:52
18848 msgid ""
18849 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
18850 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
18851 msgstr ""
18852
18853 #. type: textblock
18854 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
18855 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
18856 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
18857 msgstr ""
18858
18859 #. type: textblock
18860 #: ../fish/virt-copy-out.pod:5
18861 msgid ""
18862 "virt-copy-out - Copy files and directories out of a virtual machine disk "
18863 "image."
18864 msgstr ""
18865
18866 #. type: verbatim
18867 #: ../fish/virt-copy-out.pod:9
18868 #, no-wrap
18869 msgid ""
18870 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
18871 "\n"
18872 msgstr ""
18873
18874 #. type: verbatim
18875 #: ../fish/virt-copy-out.pod:11
18876 #, no-wrap
18877 msgid ""
18878 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
18879 "\n"
18880 msgstr ""
18881
18882 #. type: textblock
18883 #: ../fish/virt-copy-out.pod:15
18884 msgid ""
18885 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
18886 "image or named libvirt domain."
18887 msgstr ""
18888
18889 #. type: textblock
18890 #: ../fish/virt-copy-out.pod:18
18891 msgid ""
18892 "You can give one of more filenames and directories on the command line.  "
18893 "Directories are copied out recursively."
18894 msgstr ""
18895
18896 #. type: textblock
18897 #: ../fish/virt-copy-out.pod:23
18898 msgid "Download the home directories from a virtual machine:"
18899 msgstr ""
18900
18901 #. type: verbatim
18902 #: ../fish/virt-copy-out.pod:25
18903 #, no-wrap
18904 msgid ""
18905 " mkdir homes\n"
18906 " virt-copy-out -d MyGuest /home homes\n"
18907 "\n"
18908 msgstr ""
18909
18910 #. type: textblock
18911 #: ../fish/virt-copy-out.pod:30
18912 msgid ""
18913 "This command is just a simple shell script wrapper around the L<guestfish(1)"
18914 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
18915 "are probably better off using guestfish directly."
18916 msgstr ""
18917
18918 #. type: textblock
18919 #: ../fish/virt-copy-out.pod:41
18920 msgid ""
18921 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
18922 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
18923 msgstr ""
18924
18925 #. type: textblock
18926 #: ../fish/virt-tar-in.pod:5
18927 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
18928 msgstr ""
18929
18930 #. type: verbatim
18931 #: ../fish/virt-tar-in.pod:9
18932 #, no-wrap
18933 msgid ""
18934 " virt-tar-in -a disk.img data.tar /destination\n"
18935 "\n"
18936 msgstr ""
18937
18938 #. type: verbatim
18939 #: ../fish/virt-tar-in.pod:11
18940 #, no-wrap
18941 msgid ""
18942 " virt-tar-in -d domain data.tar /destination\n"
18943 "\n"
18944 msgstr ""
18945
18946 #. type: verbatim
18947 #: ../fish/virt-tar-in.pod:13
18948 #, no-wrap
18949 msgid ""
18950 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
18951 "\n"
18952 msgstr ""
18953
18954 #. type: textblock
18955 #: ../fish/virt-tar-in.pod:17
18956 msgid ""
18957 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
18958 "causing disk corruption.  The virtual machine must be shut down before you "
18959 "use this command."
18960 msgstr ""
18961
18962 #. type: textblock
18963 #: ../fish/virt-tar-in.pod:23
18964 msgid ""
18965 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
18966 "image or named libvirt domain."
18967 msgstr ""
18968
18969 #. type: textblock
18970 #: ../fish/virt-tar-in.pod:26
18971 msgid ""
18972 "The first parameter is the tar file.  Use C<-> to read the tar file from "
18973 "standard input.  The second parameter is the absolute target directory to "
18974 "unpack into."
18975 msgstr ""
18976
18977 #. type: verbatim
18978 #: ../fish/virt-tar-in.pod:34
18979 #, no-wrap
18980 msgid ""
18981 " virt-tar-in -d MyGuest homes.tar /home\n"
18982 "\n"
18983 msgstr ""
18984
18985 #. type: textblock
18986 #: ../fish/virt-tar-in.pod:38
18987 msgid ""
18988 "This command is just a simple shell script wrapper around the L<guestfish(1)"
18989 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
18990 "probably better off using guestfish directly."
18991 msgstr ""
18992
18993 #. type: textblock
18994 #: ../fish/virt-tar-in.pod:49
18995 msgid ""
18996 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
18997 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
18998 "org/>."
18999 msgstr ""
19000
19001 #. type: textblock
19002 #: ../fish/virt-tar-out.pod:5
19003 msgid ""
19004 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
19005 msgstr ""
19006
19007 #. type: verbatim
19008 #: ../fish/virt-tar-out.pod:9
19009 #, no-wrap
19010 msgid ""
19011 " virt-tar-out -a disk.img /dir files.tar\n"
19012 "\n"
19013 msgstr ""
19014
19015 #. type: verbatim
19016 #: ../fish/virt-tar-out.pod:11
19017 #, no-wrap
19018 msgid ""
19019 " virt-tar-out -d domain /dir files.tar\n"
19020 "\n"
19021 msgstr ""
19022
19023 #. type: verbatim
19024 #: ../fish/virt-tar-out.pod:13
19025 #, no-wrap
19026 msgid ""
19027 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
19028 "\n"
19029 msgstr ""
19030
19031 #. type: textblock
19032 #: ../fish/virt-tar-out.pod:17
19033 msgid ""
19034 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
19035 msgstr ""
19036
19037 #. type: textblock
19038 #: ../fish/virt-tar-out.pod:20
19039 msgid ""
19040 "The first parameter is the absolute path of the virtual machine directory.  "
19041 "The second parameter is the tar file to write.  Use C<-> to write to "
19042 "standard output."
19043 msgstr ""
19044
19045 #. type: textblock
19046 #: ../fish/virt-tar-out.pod:26
19047 msgid "Download the home directories from a guest:"
19048 msgstr ""
19049
19050 #. type: verbatim
19051 #: ../fish/virt-tar-out.pod:28
19052 #, no-wrap
19053 msgid ""
19054 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
19055 "\n"
19056 msgstr ""
19057
19058 #. type: textblock
19059 #: ../fish/virt-tar-out.pod:32
19060 msgid ""
19061 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19062 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
19063 "are probably better off using guestfish directly."
19064 msgstr ""
19065
19066 #. type: textblock
19067 #: ../fish/virt-tar-out.pod:43
19068 msgid ""
19069 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19070 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
19071 msgstr ""
19072
19073 #. type: textblock
19074 #: ../fuse/guestmount.pod:5
19075 msgid ""
19076 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
19077 msgstr ""
19078
19079 #. type: verbatim
19080 #: ../fuse/guestmount.pod:9
19081 #, no-wrap
19082 msgid ""
19083 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
19084 "\n"
19085 msgstr ""
19086
19087 #. type: verbatim
19088 #: ../fuse/guestmount.pod:11
19089 #, no-wrap
19090 msgid ""
19091 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
19092 "\n"
19093 msgstr ""
19094
19095 #. type: verbatim
19096 #: ../fuse/guestmount.pod:13
19097 #, no-wrap
19098 msgid ""
19099 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
19100 "\n"
19101 msgstr ""
19102
19103 #. type: textblock
19104 #: ../fuse/guestmount.pod:17
19105 msgid ""
19106 "You must I<not> use C<guestmount> in read-write mode on live virtual "
19107 "machines.  If you do this, you risk disk corruption in the VM."
19108 msgstr ""
19109
19110 #. type: textblock
19111 #: ../fuse/guestmount.pod:22
19112 msgid ""
19113 "The guestmount program can be used to mount virtual machine filesystems and "
19114 "other disk images on the host.  It uses libguestfs for access to the guest "
19115 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
19116 "a mountable device."
19117 msgstr ""
19118
19119 #. type: textblock
19120 #: ../fuse/guestmount.pod:27
19121 msgid ""
19122 "Along with other options, you have to give at least one device (I<-a> "
19123 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
19124 "option) or use the I<-i> inspection option.  How this works is better "
19125 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
19126 "below."
19127 msgstr ""
19128
19129 #. type: textblock
19130 #: ../fuse/guestmount.pod:33
19131 msgid ""
19132 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
19133 "by you, and the filesystem will not be visible to any other users unless you "
19134 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
19135 "the filesystem, use the C<fusermount -u> command."
19136 msgstr ""
19137
19138 #. type: textblock
19139 #: ../fuse/guestmount.pod:41
19140 msgid ""
19141 "For a typical Windows guest which has its main filesystem on the first "
19142 "partition:"
19143 msgstr ""
19144
19145 #. type: verbatim
19146 #: ../fuse/guestmount.pod:44
19147 #, no-wrap
19148 msgid ""
19149 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
19150 "\n"
19151 msgstr ""
19152
19153 #. type: textblock
19154 #: ../fuse/guestmount.pod:46
19155 msgid ""
19156 "For a typical Linux guest which has a /boot filesystem on the first "
19157 "partition, and the root filesystem on a logical volume:"
19158 msgstr ""
19159
19160 #. type: verbatim
19161 #: ../fuse/guestmount.pod:49
19162 #, no-wrap
19163 msgid ""
19164 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
19165 "\n"
19166 msgstr ""
19167
19168 #. type: textblock
19169 #: ../fuse/guestmount.pod:51
19170 msgid "To get libguestfs to detect guest mountpoints for you:"
19171 msgstr ""
19172
19173 #. type: verbatim
19174 #: ../fuse/guestmount.pod:53
19175 #, no-wrap
19176 msgid ""
19177 " guestmount -a guest.img -i --ro /mnt\n"
19178 "\n"
19179 msgstr ""
19180
19181 #. type: textblock
19182 #: ../fuse/guestmount.pod:55
19183 msgid "For a libvirt guest called \"Guest\" you could do:"
19184 msgstr ""
19185
19186 #. type: verbatim
19187 #: ../fuse/guestmount.pod:57
19188 #, no-wrap
19189 msgid ""
19190 " guestmount -d Guest -i --ro /mnt\n"
19191 "\n"
19192 msgstr ""
19193
19194 #. type: textblock
19195 #: ../fuse/guestmount.pod:59
19196 msgid ""
19197 "If you don't know what filesystems are contained in a guest or disk image, "
19198 "use L<virt-filesystems(1)> first:"
19199 msgstr ""
19200
19201 #. type: verbatim
19202 #: ../fuse/guestmount.pod:62
19203 #, no-wrap
19204 msgid ""
19205 " virt-filesystems MyGuest\n"
19206 "\n"
19207 msgstr ""
19208
19209 #. type: textblock
19210 #: ../fuse/guestmount.pod:64
19211 msgid ""
19212 "If you want to trace the libguestfs calls but without excessive debugging "
19213 "information, we recommend:"
19214 msgstr ""
19215
19216 #. type: verbatim
19217 #: ../fuse/guestmount.pod:67
19218 #, no-wrap
19219 msgid ""
19220 " guestmount [...] --trace /mnt\n"
19221 "\n"
19222 msgstr ""
19223
19224 #. type: textblock
19225 #: ../fuse/guestmount.pod:69
19226 msgid "If you want to debug the program, we recommend:"
19227 msgstr ""
19228
19229 #. type: verbatim
19230 #: ../fuse/guestmount.pod:71
19231 #, no-wrap
19232 msgid ""
19233 " guestmount [...] --trace --verbose /mnt\n"
19234 "\n"
19235 msgstr ""
19236
19237 #. type: =head1
19238 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
19239 #: ../resize/virt-resize.pod:511
19240 msgid "NOTES"
19241 msgstr ""
19242
19243 #. type: =head2
19244 #: ../fuse/guestmount.pod:75
19245 msgid "Other users cannot see the filesystem by default"
19246 msgstr ""
19247
19248 #. type: textblock
19249 #: ../fuse/guestmount.pod:77
19250 msgid ""
19251 "If you mount a filesystem as one user (eg. root), then other users will not "
19252 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
19253 "option when mounting:"
19254 msgstr ""
19255
19256 #. type: verbatim
19257 #: ../fuse/guestmount.pod:81
19258 #, no-wrap
19259 msgid ""
19260 " sudo guestmount [...] -o allow_other /mnt\n"
19261 "\n"
19262 msgstr ""
19263
19264 #. type: =head2
19265 #: ../fuse/guestmount.pod:83
19266 msgid "Enabling FUSE"
19267 msgstr ""
19268
19269 #. type: textblock
19270 #: ../fuse/guestmount.pod:85
19271 msgid ""
19272 "On some distros, you may need to add yourself to a special group (eg. "
19273 "C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
19274 "Debian and derivatives."
19275 msgstr ""
19276
19277 #. type: textblock
19278 #: ../fuse/guestmount.pod:89
19279 msgid ""
19280 "On other distros, no special group is required.  It is not necessary on "
19281 "Fedora or Red Hat Enterprise Linux."
19282 msgstr ""
19283
19284 #. type: textblock
19285 #: ../fuse/guestmount.pod:100
19286 msgid "Add a block device or virtual machine image."
19287 msgstr ""
19288
19289 #. type: =item
19290 #: ../fuse/guestmount.pod:123
19291 msgid "B<--dir-cache-timeout N>"
19292 msgstr ""
19293
19294 #. type: textblock
19295 #: ../fuse/guestmount.pod:125
19296 msgid ""
19297 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
19298 "seconds.  The readdir cache [actually, there are several semi-independent "
19299 "caches] is populated after a readdir(2) call with the stat and extended "
19300 "attributes of the files in the directory, in anticipation that they will be "
19301 "requested soon after."
19302 msgstr ""
19303
19304 #. type: textblock
19305 #: ../fuse/guestmount.pod:131
19306 msgid ""
19307 "There is also a different attribute cache implemented by FUSE (see the FUSE "
19308 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
19309 "requests, only cache existing ones."
19310 msgstr ""
19311
19312 #. type: textblock
19313 #: ../fuse/guestmount.pod:151
19314 msgid ""
19315 "If you have untrusted raw-format guest disk images, you should use this "
19316 "option to specify the disk format.  This avoids a possible security problem "
19317 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
19318 "guestfs_add_drive_opts>."
19319 msgstr ""
19320
19321 #. type: =item
19322 #: ../fuse/guestmount.pod:156
19323 msgid "B<--fuse-help>"
19324 msgstr ""
19325
19326 #. type: textblock
19327 #: ../fuse/guestmount.pod:158
19328 msgid "Display help on special FUSE options (see I<-o> below)."
19329 msgstr ""
19330
19331 #. type: textblock
19332 #: ../fuse/guestmount.pod:162
19333 msgid "Display brief help and exit."
19334 msgstr ""
19335
19336 #. type: textblock
19337 #: ../fuse/guestmount.pod:186
19338 msgid ""
19339 "Mount the named partition or logical volume on the given mountpoint B<in the "
19340 "guest> (this has nothing to do with mountpoints in the host)."
19341 msgstr ""
19342
19343 #. type: textblock
19344 #: ../fuse/guestmount.pod:189
19345 msgid ""
19346 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
19347 "something on C</>."
19348 msgstr ""
19349
19350 #. type: textblock
19351 #: ../fuse/guestmount.pod:206
19352 msgid ""
19353 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
19354 "unmounted.  If you specify this option, then we don't attempt to sync the "
19355 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
19356 msgstr ""
19357
19358 #. type: =item
19359 #: ../fuse/guestmount.pod:211
19360 msgid "B<-o option>"
19361 msgstr ""
19362
19363 #. type: =item
19364 #: ../fuse/guestmount.pod:213
19365 msgid "B<--option option>"
19366 msgstr ""
19367
19368 #. type: textblock
19369 #: ../fuse/guestmount.pod:215
19370 msgid "Pass extra options to FUSE."
19371 msgstr ""
19372
19373 #. type: textblock
19374 #: ../fuse/guestmount.pod:217
19375 msgid ""
19376 "To get a list of all the extra options supported by FUSE, use the command "
19377 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
19378 "of them are a good idea."
19379 msgstr ""
19380
19381 #. type: verbatim
19382 #: ../fuse/guestmount.pod:221
19383 #, no-wrap
19384 msgid ""
19385 " guestmount --fuse-help\n"
19386 "\n"
19387 msgstr ""
19388
19389 #. type: textblock
19390 #: ../fuse/guestmount.pod:223
19391 msgid "Some potentially useful FUSE options:"
19392 msgstr ""
19393
19394 #. type: =item
19395 #: ../fuse/guestmount.pod:227
19396 msgid "B<-o allow_other>"
19397 msgstr ""
19398
19399 #. type: textblock
19400 #: ../fuse/guestmount.pod:229
19401 msgid "Allow other users to see the filesystem."
19402 msgstr ""
19403
19404 #. type: =item
19405 #: ../fuse/guestmount.pod:231
19406 msgid "B<-o attr_timeout=N>"
19407 msgstr ""
19408
19409 #. type: textblock
19410 #: ../fuse/guestmount.pod:233
19411 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
19412 msgstr ""
19413
19414 #. type: =item
19415 #: ../fuse/guestmount.pod:235
19416 msgid "B<-o kernel_cache>"
19417 msgstr ""
19418
19419 #. type: textblock
19420 #: ../fuse/guestmount.pod:237
19421 msgid ""
19422 "Allow the kernel to cache files (reduces the number of reads that have to go "
19423 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
19424 "afford the extra memory usage."
19425 msgstr ""
19426
19427 #. type: =item
19428 #: ../fuse/guestmount.pod:241
19429 msgid "B<-o uid=N> B<-o gid=N>"
19430 msgstr ""
19431
19432 #. type: textblock
19433 #: ../fuse/guestmount.pod:243
19434 msgid ""
19435 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
19436 "the chosen values."
19437 msgstr ""
19438
19439 #. type: textblock
19440 #: ../fuse/guestmount.pod:252
19441 msgid ""
19442 "Add devices and mount everything read-only.  Also disallow writes and make "
19443 "the disk appear read-only to FUSE."
19444 msgstr ""
19445
19446 #. type: textblock
19447 #: ../fuse/guestmount.pod:255
19448 msgid ""
19449 "This is highly recommended if you are not going to edit the guest disk.  If "
19450 "the guest is running and this option is I<not> supplied, then there is a "
19451 "strong risk of disk corruption in the guest.  We try to prevent this from "
19452 "happening, but it is not always possible."
19453 msgstr ""
19454
19455 #. type: textblock
19456 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:171
19457 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
19458 msgstr ""
19459
19460 #. type: textblock
19461 #: ../fuse/guestmount.pod:264
19462 msgid "Enable SELinux support for the guest."
19463 msgstr ""
19464
19465 #. type: textblock
19466 #: ../fuse/guestmount.pod:270
19467 msgid "Enable verbose messages from underlying libguestfs."
19468 msgstr ""
19469
19470 #. type: textblock
19471 #: ../fuse/guestmount.pod:276
19472 msgid "Display the program version and exit."
19473 msgstr ""
19474
19475 #. type: textblock
19476 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
19477 #: ../rescue/virt-rescue.pod:197 ../rescue/virt-rescue.pod:280
19478 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
19479 msgstr ""
19480
19481 #. type: =item
19482 #: ../fuse/guestmount.pod:289
19483 msgid "B<--trace>"
19484 msgstr ""
19485
19486 #. type: textblock
19487 #: ../fuse/guestmount.pod:291
19488 msgid "Trace libguestfs calls and entry into each FUSE function."
19489 msgstr ""
19490
19491 #. type: textblock
19492 #: ../fuse/guestmount.pod:293
19493 msgid "This also stops the daemon from forking into the background."
19494 msgstr ""
19495
19496 #. type: textblock
19497 #: ../fuse/guestmount.pod:319
19498 msgid ""
19499 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
19500 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
19501 "net/>."
19502 msgstr ""
19503
19504 #. type: textblock
19505 #: ../fuse/guestmount.pod:334
19506 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
19507 msgstr ""
19508
19509 #. type: textblock
19510 #: ../inspector/virt-inspector.pod:5
19511 msgid ""
19512 "virt-inspector - Display operating system version and other information "
19513 "about a virtual machine"
19514 msgstr ""
19515
19516 #. type: verbatim
19517 #: ../inspector/virt-inspector.pod:9
19518 #, no-wrap
19519 msgid ""
19520 " virt-inspector [--options] -d domname\n"
19521 "\n"
19522 msgstr ""
19523
19524 #. type: verbatim
19525 #: ../inspector/virt-inspector.pod:11
19526 #, no-wrap
19527 msgid ""
19528 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
19529 "\n"
19530 msgstr ""
19531
19532 #. type: verbatim
19533 #: ../inspector/virt-inspector.pod:15
19534 #, no-wrap
19535 msgid ""
19536 " virt-inspector domname\n"
19537 "\n"
19538 msgstr ""
19539
19540 #. type: verbatim
19541 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
19542 #, no-wrap
19543 msgid ""
19544 " virt-inspector disk.img [disk.img ...]\n"
19545 "\n"
19546 msgstr ""
19547
19548 #. type: textblock
19549 #: ../inspector/virt-inspector.pod:21
19550 msgid ""
19551 "B<virt-inspector> examines a virtual machine or disk image and tries to "
19552 "determine the version of the operating system and other information about "
19553 "the virtual machine."
19554 msgstr ""
19555
19556 #. type: textblock
19557 #: ../inspector/virt-inspector.pod:25
19558 msgid "Virt-inspector produces XML output for feeding into other programs."
19559 msgstr ""
19560
19561 #. type: textblock
19562 #: ../inspector/virt-inspector.pod:27
19563 msgid ""
19564 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
19565 "the libvirt domain (see: C<virsh list --all>)."
19566 msgstr ""
19567
19568 #. type: textblock
19569 #: ../inspector/virt-inspector.pod:30
19570 msgid ""
19571 "You can also run virt-inspector directly on disk images from a single "
19572 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
19573 "has several block devices, in which case you should list several I<-a> "
19574 "options one after another, with the first corresponding to the guest's C</"
19575 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
19576 msgstr ""
19577
19578 #. type: textblock
19579 #: ../inspector/virt-inspector.pod:37
19580 msgid ""
19581 "You can also run virt-inspector on install disks, live CDs, bootable USB "
19582 "keys and similar."
19583 msgstr ""
19584
19585 #. type: textblock
19586 #: ../inspector/virt-inspector.pod:40
19587 msgid ""
19588 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
19589 "inspect several virtual machines, you have to run virt-inspector several "
19590 "times (for example, from a shell script for-loop)."
19591 msgstr ""
19592
19593 #. type: textblock
19594 #: ../inspector/virt-inspector.pod:45
19595 msgid ""
19596 "Because virt-inspector needs direct access to guest images, it won't "
19597 "normally work over remote libvirt connections."
19598 msgstr ""
19599
19600 #. type: textblock
19601 #: ../inspector/virt-inspector.pod:48
19602 msgid ""
19603 "All of the information available from virt-inspector is also available "
19604 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
19605 "The same information can also be fetched using guestfish or via libguestfs "
19606 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
19607 "WITH OTHER PROGRAMMING LANGUAGES>)."
19608 msgstr ""
19609
19610 #. type: textblock
19611 #: ../inspector/virt-inspector.pod:81
19612 msgid ""
19613 "Libvirt is only used if you specify a C<domname> on the command line.  If "
19614 "you specify guest block devices directly (I<-a>), then libvirt is not used "
19615 "at all."
19616 msgstr ""
19617
19618 #. type: textblock
19619 #: ../inspector/virt-inspector.pod:94
19620 msgid ""
19621 "When prompting for keys and passphrases, virt-inspector normally turns "
19622 "echoing off so you cannot see what you are typing.  If you are not worried "
19623 "about Tempest attacks and there is no one else in the room you can specify "
19624 "this flag to see what you are typing."
19625 msgstr ""
19626
19627 #. type: textblock
19628 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
19629 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
19630 #: ../tools/virt-win-reg.pl:144
19631 msgid ""
19632 "Specify the format of disk images given on the command line.  If this is "
19633 "omitted then the format is autodetected from the content of the disk image."
19634 msgstr ""
19635
19636 #. type: textblock
19637 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
19638 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
19639 #: ../tools/virt-win-reg.pl:148
19640 msgid ""
19641 "If disk images are requested from libvirt, then this program asks libvirt "
19642 "for this information.  In this case, the value of the format parameter is "
19643 "ignored."
19644 msgstr ""
19645
19646 #. type: textblock
19647 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
19648 #: ../resize/virt-resize.pod:406 ../tools/virt-list-filesystems.pl:101
19649 #: ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151
19650 #: ../tools/virt-win-reg.pl:152
19651 msgid ""
19652 "If working with untrusted raw-format guest disk images, you should ensure "
19653 "the format is always specified."
19654 msgstr ""
19655
19656 #. type: textblock
19657 #: ../inspector/virt-inspector.pod:139
19658 msgid "Previous versions of virt-inspector allowed you to write either:"
19659 msgstr ""
19660
19661 #. type: verbatim
19662 #: ../inspector/virt-inspector.pod:145
19663 #, no-wrap
19664 msgid ""
19665 " virt-inspector guestname\n"
19666 "\n"
19667 msgstr ""
19668
19669 #. type: =head1
19670 #: ../inspector/virt-inspector.pod:153
19671 msgid "XML FORMAT"
19672 msgstr ""
19673
19674 #. type: textblock
19675 #: ../inspector/virt-inspector.pod:155
19676 msgid ""
19677 "The virt-inspector XML is described precisely in a RELAX NG schema file "
19678 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
19679 "just an overview."
19680 msgstr ""
19681
19682 #. type: textblock
19683 #: ../inspector/virt-inspector.pod:159
19684 msgid ""
19685 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
19686 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
19687 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
19688 "which is vanishingly rare in real world VMs."
19689 msgstr ""
19690
19691 #. type: =head2
19692 #: ../inspector/virt-inspector.pod:164
19693 msgid "E<lt>operatingsystemE<gt>"
19694 msgstr ""
19695
19696 #. type: textblock
19697 #: ../inspector/virt-inspector.pod:166
19698 msgid ""
19699 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
19700 "describe the operating system, its architecture, the descriptive \"product "
19701 "name\" string, the type of OS and so on, as in this example:"
19702 msgstr ""
19703
19704 #. type: verbatim
19705 #: ../inspector/virt-inspector.pod:170
19706 #, no-wrap
19707 msgid ""
19708 " <operatingsystems>\n"
19709 "   <operatingsystem>\n"
19710 "     <root>/dev/sda2</root>\n"
19711 "     <name>windows</name>\n"
19712 "     <arch>i386</arch>\n"
19713 "     <distro>windows</distro>\n"
19714 "     <product_name>Windows 7 Enterprise</product_name>\n"
19715 "     <product_variant>Client</product_variant>\n"
19716 "     <major_version>6</major_version>\n"
19717 "     <minor_version>1</minor_version>\n"
19718 "     <windows_systemroot>/Windows</windows_systemroot>\n"
19719 "     <format>installed</format>\n"
19720 "\n"
19721 msgstr ""
19722
19723 #. type: textblock
19724 #: ../inspector/virt-inspector.pod:183
19725 msgid ""
19726 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
19727 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
19728 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
19729 "architecture.  The other fields are fairly self-explanatory, but because "
19730 "these fields are taken directly from the libguestfs inspection API you can "
19731 "find precise information from L<guestfs(3)/INSPECTION>."
19732 msgstr ""
19733
19734 #. type: textblock
19735 #: ../inspector/virt-inspector.pod:191
19736 msgid ""
19737 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
19738 "of view of libguestfs (block devices may have completely different names "
19739 "inside the VM itself)."
19740 msgstr ""
19741
19742 #. type: =head2
19743 #: ../inspector/virt-inspector.pod:195
19744 msgid "E<lt>mountpointsE<gt>"
19745 msgstr ""
19746
19747 #. type: textblock
19748 #: ../inspector/virt-inspector.pod:197
19749 msgid ""
19750 "Un*x-like guests typically have multiple filesystems which are mounted at "
19751 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
19752 "element which looks like this:"
19753 msgstr ""
19754
19755 #. type: verbatim
19756 #: ../inspector/virt-inspector.pod:201
19757 #, no-wrap
19758 msgid ""
19759 " <operatingsystems>\n"
19760 "   <operatingsystem>\n"
19761 "     ...\n"
19762 "     <mountpoints>\n"
19763 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
19764 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
19765 "     </mountpoints>\n"
19766 "\n"
19767 msgstr ""
19768
19769 #. type: textblock
19770 #: ../inspector/virt-inspector.pod:209
19771 msgid ""
19772 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
19773 "and may have completely different names inside the guest.  Only mountable "
19774 "filesystems appear in this list, not things like swap devices."
19775 msgstr ""
19776
19777 #. type: =head2
19778 #: ../inspector/virt-inspector.pod:214
19779 msgid "E<lt>filesystemsE<gt>"
19780 msgstr ""
19781
19782 #. type: textblock
19783 #: ../inspector/virt-inspector.pod:216
19784 msgid ""
19785 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
19786 "filesystems belonging to the guest, including swap and empty partitions.  "
19787 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
19788 "this OS or shared with this OS and other OSes)."
19789 msgstr ""
19790
19791 #. type: textblock
19792 #: ../inspector/virt-inspector.pod:222
19793 msgid "You might see something like this:"
19794 msgstr ""
19795
19796 #. type: verbatim
19797 #: ../inspector/virt-inspector.pod:224
19798 #, no-wrap
19799 msgid ""
19800 " <operatingsystems>\n"
19801 "   <operatingsystem>\n"
19802 "     ...\n"
19803 "     <filesystems>\n"
19804 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
19805 "         <type>ext4</type>\n"
19806 "         <label>Fedora-13-x86_64</label>\n"
19807 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
19808 "       </filesystem>\n"
19809 "\n"
19810 msgstr ""
19811
19812 #. type: textblock
19813 #: ../inspector/virt-inspector.pod:234
19814 msgid ""
19815 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
19816 "the label, and the UUID."
19817 msgstr ""
19818
19819 #. type: =head2
19820 #: ../inspector/virt-inspector.pod:237
19821 msgid "E<lt>applicationsE<gt>"
19822 msgstr ""
19823
19824 #. type: textblock
19825 #: ../inspector/virt-inspector.pod:239
19826 msgid ""
19827 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
19828 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
19829 "machine."
19830 msgstr ""
19831
19832 #. type: textblock
19833 #: ../inspector/virt-inspector.pod:243
19834 msgid ""
19835 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
19836 "Typical values would be C<rpm> and C<deb>."
19837 msgstr ""
19838
19839 #. type: textblock
19840 #: ../inspector/virt-inspector.pod:246
19841 msgid ""
19842 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
19843 "Typical values include C<yum>, C<up2date> and C<apt>"
19844 msgstr ""
19845
19846 #. type: textblock
19847 #: ../inspector/virt-inspector.pod:249
19848 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
19849 msgstr ""
19850
19851 #. type: verbatim
19852 #: ../inspector/virt-inspector.pod:252
19853 #, no-wrap
19854 msgid ""
19855 " <operatingsystems>\n"
19856 "   <operatingsystem>\n"
19857 "     ...\n"
19858 "     <applications>\n"
19859 "       <application>\n"
19860 "         <name>coreutils</name>\n"
19861 "         <version>8.5</version>\n"
19862 "         <release>1</release>\n"
19863 "       </application>\n"
19864 "\n"
19865 msgstr ""
19866
19867 #. type: textblock
19868 #: ../inspector/virt-inspector.pod:262
19869 msgid ""
19870 "The version and release fields may not be available for some types guests.  "
19871 "Other fields are possible, see L<guestfs(3)/"
19872 "guestfs_inspect_list_applications>."
19873 msgstr ""
19874
19875 #. type: =head2
19876 #: ../inspector/virt-inspector.pod:266
19877 msgid "E<lt>drive_mappingsE<gt>"
19878 msgstr ""
19879
19880 #. type: textblock
19881 #: ../inspector/virt-inspector.pod:268
19882 msgid ""
19883 "For operating systems like Windows which use drive letters, virt-inspector "
19884 "is able to find out how drive letters map to filesystems."
19885 msgstr ""
19886
19887 #. type: verbatim
19888 #: ../inspector/virt-inspector.pod:272
19889 #, no-wrap
19890 msgid ""
19891 " <operatingsystems>\n"
19892 "   <operatingsystem>\n"
19893 "     ...\n"
19894 "     <drive_mappings>\n"
19895 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
19896 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
19897 "     </drive_mappings>\n"
19898 "\n"
19899 msgstr ""
19900
19901 #. type: textblock
19902 #: ../inspector/virt-inspector.pod:280
19903 msgid ""
19904 "In the example above, drive C maps to the filesystem on the second partition "
19905 "on the first disk, and drive E maps to the filesystem on the first partition "
19906 "on the second disk."
19907 msgstr ""
19908
19909 #. type: textblock
19910 #: ../inspector/virt-inspector.pod:284
19911 msgid ""
19912 "Note that this only covers permanent local filesystem mappings, not things "
19913 "like network shares.  Furthermore NTFS volume mount points may not be listed "
19914 "here."
19915 msgstr ""
19916
19917 #. type: =head2
19918 #: ../inspector/virt-inspector.pod:288
19919 msgid "E<lt>iconE<gt>"
19920 msgstr ""
19921
19922 #. type: textblock
19923 #: ../inspector/virt-inspector.pod:290
19924 msgid ""
19925 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
19926 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
19927 "very large and high quality."
19928 msgstr ""
19929
19930 #. type: verbatim
19931 #: ../inspector/virt-inspector.pod:294
19932 #, no-wrap
19933 msgid ""
19934 " <operatingsystems>\n"
19935 "   <operatingsystem>\n"
19936 "     ...\n"
19937 "     <icon>\n"
19938 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
19939 "       [... many lines of base64 data ...]\n"
19940 "     </icon>\n"
19941 "\n"
19942 msgstr ""
19943
19944 #. type: textblock
19945 #: ../inspector/virt-inspector.pod:302
19946 msgid ""
19947 "To display the icon, you have to extract it and convert the base64 data back "
19948 "to a binary file.  Use an XPath query or simply an editor to extract the "
19949 "data, then use the coreutils L<base64(1)> program to do the conversion back "
19950 "to a PNG file:"
19951 msgstr ""
19952
19953 #. type: verbatim
19954 #: ../inspector/virt-inspector.pod:307
19955 #, no-wrap
19956 msgid ""
19957 " base64 -i -d < icon.data > icon.png\n"
19958 "\n"
19959 msgstr ""
19960
19961 #. type: =head2
19962 #: ../inspector/virt-inspector.pod:309
19963 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
19964 msgstr ""
19965
19966 #. type: textblock
19967 #: ../inspector/virt-inspector.pod:311
19968 msgid ""
19969 "Virt-inspector can detect some operating system installers on install disks, "
19970 "live CDs, bootable USB keys and more."
19971 msgstr ""
19972
19973 #. type: textblock
19974 #: ../inspector/virt-inspector.pod:314
19975 msgid ""
19976 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
19977 "fields may be present to indicate a live CD, network installer, or one part "
19978 "of a multipart CD.  For example:"
19979 msgstr ""
19980
19981 #. type: verbatim
19982 #: ../inspector/virt-inspector.pod:318
19983 #, no-wrap
19984 msgid ""
19985 " <operatingsystems>\n"
19986 "   <operatingsystem>\n"
19987 "     <root>/dev/sda</root>\n"
19988 "     <name>linux</name>\n"
19989 "     <arch>i386</arch>\n"
19990 "     <distro>ubuntu</distro>\n"
19991 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
19992 "     <major_version>10</major_version>\n"
19993 "     <minor_version>10</minor_version>\n"
19994 "     <format>installer</format>\n"
19995 "     <live/>\n"
19996 "\n"
19997 msgstr ""
19998
19999 #. type: =head1
20000 #: ../inspector/virt-inspector.pod:330
20001 msgid "USING XPATH"
20002 msgstr ""
20003
20004 #. type: textblock
20005 #: ../inspector/virt-inspector.pod:332
20006 msgid ""
20007 "You can use the XPath query language to select parts of the XML.  We "
20008 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
20009 msgstr ""
20010
20011 #. type: verbatim
20012 #: ../inspector/virt-inspector.pod:338
20013 #, no-wrap
20014 msgid ""
20015 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
20016 " <filesystems>\n"
20017 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20018 "        <type>ext4</type>\n"
20019 " [...]\n"
20020 "\n"
20021 msgstr ""
20022
20023 #. type: verbatim
20024 #: ../inspector/virt-inspector.pod:344
20025 #, no-wrap
20026 msgid ""
20027 " $ virt-inspector -d Guest | \\\n"
20028 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
20029 " ext4\n"
20030 "\n"
20031 msgstr ""
20032
20033 #. type: verbatim
20034 #: ../inspector/virt-inspector.pod:348
20035 #, no-wrap
20036 msgid ""
20037 " $ virt-inspector -d Guest | \\\n"
20038 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
20039 " [displays the guest icon, if there is one]\n"
20040 "\n"
20041 msgstr ""
20042
20043 #. type: =head1
20044 #: ../inspector/virt-inspector.pod:359
20045 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
20046 msgstr ""
20047
20048 #. type: textblock
20049 #: ../inspector/virt-inspector.pod:361
20050 msgid ""
20051 "Early versions of libguestfs shipped with a different virt-inspector program "
20052 "written in Perl (the current version is written in C).  The XML output of "
20053 "the Perl virt-inspector was different and it could also output in other "
20054 "formats like text."
20055 msgstr ""
20056
20057 #. type: textblock
20058 #: ../inspector/virt-inspector.pod:366
20059 msgid ""
20060 "The old virt-inspector is no longer supported or shipped with libguestfs."
20061 msgstr ""
20062
20063 #. type: textblock
20064 #: ../inspector/virt-inspector.pod:369
20065 msgid ""
20066 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
20067 "versions of virt-inspector with different names:"
20068 msgstr ""
20069
20070 #. type: verbatim
20071 #: ../inspector/virt-inspector.pod:372
20072 #, no-wrap
20073 msgid ""
20074 " virt-inspector     Old Perl version.\n"
20075 " virt-inspector2    New C version.\n"
20076 "\n"
20077 msgstr ""
20078
20079 #. type: textblock
20080 #: ../inspector/virt-inspector.pod:382
20081 msgid ""
20082 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
20083 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
20084 msgstr ""
20085
20086 #. type: textblock
20087 #: ../inspector/virt-inspector.pod:399
20088 msgid "Matthew Booth L<mbooth@redhat.com>"
20089 msgstr ""
20090
20091 #. type: textblock
20092 #: ../java/examples/guestfs-java.pod:5
20093 msgid "guestfs-java - How to use libguestfs from Java"
20094 msgstr ""
20095
20096 #. type: verbatim
20097 #: ../java/examples/guestfs-java.pod:9
20098 #, no-wrap
20099 msgid ""
20100 " import com.redhat.et.libguestfs.*;\n"
20101 " \n"
20102 msgstr ""
20103
20104 #. type: verbatim
20105 #: ../java/examples/guestfs-java.pod:11
20106 #, no-wrap
20107 msgid ""
20108 " GuestFS g = new GuestFS ();\n"
20109 " g.add_drive_opts (\"disk.img\", null);\n"
20110 " g.launch ();\n"
20111 "\n"
20112 msgstr ""
20113
20114 #. type: textblock
20115 #: ../java/examples/guestfs-java.pod:17
20116 msgid ""
20117 "This manual page documents how to call libguestfs from the Java programming "
20118 "language.  This page just documents the differences from the C API and gives "
20119 "some examples.  If you are not familiar with using libguestfs, you also need "
20120 "to read L<guestfs(3)>."
20121 msgstr ""
20122
20123 #. type: =head2
20124 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
20125 msgid "CLOSING THE HANDLE"
20126 msgstr ""
20127
20128 #. type: textblock
20129 #: ../java/examples/guestfs-java.pod:24
20130 msgid ""
20131 "The handle is closed when it is reaped by the garbage collector.  Because "
20132 "libguestfs handles include a lot of state, it is also possible to close (and "
20133 "hence free) them explicitly by calling the C<close> method."
20134 msgstr ""
20135
20136 #. type: =head2
20137 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
20138 #: ../python/examples/guestfs-python.pod:21
20139 #: ../ruby/examples/guestfs-ruby.pod:22
20140 msgid "EXCEPTIONS"
20141 msgstr ""
20142
20143 #. type: textblock
20144 #: ../java/examples/guestfs-java.pod:31
20145 msgid ""
20146 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
20147 "exception.  This has a single parameter which is the error message (a "
20148 "C<String>)."
20149 msgstr ""
20150
20151 #. type: textblock
20152 #: ../java/examples/guestfs-java.pod:35
20153 msgid "Calling any method on a closed handle raises the same exception."
20154 msgstr ""
20155
20156 #. type: textblock
20157 #: ../java/examples/guestfs-java.pod:47
20158 msgid ""
20159 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)"
20160 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
20161 "libguestfs.org/>, L<http://caml.inria.fr/>."
20162 msgstr ""
20163
20164 #. type: textblock
20165 #: ../java/examples/guestfs-java.pod:63 ../perl/examples/guestfs-perl.pod:57
20166 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
20167 msgstr ""
20168
20169 #. type: textblock
20170 #: ../ocaml/examples/guestfs-ocaml.pod:5
20171 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
20172 msgstr ""
20173
20174 #. type: textblock
20175 #: ../ocaml/examples/guestfs-ocaml.pod:9
20176 msgid "Module style:"
20177 msgstr ""
20178
20179 #. type: verbatim
20180 #: ../ocaml/examples/guestfs-ocaml.pod:11
20181 #, no-wrap
20182 msgid ""
20183 " let g = Guestfs.create () in\n"
20184 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
20185 " Guestfs.launch g;\n"
20186 "\n"
20187 msgstr ""
20188
20189 #. type: textblock
20190 #: ../ocaml/examples/guestfs-ocaml.pod:15
20191 msgid "Object-oriented style:"
20192 msgstr ""
20193
20194 #. type: verbatim
20195 #: ../ocaml/examples/guestfs-ocaml.pod:17
20196 #, no-wrap
20197 msgid ""
20198 " let g = new Guestfs.guestfs () in\n"
20199 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
20200 " g#launch ();\n"
20201 "\n"
20202 msgstr ""
20203
20204 #. type: verbatim
20205 #: ../ocaml/examples/guestfs-ocaml.pod:21
20206 #, no-wrap
20207 msgid ""
20208 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
20209 "or:\n"
20210 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
20211 "\n"
20212 msgstr ""
20213
20214 #. type: textblock
20215 #: ../ocaml/examples/guestfs-ocaml.pod:27
20216 msgid ""
20217 "This manual page documents how to call libguestfs from the OCaml programming "
20218 "language.  This page just documents the differences from the C API and gives "
20219 "some examples.  If you are not familiar with using libguestfs, you also need "
20220 "to read L<guestfs(3)>."
20221 msgstr ""
20222
20223 #. type: =head2
20224 #: ../ocaml/examples/guestfs-ocaml.pod:32
20225 msgid "PROGRAMMING STYLES"
20226 msgstr ""
20227
20228 #. type: textblock
20229 #: ../ocaml/examples/guestfs-ocaml.pod:34
20230 msgid ""
20231 "There are two different programming styles supported by the OCaml bindings.  "
20232 "You can use a module style, with each C function mapped to an OCaml function:"
20233 msgstr ""
20234
20235 #. type: verbatim
20236 #: ../ocaml/examples/guestfs-ocaml.pod:38
20237 #, no-wrap
20238 msgid ""
20239 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
20240 "\n"
20241 msgstr ""
20242
20243 #. type: textblock
20244 #: ../ocaml/examples/guestfs-ocaml.pod:40
20245 msgid "becomes:"
20246 msgstr ""
20247
20248 #. type: verbatim
20249 #: ../ocaml/examples/guestfs-ocaml.pod:42
20250 #, no-wrap
20251 msgid ""
20252 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
20253 "\n"
20254 msgstr ""
20255
20256 #. type: textblock
20257 #: ../ocaml/examples/guestfs-ocaml.pod:44
20258 msgid ""
20259 "Alternately you can use an object-oriented style, calling methods on the "
20260 "class C<Guestfs.guestfs>:"
20261 msgstr ""
20262
20263 #. type: verbatim
20264 #: ../ocaml/examples/guestfs-ocaml.pod:47
20265 #, no-wrap
20266 msgid ""
20267 " method set_verbose : bool -> unit\n"
20268 "\n"
20269 msgstr ""
20270
20271 #. type: textblock
20272 #: ../ocaml/examples/guestfs-ocaml.pod:49
20273 msgid ""
20274 "The object-oriented style is usually briefer, and the minor performance "
20275 "penalty isn't noticable in the general overhead of performing libguestfs "
20276 "functions."
20277 msgstr ""
20278
20279 #. type: textblock
20280 #: ../ocaml/examples/guestfs-ocaml.pod:55
20281 msgid ""
20282 "The handle is closed when it is reaped by the garbage collector.  Because "
20283 "libguestfs handles include a lot of state, it is also possible to close (and "
20284 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
20285 "method."
20286 msgstr ""
20287
20288 #. type: textblock
20289 #: ../ocaml/examples/guestfs-ocaml.pod:62
20290 msgid ""
20291 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
20292 "exception.  This has a single parameter which is the error message (a "
20293 "string)."
20294 msgstr ""
20295
20296 #. type: textblock
20297 #: ../ocaml/examples/guestfs-ocaml.pod:66
20298 msgid ""
20299 "Calling any function/method on a closed handle raises C<Guestfs."
20300 "Handle_closed>.  The single parameter is the name of the function that you "
20301 "called."
20302 msgstr ""
20303
20304 #. type: textblock
20305 #: ../ocaml/examples/guestfs-ocaml.pod:80
20306 msgid ""
20307 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-perl(3)"
20308 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
20309 "libguestfs.org/>, L<http://caml.inria.fr/>."
20310 msgstr ""
20311
20312 #. type: textblock
20313 #: ../perl/examples/guestfs-perl.pod:5
20314 msgid "guestfs-perl - How to use libguestfs from Perl"
20315 msgstr ""
20316
20317 #. type: verbatim
20318 #: ../perl/examples/guestfs-perl.pod:9
20319 #, no-wrap
20320 msgid ""
20321 " use Sys::Guestfs;\n"
20322 " \n"
20323 msgstr ""
20324
20325 #. type: verbatim
20326 #: ../perl/examples/guestfs-perl.pod:11
20327 #, no-wrap
20328 msgid ""
20329 " my $h = Sys::Guestfs->new ();\n"
20330 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
20331 " $h->launch ();\n"
20332 " $h->mount_options ('', '/dev/sda1', '/');\n"
20333 " $h->touch ('/hello');\n"
20334 " $h->sync ();\n"
20335 "\n"
20336 msgstr ""
20337
20338 #. type: textblock
20339 #: ../perl/examples/guestfs-perl.pod:20
20340 msgid ""
20341 "This manual page documents how to call libguestfs from the Perl programming "
20342 "language.  This page just documents the differences from the C API and gives "
20343 "some examples.  If you are not familiar with using libguestfs, you also need "
20344 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
20345 msgstr ""
20346
20347 #. type: =head2
20348 #: ../perl/examples/guestfs-perl.pod:26
20349 msgid "ERRORS"
20350 msgstr ""
20351
20352 #. type: textblock
20353 #: ../perl/examples/guestfs-perl.pod:28
20354 msgid ""
20355 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
20356 ">)."
20357 msgstr ""
20358
20359 #. type: textblock
20360 #: ../perl/examples/guestfs-perl.pod:41
20361 msgid ""
20362 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)"
20363 ">, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
20364 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
20365 msgstr ""
20366
20367 #. type: textblock
20368 #: ../python/examples/guestfs-python.pod:5
20369 msgid "guestfs-python - How to use libguestfs from Python"
20370 msgstr ""
20371
20372 #. type: verbatim
20373 #: ../python/examples/guestfs-python.pod:9
20374 #, no-wrap
20375 msgid ""
20376 " import guestfs\n"
20377 " g = guestfs.GuestFS ()\n"
20378 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
20379 " g.launch\n"
20380 "\n"
20381 msgstr ""
20382
20383 #. type: textblock
20384 #: ../python/examples/guestfs-python.pod:16
20385 msgid ""
20386 "This manual page documents how to call libguestfs from the Python "
20387 "programming language.  This page just documents the differences from the C "
20388 "API and gives some examples.  If you are not familiar with using libguestfs, "
20389 "you also need to read L<guestfs(3)>."
20390 msgstr ""
20391
20392 #. type: textblock
20393 #: ../python/examples/guestfs-python.pod:23
20394 msgid ""
20395 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
20396 "single string argument which is the error message."
20397 msgstr ""
20398
20399 #. type: =head2
20400 #: ../python/examples/guestfs-python.pod:26
20401 msgid "MORE DOCUMENTATION"
20402 msgstr ""
20403
20404 #. type: textblock
20405 #: ../python/examples/guestfs-python.pod:28
20406 msgid "Type:"
20407 msgstr ""
20408
20409 #. type: verbatim
20410 #: ../python/examples/guestfs-python.pod:30
20411 #, no-wrap
20412 msgid ""
20413 " $ python\n"
20414 " >>> import guestfs\n"
20415 " >>> help (guestfs)\n"
20416 "\n"
20417 msgstr ""
20418
20419 #. type: textblock
20420 #: ../python/examples/guestfs-python.pod:44
20421 msgid ""
20422 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
20423 ">, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
20424 "libguestfs.org/>."
20425 msgstr ""
20426
20427 #. type: textblock
20428 #: ../rescue/virt-rescue.pod:5
20429 msgid "virt-rescue - Run a rescue shell on a virtual machine"
20430 msgstr ""
20431
20432 #. type: verbatim
20433 #: ../rescue/virt-rescue.pod:9
20434 #, no-wrap
20435 msgid ""
20436 " virt-rescue [--options] -d domname\n"
20437 "\n"
20438 msgstr ""
20439
20440 #. type: verbatim
20441 #: ../rescue/virt-rescue.pod:11
20442 #, no-wrap
20443 msgid ""
20444 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
20445 "\n"
20446 msgstr ""
20447
20448 #. type: verbatim
20449 #: ../rescue/virt-rescue.pod:15
20450 #, no-wrap
20451 msgid ""
20452 " virt-rescue [--options] domname\n"
20453 "\n"
20454 msgstr ""
20455
20456 #. type: verbatim
20457 #: ../rescue/virt-rescue.pod:17
20458 #, no-wrap
20459 msgid ""
20460 " virt-rescue [--options] disk.img [disk.img ...]\n"
20461 "\n"
20462 msgstr ""
20463
20464 #. type: textblock
20465 #: ../rescue/virt-rescue.pod:21
20466 msgid ""
20467 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
20468 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
20469 "you from doing this, but doesn't catch all cases."
20470 msgstr ""
20471
20472 #. type: textblock
20473 #: ../rescue/virt-rescue.pod:25
20474 msgid ""
20475 "However if you use the I<--ro> (read only) option, then you can attach a "
20476 "shell to a live virtual machine.  The results might be strange or "
20477 "inconsistent at times but you won't get disk corruption."
20478 msgstr ""
20479
20480 #. type: textblock
20481 #: ../rescue/virt-rescue.pod:31
20482 msgid ""
20483 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
20484 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
20485 "recovery tools which you can use to examine or rescue a virtual machine or "
20486 "disk image."
20487 msgstr ""
20488
20489 #. type: textblock
20490 #: ../rescue/virt-rescue.pod:36
20491 msgid ""
20492 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
20493 "on disk image(s):"
20494 msgstr ""
20495
20496 #. type: verbatim
20497 #: ../rescue/virt-rescue.pod:39
20498 #, no-wrap
20499 msgid ""
20500 " virt-rescue -d GuestName\n"
20501 "\n"
20502 msgstr ""
20503
20504 #. type: verbatim
20505 #: ../rescue/virt-rescue.pod:41
20506 #, no-wrap
20507 msgid ""
20508 " virt-rescue --ro -a /path/to/disk.img\n"
20509 "\n"
20510 msgstr ""
20511
20512 #. type: verbatim
20513 #: ../rescue/virt-rescue.pod:43
20514 #, no-wrap
20515 msgid ""
20516 " virt-rescue -a /dev/sdc\n"
20517 "\n"
20518 msgstr ""
20519
20520 #. type: textblock
20521 #: ../rescue/virt-rescue.pod:45
20522 msgid "For live VMs you I<must> use the --ro option."
20523 msgstr ""
20524
20525 #. type: textblock
20526 #: ../rescue/virt-rescue.pod:47
20527 msgid ""
20528 "When you run virt-rescue on a virtual machine or disk image, you are placed "
20529 "in an interactive bash shell where you can use many ordinary Linux "
20530 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
20531 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
20532 "is an empty directory called C</sysroot> where you can mount filesystems."
20533 msgstr ""
20534
20535 #. type: textblock
20536 #: ../rescue/virt-rescue.pod:54
20537 msgid ""
20538 "In the example below, we list logical volumes, then choose one to mount "
20539 "under C</sysroot>:"
20540 msgstr ""
20541
20542 #. type: verbatim
20543 #: ../rescue/virt-rescue.pod:57
20544 #, no-wrap
20545 msgid ""
20546 " ><rescue> lvs\n"
20547 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
20548 " lv_root vg_f11x64 -wi-a-   8.83G\n"
20549 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
20550 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
20551 " ><rescue> ls /sysroot\n"
20552 "\n"
20553 msgstr ""
20554
20555 #. type: textblock
20556 #: ../rescue/virt-rescue.pod:64
20557 msgid ""
20558 "If you don't know what filesystems are available on the virtual machine then "
20559 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
20560 msgstr ""
20561
20562 #. type: textblock
20563 #: ../rescue/virt-rescue.pod:70
20564 msgid ""
20565 "Virt-rescue can be used on I<any> disk image file or device, not just a "
20566 "virtual machine.  For example you can use it on a blank file if you want to "
20567 "partition that file (although we would recommend using L<guestfish(1)> "
20568 "instead as it is more suitable for this purpose).  You can even use virt-"
20569 "rescue on things like SD cards."
20570 msgstr ""
20571
20572 #. type: textblock
20573 #: ../rescue/virt-rescue.pod:76
20574 msgid ""
20575 "Virt-rescue does not require root.  You only need to run it as root if you "
20576 "need root to open the disk image."
20577 msgstr ""
20578
20579 #. type: textblock
20580 #: ../rescue/virt-rescue.pod:79
20581 msgid ""
20582 "This tool is just designed for quick interactive hacking on a virtual "
20583 "machine.  For more structured access to a virtual machine disk image, you "
20584 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
20585 "make scripted changes to guests, use L<guestfish(1)>."
20586 msgstr ""
20587
20588 #. type: =item
20589 #: ../rescue/virt-rescue.pod:103
20590 msgid "B<--append kernelopts>"
20591 msgstr ""
20592
20593 #. type: textblock
20594 #: ../rescue/virt-rescue.pod:105
20595 msgid "Pass additional options to the rescue kernel."
20596 msgstr ""
20597
20598 #. type: verbatim
20599 #: ../rescue/virt-rescue.pod:135
20600 #, no-wrap
20601 msgid ""
20602 " virt-rescue --format=raw -a disk.img\n"
20603 "\n"
20604 msgstr ""
20605
20606 #. type: verbatim
20607 #: ../rescue/virt-rescue.pod:139
20608 #, no-wrap
20609 msgid ""
20610 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
20611 "\n"
20612 msgstr ""
20613
20614 #. type: =item
20615 #: ../rescue/virt-rescue.pod:148
20616 msgid "B<-m MB>"
20617 msgstr ""
20618
20619 #. type: =item
20620 #: ../rescue/virt-rescue.pod:150
20621 msgid "B<--memsize MB>"
20622 msgstr ""
20623
20624 #. type: textblock
20625 #: ../rescue/virt-rescue.pod:152
20626 msgid ""
20627 "Change the amount of memory allocated to the rescue system.  The default is "
20628 "set by libguestfs and is small but adequate for running system tools.  The "
20629 "occasional program might need more memory.  The parameter is specified in "
20630 "megabytes."
20631 msgstr ""
20632
20633 #. type: =item
20634 #: ../rescue/virt-rescue.pod:157
20635 msgid "B<--network>"
20636 msgstr ""
20637
20638 #. type: textblock
20639 #: ../rescue/virt-rescue.pod:159
20640 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
20641 msgstr ""
20642
20643 #. type: textblock
20644 #: ../rescue/virt-rescue.pod:165
20645 msgid "Open the image read-only."
20646 msgstr ""
20647
20648 #. type: textblock
20649 #: ../rescue/virt-rescue.pod:175
20650 msgid ""
20651 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
20652 "SELINUX> before using this option."
20653 msgstr ""
20654
20655 #. type: textblock
20656 #: ../rescue/virt-rescue.pod:194
20657 msgid ""
20658 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
20659 "are done read-write."
20660 msgstr ""
20661
20662 #. type: textblock
20663 #: ../rescue/virt-rescue.pod:207
20664 msgid "Previous versions of virt-rescue allowed you to write either:"
20665 msgstr ""
20666
20667 #. type: verbatim
20668 #: ../rescue/virt-rescue.pod:209
20669 #, no-wrap
20670 msgid ""
20671 " virt-rescue disk.img [disk.img ...]\n"
20672 "\n"
20673 msgstr ""
20674
20675 #. type: verbatim
20676 #: ../rescue/virt-rescue.pod:213
20677 #, no-wrap
20678 msgid ""
20679 " virt-rescue guestname\n"
20680 "\n"
20681 msgstr ""
20682
20683 #. type: =head1
20684 #: ../rescue/virt-rescue.pod:221
20685 msgid "NETWORK"
20686 msgstr ""
20687
20688 #. type: textblock
20689 #: ../rescue/virt-rescue.pod:223
20690 msgid ""
20691 "Adding the I<--network> option enables QEMU user networking in the rescue "
20692 "appliance.  There are some differences between user networking and ordinary "
20693 "networking:"
20694 msgstr ""
20695
20696 #. type: =item
20697 #: ../rescue/virt-rescue.pod:229
20698 msgid "ping does not work"
20699 msgstr ""
20700
20701 #. type: textblock
20702 #: ../rescue/virt-rescue.pod:231
20703 msgid ""
20704 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
20705 "send the ping packets, and because virt-rescue must be able to run as non-"
20706 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
20707 "The ping command will appear to resolve addresses but will not be able to "
20708 "send or receive any packets.  This does not mean that the network is not "
20709 "working."
20710 msgstr ""
20711
20712 #. type: =item
20713 #: ../rescue/virt-rescue.pod:238
20714 msgid "cannot receive connections"
20715 msgstr ""
20716
20717 #. type: textblock
20718 #: ../rescue/virt-rescue.pod:240
20719 msgid "QEMU user networking cannot receive incoming connections."
20720 msgstr ""
20721
20722 #. type: =item
20723 #: ../rescue/virt-rescue.pod:242
20724 msgid "making TCP connections"
20725 msgstr ""
20726
20727 #. type: textblock
20728 #: ../rescue/virt-rescue.pod:244
20729 msgid ""
20730 "The virt-rescue appliance needs to be small and so does not include many "
20731 "network tools.  In particular there is no L<telnet(1)> command.  You can "
20732 "make TCP connections from the shell using the magical C</dev/tcp/"
20733 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
20734 msgstr ""
20735
20736 #. type: verbatim
20737 #: ../rescue/virt-rescue.pod:249
20738 #, no-wrap
20739 msgid ""
20740 " exec 3<>/dev/tcp/redhat.com/80\n"
20741 " echo \"GET /\" >&3\n"
20742 " cat <&3\n"
20743 "\n"
20744 msgstr ""
20745
20746 #. type: textblock
20747 #: ../rescue/virt-rescue.pod:253
20748 msgid "See L<bash(1)> for more details."
20749 msgstr ""
20750
20751 #. type: textblock
20752 #: ../rescue/virt-rescue.pod:259
20753 msgid ""
20754 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
20755 "ENVIRONMENT VARIABLES> for the complete list."
20756 msgstr ""
20757
20758 #. type: textblock
20759 #: ../rescue/virt-rescue.pod:286
20760 msgid ""
20761 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
20762 "libguestfs.org/>."
20763 msgstr ""
20764
20765 #. type: textblock
20766 #: ../resize/virt-resize.pod:5
20767 msgid "virt-resize - Resize a virtual machine disk"
20768 msgstr ""
20769
20770 #. type: verbatim
20771 #: ../resize/virt-resize.pod:9
20772 #, no-wrap
20773 msgid ""
20774 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
20775 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
20776 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
20777 "\n"
20778 msgstr ""
20779
20780 #. type: textblock
20781 #: ../resize/virt-resize.pod:15
20782 msgid ""
20783 "Virt-resize is a tool which can resize a virtual machine disk, making it "
20784 "larger or smaller overall, and resizing or deleting any partitions contained "
20785 "within."
20786 msgstr ""
20787
20788 #. type: textblock
20789 #: ../resize/virt-resize.pod:19
20790 msgid ""
20791 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
20792 "not> be used on live virtual machines - for consistent results, shut the "
20793 "virtual machine down before resizing it."
20794 msgstr ""
20795
20796 #. type: textblock
20797 #: ../resize/virt-resize.pod:23
20798 msgid ""
20799 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
20800 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
20801 msgstr ""
20802
20803 #. type: =item
20804 #: ../resize/virt-resize.pod:31 ../src/guestfs.pod:469 ../src/guestfs.pod:1280
20805 #: ../src/guestfs.pod:1418 ../src/guestfs.pod:2581
20806 msgid "1."
20807 msgstr ""
20808
20809 #. type: textblock
20810 #: ../resize/virt-resize.pod:33
20811 msgid ""
20812 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
20813 "fill the extra 5GB of space."
20814 msgstr ""
20815
20816 #. type: verbatim
20817 #: ../resize/virt-resize.pod:36
20818 #, no-wrap
20819 msgid ""
20820 " virt-filesystems --long -h --all -a olddisk\n"
20821 " \n"
20822 msgstr ""
20823
20824 #. type: verbatim
20825 #: ../resize/virt-resize.pod:38
20826 #, no-wrap
20827 msgid ""
20828 " truncate -r olddisk newdisk\n"
20829 " truncate -s +5G newdisk\n"
20830 " \n"
20831 msgstr ""
20832
20833 #. type: verbatim
20834 #: ../resize/virt-resize.pod:41
20835 #, no-wrap
20836 msgid ""
20837 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
20838 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
20839 "\n"
20840 msgstr ""
20841
20842 #. type: =item
20843 #: ../resize/virt-resize.pod:44 ../src/guestfs.pod:475 ../src/guestfs.pod:1284
20844 #: ../src/guestfs.pod:1422 ../src/guestfs.pod:2606
20845 msgid "2."
20846 msgstr ""
20847
20848 #. type: textblock
20849 #: ../resize/virt-resize.pod:46
20850 msgid ""
20851 "As above, but make the /boot partition 200MB bigger, while giving the "
20852 "remaining space to /dev/sda2:"
20853 msgstr ""
20854
20855 #. type: verbatim
20856 #: ../resize/virt-resize.pod:49
20857 #, no-wrap
20858 msgid ""
20859 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
20860 "   olddisk newdisk\n"
20861 "\n"
20862 msgstr ""
20863
20864 #. type: =item
20865 #: ../resize/virt-resize.pod:52 ../src/guestfs.pod:486 ../src/guestfs.pod:1428
20866 msgid "3."
20867 msgstr ""
20868
20869 #. type: textblock
20870 #: ../resize/virt-resize.pod:54
20871 msgid ""
20872 "As in the first example, but expand a logical volume as the final step.  "
20873 "This is what you would typically use for Linux guests that use LVM:"
20874 msgstr ""
20875
20876 #. type: verbatim
20877 #: ../resize/virt-resize.pod:58
20878 #, no-wrap
20879 msgid ""
20880 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
20881 "   olddisk newdisk\n"
20882 "\n"
20883 msgstr ""
20884
20885 #. type: =item
20886 #: ../resize/virt-resize.pod:61
20887 msgid "4."
20888 msgstr ""
20889
20890 #. type: textblock
20891 #: ../resize/virt-resize.pod:63
20892 msgid ""
20893 "As in the first example, but the output format will be qcow2 instead of a "
20894 "raw disk:"
20895 msgstr ""
20896
20897 #. type: verbatim
20898 #: ../resize/virt-resize.pod:66
20899 #, no-wrap
20900 msgid ""
20901 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
20902 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
20903 "\n"
20904 msgstr ""
20905
20906 #. type: =head1
20907 #: ../resize/virt-resize.pod:71
20908 msgid "DETAILED USAGE"
20909 msgstr ""
20910
20911 #. type: =head2
20912 #: ../resize/virt-resize.pod:73
20913 msgid "EXPANDING A VIRTUAL MACHINE DISK"
20914 msgstr ""
20915
20916 #. type: =item
20917 #: ../resize/virt-resize.pod:77
20918 msgid "1. Shut down the virtual machine"
20919 msgstr ""
20920
20921 #. type: =item
20922 #: ../resize/virt-resize.pod:79
20923 msgid "2. Locate input disk image"
20924 msgstr ""
20925
20926 #. type: textblock
20927 #: ../resize/virt-resize.pod:81
20928 msgid ""
20929 "Locate the input disk image (ie. the file or device on the host containing "
20930 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
20931 "dumpxml> like this to find the disk image name:"
20932 msgstr ""
20933
20934 #. type: verbatim
20935 #: ../resize/virt-resize.pod:85
20936 #, no-wrap
20937 msgid ""
20938 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
20939 " Found 1 nodes:\n"
20940 " -- NODE --\n"
20941 " <source dev=\"/dev/vg/lv_guest\" />\n"
20942 "\n"
20943 msgstr ""
20944
20945 #. type: =item
20946 #: ../resize/virt-resize.pod:90
20947 msgid "3. Look at current sizing"
20948 msgstr ""
20949
20950 #. type: textblock
20951 #: ../resize/virt-resize.pod:92
20952 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
20953 msgstr ""
20954
20955 #. type: verbatim
20956 #: ../resize/virt-resize.pod:95
20957 #, no-wrap
20958 msgid ""
20959 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
20960 " Name       Type       Size  Parent\n"
20961 " /dev/sda1  partition  101M  /dev/sda\n"
20962 " /dev/sda2  partition  7.9G  /dev/sda\n"
20963 " /dev/sda   device     8.0G  -\n"
20964 "\n"
20965 msgstr ""
20966
20967 #. type: textblock
20968 #: ../resize/virt-resize.pod:101
20969 msgid ""
20970 "(This example is a virtual machine with an 8 GB disk which we would like to "
20971 "expand up to 10 GB)."
20972 msgstr ""
20973
20974 #. type: =item
20975 #: ../resize/virt-resize.pod:104
20976 msgid "4. Create output disk"
20977 msgstr ""
20978
20979 #. type: textblock
20980 #: ../resize/virt-resize.pod:106
20981 msgid ""
20982 "Virt-resize cannot do in-place disk modifications.  You have to have space "
20983 "to store the resized output disk."
20984 msgstr ""
20985
20986 #. type: textblock
20987 #: ../resize/virt-resize.pod:109
20988 msgid ""
20989 "To store the resized disk image in a file, create a file of a suitable size:"
20990 msgstr ""
20991
20992 #. type: verbatim
20993 #: ../resize/virt-resize.pod:112
20994 #, no-wrap
20995 msgid ""
20996 " # rm -f outdisk\n"
20997 " # truncate -s 10G outdisk\n"
20998 "\n"
20999 msgstr ""
21000
21001 #. type: textblock
21002 #: ../resize/virt-resize.pod:115
21003 msgid "Or use L<lvcreate(1)> to create a logical volume:"
21004 msgstr ""
21005
21006 #. type: verbatim
21007 #: ../resize/virt-resize.pod:117
21008 #, no-wrap
21009 msgid ""
21010 " # lvcreate -L 10G -n lv_name vg_name\n"
21011 "\n"
21012 msgstr ""
21013
21014 #. type: textblock
21015 #: ../resize/virt-resize.pod:119
21016 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
21017 msgstr ""
21018
21019 #. type: verbatim
21020 #: ../resize/virt-resize.pod:121
21021 #, no-wrap
21022 msgid ""
21023 " # virsh pool-list\n"
21024 " # virsh vol-create-as poolname newvol 10G\n"
21025 "\n"
21026 msgstr ""
21027
21028 #. type: =item
21029 #: ../resize/virt-resize.pod:124
21030 msgid "5. Resize"
21031 msgstr ""
21032
21033 #. type: textblock
21034 #: ../resize/virt-resize.pod:126
21035 msgid ""
21036 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
21037 "file) and the output disk.  The output disk is the one created in the "
21038 "previous step."
21039 msgstr ""
21040
21041 #. type: verbatim
21042 #: ../resize/virt-resize.pod:130
21043 #, no-wrap
21044 msgid ""
21045 " # virt-resize indisk outdisk\n"
21046 "\n"
21047 msgstr ""
21048
21049 #. type: textblock
21050 #: ../resize/virt-resize.pod:132
21051 msgid ""
21052 "This command just copies disk image C<indisk> to disk image C<outdisk> "
21053 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
21054 "larger, then an extra, empty partition is created at the end of the disk "
21055 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
21056 "error."
21057 msgstr ""
21058
21059 #. type: textblock
21060 #: ../resize/virt-resize.pod:138
21061 msgid ""
21062 "More realistically you'd want to expand existing partitions in the disk "
21063 "image by passing extra options (for the full list see the L</OPTIONS> "
21064 "section below)."
21065 msgstr ""
21066
21067 #. type: textblock
21068 #: ../resize/virt-resize.pod:142
21069 msgid ""
21070 "L</--expand> is the most useful option.  It expands the named partition "
21071 "within the disk to fill any extra space:"
21072 msgstr ""
21073
21074 #. type: verbatim
21075 #: ../resize/virt-resize.pod:145
21076 #, no-wrap
21077 msgid ""
21078 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
21079 "\n"
21080 msgstr ""
21081
21082 #. type: textblock
21083 #: ../resize/virt-resize.pod:147
21084 msgid ""
21085 "(In this case, an extra partition is I<not> created at the end of the disk, "
21086 "because there will be no unused space)."
21087 msgstr ""
21088
21089 #. type: textblock
21090 #: ../resize/virt-resize.pod:150
21091 msgid ""
21092 "L</--resize> is the other commonly used option.  The following would "
21093 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
21094 "rest of the available space:"
21095 msgstr ""
21096
21097 #. type: verbatim
21098 #: ../resize/virt-resize.pod:154
21099 #, no-wrap
21100 msgid ""
21101 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
21102 "     indisk outdisk\n"
21103 "\n"
21104 msgstr ""
21105
21106 #. type: textblock
21107 #: ../resize/virt-resize.pod:157
21108 msgid ""
21109 "If the expanded partition in the image contains a filesystem or LVM PV, then "
21110 "if virt-resize knows how, it will resize the contents, the equivalent of "
21111 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
21112 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
21113 "filesystems, so you would have to online resize them after booting the guest."
21114 msgstr ""
21115
21116 #. type: textblock
21117 #: ../resize/virt-resize.pod:164
21118 msgid "Other options are covered below."
21119 msgstr ""
21120
21121 #. type: =item
21122 #: ../resize/virt-resize.pod:166
21123 msgid "6. Test"
21124 msgstr ""
21125
21126 #. type: textblock
21127 #: ../resize/virt-resize.pod:168
21128 msgid "Thoroughly test the new disk image I<before> discarding the old one."
21129 msgstr ""
21130
21131 #. type: textblock
21132 #: ../resize/virt-resize.pod:170
21133 msgid "If you are using libvirt, edit the XML to point at the new disk:"
21134 msgstr ""
21135
21136 #. type: verbatim
21137 #: ../resize/virt-resize.pod:172
21138 #, no-wrap
21139 msgid ""
21140 " # virsh edit guestname\n"
21141 "\n"
21142 msgstr ""
21143
21144 #. type: textblock
21145 #: ../resize/virt-resize.pod:174
21146 msgid ""
21147 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
21148 "html#elementsDisks>"
21149 msgstr ""
21150
21151 #. type: textblock
21152 #: ../resize/virt-resize.pod:177
21153 msgid "Then start up the domain with the new, resized disk:"
21154 msgstr ""
21155
21156 #. type: verbatim
21157 #: ../resize/virt-resize.pod:179
21158 #, no-wrap
21159 msgid ""
21160 " # virsh start guestname\n"
21161 "\n"
21162 msgstr ""
21163
21164 #. type: textblock
21165 #: ../resize/virt-resize.pod:181
21166 msgid ""
21167 "and check that it still works.  See also the L</NOTES> section below for "
21168 "additional information."
21169 msgstr ""
21170
21171 #. type: =item
21172 #: ../resize/virt-resize.pod:184
21173 msgid "7. Resize LVs etc inside the guest"
21174 msgstr ""
21175
21176 #. type: textblock
21177 #: ../resize/virt-resize.pod:186
21178 msgid "(This can also be done offline using L<guestfish(1)>)"
21179 msgstr ""
21180
21181 #. type: textblock
21182 #: ../resize/virt-resize.pod:188
21183 msgid ""
21184 "Once the guest has booted you should see the new space available, at least "
21185 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
21186 "may need to resize LVs inside PVs, and also resize filesystem types that "
21187 "virt-resize does not know how to expand."
21188 msgstr ""
21189
21190 #. type: =head2
21191 #: ../resize/virt-resize.pod:195
21192 msgid "SHRINKING A VIRTUAL MACHINE DISK"
21193 msgstr ""
21194
21195 #. type: textblock
21196 #: ../resize/virt-resize.pod:197
21197 msgid ""
21198 "Shrinking is somewhat more complex than expanding, and only an overview is "
21199 "given here."
21200 msgstr ""
21201
21202 #. type: textblock
21203 #: ../resize/virt-resize.pod:200
21204 msgid ""
21205 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
21206 "filesystems).  The user has to shrink content before passing the disk image "
21207 "to virt-resize, and virt-resize will check that the content has been shrunk "
21208 "properly."
21209 msgstr ""
21210
21211 #. type: textblock
21212 #: ../resize/virt-resize.pod:205
21213 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
21214 msgstr ""
21215
21216 #. type: textblock
21217 #: ../resize/virt-resize.pod:207
21218 msgid ""
21219 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
21220 "steps 3 and 4 above to allocate a new disk image."
21221 msgstr ""
21222
21223 #. type: textblock
21224 #: ../resize/virt-resize.pod:210
21225 msgid ""
21226 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
21227 msgstr ""
21228
21229 #. type: =head2
21230 #: ../resize/virt-resize.pod:213
21231 msgid "IGNORING OR DELETING PARTITIONS"
21232 msgstr ""
21233
21234 #. type: textblock
21235 #: ../resize/virt-resize.pod:215
21236 msgid ""
21237 "virt-resize also gives a convenient way to ignore or delete partitions when "
21238 "copying from the input disk to the output disk.  Ignoring a partition speeds "
21239 "up the copy where you don't care about the existing contents of a "
21240 "partition.  Deleting a partition removes it completely, but note that it "
21241 "also renumbers any partitions after the one which is deleted, which can "
21242 "leave some guests unbootable."
21243 msgstr ""
21244
21245 #. type: =head2
21246 #: ../resize/virt-resize.pod:222
21247 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
21248 msgstr ""
21249
21250 #. type: textblock
21251 #: ../resize/virt-resize.pod:224
21252 msgid ""
21253 "If the input disk is in qcow2 format, then you may prefer that the output is "
21254 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
21255 "the fly.  The output format is simply determined by the format of the empty "
21256 "output container that you provide.  Thus to create qcow2 output, use:"
21257 msgstr ""
21258
21259 #. type: verbatim
21260 #: ../resize/virt-resize.pod:230
21261 #, no-wrap
21262 msgid ""
21263 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
21264 "\n"
21265 msgstr ""
21266
21267 #. type: textblock
21268 #: ../resize/virt-resize.pod:232
21269 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
21270 msgstr ""
21271
21272 #. type: textblock
21273 #: ../resize/virt-resize.pod:234
21274 msgid "Similarly, to get non-sparse raw output use:"
21275 msgstr ""
21276
21277 #. type: verbatim
21278 #: ../resize/virt-resize.pod:236
21279 #, no-wrap
21280 msgid ""
21281 " fallocate -l size outdisk\n"
21282 "\n"
21283 msgstr ""
21284
21285 #. type: textblock
21286 #: ../resize/virt-resize.pod:238
21287 msgid ""
21288 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
21289 "dev/zero of=outdisk bs=1M count=..>)"
21290 msgstr ""
21291
21292 #. type: textblock
21293 #: ../resize/virt-resize.pod:247
21294 msgid "Display help."
21295 msgstr ""
21296
21297 #. type: =item
21298 #: ../resize/virt-resize.pod:249
21299 msgid "B<-d>"
21300 msgstr ""
21301
21302 #. type: =item
21303 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
21304 #: ../tools/virt-win-reg.pl:120
21305 msgid "B<--debug>"
21306 msgstr ""
21307
21308 #. type: textblock
21309 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
21310 msgid "Enable debugging messages."
21311 msgstr ""
21312
21313 #. type: =item
21314 #: ../resize/virt-resize.pod:255
21315 msgid "B<--delete part>"
21316 msgstr ""
21317
21318 #. type: textblock
21319 #: ../resize/virt-resize.pod:257
21320 msgid ""
21321 "Delete the named partition.  It would be more accurate to describe this as "
21322 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
21323 "the original disk image is left intact."
21324 msgstr ""
21325
21326 #. type: textblock
21327 #: ../resize/virt-resize.pod:261
21328 msgid ""
21329 "Note that when you delete a partition, then anything contained in the "
21330 "partition is also deleted.  Furthermore, this causes any partitions that "
21331 "come after to be I<renumbered>, which can easily make your guest unbootable."
21332 msgstr ""
21333
21334 #. type: textblock
21335 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
21336 #: ../resize/virt-resize.pod:454
21337 msgid "You can give this option multiple times."
21338 msgstr ""
21339
21340 #. type: =item
21341 #: ../resize/virt-resize.pod:268
21342 msgid "B<--expand part>"
21343 msgstr ""
21344
21345 #. type: textblock
21346 #: ../resize/virt-resize.pod:270
21347 msgid ""
21348 "Expand the named partition so it uses up all extra space (space left over "
21349 "after any other resize changes that you request have been done)."
21350 msgstr ""
21351
21352 #. type: textblock
21353 #: ../resize/virt-resize.pod:273
21354 msgid ""
21355 "If virt-resize knows how, it will expand the direct content of the "
21356 "partition.  For example, if the partition is an LVM PV, it will expand the "
21357 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
21358 "content it doesn't know about alone."
21359 msgstr ""
21360
21361 #. type: textblock
21362 #: ../resize/virt-resize.pod:278
21363 msgid "Currently virt-resize can resize:"
21364 msgstr ""
21365
21366 #. type: textblock
21367 #: ../resize/virt-resize.pod:284
21368 msgid "ext2, ext3 and ext4 filesystems."
21369 msgstr ""
21370
21371 #. type: textblock
21372 #: ../resize/virt-resize.pod:288
21373 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
21374 msgstr ""
21375
21376 #. type: textblock
21377 #: ../resize/virt-resize.pod:290
21378 msgid ""
21379 "The filesystem must have been shut down consistently last time it was used.  "
21380 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
21381 "consistency check, so at the first boot after resizing Windows will check "
21382 "the disk."
21383 msgstr ""
21384
21385 #. type: textblock
21386 #: ../resize/virt-resize.pod:297
21387 msgid ""
21388 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
21389 "inside the PV, but see the I<--LV-expand> option.  The user could also "
21390 "resize LVs as desired after boot."
21391 msgstr ""
21392
21393 #. type: textblock
21394 #: ../resize/virt-resize.pod:303
21395 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
21396 msgstr ""
21397
21398 #. type: textblock
21399 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
21400 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
21401 msgstr ""
21402
21403 #. type: =item
21404 #: ../resize/virt-resize.pod:309 ../tools/virt-list-filesystems.pl:91
21405 #: ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141
21406 #: ../tools/virt-win-reg.pl:142
21407 msgid "B<--format> raw"
21408 msgstr ""
21409
21410 #. type: textblock
21411 #: ../resize/virt-resize.pod:311
21412 msgid ""
21413 "Specify the format of the input disk image.  If this flag is not given then "
21414 "it is auto-detected from the image itself."
21415 msgstr ""
21416
21417 #. type: textblock
21418 #: ../resize/virt-resize.pod:317
21419 msgid ""
21420 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
21421 "AND NON-SPARSE RAW FORMATS>."
21422 msgstr ""
21423
21424 #. type: =item
21425 #: ../resize/virt-resize.pod:320
21426 msgid "B<--ignore part>"
21427 msgstr ""
21428
21429 #. type: textblock
21430 #: ../resize/virt-resize.pod:322
21431 msgid ""
21432 "Ignore the named partition.  Effectively this means the partition is "
21433 "allocated on the destination disk, but the content is not copied across from "
21434 "the source disk.  The content of the partition will be blank (all zero "
21435 "bytes)."
21436 msgstr ""
21437
21438 #. type: =item
21439 #: ../resize/virt-resize.pod:329
21440 msgid "B<--LV-expand logvol>"
21441 msgstr ""
21442
21443 #. type: textblock
21444 #: ../resize/virt-resize.pod:331
21445 msgid ""
21446 "This takes the logical volume and, as a final step, expands it to fill all "
21447 "the space available in its volume group.  A typical usage, assuming a Linux "
21448 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
21449 "lv_root> would be:"
21450 msgstr ""
21451
21452 #. type: verbatim
21453 #: ../resize/virt-resize.pod:336
21454 #, no-wrap
21455 msgid ""
21456 " virt-resize indisk outdisk \\\n"
21457 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
21458 "\n"
21459 msgstr ""
21460
21461 #. type: textblock
21462 #: ../resize/virt-resize.pod:339
21463 msgid ""
21464 "This would first expand the partition (and PV), and then expand the root "
21465 "device to fill the extra space in the PV."
21466 msgstr ""
21467
21468 #. type: textblock
21469 #: ../resize/virt-resize.pod:342
21470 msgid ""
21471 "The contents of the LV are also resized if virt-resize knows how to do "
21472 "that.  You can stop virt-resize from trying to expand the content by using "
21473 "the option I<--no-expand-content>."
21474 msgstr ""
21475
21476 #. type: textblock
21477 #: ../resize/virt-resize.pod:346
21478 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
21479 msgstr ""
21480
21481 #. type: textblock
21482 #: ../resize/virt-resize.pod:348
21483 msgid ""
21484 "You can give this option multiple times, I<but> it doesn't make sense to do "
21485 "this unless the logical volumes you specify are all in different volume "
21486 "groups."
21487 msgstr ""
21488
21489 #. type: =item
21490 #: ../resize/virt-resize.pod:352
21491 msgid "B<--machine-readable>"
21492 msgstr ""
21493
21494 #. type: textblock
21495 #: ../resize/virt-resize.pod:354
21496 msgid ""
21497 "This option is used to make the output more machine friendly when being "
21498 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
21499 msgstr ""
21500
21501 #. type: =item
21502 #: ../resize/virt-resize.pod:360
21503 msgid "B<--dryrun>"
21504 msgstr ""
21505
21506 #. type: textblock
21507 #: ../resize/virt-resize.pod:362
21508 msgid "Print a summary of what would be done, but don't do anything."
21509 msgstr ""
21510
21511 #. type: =item
21512 #: ../resize/virt-resize.pod:364
21513 msgid "B<--no-copy-boot-loader>"
21514 msgstr ""
21515
21516 #. type: textblock
21517 #: ../resize/virt-resize.pod:366
21518 msgid ""
21519 "By default, virt-resize copies over some sectors at the start of the disk "
21520 "(up to the beginning of the first partition).  Commonly these sectors "
21521 "contain the Master Boot Record (MBR) and the boot loader, and are required "
21522 "in order for the guest to boot correctly."
21523 msgstr ""
21524
21525 #. type: textblock
21526 #: ../resize/virt-resize.pod:371
21527 msgid ""
21528 "If you specify this flag, then this initial copy is not done.  You may need "
21529 "to reinstall the boot loader in this case."
21530 msgstr ""
21531
21532 #. type: =item
21533 #: ../resize/virt-resize.pod:374
21534 msgid "B<--no-extra-partition>"
21535 msgstr ""
21536
21537 #. type: textblock
21538 #: ../resize/virt-resize.pod:376
21539 msgid ""
21540 "By default, virt-resize creates an extra partition if there is any extra, "
21541 "unused space after all resizing has happened.  Use this option to prevent "
21542 "the extra partition from being created.  If you do this then the extra space "
21543 "will be inaccessible until you run fdisk, parted, or some other partitioning "
21544 "tool in the guest."
21545 msgstr ""
21546
21547 #. type: textblock
21548 #: ../resize/virt-resize.pod:382
21549 msgid ""
21550 "Note that if the surplus space is smaller than 10 MB, no extra partition "
21551 "will be created."
21552 msgstr ""
21553
21554 #. type: =item
21555 #: ../resize/virt-resize.pod:385
21556 msgid "B<--no-expand-content>"
21557 msgstr ""
21558
21559 #. type: textblock
21560 #: ../resize/virt-resize.pod:387
21561 msgid ""
21562 "By default, virt-resize will try to expand the direct contents of "
21563 "partitions, if it knows how (see I<--expand> option above)."
21564 msgstr ""
21565
21566 #. type: textblock
21567 #: ../resize/virt-resize.pod:390
21568 msgid ""
21569 "If you give the I<--no-expand-content> option then virt-resize will not "
21570 "attempt this."
21571 msgstr ""
21572
21573 #. type: =item
21574 #: ../resize/virt-resize.pod:393
21575 msgid "B<--ntfsresize-force>"
21576 msgstr ""
21577
21578 #. type: textblock
21579 #: ../resize/virt-resize.pod:395
21580 msgid ""
21581 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
21582 "the NTFS disk is marked as needing a consistency check.  You have to use "
21583 "this option if you want to resize a Windows guest multiple times without "
21584 "booting into Windows between each resize."
21585 msgstr ""
21586
21587 #. type: =item
21588 #: ../resize/virt-resize.pod:401
21589 msgid "B<--output-format> raw"
21590 msgstr ""
21591
21592 #. type: textblock
21593 #: ../resize/virt-resize.pod:403
21594 msgid ""
21595 "Specify the format of the output disk image.  If this flag is not given then "
21596 "it is auto-detected from the image itself."
21597 msgstr ""
21598
21599 #. type: textblock
21600 #: ../resize/virt-resize.pod:409
21601 msgid ""
21602 "Note that this option I<does not create> the output format.  This option "
21603 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
21604 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
21605 "SPARSE RAW FORMATS>."
21606 msgstr ""
21607
21608 #. type: =item
21609 #: ../resize/virt-resize.pod:414
21610 msgid "B<-q>"
21611 msgstr ""
21612
21613 #. type: =item
21614 #: ../resize/virt-resize.pod:416
21615 msgid "B<--quiet>"
21616 msgstr ""
21617
21618 #. type: textblock
21619 #: ../resize/virt-resize.pod:418
21620 msgid "Don't print the summary."
21621 msgstr ""
21622
21623 #. type: =item
21624 #: ../resize/virt-resize.pod:420
21625 msgid "B<--resize part=size>"
21626 msgstr ""
21627
21628 #. type: textblock
21629 #: ../resize/virt-resize.pod:422
21630 msgid ""
21631 "Resize the named partition (expanding or shrinking it) so that it has the "
21632 "given size."
21633 msgstr ""
21634
21635 #. type: textblock
21636 #: ../resize/virt-resize.pod:425
21637 msgid ""
21638 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
21639 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
21640 "size; or as a relative number or percentage.  For example:"
21641 msgstr ""
21642
21643 #. type: verbatim
21644 #: ../resize/virt-resize.pod:431
21645 #, no-wrap
21646 msgid ""
21647 " --resize /dev/sda2=10G\n"
21648 "\n"
21649 msgstr ""
21650
21651 #. type: verbatim
21652 #: ../resize/virt-resize.pod:433
21653 #, no-wrap
21654 msgid ""
21655 " --resize /dev/sda4=90%\n"
21656 "\n"
21657 msgstr ""
21658
21659 #. type: verbatim
21660 #: ../resize/virt-resize.pod:435
21661 #, no-wrap
21662 msgid ""
21663 " --resize /dev/sda2=+1G\n"
21664 "\n"
21665 msgstr ""
21666
21667 #. type: verbatim
21668 #: ../resize/virt-resize.pod:437
21669 #, no-wrap
21670 msgid ""
21671 " --resize /dev/sda2=-200M\n"
21672 "\n"
21673 msgstr ""
21674
21675 #. type: verbatim
21676 #: ../resize/virt-resize.pod:439
21677 #, no-wrap
21678 msgid ""
21679 " --resize /dev/sda1=+128K\n"
21680 "\n"
21681 msgstr ""
21682
21683 #. type: verbatim
21684 #: ../resize/virt-resize.pod:441
21685 #, no-wrap
21686 msgid ""
21687 " --resize /dev/sda1=+10%\n"
21688 "\n"
21689 msgstr ""
21690
21691 #. type: verbatim
21692 #: ../resize/virt-resize.pod:443
21693 #, no-wrap
21694 msgid ""
21695 " --resize /dev/sda1=-10%\n"
21696 "\n"
21697 msgstr ""
21698
21699 #. type: textblock
21700 #: ../resize/virt-resize.pod:445
21701 msgid ""
21702 "You can increase the size of any partition.  Virt-resize will expand the "
21703 "direct content of the partition if it knows how (see I<--expand> below)."
21704 msgstr ""
21705
21706 #. type: textblock
21707 #: ../resize/virt-resize.pod:449
21708 msgid ""
21709 "You can only I<decrease> the size of partitions that contain filesystems or "
21710 "PVs which have already been shrunk.  Virt-resize will check this has been "
21711 "done before proceeding, or else will print an error (see also I<--resize-"
21712 "force>)."
21713 msgstr ""
21714
21715 #. type: =item
21716 #: ../resize/virt-resize.pod:456
21717 msgid "B<--resize-force part=size>"
21718 msgstr ""
21719
21720 #. type: textblock
21721 #: ../resize/virt-resize.pod:458
21722 msgid ""
21723 "This is the same as I<--resize> except that it will let you decrease the "
21724 "size of any partition.  Generally this means you will lose any data which "
21725 "was at the end of the partition you shrink, but you may not care about that "
21726 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
21727 "as a swap partition)."
21728 msgstr ""
21729
21730 #. type: textblock
21731 #: ../resize/virt-resize.pod:464
21732 msgid "See also the I<--ignore> option."
21733 msgstr ""
21734
21735 #. type: =item
21736 #: ../resize/virt-resize.pod:466
21737 msgid "B<--shrink part>"
21738 msgstr ""
21739
21740 #. type: textblock
21741 #: ../resize/virt-resize.pod:468
21742 msgid ""
21743 "Shrink the named partition until the overall disk image fits in the "
21744 "destination.  The named partition B<must> contain a filesystem or PV which "
21745 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
21746 "online tools).  Virt-resize will check this and give an error if it has not "
21747 "been done."
21748 msgstr ""
21749
21750 #. type: textblock
21751 #: ../resize/virt-resize.pod:474
21752 msgid ""
21753 "The amount by which the overall disk must be shrunk (after carrying out all "
21754 "other operations requested by the user) is called the \"deficit\".  For "
21755 "example, a straight copy (assume no other operations)  from a 5GB disk image "
21756 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
21757 "would give an error unless the user specified a partition to shrink and that "
21758 "partition had more than a gigabyte of free space."
21759 msgstr ""
21760
21761 #. type: =head1
21762 #: ../resize/virt-resize.pod:492
21763 msgid "MACHINE READABLE OUTPUT"
21764 msgstr ""
21765
21766 #. type: textblock
21767 #: ../resize/virt-resize.pod:494
21768 msgid ""
21769 "The I<--machine-readable> option can be used to make the output more machine "
21770 "friendly, which is useful when calling virt-resize from other programs, GUIs "
21771 "etc."
21772 msgstr ""
21773
21774 #. type: textblock
21775 #: ../resize/virt-resize.pod:498
21776 msgid ""
21777 "Use the option on its own to query the capabilities of the virt-resize "
21778 "binary.  Typical output looks like this:"
21779 msgstr ""
21780
21781 #. type: verbatim
21782 #: ../resize/virt-resize.pod:501
21783 #, no-wrap
21784 msgid ""
21785 " $ virt-resize --machine-readable\n"
21786 " virt-resize\n"
21787 " ntfsresize-force\n"
21788 " 32bitok\n"
21789 " ntfs\n"
21790 " btrfs\n"
21791 "\n"
21792 msgstr ""
21793
21794 #. type: textblock
21795 #: ../resize/virt-resize.pod:508
21796 msgid ""
21797 "A list of features is printed, one per line, and the program exits with "
21798 "status 0."
21799 msgstr ""
21800
21801 #. type: =head2
21802 #: ../resize/virt-resize.pod:513
21803 msgid "\"Partition 1 does not end on cylinder boundary.\""
21804 msgstr ""
21805
21806 #. type: textblock
21807 #: ../resize/virt-resize.pod:515
21808 msgid ""
21809 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
21810 "means the partitions will not be aligned to the ancient CHS geometry.  "
21811 "However CHS geometry is meaningless for disks manufactured since the early "
21812 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
21813 "cylinders is not required by any modern operating system."
21814 msgstr ""
21815
21816 #. type: =head2
21817 #: ../resize/virt-resize.pod:522
21818 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
21819 msgstr ""
21820
21821 #. type: textblock
21822 #: ../resize/virt-resize.pod:524
21823 msgid ""
21824 "In Windows Vista and later versions, Microsoft switched to using a separate "
21825 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
21826 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
21827 "the boot partition.  Doing so seems to break the guest completely.  However "
21828 "expanding the second partition (ie. C: drive) should work."
21829 msgstr ""
21830
21831 #. type: textblock
21832 #: ../resize/virt-resize.pod:531
21833 msgid ""
21834 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
21835 "NTFS partitions have been expanded.  This is just a safety check and (unless "
21836 "it find errors) is nothing to worry about."
21837 msgstr ""
21838
21839 #. type: =head2
21840 #: ../resize/virt-resize.pod:535
21841 msgid "GUEST BOOT STUCK AT \"GRUB\""
21842 msgstr ""
21843
21844 #. type: textblock
21845 #: ../resize/virt-resize.pod:537
21846 msgid ""
21847 "If a Linux guest does not boot after resizing, and the boot is stuck after "
21848 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
21849 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
21850 "although we think is to do with partition alignment."
21851 msgstr ""
21852
21853 #. type: verbatim
21854 #: ../resize/virt-resize.pod:542
21855 #, no-wrap
21856 msgid ""
21857 " guestfish -i -a newdisk\n"
21858 " ><fs> cat /boot/grub/device.map\n"
21859 " # check the contents of this file are sensible or\n"
21860 " # edit the file if necessary\n"
21861 " ><fs> grub-install / /dev/vda\n"
21862 " ><fs> exit\n"
21863 "\n"
21864 msgstr ""
21865
21866 #. type: textblock
21867 #: ../resize/virt-resize.pod:549
21868 msgid ""
21869 "For more flexible guest reconfiguration, including if you need to specify "
21870 "other parameters to grub-install, use L<virt-rescue(1)>."
21871 msgstr ""
21872
21873 #. type: =head1
21874 #: ../resize/virt-resize.pod:552
21875 msgid "ALTERNATIVE TOOLS"
21876 msgstr ""
21877
21878 #. type: textblock
21879 #: ../resize/virt-resize.pod:554
21880 msgid ""
21881 "There are several proprietary tools for resizing partitions.  We won't "
21882 "mention any here."
21883 msgstr ""
21884
21885 #. type: textblock
21886 #: ../resize/virt-resize.pod:557
21887 msgid ""
21888 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
21889 "operations on disk images.  They can resize and move partitions, but I don't "
21890 "think they can do anything with the contents, and they certainly don't "
21891 "understand LVM."
21892 msgstr ""
21893
21894 #. type: textblock
21895 #: ../resize/virt-resize.pod:562
21896 msgid ""
21897 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
21898 "but at a much lower level.  You will probably end up hand-calculating sector "
21899 "offsets, which is something that virt-resize was designed to avoid.  If you "
21900 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
21901 "I<--debug> flag."
21902 msgstr ""
21903
21904 #. type: textblock
21905 #: ../resize/virt-resize.pod:582
21906 msgid ""
21907 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
21908 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
21909 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
21910 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<http://libguestfs.org/>."
21911 msgstr ""
21912
21913 #. type: textblock
21914 #: ../ruby/examples/guestfs-ruby.pod:5
21915 msgid "guestfs-ruby - How to use libguestfs from Ruby"
21916 msgstr ""
21917
21918 #. type: verbatim
21919 #: ../ruby/examples/guestfs-ruby.pod:9
21920 #, no-wrap
21921 msgid ""
21922 " require 'guestfs'\n"
21923 " g = Guestfs::Guestfs.new()\n"
21924 " g.add_drive_opts(\"disk.img\",\n"
21925 "                  :readonly => 1, :format => \"raw\")\n"
21926 " g.launch()\n"
21927 "\n"
21928 msgstr ""
21929
21930 #. type: textblock
21931 #: ../ruby/examples/guestfs-ruby.pod:17
21932 msgid ""
21933 "This manual page documents how to call libguestfs from the Ruby programming "
21934 "language.  This page just documents the differences from the C API and gives "
21935 "some examples.  If you are not familiar with using libguestfs, you also need "
21936 "to read L<guestfs(3)>."
21937 msgstr ""
21938
21939 #. type: textblock
21940 #: ../ruby/examples/guestfs-ruby.pod:24
21941 msgid ""
21942 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
21943 "This has a single parameter which is the error message (a string)."
21944 msgstr ""
21945
21946 #. type: textblock
21947 #: ../ruby/examples/guestfs-ruby.pod:38
21948 msgid ""
21949 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
21950 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<http://"
21951 "libguestfs.org/>."
21952 msgstr ""
21953
21954 #. type: =head2
21955 #: ../src/guestfs-actions.pod:1
21956 msgid "guestfs_add_cdrom"
21957 msgstr ""
21958
21959 #. type: verbatim
21960 #: ../src/guestfs-actions.pod:3
21961 #, no-wrap
21962 msgid ""
21963 " int\n"
21964 " guestfs_add_cdrom (guestfs_h *g,\n"
21965 "                    const char *filename);\n"
21966 "\n"
21967 msgstr ""
21968
21969 #. type: textblock
21970 #: ../src/guestfs-actions.pod:17
21971 msgid ""
21972 "This call checks for the existence of C<filename>.  This stops you from "
21973 "specifying other types of drive which are supported by qemu such as C<nbd:> "
21974 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
21975 "instead."
21976 msgstr ""
21977
21978 #. type: textblock
21979 #: ../src/guestfs-actions.pod:24
21980 msgid ""
21981 "If you just want to add an ISO file (often you use this as an efficient way "
21982 "to transfer large files into the guest), then you should probably use "
21983 "C<guestfs_add_drive_ro> instead."
21984 msgstr ""
21985
21986 #. type: textblock
21987 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:140
21988 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
21989 #: ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273
21990 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
21991 #: ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447
21992 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506
21993 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552
21994 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652
21995 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681
21996 #: ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798
21997 #: ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826
21998 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046
21999 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084
22000 #: ../src/guestfs-actions.pod:1168 ../src/guestfs-actions.pod:1186
22001 #: ../src/guestfs-actions.pod:1205 ../src/guestfs-actions.pod:1219
22002 #: ../src/guestfs-actions.pod:1239 ../src/guestfs-actions.pod:1309
22003 #: ../src/guestfs-actions.pod:1340 ../src/guestfs-actions.pod:1365
22004 #: ../src/guestfs-actions.pod:1407 ../src/guestfs-actions.pod:1513
22005 #: ../src/guestfs-actions.pod:1547 ../src/guestfs-actions.pod:1762
22006 #: ../src/guestfs-actions.pod:1784 ../src/guestfs-actions.pod:1871
22007 #: ../src/guestfs-actions.pod:2368 ../src/guestfs-actions.pod:2512
22008 #: ../src/guestfs-actions.pod:2573 ../src/guestfs-actions.pod:2608
22009 #: ../src/guestfs-actions.pod:3648 ../src/guestfs-actions.pod:3663
22010 #: ../src/guestfs-actions.pod:3688 ../src/guestfs-actions.pod:3877
22011 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3904
22012 #: ../src/guestfs-actions.pod:3918 ../src/guestfs-actions.pod:3933
22013 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:4041
22014 #: ../src/guestfs-actions.pod:4061 ../src/guestfs-actions.pod:4078
22015 #: ../src/guestfs-actions.pod:4101 ../src/guestfs-actions.pod:4124
22016 #: ../src/guestfs-actions.pod:4159 ../src/guestfs-actions.pod:4178
22017 #: ../src/guestfs-actions.pod:4197 ../src/guestfs-actions.pod:4232
22018 #: ../src/guestfs-actions.pod:4244 ../src/guestfs-actions.pod:4280
22019 #: ../src/guestfs-actions.pod:4296 ../src/guestfs-actions.pod:4309
22020 #: ../src/guestfs-actions.pod:4324 ../src/guestfs-actions.pod:4341
22021 #: ../src/guestfs-actions.pod:4434 ../src/guestfs-actions.pod:4454
22022 #: ../src/guestfs-actions.pod:4467 ../src/guestfs-actions.pod:4518
22023 #: ../src/guestfs-actions.pod:4536 ../src/guestfs-actions.pod:4554
22024 #: ../src/guestfs-actions.pod:4570 ../src/guestfs-actions.pod:4584
22025 #: ../src/guestfs-actions.pod:4598 ../src/guestfs-actions.pod:4615
22026 #: ../src/guestfs-actions.pod:4630 ../src/guestfs-actions.pod:4650
22027 #: ../src/guestfs-actions.pod:4720 ../src/guestfs-actions.pod:4793
22028 #: ../src/guestfs-actions.pod:4824 ../src/guestfs-actions.pod:4843
22029 #: ../src/guestfs-actions.pod:4862 ../src/guestfs-actions.pod:4874
22030 #: ../src/guestfs-actions.pod:4891 ../src/guestfs-actions.pod:4904
22031 #: ../src/guestfs-actions.pod:4919 ../src/guestfs-actions.pod:4934
22032 #: ../src/guestfs-actions.pod:4969 ../src/guestfs-actions.pod:5002
22033 #: ../src/guestfs-actions.pod:5041 ../src/guestfs-actions.pod:5061
22034 #: ../src/guestfs-actions.pod:5075 ../src/guestfs-actions.pod:5092
22035 #: ../src/guestfs-actions.pod:5141 ../src/guestfs-actions.pod:5187
22036 #: ../src/guestfs-actions.pod:5241 ../src/guestfs-actions.pod:5277
22037 #: ../src/guestfs-actions.pod:5312 ../src/guestfs-actions.pod:5329
22038 #: ../src/guestfs-actions.pod:5347 ../src/guestfs-actions.pod:5487
22039 #: ../src/guestfs-actions.pod:5544 ../src/guestfs-actions.pod:5566
22040 #: ../src/guestfs-actions.pod:5584 ../src/guestfs-actions.pod:5616
22041 #: ../src/guestfs-actions.pod:5682 ../src/guestfs-actions.pod:5699
22042 #: ../src/guestfs-actions.pod:5712 ../src/guestfs-actions.pod:5726
22043 #: ../src/guestfs-actions.pod:6015 ../src/guestfs-actions.pod:6034
22044 #: ../src/guestfs-actions.pod:6053 ../src/guestfs-actions.pod:6067
22045 #: ../src/guestfs-actions.pod:6079 ../src/guestfs-actions.pod:6093
22046 #: ../src/guestfs-actions.pod:6105 ../src/guestfs-actions.pod:6119
22047 #: ../src/guestfs-actions.pod:6135 ../src/guestfs-actions.pod:6156
22048 #: ../src/guestfs-actions.pod:6175 ../src/guestfs-actions.pod:6194
22049 #: ../src/guestfs-actions.pod:6224 ../src/guestfs-actions.pod:6242
22050 #: ../src/guestfs-actions.pod:6265 ../src/guestfs-actions.pod:6283
22051 #: ../src/guestfs-actions.pod:6302 ../src/guestfs-actions.pod:6323
22052 #: ../src/guestfs-actions.pod:6342 ../src/guestfs-actions.pod:6359
22053 #: ../src/guestfs-actions.pod:6378 ../src/guestfs-actions.pod:6406
22054 #: ../src/guestfs-actions.pod:6430 ../src/guestfs-actions.pod:6449
22055 #: ../src/guestfs-actions.pod:6473 ../src/guestfs-actions.pod:6492
22056 #: ../src/guestfs-actions.pod:6507 ../src/guestfs-actions.pod:6526
22057 #: ../src/guestfs-actions.pod:6563 ../src/guestfs-actions.pod:6593
22058 #: ../src/guestfs-actions.pod:6626 ../src/guestfs-actions.pod:6748
22059 #: ../src/guestfs-actions.pod:6869 ../src/guestfs-actions.pod:6881
22060 #: ../src/guestfs-actions.pod:6894 ../src/guestfs-actions.pod:6907
22061 #: ../src/guestfs-actions.pod:6929 ../src/guestfs-actions.pod:6942
22062 #: ../src/guestfs-actions.pod:6955 ../src/guestfs-actions.pod:6968
22063 #: ../src/guestfs-actions.pod:6983 ../src/guestfs-actions.pod:7042
22064 #: ../src/guestfs-actions.pod:7059 ../src/guestfs-actions.pod:7075
22065 #: ../src/guestfs-actions.pod:7091 ../src/guestfs-actions.pod:7108
22066 #: ../src/guestfs-actions.pod:7121 ../src/guestfs-actions.pod:7141
22067 #: ../src/guestfs-actions.pod:7177 ../src/guestfs-actions.pod:7191
22068 #: ../src/guestfs-actions.pod:7232 ../src/guestfs-actions.pod:7245
22069 #: ../src/guestfs-actions.pod:7263 ../src/guestfs-actions.pod:7297
22070 #: ../src/guestfs-actions.pod:7333 ../src/guestfs-actions.pod:7449
22071 #: ../src/guestfs-actions.pod:7464 ../src/guestfs-actions.pod:7478
22072 #: ../src/guestfs-actions.pod:7533 ../src/guestfs-actions.pod:7546
22073 #: ../src/guestfs-actions.pod:7591 ../src/guestfs-actions.pod:7624
22074 #: ../src/guestfs-actions.pod:7687 ../src/guestfs-actions.pod:7707
22075 #: ../src/guestfs-actions.pod:7733 ../src/guestfs-actions.pod:7804
22076 #: ../src/guestfs-actions.pod:7827 ../src/guestfs-actions.pod:7856
22077 msgid "This function returns 0 on success or -1 on error."
22078 msgstr ""
22079
22080 #. type: textblock
22081 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:254
22082 #: ../src/guestfs-actions.pod:275
22083 msgid ""
22084 "This function is deprecated.  In new code, use the L</"
22085 "guestfs_add_drive_opts> call instead."
22086 msgstr ""
22087
22088 #. type: textblock
22089 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
22090 #: ../src/guestfs-actions.pod:1170 ../src/guestfs-actions.pod:1985
22091 #: ../src/guestfs-actions.pod:2083 ../src/guestfs-actions.pod:2197
22092 #: ../src/guestfs-actions.pod:3650 ../src/guestfs-actions.pod:3670
22093 #: ../src/guestfs-actions.pod:4978 ../src/guestfs-actions.pod:6244
22094 #: ../src/guestfs-actions.pod:6361 ../src/guestfs-actions.pod:6494
22095 #: ../src/guestfs-actions.pod:6985 ../src/guestfs-actions.pod:7110
22096 #: ../src/guestfs-actions.pod:7633
22097 msgid "(Added in 0.3)"
22098 msgstr ""
22099
22100 #. type: =head2
22101 #: ../src/guestfs-actions.pod:41
22102 msgid "guestfs_add_domain"
22103 msgstr ""
22104
22105 #. type: verbatim
22106 #: ../src/guestfs-actions.pod:43
22107 #, no-wrap
22108 msgid ""
22109 " int\n"
22110 " guestfs_add_domain (guestfs_h *g,\n"
22111 "                     const char *dom,\n"
22112 "                     ...);\n"
22113 "\n"
22114 msgstr ""
22115
22116 #. type: textblock
22117 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
22118 #: ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:2853
22119 #: ../src/guestfs-actions.pod:4669 ../src/guestfs-actions.pod:4988
22120 #: ../src/guestfs-actions.pod:5205
22121 msgid ""
22122 "You may supply a list of optional arguments to this call.  Use zero or more "
22123 "of the following pairs of parameters, and terminate the list with C<-1> on "
22124 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
22125 msgstr ""
22126
22127 #. type: verbatim
22128 #: ../src/guestfs-actions.pod:53
22129 #, no-wrap
22130 msgid ""
22131 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
22132 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
22133 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
22134 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
22135 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
22136 "\n"
22137 msgstr ""
22138
22139 #. type: textblock
22140 #: ../src/guestfs-actions.pod:59
22141 msgid ""
22142 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
22143 "It works by connecting to libvirt, requesting the domain and domain XML from "
22144 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
22145 "one."
22146 msgstr ""
22147
22148 #. type: textblock
22149 #: ../src/guestfs-actions.pod:94
22150 msgid ""
22151 "The other optional parameters are passed directly through to "
22152 "C<guestfs_add_drive_opts>."
22153 msgstr ""
22154
22155 #. type: textblock
22156 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
22157 #: ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698
22158 #: ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747
22159 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1385
22160 #: ../src/guestfs-actions.pod:1741 ../src/guestfs-actions.pod:1944
22161 #: ../src/guestfs-actions.pod:2055 ../src/guestfs-actions.pod:2106
22162 #: ../src/guestfs-actions.pod:2161 ../src/guestfs-actions.pod:2184
22163 #: ../src/guestfs-actions.pod:2499 ../src/guestfs-actions.pod:2971
22164 #: ../src/guestfs-actions.pod:2989 ../src/guestfs-actions.pod:5164
22165 #: ../src/guestfs-actions.pod:5384 ../src/guestfs-actions.pod:5796
22166 #: ../src/guestfs-actions.pod:5822 ../src/guestfs-actions.pod:7218
22167 #: ../src/guestfs-actions.pod:7644 ../src/guestfs-actions.pod:7657
22168 #: ../src/guestfs-actions.pod:7670
22169 msgid "On error this function returns -1."
22170 msgstr ""
22171
22172 #. type: textblock
22173 #: ../src/guestfs-actions.pod:99
22174 msgid "(Added in 1.7.4)"
22175 msgstr ""
22176
22177 #. type: =head2
22178 #: ../src/guestfs-actions.pod:101
22179 msgid "guestfs_add_domain_va"
22180 msgstr ""
22181
22182 #. type: verbatim
22183 #: ../src/guestfs-actions.pod:103
22184 #, no-wrap
22185 msgid ""
22186 " int\n"
22187 " guestfs_add_domain_va (guestfs_h *g,\n"
22188 "                        const char *dom,\n"
22189 "                        va_list args);\n"
22190 "\n"
22191 msgstr ""
22192
22193 #. type: textblock
22194 #: ../src/guestfs-actions.pod:108
22195 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
22196 msgstr ""
22197
22198 #. type: textblock
22199 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
22200 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
22201 #: ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887
22202 #: ../src/guestfs-actions.pod:2937 ../src/guestfs-actions.pod:2949
22203 #: ../src/guestfs-actions.pod:4734 ../src/guestfs-actions.pod:4746
22204 #: ../src/guestfs-actions.pod:5016 ../src/guestfs-actions.pod:5028
22205 #: ../src/guestfs-actions.pod:5254 ../src/guestfs-actions.pod:5265
22206 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
22207 msgstr ""
22208
22209 #. type: =head2
22210 #: ../src/guestfs-actions.pod:112
22211 msgid "guestfs_add_domain_argv"
22212 msgstr ""
22213
22214 #. type: verbatim
22215 #: ../src/guestfs-actions.pod:114
22216 #, no-wrap
22217 msgid ""
22218 " int\n"
22219 " guestfs_add_domain_argv (guestfs_h *g,\n"
22220 "                          const char *dom,\n"
22221 "                          const struct guestfs_add_domain_argv *optargs);\n"
22222 "\n"
22223 msgstr ""
22224
22225 #. type: textblock
22226 #: ../src/guestfs-actions.pod:119
22227 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
22228 msgstr ""
22229
22230 #. type: =head2
22231 #: ../src/guestfs-actions.pod:123
22232 msgid "guestfs_add_drive"
22233 msgstr ""
22234
22235 #. type: verbatim
22236 #: ../src/guestfs-actions.pod:125
22237 #, no-wrap
22238 msgid ""
22239 " int\n"
22240 " guestfs_add_drive (guestfs_h *g,\n"
22241 "                    const char *filename);\n"
22242 "\n"
22243 msgstr ""
22244
22245 #. type: textblock
22246 #: ../src/guestfs-actions.pod:129
22247 msgid ""
22248 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
22249 "optional parameters, so the disk is added writable, with the format being "
22250 "detected automatically."
22251 msgstr ""
22252
22253 #. type: textblock
22254 #: ../src/guestfs-actions.pod:133
22255 msgid ""
22256 "Automatic detection of the format opens you up to a potential security hole "
22257 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
22258 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
22259 "you should think about replacing calls to this function with calls to "
22260 "C<guestfs_add_drive_opts>, and specifying the format."
22261 msgstr ""
22262
22263 #. type: =head2
22264 #: ../src/guestfs-actions.pod:144
22265 msgid "guestfs_add_drive_opts"
22266 msgstr ""
22267
22268 #. type: verbatim
22269 #: ../src/guestfs-actions.pod:146
22270 #, no-wrap
22271 msgid ""
22272 " int\n"
22273 " guestfs_add_drive_opts (guestfs_h *g,\n"
22274 "                         const char *filename,\n"
22275 "                         ...);\n"
22276 "\n"
22277 msgstr ""
22278
22279 #. type: verbatim
22280 #: ../src/guestfs-actions.pod:156
22281 #, no-wrap
22282 msgid ""
22283 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
22284 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
22285 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
22286 "\n"
22287 msgstr ""
22288
22289 #. type: textblock
22290 #: ../src/guestfs-actions.pod:185
22291 msgid ""
22292 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
22293 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
22294 "Possible formats include C<raw> and C<qcow2>."
22295 msgstr ""
22296
22297 #. type: textblock
22298 #: ../src/guestfs-actions.pod:196
22299 msgid ""
22300 "This rarely-used option lets you emulate the behaviour of the deprecated "
22301 "C<guestfs_add_drive_with_if> call (q.v.)"
22302 msgstr ""
22303
22304 #. type: textblock
22305 #: ../src/guestfs-actions.pod:203
22306 msgid "(Added in 1.5.23)"
22307 msgstr ""
22308
22309 #. type: =head2
22310 #: ../src/guestfs-actions.pod:205
22311 msgid "guestfs_add_drive_opts_va"
22312 msgstr ""
22313
22314 #. type: verbatim
22315 #: ../src/guestfs-actions.pod:207
22316 #, no-wrap
22317 msgid ""
22318 " int\n"
22319 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
22320 "                            const char *filename,\n"
22321 "                            va_list args);\n"
22322 "\n"
22323 msgstr ""
22324
22325 #. type: textblock
22326 #: ../src/guestfs-actions.pod:212
22327 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
22328 msgstr ""
22329
22330 #. type: =head2
22331 #: ../src/guestfs-actions.pod:216
22332 msgid "guestfs_add_drive_opts_argv"
22333 msgstr ""
22334
22335 #. type: verbatim
22336 #: ../src/guestfs-actions.pod:218
22337 #, no-wrap
22338 msgid ""
22339 " int\n"
22340 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
22341 "                              const char *filename,\n"
22342 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
22343 "\n"
22344 msgstr ""
22345
22346 #. type: textblock
22347 #: ../src/guestfs-actions.pod:223
22348 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
22349 msgstr ""
22350
22351 #. type: =head2
22352 #: ../src/guestfs-actions.pod:227
22353 msgid "guestfs_add_drive_ro"
22354 msgstr ""
22355
22356 #. type: verbatim
22357 #: ../src/guestfs-actions.pod:229
22358 #, no-wrap
22359 msgid ""
22360 " int\n"
22361 " guestfs_add_drive_ro (guestfs_h *g,\n"
22362 "                       const char *filename);\n"
22363 "\n"
22364 msgstr ""
22365
22366 #. type: textblock
22367 #: ../src/guestfs-actions.pod:233
22368 msgid ""
22369 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
22370 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
22371 "disk is added read-only, with the format being detected automatically."
22372 msgstr ""
22373
22374 #. type: textblock
22375 #: ../src/guestfs-actions.pod:240
22376 msgid "(Added in 1.0.38)"
22377 msgstr ""
22378
22379 #. type: =head2
22380 #: ../src/guestfs-actions.pod:242
22381 msgid "guestfs_add_drive_ro_with_if"
22382 msgstr ""
22383
22384 #. type: verbatim
22385 #: ../src/guestfs-actions.pod:244
22386 #, no-wrap
22387 msgid ""
22388 " int\n"
22389 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
22390 "                               const char *filename,\n"
22391 "                               const char *iface);\n"
22392 "\n"
22393 msgstr ""
22394
22395 #. type: textblock
22396 #: ../src/guestfs-actions.pod:249
22397 msgid ""
22398 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
22399 "QEMU interface emulation to use at run time."
22400 msgstr ""
22401
22402 #. type: textblock
22403 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
22404 #: ../src/guestfs-actions.pod:2458
22405 msgid "(Added in 1.0.84)"
22406 msgstr ""
22407
22408 #. type: =head2
22409 #: ../src/guestfs-actions.pod:263
22410 msgid "guestfs_add_drive_with_if"
22411 msgstr ""
22412
22413 #. type: verbatim
22414 #: ../src/guestfs-actions.pod:265
22415 #, no-wrap
22416 msgid ""
22417 " int\n"
22418 " guestfs_add_drive_with_if (guestfs_h *g,\n"
22419 "                            const char *filename,\n"
22420 "                            const char *iface);\n"
22421 "\n"
22422 msgstr ""
22423
22424 #. type: textblock
22425 #: ../src/guestfs-actions.pod:270
22426 msgid ""
22427 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
22428 "QEMU interface emulation to use at run time."
22429 msgstr ""
22430
22431 #. type: =head2
22432 #: ../src/guestfs-actions.pod:284
22433 msgid "guestfs_aug_clear"
22434 msgstr ""
22435
22436 #. type: verbatim
22437 #: ../src/guestfs-actions.pod:286
22438 #, no-wrap
22439 msgid ""
22440 " int\n"
22441 " guestfs_aug_clear (guestfs_h *g,\n"
22442 "                    const char *augpath);\n"
22443 "\n"
22444 msgstr ""
22445
22446 #. type: textblock
22447 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2186
22448 msgid "(Added in 1.3.4)"
22449 msgstr ""
22450
22451 #. type: =head2
22452 #: ../src/guestfs-actions.pod:297
22453 msgid "guestfs_aug_close"
22454 msgstr ""
22455
22456 #. type: verbatim
22457 #: ../src/guestfs-actions.pod:299
22458 #, no-wrap
22459 msgid ""
22460 " int\n"
22461 " guestfs_aug_close (guestfs_h *g);\n"
22462 "\n"
22463 msgstr ""
22464
22465 #. type: textblock
22466 #: ../src/guestfs-actions.pod:302
22467 msgid ""
22468 "Close the current Augeas handle and free up any resources used by it.  After "
22469 "calling this, you have to call C<guestfs_aug_init> again before you can use "
22470 "any other Augeas functions."
22471 msgstr ""
22472
22473 #. type: textblock
22474 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
22475 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
22476 #: ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449
22477 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494
22478 #: ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522
22479 #: ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554
22480 #: ../src/guestfs-actions.pod:5873
22481 msgid "(Added in 0.7)"
22482 msgstr ""
22483
22484 #. type: =head2
22485 #: ../src/guestfs-actions.pod:311
22486 msgid "guestfs_aug_defnode"
22487 msgstr ""
22488
22489 #. type: verbatim
22490 #: ../src/guestfs-actions.pod:313
22491 #, no-wrap
22492 msgid ""
22493 " struct guestfs_int_bool *\n"
22494 " guestfs_aug_defnode (guestfs_h *g,\n"
22495 "                      const char *name,\n"
22496 "                      const char *expr,\n"
22497 "                      const char *val);\n"
22498 "\n"
22499 msgstr ""
22500
22501 #. type: textblock
22502 #: ../src/guestfs-actions.pod:322
22503 msgid ""
22504 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
22505 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
22506 "containing that single node."
22507 msgstr ""
22508
22509 #. type: textblock
22510 #: ../src/guestfs-actions.pod:330
22511 msgid ""
22512 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
22513 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
22514 msgstr ""
22515
22516 #. type: =head2
22517 #: ../src/guestfs-actions.pod:336
22518 msgid "guestfs_aug_defvar"
22519 msgstr ""
22520
22521 #. type: verbatim
22522 #: ../src/guestfs-actions.pod:338
22523 #, no-wrap
22524 msgid ""
22525 " int\n"
22526 " guestfs_aug_defvar (guestfs_h *g,\n"
22527 "                     const char *name,\n"
22528 "                     const char *expr);\n"
22529 "\n"
22530 msgstr ""
22531
22532 #. type: =head2
22533 #: ../src/guestfs-actions.pod:354
22534 msgid "guestfs_aug_get"
22535 msgstr ""
22536
22537 #. type: verbatim
22538 #: ../src/guestfs-actions.pod:356
22539 #, no-wrap
22540 msgid ""
22541 " char *\n"
22542 " guestfs_aug_get (guestfs_h *g,\n"
22543 "                  const char *augpath);\n"
22544 "\n"
22545 msgstr ""
22546
22547 #. type: textblock
22548 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927
22549 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005
22550 #: ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124
22551 #: ../src/guestfs-actions.pod:1254 ../src/guestfs-actions.pod:1271
22552 #: ../src/guestfs-actions.pod:1290 ../src/guestfs-actions.pod:1424
22553 #: ../src/guestfs-actions.pod:1612 ../src/guestfs-actions.pod:1724
22554 #: ../src/guestfs-actions.pod:1887 ../src/guestfs-actions.pod:1904
22555 #: ../src/guestfs-actions.pod:1971 ../src/guestfs-actions.pod:2007
22556 #: ../src/guestfs-actions.pod:2028 ../src/guestfs-actions.pod:2209
22557 #: ../src/guestfs-actions.pod:2423 ../src/guestfs-actions.pod:2627
22558 #: ../src/guestfs-actions.pod:2717 ../src/guestfs-actions.pod:2821
22559 #: ../src/guestfs-actions.pod:2840 ../src/guestfs-actions.pod:3054
22560 #: ../src/guestfs-actions.pod:3082 ../src/guestfs-actions.pod:3103
22561 #: ../src/guestfs-actions.pod:3137 ../src/guestfs-actions.pod:3196
22562 #: ../src/guestfs-actions.pod:3216 ../src/guestfs-actions.pod:3236
22563 #: ../src/guestfs-actions.pod:3863 ../src/guestfs-actions.pod:4216
22564 #: ../src/guestfs-actions.pod:4386 ../src/guestfs-actions.pod:4496
22565 #: ../src/guestfs-actions.pod:5402 ../src/guestfs-actions.pod:5601
22566 #: ../src/guestfs-actions.pod:5771 ../src/guestfs-actions.pod:5949
22567 #: ../src/guestfs-actions.pod:5998 ../src/guestfs-actions.pod:6654
22568 #: ../src/guestfs-actions.pod:6670 ../src/guestfs-actions.pod:6687
22569 #: ../src/guestfs-actions.pod:6718 ../src/guestfs-actions.pod:7392
22570 #: ../src/guestfs-actions.pod:7411 ../src/guestfs-actions.pod:7429
22571 #: ../src/guestfs-actions.pod:7603 ../src/guestfs-actions.pod:7913
22572 msgid ""
22573 "This function returns a string, or NULL on error.  I<The caller must free "
22574 "the returned string after use>."
22575 msgstr ""
22576
22577 #. type: =head2
22578 #: ../src/guestfs-actions.pod:368
22579 msgid "guestfs_aug_init"
22580 msgstr ""
22581
22582 #. type: verbatim
22583 #: ../src/guestfs-actions.pod:370
22584 #, no-wrap
22585 msgid ""
22586 " int\n"
22587 " guestfs_aug_init (guestfs_h *g,\n"
22588 "                   const char *root,\n"
22589 "                   int flags);\n"
22590 "\n"
22591 msgstr ""
22592
22593 #. type: textblock
22594 #: ../src/guestfs-actions.pod:379
22595 msgid "You must call this before using any other C<guestfs_aug_*> commands."
22596 msgstr ""
22597
22598 #. type: textblock
22599 #: ../src/guestfs-actions.pod:404
22600 msgid ""
22601 "This option is only useful when debugging Augeas lenses.  Use of this option "
22602 "may require additional memory for the libguestfs appliance.  You may need to "
22603 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
22604 "C<guestfs_set_memsize>."
22605 msgstr ""
22606
22607 #. type: textblock
22608 #: ../src/guestfs-actions.pod:419
22609 msgid "Do not load the tree in C<guestfs_aug_init>."
22610 msgstr ""
22611
22612 #. type: textblock
22613 #: ../src/guestfs-actions.pod:423
22614 msgid "To close the handle, you can call C<guestfs_aug_close>."
22615 msgstr ""
22616
22617 #. type: =head2
22618 #: ../src/guestfs-actions.pod:431
22619 msgid "guestfs_aug_insert"
22620 msgstr ""
22621
22622 #. type: verbatim
22623 #: ../src/guestfs-actions.pod:433
22624 #, no-wrap
22625 msgid ""
22626 " int\n"
22627 " guestfs_aug_insert (guestfs_h *g,\n"
22628 "                     const char *augpath,\n"
22629 "                     const char *label,\n"
22630 "                     int before);\n"
22631 "\n"
22632 msgstr ""
22633
22634 #. type: =head2
22635 #: ../src/guestfs-actions.pod:451
22636 msgid "guestfs_aug_load"
22637 msgstr ""
22638
22639 #. type: verbatim
22640 #: ../src/guestfs-actions.pod:453
22641 #, no-wrap
22642 msgid ""
22643 " int\n"
22644 " guestfs_aug_load (guestfs_h *g);\n"
22645 "\n"
22646 msgstr ""
22647
22648 #. type: =head2
22649 #: ../src/guestfs-actions.pod:465
22650 msgid "guestfs_aug_ls"
22651 msgstr ""
22652
22653 #. type: verbatim
22654 #: ../src/guestfs-actions.pod:467
22655 #, no-wrap
22656 msgid ""
22657 " char **\n"
22658 " guestfs_aug_ls (guestfs_h *g,\n"
22659 "                 const char *augpath);\n"
22660 "\n"
22661 msgstr ""
22662
22663 #. type: textblock
22664 #: ../src/guestfs-actions.pod:471
22665 msgid ""
22666 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
22667 "sorting the resulting nodes into alphabetical order."
22668 msgstr ""
22669
22670 #. type: textblock
22671 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490
22672 #: ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143
22673 #: ../src/guestfs-actions.pod:1439 ../src/guestfs-actions.pod:1458
22674 #: ../src/guestfs-actions.pod:1561 ../src/guestfs-actions.pod:1580
22675 #: ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:2281
22676 #: ../src/guestfs-actions.pod:2297 ../src/guestfs-actions.pod:2316
22677 #: ../src/guestfs-actions.pod:2381 ../src/guestfs-actions.pod:2405
22678 #: ../src/guestfs-actions.pod:2476 ../src/guestfs-actions.pod:2525
22679 #: ../src/guestfs-actions.pod:2782 ../src/guestfs-actions.pod:3156
22680 #: ../src/guestfs-actions.pod:3432 ../src/guestfs-actions.pod:3746
22681 #: ../src/guestfs-actions.pod:3763 ../src/guestfs-actions.pod:3783
22682 #: ../src/guestfs-actions.pod:3845 ../src/guestfs-actions.pod:3950
22683 #: ../src/guestfs-actions.pod:4358 ../src/guestfs-actions.pod:5125
22684 #: ../src/guestfs-actions.pod:5743 ../src/guestfs-actions.pod:5869
22685 #: ../src/guestfs-actions.pod:5983 ../src/guestfs-actions.pod:6734
22686 #: ../src/guestfs-actions.pod:6795 ../src/guestfs-actions.pod:6850
22687 #: ../src/guestfs-actions.pod:6996 ../src/guestfs-actions.pod:7020
22688 #: ../src/guestfs-actions.pod:7496 ../src/guestfs-actions.pod:7516
22689 #: ../src/guestfs-actions.pod:7563 ../src/guestfs-actions.pod:7757
22690 #: ../src/guestfs-actions.pod:7776 ../src/guestfs-actions.pod:7870
22691 #: ../src/guestfs-actions.pod:7889 ../src/guestfs-actions.pod:7935
22692 #: ../src/guestfs-actions.pod:7954
22693 msgid ""
22694 "This function returns a NULL-terminated array of strings (like L<environ(3)"
22695 ">), or NULL if there was an error.  I<The caller must free the strings and "
22696 "the array after use>."
22697 msgstr ""
22698
22699 #. type: textblock
22700 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068
22701 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1496
22702 #: ../src/guestfs-actions.pod:3510 ../src/guestfs-actions.pod:3541
22703 #: ../src/guestfs-actions.pod:4199 ../src/guestfs-actions.pod:4249
22704 #: ../src/guestfs-actions.pod:4436 ../src/guestfs-actions.pod:4469
22705 #: ../src/guestfs-actions.pod:4632 ../src/guestfs-actions.pod:5129
22706 #: ../src/guestfs-actions.pod:5684 ../src/guestfs-actions.pod:6081
22707 #: ../src/guestfs-actions.pod:6095 ../src/guestfs-actions.pod:6107
22708 #: ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:7234
22709 #: ../src/guestfs-actions.pod:7247 ../src/guestfs-actions.pod:7480
22710 #: ../src/guestfs-actions.pod:7745
22711 msgid "(Added in 0.8)"
22712 msgstr ""
22713
22714 #. type: =head2
22715 #: ../src/guestfs-actions.pod:480
22716 msgid "guestfs_aug_match"
22717 msgstr ""
22718
22719 #. type: verbatim
22720 #: ../src/guestfs-actions.pod:482
22721 #, no-wrap
22722 msgid ""
22723 " char **\n"
22724 " guestfs_aug_match (guestfs_h *g,\n"
22725 "                    const char *augpath);\n"
22726 "\n"
22727 msgstr ""
22728
22729 #. type: =head2
22730 #: ../src/guestfs-actions.pod:496
22731 msgid "guestfs_aug_mv"
22732 msgstr ""
22733
22734 #. type: verbatim
22735 #: ../src/guestfs-actions.pod:498
22736 #, no-wrap
22737 msgid ""
22738 " int\n"
22739 " guestfs_aug_mv (guestfs_h *g,\n"
22740 "                 const char *src,\n"
22741 "                 const char *dest);\n"
22742 "\n"
22743 msgstr ""
22744
22745 #. type: =head2
22746 #: ../src/guestfs-actions.pod:510
22747 msgid "guestfs_aug_rm"
22748 msgstr ""
22749
22750 #. type: verbatim
22751 #: ../src/guestfs-actions.pod:512
22752 #, no-wrap
22753 msgid ""
22754 " int\n"
22755 " guestfs_aug_rm (guestfs_h *g,\n"
22756 "                 const char *augpath);\n"
22757 "\n"
22758 msgstr ""
22759
22760 #. type: =head2
22761 #: ../src/guestfs-actions.pod:524
22762 msgid "guestfs_aug_save"
22763 msgstr ""
22764
22765 #. type: verbatim
22766 #: ../src/guestfs-actions.pod:526
22767 #, no-wrap
22768 msgid ""
22769 " int\n"
22770 " guestfs_aug_save (guestfs_h *g);\n"
22771 "\n"
22772 msgstr ""
22773
22774 #. type: textblock
22775 #: ../src/guestfs-actions.pod:531
22776 msgid ""
22777 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
22778 "are saved."
22779 msgstr ""
22780
22781 #. type: =head2
22782 #: ../src/guestfs-actions.pod:538
22783 msgid "guestfs_aug_set"
22784 msgstr ""
22785
22786 #. type: verbatim
22787 #: ../src/guestfs-actions.pod:540
22788 #, no-wrap
22789 msgid ""
22790 " int\n"
22791 " guestfs_aug_set (guestfs_h *g,\n"
22792 "                  const char *augpath,\n"
22793 "                  const char *val);\n"
22794 "\n"
22795 msgstr ""
22796
22797 #. type: textblock
22798 #: ../src/guestfs-actions.pod:547
22799 msgid ""
22800 "In the Augeas API, it is possible to clear a node by setting the value to "
22801 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
22802 "this call.  Instead you must use the C<guestfs_aug_clear> call."
22803 msgstr ""
22804
22805 #. type: =head2
22806 #: ../src/guestfs-actions.pod:556
22807 msgid "guestfs_available"
22808 msgstr ""
22809
22810 #. type: verbatim
22811 #: ../src/guestfs-actions.pod:558
22812 #, no-wrap
22813 msgid ""
22814 " int\n"
22815 " guestfs_available (guestfs_h *g,\n"
22816 "                    char *const *groups);\n"
22817 "\n"
22818 msgstr ""
22819
22820 #. type: textblock
22821 #: ../src/guestfs-actions.pod:566
22822 msgid ""
22823 "The libguestfs groups, and the functions that those groups correspond to, "
22824 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
22825 "runtime by calling C<guestfs_available_all_groups>."
22826 msgstr ""
22827
22828 #. type: textblock
22829 #: ../src/guestfs-actions.pod:590
22830 msgid "You must call C<guestfs_launch> before calling this function."
22831 msgstr ""
22832
22833 #. type: textblock
22834 #: ../src/guestfs-actions.pod:612
22835 msgid ""
22836 "This call was added in version C<1.0.80>.  In previous versions of "
22837 "libguestfs all you could do would be to speculatively execute a command to "
22838 "find out if the daemon implemented it.  See also C<guestfs_version>."
22839 msgstr ""
22840
22841 #. type: textblock
22842 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1241
22843 msgid "(Added in 1.0.80)"
22844 msgstr ""
22845
22846 #. type: =head2
22847 #: ../src/guestfs-actions.pod:623
22848 msgid "guestfs_available_all_groups"
22849 msgstr ""
22850
22851 #. type: verbatim
22852 #: ../src/guestfs-actions.pod:625
22853 #, no-wrap
22854 msgid ""
22855 " char **\n"
22856 " guestfs_available_all_groups (guestfs_h *g);\n"
22857 "\n"
22858 msgstr ""
22859
22860 #. type: textblock
22861 #: ../src/guestfs-actions.pod:628
22862 msgid ""
22863 "This command returns a list of all optional groups that this daemon knows "
22864 "about.  Note this returns both supported and unsupported groups.  To find "
22865 "out which ones the daemon can actually support you have to call "
22866 "C<guestfs_available> on each member of the returned list."
22867 msgstr ""
22868
22869 #. type: textblock
22870 #: ../src/guestfs-actions.pod:634
22871 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
22872 msgstr ""
22873
22874 #. type: textblock
22875 #: ../src/guestfs-actions.pod:640
22876 msgid "(Added in 1.3.15)"
22877 msgstr ""
22878
22879 #. type: =head2
22880 #: ../src/guestfs-actions.pod:642
22881 msgid "guestfs_base64_in"
22882 msgstr ""
22883
22884 #. type: verbatim
22885 #: ../src/guestfs-actions.pod:644
22886 #, no-wrap
22887 msgid ""
22888 " int\n"
22889 " guestfs_base64_in (guestfs_h *g,\n"
22890 "                    const char *base64file,\n"
22891 "                    const char *filename);\n"
22892 "\n"
22893 msgstr ""
22894
22895 #. type: textblock
22896 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
22897 msgid "(Added in 1.3.5)"
22898 msgstr ""
22899
22900 #. type: =head2
22901 #: ../src/guestfs-actions.pod:656
22902 msgid "guestfs_base64_out"
22903 msgstr ""
22904
22905 #. type: verbatim
22906 #: ../src/guestfs-actions.pod:658
22907 #, no-wrap
22908 msgid ""
22909 " int\n"
22910 " guestfs_base64_out (guestfs_h *g,\n"
22911 "                     const char *filename,\n"
22912 "                     const char *base64file);\n"
22913 "\n"
22914 msgstr ""
22915
22916 #. type: =head2
22917 #: ../src/guestfs-actions.pod:670
22918 msgid "guestfs_blockdev_flushbufs"
22919 msgstr ""
22920
22921 #. type: verbatim
22922 #: ../src/guestfs-actions.pod:672
22923 #, no-wrap
22924 msgid ""
22925 " int\n"
22926 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
22927 "                             const char *device);\n"
22928 "\n"
22929 msgstr ""
22930
22931 #. type: textblock
22932 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700
22933 #: ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731
22934 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768
22935 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
22936 #: ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
22937 msgid "(Added in 0.9.3)"
22938 msgstr ""
22939
22940 #. type: =head2
22941 #: ../src/guestfs-actions.pod:685
22942 msgid "guestfs_blockdev_getbsz"
22943 msgstr ""
22944
22945 #. type: verbatim
22946 #: ../src/guestfs-actions.pod:687
22947 #, no-wrap
22948 msgid ""
22949 " int\n"
22950 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
22951 "                          const char *device);\n"
22952 "\n"
22953 msgstr ""
22954
22955 #. type: =head2
22956 #: ../src/guestfs-actions.pod:702
22957 msgid "guestfs_blockdev_getro"
22958 msgstr ""
22959
22960 #. type: verbatim
22961 #: ../src/guestfs-actions.pod:704
22962 #, no-wrap
22963 msgid ""
22964 " int\n"
22965 " guestfs_blockdev_getro (guestfs_h *g,\n"
22966 "                         const char *device);\n"
22967 "\n"
22968 msgstr ""
22969
22970 #. type: textblock
22971 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1479
22972 #: ../src/guestfs-actions.pod:1494 ../src/guestfs-actions.pod:1983
22973 #: ../src/guestfs-actions.pod:1994 ../src/guestfs-actions.pod:2066
22974 #: ../src/guestfs-actions.pod:2092 ../src/guestfs-actions.pod:2132
22975 #: ../src/guestfs-actions.pod:2147 ../src/guestfs-actions.pod:2172
22976 #: ../src/guestfs-actions.pod:2195 ../src/guestfs-actions.pod:3253
22977 #: ../src/guestfs-actions.pod:3269 ../src/guestfs-actions.pod:3287
22978 #: ../src/guestfs-actions.pod:3449 ../src/guestfs-actions.pod:3463
22979 #: ../src/guestfs-actions.pod:3478 ../src/guestfs-actions.pod:3492
22980 #: ../src/guestfs-actions.pod:3508 ../src/guestfs-actions.pod:3523
22981 #: ../src/guestfs-actions.pod:3539 ../src/guestfs-actions.pod:3553
22982 #: ../src/guestfs-actions.pod:3566 ../src/guestfs-actions.pod:3580
22983 #: ../src/guestfs-actions.pod:3595 ../src/guestfs-actions.pod:3610
22984 #: ../src/guestfs-actions.pod:3623 ../src/guestfs-actions.pod:3637
22985 #: ../src/guestfs-actions.pod:5366
22986 msgid "This function returns a C truth value on success or -1 on error."
22987 msgstr ""
22988
22989 #. type: =head2
22990 #: ../src/guestfs-actions.pod:717
22991 msgid "guestfs_blockdev_getsize64"
22992 msgstr ""
22993
22994 #. type: verbatim
22995 #: ../src/guestfs-actions.pod:719
22996 #, no-wrap
22997 msgid ""
22998 " int64_t\n"
22999 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
23000 "                             const char *device);\n"
23001 "\n"
23002 msgstr ""
23003
23004 #. type: textblock
23005 #: ../src/guestfs-actions.pod:725
23006 msgid "See also C<guestfs_blockdev_getsz>."
23007 msgstr ""
23008
23009 #. type: =head2
23010 #: ../src/guestfs-actions.pod:733
23011 msgid "guestfs_blockdev_getss"
23012 msgstr ""
23013
23014 #. type: verbatim
23015 #: ../src/guestfs-actions.pod:735
23016 #, no-wrap
23017 msgid ""
23018 " int\n"
23019 " guestfs_blockdev_getss (guestfs_h *g,\n"
23020 "                         const char *device);\n"
23021 "\n"
23022 msgstr ""
23023
23024 #. type: textblock
23025 #: ../src/guestfs-actions.pod:742
23026 msgid ""
23027 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
23028 "that)."
23029 msgstr ""
23030
23031 #. type: =head2
23032 #: ../src/guestfs-actions.pod:751
23033 msgid "guestfs_blockdev_getsz"
23034 msgstr ""
23035
23036 #. type: verbatim
23037 #: ../src/guestfs-actions.pod:753
23038 #, no-wrap
23039 msgid ""
23040 " int64_t\n"
23041 " guestfs_blockdev_getsz (guestfs_h *g,\n"
23042 "                         const char *device);\n"
23043 "\n"
23044 msgstr ""
23045
23046 #. type: textblock
23047 #: ../src/guestfs-actions.pod:760
23048 msgid ""
23049 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
23050 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
23051 msgstr ""
23052
23053 #. type: =head2
23054 #: ../src/guestfs-actions.pod:770
23055 msgid "guestfs_blockdev_rereadpt"
23056 msgstr ""
23057
23058 #. type: verbatim
23059 #: ../src/guestfs-actions.pod:772
23060 #, no-wrap
23061 msgid ""
23062 " int\n"
23063 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
23064 "                            const char *device);\n"
23065 "\n"
23066 msgstr ""
23067
23068 #. type: =head2
23069 #: ../src/guestfs-actions.pod:784
23070 msgid "guestfs_blockdev_setbsz"
23071 msgstr ""
23072
23073 #. type: verbatim
23074 #: ../src/guestfs-actions.pod:786
23075 #, no-wrap
23076 msgid ""
23077 " int\n"
23078 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
23079 "                          const char *device,\n"
23080 "                          int blocksize);\n"
23081 "\n"
23082 msgstr ""
23083
23084 #. type: =head2
23085 #: ../src/guestfs-actions.pod:802
23086 msgid "guestfs_blockdev_setro"
23087 msgstr ""
23088
23089 #. type: verbatim
23090 #: ../src/guestfs-actions.pod:804
23091 #, no-wrap
23092 msgid ""
23093 " int\n"
23094 " guestfs_blockdev_setro (guestfs_h *g,\n"
23095 "                         const char *device);\n"
23096 "\n"
23097 msgstr ""
23098
23099 #. type: =head2
23100 #: ../src/guestfs-actions.pod:816
23101 msgid "guestfs_blockdev_setrw"
23102 msgstr ""
23103
23104 #. type: verbatim
23105 #: ../src/guestfs-actions.pod:818
23106 #, no-wrap
23107 msgid ""
23108 " int\n"
23109 " guestfs_blockdev_setrw (guestfs_h *g,\n"
23110 "                         const char *device);\n"
23111 "\n"
23112 msgstr ""
23113
23114 #. type: =head2
23115 #: ../src/guestfs-actions.pod:830
23116 msgid "guestfs_btrfs_filesystem_resize"
23117 msgstr ""
23118
23119 #. type: verbatim
23120 #: ../src/guestfs-actions.pod:832
23121 #, no-wrap
23122 msgid ""
23123 " int\n"
23124 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
23125 "                                  const char *mountpoint,\n"
23126 "                                  ...);\n"
23127 "\n"
23128 msgstr ""
23129
23130 #. type: verbatim
23131 #: ../src/guestfs-actions.pod:842
23132 #, no-wrap
23133 msgid ""
23134 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
23135 "\n"
23136 msgstr ""
23137
23138 #. type: textblock
23139 #: ../src/guestfs-actions.pod:865
23140 msgid "(Added in 1.11.17)"
23141 msgstr ""
23142
23143 #. type: =head2
23144 #: ../src/guestfs-actions.pod:867
23145 msgid "guestfs_btrfs_filesystem_resize_va"
23146 msgstr ""
23147
23148 #. type: verbatim
23149 #: ../src/guestfs-actions.pod:869
23150 #, no-wrap
23151 msgid ""
23152 " int\n"
23153 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
23154 "                                     const char *mountpoint,\n"
23155 "                                     va_list args);\n"
23156 "\n"
23157 msgstr ""
23158
23159 #. type: textblock
23160 #: ../src/guestfs-actions.pod:874
23161 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
23162 msgstr ""
23163
23164 #. type: =head2
23165 #: ../src/guestfs-actions.pod:878
23166 msgid "guestfs_btrfs_filesystem_resize_argv"
23167 msgstr ""
23168
23169 #. type: verbatim
23170 #: ../src/guestfs-actions.pod:880
23171 #, no-wrap
23172 msgid ""
23173 " int\n"
23174 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
23175 "                                       const char *mountpoint,\n"
23176 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
23177 "\n"
23178 msgstr ""
23179
23180 #. type: textblock
23181 #: ../src/guestfs-actions.pod:885
23182 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
23183 msgstr ""
23184
23185 #. type: =head2
23186 #: ../src/guestfs-actions.pod:889
23187 msgid "guestfs_case_sensitive_path"
23188 msgstr ""
23189
23190 #. type: verbatim
23191 #: ../src/guestfs-actions.pod:891
23192 #, no-wrap
23193 msgid ""
23194 " char *\n"
23195 " guestfs_case_sensitive_path (guestfs_h *g,\n"
23196 "                              const char *path);\n"
23197 "\n"
23198 msgstr ""
23199
23200 #. type: textblock
23201 #: ../src/guestfs-actions.pod:917
23202 msgid ""
23203 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
23204 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
23205 "how the directories were originally created under Windows)."
23206 msgstr ""
23207
23208 #. type: textblock
23209 #: ../src/guestfs-actions.pod:925
23210 msgid "See also C<guestfs_realpath>."
23211 msgstr ""
23212
23213 #. type: textblock
23214 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7414
23215 msgid "(Added in 1.0.75)"
23216 msgstr ""
23217
23218 #. type: =head2
23219 #: ../src/guestfs-actions.pod:932
23220 msgid "guestfs_cat"
23221 msgstr ""
23222
23223 #. type: verbatim
23224 #: ../src/guestfs-actions.pod:934
23225 #, no-wrap
23226 msgid ""
23227 " char *\n"
23228 " guestfs_cat (guestfs_h *g,\n"
23229 "              const char *path);\n"
23230 "\n"
23231 msgstr ""
23232
23233 #. type: textblock
23234 #: ../src/guestfs-actions.pod:940
23235 msgid ""
23236 "Note that this function cannot correctly handle binary files (specifically, "
23237 "files containing C<\\0> character which is treated as end of string).  For "
23238 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
23239 "functions which have a more complex interface."
23240 msgstr ""
23241
23242 #. type: textblock
23243 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3767
23244 #: ../src/guestfs-actions.pod:3849 ../src/guestfs-actions.pod:3866
23245 #: ../src/guestfs-actions.pod:3954 ../src/guestfs-actions.pod:4362
23246 #: ../src/guestfs-actions.pod:4376 ../src/guestfs-actions.pod:5747
23247 #: ../src/guestfs-actions.pod:5761 ../src/guestfs-actions.pod:7567
23248 #: ../src/guestfs-actions.pod:7581
23249 msgid "(Added in 0.4)"
23250 msgstr ""
23251
23252 #. type: =head2
23253 #: ../src/guestfs-actions.pod:953
23254 msgid "guestfs_checksum"
23255 msgstr ""
23256
23257 #. type: verbatim
23258 #: ../src/guestfs-actions.pod:955
23259 #, no-wrap
23260 msgid ""
23261 " char *\n"
23262 " guestfs_checksum (guestfs_h *g,\n"
23263 "                   const char *csumtype,\n"
23264 "                   const char *path);\n"
23265 "\n"
23266 msgstr ""
23267
23268 #. type: textblock
23269 #: ../src/guestfs-actions.pod:1001
23270 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
23271 msgstr ""
23272
23273 #. type: textblock
23274 #: ../src/guestfs-actions.pod:1003
23275 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
23276 msgstr ""
23277
23278 #. type: textblock
23279 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1316
23280 #: ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:3465
23281 #: ../src/guestfs-actions.pod:3494 ../src/guestfs-actions.pod:3555
23282 #: ../src/guestfs-actions.pod:3582 ../src/guestfs-actions.pod:7270
23283 msgid "(Added in 1.0.2)"
23284 msgstr ""
23285
23286 #. type: =head2
23287 #: ../src/guestfs-actions.pod:1010
23288 msgid "guestfs_checksum_device"
23289 msgstr ""
23290
23291 #. type: verbatim
23292 #: ../src/guestfs-actions.pod:1012
23293 #, no-wrap
23294 msgid ""
23295 " char *\n"
23296 " guestfs_checksum_device (guestfs_h *g,\n"
23297 "                          const char *csumtype,\n"
23298 "                          const char *device);\n"
23299 "\n"
23300 msgstr ""
23301
23302 #. type: textblock
23303 #: ../src/guestfs-actions.pod:1017
23304 msgid ""
23305 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
23306 "device named C<device>.  For the types of checksums supported see the "
23307 "C<guestfs_checksum> command."
23308 msgstr ""
23309
23310 #. type: textblock
23311 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5196
23312 #: ../src/guestfs-actions.pod:5331 ../src/guestfs-actions.pod:5368
23313 #: ../src/guestfs-actions.pod:5386 ../src/guestfs-actions.pod:5568
23314 #: ../src/guestfs-actions.pod:7179 ../src/guestfs-actions.pod:7193
23315 #: ../src/guestfs-actions.pod:7593
23316 msgid "(Added in 1.3.2)"
23317 msgstr ""
23318
23319 #. type: =head2
23320 #: ../src/guestfs-actions.pod:1026
23321 msgid "guestfs_checksums_out"
23322 msgstr ""
23323
23324 #. type: verbatim
23325 #: ../src/guestfs-actions.pod:1028
23326 #, no-wrap
23327 msgid ""
23328 " int\n"
23329 " guestfs_checksums_out (guestfs_h *g,\n"
23330 "                        const char *csumtype,\n"
23331 "                        const char *directory,\n"
23332 "                        const char *sumsfile);\n"
23333 "\n"
23334 msgstr ""
23335
23336 #. type: textblock
23337 #: ../src/guestfs-actions.pod:1048
23338 msgid "(Added in 1.3.7)"
23339 msgstr ""
23340
23341 #. type: =head2
23342 #: ../src/guestfs-actions.pod:1050
23343 msgid "guestfs_chmod"
23344 msgstr ""
23345
23346 #. type: verbatim
23347 #: ../src/guestfs-actions.pod:1052
23348 #, no-wrap
23349 msgid ""
23350 " int\n"
23351 " guestfs_chmod (guestfs_h *g,\n"
23352 "                int mode,\n"
23353 "                const char *path);\n"
23354 "\n"
23355 msgstr ""
23356
23357 #. type: =head2
23358 #: ../src/guestfs-actions.pod:1070
23359 msgid "guestfs_chown"
23360 msgstr ""
23361
23362 #. type: verbatim
23363 #: ../src/guestfs-actions.pod:1072
23364 #, no-wrap
23365 msgid ""
23366 " int\n"
23367 " guestfs_chown (guestfs_h *g,\n"
23368 "                int owner,\n"
23369 "                int group,\n"
23370 "                const char *path);\n"
23371 "\n"
23372 msgstr ""
23373
23374 #. type: =head2
23375 #: ../src/guestfs-actions.pod:1088
23376 msgid "guestfs_command"
23377 msgstr ""
23378
23379 #. type: verbatim
23380 #: ../src/guestfs-actions.pod:1090
23381 #, no-wrap
23382 msgid ""
23383 " char *\n"
23384 " guestfs_command (guestfs_h *g,\n"
23385 "                  char *const *arguments);\n"
23386 "\n"
23387 msgstr ""
23388
23389 #. type: textblock
23390 #: ../src/guestfs-actions.pod:1099
23391 msgid ""
23392 "The single parameter is an argv-style list of arguments.  The first element "
23393 "is the name of the program to run.  Subsequent elements are parameters.  The "
23394 "list must be non-empty (ie. must contain a program name).  Note that the "
23395 "command runs directly, and is I<not> invoked via the shell (see "
23396 "C<guestfs_sh>)."
23397 msgstr ""
23398
23399 #. type: textblock
23400 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150
23401 #: ../src/guestfs-actions.pod:1615
23402 msgid "(Added in 0.9.1)"
23403 msgstr ""
23404
23405 #. type: =head2
23406 #: ../src/guestfs-actions.pod:1132
23407 msgid "guestfs_command_lines"
23408 msgstr ""
23409
23410 #. type: verbatim
23411 #: ../src/guestfs-actions.pod:1134
23412 #, no-wrap
23413 msgid ""
23414 " char **\n"
23415 " guestfs_command_lines (guestfs_h *g,\n"
23416 "                        char *const *arguments);\n"
23417 "\n"
23418 msgstr ""
23419
23420 #. type: textblock
23421 #: ../src/guestfs-actions.pod:1138
23422 msgid ""
23423 "This is the same as C<guestfs_command>, but splits the result into a list of "
23424 "lines."
23425 msgstr ""
23426
23427 #. type: textblock
23428 #: ../src/guestfs-actions.pod:1141
23429 msgid "See also: C<guestfs_sh_lines>"
23430 msgstr ""
23431
23432 #. type: =head2
23433 #: ../src/guestfs-actions.pod:1152
23434 msgid "guestfs_config"
23435 msgstr ""
23436
23437 #. type: verbatim
23438 #: ../src/guestfs-actions.pod:1154
23439 #, no-wrap
23440 msgid ""
23441 " int\n"
23442 " guestfs_config (guestfs_h *g,\n"
23443 "                 const char *qemuparam,\n"
23444 "                 const char *qemuvalue);\n"
23445 "\n"
23446 msgstr ""
23447
23448 #. type: =head2
23449 #: ../src/guestfs-actions.pod:1172
23450 msgid "guestfs_copy_size"
23451 msgstr ""
23452
23453 #. type: verbatim
23454 #: ../src/guestfs-actions.pod:1174
23455 #, no-wrap
23456 msgid ""
23457 " int\n"
23458 " guestfs_copy_size (guestfs_h *g,\n"
23459 "                    const char *src,\n"
23460 "                    const char *dest,\n"
23461 "                    int64_t size);\n"
23462 "\n"
23463 msgstr ""
23464
23465 #. type: textblock
23466 #: ../src/guestfs-actions.pod:1188 ../src/guestfs-actions.pod:1311
23467 #: ../src/guestfs-actions.pod:1342 ../src/guestfs-actions.pod:1387
23468 #: ../src/guestfs-actions.pod:1764 ../src/guestfs-actions.pod:1786
23469 #: ../src/guestfs-actions.pod:3665 ../src/guestfs-actions.pod:7265
23470 #: ../src/guestfs-actions.pod:7299 ../src/guestfs-actions.pod:7806
23471 #: ../src/guestfs-actions.pod:7829
23472 msgid ""
23473 "This long-running command can generate progress notification messages so "
23474 "that the caller can display a progress bar or indicator.  To receive these "
23475 "messages, the caller must register a progress event callback.  See L<guestfs"
23476 "(3)/GUESTFS_EVENT_PROGRESS>."
23477 msgstr ""
23478
23479 #. type: textblock
23480 #: ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:4389
23481 #: ../src/guestfs-actions.pod:5774 ../src/guestfs-actions.pod:7500
23482 #: ../src/guestfs-actions.pod:7520 ../src/guestfs-actions.pod:7606
23483 msgid "(Added in 1.0.87)"
23484 msgstr ""
23485
23486 #. type: =head2
23487 #: ../src/guestfs-actions.pod:1195
23488 msgid "guestfs_cp"
23489 msgstr ""
23490
23491 #. type: verbatim
23492 #: ../src/guestfs-actions.pod:1197
23493 #, no-wrap
23494 msgid ""
23495 " int\n"
23496 " guestfs_cp (guestfs_h *g,\n"
23497 "             const char *src,\n"
23498 "             const char *dest);\n"
23499 "\n"
23500 msgstr ""
23501
23502 #. type: textblock
23503 #: ../src/guestfs-actions.pod:1207 ../src/guestfs-actions.pod:1221
23504 #: ../src/guestfs-actions.pod:1293 ../src/guestfs-actions.pod:1367
23505 #: ../src/guestfs-actions.pod:1481 ../src/guestfs-actions.pod:5143
23506 #: ../src/guestfs-actions.pod:5618
23507 msgid "(Added in 1.0.18)"
23508 msgstr ""
23509
23510 #. type: =head2
23511 #: ../src/guestfs-actions.pod:1209
23512 msgid "guestfs_cp_a"
23513 msgstr ""
23514
23515 #. type: verbatim
23516 #: ../src/guestfs-actions.pod:1211
23517 #, no-wrap
23518 msgid ""
23519 " int\n"
23520 " guestfs_cp_a (guestfs_h *g,\n"
23521 "               const char *src,\n"
23522 "               const char *dest);\n"
23523 "\n"
23524 msgstr ""
23525
23526 #. type: =head2
23527 #: ../src/guestfs-actions.pod:1223
23528 msgid "guestfs_dd"
23529 msgstr ""
23530
23531 #. type: verbatim
23532 #: ../src/guestfs-actions.pod:1225
23533 #, no-wrap
23534 msgid ""
23535 " int\n"
23536 " guestfs_dd (guestfs_h *g,\n"
23537 "             const char *src,\n"
23538 "             const char *dest);\n"
23539 "\n"
23540 msgstr ""
23541
23542 #. type: textblock
23543 #: ../src/guestfs-actions.pod:1235
23544 msgid ""
23545 "If the destination is a device, it must be as large or larger than the "
23546 "source file or device, otherwise the copy will fail.  This command cannot do "
23547 "partial copies (see C<guestfs_copy_size>)."
23548 msgstr ""
23549
23550 #. type: =head2
23551 #: ../src/guestfs-actions.pod:1243
23552 msgid "guestfs_df"
23553 msgstr ""
23554
23555 #. type: verbatim
23556 #: ../src/guestfs-actions.pod:1245
23557 #, no-wrap
23558 msgid ""
23559 " char *\n"
23560 " guestfs_df (guestfs_h *g);\n"
23561 "\n"
23562 msgstr ""
23563
23564 #. type: textblock
23565 #: ../src/guestfs-actions.pod:1250 ../src/guestfs-actions.pod:1267
23566 msgid ""
23567 "This command is mostly useful for interactive sessions.  It is I<not> "
23568 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
23569 "from programs."
23570 msgstr ""
23571
23572 #. type: textblock
23573 #: ../src/guestfs-actions.pod:1257 ../src/guestfs-actions.pod:1274
23574 #: ../src/guestfs-actions.pod:1392 ../src/guestfs-actions.pod:2388
23575 #: ../src/guestfs-actions.pod:2412 ../src/guestfs-actions.pod:2480
23576 #: ../src/guestfs-actions.pod:4499 ../src/guestfs-actions.pod:5043
23577 #: ../src/guestfs-actions.pod:7003 ../src/guestfs-actions.pod:7027
23578 #: ../src/guestfs-actions.pod:7646 ../src/guestfs-actions.pod:7659
23579 #: ../src/guestfs-actions.pod:7672
23580 msgid "(Added in 1.0.54)"
23581 msgstr ""
23582
23583 #. type: =head2
23584 #: ../src/guestfs-actions.pod:1259
23585 msgid "guestfs_df_h"
23586 msgstr ""
23587
23588 #. type: verbatim
23589 #: ../src/guestfs-actions.pod:1261
23590 #, no-wrap
23591 msgid ""
23592 " char *\n"
23593 " guestfs_df_h (guestfs_h *g);\n"
23594 "\n"
23595 msgstr ""
23596
23597 #. type: =head2
23598 #: ../src/guestfs-actions.pod:1276
23599 msgid "guestfs_dmesg"
23600 msgstr ""
23601
23602 #. type: verbatim
23603 #: ../src/guestfs-actions.pod:1278
23604 #, no-wrap
23605 msgid ""
23606 " char *\n"
23607 " guestfs_dmesg (guestfs_h *g);\n"
23608 "\n"
23609 msgstr ""
23610
23611 #. type: textblock
23612 #: ../src/guestfs-actions.pod:1285
23613 msgid ""
23614 "Another way to get the same information is to enable verbose messages with "
23615 "C<guestfs_set_verbose> or by setting the environment variable "
23616 "C<LIBGUESTFS_DEBUG=1> before running the program."
23617 msgstr ""
23618
23619 #. type: =head2
23620 #: ../src/guestfs-actions.pod:1295
23621 msgid "guestfs_download"
23622 msgstr ""
23623
23624 #. type: verbatim
23625 #: ../src/guestfs-actions.pod:1297
23626 #, no-wrap
23627 msgid ""
23628 " int\n"
23629 " guestfs_download (guestfs_h *g,\n"
23630 "                   const char *remotefilename,\n"
23631 "                   const char *filename);\n"
23632 "\n"
23633 msgstr ""
23634
23635 #. type: textblock
23636 #: ../src/guestfs-actions.pod:1307
23637 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
23638 msgstr ""
23639
23640 #. type: =head2
23641 #: ../src/guestfs-actions.pod:1318
23642 msgid "guestfs_download_offset"
23643 msgstr ""
23644
23645 #. type: verbatim
23646 #: ../src/guestfs-actions.pod:1320
23647 #, no-wrap
23648 msgid ""
23649 " int\n"
23650 " guestfs_download_offset (guestfs_h *g,\n"
23651 "                          const char *remotefilename,\n"
23652 "                          const char *filename,\n"
23653 "                          int64_t offset,\n"
23654 "                          int64_t size);\n"
23655 "\n"
23656 msgstr ""
23657
23658 #. type: textblock
23659 #: ../src/guestfs-actions.pod:1333
23660 msgid ""
23661 "Note that there is no limit on the amount of data that can be downloaded "
23662 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
23663 "full amount unless an error occurs."
23664 msgstr ""
23665
23666 #. type: textblock
23667 #: ../src/guestfs-actions.pod:1338
23668 msgid "See also C<guestfs_download>, C<guestfs_pread>."
23669 msgstr ""
23670
23671 #. type: textblock
23672 #: ../src/guestfs-actions.pod:1347 ../src/guestfs-actions.pod:7304
23673 msgid "(Added in 1.5.17)"
23674 msgstr ""
23675
23676 #. type: =head2
23677 #: ../src/guestfs-actions.pod:1349
23678 msgid "guestfs_drop_caches"
23679 msgstr ""
23680
23681 #. type: verbatim
23682 #: ../src/guestfs-actions.pod:1351
23683 #, no-wrap
23684 msgid ""
23685 " int\n"
23686 " guestfs_drop_caches (guestfs_h *g,\n"
23687 "                      int whattodrop);\n"
23688 "\n"
23689 msgstr ""
23690
23691 #. type: =head2
23692 #: ../src/guestfs-actions.pod:1369
23693 msgid "guestfs_du"
23694 msgstr ""
23695
23696 #. type: verbatim
23697 #: ../src/guestfs-actions.pod:1371
23698 #, no-wrap
23699 msgid ""
23700 " int64_t\n"
23701 " guestfs_du (guestfs_h *g,\n"
23702 "             const char *path);\n"
23703 "\n"
23704 msgstr ""
23705
23706 #. type: =head2
23707 #: ../src/guestfs-actions.pod:1394
23708 msgid "guestfs_e2fsck_f"
23709 msgstr ""
23710
23711 #. type: verbatim
23712 #: ../src/guestfs-actions.pod:1396
23713 #, no-wrap
23714 msgid ""
23715 " int\n"
23716 " guestfs_e2fsck_f (guestfs_h *g,\n"
23717 "                   const char *device);\n"
23718 "\n"
23719 msgstr ""
23720
23721 #. type: textblock
23722 #: ../src/guestfs-actions.pod:1404
23723 msgid ""
23724 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
23725 "Normally you should use C<guestfs_fsck>."
23726 msgstr ""
23727
23728 #. type: textblock
23729 #: ../src/guestfs-actions.pod:1409
23730 msgid "(Added in 1.0.29)"
23731 msgstr ""
23732
23733 #. type: =head2
23734 #: ../src/guestfs-actions.pod:1411
23735 msgid "guestfs_echo_daemon"
23736 msgstr ""
23737
23738 #. type: verbatim
23739 #: ../src/guestfs-actions.pod:1413
23740 #, no-wrap
23741 msgid ""
23742 " char *\n"
23743 " guestfs_echo_daemon (guestfs_h *g,\n"
23744 "                      char *const *words);\n"
23745 "\n"
23746 msgstr ""
23747
23748 #. type: textblock
23749 #: ../src/guestfs-actions.pod:1422
23750 msgid "See also C<guestfs_ping_daemon>."
23751 msgstr ""
23752
23753 #. type: textblock
23754 #: ../src/guestfs-actions.pod:1427 ../src/guestfs-actions.pod:2174
23755 #: ../src/guestfs-actions.pod:6475
23756 msgid "(Added in 1.0.69)"
23757 msgstr ""
23758
23759 #. type: =head2
23760 #: ../src/guestfs-actions.pod:1429
23761 msgid "guestfs_egrep"
23762 msgstr ""
23763
23764 #. type: verbatim
23765 #: ../src/guestfs-actions.pod:1431
23766 #, no-wrap
23767 msgid ""
23768 " char **\n"
23769 " guestfs_egrep (guestfs_h *g,\n"
23770 "                const char *regex,\n"
23771 "                const char *path);\n"
23772 "\n"
23773 msgstr ""
23774
23775 #. type: textblock
23776 #: ../src/guestfs-actions.pod:1446 ../src/guestfs-actions.pod:1465
23777 #: ../src/guestfs-actions.pod:1522 ../src/guestfs-actions.pod:1568
23778 #: ../src/guestfs-actions.pod:1587 ../src/guestfs-actions.pod:2304
23779 #: ../src/guestfs-actions.pod:2323 ../src/guestfs-actions.pod:2501
23780 #: ../src/guestfs-actions.pod:2514 ../src/guestfs-actions.pod:2529
23781 #: ../src/guestfs-actions.pod:2575 ../src/guestfs-actions.pod:2597
23782 #: ../src/guestfs-actions.pod:2610 ../src/guestfs-actions.pod:3879
23783 #: ../src/guestfs-actions.pod:3893 ../src/guestfs-actions.pod:3906
23784 #: ../src/guestfs-actions.pod:3920 ../src/guestfs-actions.pod:4921
23785 #: ../src/guestfs-actions.pod:5952 ../src/guestfs-actions.pod:6001
23786 #: ../src/guestfs-actions.pod:6871 ../src/guestfs-actions.pod:6883
23787 #: ../src/guestfs-actions.pod:6896 ../src/guestfs-actions.pod:6909
23788 #: ../src/guestfs-actions.pod:6931 ../src/guestfs-actions.pod:6944
23789 #: ../src/guestfs-actions.pod:6957 ../src/guestfs-actions.pod:6970
23790 #: ../src/guestfs-actions.pod:7764 ../src/guestfs-actions.pod:7783
23791 #: ../src/guestfs-actions.pod:7877 ../src/guestfs-actions.pod:7896
23792 #: ../src/guestfs-actions.pod:7942 ../src/guestfs-actions.pod:7961
23793 msgid "(Added in 1.0.66)"
23794 msgstr ""
23795
23796 #. type: =head2
23797 #: ../src/guestfs-actions.pod:1448
23798 msgid "guestfs_egrepi"
23799 msgstr ""
23800
23801 #. type: verbatim
23802 #: ../src/guestfs-actions.pod:1450
23803 #, no-wrap
23804 msgid ""
23805 " char **\n"
23806 " guestfs_egrepi (guestfs_h *g,\n"
23807 "                 const char *regex,\n"
23808 "                 const char *path);\n"
23809 "\n"
23810 msgstr ""
23811
23812 #. type: =head2
23813 #: ../src/guestfs-actions.pod:1467
23814 msgid "guestfs_equal"
23815 msgstr ""
23816
23817 #. type: verbatim
23818 #: ../src/guestfs-actions.pod:1469
23819 #, no-wrap
23820 msgid ""
23821 " int\n"
23822 " guestfs_equal (guestfs_h *g,\n"
23823 "                const char *file1,\n"
23824 "                const char *file2);\n"
23825 "\n"
23826 msgstr ""
23827
23828 #. type: =head2
23829 #: ../src/guestfs-actions.pod:1483
23830 msgid "guestfs_exists"
23831 msgstr ""
23832
23833 #. type: verbatim
23834 #: ../src/guestfs-actions.pod:1485
23835 #, no-wrap
23836 msgid ""
23837 " int\n"
23838 " guestfs_exists (guestfs_h *g,\n"
23839 "                 const char *path);\n"
23840 "\n"
23841 msgstr ""
23842
23843 #. type: textblock
23844 #: ../src/guestfs-actions.pod:1492
23845 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
23846 msgstr ""
23847
23848 #. type: =head2
23849 #: ../src/guestfs-actions.pod:1498
23850 msgid "guestfs_fallocate"
23851 msgstr ""
23852
23853 #. type: verbatim
23854 #: ../src/guestfs-actions.pod:1500
23855 #, no-wrap
23856 msgid ""
23857 " int\n"
23858 " guestfs_fallocate (guestfs_h *g,\n"
23859 "                    const char *path,\n"
23860 "                    int len);\n"
23861 "\n"
23862 msgstr ""
23863
23864 #. type: textblock
23865 #: ../src/guestfs-actions.pod:1515
23866 msgid ""
23867 "This function is deprecated.  In new code, use the L</guestfs_fallocate64> "
23868 "call instead."
23869 msgstr ""
23870
23871 #. type: =head2
23872 #: ../src/guestfs-actions.pod:1524
23873 msgid "guestfs_fallocate64"
23874 msgstr ""
23875
23876 #. type: verbatim
23877 #: ../src/guestfs-actions.pod:1526
23878 #, no-wrap
23879 msgid ""
23880 " int\n"
23881 " guestfs_fallocate64 (guestfs_h *g,\n"
23882 "                      const char *path,\n"
23883 "                      int64_t len);\n"
23884 "\n"
23885 msgstr ""
23886
23887 #. type: textblock
23888 #: ../src/guestfs-actions.pod:1535
23889 msgid ""
23890 "Note that this call allocates disk blocks for the file.  To create a sparse "
23891 "file use C<guestfs_truncate_size> instead."
23892 msgstr ""
23893
23894 #. type: textblock
23895 #: ../src/guestfs-actions.pod:1538
23896 msgid ""
23897 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
23898 "oversight it only allowed 30 bit lengths to be specified, effectively "
23899 "limiting the maximum size of files created through that call to 1GB."
23900 msgstr ""
23901
23902 #. type: textblock
23903 #: ../src/guestfs-actions.pod:1549
23904 msgid "(Added in 1.3.17)"
23905 msgstr ""
23906
23907 #. type: =head2
23908 #: ../src/guestfs-actions.pod:1551
23909 msgid "guestfs_fgrep"
23910 msgstr ""
23911
23912 #. type: verbatim
23913 #: ../src/guestfs-actions.pod:1553
23914 #, no-wrap
23915 msgid ""
23916 " char **\n"
23917 " guestfs_fgrep (guestfs_h *g,\n"
23918 "                const char *pattern,\n"
23919 "                const char *path);\n"
23920 "\n"
23921 msgstr ""
23922
23923 #. type: =head2
23924 #: ../src/guestfs-actions.pod:1570
23925 msgid "guestfs_fgrepi"
23926 msgstr ""
23927
23928 #. type: verbatim
23929 #: ../src/guestfs-actions.pod:1572
23930 #, no-wrap
23931 msgid ""
23932 " char **\n"
23933 " guestfs_fgrepi (guestfs_h *g,\n"
23934 "                 const char *pattern,\n"
23935 "                 const char *path);\n"
23936 "\n"
23937 msgstr ""
23938
23939 #. type: =head2
23940 #: ../src/guestfs-actions.pod:1589
23941 msgid "guestfs_file"
23942 msgstr ""
23943
23944 #. type: verbatim
23945 #: ../src/guestfs-actions.pod:1591
23946 #, no-wrap
23947 msgid ""
23948 " char *\n"
23949 " guestfs_file (guestfs_h *g,\n"
23950 "               const char *path);\n"
23951 "\n"
23952 msgstr ""
23953
23954 #. type: textblock
23955 #: ../src/guestfs-actions.pod:1609
23956 msgid ""
23957 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
23958 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
23959 msgstr ""
23960
23961 #. type: =head2
23962 #: ../src/guestfs-actions.pod:1617
23963 msgid "guestfs_file_architecture"
23964 msgstr ""
23965
23966 #. type: verbatim
23967 #: ../src/guestfs-actions.pod:1619
23968 #, no-wrap
23969 msgid ""
23970 " char *\n"
23971 " guestfs_file_architecture (guestfs_h *g,\n"
23972 "                            const char *filename);\n"
23973 "\n"
23974 msgstr ""
23975
23976 #. type: textblock
23977 #: ../src/guestfs-actions.pod:1727 ../src/guestfs-actions.pod:1890
23978 #: ../src/guestfs-actions.pod:1907 ../src/guestfs-actions.pod:2630
23979 #: ../src/guestfs-actions.pod:2720 ../src/guestfs-actions.pod:2786
23980 #: ../src/guestfs-actions.pod:2973 ../src/guestfs-actions.pod:2991
23981 #: ../src/guestfs-actions.pod:3031 ../src/guestfs-actions.pod:3106
23982 #: ../src/guestfs-actions.pod:3199 ../src/guestfs-actions.pod:3436
23983 #: ../src/guestfs-actions.pod:3568
23984 msgid "(Added in 1.5.3)"
23985 msgstr ""
23986
23987 #. type: =head2
23988 #: ../src/guestfs-actions.pod:1729
23989 msgid "guestfs_filesize"
23990 msgstr ""
23991
23992 #. type: verbatim
23993 #: ../src/guestfs-actions.pod:1731
23994 #, no-wrap
23995 msgid ""
23996 " int64_t\n"
23997 " guestfs_filesize (guestfs_h *g,\n"
23998 "                   const char *file);\n"
23999 "\n"
24000 msgstr ""
24001
24002 #. type: textblock
24003 #: ../src/guestfs-actions.pod:1737
24004 msgid ""
24005 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
24006 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
24007 "devices, use C<guestfs_blockdev_getsize64>."
24008 msgstr ""
24009
24010 #. type: textblock
24011 #: ../src/guestfs-actions.pod:1743
24012 msgid "(Added in 1.0.82)"
24013 msgstr ""
24014
24015 #. type: =head2
24016 #: ../src/guestfs-actions.pod:1745
24017 msgid "guestfs_fill"
24018 msgstr ""
24019
24020 #. type: verbatim
24021 #: ../src/guestfs-actions.pod:1747
24022 #, no-wrap
24023 msgid ""
24024 " int\n"
24025 " guestfs_fill (guestfs_h *g,\n"
24026 "               int c,\n"
24027 "               int len,\n"
24028 "               const char *path);\n"
24029 "\n"
24030 msgstr ""
24031
24032 #. type: textblock
24033 #: ../src/guestfs-actions.pod:1757
24034 msgid ""
24035 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
24036 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
24037 "bytes use C<guestfs_fill_pattern>."
24038 msgstr ""
24039
24040 #. type: textblock
24041 #: ../src/guestfs-actions.pod:1769
24042 msgid "(Added in 1.0.79)"
24043 msgstr ""
24044
24045 #. type: =head2
24046 #: ../src/guestfs-actions.pod:1771
24047 msgid "guestfs_fill_pattern"
24048 msgstr ""
24049
24050 #. type: verbatim
24051 #: ../src/guestfs-actions.pod:1773
24052 #, no-wrap
24053 msgid ""
24054 " int\n"
24055 " guestfs_fill_pattern (guestfs_h *g,\n"
24056 "                       const char *pattern,\n"
24057 "                       int len,\n"
24058 "                       const char *path);\n"
24059 "\n"
24060 msgstr ""
24061
24062 #. type: textblock
24063 #: ../src/guestfs-actions.pod:1779
24064 msgid ""
24065 "This function is like C<guestfs_fill> except that it creates a new file of "
24066 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
24067 "pattern is truncated if necessary to ensure the length of the file is "
24068 "exactly C<len> bytes."
24069 msgstr ""
24070
24071 #. type: textblock
24072 #: ../src/guestfs-actions.pod:1791
24073 msgid "(Added in 1.3.12)"
24074 msgstr ""
24075
24076 #. type: =head2
24077 #: ../src/guestfs-actions.pod:1793
24078 msgid "guestfs_find"
24079 msgstr ""
24080
24081 #. type: verbatim
24082 #: ../src/guestfs-actions.pod:1795
24083 #, no-wrap
24084 msgid ""
24085 " char **\n"
24086 " guestfs_find (guestfs_h *g,\n"
24087 "               const char *directory);\n"
24088 "\n"
24089 msgstr ""
24090
24091 #. type: textblock
24092 #: ../src/guestfs-actions.pod:1811
24093 msgid ""
24094 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
24095 msgstr ""
24096
24097 #. type: textblock
24098 #: ../src/guestfs-actions.pod:1824
24099 msgid "See also C<guestfs_find0>."
24100 msgstr ""
24101
24102 #. type: textblock
24103 #: ../src/guestfs-actions.pod:1833 ../src/guestfs-actions.pod:4326
24104 #: ../src/guestfs-actions.pod:6036
24105 msgid "(Added in 1.0.27)"
24106 msgstr ""
24107
24108 #. type: =head2
24109 #: ../src/guestfs-actions.pod:1835
24110 msgid "guestfs_find0"
24111 msgstr ""
24112
24113 #. type: verbatim
24114 #: ../src/guestfs-actions.pod:1837
24115 #, no-wrap
24116 msgid ""
24117 " int\n"
24118 " guestfs_find0 (guestfs_h *g,\n"
24119 "                const char *directory,\n"
24120 "                const char *files);\n"
24121 "\n"
24122 msgstr ""
24123
24124 #. type: textblock
24125 #: ../src/guestfs-actions.pod:1846
24126 msgid ""
24127 "This command works the same way as C<guestfs_find> with the following "
24128 "exceptions:"
24129 msgstr ""
24130
24131 #. type: textblock
24132 #: ../src/guestfs-actions.pod:1873
24133 msgid "(Added in 1.0.74)"
24134 msgstr ""
24135
24136 #. type: =head2
24137 #: ../src/guestfs-actions.pod:1875
24138 msgid "guestfs_findfs_label"
24139 msgstr ""
24140
24141 #. type: verbatim
24142 #: ../src/guestfs-actions.pod:1877
24143 #, no-wrap
24144 msgid ""
24145 " char *\n"
24146 " guestfs_findfs_label (guestfs_h *g,\n"
24147 "                       const char *label);\n"
24148 "\n"
24149 msgstr ""
24150
24151 #. type: textblock
24152 #: ../src/guestfs-actions.pod:1885
24153 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
24154 msgstr ""
24155
24156 #. type: =head2
24157 #: ../src/guestfs-actions.pod:1892
24158 msgid "guestfs_findfs_uuid"
24159 msgstr ""
24160
24161 #. type: verbatim
24162 #: ../src/guestfs-actions.pod:1894
24163 #, no-wrap
24164 msgid ""
24165 " char *\n"
24166 " guestfs_findfs_uuid (guestfs_h *g,\n"
24167 "                      const char *uuid);\n"
24168 "\n"
24169 msgstr ""
24170
24171 #. type: textblock
24172 #: ../src/guestfs-actions.pod:1902
24173 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
24174 msgstr ""
24175
24176 #. type: =head2
24177 #: ../src/guestfs-actions.pod:1909
24178 msgid "guestfs_fsck"
24179 msgstr ""
24180
24181 #. type: verbatim
24182 #: ../src/guestfs-actions.pod:1911
24183 #, no-wrap
24184 msgid ""
24185 " int\n"
24186 " guestfs_fsck (guestfs_h *g,\n"
24187 "               const char *fstype,\n"
24188 "               const char *device);\n"
24189 "\n"
24190 msgstr ""
24191
24192 #. type: textblock
24193 #: ../src/guestfs-actions.pod:1946 ../src/guestfs-actions.pod:7811
24194 msgid "(Added in 1.0.16)"
24195 msgstr ""
24196
24197 #. type: =head2
24198 #: ../src/guestfs-actions.pod:1948
24199 msgid "guestfs_get_append"
24200 msgstr ""
24201
24202 #. type: verbatim
24203 #: ../src/guestfs-actions.pod:1950
24204 #, no-wrap
24205 msgid ""
24206 " const char *\n"
24207 " guestfs_get_append (guestfs_h *g);\n"
24208 "\n"
24209 msgstr ""
24210
24211 #. type: textblock
24212 #: ../src/guestfs-actions.pod:1958
24213 msgid ""
24214 "This function returns a string which may be NULL.  There is no way to return "
24215 "an error from this function.  The string is owned by the guest handle and "
24216 "must I<not> be freed."
24217 msgstr ""
24218
24219 #. type: textblock
24220 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:5714
24221 #: ../src/guestfs-actions.pod:6196 ../src/guestfs-actions.pod:6638
24222 #: ../src/guestfs-actions.pod:6657 ../src/guestfs-actions.pod:6673
24223 #: ../src/guestfs-actions.pod:6697 ../src/guestfs-actions.pod:7451
24224 #: ../src/guestfs-actions.pod:7466 ../src/guestfs-actions.pod:7858
24225 msgid "(Added in 1.0.26)"
24226 msgstr ""
24227
24228 #. type: =head2
24229 #: ../src/guestfs-actions.pod:1964
24230 msgid "guestfs_get_attach_method"
24231 msgstr ""
24232
24233 #. type: verbatim
24234 #: ../src/guestfs-actions.pod:1966
24235 #, no-wrap
24236 msgid ""
24237 " char *\n"
24238 " guestfs_get_attach_method (guestfs_h *g);\n"
24239 "\n"
24240 msgstr ""
24241
24242 #. type: textblock
24243 #: ../src/guestfs-actions.pod:1969
24244 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
24245 msgstr ""
24246
24247 #. type: textblock
24248 #: ../src/guestfs-actions.pod:1974 ../src/guestfs-actions.pod:6226
24249 msgid "(Added in 1.9.8)"
24250 msgstr ""
24251
24252 #. type: =head2
24253 #: ../src/guestfs-actions.pod:1976
24254 msgid "guestfs_get_autosync"
24255 msgstr ""
24256
24257 #. type: verbatim
24258 #: ../src/guestfs-actions.pod:1978
24259 #, no-wrap
24260 msgid ""
24261 " int\n"
24262 " guestfs_get_autosync (guestfs_h *g);\n"
24263 "\n"
24264 msgstr ""
24265
24266 #. type: =head2
24267 #: ../src/guestfs-actions.pod:1987
24268 msgid "guestfs_get_direct"
24269 msgstr ""
24270
24271 #. type: verbatim
24272 #: ../src/guestfs-actions.pod:1989
24273 #, no-wrap
24274 msgid ""
24275 " int\n"
24276 " guestfs_get_direct (guestfs_h *g);\n"
24277 "\n"
24278 msgstr ""
24279
24280 #. type: textblock
24281 #: ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:6267
24282 msgid "(Added in 1.0.72)"
24283 msgstr ""
24284
24285 #. type: =head2
24286 #: ../src/guestfs-actions.pod:1998
24287 msgid "guestfs_get_e2label"
24288 msgstr ""
24289
24290 #. type: verbatim
24291 #: ../src/guestfs-actions.pod:2000
24292 #, no-wrap
24293 msgid ""
24294 " char *\n"
24295 " guestfs_get_e2label (guestfs_h *g,\n"
24296 "                      const char *device);\n"
24297 "\n"
24298 msgstr ""
24299
24300 #. type: textblock
24301 #: ../src/guestfs-actions.pod:2010
24302 msgid ""
24303 "This function is deprecated.  In new code, use the L</guestfs_vfs_label> "
24304 "call instead."
24305 msgstr ""
24306
24307 #. type: textblock
24308 #: ../src/guestfs-actions.pod:2017 ../src/guestfs-actions.pod:2038
24309 #: ../src/guestfs-actions.pod:6285 ../src/guestfs-actions.pod:6304
24310 msgid "(Added in 1.0.15)"
24311 msgstr ""
24312
24313 #. type: =head2
24314 #: ../src/guestfs-actions.pod:2019
24315 msgid "guestfs_get_e2uuid"
24316 msgstr ""
24317
24318 #. type: verbatim
24319 #: ../src/guestfs-actions.pod:2021
24320 #, no-wrap
24321 msgid ""
24322 " char *\n"
24323 " guestfs_get_e2uuid (guestfs_h *g,\n"
24324 "                     const char *device);\n"
24325 "\n"
24326 msgstr ""
24327
24328 #. type: textblock
24329 #: ../src/guestfs-actions.pod:2031
24330 msgid ""
24331 "This function is deprecated.  In new code, use the L</guestfs_vfs_uuid> call "
24332 "instead."
24333 msgstr ""
24334
24335 #. type: =head2
24336 #: ../src/guestfs-actions.pod:2040
24337 msgid "guestfs_get_memsize"
24338 msgstr ""
24339
24340 #. type: verbatim
24341 #: ../src/guestfs-actions.pod:2042
24342 #, no-wrap
24343 msgid ""
24344 " int\n"
24345 " guestfs_get_memsize (guestfs_h *g);\n"
24346 "\n"
24347 msgstr ""
24348
24349 #. type: textblock
24350 #: ../src/guestfs-actions.pod:2048
24351 msgid ""
24352 "If C<guestfs_set_memsize> was not called on this handle, and if "
24353 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
24354 "value for memsize."
24355 msgstr ""
24356
24357 #. type: textblock
24358 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:4617
24359 #: ../src/guestfs-actions.pod:4826 ../src/guestfs-actions.pod:4845
24360 #: ../src/guestfs-actions.pod:4864 ../src/guestfs-actions.pod:4876
24361 #: ../src/guestfs-actions.pod:4893 ../src/guestfs-actions.pod:4906
24362 #: ../src/guestfs-actions.pod:5939 ../src/guestfs-actions.pod:6325
24363 #: ../src/guestfs-actions.pod:6605 ../src/guestfs-actions.pod:7220
24364 msgid "(Added in 1.0.55)"
24365 msgstr ""
24366
24367 #. type: =head2
24368 #: ../src/guestfs-actions.pod:2059
24369 msgid "guestfs_get_network"
24370 msgstr ""
24371
24372 #. type: verbatim
24373 #: ../src/guestfs-actions.pod:2061
24374 #, no-wrap
24375 msgid ""
24376 " int\n"
24377 " guestfs_get_network (guestfs_h *g);\n"
24378 "\n"
24379 msgstr ""
24380
24381 #. type: textblock
24382 #: ../src/guestfs-actions.pod:2068 ../src/guestfs-actions.pod:6344
24383 msgid "(Added in 1.5.4)"
24384 msgstr ""
24385
24386 #. type: =head2
24387 #: ../src/guestfs-actions.pod:2070
24388 msgid "guestfs_get_path"
24389 msgstr ""
24390
24391 #. type: verbatim
24392 #: ../src/guestfs-actions.pod:2072
24393 #, no-wrap
24394 msgid ""
24395 " const char *\n"
24396 " guestfs_get_path (guestfs_h *g);\n"
24397 "\n"
24398 msgstr ""
24399
24400 #. type: textblock
24401 #: ../src/guestfs-actions.pod:2080 ../src/guestfs-actions.pod:2120
24402 msgid ""
24403 "This function returns a string, or NULL on error.  The string is owned by "
24404 "the guest handle and must I<not> be freed."
24405 msgstr ""
24406
24407 #. type: =head2
24408 #: ../src/guestfs-actions.pod:2085
24409 msgid "guestfs_get_pgroup"
24410 msgstr ""
24411
24412 #. type: verbatim
24413 #: ../src/guestfs-actions.pod:2087
24414 #, no-wrap
24415 msgid ""
24416 " int\n"
24417 " guestfs_get_pgroup (guestfs_h *g);\n"
24418 "\n"
24419 msgstr ""
24420
24421 #. type: textblock
24422 #: ../src/guestfs-actions.pod:2094 ../src/guestfs-actions.pod:6380
24423 #: ../src/guestfs-actions.pod:7712
24424 msgid "(Added in 1.11.18)"
24425 msgstr ""
24426
24427 #. type: =head2
24428 #: ../src/guestfs-actions.pod:2096
24429 msgid "guestfs_get_pid"
24430 msgstr ""
24431
24432 #. type: verbatim
24433 #: ../src/guestfs-actions.pod:2098
24434 #, no-wrap
24435 msgid ""
24436 " int\n"
24437 " guestfs_get_pid (guestfs_h *g);\n"
24438 "\n"
24439 msgstr ""
24440
24441 #. type: textblock
24442 #: ../src/guestfs-actions.pod:2108
24443 msgid "(Added in 1.0.56)"
24444 msgstr ""
24445
24446 #. type: =head2
24447 #: ../src/guestfs-actions.pod:2110
24448 msgid "guestfs_get_qemu"
24449 msgstr ""
24450
24451 #. type: verbatim
24452 #: ../src/guestfs-actions.pod:2112
24453 #, no-wrap
24454 msgid ""
24455 " const char *\n"
24456 " guestfs_get_qemu (guestfs_h *g);\n"
24457 "\n"
24458 msgstr ""
24459
24460 #. type: textblock
24461 #: ../src/guestfs-actions.pod:2123 ../src/guestfs-actions.pod:6408
24462 msgid "(Added in 1.0.6)"
24463 msgstr ""
24464
24465 #. type: =head2
24466 #: ../src/guestfs-actions.pod:2125
24467 msgid "guestfs_get_recovery_proc"
24468 msgstr ""
24469
24470 #. type: verbatim
24471 #: ../src/guestfs-actions.pod:2127
24472 #, no-wrap
24473 msgid ""
24474 " int\n"
24475 " guestfs_get_recovery_proc (guestfs_h *g);\n"
24476 "\n"
24477 msgstr ""
24478
24479 #. type: textblock
24480 #: ../src/guestfs-actions.pod:2134 ../src/guestfs-actions.pod:3690
24481 #: ../src/guestfs-actions.pod:4021 ../src/guestfs-actions.pod:4424
24482 #: ../src/guestfs-actions.pod:4456 ../src/guestfs-actions.pod:5644
24483 #: ../src/guestfs-actions.pod:5987 ../src/guestfs-actions.pod:6432
24484 #: ../src/guestfs-actions.pod:7123 ../src/guestfs-actions.pod:7143
24485 #: ../src/guestfs-actions.pod:7335
24486 msgid "(Added in 1.0.77)"
24487 msgstr ""
24488
24489 #. type: =head2
24490 #: ../src/guestfs-actions.pod:2136
24491 msgid "guestfs_get_selinux"
24492 msgstr ""
24493
24494 #. type: verbatim
24495 #: ../src/guestfs-actions.pod:2138
24496 #, no-wrap
24497 msgid ""
24498 " int\n"
24499 " guestfs_get_selinux (guestfs_h *g);\n"
24500 "\n"
24501 msgstr ""
24502
24503 #. type: textblock
24504 #: ../src/guestfs-actions.pod:2141
24505 msgid ""
24506 "This returns the current setting of the selinux flag which is passed to the "
24507 "appliance at boot time.  See C<guestfs_set_selinux>."
24508 msgstr ""
24509
24510 #. type: textblock
24511 #: ../src/guestfs-actions.pod:2149 ../src/guestfs-actions.pod:2212
24512 #: ../src/guestfs-actions.pod:6451 ../src/guestfs-actions.pod:6509
24513 msgid "(Added in 1.0.67)"
24514 msgstr ""
24515
24516 #. type: =head2
24517 #: ../src/guestfs-actions.pod:2151
24518 msgid "guestfs_get_state"
24519 msgstr ""
24520
24521 #. type: verbatim
24522 #: ../src/guestfs-actions.pod:2153
24523 #, no-wrap
24524 msgid ""
24525 " int\n"
24526 " guestfs_get_state (guestfs_h *g);\n"
24527 "\n"
24528 msgstr ""
24529
24530 #. type: =head2
24531 #: ../src/guestfs-actions.pod:2165
24532 msgid "guestfs_get_trace"
24533 msgstr ""
24534
24535 #. type: verbatim
24536 #: ../src/guestfs-actions.pod:2167
24537 #, no-wrap
24538 msgid ""
24539 " int\n"
24540 " guestfs_get_trace (guestfs_h *g);\n"
24541 "\n"
24542 msgstr ""
24543
24544 #. type: =head2
24545 #: ../src/guestfs-actions.pod:2176
24546 msgid "guestfs_get_umask"
24547 msgstr ""
24548
24549 #. type: verbatim
24550 #: ../src/guestfs-actions.pod:2178
24551 #, no-wrap
24552 msgid ""
24553 " int\n"
24554 " guestfs_get_umask (guestfs_h *g);\n"
24555 "\n"
24556 msgstr ""
24557
24558 #. type: textblock
24559 #: ../src/guestfs-actions.pod:2181
24560 msgid ""
24561 "Return the current umask.  By default the umask is C<022> unless it has been "
24562 "set by calling C<guestfs_umask>."
24563 msgstr ""
24564
24565 #. type: =head2
24566 #: ../src/guestfs-actions.pod:2188
24567 msgid "guestfs_get_verbose"
24568 msgstr ""
24569
24570 #. type: verbatim
24571 #: ../src/guestfs-actions.pod:2190
24572 #, no-wrap
24573 msgid ""
24574 " int\n"
24575 " guestfs_get_verbose (guestfs_h *g);\n"
24576 "\n"
24577 msgstr ""
24578
24579 #. type: =head2
24580 #: ../src/guestfs-actions.pod:2199
24581 msgid "guestfs_getcon"
24582 msgstr ""
24583
24584 #. type: verbatim
24585 #: ../src/guestfs-actions.pod:2201
24586 #, no-wrap
24587 msgid ""
24588 " char *\n"
24589 " guestfs_getcon (guestfs_h *g);\n"
24590 "\n"
24591 msgstr ""
24592
24593 #. type: textblock
24594 #: ../src/guestfs-actions.pod:2206
24595 msgid ""
24596 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
24597 msgstr ""
24598
24599 #. type: =head2
24600 #: ../src/guestfs-actions.pod:2214
24601 msgid "guestfs_getxattr"
24602 msgstr ""
24603
24604 #. type: verbatim
24605 #: ../src/guestfs-actions.pod:2216
24606 #, no-wrap
24607 msgid ""
24608 " char *\n"
24609 " guestfs_getxattr (guestfs_h *g,\n"
24610 "                   const char *path,\n"
24611 "                   const char *name,\n"
24612 "                   size_t *size_r);\n"
24613 "\n"
24614 msgstr ""
24615
24616 #. type: textblock
24617 #: ../src/guestfs-actions.pod:2222
24618 msgid ""
24619 "Get a single extended attribute from file C<path> named C<name>.  This call "
24620 "follows symlinks.  If you want to lookup an extended attribute for the "
24621 "symlink itself, use C<guestfs_lgetxattr>."
24622 msgstr ""
24623
24624 #. type: textblock
24625 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:3704
24626 msgid ""
24627 "Normally it is better to get all extended attributes from a file in one go "
24628 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
24629 "implementations are buggy and do not provide a way to list out attributes.  "
24630 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
24631 "extended attributes you want in advance and call this function."
24632 msgstr ""
24633
24634 #. type: textblock
24635 #: ../src/guestfs-actions.pod:2236
24636 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
24637 msgstr ""
24638
24639 #. type: textblock
24640 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2451
24641 #: ../src/guestfs-actions.pod:2921 ../src/guestfs-actions.pod:3716
24642 #: ../src/guestfs-actions.pod:5637 ../src/guestfs-actions.pod:5663
24643 #: ../src/guestfs-actions.pod:5844
24644 msgid ""
24645 "This function returns a buffer, or NULL on error.  The size of the returned "
24646 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
24647 "after use>."
24648 msgstr ""
24649
24650 #. type: textblock
24651 #: ../src/guestfs-actions.pod:2242 ../src/guestfs-actions.pod:3720
24652 msgid "(Added in 1.7.24)"
24653 msgstr ""
24654
24655 #. type: =head2
24656 #: ../src/guestfs-actions.pod:2244
24657 msgid "guestfs_getxattrs"
24658 msgstr ""
24659
24660 #. type: verbatim
24661 #: ../src/guestfs-actions.pod:2246
24662 #, no-wrap
24663 msgid ""
24664 " struct guestfs_xattr_list *\n"
24665 " guestfs_getxattrs (guestfs_h *g,\n"
24666 "                    const char *path);\n"
24667 "\n"
24668 msgstr ""
24669
24670 #. type: textblock
24671 #: ../src/guestfs-actions.pod:2256
24672 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
24673 msgstr ""
24674
24675 #. type: textblock
24676 #: ../src/guestfs-actions.pod:2258 ../src/guestfs-actions.pod:3732
24677 #: ../src/guestfs-actions.pod:4420
24678 msgid ""
24679 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
24680 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
24681 msgstr ""
24682
24683 #. type: textblock
24684 #: ../src/guestfs-actions.pod:2262 ../src/guestfs-actions.pod:3736
24685 #: ../src/guestfs-actions.pod:3935 ../src/guestfs-actions.pod:3971
24686 #: ../src/guestfs-actions.pod:6017 ../src/guestfs-actions.pod:6528
24687 #: ../src/guestfs-actions.pod:7923
24688 msgid "(Added in 1.0.59)"
24689 msgstr ""
24690
24691 #. type: =head2
24692 #: ../src/guestfs-actions.pod:2264
24693 msgid "guestfs_glob_expand"
24694 msgstr ""
24695
24696 #. type: verbatim
24697 #: ../src/guestfs-actions.pod:2266
24698 #, no-wrap
24699 msgid ""
24700 " char **\n"
24701 " guestfs_glob_expand (guestfs_h *g,\n"
24702 "                      const char *pattern);\n"
24703 "\n"
24704 msgstr ""
24705
24706 #. type: textblock
24707 #: ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:6721
24708 #: ../src/guestfs-actions.pod:6738
24709 msgid "(Added in 1.0.50)"
24710 msgstr ""
24711
24712 #. type: =head2
24713 #: ../src/guestfs-actions.pod:2287
24714 msgid "guestfs_grep"
24715 msgstr ""
24716
24717 #. type: verbatim
24718 #: ../src/guestfs-actions.pod:2289
24719 #, no-wrap
24720 msgid ""
24721 " char **\n"
24722 " guestfs_grep (guestfs_h *g,\n"
24723 "               const char *regex,\n"
24724 "               const char *path);\n"
24725 "\n"
24726 msgstr ""
24727
24728 #. type: =head2
24729 #: ../src/guestfs-actions.pod:2306
24730 msgid "guestfs_grepi"
24731 msgstr ""
24732
24733 #. type: verbatim
24734 #: ../src/guestfs-actions.pod:2308
24735 #, no-wrap
24736 msgid ""
24737 " char **\n"
24738 " guestfs_grepi (guestfs_h *g,\n"
24739 "                const char *regex,\n"
24740 "                const char *path);\n"
24741 "\n"
24742 msgstr ""
24743
24744 #. type: =head2
24745 #: ../src/guestfs-actions.pod:2325
24746 msgid "guestfs_grub_install"
24747 msgstr ""
24748
24749 #. type: verbatim
24750 #: ../src/guestfs-actions.pod:2327
24751 #, no-wrap
24752 msgid ""
24753 " int\n"
24754 " guestfs_grub_install (guestfs_h *g,\n"
24755 "                       const char *root,\n"
24756 "                       const char *device);\n"
24757 "\n"
24758 msgstr ""
24759
24760 #. type: textblock
24761 #: ../src/guestfs-actions.pod:2370
24762 msgid "(Added in 1.0.17)"
24763 msgstr ""
24764
24765 #. type: =head2
24766 #: ../src/guestfs-actions.pod:2372
24767 msgid "guestfs_head"
24768 msgstr ""
24769
24770 #. type: verbatim
24771 #: ../src/guestfs-actions.pod:2374
24772 #, no-wrap
24773 msgid ""
24774 " char **\n"
24775 " guestfs_head (guestfs_h *g,\n"
24776 "               const char *path);\n"
24777 "\n"
24778 msgstr ""
24779
24780 #. type: =head2
24781 #: ../src/guestfs-actions.pod:2390
24782 msgid "guestfs_head_n"
24783 msgstr ""
24784
24785 #. type: verbatim
24786 #: ../src/guestfs-actions.pod:2392
24787 #, no-wrap
24788 msgid ""
24789 " char **\n"
24790 " guestfs_head_n (guestfs_h *g,\n"
24791 "                 int nrlines,\n"
24792 "                 const char *path);\n"
24793 "\n"
24794 msgstr ""
24795
24796 #. type: =head2
24797 #: ../src/guestfs-actions.pod:2414
24798 msgid "guestfs_hexdump"
24799 msgstr ""
24800
24801 #. type: verbatim
24802 #: ../src/guestfs-actions.pod:2416
24803 #, no-wrap
24804 msgid ""
24805 " char *\n"
24806 " guestfs_hexdump (guestfs_h *g,\n"
24807 "                  const char *path);\n"
24808 "\n"
24809 msgstr ""
24810
24811 #. type: textblock
24812 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:6802
24813 #: ../src/guestfs-actions.pod:6857
24814 msgid "(Added in 1.0.22)"
24815 msgstr ""
24816
24817 #. type: =head2
24818 #: ../src/guestfs-actions.pod:2431
24819 msgid "guestfs_initrd_cat"
24820 msgstr ""
24821
24822 #. type: verbatim
24823 #: ../src/guestfs-actions.pod:2433
24824 #, no-wrap
24825 msgid ""
24826 " char *\n"
24827 " guestfs_initrd_cat (guestfs_h *g,\n"
24828 "                     const char *initrdpath,\n"
24829 "                     const char *filename,\n"
24830 "                     size_t *size_r);\n"
24831 "\n"
24832 msgstr ""
24833
24834 #. type: textblock
24835 #: ../src/guestfs-actions.pod:2449
24836 msgid "See also C<guestfs_initrd_list>."
24837 msgstr ""
24838
24839 #. type: =head2
24840 #: ../src/guestfs-actions.pod:2460
24841 msgid "guestfs_initrd_list"
24842 msgstr ""
24843
24844 #. type: verbatim
24845 #: ../src/guestfs-actions.pod:2462
24846 #, no-wrap
24847 msgid ""
24848 " char **\n"
24849 " guestfs_initrd_list (guestfs_h *g,\n"
24850 "                      const char *path);\n"
24851 "\n"
24852 msgstr ""
24853
24854 #. type: =head2
24855 #: ../src/guestfs-actions.pod:2482
24856 msgid "guestfs_inotify_add_watch"
24857 msgstr ""
24858
24859 #. type: verbatim
24860 #: ../src/guestfs-actions.pod:2484
24861 #, no-wrap
24862 msgid ""
24863 " int64_t\n"
24864 " guestfs_inotify_add_watch (guestfs_h *g,\n"
24865 "                            const char *path,\n"
24866 "                            int mask);\n"
24867 "\n"
24868 msgstr ""
24869
24870 #. type: =head2
24871 #: ../src/guestfs-actions.pod:2503
24872 msgid "guestfs_inotify_close"
24873 msgstr ""
24874
24875 #. type: verbatim
24876 #: ../src/guestfs-actions.pod:2505
24877 #, no-wrap
24878 msgid ""
24879 " int\n"
24880 " guestfs_inotify_close (guestfs_h *g);\n"
24881 "\n"
24882 msgstr ""
24883
24884 #. type: =head2
24885 #: ../src/guestfs-actions.pod:2516
24886 msgid "guestfs_inotify_files"
24887 msgstr ""
24888
24889 #. type: verbatim
24890 #: ../src/guestfs-actions.pod:2518
24891 #, no-wrap
24892 msgid ""
24893 " char **\n"
24894 " guestfs_inotify_files (guestfs_h *g);\n"
24895 "\n"
24896 msgstr ""
24897
24898 #. type: textblock
24899 #: ../src/guestfs-actions.pod:2521
24900 msgid ""
24901 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
24902 "returns a list of pathnames of objects that were touched.  The returned "
24903 "pathnames are sorted and deduplicated."
24904 msgstr ""
24905
24906 #. type: =head2
24907 #: ../src/guestfs-actions.pod:2531
24908 msgid "guestfs_inotify_init"
24909 msgstr ""
24910
24911 #. type: verbatim
24912 #: ../src/guestfs-actions.pod:2533
24913 #, no-wrap
24914 msgid ""
24915 " int\n"
24916 " guestfs_inotify_init (guestfs_h *g,\n"
24917 "                       int maxevents);\n"
24918 "\n"
24919 msgstr ""
24920
24921 #. type: textblock
24922 #: ../src/guestfs-actions.pod:2541
24923 msgid ""
24924 "C<maxevents> is the maximum number of events which will be queued up between "
24925 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
24926 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
24927 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
24928 "throws away events, but records the fact that it threw them away by setting "
24929 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
24930 "C<guestfs_inotify_read>)."
24931 msgstr ""
24932
24933 #. type: textblock
24934 #: ../src/guestfs-actions.pod:2551
24935 msgid ""
24936 "Before any events are generated, you have to add some watches to the "
24937 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
24938 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
24939 msgstr ""
24940
24941 #. type: textblock
24942 #: ../src/guestfs-actions.pod:2557
24943 msgid ""
24944 "Queued up events should be read periodically by calling "
24945 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
24946 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
24947 "often enough then you risk the internal queue overflowing."
24948 msgstr ""
24949
24950 #. type: textblock
24951 #: ../src/guestfs-actions.pod:2564
24952 msgid ""
24953 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
24954 "This also removes any watches automatically."
24955 msgstr ""
24956
24957 #. type: =head2
24958 #: ../src/guestfs-actions.pod:2577
24959 msgid "guestfs_inotify_read"
24960 msgstr ""
24961
24962 #. type: verbatim
24963 #: ../src/guestfs-actions.pod:2579
24964 #, no-wrap
24965 msgid ""
24966 " struct guestfs_inotify_event_list *\n"
24967 " guestfs_inotify_read (guestfs_h *g);\n"
24968 "\n"
24969 msgstr ""
24970
24971 #. type: textblock
24972 #: ../src/guestfs-actions.pod:2593
24973 msgid ""
24974 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
24975 "there was an error.  I<The caller must call "
24976 "C<guestfs_free_inotify_event_list> after use>."
24977 msgstr ""
24978
24979 #. type: =head2
24980 #: ../src/guestfs-actions.pod:2599
24981 msgid "guestfs_inotify_rm_watch"
24982 msgstr ""
24983
24984 #. type: verbatim
24985 #: ../src/guestfs-actions.pod:2601
24986 #, no-wrap
24987 msgid ""
24988 " int\n"
24989 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
24990 "                           int wd);\n"
24991 "\n"
24992 msgstr ""
24993
24994 #. type: textblock
24995 #: ../src/guestfs-actions.pod:2605
24996 msgid ""
24997 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
24998 msgstr ""
24999
25000 #. type: =head2
25001 #: ../src/guestfs-actions.pod:2612
25002 msgid "guestfs_inspect_get_arch"
25003 msgstr ""
25004
25005 #. type: verbatim
25006 #: ../src/guestfs-actions.pod:2614
25007 #, no-wrap
25008 msgid ""
25009 " char *\n"
25010 " guestfs_inspect_get_arch (guestfs_h *g,\n"
25011 "                           const char *root);\n"
25012 "\n"
25013 msgstr ""
25014
25015 #. type: textblock
25016 #: ../src/guestfs-actions.pod:2618
25017 msgid ""
25018 "This returns the architecture of the inspected operating system.  The "
25019 "possible return values are listed under C<guestfs_file_architecture>."
25020 msgstr ""
25021
25022 #. type: =head2
25023 #: ../src/guestfs-actions.pod:2632
25024 msgid "guestfs_inspect_get_distro"
25025 msgstr ""
25026
25027 #. type: verbatim
25028 #: ../src/guestfs-actions.pod:2634
25029 #, no-wrap
25030 msgid ""
25031 " char *\n"
25032 " guestfs_inspect_get_distro (guestfs_h *g,\n"
25033 "                             const char *root);\n"
25034 "\n"
25035 msgstr ""
25036
25037 #. type: =head2
25038 #: ../src/guestfs-actions.pod:2722
25039 msgid "guestfs_inspect_get_drive_mappings"
25040 msgstr ""
25041
25042 #. type: verbatim
25043 #: ../src/guestfs-actions.pod:2724
25044 #, no-wrap
25045 msgid ""
25046 " char **\n"
25047 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
25048 "                                     const char *root);\n"
25049 "\n"
25050 msgstr ""
25051
25052 #. type: textblock
25053 #: ../src/guestfs-actions.pod:2753
25054 msgid ""
25055 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25056 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
25057 msgstr ""
25058
25059 #. type: textblock
25060 #: ../src/guestfs-actions.pod:2757 ../src/guestfs-actions.pod:3025
25061 #: ../src/guestfs-actions.pod:3823 ../src/guestfs-actions.pod:5105
25062 #: ../src/guestfs-actions.pod:7159
25063 msgid ""
25064 "This function returns a NULL-terminated array of strings, or NULL if there "
25065 "was an error.  The array of strings will always have length C<2n+1>, where "
25066 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
25067 "caller must free the strings and the array after use>."
25068 msgstr ""
25069
25070 #. type: textblock
25071 #: ../src/guestfs-actions.pod:2763 ../src/guestfs-actions.pod:3219
25072 msgid "(Added in 1.9.17)"
25073 msgstr ""
25074
25075 #. type: =head2
25076 #: ../src/guestfs-actions.pod:2765
25077 msgid "guestfs_inspect_get_filesystems"
25078 msgstr ""
25079
25080 #. type: verbatim
25081 #: ../src/guestfs-actions.pod:2767
25082 #, no-wrap
25083 msgid ""
25084 " char **\n"
25085 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
25086 "                                  const char *root);\n"
25087 "\n"
25088 msgstr ""
25089
25090 #. type: textblock
25091 #: ../src/guestfs-actions.pod:2779
25092 msgid ""
25093 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25094 "C<guestfs_inspect_get_mountpoints>."
25095 msgstr ""
25096
25097 #. type: =head2
25098 #: ../src/guestfs-actions.pod:2788
25099 msgid "guestfs_inspect_get_format"
25100 msgstr ""
25101
25102 #. type: verbatim
25103 #: ../src/guestfs-actions.pod:2790
25104 #, no-wrap
25105 msgid ""
25106 " char *\n"
25107 " guestfs_inspect_get_format (guestfs_h *g,\n"
25108 "                             const char *root);\n"
25109 "\n"
25110 msgstr ""
25111
25112 #. type: textblock
25113 #: ../src/guestfs-actions.pod:2824 ../src/guestfs-actions.pod:3255
25114 #: ../src/guestfs-actions.pod:3271 ../src/guestfs-actions.pod:3289
25115 #: ../src/guestfs-actions.pod:6055
25116 msgid "(Added in 1.9.4)"
25117 msgstr ""
25118
25119 #. type: =head2
25120 #: ../src/guestfs-actions.pod:2826
25121 msgid "guestfs_inspect_get_hostname"
25122 msgstr ""
25123
25124 #. type: verbatim
25125 #: ../src/guestfs-actions.pod:2828
25126 #, no-wrap
25127 msgid ""
25128 " char *\n"
25129 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
25130 "                               const char *root);\n"
25131 "\n"
25132 msgstr ""
25133
25134 #. type: textblock
25135 #: ../src/guestfs-actions.pod:2843
25136 msgid "(Added in 1.7.9)"
25137 msgstr ""
25138
25139 #. type: =head2
25140 #: ../src/guestfs-actions.pod:2845
25141 msgid "guestfs_inspect_get_icon"
25142 msgstr ""
25143
25144 #. type: verbatim
25145 #: ../src/guestfs-actions.pod:2847
25146 #, no-wrap
25147 msgid ""
25148 " char *\n"
25149 " guestfs_inspect_get_icon (guestfs_h *g,\n"
25150 "                           const char *root,\n"
25151 "                           size_t *size_r,\n"
25152 "                           ...);\n"
25153 "\n"
25154 msgstr ""
25155
25156 #. type: verbatim
25157 #: ../src/guestfs-actions.pod:2858
25158 #, no-wrap
25159 msgid ""
25160 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
25161 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
25162 "\n"
25163 msgstr ""
25164
25165 #. type: textblock
25166 #: ../src/guestfs-actions.pod:2925 ../src/guestfs-actions.pod:3750
25167 #: ../src/guestfs-actions.pod:5004
25168 msgid "(Added in 1.11.12)"
25169 msgstr ""
25170
25171 #. type: =head2
25172 #: ../src/guestfs-actions.pod:2927
25173 msgid "guestfs_inspect_get_icon_va"
25174 msgstr ""
25175
25176 #. type: verbatim
25177 #: ../src/guestfs-actions.pod:2929
25178 #, no-wrap
25179 msgid ""
25180 " char *\n"
25181 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
25182 "                              const char *root,\n"
25183 "                              size_t *size_r,\n"
25184 "                              va_list args);\n"
25185 "\n"
25186 msgstr ""
25187
25188 #. type: textblock
25189 #: ../src/guestfs-actions.pod:2935
25190 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
25191 msgstr ""
25192
25193 #. type: =head2
25194 #: ../src/guestfs-actions.pod:2939
25195 msgid "guestfs_inspect_get_icon_argv"
25196 msgstr ""
25197
25198 #. type: verbatim
25199 #: ../src/guestfs-actions.pod:2941
25200 #, no-wrap
25201 msgid ""
25202 " char *\n"
25203 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
25204 "                                const char *root,\n"
25205 "                                size_t *size_r,\n"
25206 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
25207 "\n"
25208 msgstr ""
25209
25210 #. type: textblock
25211 #: ../src/guestfs-actions.pod:2947
25212 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
25213 msgstr ""
25214
25215 #. type: =head2
25216 #: ../src/guestfs-actions.pod:2951
25217 msgid "guestfs_inspect_get_major_version"
25218 msgstr ""
25219
25220 #. type: verbatim
25221 #: ../src/guestfs-actions.pod:2953
25222 #, no-wrap
25223 msgid ""
25224 " int\n"
25225 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
25226 "                                    const char *root);\n"
25227 "\n"
25228 msgstr ""
25229
25230 #. type: =head2
25231 #: ../src/guestfs-actions.pod:2975
25232 msgid "guestfs_inspect_get_minor_version"
25233 msgstr ""
25234
25235 #. type: verbatim
25236 #: ../src/guestfs-actions.pod:2977
25237 #, no-wrap
25238 msgid ""
25239 " int\n"
25240 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
25241 "                                    const char *root);\n"
25242 "\n"
25243 msgstr ""
25244
25245 #. type: textblock
25246 #: ../src/guestfs-actions.pod:2986
25247 msgid ""
25248 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25249 "C<guestfs_inspect_get_major_version>."
25250 msgstr ""
25251
25252 #. type: =head2
25253 #: ../src/guestfs-actions.pod:2993
25254 msgid "guestfs_inspect_get_mountpoints"
25255 msgstr ""
25256
25257 #. type: verbatim
25258 #: ../src/guestfs-actions.pod:2995
25259 #, no-wrap
25260 msgid ""
25261 " char **\n"
25262 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
25263 "                                  const char *root);\n"
25264 "\n"
25265 msgstr ""
25266
25267 #. type: textblock
25268 #: ../src/guestfs-actions.pod:3016
25269 msgid ""
25270 "For operating systems like Windows which still use drive letters, this call "
25271 "will only return an entry for the first drive \"mounted on\" C</>.  For "
25272 "information about the mapping of drive letters to partitions, see "
25273 "C<guestfs_inspect_get_drive_mappings>."
25274 msgstr ""
25275
25276 #. type: textblock
25277 #: ../src/guestfs-actions.pod:3022
25278 msgid ""
25279 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25280 "C<guestfs_inspect_get_filesystems>."
25281 msgstr ""
25282
25283 #. type: =head2
25284 #: ../src/guestfs-actions.pod:3033
25285 msgid "guestfs_inspect_get_package_format"
25286 msgstr ""
25287
25288 #. type: verbatim
25289 #: ../src/guestfs-actions.pod:3035
25290 #, no-wrap
25291 msgid ""
25292 " char *\n"
25293 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
25294 "                                     const char *root);\n"
25295 "\n"
25296 msgstr ""
25297
25298 #. type: textblock
25299 #: ../src/guestfs-actions.pod:3039
25300 msgid ""
25301 "This function and C<guestfs_inspect_get_package_management> return the "
25302 "package format and package management tool used by the inspected operating "
25303 "system.  For example for Fedora these functions would return C<rpm> (package "
25304 "format) and C<yum> (package management)."
25305 msgstr ""
25306
25307 #. type: textblock
25308 #: ../src/guestfs-actions.pod:3057 ../src/guestfs-actions.pod:3085
25309 msgid "(Added in 1.7.5)"
25310 msgstr ""
25311
25312 #. type: =head2
25313 #: ../src/guestfs-actions.pod:3059
25314 msgid "guestfs_inspect_get_package_management"
25315 msgstr ""
25316
25317 #. type: verbatim
25318 #: ../src/guestfs-actions.pod:3061
25319 #, no-wrap
25320 msgid ""
25321 " char *\n"
25322 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
25323 "                                         const char *root);\n"
25324 "\n"
25325 msgstr ""
25326
25327 #. type: textblock
25328 #: ../src/guestfs-actions.pod:3065
25329 msgid ""
25330 "C<guestfs_inspect_get_package_format> and this function return the package "
25331 "format and package management tool used by the inspected operating system.  "
25332 "For example for Fedora these functions would return C<rpm> (package format) "
25333 "and C<yum> (package management)."
25334 msgstr ""
25335
25336 #. type: =head2
25337 #: ../src/guestfs-actions.pod:3087
25338 msgid "guestfs_inspect_get_product_name"
25339 msgstr ""
25340
25341 #. type: verbatim
25342 #: ../src/guestfs-actions.pod:3089
25343 #, no-wrap
25344 msgid ""
25345 " char *\n"
25346 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
25347 "                                   const char *root);\n"
25348 "\n"
25349 msgstr ""
25350
25351 #. type: =head2
25352 #: ../src/guestfs-actions.pod:3108
25353 msgid "guestfs_inspect_get_product_variant"
25354 msgstr ""
25355
25356 #. type: verbatim
25357 #: ../src/guestfs-actions.pod:3110
25358 #, no-wrap
25359 msgid ""
25360 " char *\n"
25361 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
25362 "                                      const char *root);\n"
25363 "\n"
25364 msgstr ""
25365
25366 #. type: textblock
25367 #: ../src/guestfs-actions.pod:3133
25368 msgid ""
25369 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25370 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
25371 msgstr ""
25372
25373 #. type: textblock
25374 #: ../src/guestfs-actions.pod:3140
25375 msgid "(Added in 1.9.13)"
25376 msgstr ""
25377
25378 #. type: =head2
25379 #: ../src/guestfs-actions.pod:3142
25380 msgid "guestfs_inspect_get_roots"
25381 msgstr ""
25382
25383 #. type: verbatim
25384 #: ../src/guestfs-actions.pod:3144
25385 #, no-wrap
25386 msgid ""
25387 " char **\n"
25388 " guestfs_inspect_get_roots (guestfs_h *g);\n"
25389 "\n"
25390 msgstr ""
25391
25392 #. type: textblock
25393 #: ../src/guestfs-actions.pod:3147
25394 msgid ""
25395 "This function is a convenient way to get the list of root devices, as "
25396 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
25397 "the whole inspection process."
25398 msgstr ""
25399
25400 #. type: textblock
25401 #: ../src/guestfs-actions.pod:3151
25402 msgid ""
25403 "This returns an empty list if either no root devices were found or the "
25404 "caller has not called C<guestfs_inspect_os>."
25405 msgstr ""
25406
25407 #. type: textblock
25408 #: ../src/guestfs-actions.pod:3160
25409 msgid "(Added in 1.7.3)"
25410 msgstr ""
25411
25412 #. type: =head2
25413 #: ../src/guestfs-actions.pod:3162
25414 msgid "guestfs_inspect_get_type"
25415 msgstr ""
25416
25417 #. type: verbatim
25418 #: ../src/guestfs-actions.pod:3164
25419 #, no-wrap
25420 msgid ""
25421 " char *\n"
25422 " guestfs_inspect_get_type (guestfs_h *g,\n"
25423 "                           const char *root);\n"
25424 "\n"
25425 msgstr ""
25426
25427 #. type: =head2
25428 #: ../src/guestfs-actions.pod:3201
25429 msgid "guestfs_inspect_get_windows_current_control_set"
25430 msgstr ""
25431
25432 #. type: verbatim
25433 #: ../src/guestfs-actions.pod:3203
25434 #, no-wrap
25435 msgid ""
25436 " char *\n"
25437 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
25438 "                                                  const char *root);\n"
25439 "\n"
25440 msgstr ""
25441
25442 #. type: =head2
25443 #: ../src/guestfs-actions.pod:3221
25444 msgid "guestfs_inspect_get_windows_systemroot"
25445 msgstr ""
25446
25447 #. type: verbatim
25448 #: ../src/guestfs-actions.pod:3223
25449 #, no-wrap
25450 msgid ""
25451 " char *\n"
25452 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
25453 "                                         const char *root);\n"
25454 "\n"
25455 msgstr ""
25456
25457 #. type: textblock
25458 #: ../src/guestfs-actions.pod:3239
25459 msgid "(Added in 1.5.25)"
25460 msgstr ""
25461
25462 #. type: =head2
25463 #: ../src/guestfs-actions.pod:3241
25464 msgid "guestfs_inspect_is_live"
25465 msgstr ""
25466
25467 #. type: verbatim
25468 #: ../src/guestfs-actions.pod:3243
25469 #, no-wrap
25470 msgid ""
25471 " int\n"
25472 " guestfs_inspect_is_live (guestfs_h *g,\n"
25473 "                          const char *root);\n"
25474 "\n"
25475 msgstr ""
25476
25477 #. type: textblock
25478 #: ../src/guestfs-actions.pod:3247
25479 msgid ""
25480 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
25481 "disk), then this returns true if a live image was detected on the disk."
25482 msgstr ""
25483
25484 #. type: =head2
25485 #: ../src/guestfs-actions.pod:3257
25486 msgid "guestfs_inspect_is_multipart"
25487 msgstr ""
25488
25489 #. type: verbatim
25490 #: ../src/guestfs-actions.pod:3259
25491 #, no-wrap
25492 msgid ""
25493 " int\n"
25494 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
25495 "                               const char *root);\n"
25496 "\n"
25497 msgstr ""
25498
25499 #. type: textblock
25500 #: ../src/guestfs-actions.pod:3263
25501 msgid ""
25502 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
25503 "disk), then this returns true if the disk is part of a set."
25504 msgstr ""
25505
25506 #. type: =head2
25507 #: ../src/guestfs-actions.pod:3273
25508 msgid "guestfs_inspect_is_netinst"
25509 msgstr ""
25510
25511 #. type: verbatim
25512 #: ../src/guestfs-actions.pod:3275
25513 #, no-wrap
25514 msgid ""
25515 " int\n"
25516 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
25517 "                             const char *root);\n"
25518 "\n"
25519 msgstr ""
25520
25521 #. type: textblock
25522 #: ../src/guestfs-actions.pod:3279
25523 msgid ""
25524 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
25525 "disk), then this returns true if the disk is a network installer, ie. not a "
25526 "self-contained install CD but one which is likely to require network access "
25527 "to complete the install."
25528 msgstr ""
25529
25530 #. type: =head2
25531 #: ../src/guestfs-actions.pod:3291
25532 msgid "guestfs_inspect_list_applications"
25533 msgstr ""
25534
25535 #. type: verbatim
25536 #: ../src/guestfs-actions.pod:3293
25537 #, no-wrap
25538 msgid ""
25539 " struct guestfs_application_list *\n"
25540 " guestfs_inspect_list_applications (guestfs_h *g,\n"
25541 "                                    const char *root);\n"
25542 "\n"
25543 msgstr ""
25544
25545 #. type: textblock
25546 #: ../src/guestfs-actions.pod:3299
25547 msgid ""
25548 "I<Note:> This call works differently from other parts of the inspection "
25549 "API.  You have to call C<guestfs_inspect_os>, then "
25550 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
25551 "this.  Listing applications is a significantly more difficult operation "
25552 "which requires access to the full filesystem.  Also note that unlike the "
25553 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
25554 "the libguestfs handle, this call actually reads parts of the mounted "
25555 "filesystems during the call."
25556 msgstr ""
25557
25558 #. type: textblock
25559 #: ../src/guestfs-actions.pod:3389
25560 msgid ""
25561 "This function returns a C<struct guestfs_application_list *>, or NULL if "
25562 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
25563 "after use>."
25564 msgstr ""
25565
25566 #. type: textblock
25567 #: ../src/guestfs-actions.pod:3393
25568 msgid "(Added in 1.7.8)"
25569 msgstr ""
25570
25571 #. type: =head2
25572 #: ../src/guestfs-actions.pod:3395
25573 msgid "guestfs_inspect_os"
25574 msgstr ""
25575
25576 #. type: verbatim
25577 #: ../src/guestfs-actions.pod:3397
25578 #, no-wrap
25579 msgid ""
25580 " char **\n"
25581 " guestfs_inspect_os (guestfs_h *g);\n"
25582 "\n"
25583 msgstr ""
25584
25585 #. type: textblock
25586 #: ../src/guestfs-actions.pod:3413
25587 msgid ""
25588 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
25589 "functions in order to query further information about each operating system, "
25590 "such as the name and version."
25591 msgstr ""
25592
25593 #. type: textblock
25594 #: ../src/guestfs-actions.pod:3418
25595 msgid ""
25596 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
25597 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
25598 "the contents.  This should be called with no disks currently mounted.  The "
25599 "function may also use Augeas, so any existing Augeas handle will be closed."
25600 msgstr ""
25601
25602 #. type: textblock
25603 #: ../src/guestfs-actions.pod:3430 ../src/guestfs-actions.pod:3761
25604 #: ../src/guestfs-actions.pod:3843
25605 msgid "See also C<guestfs_list_filesystems>."
25606 msgstr ""
25607
25608 #. type: =head2
25609 #: ../src/guestfs-actions.pod:3438
25610 msgid "guestfs_is_blockdev"
25611 msgstr ""
25612
25613 #. type: verbatim
25614 #: ../src/guestfs-actions.pod:3440
25615 #, no-wrap
25616 msgid ""
25617 " int\n"
25618 " guestfs_is_blockdev (guestfs_h *g,\n"
25619 "                      const char *path);\n"
25620 "\n"
25621 msgstr ""
25622
25623 #. type: textblock
25624 #: ../src/guestfs-actions.pod:3447 ../src/guestfs-actions.pod:3476
25625 #: ../src/guestfs-actions.pod:3506 ../src/guestfs-actions.pod:3521
25626 #: ../src/guestfs-actions.pod:3537 ../src/guestfs-actions.pod:3593
25627 #: ../src/guestfs-actions.pod:3608
25628 msgid "See also C<guestfs_stat>."
25629 msgstr ""
25630
25631 #. type: textblock
25632 #: ../src/guestfs-actions.pod:3451 ../src/guestfs-actions.pod:3480
25633 #: ../src/guestfs-actions.pod:3525 ../src/guestfs-actions.pod:3597
25634 #: ../src/guestfs-actions.pod:3612
25635 msgid "(Added in 1.5.10)"
25636 msgstr ""
25637
25638 #. type: =head2
25639 #: ../src/guestfs-actions.pod:3453
25640 msgid "guestfs_is_busy"
25641 msgstr ""
25642
25643 #. type: verbatim
25644 #: ../src/guestfs-actions.pod:3455
25645 #, no-wrap
25646 msgid ""
25647 " int\n"
25648 " guestfs_is_busy (guestfs_h *g);\n"
25649 "\n"
25650 msgstr ""
25651
25652 #. type: =head2
25653 #: ../src/guestfs-actions.pod:3467
25654 msgid "guestfs_is_chardev"
25655 msgstr ""
25656
25657 #. type: verbatim
25658 #: ../src/guestfs-actions.pod:3469
25659 #, no-wrap
25660 msgid ""
25661 " int\n"
25662 " guestfs_is_chardev (guestfs_h *g,\n"
25663 "                     const char *path);\n"
25664 "\n"
25665 msgstr ""
25666
25667 #. type: =head2
25668 #: ../src/guestfs-actions.pod:3482
25669 msgid "guestfs_is_config"
25670 msgstr ""
25671
25672 #. type: verbatim
25673 #: ../src/guestfs-actions.pod:3484
25674 #, no-wrap
25675 msgid ""
25676 " int\n"
25677 " guestfs_is_config (guestfs_h *g);\n"
25678 "\n"
25679 msgstr ""
25680
25681 #. type: =head2
25682 #: ../src/guestfs-actions.pod:3496
25683 msgid "guestfs_is_dir"
25684 msgstr ""
25685
25686 #. type: verbatim
25687 #: ../src/guestfs-actions.pod:3498
25688 #, no-wrap
25689 msgid ""
25690 " int\n"
25691 " guestfs_is_dir (guestfs_h *g,\n"
25692 "                 const char *path);\n"
25693 "\n"
25694 msgstr ""
25695
25696 #. type: =head2
25697 #: ../src/guestfs-actions.pod:3512
25698 msgid "guestfs_is_fifo"
25699 msgstr ""
25700
25701 #. type: verbatim
25702 #: ../src/guestfs-actions.pod:3514
25703 #, no-wrap
25704 msgid ""
25705 " int\n"
25706 " guestfs_is_fifo (guestfs_h *g,\n"
25707 "                  const char *path);\n"
25708 "\n"
25709 msgstr ""
25710
25711 #. type: =head2
25712 #: ../src/guestfs-actions.pod:3527
25713 msgid "guestfs_is_file"
25714 msgstr ""
25715
25716 #. type: verbatim
25717 #: ../src/guestfs-actions.pod:3529
25718 #, no-wrap
25719 msgid ""
25720 " int\n"
25721 " guestfs_is_file (guestfs_h *g,\n"
25722 "                  const char *path);\n"
25723 "\n"
25724 msgstr ""
25725
25726 #. type: =head2
25727 #: ../src/guestfs-actions.pod:3543
25728 msgid "guestfs_is_launching"
25729 msgstr ""
25730
25731 #. type: verbatim
25732 #: ../src/guestfs-actions.pod:3545
25733 #, no-wrap
25734 msgid ""
25735 " int\n"
25736 " guestfs_is_launching (guestfs_h *g);\n"
25737 "\n"
25738 msgstr ""
25739
25740 #. type: =head2
25741 #: ../src/guestfs-actions.pod:3557
25742 msgid "guestfs_is_lv"
25743 msgstr ""
25744
25745 #. type: verbatim
25746 #: ../src/guestfs-actions.pod:3559
25747 #, no-wrap
25748 msgid ""
25749 " int\n"
25750 " guestfs_is_lv (guestfs_h *g,\n"
25751 "                const char *device);\n"
25752 "\n"
25753 msgstr ""
25754
25755 #. type: =head2
25756 #: ../src/guestfs-actions.pod:3570
25757 msgid "guestfs_is_ready"
25758 msgstr ""
25759
25760 #. type: verbatim
25761 #: ../src/guestfs-actions.pod:3572
25762 #, no-wrap
25763 msgid ""
25764 " int\n"
25765 " guestfs_is_ready (guestfs_h *g);\n"
25766 "\n"
25767 msgstr ""
25768
25769 #. type: =head2
25770 #: ../src/guestfs-actions.pod:3584
25771 msgid "guestfs_is_socket"
25772 msgstr ""
25773
25774 #. type: verbatim
25775 #: ../src/guestfs-actions.pod:3586
25776 #, no-wrap
25777 msgid ""
25778 " int\n"
25779 " guestfs_is_socket (guestfs_h *g,\n"
25780 "                    const char *path);\n"
25781 "\n"
25782 msgstr ""
25783
25784 #. type: =head2
25785 #: ../src/guestfs-actions.pod:3599
25786 msgid "guestfs_is_symlink"
25787 msgstr ""
25788
25789 #. type: verbatim
25790 #: ../src/guestfs-actions.pod:3601
25791 #, no-wrap
25792 msgid ""
25793 " int\n"
25794 " guestfs_is_symlink (guestfs_h *g,\n"
25795 "                     const char *path);\n"
25796 "\n"
25797 msgstr ""
25798
25799 #. type: =head2
25800 #: ../src/guestfs-actions.pod:3614
25801 msgid "guestfs_is_zero"
25802 msgstr ""
25803
25804 #. type: verbatim
25805 #: ../src/guestfs-actions.pod:3616
25806 #, no-wrap
25807 msgid ""
25808 " int\n"
25809 " guestfs_is_zero (guestfs_h *g,\n"
25810 "                  const char *path);\n"
25811 "\n"
25812 msgstr ""
25813
25814 #. type: textblock
25815 #: ../src/guestfs-actions.pod:3625 ../src/guestfs-actions.pod:3639
25816 msgid "(Added in 1.11.8)"
25817 msgstr ""
25818
25819 #. type: =head2
25820 #: ../src/guestfs-actions.pod:3627
25821 msgid "guestfs_is_zero_device"
25822 msgstr ""
25823
25824 #. type: verbatim
25825 #: ../src/guestfs-actions.pod:3629
25826 #, no-wrap
25827 msgid ""
25828 " int\n"
25829 " guestfs_is_zero_device (guestfs_h *g,\n"
25830 "                         const char *device);\n"
25831 "\n"
25832 msgstr ""
25833
25834 #. type: =head2
25835 #: ../src/guestfs-actions.pod:3641
25836 msgid "guestfs_kill_subprocess"
25837 msgstr ""
25838
25839 #. type: verbatim
25840 #: ../src/guestfs-actions.pod:3643
25841 #, no-wrap
25842 msgid ""
25843 " int\n"
25844 " guestfs_kill_subprocess (guestfs_h *g);\n"
25845 "\n"
25846 msgstr ""
25847
25848 #. type: =head2
25849 #: ../src/guestfs-actions.pod:3652
25850 msgid "guestfs_launch"
25851 msgstr ""
25852
25853 #. type: verbatim
25854 #: ../src/guestfs-actions.pod:3654
25855 #, no-wrap
25856 msgid ""
25857 " int\n"
25858 " guestfs_launch (guestfs_h *g);\n"
25859 "\n"
25860 msgstr ""
25861
25862 #. type: =head2
25863 #: ../src/guestfs-actions.pod:3672
25864 msgid "guestfs_lchown"
25865 msgstr ""
25866
25867 #. type: verbatim
25868 #: ../src/guestfs-actions.pod:3674
25869 #, no-wrap
25870 msgid ""
25871 " int\n"
25872 " guestfs_lchown (guestfs_h *g,\n"
25873 "                 int owner,\n"
25874 "                 int group,\n"
25875 "                 const char *path);\n"
25876 "\n"
25877 msgstr ""
25878
25879 #. type: textblock
25880 #: ../src/guestfs-actions.pod:3680
25881 msgid ""
25882 "Change the file owner to C<owner> and group to C<group>.  This is like "
25883 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
25884 "changed, not the target."
25885 msgstr ""
25886
25887 #. type: =head2
25888 #: ../src/guestfs-actions.pod:3692
25889 msgid "guestfs_lgetxattr"
25890 msgstr ""
25891
25892 #. type: verbatim
25893 #: ../src/guestfs-actions.pod:3694
25894 #, no-wrap
25895 msgid ""
25896 " char *\n"
25897 " guestfs_lgetxattr (guestfs_h *g,\n"
25898 "                    const char *path,\n"
25899 "                    const char *name,\n"
25900 "                    size_t *size_r);\n"
25901 "\n"
25902 msgstr ""
25903
25904 #. type: textblock
25905 #: ../src/guestfs-actions.pod:3714
25906 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
25907 msgstr ""
25908
25909 #. type: =head2
25910 #: ../src/guestfs-actions.pod:3722
25911 msgid "guestfs_lgetxattrs"
25912 msgstr ""
25913
25914 #. type: verbatim
25915 #: ../src/guestfs-actions.pod:3724
25916 #, no-wrap
25917 msgid ""
25918 " struct guestfs_xattr_list *\n"
25919 " guestfs_lgetxattrs (guestfs_h *g,\n"
25920 "                     const char *path);\n"
25921 "\n"
25922 msgstr ""
25923
25924 #. type: textblock
25925 #: ../src/guestfs-actions.pod:3728
25926 msgid ""
25927 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
25928 "then it returns the extended attributes of the link itself."
25929 msgstr ""
25930
25931 #. type: =head2
25932 #: ../src/guestfs-actions.pod:3738
25933 msgid "guestfs_list_9p"
25934 msgstr ""
25935
25936 #. type: verbatim
25937 #: ../src/guestfs-actions.pod:3740
25938 #, no-wrap
25939 msgid ""
25940 " char **\n"
25941 " guestfs_list_9p (guestfs_h *g);\n"
25942 "\n"
25943 msgstr ""
25944
25945 #. type: =head2
25946 #: ../src/guestfs-actions.pod:3752
25947 msgid "guestfs_list_devices"
25948 msgstr ""
25949
25950 #. type: verbatim
25951 #: ../src/guestfs-actions.pod:3754
25952 #, no-wrap
25953 msgid ""
25954 " char **\n"
25955 " guestfs_list_devices (guestfs_h *g);\n"
25956 "\n"
25957 msgstr ""
25958
25959 #. type: =head2
25960 #: ../src/guestfs-actions.pod:3769
25961 msgid "guestfs_list_dm_devices"
25962 msgstr ""
25963
25964 #. type: verbatim
25965 #: ../src/guestfs-actions.pod:3771
25966 #, no-wrap
25967 msgid ""
25968 " char **\n"
25969 " guestfs_list_dm_devices (guestfs_h *g);\n"
25970 "\n"
25971 msgstr ""
25972
25973 #. type: textblock
25974 #: ../src/guestfs-actions.pod:3776
25975 msgid ""
25976 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
25977 "previous call to C<guestfs_luks_open>."
25978 msgstr ""
25979
25980 #. type: textblock
25981 #: ../src/guestfs-actions.pod:3779
25982 msgid ""
25983 "Device mapper devices which correspond to logical volumes are I<not> "
25984 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
25985 "volumes."
25986 msgstr ""
25987
25988 #. type: textblock
25989 #: ../src/guestfs-actions.pod:3787 ../src/guestfs-actions.pod:5243
25990 msgid "(Added in 1.11.15)"
25991 msgstr ""
25992
25993 #. type: =head2
25994 #: ../src/guestfs-actions.pod:3789
25995 msgid "guestfs_list_filesystems"
25996 msgstr ""
25997
25998 #. type: verbatim
25999 #: ../src/guestfs-actions.pod:3791
26000 #, no-wrap
26001 msgid ""
26002 " char **\n"
26003 " guestfs_list_filesystems (guestfs_h *g);\n"
26004 "\n"
26005 msgstr ""
26006
26007 #. type: textblock
26008 #: ../src/guestfs-actions.pod:3811
26009 msgid ""
26010 "This command runs other libguestfs commands, which might include "
26011 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
26012 "soon after launch and only when nothing is mounted."
26013 msgstr ""
26014
26015 #. type: textblock
26016 #: ../src/guestfs-actions.pod:3815
26017 msgid ""
26018 "Not all of the filesystems returned will be mountable.  In particular, swap "
26019 "partitions are returned in the list.  Also this command does not check that "
26020 "each filesystem found is valid and mountable, and some filesystems might be "
26021 "mountable but require special options.  Filesystems may not all belong to a "
26022 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
26023 msgstr ""
26024
26025 #. type: textblock
26026 #: ../src/guestfs-actions.pod:3829 ../src/guestfs-actions.pod:5604
26027 msgid "(Added in 1.5.15)"
26028 msgstr ""
26029
26030 #. type: =head2
26031 #: ../src/guestfs-actions.pod:3831
26032 msgid "guestfs_list_partitions"
26033 msgstr ""
26034
26035 #. type: verbatim
26036 #: ../src/guestfs-actions.pod:3833
26037 #, no-wrap
26038 msgid ""
26039 " char **\n"
26040 " guestfs_list_partitions (guestfs_h *g);\n"
26041 "\n"
26042 msgstr ""
26043
26044 #. type: textblock
26045 #: ../src/guestfs-actions.pod:3840
26046 msgid ""
26047 "This does not return logical volumes.  For that you will need to call "
26048 "C<guestfs_lvs>."
26049 msgstr ""
26050
26051 #. type: =head2
26052 #: ../src/guestfs-actions.pod:3851
26053 msgid "guestfs_ll"
26054 msgstr ""
26055
26056 #. type: verbatim
26057 #: ../src/guestfs-actions.pod:3853
26058 #, no-wrap
26059 msgid ""
26060 " char *\n"
26061 " guestfs_ll (guestfs_h *g,\n"
26062 "             const char *directory);\n"
26063 "\n"
26064 msgstr ""
26065
26066 #. type: =head2
26067 #: ../src/guestfs-actions.pod:3868
26068 msgid "guestfs_ln"
26069 msgstr ""
26070
26071 #. type: verbatim
26072 #: ../src/guestfs-actions.pod:3870
26073 #, no-wrap
26074 msgid ""
26075 " int\n"
26076 " guestfs_ln (guestfs_h *g,\n"
26077 "             const char *target,\n"
26078 "             const char *linkname);\n"
26079 "\n"
26080 msgstr ""
26081
26082 #. type: =head2
26083 #: ../src/guestfs-actions.pod:3881
26084 msgid "guestfs_ln_f"
26085 msgstr ""
26086
26087 #. type: verbatim
26088 #: ../src/guestfs-actions.pod:3883
26089 #, no-wrap
26090 msgid ""
26091 " int\n"
26092 " guestfs_ln_f (guestfs_h *g,\n"
26093 "               const char *target,\n"
26094 "               const char *linkname);\n"
26095 "\n"
26096 msgstr ""
26097
26098 #. type: =head2
26099 #: ../src/guestfs-actions.pod:3895
26100 msgid "guestfs_ln_s"
26101 msgstr ""
26102
26103 #. type: verbatim
26104 #: ../src/guestfs-actions.pod:3897
26105 #, no-wrap
26106 msgid ""
26107 " int\n"
26108 " guestfs_ln_s (guestfs_h *g,\n"
26109 "               const char *target,\n"
26110 "               const char *linkname);\n"
26111 "\n"
26112 msgstr ""
26113
26114 #. type: =head2
26115 #: ../src/guestfs-actions.pod:3908
26116 msgid "guestfs_ln_sf"
26117 msgstr ""
26118
26119 #. type: verbatim
26120 #: ../src/guestfs-actions.pod:3910
26121 #, no-wrap
26122 msgid ""
26123 " int\n"
26124 " guestfs_ln_sf (guestfs_h *g,\n"
26125 "                const char *target,\n"
26126 "                const char *linkname);\n"
26127 "\n"
26128 msgstr ""
26129
26130 #. type: =head2
26131 #: ../src/guestfs-actions.pod:3922
26132 msgid "guestfs_lremovexattr"
26133 msgstr ""
26134
26135 #. type: verbatim
26136 #: ../src/guestfs-actions.pod:3924
26137 #, no-wrap
26138 msgid ""
26139 " int\n"
26140 " guestfs_lremovexattr (guestfs_h *g,\n"
26141 "                       const char *xattr,\n"
26142 "                       const char *path);\n"
26143 "\n"
26144 msgstr ""
26145
26146 #. type: textblock
26147 #: ../src/guestfs-actions.pod:3929
26148 msgid ""
26149 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
26150 "link, then it removes an extended attribute of the link itself."
26151 msgstr ""
26152
26153 #. type: =head2
26154 #: ../src/guestfs-actions.pod:3937
26155 msgid "guestfs_ls"
26156 msgstr ""
26157
26158 #. type: verbatim
26159 #: ../src/guestfs-actions.pod:3939
26160 #, no-wrap
26161 msgid ""
26162 " char **\n"
26163 " guestfs_ls (guestfs_h *g,\n"
26164 "             const char *directory);\n"
26165 "\n"
26166 msgstr ""
26167
26168 #. type: textblock
26169 #: ../src/guestfs-actions.pod:3947
26170 msgid ""
26171 "This command is mostly useful for interactive sessions.  Programs should "
26172 "probably use C<guestfs_readdir> instead."
26173 msgstr ""
26174
26175 #. type: =head2
26176 #: ../src/guestfs-actions.pod:3956
26177 msgid "guestfs_lsetxattr"
26178 msgstr ""
26179
26180 #. type: verbatim
26181 #: ../src/guestfs-actions.pod:3958
26182 #, no-wrap
26183 msgid ""
26184 " int\n"
26185 " guestfs_lsetxattr (guestfs_h *g,\n"
26186 "                    const char *xattr,\n"
26187 "                    const char *val,\n"
26188 "                    int vallen,\n"
26189 "                    const char *path);\n"
26190 "\n"
26191 msgstr ""
26192
26193 #. type: textblock
26194 #: ../src/guestfs-actions.pod:3965
26195 msgid ""
26196 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
26197 "then it sets an extended attribute of the link itself."
26198 msgstr ""
26199
26200 #. type: =head2
26201 #: ../src/guestfs-actions.pod:3973
26202 msgid "guestfs_lstat"
26203 msgstr ""
26204
26205 #. type: verbatim
26206 #: ../src/guestfs-actions.pod:3975
26207 #, no-wrap
26208 msgid ""
26209 " struct guestfs_stat *\n"
26210 " guestfs_lstat (guestfs_h *g,\n"
26211 "                const char *path);\n"
26212 "\n"
26213 msgstr ""
26214
26215 #. type: textblock
26216 #: ../src/guestfs-actions.pod:3981
26217 msgid ""
26218 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
26219 "link, then the link is stat-ed, not the file it refers to."
26220 msgstr ""
26221
26222 #. type: textblock
26223 #: ../src/guestfs-actions.pod:3987 ../src/guestfs-actions.pod:6762
26224 msgid ""
26225 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
26226 "error.  I<The caller must call C<guestfs_free_stat> after use>."
26227 msgstr ""
26228
26229 #. type: textblock
26230 #: ../src/guestfs-actions.pod:3991 ../src/guestfs-actions.pod:6766
26231 #: ../src/guestfs-actions.pod:6784 ../src/guestfs-actions.pod:7165
26232 msgid "(Added in 0.9.2)"
26233 msgstr ""
26234
26235 #. type: =head2
26236 #: ../src/guestfs-actions.pod:3993
26237 msgid "guestfs_lstatlist"
26238 msgstr ""
26239
26240 #. type: verbatim
26241 #: ../src/guestfs-actions.pod:3995
26242 #, no-wrap
26243 msgid ""
26244 " struct guestfs_stat_list *\n"
26245 " guestfs_lstatlist (guestfs_h *g,\n"
26246 "                    const char *path,\n"
26247 "                    char *const *names);\n"
26248 "\n"
26249 msgstr ""
26250
26251 #. type: textblock
26252 #: ../src/guestfs-actions.pod:4000
26253 msgid ""
26254 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
26255 "files, where all files are in the directory C<path>.  C<names> is the list "
26256 "of files from this directory."
26257 msgstr ""
26258
26259 #. type: textblock
26260 #: ../src/guestfs-actions.pod:4009
26261 msgid ""
26262 "This call is intended for programs that want to efficiently list a directory "
26263 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
26264 "for a similarly efficient call for getting extended attributes.  Very long "
26265 "directory listings might cause the protocol message size to be exceeded, "
26266 "causing this call to fail.  The caller must split up such requests into "
26267 "smaller groups of names."
26268 msgstr ""
26269
26270 #. type: textblock
26271 #: ../src/guestfs-actions.pod:4017
26272 msgid ""
26273 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
26274 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
26275 msgstr ""
26276
26277 #. type: =head2
26278 #: ../src/guestfs-actions.pod:4023
26279 msgid "guestfs_luks_add_key"
26280 msgstr ""
26281
26282 #. type: verbatim
26283 #: ../src/guestfs-actions.pod:4025
26284 #, no-wrap
26285 msgid ""
26286 " int\n"
26287 " guestfs_luks_add_key (guestfs_h *g,\n"
26288 "                       const char *device,\n"
26289 "                       const char *key,\n"
26290 "                       const char *newkey,\n"
26291 "                       int keyslot);\n"
26292 "\n"
26293 msgstr ""
26294
26295 #. type: textblock
26296 #: ../src/guestfs-actions.pod:4037
26297 msgid ""
26298 "Note that if C<keyslot> already contains a key, then this command will "
26299 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
26300 msgstr ""
26301
26302 #. type: textblock
26303 #: ../src/guestfs-actions.pod:4043 ../src/guestfs-actions.pod:4083
26304 #: ../src/guestfs-actions.pod:4106 ../src/guestfs-actions.pod:4126
26305 #: ../src/guestfs-actions.pod:4161 ../src/guestfs-actions.pod:4180
26306 msgid ""
26307 "This function takes a key or passphrase parameter which could contain "
26308 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
26309 "information."
26310 msgstr ""
26311
26312 #. type: textblock
26313 #: ../src/guestfs-actions.pod:4047 ../src/guestfs-actions.pod:4087
26314 #: ../src/guestfs-actions.pod:4110 ../src/guestfs-actions.pod:4130
26315 msgid "(Added in 1.5.2)"
26316 msgstr ""
26317
26318 #. type: =head2
26319 #: ../src/guestfs-actions.pod:4049
26320 msgid "guestfs_luks_close"
26321 msgstr ""
26322
26323 #. type: verbatim
26324 #: ../src/guestfs-actions.pod:4051
26325 #, no-wrap
26326 msgid ""
26327 " int\n"
26328 " guestfs_luks_close (guestfs_h *g,\n"
26329 "                     const char *device);\n"
26330 "\n"
26331 msgstr ""
26332
26333 #. type: textblock
26334 #: ../src/guestfs-actions.pod:4055
26335 msgid ""
26336 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
26337 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
26338 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
26339 "underlying block device."
26340 msgstr ""
26341
26342 #. type: textblock
26343 #: ../src/guestfs-actions.pod:4063 ../src/guestfs-actions.pod:4165
26344 #: ../src/guestfs-actions.pod:4184 ../src/guestfs-actions.pod:4234
26345 #: ../src/guestfs-actions.pod:4282
26346 msgid "(Added in 1.5.1)"
26347 msgstr ""
26348
26349 #. type: =head2
26350 #: ../src/guestfs-actions.pod:4065
26351 msgid "guestfs_luks_format"
26352 msgstr ""
26353
26354 #. type: verbatim
26355 #: ../src/guestfs-actions.pod:4067
26356 #, no-wrap
26357 msgid ""
26358 " int\n"
26359 " guestfs_luks_format (guestfs_h *g,\n"
26360 "                      const char *device,\n"
26361 "                      const char *key,\n"
26362 "                      int keyslot);\n"
26363 "\n"
26364 msgstr ""
26365
26366 #. type: =head2
26367 #: ../src/guestfs-actions.pod:4089
26368 msgid "guestfs_luks_format_cipher"
26369 msgstr ""
26370
26371 #. type: verbatim
26372 #: ../src/guestfs-actions.pod:4091
26373 #, no-wrap
26374 msgid ""
26375 " int\n"
26376 " guestfs_luks_format_cipher (guestfs_h *g,\n"
26377 "                             const char *device,\n"
26378 "                             const char *key,\n"
26379 "                             int keyslot,\n"
26380 "                             const char *cipher);\n"
26381 "\n"
26382 msgstr ""
26383
26384 #. type: textblock
26385 #: ../src/guestfs-actions.pod:4098
26386 msgid ""
26387 "This command is the same as C<guestfs_luks_format> but it also allows you to "
26388 "set the C<cipher> used."
26389 msgstr ""
26390
26391 #. type: =head2
26392 #: ../src/guestfs-actions.pod:4112
26393 msgid "guestfs_luks_kill_slot"
26394 msgstr ""
26395
26396 #. type: verbatim
26397 #: ../src/guestfs-actions.pod:4114
26398 #, no-wrap
26399 msgid ""
26400 " int\n"
26401 " guestfs_luks_kill_slot (guestfs_h *g,\n"
26402 "                         const char *device,\n"
26403 "                         const char *key,\n"
26404 "                         int keyslot);\n"
26405 "\n"
26406 msgstr ""
26407
26408 #. type: =head2
26409 #: ../src/guestfs-actions.pod:4132
26410 msgid "guestfs_luks_open"
26411 msgstr ""
26412
26413 #. type: verbatim
26414 #: ../src/guestfs-actions.pod:4134
26415 #, no-wrap
26416 msgid ""
26417 " int\n"
26418 " guestfs_luks_open (guestfs_h *g,\n"
26419 "                    const char *device,\n"
26420 "                    const char *key,\n"
26421 "                    const char *mapname);\n"
26422 "\n"
26423 msgstr ""
26424
26425 #. type: textblock
26426 #: ../src/guestfs-actions.pod:4152
26427 msgid ""
26428 "If this block device contains LVM volume groups, then calling "
26429 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
26430 "visible."
26431 msgstr ""
26432
26433 #. type: textblock
26434 #: ../src/guestfs-actions.pod:4156
26435 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
26436 msgstr ""
26437
26438 #. type: =head2
26439 #: ../src/guestfs-actions.pod:4167
26440 msgid "guestfs_luks_open_ro"
26441 msgstr ""
26442
26443 #. type: verbatim
26444 #: ../src/guestfs-actions.pod:4169
26445 #, no-wrap
26446 msgid ""
26447 " int\n"
26448 " guestfs_luks_open_ro (guestfs_h *g,\n"
26449 "                       const char *device,\n"
26450 "                       const char *key,\n"
26451 "                       const char *mapname);\n"
26452 "\n"
26453 msgstr ""
26454
26455 #. type: textblock
26456 #: ../src/guestfs-actions.pod:4175
26457 msgid ""
26458 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
26459 "created."
26460 msgstr ""
26461
26462 #. type: =head2
26463 #: ../src/guestfs-actions.pod:4186
26464 msgid "guestfs_lvcreate"
26465 msgstr ""
26466
26467 #. type: verbatim
26468 #: ../src/guestfs-actions.pod:4188
26469 #, no-wrap
26470 msgid ""
26471 " int\n"
26472 " guestfs_lvcreate (guestfs_h *g,\n"
26473 "                   const char *logvol,\n"
26474 "                   const char *volgroup,\n"
26475 "                   int mbytes);\n"
26476 "\n"
26477 msgstr ""
26478
26479 #. type: =head2
26480 #: ../src/guestfs-actions.pod:4201
26481 msgid "guestfs_lvm_canonical_lv_name"
26482 msgstr ""
26483
26484 #. type: verbatim
26485 #: ../src/guestfs-actions.pod:4203
26486 #, no-wrap
26487 msgid ""
26488 " char *\n"
26489 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
26490 "                                const char *lvname);\n"
26491 "\n"
26492 msgstr ""
26493
26494 #. type: textblock
26495 #: ../src/guestfs-actions.pod:4214
26496 msgid "See also C<guestfs_is_lv>."
26497 msgstr ""
26498
26499 #. type: textblock
26500 #: ../src/guestfs-actions.pod:4219
26501 msgid "(Added in 1.5.24)"
26502 msgstr ""
26503
26504 #. type: =head2
26505 #: ../src/guestfs-actions.pod:4221
26506 msgid "guestfs_lvm_clear_filter"
26507 msgstr ""
26508
26509 #. type: verbatim
26510 #: ../src/guestfs-actions.pod:4223
26511 #, no-wrap
26512 msgid ""
26513 " int\n"
26514 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
26515 "\n"
26516 msgstr ""
26517
26518 #. type: textblock
26519 #: ../src/guestfs-actions.pod:4226
26520 msgid ""
26521 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
26522 "see every block device."
26523 msgstr ""
26524
26525 #. type: =head2
26526 #: ../src/guestfs-actions.pod:4236
26527 msgid "guestfs_lvm_remove_all"
26528 msgstr ""
26529
26530 #. type: verbatim
26531 #: ../src/guestfs-actions.pod:4238
26532 #, no-wrap
26533 msgid ""
26534 " int\n"
26535 " guestfs_lvm_remove_all (guestfs_h *g);\n"
26536 "\n"
26537 msgstr ""
26538
26539 #. type: =head2
26540 #: ../src/guestfs-actions.pod:4251
26541 msgid "guestfs_lvm_set_filter"
26542 msgstr ""
26543
26544 #. type: verbatim
26545 #: ../src/guestfs-actions.pod:4253
26546 #, no-wrap
26547 msgid ""
26548 " int\n"
26549 " guestfs_lvm_set_filter (guestfs_h *g,\n"
26550 "                         char *const *devices);\n"
26551 "\n"
26552 msgstr ""
26553
26554 #. type: =head2
26555 #: ../src/guestfs-actions.pod:4284
26556 msgid "guestfs_lvremove"
26557 msgstr ""
26558
26559 #. type: verbatim
26560 #: ../src/guestfs-actions.pod:4286
26561 #, no-wrap
26562 msgid ""
26563 " int\n"
26564 " guestfs_lvremove (guestfs_h *g,\n"
26565 "                   const char *device);\n"
26566 "\n"
26567 msgstr ""
26568
26569 #. type: textblock
26570 #: ../src/guestfs-actions.pod:4298 ../src/guestfs-actions.pod:5701
26571 #: ../src/guestfs-actions.pod:7535
26572 msgid "(Added in 1.0.13)"
26573 msgstr ""
26574
26575 #. type: =head2
26576 #: ../src/guestfs-actions.pod:4300
26577 msgid "guestfs_lvrename"
26578 msgstr ""
26579
26580 #. type: verbatim
26581 #: ../src/guestfs-actions.pod:4302
26582 #, no-wrap
26583 msgid ""
26584 " int\n"
26585 " guestfs_lvrename (guestfs_h *g,\n"
26586 "                   const char *logvol,\n"
26587 "                   const char *newlogvol);\n"
26588 "\n"
26589 msgstr ""
26590
26591 #. type: textblock
26592 #: ../src/guestfs-actions.pod:4311 ../src/guestfs-actions.pod:7548
26593 msgid "(Added in 1.0.83)"
26594 msgstr ""
26595
26596 #. type: =head2
26597 #: ../src/guestfs-actions.pod:4313
26598 msgid "guestfs_lvresize"
26599 msgstr ""
26600
26601 #. type: verbatim
26602 #: ../src/guestfs-actions.pod:4315
26603 #, no-wrap
26604 msgid ""
26605 " int\n"
26606 " guestfs_lvresize (guestfs_h *g,\n"
26607 "                   const char *device,\n"
26608 "                   int mbytes);\n"
26609 "\n"
26610 msgstr ""
26611
26612 #. type: =head2
26613 #: ../src/guestfs-actions.pod:4328
26614 msgid "guestfs_lvresize_free"
26615 msgstr ""
26616
26617 #. type: verbatim
26618 #: ../src/guestfs-actions.pod:4330
26619 #, no-wrap
26620 msgid ""
26621 " int\n"
26622 " guestfs_lvresize_free (guestfs_h *g,\n"
26623 "                        const char *lv,\n"
26624 "                        int percent);\n"
26625 "\n"
26626 msgstr ""
26627
26628 #. type: textblock
26629 #: ../src/guestfs-actions.pod:4343
26630 msgid "(Added in 1.3.3)"
26631 msgstr ""
26632
26633 #. type: =head2
26634 #: ../src/guestfs-actions.pod:4345
26635 msgid "guestfs_lvs"
26636 msgstr ""
26637
26638 #. type: verbatim
26639 #: ../src/guestfs-actions.pod:4347
26640 #, no-wrap
26641 msgid ""
26642 " char **\n"
26643 " guestfs_lvs (guestfs_h *g);\n"
26644 "\n"
26645 msgstr ""
26646
26647 #. type: textblock
26648 #: ../src/guestfs-actions.pod:4356
26649 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
26650 msgstr ""
26651
26652 #. type: =head2
26653 #: ../src/guestfs-actions.pod:4364
26654 msgid "guestfs_lvs_full"
26655 msgstr ""
26656
26657 #. type: verbatim
26658 #: ../src/guestfs-actions.pod:4366
26659 #, no-wrap
26660 msgid ""
26661 " struct guestfs_lvm_lv_list *\n"
26662 " guestfs_lvs_full (guestfs_h *g);\n"
26663 "\n"
26664 msgstr ""
26665
26666 #. type: textblock
26667 #: ../src/guestfs-actions.pod:4372
26668 msgid ""
26669 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
26670 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
26671 msgstr ""
26672
26673 #. type: =head2
26674 #: ../src/guestfs-actions.pod:4378
26675 msgid "guestfs_lvuuid"
26676 msgstr ""
26677
26678 #. type: verbatim
26679 #: ../src/guestfs-actions.pod:4380
26680 #, no-wrap
26681 msgid ""
26682 " char *\n"
26683 " guestfs_lvuuid (guestfs_h *g,\n"
26684 "                 const char *device);\n"
26685 "\n"
26686 msgstr ""
26687
26688 #. type: =head2
26689 #: ../src/guestfs-actions.pod:4391
26690 msgid "guestfs_lxattrlist"
26691 msgstr ""
26692
26693 #. type: verbatim
26694 #: ../src/guestfs-actions.pod:4393
26695 #, no-wrap
26696 msgid ""
26697 " struct guestfs_xattr_list *\n"
26698 " guestfs_lxattrlist (guestfs_h *g,\n"
26699 "                     const char *path,\n"
26700 "                     char *const *names);\n"
26701 "\n"
26702 msgstr ""
26703
26704 #. type: textblock
26705 #: ../src/guestfs-actions.pod:4412
26706 msgid ""
26707 "This call is intended for programs that want to efficiently list a directory "
26708 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
26709 "a similarly efficient call for getting standard stats.  Very long directory "
26710 "listings might cause the protocol message size to be exceeded, causing this "
26711 "call to fail.  The caller must split up such requests into smaller groups of "
26712 "names."
26713 msgstr ""
26714
26715 #. type: =head2
26716 #: ../src/guestfs-actions.pod:4426
26717 msgid "guestfs_mkdir"
26718 msgstr ""
26719
26720 #. type: verbatim
26721 #: ../src/guestfs-actions.pod:4428
26722 #, no-wrap
26723 msgid ""
26724 " int\n"
26725 " guestfs_mkdir (guestfs_h *g,\n"
26726 "                const char *path);\n"
26727 "\n"
26728 msgstr ""
26729
26730 #. type: =head2
26731 #: ../src/guestfs-actions.pod:4438
26732 msgid "guestfs_mkdir_mode"
26733 msgstr ""
26734
26735 #. type: verbatim
26736 #: ../src/guestfs-actions.pod:4440
26737 #, no-wrap
26738 msgid ""
26739 " int\n"
26740 " guestfs_mkdir_mode (guestfs_h *g,\n"
26741 "                     const char *path,\n"
26742 "                     int mode);\n"
26743 "\n"
26744 msgstr ""
26745
26746 #. type: textblock
26747 #: ../src/guestfs-actions.pod:4452
26748 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
26749 msgstr ""
26750
26751 #. type: =head2
26752 #: ../src/guestfs-actions.pod:4458
26753 msgid "guestfs_mkdir_p"
26754 msgstr ""
26755
26756 #. type: verbatim
26757 #: ../src/guestfs-actions.pod:4460
26758 #, no-wrap
26759 msgid ""
26760 " int\n"
26761 " guestfs_mkdir_p (guestfs_h *g,\n"
26762 "                  const char *path);\n"
26763 "\n"
26764 msgstr ""
26765
26766 #. type: =head2
26767 #: ../src/guestfs-actions.pod:4471
26768 msgid "guestfs_mkdtemp"
26769 msgstr ""
26770
26771 #. type: verbatim
26772 #: ../src/guestfs-actions.pod:4473
26773 #, no-wrap
26774 msgid ""
26775 " char *\n"
26776 " guestfs_mkdtemp (guestfs_h *g,\n"
26777 "                  const char *template);\n"
26778 "\n"
26779 msgstr ""
26780
26781 #. type: =head2
26782 #: ../src/guestfs-actions.pod:4501
26783 msgid "guestfs_mke2fs_J"
26784 msgstr ""
26785
26786 #. type: verbatim
26787 #: ../src/guestfs-actions.pod:4503
26788 #, no-wrap
26789 msgid ""
26790 " int\n"
26791 " guestfs_mke2fs_J (guestfs_h *g,\n"
26792 "                   const char *fstype,\n"
26793 "                   int blocksize,\n"
26794 "                   const char *device,\n"
26795 "                   const char *journal);\n"
26796 "\n"
26797 msgstr ""
26798
26799 #. type: textblock
26800 #: ../src/guestfs-actions.pod:4516
26801 msgid "See also C<guestfs_mke2journal>."
26802 msgstr ""
26803
26804 #. type: textblock
26805 #: ../src/guestfs-actions.pod:4520 ../src/guestfs-actions.pod:4538
26806 #: ../src/guestfs-actions.pod:4556 ../src/guestfs-actions.pod:4572
26807 #: ../src/guestfs-actions.pod:4586 ../src/guestfs-actions.pod:4600
26808 #: ../src/guestfs-actions.pod:4659 ../src/guestfs-actions.pod:4936
26809 msgid "(Added in 1.0.68)"
26810 msgstr ""
26811
26812 #. type: =head2
26813 #: ../src/guestfs-actions.pod:4522
26814 msgid "guestfs_mke2fs_JL"
26815 msgstr ""
26816
26817 #. type: verbatim
26818 #: ../src/guestfs-actions.pod:4524
26819 #, no-wrap
26820 msgid ""
26821 " int\n"
26822 " guestfs_mke2fs_JL (guestfs_h *g,\n"
26823 "                    const char *fstype,\n"
26824 "                    int blocksize,\n"
26825 "                    const char *device,\n"
26826 "                    const char *label);\n"
26827 "\n"
26828 msgstr ""
26829
26830 #. type: textblock
26831 #: ../src/guestfs-actions.pod:4534
26832 msgid "See also C<guestfs_mke2journal_L>."
26833 msgstr ""
26834
26835 #. type: =head2
26836 #: ../src/guestfs-actions.pod:4540
26837 msgid "guestfs_mke2fs_JU"
26838 msgstr ""
26839
26840 #. type: verbatim
26841 #: ../src/guestfs-actions.pod:4542
26842 #, no-wrap
26843 msgid ""
26844 " int\n"
26845 " guestfs_mke2fs_JU (guestfs_h *g,\n"
26846 "                    const char *fstype,\n"
26847 "                    int blocksize,\n"
26848 "                    const char *device,\n"
26849 "                    const char *uuid);\n"
26850 "\n"
26851 msgstr ""
26852
26853 #. type: textblock
26854 #: ../src/guestfs-actions.pod:4552
26855 msgid "See also C<guestfs_mke2journal_U>."
26856 msgstr ""
26857
26858 #. type: =head2
26859 #: ../src/guestfs-actions.pod:4558
26860 msgid "guestfs_mke2journal"
26861 msgstr ""
26862
26863 #. type: verbatim
26864 #: ../src/guestfs-actions.pod:4560
26865 #, no-wrap
26866 msgid ""
26867 " int\n"
26868 " guestfs_mke2journal (guestfs_h *g,\n"
26869 "                      int blocksize,\n"
26870 "                      const char *device);\n"
26871 "\n"
26872 msgstr ""
26873
26874 #. type: =head2
26875 #: ../src/guestfs-actions.pod:4574
26876 msgid "guestfs_mke2journal_L"
26877 msgstr ""
26878
26879 #. type: verbatim
26880 #: ../src/guestfs-actions.pod:4576
26881 #, no-wrap
26882 msgid ""
26883 " int\n"
26884 " guestfs_mke2journal_L (guestfs_h *g,\n"
26885 "                        int blocksize,\n"
26886 "                        const char *label,\n"
26887 "                        const char *device);\n"
26888 "\n"
26889 msgstr ""
26890
26891 #. type: =head2
26892 #: ../src/guestfs-actions.pod:4588
26893 msgid "guestfs_mke2journal_U"
26894 msgstr ""
26895
26896 #. type: verbatim
26897 #: ../src/guestfs-actions.pod:4590
26898 #, no-wrap
26899 msgid ""
26900 " int\n"
26901 " guestfs_mke2journal_U (guestfs_h *g,\n"
26902 "                        int blocksize,\n"
26903 "                        const char *uuid,\n"
26904 "                        const char *device);\n"
26905 "\n"
26906 msgstr ""
26907
26908 #. type: =head2
26909 #: ../src/guestfs-actions.pod:4602
26910 msgid "guestfs_mkfifo"
26911 msgstr ""
26912
26913 #. type: verbatim
26914 #: ../src/guestfs-actions.pod:4604
26915 #, no-wrap
26916 msgid ""
26917 " int\n"
26918 " guestfs_mkfifo (guestfs_h *g,\n"
26919 "                 int mode,\n"
26920 "                 const char *path);\n"
26921 "\n"
26922 msgstr ""
26923
26924 #. type: textblock
26925 #: ../src/guestfs-actions.pod:4609
26926 msgid ""
26927 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
26928 "is just a convenient wrapper around C<guestfs_mknod>."
26929 msgstr ""
26930
26931 #. type: =head2
26932 #: ../src/guestfs-actions.pod:4619
26933 msgid "guestfs_mkfs"
26934 msgstr ""
26935
26936 #. type: verbatim
26937 #: ../src/guestfs-actions.pod:4621
26938 #, no-wrap
26939 msgid ""
26940 " int\n"
26941 " guestfs_mkfs (guestfs_h *g,\n"
26942 "               const char *fstype,\n"
26943 "               const char *device);\n"
26944 "\n"
26945 msgstr ""
26946
26947 #. type: =head2
26948 #: ../src/guestfs-actions.pod:4634
26949 msgid "guestfs_mkfs_b"
26950 msgstr ""
26951
26952 #. type: verbatim
26953 #: ../src/guestfs-actions.pod:4636
26954 #, no-wrap
26955 msgid ""
26956 " int\n"
26957 " guestfs_mkfs_b (guestfs_h *g,\n"
26958 "                 const char *fstype,\n"
26959 "                 int blocksize,\n"
26960 "                 const char *device);\n"
26961 "\n"
26962 msgstr ""
26963
26964 #. type: textblock
26965 #: ../src/guestfs-actions.pod:4642
26966 msgid ""
26967 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
26968 "block size of the resulting filesystem.  Supported block sizes depend on the "
26969 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
26970 msgstr ""
26971
26972 #. type: textblock
26973 #: ../src/guestfs-actions.pod:4652
26974 msgid ""
26975 "This function is deprecated.  In new code, use the L</guestfs_mkfs_opts> "
26976 "call instead."
26977 msgstr ""
26978
26979 #. type: =head2
26980 #: ../src/guestfs-actions.pod:4661
26981 msgid "guestfs_mkfs_opts"
26982 msgstr ""
26983
26984 #. type: verbatim
26985 #: ../src/guestfs-actions.pod:4663
26986 #, no-wrap
26987 msgid ""
26988 " int\n"
26989 " guestfs_mkfs_opts (guestfs_h *g,\n"
26990 "                    const char *fstype,\n"
26991 "                    const char *device,\n"
26992 "                    ...);\n"
26993 "\n"
26994 msgstr ""
26995
26996 #. type: verbatim
26997 #: ../src/guestfs-actions.pod:4674
26998 #, no-wrap
26999 msgid ""
27000 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
27001 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
27002 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
27003 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
27004 "\n"
27005 msgstr ""
27006
27007 #. type: textblock
27008 #: ../src/guestfs-actions.pod:4722
27009 msgid "(Added in 1.7.19)"
27010 msgstr ""
27011
27012 #. type: =head2
27013 #: ../src/guestfs-actions.pod:4724
27014 msgid "guestfs_mkfs_opts_va"
27015 msgstr ""
27016
27017 #. type: verbatim
27018 #: ../src/guestfs-actions.pod:4726
27019 #, no-wrap
27020 msgid ""
27021 " int\n"
27022 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
27023 "                       const char *fstype,\n"
27024 "                       const char *device,\n"
27025 "                       va_list args);\n"
27026 "\n"
27027 msgstr ""
27028
27029 #. type: textblock
27030 #: ../src/guestfs-actions.pod:4732
27031 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
27032 msgstr ""
27033
27034 #. type: =head2
27035 #: ../src/guestfs-actions.pod:4736
27036 msgid "guestfs_mkfs_opts_argv"
27037 msgstr ""
27038
27039 #. type: verbatim
27040 #: ../src/guestfs-actions.pod:4738
27041 #, no-wrap
27042 msgid ""
27043 " int\n"
27044 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27045 "                         const char *fstype,\n"
27046 "                         const char *device,\n"
27047 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
27048 "\n"
27049 msgstr ""
27050
27051 #. type: textblock
27052 #: ../src/guestfs-actions.pod:4744
27053 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
27054 msgstr ""
27055
27056 #. type: =head2
27057 #: ../src/guestfs-actions.pod:4748
27058 msgid "guestfs_mkmountpoint"
27059 msgstr ""
27060
27061 #. type: verbatim
27062 #: ../src/guestfs-actions.pod:4750
27063 #, no-wrap
27064 msgid ""
27065 " int\n"
27066 " guestfs_mkmountpoint (guestfs_h *g,\n"
27067 "                       const char *exemptpath);\n"
27068 "\n"
27069 msgstr ""
27070
27071 #. type: textblock
27072 #: ../src/guestfs-actions.pod:4754
27073 msgid ""
27074 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
27075 "that can be used to create extra mountpoints before mounting the first "
27076 "filesystem."
27077 msgstr ""
27078
27079 #. type: textblock
27080 #: ../src/guestfs-actions.pod:4778
27081 msgid ""
27082 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
27083 "may get unexpected errors if you try to mix these calls.  It is safest to "
27084 "manually unmount filesystems and remove mountpoints after use."
27085 msgstr ""
27086
27087 #. type: textblock
27088 #: ../src/guestfs-actions.pod:4782
27089 msgid ""
27090 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
27091 "first, so for this to work for manual mountpoints, you must ensure that the "
27092 "innermost mountpoints have the longest pathnames, as in the example code "
27093 "above."
27094 msgstr ""
27095
27096 #. type: textblock
27097 #: ../src/guestfs-actions.pod:4789
27098 msgid ""
27099 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
27100 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
27101 "can also trigger these issues."
27102 msgstr ""
27103
27104 #. type: textblock
27105 #: ../src/guestfs-actions.pod:4795 ../src/guestfs-actions.pod:5111
27106 #: ../src/guestfs-actions.pod:6121
27107 msgid "(Added in 1.0.62)"
27108 msgstr ""
27109
27110 #. type: =head2
27111 #: ../src/guestfs-actions.pod:4797
27112 msgid "guestfs_mknod"
27113 msgstr ""
27114
27115 #. type: verbatim
27116 #: ../src/guestfs-actions.pod:4799
27117 #, no-wrap
27118 msgid ""
27119 " int\n"
27120 " guestfs_mknod (guestfs_h *g,\n"
27121 "                int mode,\n"
27122 "                int devmajor,\n"
27123 "                int devminor,\n"
27124 "                const char *path);\n"
27125 "\n"
27126 msgstr ""
27127
27128 #. type: textblock
27129 #: ../src/guestfs-actions.pod:4814
27130 msgid ""
27131 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
27132 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
27133 "regular file).  These constants are available in the standard Linux header "
27134 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
27135 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
27136 "the appropriate constant for you."
27137 msgstr ""
27138
27139 #. type: =head2
27140 #: ../src/guestfs-actions.pod:4828
27141 msgid "guestfs_mknod_b"
27142 msgstr ""
27143
27144 #. type: verbatim
27145 #: ../src/guestfs-actions.pod:4830
27146 #, no-wrap
27147 msgid ""
27148 " int\n"
27149 " guestfs_mknod_b (guestfs_h *g,\n"
27150 "                  int mode,\n"
27151 "                  int devmajor,\n"
27152 "                  int devminor,\n"
27153 "                  const char *path);\n"
27154 "\n"
27155 msgstr ""
27156
27157 #. type: textblock
27158 #: ../src/guestfs-actions.pod:4837
27159 msgid ""
27160 "This call creates a block device node called C<path> with mode C<mode> and "
27161 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
27162 "wrapper around C<guestfs_mknod>."
27163 msgstr ""
27164
27165 #. type: =head2
27166 #: ../src/guestfs-actions.pod:4847
27167 msgid "guestfs_mknod_c"
27168 msgstr ""
27169
27170 #. type: verbatim
27171 #: ../src/guestfs-actions.pod:4849
27172 #, no-wrap
27173 msgid ""
27174 " int\n"
27175 " guestfs_mknod_c (guestfs_h *g,\n"
27176 "                  int mode,\n"
27177 "                  int devmajor,\n"
27178 "                  int devminor,\n"
27179 "                  const char *path);\n"
27180 "\n"
27181 msgstr ""
27182
27183 #. type: textblock
27184 #: ../src/guestfs-actions.pod:4856
27185 msgid ""
27186 "This call creates a char device node called C<path> with mode C<mode> and "
27187 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
27188 "wrapper around C<guestfs_mknod>."
27189 msgstr ""
27190
27191 #. type: =head2
27192 #: ../src/guestfs-actions.pod:4866
27193 msgid "guestfs_mkswap"
27194 msgstr ""
27195
27196 #. type: verbatim
27197 #: ../src/guestfs-actions.pod:4868
27198 #, no-wrap
27199 msgid ""
27200 " int\n"
27201 " guestfs_mkswap (guestfs_h *g,\n"
27202 "                 const char *device);\n"
27203 "\n"
27204 msgstr ""
27205
27206 #. type: =head2
27207 #: ../src/guestfs-actions.pod:4878
27208 msgid "guestfs_mkswap_L"
27209 msgstr ""
27210
27211 #. type: verbatim
27212 #: ../src/guestfs-actions.pod:4880
27213 #, no-wrap
27214 msgid ""
27215 " int\n"
27216 " guestfs_mkswap_L (guestfs_h *g,\n"
27217 "                   const char *label,\n"
27218 "                   const char *device);\n"
27219 "\n"
27220 msgstr ""
27221
27222 #. type: =head2
27223 #: ../src/guestfs-actions.pod:4895
27224 msgid "guestfs_mkswap_U"
27225 msgstr ""
27226
27227 #. type: verbatim
27228 #: ../src/guestfs-actions.pod:4897
27229 #, no-wrap
27230 msgid ""
27231 " int\n"
27232 " guestfs_mkswap_U (guestfs_h *g,\n"
27233 "                   const char *uuid,\n"
27234 "                   const char *device);\n"
27235 "\n"
27236 msgstr ""
27237
27238 #. type: =head2
27239 #: ../src/guestfs-actions.pod:4908
27240 msgid "guestfs_mkswap_file"
27241 msgstr ""
27242
27243 #. type: verbatim
27244 #: ../src/guestfs-actions.pod:4910
27245 #, no-wrap
27246 msgid ""
27247 " int\n"
27248 " guestfs_mkswap_file (guestfs_h *g,\n"
27249 "                      const char *path);\n"
27250 "\n"
27251 msgstr ""
27252
27253 #. type: textblock
27254 #: ../src/guestfs-actions.pod:4916
27255 msgid ""
27256 "This command just writes a swap file signature to an existing file.  To "
27257 "create the file itself, use something like C<guestfs_fallocate>."
27258 msgstr ""
27259
27260 #. type: =head2
27261 #: ../src/guestfs-actions.pod:4923
27262 msgid "guestfs_modprobe"
27263 msgstr ""
27264
27265 #. type: verbatim
27266 #: ../src/guestfs-actions.pod:4925
27267 #, no-wrap
27268 msgid ""
27269 " int\n"
27270 " guestfs_modprobe (guestfs_h *g,\n"
27271 "                   const char *modulename);\n"
27272 "\n"
27273 msgstr ""
27274
27275 #. type: =head2
27276 #: ../src/guestfs-actions.pod:4938
27277 msgid "guestfs_mount"
27278 msgstr ""
27279
27280 #. type: verbatim
27281 #: ../src/guestfs-actions.pod:4940
27282 #, no-wrap
27283 msgid ""
27284 " int\n"
27285 " guestfs_mount (guestfs_h *g,\n"
27286 "                const char *device,\n"
27287 "                const char *mountpoint);\n"
27288 "\n"
27289 msgstr ""
27290
27291 #. type: textblock
27292 #: ../src/guestfs-actions.pod:4959
27293 msgid ""
27294 "B<Important note:> When you use this call, the filesystem options C<sync> "
27295 "and C<noatime> are set implicitly.  This was originally done because we "
27296 "thought it would improve reliability, but it turns out that I<-o sync> has a "
27297 "very large negative performance impact and negligible effect on "
27298 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
27299 "in any code that needs performance, and instead use C<guestfs_mount_options> "
27300 "(use an empty string for the first parameter if you don't want any options)."
27301 msgstr ""
27302
27303 #. type: textblock
27304 #: ../src/guestfs-actions.pod:4971
27305 msgid ""
27306 "This function is deprecated.  In new code, use the L</guestfs_mount_options> "
27307 "call instead."
27308 msgstr ""
27309
27310 #. type: =head2
27311 #: ../src/guestfs-actions.pod:4980
27312 msgid "guestfs_mount_9p"
27313 msgstr ""
27314
27315 #. type: verbatim
27316 #: ../src/guestfs-actions.pod:4982
27317 #, no-wrap
27318 msgid ""
27319 " int\n"
27320 " guestfs_mount_9p (guestfs_h *g,\n"
27321 "                   const char *mounttag,\n"
27322 "                   const char *mountpoint,\n"
27323 "                   ...);\n"
27324 "\n"
27325 msgstr ""
27326
27327 #. type: verbatim
27328 #: ../src/guestfs-actions.pod:4993
27329 #, no-wrap
27330 msgid ""
27331 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
27332 "\n"
27333 msgstr ""
27334
27335 #. type: =head2
27336 #: ../src/guestfs-actions.pod:5006
27337 msgid "guestfs_mount_9p_va"
27338 msgstr ""
27339
27340 #. type: verbatim
27341 #: ../src/guestfs-actions.pod:5008
27342 #, no-wrap
27343 msgid ""
27344 " int\n"
27345 " guestfs_mount_9p_va (guestfs_h *g,\n"
27346 "                      const char *mounttag,\n"
27347 "                      const char *mountpoint,\n"
27348 "                      va_list args);\n"
27349 "\n"
27350 msgstr ""
27351
27352 #. type: textblock
27353 #: ../src/guestfs-actions.pod:5014
27354 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
27355 msgstr ""
27356
27357 #. type: =head2
27358 #: ../src/guestfs-actions.pod:5018
27359 msgid "guestfs_mount_9p_argv"
27360 msgstr ""
27361
27362 #. type: verbatim
27363 #: ../src/guestfs-actions.pod:5020
27364 #, no-wrap
27365 msgid ""
27366 " int\n"
27367 " guestfs_mount_9p_argv (guestfs_h *g,\n"
27368 "                        const char *mounttag,\n"
27369 "                        const char *mountpoint,\n"
27370 "                        const struct guestfs_mount_9p_argv *optargs);\n"
27371 "\n"
27372 msgstr ""
27373
27374 #. type: textblock
27375 #: ../src/guestfs-actions.pod:5026
27376 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
27377 msgstr ""
27378
27379 #. type: =head2
27380 #: ../src/guestfs-actions.pod:5030
27381 msgid "guestfs_mount_loop"
27382 msgstr ""
27383
27384 #. type: verbatim
27385 #: ../src/guestfs-actions.pod:5032
27386 #, no-wrap
27387 msgid ""
27388 " int\n"
27389 " guestfs_mount_loop (guestfs_h *g,\n"
27390 "                     const char *file,\n"
27391 "                     const char *mountpoint);\n"
27392 "\n"
27393 msgstr ""
27394
27395 #. type: =head2
27396 #: ../src/guestfs-actions.pod:5045
27397 msgid "guestfs_mount_options"
27398 msgstr ""
27399
27400 #. type: verbatim
27401 #: ../src/guestfs-actions.pod:5047
27402 #, no-wrap
27403 msgid ""
27404 " int\n"
27405 " guestfs_mount_options (guestfs_h *g,\n"
27406 "                        const char *options,\n"
27407 "                        const char *device,\n"
27408 "                        const char *mountpoint);\n"
27409 "\n"
27410 msgstr ""
27411
27412 #. type: textblock
27413 #: ../src/guestfs-actions.pod:5053
27414 msgid ""
27415 "This is the same as the C<guestfs_mount> command, but it allows you to set "
27416 "the mount options as for the L<mount(8)> I<-o> flag."
27417 msgstr ""
27418
27419 #. type: textblock
27420 #: ../src/guestfs-actions.pod:5063 ../src/guestfs-actions.pod:5077
27421 #: ../src/guestfs-actions.pod:5094
27422 msgid "(Added in 1.0.10)"
27423 msgstr ""
27424
27425 #. type: =head2
27426 #: ../src/guestfs-actions.pod:5065
27427 msgid "guestfs_mount_ro"
27428 msgstr ""
27429
27430 #. type: verbatim
27431 #: ../src/guestfs-actions.pod:5067
27432 #, no-wrap
27433 msgid ""
27434 " int\n"
27435 " guestfs_mount_ro (guestfs_h *g,\n"
27436 "                   const char *device,\n"
27437 "                   const char *mountpoint);\n"
27438 "\n"
27439 msgstr ""
27440
27441 #. type: textblock
27442 #: ../src/guestfs-actions.pod:5072
27443 msgid ""
27444 "This is the same as the C<guestfs_mount> command, but it mounts the "
27445 "filesystem with the read-only (I<-o ro>) flag."
27446 msgstr ""
27447
27448 #. type: =head2
27449 #: ../src/guestfs-actions.pod:5079
27450 msgid "guestfs_mount_vfs"
27451 msgstr ""
27452
27453 #. type: verbatim
27454 #: ../src/guestfs-actions.pod:5081
27455 #, no-wrap
27456 msgid ""
27457 " int\n"
27458 " guestfs_mount_vfs (guestfs_h *g,\n"
27459 "                    const char *options,\n"
27460 "                    const char *vfstype,\n"
27461 "                    const char *device,\n"
27462 "                    const char *mountpoint);\n"
27463 "\n"
27464 msgstr ""
27465
27466 #. type: textblock
27467 #: ../src/guestfs-actions.pod:5088
27468 msgid ""
27469 "This is the same as the C<guestfs_mount> command, but it allows you to set "
27470 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
27471 "t> flags."
27472 msgstr ""
27473
27474 #. type: =head2
27475 #: ../src/guestfs-actions.pod:5096
27476 msgid "guestfs_mountpoints"
27477 msgstr ""
27478
27479 #. type: verbatim
27480 #: ../src/guestfs-actions.pod:5098
27481 #, no-wrap
27482 msgid ""
27483 " char **\n"
27484 " guestfs_mountpoints (guestfs_h *g);\n"
27485 "\n"
27486 msgstr ""
27487
27488 #. type: textblock
27489 #: ../src/guestfs-actions.pod:5101
27490 msgid ""
27491 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
27492 "devices.  This one returns a hash table (map) of device name to directory "
27493 "where the device is mounted."
27494 msgstr ""
27495
27496 #. type: =head2
27497 #: ../src/guestfs-actions.pod:5113
27498 msgid "guestfs_mounts"
27499 msgstr ""
27500
27501 #. type: verbatim
27502 #: ../src/guestfs-actions.pod:5115
27503 #, no-wrap
27504 msgid ""
27505 " char **\n"
27506 " guestfs_mounts (guestfs_h *g);\n"
27507 "\n"
27508 msgstr ""
27509
27510 #. type: textblock
27511 #: ../src/guestfs-actions.pod:5123
27512 msgid "See also: C<guestfs_mountpoints>"
27513 msgstr ""
27514
27515 #. type: =head2
27516 #: ../src/guestfs-actions.pod:5131
27517 msgid "guestfs_mv"
27518 msgstr ""
27519
27520 #. type: verbatim
27521 #: ../src/guestfs-actions.pod:5133
27522 #, no-wrap
27523 msgid ""
27524 " int\n"
27525 " guestfs_mv (guestfs_h *g,\n"
27526 "             const char *src,\n"
27527 "             const char *dest);\n"
27528 "\n"
27529 msgstr ""
27530
27531 #. type: =head2
27532 #: ../src/guestfs-actions.pod:5145
27533 msgid "guestfs_ntfs_3g_probe"
27534 msgstr ""
27535
27536 #. type: verbatim
27537 #: ../src/guestfs-actions.pod:5147
27538 #, no-wrap
27539 msgid ""
27540 " int\n"
27541 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
27542 "                        int rw,\n"
27543 "                        const char *device);\n"
27544 "\n"
27545 msgstr ""
27546
27547 #. type: textblock
27548 #: ../src/guestfs-actions.pod:5166
27549 msgid "(Added in 1.0.43)"
27550 msgstr ""
27551
27552 #. type: =head2
27553 #: ../src/guestfs-actions.pod:5168
27554 msgid "guestfs_ntfsresize"
27555 msgstr ""
27556
27557 #. type: verbatim
27558 #: ../src/guestfs-actions.pod:5170
27559 #, no-wrap
27560 msgid ""
27561 " int\n"
27562 " guestfs_ntfsresize (guestfs_h *g,\n"
27563 "                     const char *device);\n"
27564 "\n"
27565 msgstr ""
27566
27567 #. type: textblock
27568 #: ../src/guestfs-actions.pod:5189 ../src/guestfs-actions.pod:5279
27569 msgid ""
27570 "This function is deprecated.  In new code, use the L</"
27571 "guestfs_ntfsresize_opts> call instead."
27572 msgstr ""
27573
27574 #. type: =head2
27575 #: ../src/guestfs-actions.pod:5198
27576 msgid "guestfs_ntfsresize_opts"
27577 msgstr ""
27578
27579 #. type: verbatim
27580 #: ../src/guestfs-actions.pod:5200
27581 #, no-wrap
27582 msgid ""
27583 " int\n"
27584 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
27585 "                          const char *device,\n"
27586 "                          ...);\n"
27587 "\n"
27588 msgstr ""
27589
27590 #. type: verbatim
27591 #: ../src/guestfs-actions.pod:5210
27592 #, no-wrap
27593 msgid ""
27594 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
27595 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
27596 "\n"
27597 msgstr ""
27598
27599 #. type: textblock
27600 #: ../src/guestfs-actions.pod:5230
27601 msgid ""
27602 "After the resize operation, the filesystem is always marked as requiring a "
27603 "consistency check (for safety).  You have to boot into Windows to perform "
27604 "this check and clear this condition.  If you I<don't> set the C<force> "
27605 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
27606 "times on a single filesystem without booting into Windows between each "
27607 "resize."
27608 msgstr ""
27609
27610 #. type: =head2
27611 #: ../src/guestfs-actions.pod:5245
27612 msgid "guestfs_ntfsresize_opts_va"
27613 msgstr ""
27614
27615 #. type: verbatim
27616 #: ../src/guestfs-actions.pod:5247
27617 #, no-wrap
27618 msgid ""
27619 " int\n"
27620 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
27621 "                             const char *device,\n"
27622 "                             va_list args);\n"
27623 "\n"
27624 msgstr ""
27625
27626 #. type: textblock
27627 #: ../src/guestfs-actions.pod:5252
27628 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
27629 msgstr ""
27630
27631 #. type: =head2
27632 #: ../src/guestfs-actions.pod:5256
27633 msgid "guestfs_ntfsresize_opts_argv"
27634 msgstr ""
27635
27636 #. type: verbatim
27637 #: ../src/guestfs-actions.pod:5258
27638 #, no-wrap
27639 msgid ""
27640 " int\n"
27641 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
27642 "                               const char *device,\n"
27643 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
27644 "\n"
27645 msgstr ""
27646
27647 #. type: textblock
27648 #: ../src/guestfs-actions.pod:5263
27649 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
27650 msgstr ""
27651
27652 #. type: =head2
27653 #: ../src/guestfs-actions.pod:5267
27654 msgid "guestfs_ntfsresize_size"
27655 msgstr ""
27656
27657 #. type: verbatim
27658 #: ../src/guestfs-actions.pod:5269
27659 #, no-wrap
27660 msgid ""
27661 " int\n"
27662 " guestfs_ntfsresize_size (guestfs_h *g,\n"
27663 "                          const char *device,\n"
27664 "                          int64_t size);\n"
27665 "\n"
27666 msgstr ""
27667
27668 #. type: textblock
27669 #: ../src/guestfs-actions.pod:5274
27670 msgid ""
27671 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
27672 "to specify the new size (in bytes) explicitly."
27673 msgstr ""
27674
27675 #. type: textblock
27676 #: ../src/guestfs-actions.pod:5286 ../src/guestfs-actions.pod:5728
27677 #: ../src/guestfs-actions.pod:5801 ../src/guestfs-actions.pod:6069
27678 #: ../src/guestfs-actions.pod:7692
27679 msgid "(Added in 1.3.14)"
27680 msgstr ""
27681
27682 #. type: =head2
27683 #: ../src/guestfs-actions.pod:5288
27684 msgid "guestfs_part_add"
27685 msgstr ""
27686
27687 #. type: verbatim
27688 #: ../src/guestfs-actions.pod:5290
27689 #, no-wrap
27690 msgid ""
27691 " int\n"
27692 " guestfs_part_add (guestfs_h *g,\n"
27693 "                   const char *device,\n"
27694 "                   const char *prlogex,\n"
27695 "                   int64_t startsect,\n"
27696 "                   int64_t endsect);\n"
27697 "\n"
27698 msgstr ""
27699
27700 #. type: textblock
27701 #: ../src/guestfs-actions.pod:5297
27702 msgid ""
27703 "This command adds a partition to C<device>.  If there is no partition table "
27704 "on the device, call C<guestfs_part_init> first."
27705 msgstr ""
27706
27707 #. type: textblock
27708 #: ../src/guestfs-actions.pod:5309
27709 msgid ""
27710 "Creating a partition which covers the whole disk is not so easy.  Use "
27711 "C<guestfs_part_disk> to do that."
27712 msgstr ""
27713
27714 #. type: textblock
27715 #: ../src/guestfs-actions.pod:5314 ../src/guestfs-actions.pod:5352
27716 #: ../src/guestfs-actions.pod:5405 ../src/guestfs-actions.pod:5489
27717 #: ../src/guestfs-actions.pod:5527 ../src/guestfs-actions.pod:5546
27718 #: ../src/guestfs-actions.pod:5586
27719 msgid "(Added in 1.0.78)"
27720 msgstr ""
27721
27722 #. type: =head2
27723 #: ../src/guestfs-actions.pod:5316
27724 msgid "guestfs_part_del"
27725 msgstr ""
27726
27727 #. type: verbatim
27728 #: ../src/guestfs-actions.pod:5318
27729 #, no-wrap
27730 msgid ""
27731 " int\n"
27732 " guestfs_part_del (guestfs_h *g,\n"
27733 "                   const char *device,\n"
27734 "                   int partnum);\n"
27735 "\n"
27736 msgstr ""
27737
27738 #. type: =head2
27739 #: ../src/guestfs-actions.pod:5333
27740 msgid "guestfs_part_disk"
27741 msgstr ""
27742
27743 #. type: verbatim
27744 #: ../src/guestfs-actions.pod:5335
27745 #, no-wrap
27746 msgid ""
27747 " int\n"
27748 " guestfs_part_disk (guestfs_h *g,\n"
27749 "                    const char *device,\n"
27750 "                    const char *parttype);\n"
27751 "\n"
27752 msgstr ""
27753
27754 #. type: textblock
27755 #: ../src/guestfs-actions.pod:5340
27756 msgid ""
27757 "This command is simply a combination of C<guestfs_part_init> followed by "
27758 "C<guestfs_part_add> to create a single primary partition covering the whole "
27759 "disk."
27760 msgstr ""
27761
27762 #. type: textblock
27763 #: ../src/guestfs-actions.pod:5344
27764 msgid ""
27765 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
27766 "possible values are described in C<guestfs_part_init>."
27767 msgstr ""
27768
27769 #. type: =head2
27770 #: ../src/guestfs-actions.pod:5354
27771 msgid "guestfs_part_get_bootable"
27772 msgstr ""
27773
27774 #. type: verbatim
27775 #: ../src/guestfs-actions.pod:5356
27776 #, no-wrap
27777 msgid ""
27778 " int\n"
27779 " guestfs_part_get_bootable (guestfs_h *g,\n"
27780 "                            const char *device,\n"
27781 "                            int partnum);\n"
27782 "\n"
27783 msgstr ""
27784
27785 #. type: textblock
27786 #: ../src/guestfs-actions.pod:5364
27787 msgid "See also C<guestfs_part_set_bootable>."
27788 msgstr ""
27789
27790 #. type: =head2
27791 #: ../src/guestfs-actions.pod:5370
27792 msgid "guestfs_part_get_mbr_id"
27793 msgstr ""
27794
27795 #. type: verbatim
27796 #: ../src/guestfs-actions.pod:5372
27797 #, no-wrap
27798 msgid ""
27799 " int\n"
27800 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
27801 "                          const char *device,\n"
27802 "                          int partnum);\n"
27803 "\n"
27804 msgstr ""
27805
27806 #. type: textblock
27807 #: ../src/guestfs-actions.pod:5380 ../src/guestfs-actions.pod:5562
27808 msgid ""
27809 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
27810 "undefined results for other partition table types (see "
27811 "C<guestfs_part_get_parttype>)."
27812 msgstr ""
27813
27814 #. type: =head2
27815 #: ../src/guestfs-actions.pod:5388
27816 msgid "guestfs_part_get_parttype"
27817 msgstr ""
27818
27819 #. type: verbatim
27820 #: ../src/guestfs-actions.pod:5390
27821 #, no-wrap
27822 msgid ""
27823 " char *\n"
27824 " guestfs_part_get_parttype (guestfs_h *g,\n"
27825 "                            const char *device);\n"
27826 "\n"
27827 msgstr ""
27828
27829 #. type: textblock
27830 #: ../src/guestfs-actions.pod:5397
27831 msgid ""
27832 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
27833 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
27834 "possible, although unusual.  See C<guestfs_part_init> for a full list."
27835 msgstr ""
27836
27837 #. type: =head2
27838 #: ../src/guestfs-actions.pod:5407
27839 msgid "guestfs_part_init"
27840 msgstr ""
27841
27842 #. type: verbatim
27843 #: ../src/guestfs-actions.pod:5409
27844 #, no-wrap
27845 msgid ""
27846 " int\n"
27847 " guestfs_part_init (guestfs_h *g,\n"
27848 "                    const char *device,\n"
27849 "                    const char *parttype);\n"
27850 "\n"
27851 msgstr ""
27852
27853 #. type: textblock
27854 #: ../src/guestfs-actions.pod:5418
27855 msgid ""
27856 "Initially there are no partitions.  Following this, you should call "
27857 "C<guestfs_part_add> for each partition required."
27858 msgstr ""
27859
27860 #. type: =head2
27861 #: ../src/guestfs-actions.pod:5491
27862 msgid "guestfs_part_list"
27863 msgstr ""
27864
27865 #. type: verbatim
27866 #: ../src/guestfs-actions.pod:5493
27867 #, no-wrap
27868 msgid ""
27869 " struct guestfs_partition_list *\n"
27870 " guestfs_part_list (guestfs_h *g,\n"
27871 "                    const char *device);\n"
27872 "\n"
27873 msgstr ""
27874
27875 #. type: textblock
27876 #: ../src/guestfs-actions.pod:5510
27877 msgid ""
27878 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
27879 "the device's sector size, see C<guestfs_blockdev_getss>."
27880 msgstr ""
27881
27882 #. type: textblock
27883 #: ../src/guestfs-actions.pod:5523
27884 msgid ""
27885 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
27886 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
27887 "use>."
27888 msgstr ""
27889
27890 #. type: =head2
27891 #: ../src/guestfs-actions.pod:5529
27892 msgid "guestfs_part_set_bootable"
27893 msgstr ""
27894
27895 #. type: verbatim
27896 #: ../src/guestfs-actions.pod:5531
27897 #, no-wrap
27898 msgid ""
27899 " int\n"
27900 " guestfs_part_set_bootable (guestfs_h *g,\n"
27901 "                            const char *device,\n"
27902 "                            int partnum,\n"
27903 "                            int bootable);\n"
27904 "\n"
27905 msgstr ""
27906
27907 #. type: =head2
27908 #: ../src/guestfs-actions.pod:5548
27909 msgid "guestfs_part_set_mbr_id"
27910 msgstr ""
27911
27912 #. type: verbatim
27913 #: ../src/guestfs-actions.pod:5550
27914 #, no-wrap
27915 msgid ""
27916 " int\n"
27917 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
27918 "                          const char *device,\n"
27919 "                          int partnum,\n"
27920 "                          int idbyte);\n"
27921 "\n"
27922 msgstr ""
27923
27924 #. type: =head2
27925 #: ../src/guestfs-actions.pod:5570
27926 msgid "guestfs_part_set_name"
27927 msgstr ""
27928
27929 #. type: verbatim
27930 #: ../src/guestfs-actions.pod:5572
27931 #, no-wrap
27932 msgid ""
27933 " int\n"
27934 " guestfs_part_set_name (guestfs_h *g,\n"
27935 "                        const char *device,\n"
27936 "                        int partnum,\n"
27937 "                        const char *name);\n"
27938 "\n"
27939 msgstr ""
27940
27941 #. type: =head2
27942 #: ../src/guestfs-actions.pod:5588
27943 msgid "guestfs_part_to_dev"
27944 msgstr ""
27945
27946 #. type: verbatim
27947 #: ../src/guestfs-actions.pod:5590
27948 #, no-wrap
27949 msgid ""
27950 " char *\n"
27951 " guestfs_part_to_dev (guestfs_h *g,\n"
27952 "                      const char *partition);\n"
27953 "\n"
27954 msgstr ""
27955
27956 #. type: textblock
27957 #: ../src/guestfs-actions.pod:5598
27958 msgid ""
27959 "The named partition must exist, for example as a string returned from "
27960 "C<guestfs_list_partitions>."
27961 msgstr ""
27962
27963 #. type: =head2
27964 #: ../src/guestfs-actions.pod:5606
27965 msgid "guestfs_ping_daemon"
27966 msgstr ""
27967
27968 #. type: verbatim
27969 #: ../src/guestfs-actions.pod:5608
27970 #, no-wrap
27971 msgid ""
27972 " int\n"
27973 " guestfs_ping_daemon (guestfs_h *g);\n"
27974 "\n"
27975 msgstr ""
27976
27977 #. type: =head2
27978 #: ../src/guestfs-actions.pod:5620
27979 msgid "guestfs_pread"
27980 msgstr ""
27981
27982 #. type: verbatim
27983 #: ../src/guestfs-actions.pod:5622
27984 #, no-wrap
27985 msgid ""
27986 " char *\n"
27987 " guestfs_pread (guestfs_h *g,\n"
27988 "                const char *path,\n"
27989 "                int count,\n"
27990 "                int64_t offset,\n"
27991 "                size_t *size_r);\n"
27992 "\n"
27993 msgstr ""
27994
27995 #. type: textblock
27996 #: ../src/guestfs-actions.pod:5635
27997 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
27998 msgstr ""
27999
28000 #. type: =head2
28001 #: ../src/guestfs-actions.pod:5646
28002 msgid "guestfs_pread_device"
28003 msgstr ""
28004
28005 #. type: verbatim
28006 #: ../src/guestfs-actions.pod:5648
28007 #, no-wrap
28008 msgid ""
28009 " char *\n"
28010 " guestfs_pread_device (guestfs_h *g,\n"
28011 "                       const char *device,\n"
28012 "                       int count,\n"
28013 "                       int64_t offset,\n"
28014 "                       size_t *size_r);\n"
28015 "\n"
28016 msgstr ""
28017
28018 #. type: textblock
28019 #: ../src/guestfs-actions.pod:5661
28020 msgid "See also C<guestfs_pread>."
28021 msgstr ""
28022
28023 #. type: textblock
28024 #: ../src/guestfs-actions.pod:5670
28025 msgid "(Added in 1.5.21)"
28026 msgstr ""
28027
28028 #. type: =head2
28029 #: ../src/guestfs-actions.pod:5672
28030 msgid "guestfs_pvcreate"
28031 msgstr ""
28032
28033 #. type: verbatim
28034 #: ../src/guestfs-actions.pod:5674
28035 #, no-wrap
28036 msgid ""
28037 " int\n"
28038 " guestfs_pvcreate (guestfs_h *g,\n"
28039 "                   const char *device);\n"
28040 "\n"
28041 msgstr ""
28042
28043 #. type: =head2
28044 #: ../src/guestfs-actions.pod:5686
28045 msgid "guestfs_pvremove"
28046 msgstr ""
28047
28048 #. type: verbatim
28049 #: ../src/guestfs-actions.pod:5688
28050 #, no-wrap
28051 msgid ""
28052 " int\n"
28053 " guestfs_pvremove (guestfs_h *g,\n"
28054 "                   const char *device);\n"
28055 "\n"
28056 msgstr ""
28057
28058 #. type: =head2
28059 #: ../src/guestfs-actions.pod:5703
28060 msgid "guestfs_pvresize"
28061 msgstr ""
28062
28063 #. type: verbatim
28064 #: ../src/guestfs-actions.pod:5705
28065 #, no-wrap
28066 msgid ""
28067 " int\n"
28068 " guestfs_pvresize (guestfs_h *g,\n"
28069 "                   const char *device);\n"
28070 "\n"
28071 msgstr ""
28072
28073 #. type: =head2
28074 #: ../src/guestfs-actions.pod:5716
28075 msgid "guestfs_pvresize_size"
28076 msgstr ""
28077
28078 #. type: verbatim
28079 #: ../src/guestfs-actions.pod:5718
28080 #, no-wrap
28081 msgid ""
28082 " int\n"
28083 " guestfs_pvresize_size (guestfs_h *g,\n"
28084 "                        const char *device,\n"
28085 "                        int64_t size);\n"
28086 "\n"
28087 msgstr ""
28088
28089 #. type: textblock
28090 #: ../src/guestfs-actions.pod:5723
28091 msgid ""
28092 "This command is the same as C<guestfs_pvresize> except that it allows you to "
28093 "specify the new size (in bytes) explicitly."
28094 msgstr ""
28095
28096 #. type: =head2
28097 #: ../src/guestfs-actions.pod:5730
28098 msgid "guestfs_pvs"
28099 msgstr ""
28100
28101 #. type: verbatim
28102 #: ../src/guestfs-actions.pod:5732
28103 #, no-wrap
28104 msgid ""
28105 " char **\n"
28106 " guestfs_pvs (guestfs_h *g);\n"
28107 "\n"
28108 msgstr ""
28109
28110 #. type: textblock
28111 #: ../src/guestfs-actions.pod:5741
28112 msgid "See also C<guestfs_pvs_full>."
28113 msgstr ""
28114
28115 #. type: =head2
28116 #: ../src/guestfs-actions.pod:5749
28117 msgid "guestfs_pvs_full"
28118 msgstr ""
28119
28120 #. type: verbatim
28121 #: ../src/guestfs-actions.pod:5751
28122 #, no-wrap
28123 msgid ""
28124 " struct guestfs_lvm_pv_list *\n"
28125 " guestfs_pvs_full (guestfs_h *g);\n"
28126 "\n"
28127 msgstr ""
28128
28129 #. type: textblock
28130 #: ../src/guestfs-actions.pod:5757
28131 msgid ""
28132 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
28133 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
28134 msgstr ""
28135
28136 #. type: =head2
28137 #: ../src/guestfs-actions.pod:5763
28138 msgid "guestfs_pvuuid"
28139 msgstr ""
28140
28141 #. type: verbatim
28142 #: ../src/guestfs-actions.pod:5765
28143 #, no-wrap
28144 msgid ""
28145 " char *\n"
28146 " guestfs_pvuuid (guestfs_h *g,\n"
28147 "                 const char *device);\n"
28148 "\n"
28149 msgstr ""
28150
28151 #. type: =head2
28152 #: ../src/guestfs-actions.pod:5776
28153 msgid "guestfs_pwrite"
28154 msgstr ""
28155
28156 #. type: verbatim
28157 #: ../src/guestfs-actions.pod:5778
28158 #, no-wrap
28159 msgid ""
28160 " int\n"
28161 " guestfs_pwrite (guestfs_h *g,\n"
28162 "                 const char *path,\n"
28163 "                 const char *content,\n"
28164 "                 size_t content_size,\n"
28165 "                 int64_t offset);\n"
28166 "\n"
28167 msgstr ""
28168
28169 #. type: textblock
28170 #: ../src/guestfs-actions.pod:5794
28171 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
28172 msgstr ""
28173
28174 #. type: =head2
28175 #: ../src/guestfs-actions.pod:5803
28176 msgid "guestfs_pwrite_device"
28177 msgstr ""
28178
28179 #. type: verbatim
28180 #: ../src/guestfs-actions.pod:5805
28181 #, no-wrap
28182 msgid ""
28183 " int\n"
28184 " guestfs_pwrite_device (guestfs_h *g,\n"
28185 "                        const char *device,\n"
28186 "                        const char *content,\n"
28187 "                        size_t content_size,\n"
28188 "                        int64_t offset);\n"
28189 "\n"
28190 msgstr ""
28191
28192 #. type: textblock
28193 #: ../src/guestfs-actions.pod:5820
28194 msgid "See also C<guestfs_pwrite>."
28195 msgstr ""
28196
28197 #. type: textblock
28198 #: ../src/guestfs-actions.pod:5827
28199 msgid "(Added in 1.5.20)"
28200 msgstr ""
28201
28202 #. type: =head2
28203 #: ../src/guestfs-actions.pod:5829
28204 msgid "guestfs_read_file"
28205 msgstr ""
28206
28207 #. type: verbatim
28208 #: ../src/guestfs-actions.pod:5831
28209 #, no-wrap
28210 msgid ""
28211 " char *\n"
28212 " guestfs_read_file (guestfs_h *g,\n"
28213 "                    const char *path,\n"
28214 "                    size_t *size_r);\n"
28215 "\n"
28216 msgstr ""
28217
28218 #. type: textblock
28219 #: ../src/guestfs-actions.pod:5839
28220 msgid ""
28221 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
28222 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
28223 "function is limited in the total size of file that can be handled."
28224 msgstr ""
28225
28226 #. type: textblock
28227 #: ../src/guestfs-actions.pod:5851
28228 msgid "(Added in 1.0.63)"
28229 msgstr ""
28230
28231 #. type: =head2
28232 #: ../src/guestfs-actions.pod:5853
28233 msgid "guestfs_read_lines"
28234 msgstr ""
28235
28236 #. type: verbatim
28237 #: ../src/guestfs-actions.pod:5855
28238 #, no-wrap
28239 msgid ""
28240 " char **\n"
28241 " guestfs_read_lines (guestfs_h *g,\n"
28242 "                     const char *path);\n"
28243 "\n"
28244 msgstr ""
28245
28246 #. type: textblock
28247 #: ../src/guestfs-actions.pod:5864
28248 msgid ""
28249 "Note that this function cannot correctly handle binary files (specifically, "
28250 "files containing C<\\0> character which is treated as end of line).  For "
28251 "those you need to use the C<guestfs_read_file> function which has a more "
28252 "complex interface."
28253 msgstr ""
28254
28255 #. type: =head2
28256 #: ../src/guestfs-actions.pod:5875
28257 msgid "guestfs_readdir"
28258 msgstr ""
28259
28260 #. type: verbatim
28261 #: ../src/guestfs-actions.pod:5877
28262 #, no-wrap
28263 msgid ""
28264 " struct guestfs_dirent_list *\n"
28265 " guestfs_readdir (guestfs_h *g,\n"
28266 "                  const char *dir);\n"
28267 "\n"
28268 msgstr ""
28269
28270 #. type: textblock
28271 #: ../src/guestfs-actions.pod:5931
28272 msgid ""
28273 "This function is primarily intended for use by programs.  To get a simple "
28274 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
28275 "consumption, use C<guestfs_ll>."
28276 msgstr ""
28277
28278 #. type: textblock
28279 #: ../src/guestfs-actions.pod:5935
28280 msgid ""
28281 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
28282 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
28283 msgstr ""
28284
28285 #. type: =head2
28286 #: ../src/guestfs-actions.pod:5941
28287 msgid "guestfs_readlink"
28288 msgstr ""
28289
28290 #. type: verbatim
28291 #: ../src/guestfs-actions.pod:5943
28292 #, no-wrap
28293 msgid ""
28294 " char *\n"
28295 " guestfs_readlink (guestfs_h *g,\n"
28296 "                   const char *path);\n"
28297 "\n"
28298 msgstr ""
28299
28300 #. type: =head2
28301 #: ../src/guestfs-actions.pod:5954
28302 msgid "guestfs_readlinklist"
28303 msgstr ""
28304
28305 #. type: verbatim
28306 #: ../src/guestfs-actions.pod:5956
28307 #, no-wrap
28308 msgid ""
28309 " char **\n"
28310 " guestfs_readlinklist (guestfs_h *g,\n"
28311 "                       const char *path,\n"
28312 "                       char *const *names);\n"
28313 "\n"
28314 msgstr ""
28315
28316 #. type: =head2
28317 #: ../src/guestfs-actions.pod:5989
28318 msgid "guestfs_realpath"
28319 msgstr ""
28320
28321 #. type: verbatim
28322 #: ../src/guestfs-actions.pod:5991
28323 #, no-wrap
28324 msgid ""
28325 " char *\n"
28326 " guestfs_realpath (guestfs_h *g,\n"
28327 "                   const char *path);\n"
28328 "\n"
28329 msgstr ""
28330
28331 #. type: =head2
28332 #: ../src/guestfs-actions.pod:6003
28333 msgid "guestfs_removexattr"
28334 msgstr ""
28335
28336 #. type: verbatim
28337 #: ../src/guestfs-actions.pod:6005
28338 #, no-wrap
28339 msgid ""
28340 " int\n"
28341 " guestfs_removexattr (guestfs_h *g,\n"
28342 "                      const char *xattr,\n"
28343 "                      const char *path);\n"
28344 "\n"
28345 msgstr ""
28346
28347 #. type: textblock
28348 #: ../src/guestfs-actions.pod:6013
28349 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
28350 msgstr ""
28351
28352 #. type: =head2
28353 #: ../src/guestfs-actions.pod:6019
28354 msgid "guestfs_resize2fs"
28355 msgstr ""
28356
28357 #. type: verbatim
28358 #: ../src/guestfs-actions.pod:6021
28359 #, no-wrap
28360 msgid ""
28361 " int\n"
28362 " guestfs_resize2fs (guestfs_h *g,\n"
28363 "                    const char *device);\n"
28364 "\n"
28365 msgstr ""
28366
28367 #. type: textblock
28368 #: ../src/guestfs-actions.pod:6028
28369 msgid ""
28370 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
28371 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
28372 "sometimes gives an error about this and sometimes not.  In any case, it is "
28373 "always safe to call C<guestfs_e2fsck_f> before calling this function."
28374 msgstr ""
28375
28376 #. type: =head2
28377 #: ../src/guestfs-actions.pod:6038
28378 msgid "guestfs_resize2fs_M"
28379 msgstr ""
28380
28381 #. type: verbatim
28382 #: ../src/guestfs-actions.pod:6040
28383 #, no-wrap
28384 msgid ""
28385 " int\n"
28386 " guestfs_resize2fs_M (guestfs_h *g,\n"
28387 "                      const char *device);\n"
28388 "\n"
28389 msgstr ""
28390
28391 #. type: textblock
28392 #: ../src/guestfs-actions.pod:6044
28393 msgid ""
28394 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
28395 "resized to its minimum size.  This works like the I<-M> option to the "
28396 "C<resize2fs> command."
28397 msgstr ""
28398
28399 #. type: textblock
28400 #: ../src/guestfs-actions.pod:6048
28401 msgid ""
28402 "To get the resulting size of the filesystem you should call "
28403 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
28404 "These two numbers, multiplied together, give the resulting size of the "
28405 "minimal filesystem in bytes."
28406 msgstr ""
28407
28408 #. type: =head2
28409 #: ../src/guestfs-actions.pod:6057
28410 msgid "guestfs_resize2fs_size"
28411 msgstr ""
28412
28413 #. type: verbatim
28414 #: ../src/guestfs-actions.pod:6059
28415 #, no-wrap
28416 msgid ""
28417 " int\n"
28418 " guestfs_resize2fs_size (guestfs_h *g,\n"
28419 "                         const char *device,\n"
28420 "                         int64_t size);\n"
28421 "\n"
28422 msgstr ""
28423
28424 #. type: textblock
28425 #: ../src/guestfs-actions.pod:6064
28426 msgid ""
28427 "This command is the same as C<guestfs_resize2fs> except that it allows you "
28428 "to specify the new size (in bytes) explicitly."
28429 msgstr ""
28430
28431 #. type: =head2
28432 #: ../src/guestfs-actions.pod:6071
28433 msgid "guestfs_rm"
28434 msgstr ""
28435
28436 #. type: verbatim
28437 #: ../src/guestfs-actions.pod:6073
28438 #, no-wrap
28439 msgid ""
28440 " int\n"
28441 " guestfs_rm (guestfs_h *g,\n"
28442 "             const char *path);\n"
28443 "\n"
28444 msgstr ""
28445
28446 #. type: =head2
28447 #: ../src/guestfs-actions.pod:6083
28448 msgid "guestfs_rm_rf"
28449 msgstr ""
28450
28451 #. type: verbatim
28452 #: ../src/guestfs-actions.pod:6085
28453 #, no-wrap
28454 msgid ""
28455 " int\n"
28456 " guestfs_rm_rf (guestfs_h *g,\n"
28457 "                const char *path);\n"
28458 "\n"
28459 msgstr ""
28460
28461 #. type: =head2
28462 #: ../src/guestfs-actions.pod:6097
28463 msgid "guestfs_rmdir"
28464 msgstr ""
28465
28466 #. type: verbatim
28467 #: ../src/guestfs-actions.pod:6099
28468 #, no-wrap
28469 msgid ""
28470 " int\n"
28471 " guestfs_rmdir (guestfs_h *g,\n"
28472 "                const char *path);\n"
28473 "\n"
28474 msgstr ""
28475
28476 #. type: =head2
28477 #: ../src/guestfs-actions.pod:6109
28478 msgid "guestfs_rmmountpoint"
28479 msgstr ""
28480
28481 #. type: verbatim
28482 #: ../src/guestfs-actions.pod:6111
28483 #, no-wrap
28484 msgid ""
28485 " int\n"
28486 " guestfs_rmmountpoint (guestfs_h *g,\n"
28487 "                       const char *exemptpath);\n"
28488 "\n"
28489 msgstr ""
28490
28491 #. type: textblock
28492 #: ../src/guestfs-actions.pod:6115
28493 msgid ""
28494 "This calls removes a mountpoint that was previously created with "
28495 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
28496 msgstr ""
28497
28498 #. type: =head2
28499 #: ../src/guestfs-actions.pod:6123
28500 msgid "guestfs_scrub_device"
28501 msgstr ""
28502
28503 #. type: verbatim
28504 #: ../src/guestfs-actions.pod:6125
28505 #, no-wrap
28506 msgid ""
28507 " int\n"
28508 " guestfs_scrub_device (guestfs_h *g,\n"
28509 "                       const char *device);\n"
28510 "\n"
28511 msgstr ""
28512
28513 #. type: textblock
28514 #: ../src/guestfs-actions.pod:6140 ../src/guestfs-actions.pod:6158
28515 #: ../src/guestfs-actions.pod:6177
28516 msgid "(Added in 1.0.52)"
28517 msgstr ""
28518
28519 #. type: =head2
28520 #: ../src/guestfs-actions.pod:6142
28521 msgid "guestfs_scrub_file"
28522 msgstr ""
28523
28524 #. type: verbatim
28525 #: ../src/guestfs-actions.pod:6144
28526 #, no-wrap
28527 msgid ""
28528 " int\n"
28529 " guestfs_scrub_file (guestfs_h *g,\n"
28530 "                     const char *file);\n"
28531 "\n"
28532 msgstr ""
28533
28534 #. type: =head2
28535 #: ../src/guestfs-actions.pod:6160
28536 msgid "guestfs_scrub_freespace"
28537 msgstr ""
28538
28539 #. type: verbatim
28540 #: ../src/guestfs-actions.pod:6162
28541 #, no-wrap
28542 msgid ""
28543 " int\n"
28544 " guestfs_scrub_freespace (guestfs_h *g,\n"
28545 "                          const char *dir);\n"
28546 "\n"
28547 msgstr ""
28548
28549 #. type: textblock
28550 #: ../src/guestfs-actions.pod:6166
28551 msgid ""
28552 "This command creates the directory C<dir> and then fills it with files until "
28553 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
28554 "and deletes them.  The intention is to scrub any free space on the partition "
28555 "containing C<dir>."
28556 msgstr ""
28557
28558 #. type: =head2
28559 #: ../src/guestfs-actions.pod:6179
28560 msgid "guestfs_set_append"
28561 msgstr ""
28562
28563 #. type: verbatim
28564 #: ../src/guestfs-actions.pod:6181
28565 #, no-wrap
28566 msgid ""
28567 " int\n"
28568 " guestfs_set_append (guestfs_h *g,\n"
28569 "                     const char *append);\n"
28570 "\n"
28571 msgstr ""
28572
28573 #. type: =head2
28574 #: ../src/guestfs-actions.pod:6198
28575 msgid "guestfs_set_attach_method"
28576 msgstr ""
28577
28578 #. type: verbatim
28579 #: ../src/guestfs-actions.pod:6200
28580 #, no-wrap
28581 msgid ""
28582 " int\n"
28583 " guestfs_set_attach_method (guestfs_h *g,\n"
28584 "                            const char *attachmethod);\n"
28585 "\n"
28586 msgstr ""
28587
28588 #. type: =head2
28589 #: ../src/guestfs-actions.pod:6228
28590 msgid "guestfs_set_autosync"
28591 msgstr ""
28592
28593 #. type: verbatim
28594 #: ../src/guestfs-actions.pod:6230
28595 #, no-wrap
28596 msgid ""
28597 " int\n"
28598 " guestfs_set_autosync (guestfs_h *g,\n"
28599 "                       int autosync);\n"
28600 "\n"
28601 msgstr ""
28602
28603 #. type: =head2
28604 #: ../src/guestfs-actions.pod:6246
28605 msgid "guestfs_set_direct"
28606 msgstr ""
28607
28608 #. type: verbatim
28609 #: ../src/guestfs-actions.pod:6248
28610 #, no-wrap
28611 msgid ""
28612 " int\n"
28613 " guestfs_set_direct (guestfs_h *g,\n"
28614 "                     int direct);\n"
28615 "\n"
28616 msgstr ""
28617
28618 #. type: textblock
28619 #: ../src/guestfs-actions.pod:6256
28620 msgid ""
28621 "One consequence of this is that log messages aren't caught by the library "
28622 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
28623 "stdout."
28624 msgstr ""
28625
28626 #. type: =head2
28627 #: ../src/guestfs-actions.pod:6269
28628 msgid "guestfs_set_e2label"
28629 msgstr ""
28630
28631 #. type: verbatim
28632 #: ../src/guestfs-actions.pod:6271
28633 #, no-wrap
28634 msgid ""
28635 " int\n"
28636 " guestfs_set_e2label (guestfs_h *g,\n"
28637 "                      const char *device,\n"
28638 "                      const char *label);\n"
28639 "\n"
28640 msgstr ""
28641
28642 #. type: textblock
28643 #: ../src/guestfs-actions.pod:6280
28644 msgid ""
28645 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
28646 "the existing label on a filesystem."
28647 msgstr ""
28648
28649 #. type: =head2
28650 #: ../src/guestfs-actions.pod:6287
28651 msgid "guestfs_set_e2uuid"
28652 msgstr ""
28653
28654 #. type: verbatim
28655 #: ../src/guestfs-actions.pod:6289
28656 #, no-wrap
28657 msgid ""
28658 " int\n"
28659 " guestfs_set_e2uuid (guestfs_h *g,\n"
28660 "                     const char *device,\n"
28661 "                     const char *uuid);\n"
28662 "\n"
28663 msgstr ""
28664
28665 #. type: textblock
28666 #: ../src/guestfs-actions.pod:6299
28667 msgid ""
28668 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
28669 "the existing UUID of a filesystem."
28670 msgstr ""
28671
28672 #. type: =head2
28673 #: ../src/guestfs-actions.pod:6306
28674 msgid "guestfs_set_memsize"
28675 msgstr ""
28676
28677 #. type: verbatim
28678 #: ../src/guestfs-actions.pod:6308
28679 #, no-wrap
28680 msgid ""
28681 " int\n"
28682 " guestfs_set_memsize (guestfs_h *g,\n"
28683 "                      int memsize);\n"
28684 "\n"
28685 msgstr ""
28686
28687 #. type: textblock
28688 #: ../src/guestfs-actions.pod:6312
28689 msgid ""
28690 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
28691 "This only has any effect if called before C<guestfs_launch>."
28692 msgstr ""
28693
28694 #. type: =head2
28695 #: ../src/guestfs-actions.pod:6327
28696 msgid "guestfs_set_network"
28697 msgstr ""
28698
28699 #. type: verbatim
28700 #: ../src/guestfs-actions.pod:6329
28701 #, no-wrap
28702 msgid ""
28703 " int\n"
28704 " guestfs_set_network (guestfs_h *g,\n"
28705 "                      int network);\n"
28706 "\n"
28707 msgstr ""
28708
28709 #. type: textblock
28710 #: ../src/guestfs-actions.pod:6339
28711 msgid ""
28712 "You must call this before calling C<guestfs_launch>, otherwise it has no "
28713 "effect."
28714 msgstr ""
28715
28716 #. type: =head2
28717 #: ../src/guestfs-actions.pod:6346
28718 msgid "guestfs_set_path"
28719 msgstr ""
28720
28721 #. type: verbatim
28722 #: ../src/guestfs-actions.pod:6348
28723 #, no-wrap
28724 msgid ""
28725 " int\n"
28726 " guestfs_set_path (guestfs_h *g,\n"
28727 "                   const char *searchpath);\n"
28728 "\n"
28729 msgstr ""
28730
28731 #. type: =head2
28732 #: ../src/guestfs-actions.pod:6363
28733 msgid "guestfs_set_pgroup"
28734 msgstr ""
28735
28736 #. type: verbatim
28737 #: ../src/guestfs-actions.pod:6365
28738 #, no-wrap
28739 msgid ""
28740 " int\n"
28741 " guestfs_set_pgroup (guestfs_h *g,\n"
28742 "                     int pgroup);\n"
28743 "\n"
28744 msgstr ""
28745
28746 #. type: =head2
28747 #: ../src/guestfs-actions.pod:6382
28748 msgid "guestfs_set_qemu"
28749 msgstr ""
28750
28751 #. type: verbatim
28752 #: ../src/guestfs-actions.pod:6384
28753 #, no-wrap
28754 msgid ""
28755 " int\n"
28756 " guestfs_set_qemu (guestfs_h *g,\n"
28757 "                   const char *qemu);\n"
28758 "\n"
28759 msgstr ""
28760
28761 #. type: =head2
28762 #: ../src/guestfs-actions.pod:6410
28763 msgid "guestfs_set_recovery_proc"
28764 msgstr ""
28765
28766 #. type: verbatim
28767 #: ../src/guestfs-actions.pod:6412
28768 #, no-wrap
28769 msgid ""
28770 " int\n"
28771 " guestfs_set_recovery_proc (guestfs_h *g,\n"
28772 "                            int recoveryproc);\n"
28773 "\n"
28774 msgstr ""
28775
28776 #. type: textblock
28777 #: ../src/guestfs-actions.pod:6416
28778 msgid ""
28779 "If this is called with the parameter C<false> then C<guestfs_launch> does "
28780 "not create a recovery process.  The purpose of the recovery process is to "
28781 "stop runaway qemu processes in the case where the main program aborts "
28782 "abruptly."
28783 msgstr ""
28784
28785 #. type: textblock
28786 #: ../src/guestfs-actions.pod:6421
28787 msgid ""
28788 "This only has any effect if called before C<guestfs_launch>, and the default "
28789 "is true."
28790 msgstr ""
28791
28792 #. type: =head2
28793 #: ../src/guestfs-actions.pod:6434
28794 msgid "guestfs_set_selinux"
28795 msgstr ""
28796
28797 #. type: verbatim
28798 #: ../src/guestfs-actions.pod:6436
28799 #, no-wrap
28800 msgid ""
28801 " int\n"
28802 " guestfs_set_selinux (guestfs_h *g,\n"
28803 "                      int selinux);\n"
28804 "\n"
28805 msgstr ""
28806
28807 #. type: =head2
28808 #: ../src/guestfs-actions.pod:6453
28809 msgid "guestfs_set_trace"
28810 msgstr ""
28811
28812 #. type: verbatim
28813 #: ../src/guestfs-actions.pod:6455
28814 #, no-wrap
28815 msgid ""
28816 " int\n"
28817 " guestfs_set_trace (guestfs_h *g,\n"
28818 "                    int trace);\n"
28819 "\n"
28820 msgstr ""
28821
28822 #. type: textblock
28823 #: ../src/guestfs-actions.pod:6469
28824 msgid ""
28825 "Trace messages are normally sent to C<stderr>, unless you register a "
28826 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
28827 msgstr ""
28828
28829 #. type: =head2
28830 #: ../src/guestfs-actions.pod:6477
28831 msgid "guestfs_set_verbose"
28832 msgstr ""
28833
28834 #. type: verbatim
28835 #: ../src/guestfs-actions.pod:6479
28836 #, no-wrap
28837 msgid ""
28838 " int\n"
28839 " guestfs_set_verbose (guestfs_h *g,\n"
28840 "                      int verbose);\n"
28841 "\n"
28842 msgstr ""
28843
28844 #. type: textblock
28845 #: ../src/guestfs-actions.pod:6488
28846 msgid ""
28847 "Verbose messages are normally sent to C<stderr>, unless you register a "
28848 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
28849 msgstr ""
28850
28851 #. type: =head2
28852 #: ../src/guestfs-actions.pod:6496
28853 msgid "guestfs_setcon"
28854 msgstr ""
28855
28856 #. type: verbatim
28857 #: ../src/guestfs-actions.pod:6498
28858 #, no-wrap
28859 msgid ""
28860 " int\n"
28861 " guestfs_setcon (guestfs_h *g,\n"
28862 "                 const char *context);\n"
28863 "\n"
28864 msgstr ""
28865
28866 #. type: =head2
28867 #: ../src/guestfs-actions.pod:6511
28868 msgid "guestfs_setxattr"
28869 msgstr ""
28870
28871 #. type: verbatim
28872 #: ../src/guestfs-actions.pod:6513
28873 #, no-wrap
28874 msgid ""
28875 " int\n"
28876 " guestfs_setxattr (guestfs_h *g,\n"
28877 "                   const char *xattr,\n"
28878 "                   const char *val,\n"
28879 "                   int vallen,\n"
28880 "                   const char *path);\n"
28881 "\n"
28882 msgstr ""
28883
28884 #. type: textblock
28885 #: ../src/guestfs-actions.pod:6524
28886 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
28887 msgstr ""
28888
28889 #. type: =head2
28890 #: ../src/guestfs-actions.pod:6530
28891 msgid "guestfs_sfdisk"
28892 msgstr ""
28893
28894 #. type: verbatim
28895 #: ../src/guestfs-actions.pod:6532
28896 #, no-wrap
28897 msgid ""
28898 " int\n"
28899 " guestfs_sfdisk (guestfs_h *g,\n"
28900 "                 const char *device,\n"
28901 "                 int cyls,\n"
28902 "                 int heads,\n"
28903 "                 int sectors,\n"
28904 "                 char *const *lines);\n"
28905 "\n"
28906 msgstr ""
28907
28908 #. type: textblock
28909 #: ../src/guestfs-actions.pod:6560
28910 msgid ""
28911 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
28912 msgstr ""
28913
28914 #. type: textblock
28915 #: ../src/guestfs-actions.pod:6568 ../src/guestfs-actions.pod:6598
28916 #: ../src/guestfs-actions.pod:6631
28917 msgid ""
28918 "This function is deprecated.  In new code, use the L</guestfs_part_add> call "
28919 "instead."
28920 msgstr ""
28921
28922 #. type: =head2
28923 #: ../src/guestfs-actions.pod:6577
28924 msgid "guestfs_sfdiskM"
28925 msgstr ""
28926
28927 #. type: verbatim
28928 #: ../src/guestfs-actions.pod:6579
28929 #, no-wrap
28930 msgid ""
28931 " int\n"
28932 " guestfs_sfdiskM (guestfs_h *g,\n"
28933 "                  const char *device,\n"
28934 "                  char *const *lines);\n"
28935 "\n"
28936 msgstr ""
28937
28938 #. type: textblock
28939 #: ../src/guestfs-actions.pod:6584
28940 msgid ""
28941 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
28942 "partition sizes are specified in megabytes only (rounded to the nearest "
28943 "cylinder) and you don't need to specify the cyls, heads and sectors "
28944 "parameters which were rarely if ever used anyway."
28945 msgstr ""
28946
28947 #. type: textblock
28948 #: ../src/guestfs-actions.pod:6590
28949 msgid ""
28950 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
28951 "C<guestfs_part_disk>"
28952 msgstr ""
28953
28954 #. type: =head2
28955 #: ../src/guestfs-actions.pod:6607
28956 msgid "guestfs_sfdisk_N"
28957 msgstr ""
28958
28959 #. type: verbatim
28960 #: ../src/guestfs-actions.pod:6609
28961 #, no-wrap
28962 msgid ""
28963 " int\n"
28964 " guestfs_sfdisk_N (guestfs_h *g,\n"
28965 "                   const char *device,\n"
28966 "                   int partnum,\n"
28967 "                   int cyls,\n"
28968 "                   int heads,\n"
28969 "                   int sectors,\n"
28970 "                   const char *line);\n"
28971 "\n"
28972 msgstr ""
28973
28974 #. type: textblock
28975 #: ../src/guestfs-actions.pod:6621
28976 msgid ""
28977 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
28978 "for the cyls/heads/sectors parameters."
28979 msgstr ""
28980
28981 #. type: textblock
28982 #: ../src/guestfs-actions.pod:6624
28983 msgid "See also: C<guestfs_part_add>"
28984 msgstr ""
28985
28986 #. type: =head2
28987 #: ../src/guestfs-actions.pod:6640
28988 msgid "guestfs_sfdisk_disk_geometry"
28989 msgstr ""
28990
28991 #. type: verbatim
28992 #: ../src/guestfs-actions.pod:6642
28993 #, no-wrap
28994 msgid ""
28995 " char *\n"
28996 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
28997 "                               const char *device);\n"
28998 "\n"
28999 msgstr ""
29000
29001 #. type: textblock
29002 #: ../src/guestfs-actions.pod:6646
29003 msgid ""
29004 "This displays the disk geometry of C<device> read from the partition table.  "
29005 "Especially in the case where the underlying block device has been resized, "
29006 "this can be different from the kernel's idea of the geometry (see "
29007 "C<guestfs_sfdisk_kernel_geometry>)."
29008 msgstr ""
29009
29010 #. type: =head2
29011 #: ../src/guestfs-actions.pod:6659
29012 msgid "guestfs_sfdisk_kernel_geometry"
29013 msgstr ""
29014
29015 #. type: verbatim
29016 #: ../src/guestfs-actions.pod:6661
29017 #, no-wrap
29018 msgid ""
29019 " char *\n"
29020 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
29021 "                                 const char *device);\n"
29022 "\n"
29023 msgstr ""
29024
29025 #. type: =head2
29026 #: ../src/guestfs-actions.pod:6675
29027 msgid "guestfs_sfdisk_l"
29028 msgstr ""
29029
29030 #. type: verbatim
29031 #: ../src/guestfs-actions.pod:6677
29032 #, no-wrap
29033 msgid ""
29034 " char *\n"
29035 " guestfs_sfdisk_l (guestfs_h *g,\n"
29036 "                   const char *device);\n"
29037 "\n"
29038 msgstr ""
29039
29040 #. type: textblock
29041 #: ../src/guestfs-actions.pod:6685
29042 msgid "See also: C<guestfs_part_list>"
29043 msgstr ""
29044
29045 #. type: textblock
29046 #: ../src/guestfs-actions.pod:6690
29047 msgid ""
29048 "This function is deprecated.  In new code, use the L</guestfs_part_list> "
29049 "call instead."
29050 msgstr ""
29051
29052 #. type: =head2
29053 #: ../src/guestfs-actions.pod:6699
29054 msgid "guestfs_sh"
29055 msgstr ""
29056
29057 #. type: verbatim
29058 #: ../src/guestfs-actions.pod:6701
29059 #, no-wrap
29060 msgid ""
29061 " char *\n"
29062 " guestfs_sh (guestfs_h *g,\n"
29063 "             const char *command);\n"
29064 "\n"
29065 msgstr ""
29066
29067 #. type: textblock
29068 #: ../src/guestfs-actions.pod:6708
29069 msgid "This is like C<guestfs_command>, but passes the command to:"
29070 msgstr ""
29071
29072 #. type: textblock
29073 #: ../src/guestfs-actions.pod:6716
29074 msgid "All the provisos about C<guestfs_command> apply to this call."
29075 msgstr ""
29076
29077 #. type: =head2
29078 #: ../src/guestfs-actions.pod:6723
29079 msgid "guestfs_sh_lines"
29080 msgstr ""
29081
29082 #. type: verbatim
29083 #: ../src/guestfs-actions.pod:6725
29084 #, no-wrap
29085 msgid ""
29086 " char **\n"
29087 " guestfs_sh_lines (guestfs_h *g,\n"
29088 "                   const char *command);\n"
29089 "\n"
29090 msgstr ""
29091
29092 #. type: textblock
29093 #: ../src/guestfs-actions.pod:6729
29094 msgid ""
29095 "This is the same as C<guestfs_sh>, but splits the result into a list of "
29096 "lines."
29097 msgstr ""
29098
29099 #. type: textblock
29100 #: ../src/guestfs-actions.pod:6732
29101 msgid "See also: C<guestfs_command_lines>"
29102 msgstr ""
29103
29104 #. type: =head2
29105 #: ../src/guestfs-actions.pod:6740
29106 msgid "guestfs_sleep"
29107 msgstr ""
29108
29109 #. type: verbatim
29110 #: ../src/guestfs-actions.pod:6742
29111 #, no-wrap
29112 msgid ""
29113 " int\n"
29114 " guestfs_sleep (guestfs_h *g,\n"
29115 "                int secs);\n"
29116 "\n"
29117 msgstr ""
29118
29119 #. type: textblock
29120 #: ../src/guestfs-actions.pod:6750
29121 msgid "(Added in 1.0.41)"
29122 msgstr ""
29123
29124 #. type: =head2
29125 #: ../src/guestfs-actions.pod:6752 ../src/guestfs-structs.pod:109
29126 msgid "guestfs_stat"
29127 msgstr ""
29128
29129 #. type: verbatim
29130 #: ../src/guestfs-actions.pod:6754
29131 #, no-wrap
29132 msgid ""
29133 " struct guestfs_stat *\n"
29134 " guestfs_stat (guestfs_h *g,\n"
29135 "               const char *path);\n"
29136 "\n"
29137 msgstr ""
29138
29139 #. type: =head2
29140 #: ../src/guestfs-actions.pod:6768 ../src/guestfs-structs.pod:135
29141 msgid "guestfs_statvfs"
29142 msgstr ""
29143
29144 #. type: verbatim
29145 #: ../src/guestfs-actions.pod:6770
29146 #, no-wrap
29147 msgid ""
29148 " struct guestfs_statvfs *\n"
29149 " guestfs_statvfs (guestfs_h *g,\n"
29150 "                  const char *path);\n"
29151 "\n"
29152 msgstr ""
29153
29154 #. type: textblock
29155 #: ../src/guestfs-actions.pod:6780
29156 msgid ""
29157 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
29158 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
29159 msgstr ""
29160
29161 #. type: =head2
29162 #: ../src/guestfs-actions.pod:6786
29163 msgid "guestfs_strings"
29164 msgstr ""
29165
29166 #. type: verbatim
29167 #: ../src/guestfs-actions.pod:6788
29168 #, no-wrap
29169 msgid ""
29170 " char **\n"
29171 " guestfs_strings (guestfs_h *g,\n"
29172 "                  const char *path);\n"
29173 "\n"
29174 msgstr ""
29175
29176 #. type: =head2
29177 #: ../src/guestfs-actions.pod:6804
29178 msgid "guestfs_strings_e"
29179 msgstr ""
29180
29181 #. type: verbatim
29182 #: ../src/guestfs-actions.pod:6806
29183 #, no-wrap
29184 msgid ""
29185 " char **\n"
29186 " guestfs_strings_e (guestfs_h *g,\n"
29187 "                    const char *encoding,\n"
29188 "                    const char *path);\n"
29189 "\n"
29190 msgstr ""
29191
29192 #. type: textblock
29193 #: ../src/guestfs-actions.pod:6811
29194 msgid ""
29195 "This is like the C<guestfs_strings> command, but allows you to specify the "
29196 "encoding of strings that are looked for in the source file C<path>."
29197 msgstr ""
29198
29199 #. type: textblock
29200 #: ../src/guestfs-actions.pod:6821
29201 msgid ""
29202 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
29203 "ISO-8859-X (this is what C<guestfs_strings> uses)."
29204 msgstr ""
29205
29206 #. type: =head2
29207 #: ../src/guestfs-actions.pod:6859
29208 msgid "guestfs_swapoff_device"
29209 msgstr ""
29210
29211 #. type: verbatim
29212 #: ../src/guestfs-actions.pod:6861
29213 #, no-wrap
29214 msgid ""
29215 " int\n"
29216 " guestfs_swapoff_device (guestfs_h *g,\n"
29217 "                         const char *device);\n"
29218 "\n"
29219 msgstr ""
29220
29221 #. type: textblock
29222 #: ../src/guestfs-actions.pod:6865
29223 msgid ""
29224 "This command disables the libguestfs appliance swap device or partition "
29225 "named C<device>.  See C<guestfs_swapon_device>."
29226 msgstr ""
29227
29228 #. type: =head2
29229 #: ../src/guestfs-actions.pod:6873
29230 msgid "guestfs_swapoff_file"
29231 msgstr ""
29232
29233 #. type: verbatim
29234 #: ../src/guestfs-actions.pod:6875
29235 #, no-wrap
29236 msgid ""
29237 " int\n"
29238 " guestfs_swapoff_file (guestfs_h *g,\n"
29239 "                       const char *file);\n"
29240 "\n"
29241 msgstr ""
29242
29243 #. type: =head2
29244 #: ../src/guestfs-actions.pod:6885
29245 msgid "guestfs_swapoff_label"
29246 msgstr ""
29247
29248 #. type: verbatim
29249 #: ../src/guestfs-actions.pod:6887
29250 #, no-wrap
29251 msgid ""
29252 " int\n"
29253 " guestfs_swapoff_label (guestfs_h *g,\n"
29254 "                        const char *label);\n"
29255 "\n"
29256 msgstr ""
29257
29258 #. type: =head2
29259 #: ../src/guestfs-actions.pod:6898
29260 msgid "guestfs_swapoff_uuid"
29261 msgstr ""
29262
29263 #. type: verbatim
29264 #: ../src/guestfs-actions.pod:6900
29265 #, no-wrap
29266 msgid ""
29267 " int\n"
29268 " guestfs_swapoff_uuid (guestfs_h *g,\n"
29269 "                       const char *uuid);\n"
29270 "\n"
29271 msgstr ""
29272
29273 #. type: =head2
29274 #: ../src/guestfs-actions.pod:6911
29275 msgid "guestfs_swapon_device"
29276 msgstr ""
29277
29278 #. type: verbatim
29279 #: ../src/guestfs-actions.pod:6913
29280 #, no-wrap
29281 msgid ""
29282 " int\n"
29283 " guestfs_swapon_device (guestfs_h *g,\n"
29284 "                        const char *device);\n"
29285 "\n"
29286 msgstr ""
29287
29288 #. type: textblock
29289 #: ../src/guestfs-actions.pod:6917
29290 msgid ""
29291 "This command enables the libguestfs appliance to use the swap device or "
29292 "partition named C<device>.  The increased memory is made available for all "
29293 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
29294 msgstr ""
29295
29296 #. type: =head2
29297 #: ../src/guestfs-actions.pod:6933
29298 msgid "guestfs_swapon_file"
29299 msgstr ""
29300
29301 #. type: verbatim
29302 #: ../src/guestfs-actions.pod:6935
29303 #, no-wrap
29304 msgid ""
29305 " int\n"
29306 " guestfs_swapon_file (guestfs_h *g,\n"
29307 "                      const char *file);\n"
29308 "\n"
29309 msgstr ""
29310
29311 #. type: textblock
29312 #: ../src/guestfs-actions.pod:6939
29313 msgid ""
29314 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
29315 "notes."
29316 msgstr ""
29317
29318 #. type: =head2
29319 #: ../src/guestfs-actions.pod:6946
29320 msgid "guestfs_swapon_label"
29321 msgstr ""
29322
29323 #. type: verbatim
29324 #: ../src/guestfs-actions.pod:6948
29325 #, no-wrap
29326 msgid ""
29327 " int\n"
29328 " guestfs_swapon_label (guestfs_h *g,\n"
29329 "                       const char *label);\n"
29330 "\n"
29331 msgstr ""
29332
29333 #. type: textblock
29334 #: ../src/guestfs-actions.pod:6952
29335 msgid ""
29336 "This command enables swap to a labeled swap partition.  See "
29337 "C<guestfs_swapon_device> for other notes."
29338 msgstr ""
29339
29340 #. type: =head2
29341 #: ../src/guestfs-actions.pod:6959
29342 msgid "guestfs_swapon_uuid"
29343 msgstr ""
29344
29345 #. type: verbatim
29346 #: ../src/guestfs-actions.pod:6961
29347 #, no-wrap
29348 msgid ""
29349 " int\n"
29350 " guestfs_swapon_uuid (guestfs_h *g,\n"
29351 "                      const char *uuid);\n"
29352 "\n"
29353 msgstr ""
29354
29355 #. type: textblock
29356 #: ../src/guestfs-actions.pod:6965
29357 msgid ""
29358 "This command enables swap to a swap partition with the given UUID.  See "
29359 "C<guestfs_swapon_device> for other notes."
29360 msgstr ""
29361
29362 #. type: =head2
29363 #: ../src/guestfs-actions.pod:6972
29364 msgid "guestfs_sync"
29365 msgstr ""
29366
29367 #. type: verbatim
29368 #: ../src/guestfs-actions.pod:6974
29369 #, no-wrap
29370 msgid ""
29371 " int\n"
29372 " guestfs_sync (guestfs_h *g);\n"
29373 "\n"
29374 msgstr ""
29375
29376 #. type: =head2
29377 #: ../src/guestfs-actions.pod:6987
29378 msgid "guestfs_tail"
29379 msgstr ""
29380
29381 #. type: verbatim
29382 #: ../src/guestfs-actions.pod:6989
29383 #, no-wrap
29384 msgid ""
29385 " char **\n"
29386 " guestfs_tail (guestfs_h *g,\n"
29387 "               const char *path);\n"
29388 "\n"
29389 msgstr ""
29390
29391 #. type: =head2
29392 #: ../src/guestfs-actions.pod:7005
29393 msgid "guestfs_tail_n"
29394 msgstr ""
29395
29396 #. type: verbatim
29397 #: ../src/guestfs-actions.pod:7007
29398 #, no-wrap
29399 msgid ""
29400 " char **\n"
29401 " guestfs_tail_n (guestfs_h *g,\n"
29402 "                 int nrlines,\n"
29403 "                 const char *path);\n"
29404 "\n"
29405 msgstr ""
29406
29407 #. type: =head2
29408 #: ../src/guestfs-actions.pod:7029
29409 msgid "guestfs_tar_in"
29410 msgstr ""
29411
29412 #. type: verbatim
29413 #: ../src/guestfs-actions.pod:7031
29414 #, no-wrap
29415 msgid ""
29416 " int\n"
29417 " guestfs_tar_in (guestfs_h *g,\n"
29418 "                 const char *tarfile,\n"
29419 "                 const char *directory);\n"
29420 "\n"
29421 msgstr ""
29422
29423 #. type: textblock
29424 #: ../src/guestfs-actions.pod:7039
29425 msgid ""
29426 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
29427 msgstr ""
29428
29429 #. type: textblock
29430 #: ../src/guestfs-actions.pod:7044 ../src/guestfs-actions.pod:7061
29431 #: ../src/guestfs-actions.pod:7077 ../src/guestfs-actions.pod:7093
29432 msgid "(Added in 1.0.3)"
29433 msgstr ""
29434
29435 #. type: =head2
29436 #: ../src/guestfs-actions.pod:7046
29437 msgid "guestfs_tar_out"
29438 msgstr ""
29439
29440 #. type: verbatim
29441 #: ../src/guestfs-actions.pod:7048
29442 #, no-wrap
29443 msgid ""
29444 " int\n"
29445 " guestfs_tar_out (guestfs_h *g,\n"
29446 "                  const char *directory,\n"
29447 "                  const char *tarfile);\n"
29448 "\n"
29449 msgstr ""
29450
29451 #. type: textblock
29452 #: ../src/guestfs-actions.pod:7056
29453 msgid ""
29454 "To download a compressed tarball, use C<guestfs_tgz_out> or "
29455 "C<guestfs_txz_out>."
29456 msgstr ""
29457
29458 #. type: =head2
29459 #: ../src/guestfs-actions.pod:7063
29460 msgid "guestfs_tgz_in"
29461 msgstr ""
29462
29463 #. type: verbatim
29464 #: ../src/guestfs-actions.pod:7065
29465 #, no-wrap
29466 msgid ""
29467 " int\n"
29468 " guestfs_tgz_in (guestfs_h *g,\n"
29469 "                 const char *tarball,\n"
29470 "                 const char *directory);\n"
29471 "\n"
29472 msgstr ""
29473
29474 #. type: textblock
29475 #: ../src/guestfs-actions.pod:7073
29476 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
29477 msgstr ""
29478
29479 #. type: =head2
29480 #: ../src/guestfs-actions.pod:7079
29481 msgid "guestfs_tgz_out"
29482 msgstr ""
29483
29484 #. type: verbatim
29485 #: ../src/guestfs-actions.pod:7081
29486 #, no-wrap
29487 msgid ""
29488 " int\n"
29489 " guestfs_tgz_out (guestfs_h *g,\n"
29490 "                  const char *directory,\n"
29491 "                  const char *tarball);\n"
29492 "\n"
29493 msgstr ""
29494
29495 #. type: textblock
29496 #: ../src/guestfs-actions.pod:7089
29497 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
29498 msgstr ""
29499
29500 #. type: =head2
29501 #: ../src/guestfs-actions.pod:7095
29502 msgid "guestfs_touch"
29503 msgstr ""
29504
29505 #. type: verbatim
29506 #: ../src/guestfs-actions.pod:7097
29507 #, no-wrap
29508 msgid ""
29509 " int\n"
29510 " guestfs_touch (guestfs_h *g,\n"
29511 "                const char *path);\n"
29512 "\n"
29513 msgstr ""
29514
29515 #. type: =head2
29516 #: ../src/guestfs-actions.pod:7112
29517 msgid "guestfs_truncate"
29518 msgstr ""
29519
29520 #. type: verbatim
29521 #: ../src/guestfs-actions.pod:7114
29522 #, no-wrap
29523 msgid ""
29524 " int\n"
29525 " guestfs_truncate (guestfs_h *g,\n"
29526 "                   const char *path);\n"
29527 "\n"
29528 msgstr ""
29529
29530 #. type: =head2
29531 #: ../src/guestfs-actions.pod:7125
29532 msgid "guestfs_truncate_size"
29533 msgstr ""
29534
29535 #. type: verbatim
29536 #: ../src/guestfs-actions.pod:7127
29537 #, no-wrap
29538 msgid ""
29539 " int\n"
29540 " guestfs_truncate_size (guestfs_h *g,\n"
29541 "                        const char *path,\n"
29542 "                        int64_t size);\n"
29543 "\n"
29544 msgstr ""
29545
29546 #. type: textblock
29547 #: ../src/guestfs-actions.pod:7135
29548 msgid ""
29549 "If the current file size is less than C<size> then the file is extended to "
29550 "the required size with zero bytes.  This creates a sparse file (ie. disk "
29551 "blocks are not allocated for the file until you write to it).  To create a "
29552 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
29553 msgstr ""
29554
29555 #. type: =head2
29556 #: ../src/guestfs-actions.pod:7145
29557 msgid "guestfs_tune2fs_l"
29558 msgstr ""
29559
29560 #. type: verbatim
29561 #: ../src/guestfs-actions.pod:7147
29562 #, no-wrap
29563 msgid ""
29564 " char **\n"
29565 " guestfs_tune2fs_l (guestfs_h *g,\n"
29566 "                    const char *device);\n"
29567 "\n"
29568 msgstr ""
29569
29570 #. type: =head2
29571 #: ../src/guestfs-actions.pod:7167
29572 msgid "guestfs_txz_in"
29573 msgstr ""
29574
29575 #. type: verbatim
29576 #: ../src/guestfs-actions.pod:7169
29577 #, no-wrap
29578 msgid ""
29579 " int\n"
29580 " guestfs_txz_in (guestfs_h *g,\n"
29581 "                 const char *tarball,\n"
29582 "                 const char *directory);\n"
29583 "\n"
29584 msgstr ""
29585
29586 #. type: =head2
29587 #: ../src/guestfs-actions.pod:7181
29588 msgid "guestfs_txz_out"
29589 msgstr ""
29590
29591 #. type: verbatim
29592 #: ../src/guestfs-actions.pod:7183
29593 #, no-wrap
29594 msgid ""
29595 " int\n"
29596 " guestfs_txz_out (guestfs_h *g,\n"
29597 "                  const char *directory,\n"
29598 "                  const char *tarball);\n"
29599 "\n"
29600 msgstr ""
29601
29602 #. type: =head2
29603 #: ../src/guestfs-actions.pod:7195
29604 msgid "guestfs_umask"
29605 msgstr ""
29606
29607 #. type: verbatim
29608 #: ../src/guestfs-actions.pod:7197
29609 #, no-wrap
29610 msgid ""
29611 " int\n"
29612 " guestfs_umask (guestfs_h *g,\n"
29613 "                int mask);\n"
29614 "\n"
29615 msgstr ""
29616
29617 #. type: textblock
29618 #: ../src/guestfs-actions.pod:7213
29619 msgid ""
29620 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
29621 "C<guestfs_mkdir>."
29622 msgstr ""
29623
29624 #. type: =head2
29625 #: ../src/guestfs-actions.pod:7222
29626 msgid "guestfs_umount"
29627 msgstr ""
29628
29629 #. type: verbatim
29630 #: ../src/guestfs-actions.pod:7224
29631 #, no-wrap
29632 msgid ""
29633 " int\n"
29634 " guestfs_umount (guestfs_h *g,\n"
29635 "                 const char *pathordevice);\n"
29636 "\n"
29637 msgstr ""
29638
29639 #. type: =head2
29640 #: ../src/guestfs-actions.pod:7236
29641 msgid "guestfs_umount_all"
29642 msgstr ""
29643
29644 #. type: verbatim
29645 #: ../src/guestfs-actions.pod:7238
29646 #, no-wrap
29647 msgid ""
29648 " int\n"
29649 " guestfs_umount_all (guestfs_h *g);\n"
29650 "\n"
29651 msgstr ""
29652
29653 #. type: =head2
29654 #: ../src/guestfs-actions.pod:7249
29655 msgid "guestfs_upload"
29656 msgstr ""
29657
29658 #. type: verbatim
29659 #: ../src/guestfs-actions.pod:7251
29660 #, no-wrap
29661 msgid ""
29662 " int\n"
29663 " guestfs_upload (guestfs_h *g,\n"
29664 "                 const char *filename,\n"
29665 "                 const char *remotefilename);\n"
29666 "\n"
29667 msgstr ""
29668
29669 #. type: textblock
29670 #: ../src/guestfs-actions.pod:7261
29671 msgid "See also C<guestfs_download>."
29672 msgstr ""
29673
29674 #. type: =head2
29675 #: ../src/guestfs-actions.pod:7272
29676 msgid "guestfs_upload_offset"
29677 msgstr ""
29678
29679 #. type: verbatim
29680 #: ../src/guestfs-actions.pod:7274
29681 #, no-wrap
29682 msgid ""
29683 " int\n"
29684 " guestfs_upload_offset (guestfs_h *g,\n"
29685 "                        const char *filename,\n"
29686 "                        const char *remotefilename,\n"
29687 "                        int64_t offset);\n"
29688 "\n"
29689 msgstr ""
29690
29691 #. type: textblock
29692 #: ../src/guestfs-actions.pod:7290
29693 msgid ""
29694 "Note that there is no limit on the amount of data that can be uploaded with "
29695 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
29696 "full amount unless an error occurs."
29697 msgstr ""
29698
29699 #. type: textblock
29700 #: ../src/guestfs-actions.pod:7295
29701 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
29702 msgstr ""
29703
29704 #. type: =head2
29705 #: ../src/guestfs-actions.pod:7306
29706 msgid "guestfs_utimens"
29707 msgstr ""
29708
29709 #. type: verbatim
29710 #: ../src/guestfs-actions.pod:7308
29711 #, no-wrap
29712 msgid ""
29713 " int\n"
29714 " guestfs_utimens (guestfs_h *g,\n"
29715 "                  const char *path,\n"
29716 "                  int64_t atsecs,\n"
29717 "                  int64_t atnsecs,\n"
29718 "                  int64_t mtsecs,\n"
29719 "                  int64_t mtnsecs);\n"
29720 "\n"
29721 msgstr ""
29722
29723 #. type: =head2
29724 #: ../src/guestfs-actions.pod:7337 ../src/guestfs-structs.pod:175
29725 msgid "guestfs_version"
29726 msgstr ""
29727
29728 #. type: verbatim
29729 #: ../src/guestfs-actions.pod:7339
29730 #, no-wrap
29731 msgid ""
29732 " struct guestfs_version *\n"
29733 " guestfs_version (guestfs_h *g);\n"
29734 "\n"
29735 msgstr ""
29736
29737 #. type: textblock
29738 #: ../src/guestfs-actions.pod:7367
29739 msgid ""
29740 "I<Note:> Don't use this call to test for availability of features.  In "
29741 "enterprise distributions we backport features from later versions into "
29742 "earlier versions, making this an unreliable way to test for features.  Use "
29743 "C<guestfs_available> instead."
29744 msgstr ""
29745
29746 #. type: textblock
29747 #: ../src/guestfs-actions.pod:7373
29748 msgid ""
29749 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
29750 "error.  I<The caller must call C<guestfs_free_version> after use>."
29751 msgstr ""
29752
29753 #. type: textblock
29754 #: ../src/guestfs-actions.pod:7377
29755 msgid "(Added in 1.0.58)"
29756 msgstr ""
29757
29758 #. type: =head2
29759 #: ../src/guestfs-actions.pod:7379
29760 msgid "guestfs_vfs_label"
29761 msgstr ""
29762
29763 #. type: verbatim
29764 #: ../src/guestfs-actions.pod:7381
29765 #, no-wrap
29766 msgid ""
29767 " char *\n"
29768 " guestfs_vfs_label (guestfs_h *g,\n"
29769 "                    const char *device);\n"
29770 "\n"
29771 msgstr ""
29772
29773 #. type: textblock
29774 #: ../src/guestfs-actions.pod:7390
29775 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
29776 msgstr ""
29777
29778 #. type: textblock
29779 #: ../src/guestfs-actions.pod:7395 ../src/guestfs-actions.pod:7432
29780 msgid "(Added in 1.3.18)"
29781 msgstr ""
29782
29783 #. type: =head2
29784 #: ../src/guestfs-actions.pod:7397
29785 msgid "guestfs_vfs_type"
29786 msgstr ""
29787
29788 #. type: verbatim
29789 #: ../src/guestfs-actions.pod:7399
29790 #, no-wrap
29791 msgid ""
29792 " char *\n"
29793 " guestfs_vfs_type (guestfs_h *g,\n"
29794 "                   const char *device);\n"
29795 "\n"
29796 msgstr ""
29797
29798 #. type: =head2
29799 #: ../src/guestfs-actions.pod:7416
29800 msgid "guestfs_vfs_uuid"
29801 msgstr ""
29802
29803 #. type: verbatim
29804 #: ../src/guestfs-actions.pod:7418
29805 #, no-wrap
29806 msgid ""
29807 " char *\n"
29808 " guestfs_vfs_uuid (guestfs_h *g,\n"
29809 "                   const char *device);\n"
29810 "\n"
29811 msgstr ""
29812
29813 #. type: textblock
29814 #: ../src/guestfs-actions.pod:7427
29815 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
29816 msgstr ""
29817
29818 #. type: =head2
29819 #: ../src/guestfs-actions.pod:7434
29820 msgid "guestfs_vg_activate"
29821 msgstr ""
29822
29823 #. type: verbatim
29824 #: ../src/guestfs-actions.pod:7436
29825 #, no-wrap
29826 msgid ""
29827 " int\n"
29828 " guestfs_vg_activate (guestfs_h *g,\n"
29829 "                      int activate,\n"
29830 "                      char *const *volgroups);\n"
29831 "\n"
29832 msgstr ""
29833
29834 #. type: =head2
29835 #: ../src/guestfs-actions.pod:7453
29836 msgid "guestfs_vg_activate_all"
29837 msgstr ""
29838
29839 #. type: verbatim
29840 #: ../src/guestfs-actions.pod:7455
29841 #, no-wrap
29842 msgid ""
29843 " int\n"
29844 " guestfs_vg_activate_all (guestfs_h *g,\n"
29845 "                          int activate);\n"
29846 "\n"
29847 msgstr ""
29848
29849 #. type: =head2
29850 #: ../src/guestfs-actions.pod:7468
29851 msgid "guestfs_vgcreate"
29852 msgstr ""
29853
29854 #. type: verbatim
29855 #: ../src/guestfs-actions.pod:7470
29856 #, no-wrap
29857 msgid ""
29858 " int\n"
29859 " guestfs_vgcreate (guestfs_h *g,\n"
29860 "                   const char *volgroup,\n"
29861 "                   char *const *physvols);\n"
29862 "\n"
29863 msgstr ""
29864
29865 #. type: =head2
29866 #: ../src/guestfs-actions.pod:7482
29867 msgid "guestfs_vglvuuids"
29868 msgstr ""
29869
29870 #. type: verbatim
29871 #: ../src/guestfs-actions.pod:7484
29872 #, no-wrap
29873 msgid ""
29874 " char **\n"
29875 " guestfs_vglvuuids (guestfs_h *g,\n"
29876 "                    const char *vgname);\n"
29877 "\n"
29878 msgstr ""
29879
29880 #. type: textblock
29881 #: ../src/guestfs-actions.pod:7491
29882 msgid ""
29883 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
29884 "associate logical volumes and volume groups."
29885 msgstr ""
29886
29887 #. type: textblock
29888 #: ../src/guestfs-actions.pod:7494
29889 msgid "See also C<guestfs_vgpvuuids>."
29890 msgstr ""
29891
29892 #. type: =head2
29893 #: ../src/guestfs-actions.pod:7502
29894 msgid "guestfs_vgpvuuids"
29895 msgstr ""
29896
29897 #. type: verbatim
29898 #: ../src/guestfs-actions.pod:7504
29899 #, no-wrap
29900 msgid ""
29901 " char **\n"
29902 " guestfs_vgpvuuids (guestfs_h *g,\n"
29903 "                    const char *vgname);\n"
29904 "\n"
29905 msgstr ""
29906
29907 #. type: textblock
29908 #: ../src/guestfs-actions.pod:7511
29909 msgid ""
29910 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
29911 "associate physical volumes and volume groups."
29912 msgstr ""
29913
29914 #. type: textblock
29915 #: ../src/guestfs-actions.pod:7514
29916 msgid "See also C<guestfs_vglvuuids>."
29917 msgstr ""
29918
29919 #. type: =head2
29920 #: ../src/guestfs-actions.pod:7522
29921 msgid "guestfs_vgremove"
29922 msgstr ""
29923
29924 #. type: verbatim
29925 #: ../src/guestfs-actions.pod:7524
29926 #, no-wrap
29927 msgid ""
29928 " int\n"
29929 " guestfs_vgremove (guestfs_h *g,\n"
29930 "                   const char *vgname);\n"
29931 "\n"
29932 msgstr ""
29933
29934 #. type: =head2
29935 #: ../src/guestfs-actions.pod:7537
29936 msgid "guestfs_vgrename"
29937 msgstr ""
29938
29939 #. type: verbatim
29940 #: ../src/guestfs-actions.pod:7539
29941 #, no-wrap
29942 msgid ""
29943 " int\n"
29944 " guestfs_vgrename (guestfs_h *g,\n"
29945 "                   const char *volgroup,\n"
29946 "                   const char *newvolgroup);\n"
29947 "\n"
29948 msgstr ""
29949
29950 #. type: =head2
29951 #: ../src/guestfs-actions.pod:7550
29952 msgid "guestfs_vgs"
29953 msgstr ""
29954
29955 #. type: verbatim
29956 #: ../src/guestfs-actions.pod:7552
29957 #, no-wrap
29958 msgid ""
29959 " char **\n"
29960 " guestfs_vgs (guestfs_h *g);\n"
29961 "\n"
29962 msgstr ""
29963
29964 #. type: textblock
29965 #: ../src/guestfs-actions.pod:7561
29966 msgid "See also C<guestfs_vgs_full>."
29967 msgstr ""
29968
29969 #. type: =head2
29970 #: ../src/guestfs-actions.pod:7569
29971 msgid "guestfs_vgs_full"
29972 msgstr ""
29973
29974 #. type: verbatim
29975 #: ../src/guestfs-actions.pod:7571
29976 #, no-wrap
29977 msgid ""
29978 " struct guestfs_lvm_vg_list *\n"
29979 " guestfs_vgs_full (guestfs_h *g);\n"
29980 "\n"
29981 msgstr ""
29982
29983 #. type: textblock
29984 #: ../src/guestfs-actions.pod:7577
29985 msgid ""
29986 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
29987 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
29988 msgstr ""
29989
29990 #. type: =head2
29991 #: ../src/guestfs-actions.pod:7583
29992 msgid "guestfs_vgscan"
29993 msgstr ""
29994
29995 #. type: verbatim
29996 #: ../src/guestfs-actions.pod:7585
29997 #, no-wrap
29998 msgid ""
29999 " int\n"
30000 " guestfs_vgscan (guestfs_h *g);\n"
30001 "\n"
30002 msgstr ""
30003
30004 #. type: =head2
30005 #: ../src/guestfs-actions.pod:7595
30006 msgid "guestfs_vguuid"
30007 msgstr ""
30008
30009 #. type: verbatim
30010 #: ../src/guestfs-actions.pod:7597
30011 #, no-wrap
30012 msgid ""
30013 " char *\n"
30014 " guestfs_vguuid (guestfs_h *g,\n"
30015 "                 const char *vgname);\n"
30016 "\n"
30017 msgstr ""
30018
30019 #. type: =head2
30020 #: ../src/guestfs-actions.pod:7608
30021 msgid "guestfs_wait_ready"
30022 msgstr ""
30023
30024 #. type: verbatim
30025 #: ../src/guestfs-actions.pod:7610
30026 #, no-wrap
30027 msgid ""
30028 " int\n"
30029 " guestfs_wait_ready (guestfs_h *g);\n"
30030 "\n"
30031 msgstr ""
30032
30033 #. type: textblock
30034 #: ../src/guestfs-actions.pod:7613
30035 msgid "This function is a no op."
30036 msgstr ""
30037
30038 #. type: textblock
30039 #: ../src/guestfs-actions.pod:7615
30040 msgid ""
30041 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
30042 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
30043 "is no longer necessary because C<guestfs_launch> now does the waiting."
30044 msgstr ""
30045
30046 #. type: textblock
30047 #: ../src/guestfs-actions.pod:7620
30048 msgid ""
30049 "If you see any calls to this function in code then you can just remove them, "
30050 "unless you want to retain compatibility with older versions of the API."
30051 msgstr ""
30052
30053 #. type: textblock
30054 #: ../src/guestfs-actions.pod:7626
30055 msgid ""
30056 "This function is deprecated.  In new code, use the L</guestfs_launch> call "
30057 "instead."
30058 msgstr ""
30059
30060 #. type: =head2
30061 #: ../src/guestfs-actions.pod:7635
30062 msgid "guestfs_wc_c"
30063 msgstr ""
30064
30065 #. type: verbatim
30066 #: ../src/guestfs-actions.pod:7637
30067 #, no-wrap
30068 msgid ""
30069 " int\n"
30070 " guestfs_wc_c (guestfs_h *g,\n"
30071 "               const char *path);\n"
30072 "\n"
30073 msgstr ""
30074
30075 #. type: =head2
30076 #: ../src/guestfs-actions.pod:7648
30077 msgid "guestfs_wc_l"
30078 msgstr ""
30079
30080 #. type: verbatim
30081 #: ../src/guestfs-actions.pod:7650
30082 #, no-wrap
30083 msgid ""
30084 " int\n"
30085 " guestfs_wc_l (guestfs_h *g,\n"
30086 "               const char *path);\n"
30087 "\n"
30088 msgstr ""
30089
30090 #. type: =head2
30091 #: ../src/guestfs-actions.pod:7661
30092 msgid "guestfs_wc_w"
30093 msgstr ""
30094
30095 #. type: verbatim
30096 #: ../src/guestfs-actions.pod:7663
30097 #, no-wrap
30098 msgid ""
30099 " int\n"
30100 " guestfs_wc_w (guestfs_h *g,\n"
30101 "               const char *path);\n"
30102 "\n"
30103 msgstr ""
30104
30105 #. type: =head2
30106 #: ../src/guestfs-actions.pod:7674
30107 msgid "guestfs_write"
30108 msgstr ""
30109
30110 #. type: verbatim
30111 #: ../src/guestfs-actions.pod:7676
30112 #, no-wrap
30113 msgid ""
30114 " int\n"
30115 " guestfs_write (guestfs_h *g,\n"
30116 "                const char *path,\n"
30117 "                const char *content,\n"
30118 "                size_t content_size);\n"
30119 "\n"
30120 msgstr ""
30121
30122 #. type: textblock
30123 #: ../src/guestfs-actions.pod:7685
30124 msgid "See also C<guestfs_write_append>."
30125 msgstr ""
30126
30127 #. type: =head2
30128 #: ../src/guestfs-actions.pod:7694
30129 msgid "guestfs_write_append"
30130 msgstr ""
30131
30132 #. type: verbatim
30133 #: ../src/guestfs-actions.pod:7696
30134 #, no-wrap
30135 msgid ""
30136 " int\n"
30137 " guestfs_write_append (guestfs_h *g,\n"
30138 "                       const char *path,\n"
30139 "                       const char *content,\n"
30140 "                       size_t content_size);\n"
30141 "\n"
30142 msgstr ""
30143
30144 #. type: textblock
30145 #: ../src/guestfs-actions.pod:7705
30146 msgid "See also C<guestfs_write>."
30147 msgstr ""
30148
30149 #. type: =head2
30150 #: ../src/guestfs-actions.pod:7714
30151 msgid "guestfs_write_file"
30152 msgstr ""
30153
30154 #. type: verbatim
30155 #: ../src/guestfs-actions.pod:7716
30156 #, no-wrap
30157 msgid ""
30158 " int\n"
30159 " guestfs_write_file (guestfs_h *g,\n"
30160 "                     const char *path,\n"
30161 "                     const char *content,\n"
30162 "                     int size);\n"
30163 "\n"
30164 msgstr ""
30165
30166 #. type: textblock
30167 #: ../src/guestfs-actions.pod:7738
30168 msgid ""
30169 "This function is deprecated.  In new code, use the L</guestfs_write> call "
30170 "instead."
30171 msgstr ""
30172
30173 #. type: =head2
30174 #: ../src/guestfs-actions.pod:7747
30175 msgid "guestfs_zegrep"
30176 msgstr ""
30177
30178 #. type: verbatim
30179 #: ../src/guestfs-actions.pod:7749
30180 #, no-wrap
30181 msgid ""
30182 " char **\n"
30183 " guestfs_zegrep (guestfs_h *g,\n"
30184 "                 const char *regex,\n"
30185 "                 const char *path);\n"
30186 "\n"
30187 msgstr ""
30188
30189 #. type: =head2
30190 #: ../src/guestfs-actions.pod:7766
30191 msgid "guestfs_zegrepi"
30192 msgstr ""
30193
30194 #. type: verbatim
30195 #: ../src/guestfs-actions.pod:7768
30196 #, no-wrap
30197 msgid ""
30198 " char **\n"
30199 " guestfs_zegrepi (guestfs_h *g,\n"
30200 "                  const char *regex,\n"
30201 "                  const char *path);\n"
30202 "\n"
30203 msgstr ""
30204
30205 #. type: =head2
30206 #: ../src/guestfs-actions.pod:7785
30207 msgid "guestfs_zero"
30208 msgstr ""
30209
30210 #. type: verbatim
30211 #: ../src/guestfs-actions.pod:7787
30212 #, no-wrap
30213 msgid ""
30214 " int\n"
30215 " guestfs_zero (guestfs_h *g,\n"
30216 "               const char *device);\n"
30217 "\n"
30218 msgstr ""
30219
30220 #. type: textblock
30221 #: ../src/guestfs-actions.pod:7801
30222 msgid ""
30223 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
30224 "C<guestfs_is_zero_device>"
30225 msgstr ""
30226
30227 #. type: =head2
30228 #: ../src/guestfs-actions.pod:7813
30229 msgid "guestfs_zero_device"
30230 msgstr ""
30231
30232 #. type: verbatim
30233 #: ../src/guestfs-actions.pod:7815
30234 #, no-wrap
30235 msgid ""
30236 " int\n"
30237 " guestfs_zero_device (guestfs_h *g,\n"
30238 "                      const char *device);\n"
30239 "\n"
30240 msgstr ""
30241
30242 #. type: textblock
30243 #: ../src/guestfs-actions.pod:7819
30244 msgid ""
30245 "This command writes zeroes over the entire C<device>.  Compare with "
30246 "C<guestfs_zero> which just zeroes the first few blocks of a device."
30247 msgstr ""
30248
30249 #. type: textblock
30250 #: ../src/guestfs-actions.pod:7837
30251 msgid "(Added in 1.3.1)"
30252 msgstr ""
30253
30254 #. type: =head2
30255 #: ../src/guestfs-actions.pod:7839
30256 msgid "guestfs_zerofree"
30257 msgstr ""
30258
30259 #. type: verbatim
30260 #: ../src/guestfs-actions.pod:7841
30261 #, no-wrap
30262 msgid ""
30263 " int\n"
30264 " guestfs_zerofree (guestfs_h *g,\n"
30265 "                   const char *device);\n"
30266 "\n"
30267 msgstr ""
30268
30269 #. type: =head2
30270 #: ../src/guestfs-actions.pod:7860
30271 msgid "guestfs_zfgrep"
30272 msgstr ""
30273
30274 #. type: verbatim
30275 #: ../src/guestfs-actions.pod:7862
30276 #, no-wrap
30277 msgid ""
30278 " char **\n"
30279 " guestfs_zfgrep (guestfs_h *g,\n"
30280 "                 const char *pattern,\n"
30281 "                 const char *path);\n"
30282 "\n"
30283 msgstr ""
30284
30285 #. type: =head2
30286 #: ../src/guestfs-actions.pod:7879
30287 msgid "guestfs_zfgrepi"
30288 msgstr ""
30289
30290 #. type: verbatim
30291 #: ../src/guestfs-actions.pod:7881
30292 #, no-wrap
30293 msgid ""
30294 " char **\n"
30295 " guestfs_zfgrepi (guestfs_h *g,\n"
30296 "                  const char *pattern,\n"
30297 "                  const char *path);\n"
30298 "\n"
30299 msgstr ""
30300
30301 #. type: =head2
30302 #: ../src/guestfs-actions.pod:7898
30303 msgid "guestfs_zfile"
30304 msgstr ""
30305
30306 #. type: verbatim
30307 #: ../src/guestfs-actions.pod:7900
30308 #, no-wrap
30309 msgid ""
30310 " char *\n"
30311 " guestfs_zfile (guestfs_h *g,\n"
30312 "                const char *meth,\n"
30313 "                const char *path);\n"
30314 "\n"
30315 msgstr ""
30316
30317 #. type: textblock
30318 #: ../src/guestfs-actions.pod:7910
30319 msgid ""
30320 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
30321 "files."
30322 msgstr ""
30323
30324 #. type: textblock
30325 #: ../src/guestfs-actions.pod:7916
30326 msgid ""
30327 "This function is deprecated.  In new code, use the L</guestfs_file> call "
30328 "instead."
30329 msgstr ""
30330
30331 #. type: =head2
30332 #: ../src/guestfs-actions.pod:7925
30333 msgid "guestfs_zgrep"
30334 msgstr ""
30335
30336 #. type: verbatim
30337 #: ../src/guestfs-actions.pod:7927
30338 #, no-wrap
30339 msgid ""
30340 " char **\n"
30341 " guestfs_zgrep (guestfs_h *g,\n"
30342 "                const char *regex,\n"
30343 "                const char *path);\n"
30344 "\n"
30345 msgstr ""
30346
30347 #. type: =head2
30348 #: ../src/guestfs-actions.pod:7944
30349 msgid "guestfs_zgrepi"
30350 msgstr ""
30351
30352 #. type: verbatim
30353 #: ../src/guestfs-actions.pod:7946
30354 #, no-wrap
30355 msgid ""
30356 " char **\n"
30357 " guestfs_zgrepi (guestfs_h *g,\n"
30358 "                 const char *regex,\n"
30359 "                 const char *path);\n"
30360 "\n"
30361 msgstr ""
30362
30363 #. type: =item
30364 #: ../src/guestfs-availability.pod:3
30365 msgid "B<augeas>"
30366 msgstr ""
30367
30368 #. type: textblock
30369 #: ../src/guestfs-availability.pod:5
30370 msgid ""
30371 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
30372 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
30373 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
30374 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
30375 "L</guestfs_aug_save> L</guestfs_aug_set>"
30376 msgstr ""
30377
30378 #. type: =item
30379 #: ../src/guestfs-availability.pod:21
30380 msgid "B<btrfs>"
30381 msgstr ""
30382
30383 #. type: textblock
30384 #: ../src/guestfs-availability.pod:23
30385 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
30386 msgstr ""
30387
30388 #. type: =item
30389 #: ../src/guestfs-availability.pod:26
30390 msgid "B<grub>"
30391 msgstr ""
30392
30393 #. type: textblock
30394 #: ../src/guestfs-availability.pod:28
30395 msgid "The following functions: L</guestfs_grub_install>"
30396 msgstr ""
30397
30398 #. type: =item
30399 #: ../src/guestfs-availability.pod:31
30400 msgid "B<inotify>"
30401 msgstr ""
30402
30403 #. type: textblock
30404 #: ../src/guestfs-availability.pod:33
30405 msgid ""
30406 "The following functions: L</guestfs_inotify_add_watch> L</"
30407 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
30408 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
30409 msgstr ""
30410
30411 #. type: =item
30412 #: ../src/guestfs-availability.pod:41
30413 msgid "B<linuxfsuuid>"
30414 msgstr ""
30415
30416 #. type: textblock
30417 #: ../src/guestfs-availability.pod:43
30418 msgid ""
30419 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
30420 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
30421 msgstr ""
30422
30423 #. type: =item
30424 #: ../src/guestfs-availability.pod:50
30425 msgid "B<linuxmodules>"
30426 msgstr ""
30427
30428 #. type: textblock
30429 #: ../src/guestfs-availability.pod:52
30430 msgid "The following functions: L</guestfs_modprobe>"
30431 msgstr ""
30432
30433 #. type: =item
30434 #: ../src/guestfs-availability.pod:55
30435 msgid "B<linuxxattrs>"
30436 msgstr ""
30437
30438 #. type: textblock
30439 #: ../src/guestfs-availability.pod:57
30440 msgid ""
30441 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
30442 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
30443 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
30444 "guestfs_setxattr>"
30445 msgstr ""
30446
30447 #. type: =item
30448 #: ../src/guestfs-availability.pod:68
30449 msgid "B<luks>"
30450 msgstr ""
30451
30452 #. type: textblock
30453 #: ../src/guestfs-availability.pod:70
30454 msgid ""
30455 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
30456 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
30457 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
30458 msgstr ""
30459
30460 #. type: =item
30461 #: ../src/guestfs-availability.pod:79
30462 msgid "B<lvm2>"
30463 msgstr ""
30464
30465 #. type: textblock
30466 #: ../src/guestfs-availability.pod:81
30467 msgid ""
30468 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
30469 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
30470 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
30471 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
30472 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
30473 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
30474 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
30475 msgstr ""
30476
30477 #. type: =item
30478 #: ../src/guestfs-availability.pod:104
30479 msgid "B<mknod>"
30480 msgstr ""
30481
30482 #. type: textblock
30483 #: ../src/guestfs-availability.pod:106
30484 msgid ""
30485 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
30486 "guestfs_mknod_b> L</guestfs_mknod_c>"
30487 msgstr ""
30488
30489 #. type: =item
30490 #: ../src/guestfs-availability.pod:112
30491 msgid "B<ntfs3g>"
30492 msgstr ""
30493
30494 #. type: textblock
30495 #: ../src/guestfs-availability.pod:114
30496 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
30497 msgstr ""
30498
30499 #. type: =item
30500 #: ../src/guestfs-availability.pod:117
30501 msgid "B<ntfsprogs>"
30502 msgstr ""
30503
30504 #. type: textblock
30505 #: ../src/guestfs-availability.pod:119
30506 msgid ""
30507 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
30508 "L</guestfs_ntfsresize_size>"
30509 msgstr ""
30510
30511 #. type: =item
30512 #: ../src/guestfs-availability.pod:124
30513 msgid "B<realpath>"
30514 msgstr ""
30515
30516 #. type: textblock
30517 #: ../src/guestfs-availability.pod:126
30518 msgid "The following functions: L</guestfs_realpath>"
30519 msgstr ""
30520
30521 #. type: =item
30522 #: ../src/guestfs-availability.pod:129
30523 msgid "B<scrub>"
30524 msgstr ""
30525
30526 #. type: textblock
30527 #: ../src/guestfs-availability.pod:131
30528 msgid ""
30529 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
30530 "guestfs_scrub_freespace>"
30531 msgstr ""
30532
30533 #. type: =item
30534 #: ../src/guestfs-availability.pod:136
30535 msgid "B<selinux>"
30536 msgstr ""
30537
30538 #. type: textblock
30539 #: ../src/guestfs-availability.pod:138
30540 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
30541 msgstr ""
30542
30543 #. type: =item
30544 #: ../src/guestfs-availability.pod:142
30545 msgid "B<xz>"
30546 msgstr ""
30547
30548 #. type: textblock
30549 #: ../src/guestfs-availability.pod:144
30550 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
30551 msgstr ""
30552
30553 #. type: =item
30554 #: ../src/guestfs-availability.pod:148
30555 msgid "B<zerofree>"
30556 msgstr ""
30557
30558 #. type: textblock
30559 #: ../src/guestfs-availability.pod:150
30560 msgid "The following functions: L</guestfs_zerofree>"
30561 msgstr ""
30562
30563 #. type: =head2
30564 #: ../src/guestfs-structs.pod:1
30565 msgid "guestfs_int_bool"
30566 msgstr ""
30567
30568 #. type: verbatim
30569 #: ../src/guestfs-structs.pod:3
30570 #, no-wrap
30571 msgid ""
30572 " struct guestfs_int_bool {\n"
30573 "   int32_t i;\n"
30574 "   int32_t b;\n"
30575 " };\n"
30576 " \n"
30577 msgstr ""
30578
30579 #. type: verbatim
30580 #: ../src/guestfs-structs.pod:8
30581 #, no-wrap
30582 msgid ""
30583 " struct guestfs_int_bool_list {\n"
30584 "   uint32_t len; /* Number of elements in list. */\n"
30585 "   struct guestfs_int_bool *val; /* Elements. */\n"
30586 " };\n"
30587 " \n"
30588 msgstr ""
30589
30590 #. type: verbatim
30591 #: ../src/guestfs-structs.pod:13
30592 #, no-wrap
30593 msgid ""
30594 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
30595 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
30596 "\n"
30597 msgstr ""
30598
30599 #. type: =head2
30600 #: ../src/guestfs-structs.pod:16
30601 msgid "guestfs_lvm_pv"
30602 msgstr ""
30603
30604 #. type: verbatim
30605 #: ../src/guestfs-structs.pod:18
30606 #, no-wrap
30607 msgid ""
30608 " struct guestfs_lvm_pv {\n"
30609 "   char *pv_name;\n"
30610 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
30611 "   char pv_uuid[32];\n"
30612 "   char *pv_fmt;\n"
30613 "   uint64_t pv_size;\n"
30614 "   uint64_t dev_size;\n"
30615 "   uint64_t pv_free;\n"
30616 "   uint64_t pv_used;\n"
30617 "   char *pv_attr;\n"
30618 "   int64_t pv_pe_count;\n"
30619 "   int64_t pv_pe_alloc_count;\n"
30620 "   char *pv_tags;\n"
30621 "   uint64_t pe_start;\n"
30622 "   int64_t pv_mda_count;\n"
30623 "   uint64_t pv_mda_free;\n"
30624 " };\n"
30625 " \n"
30626 msgstr ""
30627
30628 #. type: verbatim
30629 #: ../src/guestfs-structs.pod:36
30630 #, no-wrap
30631 msgid ""
30632 " struct guestfs_lvm_pv_list {\n"
30633 "   uint32_t len; /* Number of elements in list. */\n"
30634 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
30635 " };\n"
30636 " \n"
30637 msgstr ""
30638
30639 #. type: verbatim
30640 #: ../src/guestfs-structs.pod:41
30641 #, no-wrap
30642 msgid ""
30643 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
30644 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
30645 "\n"
30646 msgstr ""
30647
30648 #. type: =head2
30649 #: ../src/guestfs-structs.pod:44
30650 msgid "guestfs_lvm_vg"
30651 msgstr ""
30652
30653 #. type: verbatim
30654 #: ../src/guestfs-structs.pod:46
30655 #, no-wrap
30656 msgid ""
30657 " struct guestfs_lvm_vg {\n"
30658 "   char *vg_name;\n"
30659 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
30660 "   char vg_uuid[32];\n"
30661 "   char *vg_fmt;\n"
30662 "   char *vg_attr;\n"
30663 "   uint64_t vg_size;\n"
30664 "   uint64_t vg_free;\n"
30665 "   char *vg_sysid;\n"
30666 "   uint64_t vg_extent_size;\n"
30667 "   int64_t vg_extent_count;\n"
30668 "   int64_t vg_free_count;\n"
30669 "   int64_t max_lv;\n"
30670 "   int64_t max_pv;\n"
30671 "   int64_t pv_count;\n"
30672 "   int64_t lv_count;\n"
30673 "   int64_t snap_count;\n"
30674 "   int64_t vg_seqno;\n"
30675 "   char *vg_tags;\n"
30676 "   int64_t vg_mda_count;\n"
30677 "   uint64_t vg_mda_free;\n"
30678 " };\n"
30679 " \n"
30680 msgstr ""
30681
30682 #. type: verbatim
30683 #: ../src/guestfs-structs.pod:69
30684 #, no-wrap
30685 msgid ""
30686 " struct guestfs_lvm_vg_list {\n"
30687 "   uint32_t len; /* Number of elements in list. */\n"
30688 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
30689 " };\n"
30690 " \n"
30691 msgstr ""
30692
30693 #. type: verbatim
30694 #: ../src/guestfs-structs.pod:74
30695 #, no-wrap
30696 msgid ""
30697 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
30698 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
30699 "\n"
30700 msgstr ""
30701
30702 #. type: =head2
30703 #: ../src/guestfs-structs.pod:77
30704 msgid "guestfs_lvm_lv"
30705 msgstr ""
30706
30707 #. type: verbatim
30708 #: ../src/guestfs-structs.pod:79
30709 #, no-wrap
30710 msgid ""
30711 " struct guestfs_lvm_lv {\n"
30712 "   char *lv_name;\n"
30713 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
30714 "   char lv_uuid[32];\n"
30715 "   char *lv_attr;\n"
30716 "   int64_t lv_major;\n"
30717 "   int64_t lv_minor;\n"
30718 "   int64_t lv_kernel_major;\n"
30719 "   int64_t lv_kernel_minor;\n"
30720 "   uint64_t lv_size;\n"
30721 "   int64_t seg_count;\n"
30722 "   char *origin;\n"
30723 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
30724 "   float snap_percent;\n"
30725 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
30726 "   float copy_percent;\n"
30727 "   char *move_pv;\n"
30728 "   char *lv_tags;\n"
30729 "   char *mirror_log;\n"
30730 "   char *modules;\n"
30731 " };\n"
30732 " \n"
30733 msgstr ""
30734
30735 #. type: verbatim
30736 #: ../src/guestfs-structs.pod:101
30737 #, no-wrap
30738 msgid ""
30739 " struct guestfs_lvm_lv_list {\n"
30740 "   uint32_t len; /* Number of elements in list. */\n"
30741 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
30742 " };\n"
30743 " \n"
30744 msgstr ""
30745
30746 #. type: verbatim
30747 #: ../src/guestfs-structs.pod:106
30748 #, no-wrap
30749 msgid ""
30750 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
30751 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
30752 "\n"
30753 msgstr ""
30754
30755 #. type: verbatim
30756 #: ../src/guestfs-structs.pod:111
30757 #, no-wrap
30758 msgid ""
30759 " struct guestfs_stat {\n"
30760 "   int64_t dev;\n"
30761 "   int64_t ino;\n"
30762 "   int64_t mode;\n"
30763 "   int64_t nlink;\n"
30764 "   int64_t uid;\n"
30765 "   int64_t gid;\n"
30766 "   int64_t rdev;\n"
30767 "   int64_t size;\n"
30768 "   int64_t blksize;\n"
30769 "   int64_t blocks;\n"
30770 "   int64_t atime;\n"
30771 "   int64_t mtime;\n"
30772 "   int64_t ctime;\n"
30773 " };\n"
30774 " \n"
30775 msgstr ""
30776
30777 #. type: verbatim
30778 #: ../src/guestfs-structs.pod:127
30779 #, no-wrap
30780 msgid ""
30781 " struct guestfs_stat_list {\n"
30782 "   uint32_t len; /* Number of elements in list. */\n"
30783 "   struct guestfs_stat *val; /* Elements. */\n"
30784 " };\n"
30785 " \n"
30786 msgstr ""
30787
30788 #. type: verbatim
30789 #: ../src/guestfs-structs.pod:132
30790 #, no-wrap
30791 msgid ""
30792 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
30793 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
30794 "\n"
30795 msgstr ""
30796
30797 #. type: verbatim
30798 #: ../src/guestfs-structs.pod:137
30799 #, no-wrap
30800 msgid ""
30801 " struct guestfs_statvfs {\n"
30802 "   int64_t bsize;\n"
30803 "   int64_t frsize;\n"
30804 "   int64_t blocks;\n"
30805 "   int64_t bfree;\n"
30806 "   int64_t bavail;\n"
30807 "   int64_t files;\n"
30808 "   int64_t ffree;\n"
30809 "   int64_t favail;\n"
30810 "   int64_t fsid;\n"
30811 "   int64_t flag;\n"
30812 "   int64_t namemax;\n"
30813 " };\n"
30814 " \n"
30815 msgstr ""
30816
30817 #. type: verbatim
30818 #: ../src/guestfs-structs.pod:151
30819 #, no-wrap
30820 msgid ""
30821 " struct guestfs_statvfs_list {\n"
30822 "   uint32_t len; /* Number of elements in list. */\n"
30823 "   struct guestfs_statvfs *val; /* Elements. */\n"
30824 " };\n"
30825 " \n"
30826 msgstr ""
30827
30828 #. type: verbatim
30829 #: ../src/guestfs-structs.pod:156
30830 #, no-wrap
30831 msgid ""
30832 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
30833 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
30834 "\n"
30835 msgstr ""
30836
30837 #. type: =head2
30838 #: ../src/guestfs-structs.pod:159
30839 msgid "guestfs_dirent"
30840 msgstr ""
30841
30842 #. type: verbatim
30843 #: ../src/guestfs-structs.pod:161
30844 #, no-wrap
30845 msgid ""
30846 " struct guestfs_dirent {\n"
30847 "   int64_t ino;\n"
30848 "   char ftyp;\n"
30849 "   char *name;\n"
30850 " };\n"
30851 " \n"
30852 msgstr ""
30853
30854 #. type: verbatim
30855 #: ../src/guestfs-structs.pod:167
30856 #, no-wrap
30857 msgid ""
30858 " struct guestfs_dirent_list {\n"
30859 "   uint32_t len; /* Number of elements in list. */\n"
30860 "   struct guestfs_dirent *val; /* Elements. */\n"
30861 " };\n"
30862 " \n"
30863 msgstr ""
30864
30865 #. type: verbatim
30866 #: ../src/guestfs-structs.pod:172
30867 #, no-wrap
30868 msgid ""
30869 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
30870 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
30871 "\n"
30872 msgstr ""
30873
30874 #. type: verbatim
30875 #: ../src/guestfs-structs.pod:177
30876 #, no-wrap
30877 msgid ""
30878 " struct guestfs_version {\n"
30879 "   int64_t major;\n"
30880 "   int64_t minor;\n"
30881 "   int64_t release;\n"
30882 "   char *extra;\n"
30883 " };\n"
30884 " \n"
30885 msgstr ""
30886
30887 #. type: verbatim
30888 #: ../src/guestfs-structs.pod:184
30889 #, no-wrap
30890 msgid ""
30891 " struct guestfs_version_list {\n"
30892 "   uint32_t len; /* Number of elements in list. */\n"
30893 "   struct guestfs_version *val; /* Elements. */\n"
30894 " };\n"
30895 " \n"
30896 msgstr ""
30897
30898 #. type: verbatim
30899 #: ../src/guestfs-structs.pod:189
30900 #, no-wrap
30901 msgid ""
30902 " void guestfs_free_version (struct guestfs_free_version *);\n"
30903 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
30904 "\n"
30905 msgstr ""
30906
30907 #. type: =head2
30908 #: ../src/guestfs-structs.pod:192
30909 msgid "guestfs_xattr"
30910 msgstr ""
30911
30912 #. type: verbatim
30913 #: ../src/guestfs-structs.pod:194
30914 #, no-wrap
30915 msgid ""
30916 " struct guestfs_xattr {\n"
30917 "   char *attrname;\n"
30918 "   /* The next two fields describe a byte array. */\n"
30919 "   uint32_t attrval_len;\n"
30920 "   char *attrval;\n"
30921 " };\n"
30922 " \n"
30923 msgstr ""
30924
30925 #. type: verbatim
30926 #: ../src/guestfs-structs.pod:201
30927 #, no-wrap
30928 msgid ""
30929 " struct guestfs_xattr_list {\n"
30930 "   uint32_t len; /* Number of elements in list. */\n"
30931 "   struct guestfs_xattr *val; /* Elements. */\n"
30932 " };\n"
30933 " \n"
30934 msgstr ""
30935
30936 #. type: verbatim
30937 #: ../src/guestfs-structs.pod:206
30938 #, no-wrap
30939 msgid ""
30940 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
30941 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
30942 "\n"
30943 msgstr ""
30944
30945 #. type: =head2
30946 #: ../src/guestfs-structs.pod:209
30947 msgid "guestfs_inotify_event"
30948 msgstr ""
30949
30950 #. type: verbatim
30951 #: ../src/guestfs-structs.pod:211
30952 #, no-wrap
30953 msgid ""
30954 " struct guestfs_inotify_event {\n"
30955 "   int64_t in_wd;\n"
30956 "   uint32_t in_mask;\n"
30957 "   uint32_t in_cookie;\n"
30958 "   char *in_name;\n"
30959 " };\n"
30960 " \n"
30961 msgstr ""
30962
30963 #. type: verbatim
30964 #: ../src/guestfs-structs.pod:218
30965 #, no-wrap
30966 msgid ""
30967 " struct guestfs_inotify_event_list {\n"
30968 "   uint32_t len; /* Number of elements in list. */\n"
30969 "   struct guestfs_inotify_event *val; /* Elements. */\n"
30970 " };\n"
30971 " \n"
30972 msgstr ""
30973
30974 #. type: verbatim
30975 #: ../src/guestfs-structs.pod:223
30976 #, no-wrap
30977 msgid ""
30978 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
30979 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
30980 "\n"
30981 msgstr ""
30982
30983 #. type: =head2
30984 #: ../src/guestfs-structs.pod:226
30985 msgid "guestfs_partition"
30986 msgstr ""
30987
30988 #. type: verbatim
30989 #: ../src/guestfs-structs.pod:228
30990 #, no-wrap
30991 msgid ""
30992 " struct guestfs_partition {\n"
30993 "   int32_t part_num;\n"
30994 "   uint64_t part_start;\n"
30995 "   uint64_t part_end;\n"
30996 "   uint64_t part_size;\n"
30997 " };\n"
30998 " \n"
30999 msgstr ""
31000
31001 #. type: verbatim
31002 #: ../src/guestfs-structs.pod:235
31003 #, no-wrap
31004 msgid ""
31005 " struct guestfs_partition_list {\n"
31006 "   uint32_t len; /* Number of elements in list. */\n"
31007 "   struct guestfs_partition *val; /* Elements. */\n"
31008 " };\n"
31009 " \n"
31010 msgstr ""
31011
31012 #. type: verbatim
31013 #: ../src/guestfs-structs.pod:240
31014 #, no-wrap
31015 msgid ""
31016 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
31017 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
31018 "\n"
31019 msgstr ""
31020
31021 #. type: =head2
31022 #: ../src/guestfs-structs.pod:243
31023 msgid "guestfs_application"
31024 msgstr ""
31025
31026 #. type: verbatim
31027 #: ../src/guestfs-structs.pod:245
31028 #, no-wrap
31029 msgid ""
31030 " struct guestfs_application {\n"
31031 "   char *app_name;\n"
31032 "   char *app_display_name;\n"
31033 "   int32_t app_epoch;\n"
31034 "   char *app_version;\n"
31035 "   char *app_release;\n"
31036 "   char *app_install_path;\n"
31037 "   char *app_trans_path;\n"
31038 "   char *app_publisher;\n"
31039 "   char *app_url;\n"
31040 "   char *app_source_package;\n"
31041 "   char *app_summary;\n"
31042 "   char *app_description;\n"
31043 " };\n"
31044 " \n"
31045 msgstr ""
31046
31047 #. type: verbatim
31048 #: ../src/guestfs-structs.pod:260
31049 #, no-wrap
31050 msgid ""
31051 " struct guestfs_application_list {\n"
31052 "   uint32_t len; /* Number of elements in list. */\n"
31053 "   struct guestfs_application *val; /* Elements. */\n"
31054 " };\n"
31055 " \n"
31056 msgstr ""
31057
31058 #. type: verbatim
31059 #: ../src/guestfs-structs.pod:265
31060 #, no-wrap
31061 msgid ""
31062 " void guestfs_free_application (struct guestfs_free_application *);\n"
31063 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
31064 "\n"
31065 msgstr ""
31066
31067 #. type: textblock
31068 #: ../src/guestfs.pod:5
31069 msgid "guestfs - Library for accessing and modifying virtual machine images"
31070 msgstr ""
31071
31072 #. type: verbatim
31073 #: ../src/guestfs.pod:11
31074 #, no-wrap
31075 msgid ""
31076 " guestfs_h *g = guestfs_create ();\n"
31077 " guestfs_add_drive (g, \"guest.img\");\n"
31078 " guestfs_launch (g);\n"
31079 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
31080 " guestfs_touch (g, \"/hello\");\n"
31081 " guestfs_umount (g, \"/\");\n"
31082 " guestfs_close (g);\n"
31083 "\n"
31084 msgstr ""
31085
31086 #. type: textblock
31087 #: ../src/guestfs.pod:25
31088 msgid ""
31089 "Libguestfs is a library for accessing and modifying guest disk images.  "
31090 "Amongst the things this is good for: making batch configuration changes to "
31091 "guests, getting disk used/free statistics (see also: virt-df), migrating "
31092 "between virtualization systems (see also: virt-p2v), performing partial "
31093 "backups, performing partial guest clones, cloning guests and changing "
31094 "registry/UUID/hostname info, and much else besides."
31095 msgstr ""
31096
31097 #. type: textblock
31098 #: ../src/guestfs.pod:33
31099 msgid ""
31100 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
31101 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
31102 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
31103 "qcow2, vmdk."
31104 msgstr ""
31105
31106 #. type: textblock
31107 #: ../src/guestfs.pod:38
31108 msgid ""
31109 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
31110 "what filesystem is in each LV, etc.).  It can also run commands in the "
31111 "context of the guest.  Also you can access filesystems over FUSE."
31112 msgstr ""
31113
31114 #. type: textblock
31115 #: ../src/guestfs.pod:43
31116 msgid ""
31117 "Libguestfs is a library that can be linked with C and C++ management "
31118 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
31119 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
31120 "line."
31121 msgstr ""
31122
31123 #. type: textblock
31124 #: ../src/guestfs.pod:48
31125 msgid ""
31126 "You don't need to be root to use libguestfs, although obviously you do need "
31127 "enough permissions to access the disk images."
31128 msgstr ""
31129
31130 #. type: textblock
31131 #: ../src/guestfs.pod:51
31132 msgid ""
31133 "Libguestfs is a large API because it can do many things.  For a gentle "
31134 "introduction, please read the L</API OVERVIEW> section next."
31135 msgstr ""
31136
31137 #. type: textblock
31138 #: ../src/guestfs.pod:54
31139 msgid ""
31140 "There are also some example programs in the L<guestfs-examples(3)> manual "
31141 "page."
31142 msgstr ""
31143
31144 #. type: =head1
31145 #: ../src/guestfs.pod:57
31146 msgid "API OVERVIEW"
31147 msgstr ""
31148
31149 #. type: textblock
31150 #: ../src/guestfs.pod:59
31151 msgid ""
31152 "This section provides a gentler overview of the libguestfs API.  We also try "
31153 "to group API calls together, where that may not be obvious from reading "
31154 "about the individual calls in the main section of this manual."
31155 msgstr ""
31156
31157 #. type: =head2
31158 #: ../src/guestfs.pod:64
31159 msgid "HANDLES"
31160 msgstr ""
31161
31162 #. type: textblock
31163 #: ../src/guestfs.pod:66
31164 msgid ""
31165 "Before you can use libguestfs calls, you have to create a handle.  Then you "
31166 "must add at least one disk image to the handle, followed by launching the "
31167 "handle, then performing whatever operations you want, and finally closing "
31168 "the handle.  By convention we use the single letter C<g> for the name of the "
31169 "handle variable, although of course you can use any name you want."
31170 msgstr ""
31171
31172 #. type: textblock
31173 #: ../src/guestfs.pod:73
31174 msgid "The general structure of all libguestfs-using programs looks like this:"
31175 msgstr ""
31176
31177 #. type: verbatim
31178 #: ../src/guestfs.pod:76
31179 #, no-wrap
31180 msgid ""
31181 " guestfs_h *g = guestfs_create ();\n"
31182 " \n"
31183 msgstr ""
31184
31185 #. type: verbatim
31186 #: ../src/guestfs.pod:78
31187 #, no-wrap
31188 msgid ""
31189 " /* Call guestfs_add_drive additional times if there are\n"
31190 "  * multiple disk images.\n"
31191 "  */\n"
31192 " guestfs_add_drive (g, \"guest.img\");\n"
31193 " \n"
31194 msgstr ""
31195
31196 #. type: verbatim
31197 #: ../src/guestfs.pod:83
31198 #, no-wrap
31199 msgid ""
31200 " /* Most manipulation calls won't work until you've launched\n"
31201 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
31202 "  * and _before_ other commands.\n"
31203 "  */\n"
31204 " guestfs_launch (g);\n"
31205 " \n"
31206 msgstr ""
31207
31208 #. type: verbatim
31209 #: ../src/guestfs.pod:89
31210 #, no-wrap
31211 msgid ""
31212 " /* Now you can examine what partitions, LVs etc are available.\n"
31213 "  */\n"
31214 " char **partitions = guestfs_list_partitions (g);\n"
31215 " char **logvols = guestfs_lvs (g);\n"
31216 " \n"
31217 msgstr ""
31218
31219 #. type: verbatim
31220 #: ../src/guestfs.pod:94
31221 #, no-wrap
31222 msgid ""
31223 " /* To access a filesystem in the image, you must mount it.\n"
31224 "  */\n"
31225 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
31226 " \n"
31227 msgstr ""
31228
31229 #. type: verbatim
31230 #: ../src/guestfs.pod:98
31231 #, no-wrap
31232 msgid ""
31233 " /* Now you can perform filesystem actions on the guest\n"
31234 "  * disk image.\n"
31235 "  */\n"
31236 " guestfs_touch (g, \"/hello\");\n"
31237 " \n"
31238 msgstr ""
31239
31240 #. type: verbatim
31241 #: ../src/guestfs.pod:103
31242 #, no-wrap
31243 msgid ""
31244 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
31245 "  * it is done automatically when you close the handle.  See\n"
31246 "  * discussion of autosync in this page.\n"
31247 "  */\n"
31248 " guestfs_sync (g);\n"
31249 " \n"
31250 msgstr ""
31251
31252 #. type: verbatim
31253 #: ../src/guestfs.pod:109
31254 #, no-wrap
31255 msgid ""
31256 " /* Close the handle 'g'. */\n"
31257 " guestfs_close (g);\n"
31258 "\n"
31259 msgstr ""
31260
31261 #. type: textblock
31262 #: ../src/guestfs.pod:112
31263 msgid ""
31264 "The code above doesn't include any error checking.  In real code you should "
31265 "check return values carefully for errors.  In general all functions that "
31266 "return integers return C<-1> on error, and all functions that return "
31267 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
31268 "how to handle errors, and consult the documentation for each function call "
31269 "below to see precisely how they return error indications.  See L<guestfs-"
31270 "examples(3)> for fully worked examples."
31271 msgstr ""
31272
31273 #. type: =head2
31274 #: ../src/guestfs.pod:121
31275 msgid "DISK IMAGES"
31276 msgstr ""
31277
31278 #. type: textblock
31279 #: ../src/guestfs.pod:123
31280 msgid ""
31281 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
31282 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
31283 "actual block device, or simply an empty file of zeroes that you have created "
31284 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
31285 "of these."
31286 msgstr ""
31287
31288 #. type: textblock
31289 #: ../src/guestfs.pod:129
31290 msgid ""
31291 "The call you should use in modern code for adding drives is L</"
31292 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
31293 "specifying that the format is raw, do:"
31294 msgstr ""
31295
31296 #. type: verbatim
31297 #: ../src/guestfs.pod:133
31298 #, no-wrap
31299 msgid ""
31300 " guestfs_add_drive_opts (g, filename,\n"
31301 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
31302 "                         -1);\n"
31303 "\n"
31304 msgstr ""
31305
31306 #. type: textblock
31307 #: ../src/guestfs.pod:137
31308 msgid "You can add a disk read-only using:"
31309 msgstr ""
31310
31311 #. type: verbatim
31312 #: ../src/guestfs.pod:139
31313 #, no-wrap
31314 msgid ""
31315 " guestfs_add_drive_opts (g, filename,\n"
31316 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
31317 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
31318 "                         -1);\n"
31319 "\n"
31320 msgstr ""
31321
31322 #. type: textblock
31323 #: ../src/guestfs.pod:144
31324 msgid ""
31325 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
31326 "libguestfs won't modify the file."
31327 msgstr ""
31328
31329 #. type: textblock
31330 #: ../src/guestfs.pod:147
31331 msgid ""
31332 "Be extremely cautious if the disk image is in use, eg. if it is being used "
31333 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
31334 "corruption, but adding it read-only is safe."
31335 msgstr ""
31336
31337 #. type: textblock
31338 #: ../src/guestfs.pod:151
31339 msgid ""
31340 "You must add at least one disk image, and you may add multiple disk images.  "
31341 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
31342 "first one you added), C</dev/sdb> (for the second one you added), etc."
31343 msgstr ""
31344
31345 #. type: textblock
31346 #: ../src/guestfs.pod:156
31347 msgid ""
31348 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
31349 "can call L</guestfs_list_devices> to get a list of the device names, in the "
31350 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
31351 msgstr ""
31352
31353 #. type: =head2
31354 #: ../src/guestfs.pod:161
31355 msgid "MOUNTING"
31356 msgstr ""
31357
31358 #. type: textblock
31359 #: ../src/guestfs.pod:163
31360 msgid ""
31361 "Before you can read or write files, create directories and so on in a disk "
31362 "image that contains filesystems, you have to mount those filesystems using "
31363 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
31364 "a disk image contains (for example) one partition with a filesystem on that "
31365 "partition, then you can mount it directly:"
31366 msgstr ""
31367
31368 #. type: verbatim
31369 #: ../src/guestfs.pod:170
31370 #, no-wrap
31371 msgid ""
31372 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
31373 "\n"
31374 msgstr ""
31375
31376 #. type: textblock
31377 #: ../src/guestfs.pod:172
31378 msgid ""
31379 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
31380 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
31381 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
31382 "that these are libguestfs virtual devices, and are nothing to do with host "
31383 "devices."
31384 msgstr ""
31385
31386 #. type: textblock
31387 #: ../src/guestfs.pod:178
31388 msgid ""
31389 "If you are given a disk image and you don't know what it contains then you "
31390 "have to find out.  Libguestfs can do that too: use L</"
31391 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
31392 "LVs, and either try mounting each to see what is mountable, or else examine "
31393 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
31394 "filesystems, use L</guestfs_list_filesystems>."
31395 msgstr ""
31396
31397 #. type: textblock
31398 #: ../src/guestfs.pod:186
31399 msgid ""
31400 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
31401 "L</INSPECTION> below).  But you might find it easier to look at higher level "
31402 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
31403 msgstr ""
31404
31405 #. type: textblock
31406 #: ../src/guestfs.pod:191
31407 msgid ""
31408 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
31409 "several other variations of the C<guestfs_mount_*> call."
31410 msgstr ""
31411
31412 #. type: =head2
31413 #: ../src/guestfs.pod:194
31414 msgid "FILESYSTEM ACCESS AND MODIFICATION"
31415 msgstr ""
31416
31417 #. type: textblock
31418 #: ../src/guestfs.pod:196
31419 msgid ""
31420 "The majority of the libguestfs API consists of fairly low-level calls for "
31421 "accessing and modifying the files, directories, symlinks etc on mounted "
31422 "filesystems.  There are over a hundred such calls which you can find listed "
31423 "in detail below in this man page, and we don't even pretend to cover them "
31424 "all in this overview."
31425 msgstr ""
31426
31427 #. type: textblock
31428 #: ../src/guestfs.pod:202
31429 msgid ""
31430 "Specify filenames as full paths, starting with C<\"/\"> and including the "
31431 "mount point."
31432 msgstr ""
31433
31434 #. type: textblock
31435 #: ../src/guestfs.pod:205
31436 msgid ""
31437 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
31438 "the file called C<\"etc/passwd\"> then you could do:"
31439 msgstr ""
31440
31441 #. type: verbatim
31442 #: ../src/guestfs.pod:208
31443 #, no-wrap
31444 msgid ""
31445 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
31446 "\n"
31447 msgstr ""
31448
31449 #. type: textblock
31450 #: ../src/guestfs.pod:210
31451 msgid ""
31452 "This would return C<data> as a newly allocated buffer containing the full "
31453 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
31454 "or C<NULL> if there was an error."
31455 msgstr ""
31456
31457 #. type: textblock
31458 #: ../src/guestfs.pod:214
31459 msgid ""
31460 "As another example, to create a top-level directory on that filesystem "
31461 "called C<\"var\"> you would do:"
31462 msgstr ""
31463
31464 #. type: verbatim
31465 #: ../src/guestfs.pod:217
31466 #, no-wrap
31467 msgid ""
31468 " guestfs_mkdir (g, \"/var\");\n"
31469 "\n"
31470 msgstr ""
31471
31472 #. type: textblock
31473 #: ../src/guestfs.pod:219
31474 msgid "To create a symlink you could do:"
31475 msgstr ""
31476
31477 #. type: verbatim
31478 #: ../src/guestfs.pod:221
31479 #, no-wrap
31480 msgid ""
31481 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
31482 "               \"/etc/rc3.d/S30portmap\");\n"
31483 "\n"
31484 msgstr ""
31485
31486 #. type: textblock
31487 #: ../src/guestfs.pod:224
31488 msgid ""
31489 "Libguestfs will reject attempts to use relative paths and there is no "
31490 "concept of a current working directory."
31491 msgstr ""
31492
31493 #. type: textblock
31494 #: ../src/guestfs.pod:227
31495 msgid ""
31496 "Libguestfs can return errors in many situations: for example if the "
31497 "filesystem isn't writable, or if a file or directory that you requested "
31498 "doesn't exist.  If you are using the C API (documented here)  you have to "
31499 "check for those error conditions after each call.  (Other language bindings "
31500 "turn these errors into exceptions)."
31501 msgstr ""
31502
31503 #. type: textblock
31504 #: ../src/guestfs.pod:233
31505 msgid ""
31506 "File writes are affected by the per-handle umask, set by calling L</"
31507 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
31508 msgstr ""
31509
31510 #. type: =head2
31511 #: ../src/guestfs.pod:236
31512 msgid "PARTITIONING"
31513 msgstr ""
31514
31515 #. type: textblock
31516 #: ../src/guestfs.pod:238
31517 msgid ""
31518 "Libguestfs contains API calls to read, create and modify partition tables on "
31519 "disk images."
31520 msgstr ""
31521
31522 #. type: textblock
31523 #: ../src/guestfs.pod:241
31524 msgid ""
31525 "In the common case where you want to create a single partition covering the "
31526 "whole disk, you should use the L</guestfs_part_disk> call:"
31527 msgstr ""
31528
31529 #. type: verbatim
31530 #: ../src/guestfs.pod:245
31531 #, no-wrap
31532 msgid ""
31533 " const char *parttype = \"mbr\";\n"
31534 " if (disk_is_larger_than_2TB)\n"
31535 "   parttype = \"gpt\";\n"
31536 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
31537 "\n"
31538 msgstr ""
31539
31540 #. type: textblock
31541 #: ../src/guestfs.pod:250
31542 msgid ""
31543 "Obviously this effectively wipes anything that was on that disk image before."
31544 msgstr ""
31545
31546 #. type: =head2
31547 #: ../src/guestfs.pod:253
31548 msgid "LVM2"
31549 msgstr ""
31550
31551 #. type: textblock
31552 #: ../src/guestfs.pod:255
31553 msgid ""
31554 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
31555 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
31556 "you familiarize yourself with the concepts of physical volumes, volume "
31557 "groups and logical volumes."
31558 msgstr ""
31559
31560 #. type: textblock
31561 #: ../src/guestfs.pod:260
31562 msgid ""
31563 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
31564 "tldp.org/HOWTO/LVM-HOWTO/>."
31565 msgstr ""
31566
31567 #. type: =head2
31568 #: ../src/guestfs.pod:263
31569 msgid "DOWNLOADING"
31570 msgstr ""
31571
31572 #. type: textblock
31573 #: ../src/guestfs.pod:265
31574 msgid ""
31575 "Use L</guestfs_cat> to download small, text only files.  This call is "
31576 "limited to files which are less than 2 MB and which cannot contain any ASCII "
31577 "NUL (C<\\0>) characters.  However the API is very simple to use."
31578 msgstr ""
31579
31580 #. type: textblock
31581 #: ../src/guestfs.pod:269
31582 msgid ""
31583 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
31584 "bit data, since it returns a (pointer, size) pair.  However it is still "
31585 "limited to \"small\" files, less than 2 MB."
31586 msgstr ""
31587
31588 #. type: textblock
31589 #: ../src/guestfs.pod:273
31590 msgid ""
31591 "L</guestfs_download> can be used to download any file, with no limits on "
31592 "content or size (even files larger than 4 GB)."
31593 msgstr ""
31594
31595 #. type: textblock
31596 #: ../src/guestfs.pod:276
31597 msgid ""
31598 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
31599 msgstr ""
31600
31601 #. type: =head2
31602 #: ../src/guestfs.pod:279
31603 msgid "UPLOADING"
31604 msgstr ""
31605
31606 #. type: textblock
31607 #: ../src/guestfs.pod:281
31608 msgid ""
31609 "It's often the case that you want to write a file or files to the disk image."
31610 msgstr ""
31611
31612 #. type: textblock
31613 #: ../src/guestfs.pod:284
31614 msgid ""
31615 "To write a small file with fixed content, use L</guestfs_write>.  To create "
31616 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
31617 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
31618 "of other functions for creating test files, for example L</guestfs_fill> and "
31619 "L</guestfs_fill_pattern>."
31620 msgstr ""
31621
31622 #. type: textblock
31623 #: ../src/guestfs.pod:290
31624 msgid ""
31625 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
31626 "file content or size (even files larger than 4 GB)."
31627 msgstr ""
31628
31629 #. type: textblock
31630 #: ../src/guestfs.pod:293
31631 msgid ""
31632 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
31633 msgstr ""
31634
31635 #. type: textblock
31636 #: ../src/guestfs.pod:295
31637 msgid ""
31638 "However the fastest way to upload I<large numbers of arbitrary files> is to "
31639 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
31640 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
31641 "in a predictable way (eg. adding it last after all other drives) then you "
31642 "can get the device name from L</guestfs_list_devices> and mount it directly "
31643 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
31644 "portable between kernel versions, and they don't support labels or UUIDs.  "
31645 "If you want to pre-build an image or you need to mount it using a label or "
31646 "UUID, use an ISO image instead."
31647 msgstr ""
31648
31649 #. type: =head2
31650 #: ../src/guestfs.pod:306
31651 msgid "COPYING"
31652 msgstr ""
31653
31654 #. type: textblock
31655 #: ../src/guestfs.pod:308
31656 msgid ""
31657 "There are various different commands for copying between files and devices "
31658 "and in and out of the guest filesystem.  These are summarised in the table "
31659 "below."
31660 msgstr ""
31661
31662 #. type: =item
31663 #: ../src/guestfs.pod:314
31664 msgid "B<file> to B<file>"
31665 msgstr ""
31666
31667 #. type: textblock
31668 #: ../src/guestfs.pod:316
31669 msgid ""
31670 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
31671 "directories recursively."
31672 msgstr ""
31673
31674 #. type: =item
31675 #: ../src/guestfs.pod:319
31676 msgid "B<file or device> to B<file or device>"
31677 msgstr ""
31678
31679 #. type: textblock
31680 #: ../src/guestfs.pod:321
31681 msgid ""
31682 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
31683 "devices in the guest."
31684 msgstr ""
31685
31686 #. type: textblock
31687 #: ../src/guestfs.pod:324
31688 msgid "Example: duplicate the contents of an LV:"
31689 msgstr ""
31690
31691 #. type: verbatim
31692 #: ../src/guestfs.pod:326
31693 #, no-wrap
31694 msgid ""
31695 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
31696 "\n"
31697 msgstr ""
31698
31699 #. type: textblock
31700 #: ../src/guestfs.pod:328
31701 msgid ""
31702 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
31703 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
31704 "guestfs_copy_size>."
31705 msgstr ""
31706
31707 #. type: =item
31708 #: ../src/guestfs.pod:332
31709 msgid "B<file on the host> to B<file or device>"
31710 msgstr ""
31711
31712 #. type: textblock
31713 #: ../src/guestfs.pod:334
31714 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
31715 msgstr ""
31716
31717 #. type: =item
31718 #: ../src/guestfs.pod:336
31719 msgid "B<file or device> to B<file on the host>"
31720 msgstr ""
31721
31722 #. type: textblock
31723 #: ../src/guestfs.pod:338
31724 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
31725 msgstr ""
31726
31727 #. type: =head2
31728 #: ../src/guestfs.pod:342
31729 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
31730 msgstr ""
31731
31732 #. type: textblock
31733 #: ../src/guestfs.pod:344
31734 msgid ""
31735 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
31736 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
31737 "appears you can only upload and download to files.  However many Un*x-like "
31738 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
31739 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
31740 "and arbitrary file descriptor N."
31741 msgstr ""
31742
31743 #. type: textblock
31744 #: ../src/guestfs.pod:352
31745 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
31746 msgstr ""
31747
31748 #. type: verbatim
31749 #: ../src/guestfs.pod:355
31750 #, no-wrap
31751 msgid ""
31752 " guestfs_download (g, filename, \"/dev/stdout\");\n"
31753 "\n"
31754 msgstr ""
31755
31756 #. type: textblock
31757 #: ../src/guestfs.pod:357
31758 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
31759 msgstr ""
31760
31761 #. type: verbatim
31762 #: ../src/guestfs.pod:359
31763 #, no-wrap
31764 msgid ""
31765 " char devfd[64];\n"
31766 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
31767 " guestfs_tar_out (g, \"/\", devfd);\n"
31768 "\n"
31769 msgstr ""
31770
31771 #. type: =head2
31772 #: ../src/guestfs.pod:363
31773 msgid "LISTING FILES"
31774 msgstr ""
31775
31776 #. type: textblock
31777 #: ../src/guestfs.pod:365
31778 msgid ""
31779 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
31780 "L<guestfish(1)>-equivalent command C<ll>)."
31781 msgstr ""
31782
31783 #. type: textblock
31784 #: ../src/guestfs.pod:368
31785 msgid ""
31786 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
31787 "programs, as a flat list of strings."
31788 msgstr ""
31789
31790 #. type: textblock
31791 #: ../src/guestfs.pod:371
31792 msgid ""
31793 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
31794 "directory, plus additional information about each one.  It is more "
31795 "equivalent to using the L<readdir(3)> call on a local filesystem."
31796 msgstr ""
31797
31798 #. type: textblock
31799 #: ../src/guestfs.pod:375
31800 msgid ""
31801 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
31802 msgstr ""
31803
31804 #. type: =head2
31805 #: ../src/guestfs.pod:378
31806 msgid "RUNNING COMMANDS"
31807 msgstr ""
31808
31809 #. type: textblock
31810 #: ../src/guestfs.pod:380
31811 msgid ""
31812 "Although libguestfs is primarily an API for manipulating files inside guest "
31813 "images, we also provide some limited facilities for running commands inside "
31814 "guests."
31815 msgstr ""
31816
31817 #. type: textblock
31818 #: ../src/guestfs.pod:384
31819 msgid "There are many limitations to this:"
31820 msgstr ""
31821
31822 #. type: textblock
31823 #: ../src/guestfs.pod:390
31824 msgid ""
31825 "The kernel version that the command runs under will be different from what "
31826 "it expects."
31827 msgstr ""
31828
31829 #. type: textblock
31830 #: ../src/guestfs.pod:395
31831 msgid ""
31832 "If the command needs to communicate with daemons, then most likely they "
31833 "won't be running."
31834 msgstr ""
31835
31836 #. type: textblock
31837 #: ../src/guestfs.pod:400
31838 msgid "The command will be running in limited memory."
31839 msgstr ""
31840
31841 #. type: textblock
31842 #: ../src/guestfs.pod:404
31843 msgid ""
31844 "The network may not be available unless you enable it (see L</"
31845 "guestfs_set_network>)."
31846 msgstr ""
31847
31848 #. type: textblock
31849 #: ../src/guestfs.pod:409
31850 msgid "Only supports Linux guests (not Windows, BSD, etc)."
31851 msgstr ""
31852
31853 #. type: textblock
31854 #: ../src/guestfs.pod:413
31855 msgid ""
31856 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
31857 msgstr ""
31858
31859 #. type: textblock
31860 #: ../src/guestfs.pod:418
31861 msgid ""
31862 "For SELinux guests, you may need to enable SELinux and load policy first.  "
31863 "See L</SELINUX> in this manpage."
31864 msgstr ""
31865
31866 #. type: textblock
31867 #: ../src/guestfs.pod:423
31868 msgid ""
31869 "I<Security:> It is not safe to run commands from untrusted, possibly "
31870 "malicious guests.  These commands may attempt to exploit your program by "
31871 "sending unexpected output.  They could also try to exploit the Linux kernel "
31872 "or qemu provided by the libguestfs appliance.  They could use the network "
31873 "provided by the libguestfs appliance to bypass ordinary network partitions "
31874 "and firewalls.  They could use the elevated privileges or different SELinux "
31875 "context of your program to their advantage."
31876 msgstr ""
31877
31878 #. type: textblock
31879 #: ../src/guestfs.pod:432
31880 msgid ""
31881 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
31882 "(a script which runs when the guest next boots normally), and to have this "
31883 "script run the commands you want in the normal context of the running guest, "
31884 "network security and so on.  For information about other security issues, "
31885 "see L</SECURITY>."
31886 msgstr ""
31887
31888 #. type: textblock
31889 #: ../src/guestfs.pod:440
31890 msgid ""
31891 "The two main API calls to run commands are L</guestfs_command> and L</"
31892 "guestfs_sh> (there are also variations)."
31893 msgstr ""
31894
31895 #. type: textblock
31896 #: ../src/guestfs.pod:443
31897 msgid ""
31898 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
31899 "shell globs, redirections, etc will work."
31900 msgstr ""
31901
31902 #. type: =head2
31903 #: ../src/guestfs.pod:446
31904 msgid "CONFIGURATION FILES"
31905 msgstr ""
31906
31907 #. type: textblock
31908 #: ../src/guestfs.pod:448
31909 msgid ""
31910 "To read and write configuration files in Linux guest filesystems, we "
31911 "strongly recommend using Augeas.  For example, Augeas understands how to "
31912 "read and write, say, a Linux shadow password file or X.org configuration "
31913 "file, and so avoids you having to write that code."
31914 msgstr ""
31915
31916 #. type: textblock
31917 #: ../src/guestfs.pod:453
31918 msgid ""
31919 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
31920 "document Augeas itself here because there is excellent documentation on the "
31921 "L<http://augeas.net/> website."
31922 msgstr ""
31923
31924 #. type: textblock
31925 #: ../src/guestfs.pod:457
31926 msgid ""
31927 "If you don't want to use Augeas (you fool!) then try calling L</"
31928 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
31929 "over."
31930 msgstr ""
31931
31932 #. type: =head2
31933 #: ../src/guestfs.pod:461
31934 msgid "SELINUX"
31935 msgstr ""
31936
31937 #. type: textblock
31938 #: ../src/guestfs.pod:463
31939 msgid ""
31940 "We support SELinux guests.  To ensure that labeling happens correctly in "
31941 "SELinux guests, you need to enable SELinux and load the guest's policy:"
31942 msgstr ""
31943
31944 #. type: textblock
31945 #: ../src/guestfs.pod:471
31946 msgid "Before launching, do:"
31947 msgstr ""
31948
31949 #. type: verbatim
31950 #: ../src/guestfs.pod:473
31951 #, no-wrap
31952 msgid ""
31953 " guestfs_set_selinux (g, 1);\n"
31954 "\n"
31955 msgstr ""
31956
31957 #. type: textblock
31958 #: ../src/guestfs.pod:477
31959 msgid ""
31960 "After mounting the guest's filesystem(s), load the policy.  This is best "
31961 "done by running the L<load_policy(8)> command in the guest itself:"
31962 msgstr ""
31963
31964 #. type: verbatim
31965 #: ../src/guestfs.pod:481
31966 #, no-wrap
31967 msgid ""
31968 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
31969 "\n"
31970 msgstr ""
31971
31972 #. type: textblock
31973 #: ../src/guestfs.pod:483
31974 msgid ""
31975 "(Older versions of C<load_policy> require you to specify the name of the "
31976 "policy file)."
31977 msgstr ""
31978
31979 #. type: textblock
31980 #: ../src/guestfs.pod:488
31981 msgid ""
31982 "Optionally, set the security context for the API.  The correct security "
31983 "context to use can only be known by inspecting the guest.  As an example:"
31984 msgstr ""
31985
31986 #. type: verbatim
31987 #: ../src/guestfs.pod:492
31988 #, no-wrap
31989 msgid ""
31990 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
31991 "\n"
31992 msgstr ""
31993
31994 #. type: textblock
31995 #: ../src/guestfs.pod:496
31996 msgid "This will work for running commands and editing existing files."
31997 msgstr ""
31998
31999 #. type: textblock
32000 #: ../src/guestfs.pod:498
32001 msgid ""
32002 "When new files are created, you may need to label them explicitly, for "
32003 "example by running the external command C<restorecon pathname>."
32004 msgstr ""
32005
32006 #. type: =head2
32007 #: ../src/guestfs.pod:502
32008 msgid "UMASK"
32009 msgstr ""
32010
32011 #. type: textblock
32012 #: ../src/guestfs.pod:504
32013 msgid ""
32014 "Certain calls are affected by the current file mode creation mask (the "
32015 "\"umask\").  In particular ones which create files or directories, such as "
32016 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
32017 "either the default mode that the file is created with or modifies the mode "
32018 "that you supply."
32019 msgstr ""
32020
32021 #. type: textblock
32022 #: ../src/guestfs.pod:510
32023 msgid ""
32024 "The default umask is C<022>, so files are created with modes such as C<0644> "
32025 "and directories with C<0755>."
32026 msgstr ""
32027
32028 #. type: textblock
32029 #: ../src/guestfs.pod:513
32030 msgid ""
32031 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
32032 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
32033 "guestfs_chmod> after creating each file or directory."
32034 msgstr ""
32035
32036 #. type: textblock
32037 #: ../src/guestfs.pod:517
32038 msgid "For more information about umask, see L<umask(2)>."
32039 msgstr ""
32040
32041 #. type: textblock
32042 #: ../src/guestfs.pod:521
32043 msgid ""
32044 "Libguestfs allows you to access Linux guests which have been encrypted using "
32045 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
32046 "standard.  This includes nearly all whole disk encryption systems used by "
32047 "modern Linux guests."
32048 msgstr ""
32049
32050 #. type: textblock
32051 #: ../src/guestfs.pod:527
32052 msgid ""
32053 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
32054 "returns the string C<crypto_LUKS>)."
32055 msgstr ""
32056
32057 #. type: textblock
32058 #: ../src/guestfs.pod:530
32059 msgid ""
32060 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
32061 "will require the passphrase!"
32062 msgstr ""
32063
32064 #. type: textblock
32065 #: ../src/guestfs.pod:533
32066 msgid ""
32067 "Opening a LUKS device creates a new device mapper device called C</dev/"
32068 "mapper/mapname> (where C<mapname> is the string you supply to L</"
32069 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
32070 "from and encrypted to the underlying block device respectively."
32071 msgstr ""
32072
32073 #. type: textblock
32074 #: ../src/guestfs.pod:539
32075 msgid ""
32076 "LVM volume groups on the device can be made visible by calling L</"
32077 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
32078 "(s) can now be mounted in the usual way."
32079 msgstr ""
32080
32081 #. type: textblock
32082 #: ../src/guestfs.pod:543
32083 msgid ""
32084 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
32085 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
32086 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
32087 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
32088 "underlying encrypted block device)."
32089 msgstr ""
32090
32091 #. type: =head2
32092 #: ../src/guestfs.pod:550
32093 msgid "INSPECTION"
32094 msgstr ""
32095
32096 #. type: textblock
32097 #: ../src/guestfs.pod:552
32098 msgid ""
32099 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
32100 "contains operating systems, an install CD or a live CD.  (These APIs used to "
32101 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
32102 "version 1.5.3 the most frequently used part of this library has been "
32103 "rewritten in C and moved into the core code)."
32104 msgstr ""
32105
32106 #. type: textblock
32107 #: ../src/guestfs.pod:559
32108 msgid ""
32109 "Add all disks belonging to the unknown virtual machine and call L</"
32110 "guestfs_launch> in the usual way."
32111 msgstr ""
32112
32113 #. type: textblock
32114 #: ../src/guestfs.pod:562
32115 msgid ""
32116 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
32117 "and certain heuristics, and returns a list of operating systems that were "
32118 "found.  An empty list means none were found.  A single element is the root "
32119 "filesystem of the operating system.  For dual- or multi-boot guests, "
32120 "multiple roots can be returned, each one corresponding to a separate "
32121 "operating system.  (Multi-boot virtual machines are extremely rare in the "
32122 "world of virtualization, but since this scenario can happen, we have built "
32123 "libguestfs to deal with it.)"
32124 msgstr ""
32125
32126 #. type: textblock
32127 #: ../src/guestfs.pod:571
32128 msgid ""
32129 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
32130 "to get additional details about that operating system.  For example, call L</"
32131 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
32132 "Windows and Linux-based operating systems respectively."
32133 msgstr ""
32134
32135 #. type: textblock
32136 #: ../src/guestfs.pod:577
32137 msgid ""
32138 "Un*x-like and Linux-based operating systems usually consist of several "
32139 "filesystems which are mounted at boot time (for example, a separate boot "
32140 "partition mounted on C</boot>).  The inspection rules are able to detect how "
32141 "filesystems correspond to mount points.  Call "
32142 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
32143 "hash table like this example:"
32144 msgstr ""
32145
32146 #. type: verbatim
32147 #: ../src/guestfs.pod:584
32148 #, no-wrap
32149 msgid ""
32150 " /boot => /dev/sda1\n"
32151 " /     => /dev/vg_guest/lv_root\n"
32152 " /usr  => /dev/vg_guest/lv_usr\n"
32153 "\n"
32154 msgstr ""
32155
32156 #. type: textblock
32157 #: ../src/guestfs.pod:588
32158 msgid ""
32159 "The caller can then make calls to L</guestfs_mount_options> to mount the "
32160 "filesystems as suggested."
32161 msgstr ""
32162
32163 #. type: textblock
32164 #: ../src/guestfs.pod:591
32165 msgid ""
32166 "Be careful to mount filesystems in the right order (eg. C</> before C</"
32167 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
32168 msgstr ""
32169
32170 #. type: textblock
32171 #: ../src/guestfs.pod:595
32172 msgid ""
32173 "Inspection currently only works for some common operating systems.  "
32174 "Contributors are welcome to send patches for other operating systems that we "
32175 "currently cannot detect."
32176 msgstr ""
32177
32178 #. type: textblock
32179 #: ../src/guestfs.pod:599
32180 msgid ""
32181 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
32182 "for more details.  The L</guestfs_inspect_os> function just ignores any "
32183 "encrypted devices."
32184 msgstr ""
32185
32186 #. type: textblock
32187 #: ../src/guestfs.pod:603
32188 msgid ""
32189 "A note on the implementation: The call L</guestfs_inspect_os> performs "
32190 "inspection and caches the results in the guest handle.  Subsequent calls to "
32191 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
32192 "read the disks.  If you change the content of the guest disks, you can redo "
32193 "inspection by calling L</guestfs_inspect_os> again.  (L</"
32194 "guestfs_inspect_list_applications> works a little differently from the other "
32195 "calls and does read the disks.  See documentation for that function for "
32196 "details)."
32197 msgstr ""
32198
32199 #. type: =head3
32200 #: ../src/guestfs.pod:612
32201 msgid "INSPECTING INSTALL DISKS"
32202 msgstr ""
32203
32204 #. type: textblock
32205 #: ../src/guestfs.pod:614
32206 msgid ""
32207 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
32208 "CDs and more."
32209 msgstr ""
32210
32211 #. type: textblock
32212 #: ../src/guestfs.pod:617
32213 msgid ""
32214 "Call L</guestfs_inspect_get_format> to return the format of the operating "
32215 "system, which currently can be C<installed> (a regular operating system) or "
32216 "C<installer> (some sort of install disk)."
32217 msgstr ""
32218
32219 #. type: textblock
32220 #: ../src/guestfs.pod:621
32221 msgid ""
32222 "Further information is available about the operating system that can be "
32223 "installed using the regular inspection APIs like L</"
32224 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
32225 msgstr ""
32226
32227 #. type: textblock
32228 #: ../src/guestfs.pod:626
32229 msgid ""
32230 "Some additional information specific to installer disks is also available "
32231 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
32232 "guestfs_inspect_is_multipart> calls."
32233 msgstr ""
32234
32235 #. type: =head2
32236 #: ../src/guestfs.pod:631
32237 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
32238 msgstr ""
32239
32240 #. type: textblock
32241 #: ../src/guestfs.pod:633
32242 msgid ""
32243 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
32244 "ntfs-3g.org/> driver."
32245 msgstr ""
32246
32247 #. type: =head3
32248 #: ../src/guestfs.pod:636
32249 msgid "DRIVE LETTERS AND PATHS"
32250 msgstr ""
32251
32252 #. type: textblock
32253 #: ../src/guestfs.pod:638
32254 msgid ""
32255 "DOS and Windows still use drive letters, and the filesystems are always "
32256 "treated as case insensitive by Windows itself, and therefore you might find "
32257 "a Windows configuration file referring to a path like C<c:\\windows"
32258 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
32259 "might be referred to as C</WINDOWS/System32>."
32260 msgstr ""
32261
32262 #. type: textblock
32263 #: ../src/guestfs.pod:644
32264 msgid ""
32265 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
32266 "L</guestfs_inspect_get_drive_mappings>)"
32267 msgstr ""
32268
32269 #. type: textblock
32270 #: ../src/guestfs.pod:647
32271 msgid ""
32272 "Dealing with separator characters (backslash vs forward slash) is outside "
32273 "the scope of libguestfs, but usually a simple character replacement will "
32274 "work."
32275 msgstr ""
32276
32277 #. type: textblock
32278 #: ../src/guestfs.pod:651
32279 msgid ""
32280 "To resolve the case insensitivity of paths, call L</"
32281 "guestfs_case_sensitive_path>."
32282 msgstr ""
32283
32284 #. type: =head3
32285 #: ../src/guestfs.pod:654
32286 msgid "ACCESSING THE WINDOWS REGISTRY"
32287 msgstr ""
32288
32289 #. type: textblock
32290 #: ../src/guestfs.pod:656
32291 msgid ""
32292 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
32293 "files, through the library C<hivex> which is part of the libguestfs project "
32294 "although ships as a separate tarball.  You have to locate and download the "
32295 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
32296 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
32297 "reg(1)> for more help on this issue."
32298 msgstr ""
32299
32300 #. type: =head3
32301 #: ../src/guestfs.pod:664
32302 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
32303 msgstr ""
32304
32305 #. type: textblock
32306 #: ../src/guestfs.pod:666
32307 msgid ""
32308 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
32309 "provide something which looks like a Linux symlink.  The way it tries to do "
32310 "the rewriting is described here:"
32311 msgstr ""
32312
32313 #. type: textblock
32314 #: ../src/guestfs.pod:670
32315 msgid ""
32316 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
32317 "symbolic-links/>"
32318 msgstr ""
32319
32320 #. type: textblock
32321 #: ../src/guestfs.pod:672
32322 msgid ""
32323 "The essential problem is that ntfs-3g simply does not have enough "
32324 "information to do a correct job.  NTFS links can contain drive letters and "
32325 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
32326 "It is almost certainly the case that libguestfs callers should ignore what "
32327 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
32328 msgstr ""
32329
32330 #. type: textblock
32331 #: ../src/guestfs.pod:679
32332 msgid ""
32333 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
32334 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
32335 "attribute, and read the raw reparse data from that (you can find the format "
32336 "documented in various places around the web)."
32337 msgstr ""
32338
32339 #. type: =head3
32340 #: ../src/guestfs.pod:684
32341 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
32342 msgstr ""
32343
32344 #. type: textblock
32345 #: ../src/guestfs.pod:686
32346 msgid ""
32347 "There are other useful extended attributes that can be read from ntfs-3g "
32348 "filesystems (using L</guestfs_getxattr>).  See:"
32349 msgstr ""
32350
32351 #. type: textblock
32352 #: ../src/guestfs.pod:689
32353 msgid ""
32354 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
32355 msgstr ""
32356
32357 #. type: =head2
32358 #: ../src/guestfs.pod:691
32359 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
32360 msgstr ""
32361
32362 #. type: textblock
32363 #: ../src/guestfs.pod:693
32364 msgid ""
32365 "Although we don't want to discourage you from using the C API, we will "
32366 "mention here that the same API is also available in other languages."
32367 msgstr ""
32368
32369 #. type: textblock
32370 #: ../src/guestfs.pod:696
32371 msgid ""
32372 "The API is broadly identical in all supported languages.  This means that "
32373 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
32374 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
32375 "OCaml.  In other words, a straightforward, predictable isomorphism between "
32376 "each language."
32377 msgstr ""
32378
32379 #. type: textblock
32380 #: ../src/guestfs.pod:702
32381 msgid ""
32382 "Error messages are automatically transformed into exceptions if the language "
32383 "supports it."
32384 msgstr ""
32385
32386 #. type: textblock
32387 #: ../src/guestfs.pod:705
32388 msgid ""
32389 "We don't try to \"object orientify\" parts of the API in OO languages, "
32390 "although contributors are welcome to write higher level APIs above what we "
32391 "provide in their favourite languages if they wish."
32392 msgstr ""
32393
32394 #. type: =item
32395 #: ../src/guestfs.pod:711
32396 msgid "B<C++>"
32397 msgstr ""
32398
32399 #. type: textblock
32400 #: ../src/guestfs.pod:713
32401 msgid ""
32402 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
32403 "identical to the C API.  C++ classes and exceptions are not used."
32404 msgstr ""
32405
32406 #. type: =item
32407 #: ../src/guestfs.pod:717
32408 msgid "B<C#>"
32409 msgstr ""
32410
32411 #. type: textblock
32412 #: ../src/guestfs.pod:719
32413 msgid ""
32414 "The C# bindings are highly experimental.  Please read the warnings at the "
32415 "top of C<csharp/Libguestfs.cs>."
32416 msgstr ""
32417
32418 #. type: =item
32419 #: ../src/guestfs.pod:722
32420 msgid "B<Haskell>"
32421 msgstr ""
32422
32423 #. type: textblock
32424 #: ../src/guestfs.pod:724
32425 msgid ""
32426 "This is the only language binding that is working but incomplete.  Only "
32427 "calls which return simple integers have been bound in Haskell, and we are "
32428 "looking for help to complete this binding."
32429 msgstr ""
32430
32431 #. type: =item
32432 #: ../src/guestfs.pod:728
32433 msgid "B<Java>"
32434 msgstr ""
32435
32436 #. type: textblock
32437 #: ../src/guestfs.pod:730
32438 msgid ""
32439 "Full documentation is contained in the Javadoc which is distributed with "
32440 "libguestfs.  For examples, see L<guestfs-java(3)>."
32441 msgstr ""
32442
32443 #. type: =item
32444 #: ../src/guestfs.pod:733
32445 msgid "B<OCaml>"
32446 msgstr ""
32447
32448 #. type: textblock
32449 #: ../src/guestfs.pod:735
32450 msgid "See L<guestfs-ocaml(3)>."
32451 msgstr ""
32452
32453 #. type: =item
32454 #: ../src/guestfs.pod:737
32455 msgid "B<Perl>"
32456 msgstr ""
32457
32458 #. type: textblock
32459 #: ../src/guestfs.pod:739
32460 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
32461 msgstr ""
32462
32463 #. type: =item
32464 #: ../src/guestfs.pod:741
32465 msgid "B<PHP>"
32466 msgstr ""
32467
32468 #. type: textblock
32469 #: ../src/guestfs.pod:743
32470 msgid ""
32471 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
32472 "the php-libguestfs package for your distribution."
32473 msgstr ""
32474
32475 #. type: textblock
32476 #: ../src/guestfs.pod:746
32477 msgid "The PHP binding only works correctly on 64 bit machines."
32478 msgstr ""
32479
32480 #. type: =item
32481 #: ../src/guestfs.pod:748
32482 msgid "B<Python>"
32483 msgstr ""
32484
32485 #. type: textblock
32486 #: ../src/guestfs.pod:750
32487 msgid "See L<guestfs-python(3)>."
32488 msgstr ""
32489
32490 #. type: =item
32491 #: ../src/guestfs.pod:752
32492 msgid "B<Ruby>"
32493 msgstr ""
32494
32495 #. type: textblock
32496 #: ../src/guestfs.pod:754
32497 msgid "See L<guestfs-ruby(3)>."
32498 msgstr ""
32499
32500 #. type: =item
32501 #: ../src/guestfs.pod:756
32502 msgid "B<shell scripts>"
32503 msgstr ""
32504
32505 #. type: textblock
32506 #: ../src/guestfs.pod:758
32507 msgid "See L<guestfish(1)>."
32508 msgstr ""
32509
32510 #. type: =head2
32511 #: ../src/guestfs.pod:762
32512 msgid "LIBGUESTFS GOTCHAS"
32513 msgstr ""
32514
32515 #. type: textblock
32516 #: ../src/guestfs.pod:764
32517 msgid ""
32518 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
32519 "system [...] that works in the way it is documented but is counterintuitive "
32520 "and almost invites mistakes.\""
32521 msgstr ""
32522
32523 #. type: textblock
32524 #: ../src/guestfs.pod:768
32525 msgid ""
32526 "Since we developed libguestfs and the associated tools, there are several "
32527 "things we would have designed differently, but are now stuck with for "
32528 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
32529 "release, you can expect these to change.  Beware of them."
32530 msgstr ""
32531
32532 #. type: =item
32533 #: ../src/guestfs.pod:776
32534 msgid "Autosync / forgetting to sync."
32535 msgstr ""
32536
32537 #. type: textblock
32538 #: ../src/guestfs.pod:778
32539 msgid ""
32540 "I<Update:> Autosync is enabled by default for all API users starting from "
32541 "libguestfs 1.5.24.  This section only applies to older versions."
32542 msgstr ""
32543
32544 #. type: textblock
32545 #: ../src/guestfs.pod:781
32546 msgid ""
32547 "When modifying a filesystem from C or another language, you B<must> unmount "
32548 "all filesystems and call L</guestfs_sync> explicitly before you close the "
32549 "libguestfs handle.  You can also call:"
32550 msgstr ""
32551
32552 #. type: verbatim
32553 #: ../src/guestfs.pod:785
32554 #, no-wrap
32555 msgid ""
32556 " guestfs_set_autosync (g, 1);\n"
32557 "\n"
32558 msgstr ""
32559
32560 #. type: textblock
32561 #: ../src/guestfs.pod:787
32562 msgid ""
32563 "to have the unmount/sync done automatically for you when the handle 'g' is "
32564 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
32565 msgstr ""
32566
32567 #. type: textblock
32568 #: ../src/guestfs.pod:791
32569 msgid ""
32570 "If you forget to do this, then it is entirely possible that your changes "
32571 "won't be written out, or will be partially written, or (very rarely) that "
32572 "you'll get disk corruption."
32573 msgstr ""
32574
32575 #. type: textblock
32576 #: ../src/guestfs.pod:795
32577 msgid ""
32578 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
32579 "guestfish scripts that forget to sync will work just fine, which can make "
32580 "this very puzzling if you are trying to debug a problem."
32581 msgstr ""
32582
32583 #. type: =item
32584 #: ../src/guestfs.pod:799
32585 msgid "Mount option C<-o sync> should not be the default."
32586 msgstr ""
32587
32588 #. type: textblock
32589 #: ../src/guestfs.pod:801
32590 msgid ""
32591 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
32592 "However C<-o sync> does not add any reliability benefit, but does have a "
32593 "very large performance impact."
32594 msgstr ""
32595
32596 #. type: textblock
32597 #: ../src/guestfs.pod:805
32598 msgid ""
32599 "The work around is to use L</guestfs_mount_options> and set the mount "
32600 "options that you actually want to use."
32601 msgstr ""
32602
32603 #. type: =item
32604 #: ../src/guestfs.pod:808
32605 msgid "Read-only should be the default."
32606 msgstr ""
32607
32608 #. type: textblock
32609 #: ../src/guestfs.pod:810
32610 msgid ""
32611 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
32612 "specify I<--rw> if you want to make changes to the image."
32613 msgstr ""
32614
32615 #. type: textblock
32616 #: ../src/guestfs.pod:813
32617 msgid "This would reduce the potential to corrupt live VM images."
32618 msgstr ""
32619
32620 #. type: textblock
32621 #: ../src/guestfs.pod:815
32622 msgid ""
32623 "Note that many filesystems change the disk when you just mount and unmount, "
32624 "even if you didn't perform any writes.  You need to use L</"
32625 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
32626 msgstr ""
32627
32628 #. type: =item
32629 #: ../src/guestfs.pod:819
32630 msgid "guestfish command line is hard to use."
32631 msgstr ""
32632
32633 #. type: textblock
32634 #: ../src/guestfs.pod:821
32635 msgid ""
32636 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
32637 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
32638 "exist, so it fails.  In earlier versions of guestfish the error message was "
32639 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
32640 "we should have used C<guestfish -c command> to run commands."
32641 msgstr ""
32642
32643 #. type: =item
32644 #: ../src/guestfs.pod:828
32645 msgid "guestfish megabyte modifiers don't work right on all commands"
32646 msgstr ""
32647
32648 #. type: textblock
32649 #: ../src/guestfs.pod:830
32650 msgid ""
32651 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
32652 "other modifiers).  What guestfish actually does is to multiply the number "
32653 "part by the modifier part and pass the result to the C API.  However this "
32654 "doesn't work for a few APIs which aren't expecting bytes, but are already "
32655 "expecting some other unit (eg. megabytes)."
32656 msgstr ""
32657
32658 #. type: textblock
32659 #: ../src/guestfs.pod:837
32660 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
32661 msgstr ""
32662
32663 #. type: verbatim
32664 #: ../src/guestfs.pod:839
32665 #, no-wrap
32666 msgid ""
32667 " lvcreate LV VG 100M\n"
32668 "\n"
32669 msgstr ""
32670
32671 #. type: textblock
32672 #: ../src/guestfs.pod:841
32673 msgid ""
32674 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
32675 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
32676 "megabytes * megabytes) logical volume.  The error message you get from this "
32677 "is also a little obscure."
32678 msgstr ""
32679
32680 #. type: textblock
32681 #: ../src/guestfs.pod:846
32682 msgid ""
32683 "This could be fixed in the generator by specially marking parameters and "
32684 "return values which take bytes or other units."
32685 msgstr ""
32686
32687 #. type: =item
32688 #: ../src/guestfs.pod:849
32689 msgid "Ambiguity between devices and paths"
32690 msgstr ""
32691
32692 #. type: textblock
32693 #: ../src/guestfs.pod:851
32694 msgid ""
32695 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
32696 "sdb2>) and a similar pathname.  A file might just happen to be called "
32697 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
32698 msgstr ""
32699
32700 #. type: textblock
32701 #: ../src/guestfs.pod:856
32702 msgid ""
32703 "In the current API we usually resolve this ambiguity by having two separate "
32704 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
32705 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
32706 "detecting if the path supplied begins with C</dev/>."
32707 msgstr ""
32708
32709 #. type: textblock
32710 #: ../src/guestfs.pod:862
32711 msgid ""
32712 "To avoid both the ambiguity and the need to duplicate some calls, we could "
32713 "make paths/devices into structured names.  One way to do this would be to "
32714 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
32715 "aspect of grub.  Another way would be to use a structured type, equivalent "
32716 "to this OCaml type:"
32717 msgstr ""
32718
32719 #. type: verbatim
32720 #: ../src/guestfs.pod:868
32721 #, no-wrap
32722 msgid ""
32723 " type path = Path of string | Device of int | Partition of int * int\n"
32724 "\n"
32725 msgstr ""
32726
32727 #. type: textblock
32728 #: ../src/guestfs.pod:870
32729 msgid "which would allow you to pass arguments like:"
32730 msgstr ""
32731
32732 #. type: verbatim
32733 #: ../src/guestfs.pod:872
32734 #, no-wrap
32735 msgid ""
32736 " Path \"/foo/bar\"\n"
32737 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
32738 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
32739 " Path \"/dev/sdb2\"    (* not a device *)\n"
32740 "\n"
32741 msgstr ""
32742
32743 #. type: textblock
32744 #: ../src/guestfs.pod:877
32745 msgid ""
32746 "As you can see there are still problems to resolve even with this "
32747 "representation.  Also consider how it might work in guestfish."
32748 msgstr ""
32749
32750 #. type: =head2
32751 #: ../src/guestfs.pod:882
32752 msgid "KEYS AND PASSPHRASES"
32753 msgstr ""
32754
32755 #. type: textblock
32756 #: ../src/guestfs.pod:884
32757 msgid ""
32758 "Certain libguestfs calls take a parameter that contains sensitive key "
32759 "material, passed in as a C string."
32760 msgstr ""
32761
32762 #. type: textblock
32763 #: ../src/guestfs.pod:887
32764 msgid ""
32765 "In the future we would hope to change the libguestfs implementation so that "
32766 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
32767 "swap.  However this is I<not> done at the moment, because of the complexity "
32768 "of such an implementation."
32769 msgstr ""
32770
32771 #. type: textblock
32772 #: ../src/guestfs.pod:892
32773 msgid ""
32774 "Therefore you should be aware that any key parameter you pass to libguestfs "
32775 "might end up being written out to the swap partition.  If this is a concern, "
32776 "scrub the swap partition or don't use libguestfs on encrypted devices."
32777 msgstr ""
32778
32779 #. type: =head2
32780 #: ../src/guestfs.pod:897
32781 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
32782 msgstr ""
32783
32784 #. type: textblock
32785 #: ../src/guestfs.pod:899
32786 msgid ""
32787 "All high-level libguestfs actions are synchronous.  If you want to use "
32788 "libguestfs asynchronously then you must create a thread."
32789 msgstr ""
32790
32791 #. type: textblock
32792 #: ../src/guestfs.pod:902
32793 msgid ""
32794 "Only use the handle from a single thread.  Either use the handle exclusively "
32795 "from one thread, or provide your own mutex so that two threads cannot issue "
32796 "calls on the same handle at the same time."
32797 msgstr ""
32798
32799 #. type: textblock
32800 #: ../src/guestfs.pod:906
32801 msgid ""
32802 "See the graphical program guestfs-browser for one possible architecture for "
32803 "multithreaded programs using libvirt and libguestfs."
32804 msgstr ""
32805
32806 #. type: =head2
32807 #: ../src/guestfs.pod:909
32808 msgid "PATH"
32809 msgstr ""
32810
32811 #. type: textblock
32812 #: ../src/guestfs.pod:911
32813 msgid ""
32814 "Libguestfs needs a supermin appliance, which it finds by looking along an "
32815 "internal path."
32816 msgstr ""
32817
32818 #. type: textblock
32819 #: ../src/guestfs.pod:914
32820 msgid ""
32821 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
32822 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
32823 msgstr ""
32824
32825 #. type: textblock
32826 #: ../src/guestfs.pod:917
32827 msgid ""
32828 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
32829 "to change the directories that libguestfs will search in.  The value is a "
32830 "colon-separated list of paths.  The current directory is I<not> searched "
32831 "unless the path contains an empty element or C<.>.  For example "
32832 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
32833 "then C</usr/lib/guestfs>."
32834 msgstr ""
32835
32836 #. type: =head2
32837 #: ../src/guestfs.pod:924
32838 msgid "QEMU WRAPPERS"
32839 msgstr ""
32840
32841 #. type: textblock
32842 #: ../src/guestfs.pod:926
32843 msgid ""
32844 "If you want to compile your own qemu, run qemu from a non-standard location, "
32845 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
32846 "around qemu."
32847 msgstr ""
32848
32849 #. type: textblock
32850 #: ../src/guestfs.pod:930
32851 msgid ""
32852 "There is one important rule to remember: you I<must C<exec qemu>> as the "
32853 "last command in the shell script (so that qemu replaces the shell and "
32854 "becomes the direct child of the libguestfs-using program).  If you don't do "
32855 "this, then the qemu process won't be cleaned up correctly."
32856 msgstr ""
32857
32858 #. type: textblock
32859 #: ../src/guestfs.pod:935
32860 msgid ""
32861 "Here is an example of a wrapper, where I have built my own copy of qemu from "
32862 "source:"
32863 msgstr ""
32864
32865 #. type: verbatim
32866 #: ../src/guestfs.pod:938
32867 #, no-wrap
32868 msgid ""
32869 " #!/bin/sh -\n"
32870 " qemudir=/home/rjones/d/qemu\n"
32871 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
32872 "\n"
32873 msgstr ""
32874
32875 #. type: textblock
32876 #: ../src/guestfs.pod:942
32877 msgid ""
32878 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
32879 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
32880 "example:"
32881 msgstr ""
32882
32883 #. type: verbatim
32884 #: ../src/guestfs.pod:946
32885 #, no-wrap
32886 msgid ""
32887 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
32888 "\n"
32889 msgstr ""
32890
32891 #. type: textblock
32892 #: ../src/guestfs.pod:948
32893 msgid ""
32894 "Note that libguestfs also calls qemu with the -help and -version options in "
32895 "order to determine features."
32896 msgstr ""
32897
32898 #. type: textblock
32899 #: ../src/guestfs.pod:951
32900 msgid ""
32901 "Wrappers can also be used to edit the options passed to qemu.  In the "
32902 "following example, the C<-machine ...> option (C<-machine> and the following "
32903 "argument) are removed from the command line and replaced with C<-machine pc,"
32904 "accel=tcg>.  The while loop iterates over the options until it finds the "
32905 "right one to remove, putting the remaining options into the C<args> array."
32906 msgstr ""
32907
32908 #. type: verbatim
32909 #: ../src/guestfs.pod:960
32910 #, no-wrap
32911 msgid ""
32912 " i=0\n"
32913 " while [ $# -gt 0 ]; do\n"
32914 "     case \"$1\" in\n"
32915 "     -machine)\n"
32916 "         shift 2;;\n"
32917 "     *)\n"
32918 "         args[i]=\"$1\"\n"
32919 "         (( i++ ))\n"
32920 "         shift ;;\n"
32921 "     esac\n"
32922 " done\n"
32923 " \n"
32924 msgstr ""
32925
32926 #. type: verbatim
32927 #: ../src/guestfs.pod:972
32928 #, no-wrap
32929 msgid ""
32930 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
32931 "\n"
32932 msgstr ""
32933
32934 #. type: =head2
32935 #: ../src/guestfs.pod:974
32936 msgid "ATTACHING TO RUNNING DAEMONS"
32937 msgstr ""
32938
32939 #. type: textblock
32940 #: ../src/guestfs.pod:976
32941 msgid ""
32942 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
32943 "babies.  Use with caution."
32944 msgstr ""
32945
32946 #. type: textblock
32947 #: ../src/guestfs.pod:979
32948 msgid ""
32949 "I<Note (2):> This section explains how to attach to a running daemon from a "
32950 "low level perspective.  For most users, simply using virt tools such as "
32951 "L<guestfish(1)> with the I<--live> option will \"just work\"."
32952 msgstr ""
32953
32954 #. type: =head3
32955 #: ../src/guestfs.pod:983
32956 msgid "Using guestfs_set_attach_method"
32957 msgstr ""
32958
32959 #. type: textblock
32960 #: ../src/guestfs.pod:985
32961 msgid ""
32962 "By calling L</guestfs_set_attach_method> you can change how the library "
32963 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
32964 "ARCHITECTURE> for some background)."
32965 msgstr ""
32966
32967 #. type: textblock
32968 #: ../src/guestfs.pod:989
32969 msgid ""
32970 "The normal attach method is C<appliance>, where a small appliance is created "
32971 "containing the daemon, and then the library connects to this."
32972 msgstr ""
32973
32974 #. type: textblock
32975 #: ../src/guestfs.pod:992
32976 msgid ""
32977 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
32978 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
32979 "daemon over the Unix domain socket."
32980 msgstr ""
32981
32982 #. type: textblock
32983 #: ../src/guestfs.pod:996
32984 msgid ""
32985 "The normal use for this is to connect to a running virtual machine that "
32986 "contains a C<guestfsd> daemon, and send commands so you can read and write "
32987 "files inside the live virtual machine."
32988 msgstr ""
32989
32990 #. type: =head3
32991 #: ../src/guestfs.pod:1000
32992 msgid "Using guestfs_add_domain with live flag"
32993 msgstr ""
32994
32995 #. type: textblock
32996 #: ../src/guestfs.pod:1002
32997 msgid ""
32998 "L</guestfs_add_domain> provides some help for getting the correct attach "
32999 "method.  If you pass the C<live> option to this function, then (if the "
33000 "virtual machine is running) it will examine the libvirt XML looking for a "
33001 "virtio-serial channel to connect to:"
33002 msgstr ""
33003
33004 #. type: verbatim
33005 #: ../src/guestfs.pod:1008
33006 #, no-wrap
33007 msgid ""
33008 " <domain>\n"
33009 "   ...\n"
33010 "   <devices>\n"
33011 "     ...\n"
33012 "     <channel type='unix'>\n"
33013 "       <source mode='bind' path='/path/to/socket'/>\n"
33014 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
33015 "     </channel>\n"
33016 "     ...\n"
33017 "   </devices>\n"
33018 " </domain>\n"
33019 "\n"
33020 msgstr ""
33021
33022 #. type: textblock
33023 #: ../src/guestfs.pod:1020
33024 msgid ""
33025 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
33026 "method to C<unix:/path/to/socket>."
33027 msgstr ""
33028
33029 #. type: textblock
33030 #: ../src/guestfs.pod:1023
33031 msgid ""
33032 "Some of the libguestfs tools (including guestfish) support a I<--live> "
33033 "option which is passed through to L</guestfs_add_domain> thus allowing you "
33034 "to attach to and modify live virtual machines."
33035 msgstr ""
33036
33037 #. type: textblock
33038 #: ../src/guestfs.pod:1027
33039 msgid ""
33040 "The virtual machine needs to have been set up beforehand so that it has the "
33041 "virtio-serial channel and so that guestfsd is running inside it."
33042 msgstr ""
33043
33044 #. type: =head2
33045 #: ../src/guestfs.pod:1031
33046 msgid "ABI GUARANTEE"
33047 msgstr ""
33048
33049 #. type: textblock
33050 #: ../src/guestfs.pod:1033
33051 msgid ""
33052 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
33053 "actions as outlined in this section.  Although we will deprecate some "
33054 "actions, for example if they get replaced by newer calls, we will keep the "
33055 "old actions forever.  This allows you the developer to program in confidence "
33056 "against the libguestfs API."
33057 msgstr ""
33058
33059 #. type: =head2
33060 #: ../src/guestfs.pod:1039
33061 msgid "BLOCK DEVICE NAMING"
33062 msgstr ""
33063
33064 #. type: textblock
33065 #: ../src/guestfs.pod:1041
33066 msgid ""
33067 "In the kernel there is now quite a profusion of schemata for naming block "
33068 "devices (in this context, by I<block device> I mean a physical or virtual "
33069 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
33070 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
33071 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
33072 "for the old IDE driver (particularly for SATA devices) those devices also "
33073 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
33074 "paravirtualized drivers.  This has created several different naming systems, "
33075 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
33076 msgstr ""
33077
33078 #. type: textblock
33079 #: ../src/guestfs.pod:1053
33080 msgid ""
33081 "As discussed above, libguestfs uses a qemu appliance running an embedded "
33082 "Linux kernel to access block devices.  We can run a variety of appliances "
33083 "based on a variety of Linux kernels."
33084 msgstr ""
33085
33086 #. type: textblock
33087 #: ../src/guestfs.pod:1057
33088 msgid ""
33089 "This causes a problem for libguestfs because many API calls use device or "
33090 "partition names.  Working scripts and the recipe (example) scripts that we "
33091 "make available over the internet could fail if the naming scheme changes."
33092 msgstr ""
33093
33094 #. type: textblock
33095 #: ../src/guestfs.pod:1062
33096 msgid ""
33097 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
33098 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
33099 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
33100 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
33101 msgstr ""
33102
33103 #. type: textblock
33104 #: ../src/guestfs.pod:1068
33105 msgid ""
33106 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
33107 "L</guestfs_list_partitions> and similar calls return the true names of the "
33108 "devices and partitions as known to the appliance."
33109 msgstr ""
33110
33111 #. type: =head3
33112 #: ../src/guestfs.pod:1073
33113 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
33114 msgstr ""
33115
33116 #. type: textblock
33117 #: ../src/guestfs.pod:1075
33118 msgid ""
33119 "Usually this translation is transparent.  However in some (very rare)  cases "
33120 "you may need to know the exact algorithm.  Such cases include where you use "
33121 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
33122 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
33123 msgstr ""
33124
33125 #. type: textblock
33126 #: ../src/guestfs.pod:1081
33127 msgid ""
33128 "The algorithm is applied only to I<parameters> which are known to be either "
33129 "device or partition names.  Return values from functions such as L</"
33130 "guestfs_list_devices> are never changed."
33131 msgstr ""
33132
33133 #. type: textblock
33134 #: ../src/guestfs.pod:1089
33135 msgid "Is the string a parameter which is a device or partition name?"
33136 msgstr ""
33137
33138 #. type: textblock
33139 #: ../src/guestfs.pod:1093
33140 msgid "Does the string begin with C</dev/sd>?"
33141 msgstr ""
33142
33143 #. type: textblock
33144 #: ../src/guestfs.pod:1097
33145 msgid ""
33146 "Does the named device exist? If so, we use that device.  However if I<not> "
33147 "then we continue with this algorithm."
33148 msgstr ""
33149
33150 #. type: textblock
33151 #: ../src/guestfs.pod:1102
33152 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
33153 msgstr ""
33154
33155 #. type: textblock
33156 #: ../src/guestfs.pod:1104
33157 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
33158 msgstr ""
33159
33160 #. type: textblock
33161 #: ../src/guestfs.pod:1106
33162 msgid "If that named device exists, use it.  If not, continue."
33163 msgstr ""
33164
33165 #. type: textblock
33166 #: ../src/guestfs.pod:1110
33167 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
33168 msgstr ""
33169
33170 #. type: textblock
33171 #: ../src/guestfs.pod:1112
33172 msgid "If that named device exists, use it.  If not, return an error."
33173 msgstr ""
33174
33175 #. type: =head3
33176 #: ../src/guestfs.pod:1116
33177 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
33178 msgstr ""
33179
33180 #. type: textblock
33181 #: ../src/guestfs.pod:1118
33182 msgid ""
33183 "Although the standard naming scheme and automatic translation is useful for "
33184 "simple programs and guestfish scripts, for larger programs it is best not to "
33185 "rely on this mechanism."
33186 msgstr ""
33187
33188 #. type: textblock
33189 #: ../src/guestfs.pod:1122
33190 msgid ""
33191 "Where possible for maximum future portability programs using libguestfs "
33192 "should use these future-proof techniques:"
33193 msgstr ""
33194
33195 #. type: textblock
33196 #: ../src/guestfs.pod:1129
33197 msgid ""
33198 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
33199 "device names, and then use those names directly."
33200 msgstr ""
33201
33202 #. type: textblock
33203 #: ../src/guestfs.pod:1132
33204 msgid ""
33205 "Since those device names exist by definition, they will never be translated."
33206 msgstr ""
33207
33208 #. type: textblock
33209 #: ../src/guestfs.pod:1137
33210 msgid ""
33211 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
33212 "filesystem labels."
33213 msgstr ""
33214
33215 #. type: =head1
33216 #: ../src/guestfs.pod:1142
33217 msgid "SECURITY"
33218 msgstr ""
33219
33220 #. type: textblock
33221 #: ../src/guestfs.pod:1144
33222 msgid ""
33223 "This section discusses security implications of using libguestfs, "
33224 "particularly with untrusted or malicious guests or disk images."
33225 msgstr ""
33226
33227 #. type: =head2
33228 #: ../src/guestfs.pod:1147
33229 msgid "GENERAL SECURITY CONSIDERATIONS"
33230 msgstr ""
33231
33232 #. type: textblock
33233 #: ../src/guestfs.pod:1149
33234 msgid ""
33235 "Be careful with any files or data that you download from a guest (by "
33236 "\"download\" we mean not just the L</guestfs_download> command but any "
33237 "command that reads files, filenames, directories or anything else from a "
33238 "disk image).  An attacker could manipulate the data to fool your program "
33239 "into doing the wrong thing.  Consider cases such as:"
33240 msgstr ""
33241
33242 #. type: textblock
33243 #: ../src/guestfs.pod:1159
33244 msgid "the data (file etc) not being present"
33245 msgstr ""
33246
33247 #. type: textblock
33248 #: ../src/guestfs.pod:1163
33249 msgid "being present but empty"
33250 msgstr ""
33251
33252 #. type: textblock
33253 #: ../src/guestfs.pod:1167
33254 msgid "being much larger than normal"
33255 msgstr ""
33256
33257 #. type: textblock
33258 #: ../src/guestfs.pod:1171
33259 msgid "containing arbitrary 8 bit data"
33260 msgstr ""
33261
33262 #. type: textblock
33263 #: ../src/guestfs.pod:1175
33264 msgid "being in an unexpected character encoding"
33265 msgstr ""
33266
33267 #. type: textblock
33268 #: ../src/guestfs.pod:1179
33269 msgid "containing homoglyphs."
33270 msgstr ""
33271
33272 #. type: =head2
33273 #: ../src/guestfs.pod:1183
33274 msgid "SECURITY OF MOUNTING FILESYSTEMS"
33275 msgstr ""
33276
33277 #. type: textblock
33278 #: ../src/guestfs.pod:1185
33279 msgid ""
33280 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
33281 "(VFS) module can sometimes be escalated into exploits by deliberately "
33282 "creating a malicious, malformed filesystem.  These exploits are very severe "
33283 "for two reasons.  Firstly there are very many filesystem drivers in the "
33284 "kernel, and many of them are infrequently used and not much developer "
33285 "attention has been paid to the code.  Linux userspace helps potential "
33286 "crackers by detecting the filesystem type and automatically choosing the "
33287 "right VFS driver, even if that filesystem type is obscure or unexpected for "
33288 "the administrator.  Secondly, a kernel-level exploit is like a local root "
33289 "exploit (worse in some ways), giving immediate and total access to the "
33290 "system right down to the hardware level."
33291 msgstr ""
33292
33293 #. type: textblock
33294 #: ../src/guestfs.pod:1198
33295 msgid ""
33296 "That explains why you should never mount a filesystem from an untrusted "
33297 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
33298 "inside a qemu virtual machine, usually running as a non-root user.  The "
33299 "attacker would need to write a filesystem which first exploited the kernel, "
33300 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
33301 "the libguestfs protocol, and finally to be as serious as the host kernel "
33302 "exploit it would need to escalate its privileges to root.  This multi-step "
33303 "escalation, performed by a static piece of data, is thought to be extremely "
33304 "hard to do, although we never say 'never' about security issues."
33305 msgstr ""
33306
33307 #. type: textblock
33308 #: ../src/guestfs.pod:1209
33309 msgid ""
33310 "In any case callers can reduce the attack surface by forcing the filesystem "
33311 "type when mounting (use L</guestfs_mount_vfs>)."
33312 msgstr ""
33313
33314 #. type: =head2
33315 #: ../src/guestfs.pod:1212
33316 msgid "PROTOCOL SECURITY"
33317 msgstr ""
33318
33319 #. type: textblock
33320 #: ../src/guestfs.pod:1214
33321 msgid ""
33322 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
33323 "defined upper message size.  However a program that uses libguestfs must "
33324 "also take care - for example you can write a program that downloads a binary "
33325 "from a disk image and executes it locally, and no amount of protocol "
33326 "security will save you from the consequences."
33327 msgstr ""
33328
33329 #. type: =head2
33330 #: ../src/guestfs.pod:1220
33331 msgid "INSPECTION SECURITY"
33332 msgstr ""
33333
33334 #. type: textblock
33335 #: ../src/guestfs.pod:1222
33336 msgid ""
33337 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
33338 "directly from the guest, and these could contain any 8 bit data.  Callers "
33339 "should be careful to escape these before printing them to a structured file "
33340 "(for example, use HTML escaping if creating a web page)."
33341 msgstr ""
33342
33343 #. type: textblock
33344 #: ../src/guestfs.pod:1228
33345 msgid ""
33346 "Guest configuration may be altered in unusual ways by the administrator of "
33347 "the virtual machine, and may not reflect reality (particularly for untrusted "
33348 "or actively malicious guests).  For example we parse the hostname from "
33349 "configuration files like C</etc/sysconfig/network> that we find in the "
33350 "guest, but the guest administrator can easily manipulate these files to "
33351 "provide the wrong hostname."
33352 msgstr ""
33353
33354 #. type: textblock
33355 #: ../src/guestfs.pod:1236
33356 msgid ""
33357 "The inspection API parses guest configuration using two external libraries: "
33358 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
33359 "designed to be robust in the face of malicious data, although denial of "
33360 "service attacks are still possible, for example with oversized configuration "
33361 "files."
33362 msgstr ""
33363
33364 #. type: =head2
33365 #: ../src/guestfs.pod:1242
33366 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
33367 msgstr ""
33368
33369 #. type: textblock
33370 #: ../src/guestfs.pod:1244
33371 msgid ""
33372 "Be very cautious about running commands from the guest.  By running a "
33373 "command in the guest, you are giving CPU time to a binary that you do not "
33374 "control, under the same user account as the library, albeit wrapped in qemu "
33375 "virtualization.  More information and alternatives can be found in the "
33376 "section L</RUNNING COMMANDS>."
33377 msgstr ""
33378
33379 #. type: =head2
33380 #: ../src/guestfs.pod:1250
33381 msgid "CVE-2010-3851"
33382 msgstr ""
33383
33384 #. type: textblock
33385 #: ../src/guestfs.pod:1252
33386 msgid "https://bugzilla.redhat.com/642934"
33387 msgstr ""
33388
33389 #. type: textblock
33390 #: ../src/guestfs.pod:1254
33391 msgid ""
33392 "This security bug concerns the automatic disk format detection that qemu "
33393 "does on disk images."
33394 msgstr ""
33395
33396 #. type: textblock
33397 #: ../src/guestfs.pod:1257
33398 msgid ""
33399 "A raw disk image is just the raw bytes, there is no header.  Other disk "
33400 "images like qcow2 contain a special header.  Qemu deals with this by looking "
33401 "for one of the known headers, and if none is found then assuming the disk "
33402 "image must be raw."
33403 msgstr ""
33404
33405 #. type: textblock
33406 #: ../src/guestfs.pod:1262
33407 msgid ""
33408 "This allows a guest which has been given a raw disk image to write some "
33409 "other header.  At next boot (or when the disk image is accessed by "
33410 "libguestfs) qemu would do autodetection and think the disk image format was, "
33411 "say, qcow2 based on the header written by the guest."
33412 msgstr ""
33413
33414 #. type: textblock
33415 #: ../src/guestfs.pod:1267
33416 msgid ""
33417 "This in itself would not be a problem, but qcow2 offers many features, one "
33418 "of which is to allow a disk image to refer to another image (called the "
33419 "\"backing disk\").  It does this by placing the path to the backing disk "
33420 "into the qcow2 header.  This path is not validated and could point to any "
33421 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
33422 "\"holes\" in the qcow2 disk image, which of course is completely under the "
33423 "control of the attacker."
33424 msgstr ""
33425
33426 #. type: textblock
33427 #: ../src/guestfs.pod:1275
33428 msgid ""
33429 "In libguestfs this is rather hard to exploit except under two circumstances:"
33430 msgstr ""
33431
33432 #. type: textblock
33433 #: ../src/guestfs.pod:1282
33434 msgid "You have enabled the network or have opened the disk in write mode."
33435 msgstr ""
33436
33437 #. type: textblock
33438 #: ../src/guestfs.pod:1286
33439 msgid ""
33440 "You are also running untrusted code from the guest (see L</RUNNING "
33441 "COMMANDS>)."
33442 msgstr ""
33443
33444 #. type: textblock
33445 #: ../src/guestfs.pod:1291
33446 msgid ""
33447 "The way to avoid this is to specify the expected disk format when adding "
33448 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
33449 "should always do this if the disk is raw format, and it's a good idea for "
33450 "other cases too."
33451 msgstr ""
33452
33453 #. type: textblock
33454 #: ../src/guestfs.pod:1296
33455 msgid ""
33456 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
33457 "format is fetched from libvirt and passed through."
33458 msgstr ""
33459
33460 #. type: textblock
33461 #: ../src/guestfs.pod:1299
33462 msgid ""
33463 "For libguestfs tools, use the I<--format> command line parameter as "
33464 "appropriate."
33465 msgstr ""
33466
33467 #. type: =head1
33468 #: ../src/guestfs.pod:1302
33469 msgid "CONNECTION MANAGEMENT"
33470 msgstr ""
33471
33472 #. type: =head2
33473 #: ../src/guestfs.pod:1304
33474 msgid "guestfs_h *"
33475 msgstr ""
33476
33477 #. type: textblock
33478 #: ../src/guestfs.pod:1306
33479 msgid ""
33480 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
33481 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
33482 "handle and release all resources used."
33483 msgstr ""
33484
33485 #. type: textblock
33486 #: ../src/guestfs.pod:1310
33487 msgid ""
33488 "For information on using multiple handles and threads, see the section L</"
33489 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
33490 msgstr ""
33491
33492 #. type: =head2
33493 #: ../src/guestfs.pod:1313
33494 msgid "guestfs_create"
33495 msgstr ""
33496
33497 #. type: verbatim
33498 #: ../src/guestfs.pod:1315
33499 #, no-wrap
33500 msgid ""
33501 " guestfs_h *guestfs_create (void);\n"
33502 "\n"
33503 msgstr ""
33504
33505 #. type: textblock
33506 #: ../src/guestfs.pod:1317
33507 msgid "Create a connection handle."
33508 msgstr ""
33509
33510 #. type: textblock
33511 #: ../src/guestfs.pod:1319
33512 msgid ""
33513 "On success this returns a non-NULL pointer to a handle.  On error it returns "
33514 "NULL."
33515 msgstr ""
33516
33517 #. type: textblock
33518 #: ../src/guestfs.pod:1322
33519 msgid ""
33520 "You have to \"configure\" the handle after creating it.  This includes "
33521 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
33522 "handle at least once."
33523 msgstr ""
33524
33525 #. type: textblock
33526 #: ../src/guestfs.pod:1326
33527 msgid "After configuring the handle, you have to call L</guestfs_launch>."
33528 msgstr ""
33529
33530 #. type: textblock
33531 #: ../src/guestfs.pod:1328
33532 msgid ""
33533 "You may also want to configure error handling for the handle.  See the L</"
33534 "ERROR HANDLING> section below."
33535 msgstr ""
33536
33537 #. type: =head2
33538 #: ../src/guestfs.pod:1331
33539 msgid "guestfs_close"
33540 msgstr ""
33541
33542 #. type: verbatim
33543 #: ../src/guestfs.pod:1333
33544 #, no-wrap
33545 msgid ""
33546 " void guestfs_close (guestfs_h *g);\n"
33547 "\n"
33548 msgstr ""
33549
33550 #. type: textblock
33551 #: ../src/guestfs.pod:1335
33552 msgid "This closes the connection handle and frees up all resources used."
33553 msgstr ""
33554
33555 #. type: textblock
33556 #: ../src/guestfs.pod:1337
33557 msgid ""
33558 "If autosync was set on the handle and the handle was launched, then this "
33559 "implicitly calls various functions to unmount filesystems and sync the "
33560 "disk.  See L</guestfs_set_autosync> for more details."
33561 msgstr ""
33562
33563 #. type: textblock
33564 #: ../src/guestfs.pod:1341
33565 msgid "If a close callback was set on the handle, then it is called."
33566 msgstr ""
33567
33568 #. type: =head1
33569 #: ../src/guestfs.pod:1343
33570 msgid "ERROR HANDLING"
33571 msgstr ""
33572
33573 #. type: textblock
33574 #: ../src/guestfs.pod:1345
33575 msgid ""
33576 "API functions can return errors.  For example, almost all functions that "
33577 "return C<int> will return C<-1> to indicate an error."
33578 msgstr ""
33579
33580 #. type: textblock
33581 #: ../src/guestfs.pod:1348
33582 msgid ""
33583 "Additional information is available for errors: an error message string and "
33584 "optionally an error number (errno) if the thing that failed was a system "
33585 "call."
33586 msgstr ""
33587
33588 #. type: textblock
33589 #: ../src/guestfs.pod:1352
33590 msgid ""
33591 "You can get at the additional information about the last error on the handle "
33592 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
33593 "up an error handler with L</guestfs_set_error_handler>."
33594 msgstr ""
33595
33596 #. type: textblock
33597 #: ../src/guestfs.pod:1357
33598 msgid ""
33599 "When the handle is created, a default error handler is installed which "
33600 "prints the error message string to C<stderr>.  For small short-running "
33601 "command line programs it is sufficient to do:"
33602 msgstr ""
33603
33604 #. type: verbatim
33605 #: ../src/guestfs.pod:1361
33606 #, no-wrap
33607 msgid ""
33608 " if (guestfs_launch (g) == -1)\n"
33609 "   exit (EXIT_FAILURE);\n"
33610 "\n"
33611 msgstr ""
33612
33613 #. type: textblock
33614 #: ../src/guestfs.pod:1364
33615 msgid ""
33616 "since the default error handler will ensure that an error message has been "
33617 "printed to C<stderr> before the program exits."
33618 msgstr ""
33619
33620 #. type: textblock
33621 #: ../src/guestfs.pod:1367
33622 msgid ""
33623 "For other programs the caller will almost certainly want to install an "
33624 "alternate error handler or do error handling in-line like this:"
33625 msgstr ""
33626
33627 #. type: verbatim
33628 #: ../src/guestfs.pod:1370
33629 #, no-wrap
33630 msgid ""
33631 " g = guestfs_create ();\n"
33632 " \n"
33633 msgstr ""
33634
33635 #. type: verbatim
33636 #: ../src/guestfs.pod:1372
33637 #, no-wrap
33638 msgid ""
33639 " /* This disables the default behaviour of printing errors\n"
33640 "    on stderr. */\n"
33641 " guestfs_set_error_handler (g, NULL, NULL);\n"
33642 " \n"
33643 msgstr ""
33644
33645 #. type: verbatim
33646 #: ../src/guestfs.pod:1376
33647 #, no-wrap
33648 msgid ""
33649 " if (guestfs_launch (g) == -1) {\n"
33650 "   /* Examine the error message and print it etc. */\n"
33651 "   char *msg = guestfs_last_error (g);\n"
33652 "   int errnum = guestfs_last_errno (g);\n"
33653 "   fprintf (stderr, \"%s\\n\", msg);\n"
33654 "   /* ... */\n"
33655 "  }\n"
33656 "\n"
33657 msgstr ""
33658
33659 #. type: textblock
33660 #: ../src/guestfs.pod:1384
33661 msgid ""
33662 "Out of memory errors are handled differently.  The default action is to call "
33663 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
33664 "guestfs_set_out_of_memory_handler>."
33665 msgstr ""
33666
33667 #. type: textblock
33668 #: ../src/guestfs.pod:1388
33669 msgid ""
33670 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
33671 "because there is no handle if this happens there is no way to get additional "
33672 "error information.  However L</guestfs_create> is supposed to be a "
33673 "lightweight operation which can only fail because of insufficient memory (it "
33674 "returns NULL in this case)."
33675 msgstr ""
33676
33677 #. type: =head2
33678 #: ../src/guestfs.pod:1394
33679 msgid "guestfs_last_error"
33680 msgstr ""
33681
33682 #. type: verbatim
33683 #: ../src/guestfs.pod:1396
33684 #, no-wrap
33685 msgid ""
33686 " const char *guestfs_last_error (guestfs_h *g);\n"
33687 "\n"
33688 msgstr ""
33689
33690 #. type: textblock
33691 #: ../src/guestfs.pod:1398
33692 msgid ""
33693 "This returns the last error message that happened on C<g>.  If there has not "
33694 "been an error since the handle was created, then this returns C<NULL>."
33695 msgstr ""
33696
33697 #. type: textblock
33698 #: ../src/guestfs.pod:1402
33699 msgid ""
33700 "The lifetime of the returned string is until the next error occurs, or L</"
33701 "guestfs_close> is called."
33702 msgstr ""
33703
33704 #. type: =head2
33705 #: ../src/guestfs.pod:1405
33706 msgid "guestfs_last_errno"
33707 msgstr ""
33708
33709 #. type: verbatim
33710 #: ../src/guestfs.pod:1407
33711 #, no-wrap
33712 msgid ""
33713 " int guestfs_last_errno (guestfs_h *g);\n"
33714 "\n"
33715 msgstr ""
33716
33717 #. type: textblock
33718 #: ../src/guestfs.pod:1409
33719 msgid "This returns the last error number (errno) that happened on C<g>."
33720 msgstr ""
33721
33722 #. type: textblock
33723 #: ../src/guestfs.pod:1411
33724 msgid "If successful, an errno integer not equal to zero is returned."
33725 msgstr ""
33726
33727 #. type: textblock
33728 #: ../src/guestfs.pod:1413
33729 msgid ""
33730 "If no error, this returns 0.  This call can return 0 in three situations:"
33731 msgstr ""
33732
33733 #. type: textblock
33734 #: ../src/guestfs.pod:1420
33735 msgid "There has not been any error on the handle."
33736 msgstr ""
33737
33738 #. type: textblock
33739 #: ../src/guestfs.pod:1424
33740 msgid ""
33741 "There has been an error but the errno was meaningless.  This corresponds to "
33742 "the case where the error did not come from a failed system call, but for "
33743 "some other reason."
33744 msgstr ""
33745
33746 #. type: textblock
33747 #: ../src/guestfs.pod:1430
33748 msgid ""
33749 "There was an error from a failed system call, but for some reason the errno "
33750 "was not captured and returned.  This usually indicates a bug in libguestfs."
33751 msgstr ""
33752
33753 #. type: textblock
33754 #: ../src/guestfs.pod:1436
33755 msgid ""
33756 "Libguestfs tries to convert the errno from inside the applicance into a "
33757 "corresponding errno for the caller (not entirely trivial: the appliance "
33758 "might be running a completely different operating system from the library "
33759 "and error numbers are not standardized across Un*xen).  If this could not be "
33760 "done, then the error is translated to C<EINVAL>.  In practice this should "
33761 "only happen in very rare circumstances."
33762 msgstr ""
33763
33764 #. type: =head2
33765 #: ../src/guestfs.pod:1444
33766 msgid "guestfs_set_error_handler"
33767 msgstr ""
33768
33769 #. type: verbatim
33770 #: ../src/guestfs.pod:1446
33771 #, no-wrap
33772 msgid ""
33773 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
33774 "                                           void *opaque,\n"
33775 "                                           const char *msg);\n"
33776 " void guestfs_set_error_handler (guestfs_h *g,\n"
33777 "                                 guestfs_error_handler_cb cb,\n"
33778 "                                 void *opaque);\n"
33779 "\n"
33780 msgstr ""
33781
33782 #. type: textblock
33783 #: ../src/guestfs.pod:1453
33784 msgid ""
33785 "The callback C<cb> will be called if there is an error.  The parameters "
33786 "passed to the callback are an opaque data pointer and the error message "
33787 "string."
33788 msgstr ""
33789
33790 #. type: textblock
33791 #: ../src/guestfs.pod:1457
33792 msgid ""
33793 "C<errno> is not passed to the callback.  To get that the callback must call "
33794 "L</guestfs_last_errno>."
33795 msgstr ""
33796
33797 #. type: textblock
33798 #: ../src/guestfs.pod:1460
33799 msgid ""
33800 "Note that the message string C<msg> is freed as soon as the callback "
33801 "function returns, so if you want to stash it somewhere you must make your "
33802 "own copy."
33803 msgstr ""
33804
33805 #. type: textblock
33806 #: ../src/guestfs.pod:1464
33807 msgid "The default handler prints messages on C<stderr>."
33808 msgstr ""
33809
33810 #. type: textblock
33811 #: ../src/guestfs.pod:1466
33812 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
33813 msgstr ""
33814
33815 #. type: =head2
33816 #: ../src/guestfs.pod:1468
33817 msgid "guestfs_get_error_handler"
33818 msgstr ""
33819
33820 #. type: verbatim
33821 #: ../src/guestfs.pod:1470
33822 #, no-wrap
33823 msgid ""
33824 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
33825 "                                                     void **opaque_rtn);\n"
33826 "\n"
33827 msgstr ""
33828
33829 #. type: textblock
33830 #: ../src/guestfs.pod:1473
33831 msgid "Returns the current error handler callback."
33832 msgstr ""
33833
33834 #. type: =head2
33835 #: ../src/guestfs.pod:1475
33836 msgid "guestfs_set_out_of_memory_handler"
33837 msgstr ""
33838
33839 #. type: verbatim
33840 #: ../src/guestfs.pod:1477
33841 #, no-wrap
33842 msgid ""
33843 " typedef void (*guestfs_abort_cb) (void);\n"
33844 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
33845 "                                         guestfs_abort_cb);\n"
33846 "\n"
33847 msgstr ""
33848
33849 #. type: textblock
33850 #: ../src/guestfs.pod:1481
33851 msgid ""
33852 "The callback C<cb> will be called if there is an out of memory situation.  "
33853 "I<Note this callback must not return>."
33854 msgstr ""
33855
33856 #. type: textblock
33857 #: ../src/guestfs.pod:1484
33858 msgid "The default is to call L<abort(3)>."
33859 msgstr ""
33860
33861 #. type: textblock
33862 #: ../src/guestfs.pod:1486
33863 msgid ""
33864 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
33865 msgstr ""
33866
33867 #. type: =head2
33868 #: ../src/guestfs.pod:1489
33869 msgid "guestfs_get_out_of_memory_handler"
33870 msgstr ""
33871
33872 #. type: verbatim
33873 #: ../src/guestfs.pod:1491
33874 #, no-wrap
33875 msgid ""
33876 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
33877 "\n"
33878 msgstr ""
33879
33880 #. type: textblock
33881 #: ../src/guestfs.pod:1493
33882 msgid "This returns the current out of memory handler."
33883 msgstr ""
33884
33885 #. type: =head1
33886 #: ../src/guestfs.pod:1495
33887 msgid "API CALLS"
33888 msgstr ""
33889
33890 #. type: =head1
33891 #: ../src/guestfs.pod:1499
33892 msgid "STRUCTURES"
33893 msgstr ""
33894
33895 #. type: textblock
33896 #: ../src/guestfs.pod:1501
33897 msgid "@STRUCTS@"
33898 msgstr ""
33899
33900 #. type: =head1
33901 #: ../src/guestfs.pod:1503
33902 msgid "AVAILABILITY"
33903 msgstr ""
33904
33905 #. type: =head2
33906 #: ../src/guestfs.pod:1505
33907 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
33908 msgstr ""
33909
33910 #. type: textblock
33911 #: ../src/guestfs.pod:1507
33912 msgid ""
33913 "Using L</guestfs_available> you can test availability of the following "
33914 "groups of functions.  This test queries the appliance to see if the "
33915 "appliance you are currently using supports the functionality."
33916 msgstr ""
33917
33918 #. type: textblock
33919 #: ../src/guestfs.pod:1512
33920 msgid "@AVAILABILITY@"
33921 msgstr ""
33922
33923 #. type: =head2
33924 #: ../src/guestfs.pod:1514
33925 msgid "GUESTFISH supported COMMAND"
33926 msgstr ""
33927
33928 #. type: textblock
33929 #: ../src/guestfs.pod:1516
33930 msgid ""
33931 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
33932 "prints out the available groups and whether they are supported by this build "
33933 "of libguestfs.  Note however that you have to do C<run> first."
33934 msgstr ""
33935
33936 #. type: =head2
33937 #: ../src/guestfs.pod:1521
33938 msgid "SINGLE CALLS AT COMPILE TIME"
33939 msgstr ""
33940
33941 #. type: textblock
33942 #: ../src/guestfs.pod:1523
33943 msgid ""
33944 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
33945 "function, such as:"
33946 msgstr ""
33947
33948 #. type: verbatim
33949 #: ../src/guestfs.pod:1526
33950 #, no-wrap
33951 msgid ""
33952 " #define LIBGUESTFS_HAVE_DD 1\n"
33953 "\n"
33954 msgstr ""
33955
33956 #. type: textblock
33957 #: ../src/guestfs.pod:1528
33958 msgid "if L</guestfs_dd> is available."
33959 msgstr ""
33960
33961 #. type: textblock
33962 #: ../src/guestfs.pod:1530
33963 msgid ""
33964 "Before version 1.5.8, if you needed to test whether a single libguestfs "
33965 "function is available at compile time, we recommended using build tools such "
33966 "as autoconf or cmake.  For example in autotools you could use:"
33967 msgstr ""
33968
33969 #. type: verbatim
33970 #: ../src/guestfs.pod:1535
33971 #, no-wrap
33972 msgid ""
33973 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
33974 " AC_CHECK_FUNCS([guestfs_dd])\n"
33975 "\n"
33976 msgstr ""
33977
33978 #. type: textblock
33979 #: ../src/guestfs.pod:1538
33980 msgid ""
33981 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
33982 "in your program."
33983 msgstr ""
33984
33985 #. type: =head2
33986 #: ../src/guestfs.pod:1541
33987 msgid "SINGLE CALLS AT RUN TIME"
33988 msgstr ""
33989
33990 #. type: textblock
33991 #: ../src/guestfs.pod:1543
33992 msgid ""
33993 "Testing at compile time doesn't guarantee that a function really exists in "
33994 "the library.  The reason is that you might be dynamically linked against a "
33995 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
33996 "This situation unfortunately results in a segmentation fault, which is a "
33997 "shortcoming of the C dynamic linking system itself."
33998 msgstr ""
33999
34000 #. type: textblock
34001 #: ../src/guestfs.pod:1550
34002 msgid ""
34003 "You can use L<dlopen(3)> to test if a function is available at run time, as "
34004 "in this example program (note that you still need the compile time check as "
34005 "well):"
34006 msgstr ""
34007
34008 #. type: verbatim
34009 #: ../src/guestfs.pod:1554
34010 #, no-wrap
34011 msgid ""
34012 " #include <stdio.h>\n"
34013 " #include <stdlib.h>\n"
34014 " #include <unistd.h>\n"
34015 " #include <dlfcn.h>\n"
34016 " #include <guestfs.h>\n"
34017 " \n"
34018 msgstr ""
34019
34020 #. type: verbatim
34021 #: ../src/guestfs.pod:1560
34022 #, no-wrap
34023 msgid ""
34024 " main ()\n"
34025 " {\n"
34026 " #ifdef LIBGUESTFS_HAVE_DD\n"
34027 "   void *dl;\n"
34028 "   int has_function;\n"
34029 " \n"
34030 msgstr ""
34031
34032 #. type: verbatim
34033 #: ../src/guestfs.pod:1566
34034 #, no-wrap
34035 msgid ""
34036 "   /* Test if the function guestfs_dd is really available. */\n"
34037 "   dl = dlopen (NULL, RTLD_LAZY);\n"
34038 "   if (!dl) {\n"
34039 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
34040 "     exit (EXIT_FAILURE);\n"
34041 "   }\n"
34042 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
34043 "   dlclose (dl);\n"
34044 " \n"
34045 msgstr ""
34046
34047 #. type: verbatim
34048 #: ../src/guestfs.pod:1575
34049 #, no-wrap
34050 msgid ""
34051 "   if (!has_function)\n"
34052 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
34053 "   else {\n"
34054 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
34055 "     /* Now it's safe to call\n"
34056 "     guestfs_dd (g, \"foo\", \"bar\");\n"
34057 "     */\n"
34058 "   }\n"
34059 " #else\n"
34060 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
34061 " #endif\n"
34062 "  }\n"
34063 "\n"
34064 msgstr ""
34065
34066 #. type: textblock
34067 #: ../src/guestfs.pod:1588
34068 msgid ""
34069 "You may think the above is an awful lot of hassle, and it is.  There are "
34070 "other ways outside of the C linking system to ensure that this kind of "
34071 "incompatibility never arises, such as using package versioning:"
34072 msgstr ""
34073
34074 #. type: verbatim
34075 #: ../src/guestfs.pod:1593
34076 #, no-wrap
34077 msgid ""
34078 " Requires: libguestfs >= 1.0.80\n"
34079 "\n"
34080 msgstr ""
34081
34082 #. type: =head1
34083 #: ../src/guestfs.pod:1595
34084 msgid "CALLS WITH OPTIONAL ARGUMENTS"
34085 msgstr ""
34086
34087 #. type: textblock
34088 #: ../src/guestfs.pod:1597
34089 msgid ""
34090 "A recent feature of the API is the introduction of calls which take optional "
34091 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
34092 "takes variable arguments (ie. C<...>), as in this example:"
34093 msgstr ""
34094
34095 #. type: verbatim
34096 #: ../src/guestfs.pod:1602
34097 #, no-wrap
34098 msgid ""
34099 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
34100 "\n"
34101 msgstr ""
34102
34103 #. type: textblock
34104 #: ../src/guestfs.pod:1604
34105 msgid ""
34106 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
34107 "call with no optional arguments specified:"
34108 msgstr ""
34109
34110 #. type: verbatim
34111 #: ../src/guestfs.pod:1607
34112 #, no-wrap
34113 msgid ""
34114 " guestfs_add_drive_opts (g, filename, -1);\n"
34115 "\n"
34116 msgstr ""
34117
34118 #. type: textblock
34119 #: ../src/guestfs.pod:1609
34120 msgid "With a single optional argument:"
34121 msgstr ""
34122
34123 #. type: verbatim
34124 #: ../src/guestfs.pod:1611
34125 #, no-wrap
34126 msgid ""
34127 " guestfs_add_drive_opts (g, filename,\n"
34128 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
34129 "                         -1);\n"
34130 "\n"
34131 msgstr ""
34132
34133 #. type: textblock
34134 #: ../src/guestfs.pod:1615
34135 msgid "With two:"
34136 msgstr ""
34137
34138 #. type: verbatim
34139 #: ../src/guestfs.pod:1617
34140 #, no-wrap
34141 msgid ""
34142 " guestfs_add_drive_opts (g, filename,\n"
34143 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
34144 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
34145 "                         -1);\n"
34146 "\n"
34147 msgstr ""
34148
34149 #. type: textblock
34150 #: ../src/guestfs.pod:1622
34151 msgid ""
34152 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
34153 "happen!"
34154 msgstr ""
34155
34156 #. type: =head2
34157 #: ../src/guestfs.pod:1625
34158 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
34159 msgstr ""
34160
34161 #. type: textblock
34162 #: ../src/guestfs.pod:1627
34163 msgid ""
34164 "The second variant has the same name with the suffix C<_va>, which works the "
34165 "same way but takes a C<va_list>.  See the C manual for details.  For the "
34166 "example function, this is declared:"
34167 msgstr ""
34168
34169 #. type: verbatim
34170 #: ../src/guestfs.pod:1631
34171 #, no-wrap
34172 msgid ""
34173 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
34174 "                                va_list args);\n"
34175 "\n"
34176 msgstr ""
34177
34178 #. type: =head2
34179 #: ../src/guestfs.pod:1634
34180 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
34181 msgstr ""
34182
34183 #. type: textblock
34184 #: ../src/guestfs.pod:1636
34185 msgid ""
34186 "The third variant is useful where you need to construct these calls.  You "
34187 "pass in a structure where you fill in the optional fields.  The structure "
34188 "has a bitmask as the first element which you must set to indicate which "
34189 "fields you have filled in.  For our example function the structure and call "
34190 "are declared:"
34191 msgstr ""
34192
34193 #. type: verbatim
34194 #: ../src/guestfs.pod:1642
34195 #, no-wrap
34196 msgid ""
34197 " struct guestfs_add_drive_opts_argv {\n"
34198 "   uint64_t bitmask;\n"
34199 "   int readonly;\n"
34200 "   const char *format;\n"
34201 "   /* ... */\n"
34202 " };\n"
34203 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
34204 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
34205 "\n"
34206 msgstr ""
34207
34208 #. type: textblock
34209 #: ../src/guestfs.pod:1651
34210 msgid "You could call it like this:"
34211 msgstr ""
34212
34213 #. type: verbatim
34214 #: ../src/guestfs.pod:1653
34215 #, no-wrap
34216 msgid ""
34217 " struct guestfs_add_drive_opts_argv optargs = {\n"
34218 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
34219 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
34220 "   .readonly = 1,\n"
34221 "   .format = \"qcow2\"\n"
34222 " };\n"
34223 " \n"
34224 msgstr ""
34225
34226 #. type: verbatim
34227 #: ../src/guestfs.pod:1660
34228 #, no-wrap
34229 msgid ""
34230 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
34231 "\n"
34232 msgstr ""
34233
34234 #. type: textblock
34235 #: ../src/guestfs.pod:1668
34236 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
34237 msgstr ""
34238
34239 #. type: textblock
34240 #: ../src/guestfs.pod:1673
34241 msgid "You do not need to fill in all fields of the structure."
34242 msgstr ""
34243
34244 #. type: textblock
34245 #: ../src/guestfs.pod:1677
34246 msgid ""
34247 "There must be a one-to-one correspondence between fields of the structure "
34248 "that are filled in, and bits set in the bitmask."
34249 msgstr ""
34250
34251 #. type: =head2
34252 #: ../src/guestfs.pod:1682
34253 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
34254 msgstr ""
34255
34256 #. type: textblock
34257 #: ../src/guestfs.pod:1684
34258 msgid ""
34259 "In other languages, optional arguments are expressed in the way that is "
34260 "natural for that language.  We refer you to the language-specific "
34261 "documentation for more details on that."
34262 msgstr ""
34263
34264 #. type: textblock
34265 #: ../src/guestfs.pod:1688
34266 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
34267 msgstr ""
34268
34269 #. type: =head2
34270 #: ../src/guestfs.pod:1690
34271 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
34272 msgstr ""
34273
34274 #. type: textblock
34275 #: ../src/guestfs.pod:1692
34276 msgid ""
34277 "B<Note:> This section documents the generic event mechanism introduced in "
34278 "libguestfs 1.10, which you should use in new code if possible.  The old "
34279 "functions C<guestfs_set_log_message_callback>, "
34280 "C<guestfs_set_subprocess_quit_callback>, "
34281 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
34282 "C<guestfs_set_progress_callback> are no longer documented in this manual "
34283 "page.  Because of the ABI guarantee, the old functions continue to work."
34284 msgstr ""
34285
34286 #. type: textblock
34287 #: ../src/guestfs.pod:1701
34288 msgid ""
34289 "Handles generate events when certain things happen, such as log messages "
34290 "being generated, progress messages during long-running operations, or the "
34291 "handle being closed.  The API calls described below let you register a "
34292 "callback to be called when events happen.  You can register multiple "
34293 "callbacks (for the same, different or overlapping sets of events), and "
34294 "individually remove callbacks.  If callbacks are not removed, then they "
34295 "remain in force until the handle is closed."
34296 msgstr ""
34297
34298 #. type: textblock
34299 #: ../src/guestfs.pod:1709
34300 msgid ""
34301 "In the current implementation, events are only generated synchronously: that "
34302 "means that events (and hence callbacks) can only happen while you are in the "
34303 "middle of making another libguestfs call.  The callback is called in the "
34304 "same thread."
34305 msgstr ""
34306
34307 #. type: textblock
34308 #: ../src/guestfs.pod:1714
34309 msgid ""
34310 "Events may contain a payload, usually nothing (void), an array of 64 bit "
34311 "unsigned integers, or a message buffer.  Payloads are discussed later on."
34312 msgstr ""
34313
34314 #. type: =head3
34315 #: ../src/guestfs.pod:1718
34316 msgid "CLASSES OF EVENTS"
34317 msgstr ""
34318
34319 #. type: =item
34320 #: ../src/guestfs.pod:1722
34321 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
34322 msgstr ""
34323
34324 #. type: textblock
34325 #: ../src/guestfs.pod:1725
34326 msgid ""
34327 "The callback function will be called while the handle is being closed "
34328 "(synchronously from L</guestfs_close>)."
34329 msgstr ""
34330
34331 #. type: textblock
34332 #: ../src/guestfs.pod:1728
34333 msgid ""
34334 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
34335 "handles that are open when the program exits.  This means that this callback "
34336 "might be called indirectly from L<exit(3)>, which can cause unexpected "
34337 "problems in higher-level languages (eg. if your HLL interpreter has already "
34338 "been cleaned up by the time this is called, and if your callback then jumps "
34339 "into some HLL function)."
34340 msgstr ""
34341
34342 #. type: textblock
34343 #: ../src/guestfs.pod:1735
34344 msgid ""
34345 "If no callback is registered: the handle is closed without any callback "
34346 "being invoked."
34347 msgstr ""
34348
34349 #. type: =item
34350 #: ../src/guestfs.pod:1738
34351 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
34352 msgstr ""
34353
34354 #. type: textblock
34355 #: ../src/guestfs.pod:1741
34356 msgid ""
34357 "The callback function will be called when the child process quits, either "
34358 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
34359 "corresponds to a transition from any state to the CONFIG state)."
34360 msgstr ""
34361
34362 #. type: textblock
34363 #: ../src/guestfs.pod:1745 ../src/guestfs.pod:1754
34364 msgid "If no callback is registered: the event is ignored."
34365 msgstr ""
34366
34367 #. type: =item
34368 #: ../src/guestfs.pod:1747
34369 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
34370 msgstr ""
34371
34372 #. type: textblock
34373 #: ../src/guestfs.pod:1750
34374 msgid ""
34375 "The callback function will be called when the child process becomes ready "
34376 "first time after it has been launched.  (This corresponds to a transition "
34377 "from LAUNCHING to the READY state)."
34378 msgstr ""
34379
34380 #. type: =item
34381 #: ../src/guestfs.pod:1756
34382 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
34383 msgstr ""
34384
34385 #. type: textblock
34386 #: ../src/guestfs.pod:1759
34387 msgid ""
34388 "Some long-running operations can generate progress messages.  If this "
34389 "callback is registered, then it will be called each time a progress message "
34390 "is generated (usually two seconds after the operation started, and three "
34391 "times per second thereafter until it completes, although the frequency may "
34392 "change in future versions)."
34393 msgstr ""
34394
34395 #. type: textblock
34396 #: ../src/guestfs.pod:1765
34397 msgid ""
34398 "The callback receives in the payload four unsigned 64 bit numbers which are "
34399 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
34400 msgstr ""
34401
34402 #. type: textblock
34403 #: ../src/guestfs.pod:1768
34404 msgid ""
34405 "The units of C<total> are not defined, although for some operations C<total> "
34406 "may relate in some way to the amount of data to be transferred (eg. in bytes "
34407 "or megabytes), and C<position> may be the portion which has been transferred."
34408 msgstr ""
34409
34410 #. type: textblock
34411 #: ../src/guestfs.pod:1773
34412 msgid "The only defined and stable parts of the API are:"
34413 msgstr ""
34414
34415 #. type: textblock
34416 #: ../src/guestfs.pod:1779
34417 msgid ""
34418 "The callback can display to the user some type of progress bar or indicator "
34419 "which shows the ratio of C<position>:C<total>."
34420 msgstr ""
34421
34422 #. type: textblock
34423 #: ../src/guestfs.pod:1784
34424 msgid "0 E<lt>= C<position> E<lt>= C<total>"
34425 msgstr ""
34426
34427 #. type: textblock
34428 #: ../src/guestfs.pod:1788
34429 msgid ""
34430 "If any progress notification is sent during a call, then a final progress "
34431 "notification is always sent when C<position> = C<total> (I<unless> the call "
34432 "fails with an error)."
34433 msgstr ""
34434
34435 #. type: textblock
34436 #: ../src/guestfs.pod:1792
34437 msgid ""
34438 "This is to simplify caller code, so callers can easily set the progress "
34439 "indicator to \"100%\" at the end of the operation, without requiring special "
34440 "code to detect this case."
34441 msgstr ""
34442
34443 #. type: textblock
34444 #: ../src/guestfs.pod:1798
34445 msgid ""
34446 "For some calls we are unable to estimate the progress of the call, but we "
34447 "can still generate progress messages to indicate activity.  This is known as "
34448 "\"pulse mode\", and is directly supported by certain progress bar "
34449 "implementations (eg. GtkProgressBar)."
34450 msgstr ""
34451
34452 #. type: textblock
34453 #: ../src/guestfs.pod:1803
34454 msgid ""
34455 "For these calls, zero or more progress messages are generated with "
34456 "C<position = 0> and C<total = 1>, followed by a final message with "
34457 "C<position = total = 1>."
34458 msgstr ""
34459
34460 #. type: textblock
34461 #: ../src/guestfs.pod:1807
34462 msgid ""
34463 "As noted above, if the call fails with an error then the final message may "
34464 "not be generated."
34465 msgstr ""
34466
34467 #. type: textblock
34468 #: ../src/guestfs.pod:1812
34469 msgid ""
34470 "The callback also receives the procedure number (C<proc_nr>) and serial "
34471 "number (C<serial>) of the call.  These are only useful for debugging "
34472 "protocol issues, and the callback can normally ignore them.  The callback "
34473 "may want to print these numbers in error messages or debugging messages."
34474 msgstr ""
34475
34476 #. type: textblock
34477 #: ../src/guestfs.pod:1818
34478 msgid "If no callback is registered: progress messages are discarded."
34479 msgstr ""
34480
34481 #. type: =item
34482 #: ../src/guestfs.pod:1820
34483 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
34484 msgstr ""
34485
34486 #. type: textblock
34487 #: ../src/guestfs.pod:1823
34488 msgid ""
34489 "The callback function is called whenever a log message is generated by qemu, "
34490 "the appliance kernel, guestfsd (daemon), or utility programs."
34491 msgstr ""
34492
34493 #. type: textblock
34494 #: ../src/guestfs.pod:1826
34495 msgid ""
34496 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
34497 "guestfs_launch>) then additional debug messages are generated."
34498 msgstr ""
34499
34500 #. type: textblock
34501 #: ../src/guestfs.pod:1829 ../src/guestfs.pod:1843
34502 msgid ""
34503 "If no callback is registered: the messages are discarded unless the verbose "
34504 "flag is set in which case they are sent to stderr.  You can override the "
34505 "printing of verbose messages to stderr by setting up a callback."
34506 msgstr ""
34507
34508 #. type: =item
34509 #: ../src/guestfs.pod:1834
34510 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
34511 msgstr ""
34512
34513 #. type: textblock
34514 #: ../src/guestfs.pod:1837
34515 msgid ""
34516 "The callback function is called whenever a log message is generated by the "
34517 "library part of libguestfs."
34518 msgstr ""
34519
34520 #. type: textblock
34521 #: ../src/guestfs.pod:1840
34522 msgid ""
34523 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
34524 "messages are generated."
34525 msgstr ""
34526
34527 #. type: =item
34528 #: ../src/guestfs.pod:1848
34529 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
34530 msgstr ""
34531
34532 #. type: textblock
34533 #: ../src/guestfs.pod:1851
34534 msgid ""
34535 "The callback function is called whenever a trace message is generated.  This "
34536 "only applies if the trace flag (L</guestfs_set_trace>) is set."
34537 msgstr ""
34538
34539 #. type: textblock
34540 #: ../src/guestfs.pod:1854
34541 msgid ""
34542 "If no callback is registered: the messages are sent to stderr.  You can "
34543 "override the printing of trace messages to stderr by setting up a callback."
34544 msgstr ""
34545
34546 #. type: =head3
34547 #: ../src/guestfs.pod:1860
34548 msgid "guestfs_set_event_callback"
34549 msgstr ""
34550
34551 #. type: verbatim
34552 #: ../src/guestfs.pod:1862
34553 #, no-wrap
34554 msgid ""
34555 " int guestfs_set_event_callback (guestfs_h *g,\n"
34556 "                                 guestfs_event_callback cb,\n"
34557 "                                 uint64_t event_bitmask,\n"
34558 "                                 int flags,\n"
34559 "                                 void *opaque);\n"
34560 "\n"
34561 msgstr ""
34562
34563 #. type: textblock
34564 #: ../src/guestfs.pod:1868
34565 msgid ""
34566 "This function registers a callback (C<cb>) for all event classes in the "
34567 "C<event_bitmask>."
34568 msgstr ""
34569
34570 #. type: textblock
34571 #: ../src/guestfs.pod:1871
34572 msgid ""
34573 "For example, to register for all log message events, you could call this "
34574 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
34575 "To register a single callback for all possible classes of events, use "
34576 "C<GUESTFS_EVENT_ALL>."
34577 msgstr ""
34578
34579 #. type: textblock
34580 #: ../src/guestfs.pod:1877
34581 msgid "C<flags> should always be passed as 0."
34582 msgstr ""
34583
34584 #. type: textblock
34585 #: ../src/guestfs.pod:1879
34586 msgid ""
34587 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
34588 "it for any purpose."
34589 msgstr ""
34590
34591 #. type: textblock
34592 #: ../src/guestfs.pod:1882
34593 msgid ""
34594 "The return value is the event handle (an integer) which you can use to "
34595 "delete the callback (see below)."
34596 msgstr ""
34597
34598 #. type: textblock
34599 #: ../src/guestfs.pod:1885
34600 msgid ""
34601 "If there is an error, this function returns C<-1>, and sets the error in the "
34602 "handle in the usual way (see L</guestfs_last_error> etc.)"
34603 msgstr ""
34604
34605 #. type: textblock
34606 #: ../src/guestfs.pod:1888
34607 msgid ""
34608 "Callbacks remain in effect until they are deleted, or until the handle is "
34609 "closed."
34610 msgstr ""
34611
34612 #. type: textblock
34613 #: ../src/guestfs.pod:1891
34614 msgid ""
34615 "In the case where multiple callbacks are registered for a particular event "
34616 "class, all of the callbacks are called.  The order in which multiple "
34617 "callbacks are called is not defined."
34618 msgstr ""
34619
34620 #. type: =head3
34621 #: ../src/guestfs.pod:1895
34622 msgid "guestfs_delete_event_callback"
34623 msgstr ""
34624
34625 #. type: verbatim
34626 #: ../src/guestfs.pod:1897
34627 #, no-wrap
34628 msgid ""
34629 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
34630 "\n"
34631 msgstr ""
34632
34633 #. type: textblock
34634 #: ../src/guestfs.pod:1899
34635 msgid ""
34636 "Delete a callback that was previously registered.  C<event_handle> should be "
34637 "the integer that was returned by a previous call to "
34638 "C<guestfs_set_event_callback> on the same handle."
34639 msgstr ""
34640
34641 #. type: =head3
34642 #: ../src/guestfs.pod:1903
34643 msgid "guestfs_event_callback"
34644 msgstr ""
34645
34646 #. type: verbatim
34647 #: ../src/guestfs.pod:1905
34648 #, no-wrap
34649 msgid ""
34650 " typedef void (*guestfs_event_callback) (\n"
34651 "                  guestfs_h *g,\n"
34652 "                  void *opaque,\n"
34653 "                  uint64_t event,\n"
34654 "                  int event_handle,\n"
34655 "                  int flags,\n"
34656 "                  const char *buf, size_t buf_len,\n"
34657 "                  const uint64_t *array, size_t array_len);\n"
34658 "\n"
34659 msgstr ""
34660
34661 #. type: textblock
34662 #: ../src/guestfs.pod:1914
34663 msgid ""
34664 "This is the type of the event callback function that you have to provide."
34665 msgstr ""
34666
34667 #. type: textblock
34668 #: ../src/guestfs.pod:1917
34669 msgid ""
34670 "The basic parameters are: the handle (C<g>), the opaque user pointer "
34671 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
34672 "handle, and C<flags> which in the current API you should ignore."
34673 msgstr ""
34674
34675 #. type: textblock
34676 #: ../src/guestfs.pod:1921
34677 msgid ""
34678 "The remaining parameters contain the event payload (if any).  Each event may "
34679 "contain a payload, which usually relates to the event class, but for future "
34680 "proofing your code should be written to handle any payload for any event "
34681 "class."
34682 msgstr ""
34683
34684 #. type: textblock
34685 #: ../src/guestfs.pod:1926
34686 msgid ""
34687 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
34688 "there is no message buffer).  Note that this message buffer can contain "
34689 "arbitrary 8 bit data, including NUL bytes."
34690 msgstr ""
34691
34692 #. type: textblock
34693 #: ../src/guestfs.pod:1930
34694 msgid ""
34695 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
34696 "moment this is only used for progress messages."
34697 msgstr ""
34698
34699 #. type: =head3
34700 #: ../src/guestfs.pod:1933
34701 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
34702 msgstr ""
34703
34704 #. type: textblock
34705 #: ../src/guestfs.pod:1935
34706 msgid ""
34707 "One motivation for the generic event API was to allow GUI programs to "
34708 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
34709 "unconditionally to C<stderr>."
34710 msgstr ""
34711
34712 #. type: textblock
34713 #: ../src/guestfs.pod:1939
34714 msgid ""
34715 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
34716 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
34717 "messages are not events; you must capture error messages separately)."
34718 msgstr ""
34719
34720 #. type: textblock
34721 #: ../src/guestfs.pod:1944
34722 msgid ""
34723 "Programs have to set up a callback to capture the classes of events of "
34724 "interest:"
34725 msgstr ""
34726
34727 #. type: verbatim
34728 #: ../src/guestfs.pod:1947
34729 #, no-wrap
34730 msgid ""
34731 " int eh =\n"
34732 "   guestfs_set_event_callback\n"
34733 "     (g, message_callback,\n"
34734 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
34735 "      GUESTFS_EVENT_TRACE,\n"
34736 "      0, NULL) == -1)\n"
34737 " if (eh == -1) {\n"
34738 "   // handle error in the usual way\n"
34739 " }\n"
34740 "\n"
34741 msgstr ""
34742
34743 #. type: textblock
34744 #: ../src/guestfs.pod:1957
34745 msgid ""
34746 "The callback can then direct messages to the appropriate place.  In this "
34747 "example, messages are directed to syslog:"
34748 msgstr ""
34749
34750 #. type: verbatim
34751 #: ../src/guestfs.pod:1960
34752 #, no-wrap
34753 msgid ""
34754 " static void\n"
34755 " message_callback (\n"
34756 "         guestfs_h *g,\n"
34757 "         void *opaque,\n"
34758 "         uint64_t event,\n"
34759 "         int event_handle,\n"
34760 "         int flags,\n"
34761 "         const char *buf, size_t buf_len,\n"
34762 "         const uint64_t *array, size_t array_len)\n"
34763 " {\n"
34764 "   const int priority = LOG_USER|LOG_INFO;\n"
34765 "   if (buf_len > 0)\n"
34766 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
34767 " }\n"
34768 "\n"
34769 msgstr ""
34770
34771 #. type: =head1
34772 #: ../src/guestfs.pod:1975
34773 msgid "CANCELLING LONG TRANSFERS"
34774 msgstr ""
34775
34776 #. type: textblock
34777 #: ../src/guestfs.pod:1977
34778 msgid ""
34779 "Some operations can be cancelled by the caller while they are in progress.  "
34780 "Currently only operations that involve uploading or downloading data can be "
34781 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
34782 "parameters in the generator)."
34783 msgstr ""
34784
34785 #. type: =head2
34786 #: ../src/guestfs.pod:1982
34787 msgid "guestfs_user_cancel"
34788 msgstr ""
34789
34790 #. type: verbatim
34791 #: ../src/guestfs.pod:1984
34792 #, no-wrap
34793 msgid ""
34794 " void guestfs_user_cancel (guestfs_h *g);\n"
34795 "\n"
34796 msgstr ""
34797
34798 #. type: textblock
34799 #: ../src/guestfs.pod:1986
34800 msgid ""
34801 "C<guestfs_user_cancel> cancels the current upload or download operation."
34802 msgstr ""
34803
34804 #. type: textblock
34805 #: ../src/guestfs.pod:1989
34806 msgid ""
34807 "Unlike most other libguestfs calls, this function is signal safe and thread "
34808 "safe.  You can call it from a signal handler or from another thread, without "
34809 "needing to do any locking."
34810 msgstr ""
34811
34812 #. type: textblock
34813 #: ../src/guestfs.pod:1993
34814 msgid ""
34815 "The transfer that was in progress (if there is one) will stop shortly "
34816 "afterwards, and will return an error.  The errno (see L</"
34817 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
34818 "out if the operation was cancelled or failed because of another error."
34819 msgstr ""
34820
34821 #. type: textblock
34822 #: ../src/guestfs.pod:1999
34823 msgid ""
34824 "No cleanup is performed: for example, if a file was being uploaded then "
34825 "after cancellation there may be a partially uploaded file.  It is the "
34826 "caller's responsibility to clean up if necessary."
34827 msgstr ""
34828
34829 #. type: textblock
34830 #: ../src/guestfs.pod:2003
34831 msgid "There are two common places that you might call C<guestfs_user_cancel>."
34832 msgstr ""
34833
34834 #. type: textblock
34835 #: ../src/guestfs.pod:2005
34836 msgid ""
34837 "In an interactive text-based program, you might call it from a C<SIGINT> "
34838 "signal handler so that pressing C<^C> cancels the current operation.  (You "
34839 "also need to call L</guestfs_set_pgroup> so that child processes don't "
34840 "receive the C<^C> signal)."
34841 msgstr ""
34842
34843 #. type: textblock
34844 #: ../src/guestfs.pod:2010
34845 msgid ""
34846 "In a graphical program, when the main thread is displaying a progress bar "
34847 "with a cancel button, wire up the cancel button to call this function."
34848 msgstr ""
34849
34850 #. type: =head1
34851 #: ../src/guestfs.pod:2014
34852 msgid "PRIVATE DATA AREA"
34853 msgstr ""
34854
34855 #. type: textblock
34856 #: ../src/guestfs.pod:2016
34857 msgid ""
34858 "You can attach named pieces of private data to the libguestfs handle, fetch "
34859 "them by name, and walk over them, for the lifetime of the handle.  This is "
34860 "called the private data area and is only available from the C API."
34861 msgstr ""
34862
34863 #. type: textblock
34864 #: ../src/guestfs.pod:2021
34865 msgid "To attach a named piece of data, use the following call:"
34866 msgstr ""
34867
34868 #. type: verbatim
34869 #: ../src/guestfs.pod:2023
34870 #, no-wrap
34871 msgid ""
34872 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
34873 "\n"
34874 msgstr ""
34875
34876 #. type: textblock
34877 #: ../src/guestfs.pod:2025
34878 msgid ""
34879 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
34880 "pointer (which can be C<NULL>).  Any previous item with the same key is "
34881 "overwritten."
34882 msgstr ""
34883
34884 #. type: textblock
34885 #: ../src/guestfs.pod:2029
34886 msgid ""
34887 "You can use any C<key> you want, but your key should I<not> start with an "
34888 "underscore character.  Keys beginning with an underscore character are "
34889 "reserved for internal libguestfs purposes (eg. for implementing language "
34890 "bindings).  It is recommended that you prefix the key with some unique "
34891 "string to avoid collisions with other users."
34892 msgstr ""
34893
34894 #. type: textblock
34895 #: ../src/guestfs.pod:2035
34896 msgid "To retrieve the pointer, use:"
34897 msgstr ""
34898
34899 #. type: verbatim
34900 #: ../src/guestfs.pod:2037
34901 #, no-wrap
34902 msgid ""
34903 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
34904 "\n"
34905 msgstr ""
34906
34907 #. type: textblock
34908 #: ../src/guestfs.pod:2039
34909 msgid ""
34910 "This function returns C<NULL> if either no data is found associated with "
34911 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
34912 "C<NULL>."
34913 msgstr ""
34914
34915 #. type: textblock
34916 #: ../src/guestfs.pod:2043
34917 msgid ""
34918 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
34919 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
34920 "all.  In particular, libguestfs does I<not> try to free the data when the "
34921 "handle is closed.  If the data must be freed, then the caller must either "
34922 "free it before calling L</guestfs_close> or must set up a close callback to "
34923 "do it (see L</GUESTFS_EVENT_CLOSE>)."
34924 msgstr ""
34925
34926 #. type: textblock
34927 #: ../src/guestfs.pod:2050
34928 msgid "To walk over all entries, use these two functions:"
34929 msgstr ""
34930
34931 #. type: verbatim
34932 #: ../src/guestfs.pod:2052
34933 #, no-wrap
34934 msgid ""
34935 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
34936 "\n"
34937 msgstr ""
34938
34939 #. type: verbatim
34940 #: ../src/guestfs.pod:2054
34941 #, no-wrap
34942 msgid ""
34943 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
34944 "\n"
34945 msgstr ""
34946
34947 #. type: textblock
34948 #: ../src/guestfs.pod:2056
34949 msgid ""
34950 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
34951 "not have any particular meaning -- keys are not returned in any defined "
34952 "order).  A pointer to the key is returned in C<*key_rtn> and the "
34953 "corresponding data pointer is returned from the function.  C<NULL> is "
34954 "returned if there are no keys stored in the handle."
34955 msgstr ""
34956
34957 #. type: textblock
34958 #: ../src/guestfs.pod:2062
34959 msgid ""
34960 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
34961 "value of this function is also C<NULL> is there are no further entries to "
34962 "return."
34963 msgstr ""
34964
34965 #. type: textblock
34966 #: ../src/guestfs.pod:2066
34967 msgid "Notes about walking over entries:"
34968 msgstr ""
34969
34970 #. type: textblock
34971 #: ../src/guestfs.pod:2072
34972 msgid ""
34973 "You must not call C<guestfs_set_private> while walking over the entries."
34974 msgstr ""
34975
34976 #. type: textblock
34977 #: ../src/guestfs.pod:2077
34978 msgid ""
34979 "The handle maintains an internal iterator which is reset when you call "
34980 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
34981 "call C<guestfs_set_private>."
34982 msgstr ""
34983
34984 #. type: textblock
34985 #: ../src/guestfs.pod:2083
34986 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
34987 msgstr ""
34988
34989 #. type: verbatim
34990 #: ../src/guestfs.pod:2085
34991 #, no-wrap
34992 msgid ""
34993 " guestfs_set_private (g, key, NULL);\n"
34994 "\n"
34995 msgstr ""
34996
34997 #. type: textblock
34998 #: ../src/guestfs.pod:2087
34999 msgid "then that C<key> is not returned when walking."
35000 msgstr ""
35001
35002 #. type: textblock
35003 #: ../src/guestfs.pod:2091
35004 msgid ""
35005 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
35006 "C<guestfs_next_private> or C<guestfs_set_private>."
35007 msgstr ""
35008
35009 #. type: textblock
35010 #: ../src/guestfs.pod:2097
35011 msgid ""
35012 "The following example code shows how to print all keys and data pointers "
35013 "that are associated with the handle C<g>:"
35014 msgstr ""
35015
35016 #. type: verbatim
35017 #: ../src/guestfs.pod:2100
35018 #, no-wrap
35019 msgid ""
35020 " const char *key;\n"
35021 " void *data = guestfs_first_private (g, &key);\n"
35022 " while (data != NULL)\n"
35023 "   {\n"
35024 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
35025 "     data = guestfs_next_private (g, &key);\n"
35026 "   }\n"
35027 "\n"
35028 msgstr ""
35029
35030 #. type: textblock
35031 #: ../src/guestfs.pod:2108
35032 msgid ""
35033 "More commonly you are only interested in keys that begin with an application-"
35034 "specific prefix C<foo_>.  Modify the loop like so:"
35035 msgstr ""
35036
35037 #. type: verbatim
35038 #: ../src/guestfs.pod:2111
35039 #, no-wrap
35040 msgid ""
35041 " const char *key;\n"
35042 " void *data = guestfs_first_private (g, &key);\n"
35043 " while (data != NULL)\n"
35044 "   {\n"
35045 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
35046 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
35047 "     data = guestfs_next_private (g, &key);\n"
35048 "   }\n"
35049 "\n"
35050 msgstr ""
35051
35052 #. type: textblock
35053 #: ../src/guestfs.pod:2120
35054 msgid ""
35055 "If you need to modify keys while walking, then you have to jump back to the "
35056 "beginning of the loop.  For example, to delete all keys prefixed with "
35057 "C<foo_>:"
35058 msgstr ""
35059
35060 #. type: verbatim
35061 #: ../src/guestfs.pod:2124
35062 #, no-wrap
35063 msgid ""
35064 "  const char *key;\n"
35065 "  void *data;\n"
35066 " again:\n"
35067 "  data = guestfs_first_private (g, &key);\n"
35068 "  while (data != NULL)\n"
35069 "    {\n"
35070 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
35071 "        {\n"
35072 "          guestfs_set_private (g, key, NULL);\n"
35073 "          /* note that 'key' pointer is now invalid, and so is\n"
35074 "             the internal iterator */\n"
35075 "          goto again;\n"
35076 "        }\n"
35077 "      data = guestfs_next_private (g, &key);\n"
35078 "    }\n"
35079 "\n"
35080 msgstr ""
35081
35082 #. type: textblock
35083 #: ../src/guestfs.pod:2140
35084 msgid ""
35085 "Note that the above loop is guaranteed to terminate because the keys are "
35086 "being deleted, but other manipulations of keys within the loop might not "
35087 "terminate unless you also maintain an indication of which keys have been "
35088 "visited."
35089 msgstr ""
35090
35091 #. type: =end
35092 #: ../src/guestfs.pod:2145 ../src/guestfs.pod:2150
35093 msgid "html"
35094 msgstr ""
35095
35096 #. type: textblock
35097 #: ../src/guestfs.pod:2147
35098 msgid ""
35099 "<!-- old anchor for the next section --> <a name="
35100 "\"state_machine_and_low_level_event_api\"/>"
35101 msgstr ""
35102
35103 #. type: =head1
35104 #: ../src/guestfs.pod:2152
35105 msgid "ARCHITECTURE"
35106 msgstr ""
35107
35108 #. type: textblock
35109 #: ../src/guestfs.pod:2154
35110 msgid ""
35111 "Internally, libguestfs is implemented by running an appliance (a special "
35112 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
35113 "process of the main program."
35114 msgstr ""
35115
35116 #. type: verbatim
35117 #: ../src/guestfs.pod:2158
35118 #, no-wrap
35119 msgid ""
35120 "  ___________________\n"
35121 " /                   \\\n"
35122 " | main program      |\n"
35123 " |                   |\n"
35124 " |                   |           child process / appliance\n"
35125 " |                   |           __________________________\n"
35126 " |                   |          / qemu                     \\\n"
35127 " +-------------------+   RPC    |      +-----------------+ |\n"
35128 " | libguestfs     <--------------------> guestfsd        | |\n"
35129 " |                   |          |      +-----------------+ |\n"
35130 " \\___________________/          |      | Linux kernel    | |\n"
35131 "                                |      +--^--------------+ |\n"
35132 "                                \\_________|________________/\n"
35133 "                                          |\n"
35134 "                                   _______v______\n"
35135 "                                  /              \\\n"
35136 "                                  | Device or    |\n"
35137 "                                  | disk image   |\n"
35138 "                                  \\______________/\n"
35139 "\n"
35140 msgstr ""
35141
35142 #. type: textblock
35143 #: ../src/guestfs.pod:2178
35144 msgid ""
35145 "The library, linked to the main program, creates the child process and hence "
35146 "the appliance in the L</guestfs_launch> function."
35147 msgstr ""
35148
35149 #. type: textblock
35150 #: ../src/guestfs.pod:2181
35151 msgid ""
35152 "Inside the appliance is a Linux kernel and a complete stack of userspace "
35153 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
35154 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
35155 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
35156 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
35157 "attached to the qemu process which translates device access by the "
35158 "appliance's Linux kernel into accesses to the image."
35159 msgstr ""
35160
35161 #. type: textblock
35162 #: ../src/guestfs.pod:2190
35163 msgid ""
35164 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
35165 "Although the disk image you are attached to might also be used by some "
35166 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
35167 "care if both libguestfs's qemu process and your virtual machine are trying "
35168 "to update the disk image at the same time, since these usually results in "
35169 "massive disk corruption)."
35170 msgstr ""
35171
35172 #. type: =head1
35173 #: ../src/guestfs.pod:2197
35174 msgid "STATE MACHINE"
35175 msgstr ""
35176
35177 #. type: textblock
35178 #: ../src/guestfs.pod:2199
35179 msgid "libguestfs uses a state machine to model the child process:"
35180 msgstr ""
35181
35182 #. type: verbatim
35183 #: ../src/guestfs.pod:2201
35184 #, no-wrap
35185 msgid ""
35186 "                         |\n"
35187 "                    guestfs_create\n"
35188 "                         |\n"
35189 "                         |\n"
35190 "                     ____V_____\n"
35191 "                    /          \\\n"
35192 "                    |  CONFIG  |\n"
35193 "                    \\__________/\n"
35194 "                     ^ ^   ^  \\\n"
35195 "                    /  |    \\  \\ guestfs_launch\n"
35196 "                   /   |    _\\__V______\n"
35197 "                  /    |   /           \\\n"
35198 "                 /     |   | LAUNCHING |\n"
35199 "                /      |   \\___________/\n"
35200 "               /       |       /\n"
35201 "              /        |  guestfs_launch\n"
35202 "             /         |     /\n"
35203 "    ______  /        __|____V\n"
35204 "   /      \\ ------> /        \\\n"
35205 "   | BUSY |         | READY  |\n"
35206 "   \\______/ <------ \\________/\n"
35207 "\n"
35208 msgstr ""
35209
35210 #. type: textblock
35211 #: ../src/guestfs.pod:2223
35212 msgid ""
35213 "The normal transitions are (1) CONFIG (when the handle is created, but there "
35214 "is no child process), (2) LAUNCHING (when the child process is booting up), "
35215 "(3) alternating between READY and BUSY as commands are issued to, and "
35216 "carried out by, the child process."
35217 msgstr ""
35218
35219 #. type: textblock
35220 #: ../src/guestfs.pod:2228
35221 msgid ""
35222 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
35223 "asynchronously at any time (eg. due to some internal error), and that causes "
35224 "the state to transition back to CONFIG."
35225 msgstr ""
35226
35227 #. type: textblock
35228 #: ../src/guestfs.pod:2232
35229 msgid ""
35230 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
35231 "issued when in the CONFIG state."
35232 msgstr ""
35233
35234 #. type: textblock
35235 #: ../src/guestfs.pod:2235
35236 msgid ""
35237 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
35238 "L</guestfs_launch> blocks until the child process is READY to accept "
35239 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
35240 "moves the state from CONFIG to LAUNCHING while it is running."
35241 msgstr ""
35242
35243 #. type: textblock
35244 #: ../src/guestfs.pod:2241
35245 msgid ""
35246 "API actions such as L</guestfs_mount> can only be issued when in the READY "
35247 "state.  These API calls block waiting for the command to be carried out (ie. "
35248 "the state to transition to BUSY and then back to READY).  There are no non-"
35249 "blocking versions, and no way to issue more than one command per handle at "
35250 "the same time."
35251 msgstr ""
35252
35253 #. type: textblock
35254 #: ../src/guestfs.pod:2247
35255 msgid ""
35256 "Finally, the child process sends asynchronous messages back to the main "
35257 "program, such as kernel log messages.  You can register a callback to "
35258 "receive these messages."
35259 msgstr ""
35260
35261 #. type: =head1
35262 #: ../src/guestfs.pod:2251
35263 msgid "INTERNALS"
35264 msgstr ""
35265
35266 #. type: =head2
35267 #: ../src/guestfs.pod:2253
35268 msgid "APPLIANCE BOOT PROCESS"
35269 msgstr ""
35270
35271 #. type: textblock
35272 #: ../src/guestfs.pod:2255
35273 msgid ""
35274 "This process has evolved and continues to evolve.  The description here "
35275 "corresponds only to the current version of libguestfs and is provided for "
35276 "information only."
35277 msgstr ""
35278
35279 #. type: textblock
35280 #: ../src/guestfs.pod:2259
35281 msgid ""
35282 "In order to follow the stages involved below, enable libguestfs debugging "
35283 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
35284 msgstr ""
35285
35286 #. type: =item
35287 #: ../src/guestfs.pod:2264
35288 msgid "Create the appliance"
35289 msgstr ""
35290
35291 #. type: textblock
35292 #: ../src/guestfs.pod:2266
35293 msgid ""
35294 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
35295 "initrd and the appliance."
35296 msgstr ""
35297
35298 #. type: textblock
35299 #: ../src/guestfs.pod:2269
35300 msgid ""
35301 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
35302 "directory if C<TMPDIR> is set)."
35303 msgstr ""
35304
35305 #. type: textblock
35306 #: ../src/guestfs.pod:2272
35307 msgid ""
35308 "For a complete description of how the appliance is created and cached, read "
35309 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
35310 msgstr ""
35311
35312 #. type: =item
35313 #: ../src/guestfs.pod:2276
35314 msgid "Start qemu and boot the kernel"
35315 msgstr ""
35316
35317 #. type: textblock
35318 #: ../src/guestfs.pod:2278
35319 msgid "qemu is invoked to boot the kernel."
35320 msgstr ""
35321
35322 #. type: =item
35323 #: ../src/guestfs.pod:2280
35324 msgid "Run the initrd"
35325 msgstr ""
35326
35327 #. type: textblock
35328 #: ../src/guestfs.pod:2282
35329 msgid ""
35330 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
35331 "appliance.  The purpose of the initrd is to load enough kernel modules in "
35332 "order that the appliance itself can be mounted and started."
35333 msgstr ""
35334
35335 #. type: textblock
35336 #: ../src/guestfs.pod:2286
35337 msgid ""
35338 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
35339 "initrd>."
35340 msgstr ""
35341
35342 #. type: textblock
35343 #: ../src/guestfs.pod:2289
35344 msgid ""
35345 "When the initrd has started you will see messages showing that kernel "
35346 "modules are being loaded, similar to this:"
35347 msgstr ""
35348
35349 #. type: verbatim
35350 #: ../src/guestfs.pod:2292
35351 #, no-wrap
35352 msgid ""
35353 " febootstrap: ext2 mini initrd starting up\n"
35354 " febootstrap: mounting /sys\n"
35355 " febootstrap: internal insmod libcrc32c.ko\n"
35356 " febootstrap: internal insmod crc32c-intel.ko\n"
35357 "\n"
35358 msgstr ""
35359
35360 #. type: =item
35361 #: ../src/guestfs.pod:2297
35362 msgid "Find and mount the appliance device"
35363 msgstr ""
35364
35365 #. type: textblock
35366 #: ../src/guestfs.pod:2299
35367 msgid ""
35368 "The appliance is a sparse file containing an ext2 filesystem which contains "
35369 "a familiar (although reduced in size) Linux operating system.  It would "
35370 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
35371 msgstr ""
35372
35373 #. type: textblock
35374 #: ../src/guestfs.pod:2303
35375 msgid ""
35376 "The regular disks being inspected by libguestfs are the first devices "
35377 "exposed by qemu (eg. as C</dev/vda>)."
35378 msgstr ""
35379
35380 #. type: textblock
35381 #: ../src/guestfs.pod:2306
35382 msgid ""
35383 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
35384 "there was only one regular disk)."
35385 msgstr ""
35386
35387 #. type: textblock
35388 #: ../src/guestfs.pod:2309
35389 msgid ""
35390 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
35391 "and switch root into the appliance, and run C</init> from the appliance."
35392 msgstr ""
35393
35394 #. type: textblock
35395 #: ../src/guestfs.pod:2313
35396 msgid "If this works successfully you will see messages such as:"
35397 msgstr ""
35398
35399 #. type: verbatim
35400 #: ../src/guestfs.pod:2315
35401 #, no-wrap
35402 msgid ""
35403 " febootstrap: picked /sys/block/vdb/dev as root device\n"
35404 " febootstrap: creating /dev/root as block special 252:16\n"
35405 " febootstrap: mounting new root on /root\n"
35406 " febootstrap: chroot\n"
35407 " Starting /init script ...\n"
35408 "\n"
35409 msgstr ""
35410
35411 #. type: textblock
35412 #: ../src/guestfs.pod:2321
35413 msgid ""
35414 "Note that C<Starting /init script ...> indicates that the appliance's init "
35415 "script is now running."
35416 msgstr ""
35417
35418 #. type: =item
35419 #: ../src/guestfs.pod:2324
35420 msgid "Initialize the appliance"
35421 msgstr ""
35422
35423 #. type: textblock
35424 #: ../src/guestfs.pod:2326
35425 msgid ""
35426 "The appliance itself now initializes itself.  This involves starting certain "
35427 "processes like C<udev>, possibly printing some debug information, and "
35428 "finally running the daemon (C<guestfsd>)."
35429 msgstr ""
35430
35431 #. type: =item
35432 #: ../src/guestfs.pod:2330
35433 msgid "The daemon"
35434 msgstr ""
35435
35436 #. type: textblock
35437 #: ../src/guestfs.pod:2332
35438 msgid ""
35439 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
35440 "should see:"
35441 msgstr ""
35442
35443 #. type: verbatim
35444 #: ../src/guestfs.pod:2335
35445 #, no-wrap
35446 msgid ""
35447 " verbose daemon enabled\n"
35448 "\n"
35449 msgstr ""
35450
35451 #. type: textblock
35452 #: ../src/guestfs.pod:2337
35453 msgid ""
35454 "The daemon expects to see a named virtio-serial port exposed by qemu and "
35455 "connected on the other end to the library."
35456 msgstr ""
35457
35458 #. type: textblock
35459 #: ../src/guestfs.pod:2340
35460 msgid ""
35461 "The daemon connects to this port (and hence to the library) and sends a four "
35462 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
35463 "protocol (see below)."
35464 msgstr ""
35465
35466 #. type: =head2
35467 #: ../src/guestfs.pod:2346
35468 msgid "COMMUNICATION PROTOCOL"
35469 msgstr ""
35470
35471 #. type: textblock
35472 #: ../src/guestfs.pod:2348
35473 msgid ""
35474 "Don't rely on using this protocol directly.  This section documents how it "
35475 "currently works, but it may change at any time."
35476 msgstr ""
35477
35478 #. type: textblock
35479 #: ../src/guestfs.pod:2351
35480 msgid ""
35481 "The protocol used to talk between the library and the daemon running inside "
35482 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
35483 "1014, RFC 1832, RFC 4506)."
35484 msgstr ""
35485
35486 #. type: textblock
35487 #: ../src/guestfs.pod:2355
35488 msgid ""
35489 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
35490 "this file is automatically generated)."
35491 msgstr ""
35492
35493 #. type: textblock
35494 #: ../src/guestfs.pod:2358
35495 msgid ""
35496 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
35497 "and C<FileOut> parameters, which are handled with very simple request/reply "
35498 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
35499 "parameters, which use the same request and reply messages, but they may also "
35500 "be followed by files sent using a chunked encoding."
35501 msgstr ""
35502
35503 #. type: =head3
35504 #: ../src/guestfs.pod:2365
35505 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
35506 msgstr ""
35507
35508 #. type: textblock
35509 #: ../src/guestfs.pod:2367
35510 msgid "For ordinary functions, the request message is:"
35511 msgstr ""
35512
35513 #. type: verbatim
35514 #: ../src/guestfs.pod:2369
35515 #, no-wrap
35516 msgid ""
35517 " total length (header + arguments,\n"
35518 "      but not including the length word itself)\n"
35519 " struct guestfs_message_header (encoded as XDR)\n"
35520 " struct guestfs_<foo>_args (encoded as XDR)\n"
35521 "\n"
35522 msgstr ""
35523
35524 #. type: textblock
35525 #: ../src/guestfs.pod:2374
35526 msgid ""
35527 "The total length field allows the daemon to allocate a fixed size buffer "
35528 "into which it slurps the rest of the message.  As a result, the total length "
35529 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
35530 "effective size of any request is limited to somewhere under this size."
35531 msgstr ""
35532
35533 #. type: textblock
35534 #: ../src/guestfs.pod:2380
35535 msgid ""
35536 "Note also that many functions don't take any arguments, in which case the "
35537 "C<guestfs_I<foo>_args> is completely omitted."
35538 msgstr ""
35539
35540 #. type: textblock
35541 #: ../src/guestfs.pod:2383
35542 msgid ""
35543 "The header contains the procedure number (C<guestfs_proc>) which is how the "
35544 "receiver knows what type of args structure to expect, or none at all."
35545 msgstr ""
35546
35547 #. type: textblock
35548 #: ../src/guestfs.pod:2387
35549 msgid ""
35550 "For functions that take optional arguments, the optional arguments are "
35551 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
35552 "arguments.  A bitmask in the header indicates which optional arguments are "
35553 "meaningful.  The bitmask is also checked to see if it contains bits set "
35554 "which the daemon does not know about (eg. if more optional arguments were "
35555 "added in a later version of the library), and this causes the call to be "
35556 "rejected."
35557 msgstr ""
35558
35559 #. type: textblock
35560 #: ../src/guestfs.pod:2395
35561 msgid "The reply message for ordinary functions is:"
35562 msgstr ""
35563
35564 #. type: verbatim
35565 #: ../src/guestfs.pod:2397
35566 #, no-wrap
35567 msgid ""
35568 " total length (header + ret,\n"
35569 "      but not including the length word itself)\n"
35570 " struct guestfs_message_header (encoded as XDR)\n"
35571 " struct guestfs_<foo>_ret (encoded as XDR)\n"
35572 "\n"
35573 msgstr ""
35574
35575 #. type: textblock
35576 #: ../src/guestfs.pod:2402
35577 msgid ""
35578 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
35579 "functions that return no formal return values."
35580 msgstr ""
35581
35582 #. type: textblock
35583 #: ../src/guestfs.pod:2405
35584 msgid ""
35585 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
35586 msgstr ""
35587
35588 #. type: textblock
35589 #: ../src/guestfs.pod:2408
35590 msgid ""
35591 "In the case of an error, a flag is set in the header, and the reply message "
35592 "is slightly changed:"
35593 msgstr ""
35594
35595 #. type: verbatim
35596 #: ../src/guestfs.pod:2411
35597 #, no-wrap
35598 msgid ""
35599 " total length (header + error,\n"
35600 "      but not including the length word itself)\n"
35601 " struct guestfs_message_header (encoded as XDR)\n"
35602 " struct guestfs_message_error (encoded as XDR)\n"
35603 "\n"
35604 msgstr ""
35605
35606 #. type: textblock
35607 #: ../src/guestfs.pod:2416
35608 msgid ""
35609 "The C<guestfs_message_error> structure contains the error message as a "
35610 "string."
35611 msgstr ""
35612
35613 #. type: =head3
35614 #: ../src/guestfs.pod:2419
35615 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
35616 msgstr ""
35617
35618 #. type: textblock
35619 #: ../src/guestfs.pod:2421
35620 msgid ""
35621 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
35622 "The normal request message is sent (see above).  However this is followed by "
35623 "a sequence of file chunks."
35624 msgstr ""
35625
35626 #. type: verbatim
35627 #: ../src/guestfs.pod:2425
35628 #, no-wrap
35629 msgid ""
35630 " total length (header + arguments,\n"
35631 "      but not including the length word itself,\n"
35632 "      and not including the chunks)\n"
35633 " struct guestfs_message_header (encoded as XDR)\n"
35634 " struct guestfs_<foo>_args (encoded as XDR)\n"
35635 " sequence of chunks for FileIn param #0\n"
35636 " sequence of chunks for FileIn param #1 etc.\n"
35637 "\n"
35638 msgstr ""
35639
35640 #. type: textblock
35641 #: ../src/guestfs.pod:2433
35642 msgid "The \"sequence of chunks\" is:"
35643 msgstr ""
35644
35645 #. type: verbatim
35646 #: ../src/guestfs.pod:2435
35647 #, no-wrap
35648 msgid ""
35649 " length of chunk (not including length word itself)\n"
35650 " struct guestfs_chunk (encoded as XDR)\n"
35651 " length of chunk\n"
35652 " struct guestfs_chunk (encoded as XDR)\n"
35653 "   ...\n"
35654 " length of chunk\n"
35655 " struct guestfs_chunk (with data.data_len == 0)\n"
35656 "\n"
35657 msgstr ""
35658
35659 #. type: textblock
35660 #: ../src/guestfs.pod:2443
35661 msgid ""
35662 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
35663 "is set in the final chunk to indicate either successful completion or early "
35664 "cancellation."
35665 msgstr ""
35666
35667 #. type: textblock
35668 #: ../src/guestfs.pod:2447
35669 msgid ""
35670 "At time of writing there are no functions that have more than one FileIn "
35671 "parameter.  However this is (theoretically) supported, by sending the "
35672 "sequence of chunks for each FileIn parameter one after another (from left to "
35673 "right)."
35674 msgstr ""
35675
35676 #. type: textblock
35677 #: ../src/guestfs.pod:2452
35678 msgid ""
35679 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
35680 "transfer.  The library does this by sending a chunk with a special flag set "
35681 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
35682 "RPC, does I<not> send any reply, and goes back to reading the next request."
35683 msgstr ""
35684
35685 #. type: textblock
35686 #: ../src/guestfs.pod:2458
35687 msgid ""
35688 "The daemon may also cancel.  It does this by writing a special word "
35689 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
35690 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
35691 "cancel chunk).  The special word is chosen so that even if cancellation "
35692 "happens right at the end of the transfer (after the library has finished "
35693 "writing and has started listening for the reply), the \"spurious\" cancel "
35694 "flag will not be confused with the reply message."
35695 msgstr ""
35696
35697 #. type: textblock
35698 #: ../src/guestfs.pod:2467
35699 msgid ""
35700 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
35701 "limit), and also files where the size is not known in advance (eg. from "
35702 "pipes or sockets).  However the chunks are rather small "
35703 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
35704 "to keep much in memory."
35705 msgstr ""
35706
35707 #. type: =head3
35708 #: ../src/guestfs.pod:2473
35709 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
35710 msgstr ""
35711
35712 #. type: textblock
35713 #: ../src/guestfs.pod:2475
35714 msgid ""
35715 "The protocol for FileOut parameters is exactly the same as for FileIn "
35716 "parameters, but with the roles of daemon and library reversed."
35717 msgstr ""
35718
35719 #. type: verbatim
35720 #: ../src/guestfs.pod:2478
35721 #, no-wrap
35722 msgid ""
35723 " total length (header + ret,\n"
35724 "      but not including the length word itself,\n"
35725 "      and not including the chunks)\n"
35726 " struct guestfs_message_header (encoded as XDR)\n"
35727 " struct guestfs_<foo>_ret (encoded as XDR)\n"
35728 " sequence of chunks for FileOut param #0\n"
35729 " sequence of chunks for FileOut param #1 etc.\n"
35730 "\n"
35731 msgstr ""
35732
35733 #. type: =head3
35734 #: ../src/guestfs.pod:2486
35735 msgid "INITIAL MESSAGE"
35736 msgstr ""
35737
35738 #. type: textblock
35739 #: ../src/guestfs.pod:2488
35740 msgid ""
35741 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
35742 "which indicates that the guest and daemon is alive.  This is what L</"
35743 "guestfs_launch> waits for."
35744 msgstr ""
35745
35746 #. type: =head3
35747 #: ../src/guestfs.pod:2492
35748 msgid "PROGRESS NOTIFICATION MESSAGES"
35749 msgstr ""
35750
35751 #. type: textblock
35752 #: ../src/guestfs.pod:2494
35753 msgid ""
35754 "The daemon may send progress notification messages at any time.  These are "
35755 "distinguished by the normal length word being replaced by "
35756 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
35757 msgstr ""
35758
35759 #. type: textblock
35760 #: ../src/guestfs.pod:2498
35761 msgid ""
35762 "The library turns them into progress callbacks (see L</"
35763 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
35764 "if not."
35765 msgstr ""
35766
35767 #. type: textblock
35768 #: ../src/guestfs.pod:2502
35769 msgid ""
35770 "The daemon self-limits the frequency of progress messages it sends (see "
35771 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
35772 "messages."
35773 msgstr ""
35774
35775 #. type: =head1
35776 #: ../src/guestfs.pod:2506
35777 msgid "LIBGUESTFS VERSION NUMBERS"
35778 msgstr ""
35779
35780 #. type: textblock
35781 #: ../src/guestfs.pod:2508
35782 msgid ""
35783 "Since April 2010, libguestfs has started to make separate development and "
35784 "stable releases, along with corresponding branches in our git repository.  "
35785 "These separate releases can be identified by version number:"
35786 msgstr ""
35787
35788 #. type: verbatim
35789 #: ../src/guestfs.pod:2513
35790 #, no-wrap
35791 msgid ""
35792 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
35793 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
35794 "       |\n"
35795 "       v\n"
35796 " 1  .  3  .  5\n"
35797 " ^           ^\n"
35798 " |           |\n"
35799 " |           `-------- sub-version\n"
35800 " |\n"
35801 " `------ always '1' because we don't change the ABI\n"
35802 "\n"
35803 msgstr ""
35804
35805 #. type: textblock
35806 #: ../src/guestfs.pod:2524
35807 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
35808 msgstr ""
35809
35810 #. type: textblock
35811 #: ../src/guestfs.pod:2526
35812 msgid ""
35813 "As time passes we cherry pick fixes from the development branch and backport "
35814 "those into the stable branch, the effect being that the stable branch should "
35815 "get more stable and less buggy over time.  So the stable releases are ideal "
35816 "for people who don't need new features but would just like the software to "
35817 "work."
35818 msgstr ""
35819
35820 #. type: textblock
35821 #: ../src/guestfs.pod:2532
35822 msgid "Our criteria for backporting changes are:"
35823 msgstr ""
35824
35825 #. type: textblock
35826 #: ../src/guestfs.pod:2538
35827 msgid ""
35828 "Documentation changes which don't affect any code are backported unless the "
35829 "documentation refers to a future feature which is not in stable."
35830 msgstr ""
35831
35832 #. type: textblock
35833 #: ../src/guestfs.pod:2544
35834 msgid ""
35835 "Bug fixes which are not controversial, fix obvious problems, and have been "
35836 "well tested are backported."
35837 msgstr ""
35838
35839 #. type: textblock
35840 #: ../src/guestfs.pod:2549
35841 msgid ""
35842 "Simple rearrangements of code which shouldn't affect how it works get "
35843 "backported.  This is so that the code in the two branches doesn't get too "
35844 "far out of step, allowing us to backport future fixes more easily."
35845 msgstr ""
35846
35847 #. type: textblock
35848 #: ../src/guestfs.pod:2555
35849 msgid ""
35850 "We I<don't> backport new features, new APIs, new tools etc, except in one "
35851 "exceptional case: the new feature is required in order to implement an "
35852 "important bug fix."
35853 msgstr ""
35854
35855 #. type: textblock
35856 #: ../src/guestfs.pod:2561
35857 msgid ""
35858 "A new stable branch starts when we think the new features in development are "
35859 "substantial and compelling enough over the current stable branch to warrant "
35860 "it.  When that happens we create new stable and development versions 1.N.0 "
35861 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
35862 "stable at this point, but by backporting fixes from development, that branch "
35863 "will stabilize over time."
35864 msgstr ""
35865
35866 #. type: =head1
35867 #: ../src/guestfs.pod:2569
35868 msgid "EXTENDING LIBGUESTFS"
35869 msgstr ""
35870
35871 #. type: =head2
35872 #: ../src/guestfs.pod:2571
35873 msgid "ADDING A NEW API ACTION"
35874 msgstr ""
35875
35876 #. type: textblock
35877 #: ../src/guestfs.pod:2573
35878 msgid ""
35879 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
35880 "documentation) are generated, and this makes it easy to extend the "
35881 "libguestfs API."
35882 msgstr ""
35883
35884 #. type: textblock
35885 #: ../src/guestfs.pod:2577
35886 msgid "To add a new API action there are two changes:"
35887 msgstr ""
35888
35889 #. type: textblock
35890 #: ../src/guestfs.pod:2583
35891 msgid ""
35892 "You need to add a description of the call (name, parameters, return type, "
35893 "tests, documentation) to C<generator/generator_actions.ml>."
35894 msgstr ""
35895
35896 #. type: textblock
35897 #: ../src/guestfs.pod:2586
35898 msgid ""
35899 "There are two sorts of API action, depending on whether the call goes "
35900 "through to the daemon in the appliance, or is serviced entirely by the "
35901 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
35902 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
35903 "an example of the latter, since a trace flag is maintained in the handle and "
35904 "all tracing is done on the library side."
35905 msgstr ""
35906
35907 #. type: textblock
35908 #: ../src/guestfs.pod:2594
35909 msgid ""
35910 "Most new actions are of the first type, and get added to the "
35911 "C<daemon_functions> list.  Each function has a unique procedure number used "
35912 "in the RPC protocol which is assigned to that action when we publish "
35913 "libguestfs and cannot be reused.  Take the latest procedure number and "
35914 "increment it."
35915 msgstr ""
35916
35917 #. type: textblock
35918 #: ../src/guestfs.pod:2600
35919 msgid ""
35920 "For library-only actions of the second type, add to the "
35921 "C<non_daemon_functions> list.  Since these functions are serviced by the "
35922 "library and do not travel over the RPC mechanism to the daemon, these "
35923 "functions do not need a procedure number, and so the procedure number is set "
35924 "to C<-1>."
35925 msgstr ""
35926
35927 #. type: textblock
35928 #: ../src/guestfs.pod:2608
35929 msgid "Implement the action (in C):"
35930 msgstr ""
35931
35932 #. type: textblock
35933 #: ../src/guestfs.pod:2610
35934 msgid ""
35935 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
35936 "C<daemon/> directory."
35937 msgstr ""
35938
35939 #. type: textblock
35940 #: ../src/guestfs.pod:2613
35941 msgid ""
35942 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
35943 "(note: double underscore) in the C<src/> directory."
35944 msgstr ""
35945
35946 #. type: textblock
35947 #: ../src/guestfs.pod:2616
35948 msgid "In either case, use another function as an example of what to do."
35949 msgstr ""
35950
35951 #. type: textblock
35952 #: ../src/guestfs.pod:2620
35953 msgid "After making these changes, use C<make> to compile."
35954 msgstr ""
35955
35956 #. type: textblock
35957 #: ../src/guestfs.pod:2622
35958 msgid ""
35959 "Note that you don't need to implement the RPC, language bindings, manual "
35960 "pages or anything else.  It's all automatically generated from the OCaml "
35961 "description."
35962 msgstr ""
35963
35964 #. type: =head2
35965 #: ../src/guestfs.pod:2626
35966 msgid "ADDING TESTS FOR AN API ACTION"
35967 msgstr ""
35968
35969 #. type: textblock
35970 #: ../src/guestfs.pod:2628
35971 msgid ""
35972 "You can supply zero or as many tests as you want per API call.  The tests "
35973 "can either be added as part of the API description (C<generator/"
35974 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
35975 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
35976 "slower, so if possible use the first method."
35977 msgstr ""
35978
35979 #. type: textblock
35980 #: ../src/guestfs.pod:2634
35981 msgid ""
35982 "The following describes the test environment used when you add an API test "
35983 "in C<generator_actions.ml>."
35984 msgstr ""
35985
35986 #. type: textblock
35987 #: ../src/guestfs.pod:2637
35988 msgid "The test environment has 4 block devices:"
35989 msgstr ""
35990
35991 #. type: =item
35992 #: ../src/guestfs.pod:2641
35993 msgid "C</dev/sda> 500MB"
35994 msgstr ""
35995
35996 #. type: textblock
35997 #: ../src/guestfs.pod:2643
35998 msgid "General block device for testing."
35999 msgstr ""
36000
36001 #. type: =item
36002 #: ../src/guestfs.pod:2645
36003 msgid "C</dev/sdb> 50MB"
36004 msgstr ""
36005
36006 #. type: textblock
36007 #: ../src/guestfs.pod:2647
36008 msgid ""
36009 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
36010 "operations."
36011 msgstr ""
36012
36013 #. type: =item
36014 #: ../src/guestfs.pod:2650
36015 msgid "C</dev/sdc> 10MB"
36016 msgstr ""
36017
36018 #. type: textblock
36019 #: ../src/guestfs.pod:2652
36020 msgid "Used in a few tests where two block devices are needed."
36021 msgstr ""
36022
36023 #. type: =item
36024 #: ../src/guestfs.pod:2654
36025 msgid "C</dev/sdd>"
36026 msgstr ""
36027
36028 #. type: textblock
36029 #: ../src/guestfs.pod:2656
36030 msgid "ISO with fixed content (see C<images/test.iso>)."
36031 msgstr ""
36032
36033 #. type: textblock
36034 #: ../src/guestfs.pod:2660
36035 msgid ""
36036 "To be able to run the tests in a reasonable amount of time, the libguestfs "
36037 "appliance and block devices are reused between tests.  So don't try testing "
36038 "L</guestfs_kill_subprocess> :-x"
36039 msgstr ""
36040
36041 #. type: textblock
36042 #: ../src/guestfs.pod:2664
36043 msgid ""
36044 "Each test starts with an initial scenario, selected using one of the "
36045 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
36046 "initialize the disks mentioned above in a particular way as documented in "
36047 "C<generator_types.ml>.  You should not assume anything about the previous "
36048 "contents of other disks that are not initialized."
36049 msgstr ""
36050
36051 #. type: textblock
36052 #: ../src/guestfs.pod:2670
36053 msgid ""
36054 "You can add a prerequisite clause to any individual test.  This is a run-"
36055 "time check, which, if it fails, causes the test to be skipped.  Useful if "
36056 "testing a command which might not work on all variations of libguestfs "
36057 "builds.  A test that has prerequisite of C<Always> means to run "
36058 "unconditionally."
36059 msgstr ""
36060
36061 #. type: textblock
36062 #: ../src/guestfs.pod:2676
36063 msgid ""
36064 "In addition, packagers can skip individual tests by setting environment "
36065 "variables before running C<make check>."
36066 msgstr ""
36067
36068 #. type: verbatim
36069 #: ../src/guestfs.pod:2679
36070 #, no-wrap
36071 msgid ""
36072 " SKIP_TEST_<CMD>_<NUM>=1\n"
36073 "\n"
36074 msgstr ""
36075
36076 #. type: textblock
36077 #: ../src/guestfs.pod:2681
36078 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
36079 msgstr ""
36080
36081 #. type: textblock
36082 #: ../src/guestfs.pod:2683
36083 msgid "or:"
36084 msgstr ""
36085
36086 #. type: verbatim
36087 #: ../src/guestfs.pod:2685
36088 #, no-wrap
36089 msgid ""
36090 " SKIP_TEST_<CMD>=1\n"
36091 "\n"
36092 msgstr ""
36093
36094 #. type: textblock
36095 #: ../src/guestfs.pod:2687
36096 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
36097 msgstr ""
36098
36099 #. type: textblock
36100 #: ../src/guestfs.pod:2689
36101 msgid "Packagers can run only certain tests by setting for example:"
36102 msgstr ""
36103
36104 #. type: verbatim
36105 #: ../src/guestfs.pod:2691
36106 #, no-wrap
36107 msgid ""
36108 " TEST_ONLY=\"vfs_type zerofree\"\n"
36109 "\n"
36110 msgstr ""
36111
36112 #. type: textblock
36113 #: ../src/guestfs.pod:2693
36114 msgid ""
36115 "See C<capitests/tests.c> for more details of how these environment variables "
36116 "work."
36117 msgstr ""
36118
36119 #. type: =head2
36120 #: ../src/guestfs.pod:2696
36121 msgid "DEBUGGING NEW API ACTIONS"
36122 msgstr ""
36123
36124 #. type: textblock
36125 #: ../src/guestfs.pod:2698
36126 msgid "Test new actions work before submitting them."
36127 msgstr ""
36128
36129 #. type: textblock
36130 #: ../src/guestfs.pod:2700
36131 msgid "You can use guestfish to try out new commands."
36132 msgstr ""
36133
36134 #. type: textblock
36135 #: ../src/guestfs.pod:2702
36136 msgid ""
36137 "Debugging the daemon is a problem because it runs inside a minimal "
36138 "environment.  However you can fprintf messages in the daemon to stderr, and "
36139 "they will show up if you use C<guestfish -v>."
36140 msgstr ""
36141
36142 #. type: =head2
36143 #: ../src/guestfs.pod:2706
36144 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
36145 msgstr ""
36146
36147 #. type: textblock
36148 #: ../src/guestfs.pod:2708
36149 msgid ""
36150 "Our C source code generally adheres to some basic code-formatting "
36151 "conventions.  The existing code base is not totally consistent on this "
36152 "front, but we do prefer that contributed code be formatted similarly.  In "
36153 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
36154 "indentation level, and other than that, follow the K&R style."
36155 msgstr ""
36156
36157 #. type: textblock
36158 #: ../src/guestfs.pod:2714
36159 msgid ""
36160 "If you use Emacs, add the following to one of one of your start-up files (e."
36161 "g., ~/.emacs), to help ensure that you get indentation right:"
36162 msgstr ""
36163
36164 #. type: verbatim
36165 #: ../src/guestfs.pod:2717
36166 #, no-wrap
36167 msgid ""
36168 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
36169 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
36170 " (add-hook 'find-file-hook\n"
36171 "     '(lambda () (if (and buffer-file-name\n"
36172 "                          (string-match \"/libguestfs\\\\>\"\n"
36173 "                              (buffer-file-name))\n"
36174 "                          (not (string-equal mode-name \"Change Log\"))\n"
36175 "                          (not (string-equal mode-name \"Makefile\")))\n"
36176 "                     (setq indent-tabs-mode nil))))\n"
36177 " \n"
36178 msgstr ""
36179
36180 #. type: verbatim
36181 #: ../src/guestfs.pod:2727
36182 #, no-wrap
36183 msgid ""
36184 " ;;; When editing C sources in libguestfs, use this style.\n"
36185 " (defun libguestfs-c-mode ()\n"
36186 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
36187 "   (interactive)\n"
36188 "   (c-set-style \"K&R\")\n"
36189 "   (setq c-indent-level 2)\n"
36190 "   (setq c-basic-offset 2))\n"
36191 " (add-hook 'c-mode-hook\n"
36192 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
36193 "                               (buffer-file-name))\n"
36194 "                           (libguestfs-c-mode))))\n"
36195 "\n"
36196 msgstr ""
36197
36198 #. type: textblock
36199 #: ../src/guestfs.pod:2739
36200 msgid "Enable warnings when compiling (and fix any problems this finds):"
36201 msgstr ""
36202
36203 #. type: verbatim
36204 #: ../src/guestfs.pod:2742
36205 #, no-wrap
36206 msgid ""
36207 " ./configure --enable-gcc-warnings\n"
36208 "\n"
36209 msgstr ""
36210
36211 #. type: textblock
36212 #: ../src/guestfs.pod:2744
36213 msgid "Useful targets are:"
36214 msgstr ""
36215
36216 #. type: verbatim
36217 #: ../src/guestfs.pod:2746
36218 #, no-wrap
36219 msgid ""
36220 " make syntax-check  # checks the syntax of the C code\n"
36221 " make check         # runs the test suite\n"
36222 "\n"
36223 msgstr ""
36224
36225 #. type: =head2
36226 #: ../src/guestfs.pod:2749
36227 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
36228 msgstr ""
36229
36230 #. type: textblock
36231 #: ../src/guestfs.pod:2751
36232 msgid ""
36233 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
36234 "which are used to do shell quoting."
36235 msgstr ""
36236
36237 #. type: =item
36238 #: ../src/guestfs.pod:2756
36239 msgid "%Q"
36240 msgstr ""
36241
36242 #. type: textblock
36243 #: ../src/guestfs.pod:2758
36244 msgid ""
36245 "Simple shell quoted string.  Any spaces or other shell characters are "
36246 "escaped for you."
36247 msgstr ""
36248
36249 #. type: =item
36250 #: ../src/guestfs.pod:2761
36251 msgid "%R"
36252 msgstr ""
36253
36254 #. type: textblock
36255 #: ../src/guestfs.pod:2763
36256 msgid ""
36257 "Same as C<%Q> except the string is treated as a path which is prefixed by "
36258 "the sysroot."
36259 msgstr ""
36260
36261 #. type: verbatim
36262 #: ../src/guestfs.pod:2770
36263 #, no-wrap
36264 msgid ""
36265 " asprintf (&cmd, \"cat %R\", path);\n"
36266 "\n"
36267 msgstr ""
36268
36269 #. type: textblock
36270 #: ../src/guestfs.pod:2772
36271 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
36272 msgstr ""
36273
36274 #. type: textblock
36275 #: ../src/guestfs.pod:2774
36276 msgid ""
36277 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
36278 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
36279 "they are not passed via the shell (instead, straight to exec).  You probably "
36280 "want to use the C<sysroot_path()> function however."
36281 msgstr ""
36282
36283 #. type: =head2
36284 #: ../src/guestfs.pod:2780
36285 msgid "SUBMITTING YOUR NEW API ACTIONS"
36286 msgstr ""
36287
36288 #. type: textblock
36289 #: ../src/guestfs.pod:2782
36290 msgid ""
36291 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
36292 "libguestfs> and CC to L<rjones@redhat.com>."
36293 msgstr ""
36294
36295 #. type: =head2
36296 #: ../src/guestfs.pod:2786
36297 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
36298 msgstr ""
36299
36300 #. type: textblock
36301 #: ../src/guestfs.pod:2788
36302 msgid "We support i18n (gettext anyhow) in the library."
36303 msgstr ""
36304
36305 #. type: textblock
36306 #: ../src/guestfs.pod:2790
36307 msgid ""
36308 "However many messages come from the daemon, and we don't translate those at "
36309 "the moment.  One reason is that the appliance generally has all locale files "
36310 "removed from it, because they take up a lot of space.  So we'd have to readd "
36311 "some of those, as well as copying our PO files into the appliance."
36312 msgstr ""
36313
36314 #. type: textblock
36315 #: ../src/guestfs.pod:2796
36316 msgid ""
36317 "Debugging messages are never translated, since they are intended for the "
36318 "programmers."
36319 msgstr ""
36320
36321 #. type: =head2
36322 #: ../src/guestfs.pod:2799
36323 msgid "SOURCE CODE SUBDIRECTORIES"
36324 msgstr ""
36325
36326 #. type: textblock
36327 #: ../src/guestfs.pod:2805
36328 msgid "The libguestfs appliance, build scripts and so on."
36329 msgstr ""
36330
36331 #. type: =item
36332 #: ../src/guestfs.pod:2807
36333 msgid "C<capitests>"
36334 msgstr ""
36335
36336 #. type: textblock
36337 #: ../src/guestfs.pod:2809
36338 msgid "Automated tests of the C API."
36339 msgstr ""
36340
36341 #. type: =item
36342 #: ../src/guestfs.pod:2811
36343 msgid "C<cat>"
36344 msgstr ""
36345
36346 #. type: textblock
36347 #: ../src/guestfs.pod:2813
36348 msgid ""
36349 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
36350 "documentation."
36351 msgstr ""
36352
36353 #. type: =item
36354 #: ../src/guestfs.pod:2816
36355 msgid "C<caution>"
36356 msgstr ""
36357
36358 #. type: textblock
36359 #: ../src/guestfs.pod:2818
36360 msgid ""
36361 "Safety and liveness tests of components that libguestfs depends upon (not of "
36362 "libguestfs itself).  Mainly this is for qemu and the kernel."
36363 msgstr ""
36364
36365 #. type: =item
36366 #: ../src/guestfs.pod:2821
36367 msgid "C<contrib>"
36368 msgstr ""
36369
36370 #. type: textblock
36371 #: ../src/guestfs.pod:2823
36372 msgid "Outside contributions, experimental parts."
36373 msgstr ""
36374
36375 #. type: =item
36376 #: ../src/guestfs.pod:2825
36377 msgid "C<daemon>"
36378 msgstr ""
36379
36380 #. type: textblock
36381 #: ../src/guestfs.pod:2827
36382 msgid ""
36383 "The daemon that runs inside the libguestfs appliance and carries out actions."
36384 msgstr ""
36385
36386 #. type: =item
36387 #: ../src/guestfs.pod:2830
36388 msgid "C<df>"
36389 msgstr ""
36390
36391 #. type: textblock
36392 #: ../src/guestfs.pod:2832
36393 msgid "L<virt-df(1)> command and documentation."
36394 msgstr ""
36395
36396 #. type: =item
36397 #: ../src/guestfs.pod:2834
36398 msgid "C<edit>"
36399 msgstr ""
36400
36401 #. type: textblock
36402 #: ../src/guestfs.pod:2836
36403 msgid "L<virt-edit(1)> command and documentation."
36404 msgstr ""
36405
36406 #. type: =item
36407 #: ../src/guestfs.pod:2838
36408 msgid "C<examples>"
36409 msgstr ""
36410
36411 #. type: textblock
36412 #: ../src/guestfs.pod:2840
36413 msgid "C API example code."
36414 msgstr ""
36415
36416 #. type: =item
36417 #: ../src/guestfs.pod:2842
36418 msgid "C<fish>"
36419 msgstr ""
36420
36421 #. type: textblock
36422 #: ../src/guestfs.pod:2844
36423 msgid ""
36424 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
36425 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
36426 "L<virt-tar-out(1)>."
36427 msgstr ""
36428
36429 #. type: =item
36430 #: ../src/guestfs.pod:2848
36431 msgid "C<fuse>"
36432 msgstr ""
36433
36434 #. type: textblock
36435 #: ../src/guestfs.pod:2850
36436 msgid ""
36437 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
36438 msgstr ""
36439
36440 #. type: =item
36441 #: ../src/guestfs.pod:2852
36442 msgid "C<generator>"
36443 msgstr ""
36444
36445 #. type: textblock
36446 #: ../src/guestfs.pod:2854
36447 msgid ""
36448 "The crucially important generator, used to automatically generate large "
36449 "amounts of boilerplate C code for things like RPC and bindings."
36450 msgstr ""
36451
36452 #. type: =item
36453 #: ../src/guestfs.pod:2857
36454 msgid "C<images>"
36455 msgstr ""
36456
36457 #. type: textblock
36458 #: ../src/guestfs.pod:2859
36459 msgid "Files used by the test suite."
36460 msgstr ""
36461
36462 #. type: textblock
36463 #: ../src/guestfs.pod:2861
36464 msgid "Some \"phony\" guest images which we test against."
36465 msgstr ""
36466
36467 #. type: =item
36468 #: ../src/guestfs.pod:2863
36469 msgid "C<inspector>"
36470 msgstr ""
36471
36472 #. type: textblock
36473 #: ../src/guestfs.pod:2865
36474 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
36475 msgstr ""
36476
36477 #. type: =item
36478 #: ../src/guestfs.pod:2867
36479 msgid "C<logo>"
36480 msgstr ""
36481
36482 #. type: textblock
36483 #: ../src/guestfs.pod:2869
36484 msgid "Logo used on the website.  The fish is called Arthur by the way."
36485 msgstr ""
36486
36487 #. type: =item
36488 #: ../src/guestfs.pod:2871
36489 msgid "C<m4>"
36490 msgstr ""
36491
36492 #. type: textblock
36493 #: ../src/guestfs.pod:2873
36494 msgid "M4 macros used by autoconf."
36495 msgstr ""
36496
36497 #. type: =item
36498 #: ../src/guestfs.pod:2875
36499 msgid "C<po>"
36500 msgstr ""
36501
36502 #. type: textblock
36503 #: ../src/guestfs.pod:2877
36504 msgid "Translations of simple gettext strings."
36505 msgstr ""
36506
36507 #. type: =item
36508 #: ../src/guestfs.pod:2879
36509 msgid "C<po-docs>"
36510 msgstr ""
36511
36512 #. type: textblock
36513 #: ../src/guestfs.pod:2881
36514 msgid ""
36515 "The build infrastructure and PO files for translations of manpages and POD "
36516 "files.  Eventually this will be combined with the C<po> directory, but that "
36517 "is rather complicated."
36518 msgstr ""
36519
36520 #. type: =item
36521 #: ../src/guestfs.pod:2885
36522 msgid "C<regressions>"
36523 msgstr ""
36524
36525 #. type: textblock
36526 #: ../src/guestfs.pod:2887
36527 msgid "Regression tests."
36528 msgstr ""
36529
36530 #. type: =item
36531 #: ../src/guestfs.pod:2889
36532 msgid "C<rescue>"
36533 msgstr ""
36534
36535 #. type: textblock
36536 #: ../src/guestfs.pod:2891
36537 msgid "L<virt-rescue(1)> command and documentation."
36538 msgstr ""
36539
36540 #. type: =item
36541 #: ../src/guestfs.pod:2893
36542 msgid "C<resize>"
36543 msgstr ""
36544
36545 #. type: textblock
36546 #: ../src/guestfs.pod:2895
36547 msgid "L<virt-resize(1)> command and documentation."
36548 msgstr ""
36549
36550 #. type: =item
36551 #: ../src/guestfs.pod:2897
36552 msgid "C<src>"
36553 msgstr ""
36554
36555 #. type: textblock
36556 #: ../src/guestfs.pod:2899
36557 msgid "Source code to the C library."
36558 msgstr ""
36559
36560 #. type: =item
36561 #: ../src/guestfs.pod:2901
36562 msgid "C<tools>"
36563 msgstr ""
36564
36565 #. type: textblock
36566 #: ../src/guestfs.pod:2903
36567 msgid ""
36568 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
36569 msgstr ""
36570
36571 #. type: =item
36572 #: ../src/guestfs.pod:2905
36573 msgid "C<test-tool>"
36574 msgstr ""
36575
36576 #. type: textblock
36577 #: ../src/guestfs.pod:2907
36578 msgid ""
36579 "Test tool for end users to test if their qemu/kernel combination will work "
36580 "with libguestfs."
36581 msgstr ""
36582
36583 #. type: =item
36584 #: ../src/guestfs.pod:2910
36585 msgid "C<csharp>"
36586 msgstr ""
36587
36588 #. type: =item
36589 #: ../src/guestfs.pod:2912
36590 msgid "C<haskell>"
36591 msgstr ""
36592
36593 #. type: =item
36594 #: ../src/guestfs.pod:2914
36595 msgid "C<java>"
36596 msgstr ""
36597
36598 #. type: =item
36599 #: ../src/guestfs.pod:2916
36600 msgid "C<ocaml>"
36601 msgstr ""
36602
36603 #. type: =item
36604 #: ../src/guestfs.pod:2918
36605 msgid "C<php>"
36606 msgstr ""
36607
36608 #. type: =item
36609 #: ../src/guestfs.pod:2920
36610 msgid "C<perl>"
36611 msgstr ""
36612
36613 #. type: =item
36614 #: ../src/guestfs.pod:2922
36615 msgid "C<python>"
36616 msgstr ""
36617
36618 #. type: =item
36619 #: ../src/guestfs.pod:2924
36620 msgid "C<ruby>"
36621 msgstr ""
36622
36623 #. type: textblock
36624 #: ../src/guestfs.pod:2926
36625 msgid "Language bindings."
36626 msgstr ""
36627
36628 #. type: =head2
36629 #: ../src/guestfs.pod:2930
36630 msgid "MAKING A STABLE RELEASE"
36631 msgstr ""
36632
36633 #. type: textblock
36634 #: ../src/guestfs.pod:2932
36635 msgid ""
36636 "When we make a stable release, there are several steps documented here.  See "
36637 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
36638 "branch policy."
36639 msgstr ""
36640
36641 #. type: textblock
36642 #: ../src/guestfs.pod:2940
36643 msgid ""
36644 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
36645 msgstr ""
36646
36647 #. type: textblock
36648 #: ../src/guestfs.pod:2945
36649 msgid "Finalize RELEASE-NOTES."
36650 msgstr ""
36651
36652 #. type: textblock
36653 #: ../src/guestfs.pod:2949
36654 msgid "Update ROADMAP."
36655 msgstr ""
36656
36657 #. type: textblock
36658 #: ../src/guestfs.pod:2953
36659 msgid "Run C<src/api-support/update-from-tarballs.sh>."
36660 msgstr ""
36661
36662 #. type: textblock
36663 #: ../src/guestfs.pod:2957
36664 msgid "Push and pull from Transifex."
36665 msgstr ""
36666
36667 #. type: textblock
36668 #: ../src/guestfs.pod:2959
36669 msgid "Run:"
36670 msgstr ""
36671
36672 #. type: verbatim
36673 #: ../src/guestfs.pod:2961
36674 #, no-wrap
36675 msgid ""
36676 " tx push -s\n"
36677 "\n"
36678 msgstr ""
36679
36680 #. type: textblock
36681 #: ../src/guestfs.pod:2963
36682 msgid "to push the latest POT files to Transifex.  Then run:"
36683 msgstr ""
36684
36685 #. type: verbatim
36686 #: ../src/guestfs.pod:2965
36687 #, no-wrap
36688 msgid ""
36689 " ./tx-pull.sh\n"
36690 "\n"
36691 msgstr ""
36692
36693 #. type: textblock
36694 #: ../src/guestfs.pod:2967
36695 msgid "which is a wrapper to pull the latest translated C<*.po> files."
36696 msgstr ""
36697
36698 #. type: textblock
36699 #: ../src/guestfs.pod:2971
36700 msgid ""
36701 "Create new stable and development directories under L<http://libguestfs.org/"
36702 "download>."
36703 msgstr ""
36704
36705 #. type: textblock
36706 #: ../src/guestfs.pod:2976
36707 msgid "Create the branch in git:"
36708 msgstr ""
36709
36710 #. type: verbatim
36711 #: ../src/guestfs.pod:2978
36712 #, no-wrap
36713 msgid ""
36714 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
36715 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
36716 " git branch stable-1.XX\n"
36717 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
36718 "\n"
36719 msgstr ""
36720
36721 #. type: =head1
36722 #: ../src/guestfs.pod:2985
36723 msgid "LIMITS"
36724 msgstr ""
36725
36726 #. type: =head2
36727 #: ../src/guestfs.pod:2987
36728 msgid "PROTOCOL LIMITS"
36729 msgstr ""
36730
36731 #. type: textblock
36732 #: ../src/guestfs.pod:2989
36733 msgid ""
36734 "Internally libguestfs uses a message-based protocol to pass API calls and "
36735 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
36736 "plenty more detail about this).  The maximum message size used by the "
36737 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
36738 "aware of this limit.  The API calls which may be affected are individually "
36739 "documented, with a link back to this section of the documentation."
36740 msgstr ""
36741
36742 #. type: textblock
36743 #: ../src/guestfs.pod:2997
36744 msgid ""
36745 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
36746 "a simple string.  Because this string is at some point internally encoded as "
36747 "a message, the maximum size that it can return is slightly under 4 MB.  If "
36748 "the requested file is larger than this then you will get an error."
36749 msgstr ""
36750
36751 #. type: textblock
36752 #: ../src/guestfs.pod:3003
36753 msgid ""
36754 "In order to transfer large files into and out of the guest filesystem, you "
36755 "need to use particular calls that support this.  The sections L</UPLOADING> "
36756 "and L</DOWNLOADING> document how to do this."
36757 msgstr ""
36758
36759 #. type: textblock
36760 #: ../src/guestfs.pod:3007
36761 msgid ""
36762 "You might also consider mounting the disk image using our FUSE filesystem "
36763 "support (L<guestmount(1)>)."
36764 msgstr ""
36765
36766 #. type: =head2
36767 #: ../src/guestfs.pod:3010
36768 msgid "MAXIMUM NUMBER OF DISKS"
36769 msgstr ""
36770
36771 #. type: textblock
36772 #: ../src/guestfs.pod:3012
36773 msgid "When using virtio disks (the default) the current limit is B<25> disks."
36774 msgstr ""
36775
36776 #. type: textblock
36777 #: ../src/guestfs.pod:3015
36778 msgid ""
36779 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
36780 "slots.  However febootstrap only understands disks with names C</dev/vda> "
36781 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
36782 "purposes."
36783 msgstr ""
36784
36785 #. type: textblock
36786 #: ../src/guestfs.pod:3020
36787 msgid ""
36788 "We are working to substantially raise this limit in future versions but it "
36789 "requires complex changes to qemu."
36790 msgstr ""
36791
36792 #. type: textblock
36793 #: ../src/guestfs.pod:3023
36794 msgid ""
36795 "In future versions of libguestfs it should also be possible to \"hot plug\" "
36796 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
36797 "requires changes to qemu."
36798 msgstr ""
36799
36800 #. type: =head2
36801 #: ../src/guestfs.pod:3027
36802 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
36803 msgstr ""
36804
36805 #. type: textblock
36806 #: ../src/guestfs.pod:3029
36807 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
36808 msgstr ""
36809
36810 #. type: textblock
36811 #: ../src/guestfs.pod:3031
36812 msgid ""
36813 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
36814 "vda>, and C</dev/vda1> through C</dev/vda15>)."
36815 msgstr ""
36816
36817 #. type: textblock
36818 #: ../src/guestfs.pod:3034
36819 msgid ""
36820 "If you attach a disk with more than 15 partitions, the extra partitions are "
36821 "ignored by libguestfs."
36822 msgstr ""
36823
36824 #. type: =head2
36825 #: ../src/guestfs.pod:3037
36826 msgid "MAXIMUM SIZE OF A DISK"
36827 msgstr ""
36828
36829 #. type: textblock
36830 #: ../src/guestfs.pod:3039
36831 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
36832 msgstr ""
36833
36834 #. type: textblock
36835 #: ../src/guestfs.pod:3041
36836 msgid ""
36837 "We have tested block devices up to 1 exabyte (2**60 or "
36838 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
36839 "filesystem."
36840 msgstr ""
36841
36842 #. type: textblock
36843 #: ../src/guestfs.pod:3045
36844 msgid ""
36845 "Although libguestfs probably does not impose any limit, the underlying host "
36846 "storage will.  If you store disk images on a host ext4 filesystem, then the "
36847 "maximum size will be limited by the maximum ext4 file size (currently 16 "
36848 "TB).  If you store disk images as host logical volumes then you are limited "
36849 "by the maximum size of an LV."
36850 msgstr ""
36851
36852 #. type: textblock
36853 #: ../src/guestfs.pod:3051
36854 msgid ""
36855 "For the hugest disk image files, we recommend using XFS on the host for "
36856 "storage."
36857 msgstr ""
36858
36859 #. type: =head2
36860 #: ../src/guestfs.pod:3054
36861 msgid "MAXIMUM SIZE OF A PARTITION"
36862 msgstr ""
36863
36864 #. type: textblock
36865 #: ../src/guestfs.pod:3056
36866 msgid ""
36867 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
36868 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
36869 "address a partition located beyond 2 TB on the disk."
36870 msgstr ""
36871
36872 #. type: textblock
36873 #: ../src/guestfs.pod:3060
36874 msgid ""
36875 "It is recommended that you use GPT partitions on disks which are larger than "
36876 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
36877 "which are theoretically larger than the largest disk we could support."
36878 msgstr ""
36879
36880 #. type: =head2
36881 #: ../src/guestfs.pod:3065
36882 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
36883 msgstr ""
36884
36885 #. type: textblock
36886 #: ../src/guestfs.pod:3067
36887 msgid ""
36888 "This depends on the filesystem type.  libguestfs itself does not impose any "
36889 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
36890 "what these limits are."
36891 msgstr ""
36892
36893 #. type: =head2
36894 #: ../src/guestfs.pod:3071
36895 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
36896 msgstr ""
36897
36898 #. type: textblock
36899 #: ../src/guestfs.pod:3073
36900 msgid ""
36901 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
36902 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
36903 "uploads and downloads."
36904 msgstr ""
36905
36906 #. type: =head2
36907 #: ../src/guestfs.pod:3077
36908 msgid "INSPECTION LIMITS"
36909 msgstr ""
36910
36911 #. type: textblock
36912 #: ../src/guestfs.pod:3079
36913 msgid ""
36914 "The inspection code has several arbitrary limits on things like the size of "
36915 "Windows Registry hive it will read, and the length of product name.  These "
36916 "are intended to stop a malicious guest from consuming arbitrary amounts of "
36917 "memory and disk space on the host, and should not be reached in practice.  "
36918 "See the source code for more information."
36919 msgstr ""
36920
36921 #. type: textblock
36922 #: ../src/guestfs.pod:3105
36923 msgid ""
36924 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
36925 "effect as calling C<guestfs_set_verbose (g, 1)>."
36926 msgstr ""
36927
36928 #. type: textblock
36929 #: ../src/guestfs.pod:3117
36930 msgid ""
36931 "Set the path that libguestfs uses to search for a supermin appliance.  See "
36932 "the discussion of paths in section L</PATH> above."
36933 msgstr ""
36934
36935 #. type: textblock
36936 #: ../src/guestfs.pod:3126
36937 msgid "See also L</QEMU WRAPPERS> above."
36938 msgstr ""
36939
36940 #. type: textblock
36941 #: ../src/guestfs.pod:3130
36942 msgid ""
36943 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
36944 "effect as calling C<guestfs_set_trace (g, 1)>."
36945 msgstr ""
36946
36947 #. type: textblock
36948 #: ../src/guestfs.pod:3148
36949 msgid ""
36950 "L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-"
36951 "perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, L<guestfish(1)>, "
36952 "L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
36953 "L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)"
36954 ">, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
36955 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-tar(1)>, "
36956 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
36957 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://"
36958 "libguestfs.org/>."
36959 msgstr ""
36960
36961 #. type: textblock
36962 #: ../src/guestfs.pod:3179
36963 msgid ""
36964 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
36965 "(8)>, L<disktype(1)>."
36966 msgstr ""
36967
36968 #. type: =head1
36969 #: ../src/guestfs.pod:3186 ../tools/virt-make-fs.pl:571
36970 #: ../tools/virt-win-reg.pl:761
36971 msgid "BUGS"
36972 msgstr ""
36973
36974 #. type: textblock
36975 #: ../src/guestfs.pod:3188
36976 msgid "To get a list of bugs against libguestfs use this link:"
36977 msgstr ""
36978
36979 #. type: textblock
36980 #: ../src/guestfs.pod:3190
36981 msgid ""
36982 "L<https://bugzilla.redhat.com/buglist.cgi?"
36983 "component=libguestfs&product=Virtualization+Tools>"
36984 msgstr ""
36985
36986 #. type: textblock
36987 #: ../src/guestfs.pod:3192
36988 msgid "To report a new bug against libguestfs use this link:"
36989 msgstr ""
36990
36991 #. type: textblock
36992 #: ../src/guestfs.pod:3194
36993 msgid ""
36994 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
36995 "component=libguestfs&product=Virtualization+Tools>"
36996 msgstr ""
36997
36998 #. type: textblock
36999 #: ../src/guestfs.pod:3196
37000 msgid "When reporting a bug, please check:"
37001 msgstr ""
37002
37003 #. type: textblock
37004 #: ../src/guestfs.pod:3202
37005 msgid "That the bug hasn't been reported already."
37006 msgstr ""
37007
37008 #. type: textblock
37009 #: ../src/guestfs.pod:3206
37010 msgid "That you are testing a recent version."
37011 msgstr ""
37012
37013 #. type: textblock
37014 #: ../src/guestfs.pod:3210
37015 msgid "Describe the bug accurately, and give a way to reproduce it."
37016 msgstr ""
37017
37018 #. type: textblock
37019 #: ../src/guestfs.pod:3214
37020 msgid ""
37021 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
37022 "bug report."
37023 msgstr ""
37024
37025 #. type: textblock
37026 #: ../test-tool/libguestfs-test-tool.pod:5
37027 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
37028 msgstr ""
37029
37030 #. type: verbatim
37031 #: ../test-tool/libguestfs-test-tool.pod:9
37032 #, no-wrap
37033 msgid ""
37034 " libguestfs-test-tool [--options]\n"
37035 "\n"
37036 msgstr ""
37037
37038 #. type: textblock
37039 #: ../test-tool/libguestfs-test-tool.pod:13
37040 msgid ""
37041 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
37042 "to check basic libguestfs functionality is working.  This is needed because "
37043 "libguestfs occasionally breaks for reasons beyond our control: usually "
37044 "because of changes in the underlying qemu or kernel packages, or the host "
37045 "environment."
37046 msgstr ""
37047
37048 #. type: textblock
37049 #: ../test-tool/libguestfs-test-tool.pod:19
37050 msgid "If you suspect a problem in libguestfs, then just run:"
37051 msgstr ""
37052
37053 #. type: verbatim
37054 #: ../test-tool/libguestfs-test-tool.pod:21
37055 #, no-wrap
37056 msgid ""
37057 " libguestfs-test-tool\n"
37058 "\n"
37059 msgstr ""
37060
37061 #. type: textblock
37062 #: ../test-tool/libguestfs-test-tool.pod:23
37063 msgid "It will print lots of diagnostic messages."
37064 msgstr ""
37065
37066 #. type: textblock
37067 #: ../test-tool/libguestfs-test-tool.pod:25
37068 msgid "If it runs to completion successfully, you will see this near the end:"
37069 msgstr ""
37070
37071 #. type: verbatim
37072 #: ../test-tool/libguestfs-test-tool.pod:27
37073 #, no-wrap
37074 msgid ""
37075 " ===== TEST FINISHED OK =====\n"
37076 "\n"
37077 msgstr ""
37078
37079 #. type: textblock
37080 #: ../test-tool/libguestfs-test-tool.pod:29
37081 msgid "and the test tool will exit with code 0."
37082 msgstr ""
37083
37084 #. type: textblock
37085 #: ../test-tool/libguestfs-test-tool.pod:31
37086 msgid ""
37087 "If it fails (and/or exits with non-zero error code), please paste the "
37088 "I<complete, unedited> output of the test tool into a bug report.  More "
37089 "information about reporting bugs can be found on the L<http://libguestfs.org/"
37090 "> website."
37091 msgstr ""
37092
37093 #. type: textblock
37094 #: ../test-tool/libguestfs-test-tool.pod:42
37095 msgid "Display short usage information and exit."
37096 msgstr ""
37097
37098 #. type: =item
37099 #: ../test-tool/libguestfs-test-tool.pod:44
37100 msgid "B<--qemu qemu_binary>"
37101 msgstr ""
37102
37103 #. type: textblock
37104 #: ../test-tool/libguestfs-test-tool.pod:46
37105 msgid ""
37106 "If you have downloaded another qemu binary, point this option at the full "
37107 "path of the binary to try it."
37108 msgstr ""
37109
37110 #. type: =item
37111 #: ../test-tool/libguestfs-test-tool.pod:49
37112 msgid "B<--qemudir qemu_source_dir>"
37113 msgstr ""
37114
37115 #. type: textblock
37116 #: ../test-tool/libguestfs-test-tool.pod:51
37117 msgid ""
37118 "If you have compiled qemu from source, point this option at the source "
37119 "directory to try it."
37120 msgstr ""
37121
37122 #. type: =item
37123 #: ../test-tool/libguestfs-test-tool.pod:54
37124 msgid "B<-t N>"
37125 msgstr ""
37126
37127 #. type: =item
37128 #: ../test-tool/libguestfs-test-tool.pod:56
37129 msgid "B<--timeout N>"
37130 msgstr ""
37131
37132 #. type: textblock
37133 #: ../test-tool/libguestfs-test-tool.pod:58
37134 msgid ""
37135 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
37136 "minutes) which does not usually need to be adjusted."
37137 msgstr ""
37138
37139 #. type: =head1
37140 #: ../test-tool/libguestfs-test-tool.pod:63
37141 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
37142 msgstr ""
37143
37144 #. type: textblock
37145 #: ../test-tool/libguestfs-test-tool.pod:65
37146 msgid ""
37147 "If you have compiled another version of qemu from source and would like to "
37148 "try that, then you can use the I<--qemudir> option to point to the qemu "
37149 "source directory."
37150 msgstr ""
37151
37152 #. type: textblock
37153 #: ../test-tool/libguestfs-test-tool.pod:69
37154 msgid ""
37155 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
37156 "option to point to the binary."
37157 msgstr ""
37158
37159 #. type: textblock
37160 #: ../test-tool/libguestfs-test-tool.pod:72
37161 msgid ""
37162 "Note when using these options, you can ignore the business of qemu wrapper "
37163 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
37164 "wrapper script for you if one is needed."
37165 msgstr ""
37166
37167 #. type: =head1
37168 #: ../test-tool/libguestfs-test-tool.pod:76
37169 msgid "TRYING OUT A DIFFERENT KERNEL"
37170 msgstr ""
37171
37172 #. type: textblock
37173 #: ../test-tool/libguestfs-test-tool.pod:78
37174 msgid ""
37175 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
37176 "libguestfs tries.  You do this by setting the environment variables "
37177 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
37178 msgstr ""
37179
37180 #. type: textblock
37181 #: ../test-tool/libguestfs-test-tool.pod:82
37182 msgid ""
37183 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
37184 "information."
37185 msgstr ""
37186
37187 #. type: =head1
37188 #: ../test-tool/libguestfs-test-tool.pod:85
37189 msgid "SELF-DIAGNOSIS"
37190 msgstr ""
37191
37192 #. type: textblock
37193 #: ../test-tool/libguestfs-test-tool.pod:87
37194 msgid ""
37195 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
37196 "produced by libguestfs-test-tool and/or possible errors."
37197 msgstr ""
37198
37199 #. type: textblock
37200 #: ../test-tool/libguestfs-test-tool.pod:92
37201 msgid ""
37202 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
37203 "I<1> if there was an error."
37204 msgstr ""
37205
37206 #. type: textblock
37207 #: ../test-tool/libguestfs-test-tool.pod:97
37208 msgid ""
37209 "For the full list of environment variables which may affect libguestfs, "
37210 "please see the L<guestfs(3)> manual page."
37211 msgstr ""
37212
37213 #. type: textblock
37214 #: ../test-tool/libguestfs-test-tool.pod:102
37215 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
37216 msgstr ""
37217
37218 #. type: textblock
37219 #: ../tools/virt-list-filesystems.pl:32
37220 msgid ""
37221 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
37222 msgstr ""
37223
37224 #. type: verbatim
37225 #: ../tools/virt-list-filesystems.pl:36
37226 #, no-wrap
37227 msgid ""
37228 " virt-list-filesystems [--options] domname\n"
37229 "\n"
37230 msgstr ""
37231
37232 #. type: verbatim
37233 #: ../tools/virt-list-filesystems.pl:38
37234 #, no-wrap
37235 msgid ""
37236 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
37237 "\n"
37238 msgstr ""
37239
37240 #. type: textblock
37241 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
37242 msgid ""
37243 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
37244 "replacement."
37245 msgstr ""
37246
37247 #. type: textblock
37248 #: ../tools/virt-list-filesystems.pl:45
37249 msgid ""
37250 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
37251 "are contained in a virtual machine or disk image."
37252 msgstr ""
37253
37254 #. type: textblock
37255 #: ../tools/virt-list-filesystems.pl:49
37256 msgid ""
37257 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
37258 "functionality.  For more complex cases you should look at the L<guestfish(1)"
37259 "> tool."
37260 msgstr ""
37261
37262 #. type: textblock
37263 #: ../tools/virt-list-filesystems.pl:112
37264 msgid ""
37265 "With this option, C<virt-list-filesystems> displays the type of each "
37266 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
37267 msgstr ""
37268
37269 #. type: =item
37270 #: ../tools/virt-list-filesystems.pl:119
37271 msgid "B<-a>"
37272 msgstr ""
37273
37274 #. type: textblock
37275 #: ../tools/virt-list-filesystems.pl:123
37276 msgid ""
37277 "Normally we only show mountable filesystems.  If this option is given then "
37278 "swap devices are shown too."
37279 msgstr ""
37280
37281 #. type: textblock
37282 #: ../tools/virt-list-filesystems.pl:197
37283 msgid ""
37284 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
37285 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
37286 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
37287 msgstr ""
37288
37289 #. type: textblock
37290 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
37291 msgid "Copyright (C) 2009 Red Hat Inc."
37292 msgstr ""
37293
37294 #. type: textblock
37295 #: ../tools/virt-list-partitions.pl:32
37296 msgid ""
37297 "virt-list-partitions - List partitions in a virtual machine or disk image"
37298 msgstr ""
37299
37300 #. type: verbatim
37301 #: ../tools/virt-list-partitions.pl:36
37302 #, no-wrap
37303 msgid ""
37304 " virt-list-partitions [--options] domname\n"
37305 "\n"
37306 msgstr ""
37307
37308 #. type: verbatim
37309 #: ../tools/virt-list-partitions.pl:38
37310 #, no-wrap
37311 msgid ""
37312 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
37313 "\n"
37314 msgstr ""
37315
37316 #. type: textblock
37317 #: ../tools/virt-list-partitions.pl:45
37318 msgid ""
37319 "C<virt-list-partitions> is a command line tool to list the partitions that "
37320 "are contained in a virtual machine or disk image.  It is mainly useful as a "
37321 "first step to using L<virt-resize(1)>."
37322 msgstr ""
37323
37324 #. type: textblock
37325 #: ../tools/virt-list-partitions.pl:50
37326 msgid ""
37327 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
37328 "functionality.  For more complex cases you should look at the L<guestfish(1)"
37329 "> tool."
37330 msgstr ""
37331
37332 #. type: textblock
37333 #: ../tools/virt-list-partitions.pl:113
37334 msgid "Show sizes in human-readable form (eg. \"1G\")."
37335 msgstr ""
37336
37337 #. type: textblock
37338 #: ../tools/virt-list-partitions.pl:123
37339 msgid ""
37340 "With this option, C<virt-list-partitions> displays the type and size of each "
37341 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
37342 msgstr ""
37343
37344 #. type: =item
37345 #: ../tools/virt-list-partitions.pl:130
37346 msgid "B<-t>"
37347 msgstr ""
37348
37349 #. type: =item
37350 #: ../tools/virt-list-partitions.pl:132
37351 msgid "B<--total>"
37352 msgstr ""
37353
37354 #. type: textblock
37355 #: ../tools/virt-list-partitions.pl:134
37356 msgid ""
37357 "Display the total size of each block device (as a separate row or rows)."
37358 msgstr ""
37359
37360 #. type: textblock
37361 #: ../tools/virt-list-partitions.pl:267
37362 msgid ""
37363 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
37364 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
37365 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
37366 msgstr ""
37367
37368 #. type: textblock
37369 #: ../tools/virt-list-partitions.pl:283
37370 msgid "Copyright (C) 2009-2010 Red Hat Inc."
37371 msgstr ""
37372
37373 #. type: textblock
37374 #: ../tools/virt-make-fs.pl:37
37375 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
37376 msgstr ""
37377
37378 #. type: verbatim
37379 #: ../tools/virt-make-fs.pl:41
37380 #, no-wrap
37381 msgid ""
37382 " virt-make-fs [--options] input.tar output.img\n"
37383 "\n"
37384 msgstr ""
37385
37386 #. type: verbatim
37387 #: ../tools/virt-make-fs.pl:43
37388 #, no-wrap
37389 msgid ""
37390 " virt-make-fs [--options] input.tar.gz output.img\n"
37391 "\n"
37392 msgstr ""
37393
37394 #. type: verbatim
37395 #: ../tools/virt-make-fs.pl:45
37396 #, no-wrap
37397 msgid ""
37398 " virt-make-fs [--options] directory output.img\n"
37399 "\n"
37400 msgstr ""
37401
37402 #. type: textblock
37403 #: ../tools/virt-make-fs.pl:49
37404 msgid ""
37405 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
37406 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
37407 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
37408 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
37409 "you want to attach these filesystems to existing virtual machines (eg. to "
37410 "import large amounts of read-only data to a VM)."
37411 msgstr ""
37412
37413 #. type: textblock
37414 #: ../tools/virt-make-fs.pl:57
37415 msgid "Basic usage is:"
37416 msgstr ""
37417
37418 #. type: verbatim
37419 #: ../tools/virt-make-fs.pl:59
37420 #, no-wrap
37421 msgid ""
37422 " virt-make-fs input output.img\n"
37423 "\n"
37424 msgstr ""
37425
37426 #. type: textblock
37427 #: ../tools/virt-make-fs.pl:61
37428 msgid ""
37429 "where C<input> is either a directory containing files that you want to add, "
37430 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
37431 "C<output.img> is a disk image.  The input type is detected automatically.  "
37432 "The output disk image defaults to a raw ext2 sparse image unless you specify "
37433 "extra flags (see L</OPTIONS> below)."
37434 msgstr ""
37435
37436 #. type: =head2
37437 #: ../tools/virt-make-fs.pl:67
37438 msgid "FILESYSTEM TYPE"
37439 msgstr ""
37440
37441 #. type: textblock
37442 #: ../tools/virt-make-fs.pl:69
37443 msgid ""
37444 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
37445 "libguestfs supports can be used (but I<not> read-only formats like "
37446 "ISO9660).  Here are some of the more common choices:"
37447 msgstr ""
37448
37449 #. type: =item
37450 #: ../tools/virt-make-fs.pl:75
37451 msgid "I<ext3>"
37452 msgstr ""
37453
37454 #. type: textblock
37455 #: ../tools/virt-make-fs.pl:77
37456 msgid ""
37457 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
37458 "you are not going to use the filesystem in a way that requires the journal, "
37459 "then this is just wasted overhead."
37460 msgstr ""
37461
37462 #. type: =item
37463 #: ../tools/virt-make-fs.pl:81
37464 msgid "I<ntfs> or I<vfat>"
37465 msgstr ""
37466
37467 #. type: textblock
37468 #: ../tools/virt-make-fs.pl:83
37469 msgid "Useful if exporting data to a Windows guest."
37470 msgstr ""
37471
37472 #. type: textblock
37473 #: ../tools/virt-make-fs.pl:85
37474 msgid ""
37475 "I<Note for vfat>: The tar archive or local directory must only contain files "
37476 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
37477 "program running within libguestfs is unable to change the ownership of non-"
37478 "root files, since vfat itself does not support this."
37479 msgstr ""
37480
37481 #. type: =item
37482 #: ../tools/virt-make-fs.pl:90
37483 msgid "I<minix>"
37484 msgstr ""
37485
37486 #. type: textblock
37487 #: ../tools/virt-make-fs.pl:92
37488 msgid ""
37489 "Lower overhead than C<ext2>, but certain limitations on filename length and "
37490 "total filesystem size."
37491 msgstr ""
37492
37493 #. type: =head3
37494 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116
37495 #: ../tools/virt-make-fs.pl:149
37496 msgid "EXAMPLE"
37497 msgstr ""
37498
37499 #. type: verbatim
37500 #: ../tools/virt-make-fs.pl:99
37501 #, no-wrap
37502 msgid ""
37503 " virt-make-fs --type=minix input minixfs.img\n"
37504 "\n"
37505 msgstr ""
37506
37507 #. type: =head2
37508 #: ../tools/virt-make-fs.pl:101
37509 msgid "TO PARTITION OR NOT TO PARTITION"
37510 msgstr ""
37511
37512 #. type: textblock
37513 #: ../tools/virt-make-fs.pl:103
37514 msgid "Optionally virt-make-fs can add a partition table to the output disk."
37515 msgstr ""
37516
37517 #. type: textblock
37518 #: ../tools/virt-make-fs.pl:105
37519 msgid ""
37520 "Adding a partition can make the disk image more compatible with certain "
37521 "virtualized operating systems which don't expect to see a filesystem "
37522 "directly located on a block device (Linux doesn't care and will happily "
37523 "handle both types)."
37524 msgstr ""
37525
37526 #. type: textblock
37527 #: ../tools/virt-make-fs.pl:110
37528 msgid ""
37529 "On the other hand, if you have a partition table then the output image is no "
37530 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
37531 "directly on a partitioned disk image.  (However libguestfs tools such as "
37532 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
37533 msgstr ""
37534
37535 #. type: textblock
37536 #: ../tools/virt-make-fs.pl:118
37537 msgid "Add an MBR partition:"
37538 msgstr ""
37539
37540 #. type: verbatim
37541 #: ../tools/virt-make-fs.pl:120
37542 #, no-wrap
37543 msgid ""
37544 " virt-make-fs --partition -- input disk.img\n"
37545 "\n"
37546 msgstr ""
37547
37548 #. type: textblock
37549 #: ../tools/virt-make-fs.pl:122
37550 msgid ""
37551 "If the output disk image could be terabyte-sized or larger, it's better to "
37552 "use an EFI/GPT-compatible partition table:"
37553 msgstr ""
37554
37555 #. type: verbatim
37556 #: ../tools/virt-make-fs.pl:125
37557 #, no-wrap
37558 msgid ""
37559 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
37560 "\n"
37561 msgstr ""
37562
37563 #. type: =head2
37564 #: ../tools/virt-make-fs.pl:127
37565 msgid "EXTRA SPACE"
37566 msgstr ""
37567
37568 #. type: textblock
37569 #: ../tools/virt-make-fs.pl:129
37570 msgid ""
37571 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
37572 "the files that it contains, but might have extra space.  Depending on how "
37573 "you are going to use the output, you might think this extra space is wasted "
37574 "and want to minimize it, or you might want to leave space so that more files "
37575 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
37576 "but you can use the I<--size> flag to leave space in the filesystem if you "
37577 "want it."
37578 msgstr ""
37579
37580 #. type: textblock
37581 #: ../tools/virt-make-fs.pl:137
37582 msgid ""
37583 "An alternative way to leave extra space but not make the output image any "
37584 "bigger is to use an alternative disk image format (instead of the default "
37585 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
37586 "image format (check your hypervisor supports this before using it).  This "
37587 "allows you to choose a large I<--size> but the extra space won't actually be "
37588 "allocated in the image until you try to store something in it."
37589 msgstr ""
37590
37591 #. type: textblock
37592 #: ../tools/virt-make-fs.pl:145
37593 msgid ""
37594 "Don't forget that you can also use local commands including L<resize2fs(8)> "
37595 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
37596 "to build another image from scratch."
37597 msgstr ""
37598
37599 #. type: verbatim
37600 #: ../tools/virt-make-fs.pl:151
37601 #, no-wrap
37602 msgid ""
37603 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
37604 "\n"
37605 msgstr ""
37606
37607 #. type: textblock
37608 #: ../tools/virt-make-fs.pl:179
37609 msgid "Enable debugging information."
37610 msgstr ""
37611
37612 #. type: =item
37613 #: ../tools/virt-make-fs.pl:185
37614 msgid "B<--size=E<lt>NE<gt>>"
37615 msgstr ""
37616
37617 #. type: =item
37618 #: ../tools/virt-make-fs.pl:187
37619 msgid "B<--size=+E<lt>NE<gt>>"
37620 msgstr ""
37621
37622 #. type: =item
37623 #: ../tools/virt-make-fs.pl:189
37624 msgid "B<-s E<lt>NE<gt>>"
37625 msgstr ""
37626
37627 #. type: =item
37628 #: ../tools/virt-make-fs.pl:191
37629 msgid "B<-s +E<lt>NE<gt>>"
37630 msgstr ""
37631
37632 #. type: textblock
37633 #: ../tools/virt-make-fs.pl:193
37634 msgid ""
37635 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
37636 msgstr ""
37637
37638 #. type: textblock
37639 #: ../tools/virt-make-fs.pl:196
37640 msgid ""
37641 "If this option is I<not> given, then the output image will be just large "
37642 "enough to contain all the files, with not much wasted space."
37643 msgstr ""
37644
37645 #. type: textblock
37646 #: ../tools/virt-make-fs.pl:199
37647 msgid ""
37648 "To choose a fixed size output disk, specify an absolute number followed by b/"
37649 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
37650 "Petabytes or Exabytes.  This must be large enough to contain all the input "
37651 "files, else you will get an error."
37652 msgstr ""
37653
37654 #. type: textblock
37655 #: ../tools/virt-make-fs.pl:204
37656 msgid ""
37657 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
37658 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
37659 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
37660 "the input files, and (approximately) an extra 200 MB free space."
37661 msgstr ""
37662
37663 #. type: textblock
37664 #: ../tools/virt-make-fs.pl:210
37665 msgid ""
37666 "Note that virt-make-fs estimates free space, and therefore will not produce "
37667 "filesystems containing precisely the free space requested.  (It is much more "
37668 "expensive and time-consuming to produce a filesystem which has precisely the "
37669 "desired free space)."
37670 msgstr ""
37671
37672 #. type: =item
37673 #: ../tools/virt-make-fs.pl:219
37674 msgid "B<--format=E<lt>fmtE<gt>>"
37675 msgstr ""
37676
37677 #. type: =item
37678 #: ../tools/virt-make-fs.pl:221
37679 msgid "B<-F E<lt>fmtE<gt>>"
37680 msgstr ""
37681
37682 #. type: textblock
37683 #: ../tools/virt-make-fs.pl:223
37684 msgid "Choose the output disk image format."
37685 msgstr ""
37686
37687 #. type: textblock
37688 #: ../tools/virt-make-fs.pl:225
37689 msgid "The default is C<raw> (raw sparse disk image)."
37690 msgstr ""
37691
37692 #. type: textblock
37693 #: ../tools/virt-make-fs.pl:227
37694 msgid ""
37695 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
37696 "that would really make sense here is C<qcow2>."
37697 msgstr ""
37698
37699 #. type: =item
37700 #: ../tools/virt-make-fs.pl:234
37701 msgid "B<--type=E<lt>fsE<gt>>"
37702 msgstr ""
37703
37704 #. type: =item
37705 #: ../tools/virt-make-fs.pl:236
37706 msgid "B<-t E<lt>fsE<gt>>"
37707 msgstr ""
37708
37709 #. type: textblock
37710 #: ../tools/virt-make-fs.pl:238
37711 msgid "Choose the output filesystem type."
37712 msgstr ""
37713
37714 #. type: textblock
37715 #: ../tools/virt-make-fs.pl:240
37716 msgid "The default is C<ext2>."
37717 msgstr ""
37718
37719 #. type: textblock
37720 #: ../tools/virt-make-fs.pl:242
37721 msgid ""
37722 "Any filesystem which is supported read-write by libguestfs can be used here."
37723 msgstr ""
37724
37725 #. type: =item
37726 #: ../tools/virt-make-fs.pl:249
37727 msgid "B<--partition>"
37728 msgstr ""
37729
37730 #. type: =item
37731 #: ../tools/virt-make-fs.pl:251
37732 msgid "B<--partition=E<lt>parttypeE<gt>>"
37733 msgstr ""
37734
37735 #. type: textblock
37736 #: ../tools/virt-make-fs.pl:253
37737 msgid ""
37738 "If specified, this flag adds an MBR partition table to the output disk image."
37739 msgstr ""
37740
37741 #. type: textblock
37742 #: ../tools/virt-make-fs.pl:256
37743 msgid ""
37744 "You can change the partition table type, eg. I<--partition=gpt> for large "
37745 "disks."
37746 msgstr ""
37747
37748 #. type: textblock
37749 #: ../tools/virt-make-fs.pl:259
37750 msgid ""
37751 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
37752 "might consider the next parameter to be the partition type.  For example:"
37753 msgstr ""
37754
37755 #. type: verbatim
37756 #: ../tools/virt-make-fs.pl:263
37757 #, no-wrap
37758 msgid ""
37759 " virt-make-fs --partition input.tar output.img\n"
37760 "\n"
37761 msgstr ""
37762
37763 #. type: textblock
37764 #: ../tools/virt-make-fs.pl:265
37765 msgid ""
37766 "would cause virt-make-fs to think you wanted to use a partition type of "
37767 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
37768 "dash) between options and the input and output arguments:"
37769 msgstr ""
37770
37771 #. type: verbatim
37772 #: ../tools/virt-make-fs.pl:269
37773 #, no-wrap
37774 msgid ""
37775 " virt-make-fs --partition -- input.tar output.img\n"
37776 "\n"
37777 msgstr ""
37778
37779 #. type: textblock
37780 #: ../tools/virt-make-fs.pl:271
37781 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
37782 msgstr ""
37783
37784 #. type: textblock
37785 #: ../tools/virt-make-fs.pl:559
37786 msgid ""
37787 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
37788 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
37789 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
37790 msgstr ""
37791
37792 #. type: textblock
37793 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:763
37794 msgid ""
37795 "When reporting bugs, please enable debugging and capture the I<complete> "
37796 "output:"
37797 msgstr ""
37798
37799 #. type: verbatim
37800 #: ../tools/virt-make-fs.pl:576
37801 #, no-wrap
37802 msgid ""
37803 " export LIBGUESTFS_DEBUG=1\n"
37804 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
37805 "\n"
37806 msgstr ""
37807
37808 #. type: textblock
37809 #: ../tools/virt-make-fs.pl:579
37810 msgid ""
37811 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
37812 "redhat.com/>"
37813 msgstr ""
37814
37815 #. type: textblock
37816 #: ../tools/virt-tar.pl:33
37817 msgid "virt-tar - Extract or upload files to a virtual machine"
37818 msgstr ""
37819
37820 #. type: verbatim
37821 #: ../tools/virt-tar.pl:37
37822 #, no-wrap
37823 msgid ""
37824 " virt-tar [--options] -x domname directory tarball\n"
37825 "\n"
37826 msgstr ""
37827
37828 #. type: verbatim
37829 #: ../tools/virt-tar.pl:39
37830 #, no-wrap
37831 msgid ""
37832 " virt-tar [--options] -u domname tarball directory\n"
37833 "\n"
37834 msgstr ""
37835
37836 #. type: verbatim
37837 #: ../tools/virt-tar.pl:41
37838 #, no-wrap
37839 msgid ""
37840 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
37841 "\n"
37842 msgstr ""
37843
37844 #. type: verbatim
37845 #: ../tools/virt-tar.pl:43
37846 #, no-wrap
37847 msgid ""
37848 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
37849 "\n"
37850 msgstr ""
37851
37852 #. type: =head2
37853 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
37854 msgid "NOTE"
37855 msgstr ""
37856
37857 #. type: textblock
37858 #: ../tools/virt-tar.pl:47
37859 msgid ""
37860 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
37861 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
37862 msgstr ""
37863
37864 #. type: textblock
37865 #: ../tools/virt-tar.pl:52
37866 msgid "Download C</home> from the VM into a local tarball:"
37867 msgstr ""
37868
37869 #. type: verbatim
37870 #: ../tools/virt-tar.pl:54
37871 #, no-wrap
37872 msgid ""
37873 " virt-tar -x domname /home home.tar\n"
37874 "\n"
37875 msgstr ""
37876
37877 #. type: verbatim
37878 #: ../tools/virt-tar.pl:56
37879 #, no-wrap
37880 msgid ""
37881 " virt-tar -zx domname /home home.tar.gz\n"
37882 "\n"
37883 msgstr ""
37884
37885 #. type: textblock
37886 #: ../tools/virt-tar.pl:58
37887 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
37888 msgstr ""
37889
37890 #. type: verbatim
37891 #: ../tools/virt-tar.pl:60
37892 #, no-wrap
37893 msgid ""
37894 " virt-tar -u domname uploadstuff.tar /tmp\n"
37895 "\n"
37896 msgstr ""
37897
37898 #. type: verbatim
37899 #: ../tools/virt-tar.pl:62
37900 #, no-wrap
37901 msgid ""
37902 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
37903 "\n"
37904 msgstr ""
37905
37906 #. type: textblock
37907 #: ../tools/virt-tar.pl:66
37908 msgid ""
37909 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
37910 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
37911 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
37912 msgstr ""
37913
37914 #. type: textblock
37915 #: ../tools/virt-tar.pl:71
37916 msgid ""
37917 "You can use I<-x> (extract) on live virtual machines, but you might get "
37918 "inconsistent results or errors if there is filesystem activity inside the "
37919 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
37920 "work, but the only way to guarantee consistent results is if the virtual "
37921 "machine is shut down."
37922 msgstr ""
37923
37924 #. type: textblock
37925 #: ../tools/virt-tar.pl:79
37926 msgid ""
37927 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
37928 "parts of a guest filesystem.  There are many possibilities: making backups, "
37929 "uploading data files, snooping on guest activity, fixing or customizing "
37930 "guests, etc."
37931 msgstr ""
37932
37933 #. type: textblock
37934 #: ../tools/virt-tar.pl:84
37935 msgid ""
37936 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
37937 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
37938 "should look at the L<guestfish(1)> tool."
37939 msgstr ""
37940
37941 #. type: textblock
37942 #: ../tools/virt-tar.pl:88
37943 msgid ""
37944 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
37945 "its contents (recursively) from the virtual machine into a local tarball.  "
37946 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
37947 "virtual machine.  You cannot use these two options together."
37948 msgstr ""
37949
37950 #. type: textblock
37951 #: ../tools/virt-tar.pl:94
37952 msgid ""
37953 "In addition, you may need to use the I<-z> (gZip) option to enable "
37954 "compression.  When uploading, you have to specify I<-z> if the upload file "
37955 "is compressed because virt-tar won't detect this on its own."
37956 msgstr ""
37957
37958 #. type: textblock
37959 #: ../tools/virt-tar.pl:98
37960 msgid ""
37961 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
37962 "example it cannot do PKZip files or bzip2 compression.  If you want that "
37963 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
37964 "the L<libguestfs(3)> API)."
37965 msgstr ""
37966
37967 #. type: =item
37968 #: ../tools/virt-tar.pl:160
37969 msgid "B<--extract>"
37970 msgstr ""
37971
37972 #. type: =item
37973 #: ../tools/virt-tar.pl:162
37974 msgid "B<--download>"
37975 msgstr ""
37976
37977 #. type: =item
37978 #: ../tools/virt-tar.pl:164
37979 msgid "B<-u>"
37980 msgstr ""
37981
37982 #. type: =item
37983 #: ../tools/virt-tar.pl:166
37984 msgid "B<--upload>"
37985 msgstr ""
37986
37987 #. type: textblock
37988 #: ../tools/virt-tar.pl:168
37989 msgid ""
37990 "Use I<-x> to extract (download) a directory from a virtual machine to a "
37991 "local tarball."
37992 msgstr ""
37993
37994 #. type: textblock
37995 #: ../tools/virt-tar.pl:171
37996 msgid ""
37997 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
37998 "Please read the L</WARNING> section above before using this option."
37999 msgstr ""
38000
38001 #. type: textblock
38002 #: ../tools/virt-tar.pl:175
38003 msgid "You must specify exactly one of these options."
38004 msgstr ""
38005
38006 #. type: =item
38007 #: ../tools/virt-tar.pl:181
38008 msgid "B<-z>"
38009 msgstr ""
38010
38011 #. type: =item
38012 #: ../tools/virt-tar.pl:183
38013 msgid "B<--gzip>"
38014 msgstr ""
38015
38016 #. type: textblock
38017 #: ../tools/virt-tar.pl:185
38018 msgid "Specify that the input or output tarball is gzip-compressed."
38019 msgstr ""
38020
38021 #. type: textblock
38022 #: ../tools/virt-tar.pl:298
38023 msgid ""
38024 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
38025 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
38026 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
38027 "org/>."
38028 msgstr ""
38029
38030 #. type: textblock
38031 #: ../tools/virt-win-reg.pl:37
38032 msgid ""
38033 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
38034 msgstr ""
38035
38036 #. type: verbatim
38037 #: ../tools/virt-win-reg.pl:41
38038 #, no-wrap
38039 msgid ""
38040 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
38041 "\n"
38042 msgstr ""
38043
38044 #. type: verbatim
38045 #: ../tools/virt-win-reg.pl:43
38046 #, no-wrap
38047 msgid ""
38048 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
38049 "\n"
38050 msgstr ""
38051
38052 #. type: verbatim
38053 #: ../tools/virt-win-reg.pl:45
38054 #, no-wrap
38055 msgid ""
38056 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
38057 "\n"
38058 msgstr ""
38059
38060 #. type: verbatim
38061 #: ../tools/virt-win-reg.pl:47
38062 #, no-wrap
38063 msgid ""
38064 " virt-win-reg --merge domname [input.reg ...]\n"
38065 "\n"
38066 msgstr ""
38067
38068 #. type: verbatim
38069 #: ../tools/virt-win-reg.pl:49
38070 #, no-wrap
38071 msgid ""
38072 " virt-win-reg [--options] disk.img ... # instead of domname\n"
38073 "\n"
38074 msgstr ""
38075
38076 #. type: textblock
38077 #: ../tools/virt-win-reg.pl:53
38078 msgid ""
38079 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
38080 "virtual machines.  If you do this, you I<will> get irreversible disk "
38081 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
38082 "but doesn't catch all cases."
38083 msgstr ""
38084
38085 #. type: textblock
38086 #: ../tools/virt-win-reg.pl:58
38087 msgid ""
38088 "Modifying the Windows Registry is an inherently risky operation.  The format "
38089 "is deliberately obscure and undocumented, and Registry changes can leave the "
38090 "system unbootable.  Therefore when using the I<--merge> option, make sure "
38091 "you have a reliable backup first."
38092 msgstr ""
38093
38094 #. type: textblock
38095 #: ../tools/virt-win-reg.pl:65
38096 msgid ""
38097 "This program can export and merge Windows Registry entries from a Windows "
38098 "guest."
38099 msgstr ""
38100
38101 #. type: textblock
38102 #: ../tools/virt-win-reg.pl:68
38103 msgid ""
38104 "The first parameter is the libvirt guest name or the raw disk image of a "
38105 "Windows guest."
38106 msgstr ""
38107
38108 #. type: textblock
38109 #: ../tools/virt-win-reg.pl:71
38110 msgid ""
38111 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
38112 "exported (recursively).  For example:"
38113 msgstr ""
38114
38115 #. type: verbatim
38116 #: ../tools/virt-win-reg.pl:74
38117 #, no-wrap
38118 msgid ""
38119 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
38120 "\n"
38121 msgstr ""
38122
38123 #. type: textblock
38124 #: ../tools/virt-win-reg.pl:76
38125 msgid ""
38126 "You can also display single values from within registry keys, for example:"
38127 msgstr ""
38128
38129 #. type: verbatim
38130 #: ../tools/virt-win-reg.pl:79
38131 #, no-wrap
38132 msgid ""
38133 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
38134 " $ virt-win-reg Windows7 $cvkey ProductName\n"
38135 " Windows 7 Enterprise\n"
38136 "\n"
38137 msgstr ""
38138
38139 #. type: textblock
38140 #: ../tools/virt-win-reg.pl:83
38141 msgid ""
38142 "With I<--merge>, you can merge a textual regedit file into the Windows "
38143 "Registry:"
38144 msgstr ""
38145
38146 #. type: verbatim
38147 #: ../tools/virt-win-reg.pl:86
38148 #, no-wrap
38149 msgid ""
38150 " $ virt-win-reg --merge Windows7 changes.reg\n"
38151 "\n"
38152 msgstr ""
38153
38154 #. type: textblock
38155 #: ../tools/virt-win-reg.pl:90
38156 msgid ""
38157 "This program is only meant for simple access to the registry.  If you want "
38158 "to do complicated things with the registry, we suggest you download the "
38159 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
38160 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
38161 "L<hivexregedit(1)>."
38162 msgstr ""
38163
38164 #. type: =item
38165 #: ../tools/virt-win-reg.pl:159
38166 msgid "B<--merge>"
38167 msgstr ""
38168
38169 #. type: textblock
38170 #: ../tools/virt-win-reg.pl:161
38171 msgid ""
38172 "In merge mode, this merges a textual regedit file into the Windows Registry "
38173 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
38174 "displays or exports Registry entries instead."
38175 msgstr ""
38176
38177 #. type: textblock
38178 #: ../tools/virt-win-reg.pl:165
38179 msgid ""
38180 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
38181 "result in disk corruption.  However exporting (without this flag)  is always "
38182 "safe."
38183 msgstr ""
38184
38185 #. type: =item
38186 #: ../tools/virt-win-reg.pl:173
38187 msgid "B<--encoding> UTF-16LE|ASCII"
38188 msgstr ""
38189
38190 #. type: textblock
38191 #: ../tools/virt-win-reg.pl:175
38192 msgid ""
38193 "When merging (only), you may need to specify the encoding for strings to be "
38194 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
38195 "(3)/ENCODING STRINGS>."
38196 msgstr ""
38197
38198 #. type: textblock
38199 #: ../tools/virt-win-reg.pl:179
38200 msgid ""
38201 "The default is to use UTF-16LE, which should work with recent versions of "
38202 "Windows."
38203 msgstr ""
38204
38205 #. type: =item
38206 #: ../tools/virt-win-reg.pl:186
38207 msgid "B<--unsafe-printable-strings>"
38208 msgstr ""
38209
38210 #. type: textblock
38211 #: ../tools/virt-win-reg.pl:188
38212 msgid ""
38213 "When exporting (only), assume strings are UTF-16LE and print them as strings "
38214 "instead of hex sequences.  Remove the final zero codepoint from strings if "
38215 "present."
38216 msgstr ""
38217
38218 #. type: textblock
38219 #: ../tools/virt-win-reg.pl:192
38220 msgid ""
38221 "This is unsafe and does not preserve the fidelity of strings in the original "
38222 "Registry for various reasons:"
38223 msgstr ""
38224
38225 #. type: textblock
38226 #: ../tools/virt-win-reg.pl:199
38227 msgid ""
38228 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
38229 "other encodings will be corrupted by this transformation."
38230 msgstr ""
38231
38232 #. type: textblock
38233 #: ../tools/virt-win-reg.pl:204
38234 msgid ""
38235 "Assumes that everything which has type 1 or 2 is really a string and that "
38236 "everything else is not a string, but the type field in real Registries is "
38237 "not reliable."
38238 msgstr ""
38239
38240 #. type: textblock
38241 #: ../tools/virt-win-reg.pl:210
38242 msgid ""
38243 "Loses information about whether a zero codepoint followed the string in the "
38244 "Registry or not."
38245 msgstr ""
38246
38247 #. type: textblock
38248 #: ../tools/virt-win-reg.pl:215
38249 msgid ""
38250 "This all happens because the Registry itself contains no information about "
38251 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
38252 msgstr ""
38253
38254 #. type: textblock
38255 #: ../tools/virt-win-reg.pl:219
38256 msgid ""
38257 "You should only use this option for quick hacking and debugging of the "
38258 "Registry contents, and I<never> use it if the output is going to be passed "
38259 "into another program or stored in another Registry."
38260 msgstr ""
38261
38262 #. type: =head1
38263 #: ../tools/virt-win-reg.pl:556
38264 msgid "SUPPORTED SYSTEMS"
38265 msgstr ""
38266
38267 #. type: textblock
38268 #: ../tools/virt-win-reg.pl:558
38269 msgid ""
38270 "The program currently supports Windows NT-derived guests starting with "
38271 "Windows XP through to at least Windows 7."
38272 msgstr ""
38273
38274 #. type: textblock
38275 #: ../tools/virt-win-reg.pl:561
38276 msgid "The following Registry keys are supported:"
38277 msgstr ""
38278
38279 #. type: =item
38280 #: ../tools/virt-win-reg.pl:565
38281 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
38282 msgstr ""
38283
38284 #. type: =item
38285 #: ../tools/virt-win-reg.pl:567
38286 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
38287 msgstr ""
38288
38289 #. type: =item
38290 #: ../tools/virt-win-reg.pl:569
38291 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
38292 msgstr ""
38293
38294 #. type: =item
38295 #: ../tools/virt-win-reg.pl:571
38296 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
38297 msgstr ""
38298
38299 #. type: =item
38300 #: ../tools/virt-win-reg.pl:573
38301 msgid "C<HKEY_USERS\\.DEFAULT>"
38302 msgstr ""
38303
38304 #. type: =item
38305 #: ../tools/virt-win-reg.pl:575
38306 msgid "C<HKEY_USERS\\I<SID>>"
38307 msgstr ""
38308
38309 #. type: textblock
38310 #: ../tools/virt-win-reg.pl:577
38311 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
38312 msgstr ""
38313
38314 #. type: =item
38315 #: ../tools/virt-win-reg.pl:579
38316 msgid "C<HKEY_USERS\\I<username>>"
38317 msgstr ""
38318
38319 #. type: textblock
38320 #: ../tools/virt-win-reg.pl:581
38321 msgid ""
38322 "where I<username> is a local user name (this is a libguestfs extension)."
38323 msgstr ""
38324
38325 #. type: textblock
38326 #: ../tools/virt-win-reg.pl:585
38327 msgid ""
38328 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
38329 "C<HKEY_USERS>."
38330 msgstr ""
38331
38332 #. type: textblock
38333 #: ../tools/virt-win-reg.pl:588
38334 msgid ""
38335 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
38336 "supported (there is no \"current user\")."
38337 msgstr ""
38338
38339 #. type: =head1
38340 #: ../tools/virt-win-reg.pl:591
38341 msgid "ENCODING"
38342 msgstr ""
38343
38344 #. type: textblock
38345 #: ../tools/virt-win-reg.pl:593
38346 msgid ""
38347 "C<virt-win-reg> expects that regedit files have already been reencoded in "
38348 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
38349 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
38350 "Windows-style line endings, you may need to reencode the whole file before "
38351 "or after processing."
38352 msgstr ""
38353
38354 #. type: textblock
38355 #: ../tools/virt-win-reg.pl:599
38356 msgid ""
38357 "To reencode a file from Windows format to Linux (before processing it with "
38358 "the I<--merge> option), you would do something like this:"
38359 msgstr ""
38360
38361 #. type: verbatim
38362 #: ../tools/virt-win-reg.pl:602
38363 #, no-wrap
38364 msgid ""
38365 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
38366 "\n"
38367 msgstr ""
38368
38369 #. type: textblock
38370 #: ../tools/virt-win-reg.pl:604
38371 msgid ""
38372 "To go in the opposite direction, after exporting and before sending the file "
38373 "to a Windows user, do something like this:"
38374 msgstr ""
38375
38376 #. type: verbatim
38377 #: ../tools/virt-win-reg.pl:607
38378 #, no-wrap
38379 msgid ""
38380 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
38381 "\n"
38382 msgstr ""
38383
38384 #. type: textblock
38385 #: ../tools/virt-win-reg.pl:609
38386 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
38387 msgstr ""
38388
38389 #. type: textblock
38390 #: ../tools/virt-win-reg.pl:611
38391 msgid ""
38392 "If you are unsure about the current encoding, use the L<file(1)> command.  "
38393 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
38394 "style (CRLF) line endings, like this:"
38395 msgstr ""
38396
38397 #. type: verbatim
38398 #: ../tools/virt-win-reg.pl:615
38399 #, no-wrap
38400 msgid ""
38401 " $ file software.reg\n"
38402 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
38403 " with CRLF line terminators\n"
38404 "\n"
38405 msgstr ""
38406
38407 #. type: textblock
38408 #: ../tools/virt-win-reg.pl:619
38409 msgid "This file would need conversion before you could I<--merge> it."
38410 msgstr ""
38411
38412 #. type: =head1
38413 #: ../tools/virt-win-reg.pl:621
38414 msgid "CurrentControlSet etc."
38415 msgstr ""
38416
38417 #. type: textblock
38418 #: ../tools/virt-win-reg.pl:623
38419 msgid ""
38420 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
38421 "Registry at the level of the hive file, and therefore you cannot modify "
38422 "these."
38423 msgstr ""
38424
38425 #. type: textblock
38426 #: ../tools/virt-win-reg.pl:627
38427 msgid ""
38428 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
38429 "circumstances it might refer to another control set.  The way to find out is "
38430 "to look at the C<HKLM\\SYSTEM\\Select> key:"
38431 msgstr ""
38432
38433 #. type: verbatim
38434 #: ../tools/virt-win-reg.pl:631
38435 #, no-wrap
38436 msgid ""
38437 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
38438 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
38439 " \"Current\"=dword:00000001\n"
38440 " \"Default\"=dword:00000001\n"
38441 " \"Failed\"=dword:00000000\n"
38442 " \"LastKnownGood\"=dword:00000002\n"
38443 "\n"
38444 msgstr ""
38445
38446 #. type: textblock
38447 #: ../tools/virt-win-reg.pl:638
38448 msgid "\"Current\" is the one which Windows will choose when it boots."
38449 msgstr ""
38450
38451 #. type: textblock
38452 #: ../tools/virt-win-reg.pl:640
38453 msgid ""
38454 "Similarly, other C<Current...> keys in the path may need to be replaced."
38455 msgstr ""
38456
38457 #. type: =head1
38458 #: ../tools/virt-win-reg.pl:643
38459 msgid "WINDOWS TIPS"
38460 msgstr ""
38461
38462 #. type: textblock
38463 #: ../tools/virt-win-reg.pl:645
38464 msgid ""
38465 "Note that some of these tips modify the guest disk image.  The guest I<must> "
38466 "be shut off, else you will get disk corruption."
38467 msgstr ""
38468
38469 #. type: =head2
38470 #: ../tools/virt-win-reg.pl:648
38471 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
38472 msgstr ""
38473
38474 #. type: textblock
38475 #: ../tools/virt-win-reg.pl:650
38476 msgid ""
38477 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
38478 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
38479 "is uploaded into C<C:\\>:"
38480 msgstr ""
38481
38482 #. type: verbatim
38483 #: ../tools/virt-win-reg.pl:654
38484 #, no-wrap
38485 msgid ""
38486 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
38487 "\n"
38488 msgstr ""
38489
38490 #. type: textblock
38491 #: ../tools/virt-win-reg.pl:656
38492 msgid "Prepare a regedit file containing the registry change:"
38493 msgstr ""
38494
38495 #. type: verbatim
38496 #: ../tools/virt-win-reg.pl:658
38497 #, no-wrap
38498 msgid ""
38499 " cat > test.reg <<'EOF'\n"
38500 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
38501 " \"Test\"=\"c:\\\\test.bat\"\n"
38502 " EOF\n"
38503 "\n"
38504 msgstr ""
38505
38506 #. type: textblock
38507 #: ../tools/virt-win-reg.pl:663
38508 msgid ""
38509 "In this example we use the key C<RunOnce> which means that the script will "
38510 "run precisely once when the first user logs in.  If you want it to run every "
38511 "time a user logs in, replace C<RunOnce> with C<Run>."
38512 msgstr ""
38513
38514 #. type: textblock
38515 #: ../tools/virt-win-reg.pl:667
38516 msgid "Now update the registry:"
38517 msgstr ""
38518
38519 #. type: verbatim
38520 #: ../tools/virt-win-reg.pl:669
38521 #, no-wrap
38522 msgid ""
38523 " virt-win-reg --merge WindowsGuest test.reg\n"
38524 "\n"
38525 msgstr ""
38526
38527 #. type: =head2
38528 #: ../tools/virt-win-reg.pl:671
38529 msgid "INSTALLING A SERVICE"
38530 msgstr ""
38531
38532 #. type: textblock
38533 #: ../tools/virt-win-reg.pl:673
38534 msgid ""
38535 "This section assumes you are familiar with Windows services, and you either "
38536 "have a program which handles the Windows Service Control Protocol directly "
38537 "or you want to run any program using a service wrapper like SrvAny or the "
38538 "free RHSrvAny."
38539 msgstr ""
38540
38541 #. type: textblock
38542 #: ../tools/virt-win-reg.pl:678
38543 msgid ""
38544 "First upload the program and optionally the service wrapper.  In this case "
38545 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
38546 msgstr ""
38547
38548 #. type: verbatim
38549 #: ../tools/virt-win-reg.pl:682
38550 #, no-wrap
38551 msgid ""
38552 " guestfish -i -d WindowsGuest <<EOF\n"
38553 "   upload rhsrvany.exe /rhsrvany.exe\n"
38554 "   upload test.exe /test.exe\n"
38555 " EOF\n"
38556 "\n"
38557 msgstr ""
38558
38559 #. type: textblock
38560 #: ../tools/virt-win-reg.pl:687
38561 msgid ""
38562 "Prepare a regedit file containing the registry changes.  In this example, "
38563 "the first registry change is needed for the service itself or the service "
38564 "wrapper (if used).  The second registry change is only needed because I am "
38565 "using the RHSrvAny service wrapper."
38566 msgstr ""
38567
38568 #. type: verbatim
38569 #: ../tools/virt-win-reg.pl:692
38570 #, no-wrap
38571 msgid ""
38572 " cat > service.reg <<'EOF'\n"
38573 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
38574 " \"Type\"=dword:00000010\n"
38575 " \"Start\"=dword:00000002\n"
38576 " \"ErrorControl\"=dword:00000001\n"
38577 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
38578 " \"DisplayName\"=\"RHSrvAny\"\n"
38579 " \"ObjectName\"=\"NetworkService\"\n"
38580 " \n"
38581 msgstr ""
38582
38583 #. type: verbatim
38584 #: ../tools/virt-win-reg.pl:701
38585 #, no-wrap
38586 msgid ""
38587 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
38588 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
38589 " \"PWD\"=\"c:\\\\Temp\"\n"
38590 " EOF\n"
38591 "\n"
38592 msgstr ""
38593
38594 #. type: textblock
38595 #: ../tools/virt-win-reg.pl:712
38596 msgid ""
38597 "For use of C<ControlSet001> see the section above in this manual page.  You "
38598 "may need to adjust this according to the control set that is in use by the "
38599 "guest."
38600 msgstr ""
38601
38602 #. type: textblock
38603 #: ../tools/virt-win-reg.pl:718
38604 msgid ""
38605 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
38606 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
38607 "privileged account."
38608 msgstr ""
38609
38610 #. type: textblock
38611 #: ../tools/virt-win-reg.pl:724
38612 msgid ""
38613 "For the meaning of the magic numbers, see this Microsoft KB article: "
38614 "L<http://support.microsoft.com/kb/103000>."
38615 msgstr ""
38616
38617 #. type: textblock
38618 #: ../tools/virt-win-reg.pl:729
38619 msgid "Update the registry:"
38620 msgstr ""
38621
38622 #. type: verbatim
38623 #: ../tools/virt-win-reg.pl:731
38624 #, no-wrap
38625 msgid ""
38626 " virt-win-reg --merge WindowsGuest service.reg\n"
38627 "\n"
38628 msgstr ""
38629
38630 #. type: textblock
38631 #: ../tools/virt-win-reg.pl:735
38632 msgid ""
38633 "Be careful when passing parameters containing C<\\> (backslash) in the "
38634 "shell.  Usually you will have to use 'single quotes' or double backslashes "
38635 "(but not both) to protect them from the shell."
38636 msgstr ""
38637
38638 #. type: textblock
38639 #: ../tools/virt-win-reg.pl:739
38640 msgid "Paths and value names are case-insensitive."
38641 msgstr ""
38642
38643 #. type: textblock
38644 #: ../tools/virt-win-reg.pl:748
38645 msgid ""
38646 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
38647 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
38648 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38649 msgstr ""
38650
38651 #. type: verbatim
38652 #: ../tools/virt-win-reg.pl:766
38653 #, no-wrap
38654 msgid ""
38655 " export LIBGUESTFS_DEBUG=1\n"
38656 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
38657 "\n"
38658 msgstr ""
38659
38660 #. type: textblock
38661 #: ../tools/virt-win-reg.pl:769
38662 msgid ""
38663 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
38664 "redhat.com/>"
38665 msgstr ""