Version 1.13.10.
[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-08-28 17:57+0200\n"
11 "PO-Revision-Date: 2011-07-17 20:50+0000\n"
12 "Last-Translator: rjones <rjones@redhat.com>\n"
13 "Language-Team: Japanese (http://www.transifex.net/projects/p/fedora/team/"
14 "ja/)\n"
15 "Language: ja\n"
16 "MIME-Version: 1.0\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19 "Plural-Forms: nplurals=1; plural=0\n"
20
21 #. type: =head1
22 #: ../cat/virt-cat.pod:3 ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3
23 #: ../df/virt-df.pod:3 ../edit/virt-edit.pod:3
24 #: ../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:1018 ../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:83
239 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84
240 #: ../resize/virt-resize.pod:241 ../test-tool/libguestfs-test-tool.pod:37
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:151
251 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88
252 #: ../resize/virt-resize.pod:245 ../tools/virt-list-filesystems.pl:61
253 #: ../tools/virt-list-partitions.pl:62 ../tools/virt-make-fs.pl:161
254 #: ../tools/virt-tar.pl:111 ../tools/virt-win-reg.pl:104
255 msgid "B<--help>"
256 msgstr ""
257
258 #. type: textblock
259 #: ../cat/virt-cat.pod:68 ../cat/virt-filesystems.pod:97
260 #: ../cat/virt-ls.pod:267 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
261 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90
262 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
263 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
264 #: ../tools/virt-win-reg.pl:106
265 msgid "Display brief help."
266 msgstr ""
267
268 #. type: =item
269 #: ../cat/virt-cat.pod:70 ../cat/virt-filesystems.pod:99
270 #: ../cat/virt-ls.pod:269 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
271 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
272 msgid "B<-a> file"
273 msgstr ""
274
275 #. type: =item
276 #: ../cat/virt-cat.pod:72 ../cat/virt-filesystems.pod:101
277 #: ../cat/virt-ls.pod:271 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
278 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
279 msgid "B<--add> file"
280 msgstr ""
281
282 #. type: textblock
283 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
284 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
285 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
286 msgid ""
287 "Add I<file> which should be a disk image from a virtual machine.  If the "
288 "virtual machine has multiple block devices, you must supply all of them with "
289 "separate I<-a> options."
290 msgstr ""
291
292 #. type: textblock
293 #: ../cat/virt-cat.pod:78 ../cat/virt-filesystems.pod:107
294 #: ../cat/virt-ls.pod:277 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
295 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:93
296 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
297 msgid ""
298 "The format of the disk image is auto-detected.  To override this and force a "
299 "particular format use the I<--format=..> option."
300 msgstr ""
301
302 #. type: =item
303 #: ../cat/virt-cat.pod:81 ../cat/virt-filesystems.pod:125
304 #: ../cat/virt-ls.pod:291 ../df/virt-df.pod:78 ../rescue/virt-rescue.pod:107
305 msgid "B<-c> URI"
306 msgstr ""
307
308 #. type: =item
309 #: ../cat/virt-cat.pod:83 ../cat/virt-filesystems.pod:127
310 #: ../cat/virt-ls.pod:293 ../df/virt-df.pod:80 ../rescue/virt-rescue.pod:109
311 msgid "B<--connect> URI"
312 msgstr ""
313
314 #. type: textblock
315 #: ../cat/virt-cat.pod:85 ../cat/virt-filesystems.pod:129
316 #: ../cat/virt-ls.pod:295 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
317 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111
318 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
319 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
320 msgid ""
321 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
322 "to the default libvirt hypervisor."
323 msgstr ""
324
325 #. type: textblock
326 #: ../cat/virt-cat.pod:88 ../cat/virt-filesystems.pod:132
327 #: ../cat/virt-ls.pod:298 ../df/virt-df.pod:85 ../rescue/virt-rescue.pod:114
328 msgid ""
329 "If you specify guest block devices directly (I<-a>), then libvirt is not "
330 "used at all."
331 msgstr ""
332
333 #. type: =item
334 #: ../cat/virt-cat.pod:91 ../cat/virt-filesystems.pod:141
335 #: ../cat/virt-ls.pod:307 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
336 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
337 msgid "B<-d> guest"
338 msgstr ""
339
340 #. type: =item
341 #: ../cat/virt-cat.pod:93 ../cat/virt-filesystems.pod:143
342 #: ../cat/virt-ls.pod:309 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
343 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
344 msgid "B<--domain> guest"
345 msgstr ""
346
347 #. type: textblock
348 #: ../cat/virt-cat.pod:95 ../cat/virt-filesystems.pod:145
349 #: ../cat/virt-ls.pod:311 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
350 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
351 msgid ""
352 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
353 "instead of names."
354 msgstr ""
355
356 #. type: =item
357 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
358 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
359 #: ../fuse/guestmount.pod:126 ../inspector/virt-inspector.pod:92
360 msgid "B<--echo-keys>"
361 msgstr ""
362
363 #. type: textblock
364 #: ../cat/virt-cat.pod:100
365 msgid ""
366 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
367 "so you cannot see what you are typing.  If you are not worried about Tempest "
368 "attacks and there is no one else in the room you can specify this flag to "
369 "see what you are typing."
370 msgstr ""
371
372 #. type: =item
373 #: ../cat/virt-cat.pod:105 ../cat/virt-filesystems.pod:170
374 #: ../cat/virt-ls.pod:328 ../df/virt-df.pod:101 ../fish/guestfish.pod:233
375 #: ../fuse/guestmount.pod:133 ../inspector/virt-inspector.pod:99
376 #: ../rescue/virt-rescue.pod:124
377 msgid "B<--format=raw|qcow2|..>"
378 msgstr ""
379
380 #. type: =item
381 #: ../cat/virt-cat.pod:107 ../cat/virt-filesystems.pod:172
382 #: ../cat/virt-ls.pod:330 ../df/virt-df.pod:103 ../edit/virt-edit.pod:134
383 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:135
384 #: ../inspector/virt-inspector.pod:101 ../rescue/virt-rescue.pod:126
385 msgid "B<--format>"
386 msgstr ""
387
388 #. type: textblock
389 #: ../cat/virt-cat.pod:109 ../cat/virt-filesystems.pod:174
390 #: ../cat/virt-ls.pod:332 ../df/virt-df.pod:105 ../edit/virt-edit.pod:136
391 #: ../fish/guestfish.pod:237 ../fuse/guestmount.pod:137
392 #: ../rescue/virt-rescue.pod:128
393 msgid ""
394 "The default for the I<-a> option is to auto-detect the format of the disk "
395 "image.  Using this forces the disk format for I<-a> options which follow on "
396 "the command line.  Using I<--format> with no argument switches back to auto-"
397 "detection for subsequent I<-a> options."
398 msgstr ""
399
400 #. type: textblock
401 #: ../cat/virt-cat.pod:114 ../cat/virt-filesystems.pod:179
402 #: ../cat/virt-ls.pod:337 ../df/virt-df.pod:110 ../edit/virt-edit.pod:141
403 #: ../fish/guestfish.pod:242 ../fish/guestfish.pod:673
404 #: ../inspector/virt-inspector.pod:336 ../rescue/virt-rescue.pod:133
405 #: ../src/guestfs.pod:2668
406 msgid "For example:"
407 msgstr ""
408
409 #. type: verbatim
410 #: ../cat/virt-cat.pod:116
411 #, no-wrap
412 msgid ""
413 " virt-cat --format=raw -a disk.img file\n"
414 "\n"
415 msgstr ""
416
417 #. type: textblock
418 #: ../cat/virt-cat.pod:118 ../cat/virt-filesystems.pod:183
419 #: ../cat/virt-ls.pod:341 ../df/virt-df.pod:114 ../edit/virt-edit.pod:145
420 #: ../fish/guestfish.pod:246 ../rescue/virt-rescue.pod:137
421 msgid "forces raw format (no auto-detection) for C<disk.img>."
422 msgstr ""
423
424 #. type: verbatim
425 #: ../cat/virt-cat.pod:120
426 #, no-wrap
427 msgid ""
428 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
429 "\n"
430 msgstr ""
431
432 #. type: textblock
433 #: ../cat/virt-cat.pod:122 ../cat/virt-filesystems.pod:187
434 #: ../cat/virt-ls.pod:345 ../df/virt-df.pod:118 ../edit/virt-edit.pod:149
435 #: ../fish/guestfish.pod:250 ../rescue/virt-rescue.pod:141
436 msgid ""
437 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
438 "detection for C<another.img>."
439 msgstr ""
440
441 #. type: textblock
442 #: ../cat/virt-cat.pod:125 ../cat/virt-filesystems.pod:190
443 #: ../cat/virt-ls.pod:348 ../df/virt-df.pod:121 ../edit/virt-edit.pod:152
444 #: ../rescue/virt-rescue.pod:144
445 msgid ""
446 "If you have untrusted raw-format guest disk images, you should use this "
447 "option to specify the disk format.  This avoids a possible security problem "
448 "with malicious guests (CVE-2010-3851)."
449 msgstr ""
450
451 #. type: =item
452 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
453 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
454 #: ../fuse/guestmount.pod:163 ../inspector/virt-inspector.pod:114
455 msgid "B<--keys-from-stdin>"
456 msgstr ""
457
458 #. type: textblock
459 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
460 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
461 #: ../fuse/guestmount.pod:165 ../inspector/virt-inspector.pod:116
462 msgid ""
463 "Read key or passphrase parameters from stdin.  The default is to try to read "
464 "passphrases from the user by opening C</dev/tty>."
465 msgstr ""
466
467 #. type: =item
468 #: ../cat/virt-cat.pod:134 ../cat/virt-filesystems.pod:261
469 #: ../cat/virt-ls.pod:425 ../df/virt-df.pod:173 ../edit/virt-edit.pod:161
470 #: ../fish/guestfish.pod:390 ../fuse/guestmount.pod:257
471 #: ../inspector/virt-inspector.pod:119 ../rescue/virt-rescue.pod:178
472 msgid "B<-v>"
473 msgstr ""
474
475 #. type: =item
476 #: ../cat/virt-cat.pod:136 ../cat/virt-filesystems.pod:263
477 #: ../cat/virt-ls.pod:427 ../df/virt-df.pod:175 ../edit/virt-edit.pod:163
478 #: ../fish/guestfish.pod:392 ../fuse/guestmount.pod:259
479 #: ../inspector/virt-inspector.pod:121 ../rescue/virt-rescue.pod:180
480 msgid "B<--verbose>"
481 msgstr ""
482
483 #. type: textblock
484 #: ../cat/virt-cat.pod:138 ../cat/virt-filesystems.pod:265
485 #: ../cat/virt-ls.pod:429 ../df/virt-df.pod:177 ../edit/virt-edit.pod:165
486 #: ../inspector/virt-inspector.pod:123 ../rescue/virt-rescue.pod:182
487 msgid "Enable verbose messages for debugging."
488 msgstr ""
489
490 #. type: =item
491 #: ../cat/virt-cat.pod:140 ../cat/virt-filesystems.pod:267
492 #: ../cat/virt-ls.pod:431 ../df/virt-df.pod:179 ../edit/virt-edit.pod:167
493 #: ../fish/guestfish.pod:397 ../fuse/guestmount.pod:263
494 #: ../inspector/virt-inspector.pod:125 ../rescue/virt-rescue.pod:184
495 #: ../resize/virt-resize.pod:484
496 msgid "B<-V>"
497 msgstr ""
498
499 #. type: =item
500 #: ../cat/virt-cat.pod:142 ../cat/virt-filesystems.pod:269
501 #: ../cat/virt-ls.pod:433 ../df/virt-df.pod:181 ../edit/virt-edit.pod:169
502 #: ../fish/guestfish.pod:399 ../fuse/guestmount.pod:265
503 #: ../inspector/virt-inspector.pod:127 ../rescue/virt-rescue.pod:186
504 #: ../resize/virt-resize.pod:486 ../tools/virt-list-filesystems.pl:69
505 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
506 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
507 msgid "B<--version>"
508 msgstr ""
509
510 #. type: textblock
511 #: ../cat/virt-cat.pod:144 ../cat/virt-filesystems.pod:271
512 #: ../cat/virt-ls.pod:435 ../df/virt-df.pod:183 ../edit/virt-edit.pod:171
513 #: ../inspector/virt-inspector.pod:129 ../rescue/virt-rescue.pod:188
514 #: ../resize/virt-resize.pod:488 ../tools/virt-list-filesystems.pl:71
515 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
516 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
517 msgid "Display version number and exit."
518 msgstr ""
519
520 #. type: =item
521 #: ../cat/virt-cat.pod:146 ../cat/virt-filesystems.pod:281
522 #: ../cat/virt-ls.pod:437 ../df/virt-df.pod:185 ../edit/virt-edit.pod:173
523 #: ../fish/guestfish.pod:412 ../fuse/guestmount.pod:278
524 #: ../inspector/virt-inspector.pod:131 ../rescue/virt-rescue.pod:199
525 #: ../tools/virt-tar.pl:158
526 msgid "B<-x>"
527 msgstr ""
528
529 #. type: textblock
530 #: ../cat/virt-cat.pod:148 ../cat/virt-filesystems.pod:283
531 #: ../cat/virt-ls.pod:439 ../df/virt-df.pod:187 ../edit/virt-edit.pod:175
532 #: ../inspector/virt-inspector.pod:133 ../rescue/virt-rescue.pod:201
533 msgid "Enable tracing of libguestfs API calls."
534 msgstr ""
535
536 #. type: =head1
537 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
538 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:205
539 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
540 msgstr ""
541
542 #. type: textblock
543 #: ../cat/virt-cat.pod:154
544 msgid "Previous versions of virt-cat allowed you to write either:"
545 msgstr ""
546
547 #. type: verbatim
548 #: ../cat/virt-cat.pod:156
549 #, no-wrap
550 msgid ""
551 " virt-cat disk.img [disk.img ...] file\n"
552 "\n"
553 msgstr ""
554
555 #. type: textblock
556 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
557 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:211
558 msgid "or"
559 msgstr ""
560
561 #. type: verbatim
562 #: ../cat/virt-cat.pod:160
563 #, no-wrap
564 msgid ""
565 " virt-cat guestname file\n"
566 "\n"
567 msgstr ""
568
569 #. type: textblock
570 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
571 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:215
572 msgid ""
573 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
574 "the confusing case where a disk image might have the same name as a guest."
575 msgstr ""
576
577 #. type: textblock
578 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
579 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:219
580 msgid "For compatibility the old style is still supported."
581 msgstr ""
582
583 #. type: =head1
584 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
585 msgid "USING GUESTFISH"
586 msgstr ""
587
588 #. type: textblock
589 #: ../cat/virt-cat.pod:170
590 msgid ""
591 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
592 "C<virt-cat> doesn't work."
593 msgstr ""
594
595 #. type: textblock
596 #: ../cat/virt-cat.pod:173
597 msgid "Using C<virt-cat> is approximately equivalent to doing:"
598 msgstr ""
599
600 #. type: verbatim
601 #: ../cat/virt-cat.pod:175
602 #, no-wrap
603 msgid ""
604 " guestfish --ro -i -d domname download file -\n"
605 "\n"
606 msgstr ""
607
608 #. type: textblock
609 #: ../cat/virt-cat.pod:177
610 msgid ""
611 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
612 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
613 msgstr ""
614
615 #. type: textblock
616 #: ../cat/virt-cat.pod:181
617 msgid ""
618 "The command above uses libguestfs's guest inspection feature and so does not "
619 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
620 "disk images that don't contain guests.  To display a file from a disk image "
621 "directly, use:"
622 msgstr ""
623
624 #. type: verbatim
625 #: ../cat/virt-cat.pod:186
626 #, no-wrap
627 msgid ""
628 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
629 "\n"
630 msgstr ""
631
632 #. type: textblock
633 #: ../cat/virt-cat.pod:188
634 msgid ""
635 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
636 "the disk image, and C<file> is the full path to the file."
637 msgstr ""
638
639 #. type: =head1
640 #: ../cat/virt-cat.pod:191 ../cat/virt-filesystems.pod:365
641 #: ../cat/virt-ls.pod:483 ../df/virt-df.pod:215 ../edit/virt-edit.pod:342
642 #: ../inspector/virt-inspector.pod:352 ../rescue/virt-rescue.pod:262
643 #: ../resize/virt-resize.pod:601 ../tools/virt-list-filesystems.pl:188
644 #: ../tools/virt-list-partitions.pl:258 ../tools/virt-make-fs.pl:532
645 #: ../tools/virt-tar.pl:289 ../tools/virt-win-reg.pl:733
646 msgid "SHELL QUOTING"
647 msgstr ""
648
649 #. type: textblock
650 #: ../cat/virt-cat.pod:193 ../cat/virt-filesystems.pod:367
651 #: ../cat/virt-ls.pod:485 ../df/virt-df.pod:217 ../edit/virt-edit.pod:344
652 #: ../inspector/virt-inspector.pod:354 ../rescue/virt-rescue.pod:264
653 #: ../resize/virt-resize.pod:603 ../tools/virt-list-filesystems.pl:190
654 #: ../tools/virt-list-partitions.pl:260 ../tools/virt-make-fs.pl:534
655 #: ../tools/virt-tar.pl:291 ../tools/virt-win-reg.pl:741
656 msgid ""
657 "Libvirt guest names can contain arbitrary characters, some of which have "
658 "meaning to the shell such as C<#> and space.  You may need to quote or "
659 "escape these characters on the command line.  See the shell manual page L<sh"
660 "(1)> for details."
661 msgstr ""
662
663 #. type: =head1
664 #: ../cat/virt-cat.pod:198 ../cat/virt-filesystems.pod:372
665 #: ../cat/virt-ls.pod:490 ../df/virt-df.pod:222 ../edit/virt-edit.pod:349
666 #: ../fish/guestfish.pod:1081 ../fuse/guestmount.pod:303
667 #: ../inspector/virt-inspector.pod:375 ../resize/virt-resize.pod:608
668 #: ../test-tool/libguestfs-test-tool.pod:77
669 msgid "EXIT STATUS"
670 msgstr ""
671
672 #. type: textblock
673 #: ../cat/virt-cat.pod:200 ../cat/virt-filesystems.pod:374
674 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
675 #: ../fuse/guestmount.pod:305 ../inspector/virt-inspector.pod:377
676 #: ../resize/virt-resize.pod:610
677 msgid ""
678 "This program returns 0 if successful, or non-zero if there was an error."
679 msgstr ""
680
681 #. type: =head1
682 #: ../cat/virt-cat.pod:203 ../cat/virt-filesystems.pod:377
683 #: ../cat/virt-ls.pod:495 ../df/virt-df.pod:227 ../edit/virt-edit.pod:354
684 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
685 #: ../fish/guestfish.pod:1235 ../fish/virt-copy-in.pod:50
686 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
687 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:308
688 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45
689 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
690 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:284
691 #: ../resize/virt-resize.pod:613 ../ruby/examples/guestfs-ruby.pod:36
692 #: ../src/guestfs.pod:3042 ../test-tool/libguestfs-test-tool.pod:87
693 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
694 #: ../tools/virt-make-fs.pl:539 ../tools/virt-tar.pl:296
695 #: ../tools/virt-win-reg.pl:746
696 msgid "SEE ALSO"
697 msgstr ""
698
699 #. type: textblock
700 #: ../cat/virt-cat.pod:205
701 msgid ""
702 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
703 "tar-out(1)>, L<http://libguestfs.org/>."
704 msgstr ""
705
706 #. type: =head1
707 #: ../cat/virt-cat.pod:212 ../cat/virt-filesystems.pod:388
708 #: ../cat/virt-ls.pod:507 ../df/virt-df.pod:235 ../edit/virt-edit.pod:368
709 #: ../rescue/virt-rescue.pod:292 ../resize/virt-resize.pod:634
710 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
711 #: ../tools/virt-make-fs.pl:564 ../tools/virt-tar.pl:311
712 #: ../tools/virt-win-reg.pl:772
713 msgid "AUTHOR"
714 msgstr ""
715
716 #. type: textblock
717 #: ../cat/virt-cat.pod:214 ../cat/virt-filesystems.pod:390
718 #: ../cat/virt-ls.pod:509 ../df/virt-df.pod:237 ../edit/virt-edit.pod:370
719 #: ../inspector/virt-inspector.pod:395 ../rescue/virt-rescue.pod:294
720 #: ../resize/virt-resize.pod:636 ../tools/virt-list-filesystems.pl:210
721 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:566
722 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:774
723 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
724 msgstr ""
725
726 #. type: =head1
727 #: ../cat/virt-cat.pod:216 ../cat/virt-filesystems.pod:392
728 #: ../cat/virt-ls.pod:511 ../df/virt-df.pod:239 ../edit/virt-edit.pod:372
729 #: ../examples/guestfs-examples.pod:48 ../examples/guestfs-recipes.pod:400
730 #: ../fish/guestfish.pod:1264 ../fish/virt-copy-in.pod:64
731 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
732 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:323
733 #: ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:61
734 #: ../ocaml/examples/guestfs-ocaml.pod:94 ../perl/examples/guestfs-perl.pod:55
735 #: ../python/examples/guestfs-python.pod:57 ../rescue/virt-rescue.pod:296
736 #: ../resize/virt-resize.pod:638 ../ruby/examples/guestfs-ruby.pod:51
737 #: ../src/guestfs.pod:3118 ../test-tool/libguestfs-test-tool.pod:97
738 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
739 #: ../tools/virt-make-fs.pl:568 ../tools/virt-tar.pl:315
740 #: ../tools/virt-win-reg.pl:776
741 msgid "COPYRIGHT"
742 msgstr ""
743
744 #. type: textblock
745 #: ../cat/virt-cat.pod:218 ../inspector/virt-inspector.pod:405
746 #: ../resize/virt-resize.pod:640
747 msgid "Copyright (C) 2010-2011 Red Hat Inc."
748 msgstr ""
749
750 #. type: textblock
751 #: ../cat/virt-cat.pod:220 ../cat/virt-filesystems.pod:396
752 #: ../cat/virt-ls.pod:515 ../df/virt-df.pod:243 ../edit/virt-edit.pod:376
753 #: ../fish/guestfish.pod:1269 ../fish/virt-copy-in.pod:69
754 #: ../fish/virt-copy-out.pod:58 ../fish/virt-tar-in.pod:67
755 #: ../fish/virt-tar-out.pod:60 ../fuse/guestmount.pod:328
756 #: ../inspector/virt-inspector.pod:407 ../rescue/virt-rescue.pod:300
757 #: ../resize/virt-resize.pod:642 ../test-tool/libguestfs-test-tool.pod:102
758 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
759 #: ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319
760 #: ../tools/virt-win-reg.pl:780
761 msgid ""
762 "This program is free software; you can redistribute it and/or modify it "
763 "under the terms of the GNU General Public License as published by the Free "
764 "Software Foundation; either version 2 of the License, or (at your option) "
765 "any later version."
766 msgstr ""
767
768 #. type: textblock
769 #: ../cat/virt-cat.pod:225 ../cat/virt-filesystems.pod:401
770 #: ../cat/virt-ls.pod:520 ../df/virt-df.pod:248 ../edit/virt-edit.pod:381
771 #: ../fish/guestfish.pod:1274 ../fish/virt-copy-in.pod:74
772 #: ../fish/virt-copy-out.pod:63 ../fish/virt-tar-in.pod:72
773 #: ../fish/virt-tar-out.pod:65 ../fuse/guestmount.pod:333
774 #: ../inspector/virt-inspector.pod:412 ../rescue/virt-rescue.pod:305
775 #: ../resize/virt-resize.pod:647 ../test-tool/libguestfs-test-tool.pod:107
776 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
777 #: ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324
778 #: ../tools/virt-win-reg.pl:785
779 msgid ""
780 "This program is distributed in the hope that it will be useful, but WITHOUT "
781 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
782 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
783 "more details."
784 msgstr ""
785
786 #. type: textblock
787 #: ../cat/virt-cat.pod:230 ../cat/virt-filesystems.pod:406
788 #: ../cat/virt-ls.pod:525 ../df/virt-df.pod:253 ../edit/virt-edit.pod:386
789 #: ../fish/guestfish.pod:1279 ../fish/virt-copy-in.pod:79
790 #: ../fish/virt-copy-out.pod:68 ../fish/virt-tar-in.pod:77
791 #: ../fish/virt-tar-out.pod:70 ../fuse/guestmount.pod:338
792 #: ../inspector/virt-inspector.pod:417 ../rescue/virt-rescue.pod:310
793 #: ../resize/virt-resize.pod:652 ../test-tool/libguestfs-test-tool.pod:112
794 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
795 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329
796 #: ../tools/virt-win-reg.pl:790
797 msgid ""
798 "You should have received a copy of the GNU General Public License along with "
799 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
800 "Ave, Cambridge, MA 02139, USA."
801 msgstr ""
802
803 #. type: textblock
804 #: ../cat/virt-filesystems.pod:5
805 msgid ""
806 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
807 "virtual machine or disk image"
808 msgstr ""
809
810 #. type: verbatim
811 #: ../cat/virt-filesystems.pod:9
812 #, no-wrap
813 msgid ""
814 " virt-filesystems [--options] -d domname\n"
815 "\n"
816 msgstr ""
817
818 #. type: verbatim
819 #: ../cat/virt-filesystems.pod:11
820 #, no-wrap
821 msgid ""
822 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
823 "\n"
824 msgstr ""
825
826 #. type: textblock
827 #: ../cat/virt-filesystems.pod:15
828 msgid ""
829 "This tool allows you to discover filesystems, partitions, logical volumes, "
830 "and their sizes in a disk image or virtual machine.  It is a replacement for "
831 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
832 msgstr ""
833
834 #. type: textblock
835 #: ../cat/virt-filesystems.pod:20
836 msgid ""
837 "One use for this tool is from shell scripts to iterate over all filesystems "
838 "from a disk image:"
839 msgstr ""
840
841 #. type: verbatim
842 #: ../cat/virt-filesystems.pod:23
843 #, no-wrap
844 msgid ""
845 " for fs in $(virt-filesystems -a disk.img); do\n"
846 "   # ...\n"
847 " done\n"
848 "\n"
849 msgstr ""
850
851 #. type: textblock
852 #: ../cat/virt-filesystems.pod:27
853 msgid ""
854 "Another use is to list partitions before using another tool to modify those "
855 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
856 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
857 msgstr ""
858
859 #. type: textblock
860 #: ../cat/virt-filesystems.pod:32
861 msgid ""
862 "Various command line options control what this program displays.  You need "
863 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
864 "guest respectively.  If you just specify that then the program shows "
865 "filesystems found, one per line, like this:"
866 msgstr ""
867
868 #. type: verbatim
869 #: ../cat/virt-filesystems.pod:37
870 #, no-wrap
871 msgid ""
872 " $ virt-filesystems -a disk.img\n"
873 " /dev/sda1\n"
874 " /dev/vg_guest/lv_root\n"
875 "\n"
876 msgstr ""
877
878 #. type: textblock
879 #: ../cat/virt-filesystems.pod:41
880 msgid ""
881 "If you add I<-l> or I<--long> then the output includes extra information:"
882 msgstr ""
883
884 #. type: verbatim
885 #: ../cat/virt-filesystems.pod:44
886 #, no-wrap
887 msgid ""
888 " $ virt-filesystems -a disk.img -l\n"
889 " Name                   Type         VFS   Label  Size\n"
890 " /dev/sda1              filesystem   ext4  boot   524288000\n"
891 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
892 "\n"
893 msgstr ""
894
895 #. type: textblock
896 #: ../cat/virt-filesystems.pod:49
897 msgid ""
898 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
899 "shown as well:"
900 msgstr ""
901
902 #. type: verbatim
903 #: ../cat/virt-filesystems.pod:52
904 #, no-wrap
905 msgid ""
906 " $ virt-filesystems -a disk.img --extra\n"
907 " /dev/sda1\n"
908 " /dev/vg_guest/lv_root\n"
909 " /dev/vg_guest/lv_swap\n"
910 " /dev/vg_guest/lv_data\n"
911 "\n"
912 msgstr ""
913
914 #. type: textblock
915 #: ../cat/virt-filesystems.pod:58
916 msgid ""
917 "If you add I<--partitions> then partitions are shown instead of filesystems:"
918 msgstr ""
919
920 #. type: verbatim
921 #: ../cat/virt-filesystems.pod:60
922 #, no-wrap
923 msgid ""
924 " $ virt-filesystems -a disk.img --partitions\n"
925 " /dev/sda1\n"
926 " /dev/sda2\n"
927 "\n"
928 msgstr ""
929
930 #. type: textblock
931 #: ../cat/virt-filesystems.pod:64
932 msgid ""
933 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
934 "volumes>, I<--block-devices> to list those items."
935 msgstr ""
936
937 #. type: textblock
938 #: ../cat/virt-filesystems.pod:67
939 msgid ""
940 "You can use these options in combination as well (if you want a combination "
941 "including filesystems, you have to add I<--filesystems>).  Notice that some "
942 "items fall into several categories (eg. C</dev/sda1> might be both a "
943 "partition and a filesystem).  These items are listed several times.  To get "
944 "a list which includes absolutely everything that virt-filesystems knows "
945 "about, use the I<--all> option."
946 msgstr ""
947
948 #. type: textblock
949 #: ../cat/virt-filesystems.pod:74
950 msgid ""
951 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
952 "uuid> option to display device and filesystem UUIDs in the long output."
953 msgstr ""
954
955 #. type: textblock
956 #: ../cat/virt-filesystems.pod:78
957 msgid ""
958 "I<--all --long --uuid> is a useful combination to display all possible "
959 "information about everything."
960 msgstr ""
961
962 #. type: verbatim
963 #: ../cat/virt-filesystems.pod:81
964 #, no-wrap
965 msgid ""
966 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
967 " Name      Type       VFS  Label           Size Parent   UUID\n"
968 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
969 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
970 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
971 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
972 " /dev/sda  device     -    -               20G  -        -\n"
973 "\n"
974 msgstr ""
975
976 #. type: textblock
977 #: ../cat/virt-filesystems.pod:89
978 msgid ""
979 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
980 msgstr ""
981
982 #. type: =item
983 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
984 msgid "B<--all>"
985 msgstr ""
986
987 #. type: textblock
988 #: ../cat/virt-filesystems.pod:112
989 msgid ""
990 "Display everything.  This is currently the same as specifying these options: "
991 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
992 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
993 "added to this list in future)."
994 msgstr ""
995
996 #. type: textblock
997 #: ../cat/virt-filesystems.pod:117
998 msgid "See also I<--long>."
999 msgstr ""
1000
1001 #. type: =item
1002 #: ../cat/virt-filesystems.pod:119
1003 msgid "B<--blkdevs>"
1004 msgstr ""
1005
1006 #. type: =item
1007 #: ../cat/virt-filesystems.pod:121
1008 msgid "B<--block-devices>"
1009 msgstr ""
1010
1011 #. type: textblock
1012 #: ../cat/virt-filesystems.pod:123
1013 msgid "Display block devices."
1014 msgstr ""
1015
1016 #. type: =item
1017 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1018 msgid "B<--csv>"
1019 msgstr ""
1020
1021 #. type: textblock
1022 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1023 msgid ""
1024 "Write out the results in CSV format (comma-separated values).  This format "
1025 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1026 "ABOUT CSV FORMAT> below."
1027 msgstr ""
1028
1029 #. type: textblock
1030 #: ../cat/virt-filesystems.pod:150
1031 msgid ""
1032 "When prompting for keys and passphrases, virt-filesystems normally turns "
1033 "echoing off so you cannot see what you are typing.  If you are not worried "
1034 "about Tempest attacks and there is no one else in the room you can specify "
1035 "this flag to see what you are typing."
1036 msgstr ""
1037
1038 #. type: =item
1039 #: ../cat/virt-filesystems.pod:155
1040 msgid "B<--extra>"
1041 msgstr ""
1042
1043 #. type: textblock
1044 #: ../cat/virt-filesystems.pod:157
1045 msgid ""
1046 "This causes filesystems that are not ordinary, mountable filesystems to be "
1047 "displayed.  This category includes swapspace, and filesystems that are empty "
1048 "or contain unknown data."
1049 msgstr ""
1050
1051 #. type: textblock
1052 #: ../cat/virt-filesystems.pod:161
1053 msgid "This option implies I<--filesystems>."
1054 msgstr ""
1055
1056 #. type: =item
1057 #: ../cat/virt-filesystems.pod:163
1058 msgid "B<--filesystems>"
1059 msgstr ""
1060
1061 #. type: textblock
1062 #: ../cat/virt-filesystems.pod:165
1063 msgid ""
1064 "Display mountable filesystems.  If no display option was selected then this "
1065 "option is implied."
1066 msgstr ""
1067
1068 #. type: textblock
1069 #: ../cat/virt-filesystems.pod:168
1070 msgid "With I<--extra>, non-mountable filesystems are shown too."
1071 msgstr ""
1072
1073 #. type: verbatim
1074 #: ../cat/virt-filesystems.pod:181
1075 #, no-wrap
1076 msgid ""
1077 " virt-filesystems --format=raw -a disk.img\n"
1078 "\n"
1079 msgstr ""
1080
1081 #. type: verbatim
1082 #: ../cat/virt-filesystems.pod:185
1083 #, no-wrap
1084 msgid ""
1085 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1086 "\n"
1087 msgstr ""
1088
1089 #. type: =item
1090 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1091 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1092 #: ../tools/virt-list-partitions.pl:109
1093 msgid "B<-h>"
1094 msgstr ""
1095
1096 #. type: =item
1097 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1098 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1099 msgid "B<--human-readable>"
1100 msgstr ""
1101
1102 #. type: textblock
1103 #: ../cat/virt-filesystems.pod:198
1104 msgid "In I<--long> mode, display sizes in human-readable format."
1105 msgstr ""
1106
1107 #. type: =item
1108 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1109 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1110 msgid "B<-l>"
1111 msgstr ""
1112
1113 #. type: =item
1114 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1115 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1116 msgid "B<--long>"
1117 msgstr ""
1118
1119 #. type: textblock
1120 #: ../cat/virt-filesystems.pod:209
1121 msgid "Display extra columns of data (\"long format\")."
1122 msgstr ""
1123
1124 #. type: textblock
1125 #: ../cat/virt-filesystems.pod:211
1126 msgid "A title row is added unless you also specify I<--no-title>."
1127 msgstr ""
1128
1129 #. type: textblock
1130 #: ../cat/virt-filesystems.pod:213
1131 msgid ""
1132 "The extra columns displayed depend on what output you select, and the "
1133 "ordering of columns may change in future versions.  Use the title row, I<--"
1134 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1135 "programs."
1136 msgstr ""
1137
1138 #. type: textblock
1139 #: ../cat/virt-filesystems.pod:218
1140 msgid ""
1141 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1142 "default is to show raw numbers of I<bytes>."
1143 msgstr ""
1144
1145 #. type: textblock
1146 #: ../cat/virt-filesystems.pod:221
1147 msgid "Use I<--uuid> to display UUIDs too."
1148 msgstr ""
1149
1150 #. type: =item
1151 #: ../cat/virt-filesystems.pod:223
1152 msgid "B<--lvs>"
1153 msgstr ""
1154
1155 #. type: =item
1156 #: ../cat/virt-filesystems.pod:225
1157 msgid "B<--logvols>"
1158 msgstr ""
1159
1160 #. type: =item
1161 #: ../cat/virt-filesystems.pod:227
1162 msgid "B<--logical-volumes>"
1163 msgstr ""
1164
1165 #. type: textblock
1166 #: ../cat/virt-filesystems.pod:229
1167 msgid ""
1168 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1169 "of whether the LVs contain filesystems."
1170 msgstr ""
1171
1172 #. type: =item
1173 #: ../cat/virt-filesystems.pod:232
1174 msgid "B<--no-title>"
1175 msgstr ""
1176
1177 #. type: textblock
1178 #: ../cat/virt-filesystems.pod:234
1179 msgid "In I<--long> mode, don't add a title row."
1180 msgstr ""
1181
1182 #. type: textblock
1183 #: ../cat/virt-filesystems.pod:236
1184 msgid ""
1185 "Note that the order of the columns is not fixed, and may change in future "
1186 "versions of virt-filesystems, so using this option may give you unexpected "
1187 "surprises."
1188 msgstr ""
1189
1190 #. type: =item
1191 #: ../cat/virt-filesystems.pod:240
1192 msgid "B<--parts>"
1193 msgstr ""
1194
1195 #. type: =item
1196 #: ../cat/virt-filesystems.pod:242
1197 msgid "B<--partitions>"
1198 msgstr ""
1199
1200 #. type: textblock
1201 #: ../cat/virt-filesystems.pod:244
1202 msgid ""
1203 "Display partitions.  In this mode, these are displayed irrespective of "
1204 "whether the partitions contain filesystems."
1205 msgstr ""
1206
1207 #. type: =item
1208 #: ../cat/virt-filesystems.pod:247
1209 msgid "B<--pvs>"
1210 msgstr ""
1211
1212 #. type: =item
1213 #: ../cat/virt-filesystems.pod:249
1214 msgid "B<--physvols>"
1215 msgstr ""
1216
1217 #. type: =item
1218 #: ../cat/virt-filesystems.pod:251
1219 msgid "B<--physical-volumes>"
1220 msgstr ""
1221
1222 #. type: textblock
1223 #: ../cat/virt-filesystems.pod:253
1224 msgid "Display LVM physical volumes."
1225 msgstr ""
1226
1227 #. type: =item
1228 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1229 msgid "B<--uuid>"
1230 msgstr ""
1231
1232 #. type: =item
1233 #: ../cat/virt-filesystems.pod:257
1234 msgid "B<--uuids>"
1235 msgstr ""
1236
1237 #. type: textblock
1238 #: ../cat/virt-filesystems.pod:259
1239 msgid "In I<--long> mode, display UUIDs as well."
1240 msgstr ""
1241
1242 #. type: =item
1243 #: ../cat/virt-filesystems.pod:273
1244 msgid "B<--vgs>"
1245 msgstr ""
1246
1247 #. type: =item
1248 #: ../cat/virt-filesystems.pod:275
1249 msgid "B<--volgroups>"
1250 msgstr ""
1251
1252 #. type: =item
1253 #: ../cat/virt-filesystems.pod:277
1254 msgid "B<--volume-groups>"
1255 msgstr ""
1256
1257 #. type: textblock
1258 #: ../cat/virt-filesystems.pod:279
1259 msgid "Display LVM volume groups."
1260 msgstr ""
1261
1262 #. type: =head1
1263 #: ../cat/virt-filesystems.pod:287
1264 msgid "COLUMNS"
1265 msgstr ""
1266
1267 #. type: textblock
1268 #: ../cat/virt-filesystems.pod:289
1269 msgid ""
1270 "Note that columns in the output are subject to reordering and change in "
1271 "future versions of this tool."
1272 msgstr ""
1273
1274 #. type: =item
1275 #: ../cat/virt-filesystems.pod:294
1276 msgid "B<Name>"
1277 msgstr ""
1278
1279 #. type: textblock
1280 #: ../cat/virt-filesystems.pod:296
1281 msgid "The filesystem, partition, block device or LVM name."
1282 msgstr ""
1283
1284 #. type: textblock
1285 #: ../cat/virt-filesystems.pod:298
1286 msgid ""
1287 "For device and partition names these are displayed as canonical libguestfs "
1288 "names, so that for example C</dev/sda2> is the second partition on the first "
1289 "device."
1290 msgstr ""
1291
1292 #. type: textblock
1293 #: ../cat/virt-filesystems.pod:302
1294 msgid ""
1295 "If the I<--long> option is B<not> specified, then only the name column is "
1296 "shown in the output."
1297 msgstr ""
1298
1299 #. type: =item
1300 #: ../cat/virt-filesystems.pod:305
1301 msgid "B<Type>"
1302 msgstr ""
1303
1304 #. type: textblock
1305 #: ../cat/virt-filesystems.pod:307
1306 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1307 msgstr ""
1308
1309 #. type: =item
1310 #: ../cat/virt-filesystems.pod:309
1311 msgid "B<VFS>"
1312 msgstr ""
1313
1314 #. type: textblock
1315 #: ../cat/virt-filesystems.pod:311
1316 msgid ""
1317 "If there is a filesystem, then this column displays the filesystem type if "
1318 "one could be detected, eg. C<ext4>."
1319 msgstr ""
1320
1321 #. type: =item
1322 #: ../cat/virt-filesystems.pod:314
1323 msgid "B<Label>"
1324 msgstr ""
1325
1326 #. type: textblock
1327 #: ../cat/virt-filesystems.pod:316
1328 msgid ""
1329 "If the object has a label (used for identifying and mounting filesystems) "
1330 "then this column contains the label."
1331 msgstr ""
1332
1333 #. type: =item
1334 #: ../cat/virt-filesystems.pod:319
1335 msgid "B<Size>"
1336 msgstr ""
1337
1338 #. type: textblock
1339 #: ../cat/virt-filesystems.pod:321
1340 msgid ""
1341 "The size of the object in bytes.  If the I<--human> option is used then the "
1342 "size is displayed in a human-readable form."
1343 msgstr ""
1344
1345 #. type: =item
1346 #: ../cat/virt-filesystems.pod:324
1347 msgid "B<Parent>"
1348 msgstr ""
1349
1350 #. type: textblock
1351 #: ../cat/virt-filesystems.pod:326
1352 msgid ""
1353 "The parent column records the parent relationship between objects.  For "
1354 "example, if the object is a partition, then this column contains the name of "
1355 "the containing device.  If the object is a logical volume, then this column "
1356 "is the name of the volume group."
1357 msgstr ""
1358
1359 #. type: =item
1360 #: ../cat/virt-filesystems.pod:331
1361 msgid "B<UUID>"
1362 msgstr ""
1363
1364 #. type: textblock
1365 #: ../cat/virt-filesystems.pod:333
1366 msgid ""
1367 "If the object has a UUID (used for identifying and mounting filesystems and "
1368 "block devices) then this column contains the UUID as a string."
1369 msgstr ""
1370
1371 #. type: textblock
1372 #: ../cat/virt-filesystems.pod:337
1373 msgid "The UUID is only displayed if the I<--uuid> option is given."
1374 msgstr ""
1375
1376 #. type: =head1
1377 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459
1378 #: ../df/virt-df.pod:191
1379 msgid "NOTE ABOUT CSV FORMAT"
1380 msgstr ""
1381
1382 #. type: textblock
1383 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461
1384 #: ../df/virt-df.pod:193
1385 msgid ""
1386 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
1387 "should be easy to parse, but it is definitely not easy to parse."
1388 msgstr ""
1389
1390 #. type: textblock
1391 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464
1392 #: ../df/virt-df.pod:196
1393 msgid ""
1394 "Myth: Just split fields at commas.  Reality: This does I<not> work "
1395 "reliably.  This example has two columns:"
1396 msgstr ""
1397
1398 #. type: verbatim
1399 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467
1400 #: ../df/virt-df.pod:199
1401 #, no-wrap
1402 msgid ""
1403 " \"foo,bar\",baz\n"
1404 "\n"
1405 msgstr ""
1406
1407 #. type: textblock
1408 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469
1409 #: ../df/virt-df.pod:201
1410 msgid ""
1411 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
1412 "reliably.  This example has one row:"
1413 msgstr ""
1414
1415 #. type: verbatim
1416 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472
1417 #: ../df/virt-df.pod:204
1418 #, no-wrap
1419 msgid ""
1420 " \"foo\n"
1421 " bar\",baz\n"
1422 "\n"
1423 msgstr ""
1424
1425 #. type: textblock
1426 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475
1427 #: ../df/virt-df.pod:207
1428 msgid ""
1429 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1430 "packaged in major Linux distributions)."
1431 msgstr ""
1432
1433 #. type: textblock
1434 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478
1435 #: ../df/virt-df.pod:210
1436 msgid ""
1437 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1438 "or Python's built-in csv library)."
1439 msgstr ""
1440
1441 #. type: textblock
1442 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481
1443 #: ../df/virt-df.pod:213
1444 msgid "Most spreadsheets and databases can import CSV directly."
1445 msgstr ""
1446
1447 #. type: textblock
1448 #: ../cat/virt-filesystems.pod:379
1449 msgid ""
1450 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
1451 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
1452 "libguestfs.org/>."
1453 msgstr ""
1454
1455 #. type: textblock
1456 #: ../cat/virt-filesystems.pod:394 ../tools/virt-make-fs.pl:570
1457 #: ../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:4188
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:155
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:1938
2407 #: ../fish/guestfish-actions.pod:1944 ../fish/guestfish-actions.pod:1952
2408 #: ../fish/guestfish-actions.pod:1959 ../fish/guestfish-actions.pod:1966
2409 #: ../fish/guestfish.pod:445 ../fish/guestfish.pod:449
2410 #: ../fish/guestfish.pod:453 ../fish/guestfish.pod:457
2411 #: ../inspector/virt-inspector.pod:393 ../inspector/virt-inspector.pod:397
2412 #: ../resize/virt-resize.pod:282 ../resize/virt-resize.pod:286
2413 #: ../resize/virt-resize.pod:295 ../resize/virt-resize.pod:301
2414 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
2415 #: ../src/guestfs-actions.pod:588 ../src/guestfs-actions.pod:596
2416 #: ../src/guestfs-actions.pod:603 ../src/guestfs-actions.pod:610
2417 #: ../src/guestfs-actions.pod:1667 ../src/guestfs-actions.pod:1671
2418 #: ../src/guestfs-actions.pod:1675 ../src/guestfs-actions.pod:1679
2419 #: ../src/guestfs-actions.pod:1687 ../src/guestfs-actions.pod:1691
2420 #: ../src/guestfs-actions.pod:1695 ../src/guestfs-actions.pod:1705
2421 #: ../src/guestfs-actions.pod:1709 ../src/guestfs-actions.pod:1713
2422 #: ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:1855
2423 #: ../src/guestfs-actions.pod:1860 ../src/guestfs-actions.pod:1865
2424 #: ../src/guestfs-actions.pod:1926 ../src/guestfs-actions.pod:1930
2425 #: ../src/guestfs-actions.pod:1935 ../src/guestfs-actions.pod:2864
2426 #: ../src/guestfs-actions.pod:2870 ../src/guestfs-actions.pod:2878
2427 #: ../src/guestfs-actions.pod:2885 ../src/guestfs-actions.pod:2892
2428 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398
2429 #: ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411
2430 #: ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1064
2431 #: ../src/guestfs.pod:1068 ../src/guestfs.pod:1072 ../src/guestfs.pod:1077
2432 #: ../src/guestfs.pod:1085 ../src/guestfs.pod:1104 ../src/guestfs.pod:1112
2433 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1138 ../src/guestfs.pod:1142
2434 #: ../src/guestfs.pod:1146 ../src/guestfs.pod:1150 ../src/guestfs.pod:1154
2435 #: ../src/guestfs.pod:1644 ../src/guestfs.pod:1649 ../src/guestfs.pod:1653
2436 #: ../src/guestfs.pod:1755 ../src/guestfs.pod:1760 ../src/guestfs.pod:1764
2437 #: ../src/guestfs.pod:1774 ../src/guestfs.pod:2063 ../src/guestfs.pod:2068
2438 #: ../src/guestfs.pod:2074 ../src/guestfs.pod:2082 ../src/guestfs.pod:2436
2439 #: ../src/guestfs.pod:2442 ../src/guestfs.pod:2447 ../src/guestfs.pod:2453
2440 #: ../src/guestfs.pod:2834 ../src/guestfs.pod:2839 ../src/guestfs.pod:2843
2441 #: ../src/guestfs.pod:2847 ../src/guestfs.pod:2851 ../src/guestfs.pod:2865
2442 #: ../src/guestfs.pod:2870 ../src/guestfs.pod:3095 ../src/guestfs.pod:3099
2443 #: ../src/guestfs.pod:3103 ../src/guestfs.pod:3107
2444 #: ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202
2445 #: ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:710
2446 #: ../tools/virt-win-reg.pl:716 ../tools/virt-win-reg.pl:722
2447 msgid "*"
2448 msgstr ""
2449
2450 #. type: textblock
2451 #: ../df/virt-df.pod:150
2452 msgid ""
2453 "If you think an untrusted guest might actively try to exploit the libguestfs "
2454 "appliance kernel, then this prevents one guest from interfering with the "
2455 "stats printed for another guest."
2456 msgstr ""
2457
2458 #. type: textblock
2459 #: ../df/virt-df.pod:156
2460 msgid ""
2461 "If the kernel has a bug which stops it from accessing a filesystem in one "
2462 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
2463 "and report stats for further guests."
2464 msgstr ""
2465
2466 #. type: textblock
2467 #: ../df/virt-df.pod:165
2468 msgid ""
2469 "Print UUIDs instead of names.  This is useful for following a guest even "
2470 "when the guest is migrated or renamed, or when two guests happen to have the "
2471 "same name."
2472 msgstr ""
2473
2474 #. type: textblock
2475 #: ../df/virt-df.pod:169
2476 msgid ""
2477 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
2478 "images, we still print the disk image name even when this option is "
2479 "specified."
2480 msgstr ""
2481
2482 #. type: textblock
2483 #: ../df/virt-df.pod:229
2484 msgid ""
2485 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
2486 "libguestfs.org/>."
2487 msgstr ""
2488
2489 #. type: textblock
2490 #: ../edit/virt-edit.pod:5
2491 msgid "virt-edit - Edit a file in a virtual machine"
2492 msgstr ""
2493
2494 #. type: verbatim
2495 #: ../edit/virt-edit.pod:9
2496 #, no-wrap
2497 msgid ""
2498 " virt-edit [--options] -d domname file [file ...]\n"
2499 "\n"
2500 msgstr ""
2501
2502 #. type: verbatim
2503 #: ../edit/virt-edit.pod:11
2504 #, no-wrap
2505 msgid ""
2506 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
2507 "\n"
2508 msgstr ""
2509
2510 #. type: verbatim
2511 #: ../edit/virt-edit.pod:13
2512 #, no-wrap
2513 msgid ""
2514 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
2515 "\n"
2516 msgstr ""
2517
2518 #. type: verbatim
2519 #: ../edit/virt-edit.pod:17
2520 #, no-wrap
2521 msgid ""
2522 " virt-edit domname file\n"
2523 "\n"
2524 msgstr ""
2525
2526 #. type: verbatim
2527 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
2528 #, no-wrap
2529 msgid ""
2530 " virt-edit disk.img [disk.img ...] file\n"
2531 "\n"
2532 msgstr ""
2533
2534 #. type: =head1
2535 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
2536 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
2537 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
2538 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
2539 msgid "WARNING"
2540 msgstr ""
2541
2542 #. type: textblock
2543 #: ../edit/virt-edit.pod:23
2544 msgid ""
2545 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
2546 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
2547 "doing this, but doesn't catch all cases."
2548 msgstr ""
2549
2550 #. type: textblock
2551 #: ../edit/virt-edit.pod:29
2552 msgid ""
2553 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
2554 "exists in the named virtual machine (or disk image)."
2555 msgstr ""
2556
2557 #. type: textblock
2558 #: ../edit/virt-edit.pod:32
2559 msgid ""
2560 "Multiple filenames can be given, in which case they are each edited in "
2561 "turn.  Each filename must be a full path, starting at the root directory "
2562 "(starting with '/')."
2563 msgstr ""
2564
2565 #. type: textblock
2566 #: ../edit/virt-edit.pod:36
2567 msgid "If you want to just view a file, use L<virt-cat(1)>."
2568 msgstr ""
2569
2570 #. type: textblock
2571 #: ../edit/virt-edit.pod:38
2572 msgid ""
2573 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
2574 "USING GUESTFISH> below)."
2575 msgstr ""
2576
2577 #. type: textblock
2578 #: ../edit/virt-edit.pod:41
2579 msgid ""
2580 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
2581 "that and much more."
2582 msgstr ""
2583
2584 #. type: textblock
2585 #: ../edit/virt-edit.pod:46
2586 msgid "Edit the named files interactively:"
2587 msgstr ""
2588
2589 #. type: verbatim
2590 #: ../edit/virt-edit.pod:48
2591 #, no-wrap
2592 msgid ""
2593 " virt-edit -d mydomain /boot/grub/grub.conf\n"
2594 "\n"
2595 msgstr ""
2596
2597 #. type: verbatim
2598 #: ../edit/virt-edit.pod:50
2599 #, no-wrap
2600 msgid ""
2601 " virt-edit -d mydomain /etc/passwd\n"
2602 "\n"
2603 msgstr ""
2604
2605 #. type: textblock
2606 #: ../edit/virt-edit.pod:52
2607 msgid "For Windows guests, some Windows paths are understood:"
2608 msgstr ""
2609
2610 #. type: verbatim
2611 #: ../edit/virt-edit.pod:54
2612 #, no-wrap
2613 msgid ""
2614 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
2615 "\n"
2616 msgstr ""
2617
2618 #. type: textblock
2619 #: ../edit/virt-edit.pod:56
2620 msgid ""
2621 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
2622 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
2623 msgstr ""
2624
2625 #. type: verbatim
2626 #: ../edit/virt-edit.pod:60
2627 #, no-wrap
2628 msgid ""
2629 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
2630 "\n"
2631 msgstr ""
2632
2633 #. type: =item
2634 #: ../edit/virt-edit.pod:81
2635 msgid "B<-b> extension"
2636 msgstr ""
2637
2638 #. type: =item
2639 #: ../edit/virt-edit.pod:83
2640 msgid "B<--backup> extension"
2641 msgstr ""
2642
2643 #. type: textblock
2644 #: ../edit/virt-edit.pod:85
2645 msgid ""
2646 "Create a backup of the original file I<in the guest disk image>.  The backup "
2647 "has the original filename with C<extension> added."
2648 msgstr ""
2649
2650 #. type: textblock
2651 #: ../edit/virt-edit.pod:88
2652 msgid ""
2653 "Usually the first character of C<extension> would be a dot C<.> so you would "
2654 "write:"
2655 msgstr ""
2656
2657 #. type: verbatim
2658 #: ../edit/virt-edit.pod:91
2659 #, no-wrap
2660 msgid ""
2661 " virt-edit -b .orig [etc]\n"
2662 "\n"
2663 msgstr ""
2664
2665 #. type: textblock
2666 #: ../edit/virt-edit.pod:93
2667 msgid "By default, no backup file is made."
2668 msgstr ""
2669
2670 #. type: =item
2671 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
2672 #: ../fuse/guestmount.pod:96 ../inspector/virt-inspector.pod:74
2673 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
2674 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
2675 msgid "B<-c URI>"
2676 msgstr ""
2677
2678 #. type: =item
2679 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
2680 #: ../fuse/guestmount.pod:98 ../inspector/virt-inspector.pod:76
2681 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
2682 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
2683 msgid "B<--connect URI>"
2684 msgstr ""
2685
2686 #. type: textblock
2687 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
2688 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
2689 #: ../tools/virt-win-reg.pl:135
2690 msgid ""
2691 "If you specify guest block devices directly, then libvirt is not used at all."
2692 msgstr ""
2693
2694 #. type: textblock
2695 #: ../edit/virt-edit.pod:114
2696 msgid ""
2697 "When prompting for keys and passphrases, virt-edit normally turns echoing "
2698 "off so you cannot see what you are typing.  If you are not worried about "
2699 "Tempest attacks and there is no one else in the room you can specify this "
2700 "flag to see what you are typing."
2701 msgstr ""
2702
2703 #. type: =item
2704 #: ../edit/virt-edit.pod:119
2705 msgid "B<-e> EXPR"
2706 msgstr ""
2707
2708 #. type: =item
2709 #: ../edit/virt-edit.pod:121
2710 msgid "B<--expr> EXPR"
2711 msgstr ""
2712
2713 #. type: textblock
2714 #: ../edit/virt-edit.pod:123
2715 msgid ""
2716 "Instead of launching the external editor, non-interactively apply the Perl "
2717 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
2718 "EDITING> below."
2719 msgstr ""
2720
2721 #. type: textblock
2722 #: ../edit/virt-edit.pod:127
2723 msgid ""
2724 "Be careful to properly quote the expression to prevent it from being altered "
2725 "by the shell."
2726 msgstr ""
2727
2728 #. type: textblock
2729 #: ../edit/virt-edit.pod:130
2730 msgid "Note that this option is only available when Perl 5 is installed."
2731 msgstr ""
2732
2733 #. type: =item
2734 #: ../edit/virt-edit.pod:132
2735 msgid "B<--format> raw|qcow2|..."
2736 msgstr ""
2737
2738 #. type: verbatim
2739 #: ../edit/virt-edit.pod:143
2740 #, no-wrap
2741 msgid ""
2742 " virt-edit --format=raw -a disk.img file\n"
2743 "\n"
2744 msgstr ""
2745
2746 #. type: verbatim
2747 #: ../edit/virt-edit.pod:147
2748 #, no-wrap
2749 msgid ""
2750 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
2751 "\n"
2752 msgstr ""
2753
2754 #. type: textblock
2755 #: ../edit/virt-edit.pod:181
2756 msgid "Previous versions of virt-edit allowed you to write either:"
2757 msgstr ""
2758
2759 #. type: verbatim
2760 #: ../edit/virt-edit.pod:187
2761 #, no-wrap
2762 msgid ""
2763 " virt-edit guestname file\n"
2764 "\n"
2765 msgstr ""
2766
2767 #. type: =head1
2768 #: ../edit/virt-edit.pod:195
2769 msgid "NON-INTERACTIVE EDITING"
2770 msgstr ""
2771
2772 #. type: textblock
2773 #: ../edit/virt-edit.pod:197
2774 msgid ""
2775 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
2776 "administrator can interactively edit the file."
2777 msgstr ""
2778
2779 #. type: textblock
2780 #: ../edit/virt-edit.pod:200
2781 msgid ""
2782 "There are two ways also to use C<virt-edit> from scripts in order to make "
2783 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
2784 "like this, it's less error-prone to write scripts directly using the "
2785 "libguestfs API and Augeas for configuration file editing.)"
2786 msgstr ""
2787
2788 #. type: textblock
2789 #: ../edit/virt-edit.pod:206
2790 msgid ""
2791 "The first method is to temporarily set C<$EDITOR> to any script or program "
2792 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
2793 "update C<tmpfile> in place however it likes."
2794 msgstr ""
2795
2796 #. type: textblock
2797 #: ../edit/virt-edit.pod:210
2798 msgid ""
2799 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
2800 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
2801 "instances of C<foo> with C<bar> in a file:"
2802 msgstr ""
2803
2804 #. type: verbatim
2805 #: ../edit/virt-edit.pod:214
2806 #, no-wrap
2807 msgid ""
2808 " virt-edit -d domname filename -e 's/foo/bar/'\n"
2809 "\n"
2810 msgstr ""
2811
2812 #. type: textblock
2813 #: ../edit/virt-edit.pod:216
2814 msgid ""
2815 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
2816 "For example to delete root's password you could do:"
2817 msgstr ""
2818
2819 #. type: verbatim
2820 #: ../edit/virt-edit.pod:219
2821 #, no-wrap
2822 msgid ""
2823 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
2824 "\n"
2825 msgstr ""
2826
2827 #. type: textblock
2828 #: ../edit/virt-edit.pod:221
2829 msgid ""
2830 "What really happens is that the snippet is evaluated as a Perl expression "
2831 "for each line of the file.  The line, including the final C<\\n>, is passed "
2832 "in C<$_> and the expression should update C<$_> or leave it unchanged."
2833 msgstr ""
2834
2835 #. type: textblock
2836 #: ../edit/virt-edit.pod:226
2837 msgid ""
2838 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
2839 "C<apache> user account from the password file you can do:"
2840 msgstr ""
2841
2842 #. type: verbatim
2843 #: ../edit/virt-edit.pod:229
2844 #, no-wrap
2845 msgid ""
2846 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
2847 "\n"
2848 msgstr ""
2849
2850 #. type: textblock
2851 #: ../edit/virt-edit.pod:231
2852 msgid ""
2853 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
2854 "the end of the file is rather difficult this way since there is no concept "
2855 "of \"last line of the file\" - your expression just doesn't get called "
2856 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
2857 "want to do this."
2858 msgstr ""
2859
2860 #. type: textblock
2861 #: ../edit/virt-edit.pod:237
2862 msgid ""
2863 "The variable C<$lineno> contains the current line number.  As is "
2864 "traditional, the first line in the file is number C<1>."
2865 msgstr ""
2866
2867 #. type: textblock
2868 #: ../edit/virt-edit.pod:240
2869 msgid ""
2870 "The return value from the expression is ignored, but the expression may call "
2871 "C<die> in order to abort the whole program, leaving the original file "
2872 "untouched."
2873 msgstr ""
2874
2875 #. type: textblock
2876 #: ../edit/virt-edit.pod:244
2877 msgid ""
2878 "Remember when matching the end of a line that C<$_> may contain the final C<"
2879 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
2880 "newline then neither of these.  Thus to match or substitute some text at the "
2881 "end of a line, use this regular expression:"
2882 msgstr ""
2883
2884 #. type: verbatim
2885 #: ../edit/virt-edit.pod:249
2886 #, no-wrap
2887 msgid ""
2888 " /some text(\\r?\\n)?$/\n"
2889 "\n"
2890 msgstr ""
2891
2892 #. type: textblock
2893 #: ../edit/virt-edit.pod:251
2894 msgid ""
2895 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
2896 "$_> itself (since that would remove all newlines from the file):"
2897 msgstr ""
2898
2899 #. type: verbatim
2900 #: ../edit/virt-edit.pod:255
2901 #, no-wrap
2902 msgid ""
2903 " my $m = $_; chomp $m; $m =~ /some text$/\n"
2904 "\n"
2905 msgstr ""
2906
2907 #. type: =head1
2908 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
2909 msgid "WINDOWS PATHS"
2910 msgstr ""
2911
2912 #. type: textblock
2913 #: ../edit/virt-edit.pod:259
2914 msgid ""
2915 "C<virt-edit> has a limited ability to understand Windows drive letters and "
2916 "paths (eg. C<E:\\foo\\bar.txt>)."
2917 msgstr ""
2918
2919 #. type: textblock
2920 #: ../edit/virt-edit.pod:262
2921 msgid "If and only if the guest is running Windows then:"
2922 msgstr ""
2923
2924 #. type: textblock
2925 #: ../edit/virt-edit.pod:268
2926 msgid ""
2927 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
2928 "to the correct filesystem."
2929 msgstr ""
2930
2931 #. type: textblock
2932 #: ../edit/virt-edit.pod:273
2933 msgid ""
2934 "Any backslash (C<\\>) characters in the path are replaced with forward "
2935 "slashes so that libguestfs can process it."
2936 msgstr ""
2937
2938 #. type: textblock
2939 #: ../edit/virt-edit.pod:278
2940 msgid ""
2941 "The path is resolved case insensitively to locate the file that should be "
2942 "edited."
2943 msgstr ""
2944
2945 #. type: textblock
2946 #: ../edit/virt-edit.pod:283
2947 msgid "There are some known shortcomings:"
2948 msgstr ""
2949
2950 #. type: textblock
2951 #: ../edit/virt-edit.pod:289
2952 msgid "Some NTFS symbolic links may not be followed correctly."
2953 msgstr ""
2954
2955 #. type: textblock
2956 #: ../edit/virt-edit.pod:293
2957 msgid "NTFS junction points that cross filesystems are not followed."
2958 msgstr ""
2959
2960 #. type: textblock
2961 #: ../edit/virt-edit.pod:299
2962 msgid ""
2963 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
2964 "C<virt-edit> doesn't work."
2965 msgstr ""
2966
2967 #. type: textblock
2968 #: ../edit/virt-edit.pod:302
2969 msgid "Using C<virt-edit> is approximately equivalent to doing:"
2970 msgstr ""
2971
2972 #. type: verbatim
2973 #: ../edit/virt-edit.pod:304
2974 #, no-wrap
2975 msgid ""
2976 " guestfish --rw -i -d domname edit /file\n"
2977 "\n"
2978 msgstr ""
2979
2980 #. type: textblock
2981 #: ../edit/virt-edit.pod:306
2982 msgid ""
2983 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
2984 "path to the file."
2985 msgstr ""
2986
2987 #. type: textblock
2988 #: ../edit/virt-edit.pod:309
2989 msgid ""
2990 "The command above uses libguestfs's guest inspection feature and so does not "
2991 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
2992 "disk images that don't contain guests.  To edit a file on a disk image "
2993 "directly, use:"
2994 msgstr ""
2995
2996 #. type: verbatim
2997 #: ../edit/virt-edit.pod:314
2998 #, no-wrap
2999 msgid ""
3000 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
3001 "\n"
3002 msgstr ""
3003
3004 #. type: textblock
3005 #: ../edit/virt-edit.pod:316
3006 msgid ""
3007 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
3008 "the disk image to edit, and C</file> is the full path to the file."
3009 msgstr ""
3010
3011 #. type: textblock
3012 #: ../edit/virt-edit.pod:320
3013 msgid ""
3014 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
3015 "C<write> or C<upload> instead:"
3016 msgstr ""
3017
3018 #. type: verbatim
3019 #: ../edit/virt-edit.pod:323
3020 #, no-wrap
3021 msgid ""
3022 " guestfish --rw -i -d domname touch /newfile\n"
3023 "\n"
3024 msgstr ""
3025
3026 #. type: verbatim
3027 #: ../edit/virt-edit.pod:325
3028 #, no-wrap
3029 msgid ""
3030 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
3031 "\n"
3032 msgstr ""
3033
3034 #. type: verbatim
3035 #: ../edit/virt-edit.pod:327
3036 #, no-wrap
3037 msgid ""
3038 " guestfish --rw -i -d domname upload localfile /newfile\n"
3039 "\n"
3040 msgstr ""
3041
3042 #. type: =head1
3043 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1086
3044 #: ../rescue/virt-rescue.pod:257 ../src/guestfs.pod:2981
3045 #: ../test-tool/libguestfs-test-tool.pod:82
3046 msgid "ENVIRONMENT VARIABLES"
3047 msgstr ""
3048
3049 #. type: =item
3050 #: ../edit/virt-edit.pod:333
3051 msgid "C<EDITOR>"
3052 msgstr ""
3053
3054 #. type: textblock
3055 #: ../edit/virt-edit.pod:335
3056 msgid ""
3057 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
3058 "\"emacs -nw\">"
3059 msgstr ""
3060
3061 #. type: textblock
3062 #: ../edit/virt-edit.pod:338
3063 msgid "If not set, C<vi> is used."
3064 msgstr ""
3065
3066 #. type: textblock
3067 #: ../edit/virt-edit.pod:356
3068 msgid ""
3069 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
3070 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3071 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
3072 msgstr ""
3073
3074 #. type: textblock
3075 #: ../examples/guestfs-examples.pod:5
3076 msgid "guestfs-examples - Examples of using libguestfs from C"
3077 msgstr ""
3078
3079 #. type: verbatim
3080 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
3081 #, no-wrap
3082 msgid ""
3083 " #include <guestfs.h>\n"
3084 " \n"
3085 msgstr ""
3086
3087 #. type: verbatim
3088 #: ../examples/guestfs-examples.pod:11
3089 #, no-wrap
3090 msgid ""
3091 " guestfs_h *g = guestfs_create ();\n"
3092 " guestfs_add_drive_ro (g, \"disk.img\");\n"
3093 " guestfs_launch (g);\n"
3094 "\n"
3095 msgstr ""
3096
3097 #. type: verbatim
3098 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
3099 #, no-wrap
3100 msgid ""
3101 " cc prog.c -o prog -lguestfs\n"
3102 "or:\n"
3103 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3104 "\n"
3105 msgstr ""
3106
3107 #. type: textblock
3108 #: ../examples/guestfs-examples.pod:21
3109 msgid ""
3110 "This manual page contains examples of calling libguestfs from the C "
3111 "programming language.  If you are not familiar with using libguestfs, you "
3112 "also need to read L<guestfs(3)>."
3113 msgstr ""
3114
3115 #. type: =head1
3116 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
3117 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
3118 #: ../python/examples/guestfs-python.pod:34
3119 #: ../ruby/examples/guestfs-ruby.pod:28
3120 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
3121 msgstr ""
3122
3123 #. type: textblock
3124 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
3125 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
3126 #: ../python/examples/guestfs-python.pod:36
3127 #: ../ruby/examples/guestfs-ruby.pod:30
3128 msgid "@EXAMPLE1@"
3129 msgstr ""
3130
3131 #. type: =head1
3132 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
3133 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
3134 #: ../python/examples/guestfs-python.pod:38
3135 #: ../ruby/examples/guestfs-ruby.pod:32
3136 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
3137 msgstr ""
3138
3139 #. type: textblock
3140 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
3141 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
3142 #: ../python/examples/guestfs-python.pod:40
3143 #: ../ruby/examples/guestfs-ruby.pod:34
3144 msgid "@EXAMPLE2@"
3145 msgstr ""
3146
3147 #. type: textblock
3148 #: ../examples/guestfs-examples.pod:35
3149 msgid ""
3150 "L<guestfs(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
3151 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
3152 "libguestfs.org/>."
3153 msgstr ""
3154
3155 #. type: =head1
3156 #: ../examples/guestfs-examples.pod:44 ../examples/guestfs-recipes.pod:396
3157 #: ../fish/guestfish.pod:1260 ../fish/virt-copy-in.pod:60
3158 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
3159 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:319
3160 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:57
3161 #: ../ocaml/examples/guestfs-ocaml.pod:90 ../perl/examples/guestfs-perl.pod:51
3162 #: ../python/examples/guestfs-python.pod:53
3163 #: ../ruby/examples/guestfs-ruby.pod:47 ../src/guestfs.pod:3114
3164 #: ../test-tool/libguestfs-test-tool.pod:93
3165 msgid "AUTHORS"
3166 msgstr ""
3167
3168 #. type: textblock
3169 #: ../examples/guestfs-examples.pod:46 ../examples/guestfs-recipes.pod:398
3170 #: ../fish/guestfish.pod:1262 ../fish/virt-copy-in.pod:62
3171 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
3172 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:321
3173 #: ../java/examples/guestfs-java.pod:59 ../ocaml/examples/guestfs-ocaml.pod:92
3174 #: ../perl/examples/guestfs-perl.pod:53
3175 #: ../python/examples/guestfs-python.pod:55
3176 #: ../ruby/examples/guestfs-ruby.pod:49 ../src/guestfs.pod:3116
3177 #: ../test-tool/libguestfs-test-tool.pod:95
3178 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3179 msgstr ""
3180
3181 #. type: textblock
3182 #: ../examples/guestfs-examples.pod:50 ../ocaml/examples/guestfs-ocaml.pod:96
3183 #: ../python/examples/guestfs-python.pod:59
3184 #: ../ruby/examples/guestfs-ruby.pod:53
3185 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
3186 msgstr ""
3187
3188 #. type: textblock
3189 #: ../examples/guestfs-examples.pod:52 ../examples/guestfs-recipes.pod:404
3190 #: ../java/examples/guestfs-java.pod:65 ../ocaml/examples/guestfs-ocaml.pod:98
3191 #: ../perl/examples/guestfs-perl.pod:59
3192 #: ../python/examples/guestfs-python.pod:61
3193 #: ../ruby/examples/guestfs-ruby.pod:55
3194 msgid ""
3195 "The examples in this manual page may be freely copied, modified and "
3196 "distributed without any restrictions."
3197 msgstr ""
3198
3199 #. type: textblock
3200 #: ../examples/guestfs-examples.pod:55 ../examples/guestfs-recipes.pod:407
3201 #: ../java/examples/guestfs-java.pod:68
3202 #: ../ocaml/examples/guestfs-ocaml.pod:101
3203 #: ../perl/examples/guestfs-perl.pod:62
3204 #: ../python/examples/guestfs-python.pod:64
3205 #: ../ruby/examples/guestfs-ruby.pod:58 ../src/guestfs.pod:3123
3206 msgid ""
3207 "This library is free software; you can redistribute it and/or modify it "
3208 "under the terms of the GNU Lesser General Public License as published by the "
3209 "Free Software Foundation; either version 2 of the License, or (at your "
3210 "option) any later version."
3211 msgstr ""
3212
3213 #. type: textblock
3214 #: ../examples/guestfs-examples.pod:60 ../examples/guestfs-recipes.pod:412
3215 #: ../java/examples/guestfs-java.pod:73
3216 #: ../ocaml/examples/guestfs-ocaml.pod:106
3217 #: ../perl/examples/guestfs-perl.pod:67
3218 #: ../python/examples/guestfs-python.pod:69
3219 #: ../ruby/examples/guestfs-ruby.pod:63 ../src/guestfs.pod:3128
3220 msgid ""
3221 "This library is distributed in the hope that it will be useful, but WITHOUT "
3222 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3223 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3224 "for more details."
3225 msgstr ""
3226
3227 #. type: textblock
3228 #: ../examples/guestfs-examples.pod:65 ../examples/guestfs-recipes.pod:417
3229 #: ../java/examples/guestfs-java.pod:78
3230 #: ../ocaml/examples/guestfs-ocaml.pod:111
3231 #: ../perl/examples/guestfs-perl.pod:72
3232 #: ../python/examples/guestfs-python.pod:74
3233 #: ../ruby/examples/guestfs-ruby.pod:68 ../src/guestfs.pod:3133
3234 msgid ""
3235 "You should have received a copy of the GNU Lesser General Public License "
3236 "along with this library; if not, write to the Free Software Foundation, "
3237 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3238 msgstr ""
3239
3240 #. type: =end
3241 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
3242 msgid "comment"
3243 msgstr ""
3244
3245 #. type: textblock
3246 #: ../examples/guestfs-recipes.pod:5
3247 msgid ""
3248 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
3249 "here.  The only way which works for both sorts of output is to just write "
3250 "the URL directly.  Do NOT use L<...> for URLs."
3251 msgstr ""
3252
3253 #. type: textblock
3254 #: ../examples/guestfs-recipes.pod:9
3255 msgid ""
3256 "We break with tradition here and don't use ALL CAPS for the section "
3257 "headings, as this makes them much easier to read."
3258 msgstr ""
3259
3260 #. type: textblock
3261 #: ../examples/guestfs-recipes.pod:16
3262 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
3263 msgstr ""
3264
3265 #. type: textblock
3266 #: ../examples/guestfs-recipes.pod:20
3267 msgid ""
3268 "This page contains recipes for and links to things you can do using "
3269 "libguestfs, L<guestfish(1)> and the virt tools."
3270 msgstr ""
3271
3272 #. type: =head1
3273 #: ../examples/guestfs-recipes.pod:23
3274 msgid "Audit a virtual machine for setuid files"
3275 msgstr ""
3276
3277 #. type: textblock
3278 #: ../examples/guestfs-recipes.pod:25
3279 msgid ""
3280 "The link below contains a small program which can be used to audit a Linux "
3281 "virtual machine to see what setuid and setgid files it contains."
3282 msgstr ""
3283
3284 #. type: textblock
3285 #: ../examples/guestfs-recipes.pod:28
3286 msgid ""
3287 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
3288 "files/#content"
3289 msgstr ""
3290
3291 #. type: =head1
3292 #: ../examples/guestfs-recipes.pod:30
3293 msgid "Change the background image in a Windows XP VM"
3294 msgstr ""
3295
3296 #. type: textblock
3297 #: ../examples/guestfs-recipes.pod:32
3298 msgid ""
3299 "The links below explain how to use L<guestfish(1)> to change the background "
3300 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
3301 "be substantially different for each version of Windows."
3302 msgstr ""
3303
3304 #. type: textblock
3305 #: ../examples/guestfs-recipes.pod:37
3306 msgid ""
3307 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
3308 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
3309 msgstr ""
3310
3311 #. type: =head1
3312 #: ../examples/guestfs-recipes.pod:40
3313 msgid "Cloning a virtual machine (Linux)"
3314 msgstr ""
3315
3316 #. type: textblock
3317 #: ../examples/guestfs-recipes.pod:42
3318 msgid ""
3319 "The guestfish technique described in the link below works well for most "
3320 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
3321 "slightly."
3322 msgstr ""
3323
3324 #. type: textblock
3325 #: ../examples/guestfs-recipes.pod:46
3326 msgid ""
3327 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
3328 "vm/#content"
3329 msgstr ""
3330
3331 #. type: textblock
3332 #: ../examples/guestfs-recipes.pod:48
3333 msgid ""
3334 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
3335 "discussion."
3336 msgstr ""
3337
3338 #. type: textblock
3339 #: ../examples/guestfs-recipes.pod:51
3340 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
3341 msgstr ""
3342
3343 #. type: =head1
3344 #: ../examples/guestfs-recipes.pod:53
3345 msgid "Cloning a virtual machine (Windows)"
3346 msgstr ""
3347
3348 #. type: textblock
3349 #: ../examples/guestfs-recipes.pod:55
3350 msgid ""
3351 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
3352 "straightforward.  Currently there is code in the Aeolus Oz project which "
3353 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
3354 "we may add sysprepping ability."
3355 msgstr ""
3356
3357 #. type: textblock
3358 #: ../examples/guestfs-recipes.pod:60
3359 msgid ""
3360 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
3361 "list/2011-May/msg00019.html"
3362 msgstr ""
3363
3364 #. type: =head1
3365 #: ../examples/guestfs-recipes.pod:63
3366 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
3367 msgstr ""
3368
3369 #. type: textblock
3370 #: ../examples/guestfs-recipes.pod:65
3371 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
3372 msgstr ""
3373
3374 #. type: verbatim
3375 #: ../examples/guestfs-recipes.pod:67
3376 #, no-wrap
3377 msgid ""
3378 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
3379 "\n"
3380 msgstr ""
3381
3382 #. type: textblock
3383 #: ../examples/guestfs-recipes.pod:69
3384 msgid "To export just a subdirectory, eg. C</files>, do:"
3385 msgstr ""
3386
3387 #. type: verbatim
3388 #: ../examples/guestfs-recipes.pod:71
3389 #, no-wrap
3390 msgid ""
3391 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
3392 "\n"
3393 msgstr ""
3394
3395 #. type: =head1
3396 #: ../examples/guestfs-recipes.pod:73
3397 msgid "Create empty disk images"
3398 msgstr ""
3399
3400 #. type: textblock
3401 #: ../examples/guestfs-recipes.pod:75
3402 msgid ""
3403 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
3404 "The useful guide below explains the options available."
3405 msgstr ""
3406
3407 #. type: textblock
3408 #: ../examples/guestfs-recipes.pod:78
3409 msgid ""
3410 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
3411 "#content"
3412 msgstr ""
3413
3414 #. type: =head1
3415 #: ../examples/guestfs-recipes.pod:80
3416 msgid "Dump raw filesystem content from inside a disk image or VM"
3417 msgstr ""
3418
3419 #. type: textblock
3420 #: ../examples/guestfs-recipes.pod:82
3421 msgid ""
3422 "You can use the L<guestfish(1)> C<download> command to extract the raw "
3423 "filesystem content from any filesystem in a disk image or a VM (even one "
3424 "which is encrypted or buried inside an LV):"
3425 msgstr ""
3426
3427 #. type: verbatim
3428 #: ../examples/guestfs-recipes.pod:86
3429 #, no-wrap
3430 msgid ""
3431 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
3432 "\n"
3433 msgstr ""
3434
3435 #. type: verbatim
3436 #: ../examples/guestfs-recipes.pod:88
3437 #, no-wrap
3438 msgid ""
3439 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
3440 "\n"
3441 msgstr ""
3442
3443 #. type: textblock
3444 #: ../examples/guestfs-recipes.pod:90
3445 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
3446 msgstr ""
3447
3448 #. type: =head1
3449 #: ../examples/guestfs-recipes.pod:92
3450 msgid "Edit grub configuration in a VM"
3451 msgstr ""
3452
3453 #. type: textblock
3454 #: ../examples/guestfs-recipes.pod:94
3455 msgid "You can use this to:"
3456 msgstr ""
3457
3458 #. type: textblock
3459 #: ../examples/guestfs-recipes.pod:100
3460 msgid "Fix a virtual machine that does not boot."
3461 msgstr ""
3462
3463 #. type: textblock
3464 #: ../examples/guestfs-recipes.pod:104
3465 msgid "Change which kernel is used to boot the VM."
3466 msgstr ""
3467
3468 #. type: textblock
3469 #: ../examples/guestfs-recipes.pod:108
3470 msgid "Change kernel command line options."
3471 msgstr ""
3472
3473 #. type: textblock
3474 #: ../examples/guestfs-recipes.pod:112
3475 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
3476 msgstr ""
3477
3478 #. type: verbatim
3479 #: ../examples/guestfs-recipes.pod:114
3480 #, no-wrap
3481 msgid ""
3482 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
3483 "\n"
3484 msgstr ""
3485
3486 #. type: textblock
3487 #: ../examples/guestfs-recipes.pod:116
3488 msgid ""
3489 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
3490 "this:"
3491 msgstr ""
3492
3493 #. type: verbatim
3494 #: ../examples/guestfs-recipes.pod:119
3495 #, no-wrap
3496 msgid ""
3497 " virt-rescue -d BrokenGuest\n"
3498 "\n"
3499 msgstr ""
3500
3501 #. type: =head1
3502 #: ../examples/guestfs-recipes.pod:121
3503 msgid "Export any directory from a VM"
3504 msgstr ""
3505
3506 #. type: textblock
3507 #: ../examples/guestfs-recipes.pod:123
3508 msgid ""
3509 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
3510 msgstr ""
3511
3512 #. type: verbatim
3513 #: ../examples/guestfs-recipes.pod:126
3514 #, no-wrap
3515 msgid ""
3516 " virt-copy-out -d Guest /home .\n"
3517 "\n"
3518 msgstr ""
3519
3520 #. type: textblock
3521 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
3522 #: ../fish/guestfish-actions.pod:1292 ../fish/guestfish-actions.pod:1934
3523 #: ../src/guestfs-actions.pod:18 ../src/guestfs-actions.pod:1922
3524 #: ../src/guestfs-actions.pod:2860 ../src/guestfs.pod:1640
3525 #: ../tools/virt-win-reg.pl:706
3526 msgid "Notes:"
3527 msgstr ""
3528
3529 #. type: textblock
3530 #: ../examples/guestfs-recipes.pod:134
3531 msgid ""
3532 "The final dot of the command is not a printing error.  It means we want to "
3533 "copy out to the current directory."
3534 msgstr ""
3535
3536 #. type: textblock
3537 #: ../examples/guestfs-recipes.pod:139
3538 msgid "This creates a directory called C<home> under the current directory."
3539 msgstr ""
3540
3541 #. type: textblock
3542 #: ../examples/guestfs-recipes.pod:143
3543 msgid ""
3544 "If the guest is a Windows guest then you can use drive letters and "
3545 "backslashes, but you must prefix the path with C<win:> and quote it to "
3546 "protect it from the shell, like this:"
3547 msgstr ""
3548
3549 #. type: verbatim
3550 #: ../examples/guestfs-recipes.pod:147
3551 #, no-wrap
3552 msgid ""
3553 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
3554 "\n"
3555 msgstr ""
3556
3557 #. type: textblock
3558 #: ../examples/guestfs-recipes.pod:149
3559 msgid "To get the output as a compressed tarball, do:"
3560 msgstr ""
3561
3562 #. type: verbatim
3563 #: ../examples/guestfs-recipes.pod:151
3564 #, no-wrap
3565 msgid ""
3566 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
3567 "\n"
3568 msgstr ""
3569
3570 #. type: textblock
3571 #: ../examples/guestfs-recipes.pod:153
3572 msgid ""
3573 "Although it sounds tempting, this is usually not a reliable way to get a "
3574 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
3575 "org/FAQ.html#backup"
3576 msgstr ""
3577
3578 #. type: =head1
3579 #: ../examples/guestfs-recipes.pod:157
3580 msgid "Find out which user is using the most space"
3581 msgstr ""
3582
3583 #. type: textblock
3584 #: ../examples/guestfs-recipes.pod:159
3585 msgid ""
3586 "This simple script examines a Linux guest to find out which user is using "
3587 "the most space in their home directory:"
3588 msgstr ""
3589
3590 #. type: verbatim
3591 #: ../examples/guestfs-recipes.pod:162
3592 #, no-wrap
3593 msgid ""
3594 " #!/bin/sh -\n"
3595 " \n"
3596 msgstr ""
3597
3598 #. type: verbatim
3599 #: ../examples/guestfs-recipes.pod:164
3600 #, no-wrap
3601 msgid ""
3602 " set -e\n"
3603 " \n"
3604 msgstr ""
3605
3606 #. type: verbatim
3607 #: ../examples/guestfs-recipes.pod:166
3608 #, no-wrap
3609 msgid ""
3610 " vm=\"$1\"\n"
3611 " dir=/home\n"
3612 " \n"
3613 msgstr ""
3614
3615 #. type: verbatim
3616 #: ../examples/guestfs-recipes.pod:169
3617 #, no-wrap
3618 msgid ""
3619 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
3620 " \n"
3621 msgstr ""
3622
3623 #. type: verbatim
3624 #: ../examples/guestfs-recipes.pod:171
3625 #, no-wrap
3626 msgid ""
3627 " for d in $(guestfish --remote ls \"$dir\"); do\n"
3628 "     echo -n \"$dir/$d\"\n"
3629 "     echo -ne '\\t'\n"
3630 "     guestfish --remote du \"$dir/$d\";\n"
3631 " done | sort -nr -k 2\n"
3632 " \n"
3633 msgstr ""
3634
3635 #. type: verbatim
3636 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
3637 #, no-wrap
3638 msgid ""
3639 " guestfish --remote exit\n"
3640 "\n"
3641 msgstr ""
3642
3643 #. type: =head1
3644 #: ../examples/guestfs-recipes.pod:179
3645 msgid "Get DHCP address from a VM"
3646 msgstr ""
3647
3648 #. type: textblock
3649 #: ../examples/guestfs-recipes.pod:181
3650 msgid ""
3651 "The link below explains the many different possible techniques for getting "
3652 "the last assigned DHCP address of a virtual machine."
3653 msgstr ""
3654
3655 #. type: textblock
3656 #: ../examples/guestfs-recipes.pod:184
3657 msgid ""
3658 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
3659 "a-virtual-machine-disk-image/#content"
3660 msgstr ""
3661
3662 #. type: textblock
3663 #: ../examples/guestfs-recipes.pod:186
3664 msgid ""
3665 "In the libguestfs source examples directory you will find the latest version "
3666 "of the C<virt-dhcp-address.c> program."
3667 msgstr ""
3668
3669 #. type: =head1
3670 #: ../examples/guestfs-recipes.pod:189
3671 msgid "Get the operating system product name string"
3672 msgstr ""
3673
3674 #. type: textblock
3675 #: ../examples/guestfs-recipes.pod:191
3676 msgid "Save the following script into a file called C<product-name.sh>:"
3677 msgstr ""
3678
3679 #. type: verbatim
3680 #: ../examples/guestfs-recipes.pod:193
3681 #, no-wrap
3682 msgid ""
3683 " #!/bin/sh -\n"
3684 " set -e\n"
3685 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
3686 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
3687 " guestfish --remote inspect-get-product-name \"$root\"\n"
3688 " guestfish --remote exit\n"
3689 "\n"
3690 msgstr ""
3691
3692 #. type: textblock
3693 #: ../examples/guestfs-recipes.pod:200
3694 msgid "Make the script executable and run it on a named guest:"
3695 msgstr ""
3696
3697 #. type: verbatim
3698 #: ../examples/guestfs-recipes.pod:202
3699 #, no-wrap
3700 msgid ""
3701 " # product-name.sh RHEL60x64\n"
3702 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
3703 "\n"
3704 msgstr ""
3705
3706 #. type: textblock
3707 #: ../examples/guestfs-recipes.pod:205
3708 msgid ""
3709 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
3710 "C<xpath> command line tool or from your favourite programming language:"
3711 msgstr ""
3712
3713 #. type: verbatim
3714 #: ../examples/guestfs-recipes.pod:209
3715 #, no-wrap
3716 msgid ""
3717 " # virt-inspector RHEL60x64 > xml\n"
3718 " # xpath '//product_name' < xml\n"
3719 " Found 1 nodes:\n"
3720 " -- NODE --\n"
3721 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
3722 "\n"
3723 msgstr ""
3724
3725 #. type: =head1
3726 #: ../examples/guestfs-recipes.pod:215
3727 msgid "Get the default boot kernel for a Linux VM"
3728 msgstr ""
3729
3730 #. type: textblock
3731 #: ../examples/guestfs-recipes.pod:217
3732 msgid ""
3733 "The link below contains a program to print the default boot kernel for a "
3734 "Linux VM."
3735 msgstr ""
3736
3737 #. type: textblock
3738 #: ../examples/guestfs-recipes.pod:220
3739 msgid ""
3740 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
3741 "kernel-for-a-vm/#content"
3742 msgstr ""
3743
3744 #. type: textblock
3745 #: ../examples/guestfs-recipes.pod:222
3746 msgid ""
3747 "It uses Augeas, and the technique is generally applicable for many different "
3748 "tasks, such as:"
3749 msgstr ""
3750
3751 #. type: textblock
3752 #: ../examples/guestfs-recipes.pod:229
3753 msgid "listing the user accounts in the guest"
3754 msgstr ""
3755
3756 #. type: textblock
3757 #: ../examples/guestfs-recipes.pod:233
3758 msgid "what repositories is it configured to use"
3759 msgstr ""
3760
3761 #. type: textblock
3762 #: ../examples/guestfs-recipes.pod:237
3763 msgid "what NTP servers does it connect to"
3764 msgstr ""
3765
3766 #. type: textblock
3767 #: ../examples/guestfs-recipes.pod:241
3768 msgid "what were the boot messages last time it booted"
3769 msgstr ""
3770
3771 #. type: textblock
3772 #: ../examples/guestfs-recipes.pod:245
3773 msgid "listing who was logged in recently"
3774 msgstr ""
3775
3776 #. type: textblock
3777 #: ../examples/guestfs-recipes.pod:249
3778 msgid "http://augeas.net/"
3779 msgstr ""
3780
3781 #. type: =head1
3782 #: ../examples/guestfs-recipes.pod:251
3783 msgid "Install RPMs in a guest"
3784 msgstr ""
3785
3786 #. type: textblock
3787 #: ../examples/guestfs-recipes.pod:253
3788 msgid ""
3789 "The link below contains a method to install RPMs in a guest.  In fact the "
3790 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
3791 "installs them next time the guest is booted.  You could use this technique "
3792 "to install vital security updates in an offline guest."
3793 msgstr ""
3794
3795 #. type: textblock
3796 #: ../examples/guestfs-recipes.pod:259
3797 msgid ""
3798 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
3799 msgstr ""
3800
3801 #. type: =head1
3802 #: ../examples/guestfs-recipes.pod:261
3803 msgid "List applications installed in a VM"
3804 msgstr ""
3805
3806 #. type: textblock
3807 #: ../examples/guestfs-recipes.pod:263
3808 msgid "Save the following to a file C<list-apps.sh>:"
3809 msgstr ""
3810
3811 #. type: verbatim
3812 #: ../examples/guestfs-recipes.pod:265
3813 #, no-wrap
3814 msgid ""
3815 " #!/bin/sh -\n"
3816 " set -e\n"
3817 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
3818 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
3819 " guestfish --remote inspect-list-applications \"$root\"\n"
3820 " guestfish --remote exit\n"
3821 "\n"
3822 msgstr ""
3823
3824 #. type: textblock
3825 #: ../examples/guestfs-recipes.pod:272
3826 msgid ""
3827 "Make the file executable and then you can run it on any named virtual "
3828 "machine:"
3829 msgstr ""
3830
3831 #. type: verbatim
3832 #: ../examples/guestfs-recipes.pod:275
3833 #, no-wrap
3834 msgid ""
3835 " # list-apps.sh WinGuest\n"
3836 " [0] = {\n"
3837 "   app_name: Mozilla Firefox (3.6.12)\n"
3838 "   app_display_name: Mozilla Firefox (3.6.12)\n"
3839 "   app_epoch: 0\n"
3840 "   app_version: 3.6.12 (en-GB)\n"
3841 "   app_release:\n"
3842 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
3843 "   app_trans_path:\n"
3844 "   app_publisher: Mozilla\n"
3845 "   app_url: http://www.mozilla.com/en-GB/\n"
3846 "   app_source_package:\n"
3847 "   app_summary:\n"
3848 "   app_description: Mozilla Firefox\n"
3849 " }\n"
3850 " [1] = {\n"
3851 "   app_name: VLC media player\n"
3852 "   app_display_name: VLC media player 1.1.5\n"
3853 "   app_epoch: 0\n"
3854 "   app_version: 1.1.5\n"
3855 "   app_release:\n"
3856 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
3857 "   app_trans_path:\n"
3858 "   app_publisher: VideoLAN\n"
3859 "   app_url: http://www.videolan.org/\n"
3860 "   app_source_package:\n"
3861 "   app_summary:\n"
3862 "   app_description:\n"
3863 " }\n"
3864 "\n"
3865 msgstr ""
3866
3867 #. type: textblock
3868 #: ../examples/guestfs-recipes.pod:305
3869 msgid ""
3870 "If you want to run the script on disk images (instead of libvirt virtual "
3871 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
3872 ">."
3873 msgstr ""
3874
3875 #. type: =head1
3876 #: ../examples/guestfs-recipes.pod:309
3877 msgid "List files and directories in a VM"
3878 msgstr ""
3879
3880 #. type: textblock
3881 #: ../examples/guestfs-recipes.pod:311
3882 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
3883 msgstr ""
3884
3885 #. type: verbatim
3886 #: ../examples/guestfs-recipes.pod:313
3887 #, no-wrap
3888 msgid ""
3889 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
3890 "\n"
3891 msgstr ""
3892
3893 #. type: =head1
3894 #: ../examples/guestfs-recipes.pod:315
3895 msgid "List services in a Windows VM"
3896 msgstr ""
3897
3898 #. type: textblock
3899 #: ../examples/guestfs-recipes.pod:317
3900 msgid ""
3901 "The link below contains a script that can be used to list out the services "
3902 "from a Windows VM, and whether those services run at boot time or are loaded "
3903 "on demand."
3904 msgstr ""
3905
3906 #. type: textblock
3907 #: ../examples/guestfs-recipes.pod:321
3908 msgid ""
3909 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
3910 "#content"
3911 msgstr ""
3912
3913 #. type: =head1
3914 #: ../examples/guestfs-recipes.pod:323
3915 msgid "Make a disk image sparse"
3916 msgstr ""
3917
3918 #. type: textblock
3919 #: ../examples/guestfs-recipes.pod:325
3920 msgid ""
3921 "The link below contains some guides for making a disk image sparse (or "
3922 "reintroducing sparseness)."
3923 msgstr ""
3924
3925 #. type: textblock
3926 #: ../examples/guestfs-recipes.pod:328
3927 msgid ""
3928 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
3929 msgstr ""
3930
3931 #. type: =head1
3932 #: ../examples/guestfs-recipes.pod:330
3933 msgid "Monitor disk usage over time"
3934 msgstr ""
3935
3936 #. type: textblock
3937 #: ../examples/guestfs-recipes.pod:332
3938 msgid ""
3939 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
3940 "The link below contains a guide."
3941 msgstr ""
3942
3943 #. type: textblock
3944 #: ../examples/guestfs-recipes.pod:335
3945 msgid "http://virt-tools.org/learning/advanced-virt-df/"
3946 msgstr ""
3947
3948 #. type: =head1
3949 #: ../examples/guestfs-recipes.pod:337
3950 msgid "Reading the Windows Event Log from Windows Vista (or later)"
3951 msgstr ""
3952
3953 #. type: textblock
3954 #: ../examples/guestfs-recipes.pod:339
3955 msgid ""
3956 "L<guestfish(1)> plus the tools described in the link below can be used to "
3957 "read out the Windows Event Log from any virtual machine running Windows "
3958 "Vista or a later version."
3959 msgstr ""
3960
3961 #. type: textblock
3962 #: ../examples/guestfs-recipes.pod:343
3963 msgid ""
3964 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
3965 "guestfish/#content"
3966 msgstr ""
3967
3968 #. type: =head1
3969 #: ../examples/guestfs-recipes.pod:345
3970 msgid "Remove root password (Linux)"
3971 msgstr ""
3972
3973 #. type: textblock
3974 #: ../examples/guestfs-recipes.pod:347
3975 msgid ""
3976 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
3977 "files.  One use is to remove the root password from a Linux guest:"
3978 msgstr ""
3979
3980 #. type: verbatim
3981 #: ../examples/guestfs-recipes.pod:350
3982 #, no-wrap
3983 msgid ""
3984 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3985 "\n"
3986 msgstr ""
3987
3988 #. type: =head1
3989 #: ../examples/guestfs-recipes.pod:352
3990 msgid "Remove Administrator password (Windows)"
3991 msgstr ""
3992
3993 #. type: textblock
3994 #: ../examples/guestfs-recipes.pod:354
3995 msgid ""
3996 "The link below contains one technique for removing the Administrator "
3997 "password from a Windows VM, or to be more precise, it gives you a command "
3998 "prompt the next time you log in which you can use to bypass any security:"
3999 msgstr ""
4000
4001 #. type: textblock
4002 #: ../examples/guestfs-recipes.pod:359
4003 msgid ""
4004 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
4005 "administrator-password-with-guestfish/"
4006 msgstr ""
4007
4008 #. type: =head1
4009 #: ../examples/guestfs-recipes.pod:361
4010 msgid "Unpack a live CD"
4011 msgstr ""
4012
4013 #. type: textblock
4014 #: ../examples/guestfs-recipes.pod:363
4015 msgid ""
4016 "Linux live CDs often contain multiple layers of disk images wrapped like a "
4017 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
4018 "layers, as outlined in the guide below."
4019 msgstr ""
4020
4021 #. type: textblock
4022 #: ../examples/guestfs-recipes.pod:367
4023 msgid ""
4024 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
4025 "cd/#content"
4026 msgstr ""
4027
4028 #. type: =head1
4029 #: ../examples/guestfs-recipes.pod:369
4030 msgid "Uploading and downloading files"
4031 msgstr ""
4032
4033 #. type: textblock
4034 #: ../examples/guestfs-recipes.pod:371
4035 msgid ""
4036 "The link below contains general tips on uploading (copying in)  and "
4037 "downloading (copying out) files from VMs."
4038 msgstr ""
4039
4040 #. type: textblock
4041 #: ../examples/guestfs-recipes.pod:374
4042 msgid ""
4043 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
4044 msgstr ""
4045
4046 #. type: =head1
4047 #: ../examples/guestfs-recipes.pod:376
4048 msgid "Use libguestfs tools on VMware ESX guests"
4049 msgstr ""
4050
4051 #. type: textblock
4052 #: ../examples/guestfs-recipes.pod:378
4053 msgid ""
4054 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
4055 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
4056 msgstr ""
4057
4058 #. type: textblock
4059 #: ../examples/guestfs-recipes.pod:382
4060 msgid ""
4061 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
4062 "guests/#content"
4063 msgstr ""
4064
4065 #. type: textblock
4066 #: ../examples/guestfs-recipes.pod:386
4067 msgid ""
4068 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
4069 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby"
4070 "(3)>, L<http://libguestfs.org/>."
4071 msgstr ""
4072
4073 #. type: textblock
4074 #: ../examples/guestfs-recipes.pod:402
4075 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
4076 msgstr ""
4077
4078 #. type: =head2
4079 #: ../fish/guestfish-actions.pod:1
4080 msgid "add-cdrom"
4081 msgstr ""
4082
4083 #. type: verbatim
4084 #: ../fish/guestfish-actions.pod:3
4085 #, no-wrap
4086 msgid ""
4087 " add-cdrom filename\n"
4088 "\n"
4089 msgstr ""
4090
4091 #. type: textblock
4092 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
4093 msgid "This function adds a virtual CD-ROM disk image to the guest."
4094 msgstr ""
4095
4096 #. type: textblock
4097 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
4098 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
4099 msgstr ""
4100
4101 #. type: textblock
4102 #: ../fish/guestfish-actions.pod:15
4103 msgid ""
4104 "This call checks for the existence of C<filename>.  This stops you from "
4105 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4106 "and C<http:> URLs.  To specify those, use the general L</config> call "
4107 "instead."
4108 msgstr ""
4109
4110 #. type: textblock
4111 #: ../fish/guestfish-actions.pod:22
4112 msgid ""
4113 "If you just want to add an ISO file (often you use this as an efficient way "
4114 "to transfer large files into the guest), then you should probably use L</add-"
4115 "drive-ro> instead."
4116 msgstr ""
4117
4118 #. type: textblock
4119 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163
4120 #: ../fish/guestfish-actions.pod:177
4121 msgid ""
4122 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
4123 "instead."
4124 msgstr ""
4125
4126 #. type: textblock
4127 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166
4128 #: ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:991
4129 #: ../fish/guestfish-actions.pod:1351 ../fish/guestfish-actions.pod:1365
4130 #: ../fish/guestfish-actions.pod:3090 ../fish/guestfish-actions.pod:3297
4131 #: ../fish/guestfish-actions.pod:3411 ../fish/guestfish-actions.pod:3459
4132 #: ../fish/guestfish-actions.pod:4360 ../fish/guestfish-actions.pod:4383
4133 #: ../fish/guestfish-actions.pod:4405 ../fish/guestfish-actions.pod:4443
4134 #: ../fish/guestfish-actions.pod:5092 ../fish/guestfish-actions.pod:5198
4135 #: ../src/guestfs-actions.pod:10 ../src/guestfs-actions.pod:252
4136 #: ../src/guestfs-actions.pod:273 ../src/guestfs-actions.pod:1508
4137 #: ../src/guestfs-actions.pod:2007 ../src/guestfs-actions.pod:2028
4138 #: ../src/guestfs-actions.pod:4623 ../src/guestfs-actions.pod:4926
4139 #: ../src/guestfs-actions.pod:5155 ../src/guestfs-actions.pod:5255
4140 #: ../src/guestfs-actions.pod:6521 ../src/guestfs-actions.pod:6565
4141 #: ../src/guestfs-actions.pod:6599 ../src/guestfs-actions.pod:6662
4142 #: ../src/guestfs-actions.pod:7594 ../src/guestfs-actions.pod:7703
4143 #: ../src/guestfs-actions.pod:7886
4144 msgid ""
4145 "Deprecated functions will not be removed from the API, but the fact that "
4146 "they are deprecated indicates that there are problems with correct use of "
4147 "these functions."
4148 msgstr ""
4149
4150 #. type: =head2
4151 #: ../fish/guestfish-actions.pod:35
4152 msgid "add-domain"
4153 msgstr ""
4154
4155 #. type: =head2
4156 #: ../fish/guestfish-actions.pod:37
4157 msgid "domain"
4158 msgstr ""
4159
4160 #. type: verbatim
4161 #: ../fish/guestfish-actions.pod:39
4162 #, no-wrap
4163 msgid ""
4164 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
4165 "\n"
4166 msgstr ""
4167
4168 #. type: textblock
4169 #: ../fish/guestfish-actions.pod:41
4170 msgid ""
4171 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4172 "It works by connecting to libvirt, requesting the domain and domain XML from "
4173 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
4174 msgstr ""
4175
4176 #. type: textblock
4177 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
4178 msgid ""
4179 "The number of disks added is returned.  This operation is atomic: if an "
4180 "error is returned, then no disks are added."
4181 msgstr ""
4182
4183 #. type: textblock
4184 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
4185 msgid ""
4186 "This function does some minimal checks to make sure the libvirt domain is "
4187 "not running (unless C<readonly> is true).  In a future version we will try "
4188 "to acquire the libvirt lock on each disk."
4189 msgstr ""
4190
4191 #. type: textblock
4192 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
4193 msgid ""
4194 "Disks must be accessible locally.  This often means that adding disks from a "
4195 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4196 "unless those disks are accessible via the same device path locally too."
4197 msgstr ""
4198
4199 #. type: textblock
4200 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
4201 msgid ""
4202 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4203 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
4204 "libvirt URI (or one set through an environment variable, see the libvirt "
4205 "documentation for full details)."
4206 msgstr ""
4207
4208 #. type: textblock
4209 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
4210 msgid ""
4211 "The optional C<live> flag controls whether this call will try to connect to "
4212 "a running virtual machine C<guestfsd> process if it sees a suitable "
4213 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
4214 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
4215 "DAEMONS> for more information."
4216 msgstr ""
4217
4218 #. type: textblock
4219 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
4220 msgid ""
4221 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
4222 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
4223 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
4224 "as usual."
4225 msgstr ""
4226
4227 #. type: textblock
4228 #: ../fish/guestfish-actions.pod:76
4229 msgid ""
4230 "The other optional parameters are passed directly through to L</add-drive-"
4231 "opts>."
4232 msgstr ""
4233
4234 #. type: textblock
4235 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
4236 #: ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:1973
4237 #: ../fish/guestfish-actions.pod:3139 ../fish/guestfish-actions.pod:3312
4238 #: ../fish/guestfish-actions.pod:3447
4239 msgid ""
4240 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
4241 msgstr ""
4242
4243 #. type: =head2
4244 #: ../fish/guestfish-actions.pod:81
4245 msgid "add-drive"
4246 msgstr ""
4247
4248 #. type: verbatim
4249 #: ../fish/guestfish-actions.pod:83
4250 #, no-wrap
4251 msgid ""
4252 " add-drive filename\n"
4253 "\n"
4254 msgstr ""
4255
4256 #. type: textblock
4257 #: ../fish/guestfish-actions.pod:85
4258 msgid ""
4259 "This function is the equivalent of calling L</add-drive-opts> with no "
4260 "optional parameters, so the disk is added writable, with the format being "
4261 "detected automatically."
4262 msgstr ""
4263
4264 #. type: textblock
4265 #: ../fish/guestfish-actions.pod:89
4266 msgid ""
4267 "Automatic detection of the format opens you up to a potential security hole "
4268 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4269 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4270 "you should think about replacing calls to this function with calls to L</add-"
4271 "drive-opts>, and specifying the format."
4272 msgstr ""
4273
4274 #. type: =head2
4275 #: ../fish/guestfish-actions.pod:96
4276 msgid "add-drive-opts"
4277 msgstr ""
4278
4279 #. type: =head2
4280 #: ../fish/guestfish-actions.pod:98
4281 msgid "add"
4282 msgstr ""
4283
4284 #. type: verbatim
4285 #: ../fish/guestfish-actions.pod:100
4286 #, no-wrap
4287 msgid ""
4288 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
4289 "\n"
4290 msgstr ""
4291
4292 #. type: textblock
4293 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
4294 msgid ""
4295 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4296 "The first time you call this function, the disk appears as C</dev/sda>, the "
4297 "second time as C</dev/sdb>, and so on."
4298 msgstr ""
4299
4300 #. type: textblock
4301 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
4302 msgid ""
4303 "You don't necessarily need to be root when using libguestfs.  However you "
4304 "obviously do need sufficient permissions to access the filename for whatever "
4305 "operations you want to perform (ie. read access if you just want to read the "
4306 "image or write access if you want to modify the image)."
4307 msgstr ""
4308
4309 #. type: textblock
4310 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
4311 msgid "This call checks that C<filename> exists."
4312 msgstr ""
4313
4314 #. type: textblock
4315 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3101
4316 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4660
4317 msgid "The optional arguments are:"
4318 msgstr ""
4319
4320 #. type: =item
4321 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
4322 msgid "C<readonly>"
4323 msgstr ""
4324
4325 #. type: textblock
4326 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
4327 msgid ""
4328 "If true then the image is treated as read-only.  Writes are still allowed, "
4329 "but they are stored in a temporary snapshot overlay which is discarded at "
4330 "the end.  The disk that you add is not modified."
4331 msgstr ""
4332
4333 #. type: =item
4334 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
4335 msgid "C<format>"
4336 msgstr ""
4337
4338 #. type: textblock
4339 #: ../fish/guestfish-actions.pod:127
4340 msgid ""
4341 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
4342 "add-drive-ro>) then the format is automatically detected.  Possible formats "
4343 "include C<raw> and C<qcow2>."
4344 msgstr ""
4345
4346 #. type: textblock
4347 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
4348 msgid ""
4349 "Automatic detection of the format opens you up to a potential security hole "
4350 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4351 "RHBZ#642934.  Specifying the format closes this security hole."
4352 msgstr ""
4353
4354 #. type: =item
4355 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
4356 msgid "C<iface>"
4357 msgstr ""
4358
4359 #. type: textblock
4360 #: ../fish/guestfish-actions.pod:138
4361 msgid ""
4362 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
4363 "add-drive-with-if> call (q.v.)"
4364 msgstr ""
4365
4366 #. type: =head2
4367 #: ../fish/guestfish-actions.pod:145
4368 msgid "add-drive-ro"
4369 msgstr ""
4370
4371 #. type: =head2
4372 #: ../fish/guestfish-actions.pod:147
4373 msgid "add-ro"
4374 msgstr ""
4375
4376 #. type: verbatim
4377 #: ../fish/guestfish-actions.pod:149
4378 #, no-wrap
4379 msgid ""
4380 " add-drive-ro filename\n"
4381 "\n"
4382 msgstr ""
4383
4384 #. type: textblock
4385 #: ../fish/guestfish-actions.pod:151
4386 msgid ""
4387 "This function is the equivalent of calling L</add-drive-opts> with the "
4388 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
4389 "is added read-only, with the format being detected automatically."
4390 msgstr ""
4391
4392 #. type: =head2
4393 #: ../fish/guestfish-actions.pod:156
4394 msgid "add-drive-ro-with-if"
4395 msgstr ""
4396
4397 #. type: verbatim
4398 #: ../fish/guestfish-actions.pod:158
4399 #, no-wrap
4400 msgid ""
4401 " add-drive-ro-with-if filename iface\n"
4402 "\n"
4403 msgstr ""
4404
4405 #. type: textblock
4406 #: ../fish/guestfish-actions.pod:160
4407 msgid ""
4408 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
4409 "interface emulation to use at run time."
4410 msgstr ""
4411
4412 #. type: =head2
4413 #: ../fish/guestfish-actions.pod:170
4414 msgid "add-drive-with-if"
4415 msgstr ""
4416
4417 #. type: verbatim
4418 #: ../fish/guestfish-actions.pod:172
4419 #, no-wrap
4420 msgid ""
4421 " add-drive-with-if filename iface\n"
4422 "\n"
4423 msgstr ""
4424
4425 #. type: textblock
4426 #: ../fish/guestfish-actions.pod:174
4427 msgid ""
4428 "This is the same as L</add-drive> but it allows you to specify the QEMU "
4429 "interface emulation to use at run time."
4430 msgstr ""
4431
4432 #. type: =head2
4433 #: ../fish/guestfish-actions.pod:184
4434 msgid "aug-clear"
4435 msgstr ""
4436
4437 #. type: verbatim
4438 #: ../fish/guestfish-actions.pod:186
4439 #, no-wrap
4440 msgid ""
4441 " aug-clear augpath\n"
4442 "\n"
4443 msgstr ""
4444
4445 #. type: textblock
4446 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
4447 msgid ""
4448 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4449 "L<augtool(1)> C<clear> command."
4450 msgstr ""
4451
4452 #. type: =head2
4453 #: ../fish/guestfish-actions.pod:191
4454 msgid "aug-close"
4455 msgstr ""
4456
4457 #. type: verbatim
4458 #: ../fish/guestfish-actions.pod:193
4459 #, no-wrap
4460 msgid ""
4461 " aug-close\n"
4462 "\n"
4463 msgstr ""
4464
4465 #. type: textblock
4466 #: ../fish/guestfish-actions.pod:195
4467 msgid ""
4468 "Close the current Augeas handle and free up any resources used by it.  After "
4469 "calling this, you have to call L</aug-init> again before you can use any "
4470 "other Augeas functions."
4471 msgstr ""
4472
4473 #. type: =head2
4474 #: ../fish/guestfish-actions.pod:200
4475 msgid "aug-defnode"
4476 msgstr ""
4477
4478 #. type: verbatim
4479 #: ../fish/guestfish-actions.pod:202
4480 #, no-wrap
4481 msgid ""
4482 " aug-defnode name expr val\n"
4483 "\n"
4484 msgstr ""
4485
4486 #. type: textblock
4487 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
4488 msgid ""
4489 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4490 msgstr ""
4491
4492 #. type: textblock
4493 #: ../fish/guestfish-actions.pod:207
4494 msgid ""
4495 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4496 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
4497 "containing that single node."
4498 msgstr ""
4499
4500 #. type: textblock
4501 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
4502 msgid ""
4503 "On success this returns a pair containing the number of nodes in the "
4504 "nodeset, and a boolean flag if a node was created."
4505 msgstr ""
4506
4507 #. type: =head2
4508 #: ../fish/guestfish-actions.pod:215
4509 msgid "aug-defvar"
4510 msgstr ""
4511
4512 #. type: verbatim
4513 #: ../fish/guestfish-actions.pod:217
4514 #, no-wrap
4515 msgid ""
4516 " aug-defvar name expr\n"
4517 "\n"
4518 msgstr ""
4519
4520 #. type: textblock
4521 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
4522 msgid ""
4523 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4524 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4525 msgstr ""
4526
4527 #. type: textblock
4528 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
4529 msgid ""
4530 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4531 "evaluates to something which is not a nodeset."
4532 msgstr ""
4533
4534 #. type: =head2
4535 #: ../fish/guestfish-actions.pod:226
4536 msgid "aug-get"
4537 msgstr ""
4538
4539 #. type: verbatim
4540 #: ../fish/guestfish-actions.pod:228
4541 #, no-wrap
4542 msgid ""
4543 " aug-get augpath\n"
4544 "\n"
4545 msgstr ""
4546
4547 #. type: textblock
4548 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
4549 msgid ""
4550 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4551 "node, the C<value> is returned."
4552 msgstr ""
4553
4554 #. type: =head2
4555 #: ../fish/guestfish-actions.pod:233
4556 msgid "aug-init"
4557 msgstr ""
4558
4559 #. type: verbatim
4560 #: ../fish/guestfish-actions.pod:235
4561 #, no-wrap
4562 msgid ""
4563 " aug-init root flags\n"
4564 "\n"
4565 msgstr ""
4566
4567 #. type: textblock
4568 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
4569 msgid ""
4570 "Create a new Augeas handle for editing configuration files.  If there was "
4571 "any previous Augeas handle associated with this guestfs session, then it is "
4572 "closed."
4573 msgstr ""
4574
4575 #. type: textblock
4576 #: ../fish/guestfish-actions.pod:241
4577 msgid "You must call this before using any other L</aug-*> commands."
4578 msgstr ""
4579
4580 #. type: textblock
4581 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
4582 msgid ""
4583 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4584 msgstr ""
4585
4586 #. type: textblock
4587 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
4588 msgid ""
4589 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4590 "logical I<or> of the following integers:"
4591 msgstr ""
4592
4593 #. type: =item
4594 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
4595 msgid "C<AUG_SAVE_BACKUP> = 1"
4596 msgstr ""
4597
4598 #. type: textblock
4599 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
4600 msgid "Keep the original file with a C<.augsave> extension."
4601 msgstr ""
4602
4603 #. type: =item
4604 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
4605 msgid "C<AUG_SAVE_NEWFILE> = 2"
4606 msgstr ""
4607
4608 #. type: textblock
4609 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
4610 msgid ""
4611 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4612 "original.  Overrides C<AUG_SAVE_BACKUP>."
4613 msgstr ""
4614
4615 #. type: =item
4616 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
4617 msgid "C<AUG_TYPE_CHECK> = 4"
4618 msgstr ""
4619
4620 #. type: textblock
4621 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
4622 msgid "Typecheck lenses."
4623 msgstr ""
4624
4625 #. type: textblock
4626 #: ../fish/guestfish-actions.pod:266
4627 msgid ""
4628 "This option is only useful when debugging Augeas lenses.  Use of this option "
4629 "may require additional memory for the libguestfs appliance.  You may need to "
4630 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
4631 msgstr ""
4632
4633 #. type: =item
4634 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
4635 msgid "C<AUG_NO_STDINC> = 8"
4636 msgstr ""
4637
4638 #. type: textblock
4639 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
4640 msgid "Do not use standard load path for modules."
4641 msgstr ""
4642
4643 #. type: =item
4644 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
4645 msgid "C<AUG_SAVE_NOOP> = 16"
4646 msgstr ""
4647
4648 #. type: textblock
4649 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
4650 msgid "Make save a no-op, just record what would have been changed."
4651 msgstr ""
4652
4653 #. type: =item
4654 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
4655 msgid "C<AUG_NO_LOAD> = 32"
4656 msgstr ""
4657
4658 #. type: textblock
4659 #: ../fish/guestfish-actions.pod:281
4660 msgid "Do not load the tree in L</aug-init>."
4661 msgstr ""
4662
4663 #. type: textblock
4664 #: ../fish/guestfish-actions.pod:285
4665 msgid "To close the handle, you can call L</aug-close>."
4666 msgstr ""
4667
4668 #. type: textblock
4669 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
4670 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4671 msgstr ""
4672
4673 #. type: =head2
4674 #: ../fish/guestfish-actions.pod:289
4675 msgid "aug-insert"
4676 msgstr ""
4677
4678 #. type: verbatim
4679 #: ../fish/guestfish-actions.pod:291
4680 #, no-wrap
4681 msgid ""
4682 " aug-insert augpath label true|false\n"
4683 "\n"
4684 msgstr ""
4685
4686 #. type: textblock
4687 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
4688 msgid ""
4689 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4690 "or after C<path> (depending on the boolean flag C<before>)."
4691 msgstr ""
4692
4693 #. type: textblock
4694 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
4695 msgid ""
4696 "C<path> must match exactly one existing node in the tree, and C<label> must "
4697 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4698 msgstr ""
4699
4700 #. type: =head2
4701 #: ../fish/guestfish-actions.pod:301
4702 msgid "aug-load"
4703 msgstr ""
4704
4705 #. type: verbatim
4706 #: ../fish/guestfish-actions.pod:303
4707 #, no-wrap
4708 msgid ""
4709 " aug-load\n"
4710 "\n"
4711 msgstr ""
4712
4713 #. type: textblock
4714 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
4715 msgid "Load files into the tree."
4716 msgstr ""
4717
4718 #. type: textblock
4719 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
4720 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4721 msgstr ""
4722
4723 #. type: =head2
4724 #: ../fish/guestfish-actions.pod:310
4725 msgid "aug-ls"
4726 msgstr ""
4727
4728 #. type: verbatim
4729 #: ../fish/guestfish-actions.pod:312
4730 #, no-wrap
4731 msgid ""
4732 " aug-ls augpath\n"
4733 "\n"
4734 msgstr ""
4735
4736 #. type: textblock
4737 #: ../fish/guestfish-actions.pod:314
4738 msgid ""
4739 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
4740 "resulting nodes into alphabetical order."
4741 msgstr ""
4742
4743 #. type: =head2
4744 #: ../fish/guestfish-actions.pod:317
4745 msgid "aug-match"
4746 msgstr ""
4747
4748 #. type: verbatim
4749 #: ../fish/guestfish-actions.pod:319
4750 #, no-wrap
4751 msgid ""
4752 " aug-match augpath\n"
4753 "\n"
4754 msgstr ""
4755
4756 #. type: textblock
4757 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
4758 msgid ""
4759 "Returns a list of paths which match the path expression C<path>.  The "
4760 "returned paths are sufficiently qualified so that they match exactly one "
4761 "node in the current tree."
4762 msgstr ""
4763
4764 #. type: =head2
4765 #: ../fish/guestfish-actions.pod:325
4766 msgid "aug-mv"
4767 msgstr ""
4768
4769 #. type: verbatim
4770 #: ../fish/guestfish-actions.pod:327
4771 #, no-wrap
4772 msgid ""
4773 " aug-mv src dest\n"
4774 "\n"
4775 msgstr ""
4776
4777 #. type: textblock
4778 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
4779 msgid ""
4780 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4781 "C<dest> is overwritten if it exists."
4782 msgstr ""
4783
4784 #. type: =head2
4785 #: ../fish/guestfish-actions.pod:332
4786 msgid "aug-rm"
4787 msgstr ""
4788
4789 #. type: verbatim
4790 #: ../fish/guestfish-actions.pod:334
4791 #, no-wrap
4792 msgid ""
4793 " aug-rm augpath\n"
4794 "\n"
4795 msgstr ""
4796
4797 #. type: textblock
4798 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
4799 msgid "Remove C<path> and all of its children."
4800 msgstr ""
4801
4802 #. type: textblock
4803 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
4804 msgid "On success this returns the number of entries which were removed."
4805 msgstr ""
4806
4807 #. type: =head2
4808 #: ../fish/guestfish-actions.pod:340
4809 msgid "aug-save"
4810 msgstr ""
4811
4812 #. type: verbatim
4813 #: ../fish/guestfish-actions.pod:342
4814 #, no-wrap
4815 msgid ""
4816 " aug-save\n"
4817 "\n"
4818 msgstr ""
4819
4820 #. type: textblock
4821 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
4822 msgid "This writes all pending changes to disk."
4823 msgstr ""
4824
4825 #. type: textblock
4826 #: ../fish/guestfish-actions.pod:346
4827 msgid ""
4828 "The flags which were passed to L</aug-init> affect exactly how files are "
4829 "saved."
4830 msgstr ""
4831
4832 #. type: =head2
4833 #: ../fish/guestfish-actions.pod:349
4834 msgid "aug-set"
4835 msgstr ""
4836
4837 #. type: verbatim
4838 #: ../fish/guestfish-actions.pod:351
4839 #, no-wrap
4840 msgid ""
4841 " aug-set augpath val\n"
4842 "\n"
4843 msgstr ""
4844
4845 #. type: textblock
4846 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
4847 msgid "Set the value associated with C<path> to C<val>."
4848 msgstr ""
4849
4850 #. type: textblock
4851 #: ../fish/guestfish-actions.pod:355
4852 msgid ""
4853 "In the Augeas API, it is possible to clear a node by setting the value to "
4854 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
4855 "this call.  Instead you must use the L</aug-clear> call."
4856 msgstr ""
4857
4858 #. type: =head2
4859 #: ../fish/guestfish-actions.pod:360
4860 msgid "available"
4861 msgstr ""
4862
4863 #. type: verbatim
4864 #: ../fish/guestfish-actions.pod:362
4865 #, no-wrap
4866 msgid ""
4867 " available 'groups ...'\n"
4868 "\n"
4869 msgstr ""
4870
4871 #. type: textblock
4872 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
4873 msgid ""
4874 "This command is used to check the availability of some groups of "
4875 "functionality in the appliance, which not all builds of the libguestfs "
4876 "appliance will be able to provide."
4877 msgstr ""
4878
4879 #. type: textblock
4880 #: ../fish/guestfish-actions.pod:368
4881 msgid ""
4882 "The libguestfs groups, and the functions that those groups correspond to, "
4883 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
4884 "runtime by calling L</available-all-groups>."
4885 msgstr ""
4886
4887 #. type: textblock
4888 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
4889 msgid ""
4890 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
4891 "\"]> would check for the availability of the Linux inotify functions and "
4892 "Augeas (configuration file editing) functions."
4893 msgstr ""
4894
4895 #. type: textblock
4896 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
4897 msgid "The command returns no error if I<all> requested groups are available."
4898 msgstr ""
4899
4900 #. type: textblock
4901 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:578
4902 msgid ""
4903 "It fails with an error if one or more of the requested groups is unavailable "
4904 "in the appliance."
4905 msgstr ""
4906
4907 #. type: textblock
4908 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:581
4909 msgid ""
4910 "If an unknown group name is included in the list of groups then an error is "
4911 "always returned."
4912 msgstr ""
4913
4914 #. type: textblock
4915 #: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:584
4916 msgid "I<Notes:>"
4917 msgstr ""
4918
4919 #. type: textblock
4920 #: ../fish/guestfish-actions.pod:392
4921 msgid "You must call L</launch> before calling this function."
4922 msgstr ""
4923
4924 #. type: textblock
4925 #: ../fish/guestfish-actions.pod:394 ../src/guestfs-actions.pod:592
4926 msgid ""
4927 "The reason is because we don't know what groups are supported by the "
4928 "appliance/daemon until it is running and can be queried."
4929 msgstr ""
4930
4931 #. type: textblock
4932 #: ../fish/guestfish-actions.pod:400 ../src/guestfs-actions.pod:598
4933 msgid ""
4934 "If a group of functions is available, this does not necessarily mean that "
4935 "they will work.  You still have to check for errors when calling individual "
4936 "API functions even if they are available."
4937 msgstr ""
4938
4939 #. type: textblock
4940 #: ../fish/guestfish-actions.pod:407 ../src/guestfs-actions.pod:605
4941 msgid ""
4942 "It is usually the job of distro packagers to build complete functionality "
4943 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
4944 "with all requirements satisfied, will support everything."
4945 msgstr ""
4946
4947 #. type: textblock
4948 #: ../fish/guestfish-actions.pod:414
4949 msgid ""
4950 "This call was added in version C<1.0.80>.  In previous versions of "
4951 "libguestfs all you could do would be to speculatively execute a command to "
4952 "find out if the daemon implemented it.  See also L</version>."
4953 msgstr ""
4954
4955 #. type: =head2
4956 #: ../fish/guestfish-actions.pod:421
4957 msgid "available-all-groups"
4958 msgstr ""
4959
4960 #. type: verbatim
4961 #: ../fish/guestfish-actions.pod:423
4962 #, no-wrap
4963 msgid ""
4964 " available-all-groups\n"
4965 "\n"
4966 msgstr ""
4967
4968 #. type: textblock
4969 #: ../fish/guestfish-actions.pod:425
4970 msgid ""
4971 "This command returns a list of all optional groups that this daemon knows "
4972 "about.  Note this returns both supported and unsupported groups.  To find "
4973 "out which ones the daemon can actually support you have to call L</"
4974 "available> on each member of the returned list."
4975 msgstr ""
4976
4977 #. type: textblock
4978 #: ../fish/guestfish-actions.pod:431
4979 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
4980 msgstr ""
4981
4982 #. type: =head2
4983 #: ../fish/guestfish-actions.pod:433
4984 msgid "base64-in"
4985 msgstr ""
4986
4987 #. type: verbatim
4988 #: ../fish/guestfish-actions.pod:435
4989 #, no-wrap
4990 msgid ""
4991 " base64-in (base64file|-) filename\n"
4992 "\n"
4993 msgstr ""
4994
4995 #. type: textblock
4996 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:649
4997 msgid ""
4998 "This command uploads base64-encoded data from C<base64file> to C<filename>."
4999 msgstr ""
5000
5001 #. type: textblock
5002 #: ../fish/guestfish-actions.pod:440 ../fish/guestfish-actions.pod:449
5003 #: ../fish/guestfish-actions.pod:698 ../fish/guestfish-actions.pod:867
5004 #: ../fish/guestfish-actions.pod:886 ../fish/guestfish-actions.pod:1260
5005 #: ../fish/guestfish-actions.pod:4663 ../fish/guestfish-actions.pod:4675
5006 #: ../fish/guestfish-actions.pod:4686 ../fish/guestfish-actions.pod:4697
5007 #: ../fish/guestfish-actions.pod:4749 ../fish/guestfish-actions.pod:4758
5008 #: ../fish/guestfish-actions.pod:4812 ../fish/guestfish-actions.pod:4835
5009 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
5010 msgstr ""
5011
5012 #. type: =head2
5013 #: ../fish/guestfish-actions.pod:442
5014 msgid "base64-out"
5015 msgstr ""
5016
5017 #. type: verbatim
5018 #: ../fish/guestfish-actions.pod:444
5019 #, no-wrap
5020 msgid ""
5021 " base64-out filename (base64file|-)\n"
5022 "\n"
5023 msgstr ""
5024
5025 #. type: textblock
5026 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
5027 msgid ""
5028 "This command downloads the contents of C<filename>, writing it out to local "
5029 "file C<base64file> encoded as base64."
5030 msgstr ""
5031
5032 #. type: =head2
5033 #: ../fish/guestfish-actions.pod:451
5034 msgid "blockdev-flushbufs"
5035 msgstr ""
5036
5037 #. type: verbatim
5038 #: ../fish/guestfish-actions.pod:453
5039 #, no-wrap
5040 msgid ""
5041 " blockdev-flushbufs device\n"
5042 "\n"
5043 msgstr ""
5044
5045 #. type: textblock
5046 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
5047 msgid ""
5048 "This tells the kernel to flush internal buffers associated with C<device>."
5049 msgstr ""
5050
5051 #. type: textblock
5052 #: ../fish/guestfish-actions.pod:458 ../fish/guestfish-actions.pod:469
5053 #: ../fish/guestfish-actions.pod:478 ../fish/guestfish-actions.pod:488
5054 #: ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:513
5055 #: ../fish/guestfish-actions.pod:521 ../fish/guestfish-actions.pod:532
5056 #: ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:548
5057 #: ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:696
5058 #: ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:727
5059 #: ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:764
5060 #: ../src/guestfs-actions.pod:778 ../src/guestfs-actions.pod:796
5061 #: ../src/guestfs-actions.pod:810 ../src/guestfs-actions.pod:824
5062 msgid "This uses the L<blockdev(8)> command."
5063 msgstr ""
5064
5065 #. type: =head2
5066 #: ../fish/guestfish-actions.pod:460
5067 msgid "blockdev-getbsz"
5068 msgstr ""
5069
5070 #. type: verbatim
5071 #: ../fish/guestfish-actions.pod:462
5072 #, no-wrap
5073 msgid ""
5074 " blockdev-getbsz device\n"
5075 "\n"
5076 msgstr ""
5077
5078 #. type: textblock
5079 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
5080 msgid "This returns the block size of a device."
5081 msgstr ""
5082
5083 #. type: textblock
5084 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529
5085 #: ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
5086 msgid ""
5087 "(Note this is different from both I<size in blocks> and I<filesystem block "
5088 "size>)."
5089 msgstr ""
5090
5091 #. type: =head2
5092 #: ../fish/guestfish-actions.pod:471
5093 msgid "blockdev-getro"
5094 msgstr ""
5095
5096 #. type: verbatim
5097 #: ../fish/guestfish-actions.pod:473
5098 #, no-wrap
5099 msgid ""
5100 " blockdev-getro device\n"
5101 "\n"
5102 msgstr ""
5103
5104 #. type: textblock
5105 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
5106 msgid ""
5107 "Returns a boolean indicating if the block device is read-only (true if read-"
5108 "only, false if not)."
5109 msgstr ""
5110
5111 #. type: =head2
5112 #: ../fish/guestfish-actions.pod:480
5113 msgid "blockdev-getsize64"
5114 msgstr ""
5115
5116 #. type: verbatim
5117 #: ../fish/guestfish-actions.pod:482
5118 #, no-wrap
5119 msgid ""
5120 " blockdev-getsize64 device\n"
5121 "\n"
5122 msgstr ""
5123
5124 #. type: textblock
5125 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
5126 msgid "This returns the size of the device in bytes."
5127 msgstr ""
5128
5129 #. type: textblock
5130 #: ../fish/guestfish-actions.pod:486
5131 msgid "See also L</blockdev-getsz>."
5132 msgstr ""
5133
5134 #. type: =head2
5135 #: ../fish/guestfish-actions.pod:490
5136 msgid "blockdev-getss"
5137 msgstr ""
5138
5139 #. type: verbatim
5140 #: ../fish/guestfish-actions.pod:492
5141 #, no-wrap
5142 msgid ""
5143 " blockdev-getss device\n"
5144 "\n"
5145 msgstr ""
5146
5147 #. type: textblock
5148 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
5149 msgid ""
5150 "This returns the size of sectors on a block device.  Usually 512, but can be "
5151 "larger for modern devices."
5152 msgstr ""
5153
5154 #. type: textblock
5155 #: ../fish/guestfish-actions.pod:497
5156 msgid ""
5157 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
5158 msgstr ""
5159
5160 #. type: =head2
5161 #: ../fish/guestfish-actions.pod:502
5162 msgid "blockdev-getsz"
5163 msgstr ""
5164
5165 #. type: verbatim
5166 #: ../fish/guestfish-actions.pod:504
5167 #, no-wrap
5168 msgid ""
5169 " blockdev-getsz device\n"
5170 "\n"
5171 msgstr ""
5172
5173 #. type: textblock
5174 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
5175 msgid ""
5176 "This returns the size of the device in units of 512-byte sectors (even if "
5177 "the sectorsize isn't 512 bytes ... weird)."
5178 msgstr ""
5179
5180 #. type: textblock
5181 #: ../fish/guestfish-actions.pod:509
5182 msgid ""
5183 "See also L</blockdev-getss> for the real sector size of the device, and L</"
5184 "blockdev-getsize64> for the more useful I<size in bytes>."
5185 msgstr ""
5186
5187 #. type: =head2
5188 #: ../fish/guestfish-actions.pod:515
5189 msgid "blockdev-rereadpt"
5190 msgstr ""
5191
5192 #. type: verbatim
5193 #: ../fish/guestfish-actions.pod:517
5194 #, no-wrap
5195 msgid ""
5196 " blockdev-rereadpt device\n"
5197 "\n"
5198 msgstr ""
5199
5200 #. type: textblock
5201 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
5202 msgid "Reread the partition table on C<device>."
5203 msgstr ""
5204
5205 #. type: =head2
5206 #: ../fish/guestfish-actions.pod:523
5207 msgid "blockdev-setbsz"
5208 msgstr ""
5209
5210 #. type: verbatim
5211 #: ../fish/guestfish-actions.pod:525
5212 #, no-wrap
5213 msgid ""
5214 " blockdev-setbsz device blocksize\n"
5215 "\n"
5216 msgstr ""
5217
5218 #. type: textblock
5219 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
5220 msgid "This sets the block size of a device."
5221 msgstr ""
5222
5223 #. type: =head2
5224 #: ../fish/guestfish-actions.pod:534
5225 msgid "blockdev-setro"
5226 msgstr ""
5227
5228 #. type: verbatim
5229 #: ../fish/guestfish-actions.pod:536
5230 #, no-wrap
5231 msgid ""
5232 " blockdev-setro device\n"
5233 "\n"
5234 msgstr ""
5235
5236 #. type: textblock
5237 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
5238 msgid "Sets the block device named C<device> to read-only."
5239 msgstr ""
5240
5241 #. type: =head2
5242 #: ../fish/guestfish-actions.pod:542
5243 msgid "blockdev-setrw"
5244 msgstr ""
5245
5246 #. type: verbatim
5247 #: ../fish/guestfish-actions.pod:544
5248 #, no-wrap
5249 msgid ""
5250 " blockdev-setrw device\n"
5251 "\n"
5252 msgstr ""
5253
5254 #. type: textblock
5255 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
5256 msgid "Sets the block device named C<device> to read-write."
5257 msgstr ""
5258
5259 #. type: =head2
5260 #: ../fish/guestfish-actions.pod:550
5261 msgid "btrfs-filesystem-resize"
5262 msgstr ""
5263
5264 #. type: verbatim
5265 #: ../fish/guestfish-actions.pod:552
5266 #, no-wrap
5267 msgid ""
5268 " btrfs-filesystem-resize mountpoint [size:..]\n"
5269 "\n"
5270 msgstr ""
5271
5272 #. type: textblock
5273 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
5274 msgid "This command resizes a btrfs filesystem."
5275 msgstr ""
5276
5277 #. type: textblock
5278 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
5279 msgid ""
5280 "Note that unlike other resize calls, the filesystem has to be mounted and "
5281 "the parameter is the mountpoint not the device (this is a requirement of "
5282 "btrfs itself)."
5283 msgstr ""
5284
5285 #. type: textblock
5286 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3422
5287 #: ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5194
5288 msgid "The optional parameters are:"
5289 msgstr ""
5290
5291 #. type: =item
5292 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3426
5293 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5198
5294 msgid "C<size>"
5295 msgstr ""
5296
5297 #. type: textblock
5298 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
5299 msgid ""
5300 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
5301 "resized to the maximum size."
5302 msgstr ""
5303
5304 #. type: textblock
5305 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
5306 msgid "See also L<btrfs(8)>."
5307 msgstr ""
5308
5309 #. type: =head2
5310 #: ../fish/guestfish-actions.pod:575
5311 msgid "case-sensitive-path"
5312 msgstr ""
5313
5314 #. type: verbatim
5315 #: ../fish/guestfish-actions.pod:577
5316 #, no-wrap
5317 msgid ""
5318 " case-sensitive-path path\n"
5319 "\n"
5320 msgstr ""
5321
5322 #. type: textblock
5323 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
5324 msgid ""
5325 "This can be used to resolve case insensitive paths on a filesystem which is "
5326 "case sensitive.  The use case is to resolve paths which you have read from "
5327 "Windows configuration files or the Windows Registry, to the true path."
5328 msgstr ""
5329
5330 #. type: textblock
5331 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
5332 msgid ""
5333 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5334 "(and probably others), which is that although the underlying filesystem is "
5335 "case-insensitive, the driver exports the filesystem to Linux as case-"
5336 "sensitive."
5337 msgstr ""
5338
5339 #. type: textblock
5340 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
5341 msgid ""
5342 "One consequence of this is that special directories such as C<c:\\windows> "
5343 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5344 "precise details of how they were created.  In Windows itself this would not "
5345 "be a problem."
5346 msgstr ""
5347
5348 #. type: textblock
5349 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
5350 msgid ""
5351 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5352 "#posixfilenames1>"
5353 msgstr ""
5354
5355 #. type: textblock
5356 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
5357 msgid ""
5358 "This function resolves the true case of each element in the path and returns "
5359 "the case-sensitive path."
5360 msgstr ""
5361
5362 #. type: textblock
5363 #: ../fish/guestfish-actions.pod:601
5364 msgid ""
5365 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
5366 "WINDOWS/system32\"> (the exact return value would depend on details of how "
5367 "the directories were originally created under Windows)."
5368 msgstr ""
5369
5370 #. type: textblock
5371 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
5372 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5373 msgstr ""
5374
5375 #. type: textblock
5376 #: ../fish/guestfish-actions.pod:609
5377 msgid "See also L</realpath>."
5378 msgstr ""
5379
5380 #. type: =head2
5381 #: ../fish/guestfish-actions.pod:611
5382 msgid "cat"
5383 msgstr ""
5384
5385 #. type: verbatim
5386 #: ../fish/guestfish-actions.pod:613
5387 #, no-wrap
5388 msgid ""
5389 " cat path\n"
5390 "\n"
5391 msgstr ""
5392
5393 #. type: textblock
5394 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3842
5395 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5837
5396 msgid "Return the contents of the file named C<path>."
5397 msgstr ""
5398
5399 #. type: textblock
5400 #: ../fish/guestfish-actions.pod:617
5401 msgid ""
5402 "Note that this function cannot correctly handle binary files (specifically, "
5403 "files containing C<\\0> character which is treated as end of string).  For "
5404 "those you need to use the L</read-file> or L</download> functions which have "
5405 "a more complex interface."
5406 msgstr ""
5407
5408 #. type: textblock
5409 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:757
5410 #: ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:945
5411 #: ../fish/guestfish-actions.pod:955 ../fish/guestfish-actions.pod:1022
5412 #: ../fish/guestfish-actions.pod:1032 ../fish/guestfish-actions.pod:1224
5413 #: ../fish/guestfish-actions.pod:1531 ../fish/guestfish-actions.pod:1541
5414 #: ../fish/guestfish-actions.pod:1569 ../fish/guestfish-actions.pod:1584
5415 #: ../fish/guestfish-actions.pod:1594 ../fish/guestfish-actions.pod:1613
5416 #: ../fish/guestfish-actions.pod:3712 ../fish/guestfish-actions.pod:3727
5417 #: ../fish/guestfish-actions.pod:3803 ../fish/guestfish-actions.pod:3820
5418 #: ../fish/guestfish-actions.pod:3835 ../fish/guestfish-actions.pod:4504
5419 #: ../fish/guestfish-actions.pod:4550 ../fish/guestfish-actions.pod:4635
5420 #: ../fish/guestfish-actions.pod:4650 ../fish/guestfish-actions.pod:5056
5421 #: ../fish/guestfish-actions.pod:5068 ../fish/guestfish-actions.pod:5086
5422 #: ../fish/guestfish-actions.pod:5103 ../fish/guestfish-actions.pod:5113
5423 #: ../fish/guestfish-actions.pod:5170 ../fish/guestfish-actions.pod:5180
5424 #: ../fish/guestfish-actions.pod:5209 ../fish/guestfish-actions.pod:5219
5425 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:1127
5426 #: ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1443
5427 #: ../src/guestfs-actions.pod:1462 ../src/guestfs-actions.pod:1565
5428 #: ../src/guestfs-actions.pod:1584 ../src/guestfs-actions.pod:1830
5429 #: ../src/guestfs-actions.pod:2301 ../src/guestfs-actions.pod:2320
5430 #: ../src/guestfs-actions.pod:2363 ../src/guestfs-actions.pod:2387
5431 #: ../src/guestfs-actions.pod:2404 ../src/guestfs-actions.pod:2433
5432 #: ../src/guestfs-actions.pod:5619 ../src/guestfs-actions.pod:5645
5433 #: ../src/guestfs-actions.pod:5776 ../src/guestfs-actions.pod:5802
5434 #: ../src/guestfs-actions.pod:5826 ../src/guestfs-actions.pod:6777
5435 #: ../src/guestfs-actions.pod:6832 ../src/guestfs-actions.pod:6978
5436 #: ../src/guestfs-actions.pod:7002 ../src/guestfs-actions.pod:7667
5437 #: ../src/guestfs-actions.pod:7687 ../src/guestfs-actions.pod:7720
5438 #: ../src/guestfs-actions.pod:7739 ../src/guestfs-actions.pod:7758
5439 #: ../src/guestfs-actions.pod:7852 ../src/guestfs-actions.pod:7871
5440 #: ../src/guestfs-actions.pod:7917 ../src/guestfs-actions.pod:7936
5441 msgid ""
5442 "Because of the message protocol, there is a transfer limit of somewhere "
5443 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5444 msgstr ""
5445
5446 #. type: =head2
5447 #: ../fish/guestfish-actions.pod:625
5448 msgid "checksum"
5449 msgstr ""
5450
5451 #. type: verbatim
5452 #: ../fish/guestfish-actions.pod:627
5453 #, no-wrap
5454 msgid ""
5455 " checksum csumtype path\n"
5456 "\n"
5457 msgstr ""
5458
5459 #. type: textblock
5460 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
5461 msgid ""
5462 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5463 msgstr ""
5464
5465 #. type: textblock
5466 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
5467 msgid ""
5468 "The type of checksum to compute is given by the C<csumtype> parameter which "
5469 "must have one of the following values:"
5470 msgstr ""
5471
5472 #. type: =item
5473 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
5474 msgid "C<crc>"
5475 msgstr ""
5476
5477 #. type: textblock
5478 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
5479 msgid ""
5480 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5481 "C<cksum> command."
5482 msgstr ""
5483
5484 #. type: =item
5485 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
5486 msgid "C<md5>"
5487 msgstr ""
5488
5489 #. type: textblock
5490 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
5491 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5492 msgstr ""
5493
5494 #. type: =item
5495 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
5496 msgid "C<sha1>"
5497 msgstr ""
5498
5499 #. type: textblock
5500 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
5501 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5502 msgstr ""
5503
5504 #. type: =item
5505 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
5506 msgid "C<sha224>"
5507 msgstr ""
5508
5509 #. type: textblock
5510 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
5511 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5512 msgstr ""
5513
5514 #. type: =item
5515 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
5516 msgid "C<sha256>"
5517 msgstr ""
5518
5519 #. type: textblock
5520 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
5521 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5522 msgstr ""
5523
5524 #. type: =item
5525 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
5526 msgid "C<sha384>"
5527 msgstr ""
5528
5529 #. type: textblock
5530 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
5531 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5532 msgstr ""
5533
5534 #. type: =item
5535 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
5536 msgid "C<sha512>"
5537 msgstr ""
5538
5539 #. type: textblock
5540 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
5541 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5542 msgstr ""
5543
5544 #. type: textblock
5545 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
5546 msgid "The checksum is returned as a printable string."
5547 msgstr ""
5548
5549 #. type: textblock
5550 #: ../fish/guestfish-actions.pod:670
5551 msgid "To get the checksum for a device, use L</checksum-device>."
5552 msgstr ""
5553
5554 #. type: textblock
5555 #: ../fish/guestfish-actions.pod:672
5556 msgid "To get the checksums for many files, use L</checksums-out>."
5557 msgstr ""
5558
5559 #. type: =head2
5560 #: ../fish/guestfish-actions.pod:674
5561 msgid "checksum-device"
5562 msgstr ""
5563
5564 #. type: verbatim
5565 #: ../fish/guestfish-actions.pod:676
5566 #, no-wrap
5567 msgid ""
5568 " checksum-device csumtype device\n"
5569 "\n"
5570 msgstr ""
5571
5572 #. type: textblock
5573 #: ../fish/guestfish-actions.pod:678
5574 msgid ""
5575 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5576 "device named C<device>.  For the types of checksums supported see the L</"
5577 "checksum> command."
5578 msgstr ""
5579
5580 #. type: =head2
5581 #: ../fish/guestfish-actions.pod:682
5582 msgid "checksums-out"
5583 msgstr ""
5584
5585 #. type: verbatim
5586 #: ../fish/guestfish-actions.pod:684
5587 #, no-wrap
5588 msgid ""
5589 " checksums-out csumtype directory (sumsfile|-)\n"
5590 "\n"
5591 msgstr ""
5592
5593 #. type: textblock
5594 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
5595 msgid ""
5596 "This command computes the checksums of all regular files in C<directory> and "
5597 "then emits a list of those checksums to the local output file C<sumsfile>."
5598 msgstr ""
5599
5600 #. type: textblock
5601 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
5602 msgid ""
5603 "This can be used for verifying the integrity of a virtual machine.  However "
5604 "to be properly secure you should pay attention to the output of the checksum "
5605 "command (it uses the ones from GNU coreutils).  In particular when the "
5606 "filename is not printable, coreutils uses a special backslash syntax.  For "
5607 "more information, see the GNU coreutils info file."
5608 msgstr ""
5609
5610 #. type: =head2
5611 #: ../fish/guestfish-actions.pod:700
5612 msgid "chmod"
5613 msgstr ""
5614
5615 #. type: verbatim
5616 #: ../fish/guestfish-actions.pod:702
5617 #, no-wrap
5618 msgid ""
5619 " chmod mode path\n"
5620 "\n"
5621 msgstr ""
5622
5623 #. type: textblock
5624 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
5625 msgid ""
5626 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5627 "supported."
5628 msgstr ""
5629
5630 #. type: textblock
5631 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
5632 msgid ""
5633 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5634 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5635 "C<700>."
5636 msgstr ""
5637
5638 #. type: textblock
5639 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3065
5640 #: ../fish/guestfish-actions.pod:3204 ../fish/guestfish-actions.pod:3214
5641 #: ../fish/guestfish-actions.pod:3224 ../src/guestfs-actions.pod:1064
5642 #: ../src/guestfs-actions.pod:4591 ../src/guestfs-actions.pod:4800
5643 #: ../src/guestfs-actions.pod:4819 ../src/guestfs-actions.pod:4838
5644 msgid "The mode actually set is affected by the umask."
5645 msgstr ""
5646
5647 #. type: =head2
5648 #: ../fish/guestfish-actions.pod:713
5649 msgid "chown"
5650 msgstr ""
5651
5652 #. type: verbatim
5653 #: ../fish/guestfish-actions.pod:715
5654 #, no-wrap
5655 msgid ""
5656 " chown owner group path\n"
5657 "\n"
5658 msgstr ""
5659
5660 #. type: textblock
5661 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
5662 msgid "Change the file owner to C<owner> and group to C<group>."
5663 msgstr ""
5664
5665 #. type: textblock
5666 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2500
5667 #: ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3662
5668 msgid ""
5669 "Only numeric uid and gid are supported.  If you want to use names, you will "
5670 "need to locate and parse the password file yourself (Augeas support makes "
5671 "this relatively easy)."
5672 msgstr ""
5673
5674 #. type: =head2
5675 #: ../fish/guestfish-actions.pod:723
5676 msgid "command"
5677 msgstr ""
5678
5679 #. type: verbatim
5680 #: ../fish/guestfish-actions.pod:725
5681 #, no-wrap
5682 msgid ""
5683 " command 'arguments ...'\n"
5684 "\n"
5685 msgstr ""
5686
5687 #. type: textblock
5688 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
5689 msgid ""
5690 "This call runs a command from the guest filesystem.  The filesystem must be "
5691 "mounted, and must contain a compatible operating system (ie. something "
5692 "Linux, with the same or compatible processor architecture)."
5693 msgstr ""
5694
5695 #. type: textblock
5696 #: ../fish/guestfish-actions.pod:732
5697 msgid ""
5698 "The single parameter is an argv-style list of arguments.  The first element "
5699 "is the name of the program to run.  Subsequent elements are parameters.  The "
5700 "list must be non-empty (ie. must contain a program name).  Note that the "
5701 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
5702 msgstr ""
5703
5704 #. type: textblock
5705 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
5706 msgid "The return value is anything printed to I<stdout> by the command."
5707 msgstr ""
5708
5709 #. type: textblock
5710 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
5711 msgid ""
5712 "If the command returns a non-zero exit status, then this function returns an "
5713 "error message.  The error message string is the content of I<stderr> from "
5714 "the command."
5715 msgstr ""
5716
5717 #. type: textblock
5718 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
5719 msgid ""
5720 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
5721 "bin>.  If you require a program from another location, you should provide "
5722 "the full path in the first parameter."
5723 msgstr ""
5724
5725 #. type: textblock
5726 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
5727 msgid ""
5728 "Shared libraries and data files required by the program must be available on "
5729 "filesystems which are mounted in the correct places.  It is the caller's "
5730 "responsibility to ensure all filesystems that are needed are mounted at the "
5731 "right locations."
5732 msgstr ""
5733
5734 #. type: =head2
5735 #: ../fish/guestfish-actions.pod:760
5736 msgid "command-lines"
5737 msgstr ""
5738
5739 #. type: verbatim
5740 #: ../fish/guestfish-actions.pod:762
5741 #, no-wrap
5742 msgid ""
5743 " command-lines 'arguments ...'\n"
5744 "\n"
5745 msgstr ""
5746
5747 #. type: textblock
5748 #: ../fish/guestfish-actions.pod:764
5749 msgid ""
5750 "This is the same as L</command>, but splits the result into a list of lines."
5751 msgstr ""
5752
5753 #. type: textblock
5754 #: ../fish/guestfish-actions.pod:767
5755 msgid "See also: L</sh-lines>"
5756 msgstr ""
5757
5758 #. type: =head2
5759 #: ../fish/guestfish-actions.pod:772
5760 msgid "config"
5761 msgstr ""
5762
5763 #. type: verbatim
5764 #: ../fish/guestfish-actions.pod:774
5765 #, no-wrap
5766 msgid ""
5767 " config qemuparam qemuvalue\n"
5768 "\n"
5769 msgstr ""
5770
5771 #. type: textblock
5772 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1159
5773 msgid ""
5774 "This can be used to add arbitrary qemu command line parameters of the form "
5775 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
5776 "setting some parameters which would interfere with parameters that we use."
5777 msgstr ""
5778
5779 #. type: textblock
5780 #: ../fish/guestfish-actions.pod:781 ../src/guestfs-actions.pod:1164
5781 msgid "The first character of C<param> string must be a C<-> (dash)."
5782 msgstr ""
5783
5784 #. type: textblock
5785 #: ../fish/guestfish-actions.pod:783 ../src/guestfs-actions.pod:1166
5786 msgid "C<value> can be NULL."
5787 msgstr ""
5788
5789 #. type: =head2
5790 #: ../fish/guestfish-actions.pod:785
5791 msgid "copy-size"
5792 msgstr ""
5793
5794 #. type: verbatim
5795 #: ../fish/guestfish-actions.pod:787
5796 #, no-wrap
5797 msgid ""
5798 " copy-size src dest size\n"
5799 "\n"
5800 msgstr ""
5801
5802 #. type: textblock
5803 #: ../fish/guestfish-actions.pod:789 ../src/guestfs-actions.pod:1180
5804 msgid ""
5805 "This command copies exactly C<size> bytes from one source device or file "
5806 "C<src> to another destination device or file C<dest>."
5807 msgstr ""
5808
5809 #. type: textblock
5810 #: ../fish/guestfish-actions.pod:792 ../src/guestfs-actions.pod:1183
5811 msgid ""
5812 "Note this will fail if the source is too short or if the destination is not "
5813 "large enough."
5814 msgstr ""
5815
5816 #. type: =head2
5817 #: ../fish/guestfish-actions.pod:795
5818 msgid "cp"
5819 msgstr ""
5820
5821 #. type: verbatim
5822 #: ../fish/guestfish-actions.pod:797
5823 #, no-wrap
5824 msgid ""
5825 " cp src dest\n"
5826 "\n"
5827 msgstr ""
5828
5829 #. type: textblock
5830 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1202
5831 msgid ""
5832 "This copies a file from C<src> to C<dest> where C<dest> is either a "
5833 "destination filename or destination directory."
5834 msgstr ""
5835
5836 #. type: =head2
5837 #: ../fish/guestfish-actions.pod:802
5838 msgid "cp-a"
5839 msgstr ""
5840
5841 #. type: verbatim
5842 #: ../fish/guestfish-actions.pod:804
5843 #, no-wrap
5844 msgid ""
5845 " cp-a src dest\n"
5846 "\n"
5847 msgstr ""
5848
5849 #. type: textblock
5850 #: ../fish/guestfish-actions.pod:806 ../src/guestfs-actions.pod:1216
5851 msgid ""
5852 "This copies a file or directory from C<src> to C<dest> recursively using the "
5853 "C<cp -a> command."
5854 msgstr ""
5855
5856 #. type: =head2
5857 #: ../fish/guestfish-actions.pod:809
5858 msgid "dd"
5859 msgstr ""
5860
5861 #. type: verbatim
5862 #: ../fish/guestfish-actions.pod:811
5863 #, no-wrap
5864 msgid ""
5865 " dd src dest\n"
5866 "\n"
5867 msgstr ""
5868
5869 #. type: textblock
5870 #: ../fish/guestfish-actions.pod:813 ../src/guestfs-actions.pod:1230
5871 msgid ""
5872 "This command copies from one source device or file C<src> to another "
5873 "destination device or file C<dest>.  Normally you would use this to copy to "
5874 "or from a device or partition, for example to duplicate a filesystem."
5875 msgstr ""
5876
5877 #. type: textblock
5878 #: ../fish/guestfish-actions.pod:818
5879 msgid ""
5880 "If the destination is a device, it must be as large or larger than the "
5881 "source file or device, otherwise the copy will fail.  This command cannot do "
5882 "partial copies (see L</copy-size>)."
5883 msgstr ""
5884
5885 #. type: =head2
5886 #: ../fish/guestfish-actions.pod:822
5887 msgid "df"
5888 msgstr ""
5889
5890 #. type: verbatim
5891 #: ../fish/guestfish-actions.pod:824
5892 #, no-wrap
5893 msgid ""
5894 " df\n"
5895 "\n"
5896 msgstr ""
5897
5898 #. type: textblock
5899 #: ../fish/guestfish-actions.pod:826 ../src/guestfs-actions.pod:1248
5900 msgid "This command runs the C<df> command to report disk space used."
5901 msgstr ""
5902
5903 #. type: textblock
5904 #: ../fish/guestfish-actions.pod:828 ../fish/guestfish-actions.pod:839
5905 msgid ""
5906 "This command is mostly useful for interactive sessions.  It is I<not> "
5907 "intended that you try to parse the output string.  Use L</statvfs> from "
5908 "programs."
5909 msgstr ""
5910
5911 #. type: =head2
5912 #: ../fish/guestfish-actions.pod:832
5913 msgid "df-h"
5914 msgstr ""
5915
5916 #. type: verbatim
5917 #: ../fish/guestfish-actions.pod:834
5918 #, no-wrap
5919 msgid ""
5920 " df-h\n"
5921 "\n"
5922 msgstr ""
5923
5924 #. type: textblock
5925 #: ../fish/guestfish-actions.pod:836 ../src/guestfs-actions.pod:1264
5926 msgid ""
5927 "This command runs the C<df -h> command to report disk space used in human-"
5928 "readable format."
5929 msgstr ""
5930
5931 #. type: =head2
5932 #: ../fish/guestfish-actions.pod:843
5933 msgid "dmesg"
5934 msgstr ""
5935
5936 #. type: verbatim
5937 #: ../fish/guestfish-actions.pod:845
5938 #, no-wrap
5939 msgid ""
5940 " dmesg\n"
5941 "\n"
5942 msgstr ""
5943
5944 #. type: textblock
5945 #: ../fish/guestfish-actions.pod:847 ../src/guestfs-actions.pod:1281
5946 msgid ""
5947 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
5948 "This is sometimes useful for extended debugging of problems."
5949 msgstr ""
5950
5951 #. type: textblock
5952 #: ../fish/guestfish-actions.pod:851
5953 msgid ""
5954 "Another way to get the same information is to enable verbose messages with "
5955 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
5956 "before running the program."
5957 msgstr ""
5958
5959 #. type: =head2
5960 #: ../fish/guestfish-actions.pod:856
5961 msgid "download"
5962 msgstr ""
5963
5964 #. type: verbatim
5965 #: ../fish/guestfish-actions.pod:858
5966 #, no-wrap
5967 msgid ""
5968 " download remotefilename (filename|-)\n"
5969 "\n"
5970 msgstr ""
5971
5972 #. type: textblock
5973 #: ../fish/guestfish-actions.pod:860 ../fish/guestfish-actions.pod:873
5974 #: ../src/guestfs-actions.pod:1302 ../src/guestfs-actions.pod:1327
5975 msgid ""
5976 "Download file C<remotefilename> and save it as C<filename> on the local "
5977 "machine."
5978 msgstr ""
5979
5980 #. type: textblock
5981 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:4808
5982 #: ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:7237
5983 msgid "C<filename> can also be a named pipe."
5984 msgstr ""
5985
5986 #. type: textblock
5987 #: ../fish/guestfish-actions.pod:865
5988 msgid "See also L</upload>, L</cat>."
5989 msgstr ""
5990
5991 #. type: =head2
5992 #: ../fish/guestfish-actions.pod:869
5993 msgid "download-offset"
5994 msgstr ""
5995
5996 #. type: verbatim
5997 #: ../fish/guestfish-actions.pod:871
5998 #, no-wrap
5999 msgid ""
6000 " download-offset remotefilename (filename|-) offset size\n"
6001 "\n"
6002 msgstr ""
6003
6004 #. type: textblock
6005 #: ../fish/guestfish-actions.pod:876 ../src/guestfs-actions.pod:1330
6006 msgid ""
6007 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6008 "region must be within the file or device)."
6009 msgstr ""
6010
6011 #. type: textblock
6012 #: ../fish/guestfish-actions.pod:879
6013 msgid ""
6014 "Note that there is no limit on the amount of data that can be downloaded "
6015 "with this call, unlike with L</pread>, and this call always reads the full "
6016 "amount unless an error occurs."
6017 msgstr ""
6018
6019 #. type: textblock
6020 #: ../fish/guestfish-actions.pod:884
6021 msgid "See also L</download>, L</pread>."
6022 msgstr ""
6023
6024 #. type: =head2
6025 #: ../fish/guestfish-actions.pod:888
6026 msgid "drop-caches"
6027 msgstr ""
6028
6029 #. type: verbatim
6030 #: ../fish/guestfish-actions.pod:890
6031 #, no-wrap
6032 msgid ""
6033 " drop-caches whattodrop\n"
6034 "\n"
6035 msgstr ""
6036
6037 #. type: textblock
6038 #: ../fish/guestfish-actions.pod:892 ../src/guestfs-actions.pod:1355
6039 msgid ""
6040 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6041 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6042 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6043 msgstr ""
6044
6045 #. type: textblock
6046 #: ../fish/guestfish-actions.pod:897 ../src/guestfs-actions.pod:1360
6047 msgid "Setting C<whattodrop> to 3 should drop everything."
6048 msgstr ""
6049
6050 #. type: textblock
6051 #: ../fish/guestfish-actions.pod:899 ../src/guestfs-actions.pod:1362
6052 msgid ""
6053 "This automatically calls L<sync(2)> before the operation, so that the "
6054 "maximum guest memory is freed."
6055 msgstr ""
6056
6057 #. type: =head2
6058 #: ../fish/guestfish-actions.pod:902
6059 msgid "du"
6060 msgstr ""
6061
6062 #. type: verbatim
6063 #: ../fish/guestfish-actions.pod:904
6064 #, no-wrap
6065 msgid ""
6066 " du path\n"
6067 "\n"
6068 msgstr ""
6069
6070 #. type: textblock
6071 #: ../fish/guestfish-actions.pod:906 ../src/guestfs-actions.pod:1375
6072 msgid ""
6073 "This command runs the C<du -s> command to estimate file space usage for "
6074 "C<path>."
6075 msgstr ""
6076
6077 #. type: textblock
6078 #: ../fish/guestfish-actions.pod:909 ../src/guestfs-actions.pod:1378
6079 msgid ""
6080 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6081 "estimate includes the contents of the directory and all subdirectories "
6082 "(recursively)."
6083 msgstr ""
6084
6085 #. type: textblock
6086 #: ../fish/guestfish-actions.pod:913 ../src/guestfs-actions.pod:1382
6087 msgid ""
6088 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6089 msgstr ""
6090
6091 #. type: =head2
6092 #: ../fish/guestfish-actions.pod:916
6093 msgid "e2fsck-f"
6094 msgstr ""
6095
6096 #. type: verbatim
6097 #: ../fish/guestfish-actions.pod:918
6098 #, no-wrap
6099 msgid ""
6100 " e2fsck-f device\n"
6101 "\n"
6102 msgstr ""
6103
6104 #. type: textblock
6105 #: ../fish/guestfish-actions.pod:920 ../src/guestfs-actions.pod:1400
6106 msgid ""
6107 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6108 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
6109 "clean (I<-f>)."
6110 msgstr ""
6111
6112 #. type: textblock
6113 #: ../fish/guestfish-actions.pod:924
6114 msgid ""
6115 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
6116 "should use L</fsck>."
6117 msgstr ""
6118
6119 #. type: =head2
6120 #: ../fish/guestfish-actions.pod:927
6121 msgid "echo-daemon"
6122 msgstr ""
6123
6124 #. type: verbatim
6125 #: ../fish/guestfish-actions.pod:929
6126 #, no-wrap
6127 msgid ""
6128 " echo-daemon 'words ...'\n"
6129 "\n"
6130 msgstr ""
6131
6132 #. type: textblock
6133 #: ../fish/guestfish-actions.pod:931 ../src/guestfs-actions.pod:1417
6134 msgid ""
6135 "This command concatenates the list of C<words> passed with single spaces "
6136 "between them and returns the resulting string."
6137 msgstr ""
6138
6139 #. type: textblock
6140 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1420
6141 msgid "You can use this command to test the connection through to the daemon."
6142 msgstr ""
6143
6144 #. type: textblock
6145 #: ../fish/guestfish-actions.pod:936
6146 msgid "See also L</ping-daemon>."
6147 msgstr ""
6148
6149 #. type: =head2
6150 #: ../fish/guestfish-actions.pod:938
6151 msgid "egrep"
6152 msgstr ""
6153
6154 #. type: verbatim
6155 #: ../fish/guestfish-actions.pod:940
6156 #, no-wrap
6157 msgid ""
6158 " egrep regex path\n"
6159 "\n"
6160 msgstr ""
6161
6162 #. type: textblock
6163 #: ../fish/guestfish-actions.pod:942 ../src/guestfs-actions.pod:1436
6164 msgid ""
6165 "This calls the external C<egrep> program and returns the matching lines."
6166 msgstr ""
6167
6168 #. type: =head2
6169 #: ../fish/guestfish-actions.pod:948
6170 msgid "egrepi"
6171 msgstr ""
6172
6173 #. type: verbatim
6174 #: ../fish/guestfish-actions.pod:950
6175 #, no-wrap
6176 msgid ""
6177 " egrepi regex path\n"
6178 "\n"
6179 msgstr ""
6180
6181 #. type: textblock
6182 #: ../fish/guestfish-actions.pod:952 ../src/guestfs-actions.pod:1455
6183 msgid ""
6184 "This calls the external C<egrep -i> program and returns the matching lines."
6185 msgstr ""
6186
6187 #. type: =head2
6188 #: ../fish/guestfish-actions.pod:958
6189 msgid "equal"
6190 msgstr ""
6191
6192 #. type: verbatim
6193 #: ../fish/guestfish-actions.pod:960
6194 #, no-wrap
6195 msgid ""
6196 " equal file1 file2\n"
6197 "\n"
6198 msgstr ""
6199
6200 #. type: textblock
6201 #: ../fish/guestfish-actions.pod:962 ../src/guestfs-actions.pod:1474
6202 msgid ""
6203 "This compares the two files C<file1> and C<file2> and returns true if their "
6204 "content is exactly equal, or false otherwise."
6205 msgstr ""
6206
6207 #. type: textblock
6208 #: ../fish/guestfish-actions.pod:965 ../src/guestfs-actions.pod:1477
6209 msgid "The external L<cmp(1)> program is used for the comparison."
6210 msgstr ""
6211
6212 #. type: =head2
6213 #: ../fish/guestfish-actions.pod:967
6214 msgid "exists"
6215 msgstr ""
6216
6217 #. type: verbatim
6218 #: ../fish/guestfish-actions.pod:969
6219 #, no-wrap
6220 msgid ""
6221 " exists path\n"
6222 "\n"
6223 msgstr ""
6224
6225 #. type: textblock
6226 #: ../fish/guestfish-actions.pod:971 ../src/guestfs-actions.pod:1489
6227 msgid ""
6228 "This returns C<true> if and only if there is a file, directory (or anything) "
6229 "with the given C<path> name."
6230 msgstr ""
6231
6232 #. type: textblock
6233 #: ../fish/guestfish-actions.pod:974
6234 msgid "See also L</is-file>, L</is-dir>, L</stat>."
6235 msgstr ""
6236
6237 #. type: =head2
6238 #: ../fish/guestfish-actions.pod:976
6239 msgid "fallocate"
6240 msgstr ""
6241
6242 #. type: verbatim
6243 #: ../fish/guestfish-actions.pod:978
6244 #, no-wrap
6245 msgid ""
6246 " fallocate path len\n"
6247 "\n"
6248 msgstr ""
6249
6250 #. type: textblock
6251 #: ../fish/guestfish-actions.pod:980 ../fish/guestfish-actions.pod:999
6252 #: ../src/guestfs-actions.pod:1512 ../src/guestfs-actions.pod:1531
6253 msgid ""
6254 "This command preallocates a file (containing zero bytes) named C<path> of "
6255 "size C<len> bytes.  If the file exists already, it is overwritten."
6256 msgstr ""
6257
6258 #. type: textblock
6259 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1516
6260 msgid ""
6261 "Do not confuse this with the guestfish-specific C<alloc> command which "
6262 "allocates a file in the host and attaches it as a device."
6263 msgstr ""
6264
6265 #. type: textblock
6266 #: ../fish/guestfish-actions.pod:988
6267 msgid ""
6268 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
6269 "instead."
6270 msgstr ""
6271
6272 #. type: =head2
6273 #: ../fish/guestfish-actions.pod:995
6274 msgid "fallocate64"
6275 msgstr ""
6276
6277 #. type: verbatim
6278 #: ../fish/guestfish-actions.pod:997
6279 #, no-wrap
6280 msgid ""
6281 " fallocate64 path len\n"
6282 "\n"
6283 msgstr ""
6284
6285 #. type: textblock
6286 #: ../fish/guestfish-actions.pod:1003
6287 msgid ""
6288 "Note that this call allocates disk blocks for the file.  To create a sparse "
6289 "file use L</truncate-size> instead."
6290 msgstr ""
6291
6292 #. type: textblock
6293 #: ../fish/guestfish-actions.pod:1006
6294 msgid ""
6295 "The deprecated call L</fallocate> does the same, but owing to an oversight "
6296 "it only allowed 30 bit lengths to be specified, effectively limiting the "
6297 "maximum size of files created through that call to 1GB."
6298 msgstr ""
6299
6300 #. type: textblock
6301 #: ../fish/guestfish-actions.pod:1011 ../src/guestfs-actions.pod:1543
6302 msgid ""
6303 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6304 "commands which create a file in the host and attach it as a device."
6305 msgstr ""
6306
6307 #. type: =head2
6308 #: ../fish/guestfish-actions.pod:1015
6309 msgid "fgrep"
6310 msgstr ""
6311
6312 #. type: verbatim
6313 #: ../fish/guestfish-actions.pod:1017
6314 #, no-wrap
6315 msgid ""
6316 " fgrep pattern path\n"
6317 "\n"
6318 msgstr ""
6319
6320 #. type: textblock
6321 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1558
6322 msgid ""
6323 "This calls the external C<fgrep> program and returns the matching lines."
6324 msgstr ""
6325
6326 #. type: =head2
6327 #: ../fish/guestfish-actions.pod:1025
6328 msgid "fgrepi"
6329 msgstr ""
6330
6331 #. type: verbatim
6332 #: ../fish/guestfish-actions.pod:1027
6333 #, no-wrap
6334 msgid ""
6335 " fgrepi pattern path\n"
6336 "\n"
6337 msgstr ""
6338
6339 #. type: textblock
6340 #: ../fish/guestfish-actions.pod:1029 ../src/guestfs-actions.pod:1577
6341 msgid ""
6342 "This calls the external C<fgrep -i> program and returns the matching lines."
6343 msgstr ""
6344
6345 #. type: =head2
6346 #: ../fish/guestfish-actions.pod:1035
6347 msgid "file"
6348 msgstr ""
6349
6350 #. type: verbatim
6351 #: ../fish/guestfish-actions.pod:1037
6352 #, no-wrap
6353 msgid ""
6354 " file path\n"
6355 "\n"
6356 msgstr ""
6357
6358 #. type: textblock
6359 #: ../fish/guestfish-actions.pod:1039 ../src/guestfs-actions.pod:1595
6360 msgid ""
6361 "This call uses the standard L<file(1)> command to determine the type or "
6362 "contents of the file."
6363 msgstr ""
6364
6365 #. type: textblock
6366 #: ../fish/guestfish-actions.pod:1042 ../src/guestfs-actions.pod:1598
6367 msgid ""
6368 "This call will also transparently look inside various types of compressed "
6369 "file."
6370 msgstr ""
6371
6372 #. type: textblock
6373 #: ../fish/guestfish-actions.pod:1045 ../src/guestfs-actions.pod:1601
6374 msgid ""
6375 "The exact command which runs is C<file -zb path>.  Note in particular that "
6376 "the filename is not prepended to the output (the I<-b> option)."
6377 msgstr ""
6378
6379 #. type: textblock
6380 #: ../fish/guestfish-actions.pod:1049 ../src/guestfs-actions.pod:1605
6381 msgid ""
6382 "The output depends on the output of the underlying L<file(1)> command and it "
6383 "can change in future in ways beyond our control.  In other words, the output "
6384 "is not guaranteed by the ABI."
6385 msgstr ""
6386
6387 #. type: textblock
6388 #: ../fish/guestfish-actions.pod:1053
6389 msgid ""
6390 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
6391 "(etc), L</is-zero>."
6392 msgstr ""
6393
6394 #. type: =head2
6395 #: ../fish/guestfish-actions.pod:1056
6396 msgid "file-architecture"
6397 msgstr ""
6398
6399 #. type: verbatim
6400 #: ../fish/guestfish-actions.pod:1058
6401 #, no-wrap
6402 msgid ""
6403 " file-architecture filename\n"
6404 "\n"
6405 msgstr ""
6406
6407 #. type: textblock
6408 #: ../fish/guestfish-actions.pod:1060 ../src/guestfs-actions.pod:1623
6409 msgid ""
6410 "This detects the architecture of the binary C<filename>, and returns it if "
6411 "known."
6412 msgstr ""
6413
6414 #. type: textblock
6415 #: ../fish/guestfish-actions.pod:1063 ../src/guestfs-actions.pod:1626
6416 msgid "Currently defined architectures are:"
6417 msgstr ""
6418
6419 #. type: =item
6420 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1630
6421 msgid "\"i386\""
6422 msgstr ""
6423
6424 #. type: textblock
6425 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1632
6426 msgid ""
6427 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6428 "irrespective of the precise processor requirements of the binary."
6429 msgstr ""
6430
6431 #. type: =item
6432 #: ../fish/guestfish-actions.pod:1072 ../src/guestfs-actions.pod:1635
6433 msgid "\"x86_64\""
6434 msgstr ""
6435
6436 #. type: textblock
6437 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1637
6438 msgid "64 bit x86-64."
6439 msgstr ""
6440
6441 #. type: =item
6442 #: ../fish/guestfish-actions.pod:1076 ../src/guestfs-actions.pod:1639
6443 msgid "\"sparc\""
6444 msgstr ""
6445
6446 #. type: textblock
6447 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1641
6448 msgid "32 bit SPARC."
6449 msgstr ""
6450
6451 #. type: =item
6452 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1643
6453 msgid "\"sparc64\""
6454 msgstr ""
6455
6456 #. type: textblock
6457 #: ../fish/guestfish-actions.pod:1082 ../src/guestfs-actions.pod:1645
6458 msgid "64 bit SPARC V9 and above."
6459 msgstr ""
6460
6461 #. type: =item
6462 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1647
6463 msgid "\"ia64\""
6464 msgstr ""
6465
6466 #. type: textblock
6467 #: ../fish/guestfish-actions.pod:1086 ../src/guestfs-actions.pod:1649
6468 msgid "Intel Itanium."
6469 msgstr ""
6470
6471 #. type: =item
6472 #: ../fish/guestfish-actions.pod:1088 ../src/guestfs-actions.pod:1651
6473 msgid "\"ppc\""
6474 msgstr ""
6475
6476 #. type: textblock
6477 #: ../fish/guestfish-actions.pod:1090 ../src/guestfs-actions.pod:1653
6478 msgid "32 bit Power PC."
6479 msgstr ""
6480
6481 #. type: =item
6482 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1655
6483 msgid "\"ppc64\""
6484 msgstr ""
6485
6486 #. type: textblock
6487 #: ../fish/guestfish-actions.pod:1094 ../src/guestfs-actions.pod:1657
6488 msgid "64 bit Power PC."
6489 msgstr ""
6490
6491 #. type: textblock
6492 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1661
6493 msgid "Libguestfs may return other architecture strings in future."
6494 msgstr ""
6495
6496 #. type: textblock
6497 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1663
6498 msgid "The function works on at least the following types of files:"
6499 msgstr ""
6500
6501 #. type: textblock
6502 #: ../fish/guestfish-actions.pod:1106 ../src/guestfs-actions.pod:1669
6503 msgid "many types of Un*x and Linux binary"
6504 msgstr ""
6505
6506 #. type: textblock
6507 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1673
6508 msgid "many types of Un*x and Linux shared library"
6509 msgstr ""
6510
6511 #. type: textblock
6512 #: ../fish/guestfish-actions.pod:1114 ../src/guestfs-actions.pod:1677
6513 msgid "Windows Win32 and Win64 binaries"
6514 msgstr ""
6515
6516 #. type: textblock
6517 #: ../fish/guestfish-actions.pod:1118 ../src/guestfs-actions.pod:1681
6518 msgid "Windows Win32 and Win64 DLLs"
6519 msgstr ""
6520
6521 #. type: textblock
6522 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1683
6523 msgid "Win32 binaries and DLLs return C<i386>."
6524 msgstr ""
6525
6526 #. type: textblock
6527 #: ../fish/guestfish-actions.pod:1122 ../src/guestfs-actions.pod:1685
6528 msgid "Win64 binaries and DLLs return C<x86_64>."
6529 msgstr ""
6530
6531 #. type: textblock
6532 #: ../fish/guestfish-actions.pod:1126 ../src/guestfs-actions.pod:1689
6533 msgid "Linux kernel modules"
6534 msgstr ""
6535
6536 #. type: textblock
6537 #: ../fish/guestfish-actions.pod:1130 ../src/guestfs-actions.pod:1693
6538 msgid "Linux new-style initrd images"
6539 msgstr ""
6540
6541 #. type: textblock
6542 #: ../fish/guestfish-actions.pod:1134 ../src/guestfs-actions.pod:1697
6543 msgid "some non-x86 Linux vmlinuz kernels"
6544 msgstr ""
6545
6546 #. type: textblock
6547 #: ../fish/guestfish-actions.pod:1138 ../src/guestfs-actions.pod:1701
6548 msgid "What it can't do currently:"
6549 msgstr ""
6550
6551 #. type: textblock
6552 #: ../fish/guestfish-actions.pod:1144 ../src/guestfs-actions.pod:1707
6553 msgid "static libraries (libfoo.a)"
6554 msgstr ""
6555
6556 #. type: textblock
6557 #: ../fish/guestfish-actions.pod:1148 ../src/guestfs-actions.pod:1711
6558 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6559 msgstr ""
6560
6561 #. type: textblock
6562 #: ../fish/guestfish-actions.pod:1152 ../src/guestfs-actions.pod:1715
6563 msgid "x86 Linux vmlinuz kernels"
6564 msgstr ""
6565
6566 #. type: textblock
6567 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1717
6568 msgid ""
6569 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6570 "compressed code, and are horribly hard to unpack.  If you want to find the "
6571 "architecture of a kernel, use the architecture of the associated initrd or "
6572 "kernel module(s) instead."
6573 msgstr ""
6574
6575 #. type: =head2
6576 #: ../fish/guestfish-actions.pod:1161
6577 msgid "filesize"
6578 msgstr ""
6579
6580 #. type: verbatim
6581 #: ../fish/guestfish-actions.pod:1163
6582 #, no-wrap
6583 msgid ""
6584 " filesize file\n"
6585 "\n"
6586 msgstr ""
6587
6588 #. type: textblock
6589 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1735
6590 msgid "This command returns the size of C<file> in bytes."
6591 msgstr ""
6592
6593 #. type: textblock
6594 #: ../fish/guestfish-actions.pod:1167
6595 msgid ""
6596 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
6597 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
6598 msgstr ""
6599
6600 #. type: =head2
6601 #: ../fish/guestfish-actions.pod:1171
6602 msgid "fill"
6603 msgstr ""
6604
6605 #. type: verbatim
6606 #: ../fish/guestfish-actions.pod:1173
6607 #, no-wrap
6608 msgid ""
6609 " fill c len path\n"
6610 "\n"
6611 msgstr ""
6612
6613 #. type: textblock
6614 #: ../fish/guestfish-actions.pod:1175 ../src/guestfs-actions.pod:1753
6615 msgid ""
6616 "This command creates a new file called C<path>.  The initial content of the "
6617 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
6618 "[0..255]>."
6619 msgstr ""
6620
6621 #. type: textblock
6622 #: ../fish/guestfish-actions.pod:1179
6623 msgid ""
6624 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6625 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
6626 "L</fill-pattern>."
6627 msgstr ""
6628
6629 #. type: =head2
6630 #: ../fish/guestfish-actions.pod:1184
6631 msgid "fill-pattern"
6632 msgstr ""
6633
6634 #. type: verbatim
6635 #: ../fish/guestfish-actions.pod:1186
6636 #, no-wrap
6637 msgid ""
6638 " fill-pattern pattern len path\n"
6639 "\n"
6640 msgstr ""
6641
6642 #. type: textblock
6643 #: ../fish/guestfish-actions.pod:1188
6644 msgid ""
6645 "This function is like L</fill> except that it creates a new file of length "
6646 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
6647 "is truncated if necessary to ensure the length of the file is exactly C<len> "
6648 "bytes."
6649 msgstr ""
6650
6651 #. type: =head2
6652 #: ../fish/guestfish-actions.pod:1193
6653 msgid "find"
6654 msgstr ""
6655
6656 #. type: verbatim
6657 #: ../fish/guestfish-actions.pod:1195
6658 #, no-wrap
6659 msgid ""
6660 " find directory\n"
6661 "\n"
6662 msgstr ""
6663
6664 #. type: textblock
6665 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:1799
6666 msgid ""
6667 "This command lists out all files and directories, recursively, starting at "
6668 "C<directory>.  It is essentially equivalent to running the shell command "
6669 "C<find directory -print> but some post-processing happens on the output, "
6670 "described below."
6671 msgstr ""
6672
6673 #. type: textblock
6674 #: ../fish/guestfish-actions.pod:1202 ../src/guestfs-actions.pod:1804
6675 msgid ""
6676 "This returns a list of strings I<without any prefix>.  Thus if the directory "
6677 "structure was:"
6678 msgstr ""
6679
6680 #. type: verbatim
6681 #: ../fish/guestfish-actions.pod:1205 ../src/guestfs-actions.pod:1807
6682 #, no-wrap
6683 msgid ""
6684 " /tmp/a\n"
6685 " /tmp/b\n"
6686 " /tmp/c/d\n"
6687 "\n"
6688 msgstr ""
6689
6690 #. type: textblock
6691 #: ../fish/guestfish-actions.pod:1209
6692 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
6693 msgstr ""
6694
6695 #. type: verbatim
6696 #: ../fish/guestfish-actions.pod:1212 ../src/guestfs-actions.pod:1814
6697 #, no-wrap
6698 msgid ""
6699 " a\n"
6700 " b\n"
6701 " c\n"
6702 " c/d\n"
6703 "\n"
6704 msgstr ""
6705
6706 #. type: textblock
6707 #: ../fish/guestfish-actions.pod:1217 ../src/guestfs-actions.pod:1819
6708 msgid "If C<directory> is not a directory, then this command returns an error."
6709 msgstr ""
6710
6711 #. type: textblock
6712 #: ../fish/guestfish-actions.pod:1220 ../src/guestfs-actions.pod:1822
6713 msgid "The returned list is sorted."
6714 msgstr ""
6715
6716 #. type: textblock
6717 #: ../fish/guestfish-actions.pod:1222
6718 msgid "See also L</find0>."
6719 msgstr ""
6720
6721 #. type: =head2
6722 #: ../fish/guestfish-actions.pod:1227
6723 msgid "find0"
6724 msgstr ""
6725
6726 #. type: verbatim
6727 #: ../fish/guestfish-actions.pod:1229
6728 #, no-wrap
6729 msgid ""
6730 " find0 directory (files|-)\n"
6731 "\n"
6732 msgstr ""
6733
6734 #. type: textblock
6735 #: ../fish/guestfish-actions.pod:1231 ../src/guestfs-actions.pod:1842
6736 msgid ""
6737 "This command lists out all files and directories, recursively, starting at "
6738 "C<directory>, placing the resulting list in the external file called "
6739 "C<files>."
6740 msgstr ""
6741
6742 #. type: textblock
6743 #: ../fish/guestfish-actions.pod:1235
6744 msgid ""
6745 "This command works the same way as L</find> with the following exceptions:"
6746 msgstr ""
6747
6748 #. type: textblock
6749 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:1853
6750 msgid "The resulting list is written to an external file."
6751 msgstr ""
6752
6753 #. type: textblock
6754 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:1857
6755 msgid ""
6756 "Items (filenames) in the result are separated by C<\\0> characters.  See "
6757 "L<find(1)> option I<-print0>."
6758 msgstr ""
6759
6760 #. type: textblock
6761 #: ../fish/guestfish-actions.pod:1251 ../src/guestfs-actions.pod:1862
6762 msgid "This command is not limited in the number of names that it can return."
6763 msgstr ""
6764
6765 #. type: textblock
6766 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:1867
6767 msgid "The result list is not sorted."
6768 msgstr ""
6769
6770 #. type: =head2
6771 #: ../fish/guestfish-actions.pod:1262
6772 msgid "findfs-label"
6773 msgstr ""
6774
6775 #. type: verbatim
6776 #: ../fish/guestfish-actions.pod:1264
6777 #, no-wrap
6778 msgid ""
6779 " findfs-label label\n"
6780 "\n"
6781 msgstr ""
6782
6783 #. type: textblock
6784 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1881
6785 msgid ""
6786 "This command searches the filesystems and returns the one which has the "
6787 "given label.  An error is returned if no such filesystem can be found."
6788 msgstr ""
6789
6790 #. type: textblock
6791 #: ../fish/guestfish-actions.pod:1270
6792 msgid "To find the label of a filesystem, use L</vfs-label>."
6793 msgstr ""
6794
6795 #. type: =head2
6796 #: ../fish/guestfish-actions.pod:1272
6797 msgid "findfs-uuid"
6798 msgstr ""
6799
6800 #. type: verbatim
6801 #: ../fish/guestfish-actions.pod:1274
6802 #, no-wrap
6803 msgid ""
6804 " findfs-uuid uuid\n"
6805 "\n"
6806 msgstr ""
6807
6808 #. type: textblock
6809 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:1898
6810 msgid ""
6811 "This command searches the filesystems and returns the one which has the "
6812 "given UUID.  An error is returned if no such filesystem can be found."
6813 msgstr ""
6814
6815 #. type: textblock
6816 #: ../fish/guestfish-actions.pod:1280
6817 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
6818 msgstr ""
6819
6820 #. type: =head2
6821 #: ../fish/guestfish-actions.pod:1282
6822 msgid "fsck"
6823 msgstr ""
6824
6825 #. type: verbatim
6826 #: ../fish/guestfish-actions.pod:1284
6827 #, no-wrap
6828 msgid ""
6829 " fsck fstype device\n"
6830 "\n"
6831 msgstr ""
6832
6833 #. type: textblock
6834 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1916
6835 msgid ""
6836 "This runs the filesystem checker (fsck) on C<device> which should have "
6837 "filesystem type C<fstype>."
6838 msgstr ""
6839
6840 #. type: textblock
6841 #: ../fish/guestfish-actions.pod:1289 ../src/guestfs-actions.pod:1919
6842 msgid ""
6843 "The returned integer is the status.  See L<fsck(8)> for the list of status "
6844 "codes from C<fsck>."
6845 msgstr ""
6846
6847 #. type: textblock
6848 #: ../fish/guestfish-actions.pod:1298 ../src/guestfs-actions.pod:1928
6849 msgid "Multiple status codes can be summed together."
6850 msgstr ""
6851
6852 #. type: textblock
6853 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:1932
6854 msgid ""
6855 "A non-zero return code can mean \"success\", for example if errors have been "
6856 "corrected on the filesystem."
6857 msgstr ""
6858
6859 #. type: textblock
6860 #: ../fish/guestfish-actions.pod:1307 ../src/guestfs-actions.pod:1937
6861 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
6862 msgstr ""
6863
6864 #. type: textblock
6865 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:1942
6866 msgid ""
6867 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
6868 msgstr ""
6869
6870 #. type: =head2
6871 #: ../fish/guestfish-actions.pod:1314
6872 msgid "get-append"
6873 msgstr ""
6874
6875 #. type: verbatim
6876 #: ../fish/guestfish-actions.pod:1316
6877 #, no-wrap
6878 msgid ""
6879 " get-append\n"
6880 "\n"
6881 msgstr ""
6882
6883 #. type: textblock
6884 #: ../fish/guestfish-actions.pod:1318 ../src/guestfs-actions.pod:1953
6885 msgid ""
6886 "Return the additional kernel options which are added to the guest kernel "
6887 "command line."
6888 msgstr ""
6889
6890 #. type: textblock
6891 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:1956
6892 msgid "If C<NULL> then no options are added."
6893 msgstr ""
6894
6895 #. type: =head2
6896 #: ../fish/guestfish-actions.pod:1323
6897 msgid "get-attach-method"
6898 msgstr ""
6899
6900 #. type: verbatim
6901 #: ../fish/guestfish-actions.pod:1325
6902 #, no-wrap
6903 msgid ""
6904 " get-attach-method\n"
6905 "\n"
6906 msgstr ""
6907
6908 #. type: textblock
6909 #: ../fish/guestfish-actions.pod:1327
6910 msgid "Return the current attach method.  See L</set-attach-method>."
6911 msgstr ""
6912
6913 #. type: =head2
6914 #: ../fish/guestfish-actions.pod:1329
6915 msgid "get-autosync"
6916 msgstr ""
6917
6918 #. type: verbatim
6919 #: ../fish/guestfish-actions.pod:1331
6920 #, no-wrap
6921 msgid ""
6922 " get-autosync\n"
6923 "\n"
6924 msgstr ""
6925
6926 #. type: textblock
6927 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:1981
6928 msgid "Get the autosync flag."
6929 msgstr ""
6930
6931 #. type: =head2
6932 #: ../fish/guestfish-actions.pod:1335
6933 msgid "get-direct"
6934 msgstr ""
6935
6936 #. type: verbatim
6937 #: ../fish/guestfish-actions.pod:1337
6938 #, no-wrap
6939 msgid ""
6940 " get-direct\n"
6941 "\n"
6942 msgstr ""
6943
6944 #. type: textblock
6945 #: ../fish/guestfish-actions.pod:1339 ../src/guestfs-actions.pod:1992
6946 msgid "Return the direct appliance mode flag."
6947 msgstr ""
6948
6949 #. type: =head2
6950 #: ../fish/guestfish-actions.pod:1341
6951 msgid "get-e2label"
6952 msgstr ""
6953
6954 #. type: verbatim
6955 #: ../fish/guestfish-actions.pod:1343
6956 #, no-wrap
6957 msgid ""
6958 " get-e2label device\n"
6959 "\n"
6960 msgstr ""
6961
6962 #. type: textblock
6963 #: ../fish/guestfish-actions.pod:1345 ../src/guestfs-actions.pod:2011
6964 msgid ""
6965 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
6966 msgstr ""
6967
6968 #. type: textblock
6969 #: ../fish/guestfish-actions.pod:1348
6970 msgid ""
6971 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
6972 "instead."
6973 msgstr ""
6974
6975 #. type: =head2
6976 #: ../fish/guestfish-actions.pod:1355
6977 msgid "get-e2uuid"
6978 msgstr ""
6979
6980 #. type: verbatim
6981 #: ../fish/guestfish-actions.pod:1357
6982 #, no-wrap
6983 msgid ""
6984 " get-e2uuid device\n"
6985 "\n"
6986 msgstr ""
6987
6988 #. type: textblock
6989 #: ../fish/guestfish-actions.pod:1359 ../src/guestfs-actions.pod:2032
6990 msgid ""
6991 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
6992 msgstr ""
6993
6994 #. type: textblock
6995 #: ../fish/guestfish-actions.pod:1362
6996 msgid ""
6997 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
6998 "instead."
6999 msgstr ""
7000
7001 #. type: =head2
7002 #: ../fish/guestfish-actions.pod:1369
7003 msgid "get-memsize"
7004 msgstr ""
7005
7006 #. type: verbatim
7007 #: ../fish/guestfish-actions.pod:1371
7008 #, no-wrap
7009 msgid ""
7010 " get-memsize\n"
7011 "\n"
7012 msgstr ""
7013
7014 #. type: textblock
7015 #: ../fish/guestfish-actions.pod:1373 ../src/guestfs-actions.pod:2045
7016 msgid ""
7017 "This gets the memory size in megabytes allocated to the qemu subprocess."
7018 msgstr ""
7019
7020 #. type: textblock
7021 #: ../fish/guestfish-actions.pod:1376
7022 msgid ""
7023 "If L</set-memsize> was not called on this handle, and if "
7024 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7025 "value for memsize."
7026 msgstr ""
7027
7028 #. type: textblock
7029 #: ../fish/guestfish-actions.pod:1380 ../fish/guestfish-actions.pod:1437
7030 #: ../fish/guestfish-actions.pod:4168 ../fish/guestfish-actions.pod:4270
7031 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2144
7032 #: ../src/guestfs-actions.pod:6298 ../src/guestfs-actions.pod:6424
7033 msgid ""
7034 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7035 msgstr ""
7036
7037 #. type: =head2
7038 #: ../fish/guestfish-actions.pod:1383
7039 msgid "get-network"
7040 msgstr ""
7041
7042 #. type: verbatim
7043 #: ../fish/guestfish-actions.pod:1385
7044 #, no-wrap
7045 msgid ""
7046 " get-network\n"
7047 "\n"
7048 msgstr ""
7049
7050 #. type: textblock
7051 #: ../fish/guestfish-actions.pod:1387 ../src/guestfs-actions.pod:2064
7052 msgid "This returns the enable network flag."
7053 msgstr ""
7054
7055 #. type: =head2
7056 #: ../fish/guestfish-actions.pod:1389
7057 msgid "get-path"
7058 msgstr ""
7059
7060 #. type: verbatim
7061 #: ../fish/guestfish-actions.pod:1391
7062 #, no-wrap
7063 msgid ""
7064 " get-path\n"
7065 "\n"
7066 msgstr ""
7067
7068 #. type: textblock
7069 #: ../fish/guestfish-actions.pod:1393 ../src/guestfs-actions.pod:2075
7070 msgid "Return the current search path."
7071 msgstr ""
7072
7073 #. type: textblock
7074 #: ../fish/guestfish-actions.pod:1395 ../src/guestfs-actions.pod:2077
7075 msgid ""
7076 "This is always non-NULL.  If it wasn't set already, then this will return "
7077 "the default path."
7078 msgstr ""
7079
7080 #. type: =head2
7081 #: ../fish/guestfish-actions.pod:1398
7082 msgid "get-pgroup"
7083 msgstr ""
7084
7085 #. type: verbatim
7086 #: ../fish/guestfish-actions.pod:1400
7087 #, no-wrap
7088 msgid ""
7089 " get-pgroup\n"
7090 "\n"
7091 msgstr ""
7092
7093 #. type: textblock
7094 #: ../fish/guestfish-actions.pod:1402 ../src/guestfs-actions.pod:2090
7095 msgid "This returns the process group flag."
7096 msgstr ""
7097
7098 #. type: =head2
7099 #: ../fish/guestfish-actions.pod:1404
7100 msgid "get-pid"
7101 msgstr ""
7102
7103 #. type: =head2
7104 #: ../fish/guestfish-actions.pod:1406
7105 msgid "pid"
7106 msgstr ""
7107
7108 #. type: verbatim
7109 #: ../fish/guestfish-actions.pod:1408
7110 #, no-wrap
7111 msgid ""
7112 " get-pid\n"
7113 "\n"
7114 msgstr ""
7115
7116 #. type: textblock
7117 #: ../fish/guestfish-actions.pod:1410 ../src/guestfs-actions.pod:2101
7118 msgid ""
7119 "Return the process ID of the qemu subprocess.  If there is no qemu "
7120 "subprocess, then this will return an error."
7121 msgstr ""
7122
7123 #. type: textblock
7124 #: ../fish/guestfish-actions.pod:1413 ../src/guestfs-actions.pod:2104
7125 msgid "This is an internal call used for debugging and testing."
7126 msgstr ""
7127
7128 #. type: =head2
7129 #: ../fish/guestfish-actions.pod:1415
7130 msgid "get-qemu"
7131 msgstr ""
7132
7133 #. type: verbatim
7134 #: ../fish/guestfish-actions.pod:1417
7135 #, no-wrap
7136 msgid ""
7137 " get-qemu\n"
7138 "\n"
7139 msgstr ""
7140
7141 #. type: textblock
7142 #: ../fish/guestfish-actions.pod:1419 ../src/guestfs-actions.pod:2115
7143 msgid "Return the current qemu binary."
7144 msgstr ""
7145
7146 #. type: textblock
7147 #: ../fish/guestfish-actions.pod:1421 ../src/guestfs-actions.pod:2117
7148 msgid ""
7149 "This is always non-NULL.  If it wasn't set already, then this will return "
7150 "the default qemu binary name."
7151 msgstr ""
7152
7153 #. type: =head2
7154 #: ../fish/guestfish-actions.pod:1424
7155 msgid "get-recovery-proc"
7156 msgstr ""
7157
7158 #. type: verbatim
7159 #: ../fish/guestfish-actions.pod:1426
7160 #, no-wrap
7161 msgid ""
7162 " get-recovery-proc\n"
7163 "\n"
7164 msgstr ""
7165
7166 #. type: textblock
7167 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2130
7168 msgid "Return the recovery process enabled flag."
7169 msgstr ""
7170
7171 #. type: =head2
7172 #: ../fish/guestfish-actions.pod:1430
7173 msgid "get-selinux"
7174 msgstr ""
7175
7176 #. type: verbatim
7177 #: ../fish/guestfish-actions.pod:1432
7178 #, no-wrap
7179 msgid ""
7180 " get-selinux\n"
7181 "\n"
7182 msgstr ""
7183
7184 #. type: textblock
7185 #: ../fish/guestfish-actions.pod:1434
7186 msgid ""
7187 "This returns the current setting of the selinux flag which is passed to the "
7188 "appliance at boot time.  See L</set-selinux>."
7189 msgstr ""
7190
7191 #. type: =head2
7192 #: ../fish/guestfish-actions.pod:1440
7193 msgid "get-state"
7194 msgstr ""
7195
7196 #. type: verbatim
7197 #: ../fish/guestfish-actions.pod:1442
7198 #, no-wrap
7199 msgid ""
7200 " get-state\n"
7201 "\n"
7202 msgstr ""
7203
7204 #. type: textblock
7205 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2156
7206 msgid ""
7207 "This returns the current state as an opaque integer.  This is only useful "
7208 "for printing debug and internal error messages."
7209 msgstr ""
7210
7211 #. type: textblock
7212 #: ../fish/guestfish-actions.pod:1447 ../fish/guestfish-actions.pod:2367
7213 #: ../fish/guestfish-actions.pod:2385 ../fish/guestfish-actions.pod:2423
7214 #: ../fish/guestfish-actions.pod:2439 ../src/guestfs-actions.pod:2159
7215 #: ../src/guestfs-actions.pod:3439 ../src/guestfs-actions.pod:3468
7216 #: ../src/guestfs-actions.pod:3529 ../src/guestfs-actions.pod:3556
7217 msgid "For more information on states, see L<guestfs(3)>."
7218 msgstr ""
7219
7220 #. type: =head2
7221 #: ../fish/guestfish-actions.pod:1449
7222 msgid "get-trace"
7223 msgstr ""
7224
7225 #. type: verbatim
7226 #: ../fish/guestfish-actions.pod:1451
7227 #, no-wrap
7228 msgid ""
7229 " get-trace\n"
7230 "\n"
7231 msgstr ""
7232
7233 #. type: textblock
7234 #: ../fish/guestfish-actions.pod:1453 ../src/guestfs-actions.pod:2170
7235 msgid "Return the command trace flag."
7236 msgstr ""
7237
7238 #. type: =head2
7239 #: ../fish/guestfish-actions.pod:1455
7240 msgid "get-umask"
7241 msgstr ""
7242
7243 #. type: verbatim
7244 #: ../fish/guestfish-actions.pod:1457
7245 #, no-wrap
7246 msgid ""
7247 " get-umask\n"
7248 "\n"
7249 msgstr ""
7250
7251 #. type: textblock
7252 #: ../fish/guestfish-actions.pod:1459
7253 msgid ""
7254 "Return the current umask.  By default the umask is C<022> unless it has been "
7255 "set by calling L</umask>."
7256 msgstr ""
7257
7258 #. type: =head2
7259 #: ../fish/guestfish-actions.pod:1462
7260 msgid "get-verbose"
7261 msgstr ""
7262
7263 #. type: verbatim
7264 #: ../fish/guestfish-actions.pod:1464
7265 #, no-wrap
7266 msgid ""
7267 " get-verbose\n"
7268 "\n"
7269 msgstr ""
7270
7271 #. type: textblock
7272 #: ../fish/guestfish-actions.pod:1466 ../src/guestfs-actions.pod:2193
7273 msgid "This returns the verbose messages flag."
7274 msgstr ""
7275
7276 #. type: =head2
7277 #: ../fish/guestfish-actions.pod:1468
7278 msgid "getcon"
7279 msgstr ""
7280
7281 #. type: verbatim
7282 #: ../fish/guestfish-actions.pod:1470
7283 #, no-wrap
7284 msgid ""
7285 " getcon\n"
7286 "\n"
7287 msgstr ""
7288
7289 #. type: textblock
7290 #: ../fish/guestfish-actions.pod:1472 ../src/guestfs-actions.pod:2204
7291 msgid "This gets the SELinux security context of the daemon."
7292 msgstr ""
7293
7294 #. type: textblock
7295 #: ../fish/guestfish-actions.pod:1474
7296 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
7297 msgstr ""
7298
7299 #. type: =head2
7300 #: ../fish/guestfish-actions.pod:1477
7301 msgid "getxattr"
7302 msgstr ""
7303
7304 #. type: verbatim
7305 #: ../fish/guestfish-actions.pod:1479
7306 #, no-wrap
7307 msgid ""
7308 " getxattr path name\n"
7309 "\n"
7310 msgstr ""
7311
7312 #. type: textblock
7313 #: ../fish/guestfish-actions.pod:1481
7314 msgid ""
7315 "Get a single extended attribute from file C<path> named C<name>.  This call "
7316 "follows symlinks.  If you want to lookup an extended attribute for the "
7317 "symlink itself, use L</lgetxattr>."
7318 msgstr ""
7319
7320 #. type: textblock
7321 #: ../fish/guestfish-actions.pod:1485 ../fish/guestfish-actions.pod:2512
7322 msgid ""
7323 "Normally it is better to get all extended attributes from a file in one go "
7324 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
7325 "buggy and do not provide a way to list out attributes.  For these "
7326 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
7327 "attributes you want in advance and call this function."
7328 msgstr ""
7329
7330 #. type: textblock
7331 #: ../fish/guestfish-actions.pod:1492 ../fish/guestfish-actions.pod:2519
7332 #: ../src/guestfs-actions.pod:2233 ../src/guestfs-actions.pod:3689
7333 msgid ""
7334 "Extended attribute values are blobs of binary data.  If there is no extended "
7335 "attribute named C<name>, this returns an error."
7336 msgstr ""
7337
7338 #. type: textblock
7339 #: ../fish/guestfish-actions.pod:1495
7340 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7341 msgstr ""
7342
7343 #. type: =head2
7344 #: ../fish/guestfish-actions.pod:1497
7345 msgid "getxattrs"
7346 msgstr ""
7347
7348 #. type: verbatim
7349 #: ../fish/guestfish-actions.pod:1499
7350 #, no-wrap
7351 msgid ""
7352 " getxattrs path\n"
7353 "\n"
7354 msgstr ""
7355
7356 #. type: textblock
7357 #: ../fish/guestfish-actions.pod:1501 ../src/guestfs-actions.pod:2250
7358 msgid ""
7359 "This call lists the extended attributes of the file or directory C<path>."
7360 msgstr ""
7361
7362 #. type: textblock
7363 #: ../fish/guestfish-actions.pod:1504 ../src/guestfs-actions.pod:2253
7364 msgid ""
7365 "At the system call level, this is a combination of the L<listxattr(2)> and "
7366 "L<getxattr(2)> calls."
7367 msgstr ""
7368
7369 #. type: textblock
7370 #: ../fish/guestfish-actions.pod:1507
7371 msgid "See also: L</lgetxattrs>, L<attr(5)>."
7372 msgstr ""
7373
7374 #. type: =head2
7375 #: ../fish/guestfish-actions.pod:1509
7376 msgid "glob-expand"
7377 msgstr ""
7378
7379 #. type: verbatim
7380 #: ../fish/guestfish-actions.pod:1511
7381 #, no-wrap
7382 msgid ""
7383 " glob-expand pattern\n"
7384 "\n"
7385 msgstr ""
7386
7387 #. type: textblock
7388 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2270
7389 msgid ""
7390 "This command searches for all the pathnames matching C<pattern> according to "
7391 "the wildcard expansion rules used by the shell."
7392 msgstr ""
7393
7394 #. type: textblock
7395 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2274
7396 msgid ""
7397 "If no paths match, then this returns an empty list (note: not an error)."
7398 msgstr ""
7399
7400 #. type: textblock
7401 #: ../fish/guestfish-actions.pod:1520 ../src/guestfs-actions.pod:2277
7402 msgid ""
7403 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
7404 "GLOB_BRACE>.  See that manual page for more details."
7405 msgstr ""
7406
7407 #. type: =head2
7408 #: ../fish/guestfish-actions.pod:1524
7409 msgid "grep"
7410 msgstr ""
7411
7412 #. type: verbatim
7413 #: ../fish/guestfish-actions.pod:1526
7414 #, no-wrap
7415 msgid ""
7416 " grep regex path\n"
7417 "\n"
7418 msgstr ""
7419
7420 #. type: textblock
7421 #: ../fish/guestfish-actions.pod:1528 ../src/guestfs-actions.pod:2294
7422 msgid "This calls the external C<grep> program and returns the matching lines."
7423 msgstr ""
7424
7425 #. type: =head2
7426 #: ../fish/guestfish-actions.pod:1534
7427 msgid "grepi"
7428 msgstr ""
7429
7430 #. type: verbatim
7431 #: ../fish/guestfish-actions.pod:1536
7432 #, no-wrap
7433 msgid ""
7434 " grepi regex path\n"
7435 "\n"
7436 msgstr ""
7437
7438 #. type: textblock
7439 #: ../fish/guestfish-actions.pod:1538 ../src/guestfs-actions.pod:2313
7440 msgid ""
7441 "This calls the external C<grep -i> program and returns the matching lines."
7442 msgstr ""
7443
7444 #. type: =head2
7445 #: ../fish/guestfish-actions.pod:1544
7446 msgid "grub-install"
7447 msgstr ""
7448
7449 #. type: verbatim
7450 #: ../fish/guestfish-actions.pod:1546
7451 #, no-wrap
7452 msgid ""
7453 " grub-install root device\n"
7454 "\n"
7455 msgstr ""
7456
7457 #. type: textblock
7458 #: ../fish/guestfish-actions.pod:1548 ../src/guestfs-actions.pod:2332
7459 msgid ""
7460 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7461 "the root directory being C<root>."
7462 msgstr ""
7463
7464 #. type: textblock
7465 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2335
7466 msgid ""
7467 "Note: If grub-install reports the error \"No suitable drive was found in the "
7468 "generated device map.\" it may be that you need to create a C</boot/grub/"
7469 "device.map> file first that contains the mapping between grub device names "
7470 "and Linux device names.  It is usually sufficient to create a file "
7471 "containing:"
7472 msgstr ""
7473
7474 #. type: verbatim
7475 #: ../fish/guestfish-actions.pod:1558 ../src/guestfs-actions.pod:2342
7476 #, no-wrap
7477 msgid ""
7478 " (hd0) /dev/vda\n"
7479 "\n"
7480 msgstr ""
7481
7482 #. type: textblock
7483 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2344
7484 msgid "replacing C</dev/vda> with the name of the installation device."
7485 msgstr ""
7486
7487 #. type: =head2
7488 #: ../fish/guestfish-actions.pod:1562
7489 msgid "head"
7490 msgstr ""
7491
7492 #. type: verbatim
7493 #: ../fish/guestfish-actions.pod:1564
7494 #, no-wrap
7495 msgid ""
7496 " head path\n"
7497 "\n"
7498 msgstr ""
7499
7500 #. type: textblock
7501 #: ../fish/guestfish-actions.pod:1566 ../src/guestfs-actions.pod:2356
7502 msgid ""
7503 "This command returns up to the first 10 lines of a file as a list of strings."
7504 msgstr ""
7505
7506 #. type: =head2
7507 #: ../fish/guestfish-actions.pod:1572
7508 msgid "head-n"
7509 msgstr ""
7510
7511 #. type: verbatim
7512 #: ../fish/guestfish-actions.pod:1574
7513 #, no-wrap
7514 msgid ""
7515 " head-n nrlines path\n"
7516 "\n"
7517 msgstr ""
7518
7519 #. type: textblock
7520 #: ../fish/guestfish-actions.pod:1576 ../src/guestfs-actions.pod:2375
7521 msgid ""
7522 "If the parameter C<nrlines> is a positive number, this returns the first "
7523 "C<nrlines> lines of the file C<path>."
7524 msgstr ""
7525
7526 #. type: textblock
7527 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2378
7528 msgid ""
7529 "If the parameter C<nrlines> is a negative number, this returns lines from "
7530 "the file C<path>, excluding the last C<nrlines> lines."
7531 msgstr ""
7532
7533 #. type: textblock
7534 #: ../fish/guestfish-actions.pod:1582 ../fish/guestfish-actions.pod:4648
7535 #: ../src/guestfs-actions.pod:2381 ../src/guestfs-actions.pod:6996
7536 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7537 msgstr ""
7538
7539 #. type: =head2
7540 #: ../fish/guestfish-actions.pod:1587
7541 msgid "hexdump"
7542 msgstr ""
7543
7544 #. type: verbatim
7545 #: ../fish/guestfish-actions.pod:1589
7546 #, no-wrap
7547 msgid ""
7548 " hexdump path\n"
7549 "\n"
7550 msgstr ""
7551
7552 #. type: textblock
7553 #: ../fish/guestfish-actions.pod:1591 ../src/guestfs-actions.pod:2398
7554 msgid ""
7555 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
7556 "readable, canonical hex dump of the file."
7557 msgstr ""
7558
7559 #. type: =head2
7560 #: ../fish/guestfish-actions.pod:1597
7561 msgid "initrd-cat"
7562 msgstr ""
7563
7564 #. type: verbatim
7565 #: ../fish/guestfish-actions.pod:1599
7566 #, no-wrap
7567 msgid ""
7568 " initrd-cat initrdpath filename\n"
7569 "\n"
7570 msgstr ""
7571
7572 #. type: textblock
7573 #: ../fish/guestfish-actions.pod:1601 ../src/guestfs-actions.pod:2417
7574 msgid ""
7575 "This command unpacks the file C<filename> from the initrd file called "
7576 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7577 "character."
7578 msgstr ""
7579
7580 #. type: textblock
7581 #: ../fish/guestfish-actions.pod:1605 ../src/guestfs-actions.pod:2421
7582 msgid ""
7583 "For example, in guestfish you could use the following command to examine the "
7584 "boot script (usually called C</init>)  contained in a Linux initrd or "
7585 "initramfs image:"
7586 msgstr ""
7587
7588 #. type: verbatim
7589 #: ../fish/guestfish-actions.pod:1609 ../src/guestfs-actions.pod:2425
7590 #, no-wrap
7591 msgid ""
7592 " initrd-cat /boot/initrd-<version>.img init\n"
7593 "\n"
7594 msgstr ""
7595
7596 #. type: textblock
7597 #: ../fish/guestfish-actions.pod:1611
7598 msgid "See also L</initrd-list>."
7599 msgstr ""
7600
7601 #. type: =head2
7602 #: ../fish/guestfish-actions.pod:1616
7603 msgid "initrd-list"
7604 msgstr ""
7605
7606 #. type: verbatim
7607 #: ../fish/guestfish-actions.pod:1618
7608 #, no-wrap
7609 msgid ""
7610 " initrd-list path\n"
7611 "\n"
7612 msgstr ""
7613
7614 #. type: textblock
7615 #: ../fish/guestfish-actions.pod:1620 ../src/guestfs-actions.pod:2444
7616 msgid "This command lists out files contained in an initrd."
7617 msgstr ""
7618
7619 #. type: textblock
7620 #: ../fish/guestfish-actions.pod:1622 ../src/guestfs-actions.pod:2446
7621 msgid ""
7622 "The files are listed without any initial C</> character.  The files are "
7623 "listed in the order they appear (not necessarily alphabetical).  Directory "
7624 "names are listed as separate items."
7625 msgstr ""
7626
7627 #. type: textblock
7628 #: ../fish/guestfish-actions.pod:1626 ../src/guestfs-actions.pod:2450
7629 msgid ""
7630 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
7631 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
7632 "files)."
7633 msgstr ""
7634
7635 #. type: =head2
7636 #: ../fish/guestfish-actions.pod:1630
7637 msgid "inotify-add-watch"
7638 msgstr ""
7639
7640 #. type: verbatim
7641 #: ../fish/guestfish-actions.pod:1632
7642 #, no-wrap
7643 msgid ""
7644 " inotify-add-watch path mask\n"
7645 "\n"
7646 msgstr ""
7647
7648 #. type: textblock
7649 #: ../fish/guestfish-actions.pod:1634 ../src/guestfs-actions.pod:2467
7650 msgid "Watch C<path> for the events listed in C<mask>."
7651 msgstr ""
7652
7653 #. type: textblock
7654 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2469
7655 msgid ""
7656 "Note that if C<path> is a directory then events within that directory are "
7657 "watched, but this does I<not> happen recursively (in subdirectories)."
7658 msgstr ""
7659
7660 #. type: textblock
7661 #: ../fish/guestfish-actions.pod:1640 ../src/guestfs-actions.pod:2473
7662 msgid ""
7663 "Note for non-C or non-Linux callers: the inotify events are defined by the "
7664 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
7665 msgstr ""
7666
7667 #. type: =head2
7668 #: ../fish/guestfish-actions.pod:1644
7669 msgid "inotify-close"
7670 msgstr ""
7671
7672 #. type: verbatim
7673 #: ../fish/guestfish-actions.pod:1646
7674 #, no-wrap
7675 msgid ""
7676 " inotify-close\n"
7677 "\n"
7678 msgstr ""
7679
7680 #. type: textblock
7681 #: ../fish/guestfish-actions.pod:1648 ../src/guestfs-actions.pod:2486
7682 msgid ""
7683 "This closes the inotify handle which was previously opened by inotify_init.  "
7684 "It removes all watches, throws away any pending events, and deallocates all "
7685 "resources."
7686 msgstr ""
7687
7688 #. type: =head2
7689 #: ../fish/guestfish-actions.pod:1652
7690 msgid "inotify-files"
7691 msgstr ""
7692
7693 #. type: verbatim
7694 #: ../fish/guestfish-actions.pod:1654
7695 #, no-wrap
7696 msgid ""
7697 " inotify-files\n"
7698 "\n"
7699 msgstr ""
7700
7701 #. type: textblock
7702 #: ../fish/guestfish-actions.pod:1656
7703 msgid ""
7704 "This function is a helpful wrapper around L</inotify-read> which just "
7705 "returns a list of pathnames of objects that were touched.  The returned "
7706 "pathnames are sorted and deduplicated."
7707 msgstr ""
7708
7709 #. type: =head2
7710 #: ../fish/guestfish-actions.pod:1660
7711 msgid "inotify-init"
7712 msgstr ""
7713
7714 #. type: verbatim
7715 #: ../fish/guestfish-actions.pod:1662
7716 #, no-wrap
7717 msgid ""
7718 " inotify-init maxevents\n"
7719 "\n"
7720 msgstr ""
7721
7722 #. type: textblock
7723 #: ../fish/guestfish-actions.pod:1664 ../src/guestfs-actions.pod:2515
7724 msgid ""
7725 "This command creates a new inotify handle.  The inotify subsystem can be "
7726 "used to notify events which happen to objects in the guest filesystem."
7727 msgstr ""
7728
7729 #. type: textblock
7730 #: ../fish/guestfish-actions.pod:1668
7731 msgid ""
7732 "C<maxevents> is the maximum number of events which will be queued up between "
7733 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
7734 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
7735 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
7736 "but records the fact that it threw them away by setting a flag "
7737 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
7738 msgstr ""
7739
7740 #. type: textblock
7741 #: ../fish/guestfish-actions.pod:1678
7742 msgid ""
7743 "Before any events are generated, you have to add some watches to the "
7744 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
7745 "L</inotify-watch-all>."
7746 msgstr ""
7747
7748 #. type: textblock
7749 #: ../fish/guestfish-actions.pod:1684
7750 msgid ""
7751 "Queued up events should be read periodically by calling L</inotify-read> (or "
7752 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
7753 "If you don't read the events out often enough then you risk the internal "
7754 "queue overflowing."
7755 msgstr ""
7756
7757 #. type: textblock
7758 #: ../fish/guestfish-actions.pod:1691
7759 msgid ""
7760 "The handle should be closed after use by calling L</inotify-close>.  This "
7761 "also removes any watches automatically."
7762 msgstr ""
7763
7764 #. type: textblock
7765 #: ../fish/guestfish-actions.pod:1695 ../src/guestfs-actions.pod:2546
7766 msgid ""
7767 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
7768 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
7769 "that there is one global inotify handle per libguestfs instance."
7770 msgstr ""
7771
7772 #. type: =head2
7773 #: ../fish/guestfish-actions.pod:1700
7774 msgid "inotify-read"
7775 msgstr ""
7776
7777 #. type: verbatim
7778 #: ../fish/guestfish-actions.pod:1702
7779 #, no-wrap
7780 msgid ""
7781 " inotify-read\n"
7782 "\n"
7783 msgstr ""
7784
7785 #. type: textblock
7786 #: ../fish/guestfish-actions.pod:1704 ../src/guestfs-actions.pod:2560
7787 msgid ""
7788 "Return the complete queue of events that have happened since the previous "
7789 "read call."
7790 msgstr ""
7791
7792 #. type: textblock
7793 #: ../fish/guestfish-actions.pod:1707 ../src/guestfs-actions.pod:2563
7794 msgid "If no events have happened, this returns an empty list."
7795 msgstr ""
7796
7797 #. type: textblock
7798 #: ../fish/guestfish-actions.pod:1709 ../src/guestfs-actions.pod:2565
7799 msgid ""
7800 "I<Note>: In order to make sure that all events have been read, you must call "
7801 "this function repeatedly until it returns an empty list.  The reason is that "
7802 "the call will read events up to the maximum appliance-to-host message size "
7803 "and leave remaining events in the queue."
7804 msgstr ""
7805
7806 #. type: =head2
7807 #: ../fish/guestfish-actions.pod:1715
7808 msgid "inotify-rm-watch"
7809 msgstr ""
7810
7811 #. type: verbatim
7812 #: ../fish/guestfish-actions.pod:1717
7813 #, no-wrap
7814 msgid ""
7815 " inotify-rm-watch wd\n"
7816 "\n"
7817 msgstr ""
7818
7819 #. type: textblock
7820 #: ../fish/guestfish-actions.pod:1719
7821 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
7822 msgstr ""
7823
7824 #. type: =head2
7825 #: ../fish/guestfish-actions.pod:1722
7826 msgid "inspect-get-arch"
7827 msgstr ""
7828
7829 #. type: verbatim
7830 #: ../fish/guestfish-actions.pod:1724
7831 #, no-wrap
7832 msgid ""
7833 " inspect-get-arch root\n"
7834 "\n"
7835 msgstr ""
7836
7837 #. type: textblock
7838 #: ../fish/guestfish-actions.pod:1726
7839 msgid ""
7840 "This returns the architecture of the inspected operating system.  The "
7841 "possible return values are listed under L</file-architecture>."
7842 msgstr ""
7843
7844 #. type: textblock
7845 #: ../fish/guestfish-actions.pod:1730 ../src/guestfs-actions.pod:2600
7846 msgid ""
7847 "If the architecture could not be determined, then the string C<unknown> is "
7848 "returned."
7849 msgstr ""
7850
7851 #. type: textblock
7852 #: ../fish/guestfish-actions.pod:1733 ../fish/guestfish-actions.pod:1816
7853 #: ../fish/guestfish-actions.pod:1895 ../fish/guestfish-actions.pod:1907
7854 #: ../fish/guestfish-actions.pod:1991 ../fish/guestfish-actions.pod:2052
7855 #: ../fish/guestfish-actions.pod:2073 ../fish/guestfish-actions.pod:2087
7856 #: ../fish/guestfish-actions.pod:2127 ../fish/guestfish-actions.pod:2159
7857 #: ../fish/guestfish-actions.pod:2172 ../fish/guestfish-actions.pod:2185
7858 #: ../fish/guestfish-actions.pod:2195 ../fish/guestfish-actions.pod:2205
7859 #: ../fish/guestfish-actions.pod:2217 ../fish/guestfish-actions.pod:2313
7860 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:2603
7861 #: ../src/guestfs-actions.pod:2693 ../src/guestfs-actions.pod:2797
7862 #: ../src/guestfs-actions.pod:2816 ../src/guestfs-actions.pod:2947
7863 #: ../src/guestfs-actions.pod:3030 ../src/guestfs-actions.pod:3058
7864 #: ../src/guestfs-actions.pod:3079 ../src/guestfs-actions.pod:3132
7865 #: ../src/guestfs-actions.pod:3172 ../src/guestfs-actions.pod:3192
7866 #: ../src/guestfs-actions.pod:3212 ../src/guestfs-actions.pod:3229
7867 #: ../src/guestfs-actions.pod:3245 ../src/guestfs-actions.pod:3263
7868 #: ../src/guestfs-actions.pod:3365 ../src/guestfs-actions.pod:3406
7869 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
7870 msgstr ""
7871
7872 #. type: =head2
7873 #: ../fish/guestfish-actions.pod:1735
7874 msgid "inspect-get-distro"
7875 msgstr ""
7876
7877 #. type: verbatim
7878 #: ../fish/guestfish-actions.pod:1737
7879 #, no-wrap
7880 msgid ""
7881 " inspect-get-distro root\n"
7882 "\n"
7883 msgstr ""
7884
7885 #. type: textblock
7886 #: ../fish/guestfish-actions.pod:1739 ../src/guestfs-actions.pod:2616
7887 msgid ""
7888 "This returns the distro (distribution) of the inspected operating system."
7889 msgstr ""
7890
7891 #. type: textblock
7892 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2619
7893 msgid "Currently defined distros are:"
7894 msgstr ""
7895
7896 #. type: =item
7897 #: ../fish/guestfish-actions.pod:1746 ../src/guestfs-actions.pod:2623
7898 msgid "\"archlinux\""
7899 msgstr ""
7900
7901 #. type: textblock
7902 #: ../fish/guestfish-actions.pod:1748 ../src/guestfs-actions.pod:2625
7903 msgid "Arch Linux."
7904 msgstr ""
7905
7906 #. type: =item
7907 #: ../fish/guestfish-actions.pod:1750 ../src/guestfs-actions.pod:2627
7908 msgid "\"centos\""
7909 msgstr ""
7910
7911 #. type: textblock
7912 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2629
7913 msgid "CentOS."
7914 msgstr ""
7915
7916 #. type: =item
7917 #: ../fish/guestfish-actions.pod:1754 ../src/guestfs-actions.pod:2631
7918 msgid "\"debian\""
7919 msgstr ""
7920
7921 #. type: textblock
7922 #: ../fish/guestfish-actions.pod:1756 ../src/guestfs-actions.pod:2633
7923 msgid "Debian."
7924 msgstr ""
7925
7926 #. type: =item
7927 #: ../fish/guestfish-actions.pod:1758 ../src/guestfs-actions.pod:2635
7928 msgid "\"fedora\""
7929 msgstr ""
7930
7931 #. type: textblock
7932 #: ../fish/guestfish-actions.pod:1760 ../src/guestfs-actions.pod:2637
7933 msgid "Fedora."
7934 msgstr ""
7935
7936 #. type: =item
7937 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2639
7938 msgid "\"gentoo\""
7939 msgstr ""
7940
7941 #. type: textblock
7942 #: ../fish/guestfish-actions.pod:1764 ../src/guestfs-actions.pod:2641
7943 msgid "Gentoo."
7944 msgstr ""
7945
7946 #. type: =item
7947 #: ../fish/guestfish-actions.pod:1766 ../src/guestfs-actions.pod:2643
7948 msgid "\"linuxmint\""
7949 msgstr ""
7950
7951 #. type: textblock
7952 #: ../fish/guestfish-actions.pod:1768 ../src/guestfs-actions.pod:2645
7953 msgid "Linux Mint."
7954 msgstr ""
7955
7956 #. type: =item
7957 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2647
7958 msgid "\"mandriva\""
7959 msgstr ""
7960
7961 #. type: textblock
7962 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2649
7963 msgid "Mandriva."
7964 msgstr ""
7965
7966 #. type: =item
7967 #: ../fish/guestfish-actions.pod:1774 ../src/guestfs-actions.pod:2651
7968 msgid "\"meego\""
7969 msgstr ""
7970
7971 #. type: textblock
7972 #: ../fish/guestfish-actions.pod:1776 ../src/guestfs-actions.pod:2653
7973 msgid "MeeGo."
7974 msgstr ""
7975
7976 #. type: =item
7977 #: ../fish/guestfish-actions.pod:1778 ../src/guestfs-actions.pod:2655
7978 msgid "\"pardus\""
7979 msgstr ""
7980
7981 #. type: textblock
7982 #: ../fish/guestfish-actions.pod:1780 ../src/guestfs-actions.pod:2657
7983 msgid "Pardus."
7984 msgstr ""
7985
7986 #. type: =item
7987 #: ../fish/guestfish-actions.pod:1782 ../src/guestfs-actions.pod:2659
7988 msgid "\"redhat-based\""
7989 msgstr ""
7990
7991 #. type: textblock
7992 #: ../fish/guestfish-actions.pod:1784 ../src/guestfs-actions.pod:2661
7993 msgid "Some Red Hat-derived distro."
7994 msgstr ""
7995
7996 #. type: =item
7997 #: ../fish/guestfish-actions.pod:1786 ../src/guestfs-actions.pod:2663
7998 msgid "\"rhel\""
7999 msgstr ""
8000
8001 #. type: textblock
8002 #: ../fish/guestfish-actions.pod:1788 ../src/guestfs-actions.pod:2665
8003 msgid "Red Hat Enterprise Linux."
8004 msgstr ""
8005
8006 #. type: =item
8007 #: ../fish/guestfish-actions.pod:1790 ../src/guestfs-actions.pod:2667
8008 msgid "\"scientificlinux\""
8009 msgstr ""
8010
8011 #. type: textblock
8012 #: ../fish/guestfish-actions.pod:1792 ../src/guestfs-actions.pod:2669
8013 msgid "Scientific Linux."
8014 msgstr ""
8015
8016 #. type: =item
8017 #: ../fish/guestfish-actions.pod:1794 ../src/guestfs-actions.pod:2671
8018 msgid "\"slackware\""
8019 msgstr ""
8020
8021 #. type: textblock
8022 #: ../fish/guestfish-actions.pod:1796 ../src/guestfs-actions.pod:2673
8023 msgid "Slackware."
8024 msgstr ""
8025
8026 #. type: =item
8027 #: ../fish/guestfish-actions.pod:1798 ../src/guestfs-actions.pod:2675
8028 msgid "\"ubuntu\""
8029 msgstr ""
8030
8031 #. type: textblock
8032 #: ../fish/guestfish-actions.pod:1800 ../src/guestfs-actions.pod:2677
8033 msgid "Ubuntu."
8034 msgstr ""
8035
8036 #. type: =item
8037 #: ../fish/guestfish-actions.pod:1802 ../fish/guestfish-actions.pod:1886
8038 #: ../fish/guestfish-actions.pod:2150 ../src/guestfs-actions.pod:2679
8039 #: ../src/guestfs-actions.pod:2788 ../src/guestfs-actions.pod:3163
8040 msgid "\"unknown\""
8041 msgstr ""
8042
8043 #. type: textblock
8044 #: ../fish/guestfish-actions.pod:1804 ../src/guestfs-actions.pod:2681
8045 msgid "The distro could not be determined."
8046 msgstr ""
8047
8048 #. type: =item
8049 #: ../fish/guestfish-actions.pod:1806 ../fish/guestfish-actions.pod:2142
8050 #: ../src/guestfs-actions.pod:2683 ../src/guestfs-actions.pod:3155
8051 msgid "\"windows\""
8052 msgstr ""
8053
8054 #. type: textblock
8055 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2685
8056 msgid ""
8057 "Windows does not have distributions.  This string is returned if the OS type "
8058 "is Windows."
8059 msgstr ""
8060
8061 #. type: textblock
8062 #: ../fish/guestfish-actions.pod:1813 ../fish/guestfish-actions.pod:1892
8063 #: ../fish/guestfish-actions.pod:2156 ../src/guestfs-actions.pod:2690
8064 #: ../src/guestfs-actions.pod:2794 ../src/guestfs-actions.pod:3169
8065 msgid ""
8066 "Future versions of libguestfs may return other strings here.  The caller "
8067 "should be prepared to handle any string."
8068 msgstr ""
8069
8070 #. type: =head2
8071 #: ../fish/guestfish-actions.pod:1818
8072 msgid "inspect-get-drive-mappings"
8073 msgstr ""
8074
8075 #. type: verbatim
8076 #: ../fish/guestfish-actions.pod:1820
8077 #, no-wrap
8078 msgid ""
8079 " inspect-get-drive-mappings root\n"
8080 "\n"
8081 msgstr ""
8082
8083 #. type: textblock
8084 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2706
8085 msgid ""
8086 "This call is useful for Windows which uses a primitive system of assigning "
8087 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
8088 "Windows Registry to find out how disks/partitions are mapped to drive "
8089 "letters, and returns a hash table as in the example below:"
8090 msgstr ""
8091
8092 #. type: verbatim
8093 #: ../fish/guestfish-actions.pod:1828 ../src/guestfs-actions.pod:2712
8094 #, no-wrap
8095 msgid ""
8096 " C      =>     /dev/vda2\n"
8097 " E      =>     /dev/vdb1\n"
8098 " F      =>     /dev/vdc1\n"
8099 "\n"
8100 msgstr ""
8101
8102 #. type: textblock
8103 #: ../fish/guestfish-actions.pod:1832 ../src/guestfs-actions.pod:2716
8104 msgid ""
8105 "Note that keys are drive letters.  For Windows, the key is case insensitive "
8106 "and just contains the drive letter, without the customary colon separator "
8107 "character."
8108 msgstr ""
8109
8110 #. type: textblock
8111 #: ../fish/guestfish-actions.pod:1836 ../src/guestfs-actions.pod:2720
8112 msgid ""
8113 "In future we may support other operating systems that also used drive "
8114 "letters, but the keys for those might not be case insensitive and might be "
8115 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
8116 "C<h1> etc."
8117 msgstr ""
8118
8119 #. type: textblock
8120 #: ../fish/guestfish-actions.pod:1841 ../src/guestfs-actions.pod:2725
8121 msgid ""
8122 "For Windows guests, currently only hard drive mappings are returned.  "
8123 "Removable disks (eg. DVD-ROMs) are ignored."
8124 msgstr ""
8125
8126 #. type: textblock
8127 #: ../fish/guestfish-actions.pod:1844 ../src/guestfs-actions.pod:2728
8128 msgid ""
8129 "For guests that do not use drive mappings, or if the drive mappings could "
8130 "not be determined, this returns an empty hash table."
8131 msgstr ""
8132
8133 #. type: textblock
8134 #: ../fish/guestfish-actions.pod:1847
8135 msgid ""
8136 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8137 "get-mountpoints>, L</inspect-get-filesystems>."
8138 msgstr ""
8139
8140 #. type: =head2
8141 #: ../fish/guestfish-actions.pod:1851
8142 msgid "inspect-get-filesystems"
8143 msgstr ""
8144
8145 #. type: verbatim
8146 #: ../fish/guestfish-actions.pod:1853
8147 #, no-wrap
8148 msgid ""
8149 " inspect-get-filesystems root\n"
8150 "\n"
8151 msgstr ""
8152
8153 #. type: textblock
8154 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2749
8155 msgid ""
8156 "This returns a list of all the filesystems that we think are associated with "
8157 "this operating system.  This includes the root filesystem, other ordinary "
8158 "filesystems, and non-mounted devices like swap partitions."
8159 msgstr ""
8160
8161 #. type: textblock
8162 #: ../fish/guestfish-actions.pod:1860 ../src/guestfs-actions.pod:2754
8163 msgid ""
8164 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8165 "to be shared between operating systems."
8166 msgstr ""
8167
8168 #. type: textblock
8169 #: ../fish/guestfish-actions.pod:1863
8170 msgid ""
8171 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8172 "get-mountpoints>."
8173 msgstr ""
8174
8175 #. type: =head2
8176 #: ../fish/guestfish-actions.pod:1866
8177 msgid "inspect-get-format"
8178 msgstr ""
8179
8180 #. type: verbatim
8181 #: ../fish/guestfish-actions.pod:1868
8182 #, no-wrap
8183 msgid ""
8184 " inspect-get-format root\n"
8185 "\n"
8186 msgstr ""
8187
8188 #. type: textblock
8189 #: ../fish/guestfish-actions.pod:1870 ../src/guestfs-actions.pod:2772
8190 msgid ""
8191 "This returns the format of the inspected operating system.  You can use it "
8192 "to detect install images, live CDs and similar."
8193 msgstr ""
8194
8195 #. type: textblock
8196 #: ../fish/guestfish-actions.pod:1873 ../src/guestfs-actions.pod:2775
8197 msgid "Currently defined formats are:"
8198 msgstr ""
8199
8200 #. type: =item
8201 #: ../fish/guestfish-actions.pod:1877 ../src/guestfs-actions.pod:2779
8202 msgid "\"installed\""
8203 msgstr ""
8204
8205 #. type: textblock
8206 #: ../fish/guestfish-actions.pod:1879 ../src/guestfs-actions.pod:2781
8207 msgid "This is an installed operating system."
8208 msgstr ""
8209
8210 #. type: =item
8211 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2783
8212 msgid "\"installer\""
8213 msgstr ""
8214
8215 #. type: textblock
8216 #: ../fish/guestfish-actions.pod:1883 ../src/guestfs-actions.pod:2785
8217 msgid ""
8218 "The disk image being inspected is not an installed operating system, but a "
8219 "I<bootable> install disk, live CD, or similar."
8220 msgstr ""
8221
8222 #. type: textblock
8223 #: ../fish/guestfish-actions.pod:1888 ../src/guestfs-actions.pod:2790
8224 msgid "The format of this disk image is not known."
8225 msgstr ""
8226
8227 #. type: =head2
8228 #: ../fish/guestfish-actions.pod:1897
8229 msgid "inspect-get-hostname"
8230 msgstr ""
8231
8232 #. type: verbatim
8233 #: ../fish/guestfish-actions.pod:1899
8234 #, no-wrap
8235 msgid ""
8236 " inspect-get-hostname root\n"
8237 "\n"
8238 msgstr ""
8239
8240 #. type: textblock
8241 #: ../fish/guestfish-actions.pod:1901 ../src/guestfs-actions.pod:2810
8242 msgid ""
8243 "This function returns the hostname of the operating system as found by "
8244 "inspection of the guest's configuration files."
8245 msgstr ""
8246
8247 #. type: textblock
8248 #: ../fish/guestfish-actions.pod:1904 ../src/guestfs-actions.pod:2813
8249 msgid ""
8250 "If the hostname could not be determined, then the string C<unknown> is "
8251 "returned."
8252 msgstr ""
8253
8254 #. type: =head2
8255 #: ../fish/guestfish-actions.pod:1909
8256 msgid "inspect-get-icon"
8257 msgstr ""
8258
8259 #. type: verbatim
8260 #: ../fish/guestfish-actions.pod:1911
8261 #, no-wrap
8262 msgid ""
8263 " inspect-get-icon root [favicon:..] [highquality:..]\n"
8264 "\n"
8265 msgstr ""
8266
8267 #. type: textblock
8268 #: ../fish/guestfish-actions.pod:1913 ../src/guestfs-actions.pod:2839
8269 msgid ""
8270 "This function returns an icon corresponding to the inspected operating "
8271 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
8272 "to PNG if necessary)."
8273 msgstr ""
8274
8275 #. type: textblock
8276 #: ../fish/guestfish-actions.pod:1917 ../src/guestfs-actions.pod:2843
8277 msgid ""
8278 "If it was not possible to get an icon this function returns a zero-length "
8279 "(non-NULL) buffer.  I<Callers must check for this case>."
8280 msgstr ""
8281
8282 #. type: textblock
8283 #: ../fish/guestfish-actions.pod:1920 ../src/guestfs-actions.pod:2846
8284 msgid ""
8285 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
8286 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
8287 "this file will be returned.  You can disable favicons by passing the "
8288 "optional C<favicon> boolean as false (default is true)."
8289 msgstr ""
8290
8291 #. type: textblock
8292 #: ../fish/guestfish-actions.pod:1926 ../src/guestfs-actions.pod:2852
8293 msgid ""
8294 "If finding the favicon fails, then we look in other places in the guest for "
8295 "a suitable icon."
8296 msgstr ""
8297
8298 #. type: textblock
8299 #: ../fish/guestfish-actions.pod:1929 ../src/guestfs-actions.pod:2855
8300 msgid ""
8301 "If the optional C<highquality> boolean is true then only high quality icons "
8302 "are returned, which means only icons of high resolution with an alpha "
8303 "channel.  The default (false) is to return any icon we can, even if it is of "
8304 "substandard quality."
8305 msgstr ""
8306
8307 #. type: textblock
8308 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2866
8309 msgid ""
8310 "Unlike most other inspection API calls, the guest's disks must be mounted up "
8311 "before you call this, since it needs to read information from the guest "
8312 "filesystem during the call."
8313 msgstr ""
8314
8315 #. type: textblock
8316 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:2872
8317 msgid ""
8318 "B<Security:> The icon data comes from the untrusted guest, and should be "
8319 "treated with caution.  PNG files have been known to contain exploits.  "
8320 "Ensure that libpng (or other relevant libraries) are fully up to date before "
8321 "trying to process or display the icon."
8322 msgstr ""
8323
8324 #. type: textblock
8325 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:2880
8326 msgid ""
8327 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
8328 "tries to return the largest, highest quality icon available.  The "
8329 "application must scale the icon to the required size."
8330 msgstr ""
8331
8332 #. type: textblock
8333 #: ../fish/guestfish-actions.pod:1961 ../src/guestfs-actions.pod:2887
8334 msgid ""
8335 "Extracting icons from Windows guests requires the external C<wrestool> "
8336 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
8337 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
8338 "installed separately."
8339 msgstr ""
8340
8341 #. type: textblock
8342 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2894
8343 msgid ""
8344 "Operating system icons are usually trademarks.  Seek legal advice before "
8345 "using trademarks in applications."
8346 msgstr ""
8347
8348 #. type: =head2
8349 #: ../fish/guestfish-actions.pod:1975
8350 msgid "inspect-get-major-version"
8351 msgstr ""
8352
8353 #. type: verbatim
8354 #: ../fish/guestfish-actions.pod:1977
8355 #, no-wrap
8356 msgid ""
8357 " inspect-get-major-version root\n"
8358 "\n"
8359 msgstr ""
8360
8361 #. type: textblock
8362 #: ../fish/guestfish-actions.pod:1979 ../src/guestfs-actions.pod:2935
8363 msgid ""
8364 "This returns the major version number of the inspected operating system."
8365 msgstr ""
8366
8367 #. type: textblock
8368 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:2938
8369 msgid ""
8370 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8371 "popular public names used by the operating system.  Notably the operating "
8372 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8373 "1).  You can find out the real versions corresponding to releases of Windows "
8374 "by consulting Wikipedia or MSDN."
8375 msgstr ""
8376
8377 #. type: textblock
8378 #: ../fish/guestfish-actions.pod:1989 ../fish/guestfish-actions.pod:2000
8379 #: ../src/guestfs-actions.pod:2945 ../src/guestfs-actions.pod:2962
8380 msgid "If the version could not be determined, then C<0> is returned."
8381 msgstr ""
8382
8383 #. type: =head2
8384 #: ../fish/guestfish-actions.pod:1993
8385 msgid "inspect-get-minor-version"
8386 msgstr ""
8387
8388 #. type: verbatim
8389 #: ../fish/guestfish-actions.pod:1995
8390 #, no-wrap
8391 msgid ""
8392 " inspect-get-minor-version root\n"
8393 "\n"
8394 msgstr ""
8395
8396 #. type: textblock
8397 #: ../fish/guestfish-actions.pod:1997 ../src/guestfs-actions.pod:2959
8398 msgid ""
8399 "This returns the minor version number of the inspected operating system."
8400 msgstr ""
8401
8402 #. type: textblock
8403 #: ../fish/guestfish-actions.pod:2002
8404 msgid ""
8405 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8406 "get-major-version>."
8407 msgstr ""
8408
8409 #. type: =head2
8410 #: ../fish/guestfish-actions.pod:2005
8411 msgid "inspect-get-mountpoints"
8412 msgstr ""
8413
8414 #. type: verbatim
8415 #: ../fish/guestfish-actions.pod:2007
8416 #, no-wrap
8417 msgid ""
8418 " inspect-get-mountpoints root\n"
8419 "\n"
8420 msgstr ""
8421
8422 #. type: textblock
8423 #: ../fish/guestfish-actions.pod:2009 ../src/guestfs-actions.pod:2977
8424 msgid ""
8425 "This returns a hash of where we think the filesystems associated with this "
8426 "operating system should be mounted.  Callers should note that this is at "
8427 "best an educated guess made by reading configuration files such as C</etc/"
8428 "fstab>.  I<In particular note> that this may return filesystems which are "
8429 "non-existent or not mountable and callers should be prepared to handle or "
8430 "ignore failures if they try to mount them."
8431 msgstr ""
8432
8433 #. type: textblock
8434 #: ../fish/guestfish-actions.pod:2018 ../src/guestfs-actions.pod:2986
8435 msgid ""
8436 "Each element in the returned hashtable has a key which is the path of the "
8437 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8438 "mounted there (eg. C</dev/sda1>)."
8439 msgstr ""
8440
8441 #. type: textblock
8442 #: ../fish/guestfish-actions.pod:2023 ../src/guestfs-actions.pod:2991
8443 msgid ""
8444 "Non-mounted devices such as swap devices are I<not> returned in this list."
8445 msgstr ""
8446
8447 #. type: textblock
8448 #: ../fish/guestfish-actions.pod:2026
8449 msgid ""
8450 "For operating systems like Windows which still use drive letters, this call "
8451 "will only return an entry for the first drive \"mounted on\" C</>.  For "
8452 "information about the mapping of drive letters to partitions, see L</inspect-"
8453 "get-drive-mappings>."
8454 msgstr ""
8455
8456 #. type: textblock
8457 #: ../fish/guestfish-actions.pod:2032
8458 msgid ""
8459 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8460 "get-filesystems>."
8461 msgstr ""
8462
8463 #. type: =head2
8464 #: ../fish/guestfish-actions.pod:2035
8465 msgid "inspect-get-package-format"
8466 msgstr ""
8467
8468 #. type: verbatim
8469 #: ../fish/guestfish-actions.pod:2037
8470 #, no-wrap
8471 msgid ""
8472 " inspect-get-package-format root\n"
8473 "\n"
8474 msgstr ""
8475
8476 #. type: textblock
8477 #: ../fish/guestfish-actions.pod:2039
8478 msgid ""
8479 "This function and L</inspect-get-package-management> return the package "
8480 "format and package management tool used by the inspected operating system.  "
8481 "For example for Fedora these functions would return C<rpm> (package format) "
8482 "and C<yum> (package management)."
8483 msgstr ""
8484
8485 #. type: textblock
8486 #: ../fish/guestfish-actions.pod:2045 ../src/guestfs-actions.pod:3023
8487 msgid ""
8488 "This returns the string C<unknown> if we could not determine the package "
8489 "format I<or> if the operating system does not have a real packaging system "
8490 "(eg. Windows)."
8491 msgstr ""
8492
8493 #. type: textblock
8494 #: ../fish/guestfish-actions.pod:2049 ../src/guestfs-actions.pod:3027
8495 msgid ""
8496 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
8497 "Future versions of libguestfs may return other strings."
8498 msgstr ""
8499
8500 #. type: =head2
8501 #: ../fish/guestfish-actions.pod:2054
8502 msgid "inspect-get-package-management"
8503 msgstr ""
8504
8505 #. type: verbatim
8506 #: ../fish/guestfish-actions.pod:2056
8507 #, no-wrap
8508 msgid ""
8509 " inspect-get-package-management root\n"
8510 "\n"
8511 msgstr ""
8512
8513 #. type: textblock
8514 #: ../fish/guestfish-actions.pod:2058
8515 msgid ""
8516 "L</inspect-get-package-format> and this function return the package format "
8517 "and package management tool used by the inspected operating system.  For "
8518 "example for Fedora these functions would return C<rpm> (package format) and "
8519 "C<yum> (package management)."
8520 msgstr ""
8521
8522 #. type: textblock
8523 #: ../fish/guestfish-actions.pod:2064 ../src/guestfs-actions.pod:3049
8524 msgid ""
8525 "This returns the string C<unknown> if we could not determine the package "
8526 "management tool I<or> if the operating system does not have a real packaging "
8527 "system (eg. Windows)."
8528 msgstr ""
8529
8530 #. type: textblock
8531 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3053
8532 msgid ""
8533 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
8534 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
8535 "libguestfs may return other strings."
8536 msgstr ""
8537
8538 #. type: =head2
8539 #: ../fish/guestfish-actions.pod:2075
8540 msgid "inspect-get-product-name"
8541 msgstr ""
8542
8543 #. type: verbatim
8544 #: ../fish/guestfish-actions.pod:2077
8545 #, no-wrap
8546 msgid ""
8547 " inspect-get-product-name root\n"
8548 "\n"
8549 msgstr ""
8550
8551 #. type: textblock
8552 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3071
8553 msgid ""
8554 "This returns the product name of the inspected operating system.  The "
8555 "product name is generally some freeform string which can be displayed to the "
8556 "user, but should not be parsed by programs."
8557 msgstr ""
8558
8559 #. type: textblock
8560 #: ../fish/guestfish-actions.pod:2084 ../src/guestfs-actions.pod:3076
8561 msgid ""
8562 "If the product name could not be determined, then the string C<unknown> is "
8563 "returned."
8564 msgstr ""
8565
8566 #. type: =head2
8567 #: ../fish/guestfish-actions.pod:2089
8568 msgid "inspect-get-product-variant"
8569 msgstr ""
8570
8571 #. type: verbatim
8572 #: ../fish/guestfish-actions.pod:2091
8573 #, no-wrap
8574 msgid ""
8575 " inspect-get-product-variant root\n"
8576 "\n"
8577 msgstr ""
8578
8579 #. type: textblock
8580 #: ../fish/guestfish-actions.pod:2093 ../src/guestfs-actions.pod:3092
8581 msgid "This returns the product variant of the inspected operating system."
8582 msgstr ""
8583
8584 #. type: textblock
8585 #: ../fish/guestfish-actions.pod:2096 ../src/guestfs-actions.pod:3095
8586 msgid ""
8587 "For Windows guests, this returns the contents of the Registry key C<HKLM"
8588 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
8589 "is usually a string such as C<Client> or C<Server> (other values are "
8590 "possible).  This can be used to distinguish consumer and enterprise versions "
8591 "of Windows that have the same version number (for example, Windows 7 and "
8592 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
8593 "the latter is C<Server>)."
8594 msgstr ""
8595
8596 #. type: textblock
8597 #: ../fish/guestfish-actions.pod:2105 ../src/guestfs-actions.pod:3104
8598 msgid ""
8599 "For enterprise Linux guests, in future we intend this to return the product "
8600 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
8601 "implemented at present."
8602 msgstr ""
8603
8604 #. type: textblock
8605 #: ../fish/guestfish-actions.pod:2109 ../src/guestfs-actions.pod:3108
8606 msgid ""
8607 "If the product variant could not be determined, then the string C<unknown> "
8608 "is returned."
8609 msgstr ""
8610
8611 #. type: textblock
8612 #: ../fish/guestfish-actions.pod:2112
8613 msgid ""
8614 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8615 "get-product-name>, L</inspect-get-major-version>."
8616 msgstr ""
8617
8618 #. type: =head2
8619 #: ../fish/guestfish-actions.pod:2116
8620 msgid "inspect-get-roots"
8621 msgstr ""
8622
8623 #. type: verbatim
8624 #: ../fish/guestfish-actions.pod:2118
8625 #, no-wrap
8626 msgid ""
8627 " inspect-get-roots\n"
8628 "\n"
8629 msgstr ""
8630
8631 #. type: textblock
8632 #: ../fish/guestfish-actions.pod:2120
8633 msgid ""
8634 "This function is a convenient way to get the list of root devices, as "
8635 "returned from a previous call to L</inspect-os>, but without redoing the "
8636 "whole inspection process."
8637 msgstr ""
8638
8639 #. type: textblock
8640 #: ../fish/guestfish-actions.pod:2124
8641 msgid ""
8642 "This returns an empty list if either no root devices were found or the "
8643 "caller has not called L</inspect-os>."
8644 msgstr ""
8645
8646 #. type: =head2
8647 #: ../fish/guestfish-actions.pod:2129
8648 msgid "inspect-get-type"
8649 msgstr ""
8650
8651 #. type: verbatim
8652 #: ../fish/guestfish-actions.pod:2131
8653 #, no-wrap
8654 msgid ""
8655 " inspect-get-type root\n"
8656 "\n"
8657 msgstr ""
8658
8659 #. type: textblock
8660 #: ../fish/guestfish-actions.pod:2133 ../src/guestfs-actions.pod:3146
8661 msgid ""
8662 "This returns the type of the inspected operating system.  Currently defined "
8663 "types are:"
8664 msgstr ""
8665
8666 #. type: =item
8667 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3151
8668 msgid "\"linux\""
8669 msgstr ""
8670
8671 #. type: textblock
8672 #: ../fish/guestfish-actions.pod:2140 ../src/guestfs-actions.pod:3153
8673 msgid "Any Linux-based operating system."
8674 msgstr ""
8675
8676 #. type: textblock
8677 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3157
8678 msgid "Any Microsoft Windows operating system."
8679 msgstr ""
8680
8681 #. type: =item
8682 #: ../fish/guestfish-actions.pod:2146 ../src/guestfs-actions.pod:3159
8683 msgid "\"freebsd\""
8684 msgstr ""
8685
8686 #. type: textblock
8687 #: ../fish/guestfish-actions.pod:2148 ../src/guestfs-actions.pod:3161
8688 msgid "FreeBSD."
8689 msgstr ""
8690
8691 #. type: textblock
8692 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3165
8693 msgid "The operating system type could not be determined."
8694 msgstr ""
8695
8696 #. type: =head2
8697 #: ../fish/guestfish-actions.pod:2161
8698 msgid "inspect-get-windows-current-control-set"
8699 msgstr ""
8700
8701 #. type: verbatim
8702 #: ../fish/guestfish-actions.pod:2163
8703 #, no-wrap
8704 msgid ""
8705 " inspect-get-windows-current-control-set root\n"
8706 "\n"
8707 msgstr ""
8708
8709 #. type: textblock
8710 #: ../fish/guestfish-actions.pod:2165 ../src/guestfs-actions.pod:3185
8711 msgid ""
8712 "This returns the Windows CurrentControlSet of the inspected guest.  The "
8713 "CurrentControlSet is a registry key name such as C<ControlSet001>."
8714 msgstr ""
8715
8716 #. type: textblock
8717 #: ../fish/guestfish-actions.pod:2168 ../src/guestfs-actions.pod:3188
8718 msgid ""
8719 "This call assumes that the guest is Windows and that the Registry could be "
8720 "examined by inspection.  If this is not the case then an error is returned."
8721 msgstr ""
8722
8723 #. type: =head2
8724 #: ../fish/guestfish-actions.pod:2174
8725 msgid "inspect-get-windows-systemroot"
8726 msgstr ""
8727
8728 #. type: verbatim
8729 #: ../fish/guestfish-actions.pod:2176
8730 #, no-wrap
8731 msgid ""
8732 " inspect-get-windows-systemroot root\n"
8733 "\n"
8734 msgstr ""
8735
8736 #. type: textblock
8737 #: ../fish/guestfish-actions.pod:2178 ../src/guestfs-actions.pod:3205
8738 msgid ""
8739 "This returns the Windows systemroot of the inspected guest.  The systemroot "
8740 "is a directory path such as C</WINDOWS>."
8741 msgstr ""
8742
8743 #. type: textblock
8744 #: ../fish/guestfish-actions.pod:2181 ../src/guestfs-actions.pod:3208
8745 msgid ""
8746 "This call assumes that the guest is Windows and that the systemroot could be "
8747 "determined by inspection.  If this is not the case then an error is returned."
8748 msgstr ""
8749
8750 #. type: =head2
8751 #: ../fish/guestfish-actions.pod:2187
8752 msgid "inspect-is-live"
8753 msgstr ""
8754
8755 #. type: verbatim
8756 #: ../fish/guestfish-actions.pod:2189
8757 #, no-wrap
8758 msgid ""
8759 " inspect-is-live root\n"
8760 "\n"
8761 msgstr ""
8762
8763 #. type: textblock
8764 #: ../fish/guestfish-actions.pod:2191
8765 msgid ""
8766 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8767 "then this returns true if a live image was detected on the disk."
8768 msgstr ""
8769
8770 #. type: =head2
8771 #: ../fish/guestfish-actions.pod:2197
8772 msgid "inspect-is-multipart"
8773 msgstr ""
8774
8775 #. type: verbatim
8776 #: ../fish/guestfish-actions.pod:2199
8777 #, no-wrap
8778 msgid ""
8779 " inspect-is-multipart root\n"
8780 "\n"
8781 msgstr ""
8782
8783 #. type: textblock
8784 #: ../fish/guestfish-actions.pod:2201
8785 msgid ""
8786 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8787 "then this returns true if the disk is part of a set."
8788 msgstr ""
8789
8790 #. type: =head2
8791 #: ../fish/guestfish-actions.pod:2207
8792 msgid "inspect-is-netinst"
8793 msgstr ""
8794
8795 #. type: verbatim
8796 #: ../fish/guestfish-actions.pod:2209
8797 #, no-wrap
8798 msgid ""
8799 " inspect-is-netinst root\n"
8800 "\n"
8801 msgstr ""
8802
8803 #. type: textblock
8804 #: ../fish/guestfish-actions.pod:2211
8805 msgid ""
8806 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8807 "then this returns true if the disk is a network installer, ie. not a self-"
8808 "contained install CD but one which is likely to require network access to "
8809 "complete the install."
8810 msgstr ""
8811
8812 #. type: =head2
8813 #: ../fish/guestfish-actions.pod:2219
8814 msgid "inspect-list-applications"
8815 msgstr ""
8816
8817 #. type: verbatim
8818 #: ../fish/guestfish-actions.pod:2221
8819 #, no-wrap
8820 msgid ""
8821 " inspect-list-applications root\n"
8822 "\n"
8823 msgstr ""
8824
8825 #. type: textblock
8826 #: ../fish/guestfish-actions.pod:2223 ../src/guestfs-actions.pod:3275
8827 msgid "Return the list of applications installed in the operating system."
8828 msgstr ""
8829
8830 #. type: textblock
8831 #: ../fish/guestfish-actions.pod:2225
8832 msgid ""
8833 "I<Note:> This call works differently from other parts of the inspection "
8834 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
8835 "then mount up the disks, before calling this.  Listing applications is a "
8836 "significantly more difficult operation which requires access to the full "
8837 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
8838 "are just returning data cached in the libguestfs handle, this call actually "
8839 "reads parts of the mounted filesystems during the call."
8840 msgstr ""
8841
8842 #. type: textblock
8843 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:3287
8844 msgid ""
8845 "This returns an empty list if the inspection code was not able to determine "
8846 "the list of applications."
8847 msgstr ""
8848
8849 #. type: textblock
8850 #: ../fish/guestfish-actions.pod:2238 ../src/guestfs-actions.pod:3290
8851 msgid "The application structure contains the following fields:"
8852 msgstr ""
8853
8854 #. type: =item
8855 #: ../fish/guestfish-actions.pod:2242 ../src/guestfs-actions.pod:3294
8856 msgid "C<app_name>"
8857 msgstr ""
8858
8859 #. type: textblock
8860 #: ../fish/guestfish-actions.pod:2244 ../src/guestfs-actions.pod:3296
8861 msgid ""
8862 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
8863 "guests, this is the package name."
8864 msgstr ""
8865
8866 #. type: =item
8867 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3299
8868 msgid "C<app_display_name>"
8869 msgstr ""
8870
8871 #. type: textblock
8872 #: ../fish/guestfish-actions.pod:2249 ../src/guestfs-actions.pod:3301
8873 msgid ""
8874 "The display name of the application, sometimes localized to the install "
8875 "language of the guest operating system."
8876 msgstr ""
8877
8878 #. type: textblock
8879 #: ../fish/guestfish-actions.pod:2252 ../src/guestfs-actions.pod:3304
8880 msgid ""
8881 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
8882 "to display something can use C<app_name> instead."
8883 msgstr ""
8884
8885 #. type: =item
8886 #: ../fish/guestfish-actions.pod:2255 ../src/guestfs-actions.pod:3307
8887 msgid "C<app_epoch>"
8888 msgstr ""
8889
8890 #. type: textblock
8891 #: ../fish/guestfish-actions.pod:2257 ../src/guestfs-actions.pod:3309
8892 msgid ""
8893 "For package managers which use epochs, this contains the epoch of the "
8894 "package (an integer).  If unavailable, this is returned as C<0>."
8895 msgstr ""
8896
8897 #. type: =item
8898 #: ../fish/guestfish-actions.pod:2260 ../src/guestfs-actions.pod:3312
8899 msgid "C<app_version>"
8900 msgstr ""
8901
8902 #. type: textblock
8903 #: ../fish/guestfish-actions.pod:2262 ../src/guestfs-actions.pod:3314
8904 msgid ""
8905 "The version string of the application or package.  If unavailable this is "
8906 "returned as an empty string C<\"\">."
8907 msgstr ""
8908
8909 #. type: =item
8910 #: ../fish/guestfish-actions.pod:2265 ../src/guestfs-actions.pod:3317
8911 msgid "C<app_release>"
8912 msgstr ""
8913
8914 #. type: textblock
8915 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3319
8916 msgid ""
8917 "The release string of the application or package, for package managers that "
8918 "use this.  If unavailable this is returned as an empty string C<\"\">."
8919 msgstr ""
8920
8921 #. type: =item
8922 #: ../fish/guestfish-actions.pod:2271 ../src/guestfs-actions.pod:3323
8923 msgid "C<app_install_path>"
8924 msgstr ""
8925
8926 #. type: textblock
8927 #: ../fish/guestfish-actions.pod:2273 ../src/guestfs-actions.pod:3325
8928 msgid ""
8929 "The installation path of the application (on operating systems such as "
8930 "Windows which use installation paths).  This path is in the format used by "
8931 "the guest operating system, it is not a libguestfs path."
8932 msgstr ""
8933
8934 #. type: textblock
8935 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3330
8936 msgid "If unavailable this is returned as an empty string C<\"\">."
8937 msgstr ""
8938
8939 #. type: =item
8940 #: ../fish/guestfish-actions.pod:2280 ../src/guestfs-actions.pod:3332
8941 msgid "C<app_trans_path>"
8942 msgstr ""
8943
8944 #. type: textblock
8945 #: ../fish/guestfish-actions.pod:2282 ../src/guestfs-actions.pod:3334
8946 msgid ""
8947 "The install path translated into a libguestfs path.  If unavailable this is "
8948 "returned as an empty string C<\"\">."
8949 msgstr ""
8950
8951 #. type: =item
8952 #: ../fish/guestfish-actions.pod:2285 ../src/guestfs-actions.pod:3337
8953 msgid "C<app_publisher>"
8954 msgstr ""
8955
8956 #. type: textblock
8957 #: ../fish/guestfish-actions.pod:2287 ../src/guestfs-actions.pod:3339
8958 msgid ""
8959 "The name of the publisher of the application, for package managers that use "
8960 "this.  If unavailable this is returned as an empty string C<\"\">."
8961 msgstr ""
8962
8963 #. type: =item
8964 #: ../fish/guestfish-actions.pod:2291 ../src/guestfs-actions.pod:3343
8965 msgid "C<app_url>"
8966 msgstr ""
8967
8968 #. type: textblock
8969 #: ../fish/guestfish-actions.pod:2293 ../src/guestfs-actions.pod:3345
8970 msgid ""
8971 "The URL (eg. upstream URL) of the application.  If unavailable this is "
8972 "returned as an empty string C<\"\">."
8973 msgstr ""
8974
8975 #. type: =item
8976 #: ../fish/guestfish-actions.pod:2296 ../src/guestfs-actions.pod:3348
8977 msgid "C<app_source_package>"
8978 msgstr ""
8979
8980 #. type: textblock
8981 #: ../fish/guestfish-actions.pod:2298 ../src/guestfs-actions.pod:3350
8982 msgid ""
8983 "For packaging systems which support this, the name of the source package.  "
8984 "If unavailable this is returned as an empty string C<\"\">."
8985 msgstr ""
8986
8987 #. type: =item
8988 #: ../fish/guestfish-actions.pod:2301 ../src/guestfs-actions.pod:3353
8989 msgid "C<app_summary>"
8990 msgstr ""
8991
8992 #. type: textblock
8993 #: ../fish/guestfish-actions.pod:2303 ../src/guestfs-actions.pod:3355
8994 msgid ""
8995 "A short (usually one line) description of the application or package.  If "
8996 "unavailable this is returned as an empty string C<\"\">."
8997 msgstr ""
8998
8999 #. type: =item
9000 #: ../fish/guestfish-actions.pod:2306 ../src/guestfs-actions.pod:3358
9001 msgid "C<app_description>"
9002 msgstr ""
9003
9004 #. type: textblock
9005 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3360
9006 msgid ""
9007 "A longer description of the application or package.  If unavailable this is "
9008 "returned as an empty string C<\"\">."
9009 msgstr ""
9010
9011 #. type: =head2
9012 #: ../fish/guestfish-actions.pod:2315
9013 msgid "inspect-os"
9014 msgstr ""
9015
9016 #. type: verbatim
9017 #: ../fish/guestfish-actions.pod:2317
9018 #, no-wrap
9019 msgid ""
9020 " inspect-os\n"
9021 "\n"
9022 msgstr ""
9023
9024 #. type: textblock
9025 #: ../fish/guestfish-actions.pod:2319 ../src/guestfs-actions.pod:3378
9026 msgid ""
9027 "This function uses other libguestfs functions and certain heuristics to "
9028 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9029 "for operating systems."
9030 msgstr ""
9031
9032 #. type: textblock
9033 #: ../fish/guestfish-actions.pod:2323 ../src/guestfs-actions.pod:3382
9034 msgid "The list returned is empty if no operating systems were found."
9035 msgstr ""
9036
9037 #. type: textblock
9038 #: ../fish/guestfish-actions.pod:2325 ../src/guestfs-actions.pod:3384
9039 msgid ""
9040 "If one operating system was found, then this returns a list with a single "
9041 "element, which is the name of the root filesystem of this operating system.  "
9042 "It is also possible for this function to return a list containing more than "
9043 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9044 "element being the root filesystem of one of the operating systems."
9045 msgstr ""
9046
9047 #. type: textblock
9048 #: ../fish/guestfish-actions.pod:2332
9049 msgid ""
9050 "You can pass the root string(s) returned to other L</inspect-get-*> "
9051 "functions in order to query further information about each operating system, "
9052 "such as the name and version."
9053 msgstr ""
9054
9055 #. type: textblock
9056 #: ../fish/guestfish-actions.pod:2337
9057 msgid ""
9058 "This function uses other libguestfs features such as L</mount-ro> and L</"
9059 "umount-all> in order to mount and unmount filesystems and look at the "
9060 "contents.  This should be called with no disks currently mounted.  The "
9061 "function may also use Augeas, so any existing Augeas handle will be closed."
9062 msgstr ""
9063
9064 #. type: textblock
9065 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3402
9066 msgid ""
9067 "This function cannot decrypt encrypted disks.  The caller must do that first "
9068 "(supplying the necessary keys) if the disk is encrypted."
9069 msgstr ""
9070
9071 #. type: textblock
9072 #: ../fish/guestfish-actions.pod:2349 ../fish/guestfish-actions.pod:2547
9073 #: ../fish/guestfish-actions.pod:2606
9074 msgid "See also L</list-filesystems>."
9075 msgstr ""
9076
9077 #. type: =head2
9078 #: ../fish/guestfish-actions.pod:2351
9079 msgid "is-blockdev"
9080 msgstr ""
9081
9082 #. type: verbatim
9083 #: ../fish/guestfish-actions.pod:2353
9084 #, no-wrap
9085 msgid ""
9086 " is-blockdev path\n"
9087 "\n"
9088 msgstr ""
9089
9090 #. type: textblock
9091 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3422
9092 msgid ""
9093 "This returns C<true> if and only if there is a block device with the given "
9094 "C<path> name."
9095 msgstr ""
9096
9097 #. type: textblock
9098 #: ../fish/guestfish-actions.pod:2358 ../fish/guestfish-actions.pod:2376
9099 #: ../fish/guestfish-actions.pod:2395 ../fish/guestfish-actions.pod:2404
9100 #: ../fish/guestfish-actions.pod:2414 ../fish/guestfish-actions.pod:2448
9101 #: ../fish/guestfish-actions.pod:2457
9102 msgid "See also L</stat>."
9103 msgstr ""
9104
9105 #. type: =head2
9106 #: ../fish/guestfish-actions.pod:2360
9107 msgid "is-busy"
9108 msgstr ""
9109
9110 #. type: verbatim
9111 #: ../fish/guestfish-actions.pod:2362
9112 #, no-wrap
9113 msgid ""
9114 " is-busy\n"
9115 "\n"
9116 msgstr ""
9117
9118 #. type: textblock
9119 #: ../fish/guestfish-actions.pod:2364 ../src/guestfs-actions.pod:3436
9120 msgid ""
9121 "This returns true iff this handle is busy processing a command (in the "
9122 "C<BUSY> state)."
9123 msgstr ""
9124
9125 #. type: =head2
9126 #: ../fish/guestfish-actions.pod:2369
9127 msgid "is-chardev"
9128 msgstr ""
9129
9130 #. type: verbatim
9131 #: ../fish/guestfish-actions.pod:2371
9132 #, no-wrap
9133 msgid ""
9134 " is-chardev path\n"
9135 "\n"
9136 msgstr ""
9137
9138 #. type: textblock
9139 #: ../fish/guestfish-actions.pod:2373 ../src/guestfs-actions.pod:3451
9140 msgid ""
9141 "This returns C<true> if and only if there is a character device with the "
9142 "given C<path> name."
9143 msgstr ""
9144
9145 #. type: =head2
9146 #: ../fish/guestfish-actions.pod:2378
9147 msgid "is-config"
9148 msgstr ""
9149
9150 #. type: verbatim
9151 #: ../fish/guestfish-actions.pod:2380
9152 #, no-wrap
9153 msgid ""
9154 " is-config\n"
9155 "\n"
9156 msgstr ""
9157
9158 #. type: textblock
9159 #: ../fish/guestfish-actions.pod:2382 ../src/guestfs-actions.pod:3465
9160 msgid ""
9161 "This returns true iff this handle is being configured (in the C<CONFIG> "
9162 "state)."
9163 msgstr ""
9164
9165 #. type: =head2
9166 #: ../fish/guestfish-actions.pod:2387
9167 msgid "is-dir"
9168 msgstr ""
9169
9170 #. type: verbatim
9171 #: ../fish/guestfish-actions.pod:2389
9172 #, no-wrap
9173 msgid ""
9174 " is-dir path\n"
9175 "\n"
9176 msgstr ""
9177
9178 #. type: textblock
9179 #: ../fish/guestfish-actions.pod:2391 ../src/guestfs-actions.pod:3480
9180 msgid ""
9181 "This returns C<true> if and only if there is a directory with the given "
9182 "C<path> name.  Note that it returns false for other objects like files."
9183 msgstr ""
9184
9185 #. type: =head2
9186 #: ../fish/guestfish-actions.pod:2397
9187 msgid "is-fifo"
9188 msgstr ""
9189
9190 #. type: verbatim
9191 #: ../fish/guestfish-actions.pod:2399
9192 #, no-wrap
9193 msgid ""
9194 " is-fifo path\n"
9195 "\n"
9196 msgstr ""
9197
9198 #. type: textblock
9199 #: ../fish/guestfish-actions.pod:2401 ../src/guestfs-actions.pod:3496
9200 msgid ""
9201 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9202 "given C<path> name."
9203 msgstr ""
9204
9205 #. type: =head2
9206 #: ../fish/guestfish-actions.pod:2406
9207 msgid "is-file"
9208 msgstr ""
9209
9210 #. type: verbatim
9211 #: ../fish/guestfish-actions.pod:2408
9212 #, no-wrap
9213 msgid ""
9214 " is-file path\n"
9215 "\n"
9216 msgstr ""
9217
9218 #. type: textblock
9219 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3511
9220 msgid ""
9221 "This returns C<true> if and only if there is a regular file with the given "
9222 "C<path> name.  Note that it returns false for other objects like directories."
9223 msgstr ""
9224
9225 #. type: =head2
9226 #: ../fish/guestfish-actions.pod:2416
9227 msgid "is-launching"
9228 msgstr ""
9229
9230 #. type: verbatim
9231 #: ../fish/guestfish-actions.pod:2418
9232 #, no-wrap
9233 msgid ""
9234 " is-launching\n"
9235 "\n"
9236 msgstr ""
9237
9238 #. type: textblock
9239 #: ../fish/guestfish-actions.pod:2420 ../src/guestfs-actions.pod:3526
9240 msgid ""
9241 "This returns true iff this handle is launching the subprocess (in the "
9242 "C<LAUNCHING> state)."
9243 msgstr ""
9244
9245 #. type: =head2
9246 #: ../fish/guestfish-actions.pod:2425
9247 msgid "is-lv"
9248 msgstr ""
9249
9250 #. type: verbatim
9251 #: ../fish/guestfish-actions.pod:2427
9252 #, no-wrap
9253 msgid ""
9254 " is-lv device\n"
9255 "\n"
9256 msgstr ""
9257
9258 #. type: textblock
9259 #: ../fish/guestfish-actions.pod:2429 ../src/guestfs-actions.pod:3541
9260 msgid ""
9261 "This command tests whether C<device> is a logical volume, and returns true "
9262 "iff this is the case."
9263 msgstr ""
9264
9265 #. type: =head2
9266 #: ../fish/guestfish-actions.pod:2432
9267 msgid "is-ready"
9268 msgstr ""
9269
9270 #. type: verbatim
9271 #: ../fish/guestfish-actions.pod:2434
9272 #, no-wrap
9273 msgid ""
9274 " is-ready\n"
9275 "\n"
9276 msgstr ""
9277
9278 #. type: textblock
9279 #: ../fish/guestfish-actions.pod:2436 ../src/guestfs-actions.pod:3553
9280 msgid ""
9281 "This returns true iff this handle is ready to accept commands (in the "
9282 "C<READY> state)."
9283 msgstr ""
9284
9285 #. type: =head2
9286 #: ../fish/guestfish-actions.pod:2441
9287 msgid "is-socket"
9288 msgstr ""
9289
9290 #. type: verbatim
9291 #: ../fish/guestfish-actions.pod:2443
9292 #, no-wrap
9293 msgid ""
9294 " is-socket path\n"
9295 "\n"
9296 msgstr ""
9297
9298 #. type: textblock
9299 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3568
9300 msgid ""
9301 "This returns C<true> if and only if there is a Unix domain socket with the "
9302 "given C<path> name."
9303 msgstr ""
9304
9305 #. type: =head2
9306 #: ../fish/guestfish-actions.pod:2450
9307 msgid "is-symlink"
9308 msgstr ""
9309
9310 #. type: verbatim
9311 #: ../fish/guestfish-actions.pod:2452
9312 #, no-wrap
9313 msgid ""
9314 " is-symlink path\n"
9315 "\n"
9316 msgstr ""
9317
9318 #. type: textblock
9319 #: ../fish/guestfish-actions.pod:2454 ../src/guestfs-actions.pod:3583
9320 msgid ""
9321 "This returns C<true> if and only if there is a symbolic link with the given "
9322 "C<path> name."
9323 msgstr ""
9324
9325 #. type: =head2
9326 #: ../fish/guestfish-actions.pod:2459
9327 msgid "is-zero"
9328 msgstr ""
9329
9330 #. type: verbatim
9331 #: ../fish/guestfish-actions.pod:2461
9332 #, no-wrap
9333 msgid ""
9334 " is-zero path\n"
9335 "\n"
9336 msgstr ""
9337
9338 #. type: textblock
9339 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3598
9340 msgid ""
9341 "This returns true iff the file exists and the file is empty or it contains "
9342 "all zero bytes."
9343 msgstr ""
9344
9345 #. type: =head2
9346 #: ../fish/guestfish-actions.pod:2466
9347 msgid "is-zero-device"
9348 msgstr ""
9349
9350 #. type: verbatim
9351 #: ../fish/guestfish-actions.pod:2468
9352 #, no-wrap
9353 msgid ""
9354 " is-zero-device device\n"
9355 "\n"
9356 msgstr ""
9357
9358 #. type: textblock
9359 #: ../fish/guestfish-actions.pod:2470 ../src/guestfs-actions.pod:3611
9360 msgid "This returns true iff the device exists and contains all zero bytes."
9361 msgstr ""
9362
9363 #. type: textblock
9364 #: ../fish/guestfish-actions.pod:2472 ../src/guestfs-actions.pod:3613
9365 msgid "Note that for large devices this can take a long time to run."
9366 msgstr ""
9367
9368 #. type: =head2
9369 #: ../fish/guestfish-actions.pod:2474
9370 msgid "kill-subprocess"
9371 msgstr ""
9372
9373 #. type: verbatim
9374 #: ../fish/guestfish-actions.pod:2476
9375 #, no-wrap
9376 msgid ""
9377 " kill-subprocess\n"
9378 "\n"
9379 msgstr ""
9380
9381 #. type: textblock
9382 #: ../fish/guestfish-actions.pod:2478 ../src/guestfs-actions.pod:3624
9383 msgid "This kills the qemu subprocess.  You should never need to call this."
9384 msgstr ""
9385
9386 #. type: =head2
9387 #: ../fish/guestfish-actions.pod:2480
9388 msgid "launch"
9389 msgstr ""
9390
9391 #. type: =head2
9392 #: ../fish/guestfish-actions.pod:2482
9393 msgid "run"
9394 msgstr ""
9395
9396 #. type: verbatim
9397 #: ../fish/guestfish-actions.pod:2484
9398 #, no-wrap
9399 msgid ""
9400 " launch\n"
9401 "\n"
9402 msgstr ""
9403
9404 #. type: textblock
9405 #: ../fish/guestfish-actions.pod:2486 ../src/guestfs-actions.pod:3635
9406 msgid ""
9407 "Internally libguestfs is implemented by running a virtual machine using "
9408 "L<qemu(1)>."
9409 msgstr ""
9410
9411 #. type: textblock
9412 #: ../fish/guestfish-actions.pod:2489 ../src/guestfs-actions.pod:3638
9413 msgid ""
9414 "You should call this after configuring the handle (eg. adding drives) but "
9415 "before performing any actions."
9416 msgstr ""
9417
9418 #. type: =head2
9419 #: ../fish/guestfish-actions.pod:2492
9420 msgid "lchown"
9421 msgstr ""
9422
9423 #. type: verbatim
9424 #: ../fish/guestfish-actions.pod:2494
9425 #, no-wrap
9426 msgid ""
9427 " lchown owner group path\n"
9428 "\n"
9429 msgstr ""
9430
9431 #. type: textblock
9432 #: ../fish/guestfish-actions.pod:2496
9433 msgid ""
9434 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
9435 "chown> but if C<path> is a symlink then the link itself is changed, not the "
9436 "target."
9437 msgstr ""
9438
9439 #. type: =head2
9440 #: ../fish/guestfish-actions.pod:2504
9441 msgid "lgetxattr"
9442 msgstr ""
9443
9444 #. type: verbatim
9445 #: ../fish/guestfish-actions.pod:2506
9446 #, no-wrap
9447 msgid ""
9448 " lgetxattr path name\n"
9449 "\n"
9450 msgstr ""
9451
9452 #. type: textblock
9453 #: ../fish/guestfish-actions.pod:2508 ../src/guestfs-actions.pod:3678
9454 msgid ""
9455 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
9456 "is a symlink, then this call returns an extended attribute from the symlink."
9457 msgstr ""
9458
9459 #. type: textblock
9460 #: ../fish/guestfish-actions.pod:2522
9461 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
9462 msgstr ""
9463
9464 #. type: =head2
9465 #: ../fish/guestfish-actions.pod:2524
9466 msgid "lgetxattrs"
9467 msgstr ""
9468
9469 #. type: verbatim
9470 #: ../fish/guestfish-actions.pod:2526
9471 #, no-wrap
9472 msgid ""
9473 " lgetxattrs path\n"
9474 "\n"
9475 msgstr ""
9476
9477 #. type: textblock
9478 #: ../fish/guestfish-actions.pod:2528
9479 msgid ""
9480 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
9481 "it returns the extended attributes of the link itself."
9482 msgstr ""
9483
9484 #. type: =head2
9485 #: ../fish/guestfish-actions.pod:2532
9486 msgid "list-9p"
9487 msgstr ""
9488
9489 #. type: verbatim
9490 #: ../fish/guestfish-actions.pod:2534
9491 #, no-wrap
9492 msgid ""
9493 " list-9p\n"
9494 "\n"
9495 msgstr ""
9496
9497 #. type: textblock
9498 #: ../fish/guestfish-actions.pod:2536 ../src/guestfs-actions.pod:3721
9499 msgid ""
9500 "List all 9p filesystems attached to the guest.  A list of mount tags is "
9501 "returned."
9502 msgstr ""
9503
9504 #. type: =head2
9505 #: ../fish/guestfish-actions.pod:2539
9506 msgid "list-devices"
9507 msgstr ""
9508
9509 #. type: verbatim
9510 #: ../fish/guestfish-actions.pod:2541
9511 #, no-wrap
9512 msgid ""
9513 " list-devices\n"
9514 "\n"
9515 msgstr ""
9516
9517 #. type: textblock
9518 #: ../fish/guestfish-actions.pod:2543 ../src/guestfs-actions.pod:3735
9519 msgid "List all the block devices."
9520 msgstr ""
9521
9522 #. type: textblock
9523 #: ../fish/guestfish-actions.pod:2545 ../src/guestfs-actions.pod:3737
9524 msgid "The full block device names are returned, eg. C</dev/sda>."
9525 msgstr ""
9526
9527 #. type: =head2
9528 #: ../fish/guestfish-actions.pod:2549
9529 msgid "list-dm-devices"
9530 msgstr ""
9531
9532 #. type: verbatim
9533 #: ../fish/guestfish-actions.pod:2551
9534 #, no-wrap
9535 msgid ""
9536 " list-dm-devices\n"
9537 "\n"
9538 msgstr ""
9539
9540 #. type: textblock
9541 #: ../fish/guestfish-actions.pod:2553 ../src/guestfs-actions.pod:3752
9542 msgid "List all device mapper devices."
9543 msgstr ""
9544
9545 #. type: textblock
9546 #: ../fish/guestfish-actions.pod:2555
9547 msgid ""
9548 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
9549 "previous call to L</luks-open>."
9550 msgstr ""
9551
9552 #. type: textblock
9553 #: ../fish/guestfish-actions.pod:2558
9554 msgid ""
9555 "Device mapper devices which correspond to logical volumes are I<not> "
9556 "returned in this list.  Call L</lvs> if you want to list logical volumes."
9557 msgstr ""
9558
9559 #. type: =head2
9560 #: ../fish/guestfish-actions.pod:2562
9561 msgid "list-filesystems"
9562 msgstr ""
9563
9564 #. type: verbatim
9565 #: ../fish/guestfish-actions.pod:2564
9566 #, no-wrap
9567 msgid ""
9568 " list-filesystems\n"
9569 "\n"
9570 msgstr ""
9571
9572 #. type: textblock
9573 #: ../fish/guestfish-actions.pod:2566 ../src/guestfs-actions.pod:3772
9574 msgid ""
9575 "This inspection command looks for filesystems on partitions, block devices "
9576 "and logical volumes, returning a list of devices containing filesystems and "
9577 "their type."
9578 msgstr ""
9579
9580 #. type: textblock
9581 #: ../fish/guestfish-actions.pod:2570 ../src/guestfs-actions.pod:3776
9582 msgid ""
9583 "The return value is a hash, where the keys are the devices containing "
9584 "filesystems, and the values are the filesystem types.  For example:"
9585 msgstr ""
9586
9587 #. type: verbatim
9588 #: ../fish/guestfish-actions.pod:2574 ../src/guestfs-actions.pod:3780
9589 #, no-wrap
9590 msgid ""
9591 " \"/dev/sda1\" => \"ntfs\"\n"
9592 " \"/dev/sda2\" => \"ext2\"\n"
9593 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
9594 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
9595 "\n"
9596 msgstr ""
9597
9598 #. type: textblock
9599 #: ../fish/guestfish-actions.pod:2579 ../src/guestfs-actions.pod:3785
9600 msgid ""
9601 "The value can have the special value \"unknown\", meaning the content of the "
9602 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
9603 msgstr ""
9604
9605 #. type: textblock
9606 #: ../fish/guestfish-actions.pod:2583
9607 msgid ""
9608 "This command runs other libguestfs commands, which might include L</mount> "
9609 "and L</umount>, and therefore you should use this soon after launch and only "
9610 "when nothing is mounted."
9611 msgstr ""
9612
9613 #. type: textblock
9614 #: ../fish/guestfish-actions.pod:2587
9615 msgid ""
9616 "Not all of the filesystems returned will be mountable.  In particular, swap "
9617 "partitions are returned in the list.  Also this command does not check that "
9618 "each filesystem found is valid and mountable, and some filesystems might be "
9619 "mountable but require special options.  Filesystems may not all belong to a "
9620 "single logical operating system (use L</inspect-os> to look for OSes)."
9621 msgstr ""
9622
9623 #. type: =head2
9624 #: ../fish/guestfish-actions.pod:2595
9625 msgid "list-partitions"
9626 msgstr ""
9627
9628 #. type: verbatim
9629 #: ../fish/guestfish-actions.pod:2597
9630 #, no-wrap
9631 msgid ""
9632 " list-partitions\n"
9633 "\n"
9634 msgstr ""
9635
9636 #. type: textblock
9637 #: ../fish/guestfish-actions.pod:2599 ../src/guestfs-actions.pod:3814
9638 msgid "List all the partitions detected on all block devices."
9639 msgstr ""
9640
9641 #. type: textblock
9642 #: ../fish/guestfish-actions.pod:2601 ../src/guestfs-actions.pod:3816
9643 msgid "The full partition device names are returned, eg. C</dev/sda1>"
9644 msgstr ""
9645
9646 #. type: textblock
9647 #: ../fish/guestfish-actions.pod:2603
9648 msgid ""
9649 "This does not return logical volumes.  For that you will need to call L</"
9650 "lvs>."
9651 msgstr ""
9652
9653 #. type: =head2
9654 #: ../fish/guestfish-actions.pod:2608
9655 msgid "ll"
9656 msgstr ""
9657
9658 #. type: verbatim
9659 #: ../fish/guestfish-actions.pod:2610
9660 #, no-wrap
9661 msgid ""
9662 " ll directory\n"
9663 "\n"
9664 msgstr ""
9665
9666 #. type: textblock
9667 #: ../fish/guestfish-actions.pod:2612 ../src/guestfs-actions.pod:3835
9668 msgid ""
9669 "List the files in C<directory> (relative to the root directory, there is no "
9670 "cwd) in the format of 'ls -la'."
9671 msgstr ""
9672
9673 #. type: textblock
9674 #: ../fish/guestfish-actions.pod:2615 ../src/guestfs-actions.pod:3838
9675 msgid ""
9676 "This command is mostly useful for interactive sessions.  It is I<not> "
9677 "intended that you try to parse the output string."
9678 msgstr ""
9679
9680 #. type: =head2
9681 #: ../fish/guestfish-actions.pod:2618
9682 msgid "ln"
9683 msgstr ""
9684
9685 #. type: verbatim
9686 #: ../fish/guestfish-actions.pod:2620
9687 #, no-wrap
9688 msgid ""
9689 " ln target linkname\n"
9690 "\n"
9691 msgstr ""
9692
9693 #. type: textblock
9694 #: ../fish/guestfish-actions.pod:2622 ../src/guestfs-actions.pod:3853
9695 msgid "This command creates a hard link using the C<ln> command."
9696 msgstr ""
9697
9698 #. type: =head2
9699 #: ../fish/guestfish-actions.pod:2624
9700 msgid "ln-f"
9701 msgstr ""
9702
9703 #. type: verbatim
9704 #: ../fish/guestfish-actions.pod:2626
9705 #, no-wrap
9706 msgid ""
9707 " ln-f target linkname\n"
9708 "\n"
9709 msgstr ""
9710
9711 #. type: textblock
9712 #: ../fish/guestfish-actions.pod:2628 ../src/guestfs-actions.pod:3866
9713 msgid ""
9714 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
9715 "option removes the link (C<linkname>) if it exists already."
9716 msgstr ""
9717
9718 #. type: =head2
9719 #: ../fish/guestfish-actions.pod:2631
9720 msgid "ln-s"
9721 msgstr ""
9722
9723 #. type: verbatim
9724 #: ../fish/guestfish-actions.pod:2633
9725 #, no-wrap
9726 msgid ""
9727 " ln-s target linkname\n"
9728 "\n"
9729 msgstr ""
9730
9731 #. type: textblock
9732 #: ../fish/guestfish-actions.pod:2635 ../src/guestfs-actions.pod:3880
9733 msgid "This command creates a symbolic link using the C<ln -s> command."
9734 msgstr ""
9735
9736 #. type: =head2
9737 #: ../fish/guestfish-actions.pod:2637
9738 msgid "ln-sf"
9739 msgstr ""
9740
9741 #. type: verbatim
9742 #: ../fish/guestfish-actions.pod:2639
9743 #, no-wrap
9744 msgid ""
9745 " ln-sf target linkname\n"
9746 "\n"
9747 msgstr ""
9748
9749 #. type: textblock
9750 #: ../fish/guestfish-actions.pod:2641 ../src/guestfs-actions.pod:3893
9751 msgid ""
9752 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
9753 "option removes the link (C<linkname>) if it exists already."
9754 msgstr ""
9755
9756 #. type: =head2
9757 #: ../fish/guestfish-actions.pod:2644
9758 msgid "lremovexattr"
9759 msgstr ""
9760
9761 #. type: verbatim
9762 #: ../fish/guestfish-actions.pod:2646
9763 #, no-wrap
9764 msgid ""
9765 " lremovexattr xattr path\n"
9766 "\n"
9767 msgstr ""
9768
9769 #. type: textblock
9770 #: ../fish/guestfish-actions.pod:2648
9771 msgid ""
9772 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
9773 "it removes an extended attribute of the link itself."
9774 msgstr ""
9775
9776 #. type: =head2
9777 #: ../fish/guestfish-actions.pod:2652
9778 msgid "ls"
9779 msgstr ""
9780
9781 #. type: verbatim
9782 #: ../fish/guestfish-actions.pod:2654
9783 #, no-wrap
9784 msgid ""
9785 " ls directory\n"
9786 "\n"
9787 msgstr ""
9788
9789 #. type: textblock
9790 #: ../fish/guestfish-actions.pod:2656 ../src/guestfs-actions.pod:3921
9791 msgid ""
9792 "List the files in C<directory> (relative to the root directory, there is no "
9793 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
9794 msgstr ""
9795
9796 #. type: textblock
9797 #: ../fish/guestfish-actions.pod:2660
9798 msgid ""
9799 "This command is mostly useful for interactive sessions.  Programs should "
9800 "probably use L</readdir> instead."
9801 msgstr ""
9802
9803 #. type: =head2
9804 #: ../fish/guestfish-actions.pod:2663
9805 msgid "lsetxattr"
9806 msgstr ""
9807
9808 #. type: verbatim
9809 #: ../fish/guestfish-actions.pod:2665
9810 #, no-wrap
9811 msgid ""
9812 " lsetxattr xattr val vallen path\n"
9813 "\n"
9814 msgstr ""
9815
9816 #. type: textblock
9817 #: ../fish/guestfish-actions.pod:2667
9818 msgid ""
9819 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
9820 "sets an extended attribute of the link itself."
9821 msgstr ""
9822
9823 #. type: =head2
9824 #: ../fish/guestfish-actions.pod:2671
9825 msgid "lstat"
9826 msgstr ""
9827
9828 #. type: verbatim
9829 #: ../fish/guestfish-actions.pod:2673
9830 #, no-wrap
9831 msgid ""
9832 " lstat path\n"
9833 "\n"
9834 msgstr ""
9835
9836 #. type: textblock
9837 #: ../fish/guestfish-actions.pod:2675 ../fish/guestfish-actions.pod:4483
9838 #: ../src/guestfs-actions.pod:3957 ../src/guestfs-actions.pod:6736
9839 msgid "Returns file information for the given C<path>."
9840 msgstr ""
9841
9842 #. type: textblock
9843 #: ../fish/guestfish-actions.pod:2677
9844 msgid ""
9845 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
9846 "the link is stat-ed, not the file it refers to."
9847 msgstr ""
9848
9849 #. type: textblock
9850 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:3963
9851 msgid "This is the same as the C<lstat(2)> system call."
9852 msgstr ""
9853
9854 #. type: =head2
9855 #: ../fish/guestfish-actions.pod:2683
9856 msgid "lstatlist"
9857 msgstr ""
9858
9859 #. type: verbatim
9860 #: ../fish/guestfish-actions.pod:2685
9861 #, no-wrap
9862 msgid ""
9863 " lstatlist path 'names ...'\n"
9864 "\n"
9865 msgstr ""
9866
9867 #. type: textblock
9868 #: ../fish/guestfish-actions.pod:2687
9869 msgid ""
9870 "This call allows you to perform the L</lstat> operation on multiple files, "
9871 "where all files are in the directory C<path>.  C<names> is the list of files "
9872 "from this directory."
9873 msgstr ""
9874
9875 #. type: textblock
9876 #: ../fish/guestfish-actions.pod:2691 ../src/guestfs-actions.pod:3982
9877 msgid ""
9878 "On return you get a list of stat structs, with a one-to-one correspondence "
9879 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
9880 "then the C<ino> field of that structure is set to C<-1>."
9881 msgstr ""
9882
9883 #. type: textblock
9884 #: ../fish/guestfish-actions.pod:2696
9885 msgid ""
9886 "This call is intended for programs that want to efficiently list a directory "
9887 "contents without making many round-trips.  See also L</lxattrlist> for a "
9888 "similarly efficient call for getting extended attributes.  Very long "
9889 "directory listings might cause the protocol message size to be exceeded, "
9890 "causing this call to fail.  The caller must split up such requests into "
9891 "smaller groups of names."
9892 msgstr ""
9893
9894 #. type: =head2
9895 #: ../fish/guestfish-actions.pod:2704
9896 msgid "luks-add-key"
9897 msgstr ""
9898
9899 #. type: verbatim
9900 #: ../fish/guestfish-actions.pod:2706
9901 #, no-wrap
9902 msgid ""
9903 " luks-add-key device keyslot\n"
9904 "\n"
9905 msgstr ""
9906
9907 #. type: textblock
9908 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4010
9909 msgid ""
9910 "This command adds a new key on LUKS device C<device>.  C<key> is any "
9911 "existing key, and is used to access the device.  C<newkey> is the new key to "
9912 "add.  C<keyslot> is the key slot that will be replaced."
9913 msgstr ""
9914
9915 #. type: textblock
9916 #: ../fish/guestfish-actions.pod:2713
9917 msgid ""
9918 "Note that if C<keyslot> already contains a key, then this command will "
9919 "fail.  You have to use L</luks-kill-slot> first to remove that key."
9920 msgstr ""
9921
9922 #. type: textblock
9923 #: ../fish/guestfish-actions.pod:2717 ../fish/guestfish-actions.pod:2739
9924 #: ../fish/guestfish-actions.pod:2752 ../fish/guestfish-actions.pod:2766
9925 #: ../fish/guestfish-actions.pod:2792 ../fish/guestfish-actions.pod:2802
9926 msgid ""
9927 "This command has one or more key or passphrase parameters.  Guestfish will "
9928 "prompt for these separately."
9929 msgstr ""
9930
9931 #. type: =head2
9932 #: ../fish/guestfish-actions.pod:2720
9933 msgid "luks-close"
9934 msgstr ""
9935
9936 #. type: verbatim
9937 #: ../fish/guestfish-actions.pod:2722
9938 #, no-wrap
9939 msgid ""
9940 " luks-close device\n"
9941 "\n"
9942 msgstr ""
9943
9944 #. type: textblock
9945 #: ../fish/guestfish-actions.pod:2724
9946 msgid ""
9947 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
9948 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
9949 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
9950 "block device."
9951 msgstr ""
9952
9953 #. type: =head2
9954 #: ../fish/guestfish-actions.pod:2730
9955 msgid "luks-format"
9956 msgstr ""
9957
9958 #. type: verbatim
9959 #: ../fish/guestfish-actions.pod:2732
9960 #, no-wrap
9961 msgid ""
9962 " luks-format device keyslot\n"
9963 "\n"
9964 msgstr ""
9965
9966 #. type: textblock
9967 #: ../fish/guestfish-actions.pod:2734 ../src/guestfs-actions.pod:4051
9968 msgid ""
9969 "This command erases existing data on C<device> and formats the device as a "
9970 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
9971 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
9972 msgstr ""
9973
9974 #. type: textblock
9975 #: ../fish/guestfish-actions.pod:2742 ../fish/guestfish-actions.pod:2755
9976 #: ../fish/guestfish-actions.pod:2842 ../fish/guestfish-actions.pod:3503
9977 #: ../fish/guestfish-actions.pod:4029 ../fish/guestfish-actions.pod:4354
9978 #: ../fish/guestfish-actions.pod:4377 ../fish/guestfish-actions.pod:4399
9979 #: ../fish/guestfish-actions.pod:5145 ../src/guestfs-actions.pod:4058
9980 #: ../src/guestfs-actions.pod:4081 ../src/guestfs-actions.pod:4224
9981 #: ../src/guestfs-actions.pod:5327 ../src/guestfs-actions.pod:6115
9982 #: ../src/guestfs-actions.pod:6550 ../src/guestfs-actions.pod:6580
9983 #: ../src/guestfs-actions.pod:6613 ../src/guestfs-actions.pod:7812
9984 msgid ""
9985 "B<This command is dangerous.  Without careful use you can easily destroy all "
9986 "your data>."
9987 msgstr ""
9988
9989 #. type: =head2
9990 #: ../fish/guestfish-actions.pod:2745
9991 msgid "luks-format-cipher"
9992 msgstr ""
9993
9994 #. type: verbatim
9995 #: ../fish/guestfish-actions.pod:2747
9996 #, no-wrap
9997 msgid ""
9998 " luks-format-cipher device keyslot cipher\n"
9999 "\n"
10000 msgstr ""
10001
10002 #. type: textblock
10003 #: ../fish/guestfish-actions.pod:2749
10004 msgid ""
10005 "This command is the same as L</luks-format> but it also allows you to set "
10006 "the C<cipher> used."
10007 msgstr ""
10008
10009 #. type: =head2
10010 #: ../fish/guestfish-actions.pod:2758
10011 msgid "luks-kill-slot"
10012 msgstr ""
10013
10014 #. type: verbatim
10015 #: ../fish/guestfish-actions.pod:2760
10016 #, no-wrap
10017 msgid ""
10018 " luks-kill-slot device keyslot\n"
10019 "\n"
10020 msgstr ""
10021
10022 #. type: textblock
10023 #: ../fish/guestfish-actions.pod:2762 ../src/guestfs-actions.pod:4098
10024 msgid ""
10025 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10026 "device C<device>.  C<key> must be one of the I<other> keys."
10027 msgstr ""
10028
10029 #. type: =head2
10030 #: ../fish/guestfish-actions.pod:2769
10031 msgid "luks-open"
10032 msgstr ""
10033
10034 #. type: verbatim
10035 #: ../fish/guestfish-actions.pod:2771
10036 #, no-wrap
10037 msgid ""
10038 " luks-open device mapname\n"
10039 "\n"
10040 msgstr ""
10041
10042 #. type: textblock
10043 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4118
10044 msgid ""
10045 "This command opens a block device which has been encrypted according to the "
10046 "Linux Unified Key Setup (LUKS) standard."
10047 msgstr ""
10048
10049 #. type: textblock
10050 #: ../fish/guestfish-actions.pod:2776 ../src/guestfs-actions.pod:4121
10051 msgid "C<device> is the encrypted block device or partition."
10052 msgstr ""
10053
10054 #. type: textblock
10055 #: ../fish/guestfish-actions.pod:2778 ../src/guestfs-actions.pod:4123
10056 msgid ""
10057 "The caller must supply one of the keys associated with the LUKS block "
10058 "device, in the C<key> parameter."
10059 msgstr ""
10060
10061 #. type: textblock
10062 #: ../fish/guestfish-actions.pod:2781 ../src/guestfs-actions.pod:4126
10063 msgid ""
10064 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10065 "writes to this block device are decrypted from and encrypted to the "
10066 "underlying C<device> respectively."
10067 msgstr ""
10068
10069 #. type: textblock
10070 #: ../fish/guestfish-actions.pod:2785
10071 msgid ""
10072 "If this block device contains LVM volume groups, then calling L</vgscan> "
10073 "followed by L</vg-activate-all> will make them visible."
10074 msgstr ""
10075
10076 #. type: textblock
10077 #: ../fish/guestfish-actions.pod:2789
10078 msgid "Use L</list-dm-devices> to list all device mapper devices."
10079 msgstr ""
10080
10081 #. type: =head2
10082 #: ../fish/guestfish-actions.pod:2795
10083 msgid "luks-open-ro"
10084 msgstr ""
10085
10086 #. type: verbatim
10087 #: ../fish/guestfish-actions.pod:2797
10088 #, no-wrap
10089 msgid ""
10090 " luks-open-ro device mapname\n"
10091 "\n"
10092 msgstr ""
10093
10094 #. type: textblock
10095 #: ../fish/guestfish-actions.pod:2799
10096 msgid ""
10097 "This is the same as L</luks-open> except that a read-only mapping is created."
10098 msgstr ""
10099
10100 #. type: =head2
10101 #: ../fish/guestfish-actions.pod:2805
10102 msgid "lvcreate"
10103 msgstr ""
10104
10105 #. type: verbatim
10106 #: ../fish/guestfish-actions.pod:2807
10107 #, no-wrap
10108 msgid ""
10109 " lvcreate logvol volgroup mbytes\n"
10110 "\n"
10111 msgstr ""
10112
10113 #. type: textblock
10114 #: ../fish/guestfish-actions.pod:2809 ../src/guestfs-actions.pod:4172
10115 msgid ""
10116 "This creates an LVM logical volume called C<logvol> on the volume group "
10117 "C<volgroup>, with C<size> megabytes."
10118 msgstr ""
10119
10120 #. type: =head2
10121 #: ../fish/guestfish-actions.pod:2812
10122 msgid "lvm-canonical-lv-name"
10123 msgstr ""
10124
10125 #. type: verbatim
10126 #: ../fish/guestfish-actions.pod:2814
10127 #, no-wrap
10128 msgid ""
10129 " lvm-canonical-lv-name lvname\n"
10130 "\n"
10131 msgstr ""
10132
10133 #. type: textblock
10134 #: ../fish/guestfish-actions.pod:2816 ../src/guestfs-actions.pod:4185
10135 msgid ""
10136 "This converts alternative naming schemes for LVs that you might find to the "
10137 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10138 "LV>."
10139 msgstr ""
10140
10141 #. type: textblock
10142 #: ../fish/guestfish-actions.pod:2820 ../src/guestfs-actions.pod:4189
10143 msgid ""
10144 "This command returns an error if the C<lvname> parameter does not refer to a "
10145 "logical volume."
10146 msgstr ""
10147
10148 #. type: textblock
10149 #: ../fish/guestfish-actions.pod:2823
10150 msgid "See also L</is-lv>."
10151 msgstr ""
10152
10153 #. type: =head2
10154 #: ../fish/guestfish-actions.pod:2825
10155 msgid "lvm-clear-filter"
10156 msgstr ""
10157
10158 #. type: verbatim
10159 #: ../fish/guestfish-actions.pod:2827
10160 #, no-wrap
10161 msgid ""
10162 " lvm-clear-filter\n"
10163 "\n"
10164 msgstr ""
10165
10166 #. type: textblock
10167 #: ../fish/guestfish-actions.pod:2829
10168 msgid ""
10169 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
10170 "block device."
10171 msgstr ""
10172
10173 #. type: textblock
10174 #: ../fish/guestfish-actions.pod:2832 ../fish/guestfish-actions.pod:2863
10175 #: ../src/guestfs-actions.pod:4207 ../src/guestfs-actions.pod:4249
10176 msgid ""
10177 "This command also clears the LVM cache and performs a volume group scan."
10178 msgstr ""
10179
10180 #. type: =head2
10181 #: ../fish/guestfish-actions.pod:2835
10182 msgid "lvm-remove-all"
10183 msgstr ""
10184
10185 #. type: verbatim
10186 #: ../fish/guestfish-actions.pod:2837
10187 #, no-wrap
10188 msgid ""
10189 " lvm-remove-all\n"
10190 "\n"
10191 msgstr ""
10192
10193 #. type: textblock
10194 #: ../fish/guestfish-actions.pod:2839 ../src/guestfs-actions.pod:4219
10195 msgid ""
10196 "This command removes all LVM logical volumes, volume groups and physical "
10197 "volumes."
10198 msgstr ""
10199
10200 #. type: =head2
10201 #: ../fish/guestfish-actions.pod:2845
10202 msgid "lvm-set-filter"
10203 msgstr ""
10204
10205 #. type: verbatim
10206 #: ../fish/guestfish-actions.pod:2847
10207 #, no-wrap
10208 msgid ""
10209 " lvm-set-filter 'devices ...'\n"
10210 "\n"
10211 msgstr ""
10212
10213 #. type: textblock
10214 #: ../fish/guestfish-actions.pod:2849 ../src/guestfs-actions.pod:4235
10215 msgid ""
10216 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10217 "block devices in the list C<devices>, and will ignore all other attached "
10218 "block devices."
10219 msgstr ""
10220
10221 #. type: textblock
10222 #: ../fish/guestfish-actions.pod:2853 ../src/guestfs-actions.pod:4239
10223 msgid ""
10224 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10225 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10226 "there are two types of duplication possible: either cloned PVs/VGs which "
10227 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10228 "same name.  In normal operation you cannot create this situation, but you "
10229 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10230 "inside the LVM metadata."
10231 msgstr ""
10232
10233 #. type: textblock
10234 #: ../fish/guestfish-actions.pod:2866 ../src/guestfs-actions.pod:4252
10235 msgid "You can filter whole block devices or individual partitions."
10236 msgstr ""
10237
10238 #. type: textblock
10239 #: ../fish/guestfish-actions.pod:2868 ../src/guestfs-actions.pod:4254
10240 msgid ""
10241 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10242 "filesystem), even if you are not filtering out that VG."
10243 msgstr ""
10244
10245 #. type: =head2
10246 #: ../fish/guestfish-actions.pod:2872
10247 msgid "lvremove"
10248 msgstr ""
10249
10250 #. type: verbatim
10251 #: ../fish/guestfish-actions.pod:2874
10252 #, no-wrap
10253 msgid ""
10254 " lvremove device\n"
10255 "\n"
10256 msgstr ""
10257
10258 #. type: textblock
10259 #: ../fish/guestfish-actions.pod:2876 ../src/guestfs-actions.pod:4268
10260 msgid ""
10261 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10262 "LV, such as C</dev/VG/LV>."
10263 msgstr ""
10264
10265 #. type: textblock
10266 #: ../fish/guestfish-actions.pod:2879 ../src/guestfs-actions.pod:4271
10267 msgid ""
10268 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10269 "dev/VG>."
10270 msgstr ""
10271
10272 #. type: =head2
10273 #: ../fish/guestfish-actions.pod:2882
10274 msgid "lvrename"
10275 msgstr ""
10276
10277 #. type: verbatim
10278 #: ../fish/guestfish-actions.pod:2884
10279 #, no-wrap
10280 msgid ""
10281 " lvrename logvol newlogvol\n"
10282 "\n"
10283 msgstr ""
10284
10285 #. type: textblock
10286 #: ../fish/guestfish-actions.pod:2886 ../src/guestfs-actions.pod:4285
10287 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10288 msgstr ""
10289
10290 #. type: =head2
10291 #: ../fish/guestfish-actions.pod:2888
10292 msgid "lvresize"
10293 msgstr ""
10294
10295 #. type: verbatim
10296 #: ../fish/guestfish-actions.pod:2890
10297 #, no-wrap
10298 msgid ""
10299 " lvresize device mbytes\n"
10300 "\n"
10301 msgstr ""
10302
10303 #. type: textblock
10304 #: ../fish/guestfish-actions.pod:2892 ../src/guestfs-actions.pod:4298
10305 msgid ""
10306 "This resizes (expands or shrinks) an existing LVM logical volume to "
10307 "C<mbytes>.  When reducing, data in the reduced part is lost."
10308 msgstr ""
10309
10310 #. type: =head2
10311 #: ../fish/guestfish-actions.pod:2896
10312 msgid "lvresize-free"
10313 msgstr ""
10314
10315 #. type: verbatim
10316 #: ../fish/guestfish-actions.pod:2898
10317 #, no-wrap
10318 msgid ""
10319 " lvresize-free lv percent\n"
10320 "\n"
10321 msgstr ""
10322
10323 #. type: textblock
10324 #: ../fish/guestfish-actions.pod:2900 ../src/guestfs-actions.pod:4313
10325 msgid ""
10326 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10327 "remaining free space in the volume group.  Commonly you would call this with "
10328 "pc = 100 which expands the logical volume as much as possible, using all "
10329 "remaining free space in the volume group."
10330 msgstr ""
10331
10332 #. type: =head2
10333 #: ../fish/guestfish-actions.pod:2906
10334 msgid "lvs"
10335 msgstr ""
10336
10337 #. type: verbatim
10338 #: ../fish/guestfish-actions.pod:2908
10339 #, no-wrap
10340 msgid ""
10341 " lvs\n"
10342 "\n"
10343 msgstr ""
10344
10345 #. type: textblock
10346 #: ../fish/guestfish-actions.pod:2910 ../src/guestfs-actions.pod:4328
10347 msgid ""
10348 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10349 "(8)> command."
10350 msgstr ""
10351
10352 #. type: textblock
10353 #: ../fish/guestfish-actions.pod:2913 ../src/guestfs-actions.pod:4331
10354 msgid ""
10355 "This returns a list of the logical volume device names (eg. C</dev/"
10356 "VolGroup00/LogVol00>)."
10357 msgstr ""
10358
10359 #. type: textblock
10360 #: ../fish/guestfish-actions.pod:2916
10361 msgid "See also L</lvs-full>, L</list-filesystems>."
10362 msgstr ""
10363
10364 #. type: =head2
10365 #: ../fish/guestfish-actions.pod:2918
10366 msgid "lvs-full"
10367 msgstr ""
10368
10369 #. type: verbatim
10370 #: ../fish/guestfish-actions.pod:2920
10371 #, no-wrap
10372 msgid ""
10373 " lvs-full\n"
10374 "\n"
10375 msgstr ""
10376
10377 #. type: textblock
10378 #: ../fish/guestfish-actions.pod:2922 ../src/guestfs-actions.pod:4347
10379 msgid ""
10380 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10381 "(8)> command.  The \"full\" version includes all fields."
10382 msgstr ""
10383
10384 #. type: =head2
10385 #: ../fish/guestfish-actions.pod:2925
10386 msgid "lvuuid"
10387 msgstr ""
10388
10389 #. type: verbatim
10390 #: ../fish/guestfish-actions.pod:2927
10391 #, no-wrap
10392 msgid ""
10393 " lvuuid device\n"
10394 "\n"
10395 msgstr ""
10396
10397 #. type: textblock
10398 #: ../fish/guestfish-actions.pod:2929 ../src/guestfs-actions.pod:4362
10399 msgid "This command returns the UUID of the LVM LV C<device>."
10400 msgstr ""
10401
10402 #. type: =head2
10403 #: ../fish/guestfish-actions.pod:2931
10404 msgid "lxattrlist"
10405 msgstr ""
10406
10407 #. type: verbatim
10408 #: ../fish/guestfish-actions.pod:2933
10409 #, no-wrap
10410 msgid ""
10411 " lxattrlist path 'names ...'\n"
10412 "\n"
10413 msgstr ""
10414
10415 #. type: textblock
10416 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4376
10417 msgid ""
10418 "This call allows you to get the extended attributes of multiple files, where "
10419 "all files are in the directory C<path>.  C<names> is the list of files from "
10420 "this directory."
10421 msgstr ""
10422
10423 #. type: textblock
10424 #: ../fish/guestfish-actions.pod:2939 ../src/guestfs-actions.pod:4380
10425 msgid ""
10426 "On return you get a flat list of xattr structs which must be interpreted "
10427 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
10428 "C<attrval> in this struct is zero-length to indicate there was an error "
10429 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
10430 "number (the number of following attributes for this file, which could be C<"
10431 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
10432 "for the first named file.  This repeats for the second and subsequent files."
10433 msgstr ""
10434
10435 #. type: textblock
10436 #: ../fish/guestfish-actions.pod:2949
10437 msgid ""
10438 "This call is intended for programs that want to efficiently list a directory "
10439 "contents without making many round-trips.  See also L</lstatlist> for a "
10440 "similarly efficient call for getting standard stats.  Very long directory "
10441 "listings might cause the protocol message size to be exceeded, causing this "
10442 "call to fail.  The caller must split up such requests into smaller groups of "
10443 "names."
10444 msgstr ""
10445
10446 #. type: =head2
10447 #: ../fish/guestfish-actions.pod:2957
10448 msgid "mkdir"
10449 msgstr ""
10450
10451 #. type: verbatim
10452 #: ../fish/guestfish-actions.pod:2959
10453 #, no-wrap
10454 msgid ""
10455 " mkdir path\n"
10456 "\n"
10457 msgstr ""
10458
10459 #. type: textblock
10460 #: ../fish/guestfish-actions.pod:2961 ../src/guestfs-actions.pod:4410
10461 msgid "Create a directory named C<path>."
10462 msgstr ""
10463
10464 #. type: =head2
10465 #: ../fish/guestfish-actions.pod:2963
10466 msgid "mkdir-mode"
10467 msgstr ""
10468
10469 #. type: verbatim
10470 #: ../fish/guestfish-actions.pod:2965
10471 #, no-wrap
10472 msgid ""
10473 " mkdir-mode path mode\n"
10474 "\n"
10475 msgstr ""
10476
10477 #. type: textblock
10478 #: ../fish/guestfish-actions.pod:2967 ../src/guestfs-actions.pod:4423
10479 msgid ""
10480 "This command creates a directory, setting the initial permissions of the "
10481 "directory to C<mode>."
10482 msgstr ""
10483
10484 #. type: textblock
10485 #: ../fish/guestfish-actions.pod:2970 ../src/guestfs-actions.pod:4426
10486 msgid ""
10487 "For common Linux filesystems, the actual mode which is set will be C<mode & "
10488 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
10489 "other ways."
10490 msgstr ""
10491
10492 #. type: textblock
10493 #: ../fish/guestfish-actions.pod:2974
10494 msgid "See also L</mkdir>, L</umask>"
10495 msgstr ""
10496
10497 #. type: =head2
10498 #: ../fish/guestfish-actions.pod:2976
10499 msgid "mkdir-p"
10500 msgstr ""
10501
10502 #. type: verbatim
10503 #: ../fish/guestfish-actions.pod:2978
10504 #, no-wrap
10505 msgid ""
10506 " mkdir-p path\n"
10507 "\n"
10508 msgstr ""
10509
10510 #. type: textblock
10511 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4442
10512 msgid ""
10513 "Create a directory named C<path>, creating any parent directories as "
10514 "necessary.  This is like the C<mkdir -p> shell command."
10515 msgstr ""
10516
10517 #. type: =head2
10518 #: ../fish/guestfish-actions.pod:2983
10519 msgid "mkdtemp"
10520 msgstr ""
10521
10522 #. type: verbatim
10523 #: ../fish/guestfish-actions.pod:2985
10524 #, no-wrap
10525 msgid ""
10526 " mkdtemp template\n"
10527 "\n"
10528 msgstr ""
10529
10530 #. type: textblock
10531 #: ../fish/guestfish-actions.pod:2987 ../src/guestfs-actions.pod:4455
10532 msgid ""
10533 "This command creates a temporary directory.  The C<template> parameter "
10534 "should be a full pathname for the temporary directory name with the final "
10535 "six characters being \"XXXXXX\"."
10536 msgstr ""
10537
10538 #. type: textblock
10539 #: ../fish/guestfish-actions.pod:2992 ../src/guestfs-actions.pod:4460
10540 msgid ""
10541 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
10542 "being suitable for Windows filesystems."
10543 msgstr ""
10544
10545 #. type: textblock
10546 #: ../fish/guestfish-actions.pod:2995 ../src/guestfs-actions.pod:4463
10547 msgid "The name of the temporary directory that was created is returned."
10548 msgstr ""
10549
10550 #. type: textblock
10551 #: ../fish/guestfish-actions.pod:2998 ../src/guestfs-actions.pod:4466
10552 msgid "The temporary directory is created with mode 0700 and is owned by root."
10553 msgstr ""
10554
10555 #. type: textblock
10556 #: ../fish/guestfish-actions.pod:3001 ../src/guestfs-actions.pod:4469
10557 msgid ""
10558 "The caller is responsible for deleting the temporary directory and its "
10559 "contents after use."
10560 msgstr ""
10561
10562 #. type: textblock
10563 #: ../fish/guestfish-actions.pod:3004 ../src/guestfs-actions.pod:4472
10564 msgid "See also: L<mkdtemp(3)>"
10565 msgstr ""
10566
10567 #. type: =head2
10568 #: ../fish/guestfish-actions.pod:3006
10569 msgid "mke2fs-J"
10570 msgstr ""
10571
10572 #. type: verbatim
10573 #: ../fish/guestfish-actions.pod:3008
10574 #, no-wrap
10575 msgid ""
10576 " mke2fs-J fstype blocksize device journal\n"
10577 "\n"
10578 msgstr ""
10579
10580 #. type: textblock
10581 #: ../fish/guestfish-actions.pod:3010 ../src/guestfs-actions.pod:4488
10582 msgid ""
10583 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10584 "C<journal>.  It is equivalent to the command:"
10585 msgstr ""
10586
10587 #. type: verbatim
10588 #: ../fish/guestfish-actions.pod:3014 ../src/guestfs-actions.pod:4492
10589 #, no-wrap
10590 msgid ""
10591 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
10592 "\n"
10593 msgstr ""
10594
10595 #. type: textblock
10596 #: ../fish/guestfish-actions.pod:3016
10597 msgid "See also L</mke2journal>."
10598 msgstr ""
10599
10600 #. type: =head2
10601 #: ../fish/guestfish-actions.pod:3018
10602 msgid "mke2fs-JL"
10603 msgstr ""
10604
10605 #. type: verbatim
10606 #: ../fish/guestfish-actions.pod:3020
10607 #, no-wrap
10608 msgid ""
10609 " mke2fs-JL fstype blocksize device label\n"
10610 "\n"
10611 msgstr ""
10612
10613 #. type: textblock
10614 #: ../fish/guestfish-actions.pod:3022 ../src/guestfs-actions.pod:4509
10615 msgid ""
10616 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10617 "the journal labeled C<label>."
10618 msgstr ""
10619
10620 #. type: textblock
10621 #: ../fish/guestfish-actions.pod:3025
10622 msgid "See also L</mke2journal-L>."
10623 msgstr ""
10624
10625 #. type: =head2
10626 #: ../fish/guestfish-actions.pod:3027
10627 msgid "mke2fs-JU"
10628 msgstr ""
10629
10630 #. type: verbatim
10631 #: ../fish/guestfish-actions.pod:3029
10632 #, no-wrap
10633 msgid ""
10634 " mke2fs-JU fstype blocksize device uuid\n"
10635 "\n"
10636 msgstr ""
10637
10638 #. type: textblock
10639 #: ../fish/guestfish-actions.pod:3031 ../src/guestfs-actions.pod:4527
10640 msgid ""
10641 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10642 "the journal with UUID C<uuid>."
10643 msgstr ""
10644
10645 #. type: textblock
10646 #: ../fish/guestfish-actions.pod:3034
10647 msgid "See also L</mke2journal-U>."
10648 msgstr ""
10649
10650 #. type: =head2
10651 #: ../fish/guestfish-actions.pod:3036
10652 msgid "mke2journal"
10653 msgstr ""
10654
10655 #. type: verbatim
10656 #: ../fish/guestfish-actions.pod:3038
10657 #, no-wrap
10658 msgid ""
10659 " mke2journal blocksize device\n"
10660 "\n"
10661 msgstr ""
10662
10663 #. type: textblock
10664 #: ../fish/guestfish-actions.pod:3040 ../src/guestfs-actions.pod:4543
10665 msgid ""
10666 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
10667 "command:"
10668 msgstr ""
10669
10670 #. type: verbatim
10671 #: ../fish/guestfish-actions.pod:3043 ../src/guestfs-actions.pod:4546
10672 #, no-wrap
10673 msgid ""
10674 " mke2fs -O journal_dev -b blocksize device\n"
10675 "\n"
10676 msgstr ""
10677
10678 #. type: =head2
10679 #: ../fish/guestfish-actions.pod:3045
10680 msgid "mke2journal-L"
10681 msgstr ""
10682
10683 #. type: verbatim
10684 #: ../fish/guestfish-actions.pod:3047
10685 #, no-wrap
10686 msgid ""
10687 " mke2journal-L blocksize label device\n"
10688 "\n"
10689 msgstr ""
10690
10691 #. type: textblock
10692 #: ../fish/guestfish-actions.pod:3049 ../src/guestfs-actions.pod:4560
10693 msgid "This creates an ext2 external journal on C<device> with label C<label>."
10694 msgstr ""
10695
10696 #. type: =head2
10697 #: ../fish/guestfish-actions.pod:3051
10698 msgid "mke2journal-U"
10699 msgstr ""
10700
10701 #. type: verbatim
10702 #: ../fish/guestfish-actions.pod:3053
10703 #, no-wrap
10704 msgid ""
10705 " mke2journal-U blocksize uuid device\n"
10706 "\n"
10707 msgstr ""
10708
10709 #. type: textblock
10710 #: ../fish/guestfish-actions.pod:3055 ../src/guestfs-actions.pod:4574
10711 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
10712 msgstr ""
10713
10714 #. type: =head2
10715 #: ../fish/guestfish-actions.pod:3057
10716 msgid "mkfifo"
10717 msgstr ""
10718
10719 #. type: verbatim
10720 #: ../fish/guestfish-actions.pod:3059
10721 #, no-wrap
10722 msgid ""
10723 " mkfifo mode path\n"
10724 "\n"
10725 msgstr ""
10726
10727 #. type: textblock
10728 #: ../fish/guestfish-actions.pod:3061
10729 msgid ""
10730 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
10731 "is just a convenient wrapper around L</mknod>."
10732 msgstr ""
10733
10734 #. type: =head2
10735 #: ../fish/guestfish-actions.pod:3067
10736 msgid "mkfs"
10737 msgstr ""
10738
10739 #. type: verbatim
10740 #: ../fish/guestfish-actions.pod:3069
10741 #, no-wrap
10742 msgid ""
10743 " mkfs fstype device\n"
10744 "\n"
10745 msgstr ""
10746
10747 #. type: textblock
10748 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4604
10749 msgid ""
10750 "This creates a filesystem on C<device> (usually a partition or LVM logical "
10751 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
10752 msgstr ""
10753
10754 #. type: =head2
10755 #: ../fish/guestfish-actions.pod:3075
10756 msgid "mkfs-b"
10757 msgstr ""
10758
10759 #. type: verbatim
10760 #: ../fish/guestfish-actions.pod:3077
10761 #, no-wrap
10762 msgid ""
10763 " mkfs-b fstype blocksize device\n"
10764 "\n"
10765 msgstr ""
10766
10767 #. type: textblock
10768 #: ../fish/guestfish-actions.pod:3079
10769 msgid ""
10770 "This call is similar to L</mkfs>, but it allows you to control the block "
10771 "size of the resulting filesystem.  Supported block sizes depend on the "
10772 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
10773 msgstr ""
10774
10775 #. type: textblock
10776 #: ../fish/guestfish-actions.pod:3084 ../fish/guestfish-actions.pod:3111
10777 #: ../src/guestfs-actions.pod:4632 ../src/guestfs-actions.pod:4670
10778 msgid ""
10779 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
10780 "cluster size."
10781 msgstr ""
10782
10783 #. type: textblock
10784 #: ../fish/guestfish-actions.pod:3087
10785 msgid ""
10786 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
10787 "instead."
10788 msgstr ""
10789
10790 #. type: =head2
10791 #: ../fish/guestfish-actions.pod:3094
10792 msgid "mkfs-opts"
10793 msgstr ""
10794
10795 #. type: verbatim
10796 #: ../fish/guestfish-actions.pod:3096
10797 #, no-wrap
10798 msgid ""
10799 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
10800 "\n"
10801 msgstr ""
10802
10803 #. type: textblock
10804 #: ../fish/guestfish-actions.pod:3098 ../src/guestfs-actions.pod:4657
10805 msgid ""
10806 "This function creates a filesystem on C<device>.  The filesystem type is "
10807 "C<fstype>, for example C<ext3>."
10808 msgstr ""
10809
10810 #. type: =item
10811 #: ../fish/guestfish-actions.pod:3105 ../src/guestfs-actions.pod:4664
10812 msgid "C<blocksize>"
10813 msgstr ""
10814
10815 #. type: textblock
10816 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4666
10817 msgid ""
10818 "The filesystem block size.  Supported block sizes depend on the filesystem "
10819 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
10820 "filesystems."
10821 msgstr ""
10822
10823 #. type: textblock
10824 #: ../fish/guestfish-actions.pod:3114 ../src/guestfs-actions.pod:4673
10825 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
10826 msgstr ""
10827
10828 #. type: =item
10829 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4675
10830 msgid "C<features>"
10831 msgstr ""
10832
10833 #. type: textblock
10834 #: ../fish/guestfish-actions.pod:3118 ../src/guestfs-actions.pod:4677
10835 msgid "This passes the I<-O> parameter to the external mkfs program."
10836 msgstr ""
10837
10838 #. type: textblock
10839 #: ../fish/guestfish-actions.pod:3120 ../src/guestfs-actions.pod:4679
10840 msgid ""
10841 "For certain filesystem types, this allows extra filesystem features to be "
10842 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
10843 msgstr ""
10844
10845 #. type: textblock
10846 #: ../fish/guestfish-actions.pod:3124 ../src/guestfs-actions.pod:4683
10847 msgid ""
10848 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
10849 "type."
10850 msgstr ""
10851
10852 #. type: =item
10853 #: ../fish/guestfish-actions.pod:3127 ../src/guestfs-actions.pod:4686
10854 msgid "C<inode>"
10855 msgstr ""
10856
10857 #. type: textblock
10858 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4688
10859 msgid ""
10860 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
10861 "sets the inode size (only for ext2/3/4 filesystems at present)."
10862 msgstr ""
10863
10864 #. type: =item
10865 #: ../fish/guestfish-actions.pod:3132 ../src/guestfs-actions.pod:4691
10866 msgid "C<sectorsize>"
10867 msgstr ""
10868
10869 #. type: textblock
10870 #: ../fish/guestfish-actions.pod:3134 ../src/guestfs-actions.pod:4693
10871 msgid ""
10872 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
10873 "sets sector size for ufs filesystem."
10874 msgstr ""
10875
10876 #. type: =head2
10877 #: ../fish/guestfish-actions.pod:3141
10878 msgid "mkmountpoint"
10879 msgstr ""
10880
10881 #. type: verbatim
10882 #: ../fish/guestfish-actions.pod:3143
10883 #, no-wrap
10884 msgid ""
10885 " mkmountpoint exemptpath\n"
10886 "\n"
10887 msgstr ""
10888
10889 #. type: textblock
10890 #: ../fish/guestfish-actions.pod:3145
10891 msgid ""
10892 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
10893 "to create extra mountpoints before mounting the first filesystem."
10894 msgstr ""
10895
10896 #. type: textblock
10897 #: ../fish/guestfish-actions.pod:3149 ../src/guestfs-actions.pod:4736
10898 msgid ""
10899 "These calls are I<only> necessary in some very limited circumstances, mainly "
10900 "the case where you want to mount a mix of unrelated and/or read-only "
10901 "filesystems together."
10902 msgstr ""
10903
10904 #. type: textblock
10905 #: ../fish/guestfish-actions.pod:3153 ../src/guestfs-actions.pod:4740
10906 msgid ""
10907 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
10908 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
10909 "inside that.  You can unpack this as follows in guestfish:"
10910 msgstr ""
10911
10912 #. type: verbatim
10913 #: ../fish/guestfish-actions.pod:3158 ../src/guestfs-actions.pod:4745
10914 #, no-wrap
10915 msgid ""
10916 " add-ro Fedora-11-i686-Live.iso\n"
10917 " run\n"
10918 " mkmountpoint /cd\n"
10919 " mkmountpoint /sqsh\n"
10920 " mkmountpoint /ext3fs\n"
10921 " mount /dev/sda /cd\n"
10922 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
10923 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
10924 "\n"
10925 msgstr ""
10926
10927 #. type: textblock
10928 #: ../fish/guestfish-actions.pod:3167 ../src/guestfs-actions.pod:4754
10929 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
10930 msgstr ""
10931
10932 #. type: textblock
10933 #: ../fish/guestfish-actions.pod:3169
10934 msgid ""
10935 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
10936 "unexpected errors if you try to mix these calls.  It is safest to manually "
10937 "unmount filesystems and remove mountpoints after use."
10938 msgstr ""
10939
10940 #. type: textblock
10941 #: ../fish/guestfish-actions.pod:3173
10942 msgid ""
10943 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
10944 "for this to work for manual mountpoints, you must ensure that the innermost "
10945 "mountpoints have the longest pathnames, as in the example code above."
10946 msgstr ""
10947
10948 #. type: textblock
10949 #: ../fish/guestfish-actions.pod:3178 ../src/guestfs-actions.pod:4765
10950 msgid ""
10951 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
10952 msgstr ""
10953
10954 #. type: textblock
10955 #: ../fish/guestfish-actions.pod:3180
10956 msgid ""
10957 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
10958 "L</umount-all> to be called when the handle is closed which can also trigger "
10959 "these issues."
10960 msgstr ""
10961
10962 #. type: =head2
10963 #: ../fish/guestfish-actions.pod:3184
10964 msgid "mknod"
10965 msgstr ""
10966
10967 #. type: verbatim
10968 #: ../fish/guestfish-actions.pod:3186
10969 #, no-wrap
10970 msgid ""
10971 " mknod mode devmajor devminor path\n"
10972 "\n"
10973 msgstr ""
10974
10975 #. type: textblock
10976 #: ../fish/guestfish-actions.pod:3188 ../src/guestfs-actions.pod:4784
10977 msgid ""
10978 "This call creates block or character special devices, or named pipes (FIFOs)."
10979 msgstr ""
10980
10981 #. type: textblock
10982 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4787
10983 msgid ""
10984 "The C<mode> parameter should be the mode, using the standard constants.  "
10985 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
10986 "used when creating block and character special devices."
10987 msgstr ""
10988
10989 #. type: textblock
10990 #: ../fish/guestfish-actions.pod:3196
10991 msgid ""
10992 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
10993 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
10994 "regular file).  These constants are available in the standard Linux header "
10995 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
10996 "wrappers around this command which bitwise OR in the appropriate constant "
10997 "for you."
10998 msgstr ""
10999
11000 #. type: =head2
11001 #: ../fish/guestfish-actions.pod:3206
11002 msgid "mknod-b"
11003 msgstr ""
11004
11005 #. type: verbatim
11006 #: ../fish/guestfish-actions.pod:3208
11007 #, no-wrap
11008 msgid ""
11009 " mknod-b mode devmajor devminor path\n"
11010 "\n"
11011 msgstr ""
11012
11013 #. type: textblock
11014 #: ../fish/guestfish-actions.pod:3210
11015 msgid ""
11016 "This call creates a block device node called C<path> with mode C<mode> and "
11017 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11018 "wrapper around L</mknod>."
11019 msgstr ""
11020
11021 #. type: =head2
11022 #: ../fish/guestfish-actions.pod:3216
11023 msgid "mknod-c"
11024 msgstr ""
11025
11026 #. type: verbatim
11027 #: ../fish/guestfish-actions.pod:3218
11028 #, no-wrap
11029 msgid ""
11030 " mknod-c mode devmajor devminor path\n"
11031 "\n"
11032 msgstr ""
11033
11034 #. type: textblock
11035 #: ../fish/guestfish-actions.pod:3220
11036 msgid ""
11037 "This call creates a char device node called C<path> with mode C<mode> and "
11038 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11039 "wrapper around L</mknod>."
11040 msgstr ""
11041
11042 #. type: =head2
11043 #: ../fish/guestfish-actions.pod:3226
11044 msgid "mkswap"
11045 msgstr ""
11046
11047 #. type: verbatim
11048 #: ../fish/guestfish-actions.pod:3228
11049 #, no-wrap
11050 msgid ""
11051 " mkswap device\n"
11052 "\n"
11053 msgstr ""
11054
11055 #. type: textblock
11056 #: ../fish/guestfish-actions.pod:3230 ../src/guestfs-actions.pod:4850
11057 msgid "Create a swap partition on C<device>."
11058 msgstr ""
11059
11060 #. type: =head2
11061 #: ../fish/guestfish-actions.pod:3232
11062 msgid "mkswap-L"
11063 msgstr ""
11064
11065 #. type: verbatim
11066 #: ../fish/guestfish-actions.pod:3234
11067 #, no-wrap
11068 msgid ""
11069 " mkswap-L label device\n"
11070 "\n"
11071 msgstr ""
11072
11073 #. type: textblock
11074 #: ../fish/guestfish-actions.pod:3236 ../src/guestfs-actions.pod:4863
11075 msgid "Create a swap partition on C<device> with label C<label>."
11076 msgstr ""
11077
11078 #. type: textblock
11079 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4865
11080 msgid ""
11081 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11082 "sda>), just to a partition.  This appears to be a limitation of the kernel "
11083 "or swap tools."
11084 msgstr ""
11085
11086 #. type: =head2
11087 #: ../fish/guestfish-actions.pod:3242
11088 msgid "mkswap-U"
11089 msgstr ""
11090
11091 #. type: verbatim
11092 #: ../fish/guestfish-actions.pod:3244
11093 #, no-wrap
11094 msgid ""
11095 " mkswap-U uuid device\n"
11096 "\n"
11097 msgstr ""
11098
11099 #. type: textblock
11100 #: ../fish/guestfish-actions.pod:3246 ../src/guestfs-actions.pod:4880
11101 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11102 msgstr ""
11103
11104 #. type: =head2
11105 #: ../fish/guestfish-actions.pod:3248
11106 msgid "mkswap-file"
11107 msgstr ""
11108
11109 #. type: verbatim
11110 #: ../fish/guestfish-actions.pod:3250
11111 #, no-wrap
11112 msgid ""
11113 " mkswap-file path\n"
11114 "\n"
11115 msgstr ""
11116
11117 #. type: textblock
11118 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:4892
11119 msgid "Create a swap file."
11120 msgstr ""
11121
11122 #. type: textblock
11123 #: ../fish/guestfish-actions.pod:3254
11124 msgid ""
11125 "This command just writes a swap file signature to an existing file.  To "
11126 "create the file itself, use something like L</fallocate>."
11127 msgstr ""
11128
11129 #. type: =head2
11130 #: ../fish/guestfish-actions.pod:3257
11131 msgid "modprobe"
11132 msgstr ""
11133
11134 #. type: verbatim
11135 #: ../fish/guestfish-actions.pod:3259
11136 #, no-wrap
11137 msgid ""
11138 " modprobe modulename\n"
11139 "\n"
11140 msgstr ""
11141
11142 #. type: textblock
11143 #: ../fish/guestfish-actions.pod:3261 ../src/guestfs-actions.pod:4907
11144 msgid "This loads a kernel module in the appliance."
11145 msgstr ""
11146
11147 #. type: textblock
11148 #: ../fish/guestfish-actions.pod:3263 ../src/guestfs-actions.pod:4909
11149 msgid ""
11150 "The kernel module must have been whitelisted when libguestfs was built (see "
11151 "C<appliance/kmod.whitelist.in> in the source)."
11152 msgstr ""
11153
11154 #. type: =head2
11155 #: ../fish/guestfish-actions.pod:3266
11156 msgid "mount"
11157 msgstr ""
11158
11159 #. type: verbatim
11160 #: ../fish/guestfish-actions.pod:3268
11161 #, no-wrap
11162 msgid ""
11163 " mount device mountpoint\n"
11164 "\n"
11165 msgstr ""
11166
11167 #. type: textblock
11168 #: ../fish/guestfish-actions.pod:3270 ../src/guestfs-actions.pod:4930
11169 msgid ""
11170 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11171 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11172 "those block devices contain partitions, they will have the usual names (eg. "
11173 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11174 msgstr ""
11175
11176 #. type: textblock
11177 #: ../fish/guestfish-actions.pod:3276 ../src/guestfs-actions.pod:4936
11178 msgid ""
11179 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11180 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11181 "mounted on directories which already exist."
11182 msgstr ""
11183
11184 #. type: textblock
11185 #: ../fish/guestfish-actions.pod:3281 ../src/guestfs-actions.pod:4941
11186 msgid ""
11187 "The mounted filesystem is writable, if we have sufficient permissions on the "
11188 "underlying device."
11189 msgstr ""
11190
11191 #. type: textblock
11192 #: ../fish/guestfish-actions.pod:3284
11193 msgid ""
11194 "B<Important note:> When you use this call, the filesystem options C<sync> "
11195 "and C<noatime> are set implicitly.  This was originally done because we "
11196 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11197 "very large negative performance impact and negligible effect on "
11198 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
11199 "code that needs performance, and instead use L</mount-options> (use an empty "
11200 "string for the first parameter if you don't want any options)."
11201 msgstr ""
11202
11203 #. type: textblock
11204 #: ../fish/guestfish-actions.pod:3294
11205 msgid ""
11206 "I<This function is deprecated.> In new code, use the L</mount_options> call "
11207 "instead."
11208 msgstr ""
11209
11210 #. type: =head2
11211 #: ../fish/guestfish-actions.pod:3301
11212 msgid "mount-9p"
11213 msgstr ""
11214
11215 #. type: verbatim
11216 #: ../fish/guestfish-actions.pod:3303
11217 #, no-wrap
11218 msgid ""
11219 " mount-9p mounttag mountpoint [options:..]\n"
11220 "\n"
11221 msgstr ""
11222
11223 #. type: textblock
11224 #: ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:4973
11225 msgid ""
11226 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
11227 "C<mountpoint>."
11228 msgstr ""
11229
11230 #. type: textblock
11231 #: ../fish/guestfish-actions.pod:3308 ../src/guestfs-actions.pod:4976
11232 msgid ""
11233 "If required, C<trans=virtio> will be automatically added to the options.  "
11234 "Any other options required can be passed in the optional C<options> "
11235 "parameter."
11236 msgstr ""
11237
11238 #. type: =head2
11239 #: ../fish/guestfish-actions.pod:3314
11240 msgid "mount-loop"
11241 msgstr ""
11242
11243 #. type: verbatim
11244 #: ../fish/guestfish-actions.pod:3316
11245 #, no-wrap
11246 msgid ""
11247 " mount-loop file mountpoint\n"
11248 "\n"
11249 msgstr ""
11250
11251 #. type: textblock
11252 #: ../fish/guestfish-actions.pod:3318 ../src/guestfs-actions.pod:5015
11253 msgid ""
11254 "This command lets you mount C<file> (a filesystem image in a file) on a "
11255 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11256 "mountpoint>."
11257 msgstr ""
11258
11259 #. type: =head2
11260 #: ../fish/guestfish-actions.pod:3322
11261 msgid "mount-options"
11262 msgstr ""
11263
11264 #. type: verbatim
11265 #: ../fish/guestfish-actions.pod:3324
11266 #, no-wrap
11267 msgid ""
11268 " mount-options options device mountpoint\n"
11269 "\n"
11270 msgstr ""
11271
11272 #. type: textblock
11273 #: ../fish/guestfish-actions.pod:3326
11274 msgid ""
11275 "This is the same as the L</mount> command, but it allows you to set the "
11276 "mount options as for the L<mount(8)> I<-o> flag."
11277 msgstr ""
11278
11279 #. type: textblock
11280 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5035
11281 msgid ""
11282 "If the C<options> parameter is an empty string, then no options are passed "
11283 "(all options default to whatever the filesystem uses)."
11284 msgstr ""
11285
11286 #. type: =head2
11287 #: ../fish/guestfish-actions.pod:3334
11288 msgid "mount-ro"
11289 msgstr ""
11290
11291 #. type: verbatim
11292 #: ../fish/guestfish-actions.pod:3336
11293 #, no-wrap
11294 msgid ""
11295 " mount-ro device mountpoint\n"
11296 "\n"
11297 msgstr ""
11298
11299 #. type: textblock
11300 #: ../fish/guestfish-actions.pod:3338
11301 msgid ""
11302 "This is the same as the L</mount> command, but it mounts the filesystem with "
11303 "the read-only (I<-o ro>) flag."
11304 msgstr ""
11305
11306 #. type: =head2
11307 #: ../fish/guestfish-actions.pod:3341
11308 msgid "mount-vfs"
11309 msgstr ""
11310
11311 #. type: verbatim
11312 #: ../fish/guestfish-actions.pod:3343
11313 #, no-wrap
11314 msgid ""
11315 " mount-vfs options vfstype device mountpoint\n"
11316 "\n"
11317 msgstr ""
11318
11319 #. type: textblock
11320 #: ../fish/guestfish-actions.pod:3345
11321 msgid ""
11322 "This is the same as the L</mount> command, but it allows you to set both the "
11323 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
11324 msgstr ""
11325
11326 #. type: =head2
11327 #: ../fish/guestfish-actions.pod:3349
11328 msgid "mountpoints"
11329 msgstr ""
11330
11331 #. type: verbatim
11332 #: ../fish/guestfish-actions.pod:3351
11333 #, no-wrap
11334 msgid ""
11335 " mountpoints\n"
11336 "\n"
11337 msgstr ""
11338
11339 #. type: textblock
11340 #: ../fish/guestfish-actions.pod:3353
11341 msgid ""
11342 "This call is similar to L</mounts>.  That call returns a list of devices.  "
11343 "This one returns a hash table (map) of device name to directory where the "
11344 "device is mounted."
11345 msgstr ""
11346
11347 #. type: =head2
11348 #: ../fish/guestfish-actions.pod:3357
11349 msgid "mounts"
11350 msgstr ""
11351
11352 #. type: verbatim
11353 #: ../fish/guestfish-actions.pod:3359
11354 #, no-wrap
11355 msgid ""
11356 " mounts\n"
11357 "\n"
11358 msgstr ""
11359
11360 #. type: textblock
11361 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5096
11362 msgid ""
11363 "This returns the list of currently mounted filesystems.  It returns the list "
11364 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
11365 msgstr ""
11366
11367 #. type: textblock
11368 #: ../fish/guestfish-actions.pod:3364 ../src/guestfs-actions.pod:5099
11369 msgid "Some internal mounts are not shown."
11370 msgstr ""
11371
11372 #. type: textblock
11373 #: ../fish/guestfish-actions.pod:3366
11374 msgid "See also: L</mountpoints>"
11375 msgstr ""
11376
11377 #. type: =head2
11378 #: ../fish/guestfish-actions.pod:3368
11379 msgid "mv"
11380 msgstr ""
11381
11382 #. type: verbatim
11383 #: ../fish/guestfish-actions.pod:3370
11384 #, no-wrap
11385 msgid ""
11386 " mv src dest\n"
11387 "\n"
11388 msgstr ""
11389
11390 #. type: textblock
11391 #: ../fish/guestfish-actions.pod:3372 ../src/guestfs-actions.pod:5116
11392 msgid ""
11393 "This moves a file from C<src> to C<dest> where C<dest> is either a "
11394 "destination filename or destination directory."
11395 msgstr ""
11396
11397 #. type: =head2
11398 #: ../fish/guestfish-actions.pod:3375
11399 msgid "ntfs-3g-probe"
11400 msgstr ""
11401
11402 #. type: verbatim
11403 #: ../fish/guestfish-actions.pod:3377
11404 #, no-wrap
11405 msgid ""
11406 " ntfs-3g-probe true|false device\n"
11407 "\n"
11408 msgstr ""
11409
11410 #. type: textblock
11411 #: ../fish/guestfish-actions.pod:3379 ../src/guestfs-actions.pod:5130
11412 msgid ""
11413 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
11414 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
11415 "write, and some cannot be mounted at all)."
11416 msgstr ""
11417
11418 #. type: textblock
11419 #: ../fish/guestfish-actions.pod:3383 ../src/guestfs-actions.pod:5134
11420 msgid ""
11421 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
11422 "can be mounted read-write.  Set it to false if you want to test if the "
11423 "volume can be mounted read-only."
11424 msgstr ""
11425
11426 #. type: textblock
11427 #: ../fish/guestfish-actions.pod:3387 ../src/guestfs-actions.pod:5138
11428 msgid ""
11429 "The return value is an integer which C<0> if the operation would succeed, or "
11430 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
11431 msgstr ""
11432
11433 #. type: =head2
11434 #: ../fish/guestfish-actions.pod:3391
11435 msgid "ntfsresize"
11436 msgstr ""
11437
11438 #. type: verbatim
11439 #: ../fish/guestfish-actions.pod:3393
11440 #, no-wrap
11441 msgid ""
11442 " ntfsresize device\n"
11443 "\n"
11444 msgstr ""
11445
11446 #. type: textblock
11447 #: ../fish/guestfish-actions.pod:3395 ../fish/guestfish-actions.pod:3419
11448 #: ../src/guestfs-actions.pod:5159 ../src/guestfs-actions.pod:5191
11449 msgid ""
11450 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
11451 "size of the underlying device."
11452 msgstr ""
11453
11454 #. type: textblock
11455 #: ../fish/guestfish-actions.pod:3398 ../src/guestfs-actions.pod:5162
11456 msgid ""
11457 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
11458 "consistency check (for safety).  You have to boot into Windows to perform "
11459 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
11460 "resize filesystems which have been marked in this way.  So in effect it is "
11461 "not possible to call ntfsresize multiple times on a single filesystem "
11462 "without booting into Windows between each resize."
11463 msgstr ""
11464
11465 #. type: textblock
11466 #: ../fish/guestfish-actions.pod:3406 ../fish/guestfish-actions.pod:3445
11467 #: ../src/guestfs-actions.pod:5170 ../src/guestfs-actions.pod:5217
11468 msgid "See also L<ntfsresize(8)>."
11469 msgstr ""
11470
11471 #. type: textblock
11472 #: ../fish/guestfish-actions.pod:3408 ../fish/guestfish-actions.pod:3456
11473 msgid ""
11474 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
11475 "call instead."
11476 msgstr ""
11477
11478 #. type: =head2
11479 #: ../fish/guestfish-actions.pod:3415
11480 msgid "ntfsresize-opts"
11481 msgstr ""
11482
11483 #. type: verbatim
11484 #: ../fish/guestfish-actions.pod:3417
11485 #, no-wrap
11486 msgid ""
11487 " ntfsresize-opts device [size:..] [force:..]\n"
11488 "\n"
11489 msgstr ""
11490
11491 #. type: textblock
11492 #: ../fish/guestfish-actions.pod:3428 ../src/guestfs-actions.pod:5200
11493 msgid ""
11494 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
11495 "resized to fit the container (eg. partition)."
11496 msgstr ""
11497
11498 #. type: =item
11499 #: ../fish/guestfish-actions.pod:3431 ../src/guestfs-actions.pod:5203
11500 msgid "C<force>"
11501 msgstr ""
11502
11503 #. type: textblock
11504 #: ../fish/guestfish-actions.pod:3433 ../src/guestfs-actions.pod:5205
11505 msgid ""
11506 "If this option is true, then force the resize of the filesystem even if the "
11507 "filesystem is marked as requiring a consistency check."
11508 msgstr ""
11509
11510 #. type: textblock
11511 #: ../fish/guestfish-actions.pod:3436
11512 msgid ""
11513 "After the resize operation, the filesystem is always marked as requiring a "
11514 "consistency check (for safety).  You have to boot into Windows to perform "
11515 "this check and clear this condition.  If you I<don't> set the C<force> "
11516 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
11517 "a single filesystem without booting into Windows between each resize."
11518 msgstr ""
11519
11520 #. type: =head2
11521 #: ../fish/guestfish-actions.pod:3449
11522 msgid "ntfsresize-size"
11523 msgstr ""
11524
11525 #. type: verbatim
11526 #: ../fish/guestfish-actions.pod:3451
11527 #, no-wrap
11528 msgid ""
11529 " ntfsresize-size device size\n"
11530 "\n"
11531 msgstr ""
11532
11533 #. type: textblock
11534 #: ../fish/guestfish-actions.pod:3453
11535 msgid ""
11536 "This command is the same as L</ntfsresize> except that it allows you to "
11537 "specify the new size (in bytes) explicitly."
11538 msgstr ""
11539
11540 #. type: =head2
11541 #: ../fish/guestfish-actions.pod:3463
11542 msgid "part-add"
11543 msgstr ""
11544
11545 #. type: verbatim
11546 #: ../fish/guestfish-actions.pod:3465
11547 #, no-wrap
11548 msgid ""
11549 " part-add device prlogex startsect endsect\n"
11550 "\n"
11551 msgstr ""
11552
11553 #. type: textblock
11554 #: ../fish/guestfish-actions.pod:3467
11555 msgid ""
11556 "This command adds a partition to C<device>.  If there is no partition table "
11557 "on the device, call L</part-init> first."
11558 msgstr ""
11559
11560 #. type: textblock
11561 #: ../fish/guestfish-actions.pod:3470 ../src/guestfs-actions.pod:5278
11562 msgid ""
11563 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
11564 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
11565 "C<logical>) and C<e> (or C<extended>) partition types."
11566 msgstr ""
11567
11568 #. type: textblock
11569 #: ../fish/guestfish-actions.pod:3475 ../src/guestfs-actions.pod:5283
11570 msgid ""
11571 "C<startsect> and C<endsect> are the start and end of the partition in "
11572 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
11573 "from the end of the disk (C<-1> is the last sector)."
11574 msgstr ""
11575
11576 #. type: textblock
11577 #: ../fish/guestfish-actions.pod:3479
11578 msgid ""
11579 "Creating a partition which covers the whole disk is not so easy.  Use L</"
11580 "part-disk> to do that."
11581 msgstr ""
11582
11583 #. type: =head2
11584 #: ../fish/guestfish-actions.pod:3482
11585 msgid "part-del"
11586 msgstr ""
11587
11588 #. type: verbatim
11589 #: ../fish/guestfish-actions.pod:3484
11590 #, no-wrap
11591 msgid ""
11592 " part-del device partnum\n"
11593 "\n"
11594 msgstr ""
11595
11596 #. type: textblock
11597 #: ../fish/guestfish-actions.pod:3486 ../src/guestfs-actions.pod:5301
11598 msgid "This command deletes the partition numbered C<partnum> on C<device>."
11599 msgstr ""
11600
11601 #. type: textblock
11602 #: ../fish/guestfish-actions.pod:3488 ../src/guestfs-actions.pod:5303
11603 msgid ""
11604 "Note that in the case of MBR partitioning, deleting an extended partition "
11605 "also deletes any logical partitions it contains."
11606 msgstr ""
11607
11608 #. type: =head2
11609 #: ../fish/guestfish-actions.pod:3492
11610 msgid "part-disk"
11611 msgstr ""
11612
11613 #. type: verbatim
11614 #: ../fish/guestfish-actions.pod:3494
11615 #, no-wrap
11616 msgid ""
11617 " part-disk device parttype\n"
11618 "\n"
11619 msgstr ""
11620
11621 #. type: textblock
11622 #: ../fish/guestfish-actions.pod:3496
11623 msgid ""
11624 "This command is simply a combination of L</part-init> followed by L</part-"
11625 "add> to create a single primary partition covering the whole disk."
11626 msgstr ""
11627
11628 #. type: textblock
11629 #: ../fish/guestfish-actions.pod:3500
11630 msgid ""
11631 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
11632 "possible values are described in L</part-init>."
11633 msgstr ""
11634
11635 #. type: =head2
11636 #: ../fish/guestfish-actions.pod:3506
11637 msgid "part-get-bootable"
11638 msgstr ""
11639
11640 #. type: verbatim
11641 #: ../fish/guestfish-actions.pod:3508
11642 #, no-wrap
11643 msgid ""
11644 " part-get-bootable device partnum\n"
11645 "\n"
11646 msgstr ""
11647
11648 #. type: textblock
11649 #: ../fish/guestfish-actions.pod:3510 ../src/guestfs-actions.pod:5339
11650 msgid ""
11651 "This command returns true if the partition C<partnum> on C<device> has the "
11652 "bootable flag set."
11653 msgstr ""
11654
11655 #. type: textblock
11656 #: ../fish/guestfish-actions.pod:3513
11657 msgid "See also L</part-set-bootable>."
11658 msgstr ""
11659
11660 #. type: =head2
11661 #: ../fish/guestfish-actions.pod:3515
11662 msgid "part-get-mbr-id"
11663 msgstr ""
11664
11665 #. type: verbatim
11666 #: ../fish/guestfish-actions.pod:3517
11667 #, no-wrap
11668 msgid ""
11669 " part-get-mbr-id device partnum\n"
11670 "\n"
11671 msgstr ""
11672
11673 #. type: textblock
11674 #: ../fish/guestfish-actions.pod:3519 ../src/guestfs-actions.pod:5355
11675 msgid ""
11676 "Returns the MBR type byte (also known as the ID byte) from the numbered "
11677 "partition C<partnum>."
11678 msgstr ""
11679
11680 #. type: textblock
11681 #: ../fish/guestfish-actions.pod:3522 ../fish/guestfish-actions.pod:3666
11682 msgid ""
11683 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
11684 "undefined results for other partition table types (see L</part-get-"
11685 "parttype>)."
11686 msgstr ""
11687
11688 #. type: =head2
11689 #: ../fish/guestfish-actions.pod:3526
11690 msgid "part-get-parttype"
11691 msgstr ""
11692
11693 #. type: verbatim
11694 #: ../fish/guestfish-actions.pod:3528
11695 #, no-wrap
11696 msgid ""
11697 " part-get-parttype device\n"
11698 "\n"
11699 msgstr ""
11700
11701 #. type: textblock
11702 #: ../fish/guestfish-actions.pod:3530 ../src/guestfs-actions.pod:5372
11703 msgid ""
11704 "This command examines the partition table on C<device> and returns the "
11705 "partition table type (format) being used."
11706 msgstr ""
11707
11708 #. type: textblock
11709 #: ../fish/guestfish-actions.pod:3533
11710 msgid ""
11711 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
11712 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
11713 "possible, although unusual.  See L</part-init> for a full list."
11714 msgstr ""
11715
11716 #. type: =head2
11717 #: ../fish/guestfish-actions.pod:3538
11718 msgid "part-init"
11719 msgstr ""
11720
11721 #. type: verbatim
11722 #: ../fish/guestfish-actions.pod:3540
11723 #, no-wrap
11724 msgid ""
11725 " part-init device parttype\n"
11726 "\n"
11727 msgstr ""
11728
11729 #. type: textblock
11730 #: ../fish/guestfish-actions.pod:3542 ../src/guestfs-actions.pod:5392
11731 msgid ""
11732 "This creates an empty partition table on C<device> of one of the partition "
11733 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
11734 "(for large disks)."
11735 msgstr ""
11736
11737 #. type: textblock
11738 #: ../fish/guestfish-actions.pod:3546
11739 msgid ""
11740 "Initially there are no partitions.  Following this, you should call L</part-"
11741 "add> for each partition required."
11742 msgstr ""
11743
11744 #. type: textblock
11745 #: ../fish/guestfish-actions.pod:3549 ../src/guestfs-actions.pod:5399
11746 msgid "Possible values for C<parttype> are:"
11747 msgstr ""
11748
11749 #. type: =item
11750 #: ../fish/guestfish-actions.pod:3553 ../src/guestfs-actions.pod:5403
11751 msgid "B<efi>"
11752 msgstr ""
11753
11754 #. type: =item
11755 #: ../fish/guestfish-actions.pod:3555 ../src/guestfs-actions.pod:5405
11756 msgid "B<gpt>"
11757 msgstr ""
11758
11759 #. type: textblock
11760 #: ../fish/guestfish-actions.pod:3557 ../src/guestfs-actions.pod:5407
11761 msgid "Intel EFI / GPT partition table."
11762 msgstr ""
11763
11764 #. type: textblock
11765 #: ../fish/guestfish-actions.pod:3559 ../src/guestfs-actions.pod:5409
11766 msgid ""
11767 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
11768 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
11769 "the C<mbr> format."
11770 msgstr ""
11771
11772 #. type: =item
11773 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5413
11774 msgid "B<mbr>"
11775 msgstr ""
11776
11777 #. type: =item
11778 #: ../fish/guestfish-actions.pod:3565 ../src/guestfs-actions.pod:5415
11779 msgid "B<msdos>"
11780 msgstr ""
11781
11782 #. type: textblock
11783 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5417
11784 msgid ""
11785 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
11786 "Windows.  This partition type will B<only> work for device sizes up to 2 "
11787 "TB.  For large disks we recommend using C<gpt>."
11788 msgstr ""
11789
11790 #. type: textblock
11791 #: ../fish/guestfish-actions.pod:3574 ../src/guestfs-actions.pod:5424
11792 msgid ""
11793 "Other partition table types that may work but are not supported include:"
11794 msgstr ""
11795
11796 #. type: =item
11797 #: ../fish/guestfish-actions.pod:3579 ../src/guestfs-actions.pod:5429
11798 msgid "B<aix>"
11799 msgstr ""
11800
11801 #. type: textblock
11802 #: ../fish/guestfish-actions.pod:3581 ../src/guestfs-actions.pod:5431
11803 msgid "AIX disk labels."
11804 msgstr ""
11805
11806 #. type: =item
11807 #: ../fish/guestfish-actions.pod:3583 ../src/guestfs-actions.pod:5433
11808 msgid "B<amiga>"
11809 msgstr ""
11810
11811 #. type: =item
11812 #: ../fish/guestfish-actions.pod:3585 ../src/guestfs-actions.pod:5435
11813 msgid "B<rdb>"
11814 msgstr ""
11815
11816 #. type: textblock
11817 #: ../fish/guestfish-actions.pod:3587 ../src/guestfs-actions.pod:5437
11818 msgid "Amiga \"Rigid Disk Block\" format."
11819 msgstr ""
11820
11821 #. type: =item
11822 #: ../fish/guestfish-actions.pod:3589 ../src/guestfs-actions.pod:5439
11823 msgid "B<bsd>"
11824 msgstr ""
11825
11826 #. type: textblock
11827 #: ../fish/guestfish-actions.pod:3591 ../src/guestfs-actions.pod:5441
11828 msgid "BSD disk labels."
11829 msgstr ""
11830
11831 #. type: =item
11832 #: ../fish/guestfish-actions.pod:3593 ../src/guestfs-actions.pod:5443
11833 msgid "B<dasd>"
11834 msgstr ""
11835
11836 #. type: textblock
11837 #: ../fish/guestfish-actions.pod:3595 ../src/guestfs-actions.pod:5445
11838 msgid "DASD, used on IBM mainframes."
11839 msgstr ""
11840
11841 #. type: =item
11842 #: ../fish/guestfish-actions.pod:3597 ../src/guestfs-actions.pod:5447
11843 msgid "B<dvh>"
11844 msgstr ""
11845
11846 #. type: textblock
11847 #: ../fish/guestfish-actions.pod:3599 ../src/guestfs-actions.pod:5449
11848 msgid "MIPS/SGI volumes."
11849 msgstr ""
11850
11851 #. type: =item
11852 #: ../fish/guestfish-actions.pod:3601 ../src/guestfs-actions.pod:5451
11853 msgid "B<mac>"
11854 msgstr ""
11855
11856 #. type: textblock
11857 #: ../fish/guestfish-actions.pod:3603 ../src/guestfs-actions.pod:5453
11858 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
11859 msgstr ""
11860
11861 #. type: =item
11862 #: ../fish/guestfish-actions.pod:3605 ../src/guestfs-actions.pod:5455
11863 msgid "B<pc98>"
11864 msgstr ""
11865
11866 #. type: textblock
11867 #: ../fish/guestfish-actions.pod:3607 ../src/guestfs-actions.pod:5457
11868 msgid "NEC PC-98 format, common in Japan apparently."
11869 msgstr ""
11870
11871 #. type: =item
11872 #: ../fish/guestfish-actions.pod:3609 ../src/guestfs-actions.pod:5459
11873 msgid "B<sun>"
11874 msgstr ""
11875
11876 #. type: textblock
11877 #: ../fish/guestfish-actions.pod:3611 ../src/guestfs-actions.pod:5461
11878 msgid "Sun disk labels."
11879 msgstr ""
11880
11881 #. type: =head2
11882 #: ../fish/guestfish-actions.pod:3615
11883 msgid "part-list"
11884 msgstr ""
11885
11886 #. type: verbatim
11887 #: ../fish/guestfish-actions.pod:3617
11888 #, no-wrap
11889 msgid ""
11890 " part-list device\n"
11891 "\n"
11892 msgstr ""
11893
11894 #. type: textblock
11895 #: ../fish/guestfish-actions.pod:3619 ../src/guestfs-actions.pod:5475
11896 msgid ""
11897 "This command parses the partition table on C<device> and returns the list of "
11898 "partitions found."
11899 msgstr ""
11900
11901 #. type: textblock
11902 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5478
11903 msgid "The fields in the returned structure are:"
11904 msgstr ""
11905
11906 #. type: =item
11907 #: ../fish/guestfish-actions.pod:3626 ../src/guestfs-actions.pod:5482
11908 msgid "B<part_num>"
11909 msgstr ""
11910
11911 #. type: textblock
11912 #: ../fish/guestfish-actions.pod:3628 ../src/guestfs-actions.pod:5484
11913 msgid "Partition number, counting from 1."
11914 msgstr ""
11915
11916 #. type: =item
11917 #: ../fish/guestfish-actions.pod:3630 ../src/guestfs-actions.pod:5486
11918 msgid "B<part_start>"
11919 msgstr ""
11920
11921 #. type: textblock
11922 #: ../fish/guestfish-actions.pod:3632
11923 msgid ""
11924 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
11925 "the device's sector size, see L</blockdev-getss>."
11926 msgstr ""
11927
11928 #. type: =item
11929 #: ../fish/guestfish-actions.pod:3635 ../src/guestfs-actions.pod:5491
11930 msgid "B<part_end>"
11931 msgstr ""
11932
11933 #. type: textblock
11934 #: ../fish/guestfish-actions.pod:3637 ../src/guestfs-actions.pod:5493
11935 msgid "End of the partition in bytes."
11936 msgstr ""
11937
11938 #. type: =item
11939 #: ../fish/guestfish-actions.pod:3639 ../src/guestfs-actions.pod:5495
11940 msgid "B<part_size>"
11941 msgstr ""
11942
11943 #. type: textblock
11944 #: ../fish/guestfish-actions.pod:3641 ../src/guestfs-actions.pod:5497
11945 msgid "Size of the partition in bytes."
11946 msgstr ""
11947
11948 #. type: =head2
11949 #: ../fish/guestfish-actions.pod:3645
11950 msgid "part-set-bootable"
11951 msgstr ""
11952
11953 #. type: verbatim
11954 #: ../fish/guestfish-actions.pod:3647
11955 #, no-wrap
11956 msgid ""
11957 " part-set-bootable device partnum true|false\n"
11958 "\n"
11959 msgstr ""
11960
11961 #. type: textblock
11962 #: ../fish/guestfish-actions.pod:3649 ../src/guestfs-actions.pod:5515
11963 msgid ""
11964 "This sets the bootable flag on partition numbered C<partnum> on device "
11965 "C<device>.  Note that partitions are numbered from 1."
11966 msgstr ""
11967
11968 #. type: textblock
11969 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5518
11970 msgid ""
11971 "The bootable flag is used by some operating systems (notably Windows) to "
11972 "determine which partition to boot from.  It is by no means universally "
11973 "recognized."
11974 msgstr ""
11975
11976 #. type: =head2
11977 #: ../fish/guestfish-actions.pod:3656
11978 msgid "part-set-mbr-id"
11979 msgstr ""
11980
11981 #. type: verbatim
11982 #: ../fish/guestfish-actions.pod:3658
11983 #, no-wrap
11984 msgid ""
11985 " part-set-mbr-id device partnum idbyte\n"
11986 "\n"
11987 msgstr ""
11988
11989 #. type: textblock
11990 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5534
11991 msgid ""
11992 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
11993 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
11994 "documentation are in fact hexadecimal numbers, but usually documented "
11995 "without any leading \"0x\" which might be confusing."
11996 msgstr ""
11997
11998 #. type: =head2
11999 #: ../fish/guestfish-actions.pod:3670
12000 msgid "part-set-name"
12001 msgstr ""
12002
12003 #. type: verbatim
12004 #: ../fish/guestfish-actions.pod:3672
12005 #, no-wrap
12006 msgid ""
12007 " part-set-name device partnum name\n"
12008 "\n"
12009 msgstr ""
12010
12011 #. type: textblock
12012 #: ../fish/guestfish-actions.pod:3674 ../src/guestfs-actions.pod:5556
12013 msgid ""
12014 "This sets the partition name on partition numbered C<partnum> on device "
12015 "C<device>.  Note that partitions are numbered from 1."
12016 msgstr ""
12017
12018 #. type: textblock
12019 #: ../fish/guestfish-actions.pod:3677 ../src/guestfs-actions.pod:5559
12020 msgid ""
12021 "The partition name can only be set on certain types of partition table.  "
12022 "This works on C<gpt> but not on C<mbr> partitions."
12023 msgstr ""
12024
12025 #. type: =head2
12026 #: ../fish/guestfish-actions.pod:3680
12027 msgid "part-to-dev"
12028 msgstr ""
12029
12030 #. type: verbatim
12031 #: ../fish/guestfish-actions.pod:3682
12032 #, no-wrap
12033 msgid ""
12034 " part-to-dev partition\n"
12035 "\n"
12036 msgstr ""
12037
12038 #. type: textblock
12039 #: ../fish/guestfish-actions.pod:3684 ../src/guestfs-actions.pod:5572
12040 msgid ""
12041 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12042 "partition number, returning the device name (eg. \"/dev/sdb\")."
12043 msgstr ""
12044
12045 #. type: textblock
12046 #: ../fish/guestfish-actions.pod:3688
12047 msgid ""
12048 "The named partition must exist, for example as a string returned from L</"
12049 "list-partitions>."
12050 msgstr ""
12051
12052 #. type: =head2
12053 #: ../fish/guestfish-actions.pod:3691
12054 msgid "ping-daemon"
12055 msgstr ""
12056
12057 #. type: verbatim
12058 #: ../fish/guestfish-actions.pod:3693
12059 #, no-wrap
12060 msgid ""
12061 " ping-daemon\n"
12062 "\n"
12063 msgstr ""
12064
12065 #. type: textblock
12066 #: ../fish/guestfish-actions.pod:3695 ../src/guestfs-actions.pod:5589
12067 msgid ""
12068 "This is a test probe into the guestfs daemon running inside the qemu "
12069 "subprocess.  Calling this function checks that the daemon responds to the "
12070 "ping message, without affecting the daemon or attached block device(s) in "
12071 "any other way."
12072 msgstr ""
12073
12074 #. type: =head2
12075 #: ../fish/guestfish-actions.pod:3700
12076 msgid "pread"
12077 msgstr ""
12078
12079 #. type: verbatim
12080 #: ../fish/guestfish-actions.pod:3702
12081 #, no-wrap
12082 msgid ""
12083 " pread path count offset\n"
12084 "\n"
12085 msgstr ""
12086
12087 #. type: textblock
12088 #: ../fish/guestfish-actions.pod:3704 ../src/guestfs-actions.pod:5607
12089 msgid ""
12090 "This command lets you read part of a file.  It reads C<count> bytes of the "
12091 "file, starting at C<offset>, from file C<path>."
12092 msgstr ""
12093
12094 #. type: textblock
12095 #: ../fish/guestfish-actions.pod:3707 ../fish/guestfish-actions.pod:3722
12096 #: ../src/guestfs-actions.pod:5610 ../src/guestfs-actions.pod:5636
12097 msgid ""
12098 "This may read fewer bytes than requested.  For further details see the "
12099 "L<pread(2)> system call."
12100 msgstr ""
12101
12102 #. type: textblock
12103 #: ../fish/guestfish-actions.pod:3710
12104 msgid "See also L</pwrite>, L</pread-device>."
12105 msgstr ""
12106
12107 #. type: =head2
12108 #: ../fish/guestfish-actions.pod:3715
12109 msgid "pread-device"
12110 msgstr ""
12111
12112 #. type: verbatim
12113 #: ../fish/guestfish-actions.pod:3717
12114 #, no-wrap
12115 msgid ""
12116 " pread-device device count offset\n"
12117 "\n"
12118 msgstr ""
12119
12120 #. type: textblock
12121 #: ../fish/guestfish-actions.pod:3719 ../src/guestfs-actions.pod:5633
12122 msgid ""
12123 "This command lets you read part of a file.  It reads C<count> bytes of "
12124 "C<device>, starting at C<offset>."
12125 msgstr ""
12126
12127 #. type: textblock
12128 #: ../fish/guestfish-actions.pod:3725
12129 msgid "See also L</pread>."
12130 msgstr ""
12131
12132 #. type: =head2
12133 #: ../fish/guestfish-actions.pod:3730
12134 msgid "pvcreate"
12135 msgstr ""
12136
12137 #. type: verbatim
12138 #: ../fish/guestfish-actions.pod:3732
12139 #, no-wrap
12140 msgid ""
12141 " pvcreate device\n"
12142 "\n"
12143 msgstr ""
12144
12145 #. type: textblock
12146 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5656
12147 msgid ""
12148 "This creates an LVM physical volume on the named C<device>, where C<device> "
12149 "should usually be a partition name such as C</dev/sda1>."
12150 msgstr ""
12151
12152 #. type: =head2
12153 #: ../fish/guestfish-actions.pod:3738
12154 msgid "pvremove"
12155 msgstr ""
12156
12157 #. type: verbatim
12158 #: ../fish/guestfish-actions.pod:3740
12159 #, no-wrap
12160 msgid ""
12161 " pvremove device\n"
12162 "\n"
12163 msgstr ""
12164
12165 #. type: textblock
12166 #: ../fish/guestfish-actions.pod:3742 ../src/guestfs-actions.pod:5670
12167 msgid ""
12168 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12169 "it."
12170 msgstr ""
12171
12172 #. type: textblock
12173 #: ../fish/guestfish-actions.pod:3745 ../src/guestfs-actions.pod:5673
12174 msgid ""
12175 "The implementation uses the C<pvremove> command which refuses to wipe "
12176 "physical volumes that contain any volume groups, so you have to remove those "
12177 "first."
12178 msgstr ""
12179
12180 #. type: =head2
12181 #: ../fish/guestfish-actions.pod:3749
12182 msgid "pvresize"
12183 msgstr ""
12184
12185 #. type: verbatim
12186 #: ../fish/guestfish-actions.pod:3751
12187 #, no-wrap
12188 msgid ""
12189 " pvresize device\n"
12190 "\n"
12191 msgstr ""
12192
12193 #. type: textblock
12194 #: ../fish/guestfish-actions.pod:3753 ../src/guestfs-actions.pod:5687
12195 msgid ""
12196 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12197 "the new size of the underlying device."
12198 msgstr ""
12199
12200 #. type: =head2
12201 #: ../fish/guestfish-actions.pod:3756
12202 msgid "pvresize-size"
12203 msgstr ""
12204
12205 #. type: verbatim
12206 #: ../fish/guestfish-actions.pod:3758
12207 #, no-wrap
12208 msgid ""
12209 " pvresize-size device size\n"
12210 "\n"
12211 msgstr ""
12212
12213 #. type: textblock
12214 #: ../fish/guestfish-actions.pod:3760
12215 msgid ""
12216 "This command is the same as L</pvresize> except that it allows you to "
12217 "specify the new size (in bytes) explicitly."
12218 msgstr ""
12219
12220 #. type: =head2
12221 #: ../fish/guestfish-actions.pod:3763
12222 msgid "pvs"
12223 msgstr ""
12224
12225 #. type: verbatim
12226 #: ../fish/guestfish-actions.pod:3765
12227 #, no-wrap
12228 msgid ""
12229 " pvs\n"
12230 "\n"
12231 msgstr ""
12232
12233 #. type: textblock
12234 #: ../fish/guestfish-actions.pod:3767 ../src/guestfs-actions.pod:5713
12235 msgid ""
12236 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12237 "(8)> command."
12238 msgstr ""
12239
12240 #. type: textblock
12241 #: ../fish/guestfish-actions.pod:3770 ../src/guestfs-actions.pod:5716
12242 msgid ""
12243 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12244 "sda2>)."
12245 msgstr ""
12246
12247 #. type: textblock
12248 #: ../fish/guestfish-actions.pod:3773
12249 msgid "See also L</pvs-full>."
12250 msgstr ""
12251
12252 #. type: =head2
12253 #: ../fish/guestfish-actions.pod:3775
12254 msgid "pvs-full"
12255 msgstr ""
12256
12257 #. type: verbatim
12258 #: ../fish/guestfish-actions.pod:3777
12259 #, no-wrap
12260 msgid ""
12261 " pvs-full\n"
12262 "\n"
12263 msgstr ""
12264
12265 #. type: textblock
12266 #: ../fish/guestfish-actions.pod:3779 ../src/guestfs-actions.pod:5732
12267 msgid ""
12268 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12269 "(8)> command.  The \"full\" version includes all fields."
12270 msgstr ""
12271
12272 #. type: =head2
12273 #: ../fish/guestfish-actions.pod:3782
12274 msgid "pvuuid"
12275 msgstr ""
12276
12277 #. type: verbatim
12278 #: ../fish/guestfish-actions.pod:3784
12279 #, no-wrap
12280 msgid ""
12281 " pvuuid device\n"
12282 "\n"
12283 msgstr ""
12284
12285 #. type: textblock
12286 #: ../fish/guestfish-actions.pod:3786 ../src/guestfs-actions.pod:5747
12287 msgid "This command returns the UUID of the LVM PV C<device>."
12288 msgstr ""
12289
12290 #. type: =head2
12291 #: ../fish/guestfish-actions.pod:3788
12292 msgid "pwrite"
12293 msgstr ""
12294
12295 #. type: verbatim
12296 #: ../fish/guestfish-actions.pod:3790
12297 #, no-wrap
12298 msgid ""
12299 " pwrite path content offset\n"
12300 "\n"
12301 msgstr ""
12302
12303 #. type: textblock
12304 #: ../fish/guestfish-actions.pod:3792 ../src/guestfs-actions.pod:5763
12305 msgid ""
12306 "This command writes to part of a file.  It writes the data buffer C<content> "
12307 "to the file C<path> starting at offset C<offset>."
12308 msgstr ""
12309
12310 #. type: textblock
12311 #: ../fish/guestfish-actions.pod:3795 ../src/guestfs-actions.pod:5766
12312 msgid ""
12313 "This command implements the L<pwrite(2)> system call, and like that system "
12314 "call it may not write the full data requested.  The return value is the "
12315 "number of bytes that were actually written to the file.  This could even be "
12316 "0, although short writes are unlikely for regular files in ordinary "
12317 "circumstances."
12318 msgstr ""
12319
12320 #. type: textblock
12321 #: ../fish/guestfish-actions.pod:3801
12322 msgid "See also L</pread>, L</pwrite-device>."
12323 msgstr ""
12324
12325 #. type: =head2
12326 #: ../fish/guestfish-actions.pod:3806
12327 msgid "pwrite-device"
12328 msgstr ""
12329
12330 #. type: verbatim
12331 #: ../fish/guestfish-actions.pod:3808
12332 #, no-wrap
12333 msgid ""
12334 " pwrite-device device content offset\n"
12335 "\n"
12336 msgstr ""
12337
12338 #. type: textblock
12339 #: ../fish/guestfish-actions.pod:3810 ../src/guestfs-actions.pod:5790
12340 msgid ""
12341 "This command writes to part of a device.  It writes the data buffer "
12342 "C<content> to C<device> starting at offset C<offset>."
12343 msgstr ""
12344
12345 #. type: textblock
12346 #: ../fish/guestfish-actions.pod:3813 ../src/guestfs-actions.pod:5793
12347 msgid ""
12348 "This command implements the L<pwrite(2)> system call, and like that system "
12349 "call it may not write the full data requested (although short writes to disk "
12350 "devices and partitions are probably impossible with standard Linux kernels)."
12351 msgstr ""
12352
12353 #. type: textblock
12354 #: ../fish/guestfish-actions.pod:3818
12355 msgid "See also L</pwrite>."
12356 msgstr ""
12357
12358 #. type: =head2
12359 #: ../fish/guestfish-actions.pod:3823
12360 msgid "read-file"
12361 msgstr ""
12362
12363 #. type: verbatim
12364 #: ../fish/guestfish-actions.pod:3825
12365 #, no-wrap
12366 msgid ""
12367 " read-file path\n"
12368 "\n"
12369 msgstr ""
12370
12371 #. type: textblock
12372 #: ../fish/guestfish-actions.pod:3827 ../src/guestfs-actions.pod:5814
12373 msgid "This calls returns the contents of the file C<path> as a buffer."
12374 msgstr ""
12375
12376 #. type: textblock
12377 #: ../fish/guestfish-actions.pod:3830
12378 msgid ""
12379 "Unlike L</cat>, this function can correctly handle files that contain "
12380 "embedded ASCII NUL characters.  However unlike L</download>, this function "
12381 "is limited in the total size of file that can be handled."
12382 msgstr ""
12383
12384 #. type: =head2
12385 #: ../fish/guestfish-actions.pod:3838
12386 msgid "read-lines"
12387 msgstr ""
12388
12389 #. type: verbatim
12390 #: ../fish/guestfish-actions.pod:3840
12391 #, no-wrap
12392 msgid ""
12393 " read-lines path\n"
12394 "\n"
12395 msgstr ""
12396
12397 #. type: textblock
12398 #: ../fish/guestfish-actions.pod:3844 ../src/guestfs-actions.pod:5839
12399 msgid ""
12400 "The file contents are returned as a list of lines.  Trailing C<LF> and "
12401 "C<CRLF> character sequences are I<not> returned."
12402 msgstr ""
12403
12404 #. type: textblock
12405 #: ../fish/guestfish-actions.pod:3847
12406 msgid ""
12407 "Note that this function cannot correctly handle binary files (specifically, "
12408 "files containing C<\\0> character which is treated as end of line).  For "
12409 "those you need to use the L</read-file> function which has a more complex "
12410 "interface."
12411 msgstr ""
12412
12413 #. type: =head2
12414 #: ../fish/guestfish-actions.pod:3852
12415 msgid "readdir"
12416 msgstr ""
12417
12418 #. type: verbatim
12419 #: ../fish/guestfish-actions.pod:3854
12420 #, no-wrap
12421 msgid ""
12422 " readdir dir\n"
12423 "\n"
12424 msgstr ""
12425
12426 #. type: textblock
12427 #: ../fish/guestfish-actions.pod:3856 ../src/guestfs-actions.pod:5859
12428 msgid "This returns the list of directory entries in directory C<dir>."
12429 msgstr ""
12430
12431 #. type: textblock
12432 #: ../fish/guestfish-actions.pod:3858 ../src/guestfs-actions.pod:5861
12433 msgid ""
12434 "All entries in the directory are returned, including C<.> and C<..>.  The "
12435 "entries are I<not> sorted, but returned in the same order as the underlying "
12436 "filesystem."
12437 msgstr ""
12438
12439 #. type: textblock
12440 #: ../fish/guestfish-actions.pod:3862 ../src/guestfs-actions.pod:5865
12441 msgid ""
12442 "Also this call returns basic file type information about each file.  The "
12443 "C<ftyp> field will contain one of the following characters:"
12444 msgstr ""
12445
12446 #. type: =item
12447 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5870
12448 msgid "'b'"
12449 msgstr ""
12450
12451 #. type: textblock
12452 #: ../fish/guestfish-actions.pod:3869 ../src/guestfs-actions.pod:5872
12453 msgid "Block special"
12454 msgstr ""
12455
12456 #. type: =item
12457 #: ../fish/guestfish-actions.pod:3871 ../src/guestfs-actions.pod:5874
12458 msgid "'c'"
12459 msgstr ""
12460
12461 #. type: textblock
12462 #: ../fish/guestfish-actions.pod:3873 ../src/guestfs-actions.pod:5876
12463 msgid "Char special"
12464 msgstr ""
12465
12466 #. type: =item
12467 #: ../fish/guestfish-actions.pod:3875 ../src/guestfs-actions.pod:5878
12468 msgid "'d'"
12469 msgstr ""
12470
12471 #. type: textblock
12472 #: ../fish/guestfish-actions.pod:3877 ../src/guestfs-actions.pod:5880
12473 msgid "Directory"
12474 msgstr ""
12475
12476 #. type: =item
12477 #: ../fish/guestfish-actions.pod:3879 ../src/guestfs-actions.pod:5882
12478 msgid "'f'"
12479 msgstr ""
12480
12481 #. type: textblock
12482 #: ../fish/guestfish-actions.pod:3881 ../src/guestfs-actions.pod:5884
12483 msgid "FIFO (named pipe)"
12484 msgstr ""
12485
12486 #. type: =item
12487 #: ../fish/guestfish-actions.pod:3883 ../src/guestfs-actions.pod:5886
12488 msgid "'l'"
12489 msgstr ""
12490
12491 #. type: textblock
12492 #: ../fish/guestfish-actions.pod:3885 ../src/guestfs-actions.pod:5888
12493 msgid "Symbolic link"
12494 msgstr ""
12495
12496 #. type: =item
12497 #: ../fish/guestfish-actions.pod:3887 ../src/guestfs-actions.pod:5890
12498 msgid "'r'"
12499 msgstr ""
12500
12501 #. type: textblock
12502 #: ../fish/guestfish-actions.pod:3889 ../src/guestfs-actions.pod:5892
12503 msgid "Regular file"
12504 msgstr ""
12505
12506 #. type: =item
12507 #: ../fish/guestfish-actions.pod:3891 ../src/guestfs-actions.pod:5894
12508 msgid "'s'"
12509 msgstr ""
12510
12511 #. type: textblock
12512 #: ../fish/guestfish-actions.pod:3893 ../src/guestfs-actions.pod:5896
12513 msgid "Socket"
12514 msgstr ""
12515
12516 #. type: =item
12517 #: ../fish/guestfish-actions.pod:3895 ../src/guestfs-actions.pod:5898
12518 msgid "'u'"
12519 msgstr ""
12520
12521 #. type: textblock
12522 #: ../fish/guestfish-actions.pod:3897 ../src/guestfs-actions.pod:5900
12523 msgid "Unknown file type"
12524 msgstr ""
12525
12526 #. type: =item
12527 #: ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:5902
12528 msgid "'?'"
12529 msgstr ""
12530
12531 #. type: textblock
12532 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:5904
12533 msgid ""
12534 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
12535 msgstr ""
12536
12537 #. type: textblock
12538 #: ../fish/guestfish-actions.pod:3906
12539 msgid ""
12540 "This function is primarily intended for use by programs.  To get a simple "
12541 "list of names, use L</ls>.  To get a printable directory for human "
12542 "consumption, use L</ll>."
12543 msgstr ""
12544
12545 #. type: =head2
12546 #: ../fish/guestfish-actions.pod:3910
12547 msgid "readlink"
12548 msgstr ""
12549
12550 #. type: verbatim
12551 #: ../fish/guestfish-actions.pod:3912
12552 #, no-wrap
12553 msgid ""
12554 " readlink path\n"
12555 "\n"
12556 msgstr ""
12557
12558 #. type: textblock
12559 #: ../fish/guestfish-actions.pod:3914 ../src/guestfs-actions.pod:5925
12560 msgid "This command reads the target of a symbolic link."
12561 msgstr ""
12562
12563 #. type: =head2
12564 #: ../fish/guestfish-actions.pod:3916
12565 msgid "readlinklist"
12566 msgstr ""
12567
12568 #. type: verbatim
12569 #: ../fish/guestfish-actions.pod:3918
12570 #, no-wrap
12571 msgid ""
12572 " readlinklist path 'names ...'\n"
12573 "\n"
12574 msgstr ""
12575
12576 #. type: textblock
12577 #: ../fish/guestfish-actions.pod:3920 ../src/guestfs-actions.pod:5939
12578 msgid ""
12579 "This call allows you to do a C<readlink> operation on multiple files, where "
12580 "all files are in the directory C<path>.  C<names> is the list of files from "
12581 "this directory."
12582 msgstr ""
12583
12584 #. type: textblock
12585 #: ../fish/guestfish-actions.pod:3924 ../src/guestfs-actions.pod:5943
12586 msgid ""
12587 "On return you get a list of strings, with a one-to-one correspondence to the "
12588 "C<names> list.  Each string is the value of the symbolic link."
12589 msgstr ""
12590
12591 #. type: textblock
12592 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:5947
12593 msgid ""
12594 "If the C<readlink(2)> operation fails on any name, then the corresponding "
12595 "result string is the empty string C<\"\">.  However the whole operation is "
12596 "completed even if there were C<readlink(2)> errors, and so you can call this "
12597 "function with names where you don't know if they are symbolic links already "
12598 "(albeit slightly less efficient)."
12599 msgstr ""
12600
12601 #. type: textblock
12602 #: ../fish/guestfish-actions.pod:3935 ../src/guestfs-actions.pod:5954
12603 msgid ""
12604 "This call is intended for programs that want to efficiently list a directory "
12605 "contents without making many round-trips.  Very long directory listings "
12606 "might cause the protocol message size to be exceeded, causing this call to "
12607 "fail.  The caller must split up such requests into smaller groups of names."
12608 msgstr ""
12609
12610 #. type: =head2
12611 #: ../fish/guestfish-actions.pod:3942
12612 msgid "realpath"
12613 msgstr ""
12614
12615 #. type: verbatim
12616 #: ../fish/guestfish-actions.pod:3944
12617 #, no-wrap
12618 msgid ""
12619 " realpath path\n"
12620 "\n"
12621 msgstr ""
12622
12623 #. type: textblock
12624 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:5973
12625 msgid ""
12626 "Return the canonicalized absolute pathname of C<path>.  The returned path "
12627 "has no C<.>, C<..> or symbolic link path elements."
12628 msgstr ""
12629
12630 #. type: =head2
12631 #: ../fish/guestfish-actions.pod:3949
12632 msgid "removexattr"
12633 msgstr ""
12634
12635 #. type: verbatim
12636 #: ../fish/guestfish-actions.pod:3951
12637 #, no-wrap
12638 msgid ""
12639 " removexattr xattr path\n"
12640 "\n"
12641 msgstr ""
12642
12643 #. type: textblock
12644 #: ../fish/guestfish-actions.pod:3953 ../src/guestfs-actions.pod:5988
12645 msgid ""
12646 "This call removes the extended attribute named C<xattr> of the file C<path>."
12647 msgstr ""
12648
12649 #. type: textblock
12650 #: ../fish/guestfish-actions.pod:3956
12651 msgid "See also: L</lremovexattr>, L<attr(5)>."
12652 msgstr ""
12653
12654 #. type: =head2
12655 #: ../fish/guestfish-actions.pod:3958
12656 msgid "resize2fs"
12657 msgstr ""
12658
12659 #. type: verbatim
12660 #: ../fish/guestfish-actions.pod:3960
12661 #, no-wrap
12662 msgid ""
12663 " resize2fs device\n"
12664 "\n"
12665 msgstr ""
12666
12667 #. type: textblock
12668 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6003
12669 msgid ""
12670 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
12671 "underlying device."
12672 msgstr ""
12673
12674 #. type: textblock
12675 #: ../fish/guestfish-actions.pod:3965
12676 msgid ""
12677 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
12678 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
12679 "gives an error about this and sometimes not.  In any case, it is always safe "
12680 "to call L</e2fsck-f> before calling this function."
12681 msgstr ""
12682
12683 #. type: =head2
12684 #: ../fish/guestfish-actions.pod:3971
12685 msgid "resize2fs-M"
12686 msgstr ""
12687
12688 #. type: verbatim
12689 #: ../fish/guestfish-actions.pod:3973
12690 #, no-wrap
12691 msgid ""
12692 " resize2fs-M device\n"
12693 "\n"
12694 msgstr ""
12695
12696 #. type: textblock
12697 #: ../fish/guestfish-actions.pod:3975
12698 msgid ""
12699 "This command is the same as L</resize2fs>, but the filesystem is resized to "
12700 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
12701 "command."
12702 msgstr ""
12703
12704 #. type: textblock
12705 #: ../fish/guestfish-actions.pod:3979
12706 msgid ""
12707 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
12708 "and read the C<Block size> and C<Block count> values.  These two numbers, "
12709 "multiplied together, give the resulting size of the minimal filesystem in "
12710 "bytes."
12711 msgstr ""
12712
12713 #. type: =head2
12714 #: ../fish/guestfish-actions.pod:3984
12715 msgid "resize2fs-size"
12716 msgstr ""
12717
12718 #. type: verbatim
12719 #: ../fish/guestfish-actions.pod:3986
12720 #, no-wrap
12721 msgid ""
12722 " resize2fs-size device size\n"
12723 "\n"
12724 msgstr ""
12725
12726 #. type: textblock
12727 #: ../fish/guestfish-actions.pod:3988
12728 msgid ""
12729 "This command is the same as L</resize2fs> except that it allows you to "
12730 "specify the new size (in bytes) explicitly."
12731 msgstr ""
12732
12733 #. type: =head2
12734 #: ../fish/guestfish-actions.pod:3991
12735 msgid "rm"
12736 msgstr ""
12737
12738 #. type: verbatim
12739 #: ../fish/guestfish-actions.pod:3993
12740 #, no-wrap
12741 msgid ""
12742 " rm path\n"
12743 "\n"
12744 msgstr ""
12745
12746 #. type: textblock
12747 #: ../fish/guestfish-actions.pod:3995 ../src/guestfs-actions.pod:6055
12748 msgid "Remove the single file C<path>."
12749 msgstr ""
12750
12751 #. type: =head2
12752 #: ../fish/guestfish-actions.pod:3997
12753 msgid "rm-rf"
12754 msgstr ""
12755
12756 #. type: verbatim
12757 #: ../fish/guestfish-actions.pod:3999
12758 #, no-wrap
12759 msgid ""
12760 " rm-rf path\n"
12761 "\n"
12762 msgstr ""
12763
12764 #. type: textblock
12765 #: ../fish/guestfish-actions.pod:4001 ../src/guestfs-actions.pod:6067
12766 msgid ""
12767 "Remove the file or directory C<path>, recursively removing the contents if "
12768 "its a directory.  This is like the C<rm -rf> shell command."
12769 msgstr ""
12770
12771 #. type: =head2
12772 #: ../fish/guestfish-actions.pod:4005
12773 msgid "rmdir"
12774 msgstr ""
12775
12776 #. type: verbatim
12777 #: ../fish/guestfish-actions.pod:4007
12778 #, no-wrap
12779 msgid ""
12780 " rmdir path\n"
12781 "\n"
12782 msgstr ""
12783
12784 #. type: textblock
12785 #: ../fish/guestfish-actions.pod:4009 ../src/guestfs-actions.pod:6081
12786 msgid "Remove the single directory C<path>."
12787 msgstr ""
12788
12789 #. type: =head2
12790 #: ../fish/guestfish-actions.pod:4011
12791 msgid "rmmountpoint"
12792 msgstr ""
12793
12794 #. type: verbatim
12795 #: ../fish/guestfish-actions.pod:4013
12796 #, no-wrap
12797 msgid ""
12798 " rmmountpoint exemptpath\n"
12799 "\n"
12800 msgstr ""
12801
12802 #. type: textblock
12803 #: ../fish/guestfish-actions.pod:4015
12804 msgid ""
12805 "This calls removes a mountpoint that was previously created with L</"
12806 "mkmountpoint>.  See L</mkmountpoint> for full details."
12807 msgstr ""
12808
12809 #. type: =head2
12810 #: ../fish/guestfish-actions.pod:4019
12811 msgid "scrub-device"
12812 msgstr ""
12813
12814 #. type: verbatim
12815 #: ../fish/guestfish-actions.pod:4021
12816 #, no-wrap
12817 msgid ""
12818 " scrub-device device\n"
12819 "\n"
12820 msgstr ""
12821
12822 #. type: textblock
12823 #: ../fish/guestfish-actions.pod:4023 ../src/guestfs-actions.pod:6107
12824 msgid ""
12825 "This command writes patterns over C<device> to make data retrieval more "
12826 "difficult."
12827 msgstr ""
12828
12829 #. type: textblock
12830 #: ../fish/guestfish-actions.pod:4026 ../fish/guestfish-actions.pod:4041
12831 #: ../fish/guestfish-actions.pod:4054 ../src/guestfs-actions.pod:6110
12832 #: ../src/guestfs-actions.pod:6131 ../src/guestfs-actions.pod:6150
12833 msgid ""
12834 "It is an interface to the L<scrub(1)> program.  See that manual page for "
12835 "more details."
12836 msgstr ""
12837
12838 #. type: =head2
12839 #: ../fish/guestfish-actions.pod:4032
12840 msgid "scrub-file"
12841 msgstr ""
12842
12843 #. type: verbatim
12844 #: ../fish/guestfish-actions.pod:4034
12845 #, no-wrap
12846 msgid ""
12847 " scrub-file file\n"
12848 "\n"
12849 msgstr ""
12850
12851 #. type: textblock
12852 #: ../fish/guestfish-actions.pod:4036 ../src/guestfs-actions.pod:6126
12853 msgid ""
12854 "This command writes patterns over a file to make data retrieval more "
12855 "difficult."
12856 msgstr ""
12857
12858 #. type: textblock
12859 #: ../fish/guestfish-actions.pod:4039 ../src/guestfs-actions.pod:6129
12860 msgid "The file is I<removed> after scrubbing."
12861 msgstr ""
12862
12863 #. type: =head2
12864 #: ../fish/guestfish-actions.pod:4044
12865 msgid "scrub-freespace"
12866 msgstr ""
12867
12868 #. type: verbatim
12869 #: ../fish/guestfish-actions.pod:4046
12870 #, no-wrap
12871 msgid ""
12872 " scrub-freespace dir\n"
12873 "\n"
12874 msgstr ""
12875
12876 #. type: textblock
12877 #: ../fish/guestfish-actions.pod:4048
12878 msgid ""
12879 "This command creates the directory C<dir> and then fills it with files until "
12880 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
12881 "deletes them.  The intention is to scrub any free space on the partition "
12882 "containing C<dir>."
12883 msgstr ""
12884
12885 #. type: =head2
12886 #: ../fish/guestfish-actions.pod:4057
12887 msgid "set-append"
12888 msgstr ""
12889
12890 #. type: =head2
12891 #: ../fish/guestfish-actions.pod:4059
12892 msgid "append"
12893 msgstr ""
12894
12895 #. type: verbatim
12896 #: ../fish/guestfish-actions.pod:4061
12897 #, no-wrap
12898 msgid ""
12899 " set-append append\n"
12900 "\n"
12901 msgstr ""
12902
12903 #. type: textblock
12904 #: ../fish/guestfish-actions.pod:4063 ../src/guestfs-actions.pod:6163
12905 msgid ""
12906 "This function is used to add additional options to the guest kernel command "
12907 "line."
12908 msgstr ""
12909
12910 #. type: textblock
12911 #: ../fish/guestfish-actions.pod:4066 ../src/guestfs-actions.pod:6166
12912 msgid ""
12913 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
12914 "environment variable."
12915 msgstr ""
12916
12917 #. type: textblock
12918 #: ../fish/guestfish-actions.pod:4069 ../src/guestfs-actions.pod:6169
12919 msgid ""
12920 "Setting C<append> to C<NULL> means I<no> additional options are passed "
12921 "(libguestfs always adds a few of its own)."
12922 msgstr ""
12923
12924 #. type: =head2
12925 #: ../fish/guestfish-actions.pod:4072
12926 msgid "set-attach-method"
12927 msgstr ""
12928
12929 #. type: =head2
12930 #: ../fish/guestfish-actions.pod:4074
12931 msgid "attach-method"
12932 msgstr ""
12933
12934 #. type: verbatim
12935 #: ../fish/guestfish-actions.pod:4076
12936 #, no-wrap
12937 msgid ""
12938 " set-attach-method attachmethod\n"
12939 "\n"
12940 msgstr ""
12941
12942 #. type: textblock
12943 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6182
12944 msgid ""
12945 "Set the method that libguestfs uses to connect to the back end guestfsd "
12946 "daemon.  Possible methods are:"
12947 msgstr ""
12948
12949 #. type: =item
12950 #: ../fish/guestfish-actions.pod:4083 ../src/guestfs-actions.pod:6187
12951 #: ../src/guestfs.pod:2703
12952 msgid "C<appliance>"
12953 msgstr ""
12954
12955 #. type: textblock
12956 #: ../fish/guestfish-actions.pod:4085 ../src/guestfs-actions.pod:6189
12957 msgid ""
12958 "Launch an appliance and connect to it.  This is the ordinary method and the "
12959 "default."
12960 msgstr ""
12961
12962 #. type: =item
12963 #: ../fish/guestfish-actions.pod:4088 ../src/guestfs-actions.pod:6192
12964 msgid "C<unix:I<path>>"
12965 msgstr ""
12966
12967 #. type: textblock
12968 #: ../fish/guestfish-actions.pod:4090 ../src/guestfs-actions.pod:6194
12969 msgid "Connect to the Unix domain socket I<path>."
12970 msgstr ""
12971
12972 #. type: textblock
12973 #: ../fish/guestfish-actions.pod:4092 ../src/guestfs-actions.pod:6196
12974 msgid ""
12975 "This method lets you connect to an existing daemon or (using virtio-serial) "
12976 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
12977 "RUNNING DAEMONS>."
12978 msgstr ""
12979
12980 #. type: =head2
12981 #: ../fish/guestfish-actions.pod:4098
12982 msgid "set-autosync"
12983 msgstr ""
12984
12985 #. type: =head2
12986 #: ../fish/guestfish-actions.pod:4100
12987 msgid "autosync"
12988 msgstr ""
12989
12990 #. type: verbatim
12991 #: ../fish/guestfish-actions.pod:4102
12992 #, no-wrap
12993 msgid ""
12994 " set-autosync true|false\n"
12995 "\n"
12996 msgstr ""
12997
12998 #. type: textblock
12999 #: ../fish/guestfish-actions.pod:4104 ../src/guestfs-actions.pod:6212
13000 msgid ""
13001 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13002 "effort attempt to make filesystems consistent and synchronized when the "
13003 "handle is closed (also if the program exits without closing handles)."
13004 msgstr ""
13005
13006 #. type: textblock
13007 #: ../fish/guestfish-actions.pod:4109 ../src/guestfs-actions.pod:6217
13008 msgid ""
13009 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13010 "disabled by default)."
13011 msgstr ""
13012
13013 #. type: =head2
13014 #: ../fish/guestfish-actions.pod:4112
13015 msgid "set-direct"
13016 msgstr ""
13017
13018 #. type: =head2
13019 #: ../fish/guestfish-actions.pod:4114
13020 msgid "direct"
13021 msgstr ""
13022
13023 #. type: verbatim
13024 #: ../fish/guestfish-actions.pod:4116
13025 #, no-wrap
13026 msgid ""
13027 " set-direct true|false\n"
13028 "\n"
13029 msgstr ""
13030
13031 #. type: textblock
13032 #: ../fish/guestfish-actions.pod:4118 ../src/guestfs-actions.pod:6230
13033 msgid ""
13034 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13035 "passed directly through to the appliance once it is launched."
13036 msgstr ""
13037
13038 #. type: textblock
13039 #: ../fish/guestfish-actions.pod:4122
13040 msgid ""
13041 "One consequence of this is that log messages aren't caught by the library "
13042 "and handled by L</set-log-message-callback>, but go straight to stdout."
13043 msgstr ""
13044
13045 #. type: textblock
13046 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6238
13047 msgid "You probably don't want to use this unless you know what you are doing."
13048 msgstr ""
13049
13050 #. type: textblock
13051 #: ../fish/guestfish-actions.pod:4129 ../src/guestfs-actions.pod:6241
13052 msgid "The default is disabled."
13053 msgstr ""
13054
13055 #. type: =head2
13056 #: ../fish/guestfish-actions.pod:4131
13057 msgid "set-e2label"
13058 msgstr ""
13059
13060 #. type: verbatim
13061 #: ../fish/guestfish-actions.pod:4133
13062 #, no-wrap
13063 msgid ""
13064 " set-e2label device label\n"
13065 "\n"
13066 msgstr ""
13067
13068 #. type: textblock
13069 #: ../fish/guestfish-actions.pod:4135 ../src/guestfs-actions.pod:6254
13070 msgid ""
13071 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13072 "C<label>.  Filesystem labels are limited to 16 characters."
13073 msgstr ""
13074
13075 #. type: textblock
13076 #: ../fish/guestfish-actions.pod:4139
13077 msgid ""
13078 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
13079 "label on a filesystem."
13080 msgstr ""
13081
13082 #. type: =head2
13083 #: ../fish/guestfish-actions.pod:4142
13084 msgid "set-e2uuid"
13085 msgstr ""
13086
13087 #. type: verbatim
13088 #: ../fish/guestfish-actions.pod:4144
13089 #, no-wrap
13090 msgid ""
13091 " set-e2uuid device uuid\n"
13092 "\n"
13093 msgstr ""
13094
13095 #. type: textblock
13096 #: ../fish/guestfish-actions.pod:4146 ../src/guestfs-actions.pod:6272
13097 msgid ""
13098 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13099 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13100 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13101 msgstr ""
13102
13103 #. type: textblock
13104 #: ../fish/guestfish-actions.pod:4151
13105 msgid ""
13106 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
13107 "UUID of a filesystem."
13108 msgstr ""
13109
13110 #. type: =head2
13111 #: ../fish/guestfish-actions.pod:4154
13112 msgid "set-memsize"
13113 msgstr ""
13114
13115 #. type: =head2
13116 #: ../fish/guestfish-actions.pod:4156
13117 msgid "memsize"
13118 msgstr ""
13119
13120 #. type: verbatim
13121 #: ../fish/guestfish-actions.pod:4158
13122 #, no-wrap
13123 msgid ""
13124 " set-memsize memsize\n"
13125 "\n"
13126 msgstr ""
13127
13128 #. type: textblock
13129 #: ../fish/guestfish-actions.pod:4160
13130 msgid ""
13131 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13132 "This only has any effect if called before L</launch>."
13133 msgstr ""
13134
13135 #. type: textblock
13136 #: ../fish/guestfish-actions.pod:4164 ../src/guestfs-actions.pod:6294
13137 msgid ""
13138 "You can also change this by setting the environment variable "
13139 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13140 msgstr ""
13141
13142 #. type: =head2
13143 #: ../fish/guestfish-actions.pod:4171
13144 msgid "set-network"
13145 msgstr ""
13146
13147 #. type: =head2
13148 #: ../fish/guestfish-actions.pod:4173
13149 msgid "network"
13150 msgstr ""
13151
13152 #. type: verbatim
13153 #: ../fish/guestfish-actions.pod:4175
13154 #, no-wrap
13155 msgid ""
13156 " set-network true|false\n"
13157 "\n"
13158 msgstr ""
13159
13160 #. type: textblock
13161 #: ../fish/guestfish-actions.pod:4177 ../src/guestfs-actions.pod:6311
13162 msgid ""
13163 "If C<network> is true, then the network is enabled in the libguestfs "
13164 "appliance.  The default is false."
13165 msgstr ""
13166
13167 #. type: textblock
13168 #: ../fish/guestfish-actions.pod:4180 ../src/guestfs-actions.pod:6314
13169 msgid ""
13170 "This affects whether commands are able to access the network (see L<guestfs"
13171 "(3)/RUNNING COMMANDS>)."
13172 msgstr ""
13173
13174 #. type: textblock
13175 #: ../fish/guestfish-actions.pod:4183
13176 msgid ""
13177 "You must call this before calling L</launch>, otherwise it has no effect."
13178 msgstr ""
13179
13180 #. type: =head2
13181 #: ../fish/guestfish-actions.pod:4186
13182 msgid "set-path"
13183 msgstr ""
13184
13185 #. type: verbatim
13186 #: ../fish/guestfish-actions.pod:4190
13187 #, no-wrap
13188 msgid ""
13189 " set-path searchpath\n"
13190 "\n"
13191 msgstr ""
13192
13193 #. type: textblock
13194 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6330
13195 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13196 msgstr ""
13197
13198 #. type: textblock
13199 #: ../fish/guestfish-actions.pod:4194 ../src/guestfs-actions.pod:6332
13200 msgid ""
13201 "The default is C<$libdir/guestfs> unless overridden by setting "
13202 "C<LIBGUESTFS_PATH> environment variable."
13203 msgstr ""
13204
13205 #. type: textblock
13206 #: ../fish/guestfish-actions.pod:4197 ../src/guestfs-actions.pod:6335
13207 msgid "Setting C<path> to C<NULL> restores the default path."
13208 msgstr ""
13209
13210 #. type: =head2
13211 #: ../fish/guestfish-actions.pod:4199
13212 msgid "set-pgroup"
13213 msgstr ""
13214
13215 #. type: =head2
13216 #: ../fish/guestfish-actions.pod:4201
13217 msgid "pgroup"
13218 msgstr ""
13219
13220 #. type: verbatim
13221 #: ../fish/guestfish-actions.pod:4203
13222 #, no-wrap
13223 msgid ""
13224 " set-pgroup true|false\n"
13225 "\n"
13226 msgstr ""
13227
13228 #. type: textblock
13229 #: ../fish/guestfish-actions.pod:4205 ../src/guestfs-actions.pod:6347
13230 msgid ""
13231 "If C<pgroup> is true, child processes are placed into their own process "
13232 "group."
13233 msgstr ""
13234
13235 #. type: textblock
13236 #: ../fish/guestfish-actions.pod:4208 ../src/guestfs-actions.pod:6350
13237 msgid ""
13238 "The practical upshot of this is that signals like C<SIGINT> (from users "
13239 "pressing C<^C>) won't be received by the child process."
13240 msgstr ""
13241
13242 #. type: textblock
13243 #: ../fish/guestfish-actions.pod:4211 ../src/guestfs-actions.pod:6353
13244 msgid ""
13245 "The default for this flag is false, because usually you want C<^C> to kill "
13246 "the subprocess."
13247 msgstr ""
13248
13249 #. type: =head2
13250 #: ../fish/guestfish-actions.pod:4214
13251 msgid "set-qemu"
13252 msgstr ""
13253
13254 #. type: =head2
13255 #: ../fish/guestfish-actions.pod:4216
13256 msgid "qemu"
13257 msgstr ""
13258
13259 #. type: verbatim
13260 #: ../fish/guestfish-actions.pod:4218
13261 #, no-wrap
13262 msgid ""
13263 " set-qemu qemu\n"
13264 "\n"
13265 msgstr ""
13266
13267 #. type: textblock
13268 #: ../fish/guestfish-actions.pod:4220 ../src/guestfs-actions.pod:6366
13269 msgid "Set the qemu binary that we will use."
13270 msgstr ""
13271
13272 #. type: textblock
13273 #: ../fish/guestfish-actions.pod:4222 ../src/guestfs-actions.pod:6368
13274 msgid ""
13275 "The default is chosen when the library was compiled by the configure script."
13276 msgstr ""
13277
13278 #. type: textblock
13279 #: ../fish/guestfish-actions.pod:4225 ../src/guestfs-actions.pod:6371
13280 msgid ""
13281 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13282 "variable."
13283 msgstr ""
13284
13285 #. type: textblock
13286 #: ../fish/guestfish-actions.pod:4228 ../src/guestfs-actions.pod:6374
13287 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13288 msgstr ""
13289
13290 #. type: textblock
13291 #: ../fish/guestfish-actions.pod:4230 ../src/guestfs-actions.pod:6376
13292 msgid ""
13293 "Note that you should call this function as early as possible after creating "
13294 "the handle.  This is because some pre-launch operations depend on testing "
13295 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13296 "don't retest features, and so you might see inconsistent results.  Using the "
13297 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13298 "the qemu binary at the same time as the handle is created."
13299 msgstr ""
13300
13301 #. type: =head2
13302 #: ../fish/guestfish-actions.pod:4238
13303 msgid "set-recovery-proc"
13304 msgstr ""
13305
13306 #. type: =head2
13307 #: ../fish/guestfish-actions.pod:4240
13308 msgid "recovery-proc"
13309 msgstr ""
13310
13311 #. type: verbatim
13312 #: ../fish/guestfish-actions.pod:4242
13313 #, no-wrap
13314 msgid ""
13315 " set-recovery-proc true|false\n"
13316 "\n"
13317 msgstr ""
13318
13319 #. type: textblock
13320 #: ../fish/guestfish-actions.pod:4244
13321 msgid ""
13322 "If this is called with the parameter C<false> then L</launch> does not "
13323 "create a recovery process.  The purpose of the recovery process is to stop "
13324 "runaway qemu processes in the case where the main program aborts abruptly."
13325 msgstr ""
13326
13327 #. type: textblock
13328 #: ../fish/guestfish-actions.pod:4249
13329 msgid ""
13330 "This only has any effect if called before L</launch>, and the default is "
13331 "true."
13332 msgstr ""
13333
13334 #. type: textblock
13335 #: ../fish/guestfish-actions.pod:4252 ../src/guestfs-actions.pod:6402
13336 msgid ""
13337 "About the only time when you would want to disable this is if the main "
13338 "process will fork itself into the background (\"daemonize\" itself).  In "
13339 "this case the recovery process thinks that the main program has disappeared "
13340 "and so kills qemu, which is not very helpful."
13341 msgstr ""
13342
13343 #. type: =head2
13344 #: ../fish/guestfish-actions.pod:4258
13345 msgid "set-selinux"
13346 msgstr ""
13347
13348 #. type: =head2
13349 #: ../fish/guestfish-actions.pod:4260
13350 msgid "selinux"
13351 msgstr ""
13352
13353 #. type: verbatim
13354 #: ../fish/guestfish-actions.pod:4262
13355 #, no-wrap
13356 msgid ""
13357 " set-selinux true|false\n"
13358 "\n"
13359 msgstr ""
13360
13361 #. type: textblock
13362 #: ../fish/guestfish-actions.pod:4264 ../src/guestfs-actions.pod:6418
13363 msgid ""
13364 "This sets the selinux flag that is passed to the appliance at boot time.  "
13365 "The default is C<selinux=0> (disabled)."
13366 msgstr ""
13367
13368 #. type: textblock
13369 #: ../fish/guestfish-actions.pod:4267 ../src/guestfs-actions.pod:6421
13370 msgid ""
13371 "Note that if SELinux is enabled, it is always in Permissive mode "
13372 "(C<enforcing=0>)."
13373 msgstr ""
13374
13375 #. type: =head2
13376 #: ../fish/guestfish-actions.pod:4273
13377 msgid "set-trace"
13378 msgstr ""
13379
13380 #. type: =head2
13381 #: ../fish/guestfish-actions.pod:4275
13382 msgid "trace"
13383 msgstr ""
13384
13385 #. type: verbatim
13386 #: ../fish/guestfish-actions.pod:4277
13387 #, no-wrap
13388 msgid ""
13389 " set-trace true|false\n"
13390 "\n"
13391 msgstr ""
13392
13393 #. type: textblock
13394 #: ../fish/guestfish-actions.pod:4279 ../src/guestfs-actions.pod:6437
13395 msgid ""
13396 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
13397 "return values are traced."
13398 msgstr ""
13399
13400 #. type: textblock
13401 #: ../fish/guestfish-actions.pod:4282 ../src/guestfs-actions.pod:6440
13402 msgid ""
13403 "If you want to trace C API calls into libguestfs (and other libraries) then "
13404 "possibly a better way is to use the external ltrace(1) command."
13405 msgstr ""
13406
13407 #. type: textblock
13408 #: ../fish/guestfish-actions.pod:4286 ../src/guestfs-actions.pod:6444
13409 msgid ""
13410 "Command traces are disabled unless the environment variable "
13411 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
13412 msgstr ""
13413
13414 #. type: textblock
13415 #: ../fish/guestfish-actions.pod:4289
13416 msgid ""
13417 "Trace messages are normally sent to C<stderr>, unless you register a "
13418 "callback to send them somewhere else (see L</set-event-callback>)."
13419 msgstr ""
13420
13421 #. type: =head2
13422 #: ../fish/guestfish-actions.pod:4293
13423 msgid "set-verbose"
13424 msgstr ""
13425
13426 #. type: =head2
13427 #: ../fish/guestfish-actions.pod:4295
13428 msgid "verbose"
13429 msgstr ""
13430
13431 #. type: verbatim
13432 #: ../fish/guestfish-actions.pod:4297
13433 #, no-wrap
13434 msgid ""
13435 " set-verbose true|false\n"
13436 "\n"
13437 msgstr ""
13438
13439 #. type: textblock
13440 #: ../fish/guestfish-actions.pod:4299 ../src/guestfs-actions.pod:6461
13441 msgid "If C<verbose> is true, this turns on verbose messages."
13442 msgstr ""
13443
13444 #. type: textblock
13445 #: ../fish/guestfish-actions.pod:4301 ../src/guestfs-actions.pod:6463
13446 msgid ""
13447 "Verbose messages are disabled unless the environment variable "
13448 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
13449 msgstr ""
13450
13451 #. type: textblock
13452 #: ../fish/guestfish-actions.pod:4304
13453 msgid ""
13454 "Verbose messages are normally sent to C<stderr>, unless you register a "
13455 "callback to send them somewhere else (see L</set-event-callback>)."
13456 msgstr ""
13457
13458 #. type: =head2
13459 #: ../fish/guestfish-actions.pod:4308
13460 msgid "setcon"
13461 msgstr ""
13462
13463 #. type: verbatim
13464 #: ../fish/guestfish-actions.pod:4310
13465 #, no-wrap
13466 msgid ""
13467 " setcon context\n"
13468 "\n"
13469 msgstr ""
13470
13471 #. type: textblock
13472 #: ../fish/guestfish-actions.pod:4312 ../src/guestfs-actions.pod:6480
13473 msgid ""
13474 "This sets the SELinux security context of the daemon to the string "
13475 "C<context>."
13476 msgstr ""
13477
13478 #. type: textblock
13479 #: ../fish/guestfish-actions.pod:4315 ../src/guestfs-actions.pod:6483
13480 msgid "See the documentation about SELINUX in L<guestfs(3)>."
13481 msgstr ""
13482
13483 #. type: =head2
13484 #: ../fish/guestfish-actions.pod:4317
13485 msgid "setxattr"
13486 msgstr ""
13487
13488 #. type: verbatim
13489 #: ../fish/guestfish-actions.pod:4319
13490 #, no-wrap
13491 msgid ""
13492 " setxattr xattr val vallen path\n"
13493 "\n"
13494 msgstr ""
13495
13496 #. type: textblock
13497 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6498
13498 msgid ""
13499 "This call sets the extended attribute named C<xattr> of the file C<path> to "
13500 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
13501 msgstr ""
13502
13503 #. type: textblock
13504 #: ../fish/guestfish-actions.pod:4325
13505 msgid "See also: L</lsetxattr>, L<attr(5)>."
13506 msgstr ""
13507
13508 #. type: =head2
13509 #: ../fish/guestfish-actions.pod:4327
13510 msgid "sfdisk"
13511 msgstr ""
13512
13513 #. type: verbatim
13514 #: ../fish/guestfish-actions.pod:4329
13515 #, no-wrap
13516 msgid ""
13517 " sfdisk device cyls heads sectors 'lines ...'\n"
13518 "\n"
13519 msgstr ""
13520
13521 #. type: textblock
13522 #: ../fish/guestfish-actions.pod:4331 ../src/guestfs-actions.pod:6525
13523 msgid ""
13524 "This is a direct interface to the L<sfdisk(8)> program for creating "
13525 "partitions on block devices."
13526 msgstr ""
13527
13528 #. type: textblock
13529 #: ../fish/guestfish-actions.pod:4334 ../src/guestfs-actions.pod:6528
13530 msgid "C<device> should be a block device, for example C</dev/sda>."
13531 msgstr ""
13532
13533 #. type: textblock
13534 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6530
13535 msgid ""
13536 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
13537 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
13538 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
13539 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
13540 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
13541 "the kernel) cannot work out the right geometry and you will need to tell it."
13542 msgstr ""
13543
13544 #. type: textblock
13545 #: ../fish/guestfish-actions.pod:4344 ../src/guestfs-actions.pod:6538
13546 msgid ""
13547 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
13548 "refer to the L<sfdisk(8)> manpage."
13549 msgstr ""
13550
13551 #. type: textblock
13552 #: ../fish/guestfish-actions.pod:4347 ../src/guestfs-actions.pod:6541
13553 msgid ""
13554 "To create a single partition occupying the whole disk, you would pass "
13555 "C<lines> as a single element list, when the single element being the string "
13556 "C<,> (comma)."
13557 msgstr ""
13558
13559 #. type: textblock
13560 #: ../fish/guestfish-actions.pod:4351
13561 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
13562 msgstr ""
13563
13564 #. type: textblock
13565 #: ../fish/guestfish-actions.pod:4357 ../fish/guestfish-actions.pod:4380
13566 #: ../fish/guestfish-actions.pod:4402
13567 msgid ""
13568 "I<This function is deprecated.> In new code, use the L</part_add> call "
13569 "instead."
13570 msgstr ""
13571
13572 #. type: =head2
13573 #: ../fish/guestfish-actions.pod:4364
13574 msgid "sfdiskM"
13575 msgstr ""
13576
13577 #. type: verbatim
13578 #: ../fish/guestfish-actions.pod:4366
13579 #, no-wrap
13580 msgid ""
13581 " sfdiskM device 'lines ...'\n"
13582 "\n"
13583 msgstr ""
13584
13585 #. type: textblock
13586 #: ../fish/guestfish-actions.pod:4368
13587 msgid ""
13588 "This is a simplified interface to the L</sfdisk> command, where partition "
13589 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
13590 "you don't need to specify the cyls, heads and sectors parameters which were "
13591 "rarely if ever used anyway."
13592 msgstr ""
13593
13594 #. type: textblock
13595 #: ../fish/guestfish-actions.pod:4374
13596 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
13597 msgstr ""
13598
13599 #. type: =head2
13600 #: ../fish/guestfish-actions.pod:4387
13601 msgid "sfdisk-N"
13602 msgstr ""
13603
13604 #. type: verbatim
13605 #: ../fish/guestfish-actions.pod:4389
13606 #, no-wrap
13607 msgid ""
13608 " sfdisk-N device partnum cyls heads sectors line\n"
13609 "\n"
13610 msgstr ""
13611
13612 #. type: textblock
13613 #: ../fish/guestfish-actions.pod:4391 ../src/guestfs-actions.pod:6603
13614 msgid ""
13615 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
13616 "(note: C<n> counts from 1)."
13617 msgstr ""
13618
13619 #. type: textblock
13620 #: ../fish/guestfish-actions.pod:4394
13621 msgid ""
13622 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
13623 "cyls/heads/sectors parameters."
13624 msgstr ""
13625
13626 #. type: textblock
13627 #: ../fish/guestfish-actions.pod:4397
13628 msgid "See also: L</part-add>"
13629 msgstr ""
13630
13631 #. type: =head2
13632 #: ../fish/guestfish-actions.pod:4409
13633 msgid "sfdisk-disk-geometry"
13634 msgstr ""
13635
13636 #. type: verbatim
13637 #: ../fish/guestfish-actions.pod:4411
13638 #, no-wrap
13639 msgid ""
13640 " sfdisk-disk-geometry device\n"
13641 "\n"
13642 msgstr ""
13643
13644 #. type: textblock
13645 #: ../fish/guestfish-actions.pod:4413
13646 msgid ""
13647 "This displays the disk geometry of C<device> read from the partition table.  "
13648 "Especially in the case where the underlying block device has been resized, "
13649 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
13650 "kernel-geometry>)."
13651 msgstr ""
13652
13653 #. type: textblock
13654 #: ../fish/guestfish-actions.pod:4418 ../fish/guestfish-actions.pod:4427
13655 #: ../src/guestfs-actions.pod:6629 ../src/guestfs-actions.pod:6645
13656 msgid "The result is in human-readable format, and not designed to be parsed."
13657 msgstr ""
13658
13659 #. type: =head2
13660 #: ../fish/guestfish-actions.pod:4421
13661 msgid "sfdisk-kernel-geometry"
13662 msgstr ""
13663
13664 #. type: verbatim
13665 #: ../fish/guestfish-actions.pod:4423
13666 #, no-wrap
13667 msgid ""
13668 " sfdisk-kernel-geometry device\n"
13669 "\n"
13670 msgstr ""
13671
13672 #. type: textblock
13673 #: ../fish/guestfish-actions.pod:4425 ../src/guestfs-actions.pod:6643
13674 msgid "This displays the kernel's idea of the geometry of C<device>."
13675 msgstr ""
13676
13677 #. type: =head2
13678 #: ../fish/guestfish-actions.pod:4430
13679 msgid "sfdisk-l"
13680 msgstr ""
13681
13682 #. type: verbatim
13683 #: ../fish/guestfish-actions.pod:4432
13684 #, no-wrap
13685 msgid ""
13686 " sfdisk-l device\n"
13687 "\n"
13688 msgstr ""
13689
13690 #. type: textblock
13691 #: ../fish/guestfish-actions.pod:4434 ../src/guestfs-actions.pod:6666
13692 msgid ""
13693 "This displays the partition table on C<device>, in the human-readable output "
13694 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
13695 msgstr ""
13696
13697 #. type: textblock
13698 #: ../fish/guestfish-actions.pod:4438
13699 msgid "See also: L</part-list>"
13700 msgstr ""
13701
13702 #. type: textblock
13703 #: ../fish/guestfish-actions.pod:4440
13704 msgid ""
13705 "I<This function is deprecated.> In new code, use the L</part_list> call "
13706 "instead."
13707 msgstr ""
13708
13709 #. type: =head2
13710 #: ../fish/guestfish-actions.pod:4447
13711 msgid "sh"
13712 msgstr ""
13713
13714 #. type: verbatim
13715 #: ../fish/guestfish-actions.pod:4449
13716 #, no-wrap
13717 msgid ""
13718 " sh command\n"
13719 "\n"
13720 msgstr ""
13721
13722 #. type: textblock
13723 #: ../fish/guestfish-actions.pod:4451 ../src/guestfs-actions.pod:6683
13724 msgid ""
13725 "This call runs a command from the guest filesystem via the guest's C</bin/"
13726 "sh>."
13727 msgstr ""
13728
13729 #. type: textblock
13730 #: ../fish/guestfish-actions.pod:4454
13731 msgid "This is like L</command>, but passes the command to:"
13732 msgstr ""
13733
13734 #. type: verbatim
13735 #: ../fish/guestfish-actions.pod:4456 ../src/guestfs-actions.pod:6688
13736 #, no-wrap
13737 msgid ""
13738 " /bin/sh -c \"command\"\n"
13739 "\n"
13740 msgstr ""
13741
13742 #. type: textblock
13743 #: ../fish/guestfish-actions.pod:4458 ../src/guestfs-actions.pod:6690
13744 msgid ""
13745 "Depending on the guest's shell, this usually results in wildcards being "
13746 "expanded, shell expressions being interpolated and so on."
13747 msgstr ""
13748
13749 #. type: textblock
13750 #: ../fish/guestfish-actions.pod:4462
13751 msgid "All the provisos about L</command> apply to this call."
13752 msgstr ""
13753
13754 #. type: =head2
13755 #: ../fish/guestfish-actions.pod:4464
13756 msgid "sh-lines"
13757 msgstr ""
13758
13759 #. type: verbatim
13760 #: ../fish/guestfish-actions.pod:4466
13761 #, no-wrap
13762 msgid ""
13763 " sh-lines command\n"
13764 "\n"
13765 msgstr ""
13766
13767 #. type: textblock
13768 #: ../fish/guestfish-actions.pod:4468
13769 msgid "This is the same as L</sh>, but splits the result into a list of lines."
13770 msgstr ""
13771
13772 #. type: textblock
13773 #: ../fish/guestfish-actions.pod:4471
13774 msgid "See also: L</command-lines>"
13775 msgstr ""
13776
13777 #. type: =head2
13778 #: ../fish/guestfish-actions.pod:4473
13779 msgid "sleep"
13780 msgstr ""
13781
13782 #. type: verbatim
13783 #: ../fish/guestfish-actions.pod:4475
13784 #, no-wrap
13785 msgid ""
13786 " sleep secs\n"
13787 "\n"
13788 msgstr ""
13789
13790 #. type: textblock
13791 #: ../fish/guestfish-actions.pod:4477 ../src/guestfs-actions.pod:6724
13792 msgid "Sleep for C<secs> seconds."
13793 msgstr ""
13794
13795 #. type: =head2
13796 #: ../fish/guestfish-actions.pod:4479
13797 msgid "stat"
13798 msgstr ""
13799
13800 #. type: verbatim
13801 #: ../fish/guestfish-actions.pod:4481
13802 #, no-wrap
13803 msgid ""
13804 " stat path\n"
13805 "\n"
13806 msgstr ""
13807
13808 #. type: textblock
13809 #: ../fish/guestfish-actions.pod:4485 ../src/guestfs-actions.pod:6738
13810 msgid "This is the same as the C<stat(2)> system call."
13811 msgstr ""
13812
13813 #. type: =head2
13814 #: ../fish/guestfish-actions.pod:4487
13815 msgid "statvfs"
13816 msgstr ""
13817
13818 #. type: verbatim
13819 #: ../fish/guestfish-actions.pod:4489
13820 #, no-wrap
13821 msgid ""
13822 " statvfs path\n"
13823 "\n"
13824 msgstr ""
13825
13826 #. type: textblock
13827 #: ../fish/guestfish-actions.pod:4491 ../src/guestfs-actions.pod:6752
13828 msgid ""
13829 "Returns file system statistics for any mounted file system.  C<path> should "
13830 "be a file or directory in the mounted file system (typically it is the mount "
13831 "point itself, but it doesn't need to be)."
13832 msgstr ""
13833
13834 #. type: textblock
13835 #: ../fish/guestfish-actions.pod:4495 ../src/guestfs-actions.pod:6756
13836 msgid "This is the same as the C<statvfs(2)> system call."
13837 msgstr ""
13838
13839 #. type: =head2
13840 #: ../fish/guestfish-actions.pod:4497
13841 msgid "strings"
13842 msgstr ""
13843
13844 #. type: verbatim
13845 #: ../fish/guestfish-actions.pod:4499
13846 #, no-wrap
13847 msgid ""
13848 " strings path\n"
13849 "\n"
13850 msgstr ""
13851
13852 #. type: textblock
13853 #: ../fish/guestfish-actions.pod:4501 ../src/guestfs-actions.pod:6770
13854 msgid ""
13855 "This runs the L<strings(1)> command on a file and returns the list of "
13856 "printable strings found."
13857 msgstr ""
13858
13859 #. type: =head2
13860 #: ../fish/guestfish-actions.pod:4507
13861 msgid "strings-e"
13862 msgstr ""
13863
13864 #. type: verbatim
13865 #: ../fish/guestfish-actions.pod:4509
13866 #, no-wrap
13867 msgid ""
13868 " strings-e encoding path\n"
13869 "\n"
13870 msgstr ""
13871
13872 #. type: textblock
13873 #: ../fish/guestfish-actions.pod:4511
13874 msgid ""
13875 "This is like the L</strings> command, but allows you to specify the encoding "
13876 "of strings that are looked for in the source file C<path>."
13877 msgstr ""
13878
13879 #. type: textblock
13880 #: ../fish/guestfish-actions.pod:4515 ../src/guestfs-actions.pod:6793
13881 msgid "Allowed encodings are:"
13882 msgstr ""
13883
13884 #. type: =item
13885 #: ../fish/guestfish-actions.pod:4519 ../src/guestfs-actions.pod:6797
13886 msgid "s"
13887 msgstr ""
13888
13889 #. type: textblock
13890 #: ../fish/guestfish-actions.pod:4521
13891 msgid ""
13892 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
13893 "ISO-8859-X (this is what L</strings> uses)."
13894 msgstr ""
13895
13896 #. type: =item
13897 #: ../fish/guestfish-actions.pod:4524 ../src/guestfs-actions.pod:6802
13898 msgid "S"
13899 msgstr ""
13900
13901 #. type: textblock
13902 #: ../fish/guestfish-actions.pod:4526 ../src/guestfs-actions.pod:6804
13903 msgid "Single 8-bit-byte characters."
13904 msgstr ""
13905
13906 #. type: =item
13907 #: ../fish/guestfish-actions.pod:4528 ../src/guestfs-actions.pod:6806
13908 msgid "b"
13909 msgstr ""
13910
13911 #. type: textblock
13912 #: ../fish/guestfish-actions.pod:4530 ../src/guestfs-actions.pod:6808
13913 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
13914 msgstr ""
13915
13916 #. type: =item
13917 #: ../fish/guestfish-actions.pod:4533 ../src/guestfs-actions.pod:6811
13918 msgid "l (lower case letter L)"
13919 msgstr ""
13920
13921 #. type: textblock
13922 #: ../fish/guestfish-actions.pod:4535 ../src/guestfs-actions.pod:6813
13923 msgid ""
13924 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
13925 "examining binaries in Windows guests."
13926 msgstr ""
13927
13928 #. type: =item
13929 #: ../fish/guestfish-actions.pod:4538 ../src/guestfs-actions.pod:6816
13930 msgid "B"
13931 msgstr ""
13932
13933 #. type: textblock
13934 #: ../fish/guestfish-actions.pod:4540 ../src/guestfs-actions.pod:6818
13935 msgid "32-bit big endian such as UCS-4BE."
13936 msgstr ""
13937
13938 #. type: =item
13939 #: ../fish/guestfish-actions.pod:4542 ../src/guestfs-actions.pod:6820
13940 msgid "L"
13941 msgstr ""
13942
13943 #. type: textblock
13944 #: ../fish/guestfish-actions.pod:4544 ../src/guestfs-actions.pod:6822
13945 msgid "32-bit little endian such as UCS-4LE."
13946 msgstr ""
13947
13948 #. type: textblock
13949 #: ../fish/guestfish-actions.pod:4548 ../src/guestfs-actions.pod:6826
13950 msgid "The returned strings are transcoded to UTF-8."
13951 msgstr ""
13952
13953 #. type: =head2
13954 #: ../fish/guestfish-actions.pod:4553
13955 msgid "swapoff-device"
13956 msgstr ""
13957
13958 #. type: verbatim
13959 #: ../fish/guestfish-actions.pod:4555
13960 #, no-wrap
13961 msgid ""
13962 " swapoff-device device\n"
13963 "\n"
13964 msgstr ""
13965
13966 #. type: textblock
13967 #: ../fish/guestfish-actions.pod:4557
13968 msgid ""
13969 "This command disables the libguestfs appliance swap device or partition "
13970 "named C<device>.  See L</swapon-device>."
13971 msgstr ""
13972
13973 #. type: =head2
13974 #: ../fish/guestfish-actions.pod:4561
13975 msgid "swapoff-file"
13976 msgstr ""
13977
13978 #. type: verbatim
13979 #: ../fish/guestfish-actions.pod:4563
13980 #, no-wrap
13981 msgid ""
13982 " swapoff-file file\n"
13983 "\n"
13984 msgstr ""
13985
13986 #. type: textblock
13987 #: ../fish/guestfish-actions.pod:4565 ../src/guestfs-actions.pod:6857
13988 msgid "This command disables the libguestfs appliance swap on file."
13989 msgstr ""
13990
13991 #. type: =head2
13992 #: ../fish/guestfish-actions.pod:4567
13993 msgid "swapoff-label"
13994 msgstr ""
13995
13996 #. type: verbatim
13997 #: ../fish/guestfish-actions.pod:4569
13998 #, no-wrap
13999 msgid ""
14000 " swapoff-label label\n"
14001 "\n"
14002 msgstr ""
14003
14004 #. type: textblock
14005 #: ../fish/guestfish-actions.pod:4571 ../src/guestfs-actions.pod:6869
14006 msgid ""
14007 "This command disables the libguestfs appliance swap on labeled swap "
14008 "partition."
14009 msgstr ""
14010
14011 #. type: =head2
14012 #: ../fish/guestfish-actions.pod:4574
14013 msgid "swapoff-uuid"
14014 msgstr ""
14015
14016 #. type: verbatim
14017 #: ../fish/guestfish-actions.pod:4576
14018 #, no-wrap
14019 msgid ""
14020 " swapoff-uuid uuid\n"
14021 "\n"
14022 msgstr ""
14023
14024 #. type: textblock
14025 #: ../fish/guestfish-actions.pod:4578 ../src/guestfs-actions.pod:6882
14026 msgid ""
14027 "This command disables the libguestfs appliance swap partition with the given "
14028 "UUID."
14029 msgstr ""
14030
14031 #. type: =head2
14032 #: ../fish/guestfish-actions.pod:4581
14033 msgid "swapon-device"
14034 msgstr ""
14035
14036 #. type: verbatim
14037 #: ../fish/guestfish-actions.pod:4583
14038 #, no-wrap
14039 msgid ""
14040 " swapon-device device\n"
14041 "\n"
14042 msgstr ""
14043
14044 #. type: textblock
14045 #: ../fish/guestfish-actions.pod:4585
14046 msgid ""
14047 "This command enables the libguestfs appliance to use the swap device or "
14048 "partition named C<device>.  The increased memory is made available for all "
14049 "commands, for example those run using L</command> or L</sh>."
14050 msgstr ""
14051
14052 #. type: textblock
14053 #: ../fish/guestfish-actions.pod:4590 ../src/guestfs-actions.pod:6900
14054 msgid ""
14055 "Note that you should not swap to existing guest swap partitions unless you "
14056 "know what you are doing.  They may contain hibernation information, or other "
14057 "information that the guest doesn't want you to trash.  You also risk leaking "
14058 "information about the host to the guest this way.  Instead, attach a new "
14059 "host device to the guest and swap on that."
14060 msgstr ""
14061
14062 #. type: =head2
14063 #: ../fish/guestfish-actions.pod:4597
14064 msgid "swapon-file"
14065 msgstr ""
14066
14067 #. type: verbatim
14068 #: ../fish/guestfish-actions.pod:4599
14069 #, no-wrap
14070 msgid ""
14071 " swapon-file file\n"
14072 "\n"
14073 msgstr ""
14074
14075 #. type: textblock
14076 #: ../fish/guestfish-actions.pod:4601
14077 msgid ""
14078 "This command enables swap to a file.  See L</swapon-device> for other notes."
14079 msgstr ""
14080
14081 #. type: =head2
14082 #: ../fish/guestfish-actions.pod:4604
14083 msgid "swapon-label"
14084 msgstr ""
14085
14086 #. type: verbatim
14087 #: ../fish/guestfish-actions.pod:4606
14088 #, no-wrap
14089 msgid ""
14090 " swapon-label label\n"
14091 "\n"
14092 msgstr ""
14093
14094 #. type: textblock
14095 #: ../fish/guestfish-actions.pod:4608
14096 msgid ""
14097 "This command enables swap to a labeled swap partition.  See L</swapon-"
14098 "device> for other notes."
14099 msgstr ""
14100
14101 #. type: =head2
14102 #: ../fish/guestfish-actions.pod:4611
14103 msgid "swapon-uuid"
14104 msgstr ""
14105
14106 #. type: verbatim
14107 #: ../fish/guestfish-actions.pod:4613
14108 #, no-wrap
14109 msgid ""
14110 " swapon-uuid uuid\n"
14111 "\n"
14112 msgstr ""
14113
14114 #. type: textblock
14115 #: ../fish/guestfish-actions.pod:4615
14116 msgid ""
14117 "This command enables swap to a swap partition with the given UUID.  See L</"
14118 "swapon-device> for other notes."
14119 msgstr ""
14120
14121 #. type: =head2
14122 #: ../fish/guestfish-actions.pod:4618
14123 msgid "sync"
14124 msgstr ""
14125
14126 #. type: verbatim
14127 #: ../fish/guestfish-actions.pod:4620
14128 #, no-wrap
14129 msgid ""
14130 " sync\n"
14131 "\n"
14132 msgstr ""
14133
14134 #. type: textblock
14135 #: ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:6955
14136 msgid ""
14137 "This syncs the disk, so that any writes are flushed through to the "
14138 "underlying disk image."
14139 msgstr ""
14140
14141 #. type: textblock
14142 #: ../fish/guestfish-actions.pod:4625 ../src/guestfs-actions.pod:6958
14143 msgid ""
14144 "You should always call this if you have modified a disk image, before "
14145 "closing the handle."
14146 msgstr ""
14147
14148 #. type: =head2
14149 #: ../fish/guestfish-actions.pod:4628
14150 msgid "tail"
14151 msgstr ""
14152
14153 #. type: verbatim
14154 #: ../fish/guestfish-actions.pod:4630
14155 #, no-wrap
14156 msgid ""
14157 " tail path\n"
14158 "\n"
14159 msgstr ""
14160
14161 #. type: textblock
14162 #: ../fish/guestfish-actions.pod:4632 ../src/guestfs-actions.pod:6971
14163 msgid ""
14164 "This command returns up to the last 10 lines of a file as a list of strings."
14165 msgstr ""
14166
14167 #. type: =head2
14168 #: ../fish/guestfish-actions.pod:4638
14169 msgid "tail-n"
14170 msgstr ""
14171
14172 #. type: verbatim
14173 #: ../fish/guestfish-actions.pod:4640
14174 #, no-wrap
14175 msgid ""
14176 " tail-n nrlines path\n"
14177 "\n"
14178 msgstr ""
14179
14180 #. type: textblock
14181 #: ../fish/guestfish-actions.pod:4642 ../src/guestfs-actions.pod:6990
14182 msgid ""
14183 "If the parameter C<nrlines> is a positive number, this returns the last "
14184 "C<nrlines> lines of the file C<path>."
14185 msgstr ""
14186
14187 #. type: textblock
14188 #: ../fish/guestfish-actions.pod:4645 ../src/guestfs-actions.pod:6993
14189 msgid ""
14190 "If the parameter C<nrlines> is a negative number, this returns lines from "
14191 "the file C<path>, starting with the C<-nrlines>th line."
14192 msgstr ""
14193
14194 #. type: =head2
14195 #: ../fish/guestfish-actions.pod:4653
14196 msgid "tar-in"
14197 msgstr ""
14198
14199 #. type: verbatim
14200 #: ../fish/guestfish-actions.pod:4655
14201 #, no-wrap
14202 msgid ""
14203 " tar-in (tarfile|-) directory\n"
14204 "\n"
14205 msgstr ""
14206
14207 #. type: textblock
14208 #: ../fish/guestfish-actions.pod:4657 ../src/guestfs-actions.pod:7014
14209 msgid ""
14210 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14211 "tar file) into C<directory>."
14212 msgstr ""
14213
14214 #. type: textblock
14215 #: ../fish/guestfish-actions.pod:4660
14216 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
14217 msgstr ""
14218
14219 #. type: =head2
14220 #: ../fish/guestfish-actions.pod:4665
14221 msgid "tar-out"
14222 msgstr ""
14223
14224 #. type: verbatim
14225 #: ../fish/guestfish-actions.pod:4667
14226 #, no-wrap
14227 msgid ""
14228 " tar-out directory (tarfile|-)\n"
14229 "\n"
14230 msgstr ""
14231
14232 #. type: textblock
14233 #: ../fish/guestfish-actions.pod:4669 ../src/guestfs-actions.pod:7031
14234 msgid ""
14235 "This command packs the contents of C<directory> and downloads it to local "
14236 "file C<tarfile>."
14237 msgstr ""
14238
14239 #. type: textblock
14240 #: ../fish/guestfish-actions.pod:4672
14241 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
14242 msgstr ""
14243
14244 #. type: =head2
14245 #: ../fish/guestfish-actions.pod:4677
14246 msgid "tgz-in"
14247 msgstr ""
14248
14249 #. type: verbatim
14250 #: ../fish/guestfish-actions.pod:4679
14251 #, no-wrap
14252 msgid ""
14253 " tgz-in (tarball|-) directory\n"
14254 "\n"
14255 msgstr ""
14256
14257 #. type: textblock
14258 #: ../fish/guestfish-actions.pod:4681 ../src/guestfs-actions.pod:7048
14259 msgid ""
14260 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14261 "tar file) into C<directory>."
14262 msgstr ""
14263
14264 #. type: textblock
14265 #: ../fish/guestfish-actions.pod:4684
14266 msgid "To upload an uncompressed tarball, use L</tar-in>."
14267 msgstr ""
14268
14269 #. type: =head2
14270 #: ../fish/guestfish-actions.pod:4688
14271 msgid "tgz-out"
14272 msgstr ""
14273
14274 #. type: verbatim
14275 #: ../fish/guestfish-actions.pod:4690
14276 #, no-wrap
14277 msgid ""
14278 " tgz-out directory (tarball|-)\n"
14279 "\n"
14280 msgstr ""
14281
14282 #. type: textblock
14283 #: ../fish/guestfish-actions.pod:4692 ../src/guestfs-actions.pod:7064
14284 msgid ""
14285 "This command packs the contents of C<directory> and downloads it to local "
14286 "file C<tarball>."
14287 msgstr ""
14288
14289 #. type: textblock
14290 #: ../fish/guestfish-actions.pod:4695
14291 msgid "To download an uncompressed tarball, use L</tar-out>."
14292 msgstr ""
14293
14294 #. type: =head2
14295 #: ../fish/guestfish-actions.pod:4699
14296 msgid "touch"
14297 msgstr ""
14298
14299 #. type: verbatim
14300 #: ../fish/guestfish-actions.pod:4701
14301 #, no-wrap
14302 msgid ""
14303 " touch path\n"
14304 "\n"
14305 msgstr ""
14306
14307 #. type: textblock
14308 #: ../fish/guestfish-actions.pod:4703 ../src/guestfs-actions.pod:7079
14309 msgid ""
14310 "Touch acts like the L<touch(1)> command.  It can be used to update the "
14311 "timestamps on a file, or, if the file does not exist, to create a new zero-"
14312 "length file."
14313 msgstr ""
14314
14315 #. type: textblock
14316 #: ../fish/guestfish-actions.pod:4707 ../src/guestfs-actions.pod:7083
14317 msgid ""
14318 "This command only works on regular files, and will fail on other file types "
14319 "such as directories, symbolic links, block special etc."
14320 msgstr ""
14321
14322 #. type: =head2
14323 #: ../fish/guestfish-actions.pod:4710
14324 msgid "truncate"
14325 msgstr ""
14326
14327 #. type: verbatim
14328 #: ../fish/guestfish-actions.pod:4712
14329 #, no-wrap
14330 msgid ""
14331 " truncate path\n"
14332 "\n"
14333 msgstr ""
14334
14335 #. type: textblock
14336 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7096
14337 msgid ""
14338 "This command truncates C<path> to a zero-length file.  The file must exist "
14339 "already."
14340 msgstr ""
14341
14342 #. type: =head2
14343 #: ../fish/guestfish-actions.pod:4717
14344 msgid "truncate-size"
14345 msgstr ""
14346
14347 #. type: verbatim
14348 #: ../fish/guestfish-actions.pod:4719
14349 #, no-wrap
14350 msgid ""
14351 " truncate-size path size\n"
14352 "\n"
14353 msgstr ""
14354
14355 #. type: textblock
14356 #: ../fish/guestfish-actions.pod:4721 ../src/guestfs-actions.pod:7110
14357 msgid ""
14358 "This command truncates C<path> to size C<size> bytes.  The file must exist "
14359 "already."
14360 msgstr ""
14361
14362 #. type: textblock
14363 #: ../fish/guestfish-actions.pod:4724
14364 msgid ""
14365 "If the current file size is less than C<size> then the file is extended to "
14366 "the required size with zero bytes.  This creates a sparse file (ie. disk "
14367 "blocks are not allocated for the file until you write to it).  To create a "
14368 "non-sparse file of zeroes, use L</fallocate64> instead."
14369 msgstr ""
14370
14371 #. type: =head2
14372 #: ../fish/guestfish-actions.pod:4730
14373 msgid "tune2fs-l"
14374 msgstr ""
14375
14376 #. type: verbatim
14377 #: ../fish/guestfish-actions.pod:4732
14378 #, no-wrap
14379 msgid ""
14380 " tune2fs-l device\n"
14381 "\n"
14382 msgstr ""
14383
14384 #. type: textblock
14385 #: ../fish/guestfish-actions.pod:4734 ../src/guestfs-actions.pod:7129
14386 msgid ""
14387 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
14388 "C<device>."
14389 msgstr ""
14390
14391 #. type: textblock
14392 #: ../fish/guestfish-actions.pod:4737 ../src/guestfs-actions.pod:7132
14393 msgid ""
14394 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
14395 "for more details.  The list of fields returned isn't clearly defined, and "
14396 "depends on both the version of C<tune2fs> that libguestfs was built against, "
14397 "and the filesystem itself."
14398 msgstr ""
14399
14400 #. type: =head2
14401 #: ../fish/guestfish-actions.pod:4742
14402 msgid "txz-in"
14403 msgstr ""
14404
14405 #. type: verbatim
14406 #: ../fish/guestfish-actions.pod:4744
14407 #, no-wrap
14408 msgid ""
14409 " txz-in (tarball|-) directory\n"
14410 "\n"
14411 msgstr ""
14412
14413 #. type: textblock
14414 #: ../fish/guestfish-actions.pod:4746 ../src/guestfs-actions.pod:7152
14415 msgid ""
14416 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
14417 "tar file) into C<directory>."
14418 msgstr ""
14419
14420 #. type: =head2
14421 #: ../fish/guestfish-actions.pod:4751
14422 msgid "txz-out"
14423 msgstr ""
14424
14425 #. type: verbatim
14426 #: ../fish/guestfish-actions.pod:4753
14427 #, no-wrap
14428 msgid ""
14429 " txz-out directory (tarball|-)\n"
14430 "\n"
14431 msgstr ""
14432
14433 #. type: textblock
14434 #: ../fish/guestfish-actions.pod:4755 ../src/guestfs-actions.pod:7166
14435 msgid ""
14436 "This command packs the contents of C<directory> and downloads it to local "
14437 "file C<tarball> (as an xz compressed tar archive)."
14438 msgstr ""
14439
14440 #. type: =head2
14441 #: ../fish/guestfish-actions.pod:4760
14442 msgid "umask"
14443 msgstr ""
14444
14445 #. type: verbatim
14446 #: ../fish/guestfish-actions.pod:4762
14447 #, no-wrap
14448 msgid ""
14449 " umask mask\n"
14450 "\n"
14451 msgstr ""
14452
14453 #. type: textblock
14454 #: ../fish/guestfish-actions.pod:4764 ../src/guestfs-actions.pod:7179
14455 msgid ""
14456 "This function sets the mask used for creating new files and device nodes to "
14457 "C<mask & 0777>."
14458 msgstr ""
14459
14460 #. type: textblock
14461 #: ../fish/guestfish-actions.pod:4767 ../src/guestfs-actions.pod:7182
14462 msgid ""
14463 "Typical umask values would be C<022> which creates new files with "
14464 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
14465 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
14466 msgstr ""
14467
14468 #. type: textblock
14469 #: ../fish/guestfish-actions.pod:4772 ../src/guestfs-actions.pod:7187
14470 msgid ""
14471 "The default umask is C<022>.  This is important because it means that "
14472 "directories and device nodes will be created with C<0644> or C<0755> mode "
14473 "even if you specify C<0777>."
14474 msgstr ""
14475
14476 #. type: textblock
14477 #: ../fish/guestfish-actions.pod:4776
14478 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
14479 msgstr ""
14480
14481 #. type: textblock
14482 #: ../fish/guestfish-actions.pod:4779 ../src/guestfs-actions.pod:7194
14483 msgid "This call returns the previous umask."
14484 msgstr ""
14485
14486 #. type: =head2
14487 #: ../fish/guestfish-actions.pod:4781
14488 msgid "umount"
14489 msgstr ""
14490
14491 #. type: =head2
14492 #: ../fish/guestfish-actions.pod:4783
14493 msgid "unmount"
14494 msgstr ""
14495
14496 #. type: verbatim
14497 #: ../fish/guestfish-actions.pod:4785
14498 #, no-wrap
14499 msgid ""
14500 " umount pathordevice\n"
14501 "\n"
14502 msgstr ""
14503
14504 #. type: textblock
14505 #: ../fish/guestfish-actions.pod:4787 ../src/guestfs-actions.pod:7206
14506 msgid ""
14507 "This unmounts the given filesystem.  The filesystem may be specified either "
14508 "by its mountpoint (path) or the device which contains the filesystem."
14509 msgstr ""
14510
14511 #. type: =head2
14512 #: ../fish/guestfish-actions.pod:4791
14513 msgid "umount-all"
14514 msgstr ""
14515
14516 #. type: =head2
14517 #: ../fish/guestfish-actions.pod:4793
14518 msgid "unmount-all"
14519 msgstr ""
14520
14521 #. type: verbatim
14522 #: ../fish/guestfish-actions.pod:4795
14523 #, no-wrap
14524 msgid ""
14525 " umount-all\n"
14526 "\n"
14527 msgstr ""
14528
14529 #. type: textblock
14530 #: ../fish/guestfish-actions.pod:4797 ../src/guestfs-actions.pod:7219
14531 msgid "This unmounts all mounted filesystems."
14532 msgstr ""
14533
14534 #. type: textblock
14535 #: ../fish/guestfish-actions.pod:4799 ../src/guestfs-actions.pod:7221
14536 msgid "Some internal mounts are not unmounted by this call."
14537 msgstr ""
14538
14539 #. type: =head2
14540 #: ../fish/guestfish-actions.pod:4801
14541 msgid "upload"
14542 msgstr ""
14543
14544 #. type: verbatim
14545 #: ../fish/guestfish-actions.pod:4803
14546 #, no-wrap
14547 msgid ""
14548 " upload (filename|-) remotefilename\n"
14549 "\n"
14550 msgstr ""
14551
14552 #. type: textblock
14553 #: ../fish/guestfish-actions.pod:4805 ../fish/guestfish-actions.pod:4818
14554 #: ../src/guestfs-actions.pod:7234 ../src/guestfs-actions.pod:7258
14555 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
14556 msgstr ""
14557
14558 #. type: textblock
14559 #: ../fish/guestfish-actions.pod:4810
14560 msgid "See also L</download>."
14561 msgstr ""
14562
14563 #. type: =head2
14564 #: ../fish/guestfish-actions.pod:4814
14565 msgid "upload-offset"
14566 msgstr ""
14567
14568 #. type: verbatim
14569 #: ../fish/guestfish-actions.pod:4816
14570 #, no-wrap
14571 msgid ""
14572 " upload-offset (filename|-) remotefilename offset\n"
14573 "\n"
14574 msgstr ""
14575
14576 #. type: textblock
14577 #: ../fish/guestfish-actions.pod:4821 ../src/guestfs-actions.pod:7261
14578 msgid ""
14579 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
14580 "The intention is to overwrite parts of existing files or devices, although "
14581 "if a non-existant file is specified then it is created with a \"hole\" "
14582 "before C<offset>.  The size of the data written is implicit in the size of "
14583 "the source C<filename>."
14584 msgstr ""
14585
14586 #. type: textblock
14587 #: ../fish/guestfish-actions.pod:4828
14588 msgid ""
14589 "Note that there is no limit on the amount of data that can be uploaded with "
14590 "this call, unlike with L</pwrite>, and this call always writes the full "
14591 "amount unless an error occurs."
14592 msgstr ""
14593
14594 #. type: textblock
14595 #: ../fish/guestfish-actions.pod:4833
14596 msgid "See also L</upload>, L</pwrite>."
14597 msgstr ""
14598
14599 #. type: =head2
14600 #: ../fish/guestfish-actions.pod:4837
14601 msgid "utimens"
14602 msgstr ""
14603
14604 #. type: verbatim
14605 #: ../fish/guestfish-actions.pod:4839
14606 #, no-wrap
14607 msgid ""
14608 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
14609 "\n"
14610 msgstr ""
14611
14612 #. type: textblock
14613 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7294
14614 msgid "This command sets the timestamps of a file with nanosecond precision."
14615 msgstr ""
14616
14617 #. type: textblock
14618 #: ../fish/guestfish-actions.pod:4844 ../src/guestfs-actions.pod:7297
14619 msgid ""
14620 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
14621 "from the epoch."
14622 msgstr ""
14623
14624 #. type: textblock
14625 #: ../fish/guestfish-actions.pod:4847 ../src/guestfs-actions.pod:7300
14626 msgid ""
14627 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
14628 "nanoseconds from the epoch."
14629 msgstr ""
14630
14631 #. type: textblock
14632 #: ../fish/guestfish-actions.pod:4850 ../src/guestfs-actions.pod:7303
14633 msgid ""
14634 "If the C<*nsecs> field contains the special value C<-1> then the "
14635 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
14636 "ignored in this case)."
14637 msgstr ""
14638
14639 #. type: textblock
14640 #: ../fish/guestfish-actions.pod:4854 ../src/guestfs-actions.pod:7307
14641 msgid ""
14642 "If the C<*nsecs> field contains the special value C<-2> then the "
14643 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
14644 "in this case)."
14645 msgstr ""
14646
14647 #. type: =head2
14648 #: ../fish/guestfish-actions.pod:4858
14649 msgid "version"
14650 msgstr ""
14651
14652 #. type: verbatim
14653 #: ../fish/guestfish-actions.pod:4860
14654 #, no-wrap
14655 msgid ""
14656 " version\n"
14657 "\n"
14658 msgstr ""
14659
14660 #. type: textblock
14661 #: ../fish/guestfish-actions.pod:4862 ../src/guestfs-actions.pod:7320
14662 msgid ""
14663 "Return the libguestfs version number that the program is linked against."
14664 msgstr ""
14665
14666 #. type: textblock
14667 #: ../fish/guestfish-actions.pod:4865 ../src/guestfs-actions.pod:7323
14668 msgid ""
14669 "Note that because of dynamic linking this is not necessarily the version of "
14670 "libguestfs that you compiled against.  You can compile the program, and then "
14671 "at runtime dynamically link against a completely different C<libguestfs.so> "
14672 "library."
14673 msgstr ""
14674
14675 #. type: textblock
14676 #: ../fish/guestfish-actions.pod:4870 ../src/guestfs-actions.pod:7328
14677 msgid ""
14678 "This call was added in version C<1.0.58>.  In previous versions of "
14679 "libguestfs there was no way to get the version number.  From C code you can "
14680 "use dynamic linker functions to find out if this symbol exists (if it "
14681 "doesn't, then it's an earlier version)."
14682 msgstr ""
14683
14684 #. type: textblock
14685 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7334
14686 msgid ""
14687 "The call returns a structure with four elements.  The first three (C<major>, "
14688 "C<minor> and C<release>) are numbers and correspond to the usual version "
14689 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
14690 "but may be used for distro-specific information."
14691 msgstr ""
14692
14693 #. type: textblock
14694 #: ../fish/guestfish-actions.pod:4882 ../src/guestfs-actions.pod:7340
14695 msgid ""
14696 "To construct the original version string: C<$major.$minor.$release$extra>"
14697 msgstr ""
14698
14699 #. type: textblock
14700 #: ../fish/guestfish-actions.pod:4885 ../src/guestfs-actions.pod:7343
14701 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
14702 msgstr ""
14703
14704 #. type: textblock
14705 #: ../fish/guestfish-actions.pod:4887
14706 msgid ""
14707 "I<Note:> Don't use this call to test for availability of features.  In "
14708 "enterprise distributions we backport features from later versions into "
14709 "earlier versions, making this an unreliable way to test for features.  Use "
14710 "L</available> instead."
14711 msgstr ""
14712
14713 #. type: =head2
14714 #: ../fish/guestfish-actions.pod:4893
14715 msgid "vfs-label"
14716 msgstr ""
14717
14718 #. type: verbatim
14719 #: ../fish/guestfish-actions.pod:4895
14720 #, no-wrap
14721 msgid ""
14722 " vfs-label device\n"
14723 "\n"
14724 msgstr ""
14725
14726 #. type: textblock
14727 #: ../fish/guestfish-actions.pod:4897 ../src/guestfs-actions.pod:7363
14728 msgid "This returns the filesystem label of the filesystem on C<device>."
14729 msgstr ""
14730
14731 #. type: textblock
14732 #: ../fish/guestfish-actions.pod:4900 ../src/guestfs-actions.pod:7366
14733 msgid "If the filesystem is unlabeled, this returns the empty string."
14734 msgstr ""
14735
14736 #. type: textblock
14737 #: ../fish/guestfish-actions.pod:4902
14738 msgid "To find a filesystem from the label, use L</findfs-label>."
14739 msgstr ""
14740
14741 #. type: =head2
14742 #: ../fish/guestfish-actions.pod:4904
14743 msgid "vfs-type"
14744 msgstr ""
14745
14746 #. type: verbatim
14747 #: ../fish/guestfish-actions.pod:4906
14748 #, no-wrap
14749 msgid ""
14750 " vfs-type device\n"
14751 "\n"
14752 msgstr ""
14753
14754 #. type: textblock
14755 #: ../fish/guestfish-actions.pod:4908 ../src/guestfs-actions.pod:7381
14756 msgid ""
14757 "This command gets the filesystem type corresponding to the filesystem on "
14758 "C<device>."
14759 msgstr ""
14760
14761 #. type: textblock
14762 #: ../fish/guestfish-actions.pod:4911 ../src/guestfs-actions.pod:7384
14763 msgid ""
14764 "For most filesystems, the result is the name of the Linux VFS module which "
14765 "would be used to mount this filesystem if you mounted it without specifying "
14766 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
14767 msgstr ""
14768
14769 #. type: =head2
14770 #: ../fish/guestfish-actions.pod:4916
14771 msgid "vfs-uuid"
14772 msgstr ""
14773
14774 #. type: verbatim
14775 #: ../fish/guestfish-actions.pod:4918
14776 #, no-wrap
14777 msgid ""
14778 " vfs-uuid device\n"
14779 "\n"
14780 msgstr ""
14781
14782 #. type: textblock
14783 #: ../fish/guestfish-actions.pod:4920 ../src/guestfs-actions.pod:7400
14784 msgid "This returns the filesystem UUID of the filesystem on C<device>."
14785 msgstr ""
14786
14787 #. type: textblock
14788 #: ../fish/guestfish-actions.pod:4923 ../src/guestfs-actions.pod:7403
14789 msgid "If the filesystem does not have a UUID, this returns the empty string."
14790 msgstr ""
14791
14792 #. type: textblock
14793 #: ../fish/guestfish-actions.pod:4925
14794 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
14795 msgstr ""
14796
14797 #. type: =head2
14798 #: ../fish/guestfish-actions.pod:4927
14799 msgid "vg-activate"
14800 msgstr ""
14801
14802 #. type: verbatim
14803 #: ../fish/guestfish-actions.pod:4929
14804 #, no-wrap
14805 msgid ""
14806 " vg-activate true|false 'volgroups ...'\n"
14807 "\n"
14808 msgstr ""
14809
14810 #. type: textblock
14811 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7419
14812 msgid ""
14813 "This command activates or (if C<activate> is false) deactivates all logical "
14814 "volumes in the listed volume groups C<volgroups>."
14815 msgstr ""
14816
14817 #. type: textblock
14818 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7422
14819 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
14820 msgstr ""
14821
14822 #. type: textblock
14823 #: ../fish/guestfish-actions.pod:4936 ../src/guestfs-actions.pod:7424
14824 msgid ""
14825 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
14826 "activated or deactivated."
14827 msgstr ""
14828
14829 #. type: =head2
14830 #: ../fish/guestfish-actions.pod:4939
14831 msgid "vg-activate-all"
14832 msgstr ""
14833
14834 #. type: verbatim
14835 #: ../fish/guestfish-actions.pod:4941
14836 #, no-wrap
14837 msgid ""
14838 " vg-activate-all true|false\n"
14839 "\n"
14840 msgstr ""
14841
14842 #. type: textblock
14843 #: ../fish/guestfish-actions.pod:4943 ../src/guestfs-actions.pod:7437
14844 msgid ""
14845 "This command activates or (if C<activate> is false) deactivates all logical "
14846 "volumes in all volume groups."
14847 msgstr ""
14848
14849 #. type: textblock
14850 #: ../fish/guestfish-actions.pod:4946 ../src/guestfs-actions.pod:7440
14851 msgid "This command is the same as running C<vgchange -a y|n>"
14852 msgstr ""
14853
14854 #. type: =head2
14855 #: ../fish/guestfish-actions.pod:4948
14856 msgid "vgcreate"
14857 msgstr ""
14858
14859 #. type: verbatim
14860 #: ../fish/guestfish-actions.pod:4950
14861 #, no-wrap
14862 msgid ""
14863 " vgcreate volgroup 'physvols ...'\n"
14864 "\n"
14865 msgstr ""
14866
14867 #. type: textblock
14868 #: ../fish/guestfish-actions.pod:4952 ../src/guestfs-actions.pod:7453
14869 msgid ""
14870 "This creates an LVM volume group called C<volgroup> from the non-empty list "
14871 "of physical volumes C<physvols>."
14872 msgstr ""
14873
14874 #. type: =head2
14875 #: ../fish/guestfish-actions.pod:4955
14876 msgid "vglvuuids"
14877 msgstr ""
14878
14879 #. type: verbatim
14880 #: ../fish/guestfish-actions.pod:4957
14881 #, no-wrap
14882 msgid ""
14883 " vglvuuids vgname\n"
14884 "\n"
14885 msgstr ""
14886
14887 #. type: textblock
14888 #: ../fish/guestfish-actions.pod:4959 ../src/guestfs-actions.pod:7466
14889 msgid ""
14890 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
14891 "volumes created in this volume group."
14892 msgstr ""
14893
14894 #. type: textblock
14895 #: ../fish/guestfish-actions.pod:4962
14896 msgid ""
14897 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
14898 "logical volumes and volume groups."
14899 msgstr ""
14900
14901 #. type: textblock
14902 #: ../fish/guestfish-actions.pod:4965
14903 msgid "See also L</vgpvuuids>."
14904 msgstr ""
14905
14906 #. type: =head2
14907 #: ../fish/guestfish-actions.pod:4967
14908 msgid "vgpvuuids"
14909 msgstr ""
14910
14911 #. type: verbatim
14912 #: ../fish/guestfish-actions.pod:4969
14913 #, no-wrap
14914 msgid ""
14915 " vgpvuuids vgname\n"
14916 "\n"
14917 msgstr ""
14918
14919 #. type: textblock
14920 #: ../fish/guestfish-actions.pod:4971 ../src/guestfs-actions.pod:7486
14921 msgid ""
14922 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
14923 "volumes that this volume group resides on."
14924 msgstr ""
14925
14926 #. type: textblock
14927 #: ../fish/guestfish-actions.pod:4974
14928 msgid ""
14929 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
14930 "physical volumes and volume groups."
14931 msgstr ""
14932
14933 #. type: textblock
14934 #: ../fish/guestfish-actions.pod:4977
14935 msgid "See also L</vglvuuids>."
14936 msgstr ""
14937
14938 #. type: =head2
14939 #: ../fish/guestfish-actions.pod:4979
14940 msgid "vgremove"
14941 msgstr ""
14942
14943 #. type: verbatim
14944 #: ../fish/guestfish-actions.pod:4981
14945 #, no-wrap
14946 msgid ""
14947 " vgremove vgname\n"
14948 "\n"
14949 msgstr ""
14950
14951 #. type: textblock
14952 #: ../fish/guestfish-actions.pod:4983 ../src/guestfs-actions.pod:7506
14953 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
14954 msgstr ""
14955
14956 #. type: textblock
14957 #: ../fish/guestfish-actions.pod:4985 ../src/guestfs-actions.pod:7508
14958 msgid ""
14959 "This also forcibly removes all logical volumes in the volume group (if any)."
14960 msgstr ""
14961
14962 #. type: =head2
14963 #: ../fish/guestfish-actions.pod:4988
14964 msgid "vgrename"
14965 msgstr ""
14966
14967 #. type: verbatim
14968 #: ../fish/guestfish-actions.pod:4990
14969 #, no-wrap
14970 msgid ""
14971 " vgrename volgroup newvolgroup\n"
14972 "\n"
14973 msgstr ""
14974
14975 #. type: textblock
14976 #: ../fish/guestfish-actions.pod:4992 ../src/guestfs-actions.pod:7522
14977 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
14978 msgstr ""
14979
14980 #. type: =head2
14981 #: ../fish/guestfish-actions.pod:4994
14982 msgid "vgs"
14983 msgstr ""
14984
14985 #. type: verbatim
14986 #: ../fish/guestfish-actions.pod:4996
14987 #, no-wrap
14988 msgid ""
14989 " vgs\n"
14990 "\n"
14991 msgstr ""
14992
14993 #. type: textblock
14994 #: ../fish/guestfish-actions.pod:4998 ../src/guestfs-actions.pod:7533
14995 msgid ""
14996 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
14997 "> command."
14998 msgstr ""
14999
15000 #. type: textblock
15001 #: ../fish/guestfish-actions.pod:5001 ../src/guestfs-actions.pod:7536
15002 msgid ""
15003 "This returns a list of just the volume group names that were detected (eg. "
15004 "C<VolGroup00>)."
15005 msgstr ""
15006
15007 #. type: textblock
15008 #: ../fish/guestfish-actions.pod:5004
15009 msgid "See also L</vgs-full>."
15010 msgstr ""
15011
15012 #. type: =head2
15013 #: ../fish/guestfish-actions.pod:5006
15014 msgid "vgs-full"
15015 msgstr ""
15016
15017 #. type: verbatim
15018 #: ../fish/guestfish-actions.pod:5008
15019 #, no-wrap
15020 msgid ""
15021 " vgs-full\n"
15022 "\n"
15023 msgstr ""
15024
15025 #. type: textblock
15026 #: ../fish/guestfish-actions.pod:5010 ../src/guestfs-actions.pod:7552
15027 msgid ""
15028 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15029 "> command.  The \"full\" version includes all fields."
15030 msgstr ""
15031
15032 #. type: =head2
15033 #: ../fish/guestfish-actions.pod:5013
15034 msgid "vgscan"
15035 msgstr ""
15036
15037 #. type: verbatim
15038 #: ../fish/guestfish-actions.pod:5015
15039 #, no-wrap
15040 msgid ""
15041 " vgscan\n"
15042 "\n"
15043 msgstr ""
15044
15045 #. type: textblock
15046 #: ../fish/guestfish-actions.pod:5017 ../src/guestfs-actions.pod:7566
15047 msgid ""
15048 "This rescans all block devices and rebuilds the list of LVM physical "
15049 "volumes, volume groups and logical volumes."
15050 msgstr ""
15051
15052 #. type: =head2
15053 #: ../fish/guestfish-actions.pod:5020
15054 msgid "vguuid"
15055 msgstr ""
15056
15057 #. type: verbatim
15058 #: ../fish/guestfish-actions.pod:5022
15059 #, no-wrap
15060 msgid ""
15061 " vguuid vgname\n"
15062 "\n"
15063 msgstr ""
15064
15065 #. type: textblock
15066 #: ../fish/guestfish-actions.pod:5024 ../src/guestfs-actions.pod:7579
15067 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15068 msgstr ""
15069
15070 #. type: =head2
15071 #: ../fish/guestfish-actions.pod:5026
15072 msgid "wc-c"
15073 msgstr ""
15074
15075 #. type: verbatim
15076 #: ../fish/guestfish-actions.pod:5028
15077 #, no-wrap
15078 msgid ""
15079 " wc-c path\n"
15080 "\n"
15081 msgstr ""
15082
15083 #. type: textblock
15084 #: ../fish/guestfish-actions.pod:5030 ../src/guestfs-actions.pod:7619
15085 msgid ""
15086 "This command counts the characters in a file, using the C<wc -c> external "
15087 "command."
15088 msgstr ""
15089
15090 #. type: =head2
15091 #: ../fish/guestfish-actions.pod:5033
15092 msgid "wc-l"
15093 msgstr ""
15094
15095 #. type: verbatim
15096 #: ../fish/guestfish-actions.pod:5035
15097 #, no-wrap
15098 msgid ""
15099 " wc-l path\n"
15100 "\n"
15101 msgstr ""
15102
15103 #. type: textblock
15104 #: ../fish/guestfish-actions.pod:5037 ../src/guestfs-actions.pod:7632
15105 msgid ""
15106 "This command counts the lines in a file, using the C<wc -l> external command."
15107 msgstr ""
15108
15109 #. type: =head2
15110 #: ../fish/guestfish-actions.pod:5040
15111 msgid "wc-w"
15112 msgstr ""
15113
15114 #. type: verbatim
15115 #: ../fish/guestfish-actions.pod:5042
15116 #, no-wrap
15117 msgid ""
15118 " wc-w path\n"
15119 "\n"
15120 msgstr ""
15121
15122 #. type: textblock
15123 #: ../fish/guestfish-actions.pod:5044 ../src/guestfs-actions.pod:7645
15124 msgid ""
15125 "This command counts the words in a file, using the C<wc -w> external command."
15126 msgstr ""
15127
15128 #. type: =head2
15129 #: ../fish/guestfish-actions.pod:5047
15130 msgid "write"
15131 msgstr ""
15132
15133 #. type: verbatim
15134 #: ../fish/guestfish-actions.pod:5049
15135 #, no-wrap
15136 msgid ""
15137 " write path content\n"
15138 "\n"
15139 msgstr ""
15140
15141 #. type: textblock
15142 #: ../fish/guestfish-actions.pod:5051 ../src/guestfs-actions.pod:7660
15143 msgid ""
15144 "This call creates a file called C<path>.  The content of the file is the "
15145 "string C<content> (which can contain any 8 bit data)."
15146 msgstr ""
15147
15148 #. type: textblock
15149 #: ../fish/guestfish-actions.pod:5054
15150 msgid "See also L</write-append>."
15151 msgstr ""
15152
15153 #. type: =head2
15154 #: ../fish/guestfish-actions.pod:5059
15155 msgid "write-append"
15156 msgstr ""
15157
15158 #. type: verbatim
15159 #: ../fish/guestfish-actions.pod:5061
15160 #, no-wrap
15161 msgid ""
15162 " write-append path content\n"
15163 "\n"
15164 msgstr ""
15165
15166 #. type: textblock
15167 #: ../fish/guestfish-actions.pod:5063 ../src/guestfs-actions.pod:7680
15168 msgid ""
15169 "This call appends C<content> to the end of file C<path>.  If C<path> does "
15170 "not exist, then a new file is created."
15171 msgstr ""
15172
15173 #. type: textblock
15174 #: ../fish/guestfish-actions.pod:5066
15175 msgid "See also L</write>."
15176 msgstr ""
15177
15178 #. type: =head2
15179 #: ../fish/guestfish-actions.pod:5071
15180 msgid "write-file"
15181 msgstr ""
15182
15183 #. type: verbatim
15184 #: ../fish/guestfish-actions.pod:5073
15185 #, no-wrap
15186 msgid ""
15187 " write-file path content size\n"
15188 "\n"
15189 msgstr ""
15190
15191 #. type: textblock
15192 #: ../fish/guestfish-actions.pod:5075 ../src/guestfs-actions.pod:7707
15193 msgid ""
15194 "This call creates a file called C<path>.  The contents of the file is the "
15195 "string C<content> (which can contain any 8 bit data), with length C<size>."
15196 msgstr ""
15197
15198 #. type: textblock
15199 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7711
15200 msgid ""
15201 "As a special case, if C<size> is C<0> then the length is calculated using "
15202 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
15203 msgstr ""
15204
15205 #. type: textblock
15206 #: ../fish/guestfish-actions.pod:5083 ../src/guestfs-actions.pod:7715
15207 msgid ""
15208 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
15209 "I<not> work, even if the length is specified."
15210 msgstr ""
15211
15212 #. type: textblock
15213 #: ../fish/guestfish-actions.pod:5089
15214 msgid ""
15215 "I<This function is deprecated.> In new code, use the L</write> call instead."
15216 msgstr ""
15217
15218 #. type: =head2
15219 #: ../fish/guestfish-actions.pod:5096
15220 msgid "zegrep"
15221 msgstr ""
15222
15223 #. type: verbatim
15224 #: ../fish/guestfish-actions.pod:5098
15225 #, no-wrap
15226 msgid ""
15227 " zegrep regex path\n"
15228 "\n"
15229 msgstr ""
15230
15231 #. type: textblock
15232 #: ../fish/guestfish-actions.pod:5100 ../src/guestfs-actions.pod:7732
15233 msgid ""
15234 "This calls the external C<zegrep> program and returns the matching lines."
15235 msgstr ""
15236
15237 #. type: =head2
15238 #: ../fish/guestfish-actions.pod:5106
15239 msgid "zegrepi"
15240 msgstr ""
15241
15242 #. type: verbatim
15243 #: ../fish/guestfish-actions.pod:5108
15244 #, no-wrap
15245 msgid ""
15246 " zegrepi regex path\n"
15247 "\n"
15248 msgstr ""
15249
15250 #. type: textblock
15251 #: ../fish/guestfish-actions.pod:5110 ../src/guestfs-actions.pod:7751
15252 msgid ""
15253 "This calls the external C<zegrep -i> program and returns the matching lines."
15254 msgstr ""
15255
15256 #. type: =head2
15257 #: ../fish/guestfish-actions.pod:5116
15258 msgid "zero"
15259 msgstr ""
15260
15261 #. type: verbatim
15262 #: ../fish/guestfish-actions.pod:5118
15263 #, no-wrap
15264 msgid ""
15265 " zero device\n"
15266 "\n"
15267 msgstr ""
15268
15269 #. type: textblock
15270 #: ../fish/guestfish-actions.pod:5120 ../src/guestfs-actions.pod:7769
15271 msgid "This command writes zeroes over the first few blocks of C<device>."
15272 msgstr ""
15273
15274 #. type: textblock
15275 #: ../fish/guestfish-actions.pod:5122 ../src/guestfs-actions.pod:7771
15276 msgid ""
15277 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
15278 "securely wipe the device).  It should be sufficient to remove any partition "
15279 "tables, filesystem superblocks and so on."
15280 msgstr ""
15281
15282 #. type: textblock
15283 #: ../fish/guestfish-actions.pod:5126 ../fish/guestfish-actions.pod:5141
15284 #: ../src/guestfs-actions.pod:7775 ../src/guestfs-actions.pod:7801
15285 msgid ""
15286 "If blocks are already zero, then this command avoids writing zeroes.  This "
15287 "prevents the underlying device from becoming non-sparse or growing "
15288 "unnecessarily."
15289 msgstr ""
15290
15291 #. type: textblock
15292 #: ../fish/guestfish-actions.pod:5130
15293 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
15294 msgstr ""
15295
15296 #. type: =head2
15297 #: ../fish/guestfish-actions.pod:5133
15298 msgid "zero-device"
15299 msgstr ""
15300
15301 #. type: verbatim
15302 #: ../fish/guestfish-actions.pod:5135
15303 #, no-wrap
15304 msgid ""
15305 " zero-device device\n"
15306 "\n"
15307 msgstr ""
15308
15309 #. type: textblock
15310 #: ../fish/guestfish-actions.pod:5137
15311 msgid ""
15312 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
15313 "which just zeroes the first few blocks of a device."
15314 msgstr ""
15315
15316 #. type: =head2
15317 #: ../fish/guestfish-actions.pod:5148
15318 msgid "zerofree"
15319 msgstr ""
15320
15321 #. type: verbatim
15322 #: ../fish/guestfish-actions.pod:5150
15323 #, no-wrap
15324 msgid ""
15325 " zerofree device\n"
15326 "\n"
15327 msgstr ""
15328
15329 #. type: textblock
15330 #: ../fish/guestfish-actions.pod:5152 ../src/guestfs-actions.pod:7823
15331 msgid ""
15332 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
15333 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
15334 "possible to compress the filesystem more effectively."
15335 msgstr ""
15336
15337 #. type: textblock
15338 #: ../fish/guestfish-actions.pod:5157 ../src/guestfs-actions.pod:7828
15339 msgid "You should B<not> run this program if the filesystem is mounted."
15340 msgstr ""
15341
15342 #. type: textblock
15343 #: ../fish/guestfish-actions.pod:5160 ../src/guestfs-actions.pod:7831
15344 msgid ""
15345 "It is possible that using this program can damage the filesystem or data on "
15346 "the filesystem."
15347 msgstr ""
15348
15349 #. type: =head2
15350 #: ../fish/guestfish-actions.pod:5163
15351 msgid "zfgrep"
15352 msgstr ""
15353
15354 #. type: verbatim
15355 #: ../fish/guestfish-actions.pod:5165
15356 #, no-wrap
15357 msgid ""
15358 " zfgrep pattern path\n"
15359 "\n"
15360 msgstr ""
15361
15362 #. type: textblock
15363 #: ../fish/guestfish-actions.pod:5167 ../src/guestfs-actions.pod:7845
15364 msgid ""
15365 "This calls the external C<zfgrep> program and returns the matching lines."
15366 msgstr ""
15367
15368 #. type: =head2
15369 #: ../fish/guestfish-actions.pod:5173
15370 msgid "zfgrepi"
15371 msgstr ""
15372
15373 #. type: verbatim
15374 #: ../fish/guestfish-actions.pod:5175
15375 #, no-wrap
15376 msgid ""
15377 " zfgrepi pattern path\n"
15378 "\n"
15379 msgstr ""
15380
15381 #. type: textblock
15382 #: ../fish/guestfish-actions.pod:5177 ../src/guestfs-actions.pod:7864
15383 msgid ""
15384 "This calls the external C<zfgrep -i> program and returns the matching lines."
15385 msgstr ""
15386
15387 #. type: =head2
15388 #: ../fish/guestfish-actions.pod:5183
15389 msgid "zfile"
15390 msgstr ""
15391
15392 #. type: verbatim
15393 #: ../fish/guestfish-actions.pod:5185
15394 #, no-wrap
15395 msgid ""
15396 " zfile meth path\n"
15397 "\n"
15398 msgstr ""
15399
15400 #. type: textblock
15401 #: ../fish/guestfish-actions.pod:5187 ../src/guestfs-actions.pod:7890
15402 msgid ""
15403 "This command runs C<file> after first decompressing C<path> using C<method>."
15404 msgstr ""
15405
15406 #. type: textblock
15407 #: ../fish/guestfish-actions.pod:5190 ../src/guestfs-actions.pod:7893
15408 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
15409 msgstr ""
15410
15411 #. type: textblock
15412 #: ../fish/guestfish-actions.pod:5192
15413 msgid ""
15414 "Since 1.0.63, use L</file> instead which can now process compressed files."
15415 msgstr ""
15416
15417 #. type: textblock
15418 #: ../fish/guestfish-actions.pod:5195
15419 msgid ""
15420 "I<This function is deprecated.> In new code, use the L</file> call instead."
15421 msgstr ""
15422
15423 #. type: =head2
15424 #: ../fish/guestfish-actions.pod:5202
15425 msgid "zgrep"
15426 msgstr ""
15427
15428 #. type: verbatim
15429 #: ../fish/guestfish-actions.pod:5204
15430 #, no-wrap
15431 msgid ""
15432 " zgrep regex path\n"
15433 "\n"
15434 msgstr ""
15435
15436 #. type: textblock
15437 #: ../fish/guestfish-actions.pod:5206 ../src/guestfs-actions.pod:7910
15438 msgid ""
15439 "This calls the external C<zgrep> program and returns the matching lines."
15440 msgstr ""
15441
15442 #. type: =head2
15443 #: ../fish/guestfish-actions.pod:5212
15444 msgid "zgrepi"
15445 msgstr ""
15446
15447 #. type: verbatim
15448 #: ../fish/guestfish-actions.pod:5214
15449 #, no-wrap
15450 msgid ""
15451 " zgrepi regex path\n"
15452 "\n"
15453 msgstr ""
15454
15455 #. type: textblock
15456 #: ../fish/guestfish-actions.pod:5216 ../src/guestfs-actions.pod:7929
15457 msgid ""
15458 "This calls the external C<zgrep -i> program and returns the matching lines."
15459 msgstr ""
15460
15461 #. type: =head2
15462 #: ../fish/guestfish-commands.pod:1
15463 msgid "alloc"
15464 msgstr ""
15465
15466 #. type: =head2
15467 #: ../fish/guestfish-commands.pod:3
15468 msgid "allocate"
15469 msgstr ""
15470
15471 #. type: verbatim
15472 #: ../fish/guestfish-commands.pod:5
15473 #, no-wrap
15474 msgid ""
15475 " alloc filename size\n"
15476 "\n"
15477 msgstr ""
15478
15479 #. type: textblock
15480 #: ../fish/guestfish-commands.pod:7
15481 msgid ""
15482 "This creates an empty (zeroed) file of the given size, and then adds so it "
15483 "can be further examined."
15484 msgstr ""
15485
15486 #. type: textblock
15487 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
15488 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
15489 msgstr ""
15490
15491 #. type: textblock
15492 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
15493 msgid "Size can be specified using standard suffixes, eg. C<1M>."
15494 msgstr ""
15495
15496 #. type: textblock
15497 #: ../fish/guestfish-commands.pod:14
15498 msgid ""
15499 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
15500 "image, see L</PREPARED DISK IMAGES>."
15501 msgstr ""
15502
15503 #. type: =head2
15504 #: ../fish/guestfish-commands.pod:17
15505 msgid "copy-in"
15506 msgstr ""
15507
15508 #. type: verbatim
15509 #: ../fish/guestfish-commands.pod:19
15510 #, no-wrap
15511 msgid ""
15512 " copy-in local [local ...] /remotedir\n"
15513 "\n"
15514 msgstr ""
15515
15516 #. type: textblock
15517 #: ../fish/guestfish-commands.pod:21
15518 msgid ""
15519 "C<copy-in> copies local files or directories recursively into the disk "
15520 "image, placing them in the directory called C</remotedir> (which must "
15521 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
15522 "other commands as necessary."
15523 msgstr ""
15524
15525 #. type: textblock
15526 #: ../fish/guestfish-commands.pod:26
15527 msgid ""
15528 "Multiple local files and directories can be specified, but the last "
15529 "parameter must always be a remote directory.  Wildcards cannot be used."
15530 msgstr ""
15531
15532 #. type: =head2
15533 #: ../fish/guestfish-commands.pod:30
15534 msgid "copy-out"
15535 msgstr ""
15536
15537 #. type: verbatim
15538 #: ../fish/guestfish-commands.pod:32
15539 #, no-wrap
15540 msgid ""
15541 " copy-out remote [remote ...] localdir\n"
15542 "\n"
15543 msgstr ""
15544
15545 #. type: textblock
15546 #: ../fish/guestfish-commands.pod:34
15547 msgid ""
15548 "C<copy-out> copies remote files or directories recursively out of the disk "
15549 "image, placing them on the host disk in a local directory called C<localdir> "
15550 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
15551 "download>, L</tar-out> and other commands as necessary."
15552 msgstr ""
15553
15554 #. type: textblock
15555 #: ../fish/guestfish-commands.pod:40
15556 msgid ""
15557 "Multiple remote files and directories can be specified, but the last "
15558 "parameter must always be a local directory.  To download to the current "
15559 "directory, use C<.> as in:"
15560 msgstr ""
15561
15562 #. type: verbatim
15563 #: ../fish/guestfish-commands.pod:44
15564 #, no-wrap
15565 msgid ""
15566 " copy-out /home .\n"
15567 "\n"
15568 msgstr ""
15569
15570 #. type: textblock
15571 #: ../fish/guestfish-commands.pod:46
15572 msgid ""
15573 "Wildcards cannot be used in the ordinary command, but you can use them with "
15574 "the help of L</glob> like this:"
15575 msgstr ""
15576
15577 #. type: verbatim
15578 #: ../fish/guestfish-commands.pod:49
15579 #, no-wrap
15580 msgid ""
15581 " glob copy-out /home/* .\n"
15582 "\n"
15583 msgstr ""
15584
15585 #. type: =head2
15586 #: ../fish/guestfish-commands.pod:51
15587 msgid "display"
15588 msgstr ""
15589
15590 #. type: verbatim
15591 #: ../fish/guestfish-commands.pod:53
15592 #, no-wrap
15593 msgid ""
15594 " display filename\n"
15595 "\n"
15596 msgstr ""
15597
15598 #. type: textblock
15599 #: ../fish/guestfish-commands.pod:55
15600 msgid ""
15601 "Use C<display> (a graphical display program) to display an image file.  It "
15602 "downloads the file, and runs C<display> on it."
15603 msgstr ""
15604
15605 #. type: textblock
15606 #: ../fish/guestfish-commands.pod:58
15607 msgid ""
15608 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
15609 "environment variable.  For example to use the GNOME display program:"
15610 msgstr ""
15611
15612 #. type: verbatim
15613 #: ../fish/guestfish-commands.pod:61
15614 #, no-wrap
15615 msgid ""
15616 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
15617 "\n"
15618 msgstr ""
15619
15620 #. type: textblock
15621 #: ../fish/guestfish-commands.pod:63
15622 msgid "See also L<display(1)>."
15623 msgstr ""
15624
15625 #. type: =head2
15626 #: ../fish/guestfish-commands.pod:65
15627 msgid "echo"
15628 msgstr ""
15629
15630 #. type: verbatim
15631 #: ../fish/guestfish-commands.pod:67
15632 #, no-wrap
15633 msgid ""
15634 " echo [params ...]\n"
15635 "\n"
15636 msgstr ""
15637
15638 #. type: textblock
15639 #: ../fish/guestfish-commands.pod:69
15640 msgid "This echos the parameters to the terminal."
15641 msgstr ""
15642
15643 #. type: =head2
15644 #: ../fish/guestfish-commands.pod:71
15645 msgid "edit"
15646 msgstr ""
15647
15648 #. type: =head2
15649 #: ../fish/guestfish-commands.pod:73
15650 msgid "vi"
15651 msgstr ""
15652
15653 #. type: =head2
15654 #: ../fish/guestfish-commands.pod:75
15655 msgid "emacs"
15656 msgstr ""
15657
15658 #. type: verbatim
15659 #: ../fish/guestfish-commands.pod:77
15660 #, no-wrap
15661 msgid ""
15662 " edit filename\n"
15663 "\n"
15664 msgstr ""
15665
15666 #. type: textblock
15667 #: ../fish/guestfish-commands.pod:79
15668 msgid ""
15669 "This is used to edit a file.  It downloads the file, edits it locally using "
15670 "your editor, then uploads the result."
15671 msgstr ""
15672
15673 #. type: textblock
15674 #: ../fish/guestfish-commands.pod:82
15675 msgid ""
15676 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
15677 "or C<emacs> you will get those corresponding editors."
15678 msgstr ""
15679
15680 #. type: =head2
15681 #: ../fish/guestfish-commands.pod:86
15682 msgid "glob"
15683 msgstr ""
15684
15685 #. type: verbatim
15686 #: ../fish/guestfish-commands.pod:88
15687 #, no-wrap
15688 msgid ""
15689 " glob command args...\n"
15690 "\n"
15691 msgstr ""
15692
15693 #. type: textblock
15694 #: ../fish/guestfish-commands.pod:90
15695 msgid ""
15696 "Expand wildcards in any paths in the args list, and run C<command> "
15697 "repeatedly on each matching path."
15698 msgstr ""
15699
15700 #. type: textblock
15701 #: ../fish/guestfish-commands.pod:93
15702 msgid "See L</WILDCARDS AND GLOBBING>."
15703 msgstr ""
15704
15705 #. type: =head2
15706 #: ../fish/guestfish-commands.pod:95
15707 msgid "hexedit"
15708 msgstr ""
15709
15710 #. type: verbatim
15711 #: ../fish/guestfish-commands.pod:97
15712 #, no-wrap
15713 msgid ""
15714 " hexedit <filename|device>\n"
15715 " hexedit <filename|device> <max>\n"
15716 " hexedit <filename|device> <start> <max>\n"
15717 "\n"
15718 msgstr ""
15719
15720 #. type: textblock
15721 #: ../fish/guestfish-commands.pod:101
15722 msgid ""
15723 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
15724 "device."
15725 msgstr ""
15726
15727 #. type: textblock
15728 #: ../fish/guestfish-commands.pod:104
15729 msgid ""
15730 "This command works by downloading potentially the whole file or device, "
15731 "editing it locally, then uploading it.  If the file or device is large, you "
15732 "have to specify which part you wish to edit by using C<max> and/or C<start> "
15733 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
15734 "usual modifiers allowed such as C<1M> (1 megabyte)."
15735 msgstr ""
15736
15737 #. type: textblock
15738 #: ../fish/guestfish-commands.pod:111
15739 msgid "For example to edit the first few sectors of a disk you might do:"
15740 msgstr ""
15741
15742 #. type: verbatim
15743 #: ../fish/guestfish-commands.pod:114
15744 #, no-wrap
15745 msgid ""
15746 " hexedit /dev/sda 1M\n"
15747 "\n"
15748 msgstr ""
15749
15750 #. type: textblock
15751 #: ../fish/guestfish-commands.pod:116
15752 msgid ""
15753 "which would allow you to edit anywhere within the first megabyte of the disk."
15754 msgstr ""
15755
15756 #. type: textblock
15757 #: ../fish/guestfish-commands.pod:119
15758 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
15759 msgstr ""
15760
15761 #. type: verbatim
15762 #: ../fish/guestfish-commands.pod:121
15763 #, no-wrap
15764 msgid ""
15765 " hexedit /dev/sda1 0x400 0x400\n"
15766 "\n"
15767 msgstr ""
15768
15769 #. type: textblock
15770 #: ../fish/guestfish-commands.pod:123
15771 msgid "(assuming the superblock is in the standard location)."
15772 msgstr ""
15773
15774 #. type: textblock
15775 #: ../fish/guestfish-commands.pod:125
15776 msgid ""
15777 "This command requires the external L<hexedit(1)> program.  You can specify "
15778 "another program to use by setting the C<HEXEDITOR> environment variable."
15779 msgstr ""
15780
15781 #. type: textblock
15782 #: ../fish/guestfish-commands.pod:129
15783 msgid "See also L</hexdump>."
15784 msgstr ""
15785
15786 #. type: =head2
15787 #: ../fish/guestfish-commands.pod:131
15788 msgid "lcd"
15789 msgstr ""
15790
15791 #. type: verbatim
15792 #: ../fish/guestfish-commands.pod:133
15793 #, no-wrap
15794 msgid ""
15795 " lcd directory\n"
15796 "\n"
15797 msgstr ""
15798
15799 #. type: textblock
15800 #: ../fish/guestfish-commands.pod:135
15801 msgid ""
15802 "Change the local directory, ie. the current directory of guestfish itself."
15803 msgstr ""
15804
15805 #. type: textblock
15806 #: ../fish/guestfish-commands.pod:138
15807 msgid "Note that C<!cd> won't do what you might expect."
15808 msgstr ""
15809
15810 #. type: =head2
15811 #: ../fish/guestfish-commands.pod:140
15812 msgid "man"
15813 msgstr ""
15814
15815 #. type: =head2
15816 #: ../fish/guestfish-commands.pod:142
15817 msgid "manual"
15818 msgstr ""
15819
15820 #. type: verbatim
15821 #: ../fish/guestfish-commands.pod:144
15822 #, no-wrap
15823 msgid ""
15824 "  man\n"
15825 "\n"
15826 msgstr ""
15827
15828 #. type: textblock
15829 #: ../fish/guestfish-commands.pod:146
15830 msgid "Opens the manual page for guestfish."
15831 msgstr ""
15832
15833 #. type: =head2
15834 #: ../fish/guestfish-commands.pod:148
15835 msgid "more"
15836 msgstr ""
15837
15838 #. type: =head2
15839 #: ../fish/guestfish-commands.pod:150
15840 msgid "less"
15841 msgstr ""
15842
15843 #. type: verbatim
15844 #: ../fish/guestfish-commands.pod:152
15845 #, no-wrap
15846 msgid ""
15847 " more filename\n"
15848 "\n"
15849 msgstr ""
15850
15851 #. type: verbatim
15852 #: ../fish/guestfish-commands.pod:154
15853 #, no-wrap
15854 msgid ""
15855 " less filename\n"
15856 "\n"
15857 msgstr ""
15858
15859 #. type: textblock
15860 #: ../fish/guestfish-commands.pod:156
15861 msgid "This is used to view a file."
15862 msgstr ""
15863
15864 #. type: textblock
15865 #: ../fish/guestfish-commands.pod:158
15866 msgid ""
15867 "The default viewer is C<$PAGER>.  However if you use the alternate command "
15868 "C<less> you will get the C<less> command specifically."
15869 msgstr ""
15870
15871 #. type: =head2
15872 #: ../fish/guestfish-commands.pod:161
15873 msgid "reopen"
15874 msgstr ""
15875
15876 #. type: verbatim
15877 #: ../fish/guestfish-commands.pod:163
15878 #, no-wrap
15879 msgid ""
15880 "  reopen\n"
15881 "\n"
15882 msgstr ""
15883
15884 #. type: textblock
15885 #: ../fish/guestfish-commands.pod:165
15886 msgid ""
15887 "Close and reopen the libguestfs handle.  It is not necessary to use this "
15888 "normally, because the handle is closed properly when guestfish exits.  "
15889 "However this is occasionally useful for testing."
15890 msgstr ""
15891
15892 #. type: =head2
15893 #: ../fish/guestfish-commands.pod:169
15894 msgid "setenv"
15895 msgstr ""
15896
15897 #. type: verbatim
15898 #: ../fish/guestfish-commands.pod:171
15899 #, no-wrap
15900 msgid ""
15901 "  setenv VAR value\n"
15902 "\n"
15903 msgstr ""
15904
15905 #. type: textblock
15906 #: ../fish/guestfish-commands.pod:173
15907 msgid "Set the environment variable C<VAR> to the string C<value>."
15908 msgstr ""
15909
15910 #. type: textblock
15911 #: ../fish/guestfish-commands.pod:175
15912 msgid ""
15913 "To print the value of an environment variable use a shell command such as:"
15914 msgstr ""
15915
15916 #. type: verbatim
15917 #: ../fish/guestfish-commands.pod:178
15918 #, no-wrap
15919 msgid ""
15920 " !echo $VAR\n"
15921 "\n"
15922 msgstr ""
15923
15924 #. type: =head2
15925 #: ../fish/guestfish-commands.pod:180
15926 msgid "sparse"
15927 msgstr ""
15928
15929 #. type: verbatim
15930 #: ../fish/guestfish-commands.pod:182
15931 #, no-wrap
15932 msgid ""
15933 " sparse filename size\n"
15934 "\n"
15935 msgstr ""
15936
15937 #. type: textblock
15938 #: ../fish/guestfish-commands.pod:184
15939 msgid ""
15940 "This creates an empty sparse file of the given size, and then adds so it can "
15941 "be further examined."
15942 msgstr ""
15943
15944 #. type: textblock
15945 #: ../fish/guestfish-commands.pod:187
15946 msgid ""
15947 "In all respects it works the same as the L</alloc> command, except that the "
15948 "image file is allocated sparsely, which means that disk blocks are not "
15949 "assigned to the file until they are needed.  Sparse disk files only use "
15950 "space when written to, but they are slower and there is a danger you could "
15951 "run out of real disk space during a write operation."
15952 msgstr ""
15953
15954 #. type: =head2
15955 #: ../fish/guestfish-commands.pod:197
15956 msgid "supported"
15957 msgstr ""
15958
15959 #. type: verbatim
15960 #: ../fish/guestfish-commands.pod:199
15961 #, no-wrap
15962 msgid ""
15963 " supported\n"
15964 "\n"
15965 msgstr ""
15966
15967 #. type: textblock
15968 #: ../fish/guestfish-commands.pod:201
15969 msgid ""
15970 "This command returns a list of the optional groups known to the daemon, and "
15971 "indicates which ones are supported by this build of the libguestfs appliance."
15972 msgstr ""
15973
15974 #. type: textblock
15975 #: ../fish/guestfish-commands.pod:205
15976 msgid "See also L<guestfs(3)/AVAILABILITY>."
15977 msgstr ""
15978
15979 #. type: =head2
15980 #: ../fish/guestfish-commands.pod:207
15981 msgid "time"
15982 msgstr ""
15983
15984 #. type: verbatim
15985 #: ../fish/guestfish-commands.pod:209
15986 #, no-wrap
15987 msgid ""
15988 " time command args...\n"
15989 "\n"
15990 msgstr ""
15991
15992 #. type: textblock
15993 #: ../fish/guestfish-commands.pod:211
15994 msgid ""
15995 "Run the command as usual, but print the elapsed time afterwards.  This can "
15996 "be useful for benchmarking operations."
15997 msgstr ""
15998
15999 #. type: =head2
16000 #: ../fish/guestfish-commands.pod:214
16001 msgid "unsetenv"
16002 msgstr ""
16003
16004 #. type: verbatim
16005 #: ../fish/guestfish-commands.pod:216
16006 #, no-wrap
16007 msgid ""
16008 "  unsetenv VAR\n"
16009 "\n"
16010 msgstr ""
16011
16012 #. type: textblock
16013 #: ../fish/guestfish-commands.pod:218
16014 msgid "Remove C<VAR> from the environment."
16015 msgstr ""
16016
16017 #. type: textblock
16018 #: ../fish/guestfish.pod:5
16019 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16020 msgstr ""
16021
16022 #. type: verbatim
16023 #: ../fish/guestfish.pod:9
16024 #, no-wrap
16025 msgid ""
16026 " guestfish [--options] [commands]\n"
16027 "\n"
16028 msgstr ""
16029
16030 #. type: verbatim
16031 #: ../fish/guestfish.pod:11
16032 #, no-wrap
16033 msgid ""
16034 " guestfish\n"
16035 "\n"
16036 msgstr ""
16037
16038 #. type: verbatim
16039 #: ../fish/guestfish.pod:13
16040 #, no-wrap
16041 msgid ""
16042 " guestfish [--ro|--rw] -a disk.img\n"
16043 "\n"
16044 msgstr ""
16045
16046 #. type: verbatim
16047 #: ../fish/guestfish.pod:15
16048 #, no-wrap
16049 msgid ""
16050 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16051 "\n"
16052 msgstr ""
16053
16054 #. type: verbatim
16055 #: ../fish/guestfish.pod:17
16056 #, no-wrap
16057 msgid ""
16058 " guestfish -d libvirt-domain\n"
16059 "\n"
16060 msgstr ""
16061
16062 #. type: verbatim
16063 #: ../fish/guestfish.pod:19
16064 #, no-wrap
16065 msgid ""
16066 " guestfish [--ro|--rw] -a disk.img -i\n"
16067 "\n"
16068 msgstr ""
16069
16070 #. type: verbatim
16071 #: ../fish/guestfish.pod:21
16072 #, no-wrap
16073 msgid ""
16074 " guestfish -d libvirt-domain -i\n"
16075 "\n"
16076 msgstr ""
16077
16078 #. type: textblock
16079 #: ../fish/guestfish.pod:25
16080 msgid ""
16081 "Using guestfish in read/write mode on live virtual machines can be "
16082 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16083 "option to use guestfish safely if the disk image or virtual machine might be "
16084 "live."
16085 msgstr ""
16086
16087 #. type: textblock
16088 #: ../fish/guestfish.pod:32
16089 msgid ""
16090 "Guestfish is a shell and command-line tool for examining and modifying "
16091 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16092 "functionality of the guestfs API, see L<guestfs(3)>."
16093 msgstr ""
16094
16095 #. type: textblock
16096 #: ../fish/guestfish.pod:36
16097 msgid ""
16098 "Guestfish gives you structured access to the libguestfs API, from shell "
16099 "scripts or the command line or interactively.  If you want to rescue a "
16100 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16101 "command."
16102 msgstr ""
16103
16104 #. type: =head2
16105 #: ../fish/guestfish.pod:43
16106 msgid "As an interactive shell"
16107 msgstr ""
16108
16109 #. type: verbatim
16110 #: ../fish/guestfish.pod:45
16111 #, no-wrap
16112 msgid ""
16113 " $ guestfish\n"
16114 " \n"
16115 msgstr ""
16116
16117 #. type: verbatim
16118 #: ../fish/guestfish.pod:47
16119 #, no-wrap
16120 msgid ""
16121 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16122 " editing virtual machine filesystems.\n"
16123 " \n"
16124 msgstr ""
16125
16126 #. type: verbatim
16127 #: ../fish/guestfish.pod:50
16128 #, no-wrap
16129 msgid ""
16130 " Type: 'help' for a list of commands\n"
16131 "       'man' to read the manual\n"
16132 "       'quit' to quit the shell\n"
16133 " \n"
16134 msgstr ""
16135
16136 #. type: verbatim
16137 #: ../fish/guestfish.pod:54
16138 #, no-wrap
16139 msgid ""
16140 " ><fs> add-ro disk.img\n"
16141 " ><fs> run\n"
16142 " ><fs> list-filesystems\n"
16143 " /dev/sda1: ext4\n"
16144 " /dev/vg_guest/lv_root: ext4\n"
16145 " /dev/vg_guest/lv_swap: swap\n"
16146 " ><fs> mount /dev/vg_guest/lv_root /\n"
16147 " ><fs> cat /etc/fstab\n"
16148 " # /etc/fstab\n"
16149 " # Created by anaconda\n"
16150 " [...]\n"
16151 " ><fs> exit\n"
16152 "\n"
16153 msgstr ""
16154
16155 #. type: =head2
16156 #: ../fish/guestfish.pod:67
16157 msgid "From shell scripts"
16158 msgstr ""
16159
16160 #. type: textblock
16161 #: ../fish/guestfish.pod:69
16162 msgid "Create a new C</etc/motd> file in a guest or disk image:"
16163 msgstr ""
16164
16165 #. type: verbatim
16166 #: ../fish/guestfish.pod:71
16167 #, no-wrap
16168 msgid ""
16169 " guestfish <<_EOF_\n"
16170 " add disk.img\n"
16171 " run\n"
16172 " mount /dev/vg_guest/lv_root /\n"
16173 " write /etc/motd \"Welcome, new users\"\n"
16174 " _EOF_\n"
16175 "\n"
16176 msgstr ""
16177
16178 #. type: textblock
16179 #: ../fish/guestfish.pod:78
16180 msgid "List the LVM logical volumes in a disk image:"
16181 msgstr ""
16182
16183 #. type: verbatim
16184 #: ../fish/guestfish.pod:80
16185 #, no-wrap
16186 msgid ""
16187 " guestfish -a disk.img --ro <<_EOF_\n"
16188 " run\n"
16189 " lvs\n"
16190 " _EOF_\n"
16191 "\n"
16192 msgstr ""
16193
16194 #. type: textblock
16195 #: ../fish/guestfish.pod:85
16196 msgid "List all the filesystems in a disk image:"
16197 msgstr ""
16198
16199 #. type: verbatim
16200 #: ../fish/guestfish.pod:87
16201 #, no-wrap
16202 msgid ""
16203 " guestfish -a disk.img --ro <<_EOF_\n"
16204 " run\n"
16205 " list-filesystems\n"
16206 " _EOF_\n"
16207 "\n"
16208 msgstr ""
16209
16210 #. type: =head2
16211 #: ../fish/guestfish.pod:92
16212 msgid "On one command line"
16213 msgstr ""
16214
16215 #. type: textblock
16216 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
16217 msgid "Update C</etc/resolv.conf> in a guest:"
16218 msgstr ""
16219
16220 #. type: verbatim
16221 #: ../fish/guestfish.pod:96
16222 #, no-wrap
16223 msgid ""
16224 " guestfish \\\n"
16225 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
16226 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
16227 "\n"
16228 msgstr ""
16229
16230 #. type: textblock
16231 #: ../fish/guestfish.pod:100
16232 msgid "Edit C</boot/grub/grub.conf> interactively:"
16233 msgstr ""
16234
16235 #. type: verbatim
16236 #: ../fish/guestfish.pod:102
16237 #, no-wrap
16238 msgid ""
16239 " guestfish --rw --add disk.img \\\n"
16240 "   --mount /dev/vg_guest/lv_root \\\n"
16241 "   --mount /dev/sda1:/boot \\\n"
16242 "   edit /boot/grub/grub.conf\n"
16243 "\n"
16244 msgstr ""
16245
16246 #. type: =head2
16247 #: ../fish/guestfish.pod:107
16248 msgid "Mount disks automatically"
16249 msgstr ""
16250
16251 #. type: textblock
16252 #: ../fish/guestfish.pod:109
16253 msgid ""
16254 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
16255 msgstr ""
16256
16257 #. type: verbatim
16258 #: ../fish/guestfish.pod:112
16259 #, no-wrap
16260 msgid ""
16261 " guestfish --ro -a disk.img -i cat /etc/group\n"
16262 "\n"
16263 msgstr ""
16264
16265 #. type: verbatim
16266 #: ../fish/guestfish.pod:114
16267 #, no-wrap
16268 msgid ""
16269 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
16270 "\n"
16271 msgstr ""
16272
16273 #. type: textblock
16274 #: ../fish/guestfish.pod:116
16275 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
16276 msgstr ""
16277
16278 #. type: verbatim
16279 #: ../fish/guestfish.pod:118
16280 #, no-wrap
16281 msgid ""
16282 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
16283 "\n"
16284 msgstr ""
16285
16286 #. type: =head2
16287 #: ../fish/guestfish.pod:120
16288 msgid "As a script interpreter"
16289 msgstr ""
16290
16291 #. type: textblock
16292 #: ../fish/guestfish.pod:122
16293 msgid "Create a 100MB disk containing an ext2-formatted partition:"
16294 msgstr ""
16295
16296 #. type: verbatim
16297 #: ../fish/guestfish.pod:124
16298 #, no-wrap
16299 msgid ""
16300 " #!/usr/bin/guestfish -f\n"
16301 " sparse test1.img 100M\n"
16302 " run\n"
16303 " part-disk /dev/sda mbr\n"
16304 " mkfs ext2 /dev/sda1\n"
16305 "\n"
16306 msgstr ""
16307
16308 #. type: =head2
16309 #: ../fish/guestfish.pod:130
16310 msgid "Start with a prepared disk"
16311 msgstr ""
16312
16313 #. type: textblock
16314 #: ../fish/guestfish.pod:132
16315 msgid ""
16316 "An alternate way to create a 100MB disk called C<test1.img> containing a "
16317 "single ext2-formatted partition:"
16318 msgstr ""
16319
16320 #. type: verbatim
16321 #: ../fish/guestfish.pod:135
16322 #, no-wrap
16323 msgid ""
16324 " guestfish -N fs\n"
16325 "\n"
16326 msgstr ""
16327
16328 #. type: textblock
16329 #: ../fish/guestfish.pod:137
16330 msgid "To list what is available do:"
16331 msgstr ""
16332
16333 #. type: verbatim
16334 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1009
16335 #, no-wrap
16336 msgid ""
16337 " guestfish -N help | less\n"
16338 "\n"
16339 msgstr ""
16340
16341 #. type: =head2
16342 #: ../fish/guestfish.pod:141
16343 msgid "Remote control"
16344 msgstr ""
16345
16346 #. type: verbatim
16347 #: ../fish/guestfish.pod:143
16348 #, no-wrap
16349 msgid ""
16350 " eval \"`guestfish --listen`\"\n"
16351 " guestfish --remote add-ro disk.img\n"
16352 " guestfish --remote run\n"
16353 " guestfish --remote lvs\n"
16354 "\n"
16355 msgstr ""
16356
16357 #. type: textblock
16358 #: ../fish/guestfish.pod:154
16359 msgid "Displays general help on options."
16360 msgstr ""
16361
16362 #. type: =item
16363 #: ../fish/guestfish.pod:158
16364 msgid "B<--cmd-help>"
16365 msgstr ""
16366
16367 #. type: textblock
16368 #: ../fish/guestfish.pod:160
16369 msgid "Lists all available guestfish commands."
16370 msgstr ""
16371
16372 #. type: =item
16373 #: ../fish/guestfish.pod:162
16374 msgid "B<-h cmd>"
16375 msgstr ""
16376
16377 #. type: =item
16378 #: ../fish/guestfish.pod:164
16379 msgid "B<--cmd-help cmd>"
16380 msgstr ""
16381
16382 #. type: textblock
16383 #: ../fish/guestfish.pod:166
16384 msgid "Displays detailed help on a single command C<cmd>."
16385 msgstr ""
16386
16387 #. type: =item
16388 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
16389 msgid "B<-a image>"
16390 msgstr ""
16391
16392 #. type: =item
16393 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
16394 msgid "B<--add image>"
16395 msgstr ""
16396
16397 #. type: textblock
16398 #: ../fish/guestfish.pod:172
16399 msgid "Add a block device or virtual machine image to the shell."
16400 msgstr ""
16401
16402 #. type: textblock
16403 #: ../fish/guestfish.pod:177
16404 msgid ""
16405 "Using this flag is mostly equivalent to using the C<add> command, with "
16406 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
16407 "the I<--format=...> flag was given."
16408 msgstr ""
16409
16410 #. type: textblock
16411 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
16412 msgid ""
16413 "When used in conjunction with the I<-d> option, this specifies the libvirt "
16414 "URI to use.  The default is to use the default libvirt connection."
16415 msgstr ""
16416
16417 #. type: =item
16418 #: ../fish/guestfish.pod:189
16419 msgid "B<--csh>"
16420 msgstr ""
16421
16422 #. type: textblock
16423 #: ../fish/guestfish.pod:191
16424 msgid ""
16425 "If using the I<--listen> option and a csh-like shell, use this option.  See "
16426 "section L</REMOTE CONTROL AND CSH> below."
16427 msgstr ""
16428
16429 #. type: =item
16430 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
16431 msgid "B<-d libvirt-domain>"
16432 msgstr ""
16433
16434 #. type: =item
16435 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
16436 msgid "B<--domain libvirt-domain>"
16437 msgstr ""
16438
16439 #. type: textblock
16440 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
16441 msgid ""
16442 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
16443 "used, then any libvirt domain can be used.  However in write mode, only "
16444 "libvirt domains which are shut down can be named here."
16445 msgstr ""
16446
16447 #. type: textblock
16448 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
16449 msgid "Domain UUIDs can be used instead of names."
16450 msgstr ""
16451
16452 #. type: textblock
16453 #: ../fish/guestfish.pod:204
16454 msgid ""
16455 "Using this flag is mostly equivalent to using the C<add-domain> command, "
16456 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
16457 "if the I<--format:...> flag was given."
16458 msgstr ""
16459
16460 #. type: =item
16461 #: ../fish/guestfish.pod:208
16462 msgid "B<-D>"
16463 msgstr ""
16464
16465 #. type: =item
16466 #: ../fish/guestfish.pod:210
16467 msgid "B<--no-dest-paths>"
16468 msgstr ""
16469
16470 #. type: textblock
16471 #: ../fish/guestfish.pod:212
16472 msgid ""
16473 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
16474 "to hit the tab key to complete paths on the guest filesystem, but this "
16475 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
16476 "allow this feature to be disabled."
16477 msgstr ""
16478
16479 #. type: textblock
16480 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
16481 msgid ""
16482 "When prompting for keys and passphrases, guestfish normally turns echoing "
16483 "off so you cannot see what you are typing.  If you are not worried about "
16484 "Tempest attacks and there is no one else in the room you can specify this "
16485 "flag to see what you are typing."
16486 msgstr ""
16487
16488 #. type: =item
16489 #: ../fish/guestfish.pod:224
16490 msgid "B<-f file>"
16491 msgstr ""
16492
16493 #. type: =item
16494 #: ../fish/guestfish.pod:226
16495 msgid "B<--file file>"
16496 msgstr ""
16497
16498 #. type: textblock
16499 #: ../fish/guestfish.pod:228
16500 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
16501 msgstr ""
16502
16503 #. type: verbatim
16504 #: ../fish/guestfish.pod:231
16505 #, no-wrap
16506 msgid ""
16507 " #!/usr/bin/guestfish -f\n"
16508 "\n"
16509 msgstr ""
16510
16511 #. type: verbatim
16512 #: ../fish/guestfish.pod:244
16513 #, no-wrap
16514 msgid ""
16515 " guestfish --format=raw -a disk.img\n"
16516 "\n"
16517 msgstr ""
16518
16519 #. type: verbatim
16520 #: ../fish/guestfish.pod:248
16521 #, no-wrap
16522 msgid ""
16523 " guestfish --format=raw -a disk.img --format -a another.img\n"
16524 "\n"
16525 msgstr ""
16526
16527 #. type: textblock
16528 #: ../fish/guestfish.pod:253
16529 msgid ""
16530 "If you have untrusted raw-format guest disk images, you should use this "
16531 "option to specify the disk format.  This avoids a possible security problem "
16532 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
16533 msgstr ""
16534
16535 #. type: =item
16536 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
16537 msgid "B<--inspector>"
16538 msgstr ""
16539
16540 #. type: textblock
16541 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
16542 msgid ""
16543 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
16544 "system and mount filesystems as they would be mounted on the real virtual "
16545 "machine."
16546 msgstr ""
16547
16548 #. type: textblock
16549 #: ../fish/guestfish.pod:266
16550 msgid "Typical usage is either:"
16551 msgstr ""
16552
16553 #. type: verbatim
16554 #: ../fish/guestfish.pod:268
16555 #, no-wrap
16556 msgid ""
16557 " guestfish -d myguest -i\n"
16558 "\n"
16559 msgstr ""
16560
16561 #. type: textblock
16562 #: ../fish/guestfish.pod:270
16563 msgid "(for an inactive libvirt domain called I<myguest>), or:"
16564 msgstr ""
16565
16566 #. type: verbatim
16567 #: ../fish/guestfish.pod:272
16568 #, no-wrap
16569 msgid ""
16570 " guestfish --ro -d myguest -i\n"
16571 "\n"
16572 msgstr ""
16573
16574 #. type: textblock
16575 #: ../fish/guestfish.pod:274
16576 msgid "(for active domains, readonly), or specify the block device directly:"
16577 msgstr ""
16578
16579 #. type: verbatim
16580 #: ../fish/guestfish.pod:276
16581 #, no-wrap
16582 msgid ""
16583 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
16584 "\n"
16585 msgstr ""
16586
16587 #. type: textblock
16588 #: ../fish/guestfish.pod:278
16589 msgid ""
16590 "Note that the command line syntax changed slightly over older versions of "
16591 "guestfish.  You can still use the old syntax:"
16592 msgstr ""
16593
16594 #. type: verbatim
16595 #: ../fish/guestfish.pod:281
16596 #, no-wrap
16597 msgid ""
16598 " guestfish [--ro] -i disk.img\n"
16599 "\n"
16600 msgstr ""
16601
16602 #. type: verbatim
16603 #: ../fish/guestfish.pod:283
16604 #, no-wrap
16605 msgid ""
16606 " guestfish [--ro] -i libvirt-domain\n"
16607 "\n"
16608 msgstr ""
16609
16610 #. type: textblock
16611 #: ../fish/guestfish.pod:285
16612 msgid ""
16613 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
16614 "then using other commands to mount the filesystems that were found."
16615 msgstr ""
16616
16617 #. type: =item
16618 #: ../fish/guestfish.pod:294
16619 msgid "B<--listen>"
16620 msgstr ""
16621
16622 #. type: textblock
16623 #: ../fish/guestfish.pod:296
16624 msgid ""
16625 "Fork into the background and listen for remote commands.  See section L</"
16626 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
16627 msgstr ""
16628
16629 #. type: =item
16630 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
16631 msgid "B<--live>"
16632 msgstr ""
16633
16634 #. type: textblock
16635 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
16636 msgid ""
16637 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
16638 "ATTACHING TO RUNNING DAEMONS>)."
16639 msgstr ""
16640
16641 #. type: =item
16642 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
16643 msgid "B<-m dev[:mountpoint[:options]]>"
16644 msgstr ""
16645
16646 #. type: =item
16647 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
16648 msgid "B<--mount dev[:mountpoint[:options]]>"
16649 msgstr ""
16650
16651 #. type: textblock
16652 #: ../fish/guestfish.pod:308
16653 msgid "Mount the named partition or logical volume on the given mountpoint."
16654 msgstr ""
16655
16656 #. type: textblock
16657 #: ../fish/guestfish.pod:310
16658 msgid "If the mountpoint is omitted, it defaults to C</>."
16659 msgstr ""
16660
16661 #. type: textblock
16662 #: ../fish/guestfish.pod:312
16663 msgid "You have to mount something on C</> before most commands will work."
16664 msgstr ""
16665
16666 #. type: textblock
16667 #: ../fish/guestfish.pod:314
16668 msgid ""
16669 "If any I<-m> or I<--mount> options are given, the guest is automatically "
16670 "launched."
16671 msgstr ""
16672
16673 #. type: textblock
16674 #: ../fish/guestfish.pod:317
16675 msgid ""
16676 "If you don't know what filesystems a disk image contains, you can either run "
16677 "guestfish without this option, then list the partitions, filesystems and LVs "
16678 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
16679 "commands), or you can use the L<virt-filesystems(1)> program."
16680 msgstr ""
16681
16682 #. type: textblock
16683 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
16684 msgid ""
16685 "The third (and rarely used) part of the mount parameter is the list of mount "
16686 "options used to mount the underlying filesystem.  If this is not given, then "
16687 "the mount options are either the empty string or C<ro> (the latter if the "
16688 "I<--ro> flag is used).  By specifying the mount options, you override this "
16689 "default choice.  Probably the only time you would use this is to enable ACLs "
16690 "and/or extended attributes if the filesystem can support them:"
16691 msgstr ""
16692
16693 #. type: verbatim
16694 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
16695 #, no-wrap
16696 msgid ""
16697 " -m /dev/sda1:/:acl,user_xattr\n"
16698 "\n"
16699 msgstr ""
16700
16701 #. type: textblock
16702 #: ../fish/guestfish.pod:333
16703 msgid "Using this flag is equivalent to using the C<mount-options> command."
16704 msgstr ""
16705
16706 #. type: =item
16707 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193
16708 #: ../resize/virt-resize.pod:358
16709 msgid "B<-n>"
16710 msgstr ""
16711
16712 #. type: =item
16713 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
16714 msgid "B<--no-sync>"
16715 msgstr ""
16716
16717 #. type: textblock
16718 #: ../fish/guestfish.pod:339
16719 msgid ""
16720 "Disable autosync.  This is enabled by default.  See the discussion of "
16721 "autosync in the L<guestfs(3)> manpage."
16722 msgstr ""
16723
16724 #. type: =item
16725 #: ../fish/guestfish.pod:342
16726 msgid "B<-N type>"
16727 msgstr ""
16728
16729 #. type: =item
16730 #: ../fish/guestfish.pod:344
16731 msgid "B<--new type>"
16732 msgstr ""
16733
16734 #. type: =item
16735 #: ../fish/guestfish.pod:346
16736 msgid "B<-N help>"
16737 msgstr ""
16738
16739 #. type: textblock
16740 #: ../fish/guestfish.pod:348
16741 msgid ""
16742 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
16743 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
16744 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
16745 "IMAGES> below."
16746 msgstr ""
16747
16748 #. type: =item
16749 #: ../fish/guestfish.pod:353
16750 msgid "B<--progress-bars>"
16751 msgstr ""
16752
16753 #. type: textblock
16754 #: ../fish/guestfish.pod:355
16755 msgid "Enable progress bars, even when guestfish is used non-interactively."
16756 msgstr ""
16757
16758 #. type: textblock
16759 #: ../fish/guestfish.pod:357
16760 msgid ""
16761 "Progress bars are enabled by default when guestfish is used as an "
16762 "interactive shell."
16763 msgstr ""
16764
16765 #. type: =item
16766 #: ../fish/guestfish.pod:360
16767 msgid "B<--no-progress-bars>"
16768 msgstr ""
16769
16770 #. type: textblock
16771 #: ../fish/guestfish.pod:362
16772 msgid "Disable progress bars."
16773 msgstr ""
16774
16775 #. type: =item
16776 #: ../fish/guestfish.pod:364
16777 msgid "B<--remote[=pid]>"
16778 msgstr ""
16779
16780 #. type: textblock
16781 #: ../fish/guestfish.pod:366
16782 msgid ""
16783 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
16784 "CONTROL GUESTFISH OVER A SOCKET> below."
16785 msgstr ""
16786
16787 #. type: =item
16788 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239
16789 #: ../rescue/virt-rescue.pod:161
16790 msgid "B<-r>"
16791 msgstr ""
16792
16793 #. type: =item
16794 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241
16795 #: ../rescue/virt-rescue.pod:163
16796 msgid "B<--ro>"
16797 msgstr ""
16798
16799 #. type: textblock
16800 #: ../fish/guestfish.pod:373
16801 msgid ""
16802 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
16803 "mounts are done read-only."
16804 msgstr ""
16805
16806 #. type: textblock
16807 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
16808 msgid ""
16809 "The option must always be used if the disk image or virtual machine might be "
16810 "running, and is generally recommended in cases where you don't need write "
16811 "access to the disk."
16812 msgstr ""
16813
16814 #. type: textblock
16815 #: ../fish/guestfish.pod:380
16816 msgid ""
16817 "Note that prepared disk images created with I<-N> are not affected by this "
16818 "option.  Also commands like C<add> are not affected - you have to specify "
16819 "the C<readonly:true> option explicitly if you need it."
16820 msgstr ""
16821
16822 #. type: textblock
16823 #: ../fish/guestfish.pod:384
16824 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
16825 msgstr ""
16826
16827 #. type: =item
16828 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253
16829 #: ../rescue/virt-rescue.pod:173
16830 msgid "B<--selinux>"
16831 msgstr ""
16832
16833 #. type: textblock
16834 #: ../fish/guestfish.pod:388
16835 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
16836 msgstr ""
16837
16838 #. type: textblock
16839 #: ../fish/guestfish.pod:394
16840 msgid ""
16841 "Enable very verbose messages.  This is particularly useful if you find a bug."
16842 msgstr ""
16843
16844 #. type: textblock
16845 #: ../fish/guestfish.pod:401
16846 msgid "Display the guestfish / libguestfs version number and exit."
16847 msgstr ""
16848
16849 #. type: =item
16850 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269
16851 #: ../rescue/virt-rescue.pod:190
16852 msgid "B<-w>"
16853 msgstr ""
16854
16855 #. type: =item
16856 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271
16857 #: ../rescue/virt-rescue.pod:192
16858 msgid "B<--rw>"
16859 msgstr ""
16860
16861 #. type: textblock
16862 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
16863 msgid ""
16864 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
16865 "mounts are done read-write."
16866 msgstr ""
16867
16868 #. type: textblock
16869 #: ../fish/guestfish.pod:410
16870 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
16871 msgstr ""
16872
16873 #. type: textblock
16874 #: ../fish/guestfish.pod:414
16875 msgid "Echo each command before executing it."
16876 msgstr ""
16877
16878 #. type: =head1
16879 #: ../fish/guestfish.pod:418
16880 msgid "COMMANDS ON COMMAND LINE"
16881 msgstr ""
16882
16883 #. type: textblock
16884 #: ../fish/guestfish.pod:420
16885 msgid ""
16886 "Any additional (non-option) arguments are treated as commands to execute."
16887 msgstr ""
16888
16889 #. type: textblock
16890 #: ../fish/guestfish.pod:423
16891 msgid ""
16892 "Commands to execute should be separated by a colon (C<:>), where the colon "
16893 "is a separate parameter.  Thus:"
16894 msgstr ""
16895
16896 #. type: verbatim
16897 #: ../fish/guestfish.pod:426
16898 #, no-wrap
16899 msgid ""
16900 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
16901 "\n"
16902 msgstr ""
16903
16904 #. type: textblock
16905 #: ../fish/guestfish.pod:428
16906 msgid ""
16907 "If there are no additional arguments, then we enter a shell, either an "
16908 "interactive shell with a prompt (if the input is a terminal) or a non-"
16909 "interactive shell."
16910 msgstr ""
16911
16912 #. type: textblock
16913 #: ../fish/guestfish.pod:432
16914 msgid ""
16915 "In either command line mode or non-interactive shell, the first command that "
16916 "gives an error causes the whole shell to exit.  In interactive mode (with a "
16917 "prompt) if a command fails, you can continue to enter commands."
16918 msgstr ""
16919
16920 #. type: =head1
16921 #: ../fish/guestfish.pod:437
16922 msgid "USING launch (OR run)"
16923 msgstr ""
16924
16925 #. type: textblock
16926 #: ../fish/guestfish.pod:439
16927 msgid ""
16928 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
16929 "then launch it, then mount any disks you need, and finally issue actions/"
16930 "commands.  So the general order of the day is:"
16931 msgstr ""
16932
16933 #. type: textblock
16934 #: ../fish/guestfish.pod:447
16935 msgid "add or -a/--add"
16936 msgstr ""
16937
16938 #. type: textblock
16939 #: ../fish/guestfish.pod:451
16940 msgid "launch (aka run)"
16941 msgstr ""
16942
16943 #. type: textblock
16944 #: ../fish/guestfish.pod:455
16945 msgid "mount or -m/--mount"
16946 msgstr ""
16947
16948 #. type: textblock
16949 #: ../fish/guestfish.pod:459
16950 msgid "any other commands"
16951 msgstr ""
16952
16953 #. type: textblock
16954 #: ../fish/guestfish.pod:463
16955 msgid ""
16956 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
16957 "guest before mounting or performing any other commands."
16958 msgstr ""
16959
16960 #. type: textblock
16961 #: ../fish/guestfish.pod:466
16962 msgid ""
16963 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
16964 "I<--new> options were given then C<run> is done automatically, simply "
16965 "because guestfish can't perform the action you asked for without doing this."
16966 msgstr ""
16967
16968 #. type: =head1
16969 #: ../fish/guestfish.pod:471
16970 msgid "OPENING DISKS FOR READ AND WRITE"
16971 msgstr ""
16972
16973 #. type: textblock
16974 #: ../fish/guestfish.pod:473
16975 msgid ""
16976 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
16977 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
16978 "I<-i> and I<-m> open disk images read-only or for writing."
16979 msgstr ""
16980
16981 #. type: textblock
16982 #: ../fish/guestfish.pod:478
16983 msgid ""
16984 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
16985 "opening disk images supplied on the command line for write.  To open a disk "
16986 "image read-only you have to do I<-a image --ro>."
16987 msgstr ""
16988
16989 #. type: textblock
16990 #: ../fish/guestfish.pod:482
16991 msgid ""
16992 "This matters: If you accidentally open a live VM disk image writable then "
16993 "you will cause irreversible disk corruption."
16994 msgstr ""
16995
16996 #. type: textblock
16997 #: ../fish/guestfish.pod:485
16998 msgid ""
16999 "In a future libguestfs we intend to change the default the other way.  Disk "
17000 "images will be opened read-only.  You will have to either specify "
17001 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
17002 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
17003 "access for disk images specified by those other command line options."
17004 msgstr ""
17005
17006 #. type: textblock
17007 #: ../fish/guestfish.pod:492
17008 msgid ""
17009 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
17010 "which does nothing (it is already the default).  However it is highly "
17011 "recommended that you use this option to indicate that you need write access, "
17012 "and prepare your scripts for the day when this option will be required for "
17013 "write access."
17014 msgstr ""
17015
17016 #. type: textblock
17017 #: ../fish/guestfish.pod:498
17018 msgid ""
17019 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17020 "other libguestfs program apart from guestfish and guestmount."
17021 msgstr ""
17022
17023 #. type: =head1
17024 #: ../fish/guestfish.pod:501
17025 msgid "QUOTING"
17026 msgstr ""
17027
17028 #. type: textblock
17029 #: ../fish/guestfish.pod:503
17030 msgid ""
17031 "You can quote ordinary parameters using either single or double quotes.  For "
17032 "example:"
17033 msgstr ""
17034
17035 #. type: verbatim
17036 #: ../fish/guestfish.pod:506
17037 #, no-wrap
17038 msgid ""
17039 " add \"file with a space.img\"\n"
17040 "\n"
17041 msgstr ""
17042
17043 #. type: verbatim
17044 #: ../fish/guestfish.pod:508
17045 #, no-wrap
17046 msgid ""
17047 " rm '/file name'\n"
17048 "\n"
17049 msgstr ""
17050
17051 #. type: verbatim
17052 #: ../fish/guestfish.pod:510
17053 #, no-wrap
17054 msgid ""
17055 " rm '/\"'\n"
17056 "\n"
17057 msgstr ""
17058
17059 #. type: textblock
17060 #: ../fish/guestfish.pod:512
17061 msgid ""
17062 "A few commands require a list of strings to be passed.  For these, use a "
17063 "whitespace-separated list, enclosed in quotes.  Strings containing "
17064 "whitespace to be passed through must be enclosed in single quotes.  A "
17065 "literal single quote must be escaped with a backslash."
17066 msgstr ""
17067
17068 #. type: verbatim
17069 #: ../fish/guestfish.pod:517
17070 #, no-wrap
17071 msgid ""
17072 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17073 " command \"/bin/echo 'foo      bar'\"\n"
17074 " command \"/bin/echo \\'foo\\'\"\n"
17075 "\n"
17076 msgstr ""
17077
17078 #. type: =head2
17079 #: ../fish/guestfish.pod:521
17080 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
17081 msgstr ""
17082
17083 #. type: textblock
17084 #: ../fish/guestfish.pod:523
17085 msgid ""
17086 "In double-quoted arguments (only) use backslash to insert special characters:"
17087 msgstr ""
17088
17089 #. type: =item
17090 #: ../fish/guestfish.pod:528
17091 msgid "C<\\a>"
17092 msgstr ""
17093
17094 #. type: textblock
17095 #: ../fish/guestfish.pod:530
17096 msgid "Alert (bell) character."
17097 msgstr ""
17098
17099 #. type: =item
17100 #: ../fish/guestfish.pod:532
17101 msgid "C<\\b>"
17102 msgstr ""
17103
17104 #. type: textblock
17105 #: ../fish/guestfish.pod:534
17106 msgid "Backspace character."
17107 msgstr ""
17108
17109 #. type: =item
17110 #: ../fish/guestfish.pod:536
17111 msgid "C<\\f>"
17112 msgstr ""
17113
17114 #. type: textblock
17115 #: ../fish/guestfish.pod:538
17116 msgid "Form feed character."
17117 msgstr ""
17118
17119 #. type: =item
17120 #: ../fish/guestfish.pod:540
17121 msgid "C<\\n>"
17122 msgstr ""
17123
17124 #. type: textblock
17125 #: ../fish/guestfish.pod:542
17126 msgid "Newline character."
17127 msgstr ""
17128
17129 #. type: =item
17130 #: ../fish/guestfish.pod:544
17131 msgid "C<\\r>"
17132 msgstr ""
17133
17134 #. type: textblock
17135 #: ../fish/guestfish.pod:546
17136 msgid "Carriage return character."
17137 msgstr ""
17138
17139 #. type: =item
17140 #: ../fish/guestfish.pod:548
17141 msgid "C<\\t>"
17142 msgstr ""
17143
17144 #. type: textblock
17145 #: ../fish/guestfish.pod:550
17146 msgid "Horizontal tab character."
17147 msgstr ""
17148
17149 #. type: =item
17150 #: ../fish/guestfish.pod:552
17151 msgid "C<\\v>"
17152 msgstr ""
17153
17154 #. type: textblock
17155 #: ../fish/guestfish.pod:554
17156 msgid "Vertical tab character."
17157 msgstr ""
17158
17159 #. type: =item
17160 #: ../fish/guestfish.pod:556
17161 msgid "C<\\\">"
17162 msgstr ""
17163
17164 #. type: textblock
17165 #: ../fish/guestfish.pod:558
17166 msgid "A literal double quote character."
17167 msgstr ""
17168
17169 #. type: =item
17170 #: ../fish/guestfish.pod:560
17171 msgid "C<\\ooo>"
17172 msgstr ""
17173
17174 #. type: textblock
17175 #: ../fish/guestfish.pod:562
17176 msgid ""
17177 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
17178 "(unlike C)."
17179 msgstr ""
17180
17181 #. type: =item
17182 #: ../fish/guestfish.pod:565
17183 msgid "C<\\xhh>"
17184 msgstr ""
17185
17186 #. type: textblock
17187 #: ../fish/guestfish.pod:567
17188 msgid ""
17189 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
17190 msgstr ""
17191
17192 #. type: textblock
17193 #: ../fish/guestfish.pod:570
17194 msgid ""
17195 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
17196 "strings."
17197 msgstr ""
17198
17199 #. type: =item
17200 #: ../fish/guestfish.pod:573
17201 msgid "C<\\\\>"
17202 msgstr ""
17203
17204 #. type: textblock
17205 #: ../fish/guestfish.pod:575
17206 msgid "A literal backslash character."
17207 msgstr ""
17208
17209 #. type: =head1
17210 #: ../fish/guestfish.pod:579
17211 msgid "OPTIONAL ARGUMENTS"
17212 msgstr ""
17213
17214 #. type: textblock
17215 #: ../fish/guestfish.pod:581
17216 msgid ""
17217 "Some commands take optional arguments.  These arguments appear in this "
17218 "documentation as C<[argname:..]>.  You can use them as in these examples:"
17219 msgstr ""
17220
17221 #. type: verbatim
17222 #: ../fish/guestfish.pod:585
17223 #, no-wrap
17224 msgid ""
17225 " add-drive-opts filename\n"
17226 "\n"
17227 msgstr ""
17228
17229 #. type: verbatim
17230 #: ../fish/guestfish.pod:587
17231 #, no-wrap
17232 msgid ""
17233 " add-drive-opts filename readonly:true\n"
17234 "\n"
17235 msgstr ""
17236
17237 #. type: verbatim
17238 #: ../fish/guestfish.pod:589
17239 #, no-wrap
17240 msgid ""
17241 " add-drive-opts filename format:qcow2 readonly:false\n"
17242 "\n"
17243 msgstr ""
17244
17245 #. type: textblock
17246 #: ../fish/guestfish.pod:591
17247 msgid ""
17248 "Each optional argument can appear at most once.  All optional arguments must "
17249 "appear after the required ones."
17250 msgstr ""
17251
17252 #. type: =head1
17253 #: ../fish/guestfish.pod:594
17254 msgid "NUMBERS"
17255 msgstr ""
17256
17257 #. type: textblock
17258 #: ../fish/guestfish.pod:596
17259 msgid ""
17260 "This section applies to all commands which can take integers as parameters."
17261 msgstr ""
17262
17263 #. type: =head2
17264 #: ../fish/guestfish.pod:599
17265 msgid "SIZE SUFFIX"
17266 msgstr ""
17267
17268 #. type: textblock
17269 #: ../fish/guestfish.pod:601
17270 msgid ""
17271 "When the command takes a parameter measured in bytes, you can use one of the "
17272 "following suffixes to specify kilobytes, megabytes and larger sizes:"
17273 msgstr ""
17274
17275 #. type: =item
17276 #: ../fish/guestfish.pod:607
17277 msgid "B<k> or B<K> or B<KiB>"
17278 msgstr ""
17279
17280 #. type: textblock
17281 #: ../fish/guestfish.pod:609
17282 msgid "The size in kilobytes (multiplied by 1024)."
17283 msgstr ""
17284
17285 #. type: =item
17286 #: ../fish/guestfish.pod:611
17287 msgid "B<KB>"
17288 msgstr ""
17289
17290 #. type: textblock
17291 #: ../fish/guestfish.pod:613
17292 msgid "The size in SI 1000 byte units."
17293 msgstr ""
17294
17295 #. type: =item
17296 #: ../fish/guestfish.pod:615
17297 msgid "B<M> or B<MiB>"
17298 msgstr ""
17299
17300 #. type: textblock
17301 #: ../fish/guestfish.pod:617
17302 msgid "The size in megabytes (multiplied by 1048576)."
17303 msgstr ""
17304
17305 #. type: =item
17306 #: ../fish/guestfish.pod:619
17307 msgid "B<MB>"
17308 msgstr ""
17309
17310 #. type: textblock
17311 #: ../fish/guestfish.pod:621
17312 msgid "The size in SI 1000000 byte units."
17313 msgstr ""
17314
17315 #. type: =item
17316 #: ../fish/guestfish.pod:623
17317 msgid "B<G> or B<GiB>"
17318 msgstr ""
17319
17320 #. type: textblock
17321 #: ../fish/guestfish.pod:625
17322 msgid "The size in gigabytes (multiplied by 2**30)."
17323 msgstr ""
17324
17325 #. type: =item
17326 #: ../fish/guestfish.pod:627
17327 msgid "B<GB>"
17328 msgstr ""
17329
17330 #. type: textblock
17331 #: ../fish/guestfish.pod:629
17332 msgid "The size in SI 10**9 byte units."
17333 msgstr ""
17334
17335 #. type: =item
17336 #: ../fish/guestfish.pod:631
17337 msgid "B<T> or B<TiB>"
17338 msgstr ""
17339
17340 #. type: textblock
17341 #: ../fish/guestfish.pod:633
17342 msgid "The size in terabytes (multiplied by 2**40)."
17343 msgstr ""
17344
17345 #. type: =item
17346 #: ../fish/guestfish.pod:635
17347 msgid "B<TB>"
17348 msgstr ""
17349
17350 #. type: textblock
17351 #: ../fish/guestfish.pod:637
17352 msgid "The size in SI 10**12 byte units."
17353 msgstr ""
17354
17355 #. type: =item
17356 #: ../fish/guestfish.pod:639
17357 msgid "B<P> or B<PiB>"
17358 msgstr ""
17359
17360 #. type: textblock
17361 #: ../fish/guestfish.pod:641
17362 msgid "The size in petabytes (multiplied by 2**50)."
17363 msgstr ""
17364
17365 #. type: =item
17366 #: ../fish/guestfish.pod:643
17367 msgid "B<PB>"
17368 msgstr ""
17369
17370 #. type: textblock
17371 #: ../fish/guestfish.pod:645
17372 msgid "The size in SI 10**15 byte units."
17373 msgstr ""
17374
17375 #. type: =item
17376 #: ../fish/guestfish.pod:647
17377 msgid "B<E> or B<EiB>"
17378 msgstr ""
17379
17380 #. type: textblock
17381 #: ../fish/guestfish.pod:649
17382 msgid "The size in exabytes (multiplied by 2**60)."
17383 msgstr ""
17384
17385 #. type: =item
17386 #: ../fish/guestfish.pod:651
17387 msgid "B<EB>"
17388 msgstr ""
17389
17390 #. type: textblock
17391 #: ../fish/guestfish.pod:653
17392 msgid "The size in SI 10**18 byte units."
17393 msgstr ""
17394
17395 #. type: =item
17396 #: ../fish/guestfish.pod:655
17397 msgid "B<Z> or B<ZiB>"
17398 msgstr ""
17399
17400 #. type: textblock
17401 #: ../fish/guestfish.pod:657
17402 msgid "The size in zettabytes (multiplied by 2**70)."
17403 msgstr ""
17404
17405 #. type: =item
17406 #: ../fish/guestfish.pod:659
17407 msgid "B<ZB>"
17408 msgstr ""
17409
17410 #. type: textblock
17411 #: ../fish/guestfish.pod:661
17412 msgid "The size in SI 10**21 byte units."
17413 msgstr ""
17414
17415 #. type: =item
17416 #: ../fish/guestfish.pod:663
17417 msgid "B<Y> or B<YiB>"
17418 msgstr ""
17419
17420 #. type: textblock
17421 #: ../fish/guestfish.pod:665
17422 msgid "The size in yottabytes (multiplied by 2**80)."
17423 msgstr ""
17424
17425 #. type: =item
17426 #: ../fish/guestfish.pod:667
17427 msgid "B<YB>"
17428 msgstr ""
17429
17430 #. type: textblock
17431 #: ../fish/guestfish.pod:669
17432 msgid "The size in SI 10**24 byte units."
17433 msgstr ""
17434
17435 #. type: verbatim
17436 #: ../fish/guestfish.pod:675
17437 #, no-wrap
17438 msgid ""
17439 " truncate-size /file 1G\n"
17440 "\n"
17441 msgstr ""
17442
17443 #. type: textblock
17444 #: ../fish/guestfish.pod:677
17445 msgid "would truncate the file to 1 gigabyte."
17446 msgstr ""
17447
17448 #. type: textblock
17449 #: ../fish/guestfish.pod:679
17450 msgid ""
17451 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
17452 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
17453 "suffix will probably not do what you expect."
17454 msgstr ""
17455
17456 #. type: =head2
17457 #: ../fish/guestfish.pod:683
17458 msgid "OCTAL AND HEXADECIMAL NUMBERS"
17459 msgstr ""
17460
17461 #. type: textblock
17462 #: ../fish/guestfish.pod:685
17463 msgid ""
17464 "For specifying the radix (base) use the C convention: C<0> to prefix an "
17465 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
17466 msgstr ""
17467
17468 #. type: verbatim
17469 #: ../fish/guestfish.pod:688
17470 #, no-wrap
17471 msgid ""
17472 " 1234      decimal number 1234\n"
17473 " 02322     octal number, equivalent to decimal 1234\n"
17474 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
17475 "\n"
17476 msgstr ""
17477
17478 #. type: textblock
17479 #: ../fish/guestfish.pod:692
17480 msgid ""
17481 "When using the C<chmod> command, you almost always want to specify an octal "
17482 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
17483 "L<chmod(1)> program):"
17484 msgstr ""
17485
17486 #. type: verbatim
17487 #: ../fish/guestfish.pod:696
17488 #, no-wrap
17489 msgid ""
17490 " chmod 0777 /public  # OK\n"
17491 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
17492 "\n"
17493 msgstr ""
17494
17495 #. type: textblock
17496 #: ../fish/guestfish.pod:699
17497 msgid ""
17498 "Commands that return numbers usually print them in decimal, but some "
17499 "commands print numbers in other radices (eg. C<umask> prints the mode in "
17500 "octal, preceeded by C<0>)."
17501 msgstr ""
17502
17503 #. type: =head1
17504 #: ../fish/guestfish.pod:703
17505 msgid "WILDCARDS AND GLOBBING"
17506 msgstr ""
17507
17508 #. type: textblock
17509 #: ../fish/guestfish.pod:705
17510 msgid ""
17511 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
17512 "(globbing) by default.  So for example the following will not do what you "
17513 "expect:"
17514 msgstr ""
17515
17516 #. type: verbatim
17517 #: ../fish/guestfish.pod:709
17518 #, no-wrap
17519 msgid ""
17520 " rm-rf /home/*\n"
17521 "\n"
17522 msgstr ""
17523
17524 #. type: textblock
17525 #: ../fish/guestfish.pod:711
17526 msgid ""
17527 "Assuming you don't have a directory called literally C</home/*> then the "
17528 "above command will return an error."
17529 msgstr ""
17530
17531 #. type: textblock
17532 #: ../fish/guestfish.pod:714
17533 msgid "To perform wildcard expansion, use the C<glob> command."
17534 msgstr ""
17535
17536 #. type: verbatim
17537 #: ../fish/guestfish.pod:716
17538 #, no-wrap
17539 msgid ""
17540 " glob rm-rf /home/*\n"
17541 "\n"
17542 msgstr ""
17543
17544 #. type: textblock
17545 #: ../fish/guestfish.pod:718
17546 msgid ""
17547 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
17548 "many times), equivalent to:"
17549 msgstr ""
17550
17551 #. type: verbatim
17552 #: ../fish/guestfish.pod:721
17553 #, no-wrap
17554 msgid ""
17555 " rm-rf /home/jim\n"
17556 " rm-rf /home/joe\n"
17557 " rm-rf /home/mary\n"
17558 "\n"
17559 msgstr ""
17560
17561 #. type: textblock
17562 #: ../fish/guestfish.pod:725
17563 msgid "C<glob> only works on simple guest paths and not on device names."
17564 msgstr ""
17565
17566 #. type: textblock
17567 #: ../fish/guestfish.pod:727
17568 msgid ""
17569 "If you have several parameters, each containing a wildcard, then glob will "
17570 "perform a Cartesian product."
17571 msgstr ""
17572
17573 #. type: =head1
17574 #: ../fish/guestfish.pod:730
17575 msgid "COMMENTS"
17576 msgstr ""
17577
17578 #. type: textblock
17579 #: ../fish/guestfish.pod:732
17580 msgid ""
17581 "Any line which starts with a I<#> character is treated as a comment and "
17582 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
17583 "a command.  For example:"
17584 msgstr ""
17585
17586 #. type: verbatim
17587 #: ../fish/guestfish.pod:736
17588 #, no-wrap
17589 msgid ""
17590 " # this is a comment\n"
17591 "         # this is a comment\n"
17592 " foo # NOT a comment\n"
17593 "\n"
17594 msgstr ""
17595
17596 #. type: textblock
17597 #: ../fish/guestfish.pod:740
17598 msgid "Blank lines are also ignored."
17599 msgstr ""
17600
17601 #. type: =head1
17602 #: ../fish/guestfish.pod:742
17603 msgid "RUNNING COMMANDS LOCALLY"
17604 msgstr ""
17605
17606 #. type: textblock
17607 #: ../fish/guestfish.pod:744
17608 msgid ""
17609 "Any line which starts with a I<!> character is treated as a command sent to "
17610 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
17611 msgstr ""
17612
17613 #. type: verbatim
17614 #: ../fish/guestfish.pod:748
17615 #, no-wrap
17616 msgid ""
17617 " !mkdir local\n"
17618 " tgz-out /remote local/remote-data.tar.gz\n"
17619 "\n"
17620 msgstr ""
17621
17622 #. type: textblock
17623 #: ../fish/guestfish.pod:751
17624 msgid ""
17625 "will create a directory C<local> on the host, and then export the contents "
17626 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
17627 "(See C<tgz-out>)."
17628 msgstr ""
17629
17630 #. type: textblock
17631 #: ../fish/guestfish.pod:755
17632 msgid ""
17633 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
17634 "effect, due to the way that subprocesses work in Unix."
17635 msgstr ""
17636
17637 #. type: =head2
17638 #: ../fish/guestfish.pod:758
17639 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
17640 msgstr ""
17641
17642 #. type: textblock
17643 #: ../fish/guestfish.pod:760
17644 msgid ""
17645 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
17646 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
17647 "and executed as guestfish commands."
17648 msgstr ""
17649
17650 #. type: textblock
17651 #: ../fish/guestfish.pod:764
17652 msgid ""
17653 "Thus you can use shell script to construct arbitrary guestfish commands "
17654 "which are then parsed by guestfish."
17655 msgstr ""
17656
17657 #. type: textblock
17658 #: ../fish/guestfish.pod:767
17659 msgid ""
17660 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
17661 "through C</foo.100>) using guestfish commands alone.  However this is simple "
17662 "if we use a shell script to create the guestfish commands for us:"
17663 msgstr ""
17664
17665 #. type: verbatim
17666 #: ../fish/guestfish.pod:772
17667 #, no-wrap
17668 msgid ""
17669 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
17670 "\n"
17671 msgstr ""
17672
17673 #. type: textblock
17674 #: ../fish/guestfish.pod:774
17675 msgid "or with names like C</foo.001>:"
17676 msgstr ""
17677
17678 #. type: verbatim
17679 #: ../fish/guestfish.pod:776
17680 #, no-wrap
17681 msgid ""
17682 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
17683 "\n"
17684 msgstr ""
17685
17686 #. type: textblock
17687 #: ../fish/guestfish.pod:778
17688 msgid ""
17689 "When using guestfish interactively it can be helpful to just run the shell "
17690 "script first (ie. remove the initial C<E<lt>> character so it is just an "
17691 "ordinary I<!> local command), see what guestfish commands it would run, and "
17692 "when you are happy with those prepend the C<E<lt>> character to run the "
17693 "guestfish commands for real."
17694 msgstr ""
17695
17696 #. type: =head1
17697 #: ../fish/guestfish.pod:784
17698 msgid "PIPES"
17699 msgstr ""
17700
17701 #. type: textblock
17702 #: ../fish/guestfish.pod:786
17703 msgid ""
17704 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
17705 "command (a guestfish command) to the second command (any host command).  For "
17706 "example:"
17707 msgstr ""
17708
17709 #. type: verbatim
17710 #: ../fish/guestfish.pod:790
17711 #, no-wrap
17712 msgid ""
17713 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
17714 "\n"
17715 msgstr ""
17716
17717 #. type: textblock
17718 #: ../fish/guestfish.pod:792
17719 msgid ""
17720 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
17721 "program).  The above command would list all accounts in the guest filesystem "
17722 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
17723 msgstr ""
17724
17725 #. type: verbatim
17726 #: ../fish/guestfish.pod:797
17727 #, no-wrap
17728 msgid ""
17729 " hexdump /bin/ls | head\n"
17730 " list-devices | tail -1\n"
17731 " tgz-out / - | tar ztf -\n"
17732 "\n"
17733 msgstr ""
17734
17735 #. type: textblock
17736 #: ../fish/guestfish.pod:801
17737 msgid ""
17738 "The space before the pipe symbol is required, any space after the pipe "
17739 "symbol is optional.  Everything after the pipe symbol is just passed "
17740 "straight to the host shell, so it can contain redirections, globs and "
17741 "anything else that makes sense on the host side."
17742 msgstr ""
17743
17744 #. type: textblock
17745 #: ../fish/guestfish.pod:806
17746 msgid ""
17747 "To use a literal argument which begins with a pipe symbol, you have to quote "
17748 "it, eg:"
17749 msgstr ""
17750
17751 #. type: verbatim
17752 #: ../fish/guestfish.pod:809
17753 #, no-wrap
17754 msgid ""
17755 " echo \"|\"\n"
17756 "\n"
17757 msgstr ""
17758
17759 #. type: =head1
17760 #: ../fish/guestfish.pod:811
17761 msgid "HOME DIRECTORIES"
17762 msgstr ""
17763
17764 #. type: textblock
17765 #: ../fish/guestfish.pod:813
17766 msgid ""
17767 "If a parameter starts with the character C<~> then the tilde may be expanded "
17768 "as a home directory path (either C<~> for the current user's home directory, "
17769 "or C<~user> for another user)."
17770 msgstr ""
17771
17772 #. type: textblock
17773 #: ../fish/guestfish.pod:817
17774 msgid ""
17775 "Note that home directory expansion happens for users known I<on the host>, "
17776 "not in the guest filesystem."
17777 msgstr ""
17778
17779 #. type: textblock
17780 #: ../fish/guestfish.pod:820
17781 msgid ""
17782 "To use a literal argument which begins with a tilde, you have to quote it, "
17783 "eg:"
17784 msgstr ""
17785
17786 #. type: verbatim
17787 #: ../fish/guestfish.pod:823
17788 #, no-wrap
17789 msgid ""
17790 " echo \"~\"\n"
17791 "\n"
17792 msgstr ""
17793
17794 #. type: =head2
17795 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
17796 msgid "ENCRYPTED DISKS"
17797 msgstr ""
17798
17799 #. type: textblock
17800 #: ../fish/guestfish.pod:827
17801 msgid ""
17802 "Libguestfs has some support for Linux guests encrypted according to the "
17803 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
17804 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
17805 "LUKS is supported."
17806 msgstr ""
17807
17808 #. type: textblock
17809 #: ../fish/guestfish.pod:832
17810 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
17811 msgstr ""
17812
17813 #. type: verbatim
17814 #: ../fish/guestfish.pod:834
17815 #, no-wrap
17816 msgid ""
17817 " ><fs> vfs-type /dev/sda2\n"
17818 " crypto_LUKS\n"
17819 "\n"
17820 msgstr ""
17821
17822 #. type: textblock
17823 #: ../fish/guestfish.pod:837
17824 msgid ""
17825 "Then open those devices using L</luks-open>.  This creates a device-mapper "
17826 "device called C</dev/mapper/luksdev>."
17827 msgstr ""
17828
17829 #. type: verbatim
17830 #: ../fish/guestfish.pod:840
17831 #, no-wrap
17832 msgid ""
17833 " ><fs> luks-open /dev/sda2 luksdev\n"
17834 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
17835 "\n"
17836 msgstr ""
17837
17838 #. type: textblock
17839 #: ../fish/guestfish.pod:843
17840 msgid ""
17841 "Finally you have to tell LVM to scan for volume groups on the newly created "
17842 "mapper device:"
17843 msgstr ""
17844
17845 #. type: verbatim
17846 #: ../fish/guestfish.pod:846
17847 #, no-wrap
17848 msgid ""
17849 " vgscan\n"
17850 " vg-activate-all true\n"
17851 "\n"
17852 msgstr ""
17853
17854 #. type: textblock
17855 #: ../fish/guestfish.pod:849
17856 msgid "The logical volume(s) can now be mounted in the usual way."
17857 msgstr ""
17858
17859 #. type: textblock
17860 #: ../fish/guestfish.pod:851
17861 msgid ""
17862 "Before closing a LUKS device you must unmount any logical volumes on it and "
17863 "deactivate the volume groups by calling C<vg-activate false VG> on each "
17864 "one.  Then you can close the mapper device:"
17865 msgstr ""
17866
17867 #. type: verbatim
17868 #: ../fish/guestfish.pod:855
17869 #, no-wrap
17870 msgid ""
17871 " vg-activate false /dev/VG\n"
17872 " luks-close /dev/mapper/luksdev\n"
17873 "\n"
17874 msgstr ""
17875
17876 #. type: textblock
17877 #: ../fish/guestfish.pod:860
17878 msgid ""
17879 "If a path is prefixed with C<win:> then you can use Windows-style drive "
17880 "letters and paths (with some limitations).  The following commands are "
17881 "equivalent:"
17882 msgstr ""
17883
17884 #. type: verbatim
17885 #: ../fish/guestfish.pod:864
17886 #, no-wrap
17887 msgid ""
17888 " file /WINDOWS/system32/config/system.LOG\n"
17889 "\n"
17890 msgstr ""
17891
17892 #. type: verbatim
17893 #: ../fish/guestfish.pod:866
17894 #, no-wrap
17895 msgid ""
17896 " file win:\\windows\\system32\\config\\system.log\n"
17897 "\n"
17898 msgstr ""
17899
17900 #. type: verbatim
17901 #: ../fish/guestfish.pod:868
17902 #, no-wrap
17903 msgid ""
17904 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
17905 "\n"
17906 msgstr ""
17907
17908 #. type: textblock
17909 #: ../fish/guestfish.pod:870
17910 msgid ""
17911 "The parameter is rewritten \"behind the scenes\" by looking up the position "
17912 "where the drive is mounted, prepending that to the path, changing all "
17913 "backslash characters to forward slash, then resolving the result using L</"
17914 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
17915 "the parameter might be rewritten like this:"
17916 msgstr ""
17917
17918 #. type: verbatim
17919 #: ../fish/guestfish.pod:876
17920 #, no-wrap
17921 msgid ""
17922 " win:e:\\foo\\bar => /e/FOO/bar\n"
17923 "\n"
17924 msgstr ""
17925
17926 #. type: textblock
17927 #: ../fish/guestfish.pod:878
17928 msgid "This only works in argument positions that expect a path."
17929 msgstr ""
17930
17931 #. type: =head1
17932 #: ../fish/guestfish.pod:880
17933 msgid "UPLOADING AND DOWNLOADING FILES"
17934 msgstr ""
17935
17936 #. type: textblock
17937 #: ../fish/guestfish.pod:882
17938 msgid ""
17939 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
17940 "others which upload from or download to a local file, you can use the "
17941 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
17942 msgstr ""
17943
17944 #. type: verbatim
17945 #: ../fish/guestfish.pod:886
17946 #, no-wrap
17947 msgid ""
17948 " upload - /foo\n"
17949 "\n"
17950 msgstr ""
17951
17952 #. type: textblock
17953 #: ../fish/guestfish.pod:888
17954 msgid ""
17955 "reads stdin and creates from that a file C</foo> in the disk image, and:"
17956 msgstr ""
17957
17958 #. type: verbatim
17959 #: ../fish/guestfish.pod:891
17960 #, no-wrap
17961 msgid ""
17962 " tar-out /etc - | tar tf -\n"
17963 "\n"
17964 msgstr ""
17965
17966 #. type: textblock
17967 #: ../fish/guestfish.pod:893
17968 msgid ""
17969 "writes the tarball to stdout and then pipes that into the external \"tar\" "
17970 "command (see L</PIPES>)."
17971 msgstr ""
17972
17973 #. type: textblock
17974 #: ../fish/guestfish.pod:896
17975 msgid ""
17976 "When using C<-> to read from stdin, the input is read up to the end of "
17977 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
17978 "some arbitrary end marker:"
17979 msgstr ""
17980
17981 #. type: verbatim
17982 #: ../fish/guestfish.pod:900
17983 #, no-wrap
17984 msgid ""
17985 " upload -<<END /foo\n"
17986 " input line 1\n"
17987 " input line 2\n"
17988 " input line 3\n"
17989 " END\n"
17990 "\n"
17991 msgstr ""
17992
17993 #. type: textblock
17994 #: ../fish/guestfish.pod:906
17995 msgid ""
17996 "Any string of characters can be used instead of C<END>.  The end marker must "
17997 "appear on a line of its own, without any preceeding or following characters "
17998 "(not even spaces)."
17999 msgstr ""
18000
18001 #. type: textblock
18002 #: ../fish/guestfish.pod:910
18003 msgid ""
18004 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18005 "upload local files (so-called \"FileIn\" parameters in the generator)."
18006 msgstr ""
18007
18008 #. type: =head1
18009 #: ../fish/guestfish.pod:913
18010 msgid "EXIT ON ERROR BEHAVIOUR"
18011 msgstr ""
18012
18013 #. type: textblock
18014 #: ../fish/guestfish.pod:915
18015 msgid ""
18016 "By default, guestfish will ignore any errors when in interactive mode (ie. "
18017 "taking commands from a human over a tty), and will exit on the first error "
18018 "in non-interactive mode (scripts, commands given on the command line)."
18019 msgstr ""
18020
18021 #. type: textblock
18022 #: ../fish/guestfish.pod:920
18023 msgid ""
18024 "If you prefix a command with a I<-> character, then that command will not "
18025 "cause guestfish to exit, even if that (one) command returns an error."
18026 msgstr ""
18027
18028 #. type: =head1
18029 #: ../fish/guestfish.pod:924
18030 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18031 msgstr ""
18032
18033 #. type: textblock
18034 #: ../fish/guestfish.pod:926
18035 msgid ""
18036 "Guestfish can be remote-controlled over a socket.  This is useful "
18037 "particularly in shell scripts where you want to make several different "
18038 "changes to a filesystem, but you don't want the overhead of starting up a "
18039 "guestfish process each time."
18040 msgstr ""
18041
18042 #. type: textblock
18043 #: ../fish/guestfish.pod:931
18044 msgid "Start a guestfish server process using:"
18045 msgstr ""
18046
18047 #. type: verbatim
18048 #: ../fish/guestfish.pod:933
18049 #, no-wrap
18050 msgid ""
18051 " eval \"`guestfish --listen`\"\n"
18052 "\n"
18053 msgstr ""
18054
18055 #. type: textblock
18056 #: ../fish/guestfish.pod:935
18057 msgid "and then send it commands by doing:"
18058 msgstr ""
18059
18060 #. type: verbatim
18061 #: ../fish/guestfish.pod:937
18062 #, no-wrap
18063 msgid ""
18064 " guestfish --remote cmd [...]\n"
18065 "\n"
18066 msgstr ""
18067
18068 #. type: textblock
18069 #: ../fish/guestfish.pod:939
18070 msgid "To cause the server to exit, send it the exit command:"
18071 msgstr ""
18072
18073 #. type: textblock
18074 #: ../fish/guestfish.pod:943
18075 msgid ""
18076 "Note that the server will normally exit if there is an error in a command.  "
18077 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18078 "BEHAVIOUR>."
18079 msgstr ""
18080
18081 #. type: =head2
18082 #: ../fish/guestfish.pod:947
18083 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18084 msgstr ""
18085
18086 #. type: textblock
18087 #: ../fish/guestfish.pod:949
18088 msgid ""
18089 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18090 "is how the I<--remote> option knows where to send the commands.  You can "
18091 "have several guestfish listener processes running using:"
18092 msgstr ""
18093
18094 #. type: verbatim
18095 #: ../fish/guestfish.pod:953
18096 #, no-wrap
18097 msgid ""
18098 " eval \"`guestfish --listen`\"\n"
18099 " pid1=$GUESTFISH_PID\n"
18100 " eval \"`guestfish --listen`\"\n"
18101 " pid2=$GUESTFISH_PID\n"
18102 " ...\n"
18103 " guestfish --remote=$pid1 cmd\n"
18104 " guestfish --remote=$pid2 cmd\n"
18105 "\n"
18106 msgstr ""
18107
18108 #. type: =head2
18109 #: ../fish/guestfish.pod:961
18110 msgid "REMOTE CONTROL AND CSH"
18111 msgstr ""
18112
18113 #. type: textblock
18114 #: ../fish/guestfish.pod:963
18115 msgid ""
18116 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18117 "option:"
18118 msgstr ""
18119
18120 #. type: verbatim
18121 #: ../fish/guestfish.pod:966
18122 #, no-wrap
18123 msgid ""
18124 " eval \"`guestfish --listen --csh`\"\n"
18125 "\n"
18126 msgstr ""
18127
18128 #. type: =head2
18129 #: ../fish/guestfish.pod:968
18130 msgid "REMOTE CONTROL DETAILS"
18131 msgstr ""
18132
18133 #. type: textblock
18134 #: ../fish/guestfish.pod:970
18135 msgid ""
18136 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
18137 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
18138 "and C<$PID> is the process ID of the server."
18139 msgstr ""
18140
18141 #. type: textblock
18142 #: ../fish/guestfish.pod:974
18143 msgid "Guestfish client and server versions must match exactly."
18144 msgstr ""
18145
18146 #. type: =head2
18147 #: ../fish/guestfish.pod:976
18148 msgid "REMOTE CONTROL RUN COMMAND HANGING"
18149 msgstr ""
18150
18151 #. type: textblock
18152 #: ../fish/guestfish.pod:978
18153 msgid ""
18154 "Using the C<run> (or C<launch>) command remotely in a command substitution "
18155 "context hangs, ie. don't do (note the backquotes):"
18156 msgstr ""
18157
18158 #. type: verbatim
18159 #: ../fish/guestfish.pod:981
18160 #, no-wrap
18161 msgid ""
18162 " a=`guestfish --remote run`\n"
18163 "\n"
18164 msgstr ""
18165
18166 #. type: textblock
18167 #: ../fish/guestfish.pod:983
18168 msgid ""
18169 "Since the C<run> command produces no output on stdout, this is not useful "
18170 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
18171 "cgi?id=592910>."
18172 msgstr ""
18173
18174 #. type: =head1
18175 #: ../fish/guestfish.pod:987
18176 msgid "PREPARED DISK IMAGES"
18177 msgstr ""
18178
18179 #. type: textblock
18180 #: ../fish/guestfish.pod:989
18181 msgid ""
18182 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18183 "preformatted disk images that guestfish can make for you to save typing.  "
18184 "This is particularly useful for testing purposes.  This option is used "
18185 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18186 "can be mixed with I<-a>)."
18187 msgstr ""
18188
18189 #. type: textblock
18190 #: ../fish/guestfish.pod:995
18191 msgid ""
18192 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
18193 "the second and so on.  Existing files in the current directory are "
18194 "I<overwritten>."
18195 msgstr ""
18196
18197 #. type: textblock
18198 #: ../fish/guestfish.pod:999
18199 msgid ""
18200 "The type briefly describes how the disk should be sized, partitioned, how "
18201 "filesystem(s) should be created, and how content should be added.  "
18202 "Optionally the type can be followed by extra parameters, separated by C<:> "
18203 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
18204 "allocated disk, containing a single partition, with the partition formatted "
18205 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
18206 "disk instead."
18207 msgstr ""
18208
18209 #. type: textblock
18210 #: ../fish/guestfish.pod:1007
18211 msgid "To list the available types and any extra parameters they take, run:"
18212 msgstr ""
18213
18214 #. type: textblock
18215 #: ../fish/guestfish.pod:1011
18216 msgid ""
18217 "Note that the prepared filesystem is not mounted.  You would usually have to "
18218 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
18219 msgstr ""
18220
18221 #. type: textblock
18222 #: ../fish/guestfish.pod:1015
18223 msgid ""
18224 "If any I<-N> or I<--new> options are given, the guest is automatically "
18225 "launched."
18226 msgstr ""
18227
18228 #. type: textblock
18229 #: ../fish/guestfish.pod:1020
18230 msgid "Create a 100MB disk with an ext4-formatted partition:"
18231 msgstr ""
18232
18233 #. type: verbatim
18234 #: ../fish/guestfish.pod:1022
18235 #, no-wrap
18236 msgid ""
18237 " guestfish -N fs:ext4\n"
18238 "\n"
18239 msgstr ""
18240
18241 #. type: textblock
18242 #: ../fish/guestfish.pod:1024
18243 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
18244 msgstr ""
18245
18246 #. type: verbatim
18247 #: ../fish/guestfish.pod:1026
18248 #, no-wrap
18249 msgid ""
18250 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
18251 "\n"
18252 msgstr ""
18253
18254 #. type: textblock
18255 #: ../fish/guestfish.pod:1028
18256 msgid "Create a blank 200MB disk:"
18257 msgstr ""
18258
18259 #. type: verbatim
18260 #: ../fish/guestfish.pod:1030
18261 #, no-wrap
18262 msgid ""
18263 " guestfish -N disk:200M\n"
18264 "\n"
18265 msgstr ""
18266
18267 #. type: =head1
18268 #: ../fish/guestfish.pod:1032
18269 msgid "PROGRESS BARS"
18270 msgstr ""
18271
18272 #. type: textblock
18273 #: ../fish/guestfish.pod:1034
18274 msgid ""
18275 "Some (not all) long-running commands send progress notification messages as "
18276 "they are running.  Guestfish turns these messages into progress bars."
18277 msgstr ""
18278
18279 #. type: textblock
18280 #: ../fish/guestfish.pod:1038
18281 msgid ""
18282 "When a command that supports progress bars takes longer than two seconds to "
18283 "run, and if progress bars are enabled, then you will see one appearing below "
18284 "the command:"
18285 msgstr ""
18286
18287 #. type: verbatim
18288 #: ../fish/guestfish.pod:1042
18289 #, no-wrap
18290 msgid ""
18291 " ><fs> copy-size /large-file /another-file 2048M\n"
18292 " / 10% [#####-----------------------------------------] 00:30\n"
18293 "\n"
18294 msgstr ""
18295
18296 #. type: textblock
18297 #: ../fish/guestfish.pod:1045
18298 msgid ""
18299 "The spinner on the left hand side moves round once for every progress "
18300 "notification received from the backend.  This is a (reasonably) golden "
18301 "assurance that the command is \"doing something\" even if the progress bar "
18302 "is not moving, because the command is able to send the progress "
18303 "notifications.  When the bar reaches 100% and the command finishes, the "
18304 "spinner disappears."
18305 msgstr ""
18306
18307 #. type: textblock
18308 #: ../fish/guestfish.pod:1052
18309 msgid ""
18310 "Progress bars are enabled by default when guestfish is used interactively.  "
18311 "You can enable them even for non-interactive modes using I<--progress-bars>, "
18312 "and you can disable them completely using I<--no-progress-bars>."
18313 msgstr ""
18314
18315 #. type: =head1
18316 #: ../fish/guestfish.pod:1057
18317 msgid "GUESTFISH COMMANDS"
18318 msgstr ""
18319
18320 #. type: textblock
18321 #: ../fish/guestfish.pod:1059
18322 msgid ""
18323 "The commands in this section are guestfish convenience commands, in other "
18324 "words, they are not part of the L<guestfs(3)> API."
18325 msgstr ""
18326
18327 #. type: =head2
18328 #: ../fish/guestfish.pod:1062
18329 msgid "help"
18330 msgstr ""
18331
18332 #. type: verbatim
18333 #: ../fish/guestfish.pod:1064
18334 #, no-wrap
18335 msgid ""
18336 " help\n"
18337 " help cmd\n"
18338 "\n"
18339 msgstr ""
18340
18341 #. type: textblock
18342 #: ../fish/guestfish.pod:1067
18343 msgid "Without any parameter, this provides general help."
18344 msgstr ""
18345
18346 #. type: textblock
18347 #: ../fish/guestfish.pod:1069
18348 msgid "With a C<cmd> parameter, this displays detailed help for that command."
18349 msgstr ""
18350
18351 #. type: =head2
18352 #: ../fish/guestfish.pod:1071
18353 msgid "quit | exit"
18354 msgstr ""
18355
18356 #. type: textblock
18357 #: ../fish/guestfish.pod:1073
18358 msgid "This exits guestfish.  You can also use C<^D> key."
18359 msgstr ""
18360
18361 #. type: textblock
18362 #: ../fish/guestfish.pod:1075
18363 msgid "@FISH_COMMANDS@"
18364 msgstr ""
18365
18366 #. type: =head1
18367 #: ../fish/guestfish.pod:1077
18368 msgid "COMMANDS"
18369 msgstr ""
18370
18371 #. type: textblock
18372 #: ../fish/guestfish.pod:1079 ../src/guestfs.pod:1475
18373 msgid "@ACTIONS@"
18374 msgstr ""
18375
18376 #. type: textblock
18377 #: ../fish/guestfish.pod:1083
18378 msgid ""
18379 "guestfish returns 0 if the commands completed without error, or 1 if there "
18380 "was an error."
18381 msgstr ""
18382
18383 #. type: =item
18384 #: ../fish/guestfish.pod:1090
18385 msgid "EDITOR"
18386 msgstr ""
18387
18388 #. type: textblock
18389 #: ../fish/guestfish.pod:1092
18390 msgid ""
18391 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
18392 "C<vi>."
18393 msgstr ""
18394
18395 #. type: =item
18396 #: ../fish/guestfish.pod:1095 ../src/guestfs.pod:2985
18397 msgid "FEBOOTSTRAP_KERNEL"
18398 msgstr ""
18399
18400 #. type: =item
18401 #: ../fish/guestfish.pod:1097 ../src/guestfs.pod:2987
18402 msgid "FEBOOTSTRAP_MODULES"
18403 msgstr ""
18404
18405 #. type: textblock
18406 #: ../fish/guestfish.pod:1099 ../src/guestfs.pod:2989
18407 msgid ""
18408 "These two environment variables allow the kernel that libguestfs uses in the "
18409 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
18410 "most recent host kernel is chosen.  For more information about kernel "
18411 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
18412 "available in febootstrap E<ge> 3.8."
18413 msgstr ""
18414
18415 #. type: =item
18416 #: ../fish/guestfish.pod:1105
18417 msgid "GUESTFISH_DISPLAY_IMAGE"
18418 msgstr ""
18419
18420 #. type: textblock
18421 #: ../fish/guestfish.pod:1107
18422 msgid ""
18423 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
18424 "If not set, it uses L<display(1)>."
18425 msgstr ""
18426
18427 #. type: =item
18428 #: ../fish/guestfish.pod:1110
18429 msgid "GUESTFISH_PID"
18430 msgstr ""
18431
18432 #. type: textblock
18433 #: ../fish/guestfish.pod:1112
18434 msgid ""
18435 "Used with the I<--remote> option to specify the remote guestfish process to "
18436 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
18437 msgstr ""
18438
18439 #. type: =item
18440 #: ../fish/guestfish.pod:1116
18441 msgid "HEXEDITOR"
18442 msgstr ""
18443
18444 #. type: textblock
18445 #: ../fish/guestfish.pod:1118
18446 msgid ""
18447 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
18448 "not specified, the external L<hexedit(1)> program is used."
18449 msgstr ""
18450
18451 #. type: =item
18452 #: ../fish/guestfish.pod:1122
18453 msgid "HOME"
18454 msgstr ""
18455
18456 #. type: textblock
18457 #: ../fish/guestfish.pod:1124
18458 msgid ""
18459 "If compiled with GNU readline support, various files in the home directory "
18460 "can be used.  See L</FILES>."
18461 msgstr ""
18462
18463 #. type: =item
18464 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:2995
18465 msgid "LIBGUESTFS_APPEND"
18466 msgstr ""
18467
18468 #. type: textblock
18469 #: ../fish/guestfish.pod:1129 ../src/guestfs.pod:2997
18470 msgid "Pass additional options to the guest kernel."
18471 msgstr ""
18472
18473 #. type: =item
18474 #: ../fish/guestfish.pod:1131 ../src/guestfs.pod:2999
18475 msgid "LIBGUESTFS_DEBUG"
18476 msgstr ""
18477
18478 #. type: textblock
18479 #: ../fish/guestfish.pod:1133
18480 msgid ""
18481 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
18482 "effect as using the B<-v> option."
18483 msgstr ""
18484
18485 #. type: =item
18486 #: ../fish/guestfish.pod:1136 ../src/guestfs.pod:3004
18487 msgid "LIBGUESTFS_MEMSIZE"
18488 msgstr ""
18489
18490 #. type: textblock
18491 #: ../fish/guestfish.pod:1138 ../src/guestfs.pod:3006
18492 msgid ""
18493 "Set the memory allocated to the qemu process, in megabytes.  For example:"
18494 msgstr ""
18495
18496 #. type: verbatim
18497 #: ../fish/guestfish.pod:1141 ../src/guestfs.pod:3009
18498 #, no-wrap
18499 msgid ""
18500 " LIBGUESTFS_MEMSIZE=700\n"
18501 "\n"
18502 msgstr ""
18503
18504 #. type: =item
18505 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:3011
18506 msgid "LIBGUESTFS_PATH"
18507 msgstr ""
18508
18509 #. type: textblock
18510 #: ../fish/guestfish.pod:1145
18511 msgid ""
18512 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
18513 "the discussion of paths in L<guestfs(3)>."
18514 msgstr ""
18515
18516 #. type: =item
18517 #: ../fish/guestfish.pod:1148 ../src/guestfs.pod:3016
18518 msgid "LIBGUESTFS_QEMU"
18519 msgstr ""
18520
18521 #. type: textblock
18522 #: ../fish/guestfish.pod:1150 ../src/guestfs.pod:3018
18523 msgid ""
18524 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
18525 "which was found at compile time by the configure script is used."
18526 msgstr ""
18527
18528 #. type: =item
18529 #: ../fish/guestfish.pod:1154 ../src/guestfs.pod:3024
18530 msgid "LIBGUESTFS_TRACE"
18531 msgstr ""
18532
18533 #. type: textblock
18534 #: ../fish/guestfish.pod:1156
18535 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
18536 msgstr ""
18537
18538 #. type: =item
18539 #: ../fish/guestfish.pod:1158
18540 msgid "PAGER"
18541 msgstr ""
18542
18543 #. type: textblock
18544 #: ../fish/guestfish.pod:1160
18545 msgid ""
18546 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
18547 "C<more>."
18548 msgstr ""
18549
18550 #. type: =item
18551 #: ../fish/guestfish.pod:1163 ../src/guestfs.pod:3029
18552 msgid "TMPDIR"
18553 msgstr ""
18554
18555 #. type: textblock
18556 #: ../fish/guestfish.pod:1165 ../src/guestfs.pod:3031
18557 msgid ""
18558 "Location of temporary directory, defaults to C</tmp> except for the cached "
18559 "supermin appliance which defaults to C</var/tmp>."
18560 msgstr ""
18561
18562 #. type: textblock
18563 #: ../fish/guestfish.pod:1168 ../src/guestfs.pod:3034
18564 msgid ""
18565 "If libguestfs was compiled to use the supermin appliance then the real "
18566 "appliance is cached in this directory, shared between all handles belonging "
18567 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
18568 "use in case C</var/tmp> is not large enough."
18569 msgstr ""
18570
18571 #. type: =head1
18572 #: ../fish/guestfish.pod:1176 ../fuse/guestmount.pod:288
18573 #: ../rescue/virt-rescue.pod:269
18574 msgid "FILES"
18575 msgstr ""
18576
18577 #. type: =item
18578 #: ../fish/guestfish.pod:1180 ../fuse/guestmount.pod:292
18579 #: ../rescue/virt-rescue.pod:273
18580 msgid "$HOME/.libguestfs-tools.rc"
18581 msgstr ""
18582
18583 #. type: =item
18584 #: ../fish/guestfish.pod:1182 ../fuse/guestmount.pod:294
18585 #: ../rescue/virt-rescue.pod:275
18586 msgid "/etc/libguestfs-tools.conf"
18587 msgstr ""
18588
18589 #. type: textblock
18590 #: ../fish/guestfish.pod:1184 ../fuse/guestmount.pod:296
18591 #: ../rescue/virt-rescue.pod:277
18592 msgid ""
18593 "This configuration file controls the default read-only or read-write mode "
18594 "(I<--ro> or I<--rw>)."
18595 msgstr ""
18596
18597 #. type: textblock
18598 #: ../fish/guestfish.pod:1187
18599 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
18600 msgstr ""
18601
18602 #. type: =item
18603 #: ../fish/guestfish.pod:1189
18604 msgid "$HOME/.guestfish"
18605 msgstr ""
18606
18607 #. type: textblock
18608 #: ../fish/guestfish.pod:1191
18609 msgid ""
18610 "If compiled with GNU readline support, then the command history is saved in "
18611 "this file."
18612 msgstr ""
18613
18614 #. type: =item
18615 #: ../fish/guestfish.pod:1194
18616 msgid "$HOME/.inputrc"
18617 msgstr ""
18618
18619 #. type: =item
18620 #: ../fish/guestfish.pod:1196
18621 msgid "/etc/inputrc"
18622 msgstr ""
18623
18624 #. type: textblock
18625 #: ../fish/guestfish.pod:1198
18626 msgid ""
18627 "If compiled with GNU readline support, then these files can be used to "
18628 "configure readline.  For further information, please see L<readline(3)/"
18629 "INITIALIZATION FILE>."
18630 msgstr ""
18631
18632 #. type: textblock
18633 #: ../fish/guestfish.pod:1202
18634 msgid "To write rules which only apply to guestfish, use:"
18635 msgstr ""
18636
18637 #. type: verbatim
18638 #: ../fish/guestfish.pod:1204
18639 #, no-wrap
18640 msgid ""
18641 " $if guestfish\n"
18642 " ...\n"
18643 " $endif\n"
18644 "\n"
18645 msgstr ""
18646
18647 #. type: textblock
18648 #: ../fish/guestfish.pod:1208
18649 msgid ""
18650 "Variables that you can set in inputrc that change the behaviour of guestfish "
18651 "in useful ways include:"
18652 msgstr ""
18653
18654 #. type: =item
18655 #: ../fish/guestfish.pod:1213
18656 msgid "completion-ignore-case (default: on)"
18657 msgstr ""
18658
18659 #. type: textblock
18660 #: ../fish/guestfish.pod:1215
18661 msgid ""
18662 "By default, guestfish will ignore case when tab-completing paths on the "
18663 "disk.  Use:"
18664 msgstr ""
18665
18666 #. type: verbatim
18667 #: ../fish/guestfish.pod:1218
18668 #, no-wrap
18669 msgid ""
18670 " set completion-ignore-case off\n"
18671 "\n"
18672 msgstr ""
18673
18674 #. type: textblock
18675 #: ../fish/guestfish.pod:1220
18676 msgid "to make guestfish case sensitive."
18677 msgstr ""
18678
18679 #. type: =item
18680 #: ../fish/guestfish.pod:1224
18681 msgid "test1.img"
18682 msgstr ""
18683
18684 #. type: =item
18685 #: ../fish/guestfish.pod:1226
18686 msgid "test2.img (etc)"
18687 msgstr ""
18688
18689 #. type: textblock
18690 #: ../fish/guestfish.pod:1228
18691 msgid ""
18692 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
18693 "will be created in the file C<test1.img> in the current directory.  The "
18694 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
18695 "the same name will be overwritten."
18696 msgstr ""
18697
18698 #. type: textblock
18699 #: ../fish/guestfish.pod:1237
18700 msgid ""
18701 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
18702 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
18703 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
18704 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
18705 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
18706 ">, L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
18707 msgstr ""
18708
18709 #. type: textblock
18710 #: ../fish/guestfish.pod:1266 ../src/guestfs.pod:3120
18711 #: ../test-tool/libguestfs-test-tool.pod:99
18712 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
18713 msgstr ""
18714
18715 #. type: textblock
18716 #: ../fish/virt-copy-in.pod:5
18717 msgid ""
18718 "virt-copy-in - Copy files and directories into a virtual machine disk image."
18719 msgstr ""
18720
18721 #. type: verbatim
18722 #: ../fish/virt-copy-in.pod:9
18723 #, no-wrap
18724 msgid ""
18725 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
18726 "\n"
18727 msgstr ""
18728
18729 #. type: verbatim
18730 #: ../fish/virt-copy-in.pod:11
18731 #, no-wrap
18732 msgid ""
18733 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
18734 "\n"
18735 msgstr ""
18736
18737 #. type: textblock
18738 #: ../fish/virt-copy-in.pod:15
18739 msgid ""
18740 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
18741 "causing disk corruption.  The virtual machine must be shut down before you "
18742 "use this command."
18743 msgstr ""
18744
18745 #. type: textblock
18746 #: ../fish/virt-copy-in.pod:21
18747 msgid ""
18748 "C<virt-copy-in> copies files and directories from the local disk into a "
18749 "virtual machine disk image or named libvirt domain."
18750 msgstr ""
18751
18752 #. type: textblock
18753 #: ../fish/virt-copy-in.pod:24
18754 msgid ""
18755 "You can give one of more filenames and directories on the command line.  "
18756 "Directories are copied in recursively.  The final parameter must be the "
18757 "destination directory in the disk image which must be an absolute path "
18758 "starting with a C</> character."
18759 msgstr ""
18760
18761 #. type: verbatim
18762 #: ../fish/virt-copy-in.pod:33
18763 #, no-wrap
18764 msgid ""
18765 " virt-copy-in -d MyGuest resolv.conf /etc\n"
18766 "\n"
18767 msgstr ""
18768
18769 #. type: textblock
18770 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
18771 msgid "Upload a home directory to a guest:"
18772 msgstr ""
18773
18774 #. type: verbatim
18775 #: ../fish/virt-copy-in.pod:37
18776 #, no-wrap
18777 msgid ""
18778 " virt-copy-in -d MyGuest skel /home\n"
18779 "\n"
18780 msgstr ""
18781
18782 #. type: =head1
18783 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
18784 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
18785 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
18786 msgstr ""
18787
18788 #. type: textblock
18789 #: ../fish/virt-copy-in.pod:41
18790 msgid ""
18791 "This command is just a simple shell script wrapper around the L<guestfish(1)"
18792 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
18793 "are probably better off using guestfish directly."
18794 msgstr ""
18795
18796 #. type: textblock
18797 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
18798 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
18799 msgid ""
18800 "Since the shell script just passes options straight to guestfish, read "
18801 "L<guestfish(1)> to see the full list of options."
18802 msgstr ""
18803
18804 #. type: textblock
18805 #: ../fish/virt-copy-in.pod:52
18806 msgid ""
18807 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
18808 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
18809 msgstr ""
18810
18811 #. type: textblock
18812 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
18813 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
18814 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
18815 msgstr ""
18816
18817 #. type: textblock
18818 #: ../fish/virt-copy-out.pod:5
18819 msgid ""
18820 "virt-copy-out - Copy files and directories out of a virtual machine disk "
18821 "image."
18822 msgstr ""
18823
18824 #. type: verbatim
18825 #: ../fish/virt-copy-out.pod:9
18826 #, no-wrap
18827 msgid ""
18828 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
18829 "\n"
18830 msgstr ""
18831
18832 #. type: verbatim
18833 #: ../fish/virt-copy-out.pod:11
18834 #, no-wrap
18835 msgid ""
18836 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
18837 "\n"
18838 msgstr ""
18839
18840 #. type: textblock
18841 #: ../fish/virt-copy-out.pod:15
18842 msgid ""
18843 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
18844 "image or named libvirt domain."
18845 msgstr ""
18846
18847 #. type: textblock
18848 #: ../fish/virt-copy-out.pod:18
18849 msgid ""
18850 "You can give one of more filenames and directories on the command line.  "
18851 "Directories are copied out recursively."
18852 msgstr ""
18853
18854 #. type: textblock
18855 #: ../fish/virt-copy-out.pod:23
18856 msgid "Download the home directories from a virtual machine:"
18857 msgstr ""
18858
18859 #. type: verbatim
18860 #: ../fish/virt-copy-out.pod:25
18861 #, no-wrap
18862 msgid ""
18863 " mkdir homes\n"
18864 " virt-copy-out -d MyGuest /home homes\n"
18865 "\n"
18866 msgstr ""
18867
18868 #. type: textblock
18869 #: ../fish/virt-copy-out.pod:30
18870 msgid ""
18871 "This command is just a simple shell script wrapper around the L<guestfish(1)"
18872 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
18873 "are probably better off using guestfish directly."
18874 msgstr ""
18875
18876 #. type: textblock
18877 #: ../fish/virt-copy-out.pod:41
18878 msgid ""
18879 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
18880 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
18881 msgstr ""
18882
18883 #. type: textblock
18884 #: ../fish/virt-tar-in.pod:5
18885 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
18886 msgstr ""
18887
18888 #. type: verbatim
18889 #: ../fish/virt-tar-in.pod:9
18890 #, no-wrap
18891 msgid ""
18892 " virt-tar-in -a disk.img data.tar /destination\n"
18893 "\n"
18894 msgstr ""
18895
18896 #. type: verbatim
18897 #: ../fish/virt-tar-in.pod:11
18898 #, no-wrap
18899 msgid ""
18900 " virt-tar-in -d domain data.tar /destination\n"
18901 "\n"
18902 msgstr ""
18903
18904 #. type: verbatim
18905 #: ../fish/virt-tar-in.pod:13
18906 #, no-wrap
18907 msgid ""
18908 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
18909 "\n"
18910 msgstr ""
18911
18912 #. type: textblock
18913 #: ../fish/virt-tar-in.pod:17
18914 msgid ""
18915 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
18916 "causing disk corruption.  The virtual machine must be shut down before you "
18917 "use this command."
18918 msgstr ""
18919
18920 #. type: textblock
18921 #: ../fish/virt-tar-in.pod:23
18922 msgid ""
18923 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
18924 "image or named libvirt domain."
18925 msgstr ""
18926
18927 #. type: textblock
18928 #: ../fish/virt-tar-in.pod:26
18929 msgid ""
18930 "The first parameter is the tar file.  Use C<-> to read the tar file from "
18931 "standard input.  The second parameter is the absolute target directory to "
18932 "unpack into."
18933 msgstr ""
18934
18935 #. type: verbatim
18936 #: ../fish/virt-tar-in.pod:34
18937 #, no-wrap
18938 msgid ""
18939 " virt-tar-in -d MyGuest homes.tar /home\n"
18940 "\n"
18941 msgstr ""
18942
18943 #. type: textblock
18944 #: ../fish/virt-tar-in.pod:38
18945 msgid ""
18946 "This command is just a simple shell script wrapper around the L<guestfish(1)"
18947 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
18948 "probably better off using guestfish directly."
18949 msgstr ""
18950
18951 #. type: textblock
18952 #: ../fish/virt-tar-in.pod:49
18953 msgid ""
18954 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
18955 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
18956 "org/>."
18957 msgstr ""
18958
18959 #. type: textblock
18960 #: ../fish/virt-tar-out.pod:5
18961 msgid ""
18962 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
18963 msgstr ""
18964
18965 #. type: verbatim
18966 #: ../fish/virt-tar-out.pod:9
18967 #, no-wrap
18968 msgid ""
18969 " virt-tar-out -a disk.img /dir files.tar\n"
18970 "\n"
18971 msgstr ""
18972
18973 #. type: verbatim
18974 #: ../fish/virt-tar-out.pod:11
18975 #, no-wrap
18976 msgid ""
18977 " virt-tar-out -d domain /dir files.tar\n"
18978 "\n"
18979 msgstr ""
18980
18981 #. type: verbatim
18982 #: ../fish/virt-tar-out.pod:13
18983 #, no-wrap
18984 msgid ""
18985 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
18986 "\n"
18987 msgstr ""
18988
18989 #. type: textblock
18990 #: ../fish/virt-tar-out.pod:17
18991 msgid ""
18992 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
18993 msgstr ""
18994
18995 #. type: textblock
18996 #: ../fish/virt-tar-out.pod:20
18997 msgid ""
18998 "The first parameter is the absolute path of the virtual machine directory.  "
18999 "The second parameter is the tar file to write.  Use C<-> to write to "
19000 "standard output."
19001 msgstr ""
19002
19003 #. type: textblock
19004 #: ../fish/virt-tar-out.pod:26
19005 msgid "Download the home directories from a guest:"
19006 msgstr ""
19007
19008 #. type: verbatim
19009 #: ../fish/virt-tar-out.pod:28
19010 #, no-wrap
19011 msgid ""
19012 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
19013 "\n"
19014 msgstr ""
19015
19016 #. type: textblock
19017 #: ../fish/virt-tar-out.pod:32
19018 msgid ""
19019 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19020 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
19021 "are probably better off using guestfish directly."
19022 msgstr ""
19023
19024 #. type: textblock
19025 #: ../fish/virt-tar-out.pod:43
19026 msgid ""
19027 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19028 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
19029 msgstr ""
19030
19031 #. type: textblock
19032 #: ../fuse/guestmount.pod:5
19033 msgid ""
19034 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
19035 msgstr ""
19036
19037 #. type: verbatim
19038 #: ../fuse/guestmount.pod:9
19039 #, no-wrap
19040 msgid ""
19041 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
19042 "\n"
19043 msgstr ""
19044
19045 #. type: verbatim
19046 #: ../fuse/guestmount.pod:11
19047 #, no-wrap
19048 msgid ""
19049 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
19050 "\n"
19051 msgstr ""
19052
19053 #. type: verbatim
19054 #: ../fuse/guestmount.pod:13
19055 #, no-wrap
19056 msgid ""
19057 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
19058 "\n"
19059 msgstr ""
19060
19061 #. type: textblock
19062 #: ../fuse/guestmount.pod:17
19063 msgid ""
19064 "You must I<not> use C<guestmount> in read-write mode on live virtual "
19065 "machines.  If you do this, you risk disk corruption in the VM."
19066 msgstr ""
19067
19068 #. type: textblock
19069 #: ../fuse/guestmount.pod:22
19070 msgid ""
19071 "The guestmount program can be used to mount virtual machine filesystems and "
19072 "other disk images on the host.  It uses libguestfs for access to the guest "
19073 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
19074 "a mountable device."
19075 msgstr ""
19076
19077 #. type: textblock
19078 #: ../fuse/guestmount.pod:27
19079 msgid ""
19080 "Along with other options, you have to give at least one device (I<-a> "
19081 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
19082 "option) or use the I<-i> inspection option.  How this works is better "
19083 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
19084 "below."
19085 msgstr ""
19086
19087 #. type: textblock
19088 #: ../fuse/guestmount.pod:33
19089 msgid ""
19090 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
19091 "by you, and the filesystem will not be visible to any other users unless you "
19092 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
19093 "the filesystem, use the C<fusermount -u> command."
19094 msgstr ""
19095
19096 #. type: textblock
19097 #: ../fuse/guestmount.pod:41
19098 msgid ""
19099 "For a typical Windows guest which has its main filesystem on the first "
19100 "partition:"
19101 msgstr ""
19102
19103 #. type: verbatim
19104 #: ../fuse/guestmount.pod:44
19105 #, no-wrap
19106 msgid ""
19107 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
19108 "\n"
19109 msgstr ""
19110
19111 #. type: textblock
19112 #: ../fuse/guestmount.pod:46
19113 msgid ""
19114 "For a typical Linux guest which has a /boot filesystem on the first "
19115 "partition, and the root filesystem on a logical volume:"
19116 msgstr ""
19117
19118 #. type: verbatim
19119 #: ../fuse/guestmount.pod:49
19120 #, no-wrap
19121 msgid ""
19122 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
19123 "\n"
19124 msgstr ""
19125
19126 #. type: textblock
19127 #: ../fuse/guestmount.pod:51
19128 msgid "To get libguestfs to detect guest mountpoints for you:"
19129 msgstr ""
19130
19131 #. type: verbatim
19132 #: ../fuse/guestmount.pod:53
19133 #, no-wrap
19134 msgid ""
19135 " guestmount -a guest.img -i --ro /mnt\n"
19136 "\n"
19137 msgstr ""
19138
19139 #. type: textblock
19140 #: ../fuse/guestmount.pod:55
19141 msgid "For a libvirt guest called \"Guest\" you could do:"
19142 msgstr ""
19143
19144 #. type: verbatim
19145 #: ../fuse/guestmount.pod:57
19146 #, no-wrap
19147 msgid ""
19148 " guestmount -d Guest -i --ro /mnt\n"
19149 "\n"
19150 msgstr ""
19151
19152 #. type: textblock
19153 #: ../fuse/guestmount.pod:59
19154 msgid ""
19155 "If you don't know what filesystems are contained in a guest or disk image, "
19156 "use L<virt-filesystems(1)> first:"
19157 msgstr ""
19158
19159 #. type: verbatim
19160 #: ../fuse/guestmount.pod:62
19161 #, no-wrap
19162 msgid ""
19163 " virt-filesystems MyGuest\n"
19164 "\n"
19165 msgstr ""
19166
19167 #. type: textblock
19168 #: ../fuse/guestmount.pod:64
19169 msgid ""
19170 "If you want to trace the libguestfs calls but without excessive debugging "
19171 "information, we recommend:"
19172 msgstr ""
19173
19174 #. type: verbatim
19175 #: ../fuse/guestmount.pod:67
19176 #, no-wrap
19177 msgid ""
19178 " guestmount [...] --trace /mnt\n"
19179 "\n"
19180 msgstr ""
19181
19182 #. type: textblock
19183 #: ../fuse/guestmount.pod:69
19184 msgid "If you want to debug the program, we recommend:"
19185 msgstr ""
19186
19187 #. type: verbatim
19188 #: ../fuse/guestmount.pod:71
19189 #, no-wrap
19190 msgid ""
19191 " guestmount [...] --trace --verbose /mnt\n"
19192 "\n"
19193 msgstr ""
19194
19195 #. type: =head1
19196 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
19197 #: ../resize/virt-resize.pod:544
19198 msgid "NOTES"
19199 msgstr ""
19200
19201 #. type: =head2
19202 #: ../fuse/guestmount.pod:75
19203 msgid "Other users cannot see the filesystem by default"
19204 msgstr ""
19205
19206 #. type: textblock
19207 #: ../fuse/guestmount.pod:77
19208 msgid ""
19209 "If you mount a filesystem as one user (eg. root), then other users will not "
19210 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
19211 "option when mounting:"
19212 msgstr ""
19213
19214 #. type: verbatim
19215 #: ../fuse/guestmount.pod:81
19216 #, no-wrap
19217 msgid ""
19218 " sudo guestmount [...] -o allow_other /mnt\n"
19219 "\n"
19220 msgstr ""
19221
19222 #. type: textblock
19223 #: ../fuse/guestmount.pod:91
19224 msgid "Add a block device or virtual machine image."
19225 msgstr ""
19226
19227 #. type: =item
19228 #: ../fuse/guestmount.pod:114
19229 msgid "B<--dir-cache-timeout N>"
19230 msgstr ""
19231
19232 #. type: textblock
19233 #: ../fuse/guestmount.pod:116
19234 msgid ""
19235 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
19236 "seconds.  The readdir cache [actually, there are several semi-independent "
19237 "caches] is populated after a readdir(2) call with the stat and extended "
19238 "attributes of the files in the directory, in anticipation that they will be "
19239 "requested soon after."
19240 msgstr ""
19241
19242 #. type: textblock
19243 #: ../fuse/guestmount.pod:122
19244 msgid ""
19245 "There is also a different attribute cache implemented by FUSE (see the FUSE "
19246 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
19247 "requests, only cache existing ones."
19248 msgstr ""
19249
19250 #. type: textblock
19251 #: ../fuse/guestmount.pod:142
19252 msgid ""
19253 "If you have untrusted raw-format guest disk images, you should use this "
19254 "option to specify the disk format.  This avoids a possible security problem "
19255 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
19256 "guestfs_add_drive_opts>."
19257 msgstr ""
19258
19259 #. type: =item
19260 #: ../fuse/guestmount.pod:147
19261 msgid "B<--fuse-help>"
19262 msgstr ""
19263
19264 #. type: textblock
19265 #: ../fuse/guestmount.pod:149
19266 msgid "Display help on special FUSE options (see I<-o> below)."
19267 msgstr ""
19268
19269 #. type: textblock
19270 #: ../fuse/guestmount.pod:153
19271 msgid "Display brief help and exit."
19272 msgstr ""
19273
19274 #. type: textblock
19275 #: ../fuse/guestmount.pod:177
19276 msgid ""
19277 "Mount the named partition or logical volume on the given mountpoint B<in the "
19278 "guest> (this has nothing to do with mountpoints in the host)."
19279 msgstr ""
19280
19281 #. type: textblock
19282 #: ../fuse/guestmount.pod:180
19283 msgid ""
19284 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
19285 "something on C</>."
19286 msgstr ""
19287
19288 #. type: textblock
19289 #: ../fuse/guestmount.pod:197
19290 msgid ""
19291 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
19292 "unmounted.  If you specify this option, then we don't attempt to sync the "
19293 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
19294 msgstr ""
19295
19296 #. type: =item
19297 #: ../fuse/guestmount.pod:202
19298 msgid "B<-o option>"
19299 msgstr ""
19300
19301 #. type: =item
19302 #: ../fuse/guestmount.pod:204
19303 msgid "B<--option option>"
19304 msgstr ""
19305
19306 #. type: textblock
19307 #: ../fuse/guestmount.pod:206
19308 msgid "Pass extra options to FUSE."
19309 msgstr ""
19310
19311 #. type: textblock
19312 #: ../fuse/guestmount.pod:208
19313 msgid ""
19314 "To get a list of all the extra options supported by FUSE, use the command "
19315 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
19316 "of them are a good idea."
19317 msgstr ""
19318
19319 #. type: verbatim
19320 #: ../fuse/guestmount.pod:212
19321 #, no-wrap
19322 msgid ""
19323 " guestmount --fuse-help\n"
19324 "\n"
19325 msgstr ""
19326
19327 #. type: textblock
19328 #: ../fuse/guestmount.pod:214
19329 msgid "Some potentially useful FUSE options:"
19330 msgstr ""
19331
19332 #. type: =item
19333 #: ../fuse/guestmount.pod:218
19334 msgid "B<-o allow_other>"
19335 msgstr ""
19336
19337 #. type: textblock
19338 #: ../fuse/guestmount.pod:220
19339 msgid "Allow other users to see the filesystem."
19340 msgstr ""
19341
19342 #. type: =item
19343 #: ../fuse/guestmount.pod:222
19344 msgid "B<-o attr_timeout=N>"
19345 msgstr ""
19346
19347 #. type: textblock
19348 #: ../fuse/guestmount.pod:224
19349 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
19350 msgstr ""
19351
19352 #. type: =item
19353 #: ../fuse/guestmount.pod:226
19354 msgid "B<-o kernel_cache>"
19355 msgstr ""
19356
19357 #. type: textblock
19358 #: ../fuse/guestmount.pod:228
19359 msgid ""
19360 "Allow the kernel to cache files (reduces the number of reads that have to go "
19361 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
19362 "afford the extra memory usage."
19363 msgstr ""
19364
19365 #. type: =item
19366 #: ../fuse/guestmount.pod:232
19367 msgid "B<-o uid=N> B<-o gid=N>"
19368 msgstr ""
19369
19370 #. type: textblock
19371 #: ../fuse/guestmount.pod:234
19372 msgid ""
19373 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
19374 "the chosen values."
19375 msgstr ""
19376
19377 #. type: textblock
19378 #: ../fuse/guestmount.pod:243
19379 msgid ""
19380 "Add devices and mount everything read-only.  Also disallow writes and make "
19381 "the disk appear read-only to FUSE."
19382 msgstr ""
19383
19384 #. type: textblock
19385 #: ../fuse/guestmount.pod:246
19386 msgid ""
19387 "This is highly recommended if you are not going to edit the guest disk.  If "
19388 "the guest is running and this option is I<not> supplied, then there is a "
19389 "strong risk of disk corruption in the guest.  We try to prevent this from "
19390 "happening, but it is not always possible."
19391 msgstr ""
19392
19393 #. type: textblock
19394 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
19395 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
19396 msgstr ""
19397
19398 #. type: textblock
19399 #: ../fuse/guestmount.pod:255
19400 msgid "Enable SELinux support for the guest."
19401 msgstr ""
19402
19403 #. type: textblock
19404 #: ../fuse/guestmount.pod:261
19405 msgid "Enable verbose messages from underlying libguestfs."
19406 msgstr ""
19407
19408 #. type: textblock
19409 #: ../fuse/guestmount.pod:267
19410 msgid "Display the program version and exit."
19411 msgstr ""
19412
19413 #. type: textblock
19414 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299
19415 #: ../rescue/virt-rescue.pod:197 ../rescue/virt-rescue.pod:280
19416 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
19417 msgstr ""
19418
19419 #. type: =item
19420 #: ../fuse/guestmount.pod:280
19421 msgid "B<--trace>"
19422 msgstr ""
19423
19424 #. type: textblock
19425 #: ../fuse/guestmount.pod:282
19426 msgid "Trace libguestfs calls and entry into each FUSE function."
19427 msgstr ""
19428
19429 #. type: textblock
19430 #: ../fuse/guestmount.pod:284
19431 msgid "This also stops the daemon from forking into the background."
19432 msgstr ""
19433
19434 #. type: textblock
19435 #: ../fuse/guestmount.pod:310
19436 msgid ""
19437 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
19438 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
19439 "net/>."
19440 msgstr ""
19441
19442 #. type: textblock
19443 #: ../fuse/guestmount.pod:325
19444 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
19445 msgstr ""
19446
19447 #. type: textblock
19448 #: ../inspector/virt-inspector.pod:5
19449 msgid ""
19450 "virt-inspector - Display operating system version and other information "
19451 "about a virtual machine"
19452 msgstr ""
19453
19454 #. type: verbatim
19455 #: ../inspector/virt-inspector.pod:9
19456 #, no-wrap
19457 msgid ""
19458 " virt-inspector [--options] -d domname\n"
19459 "\n"
19460 msgstr ""
19461
19462 #. type: verbatim
19463 #: ../inspector/virt-inspector.pod:11
19464 #, no-wrap
19465 msgid ""
19466 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
19467 "\n"
19468 msgstr ""
19469
19470 #. type: verbatim
19471 #: ../inspector/virt-inspector.pod:15
19472 #, no-wrap
19473 msgid ""
19474 " virt-inspector domname\n"
19475 "\n"
19476 msgstr ""
19477
19478 #. type: verbatim
19479 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
19480 #, no-wrap
19481 msgid ""
19482 " virt-inspector disk.img [disk.img ...]\n"
19483 "\n"
19484 msgstr ""
19485
19486 #. type: textblock
19487 #: ../inspector/virt-inspector.pod:21
19488 msgid ""
19489 "B<virt-inspector> examines a virtual machine or disk image and tries to "
19490 "determine the version of the operating system and other information about "
19491 "the virtual machine."
19492 msgstr ""
19493
19494 #. type: textblock
19495 #: ../inspector/virt-inspector.pod:25
19496 msgid "Virt-inspector produces XML output for feeding into other programs."
19497 msgstr ""
19498
19499 #. type: textblock
19500 #: ../inspector/virt-inspector.pod:27
19501 msgid ""
19502 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
19503 "the libvirt domain (see: C<virsh list --all>)."
19504 msgstr ""
19505
19506 #. type: textblock
19507 #: ../inspector/virt-inspector.pod:30
19508 msgid ""
19509 "You can also run virt-inspector directly on disk images from a single "
19510 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
19511 "has several block devices, in which case you should list several I<-a> "
19512 "options one after another, with the first corresponding to the guest's C</"
19513 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
19514 msgstr ""
19515
19516 #. type: textblock
19517 #: ../inspector/virt-inspector.pod:37
19518 msgid ""
19519 "You can also run virt-inspector on install disks, live CDs, bootable USB "
19520 "keys and similar."
19521 msgstr ""
19522
19523 #. type: textblock
19524 #: ../inspector/virt-inspector.pod:40
19525 msgid ""
19526 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
19527 "inspect several virtual machines, you have to run virt-inspector several "
19528 "times (for example, from a shell script for-loop)."
19529 msgstr ""
19530
19531 #. type: textblock
19532 #: ../inspector/virt-inspector.pod:45
19533 msgid ""
19534 "Because virt-inspector needs direct access to guest images, it won't "
19535 "normally work over remote libvirt connections."
19536 msgstr ""
19537
19538 #. type: textblock
19539 #: ../inspector/virt-inspector.pod:48
19540 msgid ""
19541 "All of the information available from virt-inspector is also available "
19542 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
19543 "The same information can also be fetched using guestfish or via libguestfs "
19544 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
19545 "WITH OTHER PROGRAMMING LANGUAGES>)."
19546 msgstr ""
19547
19548 #. type: textblock
19549 #: ../inspector/virt-inspector.pod:81
19550 msgid ""
19551 "Libvirt is only used if you specify a C<domname> on the command line.  If "
19552 "you specify guest block devices directly (I<-a>), then libvirt is not used "
19553 "at all."
19554 msgstr ""
19555
19556 #. type: textblock
19557 #: ../inspector/virt-inspector.pod:94
19558 msgid ""
19559 "When prompting for keys and passphrases, virt-inspector normally turns "
19560 "echoing off so you cannot see what you are typing.  If you are not worried "
19561 "about Tempest attacks and there is no one else in the room you can specify "
19562 "this flag to see what you are typing."
19563 msgstr ""
19564
19565 #. type: textblock
19566 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
19567 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
19568 #: ../tools/virt-win-reg.pl:144
19569 msgid ""
19570 "Specify the format of disk images given on the command line.  If this is "
19571 "omitted then the format is autodetected from the content of the disk image."
19572 msgstr ""
19573
19574 #. type: textblock
19575 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
19576 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
19577 #: ../tools/virt-win-reg.pl:148
19578 msgid ""
19579 "If disk images are requested from libvirt, then this program asks libvirt "
19580 "for this information.  In this case, the value of the format parameter is "
19581 "ignored."
19582 msgstr ""
19583
19584 #. type: textblock
19585 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
19586 #: ../resize/virt-resize.pod:406 ../tools/virt-list-filesystems.pl:101
19587 #: ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151
19588 #: ../tools/virt-win-reg.pl:152
19589 msgid ""
19590 "If working with untrusted raw-format guest disk images, you should ensure "
19591 "the format is always specified."
19592 msgstr ""
19593
19594 #. type: textblock
19595 #: ../inspector/virt-inspector.pod:139
19596 msgid "Previous versions of virt-inspector allowed you to write either:"
19597 msgstr ""
19598
19599 #. type: verbatim
19600 #: ../inspector/virt-inspector.pod:145
19601 #, no-wrap
19602 msgid ""
19603 " virt-inspector guestname\n"
19604 "\n"
19605 msgstr ""
19606
19607 #. type: =head1
19608 #: ../inspector/virt-inspector.pod:153
19609 msgid "XML FORMAT"
19610 msgstr ""
19611
19612 #. type: textblock
19613 #: ../inspector/virt-inspector.pod:155
19614 msgid ""
19615 "The virt-inspector XML is described precisely in a RELAX NG schema file "
19616 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
19617 "just an overview."
19618 msgstr ""
19619
19620 #. type: textblock
19621 #: ../inspector/virt-inspector.pod:159
19622 msgid ""
19623 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
19624 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
19625 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
19626 "which is vanishingly rare in real world VMs."
19627 msgstr ""
19628
19629 #. type: =head2
19630 #: ../inspector/virt-inspector.pod:164
19631 msgid "E<lt>operatingsystemE<gt>"
19632 msgstr ""
19633
19634 #. type: textblock
19635 #: ../inspector/virt-inspector.pod:166
19636 msgid ""
19637 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
19638 "describe the operating system, its architecture, the descriptive \"product "
19639 "name\" string, the type of OS and so on, as in this example:"
19640 msgstr ""
19641
19642 #. type: verbatim
19643 #: ../inspector/virt-inspector.pod:170
19644 #, no-wrap
19645 msgid ""
19646 " <operatingsystems>\n"
19647 "   <operatingsystem>\n"
19648 "     <root>/dev/sda2</root>\n"
19649 "     <name>windows</name>\n"
19650 "     <arch>i386</arch>\n"
19651 "     <distro>windows</distro>\n"
19652 "     <product_name>Windows 7 Enterprise</product_name>\n"
19653 "     <product_variant>Client</product_variant>\n"
19654 "     <major_version>6</major_version>\n"
19655 "     <minor_version>1</minor_version>\n"
19656 "     <windows_systemroot>/Windows</windows_systemroot>\n"
19657 "     <format>installed</format>\n"
19658 "\n"
19659 msgstr ""
19660
19661 #. type: textblock
19662 #: ../inspector/virt-inspector.pod:183
19663 msgid ""
19664 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
19665 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
19666 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
19667 "architecture.  The other fields are fairly self-explanatory, but because "
19668 "these fields are taken directly from the libguestfs inspection API you can "
19669 "find precise information from L<guestfs(3)/INSPECTION>."
19670 msgstr ""
19671
19672 #. type: textblock
19673 #: ../inspector/virt-inspector.pod:191
19674 msgid ""
19675 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
19676 "of view of libguestfs (block devices may have completely different names "
19677 "inside the VM itself)."
19678 msgstr ""
19679
19680 #. type: =head2
19681 #: ../inspector/virt-inspector.pod:195
19682 msgid "E<lt>mountpointsE<gt>"
19683 msgstr ""
19684
19685 #. type: textblock
19686 #: ../inspector/virt-inspector.pod:197
19687 msgid ""
19688 "Un*x-like guests typically have multiple filesystems which are mounted at "
19689 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
19690 "element which looks like this:"
19691 msgstr ""
19692
19693 #. type: verbatim
19694 #: ../inspector/virt-inspector.pod:201
19695 #, no-wrap
19696 msgid ""
19697 " <operatingsystems>\n"
19698 "   <operatingsystem>\n"
19699 "     ...\n"
19700 "     <mountpoints>\n"
19701 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
19702 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
19703 "     </mountpoints>\n"
19704 "\n"
19705 msgstr ""
19706
19707 #. type: textblock
19708 #: ../inspector/virt-inspector.pod:209
19709 msgid ""
19710 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
19711 "and may have completely different names inside the guest.  Only mountable "
19712 "filesystems appear in this list, not things like swap devices."
19713 msgstr ""
19714
19715 #. type: =head2
19716 #: ../inspector/virt-inspector.pod:214
19717 msgid "E<lt>filesystemsE<gt>"
19718 msgstr ""
19719
19720 #. type: textblock
19721 #: ../inspector/virt-inspector.pod:216
19722 msgid ""
19723 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
19724 "filesystems belonging to the guest, including swap and empty partitions.  "
19725 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
19726 "this OS or shared with this OS and other OSes)."
19727 msgstr ""
19728
19729 #. type: textblock
19730 #: ../inspector/virt-inspector.pod:222
19731 msgid "You might see something like this:"
19732 msgstr ""
19733
19734 #. type: verbatim
19735 #: ../inspector/virt-inspector.pod:224
19736 #, no-wrap
19737 msgid ""
19738 " <operatingsystems>\n"
19739 "   <operatingsystem>\n"
19740 "     ...\n"
19741 "     <filesystems>\n"
19742 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
19743 "         <type>ext4</type>\n"
19744 "         <label>Fedora-13-x86_64</label>\n"
19745 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
19746 "       </filesystem>\n"
19747 "\n"
19748 msgstr ""
19749
19750 #. type: textblock
19751 #: ../inspector/virt-inspector.pod:234
19752 msgid ""
19753 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
19754 "the label, and the UUID."
19755 msgstr ""
19756
19757 #. type: =head2
19758 #: ../inspector/virt-inspector.pod:237
19759 msgid "E<lt>applicationsE<gt>"
19760 msgstr ""
19761
19762 #. type: textblock
19763 #: ../inspector/virt-inspector.pod:239
19764 msgid ""
19765 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
19766 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
19767 "machine."
19768 msgstr ""
19769
19770 #. type: textblock
19771 #: ../inspector/virt-inspector.pod:243
19772 msgid ""
19773 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
19774 "Typical values would be C<rpm> and C<deb>."
19775 msgstr ""
19776
19777 #. type: textblock
19778 #: ../inspector/virt-inspector.pod:246
19779 msgid ""
19780 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
19781 "Typical values include C<yum>, C<up2date> and C<apt>"
19782 msgstr ""
19783
19784 #. type: textblock
19785 #: ../inspector/virt-inspector.pod:249
19786 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
19787 msgstr ""
19788
19789 #. type: verbatim
19790 #: ../inspector/virt-inspector.pod:252
19791 #, no-wrap
19792 msgid ""
19793 " <operatingsystems>\n"
19794 "   <operatingsystem>\n"
19795 "     ...\n"
19796 "     <applications>\n"
19797 "       <application>\n"
19798 "         <name>coreutils</name>\n"
19799 "         <version>8.5</version>\n"
19800 "         <release>1</release>\n"
19801 "       </application>\n"
19802 "\n"
19803 msgstr ""
19804
19805 #. type: textblock
19806 #: ../inspector/virt-inspector.pod:262
19807 msgid ""
19808 "The version and release fields may not be available for some types guests.  "
19809 "Other fields are possible, see L<guestfs(3)/"
19810 "guestfs_inspect_list_applications>."
19811 msgstr ""
19812
19813 #. type: =head2
19814 #: ../inspector/virt-inspector.pod:266
19815 msgid "E<lt>drive_mappingsE<gt>"
19816 msgstr ""
19817
19818 #. type: textblock
19819 #: ../inspector/virt-inspector.pod:268
19820 msgid ""
19821 "For operating systems like Windows which use drive letters, virt-inspector "
19822 "is able to find out how drive letters map to filesystems."
19823 msgstr ""
19824
19825 #. type: verbatim
19826 #: ../inspector/virt-inspector.pod:272
19827 #, no-wrap
19828 msgid ""
19829 " <operatingsystems>\n"
19830 "   <operatingsystem>\n"
19831 "     ...\n"
19832 "     <drive_mappings>\n"
19833 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
19834 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
19835 "     </drive_mappings>\n"
19836 "\n"
19837 msgstr ""
19838
19839 #. type: textblock
19840 #: ../inspector/virt-inspector.pod:280
19841 msgid ""
19842 "In the example above, drive C maps to the filesystem on the second partition "
19843 "on the first disk, and drive E maps to the filesystem on the first partition "
19844 "on the second disk."
19845 msgstr ""
19846
19847 #. type: textblock
19848 #: ../inspector/virt-inspector.pod:284
19849 msgid ""
19850 "Note that this only covers permanent local filesystem mappings, not things "
19851 "like network shares.  Furthermore NTFS volume mount points may not be listed "
19852 "here."
19853 msgstr ""
19854
19855 #. type: =head2
19856 #: ../inspector/virt-inspector.pod:288
19857 msgid "E<lt>iconE<gt>"
19858 msgstr ""
19859
19860 #. type: textblock
19861 #: ../inspector/virt-inspector.pod:290
19862 msgid ""
19863 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
19864 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
19865 "very large and high quality."
19866 msgstr ""
19867
19868 #. type: verbatim
19869 #: ../inspector/virt-inspector.pod:294
19870 #, no-wrap
19871 msgid ""
19872 " <operatingsystems>\n"
19873 "   <operatingsystem>\n"
19874 "     ...\n"
19875 "     <icon>\n"
19876 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
19877 "       [... many lines of base64 data ...]\n"
19878 "     </icon>\n"
19879 "\n"
19880 msgstr ""
19881
19882 #. type: textblock
19883 #: ../inspector/virt-inspector.pod:302
19884 msgid ""
19885 "To display the icon, you have to extract it and convert the base64 data back "
19886 "to a binary file.  Use an XPath query or simply an editor to extract the "
19887 "data, then use the coreutils L<base64(1)> program to do the conversion back "
19888 "to a PNG file:"
19889 msgstr ""
19890
19891 #. type: verbatim
19892 #: ../inspector/virt-inspector.pod:307
19893 #, no-wrap
19894 msgid ""
19895 " base64 -i -d < icon.data > icon.png\n"
19896 "\n"
19897 msgstr ""
19898
19899 #. type: =head2
19900 #: ../inspector/virt-inspector.pod:309
19901 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
19902 msgstr ""
19903
19904 #. type: textblock
19905 #: ../inspector/virt-inspector.pod:311
19906 msgid ""
19907 "Virt-inspector can detect some operating system installers on install disks, "
19908 "live CDs, bootable USB keys and more."
19909 msgstr ""
19910
19911 #. type: textblock
19912 #: ../inspector/virt-inspector.pod:314
19913 msgid ""
19914 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
19915 "fields may be present to indicate a live CD, network installer, or one part "
19916 "of a multipart CD.  For example:"
19917 msgstr ""
19918
19919 #. type: verbatim
19920 #: ../inspector/virt-inspector.pod:318
19921 #, no-wrap
19922 msgid ""
19923 " <operatingsystems>\n"
19924 "   <operatingsystem>\n"
19925 "     <root>/dev/sda</root>\n"
19926 "     <name>linux</name>\n"
19927 "     <arch>i386</arch>\n"
19928 "     <distro>ubuntu</distro>\n"
19929 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
19930 "     <major_version>10</major_version>\n"
19931 "     <minor_version>10</minor_version>\n"
19932 "     <format>installer</format>\n"
19933 "     <live/>\n"
19934 "\n"
19935 msgstr ""
19936
19937 #. type: =head1
19938 #: ../inspector/virt-inspector.pod:330
19939 msgid "USING XPATH"
19940 msgstr ""
19941
19942 #. type: textblock
19943 #: ../inspector/virt-inspector.pod:332
19944 msgid ""
19945 "You can use the XPath query language to select parts of the XML.  We "
19946 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
19947 msgstr ""
19948
19949 #. type: verbatim
19950 #: ../inspector/virt-inspector.pod:338
19951 #, no-wrap
19952 msgid ""
19953 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
19954 " <filesystems>\n"
19955 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
19956 "        <type>ext4</type>\n"
19957 " [...]\n"
19958 "\n"
19959 msgstr ""
19960
19961 #. type: verbatim
19962 #: ../inspector/virt-inspector.pod:344
19963 #, no-wrap
19964 msgid ""
19965 " $ virt-inspector -d Guest | \\\n"
19966 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
19967 " ext4\n"
19968 "\n"
19969 msgstr ""
19970
19971 #. type: verbatim
19972 #: ../inspector/virt-inspector.pod:348
19973 #, no-wrap
19974 msgid ""
19975 " $ virt-inspector -d Guest | \\\n"
19976 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
19977 " [displays the guest icon, if there is one]\n"
19978 "\n"
19979 msgstr ""
19980
19981 #. type: =head1
19982 #: ../inspector/virt-inspector.pod:359
19983 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
19984 msgstr ""
19985
19986 #. type: textblock
19987 #: ../inspector/virt-inspector.pod:361
19988 msgid ""
19989 "Early versions of libguestfs shipped with a different virt-inspector program "
19990 "written in Perl (the current version is written in C).  The XML output of "
19991 "the Perl virt-inspector was different and it could also output in other "
19992 "formats like text."
19993 msgstr ""
19994
19995 #. type: textblock
19996 #: ../inspector/virt-inspector.pod:366
19997 msgid ""
19998 "The old virt-inspector is no longer supported or shipped with libguestfs."
19999 msgstr ""
20000
20001 #. type: textblock
20002 #: ../inspector/virt-inspector.pod:369
20003 msgid ""
20004 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
20005 "versions of virt-inspector with different names:"
20006 msgstr ""
20007
20008 #. type: verbatim
20009 #: ../inspector/virt-inspector.pod:372
20010 #, no-wrap
20011 msgid ""
20012 " virt-inspector     Old Perl version.\n"
20013 " virt-inspector2    New C version.\n"
20014 "\n"
20015 msgstr ""
20016
20017 #. type: textblock
20018 #: ../inspector/virt-inspector.pod:382
20019 msgid ""
20020 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
20021 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
20022 msgstr ""
20023
20024 #. type: textblock
20025 #: ../inspector/virt-inspector.pod:399
20026 msgid "Matthew Booth L<mbooth@redhat.com>"
20027 msgstr ""
20028
20029 #. type: textblock
20030 #: ../java/examples/guestfs-java.pod:5
20031 msgid "guestfs-java - How to use libguestfs from Java"
20032 msgstr ""
20033
20034 #. type: verbatim
20035 #: ../java/examples/guestfs-java.pod:9
20036 #, no-wrap
20037 msgid ""
20038 " import com.redhat.et.libguestfs.*;\n"
20039 " \n"
20040 msgstr ""
20041
20042 #. type: verbatim
20043 #: ../java/examples/guestfs-java.pod:11
20044 #, no-wrap
20045 msgid ""
20046 " GuestFS g = new GuestFS ();\n"
20047 " g.add_drive_opts (\"disk.img\", null);\n"
20048 " g.launch ();\n"
20049 "\n"
20050 msgstr ""
20051
20052 #. type: textblock
20053 #: ../java/examples/guestfs-java.pod:17
20054 msgid ""
20055 "This manual page documents how to call libguestfs from the Java programming "
20056 "language.  This page just documents the differences from the C API and gives "
20057 "some examples.  If you are not familiar with using libguestfs, you also need "
20058 "to read L<guestfs(3)>."
20059 msgstr ""
20060
20061 #. type: =head2
20062 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
20063 msgid "CLOSING THE HANDLE"
20064 msgstr ""
20065
20066 #. type: textblock
20067 #: ../java/examples/guestfs-java.pod:24
20068 msgid ""
20069 "The handle is closed when it is reaped by the garbage collector.  Because "
20070 "libguestfs handles include a lot of state, it is also possible to close (and "
20071 "hence free) them explicitly by calling the C<close> method."
20072 msgstr ""
20073
20074 #. type: =head2
20075 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
20076 #: ../python/examples/guestfs-python.pod:21
20077 #: ../ruby/examples/guestfs-ruby.pod:22
20078 msgid "EXCEPTIONS"
20079 msgstr ""
20080
20081 #. type: textblock
20082 #: ../java/examples/guestfs-java.pod:31
20083 msgid ""
20084 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
20085 "exception.  This has a single parameter which is the error message (a "
20086 "C<String>)."
20087 msgstr ""
20088
20089 #. type: textblock
20090 #: ../java/examples/guestfs-java.pod:35
20091 msgid "Calling any method on a closed handle raises the same exception."
20092 msgstr ""
20093
20094 #. type: textblock
20095 #: ../java/examples/guestfs-java.pod:47
20096 msgid ""
20097 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)"
20098 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
20099 "libguestfs.org/>, L<http://caml.inria.fr/>."
20100 msgstr ""
20101
20102 #. type: textblock
20103 #: ../java/examples/guestfs-java.pod:63 ../perl/examples/guestfs-perl.pod:57
20104 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
20105 msgstr ""
20106
20107 #. type: textblock
20108 #: ../ocaml/examples/guestfs-ocaml.pod:5
20109 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
20110 msgstr ""
20111
20112 #. type: textblock
20113 #: ../ocaml/examples/guestfs-ocaml.pod:9
20114 msgid "Module style:"
20115 msgstr ""
20116
20117 #. type: verbatim
20118 #: ../ocaml/examples/guestfs-ocaml.pod:11
20119 #, no-wrap
20120 msgid ""
20121 " let g = Guestfs.create () in\n"
20122 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
20123 " Guestfs.launch g;\n"
20124 "\n"
20125 msgstr ""
20126
20127 #. type: textblock
20128 #: ../ocaml/examples/guestfs-ocaml.pod:15
20129 msgid "Object-oriented style:"
20130 msgstr ""
20131
20132 #. type: verbatim
20133 #: ../ocaml/examples/guestfs-ocaml.pod:17
20134 #, no-wrap
20135 msgid ""
20136 " let g = new Guestfs.guestfs () in\n"
20137 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
20138 " g#launch ();\n"
20139 "\n"
20140 msgstr ""
20141
20142 #. type: verbatim
20143 #: ../ocaml/examples/guestfs-ocaml.pod:21
20144 #, no-wrap
20145 msgid ""
20146 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
20147 "or:\n"
20148 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
20149 "\n"
20150 msgstr ""
20151
20152 #. type: textblock
20153 #: ../ocaml/examples/guestfs-ocaml.pod:27
20154 msgid ""
20155 "This manual page documents how to call libguestfs from the OCaml programming "
20156 "language.  This page just documents the differences from the C API and gives "
20157 "some examples.  If you are not familiar with using libguestfs, you also need "
20158 "to read L<guestfs(3)>."
20159 msgstr ""
20160
20161 #. type: =head2
20162 #: ../ocaml/examples/guestfs-ocaml.pod:32
20163 msgid "PROGRAMMING STYLES"
20164 msgstr ""
20165
20166 #. type: textblock
20167 #: ../ocaml/examples/guestfs-ocaml.pod:34
20168 msgid ""
20169 "There are two different programming styles supported by the OCaml bindings.  "
20170 "You can use a module style, with each C function mapped to an OCaml function:"
20171 msgstr ""
20172
20173 #. type: verbatim
20174 #: ../ocaml/examples/guestfs-ocaml.pod:38
20175 #, no-wrap
20176 msgid ""
20177 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
20178 "\n"
20179 msgstr ""
20180
20181 #. type: textblock
20182 #: ../ocaml/examples/guestfs-ocaml.pod:40
20183 msgid "becomes:"
20184 msgstr ""
20185
20186 #. type: verbatim
20187 #: ../ocaml/examples/guestfs-ocaml.pod:42
20188 #, no-wrap
20189 msgid ""
20190 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
20191 "\n"
20192 msgstr ""
20193
20194 #. type: textblock
20195 #: ../ocaml/examples/guestfs-ocaml.pod:44
20196 msgid ""
20197 "Alternately you can use an object-oriented style, calling methods on the "
20198 "class C<Guestfs.guestfs>:"
20199 msgstr ""
20200
20201 #. type: verbatim
20202 #: ../ocaml/examples/guestfs-ocaml.pod:47
20203 #, no-wrap
20204 msgid ""
20205 " method set_verbose : bool -> unit\n"
20206 "\n"
20207 msgstr ""
20208
20209 #. type: textblock
20210 #: ../ocaml/examples/guestfs-ocaml.pod:49
20211 msgid ""
20212 "The object-oriented style is usually briefer, and the minor performance "
20213 "penalty isn't noticable in the general overhead of performing libguestfs "
20214 "functions."
20215 msgstr ""
20216
20217 #. type: textblock
20218 #: ../ocaml/examples/guestfs-ocaml.pod:55
20219 msgid ""
20220 "The handle is closed when it is reaped by the garbage collector.  Because "
20221 "libguestfs handles include a lot of state, it is also possible to close (and "
20222 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
20223 "method."
20224 msgstr ""
20225
20226 #. type: textblock
20227 #: ../ocaml/examples/guestfs-ocaml.pod:62
20228 msgid ""
20229 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
20230 "exception.  This has a single parameter which is the error message (a "
20231 "string)."
20232 msgstr ""
20233
20234 #. type: textblock
20235 #: ../ocaml/examples/guestfs-ocaml.pod:66
20236 msgid ""
20237 "Calling any function/method on a closed handle raises C<Guestfs."
20238 "Handle_closed>.  The single parameter is the name of the function that you "
20239 "called."
20240 msgstr ""
20241
20242 #. type: textblock
20243 #: ../ocaml/examples/guestfs-ocaml.pod:80
20244 msgid ""
20245 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-perl(3)"
20246 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
20247 "libguestfs.org/>, L<http://caml.inria.fr/>."
20248 msgstr ""
20249
20250 #. type: textblock
20251 #: ../perl/examples/guestfs-perl.pod:5
20252 msgid "guestfs-perl - How to use libguestfs from Perl"
20253 msgstr ""
20254
20255 #. type: verbatim
20256 #: ../perl/examples/guestfs-perl.pod:9
20257 #, no-wrap
20258 msgid ""
20259 " use Sys::Guestfs;\n"
20260 " \n"
20261 msgstr ""
20262
20263 #. type: verbatim
20264 #: ../perl/examples/guestfs-perl.pod:11
20265 #, no-wrap
20266 msgid ""
20267 " my $h = Sys::Guestfs->new ();\n"
20268 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
20269 " $h->launch ();\n"
20270 " $h->mount_options ('', '/dev/sda1', '/');\n"
20271 " $h->touch ('/hello');\n"
20272 " $h->sync ();\n"
20273 "\n"
20274 msgstr ""
20275
20276 #. type: textblock
20277 #: ../perl/examples/guestfs-perl.pod:20
20278 msgid ""
20279 "This manual page documents how to call libguestfs from the Perl programming "
20280 "language.  This page just documents the differences from the C API and gives "
20281 "some examples.  If you are not familiar with using libguestfs, you also need "
20282 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
20283 msgstr ""
20284
20285 #. type: =head2
20286 #: ../perl/examples/guestfs-perl.pod:26
20287 msgid "ERRORS"
20288 msgstr ""
20289
20290 #. type: textblock
20291 #: ../perl/examples/guestfs-perl.pod:28
20292 msgid ""
20293 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
20294 ">)."
20295 msgstr ""
20296
20297 #. type: textblock
20298 #: ../perl/examples/guestfs-perl.pod:41
20299 msgid ""
20300 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)"
20301 ">, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
20302 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
20303 msgstr ""
20304
20305 #. type: textblock
20306 #: ../python/examples/guestfs-python.pod:5
20307 msgid "guestfs-python - How to use libguestfs from Python"
20308 msgstr ""
20309
20310 #. type: verbatim
20311 #: ../python/examples/guestfs-python.pod:9
20312 #, no-wrap
20313 msgid ""
20314 " import guestfs\n"
20315 " g = guestfs.GuestFS ()\n"
20316 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
20317 " g.launch\n"
20318 "\n"
20319 msgstr ""
20320
20321 #. type: textblock
20322 #: ../python/examples/guestfs-python.pod:16
20323 msgid ""
20324 "This manual page documents how to call libguestfs from the Python "
20325 "programming language.  This page just documents the differences from the C "
20326 "API and gives some examples.  If you are not familiar with using libguestfs, "
20327 "you also need to read L<guestfs(3)>."
20328 msgstr ""
20329
20330 #. type: textblock
20331 #: ../python/examples/guestfs-python.pod:23
20332 msgid ""
20333 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
20334 "single string argument which is the error message."
20335 msgstr ""
20336
20337 #. type: =head2
20338 #: ../python/examples/guestfs-python.pod:26
20339 msgid "MORE DOCUMENTATION"
20340 msgstr ""
20341
20342 #. type: textblock
20343 #: ../python/examples/guestfs-python.pod:28
20344 msgid "Type:"
20345 msgstr ""
20346
20347 #. type: verbatim
20348 #: ../python/examples/guestfs-python.pod:30
20349 #, no-wrap
20350 msgid ""
20351 " $ python\n"
20352 " >>> import guestfs\n"
20353 " >>> help (guestfs)\n"
20354 "\n"
20355 msgstr ""
20356
20357 #. type: textblock
20358 #: ../python/examples/guestfs-python.pod:44
20359 msgid ""
20360 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
20361 ">, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
20362 "libguestfs.org/>."
20363 msgstr ""
20364
20365 #. type: textblock
20366 #: ../rescue/virt-rescue.pod:5
20367 msgid "virt-rescue - Run a rescue shell on a virtual machine"
20368 msgstr ""
20369
20370 #. type: verbatim
20371 #: ../rescue/virt-rescue.pod:9
20372 #, no-wrap
20373 msgid ""
20374 " virt-rescue [--options] -d domname\n"
20375 "\n"
20376 msgstr ""
20377
20378 #. type: verbatim
20379 #: ../rescue/virt-rescue.pod:11
20380 #, no-wrap
20381 msgid ""
20382 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
20383 "\n"
20384 msgstr ""
20385
20386 #. type: verbatim
20387 #: ../rescue/virt-rescue.pod:15
20388 #, no-wrap
20389 msgid ""
20390 " virt-rescue [--options] domname\n"
20391 "\n"
20392 msgstr ""
20393
20394 #. type: verbatim
20395 #: ../rescue/virt-rescue.pod:17
20396 #, no-wrap
20397 msgid ""
20398 " virt-rescue [--options] disk.img [disk.img ...]\n"
20399 "\n"
20400 msgstr ""
20401
20402 #. type: textblock
20403 #: ../rescue/virt-rescue.pod:21
20404 msgid ""
20405 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
20406 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
20407 "you from doing this, but doesn't catch all cases."
20408 msgstr ""
20409
20410 #. type: textblock
20411 #: ../rescue/virt-rescue.pod:25
20412 msgid ""
20413 "However if you use the I<--ro> (read only) option, then you can attach a "
20414 "shell to a live virtual machine.  The results might be strange or "
20415 "inconsistent at times but you won't get disk corruption."
20416 msgstr ""
20417
20418 #. type: textblock
20419 #: ../rescue/virt-rescue.pod:31
20420 msgid ""
20421 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
20422 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
20423 "recovery tools which you can use to examine or rescue a virtual machine or "
20424 "disk image."
20425 msgstr ""
20426
20427 #. type: textblock
20428 #: ../rescue/virt-rescue.pod:36
20429 msgid ""
20430 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
20431 "on disk image(s):"
20432 msgstr ""
20433
20434 #. type: verbatim
20435 #: ../rescue/virt-rescue.pod:39
20436 #, no-wrap
20437 msgid ""
20438 " virt-rescue -d GuestName\n"
20439 "\n"
20440 msgstr ""
20441
20442 #. type: verbatim
20443 #: ../rescue/virt-rescue.pod:41
20444 #, no-wrap
20445 msgid ""
20446 " virt-rescue --ro -a /path/to/disk.img\n"
20447 "\n"
20448 msgstr ""
20449
20450 #. type: verbatim
20451 #: ../rescue/virt-rescue.pod:43
20452 #, no-wrap
20453 msgid ""
20454 " virt-rescue -a /dev/sdc\n"
20455 "\n"
20456 msgstr ""
20457
20458 #. type: textblock
20459 #: ../rescue/virt-rescue.pod:45
20460 msgid "For live VMs you I<must> use the --ro option."
20461 msgstr ""
20462
20463 #. type: textblock
20464 #: ../rescue/virt-rescue.pod:47
20465 msgid ""
20466 "When you run virt-rescue on a virtual machine or disk image, you are placed "
20467 "in an interactive bash shell where you can use many ordinary Linux "
20468 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
20469 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
20470 "is an empty directory called C</sysroot> where you can mount filesystems."
20471 msgstr ""
20472
20473 #. type: textblock
20474 #: ../rescue/virt-rescue.pod:54
20475 msgid ""
20476 "In the example below, we list logical volumes, then choose one to mount "
20477 "under C</sysroot>:"
20478 msgstr ""
20479
20480 #. type: verbatim
20481 #: ../rescue/virt-rescue.pod:57
20482 #, no-wrap
20483 msgid ""
20484 " ><rescue> lvs\n"
20485 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
20486 " lv_root vg_f11x64 -wi-a-   8.83G\n"
20487 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
20488 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
20489 " ><rescue> ls /sysroot\n"
20490 "\n"
20491 msgstr ""
20492
20493 #. type: textblock
20494 #: ../rescue/virt-rescue.pod:64
20495 msgid ""
20496 "If you don't know what filesystems are available on the virtual machine then "
20497 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
20498 msgstr ""
20499
20500 #. type: textblock
20501 #: ../rescue/virt-rescue.pod:70
20502 msgid ""
20503 "Virt-rescue can be used on I<any> disk image file or device, not just a "
20504 "virtual machine.  For example you can use it on a blank file if you want to "
20505 "partition that file (although we would recommend using L<guestfish(1)> "
20506 "instead as it is more suitable for this purpose).  You can even use virt-"
20507 "rescue on things like SD cards."
20508 msgstr ""
20509
20510 #. type: textblock
20511 #: ../rescue/virt-rescue.pod:76
20512 msgid ""
20513 "Virt-rescue does not require root.  You only need to run it as root if you "
20514 "need root to open the disk image."
20515 msgstr ""
20516
20517 #. type: textblock
20518 #: ../rescue/virt-rescue.pod:79
20519 msgid ""
20520 "This tool is just designed for quick interactive hacking on a virtual "
20521 "machine.  For more structured access to a virtual machine disk image, you "
20522 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
20523 "make scripted changes to guests, use L<guestfish(1)>."
20524 msgstr ""
20525
20526 #. type: =item
20527 #: ../rescue/virt-rescue.pod:103
20528 msgid "B<--append kernelopts>"
20529 msgstr ""
20530
20531 #. type: textblock
20532 #: ../rescue/virt-rescue.pod:105
20533 msgid "Pass additional options to the rescue kernel."
20534 msgstr ""
20535
20536 #. type: verbatim
20537 #: ../rescue/virt-rescue.pod:135
20538 #, no-wrap
20539 msgid ""
20540 " virt-rescue --format=raw -a disk.img\n"
20541 "\n"
20542 msgstr ""
20543
20544 #. type: verbatim
20545 #: ../rescue/virt-rescue.pod:139
20546 #, no-wrap
20547 msgid ""
20548 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
20549 "\n"
20550 msgstr ""
20551
20552 #. type: =item
20553 #: ../rescue/virt-rescue.pod:148
20554 msgid "B<-m MB>"
20555 msgstr ""
20556
20557 #. type: =item
20558 #: ../rescue/virt-rescue.pod:150
20559 msgid "B<--memsize MB>"
20560 msgstr ""
20561
20562 #. type: textblock
20563 #: ../rescue/virt-rescue.pod:152
20564 msgid ""
20565 "Change the amount of memory allocated to the rescue system.  The default is "
20566 "set by libguestfs and is small but adequate for running system tools.  The "
20567 "occasional program might need more memory.  The parameter is specified in "
20568 "megabytes."
20569 msgstr ""
20570
20571 #. type: =item
20572 #: ../rescue/virt-rescue.pod:157
20573 msgid "B<--network>"
20574 msgstr ""
20575
20576 #. type: textblock
20577 #: ../rescue/virt-rescue.pod:159
20578 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
20579 msgstr ""
20580
20581 #. type: textblock
20582 #: ../rescue/virt-rescue.pod:165
20583 msgid "Open the image read-only."
20584 msgstr ""
20585
20586 #. type: textblock
20587 #: ../rescue/virt-rescue.pod:175
20588 msgid ""
20589 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
20590 "SELINUX> before using this option."
20591 msgstr ""
20592
20593 #. type: textblock
20594 #: ../rescue/virt-rescue.pod:194
20595 msgid ""
20596 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
20597 "are done read-write."
20598 msgstr ""
20599
20600 #. type: textblock
20601 #: ../rescue/virt-rescue.pod:207
20602 msgid "Previous versions of virt-rescue allowed you to write either:"
20603 msgstr ""
20604
20605 #. type: verbatim
20606 #: ../rescue/virt-rescue.pod:209
20607 #, no-wrap
20608 msgid ""
20609 " virt-rescue disk.img [disk.img ...]\n"
20610 "\n"
20611 msgstr ""
20612
20613 #. type: verbatim
20614 #: ../rescue/virt-rescue.pod:213
20615 #, no-wrap
20616 msgid ""
20617 " virt-rescue guestname\n"
20618 "\n"
20619 msgstr ""
20620
20621 #. type: =head1
20622 #: ../rescue/virt-rescue.pod:221
20623 msgid "NETWORK"
20624 msgstr ""
20625
20626 #. type: textblock
20627 #: ../rescue/virt-rescue.pod:223
20628 msgid ""
20629 "Adding the I<--network> option enables QEMU user networking in the rescue "
20630 "appliance.  There are some differences between user networking and ordinary "
20631 "networking:"
20632 msgstr ""
20633
20634 #. type: =item
20635 #: ../rescue/virt-rescue.pod:229
20636 msgid "ping does not work"
20637 msgstr ""
20638
20639 #. type: textblock
20640 #: ../rescue/virt-rescue.pod:231
20641 msgid ""
20642 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
20643 "send the ping packets, and because virt-rescue must be able to run as non-"
20644 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
20645 "The ping command will appear to resolve addresses but will not be able to "
20646 "send or receive any packets.  This does not mean that the network is not "
20647 "working."
20648 msgstr ""
20649
20650 #. type: =item
20651 #: ../rescue/virt-rescue.pod:238
20652 msgid "cannot receive connections"
20653 msgstr ""
20654
20655 #. type: textblock
20656 #: ../rescue/virt-rescue.pod:240
20657 msgid "QEMU user networking cannot receive incoming connections."
20658 msgstr ""
20659
20660 #. type: =item
20661 #: ../rescue/virt-rescue.pod:242
20662 msgid "making TCP connections"
20663 msgstr ""
20664
20665 #. type: textblock
20666 #: ../rescue/virt-rescue.pod:244
20667 msgid ""
20668 "The virt-rescue appliance needs to be small and so does not include many "
20669 "network tools.  In particular there is no L<telnet(1)> command.  You can "
20670 "make TCP connections from the shell using the magical C</dev/tcp/"
20671 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
20672 msgstr ""
20673
20674 #. type: verbatim
20675 #: ../rescue/virt-rescue.pod:249
20676 #, no-wrap
20677 msgid ""
20678 " exec 3<>/dev/tcp/redhat.com/80\n"
20679 " echo \"GET /\" >&3\n"
20680 " cat <&3\n"
20681 "\n"
20682 msgstr ""
20683
20684 #. type: textblock
20685 #: ../rescue/virt-rescue.pod:253
20686 msgid "See L<bash(1)> for more details."
20687 msgstr ""
20688
20689 #. type: textblock
20690 #: ../rescue/virt-rescue.pod:259
20691 msgid ""
20692 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
20693 "ENVIRONMENT VARIABLES> for the complete list."
20694 msgstr ""
20695
20696 #. type: textblock
20697 #: ../rescue/virt-rescue.pod:286
20698 msgid ""
20699 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
20700 "libguestfs.org/>."
20701 msgstr ""
20702
20703 #. type: textblock
20704 #: ../resize/virt-resize.pod:5
20705 msgid "virt-resize - Resize a virtual machine disk"
20706 msgstr ""
20707
20708 #. type: verbatim
20709 #: ../resize/virt-resize.pod:9
20710 #, no-wrap
20711 msgid ""
20712 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
20713 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
20714 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
20715 "\n"
20716 msgstr ""
20717
20718 #. type: textblock
20719 #: ../resize/virt-resize.pod:15
20720 msgid ""
20721 "Virt-resize is a tool which can resize a virtual machine disk, making it "
20722 "larger or smaller overall, and resizing or deleting any partitions contained "
20723 "within."
20724 msgstr ""
20725
20726 #. type: textblock
20727 #: ../resize/virt-resize.pod:19
20728 msgid ""
20729 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
20730 "not> be used on live virtual machines - for consistent results, shut the "
20731 "virtual machine down before resizing it."
20732 msgstr ""
20733
20734 #. type: textblock
20735 #: ../resize/virt-resize.pod:23
20736 msgid ""
20737 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
20738 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
20739 msgstr ""
20740
20741 #. type: =item
20742 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:520
20743 #: ../src/guestfs.pod:469 ../src/guestfs.pod:1257 ../src/guestfs.pod:1396
20744 #: ../src/guestfs.pod:2481
20745 msgid "1."
20746 msgstr ""
20747
20748 #. type: textblock
20749 #: ../resize/virt-resize.pod:33
20750 msgid ""
20751 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
20752 "fill the extra 5GB of space."
20753 msgstr ""
20754
20755 #. type: verbatim
20756 #: ../resize/virt-resize.pod:36
20757 #, no-wrap
20758 msgid ""
20759 " virt-filesystems --long -h --all -a olddisk\n"
20760 " \n"
20761 msgstr ""
20762
20763 #. type: verbatim
20764 #: ../resize/virt-resize.pod:38
20765 #, no-wrap
20766 msgid ""
20767 " truncate -r olddisk newdisk\n"
20768 " truncate -s +5G newdisk\n"
20769 " \n"
20770 msgstr ""
20771
20772 #. type: verbatim
20773 #: ../resize/virt-resize.pod:41
20774 #, no-wrap
20775 msgid ""
20776 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
20777 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
20778 "\n"
20779 msgstr ""
20780
20781 #. type: =item
20782 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:527
20783 #: ../src/guestfs.pod:475 ../src/guestfs.pod:1261 ../src/guestfs.pod:1400
20784 #: ../src/guestfs.pod:2506
20785 msgid "2."
20786 msgstr ""
20787
20788 #. type: textblock
20789 #: ../resize/virt-resize.pod:46
20790 msgid ""
20791 "As above, but make the /boot partition 200MB bigger, while giving the "
20792 "remaining space to /dev/sda2:"
20793 msgstr ""
20794
20795 #. type: verbatim
20796 #: ../resize/virt-resize.pod:49
20797 #, no-wrap
20798 msgid ""
20799 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
20800 "   olddisk newdisk\n"
20801 "\n"
20802 msgstr ""
20803
20804 #. type: =item
20805 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:533
20806 #: ../src/guestfs.pod:486 ../src/guestfs.pod:1406
20807 msgid "3."
20808 msgstr ""
20809
20810 #. type: textblock
20811 #: ../resize/virt-resize.pod:54
20812 msgid ""
20813 "As in the first example, but expand a logical volume as the final step.  "
20814 "This is what you would typically use for Linux guests that use LVM:"
20815 msgstr ""
20816
20817 #. type: verbatim
20818 #: ../resize/virt-resize.pod:58
20819 #, no-wrap
20820 msgid ""
20821 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
20822 "   olddisk newdisk\n"
20823 "\n"
20824 msgstr ""
20825
20826 #. type: =item
20827 #: ../resize/virt-resize.pod:61
20828 msgid "4."
20829 msgstr ""
20830
20831 #. type: textblock
20832 #: ../resize/virt-resize.pod:63
20833 msgid ""
20834 "As in the first example, but the output format will be qcow2 instead of a "
20835 "raw disk:"
20836 msgstr ""
20837
20838 #. type: verbatim
20839 #: ../resize/virt-resize.pod:66
20840 #, no-wrap
20841 msgid ""
20842 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
20843 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
20844 "\n"
20845 msgstr ""
20846
20847 #. type: =head1
20848 #: ../resize/virt-resize.pod:71
20849 msgid "DETAILED USAGE"
20850 msgstr ""
20851
20852 #. type: =head2
20853 #: ../resize/virt-resize.pod:73
20854 msgid "EXPANDING A VIRTUAL MACHINE DISK"
20855 msgstr ""
20856
20857 #. type: =item
20858 #: ../resize/virt-resize.pod:77
20859 msgid "1. Shut down the virtual machine"
20860 msgstr ""
20861
20862 #. type: =item
20863 #: ../resize/virt-resize.pod:79
20864 msgid "2. Locate input disk image"
20865 msgstr ""
20866
20867 #. type: textblock
20868 #: ../resize/virt-resize.pod:81
20869 msgid ""
20870 "Locate the input disk image (ie. the file or device on the host containing "
20871 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
20872 "dumpxml> like this to find the disk image name:"
20873 msgstr ""
20874
20875 #. type: verbatim
20876 #: ../resize/virt-resize.pod:85
20877 #, no-wrap
20878 msgid ""
20879 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
20880 " Found 1 nodes:\n"
20881 " -- NODE --\n"
20882 " <source dev=\"/dev/vg/lv_guest\" />\n"
20883 "\n"
20884 msgstr ""
20885
20886 #. type: =item
20887 #: ../resize/virt-resize.pod:90
20888 msgid "3. Look at current sizing"
20889 msgstr ""
20890
20891 #. type: textblock
20892 #: ../resize/virt-resize.pod:92
20893 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
20894 msgstr ""
20895
20896 #. type: verbatim
20897 #: ../resize/virt-resize.pod:95
20898 #, no-wrap
20899 msgid ""
20900 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
20901 " Name       Type       Size  Parent\n"
20902 " /dev/sda1  partition  101M  /dev/sda\n"
20903 " /dev/sda2  partition  7.9G  /dev/sda\n"
20904 " /dev/sda   device     8.0G  -\n"
20905 "\n"
20906 msgstr ""
20907
20908 #. type: textblock
20909 #: ../resize/virt-resize.pod:101
20910 msgid ""
20911 "(This example is a virtual machine with an 8 GB disk which we would like to "
20912 "expand up to 10 GB)."
20913 msgstr ""
20914
20915 #. type: =item
20916 #: ../resize/virt-resize.pod:104
20917 msgid "4. Create output disk"
20918 msgstr ""
20919
20920 #. type: textblock
20921 #: ../resize/virt-resize.pod:106
20922 msgid ""
20923 "Virt-resize cannot do in-place disk modifications.  You have to have space "
20924 "to store the resized output disk."
20925 msgstr ""
20926
20927 #. type: textblock
20928 #: ../resize/virt-resize.pod:109
20929 msgid ""
20930 "To store the resized disk image in a file, create a file of a suitable size:"
20931 msgstr ""
20932
20933 #. type: verbatim
20934 #: ../resize/virt-resize.pod:112
20935 #, no-wrap
20936 msgid ""
20937 " # rm -f outdisk\n"
20938 " # truncate -s 10G outdisk\n"
20939 "\n"
20940 msgstr ""
20941
20942 #. type: textblock
20943 #: ../resize/virt-resize.pod:115
20944 msgid "Or use L<lvcreate(1)> to create a logical volume:"
20945 msgstr ""
20946
20947 #. type: verbatim
20948 #: ../resize/virt-resize.pod:117
20949 #, no-wrap
20950 msgid ""
20951 " # lvcreate -L 10G -n lv_name vg_name\n"
20952 "\n"
20953 msgstr ""
20954
20955 #. type: textblock
20956 #: ../resize/virt-resize.pod:119
20957 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
20958 msgstr ""
20959
20960 #. type: verbatim
20961 #: ../resize/virt-resize.pod:121
20962 #, no-wrap
20963 msgid ""
20964 " # virsh pool-list\n"
20965 " # virsh vol-create-as poolname newvol 10G\n"
20966 "\n"
20967 msgstr ""
20968
20969 #. type: =item
20970 #: ../resize/virt-resize.pod:124
20971 msgid "5. Resize"
20972 msgstr ""
20973
20974 #. type: textblock
20975 #: ../resize/virt-resize.pod:126
20976 msgid ""
20977 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
20978 "file) and the output disk.  The output disk is the one created in the "
20979 "previous step."
20980 msgstr ""
20981
20982 #. type: verbatim
20983 #: ../resize/virt-resize.pod:130
20984 #, no-wrap
20985 msgid ""
20986 " # virt-resize indisk outdisk\n"
20987 "\n"
20988 msgstr ""
20989
20990 #. type: textblock
20991 #: ../resize/virt-resize.pod:132
20992 msgid ""
20993 "This command just copies disk image C<indisk> to disk image C<outdisk> "
20994 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
20995 "larger, then an extra, empty partition is created at the end of the disk "
20996 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
20997 "error."
20998 msgstr ""
20999
21000 #. type: textblock
21001 #: ../resize/virt-resize.pod:138
21002 msgid ""
21003 "More realistically you'd want to expand existing partitions in the disk "
21004 "image by passing extra options (for the full list see the L</OPTIONS> "
21005 "section below)."
21006 msgstr ""
21007
21008 #. type: textblock
21009 #: ../resize/virt-resize.pod:142
21010 msgid ""
21011 "L</--expand> is the most useful option.  It expands the named partition "
21012 "within the disk to fill any extra space:"
21013 msgstr ""
21014
21015 #. type: verbatim
21016 #: ../resize/virt-resize.pod:145
21017 #, no-wrap
21018 msgid ""
21019 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
21020 "\n"
21021 msgstr ""
21022
21023 #. type: textblock
21024 #: ../resize/virt-resize.pod:147
21025 msgid ""
21026 "(In this case, an extra partition is I<not> created at the end of the disk, "
21027 "because there will be no unused space)."
21028 msgstr ""
21029
21030 #. type: textblock
21031 #: ../resize/virt-resize.pod:150
21032 msgid ""
21033 "L</--resize> is the other commonly used option.  The following would "
21034 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
21035 "rest of the available space:"
21036 msgstr ""
21037
21038 #. type: verbatim
21039 #: ../resize/virt-resize.pod:154
21040 #, no-wrap
21041 msgid ""
21042 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
21043 "     indisk outdisk\n"
21044 "\n"
21045 msgstr ""
21046
21047 #. type: textblock
21048 #: ../resize/virt-resize.pod:157
21049 msgid ""
21050 "If the expanded partition in the image contains a filesystem or LVM PV, then "
21051 "if virt-resize knows how, it will resize the contents, the equivalent of "
21052 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
21053 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
21054 "filesystems, so you would have to online resize them after booting the guest."
21055 msgstr ""
21056
21057 #. type: textblock
21058 #: ../resize/virt-resize.pod:164
21059 msgid "Other options are covered below."
21060 msgstr ""
21061
21062 #. type: =item
21063 #: ../resize/virt-resize.pod:166
21064 msgid "6. Test"
21065 msgstr ""
21066
21067 #. type: textblock
21068 #: ../resize/virt-resize.pod:168
21069 msgid "Thoroughly test the new disk image I<before> discarding the old one."
21070 msgstr ""
21071
21072 #. type: textblock
21073 #: ../resize/virt-resize.pod:170
21074 msgid "If you are using libvirt, edit the XML to point at the new disk:"
21075 msgstr ""
21076
21077 #. type: verbatim
21078 #: ../resize/virt-resize.pod:172
21079 #, no-wrap
21080 msgid ""
21081 " # virsh edit guestname\n"
21082 "\n"
21083 msgstr ""
21084
21085 #. type: textblock
21086 #: ../resize/virt-resize.pod:174
21087 msgid ""
21088 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
21089 "html#elementsDisks>"
21090 msgstr ""
21091
21092 #. type: textblock
21093 #: ../resize/virt-resize.pod:177
21094 msgid "Then start up the domain with the new, resized disk:"
21095 msgstr ""
21096
21097 #. type: verbatim
21098 #: ../resize/virt-resize.pod:179
21099 #, no-wrap
21100 msgid ""
21101 " # virsh start guestname\n"
21102 "\n"
21103 msgstr ""
21104
21105 #. type: textblock
21106 #: ../resize/virt-resize.pod:181
21107 msgid ""
21108 "and check that it still works.  See also the L</NOTES> section below for "
21109 "additional information."
21110 msgstr ""
21111
21112 #. type: =item
21113 #: ../resize/virt-resize.pod:184
21114 msgid "7. Resize LVs etc inside the guest"
21115 msgstr ""
21116
21117 #. type: textblock
21118 #: ../resize/virt-resize.pod:186
21119 msgid "(This can also be done offline using L<guestfish(1)>)"
21120 msgstr ""
21121
21122 #. type: textblock
21123 #: ../resize/virt-resize.pod:188
21124 msgid ""
21125 "Once the guest has booted you should see the new space available, at least "
21126 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
21127 "may need to resize LVs inside PVs, and also resize filesystem types that "
21128 "virt-resize does not know how to expand."
21129 msgstr ""
21130
21131 #. type: =head2
21132 #: ../resize/virt-resize.pod:195
21133 msgid "SHRINKING A VIRTUAL MACHINE DISK"
21134 msgstr ""
21135
21136 #. type: textblock
21137 #: ../resize/virt-resize.pod:197
21138 msgid ""
21139 "Shrinking is somewhat more complex than expanding, and only an overview is "
21140 "given here."
21141 msgstr ""
21142
21143 #. type: textblock
21144 #: ../resize/virt-resize.pod:200
21145 msgid ""
21146 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
21147 "filesystems).  The user has to shrink content before passing the disk image "
21148 "to virt-resize, and virt-resize will check that the content has been shrunk "
21149 "properly."
21150 msgstr ""
21151
21152 #. type: textblock
21153 #: ../resize/virt-resize.pod:205
21154 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
21155 msgstr ""
21156
21157 #. type: textblock
21158 #: ../resize/virt-resize.pod:207
21159 msgid ""
21160 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
21161 "steps 3 and 4 above to allocate a new disk image."
21162 msgstr ""
21163
21164 #. type: textblock
21165 #: ../resize/virt-resize.pod:210
21166 msgid ""
21167 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
21168 msgstr ""
21169
21170 #. type: =head2
21171 #: ../resize/virt-resize.pod:213
21172 msgid "IGNORING OR DELETING PARTITIONS"
21173 msgstr ""
21174
21175 #. type: textblock
21176 #: ../resize/virt-resize.pod:215
21177 msgid ""
21178 "virt-resize also gives a convenient way to ignore or delete partitions when "
21179 "copying from the input disk to the output disk.  Ignoring a partition speeds "
21180 "up the copy where you don't care about the existing contents of a "
21181 "partition.  Deleting a partition removes it completely, but note that it "
21182 "also renumbers any partitions after the one which is deleted, which can "
21183 "leave some guests unbootable."
21184 msgstr ""
21185
21186 #. type: =head2
21187 #: ../resize/virt-resize.pod:222
21188 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
21189 msgstr ""
21190
21191 #. type: textblock
21192 #: ../resize/virt-resize.pod:224
21193 msgid ""
21194 "If the input disk is in qcow2 format, then you may prefer that the output is "
21195 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
21196 "the fly.  The output format is simply determined by the format of the empty "
21197 "output container that you provide.  Thus to create qcow2 output, use:"
21198 msgstr ""
21199
21200 #. type: verbatim
21201 #: ../resize/virt-resize.pod:230
21202 #, no-wrap
21203 msgid ""
21204 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
21205 "\n"
21206 msgstr ""
21207
21208 #. type: textblock
21209 #: ../resize/virt-resize.pod:232
21210 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
21211 msgstr ""
21212
21213 #. type: textblock
21214 #: ../resize/virt-resize.pod:234
21215 msgid "Similarly, to get non-sparse raw output use:"
21216 msgstr ""
21217
21218 #. type: verbatim
21219 #: ../resize/virt-resize.pod:236
21220 #, no-wrap
21221 msgid ""
21222 " fallocate -l size outdisk\n"
21223 "\n"
21224 msgstr ""
21225
21226 #. type: textblock
21227 #: ../resize/virt-resize.pod:238
21228 msgid ""
21229 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
21230 "dev/zero of=outdisk bs=1M count=..>)"
21231 msgstr ""
21232
21233 #. type: textblock
21234 #: ../resize/virt-resize.pod:247
21235 msgid "Display help."
21236 msgstr ""
21237
21238 #. type: =item
21239 #: ../resize/virt-resize.pod:249
21240 msgid "B<-d>"
21241 msgstr ""
21242
21243 #. type: =item
21244 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
21245 #: ../tools/virt-win-reg.pl:120
21246 msgid "B<--debug>"
21247 msgstr ""
21248
21249 #. type: textblock
21250 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
21251 msgid "Enable debugging messages."
21252 msgstr ""
21253
21254 #. type: =item
21255 #: ../resize/virt-resize.pod:255
21256 msgid "B<--delete part>"
21257 msgstr ""
21258
21259 #. type: textblock
21260 #: ../resize/virt-resize.pod:257
21261 msgid ""
21262 "Delete the named partition.  It would be more accurate to describe this as "
21263 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
21264 "the original disk image is left intact."
21265 msgstr ""
21266
21267 #. type: textblock
21268 #: ../resize/virt-resize.pod:261
21269 msgid ""
21270 "Note that when you delete a partition, then anything contained in the "
21271 "partition is also deleted.  Furthermore, this causes any partitions that "
21272 "come after to be I<renumbered>, which can easily make your guest unbootable."
21273 msgstr ""
21274
21275 #. type: textblock
21276 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
21277 #: ../resize/virt-resize.pod:454
21278 msgid "You can give this option multiple times."
21279 msgstr ""
21280
21281 #. type: =item
21282 #: ../resize/virt-resize.pod:268
21283 msgid "B<--expand part>"
21284 msgstr ""
21285
21286 #. type: textblock
21287 #: ../resize/virt-resize.pod:270
21288 msgid ""
21289 "Expand the named partition so it uses up all extra space (space left over "
21290 "after any other resize changes that you request have been done)."
21291 msgstr ""
21292
21293 #. type: textblock
21294 #: ../resize/virt-resize.pod:273
21295 msgid ""
21296 "If virt-resize knows how, it will expand the direct content of the "
21297 "partition.  For example, if the partition is an LVM PV, it will expand the "
21298 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
21299 "content it doesn't know about alone."
21300 msgstr ""
21301
21302 #. type: textblock
21303 #: ../resize/virt-resize.pod:278
21304 msgid "Currently virt-resize can resize:"
21305 msgstr ""
21306
21307 #. type: textblock
21308 #: ../resize/virt-resize.pod:284
21309 msgid "ext2, ext3 and ext4 filesystems."
21310 msgstr ""
21311
21312 #. type: textblock
21313 #: ../resize/virt-resize.pod:288
21314 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
21315 msgstr ""
21316
21317 #. type: textblock
21318 #: ../resize/virt-resize.pod:290
21319 msgid ""
21320 "The filesystem must have been shut down consistently last time it was used.  "
21321 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
21322 "consistency check, so at the first boot after resizing Windows will check "
21323 "the disk."
21324 msgstr ""
21325
21326 #. type: textblock
21327 #: ../resize/virt-resize.pod:297
21328 msgid ""
21329 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
21330 "inside the PV, but see the I<--LV-expand> option.  The user could also "
21331 "resize LVs as desired after boot."
21332 msgstr ""
21333
21334 #. type: textblock
21335 #: ../resize/virt-resize.pod:303
21336 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
21337 msgstr ""
21338
21339 #. type: textblock
21340 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
21341 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
21342 msgstr ""
21343
21344 #. type: =item
21345 #: ../resize/virt-resize.pod:309 ../tools/virt-list-filesystems.pl:91
21346 #: ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141
21347 #: ../tools/virt-win-reg.pl:142
21348 msgid "B<--format> raw"
21349 msgstr ""
21350
21351 #. type: textblock
21352 #: ../resize/virt-resize.pod:311
21353 msgid ""
21354 "Specify the format of the input disk image.  If this flag is not given then "
21355 "it is auto-detected from the image itself."
21356 msgstr ""
21357
21358 #. type: textblock
21359 #: ../resize/virt-resize.pod:317
21360 msgid ""
21361 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
21362 "AND NON-SPARSE RAW FORMATS>."
21363 msgstr ""
21364
21365 #. type: =item
21366 #: ../resize/virt-resize.pod:320
21367 msgid "B<--ignore part>"
21368 msgstr ""
21369
21370 #. type: textblock
21371 #: ../resize/virt-resize.pod:322
21372 msgid ""
21373 "Ignore the named partition.  Effectively this means the partition is "
21374 "allocated on the destination disk, but the content is not copied across from "
21375 "the source disk.  The content of the partition will be blank (all zero "
21376 "bytes)."
21377 msgstr ""
21378
21379 #. type: =item
21380 #: ../resize/virt-resize.pod:329
21381 msgid "B<--LV-expand logvol>"
21382 msgstr ""
21383
21384 #. type: textblock
21385 #: ../resize/virt-resize.pod:331
21386 msgid ""
21387 "This takes the logical volume and, as a final step, expands it to fill all "
21388 "the space available in its volume group.  A typical usage, assuming a Linux "
21389 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
21390 "lv_root> would be:"
21391 msgstr ""
21392
21393 #. type: verbatim
21394 #: ../resize/virt-resize.pod:336
21395 #, no-wrap
21396 msgid ""
21397 " virt-resize indisk outdisk \\\n"
21398 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
21399 "\n"
21400 msgstr ""
21401
21402 #. type: textblock
21403 #: ../resize/virt-resize.pod:339
21404 msgid ""
21405 "This would first expand the partition (and PV), and then expand the root "
21406 "device to fill the extra space in the PV."
21407 msgstr ""
21408
21409 #. type: textblock
21410 #: ../resize/virt-resize.pod:342
21411 msgid ""
21412 "The contents of the LV are also resized if virt-resize knows how to do "
21413 "that.  You can stop virt-resize from trying to expand the content by using "
21414 "the option I<--no-expand-content>."
21415 msgstr ""
21416
21417 #. type: textblock
21418 #: ../resize/virt-resize.pod:346
21419 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
21420 msgstr ""
21421
21422 #. type: textblock
21423 #: ../resize/virt-resize.pod:348
21424 msgid ""
21425 "You can give this option multiple times, I<but> it doesn't make sense to do "
21426 "this unless the logical volumes you specify are all in different volume "
21427 "groups."
21428 msgstr ""
21429
21430 #. type: =item
21431 #: ../resize/virt-resize.pod:352
21432 msgid "B<--machine-readable>"
21433 msgstr ""
21434
21435 #. type: textblock
21436 #: ../resize/virt-resize.pod:354
21437 msgid ""
21438 "This option is used to make the output more machine friendly when being "
21439 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
21440 msgstr ""
21441
21442 #. type: =item
21443 #: ../resize/virt-resize.pod:360
21444 msgid "B<--dryrun>"
21445 msgstr ""
21446
21447 #. type: textblock
21448 #: ../resize/virt-resize.pod:362
21449 msgid "Print a summary of what would be done, but don't do anything."
21450 msgstr ""
21451
21452 #. type: =item
21453 #: ../resize/virt-resize.pod:364
21454 msgid "B<--no-copy-boot-loader>"
21455 msgstr ""
21456
21457 #. type: textblock
21458 #: ../resize/virt-resize.pod:366
21459 msgid ""
21460 "By default, virt-resize copies over some sectors at the start of the disk "
21461 "(up to the beginning of the first partition).  Commonly these sectors "
21462 "contain the Master Boot Record (MBR) and the boot loader, and are required "
21463 "in order for the guest to boot correctly."
21464 msgstr ""
21465
21466 #. type: textblock
21467 #: ../resize/virt-resize.pod:371
21468 msgid ""
21469 "If you specify this flag, then this initial copy is not done.  You may need "
21470 "to reinstall the boot loader in this case."
21471 msgstr ""
21472
21473 #. type: =item
21474 #: ../resize/virt-resize.pod:374
21475 msgid "B<--no-extra-partition>"
21476 msgstr ""
21477
21478 #. type: textblock
21479 #: ../resize/virt-resize.pod:376
21480 msgid ""
21481 "By default, virt-resize creates an extra partition if there is any extra, "
21482 "unused space after all resizing has happened.  Use this option to prevent "
21483 "the extra partition from being created.  If you do this then the extra space "
21484 "will be inaccessible until you run fdisk, parted, or some other partitioning "
21485 "tool in the guest."
21486 msgstr ""
21487
21488 #. type: textblock
21489 #: ../resize/virt-resize.pod:382
21490 msgid ""
21491 "Note that if the surplus space is smaller than 10 MB, no extra partition "
21492 "will be created."
21493 msgstr ""
21494
21495 #. type: =item
21496 #: ../resize/virt-resize.pod:385
21497 msgid "B<--no-expand-content>"
21498 msgstr ""
21499
21500 #. type: textblock
21501 #: ../resize/virt-resize.pod:387
21502 msgid ""
21503 "By default, virt-resize will try to expand the direct contents of "
21504 "partitions, if it knows how (see I<--expand> option above)."
21505 msgstr ""
21506
21507 #. type: textblock
21508 #: ../resize/virt-resize.pod:390
21509 msgid ""
21510 "If you give the I<--no-expand-content> option then virt-resize will not "
21511 "attempt this."
21512 msgstr ""
21513
21514 #. type: =item
21515 #: ../resize/virt-resize.pod:393
21516 msgid "B<--ntfsresize-force>"
21517 msgstr ""
21518
21519 #. type: textblock
21520 #: ../resize/virt-resize.pod:395
21521 msgid ""
21522 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
21523 "the NTFS disk is marked as needing a consistency check.  You have to use "
21524 "this option if you want to resize a Windows guest multiple times without "
21525 "booting into Windows between each resize."
21526 msgstr ""
21527
21528 #. type: =item
21529 #: ../resize/virt-resize.pod:401
21530 msgid "B<--output-format> raw"
21531 msgstr ""
21532
21533 #. type: textblock
21534 #: ../resize/virt-resize.pod:403
21535 msgid ""
21536 "Specify the format of the output disk image.  If this flag is not given then "
21537 "it is auto-detected from the image itself."
21538 msgstr ""
21539
21540 #. type: textblock
21541 #: ../resize/virt-resize.pod:409
21542 msgid ""
21543 "Note that this option I<does not create> the output format.  This option "
21544 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
21545 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
21546 "SPARSE RAW FORMATS>."
21547 msgstr ""
21548
21549 #. type: =item
21550 #: ../resize/virt-resize.pod:414
21551 msgid "B<-q>"
21552 msgstr ""
21553
21554 #. type: =item
21555 #: ../resize/virt-resize.pod:416
21556 msgid "B<--quiet>"
21557 msgstr ""
21558
21559 #. type: textblock
21560 #: ../resize/virt-resize.pod:418
21561 msgid "Don't print the summary."
21562 msgstr ""
21563
21564 #. type: =item
21565 #: ../resize/virt-resize.pod:420
21566 msgid "B<--resize part=size>"
21567 msgstr ""
21568
21569 #. type: textblock
21570 #: ../resize/virt-resize.pod:422
21571 msgid ""
21572 "Resize the named partition (expanding or shrinking it) so that it has the "
21573 "given size."
21574 msgstr ""
21575
21576 #. type: textblock
21577 #: ../resize/virt-resize.pod:425
21578 msgid ""
21579 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
21580 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
21581 "size; or as a relative number or percentage.  For example:"
21582 msgstr ""
21583
21584 #. type: verbatim
21585 #: ../resize/virt-resize.pod:431
21586 #, no-wrap
21587 msgid ""
21588 " --resize /dev/sda2=10G\n"
21589 "\n"
21590 msgstr ""
21591
21592 #. type: verbatim
21593 #: ../resize/virt-resize.pod:433
21594 #, no-wrap
21595 msgid ""
21596 " --resize /dev/sda4=90%\n"
21597 "\n"
21598 msgstr ""
21599
21600 #. type: verbatim
21601 #: ../resize/virt-resize.pod:435
21602 #, no-wrap
21603 msgid ""
21604 " --resize /dev/sda2=+1G\n"
21605 "\n"
21606 msgstr ""
21607
21608 #. type: verbatim
21609 #: ../resize/virt-resize.pod:437
21610 #, no-wrap
21611 msgid ""
21612 " --resize /dev/sda2=-200M\n"
21613 "\n"
21614 msgstr ""
21615
21616 #. type: verbatim
21617 #: ../resize/virt-resize.pod:439
21618 #, no-wrap
21619 msgid ""
21620 " --resize /dev/sda1=+128K\n"
21621 "\n"
21622 msgstr ""
21623
21624 #. type: verbatim
21625 #: ../resize/virt-resize.pod:441
21626 #, no-wrap
21627 msgid ""
21628 " --resize /dev/sda1=+10%\n"
21629 "\n"
21630 msgstr ""
21631
21632 #. type: verbatim
21633 #: ../resize/virt-resize.pod:443
21634 #, no-wrap
21635 msgid ""
21636 " --resize /dev/sda1=-10%\n"
21637 "\n"
21638 msgstr ""
21639
21640 #. type: textblock
21641 #: ../resize/virt-resize.pod:445
21642 msgid ""
21643 "You can increase the size of any partition.  Virt-resize will expand the "
21644 "direct content of the partition if it knows how (see I<--expand> below)."
21645 msgstr ""
21646
21647 #. type: textblock
21648 #: ../resize/virt-resize.pod:449
21649 msgid ""
21650 "You can only I<decrease> the size of partitions that contain filesystems or "
21651 "PVs which have already been shrunk.  Virt-resize will check this has been "
21652 "done before proceeding, or else will print an error (see also I<--resize-"
21653 "force>)."
21654 msgstr ""
21655
21656 #. type: =item
21657 #: ../resize/virt-resize.pod:456
21658 msgid "B<--resize-force part=size>"
21659 msgstr ""
21660
21661 #. type: textblock
21662 #: ../resize/virt-resize.pod:458
21663 msgid ""
21664 "This is the same as I<--resize> except that it will let you decrease the "
21665 "size of any partition.  Generally this means you will lose any data which "
21666 "was at the end of the partition you shrink, but you may not care about that "
21667 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
21668 "as a swap partition)."
21669 msgstr ""
21670
21671 #. type: textblock
21672 #: ../resize/virt-resize.pod:464
21673 msgid "See also the I<--ignore> option."
21674 msgstr ""
21675
21676 #. type: =item
21677 #: ../resize/virt-resize.pod:466
21678 msgid "B<--shrink part>"
21679 msgstr ""
21680
21681 #. type: textblock
21682 #: ../resize/virt-resize.pod:468
21683 msgid ""
21684 "Shrink the named partition until the overall disk image fits in the "
21685 "destination.  The named partition B<must> contain a filesystem or PV which "
21686 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
21687 "online tools).  Virt-resize will check this and give an error if it has not "
21688 "been done."
21689 msgstr ""
21690
21691 #. type: textblock
21692 #: ../resize/virt-resize.pod:474
21693 msgid ""
21694 "The amount by which the overall disk must be shrunk (after carrying out all "
21695 "other operations requested by the user) is called the \"deficit\".  For "
21696 "example, a straight copy (assume no other operations)  from a 5GB disk image "
21697 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
21698 "would give an error unless the user specified a partition to shrink and that "
21699 "partition had more than a gigabyte of free space."
21700 msgstr ""
21701
21702 #. type: =head1
21703 #: ../resize/virt-resize.pod:492
21704 msgid "MACHINE READABLE OUTPUT"
21705 msgstr ""
21706
21707 #. type: textblock
21708 #: ../resize/virt-resize.pod:494
21709 msgid ""
21710 "The I<--machine-readable> option can be used to make the output more machine "
21711 "friendly, which is useful when calling virt-resize from other programs, GUIs "
21712 "etc."
21713 msgstr ""
21714
21715 #. type: textblock
21716 #: ../resize/virt-resize.pod:498
21717 msgid "There are two ways to use this option."
21718 msgstr ""
21719
21720 #. type: textblock
21721 #: ../resize/virt-resize.pod:500
21722 msgid ""
21723 "Firstly use the option on its own to query the capabilities of the virt-"
21724 "resize binary.  Typical output looks like this:"
21725 msgstr ""
21726
21727 #. type: verbatim
21728 #: ../resize/virt-resize.pod:503
21729 #, no-wrap
21730 msgid ""
21731 " $ virt-resize --machine-readable\n"
21732 " virt-resize\n"
21733 " ntfsresize-force\n"
21734 " 32bitok\n"
21735 " ntfs\n"
21736 " btrfs\n"
21737 "\n"
21738 msgstr ""
21739
21740 #. type: textblock
21741 #: ../resize/virt-resize.pod:510
21742 msgid ""
21743 "A list of features is printed, one per line, and the program exits with "
21744 "status 0."
21745 msgstr ""
21746
21747 #. type: textblock
21748 #: ../resize/virt-resize.pod:513
21749 msgid ""
21750 "Secondly use the option in conjunction with other options to make the "
21751 "regular program output more machine friendly."
21752 msgstr ""
21753
21754 #. type: textblock
21755 #: ../resize/virt-resize.pod:516
21756 msgid "At the moment this means:"
21757 msgstr ""
21758
21759 #. type: textblock
21760 #: ../resize/virt-resize.pod:522
21761 msgid ""
21762 "Progress bar messages can be parsed from stdout by looking for this regular "
21763 "expression:"
21764 msgstr ""
21765
21766 #. type: verbatim
21767 #: ../resize/virt-resize.pod:525
21768 #, no-wrap
21769 msgid ""
21770 " ^[0-9]+/[0-9]+$\n"
21771 "\n"
21772 msgstr ""
21773
21774 #. type: textblock
21775 #: ../resize/virt-resize.pod:529
21776 msgid ""
21777 "The calling program should treat messages sent to stdout (except for "
21778 "progress bar messages) as status messages.  They can be logged and/or "
21779 "displayed to the user."
21780 msgstr ""
21781
21782 #. type: textblock
21783 #: ../resize/virt-resize.pod:535
21784 msgid ""
21785 "The calling program should treat messages sent to stderr as error messages.  "
21786 "In addition, virt-resize exits with a non-zero status code if there was a "
21787 "fatal error."
21788 msgstr ""
21789
21790 #. type: textblock
21791 #: ../resize/virt-resize.pod:541
21792 msgid ""
21793 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
21794 "readable> option and will return an error."
21795 msgstr ""
21796
21797 #. type: =head2
21798 #: ../resize/virt-resize.pod:546
21799 msgid "\"Partition 1 does not end on cylinder boundary.\""
21800 msgstr ""
21801
21802 #. type: textblock
21803 #: ../resize/virt-resize.pod:548
21804 msgid ""
21805 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
21806 "means the partitions will not be aligned to the ancient CHS geometry.  "
21807 "However CHS geometry is meaningless for disks manufactured since the early "
21808 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
21809 "cylinders is not required by any modern operating system."
21810 msgstr ""
21811
21812 #. type: =head2
21813 #: ../resize/virt-resize.pod:555
21814 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
21815 msgstr ""
21816
21817 #. type: textblock
21818 #: ../resize/virt-resize.pod:557
21819 msgid ""
21820 "In Windows Vista and later versions, Microsoft switched to using a separate "
21821 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
21822 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
21823 "the boot partition.  Doing so seems to break the guest completely.  However "
21824 "expanding the second partition (ie. C: drive) should work."
21825 msgstr ""
21826
21827 #. type: textblock
21828 #: ../resize/virt-resize.pod:564
21829 msgid ""
21830 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
21831 "NTFS partitions have been expanded.  This is just a safety check and (unless "
21832 "it find errors) is nothing to worry about."
21833 msgstr ""
21834
21835 #. type: =head2
21836 #: ../resize/virt-resize.pod:568
21837 msgid "GUEST BOOT STUCK AT \"GRUB\""
21838 msgstr ""
21839
21840 #. type: textblock
21841 #: ../resize/virt-resize.pod:570
21842 msgid ""
21843 "If a Linux guest does not boot after resizing, and the boot is stuck after "
21844 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
21845 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
21846 "although we think is to do with partition alignment."
21847 msgstr ""
21848
21849 #. type: verbatim
21850 #: ../resize/virt-resize.pod:575
21851 #, no-wrap
21852 msgid ""
21853 " guestfish -i -a newdisk\n"
21854 " ><fs> cat /boot/grub/device.map\n"
21855 " # check the contents of this file are sensible or\n"
21856 " # edit the file if necessary\n"
21857 " ><fs> grub-install / /dev/vda\n"
21858 " ><fs> exit\n"
21859 "\n"
21860 msgstr ""
21861
21862 #. type: textblock
21863 #: ../resize/virt-resize.pod:582
21864 msgid ""
21865 "For more flexible guest reconfiguration, including if you need to specify "
21866 "other parameters to grub-install, use L<virt-rescue(1)>."
21867 msgstr ""
21868
21869 #. type: =head1
21870 #: ../resize/virt-resize.pod:585
21871 msgid "ALTERNATIVE TOOLS"
21872 msgstr ""
21873
21874 #. type: textblock
21875 #: ../resize/virt-resize.pod:587
21876 msgid ""
21877 "There are several proprietary tools for resizing partitions.  We won't "
21878 "mention any here."
21879 msgstr ""
21880
21881 #. type: textblock
21882 #: ../resize/virt-resize.pod:590
21883 msgid ""
21884 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
21885 "operations on disk images.  They can resize and move partitions, but I don't "
21886 "think they can do anything with the contents, and they certainly don't "
21887 "understand LVM."
21888 msgstr ""
21889
21890 #. type: textblock
21891 #: ../resize/virt-resize.pod:595
21892 msgid ""
21893 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
21894 "but at a much lower level.  You will probably end up hand-calculating sector "
21895 "offsets, which is something that virt-resize was designed to avoid.  If you "
21896 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
21897 "I<--debug> flag."
21898 msgstr ""
21899
21900 #. type: textblock
21901 #: ../resize/virt-resize.pod:615
21902 msgid ""
21903 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
21904 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
21905 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
21906 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<http://libguestfs.org/>."
21907 msgstr ""
21908
21909 #. type: textblock
21910 #: ../ruby/examples/guestfs-ruby.pod:5
21911 msgid "guestfs-ruby - How to use libguestfs from Ruby"
21912 msgstr ""
21913
21914 #. type: verbatim
21915 #: ../ruby/examples/guestfs-ruby.pod:9
21916 #, no-wrap
21917 msgid ""
21918 " require 'guestfs'\n"
21919 " g = Guestfs::Guestfs.new()\n"
21920 " g.add_drive_opts(\"disk.img\",\n"
21921 "                  :readonly => 1, :format => \"raw\")\n"
21922 " g.launch()\n"
21923 "\n"
21924 msgstr ""
21925
21926 #. type: textblock
21927 #: ../ruby/examples/guestfs-ruby.pod:17
21928 msgid ""
21929 "This manual page documents how to call libguestfs from the Ruby programming "
21930 "language.  This page just documents the differences from the C API and gives "
21931 "some examples.  If you are not familiar with using libguestfs, you also need "
21932 "to read L<guestfs(3)>."
21933 msgstr ""
21934
21935 #. type: textblock
21936 #: ../ruby/examples/guestfs-ruby.pod:24
21937 msgid ""
21938 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
21939 "This has a single parameter which is the error message (a string)."
21940 msgstr ""
21941
21942 #. type: textblock
21943 #: ../ruby/examples/guestfs-ruby.pod:38
21944 msgid ""
21945 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
21946 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<http://"
21947 "libguestfs.org/>."
21948 msgstr ""
21949
21950 #. type: =head2
21951 #: ../src/guestfs-actions.pod:1
21952 msgid "guestfs_add_cdrom"
21953 msgstr ""
21954
21955 #. type: verbatim
21956 #: ../src/guestfs-actions.pod:3
21957 #, no-wrap
21958 msgid ""
21959 " int\n"
21960 " guestfs_add_cdrom (guestfs_h *g,\n"
21961 "                    const char *filename);\n"
21962 "\n"
21963 msgstr ""
21964
21965 #. type: textblock
21966 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:249
21967 #: ../src/guestfs-actions.pod:270
21968 msgid ""
21969 "I<This function is deprecated.> In new code, use the L</"
21970 "guestfs_add_drive_opts> call instead."
21971 msgstr ""
21972
21973 #. type: textblock
21974 #: ../src/guestfs-actions.pod:24
21975 msgid ""
21976 "This call checks for the existence of C<filename>.  This stops you from "
21977 "specifying other types of drive which are supported by qemu such as C<nbd:> "
21978 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
21979 "instead."
21980 msgstr ""
21981
21982 #. type: textblock
21983 #: ../src/guestfs-actions.pod:31
21984 msgid ""
21985 "If you just want to add an ISO file (often you use this as an efficient way "
21986 "to transfer large files into the guest), then you should probably use "
21987 "C<guestfs_add_drive_ro> instead."
21988 msgstr ""
21989
21990 #. type: textblock
21991 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
21992 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
21993 #: ../src/guestfs-actions.pod:259 ../src/guestfs-actions.pod:280
21994 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
21995 #: ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447
21996 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506
21997 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552
21998 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652
21999 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681
22000 #: ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798
22001 #: ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826
22002 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046
22003 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084
22004 #: ../src/guestfs-actions.pod:1168 ../src/guestfs-actions.pod:1186
22005 #: ../src/guestfs-actions.pod:1205 ../src/guestfs-actions.pod:1219
22006 #: ../src/guestfs-actions.pod:1239 ../src/guestfs-actions.pod:1309
22007 #: ../src/guestfs-actions.pod:1340 ../src/guestfs-actions.pod:1365
22008 #: ../src/guestfs-actions.pod:1407 ../src/guestfs-actions.pod:1520
22009 #: ../src/guestfs-actions.pod:1547 ../src/guestfs-actions.pod:1762
22010 #: ../src/guestfs-actions.pod:1784 ../src/guestfs-actions.pod:1871
22011 #: ../src/guestfs-actions.pod:2346 ../src/guestfs-actions.pod:2490
22012 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2586
22013 #: ../src/guestfs-actions.pod:3626 ../src/guestfs-actions.pod:3641
22014 #: ../src/guestfs-actions.pod:3666 ../src/guestfs-actions.pod:3855
22015 #: ../src/guestfs-actions.pod:3869 ../src/guestfs-actions.pod:3882
22016 #: ../src/guestfs-actions.pod:3896 ../src/guestfs-actions.pod:3911
22017 #: ../src/guestfs-actions.pod:3947 ../src/guestfs-actions.pod:4019
22018 #: ../src/guestfs-actions.pod:4039 ../src/guestfs-actions.pod:4056
22019 #: ../src/guestfs-actions.pod:4079 ../src/guestfs-actions.pod:4102
22020 #: ../src/guestfs-actions.pod:4137 ../src/guestfs-actions.pod:4156
22021 #: ../src/guestfs-actions.pod:4175 ../src/guestfs-actions.pod:4210
22022 #: ../src/guestfs-actions.pod:4222 ../src/guestfs-actions.pod:4258
22023 #: ../src/guestfs-actions.pod:4274 ../src/guestfs-actions.pod:4287
22024 #: ../src/guestfs-actions.pod:4302 ../src/guestfs-actions.pod:4319
22025 #: ../src/guestfs-actions.pod:4412 ../src/guestfs-actions.pod:4432
22026 #: ../src/guestfs-actions.pod:4445 ../src/guestfs-actions.pod:4496
22027 #: ../src/guestfs-actions.pod:4514 ../src/guestfs-actions.pod:4532
22028 #: ../src/guestfs-actions.pod:4548 ../src/guestfs-actions.pod:4562
22029 #: ../src/guestfs-actions.pod:4576 ../src/guestfs-actions.pod:4593
22030 #: ../src/guestfs-actions.pod:4608 ../src/guestfs-actions.pod:4635
22031 #: ../src/guestfs-actions.pod:4698 ../src/guestfs-actions.pod:4771
22032 #: ../src/guestfs-actions.pod:4802 ../src/guestfs-actions.pod:4821
22033 #: ../src/guestfs-actions.pod:4840 ../src/guestfs-actions.pod:4852
22034 #: ../src/guestfs-actions.pod:4869 ../src/guestfs-actions.pod:4882
22035 #: ../src/guestfs-actions.pod:4897 ../src/guestfs-actions.pod:4912
22036 #: ../src/guestfs-actions.pod:4954 ../src/guestfs-actions.pod:4980
22037 #: ../src/guestfs-actions.pod:5019 ../src/guestfs-actions.pod:5039
22038 #: ../src/guestfs-actions.pod:5053 ../src/guestfs-actions.pod:5070
22039 #: ../src/guestfs-actions.pod:5119 ../src/guestfs-actions.pod:5172
22040 #: ../src/guestfs-actions.pod:5219 ../src/guestfs-actions.pod:5262
22041 #: ../src/guestfs-actions.pod:5290 ../src/guestfs-actions.pod:5307
22042 #: ../src/guestfs-actions.pod:5325 ../src/guestfs-actions.pod:5465
22043 #: ../src/guestfs-actions.pod:5522 ../src/guestfs-actions.pod:5544
22044 #: ../src/guestfs-actions.pod:5562 ../src/guestfs-actions.pod:5594
22045 #: ../src/guestfs-actions.pod:5660 ../src/guestfs-actions.pod:5677
22046 #: ../src/guestfs-actions.pod:5690 ../src/guestfs-actions.pod:5704
22047 #: ../src/guestfs-actions.pod:5993 ../src/guestfs-actions.pod:6012
22048 #: ../src/guestfs-actions.pod:6031 ../src/guestfs-actions.pod:6045
22049 #: ../src/guestfs-actions.pod:6057 ../src/guestfs-actions.pod:6071
22050 #: ../src/guestfs-actions.pod:6083 ../src/guestfs-actions.pod:6097
22051 #: ../src/guestfs-actions.pod:6113 ../src/guestfs-actions.pod:6134
22052 #: ../src/guestfs-actions.pod:6153 ../src/guestfs-actions.pod:6172
22053 #: ../src/guestfs-actions.pod:6202 ../src/guestfs-actions.pod:6220
22054 #: ../src/guestfs-actions.pod:6243 ../src/guestfs-actions.pod:6261
22055 #: ../src/guestfs-actions.pod:6280 ../src/guestfs-actions.pod:6301
22056 #: ../src/guestfs-actions.pod:6320 ../src/guestfs-actions.pod:6337
22057 #: ../src/guestfs-actions.pod:6356 ../src/guestfs-actions.pod:6384
22058 #: ../src/guestfs-actions.pod:6408 ../src/guestfs-actions.pod:6427
22059 #: ../src/guestfs-actions.pod:6451 ../src/guestfs-actions.pod:6470
22060 #: ../src/guestfs-actions.pod:6485 ../src/guestfs-actions.pod:6504
22061 #: ../src/guestfs-actions.pod:6548 ../src/guestfs-actions.pod:6578
22062 #: ../src/guestfs-actions.pod:6611 ../src/guestfs-actions.pod:6726
22063 #: ../src/guestfs-actions.pod:6847 ../src/guestfs-actions.pod:6859
22064 #: ../src/guestfs-actions.pod:6872 ../src/guestfs-actions.pod:6885
22065 #: ../src/guestfs-actions.pod:6907 ../src/guestfs-actions.pod:6920
22066 #: ../src/guestfs-actions.pod:6933 ../src/guestfs-actions.pod:6946
22067 #: ../src/guestfs-actions.pod:6961 ../src/guestfs-actions.pod:7020
22068 #: ../src/guestfs-actions.pod:7037 ../src/guestfs-actions.pod:7053
22069 #: ../src/guestfs-actions.pod:7069 ../src/guestfs-actions.pod:7086
22070 #: ../src/guestfs-actions.pod:7099 ../src/guestfs-actions.pod:7119
22071 #: ../src/guestfs-actions.pod:7155 ../src/guestfs-actions.pod:7169
22072 #: ../src/guestfs-actions.pod:7210 ../src/guestfs-actions.pod:7223
22073 #: ../src/guestfs-actions.pod:7241 ../src/guestfs-actions.pod:7275
22074 #: ../src/guestfs-actions.pod:7311 ../src/guestfs-actions.pod:7427
22075 #: ../src/guestfs-actions.pod:7442 ../src/guestfs-actions.pod:7456
22076 #: ../src/guestfs-actions.pod:7511 ../src/guestfs-actions.pod:7524
22077 #: ../src/guestfs-actions.pod:7569 ../src/guestfs-actions.pod:7609
22078 #: ../src/guestfs-actions.pod:7665 ../src/guestfs-actions.pod:7685
22079 #: ../src/guestfs-actions.pod:7718 ../src/guestfs-actions.pod:7782
22080 #: ../src/guestfs-actions.pod:7805 ../src/guestfs-actions.pod:7834
22081 msgid "This function returns 0 on success or -1 on error."
22082 msgstr ""
22083
22084 #. type: textblock
22085 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
22086 #: ../src/guestfs-actions.pod:1170 ../src/guestfs-actions.pod:1985
22087 #: ../src/guestfs-actions.pod:2083 ../src/guestfs-actions.pod:2197
22088 #: ../src/guestfs-actions.pod:3628 ../src/guestfs-actions.pod:3648
22089 #: ../src/guestfs-actions.pod:4956 ../src/guestfs-actions.pod:6222
22090 #: ../src/guestfs-actions.pod:6339 ../src/guestfs-actions.pod:6472
22091 #: ../src/guestfs-actions.pod:6963 ../src/guestfs-actions.pod:7088
22092 #: ../src/guestfs-actions.pod:7611
22093 msgid "(Added in 0.3)"
22094 msgstr ""
22095
22096 #. type: =head2
22097 #: ../src/guestfs-actions.pod:41
22098 msgid "guestfs_add_domain"
22099 msgstr ""
22100
22101 #. type: verbatim
22102 #: ../src/guestfs-actions.pod:43
22103 #, no-wrap
22104 msgid ""
22105 " int\n"
22106 " guestfs_add_domain (guestfs_h *g,\n"
22107 "                     const char *dom,\n"
22108 "                     ...);\n"
22109 "\n"
22110 msgstr ""
22111
22112 #. type: textblock
22113 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
22114 #: ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:2831
22115 #: ../src/guestfs-actions.pod:4647 ../src/guestfs-actions.pod:4966
22116 #: ../src/guestfs-actions.pod:5183
22117 msgid ""
22118 "You may supply a list of optional arguments to this call.  Use zero or more "
22119 "of the following pairs of parameters, and terminate the list with C<-1> on "
22120 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
22121 msgstr ""
22122
22123 #. type: verbatim
22124 #: ../src/guestfs-actions.pod:53
22125 #, no-wrap
22126 msgid ""
22127 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
22128 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
22129 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
22130 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
22131 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
22132 "\n"
22133 msgstr ""
22134
22135 #. type: textblock
22136 #: ../src/guestfs-actions.pod:59
22137 msgid ""
22138 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
22139 "It works by connecting to libvirt, requesting the domain and domain XML from "
22140 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
22141 "one."
22142 msgstr ""
22143
22144 #. type: textblock
22145 #: ../src/guestfs-actions.pod:94
22146 msgid ""
22147 "The other optional parameters are passed directly through to "
22148 "C<guestfs_add_drive_opts>."
22149 msgstr ""
22150
22151 #. type: textblock
22152 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
22153 #: ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698
22154 #: ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747
22155 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1385
22156 #: ../src/guestfs-actions.pod:1741 ../src/guestfs-actions.pod:1944
22157 #: ../src/guestfs-actions.pod:2055 ../src/guestfs-actions.pod:2106
22158 #: ../src/guestfs-actions.pod:2161 ../src/guestfs-actions.pod:2184
22159 #: ../src/guestfs-actions.pod:2477 ../src/guestfs-actions.pod:2949
22160 #: ../src/guestfs-actions.pod:2967 ../src/guestfs-actions.pod:5142
22161 #: ../src/guestfs-actions.pod:5362 ../src/guestfs-actions.pod:5774
22162 #: ../src/guestfs-actions.pod:5800 ../src/guestfs-actions.pod:7196
22163 #: ../src/guestfs-actions.pod:7622 ../src/guestfs-actions.pod:7635
22164 #: ../src/guestfs-actions.pod:7648
22165 msgid "On error this function returns -1."
22166 msgstr ""
22167
22168 #. type: textblock
22169 #: ../src/guestfs-actions.pod:99
22170 msgid "(Added in 1.7.4)"
22171 msgstr ""
22172
22173 #. type: =head2
22174 #: ../src/guestfs-actions.pod:101
22175 msgid "guestfs_add_domain_va"
22176 msgstr ""
22177
22178 #. type: verbatim
22179 #: ../src/guestfs-actions.pod:103
22180 #, no-wrap
22181 msgid ""
22182 " int\n"
22183 " guestfs_add_domain_va (guestfs_h *g,\n"
22184 "                        const char *dom,\n"
22185 "                        va_list args);\n"
22186 "\n"
22187 msgstr ""
22188
22189 #. type: textblock
22190 #: ../src/guestfs-actions.pod:108
22191 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
22192 msgstr ""
22193
22194 #. type: textblock
22195 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
22196 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
22197 #: ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887
22198 #: ../src/guestfs-actions.pod:2915 ../src/guestfs-actions.pod:2927
22199 #: ../src/guestfs-actions.pod:4712 ../src/guestfs-actions.pod:4724
22200 #: ../src/guestfs-actions.pod:4994 ../src/guestfs-actions.pod:5006
22201 #: ../src/guestfs-actions.pod:5232 ../src/guestfs-actions.pod:5243
22202 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
22203 msgstr ""
22204
22205 #. type: =head2
22206 #: ../src/guestfs-actions.pod:112
22207 msgid "guestfs_add_domain_argv"
22208 msgstr ""
22209
22210 #. type: verbatim
22211 #: ../src/guestfs-actions.pod:114
22212 #, no-wrap
22213 msgid ""
22214 " int\n"
22215 " guestfs_add_domain_argv (guestfs_h *g,\n"
22216 "                          const char *dom,\n"
22217 "                          const struct guestfs_add_domain_argv *optargs);\n"
22218 "\n"
22219 msgstr ""
22220
22221 #. type: textblock
22222 #: ../src/guestfs-actions.pod:119
22223 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
22224 msgstr ""
22225
22226 #. type: =head2
22227 #: ../src/guestfs-actions.pod:123
22228 msgid "guestfs_add_drive"
22229 msgstr ""
22230
22231 #. type: verbatim
22232 #: ../src/guestfs-actions.pod:125
22233 #, no-wrap
22234 msgid ""
22235 " int\n"
22236 " guestfs_add_drive (guestfs_h *g,\n"
22237 "                    const char *filename);\n"
22238 "\n"
22239 msgstr ""
22240
22241 #. type: textblock
22242 #: ../src/guestfs-actions.pod:129
22243 msgid ""
22244 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
22245 "optional parameters, so the disk is added writable, with the format being "
22246 "detected automatically."
22247 msgstr ""
22248
22249 #. type: textblock
22250 #: ../src/guestfs-actions.pod:133
22251 msgid ""
22252 "Automatic detection of the format opens you up to a potential security hole "
22253 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
22254 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
22255 "you should think about replacing calls to this function with calls to "
22256 "C<guestfs_add_drive_opts>, and specifying the format."
22257 msgstr ""
22258
22259 #. type: =head2
22260 #: ../src/guestfs-actions.pod:144
22261 msgid "guestfs_add_drive_opts"
22262 msgstr ""
22263
22264 #. type: verbatim
22265 #: ../src/guestfs-actions.pod:146
22266 #, no-wrap
22267 msgid ""
22268 " int\n"
22269 " guestfs_add_drive_opts (guestfs_h *g,\n"
22270 "                         const char *filename,\n"
22271 "                         ...);\n"
22272 "\n"
22273 msgstr ""
22274
22275 #. type: verbatim
22276 #: ../src/guestfs-actions.pod:156
22277 #, no-wrap
22278 msgid ""
22279 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
22280 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
22281 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
22282 "\n"
22283 msgstr ""
22284
22285 #. type: textblock
22286 #: ../src/guestfs-actions.pod:185
22287 msgid ""
22288 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
22289 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
22290 "Possible formats include C<raw> and C<qcow2>."
22291 msgstr ""
22292
22293 #. type: textblock
22294 #: ../src/guestfs-actions.pod:196
22295 msgid ""
22296 "This rarely-used option lets you emulate the behaviour of the deprecated "
22297 "C<guestfs_add_drive_with_if> call (q.v.)"
22298 msgstr ""
22299
22300 #. type: textblock
22301 #: ../src/guestfs-actions.pod:203
22302 msgid "(Added in 1.5.23)"
22303 msgstr ""
22304
22305 #. type: =head2
22306 #: ../src/guestfs-actions.pod:205
22307 msgid "guestfs_add_drive_opts_va"
22308 msgstr ""
22309
22310 #. type: verbatim
22311 #: ../src/guestfs-actions.pod:207
22312 #, no-wrap
22313 msgid ""
22314 " int\n"
22315 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
22316 "                            const char *filename,\n"
22317 "                            va_list args);\n"
22318 "\n"
22319 msgstr ""
22320
22321 #. type: textblock
22322 #: ../src/guestfs-actions.pod:212
22323 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
22324 msgstr ""
22325
22326 #. type: =head2
22327 #: ../src/guestfs-actions.pod:216
22328 msgid "guestfs_add_drive_opts_argv"
22329 msgstr ""
22330
22331 #. type: verbatim
22332 #: ../src/guestfs-actions.pod:218
22333 #, no-wrap
22334 msgid ""
22335 " int\n"
22336 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
22337 "                              const char *filename,\n"
22338 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
22339 "\n"
22340 msgstr ""
22341
22342 #. type: textblock
22343 #: ../src/guestfs-actions.pod:223
22344 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
22345 msgstr ""
22346
22347 #. type: =head2
22348 #: ../src/guestfs-actions.pod:227
22349 msgid "guestfs_add_drive_ro"
22350 msgstr ""
22351
22352 #. type: verbatim
22353 #: ../src/guestfs-actions.pod:229
22354 #, no-wrap
22355 msgid ""
22356 " int\n"
22357 " guestfs_add_drive_ro (guestfs_h *g,\n"
22358 "                       const char *filename);\n"
22359 "\n"
22360 msgstr ""
22361
22362 #. type: textblock
22363 #: ../src/guestfs-actions.pod:233
22364 msgid ""
22365 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
22366 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
22367 "disk is added read-only, with the format being detected automatically."
22368 msgstr ""
22369
22370 #. type: textblock
22371 #: ../src/guestfs-actions.pod:240
22372 msgid "(Added in 1.0.38)"
22373 msgstr ""
22374
22375 #. type: =head2
22376 #: ../src/guestfs-actions.pod:242
22377 msgid "guestfs_add_drive_ro_with_if"
22378 msgstr ""
22379
22380 #. type: verbatim
22381 #: ../src/guestfs-actions.pod:244
22382 #, no-wrap
22383 msgid ""
22384 " int\n"
22385 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
22386 "                               const char *filename,\n"
22387 "                               const char *iface);\n"
22388 "\n"
22389 msgstr ""
22390
22391 #. type: textblock
22392 #: ../src/guestfs-actions.pod:256
22393 msgid ""
22394 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
22395 "QEMU interface emulation to use at run time."
22396 msgstr ""
22397
22398 #. type: textblock
22399 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
22400 #: ../src/guestfs-actions.pod:2436
22401 msgid "(Added in 1.0.84)"
22402 msgstr ""
22403
22404 #. type: =head2
22405 #: ../src/guestfs-actions.pod:263
22406 msgid "guestfs_add_drive_with_if"
22407 msgstr ""
22408
22409 #. type: verbatim
22410 #: ../src/guestfs-actions.pod:265
22411 #, no-wrap
22412 msgid ""
22413 " int\n"
22414 " guestfs_add_drive_with_if (guestfs_h *g,\n"
22415 "                            const char *filename,\n"
22416 "                            const char *iface);\n"
22417 "\n"
22418 msgstr ""
22419
22420 #. type: textblock
22421 #: ../src/guestfs-actions.pod:277
22422 msgid ""
22423 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
22424 "QEMU interface emulation to use at run time."
22425 msgstr ""
22426
22427 #. type: =head2
22428 #: ../src/guestfs-actions.pod:284
22429 msgid "guestfs_aug_clear"
22430 msgstr ""
22431
22432 #. type: verbatim
22433 #: ../src/guestfs-actions.pod:286
22434 #, no-wrap
22435 msgid ""
22436 " int\n"
22437 " guestfs_aug_clear (guestfs_h *g,\n"
22438 "                    const char *augpath);\n"
22439 "\n"
22440 msgstr ""
22441
22442 #. type: textblock
22443 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2186
22444 msgid "(Added in 1.3.4)"
22445 msgstr ""
22446
22447 #. type: =head2
22448 #: ../src/guestfs-actions.pod:297
22449 msgid "guestfs_aug_close"
22450 msgstr ""
22451
22452 #. type: verbatim
22453 #: ../src/guestfs-actions.pod:299
22454 #, no-wrap
22455 msgid ""
22456 " int\n"
22457 " guestfs_aug_close (guestfs_h *g);\n"
22458 "\n"
22459 msgstr ""
22460
22461 #. type: textblock
22462 #: ../src/guestfs-actions.pod:302
22463 msgid ""
22464 "Close the current Augeas handle and free up any resources used by it.  After "
22465 "calling this, you have to call C<guestfs_aug_init> again before you can use "
22466 "any other Augeas functions."
22467 msgstr ""
22468
22469 #. type: textblock
22470 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
22471 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
22472 #: ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449
22473 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494
22474 #: ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522
22475 #: ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554
22476 #: ../src/guestfs-actions.pod:5851
22477 msgid "(Added in 0.7)"
22478 msgstr ""
22479
22480 #. type: =head2
22481 #: ../src/guestfs-actions.pod:311
22482 msgid "guestfs_aug_defnode"
22483 msgstr ""
22484
22485 #. type: verbatim
22486 #: ../src/guestfs-actions.pod:313
22487 #, no-wrap
22488 msgid ""
22489 " struct guestfs_int_bool *\n"
22490 " guestfs_aug_defnode (guestfs_h *g,\n"
22491 "                      const char *name,\n"
22492 "                      const char *expr,\n"
22493 "                      const char *val);\n"
22494 "\n"
22495 msgstr ""
22496
22497 #. type: textblock
22498 #: ../src/guestfs-actions.pod:322
22499 msgid ""
22500 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
22501 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
22502 "containing that single node."
22503 msgstr ""
22504
22505 #. type: textblock
22506 #: ../src/guestfs-actions.pod:330
22507 msgid ""
22508 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
22509 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
22510 msgstr ""
22511
22512 #. type: =head2
22513 #: ../src/guestfs-actions.pod:336
22514 msgid "guestfs_aug_defvar"
22515 msgstr ""
22516
22517 #. type: verbatim
22518 #: ../src/guestfs-actions.pod:338
22519 #, no-wrap
22520 msgid ""
22521 " int\n"
22522 " guestfs_aug_defvar (guestfs_h *g,\n"
22523 "                     const char *name,\n"
22524 "                     const char *expr);\n"
22525 "\n"
22526 msgstr ""
22527
22528 #. type: =head2
22529 #: ../src/guestfs-actions.pod:354
22530 msgid "guestfs_aug_get"
22531 msgstr ""
22532
22533 #. type: verbatim
22534 #: ../src/guestfs-actions.pod:356
22535 #, no-wrap
22536 msgid ""
22537 " char *\n"
22538 " guestfs_aug_get (guestfs_h *g,\n"
22539 "                  const char *augpath);\n"
22540 "\n"
22541 msgstr ""
22542
22543 #. type: textblock
22544 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927
22545 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005
22546 #: ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124
22547 #: ../src/guestfs-actions.pod:1254 ../src/guestfs-actions.pod:1271
22548 #: ../src/guestfs-actions.pod:1290 ../src/guestfs-actions.pod:1424
22549 #: ../src/guestfs-actions.pod:1612 ../src/guestfs-actions.pod:1724
22550 #: ../src/guestfs-actions.pod:1887 ../src/guestfs-actions.pod:1904
22551 #: ../src/guestfs-actions.pod:1971 ../src/guestfs-actions.pod:2014
22552 #: ../src/guestfs-actions.pod:2035 ../src/guestfs-actions.pod:2209
22553 #: ../src/guestfs-actions.pod:2401 ../src/guestfs-actions.pod:2605
22554 #: ../src/guestfs-actions.pod:2695 ../src/guestfs-actions.pod:2799
22555 #: ../src/guestfs-actions.pod:2818 ../src/guestfs-actions.pod:3032
22556 #: ../src/guestfs-actions.pod:3060 ../src/guestfs-actions.pod:3081
22557 #: ../src/guestfs-actions.pod:3115 ../src/guestfs-actions.pod:3174
22558 #: ../src/guestfs-actions.pod:3194 ../src/guestfs-actions.pod:3214
22559 #: ../src/guestfs-actions.pod:3841 ../src/guestfs-actions.pod:4194
22560 #: ../src/guestfs-actions.pod:4364 ../src/guestfs-actions.pod:4474
22561 #: ../src/guestfs-actions.pod:5380 ../src/guestfs-actions.pod:5579
22562 #: ../src/guestfs-actions.pod:5749 ../src/guestfs-actions.pod:5927
22563 #: ../src/guestfs-actions.pod:5976 ../src/guestfs-actions.pod:6632
22564 #: ../src/guestfs-actions.pod:6648 ../src/guestfs-actions.pod:6672
22565 #: ../src/guestfs-actions.pod:6696 ../src/guestfs-actions.pod:7370
22566 #: ../src/guestfs-actions.pod:7389 ../src/guestfs-actions.pod:7407
22567 #: ../src/guestfs-actions.pod:7581 ../src/guestfs-actions.pod:7898
22568 msgid ""
22569 "This function returns a string, or NULL on error.  I<The caller must free "
22570 "the returned string after use>."
22571 msgstr ""
22572
22573 #. type: =head2
22574 #: ../src/guestfs-actions.pod:368
22575 msgid "guestfs_aug_init"
22576 msgstr ""
22577
22578 #. type: verbatim
22579 #: ../src/guestfs-actions.pod:370
22580 #, no-wrap
22581 msgid ""
22582 " int\n"
22583 " guestfs_aug_init (guestfs_h *g,\n"
22584 "                   const char *root,\n"
22585 "                   int flags);\n"
22586 "\n"
22587 msgstr ""
22588
22589 #. type: textblock
22590 #: ../src/guestfs-actions.pod:379
22591 msgid "You must call this before using any other C<guestfs_aug_*> commands."
22592 msgstr ""
22593
22594 #. type: textblock
22595 #: ../src/guestfs-actions.pod:404
22596 msgid ""
22597 "This option is only useful when debugging Augeas lenses.  Use of this option "
22598 "may require additional memory for the libguestfs appliance.  You may need to "
22599 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
22600 "C<guestfs_set_memsize>."
22601 msgstr ""
22602
22603 #. type: textblock
22604 #: ../src/guestfs-actions.pod:419
22605 msgid "Do not load the tree in C<guestfs_aug_init>."
22606 msgstr ""
22607
22608 #. type: textblock
22609 #: ../src/guestfs-actions.pod:423
22610 msgid "To close the handle, you can call C<guestfs_aug_close>."
22611 msgstr ""
22612
22613 #. type: =head2
22614 #: ../src/guestfs-actions.pod:431
22615 msgid "guestfs_aug_insert"
22616 msgstr ""
22617
22618 #. type: verbatim
22619 #: ../src/guestfs-actions.pod:433
22620 #, no-wrap
22621 msgid ""
22622 " int\n"
22623 " guestfs_aug_insert (guestfs_h *g,\n"
22624 "                     const char *augpath,\n"
22625 "                     const char *label,\n"
22626 "                     int before);\n"
22627 "\n"
22628 msgstr ""
22629
22630 #. type: =head2
22631 #: ../src/guestfs-actions.pod:451
22632 msgid "guestfs_aug_load"
22633 msgstr ""
22634
22635 #. type: verbatim
22636 #: ../src/guestfs-actions.pod:453
22637 #, no-wrap
22638 msgid ""
22639 " int\n"
22640 " guestfs_aug_load (guestfs_h *g);\n"
22641 "\n"
22642 msgstr ""
22643
22644 #. type: =head2
22645 #: ../src/guestfs-actions.pod:465
22646 msgid "guestfs_aug_ls"
22647 msgstr ""
22648
22649 #. type: verbatim
22650 #: ../src/guestfs-actions.pod:467
22651 #, no-wrap
22652 msgid ""
22653 " char **\n"
22654 " guestfs_aug_ls (guestfs_h *g,\n"
22655 "                 const char *augpath);\n"
22656 "\n"
22657 msgstr ""
22658
22659 #. type: textblock
22660 #: ../src/guestfs-actions.pod:471
22661 msgid ""
22662 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
22663 "sorting the resulting nodes into alphabetical order."
22664 msgstr ""
22665
22666 #. type: textblock
22667 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490
22668 #: ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143
22669 #: ../src/guestfs-actions.pod:1439 ../src/guestfs-actions.pod:1458
22670 #: ../src/guestfs-actions.pod:1561 ../src/guestfs-actions.pod:1580
22671 #: ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:2281
22672 #: ../src/guestfs-actions.pod:2297 ../src/guestfs-actions.pod:2316
22673 #: ../src/guestfs-actions.pod:2359 ../src/guestfs-actions.pod:2383
22674 #: ../src/guestfs-actions.pod:2454 ../src/guestfs-actions.pod:2503
22675 #: ../src/guestfs-actions.pod:2760 ../src/guestfs-actions.pod:3134
22676 #: ../src/guestfs-actions.pod:3410 ../src/guestfs-actions.pod:3724
22677 #: ../src/guestfs-actions.pod:3741 ../src/guestfs-actions.pod:3761
22678 #: ../src/guestfs-actions.pod:3823 ../src/guestfs-actions.pod:3928
22679 #: ../src/guestfs-actions.pod:4336 ../src/guestfs-actions.pod:5103
22680 #: ../src/guestfs-actions.pod:5721 ../src/guestfs-actions.pod:5847
22681 #: ../src/guestfs-actions.pod:5961 ../src/guestfs-actions.pod:6712
22682 #: ../src/guestfs-actions.pod:6773 ../src/guestfs-actions.pod:6828
22683 #: ../src/guestfs-actions.pod:6974 ../src/guestfs-actions.pod:6998
22684 #: ../src/guestfs-actions.pod:7474 ../src/guestfs-actions.pod:7494
22685 #: ../src/guestfs-actions.pod:7541 ../src/guestfs-actions.pod:7735
22686 #: ../src/guestfs-actions.pod:7754 ../src/guestfs-actions.pod:7848
22687 #: ../src/guestfs-actions.pod:7867 ../src/guestfs-actions.pod:7913
22688 #: ../src/guestfs-actions.pod:7932
22689 msgid ""
22690 "This function returns a NULL-terminated array of strings (like L<environ(3)"
22691 ">), or NULL if there was an error.  I<The caller must free the strings and "
22692 "the array after use>."
22693 msgstr ""
22694
22695 #. type: textblock
22696 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068
22697 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1496
22698 #: ../src/guestfs-actions.pod:3488 ../src/guestfs-actions.pod:3519
22699 #: ../src/guestfs-actions.pod:4177 ../src/guestfs-actions.pod:4227
22700 #: ../src/guestfs-actions.pod:4414 ../src/guestfs-actions.pod:4447
22701 #: ../src/guestfs-actions.pod:4610 ../src/guestfs-actions.pod:5107
22702 #: ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:6059
22703 #: ../src/guestfs-actions.pod:6073 ../src/guestfs-actions.pod:6085
22704 #: ../src/guestfs-actions.pod:6553 ../src/guestfs-actions.pod:7212
22705 #: ../src/guestfs-actions.pod:7225 ../src/guestfs-actions.pod:7458
22706 #: ../src/guestfs-actions.pod:7723
22707 msgid "(Added in 0.8)"
22708 msgstr ""
22709
22710 #. type: =head2
22711 #: ../src/guestfs-actions.pod:480
22712 msgid "guestfs_aug_match"
22713 msgstr ""
22714
22715 #. type: verbatim
22716 #: ../src/guestfs-actions.pod:482
22717 #, no-wrap
22718 msgid ""
22719 " char **\n"
22720 " guestfs_aug_match (guestfs_h *g,\n"
22721 "                    const char *augpath);\n"
22722 "\n"
22723 msgstr ""
22724
22725 #. type: =head2
22726 #: ../src/guestfs-actions.pod:496
22727 msgid "guestfs_aug_mv"
22728 msgstr ""
22729
22730 #. type: verbatim
22731 #: ../src/guestfs-actions.pod:498
22732 #, no-wrap
22733 msgid ""
22734 " int\n"
22735 " guestfs_aug_mv (guestfs_h *g,\n"
22736 "                 const char *src,\n"
22737 "                 const char *dest);\n"
22738 "\n"
22739 msgstr ""
22740
22741 #. type: =head2
22742 #: ../src/guestfs-actions.pod:510
22743 msgid "guestfs_aug_rm"
22744 msgstr ""
22745
22746 #. type: verbatim
22747 #: ../src/guestfs-actions.pod:512
22748 #, no-wrap
22749 msgid ""
22750 " int\n"
22751 " guestfs_aug_rm (guestfs_h *g,\n"
22752 "                 const char *augpath);\n"
22753 "\n"
22754 msgstr ""
22755
22756 #. type: =head2
22757 #: ../src/guestfs-actions.pod:524
22758 msgid "guestfs_aug_save"
22759 msgstr ""
22760
22761 #. type: verbatim
22762 #: ../src/guestfs-actions.pod:526
22763 #, no-wrap
22764 msgid ""
22765 " int\n"
22766 " guestfs_aug_save (guestfs_h *g);\n"
22767 "\n"
22768 msgstr ""
22769
22770 #. type: textblock
22771 #: ../src/guestfs-actions.pod:531
22772 msgid ""
22773 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
22774 "are saved."
22775 msgstr ""
22776
22777 #. type: =head2
22778 #: ../src/guestfs-actions.pod:538
22779 msgid "guestfs_aug_set"
22780 msgstr ""
22781
22782 #. type: verbatim
22783 #: ../src/guestfs-actions.pod:540
22784 #, no-wrap
22785 msgid ""
22786 " int\n"
22787 " guestfs_aug_set (guestfs_h *g,\n"
22788 "                  const char *augpath,\n"
22789 "                  const char *val);\n"
22790 "\n"
22791 msgstr ""
22792
22793 #. type: textblock
22794 #: ../src/guestfs-actions.pod:547
22795 msgid ""
22796 "In the Augeas API, it is possible to clear a node by setting the value to "
22797 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
22798 "this call.  Instead you must use the C<guestfs_aug_clear> call."
22799 msgstr ""
22800
22801 #. type: =head2
22802 #: ../src/guestfs-actions.pod:556
22803 msgid "guestfs_available"
22804 msgstr ""
22805
22806 #. type: verbatim
22807 #: ../src/guestfs-actions.pod:558
22808 #, no-wrap
22809 msgid ""
22810 " int\n"
22811 " guestfs_available (guestfs_h *g,\n"
22812 "                    char *const *groups);\n"
22813 "\n"
22814 msgstr ""
22815
22816 #. type: textblock
22817 #: ../src/guestfs-actions.pod:566
22818 msgid ""
22819 "The libguestfs groups, and the functions that those groups correspond to, "
22820 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
22821 "runtime by calling C<guestfs_available_all_groups>."
22822 msgstr ""
22823
22824 #. type: textblock
22825 #: ../src/guestfs-actions.pod:590
22826 msgid "You must call C<guestfs_launch> before calling this function."
22827 msgstr ""
22828
22829 #. type: textblock
22830 #: ../src/guestfs-actions.pod:612
22831 msgid ""
22832 "This call was added in version C<1.0.80>.  In previous versions of "
22833 "libguestfs all you could do would be to speculatively execute a command to "
22834 "find out if the daemon implemented it.  See also C<guestfs_version>."
22835 msgstr ""
22836
22837 #. type: textblock
22838 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1241
22839 msgid "(Added in 1.0.80)"
22840 msgstr ""
22841
22842 #. type: =head2
22843 #: ../src/guestfs-actions.pod:623
22844 msgid "guestfs_available_all_groups"
22845 msgstr ""
22846
22847 #. type: verbatim
22848 #: ../src/guestfs-actions.pod:625
22849 #, no-wrap
22850 msgid ""
22851 " char **\n"
22852 " guestfs_available_all_groups (guestfs_h *g);\n"
22853 "\n"
22854 msgstr ""
22855
22856 #. type: textblock
22857 #: ../src/guestfs-actions.pod:628
22858 msgid ""
22859 "This command returns a list of all optional groups that this daemon knows "
22860 "about.  Note this returns both supported and unsupported groups.  To find "
22861 "out which ones the daemon can actually support you have to call "
22862 "C<guestfs_available> on each member of the returned list."
22863 msgstr ""
22864
22865 #. type: textblock
22866 #: ../src/guestfs-actions.pod:634
22867 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
22868 msgstr ""
22869
22870 #. type: textblock
22871 #: ../src/guestfs-actions.pod:640
22872 msgid "(Added in 1.3.15)"
22873 msgstr ""
22874
22875 #. type: =head2
22876 #: ../src/guestfs-actions.pod:642
22877 msgid "guestfs_base64_in"
22878 msgstr ""
22879
22880 #. type: verbatim
22881 #: ../src/guestfs-actions.pod:644
22882 #, no-wrap
22883 msgid ""
22884 " int\n"
22885 " guestfs_base64_in (guestfs_h *g,\n"
22886 "                    const char *base64file,\n"
22887 "                    const char *filename);\n"
22888 "\n"
22889 msgstr ""
22890
22891 #. type: textblock
22892 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
22893 msgid "(Added in 1.3.5)"
22894 msgstr ""
22895
22896 #. type: =head2
22897 #: ../src/guestfs-actions.pod:656
22898 msgid "guestfs_base64_out"
22899 msgstr ""
22900
22901 #. type: verbatim
22902 #: ../src/guestfs-actions.pod:658
22903 #, no-wrap
22904 msgid ""
22905 " int\n"
22906 " guestfs_base64_out (guestfs_h *g,\n"
22907 "                     const char *filename,\n"
22908 "                     const char *base64file);\n"
22909 "\n"
22910 msgstr ""
22911
22912 #. type: =head2
22913 #: ../src/guestfs-actions.pod:670
22914 msgid "guestfs_blockdev_flushbufs"
22915 msgstr ""
22916
22917 #. type: verbatim
22918 #: ../src/guestfs-actions.pod:672
22919 #, no-wrap
22920 msgid ""
22921 " int\n"
22922 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
22923 "                             const char *device);\n"
22924 "\n"
22925 msgstr ""
22926
22927 #. type: textblock
22928 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700
22929 #: ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731
22930 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768
22931 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
22932 #: ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
22933 msgid "(Added in 0.9.3)"
22934 msgstr ""
22935
22936 #. type: =head2
22937 #: ../src/guestfs-actions.pod:685
22938 msgid "guestfs_blockdev_getbsz"
22939 msgstr ""
22940
22941 #. type: verbatim
22942 #: ../src/guestfs-actions.pod:687
22943 #, no-wrap
22944 msgid ""
22945 " int\n"
22946 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
22947 "                          const char *device);\n"
22948 "\n"
22949 msgstr ""
22950
22951 #. type: =head2
22952 #: ../src/guestfs-actions.pod:702
22953 msgid "guestfs_blockdev_getro"
22954 msgstr ""
22955
22956 #. type: verbatim
22957 #: ../src/guestfs-actions.pod:704
22958 #, no-wrap
22959 msgid ""
22960 " int\n"
22961 " guestfs_blockdev_getro (guestfs_h *g,\n"
22962 "                         const char *device);\n"
22963 "\n"
22964 msgstr ""
22965
22966 #. type: textblock
22967 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1479
22968 #: ../src/guestfs-actions.pod:1494 ../src/guestfs-actions.pod:1983
22969 #: ../src/guestfs-actions.pod:1994 ../src/guestfs-actions.pod:2066
22970 #: ../src/guestfs-actions.pod:2092 ../src/guestfs-actions.pod:2132
22971 #: ../src/guestfs-actions.pod:2147 ../src/guestfs-actions.pod:2172
22972 #: ../src/guestfs-actions.pod:2195 ../src/guestfs-actions.pod:3231
22973 #: ../src/guestfs-actions.pod:3247 ../src/guestfs-actions.pod:3265
22974 #: ../src/guestfs-actions.pod:3427 ../src/guestfs-actions.pod:3441
22975 #: ../src/guestfs-actions.pod:3456 ../src/guestfs-actions.pod:3470
22976 #: ../src/guestfs-actions.pod:3486 ../src/guestfs-actions.pod:3501
22977 #: ../src/guestfs-actions.pod:3517 ../src/guestfs-actions.pod:3531
22978 #: ../src/guestfs-actions.pod:3544 ../src/guestfs-actions.pod:3558
22979 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3588
22980 #: ../src/guestfs-actions.pod:3601 ../src/guestfs-actions.pod:3615
22981 #: ../src/guestfs-actions.pod:5344
22982 msgid "This function returns a C truth value on success or -1 on error."
22983 msgstr ""
22984
22985 #. type: =head2
22986 #: ../src/guestfs-actions.pod:717
22987 msgid "guestfs_blockdev_getsize64"
22988 msgstr ""
22989
22990 #. type: verbatim
22991 #: ../src/guestfs-actions.pod:719
22992 #, no-wrap
22993 msgid ""
22994 " int64_t\n"
22995 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
22996 "                             const char *device);\n"
22997 "\n"
22998 msgstr ""
22999
23000 #. type: textblock
23001 #: ../src/guestfs-actions.pod:725
23002 msgid "See also C<guestfs_blockdev_getsz>."
23003 msgstr ""
23004
23005 #. type: =head2
23006 #: ../src/guestfs-actions.pod:733
23007 msgid "guestfs_blockdev_getss"
23008 msgstr ""
23009
23010 #. type: verbatim
23011 #: ../src/guestfs-actions.pod:735
23012 #, no-wrap
23013 msgid ""
23014 " int\n"
23015 " guestfs_blockdev_getss (guestfs_h *g,\n"
23016 "                         const char *device);\n"
23017 "\n"
23018 msgstr ""
23019
23020 #. type: textblock
23021 #: ../src/guestfs-actions.pod:742
23022 msgid ""
23023 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
23024 "that)."
23025 msgstr ""
23026
23027 #. type: =head2
23028 #: ../src/guestfs-actions.pod:751
23029 msgid "guestfs_blockdev_getsz"
23030 msgstr ""
23031
23032 #. type: verbatim
23033 #: ../src/guestfs-actions.pod:753
23034 #, no-wrap
23035 msgid ""
23036 " int64_t\n"
23037 " guestfs_blockdev_getsz (guestfs_h *g,\n"
23038 "                         const char *device);\n"
23039 "\n"
23040 msgstr ""
23041
23042 #. type: textblock
23043 #: ../src/guestfs-actions.pod:760
23044 msgid ""
23045 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
23046 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
23047 msgstr ""
23048
23049 #. type: =head2
23050 #: ../src/guestfs-actions.pod:770
23051 msgid "guestfs_blockdev_rereadpt"
23052 msgstr ""
23053
23054 #. type: verbatim
23055 #: ../src/guestfs-actions.pod:772
23056 #, no-wrap
23057 msgid ""
23058 " int\n"
23059 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
23060 "                            const char *device);\n"
23061 "\n"
23062 msgstr ""
23063
23064 #. type: =head2
23065 #: ../src/guestfs-actions.pod:784
23066 msgid "guestfs_blockdev_setbsz"
23067 msgstr ""
23068
23069 #. type: verbatim
23070 #: ../src/guestfs-actions.pod:786
23071 #, no-wrap
23072 msgid ""
23073 " int\n"
23074 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
23075 "                          const char *device,\n"
23076 "                          int blocksize);\n"
23077 "\n"
23078 msgstr ""
23079
23080 #. type: =head2
23081 #: ../src/guestfs-actions.pod:802
23082 msgid "guestfs_blockdev_setro"
23083 msgstr ""
23084
23085 #. type: verbatim
23086 #: ../src/guestfs-actions.pod:804
23087 #, no-wrap
23088 msgid ""
23089 " int\n"
23090 " guestfs_blockdev_setro (guestfs_h *g,\n"
23091 "                         const char *device);\n"
23092 "\n"
23093 msgstr ""
23094
23095 #. type: =head2
23096 #: ../src/guestfs-actions.pod:816
23097 msgid "guestfs_blockdev_setrw"
23098 msgstr ""
23099
23100 #. type: verbatim
23101 #: ../src/guestfs-actions.pod:818
23102 #, no-wrap
23103 msgid ""
23104 " int\n"
23105 " guestfs_blockdev_setrw (guestfs_h *g,\n"
23106 "                         const char *device);\n"
23107 "\n"
23108 msgstr ""
23109
23110 #. type: =head2
23111 #: ../src/guestfs-actions.pod:830
23112 msgid "guestfs_btrfs_filesystem_resize"
23113 msgstr ""
23114
23115 #. type: verbatim
23116 #: ../src/guestfs-actions.pod:832
23117 #, no-wrap
23118 msgid ""
23119 " int\n"
23120 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
23121 "                                  const char *mountpoint,\n"
23122 "                                  ...);\n"
23123 "\n"
23124 msgstr ""
23125
23126 #. type: verbatim
23127 #: ../src/guestfs-actions.pod:842
23128 #, no-wrap
23129 msgid ""
23130 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
23131 "\n"
23132 msgstr ""
23133
23134 #. type: textblock
23135 #: ../src/guestfs-actions.pod:865
23136 msgid "(Added in 1.11.17)"
23137 msgstr ""
23138
23139 #. type: =head2
23140 #: ../src/guestfs-actions.pod:867
23141 msgid "guestfs_btrfs_filesystem_resize_va"
23142 msgstr ""
23143
23144 #. type: verbatim
23145 #: ../src/guestfs-actions.pod:869
23146 #, no-wrap
23147 msgid ""
23148 " int\n"
23149 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
23150 "                                     const char *mountpoint,\n"
23151 "                                     va_list args);\n"
23152 "\n"
23153 msgstr ""
23154
23155 #. type: textblock
23156 #: ../src/guestfs-actions.pod:874
23157 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
23158 msgstr ""
23159
23160 #. type: =head2
23161 #: ../src/guestfs-actions.pod:878
23162 msgid "guestfs_btrfs_filesystem_resize_argv"
23163 msgstr ""
23164
23165 #. type: verbatim
23166 #: ../src/guestfs-actions.pod:880
23167 #, no-wrap
23168 msgid ""
23169 " int\n"
23170 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
23171 "                                       const char *mountpoint,\n"
23172 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
23173 "\n"
23174 msgstr ""
23175
23176 #. type: textblock
23177 #: ../src/guestfs-actions.pod:885
23178 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
23179 msgstr ""
23180
23181 #. type: =head2
23182 #: ../src/guestfs-actions.pod:889
23183 msgid "guestfs_case_sensitive_path"
23184 msgstr ""
23185
23186 #. type: verbatim
23187 #: ../src/guestfs-actions.pod:891
23188 #, no-wrap
23189 msgid ""
23190 " char *\n"
23191 " guestfs_case_sensitive_path (guestfs_h *g,\n"
23192 "                              const char *path);\n"
23193 "\n"
23194 msgstr ""
23195
23196 #. type: textblock
23197 #: ../src/guestfs-actions.pod:917
23198 msgid ""
23199 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
23200 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
23201 "how the directories were originally created under Windows)."
23202 msgstr ""
23203
23204 #. type: textblock
23205 #: ../src/guestfs-actions.pod:925
23206 msgid "See also C<guestfs_realpath>."
23207 msgstr ""
23208
23209 #. type: textblock
23210 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7392
23211 msgid "(Added in 1.0.75)"
23212 msgstr ""
23213
23214 #. type: =head2
23215 #: ../src/guestfs-actions.pod:932
23216 msgid "guestfs_cat"
23217 msgstr ""
23218
23219 #. type: verbatim
23220 #: ../src/guestfs-actions.pod:934
23221 #, no-wrap
23222 msgid ""
23223 " char *\n"
23224 " guestfs_cat (guestfs_h *g,\n"
23225 "              const char *path);\n"
23226 "\n"
23227 msgstr ""
23228
23229 #. type: textblock
23230 #: ../src/guestfs-actions.pod:940
23231 msgid ""
23232 "Note that this function cannot correctly handle binary files (specifically, "
23233 "files containing C<\\0> character which is treated as end of string).  For "
23234 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
23235 "functions which have a more complex interface."
23236 msgstr ""
23237
23238 #. type: textblock
23239 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3745
23240 #: ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:3844
23241 #: ../src/guestfs-actions.pod:3932 ../src/guestfs-actions.pod:4340
23242 #: ../src/guestfs-actions.pod:4354 ../src/guestfs-actions.pod:5725
23243 #: ../src/guestfs-actions.pod:5739 ../src/guestfs-actions.pod:7545
23244 #: ../src/guestfs-actions.pod:7559
23245 msgid "(Added in 0.4)"
23246 msgstr ""
23247
23248 #. type: =head2
23249 #: ../src/guestfs-actions.pod:953
23250 msgid "guestfs_checksum"
23251 msgstr ""
23252
23253 #. type: verbatim
23254 #: ../src/guestfs-actions.pod:955
23255 #, no-wrap
23256 msgid ""
23257 " char *\n"
23258 " guestfs_checksum (guestfs_h *g,\n"
23259 "                   const char *csumtype,\n"
23260 "                   const char *path);\n"
23261 "\n"
23262 msgstr ""
23263
23264 #. type: textblock
23265 #: ../src/guestfs-actions.pod:1001
23266 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
23267 msgstr ""
23268
23269 #. type: textblock
23270 #: ../src/guestfs-actions.pod:1003
23271 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
23272 msgstr ""
23273
23274 #. type: textblock
23275 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1316
23276 #: ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:3443
23277 #: ../src/guestfs-actions.pod:3472 ../src/guestfs-actions.pod:3533
23278 #: ../src/guestfs-actions.pod:3560 ../src/guestfs-actions.pod:7248
23279 msgid "(Added in 1.0.2)"
23280 msgstr ""
23281
23282 #. type: =head2
23283 #: ../src/guestfs-actions.pod:1010
23284 msgid "guestfs_checksum_device"
23285 msgstr ""
23286
23287 #. type: verbatim
23288 #: ../src/guestfs-actions.pod:1012
23289 #, no-wrap
23290 msgid ""
23291 " char *\n"
23292 " guestfs_checksum_device (guestfs_h *g,\n"
23293 "                          const char *csumtype,\n"
23294 "                          const char *device);\n"
23295 "\n"
23296 msgstr ""
23297
23298 #. type: textblock
23299 #: ../src/guestfs-actions.pod:1017
23300 msgid ""
23301 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
23302 "device named C<device>.  For the types of checksums supported see the "
23303 "C<guestfs_checksum> command."
23304 msgstr ""
23305
23306 #. type: textblock
23307 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5174
23308 #: ../src/guestfs-actions.pod:5309 ../src/guestfs-actions.pod:5346
23309 #: ../src/guestfs-actions.pod:5364 ../src/guestfs-actions.pod:5546
23310 #: ../src/guestfs-actions.pod:7157 ../src/guestfs-actions.pod:7171
23311 #: ../src/guestfs-actions.pod:7571
23312 msgid "(Added in 1.3.2)"
23313 msgstr ""
23314
23315 #. type: =head2
23316 #: ../src/guestfs-actions.pod:1026
23317 msgid "guestfs_checksums_out"
23318 msgstr ""
23319
23320 #. type: verbatim
23321 #: ../src/guestfs-actions.pod:1028
23322 #, no-wrap
23323 msgid ""
23324 " int\n"
23325 " guestfs_checksums_out (guestfs_h *g,\n"
23326 "                        const char *csumtype,\n"
23327 "                        const char *directory,\n"
23328 "                        const char *sumsfile);\n"
23329 "\n"
23330 msgstr ""
23331
23332 #. type: textblock
23333 #: ../src/guestfs-actions.pod:1048
23334 msgid "(Added in 1.3.7)"
23335 msgstr ""
23336
23337 #. type: =head2
23338 #: ../src/guestfs-actions.pod:1050
23339 msgid "guestfs_chmod"
23340 msgstr ""
23341
23342 #. type: verbatim
23343 #: ../src/guestfs-actions.pod:1052
23344 #, no-wrap
23345 msgid ""
23346 " int\n"
23347 " guestfs_chmod (guestfs_h *g,\n"
23348 "                int mode,\n"
23349 "                const char *path);\n"
23350 "\n"
23351 msgstr ""
23352
23353 #. type: =head2
23354 #: ../src/guestfs-actions.pod:1070
23355 msgid "guestfs_chown"
23356 msgstr ""
23357
23358 #. type: verbatim
23359 #: ../src/guestfs-actions.pod:1072
23360 #, no-wrap
23361 msgid ""
23362 " int\n"
23363 " guestfs_chown (guestfs_h *g,\n"
23364 "                int owner,\n"
23365 "                int group,\n"
23366 "                const char *path);\n"
23367 "\n"
23368 msgstr ""
23369
23370 #. type: =head2
23371 #: ../src/guestfs-actions.pod:1088
23372 msgid "guestfs_command"
23373 msgstr ""
23374
23375 #. type: verbatim
23376 #: ../src/guestfs-actions.pod:1090
23377 #, no-wrap
23378 msgid ""
23379 " char *\n"
23380 " guestfs_command (guestfs_h *g,\n"
23381 "                  char *const *arguments);\n"
23382 "\n"
23383 msgstr ""
23384
23385 #. type: textblock
23386 #: ../src/guestfs-actions.pod:1099
23387 msgid ""
23388 "The single parameter is an argv-style list of arguments.  The first element "
23389 "is the name of the program to run.  Subsequent elements are parameters.  The "
23390 "list must be non-empty (ie. must contain a program name).  Note that the "
23391 "command runs directly, and is I<not> invoked via the shell (see "
23392 "C<guestfs_sh>)."
23393 msgstr ""
23394
23395 #. type: textblock
23396 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150
23397 #: ../src/guestfs-actions.pod:1615
23398 msgid "(Added in 0.9.1)"
23399 msgstr ""
23400
23401 #. type: =head2
23402 #: ../src/guestfs-actions.pod:1132
23403 msgid "guestfs_command_lines"
23404 msgstr ""
23405
23406 #. type: verbatim
23407 #: ../src/guestfs-actions.pod:1134
23408 #, no-wrap
23409 msgid ""
23410 " char **\n"
23411 " guestfs_command_lines (guestfs_h *g,\n"
23412 "                        char *const *arguments);\n"
23413 "\n"
23414 msgstr ""
23415
23416 #. type: textblock
23417 #: ../src/guestfs-actions.pod:1138
23418 msgid ""
23419 "This is the same as C<guestfs_command>, but splits the result into a list of "
23420 "lines."
23421 msgstr ""
23422
23423 #. type: textblock
23424 #: ../src/guestfs-actions.pod:1141
23425 msgid "See also: C<guestfs_sh_lines>"
23426 msgstr ""
23427
23428 #. type: =head2
23429 #: ../src/guestfs-actions.pod:1152
23430 msgid "guestfs_config"
23431 msgstr ""
23432
23433 #. type: verbatim
23434 #: ../src/guestfs-actions.pod:1154
23435 #, no-wrap
23436 msgid ""
23437 " int\n"
23438 " guestfs_config (guestfs_h *g,\n"
23439 "                 const char *qemuparam,\n"
23440 "                 const char *qemuvalue);\n"
23441 "\n"
23442 msgstr ""
23443
23444 #. type: =head2
23445 #: ../src/guestfs-actions.pod:1172
23446 msgid "guestfs_copy_size"
23447 msgstr ""
23448
23449 #. type: verbatim
23450 #: ../src/guestfs-actions.pod:1174
23451 #, no-wrap
23452 msgid ""
23453 " int\n"
23454 " guestfs_copy_size (guestfs_h *g,\n"
23455 "                    const char *src,\n"
23456 "                    const char *dest,\n"
23457 "                    int64_t size);\n"
23458 "\n"
23459 msgstr ""
23460
23461 #. type: textblock
23462 #: ../src/guestfs-actions.pod:1188 ../src/guestfs-actions.pod:1311
23463 #: ../src/guestfs-actions.pod:1342 ../src/guestfs-actions.pod:1387
23464 #: ../src/guestfs-actions.pod:1764 ../src/guestfs-actions.pod:1786
23465 #: ../src/guestfs-actions.pod:3643 ../src/guestfs-actions.pod:7243
23466 #: ../src/guestfs-actions.pod:7277 ../src/guestfs-actions.pod:7784
23467 #: ../src/guestfs-actions.pod:7807
23468 msgid ""
23469 "This long-running command can generate progress notification messages so "
23470 "that the caller can display a progress bar or indicator.  To receive these "
23471 "messages, the caller must register a progress event callback.  See L<guestfs"
23472 "(3)/GUESTFS_EVENT_PROGRESS>."
23473 msgstr ""
23474
23475 #. type: textblock
23476 #: ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:4367
23477 #: ../src/guestfs-actions.pod:5752 ../src/guestfs-actions.pod:7478
23478 #: ../src/guestfs-actions.pod:7498 ../src/guestfs-actions.pod:7584
23479 msgid "(Added in 1.0.87)"
23480 msgstr ""
23481
23482 #. type: =head2
23483 #: ../src/guestfs-actions.pod:1195
23484 msgid "guestfs_cp"
23485 msgstr ""
23486
23487 #. type: verbatim
23488 #: ../src/guestfs-actions.pod:1197
23489 #, no-wrap
23490 msgid ""
23491 " int\n"
23492 " guestfs_cp (guestfs_h *g,\n"
23493 "             const char *src,\n"
23494 "             const char *dest);\n"
23495 "\n"
23496 msgstr ""
23497
23498 #. type: textblock
23499 #: ../src/guestfs-actions.pod:1207 ../src/guestfs-actions.pod:1221
23500 #: ../src/guestfs-actions.pod:1293 ../src/guestfs-actions.pod:1367
23501 #: ../src/guestfs-actions.pod:1481 ../src/guestfs-actions.pod:5121
23502 #: ../src/guestfs-actions.pod:5596
23503 msgid "(Added in 1.0.18)"
23504 msgstr ""
23505
23506 #. type: =head2
23507 #: ../src/guestfs-actions.pod:1209
23508 msgid "guestfs_cp_a"
23509 msgstr ""
23510
23511 #. type: verbatim
23512 #: ../src/guestfs-actions.pod:1211
23513 #, no-wrap
23514 msgid ""
23515 " int\n"
23516 " guestfs_cp_a (guestfs_h *g,\n"
23517 "               const char *src,\n"
23518 "               const char *dest);\n"
23519 "\n"
23520 msgstr ""
23521
23522 #. type: =head2
23523 #: ../src/guestfs-actions.pod:1223
23524 msgid "guestfs_dd"
23525 msgstr ""
23526
23527 #. type: verbatim
23528 #: ../src/guestfs-actions.pod:1225
23529 #, no-wrap
23530 msgid ""
23531 " int\n"
23532 " guestfs_dd (guestfs_h *g,\n"
23533 "             const char *src,\n"
23534 "             const char *dest);\n"
23535 "\n"
23536 msgstr ""
23537
23538 #. type: textblock
23539 #: ../src/guestfs-actions.pod:1235
23540 msgid ""
23541 "If the destination is a device, it must be as large or larger than the "
23542 "source file or device, otherwise the copy will fail.  This command cannot do "
23543 "partial copies (see C<guestfs_copy_size>)."
23544 msgstr ""
23545
23546 #. type: =head2
23547 #: ../src/guestfs-actions.pod:1243
23548 msgid "guestfs_df"
23549 msgstr ""
23550
23551 #. type: verbatim
23552 #: ../src/guestfs-actions.pod:1245
23553 #, no-wrap
23554 msgid ""
23555 " char *\n"
23556 " guestfs_df (guestfs_h *g);\n"
23557 "\n"
23558 msgstr ""
23559
23560 #. type: textblock
23561 #: ../src/guestfs-actions.pod:1250 ../src/guestfs-actions.pod:1267
23562 msgid ""
23563 "This command is mostly useful for interactive sessions.  It is I<not> "
23564 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
23565 "from programs."
23566 msgstr ""
23567
23568 #. type: textblock
23569 #: ../src/guestfs-actions.pod:1257 ../src/guestfs-actions.pod:1274
23570 #: ../src/guestfs-actions.pod:1392 ../src/guestfs-actions.pod:2366
23571 #: ../src/guestfs-actions.pod:2390 ../src/guestfs-actions.pod:2458
23572 #: ../src/guestfs-actions.pod:4477 ../src/guestfs-actions.pod:5021
23573 #: ../src/guestfs-actions.pod:6981 ../src/guestfs-actions.pod:7005
23574 #: ../src/guestfs-actions.pod:7624 ../src/guestfs-actions.pod:7637
23575 #: ../src/guestfs-actions.pod:7650
23576 msgid "(Added in 1.0.54)"
23577 msgstr ""
23578
23579 #. type: =head2
23580 #: ../src/guestfs-actions.pod:1259
23581 msgid "guestfs_df_h"
23582 msgstr ""
23583
23584 #. type: verbatim
23585 #: ../src/guestfs-actions.pod:1261
23586 #, no-wrap
23587 msgid ""
23588 " char *\n"
23589 " guestfs_df_h (guestfs_h *g);\n"
23590 "\n"
23591 msgstr ""
23592
23593 #. type: =head2
23594 #: ../src/guestfs-actions.pod:1276
23595 msgid "guestfs_dmesg"
23596 msgstr ""
23597
23598 #. type: verbatim
23599 #: ../src/guestfs-actions.pod:1278
23600 #, no-wrap
23601 msgid ""
23602 " char *\n"
23603 " guestfs_dmesg (guestfs_h *g);\n"
23604 "\n"
23605 msgstr ""
23606
23607 #. type: textblock
23608 #: ../src/guestfs-actions.pod:1285
23609 msgid ""
23610 "Another way to get the same information is to enable verbose messages with "
23611 "C<guestfs_set_verbose> or by setting the environment variable "
23612 "C<LIBGUESTFS_DEBUG=1> before running the program."
23613 msgstr ""
23614
23615 #. type: =head2
23616 #: ../src/guestfs-actions.pod:1295
23617 msgid "guestfs_download"
23618 msgstr ""
23619
23620 #. type: verbatim
23621 #: ../src/guestfs-actions.pod:1297
23622 #, no-wrap
23623 msgid ""
23624 " int\n"
23625 " guestfs_download (guestfs_h *g,\n"
23626 "                   const char *remotefilename,\n"
23627 "                   const char *filename);\n"
23628 "\n"
23629 msgstr ""
23630
23631 #. type: textblock
23632 #: ../src/guestfs-actions.pod:1307
23633 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
23634 msgstr ""
23635
23636 #. type: =head2
23637 #: ../src/guestfs-actions.pod:1318
23638 msgid "guestfs_download_offset"
23639 msgstr ""
23640
23641 #. type: verbatim
23642 #: ../src/guestfs-actions.pod:1320
23643 #, no-wrap
23644 msgid ""
23645 " int\n"
23646 " guestfs_download_offset (guestfs_h *g,\n"
23647 "                          const char *remotefilename,\n"
23648 "                          const char *filename,\n"
23649 "                          int64_t offset,\n"
23650 "                          int64_t size);\n"
23651 "\n"
23652 msgstr ""
23653
23654 #. type: textblock
23655 #: ../src/guestfs-actions.pod:1333
23656 msgid ""
23657 "Note that there is no limit on the amount of data that can be downloaded "
23658 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
23659 "full amount unless an error occurs."
23660 msgstr ""
23661
23662 #. type: textblock
23663 #: ../src/guestfs-actions.pod:1338
23664 msgid "See also C<guestfs_download>, C<guestfs_pread>."
23665 msgstr ""
23666
23667 #. type: textblock
23668 #: ../src/guestfs-actions.pod:1347 ../src/guestfs-actions.pod:7282
23669 msgid "(Added in 1.5.17)"
23670 msgstr ""
23671
23672 #. type: =head2
23673 #: ../src/guestfs-actions.pod:1349
23674 msgid "guestfs_drop_caches"
23675 msgstr ""
23676
23677 #. type: verbatim
23678 #: ../src/guestfs-actions.pod:1351
23679 #, no-wrap
23680 msgid ""
23681 " int\n"
23682 " guestfs_drop_caches (guestfs_h *g,\n"
23683 "                      int whattodrop);\n"
23684 "\n"
23685 msgstr ""
23686
23687 #. type: =head2
23688 #: ../src/guestfs-actions.pod:1369
23689 msgid "guestfs_du"
23690 msgstr ""
23691
23692 #. type: verbatim
23693 #: ../src/guestfs-actions.pod:1371
23694 #, no-wrap
23695 msgid ""
23696 " int64_t\n"
23697 " guestfs_du (guestfs_h *g,\n"
23698 "             const char *path);\n"
23699 "\n"
23700 msgstr ""
23701
23702 #. type: =head2
23703 #: ../src/guestfs-actions.pod:1394
23704 msgid "guestfs_e2fsck_f"
23705 msgstr ""
23706
23707 #. type: verbatim
23708 #: ../src/guestfs-actions.pod:1396
23709 #, no-wrap
23710 msgid ""
23711 " int\n"
23712 " guestfs_e2fsck_f (guestfs_h *g,\n"
23713 "                   const char *device);\n"
23714 "\n"
23715 msgstr ""
23716
23717 #. type: textblock
23718 #: ../src/guestfs-actions.pod:1404
23719 msgid ""
23720 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
23721 "Normally you should use C<guestfs_fsck>."
23722 msgstr ""
23723
23724 #. type: textblock
23725 #: ../src/guestfs-actions.pod:1409
23726 msgid "(Added in 1.0.29)"
23727 msgstr ""
23728
23729 #. type: =head2
23730 #: ../src/guestfs-actions.pod:1411
23731 msgid "guestfs_echo_daemon"
23732 msgstr ""
23733
23734 #. type: verbatim
23735 #: ../src/guestfs-actions.pod:1413
23736 #, no-wrap
23737 msgid ""
23738 " char *\n"
23739 " guestfs_echo_daemon (guestfs_h *g,\n"
23740 "                      char *const *words);\n"
23741 "\n"
23742 msgstr ""
23743
23744 #. type: textblock
23745 #: ../src/guestfs-actions.pod:1422
23746 msgid "See also C<guestfs_ping_daemon>."
23747 msgstr ""
23748
23749 #. type: textblock
23750 #: ../src/guestfs-actions.pod:1427 ../src/guestfs-actions.pod:2174
23751 #: ../src/guestfs-actions.pod:6453
23752 msgid "(Added in 1.0.69)"
23753 msgstr ""
23754
23755 #. type: =head2
23756 #: ../src/guestfs-actions.pod:1429
23757 msgid "guestfs_egrep"
23758 msgstr ""
23759
23760 #. type: verbatim
23761 #: ../src/guestfs-actions.pod:1431
23762 #, no-wrap
23763 msgid ""
23764 " char **\n"
23765 " guestfs_egrep (guestfs_h *g,\n"
23766 "                const char *regex,\n"
23767 "                const char *path);\n"
23768 "\n"
23769 msgstr ""
23770
23771 #. type: textblock
23772 #: ../src/guestfs-actions.pod:1446 ../src/guestfs-actions.pod:1465
23773 #: ../src/guestfs-actions.pod:1522 ../src/guestfs-actions.pod:1568
23774 #: ../src/guestfs-actions.pod:1587 ../src/guestfs-actions.pod:2304
23775 #: ../src/guestfs-actions.pod:2323 ../src/guestfs-actions.pod:2479
23776 #: ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2507
23777 #: ../src/guestfs-actions.pod:2553 ../src/guestfs-actions.pod:2575
23778 #: ../src/guestfs-actions.pod:2588 ../src/guestfs-actions.pod:3857
23779 #: ../src/guestfs-actions.pod:3871 ../src/guestfs-actions.pod:3884
23780 #: ../src/guestfs-actions.pod:3898 ../src/guestfs-actions.pod:4899
23781 #: ../src/guestfs-actions.pod:5930 ../src/guestfs-actions.pod:5979
23782 #: ../src/guestfs-actions.pod:6849 ../src/guestfs-actions.pod:6861
23783 #: ../src/guestfs-actions.pod:6874 ../src/guestfs-actions.pod:6887
23784 #: ../src/guestfs-actions.pod:6909 ../src/guestfs-actions.pod:6922
23785 #: ../src/guestfs-actions.pod:6935 ../src/guestfs-actions.pod:6948
23786 #: ../src/guestfs-actions.pod:7742 ../src/guestfs-actions.pod:7761
23787 #: ../src/guestfs-actions.pod:7855 ../src/guestfs-actions.pod:7874
23788 #: ../src/guestfs-actions.pod:7920 ../src/guestfs-actions.pod:7939
23789 msgid "(Added in 1.0.66)"
23790 msgstr ""
23791
23792 #. type: =head2
23793 #: ../src/guestfs-actions.pod:1448
23794 msgid "guestfs_egrepi"
23795 msgstr ""
23796
23797 #. type: verbatim
23798 #: ../src/guestfs-actions.pod:1450
23799 #, no-wrap
23800 msgid ""
23801 " char **\n"
23802 " guestfs_egrepi (guestfs_h *g,\n"
23803 "                 const char *regex,\n"
23804 "                 const char *path);\n"
23805 "\n"
23806 msgstr ""
23807
23808 #. type: =head2
23809 #: ../src/guestfs-actions.pod:1467
23810 msgid "guestfs_equal"
23811 msgstr ""
23812
23813 #. type: verbatim
23814 #: ../src/guestfs-actions.pod:1469
23815 #, no-wrap
23816 msgid ""
23817 " int\n"
23818 " guestfs_equal (guestfs_h *g,\n"
23819 "                const char *file1,\n"
23820 "                const char *file2);\n"
23821 "\n"
23822 msgstr ""
23823
23824 #. type: =head2
23825 #: ../src/guestfs-actions.pod:1483
23826 msgid "guestfs_exists"
23827 msgstr ""
23828
23829 #. type: verbatim
23830 #: ../src/guestfs-actions.pod:1485
23831 #, no-wrap
23832 msgid ""
23833 " int\n"
23834 " guestfs_exists (guestfs_h *g,\n"
23835 "                 const char *path);\n"
23836 "\n"
23837 msgstr ""
23838
23839 #. type: textblock
23840 #: ../src/guestfs-actions.pod:1492
23841 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
23842 msgstr ""
23843
23844 #. type: =head2
23845 #: ../src/guestfs-actions.pod:1498
23846 msgid "guestfs_fallocate"
23847 msgstr ""
23848
23849 #. type: verbatim
23850 #: ../src/guestfs-actions.pod:1500
23851 #, no-wrap
23852 msgid ""
23853 " int\n"
23854 " guestfs_fallocate (guestfs_h *g,\n"
23855 "                    const char *path,\n"
23856 "                    int len);\n"
23857 "\n"
23858 msgstr ""
23859
23860 #. type: textblock
23861 #: ../src/guestfs-actions.pod:1505
23862 msgid ""
23863 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
23864 "call instead."
23865 msgstr ""
23866
23867 #. type: =head2
23868 #: ../src/guestfs-actions.pod:1524
23869 msgid "guestfs_fallocate64"
23870 msgstr ""
23871
23872 #. type: verbatim
23873 #: ../src/guestfs-actions.pod:1526
23874 #, no-wrap
23875 msgid ""
23876 " int\n"
23877 " guestfs_fallocate64 (guestfs_h *g,\n"
23878 "                      const char *path,\n"
23879 "                      int64_t len);\n"
23880 "\n"
23881 msgstr ""
23882
23883 #. type: textblock
23884 #: ../src/guestfs-actions.pod:1535
23885 msgid ""
23886 "Note that this call allocates disk blocks for the file.  To create a sparse "
23887 "file use C<guestfs_truncate_size> instead."
23888 msgstr ""
23889
23890 #. type: textblock
23891 #: ../src/guestfs-actions.pod:1538
23892 msgid ""
23893 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
23894 "oversight it only allowed 30 bit lengths to be specified, effectively "
23895 "limiting the maximum size of files created through that call to 1GB."
23896 msgstr ""
23897
23898 #. type: textblock
23899 #: ../src/guestfs-actions.pod:1549
23900 msgid "(Added in 1.3.17)"
23901 msgstr ""
23902
23903 #. type: =head2
23904 #: ../src/guestfs-actions.pod:1551
23905 msgid "guestfs_fgrep"
23906 msgstr ""
23907
23908 #. type: verbatim
23909 #: ../src/guestfs-actions.pod:1553
23910 #, no-wrap
23911 msgid ""
23912 " char **\n"
23913 " guestfs_fgrep (guestfs_h *g,\n"
23914 "                const char *pattern,\n"
23915 "                const char *path);\n"
23916 "\n"
23917 msgstr ""
23918
23919 #. type: =head2
23920 #: ../src/guestfs-actions.pod:1570
23921 msgid "guestfs_fgrepi"
23922 msgstr ""
23923
23924 #. type: verbatim
23925 #: ../src/guestfs-actions.pod:1572
23926 #, no-wrap
23927 msgid ""
23928 " char **\n"
23929 " guestfs_fgrepi (guestfs_h *g,\n"
23930 "                 const char *pattern,\n"
23931 "                 const char *path);\n"
23932 "\n"
23933 msgstr ""
23934
23935 #. type: =head2
23936 #: ../src/guestfs-actions.pod:1589
23937 msgid "guestfs_file"
23938 msgstr ""
23939
23940 #. type: verbatim
23941 #: ../src/guestfs-actions.pod:1591
23942 #, no-wrap
23943 msgid ""
23944 " char *\n"
23945 " guestfs_file (guestfs_h *g,\n"
23946 "               const char *path);\n"
23947 "\n"
23948 msgstr ""
23949
23950 #. type: textblock
23951 #: ../src/guestfs-actions.pod:1609
23952 msgid ""
23953 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
23954 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
23955 msgstr ""
23956
23957 #. type: =head2
23958 #: ../src/guestfs-actions.pod:1617
23959 msgid "guestfs_file_architecture"
23960 msgstr ""
23961
23962 #. type: verbatim
23963 #: ../src/guestfs-actions.pod:1619
23964 #, no-wrap
23965 msgid ""
23966 " char *\n"
23967 " guestfs_file_architecture (guestfs_h *g,\n"
23968 "                            const char *filename);\n"
23969 "\n"
23970 msgstr ""
23971
23972 #. type: textblock
23973 #: ../src/guestfs-actions.pod:1727 ../src/guestfs-actions.pod:1890
23974 #: ../src/guestfs-actions.pod:1907 ../src/guestfs-actions.pod:2608
23975 #: ../src/guestfs-actions.pod:2698 ../src/guestfs-actions.pod:2764
23976 #: ../src/guestfs-actions.pod:2951 ../src/guestfs-actions.pod:2969
23977 #: ../src/guestfs-actions.pod:3009 ../src/guestfs-actions.pod:3084
23978 #: ../src/guestfs-actions.pod:3177 ../src/guestfs-actions.pod:3414
23979 #: ../src/guestfs-actions.pod:3546
23980 msgid "(Added in 1.5.3)"
23981 msgstr ""
23982
23983 #. type: =head2
23984 #: ../src/guestfs-actions.pod:1729
23985 msgid "guestfs_filesize"
23986 msgstr ""
23987
23988 #. type: verbatim
23989 #: ../src/guestfs-actions.pod:1731
23990 #, no-wrap
23991 msgid ""
23992 " int64_t\n"
23993 " guestfs_filesize (guestfs_h *g,\n"
23994 "                   const char *file);\n"
23995 "\n"
23996 msgstr ""
23997
23998 #. type: textblock
23999 #: ../src/guestfs-actions.pod:1737
24000 msgid ""
24001 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
24002 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
24003 "devices, use C<guestfs_blockdev_getsize64>."
24004 msgstr ""
24005
24006 #. type: textblock
24007 #: ../src/guestfs-actions.pod:1743
24008 msgid "(Added in 1.0.82)"
24009 msgstr ""
24010
24011 #. type: =head2
24012 #: ../src/guestfs-actions.pod:1745
24013 msgid "guestfs_fill"
24014 msgstr ""
24015
24016 #. type: verbatim
24017 #: ../src/guestfs-actions.pod:1747
24018 #, no-wrap
24019 msgid ""
24020 " int\n"
24021 " guestfs_fill (guestfs_h *g,\n"
24022 "               int c,\n"
24023 "               int len,\n"
24024 "               const char *path);\n"
24025 "\n"
24026 msgstr ""
24027
24028 #. type: textblock
24029 #: ../src/guestfs-actions.pod:1757
24030 msgid ""
24031 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
24032 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
24033 "bytes use C<guestfs_fill_pattern>."
24034 msgstr ""
24035
24036 #. type: textblock
24037 #: ../src/guestfs-actions.pod:1769
24038 msgid "(Added in 1.0.79)"
24039 msgstr ""
24040
24041 #. type: =head2
24042 #: ../src/guestfs-actions.pod:1771
24043 msgid "guestfs_fill_pattern"
24044 msgstr ""
24045
24046 #. type: verbatim
24047 #: ../src/guestfs-actions.pod:1773
24048 #, no-wrap
24049 msgid ""
24050 " int\n"
24051 " guestfs_fill_pattern (guestfs_h *g,\n"
24052 "                       const char *pattern,\n"
24053 "                       int len,\n"
24054 "                       const char *path);\n"
24055 "\n"
24056 msgstr ""
24057
24058 #. type: textblock
24059 #: ../src/guestfs-actions.pod:1779
24060 msgid ""
24061 "This function is like C<guestfs_fill> except that it creates a new file of "
24062 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
24063 "pattern is truncated if necessary to ensure the length of the file is "
24064 "exactly C<len> bytes."
24065 msgstr ""
24066
24067 #. type: textblock
24068 #: ../src/guestfs-actions.pod:1791
24069 msgid "(Added in 1.3.12)"
24070 msgstr ""
24071
24072 #. type: =head2
24073 #: ../src/guestfs-actions.pod:1793
24074 msgid "guestfs_find"
24075 msgstr ""
24076
24077 #. type: verbatim
24078 #: ../src/guestfs-actions.pod:1795
24079 #, no-wrap
24080 msgid ""
24081 " char **\n"
24082 " guestfs_find (guestfs_h *g,\n"
24083 "               const char *directory);\n"
24084 "\n"
24085 msgstr ""
24086
24087 #. type: textblock
24088 #: ../src/guestfs-actions.pod:1811
24089 msgid ""
24090 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
24091 msgstr ""
24092
24093 #. type: textblock
24094 #: ../src/guestfs-actions.pod:1824
24095 msgid "See also C<guestfs_find0>."
24096 msgstr ""
24097
24098 #. type: textblock
24099 #: ../src/guestfs-actions.pod:1833 ../src/guestfs-actions.pod:4304
24100 #: ../src/guestfs-actions.pod:6014
24101 msgid "(Added in 1.0.27)"
24102 msgstr ""
24103
24104 #. type: =head2
24105 #: ../src/guestfs-actions.pod:1835
24106 msgid "guestfs_find0"
24107 msgstr ""
24108
24109 #. type: verbatim
24110 #: ../src/guestfs-actions.pod:1837
24111 #, no-wrap
24112 msgid ""
24113 " int\n"
24114 " guestfs_find0 (guestfs_h *g,\n"
24115 "                const char *directory,\n"
24116 "                const char *files);\n"
24117 "\n"
24118 msgstr ""
24119
24120 #. type: textblock
24121 #: ../src/guestfs-actions.pod:1846
24122 msgid ""
24123 "This command works the same way as C<guestfs_find> with the following "
24124 "exceptions:"
24125 msgstr ""
24126
24127 #. type: textblock
24128 #: ../src/guestfs-actions.pod:1873
24129 msgid "(Added in 1.0.74)"
24130 msgstr ""
24131
24132 #. type: =head2
24133 #: ../src/guestfs-actions.pod:1875
24134 msgid "guestfs_findfs_label"
24135 msgstr ""
24136
24137 #. type: verbatim
24138 #: ../src/guestfs-actions.pod:1877
24139 #, no-wrap
24140 msgid ""
24141 " char *\n"
24142 " guestfs_findfs_label (guestfs_h *g,\n"
24143 "                       const char *label);\n"
24144 "\n"
24145 msgstr ""
24146
24147 #. type: textblock
24148 #: ../src/guestfs-actions.pod:1885
24149 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
24150 msgstr ""
24151
24152 #. type: =head2
24153 #: ../src/guestfs-actions.pod:1892
24154 msgid "guestfs_findfs_uuid"
24155 msgstr ""
24156
24157 #. type: verbatim
24158 #: ../src/guestfs-actions.pod:1894
24159 #, no-wrap
24160 msgid ""
24161 " char *\n"
24162 " guestfs_findfs_uuid (guestfs_h *g,\n"
24163 "                      const char *uuid);\n"
24164 "\n"
24165 msgstr ""
24166
24167 #. type: textblock
24168 #: ../src/guestfs-actions.pod:1902
24169 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
24170 msgstr ""
24171
24172 #. type: =head2
24173 #: ../src/guestfs-actions.pod:1909
24174 msgid "guestfs_fsck"
24175 msgstr ""
24176
24177 #. type: verbatim
24178 #: ../src/guestfs-actions.pod:1911
24179 #, no-wrap
24180 msgid ""
24181 " int\n"
24182 " guestfs_fsck (guestfs_h *g,\n"
24183 "               const char *fstype,\n"
24184 "               const char *device);\n"
24185 "\n"
24186 msgstr ""
24187
24188 #. type: textblock
24189 #: ../src/guestfs-actions.pod:1946 ../src/guestfs-actions.pod:7789
24190 msgid "(Added in 1.0.16)"
24191 msgstr ""
24192
24193 #. type: =head2
24194 #: ../src/guestfs-actions.pod:1948
24195 msgid "guestfs_get_append"
24196 msgstr ""
24197
24198 #. type: verbatim
24199 #: ../src/guestfs-actions.pod:1950
24200 #, no-wrap
24201 msgid ""
24202 " const char *\n"
24203 " guestfs_get_append (guestfs_h *g);\n"
24204 "\n"
24205 msgstr ""
24206
24207 #. type: textblock
24208 #: ../src/guestfs-actions.pod:1958
24209 msgid ""
24210 "This function returns a string which may be NULL.  There is no way to return "
24211 "an error from this function.  The string is owned by the guest handle and "
24212 "must I<not> be freed."
24213 msgstr ""
24214
24215 #. type: textblock
24216 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:5692
24217 #: ../src/guestfs-actions.pod:6174 ../src/guestfs-actions.pod:6616
24218 #: ../src/guestfs-actions.pod:6635 ../src/guestfs-actions.pod:6651
24219 #: ../src/guestfs-actions.pod:6675 ../src/guestfs-actions.pod:7429
24220 #: ../src/guestfs-actions.pod:7444 ../src/guestfs-actions.pod:7836
24221 msgid "(Added in 1.0.26)"
24222 msgstr ""
24223
24224 #. type: =head2
24225 #: ../src/guestfs-actions.pod:1964
24226 msgid "guestfs_get_attach_method"
24227 msgstr ""
24228
24229 #. type: verbatim
24230 #: ../src/guestfs-actions.pod:1966
24231 #, no-wrap
24232 msgid ""
24233 " char *\n"
24234 " guestfs_get_attach_method (guestfs_h *g);\n"
24235 "\n"
24236 msgstr ""
24237
24238 #. type: textblock
24239 #: ../src/guestfs-actions.pod:1969
24240 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
24241 msgstr ""
24242
24243 #. type: textblock
24244 #: ../src/guestfs-actions.pod:1974 ../src/guestfs-actions.pod:6204
24245 msgid "(Added in 1.9.8)"
24246 msgstr ""
24247
24248 #. type: =head2
24249 #: ../src/guestfs-actions.pod:1976
24250 msgid "guestfs_get_autosync"
24251 msgstr ""
24252
24253 #. type: verbatim
24254 #: ../src/guestfs-actions.pod:1978
24255 #, no-wrap
24256 msgid ""
24257 " int\n"
24258 " guestfs_get_autosync (guestfs_h *g);\n"
24259 "\n"
24260 msgstr ""
24261
24262 #. type: =head2
24263 #: ../src/guestfs-actions.pod:1987
24264 msgid "guestfs_get_direct"
24265 msgstr ""
24266
24267 #. type: verbatim
24268 #: ../src/guestfs-actions.pod:1989
24269 #, no-wrap
24270 msgid ""
24271 " int\n"
24272 " guestfs_get_direct (guestfs_h *g);\n"
24273 "\n"
24274 msgstr ""
24275
24276 #. type: textblock
24277 #: ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:6245
24278 msgid "(Added in 1.0.72)"
24279 msgstr ""
24280
24281 #. type: =head2
24282 #: ../src/guestfs-actions.pod:1998
24283 msgid "guestfs_get_e2label"
24284 msgstr ""
24285
24286 #. type: verbatim
24287 #: ../src/guestfs-actions.pod:2000
24288 #, no-wrap
24289 msgid ""
24290 " char *\n"
24291 " guestfs_get_e2label (guestfs_h *g,\n"
24292 "                      const char *device);\n"
24293 "\n"
24294 msgstr ""
24295
24296 #. type: textblock
24297 #: ../src/guestfs-actions.pod:2004
24298 msgid ""
24299 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
24300 "call instead."
24301 msgstr ""
24302
24303 #. type: textblock
24304 #: ../src/guestfs-actions.pod:2017 ../src/guestfs-actions.pod:2038
24305 #: ../src/guestfs-actions.pod:6263 ../src/guestfs-actions.pod:6282
24306 msgid "(Added in 1.0.15)"
24307 msgstr ""
24308
24309 #. type: =head2
24310 #: ../src/guestfs-actions.pod:2019
24311 msgid "guestfs_get_e2uuid"
24312 msgstr ""
24313
24314 #. type: verbatim
24315 #: ../src/guestfs-actions.pod:2021
24316 #, no-wrap
24317 msgid ""
24318 " char *\n"
24319 " guestfs_get_e2uuid (guestfs_h *g,\n"
24320 "                     const char *device);\n"
24321 "\n"
24322 msgstr ""
24323
24324 #. type: textblock
24325 #: ../src/guestfs-actions.pod:2025
24326 msgid ""
24327 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
24328 "call instead."
24329 msgstr ""
24330
24331 #. type: =head2
24332 #: ../src/guestfs-actions.pod:2040
24333 msgid "guestfs_get_memsize"
24334 msgstr ""
24335
24336 #. type: verbatim
24337 #: ../src/guestfs-actions.pod:2042
24338 #, no-wrap
24339 msgid ""
24340 " int\n"
24341 " guestfs_get_memsize (guestfs_h *g);\n"
24342 "\n"
24343 msgstr ""
24344
24345 #. type: textblock
24346 #: ../src/guestfs-actions.pod:2048
24347 msgid ""
24348 "If C<guestfs_set_memsize> was not called on this handle, and if "
24349 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
24350 "value for memsize."
24351 msgstr ""
24352
24353 #. type: textblock
24354 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:4595
24355 #: ../src/guestfs-actions.pod:4804 ../src/guestfs-actions.pod:4823
24356 #: ../src/guestfs-actions.pod:4842 ../src/guestfs-actions.pod:4854
24357 #: ../src/guestfs-actions.pod:4871 ../src/guestfs-actions.pod:4884
24358 #: ../src/guestfs-actions.pod:5917 ../src/guestfs-actions.pod:6303
24359 #: ../src/guestfs-actions.pod:6583 ../src/guestfs-actions.pod:7198
24360 msgid "(Added in 1.0.55)"
24361 msgstr ""
24362
24363 #. type: =head2
24364 #: ../src/guestfs-actions.pod:2059
24365 msgid "guestfs_get_network"
24366 msgstr ""
24367
24368 #. type: verbatim
24369 #: ../src/guestfs-actions.pod:2061
24370 #, no-wrap
24371 msgid ""
24372 " int\n"
24373 " guestfs_get_network (guestfs_h *g);\n"
24374 "\n"
24375 msgstr ""
24376
24377 #. type: textblock
24378 #: ../src/guestfs-actions.pod:2068 ../src/guestfs-actions.pod:6322
24379 msgid "(Added in 1.5.4)"
24380 msgstr ""
24381
24382 #. type: =head2
24383 #: ../src/guestfs-actions.pod:2070
24384 msgid "guestfs_get_path"
24385 msgstr ""
24386
24387 #. type: verbatim
24388 #: ../src/guestfs-actions.pod:2072
24389 #, no-wrap
24390 msgid ""
24391 " const char *\n"
24392 " guestfs_get_path (guestfs_h *g);\n"
24393 "\n"
24394 msgstr ""
24395
24396 #. type: textblock
24397 #: ../src/guestfs-actions.pod:2080 ../src/guestfs-actions.pod:2120
24398 msgid ""
24399 "This function returns a string, or NULL on error.  The string is owned by "
24400 "the guest handle and must I<not> be freed."
24401 msgstr ""
24402
24403 #. type: =head2
24404 #: ../src/guestfs-actions.pod:2085
24405 msgid "guestfs_get_pgroup"
24406 msgstr ""
24407
24408 #. type: verbatim
24409 #: ../src/guestfs-actions.pod:2087
24410 #, no-wrap
24411 msgid ""
24412 " int\n"
24413 " guestfs_get_pgroup (guestfs_h *g);\n"
24414 "\n"
24415 msgstr ""
24416
24417 #. type: textblock
24418 #: ../src/guestfs-actions.pod:2094 ../src/guestfs-actions.pod:6358
24419 #: ../src/guestfs-actions.pod:7690
24420 msgid "(Added in 1.11.18)"
24421 msgstr ""
24422
24423 #. type: =head2
24424 #: ../src/guestfs-actions.pod:2096
24425 msgid "guestfs_get_pid"
24426 msgstr ""
24427
24428 #. type: verbatim
24429 #: ../src/guestfs-actions.pod:2098
24430 #, no-wrap
24431 msgid ""
24432 " int\n"
24433 " guestfs_get_pid (guestfs_h *g);\n"
24434 "\n"
24435 msgstr ""
24436
24437 #. type: textblock
24438 #: ../src/guestfs-actions.pod:2108
24439 msgid "(Added in 1.0.56)"
24440 msgstr ""
24441
24442 #. type: =head2
24443 #: ../src/guestfs-actions.pod:2110
24444 msgid "guestfs_get_qemu"
24445 msgstr ""
24446
24447 #. type: verbatim
24448 #: ../src/guestfs-actions.pod:2112
24449 #, no-wrap
24450 msgid ""
24451 " const char *\n"
24452 " guestfs_get_qemu (guestfs_h *g);\n"
24453 "\n"
24454 msgstr ""
24455
24456 #. type: textblock
24457 #: ../src/guestfs-actions.pod:2123 ../src/guestfs-actions.pod:6386
24458 msgid "(Added in 1.0.6)"
24459 msgstr ""
24460
24461 #. type: =head2
24462 #: ../src/guestfs-actions.pod:2125
24463 msgid "guestfs_get_recovery_proc"
24464 msgstr ""
24465
24466 #. type: verbatim
24467 #: ../src/guestfs-actions.pod:2127
24468 #, no-wrap
24469 msgid ""
24470 " int\n"
24471 " guestfs_get_recovery_proc (guestfs_h *g);\n"
24472 "\n"
24473 msgstr ""
24474
24475 #. type: textblock
24476 #: ../src/guestfs-actions.pod:2134 ../src/guestfs-actions.pod:3668
24477 #: ../src/guestfs-actions.pod:3999 ../src/guestfs-actions.pod:4402
24478 #: ../src/guestfs-actions.pod:4434 ../src/guestfs-actions.pod:5622
24479 #: ../src/guestfs-actions.pod:5965 ../src/guestfs-actions.pod:6410
24480 #: ../src/guestfs-actions.pod:7101 ../src/guestfs-actions.pod:7121
24481 #: ../src/guestfs-actions.pod:7313
24482 msgid "(Added in 1.0.77)"
24483 msgstr ""
24484
24485 #. type: =head2
24486 #: ../src/guestfs-actions.pod:2136
24487 msgid "guestfs_get_selinux"
24488 msgstr ""
24489
24490 #. type: verbatim
24491 #: ../src/guestfs-actions.pod:2138
24492 #, no-wrap
24493 msgid ""
24494 " int\n"
24495 " guestfs_get_selinux (guestfs_h *g);\n"
24496 "\n"
24497 msgstr ""
24498
24499 #. type: textblock
24500 #: ../src/guestfs-actions.pod:2141
24501 msgid ""
24502 "This returns the current setting of the selinux flag which is passed to the "
24503 "appliance at boot time.  See C<guestfs_set_selinux>."
24504 msgstr ""
24505
24506 #. type: textblock
24507 #: ../src/guestfs-actions.pod:2149 ../src/guestfs-actions.pod:2212
24508 #: ../src/guestfs-actions.pod:6429 ../src/guestfs-actions.pod:6487
24509 msgid "(Added in 1.0.67)"
24510 msgstr ""
24511
24512 #. type: =head2
24513 #: ../src/guestfs-actions.pod:2151
24514 msgid "guestfs_get_state"
24515 msgstr ""
24516
24517 #. type: verbatim
24518 #: ../src/guestfs-actions.pod:2153
24519 #, no-wrap
24520 msgid ""
24521 " int\n"
24522 " guestfs_get_state (guestfs_h *g);\n"
24523 "\n"
24524 msgstr ""
24525
24526 #. type: =head2
24527 #: ../src/guestfs-actions.pod:2165
24528 msgid "guestfs_get_trace"
24529 msgstr ""
24530
24531 #. type: verbatim
24532 #: ../src/guestfs-actions.pod:2167
24533 #, no-wrap
24534 msgid ""
24535 " int\n"
24536 " guestfs_get_trace (guestfs_h *g);\n"
24537 "\n"
24538 msgstr ""
24539
24540 #. type: =head2
24541 #: ../src/guestfs-actions.pod:2176
24542 msgid "guestfs_get_umask"
24543 msgstr ""
24544
24545 #. type: verbatim
24546 #: ../src/guestfs-actions.pod:2178
24547 #, no-wrap
24548 msgid ""
24549 " int\n"
24550 " guestfs_get_umask (guestfs_h *g);\n"
24551 "\n"
24552 msgstr ""
24553
24554 #. type: textblock
24555 #: ../src/guestfs-actions.pod:2181
24556 msgid ""
24557 "Return the current umask.  By default the umask is C<022> unless it has been "
24558 "set by calling C<guestfs_umask>."
24559 msgstr ""
24560
24561 #. type: =head2
24562 #: ../src/guestfs-actions.pod:2188
24563 msgid "guestfs_get_verbose"
24564 msgstr ""
24565
24566 #. type: verbatim
24567 #: ../src/guestfs-actions.pod:2190
24568 #, no-wrap
24569 msgid ""
24570 " int\n"
24571 " guestfs_get_verbose (guestfs_h *g);\n"
24572 "\n"
24573 msgstr ""
24574
24575 #. type: =head2
24576 #: ../src/guestfs-actions.pod:2199
24577 msgid "guestfs_getcon"
24578 msgstr ""
24579
24580 #. type: verbatim
24581 #: ../src/guestfs-actions.pod:2201
24582 #, no-wrap
24583 msgid ""
24584 " char *\n"
24585 " guestfs_getcon (guestfs_h *g);\n"
24586 "\n"
24587 msgstr ""
24588
24589 #. type: textblock
24590 #: ../src/guestfs-actions.pod:2206
24591 msgid ""
24592 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
24593 msgstr ""
24594
24595 #. type: =head2
24596 #: ../src/guestfs-actions.pod:2214
24597 msgid "guestfs_getxattr"
24598 msgstr ""
24599
24600 #. type: verbatim
24601 #: ../src/guestfs-actions.pod:2216
24602 #, no-wrap
24603 msgid ""
24604 " char *\n"
24605 " guestfs_getxattr (guestfs_h *g,\n"
24606 "                   const char *path,\n"
24607 "                   const char *name,\n"
24608 "                   size_t *size_r);\n"
24609 "\n"
24610 msgstr ""
24611
24612 #. type: textblock
24613 #: ../src/guestfs-actions.pod:2222
24614 msgid ""
24615 "Get a single extended attribute from file C<path> named C<name>.  This call "
24616 "follows symlinks.  If you want to lookup an extended attribute for the "
24617 "symlink itself, use C<guestfs_lgetxattr>."
24618 msgstr ""
24619
24620 #. type: textblock
24621 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:3682
24622 msgid ""
24623 "Normally it is better to get all extended attributes from a file in one go "
24624 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
24625 "implementations are buggy and do not provide a way to list out attributes.  "
24626 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
24627 "extended attributes you want in advance and call this function."
24628 msgstr ""
24629
24630 #. type: textblock
24631 #: ../src/guestfs-actions.pod:2236
24632 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
24633 msgstr ""
24634
24635 #. type: textblock
24636 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2429
24637 #: ../src/guestfs-actions.pod:2899 ../src/guestfs-actions.pod:3694
24638 #: ../src/guestfs-actions.pod:5615 ../src/guestfs-actions.pod:5641
24639 #: ../src/guestfs-actions.pod:5822
24640 msgid ""
24641 "This function returns a buffer, or NULL on error.  The size of the returned "
24642 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
24643 "after use>."
24644 msgstr ""
24645
24646 #. type: textblock
24647 #: ../src/guestfs-actions.pod:2242 ../src/guestfs-actions.pod:3698
24648 msgid "(Added in 1.7.24)"
24649 msgstr ""
24650
24651 #. type: =head2
24652 #: ../src/guestfs-actions.pod:2244
24653 msgid "guestfs_getxattrs"
24654 msgstr ""
24655
24656 #. type: verbatim
24657 #: ../src/guestfs-actions.pod:2246
24658 #, no-wrap
24659 msgid ""
24660 " struct guestfs_xattr_list *\n"
24661 " guestfs_getxattrs (guestfs_h *g,\n"
24662 "                    const char *path);\n"
24663 "\n"
24664 msgstr ""
24665
24666 #. type: textblock
24667 #: ../src/guestfs-actions.pod:2256
24668 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
24669 msgstr ""
24670
24671 #. type: textblock
24672 #: ../src/guestfs-actions.pod:2258 ../src/guestfs-actions.pod:3710
24673 #: ../src/guestfs-actions.pod:4398
24674 msgid ""
24675 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
24676 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
24677 msgstr ""
24678
24679 #. type: textblock
24680 #: ../src/guestfs-actions.pod:2262 ../src/guestfs-actions.pod:3714
24681 #: ../src/guestfs-actions.pod:3913 ../src/guestfs-actions.pod:3949
24682 #: ../src/guestfs-actions.pod:5995 ../src/guestfs-actions.pod:6506
24683 #: ../src/guestfs-actions.pod:7901
24684 msgid "(Added in 1.0.59)"
24685 msgstr ""
24686
24687 #. type: =head2
24688 #: ../src/guestfs-actions.pod:2264
24689 msgid "guestfs_glob_expand"
24690 msgstr ""
24691
24692 #. type: verbatim
24693 #: ../src/guestfs-actions.pod:2266
24694 #, no-wrap
24695 msgid ""
24696 " char **\n"
24697 " guestfs_glob_expand (guestfs_h *g,\n"
24698 "                      const char *pattern);\n"
24699 "\n"
24700 msgstr ""
24701
24702 #. type: textblock
24703 #: ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:6699
24704 #: ../src/guestfs-actions.pod:6716
24705 msgid "(Added in 1.0.50)"
24706 msgstr ""
24707
24708 #. type: =head2
24709 #: ../src/guestfs-actions.pod:2287
24710 msgid "guestfs_grep"
24711 msgstr ""
24712
24713 #. type: verbatim
24714 #: ../src/guestfs-actions.pod:2289
24715 #, no-wrap
24716 msgid ""
24717 " char **\n"
24718 " guestfs_grep (guestfs_h *g,\n"
24719 "               const char *regex,\n"
24720 "               const char *path);\n"
24721 "\n"
24722 msgstr ""
24723
24724 #. type: =head2
24725 #: ../src/guestfs-actions.pod:2306
24726 msgid "guestfs_grepi"
24727 msgstr ""
24728
24729 #. type: verbatim
24730 #: ../src/guestfs-actions.pod:2308
24731 #, no-wrap
24732 msgid ""
24733 " char **\n"
24734 " guestfs_grepi (guestfs_h *g,\n"
24735 "                const char *regex,\n"
24736 "                const char *path);\n"
24737 "\n"
24738 msgstr ""
24739
24740 #. type: =head2
24741 #: ../src/guestfs-actions.pod:2325
24742 msgid "guestfs_grub_install"
24743 msgstr ""
24744
24745 #. type: verbatim
24746 #: ../src/guestfs-actions.pod:2327
24747 #, no-wrap
24748 msgid ""
24749 " int\n"
24750 " guestfs_grub_install (guestfs_h *g,\n"
24751 "                       const char *root,\n"
24752 "                       const char *device);\n"
24753 "\n"
24754 msgstr ""
24755
24756 #. type: textblock
24757 #: ../src/guestfs-actions.pod:2348
24758 msgid "(Added in 1.0.17)"
24759 msgstr ""
24760
24761 #. type: =head2
24762 #: ../src/guestfs-actions.pod:2350
24763 msgid "guestfs_head"
24764 msgstr ""
24765
24766 #. type: verbatim
24767 #: ../src/guestfs-actions.pod:2352
24768 #, no-wrap
24769 msgid ""
24770 " char **\n"
24771 " guestfs_head (guestfs_h *g,\n"
24772 "               const char *path);\n"
24773 "\n"
24774 msgstr ""
24775
24776 #. type: =head2
24777 #: ../src/guestfs-actions.pod:2368
24778 msgid "guestfs_head_n"
24779 msgstr ""
24780
24781 #. type: verbatim
24782 #: ../src/guestfs-actions.pod:2370
24783 #, no-wrap
24784 msgid ""
24785 " char **\n"
24786 " guestfs_head_n (guestfs_h *g,\n"
24787 "                 int nrlines,\n"
24788 "                 const char *path);\n"
24789 "\n"
24790 msgstr ""
24791
24792 #. type: =head2
24793 #: ../src/guestfs-actions.pod:2392
24794 msgid "guestfs_hexdump"
24795 msgstr ""
24796
24797 #. type: verbatim
24798 #: ../src/guestfs-actions.pod:2394
24799 #, no-wrap
24800 msgid ""
24801 " char *\n"
24802 " guestfs_hexdump (guestfs_h *g,\n"
24803 "                  const char *path);\n"
24804 "\n"
24805 msgstr ""
24806
24807 #. type: textblock
24808 #: ../src/guestfs-actions.pod:2407 ../src/guestfs-actions.pod:6780
24809 #: ../src/guestfs-actions.pod:6835
24810 msgid "(Added in 1.0.22)"
24811 msgstr ""
24812
24813 #. type: =head2
24814 #: ../src/guestfs-actions.pod:2409
24815 msgid "guestfs_initrd_cat"
24816 msgstr ""
24817
24818 #. type: verbatim
24819 #: ../src/guestfs-actions.pod:2411
24820 #, no-wrap
24821 msgid ""
24822 " char *\n"
24823 " guestfs_initrd_cat (guestfs_h *g,\n"
24824 "                     const char *initrdpath,\n"
24825 "                     const char *filename,\n"
24826 "                     size_t *size_r);\n"
24827 "\n"
24828 msgstr ""
24829
24830 #. type: textblock
24831 #: ../src/guestfs-actions.pod:2427
24832 msgid "See also C<guestfs_initrd_list>."
24833 msgstr ""
24834
24835 #. type: =head2
24836 #: ../src/guestfs-actions.pod:2438
24837 msgid "guestfs_initrd_list"
24838 msgstr ""
24839
24840 #. type: verbatim
24841 #: ../src/guestfs-actions.pod:2440
24842 #, no-wrap
24843 msgid ""
24844 " char **\n"
24845 " guestfs_initrd_list (guestfs_h *g,\n"
24846 "                      const char *path);\n"
24847 "\n"
24848 msgstr ""
24849
24850 #. type: =head2
24851 #: ../src/guestfs-actions.pod:2460
24852 msgid "guestfs_inotify_add_watch"
24853 msgstr ""
24854
24855 #. type: verbatim
24856 #: ../src/guestfs-actions.pod:2462
24857 #, no-wrap
24858 msgid ""
24859 " int64_t\n"
24860 " guestfs_inotify_add_watch (guestfs_h *g,\n"
24861 "                            const char *path,\n"
24862 "                            int mask);\n"
24863 "\n"
24864 msgstr ""
24865
24866 #. type: =head2
24867 #: ../src/guestfs-actions.pod:2481
24868 msgid "guestfs_inotify_close"
24869 msgstr ""
24870
24871 #. type: verbatim
24872 #: ../src/guestfs-actions.pod:2483
24873 #, no-wrap
24874 msgid ""
24875 " int\n"
24876 " guestfs_inotify_close (guestfs_h *g);\n"
24877 "\n"
24878 msgstr ""
24879
24880 #. type: =head2
24881 #: ../src/guestfs-actions.pod:2494
24882 msgid "guestfs_inotify_files"
24883 msgstr ""
24884
24885 #. type: verbatim
24886 #: ../src/guestfs-actions.pod:2496
24887 #, no-wrap
24888 msgid ""
24889 " char **\n"
24890 " guestfs_inotify_files (guestfs_h *g);\n"
24891 "\n"
24892 msgstr ""
24893
24894 #. type: textblock
24895 #: ../src/guestfs-actions.pod:2499
24896 msgid ""
24897 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
24898 "returns a list of pathnames of objects that were touched.  The returned "
24899 "pathnames are sorted and deduplicated."
24900 msgstr ""
24901
24902 #. type: =head2
24903 #: ../src/guestfs-actions.pod:2509
24904 msgid "guestfs_inotify_init"
24905 msgstr ""
24906
24907 #. type: verbatim
24908 #: ../src/guestfs-actions.pod:2511
24909 #, no-wrap
24910 msgid ""
24911 " int\n"
24912 " guestfs_inotify_init (guestfs_h *g,\n"
24913 "                       int maxevents);\n"
24914 "\n"
24915 msgstr ""
24916
24917 #. type: textblock
24918 #: ../src/guestfs-actions.pod:2519
24919 msgid ""
24920 "C<maxevents> is the maximum number of events which will be queued up between "
24921 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
24922 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
24923 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
24924 "throws away events, but records the fact that it threw them away by setting "
24925 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
24926 "C<guestfs_inotify_read>)."
24927 msgstr ""
24928
24929 #. type: textblock
24930 #: ../src/guestfs-actions.pod:2529
24931 msgid ""
24932 "Before any events are generated, you have to add some watches to the "
24933 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
24934 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
24935 msgstr ""
24936
24937 #. type: textblock
24938 #: ../src/guestfs-actions.pod:2535
24939 msgid ""
24940 "Queued up events should be read periodically by calling "
24941 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
24942 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
24943 "often enough then you risk the internal queue overflowing."
24944 msgstr ""
24945
24946 #. type: textblock
24947 #: ../src/guestfs-actions.pod:2542
24948 msgid ""
24949 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
24950 "This also removes any watches automatically."
24951 msgstr ""
24952
24953 #. type: =head2
24954 #: ../src/guestfs-actions.pod:2555
24955 msgid "guestfs_inotify_read"
24956 msgstr ""
24957
24958 #. type: verbatim
24959 #: ../src/guestfs-actions.pod:2557
24960 #, no-wrap
24961 msgid ""
24962 " struct guestfs_inotify_event_list *\n"
24963 " guestfs_inotify_read (guestfs_h *g);\n"
24964 "\n"
24965 msgstr ""
24966
24967 #. type: textblock
24968 #: ../src/guestfs-actions.pod:2571
24969 msgid ""
24970 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
24971 "there was an error.  I<The caller must call "
24972 "C<guestfs_free_inotify_event_list> after use>."
24973 msgstr ""
24974
24975 #. type: =head2
24976 #: ../src/guestfs-actions.pod:2577
24977 msgid "guestfs_inotify_rm_watch"
24978 msgstr ""
24979
24980 #. type: verbatim
24981 #: ../src/guestfs-actions.pod:2579
24982 #, no-wrap
24983 msgid ""
24984 " int\n"
24985 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
24986 "                           int wd);\n"
24987 "\n"
24988 msgstr ""
24989
24990 #. type: textblock
24991 #: ../src/guestfs-actions.pod:2583
24992 msgid ""
24993 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
24994 msgstr ""
24995
24996 #. type: =head2
24997 #: ../src/guestfs-actions.pod:2590
24998 msgid "guestfs_inspect_get_arch"
24999 msgstr ""
25000
25001 #. type: verbatim
25002 #: ../src/guestfs-actions.pod:2592
25003 #, no-wrap
25004 msgid ""
25005 " char *\n"
25006 " guestfs_inspect_get_arch (guestfs_h *g,\n"
25007 "                           const char *root);\n"
25008 "\n"
25009 msgstr ""
25010
25011 #. type: textblock
25012 #: ../src/guestfs-actions.pod:2596
25013 msgid ""
25014 "This returns the architecture of the inspected operating system.  The "
25015 "possible return values are listed under C<guestfs_file_architecture>."
25016 msgstr ""
25017
25018 #. type: =head2
25019 #: ../src/guestfs-actions.pod:2610
25020 msgid "guestfs_inspect_get_distro"
25021 msgstr ""
25022
25023 #. type: verbatim
25024 #: ../src/guestfs-actions.pod:2612
25025 #, no-wrap
25026 msgid ""
25027 " char *\n"
25028 " guestfs_inspect_get_distro (guestfs_h *g,\n"
25029 "                             const char *root);\n"
25030 "\n"
25031 msgstr ""
25032
25033 #. type: =head2
25034 #: ../src/guestfs-actions.pod:2700
25035 msgid "guestfs_inspect_get_drive_mappings"
25036 msgstr ""
25037
25038 #. type: verbatim
25039 #: ../src/guestfs-actions.pod:2702
25040 #, no-wrap
25041 msgid ""
25042 " char **\n"
25043 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
25044 "                                     const char *root);\n"
25045 "\n"
25046 msgstr ""
25047
25048 #. type: textblock
25049 #: ../src/guestfs-actions.pod:2731
25050 msgid ""
25051 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25052 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
25053 msgstr ""
25054
25055 #. type: textblock
25056 #: ../src/guestfs-actions.pod:2735 ../src/guestfs-actions.pod:3003
25057 #: ../src/guestfs-actions.pod:3801 ../src/guestfs-actions.pod:5083
25058 #: ../src/guestfs-actions.pod:7137
25059 msgid ""
25060 "This function returns a NULL-terminated array of strings, or NULL if there "
25061 "was an error.  The array of strings will always have length C<2n+1>, where "
25062 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
25063 "caller must free the strings and the array after use>."
25064 msgstr ""
25065
25066 #. type: textblock
25067 #: ../src/guestfs-actions.pod:2741 ../src/guestfs-actions.pod:3197
25068 msgid "(Added in 1.9.17)"
25069 msgstr ""
25070
25071 #. type: =head2
25072 #: ../src/guestfs-actions.pod:2743
25073 msgid "guestfs_inspect_get_filesystems"
25074 msgstr ""
25075
25076 #. type: verbatim
25077 #: ../src/guestfs-actions.pod:2745
25078 #, no-wrap
25079 msgid ""
25080 " char **\n"
25081 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
25082 "                                  const char *root);\n"
25083 "\n"
25084 msgstr ""
25085
25086 #. type: textblock
25087 #: ../src/guestfs-actions.pod:2757
25088 msgid ""
25089 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25090 "C<guestfs_inspect_get_mountpoints>."
25091 msgstr ""
25092
25093 #. type: =head2
25094 #: ../src/guestfs-actions.pod:2766
25095 msgid "guestfs_inspect_get_format"
25096 msgstr ""
25097
25098 #. type: verbatim
25099 #: ../src/guestfs-actions.pod:2768
25100 #, no-wrap
25101 msgid ""
25102 " char *\n"
25103 " guestfs_inspect_get_format (guestfs_h *g,\n"
25104 "                             const char *root);\n"
25105 "\n"
25106 msgstr ""
25107
25108 #. type: textblock
25109 #: ../src/guestfs-actions.pod:2802 ../src/guestfs-actions.pod:3233
25110 #: ../src/guestfs-actions.pod:3249 ../src/guestfs-actions.pod:3267
25111 #: ../src/guestfs-actions.pod:6033
25112 msgid "(Added in 1.9.4)"
25113 msgstr ""
25114
25115 #. type: =head2
25116 #: ../src/guestfs-actions.pod:2804
25117 msgid "guestfs_inspect_get_hostname"
25118 msgstr ""
25119
25120 #. type: verbatim
25121 #: ../src/guestfs-actions.pod:2806
25122 #, no-wrap
25123 msgid ""
25124 " char *\n"
25125 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
25126 "                               const char *root);\n"
25127 "\n"
25128 msgstr ""
25129
25130 #. type: textblock
25131 #: ../src/guestfs-actions.pod:2821
25132 msgid "(Added in 1.7.9)"
25133 msgstr ""
25134
25135 #. type: =head2
25136 #: ../src/guestfs-actions.pod:2823
25137 msgid "guestfs_inspect_get_icon"
25138 msgstr ""
25139
25140 #. type: verbatim
25141 #: ../src/guestfs-actions.pod:2825
25142 #, no-wrap
25143 msgid ""
25144 " char *\n"
25145 " guestfs_inspect_get_icon (guestfs_h *g,\n"
25146 "                           const char *root,\n"
25147 "                           size_t *size_r,\n"
25148 "                           ...);\n"
25149 "\n"
25150 msgstr ""
25151
25152 #. type: verbatim
25153 #: ../src/guestfs-actions.pod:2836
25154 #, no-wrap
25155 msgid ""
25156 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
25157 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
25158 "\n"
25159 msgstr ""
25160
25161 #. type: textblock
25162 #: ../src/guestfs-actions.pod:2903 ../src/guestfs-actions.pod:3728
25163 #: ../src/guestfs-actions.pod:4982
25164 msgid "(Added in 1.11.12)"
25165 msgstr ""
25166
25167 #. type: =head2
25168 #: ../src/guestfs-actions.pod:2905
25169 msgid "guestfs_inspect_get_icon_va"
25170 msgstr ""
25171
25172 #. type: verbatim
25173 #: ../src/guestfs-actions.pod:2907
25174 #, no-wrap
25175 msgid ""
25176 " char *\n"
25177 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
25178 "                              const char *root,\n"
25179 "                              size_t *size_r,\n"
25180 "                              va_list args);\n"
25181 "\n"
25182 msgstr ""
25183
25184 #. type: textblock
25185 #: ../src/guestfs-actions.pod:2913
25186 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
25187 msgstr ""
25188
25189 #. type: =head2
25190 #: ../src/guestfs-actions.pod:2917
25191 msgid "guestfs_inspect_get_icon_argv"
25192 msgstr ""
25193
25194 #. type: verbatim
25195 #: ../src/guestfs-actions.pod:2919
25196 #, no-wrap
25197 msgid ""
25198 " char *\n"
25199 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
25200 "                                const char *root,\n"
25201 "                                size_t *size_r,\n"
25202 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
25203 "\n"
25204 msgstr ""
25205
25206 #. type: textblock
25207 #: ../src/guestfs-actions.pod:2925
25208 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
25209 msgstr ""
25210
25211 #. type: =head2
25212 #: ../src/guestfs-actions.pod:2929
25213 msgid "guestfs_inspect_get_major_version"
25214 msgstr ""
25215
25216 #. type: verbatim
25217 #: ../src/guestfs-actions.pod:2931
25218 #, no-wrap
25219 msgid ""
25220 " int\n"
25221 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
25222 "                                    const char *root);\n"
25223 "\n"
25224 msgstr ""
25225
25226 #. type: =head2
25227 #: ../src/guestfs-actions.pod:2953
25228 msgid "guestfs_inspect_get_minor_version"
25229 msgstr ""
25230
25231 #. type: verbatim
25232 #: ../src/guestfs-actions.pod:2955
25233 #, no-wrap
25234 msgid ""
25235 " int\n"
25236 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
25237 "                                    const char *root);\n"
25238 "\n"
25239 msgstr ""
25240
25241 #. type: textblock
25242 #: ../src/guestfs-actions.pod:2964
25243 msgid ""
25244 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25245 "C<guestfs_inspect_get_major_version>."
25246 msgstr ""
25247
25248 #. type: =head2
25249 #: ../src/guestfs-actions.pod:2971
25250 msgid "guestfs_inspect_get_mountpoints"
25251 msgstr ""
25252
25253 #. type: verbatim
25254 #: ../src/guestfs-actions.pod:2973
25255 #, no-wrap
25256 msgid ""
25257 " char **\n"
25258 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
25259 "                                  const char *root);\n"
25260 "\n"
25261 msgstr ""
25262
25263 #. type: textblock
25264 #: ../src/guestfs-actions.pod:2994
25265 msgid ""
25266 "For operating systems like Windows which still use drive letters, this call "
25267 "will only return an entry for the first drive \"mounted on\" C</>.  For "
25268 "information about the mapping of drive letters to partitions, see "
25269 "C<guestfs_inspect_get_drive_mappings>."
25270 msgstr ""
25271
25272 #. type: textblock
25273 #: ../src/guestfs-actions.pod:3000
25274 msgid ""
25275 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25276 "C<guestfs_inspect_get_filesystems>."
25277 msgstr ""
25278
25279 #. type: =head2
25280 #: ../src/guestfs-actions.pod:3011
25281 msgid "guestfs_inspect_get_package_format"
25282 msgstr ""
25283
25284 #. type: verbatim
25285 #: ../src/guestfs-actions.pod:3013
25286 #, no-wrap
25287 msgid ""
25288 " char *\n"
25289 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
25290 "                                     const char *root);\n"
25291 "\n"
25292 msgstr ""
25293
25294 #. type: textblock
25295 #: ../src/guestfs-actions.pod:3017
25296 msgid ""
25297 "This function and C<guestfs_inspect_get_package_management> return the "
25298 "package format and package management tool used by the inspected operating "
25299 "system.  For example for Fedora these functions would return C<rpm> (package "
25300 "format) and C<yum> (package management)."
25301 msgstr ""
25302
25303 #. type: textblock
25304 #: ../src/guestfs-actions.pod:3035 ../src/guestfs-actions.pod:3063
25305 msgid "(Added in 1.7.5)"
25306 msgstr ""
25307
25308 #. type: =head2
25309 #: ../src/guestfs-actions.pod:3037
25310 msgid "guestfs_inspect_get_package_management"
25311 msgstr ""
25312
25313 #. type: verbatim
25314 #: ../src/guestfs-actions.pod:3039
25315 #, no-wrap
25316 msgid ""
25317 " char *\n"
25318 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
25319 "                                         const char *root);\n"
25320 "\n"
25321 msgstr ""
25322
25323 #. type: textblock
25324 #: ../src/guestfs-actions.pod:3043
25325 msgid ""
25326 "C<guestfs_inspect_get_package_format> and this function return the package "
25327 "format and package management tool used by the inspected operating system.  "
25328 "For example for Fedora these functions would return C<rpm> (package format) "
25329 "and C<yum> (package management)."
25330 msgstr ""
25331
25332 #. type: =head2
25333 #: ../src/guestfs-actions.pod:3065
25334 msgid "guestfs_inspect_get_product_name"
25335 msgstr ""
25336
25337 #. type: verbatim
25338 #: ../src/guestfs-actions.pod:3067
25339 #, no-wrap
25340 msgid ""
25341 " char *\n"
25342 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
25343 "                                   const char *root);\n"
25344 "\n"
25345 msgstr ""
25346
25347 #. type: =head2
25348 #: ../src/guestfs-actions.pod:3086
25349 msgid "guestfs_inspect_get_product_variant"
25350 msgstr ""
25351
25352 #. type: verbatim
25353 #: ../src/guestfs-actions.pod:3088
25354 #, no-wrap
25355 msgid ""
25356 " char *\n"
25357 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
25358 "                                      const char *root);\n"
25359 "\n"
25360 msgstr ""
25361
25362 #. type: textblock
25363 #: ../src/guestfs-actions.pod:3111
25364 msgid ""
25365 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25366 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
25367 msgstr ""
25368
25369 #. type: textblock
25370 #: ../src/guestfs-actions.pod:3118
25371 msgid "(Added in 1.9.13)"
25372 msgstr ""
25373
25374 #. type: =head2
25375 #: ../src/guestfs-actions.pod:3120
25376 msgid "guestfs_inspect_get_roots"
25377 msgstr ""
25378
25379 #. type: verbatim
25380 #: ../src/guestfs-actions.pod:3122
25381 #, no-wrap
25382 msgid ""
25383 " char **\n"
25384 " guestfs_inspect_get_roots (guestfs_h *g);\n"
25385 "\n"
25386 msgstr ""
25387
25388 #. type: textblock
25389 #: ../src/guestfs-actions.pod:3125
25390 msgid ""
25391 "This function is a convenient way to get the list of root devices, as "
25392 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
25393 "the whole inspection process."
25394 msgstr ""
25395
25396 #. type: textblock
25397 #: ../src/guestfs-actions.pod:3129
25398 msgid ""
25399 "This returns an empty list if either no root devices were found or the "
25400 "caller has not called C<guestfs_inspect_os>."
25401 msgstr ""
25402
25403 #. type: textblock
25404 #: ../src/guestfs-actions.pod:3138
25405 msgid "(Added in 1.7.3)"
25406 msgstr ""
25407
25408 #. type: =head2
25409 #: ../src/guestfs-actions.pod:3140
25410 msgid "guestfs_inspect_get_type"
25411 msgstr ""
25412
25413 #. type: verbatim
25414 #: ../src/guestfs-actions.pod:3142
25415 #, no-wrap
25416 msgid ""
25417 " char *\n"
25418 " guestfs_inspect_get_type (guestfs_h *g,\n"
25419 "                           const char *root);\n"
25420 "\n"
25421 msgstr ""
25422
25423 #. type: =head2
25424 #: ../src/guestfs-actions.pod:3179
25425 msgid "guestfs_inspect_get_windows_current_control_set"
25426 msgstr ""
25427
25428 #. type: verbatim
25429 #: ../src/guestfs-actions.pod:3181
25430 #, no-wrap
25431 msgid ""
25432 " char *\n"
25433 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
25434 "                                                  const char *root);\n"
25435 "\n"
25436 msgstr ""
25437
25438 #. type: =head2
25439 #: ../src/guestfs-actions.pod:3199
25440 msgid "guestfs_inspect_get_windows_systemroot"
25441 msgstr ""
25442
25443 #. type: verbatim
25444 #: ../src/guestfs-actions.pod:3201
25445 #, no-wrap
25446 msgid ""
25447 " char *\n"
25448 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
25449 "                                         const char *root);\n"
25450 "\n"
25451 msgstr ""
25452
25453 #. type: textblock
25454 #: ../src/guestfs-actions.pod:3217
25455 msgid "(Added in 1.5.25)"
25456 msgstr ""
25457
25458 #. type: =head2
25459 #: ../src/guestfs-actions.pod:3219
25460 msgid "guestfs_inspect_is_live"
25461 msgstr ""
25462
25463 #. type: verbatim
25464 #: ../src/guestfs-actions.pod:3221
25465 #, no-wrap
25466 msgid ""
25467 " int\n"
25468 " guestfs_inspect_is_live (guestfs_h *g,\n"
25469 "                          const char *root);\n"
25470 "\n"
25471 msgstr ""
25472
25473 #. type: textblock
25474 #: ../src/guestfs-actions.pod:3225
25475 msgid ""
25476 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
25477 "disk), then this returns true if a live image was detected on the disk."
25478 msgstr ""
25479
25480 #. type: =head2
25481 #: ../src/guestfs-actions.pod:3235
25482 msgid "guestfs_inspect_is_multipart"
25483 msgstr ""
25484
25485 #. type: verbatim
25486 #: ../src/guestfs-actions.pod:3237
25487 #, no-wrap
25488 msgid ""
25489 " int\n"
25490 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
25491 "                               const char *root);\n"
25492 "\n"
25493 msgstr ""
25494
25495 #. type: textblock
25496 #: ../src/guestfs-actions.pod:3241
25497 msgid ""
25498 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
25499 "disk), then this returns true if the disk is part of a set."
25500 msgstr ""
25501
25502 #. type: =head2
25503 #: ../src/guestfs-actions.pod:3251
25504 msgid "guestfs_inspect_is_netinst"
25505 msgstr ""
25506
25507 #. type: verbatim
25508 #: ../src/guestfs-actions.pod:3253
25509 #, no-wrap
25510 msgid ""
25511 " int\n"
25512 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
25513 "                             const char *root);\n"
25514 "\n"
25515 msgstr ""
25516
25517 #. type: textblock
25518 #: ../src/guestfs-actions.pod:3257
25519 msgid ""
25520 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
25521 "disk), then this returns true if the disk is a network installer, ie. not a "
25522 "self-contained install CD but one which is likely to require network access "
25523 "to complete the install."
25524 msgstr ""
25525
25526 #. type: =head2
25527 #: ../src/guestfs-actions.pod:3269
25528 msgid "guestfs_inspect_list_applications"
25529 msgstr ""
25530
25531 #. type: verbatim
25532 #: ../src/guestfs-actions.pod:3271
25533 #, no-wrap
25534 msgid ""
25535 " struct guestfs_application_list *\n"
25536 " guestfs_inspect_list_applications (guestfs_h *g,\n"
25537 "                                    const char *root);\n"
25538 "\n"
25539 msgstr ""
25540
25541 #. type: textblock
25542 #: ../src/guestfs-actions.pod:3277
25543 msgid ""
25544 "I<Note:> This call works differently from other parts of the inspection "
25545 "API.  You have to call C<guestfs_inspect_os>, then "
25546 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
25547 "this.  Listing applications is a significantly more difficult operation "
25548 "which requires access to the full filesystem.  Also note that unlike the "
25549 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
25550 "the libguestfs handle, this call actually reads parts of the mounted "
25551 "filesystems during the call."
25552 msgstr ""
25553
25554 #. type: textblock
25555 #: ../src/guestfs-actions.pod:3367
25556 msgid ""
25557 "This function returns a C<struct guestfs_application_list *>, or NULL if "
25558 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
25559 "after use>."
25560 msgstr ""
25561
25562 #. type: textblock
25563 #: ../src/guestfs-actions.pod:3371
25564 msgid "(Added in 1.7.8)"
25565 msgstr ""
25566
25567 #. type: =head2
25568 #: ../src/guestfs-actions.pod:3373
25569 msgid "guestfs_inspect_os"
25570 msgstr ""
25571
25572 #. type: verbatim
25573 #: ../src/guestfs-actions.pod:3375
25574 #, no-wrap
25575 msgid ""
25576 " char **\n"
25577 " guestfs_inspect_os (guestfs_h *g);\n"
25578 "\n"
25579 msgstr ""
25580
25581 #. type: textblock
25582 #: ../src/guestfs-actions.pod:3391
25583 msgid ""
25584 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
25585 "functions in order to query further information about each operating system, "
25586 "such as the name and version."
25587 msgstr ""
25588
25589 #. type: textblock
25590 #: ../src/guestfs-actions.pod:3396
25591 msgid ""
25592 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
25593 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
25594 "the contents.  This should be called with no disks currently mounted.  The "
25595 "function may also use Augeas, so any existing Augeas handle will be closed."
25596 msgstr ""
25597
25598 #. type: textblock
25599 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3739
25600 #: ../src/guestfs-actions.pod:3821
25601 msgid "See also C<guestfs_list_filesystems>."
25602 msgstr ""
25603
25604 #. type: =head2
25605 #: ../src/guestfs-actions.pod:3416
25606 msgid "guestfs_is_blockdev"
25607 msgstr ""
25608
25609 #. type: verbatim
25610 #: ../src/guestfs-actions.pod:3418
25611 #, no-wrap
25612 msgid ""
25613 " int\n"
25614 " guestfs_is_blockdev (guestfs_h *g,\n"
25615 "                      const char *path);\n"
25616 "\n"
25617 msgstr ""
25618
25619 #. type: textblock
25620 #: ../src/guestfs-actions.pod:3425 ../src/guestfs-actions.pod:3454
25621 #: ../src/guestfs-actions.pod:3484 ../src/guestfs-actions.pod:3499
25622 #: ../src/guestfs-actions.pod:3515 ../src/guestfs-actions.pod:3571
25623 #: ../src/guestfs-actions.pod:3586
25624 msgid "See also C<guestfs_stat>."
25625 msgstr ""
25626
25627 #. type: textblock
25628 #: ../src/guestfs-actions.pod:3429 ../src/guestfs-actions.pod:3458
25629 #: ../src/guestfs-actions.pod:3503 ../src/guestfs-actions.pod:3575
25630 #: ../src/guestfs-actions.pod:3590
25631 msgid "(Added in 1.5.10)"
25632 msgstr ""
25633
25634 #. type: =head2
25635 #: ../src/guestfs-actions.pod:3431
25636 msgid "guestfs_is_busy"
25637 msgstr ""
25638
25639 #. type: verbatim
25640 #: ../src/guestfs-actions.pod:3433
25641 #, no-wrap
25642 msgid ""
25643 " int\n"
25644 " guestfs_is_busy (guestfs_h *g);\n"
25645 "\n"
25646 msgstr ""
25647
25648 #. type: =head2
25649 #: ../src/guestfs-actions.pod:3445
25650 msgid "guestfs_is_chardev"
25651 msgstr ""
25652
25653 #. type: verbatim
25654 #: ../src/guestfs-actions.pod:3447
25655 #, no-wrap
25656 msgid ""
25657 " int\n"
25658 " guestfs_is_chardev (guestfs_h *g,\n"
25659 "                     const char *path);\n"
25660 "\n"
25661 msgstr ""
25662
25663 #. type: =head2
25664 #: ../src/guestfs-actions.pod:3460
25665 msgid "guestfs_is_config"
25666 msgstr ""
25667
25668 #. type: verbatim
25669 #: ../src/guestfs-actions.pod:3462
25670 #, no-wrap
25671 msgid ""
25672 " int\n"
25673 " guestfs_is_config (guestfs_h *g);\n"
25674 "\n"
25675 msgstr ""
25676
25677 #. type: =head2
25678 #: ../src/guestfs-actions.pod:3474
25679 msgid "guestfs_is_dir"
25680 msgstr ""
25681
25682 #. type: verbatim
25683 #: ../src/guestfs-actions.pod:3476
25684 #, no-wrap
25685 msgid ""
25686 " int\n"
25687 " guestfs_is_dir (guestfs_h *g,\n"
25688 "                 const char *path);\n"
25689 "\n"
25690 msgstr ""
25691
25692 #. type: =head2
25693 #: ../src/guestfs-actions.pod:3490
25694 msgid "guestfs_is_fifo"
25695 msgstr ""
25696
25697 #. type: verbatim
25698 #: ../src/guestfs-actions.pod:3492
25699 #, no-wrap
25700 msgid ""
25701 " int\n"
25702 " guestfs_is_fifo (guestfs_h *g,\n"
25703 "                  const char *path);\n"
25704 "\n"
25705 msgstr ""
25706
25707 #. type: =head2
25708 #: ../src/guestfs-actions.pod:3505
25709 msgid "guestfs_is_file"
25710 msgstr ""
25711
25712 #. type: verbatim
25713 #: ../src/guestfs-actions.pod:3507
25714 #, no-wrap
25715 msgid ""
25716 " int\n"
25717 " guestfs_is_file (guestfs_h *g,\n"
25718 "                  const char *path);\n"
25719 "\n"
25720 msgstr ""
25721
25722 #. type: =head2
25723 #: ../src/guestfs-actions.pod:3521
25724 msgid "guestfs_is_launching"
25725 msgstr ""
25726
25727 #. type: verbatim
25728 #: ../src/guestfs-actions.pod:3523
25729 #, no-wrap
25730 msgid ""
25731 " int\n"
25732 " guestfs_is_launching (guestfs_h *g);\n"
25733 "\n"
25734 msgstr ""
25735
25736 #. type: =head2
25737 #: ../src/guestfs-actions.pod:3535
25738 msgid "guestfs_is_lv"
25739 msgstr ""
25740
25741 #. type: verbatim
25742 #: ../src/guestfs-actions.pod:3537
25743 #, no-wrap
25744 msgid ""
25745 " int\n"
25746 " guestfs_is_lv (guestfs_h *g,\n"
25747 "                const char *device);\n"
25748 "\n"
25749 msgstr ""
25750
25751 #. type: =head2
25752 #: ../src/guestfs-actions.pod:3548
25753 msgid "guestfs_is_ready"
25754 msgstr ""
25755
25756 #. type: verbatim
25757 #: ../src/guestfs-actions.pod:3550
25758 #, no-wrap
25759 msgid ""
25760 " int\n"
25761 " guestfs_is_ready (guestfs_h *g);\n"
25762 "\n"
25763 msgstr ""
25764
25765 #. type: =head2
25766 #: ../src/guestfs-actions.pod:3562
25767 msgid "guestfs_is_socket"
25768 msgstr ""
25769
25770 #. type: verbatim
25771 #: ../src/guestfs-actions.pod:3564
25772 #, no-wrap
25773 msgid ""
25774 " int\n"
25775 " guestfs_is_socket (guestfs_h *g,\n"
25776 "                    const char *path);\n"
25777 "\n"
25778 msgstr ""
25779
25780 #. type: =head2
25781 #: ../src/guestfs-actions.pod:3577
25782 msgid "guestfs_is_symlink"
25783 msgstr ""
25784
25785 #. type: verbatim
25786 #: ../src/guestfs-actions.pod:3579
25787 #, no-wrap
25788 msgid ""
25789 " int\n"
25790 " guestfs_is_symlink (guestfs_h *g,\n"
25791 "                     const char *path);\n"
25792 "\n"
25793 msgstr ""
25794
25795 #. type: =head2
25796 #: ../src/guestfs-actions.pod:3592
25797 msgid "guestfs_is_zero"
25798 msgstr ""
25799
25800 #. type: verbatim
25801 #: ../src/guestfs-actions.pod:3594
25802 #, no-wrap
25803 msgid ""
25804 " int\n"
25805 " guestfs_is_zero (guestfs_h *g,\n"
25806 "                  const char *path);\n"
25807 "\n"
25808 msgstr ""
25809
25810 #. type: textblock
25811 #: ../src/guestfs-actions.pod:3603 ../src/guestfs-actions.pod:3617
25812 msgid "(Added in 1.11.8)"
25813 msgstr ""
25814
25815 #. type: =head2
25816 #: ../src/guestfs-actions.pod:3605
25817 msgid "guestfs_is_zero_device"
25818 msgstr ""
25819
25820 #. type: verbatim
25821 #: ../src/guestfs-actions.pod:3607
25822 #, no-wrap
25823 msgid ""
25824 " int\n"
25825 " guestfs_is_zero_device (guestfs_h *g,\n"
25826 "                         const char *device);\n"
25827 "\n"
25828 msgstr ""
25829
25830 #. type: =head2
25831 #: ../src/guestfs-actions.pod:3619
25832 msgid "guestfs_kill_subprocess"
25833 msgstr ""
25834
25835 #. type: verbatim
25836 #: ../src/guestfs-actions.pod:3621
25837 #, no-wrap
25838 msgid ""
25839 " int\n"
25840 " guestfs_kill_subprocess (guestfs_h *g);\n"
25841 "\n"
25842 msgstr ""
25843
25844 #. type: =head2
25845 #: ../src/guestfs-actions.pod:3630
25846 msgid "guestfs_launch"
25847 msgstr ""
25848
25849 #. type: verbatim
25850 #: ../src/guestfs-actions.pod:3632
25851 #, no-wrap
25852 msgid ""
25853 " int\n"
25854 " guestfs_launch (guestfs_h *g);\n"
25855 "\n"
25856 msgstr ""
25857
25858 #. type: =head2
25859 #: ../src/guestfs-actions.pod:3650
25860 msgid "guestfs_lchown"
25861 msgstr ""
25862
25863 #. type: verbatim
25864 #: ../src/guestfs-actions.pod:3652
25865 #, no-wrap
25866 msgid ""
25867 " int\n"
25868 " guestfs_lchown (guestfs_h *g,\n"
25869 "                 int owner,\n"
25870 "                 int group,\n"
25871 "                 const char *path);\n"
25872 "\n"
25873 msgstr ""
25874
25875 #. type: textblock
25876 #: ../src/guestfs-actions.pod:3658
25877 msgid ""
25878 "Change the file owner to C<owner> and group to C<group>.  This is like "
25879 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
25880 "changed, not the target."
25881 msgstr ""
25882
25883 #. type: =head2
25884 #: ../src/guestfs-actions.pod:3670
25885 msgid "guestfs_lgetxattr"
25886 msgstr ""
25887
25888 #. type: verbatim
25889 #: ../src/guestfs-actions.pod:3672
25890 #, no-wrap
25891 msgid ""
25892 " char *\n"
25893 " guestfs_lgetxattr (guestfs_h *g,\n"
25894 "                    const char *path,\n"
25895 "                    const char *name,\n"
25896 "                    size_t *size_r);\n"
25897 "\n"
25898 msgstr ""
25899
25900 #. type: textblock
25901 #: ../src/guestfs-actions.pod:3692
25902 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
25903 msgstr ""
25904
25905 #. type: =head2
25906 #: ../src/guestfs-actions.pod:3700
25907 msgid "guestfs_lgetxattrs"
25908 msgstr ""
25909
25910 #. type: verbatim
25911 #: ../src/guestfs-actions.pod:3702
25912 #, no-wrap
25913 msgid ""
25914 " struct guestfs_xattr_list *\n"
25915 " guestfs_lgetxattrs (guestfs_h *g,\n"
25916 "                     const char *path);\n"
25917 "\n"
25918 msgstr ""
25919
25920 #. type: textblock
25921 #: ../src/guestfs-actions.pod:3706
25922 msgid ""
25923 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
25924 "then it returns the extended attributes of the link itself."
25925 msgstr ""
25926
25927 #. type: =head2
25928 #: ../src/guestfs-actions.pod:3716
25929 msgid "guestfs_list_9p"
25930 msgstr ""
25931
25932 #. type: verbatim
25933 #: ../src/guestfs-actions.pod:3718
25934 #, no-wrap
25935 msgid ""
25936 " char **\n"
25937 " guestfs_list_9p (guestfs_h *g);\n"
25938 "\n"
25939 msgstr ""
25940
25941 #. type: =head2
25942 #: ../src/guestfs-actions.pod:3730
25943 msgid "guestfs_list_devices"
25944 msgstr ""
25945
25946 #. type: verbatim
25947 #: ../src/guestfs-actions.pod:3732
25948 #, no-wrap
25949 msgid ""
25950 " char **\n"
25951 " guestfs_list_devices (guestfs_h *g);\n"
25952 "\n"
25953 msgstr ""
25954
25955 #. type: =head2
25956 #: ../src/guestfs-actions.pod:3747
25957 msgid "guestfs_list_dm_devices"
25958 msgstr ""
25959
25960 #. type: verbatim
25961 #: ../src/guestfs-actions.pod:3749
25962 #, no-wrap
25963 msgid ""
25964 " char **\n"
25965 " guestfs_list_dm_devices (guestfs_h *g);\n"
25966 "\n"
25967 msgstr ""
25968
25969 #. type: textblock
25970 #: ../src/guestfs-actions.pod:3754
25971 msgid ""
25972 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
25973 "previous call to C<guestfs_luks_open>."
25974 msgstr ""
25975
25976 #. type: textblock
25977 #: ../src/guestfs-actions.pod:3757
25978 msgid ""
25979 "Device mapper devices which correspond to logical volumes are I<not> "
25980 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
25981 "volumes."
25982 msgstr ""
25983
25984 #. type: textblock
25985 #: ../src/guestfs-actions.pod:3765 ../src/guestfs-actions.pod:5221
25986 msgid "(Added in 1.11.15)"
25987 msgstr ""
25988
25989 #. type: =head2
25990 #: ../src/guestfs-actions.pod:3767
25991 msgid "guestfs_list_filesystems"
25992 msgstr ""
25993
25994 #. type: verbatim
25995 #: ../src/guestfs-actions.pod:3769
25996 #, no-wrap
25997 msgid ""
25998 " char **\n"
25999 " guestfs_list_filesystems (guestfs_h *g);\n"
26000 "\n"
26001 msgstr ""
26002
26003 #. type: textblock
26004 #: ../src/guestfs-actions.pod:3789
26005 msgid ""
26006 "This command runs other libguestfs commands, which might include "
26007 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
26008 "soon after launch and only when nothing is mounted."
26009 msgstr ""
26010
26011 #. type: textblock
26012 #: ../src/guestfs-actions.pod:3793
26013 msgid ""
26014 "Not all of the filesystems returned will be mountable.  In particular, swap "
26015 "partitions are returned in the list.  Also this command does not check that "
26016 "each filesystem found is valid and mountable, and some filesystems might be "
26017 "mountable but require special options.  Filesystems may not all belong to a "
26018 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
26019 msgstr ""
26020
26021 #. type: textblock
26022 #: ../src/guestfs-actions.pod:3807 ../src/guestfs-actions.pod:5582
26023 msgid "(Added in 1.5.15)"
26024 msgstr ""
26025
26026 #. type: =head2
26027 #: ../src/guestfs-actions.pod:3809
26028 msgid "guestfs_list_partitions"
26029 msgstr ""
26030
26031 #. type: verbatim
26032 #: ../src/guestfs-actions.pod:3811
26033 #, no-wrap
26034 msgid ""
26035 " char **\n"
26036 " guestfs_list_partitions (guestfs_h *g);\n"
26037 "\n"
26038 msgstr ""
26039
26040 #. type: textblock
26041 #: ../src/guestfs-actions.pod:3818
26042 msgid ""
26043 "This does not return logical volumes.  For that you will need to call "
26044 "C<guestfs_lvs>."
26045 msgstr ""
26046
26047 #. type: =head2
26048 #: ../src/guestfs-actions.pod:3829
26049 msgid "guestfs_ll"
26050 msgstr ""
26051
26052 #. type: verbatim
26053 #: ../src/guestfs-actions.pod:3831
26054 #, no-wrap
26055 msgid ""
26056 " char *\n"
26057 " guestfs_ll (guestfs_h *g,\n"
26058 "             const char *directory);\n"
26059 "\n"
26060 msgstr ""
26061
26062 #. type: =head2
26063 #: ../src/guestfs-actions.pod:3846
26064 msgid "guestfs_ln"
26065 msgstr ""
26066
26067 #. type: verbatim
26068 #: ../src/guestfs-actions.pod:3848
26069 #, no-wrap
26070 msgid ""
26071 " int\n"
26072 " guestfs_ln (guestfs_h *g,\n"
26073 "             const char *target,\n"
26074 "             const char *linkname);\n"
26075 "\n"
26076 msgstr ""
26077
26078 #. type: =head2
26079 #: ../src/guestfs-actions.pod:3859
26080 msgid "guestfs_ln_f"
26081 msgstr ""
26082
26083 #. type: verbatim
26084 #: ../src/guestfs-actions.pod:3861
26085 #, no-wrap
26086 msgid ""
26087 " int\n"
26088 " guestfs_ln_f (guestfs_h *g,\n"
26089 "               const char *target,\n"
26090 "               const char *linkname);\n"
26091 "\n"
26092 msgstr ""
26093
26094 #. type: =head2
26095 #: ../src/guestfs-actions.pod:3873
26096 msgid "guestfs_ln_s"
26097 msgstr ""
26098
26099 #. type: verbatim
26100 #: ../src/guestfs-actions.pod:3875
26101 #, no-wrap
26102 msgid ""
26103 " int\n"
26104 " guestfs_ln_s (guestfs_h *g,\n"
26105 "               const char *target,\n"
26106 "               const char *linkname);\n"
26107 "\n"
26108 msgstr ""
26109
26110 #. type: =head2
26111 #: ../src/guestfs-actions.pod:3886
26112 msgid "guestfs_ln_sf"
26113 msgstr ""
26114
26115 #. type: verbatim
26116 #: ../src/guestfs-actions.pod:3888
26117 #, no-wrap
26118 msgid ""
26119 " int\n"
26120 " guestfs_ln_sf (guestfs_h *g,\n"
26121 "                const char *target,\n"
26122 "                const char *linkname);\n"
26123 "\n"
26124 msgstr ""
26125
26126 #. type: =head2
26127 #: ../src/guestfs-actions.pod:3900
26128 msgid "guestfs_lremovexattr"
26129 msgstr ""
26130
26131 #. type: verbatim
26132 #: ../src/guestfs-actions.pod:3902
26133 #, no-wrap
26134 msgid ""
26135 " int\n"
26136 " guestfs_lremovexattr (guestfs_h *g,\n"
26137 "                       const char *xattr,\n"
26138 "                       const char *path);\n"
26139 "\n"
26140 msgstr ""
26141
26142 #. type: textblock
26143 #: ../src/guestfs-actions.pod:3907
26144 msgid ""
26145 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
26146 "link, then it removes an extended attribute of the link itself."
26147 msgstr ""
26148
26149 #. type: =head2
26150 #: ../src/guestfs-actions.pod:3915
26151 msgid "guestfs_ls"
26152 msgstr ""
26153
26154 #. type: verbatim
26155 #: ../src/guestfs-actions.pod:3917
26156 #, no-wrap
26157 msgid ""
26158 " char **\n"
26159 " guestfs_ls (guestfs_h *g,\n"
26160 "             const char *directory);\n"
26161 "\n"
26162 msgstr ""
26163
26164 #. type: textblock
26165 #: ../src/guestfs-actions.pod:3925
26166 msgid ""
26167 "This command is mostly useful for interactive sessions.  Programs should "
26168 "probably use C<guestfs_readdir> instead."
26169 msgstr ""
26170
26171 #. type: =head2
26172 #: ../src/guestfs-actions.pod:3934
26173 msgid "guestfs_lsetxattr"
26174 msgstr ""
26175
26176 #. type: verbatim
26177 #: ../src/guestfs-actions.pod:3936
26178 #, no-wrap
26179 msgid ""
26180 " int\n"
26181 " guestfs_lsetxattr (guestfs_h *g,\n"
26182 "                    const char *xattr,\n"
26183 "                    const char *val,\n"
26184 "                    int vallen,\n"
26185 "                    const char *path);\n"
26186 "\n"
26187 msgstr ""
26188
26189 #. type: textblock
26190 #: ../src/guestfs-actions.pod:3943
26191 msgid ""
26192 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
26193 "then it sets an extended attribute of the link itself."
26194 msgstr ""
26195
26196 #. type: =head2
26197 #: ../src/guestfs-actions.pod:3951
26198 msgid "guestfs_lstat"
26199 msgstr ""
26200
26201 #. type: verbatim
26202 #: ../src/guestfs-actions.pod:3953
26203 #, no-wrap
26204 msgid ""
26205 " struct guestfs_stat *\n"
26206 " guestfs_lstat (guestfs_h *g,\n"
26207 "                const char *path);\n"
26208 "\n"
26209 msgstr ""
26210
26211 #. type: textblock
26212 #: ../src/guestfs-actions.pod:3959
26213 msgid ""
26214 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
26215 "link, then the link is stat-ed, not the file it refers to."
26216 msgstr ""
26217
26218 #. type: textblock
26219 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:6740
26220 msgid ""
26221 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
26222 "error.  I<The caller must call C<guestfs_free_stat> after use>."
26223 msgstr ""
26224
26225 #. type: textblock
26226 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:6744
26227 #: ../src/guestfs-actions.pod:6762 ../src/guestfs-actions.pod:7143
26228 msgid "(Added in 0.9.2)"
26229 msgstr ""
26230
26231 #. type: =head2
26232 #: ../src/guestfs-actions.pod:3971
26233 msgid "guestfs_lstatlist"
26234 msgstr ""
26235
26236 #. type: verbatim
26237 #: ../src/guestfs-actions.pod:3973
26238 #, no-wrap
26239 msgid ""
26240 " struct guestfs_stat_list *\n"
26241 " guestfs_lstatlist (guestfs_h *g,\n"
26242 "                    const char *path,\n"
26243 "                    char *const *names);\n"
26244 "\n"
26245 msgstr ""
26246
26247 #. type: textblock
26248 #: ../src/guestfs-actions.pod:3978
26249 msgid ""
26250 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
26251 "files, where all files are in the directory C<path>.  C<names> is the list "
26252 "of files from this directory."
26253 msgstr ""
26254
26255 #. type: textblock
26256 #: ../src/guestfs-actions.pod:3987
26257 msgid ""
26258 "This call is intended for programs that want to efficiently list a directory "
26259 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
26260 "for a similarly efficient call for getting extended attributes.  Very long "
26261 "directory listings might cause the protocol message size to be exceeded, "
26262 "causing this call to fail.  The caller must split up such requests into "
26263 "smaller groups of names."
26264 msgstr ""
26265
26266 #. type: textblock
26267 #: ../src/guestfs-actions.pod:3995
26268 msgid ""
26269 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
26270 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
26271 msgstr ""
26272
26273 #. type: =head2
26274 #: ../src/guestfs-actions.pod:4001
26275 msgid "guestfs_luks_add_key"
26276 msgstr ""
26277
26278 #. type: verbatim
26279 #: ../src/guestfs-actions.pod:4003
26280 #, no-wrap
26281 msgid ""
26282 " int\n"
26283 " guestfs_luks_add_key (guestfs_h *g,\n"
26284 "                       const char *device,\n"
26285 "                       const char *key,\n"
26286 "                       const char *newkey,\n"
26287 "                       int keyslot);\n"
26288 "\n"
26289 msgstr ""
26290
26291 #. type: textblock
26292 #: ../src/guestfs-actions.pod:4015
26293 msgid ""
26294 "Note that if C<keyslot> already contains a key, then this command will "
26295 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
26296 msgstr ""
26297
26298 #. type: textblock
26299 #: ../src/guestfs-actions.pod:4021 ../src/guestfs-actions.pod:4061
26300 #: ../src/guestfs-actions.pod:4084 ../src/guestfs-actions.pod:4104
26301 #: ../src/guestfs-actions.pod:4139 ../src/guestfs-actions.pod:4158
26302 msgid ""
26303 "This function takes a key or passphrase parameter which could contain "
26304 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
26305 "information."
26306 msgstr ""
26307
26308 #. type: textblock
26309 #: ../src/guestfs-actions.pod:4025 ../src/guestfs-actions.pod:4065
26310 #: ../src/guestfs-actions.pod:4088 ../src/guestfs-actions.pod:4108
26311 msgid "(Added in 1.5.2)"
26312 msgstr ""
26313
26314 #. type: =head2
26315 #: ../src/guestfs-actions.pod:4027
26316 msgid "guestfs_luks_close"
26317 msgstr ""
26318
26319 #. type: verbatim
26320 #: ../src/guestfs-actions.pod:4029
26321 #, no-wrap
26322 msgid ""
26323 " int\n"
26324 " guestfs_luks_close (guestfs_h *g,\n"
26325 "                     const char *device);\n"
26326 "\n"
26327 msgstr ""
26328
26329 #. type: textblock
26330 #: ../src/guestfs-actions.pod:4033
26331 msgid ""
26332 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
26333 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
26334 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
26335 "underlying block device."
26336 msgstr ""
26337
26338 #. type: textblock
26339 #: ../src/guestfs-actions.pod:4041 ../src/guestfs-actions.pod:4143
26340 #: ../src/guestfs-actions.pod:4162 ../src/guestfs-actions.pod:4212
26341 #: ../src/guestfs-actions.pod:4260
26342 msgid "(Added in 1.5.1)"
26343 msgstr ""
26344
26345 #. type: =head2
26346 #: ../src/guestfs-actions.pod:4043
26347 msgid "guestfs_luks_format"
26348 msgstr ""
26349
26350 #. type: verbatim
26351 #: ../src/guestfs-actions.pod:4045
26352 #, no-wrap
26353 msgid ""
26354 " int\n"
26355 " guestfs_luks_format (guestfs_h *g,\n"
26356 "                      const char *device,\n"
26357 "                      const char *key,\n"
26358 "                      int keyslot);\n"
26359 "\n"
26360 msgstr ""
26361
26362 #. type: =head2
26363 #: ../src/guestfs-actions.pod:4067
26364 msgid "guestfs_luks_format_cipher"
26365 msgstr ""
26366
26367 #. type: verbatim
26368 #: ../src/guestfs-actions.pod:4069
26369 #, no-wrap
26370 msgid ""
26371 " int\n"
26372 " guestfs_luks_format_cipher (guestfs_h *g,\n"
26373 "                             const char *device,\n"
26374 "                             const char *key,\n"
26375 "                             int keyslot,\n"
26376 "                             const char *cipher);\n"
26377 "\n"
26378 msgstr ""
26379
26380 #. type: textblock
26381 #: ../src/guestfs-actions.pod:4076
26382 msgid ""
26383 "This command is the same as C<guestfs_luks_format> but it also allows you to "
26384 "set the C<cipher> used."
26385 msgstr ""
26386
26387 #. type: =head2
26388 #: ../src/guestfs-actions.pod:4090
26389 msgid "guestfs_luks_kill_slot"
26390 msgstr ""
26391
26392 #. type: verbatim
26393 #: ../src/guestfs-actions.pod:4092
26394 #, no-wrap
26395 msgid ""
26396 " int\n"
26397 " guestfs_luks_kill_slot (guestfs_h *g,\n"
26398 "                         const char *device,\n"
26399 "                         const char *key,\n"
26400 "                         int keyslot);\n"
26401 "\n"
26402 msgstr ""
26403
26404 #. type: =head2
26405 #: ../src/guestfs-actions.pod:4110
26406 msgid "guestfs_luks_open"
26407 msgstr ""
26408
26409 #. type: verbatim
26410 #: ../src/guestfs-actions.pod:4112
26411 #, no-wrap
26412 msgid ""
26413 " int\n"
26414 " guestfs_luks_open (guestfs_h *g,\n"
26415 "                    const char *device,\n"
26416 "                    const char *key,\n"
26417 "                    const char *mapname);\n"
26418 "\n"
26419 msgstr ""
26420
26421 #. type: textblock
26422 #: ../src/guestfs-actions.pod:4130
26423 msgid ""
26424 "If this block device contains LVM volume groups, then calling "
26425 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
26426 "visible."
26427 msgstr ""
26428
26429 #. type: textblock
26430 #: ../src/guestfs-actions.pod:4134
26431 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
26432 msgstr ""
26433
26434 #. type: =head2
26435 #: ../src/guestfs-actions.pod:4145
26436 msgid "guestfs_luks_open_ro"
26437 msgstr ""
26438
26439 #. type: verbatim
26440 #: ../src/guestfs-actions.pod:4147
26441 #, no-wrap
26442 msgid ""
26443 " int\n"
26444 " guestfs_luks_open_ro (guestfs_h *g,\n"
26445 "                       const char *device,\n"
26446 "                       const char *key,\n"
26447 "                       const char *mapname);\n"
26448 "\n"
26449 msgstr ""
26450
26451 #. type: textblock
26452 #: ../src/guestfs-actions.pod:4153
26453 msgid ""
26454 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
26455 "created."
26456 msgstr ""
26457
26458 #. type: =head2
26459 #: ../src/guestfs-actions.pod:4164
26460 msgid "guestfs_lvcreate"
26461 msgstr ""
26462
26463 #. type: verbatim
26464 #: ../src/guestfs-actions.pod:4166
26465 #, no-wrap
26466 msgid ""
26467 " int\n"
26468 " guestfs_lvcreate (guestfs_h *g,\n"
26469 "                   const char *logvol,\n"
26470 "                   const char *volgroup,\n"
26471 "                   int mbytes);\n"
26472 "\n"
26473 msgstr ""
26474
26475 #. type: =head2
26476 #: ../src/guestfs-actions.pod:4179
26477 msgid "guestfs_lvm_canonical_lv_name"
26478 msgstr ""
26479
26480 #. type: verbatim
26481 #: ../src/guestfs-actions.pod:4181
26482 #, no-wrap
26483 msgid ""
26484 " char *\n"
26485 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
26486 "                                const char *lvname);\n"
26487 "\n"
26488 msgstr ""
26489
26490 #. type: textblock
26491 #: ../src/guestfs-actions.pod:4192
26492 msgid "See also C<guestfs_is_lv>."
26493 msgstr ""
26494
26495 #. type: textblock
26496 #: ../src/guestfs-actions.pod:4197
26497 msgid "(Added in 1.5.24)"
26498 msgstr ""
26499
26500 #. type: =head2
26501 #: ../src/guestfs-actions.pod:4199
26502 msgid "guestfs_lvm_clear_filter"
26503 msgstr ""
26504
26505 #. type: verbatim
26506 #: ../src/guestfs-actions.pod:4201
26507 #, no-wrap
26508 msgid ""
26509 " int\n"
26510 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
26511 "\n"
26512 msgstr ""
26513
26514 #. type: textblock
26515 #: ../src/guestfs-actions.pod:4204
26516 msgid ""
26517 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
26518 "see every block device."
26519 msgstr ""
26520
26521 #. type: =head2
26522 #: ../src/guestfs-actions.pod:4214
26523 msgid "guestfs_lvm_remove_all"
26524 msgstr ""
26525
26526 #. type: verbatim
26527 #: ../src/guestfs-actions.pod:4216
26528 #, no-wrap
26529 msgid ""
26530 " int\n"
26531 " guestfs_lvm_remove_all (guestfs_h *g);\n"
26532 "\n"
26533 msgstr ""
26534
26535 #. type: =head2
26536 #: ../src/guestfs-actions.pod:4229
26537 msgid "guestfs_lvm_set_filter"
26538 msgstr ""
26539
26540 #. type: verbatim
26541 #: ../src/guestfs-actions.pod:4231
26542 #, no-wrap
26543 msgid ""
26544 " int\n"
26545 " guestfs_lvm_set_filter (guestfs_h *g,\n"
26546 "                         char *const *devices);\n"
26547 "\n"
26548 msgstr ""
26549
26550 #. type: =head2
26551 #: ../src/guestfs-actions.pod:4262
26552 msgid "guestfs_lvremove"
26553 msgstr ""
26554
26555 #. type: verbatim
26556 #: ../src/guestfs-actions.pod:4264
26557 #, no-wrap
26558 msgid ""
26559 " int\n"
26560 " guestfs_lvremove (guestfs_h *g,\n"
26561 "                   const char *device);\n"
26562 "\n"
26563 msgstr ""
26564
26565 #. type: textblock
26566 #: ../src/guestfs-actions.pod:4276 ../src/guestfs-actions.pod:5679
26567 #: ../src/guestfs-actions.pod:7513
26568 msgid "(Added in 1.0.13)"
26569 msgstr ""
26570
26571 #. type: =head2
26572 #: ../src/guestfs-actions.pod:4278
26573 msgid "guestfs_lvrename"
26574 msgstr ""
26575
26576 #. type: verbatim
26577 #: ../src/guestfs-actions.pod:4280
26578 #, no-wrap
26579 msgid ""
26580 " int\n"
26581 " guestfs_lvrename (guestfs_h *g,\n"
26582 "                   const char *logvol,\n"
26583 "                   const char *newlogvol);\n"
26584 "\n"
26585 msgstr ""
26586
26587 #. type: textblock
26588 #: ../src/guestfs-actions.pod:4289 ../src/guestfs-actions.pod:7526
26589 msgid "(Added in 1.0.83)"
26590 msgstr ""
26591
26592 #. type: =head2
26593 #: ../src/guestfs-actions.pod:4291
26594 msgid "guestfs_lvresize"
26595 msgstr ""
26596
26597 #. type: verbatim
26598 #: ../src/guestfs-actions.pod:4293
26599 #, no-wrap
26600 msgid ""
26601 " int\n"
26602 " guestfs_lvresize (guestfs_h *g,\n"
26603 "                   const char *device,\n"
26604 "                   int mbytes);\n"
26605 "\n"
26606 msgstr ""
26607
26608 #. type: =head2
26609 #: ../src/guestfs-actions.pod:4306
26610 msgid "guestfs_lvresize_free"
26611 msgstr ""
26612
26613 #. type: verbatim
26614 #: ../src/guestfs-actions.pod:4308
26615 #, no-wrap
26616 msgid ""
26617 " int\n"
26618 " guestfs_lvresize_free (guestfs_h *g,\n"
26619 "                        const char *lv,\n"
26620 "                        int percent);\n"
26621 "\n"
26622 msgstr ""
26623
26624 #. type: textblock
26625 #: ../src/guestfs-actions.pod:4321
26626 msgid "(Added in 1.3.3)"
26627 msgstr ""
26628
26629 #. type: =head2
26630 #: ../src/guestfs-actions.pod:4323
26631 msgid "guestfs_lvs"
26632 msgstr ""
26633
26634 #. type: verbatim
26635 #: ../src/guestfs-actions.pod:4325
26636 #, no-wrap
26637 msgid ""
26638 " char **\n"
26639 " guestfs_lvs (guestfs_h *g);\n"
26640 "\n"
26641 msgstr ""
26642
26643 #. type: textblock
26644 #: ../src/guestfs-actions.pod:4334
26645 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
26646 msgstr ""
26647
26648 #. type: =head2
26649 #: ../src/guestfs-actions.pod:4342
26650 msgid "guestfs_lvs_full"
26651 msgstr ""
26652
26653 #. type: verbatim
26654 #: ../src/guestfs-actions.pod:4344
26655 #, no-wrap
26656 msgid ""
26657 " struct guestfs_lvm_lv_list *\n"
26658 " guestfs_lvs_full (guestfs_h *g);\n"
26659 "\n"
26660 msgstr ""
26661
26662 #. type: textblock
26663 #: ../src/guestfs-actions.pod:4350
26664 msgid ""
26665 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
26666 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
26667 msgstr ""
26668
26669 #. type: =head2
26670 #: ../src/guestfs-actions.pod:4356
26671 msgid "guestfs_lvuuid"
26672 msgstr ""
26673
26674 #. type: verbatim
26675 #: ../src/guestfs-actions.pod:4358
26676 #, no-wrap
26677 msgid ""
26678 " char *\n"
26679 " guestfs_lvuuid (guestfs_h *g,\n"
26680 "                 const char *device);\n"
26681 "\n"
26682 msgstr ""
26683
26684 #. type: =head2
26685 #: ../src/guestfs-actions.pod:4369
26686 msgid "guestfs_lxattrlist"
26687 msgstr ""
26688
26689 #. type: verbatim
26690 #: ../src/guestfs-actions.pod:4371
26691 #, no-wrap
26692 msgid ""
26693 " struct guestfs_xattr_list *\n"
26694 " guestfs_lxattrlist (guestfs_h *g,\n"
26695 "                     const char *path,\n"
26696 "                     char *const *names);\n"
26697 "\n"
26698 msgstr ""
26699
26700 #. type: textblock
26701 #: ../src/guestfs-actions.pod:4390
26702 msgid ""
26703 "This call is intended for programs that want to efficiently list a directory "
26704 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
26705 "a similarly efficient call for getting standard stats.  Very long directory "
26706 "listings might cause the protocol message size to be exceeded, causing this "
26707 "call to fail.  The caller must split up such requests into smaller groups of "
26708 "names."
26709 msgstr ""
26710
26711 #. type: =head2
26712 #: ../src/guestfs-actions.pod:4404
26713 msgid "guestfs_mkdir"
26714 msgstr ""
26715
26716 #. type: verbatim
26717 #: ../src/guestfs-actions.pod:4406
26718 #, no-wrap
26719 msgid ""
26720 " int\n"
26721 " guestfs_mkdir (guestfs_h *g,\n"
26722 "                const char *path);\n"
26723 "\n"
26724 msgstr ""
26725
26726 #. type: =head2
26727 #: ../src/guestfs-actions.pod:4416
26728 msgid "guestfs_mkdir_mode"
26729 msgstr ""
26730
26731 #. type: verbatim
26732 #: ../src/guestfs-actions.pod:4418
26733 #, no-wrap
26734 msgid ""
26735 " int\n"
26736 " guestfs_mkdir_mode (guestfs_h *g,\n"
26737 "                     const char *path,\n"
26738 "                     int mode);\n"
26739 "\n"
26740 msgstr ""
26741
26742 #. type: textblock
26743 #: ../src/guestfs-actions.pod:4430
26744 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
26745 msgstr ""
26746
26747 #. type: =head2
26748 #: ../src/guestfs-actions.pod:4436
26749 msgid "guestfs_mkdir_p"
26750 msgstr ""
26751
26752 #. type: verbatim
26753 #: ../src/guestfs-actions.pod:4438
26754 #, no-wrap
26755 msgid ""
26756 " int\n"
26757 " guestfs_mkdir_p (guestfs_h *g,\n"
26758 "                  const char *path);\n"
26759 "\n"
26760 msgstr ""
26761
26762 #. type: =head2
26763 #: ../src/guestfs-actions.pod:4449
26764 msgid "guestfs_mkdtemp"
26765 msgstr ""
26766
26767 #. type: verbatim
26768 #: ../src/guestfs-actions.pod:4451
26769 #, no-wrap
26770 msgid ""
26771 " char *\n"
26772 " guestfs_mkdtemp (guestfs_h *g,\n"
26773 "                  const char *template);\n"
26774 "\n"
26775 msgstr ""
26776
26777 #. type: =head2
26778 #: ../src/guestfs-actions.pod:4479
26779 msgid "guestfs_mke2fs_J"
26780 msgstr ""
26781
26782 #. type: verbatim
26783 #: ../src/guestfs-actions.pod:4481
26784 #, no-wrap
26785 msgid ""
26786 " int\n"
26787 " guestfs_mke2fs_J (guestfs_h *g,\n"
26788 "                   const char *fstype,\n"
26789 "                   int blocksize,\n"
26790 "                   const char *device,\n"
26791 "                   const char *journal);\n"
26792 "\n"
26793 msgstr ""
26794
26795 #. type: textblock
26796 #: ../src/guestfs-actions.pod:4494
26797 msgid "See also C<guestfs_mke2journal>."
26798 msgstr ""
26799
26800 #. type: textblock
26801 #: ../src/guestfs-actions.pod:4498 ../src/guestfs-actions.pod:4516
26802 #: ../src/guestfs-actions.pod:4534 ../src/guestfs-actions.pod:4550
26803 #: ../src/guestfs-actions.pod:4564 ../src/guestfs-actions.pod:4578
26804 #: ../src/guestfs-actions.pod:4637 ../src/guestfs-actions.pod:4914
26805 msgid "(Added in 1.0.68)"
26806 msgstr ""
26807
26808 #. type: =head2
26809 #: ../src/guestfs-actions.pod:4500
26810 msgid "guestfs_mke2fs_JL"
26811 msgstr ""
26812
26813 #. type: verbatim
26814 #: ../src/guestfs-actions.pod:4502
26815 #, no-wrap
26816 msgid ""
26817 " int\n"
26818 " guestfs_mke2fs_JL (guestfs_h *g,\n"
26819 "                    const char *fstype,\n"
26820 "                    int blocksize,\n"
26821 "                    const char *device,\n"
26822 "                    const char *label);\n"
26823 "\n"
26824 msgstr ""
26825
26826 #. type: textblock
26827 #: ../src/guestfs-actions.pod:4512
26828 msgid "See also C<guestfs_mke2journal_L>."
26829 msgstr ""
26830
26831 #. type: =head2
26832 #: ../src/guestfs-actions.pod:4518
26833 msgid "guestfs_mke2fs_JU"
26834 msgstr ""
26835
26836 #. type: verbatim
26837 #: ../src/guestfs-actions.pod:4520
26838 #, no-wrap
26839 msgid ""
26840 " int\n"
26841 " guestfs_mke2fs_JU (guestfs_h *g,\n"
26842 "                    const char *fstype,\n"
26843 "                    int blocksize,\n"
26844 "                    const char *device,\n"
26845 "                    const char *uuid);\n"
26846 "\n"
26847 msgstr ""
26848
26849 #. type: textblock
26850 #: ../src/guestfs-actions.pod:4530
26851 msgid "See also C<guestfs_mke2journal_U>."
26852 msgstr ""
26853
26854 #. type: =head2
26855 #: ../src/guestfs-actions.pod:4536
26856 msgid "guestfs_mke2journal"
26857 msgstr ""
26858
26859 #. type: verbatim
26860 #: ../src/guestfs-actions.pod:4538
26861 #, no-wrap
26862 msgid ""
26863 " int\n"
26864 " guestfs_mke2journal (guestfs_h *g,\n"
26865 "                      int blocksize,\n"
26866 "                      const char *device);\n"
26867 "\n"
26868 msgstr ""
26869
26870 #. type: =head2
26871 #: ../src/guestfs-actions.pod:4552
26872 msgid "guestfs_mke2journal_L"
26873 msgstr ""
26874
26875 #. type: verbatim
26876 #: ../src/guestfs-actions.pod:4554
26877 #, no-wrap
26878 msgid ""
26879 " int\n"
26880 " guestfs_mke2journal_L (guestfs_h *g,\n"
26881 "                        int blocksize,\n"
26882 "                        const char *label,\n"
26883 "                        const char *device);\n"
26884 "\n"
26885 msgstr ""
26886
26887 #. type: =head2
26888 #: ../src/guestfs-actions.pod:4566
26889 msgid "guestfs_mke2journal_U"
26890 msgstr ""
26891
26892 #. type: verbatim
26893 #: ../src/guestfs-actions.pod:4568
26894 #, no-wrap
26895 msgid ""
26896 " int\n"
26897 " guestfs_mke2journal_U (guestfs_h *g,\n"
26898 "                        int blocksize,\n"
26899 "                        const char *uuid,\n"
26900 "                        const char *device);\n"
26901 "\n"
26902 msgstr ""
26903
26904 #. type: =head2
26905 #: ../src/guestfs-actions.pod:4580
26906 msgid "guestfs_mkfifo"
26907 msgstr ""
26908
26909 #. type: verbatim
26910 #: ../src/guestfs-actions.pod:4582
26911 #, no-wrap
26912 msgid ""
26913 " int\n"
26914 " guestfs_mkfifo (guestfs_h *g,\n"
26915 "                 int mode,\n"
26916 "                 const char *path);\n"
26917 "\n"
26918 msgstr ""
26919
26920 #. type: textblock
26921 #: ../src/guestfs-actions.pod:4587
26922 msgid ""
26923 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
26924 "is just a convenient wrapper around C<guestfs_mknod>."
26925 msgstr ""
26926
26927 #. type: =head2
26928 #: ../src/guestfs-actions.pod:4597
26929 msgid "guestfs_mkfs"
26930 msgstr ""
26931
26932 #. type: verbatim
26933 #: ../src/guestfs-actions.pod:4599
26934 #, no-wrap
26935 msgid ""
26936 " int\n"
26937 " guestfs_mkfs (guestfs_h *g,\n"
26938 "               const char *fstype,\n"
26939 "               const char *device);\n"
26940 "\n"
26941 msgstr ""
26942
26943 #. type: =head2
26944 #: ../src/guestfs-actions.pod:4612
26945 msgid "guestfs_mkfs_b"
26946 msgstr ""
26947
26948 #. type: verbatim
26949 #: ../src/guestfs-actions.pod:4614
26950 #, no-wrap
26951 msgid ""
26952 " int\n"
26953 " guestfs_mkfs_b (guestfs_h *g,\n"
26954 "                 const char *fstype,\n"
26955 "                 int blocksize,\n"
26956 "                 const char *device);\n"
26957 "\n"
26958 msgstr ""
26959
26960 #. type: textblock
26961 #: ../src/guestfs-actions.pod:4620
26962 msgid ""
26963 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
26964 "call instead."
26965 msgstr ""
26966
26967 #. type: textblock
26968 #: ../src/guestfs-actions.pod:4627
26969 msgid ""
26970 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
26971 "block size of the resulting filesystem.  Supported block sizes depend on the "
26972 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
26973 msgstr ""
26974
26975 #. type: =head2
26976 #: ../src/guestfs-actions.pod:4639
26977 msgid "guestfs_mkfs_opts"
26978 msgstr ""
26979
26980 #. type: verbatim
26981 #: ../src/guestfs-actions.pod:4641
26982 #, no-wrap
26983 msgid ""
26984 " int\n"
26985 " guestfs_mkfs_opts (guestfs_h *g,\n"
26986 "                    const char *fstype,\n"
26987 "                    const char *device,\n"
26988 "                    ...);\n"
26989 "\n"
26990 msgstr ""
26991
26992 #. type: verbatim
26993 #: ../src/guestfs-actions.pod:4652
26994 #, no-wrap
26995 msgid ""
26996 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
26997 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
26998 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
26999 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
27000 "\n"
27001 msgstr ""
27002
27003 #. type: textblock
27004 #: ../src/guestfs-actions.pod:4700
27005 msgid "(Added in 1.7.19)"
27006 msgstr ""
27007
27008 #. type: =head2
27009 #: ../src/guestfs-actions.pod:4702
27010 msgid "guestfs_mkfs_opts_va"
27011 msgstr ""
27012
27013 #. type: verbatim
27014 #: ../src/guestfs-actions.pod:4704
27015 #, no-wrap
27016 msgid ""
27017 " int\n"
27018 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
27019 "                       const char *fstype,\n"
27020 "                       const char *device,\n"
27021 "                       va_list args);\n"
27022 "\n"
27023 msgstr ""
27024
27025 #. type: textblock
27026 #: ../src/guestfs-actions.pod:4710
27027 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
27028 msgstr ""
27029
27030 #. type: =head2
27031 #: ../src/guestfs-actions.pod:4714
27032 msgid "guestfs_mkfs_opts_argv"
27033 msgstr ""
27034
27035 #. type: verbatim
27036 #: ../src/guestfs-actions.pod:4716
27037 #, no-wrap
27038 msgid ""
27039 " int\n"
27040 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27041 "                         const char *fstype,\n"
27042 "                         const char *device,\n"
27043 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
27044 "\n"
27045 msgstr ""
27046
27047 #. type: textblock
27048 #: ../src/guestfs-actions.pod:4722
27049 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
27050 msgstr ""
27051
27052 #. type: =head2
27053 #: ../src/guestfs-actions.pod:4726
27054 msgid "guestfs_mkmountpoint"
27055 msgstr ""
27056
27057 #. type: verbatim
27058 #: ../src/guestfs-actions.pod:4728
27059 #, no-wrap
27060 msgid ""
27061 " int\n"
27062 " guestfs_mkmountpoint (guestfs_h *g,\n"
27063 "                       const char *exemptpath);\n"
27064 "\n"
27065 msgstr ""
27066
27067 #. type: textblock
27068 #: ../src/guestfs-actions.pod:4732
27069 msgid ""
27070 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
27071 "that can be used to create extra mountpoints before mounting the first "
27072 "filesystem."
27073 msgstr ""
27074
27075 #. type: textblock
27076 #: ../src/guestfs-actions.pod:4756
27077 msgid ""
27078 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
27079 "may get unexpected errors if you try to mix these calls.  It is safest to "
27080 "manually unmount filesystems and remove mountpoints after use."
27081 msgstr ""
27082
27083 #. type: textblock
27084 #: ../src/guestfs-actions.pod:4760
27085 msgid ""
27086 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
27087 "first, so for this to work for manual mountpoints, you must ensure that the "
27088 "innermost mountpoints have the longest pathnames, as in the example code "
27089 "above."
27090 msgstr ""
27091
27092 #. type: textblock
27093 #: ../src/guestfs-actions.pod:4767
27094 msgid ""
27095 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
27096 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
27097 "can also trigger these issues."
27098 msgstr ""
27099
27100 #. type: textblock
27101 #: ../src/guestfs-actions.pod:4773 ../src/guestfs-actions.pod:5089
27102 #: ../src/guestfs-actions.pod:6099
27103 msgid "(Added in 1.0.62)"
27104 msgstr ""
27105
27106 #. type: =head2
27107 #: ../src/guestfs-actions.pod:4775
27108 msgid "guestfs_mknod"
27109 msgstr ""
27110
27111 #. type: verbatim
27112 #: ../src/guestfs-actions.pod:4777
27113 #, no-wrap
27114 msgid ""
27115 " int\n"
27116 " guestfs_mknod (guestfs_h *g,\n"
27117 "                int mode,\n"
27118 "                int devmajor,\n"
27119 "                int devminor,\n"
27120 "                const char *path);\n"
27121 "\n"
27122 msgstr ""
27123
27124 #. type: textblock
27125 #: ../src/guestfs-actions.pod:4792
27126 msgid ""
27127 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
27128 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
27129 "regular file).  These constants are available in the standard Linux header "
27130 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
27131 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
27132 "the appropriate constant for you."
27133 msgstr ""
27134
27135 #. type: =head2
27136 #: ../src/guestfs-actions.pod:4806
27137 msgid "guestfs_mknod_b"
27138 msgstr ""
27139
27140 #. type: verbatim
27141 #: ../src/guestfs-actions.pod:4808
27142 #, no-wrap
27143 msgid ""
27144 " int\n"
27145 " guestfs_mknod_b (guestfs_h *g,\n"
27146 "                  int mode,\n"
27147 "                  int devmajor,\n"
27148 "                  int devminor,\n"
27149 "                  const char *path);\n"
27150 "\n"
27151 msgstr ""
27152
27153 #. type: textblock
27154 #: ../src/guestfs-actions.pod:4815
27155 msgid ""
27156 "This call creates a block device node called C<path> with mode C<mode> and "
27157 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
27158 "wrapper around C<guestfs_mknod>."
27159 msgstr ""
27160
27161 #. type: =head2
27162 #: ../src/guestfs-actions.pod:4825
27163 msgid "guestfs_mknod_c"
27164 msgstr ""
27165
27166 #. type: verbatim
27167 #: ../src/guestfs-actions.pod:4827
27168 #, no-wrap
27169 msgid ""
27170 " int\n"
27171 " guestfs_mknod_c (guestfs_h *g,\n"
27172 "                  int mode,\n"
27173 "                  int devmajor,\n"
27174 "                  int devminor,\n"
27175 "                  const char *path);\n"
27176 "\n"
27177 msgstr ""
27178
27179 #. type: textblock
27180 #: ../src/guestfs-actions.pod:4834
27181 msgid ""
27182 "This call creates a char device node called C<path> with mode C<mode> and "
27183 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
27184 "wrapper around C<guestfs_mknod>."
27185 msgstr ""
27186
27187 #. type: =head2
27188 #: ../src/guestfs-actions.pod:4844
27189 msgid "guestfs_mkswap"
27190 msgstr ""
27191
27192 #. type: verbatim
27193 #: ../src/guestfs-actions.pod:4846
27194 #, no-wrap
27195 msgid ""
27196 " int\n"
27197 " guestfs_mkswap (guestfs_h *g,\n"
27198 "                 const char *device);\n"
27199 "\n"
27200 msgstr ""
27201
27202 #. type: =head2
27203 #: ../src/guestfs-actions.pod:4856
27204 msgid "guestfs_mkswap_L"
27205 msgstr ""
27206
27207 #. type: verbatim
27208 #: ../src/guestfs-actions.pod:4858
27209 #, no-wrap
27210 msgid ""
27211 " int\n"
27212 " guestfs_mkswap_L (guestfs_h *g,\n"
27213 "                   const char *label,\n"
27214 "                   const char *device);\n"
27215 "\n"
27216 msgstr ""
27217
27218 #. type: =head2
27219 #: ../src/guestfs-actions.pod:4873
27220 msgid "guestfs_mkswap_U"
27221 msgstr ""
27222
27223 #. type: verbatim
27224 #: ../src/guestfs-actions.pod:4875
27225 #, no-wrap
27226 msgid ""
27227 " int\n"
27228 " guestfs_mkswap_U (guestfs_h *g,\n"
27229 "                   const char *uuid,\n"
27230 "                   const char *device);\n"
27231 "\n"
27232 msgstr ""
27233
27234 #. type: =head2
27235 #: ../src/guestfs-actions.pod:4886
27236 msgid "guestfs_mkswap_file"
27237 msgstr ""
27238
27239 #. type: verbatim
27240 #: ../src/guestfs-actions.pod:4888
27241 #, no-wrap
27242 msgid ""
27243 " int\n"
27244 " guestfs_mkswap_file (guestfs_h *g,\n"
27245 "                      const char *path);\n"
27246 "\n"
27247 msgstr ""
27248
27249 #. type: textblock
27250 #: ../src/guestfs-actions.pod:4894
27251 msgid ""
27252 "This command just writes a swap file signature to an existing file.  To "
27253 "create the file itself, use something like C<guestfs_fallocate>."
27254 msgstr ""
27255
27256 #. type: =head2
27257 #: ../src/guestfs-actions.pod:4901
27258 msgid "guestfs_modprobe"
27259 msgstr ""
27260
27261 #. type: verbatim
27262 #: ../src/guestfs-actions.pod:4903
27263 #, no-wrap
27264 msgid ""
27265 " int\n"
27266 " guestfs_modprobe (guestfs_h *g,\n"
27267 "                   const char *modulename);\n"
27268 "\n"
27269 msgstr ""
27270
27271 #. type: =head2
27272 #: ../src/guestfs-actions.pod:4916
27273 msgid "guestfs_mount"
27274 msgstr ""
27275
27276 #. type: verbatim
27277 #: ../src/guestfs-actions.pod:4918
27278 #, no-wrap
27279 msgid ""
27280 " int\n"
27281 " guestfs_mount (guestfs_h *g,\n"
27282 "                const char *device,\n"
27283 "                const char *mountpoint);\n"
27284 "\n"
27285 msgstr ""
27286
27287 #. type: textblock
27288 #: ../src/guestfs-actions.pod:4923
27289 msgid ""
27290 "I<This function is deprecated.> In new code, use the L</"
27291 "guestfs_mount_options> call instead."
27292 msgstr ""
27293
27294 #. type: textblock
27295 #: ../src/guestfs-actions.pod:4944
27296 msgid ""
27297 "B<Important note:> When you use this call, the filesystem options C<sync> "
27298 "and C<noatime> are set implicitly.  This was originally done because we "
27299 "thought it would improve reliability, but it turns out that I<-o sync> has a "
27300 "very large negative performance impact and negligible effect on "
27301 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
27302 "in any code that needs performance, and instead use C<guestfs_mount_options> "
27303 "(use an empty string for the first parameter if you don't want any options)."
27304 msgstr ""
27305
27306 #. type: =head2
27307 #: ../src/guestfs-actions.pod:4958
27308 msgid "guestfs_mount_9p"
27309 msgstr ""
27310
27311 #. type: verbatim
27312 #: ../src/guestfs-actions.pod:4960
27313 #, no-wrap
27314 msgid ""
27315 " int\n"
27316 " guestfs_mount_9p (guestfs_h *g,\n"
27317 "                   const char *mounttag,\n"
27318 "                   const char *mountpoint,\n"
27319 "                   ...);\n"
27320 "\n"
27321 msgstr ""
27322
27323 #. type: verbatim
27324 #: ../src/guestfs-actions.pod:4971
27325 #, no-wrap
27326 msgid ""
27327 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
27328 "\n"
27329 msgstr ""
27330
27331 #. type: =head2
27332 #: ../src/guestfs-actions.pod:4984
27333 msgid "guestfs_mount_9p_va"
27334 msgstr ""
27335
27336 #. type: verbatim
27337 #: ../src/guestfs-actions.pod:4986
27338 #, no-wrap
27339 msgid ""
27340 " int\n"
27341 " guestfs_mount_9p_va (guestfs_h *g,\n"
27342 "                      const char *mounttag,\n"
27343 "                      const char *mountpoint,\n"
27344 "                      va_list args);\n"
27345 "\n"
27346 msgstr ""
27347
27348 #. type: textblock
27349 #: ../src/guestfs-actions.pod:4992
27350 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
27351 msgstr ""
27352
27353 #. type: =head2
27354 #: ../src/guestfs-actions.pod:4996
27355 msgid "guestfs_mount_9p_argv"
27356 msgstr ""
27357
27358 #. type: verbatim
27359 #: ../src/guestfs-actions.pod:4998
27360 #, no-wrap
27361 msgid ""
27362 " int\n"
27363 " guestfs_mount_9p_argv (guestfs_h *g,\n"
27364 "                        const char *mounttag,\n"
27365 "                        const char *mountpoint,\n"
27366 "                        const struct guestfs_mount_9p_argv *optargs);\n"
27367 "\n"
27368 msgstr ""
27369
27370 #. type: textblock
27371 #: ../src/guestfs-actions.pod:5004
27372 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
27373 msgstr ""
27374
27375 #. type: =head2
27376 #: ../src/guestfs-actions.pod:5008
27377 msgid "guestfs_mount_loop"
27378 msgstr ""
27379
27380 #. type: verbatim
27381 #: ../src/guestfs-actions.pod:5010
27382 #, no-wrap
27383 msgid ""
27384 " int\n"
27385 " guestfs_mount_loop (guestfs_h *g,\n"
27386 "                     const char *file,\n"
27387 "                     const char *mountpoint);\n"
27388 "\n"
27389 msgstr ""
27390
27391 #. type: =head2
27392 #: ../src/guestfs-actions.pod:5023
27393 msgid "guestfs_mount_options"
27394 msgstr ""
27395
27396 #. type: verbatim
27397 #: ../src/guestfs-actions.pod:5025
27398 #, no-wrap
27399 msgid ""
27400 " int\n"
27401 " guestfs_mount_options (guestfs_h *g,\n"
27402 "                        const char *options,\n"
27403 "                        const char *device,\n"
27404 "                        const char *mountpoint);\n"
27405 "\n"
27406 msgstr ""
27407
27408 #. type: textblock
27409 #: ../src/guestfs-actions.pod:5031
27410 msgid ""
27411 "This is the same as the C<guestfs_mount> command, but it allows you to set "
27412 "the mount options as for the L<mount(8)> I<-o> flag."
27413 msgstr ""
27414
27415 #. type: textblock
27416 #: ../src/guestfs-actions.pod:5041 ../src/guestfs-actions.pod:5055
27417 #: ../src/guestfs-actions.pod:5072
27418 msgid "(Added in 1.0.10)"
27419 msgstr ""
27420
27421 #. type: =head2
27422 #: ../src/guestfs-actions.pod:5043
27423 msgid "guestfs_mount_ro"
27424 msgstr ""
27425
27426 #. type: verbatim
27427 #: ../src/guestfs-actions.pod:5045
27428 #, no-wrap
27429 msgid ""
27430 " int\n"
27431 " guestfs_mount_ro (guestfs_h *g,\n"
27432 "                   const char *device,\n"
27433 "                   const char *mountpoint);\n"
27434 "\n"
27435 msgstr ""
27436
27437 #. type: textblock
27438 #: ../src/guestfs-actions.pod:5050
27439 msgid ""
27440 "This is the same as the C<guestfs_mount> command, but it mounts the "
27441 "filesystem with the read-only (I<-o ro>) flag."
27442 msgstr ""
27443
27444 #. type: =head2
27445 #: ../src/guestfs-actions.pod:5057
27446 msgid "guestfs_mount_vfs"
27447 msgstr ""
27448
27449 #. type: verbatim
27450 #: ../src/guestfs-actions.pod:5059
27451 #, no-wrap
27452 msgid ""
27453 " int\n"
27454 " guestfs_mount_vfs (guestfs_h *g,\n"
27455 "                    const char *options,\n"
27456 "                    const char *vfstype,\n"
27457 "                    const char *device,\n"
27458 "                    const char *mountpoint);\n"
27459 "\n"
27460 msgstr ""
27461
27462 #. type: textblock
27463 #: ../src/guestfs-actions.pod:5066
27464 msgid ""
27465 "This is the same as the C<guestfs_mount> command, but it allows you to set "
27466 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
27467 "t> flags."
27468 msgstr ""
27469
27470 #. type: =head2
27471 #: ../src/guestfs-actions.pod:5074
27472 msgid "guestfs_mountpoints"
27473 msgstr ""
27474
27475 #. type: verbatim
27476 #: ../src/guestfs-actions.pod:5076
27477 #, no-wrap
27478 msgid ""
27479 " char **\n"
27480 " guestfs_mountpoints (guestfs_h *g);\n"
27481 "\n"
27482 msgstr ""
27483
27484 #. type: textblock
27485 #: ../src/guestfs-actions.pod:5079
27486 msgid ""
27487 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
27488 "devices.  This one returns a hash table (map) of device name to directory "
27489 "where the device is mounted."
27490 msgstr ""
27491
27492 #. type: =head2
27493 #: ../src/guestfs-actions.pod:5091
27494 msgid "guestfs_mounts"
27495 msgstr ""
27496
27497 #. type: verbatim
27498 #: ../src/guestfs-actions.pod:5093
27499 #, no-wrap
27500 msgid ""
27501 " char **\n"
27502 " guestfs_mounts (guestfs_h *g);\n"
27503 "\n"
27504 msgstr ""
27505
27506 #. type: textblock
27507 #: ../src/guestfs-actions.pod:5101
27508 msgid "See also: C<guestfs_mountpoints>"
27509 msgstr ""
27510
27511 #. type: =head2
27512 #: ../src/guestfs-actions.pod:5109
27513 msgid "guestfs_mv"
27514 msgstr ""
27515
27516 #. type: verbatim
27517 #: ../src/guestfs-actions.pod:5111
27518 #, no-wrap
27519 msgid ""
27520 " int\n"
27521 " guestfs_mv (guestfs_h *g,\n"
27522 "             const char *src,\n"
27523 "             const char *dest);\n"
27524 "\n"
27525 msgstr ""
27526
27527 #. type: =head2
27528 #: ../src/guestfs-actions.pod:5123
27529 msgid "guestfs_ntfs_3g_probe"
27530 msgstr ""
27531
27532 #. type: verbatim
27533 #: ../src/guestfs-actions.pod:5125
27534 #, no-wrap
27535 msgid ""
27536 " int\n"
27537 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
27538 "                        int rw,\n"
27539 "                        const char *device);\n"
27540 "\n"
27541 msgstr ""
27542
27543 #. type: textblock
27544 #: ../src/guestfs-actions.pod:5144
27545 msgid "(Added in 1.0.43)"
27546 msgstr ""
27547
27548 #. type: =head2
27549 #: ../src/guestfs-actions.pod:5146
27550 msgid "guestfs_ntfsresize"
27551 msgstr ""
27552
27553 #. type: verbatim
27554 #: ../src/guestfs-actions.pod:5148
27555 #, no-wrap
27556 msgid ""
27557 " int\n"
27558 " guestfs_ntfsresize (guestfs_h *g,\n"
27559 "                     const char *device);\n"
27560 "\n"
27561 msgstr ""
27562
27563 #. type: textblock
27564 #: ../src/guestfs-actions.pod:5152 ../src/guestfs-actions.pod:5252
27565 msgid ""
27566 "I<This function is deprecated.> In new code, use the L</"
27567 "guestfs_ntfsresize_opts> call instead."
27568 msgstr ""
27569
27570 #. type: =head2
27571 #: ../src/guestfs-actions.pod:5176
27572 msgid "guestfs_ntfsresize_opts"
27573 msgstr ""
27574
27575 #. type: verbatim
27576 #: ../src/guestfs-actions.pod:5178
27577 #, no-wrap
27578 msgid ""
27579 " int\n"
27580 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
27581 "                          const char *device,\n"
27582 "                          ...);\n"
27583 "\n"
27584 msgstr ""
27585
27586 #. type: verbatim
27587 #: ../src/guestfs-actions.pod:5188
27588 #, no-wrap
27589 msgid ""
27590 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
27591 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
27592 "\n"
27593 msgstr ""
27594
27595 #. type: textblock
27596 #: ../src/guestfs-actions.pod:5208
27597 msgid ""
27598 "After the resize operation, the filesystem is always marked as requiring a "
27599 "consistency check (for safety).  You have to boot into Windows to perform "
27600 "this check and clear this condition.  If you I<don't> set the C<force> "
27601 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
27602 "times on a single filesystem without booting into Windows between each "
27603 "resize."
27604 msgstr ""
27605
27606 #. type: =head2
27607 #: ../src/guestfs-actions.pod:5223
27608 msgid "guestfs_ntfsresize_opts_va"
27609 msgstr ""
27610
27611 #. type: verbatim
27612 #: ../src/guestfs-actions.pod:5225
27613 #, no-wrap
27614 msgid ""
27615 " int\n"
27616 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
27617 "                             const char *device,\n"
27618 "                             va_list args);\n"
27619 "\n"
27620 msgstr ""
27621
27622 #. type: textblock
27623 #: ../src/guestfs-actions.pod:5230
27624 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
27625 msgstr ""
27626
27627 #. type: =head2
27628 #: ../src/guestfs-actions.pod:5234
27629 msgid "guestfs_ntfsresize_opts_argv"
27630 msgstr ""
27631
27632 #. type: verbatim
27633 #: ../src/guestfs-actions.pod:5236
27634 #, no-wrap
27635 msgid ""
27636 " int\n"
27637 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
27638 "                               const char *device,\n"
27639 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
27640 "\n"
27641 msgstr ""
27642
27643 #. type: textblock
27644 #: ../src/guestfs-actions.pod:5241
27645 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
27646 msgstr ""
27647
27648 #. type: =head2
27649 #: ../src/guestfs-actions.pod:5245
27650 msgid "guestfs_ntfsresize_size"
27651 msgstr ""
27652
27653 #. type: verbatim
27654 #: ../src/guestfs-actions.pod:5247
27655 #, no-wrap
27656 msgid ""
27657 " int\n"
27658 " guestfs_ntfsresize_size (guestfs_h *g,\n"
27659 "                          const char *device,\n"
27660 "                          int64_t size);\n"
27661 "\n"
27662 msgstr ""
27663
27664 #. type: textblock
27665 #: ../src/guestfs-actions.pod:5259
27666 msgid ""
27667 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
27668 "to specify the new size (in bytes) explicitly."
27669 msgstr ""
27670
27671 #. type: textblock
27672 #: ../src/guestfs-actions.pod:5264 ../src/guestfs-actions.pod:5706
27673 #: ../src/guestfs-actions.pod:5779 ../src/guestfs-actions.pod:6047
27674 #: ../src/guestfs-actions.pod:7670
27675 msgid "(Added in 1.3.14)"
27676 msgstr ""
27677
27678 #. type: =head2
27679 #: ../src/guestfs-actions.pod:5266
27680 msgid "guestfs_part_add"
27681 msgstr ""
27682
27683 #. type: verbatim
27684 #: ../src/guestfs-actions.pod:5268
27685 #, no-wrap
27686 msgid ""
27687 " int\n"
27688 " guestfs_part_add (guestfs_h *g,\n"
27689 "                   const char *device,\n"
27690 "                   const char *prlogex,\n"
27691 "                   int64_t startsect,\n"
27692 "                   int64_t endsect);\n"
27693 "\n"
27694 msgstr ""
27695
27696 #. type: textblock
27697 #: ../src/guestfs-actions.pod:5275
27698 msgid ""
27699 "This command adds a partition to C<device>.  If there is no partition table "
27700 "on the device, call C<guestfs_part_init> first."
27701 msgstr ""
27702
27703 #. type: textblock
27704 #: ../src/guestfs-actions.pod:5287
27705 msgid ""
27706 "Creating a partition which covers the whole disk is not so easy.  Use "
27707 "C<guestfs_part_disk> to do that."
27708 msgstr ""
27709
27710 #. type: textblock
27711 #: ../src/guestfs-actions.pod:5292 ../src/guestfs-actions.pod:5330
27712 #: ../src/guestfs-actions.pod:5383 ../src/guestfs-actions.pod:5467
27713 #: ../src/guestfs-actions.pod:5505 ../src/guestfs-actions.pod:5524
27714 #: ../src/guestfs-actions.pod:5564
27715 msgid "(Added in 1.0.78)"
27716 msgstr ""
27717
27718 #. type: =head2
27719 #: ../src/guestfs-actions.pod:5294
27720 msgid "guestfs_part_del"
27721 msgstr ""
27722
27723 #. type: verbatim
27724 #: ../src/guestfs-actions.pod:5296
27725 #, no-wrap
27726 msgid ""
27727 " int\n"
27728 " guestfs_part_del (guestfs_h *g,\n"
27729 "                   const char *device,\n"
27730 "                   int partnum);\n"
27731 "\n"
27732 msgstr ""
27733
27734 #. type: =head2
27735 #: ../src/guestfs-actions.pod:5311
27736 msgid "guestfs_part_disk"
27737 msgstr ""
27738
27739 #. type: verbatim
27740 #: ../src/guestfs-actions.pod:5313
27741 #, no-wrap
27742 msgid ""
27743 " int\n"
27744 " guestfs_part_disk (guestfs_h *g,\n"
27745 "                    const char *device,\n"
27746 "                    const char *parttype);\n"
27747 "\n"
27748 msgstr ""
27749
27750 #. type: textblock
27751 #: ../src/guestfs-actions.pod:5318
27752 msgid ""
27753 "This command is simply a combination of C<guestfs_part_init> followed by "
27754 "C<guestfs_part_add> to create a single primary partition covering the whole "
27755 "disk."
27756 msgstr ""
27757
27758 #. type: textblock
27759 #: ../src/guestfs-actions.pod:5322
27760 msgid ""
27761 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
27762 "possible values are described in C<guestfs_part_init>."
27763 msgstr ""
27764
27765 #. type: =head2
27766 #: ../src/guestfs-actions.pod:5332
27767 msgid "guestfs_part_get_bootable"
27768 msgstr ""
27769
27770 #. type: verbatim
27771 #: ../src/guestfs-actions.pod:5334
27772 #, no-wrap
27773 msgid ""
27774 " int\n"
27775 " guestfs_part_get_bootable (guestfs_h *g,\n"
27776 "                            const char *device,\n"
27777 "                            int partnum);\n"
27778 "\n"
27779 msgstr ""
27780
27781 #. type: textblock
27782 #: ../src/guestfs-actions.pod:5342
27783 msgid "See also C<guestfs_part_set_bootable>."
27784 msgstr ""
27785
27786 #. type: =head2
27787 #: ../src/guestfs-actions.pod:5348
27788 msgid "guestfs_part_get_mbr_id"
27789 msgstr ""
27790
27791 #. type: verbatim
27792 #: ../src/guestfs-actions.pod:5350
27793 #, no-wrap
27794 msgid ""
27795 " int\n"
27796 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
27797 "                          const char *device,\n"
27798 "                          int partnum);\n"
27799 "\n"
27800 msgstr ""
27801
27802 #. type: textblock
27803 #: ../src/guestfs-actions.pod:5358 ../src/guestfs-actions.pod:5540
27804 msgid ""
27805 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
27806 "undefined results for other partition table types (see "
27807 "C<guestfs_part_get_parttype>)."
27808 msgstr ""
27809
27810 #. type: =head2
27811 #: ../src/guestfs-actions.pod:5366
27812 msgid "guestfs_part_get_parttype"
27813 msgstr ""
27814
27815 #. type: verbatim
27816 #: ../src/guestfs-actions.pod:5368
27817 #, no-wrap
27818 msgid ""
27819 " char *\n"
27820 " guestfs_part_get_parttype (guestfs_h *g,\n"
27821 "                            const char *device);\n"
27822 "\n"
27823 msgstr ""
27824
27825 #. type: textblock
27826 #: ../src/guestfs-actions.pod:5375
27827 msgid ""
27828 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
27829 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
27830 "possible, although unusual.  See C<guestfs_part_init> for a full list."
27831 msgstr ""
27832
27833 #. type: =head2
27834 #: ../src/guestfs-actions.pod:5385
27835 msgid "guestfs_part_init"
27836 msgstr ""
27837
27838 #. type: verbatim
27839 #: ../src/guestfs-actions.pod:5387
27840 #, no-wrap
27841 msgid ""
27842 " int\n"
27843 " guestfs_part_init (guestfs_h *g,\n"
27844 "                    const char *device,\n"
27845 "                    const char *parttype);\n"
27846 "\n"
27847 msgstr ""
27848
27849 #. type: textblock
27850 #: ../src/guestfs-actions.pod:5396
27851 msgid ""
27852 "Initially there are no partitions.  Following this, you should call "
27853 "C<guestfs_part_add> for each partition required."
27854 msgstr ""
27855
27856 #. type: =head2
27857 #: ../src/guestfs-actions.pod:5469
27858 msgid "guestfs_part_list"
27859 msgstr ""
27860
27861 #. type: verbatim
27862 #: ../src/guestfs-actions.pod:5471
27863 #, no-wrap
27864 msgid ""
27865 " struct guestfs_partition_list *\n"
27866 " guestfs_part_list (guestfs_h *g,\n"
27867 "                    const char *device);\n"
27868 "\n"
27869 msgstr ""
27870
27871 #. type: textblock
27872 #: ../src/guestfs-actions.pod:5488
27873 msgid ""
27874 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
27875 "the device's sector size, see C<guestfs_blockdev_getss>."
27876 msgstr ""
27877
27878 #. type: textblock
27879 #: ../src/guestfs-actions.pod:5501
27880 msgid ""
27881 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
27882 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
27883 "use>."
27884 msgstr ""
27885
27886 #. type: =head2
27887 #: ../src/guestfs-actions.pod:5507
27888 msgid "guestfs_part_set_bootable"
27889 msgstr ""
27890
27891 #. type: verbatim
27892 #: ../src/guestfs-actions.pod:5509
27893 #, no-wrap
27894 msgid ""
27895 " int\n"
27896 " guestfs_part_set_bootable (guestfs_h *g,\n"
27897 "                            const char *device,\n"
27898 "                            int partnum,\n"
27899 "                            int bootable);\n"
27900 "\n"
27901 msgstr ""
27902
27903 #. type: =head2
27904 #: ../src/guestfs-actions.pod:5526
27905 msgid "guestfs_part_set_mbr_id"
27906 msgstr ""
27907
27908 #. type: verbatim
27909 #: ../src/guestfs-actions.pod:5528
27910 #, no-wrap
27911 msgid ""
27912 " int\n"
27913 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
27914 "                          const char *device,\n"
27915 "                          int partnum,\n"
27916 "                          int idbyte);\n"
27917 "\n"
27918 msgstr ""
27919
27920 #. type: =head2
27921 #: ../src/guestfs-actions.pod:5548
27922 msgid "guestfs_part_set_name"
27923 msgstr ""
27924
27925 #. type: verbatim
27926 #: ../src/guestfs-actions.pod:5550
27927 #, no-wrap
27928 msgid ""
27929 " int\n"
27930 " guestfs_part_set_name (guestfs_h *g,\n"
27931 "                        const char *device,\n"
27932 "                        int partnum,\n"
27933 "                        const char *name);\n"
27934 "\n"
27935 msgstr ""
27936
27937 #. type: =head2
27938 #: ../src/guestfs-actions.pod:5566
27939 msgid "guestfs_part_to_dev"
27940 msgstr ""
27941
27942 #. type: verbatim
27943 #: ../src/guestfs-actions.pod:5568
27944 #, no-wrap
27945 msgid ""
27946 " char *\n"
27947 " guestfs_part_to_dev (guestfs_h *g,\n"
27948 "                      const char *partition);\n"
27949 "\n"
27950 msgstr ""
27951
27952 #. type: textblock
27953 #: ../src/guestfs-actions.pod:5576
27954 msgid ""
27955 "The named partition must exist, for example as a string returned from "
27956 "C<guestfs_list_partitions>."
27957 msgstr ""
27958
27959 #. type: =head2
27960 #: ../src/guestfs-actions.pod:5584
27961 msgid "guestfs_ping_daemon"
27962 msgstr ""
27963
27964 #. type: verbatim
27965 #: ../src/guestfs-actions.pod:5586
27966 #, no-wrap
27967 msgid ""
27968 " int\n"
27969 " guestfs_ping_daemon (guestfs_h *g);\n"
27970 "\n"
27971 msgstr ""
27972
27973 #. type: =head2
27974 #: ../src/guestfs-actions.pod:5598
27975 msgid "guestfs_pread"
27976 msgstr ""
27977
27978 #. type: verbatim
27979 #: ../src/guestfs-actions.pod:5600
27980 #, no-wrap
27981 msgid ""
27982 " char *\n"
27983 " guestfs_pread (guestfs_h *g,\n"
27984 "                const char *path,\n"
27985 "                int count,\n"
27986 "                int64_t offset,\n"
27987 "                size_t *size_r);\n"
27988 "\n"
27989 msgstr ""
27990
27991 #. type: textblock
27992 #: ../src/guestfs-actions.pod:5613
27993 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
27994 msgstr ""
27995
27996 #. type: =head2
27997 #: ../src/guestfs-actions.pod:5624
27998 msgid "guestfs_pread_device"
27999 msgstr ""
28000
28001 #. type: verbatim
28002 #: ../src/guestfs-actions.pod:5626
28003 #, no-wrap
28004 msgid ""
28005 " char *\n"
28006 " guestfs_pread_device (guestfs_h *g,\n"
28007 "                       const char *device,\n"
28008 "                       int count,\n"
28009 "                       int64_t offset,\n"
28010 "                       size_t *size_r);\n"
28011 "\n"
28012 msgstr ""
28013
28014 #. type: textblock
28015 #: ../src/guestfs-actions.pod:5639
28016 msgid "See also C<guestfs_pread>."
28017 msgstr ""
28018
28019 #. type: textblock
28020 #: ../src/guestfs-actions.pod:5648
28021 msgid "(Added in 1.5.21)"
28022 msgstr ""
28023
28024 #. type: =head2
28025 #: ../src/guestfs-actions.pod:5650
28026 msgid "guestfs_pvcreate"
28027 msgstr ""
28028
28029 #. type: verbatim
28030 #: ../src/guestfs-actions.pod:5652
28031 #, no-wrap
28032 msgid ""
28033 " int\n"
28034 " guestfs_pvcreate (guestfs_h *g,\n"
28035 "                   const char *device);\n"
28036 "\n"
28037 msgstr ""
28038
28039 #. type: =head2
28040 #: ../src/guestfs-actions.pod:5664
28041 msgid "guestfs_pvremove"
28042 msgstr ""
28043
28044 #. type: verbatim
28045 #: ../src/guestfs-actions.pod:5666
28046 #, no-wrap
28047 msgid ""
28048 " int\n"
28049 " guestfs_pvremove (guestfs_h *g,\n"
28050 "                   const char *device);\n"
28051 "\n"
28052 msgstr ""
28053
28054 #. type: =head2
28055 #: ../src/guestfs-actions.pod:5681
28056 msgid "guestfs_pvresize"
28057 msgstr ""
28058
28059 #. type: verbatim
28060 #: ../src/guestfs-actions.pod:5683
28061 #, no-wrap
28062 msgid ""
28063 " int\n"
28064 " guestfs_pvresize (guestfs_h *g,\n"
28065 "                   const char *device);\n"
28066 "\n"
28067 msgstr ""
28068
28069 #. type: =head2
28070 #: ../src/guestfs-actions.pod:5694
28071 msgid "guestfs_pvresize_size"
28072 msgstr ""
28073
28074 #. type: verbatim
28075 #: ../src/guestfs-actions.pod:5696
28076 #, no-wrap
28077 msgid ""
28078 " int\n"
28079 " guestfs_pvresize_size (guestfs_h *g,\n"
28080 "                        const char *device,\n"
28081 "                        int64_t size);\n"
28082 "\n"
28083 msgstr ""
28084
28085 #. type: textblock
28086 #: ../src/guestfs-actions.pod:5701
28087 msgid ""
28088 "This command is the same as C<guestfs_pvresize> except that it allows you to "
28089 "specify the new size (in bytes) explicitly."
28090 msgstr ""
28091
28092 #. type: =head2
28093 #: ../src/guestfs-actions.pod:5708
28094 msgid "guestfs_pvs"
28095 msgstr ""
28096
28097 #. type: verbatim
28098 #: ../src/guestfs-actions.pod:5710
28099 #, no-wrap
28100 msgid ""
28101 " char **\n"
28102 " guestfs_pvs (guestfs_h *g);\n"
28103 "\n"
28104 msgstr ""
28105
28106 #. type: textblock
28107 #: ../src/guestfs-actions.pod:5719
28108 msgid "See also C<guestfs_pvs_full>."
28109 msgstr ""
28110
28111 #. type: =head2
28112 #: ../src/guestfs-actions.pod:5727
28113 msgid "guestfs_pvs_full"
28114 msgstr ""
28115
28116 #. type: verbatim
28117 #: ../src/guestfs-actions.pod:5729
28118 #, no-wrap
28119 msgid ""
28120 " struct guestfs_lvm_pv_list *\n"
28121 " guestfs_pvs_full (guestfs_h *g);\n"
28122 "\n"
28123 msgstr ""
28124
28125 #. type: textblock
28126 #: ../src/guestfs-actions.pod:5735
28127 msgid ""
28128 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
28129 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
28130 msgstr ""
28131
28132 #. type: =head2
28133 #: ../src/guestfs-actions.pod:5741
28134 msgid "guestfs_pvuuid"
28135 msgstr ""
28136
28137 #. type: verbatim
28138 #: ../src/guestfs-actions.pod:5743
28139 #, no-wrap
28140 msgid ""
28141 " char *\n"
28142 " guestfs_pvuuid (guestfs_h *g,\n"
28143 "                 const char *device);\n"
28144 "\n"
28145 msgstr ""
28146
28147 #. type: =head2
28148 #: ../src/guestfs-actions.pod:5754
28149 msgid "guestfs_pwrite"
28150 msgstr ""
28151
28152 #. type: verbatim
28153 #: ../src/guestfs-actions.pod:5756
28154 #, no-wrap
28155 msgid ""
28156 " int\n"
28157 " guestfs_pwrite (guestfs_h *g,\n"
28158 "                 const char *path,\n"
28159 "                 const char *content,\n"
28160 "                 size_t content_size,\n"
28161 "                 int64_t offset);\n"
28162 "\n"
28163 msgstr ""
28164
28165 #. type: textblock
28166 #: ../src/guestfs-actions.pod:5772
28167 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
28168 msgstr ""
28169
28170 #. type: =head2
28171 #: ../src/guestfs-actions.pod:5781
28172 msgid "guestfs_pwrite_device"
28173 msgstr ""
28174
28175 #. type: verbatim
28176 #: ../src/guestfs-actions.pod:5783
28177 #, no-wrap
28178 msgid ""
28179 " int\n"
28180 " guestfs_pwrite_device (guestfs_h *g,\n"
28181 "                        const char *device,\n"
28182 "                        const char *content,\n"
28183 "                        size_t content_size,\n"
28184 "                        int64_t offset);\n"
28185 "\n"
28186 msgstr ""
28187
28188 #. type: textblock
28189 #: ../src/guestfs-actions.pod:5798
28190 msgid "See also C<guestfs_pwrite>."
28191 msgstr ""
28192
28193 #. type: textblock
28194 #: ../src/guestfs-actions.pod:5805
28195 msgid "(Added in 1.5.20)"
28196 msgstr ""
28197
28198 #. type: =head2
28199 #: ../src/guestfs-actions.pod:5807
28200 msgid "guestfs_read_file"
28201 msgstr ""
28202
28203 #. type: verbatim
28204 #: ../src/guestfs-actions.pod:5809
28205 #, no-wrap
28206 msgid ""
28207 " char *\n"
28208 " guestfs_read_file (guestfs_h *g,\n"
28209 "                    const char *path,\n"
28210 "                    size_t *size_r);\n"
28211 "\n"
28212 msgstr ""
28213
28214 #. type: textblock
28215 #: ../src/guestfs-actions.pod:5817
28216 msgid ""
28217 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
28218 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
28219 "function is limited in the total size of file that can be handled."
28220 msgstr ""
28221
28222 #. type: textblock
28223 #: ../src/guestfs-actions.pod:5829
28224 msgid "(Added in 1.0.63)"
28225 msgstr ""
28226
28227 #. type: =head2
28228 #: ../src/guestfs-actions.pod:5831
28229 msgid "guestfs_read_lines"
28230 msgstr ""
28231
28232 #. type: verbatim
28233 #: ../src/guestfs-actions.pod:5833
28234 #, no-wrap
28235 msgid ""
28236 " char **\n"
28237 " guestfs_read_lines (guestfs_h *g,\n"
28238 "                     const char *path);\n"
28239 "\n"
28240 msgstr ""
28241
28242 #. type: textblock
28243 #: ../src/guestfs-actions.pod:5842
28244 msgid ""
28245 "Note that this function cannot correctly handle binary files (specifically, "
28246 "files containing C<\\0> character which is treated as end of line).  For "
28247 "those you need to use the C<guestfs_read_file> function which has a more "
28248 "complex interface."
28249 msgstr ""
28250
28251 #. type: =head2
28252 #: ../src/guestfs-actions.pod:5853
28253 msgid "guestfs_readdir"
28254 msgstr ""
28255
28256 #. type: verbatim
28257 #: ../src/guestfs-actions.pod:5855
28258 #, no-wrap
28259 msgid ""
28260 " struct guestfs_dirent_list *\n"
28261 " guestfs_readdir (guestfs_h *g,\n"
28262 "                  const char *dir);\n"
28263 "\n"
28264 msgstr ""
28265
28266 #. type: textblock
28267 #: ../src/guestfs-actions.pod:5909
28268 msgid ""
28269 "This function is primarily intended for use by programs.  To get a simple "
28270 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
28271 "consumption, use C<guestfs_ll>."
28272 msgstr ""
28273
28274 #. type: textblock
28275 #: ../src/guestfs-actions.pod:5913
28276 msgid ""
28277 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
28278 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
28279 msgstr ""
28280
28281 #. type: =head2
28282 #: ../src/guestfs-actions.pod:5919
28283 msgid "guestfs_readlink"
28284 msgstr ""
28285
28286 #. type: verbatim
28287 #: ../src/guestfs-actions.pod:5921
28288 #, no-wrap
28289 msgid ""
28290 " char *\n"
28291 " guestfs_readlink (guestfs_h *g,\n"
28292 "                   const char *path);\n"
28293 "\n"
28294 msgstr ""
28295
28296 #. type: =head2
28297 #: ../src/guestfs-actions.pod:5932
28298 msgid "guestfs_readlinklist"
28299 msgstr ""
28300
28301 #. type: verbatim
28302 #: ../src/guestfs-actions.pod:5934
28303 #, no-wrap
28304 msgid ""
28305 " char **\n"
28306 " guestfs_readlinklist (guestfs_h *g,\n"
28307 "                       const char *path,\n"
28308 "                       char *const *names);\n"
28309 "\n"
28310 msgstr ""
28311
28312 #. type: =head2
28313 #: ../src/guestfs-actions.pod:5967
28314 msgid "guestfs_realpath"
28315 msgstr ""
28316
28317 #. type: verbatim
28318 #: ../src/guestfs-actions.pod:5969
28319 #, no-wrap
28320 msgid ""
28321 " char *\n"
28322 " guestfs_realpath (guestfs_h *g,\n"
28323 "                   const char *path);\n"
28324 "\n"
28325 msgstr ""
28326
28327 #. type: =head2
28328 #: ../src/guestfs-actions.pod:5981
28329 msgid "guestfs_removexattr"
28330 msgstr ""
28331
28332 #. type: verbatim
28333 #: ../src/guestfs-actions.pod:5983
28334 #, no-wrap
28335 msgid ""
28336 " int\n"
28337 " guestfs_removexattr (guestfs_h *g,\n"
28338 "                      const char *xattr,\n"
28339 "                      const char *path);\n"
28340 "\n"
28341 msgstr ""
28342
28343 #. type: textblock
28344 #: ../src/guestfs-actions.pod:5991
28345 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
28346 msgstr ""
28347
28348 #. type: =head2
28349 #: ../src/guestfs-actions.pod:5997
28350 msgid "guestfs_resize2fs"
28351 msgstr ""
28352
28353 #. type: verbatim
28354 #: ../src/guestfs-actions.pod:5999
28355 #, no-wrap
28356 msgid ""
28357 " int\n"
28358 " guestfs_resize2fs (guestfs_h *g,\n"
28359 "                    const char *device);\n"
28360 "\n"
28361 msgstr ""
28362
28363 #. type: textblock
28364 #: ../src/guestfs-actions.pod:6006
28365 msgid ""
28366 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
28367 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
28368 "sometimes gives an error about this and sometimes not.  In any case, it is "
28369 "always safe to call C<guestfs_e2fsck_f> before calling this function."
28370 msgstr ""
28371
28372 #. type: =head2
28373 #: ../src/guestfs-actions.pod:6016
28374 msgid "guestfs_resize2fs_M"
28375 msgstr ""
28376
28377 #. type: verbatim
28378 #: ../src/guestfs-actions.pod:6018
28379 #, no-wrap
28380 msgid ""
28381 " int\n"
28382 " guestfs_resize2fs_M (guestfs_h *g,\n"
28383 "                      const char *device);\n"
28384 "\n"
28385 msgstr ""
28386
28387 #. type: textblock
28388 #: ../src/guestfs-actions.pod:6022
28389 msgid ""
28390 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
28391 "resized to its minimum size.  This works like the I<-M> option to the "
28392 "C<resize2fs> command."
28393 msgstr ""
28394
28395 #. type: textblock
28396 #: ../src/guestfs-actions.pod:6026
28397 msgid ""
28398 "To get the resulting size of the filesystem you should call "
28399 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
28400 "These two numbers, multiplied together, give the resulting size of the "
28401 "minimal filesystem in bytes."
28402 msgstr ""
28403
28404 #. type: =head2
28405 #: ../src/guestfs-actions.pod:6035
28406 msgid "guestfs_resize2fs_size"
28407 msgstr ""
28408
28409 #. type: verbatim
28410 #: ../src/guestfs-actions.pod:6037
28411 #, no-wrap
28412 msgid ""
28413 " int\n"
28414 " guestfs_resize2fs_size (guestfs_h *g,\n"
28415 "                         const char *device,\n"
28416 "                         int64_t size);\n"
28417 "\n"
28418 msgstr ""
28419
28420 #. type: textblock
28421 #: ../src/guestfs-actions.pod:6042
28422 msgid ""
28423 "This command is the same as C<guestfs_resize2fs> except that it allows you "
28424 "to specify the new size (in bytes) explicitly."
28425 msgstr ""
28426
28427 #. type: =head2
28428 #: ../src/guestfs-actions.pod:6049
28429 msgid "guestfs_rm"
28430 msgstr ""
28431
28432 #. type: verbatim
28433 #: ../src/guestfs-actions.pod:6051
28434 #, no-wrap
28435 msgid ""
28436 " int\n"
28437 " guestfs_rm (guestfs_h *g,\n"
28438 "             const char *path);\n"
28439 "\n"
28440 msgstr ""
28441
28442 #. type: =head2
28443 #: ../src/guestfs-actions.pod:6061
28444 msgid "guestfs_rm_rf"
28445 msgstr ""
28446
28447 #. type: verbatim
28448 #: ../src/guestfs-actions.pod:6063
28449 #, no-wrap
28450 msgid ""
28451 " int\n"
28452 " guestfs_rm_rf (guestfs_h *g,\n"
28453 "                const char *path);\n"
28454 "\n"
28455 msgstr ""
28456
28457 #. type: =head2
28458 #: ../src/guestfs-actions.pod:6075
28459 msgid "guestfs_rmdir"
28460 msgstr ""
28461
28462 #. type: verbatim
28463 #: ../src/guestfs-actions.pod:6077
28464 #, no-wrap
28465 msgid ""
28466 " int\n"
28467 " guestfs_rmdir (guestfs_h *g,\n"
28468 "                const char *path);\n"
28469 "\n"
28470 msgstr ""
28471
28472 #. type: =head2
28473 #: ../src/guestfs-actions.pod:6087
28474 msgid "guestfs_rmmountpoint"
28475 msgstr ""
28476
28477 #. type: verbatim
28478 #: ../src/guestfs-actions.pod:6089
28479 #, no-wrap
28480 msgid ""
28481 " int\n"
28482 " guestfs_rmmountpoint (guestfs_h *g,\n"
28483 "                       const char *exemptpath);\n"
28484 "\n"
28485 msgstr ""
28486
28487 #. type: textblock
28488 #: ../src/guestfs-actions.pod:6093
28489 msgid ""
28490 "This calls removes a mountpoint that was previously created with "
28491 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
28492 msgstr ""
28493
28494 #. type: =head2
28495 #: ../src/guestfs-actions.pod:6101
28496 msgid "guestfs_scrub_device"
28497 msgstr ""
28498
28499 #. type: verbatim
28500 #: ../src/guestfs-actions.pod:6103
28501 #, no-wrap
28502 msgid ""
28503 " int\n"
28504 " guestfs_scrub_device (guestfs_h *g,\n"
28505 "                       const char *device);\n"
28506 "\n"
28507 msgstr ""
28508
28509 #. type: textblock
28510 #: ../src/guestfs-actions.pod:6118 ../src/guestfs-actions.pod:6136
28511 #: ../src/guestfs-actions.pod:6155
28512 msgid "(Added in 1.0.52)"
28513 msgstr ""
28514
28515 #. type: =head2
28516 #: ../src/guestfs-actions.pod:6120
28517 msgid "guestfs_scrub_file"
28518 msgstr ""
28519
28520 #. type: verbatim
28521 #: ../src/guestfs-actions.pod:6122
28522 #, no-wrap
28523 msgid ""
28524 " int\n"
28525 " guestfs_scrub_file (guestfs_h *g,\n"
28526 "                     const char *file);\n"
28527 "\n"
28528 msgstr ""
28529
28530 #. type: =head2
28531 #: ../src/guestfs-actions.pod:6138
28532 msgid "guestfs_scrub_freespace"
28533 msgstr ""
28534
28535 #. type: verbatim
28536 #: ../src/guestfs-actions.pod:6140
28537 #, no-wrap
28538 msgid ""
28539 " int\n"
28540 " guestfs_scrub_freespace (guestfs_h *g,\n"
28541 "                          const char *dir);\n"
28542 "\n"
28543 msgstr ""
28544
28545 #. type: textblock
28546 #: ../src/guestfs-actions.pod:6144
28547 msgid ""
28548 "This command creates the directory C<dir> and then fills it with files until "
28549 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
28550 "and deletes them.  The intention is to scrub any free space on the partition "
28551 "containing C<dir>."
28552 msgstr ""
28553
28554 #. type: =head2
28555 #: ../src/guestfs-actions.pod:6157
28556 msgid "guestfs_set_append"
28557 msgstr ""
28558
28559 #. type: verbatim
28560 #: ../src/guestfs-actions.pod:6159
28561 #, no-wrap
28562 msgid ""
28563 " int\n"
28564 " guestfs_set_append (guestfs_h *g,\n"
28565 "                     const char *append);\n"
28566 "\n"
28567 msgstr ""
28568
28569 #. type: =head2
28570 #: ../src/guestfs-actions.pod:6176
28571 msgid "guestfs_set_attach_method"
28572 msgstr ""
28573
28574 #. type: verbatim
28575 #: ../src/guestfs-actions.pod:6178
28576 #, no-wrap
28577 msgid ""
28578 " int\n"
28579 " guestfs_set_attach_method (guestfs_h *g,\n"
28580 "                            const char *attachmethod);\n"
28581 "\n"
28582 msgstr ""
28583
28584 #. type: =head2
28585 #: ../src/guestfs-actions.pod:6206
28586 msgid "guestfs_set_autosync"
28587 msgstr ""
28588
28589 #. type: verbatim
28590 #: ../src/guestfs-actions.pod:6208
28591 #, no-wrap
28592 msgid ""
28593 " int\n"
28594 " guestfs_set_autosync (guestfs_h *g,\n"
28595 "                       int autosync);\n"
28596 "\n"
28597 msgstr ""
28598
28599 #. type: =head2
28600 #: ../src/guestfs-actions.pod:6224
28601 msgid "guestfs_set_direct"
28602 msgstr ""
28603
28604 #. type: verbatim
28605 #: ../src/guestfs-actions.pod:6226
28606 #, no-wrap
28607 msgid ""
28608 " int\n"
28609 " guestfs_set_direct (guestfs_h *g,\n"
28610 "                     int direct);\n"
28611 "\n"
28612 msgstr ""
28613
28614 #. type: textblock
28615 #: ../src/guestfs-actions.pod:6234
28616 msgid ""
28617 "One consequence of this is that log messages aren't caught by the library "
28618 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
28619 "stdout."
28620 msgstr ""
28621
28622 #. type: =head2
28623 #: ../src/guestfs-actions.pod:6247
28624 msgid "guestfs_set_e2label"
28625 msgstr ""
28626
28627 #. type: verbatim
28628 #: ../src/guestfs-actions.pod:6249
28629 #, no-wrap
28630 msgid ""
28631 " int\n"
28632 " guestfs_set_e2label (guestfs_h *g,\n"
28633 "                      const char *device,\n"
28634 "                      const char *label);\n"
28635 "\n"
28636 msgstr ""
28637
28638 #. type: textblock
28639 #: ../src/guestfs-actions.pod:6258
28640 msgid ""
28641 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
28642 "the existing label on a filesystem."
28643 msgstr ""
28644
28645 #. type: =head2
28646 #: ../src/guestfs-actions.pod:6265
28647 msgid "guestfs_set_e2uuid"
28648 msgstr ""
28649
28650 #. type: verbatim
28651 #: ../src/guestfs-actions.pod:6267
28652 #, no-wrap
28653 msgid ""
28654 " int\n"
28655 " guestfs_set_e2uuid (guestfs_h *g,\n"
28656 "                     const char *device,\n"
28657 "                     const char *uuid);\n"
28658 "\n"
28659 msgstr ""
28660
28661 #. type: textblock
28662 #: ../src/guestfs-actions.pod:6277
28663 msgid ""
28664 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
28665 "the existing UUID of a filesystem."
28666 msgstr ""
28667
28668 #. type: =head2
28669 #: ../src/guestfs-actions.pod:6284
28670 msgid "guestfs_set_memsize"
28671 msgstr ""
28672
28673 #. type: verbatim
28674 #: ../src/guestfs-actions.pod:6286
28675 #, no-wrap
28676 msgid ""
28677 " int\n"
28678 " guestfs_set_memsize (guestfs_h *g,\n"
28679 "                      int memsize);\n"
28680 "\n"
28681 msgstr ""
28682
28683 #. type: textblock
28684 #: ../src/guestfs-actions.pod:6290
28685 msgid ""
28686 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
28687 "This only has any effect if called before C<guestfs_launch>."
28688 msgstr ""
28689
28690 #. type: =head2
28691 #: ../src/guestfs-actions.pod:6305
28692 msgid "guestfs_set_network"
28693 msgstr ""
28694
28695 #. type: verbatim
28696 #: ../src/guestfs-actions.pod:6307
28697 #, no-wrap
28698 msgid ""
28699 " int\n"
28700 " guestfs_set_network (guestfs_h *g,\n"
28701 "                      int network);\n"
28702 "\n"
28703 msgstr ""
28704
28705 #. type: textblock
28706 #: ../src/guestfs-actions.pod:6317
28707 msgid ""
28708 "You must call this before calling C<guestfs_launch>, otherwise it has no "
28709 "effect."
28710 msgstr ""
28711
28712 #. type: =head2
28713 #: ../src/guestfs-actions.pod:6324
28714 msgid "guestfs_set_path"
28715 msgstr ""
28716
28717 #. type: verbatim
28718 #: ../src/guestfs-actions.pod:6326
28719 #, no-wrap
28720 msgid ""
28721 " int\n"
28722 " guestfs_set_path (guestfs_h *g,\n"
28723 "                   const char *searchpath);\n"
28724 "\n"
28725 msgstr ""
28726
28727 #. type: =head2
28728 #: ../src/guestfs-actions.pod:6341
28729 msgid "guestfs_set_pgroup"
28730 msgstr ""
28731
28732 #. type: verbatim
28733 #: ../src/guestfs-actions.pod:6343
28734 #, no-wrap
28735 msgid ""
28736 " int\n"
28737 " guestfs_set_pgroup (guestfs_h *g,\n"
28738 "                     int pgroup);\n"
28739 "\n"
28740 msgstr ""
28741
28742 #. type: =head2
28743 #: ../src/guestfs-actions.pod:6360
28744 msgid "guestfs_set_qemu"
28745 msgstr ""
28746
28747 #. type: verbatim
28748 #: ../src/guestfs-actions.pod:6362
28749 #, no-wrap
28750 msgid ""
28751 " int\n"
28752 " guestfs_set_qemu (guestfs_h *g,\n"
28753 "                   const char *qemu);\n"
28754 "\n"
28755 msgstr ""
28756
28757 #. type: =head2
28758 #: ../src/guestfs-actions.pod:6388
28759 msgid "guestfs_set_recovery_proc"
28760 msgstr ""
28761
28762 #. type: verbatim
28763 #: ../src/guestfs-actions.pod:6390
28764 #, no-wrap
28765 msgid ""
28766 " int\n"
28767 " guestfs_set_recovery_proc (guestfs_h *g,\n"
28768 "                            int recoveryproc);\n"
28769 "\n"
28770 msgstr ""
28771
28772 #. type: textblock
28773 #: ../src/guestfs-actions.pod:6394
28774 msgid ""
28775 "If this is called with the parameter C<false> then C<guestfs_launch> does "
28776 "not create a recovery process.  The purpose of the recovery process is to "
28777 "stop runaway qemu processes in the case where the main program aborts "
28778 "abruptly."
28779 msgstr ""
28780
28781 #. type: textblock
28782 #: ../src/guestfs-actions.pod:6399
28783 msgid ""
28784 "This only has any effect if called before C<guestfs_launch>, and the default "
28785 "is true."
28786 msgstr ""
28787
28788 #. type: =head2
28789 #: ../src/guestfs-actions.pod:6412
28790 msgid "guestfs_set_selinux"
28791 msgstr ""
28792
28793 #. type: verbatim
28794 #: ../src/guestfs-actions.pod:6414
28795 #, no-wrap
28796 msgid ""
28797 " int\n"
28798 " guestfs_set_selinux (guestfs_h *g,\n"
28799 "                      int selinux);\n"
28800 "\n"
28801 msgstr ""
28802
28803 #. type: =head2
28804 #: ../src/guestfs-actions.pod:6431
28805 msgid "guestfs_set_trace"
28806 msgstr ""
28807
28808 #. type: verbatim
28809 #: ../src/guestfs-actions.pod:6433
28810 #, no-wrap
28811 msgid ""
28812 " int\n"
28813 " guestfs_set_trace (guestfs_h *g,\n"
28814 "                    int trace);\n"
28815 "\n"
28816 msgstr ""
28817
28818 #. type: textblock
28819 #: ../src/guestfs-actions.pod:6447
28820 msgid ""
28821 "Trace messages are normally sent to C<stderr>, unless you register a "
28822 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
28823 msgstr ""
28824
28825 #. type: =head2
28826 #: ../src/guestfs-actions.pod:6455
28827 msgid "guestfs_set_verbose"
28828 msgstr ""
28829
28830 #. type: verbatim
28831 #: ../src/guestfs-actions.pod:6457
28832 #, no-wrap
28833 msgid ""
28834 " int\n"
28835 " guestfs_set_verbose (guestfs_h *g,\n"
28836 "                      int verbose);\n"
28837 "\n"
28838 msgstr ""
28839
28840 #. type: textblock
28841 #: ../src/guestfs-actions.pod:6466
28842 msgid ""
28843 "Verbose messages are normally sent to C<stderr>, unless you register a "
28844 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
28845 msgstr ""
28846
28847 #. type: =head2
28848 #: ../src/guestfs-actions.pod:6474
28849 msgid "guestfs_setcon"
28850 msgstr ""
28851
28852 #. type: verbatim
28853 #: ../src/guestfs-actions.pod:6476
28854 #, no-wrap
28855 msgid ""
28856 " int\n"
28857 " guestfs_setcon (guestfs_h *g,\n"
28858 "                 const char *context);\n"
28859 "\n"
28860 msgstr ""
28861
28862 #. type: =head2
28863 #: ../src/guestfs-actions.pod:6489
28864 msgid "guestfs_setxattr"
28865 msgstr ""
28866
28867 #. type: verbatim
28868 #: ../src/guestfs-actions.pod:6491
28869 #, no-wrap
28870 msgid ""
28871 " int\n"
28872 " guestfs_setxattr (guestfs_h *g,\n"
28873 "                   const char *xattr,\n"
28874 "                   const char *val,\n"
28875 "                   int vallen,\n"
28876 "                   const char *path);\n"
28877 "\n"
28878 msgstr ""
28879
28880 #. type: textblock
28881 #: ../src/guestfs-actions.pod:6502
28882 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
28883 msgstr ""
28884
28885 #. type: =head2
28886 #: ../src/guestfs-actions.pod:6508
28887 msgid "guestfs_sfdisk"
28888 msgstr ""
28889
28890 #. type: verbatim
28891 #: ../src/guestfs-actions.pod:6510
28892 #, no-wrap
28893 msgid ""
28894 " int\n"
28895 " guestfs_sfdisk (guestfs_h *g,\n"
28896 "                 const char *device,\n"
28897 "                 int cyls,\n"
28898 "                 int heads,\n"
28899 "                 int sectors,\n"
28900 "                 char *const *lines);\n"
28901 "\n"
28902 msgstr ""
28903
28904 #. type: textblock
28905 #: ../src/guestfs-actions.pod:6518 ../src/guestfs-actions.pod:6562
28906 #: ../src/guestfs-actions.pod:6596
28907 msgid ""
28908 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
28909 "call instead."
28910 msgstr ""
28911
28912 #. type: textblock
28913 #: ../src/guestfs-actions.pod:6545
28914 msgid ""
28915 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
28916 msgstr ""
28917
28918 #. type: =head2
28919 #: ../src/guestfs-actions.pod:6555
28920 msgid "guestfs_sfdiskM"
28921 msgstr ""
28922
28923 #. type: verbatim
28924 #: ../src/guestfs-actions.pod:6557
28925 #, no-wrap
28926 msgid ""
28927 " int\n"
28928 " guestfs_sfdiskM (guestfs_h *g,\n"
28929 "                  const char *device,\n"
28930 "                  char *const *lines);\n"
28931 "\n"
28932 msgstr ""
28933
28934 #. type: textblock
28935 #: ../src/guestfs-actions.pod:6569
28936 msgid ""
28937 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
28938 "partition sizes are specified in megabytes only (rounded to the nearest "
28939 "cylinder) and you don't need to specify the cyls, heads and sectors "
28940 "parameters which were rarely if ever used anyway."
28941 msgstr ""
28942
28943 #. type: textblock
28944 #: ../src/guestfs-actions.pod:6575
28945 msgid ""
28946 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
28947 "C<guestfs_part_disk>"
28948 msgstr ""
28949
28950 #. type: =head2
28951 #: ../src/guestfs-actions.pod:6585
28952 msgid "guestfs_sfdisk_N"
28953 msgstr ""
28954
28955 #. type: verbatim
28956 #: ../src/guestfs-actions.pod:6587
28957 #, no-wrap
28958 msgid ""
28959 " int\n"
28960 " guestfs_sfdisk_N (guestfs_h *g,\n"
28961 "                   const char *device,\n"
28962 "                   int partnum,\n"
28963 "                   int cyls,\n"
28964 "                   int heads,\n"
28965 "                   int sectors,\n"
28966 "                   const char *line);\n"
28967 "\n"
28968 msgstr ""
28969
28970 #. type: textblock
28971 #: ../src/guestfs-actions.pod:6606
28972 msgid ""
28973 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
28974 "for the cyls/heads/sectors parameters."
28975 msgstr ""
28976
28977 #. type: textblock
28978 #: ../src/guestfs-actions.pod:6609
28979 msgid "See also: C<guestfs_part_add>"
28980 msgstr ""
28981
28982 #. type: =head2
28983 #: ../src/guestfs-actions.pod:6618
28984 msgid "guestfs_sfdisk_disk_geometry"
28985 msgstr ""
28986
28987 #. type: verbatim
28988 #: ../src/guestfs-actions.pod:6620
28989 #, no-wrap
28990 msgid ""
28991 " char *\n"
28992 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
28993 "                               const char *device);\n"
28994 "\n"
28995 msgstr ""
28996
28997 #. type: textblock
28998 #: ../src/guestfs-actions.pod:6624
28999 msgid ""
29000 "This displays the disk geometry of C<device> read from the partition table.  "
29001 "Especially in the case where the underlying block device has been resized, "
29002 "this can be different from the kernel's idea of the geometry (see "
29003 "C<guestfs_sfdisk_kernel_geometry>)."
29004 msgstr ""
29005
29006 #. type: =head2
29007 #: ../src/guestfs-actions.pod:6637
29008 msgid "guestfs_sfdisk_kernel_geometry"
29009 msgstr ""
29010
29011 #. type: verbatim
29012 #: ../src/guestfs-actions.pod:6639
29013 #, no-wrap
29014 msgid ""
29015 " char *\n"
29016 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
29017 "                                 const char *device);\n"
29018 "\n"
29019 msgstr ""
29020
29021 #. type: =head2
29022 #: ../src/guestfs-actions.pod:6653
29023 msgid "guestfs_sfdisk_l"
29024 msgstr ""
29025
29026 #. type: verbatim
29027 #: ../src/guestfs-actions.pod:6655
29028 #, no-wrap
29029 msgid ""
29030 " char *\n"
29031 " guestfs_sfdisk_l (guestfs_h *g,\n"
29032 "                   const char *device);\n"
29033 "\n"
29034 msgstr ""
29035
29036 #. type: textblock
29037 #: ../src/guestfs-actions.pod:6659
29038 msgid ""
29039 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
29040 "call instead."
29041 msgstr ""
29042
29043 #. type: textblock
29044 #: ../src/guestfs-actions.pod:6670
29045 msgid "See also: C<guestfs_part_list>"
29046 msgstr ""
29047
29048 #. type: =head2
29049 #: ../src/guestfs-actions.pod:6677
29050 msgid "guestfs_sh"
29051 msgstr ""
29052
29053 #. type: verbatim
29054 #: ../src/guestfs-actions.pod:6679
29055 #, no-wrap
29056 msgid ""
29057 " char *\n"
29058 " guestfs_sh (guestfs_h *g,\n"
29059 "             const char *command);\n"
29060 "\n"
29061 msgstr ""
29062
29063 #. type: textblock
29064 #: ../src/guestfs-actions.pod:6686
29065 msgid "This is like C<guestfs_command>, but passes the command to:"
29066 msgstr ""
29067
29068 #. type: textblock
29069 #: ../src/guestfs-actions.pod:6694
29070 msgid "All the provisos about C<guestfs_command> apply to this call."
29071 msgstr ""
29072
29073 #. type: =head2
29074 #: ../src/guestfs-actions.pod:6701
29075 msgid "guestfs_sh_lines"
29076 msgstr ""
29077
29078 #. type: verbatim
29079 #: ../src/guestfs-actions.pod:6703
29080 #, no-wrap
29081 msgid ""
29082 " char **\n"
29083 " guestfs_sh_lines (guestfs_h *g,\n"
29084 "                   const char *command);\n"
29085 "\n"
29086 msgstr ""
29087
29088 #. type: textblock
29089 #: ../src/guestfs-actions.pod:6707
29090 msgid ""
29091 "This is the same as C<guestfs_sh>, but splits the result into a list of "
29092 "lines."
29093 msgstr ""
29094
29095 #. type: textblock
29096 #: ../src/guestfs-actions.pod:6710
29097 msgid "See also: C<guestfs_command_lines>"
29098 msgstr ""
29099
29100 #. type: =head2
29101 #: ../src/guestfs-actions.pod:6718
29102 msgid "guestfs_sleep"
29103 msgstr ""
29104
29105 #. type: verbatim
29106 #: ../src/guestfs-actions.pod:6720
29107 #, no-wrap
29108 msgid ""
29109 " int\n"
29110 " guestfs_sleep (guestfs_h *g,\n"
29111 "                int secs);\n"
29112 "\n"
29113 msgstr ""
29114
29115 #. type: textblock
29116 #: ../src/guestfs-actions.pod:6728
29117 msgid "(Added in 1.0.41)"
29118 msgstr ""
29119
29120 #. type: =head2
29121 #: ../src/guestfs-actions.pod:6730 ../src/guestfs-structs.pod:109
29122 msgid "guestfs_stat"
29123 msgstr ""
29124
29125 #. type: verbatim
29126 #: ../src/guestfs-actions.pod:6732
29127 #, no-wrap
29128 msgid ""
29129 " struct guestfs_stat *\n"
29130 " guestfs_stat (guestfs_h *g,\n"
29131 "               const char *path);\n"
29132 "\n"
29133 msgstr ""
29134
29135 #. type: =head2
29136 #: ../src/guestfs-actions.pod:6746 ../src/guestfs-structs.pod:135
29137 msgid "guestfs_statvfs"
29138 msgstr ""
29139
29140 #. type: verbatim
29141 #: ../src/guestfs-actions.pod:6748
29142 #, no-wrap
29143 msgid ""
29144 " struct guestfs_statvfs *\n"
29145 " guestfs_statvfs (guestfs_h *g,\n"
29146 "                  const char *path);\n"
29147 "\n"
29148 msgstr ""
29149
29150 #. type: textblock
29151 #: ../src/guestfs-actions.pod:6758
29152 msgid ""
29153 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
29154 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
29155 msgstr ""
29156
29157 #. type: =head2
29158 #: ../src/guestfs-actions.pod:6764
29159 msgid "guestfs_strings"
29160 msgstr ""
29161
29162 #. type: verbatim
29163 #: ../src/guestfs-actions.pod:6766
29164 #, no-wrap
29165 msgid ""
29166 " char **\n"
29167 " guestfs_strings (guestfs_h *g,\n"
29168 "                  const char *path);\n"
29169 "\n"
29170 msgstr ""
29171
29172 #. type: =head2
29173 #: ../src/guestfs-actions.pod:6782
29174 msgid "guestfs_strings_e"
29175 msgstr ""
29176
29177 #. type: verbatim
29178 #: ../src/guestfs-actions.pod:6784
29179 #, no-wrap
29180 msgid ""
29181 " char **\n"
29182 " guestfs_strings_e (guestfs_h *g,\n"
29183 "                    const char *encoding,\n"
29184 "                    const char *path);\n"
29185 "\n"
29186 msgstr ""
29187
29188 #. type: textblock
29189 #: ../src/guestfs-actions.pod:6789
29190 msgid ""
29191 "This is like the C<guestfs_strings> command, but allows you to specify the "
29192 "encoding of strings that are looked for in the source file C<path>."
29193 msgstr ""
29194
29195 #. type: textblock
29196 #: ../src/guestfs-actions.pod:6799
29197 msgid ""
29198 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
29199 "ISO-8859-X (this is what C<guestfs_strings> uses)."
29200 msgstr ""
29201
29202 #. type: =head2
29203 #: ../src/guestfs-actions.pod:6837
29204 msgid "guestfs_swapoff_device"
29205 msgstr ""
29206
29207 #. type: verbatim
29208 #: ../src/guestfs-actions.pod:6839
29209 #, no-wrap
29210 msgid ""
29211 " int\n"
29212 " guestfs_swapoff_device (guestfs_h *g,\n"
29213 "                         const char *device);\n"
29214 "\n"
29215 msgstr ""
29216
29217 #. type: textblock
29218 #: ../src/guestfs-actions.pod:6843
29219 msgid ""
29220 "This command disables the libguestfs appliance swap device or partition "
29221 "named C<device>.  See C<guestfs_swapon_device>."
29222 msgstr ""
29223
29224 #. type: =head2
29225 #: ../src/guestfs-actions.pod:6851
29226 msgid "guestfs_swapoff_file"
29227 msgstr ""
29228
29229 #. type: verbatim
29230 #: ../src/guestfs-actions.pod:6853
29231 #, no-wrap
29232 msgid ""
29233 " int\n"
29234 " guestfs_swapoff_file (guestfs_h *g,\n"
29235 "                       const char *file);\n"
29236 "\n"
29237 msgstr ""
29238
29239 #. type: =head2
29240 #: ../src/guestfs-actions.pod:6863
29241 msgid "guestfs_swapoff_label"
29242 msgstr ""
29243
29244 #. type: verbatim
29245 #: ../src/guestfs-actions.pod:6865
29246 #, no-wrap
29247 msgid ""
29248 " int\n"
29249 " guestfs_swapoff_label (guestfs_h *g,\n"
29250 "                        const char *label);\n"
29251 "\n"
29252 msgstr ""
29253
29254 #. type: =head2
29255 #: ../src/guestfs-actions.pod:6876
29256 msgid "guestfs_swapoff_uuid"
29257 msgstr ""
29258
29259 #. type: verbatim
29260 #: ../src/guestfs-actions.pod:6878
29261 #, no-wrap
29262 msgid ""
29263 " int\n"
29264 " guestfs_swapoff_uuid (guestfs_h *g,\n"
29265 "                       const char *uuid);\n"
29266 "\n"
29267 msgstr ""
29268
29269 #. type: =head2
29270 #: ../src/guestfs-actions.pod:6889
29271 msgid "guestfs_swapon_device"
29272 msgstr ""
29273
29274 #. type: verbatim
29275 #: ../src/guestfs-actions.pod:6891
29276 #, no-wrap
29277 msgid ""
29278 " int\n"
29279 " guestfs_swapon_device (guestfs_h *g,\n"
29280 "                        const char *device);\n"
29281 "\n"
29282 msgstr ""
29283
29284 #. type: textblock
29285 #: ../src/guestfs-actions.pod:6895
29286 msgid ""
29287 "This command enables the libguestfs appliance to use the swap device or "
29288 "partition named C<device>.  The increased memory is made available for all "
29289 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
29290 msgstr ""
29291
29292 #. type: =head2
29293 #: ../src/guestfs-actions.pod:6911
29294 msgid "guestfs_swapon_file"
29295 msgstr ""
29296
29297 #. type: verbatim
29298 #: ../src/guestfs-actions.pod:6913
29299 #, no-wrap
29300 msgid ""
29301 " int\n"
29302 " guestfs_swapon_file (guestfs_h *g,\n"
29303 "                      const char *file);\n"
29304 "\n"
29305 msgstr ""
29306
29307 #. type: textblock
29308 #: ../src/guestfs-actions.pod:6917
29309 msgid ""
29310 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
29311 "notes."
29312 msgstr ""
29313
29314 #. type: =head2
29315 #: ../src/guestfs-actions.pod:6924
29316 msgid "guestfs_swapon_label"
29317 msgstr ""
29318
29319 #. type: verbatim
29320 #: ../src/guestfs-actions.pod:6926
29321 #, no-wrap
29322 msgid ""
29323 " int\n"
29324 " guestfs_swapon_label (guestfs_h *g,\n"
29325 "                       const char *label);\n"
29326 "\n"
29327 msgstr ""
29328
29329 #. type: textblock
29330 #: ../src/guestfs-actions.pod:6930
29331 msgid ""
29332 "This command enables swap to a labeled swap partition.  See "
29333 "C<guestfs_swapon_device> for other notes."
29334 msgstr ""
29335
29336 #. type: =head2
29337 #: ../src/guestfs-actions.pod:6937
29338 msgid "guestfs_swapon_uuid"
29339 msgstr ""
29340
29341 #. type: verbatim
29342 #: ../src/guestfs-actions.pod:6939
29343 #, no-wrap
29344 msgid ""
29345 " int\n"
29346 " guestfs_swapon_uuid (guestfs_h *g,\n"
29347 "                      const char *uuid);\n"
29348 "\n"
29349 msgstr ""
29350
29351 #. type: textblock
29352 #: ../src/guestfs-actions.pod:6943
29353 msgid ""
29354 "This command enables swap to a swap partition with the given UUID.  See "
29355 "C<guestfs_swapon_device> for other notes."
29356 msgstr ""
29357
29358 #. type: =head2
29359 #: ../src/guestfs-actions.pod:6950
29360 msgid "guestfs_sync"
29361 msgstr ""
29362
29363 #. type: verbatim
29364 #: ../src/guestfs-actions.pod:6952
29365 #, no-wrap
29366 msgid ""
29367 " int\n"
29368 " guestfs_sync (guestfs_h *g);\n"
29369 "\n"
29370 msgstr ""
29371
29372 #. type: =head2
29373 #: ../src/guestfs-actions.pod:6965
29374 msgid "guestfs_tail"
29375 msgstr ""
29376
29377 #. type: verbatim
29378 #: ../src/guestfs-actions.pod:6967
29379 #, no-wrap
29380 msgid ""
29381 " char **\n"
29382 " guestfs_tail (guestfs_h *g,\n"
29383 "               const char *path);\n"
29384 "\n"
29385 msgstr ""
29386
29387 #. type: =head2
29388 #: ../src/guestfs-actions.pod:6983
29389 msgid "guestfs_tail_n"
29390 msgstr ""
29391
29392 #. type: verbatim
29393 #: ../src/guestfs-actions.pod:6985
29394 #, no-wrap
29395 msgid ""
29396 " char **\n"
29397 " guestfs_tail_n (guestfs_h *g,\n"
29398 "                 int nrlines,\n"
29399 "                 const char *path);\n"
29400 "\n"
29401 msgstr ""
29402
29403 #. type: =head2
29404 #: ../src/guestfs-actions.pod:7007
29405 msgid "guestfs_tar_in"
29406 msgstr ""
29407
29408 #. type: verbatim
29409 #: ../src/guestfs-actions.pod:7009
29410 #, no-wrap
29411 msgid ""
29412 " int\n"
29413 " guestfs_tar_in (guestfs_h *g,\n"
29414 "                 const char *tarfile,\n"
29415 "                 const char *directory);\n"
29416 "\n"
29417 msgstr ""
29418
29419 #. type: textblock
29420 #: ../src/guestfs-actions.pod:7017
29421 msgid ""
29422 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
29423 msgstr ""
29424
29425 #. type: textblock
29426 #: ../src/guestfs-actions.pod:7022 ../src/guestfs-actions.pod:7039
29427 #: ../src/guestfs-actions.pod:7055 ../src/guestfs-actions.pod:7071
29428 msgid "(Added in 1.0.3)"
29429 msgstr ""
29430
29431 #. type: =head2
29432 #: ../src/guestfs-actions.pod:7024
29433 msgid "guestfs_tar_out"
29434 msgstr ""
29435
29436 #. type: verbatim
29437 #: ../src/guestfs-actions.pod:7026
29438 #, no-wrap
29439 msgid ""
29440 " int\n"
29441 " guestfs_tar_out (guestfs_h *g,\n"
29442 "                  const char *directory,\n"
29443 "                  const char *tarfile);\n"
29444 "\n"
29445 msgstr ""
29446
29447 #. type: textblock
29448 #: ../src/guestfs-actions.pod:7034
29449 msgid ""
29450 "To download a compressed tarball, use C<guestfs_tgz_out> or "
29451 "C<guestfs_txz_out>."
29452 msgstr ""
29453
29454 #. type: =head2
29455 #: ../src/guestfs-actions.pod:7041
29456 msgid "guestfs_tgz_in"
29457 msgstr ""
29458
29459 #. type: verbatim
29460 #: ../src/guestfs-actions.pod:7043
29461 #, no-wrap
29462 msgid ""
29463 " int\n"
29464 " guestfs_tgz_in (guestfs_h *g,\n"
29465 "                 const char *tarball,\n"
29466 "                 const char *directory);\n"
29467 "\n"
29468 msgstr ""
29469
29470 #. type: textblock
29471 #: ../src/guestfs-actions.pod:7051
29472 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
29473 msgstr ""
29474
29475 #. type: =head2
29476 #: ../src/guestfs-actions.pod:7057
29477 msgid "guestfs_tgz_out"
29478 msgstr ""
29479
29480 #. type: verbatim
29481 #: ../src/guestfs-actions.pod:7059
29482 #, no-wrap
29483 msgid ""
29484 " int\n"
29485 " guestfs_tgz_out (guestfs_h *g,\n"
29486 "                  const char *directory,\n"
29487 "                  const char *tarball);\n"
29488 "\n"
29489 msgstr ""
29490
29491 #. type: textblock
29492 #: ../src/guestfs-actions.pod:7067
29493 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
29494 msgstr ""
29495
29496 #. type: =head2
29497 #: ../src/guestfs-actions.pod:7073
29498 msgid "guestfs_touch"
29499 msgstr ""
29500
29501 #. type: verbatim
29502 #: ../src/guestfs-actions.pod:7075
29503 #, no-wrap
29504 msgid ""
29505 " int\n"
29506 " guestfs_touch (guestfs_h *g,\n"
29507 "                const char *path);\n"
29508 "\n"
29509 msgstr ""
29510
29511 #. type: =head2
29512 #: ../src/guestfs-actions.pod:7090
29513 msgid "guestfs_truncate"
29514 msgstr ""
29515
29516 #. type: verbatim
29517 #: ../src/guestfs-actions.pod:7092
29518 #, no-wrap
29519 msgid ""
29520 " int\n"
29521 " guestfs_truncate (guestfs_h *g,\n"
29522 "                   const char *path);\n"
29523 "\n"
29524 msgstr ""
29525
29526 #. type: =head2
29527 #: ../src/guestfs-actions.pod:7103
29528 msgid "guestfs_truncate_size"
29529 msgstr ""
29530
29531 #. type: verbatim
29532 #: ../src/guestfs-actions.pod:7105
29533 #, no-wrap
29534 msgid ""
29535 " int\n"
29536 " guestfs_truncate_size (guestfs_h *g,\n"
29537 "                        const char *path,\n"
29538 "                        int64_t size);\n"
29539 "\n"
29540 msgstr ""
29541
29542 #. type: textblock
29543 #: ../src/guestfs-actions.pod:7113
29544 msgid ""
29545 "If the current file size is less than C<size> then the file is extended to "
29546 "the required size with zero bytes.  This creates a sparse file (ie. disk "
29547 "blocks are not allocated for the file until you write to it).  To create a "
29548 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
29549 msgstr ""
29550
29551 #. type: =head2
29552 #: ../src/guestfs-actions.pod:7123
29553 msgid "guestfs_tune2fs_l"
29554 msgstr ""
29555
29556 #. type: verbatim
29557 #: ../src/guestfs-actions.pod:7125
29558 #, no-wrap
29559 msgid ""
29560 " char **\n"
29561 " guestfs_tune2fs_l (guestfs_h *g,\n"
29562 "                    const char *device);\n"
29563 "\n"
29564 msgstr ""
29565
29566 #. type: =head2
29567 #: ../src/guestfs-actions.pod:7145
29568 msgid "guestfs_txz_in"
29569 msgstr ""
29570
29571 #. type: verbatim
29572 #: ../src/guestfs-actions.pod:7147
29573 #, no-wrap
29574 msgid ""
29575 " int\n"
29576 " guestfs_txz_in (guestfs_h *g,\n"
29577 "                 const char *tarball,\n"
29578 "                 const char *directory);\n"
29579 "\n"
29580 msgstr ""
29581
29582 #. type: =head2
29583 #: ../src/guestfs-actions.pod:7159
29584 msgid "guestfs_txz_out"
29585 msgstr ""
29586
29587 #. type: verbatim
29588 #: ../src/guestfs-actions.pod:7161
29589 #, no-wrap
29590 msgid ""
29591 " int\n"
29592 " guestfs_txz_out (guestfs_h *g,\n"
29593 "                  const char *directory,\n"
29594 "                  const char *tarball);\n"
29595 "\n"
29596 msgstr ""
29597
29598 #. type: =head2
29599 #: ../src/guestfs-actions.pod:7173
29600 msgid "guestfs_umask"
29601 msgstr ""
29602
29603 #. type: verbatim
29604 #: ../src/guestfs-actions.pod:7175
29605 #, no-wrap
29606 msgid ""
29607 " int\n"
29608 " guestfs_umask (guestfs_h *g,\n"
29609 "                int mask);\n"
29610 "\n"
29611 msgstr ""
29612
29613 #. type: textblock
29614 #: ../src/guestfs-actions.pod:7191
29615 msgid ""
29616 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
29617 "C<guestfs_mkdir>."
29618 msgstr ""
29619
29620 #. type: =head2
29621 #: ../src/guestfs-actions.pod:7200
29622 msgid "guestfs_umount"
29623 msgstr ""
29624
29625 #. type: verbatim
29626 #: ../src/guestfs-actions.pod:7202
29627 #, no-wrap
29628 msgid ""
29629 " int\n"
29630 " guestfs_umount (guestfs_h *g,\n"
29631 "                 const char *pathordevice);\n"
29632 "\n"
29633 msgstr ""
29634
29635 #. type: =head2
29636 #: ../src/guestfs-actions.pod:7214
29637 msgid "guestfs_umount_all"
29638 msgstr ""
29639
29640 #. type: verbatim
29641 #: ../src/guestfs-actions.pod:7216
29642 #, no-wrap
29643 msgid ""
29644 " int\n"
29645 " guestfs_umount_all (guestfs_h *g);\n"
29646 "\n"
29647 msgstr ""
29648
29649 #. type: =head2
29650 #: ../src/guestfs-actions.pod:7227
29651 msgid "guestfs_upload"
29652 msgstr ""
29653
29654 #. type: verbatim
29655 #: ../src/guestfs-actions.pod:7229
29656 #, no-wrap
29657 msgid ""
29658 " int\n"
29659 " guestfs_upload (guestfs_h *g,\n"
29660 "                 const char *filename,\n"
29661 "                 const char *remotefilename);\n"
29662 "\n"
29663 msgstr ""
29664
29665 #. type: textblock
29666 #: ../src/guestfs-actions.pod:7239
29667 msgid "See also C<guestfs_download>."
29668 msgstr ""
29669
29670 #. type: =head2
29671 #: ../src/guestfs-actions.pod:7250
29672 msgid "guestfs_upload_offset"
29673 msgstr ""
29674
29675 #. type: verbatim
29676 #: ../src/guestfs-actions.pod:7252
29677 #, no-wrap
29678 msgid ""
29679 " int\n"
29680 " guestfs_upload_offset (guestfs_h *g,\n"
29681 "                        const char *filename,\n"
29682 "                        const char *remotefilename,\n"
29683 "                        int64_t offset);\n"
29684 "\n"
29685 msgstr ""
29686
29687 #. type: textblock
29688 #: ../src/guestfs-actions.pod:7268
29689 msgid ""
29690 "Note that there is no limit on the amount of data that can be uploaded with "
29691 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
29692 "full amount unless an error occurs."
29693 msgstr ""
29694
29695 #. type: textblock
29696 #: ../src/guestfs-actions.pod:7273
29697 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
29698 msgstr ""
29699
29700 #. type: =head2
29701 #: ../src/guestfs-actions.pod:7284
29702 msgid "guestfs_utimens"
29703 msgstr ""
29704
29705 #. type: verbatim
29706 #: ../src/guestfs-actions.pod:7286
29707 #, no-wrap
29708 msgid ""
29709 " int\n"
29710 " guestfs_utimens (guestfs_h *g,\n"
29711 "                  const char *path,\n"
29712 "                  int64_t atsecs,\n"
29713 "                  int64_t atnsecs,\n"
29714 "                  int64_t mtsecs,\n"
29715 "                  int64_t mtnsecs);\n"
29716 "\n"
29717 msgstr ""
29718
29719 #. type: =head2
29720 #: ../src/guestfs-actions.pod:7315 ../src/guestfs-structs.pod:175
29721 msgid "guestfs_version"
29722 msgstr ""
29723
29724 #. type: verbatim
29725 #: ../src/guestfs-actions.pod:7317
29726 #, no-wrap
29727 msgid ""
29728 " struct guestfs_version *\n"
29729 " guestfs_version (guestfs_h *g);\n"
29730 "\n"
29731 msgstr ""
29732
29733 #. type: textblock
29734 #: ../src/guestfs-actions.pod:7345
29735 msgid ""
29736 "I<Note:> Don't use this call to test for availability of features.  In "
29737 "enterprise distributions we backport features from later versions into "
29738 "earlier versions, making this an unreliable way to test for features.  Use "
29739 "C<guestfs_available> instead."
29740 msgstr ""
29741
29742 #. type: textblock
29743 #: ../src/guestfs-actions.pod:7351
29744 msgid ""
29745 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
29746 "error.  I<The caller must call C<guestfs_free_version> after use>."
29747 msgstr ""
29748
29749 #. type: textblock
29750 #: ../src/guestfs-actions.pod:7355
29751 msgid "(Added in 1.0.58)"
29752 msgstr ""
29753
29754 #. type: =head2
29755 #: ../src/guestfs-actions.pod:7357
29756 msgid "guestfs_vfs_label"
29757 msgstr ""
29758
29759 #. type: verbatim
29760 #: ../src/guestfs-actions.pod:7359
29761 #, no-wrap
29762 msgid ""
29763 " char *\n"
29764 " guestfs_vfs_label (guestfs_h *g,\n"
29765 "                    const char *device);\n"
29766 "\n"
29767 msgstr ""
29768
29769 #. type: textblock
29770 #: ../src/guestfs-actions.pod:7368
29771 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
29772 msgstr ""
29773
29774 #. type: textblock
29775 #: ../src/guestfs-actions.pod:7373 ../src/guestfs-actions.pod:7410
29776 msgid "(Added in 1.3.18)"
29777 msgstr ""
29778
29779 #. type: =head2
29780 #: ../src/guestfs-actions.pod:7375
29781 msgid "guestfs_vfs_type"
29782 msgstr ""
29783
29784 #. type: verbatim
29785 #: ../src/guestfs-actions.pod:7377
29786 #, no-wrap
29787 msgid ""
29788 " char *\n"
29789 " guestfs_vfs_type (guestfs_h *g,\n"
29790 "                   const char *device);\n"
29791 "\n"
29792 msgstr ""
29793
29794 #. type: =head2
29795 #: ../src/guestfs-actions.pod:7394
29796 msgid "guestfs_vfs_uuid"
29797 msgstr ""
29798
29799 #. type: verbatim
29800 #: ../src/guestfs-actions.pod:7396
29801 #, no-wrap
29802 msgid ""
29803 " char *\n"
29804 " guestfs_vfs_uuid (guestfs_h *g,\n"
29805 "                   const char *device);\n"
29806 "\n"
29807 msgstr ""
29808
29809 #. type: textblock
29810 #: ../src/guestfs-actions.pod:7405
29811 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
29812 msgstr ""
29813
29814 #. type: =head2
29815 #: ../src/guestfs-actions.pod:7412
29816 msgid "guestfs_vg_activate"
29817 msgstr ""
29818
29819 #. type: verbatim
29820 #: ../src/guestfs-actions.pod:7414
29821 #, no-wrap
29822 msgid ""
29823 " int\n"
29824 " guestfs_vg_activate (guestfs_h *g,\n"
29825 "                      int activate,\n"
29826 "                      char *const *volgroups);\n"
29827 "\n"
29828 msgstr ""
29829
29830 #. type: =head2
29831 #: ../src/guestfs-actions.pod:7431
29832 msgid "guestfs_vg_activate_all"
29833 msgstr ""
29834
29835 #. type: verbatim
29836 #: ../src/guestfs-actions.pod:7433
29837 #, no-wrap
29838 msgid ""
29839 " int\n"
29840 " guestfs_vg_activate_all (guestfs_h *g,\n"
29841 "                          int activate);\n"
29842 "\n"
29843 msgstr ""
29844
29845 #. type: =head2
29846 #: ../src/guestfs-actions.pod:7446
29847 msgid "guestfs_vgcreate"
29848 msgstr ""
29849
29850 #. type: verbatim
29851 #: ../src/guestfs-actions.pod:7448
29852 #, no-wrap
29853 msgid ""
29854 " int\n"
29855 " guestfs_vgcreate (guestfs_h *g,\n"
29856 "                   const char *volgroup,\n"
29857 "                   char *const *physvols);\n"
29858 "\n"
29859 msgstr ""
29860
29861 #. type: =head2
29862 #: ../src/guestfs-actions.pod:7460
29863 msgid "guestfs_vglvuuids"
29864 msgstr ""
29865
29866 #. type: verbatim
29867 #: ../src/guestfs-actions.pod:7462
29868 #, no-wrap
29869 msgid ""
29870 " char **\n"
29871 " guestfs_vglvuuids (guestfs_h *g,\n"
29872 "                    const char *vgname);\n"
29873 "\n"
29874 msgstr ""
29875
29876 #. type: textblock
29877 #: ../src/guestfs-actions.pod:7469
29878 msgid ""
29879 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
29880 "associate logical volumes and volume groups."
29881 msgstr ""
29882
29883 #. type: textblock
29884 #: ../src/guestfs-actions.pod:7472
29885 msgid "See also C<guestfs_vgpvuuids>."
29886 msgstr ""
29887
29888 #. type: =head2
29889 #: ../src/guestfs-actions.pod:7480
29890 msgid "guestfs_vgpvuuids"
29891 msgstr ""
29892
29893 #. type: verbatim
29894 #: ../src/guestfs-actions.pod:7482
29895 #, no-wrap
29896 msgid ""
29897 " char **\n"
29898 " guestfs_vgpvuuids (guestfs_h *g,\n"
29899 "                    const char *vgname);\n"
29900 "\n"
29901 msgstr ""
29902
29903 #. type: textblock
29904 #: ../src/guestfs-actions.pod:7489
29905 msgid ""
29906 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
29907 "associate physical volumes and volume groups."
29908 msgstr ""
29909
29910 #. type: textblock
29911 #: ../src/guestfs-actions.pod:7492
29912 msgid "See also C<guestfs_vglvuuids>."
29913 msgstr ""
29914
29915 #. type: =head2
29916 #: ../src/guestfs-actions.pod:7500
29917 msgid "guestfs_vgremove"
29918 msgstr ""
29919
29920 #. type: verbatim
29921 #: ../src/guestfs-actions.pod:7502
29922 #, no-wrap
29923 msgid ""
29924 " int\n"
29925 " guestfs_vgremove (guestfs_h *g,\n"
29926 "                   const char *vgname);\n"
29927 "\n"
29928 msgstr ""
29929
29930 #. type: =head2
29931 #: ../src/guestfs-actions.pod:7515
29932 msgid "guestfs_vgrename"
29933 msgstr ""
29934
29935 #. type: verbatim
29936 #: ../src/guestfs-actions.pod:7517
29937 #, no-wrap
29938 msgid ""
29939 " int\n"
29940 " guestfs_vgrename (guestfs_h *g,\n"
29941 "                   const char *volgroup,\n"
29942 "                   const char *newvolgroup);\n"
29943 "\n"
29944 msgstr ""
29945
29946 #. type: =head2
29947 #: ../src/guestfs-actions.pod:7528
29948 msgid "guestfs_vgs"
29949 msgstr ""
29950
29951 #. type: verbatim
29952 #: ../src/guestfs-actions.pod:7530
29953 #, no-wrap
29954 msgid ""
29955 " char **\n"
29956 " guestfs_vgs (guestfs_h *g);\n"
29957 "\n"
29958 msgstr ""
29959
29960 #. type: textblock
29961 #: ../src/guestfs-actions.pod:7539
29962 msgid "See also C<guestfs_vgs_full>."
29963 msgstr ""
29964
29965 #. type: =head2
29966 #: ../src/guestfs-actions.pod:7547
29967 msgid "guestfs_vgs_full"
29968 msgstr ""
29969
29970 #. type: verbatim
29971 #: ../src/guestfs-actions.pod:7549
29972 #, no-wrap
29973 msgid ""
29974 " struct guestfs_lvm_vg_list *\n"
29975 " guestfs_vgs_full (guestfs_h *g);\n"
29976 "\n"
29977 msgstr ""
29978
29979 #. type: textblock
29980 #: ../src/guestfs-actions.pod:7555
29981 msgid ""
29982 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
29983 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
29984 msgstr ""
29985
29986 #. type: =head2
29987 #: ../src/guestfs-actions.pod:7561
29988 msgid "guestfs_vgscan"
29989 msgstr ""
29990
29991 #. type: verbatim
29992 #: ../src/guestfs-actions.pod:7563
29993 #, no-wrap
29994 msgid ""
29995 " int\n"
29996 " guestfs_vgscan (guestfs_h *g);\n"
29997 "\n"
29998 msgstr ""
29999
30000 #. type: =head2
30001 #: ../src/guestfs-actions.pod:7573
30002 msgid "guestfs_vguuid"
30003 msgstr ""
30004
30005 #. type: verbatim
30006 #: ../src/guestfs-actions.pod:7575
30007 #, no-wrap
30008 msgid ""
30009 " char *\n"
30010 " guestfs_vguuid (guestfs_h *g,\n"
30011 "                 const char *vgname);\n"
30012 "\n"
30013 msgstr ""
30014
30015 #. type: =head2
30016 #: ../src/guestfs-actions.pod:7586
30017 msgid "guestfs_wait_ready"
30018 msgstr ""
30019
30020 #. type: verbatim
30021 #: ../src/guestfs-actions.pod:7588
30022 #, no-wrap
30023 msgid ""
30024 " int\n"
30025 " guestfs_wait_ready (guestfs_h *g);\n"
30026 "\n"
30027 msgstr ""
30028
30029 #. type: textblock
30030 #: ../src/guestfs-actions.pod:7591
30031 msgid ""
30032 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
30033 "instead."
30034 msgstr ""
30035
30036 #. type: textblock
30037 #: ../src/guestfs-actions.pod:7598
30038 msgid "This function is a no op."
30039 msgstr ""
30040
30041 #. type: textblock
30042 #: ../src/guestfs-actions.pod:7600
30043 msgid ""
30044 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
30045 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
30046 "is no longer necessary because C<guestfs_launch> now does the waiting."
30047 msgstr ""
30048
30049 #. type: textblock
30050 #: ../src/guestfs-actions.pod:7605
30051 msgid ""
30052 "If you see any calls to this function in code then you can just remove them, "
30053 "unless you want to retain compatibility with older versions of the API."
30054 msgstr ""
30055
30056 #. type: =head2
30057 #: ../src/guestfs-actions.pod:7613
30058 msgid "guestfs_wc_c"
30059 msgstr ""
30060
30061 #. type: verbatim
30062 #: ../src/guestfs-actions.pod:7615
30063 #, no-wrap
30064 msgid ""
30065 " int\n"
30066 " guestfs_wc_c (guestfs_h *g,\n"
30067 "               const char *path);\n"
30068 "\n"
30069 msgstr ""
30070
30071 #. type: =head2
30072 #: ../src/guestfs-actions.pod:7626
30073 msgid "guestfs_wc_l"
30074 msgstr ""
30075
30076 #. type: verbatim
30077 #: ../src/guestfs-actions.pod:7628
30078 #, no-wrap
30079 msgid ""
30080 " int\n"
30081 " guestfs_wc_l (guestfs_h *g,\n"
30082 "               const char *path);\n"
30083 "\n"
30084 msgstr ""
30085
30086 #. type: =head2
30087 #: ../src/guestfs-actions.pod:7639
30088 msgid "guestfs_wc_w"
30089 msgstr ""
30090
30091 #. type: verbatim
30092 #: ../src/guestfs-actions.pod:7641
30093 #, no-wrap
30094 msgid ""
30095 " int\n"
30096 " guestfs_wc_w (guestfs_h *g,\n"
30097 "               const char *path);\n"
30098 "\n"
30099 msgstr ""
30100
30101 #. type: =head2
30102 #: ../src/guestfs-actions.pod:7652
30103 msgid "guestfs_write"
30104 msgstr ""
30105
30106 #. type: verbatim
30107 #: ../src/guestfs-actions.pod:7654
30108 #, no-wrap
30109 msgid ""
30110 " int\n"
30111 " guestfs_write (guestfs_h *g,\n"
30112 "                const char *path,\n"
30113 "                const char *content,\n"
30114 "                size_t content_size);\n"
30115 "\n"
30116 msgstr ""
30117
30118 #. type: textblock
30119 #: ../src/guestfs-actions.pod:7663
30120 msgid "See also C<guestfs_write_append>."
30121 msgstr ""
30122
30123 #. type: =head2
30124 #: ../src/guestfs-actions.pod:7672
30125 msgid "guestfs_write_append"
30126 msgstr ""
30127
30128 #. type: verbatim
30129 #: ../src/guestfs-actions.pod:7674
30130 #, no-wrap
30131 msgid ""
30132 " int\n"
30133 " guestfs_write_append (guestfs_h *g,\n"
30134 "                       const char *path,\n"
30135 "                       const char *content,\n"
30136 "                       size_t content_size);\n"
30137 "\n"
30138 msgstr ""
30139
30140 #. type: textblock
30141 #: ../src/guestfs-actions.pod:7683
30142 msgid "See also C<guestfs_write>."
30143 msgstr ""
30144
30145 #. type: =head2
30146 #: ../src/guestfs-actions.pod:7692
30147 msgid "guestfs_write_file"
30148 msgstr ""
30149
30150 #. type: verbatim
30151 #: ../src/guestfs-actions.pod:7694
30152 #, no-wrap
30153 msgid ""
30154 " int\n"
30155 " guestfs_write_file (guestfs_h *g,\n"
30156 "                     const char *path,\n"
30157 "                     const char *content,\n"
30158 "                     int size);\n"
30159 "\n"
30160 msgstr ""
30161
30162 #. type: textblock
30163 #: ../src/guestfs-actions.pod:7700
30164 msgid ""
30165 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
30166 "instead."
30167 msgstr ""
30168
30169 #. type: =head2
30170 #: ../src/guestfs-actions.pod:7725
30171 msgid "guestfs_zegrep"
30172 msgstr ""
30173
30174 #. type: verbatim
30175 #: ../src/guestfs-actions.pod:7727
30176 #, no-wrap
30177 msgid ""
30178 " char **\n"
30179 " guestfs_zegrep (guestfs_h *g,\n"
30180 "                 const char *regex,\n"
30181 "                 const char *path);\n"
30182 "\n"
30183 msgstr ""
30184
30185 #. type: =head2
30186 #: ../src/guestfs-actions.pod:7744
30187 msgid "guestfs_zegrepi"
30188 msgstr ""
30189
30190 #. type: verbatim
30191 #: ../src/guestfs-actions.pod:7746
30192 #, no-wrap
30193 msgid ""
30194 " char **\n"
30195 " guestfs_zegrepi (guestfs_h *g,\n"
30196 "                  const char *regex,\n"
30197 "                  const char *path);\n"
30198 "\n"
30199 msgstr ""
30200
30201 #. type: =head2
30202 #: ../src/guestfs-actions.pod:7763
30203 msgid "guestfs_zero"
30204 msgstr ""
30205
30206 #. type: verbatim
30207 #: ../src/guestfs-actions.pod:7765
30208 #, no-wrap
30209 msgid ""
30210 " int\n"
30211 " guestfs_zero (guestfs_h *g,\n"
30212 "               const char *device);\n"
30213 "\n"
30214 msgstr ""
30215
30216 #. type: textblock
30217 #: ../src/guestfs-actions.pod:7779
30218 msgid ""
30219 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
30220 "C<guestfs_is_zero_device>"
30221 msgstr ""
30222
30223 #. type: =head2
30224 #: ../src/guestfs-actions.pod:7791
30225 msgid "guestfs_zero_device"
30226 msgstr ""
30227
30228 #. type: verbatim
30229 #: ../src/guestfs-actions.pod:7793
30230 #, no-wrap
30231 msgid ""
30232 " int\n"
30233 " guestfs_zero_device (guestfs_h *g,\n"
30234 "                      const char *device);\n"
30235 "\n"
30236 msgstr ""
30237
30238 #. type: textblock
30239 #: ../src/guestfs-actions.pod:7797
30240 msgid ""
30241 "This command writes zeroes over the entire C<device>.  Compare with "
30242 "C<guestfs_zero> which just zeroes the first few blocks of a device."
30243 msgstr ""
30244
30245 #. type: textblock
30246 #: ../src/guestfs-actions.pod:7815
30247 msgid "(Added in 1.3.1)"
30248 msgstr ""
30249
30250 #. type: =head2
30251 #: ../src/guestfs-actions.pod:7817
30252 msgid "guestfs_zerofree"
30253 msgstr ""
30254
30255 #. type: verbatim
30256 #: ../src/guestfs-actions.pod:7819
30257 #, no-wrap
30258 msgid ""
30259 " int\n"
30260 " guestfs_zerofree (guestfs_h *g,\n"
30261 "                   const char *device);\n"
30262 "\n"
30263 msgstr ""
30264
30265 #. type: =head2
30266 #: ../src/guestfs-actions.pod:7838
30267 msgid "guestfs_zfgrep"
30268 msgstr ""
30269
30270 #. type: verbatim
30271 #: ../src/guestfs-actions.pod:7840
30272 #, no-wrap
30273 msgid ""
30274 " char **\n"
30275 " guestfs_zfgrep (guestfs_h *g,\n"
30276 "                 const char *pattern,\n"
30277 "                 const char *path);\n"
30278 "\n"
30279 msgstr ""
30280
30281 #. type: =head2
30282 #: ../src/guestfs-actions.pod:7857
30283 msgid "guestfs_zfgrepi"
30284 msgstr ""
30285
30286 #. type: verbatim
30287 #: ../src/guestfs-actions.pod:7859
30288 #, no-wrap
30289 msgid ""
30290 " char **\n"
30291 " guestfs_zfgrepi (guestfs_h *g,\n"
30292 "                  const char *pattern,\n"
30293 "                  const char *path);\n"
30294 "\n"
30295 msgstr ""
30296
30297 #. type: =head2
30298 #: ../src/guestfs-actions.pod:7876
30299 msgid "guestfs_zfile"
30300 msgstr ""
30301
30302 #. type: verbatim
30303 #: ../src/guestfs-actions.pod:7878
30304 #, no-wrap
30305 msgid ""
30306 " char *\n"
30307 " guestfs_zfile (guestfs_h *g,\n"
30308 "                const char *meth,\n"
30309 "                const char *path);\n"
30310 "\n"
30311 msgstr ""
30312
30313 #. type: textblock
30314 #: ../src/guestfs-actions.pod:7883
30315 msgid ""
30316 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
30317 "instead."
30318 msgstr ""
30319
30320 #. type: textblock
30321 #: ../src/guestfs-actions.pod:7895
30322 msgid ""
30323 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
30324 "files."
30325 msgstr ""
30326
30327 #. type: =head2
30328 #: ../src/guestfs-actions.pod:7903
30329 msgid "guestfs_zgrep"
30330 msgstr ""
30331
30332 #. type: verbatim
30333 #: ../src/guestfs-actions.pod:7905
30334 #, no-wrap
30335 msgid ""
30336 " char **\n"
30337 " guestfs_zgrep (guestfs_h *g,\n"
30338 "                const char *regex,\n"
30339 "                const char *path);\n"
30340 "\n"
30341 msgstr ""
30342
30343 #. type: =head2
30344 #: ../src/guestfs-actions.pod:7922
30345 msgid "guestfs_zgrepi"
30346 msgstr ""
30347
30348 #. type: verbatim
30349 #: ../src/guestfs-actions.pod:7924
30350 #, no-wrap
30351 msgid ""
30352 " char **\n"
30353 " guestfs_zgrepi (guestfs_h *g,\n"
30354 "                 const char *regex,\n"
30355 "                 const char *path);\n"
30356 "\n"
30357 msgstr ""
30358
30359 #. type: =item
30360 #: ../src/guestfs-availability.pod:3
30361 msgid "B<augeas>"
30362 msgstr ""
30363
30364 #. type: textblock
30365 #: ../src/guestfs-availability.pod:5
30366 msgid ""
30367 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
30368 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
30369 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
30370 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
30371 "L</guestfs_aug_save> L</guestfs_aug_set>"
30372 msgstr ""
30373
30374 #. type: =item
30375 #: ../src/guestfs-availability.pod:21
30376 msgid "B<btrfs>"
30377 msgstr ""
30378
30379 #. type: textblock
30380 #: ../src/guestfs-availability.pod:23
30381 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
30382 msgstr ""
30383
30384 #. type: =item
30385 #: ../src/guestfs-availability.pod:26
30386 msgid "B<inotify>"
30387 msgstr ""
30388
30389 #. type: textblock
30390 #: ../src/guestfs-availability.pod:28
30391 msgid ""
30392 "The following functions: L</guestfs_inotify_add_watch> L</"
30393 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
30394 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
30395 msgstr ""
30396
30397 #. type: =item
30398 #: ../src/guestfs-availability.pod:36
30399 msgid "B<linuxfsuuid>"
30400 msgstr ""
30401
30402 #. type: textblock
30403 #: ../src/guestfs-availability.pod:38
30404 msgid ""
30405 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
30406 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
30407 msgstr ""
30408
30409 #. type: =item
30410 #: ../src/guestfs-availability.pod:45
30411 msgid "B<linuxmodules>"
30412 msgstr ""
30413
30414 #. type: textblock
30415 #: ../src/guestfs-availability.pod:47
30416 msgid "The following functions: L</guestfs_modprobe>"
30417 msgstr ""
30418
30419 #. type: =item
30420 #: ../src/guestfs-availability.pod:50
30421 msgid "B<linuxxattrs>"
30422 msgstr ""
30423
30424 #. type: textblock
30425 #: ../src/guestfs-availability.pod:52
30426 msgid ""
30427 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
30428 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
30429 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
30430 "guestfs_setxattr>"
30431 msgstr ""
30432
30433 #. type: =item
30434 #: ../src/guestfs-availability.pod:63
30435 msgid "B<luks>"
30436 msgstr ""
30437
30438 #. type: textblock
30439 #: ../src/guestfs-availability.pod:65
30440 msgid ""
30441 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
30442 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
30443 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
30444 msgstr ""
30445
30446 #. type: =item
30447 #: ../src/guestfs-availability.pod:74
30448 msgid "B<lvm2>"
30449 msgstr ""
30450
30451 #. type: textblock
30452 #: ../src/guestfs-availability.pod:76
30453 msgid ""
30454 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
30455 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
30456 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
30457 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
30458 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
30459 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
30460 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
30461 msgstr ""
30462
30463 #. type: =item
30464 #: ../src/guestfs-availability.pod:99
30465 msgid "B<mknod>"
30466 msgstr ""
30467
30468 #. type: textblock
30469 #: ../src/guestfs-availability.pod:101
30470 msgid ""
30471 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
30472 "guestfs_mknod_b> L</guestfs_mknod_c>"
30473 msgstr ""
30474
30475 #. type: =item
30476 #: ../src/guestfs-availability.pod:107
30477 msgid "B<ntfs3g>"
30478 msgstr ""
30479
30480 #. type: textblock
30481 #: ../src/guestfs-availability.pod:109
30482 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
30483 msgstr ""
30484
30485 #. type: =item
30486 #: ../src/guestfs-availability.pod:112
30487 msgid "B<ntfsprogs>"
30488 msgstr ""
30489
30490 #. type: textblock
30491 #: ../src/guestfs-availability.pod:114
30492 msgid ""
30493 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
30494 "L</guestfs_ntfsresize_size>"
30495 msgstr ""
30496
30497 #. type: =item
30498 #: ../src/guestfs-availability.pod:119
30499 msgid "B<realpath>"
30500 msgstr ""
30501
30502 #. type: textblock
30503 #: ../src/guestfs-availability.pod:121
30504 msgid "The following functions: L</guestfs_realpath>"
30505 msgstr ""
30506
30507 #. type: =item
30508 #: ../src/guestfs-availability.pod:124
30509 msgid "B<scrub>"
30510 msgstr ""
30511
30512 #. type: textblock
30513 #: ../src/guestfs-availability.pod:126
30514 msgid ""
30515 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
30516 "guestfs_scrub_freespace>"
30517 msgstr ""
30518
30519 #. type: =item
30520 #: ../src/guestfs-availability.pod:131
30521 msgid "B<selinux>"
30522 msgstr ""
30523
30524 #. type: textblock
30525 #: ../src/guestfs-availability.pod:133
30526 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
30527 msgstr ""
30528
30529 #. type: =item
30530 #: ../src/guestfs-availability.pod:137
30531 msgid "B<xz>"
30532 msgstr ""
30533
30534 #. type: textblock
30535 #: ../src/guestfs-availability.pod:139
30536 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
30537 msgstr ""
30538
30539 #. type: =item
30540 #: ../src/guestfs-availability.pod:143
30541 msgid "B<zerofree>"
30542 msgstr ""
30543
30544 #. type: textblock
30545 #: ../src/guestfs-availability.pod:145
30546 msgid "The following functions: L</guestfs_zerofree>"
30547 msgstr ""
30548
30549 #. type: =head2
30550 #: ../src/guestfs-structs.pod:1
30551 msgid "guestfs_int_bool"
30552 msgstr ""
30553
30554 #. type: verbatim
30555 #: ../src/guestfs-structs.pod:3
30556 #, no-wrap
30557 msgid ""
30558 " struct guestfs_int_bool {\n"
30559 "   int32_t i;\n"
30560 "   int32_t b;\n"
30561 " };\n"
30562 " \n"
30563 msgstr ""
30564
30565 #. type: verbatim
30566 #: ../src/guestfs-structs.pod:8
30567 #, no-wrap
30568 msgid ""
30569 " struct guestfs_int_bool_list {\n"
30570 "   uint32_t len; /* Number of elements in list. */\n"
30571 "   struct guestfs_int_bool *val; /* Elements. */\n"
30572 " };\n"
30573 " \n"
30574 msgstr ""
30575
30576 #. type: verbatim
30577 #: ../src/guestfs-structs.pod:13
30578 #, no-wrap
30579 msgid ""
30580 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
30581 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
30582 "\n"
30583 msgstr ""
30584
30585 #. type: =head2
30586 #: ../src/guestfs-structs.pod:16
30587 msgid "guestfs_lvm_pv"
30588 msgstr ""
30589
30590 #. type: verbatim
30591 #: ../src/guestfs-structs.pod:18
30592 #, no-wrap
30593 msgid ""
30594 " struct guestfs_lvm_pv {\n"
30595 "   char *pv_name;\n"
30596 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
30597 "   char pv_uuid[32];\n"
30598 "   char *pv_fmt;\n"
30599 "   uint64_t pv_size;\n"
30600 "   uint64_t dev_size;\n"
30601 "   uint64_t pv_free;\n"
30602 "   uint64_t pv_used;\n"
30603 "   char *pv_attr;\n"
30604 "   int64_t pv_pe_count;\n"
30605 "   int64_t pv_pe_alloc_count;\n"
30606 "   char *pv_tags;\n"
30607 "   uint64_t pe_start;\n"
30608 "   int64_t pv_mda_count;\n"
30609 "   uint64_t pv_mda_free;\n"
30610 " };\n"
30611 " \n"
30612 msgstr ""
30613
30614 #. type: verbatim
30615 #: ../src/guestfs-structs.pod:36
30616 #, no-wrap
30617 msgid ""
30618 " struct guestfs_lvm_pv_list {\n"
30619 "   uint32_t len; /* Number of elements in list. */\n"
30620 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
30621 " };\n"
30622 " \n"
30623 msgstr ""
30624
30625 #. type: verbatim
30626 #: ../src/guestfs-structs.pod:41
30627 #, no-wrap
30628 msgid ""
30629 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
30630 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
30631 "\n"
30632 msgstr ""
30633
30634 #. type: =head2
30635 #: ../src/guestfs-structs.pod:44
30636 msgid "guestfs_lvm_vg"
30637 msgstr ""
30638
30639 #. type: verbatim
30640 #: ../src/guestfs-structs.pod:46
30641 #, no-wrap
30642 msgid ""
30643 " struct guestfs_lvm_vg {\n"
30644 "   char *vg_name;\n"
30645 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
30646 "   char vg_uuid[32];\n"
30647 "   char *vg_fmt;\n"
30648 "   char *vg_attr;\n"
30649 "   uint64_t vg_size;\n"
30650 "   uint64_t vg_free;\n"
30651 "   char *vg_sysid;\n"
30652 "   uint64_t vg_extent_size;\n"
30653 "   int64_t vg_extent_count;\n"
30654 "   int64_t vg_free_count;\n"
30655 "   int64_t max_lv;\n"
30656 "   int64_t max_pv;\n"
30657 "   int64_t pv_count;\n"
30658 "   int64_t lv_count;\n"
30659 "   int64_t snap_count;\n"
30660 "   int64_t vg_seqno;\n"
30661 "   char *vg_tags;\n"
30662 "   int64_t vg_mda_count;\n"
30663 "   uint64_t vg_mda_free;\n"
30664 " };\n"
30665 " \n"
30666 msgstr ""
30667
30668 #. type: verbatim
30669 #: ../src/guestfs-structs.pod:69
30670 #, no-wrap
30671 msgid ""
30672 " struct guestfs_lvm_vg_list {\n"
30673 "   uint32_t len; /* Number of elements in list. */\n"
30674 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
30675 " };\n"
30676 " \n"
30677 msgstr ""
30678
30679 #. type: verbatim
30680 #: ../src/guestfs-structs.pod:74
30681 #, no-wrap
30682 msgid ""
30683 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
30684 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
30685 "\n"
30686 msgstr ""
30687
30688 #. type: =head2
30689 #: ../src/guestfs-structs.pod:77
30690 msgid "guestfs_lvm_lv"
30691 msgstr ""
30692
30693 #. type: verbatim
30694 #: ../src/guestfs-structs.pod:79
30695 #, no-wrap
30696 msgid ""
30697 " struct guestfs_lvm_lv {\n"
30698 "   char *lv_name;\n"
30699 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
30700 "   char lv_uuid[32];\n"
30701 "   char *lv_attr;\n"
30702 "   int64_t lv_major;\n"
30703 "   int64_t lv_minor;\n"
30704 "   int64_t lv_kernel_major;\n"
30705 "   int64_t lv_kernel_minor;\n"
30706 "   uint64_t lv_size;\n"
30707 "   int64_t seg_count;\n"
30708 "   char *origin;\n"
30709 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
30710 "   float snap_percent;\n"
30711 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
30712 "   float copy_percent;\n"
30713 "   char *move_pv;\n"
30714 "   char *lv_tags;\n"
30715 "   char *mirror_log;\n"
30716 "   char *modules;\n"
30717 " };\n"
30718 " \n"
30719 msgstr ""
30720
30721 #. type: verbatim
30722 #: ../src/guestfs-structs.pod:101
30723 #, no-wrap
30724 msgid ""
30725 " struct guestfs_lvm_lv_list {\n"
30726 "   uint32_t len; /* Number of elements in list. */\n"
30727 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
30728 " };\n"
30729 " \n"
30730 msgstr ""
30731
30732 #. type: verbatim
30733 #: ../src/guestfs-structs.pod:106
30734 #, no-wrap
30735 msgid ""
30736 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
30737 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
30738 "\n"
30739 msgstr ""
30740
30741 #. type: verbatim
30742 #: ../src/guestfs-structs.pod:111
30743 #, no-wrap
30744 msgid ""
30745 " struct guestfs_stat {\n"
30746 "   int64_t dev;\n"
30747 "   int64_t ino;\n"
30748 "   int64_t mode;\n"
30749 "   int64_t nlink;\n"
30750 "   int64_t uid;\n"
30751 "   int64_t gid;\n"
30752 "   int64_t rdev;\n"
30753 "   int64_t size;\n"
30754 "   int64_t blksize;\n"
30755 "   int64_t blocks;\n"
30756 "   int64_t atime;\n"
30757 "   int64_t mtime;\n"
30758 "   int64_t ctime;\n"
30759 " };\n"
30760 " \n"
30761 msgstr ""
30762
30763 #. type: verbatim
30764 #: ../src/guestfs-structs.pod:127
30765 #, no-wrap
30766 msgid ""
30767 " struct guestfs_stat_list {\n"
30768 "   uint32_t len; /* Number of elements in list. */\n"
30769 "   struct guestfs_stat *val; /* Elements. */\n"
30770 " };\n"
30771 " \n"
30772 msgstr ""
30773
30774 #. type: verbatim
30775 #: ../src/guestfs-structs.pod:132
30776 #, no-wrap
30777 msgid ""
30778 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
30779 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
30780 "\n"
30781 msgstr ""
30782
30783 #. type: verbatim
30784 #: ../src/guestfs-structs.pod:137
30785 #, no-wrap
30786 msgid ""
30787 " struct guestfs_statvfs {\n"
30788 "   int64_t bsize;\n"
30789 "   int64_t frsize;\n"
30790 "   int64_t blocks;\n"
30791 "   int64_t bfree;\n"
30792 "   int64_t bavail;\n"
30793 "   int64_t files;\n"
30794 "   int64_t ffree;\n"
30795 "   int64_t favail;\n"
30796 "   int64_t fsid;\n"
30797 "   int64_t flag;\n"
30798 "   int64_t namemax;\n"
30799 " };\n"
30800 " \n"
30801 msgstr ""
30802
30803 #. type: verbatim
30804 #: ../src/guestfs-structs.pod:151
30805 #, no-wrap
30806 msgid ""
30807 " struct guestfs_statvfs_list {\n"
30808 "   uint32_t len; /* Number of elements in list. */\n"
30809 "   struct guestfs_statvfs *val; /* Elements. */\n"
30810 " };\n"
30811 " \n"
30812 msgstr ""
30813
30814 #. type: verbatim
30815 #: ../src/guestfs-structs.pod:156
30816 #, no-wrap
30817 msgid ""
30818 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
30819 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
30820 "\n"
30821 msgstr ""
30822
30823 #. type: =head2
30824 #: ../src/guestfs-structs.pod:159
30825 msgid "guestfs_dirent"
30826 msgstr ""
30827
30828 #. type: verbatim
30829 #: ../src/guestfs-structs.pod:161
30830 #, no-wrap
30831 msgid ""
30832 " struct guestfs_dirent {\n"
30833 "   int64_t ino;\n"
30834 "   char ftyp;\n"
30835 "   char *name;\n"
30836 " };\n"
30837 " \n"
30838 msgstr ""
30839
30840 #. type: verbatim
30841 #: ../src/guestfs-structs.pod:167
30842 #, no-wrap
30843 msgid ""
30844 " struct guestfs_dirent_list {\n"
30845 "   uint32_t len; /* Number of elements in list. */\n"
30846 "   struct guestfs_dirent *val; /* Elements. */\n"
30847 " };\n"
30848 " \n"
30849 msgstr ""
30850
30851 #. type: verbatim
30852 #: ../src/guestfs-structs.pod:172
30853 #, no-wrap
30854 msgid ""
30855 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
30856 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
30857 "\n"
30858 msgstr ""
30859
30860 #. type: verbatim
30861 #: ../src/guestfs-structs.pod:177
30862 #, no-wrap
30863 msgid ""
30864 " struct guestfs_version {\n"
30865 "   int64_t major;\n"
30866 "   int64_t minor;\n"
30867 "   int64_t release;\n"
30868 "   char *extra;\n"
30869 " };\n"
30870 " \n"
30871 msgstr ""
30872
30873 #. type: verbatim
30874 #: ../src/guestfs-structs.pod:184
30875 #, no-wrap
30876 msgid ""
30877 " struct guestfs_version_list {\n"
30878 "   uint32_t len; /* Number of elements in list. */\n"
30879 "   struct guestfs_version *val; /* Elements. */\n"
30880 " };\n"
30881 " \n"
30882 msgstr ""
30883
30884 #. type: verbatim
30885 #: ../src/guestfs-structs.pod:189
30886 #, no-wrap
30887 msgid ""
30888 " void guestfs_free_version (struct guestfs_free_version *);\n"
30889 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
30890 "\n"
30891 msgstr ""
30892
30893 #. type: =head2
30894 #: ../src/guestfs-structs.pod:192
30895 msgid "guestfs_xattr"
30896 msgstr ""
30897
30898 #. type: verbatim
30899 #: ../src/guestfs-structs.pod:194
30900 #, no-wrap
30901 msgid ""
30902 " struct guestfs_xattr {\n"
30903 "   char *attrname;\n"
30904 "   /* The next two fields describe a byte array. */\n"
30905 "   uint32_t attrval_len;\n"
30906 "   char *attrval;\n"
30907 " };\n"
30908 " \n"
30909 msgstr ""
30910
30911 #. type: verbatim
30912 #: ../src/guestfs-structs.pod:201
30913 #, no-wrap
30914 msgid ""
30915 " struct guestfs_xattr_list {\n"
30916 "   uint32_t len; /* Number of elements in list. */\n"
30917 "   struct guestfs_xattr *val; /* Elements. */\n"
30918 " };\n"
30919 " \n"
30920 msgstr ""
30921
30922 #. type: verbatim
30923 #: ../src/guestfs-structs.pod:206
30924 #, no-wrap
30925 msgid ""
30926 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
30927 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
30928 "\n"
30929 msgstr ""
30930
30931 #. type: =head2
30932 #: ../src/guestfs-structs.pod:209
30933 msgid "guestfs_inotify_event"
30934 msgstr ""
30935
30936 #. type: verbatim
30937 #: ../src/guestfs-structs.pod:211
30938 #, no-wrap
30939 msgid ""
30940 " struct guestfs_inotify_event {\n"
30941 "   int64_t in_wd;\n"
30942 "   uint32_t in_mask;\n"
30943 "   uint32_t in_cookie;\n"
30944 "   char *in_name;\n"
30945 " };\n"
30946 " \n"
30947 msgstr ""
30948
30949 #. type: verbatim
30950 #: ../src/guestfs-structs.pod:218
30951 #, no-wrap
30952 msgid ""
30953 " struct guestfs_inotify_event_list {\n"
30954 "   uint32_t len; /* Number of elements in list. */\n"
30955 "   struct guestfs_inotify_event *val; /* Elements. */\n"
30956 " };\n"
30957 " \n"
30958 msgstr ""
30959
30960 #. type: verbatim
30961 #: ../src/guestfs-structs.pod:223
30962 #, no-wrap
30963 msgid ""
30964 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
30965 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
30966 "\n"
30967 msgstr ""
30968
30969 #. type: =head2
30970 #: ../src/guestfs-structs.pod:226
30971 msgid "guestfs_partition"
30972 msgstr ""
30973
30974 #. type: verbatim
30975 #: ../src/guestfs-structs.pod:228
30976 #, no-wrap
30977 msgid ""
30978 " struct guestfs_partition {\n"
30979 "   int32_t part_num;\n"
30980 "   uint64_t part_start;\n"
30981 "   uint64_t part_end;\n"
30982 "   uint64_t part_size;\n"
30983 " };\n"
30984 " \n"
30985 msgstr ""
30986
30987 #. type: verbatim
30988 #: ../src/guestfs-structs.pod:235
30989 #, no-wrap
30990 msgid ""
30991 " struct guestfs_partition_list {\n"
30992 "   uint32_t len; /* Number of elements in list. */\n"
30993 "   struct guestfs_partition *val; /* Elements. */\n"
30994 " };\n"
30995 " \n"
30996 msgstr ""
30997
30998 #. type: verbatim
30999 #: ../src/guestfs-structs.pod:240
31000 #, no-wrap
31001 msgid ""
31002 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
31003 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
31004 "\n"
31005 msgstr ""
31006
31007 #. type: =head2
31008 #: ../src/guestfs-structs.pod:243
31009 msgid "guestfs_application"
31010 msgstr ""
31011
31012 #. type: verbatim
31013 #: ../src/guestfs-structs.pod:245
31014 #, no-wrap
31015 msgid ""
31016 " struct guestfs_application {\n"
31017 "   char *app_name;\n"
31018 "   char *app_display_name;\n"
31019 "   int32_t app_epoch;\n"
31020 "   char *app_version;\n"
31021 "   char *app_release;\n"
31022 "   char *app_install_path;\n"
31023 "   char *app_trans_path;\n"
31024 "   char *app_publisher;\n"
31025 "   char *app_url;\n"
31026 "   char *app_source_package;\n"
31027 "   char *app_summary;\n"
31028 "   char *app_description;\n"
31029 " };\n"
31030 " \n"
31031 msgstr ""
31032
31033 #. type: verbatim
31034 #: ../src/guestfs-structs.pod:260
31035 #, no-wrap
31036 msgid ""
31037 " struct guestfs_application_list {\n"
31038 "   uint32_t len; /* Number of elements in list. */\n"
31039 "   struct guestfs_application *val; /* Elements. */\n"
31040 " };\n"
31041 " \n"
31042 msgstr ""
31043
31044 #. type: verbatim
31045 #: ../src/guestfs-structs.pod:265
31046 #, no-wrap
31047 msgid ""
31048 " void guestfs_free_application (struct guestfs_free_application *);\n"
31049 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
31050 "\n"
31051 msgstr ""
31052
31053 #. type: textblock
31054 #: ../src/guestfs.pod:5
31055 msgid "guestfs - Library for accessing and modifying virtual machine images"
31056 msgstr ""
31057
31058 #. type: verbatim
31059 #: ../src/guestfs.pod:11
31060 #, no-wrap
31061 msgid ""
31062 " guestfs_h *g = guestfs_create ();\n"
31063 " guestfs_add_drive (g, \"guest.img\");\n"
31064 " guestfs_launch (g);\n"
31065 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
31066 " guestfs_touch (g, \"/hello\");\n"
31067 " guestfs_umount (g, \"/\");\n"
31068 " guestfs_close (g);\n"
31069 "\n"
31070 msgstr ""
31071
31072 #. type: textblock
31073 #: ../src/guestfs.pod:25
31074 msgid ""
31075 "Libguestfs is a library for accessing and modifying guest disk images.  "
31076 "Amongst the things this is good for: making batch configuration changes to "
31077 "guests, getting disk used/free statistics (see also: virt-df), migrating "
31078 "between virtualization systems (see also: virt-p2v), performing partial "
31079 "backups, performing partial guest clones, cloning guests and changing "
31080 "registry/UUID/hostname info, and much else besides."
31081 msgstr ""
31082
31083 #. type: textblock
31084 #: ../src/guestfs.pod:33
31085 msgid ""
31086 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
31087 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
31088 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
31089 "qcow2, vmdk."
31090 msgstr ""
31091
31092 #. type: textblock
31093 #: ../src/guestfs.pod:38
31094 msgid ""
31095 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
31096 "what filesystem is in each LV, etc.).  It can also run commands in the "
31097 "context of the guest.  Also you can access filesystems over FUSE."
31098 msgstr ""
31099
31100 #. type: textblock
31101 #: ../src/guestfs.pod:43
31102 msgid ""
31103 "Libguestfs is a library that can be linked with C and C++ management "
31104 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
31105 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
31106 "line."
31107 msgstr ""
31108
31109 #. type: textblock
31110 #: ../src/guestfs.pod:48
31111 msgid ""
31112 "You don't need to be root to use libguestfs, although obviously you do need "
31113 "enough permissions to access the disk images."
31114 msgstr ""
31115
31116 #. type: textblock
31117 #: ../src/guestfs.pod:51
31118 msgid ""
31119 "Libguestfs is a large API because it can do many things.  For a gentle "
31120 "introduction, please read the L</API OVERVIEW> section next."
31121 msgstr ""
31122
31123 #. type: textblock
31124 #: ../src/guestfs.pod:54
31125 msgid ""
31126 "There are also some example programs in the L<guestfs-examples(3)> manual "
31127 "page."
31128 msgstr ""
31129
31130 #. type: =head1
31131 #: ../src/guestfs.pod:57
31132 msgid "API OVERVIEW"
31133 msgstr ""
31134
31135 #. type: textblock
31136 #: ../src/guestfs.pod:59
31137 msgid ""
31138 "This section provides a gentler overview of the libguestfs API.  We also try "
31139 "to group API calls together, where that may not be obvious from reading "
31140 "about the individual calls in the main section of this manual."
31141 msgstr ""
31142
31143 #. type: =head2
31144 #: ../src/guestfs.pod:64
31145 msgid "HANDLES"
31146 msgstr ""
31147
31148 #. type: textblock
31149 #: ../src/guestfs.pod:66
31150 msgid ""
31151 "Before you can use libguestfs calls, you have to create a handle.  Then you "
31152 "must add at least one disk image to the handle, followed by launching the "
31153 "handle, then performing whatever operations you want, and finally closing "
31154 "the handle.  By convention we use the single letter C<g> for the name of the "
31155 "handle variable, although of course you can use any name you want."
31156 msgstr ""
31157
31158 #. type: textblock
31159 #: ../src/guestfs.pod:73
31160 msgid "The general structure of all libguestfs-using programs looks like this:"
31161 msgstr ""
31162
31163 #. type: verbatim
31164 #: ../src/guestfs.pod:76
31165 #, no-wrap
31166 msgid ""
31167 " guestfs_h *g = guestfs_create ();\n"
31168 " \n"
31169 msgstr ""
31170
31171 #. type: verbatim
31172 #: ../src/guestfs.pod:78
31173 #, no-wrap
31174 msgid ""
31175 " /* Call guestfs_add_drive additional times if there are\n"
31176 "  * multiple disk images.\n"
31177 "  */\n"
31178 " guestfs_add_drive (g, \"guest.img\");\n"
31179 " \n"
31180 msgstr ""
31181
31182 #. type: verbatim
31183 #: ../src/guestfs.pod:83
31184 #, no-wrap
31185 msgid ""
31186 " /* Most manipulation calls won't work until you've launched\n"
31187 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
31188 "  * and _before_ other commands.\n"
31189 "  */\n"
31190 " guestfs_launch (g);\n"
31191 " \n"
31192 msgstr ""
31193
31194 #. type: verbatim
31195 #: ../src/guestfs.pod:89
31196 #, no-wrap
31197 msgid ""
31198 " /* Now you can examine what partitions, LVs etc are available.\n"
31199 "  */\n"
31200 " char **partitions = guestfs_list_partitions (g);\n"
31201 " char **logvols = guestfs_lvs (g);\n"
31202 " \n"
31203 msgstr ""
31204
31205 #. type: verbatim
31206 #: ../src/guestfs.pod:94
31207 #, no-wrap
31208 msgid ""
31209 " /* To access a filesystem in the image, you must mount it.\n"
31210 "  */\n"
31211 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
31212 " \n"
31213 msgstr ""
31214
31215 #. type: verbatim
31216 #: ../src/guestfs.pod:98
31217 #, no-wrap
31218 msgid ""
31219 " /* Now you can perform filesystem actions on the guest\n"
31220 "  * disk image.\n"
31221 "  */\n"
31222 " guestfs_touch (g, \"/hello\");\n"
31223 " \n"
31224 msgstr ""
31225
31226 #. type: verbatim
31227 #: ../src/guestfs.pod:103
31228 #, no-wrap
31229 msgid ""
31230 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
31231 "  * it is done automatically when you close the handle.  See\n"
31232 "  * discussion of autosync in this page.\n"
31233 "  */\n"
31234 " guestfs_sync (g);\n"
31235 " \n"
31236 msgstr ""
31237
31238 #. type: verbatim
31239 #: ../src/guestfs.pod:109
31240 #, no-wrap
31241 msgid ""
31242 " /* Close the handle 'g'. */\n"
31243 " guestfs_close (g);\n"
31244 "\n"
31245 msgstr ""
31246
31247 #. type: textblock
31248 #: ../src/guestfs.pod:112
31249 msgid ""
31250 "The code above doesn't include any error checking.  In real code you should "
31251 "check return values carefully for errors.  In general all functions that "
31252 "return integers return C<-1> on error, and all functions that return "
31253 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
31254 "how to handle errors, and consult the documentation for each function call "
31255 "below to see precisely how they return error indications.  See L<guestfs-"
31256 "examples(3)> for fully worked examples."
31257 msgstr ""
31258
31259 #. type: =head2
31260 #: ../src/guestfs.pod:121
31261 msgid "DISK IMAGES"
31262 msgstr ""
31263
31264 #. type: textblock
31265 #: ../src/guestfs.pod:123
31266 msgid ""
31267 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
31268 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
31269 "actual block device, or simply an empty file of zeroes that you have created "
31270 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
31271 "of these."
31272 msgstr ""
31273
31274 #. type: textblock
31275 #: ../src/guestfs.pod:129
31276 msgid ""
31277 "The call you should use in modern code for adding drives is L</"
31278 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
31279 "specifying that the format is raw, do:"
31280 msgstr ""
31281
31282 #. type: verbatim
31283 #: ../src/guestfs.pod:133
31284 #, no-wrap
31285 msgid ""
31286 " guestfs_add_drive_opts (g, filename,\n"
31287 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
31288 "                         -1);\n"
31289 "\n"
31290 msgstr ""
31291
31292 #. type: textblock
31293 #: ../src/guestfs.pod:137
31294 msgid "You can add a disk read-only using:"
31295 msgstr ""
31296
31297 #. type: verbatim
31298 #: ../src/guestfs.pod:139
31299 #, no-wrap
31300 msgid ""
31301 " guestfs_add_drive_opts (g, filename,\n"
31302 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
31303 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
31304 "                         -1);\n"
31305 "\n"
31306 msgstr ""
31307
31308 #. type: textblock
31309 #: ../src/guestfs.pod:144
31310 msgid ""
31311 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
31312 "libguestfs won't modify the file."
31313 msgstr ""
31314
31315 #. type: textblock
31316 #: ../src/guestfs.pod:147
31317 msgid ""
31318 "Be extremely cautious if the disk image is in use, eg. if it is being used "
31319 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
31320 "corruption, but adding it read-only is safe."
31321 msgstr ""
31322
31323 #. type: textblock
31324 #: ../src/guestfs.pod:151
31325 msgid ""
31326 "You must add at least one disk image, and you may add multiple disk images.  "
31327 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
31328 "first one you added), C</dev/sdb> (for the second one you added), etc."
31329 msgstr ""
31330
31331 #. type: textblock
31332 #: ../src/guestfs.pod:156
31333 msgid ""
31334 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
31335 "can call L</guestfs_list_devices> to get a list of the device names, in the "
31336 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
31337 msgstr ""
31338
31339 #. type: =head2
31340 #: ../src/guestfs.pod:161
31341 msgid "MOUNTING"
31342 msgstr ""
31343
31344 #. type: textblock
31345 #: ../src/guestfs.pod:163
31346 msgid ""
31347 "Before you can read or write files, create directories and so on in a disk "
31348 "image that contains filesystems, you have to mount those filesystems using "
31349 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
31350 "a disk image contains (for example) one partition with a filesystem on that "
31351 "partition, then you can mount it directly:"
31352 msgstr ""
31353
31354 #. type: verbatim
31355 #: ../src/guestfs.pod:170
31356 #, no-wrap
31357 msgid ""
31358 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
31359 "\n"
31360 msgstr ""
31361
31362 #. type: textblock
31363 #: ../src/guestfs.pod:172
31364 msgid ""
31365 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
31366 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
31367 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
31368 "that these are libguestfs virtual devices, and are nothing to do with host "
31369 "devices."
31370 msgstr ""
31371
31372 #. type: textblock
31373 #: ../src/guestfs.pod:178
31374 msgid ""
31375 "If you are given a disk image and you don't know what it contains then you "
31376 "have to find out.  Libguestfs can do that too: use L</"
31377 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
31378 "LVs, and either try mounting each to see what is mountable, or else examine "
31379 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
31380 "filesystems, use L</guestfs_list_filesystems>."
31381 msgstr ""
31382
31383 #. type: textblock
31384 #: ../src/guestfs.pod:186
31385 msgid ""
31386 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
31387 "L</INSPECTION> below).  But you might find it easier to look at higher level "
31388 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
31389 msgstr ""
31390
31391 #. type: textblock
31392 #: ../src/guestfs.pod:191
31393 msgid ""
31394 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
31395 "several other variations of the C<guestfs_mount_*> call."
31396 msgstr ""
31397
31398 #. type: =head2
31399 #: ../src/guestfs.pod:194
31400 msgid "FILESYSTEM ACCESS AND MODIFICATION"
31401 msgstr ""
31402
31403 #. type: textblock
31404 #: ../src/guestfs.pod:196
31405 msgid ""
31406 "The majority of the libguestfs API consists of fairly low-level calls for "
31407 "accessing and modifying the files, directories, symlinks etc on mounted "
31408 "filesystems.  There are over a hundred such calls which you can find listed "
31409 "in detail below in this man page, and we don't even pretend to cover them "
31410 "all in this overview."
31411 msgstr ""
31412
31413 #. type: textblock
31414 #: ../src/guestfs.pod:202
31415 msgid ""
31416 "Specify filenames as full paths, starting with C<\"/\"> and including the "
31417 "mount point."
31418 msgstr ""
31419
31420 #. type: textblock
31421 #: ../src/guestfs.pod:205
31422 msgid ""
31423 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
31424 "the file called C<\"etc/passwd\"> then you could do:"
31425 msgstr ""
31426
31427 #. type: verbatim
31428 #: ../src/guestfs.pod:208
31429 #, no-wrap
31430 msgid ""
31431 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
31432 "\n"
31433 msgstr ""
31434
31435 #. type: textblock
31436 #: ../src/guestfs.pod:210
31437 msgid ""
31438 "This would return C<data> as a newly allocated buffer containing the full "
31439 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
31440 "or C<NULL> if there was an error."
31441 msgstr ""
31442
31443 #. type: textblock
31444 #: ../src/guestfs.pod:214
31445 msgid ""
31446 "As another example, to create a top-level directory on that filesystem "
31447 "called C<\"var\"> you would do:"
31448 msgstr ""
31449
31450 #. type: verbatim
31451 #: ../src/guestfs.pod:217
31452 #, no-wrap
31453 msgid ""
31454 " guestfs_mkdir (g, \"/var\");\n"
31455 "\n"
31456 msgstr ""
31457
31458 #. type: textblock
31459 #: ../src/guestfs.pod:219
31460 msgid "To create a symlink you could do:"
31461 msgstr ""
31462
31463 #. type: verbatim
31464 #: ../src/guestfs.pod:221
31465 #, no-wrap
31466 msgid ""
31467 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
31468 "               \"/etc/rc3.d/S30portmap\");\n"
31469 "\n"
31470 msgstr ""
31471
31472 #. type: textblock
31473 #: ../src/guestfs.pod:224
31474 msgid ""
31475 "Libguestfs will reject attempts to use relative paths and there is no "
31476 "concept of a current working directory."
31477 msgstr ""
31478
31479 #. type: textblock
31480 #: ../src/guestfs.pod:227
31481 msgid ""
31482 "Libguestfs can return errors in many situations: for example if the "
31483 "filesystem isn't writable, or if a file or directory that you requested "
31484 "doesn't exist.  If you are using the C API (documented here)  you have to "
31485 "check for those error conditions after each call.  (Other language bindings "
31486 "turn these errors into exceptions)."
31487 msgstr ""
31488
31489 #. type: textblock
31490 #: ../src/guestfs.pod:233
31491 msgid ""
31492 "File writes are affected by the per-handle umask, set by calling L</"
31493 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
31494 msgstr ""
31495
31496 #. type: =head2
31497 #: ../src/guestfs.pod:236
31498 msgid "PARTITIONING"
31499 msgstr ""
31500
31501 #. type: textblock
31502 #: ../src/guestfs.pod:238
31503 msgid ""
31504 "Libguestfs contains API calls to read, create and modify partition tables on "
31505 "disk images."
31506 msgstr ""
31507
31508 #. type: textblock
31509 #: ../src/guestfs.pod:241
31510 msgid ""
31511 "In the common case where you want to create a single partition covering the "
31512 "whole disk, you should use the L</guestfs_part_disk> call:"
31513 msgstr ""
31514
31515 #. type: verbatim
31516 #: ../src/guestfs.pod:245
31517 #, no-wrap
31518 msgid ""
31519 " const char *parttype = \"mbr\";\n"
31520 " if (disk_is_larger_than_2TB)\n"
31521 "   parttype = \"gpt\";\n"
31522 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
31523 "\n"
31524 msgstr ""
31525
31526 #. type: textblock
31527 #: ../src/guestfs.pod:250
31528 msgid ""
31529 "Obviously this effectively wipes anything that was on that disk image before."
31530 msgstr ""
31531
31532 #. type: =head2
31533 #: ../src/guestfs.pod:253
31534 msgid "LVM2"
31535 msgstr ""
31536
31537 #. type: textblock
31538 #: ../src/guestfs.pod:255
31539 msgid ""
31540 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
31541 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
31542 "you familiarize yourself with the concepts of physical volumes, volume "
31543 "groups and logical volumes."
31544 msgstr ""
31545
31546 #. type: textblock
31547 #: ../src/guestfs.pod:260
31548 msgid ""
31549 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
31550 "tldp.org/HOWTO/LVM-HOWTO/>."
31551 msgstr ""
31552
31553 #. type: =head2
31554 #: ../src/guestfs.pod:263
31555 msgid "DOWNLOADING"
31556 msgstr ""
31557
31558 #. type: textblock
31559 #: ../src/guestfs.pod:265
31560 msgid ""
31561 "Use L</guestfs_cat> to download small, text only files.  This call is "
31562 "limited to files which are less than 2 MB and which cannot contain any ASCII "
31563 "NUL (C<\\0>) characters.  However the API is very simple to use."
31564 msgstr ""
31565
31566 #. type: textblock
31567 #: ../src/guestfs.pod:269
31568 msgid ""
31569 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
31570 "bit data, since it returns a (pointer, size) pair.  However it is still "
31571 "limited to \"small\" files, less than 2 MB."
31572 msgstr ""
31573
31574 #. type: textblock
31575 #: ../src/guestfs.pod:273
31576 msgid ""
31577 "L</guestfs_download> can be used to download any file, with no limits on "
31578 "content or size (even files larger than 4 GB)."
31579 msgstr ""
31580
31581 #. type: textblock
31582 #: ../src/guestfs.pod:276
31583 msgid ""
31584 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
31585 msgstr ""
31586
31587 #. type: =head2
31588 #: ../src/guestfs.pod:279
31589 msgid "UPLOADING"
31590 msgstr ""
31591
31592 #. type: textblock
31593 #: ../src/guestfs.pod:281
31594 msgid ""
31595 "It's often the case that you want to write a file or files to the disk image."
31596 msgstr ""
31597
31598 #. type: textblock
31599 #: ../src/guestfs.pod:284
31600 msgid ""
31601 "To write a small file with fixed content, use L</guestfs_write>.  To create "
31602 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
31603 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
31604 "of other functions for creating test files, for example L</guestfs_fill> and "
31605 "L</guestfs_fill_pattern>."
31606 msgstr ""
31607
31608 #. type: textblock
31609 #: ../src/guestfs.pod:290
31610 msgid ""
31611 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
31612 "file content or size (even files larger than 4 GB)."
31613 msgstr ""
31614
31615 #. type: textblock
31616 #: ../src/guestfs.pod:293
31617 msgid ""
31618 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
31619 msgstr ""
31620
31621 #. type: textblock
31622 #: ../src/guestfs.pod:295
31623 msgid ""
31624 "However the fastest way to upload I<large numbers of arbitrary files> is to "
31625 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
31626 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
31627 "in a predictable way (eg. adding it last after all other drives) then you "
31628 "can get the device name from L</guestfs_list_devices> and mount it directly "
31629 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
31630 "portable between kernel versions, and they don't support labels or UUIDs.  "
31631 "If you want to pre-build an image or you need to mount it using a label or "
31632 "UUID, use an ISO image instead."
31633 msgstr ""
31634
31635 #. type: =head2
31636 #: ../src/guestfs.pod:306
31637 msgid "COPYING"
31638 msgstr ""
31639
31640 #. type: textblock
31641 #: ../src/guestfs.pod:308
31642 msgid ""
31643 "There are various different commands for copying between files and devices "
31644 "and in and out of the guest filesystem.  These are summarised in the table "
31645 "below."
31646 msgstr ""
31647
31648 #. type: =item
31649 #: ../src/guestfs.pod:314
31650 msgid "B<file> to B<file>"
31651 msgstr ""
31652
31653 #. type: textblock
31654 #: ../src/guestfs.pod:316
31655 msgid ""
31656 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
31657 "directories recursively."
31658 msgstr ""
31659
31660 #. type: =item
31661 #: ../src/guestfs.pod:319
31662 msgid "B<file or device> to B<file or device>"
31663 msgstr ""
31664
31665 #. type: textblock
31666 #: ../src/guestfs.pod:321
31667 msgid ""
31668 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
31669 "devices in the guest."
31670 msgstr ""
31671
31672 #. type: textblock
31673 #: ../src/guestfs.pod:324
31674 msgid "Example: duplicate the contents of an LV:"
31675 msgstr ""
31676
31677 #. type: verbatim
31678 #: ../src/guestfs.pod:326
31679 #, no-wrap
31680 msgid ""
31681 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
31682 "\n"
31683 msgstr ""
31684
31685 #. type: textblock
31686 #: ../src/guestfs.pod:328
31687 msgid ""
31688 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
31689 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
31690 "guestfs_copy_size>."
31691 msgstr ""
31692
31693 #. type: =item
31694 #: ../src/guestfs.pod:332
31695 msgid "B<file on the host> to B<file or device>"
31696 msgstr ""
31697
31698 #. type: textblock
31699 #: ../src/guestfs.pod:334
31700 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
31701 msgstr ""
31702
31703 #. type: =item
31704 #: ../src/guestfs.pod:336
31705 msgid "B<file or device> to B<file on the host>"
31706 msgstr ""
31707
31708 #. type: textblock
31709 #: ../src/guestfs.pod:338
31710 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
31711 msgstr ""
31712
31713 #. type: =head2
31714 #: ../src/guestfs.pod:342
31715 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
31716 msgstr ""
31717
31718 #. type: textblock
31719 #: ../src/guestfs.pod:344
31720 msgid ""
31721 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
31722 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
31723 "appears you can only upload and download to files.  However many Un*x-like "
31724 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
31725 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
31726 "and arbitrary file descriptor N."
31727 msgstr ""
31728
31729 #. type: textblock
31730 #: ../src/guestfs.pod:352
31731 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
31732 msgstr ""
31733
31734 #. type: verbatim
31735 #: ../src/guestfs.pod:355
31736 #, no-wrap
31737 msgid ""
31738 " guestfs_download (g, filename, \"/dev/stdout\");\n"
31739 "\n"
31740 msgstr ""
31741
31742 #. type: textblock
31743 #: ../src/guestfs.pod:357
31744 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
31745 msgstr ""
31746
31747 #. type: verbatim
31748 #: ../src/guestfs.pod:359
31749 #, no-wrap
31750 msgid ""
31751 " char devfd[64];\n"
31752 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
31753 " guestfs_tar_out (g, \"/\", devfd);\n"
31754 "\n"
31755 msgstr ""
31756
31757 #. type: =head2
31758 #: ../src/guestfs.pod:363
31759 msgid "LISTING FILES"
31760 msgstr ""
31761
31762 #. type: textblock
31763 #: ../src/guestfs.pod:365
31764 msgid ""
31765 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
31766 "L<guestfish(1)>-equivalent command C<ll>)."
31767 msgstr ""
31768
31769 #. type: textblock
31770 #: ../src/guestfs.pod:368
31771 msgid ""
31772 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
31773 "programs, as a flat list of strings."
31774 msgstr ""
31775
31776 #. type: textblock
31777 #: ../src/guestfs.pod:371
31778 msgid ""
31779 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
31780 "directory, plus additional information about each one.  It is more "
31781 "equivalent to using the L<readdir(3)> call on a local filesystem."
31782 msgstr ""
31783
31784 #. type: textblock
31785 #: ../src/guestfs.pod:375
31786 msgid ""
31787 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
31788 msgstr ""
31789
31790 #. type: =head2
31791 #: ../src/guestfs.pod:378
31792 msgid "RUNNING COMMANDS"
31793 msgstr ""
31794
31795 #. type: textblock
31796 #: ../src/guestfs.pod:380
31797 msgid ""
31798 "Although libguestfs is primarily an API for manipulating files inside guest "
31799 "images, we also provide some limited facilities for running commands inside "
31800 "guests."
31801 msgstr ""
31802
31803 #. type: textblock
31804 #: ../src/guestfs.pod:384
31805 msgid "There are many limitations to this:"
31806 msgstr ""
31807
31808 #. type: textblock
31809 #: ../src/guestfs.pod:390
31810 msgid ""
31811 "The kernel version that the command runs under will be different from what "
31812 "it expects."
31813 msgstr ""
31814
31815 #. type: textblock
31816 #: ../src/guestfs.pod:395
31817 msgid ""
31818 "If the command needs to communicate with daemons, then most likely they "
31819 "won't be running."
31820 msgstr ""
31821
31822 #. type: textblock
31823 #: ../src/guestfs.pod:400
31824 msgid "The command will be running in limited memory."
31825 msgstr ""
31826
31827 #. type: textblock
31828 #: ../src/guestfs.pod:404
31829 msgid ""
31830 "The network may not be available unless you enable it (see L</"
31831 "guestfs_set_network>)."
31832 msgstr ""
31833
31834 #. type: textblock
31835 #: ../src/guestfs.pod:409
31836 msgid "Only supports Linux guests (not Windows, BSD, etc)."
31837 msgstr ""
31838
31839 #. type: textblock
31840 #: ../src/guestfs.pod:413
31841 msgid ""
31842 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
31843 msgstr ""
31844
31845 #. type: textblock
31846 #: ../src/guestfs.pod:418
31847 msgid ""
31848 "For SELinux guests, you may need to enable SELinux and load policy first.  "
31849 "See L</SELINUX> in this manpage."
31850 msgstr ""
31851
31852 #. type: textblock
31853 #: ../src/guestfs.pod:423
31854 msgid ""
31855 "I<Security:> It is not safe to run commands from untrusted, possibly "
31856 "malicious guests.  These commands may attempt to exploit your program by "
31857 "sending unexpected output.  They could also try to exploit the Linux kernel "
31858 "or qemu provided by the libguestfs appliance.  They could use the network "
31859 "provided by the libguestfs appliance to bypass ordinary network partitions "
31860 "and firewalls.  They could use the elevated privileges or different SELinux "
31861 "context of your program to their advantage."
31862 msgstr ""
31863
31864 #. type: textblock
31865 #: ../src/guestfs.pod:432
31866 msgid ""
31867 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
31868 "(a script which runs when the guest next boots normally), and to have this "
31869 "script run the commands you want in the normal context of the running guest, "
31870 "network security and so on.  For information about other security issues, "
31871 "see L</SECURITY>."
31872 msgstr ""
31873
31874 #. type: textblock
31875 #: ../src/guestfs.pod:440
31876 msgid ""
31877 "The two main API calls to run commands are L</guestfs_command> and L</"
31878 "guestfs_sh> (there are also variations)."
31879 msgstr ""
31880
31881 #. type: textblock
31882 #: ../src/guestfs.pod:443
31883 msgid ""
31884 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
31885 "shell globs, redirections, etc will work."
31886 msgstr ""
31887
31888 #. type: =head2
31889 #: ../src/guestfs.pod:446
31890 msgid "CONFIGURATION FILES"
31891 msgstr ""
31892
31893 #. type: textblock
31894 #: ../src/guestfs.pod:448
31895 msgid ""
31896 "To read and write configuration files in Linux guest filesystems, we "
31897 "strongly recommend using Augeas.  For example, Augeas understands how to "
31898 "read and write, say, a Linux shadow password file or X.org configuration "
31899 "file, and so avoids you having to write that code."
31900 msgstr ""
31901
31902 #. type: textblock
31903 #: ../src/guestfs.pod:453
31904 msgid ""
31905 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
31906 "document Augeas itself here because there is excellent documentation on the "
31907 "L<http://augeas.net/> website."
31908 msgstr ""
31909
31910 #. type: textblock
31911 #: ../src/guestfs.pod:457
31912 msgid ""
31913 "If you don't want to use Augeas (you fool!) then try calling L</"
31914 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
31915 "over."
31916 msgstr ""
31917
31918 #. type: =head2
31919 #: ../src/guestfs.pod:461
31920 msgid "SELINUX"
31921 msgstr ""
31922
31923 #. type: textblock
31924 #: ../src/guestfs.pod:463
31925 msgid ""
31926 "We support SELinux guests.  To ensure that labeling happens correctly in "
31927 "SELinux guests, you need to enable SELinux and load the guest's policy:"
31928 msgstr ""
31929
31930 #. type: textblock
31931 #: ../src/guestfs.pod:471
31932 msgid "Before launching, do:"
31933 msgstr ""
31934
31935 #. type: verbatim
31936 #: ../src/guestfs.pod:473
31937 #, no-wrap
31938 msgid ""
31939 " guestfs_set_selinux (g, 1);\n"
31940 "\n"
31941 msgstr ""
31942
31943 #. type: textblock
31944 #: ../src/guestfs.pod:477
31945 msgid ""
31946 "After mounting the guest's filesystem(s), load the policy.  This is best "
31947 "done by running the L<load_policy(8)> command in the guest itself:"
31948 msgstr ""
31949
31950 #. type: verbatim
31951 #: ../src/guestfs.pod:481
31952 #, no-wrap
31953 msgid ""
31954 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
31955 "\n"
31956 msgstr ""
31957
31958 #. type: textblock
31959 #: ../src/guestfs.pod:483
31960 msgid ""
31961 "(Older versions of C<load_policy> require you to specify the name of the "
31962 "policy file)."
31963 msgstr ""
31964
31965 #. type: textblock
31966 #: ../src/guestfs.pod:488
31967 msgid ""
31968 "Optionally, set the security context for the API.  The correct security "
31969 "context to use can only be known by inspecting the guest.  As an example:"
31970 msgstr ""
31971
31972 #. type: verbatim
31973 #: ../src/guestfs.pod:492
31974 #, no-wrap
31975 msgid ""
31976 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
31977 "\n"
31978 msgstr ""
31979
31980 #. type: textblock
31981 #: ../src/guestfs.pod:496
31982 msgid "This will work for running commands and editing existing files."
31983 msgstr ""
31984
31985 #. type: textblock
31986 #: ../src/guestfs.pod:498
31987 msgid ""
31988 "When new files are created, you may need to label them explicitly, for "
31989 "example by running the external command C<restorecon pathname>."
31990 msgstr ""
31991
31992 #. type: =head2
31993 #: ../src/guestfs.pod:502
31994 msgid "UMASK"
31995 msgstr ""
31996
31997 #. type: textblock
31998 #: ../src/guestfs.pod:504
31999 msgid ""
32000 "Certain calls are affected by the current file mode creation mask (the "
32001 "\"umask\").  In particular ones which create files or directories, such as "
32002 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
32003 "either the default mode that the file is created with or modifies the mode "
32004 "that you supply."
32005 msgstr ""
32006
32007 #. type: textblock
32008 #: ../src/guestfs.pod:510
32009 msgid ""
32010 "The default umask is C<022>, so files are created with modes such as C<0644> "
32011 "and directories with C<0755>."
32012 msgstr ""
32013
32014 #. type: textblock
32015 #: ../src/guestfs.pod:513
32016 msgid ""
32017 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
32018 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
32019 "guestfs_chmod> after creating each file or directory."
32020 msgstr ""
32021
32022 #. type: textblock
32023 #: ../src/guestfs.pod:517
32024 msgid "For more information about umask, see L<umask(2)>."
32025 msgstr ""
32026
32027 #. type: textblock
32028 #: ../src/guestfs.pod:521
32029 msgid ""
32030 "Libguestfs allows you to access Linux guests which have been encrypted using "
32031 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
32032 "standard.  This includes nearly all whole disk encryption systems used by "
32033 "modern Linux guests."
32034 msgstr ""
32035
32036 #. type: textblock
32037 #: ../src/guestfs.pod:527
32038 msgid ""
32039 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
32040 "returns the string C<crypto_LUKS>)."
32041 msgstr ""
32042
32043 #. type: textblock
32044 #: ../src/guestfs.pod:530
32045 msgid ""
32046 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
32047 "will require the passphrase!"
32048 msgstr ""
32049
32050 #. type: textblock
32051 #: ../src/guestfs.pod:533
32052 msgid ""
32053 "Opening a LUKS device creates a new device mapper device called C</dev/"
32054 "mapper/mapname> (where C<mapname> is the string you supply to L</"
32055 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
32056 "from and encrypted to the underlying block device respectively."
32057 msgstr ""
32058
32059 #. type: textblock
32060 #: ../src/guestfs.pod:539
32061 msgid ""
32062 "LVM volume groups on the device can be made visible by calling L</"
32063 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
32064 "(s) can now be mounted in the usual way."
32065 msgstr ""
32066
32067 #. type: textblock
32068 #: ../src/guestfs.pod:543
32069 msgid ""
32070 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
32071 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
32072 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
32073 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
32074 "underlying encrypted block device)."
32075 msgstr ""
32076
32077 #. type: =head2
32078 #: ../src/guestfs.pod:550
32079 msgid "INSPECTION"
32080 msgstr ""
32081
32082 #. type: textblock
32083 #: ../src/guestfs.pod:552
32084 msgid ""
32085 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
32086 "contains operating systems, an install CD or a live CD.  (These APIs used to "
32087 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
32088 "version 1.5.3 the most frequently used part of this library has been "
32089 "rewritten in C and moved into the core code)."
32090 msgstr ""
32091
32092 #. type: textblock
32093 #: ../src/guestfs.pod:559
32094 msgid ""
32095 "Add all disks belonging to the unknown virtual machine and call L</"
32096 "guestfs_launch> in the usual way."
32097 msgstr ""
32098
32099 #. type: textblock
32100 #: ../src/guestfs.pod:562
32101 msgid ""
32102 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
32103 "and certain heuristics, and returns a list of operating systems that were "
32104 "found.  An empty list means none were found.  A single element is the root "
32105 "filesystem of the operating system.  For dual- or multi-boot guests, "
32106 "multiple roots can be returned, each one corresponding to a separate "
32107 "operating system.  (Multi-boot virtual machines are extremely rare in the "
32108 "world of virtualization, but since this scenario can happen, we have built "
32109 "libguestfs to deal with it.)"
32110 msgstr ""
32111
32112 #. type: textblock
32113 #: ../src/guestfs.pod:571
32114 msgid ""
32115 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
32116 "to get additional details about that operating system.  For example, call L</"
32117 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
32118 "Windows and Linux-based operating systems respectively."
32119 msgstr ""
32120
32121 #. type: textblock
32122 #: ../src/guestfs.pod:577
32123 msgid ""
32124 "Un*x-like and Linux-based operating systems usually consist of several "
32125 "filesystems which are mounted at boot time (for example, a separate boot "
32126 "partition mounted on C</boot>).  The inspection rules are able to detect how "
32127 "filesystems correspond to mount points.  Call "
32128 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
32129 "hash table like this example:"
32130 msgstr ""
32131
32132 #. type: verbatim
32133 #: ../src/guestfs.pod:584
32134 #, no-wrap
32135 msgid ""
32136 " /boot => /dev/sda1\n"
32137 " /     => /dev/vg_guest/lv_root\n"
32138 " /usr  => /dev/vg_guest/lv_usr\n"
32139 "\n"
32140 msgstr ""
32141
32142 #. type: textblock
32143 #: ../src/guestfs.pod:588
32144 msgid ""
32145 "The caller can then make calls to L</guestfs_mount_options> to mount the "
32146 "filesystems as suggested."
32147 msgstr ""
32148
32149 #. type: textblock
32150 #: ../src/guestfs.pod:591
32151 msgid ""
32152 "Be careful to mount filesystems in the right order (eg. C</> before C</"
32153 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
32154 msgstr ""
32155
32156 #. type: textblock
32157 #: ../src/guestfs.pod:595
32158 msgid ""
32159 "Inspection currently only works for some common operating systems.  "
32160 "Contributors are welcome to send patches for other operating systems that we "
32161 "currently cannot detect."
32162 msgstr ""
32163
32164 #. type: textblock
32165 #: ../src/guestfs.pod:599
32166 msgid ""
32167 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
32168 "for more details.  The L</guestfs_inspect_os> function just ignores any "
32169 "encrypted devices."
32170 msgstr ""
32171
32172 #. type: textblock
32173 #: ../src/guestfs.pod:603
32174 msgid ""
32175 "A note on the implementation: The call L</guestfs_inspect_os> performs "
32176 "inspection and caches the results in the guest handle.  Subsequent calls to "
32177 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
32178 "read the disks.  If you change the content of the guest disks, you can redo "
32179 "inspection by calling L</guestfs_inspect_os> again.  (L</"
32180 "guestfs_inspect_list_applications> works a little differently from the other "
32181 "calls and does read the disks.  See documentation for that function for "
32182 "details)."
32183 msgstr ""
32184
32185 #. type: =head3
32186 #: ../src/guestfs.pod:612
32187 msgid "INSPECTING INSTALL DISKS"
32188 msgstr ""
32189
32190 #. type: textblock
32191 #: ../src/guestfs.pod:614
32192 msgid ""
32193 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
32194 "CDs and more."
32195 msgstr ""
32196
32197 #. type: textblock
32198 #: ../src/guestfs.pod:617
32199 msgid ""
32200 "Call L</guestfs_inspect_get_format> to return the format of the operating "
32201 "system, which currently can be C<installed> (a regular operating system) or "
32202 "C<installer> (some sort of install disk)."
32203 msgstr ""
32204
32205 #. type: textblock
32206 #: ../src/guestfs.pod:621
32207 msgid ""
32208 "Further information is available about the operating system that can be "
32209 "installed using the regular inspection APIs like L</"
32210 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
32211 msgstr ""
32212
32213 #. type: textblock
32214 #: ../src/guestfs.pod:626
32215 msgid ""
32216 "Some additional information specific to installer disks is also available "
32217 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
32218 "guestfs_inspect_is_multipart> calls."
32219 msgstr ""
32220
32221 #. type: =head2
32222 #: ../src/guestfs.pod:631
32223 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
32224 msgstr ""
32225
32226 #. type: textblock
32227 #: ../src/guestfs.pod:633
32228 msgid ""
32229 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
32230 "ntfs-3g.org/> driver."
32231 msgstr ""
32232
32233 #. type: =head3
32234 #: ../src/guestfs.pod:636
32235 msgid "DRIVE LETTERS AND PATHS"
32236 msgstr ""
32237
32238 #. type: textblock
32239 #: ../src/guestfs.pod:638
32240 msgid ""
32241 "DOS and Windows still use drive letters, and the filesystems are always "
32242 "treated as case insensitive by Windows itself, and therefore you might find "
32243 "a Windows configuration file referring to a path like C<c:\\windows"
32244 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
32245 "might be referred to as C</WINDOWS/System32>."
32246 msgstr ""
32247
32248 #. type: textblock
32249 #: ../src/guestfs.pod:644
32250 msgid ""
32251 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
32252 "L</guestfs_inspect_get_drive_mappings>)"
32253 msgstr ""
32254
32255 #. type: textblock
32256 #: ../src/guestfs.pod:647
32257 msgid ""
32258 "Dealing with separator characters (backslash vs forward slash) is outside "
32259 "the scope of libguestfs, but usually a simple character replacement will "
32260 "work."
32261 msgstr ""
32262
32263 #. type: textblock
32264 #: ../src/guestfs.pod:651
32265 msgid ""
32266 "To resolve the case insensitivity of paths, call L</"
32267 "guestfs_case_sensitive_path>."
32268 msgstr ""
32269
32270 #. type: =head3
32271 #: ../src/guestfs.pod:654
32272 msgid "ACCESSING THE WINDOWS REGISTRY"
32273 msgstr ""
32274
32275 #. type: textblock
32276 #: ../src/guestfs.pod:656
32277 msgid ""
32278 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
32279 "files, through the library C<hivex> which is part of the libguestfs project "
32280 "although ships as a separate tarball.  You have to locate and download the "
32281 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
32282 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
32283 "reg(1)> for more help on this issue."
32284 msgstr ""
32285
32286 #. type: =head3
32287 #: ../src/guestfs.pod:664
32288 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
32289 msgstr ""
32290
32291 #. type: textblock
32292 #: ../src/guestfs.pod:666
32293 msgid ""
32294 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
32295 "provide something which looks like a Linux symlink.  The way it tries to do "
32296 "the rewriting is described here:"
32297 msgstr ""
32298
32299 #. type: textblock
32300 #: ../src/guestfs.pod:670
32301 msgid ""
32302 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
32303 "symbolic-links/>"
32304 msgstr ""
32305
32306 #. type: textblock
32307 #: ../src/guestfs.pod:672
32308 msgid ""
32309 "The essential problem is that ntfs-3g simply does not have enough "
32310 "information to do a correct job.  NTFS links can contain drive letters and "
32311 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
32312 "It is almost certainly the case that libguestfs callers should ignore what "
32313 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
32314 msgstr ""
32315
32316 #. type: textblock
32317 #: ../src/guestfs.pod:679
32318 msgid ""
32319 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
32320 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
32321 "attribute, and read the raw reparse data from that (you can find the format "
32322 "documented in various places around the web)."
32323 msgstr ""
32324
32325 #. type: =head3
32326 #: ../src/guestfs.pod:684
32327 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
32328 msgstr ""
32329
32330 #. type: textblock
32331 #: ../src/guestfs.pod:686
32332 msgid ""
32333 "There are other useful extended attributes that can be read from ntfs-3g "
32334 "filesystems (using L</guestfs_getxattr>).  See:"
32335 msgstr ""
32336
32337 #. type: textblock
32338 #: ../src/guestfs.pod:689
32339 msgid ""
32340 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
32341 msgstr ""
32342
32343 #. type: =head2
32344 #: ../src/guestfs.pod:691
32345 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
32346 msgstr ""
32347
32348 #. type: textblock
32349 #: ../src/guestfs.pod:693
32350 msgid ""
32351 "Although we don't want to discourage you from using the C API, we will "
32352 "mention here that the same API is also available in other languages."
32353 msgstr ""
32354
32355 #. type: textblock
32356 #: ../src/guestfs.pod:696
32357 msgid ""
32358 "The API is broadly identical in all supported languages.  This means that "
32359 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
32360 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
32361 "OCaml.  In other words, a straightforward, predictable isomorphism between "
32362 "each language."
32363 msgstr ""
32364
32365 #. type: textblock
32366 #: ../src/guestfs.pod:702
32367 msgid ""
32368 "Error messages are automatically transformed into exceptions if the language "
32369 "supports it."
32370 msgstr ""
32371
32372 #. type: textblock
32373 #: ../src/guestfs.pod:705
32374 msgid ""
32375 "We don't try to \"object orientify\" parts of the API in OO languages, "
32376 "although contributors are welcome to write higher level APIs above what we "
32377 "provide in their favourite languages if they wish."
32378 msgstr ""
32379
32380 #. type: =item
32381 #: ../src/guestfs.pod:711
32382 msgid "B<C++>"
32383 msgstr ""
32384
32385 #. type: textblock
32386 #: ../src/guestfs.pod:713
32387 msgid ""
32388 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
32389 "identical to the C API.  C++ classes and exceptions are not used."
32390 msgstr ""
32391
32392 #. type: =item
32393 #: ../src/guestfs.pod:717
32394 msgid "B<C#>"
32395 msgstr ""
32396
32397 #. type: textblock
32398 #: ../src/guestfs.pod:719
32399 msgid ""
32400 "The C# bindings are highly experimental.  Please read the warnings at the "
32401 "top of C<csharp/Libguestfs.cs>."
32402 msgstr ""
32403
32404 #. type: =item
32405 #: ../src/guestfs.pod:722
32406 msgid "B<Haskell>"
32407 msgstr ""
32408
32409 #. type: textblock
32410 #: ../src/guestfs.pod:724
32411 msgid ""
32412 "This is the only language binding that is working but incomplete.  Only "
32413 "calls which return simple integers have been bound in Haskell, and we are "
32414 "looking for help to complete this binding."
32415 msgstr ""
32416
32417 #. type: =item
32418 #: ../src/guestfs.pod:728
32419 msgid "B<Java>"
32420 msgstr ""
32421
32422 #. type: textblock
32423 #: ../src/guestfs.pod:730
32424 msgid ""
32425 "Full documentation is contained in the Javadoc which is distributed with "
32426 "libguestfs.  For examples, see L<guestfs-java(3)>."
32427 msgstr ""
32428
32429 #. type: =item
32430 #: ../src/guestfs.pod:733
32431 msgid "B<OCaml>"
32432 msgstr ""
32433
32434 #. type: textblock
32435 #: ../src/guestfs.pod:735
32436 msgid "See L<guestfs-ocaml(3)>."
32437 msgstr ""
32438
32439 #. type: =item
32440 #: ../src/guestfs.pod:737
32441 msgid "B<Perl>"
32442 msgstr ""
32443
32444 #. type: textblock
32445 #: ../src/guestfs.pod:739
32446 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
32447 msgstr ""
32448
32449 #. type: =item
32450 #: ../src/guestfs.pod:741
32451 msgid "B<PHP>"
32452 msgstr ""
32453
32454 #. type: textblock
32455 #: ../src/guestfs.pod:743
32456 msgid ""
32457 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
32458 "the php-libguestfs package for your distribution."
32459 msgstr ""
32460
32461 #. type: textblock
32462 #: ../src/guestfs.pod:746
32463 msgid "The PHP binding only works correctly on 64 bit machines."
32464 msgstr ""
32465
32466 #. type: =item
32467 #: ../src/guestfs.pod:748
32468 msgid "B<Python>"
32469 msgstr ""
32470
32471 #. type: textblock
32472 #: ../src/guestfs.pod:750
32473 msgid "See L<guestfs-python(3)>."
32474 msgstr ""
32475
32476 #. type: =item
32477 #: ../src/guestfs.pod:752
32478 msgid "B<Ruby>"
32479 msgstr ""
32480
32481 #. type: textblock
32482 #: ../src/guestfs.pod:754
32483 msgid "See L<guestfs-ruby(3)>."
32484 msgstr ""
32485
32486 #. type: =item
32487 #: ../src/guestfs.pod:756
32488 msgid "B<shell scripts>"
32489 msgstr ""
32490
32491 #. type: textblock
32492 #: ../src/guestfs.pod:758
32493 msgid "See L<guestfish(1)>."
32494 msgstr ""
32495
32496 #. type: =head2
32497 #: ../src/guestfs.pod:762
32498 msgid "LIBGUESTFS GOTCHAS"
32499 msgstr ""
32500
32501 #. type: textblock
32502 #: ../src/guestfs.pod:764
32503 msgid ""
32504 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
32505 "system [...] that works in the way it is documented but is counterintuitive "
32506 "and almost invites mistakes.\""
32507 msgstr ""
32508
32509 #. type: textblock
32510 #: ../src/guestfs.pod:768
32511 msgid ""
32512 "Since we developed libguestfs and the associated tools, there are several "
32513 "things we would have designed differently, but are now stuck with for "
32514 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
32515 "release, you can expect these to change.  Beware of them."
32516 msgstr ""
32517
32518 #. type: =item
32519 #: ../src/guestfs.pod:776
32520 msgid "Autosync / forgetting to sync."
32521 msgstr ""
32522
32523 #. type: textblock
32524 #: ../src/guestfs.pod:778
32525 msgid ""
32526 "I<Update:> Autosync is enabled by default for all API users starting from "
32527 "libguestfs 1.5.24.  This section only applies to older versions."
32528 msgstr ""
32529
32530 #. type: textblock
32531 #: ../src/guestfs.pod:781
32532 msgid ""
32533 "When modifying a filesystem from C or another language, you B<must> unmount "
32534 "all filesystems and call L</guestfs_sync> explicitly before you close the "
32535 "libguestfs handle.  You can also call:"
32536 msgstr ""
32537
32538 #. type: verbatim
32539 #: ../src/guestfs.pod:785
32540 #, no-wrap
32541 msgid ""
32542 " guestfs_set_autosync (g, 1);\n"
32543 "\n"
32544 msgstr ""
32545
32546 #. type: textblock
32547 #: ../src/guestfs.pod:787
32548 msgid ""
32549 "to have the unmount/sync done automatically for you when the handle 'g' is "
32550 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
32551 msgstr ""
32552
32553 #. type: textblock
32554 #: ../src/guestfs.pod:791
32555 msgid ""
32556 "If you forget to do this, then it is entirely possible that your changes "
32557 "won't be written out, or will be partially written, or (very rarely) that "
32558 "you'll get disk corruption."
32559 msgstr ""
32560
32561 #. type: textblock
32562 #: ../src/guestfs.pod:795
32563 msgid ""
32564 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
32565 "guestfish scripts that forget to sync will work just fine, which can make "
32566 "this very puzzling if you are trying to debug a problem."
32567 msgstr ""
32568
32569 #. type: =item
32570 #: ../src/guestfs.pod:799
32571 msgid "Mount option C<-o sync> should not be the default."
32572 msgstr ""
32573
32574 #. type: textblock
32575 #: ../src/guestfs.pod:801
32576 msgid ""
32577 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
32578 "However C<-o sync> does not add any reliability benefit, but does have a "
32579 "very large performance impact."
32580 msgstr ""
32581
32582 #. type: textblock
32583 #: ../src/guestfs.pod:805
32584 msgid ""
32585 "The work around is to use L</guestfs_mount_options> and set the mount "
32586 "options that you actually want to use."
32587 msgstr ""
32588
32589 #. type: =item
32590 #: ../src/guestfs.pod:808
32591 msgid "Read-only should be the default."
32592 msgstr ""
32593
32594 #. type: textblock
32595 #: ../src/guestfs.pod:810
32596 msgid ""
32597 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
32598 "specify I<--rw> if you want to make changes to the image."
32599 msgstr ""
32600
32601 #. type: textblock
32602 #: ../src/guestfs.pod:813
32603 msgid "This would reduce the potential to corrupt live VM images."
32604 msgstr ""
32605
32606 #. type: textblock
32607 #: ../src/guestfs.pod:815
32608 msgid ""
32609 "Note that many filesystems change the disk when you just mount and unmount, "
32610 "even if you didn't perform any writes.  You need to use L</"
32611 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
32612 msgstr ""
32613
32614 #. type: =item
32615 #: ../src/guestfs.pod:819
32616 msgid "guestfish command line is hard to use."
32617 msgstr ""
32618
32619 #. type: textblock
32620 #: ../src/guestfs.pod:821
32621 msgid ""
32622 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
32623 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
32624 "exist, so it fails.  In earlier versions of guestfish the error message was "
32625 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
32626 "we should have used C<guestfish -c command> to run commands."
32627 msgstr ""
32628
32629 #. type: =item
32630 #: ../src/guestfs.pod:828
32631 msgid "guestfish megabyte modifiers don't work right on all commands"
32632 msgstr ""
32633
32634 #. type: textblock
32635 #: ../src/guestfs.pod:830
32636 msgid ""
32637 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
32638 "other modifiers).  What guestfish actually does is to multiply the number "
32639 "part by the modifier part and pass the result to the C API.  However this "
32640 "doesn't work for a few APIs which aren't expecting bytes, but are already "
32641 "expecting some other unit (eg. megabytes)."
32642 msgstr ""
32643
32644 #. type: textblock
32645 #: ../src/guestfs.pod:837
32646 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
32647 msgstr ""
32648
32649 #. type: verbatim
32650 #: ../src/guestfs.pod:839
32651 #, no-wrap
32652 msgid ""
32653 " lvcreate LV VG 100M\n"
32654 "\n"
32655 msgstr ""
32656
32657 #. type: textblock
32658 #: ../src/guestfs.pod:841
32659 msgid ""
32660 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
32661 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
32662 "megabytes * megabytes) logical volume.  The error message you get from this "
32663 "is also a little obscure."
32664 msgstr ""
32665
32666 #. type: textblock
32667 #: ../src/guestfs.pod:846
32668 msgid ""
32669 "This could be fixed in the generator by specially marking parameters and "
32670 "return values which take bytes or other units."
32671 msgstr ""
32672
32673 #. type: =item
32674 #: ../src/guestfs.pod:849
32675 msgid "Ambiguity between devices and paths"
32676 msgstr ""
32677
32678 #. type: textblock
32679 #: ../src/guestfs.pod:851
32680 msgid ""
32681 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
32682 "sdb2>) and a similar pathname.  A file might just happen to be called "
32683 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
32684 msgstr ""
32685
32686 #. type: textblock
32687 #: ../src/guestfs.pod:856
32688 msgid ""
32689 "In the current API we usually resolve this ambiguity by having two separate "
32690 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
32691 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
32692 "detecting if the path supplied begins with C</dev/>."
32693 msgstr ""
32694
32695 #. type: textblock
32696 #: ../src/guestfs.pod:862
32697 msgid ""
32698 "To avoid both the ambiguity and the need to duplicate some calls, we could "
32699 "make paths/devices into structured names.  One way to do this would be to "
32700 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
32701 "aspect of grub.  Another way would be to use a structured type, equivalent "
32702 "to this OCaml type:"
32703 msgstr ""
32704
32705 #. type: verbatim
32706 #: ../src/guestfs.pod:868
32707 #, no-wrap
32708 msgid ""
32709 " type path = Path of string | Device of int | Partition of int * int\n"
32710 "\n"
32711 msgstr ""
32712
32713 #. type: textblock
32714 #: ../src/guestfs.pod:870
32715 msgid "which would allow you to pass arguments like:"
32716 msgstr ""
32717
32718 #. type: verbatim
32719 #: ../src/guestfs.pod:872
32720 #, no-wrap
32721 msgid ""
32722 " Path \"/foo/bar\"\n"
32723 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
32724 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
32725 " Path \"/dev/sdb2\"    (* not a device *)\n"
32726 "\n"
32727 msgstr ""
32728
32729 #. type: textblock
32730 #: ../src/guestfs.pod:877
32731 msgid ""
32732 "As you can see there are still problems to resolve even with this "
32733 "representation.  Also consider how it might work in guestfish."
32734 msgstr ""
32735
32736 #. type: =head2
32737 #: ../src/guestfs.pod:882
32738 msgid "KEYS AND PASSPHRASES"
32739 msgstr ""
32740
32741 #. type: textblock
32742 #: ../src/guestfs.pod:884
32743 msgid ""
32744 "Certain libguestfs calls take a parameter that contains sensitive key "
32745 "material, passed in as a C string."
32746 msgstr ""
32747
32748 #. type: textblock
32749 #: ../src/guestfs.pod:887
32750 msgid ""
32751 "In the future we would hope to change the libguestfs implementation so that "
32752 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
32753 "swap.  However this is I<not> done at the moment, because of the complexity "
32754 "of such an implementation."
32755 msgstr ""
32756
32757 #. type: textblock
32758 #: ../src/guestfs.pod:892
32759 msgid ""
32760 "Therefore you should be aware that any key parameter you pass to libguestfs "
32761 "might end up being written out to the swap partition.  If this is a concern, "
32762 "scrub the swap partition or don't use libguestfs on encrypted devices."
32763 msgstr ""
32764
32765 #. type: =head2
32766 #: ../src/guestfs.pod:897
32767 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
32768 msgstr ""
32769
32770 #. type: textblock
32771 #: ../src/guestfs.pod:899
32772 msgid ""
32773 "All high-level libguestfs actions are synchronous.  If you want to use "
32774 "libguestfs asynchronously then you must create a thread."
32775 msgstr ""
32776
32777 #. type: textblock
32778 #: ../src/guestfs.pod:902
32779 msgid ""
32780 "Only use the handle from a single thread.  Either use the handle exclusively "
32781 "from one thread, or provide your own mutex so that two threads cannot issue "
32782 "calls on the same handle at the same time."
32783 msgstr ""
32784
32785 #. type: textblock
32786 #: ../src/guestfs.pod:906
32787 msgid ""
32788 "See the graphical program guestfs-browser for one possible architecture for "
32789 "multithreaded programs using libvirt and libguestfs."
32790 msgstr ""
32791
32792 #. type: =head2
32793 #: ../src/guestfs.pod:909
32794 msgid "PATH"
32795 msgstr ""
32796
32797 #. type: textblock
32798 #: ../src/guestfs.pod:911
32799 msgid ""
32800 "Libguestfs needs a supermin appliance, which it finds by looking along an "
32801 "internal path."
32802 msgstr ""
32803
32804 #. type: textblock
32805 #: ../src/guestfs.pod:914
32806 msgid ""
32807 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
32808 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
32809 msgstr ""
32810
32811 #. type: textblock
32812 #: ../src/guestfs.pod:917
32813 msgid ""
32814 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
32815 "to change the directories that libguestfs will search in.  The value is a "
32816 "colon-separated list of paths.  The current directory is I<not> searched "
32817 "unless the path contains an empty element or C<.>.  For example "
32818 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
32819 "then C</usr/lib/guestfs>."
32820 msgstr ""
32821
32822 #. type: =head2
32823 #: ../src/guestfs.pod:924
32824 msgid "QEMU WRAPPERS"
32825 msgstr ""
32826
32827 #. type: textblock
32828 #: ../src/guestfs.pod:926
32829 msgid ""
32830 "If you want to compile your own qemu, run qemu from a non-standard location, "
32831 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
32832 "around qemu."
32833 msgstr ""
32834
32835 #. type: textblock
32836 #: ../src/guestfs.pod:930
32837 msgid ""
32838 "There is one important rule to remember: you I<must C<exec qemu>> as the "
32839 "last command in the shell script (so that qemu replaces the shell and "
32840 "becomes the direct child of the libguestfs-using program).  If you don't do "
32841 "this, then the qemu process won't be cleaned up correctly."
32842 msgstr ""
32843
32844 #. type: textblock
32845 #: ../src/guestfs.pod:935
32846 msgid ""
32847 "Here is an example of a wrapper, where I have built my own copy of qemu from "
32848 "source:"
32849 msgstr ""
32850
32851 #. type: verbatim
32852 #: ../src/guestfs.pod:938
32853 #, no-wrap
32854 msgid ""
32855 " #!/bin/sh -\n"
32856 " qemudir=/home/rjones/d/qemu\n"
32857 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
32858 "\n"
32859 msgstr ""
32860
32861 #. type: textblock
32862 #: ../src/guestfs.pod:942
32863 msgid ""
32864 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
32865 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
32866 "example:"
32867 msgstr ""
32868
32869 #. type: verbatim
32870 #: ../src/guestfs.pod:946
32871 #, no-wrap
32872 msgid ""
32873 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
32874 "\n"
32875 msgstr ""
32876
32877 #. type: textblock
32878 #: ../src/guestfs.pod:948
32879 msgid ""
32880 "Note that libguestfs also calls qemu with the -help and -version options in "
32881 "order to determine features."
32882 msgstr ""
32883
32884 #. type: =head2
32885 #: ../src/guestfs.pod:951
32886 msgid "ATTACHING TO RUNNING DAEMONS"
32887 msgstr ""
32888
32889 #. type: textblock
32890 #: ../src/guestfs.pod:953
32891 msgid ""
32892 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
32893 "babies.  Use with caution."
32894 msgstr ""
32895
32896 #. type: textblock
32897 #: ../src/guestfs.pod:956
32898 msgid ""
32899 "I<Note (2):> This section explains how to attach to a running daemon from a "
32900 "low level perspective.  For most users, simply using virt tools such as "
32901 "L<guestfish(1)> with the I<--live> option will \"just work\"."
32902 msgstr ""
32903
32904 #. type: =head3
32905 #: ../src/guestfs.pod:960
32906 msgid "Using guestfs_set_attach_method"
32907 msgstr ""
32908
32909 #. type: textblock
32910 #: ../src/guestfs.pod:962
32911 msgid ""
32912 "By calling L</guestfs_set_attach_method> you can change how the library "
32913 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
32914 "ARCHITECTURE> for some background)."
32915 msgstr ""
32916
32917 #. type: textblock
32918 #: ../src/guestfs.pod:966
32919 msgid ""
32920 "The normal attach method is C<appliance>, where a small appliance is created "
32921 "containing the daemon, and then the library connects to this."
32922 msgstr ""
32923
32924 #. type: textblock
32925 #: ../src/guestfs.pod:969
32926 msgid ""
32927 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
32928 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
32929 "daemon over the Unix domain socket."
32930 msgstr ""
32931
32932 #. type: textblock
32933 #: ../src/guestfs.pod:973
32934 msgid ""
32935 "The normal use for this is to connect to a running virtual machine that "
32936 "contains a C<guestfsd> daemon, and send commands so you can read and write "
32937 "files inside the live virtual machine."
32938 msgstr ""
32939
32940 #. type: =head3
32941 #: ../src/guestfs.pod:977
32942 msgid "Using guestfs_add_domain with live flag"
32943 msgstr ""
32944
32945 #. type: textblock
32946 #: ../src/guestfs.pod:979
32947 msgid ""
32948 "L</guestfs_add_domain> provides some help for getting the correct attach "
32949 "method.  If you pass the C<live> option to this function, then (if the "
32950 "virtual machine is running) it will examine the libvirt XML looking for a "
32951 "virtio-serial channel to connect to:"
32952 msgstr ""
32953
32954 #. type: verbatim
32955 #: ../src/guestfs.pod:985
32956 #, no-wrap
32957 msgid ""
32958 " <domain>\n"
32959 "   ...\n"
32960 "   <devices>\n"
32961 "     ...\n"
32962 "     <channel type='unix'>\n"
32963 "       <source mode='bind' path='/path/to/socket'/>\n"
32964 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
32965 "     </channel>\n"
32966 "     ...\n"
32967 "   </devices>\n"
32968 " </domain>\n"
32969 "\n"
32970 msgstr ""
32971
32972 #. type: textblock
32973 #: ../src/guestfs.pod:997
32974 msgid ""
32975 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
32976 "method to C<unix:/path/to/socket>."
32977 msgstr ""
32978
32979 #. type: textblock
32980 #: ../src/guestfs.pod:1000
32981 msgid ""
32982 "Some of the libguestfs tools (including guestfish) support a I<--live> "
32983 "option which is passed through to L</guestfs_add_domain> thus allowing you "
32984 "to attach to and modify live virtual machines."
32985 msgstr ""
32986
32987 #. type: textblock
32988 #: ../src/guestfs.pod:1004
32989 msgid ""
32990 "The virtual machine needs to have been set up beforehand so that it has the "
32991 "virtio-serial channel and so that guestfsd is running inside it."
32992 msgstr ""
32993
32994 #. type: =head2
32995 #: ../src/guestfs.pod:1008
32996 msgid "ABI GUARANTEE"
32997 msgstr ""
32998
32999 #. type: textblock
33000 #: ../src/guestfs.pod:1010
33001 msgid ""
33002 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
33003 "actions as outlined in this section.  Although we will deprecate some "
33004 "actions, for example if they get replaced by newer calls, we will keep the "
33005 "old actions forever.  This allows you the developer to program in confidence "
33006 "against the libguestfs API."
33007 msgstr ""
33008
33009 #. type: =head2
33010 #: ../src/guestfs.pod:1016
33011 msgid "BLOCK DEVICE NAMING"
33012 msgstr ""
33013
33014 #. type: textblock
33015 #: ../src/guestfs.pod:1018
33016 msgid ""
33017 "In the kernel there is now quite a profusion of schemata for naming block "
33018 "devices (in this context, by I<block device> I mean a physical or virtual "
33019 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
33020 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
33021 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
33022 "for the old IDE driver (particularly for SATA devices) those devices also "
33023 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
33024 "paravirtualized drivers.  This has created several different naming systems, "
33025 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
33026 msgstr ""
33027
33028 #. type: textblock
33029 #: ../src/guestfs.pod:1030
33030 msgid ""
33031 "As discussed above, libguestfs uses a qemu appliance running an embedded "
33032 "Linux kernel to access block devices.  We can run a variety of appliances "
33033 "based on a variety of Linux kernels."
33034 msgstr ""
33035
33036 #. type: textblock
33037 #: ../src/guestfs.pod:1034
33038 msgid ""
33039 "This causes a problem for libguestfs because many API calls use device or "
33040 "partition names.  Working scripts and the recipe (example) scripts that we "
33041 "make available over the internet could fail if the naming scheme changes."
33042 msgstr ""
33043
33044 #. type: textblock
33045 #: ../src/guestfs.pod:1039
33046 msgid ""
33047 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
33048 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
33049 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
33050 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
33051 msgstr ""
33052
33053 #. type: textblock
33054 #: ../src/guestfs.pod:1045
33055 msgid ""
33056 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
33057 "L</guestfs_list_partitions> and similar calls return the true names of the "
33058 "devices and partitions as known to the appliance."
33059 msgstr ""
33060
33061 #. type: =head3
33062 #: ../src/guestfs.pod:1050
33063 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
33064 msgstr ""
33065
33066 #. type: textblock
33067 #: ../src/guestfs.pod:1052
33068 msgid ""
33069 "Usually this translation is transparent.  However in some (very rare)  cases "
33070 "you may need to know the exact algorithm.  Such cases include where you use "
33071 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
33072 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
33073 msgstr ""
33074
33075 #. type: textblock
33076 #: ../src/guestfs.pod:1058
33077 msgid ""
33078 "The algorithm is applied only to I<parameters> which are known to be either "
33079 "device or partition names.  Return values from functions such as L</"
33080 "guestfs_list_devices> are never changed."
33081 msgstr ""
33082
33083 #. type: textblock
33084 #: ../src/guestfs.pod:1066
33085 msgid "Is the string a parameter which is a device or partition name?"
33086 msgstr ""
33087
33088 #. type: textblock
33089 #: ../src/guestfs.pod:1070
33090 msgid "Does the string begin with C</dev/sd>?"
33091 msgstr ""
33092
33093 #. type: textblock
33094 #: ../src/guestfs.pod:1074
33095 msgid ""
33096 "Does the named device exist? If so, we use that device.  However if I<not> "
33097 "then we continue with this algorithm."
33098 msgstr ""
33099
33100 #. type: textblock
33101 #: ../src/guestfs.pod:1079
33102 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
33103 msgstr ""
33104
33105 #. type: textblock
33106 #: ../src/guestfs.pod:1081
33107 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
33108 msgstr ""
33109
33110 #. type: textblock
33111 #: ../src/guestfs.pod:1083
33112 msgid "If that named device exists, use it.  If not, continue."
33113 msgstr ""
33114
33115 #. type: textblock
33116 #: ../src/guestfs.pod:1087
33117 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
33118 msgstr ""
33119
33120 #. type: textblock
33121 #: ../src/guestfs.pod:1089
33122 msgid "If that named device exists, use it.  If not, return an error."
33123 msgstr ""
33124
33125 #. type: =head3
33126 #: ../src/guestfs.pod:1093
33127 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
33128 msgstr ""
33129
33130 #. type: textblock
33131 #: ../src/guestfs.pod:1095
33132 msgid ""
33133 "Although the standard naming scheme and automatic translation is useful for "
33134 "simple programs and guestfish scripts, for larger programs it is best not to "
33135 "rely on this mechanism."
33136 msgstr ""
33137
33138 #. type: textblock
33139 #: ../src/guestfs.pod:1099
33140 msgid ""
33141 "Where possible for maximum future portability programs using libguestfs "
33142 "should use these future-proof techniques:"
33143 msgstr ""
33144
33145 #. type: textblock
33146 #: ../src/guestfs.pod:1106
33147 msgid ""
33148 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
33149 "device names, and then use those names directly."
33150 msgstr ""
33151
33152 #. type: textblock
33153 #: ../src/guestfs.pod:1109
33154 msgid ""
33155 "Since those device names exist by definition, they will never be translated."
33156 msgstr ""
33157
33158 #. type: textblock
33159 #: ../src/guestfs.pod:1114
33160 msgid ""
33161 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
33162 "filesystem labels."
33163 msgstr ""
33164
33165 #. type: =head1
33166 #: ../src/guestfs.pod:1119
33167 msgid "SECURITY"
33168 msgstr ""
33169
33170 #. type: textblock
33171 #: ../src/guestfs.pod:1121
33172 msgid ""
33173 "This section discusses security implications of using libguestfs, "
33174 "particularly with untrusted or malicious guests or disk images."
33175 msgstr ""
33176
33177 #. type: =head2
33178 #: ../src/guestfs.pod:1124
33179 msgid "GENERAL SECURITY CONSIDERATIONS"
33180 msgstr ""
33181
33182 #. type: textblock
33183 #: ../src/guestfs.pod:1126
33184 msgid ""
33185 "Be careful with any files or data that you download from a guest (by "
33186 "\"download\" we mean not just the L</guestfs_download> command but any "
33187 "command that reads files, filenames, directories or anything else from a "
33188 "disk image).  An attacker could manipulate the data to fool your program "
33189 "into doing the wrong thing.  Consider cases such as:"
33190 msgstr ""
33191
33192 #. type: textblock
33193 #: ../src/guestfs.pod:1136
33194 msgid "the data (file etc) not being present"
33195 msgstr ""
33196
33197 #. type: textblock
33198 #: ../src/guestfs.pod:1140
33199 msgid "being present but empty"
33200 msgstr ""
33201
33202 #. type: textblock
33203 #: ../src/guestfs.pod:1144
33204 msgid "being much larger than normal"
33205 msgstr ""
33206
33207 #. type: textblock
33208 #: ../src/guestfs.pod:1148
33209 msgid "containing arbitrary 8 bit data"
33210 msgstr ""
33211
33212 #. type: textblock
33213 #: ../src/guestfs.pod:1152
33214 msgid "being in an unexpected character encoding"
33215 msgstr ""
33216
33217 #. type: textblock
33218 #: ../src/guestfs.pod:1156
33219 msgid "containing homoglyphs."
33220 msgstr ""
33221
33222 #. type: =head2
33223 #: ../src/guestfs.pod:1160
33224 msgid "SECURITY OF MOUNTING FILESYSTEMS"
33225 msgstr ""
33226
33227 #. type: textblock
33228 #: ../src/guestfs.pod:1162
33229 msgid ""
33230 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
33231 "(VFS) module can sometimes be escalated into exploits by deliberately "
33232 "creating a malicious, malformed filesystem.  These exploits are very severe "
33233 "for two reasons.  Firstly there are very many filesystem drivers in the "
33234 "kernel, and many of them are infrequently used and not much developer "
33235 "attention has been paid to the code.  Linux userspace helps potential "
33236 "crackers by detecting the filesystem type and automatically choosing the "
33237 "right VFS driver, even if that filesystem type is obscure or unexpected for "
33238 "the administrator.  Secondly, a kernel-level exploit is like a local root "
33239 "exploit (worse in some ways), giving immediate and total access to the "
33240 "system right down to the hardware level."
33241 msgstr ""
33242
33243 #. type: textblock
33244 #: ../src/guestfs.pod:1175
33245 msgid ""
33246 "That explains why you should never mount a filesystem from an untrusted "
33247 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
33248 "inside a qemu virtual machine, usually running as a non-root user.  The "
33249 "attacker would need to write a filesystem which first exploited the kernel, "
33250 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
33251 "the libguestfs protocol, and finally to be as serious as the host kernel "
33252 "exploit it would need to escalate its privileges to root.  This multi-step "
33253 "escalation, performed by a static piece of data, is thought to be extremely "
33254 "hard to do, although we never say 'never' about security issues."
33255 msgstr ""
33256
33257 #. type: textblock
33258 #: ../src/guestfs.pod:1186
33259 msgid ""
33260 "In any case callers can reduce the attack surface by forcing the filesystem "
33261 "type when mounting (use L</guestfs_mount_vfs>)."
33262 msgstr ""
33263
33264 #. type: =head2
33265 #: ../src/guestfs.pod:1189
33266 msgid "PROTOCOL SECURITY"
33267 msgstr ""
33268
33269 #. type: textblock
33270 #: ../src/guestfs.pod:1191
33271 msgid ""
33272 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
33273 "defined upper message size.  However a program that uses libguestfs must "
33274 "also take care - for example you can write a program that downloads a binary "
33275 "from a disk image and executes it locally, and no amount of protocol "
33276 "security will save you from the consequences."
33277 msgstr ""
33278
33279 #. type: =head2
33280 #: ../src/guestfs.pod:1197
33281 msgid "INSPECTION SECURITY"
33282 msgstr ""
33283
33284 #. type: textblock
33285 #: ../src/guestfs.pod:1199
33286 msgid ""
33287 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
33288 "directly from the guest, and these could contain any 8 bit data.  Callers "
33289 "should be careful to escape these before printing them to a structured file "
33290 "(for example, use HTML escaping if creating a web page)."
33291 msgstr ""
33292
33293 #. type: textblock
33294 #: ../src/guestfs.pod:1205
33295 msgid ""
33296 "Guest configuration may be altered in unusual ways by the administrator of "
33297 "the virtual machine, and may not reflect reality (particularly for untrusted "
33298 "or actively malicious guests).  For example we parse the hostname from "
33299 "configuration files like C</etc/sysconfig/network> that we find in the "
33300 "guest, but the guest administrator can easily manipulate these files to "
33301 "provide the wrong hostname."
33302 msgstr ""
33303
33304 #. type: textblock
33305 #: ../src/guestfs.pod:1213
33306 msgid ""
33307 "The inspection API parses guest configuration using two external libraries: "
33308 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
33309 "designed to be robust in the face of malicious data, although denial of "
33310 "service attacks are still possible, for example with oversized configuration "
33311 "files."
33312 msgstr ""
33313
33314 #. type: =head2
33315 #: ../src/guestfs.pod:1219
33316 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
33317 msgstr ""
33318
33319 #. type: textblock
33320 #: ../src/guestfs.pod:1221
33321 msgid ""
33322 "Be very cautious about running commands from the guest.  By running a "
33323 "command in the guest, you are giving CPU time to a binary that you do not "
33324 "control, under the same user account as the library, albeit wrapped in qemu "
33325 "virtualization.  More information and alternatives can be found in the "
33326 "section L</RUNNING COMMANDS>."
33327 msgstr ""
33328
33329 #. type: =head2
33330 #: ../src/guestfs.pod:1227
33331 msgid "CVE-2010-3851"
33332 msgstr ""
33333
33334 #. type: textblock
33335 #: ../src/guestfs.pod:1229
33336 msgid "https://bugzilla.redhat.com/642934"
33337 msgstr ""
33338
33339 #. type: textblock
33340 #: ../src/guestfs.pod:1231
33341 msgid ""
33342 "This security bug concerns the automatic disk format detection that qemu "
33343 "does on disk images."
33344 msgstr ""
33345
33346 #. type: textblock
33347 #: ../src/guestfs.pod:1234
33348 msgid ""
33349 "A raw disk image is just the raw bytes, there is no header.  Other disk "
33350 "images like qcow2 contain a special header.  Qemu deals with this by looking "
33351 "for one of the known headers, and if none is found then assuming the disk "
33352 "image must be raw."
33353 msgstr ""
33354
33355 #. type: textblock
33356 #: ../src/guestfs.pod:1239
33357 msgid ""
33358 "This allows a guest which has been given a raw disk image to write some "
33359 "other header.  At next boot (or when the disk image is accessed by "
33360 "libguestfs) qemu would do autodetection and think the disk image format was, "
33361 "say, qcow2 based on the header written by the guest."
33362 msgstr ""
33363
33364 #. type: textblock
33365 #: ../src/guestfs.pod:1244
33366 msgid ""
33367 "This in itself would not be a problem, but qcow2 offers many features, one "
33368 "of which is to allow a disk image to refer to another image (called the "
33369 "\"backing disk\").  It does this by placing the path to the backing disk "
33370 "into the qcow2 header.  This path is not validated and could point to any "
33371 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
33372 "\"holes\" in the qcow2 disk image, which of course is completely under the "
33373 "control of the attacker."
33374 msgstr ""
33375
33376 #. type: textblock
33377 #: ../src/guestfs.pod:1252
33378 msgid ""
33379 "In libguestfs this is rather hard to exploit except under two circumstances:"
33380 msgstr ""
33381
33382 #. type: textblock
33383 #: ../src/guestfs.pod:1259
33384 msgid "You have enabled the network or have opened the disk in write mode."
33385 msgstr ""
33386
33387 #. type: textblock
33388 #: ../src/guestfs.pod:1263
33389 msgid ""
33390 "You are also running untrusted code from the guest (see L</RUNNING "
33391 "COMMANDS>)."
33392 msgstr ""
33393
33394 #. type: textblock
33395 #: ../src/guestfs.pod:1268
33396 msgid ""
33397 "The way to avoid this is to specify the expected disk format when adding "
33398 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
33399 "should always do this if the disk is raw format, and it's a good idea for "
33400 "other cases too."
33401 msgstr ""
33402
33403 #. type: textblock
33404 #: ../src/guestfs.pod:1273
33405 msgid ""
33406 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
33407 "format is fetched from libvirt and passed through."
33408 msgstr ""
33409
33410 #. type: textblock
33411 #: ../src/guestfs.pod:1276
33412 msgid ""
33413 "For libguestfs tools, use the I<--format> command line parameter as "
33414 "appropriate."
33415 msgstr ""
33416
33417 #. type: =head1
33418 #: ../src/guestfs.pod:1279
33419 msgid "CONNECTION MANAGEMENT"
33420 msgstr ""
33421
33422 #. type: =head2
33423 #: ../src/guestfs.pod:1281
33424 msgid "guestfs_h *"
33425 msgstr ""
33426
33427 #. type: textblock
33428 #: ../src/guestfs.pod:1283
33429 msgid ""
33430 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
33431 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
33432 "handle and release all resources used."
33433 msgstr ""
33434
33435 #. type: textblock
33436 #: ../src/guestfs.pod:1287
33437 msgid ""
33438 "For information on using multiple handles and threads, see the section L</"
33439 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
33440 msgstr ""
33441
33442 #. type: =head2
33443 #: ../src/guestfs.pod:1290
33444 msgid "guestfs_create"
33445 msgstr ""
33446
33447 #. type: verbatim
33448 #: ../src/guestfs.pod:1292
33449 #, no-wrap
33450 msgid ""
33451 " guestfs_h *guestfs_create (void);\n"
33452 "\n"
33453 msgstr ""
33454
33455 #. type: textblock
33456 #: ../src/guestfs.pod:1294
33457 msgid "Create a connection handle."
33458 msgstr ""
33459
33460 #. type: textblock
33461 #: ../src/guestfs.pod:1296
33462 msgid ""
33463 "On success this returns a non-NULL pointer to a handle.  On error it returns "
33464 "NULL."
33465 msgstr ""
33466
33467 #. type: textblock
33468 #: ../src/guestfs.pod:1299
33469 msgid ""
33470 "You have to \"configure\" the handle after creating it.  This includes "
33471 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
33472 "handle at least once."
33473 msgstr ""
33474
33475 #. type: textblock
33476 #: ../src/guestfs.pod:1303
33477 msgid "After configuring the handle, you have to call L</guestfs_launch>."
33478 msgstr ""
33479
33480 #. type: textblock
33481 #: ../src/guestfs.pod:1305
33482 msgid ""
33483 "You may also want to configure error handling for the handle.  See the L</"
33484 "ERROR HANDLING> section below."
33485 msgstr ""
33486
33487 #. type: =head2
33488 #: ../src/guestfs.pod:1308
33489 msgid "guestfs_close"
33490 msgstr ""
33491
33492 #. type: verbatim
33493 #: ../src/guestfs.pod:1310
33494 #, no-wrap
33495 msgid ""
33496 " void guestfs_close (guestfs_h *g);\n"
33497 "\n"
33498 msgstr ""
33499
33500 #. type: textblock
33501 #: ../src/guestfs.pod:1312
33502 msgid "This closes the connection handle and frees up all resources used."
33503 msgstr ""
33504
33505 #. type: textblock
33506 #: ../src/guestfs.pod:1314
33507 msgid ""
33508 "If autosync was set on the handle and the handle was launched, then this "
33509 "implicitly calls various functions to unmount filesystems and sync the "
33510 "disk.  See L</guestfs_set_autosync> for more details."
33511 msgstr ""
33512
33513 #. type: textblock
33514 #: ../src/guestfs.pod:1318
33515 msgid "If a close callback was set on the handle, then it is called."
33516 msgstr ""
33517
33518 #. type: =head1
33519 #: ../src/guestfs.pod:1320
33520 msgid "ERROR HANDLING"
33521 msgstr ""
33522
33523 #. type: textblock
33524 #: ../src/guestfs.pod:1322
33525 msgid ""
33526 "API functions can return errors.  For example, almost all functions that "
33527 "return C<int> will return C<-1> to indicate an error."
33528 msgstr ""
33529
33530 #. type: textblock
33531 #: ../src/guestfs.pod:1325
33532 msgid ""
33533 "Additional information is available for errors: an error message string and "
33534 "optionally an error number (errno) if the thing that failed was a system "
33535 "call."
33536 msgstr ""
33537
33538 #. type: textblock
33539 #: ../src/guestfs.pod:1329
33540 msgid ""
33541 "You can get at the additional information about the last error on the handle "
33542 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
33543 "up an error handler with L</guestfs_set_error_handler>."
33544 msgstr ""
33545
33546 #. type: textblock
33547 #: ../src/guestfs.pod:1334
33548 msgid ""
33549 "When the handle is created, a default error handler is installed which "
33550 "prints the error message string to C<stderr>.  For small short-running "
33551 "command line programs it is sufficient to do:"
33552 msgstr ""
33553
33554 #. type: verbatim
33555 #: ../src/guestfs.pod:1338
33556 #, no-wrap
33557 msgid ""
33558 " if (guestfs_launch (g) == -1)\n"
33559 "   exit (EXIT_FAILURE);\n"
33560 "\n"
33561 msgstr ""
33562
33563 #. type: textblock
33564 #: ../src/guestfs.pod:1341
33565 msgid ""
33566 "since the default error handler will ensure that an error message has been "
33567 "printed to C<stderr> before the program exits."
33568 msgstr ""
33569
33570 #. type: textblock
33571 #: ../src/guestfs.pod:1344
33572 msgid ""
33573 "For other programs the caller will almost certainly want to install an "
33574 "alternate error handler or do error handling in-line like this:"
33575 msgstr ""
33576
33577 #. type: verbatim
33578 #: ../src/guestfs.pod:1347
33579 #, no-wrap
33580 msgid ""
33581 " /* This disables the default behaviour of printing errors\n"
33582 "    on stderr. */\n"
33583 " guestfs_set_error_handler (g, NULL, NULL);\n"
33584 " \n"
33585 msgstr ""
33586
33587 #. type: verbatim
33588 #: ../src/guestfs.pod:1351
33589 #, no-wrap
33590 msgid ""
33591 " if (guestfs_launch (g) == -1) {\n"
33592 "   /* Examine the error message and print it etc. */\n"
33593 "   char *msg = guestfs_last_error (g);\n"
33594 "   int errnum = guestfs_last_errno (g);\n"
33595 "   fprintf (stderr, \"%s\", msg);\n"
33596 "   if (errnum != 0)\n"
33597 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
33598 "   fprintf (stderr, \"\\n\");\n"
33599 "   /* ... */\n"
33600 " }\n"
33601 "\n"
33602 msgstr ""
33603
33604 #. type: textblock
33605 #: ../src/guestfs.pod:1362
33606 msgid ""
33607 "Out of memory errors are handled differently.  The default action is to call "
33608 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
33609 "guestfs_set_out_of_memory_handler>."
33610 msgstr ""
33611
33612 #. type: textblock
33613 #: ../src/guestfs.pod:1366
33614 msgid ""
33615 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
33616 "because there is no handle if this happens there is no way to get additional "
33617 "error information.  However L</guestfs_create> is supposed to be a "
33618 "lightweight operation which can only fail because of insufficient memory (it "
33619 "returns NULL in this case)."
33620 msgstr ""
33621
33622 #. type: =head2
33623 #: ../src/guestfs.pod:1372
33624 msgid "guestfs_last_error"
33625 msgstr ""
33626
33627 #. type: verbatim
33628 #: ../src/guestfs.pod:1374
33629 #, no-wrap
33630 msgid ""
33631 " const char *guestfs_last_error (guestfs_h *g);\n"
33632 "\n"
33633 msgstr ""
33634
33635 #. type: textblock
33636 #: ../src/guestfs.pod:1376
33637 msgid ""
33638 "This returns the last error message that happened on C<g>.  If there has not "
33639 "been an error since the handle was created, then this returns C<NULL>."
33640 msgstr ""
33641
33642 #. type: textblock
33643 #: ../src/guestfs.pod:1380
33644 msgid ""
33645 "The lifetime of the returned string is until the next error occurs, or L</"
33646 "guestfs_close> is called."
33647 msgstr ""
33648
33649 #. type: =head2
33650 #: ../src/guestfs.pod:1383
33651 msgid "guestfs_last_errno"
33652 msgstr ""
33653
33654 #. type: verbatim
33655 #: ../src/guestfs.pod:1385
33656 #, no-wrap
33657 msgid ""
33658 " int guestfs_last_errno (guestfs_h *g);\n"
33659 "\n"
33660 msgstr ""
33661
33662 #. type: textblock
33663 #: ../src/guestfs.pod:1387
33664 msgid "This returns the last error number (errno) that happened on C<g>."
33665 msgstr ""
33666
33667 #. type: textblock
33668 #: ../src/guestfs.pod:1389
33669 msgid "If successful, an errno integer not equal to zero is returned."
33670 msgstr ""
33671
33672 #. type: textblock
33673 #: ../src/guestfs.pod:1391
33674 msgid ""
33675 "If no error, this returns 0.  This call can return 0 in three situations:"
33676 msgstr ""
33677
33678 #. type: textblock
33679 #: ../src/guestfs.pod:1398
33680 msgid "There has not been any error on the handle."
33681 msgstr ""
33682
33683 #. type: textblock
33684 #: ../src/guestfs.pod:1402
33685 msgid ""
33686 "There has been an error but the errno was meaningless.  This corresponds to "
33687 "the case where the error did not come from a failed system call, but for "
33688 "some other reason."
33689 msgstr ""
33690
33691 #. type: textblock
33692 #: ../src/guestfs.pod:1408
33693 msgid ""
33694 "There was an error from a failed system call, but for some reason the errno "
33695 "was not captured and returned.  This usually indicates a bug in libguestfs."
33696 msgstr ""
33697
33698 #. type: textblock
33699 #: ../src/guestfs.pod:1414
33700 msgid ""
33701 "Libguestfs tries to convert the errno from inside the applicance into a "
33702 "corresponding errno for the caller (not entirely trivial: the appliance "
33703 "might be running a completely different operating system from the library "
33704 "and error numbers are not standardized across Un*xen).  If this could not be "
33705 "done, then the error is translated to C<EINVAL>.  In practice this should "
33706 "only happen in very rare circumstances."
33707 msgstr ""
33708
33709 #. type: =head2
33710 #: ../src/guestfs.pod:1422
33711 msgid "guestfs_set_error_handler"
33712 msgstr ""
33713
33714 #. type: verbatim
33715 #: ../src/guestfs.pod:1424
33716 #, no-wrap
33717 msgid ""
33718 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
33719 "                                           void *opaque,\n"
33720 "                                           const char *msg);\n"
33721 " void guestfs_set_error_handler (guestfs_h *g,\n"
33722 "                                 guestfs_error_handler_cb cb,\n"
33723 "                                 void *opaque);\n"
33724 "\n"
33725 msgstr ""
33726
33727 #. type: textblock
33728 #: ../src/guestfs.pod:1431
33729 msgid ""
33730 "The callback C<cb> will be called if there is an error.  The parameters "
33731 "passed to the callback are an opaque data pointer and the error message "
33732 "string."
33733 msgstr ""
33734
33735 #. type: textblock
33736 #: ../src/guestfs.pod:1435
33737 msgid ""
33738 "C<errno> is not passed to the callback.  To get that the callback must call "
33739 "L</guestfs_last_errno>."
33740 msgstr ""
33741
33742 #. type: textblock
33743 #: ../src/guestfs.pod:1438
33744 msgid ""
33745 "Note that the message string C<msg> is freed as soon as the callback "
33746 "function returns, so if you want to stash it somewhere you must make your "
33747 "own copy."
33748 msgstr ""
33749
33750 #. type: textblock
33751 #: ../src/guestfs.pod:1442
33752 msgid "The default handler prints messages on C<stderr>."
33753 msgstr ""
33754
33755 #. type: textblock
33756 #: ../src/guestfs.pod:1444
33757 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
33758 msgstr ""
33759
33760 #. type: =head2
33761 #: ../src/guestfs.pod:1446
33762 msgid "guestfs_get_error_handler"
33763 msgstr ""
33764
33765 #. type: verbatim
33766 #: ../src/guestfs.pod:1448
33767 #, no-wrap
33768 msgid ""
33769 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
33770 "                                                     void **opaque_rtn);\n"
33771 "\n"
33772 msgstr ""
33773
33774 #. type: textblock
33775 #: ../src/guestfs.pod:1451
33776 msgid "Returns the current error handler callback."
33777 msgstr ""
33778
33779 #. type: =head2
33780 #: ../src/guestfs.pod:1453
33781 msgid "guestfs_set_out_of_memory_handler"
33782 msgstr ""
33783
33784 #. type: verbatim
33785 #: ../src/guestfs.pod:1455
33786 #, no-wrap
33787 msgid ""
33788 " typedef void (*guestfs_abort_cb) (void);\n"
33789 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
33790 "                                         guestfs_abort_cb);\n"
33791 "\n"
33792 msgstr ""
33793
33794 #. type: textblock
33795 #: ../src/guestfs.pod:1459
33796 msgid ""
33797 "The callback C<cb> will be called if there is an out of memory situation.  "
33798 "I<Note this callback must not return>."
33799 msgstr ""
33800
33801 #. type: textblock
33802 #: ../src/guestfs.pod:1462
33803 msgid "The default is to call L<abort(3)>."
33804 msgstr ""
33805
33806 #. type: textblock
33807 #: ../src/guestfs.pod:1464
33808 msgid ""
33809 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
33810 msgstr ""
33811
33812 #. type: =head2
33813 #: ../src/guestfs.pod:1467
33814 msgid "guestfs_get_out_of_memory_handler"
33815 msgstr ""
33816
33817 #. type: verbatim
33818 #: ../src/guestfs.pod:1469
33819 #, no-wrap
33820 msgid ""
33821 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
33822 "\n"
33823 msgstr ""
33824
33825 #. type: textblock
33826 #: ../src/guestfs.pod:1471
33827 msgid "This returns the current out of memory handler."
33828 msgstr ""
33829
33830 #. type: =head1
33831 #: ../src/guestfs.pod:1473
33832 msgid "API CALLS"
33833 msgstr ""
33834
33835 #. type: =head1
33836 #: ../src/guestfs.pod:1477
33837 msgid "STRUCTURES"
33838 msgstr ""
33839
33840 #. type: textblock
33841 #: ../src/guestfs.pod:1479
33842 msgid "@STRUCTS@"
33843 msgstr ""
33844
33845 #. type: =head1
33846 #: ../src/guestfs.pod:1481
33847 msgid "AVAILABILITY"
33848 msgstr ""
33849
33850 #. type: =head2
33851 #: ../src/guestfs.pod:1483
33852 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
33853 msgstr ""
33854
33855 #. type: textblock
33856 #: ../src/guestfs.pod:1485
33857 msgid ""
33858 "Using L</guestfs_available> you can test availability of the following "
33859 "groups of functions.  This test queries the appliance to see if the "
33860 "appliance you are currently using supports the functionality."
33861 msgstr ""
33862
33863 #. type: textblock
33864 #: ../src/guestfs.pod:1490
33865 msgid "@AVAILABILITY@"
33866 msgstr ""
33867
33868 #. type: =head2
33869 #: ../src/guestfs.pod:1492
33870 msgid "GUESTFISH supported COMMAND"
33871 msgstr ""
33872
33873 #. type: textblock
33874 #: ../src/guestfs.pod:1494
33875 msgid ""
33876 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
33877 "prints out the available groups and whether they are supported by this build "
33878 "of libguestfs.  Note however that you have to do C<run> first."
33879 msgstr ""
33880
33881 #. type: =head2
33882 #: ../src/guestfs.pod:1499
33883 msgid "SINGLE CALLS AT COMPILE TIME"
33884 msgstr ""
33885
33886 #. type: textblock
33887 #: ../src/guestfs.pod:1501
33888 msgid ""
33889 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
33890 "function, such as:"
33891 msgstr ""
33892
33893 #. type: verbatim
33894 #: ../src/guestfs.pod:1504
33895 #, no-wrap
33896 msgid ""
33897 " #define LIBGUESTFS_HAVE_DD 1\n"
33898 "\n"
33899 msgstr ""
33900
33901 #. type: textblock
33902 #: ../src/guestfs.pod:1506
33903 msgid "if L</guestfs_dd> is available."
33904 msgstr ""
33905
33906 #. type: textblock
33907 #: ../src/guestfs.pod:1508
33908 msgid ""
33909 "Before version 1.5.8, if you needed to test whether a single libguestfs "
33910 "function is available at compile time, we recommended using build tools such "
33911 "as autoconf or cmake.  For example in autotools you could use:"
33912 msgstr ""
33913
33914 #. type: verbatim
33915 #: ../src/guestfs.pod:1513
33916 #, no-wrap
33917 msgid ""
33918 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
33919 " AC_CHECK_FUNCS([guestfs_dd])\n"
33920 "\n"
33921 msgstr ""
33922
33923 #. type: textblock
33924 #: ../src/guestfs.pod:1516
33925 msgid ""
33926 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
33927 "in your program."
33928 msgstr ""
33929
33930 #. type: =head2
33931 #: ../src/guestfs.pod:1519
33932 msgid "SINGLE CALLS AT RUN TIME"
33933 msgstr ""
33934
33935 #. type: textblock
33936 #: ../src/guestfs.pod:1521
33937 msgid ""
33938 "Testing at compile time doesn't guarantee that a function really exists in "
33939 "the library.  The reason is that you might be dynamically linked against a "
33940 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
33941 "This situation unfortunately results in a segmentation fault, which is a "
33942 "shortcoming of the C dynamic linking system itself."
33943 msgstr ""
33944
33945 #. type: textblock
33946 #: ../src/guestfs.pod:1528
33947 msgid ""
33948 "You can use L<dlopen(3)> to test if a function is available at run time, as "
33949 "in this example program (note that you still need the compile time check as "
33950 "well):"
33951 msgstr ""
33952
33953 #. type: verbatim
33954 #: ../src/guestfs.pod:1532
33955 #, no-wrap
33956 msgid ""
33957 " #include <stdio.h>\n"
33958 " #include <stdlib.h>\n"
33959 " #include <unistd.h>\n"
33960 " #include <dlfcn.h>\n"
33961 " #include <guestfs.h>\n"
33962 " \n"
33963 msgstr ""
33964
33965 #. type: verbatim
33966 #: ../src/guestfs.pod:1538
33967 #, no-wrap
33968 msgid ""
33969 " main ()\n"
33970 " {\n"
33971 " #ifdef LIBGUESTFS_HAVE_DD\n"
33972 "   void *dl;\n"
33973 "   int has_function;\n"
33974 " \n"
33975 msgstr ""
33976
33977 #. type: verbatim
33978 #: ../src/guestfs.pod:1544
33979 #, no-wrap
33980 msgid ""
33981 "   /* Test if the function guestfs_dd is really available. */\n"
33982 "   dl = dlopen (NULL, RTLD_LAZY);\n"
33983 "   if (!dl) {\n"
33984 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
33985 "     exit (EXIT_FAILURE);\n"
33986 "   }\n"
33987 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
33988 "   dlclose (dl);\n"
33989 " \n"
33990 msgstr ""
33991
33992 #. type: verbatim
33993 #: ../src/guestfs.pod:1553
33994 #, no-wrap
33995 msgid ""
33996 "   if (!has_function)\n"
33997 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
33998 "   else {\n"
33999 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
34000 "     /* Now it's safe to call\n"
34001 "     guestfs_dd (g, \"foo\", \"bar\");\n"
34002 "     */\n"
34003 "   }\n"
34004 " #else\n"
34005 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
34006 " #endif\n"
34007 "  }\n"
34008 "\n"
34009 msgstr ""
34010
34011 #. type: textblock
34012 #: ../src/guestfs.pod:1566
34013 msgid ""
34014 "You may think the above is an awful lot of hassle, and it is.  There are "
34015 "other ways outside of the C linking system to ensure that this kind of "
34016 "incompatibility never arises, such as using package versioning:"
34017 msgstr ""
34018
34019 #. type: verbatim
34020 #: ../src/guestfs.pod:1571
34021 #, no-wrap
34022 msgid ""
34023 " Requires: libguestfs >= 1.0.80\n"
34024 "\n"
34025 msgstr ""
34026
34027 #. type: =head1
34028 #: ../src/guestfs.pod:1573
34029 msgid "CALLS WITH OPTIONAL ARGUMENTS"
34030 msgstr ""
34031
34032 #. type: textblock
34033 #: ../src/guestfs.pod:1575
34034 msgid ""
34035 "A recent feature of the API is the introduction of calls which take optional "
34036 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
34037 "takes variable arguments (ie. C<...>), as in this example:"
34038 msgstr ""
34039
34040 #. type: verbatim
34041 #: ../src/guestfs.pod:1580
34042 #, no-wrap
34043 msgid ""
34044 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
34045 "\n"
34046 msgstr ""
34047
34048 #. type: textblock
34049 #: ../src/guestfs.pod:1582
34050 msgid ""
34051 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
34052 "call with no optional arguments specified:"
34053 msgstr ""
34054
34055 #. type: verbatim
34056 #: ../src/guestfs.pod:1585
34057 #, no-wrap
34058 msgid ""
34059 " guestfs_add_drive_opts (g, filename, -1);\n"
34060 "\n"
34061 msgstr ""
34062
34063 #. type: textblock
34064 #: ../src/guestfs.pod:1587
34065 msgid "With a single optional argument:"
34066 msgstr ""
34067
34068 #. type: verbatim
34069 #: ../src/guestfs.pod:1589
34070 #, no-wrap
34071 msgid ""
34072 " guestfs_add_drive_opts (g, filename,\n"
34073 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
34074 "                         -1);\n"
34075 "\n"
34076 msgstr ""
34077
34078 #. type: textblock
34079 #: ../src/guestfs.pod:1593
34080 msgid "With two:"
34081 msgstr ""
34082
34083 #. type: verbatim
34084 #: ../src/guestfs.pod:1595
34085 #, no-wrap
34086 msgid ""
34087 " guestfs_add_drive_opts (g, filename,\n"
34088 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
34089 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
34090 "                         -1);\n"
34091 "\n"
34092 msgstr ""
34093
34094 #. type: textblock
34095 #: ../src/guestfs.pod:1600
34096 msgid ""
34097 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
34098 "happen!"
34099 msgstr ""
34100
34101 #. type: =head2
34102 #: ../src/guestfs.pod:1603
34103 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
34104 msgstr ""
34105
34106 #. type: textblock
34107 #: ../src/guestfs.pod:1605
34108 msgid ""
34109 "The second variant has the same name with the suffix C<_va>, which works the "
34110 "same way but takes a C<va_list>.  See the C manual for details.  For the "
34111 "example function, this is declared:"
34112 msgstr ""
34113
34114 #. type: verbatim
34115 #: ../src/guestfs.pod:1609
34116 #, no-wrap
34117 msgid ""
34118 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
34119 "                                va_list args);\n"
34120 "\n"
34121 msgstr ""
34122
34123 #. type: =head2
34124 #: ../src/guestfs.pod:1612
34125 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
34126 msgstr ""
34127
34128 #. type: textblock
34129 #: ../src/guestfs.pod:1614
34130 msgid ""
34131 "The third variant is useful where you need to construct these calls.  You "
34132 "pass in a structure where you fill in the optional fields.  The structure "
34133 "has a bitmask as the first element which you must set to indicate which "
34134 "fields you have filled in.  For our example function the structure and call "
34135 "are declared:"
34136 msgstr ""
34137
34138 #. type: verbatim
34139 #: ../src/guestfs.pod:1620
34140 #, no-wrap
34141 msgid ""
34142 " struct guestfs_add_drive_opts_argv {\n"
34143 "   uint64_t bitmask;\n"
34144 "   int readonly;\n"
34145 "   const char *format;\n"
34146 "   /* ... */\n"
34147 " };\n"
34148 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
34149 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
34150 "\n"
34151 msgstr ""
34152
34153 #. type: textblock
34154 #: ../src/guestfs.pod:1629
34155 msgid "You could call it like this:"
34156 msgstr ""
34157
34158 #. type: verbatim
34159 #: ../src/guestfs.pod:1631
34160 #, no-wrap
34161 msgid ""
34162 " struct guestfs_add_drive_opts_argv optargs = {\n"
34163 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
34164 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
34165 "   .readonly = 1,\n"
34166 "   .format = \"qcow2\"\n"
34167 " };\n"
34168 " \n"
34169 msgstr ""
34170
34171 #. type: verbatim
34172 #: ../src/guestfs.pod:1638
34173 #, no-wrap
34174 msgid ""
34175 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
34176 "\n"
34177 msgstr ""
34178
34179 #. type: textblock
34180 #: ../src/guestfs.pod:1646
34181 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
34182 msgstr ""
34183
34184 #. type: textblock
34185 #: ../src/guestfs.pod:1651
34186 msgid "You do not need to fill in all fields of the structure."
34187 msgstr ""
34188
34189 #. type: textblock
34190 #: ../src/guestfs.pod:1655
34191 msgid ""
34192 "There must be a one-to-one correspondence between fields of the structure "
34193 "that are filled in, and bits set in the bitmask."
34194 msgstr ""
34195
34196 #. type: =head2
34197 #: ../src/guestfs.pod:1660
34198 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
34199 msgstr ""
34200
34201 #. type: textblock
34202 #: ../src/guestfs.pod:1662
34203 msgid ""
34204 "In other languages, optional arguments are expressed in the way that is "
34205 "natural for that language.  We refer you to the language-specific "
34206 "documentation for more details on that."
34207 msgstr ""
34208
34209 #. type: textblock
34210 #: ../src/guestfs.pod:1666
34211 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
34212 msgstr ""
34213
34214 #. type: =head2
34215 #: ../src/guestfs.pod:1668
34216 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
34217 msgstr ""
34218
34219 #. type: textblock
34220 #: ../src/guestfs.pod:1670
34221 msgid ""
34222 "B<Note:> This section documents the generic event mechanism introduced in "
34223 "libguestfs 1.10, which you should use in new code if possible.  The old "
34224 "functions C<guestfs_set_log_message_callback>, "
34225 "C<guestfs_set_subprocess_quit_callback>, "
34226 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
34227 "C<guestfs_set_progress_callback> are no longer documented in this manual "
34228 "page.  Because of the ABI guarantee, the old functions continue to work."
34229 msgstr ""
34230
34231 #. type: textblock
34232 #: ../src/guestfs.pod:1679
34233 msgid ""
34234 "Handles generate events when certain things happen, such as log messages "
34235 "being generated, progress messages during long-running operations, or the "
34236 "handle being closed.  The API calls described below let you register a "
34237 "callback to be called when events happen.  You can register multiple "
34238 "callbacks (for the same, different or overlapping sets of events), and "
34239 "individually remove callbacks.  If callbacks are not removed, then they "
34240 "remain in force until the handle is closed."
34241 msgstr ""
34242
34243 #. type: textblock
34244 #: ../src/guestfs.pod:1687
34245 msgid ""
34246 "In the current implementation, events are only generated synchronously: that "
34247 "means that events (and hence callbacks) can only happen while you are in the "
34248 "middle of making another libguestfs call.  The callback is called in the "
34249 "same thread."
34250 msgstr ""
34251
34252 #. type: textblock
34253 #: ../src/guestfs.pod:1692
34254 msgid ""
34255 "Events may contain a payload, usually nothing (void), an array of 64 bit "
34256 "unsigned integers, or a message buffer.  Payloads are discussed later on."
34257 msgstr ""
34258
34259 #. type: =head3
34260 #: ../src/guestfs.pod:1696
34261 msgid "CLASSES OF EVENTS"
34262 msgstr ""
34263
34264 #. type: =item
34265 #: ../src/guestfs.pod:1700
34266 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
34267 msgstr ""
34268
34269 #. type: textblock
34270 #: ../src/guestfs.pod:1703
34271 msgid ""
34272 "The callback function will be called while the handle is being closed "
34273 "(synchronously from L</guestfs_close>)."
34274 msgstr ""
34275
34276 #. type: textblock
34277 #: ../src/guestfs.pod:1706
34278 msgid ""
34279 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
34280 "handles that are open when the program exits.  This means that this callback "
34281 "might be called indirectly from L<exit(3)>, which can cause unexpected "
34282 "problems in higher-level languages (eg. if your HLL interpreter has already "
34283 "been cleaned up by the time this is called, and if your callback then jumps "
34284 "into some HLL function)."
34285 msgstr ""
34286
34287 #. type: textblock
34288 #: ../src/guestfs.pod:1713
34289 msgid ""
34290 "If no callback is registered: the handle is closed without any callback "
34291 "being invoked."
34292 msgstr ""
34293
34294 #. type: =item
34295 #: ../src/guestfs.pod:1716
34296 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
34297 msgstr ""
34298
34299 #. type: textblock
34300 #: ../src/guestfs.pod:1719
34301 msgid ""
34302 "The callback function will be called when the child process quits, either "
34303 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
34304 "corresponds to a transition from any state to the CONFIG state)."
34305 msgstr ""
34306
34307 #. type: textblock
34308 #: ../src/guestfs.pod:1723 ../src/guestfs.pod:1732 ../src/guestfs.pod:1849
34309 msgid "If no callback is registered: the event is ignored."
34310 msgstr ""
34311
34312 #. type: =item
34313 #: ../src/guestfs.pod:1725
34314 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
34315 msgstr ""
34316
34317 #. type: textblock
34318 #: ../src/guestfs.pod:1728
34319 msgid ""
34320 "The callback function will be called when the child process becomes ready "
34321 "first time after it has been launched.  (This corresponds to a transition "
34322 "from LAUNCHING to the READY state)."
34323 msgstr ""
34324
34325 #. type: =item
34326 #: ../src/guestfs.pod:1734
34327 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
34328 msgstr ""
34329
34330 #. type: textblock
34331 #: ../src/guestfs.pod:1737
34332 msgid ""
34333 "Some long-running operations can generate progress messages.  If this "
34334 "callback is registered, then it will be called each time a progress message "
34335 "is generated (usually two seconds after the operation started, and three "
34336 "times per second thereafter until it completes, although the frequency may "
34337 "change in future versions)."
34338 msgstr ""
34339
34340 #. type: textblock
34341 #: ../src/guestfs.pod:1743
34342 msgid ""
34343 "The callback receives in the payload four unsigned 64 bit numbers which are "
34344 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
34345 msgstr ""
34346
34347 #. type: textblock
34348 #: ../src/guestfs.pod:1746
34349 msgid ""
34350 "The units of C<total> are not defined, although for some operations C<total> "
34351 "may relate in some way to the amount of data to be transferred (eg. in bytes "
34352 "or megabytes), and C<position> may be the portion which has been transferred."
34353 msgstr ""
34354
34355 #. type: textblock
34356 #: ../src/guestfs.pod:1751
34357 msgid "The only defined and stable parts of the API are:"
34358 msgstr ""
34359
34360 #. type: textblock
34361 #: ../src/guestfs.pod:1757
34362 msgid ""
34363 "The callback can display to the user some type of progress bar or indicator "
34364 "which shows the ratio of C<position>:C<total>."
34365 msgstr ""
34366
34367 #. type: textblock
34368 #: ../src/guestfs.pod:1762
34369 msgid "0 E<lt>= C<position> E<lt>= C<total>"
34370 msgstr ""
34371
34372 #. type: textblock
34373 #: ../src/guestfs.pod:1766
34374 msgid ""
34375 "If any progress notification is sent during a call, then a final progress "
34376 "notification is always sent when C<position> = C<total> (I<unless> the call "
34377 "fails with an error)."
34378 msgstr ""
34379
34380 #. type: textblock
34381 #: ../src/guestfs.pod:1770
34382 msgid ""
34383 "This is to simplify caller code, so callers can easily set the progress "
34384 "indicator to \"100%\" at the end of the operation, without requiring special "
34385 "code to detect this case."
34386 msgstr ""
34387
34388 #. type: textblock
34389 #: ../src/guestfs.pod:1776
34390 msgid ""
34391 "For some calls we are unable to estimate the progress of the call, but we "
34392 "can still generate progress messages to indicate activity.  This is known as "
34393 "\"pulse mode\", and is directly supported by certain progress bar "
34394 "implementations (eg. GtkProgressBar)."
34395 msgstr ""
34396
34397 #. type: textblock
34398 #: ../src/guestfs.pod:1781
34399 msgid ""
34400 "For these calls, zero or more progress messages are generated with "
34401 "C<position = 0> and C<total = 1>, followed by a final message with "
34402 "C<position = total = 1>."
34403 msgstr ""
34404
34405 #. type: textblock
34406 #: ../src/guestfs.pod:1785
34407 msgid ""
34408 "As noted above, if the call fails with an error then the final message may "
34409 "not be generated."
34410 msgstr ""
34411
34412 #. type: textblock
34413 #: ../src/guestfs.pod:1790
34414 msgid ""
34415 "The callback also receives the procedure number (C<proc_nr>) and serial "
34416 "number (C<serial>) of the call.  These are only useful for debugging "
34417 "protocol issues, and the callback can normally ignore them.  The callback "
34418 "may want to print these numbers in error messages or debugging messages."
34419 msgstr ""
34420
34421 #. type: textblock
34422 #: ../src/guestfs.pod:1796
34423 msgid "If no callback is registered: progress messages are discarded."
34424 msgstr ""
34425
34426 #. type: =item
34427 #: ../src/guestfs.pod:1798
34428 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
34429 msgstr ""
34430
34431 #. type: textblock
34432 #: ../src/guestfs.pod:1801
34433 msgid ""
34434 "The callback function is called whenever a log message is generated by qemu, "
34435 "the appliance kernel, guestfsd (daemon), or utility programs."
34436 msgstr ""
34437
34438 #. type: textblock
34439 #: ../src/guestfs.pod:1804
34440 msgid ""
34441 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
34442 "guestfs_launch>) then additional debug messages are generated."
34443 msgstr ""
34444
34445 #. type: textblock
34446 #: ../src/guestfs.pod:1807 ../src/guestfs.pod:1821
34447 msgid ""
34448 "If no callback is registered: the messages are discarded unless the verbose "
34449 "flag is set in which case they are sent to stderr.  You can override the "
34450 "printing of verbose messages to stderr by setting up a callback."
34451 msgstr ""
34452
34453 #. type: =item
34454 #: ../src/guestfs.pod:1812
34455 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
34456 msgstr ""
34457
34458 #. type: textblock
34459 #: ../src/guestfs.pod:1815
34460 msgid ""
34461 "The callback function is called whenever a log message is generated by the "
34462 "library part of libguestfs."
34463 msgstr ""
34464
34465 #. type: textblock
34466 #: ../src/guestfs.pod:1818
34467 msgid ""
34468 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
34469 "messages are generated."
34470 msgstr ""
34471
34472 #. type: =item
34473 #: ../src/guestfs.pod:1826
34474 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
34475 msgstr ""
34476
34477 #. type: textblock
34478 #: ../src/guestfs.pod:1829
34479 msgid ""
34480 "The callback function is called whenever a trace message is generated.  This "
34481 "only applies if the trace flag (L</guestfs_set_trace>) is set."
34482 msgstr ""
34483
34484 #. type: textblock
34485 #: ../src/guestfs.pod:1832
34486 msgid ""
34487 "If no callback is registered: the messages are sent to stderr.  You can "
34488 "override the printing of trace messages to stderr by setting up a callback."
34489 msgstr ""
34490
34491 #. type: =item
34492 #: ../src/guestfs.pod:1836
34493 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
34494 msgstr ""
34495
34496 #. type: textblock
34497 #: ../src/guestfs.pod:1839
34498 msgid ""
34499 "The callback function is called whenever a libguestfs function is entered."
34500 msgstr ""
34501
34502 #. type: textblock
34503 #: ../src/guestfs.pod:1842
34504 msgid ""
34505 "The payload is a string which contains the name of the function that we are "
34506 "entering (not including C<guestfs_> prefix)."
34507 msgstr ""
34508
34509 #. type: textblock
34510 #: ../src/guestfs.pod:1845
34511 msgid ""
34512 "Note that libguestfs functions can call themselves, so you may see many "
34513 "events from a single call.  A few libguestfs functions do not generate this "
34514 "event."
34515 msgstr ""
34516
34517 #. type: =head3
34518 #: ../src/guestfs.pod:1853
34519 msgid "guestfs_set_event_callback"
34520 msgstr ""
34521
34522 #. type: verbatim
34523 #: ../src/guestfs.pod:1855
34524 #, no-wrap
34525 msgid ""
34526 " int guestfs_set_event_callback (guestfs_h *g,\n"
34527 "                                 guestfs_event_callback cb,\n"
34528 "                                 uint64_t event_bitmask,\n"
34529 "                                 int flags,\n"
34530 "                                 void *opaque);\n"
34531 "\n"
34532 msgstr ""
34533
34534 #. type: textblock
34535 #: ../src/guestfs.pod:1861
34536 msgid ""
34537 "This function registers a callback (C<cb>) for all event classes in the "
34538 "C<event_bitmask>."
34539 msgstr ""
34540
34541 #. type: textblock
34542 #: ../src/guestfs.pod:1864
34543 msgid ""
34544 "For example, to register for all log message events, you could call this "
34545 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
34546 "To register a single callback for all possible classes of events, use "
34547 "C<GUESTFS_EVENT_ALL>."
34548 msgstr ""
34549
34550 #. type: textblock
34551 #: ../src/guestfs.pod:1870
34552 msgid "C<flags> should always be passed as 0."
34553 msgstr ""
34554
34555 #. type: textblock
34556 #: ../src/guestfs.pod:1872
34557 msgid ""
34558 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
34559 "it for any purpose."
34560 msgstr ""
34561
34562 #. type: textblock
34563 #: ../src/guestfs.pod:1875
34564 msgid ""
34565 "The return value is the event handle (an integer) which you can use to "
34566 "delete the callback (see below)."
34567 msgstr ""
34568
34569 #. type: textblock
34570 #: ../src/guestfs.pod:1878
34571 msgid ""
34572 "If there is an error, this function returns C<-1>, and sets the error in the "
34573 "handle in the usual way (see L</guestfs_last_error> etc.)"
34574 msgstr ""
34575
34576 #. type: textblock
34577 #: ../src/guestfs.pod:1881
34578 msgid ""
34579 "Callbacks remain in effect until they are deleted, or until the handle is "
34580 "closed."
34581 msgstr ""
34582
34583 #. type: textblock
34584 #: ../src/guestfs.pod:1884
34585 msgid ""
34586 "In the case where multiple callbacks are registered for a particular event "
34587 "class, all of the callbacks are called.  The order in which multiple "
34588 "callbacks are called is not defined."
34589 msgstr ""
34590
34591 #. type: =head3
34592 #: ../src/guestfs.pod:1888
34593 msgid "guestfs_delete_event_callback"
34594 msgstr ""
34595
34596 #. type: verbatim
34597 #: ../src/guestfs.pod:1890
34598 #, no-wrap
34599 msgid ""
34600 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
34601 "\n"
34602 msgstr ""
34603
34604 #. type: textblock
34605 #: ../src/guestfs.pod:1892
34606 msgid ""
34607 "Delete a callback that was previously registered.  C<event_handle> should be "
34608 "the integer that was returned by a previous call to "
34609 "C<guestfs_set_event_callback> on the same handle."
34610 msgstr ""
34611
34612 #. type: =head3
34613 #: ../src/guestfs.pod:1896
34614 msgid "guestfs_event_callback"
34615 msgstr ""
34616
34617 #. type: verbatim
34618 #: ../src/guestfs.pod:1898
34619 #, no-wrap
34620 msgid ""
34621 " typedef void (*guestfs_event_callback) (\n"
34622 "                  guestfs_h *g,\n"
34623 "                  void *opaque,\n"
34624 "                  uint64_t event,\n"
34625 "                  int event_handle,\n"
34626 "                  int flags,\n"
34627 "                  const char *buf, size_t buf_len,\n"
34628 "                  const uint64_t *array, size_t array_len);\n"
34629 "\n"
34630 msgstr ""
34631
34632 #. type: textblock
34633 #: ../src/guestfs.pod:1907
34634 msgid ""
34635 "This is the type of the event callback function that you have to provide."
34636 msgstr ""
34637
34638 #. type: textblock
34639 #: ../src/guestfs.pod:1910
34640 msgid ""
34641 "The basic parameters are: the handle (C<g>), the opaque user pointer "
34642 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
34643 "handle, and C<flags> which in the current API you should ignore."
34644 msgstr ""
34645
34646 #. type: textblock
34647 #: ../src/guestfs.pod:1914
34648 msgid ""
34649 "The remaining parameters contain the event payload (if any).  Each event may "
34650 "contain a payload, which usually relates to the event class, but for future "
34651 "proofing your code should be written to handle any payload for any event "
34652 "class."
34653 msgstr ""
34654
34655 #. type: textblock
34656 #: ../src/guestfs.pod:1919
34657 msgid ""
34658 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
34659 "there is no message buffer).  Note that this message buffer can contain "
34660 "arbitrary 8 bit data, including NUL bytes."
34661 msgstr ""
34662
34663 #. type: textblock
34664 #: ../src/guestfs.pod:1923
34665 msgid ""
34666 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
34667 "moment this is only used for progress messages."
34668 msgstr ""
34669
34670 #. type: =head3
34671 #: ../src/guestfs.pod:1926
34672 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
34673 msgstr ""
34674
34675 #. type: textblock
34676 #: ../src/guestfs.pod:1928
34677 msgid ""
34678 "One motivation for the generic event API was to allow GUI programs to "
34679 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
34680 "unconditionally to C<stderr>."
34681 msgstr ""
34682
34683 #. type: textblock
34684 #: ../src/guestfs.pod:1932
34685 msgid ""
34686 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
34687 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
34688 "messages are not events; you must capture error messages separately)."
34689 msgstr ""
34690
34691 #. type: textblock
34692 #: ../src/guestfs.pod:1937
34693 msgid ""
34694 "Programs have to set up a callback to capture the classes of events of "
34695 "interest:"
34696 msgstr ""
34697
34698 #. type: verbatim
34699 #: ../src/guestfs.pod:1940
34700 #, no-wrap
34701 msgid ""
34702 " int eh =\n"
34703 "   guestfs_set_event_callback\n"
34704 "     (g, message_callback,\n"
34705 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
34706 "      GUESTFS_EVENT_TRACE,\n"
34707 "      0, NULL) == -1)\n"
34708 " if (eh == -1) {\n"
34709 "   // handle error in the usual way\n"
34710 " }\n"
34711 "\n"
34712 msgstr ""
34713
34714 #. type: textblock
34715 #: ../src/guestfs.pod:1950
34716 msgid ""
34717 "The callback can then direct messages to the appropriate place.  In this "
34718 "example, messages are directed to syslog:"
34719 msgstr ""
34720
34721 #. type: verbatim
34722 #: ../src/guestfs.pod:1953
34723 #, no-wrap
34724 msgid ""
34725 " static void\n"
34726 " message_callback (\n"
34727 "         guestfs_h *g,\n"
34728 "         void *opaque,\n"
34729 "         uint64_t event,\n"
34730 "         int event_handle,\n"
34731 "         int flags,\n"
34732 "         const char *buf, size_t buf_len,\n"
34733 "         const uint64_t *array, size_t array_len)\n"
34734 " {\n"
34735 "   const int priority = LOG_USER|LOG_INFO;\n"
34736 "   if (buf_len > 0)\n"
34737 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
34738 " }\n"
34739 "\n"
34740 msgstr ""
34741
34742 #. type: =head1
34743 #: ../src/guestfs.pod:1968
34744 msgid "CANCELLING LONG TRANSFERS"
34745 msgstr ""
34746
34747 #. type: textblock
34748 #: ../src/guestfs.pod:1970
34749 msgid ""
34750 "Some operations can be cancelled by the caller while they are in progress.  "
34751 "Currently only operations that involve uploading or downloading data can be "
34752 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
34753 "parameters in the generator)."
34754 msgstr ""
34755
34756 #. type: =head2
34757 #: ../src/guestfs.pod:1975
34758 msgid "guestfs_user_cancel"
34759 msgstr ""
34760
34761 #. type: verbatim
34762 #: ../src/guestfs.pod:1977
34763 #, no-wrap
34764 msgid ""
34765 " void guestfs_user_cancel (guestfs_h *g);\n"
34766 "\n"
34767 msgstr ""
34768
34769 #. type: textblock
34770 #: ../src/guestfs.pod:1979
34771 msgid ""
34772 "C<guestfs_user_cancel> cancels the current upload or download operation."
34773 msgstr ""
34774
34775 #. type: textblock
34776 #: ../src/guestfs.pod:1982
34777 msgid ""
34778 "Unlike most other libguestfs calls, this function is signal safe and thread "
34779 "safe.  You can call it from a signal handler or from another thread, without "
34780 "needing to do any locking."
34781 msgstr ""
34782
34783 #. type: textblock
34784 #: ../src/guestfs.pod:1986
34785 msgid ""
34786 "The transfer that was in progress (if there is one) will stop shortly "
34787 "afterwards, and will return an error.  The errno (see L</"
34788 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
34789 "out if the operation was cancelled or failed because of another error."
34790 msgstr ""
34791
34792 #. type: textblock
34793 #: ../src/guestfs.pod:1992
34794 msgid ""
34795 "No cleanup is performed: for example, if a file was being uploaded then "
34796 "after cancellation there may be a partially uploaded file.  It is the "
34797 "caller's responsibility to clean up if necessary."
34798 msgstr ""
34799
34800 #. type: textblock
34801 #: ../src/guestfs.pod:1996
34802 msgid "There are two common places that you might call C<guestfs_user_cancel>."
34803 msgstr ""
34804
34805 #. type: textblock
34806 #: ../src/guestfs.pod:1998
34807 msgid ""
34808 "In an interactive text-based program, you might call it from a C<SIGINT> "
34809 "signal handler so that pressing C<^C> cancels the current operation.  (You "
34810 "also need to call L</guestfs_set_pgroup> so that child processes don't "
34811 "receive the C<^C> signal)."
34812 msgstr ""
34813
34814 #. type: textblock
34815 #: ../src/guestfs.pod:2003
34816 msgid ""
34817 "In a graphical program, when the main thread is displaying a progress bar "
34818 "with a cancel button, wire up the cancel button to call this function."
34819 msgstr ""
34820
34821 #. type: =head1
34822 #: ../src/guestfs.pod:2007
34823 msgid "PRIVATE DATA AREA"
34824 msgstr ""
34825
34826 #. type: textblock
34827 #: ../src/guestfs.pod:2009
34828 msgid ""
34829 "You can attach named pieces of private data to the libguestfs handle, fetch "
34830 "them by name, and walk over them, for the lifetime of the handle.  This is "
34831 "called the private data area and is only available from the C API."
34832 msgstr ""
34833
34834 #. type: textblock
34835 #: ../src/guestfs.pod:2014
34836 msgid "To attach a named piece of data, use the following call:"
34837 msgstr ""
34838
34839 #. type: verbatim
34840 #: ../src/guestfs.pod:2016
34841 #, no-wrap
34842 msgid ""
34843 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
34844 "\n"
34845 msgstr ""
34846
34847 #. type: textblock
34848 #: ../src/guestfs.pod:2018
34849 msgid ""
34850 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
34851 "pointer (which can be C<NULL>).  Any previous item with the same key is "
34852 "overwritten."
34853 msgstr ""
34854
34855 #. type: textblock
34856 #: ../src/guestfs.pod:2022
34857 msgid ""
34858 "You can use any C<key> you want, but your key should I<not> start with an "
34859 "underscore character.  Keys beginning with an underscore character are "
34860 "reserved for internal libguestfs purposes (eg. for implementing language "
34861 "bindings).  It is recommended that you prefix the key with some unique "
34862 "string to avoid collisions with other users."
34863 msgstr ""
34864
34865 #. type: textblock
34866 #: ../src/guestfs.pod:2028
34867 msgid "To retrieve the pointer, use:"
34868 msgstr ""
34869
34870 #. type: verbatim
34871 #: ../src/guestfs.pod:2030
34872 #, no-wrap
34873 msgid ""
34874 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
34875 "\n"
34876 msgstr ""
34877
34878 #. type: textblock
34879 #: ../src/guestfs.pod:2032
34880 msgid ""
34881 "This function returns C<NULL> if either no data is found associated with "
34882 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
34883 "C<NULL>."
34884 msgstr ""
34885
34886 #. type: textblock
34887 #: ../src/guestfs.pod:2036
34888 msgid ""
34889 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
34890 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
34891 "all.  In particular, libguestfs does I<not> try to free the data when the "
34892 "handle is closed.  If the data must be freed, then the caller must either "
34893 "free it before calling L</guestfs_close> or must set up a close callback to "
34894 "do it (see L</GUESTFS_EVENT_CLOSE>)."
34895 msgstr ""
34896
34897 #. type: textblock
34898 #: ../src/guestfs.pod:2043
34899 msgid "To walk over all entries, use these two functions:"
34900 msgstr ""
34901
34902 #. type: verbatim
34903 #: ../src/guestfs.pod:2045
34904 #, no-wrap
34905 msgid ""
34906 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
34907 "\n"
34908 msgstr ""
34909
34910 #. type: verbatim
34911 #: ../src/guestfs.pod:2047
34912 #, no-wrap
34913 msgid ""
34914 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
34915 "\n"
34916 msgstr ""
34917
34918 #. type: textblock
34919 #: ../src/guestfs.pod:2049
34920 msgid ""
34921 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
34922 "not have any particular meaning -- keys are not returned in any defined "
34923 "order).  A pointer to the key is returned in C<*key_rtn> and the "
34924 "corresponding data pointer is returned from the function.  C<NULL> is "
34925 "returned if there are no keys stored in the handle."
34926 msgstr ""
34927
34928 #. type: textblock
34929 #: ../src/guestfs.pod:2055
34930 msgid ""
34931 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
34932 "value of this function is also C<NULL> is there are no further entries to "
34933 "return."
34934 msgstr ""
34935
34936 #. type: textblock
34937 #: ../src/guestfs.pod:2059
34938 msgid "Notes about walking over entries:"
34939 msgstr ""
34940
34941 #. type: textblock
34942 #: ../src/guestfs.pod:2065
34943 msgid ""
34944 "You must not call C<guestfs_set_private> while walking over the entries."
34945 msgstr ""
34946
34947 #. type: textblock
34948 #: ../src/guestfs.pod:2070
34949 msgid ""
34950 "The handle maintains an internal iterator which is reset when you call "
34951 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
34952 "call C<guestfs_set_private>."
34953 msgstr ""
34954
34955 #. type: textblock
34956 #: ../src/guestfs.pod:2076
34957 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
34958 msgstr ""
34959
34960 #. type: verbatim
34961 #: ../src/guestfs.pod:2078
34962 #, no-wrap
34963 msgid ""
34964 " guestfs_set_private (g, key, NULL);\n"
34965 "\n"
34966 msgstr ""
34967
34968 #. type: textblock
34969 #: ../src/guestfs.pod:2080
34970 msgid "then that C<key> is not returned when walking."
34971 msgstr ""
34972
34973 #. type: textblock
34974 #: ../src/guestfs.pod:2084
34975 msgid ""
34976 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
34977 "C<guestfs_next_private> or C<guestfs_set_private>."
34978 msgstr ""
34979
34980 #. type: textblock
34981 #: ../src/guestfs.pod:2090
34982 msgid ""
34983 "The following example code shows how to print all keys and data pointers "
34984 "that are associated with the handle C<g>:"
34985 msgstr ""
34986
34987 #. type: verbatim
34988 #: ../src/guestfs.pod:2093
34989 #, no-wrap
34990 msgid ""
34991 " const char *key;\n"
34992 " void *data = guestfs_first_private (g, &key);\n"
34993 " while (data != NULL)\n"
34994 "   {\n"
34995 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
34996 "     data = guestfs_next_private (g, &key);\n"
34997 "   }\n"
34998 "\n"
34999 msgstr ""
35000
35001 #. type: textblock
35002 #: ../src/guestfs.pod:2101
35003 msgid ""
35004 "More commonly you are only interested in keys that begin with an application-"
35005 "specific prefix C<foo_>.  Modify the loop like so:"
35006 msgstr ""
35007
35008 #. type: verbatim
35009 #: ../src/guestfs.pod:2104
35010 #, no-wrap
35011 msgid ""
35012 " const char *key;\n"
35013 " void *data = guestfs_first_private (g, &key);\n"
35014 " while (data != NULL)\n"
35015 "   {\n"
35016 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
35017 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
35018 "     data = guestfs_next_private (g, &key);\n"
35019 "   }\n"
35020 "\n"
35021 msgstr ""
35022
35023 #. type: textblock
35024 #: ../src/guestfs.pod:2113
35025 msgid ""
35026 "If you need to modify keys while walking, then you have to jump back to the "
35027 "beginning of the loop.  For example, to delete all keys prefixed with "
35028 "C<foo_>:"
35029 msgstr ""
35030
35031 #. type: verbatim
35032 #: ../src/guestfs.pod:2117
35033 #, no-wrap
35034 msgid ""
35035 "  const char *key;\n"
35036 "  void *data;\n"
35037 " again:\n"
35038 "  data = guestfs_first_private (g, &key);\n"
35039 "  while (data != NULL)\n"
35040 "    {\n"
35041 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
35042 "        {\n"
35043 "          guestfs_set_private (g, key, NULL);\n"
35044 "          /* note that 'key' pointer is now invalid, and so is\n"
35045 "             the internal iterator */\n"
35046 "          goto again;\n"
35047 "        }\n"
35048 "      data = guestfs_next_private (g, &key);\n"
35049 "    }\n"
35050 "\n"
35051 msgstr ""
35052
35053 #. type: textblock
35054 #: ../src/guestfs.pod:2133
35055 msgid ""
35056 "Note that the above loop is guaranteed to terminate because the keys are "
35057 "being deleted, but other manipulations of keys within the loop might not "
35058 "terminate unless you also maintain an indication of which keys have been "
35059 "visited."
35060 msgstr ""
35061
35062 #. type: =end
35063 #: ../src/guestfs.pod:2138 ../src/guestfs.pod:2143
35064 msgid "html"
35065 msgstr ""
35066
35067 #. type: textblock
35068 #: ../src/guestfs.pod:2140
35069 msgid ""
35070 "<!-- old anchor for the next section --> <a name="
35071 "\"state_machine_and_low_level_event_api\"/>"
35072 msgstr ""
35073
35074 #. type: =head1
35075 #: ../src/guestfs.pod:2145
35076 msgid "ARCHITECTURE"
35077 msgstr ""
35078
35079 #. type: textblock
35080 #: ../src/guestfs.pod:2147
35081 msgid ""
35082 "Internally, libguestfs is implemented by running an appliance (a special "
35083 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
35084 "process of the main program."
35085 msgstr ""
35086
35087 #. type: verbatim
35088 #: ../src/guestfs.pod:2151
35089 #, no-wrap
35090 msgid ""
35091 "  ___________________\n"
35092 " /                   \\\n"
35093 " | main program      |\n"
35094 " |                   |\n"
35095 " |                   |           child process / appliance\n"
35096 " |                   |           __________________________\n"
35097 " |                   |          / qemu                     \\\n"
35098 " +-------------------+   RPC    |      +-----------------+ |\n"
35099 " | libguestfs     <--------------------> guestfsd        | |\n"
35100 " |                   |          |      +-----------------+ |\n"
35101 " \\___________________/          |      | Linux kernel    | |\n"
35102 "                                |      +--^--------------+ |\n"
35103 "                                \\_________|________________/\n"
35104 "                                          |\n"
35105 "                                   _______v______\n"
35106 "                                  /              \\\n"
35107 "                                  | Device or    |\n"
35108 "                                  | disk image   |\n"
35109 "                                  \\______________/\n"
35110 "\n"
35111 msgstr ""
35112
35113 #. type: textblock
35114 #: ../src/guestfs.pod:2171
35115 msgid ""
35116 "The library, linked to the main program, creates the child process and hence "
35117 "the appliance in the L</guestfs_launch> function."
35118 msgstr ""
35119
35120 #. type: textblock
35121 #: ../src/guestfs.pod:2174
35122 msgid ""
35123 "Inside the appliance is a Linux kernel and a complete stack of userspace "
35124 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
35125 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
35126 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
35127 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
35128 "attached to the qemu process which translates device access by the "
35129 "appliance's Linux kernel into accesses to the image."
35130 msgstr ""
35131
35132 #. type: textblock
35133 #: ../src/guestfs.pod:2183
35134 msgid ""
35135 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
35136 "Although the disk image you are attached to might also be used by some "
35137 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
35138 "care if both libguestfs's qemu process and your virtual machine are trying "
35139 "to update the disk image at the same time, since these usually results in "
35140 "massive disk corruption)."
35141 msgstr ""
35142
35143 #. type: =head1
35144 #: ../src/guestfs.pod:2190
35145 msgid "STATE MACHINE"
35146 msgstr ""
35147
35148 #. type: textblock
35149 #: ../src/guestfs.pod:2192
35150 msgid "libguestfs uses a state machine to model the child process:"
35151 msgstr ""
35152
35153 #. type: verbatim
35154 #: ../src/guestfs.pod:2194
35155 #, no-wrap
35156 msgid ""
35157 "                         |\n"
35158 "                    guestfs_create\n"
35159 "                         |\n"
35160 "                         |\n"
35161 "                     ____V_____\n"
35162 "                    /          \\\n"
35163 "                    |  CONFIG  |\n"
35164 "                    \\__________/\n"
35165 "                     ^ ^   ^  \\\n"
35166 "                    /  |    \\  \\ guestfs_launch\n"
35167 "                   /   |    _\\__V______\n"
35168 "                  /    |   /           \\\n"
35169 "                 /     |   | LAUNCHING |\n"
35170 "                /      |   \\___________/\n"
35171 "               /       |       /\n"
35172 "              /        |  guestfs_launch\n"
35173 "             /         |     /\n"
35174 "    ______  /        __|____V\n"
35175 "   /      \\ ------> /        \\\n"
35176 "   | BUSY |         | READY  |\n"
35177 "   \\______/ <------ \\________/\n"
35178 "\n"
35179 msgstr ""
35180
35181 #. type: textblock
35182 #: ../src/guestfs.pod:2216
35183 msgid ""
35184 "The normal transitions are (1) CONFIG (when the handle is created, but there "
35185 "is no child process), (2) LAUNCHING (when the child process is booting up), "
35186 "(3) alternating between READY and BUSY as commands are issued to, and "
35187 "carried out by, the child process."
35188 msgstr ""
35189
35190 #. type: textblock
35191 #: ../src/guestfs.pod:2221
35192 msgid ""
35193 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
35194 "asynchronously at any time (eg. due to some internal error), and that causes "
35195 "the state to transition back to CONFIG."
35196 msgstr ""
35197
35198 #. type: textblock
35199 #: ../src/guestfs.pod:2225
35200 msgid ""
35201 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
35202 "issued when in the CONFIG state."
35203 msgstr ""
35204
35205 #. type: textblock
35206 #: ../src/guestfs.pod:2228
35207 msgid ""
35208 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
35209 "L</guestfs_launch> blocks until the child process is READY to accept "
35210 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
35211 "moves the state from CONFIG to LAUNCHING while it is running."
35212 msgstr ""
35213
35214 #. type: textblock
35215 #: ../src/guestfs.pod:2234
35216 msgid ""
35217 "API actions such as L</guestfs_mount> can only be issued when in the READY "
35218 "state.  These API calls block waiting for the command to be carried out (ie. "
35219 "the state to transition to BUSY and then back to READY).  There are no non-"
35220 "blocking versions, and no way to issue more than one command per handle at "
35221 "the same time."
35222 msgstr ""
35223
35224 #. type: textblock
35225 #: ../src/guestfs.pod:2240
35226 msgid ""
35227 "Finally, the child process sends asynchronous messages back to the main "
35228 "program, such as kernel log messages.  You can register a callback to "
35229 "receive these messages."
35230 msgstr ""
35231
35232 #. type: =head1
35233 #: ../src/guestfs.pod:2244
35234 msgid "INTERNALS"
35235 msgstr ""
35236
35237 #. type: =head2
35238 #: ../src/guestfs.pod:2246
35239 msgid "COMMUNICATION PROTOCOL"
35240 msgstr ""
35241
35242 #. type: textblock
35243 #: ../src/guestfs.pod:2248
35244 msgid ""
35245 "Don't rely on using this protocol directly.  This section documents how it "
35246 "currently works, but it may change at any time."
35247 msgstr ""
35248
35249 #. type: textblock
35250 #: ../src/guestfs.pod:2251
35251 msgid ""
35252 "The protocol used to talk between the library and the daemon running inside "
35253 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
35254 "1014, RFC 1832, RFC 4506)."
35255 msgstr ""
35256
35257 #. type: textblock
35258 #: ../src/guestfs.pod:2255
35259 msgid ""
35260 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
35261 "this file is automatically generated)."
35262 msgstr ""
35263
35264 #. type: textblock
35265 #: ../src/guestfs.pod:2258
35266 msgid ""
35267 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
35268 "and C<FileOut> parameters, which are handled with very simple request/reply "
35269 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
35270 "parameters, which use the same request and reply messages, but they may also "
35271 "be followed by files sent using a chunked encoding."
35272 msgstr ""
35273
35274 #. type: =head3
35275 #: ../src/guestfs.pod:2265
35276 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
35277 msgstr ""
35278
35279 #. type: textblock
35280 #: ../src/guestfs.pod:2267
35281 msgid "For ordinary functions, the request message is:"
35282 msgstr ""
35283
35284 #. type: verbatim
35285 #: ../src/guestfs.pod:2269
35286 #, no-wrap
35287 msgid ""
35288 " total length (header + arguments,\n"
35289 "      but not including the length word itself)\n"
35290 " struct guestfs_message_header (encoded as XDR)\n"
35291 " struct guestfs_<foo>_args (encoded as XDR)\n"
35292 "\n"
35293 msgstr ""
35294
35295 #. type: textblock
35296 #: ../src/guestfs.pod:2274
35297 msgid ""
35298 "The total length field allows the daemon to allocate a fixed size buffer "
35299 "into which it slurps the rest of the message.  As a result, the total length "
35300 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
35301 "effective size of any request is limited to somewhere under this size."
35302 msgstr ""
35303
35304 #. type: textblock
35305 #: ../src/guestfs.pod:2280
35306 msgid ""
35307 "Note also that many functions don't take any arguments, in which case the "
35308 "C<guestfs_I<foo>_args> is completely omitted."
35309 msgstr ""
35310
35311 #. type: textblock
35312 #: ../src/guestfs.pod:2283
35313 msgid ""
35314 "The header contains the procedure number (C<guestfs_proc>) which is how the "
35315 "receiver knows what type of args structure to expect, or none at all."
35316 msgstr ""
35317
35318 #. type: textblock
35319 #: ../src/guestfs.pod:2287
35320 msgid ""
35321 "For functions that take optional arguments, the optional arguments are "
35322 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
35323 "arguments.  A bitmask in the header indicates which optional arguments are "
35324 "meaningful.  The bitmask is also checked to see if it contains bits set "
35325 "which the daemon does not know about (eg. if more optional arguments were "
35326 "added in a later version of the library), and this causes the call to be "
35327 "rejected."
35328 msgstr ""
35329
35330 #. type: textblock
35331 #: ../src/guestfs.pod:2295
35332 msgid "The reply message for ordinary functions is:"
35333 msgstr ""
35334
35335 #. type: verbatim
35336 #: ../src/guestfs.pod:2297
35337 #, no-wrap
35338 msgid ""
35339 " total length (header + ret,\n"
35340 "      but not including the length word itself)\n"
35341 " struct guestfs_message_header (encoded as XDR)\n"
35342 " struct guestfs_<foo>_ret (encoded as XDR)\n"
35343 "\n"
35344 msgstr ""
35345
35346 #. type: textblock
35347 #: ../src/guestfs.pod:2302
35348 msgid ""
35349 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
35350 "functions that return no formal return values."
35351 msgstr ""
35352
35353 #. type: textblock
35354 #: ../src/guestfs.pod:2305
35355 msgid ""
35356 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
35357 msgstr ""
35358
35359 #. type: textblock
35360 #: ../src/guestfs.pod:2308
35361 msgid ""
35362 "In the case of an error, a flag is set in the header, and the reply message "
35363 "is slightly changed:"
35364 msgstr ""
35365
35366 #. type: verbatim
35367 #: ../src/guestfs.pod:2311
35368 #, no-wrap
35369 msgid ""
35370 " total length (header + error,\n"
35371 "      but not including the length word itself)\n"
35372 " struct guestfs_message_header (encoded as XDR)\n"
35373 " struct guestfs_message_error (encoded as XDR)\n"
35374 "\n"
35375 msgstr ""
35376
35377 #. type: textblock
35378 #: ../src/guestfs.pod:2316
35379 msgid ""
35380 "The C<guestfs_message_error> structure contains the error message as a "
35381 "string."
35382 msgstr ""
35383
35384 #. type: =head3
35385 #: ../src/guestfs.pod:2319
35386 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
35387 msgstr ""
35388
35389 #. type: textblock
35390 #: ../src/guestfs.pod:2321
35391 msgid ""
35392 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
35393 "The normal request message is sent (see above).  However this is followed by "
35394 "a sequence of file chunks."
35395 msgstr ""
35396
35397 #. type: verbatim
35398 #: ../src/guestfs.pod:2325
35399 #, no-wrap
35400 msgid ""
35401 " total length (header + arguments,\n"
35402 "      but not including the length word itself,\n"
35403 "      and not including the chunks)\n"
35404 " struct guestfs_message_header (encoded as XDR)\n"
35405 " struct guestfs_<foo>_args (encoded as XDR)\n"
35406 " sequence of chunks for FileIn param #0\n"
35407 " sequence of chunks for FileIn param #1 etc.\n"
35408 "\n"
35409 msgstr ""
35410
35411 #. type: textblock
35412 #: ../src/guestfs.pod:2333
35413 msgid "The \"sequence of chunks\" is:"
35414 msgstr ""
35415
35416 #. type: verbatim
35417 #: ../src/guestfs.pod:2335
35418 #, no-wrap
35419 msgid ""
35420 " length of chunk (not including length word itself)\n"
35421 " struct guestfs_chunk (encoded as XDR)\n"
35422 " length of chunk\n"
35423 " struct guestfs_chunk (encoded as XDR)\n"
35424 "   ...\n"
35425 " length of chunk\n"
35426 " struct guestfs_chunk (with data.data_len == 0)\n"
35427 "\n"
35428 msgstr ""
35429
35430 #. type: textblock
35431 #: ../src/guestfs.pod:2343
35432 msgid ""
35433 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
35434 "is set in the final chunk to indicate either successful completion or early "
35435 "cancellation."
35436 msgstr ""
35437
35438 #. type: textblock
35439 #: ../src/guestfs.pod:2347
35440 msgid ""
35441 "At time of writing there are no functions that have more than one FileIn "
35442 "parameter.  However this is (theoretically) supported, by sending the "
35443 "sequence of chunks for each FileIn parameter one after another (from left to "
35444 "right)."
35445 msgstr ""
35446
35447 #. type: textblock
35448 #: ../src/guestfs.pod:2352
35449 msgid ""
35450 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
35451 "transfer.  The library does this by sending a chunk with a special flag set "
35452 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
35453 "RPC, does I<not> send any reply, and goes back to reading the next request."
35454 msgstr ""
35455
35456 #. type: textblock
35457 #: ../src/guestfs.pod:2358
35458 msgid ""
35459 "The daemon may also cancel.  It does this by writing a special word "
35460 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
35461 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
35462 "cancel chunk).  The special word is chosen so that even if cancellation "
35463 "happens right at the end of the transfer (after the library has finished "
35464 "writing and has started listening for the reply), the \"spurious\" cancel "
35465 "flag will not be confused with the reply message."
35466 msgstr ""
35467
35468 #. type: textblock
35469 #: ../src/guestfs.pod:2367
35470 msgid ""
35471 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
35472 "limit), and also files where the size is not known in advance (eg. from "
35473 "pipes or sockets).  However the chunks are rather small "
35474 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
35475 "to keep much in memory."
35476 msgstr ""
35477
35478 #. type: =head3
35479 #: ../src/guestfs.pod:2373
35480 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
35481 msgstr ""
35482
35483 #. type: textblock
35484 #: ../src/guestfs.pod:2375
35485 msgid ""
35486 "The protocol for FileOut parameters is exactly the same as for FileIn "
35487 "parameters, but with the roles of daemon and library reversed."
35488 msgstr ""
35489
35490 #. type: verbatim
35491 #: ../src/guestfs.pod:2378
35492 #, no-wrap
35493 msgid ""
35494 " total length (header + ret,\n"
35495 "      but not including the length word itself,\n"
35496 "      and not including the chunks)\n"
35497 " struct guestfs_message_header (encoded as XDR)\n"
35498 " struct guestfs_<foo>_ret (encoded as XDR)\n"
35499 " sequence of chunks for FileOut param #0\n"
35500 " sequence of chunks for FileOut param #1 etc.\n"
35501 "\n"
35502 msgstr ""
35503
35504 #. type: =head3
35505 #: ../src/guestfs.pod:2386
35506 msgid "INITIAL MESSAGE"
35507 msgstr ""
35508
35509 #. type: textblock
35510 #: ../src/guestfs.pod:2388
35511 msgid ""
35512 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
35513 "which indicates that the guest and daemon is alive.  This is what L</"
35514 "guestfs_launch> waits for."
35515 msgstr ""
35516
35517 #. type: =head3
35518 #: ../src/guestfs.pod:2392
35519 msgid "PROGRESS NOTIFICATION MESSAGES"
35520 msgstr ""
35521
35522 #. type: textblock
35523 #: ../src/guestfs.pod:2394
35524 msgid ""
35525 "The daemon may send progress notification messages at any time.  These are "
35526 "distinguished by the normal length word being replaced by "
35527 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
35528 msgstr ""
35529
35530 #. type: textblock
35531 #: ../src/guestfs.pod:2398
35532 msgid ""
35533 "The library turns them into progress callbacks (see L</"
35534 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
35535 "if not."
35536 msgstr ""
35537
35538 #. type: textblock
35539 #: ../src/guestfs.pod:2402
35540 msgid ""
35541 "The daemon self-limits the frequency of progress messages it sends (see "
35542 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
35543 "messages."
35544 msgstr ""
35545
35546 #. type: =head1
35547 #: ../src/guestfs.pod:2406
35548 msgid "LIBGUESTFS VERSION NUMBERS"
35549 msgstr ""
35550
35551 #. type: textblock
35552 #: ../src/guestfs.pod:2408
35553 msgid ""
35554 "Since April 2010, libguestfs has started to make separate development and "
35555 "stable releases, along with corresponding branches in our git repository.  "
35556 "These separate releases can be identified by version number:"
35557 msgstr ""
35558
35559 #. type: verbatim
35560 #: ../src/guestfs.pod:2413
35561 #, no-wrap
35562 msgid ""
35563 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
35564 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
35565 "       |\n"
35566 "       v\n"
35567 " 1  .  3  .  5\n"
35568 " ^           ^\n"
35569 " |           |\n"
35570 " |           `-------- sub-version\n"
35571 " |\n"
35572 " `------ always '1' because we don't change the ABI\n"
35573 "\n"
35574 msgstr ""
35575
35576 #. type: textblock
35577 #: ../src/guestfs.pod:2424
35578 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
35579 msgstr ""
35580
35581 #. type: textblock
35582 #: ../src/guestfs.pod:2426
35583 msgid ""
35584 "As time passes we cherry pick fixes from the development branch and backport "
35585 "those into the stable branch, the effect being that the stable branch should "
35586 "get more stable and less buggy over time.  So the stable releases are ideal "
35587 "for people who don't need new features but would just like the software to "
35588 "work."
35589 msgstr ""
35590
35591 #. type: textblock
35592 #: ../src/guestfs.pod:2432
35593 msgid "Our criteria for backporting changes are:"
35594 msgstr ""
35595
35596 #. type: textblock
35597 #: ../src/guestfs.pod:2438
35598 msgid ""
35599 "Documentation changes which don't affect any code are backported unless the "
35600 "documentation refers to a future feature which is not in stable."
35601 msgstr ""
35602
35603 #. type: textblock
35604 #: ../src/guestfs.pod:2444
35605 msgid ""
35606 "Bug fixes which are not controversial, fix obvious problems, and have been "
35607 "well tested are backported."
35608 msgstr ""
35609
35610 #. type: textblock
35611 #: ../src/guestfs.pod:2449
35612 msgid ""
35613 "Simple rearrangements of code which shouldn't affect how it works get "
35614 "backported.  This is so that the code in the two branches doesn't get too "
35615 "far out of step, allowing us to backport future fixes more easily."
35616 msgstr ""
35617
35618 #. type: textblock
35619 #: ../src/guestfs.pod:2455
35620 msgid ""
35621 "We I<don't> backport new features, new APIs, new tools etc, except in one "
35622 "exceptional case: the new feature is required in order to implement an "
35623 "important bug fix."
35624 msgstr ""
35625
35626 #. type: textblock
35627 #: ../src/guestfs.pod:2461
35628 msgid ""
35629 "A new stable branch starts when we think the new features in development are "
35630 "substantial and compelling enough over the current stable branch to warrant "
35631 "it.  When that happens we create new stable and development versions 1.N.0 "
35632 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
35633 "stable at this point, but by backporting fixes from development, that branch "
35634 "will stabilize over time."
35635 msgstr ""
35636
35637 #. type: =head1
35638 #: ../src/guestfs.pod:2469
35639 msgid "EXTENDING LIBGUESTFS"
35640 msgstr ""
35641
35642 #. type: =head2
35643 #: ../src/guestfs.pod:2471
35644 msgid "ADDING A NEW API ACTION"
35645 msgstr ""
35646
35647 #. type: textblock
35648 #: ../src/guestfs.pod:2473
35649 msgid ""
35650 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
35651 "documentation) are generated, and this makes it easy to extend the "
35652 "libguestfs API."
35653 msgstr ""
35654
35655 #. type: textblock
35656 #: ../src/guestfs.pod:2477
35657 msgid "To add a new API action there are two changes:"
35658 msgstr ""
35659
35660 #. type: textblock
35661 #: ../src/guestfs.pod:2483
35662 msgid ""
35663 "You need to add a description of the call (name, parameters, return type, "
35664 "tests, documentation) to C<generator/generator_actions.ml>."
35665 msgstr ""
35666
35667 #. type: textblock
35668 #: ../src/guestfs.pod:2486
35669 msgid ""
35670 "There are two sorts of API action, depending on whether the call goes "
35671 "through to the daemon in the appliance, or is serviced entirely by the "
35672 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
35673 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
35674 "an example of the latter, since a trace flag is maintained in the handle and "
35675 "all tracing is done on the library side."
35676 msgstr ""
35677
35678 #. type: textblock
35679 #: ../src/guestfs.pod:2494
35680 msgid ""
35681 "Most new actions are of the first type, and get added to the "
35682 "C<daemon_functions> list.  Each function has a unique procedure number used "
35683 "in the RPC protocol which is assigned to that action when we publish "
35684 "libguestfs and cannot be reused.  Take the latest procedure number and "
35685 "increment it."
35686 msgstr ""
35687
35688 #. type: textblock
35689 #: ../src/guestfs.pod:2500
35690 msgid ""
35691 "For library-only actions of the second type, add to the "
35692 "C<non_daemon_functions> list.  Since these functions are serviced by the "
35693 "library and do not travel over the RPC mechanism to the daemon, these "
35694 "functions do not need a procedure number, and so the procedure number is set "
35695 "to C<-1>."
35696 msgstr ""
35697
35698 #. type: textblock
35699 #: ../src/guestfs.pod:2508
35700 msgid "Implement the action (in C):"
35701 msgstr ""
35702
35703 #. type: textblock
35704 #: ../src/guestfs.pod:2510
35705 msgid ""
35706 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
35707 "C<daemon/> directory."
35708 msgstr ""
35709
35710 #. type: textblock
35711 #: ../src/guestfs.pod:2513
35712 msgid ""
35713 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
35714 "(note: double underscore) in the C<src/> directory."
35715 msgstr ""
35716
35717 #. type: textblock
35718 #: ../src/guestfs.pod:2516
35719 msgid "In either case, use another function as an example of what to do."
35720 msgstr ""
35721
35722 #. type: textblock
35723 #: ../src/guestfs.pod:2520
35724 msgid "After making these changes, use C<make> to compile."
35725 msgstr ""
35726
35727 #. type: textblock
35728 #: ../src/guestfs.pod:2522
35729 msgid ""
35730 "Note that you don't need to implement the RPC, language bindings, manual "
35731 "pages or anything else.  It's all automatically generated from the OCaml "
35732 "description."
35733 msgstr ""
35734
35735 #. type: =head2
35736 #: ../src/guestfs.pod:2526
35737 msgid "ADDING TESTS FOR AN API ACTION"
35738 msgstr ""
35739
35740 #. type: textblock
35741 #: ../src/guestfs.pod:2528
35742 msgid ""
35743 "You can supply zero or as many tests as you want per API call.  The tests "
35744 "can either be added as part of the API description (C<generator/"
35745 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
35746 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
35747 "slower, so if possible use the first method."
35748 msgstr ""
35749
35750 #. type: textblock
35751 #: ../src/guestfs.pod:2534
35752 msgid ""
35753 "The following describes the test environment used when you add an API test "
35754 "in C<generator_actions.ml>."
35755 msgstr ""
35756
35757 #. type: textblock
35758 #: ../src/guestfs.pod:2537
35759 msgid "The test environment has 4 block devices:"
35760 msgstr ""
35761
35762 #. type: =item
35763 #: ../src/guestfs.pod:2541
35764 msgid "C</dev/sda> 500MB"
35765 msgstr ""
35766
35767 #. type: textblock
35768 #: ../src/guestfs.pod:2543
35769 msgid "General block device for testing."
35770 msgstr ""
35771
35772 #. type: =item
35773 #: ../src/guestfs.pod:2545
35774 msgid "C</dev/sdb> 50MB"
35775 msgstr ""
35776
35777 #. type: textblock
35778 #: ../src/guestfs.pod:2547
35779 msgid ""
35780 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
35781 "operations."
35782 msgstr ""
35783
35784 #. type: =item
35785 #: ../src/guestfs.pod:2550
35786 msgid "C</dev/sdc> 10MB"
35787 msgstr ""
35788
35789 #. type: textblock
35790 #: ../src/guestfs.pod:2552
35791 msgid "Used in a few tests where two block devices are needed."
35792 msgstr ""
35793
35794 #. type: =item
35795 #: ../src/guestfs.pod:2554
35796 msgid "C</dev/sdd>"
35797 msgstr ""
35798
35799 #. type: textblock
35800 #: ../src/guestfs.pod:2556
35801 msgid "ISO with fixed content (see C<images/test.iso>)."
35802 msgstr ""
35803
35804 #. type: textblock
35805 #: ../src/guestfs.pod:2560
35806 msgid ""
35807 "To be able to run the tests in a reasonable amount of time, the libguestfs "
35808 "appliance and block devices are reused between tests.  So don't try testing "
35809 "L</guestfs_kill_subprocess> :-x"
35810 msgstr ""
35811
35812 #. type: textblock
35813 #: ../src/guestfs.pod:2564
35814 msgid ""
35815 "Each test starts with an initial scenario, selected using one of the "
35816 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
35817 "initialize the disks mentioned above in a particular way as documented in "
35818 "C<generator_types.ml>.  You should not assume anything about the previous "
35819 "contents of other disks that are not initialized."
35820 msgstr ""
35821
35822 #. type: textblock
35823 #: ../src/guestfs.pod:2570
35824 msgid ""
35825 "You can add a prerequisite clause to any individual test.  This is a run-"
35826 "time check, which, if it fails, causes the test to be skipped.  Useful if "
35827 "testing a command which might not work on all variations of libguestfs "
35828 "builds.  A test that has prerequisite of C<Always> means to run "
35829 "unconditionally."
35830 msgstr ""
35831
35832 #. type: textblock
35833 #: ../src/guestfs.pod:2576
35834 msgid ""
35835 "In addition, packagers can skip individual tests by setting environment "
35836 "variables before running C<make check>."
35837 msgstr ""
35838
35839 #. type: verbatim
35840 #: ../src/guestfs.pod:2579
35841 #, no-wrap
35842 msgid ""
35843 " SKIP_TEST_<CMD>_<NUM>=1\n"
35844 "\n"
35845 msgstr ""
35846
35847 #. type: textblock
35848 #: ../src/guestfs.pod:2581
35849 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
35850 msgstr ""
35851
35852 #. type: textblock
35853 #: ../src/guestfs.pod:2583
35854 msgid "or:"
35855 msgstr ""
35856
35857 #. type: verbatim
35858 #: ../src/guestfs.pod:2585
35859 #, no-wrap
35860 msgid ""
35861 " SKIP_TEST_<CMD>=1\n"
35862 "\n"
35863 msgstr ""
35864
35865 #. type: textblock
35866 #: ../src/guestfs.pod:2587
35867 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
35868 msgstr ""
35869
35870 #. type: textblock
35871 #: ../src/guestfs.pod:2589
35872 msgid "Packagers can run only certain tests by setting for example:"
35873 msgstr ""
35874
35875 #. type: verbatim
35876 #: ../src/guestfs.pod:2591
35877 #, no-wrap
35878 msgid ""
35879 " TEST_ONLY=\"vfs_type zerofree\"\n"
35880 "\n"
35881 msgstr ""
35882
35883 #. type: textblock
35884 #: ../src/guestfs.pod:2593
35885 msgid ""
35886 "See C<capitests/tests.c> for more details of how these environment variables "
35887 "work."
35888 msgstr ""
35889
35890 #. type: =head2
35891 #: ../src/guestfs.pod:2596
35892 msgid "DEBUGGING NEW API ACTIONS"
35893 msgstr ""
35894
35895 #. type: textblock
35896 #: ../src/guestfs.pod:2598
35897 msgid "Test new actions work before submitting them."
35898 msgstr ""
35899
35900 #. type: textblock
35901 #: ../src/guestfs.pod:2600
35902 msgid "You can use guestfish to try out new commands."
35903 msgstr ""
35904
35905 #. type: textblock
35906 #: ../src/guestfs.pod:2602
35907 msgid ""
35908 "Debugging the daemon is a problem because it runs inside a minimal "
35909 "environment.  However you can fprintf messages in the daemon to stderr, and "
35910 "they will show up if you use C<guestfish -v>."
35911 msgstr ""
35912
35913 #. type: =head2
35914 #: ../src/guestfs.pod:2606
35915 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
35916 msgstr ""
35917
35918 #. type: textblock
35919 #: ../src/guestfs.pod:2608
35920 msgid ""
35921 "Our C source code generally adheres to some basic code-formatting "
35922 "conventions.  The existing code base is not totally consistent on this "
35923 "front, but we do prefer that contributed code be formatted similarly.  In "
35924 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
35925 "indentation level, and other than that, follow the K&R style."
35926 msgstr ""
35927
35928 #. type: textblock
35929 #: ../src/guestfs.pod:2614
35930 msgid ""
35931 "If you use Emacs, add the following to one of one of your start-up files (e."
35932 "g., ~/.emacs), to help ensure that you get indentation right:"
35933 msgstr ""
35934
35935 #. type: verbatim
35936 #: ../src/guestfs.pod:2617
35937 #, no-wrap
35938 msgid ""
35939 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
35940 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
35941 " (add-hook 'find-file-hook\n"
35942 "     '(lambda () (if (and buffer-file-name\n"
35943 "                          (string-match \"/libguestfs\\\\>\"\n"
35944 "                              (buffer-file-name))\n"
35945 "                          (not (string-equal mode-name \"Change Log\"))\n"
35946 "                          (not (string-equal mode-name \"Makefile\")))\n"
35947 "                     (setq indent-tabs-mode nil))))\n"
35948 " \n"
35949 msgstr ""
35950
35951 #. type: verbatim
35952 #: ../src/guestfs.pod:2627
35953 #, no-wrap
35954 msgid ""
35955 " ;;; When editing C sources in libguestfs, use this style.\n"
35956 " (defun libguestfs-c-mode ()\n"
35957 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
35958 "   (interactive)\n"
35959 "   (c-set-style \"K&R\")\n"
35960 "   (setq c-indent-level 2)\n"
35961 "   (setq c-basic-offset 2))\n"
35962 " (add-hook 'c-mode-hook\n"
35963 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
35964 "                               (buffer-file-name))\n"
35965 "                           (libguestfs-c-mode))))\n"
35966 "\n"
35967 msgstr ""
35968
35969 #. type: textblock
35970 #: ../src/guestfs.pod:2639
35971 msgid "Enable warnings when compiling (and fix any problems this finds):"
35972 msgstr ""
35973
35974 #. type: verbatim
35975 #: ../src/guestfs.pod:2642
35976 #, no-wrap
35977 msgid ""
35978 " ./configure --enable-gcc-warnings\n"
35979 "\n"
35980 msgstr ""
35981
35982 #. type: textblock
35983 #: ../src/guestfs.pod:2644
35984 msgid "Useful targets are:"
35985 msgstr ""
35986
35987 #. type: verbatim
35988 #: ../src/guestfs.pod:2646
35989 #, no-wrap
35990 msgid ""
35991 " make syntax-check  # checks the syntax of the C code\n"
35992 " make check         # runs the test suite\n"
35993 "\n"
35994 msgstr ""
35995
35996 #. type: =head2
35997 #: ../src/guestfs.pod:2649
35998 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
35999 msgstr ""
36000
36001 #. type: textblock
36002 #: ../src/guestfs.pod:2651
36003 msgid ""
36004 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
36005 "which are used to do shell quoting."
36006 msgstr ""
36007
36008 #. type: =item
36009 #: ../src/guestfs.pod:2656
36010 msgid "%Q"
36011 msgstr ""
36012
36013 #. type: textblock
36014 #: ../src/guestfs.pod:2658
36015 msgid ""
36016 "Simple shell quoted string.  Any spaces or other shell characters are "
36017 "escaped for you."
36018 msgstr ""
36019
36020 #. type: =item
36021 #: ../src/guestfs.pod:2661
36022 msgid "%R"
36023 msgstr ""
36024
36025 #. type: textblock
36026 #: ../src/guestfs.pod:2663
36027 msgid ""
36028 "Same as C<%Q> except the string is treated as a path which is prefixed by "
36029 "the sysroot."
36030 msgstr ""
36031
36032 #. type: verbatim
36033 #: ../src/guestfs.pod:2670
36034 #, no-wrap
36035 msgid ""
36036 " asprintf (&cmd, \"cat %R\", path);\n"
36037 "\n"
36038 msgstr ""
36039
36040 #. type: textblock
36041 #: ../src/guestfs.pod:2672
36042 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
36043 msgstr ""
36044
36045 #. type: textblock
36046 #: ../src/guestfs.pod:2674
36047 msgid ""
36048 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
36049 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
36050 "they are not passed via the shell (instead, straight to exec).  You probably "
36051 "want to use the C<sysroot_path()> function however."
36052 msgstr ""
36053
36054 #. type: =head2
36055 #: ../src/guestfs.pod:2680
36056 msgid "SUBMITTING YOUR NEW API ACTIONS"
36057 msgstr ""
36058
36059 #. type: textblock
36060 #: ../src/guestfs.pod:2682
36061 msgid ""
36062 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
36063 "libguestfs> and CC to L<rjones@redhat.com>."
36064 msgstr ""
36065
36066 #. type: =head2
36067 #: ../src/guestfs.pod:2686
36068 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
36069 msgstr ""
36070
36071 #. type: textblock
36072 #: ../src/guestfs.pod:2688
36073 msgid "We support i18n (gettext anyhow) in the library."
36074 msgstr ""
36075
36076 #. type: textblock
36077 #: ../src/guestfs.pod:2690
36078 msgid ""
36079 "However many messages come from the daemon, and we don't translate those at "
36080 "the moment.  One reason is that the appliance generally has all locale files "
36081 "removed from it, because they take up a lot of space.  So we'd have to readd "
36082 "some of those, as well as copying our PO files into the appliance."
36083 msgstr ""
36084
36085 #. type: textblock
36086 #: ../src/guestfs.pod:2696
36087 msgid ""
36088 "Debugging messages are never translated, since they are intended for the "
36089 "programmers."
36090 msgstr ""
36091
36092 #. type: =head2
36093 #: ../src/guestfs.pod:2699
36094 msgid "SOURCE CODE SUBDIRECTORIES"
36095 msgstr ""
36096
36097 #. type: textblock
36098 #: ../src/guestfs.pod:2705
36099 msgid "The libguestfs appliance, build scripts and so on."
36100 msgstr ""
36101
36102 #. type: =item
36103 #: ../src/guestfs.pod:2707
36104 msgid "C<capitests>"
36105 msgstr ""
36106
36107 #. type: textblock
36108 #: ../src/guestfs.pod:2709
36109 msgid "Automated tests of the C API."
36110 msgstr ""
36111
36112 #. type: =item
36113 #: ../src/guestfs.pod:2711
36114 msgid "C<cat>"
36115 msgstr ""
36116
36117 #. type: textblock
36118 #: ../src/guestfs.pod:2713
36119 msgid ""
36120 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
36121 "documentation."
36122 msgstr ""
36123
36124 #. type: =item
36125 #: ../src/guestfs.pod:2716
36126 msgid "C<caution>"
36127 msgstr ""
36128
36129 #. type: textblock
36130 #: ../src/guestfs.pod:2718
36131 msgid ""
36132 "Safety and liveness tests of components that libguestfs depends upon (not of "
36133 "libguestfs itself).  Mainly this is for qemu and the kernel."
36134 msgstr ""
36135
36136 #. type: =item
36137 #: ../src/guestfs.pod:2721
36138 msgid "C<contrib>"
36139 msgstr ""
36140
36141 #. type: textblock
36142 #: ../src/guestfs.pod:2723
36143 msgid "Outside contributions, experimental parts."
36144 msgstr ""
36145
36146 #. type: =item
36147 #: ../src/guestfs.pod:2725
36148 msgid "C<daemon>"
36149 msgstr ""
36150
36151 #. type: textblock
36152 #: ../src/guestfs.pod:2727
36153 msgid ""
36154 "The daemon that runs inside the libguestfs appliance and carries out actions."
36155 msgstr ""
36156
36157 #. type: =item
36158 #: ../src/guestfs.pod:2730
36159 msgid "C<df>"
36160 msgstr ""
36161
36162 #. type: textblock
36163 #: ../src/guestfs.pod:2732
36164 msgid "L<virt-df(1)> command and documentation."
36165 msgstr ""
36166
36167 #. type: =item
36168 #: ../src/guestfs.pod:2734
36169 msgid "C<edit>"
36170 msgstr ""
36171
36172 #. type: textblock
36173 #: ../src/guestfs.pod:2736
36174 msgid "L<virt-edit(1)> command and documentation."
36175 msgstr ""
36176
36177 #. type: =item
36178 #: ../src/guestfs.pod:2738
36179 msgid "C<examples>"
36180 msgstr ""
36181
36182 #. type: textblock
36183 #: ../src/guestfs.pod:2740
36184 msgid "C API example code."
36185 msgstr ""
36186
36187 #. type: =item
36188 #: ../src/guestfs.pod:2742
36189 msgid "C<fish>"
36190 msgstr ""
36191
36192 #. type: textblock
36193 #: ../src/guestfs.pod:2744
36194 msgid ""
36195 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
36196 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
36197 "L<virt-tar-out(1)>."
36198 msgstr ""
36199
36200 #. type: =item
36201 #: ../src/guestfs.pod:2748
36202 msgid "C<fuse>"
36203 msgstr ""
36204
36205 #. type: textblock
36206 #: ../src/guestfs.pod:2750
36207 msgid ""
36208 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
36209 msgstr ""
36210
36211 #. type: =item
36212 #: ../src/guestfs.pod:2752
36213 msgid "C<generator>"
36214 msgstr ""
36215
36216 #. type: textblock
36217 #: ../src/guestfs.pod:2754
36218 msgid ""
36219 "The crucially important generator, used to automatically generate large "
36220 "amounts of boilerplate C code for things like RPC and bindings."
36221 msgstr ""
36222
36223 #. type: =item
36224 #: ../src/guestfs.pod:2757
36225 msgid "C<images>"
36226 msgstr ""
36227
36228 #. type: textblock
36229 #: ../src/guestfs.pod:2759
36230 msgid "Files used by the test suite."
36231 msgstr ""
36232
36233 #. type: textblock
36234 #: ../src/guestfs.pod:2761
36235 msgid "Some \"phony\" guest images which we test against."
36236 msgstr ""
36237
36238 #. type: =item
36239 #: ../src/guestfs.pod:2763
36240 msgid "C<inspector>"
36241 msgstr ""
36242
36243 #. type: textblock
36244 #: ../src/guestfs.pod:2765
36245 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
36246 msgstr ""
36247
36248 #. type: =item
36249 #: ../src/guestfs.pod:2767
36250 msgid "C<logo>"
36251 msgstr ""
36252
36253 #. type: textblock
36254 #: ../src/guestfs.pod:2769
36255 msgid "Logo used on the website.  The fish is called Arthur by the way."
36256 msgstr ""
36257
36258 #. type: =item
36259 #: ../src/guestfs.pod:2771
36260 msgid "C<m4>"
36261 msgstr ""
36262
36263 #. type: textblock
36264 #: ../src/guestfs.pod:2773
36265 msgid "M4 macros used by autoconf."
36266 msgstr ""
36267
36268 #. type: =item
36269 #: ../src/guestfs.pod:2775
36270 msgid "C<po>"
36271 msgstr ""
36272
36273 #. type: textblock
36274 #: ../src/guestfs.pod:2777
36275 msgid "Translations of simple gettext strings."
36276 msgstr ""
36277
36278 #. type: =item
36279 #: ../src/guestfs.pod:2779
36280 msgid "C<po-docs>"
36281 msgstr ""
36282
36283 #. type: textblock
36284 #: ../src/guestfs.pod:2781
36285 msgid ""
36286 "The build infrastructure and PO files for translations of manpages and POD "
36287 "files.  Eventually this will be combined with the C<po> directory, but that "
36288 "is rather complicated."
36289 msgstr ""
36290
36291 #. type: =item
36292 #: ../src/guestfs.pod:2785
36293 msgid "C<regressions>"
36294 msgstr ""
36295
36296 #. type: textblock
36297 #: ../src/guestfs.pod:2787
36298 msgid "Regression tests."
36299 msgstr ""
36300
36301 #. type: =item
36302 #: ../src/guestfs.pod:2789
36303 msgid "C<rescue>"
36304 msgstr ""
36305
36306 #. type: textblock
36307 #: ../src/guestfs.pod:2791
36308 msgid "L<virt-rescue(1)> command and documentation."
36309 msgstr ""
36310
36311 #. type: =item
36312 #: ../src/guestfs.pod:2793
36313 msgid "C<src>"
36314 msgstr ""
36315
36316 #. type: textblock
36317 #: ../src/guestfs.pod:2795
36318 msgid "Source code to the C library."
36319 msgstr ""
36320
36321 #. type: =item
36322 #: ../src/guestfs.pod:2797
36323 msgid "C<tools>"
36324 msgstr ""
36325
36326 #. type: textblock
36327 #: ../src/guestfs.pod:2799
36328 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
36329 msgstr ""
36330
36331 #. type: =item
36332 #: ../src/guestfs.pod:2801
36333 msgid "C<test-tool>"
36334 msgstr ""
36335
36336 #. type: textblock
36337 #: ../src/guestfs.pod:2803
36338 msgid ""
36339 "Test tool for end users to test if their qemu/kernel combination will work "
36340 "with libguestfs."
36341 msgstr ""
36342
36343 #. type: =item
36344 #: ../src/guestfs.pod:2806
36345 msgid "C<csharp>"
36346 msgstr ""
36347
36348 #. type: =item
36349 #: ../src/guestfs.pod:2808
36350 msgid "C<haskell>"
36351 msgstr ""
36352
36353 #. type: =item
36354 #: ../src/guestfs.pod:2810
36355 msgid "C<java>"
36356 msgstr ""
36357
36358 #. type: =item
36359 #: ../src/guestfs.pod:2812
36360 msgid "C<ocaml>"
36361 msgstr ""
36362
36363 #. type: =item
36364 #: ../src/guestfs.pod:2814
36365 msgid "C<php>"
36366 msgstr ""
36367
36368 #. type: =item
36369 #: ../src/guestfs.pod:2816
36370 msgid "C<perl>"
36371 msgstr ""
36372
36373 #. type: =item
36374 #: ../src/guestfs.pod:2818
36375 msgid "C<python>"
36376 msgstr ""
36377
36378 #. type: =item
36379 #: ../src/guestfs.pod:2820
36380 msgid "C<ruby>"
36381 msgstr ""
36382
36383 #. type: textblock
36384 #: ../src/guestfs.pod:2822
36385 msgid "Language bindings."
36386 msgstr ""
36387
36388 #. type: =head2
36389 #: ../src/guestfs.pod:2826
36390 msgid "MAKING A STABLE RELEASE"
36391 msgstr ""
36392
36393 #. type: textblock
36394 #: ../src/guestfs.pod:2828
36395 msgid ""
36396 "When we make a stable release, there are several steps documented here.  See "
36397 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
36398 "branch policy."
36399 msgstr ""
36400
36401 #. type: textblock
36402 #: ../src/guestfs.pod:2836
36403 msgid ""
36404 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
36405 msgstr ""
36406
36407 #. type: textblock
36408 #: ../src/guestfs.pod:2841
36409 msgid "Finalize RELEASE-NOTES."
36410 msgstr ""
36411
36412 #. type: textblock
36413 #: ../src/guestfs.pod:2845
36414 msgid "Update ROADMAP."
36415 msgstr ""
36416
36417 #. type: textblock
36418 #: ../src/guestfs.pod:2849
36419 msgid "Run C<src/api-support/update-from-tarballs.sh>."
36420 msgstr ""
36421
36422 #. type: textblock
36423 #: ../src/guestfs.pod:2853
36424 msgid "Push and pull from Transifex."
36425 msgstr ""
36426
36427 #. type: textblock
36428 #: ../src/guestfs.pod:2855
36429 msgid "Run:"
36430 msgstr ""
36431
36432 #. type: verbatim
36433 #: ../src/guestfs.pod:2857
36434 #, no-wrap
36435 msgid ""
36436 " tx push -s\n"
36437 "\n"
36438 msgstr ""
36439
36440 #. type: textblock
36441 #: ../src/guestfs.pod:2859
36442 msgid "to push the latest POT files to Transifex.  Then run:"
36443 msgstr ""
36444
36445 #. type: verbatim
36446 #: ../src/guestfs.pod:2861
36447 #, no-wrap
36448 msgid ""
36449 " ./tx-pull.sh\n"
36450 "\n"
36451 msgstr ""
36452
36453 #. type: textblock
36454 #: ../src/guestfs.pod:2863
36455 msgid "which is a wrapper to pull the latest translated C<*.po> files."
36456 msgstr ""
36457
36458 #. type: textblock
36459 #: ../src/guestfs.pod:2867
36460 msgid ""
36461 "Create new stable and development directories under L<http://libguestfs.org/"
36462 "download>."
36463 msgstr ""
36464
36465 #. type: textblock
36466 #: ../src/guestfs.pod:2872
36467 msgid "Create the branch in git:"
36468 msgstr ""
36469
36470 #. type: verbatim
36471 #: ../src/guestfs.pod:2874
36472 #, no-wrap
36473 msgid ""
36474 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
36475 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
36476 " git branch stable-1.XX\n"
36477 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
36478 "\n"
36479 msgstr ""
36480
36481 #. type: =head1
36482 #: ../src/guestfs.pod:2881
36483 msgid "LIMITS"
36484 msgstr ""
36485
36486 #. type: =head2
36487 #: ../src/guestfs.pod:2883
36488 msgid "PROTOCOL LIMITS"
36489 msgstr ""
36490
36491 #. type: textblock
36492 #: ../src/guestfs.pod:2885
36493 msgid ""
36494 "Internally libguestfs uses a message-based protocol to pass API calls and "
36495 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
36496 "plenty more detail about this).  The maximum message size used by the "
36497 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
36498 "aware of this limit.  The API calls which may be affected are individually "
36499 "documented, with a link back to this section of the documentation."
36500 msgstr ""
36501
36502 #. type: textblock
36503 #: ../src/guestfs.pod:2893
36504 msgid ""
36505 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
36506 "a simple string.  Because this string is at some point internally encoded as "
36507 "a message, the maximum size that it can return is slightly under 4 MB.  If "
36508 "the requested file is larger than this then you will get an error."
36509 msgstr ""
36510
36511 #. type: textblock
36512 #: ../src/guestfs.pod:2899
36513 msgid ""
36514 "In order to transfer large files into and out of the guest filesystem, you "
36515 "need to use particular calls that support this.  The sections L</UPLOADING> "
36516 "and L</DOWNLOADING> document how to do this."
36517 msgstr ""
36518
36519 #. type: textblock
36520 #: ../src/guestfs.pod:2903
36521 msgid ""
36522 "You might also consider mounting the disk image using our FUSE filesystem "
36523 "support (L<guestmount(1)>)."
36524 msgstr ""
36525
36526 #. type: =head2
36527 #: ../src/guestfs.pod:2906
36528 msgid "MAXIMUM NUMBER OF DISKS"
36529 msgstr ""
36530
36531 #. type: textblock
36532 #: ../src/guestfs.pod:2908
36533 msgid "When using virtio disks (the default) the current limit is B<25> disks."
36534 msgstr ""
36535
36536 #. type: textblock
36537 #: ../src/guestfs.pod:2911
36538 msgid ""
36539 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
36540 "slots.  However febootstrap only understands disks with names C</dev/vda> "
36541 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
36542 "purposes."
36543 msgstr ""
36544
36545 #. type: textblock
36546 #: ../src/guestfs.pod:2916
36547 msgid ""
36548 "We are working to substantially raise this limit in future versions but it "
36549 "requires complex changes to qemu."
36550 msgstr ""
36551
36552 #. type: textblock
36553 #: ../src/guestfs.pod:2919
36554 msgid ""
36555 "In future versions of libguestfs it should also be possible to \"hot plug\" "
36556 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
36557 "requires changes to qemu."
36558 msgstr ""
36559
36560 #. type: =head2
36561 #: ../src/guestfs.pod:2923
36562 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
36563 msgstr ""
36564
36565 #. type: textblock
36566 #: ../src/guestfs.pod:2925
36567 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
36568 msgstr ""
36569
36570 #. type: textblock
36571 #: ../src/guestfs.pod:2927
36572 msgid ""
36573 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
36574 "vda>, and C</dev/vda1> through C</dev/vda15>)."
36575 msgstr ""
36576
36577 #. type: textblock
36578 #: ../src/guestfs.pod:2930
36579 msgid ""
36580 "If you attach a disk with more than 15 partitions, the extra partitions are "
36581 "ignored by libguestfs."
36582 msgstr ""
36583
36584 #. type: =head2
36585 #: ../src/guestfs.pod:2933
36586 msgid "MAXIMUM SIZE OF A DISK"
36587 msgstr ""
36588
36589 #. type: textblock
36590 #: ../src/guestfs.pod:2935
36591 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
36592 msgstr ""
36593
36594 #. type: textblock
36595 #: ../src/guestfs.pod:2937
36596 msgid ""
36597 "We have tested block devices up to 1 exabyte (2**60 or "
36598 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
36599 "filesystem."
36600 msgstr ""
36601
36602 #. type: textblock
36603 #: ../src/guestfs.pod:2941
36604 msgid ""
36605 "Although libguestfs probably does not impose any limit, the underlying host "
36606 "storage will.  If you store disk images on a host ext4 filesystem, then the "
36607 "maximum size will be limited by the maximum ext4 file size (currently 16 "
36608 "TB).  If you store disk images as host logical volumes then you are limited "
36609 "by the maximum size of an LV."
36610 msgstr ""
36611
36612 #. type: textblock
36613 #: ../src/guestfs.pod:2947
36614 msgid ""
36615 "For the hugest disk image files, we recommend using XFS on the host for "
36616 "storage."
36617 msgstr ""
36618
36619 #. type: =head2
36620 #: ../src/guestfs.pod:2950
36621 msgid "MAXIMUM SIZE OF A PARTITION"
36622 msgstr ""
36623
36624 #. type: textblock
36625 #: ../src/guestfs.pod:2952
36626 msgid ""
36627 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
36628 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
36629 "address a partition located beyond 2 TB on the disk."
36630 msgstr ""
36631
36632 #. type: textblock
36633 #: ../src/guestfs.pod:2956
36634 msgid ""
36635 "It is recommended that you use GPT partitions on disks which are larger than "
36636 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
36637 "which are theoretically larger than the largest disk we could support."
36638 msgstr ""
36639
36640 #. type: =head2
36641 #: ../src/guestfs.pod:2961
36642 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
36643 msgstr ""
36644
36645 #. type: textblock
36646 #: ../src/guestfs.pod:2963
36647 msgid ""
36648 "This depends on the filesystem type.  libguestfs itself does not impose any "
36649 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
36650 "what these limits are."
36651 msgstr ""
36652
36653 #. type: =head2
36654 #: ../src/guestfs.pod:2967
36655 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
36656 msgstr ""
36657
36658 #. type: textblock
36659 #: ../src/guestfs.pod:2969
36660 msgid ""
36661 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
36662 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
36663 "uploads and downloads."
36664 msgstr ""
36665
36666 #. type: =head2
36667 #: ../src/guestfs.pod:2973
36668 msgid "INSPECTION LIMITS"
36669 msgstr ""
36670
36671 #. type: textblock
36672 #: ../src/guestfs.pod:2975
36673 msgid ""
36674 "The inspection code has several arbitrary limits on things like the size of "
36675 "Windows Registry hive it will read, and the length of product name.  These "
36676 "are intended to stop a malicious guest from consuming arbitrary amounts of "
36677 "memory and disk space on the host, and should not be reached in practice.  "
36678 "See the source code for more information."
36679 msgstr ""
36680
36681 #. type: textblock
36682 #: ../src/guestfs.pod:3001
36683 msgid ""
36684 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
36685 "effect as calling C<guestfs_set_verbose (g, 1)>."
36686 msgstr ""
36687
36688 #. type: textblock
36689 #: ../src/guestfs.pod:3013
36690 msgid ""
36691 "Set the path that libguestfs uses to search for a supermin appliance.  See "
36692 "the discussion of paths in section L</PATH> above."
36693 msgstr ""
36694
36695 #. type: textblock
36696 #: ../src/guestfs.pod:3022
36697 msgid "See also L</QEMU WRAPPERS> above."
36698 msgstr ""
36699
36700 #. type: textblock
36701 #: ../src/guestfs.pod:3026
36702 msgid ""
36703 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
36704 "effect as calling C<guestfs_set_trace (g, 1)>."
36705 msgstr ""
36706
36707 #. type: textblock
36708 #: ../src/guestfs.pod:3044
36709 msgid ""
36710 "L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-"
36711 "perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, L<guestfish(1)>, "
36712 "L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
36713 "L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)"
36714 ">, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
36715 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
36716 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, "
36717 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://libguestfs.org/>."
36718 msgstr ""
36719
36720 #. type: textblock
36721 #: ../src/guestfs.pod:3074
36722 msgid ""
36723 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
36724 "(8)>, L<disktype(1)>."
36725 msgstr ""
36726
36727 #. type: =head1
36728 #: ../src/guestfs.pod:3081 ../tools/virt-make-fs.pl:553
36729 #: ../tools/virt-win-reg.pl:761
36730 msgid "BUGS"
36731 msgstr ""
36732
36733 #. type: textblock
36734 #: ../src/guestfs.pod:3083
36735 msgid "To get a list of bugs against libguestfs use this link:"
36736 msgstr ""
36737
36738 #. type: textblock
36739 #: ../src/guestfs.pod:3085
36740 msgid ""
36741 "L<https://bugzilla.redhat.com/buglist.cgi?"
36742 "component=libguestfs&product=Virtualization+Tools>"
36743 msgstr ""
36744
36745 #. type: textblock
36746 #: ../src/guestfs.pod:3087
36747 msgid "To report a new bug against libguestfs use this link:"
36748 msgstr ""
36749
36750 #. type: textblock
36751 #: ../src/guestfs.pod:3089
36752 msgid ""
36753 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
36754 "component=libguestfs&product=Virtualization+Tools>"
36755 msgstr ""
36756
36757 #. type: textblock
36758 #: ../src/guestfs.pod:3091
36759 msgid "When reporting a bug, please check:"
36760 msgstr ""
36761
36762 #. type: textblock
36763 #: ../src/guestfs.pod:3097
36764 msgid "That the bug hasn't been reported already."
36765 msgstr ""
36766
36767 #. type: textblock
36768 #: ../src/guestfs.pod:3101
36769 msgid "That you are testing a recent version."
36770 msgstr ""
36771
36772 #. type: textblock
36773 #: ../src/guestfs.pod:3105
36774 msgid "Describe the bug accurately, and give a way to reproduce it."
36775 msgstr ""
36776
36777 #. type: textblock
36778 #: ../src/guestfs.pod:3109
36779 msgid ""
36780 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
36781 "bug report."
36782 msgstr ""
36783
36784 #. type: textblock
36785 #: ../test-tool/libguestfs-test-tool.pod:5
36786 msgid "libguestfs-test-tool - End user tests for libguestfs"
36787 msgstr ""
36788
36789 #. type: verbatim
36790 #: ../test-tool/libguestfs-test-tool.pod:9
36791 #, no-wrap
36792 msgid ""
36793 " libguestfs-test-tool [--options]\n"
36794 "\n"
36795 msgstr ""
36796
36797 #. type: textblock
36798 #: ../test-tool/libguestfs-test-tool.pod:13
36799 msgid ""
36800 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
36801 "and developers, to allow them to check basic libguestfs functionality is "
36802 "working.  This is needed because libguestfs occasionally breaks for reasons "
36803 "beyond our control: usually because of changes in the underlying qemu or "
36804 "kernel packages, or the host environment."
36805 msgstr ""
36806
36807 #. type: textblock
36808 #: ../test-tool/libguestfs-test-tool.pod:20
36809 msgid "If you suspect a problem in libguestfs, then just run:"
36810 msgstr ""
36811
36812 #. type: verbatim
36813 #: ../test-tool/libguestfs-test-tool.pod:22
36814 #, no-wrap
36815 msgid ""
36816 " libguestfs-test-tool\n"
36817 "\n"
36818 msgstr ""
36819
36820 #. type: textblock
36821 #: ../test-tool/libguestfs-test-tool.pod:24
36822 msgid "It will print lots of diagnostic messages."
36823 msgstr ""
36824
36825 #. type: textblock
36826 #: ../test-tool/libguestfs-test-tool.pod:26
36827 msgid "If it runs to completion successfully, you will see this near the end:"
36828 msgstr ""
36829
36830 #. type: verbatim
36831 #: ../test-tool/libguestfs-test-tool.pod:28
36832 #, no-wrap
36833 msgid ""
36834 " ===== TEST FINISHED OK =====\n"
36835 "\n"
36836 msgstr ""
36837
36838 #. type: textblock
36839 #: ../test-tool/libguestfs-test-tool.pod:30
36840 msgid "and the test tool will exit with code 0."
36841 msgstr ""
36842
36843 #. type: textblock
36844 #: ../test-tool/libguestfs-test-tool.pod:32
36845 msgid ""
36846 "If it fails (and/or exits with non-zero error code), please paste the "
36847 "B<complete, unedited> output of the test tool into a bug report.  More "
36848 "information about reporting bugs can be found on the L<http://libguestfs.org/"
36849 "> website."
36850 msgstr ""
36851
36852 #. type: =item
36853 #: ../test-tool/libguestfs-test-tool.pod:41
36854 msgid "I<--help>"
36855 msgstr ""
36856
36857 #. type: textblock
36858 #: ../test-tool/libguestfs-test-tool.pod:43
36859 msgid "Display short usage information and exit."
36860 msgstr ""
36861
36862 #. type: =item
36863 #: ../test-tool/libguestfs-test-tool.pod:45
36864 msgid "I<--qemu qemu_binary>"
36865 msgstr ""
36866
36867 #. type: textblock
36868 #: ../test-tool/libguestfs-test-tool.pod:47
36869 msgid ""
36870 "If you have downloaded another qemu binary, point this option at the full "
36871 "path of the binary to try it."
36872 msgstr ""
36873
36874 #. type: =item
36875 #: ../test-tool/libguestfs-test-tool.pod:50
36876 msgid "I<--qemudir qemu_source_dir>"
36877 msgstr ""
36878
36879 #. type: textblock
36880 #: ../test-tool/libguestfs-test-tool.pod:52
36881 msgid ""
36882 "If you have compiled qemu from source, point this option at the source "
36883 "directory to try it."
36884 msgstr ""
36885
36886 #. type: =item
36887 #: ../test-tool/libguestfs-test-tool.pod:55
36888 msgid "I<--timeout N>"
36889 msgstr ""
36890
36891 #. type: textblock
36892 #: ../test-tool/libguestfs-test-tool.pod:57
36893 msgid ""
36894 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
36895 "does not usually need to be adjusted unless your machine is very slow."
36896 msgstr ""
36897
36898 #. type: =head1
36899 #: ../test-tool/libguestfs-test-tool.pod:63
36900 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
36901 msgstr ""
36902
36903 #. type: textblock
36904 #: ../test-tool/libguestfs-test-tool.pod:65
36905 msgid ""
36906 "If you have compiled another version of qemu from source and would like to "
36907 "try that, then you can use the I<--qemudir> option to point to the qemu "
36908 "source directory."
36909 msgstr ""
36910
36911 #. type: textblock
36912 #: ../test-tool/libguestfs-test-tool.pod:69
36913 msgid ""
36914 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
36915 "option to point to the binary."
36916 msgstr ""
36917
36918 #. type: textblock
36919 #: ../test-tool/libguestfs-test-tool.pod:72
36920 msgid ""
36921 "When using an alternate qemu with libguestfs, usually you would need to "
36922 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
36923 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
36924 "use either of the I<--qemudir> or I<--qemu> options."
36925 msgstr ""
36926
36927 #. type: textblock
36928 #: ../test-tool/libguestfs-test-tool.pod:79
36929 msgid ""
36930 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
36931 "I<1> if there was an error."
36932 msgstr ""
36933
36934 #. type: textblock
36935 #: ../test-tool/libguestfs-test-tool.pod:84
36936 msgid ""
36937 "For the full list of environment variables which may affect libguestfs, "
36938 "please see the L<guestfs(3)> manual page."
36939 msgstr ""
36940
36941 #. type: textblock
36942 #: ../test-tool/libguestfs-test-tool.pod:89
36943 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
36944 msgstr ""
36945
36946 #. type: textblock
36947 #: ../tools/virt-list-filesystems.pl:32
36948 msgid ""
36949 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
36950 msgstr ""
36951
36952 #. type: verbatim
36953 #: ../tools/virt-list-filesystems.pl:36
36954 #, no-wrap
36955 msgid ""
36956 " virt-list-filesystems [--options] domname\n"
36957 "\n"
36958 msgstr ""
36959
36960 #. type: verbatim
36961 #: ../tools/virt-list-filesystems.pl:38
36962 #, no-wrap
36963 msgid ""
36964 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
36965 "\n"
36966 msgstr ""
36967
36968 #. type: textblock
36969 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
36970 msgid ""
36971 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
36972 "replacement."
36973 msgstr ""
36974
36975 #. type: textblock
36976 #: ../tools/virt-list-filesystems.pl:45
36977 msgid ""
36978 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
36979 "are contained in a virtual machine or disk image."
36980 msgstr ""
36981
36982 #. type: textblock
36983 #: ../tools/virt-list-filesystems.pl:49
36984 msgid ""
36985 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
36986 "functionality.  For more complex cases you should look at the L<guestfish(1)"
36987 "> tool."
36988 msgstr ""
36989
36990 #. type: textblock
36991 #: ../tools/virt-list-filesystems.pl:112
36992 msgid ""
36993 "With this option, C<virt-list-filesystems> displays the type of each "
36994 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
36995 msgstr ""
36996
36997 #. type: =item
36998 #: ../tools/virt-list-filesystems.pl:119
36999 msgid "B<-a>"
37000 msgstr ""
37001
37002 #. type: textblock
37003 #: ../tools/virt-list-filesystems.pl:123
37004 msgid ""
37005 "Normally we only show mountable filesystems.  If this option is given then "
37006 "swap devices are shown too."
37007 msgstr ""
37008
37009 #. type: textblock
37010 #: ../tools/virt-list-filesystems.pl:197
37011 msgid ""
37012 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
37013 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
37014 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
37015 msgstr ""
37016
37017 #. type: textblock
37018 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
37019 msgid "Copyright (C) 2009 Red Hat Inc."
37020 msgstr ""
37021
37022 #. type: textblock
37023 #: ../tools/virt-list-partitions.pl:32
37024 msgid ""
37025 "virt-list-partitions - List partitions in a virtual machine or disk image"
37026 msgstr ""
37027
37028 #. type: verbatim
37029 #: ../tools/virt-list-partitions.pl:36
37030 #, no-wrap
37031 msgid ""
37032 " virt-list-partitions [--options] domname\n"
37033 "\n"
37034 msgstr ""
37035
37036 #. type: verbatim
37037 #: ../tools/virt-list-partitions.pl:38
37038 #, no-wrap
37039 msgid ""
37040 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
37041 "\n"
37042 msgstr ""
37043
37044 #. type: textblock
37045 #: ../tools/virt-list-partitions.pl:45
37046 msgid ""
37047 "C<virt-list-partitions> is a command line tool to list the partitions that "
37048 "are contained in a virtual machine or disk image.  It is mainly useful as a "
37049 "first step to using L<virt-resize(1)>."
37050 msgstr ""
37051
37052 #. type: textblock
37053 #: ../tools/virt-list-partitions.pl:50
37054 msgid ""
37055 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
37056 "functionality.  For more complex cases you should look at the L<guestfish(1)"
37057 "> tool."
37058 msgstr ""
37059
37060 #. type: textblock
37061 #: ../tools/virt-list-partitions.pl:113
37062 msgid "Show sizes in human-readable form (eg. \"1G\")."
37063 msgstr ""
37064
37065 #. type: textblock
37066 #: ../tools/virt-list-partitions.pl:123
37067 msgid ""
37068 "With this option, C<virt-list-partitions> displays the type and size of each "
37069 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
37070 msgstr ""
37071
37072 #. type: =item
37073 #: ../tools/virt-list-partitions.pl:130
37074 msgid "B<-t>"
37075 msgstr ""
37076
37077 #. type: =item
37078 #: ../tools/virt-list-partitions.pl:132
37079 msgid "B<--total>"
37080 msgstr ""
37081
37082 #. type: textblock
37083 #: ../tools/virt-list-partitions.pl:134
37084 msgid ""
37085 "Display the total size of each block device (as a separate row or rows)."
37086 msgstr ""
37087
37088 #. type: textblock
37089 #: ../tools/virt-list-partitions.pl:267
37090 msgid ""
37091 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
37092 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
37093 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
37094 msgstr ""
37095
37096 #. type: textblock
37097 #: ../tools/virt-list-partitions.pl:283
37098 msgid "Copyright (C) 2009-2010 Red Hat Inc."
37099 msgstr ""
37100
37101 #. type: textblock
37102 #: ../tools/virt-make-fs.pl:37
37103 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
37104 msgstr ""
37105
37106 #. type: verbatim
37107 #: ../tools/virt-make-fs.pl:41
37108 #, no-wrap
37109 msgid ""
37110 " virt-make-fs [--options] input.tar output.img\n"
37111 "\n"
37112 msgstr ""
37113
37114 #. type: verbatim
37115 #: ../tools/virt-make-fs.pl:43
37116 #, no-wrap
37117 msgid ""
37118 " virt-make-fs [--options] input.tar.gz output.img\n"
37119 "\n"
37120 msgstr ""
37121
37122 #. type: verbatim
37123 #: ../tools/virt-make-fs.pl:45
37124 #, no-wrap
37125 msgid ""
37126 " virt-make-fs [--options] directory output.img\n"
37127 "\n"
37128 msgstr ""
37129
37130 #. type: textblock
37131 #: ../tools/virt-make-fs.pl:49
37132 msgid ""
37133 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
37134 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
37135 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
37136 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
37137 "you want to attach these filesystems to existing virtual machines (eg. to "
37138 "import large amounts of read-only data to a VM)."
37139 msgstr ""
37140
37141 #. type: textblock
37142 #: ../tools/virt-make-fs.pl:57
37143 msgid "Basic usage is:"
37144 msgstr ""
37145
37146 #. type: verbatim
37147 #: ../tools/virt-make-fs.pl:59
37148 #, no-wrap
37149 msgid ""
37150 " virt-make-fs input output\n"
37151 "\n"
37152 msgstr ""
37153
37154 #. type: textblock
37155 #: ../tools/virt-make-fs.pl:61
37156 msgid ""
37157 "where C<input> is either a directory containing files that you want to add, "
37158 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
37159 "C<output> is a disk image.  The input type is detected automatically.  The "
37160 "output disk image defaults to a raw ext2 image unless you specify extra "
37161 "flags (see L</OPTIONS> below)."
37162 msgstr ""
37163
37164 #. type: =head2
37165 #: ../tools/virt-make-fs.pl:67
37166 msgid "EXTRA SPACE"
37167 msgstr ""
37168
37169 #. type: textblock
37170 #: ../tools/virt-make-fs.pl:69
37171 msgid ""
37172 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
37173 "the files that it contains, but might have extra space.  Depending on how "
37174 "you are going to use the output, you might think this extra space is wasted "
37175 "and want to minimize it, or you might want to leave space so that more files "
37176 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
37177 "but you can use the I<--size> flag to leave space in the filesystem if you "
37178 "want it."
37179 msgstr ""
37180
37181 #. type: textblock
37182 #: ../tools/virt-make-fs.pl:77
37183 msgid ""
37184 "An alternative way to leave extra space but not make the output image any "
37185 "bigger is to use an alternative disk image format (instead of the default "
37186 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
37187 "image format (check your hypervisor supports this before using it).  This "
37188 "allows you to choose a large I<--size> but the extra space won't actually be "
37189 "allocated in the image until you try to store something in it."
37190 msgstr ""
37191
37192 #. type: textblock
37193 #: ../tools/virt-make-fs.pl:85
37194 msgid ""
37195 "Don't forget that you can also use local commands including L<resize2fs(8)> "
37196 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
37197 "to build another image from scratch."
37198 msgstr ""
37199
37200 #. type: =head3
37201 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
37202 #: ../tools/virt-make-fs.pl:142
37203 msgid "EXAMPLE"
37204 msgstr ""
37205
37206 #. type: verbatim
37207 #: ../tools/virt-make-fs.pl:91
37208 #, no-wrap
37209 msgid ""
37210 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
37211 "\n"
37212 msgstr ""
37213
37214 #. type: =head2
37215 #: ../tools/virt-make-fs.pl:93
37216 msgid "FILESYSTEM TYPE"
37217 msgstr ""
37218
37219 #. type: textblock
37220 #: ../tools/virt-make-fs.pl:95
37221 msgid ""
37222 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
37223 "libguestfs supports can be used (but I<not> read-only formats like "
37224 "ISO9660).  Here are some of the more common choices:"
37225 msgstr ""
37226
37227 #. type: =item
37228 #: ../tools/virt-make-fs.pl:101
37229 msgid "I<ext3>"
37230 msgstr ""
37231
37232 #. type: textblock
37233 #: ../tools/virt-make-fs.pl:103
37234 msgid ""
37235 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
37236 "you are not going to use the filesystem in a way that requires the journal, "
37237 "then this is just wasted overhead."
37238 msgstr ""
37239
37240 #. type: =item
37241 #: ../tools/virt-make-fs.pl:107
37242 msgid "I<ntfs> or I<vfat>"
37243 msgstr ""
37244
37245 #. type: textblock
37246 #: ../tools/virt-make-fs.pl:109
37247 msgid "Useful if exporting data to a Windows guest."
37248 msgstr ""
37249
37250 #. type: textblock
37251 #: ../tools/virt-make-fs.pl:111
37252 msgid ""
37253 "I<Note for vfat>: The tar archive or local directory must only contain files "
37254 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
37255 "program running within libguestfs is unable to change the ownership of non-"
37256 "root files, since vfat itself does not support this."
37257 msgstr ""
37258
37259 #. type: =item
37260 #: ../tools/virt-make-fs.pl:116
37261 msgid "I<minix>"
37262 msgstr ""
37263
37264 #. type: textblock
37265 #: ../tools/virt-make-fs.pl:118
37266 msgid ""
37267 "Lower overhead than C<ext2>, but certain limitations on filename length and "
37268 "total filesystem size."
37269 msgstr ""
37270
37271 #. type: verbatim
37272 #: ../tools/virt-make-fs.pl:125
37273 #, no-wrap
37274 msgid ""
37275 " virt-make-fs --type=minix input minixfs.img\n"
37276 "\n"
37277 msgstr ""
37278
37279 #. type: =head2
37280 #: ../tools/virt-make-fs.pl:127
37281 msgid "TO PARTITION OR NOT TO PARTITION"
37282 msgstr ""
37283
37284 #. type: textblock
37285 #: ../tools/virt-make-fs.pl:129
37286 msgid "Optionally virt-make-fs can add a partition table to the output disk."
37287 msgstr ""
37288
37289 #. type: textblock
37290 #: ../tools/virt-make-fs.pl:131
37291 msgid ""
37292 "Adding a partition can make the disk image more compatible with certain "
37293 "virtualized operating systems which don't expect to see a filesystem "
37294 "directly located on a block device (Linux doesn't care and will happily "
37295 "handle both types)."
37296 msgstr ""
37297
37298 #. type: textblock
37299 #: ../tools/virt-make-fs.pl:136
37300 msgid ""
37301 "On the other hand, if you have a partition table then the output image is no "
37302 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
37303 "directly on a partitioned disk image.  (However libguestfs tools such as "
37304 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
37305 msgstr ""
37306
37307 #. type: textblock
37308 #: ../tools/virt-make-fs.pl:144
37309 msgid "Add an MBR partition:"
37310 msgstr ""
37311
37312 #. type: verbatim
37313 #: ../tools/virt-make-fs.pl:146
37314 #, no-wrap
37315 msgid ""
37316 " virt-make-fs --partition -- input disk.img\n"
37317 "\n"
37318 msgstr ""
37319
37320 #. type: textblock
37321 #: ../tools/virt-make-fs.pl:148
37322 msgid ""
37323 "If the output disk image could be terabyte-sized or larger, it's better to "
37324 "use an EFI/GPT-compatible partition table:"
37325 msgstr ""
37326
37327 #. type: verbatim
37328 #: ../tools/virt-make-fs.pl:151
37329 #, no-wrap
37330 msgid ""
37331 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
37332 "\n"
37333 msgstr ""
37334
37335 #. type: textblock
37336 #: ../tools/virt-make-fs.pl:179
37337 msgid "Enable debugging information."
37338 msgstr ""
37339
37340 #. type: =item
37341 #: ../tools/virt-make-fs.pl:185
37342 msgid "B<--size=E<lt>NE<gt>>"
37343 msgstr ""
37344
37345 #. type: =item
37346 #: ../tools/virt-make-fs.pl:187
37347 msgid "B<--size=+E<lt>NE<gt>>"
37348 msgstr ""
37349
37350 #. type: =item
37351 #: ../tools/virt-make-fs.pl:189
37352 msgid "B<-s E<lt>NE<gt>>"
37353 msgstr ""
37354
37355 #. type: =item
37356 #: ../tools/virt-make-fs.pl:191
37357 msgid "B<-s +E<lt>NE<gt>>"
37358 msgstr ""
37359
37360 #. type: textblock
37361 #: ../tools/virt-make-fs.pl:193
37362 msgid ""
37363 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
37364 msgstr ""
37365
37366 #. type: textblock
37367 #: ../tools/virt-make-fs.pl:196
37368 msgid ""
37369 "If this option is I<not> given, then the output image will be just large "
37370 "enough to contain all the files, with not much wasted space."
37371 msgstr ""
37372
37373 #. type: textblock
37374 #: ../tools/virt-make-fs.pl:199
37375 msgid ""
37376 "To choose a fixed size output disk, specify an absolute number followed by b/"
37377 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
37378 "Petabytes or Exabytes.  This must be large enough to contain all the input "
37379 "files, else you will get an error."
37380 msgstr ""
37381
37382 #. type: textblock
37383 #: ../tools/virt-make-fs.pl:204
37384 msgid ""
37385 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
37386 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
37387 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
37388 "the input files, and (approximately) an extra 200 MB free space."
37389 msgstr ""
37390
37391 #. type: textblock
37392 #: ../tools/virt-make-fs.pl:210
37393 msgid ""
37394 "Note that virt-make-fs estimates free space, and therefore will not produce "
37395 "filesystems containing precisely the free space requested.  (It is much more "
37396 "expensive and time-consuming to produce a filesystem which has precisely the "
37397 "desired free space)."
37398 msgstr ""
37399
37400 #. type: =item
37401 #: ../tools/virt-make-fs.pl:219
37402 msgid "B<--format=E<lt>fmtE<gt>>"
37403 msgstr ""
37404
37405 #. type: =item
37406 #: ../tools/virt-make-fs.pl:221
37407 msgid "B<-F E<lt>fmtE<gt>>"
37408 msgstr ""
37409
37410 #. type: textblock
37411 #: ../tools/virt-make-fs.pl:223
37412 msgid "Choose the output disk image format."
37413 msgstr ""
37414
37415 #. type: textblock
37416 #: ../tools/virt-make-fs.pl:225
37417 msgid "The default is C<raw> (raw disk image)."
37418 msgstr ""
37419
37420 #. type: textblock
37421 #: ../tools/virt-make-fs.pl:227
37422 msgid ""
37423 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
37424 "that would really make sense here is C<qcow2>."
37425 msgstr ""
37426
37427 #. type: =item
37428 #: ../tools/virt-make-fs.pl:234
37429 msgid "B<--type=E<lt>fsE<gt>>"
37430 msgstr ""
37431
37432 #. type: =item
37433 #: ../tools/virt-make-fs.pl:236
37434 msgid "B<-t E<lt>fsE<gt>>"
37435 msgstr ""
37436
37437 #. type: textblock
37438 #: ../tools/virt-make-fs.pl:238
37439 msgid "Choose the output filesystem type."
37440 msgstr ""
37441
37442 #. type: textblock
37443 #: ../tools/virt-make-fs.pl:240
37444 msgid "The default is C<ext2>."
37445 msgstr ""
37446
37447 #. type: textblock
37448 #: ../tools/virt-make-fs.pl:242
37449 msgid ""
37450 "Any filesystem which is supported read-write by libguestfs can be used here."
37451 msgstr ""
37452
37453 #. type: =item
37454 #: ../tools/virt-make-fs.pl:249
37455 msgid "B<--partition>"
37456 msgstr ""
37457
37458 #. type: =item
37459 #: ../tools/virt-make-fs.pl:251
37460 msgid "B<--partition=E<lt>parttypeE<gt>>"
37461 msgstr ""
37462
37463 #. type: textblock
37464 #: ../tools/virt-make-fs.pl:253
37465 msgid ""
37466 "If specified, this flag adds an MBR partition table to the output disk image."
37467 msgstr ""
37468
37469 #. type: textblock
37470 #: ../tools/virt-make-fs.pl:256
37471 msgid ""
37472 "You can change the partition table type, eg. I<--partition=gpt> for large "
37473 "disks."
37474 msgstr ""
37475
37476 #. type: textblock
37477 #: ../tools/virt-make-fs.pl:259
37478 msgid ""
37479 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
37480 "might consider the next parameter to be the partition type.  For example:"
37481 msgstr ""
37482
37483 #. type: verbatim
37484 #: ../tools/virt-make-fs.pl:263
37485 #, no-wrap
37486 msgid ""
37487 " virt-make-fs --partition input.tar ...\n"
37488 "\n"
37489 msgstr ""
37490
37491 #. type: textblock
37492 #: ../tools/virt-make-fs.pl:265
37493 msgid ""
37494 "would cause virt-make-fs to think you wanted to use a partition type of "
37495 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
37496 "dash) between options and the input file argument:"
37497 msgstr ""
37498
37499 #. type: verbatim
37500 #: ../tools/virt-make-fs.pl:269
37501 #, no-wrap
37502 msgid ""
37503 " virt-make-fs --partition -- input.tar ...\n"
37504 "\n"
37505 msgstr ""
37506
37507 #. type: textblock
37508 #: ../tools/virt-make-fs.pl:541
37509 msgid ""
37510 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
37511 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
37512 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
37513 msgstr ""
37514
37515 #. type: textblock
37516 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
37517 msgid ""
37518 "When reporting bugs, please enable debugging and capture the I<complete> "
37519 "output:"
37520 msgstr ""
37521
37522 #. type: verbatim
37523 #: ../tools/virt-make-fs.pl:558
37524 #, no-wrap
37525 msgid ""
37526 " export LIBGUESTFS_DEBUG=1\n"
37527 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
37528 "\n"
37529 msgstr ""
37530
37531 #. type: textblock
37532 #: ../tools/virt-make-fs.pl:561
37533 msgid ""
37534 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
37535 "redhat.com/>"
37536 msgstr ""
37537
37538 #. type: textblock
37539 #: ../tools/virt-tar.pl:33
37540 msgid "virt-tar - Extract or upload files to a virtual machine"
37541 msgstr ""
37542
37543 #. type: verbatim
37544 #: ../tools/virt-tar.pl:37
37545 #, no-wrap
37546 msgid ""
37547 " virt-tar [--options] -x domname directory tarball\n"
37548 "\n"
37549 msgstr ""
37550
37551 #. type: verbatim
37552 #: ../tools/virt-tar.pl:39
37553 #, no-wrap
37554 msgid ""
37555 " virt-tar [--options] -u domname tarball directory\n"
37556 "\n"
37557 msgstr ""
37558
37559 #. type: verbatim
37560 #: ../tools/virt-tar.pl:41
37561 #, no-wrap
37562 msgid ""
37563 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
37564 "\n"
37565 msgstr ""
37566
37567 #. type: verbatim
37568 #: ../tools/virt-tar.pl:43
37569 #, no-wrap
37570 msgid ""
37571 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
37572 "\n"
37573 msgstr ""
37574
37575 #. type: =head2
37576 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
37577 msgid "NOTE"
37578 msgstr ""
37579
37580 #. type: textblock
37581 #: ../tools/virt-tar.pl:47
37582 msgid ""
37583 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
37584 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
37585 msgstr ""
37586
37587 #. type: textblock
37588 #: ../tools/virt-tar.pl:52
37589 msgid "Download C</home> from the VM into a local tarball:"
37590 msgstr ""
37591
37592 #. type: verbatim
37593 #: ../tools/virt-tar.pl:54
37594 #, no-wrap
37595 msgid ""
37596 " virt-tar -x domname /home home.tar\n"
37597 "\n"
37598 msgstr ""
37599
37600 #. type: verbatim
37601 #: ../tools/virt-tar.pl:56
37602 #, no-wrap
37603 msgid ""
37604 " virt-tar -zx domname /home home.tar.gz\n"
37605 "\n"
37606 msgstr ""
37607
37608 #. type: textblock
37609 #: ../tools/virt-tar.pl:58
37610 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
37611 msgstr ""
37612
37613 #. type: verbatim
37614 #: ../tools/virt-tar.pl:60
37615 #, no-wrap
37616 msgid ""
37617 " virt-tar -u domname uploadstuff.tar /tmp\n"
37618 "\n"
37619 msgstr ""
37620
37621 #. type: verbatim
37622 #: ../tools/virt-tar.pl:62
37623 #, no-wrap
37624 msgid ""
37625 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
37626 "\n"
37627 msgstr ""
37628
37629 #. type: textblock
37630 #: ../tools/virt-tar.pl:66
37631 msgid ""
37632 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
37633 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
37634 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
37635 msgstr ""
37636
37637 #. type: textblock
37638 #: ../tools/virt-tar.pl:71
37639 msgid ""
37640 "You can use I<-x> (extract) on live virtual machines, but you might get "
37641 "inconsistent results or errors if there is filesystem activity inside the "
37642 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
37643 "work, but the only way to guarantee consistent results is if the virtual "
37644 "machine is shut down."
37645 msgstr ""
37646
37647 #. type: textblock
37648 #: ../tools/virt-tar.pl:79
37649 msgid ""
37650 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
37651 "parts of a guest filesystem.  There are many possibilities: making backups, "
37652 "uploading data files, snooping on guest activity, fixing or customizing "
37653 "guests, etc."
37654 msgstr ""
37655
37656 #. type: textblock
37657 #: ../tools/virt-tar.pl:84
37658 msgid ""
37659 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
37660 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
37661 "should look at the L<guestfish(1)> tool."
37662 msgstr ""
37663
37664 #. type: textblock
37665 #: ../tools/virt-tar.pl:88
37666 msgid ""
37667 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
37668 "its contents (recursively) from the virtual machine into a local tarball.  "
37669 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
37670 "virtual machine.  You cannot use these two options together."
37671 msgstr ""
37672
37673 #. type: textblock
37674 #: ../tools/virt-tar.pl:94
37675 msgid ""
37676 "In addition, you may need to use the I<-z> (gZip) option to enable "
37677 "compression.  When uploading, you have to specify I<-z> if the upload file "
37678 "is compressed because virt-tar won't detect this on its own."
37679 msgstr ""
37680
37681 #. type: textblock
37682 #: ../tools/virt-tar.pl:98
37683 msgid ""
37684 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
37685 "example it cannot do PKZip files or bzip2 compression.  If you want that "
37686 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
37687 "the L<libguestfs(3)> API)."
37688 msgstr ""
37689
37690 #. type: =item
37691 #: ../tools/virt-tar.pl:160
37692 msgid "B<--extract>"
37693 msgstr ""
37694
37695 #. type: =item
37696 #: ../tools/virt-tar.pl:162
37697 msgid "B<--download>"
37698 msgstr ""
37699
37700 #. type: =item
37701 #: ../tools/virt-tar.pl:164
37702 msgid "B<-u>"
37703 msgstr ""
37704
37705 #. type: =item
37706 #: ../tools/virt-tar.pl:166
37707 msgid "B<--upload>"
37708 msgstr ""
37709
37710 #. type: textblock
37711 #: ../tools/virt-tar.pl:168
37712 msgid ""
37713 "Use I<-x> to extract (download) a directory from a virtual machine to a "
37714 "local tarball."
37715 msgstr ""
37716
37717 #. type: textblock
37718 #: ../tools/virt-tar.pl:171
37719 msgid ""
37720 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
37721 "Please read the L</WARNING> section above before using this option."
37722 msgstr ""
37723
37724 #. type: textblock
37725 #: ../tools/virt-tar.pl:175
37726 msgid "You must specify exactly one of these options."
37727 msgstr ""
37728
37729 #. type: =item
37730 #: ../tools/virt-tar.pl:181
37731 msgid "B<-z>"
37732 msgstr ""
37733
37734 #. type: =item
37735 #: ../tools/virt-tar.pl:183
37736 msgid "B<--gzip>"
37737 msgstr ""
37738
37739 #. type: textblock
37740 #: ../tools/virt-tar.pl:185
37741 msgid "Specify that the input or output tarball is gzip-compressed."
37742 msgstr ""
37743
37744 #. type: textblock
37745 #: ../tools/virt-tar.pl:298
37746 msgid ""
37747 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
37748 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
37749 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
37750 "org/>."
37751 msgstr ""
37752
37753 #. type: textblock
37754 #: ../tools/virt-win-reg.pl:37
37755 msgid ""
37756 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
37757 msgstr ""
37758
37759 #. type: verbatim
37760 #: ../tools/virt-win-reg.pl:41
37761 #, no-wrap
37762 msgid ""
37763 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
37764 "\n"
37765 msgstr ""
37766
37767 #. type: verbatim
37768 #: ../tools/virt-win-reg.pl:43
37769 #, no-wrap
37770 msgid ""
37771 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
37772 "\n"
37773 msgstr ""
37774
37775 #. type: verbatim
37776 #: ../tools/virt-win-reg.pl:45
37777 #, no-wrap
37778 msgid ""
37779 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
37780 "\n"
37781 msgstr ""
37782
37783 #. type: verbatim
37784 #: ../tools/virt-win-reg.pl:47
37785 #, no-wrap
37786 msgid ""
37787 " virt-win-reg --merge domname [input.reg ...]\n"
37788 "\n"
37789 msgstr ""
37790
37791 #. type: verbatim
37792 #: ../tools/virt-win-reg.pl:49
37793 #, no-wrap
37794 msgid ""
37795 " virt-win-reg [--options] disk.img ... # instead of domname\n"
37796 "\n"
37797 msgstr ""
37798
37799 #. type: textblock
37800 #: ../tools/virt-win-reg.pl:53
37801 msgid ""
37802 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
37803 "virtual machines.  If you do this, you I<will> get irreversible disk "
37804 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
37805 "but doesn't catch all cases."
37806 msgstr ""
37807
37808 #. type: textblock
37809 #: ../tools/virt-win-reg.pl:58
37810 msgid ""
37811 "Modifying the Windows Registry is an inherently risky operation.  The format "
37812 "is deliberately obscure and undocumented, and Registry changes can leave the "
37813 "system unbootable.  Therefore when using the I<--merge> option, make sure "
37814 "you have a reliable backup first."
37815 msgstr ""
37816
37817 #. type: textblock
37818 #: ../tools/virt-win-reg.pl:65
37819 msgid ""
37820 "This program can export and merge Windows Registry entries from a Windows "
37821 "guest."
37822 msgstr ""
37823
37824 #. type: textblock
37825 #: ../tools/virt-win-reg.pl:68
37826 msgid ""
37827 "The first parameter is the libvirt guest name or the raw disk image of a "
37828 "Windows guest."
37829 msgstr ""
37830
37831 #. type: textblock
37832 #: ../tools/virt-win-reg.pl:71
37833 msgid ""
37834 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
37835 "exported (recursively).  For example:"
37836 msgstr ""
37837
37838 #. type: verbatim
37839 #: ../tools/virt-win-reg.pl:74
37840 #, no-wrap
37841 msgid ""
37842 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
37843 "\n"
37844 msgstr ""
37845
37846 #. type: textblock
37847 #: ../tools/virt-win-reg.pl:76
37848 msgid ""
37849 "You can also display single values from within registry keys, for example:"
37850 msgstr ""
37851
37852 #. type: verbatim
37853 #: ../tools/virt-win-reg.pl:79
37854 #, no-wrap
37855 msgid ""
37856 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
37857 " $ virt-win-reg Windows7 $cvkey ProductName\n"
37858 " Windows 7 Enterprise\n"
37859 "\n"
37860 msgstr ""
37861
37862 #. type: textblock
37863 #: ../tools/virt-win-reg.pl:83
37864 msgid ""
37865 "With I<--merge>, you can merge a textual regedit file into the Windows "
37866 "Registry:"
37867 msgstr ""
37868
37869 #. type: verbatim
37870 #: ../tools/virt-win-reg.pl:86
37871 #, no-wrap
37872 msgid ""
37873 " $ virt-win-reg --merge Windows7 changes.reg\n"
37874 "\n"
37875 msgstr ""
37876
37877 #. type: textblock
37878 #: ../tools/virt-win-reg.pl:90
37879 msgid ""
37880 "This program is only meant for simple access to the registry.  If you want "
37881 "to do complicated things with the registry, we suggest you download the "
37882 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
37883 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
37884 "L<hivexregedit(1)>."
37885 msgstr ""
37886
37887 #. type: =item
37888 #: ../tools/virt-win-reg.pl:159
37889 msgid "B<--merge>"
37890 msgstr ""
37891
37892 #. type: textblock
37893 #: ../tools/virt-win-reg.pl:161
37894 msgid ""
37895 "In merge mode, this merges a textual regedit file into the Windows Registry "
37896 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
37897 "displays or exports Registry entries instead."
37898 msgstr ""
37899
37900 #. type: textblock
37901 #: ../tools/virt-win-reg.pl:165
37902 msgid ""
37903 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
37904 "result in disk corruption.  However exporting (without this flag)  is always "
37905 "safe."
37906 msgstr ""
37907
37908 #. type: =item
37909 #: ../tools/virt-win-reg.pl:173
37910 msgid "B<--encoding> UTF-16LE|ASCII"
37911 msgstr ""
37912
37913 #. type: textblock
37914 #: ../tools/virt-win-reg.pl:175
37915 msgid ""
37916 "When merging (only), you may need to specify the encoding for strings to be "
37917 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
37918 "(3)/ENCODING STRINGS>."
37919 msgstr ""
37920
37921 #. type: textblock
37922 #: ../tools/virt-win-reg.pl:179
37923 msgid ""
37924 "The default is to use UTF-16LE, which should work with recent versions of "
37925 "Windows."
37926 msgstr ""
37927
37928 #. type: =item
37929 #: ../tools/virt-win-reg.pl:186
37930 msgid "B<--unsafe-printable-strings>"
37931 msgstr ""
37932
37933 #. type: textblock
37934 #: ../tools/virt-win-reg.pl:188
37935 msgid ""
37936 "When exporting (only), assume strings are UTF-16LE and print them as strings "
37937 "instead of hex sequences.  Remove the final zero codepoint from strings if "
37938 "present."
37939 msgstr ""
37940
37941 #. type: textblock
37942 #: ../tools/virt-win-reg.pl:192
37943 msgid ""
37944 "This is unsafe and does not preserve the fidelity of strings in the original "
37945 "Registry for various reasons:"
37946 msgstr ""
37947
37948 #. type: textblock
37949 #: ../tools/virt-win-reg.pl:199
37950 msgid ""
37951 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
37952 "other encodings will be corrupted by this transformation."
37953 msgstr ""
37954
37955 #. type: textblock
37956 #: ../tools/virt-win-reg.pl:204
37957 msgid ""
37958 "Assumes that everything which has type 1 or 2 is really a string and that "
37959 "everything else is not a string, but the type field in real Registries is "
37960 "not reliable."
37961 msgstr ""
37962
37963 #. type: textblock
37964 #: ../tools/virt-win-reg.pl:210
37965 msgid ""
37966 "Loses information about whether a zero codepoint followed the string in the "
37967 "Registry or not."
37968 msgstr ""
37969
37970 #. type: textblock
37971 #: ../tools/virt-win-reg.pl:215
37972 msgid ""
37973 "This all happens because the Registry itself contains no information about "
37974 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
37975 msgstr ""
37976
37977 #. type: textblock
37978 #: ../tools/virt-win-reg.pl:219
37979 msgid ""
37980 "You should only use this option for quick hacking and debugging of the "
37981 "Registry contents, and I<never> use it if the output is going to be passed "
37982 "into another program or stored in another Registry."
37983 msgstr ""
37984
37985 #. type: =head1
37986 #: ../tools/virt-win-reg.pl:556
37987 msgid "SUPPORTED SYSTEMS"
37988 msgstr ""
37989
37990 #. type: textblock
37991 #: ../tools/virt-win-reg.pl:558
37992 msgid ""
37993 "The program currently supports Windows NT-derived guests starting with "
37994 "Windows XP through to at least Windows 7."
37995 msgstr ""
37996
37997 #. type: textblock
37998 #: ../tools/virt-win-reg.pl:561
37999 msgid "The following Registry keys are supported:"
38000 msgstr ""
38001
38002 #. type: =item
38003 #: ../tools/virt-win-reg.pl:565
38004 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
38005 msgstr ""
38006
38007 #. type: =item
38008 #: ../tools/virt-win-reg.pl:567
38009 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
38010 msgstr ""
38011
38012 #. type: =item
38013 #: ../tools/virt-win-reg.pl:569
38014 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
38015 msgstr ""
38016
38017 #. type: =item
38018 #: ../tools/virt-win-reg.pl:571
38019 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
38020 msgstr ""
38021
38022 #. type: =item
38023 #: ../tools/virt-win-reg.pl:573
38024 msgid "C<HKEY_USERS\\.DEFAULT>"
38025 msgstr ""
38026
38027 #. type: =item
38028 #: ../tools/virt-win-reg.pl:575
38029 msgid "C<HKEY_USERS\\I<SID>>"
38030 msgstr ""
38031
38032 #. type: textblock
38033 #: ../tools/virt-win-reg.pl:577
38034 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
38035 msgstr ""
38036
38037 #. type: =item
38038 #: ../tools/virt-win-reg.pl:579
38039 msgid "C<HKEY_USERS\\I<username>>"
38040 msgstr ""
38041
38042 #. type: textblock
38043 #: ../tools/virt-win-reg.pl:581
38044 msgid ""
38045 "where I<username> is a local user name (this is a libguestfs extension)."
38046 msgstr ""
38047
38048 #. type: textblock
38049 #: ../tools/virt-win-reg.pl:585
38050 msgid ""
38051 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
38052 "C<HKEY_USERS>."
38053 msgstr ""
38054
38055 #. type: textblock
38056 #: ../tools/virt-win-reg.pl:588
38057 msgid ""
38058 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
38059 "supported (there is no \"current user\")."
38060 msgstr ""
38061
38062 #. type: =head1
38063 #: ../tools/virt-win-reg.pl:591
38064 msgid "ENCODING"
38065 msgstr ""
38066
38067 #. type: textblock
38068 #: ../tools/virt-win-reg.pl:593
38069 msgid ""
38070 "C<virt-win-reg> expects that regedit files have already been reencoded in "
38071 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
38072 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
38073 "Windows-style line endings, you may need to reencode the whole file before "
38074 "or after processing."
38075 msgstr ""
38076
38077 #. type: textblock
38078 #: ../tools/virt-win-reg.pl:599
38079 msgid ""
38080 "To reencode a file from Windows format to Linux (before processing it with "
38081 "the I<--merge> option), you would do something like this:"
38082 msgstr ""
38083
38084 #. type: verbatim
38085 #: ../tools/virt-win-reg.pl:602
38086 #, no-wrap
38087 msgid ""
38088 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
38089 "\n"
38090 msgstr ""
38091
38092 #. type: textblock
38093 #: ../tools/virt-win-reg.pl:604
38094 msgid ""
38095 "To go in the opposite direction, after exporting and before sending the file "
38096 "to a Windows user, do something like this:"
38097 msgstr ""
38098
38099 #. type: verbatim
38100 #: ../tools/virt-win-reg.pl:607
38101 #, no-wrap
38102 msgid ""
38103 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
38104 "\n"
38105 msgstr ""
38106
38107 #. type: textblock
38108 #: ../tools/virt-win-reg.pl:609
38109 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
38110 msgstr ""
38111
38112 #. type: textblock
38113 #: ../tools/virt-win-reg.pl:611
38114 msgid ""
38115 "If you are unsure about the current encoding, use the L<file(1)> command.  "
38116 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
38117 "style (CRLF) line endings, like this:"
38118 msgstr ""
38119
38120 #. type: verbatim
38121 #: ../tools/virt-win-reg.pl:615
38122 #, no-wrap
38123 msgid ""
38124 " $ file software.reg\n"
38125 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
38126 " with CRLF line terminators\n"
38127 "\n"
38128 msgstr ""
38129
38130 #. type: textblock
38131 #: ../tools/virt-win-reg.pl:619
38132 msgid "This file would need conversion before you could I<--merge> it."
38133 msgstr ""
38134
38135 #. type: =head1
38136 #: ../tools/virt-win-reg.pl:621
38137 msgid "CurrentControlSet etc."
38138 msgstr ""
38139
38140 #. type: textblock
38141 #: ../tools/virt-win-reg.pl:623
38142 msgid ""
38143 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
38144 "Registry at the level of the hive file, and therefore you cannot modify "
38145 "these."
38146 msgstr ""
38147
38148 #. type: textblock
38149 #: ../tools/virt-win-reg.pl:627
38150 msgid ""
38151 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
38152 "circumstances it might refer to another control set.  The way to find out is "
38153 "to look at the C<HKLM\\SYSTEM\\Select> key:"
38154 msgstr ""
38155
38156 #. type: verbatim
38157 #: ../tools/virt-win-reg.pl:631
38158 #, no-wrap
38159 msgid ""
38160 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
38161 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
38162 " \"Current\"=dword:00000001\n"
38163 " \"Default\"=dword:00000001\n"
38164 " \"Failed\"=dword:00000000\n"
38165 " \"LastKnownGood\"=dword:00000002\n"
38166 "\n"
38167 msgstr ""
38168
38169 #. type: textblock
38170 #: ../tools/virt-win-reg.pl:638
38171 msgid "\"Current\" is the one which Windows will choose when it boots."
38172 msgstr ""
38173
38174 #. type: textblock
38175 #: ../tools/virt-win-reg.pl:640
38176 msgid ""
38177 "Similarly, other C<Current...> keys in the path may need to be replaced."
38178 msgstr ""
38179
38180 #. type: =head1
38181 #: ../tools/virt-win-reg.pl:643
38182 msgid "WINDOWS TIPS"
38183 msgstr ""
38184
38185 #. type: textblock
38186 #: ../tools/virt-win-reg.pl:645
38187 msgid ""
38188 "Note that some of these tips modify the guest disk image.  The guest I<must> "
38189 "be shut off, else you will get disk corruption."
38190 msgstr ""
38191
38192 #. type: =head2
38193 #: ../tools/virt-win-reg.pl:648
38194 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
38195 msgstr ""
38196
38197 #. type: textblock
38198 #: ../tools/virt-win-reg.pl:650
38199 msgid ""
38200 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
38201 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
38202 "is uploaded into C<C:\\>:"
38203 msgstr ""
38204
38205 #. type: verbatim
38206 #: ../tools/virt-win-reg.pl:654
38207 #, no-wrap
38208 msgid ""
38209 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
38210 "\n"
38211 msgstr ""
38212
38213 #. type: textblock
38214 #: ../tools/virt-win-reg.pl:656
38215 msgid "Prepare a regedit file containing the registry change:"
38216 msgstr ""
38217
38218 #. type: verbatim
38219 #: ../tools/virt-win-reg.pl:658
38220 #, no-wrap
38221 msgid ""
38222 " cat > test.reg <<'EOF'\n"
38223 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
38224 " \"Test\"=\"c:\\\\test.bat\"\n"
38225 " EOF\n"
38226 "\n"
38227 msgstr ""
38228
38229 #. type: textblock
38230 #: ../tools/virt-win-reg.pl:663
38231 msgid ""
38232 "In this example we use the key C<RunOnce> which means that the script will "
38233 "run precisely once when the first user logs in.  If you want it to run every "
38234 "time a user logs in, replace C<RunOnce> with C<Run>."
38235 msgstr ""
38236
38237 #. type: textblock
38238 #: ../tools/virt-win-reg.pl:667
38239 msgid "Now update the registry:"
38240 msgstr ""
38241
38242 #. type: verbatim
38243 #: ../tools/virt-win-reg.pl:669
38244 #, no-wrap
38245 msgid ""
38246 " virt-win-reg --merge WindowsGuest test.reg\n"
38247 "\n"
38248 msgstr ""
38249
38250 #. type: =head2
38251 #: ../tools/virt-win-reg.pl:671
38252 msgid "INSTALLING A SERVICE"
38253 msgstr ""
38254
38255 #. type: textblock
38256 #: ../tools/virt-win-reg.pl:673
38257 msgid ""
38258 "This section assumes you are familiar with Windows services, and you either "
38259 "have a program which handles the Windows Service Control Protocol directly "
38260 "or you want to run any program using a service wrapper like SrvAny or the "
38261 "free RHSrvAny."
38262 msgstr ""
38263
38264 #. type: textblock
38265 #: ../tools/virt-win-reg.pl:678
38266 msgid ""
38267 "First upload the program and optionally the service wrapper.  In this case "
38268 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
38269 msgstr ""
38270
38271 #. type: verbatim
38272 #: ../tools/virt-win-reg.pl:682
38273 #, no-wrap
38274 msgid ""
38275 " guestfish -i -d WindowsGuest <<EOF\n"
38276 "   upload rhsrvany.exe /rhsrvany.exe\n"
38277 "   upload test.exe /test.exe\n"
38278 " EOF\n"
38279 "\n"
38280 msgstr ""
38281
38282 #. type: textblock
38283 #: ../tools/virt-win-reg.pl:687
38284 msgid ""
38285 "Prepare a regedit file containing the registry changes.  In this example, "
38286 "the first registry change is needed for the service itself or the service "
38287 "wrapper (if used).  The second registry change is only needed because I am "
38288 "using the RHSrvAny service wrapper."
38289 msgstr ""
38290
38291 #. type: verbatim
38292 #: ../tools/virt-win-reg.pl:692
38293 #, no-wrap
38294 msgid ""
38295 " cat > service.reg <<'EOF'\n"
38296 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
38297 " \"Type\"=dword:00000010\n"
38298 " \"Start\"=dword:00000002\n"
38299 " \"ErrorControl\"=dword:00000001\n"
38300 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
38301 " \"DisplayName\"=\"RHSrvAny\"\n"
38302 " \"ObjectName\"=\"NetworkService\"\n"
38303 " \n"
38304 msgstr ""
38305
38306 #. type: verbatim
38307 #: ../tools/virt-win-reg.pl:701
38308 #, no-wrap
38309 msgid ""
38310 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
38311 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
38312 " \"PWD\"=\"c:\\\\Temp\"\n"
38313 " EOF\n"
38314 "\n"
38315 msgstr ""
38316
38317 #. type: textblock
38318 #: ../tools/virt-win-reg.pl:712
38319 msgid ""
38320 "For use of C<ControlSet001> see the section above in this manual page.  You "
38321 "may need to adjust this according to the control set that is in use by the "
38322 "guest."
38323 msgstr ""
38324
38325 #. type: textblock
38326 #: ../tools/virt-win-reg.pl:718
38327 msgid ""
38328 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
38329 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
38330 "privileged account."
38331 msgstr ""
38332
38333 #. type: textblock
38334 #: ../tools/virt-win-reg.pl:724
38335 msgid ""
38336 "For the meaning of the magic numbers, see this Microsoft KB article: "
38337 "L<http://support.microsoft.com/kb/103000>."
38338 msgstr ""
38339
38340 #. type: textblock
38341 #: ../tools/virt-win-reg.pl:729
38342 msgid "Update the registry:"
38343 msgstr ""
38344
38345 #. type: verbatim
38346 #: ../tools/virt-win-reg.pl:731
38347 #, no-wrap
38348 msgid ""
38349 " virt-win-reg --merge WindowsGuest service.reg\n"
38350 "\n"
38351 msgstr ""
38352
38353 #. type: textblock
38354 #: ../tools/virt-win-reg.pl:735
38355 msgid ""
38356 "Be careful when passing parameters containing C<\\> (backslash) in the "
38357 "shell.  Usually you will have to use 'single quotes' or double backslashes "
38358 "(but not both) to protect them from the shell."
38359 msgstr ""
38360
38361 #. type: textblock
38362 #: ../tools/virt-win-reg.pl:739
38363 msgid "Paths and value names are case-insensitive."
38364 msgstr ""
38365
38366 #. type: textblock
38367 #: ../tools/virt-win-reg.pl:748
38368 msgid ""
38369 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
38370 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
38371 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38372 msgstr ""
38373
38374 #. type: verbatim
38375 #: ../tools/virt-win-reg.pl:766
38376 #, no-wrap
38377 msgid ""
38378 " export LIBGUESTFS_DEBUG=1\n"
38379 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
38380 "\n"
38381 msgstr ""
38382
38383 #. type: textblock
38384 #: ../tools/virt-win-reg.pl:769
38385 msgid ""
38386 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
38387 "redhat.com/>"
38388 msgstr ""