Version 1.12.7.
[libguestfs.git] / po-docs / ja.po
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
4 #
5 # rjones <rjones@redhat.com>, 2011.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: libguestfs\n"
9 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
10 "POT-Creation-Date: 2011-09-16 16:31+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:36
241 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
242 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
243 #: ../tools/virt-win-reg.pl:96
244 msgid "OPTIONS"
245 msgstr ""
246
247 #. type: =item
248 #: ../cat/virt-cat.pod:66 ../cat/virt-filesystems.pod:95
249 #: ../cat/virt-ls.pod:265 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
250 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:151
251 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88
252 #: ../resize/virt-resize.pod:245 ../test-tool/libguestfs-test-tool.pod:40
253 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
254 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
255 #: ../tools/virt-win-reg.pl:104
256 msgid "B<--help>"
257 msgstr ""
258
259 #. type: textblock
260 #: ../cat/virt-cat.pod:68 ../cat/virt-filesystems.pod:97
261 #: ../cat/virt-ls.pod:267 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
262 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90
263 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
264 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
265 #: ../tools/virt-win-reg.pl:106
266 msgid "Display brief help."
267 msgstr ""
268
269 #. type: =item
270 #: ../cat/virt-cat.pod:70 ../cat/virt-filesystems.pod:99
271 #: ../cat/virt-ls.pod:269 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
272 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
273 msgid "B<-a> file"
274 msgstr ""
275
276 #. type: =item
277 #: ../cat/virt-cat.pod:72 ../cat/virt-filesystems.pod:101
278 #: ../cat/virt-ls.pod:271 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
279 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
280 msgid "B<--add> file"
281 msgstr ""
282
283 #. type: textblock
284 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
285 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
286 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
287 msgid ""
288 "Add I<file> which should be a disk image from a virtual machine.  If the "
289 "virtual machine has multiple block devices, you must supply all of them with "
290 "separate I<-a> options."
291 msgstr ""
292
293 #. type: textblock
294 #: ../cat/virt-cat.pod:78 ../cat/virt-filesystems.pod:107
295 #: ../cat/virt-ls.pod:277 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
296 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:93
297 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
298 msgid ""
299 "The format of the disk image is auto-detected.  To override this and force a "
300 "particular format use the I<--format=..> option."
301 msgstr ""
302
303 #. type: =item
304 #: ../cat/virt-cat.pod:81 ../cat/virt-filesystems.pod:125
305 #: ../cat/virt-ls.pod:291 ../df/virt-df.pod:78 ../rescue/virt-rescue.pod:107
306 msgid "B<-c> URI"
307 msgstr ""
308
309 #. type: =item
310 #: ../cat/virt-cat.pod:83 ../cat/virt-filesystems.pod:127
311 #: ../cat/virt-ls.pod:293 ../df/virt-df.pod:80 ../rescue/virt-rescue.pod:109
312 msgid "B<--connect> URI"
313 msgstr ""
314
315 #. type: textblock
316 #: ../cat/virt-cat.pod:85 ../cat/virt-filesystems.pod:129
317 #: ../cat/virt-ls.pod:295 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
318 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111
319 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
320 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
321 msgid ""
322 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
323 "to the default libvirt hypervisor."
324 msgstr ""
325
326 #. type: textblock
327 #: ../cat/virt-cat.pod:88 ../cat/virt-filesystems.pod:132
328 #: ../cat/virt-ls.pod:298 ../df/virt-df.pod:85 ../rescue/virt-rescue.pod:114
329 msgid ""
330 "If you specify guest block devices directly (I<-a>), then libvirt is not "
331 "used at all."
332 msgstr ""
333
334 #. type: =item
335 #: ../cat/virt-cat.pod:91 ../cat/virt-filesystems.pod:141
336 #: ../cat/virt-ls.pod:307 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
337 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
338 msgid "B<-d> guest"
339 msgstr ""
340
341 #. type: =item
342 #: ../cat/virt-cat.pod:93 ../cat/virt-filesystems.pod:143
343 #: ../cat/virt-ls.pod:309 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
344 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
345 msgid "B<--domain> guest"
346 msgstr ""
347
348 #. type: textblock
349 #: ../cat/virt-cat.pod:95 ../cat/virt-filesystems.pod:145
350 #: ../cat/virt-ls.pod:311 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
351 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
352 msgid ""
353 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
354 "instead of names."
355 msgstr ""
356
357 #. type: =item
358 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
359 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
360 #: ../fuse/guestmount.pod:126 ../inspector/virt-inspector.pod:92
361 msgid "B<--echo-keys>"
362 msgstr ""
363
364 #. type: textblock
365 #: ../cat/virt-cat.pod:100
366 msgid ""
367 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
368 "so you cannot see what you are typing.  If you are not worried about Tempest "
369 "attacks and there is no one else in the room you can specify this flag to "
370 "see what you are typing."
371 msgstr ""
372
373 #. type: =item
374 #: ../cat/virt-cat.pod:105 ../cat/virt-filesystems.pod:170
375 #: ../cat/virt-ls.pod:328 ../df/virt-df.pod:101 ../fish/guestfish.pod:233
376 #: ../fuse/guestmount.pod:133 ../inspector/virt-inspector.pod:99
377 #: ../rescue/virt-rescue.pod:124
378 msgid "B<--format=raw|qcow2|..>"
379 msgstr ""
380
381 #. type: =item
382 #: ../cat/virt-cat.pod:107 ../cat/virt-filesystems.pod:172
383 #: ../cat/virt-ls.pod:330 ../df/virt-df.pod:103 ../edit/virt-edit.pod:134
384 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:135
385 #: ../inspector/virt-inspector.pod:101 ../rescue/virt-rescue.pod:126
386 msgid "B<--format>"
387 msgstr ""
388
389 #. type: textblock
390 #: ../cat/virt-cat.pod:109 ../cat/virt-filesystems.pod:174
391 #: ../cat/virt-ls.pod:332 ../df/virt-df.pod:105 ../edit/virt-edit.pod:136
392 #: ../fish/guestfish.pod:237 ../fuse/guestmount.pod:137
393 #: ../rescue/virt-rescue.pod:128
394 msgid ""
395 "The default for the I<-a> option is to auto-detect the format of the disk "
396 "image.  Using this forces the disk format for I<-a> options which follow on "
397 "the command line.  Using I<--format> with no argument switches back to auto-"
398 "detection for subsequent I<-a> options."
399 msgstr ""
400
401 #. type: textblock
402 #: ../cat/virt-cat.pod:114 ../cat/virt-filesystems.pod:179
403 #: ../cat/virt-ls.pod:337 ../df/virt-df.pod:110 ../edit/virt-edit.pod:141
404 #: ../fish/guestfish.pod:242 ../fish/guestfish.pod:673
405 #: ../inspector/virt-inspector.pod:336 ../rescue/virt-rescue.pod:133
406 #: ../src/guestfs.pod:2745
407 msgid "For example:"
408 msgstr ""
409
410 #. type: verbatim
411 #: ../cat/virt-cat.pod:116
412 #, no-wrap
413 msgid ""
414 " virt-cat --format=raw -a disk.img file\n"
415 "\n"
416 msgstr ""
417
418 #. type: textblock
419 #: ../cat/virt-cat.pod:118 ../cat/virt-filesystems.pod:183
420 #: ../cat/virt-ls.pod:341 ../df/virt-df.pod:114 ../edit/virt-edit.pod:145
421 #: ../fish/guestfish.pod:246 ../rescue/virt-rescue.pod:137
422 msgid "forces raw format (no auto-detection) for C<disk.img>."
423 msgstr ""
424
425 #. type: verbatim
426 #: ../cat/virt-cat.pod:120
427 #, no-wrap
428 msgid ""
429 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
430 "\n"
431 msgstr ""
432
433 #. type: textblock
434 #: ../cat/virt-cat.pod:122 ../cat/virt-filesystems.pod:187
435 #: ../cat/virt-ls.pod:345 ../df/virt-df.pod:118 ../edit/virt-edit.pod:149
436 #: ../fish/guestfish.pod:250 ../rescue/virt-rescue.pod:141
437 msgid ""
438 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
439 "detection for C<another.img>."
440 msgstr ""
441
442 #. type: textblock
443 #: ../cat/virt-cat.pod:125 ../cat/virt-filesystems.pod:190
444 #: ../cat/virt-ls.pod:348 ../df/virt-df.pod:121 ../edit/virt-edit.pod:152
445 #: ../rescue/virt-rescue.pod:144
446 msgid ""
447 "If you have untrusted raw-format guest disk images, you should use this "
448 "option to specify the disk format.  This avoids a possible security problem "
449 "with malicious guests (CVE-2010-3851)."
450 msgstr ""
451
452 #. type: =item
453 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
454 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
455 #: ../fuse/guestmount.pod:163 ../inspector/virt-inspector.pod:114
456 msgid "B<--keys-from-stdin>"
457 msgstr ""
458
459 #. type: textblock
460 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
461 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
462 #: ../fuse/guestmount.pod:165 ../inspector/virt-inspector.pod:116
463 msgid ""
464 "Read key or passphrase parameters from stdin.  The default is to try to read "
465 "passphrases from the user by opening C</dev/tty>."
466 msgstr ""
467
468 #. type: =item
469 #: ../cat/virt-cat.pod:134 ../cat/virt-filesystems.pod:261
470 #: ../cat/virt-ls.pod:425 ../df/virt-df.pod:173 ../edit/virt-edit.pod:161
471 #: ../fish/guestfish.pod:390 ../fuse/guestmount.pod:257
472 #: ../inspector/virt-inspector.pod:119 ../rescue/virt-rescue.pod:178
473 msgid "B<-v>"
474 msgstr ""
475
476 #. type: =item
477 #: ../cat/virt-cat.pod:136 ../cat/virt-filesystems.pod:263
478 #: ../cat/virt-ls.pod:427 ../df/virt-df.pod:175 ../edit/virt-edit.pod:163
479 #: ../fish/guestfish.pod:392 ../fuse/guestmount.pod:259
480 #: ../inspector/virt-inspector.pod:121 ../rescue/virt-rescue.pod:180
481 msgid "B<--verbose>"
482 msgstr ""
483
484 #. type: textblock
485 #: ../cat/virt-cat.pod:138 ../cat/virt-filesystems.pod:265
486 #: ../cat/virt-ls.pod:429 ../df/virt-df.pod:177 ../edit/virt-edit.pod:165
487 #: ../inspector/virt-inspector.pod:123 ../rescue/virt-rescue.pod:182
488 msgid "Enable verbose messages for debugging."
489 msgstr ""
490
491 #. type: =item
492 #: ../cat/virt-cat.pod:140 ../cat/virt-filesystems.pod:267
493 #: ../cat/virt-ls.pod:431 ../df/virt-df.pod:179 ../edit/virt-edit.pod:167
494 #: ../fish/guestfish.pod:397 ../fuse/guestmount.pod:263
495 #: ../inspector/virt-inspector.pod:125 ../rescue/virt-rescue.pod:184
496 #: ../resize/virt-resize.pod:484
497 msgid "B<-V>"
498 msgstr ""
499
500 #. type: =item
501 #: ../cat/virt-cat.pod:142 ../cat/virt-filesystems.pod:269
502 #: ../cat/virt-ls.pod:433 ../df/virt-df.pod:181 ../edit/virt-edit.pod:169
503 #: ../fish/guestfish.pod:399 ../fuse/guestmount.pod:265
504 #: ../inspector/virt-inspector.pod:127 ../rescue/virt-rescue.pod:186
505 #: ../resize/virt-resize.pod:486 ../tools/virt-list-filesystems.pl:69
506 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
507 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
508 msgid "B<--version>"
509 msgstr ""
510
511 #. type: textblock
512 #: ../cat/virt-cat.pod:144 ../cat/virt-filesystems.pod:271
513 #: ../cat/virt-ls.pod:435 ../df/virt-df.pod:183 ../edit/virt-edit.pod:171
514 #: ../inspector/virt-inspector.pod:129 ../rescue/virt-rescue.pod:188
515 #: ../resize/virt-resize.pod:488 ../tools/virt-list-filesystems.pl:71
516 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
517 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
518 msgid "Display version number and exit."
519 msgstr ""
520
521 #. type: =item
522 #: ../cat/virt-cat.pod:146 ../cat/virt-filesystems.pod:281
523 #: ../cat/virt-ls.pod:437 ../df/virt-df.pod:185 ../edit/virt-edit.pod:173
524 #: ../fish/guestfish.pod:412 ../fuse/guestmount.pod:278
525 #: ../inspector/virt-inspector.pod:131 ../rescue/virt-rescue.pod:199
526 #: ../tools/virt-tar.pl:158
527 msgid "B<-x>"
528 msgstr ""
529
530 #. type: textblock
531 #: ../cat/virt-cat.pod:148 ../cat/virt-filesystems.pod:283
532 #: ../cat/virt-ls.pod:439 ../df/virt-df.pod:187 ../edit/virt-edit.pod:175
533 #: ../inspector/virt-inspector.pod:133 ../rescue/virt-rescue.pod:201
534 msgid "Enable tracing of libguestfs API calls."
535 msgstr ""
536
537 #. type: =head1
538 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
539 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:205
540 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
541 msgstr ""
542
543 #. type: textblock
544 #: ../cat/virt-cat.pod:154
545 msgid "Previous versions of virt-cat allowed you to write either:"
546 msgstr ""
547
548 #. type: verbatim
549 #: ../cat/virt-cat.pod:156
550 #, no-wrap
551 msgid ""
552 " virt-cat disk.img [disk.img ...] file\n"
553 "\n"
554 msgstr ""
555
556 #. type: textblock
557 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
558 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:211
559 msgid "or"
560 msgstr ""
561
562 #. type: verbatim
563 #: ../cat/virt-cat.pod:160
564 #, no-wrap
565 msgid ""
566 " virt-cat guestname file\n"
567 "\n"
568 msgstr ""
569
570 #. type: textblock
571 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
572 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:215
573 msgid ""
574 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
575 "the confusing case where a disk image might have the same name as a guest."
576 msgstr ""
577
578 #. type: textblock
579 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
580 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:219
581 msgid "For compatibility the old style is still supported."
582 msgstr ""
583
584 #. type: =head1
585 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
586 msgid "USING GUESTFISH"
587 msgstr ""
588
589 #. type: textblock
590 #: ../cat/virt-cat.pod:170
591 msgid ""
592 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
593 "C<virt-cat> doesn't work."
594 msgstr ""
595
596 #. type: textblock
597 #: ../cat/virt-cat.pod:173
598 msgid "Using C<virt-cat> is approximately equivalent to doing:"
599 msgstr ""
600
601 #. type: verbatim
602 #: ../cat/virt-cat.pod:175
603 #, no-wrap
604 msgid ""
605 " guestfish --ro -i -d domname download file -\n"
606 "\n"
607 msgstr ""
608
609 #. type: textblock
610 #: ../cat/virt-cat.pod:177
611 msgid ""
612 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
613 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
614 msgstr ""
615
616 #. type: textblock
617 #: ../cat/virt-cat.pod:181
618 msgid ""
619 "The command above uses libguestfs's guest inspection feature and so does not "
620 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
621 "disk images that don't contain guests.  To display a file from a disk image "
622 "directly, use:"
623 msgstr ""
624
625 #. type: verbatim
626 #: ../cat/virt-cat.pod:186
627 #, no-wrap
628 msgid ""
629 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
630 "\n"
631 msgstr ""
632
633 #. type: textblock
634 #: ../cat/virt-cat.pod:188
635 msgid ""
636 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
637 "the disk image, and C<file> is the full path to the file."
638 msgstr ""
639
640 #. type: =head1
641 #: ../cat/virt-cat.pod:191 ../cat/virt-filesystems.pod:365
642 #: ../cat/virt-ls.pod:483 ../df/virt-df.pod:215 ../edit/virt-edit.pod:342
643 #: ../inspector/virt-inspector.pod:352 ../rescue/virt-rescue.pod:262
644 #: ../resize/virt-resize.pod:568 ../tools/virt-list-filesystems.pl:188
645 #: ../tools/virt-list-partitions.pl:258 ../tools/virt-make-fs.pl:532
646 #: ../tools/virt-tar.pl:289 ../tools/virt-win-reg.pl:733
647 msgid "SHELL QUOTING"
648 msgstr ""
649
650 #. type: textblock
651 #: ../cat/virt-cat.pod:193 ../cat/virt-filesystems.pod:367
652 #: ../cat/virt-ls.pod:485 ../df/virt-df.pod:217 ../edit/virt-edit.pod:344
653 #: ../inspector/virt-inspector.pod:354 ../rescue/virt-rescue.pod:264
654 #: ../resize/virt-resize.pod:570 ../tools/virt-list-filesystems.pl:190
655 #: ../tools/virt-list-partitions.pl:260 ../tools/virt-make-fs.pl:534
656 #: ../tools/virt-tar.pl:291 ../tools/virt-win-reg.pl:741
657 msgid ""
658 "Libvirt guest names can contain arbitrary characters, some of which have "
659 "meaning to the shell such as C<#> and space.  You may need to quote or "
660 "escape these characters on the command line.  See the shell manual page L<sh"
661 "(1)> for details."
662 msgstr ""
663
664 #. type: =head1
665 #: ../cat/virt-cat.pod:198 ../cat/virt-filesystems.pod:372
666 #: ../cat/virt-ls.pod:490 ../df/virt-df.pod:222 ../edit/virt-edit.pod:349
667 #: ../fish/guestfish.pod:1081 ../fuse/guestmount.pod:303
668 #: ../inspector/virt-inspector.pod:375 ../resize/virt-resize.pod:575
669 #: ../test-tool/libguestfs-test-tool.pod:90
670 msgid "EXIT STATUS"
671 msgstr ""
672
673 #. type: textblock
674 #: ../cat/virt-cat.pod:200 ../cat/virt-filesystems.pod:374
675 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
676 #: ../fuse/guestmount.pod:305 ../inspector/virt-inspector.pod:377
677 #: ../resize/virt-resize.pod:577
678 msgid ""
679 "This program returns 0 if successful, or non-zero if there was an error."
680 msgstr ""
681
682 #. type: =head1
683 #: ../cat/virt-cat.pod:203 ../cat/virt-filesystems.pod:377
684 #: ../cat/virt-ls.pod:495 ../df/virt-df.pod:227 ../edit/virt-edit.pod:354
685 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
686 #: ../fish/guestfish.pod:1235 ../fish/virt-copy-in.pod:50
687 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
688 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:308
689 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45
690 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
691 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:284
692 #: ../resize/virt-resize.pod:580 ../ruby/examples/guestfs-ruby.pod:36
693 #: ../src/guestfs.pod:3119 ../test-tool/libguestfs-test-tool.pod:100
694 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
695 #: ../tools/virt-make-fs.pl:539 ../tools/virt-tar.pl:296
696 #: ../tools/virt-win-reg.pl:746
697 msgid "SEE ALSO"
698 msgstr ""
699
700 #. type: textblock
701 #: ../cat/virt-cat.pod:205
702 msgid ""
703 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
704 "tar-out(1)>, L<http://libguestfs.org/>."
705 msgstr ""
706
707 #. type: =head1
708 #: ../cat/virt-cat.pod:212 ../cat/virt-filesystems.pod:388
709 #: ../cat/virt-ls.pod:507 ../df/virt-df.pod:235 ../edit/virt-edit.pod:368
710 #: ../rescue/virt-rescue.pod:292 ../resize/virt-resize.pod:601
711 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
712 #: ../tools/virt-make-fs.pl:564 ../tools/virt-tar.pl:311
713 #: ../tools/virt-win-reg.pl:772
714 msgid "AUTHOR"
715 msgstr ""
716
717 #. type: textblock
718 #: ../cat/virt-cat.pod:214 ../cat/virt-filesystems.pod:390
719 #: ../cat/virt-ls.pod:509 ../df/virt-df.pod:237 ../edit/virt-edit.pod:370
720 #: ../inspector/virt-inspector.pod:395 ../rescue/virt-rescue.pod:294
721 #: ../resize/virt-resize.pod:603 ../tools/virt-list-filesystems.pl:210
722 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:566
723 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:774
724 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
725 msgstr ""
726
727 #. type: =head1
728 #: ../cat/virt-cat.pod:216 ../cat/virt-filesystems.pod:392
729 #: ../cat/virt-ls.pod:511 ../df/virt-df.pod:239 ../edit/virt-edit.pod:372
730 #: ../examples/guestfs-examples.pod:48 ../examples/guestfs-recipes.pod:400
731 #: ../fish/guestfish.pod:1264 ../fish/virt-copy-in.pod:64
732 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
733 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:323
734 #: ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:61
735 #: ../ocaml/examples/guestfs-ocaml.pod:94 ../perl/examples/guestfs-perl.pod:55
736 #: ../python/examples/guestfs-python.pod:57 ../rescue/virt-rescue.pod:296
737 #: ../resize/virt-resize.pod:605 ../ruby/examples/guestfs-ruby.pod:51
738 #: ../src/guestfs.pod:3195 ../test-tool/libguestfs-test-tool.pod:110
739 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
740 #: ../tools/virt-make-fs.pl:568 ../tools/virt-tar.pl:315
741 #: ../tools/virt-win-reg.pl:776
742 msgid "COPYRIGHT"
743 msgstr ""
744
745 #. type: textblock
746 #: ../cat/virt-cat.pod:218 ../inspector/virt-inspector.pod:405
747 #: ../resize/virt-resize.pod:607
748 msgid "Copyright (C) 2010-2011 Red Hat Inc."
749 msgstr ""
750
751 #. type: textblock
752 #: ../cat/virt-cat.pod:220 ../cat/virt-filesystems.pod:396
753 #: ../cat/virt-ls.pod:515 ../df/virt-df.pod:243 ../edit/virt-edit.pod:376
754 #: ../fish/guestfish.pod:1269 ../fish/virt-copy-in.pod:69
755 #: ../fish/virt-copy-out.pod:58 ../fish/virt-tar-in.pod:67
756 #: ../fish/virt-tar-out.pod:60 ../fuse/guestmount.pod:328
757 #: ../inspector/virt-inspector.pod:407 ../rescue/virt-rescue.pod:300
758 #: ../resize/virt-resize.pod:609 ../test-tool/libguestfs-test-tool.pod:115
759 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
760 #: ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319
761 #: ../tools/virt-win-reg.pl:780
762 msgid ""
763 "This program is free software; you can redistribute it and/or modify it "
764 "under the terms of the GNU General Public License as published by the Free "
765 "Software Foundation; either version 2 of the License, or (at your option) "
766 "any later version."
767 msgstr ""
768
769 #. type: textblock
770 #: ../cat/virt-cat.pod:225 ../cat/virt-filesystems.pod:401
771 #: ../cat/virt-ls.pod:520 ../df/virt-df.pod:248 ../edit/virt-edit.pod:381
772 #: ../fish/guestfish.pod:1274 ../fish/virt-copy-in.pod:74
773 #: ../fish/virt-copy-out.pod:63 ../fish/virt-tar-in.pod:72
774 #: ../fish/virt-tar-out.pod:65 ../fuse/guestmount.pod:333
775 #: ../inspector/virt-inspector.pod:412 ../rescue/virt-rescue.pod:305
776 #: ../resize/virt-resize.pod:614 ../test-tool/libguestfs-test-tool.pod:120
777 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
778 #: ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324
779 #: ../tools/virt-win-reg.pl:785
780 msgid ""
781 "This program is distributed in the hope that it will be useful, but WITHOUT "
782 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
783 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
784 "more details."
785 msgstr ""
786
787 #. type: textblock
788 #: ../cat/virt-cat.pod:230 ../cat/virt-filesystems.pod:406
789 #: ../cat/virt-ls.pod:525 ../df/virt-df.pod:253 ../edit/virt-edit.pod:386
790 #: ../fish/guestfish.pod:1279 ../fish/virt-copy-in.pod:79
791 #: ../fish/virt-copy-out.pod:68 ../fish/virt-tar-in.pod:77
792 #: ../fish/virt-tar-out.pod:70 ../fuse/guestmount.pod:338
793 #: ../inspector/virt-inspector.pod:417 ../rescue/virt-rescue.pod:310
794 #: ../resize/virt-resize.pod:619 ../test-tool/libguestfs-test-tool.pod:125
795 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
796 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329
797 #: ../tools/virt-win-reg.pl:790
798 msgid ""
799 "You should have received a copy of the GNU General Public License along with "
800 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
801 "Ave, Cambridge, MA 02139, USA."
802 msgstr ""
803
804 #. type: textblock
805 #: ../cat/virt-filesystems.pod:5
806 msgid ""
807 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
808 "virtual machine or disk image"
809 msgstr ""
810
811 #. type: verbatim
812 #: ../cat/virt-filesystems.pod:9
813 #, no-wrap
814 msgid ""
815 " virt-filesystems [--options] -d domname\n"
816 "\n"
817 msgstr ""
818
819 #. type: verbatim
820 #: ../cat/virt-filesystems.pod:11
821 #, no-wrap
822 msgid ""
823 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
824 "\n"
825 msgstr ""
826
827 #. type: textblock
828 #: ../cat/virt-filesystems.pod:15
829 msgid ""
830 "This tool allows you to discover filesystems, partitions, logical volumes, "
831 "and their sizes in a disk image or virtual machine.  It is a replacement for "
832 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
833 msgstr ""
834
835 #. type: textblock
836 #: ../cat/virt-filesystems.pod:20
837 msgid ""
838 "One use for this tool is from shell scripts to iterate over all filesystems "
839 "from a disk image:"
840 msgstr ""
841
842 #. type: verbatim
843 #: ../cat/virt-filesystems.pod:23
844 #, no-wrap
845 msgid ""
846 " for fs in $(virt-filesystems -a disk.img); do\n"
847 "   # ...\n"
848 " done\n"
849 "\n"
850 msgstr ""
851
852 #. type: textblock
853 #: ../cat/virt-filesystems.pod:27
854 msgid ""
855 "Another use is to list partitions before using another tool to modify those "
856 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
857 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
858 msgstr ""
859
860 #. type: textblock
861 #: ../cat/virt-filesystems.pod:32
862 msgid ""
863 "Various command line options control what this program displays.  You need "
864 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
865 "guest respectively.  If you just specify that then the program shows "
866 "filesystems found, one per line, like this:"
867 msgstr ""
868
869 #. type: verbatim
870 #: ../cat/virt-filesystems.pod:37
871 #, no-wrap
872 msgid ""
873 " $ virt-filesystems -a disk.img\n"
874 " /dev/sda1\n"
875 " /dev/vg_guest/lv_root\n"
876 "\n"
877 msgstr ""
878
879 #. type: textblock
880 #: ../cat/virt-filesystems.pod:41
881 msgid ""
882 "If you add I<-l> or I<--long> then the output includes extra information:"
883 msgstr ""
884
885 #. type: verbatim
886 #: ../cat/virt-filesystems.pod:44
887 #, no-wrap
888 msgid ""
889 " $ virt-filesystems -a disk.img -l\n"
890 " Name                   Type         VFS   Label  Size\n"
891 " /dev/sda1              filesystem   ext4  boot   524288000\n"
892 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
893 "\n"
894 msgstr ""
895
896 #. type: textblock
897 #: ../cat/virt-filesystems.pod:49
898 msgid ""
899 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
900 "shown as well:"
901 msgstr ""
902
903 #. type: verbatim
904 #: ../cat/virt-filesystems.pod:52
905 #, no-wrap
906 msgid ""
907 " $ virt-filesystems -a disk.img --extra\n"
908 " /dev/sda1\n"
909 " /dev/vg_guest/lv_root\n"
910 " /dev/vg_guest/lv_swap\n"
911 " /dev/vg_guest/lv_data\n"
912 "\n"
913 msgstr ""
914
915 #. type: textblock
916 #: ../cat/virt-filesystems.pod:58
917 msgid ""
918 "If you add I<--partitions> then partitions are shown instead of filesystems:"
919 msgstr ""
920
921 #. type: verbatim
922 #: ../cat/virt-filesystems.pod:60
923 #, no-wrap
924 msgid ""
925 " $ virt-filesystems -a disk.img --partitions\n"
926 " /dev/sda1\n"
927 " /dev/sda2\n"
928 "\n"
929 msgstr ""
930
931 #. type: textblock
932 #: ../cat/virt-filesystems.pod:64
933 msgid ""
934 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
935 "volumes>, I<--block-devices> to list those items."
936 msgstr ""
937
938 #. type: textblock
939 #: ../cat/virt-filesystems.pod:67
940 msgid ""
941 "You can use these options in combination as well (if you want a combination "
942 "including filesystems, you have to add I<--filesystems>).  Notice that some "
943 "items fall into several categories (eg. C</dev/sda1> might be both a "
944 "partition and a filesystem).  These items are listed several times.  To get "
945 "a list which includes absolutely everything that virt-filesystems knows "
946 "about, use the I<--all> option."
947 msgstr ""
948
949 #. type: textblock
950 #: ../cat/virt-filesystems.pod:74
951 msgid ""
952 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
953 "uuid> option to display device and filesystem UUIDs in the long output."
954 msgstr ""
955
956 #. type: textblock
957 #: ../cat/virt-filesystems.pod:78
958 msgid ""
959 "I<--all --long --uuid> is a useful combination to display all possible "
960 "information about everything."
961 msgstr ""
962
963 #. type: verbatim
964 #: ../cat/virt-filesystems.pod:81
965 #, no-wrap
966 msgid ""
967 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
968 " Name      Type       VFS  Label           Size Parent   UUID\n"
969 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
970 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
971 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
972 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
973 " /dev/sda  device     -    -               20G  -        -\n"
974 "\n"
975 msgstr ""
976
977 #. type: textblock
978 #: ../cat/virt-filesystems.pod:89
979 msgid ""
980 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
981 msgstr ""
982
983 #. type: =item
984 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
985 msgid "B<--all>"
986 msgstr ""
987
988 #. type: textblock
989 #: ../cat/virt-filesystems.pod:112
990 msgid ""
991 "Display everything.  This is currently the same as specifying these options: "
992 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
993 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
994 "added to this list in future)."
995 msgstr ""
996
997 #. type: textblock
998 #: ../cat/virt-filesystems.pod:117
999 msgid "See also I<--long>."
1000 msgstr ""
1001
1002 #. type: =item
1003 #: ../cat/virt-filesystems.pod:119
1004 msgid "B<--blkdevs>"
1005 msgstr ""
1006
1007 #. type: =item
1008 #: ../cat/virt-filesystems.pod:121
1009 msgid "B<--block-devices>"
1010 msgstr ""
1011
1012 #. type: textblock
1013 #: ../cat/virt-filesystems.pod:123
1014 msgid "Display block devices."
1015 msgstr ""
1016
1017 #. type: =item
1018 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1019 msgid "B<--csv>"
1020 msgstr ""
1021
1022 #. type: textblock
1023 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1024 msgid ""
1025 "Write out the results in CSV format (comma-separated values).  This format "
1026 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1027 "ABOUT CSV FORMAT> below."
1028 msgstr ""
1029
1030 #. type: textblock
1031 #: ../cat/virt-filesystems.pod:150
1032 msgid ""
1033 "When prompting for keys and passphrases, virt-filesystems normally turns "
1034 "echoing off so you cannot see what you are typing.  If you are not worried "
1035 "about Tempest attacks and there is no one else in the room you can specify "
1036 "this flag to see what you are typing."
1037 msgstr ""
1038
1039 #. type: =item
1040 #: ../cat/virt-filesystems.pod:155
1041 msgid "B<--extra>"
1042 msgstr ""
1043
1044 #. type: textblock
1045 #: ../cat/virt-filesystems.pod:157
1046 msgid ""
1047 "This causes filesystems that are not ordinary, mountable filesystems to be "
1048 "displayed.  This category includes swapspace, and filesystems that are empty "
1049 "or contain unknown data."
1050 msgstr ""
1051
1052 #. type: textblock
1053 #: ../cat/virt-filesystems.pod:161
1054 msgid "This option implies I<--filesystems>."
1055 msgstr ""
1056
1057 #. type: =item
1058 #: ../cat/virt-filesystems.pod:163
1059 msgid "B<--filesystems>"
1060 msgstr ""
1061
1062 #. type: textblock
1063 #: ../cat/virt-filesystems.pod:165
1064 msgid ""
1065 "Display mountable filesystems.  If no display option was selected then this "
1066 "option is implied."
1067 msgstr ""
1068
1069 #. type: textblock
1070 #: ../cat/virt-filesystems.pod:168
1071 msgid "With I<--extra>, non-mountable filesystems are shown too."
1072 msgstr ""
1073
1074 #. type: verbatim
1075 #: ../cat/virt-filesystems.pod:181
1076 #, no-wrap
1077 msgid ""
1078 " virt-filesystems --format=raw -a disk.img\n"
1079 "\n"
1080 msgstr ""
1081
1082 #. type: verbatim
1083 #: ../cat/virt-filesystems.pod:185
1084 #, no-wrap
1085 msgid ""
1086 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1087 "\n"
1088 msgstr ""
1089
1090 #. type: =item
1091 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1092 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1093 #: ../tools/virt-list-partitions.pl:109
1094 msgid "B<-h>"
1095 msgstr ""
1096
1097 #. type: =item
1098 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1099 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1100 msgid "B<--human-readable>"
1101 msgstr ""
1102
1103 #. type: textblock
1104 #: ../cat/virt-filesystems.pod:198
1105 msgid "In I<--long> mode, display sizes in human-readable format."
1106 msgstr ""
1107
1108 #. type: =item
1109 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1110 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1111 msgid "B<-l>"
1112 msgstr ""
1113
1114 #. type: =item
1115 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1116 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1117 msgid "B<--long>"
1118 msgstr ""
1119
1120 #. type: textblock
1121 #: ../cat/virt-filesystems.pod:209
1122 msgid "Display extra columns of data (\"long format\")."
1123 msgstr ""
1124
1125 #. type: textblock
1126 #: ../cat/virt-filesystems.pod:211
1127 msgid "A title row is added unless you also specify I<--no-title>."
1128 msgstr ""
1129
1130 #. type: textblock
1131 #: ../cat/virt-filesystems.pod:213
1132 msgid ""
1133 "The extra columns displayed depend on what output you select, and the "
1134 "ordering of columns may change in future versions.  Use the title row, I<--"
1135 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1136 "programs."
1137 msgstr ""
1138
1139 #. type: textblock
1140 #: ../cat/virt-filesystems.pod:218
1141 msgid ""
1142 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1143 "default is to show raw numbers of I<bytes>."
1144 msgstr ""
1145
1146 #. type: textblock
1147 #: ../cat/virt-filesystems.pod:221
1148 msgid "Use I<--uuid> to display UUIDs too."
1149 msgstr ""
1150
1151 #. type: =item
1152 #: ../cat/virt-filesystems.pod:223
1153 msgid "B<--lvs>"
1154 msgstr ""
1155
1156 #. type: =item
1157 #: ../cat/virt-filesystems.pod:225
1158 msgid "B<--logvols>"
1159 msgstr ""
1160
1161 #. type: =item
1162 #: ../cat/virt-filesystems.pod:227
1163 msgid "B<--logical-volumes>"
1164 msgstr ""
1165
1166 #. type: textblock
1167 #: ../cat/virt-filesystems.pod:229
1168 msgid ""
1169 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1170 "of whether the LVs contain filesystems."
1171 msgstr ""
1172
1173 #. type: =item
1174 #: ../cat/virt-filesystems.pod:232
1175 msgid "B<--no-title>"
1176 msgstr ""
1177
1178 #. type: textblock
1179 #: ../cat/virt-filesystems.pod:234
1180 msgid "In I<--long> mode, don't add a title row."
1181 msgstr ""
1182
1183 #. type: textblock
1184 #: ../cat/virt-filesystems.pod:236
1185 msgid ""
1186 "Note that the order of the columns is not fixed, and may change in future "
1187 "versions of virt-filesystems, so using this option may give you unexpected "
1188 "surprises."
1189 msgstr ""
1190
1191 #. type: =item
1192 #: ../cat/virt-filesystems.pod:240
1193 msgid "B<--parts>"
1194 msgstr ""
1195
1196 #. type: =item
1197 #: ../cat/virt-filesystems.pod:242
1198 msgid "B<--partitions>"
1199 msgstr ""
1200
1201 #. type: textblock
1202 #: ../cat/virt-filesystems.pod:244
1203 msgid ""
1204 "Display partitions.  In this mode, these are displayed irrespective of "
1205 "whether the partitions contain filesystems."
1206 msgstr ""
1207
1208 #. type: =item
1209 #: ../cat/virt-filesystems.pod:247
1210 msgid "B<--pvs>"
1211 msgstr ""
1212
1213 #. type: =item
1214 #: ../cat/virt-filesystems.pod:249
1215 msgid "B<--physvols>"
1216 msgstr ""
1217
1218 #. type: =item
1219 #: ../cat/virt-filesystems.pod:251
1220 msgid "B<--physical-volumes>"
1221 msgstr ""
1222
1223 #. type: textblock
1224 #: ../cat/virt-filesystems.pod:253
1225 msgid "Display LVM physical volumes."
1226 msgstr ""
1227
1228 #. type: =item
1229 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1230 msgid "B<--uuid>"
1231 msgstr ""
1232
1233 #. type: =item
1234 #: ../cat/virt-filesystems.pod:257
1235 msgid "B<--uuids>"
1236 msgstr ""
1237
1238 #. type: textblock
1239 #: ../cat/virt-filesystems.pod:259
1240 msgid "In I<--long> mode, display UUIDs as well."
1241 msgstr ""
1242
1243 #. type: =item
1244 #: ../cat/virt-filesystems.pod:273
1245 msgid "B<--vgs>"
1246 msgstr ""
1247
1248 #. type: =item
1249 #: ../cat/virt-filesystems.pod:275
1250 msgid "B<--volgroups>"
1251 msgstr ""
1252
1253 #. type: =item
1254 #: ../cat/virt-filesystems.pod:277
1255 msgid "B<--volume-groups>"
1256 msgstr ""
1257
1258 #. type: textblock
1259 #: ../cat/virt-filesystems.pod:279
1260 msgid "Display LVM volume groups."
1261 msgstr ""
1262
1263 #. type: =head1
1264 #: ../cat/virt-filesystems.pod:287
1265 msgid "COLUMNS"
1266 msgstr ""
1267
1268 #. type: textblock
1269 #: ../cat/virt-filesystems.pod:289
1270 msgid ""
1271 "Note that columns in the output are subject to reordering and change in "
1272 "future versions of this tool."
1273 msgstr ""
1274
1275 #. type: =item
1276 #: ../cat/virt-filesystems.pod:294
1277 msgid "B<Name>"
1278 msgstr ""
1279
1280 #. type: textblock
1281 #: ../cat/virt-filesystems.pod:296
1282 msgid "The filesystem, partition, block device or LVM name."
1283 msgstr ""
1284
1285 #. type: textblock
1286 #: ../cat/virt-filesystems.pod:298
1287 msgid ""
1288 "For device and partition names these are displayed as canonical libguestfs "
1289 "names, so that for example C</dev/sda2> is the second partition on the first "
1290 "device."
1291 msgstr ""
1292
1293 #. type: textblock
1294 #: ../cat/virt-filesystems.pod:302
1295 msgid ""
1296 "If the I<--long> option is B<not> specified, then only the name column is "
1297 "shown in the output."
1298 msgstr ""
1299
1300 #. type: =item
1301 #: ../cat/virt-filesystems.pod:305
1302 msgid "B<Type>"
1303 msgstr ""
1304
1305 #. type: textblock
1306 #: ../cat/virt-filesystems.pod:307
1307 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1308 msgstr ""
1309
1310 #. type: =item
1311 #: ../cat/virt-filesystems.pod:309
1312 msgid "B<VFS>"
1313 msgstr ""
1314
1315 #. type: textblock
1316 #: ../cat/virt-filesystems.pod:311
1317 msgid ""
1318 "If there is a filesystem, then this column displays the filesystem type if "
1319 "one could be detected, eg. C<ext4>."
1320 msgstr ""
1321
1322 #. type: =item
1323 #: ../cat/virt-filesystems.pod:314
1324 msgid "B<Label>"
1325 msgstr ""
1326
1327 #. type: textblock
1328 #: ../cat/virt-filesystems.pod:316
1329 msgid ""
1330 "If the object has a label (used for identifying and mounting filesystems) "
1331 "then this column contains the label."
1332 msgstr ""
1333
1334 #. type: =item
1335 #: ../cat/virt-filesystems.pod:319
1336 msgid "B<Size>"
1337 msgstr ""
1338
1339 #. type: textblock
1340 #: ../cat/virt-filesystems.pod:321
1341 msgid ""
1342 "The size of the object in bytes.  If the I<--human> option is used then the "
1343 "size is displayed in a human-readable form."
1344 msgstr ""
1345
1346 #. type: =item
1347 #: ../cat/virt-filesystems.pod:324
1348 msgid "B<Parent>"
1349 msgstr ""
1350
1351 #. type: textblock
1352 #: ../cat/virt-filesystems.pod:326
1353 msgid ""
1354 "The parent column records the parent relationship between objects.  For "
1355 "example, if the object is a partition, then this column contains the name of "
1356 "the containing device.  If the object is a logical volume, then this column "
1357 "is the name of the volume group."
1358 msgstr ""
1359
1360 #. type: =item
1361 #: ../cat/virt-filesystems.pod:331
1362 msgid "B<UUID>"
1363 msgstr ""
1364
1365 #. type: textblock
1366 #: ../cat/virt-filesystems.pod:333
1367 msgid ""
1368 "If the object has a UUID (used for identifying and mounting filesystems and "
1369 "block devices) then this column contains the UUID as a string."
1370 msgstr ""
1371
1372 #. type: textblock
1373 #: ../cat/virt-filesystems.pod:337
1374 msgid "The UUID is only displayed if the I<--uuid> option is given."
1375 msgstr ""
1376
1377 #. type: =head1
1378 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459
1379 #: ../df/virt-df.pod:191
1380 msgid "NOTE ABOUT CSV FORMAT"
1381 msgstr ""
1382
1383 #. type: textblock
1384 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461
1385 #: ../df/virt-df.pod:193
1386 msgid ""
1387 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
1388 "should be easy to parse, but it is definitely not easy to parse."
1389 msgstr ""
1390
1391 #. type: textblock
1392 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464
1393 #: ../df/virt-df.pod:196
1394 msgid ""
1395 "Myth: Just split fields at commas.  Reality: This does I<not> work "
1396 "reliably.  This example has two columns:"
1397 msgstr ""
1398
1399 #. type: verbatim
1400 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467
1401 #: ../df/virt-df.pod:199
1402 #, no-wrap
1403 msgid ""
1404 " \"foo,bar\",baz\n"
1405 "\n"
1406 msgstr ""
1407
1408 #. type: textblock
1409 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469
1410 #: ../df/virt-df.pod:201
1411 msgid ""
1412 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
1413 "reliably.  This example has one row:"
1414 msgstr ""
1415
1416 #. type: verbatim
1417 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472
1418 #: ../df/virt-df.pod:204
1419 #, no-wrap
1420 msgid ""
1421 " \"foo\n"
1422 " bar\",baz\n"
1423 "\n"
1424 msgstr ""
1425
1426 #. type: textblock
1427 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475
1428 #: ../df/virt-df.pod:207
1429 msgid ""
1430 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1431 "packaged in major Linux distributions)."
1432 msgstr ""
1433
1434 #. type: textblock
1435 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478
1436 #: ../df/virt-df.pod:210
1437 msgid ""
1438 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1439 "or Python's built-in csv library)."
1440 msgstr ""
1441
1442 #. type: textblock
1443 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481
1444 #: ../df/virt-df.pod:213
1445 msgid "Most spreadsheets and databases can import CSV directly."
1446 msgstr ""
1447
1448 #. type: textblock
1449 #: ../cat/virt-filesystems.pod:379
1450 msgid ""
1451 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
1452 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
1453 "libguestfs.org/>."
1454 msgstr ""
1455
1456 #. type: textblock
1457 #: ../cat/virt-filesystems.pod:394 ../tools/virt-make-fs.pl:570
1458 #: ../tools/virt-win-reg.pl:778
1459 msgid "Copyright (C) 2010 Red Hat Inc."
1460 msgstr ""
1461
1462 #. type: textblock
1463 #: ../cat/virt-ls.pod:5
1464 msgid "virt-ls - List files in a virtual machine"
1465 msgstr ""
1466
1467 #. type: verbatim
1468 #: ../cat/virt-ls.pod:9
1469 #, no-wrap
1470 msgid ""
1471 " virt-ls [--options] -d domname directory [directory ...]\n"
1472 "\n"
1473 msgstr ""
1474
1475 #. type: verbatim
1476 #: ../cat/virt-ls.pod:11
1477 #, no-wrap
1478 msgid ""
1479 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
1480 "\n"
1481 msgstr ""
1482
1483 #. type: textblock
1484 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
1485 msgid "Old style:"
1486 msgstr ""
1487
1488 #. type: verbatim
1489 #: ../cat/virt-ls.pod:15
1490 #, no-wrap
1491 msgid ""
1492 " virt-ls [--options] domname directory\n"
1493 "\n"
1494 msgstr ""
1495
1496 #. type: verbatim
1497 #: ../cat/virt-ls.pod:17
1498 #, no-wrap
1499 msgid ""
1500 " virt-ls [--options] disk.img [disk.img ...] directory\n"
1501 "\n"
1502 msgstr ""
1503
1504 #. type: textblock
1505 #: ../cat/virt-ls.pod:21
1506 msgid ""
1507 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
1508 "more from a virtual machine or disk image."
1509 msgstr ""
1510
1511 #. type: textblock
1512 #: ../cat/virt-ls.pod:24
1513 msgid ""
1514 "Multiple directory names can be given, in which case the output from each is "
1515 "concatenated."
1516 msgstr ""
1517
1518 #. type: textblock
1519 #: ../cat/virt-ls.pod:27
1520 msgid ""
1521 "To list directories from a libvirt guest use the I<-d> option to specify the "
1522 "name of the guest.  For a disk image, use the I<-a> option."
1523 msgstr ""
1524
1525 #. type: textblock
1526 #: ../cat/virt-ls.pod:31
1527 msgid ""
1528 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
1529 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
1530 "(3)> API."
1531 msgstr ""
1532
1533 #. type: textblock
1534 #: ../cat/virt-ls.pod:37
1535 msgid "Get a list of all files and directories in a virtual machine:"
1536 msgstr ""
1537
1538 #. type: verbatim
1539 #: ../cat/virt-ls.pod:39
1540 #, no-wrap
1541 msgid ""
1542 " virt-ls -R -d guest /\n"
1543 "\n"
1544 msgstr ""
1545
1546 #. type: textblock
1547 #: ../cat/virt-ls.pod:41
1548 msgid "List all setuid or setgid programs in a Linux virtual machine:"
1549 msgstr ""
1550
1551 #. type: verbatim
1552 #: ../cat/virt-ls.pod:43
1553 #, no-wrap
1554 msgid ""
1555 " virt-ls -lR -d guest / | grep '^- [42]'\n"
1556 "\n"
1557 msgstr ""
1558
1559 #. type: textblock
1560 #: ../cat/virt-ls.pod:45
1561 msgid "List all public-writable directories in a Linux virtual machine:"
1562 msgstr ""
1563
1564 #. type: verbatim
1565 #: ../cat/virt-ls.pod:47
1566 #, no-wrap
1567 msgid ""
1568 " virt-ls -lR -d guest / | grep '^d ...7'\n"
1569 "\n"
1570 msgstr ""
1571
1572 #. type: textblock
1573 #: ../cat/virt-ls.pod:49
1574 msgid "List all Unix domain sockets in a Linux virtual machine:"
1575 msgstr ""
1576
1577 #. type: verbatim
1578 #: ../cat/virt-ls.pod:51
1579 #, no-wrap
1580 msgid ""
1581 " virt-ls -lR -d guest / | grep '^s'\n"
1582 "\n"
1583 msgstr ""
1584
1585 #. type: textblock
1586 #: ../cat/virt-ls.pod:53
1587 msgid "List all regular files with filenames ending in '.png':"
1588 msgstr ""
1589
1590 #. type: verbatim
1591 #: ../cat/virt-ls.pod:55
1592 #, no-wrap
1593 msgid ""
1594 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
1595 "\n"
1596 msgstr ""
1597
1598 #. type: textblock
1599 #: ../cat/virt-ls.pod:57
1600 msgid "To display files larger than 10MB in home directories:"
1601 msgstr ""
1602
1603 #. type: verbatim
1604 #: ../cat/virt-ls.pod:59
1605 #, no-wrap
1606 msgid ""
1607 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
1608 "\n"
1609 msgstr ""
1610
1611 #. type: textblock
1612 #: ../cat/virt-ls.pod:61
1613 msgid "Find everything modified in the last 7 days:"
1614 msgstr ""
1615
1616 #. type: verbatim
1617 #: ../cat/virt-ls.pod:63
1618 #, no-wrap
1619 msgid ""
1620 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
1621 "\n"
1622 msgstr ""
1623
1624 #. type: textblock
1625 #: ../cat/virt-ls.pod:65
1626 msgid "Find regular files modified in the last 24 hours:"
1627 msgstr ""
1628
1629 #. type: verbatim
1630 #: ../cat/virt-ls.pod:67
1631 #, no-wrap
1632 msgid ""
1633 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
1634 "\n"
1635 msgstr ""
1636
1637 #. type: =head2
1638 #: ../cat/virt-ls.pod:69
1639 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
1640 msgstr ""
1641
1642 #. type: textblock
1643 #: ../cat/virt-ls.pod:71
1644 msgid ""
1645 "Find the differences between files in a guest and an earlier snapshot of the "
1646 "same guest."
1647 msgstr ""
1648
1649 #. type: verbatim
1650 #: ../cat/virt-ls.pod:74
1651 #, no-wrap
1652 msgid ""
1653 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
1654 " virt-ls -lR -a current.img / --uids --time-t > new\n"
1655 " diff -u old new | less\n"
1656 "\n"
1657 msgstr ""
1658
1659 #. type: textblock
1660 #: ../cat/virt-ls.pod:78
1661 msgid ""
1662 "The commands above won't find files where the content has changed but the "
1663 "metadata (eg. file size and modification date) is the same.  To do that, you "
1664 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
1665 "checksum> can be quite slow since it has to read and compute a checksum of "
1666 "every regular file in the virtual machine."
1667 msgstr ""
1668
1669 #. type: =head1
1670 #: ../cat/virt-ls.pod:84
1671 msgid "OUTPUT MODES"
1672 msgstr ""
1673
1674 #. type: textblock
1675 #: ../cat/virt-ls.pod:86
1676 msgid ""
1677 "C<virt-ls> has four output modes, controlled by different combinations of "
1678 "the I<-l> and I<-R> options."
1679 msgstr ""
1680
1681 #. type: =head2
1682 #: ../cat/virt-ls.pod:89
1683 msgid "SIMPLE LISTING"
1684 msgstr ""
1685
1686 #. type: textblock
1687 #: ../cat/virt-ls.pod:91
1688 msgid "A simple listing is like the ordinary L<ls(1)> command:"
1689 msgstr ""
1690
1691 #. type: verbatim
1692 #: ../cat/virt-ls.pod:93
1693 #, no-wrap
1694 msgid ""
1695 " $ virt-ls -d guest /\n"
1696 " bin\n"
1697 " boot\n"
1698 " [etc.]\n"
1699 "\n"
1700 msgstr ""
1701
1702 #. type: =head2
1703 #: ../cat/virt-ls.pod:98
1704 msgid "LONG LISTING"
1705 msgstr ""
1706
1707 #. type: textblock
1708 #: ../cat/virt-ls.pod:100
1709 msgid ""
1710 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
1711 "(more specifically, like the C<guestfs_ll> function)."
1712 msgstr ""
1713
1714 #. type: verbatim
1715 #: ../cat/virt-ls.pod:103
1716 #, no-wrap
1717 msgid ""
1718 " $ virt-ls -l -d guest /\n"
1719 " total 204\n"
1720 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
1721 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
1722 " [etc.]\n"
1723 "\n"
1724 msgstr ""
1725
1726 #. type: textblock
1727 #: ../cat/virt-ls.pod:109
1728 msgid ""
1729 "Note that while this is useful for displaying a directory, do not try "
1730 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
1731 "instead."
1732 msgstr ""
1733
1734 #. type: =head2
1735 #: ../cat/virt-ls.pod:113
1736 msgid "RECURSIVE LISTING"
1737 msgstr ""
1738
1739 #. type: textblock
1740 #: ../cat/virt-ls.pod:115
1741 msgid ""
1742 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
1743 "and directories recursively:"
1744 msgstr ""
1745
1746 #. type: verbatim
1747 #: ../cat/virt-ls.pod:118
1748 #, no-wrap
1749 msgid ""
1750 " $ virt-ls -R -d guest /tmp\n"
1751 " foo\n"
1752 " foo/bar\n"
1753 " [etc.]\n"
1754 "\n"
1755 msgstr ""
1756
1757 #. type: textblock
1758 #: ../cat/virt-ls.pod:123
1759 msgid ""
1760 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
1761 "converts C<\\0> characters to C<\\n>."
1762 msgstr ""
1763
1764 #. type: =head2
1765 #: ../cat/virt-ls.pod:126
1766 msgid "RECURSIVE LONG LISTING"
1767 msgstr ""
1768
1769 #. type: textblock
1770 #: ../cat/virt-ls.pod:128
1771 msgid ""
1772 "Using I<-lR> options together changes the output to display directories "
1773 "recursively, with file stats, and optionally other features such as "
1774 "checksums and extended attributes."
1775 msgstr ""
1776
1777 #. type: textblock
1778 #: ../cat/virt-ls.pod:132
1779 msgid ""
1780 "Most of the interesting features of C<virt-ls> are only available when using "
1781 "I<-lR> mode."
1782 msgstr ""
1783
1784 #. type: textblock
1785 #: ../cat/virt-ls.pod:135
1786 msgid ""
1787 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
1788 "you cannot use the output in another program (because filenames can contain "
1789 "spaces and other unsafe characters).  If the guest was untrusted and someone "
1790 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
1791 "on you by creating filenames with embedded newline characters.  To B<safely> "
1792 "parse the output in another program, use the I<--csv> (Comma-Separated "
1793 "Values) option."
1794 msgstr ""
1795
1796 #. type: textblock
1797 #: ../cat/virt-ls.pod:143
1798 msgid ""
1799 "Note that this output format is completely unrelated to the C<ls -lR> "
1800 "command."
1801 msgstr ""
1802
1803 #. type: verbatim
1804 #: ../cat/virt-ls.pod:146
1805 #, no-wrap
1806 msgid ""
1807 " $ virt-ls -lR -d guest /bin\n"
1808 " d 0555       4096 /bin\n"
1809 " - 0755        123 /bin/alsaunmute\n"
1810 " - 0755      28328 /bin/arch\n"
1811 " l 0777          4 /bin/awk -> gawk\n"
1812 " - 0755      27216 /bin/basename\n"
1813 " - 0755     943360 /bin/bash\n"
1814 " [etc.]\n"
1815 "\n"
1816 msgstr ""
1817
1818 #. type: textblock
1819 #: ../cat/virt-ls.pod:155
1820 msgid "These basic fields are always shown:"
1821 msgstr ""
1822
1823 #. type: =item
1824 #: ../cat/virt-ls.pod:159
1825 msgid "type"
1826 msgstr ""
1827
1828 #. type: textblock
1829 #: ../cat/virt-ls.pod:161
1830 msgid ""
1831 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
1832 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
1833 "link), C<s> (socket) or C<u> (unknown)."
1834 msgstr ""
1835
1836 #. type: =item
1837 #: ../cat/virt-ls.pod:171
1838 msgid "permissions"
1839 msgstr ""
1840
1841 #. type: textblock
1842 #: ../cat/virt-ls.pod:173
1843 msgid "The Unix permissions, displayed as a 4 digit octal number."
1844 msgstr ""
1845
1846 #. type: =item
1847 #: ../cat/virt-ls.pod:175
1848 msgid "size"
1849 msgstr ""
1850
1851 #. type: textblock
1852 #: ../cat/virt-ls.pod:177
1853 msgid ""
1854 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
1855 "readable> option is given, in which case this is shown as a human-readable "
1856 "number."
1857 msgstr ""
1858
1859 #. type: =head2
1860 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4210
1861 msgid "path"
1862 msgstr ""
1863
1864 #. type: textblock
1865 #: ../cat/virt-ls.pod:183
1866 msgid "The full path of the file or directory."
1867 msgstr ""
1868
1869 #. type: =item
1870 #: ../cat/virt-ls.pod:185
1871 msgid "link"
1872 msgstr ""
1873
1874 #. type: textblock
1875 #: ../cat/virt-ls.pod:187
1876 msgid "For symbolic links only, the link target."
1877 msgstr ""
1878
1879 #. type: textblock
1880 #: ../cat/virt-ls.pod:191
1881 msgid ""
1882 "In I<-lR> mode, additional command line options enable the display of more "
1883 "fields."
1884 msgstr ""
1885
1886 #. type: textblock
1887 #: ../cat/virt-ls.pod:194
1888 msgid ""
1889 "With the I<--uids> flag, these additional fields are displayed before the "
1890 "path:"
1891 msgstr ""
1892
1893 #. type: =item
1894 #: ../cat/virt-ls.pod:199
1895 msgid "uid"
1896 msgstr ""
1897
1898 #. type: =item
1899 #: ../cat/virt-ls.pod:201
1900 msgid "gid"
1901 msgstr ""
1902
1903 #. type: textblock
1904 #: ../cat/virt-ls.pod:203
1905 msgid ""
1906 "The UID and GID of the owner of the file (displayed numerically).  Note "
1907 "these only make sense in the context of a Unix-like guest."
1908 msgstr ""
1909
1910 #. type: textblock
1911 #: ../cat/virt-ls.pod:208
1912 msgid "With the I<--times> flag, these additional fields are displayed:"
1913 msgstr ""
1914
1915 #. type: =item
1916 #: ../cat/virt-ls.pod:212
1917 msgid "atime"
1918 msgstr ""
1919
1920 #. type: textblock
1921 #: ../cat/virt-ls.pod:214
1922 msgid "The time of last access."
1923 msgstr ""
1924
1925 #. type: =item
1926 #: ../cat/virt-ls.pod:216
1927 msgid "mtime"
1928 msgstr ""
1929
1930 #. type: textblock
1931 #: ../cat/virt-ls.pod:218
1932 msgid "The time of last modification."
1933 msgstr ""
1934
1935 #. type: =item
1936 #: ../cat/virt-ls.pod:220
1937 msgid "ctime"
1938 msgstr ""
1939
1940 #. type: textblock
1941 #: ../cat/virt-ls.pod:222
1942 msgid "The time of last status change."
1943 msgstr ""
1944
1945 #. type: textblock
1946 #: ../cat/virt-ls.pod:226
1947 msgid ""
1948 "The time fields are displayed as string dates and times, unless one of the "
1949 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
1950 msgstr ""
1951
1952 #. type: textblock
1953 #: ../cat/virt-ls.pod:229
1954 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
1955 msgstr ""
1956
1957 #. type: =item
1958 #: ../cat/virt-ls.pod:233
1959 msgid "device"
1960 msgstr ""
1961
1962 #. type: textblock
1963 #: ../cat/virt-ls.pod:235
1964 msgid ""
1965 "The device containing the file (displayed as major:minor).  This may not "
1966 "match devices as known to the guest."
1967 msgstr ""
1968
1969 #. type: =item
1970 #: ../cat/virt-ls.pod:238
1971 msgid "inode"
1972 msgstr ""
1973
1974 #. type: textblock
1975 #: ../cat/virt-ls.pod:240
1976 msgid "The inode number."
1977 msgstr ""
1978
1979 #. type: =item
1980 #: ../cat/virt-ls.pod:242
1981 msgid "nlink"
1982 msgstr ""
1983
1984 #. type: textblock
1985 #: ../cat/virt-ls.pod:244
1986 msgid "The number of hard links."
1987 msgstr ""
1988
1989 #. type: =item
1990 #: ../cat/virt-ls.pod:246
1991 msgid "rdev"
1992 msgstr ""
1993
1994 #. type: textblock
1995 #: ../cat/virt-ls.pod:248
1996 msgid ""
1997 "For block and char special files, the device (displayed as major:minor)."
1998 msgstr ""
1999
2000 #. type: =item
2001 #: ../cat/virt-ls.pod:251
2002 msgid "blocks"
2003 msgstr ""
2004
2005 #. type: textblock
2006 #: ../cat/virt-ls.pod:253
2007 msgid "The number of 512 byte blocks allocated to the file."
2008 msgstr ""
2009
2010 #. type: textblock
2011 #: ../cat/virt-ls.pod:257
2012 msgid ""
2013 "With the I<--checksum> flag, the checksum of the file contents is shown "
2014 "(only for regular files).  Computing file checksums can take a considerable "
2015 "amount of time."
2016 msgstr ""
2017
2018 #. type: =item
2019 #: ../cat/virt-ls.pod:280
2020 msgid "B<--checksum>"
2021 msgstr ""
2022
2023 #. type: =item
2024 #: ../cat/virt-ls.pod:282
2025 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2026 msgstr ""
2027
2028 #. type: textblock
2029 #: ../cat/virt-ls.pod:284
2030 msgid ""
2031 "Display checksum over file contents for regular files.  With no argument, "
2032 "this defaults to using I<md5>.  Using an argument, you can select the "
2033 "checksum type to use."
2034 msgstr ""
2035
2036 #. type: textblock
2037 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2038 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2039 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2040 msgid ""
2041 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2042 "LISTING> above."
2043 msgstr ""
2044
2045 #. type: textblock
2046 #: ../cat/virt-ls.pod:316
2047 msgid ""
2048 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2049 "so you cannot see what you are typing.  If you are not worried about Tempest "
2050 "attacks and there is no one else in the room you can specify this flag to "
2051 "see what you are typing."
2052 msgstr ""
2053
2054 #. type: =item
2055 #: ../cat/virt-ls.pod:321
2056 msgid "B<--extra-stats>"
2057 msgstr ""
2058
2059 #. type: textblock
2060 #: ../cat/virt-ls.pod:323
2061 msgid "Display extra stats."
2062 msgstr ""
2063
2064 #. type: verbatim
2065 #: ../cat/virt-ls.pod:339
2066 #, no-wrap
2067 msgid ""
2068 " virt-ls --format=raw -a disk.img /dir\n"
2069 "\n"
2070 msgstr ""
2071
2072 #. type: verbatim
2073 #: ../cat/virt-ls.pod:343
2074 #, no-wrap
2075 msgid ""
2076 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2077 "\n"
2078 msgstr ""
2079
2080 #. type: textblock
2081 #: ../cat/virt-ls.pod:356
2082 msgid "Display file sizes in human-readable format."
2083 msgstr ""
2084
2085 #. type: =item
2086 #: ../cat/virt-ls.pod:370
2087 msgid "B<-R>"
2088 msgstr ""
2089
2090 #. type: =item
2091 #: ../cat/virt-ls.pod:372
2092 msgid "B<--recursive>"
2093 msgstr ""
2094
2095 #. type: textblock
2096 #: ../cat/virt-ls.pod:374
2097 msgid ""
2098 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2099 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2100 "LISTING>."
2101 msgstr ""
2102
2103 #. type: textblock
2104 #: ../cat/virt-ls.pod:378
2105 msgid ""
2106 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2107 "LONG LISTING>."
2108 msgstr ""
2109
2110 #. type: textblock
2111 #: ../cat/virt-ls.pod:381
2112 msgid ""
2113 "C<virt-ls -R> produces a recursive list of files starting at the named "
2114 "directory.  See L</RECURSIVE LISTING>."
2115 msgstr ""
2116
2117 #. type: textblock
2118 #: ../cat/virt-ls.pod:384
2119 msgid ""
2120 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2121 "parsed.  See L</RECURSIVE LONG LISTING>."
2122 msgstr ""
2123
2124 #. type: =item
2125 #: ../cat/virt-ls.pod:387
2126 msgid "B<--times>"
2127 msgstr ""
2128
2129 #. type: textblock
2130 #: ../cat/virt-ls.pod:389
2131 msgid "Display time fields."
2132 msgstr ""
2133
2134 #. type: =item
2135 #: ../cat/virt-ls.pod:394
2136 msgid "B<--time-days>"
2137 msgstr ""
2138
2139 #. type: textblock
2140 #: ../cat/virt-ls.pod:396
2141 msgid "Display time fields as days before now (negative if in the future)."
2142 msgstr ""
2143
2144 #. type: textblock
2145 #: ../cat/virt-ls.pod:398
2146 msgid ""
2147 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2148 "of the file is between 0 and 86399 seconds."
2149 msgstr ""
2150
2151 #. type: =item
2152 #: ../cat/virt-ls.pod:404
2153 msgid "B<--time-relative>"
2154 msgstr ""
2155
2156 #. type: textblock
2157 #: ../cat/virt-ls.pod:406
2158 msgid "Display time fields as seconds before now (negative if in the future)."
2159 msgstr ""
2160
2161 #. type: =item
2162 #: ../cat/virt-ls.pod:411
2163 msgid "B<--time-t>"
2164 msgstr ""
2165
2166 #. type: textblock
2167 #: ../cat/virt-ls.pod:413
2168 msgid "Display time fields as seconds since the Unix epoch."
2169 msgstr ""
2170
2171 #. type: =item
2172 #: ../cat/virt-ls.pod:418
2173 msgid "B<--uids>"
2174 msgstr ""
2175
2176 #. type: textblock
2177 #: ../cat/virt-ls.pod:420
2178 msgid "Display UID and GID fields."
2179 msgstr ""
2180
2181 #. type: textblock
2182 #: ../cat/virt-ls.pod:445
2183 msgid "Previous versions of virt-ls allowed you to write either:"
2184 msgstr ""
2185
2186 #. type: verbatim
2187 #: ../cat/virt-ls.pod:447
2188 #, no-wrap
2189 msgid ""
2190 " virt-ls disk.img [disk.img ...] /dir\n"
2191 "\n"
2192 msgstr ""
2193
2194 #. type: verbatim
2195 #: ../cat/virt-ls.pod:451
2196 #, no-wrap
2197 msgid ""
2198 " virt-ls guestname /dir\n"
2199 "\n"
2200 msgstr ""
2201
2202 #. type: textblock
2203 #: ../cat/virt-ls.pod:497
2204 msgid ""
2205 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2206 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2207 "L<http://libguestfs.org/>."
2208 msgstr ""
2209
2210 #. type: textblock
2211 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
2212 #: ../rescue/virt-rescue.pod:298
2213 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2214 msgstr ""
2215
2216 #. type: textblock
2217 #: ../df/virt-df.pod:5
2218 msgid "virt-df - Display free space on virtual filesystems"
2219 msgstr ""
2220
2221 #. type: verbatim
2222 #: ../df/virt-df.pod:9
2223 #, no-wrap
2224 msgid ""
2225 " virt-df [--options]\n"
2226 "\n"
2227 msgstr ""
2228
2229 #. type: verbatim
2230 #: ../df/virt-df.pod:11
2231 #, no-wrap
2232 msgid ""
2233 " virt-df [--options] -d domname\n"
2234 "\n"
2235 msgstr ""
2236
2237 #. type: verbatim
2238 #: ../df/virt-df.pod:13
2239 #, no-wrap
2240 msgid ""
2241 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
2242 "\n"
2243 msgstr ""
2244
2245 #. type: verbatim
2246 #: ../df/virt-df.pod:17
2247 #, no-wrap
2248 msgid ""
2249 " virt-df [--options] domname\n"
2250 "\n"
2251 msgstr ""
2252
2253 #. type: verbatim
2254 #: ../df/virt-df.pod:19
2255 #, no-wrap
2256 msgid ""
2257 " virt-df [--options] disk.img [disk.img ...]\n"
2258 "\n"
2259 msgstr ""
2260
2261 #. type: textblock
2262 #: ../df/virt-df.pod:23
2263 msgid ""
2264 "C<virt-df> is a command line tool to display free space on virtual machine "
2265 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
2266 "allocated to a virtual machine, but can look inside disk images to see how "
2267 "much space is really being used."
2268 msgstr ""
2269
2270 #. type: textblock
2271 #: ../df/virt-df.pod:28
2272 msgid ""
2273 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
2274 "to get a list of all active and inactive guests, and performs a C<df>-type "
2275 "operation on each one in turn, printing out the results."
2276 msgstr ""
2277
2278 #. type: textblock
2279 #: ../df/virt-df.pod:32
2280 msgid ""
2281 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
2282 "type operation on either the single named libvirt domain, or on the disk "
2283 "image(s) listed on the command line (which must all belong to a single VM).  "
2284 "In this mode (with arguments), C<virt-df> will I<only work for a single "
2285 "guest>.  If you want to run on multiple guests, then you have to invoke "
2286 "C<virt-df> multiple times."
2287 msgstr ""
2288
2289 #. type: textblock
2290 #: ../df/virt-df.pod:39
2291 msgid ""
2292 "Use the I<--csv> option to get a format which can be easily parsed by other "
2293 "programs.  Other options are similar to the standard L<df(1)> command."
2294 msgstr ""
2295
2296 #. type: textblock
2297 #: ../df/virt-df.pod:45
2298 msgid ""
2299 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
2300 "output human-readable:"
2301 msgstr ""
2302
2303 #. type: verbatim
2304 #: ../df/virt-df.pod:48
2305 #, no-wrap
2306 msgid ""
2307 " # virt-df -d F14x64 -h\n"
2308 " Filesystem                       Size     Used  Available  Use%\n"
2309 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
2310 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
2311 "\n"
2312 msgstr ""
2313
2314 #. type: textblock
2315 #: ../df/virt-df.pod:53
2316 msgid "Show disk usage for a disk image file called C<test.img>:"
2317 msgstr ""
2318
2319 #. type: verbatim
2320 #: ../df/virt-df.pod:55
2321 #, no-wrap
2322 msgid ""
2323 " $ virt-df -a test1.img\n"
2324 " Filesystem                  1K-blocks     Used  Available  Use%\n"
2325 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
2326 "\n"
2327 msgstr ""
2328
2329 #. type: verbatim
2330 #: ../df/virt-df.pod:112
2331 #, no-wrap
2332 msgid ""
2333 " virt-df --format=raw -a disk.img\n"
2334 "\n"
2335 msgstr ""
2336
2337 #. type: verbatim
2338 #: ../df/virt-df.pod:116
2339 #, no-wrap
2340 msgid ""
2341 " virt-df --format=raw -a disk.img --format -a another.img\n"
2342 "\n"
2343 msgstr ""
2344
2345 #. type: textblock
2346 #: ../df/virt-df.pod:129
2347 msgid "Print sizes in human-readable format."
2348 msgstr ""
2349
2350 #. type: textblock
2351 #: ../df/virt-df.pod:131
2352 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
2353 msgstr ""
2354
2355 #. type: =item
2356 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:155
2357 msgid "B<-i>"
2358 msgstr ""
2359
2360 #. type: =item
2361 #: ../df/virt-df.pod:135
2362 msgid "B<--inodes>"
2363 msgstr ""
2364
2365 #. type: textblock
2366 #: ../df/virt-df.pod:137
2367 msgid "Print inodes instead of blocks."
2368 msgstr ""
2369
2370 #. type: =item
2371 #: ../df/virt-df.pod:139
2372 msgid "B<--one-per-guest>"
2373 msgstr ""
2374
2375 #. type: textblock
2376 #: ../df/virt-df.pod:141
2377 msgid ""
2378 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
2379 "disks from several guests to a single libguestfs appliance."
2380 msgstr ""
2381
2382 #. type: textblock
2383 #: ../df/virt-df.pod:144
2384 msgid "You might use this option in the following circumstances:"
2385 msgstr ""
2386
2387 #. type: =item
2388 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
2389 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
2390 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
2391 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
2392 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
2393 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
2394 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
2395 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
2396 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
2397 #: ../fish/guestfish-actions.pod:390 ../fish/guestfish-actions.pod:398
2398 #: ../fish/guestfish-actions.pod:405 ../fish/guestfish-actions.pod:412
2399 #: ../fish/guestfish-actions.pod:1104 ../fish/guestfish-actions.pod:1108
2400 #: ../fish/guestfish-actions.pod:1112 ../fish/guestfish-actions.pod:1116
2401 #: ../fish/guestfish-actions.pod:1124 ../fish/guestfish-actions.pod:1128
2402 #: ../fish/guestfish-actions.pod:1132 ../fish/guestfish-actions.pod:1142
2403 #: ../fish/guestfish-actions.pod:1146 ../fish/guestfish-actions.pod:1150
2404 #: ../fish/guestfish-actions.pod:1240 ../fish/guestfish-actions.pod:1244
2405 #: ../fish/guestfish-actions.pod:1249 ../fish/guestfish-actions.pod:1254
2406 #: ../fish/guestfish-actions.pod:1296 ../fish/guestfish-actions.pod:1300
2407 #: ../fish/guestfish-actions.pod:1305 ../fish/guestfish-actions.pod:1555
2408 #: ../fish/guestfish-actions.pod:1562 ../fish/guestfish-actions.pod:1569
2409 #: ../fish/guestfish-actions.pod:1960 ../fish/guestfish-actions.pod:1966
2410 #: ../fish/guestfish-actions.pod:1974 ../fish/guestfish-actions.pod:1981
2411 #: ../fish/guestfish-actions.pod:1988 ../fish/guestfish.pod:445
2412 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
2413 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393
2414 #: ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:282
2415 #: ../resize/virt-resize.pod:286 ../resize/virt-resize.pod:295
2416 #: ../resize/virt-resize.pod:301 ../src/guestfs-actions.pod:15
2417 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:588
2418 #: ../src/guestfs-actions.pod:596 ../src/guestfs-actions.pod:603
2419 #: ../src/guestfs-actions.pod:610 ../src/guestfs-actions.pod:1667
2420 #: ../src/guestfs-actions.pod:1671 ../src/guestfs-actions.pod:1675
2421 #: ../src/guestfs-actions.pod:1679 ../src/guestfs-actions.pod:1687
2422 #: ../src/guestfs-actions.pod:1691 ../src/guestfs-actions.pod:1695
2423 #: ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1709
2424 #: ../src/guestfs-actions.pod:1713 ../src/guestfs-actions.pod:1851
2425 #: ../src/guestfs-actions.pod:1855 ../src/guestfs-actions.pod:1860
2426 #: ../src/guestfs-actions.pod:1865 ../src/guestfs-actions.pod:1926
2427 #: ../src/guestfs-actions.pod:1930 ../src/guestfs-actions.pod:1935
2428 #: ../src/guestfs-actions.pod:2339 ../src/guestfs-actions.pod:2346
2429 #: ../src/guestfs-actions.pod:2353 ../src/guestfs-actions.pod:2886
2430 #: ../src/guestfs-actions.pod:2892 ../src/guestfs-actions.pod:2900
2431 #: ../src/guestfs-actions.pod:2907 ../src/guestfs-actions.pod:2914
2432 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398
2433 #: ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411
2434 #: ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1064
2435 #: ../src/guestfs.pod:1068 ../src/guestfs.pod:1072 ../src/guestfs.pod:1077
2436 #: ../src/guestfs.pod:1085 ../src/guestfs.pod:1104 ../src/guestfs.pod:1112
2437 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1138 ../src/guestfs.pod:1142
2438 #: ../src/guestfs.pod:1146 ../src/guestfs.pod:1150 ../src/guestfs.pod:1154
2439 #: ../src/guestfs.pod:1643 ../src/guestfs.pod:1648 ../src/guestfs.pod:1652
2440 #: ../src/guestfs.pod:1754 ../src/guestfs.pod:1759 ../src/guestfs.pod:1763
2441 #: ../src/guestfs.pod:1773 ../src/guestfs.pod:2047 ../src/guestfs.pod:2052
2442 #: ../src/guestfs.pod:2058 ../src/guestfs.pod:2066 ../src/guestfs.pod:2513
2443 #: ../src/guestfs.pod:2519 ../src/guestfs.pod:2524 ../src/guestfs.pod:2530
2444 #: ../src/guestfs.pod:2911 ../src/guestfs.pod:2916 ../src/guestfs.pod:2920
2445 #: ../src/guestfs.pod:2924 ../src/guestfs.pod:2928 ../src/guestfs.pod:2942
2446 #: ../src/guestfs.pod:2947 ../src/guestfs.pod:3172 ../src/guestfs.pod:3176
2447 #: ../src/guestfs.pod:3180 ../src/guestfs.pod:3184
2448 #: ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202
2449 #: ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:710
2450 #: ../tools/virt-win-reg.pl:716 ../tools/virt-win-reg.pl:722
2451 msgid "*"
2452 msgstr ""
2453
2454 #. type: textblock
2455 #: ../df/virt-df.pod:150
2456 msgid ""
2457 "If you think an untrusted guest might actively try to exploit the libguestfs "
2458 "appliance kernel, then this prevents one guest from interfering with the "
2459 "stats printed for another guest."
2460 msgstr ""
2461
2462 #. type: textblock
2463 #: ../df/virt-df.pod:156
2464 msgid ""
2465 "If the kernel has a bug which stops it from accessing a filesystem in one "
2466 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
2467 "and report stats for further guests."
2468 msgstr ""
2469
2470 #. type: textblock
2471 #: ../df/virt-df.pod:165
2472 msgid ""
2473 "Print UUIDs instead of names.  This is useful for following a guest even "
2474 "when the guest is migrated or renamed, or when two guests happen to have the "
2475 "same name."
2476 msgstr ""
2477
2478 #. type: textblock
2479 #: ../df/virt-df.pod:169
2480 msgid ""
2481 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
2482 "images, we still print the disk image name even when this option is "
2483 "specified."
2484 msgstr ""
2485
2486 #. type: textblock
2487 #: ../df/virt-df.pod:229
2488 msgid ""
2489 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
2490 "libguestfs.org/>."
2491 msgstr ""
2492
2493 #. type: textblock
2494 #: ../edit/virt-edit.pod:5
2495 msgid "virt-edit - Edit a file in a virtual machine"
2496 msgstr ""
2497
2498 #. type: verbatim
2499 #: ../edit/virt-edit.pod:9
2500 #, no-wrap
2501 msgid ""
2502 " virt-edit [--options] -d domname file [file ...]\n"
2503 "\n"
2504 msgstr ""
2505
2506 #. type: verbatim
2507 #: ../edit/virt-edit.pod:11
2508 #, no-wrap
2509 msgid ""
2510 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
2511 "\n"
2512 msgstr ""
2513
2514 #. type: verbatim
2515 #: ../edit/virt-edit.pod:13
2516 #, no-wrap
2517 msgid ""
2518 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
2519 "\n"
2520 msgstr ""
2521
2522 #. type: verbatim
2523 #: ../edit/virt-edit.pod:17
2524 #, no-wrap
2525 msgid ""
2526 " virt-edit domname file\n"
2527 "\n"
2528 msgstr ""
2529
2530 #. type: verbatim
2531 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
2532 #, no-wrap
2533 msgid ""
2534 " virt-edit disk.img [disk.img ...] file\n"
2535 "\n"
2536 msgstr ""
2537
2538 #. type: =head1
2539 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
2540 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
2541 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
2542 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
2543 msgid "WARNING"
2544 msgstr ""
2545
2546 #. type: textblock
2547 #: ../edit/virt-edit.pod:23
2548 msgid ""
2549 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
2550 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
2551 "doing this, but doesn't catch all cases."
2552 msgstr ""
2553
2554 #. type: textblock
2555 #: ../edit/virt-edit.pod:29
2556 msgid ""
2557 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
2558 "exists in the named virtual machine (or disk image)."
2559 msgstr ""
2560
2561 #. type: textblock
2562 #: ../edit/virt-edit.pod:32
2563 msgid ""
2564 "Multiple filenames can be given, in which case they are each edited in "
2565 "turn.  Each filename must be a full path, starting at the root directory "
2566 "(starting with '/')."
2567 msgstr ""
2568
2569 #. type: textblock
2570 #: ../edit/virt-edit.pod:36
2571 msgid "If you want to just view a file, use L<virt-cat(1)>."
2572 msgstr ""
2573
2574 #. type: textblock
2575 #: ../edit/virt-edit.pod:38
2576 msgid ""
2577 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
2578 "USING GUESTFISH> below)."
2579 msgstr ""
2580
2581 #. type: textblock
2582 #: ../edit/virt-edit.pod:41
2583 msgid ""
2584 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
2585 "that and much more."
2586 msgstr ""
2587
2588 #. type: textblock
2589 #: ../edit/virt-edit.pod:46
2590 msgid "Edit the named files interactively:"
2591 msgstr ""
2592
2593 #. type: verbatim
2594 #: ../edit/virt-edit.pod:48
2595 #, no-wrap
2596 msgid ""
2597 " virt-edit -d mydomain /boot/grub/grub.conf\n"
2598 "\n"
2599 msgstr ""
2600
2601 #. type: verbatim
2602 #: ../edit/virt-edit.pod:50
2603 #, no-wrap
2604 msgid ""
2605 " virt-edit -d mydomain /etc/passwd\n"
2606 "\n"
2607 msgstr ""
2608
2609 #. type: textblock
2610 #: ../edit/virt-edit.pod:52
2611 msgid "For Windows guests, some Windows paths are understood:"
2612 msgstr ""
2613
2614 #. type: verbatim
2615 #: ../edit/virt-edit.pod:54
2616 #, no-wrap
2617 msgid ""
2618 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
2619 "\n"
2620 msgstr ""
2621
2622 #. type: textblock
2623 #: ../edit/virt-edit.pod:56
2624 msgid ""
2625 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
2626 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
2627 msgstr ""
2628
2629 #. type: verbatim
2630 #: ../edit/virt-edit.pod:60
2631 #, no-wrap
2632 msgid ""
2633 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
2634 "\n"
2635 msgstr ""
2636
2637 #. type: =item
2638 #: ../edit/virt-edit.pod:81
2639 msgid "B<-b> extension"
2640 msgstr ""
2641
2642 #. type: =item
2643 #: ../edit/virt-edit.pod:83
2644 msgid "B<--backup> extension"
2645 msgstr ""
2646
2647 #. type: textblock
2648 #: ../edit/virt-edit.pod:85
2649 msgid ""
2650 "Create a backup of the original file I<in the guest disk image>.  The backup "
2651 "has the original filename with C<extension> added."
2652 msgstr ""
2653
2654 #. type: textblock
2655 #: ../edit/virt-edit.pod:88
2656 msgid ""
2657 "Usually the first character of C<extension> would be a dot C<.> so you would "
2658 "write:"
2659 msgstr ""
2660
2661 #. type: verbatim
2662 #: ../edit/virt-edit.pod:91
2663 #, no-wrap
2664 msgid ""
2665 " virt-edit -b .orig [etc]\n"
2666 "\n"
2667 msgstr ""
2668
2669 #. type: textblock
2670 #: ../edit/virt-edit.pod:93
2671 msgid "By default, no backup file is made."
2672 msgstr ""
2673
2674 #. type: =item
2675 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
2676 #: ../fuse/guestmount.pod:96 ../inspector/virt-inspector.pod:74
2677 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
2678 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
2679 msgid "B<-c URI>"
2680 msgstr ""
2681
2682 #. type: =item
2683 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
2684 #: ../fuse/guestmount.pod:98 ../inspector/virt-inspector.pod:76
2685 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
2686 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
2687 msgid "B<--connect URI>"
2688 msgstr ""
2689
2690 #. type: textblock
2691 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
2692 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
2693 #: ../tools/virt-win-reg.pl:135
2694 msgid ""
2695 "If you specify guest block devices directly, then libvirt is not used at all."
2696 msgstr ""
2697
2698 #. type: textblock
2699 #: ../edit/virt-edit.pod:114
2700 msgid ""
2701 "When prompting for keys and passphrases, virt-edit normally turns echoing "
2702 "off so you cannot see what you are typing.  If you are not worried about "
2703 "Tempest attacks and there is no one else in the room you can specify this "
2704 "flag to see what you are typing."
2705 msgstr ""
2706
2707 #. type: =item
2708 #: ../edit/virt-edit.pod:119
2709 msgid "B<-e> EXPR"
2710 msgstr ""
2711
2712 #. type: =item
2713 #: ../edit/virt-edit.pod:121
2714 msgid "B<--expr> EXPR"
2715 msgstr ""
2716
2717 #. type: textblock
2718 #: ../edit/virt-edit.pod:123
2719 msgid ""
2720 "Instead of launching the external editor, non-interactively apply the Perl "
2721 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
2722 "EDITING> below."
2723 msgstr ""
2724
2725 #. type: textblock
2726 #: ../edit/virt-edit.pod:127
2727 msgid ""
2728 "Be careful to properly quote the expression to prevent it from being altered "
2729 "by the shell."
2730 msgstr ""
2731
2732 #. type: textblock
2733 #: ../edit/virt-edit.pod:130
2734 msgid "Note that this option is only available when Perl 5 is installed."
2735 msgstr ""
2736
2737 #. type: =item
2738 #: ../edit/virt-edit.pod:132
2739 msgid "B<--format> raw|qcow2|..."
2740 msgstr ""
2741
2742 #. type: verbatim
2743 #: ../edit/virt-edit.pod:143
2744 #, no-wrap
2745 msgid ""
2746 " virt-edit --format=raw -a disk.img file\n"
2747 "\n"
2748 msgstr ""
2749
2750 #. type: verbatim
2751 #: ../edit/virt-edit.pod:147
2752 #, no-wrap
2753 msgid ""
2754 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
2755 "\n"
2756 msgstr ""
2757
2758 #. type: textblock
2759 #: ../edit/virt-edit.pod:181
2760 msgid "Previous versions of virt-edit allowed you to write either:"
2761 msgstr ""
2762
2763 #. type: verbatim
2764 #: ../edit/virt-edit.pod:187
2765 #, no-wrap
2766 msgid ""
2767 " virt-edit guestname file\n"
2768 "\n"
2769 msgstr ""
2770
2771 #. type: =head1
2772 #: ../edit/virt-edit.pod:195
2773 msgid "NON-INTERACTIVE EDITING"
2774 msgstr ""
2775
2776 #. type: textblock
2777 #: ../edit/virt-edit.pod:197
2778 msgid ""
2779 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
2780 "administrator can interactively edit the file."
2781 msgstr ""
2782
2783 #. type: textblock
2784 #: ../edit/virt-edit.pod:200
2785 msgid ""
2786 "There are two ways also to use C<virt-edit> from scripts in order to make "
2787 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
2788 "like this, it's less error-prone to write scripts directly using the "
2789 "libguestfs API and Augeas for configuration file editing.)"
2790 msgstr ""
2791
2792 #. type: textblock
2793 #: ../edit/virt-edit.pod:206
2794 msgid ""
2795 "The first method is to temporarily set C<$EDITOR> to any script or program "
2796 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
2797 "update C<tmpfile> in place however it likes."
2798 msgstr ""
2799
2800 #. type: textblock
2801 #: ../edit/virt-edit.pod:210
2802 msgid ""
2803 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
2804 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
2805 "instances of C<foo> with C<bar> in a file:"
2806 msgstr ""
2807
2808 #. type: verbatim
2809 #: ../edit/virt-edit.pod:214
2810 #, no-wrap
2811 msgid ""
2812 " virt-edit -d domname filename -e 's/foo/bar/'\n"
2813 "\n"
2814 msgstr ""
2815
2816 #. type: textblock
2817 #: ../edit/virt-edit.pod:216
2818 msgid ""
2819 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
2820 "For example to delete root's password you could do:"
2821 msgstr ""
2822
2823 #. type: verbatim
2824 #: ../edit/virt-edit.pod:219
2825 #, no-wrap
2826 msgid ""
2827 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
2828 "\n"
2829 msgstr ""
2830
2831 #. type: textblock
2832 #: ../edit/virt-edit.pod:221
2833 msgid ""
2834 "What really happens is that the snippet is evaluated as a Perl expression "
2835 "for each line of the file.  The line, including the final C<\\n>, is passed "
2836 "in C<$_> and the expression should update C<$_> or leave it unchanged."
2837 msgstr ""
2838
2839 #. type: textblock
2840 #: ../edit/virt-edit.pod:226
2841 msgid ""
2842 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
2843 "C<apache> user account from the password file you can do:"
2844 msgstr ""
2845
2846 #. type: verbatim
2847 #: ../edit/virt-edit.pod:229
2848 #, no-wrap
2849 msgid ""
2850 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
2851 "\n"
2852 msgstr ""
2853
2854 #. type: textblock
2855 #: ../edit/virt-edit.pod:231
2856 msgid ""
2857 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
2858 "the end of the file is rather difficult this way since there is no concept "
2859 "of \"last line of the file\" - your expression just doesn't get called "
2860 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
2861 "want to do this."
2862 msgstr ""
2863
2864 #. type: textblock
2865 #: ../edit/virt-edit.pod:237
2866 msgid ""
2867 "The variable C<$lineno> contains the current line number.  As is "
2868 "traditional, the first line in the file is number C<1>."
2869 msgstr ""
2870
2871 #. type: textblock
2872 #: ../edit/virt-edit.pod:240
2873 msgid ""
2874 "The return value from the expression is ignored, but the expression may call "
2875 "C<die> in order to abort the whole program, leaving the original file "
2876 "untouched."
2877 msgstr ""
2878
2879 #. type: textblock
2880 #: ../edit/virt-edit.pod:244
2881 msgid ""
2882 "Remember when matching the end of a line that C<$_> may contain the final C<"
2883 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
2884 "newline then neither of these.  Thus to match or substitute some text at the "
2885 "end of a line, use this regular expression:"
2886 msgstr ""
2887
2888 #. type: verbatim
2889 #: ../edit/virt-edit.pod:249
2890 #, no-wrap
2891 msgid ""
2892 " /some text(\\r?\\n)?$/\n"
2893 "\n"
2894 msgstr ""
2895
2896 #. type: textblock
2897 #: ../edit/virt-edit.pod:251
2898 msgid ""
2899 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
2900 "$_> itself (since that would remove all newlines from the file):"
2901 msgstr ""
2902
2903 #. type: verbatim
2904 #: ../edit/virt-edit.pod:255
2905 #, no-wrap
2906 msgid ""
2907 " my $m = $_; chomp $m; $m =~ /some text$/\n"
2908 "\n"
2909 msgstr ""
2910
2911 #. type: =head1
2912 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
2913 msgid "WINDOWS PATHS"
2914 msgstr ""
2915
2916 #. type: textblock
2917 #: ../edit/virt-edit.pod:259
2918 msgid ""
2919 "C<virt-edit> has a limited ability to understand Windows drive letters and "
2920 "paths (eg. C<E:\\foo\\bar.txt>)."
2921 msgstr ""
2922
2923 #. type: textblock
2924 #: ../edit/virt-edit.pod:262
2925 msgid "If and only if the guest is running Windows then:"
2926 msgstr ""
2927
2928 #. type: textblock
2929 #: ../edit/virt-edit.pod:268
2930 msgid ""
2931 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
2932 "to the correct filesystem."
2933 msgstr ""
2934
2935 #. type: textblock
2936 #: ../edit/virt-edit.pod:273
2937 msgid ""
2938 "Any backslash (C<\\>) characters in the path are replaced with forward "
2939 "slashes so that libguestfs can process it."
2940 msgstr ""
2941
2942 #. type: textblock
2943 #: ../edit/virt-edit.pod:278
2944 msgid ""
2945 "The path is resolved case insensitively to locate the file that should be "
2946 "edited."
2947 msgstr ""
2948
2949 #. type: textblock
2950 #: ../edit/virt-edit.pod:283
2951 msgid "There are some known shortcomings:"
2952 msgstr ""
2953
2954 #. type: textblock
2955 #: ../edit/virt-edit.pod:289
2956 msgid "Some NTFS symbolic links may not be followed correctly."
2957 msgstr ""
2958
2959 #. type: textblock
2960 #: ../edit/virt-edit.pod:293
2961 msgid "NTFS junction points that cross filesystems are not followed."
2962 msgstr ""
2963
2964 #. type: textblock
2965 #: ../edit/virt-edit.pod:299
2966 msgid ""
2967 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
2968 "C<virt-edit> doesn't work."
2969 msgstr ""
2970
2971 #. type: textblock
2972 #: ../edit/virt-edit.pod:302
2973 msgid "Using C<virt-edit> is approximately equivalent to doing:"
2974 msgstr ""
2975
2976 #. type: verbatim
2977 #: ../edit/virt-edit.pod:304
2978 #, no-wrap
2979 msgid ""
2980 " guestfish --rw -i -d domname edit /file\n"
2981 "\n"
2982 msgstr ""
2983
2984 #. type: textblock
2985 #: ../edit/virt-edit.pod:306
2986 msgid ""
2987 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
2988 "path to the file."
2989 msgstr ""
2990
2991 #. type: textblock
2992 #: ../edit/virt-edit.pod:309
2993 msgid ""
2994 "The command above uses libguestfs's guest inspection feature and so does not "
2995 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
2996 "disk images that don't contain guests.  To edit a file on a disk image "
2997 "directly, use:"
2998 msgstr ""
2999
3000 #. type: verbatim
3001 #: ../edit/virt-edit.pod:314
3002 #, no-wrap
3003 msgid ""
3004 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
3005 "\n"
3006 msgstr ""
3007
3008 #. type: textblock
3009 #: ../edit/virt-edit.pod:316
3010 msgid ""
3011 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
3012 "the disk image to edit, and C</file> is the full path to the file."
3013 msgstr ""
3014
3015 #. type: textblock
3016 #: ../edit/virt-edit.pod:320
3017 msgid ""
3018 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
3019 "C<write> or C<upload> instead:"
3020 msgstr ""
3021
3022 #. type: verbatim
3023 #: ../edit/virt-edit.pod:323
3024 #, no-wrap
3025 msgid ""
3026 " guestfish --rw -i -d domname touch /newfile\n"
3027 "\n"
3028 msgstr ""
3029
3030 #. type: verbatim
3031 #: ../edit/virt-edit.pod:325
3032 #, no-wrap
3033 msgid ""
3034 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
3035 "\n"
3036 msgstr ""
3037
3038 #. type: verbatim
3039 #: ../edit/virt-edit.pod:327
3040 #, no-wrap
3041 msgid ""
3042 " guestfish --rw -i -d domname upload localfile /newfile\n"
3043 "\n"
3044 msgstr ""
3045
3046 #. type: =head1
3047 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1086
3048 #: ../rescue/virt-rescue.pod:257 ../src/guestfs.pod:3058
3049 #: ../test-tool/libguestfs-test-tool.pod:95
3050 msgid "ENVIRONMENT VARIABLES"
3051 msgstr ""
3052
3053 #. type: =item
3054 #: ../edit/virt-edit.pod:333
3055 msgid "C<EDITOR>"
3056 msgstr ""
3057
3058 #. type: textblock
3059 #: ../edit/virt-edit.pod:335
3060 msgid ""
3061 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
3062 "\"emacs -nw\">"
3063 msgstr ""
3064
3065 #. type: textblock
3066 #: ../edit/virt-edit.pod:338
3067 msgid "If not set, C<vi> is used."
3068 msgstr ""
3069
3070 #. type: textblock
3071 #: ../edit/virt-edit.pod:356
3072 msgid ""
3073 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
3074 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3075 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
3076 msgstr ""
3077
3078 #. type: textblock
3079 #: ../examples/guestfs-examples.pod:5
3080 msgid "guestfs-examples - Examples of using libguestfs from C"
3081 msgstr ""
3082
3083 #. type: verbatim
3084 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
3085 #, no-wrap
3086 msgid ""
3087 " #include <guestfs.h>\n"
3088 " \n"
3089 msgstr ""
3090
3091 #. type: verbatim
3092 #: ../examples/guestfs-examples.pod:11
3093 #, no-wrap
3094 msgid ""
3095 " guestfs_h *g = guestfs_create ();\n"
3096 " guestfs_add_drive_ro (g, \"disk.img\");\n"
3097 " guestfs_launch (g);\n"
3098 "\n"
3099 msgstr ""
3100
3101 #. type: verbatim
3102 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
3103 #, no-wrap
3104 msgid ""
3105 " cc prog.c -o prog -lguestfs\n"
3106 "or:\n"
3107 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3108 "\n"
3109 msgstr ""
3110
3111 #. type: textblock
3112 #: ../examples/guestfs-examples.pod:21
3113 msgid ""
3114 "This manual page contains examples of calling libguestfs from the C "
3115 "programming language.  If you are not familiar with using libguestfs, you "
3116 "also need to read L<guestfs(3)>."
3117 msgstr ""
3118
3119 #. type: =head1
3120 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
3121 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
3122 #: ../python/examples/guestfs-python.pod:34
3123 #: ../ruby/examples/guestfs-ruby.pod:28
3124 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
3125 msgstr ""
3126
3127 #. type: textblock
3128 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
3129 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
3130 #: ../python/examples/guestfs-python.pod:36
3131 #: ../ruby/examples/guestfs-ruby.pod:30
3132 msgid "@EXAMPLE1@"
3133 msgstr ""
3134
3135 #. type: =head1
3136 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
3137 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
3138 #: ../python/examples/guestfs-python.pod:38
3139 #: ../ruby/examples/guestfs-ruby.pod:32
3140 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
3141 msgstr ""
3142
3143 #. type: textblock
3144 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
3145 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
3146 #: ../python/examples/guestfs-python.pod:40
3147 #: ../ruby/examples/guestfs-ruby.pod:34
3148 msgid "@EXAMPLE2@"
3149 msgstr ""
3150
3151 #. type: textblock
3152 #: ../examples/guestfs-examples.pod:35
3153 msgid ""
3154 "L<guestfs(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
3155 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
3156 "libguestfs.org/>."
3157 msgstr ""
3158
3159 #. type: =head1
3160 #: ../examples/guestfs-examples.pod:44 ../examples/guestfs-recipes.pod:396
3161 #: ../fish/guestfish.pod:1260 ../fish/virt-copy-in.pod:60
3162 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
3163 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:319
3164 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:57
3165 #: ../ocaml/examples/guestfs-ocaml.pod:90 ../perl/examples/guestfs-perl.pod:51
3166 #: ../python/examples/guestfs-python.pod:53
3167 #: ../ruby/examples/guestfs-ruby.pod:47 ../src/guestfs.pod:3191
3168 #: ../test-tool/libguestfs-test-tool.pod:106
3169 msgid "AUTHORS"
3170 msgstr ""
3171
3172 #. type: textblock
3173 #: ../examples/guestfs-examples.pod:46 ../examples/guestfs-recipes.pod:398
3174 #: ../fish/guestfish.pod:1262 ../fish/virt-copy-in.pod:62
3175 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
3176 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:321
3177 #: ../java/examples/guestfs-java.pod:59 ../ocaml/examples/guestfs-ocaml.pod:92
3178 #: ../perl/examples/guestfs-perl.pod:53
3179 #: ../python/examples/guestfs-python.pod:55
3180 #: ../ruby/examples/guestfs-ruby.pod:49 ../src/guestfs.pod:3193
3181 #: ../test-tool/libguestfs-test-tool.pod:108
3182 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3183 msgstr ""
3184
3185 #. type: textblock
3186 #: ../examples/guestfs-examples.pod:50 ../ocaml/examples/guestfs-ocaml.pod:96
3187 #: ../python/examples/guestfs-python.pod:59
3188 #: ../ruby/examples/guestfs-ruby.pod:53
3189 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
3190 msgstr ""
3191
3192 #. type: textblock
3193 #: ../examples/guestfs-examples.pod:52 ../examples/guestfs-recipes.pod:404
3194 #: ../java/examples/guestfs-java.pod:65 ../ocaml/examples/guestfs-ocaml.pod:98
3195 #: ../perl/examples/guestfs-perl.pod:59
3196 #: ../python/examples/guestfs-python.pod:61
3197 #: ../ruby/examples/guestfs-ruby.pod:55
3198 msgid ""
3199 "The examples in this manual page may be freely copied, modified and "
3200 "distributed without any restrictions."
3201 msgstr ""
3202
3203 #. type: textblock
3204 #: ../examples/guestfs-examples.pod:55 ../examples/guestfs-recipes.pod:407
3205 #: ../java/examples/guestfs-java.pod:68
3206 #: ../ocaml/examples/guestfs-ocaml.pod:101
3207 #: ../perl/examples/guestfs-perl.pod:62
3208 #: ../python/examples/guestfs-python.pod:64
3209 #: ../ruby/examples/guestfs-ruby.pod:58 ../src/guestfs.pod:3200
3210 msgid ""
3211 "This library is free software; you can redistribute it and/or modify it "
3212 "under the terms of the GNU Lesser General Public License as published by the "
3213 "Free Software Foundation; either version 2 of the License, or (at your "
3214 "option) any later version."
3215 msgstr ""
3216
3217 #. type: textblock
3218 #: ../examples/guestfs-examples.pod:60 ../examples/guestfs-recipes.pod:412
3219 #: ../java/examples/guestfs-java.pod:73
3220 #: ../ocaml/examples/guestfs-ocaml.pod:106
3221 #: ../perl/examples/guestfs-perl.pod:67
3222 #: ../python/examples/guestfs-python.pod:69
3223 #: ../ruby/examples/guestfs-ruby.pod:63 ../src/guestfs.pod:3205
3224 msgid ""
3225 "This library is distributed in the hope that it will be useful, but WITHOUT "
3226 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3227 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3228 "for more details."
3229 msgstr ""
3230
3231 #. type: textblock
3232 #: ../examples/guestfs-examples.pod:65 ../examples/guestfs-recipes.pod:417
3233 #: ../java/examples/guestfs-java.pod:78
3234 #: ../ocaml/examples/guestfs-ocaml.pod:111
3235 #: ../perl/examples/guestfs-perl.pod:72
3236 #: ../python/examples/guestfs-python.pod:74
3237 #: ../ruby/examples/guestfs-ruby.pod:68 ../src/guestfs.pod:3210
3238 msgid ""
3239 "You should have received a copy of the GNU Lesser General Public License "
3240 "along with this library; if not, write to the Free Software Foundation, "
3241 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3242 msgstr ""
3243
3244 #. type: =end
3245 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
3246 msgid "comment"
3247 msgstr ""
3248
3249 #. type: textblock
3250 #: ../examples/guestfs-recipes.pod:5
3251 msgid ""
3252 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
3253 "here.  The only way which works for both sorts of output is to just write "
3254 "the URL directly.  Do NOT use L<...> for URLs."
3255 msgstr ""
3256
3257 #. type: textblock
3258 #: ../examples/guestfs-recipes.pod:9
3259 msgid ""
3260 "We break with tradition here and don't use ALL CAPS for the section "
3261 "headings, as this makes them much easier to read."
3262 msgstr ""
3263
3264 #. type: textblock
3265 #: ../examples/guestfs-recipes.pod:16
3266 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
3267 msgstr ""
3268
3269 #. type: textblock
3270 #: ../examples/guestfs-recipes.pod:20
3271 msgid ""
3272 "This page contains recipes for and links to things you can do using "
3273 "libguestfs, L<guestfish(1)> and the virt tools."
3274 msgstr ""
3275
3276 #. type: =head1
3277 #: ../examples/guestfs-recipes.pod:23
3278 msgid "Audit a virtual machine for setuid files"
3279 msgstr ""
3280
3281 #. type: textblock
3282 #: ../examples/guestfs-recipes.pod:25
3283 msgid ""
3284 "The link below contains a small program which can be used to audit a Linux "
3285 "virtual machine to see what setuid and setgid files it contains."
3286 msgstr ""
3287
3288 #. type: textblock
3289 #: ../examples/guestfs-recipes.pod:28
3290 msgid ""
3291 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
3292 "files/#content"
3293 msgstr ""
3294
3295 #. type: =head1
3296 #: ../examples/guestfs-recipes.pod:30
3297 msgid "Change the background image in a Windows XP VM"
3298 msgstr ""
3299
3300 #. type: textblock
3301 #: ../examples/guestfs-recipes.pod:32
3302 msgid ""
3303 "The links below explain how to use L<guestfish(1)> to change the background "
3304 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
3305 "be substantially different for each version of Windows."
3306 msgstr ""
3307
3308 #. type: textblock
3309 #: ../examples/guestfs-recipes.pod:37
3310 msgid ""
3311 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
3312 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
3313 msgstr ""
3314
3315 #. type: =head1
3316 #: ../examples/guestfs-recipes.pod:40
3317 msgid "Cloning a virtual machine (Linux)"
3318 msgstr ""
3319
3320 #. type: textblock
3321 #: ../examples/guestfs-recipes.pod:42
3322 msgid ""
3323 "The guestfish technique described in the link below works well for most "
3324 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
3325 "slightly."
3326 msgstr ""
3327
3328 #. type: textblock
3329 #: ../examples/guestfs-recipes.pod:46
3330 msgid ""
3331 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
3332 "vm/#content"
3333 msgstr ""
3334
3335 #. type: textblock
3336 #: ../examples/guestfs-recipes.pod:48
3337 msgid ""
3338 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
3339 "discussion."
3340 msgstr ""
3341
3342 #. type: textblock
3343 #: ../examples/guestfs-recipes.pod:51
3344 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
3345 msgstr ""
3346
3347 #. type: =head1
3348 #: ../examples/guestfs-recipes.pod:53
3349 msgid "Cloning a virtual machine (Windows)"
3350 msgstr ""
3351
3352 #. type: textblock
3353 #: ../examples/guestfs-recipes.pod:55
3354 msgid ""
3355 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
3356 "straightforward.  Currently there is code in the Aeolus Oz project which "
3357 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
3358 "we may add sysprepping ability."
3359 msgstr ""
3360
3361 #. type: textblock
3362 #: ../examples/guestfs-recipes.pod:60
3363 msgid ""
3364 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
3365 "list/2011-May/msg00019.html"
3366 msgstr ""
3367
3368 #. type: =head1
3369 #: ../examples/guestfs-recipes.pod:63
3370 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
3371 msgstr ""
3372
3373 #. type: textblock
3374 #: ../examples/guestfs-recipes.pod:65
3375 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
3376 msgstr ""
3377
3378 #. type: verbatim
3379 #: ../examples/guestfs-recipes.pod:67
3380 #, no-wrap
3381 msgid ""
3382 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
3383 "\n"
3384 msgstr ""
3385
3386 #. type: textblock
3387 #: ../examples/guestfs-recipes.pod:69
3388 msgid "To export just a subdirectory, eg. C</files>, do:"
3389 msgstr ""
3390
3391 #. type: verbatim
3392 #: ../examples/guestfs-recipes.pod:71
3393 #, no-wrap
3394 msgid ""
3395 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
3396 "\n"
3397 msgstr ""
3398
3399 #. type: =head1
3400 #: ../examples/guestfs-recipes.pod:73
3401 msgid "Create empty disk images"
3402 msgstr ""
3403
3404 #. type: textblock
3405 #: ../examples/guestfs-recipes.pod:75
3406 msgid ""
3407 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
3408 "The useful guide below explains the options available."
3409 msgstr ""
3410
3411 #. type: textblock
3412 #: ../examples/guestfs-recipes.pod:78
3413 msgid ""
3414 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
3415 "#content"
3416 msgstr ""
3417
3418 #. type: =head1
3419 #: ../examples/guestfs-recipes.pod:80
3420 msgid "Dump raw filesystem content from inside a disk image or VM"
3421 msgstr ""
3422
3423 #. type: textblock
3424 #: ../examples/guestfs-recipes.pod:82
3425 msgid ""
3426 "You can use the L<guestfish(1)> C<download> command to extract the raw "
3427 "filesystem content from any filesystem in a disk image or a VM (even one "
3428 "which is encrypted or buried inside an LV):"
3429 msgstr ""
3430
3431 #. type: verbatim
3432 #: ../examples/guestfs-recipes.pod:86
3433 #, no-wrap
3434 msgid ""
3435 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
3436 "\n"
3437 msgstr ""
3438
3439 #. type: verbatim
3440 #: ../examples/guestfs-recipes.pod:88
3441 #, no-wrap
3442 msgid ""
3443 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
3444 "\n"
3445 msgstr ""
3446
3447 #. type: textblock
3448 #: ../examples/guestfs-recipes.pod:90
3449 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
3450 msgstr ""
3451
3452 #. type: =head1
3453 #: ../examples/guestfs-recipes.pod:92
3454 msgid "Edit grub configuration in a VM"
3455 msgstr ""
3456
3457 #. type: textblock
3458 #: ../examples/guestfs-recipes.pod:94
3459 msgid "You can use this to:"
3460 msgstr ""
3461
3462 #. type: textblock
3463 #: ../examples/guestfs-recipes.pod:100
3464 msgid "Fix a virtual machine that does not boot."
3465 msgstr ""
3466
3467 #. type: textblock
3468 #: ../examples/guestfs-recipes.pod:104
3469 msgid "Change which kernel is used to boot the VM."
3470 msgstr ""
3471
3472 #. type: textblock
3473 #: ../examples/guestfs-recipes.pod:108
3474 msgid "Change kernel command line options."
3475 msgstr ""
3476
3477 #. type: textblock
3478 #: ../examples/guestfs-recipes.pod:112
3479 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
3480 msgstr ""
3481
3482 #. type: verbatim
3483 #: ../examples/guestfs-recipes.pod:114
3484 #, no-wrap
3485 msgid ""
3486 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
3487 "\n"
3488 msgstr ""
3489
3490 #. type: textblock
3491 #: ../examples/guestfs-recipes.pod:116
3492 msgid ""
3493 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
3494 "this:"
3495 msgstr ""
3496
3497 #. type: verbatim
3498 #: ../examples/guestfs-recipes.pod:119
3499 #, no-wrap
3500 msgid ""
3501 " virt-rescue -d BrokenGuest\n"
3502 "\n"
3503 msgstr ""
3504
3505 #. type: =head1
3506 #: ../examples/guestfs-recipes.pod:121
3507 msgid "Export any directory from a VM"
3508 msgstr ""
3509
3510 #. type: textblock
3511 #: ../examples/guestfs-recipes.pod:123
3512 msgid ""
3513 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
3514 msgstr ""
3515
3516 #. type: verbatim
3517 #: ../examples/guestfs-recipes.pod:126
3518 #, no-wrap
3519 msgid ""
3520 " virt-copy-out -d Guest /home .\n"
3521 "\n"
3522 msgstr ""
3523
3524 #. type: textblock
3525 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
3526 #: ../fish/guestfish-actions.pod:1292 ../fish/guestfish-actions.pod:1551
3527 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:11
3528 #: ../src/guestfs-actions.pod:1922 ../src/guestfs-actions.pod:2335
3529 #: ../src/guestfs-actions.pod:2882 ../src/guestfs.pod:1639
3530 #: ../tools/virt-win-reg.pl:706
3531 msgid "Notes:"
3532 msgstr ""
3533
3534 #. type: textblock
3535 #: ../examples/guestfs-recipes.pod:134
3536 msgid ""
3537 "The final dot of the command is not a printing error.  It means we want to "
3538 "copy out to the current directory."
3539 msgstr ""
3540
3541 #. type: textblock
3542 #: ../examples/guestfs-recipes.pod:139
3543 msgid "This creates a directory called C<home> under the current directory."
3544 msgstr ""
3545
3546 #. type: textblock
3547 #: ../examples/guestfs-recipes.pod:143
3548 msgid ""
3549 "If the guest is a Windows guest then you can use drive letters and "
3550 "backslashes, but you must prefix the path with C<win:> and quote it to "
3551 "protect it from the shell, like this:"
3552 msgstr ""
3553
3554 #. type: verbatim
3555 #: ../examples/guestfs-recipes.pod:147
3556 #, no-wrap
3557 msgid ""
3558 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
3559 "\n"
3560 msgstr ""
3561
3562 #. type: textblock
3563 #: ../examples/guestfs-recipes.pod:149
3564 msgid "To get the output as a compressed tarball, do:"
3565 msgstr ""
3566
3567 #. type: verbatim
3568 #: ../examples/guestfs-recipes.pod:151
3569 #, no-wrap
3570 msgid ""
3571 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
3572 "\n"
3573 msgstr ""
3574
3575 #. type: textblock
3576 #: ../examples/guestfs-recipes.pod:153
3577 msgid ""
3578 "Although it sounds tempting, this is usually not a reliable way to get a "
3579 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
3580 "org/FAQ.html#backup"
3581 msgstr ""
3582
3583 #. type: =head1
3584 #: ../examples/guestfs-recipes.pod:157
3585 msgid "Find out which user is using the most space"
3586 msgstr ""
3587
3588 #. type: textblock
3589 #: ../examples/guestfs-recipes.pod:159
3590 msgid ""
3591 "This simple script examines a Linux guest to find out which user is using "
3592 "the most space in their home directory:"
3593 msgstr ""
3594
3595 #. type: verbatim
3596 #: ../examples/guestfs-recipes.pod:162
3597 #, no-wrap
3598 msgid ""
3599 " #!/bin/sh -\n"
3600 " \n"
3601 msgstr ""
3602
3603 #. type: verbatim
3604 #: ../examples/guestfs-recipes.pod:164
3605 #, no-wrap
3606 msgid ""
3607 " set -e\n"
3608 " \n"
3609 msgstr ""
3610
3611 #. type: verbatim
3612 #: ../examples/guestfs-recipes.pod:166
3613 #, no-wrap
3614 msgid ""
3615 " vm=\"$1\"\n"
3616 " dir=/home\n"
3617 " \n"
3618 msgstr ""
3619
3620 #. type: verbatim
3621 #: ../examples/guestfs-recipes.pod:169
3622 #, no-wrap
3623 msgid ""
3624 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
3625 " \n"
3626 msgstr ""
3627
3628 #. type: verbatim
3629 #: ../examples/guestfs-recipes.pod:171
3630 #, no-wrap
3631 msgid ""
3632 " for d in $(guestfish --remote ls \"$dir\"); do\n"
3633 "     echo -n \"$dir/$d\"\n"
3634 "     echo -ne '\\t'\n"
3635 "     guestfish --remote du \"$dir/$d\";\n"
3636 " done | sort -nr -k 2\n"
3637 " \n"
3638 msgstr ""
3639
3640 #. type: verbatim
3641 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
3642 #, no-wrap
3643 msgid ""
3644 " guestfish --remote exit\n"
3645 "\n"
3646 msgstr ""
3647
3648 #. type: =head1
3649 #: ../examples/guestfs-recipes.pod:179
3650 msgid "Get DHCP address from a VM"
3651 msgstr ""
3652
3653 #. type: textblock
3654 #: ../examples/guestfs-recipes.pod:181
3655 msgid ""
3656 "The link below explains the many different possible techniques for getting "
3657 "the last assigned DHCP address of a virtual machine."
3658 msgstr ""
3659
3660 #. type: textblock
3661 #: ../examples/guestfs-recipes.pod:184
3662 msgid ""
3663 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
3664 "a-virtual-machine-disk-image/#content"
3665 msgstr ""
3666
3667 #. type: textblock
3668 #: ../examples/guestfs-recipes.pod:186
3669 msgid ""
3670 "In the libguestfs source examples directory you will find the latest version "
3671 "of the C<virt-dhcp-address.c> program."
3672 msgstr ""
3673
3674 #. type: =head1
3675 #: ../examples/guestfs-recipes.pod:189
3676 msgid "Get the operating system product name string"
3677 msgstr ""
3678
3679 #. type: textblock
3680 #: ../examples/guestfs-recipes.pod:191
3681 msgid "Save the following script into a file called C<product-name.sh>:"
3682 msgstr ""
3683
3684 #. type: verbatim
3685 #: ../examples/guestfs-recipes.pod:193
3686 #, no-wrap
3687 msgid ""
3688 " #!/bin/sh -\n"
3689 " set -e\n"
3690 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
3691 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
3692 " guestfish --remote inspect-get-product-name \"$root\"\n"
3693 " guestfish --remote exit\n"
3694 "\n"
3695 msgstr ""
3696
3697 #. type: textblock
3698 #: ../examples/guestfs-recipes.pod:200
3699 msgid "Make the script executable and run it on a named guest:"
3700 msgstr ""
3701
3702 #. type: verbatim
3703 #: ../examples/guestfs-recipes.pod:202
3704 #, no-wrap
3705 msgid ""
3706 " # product-name.sh RHEL60x64\n"
3707 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
3708 "\n"
3709 msgstr ""
3710
3711 #. type: textblock
3712 #: ../examples/guestfs-recipes.pod:205
3713 msgid ""
3714 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
3715 "C<xpath> command line tool or from your favourite programming language:"
3716 msgstr ""
3717
3718 #. type: verbatim
3719 #: ../examples/guestfs-recipes.pod:209
3720 #, no-wrap
3721 msgid ""
3722 " # virt-inspector RHEL60x64 > xml\n"
3723 " # xpath '//product_name' < xml\n"
3724 " Found 1 nodes:\n"
3725 " -- NODE --\n"
3726 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
3727 "\n"
3728 msgstr ""
3729
3730 #. type: =head1
3731 #: ../examples/guestfs-recipes.pod:215
3732 msgid "Get the default boot kernel for a Linux VM"
3733 msgstr ""
3734
3735 #. type: textblock
3736 #: ../examples/guestfs-recipes.pod:217
3737 msgid ""
3738 "The link below contains a program to print the default boot kernel for a "
3739 "Linux VM."
3740 msgstr ""
3741
3742 #. type: textblock
3743 #: ../examples/guestfs-recipes.pod:220
3744 msgid ""
3745 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
3746 "kernel-for-a-vm/#content"
3747 msgstr ""
3748
3749 #. type: textblock
3750 #: ../examples/guestfs-recipes.pod:222
3751 msgid ""
3752 "It uses Augeas, and the technique is generally applicable for many different "
3753 "tasks, such as:"
3754 msgstr ""
3755
3756 #. type: textblock
3757 #: ../examples/guestfs-recipes.pod:229
3758 msgid "listing the user accounts in the guest"
3759 msgstr ""
3760
3761 #. type: textblock
3762 #: ../examples/guestfs-recipes.pod:233
3763 msgid "what repositories is it configured to use"
3764 msgstr ""
3765
3766 #. type: textblock
3767 #: ../examples/guestfs-recipes.pod:237
3768 msgid "what NTP servers does it connect to"
3769 msgstr ""
3770
3771 #. type: textblock
3772 #: ../examples/guestfs-recipes.pod:241
3773 msgid "what were the boot messages last time it booted"
3774 msgstr ""
3775
3776 #. type: textblock
3777 #: ../examples/guestfs-recipes.pod:245
3778 msgid "listing who was logged in recently"
3779 msgstr ""
3780
3781 #. type: textblock
3782 #: ../examples/guestfs-recipes.pod:249
3783 msgid "http://augeas.net/"
3784 msgstr ""
3785
3786 #. type: =head1
3787 #: ../examples/guestfs-recipes.pod:251
3788 msgid "Install RPMs in a guest"
3789 msgstr ""
3790
3791 #. type: textblock
3792 #: ../examples/guestfs-recipes.pod:253
3793 msgid ""
3794 "The link below contains a method to install RPMs in a guest.  In fact the "
3795 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
3796 "installs them next time the guest is booted.  You could use this technique "
3797 "to install vital security updates in an offline guest."
3798 msgstr ""
3799
3800 #. type: textblock
3801 #: ../examples/guestfs-recipes.pod:259
3802 msgid ""
3803 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
3804 msgstr ""
3805
3806 #. type: =head1
3807 #: ../examples/guestfs-recipes.pod:261
3808 msgid "List applications installed in a VM"
3809 msgstr ""
3810
3811 #. type: textblock
3812 #: ../examples/guestfs-recipes.pod:263
3813 msgid "Save the following to a file C<list-apps.sh>:"
3814 msgstr ""
3815
3816 #. type: verbatim
3817 #: ../examples/guestfs-recipes.pod:265
3818 #, no-wrap
3819 msgid ""
3820 " #!/bin/sh -\n"
3821 " set -e\n"
3822 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
3823 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
3824 " guestfish --remote inspect-list-applications \"$root\"\n"
3825 " guestfish --remote exit\n"
3826 "\n"
3827 msgstr ""
3828
3829 #. type: textblock
3830 #: ../examples/guestfs-recipes.pod:272
3831 msgid ""
3832 "Make the file executable and then you can run it on any named virtual "
3833 "machine:"
3834 msgstr ""
3835
3836 #. type: verbatim
3837 #: ../examples/guestfs-recipes.pod:275
3838 #, no-wrap
3839 msgid ""
3840 " # list-apps.sh WinGuest\n"
3841 " [0] = {\n"
3842 "   app_name: Mozilla Firefox (3.6.12)\n"
3843 "   app_display_name: Mozilla Firefox (3.6.12)\n"
3844 "   app_epoch: 0\n"
3845 "   app_version: 3.6.12 (en-GB)\n"
3846 "   app_release:\n"
3847 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
3848 "   app_trans_path:\n"
3849 "   app_publisher: Mozilla\n"
3850 "   app_url: http://www.mozilla.com/en-GB/\n"
3851 "   app_source_package:\n"
3852 "   app_summary:\n"
3853 "   app_description: Mozilla Firefox\n"
3854 " }\n"
3855 " [1] = {\n"
3856 "   app_name: VLC media player\n"
3857 "   app_display_name: VLC media player 1.1.5\n"
3858 "   app_epoch: 0\n"
3859 "   app_version: 1.1.5\n"
3860 "   app_release:\n"
3861 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
3862 "   app_trans_path:\n"
3863 "   app_publisher: VideoLAN\n"
3864 "   app_url: http://www.videolan.org/\n"
3865 "   app_source_package:\n"
3866 "   app_summary:\n"
3867 "   app_description:\n"
3868 " }\n"
3869 "\n"
3870 msgstr ""
3871
3872 #. type: textblock
3873 #: ../examples/guestfs-recipes.pod:305
3874 msgid ""
3875 "If you want to run the script on disk images (instead of libvirt virtual "
3876 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
3877 ">."
3878 msgstr ""
3879
3880 #. type: =head1
3881 #: ../examples/guestfs-recipes.pod:309
3882 msgid "List files and directories in a VM"
3883 msgstr ""
3884
3885 #. type: textblock
3886 #: ../examples/guestfs-recipes.pod:311
3887 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
3888 msgstr ""
3889
3890 #. type: verbatim
3891 #: ../examples/guestfs-recipes.pod:313
3892 #, no-wrap
3893 msgid ""
3894 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
3895 "\n"
3896 msgstr ""
3897
3898 #. type: =head1
3899 #: ../examples/guestfs-recipes.pod:315
3900 msgid "List services in a Windows VM"
3901 msgstr ""
3902
3903 #. type: textblock
3904 #: ../examples/guestfs-recipes.pod:317
3905 msgid ""
3906 "The link below contains a script that can be used to list out the services "
3907 "from a Windows VM, and whether those services run at boot time or are loaded "
3908 "on demand."
3909 msgstr ""
3910
3911 #. type: textblock
3912 #: ../examples/guestfs-recipes.pod:321
3913 msgid ""
3914 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
3915 "#content"
3916 msgstr ""
3917
3918 #. type: =head1
3919 #: ../examples/guestfs-recipes.pod:323
3920 msgid "Make a disk image sparse"
3921 msgstr ""
3922
3923 #. type: textblock
3924 #: ../examples/guestfs-recipes.pod:325
3925 msgid ""
3926 "The link below contains some guides for making a disk image sparse (or "
3927 "reintroducing sparseness)."
3928 msgstr ""
3929
3930 #. type: textblock
3931 #: ../examples/guestfs-recipes.pod:328
3932 msgid ""
3933 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
3934 msgstr ""
3935
3936 #. type: =head1
3937 #: ../examples/guestfs-recipes.pod:330
3938 msgid "Monitor disk usage over time"
3939 msgstr ""
3940
3941 #. type: textblock
3942 #: ../examples/guestfs-recipes.pod:332
3943 msgid ""
3944 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
3945 "The link below contains a guide."
3946 msgstr ""
3947
3948 #. type: textblock
3949 #: ../examples/guestfs-recipes.pod:335
3950 msgid "http://virt-tools.org/learning/advanced-virt-df/"
3951 msgstr ""
3952
3953 #. type: =head1
3954 #: ../examples/guestfs-recipes.pod:337
3955 msgid "Reading the Windows Event Log from Windows Vista (or later)"
3956 msgstr ""
3957
3958 #. type: textblock
3959 #: ../examples/guestfs-recipes.pod:339
3960 msgid ""
3961 "L<guestfish(1)> plus the tools described in the link below can be used to "
3962 "read out the Windows Event Log from any virtual machine running Windows "
3963 "Vista or a later version."
3964 msgstr ""
3965
3966 #. type: textblock
3967 #: ../examples/guestfs-recipes.pod:343
3968 msgid ""
3969 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
3970 "guestfish/#content"
3971 msgstr ""
3972
3973 #. type: =head1
3974 #: ../examples/guestfs-recipes.pod:345
3975 msgid "Remove root password (Linux)"
3976 msgstr ""
3977
3978 #. type: textblock
3979 #: ../examples/guestfs-recipes.pod:347
3980 msgid ""
3981 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
3982 "files.  One use is to remove the root password from a Linux guest:"
3983 msgstr ""
3984
3985 #. type: verbatim
3986 #: ../examples/guestfs-recipes.pod:350
3987 #, no-wrap
3988 msgid ""
3989 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3990 "\n"
3991 msgstr ""
3992
3993 #. type: =head1
3994 #: ../examples/guestfs-recipes.pod:352
3995 msgid "Remove Administrator password (Windows)"
3996 msgstr ""
3997
3998 #. type: textblock
3999 #: ../examples/guestfs-recipes.pod:354
4000 msgid ""
4001 "The link below contains one technique for removing the Administrator "
4002 "password from a Windows VM, or to be more precise, it gives you a command "
4003 "prompt the next time you log in which you can use to bypass any security:"
4004 msgstr ""
4005
4006 #. type: textblock
4007 #: ../examples/guestfs-recipes.pod:359
4008 msgid ""
4009 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
4010 "administrator-password-with-guestfish/"
4011 msgstr ""
4012
4013 #. type: =head1
4014 #: ../examples/guestfs-recipes.pod:361
4015 msgid "Unpack a live CD"
4016 msgstr ""
4017
4018 #. type: textblock
4019 #: ../examples/guestfs-recipes.pod:363
4020 msgid ""
4021 "Linux live CDs often contain multiple layers of disk images wrapped like a "
4022 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
4023 "layers, as outlined in the guide below."
4024 msgstr ""
4025
4026 #. type: textblock
4027 #: ../examples/guestfs-recipes.pod:367
4028 msgid ""
4029 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
4030 "cd/#content"
4031 msgstr ""
4032
4033 #. type: =head1
4034 #: ../examples/guestfs-recipes.pod:369
4035 msgid "Uploading and downloading files"
4036 msgstr ""
4037
4038 #. type: textblock
4039 #: ../examples/guestfs-recipes.pod:371
4040 msgid ""
4041 "The link below contains general tips on uploading (copying in)  and "
4042 "downloading (copying out) files from VMs."
4043 msgstr ""
4044
4045 #. type: textblock
4046 #: ../examples/guestfs-recipes.pod:374
4047 msgid ""
4048 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
4049 msgstr ""
4050
4051 #. type: =head1
4052 #: ../examples/guestfs-recipes.pod:376
4053 msgid "Use libguestfs tools on VMware ESX guests"
4054 msgstr ""
4055
4056 #. type: textblock
4057 #: ../examples/guestfs-recipes.pod:378
4058 msgid ""
4059 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
4060 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
4061 msgstr ""
4062
4063 #. type: textblock
4064 #: ../examples/guestfs-recipes.pod:382
4065 msgid ""
4066 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
4067 "guests/#content"
4068 msgstr ""
4069
4070 #. type: textblock
4071 #: ../examples/guestfs-recipes.pod:386
4072 msgid ""
4073 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
4074 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby"
4075 "(3)>, L<http://libguestfs.org/>."
4076 msgstr ""
4077
4078 #. type: textblock
4079 #: ../examples/guestfs-recipes.pod:402
4080 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
4081 msgstr ""
4082
4083 #. type: =head2
4084 #: ../fish/guestfish-actions.pod:1
4085 msgid "add-cdrom"
4086 msgstr ""
4087
4088 #. type: verbatim
4089 #: ../fish/guestfish-actions.pod:3
4090 #, no-wrap
4091 msgid ""
4092 " add-cdrom filename\n"
4093 "\n"
4094 msgstr ""
4095
4096 #. type: textblock
4097 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:7
4098 msgid "This function adds a virtual CD-ROM disk image to the guest."
4099 msgstr ""
4100
4101 #. type: textblock
4102 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:9
4103 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
4104 msgstr ""
4105
4106 #. type: textblock
4107 #: ../fish/guestfish-actions.pod:15
4108 msgid ""
4109 "This call checks for the existence of C<filename>.  This stops you from "
4110 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4111 "and C<http:> URLs.  To specify those, use the general L</config> call "
4112 "instead."
4113 msgstr ""
4114
4115 #. type: textblock
4116 #: ../fish/guestfish-actions.pod:22
4117 msgid ""
4118 "If you just want to add an ISO file (often you use this as an efficient way "
4119 "to transfer large files into the guest), then you should probably use L</add-"
4120 "drive-ro> instead."
4121 msgstr ""
4122
4123 #. type: textblock
4124 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163
4125 #: ../fish/guestfish-actions.pod:177
4126 msgid ""
4127 "This function is deprecated.  In new code, use the L</add_drive_opts> call "
4128 "instead."
4129 msgstr ""
4130
4131 #. type: textblock
4132 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166
4133 #: ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:991
4134 #: ../fish/guestfish-actions.pod:1351 ../fish/guestfish-actions.pod:1365
4135 #: ../fish/guestfish-actions.pod:3112 ../fish/guestfish-actions.pod:3319
4136 #: ../fish/guestfish-actions.pod:3433 ../fish/guestfish-actions.pod:3481
4137 #: ../fish/guestfish-actions.pod:4382 ../fish/guestfish-actions.pod:4405
4138 #: ../fish/guestfish-actions.pod:4427 ../fish/guestfish-actions.pod:4465
4139 #: ../fish/guestfish-actions.pod:5114 ../fish/guestfish-actions.pod:5220
4140 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:257
4141 #: ../src/guestfs-actions.pod:278 ../src/guestfs-actions.pod:1518
4142 #: ../src/guestfs-actions.pod:2013 ../src/guestfs-actions.pod:2034
4143 #: ../src/guestfs-actions.pod:4655 ../src/guestfs-actions.pod:4974
4144 #: ../src/guestfs-actions.pod:5192 ../src/guestfs-actions.pod:5282
4145 #: ../src/guestfs-actions.pod:6571 ../src/guestfs-actions.pod:6601
4146 #: ../src/guestfs-actions.pod:6634 ../src/guestfs-actions.pod:6693
4147 #: ../src/guestfs-actions.pod:7629 ../src/guestfs-actions.pod:7741
4148 #: ../src/guestfs-actions.pod:7919
4149 msgid ""
4150 "Deprecated functions will not be removed from the API, but the fact that "
4151 "they are deprecated indicates that there are problems with correct use of "
4152 "these functions."
4153 msgstr ""
4154
4155 #. type: =head2
4156 #: ../fish/guestfish-actions.pod:35
4157 msgid "add-domain"
4158 msgstr ""
4159
4160 #. type: =head2
4161 #: ../fish/guestfish-actions.pod:37
4162 msgid "domain"
4163 msgstr ""
4164
4165 #. type: verbatim
4166 #: ../fish/guestfish-actions.pod:39
4167 #, no-wrap
4168 msgid ""
4169 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
4170 "\n"
4171 msgstr ""
4172
4173 #. type: textblock
4174 #: ../fish/guestfish-actions.pod:41
4175 msgid ""
4176 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4177 "It works by connecting to libvirt, requesting the domain and domain XML from "
4178 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
4179 msgstr ""
4180
4181 #. type: textblock
4182 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
4183 msgid ""
4184 "The number of disks added is returned.  This operation is atomic: if an "
4185 "error is returned, then no disks are added."
4186 msgstr ""
4187
4188 #. type: textblock
4189 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
4190 msgid ""
4191 "This function does some minimal checks to make sure the libvirt domain is "
4192 "not running (unless C<readonly> is true).  In a future version we will try "
4193 "to acquire the libvirt lock on each disk."
4194 msgstr ""
4195
4196 #. type: textblock
4197 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
4198 msgid ""
4199 "Disks must be accessible locally.  This often means that adding disks from a "
4200 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4201 "unless those disks are accessible via the same device path locally too."
4202 msgstr ""
4203
4204 #. type: textblock
4205 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
4206 msgid ""
4207 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4208 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
4209 "libvirt URI (or one set through an environment variable, see the libvirt "
4210 "documentation for full details)."
4211 msgstr ""
4212
4213 #. type: textblock
4214 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
4215 msgid ""
4216 "The optional C<live> flag controls whether this call will try to connect to "
4217 "a running virtual machine C<guestfsd> process if it sees a suitable "
4218 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
4219 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
4220 "DAEMONS> for more information."
4221 msgstr ""
4222
4223 #. type: textblock
4224 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
4225 msgid ""
4226 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
4227 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
4228 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
4229 "as usual."
4230 msgstr ""
4231
4232 #. type: textblock
4233 #: ../fish/guestfish-actions.pod:76
4234 msgid ""
4235 "The other optional parameters are passed directly through to L</add-drive-"
4236 "opts>."
4237 msgstr ""
4238
4239 #. type: textblock
4240 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
4241 #: ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:1995
4242 #: ../fish/guestfish-actions.pod:3161 ../fish/guestfish-actions.pod:3334
4243 #: ../fish/guestfish-actions.pod:3469
4244 msgid ""
4245 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
4246 msgstr ""
4247
4248 #. type: =head2
4249 #: ../fish/guestfish-actions.pod:81
4250 msgid "add-drive"
4251 msgstr ""
4252
4253 #. type: verbatim
4254 #: ../fish/guestfish-actions.pod:83
4255 #, no-wrap
4256 msgid ""
4257 " add-drive filename\n"
4258 "\n"
4259 msgstr ""
4260
4261 #. type: textblock
4262 #: ../fish/guestfish-actions.pod:85
4263 msgid ""
4264 "This function is the equivalent of calling L</add-drive-opts> with no "
4265 "optional parameters, so the disk is added writable, with the format being "
4266 "detected automatically."
4267 msgstr ""
4268
4269 #. type: textblock
4270 #: ../fish/guestfish-actions.pod:89
4271 msgid ""
4272 "Automatic detection of the format opens you up to a potential security hole "
4273 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4274 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4275 "you should think about replacing calls to this function with calls to L</add-"
4276 "drive-opts>, and specifying the format."
4277 msgstr ""
4278
4279 #. type: =head2
4280 #: ../fish/guestfish-actions.pod:96
4281 msgid "add-drive-opts"
4282 msgstr ""
4283
4284 #. type: =head2
4285 #: ../fish/guestfish-actions.pod:98
4286 msgid "add"
4287 msgstr ""
4288
4289 #. type: verbatim
4290 #: ../fish/guestfish-actions.pod:100
4291 #, no-wrap
4292 msgid ""
4293 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
4294 "\n"
4295 msgstr ""
4296
4297 #. type: textblock
4298 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
4299 msgid ""
4300 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4301 "The first time you call this function, the disk appears as C</dev/sda>, the "
4302 "second time as C</dev/sdb>, and so on."
4303 msgstr ""
4304
4305 #. type: textblock
4306 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
4307 msgid ""
4308 "You don't necessarily need to be root when using libguestfs.  However you "
4309 "obviously do need sufficient permissions to access the filename for whatever "
4310 "operations you want to perform (ie. read access if you just want to read the "
4311 "image or write access if you want to modify the image)."
4312 msgstr ""
4313
4314 #. type: textblock
4315 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
4316 msgid "This call checks that C<filename> exists."
4317 msgstr ""
4318
4319 #. type: textblock
4320 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3123
4321 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4682
4322 msgid "The optional arguments are:"
4323 msgstr ""
4324
4325 #. type: =item
4326 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
4327 msgid "C<readonly>"
4328 msgstr ""
4329
4330 #. type: textblock
4331 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
4332 msgid ""
4333 "If true then the image is treated as read-only.  Writes are still allowed, "
4334 "but they are stored in a temporary snapshot overlay which is discarded at "
4335 "the end.  The disk that you add is not modified."
4336 msgstr ""
4337
4338 #. type: =item
4339 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
4340 msgid "C<format>"
4341 msgstr ""
4342
4343 #. type: textblock
4344 #: ../fish/guestfish-actions.pod:127
4345 msgid ""
4346 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
4347 "add-drive-ro>) then the format is automatically detected.  Possible formats "
4348 "include C<raw> and C<qcow2>."
4349 msgstr ""
4350
4351 #. type: textblock
4352 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
4353 msgid ""
4354 "Automatic detection of the format opens you up to a potential security hole "
4355 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4356 "RHBZ#642934.  Specifying the format closes this security hole."
4357 msgstr ""
4358
4359 #. type: =item
4360 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
4361 msgid "C<iface>"
4362 msgstr ""
4363
4364 #. type: textblock
4365 #: ../fish/guestfish-actions.pod:138
4366 msgid ""
4367 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
4368 "add-drive-with-if> call (q.v.)"
4369 msgstr ""
4370
4371 #. type: =head2
4372 #: ../fish/guestfish-actions.pod:145
4373 msgid "add-drive-ro"
4374 msgstr ""
4375
4376 #. type: =head2
4377 #: ../fish/guestfish-actions.pod:147
4378 msgid "add-ro"
4379 msgstr ""
4380
4381 #. type: verbatim
4382 #: ../fish/guestfish-actions.pod:149
4383 #, no-wrap
4384 msgid ""
4385 " add-drive-ro filename\n"
4386 "\n"
4387 msgstr ""
4388
4389 #. type: textblock
4390 #: ../fish/guestfish-actions.pod:151
4391 msgid ""
4392 "This function is the equivalent of calling L</add-drive-opts> with the "
4393 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
4394 "is added read-only, with the format being detected automatically."
4395 msgstr ""
4396
4397 #. type: =head2
4398 #: ../fish/guestfish-actions.pod:156
4399 msgid "add-drive-ro-with-if"
4400 msgstr ""
4401
4402 #. type: verbatim
4403 #: ../fish/guestfish-actions.pod:158
4404 #, no-wrap
4405 msgid ""
4406 " add-drive-ro-with-if filename iface\n"
4407 "\n"
4408 msgstr ""
4409
4410 #. type: textblock
4411 #: ../fish/guestfish-actions.pod:160
4412 msgid ""
4413 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
4414 "interface emulation to use at run time."
4415 msgstr ""
4416
4417 #. type: =head2
4418 #: ../fish/guestfish-actions.pod:170
4419 msgid "add-drive-with-if"
4420 msgstr ""
4421
4422 #. type: verbatim
4423 #: ../fish/guestfish-actions.pod:172
4424 #, no-wrap
4425 msgid ""
4426 " add-drive-with-if filename iface\n"
4427 "\n"
4428 msgstr ""
4429
4430 #. type: textblock
4431 #: ../fish/guestfish-actions.pod:174
4432 msgid ""
4433 "This is the same as L</add-drive> but it allows you to specify the QEMU "
4434 "interface emulation to use at run time."
4435 msgstr ""
4436
4437 #. type: =head2
4438 #: ../fish/guestfish-actions.pod:184
4439 msgid "aug-clear"
4440 msgstr ""
4441
4442 #. type: verbatim
4443 #: ../fish/guestfish-actions.pod:186
4444 #, no-wrap
4445 msgid ""
4446 " aug-clear augpath\n"
4447 "\n"
4448 msgstr ""
4449
4450 #. type: textblock
4451 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
4452 msgid ""
4453 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4454 "L<augtool(1)> C<clear> command."
4455 msgstr ""
4456
4457 #. type: =head2
4458 #: ../fish/guestfish-actions.pod:191
4459 msgid "aug-close"
4460 msgstr ""
4461
4462 #. type: verbatim
4463 #: ../fish/guestfish-actions.pod:193
4464 #, no-wrap
4465 msgid ""
4466 " aug-close\n"
4467 "\n"
4468 msgstr ""
4469
4470 #. type: textblock
4471 #: ../fish/guestfish-actions.pod:195
4472 msgid ""
4473 "Close the current Augeas handle and free up any resources used by it.  After "
4474 "calling this, you have to call L</aug-init> again before you can use any "
4475 "other Augeas functions."
4476 msgstr ""
4477
4478 #. type: =head2
4479 #: ../fish/guestfish-actions.pod:200
4480 msgid "aug-defnode"
4481 msgstr ""
4482
4483 #. type: verbatim
4484 #: ../fish/guestfish-actions.pod:202
4485 #, no-wrap
4486 msgid ""
4487 " aug-defnode name expr val\n"
4488 "\n"
4489 msgstr ""
4490
4491 #. type: textblock
4492 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
4493 msgid ""
4494 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4495 msgstr ""
4496
4497 #. type: textblock
4498 #: ../fish/guestfish-actions.pod:207
4499 msgid ""
4500 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4501 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
4502 "containing that single node."
4503 msgstr ""
4504
4505 #. type: textblock
4506 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
4507 msgid ""
4508 "On success this returns a pair containing the number of nodes in the "
4509 "nodeset, and a boolean flag if a node was created."
4510 msgstr ""
4511
4512 #. type: =head2
4513 #: ../fish/guestfish-actions.pod:215
4514 msgid "aug-defvar"
4515 msgstr ""
4516
4517 #. type: verbatim
4518 #: ../fish/guestfish-actions.pod:217
4519 #, no-wrap
4520 msgid ""
4521 " aug-defvar name expr\n"
4522 "\n"
4523 msgstr ""
4524
4525 #. type: textblock
4526 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
4527 msgid ""
4528 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4529 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4530 msgstr ""
4531
4532 #. type: textblock
4533 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
4534 msgid ""
4535 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4536 "evaluates to something which is not a nodeset."
4537 msgstr ""
4538
4539 #. type: =head2
4540 #: ../fish/guestfish-actions.pod:226
4541 msgid "aug-get"
4542 msgstr ""
4543
4544 #. type: verbatim
4545 #: ../fish/guestfish-actions.pod:228
4546 #, no-wrap
4547 msgid ""
4548 " aug-get augpath\n"
4549 "\n"
4550 msgstr ""
4551
4552 #. type: textblock
4553 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
4554 msgid ""
4555 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4556 "node, the C<value> is returned."
4557 msgstr ""
4558
4559 #. type: =head2
4560 #: ../fish/guestfish-actions.pod:233
4561 msgid "aug-init"
4562 msgstr ""
4563
4564 #. type: verbatim
4565 #: ../fish/guestfish-actions.pod:235
4566 #, no-wrap
4567 msgid ""
4568 " aug-init root flags\n"
4569 "\n"
4570 msgstr ""
4571
4572 #. type: textblock
4573 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
4574 msgid ""
4575 "Create a new Augeas handle for editing configuration files.  If there was "
4576 "any previous Augeas handle associated with this guestfs session, then it is "
4577 "closed."
4578 msgstr ""
4579
4580 #. type: textblock
4581 #: ../fish/guestfish-actions.pod:241
4582 msgid "You must call this before using any other L</aug-*> commands."
4583 msgstr ""
4584
4585 #. type: textblock
4586 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
4587 msgid ""
4588 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4589 msgstr ""
4590
4591 #. type: textblock
4592 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
4593 msgid ""
4594 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4595 "logical I<or> of the following integers:"
4596 msgstr ""
4597
4598 #. type: =item
4599 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
4600 msgid "C<AUG_SAVE_BACKUP> = 1"
4601 msgstr ""
4602
4603 #. type: textblock
4604 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
4605 msgid "Keep the original file with a C<.augsave> extension."
4606 msgstr ""
4607
4608 #. type: =item
4609 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
4610 msgid "C<AUG_SAVE_NEWFILE> = 2"
4611 msgstr ""
4612
4613 #. type: textblock
4614 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
4615 msgid ""
4616 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4617 "original.  Overrides C<AUG_SAVE_BACKUP>."
4618 msgstr ""
4619
4620 #. type: =item
4621 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
4622 msgid "C<AUG_TYPE_CHECK> = 4"
4623 msgstr ""
4624
4625 #. type: textblock
4626 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
4627 msgid "Typecheck lenses."
4628 msgstr ""
4629
4630 #. type: textblock
4631 #: ../fish/guestfish-actions.pod:266
4632 msgid ""
4633 "This option is only useful when debugging Augeas lenses.  Use of this option "
4634 "may require additional memory for the libguestfs appliance.  You may need to "
4635 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
4636 msgstr ""
4637
4638 #. type: =item
4639 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
4640 msgid "C<AUG_NO_STDINC> = 8"
4641 msgstr ""
4642
4643 #. type: textblock
4644 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
4645 msgid "Do not use standard load path for modules."
4646 msgstr ""
4647
4648 #. type: =item
4649 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
4650 msgid "C<AUG_SAVE_NOOP> = 16"
4651 msgstr ""
4652
4653 #. type: textblock
4654 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
4655 msgid "Make save a no-op, just record what would have been changed."
4656 msgstr ""
4657
4658 #. type: =item
4659 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
4660 msgid "C<AUG_NO_LOAD> = 32"
4661 msgstr ""
4662
4663 #. type: textblock
4664 #: ../fish/guestfish-actions.pod:281
4665 msgid "Do not load the tree in L</aug-init>."
4666 msgstr ""
4667
4668 #. type: textblock
4669 #: ../fish/guestfish-actions.pod:285
4670 msgid "To close the handle, you can call L</aug-close>."
4671 msgstr ""
4672
4673 #. type: textblock
4674 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
4675 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4676 msgstr ""
4677
4678 #. type: =head2
4679 #: ../fish/guestfish-actions.pod:289
4680 msgid "aug-insert"
4681 msgstr ""
4682
4683 #. type: verbatim
4684 #: ../fish/guestfish-actions.pod:291
4685 #, no-wrap
4686 msgid ""
4687 " aug-insert augpath label true|false\n"
4688 "\n"
4689 msgstr ""
4690
4691 #. type: textblock
4692 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
4693 msgid ""
4694 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4695 "or after C<path> (depending on the boolean flag C<before>)."
4696 msgstr ""
4697
4698 #. type: textblock
4699 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
4700 msgid ""
4701 "C<path> must match exactly one existing node in the tree, and C<label> must "
4702 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4703 msgstr ""
4704
4705 #. type: =head2
4706 #: ../fish/guestfish-actions.pod:301
4707 msgid "aug-load"
4708 msgstr ""
4709
4710 #. type: verbatim
4711 #: ../fish/guestfish-actions.pod:303
4712 #, no-wrap
4713 msgid ""
4714 " aug-load\n"
4715 "\n"
4716 msgstr ""
4717
4718 #. type: textblock
4719 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
4720 msgid "Load files into the tree."
4721 msgstr ""
4722
4723 #. type: textblock
4724 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
4725 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4726 msgstr ""
4727
4728 #. type: =head2
4729 #: ../fish/guestfish-actions.pod:310
4730 msgid "aug-ls"
4731 msgstr ""
4732
4733 #. type: verbatim
4734 #: ../fish/guestfish-actions.pod:312
4735 #, no-wrap
4736 msgid ""
4737 " aug-ls augpath\n"
4738 "\n"
4739 msgstr ""
4740
4741 #. type: textblock
4742 #: ../fish/guestfish-actions.pod:314
4743 msgid ""
4744 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
4745 "resulting nodes into alphabetical order."
4746 msgstr ""
4747
4748 #. type: =head2
4749 #: ../fish/guestfish-actions.pod:317
4750 msgid "aug-match"
4751 msgstr ""
4752
4753 #. type: verbatim
4754 #: ../fish/guestfish-actions.pod:319
4755 #, no-wrap
4756 msgid ""
4757 " aug-match augpath\n"
4758 "\n"
4759 msgstr ""
4760
4761 #. type: textblock
4762 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
4763 msgid ""
4764 "Returns a list of paths which match the path expression C<path>.  The "
4765 "returned paths are sufficiently qualified so that they match exactly one "
4766 "node in the current tree."
4767 msgstr ""
4768
4769 #. type: =head2
4770 #: ../fish/guestfish-actions.pod:325
4771 msgid "aug-mv"
4772 msgstr ""
4773
4774 #. type: verbatim
4775 #: ../fish/guestfish-actions.pod:327
4776 #, no-wrap
4777 msgid ""
4778 " aug-mv src dest\n"
4779 "\n"
4780 msgstr ""
4781
4782 #. type: textblock
4783 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
4784 msgid ""
4785 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4786 "C<dest> is overwritten if it exists."
4787 msgstr ""
4788
4789 #. type: =head2
4790 #: ../fish/guestfish-actions.pod:332
4791 msgid "aug-rm"
4792 msgstr ""
4793
4794 #. type: verbatim
4795 #: ../fish/guestfish-actions.pod:334
4796 #, no-wrap
4797 msgid ""
4798 " aug-rm augpath\n"
4799 "\n"
4800 msgstr ""
4801
4802 #. type: textblock
4803 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
4804 msgid "Remove C<path> and all of its children."
4805 msgstr ""
4806
4807 #. type: textblock
4808 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
4809 msgid "On success this returns the number of entries which were removed."
4810 msgstr ""
4811
4812 #. type: =head2
4813 #: ../fish/guestfish-actions.pod:340
4814 msgid "aug-save"
4815 msgstr ""
4816
4817 #. type: verbatim
4818 #: ../fish/guestfish-actions.pod:342
4819 #, no-wrap
4820 msgid ""
4821 " aug-save\n"
4822 "\n"
4823 msgstr ""
4824
4825 #. type: textblock
4826 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
4827 msgid "This writes all pending changes to disk."
4828 msgstr ""
4829
4830 #. type: textblock
4831 #: ../fish/guestfish-actions.pod:346
4832 msgid ""
4833 "The flags which were passed to L</aug-init> affect exactly how files are "
4834 "saved."
4835 msgstr ""
4836
4837 #. type: =head2
4838 #: ../fish/guestfish-actions.pod:349
4839 msgid "aug-set"
4840 msgstr ""
4841
4842 #. type: verbatim
4843 #: ../fish/guestfish-actions.pod:351
4844 #, no-wrap
4845 msgid ""
4846 " aug-set augpath val\n"
4847 "\n"
4848 msgstr ""
4849
4850 #. type: textblock
4851 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
4852 msgid "Set the value associated with C<path> to C<val>."
4853 msgstr ""
4854
4855 #. type: textblock
4856 #: ../fish/guestfish-actions.pod:355
4857 msgid ""
4858 "In the Augeas API, it is possible to clear a node by setting the value to "
4859 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
4860 "this call.  Instead you must use the L</aug-clear> call."
4861 msgstr ""
4862
4863 #. type: =head2
4864 #: ../fish/guestfish-actions.pod:360
4865 msgid "available"
4866 msgstr ""
4867
4868 #. type: verbatim
4869 #: ../fish/guestfish-actions.pod:362
4870 #, no-wrap
4871 msgid ""
4872 " available 'groups ...'\n"
4873 "\n"
4874 msgstr ""
4875
4876 #. type: textblock
4877 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
4878 msgid ""
4879 "This command is used to check the availability of some groups of "
4880 "functionality in the appliance, which not all builds of the libguestfs "
4881 "appliance will be able to provide."
4882 msgstr ""
4883
4884 #. type: textblock
4885 #: ../fish/guestfish-actions.pod:368
4886 msgid ""
4887 "The libguestfs groups, and the functions that those groups correspond to, "
4888 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
4889 "runtime by calling L</available-all-groups>."
4890 msgstr ""
4891
4892 #. type: textblock
4893 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
4894 msgid ""
4895 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
4896 "\"]> would check for the availability of the Linux inotify functions and "
4897 "Augeas (configuration file editing) functions."
4898 msgstr ""
4899
4900 #. type: textblock
4901 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
4902 msgid "The command returns no error if I<all> requested groups are available."
4903 msgstr ""
4904
4905 #. type: textblock
4906 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:578
4907 msgid ""
4908 "It fails with an error if one or more of the requested groups is unavailable "
4909 "in the appliance."
4910 msgstr ""
4911
4912 #. type: textblock
4913 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:581
4914 msgid ""
4915 "If an unknown group name is included in the list of groups then an error is "
4916 "always returned."
4917 msgstr ""
4918
4919 #. type: textblock
4920 #: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:584
4921 msgid "I<Notes:>"
4922 msgstr ""
4923
4924 #. type: textblock
4925 #: ../fish/guestfish-actions.pod:392
4926 msgid "You must call L</launch> before calling this function."
4927 msgstr ""
4928
4929 #. type: textblock
4930 #: ../fish/guestfish-actions.pod:394 ../src/guestfs-actions.pod:592
4931 msgid ""
4932 "The reason is because we don't know what groups are supported by the "
4933 "appliance/daemon until it is running and can be queried."
4934 msgstr ""
4935
4936 #. type: textblock
4937 #: ../fish/guestfish-actions.pod:400 ../src/guestfs-actions.pod:598
4938 msgid ""
4939 "If a group of functions is available, this does not necessarily mean that "
4940 "they will work.  You still have to check for errors when calling individual "
4941 "API functions even if they are available."
4942 msgstr ""
4943
4944 #. type: textblock
4945 #: ../fish/guestfish-actions.pod:407 ../src/guestfs-actions.pod:605
4946 msgid ""
4947 "It is usually the job of distro packagers to build complete functionality "
4948 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
4949 "with all requirements satisfied, will support everything."
4950 msgstr ""
4951
4952 #. type: textblock
4953 #: ../fish/guestfish-actions.pod:414
4954 msgid ""
4955 "This call was added in version C<1.0.80>.  In previous versions of "
4956 "libguestfs all you could do would be to speculatively execute a command to "
4957 "find out if the daemon implemented it.  See also L</version>."
4958 msgstr ""
4959
4960 #. type: =head2
4961 #: ../fish/guestfish-actions.pod:421
4962 msgid "available-all-groups"
4963 msgstr ""
4964
4965 #. type: verbatim
4966 #: ../fish/guestfish-actions.pod:423
4967 #, no-wrap
4968 msgid ""
4969 " available-all-groups\n"
4970 "\n"
4971 msgstr ""
4972
4973 #. type: textblock
4974 #: ../fish/guestfish-actions.pod:425
4975 msgid ""
4976 "This command returns a list of all optional groups that this daemon knows "
4977 "about.  Note this returns both supported and unsupported groups.  To find "
4978 "out which ones the daemon can actually support you have to call L</"
4979 "available> on each member of the returned list."
4980 msgstr ""
4981
4982 #. type: textblock
4983 #: ../fish/guestfish-actions.pod:431
4984 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
4985 msgstr ""
4986
4987 #. type: =head2
4988 #: ../fish/guestfish-actions.pod:433
4989 msgid "base64-in"
4990 msgstr ""
4991
4992 #. type: verbatim
4993 #: ../fish/guestfish-actions.pod:435
4994 #, no-wrap
4995 msgid ""
4996 " base64-in (base64file|-) filename\n"
4997 "\n"
4998 msgstr ""
4999
5000 #. type: textblock
5001 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:649
5002 msgid ""
5003 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5004 msgstr ""
5005
5006 #. type: textblock
5007 #: ../fish/guestfish-actions.pod:440 ../fish/guestfish-actions.pod:449
5008 #: ../fish/guestfish-actions.pod:698 ../fish/guestfish-actions.pod:867
5009 #: ../fish/guestfish-actions.pod:886 ../fish/guestfish-actions.pod:1260
5010 #: ../fish/guestfish-actions.pod:4685 ../fish/guestfish-actions.pod:4697
5011 #: ../fish/guestfish-actions.pod:4708 ../fish/guestfish-actions.pod:4719
5012 #: ../fish/guestfish-actions.pod:4771 ../fish/guestfish-actions.pod:4780
5013 #: ../fish/guestfish-actions.pod:4834 ../fish/guestfish-actions.pod:4857
5014 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
5015 msgstr ""
5016
5017 #. type: =head2
5018 #: ../fish/guestfish-actions.pod:442
5019 msgid "base64-out"
5020 msgstr ""
5021
5022 #. type: verbatim
5023 #: ../fish/guestfish-actions.pod:444
5024 #, no-wrap
5025 msgid ""
5026 " base64-out filename (base64file|-)\n"
5027 "\n"
5028 msgstr ""
5029
5030 #. type: textblock
5031 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
5032 msgid ""
5033 "This command downloads the contents of C<filename>, writing it out to local "
5034 "file C<base64file> encoded as base64."
5035 msgstr ""
5036
5037 #. type: =head2
5038 #: ../fish/guestfish-actions.pod:451
5039 msgid "blockdev-flushbufs"
5040 msgstr ""
5041
5042 #. type: verbatim
5043 #: ../fish/guestfish-actions.pod:453
5044 #, no-wrap
5045 msgid ""
5046 " blockdev-flushbufs device\n"
5047 "\n"
5048 msgstr ""
5049
5050 #. type: textblock
5051 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
5052 msgid ""
5053 "This tells the kernel to flush internal buffers associated with C<device>."
5054 msgstr ""
5055
5056 #. type: textblock
5057 #: ../fish/guestfish-actions.pod:458 ../fish/guestfish-actions.pod:469
5058 #: ../fish/guestfish-actions.pod:478 ../fish/guestfish-actions.pod:488
5059 #: ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:513
5060 #: ../fish/guestfish-actions.pod:521 ../fish/guestfish-actions.pod:532
5061 #: ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:548
5062 #: ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:696
5063 #: ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:727
5064 #: ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:764
5065 #: ../src/guestfs-actions.pod:778 ../src/guestfs-actions.pod:796
5066 #: ../src/guestfs-actions.pod:810 ../src/guestfs-actions.pod:824
5067 msgid "This uses the L<blockdev(8)> command."
5068 msgstr ""
5069
5070 #. type: =head2
5071 #: ../fish/guestfish-actions.pod:460
5072 msgid "blockdev-getbsz"
5073 msgstr ""
5074
5075 #. type: verbatim
5076 #: ../fish/guestfish-actions.pod:462
5077 #, no-wrap
5078 msgid ""
5079 " blockdev-getbsz device\n"
5080 "\n"
5081 msgstr ""
5082
5083 #. type: textblock
5084 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
5085 msgid "This returns the block size of a device."
5086 msgstr ""
5087
5088 #. type: textblock
5089 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529
5090 #: ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
5091 msgid ""
5092 "(Note this is different from both I<size in blocks> and I<filesystem block "
5093 "size>)."
5094 msgstr ""
5095
5096 #. type: =head2
5097 #: ../fish/guestfish-actions.pod:471
5098 msgid "blockdev-getro"
5099 msgstr ""
5100
5101 #. type: verbatim
5102 #: ../fish/guestfish-actions.pod:473
5103 #, no-wrap
5104 msgid ""
5105 " blockdev-getro device\n"
5106 "\n"
5107 msgstr ""
5108
5109 #. type: textblock
5110 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
5111 msgid ""
5112 "Returns a boolean indicating if the block device is read-only (true if read-"
5113 "only, false if not)."
5114 msgstr ""
5115
5116 #. type: =head2
5117 #: ../fish/guestfish-actions.pod:480
5118 msgid "blockdev-getsize64"
5119 msgstr ""
5120
5121 #. type: verbatim
5122 #: ../fish/guestfish-actions.pod:482
5123 #, no-wrap
5124 msgid ""
5125 " blockdev-getsize64 device\n"
5126 "\n"
5127 msgstr ""
5128
5129 #. type: textblock
5130 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
5131 msgid "This returns the size of the device in bytes."
5132 msgstr ""
5133
5134 #. type: textblock
5135 #: ../fish/guestfish-actions.pod:486
5136 msgid "See also L</blockdev-getsz>."
5137 msgstr ""
5138
5139 #. type: =head2
5140 #: ../fish/guestfish-actions.pod:490
5141 msgid "blockdev-getss"
5142 msgstr ""
5143
5144 #. type: verbatim
5145 #: ../fish/guestfish-actions.pod:492
5146 #, no-wrap
5147 msgid ""
5148 " blockdev-getss device\n"
5149 "\n"
5150 msgstr ""
5151
5152 #. type: textblock
5153 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
5154 msgid ""
5155 "This returns the size of sectors on a block device.  Usually 512, but can be "
5156 "larger for modern devices."
5157 msgstr ""
5158
5159 #. type: textblock
5160 #: ../fish/guestfish-actions.pod:497
5161 msgid ""
5162 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
5163 msgstr ""
5164
5165 #. type: =head2
5166 #: ../fish/guestfish-actions.pod:502
5167 msgid "blockdev-getsz"
5168 msgstr ""
5169
5170 #. type: verbatim
5171 #: ../fish/guestfish-actions.pod:504
5172 #, no-wrap
5173 msgid ""
5174 " blockdev-getsz device\n"
5175 "\n"
5176 msgstr ""
5177
5178 #. type: textblock
5179 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
5180 msgid ""
5181 "This returns the size of the device in units of 512-byte sectors (even if "
5182 "the sectorsize isn't 512 bytes ... weird)."
5183 msgstr ""
5184
5185 #. type: textblock
5186 #: ../fish/guestfish-actions.pod:509
5187 msgid ""
5188 "See also L</blockdev-getss> for the real sector size of the device, and L</"
5189 "blockdev-getsize64> for the more useful I<size in bytes>."
5190 msgstr ""
5191
5192 #. type: =head2
5193 #: ../fish/guestfish-actions.pod:515
5194 msgid "blockdev-rereadpt"
5195 msgstr ""
5196
5197 #. type: verbatim
5198 #: ../fish/guestfish-actions.pod:517
5199 #, no-wrap
5200 msgid ""
5201 " blockdev-rereadpt device\n"
5202 "\n"
5203 msgstr ""
5204
5205 #. type: textblock
5206 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
5207 msgid "Reread the partition table on C<device>."
5208 msgstr ""
5209
5210 #. type: =head2
5211 #: ../fish/guestfish-actions.pod:523
5212 msgid "blockdev-setbsz"
5213 msgstr ""
5214
5215 #. type: verbatim
5216 #: ../fish/guestfish-actions.pod:525
5217 #, no-wrap
5218 msgid ""
5219 " blockdev-setbsz device blocksize\n"
5220 "\n"
5221 msgstr ""
5222
5223 #. type: textblock
5224 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
5225 msgid "This sets the block size of a device."
5226 msgstr ""
5227
5228 #. type: =head2
5229 #: ../fish/guestfish-actions.pod:534
5230 msgid "blockdev-setro"
5231 msgstr ""
5232
5233 #. type: verbatim
5234 #: ../fish/guestfish-actions.pod:536
5235 #, no-wrap
5236 msgid ""
5237 " blockdev-setro device\n"
5238 "\n"
5239 msgstr ""
5240
5241 #. type: textblock
5242 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
5243 msgid "Sets the block device named C<device> to read-only."
5244 msgstr ""
5245
5246 #. type: =head2
5247 #: ../fish/guestfish-actions.pod:542
5248 msgid "blockdev-setrw"
5249 msgstr ""
5250
5251 #. type: verbatim
5252 #: ../fish/guestfish-actions.pod:544
5253 #, no-wrap
5254 msgid ""
5255 " blockdev-setrw device\n"
5256 "\n"
5257 msgstr ""
5258
5259 #. type: textblock
5260 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
5261 msgid "Sets the block device named C<device> to read-write."
5262 msgstr ""
5263
5264 #. type: =head2
5265 #: ../fish/guestfish-actions.pod:550
5266 msgid "btrfs-filesystem-resize"
5267 msgstr ""
5268
5269 #. type: verbatim
5270 #: ../fish/guestfish-actions.pod:552
5271 #, no-wrap
5272 msgid ""
5273 " btrfs-filesystem-resize mountpoint [size:..]\n"
5274 "\n"
5275 msgstr ""
5276
5277 #. type: textblock
5278 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
5279 msgid "This command resizes a btrfs filesystem."
5280 msgstr ""
5281
5282 #. type: textblock
5283 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
5284 msgid ""
5285 "Note that unlike other resize calls, the filesystem has to be mounted and "
5286 "the parameter is the mountpoint not the device (this is a requirement of "
5287 "btrfs itself)."
5288 msgstr ""
5289
5290 #. type: textblock
5291 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3444
5292 #: ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5216
5293 msgid "The optional parameters are:"
5294 msgstr ""
5295
5296 #. type: =item
5297 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3448
5298 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5220
5299 msgid "C<size>"
5300 msgstr ""
5301
5302 #. type: textblock
5303 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
5304 msgid ""
5305 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
5306 "resized to the maximum size."
5307 msgstr ""
5308
5309 #. type: textblock
5310 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
5311 msgid "See also L<btrfs(8)>."
5312 msgstr ""
5313
5314 #. type: =head2
5315 #: ../fish/guestfish-actions.pod:575
5316 msgid "case-sensitive-path"
5317 msgstr ""
5318
5319 #. type: verbatim
5320 #: ../fish/guestfish-actions.pod:577
5321 #, no-wrap
5322 msgid ""
5323 " case-sensitive-path path\n"
5324 "\n"
5325 msgstr ""
5326
5327 #. type: textblock
5328 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
5329 msgid ""
5330 "This can be used to resolve case insensitive paths on a filesystem which is "
5331 "case sensitive.  The use case is to resolve paths which you have read from "
5332 "Windows configuration files or the Windows Registry, to the true path."
5333 msgstr ""
5334
5335 #. type: textblock
5336 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
5337 msgid ""
5338 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5339 "(and probably others), which is that although the underlying filesystem is "
5340 "case-insensitive, the driver exports the filesystem to Linux as case-"
5341 "sensitive."
5342 msgstr ""
5343
5344 #. type: textblock
5345 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
5346 msgid ""
5347 "One consequence of this is that special directories such as C<c:\\windows> "
5348 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5349 "precise details of how they were created.  In Windows itself this would not "
5350 "be a problem."
5351 msgstr ""
5352
5353 #. type: textblock
5354 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
5355 msgid ""
5356 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5357 "#posixfilenames1>"
5358 msgstr ""
5359
5360 #. type: textblock
5361 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
5362 msgid ""
5363 "This function resolves the true case of each element in the path and returns "
5364 "the case-sensitive path."
5365 msgstr ""
5366
5367 #. type: textblock
5368 #: ../fish/guestfish-actions.pod:601
5369 msgid ""
5370 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
5371 "WINDOWS/system32\"> (the exact return value would depend on details of how "
5372 "the directories were originally created under Windows)."
5373 msgstr ""
5374
5375 #. type: textblock
5376 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
5377 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5378 msgstr ""
5379
5380 #. type: textblock
5381 #: ../fish/guestfish-actions.pod:609
5382 msgid "See also L</realpath>."
5383 msgstr ""
5384
5385 #. type: =head2
5386 #: ../fish/guestfish-actions.pod:611
5387 msgid "cat"
5388 msgstr ""
5389
5390 #. type: verbatim
5391 #: ../fish/guestfish-actions.pod:613
5392 #, no-wrap
5393 msgid ""
5394 " cat path\n"
5395 "\n"
5396 msgstr ""
5397
5398 #. type: textblock
5399 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3864
5400 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5859
5401 msgid "Return the contents of the file named C<path>."
5402 msgstr ""
5403
5404 #. type: textblock
5405 #: ../fish/guestfish-actions.pod:617
5406 msgid ""
5407 "Note that this function cannot correctly handle binary files (specifically, "
5408 "files containing C<\\0> character which is treated as end of string).  For "
5409 "those you need to use the L</read-file> or L</download> functions which have "
5410 "a more complex interface."
5411 msgstr ""
5412
5413 #. type: textblock
5414 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:757
5415 #: ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:945
5416 #: ../fish/guestfish-actions.pod:955 ../fish/guestfish-actions.pod:1022
5417 #: ../fish/guestfish-actions.pod:1032 ../fish/guestfish-actions.pod:1224
5418 #: ../fish/guestfish-actions.pod:1531 ../fish/guestfish-actions.pod:1541
5419 #: ../fish/guestfish-actions.pod:1591 ../fish/guestfish-actions.pod:1606
5420 #: ../fish/guestfish-actions.pod:1616 ../fish/guestfish-actions.pod:1635
5421 #: ../fish/guestfish-actions.pod:3734 ../fish/guestfish-actions.pod:3749
5422 #: ../fish/guestfish-actions.pod:3825 ../fish/guestfish-actions.pod:3842
5423 #: ../fish/guestfish-actions.pod:3857 ../fish/guestfish-actions.pod:4526
5424 #: ../fish/guestfish-actions.pod:4572 ../fish/guestfish-actions.pod:4657
5425 #: ../fish/guestfish-actions.pod:4672 ../fish/guestfish-actions.pod:5078
5426 #: ../fish/guestfish-actions.pod:5090 ../fish/guestfish-actions.pod:5108
5427 #: ../fish/guestfish-actions.pod:5125 ../fish/guestfish-actions.pod:5135
5428 #: ../fish/guestfish-actions.pod:5192 ../fish/guestfish-actions.pod:5202
5429 #: ../fish/guestfish-actions.pod:5231 ../fish/guestfish-actions.pod:5241
5430 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:1127
5431 #: ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1443
5432 #: ../src/guestfs-actions.pod:1462 ../src/guestfs-actions.pod:1565
5433 #: ../src/guestfs-actions.pod:1584 ../src/guestfs-actions.pod:1830
5434 #: ../src/guestfs-actions.pod:2301 ../src/guestfs-actions.pod:2320
5435 #: ../src/guestfs-actions.pod:2385 ../src/guestfs-actions.pod:2409
5436 #: ../src/guestfs-actions.pod:2426 ../src/guestfs-actions.pod:2455
5437 #: ../src/guestfs-actions.pod:5641 ../src/guestfs-actions.pod:5667
5438 #: ../src/guestfs-actions.pod:5798 ../src/guestfs-actions.pod:5824
5439 #: ../src/guestfs-actions.pod:5848 ../src/guestfs-actions.pod:6799
5440 #: ../src/guestfs-actions.pod:6854 ../src/guestfs-actions.pod:7000
5441 #: ../src/guestfs-actions.pod:7024 ../src/guestfs-actions.pod:7689
5442 #: ../src/guestfs-actions.pod:7709 ../src/guestfs-actions.pod:7735
5443 #: ../src/guestfs-actions.pod:7761 ../src/guestfs-actions.pod:7780
5444 #: ../src/guestfs-actions.pod:7874 ../src/guestfs-actions.pod:7893
5445 #: ../src/guestfs-actions.pod:7939 ../src/guestfs-actions.pod:7958
5446 msgid ""
5447 "Because of the message protocol, there is a transfer limit of somewhere "
5448 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5449 msgstr ""
5450
5451 #. type: =head2
5452 #: ../fish/guestfish-actions.pod:625
5453 msgid "checksum"
5454 msgstr ""
5455
5456 #. type: verbatim
5457 #: ../fish/guestfish-actions.pod:627
5458 #, no-wrap
5459 msgid ""
5460 " checksum csumtype path\n"
5461 "\n"
5462 msgstr ""
5463
5464 #. type: textblock
5465 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
5466 msgid ""
5467 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5468 msgstr ""
5469
5470 #. type: textblock
5471 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
5472 msgid ""
5473 "The type of checksum to compute is given by the C<csumtype> parameter which "
5474 "must have one of the following values:"
5475 msgstr ""
5476
5477 #. type: =item
5478 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
5479 msgid "C<crc>"
5480 msgstr ""
5481
5482 #. type: textblock
5483 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
5484 msgid ""
5485 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5486 "C<cksum> command."
5487 msgstr ""
5488
5489 #. type: =item
5490 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
5491 msgid "C<md5>"
5492 msgstr ""
5493
5494 #. type: textblock
5495 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
5496 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5497 msgstr ""
5498
5499 #. type: =item
5500 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
5501 msgid "C<sha1>"
5502 msgstr ""
5503
5504 #. type: textblock
5505 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
5506 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5507 msgstr ""
5508
5509 #. type: =item
5510 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
5511 msgid "C<sha224>"
5512 msgstr ""
5513
5514 #. type: textblock
5515 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
5516 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5517 msgstr ""
5518
5519 #. type: =item
5520 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
5521 msgid "C<sha256>"
5522 msgstr ""
5523
5524 #. type: textblock
5525 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
5526 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5527 msgstr ""
5528
5529 #. type: =item
5530 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
5531 msgid "C<sha384>"
5532 msgstr ""
5533
5534 #. type: textblock
5535 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
5536 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5537 msgstr ""
5538
5539 #. type: =item
5540 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
5541 msgid "C<sha512>"
5542 msgstr ""
5543
5544 #. type: textblock
5545 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
5546 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5547 msgstr ""
5548
5549 #. type: textblock
5550 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
5551 msgid "The checksum is returned as a printable string."
5552 msgstr ""
5553
5554 #. type: textblock
5555 #: ../fish/guestfish-actions.pod:670
5556 msgid "To get the checksum for a device, use L</checksum-device>."
5557 msgstr ""
5558
5559 #. type: textblock
5560 #: ../fish/guestfish-actions.pod:672
5561 msgid "To get the checksums for many files, use L</checksums-out>."
5562 msgstr ""
5563
5564 #. type: =head2
5565 #: ../fish/guestfish-actions.pod:674
5566 msgid "checksum-device"
5567 msgstr ""
5568
5569 #. type: verbatim
5570 #: ../fish/guestfish-actions.pod:676
5571 #, no-wrap
5572 msgid ""
5573 " checksum-device csumtype device\n"
5574 "\n"
5575 msgstr ""
5576
5577 #. type: textblock
5578 #: ../fish/guestfish-actions.pod:678
5579 msgid ""
5580 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5581 "device named C<device>.  For the types of checksums supported see the L</"
5582 "checksum> command."
5583 msgstr ""
5584
5585 #. type: =head2
5586 #: ../fish/guestfish-actions.pod:682
5587 msgid "checksums-out"
5588 msgstr ""
5589
5590 #. type: verbatim
5591 #: ../fish/guestfish-actions.pod:684
5592 #, no-wrap
5593 msgid ""
5594 " checksums-out csumtype directory (sumsfile|-)\n"
5595 "\n"
5596 msgstr ""
5597
5598 #. type: textblock
5599 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
5600 msgid ""
5601 "This command computes the checksums of all regular files in C<directory> and "
5602 "then emits a list of those checksums to the local output file C<sumsfile>."
5603 msgstr ""
5604
5605 #. type: textblock
5606 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
5607 msgid ""
5608 "This can be used for verifying the integrity of a virtual machine.  However "
5609 "to be properly secure you should pay attention to the output of the checksum "
5610 "command (it uses the ones from GNU coreutils).  In particular when the "
5611 "filename is not printable, coreutils uses a special backslash syntax.  For "
5612 "more information, see the GNU coreutils info file."
5613 msgstr ""
5614
5615 #. type: =head2
5616 #: ../fish/guestfish-actions.pod:700
5617 msgid "chmod"
5618 msgstr ""
5619
5620 #. type: verbatim
5621 #: ../fish/guestfish-actions.pod:702
5622 #, no-wrap
5623 msgid ""
5624 " chmod mode path\n"
5625 "\n"
5626 msgstr ""
5627
5628 #. type: textblock
5629 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
5630 msgid ""
5631 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5632 "supported."
5633 msgstr ""
5634
5635 #. type: textblock
5636 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
5637 msgid ""
5638 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5639 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5640 "C<700>."
5641 msgstr ""
5642
5643 #. type: textblock
5644 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3087
5645 #: ../fish/guestfish-actions.pod:3226 ../fish/guestfish-actions.pod:3236
5646 #: ../fish/guestfish-actions.pod:3246 ../src/guestfs-actions.pod:1064
5647 #: ../src/guestfs-actions.pod:4613 ../src/guestfs-actions.pod:4822
5648 #: ../src/guestfs-actions.pod:4841 ../src/guestfs-actions.pod:4860
5649 msgid "The mode actually set is affected by the umask."
5650 msgstr ""
5651
5652 #. type: =head2
5653 #: ../fish/guestfish-actions.pod:713
5654 msgid "chown"
5655 msgstr ""
5656
5657 #. type: verbatim
5658 #: ../fish/guestfish-actions.pod:715
5659 #, no-wrap
5660 msgid ""
5661 " chown owner group path\n"
5662 "\n"
5663 msgstr ""
5664
5665 #. type: textblock
5666 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
5667 msgid "Change the file owner to C<owner> and group to C<group>."
5668 msgstr ""
5669
5670 #. type: textblock
5671 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2522
5672 #: ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3684
5673 msgid ""
5674 "Only numeric uid and gid are supported.  If you want to use names, you will "
5675 "need to locate and parse the password file yourself (Augeas support makes "
5676 "this relatively easy)."
5677 msgstr ""
5678
5679 #. type: =head2
5680 #: ../fish/guestfish-actions.pod:723
5681 msgid "command"
5682 msgstr ""
5683
5684 #. type: verbatim
5685 #: ../fish/guestfish-actions.pod:725
5686 #, no-wrap
5687 msgid ""
5688 " command 'arguments ...'\n"
5689 "\n"
5690 msgstr ""
5691
5692 #. type: textblock
5693 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
5694 msgid ""
5695 "This call runs a command from the guest filesystem.  The filesystem must be "
5696 "mounted, and must contain a compatible operating system (ie. something "
5697 "Linux, with the same or compatible processor architecture)."
5698 msgstr ""
5699
5700 #. type: textblock
5701 #: ../fish/guestfish-actions.pod:732
5702 msgid ""
5703 "The single parameter is an argv-style list of arguments.  The first element "
5704 "is the name of the program to run.  Subsequent elements are parameters.  The "
5705 "list must be non-empty (ie. must contain a program name).  Note that the "
5706 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
5707 msgstr ""
5708
5709 #. type: textblock
5710 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
5711 msgid "The return value is anything printed to I<stdout> by the command."
5712 msgstr ""
5713
5714 #. type: textblock
5715 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
5716 msgid ""
5717 "If the command returns a non-zero exit status, then this function returns an "
5718 "error message.  The error message string is the content of I<stderr> from "
5719 "the command."
5720 msgstr ""
5721
5722 #. type: textblock
5723 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
5724 msgid ""
5725 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
5726 "bin>.  If you require a program from another location, you should provide "
5727 "the full path in the first parameter."
5728 msgstr ""
5729
5730 #. type: textblock
5731 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
5732 msgid ""
5733 "Shared libraries and data files required by the program must be available on "
5734 "filesystems which are mounted in the correct places.  It is the caller's "
5735 "responsibility to ensure all filesystems that are needed are mounted at the "
5736 "right locations."
5737 msgstr ""
5738
5739 #. type: =head2
5740 #: ../fish/guestfish-actions.pod:760
5741 msgid "command-lines"
5742 msgstr ""
5743
5744 #. type: verbatim
5745 #: ../fish/guestfish-actions.pod:762
5746 #, no-wrap
5747 msgid ""
5748 " command-lines 'arguments ...'\n"
5749 "\n"
5750 msgstr ""
5751
5752 #. type: textblock
5753 #: ../fish/guestfish-actions.pod:764
5754 msgid ""
5755 "This is the same as L</command>, but splits the result into a list of lines."
5756 msgstr ""
5757
5758 #. type: textblock
5759 #: ../fish/guestfish-actions.pod:767
5760 msgid "See also: L</sh-lines>"
5761 msgstr ""
5762
5763 #. type: =head2
5764 #: ../fish/guestfish-actions.pod:772
5765 msgid "config"
5766 msgstr ""
5767
5768 #. type: verbatim
5769 #: ../fish/guestfish-actions.pod:774
5770 #, no-wrap
5771 msgid ""
5772 " config qemuparam qemuvalue\n"
5773 "\n"
5774 msgstr ""
5775
5776 #. type: textblock
5777 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1159
5778 msgid ""
5779 "This can be used to add arbitrary qemu command line parameters of the form "
5780 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
5781 "setting some parameters which would interfere with parameters that we use."
5782 msgstr ""
5783
5784 #. type: textblock
5785 #: ../fish/guestfish-actions.pod:781 ../src/guestfs-actions.pod:1164
5786 msgid "The first character of C<param> string must be a C<-> (dash)."
5787 msgstr ""
5788
5789 #. type: textblock
5790 #: ../fish/guestfish-actions.pod:783 ../src/guestfs-actions.pod:1166
5791 msgid "C<value> can be NULL."
5792 msgstr ""
5793
5794 #. type: =head2
5795 #: ../fish/guestfish-actions.pod:785
5796 msgid "copy-size"
5797 msgstr ""
5798
5799 #. type: verbatim
5800 #: ../fish/guestfish-actions.pod:787
5801 #, no-wrap
5802 msgid ""
5803 " copy-size src dest size\n"
5804 "\n"
5805 msgstr ""
5806
5807 #. type: textblock
5808 #: ../fish/guestfish-actions.pod:789 ../src/guestfs-actions.pod:1180
5809 msgid ""
5810 "This command copies exactly C<size> bytes from one source device or file "
5811 "C<src> to another destination device or file C<dest>."
5812 msgstr ""
5813
5814 #. type: textblock
5815 #: ../fish/guestfish-actions.pod:792 ../src/guestfs-actions.pod:1183
5816 msgid ""
5817 "Note this will fail if the source is too short or if the destination is not "
5818 "large enough."
5819 msgstr ""
5820
5821 #. type: =head2
5822 #: ../fish/guestfish-actions.pod:795
5823 msgid "cp"
5824 msgstr ""
5825
5826 #. type: verbatim
5827 #: ../fish/guestfish-actions.pod:797
5828 #, no-wrap
5829 msgid ""
5830 " cp src dest\n"
5831 "\n"
5832 msgstr ""
5833
5834 #. type: textblock
5835 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1202
5836 msgid ""
5837 "This copies a file from C<src> to C<dest> where C<dest> is either a "
5838 "destination filename or destination directory."
5839 msgstr ""
5840
5841 #. type: =head2
5842 #: ../fish/guestfish-actions.pod:802
5843 msgid "cp-a"
5844 msgstr ""
5845
5846 #. type: verbatim
5847 #: ../fish/guestfish-actions.pod:804
5848 #, no-wrap
5849 msgid ""
5850 " cp-a src dest\n"
5851 "\n"
5852 msgstr ""
5853
5854 #. type: textblock
5855 #: ../fish/guestfish-actions.pod:806 ../src/guestfs-actions.pod:1216
5856 msgid ""
5857 "This copies a file or directory from C<src> to C<dest> recursively using the "
5858 "C<cp -a> command."
5859 msgstr ""
5860
5861 #. type: =head2
5862 #: ../fish/guestfish-actions.pod:809
5863 msgid "dd"
5864 msgstr ""
5865
5866 #. type: verbatim
5867 #: ../fish/guestfish-actions.pod:811
5868 #, no-wrap
5869 msgid ""
5870 " dd src dest\n"
5871 "\n"
5872 msgstr ""
5873
5874 #. type: textblock
5875 #: ../fish/guestfish-actions.pod:813 ../src/guestfs-actions.pod:1230
5876 msgid ""
5877 "This command copies from one source device or file C<src> to another "
5878 "destination device or file C<dest>.  Normally you would use this to copy to "
5879 "or from a device or partition, for example to duplicate a filesystem."
5880 msgstr ""
5881
5882 #. type: textblock
5883 #: ../fish/guestfish-actions.pod:818
5884 msgid ""
5885 "If the destination is a device, it must be as large or larger than the "
5886 "source file or device, otherwise the copy will fail.  This command cannot do "
5887 "partial copies (see L</copy-size>)."
5888 msgstr ""
5889
5890 #. type: =head2
5891 #: ../fish/guestfish-actions.pod:822
5892 msgid "df"
5893 msgstr ""
5894
5895 #. type: verbatim
5896 #: ../fish/guestfish-actions.pod:824
5897 #, no-wrap
5898 msgid ""
5899 " df\n"
5900 "\n"
5901 msgstr ""
5902
5903 #. type: textblock
5904 #: ../fish/guestfish-actions.pod:826 ../src/guestfs-actions.pod:1248
5905 msgid "This command runs the C<df> command to report disk space used."
5906 msgstr ""
5907
5908 #. type: textblock
5909 #: ../fish/guestfish-actions.pod:828 ../fish/guestfish-actions.pod:839
5910 msgid ""
5911 "This command is mostly useful for interactive sessions.  It is I<not> "
5912 "intended that you try to parse the output string.  Use L</statvfs> from "
5913 "programs."
5914 msgstr ""
5915
5916 #. type: =head2
5917 #: ../fish/guestfish-actions.pod:832
5918 msgid "df-h"
5919 msgstr ""
5920
5921 #. type: verbatim
5922 #: ../fish/guestfish-actions.pod:834
5923 #, no-wrap
5924 msgid ""
5925 " df-h\n"
5926 "\n"
5927 msgstr ""
5928
5929 #. type: textblock
5930 #: ../fish/guestfish-actions.pod:836 ../src/guestfs-actions.pod:1264
5931 msgid ""
5932 "This command runs the C<df -h> command to report disk space used in human-"
5933 "readable format."
5934 msgstr ""
5935
5936 #. type: =head2
5937 #: ../fish/guestfish-actions.pod:843
5938 msgid "dmesg"
5939 msgstr ""
5940
5941 #. type: verbatim
5942 #: ../fish/guestfish-actions.pod:845
5943 #, no-wrap
5944 msgid ""
5945 " dmesg\n"
5946 "\n"
5947 msgstr ""
5948
5949 #. type: textblock
5950 #: ../fish/guestfish-actions.pod:847 ../src/guestfs-actions.pod:1281
5951 msgid ""
5952 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
5953 "This is sometimes useful for extended debugging of problems."
5954 msgstr ""
5955
5956 #. type: textblock
5957 #: ../fish/guestfish-actions.pod:851
5958 msgid ""
5959 "Another way to get the same information is to enable verbose messages with "
5960 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
5961 "before running the program."
5962 msgstr ""
5963
5964 #. type: =head2
5965 #: ../fish/guestfish-actions.pod:856
5966 msgid "download"
5967 msgstr ""
5968
5969 #. type: verbatim
5970 #: ../fish/guestfish-actions.pod:858
5971 #, no-wrap
5972 msgid ""
5973 " download remotefilename (filename|-)\n"
5974 "\n"
5975 msgstr ""
5976
5977 #. type: textblock
5978 #: ../fish/guestfish-actions.pod:860 ../fish/guestfish-actions.pod:873
5979 #: ../src/guestfs-actions.pod:1302 ../src/guestfs-actions.pod:1327
5980 msgid ""
5981 "Download file C<remotefilename> and save it as C<filename> on the local "
5982 "machine."
5983 msgstr ""
5984
5985 #. type: textblock
5986 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:4830
5987 #: ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:7259
5988 msgid "C<filename> can also be a named pipe."
5989 msgstr ""
5990
5991 #. type: textblock
5992 #: ../fish/guestfish-actions.pod:865
5993 msgid "See also L</upload>, L</cat>."
5994 msgstr ""
5995
5996 #. type: =head2
5997 #: ../fish/guestfish-actions.pod:869
5998 msgid "download-offset"
5999 msgstr ""
6000
6001 #. type: verbatim
6002 #: ../fish/guestfish-actions.pod:871
6003 #, no-wrap
6004 msgid ""
6005 " download-offset remotefilename (filename|-) offset size\n"
6006 "\n"
6007 msgstr ""
6008
6009 #. type: textblock
6010 #: ../fish/guestfish-actions.pod:876 ../src/guestfs-actions.pod:1330
6011 msgid ""
6012 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6013 "region must be within the file or device)."
6014 msgstr ""
6015
6016 #. type: textblock
6017 #: ../fish/guestfish-actions.pod:879
6018 msgid ""
6019 "Note that there is no limit on the amount of data that can be downloaded "
6020 "with this call, unlike with L</pread>, and this call always reads the full "
6021 "amount unless an error occurs."
6022 msgstr ""
6023
6024 #. type: textblock
6025 #: ../fish/guestfish-actions.pod:884
6026 msgid "See also L</download>, L</pread>."
6027 msgstr ""
6028
6029 #. type: =head2
6030 #: ../fish/guestfish-actions.pod:888
6031 msgid "drop-caches"
6032 msgstr ""
6033
6034 #. type: verbatim
6035 #: ../fish/guestfish-actions.pod:890
6036 #, no-wrap
6037 msgid ""
6038 " drop-caches whattodrop\n"
6039 "\n"
6040 msgstr ""
6041
6042 #. type: textblock
6043 #: ../fish/guestfish-actions.pod:892 ../src/guestfs-actions.pod:1355
6044 msgid ""
6045 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6046 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6047 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6048 msgstr ""
6049
6050 #. type: textblock
6051 #: ../fish/guestfish-actions.pod:897 ../src/guestfs-actions.pod:1360
6052 msgid "Setting C<whattodrop> to 3 should drop everything."
6053 msgstr ""
6054
6055 #. type: textblock
6056 #: ../fish/guestfish-actions.pod:899 ../src/guestfs-actions.pod:1362
6057 msgid ""
6058 "This automatically calls L<sync(2)> before the operation, so that the "
6059 "maximum guest memory is freed."
6060 msgstr ""
6061
6062 #. type: =head2
6063 #: ../fish/guestfish-actions.pod:902
6064 msgid "du"
6065 msgstr ""
6066
6067 #. type: verbatim
6068 #: ../fish/guestfish-actions.pod:904
6069 #, no-wrap
6070 msgid ""
6071 " du path\n"
6072 "\n"
6073 msgstr ""
6074
6075 #. type: textblock
6076 #: ../fish/guestfish-actions.pod:906 ../src/guestfs-actions.pod:1375
6077 msgid ""
6078 "This command runs the C<du -s> command to estimate file space usage for "
6079 "C<path>."
6080 msgstr ""
6081
6082 #. type: textblock
6083 #: ../fish/guestfish-actions.pod:909 ../src/guestfs-actions.pod:1378
6084 msgid ""
6085 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6086 "estimate includes the contents of the directory and all subdirectories "
6087 "(recursively)."
6088 msgstr ""
6089
6090 #. type: textblock
6091 #: ../fish/guestfish-actions.pod:913 ../src/guestfs-actions.pod:1382
6092 msgid ""
6093 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6094 msgstr ""
6095
6096 #. type: =head2
6097 #: ../fish/guestfish-actions.pod:916
6098 msgid "e2fsck-f"
6099 msgstr ""
6100
6101 #. type: verbatim
6102 #: ../fish/guestfish-actions.pod:918
6103 #, no-wrap
6104 msgid ""
6105 " e2fsck-f device\n"
6106 "\n"
6107 msgstr ""
6108
6109 #. type: textblock
6110 #: ../fish/guestfish-actions.pod:920 ../src/guestfs-actions.pod:1400
6111 msgid ""
6112 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6113 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
6114 "clean (I<-f>)."
6115 msgstr ""
6116
6117 #. type: textblock
6118 #: ../fish/guestfish-actions.pod:924
6119 msgid ""
6120 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
6121 "should use L</fsck>."
6122 msgstr ""
6123
6124 #. type: =head2
6125 #: ../fish/guestfish-actions.pod:927
6126 msgid "echo-daemon"
6127 msgstr ""
6128
6129 #. type: verbatim
6130 #: ../fish/guestfish-actions.pod:929
6131 #, no-wrap
6132 msgid ""
6133 " echo-daemon 'words ...'\n"
6134 "\n"
6135 msgstr ""
6136
6137 #. type: textblock
6138 #: ../fish/guestfish-actions.pod:931 ../src/guestfs-actions.pod:1417
6139 msgid ""
6140 "This command concatenates the list of C<words> passed with single spaces "
6141 "between them and returns the resulting string."
6142 msgstr ""
6143
6144 #. type: textblock
6145 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1420
6146 msgid "You can use this command to test the connection through to the daemon."
6147 msgstr ""
6148
6149 #. type: textblock
6150 #: ../fish/guestfish-actions.pod:936
6151 msgid "See also L</ping-daemon>."
6152 msgstr ""
6153
6154 #. type: =head2
6155 #: ../fish/guestfish-actions.pod:938
6156 msgid "egrep"
6157 msgstr ""
6158
6159 #. type: verbatim
6160 #: ../fish/guestfish-actions.pod:940
6161 #, no-wrap
6162 msgid ""
6163 " egrep regex path\n"
6164 "\n"
6165 msgstr ""
6166
6167 #. type: textblock
6168 #: ../fish/guestfish-actions.pod:942 ../src/guestfs-actions.pod:1436
6169 msgid ""
6170 "This calls the external C<egrep> program and returns the matching lines."
6171 msgstr ""
6172
6173 #. type: =head2
6174 #: ../fish/guestfish-actions.pod:948
6175 msgid "egrepi"
6176 msgstr ""
6177
6178 #. type: verbatim
6179 #: ../fish/guestfish-actions.pod:950
6180 #, no-wrap
6181 msgid ""
6182 " egrepi regex path\n"
6183 "\n"
6184 msgstr ""
6185
6186 #. type: textblock
6187 #: ../fish/guestfish-actions.pod:952 ../src/guestfs-actions.pod:1455
6188 msgid ""
6189 "This calls the external C<egrep -i> program and returns the matching lines."
6190 msgstr ""
6191
6192 #. type: =head2
6193 #: ../fish/guestfish-actions.pod:958
6194 msgid "equal"
6195 msgstr ""
6196
6197 #. type: verbatim
6198 #: ../fish/guestfish-actions.pod:960
6199 #, no-wrap
6200 msgid ""
6201 " equal file1 file2\n"
6202 "\n"
6203 msgstr ""
6204
6205 #. type: textblock
6206 #: ../fish/guestfish-actions.pod:962 ../src/guestfs-actions.pod:1474
6207 msgid ""
6208 "This compares the two files C<file1> and C<file2> and returns true if their "
6209 "content is exactly equal, or false otherwise."
6210 msgstr ""
6211
6212 #. type: textblock
6213 #: ../fish/guestfish-actions.pod:965 ../src/guestfs-actions.pod:1477
6214 msgid "The external L<cmp(1)> program is used for the comparison."
6215 msgstr ""
6216
6217 #. type: =head2
6218 #: ../fish/guestfish-actions.pod:967
6219 msgid "exists"
6220 msgstr ""
6221
6222 #. type: verbatim
6223 #: ../fish/guestfish-actions.pod:969
6224 #, no-wrap
6225 msgid ""
6226 " exists path\n"
6227 "\n"
6228 msgstr ""
6229
6230 #. type: textblock
6231 #: ../fish/guestfish-actions.pod:971 ../src/guestfs-actions.pod:1489
6232 msgid ""
6233 "This returns C<true> if and only if there is a file, directory (or anything) "
6234 "with the given C<path> name."
6235 msgstr ""
6236
6237 #. type: textblock
6238 #: ../fish/guestfish-actions.pod:974
6239 msgid "See also L</is-file>, L</is-dir>, L</stat>."
6240 msgstr ""
6241
6242 #. type: =head2
6243 #: ../fish/guestfish-actions.pod:976
6244 msgid "fallocate"
6245 msgstr ""
6246
6247 #. type: verbatim
6248 #: ../fish/guestfish-actions.pod:978
6249 #, no-wrap
6250 msgid ""
6251 " fallocate path len\n"
6252 "\n"
6253 msgstr ""
6254
6255 #. type: textblock
6256 #: ../fish/guestfish-actions.pod:980 ../fish/guestfish-actions.pod:999
6257 #: ../src/guestfs-actions.pod:1505 ../src/guestfs-actions.pod:1531
6258 msgid ""
6259 "This command preallocates a file (containing zero bytes) named C<path> of "
6260 "size C<len> bytes.  If the file exists already, it is overwritten."
6261 msgstr ""
6262
6263 #. type: textblock
6264 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1509
6265 msgid ""
6266 "Do not confuse this with the guestfish-specific C<alloc> command which "
6267 "allocates a file in the host and attaches it as a device."
6268 msgstr ""
6269
6270 #. type: textblock
6271 #: ../fish/guestfish-actions.pod:988
6272 msgid ""
6273 "This function is deprecated.  In new code, use the L</fallocate64> call "
6274 "instead."
6275 msgstr ""
6276
6277 #. type: =head2
6278 #: ../fish/guestfish-actions.pod:995
6279 msgid "fallocate64"
6280 msgstr ""
6281
6282 #. type: verbatim
6283 #: ../fish/guestfish-actions.pod:997
6284 #, no-wrap
6285 msgid ""
6286 " fallocate64 path len\n"
6287 "\n"
6288 msgstr ""
6289
6290 #. type: textblock
6291 #: ../fish/guestfish-actions.pod:1003
6292 msgid ""
6293 "Note that this call allocates disk blocks for the file.  To create a sparse "
6294 "file use L</truncate-size> instead."
6295 msgstr ""
6296
6297 #. type: textblock
6298 #: ../fish/guestfish-actions.pod:1006
6299 msgid ""
6300 "The deprecated call L</fallocate> does the same, but owing to an oversight "
6301 "it only allowed 30 bit lengths to be specified, effectively limiting the "
6302 "maximum size of files created through that call to 1GB."
6303 msgstr ""
6304
6305 #. type: textblock
6306 #: ../fish/guestfish-actions.pod:1011 ../src/guestfs-actions.pod:1543
6307 msgid ""
6308 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6309 "commands which create a file in the host and attach it as a device."
6310 msgstr ""
6311
6312 #. type: =head2
6313 #: ../fish/guestfish-actions.pod:1015
6314 msgid "fgrep"
6315 msgstr ""
6316
6317 #. type: verbatim
6318 #: ../fish/guestfish-actions.pod:1017
6319 #, no-wrap
6320 msgid ""
6321 " fgrep pattern path\n"
6322 "\n"
6323 msgstr ""
6324
6325 #. type: textblock
6326 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1558
6327 msgid ""
6328 "This calls the external C<fgrep> program and returns the matching lines."
6329 msgstr ""
6330
6331 #. type: =head2
6332 #: ../fish/guestfish-actions.pod:1025
6333 msgid "fgrepi"
6334 msgstr ""
6335
6336 #. type: verbatim
6337 #: ../fish/guestfish-actions.pod:1027
6338 #, no-wrap
6339 msgid ""
6340 " fgrepi pattern path\n"
6341 "\n"
6342 msgstr ""
6343
6344 #. type: textblock
6345 #: ../fish/guestfish-actions.pod:1029 ../src/guestfs-actions.pod:1577
6346 msgid ""
6347 "This calls the external C<fgrep -i> program and returns the matching lines."
6348 msgstr ""
6349
6350 #. type: =head2
6351 #: ../fish/guestfish-actions.pod:1035
6352 msgid "file"
6353 msgstr ""
6354
6355 #. type: verbatim
6356 #: ../fish/guestfish-actions.pod:1037
6357 #, no-wrap
6358 msgid ""
6359 " file path\n"
6360 "\n"
6361 msgstr ""
6362
6363 #. type: textblock
6364 #: ../fish/guestfish-actions.pod:1039 ../src/guestfs-actions.pod:1595
6365 msgid ""
6366 "This call uses the standard L<file(1)> command to determine the type or "
6367 "contents of the file."
6368 msgstr ""
6369
6370 #. type: textblock
6371 #: ../fish/guestfish-actions.pod:1042 ../src/guestfs-actions.pod:1598
6372 msgid ""
6373 "This call will also transparently look inside various types of compressed "
6374 "file."
6375 msgstr ""
6376
6377 #. type: textblock
6378 #: ../fish/guestfish-actions.pod:1045 ../src/guestfs-actions.pod:1601
6379 msgid ""
6380 "The exact command which runs is C<file -zb path>.  Note in particular that "
6381 "the filename is not prepended to the output (the I<-b> option)."
6382 msgstr ""
6383
6384 #. type: textblock
6385 #: ../fish/guestfish-actions.pod:1049 ../src/guestfs-actions.pod:1605
6386 msgid ""
6387 "The output depends on the output of the underlying L<file(1)> command and it "
6388 "can change in future in ways beyond our control.  In other words, the output "
6389 "is not guaranteed by the ABI."
6390 msgstr ""
6391
6392 #. type: textblock
6393 #: ../fish/guestfish-actions.pod:1053
6394 msgid ""
6395 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
6396 "(etc), L</is-zero>."
6397 msgstr ""
6398
6399 #. type: =head2
6400 #: ../fish/guestfish-actions.pod:1056
6401 msgid "file-architecture"
6402 msgstr ""
6403
6404 #. type: verbatim
6405 #: ../fish/guestfish-actions.pod:1058
6406 #, no-wrap
6407 msgid ""
6408 " file-architecture filename\n"
6409 "\n"
6410 msgstr ""
6411
6412 #. type: textblock
6413 #: ../fish/guestfish-actions.pod:1060 ../src/guestfs-actions.pod:1623
6414 msgid ""
6415 "This detects the architecture of the binary C<filename>, and returns it if "
6416 "known."
6417 msgstr ""
6418
6419 #. type: textblock
6420 #: ../fish/guestfish-actions.pod:1063 ../src/guestfs-actions.pod:1626
6421 msgid "Currently defined architectures are:"
6422 msgstr ""
6423
6424 #. type: =item
6425 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1630
6426 msgid "\"i386\""
6427 msgstr ""
6428
6429 #. type: textblock
6430 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1632
6431 msgid ""
6432 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6433 "irrespective of the precise processor requirements of the binary."
6434 msgstr ""
6435
6436 #. type: =item
6437 #: ../fish/guestfish-actions.pod:1072 ../src/guestfs-actions.pod:1635
6438 msgid "\"x86_64\""
6439 msgstr ""
6440
6441 #. type: textblock
6442 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1637
6443 msgid "64 bit x86-64."
6444 msgstr ""
6445
6446 #. type: =item
6447 #: ../fish/guestfish-actions.pod:1076 ../src/guestfs-actions.pod:1639
6448 msgid "\"sparc\""
6449 msgstr ""
6450
6451 #. type: textblock
6452 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1641
6453 msgid "32 bit SPARC."
6454 msgstr ""
6455
6456 #. type: =item
6457 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1643
6458 msgid "\"sparc64\""
6459 msgstr ""
6460
6461 #. type: textblock
6462 #: ../fish/guestfish-actions.pod:1082 ../src/guestfs-actions.pod:1645
6463 msgid "64 bit SPARC V9 and above."
6464 msgstr ""
6465
6466 #. type: =item
6467 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1647
6468 msgid "\"ia64\""
6469 msgstr ""
6470
6471 #. type: textblock
6472 #: ../fish/guestfish-actions.pod:1086 ../src/guestfs-actions.pod:1649
6473 msgid "Intel Itanium."
6474 msgstr ""
6475
6476 #. type: =item
6477 #: ../fish/guestfish-actions.pod:1088 ../src/guestfs-actions.pod:1651
6478 msgid "\"ppc\""
6479 msgstr ""
6480
6481 #. type: textblock
6482 #: ../fish/guestfish-actions.pod:1090 ../src/guestfs-actions.pod:1653
6483 msgid "32 bit Power PC."
6484 msgstr ""
6485
6486 #. type: =item
6487 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1655
6488 msgid "\"ppc64\""
6489 msgstr ""
6490
6491 #. type: textblock
6492 #: ../fish/guestfish-actions.pod:1094 ../src/guestfs-actions.pod:1657
6493 msgid "64 bit Power PC."
6494 msgstr ""
6495
6496 #. type: textblock
6497 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1661
6498 msgid "Libguestfs may return other architecture strings in future."
6499 msgstr ""
6500
6501 #. type: textblock
6502 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1663
6503 msgid "The function works on at least the following types of files:"
6504 msgstr ""
6505
6506 #. type: textblock
6507 #: ../fish/guestfish-actions.pod:1106 ../src/guestfs-actions.pod:1669
6508 msgid "many types of Un*x and Linux binary"
6509 msgstr ""
6510
6511 #. type: textblock
6512 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1673
6513 msgid "many types of Un*x and Linux shared library"
6514 msgstr ""
6515
6516 #. type: textblock
6517 #: ../fish/guestfish-actions.pod:1114 ../src/guestfs-actions.pod:1677
6518 msgid "Windows Win32 and Win64 binaries"
6519 msgstr ""
6520
6521 #. type: textblock
6522 #: ../fish/guestfish-actions.pod:1118 ../src/guestfs-actions.pod:1681
6523 msgid "Windows Win32 and Win64 DLLs"
6524 msgstr ""
6525
6526 #. type: textblock
6527 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1683
6528 msgid "Win32 binaries and DLLs return C<i386>."
6529 msgstr ""
6530
6531 #. type: textblock
6532 #: ../fish/guestfish-actions.pod:1122 ../src/guestfs-actions.pod:1685
6533 msgid "Win64 binaries and DLLs return C<x86_64>."
6534 msgstr ""
6535
6536 #. type: textblock
6537 #: ../fish/guestfish-actions.pod:1126 ../src/guestfs-actions.pod:1689
6538 msgid "Linux kernel modules"
6539 msgstr ""
6540
6541 #. type: textblock
6542 #: ../fish/guestfish-actions.pod:1130 ../src/guestfs-actions.pod:1693
6543 msgid "Linux new-style initrd images"
6544 msgstr ""
6545
6546 #. type: textblock
6547 #: ../fish/guestfish-actions.pod:1134 ../src/guestfs-actions.pod:1697
6548 msgid "some non-x86 Linux vmlinuz kernels"
6549 msgstr ""
6550
6551 #. type: textblock
6552 #: ../fish/guestfish-actions.pod:1138 ../src/guestfs-actions.pod:1701
6553 msgid "What it can't do currently:"
6554 msgstr ""
6555
6556 #. type: textblock
6557 #: ../fish/guestfish-actions.pod:1144 ../src/guestfs-actions.pod:1707
6558 msgid "static libraries (libfoo.a)"
6559 msgstr ""
6560
6561 #. type: textblock
6562 #: ../fish/guestfish-actions.pod:1148 ../src/guestfs-actions.pod:1711
6563 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6564 msgstr ""
6565
6566 #. type: textblock
6567 #: ../fish/guestfish-actions.pod:1152 ../src/guestfs-actions.pod:1715
6568 msgid "x86 Linux vmlinuz kernels"
6569 msgstr ""
6570
6571 #. type: textblock
6572 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1717
6573 msgid ""
6574 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6575 "compressed code, and are horribly hard to unpack.  If you want to find the "
6576 "architecture of a kernel, use the architecture of the associated initrd or "
6577 "kernel module(s) instead."
6578 msgstr ""
6579
6580 #. type: =head2
6581 #: ../fish/guestfish-actions.pod:1161
6582 msgid "filesize"
6583 msgstr ""
6584
6585 #. type: verbatim
6586 #: ../fish/guestfish-actions.pod:1163
6587 #, no-wrap
6588 msgid ""
6589 " filesize file\n"
6590 "\n"
6591 msgstr ""
6592
6593 #. type: textblock
6594 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1735
6595 msgid "This command returns the size of C<file> in bytes."
6596 msgstr ""
6597
6598 #. type: textblock
6599 #: ../fish/guestfish-actions.pod:1167
6600 msgid ""
6601 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
6602 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
6603 msgstr ""
6604
6605 #. type: =head2
6606 #: ../fish/guestfish-actions.pod:1171
6607 msgid "fill"
6608 msgstr ""
6609
6610 #. type: verbatim
6611 #: ../fish/guestfish-actions.pod:1173
6612 #, no-wrap
6613 msgid ""
6614 " fill c len path\n"
6615 "\n"
6616 msgstr ""
6617
6618 #. type: textblock
6619 #: ../fish/guestfish-actions.pod:1175 ../src/guestfs-actions.pod:1753
6620 msgid ""
6621 "This command creates a new file called C<path>.  The initial content of the "
6622 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
6623 "[0..255]>."
6624 msgstr ""
6625
6626 #. type: textblock
6627 #: ../fish/guestfish-actions.pod:1179
6628 msgid ""
6629 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6630 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
6631 "L</fill-pattern>."
6632 msgstr ""
6633
6634 #. type: =head2
6635 #: ../fish/guestfish-actions.pod:1184
6636 msgid "fill-pattern"
6637 msgstr ""
6638
6639 #. type: verbatim
6640 #: ../fish/guestfish-actions.pod:1186
6641 #, no-wrap
6642 msgid ""
6643 " fill-pattern pattern len path\n"
6644 "\n"
6645 msgstr ""
6646
6647 #. type: textblock
6648 #: ../fish/guestfish-actions.pod:1188
6649 msgid ""
6650 "This function is like L</fill> except that it creates a new file of length "
6651 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
6652 "is truncated if necessary to ensure the length of the file is exactly C<len> "
6653 "bytes."
6654 msgstr ""
6655
6656 #. type: =head2
6657 #: ../fish/guestfish-actions.pod:1193
6658 msgid "find"
6659 msgstr ""
6660
6661 #. type: verbatim
6662 #: ../fish/guestfish-actions.pod:1195
6663 #, no-wrap
6664 msgid ""
6665 " find directory\n"
6666 "\n"
6667 msgstr ""
6668
6669 #. type: textblock
6670 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:1799
6671 msgid ""
6672 "This command lists out all files and directories, recursively, starting at "
6673 "C<directory>.  It is essentially equivalent to running the shell command "
6674 "C<find directory -print> but some post-processing happens on the output, "
6675 "described below."
6676 msgstr ""
6677
6678 #. type: textblock
6679 #: ../fish/guestfish-actions.pod:1202 ../src/guestfs-actions.pod:1804
6680 msgid ""
6681 "This returns a list of strings I<without any prefix>.  Thus if the directory "
6682 "structure was:"
6683 msgstr ""
6684
6685 #. type: verbatim
6686 #: ../fish/guestfish-actions.pod:1205 ../src/guestfs-actions.pod:1807
6687 #, no-wrap
6688 msgid ""
6689 " /tmp/a\n"
6690 " /tmp/b\n"
6691 " /tmp/c/d\n"
6692 "\n"
6693 msgstr ""
6694
6695 #. type: textblock
6696 #: ../fish/guestfish-actions.pod:1209
6697 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
6698 msgstr ""
6699
6700 #. type: verbatim
6701 #: ../fish/guestfish-actions.pod:1212 ../src/guestfs-actions.pod:1814
6702 #, no-wrap
6703 msgid ""
6704 " a\n"
6705 " b\n"
6706 " c\n"
6707 " c/d\n"
6708 "\n"
6709 msgstr ""
6710
6711 #. type: textblock
6712 #: ../fish/guestfish-actions.pod:1217 ../src/guestfs-actions.pod:1819
6713 msgid "If C<directory> is not a directory, then this command returns an error."
6714 msgstr ""
6715
6716 #. type: textblock
6717 #: ../fish/guestfish-actions.pod:1220 ../src/guestfs-actions.pod:1822
6718 msgid "The returned list is sorted."
6719 msgstr ""
6720
6721 #. type: textblock
6722 #: ../fish/guestfish-actions.pod:1222
6723 msgid "See also L</find0>."
6724 msgstr ""
6725
6726 #. type: =head2
6727 #: ../fish/guestfish-actions.pod:1227
6728 msgid "find0"
6729 msgstr ""
6730
6731 #. type: verbatim
6732 #: ../fish/guestfish-actions.pod:1229
6733 #, no-wrap
6734 msgid ""
6735 " find0 directory (files|-)\n"
6736 "\n"
6737 msgstr ""
6738
6739 #. type: textblock
6740 #: ../fish/guestfish-actions.pod:1231 ../src/guestfs-actions.pod:1842
6741 msgid ""
6742 "This command lists out all files and directories, recursively, starting at "
6743 "C<directory>, placing the resulting list in the external file called "
6744 "C<files>."
6745 msgstr ""
6746
6747 #. type: textblock
6748 #: ../fish/guestfish-actions.pod:1235
6749 msgid ""
6750 "This command works the same way as L</find> with the following exceptions:"
6751 msgstr ""
6752
6753 #. type: textblock
6754 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:1853
6755 msgid "The resulting list is written to an external file."
6756 msgstr ""
6757
6758 #. type: textblock
6759 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:1857
6760 msgid ""
6761 "Items (filenames) in the result are separated by C<\\0> characters.  See "
6762 "L<find(1)> option I<-print0>."
6763 msgstr ""
6764
6765 #. type: textblock
6766 #: ../fish/guestfish-actions.pod:1251 ../src/guestfs-actions.pod:1862
6767 msgid "This command is not limited in the number of names that it can return."
6768 msgstr ""
6769
6770 #. type: textblock
6771 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:1867
6772 msgid "The result list is not sorted."
6773 msgstr ""
6774
6775 #. type: =head2
6776 #: ../fish/guestfish-actions.pod:1262
6777 msgid "findfs-label"
6778 msgstr ""
6779
6780 #. type: verbatim
6781 #: ../fish/guestfish-actions.pod:1264
6782 #, no-wrap
6783 msgid ""
6784 " findfs-label label\n"
6785 "\n"
6786 msgstr ""
6787
6788 #. type: textblock
6789 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1881
6790 msgid ""
6791 "This command searches the filesystems and returns the one which has the "
6792 "given label.  An error is returned if no such filesystem can be found."
6793 msgstr ""
6794
6795 #. type: textblock
6796 #: ../fish/guestfish-actions.pod:1270
6797 msgid "To find the label of a filesystem, use L</vfs-label>."
6798 msgstr ""
6799
6800 #. type: =head2
6801 #: ../fish/guestfish-actions.pod:1272
6802 msgid "findfs-uuid"
6803 msgstr ""
6804
6805 #. type: verbatim
6806 #: ../fish/guestfish-actions.pod:1274
6807 #, no-wrap
6808 msgid ""
6809 " findfs-uuid uuid\n"
6810 "\n"
6811 msgstr ""
6812
6813 #. type: textblock
6814 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:1898
6815 msgid ""
6816 "This command searches the filesystems and returns the one which has the "
6817 "given UUID.  An error is returned if no such filesystem can be found."
6818 msgstr ""
6819
6820 #. type: textblock
6821 #: ../fish/guestfish-actions.pod:1280
6822 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
6823 msgstr ""
6824
6825 #. type: =head2
6826 #: ../fish/guestfish-actions.pod:1282
6827 msgid "fsck"
6828 msgstr ""
6829
6830 #. type: verbatim
6831 #: ../fish/guestfish-actions.pod:1284
6832 #, no-wrap
6833 msgid ""
6834 " fsck fstype device\n"
6835 "\n"
6836 msgstr ""
6837
6838 #. type: textblock
6839 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1916
6840 msgid ""
6841 "This runs the filesystem checker (fsck) on C<device> which should have "
6842 "filesystem type C<fstype>."
6843 msgstr ""
6844
6845 #. type: textblock
6846 #: ../fish/guestfish-actions.pod:1289 ../src/guestfs-actions.pod:1919
6847 msgid ""
6848 "The returned integer is the status.  See L<fsck(8)> for the list of status "
6849 "codes from C<fsck>."
6850 msgstr ""
6851
6852 #. type: textblock
6853 #: ../fish/guestfish-actions.pod:1298 ../src/guestfs-actions.pod:1928
6854 msgid "Multiple status codes can be summed together."
6855 msgstr ""
6856
6857 #. type: textblock
6858 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:1932
6859 msgid ""
6860 "A non-zero return code can mean \"success\", for example if errors have been "
6861 "corrected on the filesystem."
6862 msgstr ""
6863
6864 #. type: textblock
6865 #: ../fish/guestfish-actions.pod:1307 ../src/guestfs-actions.pod:1937
6866 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
6867 msgstr ""
6868
6869 #. type: textblock
6870 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:1942
6871 msgid ""
6872 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
6873 msgstr ""
6874
6875 #. type: =head2
6876 #: ../fish/guestfish-actions.pod:1314
6877 msgid "get-append"
6878 msgstr ""
6879
6880 #. type: verbatim
6881 #: ../fish/guestfish-actions.pod:1316
6882 #, no-wrap
6883 msgid ""
6884 " get-append\n"
6885 "\n"
6886 msgstr ""
6887
6888 #. type: textblock
6889 #: ../fish/guestfish-actions.pod:1318 ../src/guestfs-actions.pod:1953
6890 msgid ""
6891 "Return the additional kernel options which are added to the guest kernel "
6892 "command line."
6893 msgstr ""
6894
6895 #. type: textblock
6896 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:1956
6897 msgid "If C<NULL> then no options are added."
6898 msgstr ""
6899
6900 #. type: =head2
6901 #: ../fish/guestfish-actions.pod:1323
6902 msgid "get-attach-method"
6903 msgstr ""
6904
6905 #. type: verbatim
6906 #: ../fish/guestfish-actions.pod:1325
6907 #, no-wrap
6908 msgid ""
6909 " get-attach-method\n"
6910 "\n"
6911 msgstr ""
6912
6913 #. type: textblock
6914 #: ../fish/guestfish-actions.pod:1327
6915 msgid "Return the current attach method.  See L</set-attach-method>."
6916 msgstr ""
6917
6918 #. type: =head2
6919 #: ../fish/guestfish-actions.pod:1329
6920 msgid "get-autosync"
6921 msgstr ""
6922
6923 #. type: verbatim
6924 #: ../fish/guestfish-actions.pod:1331
6925 #, no-wrap
6926 msgid ""
6927 " get-autosync\n"
6928 "\n"
6929 msgstr ""
6930
6931 #. type: textblock
6932 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:1981
6933 msgid "Get the autosync flag."
6934 msgstr ""
6935
6936 #. type: =head2
6937 #: ../fish/guestfish-actions.pod:1335
6938 msgid "get-direct"
6939 msgstr ""
6940
6941 #. type: verbatim
6942 #: ../fish/guestfish-actions.pod:1337
6943 #, no-wrap
6944 msgid ""
6945 " get-direct\n"
6946 "\n"
6947 msgstr ""
6948
6949 #. type: textblock
6950 #: ../fish/guestfish-actions.pod:1339 ../src/guestfs-actions.pod:1992
6951 msgid "Return the direct appliance mode flag."
6952 msgstr ""
6953
6954 #. type: =head2
6955 #: ../fish/guestfish-actions.pod:1341
6956 msgid "get-e2label"
6957 msgstr ""
6958
6959 #. type: verbatim
6960 #: ../fish/guestfish-actions.pod:1343
6961 #, no-wrap
6962 msgid ""
6963 " get-e2label device\n"
6964 "\n"
6965 msgstr ""
6966
6967 #. type: textblock
6968 #: ../fish/guestfish-actions.pod:1345 ../src/guestfs-actions.pod:2004
6969 msgid ""
6970 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
6971 msgstr ""
6972
6973 #. type: textblock
6974 #: ../fish/guestfish-actions.pod:1348
6975 msgid ""
6976 "This function is deprecated.  In new code, use the L</vfs_label> call "
6977 "instead."
6978 msgstr ""
6979
6980 #. type: =head2
6981 #: ../fish/guestfish-actions.pod:1355
6982 msgid "get-e2uuid"
6983 msgstr ""
6984
6985 #. type: verbatim
6986 #: ../fish/guestfish-actions.pod:1357
6987 #, no-wrap
6988 msgid ""
6989 " get-e2uuid device\n"
6990 "\n"
6991 msgstr ""
6992
6993 #. type: textblock
6994 #: ../fish/guestfish-actions.pod:1359 ../src/guestfs-actions.pod:2025
6995 msgid ""
6996 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
6997 msgstr ""
6998
6999 #. type: textblock
7000 #: ../fish/guestfish-actions.pod:1362
7001 msgid ""
7002 "This function is deprecated.  In new code, use the L</vfs_uuid> call instead."
7003 msgstr ""
7004
7005 #. type: =head2
7006 #: ../fish/guestfish-actions.pod:1369
7007 msgid "get-memsize"
7008 msgstr ""
7009
7010 #. type: verbatim
7011 #: ../fish/guestfish-actions.pod:1371
7012 #, no-wrap
7013 msgid ""
7014 " get-memsize\n"
7015 "\n"
7016 msgstr ""
7017
7018 #. type: textblock
7019 #: ../fish/guestfish-actions.pod:1373 ../src/guestfs-actions.pod:2045
7020 msgid ""
7021 "This gets the memory size in megabytes allocated to the qemu subprocess."
7022 msgstr ""
7023
7024 #. type: textblock
7025 #: ../fish/guestfish-actions.pod:1376
7026 msgid ""
7027 "If L</set-memsize> was not called on this handle, and if "
7028 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7029 "value for memsize."
7030 msgstr ""
7031
7032 #. type: textblock
7033 #: ../fish/guestfish-actions.pod:1380 ../fish/guestfish-actions.pod:1437
7034 #: ../fish/guestfish-actions.pod:4190 ../fish/guestfish-actions.pod:4292
7035 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2144
7036 #: ../src/guestfs-actions.pod:6320 ../src/guestfs-actions.pod:6446
7037 msgid ""
7038 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7039 msgstr ""
7040
7041 #. type: =head2
7042 #: ../fish/guestfish-actions.pod:1383
7043 msgid "get-network"
7044 msgstr ""
7045
7046 #. type: verbatim
7047 #: ../fish/guestfish-actions.pod:1385
7048 #, no-wrap
7049 msgid ""
7050 " get-network\n"
7051 "\n"
7052 msgstr ""
7053
7054 #. type: textblock
7055 #: ../fish/guestfish-actions.pod:1387 ../src/guestfs-actions.pod:2064
7056 msgid "This returns the enable network flag."
7057 msgstr ""
7058
7059 #. type: =head2
7060 #: ../fish/guestfish-actions.pod:1389
7061 msgid "get-path"
7062 msgstr ""
7063
7064 #. type: verbatim
7065 #: ../fish/guestfish-actions.pod:1391
7066 #, no-wrap
7067 msgid ""
7068 " get-path\n"
7069 "\n"
7070 msgstr ""
7071
7072 #. type: textblock
7073 #: ../fish/guestfish-actions.pod:1393 ../src/guestfs-actions.pod:2075
7074 msgid "Return the current search path."
7075 msgstr ""
7076
7077 #. type: textblock
7078 #: ../fish/guestfish-actions.pod:1395 ../src/guestfs-actions.pod:2077
7079 msgid ""
7080 "This is always non-NULL.  If it wasn't set already, then this will return "
7081 "the default path."
7082 msgstr ""
7083
7084 #. type: =head2
7085 #: ../fish/guestfish-actions.pod:1398
7086 msgid "get-pgroup"
7087 msgstr ""
7088
7089 #. type: verbatim
7090 #: ../fish/guestfish-actions.pod:1400
7091 #, no-wrap
7092 msgid ""
7093 " get-pgroup\n"
7094 "\n"
7095 msgstr ""
7096
7097 #. type: textblock
7098 #: ../fish/guestfish-actions.pod:1402 ../src/guestfs-actions.pod:2090
7099 msgid "This returns the process group flag."
7100 msgstr ""
7101
7102 #. type: =head2
7103 #: ../fish/guestfish-actions.pod:1404
7104 msgid "get-pid"
7105 msgstr ""
7106
7107 #. type: =head2
7108 #: ../fish/guestfish-actions.pod:1406
7109 msgid "pid"
7110 msgstr ""
7111
7112 #. type: verbatim
7113 #: ../fish/guestfish-actions.pod:1408
7114 #, no-wrap
7115 msgid ""
7116 " get-pid\n"
7117 "\n"
7118 msgstr ""
7119
7120 #. type: textblock
7121 #: ../fish/guestfish-actions.pod:1410 ../src/guestfs-actions.pod:2101
7122 msgid ""
7123 "Return the process ID of the qemu subprocess.  If there is no qemu "
7124 "subprocess, then this will return an error."
7125 msgstr ""
7126
7127 #. type: textblock
7128 #: ../fish/guestfish-actions.pod:1413 ../src/guestfs-actions.pod:2104
7129 msgid "This is an internal call used for debugging and testing."
7130 msgstr ""
7131
7132 #. type: =head2
7133 #: ../fish/guestfish-actions.pod:1415
7134 msgid "get-qemu"
7135 msgstr ""
7136
7137 #. type: verbatim
7138 #: ../fish/guestfish-actions.pod:1417
7139 #, no-wrap
7140 msgid ""
7141 " get-qemu\n"
7142 "\n"
7143 msgstr ""
7144
7145 #. type: textblock
7146 #: ../fish/guestfish-actions.pod:1419 ../src/guestfs-actions.pod:2115
7147 msgid "Return the current qemu binary."
7148 msgstr ""
7149
7150 #. type: textblock
7151 #: ../fish/guestfish-actions.pod:1421 ../src/guestfs-actions.pod:2117
7152 msgid ""
7153 "This is always non-NULL.  If it wasn't set already, then this will return "
7154 "the default qemu binary name."
7155 msgstr ""
7156
7157 #. type: =head2
7158 #: ../fish/guestfish-actions.pod:1424
7159 msgid "get-recovery-proc"
7160 msgstr ""
7161
7162 #. type: verbatim
7163 #: ../fish/guestfish-actions.pod:1426
7164 #, no-wrap
7165 msgid ""
7166 " get-recovery-proc\n"
7167 "\n"
7168 msgstr ""
7169
7170 #. type: textblock
7171 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2130
7172 msgid "Return the recovery process enabled flag."
7173 msgstr ""
7174
7175 #. type: =head2
7176 #: ../fish/guestfish-actions.pod:1430
7177 msgid "get-selinux"
7178 msgstr ""
7179
7180 #. type: verbatim
7181 #: ../fish/guestfish-actions.pod:1432
7182 #, no-wrap
7183 msgid ""
7184 " get-selinux\n"
7185 "\n"
7186 msgstr ""
7187
7188 #. type: textblock
7189 #: ../fish/guestfish-actions.pod:1434
7190 msgid ""
7191 "This returns the current setting of the selinux flag which is passed to the "
7192 "appliance at boot time.  See L</set-selinux>."
7193 msgstr ""
7194
7195 #. type: =head2
7196 #: ../fish/guestfish-actions.pod:1440
7197 msgid "get-state"
7198 msgstr ""
7199
7200 #. type: verbatim
7201 #: ../fish/guestfish-actions.pod:1442
7202 #, no-wrap
7203 msgid ""
7204 " get-state\n"
7205 "\n"
7206 msgstr ""
7207
7208 #. type: textblock
7209 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2156
7210 msgid ""
7211 "This returns the current state as an opaque integer.  This is only useful "
7212 "for printing debug and internal error messages."
7213 msgstr ""
7214
7215 #. type: textblock
7216 #: ../fish/guestfish-actions.pod:1447 ../fish/guestfish-actions.pod:2389
7217 #: ../fish/guestfish-actions.pod:2407 ../fish/guestfish-actions.pod:2445
7218 #: ../fish/guestfish-actions.pod:2461 ../src/guestfs-actions.pod:2159
7219 #: ../src/guestfs-actions.pod:3461 ../src/guestfs-actions.pod:3490
7220 #: ../src/guestfs-actions.pod:3551 ../src/guestfs-actions.pod:3578
7221 msgid "For more information on states, see L<guestfs(3)>."
7222 msgstr ""
7223
7224 #. type: =head2
7225 #: ../fish/guestfish-actions.pod:1449
7226 msgid "get-trace"
7227 msgstr ""
7228
7229 #. type: verbatim
7230 #: ../fish/guestfish-actions.pod:1451
7231 #, no-wrap
7232 msgid ""
7233 " get-trace\n"
7234 "\n"
7235 msgstr ""
7236
7237 #. type: textblock
7238 #: ../fish/guestfish-actions.pod:1453 ../src/guestfs-actions.pod:2170
7239 msgid "Return the command trace flag."
7240 msgstr ""
7241
7242 #. type: =head2
7243 #: ../fish/guestfish-actions.pod:1455
7244 msgid "get-umask"
7245 msgstr ""
7246
7247 #. type: verbatim
7248 #: ../fish/guestfish-actions.pod:1457
7249 #, no-wrap
7250 msgid ""
7251 " get-umask\n"
7252 "\n"
7253 msgstr ""
7254
7255 #. type: textblock
7256 #: ../fish/guestfish-actions.pod:1459
7257 msgid ""
7258 "Return the current umask.  By default the umask is C<022> unless it has been "
7259 "set by calling L</umask>."
7260 msgstr ""
7261
7262 #. type: =head2
7263 #: ../fish/guestfish-actions.pod:1462
7264 msgid "get-verbose"
7265 msgstr ""
7266
7267 #. type: verbatim
7268 #: ../fish/guestfish-actions.pod:1464
7269 #, no-wrap
7270 msgid ""
7271 " get-verbose\n"
7272 "\n"
7273 msgstr ""
7274
7275 #. type: textblock
7276 #: ../fish/guestfish-actions.pod:1466 ../src/guestfs-actions.pod:2193
7277 msgid "This returns the verbose messages flag."
7278 msgstr ""
7279
7280 #. type: =head2
7281 #: ../fish/guestfish-actions.pod:1468
7282 msgid "getcon"
7283 msgstr ""
7284
7285 #. type: verbatim
7286 #: ../fish/guestfish-actions.pod:1470
7287 #, no-wrap
7288 msgid ""
7289 " getcon\n"
7290 "\n"
7291 msgstr ""
7292
7293 #. type: textblock
7294 #: ../fish/guestfish-actions.pod:1472 ../src/guestfs-actions.pod:2204
7295 msgid "This gets the SELinux security context of the daemon."
7296 msgstr ""
7297
7298 #. type: textblock
7299 #: ../fish/guestfish-actions.pod:1474
7300 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
7301 msgstr ""
7302
7303 #. type: =head2
7304 #: ../fish/guestfish-actions.pod:1477
7305 msgid "getxattr"
7306 msgstr ""
7307
7308 #. type: verbatim
7309 #: ../fish/guestfish-actions.pod:1479
7310 #, no-wrap
7311 msgid ""
7312 " getxattr path name\n"
7313 "\n"
7314 msgstr ""
7315
7316 #. type: textblock
7317 #: ../fish/guestfish-actions.pod:1481
7318 msgid ""
7319 "Get a single extended attribute from file C<path> named C<name>.  This call "
7320 "follows symlinks.  If you want to lookup an extended attribute for the "
7321 "symlink itself, use L</lgetxattr>."
7322 msgstr ""
7323
7324 #. type: textblock
7325 #: ../fish/guestfish-actions.pod:1485 ../fish/guestfish-actions.pod:2534
7326 msgid ""
7327 "Normally it is better to get all extended attributes from a file in one go "
7328 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
7329 "buggy and do not provide a way to list out attributes.  For these "
7330 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
7331 "attributes you want in advance and call this function."
7332 msgstr ""
7333
7334 #. type: textblock
7335 #: ../fish/guestfish-actions.pod:1492 ../fish/guestfish-actions.pod:2541
7336 #: ../src/guestfs-actions.pod:2233 ../src/guestfs-actions.pod:3711
7337 msgid ""
7338 "Extended attribute values are blobs of binary data.  If there is no extended "
7339 "attribute named C<name>, this returns an error."
7340 msgstr ""
7341
7342 #. type: textblock
7343 #: ../fish/guestfish-actions.pod:1495
7344 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7345 msgstr ""
7346
7347 #. type: =head2
7348 #: ../fish/guestfish-actions.pod:1497
7349 msgid "getxattrs"
7350 msgstr ""
7351
7352 #. type: verbatim
7353 #: ../fish/guestfish-actions.pod:1499
7354 #, no-wrap
7355 msgid ""
7356 " getxattrs path\n"
7357 "\n"
7358 msgstr ""
7359
7360 #. type: textblock
7361 #: ../fish/guestfish-actions.pod:1501 ../src/guestfs-actions.pod:2250
7362 msgid ""
7363 "This call lists the extended attributes of the file or directory C<path>."
7364 msgstr ""
7365
7366 #. type: textblock
7367 #: ../fish/guestfish-actions.pod:1504 ../src/guestfs-actions.pod:2253
7368 msgid ""
7369 "At the system call level, this is a combination of the L<listxattr(2)> and "
7370 "L<getxattr(2)> calls."
7371 msgstr ""
7372
7373 #. type: textblock
7374 #: ../fish/guestfish-actions.pod:1507
7375 msgid "See also: L</lgetxattrs>, L<attr(5)>."
7376 msgstr ""
7377
7378 #. type: =head2
7379 #: ../fish/guestfish-actions.pod:1509
7380 msgid "glob-expand"
7381 msgstr ""
7382
7383 #. type: verbatim
7384 #: ../fish/guestfish-actions.pod:1511
7385 #, no-wrap
7386 msgid ""
7387 " glob-expand pattern\n"
7388 "\n"
7389 msgstr ""
7390
7391 #. type: textblock
7392 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2270
7393 msgid ""
7394 "This command searches for all the pathnames matching C<pattern> according to "
7395 "the wildcard expansion rules used by the shell."
7396 msgstr ""
7397
7398 #. type: textblock
7399 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2274
7400 msgid ""
7401 "If no paths match, then this returns an empty list (note: not an error)."
7402 msgstr ""
7403
7404 #. type: textblock
7405 #: ../fish/guestfish-actions.pod:1520 ../src/guestfs-actions.pod:2277
7406 msgid ""
7407 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
7408 "GLOB_BRACE>.  See that manual page for more details."
7409 msgstr ""
7410
7411 #. type: =head2
7412 #: ../fish/guestfish-actions.pod:1524
7413 msgid "grep"
7414 msgstr ""
7415
7416 #. type: verbatim
7417 #: ../fish/guestfish-actions.pod:1526
7418 #, no-wrap
7419 msgid ""
7420 " grep regex path\n"
7421 "\n"
7422 msgstr ""
7423
7424 #. type: textblock
7425 #: ../fish/guestfish-actions.pod:1528 ../src/guestfs-actions.pod:2294
7426 msgid "This calls the external C<grep> program and returns the matching lines."
7427 msgstr ""
7428
7429 #. type: =head2
7430 #: ../fish/guestfish-actions.pod:1534
7431 msgid "grepi"
7432 msgstr ""
7433
7434 #. type: verbatim
7435 #: ../fish/guestfish-actions.pod:1536
7436 #, no-wrap
7437 msgid ""
7438 " grepi regex path\n"
7439 "\n"
7440 msgstr ""
7441
7442 #. type: textblock
7443 #: ../fish/guestfish-actions.pod:1538 ../src/guestfs-actions.pod:2313
7444 msgid ""
7445 "This calls the external C<grep -i> program and returns the matching lines."
7446 msgstr ""
7447
7448 #. type: =head2
7449 #: ../fish/guestfish-actions.pod:1544
7450 msgid "grub-install"
7451 msgstr ""
7452
7453 #. type: verbatim
7454 #: ../fish/guestfish-actions.pod:1546
7455 #, no-wrap
7456 msgid ""
7457 " grub-install root device\n"
7458 "\n"
7459 msgstr ""
7460
7461 #. type: textblock
7462 #: ../fish/guestfish-actions.pod:1548 ../src/guestfs-actions.pod:2332
7463 msgid ""
7464 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
7465 "with the root directory being C<root>."
7466 msgstr ""
7467
7468 #. type: textblock
7469 #: ../fish/guestfish-actions.pod:1557 ../src/guestfs-actions.pod:2341
7470 msgid ""
7471 "There is currently no way in the API to install grub2, which is used by most "
7472 "modern Linux guests.  It is possible to run the grub2 command from the "
7473 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
7474 msgstr ""
7475
7476 #. type: textblock
7477 #: ../fish/guestfish-actions.pod:1564 ../src/guestfs-actions.pod:2348
7478 msgid ""
7479 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
7480 "compatible with itself, so this only works in rather narrow circumstances.  "
7481 "Careful testing with each guest version is advisable."
7482 msgstr ""
7483
7484 #. type: textblock
7485 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2355
7486 msgid ""
7487 "If grub-install reports the error \"No suitable drive was found in the "
7488 "generated device map.\" it may be that you need to create a C</boot/grub/"
7489 "device.map> file first that contains the mapping between grub device names "
7490 "and Linux device names.  It is usually sufficient to create a file "
7491 "containing:"
7492 msgstr ""
7493
7494 #. type: verbatim
7495 #: ../fish/guestfish-actions.pod:1578 ../src/guestfs-actions.pod:2362
7496 #, no-wrap
7497 msgid ""
7498 " (hd0) /dev/vda\n"
7499 "\n"
7500 msgstr ""
7501
7502 #. type: textblock
7503 #: ../fish/guestfish-actions.pod:1580 ../src/guestfs-actions.pod:2364
7504 msgid "replacing C</dev/vda> with the name of the installation device."
7505 msgstr ""
7506
7507 #. type: =head2
7508 #: ../fish/guestfish-actions.pod:1584
7509 msgid "head"
7510 msgstr ""
7511
7512 #. type: verbatim
7513 #: ../fish/guestfish-actions.pod:1586
7514 #, no-wrap
7515 msgid ""
7516 " head path\n"
7517 "\n"
7518 msgstr ""
7519
7520 #. type: textblock
7521 #: ../fish/guestfish-actions.pod:1588 ../src/guestfs-actions.pod:2378
7522 msgid ""
7523 "This command returns up to the first 10 lines of a file as a list of strings."
7524 msgstr ""
7525
7526 #. type: =head2
7527 #: ../fish/guestfish-actions.pod:1594
7528 msgid "head-n"
7529 msgstr ""
7530
7531 #. type: verbatim
7532 #: ../fish/guestfish-actions.pod:1596
7533 #, no-wrap
7534 msgid ""
7535 " head-n nrlines path\n"
7536 "\n"
7537 msgstr ""
7538
7539 #. type: textblock
7540 #: ../fish/guestfish-actions.pod:1598 ../src/guestfs-actions.pod:2397
7541 msgid ""
7542 "If the parameter C<nrlines> is a positive number, this returns the first "
7543 "C<nrlines> lines of the file C<path>."
7544 msgstr ""
7545
7546 #. type: textblock
7547 #: ../fish/guestfish-actions.pod:1601 ../src/guestfs-actions.pod:2400
7548 msgid ""
7549 "If the parameter C<nrlines> is a negative number, this returns lines from "
7550 "the file C<path>, excluding the last C<nrlines> lines."
7551 msgstr ""
7552
7553 #. type: textblock
7554 #: ../fish/guestfish-actions.pod:1604 ../fish/guestfish-actions.pod:4670
7555 #: ../src/guestfs-actions.pod:2403 ../src/guestfs-actions.pod:7018
7556 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7557 msgstr ""
7558
7559 #. type: =head2
7560 #: ../fish/guestfish-actions.pod:1609
7561 msgid "hexdump"
7562 msgstr ""
7563
7564 #. type: verbatim
7565 #: ../fish/guestfish-actions.pod:1611
7566 #, no-wrap
7567 msgid ""
7568 " hexdump path\n"
7569 "\n"
7570 msgstr ""
7571
7572 #. type: textblock
7573 #: ../fish/guestfish-actions.pod:1613 ../src/guestfs-actions.pod:2420
7574 msgid ""
7575 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
7576 "readable, canonical hex dump of the file."
7577 msgstr ""
7578
7579 #. type: =head2
7580 #: ../fish/guestfish-actions.pod:1619
7581 msgid "initrd-cat"
7582 msgstr ""
7583
7584 #. type: verbatim
7585 #: ../fish/guestfish-actions.pod:1621
7586 #, no-wrap
7587 msgid ""
7588 " initrd-cat initrdpath filename\n"
7589 "\n"
7590 msgstr ""
7591
7592 #. type: textblock
7593 #: ../fish/guestfish-actions.pod:1623 ../src/guestfs-actions.pod:2439
7594 msgid ""
7595 "This command unpacks the file C<filename> from the initrd file called "
7596 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7597 "character."
7598 msgstr ""
7599
7600 #. type: textblock
7601 #: ../fish/guestfish-actions.pod:1627 ../src/guestfs-actions.pod:2443
7602 msgid ""
7603 "For example, in guestfish you could use the following command to examine the "
7604 "boot script (usually called C</init>)  contained in a Linux initrd or "
7605 "initramfs image:"
7606 msgstr ""
7607
7608 #. type: verbatim
7609 #: ../fish/guestfish-actions.pod:1631 ../src/guestfs-actions.pod:2447
7610 #, no-wrap
7611 msgid ""
7612 " initrd-cat /boot/initrd-<version>.img init\n"
7613 "\n"
7614 msgstr ""
7615
7616 #. type: textblock
7617 #: ../fish/guestfish-actions.pod:1633
7618 msgid "See also L</initrd-list>."
7619 msgstr ""
7620
7621 #. type: =head2
7622 #: ../fish/guestfish-actions.pod:1638
7623 msgid "initrd-list"
7624 msgstr ""
7625
7626 #. type: verbatim
7627 #: ../fish/guestfish-actions.pod:1640
7628 #, no-wrap
7629 msgid ""
7630 " initrd-list path\n"
7631 "\n"
7632 msgstr ""
7633
7634 #. type: textblock
7635 #: ../fish/guestfish-actions.pod:1642 ../src/guestfs-actions.pod:2466
7636 msgid "This command lists out files contained in an initrd."
7637 msgstr ""
7638
7639 #. type: textblock
7640 #: ../fish/guestfish-actions.pod:1644 ../src/guestfs-actions.pod:2468
7641 msgid ""
7642 "The files are listed without any initial C</> character.  The files are "
7643 "listed in the order they appear (not necessarily alphabetical).  Directory "
7644 "names are listed as separate items."
7645 msgstr ""
7646
7647 #. type: textblock
7648 #: ../fish/guestfish-actions.pod:1648 ../src/guestfs-actions.pod:2472
7649 msgid ""
7650 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
7651 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
7652 "files)."
7653 msgstr ""
7654
7655 #. type: =head2
7656 #: ../fish/guestfish-actions.pod:1652
7657 msgid "inotify-add-watch"
7658 msgstr ""
7659
7660 #. type: verbatim
7661 #: ../fish/guestfish-actions.pod:1654
7662 #, no-wrap
7663 msgid ""
7664 " inotify-add-watch path mask\n"
7665 "\n"
7666 msgstr ""
7667
7668 #. type: textblock
7669 #: ../fish/guestfish-actions.pod:1656 ../src/guestfs-actions.pod:2489
7670 msgid "Watch C<path> for the events listed in C<mask>."
7671 msgstr ""
7672
7673 #. type: textblock
7674 #: ../fish/guestfish-actions.pod:1658 ../src/guestfs-actions.pod:2491
7675 msgid ""
7676 "Note that if C<path> is a directory then events within that directory are "
7677 "watched, but this does I<not> happen recursively (in subdirectories)."
7678 msgstr ""
7679
7680 #. type: textblock
7681 #: ../fish/guestfish-actions.pod:1662 ../src/guestfs-actions.pod:2495
7682 msgid ""
7683 "Note for non-C or non-Linux callers: the inotify events are defined by the "
7684 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
7685 msgstr ""
7686
7687 #. type: =head2
7688 #: ../fish/guestfish-actions.pod:1666
7689 msgid "inotify-close"
7690 msgstr ""
7691
7692 #. type: verbatim
7693 #: ../fish/guestfish-actions.pod:1668
7694 #, no-wrap
7695 msgid ""
7696 " inotify-close\n"
7697 "\n"
7698 msgstr ""
7699
7700 #. type: textblock
7701 #: ../fish/guestfish-actions.pod:1670 ../src/guestfs-actions.pod:2508
7702 msgid ""
7703 "This closes the inotify handle which was previously opened by inotify_init.  "
7704 "It removes all watches, throws away any pending events, and deallocates all "
7705 "resources."
7706 msgstr ""
7707
7708 #. type: =head2
7709 #: ../fish/guestfish-actions.pod:1674
7710 msgid "inotify-files"
7711 msgstr ""
7712
7713 #. type: verbatim
7714 #: ../fish/guestfish-actions.pod:1676
7715 #, no-wrap
7716 msgid ""
7717 " inotify-files\n"
7718 "\n"
7719 msgstr ""
7720
7721 #. type: textblock
7722 #: ../fish/guestfish-actions.pod:1678
7723 msgid ""
7724 "This function is a helpful wrapper around L</inotify-read> which just "
7725 "returns a list of pathnames of objects that were touched.  The returned "
7726 "pathnames are sorted and deduplicated."
7727 msgstr ""
7728
7729 #. type: =head2
7730 #: ../fish/guestfish-actions.pod:1682
7731 msgid "inotify-init"
7732 msgstr ""
7733
7734 #. type: verbatim
7735 #: ../fish/guestfish-actions.pod:1684
7736 #, no-wrap
7737 msgid ""
7738 " inotify-init maxevents\n"
7739 "\n"
7740 msgstr ""
7741
7742 #. type: textblock
7743 #: ../fish/guestfish-actions.pod:1686 ../src/guestfs-actions.pod:2537
7744 msgid ""
7745 "This command creates a new inotify handle.  The inotify subsystem can be "
7746 "used to notify events which happen to objects in the guest filesystem."
7747 msgstr ""
7748
7749 #. type: textblock
7750 #: ../fish/guestfish-actions.pod:1690
7751 msgid ""
7752 "C<maxevents> is the maximum number of events which will be queued up between "
7753 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
7754 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
7755 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
7756 "but records the fact that it threw them away by setting a flag "
7757 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
7758 msgstr ""
7759
7760 #. type: textblock
7761 #: ../fish/guestfish-actions.pod:1700
7762 msgid ""
7763 "Before any events are generated, you have to add some watches to the "
7764 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
7765 "L</inotify-watch-all>."
7766 msgstr ""
7767
7768 #. type: textblock
7769 #: ../fish/guestfish-actions.pod:1706
7770 msgid ""
7771 "Queued up events should be read periodically by calling L</inotify-read> (or "
7772 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
7773 "If you don't read the events out often enough then you risk the internal "
7774 "queue overflowing."
7775 msgstr ""
7776
7777 #. type: textblock
7778 #: ../fish/guestfish-actions.pod:1713
7779 msgid ""
7780 "The handle should be closed after use by calling L</inotify-close>.  This "
7781 "also removes any watches automatically."
7782 msgstr ""
7783
7784 #. type: textblock
7785 #: ../fish/guestfish-actions.pod:1717 ../src/guestfs-actions.pod:2568
7786 msgid ""
7787 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
7788 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
7789 "that there is one global inotify handle per libguestfs instance."
7790 msgstr ""
7791
7792 #. type: =head2
7793 #: ../fish/guestfish-actions.pod:1722
7794 msgid "inotify-read"
7795 msgstr ""
7796
7797 #. type: verbatim
7798 #: ../fish/guestfish-actions.pod:1724
7799 #, no-wrap
7800 msgid ""
7801 " inotify-read\n"
7802 "\n"
7803 msgstr ""
7804
7805 #. type: textblock
7806 #: ../fish/guestfish-actions.pod:1726 ../src/guestfs-actions.pod:2582
7807 msgid ""
7808 "Return the complete queue of events that have happened since the previous "
7809 "read call."
7810 msgstr ""
7811
7812 #. type: textblock
7813 #: ../fish/guestfish-actions.pod:1729 ../src/guestfs-actions.pod:2585
7814 msgid "If no events have happened, this returns an empty list."
7815 msgstr ""
7816
7817 #. type: textblock
7818 #: ../fish/guestfish-actions.pod:1731 ../src/guestfs-actions.pod:2587
7819 msgid ""
7820 "I<Note>: In order to make sure that all events have been read, you must call "
7821 "this function repeatedly until it returns an empty list.  The reason is that "
7822 "the call will read events up to the maximum appliance-to-host message size "
7823 "and leave remaining events in the queue."
7824 msgstr ""
7825
7826 #. type: =head2
7827 #: ../fish/guestfish-actions.pod:1737
7828 msgid "inotify-rm-watch"
7829 msgstr ""
7830
7831 #. type: verbatim
7832 #: ../fish/guestfish-actions.pod:1739
7833 #, no-wrap
7834 msgid ""
7835 " inotify-rm-watch wd\n"
7836 "\n"
7837 msgstr ""
7838
7839 #. type: textblock
7840 #: ../fish/guestfish-actions.pod:1741
7841 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
7842 msgstr ""
7843
7844 #. type: =head2
7845 #: ../fish/guestfish-actions.pod:1744
7846 msgid "inspect-get-arch"
7847 msgstr ""
7848
7849 #. type: verbatim
7850 #: ../fish/guestfish-actions.pod:1746
7851 #, no-wrap
7852 msgid ""
7853 " inspect-get-arch root\n"
7854 "\n"
7855 msgstr ""
7856
7857 #. type: textblock
7858 #: ../fish/guestfish-actions.pod:1748
7859 msgid ""
7860 "This returns the architecture of the inspected operating system.  The "
7861 "possible return values are listed under L</file-architecture>."
7862 msgstr ""
7863
7864 #. type: textblock
7865 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2622
7866 msgid ""
7867 "If the architecture could not be determined, then the string C<unknown> is "
7868 "returned."
7869 msgstr ""
7870
7871 #. type: textblock
7872 #: ../fish/guestfish-actions.pod:1755 ../fish/guestfish-actions.pod:1838
7873 #: ../fish/guestfish-actions.pod:1917 ../fish/guestfish-actions.pod:1929
7874 #: ../fish/guestfish-actions.pod:2013 ../fish/guestfish-actions.pod:2074
7875 #: ../fish/guestfish-actions.pod:2095 ../fish/guestfish-actions.pod:2109
7876 #: ../fish/guestfish-actions.pod:2149 ../fish/guestfish-actions.pod:2181
7877 #: ../fish/guestfish-actions.pod:2194 ../fish/guestfish-actions.pod:2207
7878 #: ../fish/guestfish-actions.pod:2217 ../fish/guestfish-actions.pod:2227
7879 #: ../fish/guestfish-actions.pod:2239 ../fish/guestfish-actions.pod:2335
7880 #: ../fish/guestfish-actions.pod:2369 ../src/guestfs-actions.pod:2625
7881 #: ../src/guestfs-actions.pod:2715 ../src/guestfs-actions.pod:2819
7882 #: ../src/guestfs-actions.pod:2838 ../src/guestfs-actions.pod:2969
7883 #: ../src/guestfs-actions.pod:3052 ../src/guestfs-actions.pod:3080
7884 #: ../src/guestfs-actions.pod:3101 ../src/guestfs-actions.pod:3154
7885 #: ../src/guestfs-actions.pod:3194 ../src/guestfs-actions.pod:3214
7886 #: ../src/guestfs-actions.pod:3234 ../src/guestfs-actions.pod:3251
7887 #: ../src/guestfs-actions.pod:3267 ../src/guestfs-actions.pod:3285
7888 #: ../src/guestfs-actions.pod:3387 ../src/guestfs-actions.pod:3428
7889 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
7890 msgstr ""
7891
7892 #. type: =head2
7893 #: ../fish/guestfish-actions.pod:1757
7894 msgid "inspect-get-distro"
7895 msgstr ""
7896
7897 #. type: verbatim
7898 #: ../fish/guestfish-actions.pod:1759
7899 #, no-wrap
7900 msgid ""
7901 " inspect-get-distro root\n"
7902 "\n"
7903 msgstr ""
7904
7905 #. type: textblock
7906 #: ../fish/guestfish-actions.pod:1761 ../src/guestfs-actions.pod:2638
7907 msgid ""
7908 "This returns the distro (distribution) of the inspected operating system."
7909 msgstr ""
7910
7911 #. type: textblock
7912 #: ../fish/guestfish-actions.pod:1764 ../src/guestfs-actions.pod:2641
7913 msgid "Currently defined distros are:"
7914 msgstr ""
7915
7916 #. type: =item
7917 #: ../fish/guestfish-actions.pod:1768 ../src/guestfs-actions.pod:2645
7918 msgid "\"archlinux\""
7919 msgstr ""
7920
7921 #. type: textblock
7922 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2647
7923 msgid "Arch Linux."
7924 msgstr ""
7925
7926 #. type: =item
7927 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2649
7928 msgid "\"centos\""
7929 msgstr ""
7930
7931 #. type: textblock
7932 #: ../fish/guestfish-actions.pod:1774 ../src/guestfs-actions.pod:2651
7933 msgid "CentOS."
7934 msgstr ""
7935
7936 #. type: =item
7937 #: ../fish/guestfish-actions.pod:1776 ../src/guestfs-actions.pod:2653
7938 msgid "\"debian\""
7939 msgstr ""
7940
7941 #. type: textblock
7942 #: ../fish/guestfish-actions.pod:1778 ../src/guestfs-actions.pod:2655
7943 msgid "Debian."
7944 msgstr ""
7945
7946 #. type: =item
7947 #: ../fish/guestfish-actions.pod:1780 ../src/guestfs-actions.pod:2657
7948 msgid "\"fedora\""
7949 msgstr ""
7950
7951 #. type: textblock
7952 #: ../fish/guestfish-actions.pod:1782 ../src/guestfs-actions.pod:2659
7953 msgid "Fedora."
7954 msgstr ""
7955
7956 #. type: =item
7957 #: ../fish/guestfish-actions.pod:1784 ../src/guestfs-actions.pod:2661
7958 msgid "\"gentoo\""
7959 msgstr ""
7960
7961 #. type: textblock
7962 #: ../fish/guestfish-actions.pod:1786 ../src/guestfs-actions.pod:2663
7963 msgid "Gentoo."
7964 msgstr ""
7965
7966 #. type: =item
7967 #: ../fish/guestfish-actions.pod:1788 ../src/guestfs-actions.pod:2665
7968 msgid "\"linuxmint\""
7969 msgstr ""
7970
7971 #. type: textblock
7972 #: ../fish/guestfish-actions.pod:1790 ../src/guestfs-actions.pod:2667
7973 msgid "Linux Mint."
7974 msgstr ""
7975
7976 #. type: =item
7977 #: ../fish/guestfish-actions.pod:1792 ../src/guestfs-actions.pod:2669
7978 msgid "\"mandriva\""
7979 msgstr ""
7980
7981 #. type: textblock
7982 #: ../fish/guestfish-actions.pod:1794 ../src/guestfs-actions.pod:2671
7983 msgid "Mandriva."
7984 msgstr ""
7985
7986 #. type: =item
7987 #: ../fish/guestfish-actions.pod:1796 ../src/guestfs-actions.pod:2673
7988 msgid "\"meego\""
7989 msgstr ""
7990
7991 #. type: textblock
7992 #: ../fish/guestfish-actions.pod:1798 ../src/guestfs-actions.pod:2675
7993 msgid "MeeGo."
7994 msgstr ""
7995
7996 #. type: =item
7997 #: ../fish/guestfish-actions.pod:1800 ../src/guestfs-actions.pod:2677
7998 msgid "\"pardus\""
7999 msgstr ""
8000
8001 #. type: textblock
8002 #: ../fish/guestfish-actions.pod:1802 ../src/guestfs-actions.pod:2679
8003 msgid "Pardus."
8004 msgstr ""
8005
8006 #. type: =item
8007 #: ../fish/guestfish-actions.pod:1804 ../src/guestfs-actions.pod:2681
8008 msgid "\"redhat-based\""
8009 msgstr ""
8010
8011 #. type: textblock
8012 #: ../fish/guestfish-actions.pod:1806 ../src/guestfs-actions.pod:2683
8013 msgid "Some Red Hat-derived distro."
8014 msgstr ""
8015
8016 #. type: =item
8017 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2685
8018 msgid "\"rhel\""
8019 msgstr ""
8020
8021 #. type: textblock
8022 #: ../fish/guestfish-actions.pod:1810 ../src/guestfs-actions.pod:2687
8023 msgid "Red Hat Enterprise Linux."
8024 msgstr ""
8025
8026 #. type: =item
8027 #: ../fish/guestfish-actions.pod:1812 ../src/guestfs-actions.pod:2689
8028 msgid "\"scientificlinux\""
8029 msgstr ""
8030
8031 #. type: textblock
8032 #: ../fish/guestfish-actions.pod:1814 ../src/guestfs-actions.pod:2691
8033 msgid "Scientific Linux."
8034 msgstr ""
8035
8036 #. type: =item
8037 #: ../fish/guestfish-actions.pod:1816 ../src/guestfs-actions.pod:2693
8038 msgid "\"slackware\""
8039 msgstr ""
8040
8041 #. type: textblock
8042 #: ../fish/guestfish-actions.pod:1818 ../src/guestfs-actions.pod:2695
8043 msgid "Slackware."
8044 msgstr ""
8045
8046 #. type: =item
8047 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2697
8048 msgid "\"ubuntu\""
8049 msgstr ""
8050
8051 #. type: textblock
8052 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2699
8053 msgid "Ubuntu."
8054 msgstr ""
8055
8056 #. type: =item
8057 #: ../fish/guestfish-actions.pod:1824 ../fish/guestfish-actions.pod:1908
8058 #: ../fish/guestfish-actions.pod:2172 ../src/guestfs-actions.pod:2701
8059 #: ../src/guestfs-actions.pod:2810 ../src/guestfs-actions.pod:3185
8060 msgid "\"unknown\""
8061 msgstr ""
8062
8063 #. type: textblock
8064 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2703
8065 msgid "The distro could not be determined."
8066 msgstr ""
8067
8068 #. type: =item
8069 #: ../fish/guestfish-actions.pod:1828 ../fish/guestfish-actions.pod:2164
8070 #: ../src/guestfs-actions.pod:2705 ../src/guestfs-actions.pod:3177
8071 msgid "\"windows\""
8072 msgstr ""
8073
8074 #. type: textblock
8075 #: ../fish/guestfish-actions.pod:1830 ../src/guestfs-actions.pod:2707
8076 msgid ""
8077 "Windows does not have distributions.  This string is returned if the OS type "
8078 "is Windows."
8079 msgstr ""
8080
8081 #. type: textblock
8082 #: ../fish/guestfish-actions.pod:1835 ../fish/guestfish-actions.pod:1914
8083 #: ../fish/guestfish-actions.pod:2178 ../src/guestfs-actions.pod:2712
8084 #: ../src/guestfs-actions.pod:2816 ../src/guestfs-actions.pod:3191
8085 msgid ""
8086 "Future versions of libguestfs may return other strings here.  The caller "
8087 "should be prepared to handle any string."
8088 msgstr ""
8089
8090 #. type: =head2
8091 #: ../fish/guestfish-actions.pod:1840
8092 msgid "inspect-get-drive-mappings"
8093 msgstr ""
8094
8095 #. type: verbatim
8096 #: ../fish/guestfish-actions.pod:1842
8097 #, no-wrap
8098 msgid ""
8099 " inspect-get-drive-mappings root\n"
8100 "\n"
8101 msgstr ""
8102
8103 #. type: textblock
8104 #: ../fish/guestfish-actions.pod:1844 ../src/guestfs-actions.pod:2728
8105 msgid ""
8106 "This call is useful for Windows which uses a primitive system of assigning "
8107 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
8108 "Windows Registry to find out how disks/partitions are mapped to drive "
8109 "letters, and returns a hash table as in the example below:"
8110 msgstr ""
8111
8112 #. type: verbatim
8113 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2734
8114 #, no-wrap
8115 msgid ""
8116 " C      =>     /dev/vda2\n"
8117 " E      =>     /dev/vdb1\n"
8118 " F      =>     /dev/vdc1\n"
8119 "\n"
8120 msgstr ""
8121
8122 #. type: textblock
8123 #: ../fish/guestfish-actions.pod:1854 ../src/guestfs-actions.pod:2738
8124 msgid ""
8125 "Note that keys are drive letters.  For Windows, the key is case insensitive "
8126 "and just contains the drive letter, without the customary colon separator "
8127 "character."
8128 msgstr ""
8129
8130 #. type: textblock
8131 #: ../fish/guestfish-actions.pod:1858 ../src/guestfs-actions.pod:2742
8132 msgid ""
8133 "In future we may support other operating systems that also used drive "
8134 "letters, but the keys for those might not be case insensitive and might be "
8135 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
8136 "C<h1> etc."
8137 msgstr ""
8138
8139 #. type: textblock
8140 #: ../fish/guestfish-actions.pod:1863 ../src/guestfs-actions.pod:2747
8141 msgid ""
8142 "For Windows guests, currently only hard drive mappings are returned.  "
8143 "Removable disks (eg. DVD-ROMs) are ignored."
8144 msgstr ""
8145
8146 #. type: textblock
8147 #: ../fish/guestfish-actions.pod:1866 ../src/guestfs-actions.pod:2750
8148 msgid ""
8149 "For guests that do not use drive mappings, or if the drive mappings could "
8150 "not be determined, this returns an empty hash table."
8151 msgstr ""
8152
8153 #. type: textblock
8154 #: ../fish/guestfish-actions.pod:1869
8155 msgid ""
8156 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8157 "get-mountpoints>, L</inspect-get-filesystems>."
8158 msgstr ""
8159
8160 #. type: =head2
8161 #: ../fish/guestfish-actions.pod:1873
8162 msgid "inspect-get-filesystems"
8163 msgstr ""
8164
8165 #. type: verbatim
8166 #: ../fish/guestfish-actions.pod:1875
8167 #, no-wrap
8168 msgid ""
8169 " inspect-get-filesystems root\n"
8170 "\n"
8171 msgstr ""
8172
8173 #. type: textblock
8174 #: ../fish/guestfish-actions.pod:1877 ../src/guestfs-actions.pod:2771
8175 msgid ""
8176 "This returns a list of all the filesystems that we think are associated with "
8177 "this operating system.  This includes the root filesystem, other ordinary "
8178 "filesystems, and non-mounted devices like swap partitions."
8179 msgstr ""
8180
8181 #. type: textblock
8182 #: ../fish/guestfish-actions.pod:1882 ../src/guestfs-actions.pod:2776
8183 msgid ""
8184 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8185 "to be shared between operating systems."
8186 msgstr ""
8187
8188 #. type: textblock
8189 #: ../fish/guestfish-actions.pod:1885
8190 msgid ""
8191 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8192 "get-mountpoints>."
8193 msgstr ""
8194
8195 #. type: =head2
8196 #: ../fish/guestfish-actions.pod:1888
8197 msgid "inspect-get-format"
8198 msgstr ""
8199
8200 #. type: verbatim
8201 #: ../fish/guestfish-actions.pod:1890
8202 #, no-wrap
8203 msgid ""
8204 " inspect-get-format root\n"
8205 "\n"
8206 msgstr ""
8207
8208 #. type: textblock
8209 #: ../fish/guestfish-actions.pod:1892 ../src/guestfs-actions.pod:2794
8210 msgid ""
8211 "This returns the format of the inspected operating system.  You can use it "
8212 "to detect install images, live CDs and similar."
8213 msgstr ""
8214
8215 #. type: textblock
8216 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:2797
8217 msgid "Currently defined formats are:"
8218 msgstr ""
8219
8220 #. type: =item
8221 #: ../fish/guestfish-actions.pod:1899 ../src/guestfs-actions.pod:2801
8222 msgid "\"installed\""
8223 msgstr ""
8224
8225 #. type: textblock
8226 #: ../fish/guestfish-actions.pod:1901 ../src/guestfs-actions.pod:2803
8227 msgid "This is an installed operating system."
8228 msgstr ""
8229
8230 #. type: =item
8231 #: ../fish/guestfish-actions.pod:1903 ../src/guestfs-actions.pod:2805
8232 msgid "\"installer\""
8233 msgstr ""
8234
8235 #. type: textblock
8236 #: ../fish/guestfish-actions.pod:1905 ../src/guestfs-actions.pod:2807
8237 msgid ""
8238 "The disk image being inspected is not an installed operating system, but a "
8239 "I<bootable> install disk, live CD, or similar."
8240 msgstr ""
8241
8242 #. type: textblock
8243 #: ../fish/guestfish-actions.pod:1910 ../src/guestfs-actions.pod:2812
8244 msgid "The format of this disk image is not known."
8245 msgstr ""
8246
8247 #. type: =head2
8248 #: ../fish/guestfish-actions.pod:1919
8249 msgid "inspect-get-hostname"
8250 msgstr ""
8251
8252 #. type: verbatim
8253 #: ../fish/guestfish-actions.pod:1921
8254 #, no-wrap
8255 msgid ""
8256 " inspect-get-hostname root\n"
8257 "\n"
8258 msgstr ""
8259
8260 #. type: textblock
8261 #: ../fish/guestfish-actions.pod:1923 ../src/guestfs-actions.pod:2832
8262 msgid ""
8263 "This function returns the hostname of the operating system as found by "
8264 "inspection of the guest's configuration files."
8265 msgstr ""
8266
8267 #. type: textblock
8268 #: ../fish/guestfish-actions.pod:1926 ../src/guestfs-actions.pod:2835
8269 msgid ""
8270 "If the hostname could not be determined, then the string C<unknown> is "
8271 "returned."
8272 msgstr ""
8273
8274 #. type: =head2
8275 #: ../fish/guestfish-actions.pod:1931
8276 msgid "inspect-get-icon"
8277 msgstr ""
8278
8279 #. type: verbatim
8280 #: ../fish/guestfish-actions.pod:1933
8281 #, no-wrap
8282 msgid ""
8283 " inspect-get-icon root [favicon:..] [highquality:..]\n"
8284 "\n"
8285 msgstr ""
8286
8287 #. type: textblock
8288 #: ../fish/guestfish-actions.pod:1935 ../src/guestfs-actions.pod:2861
8289 msgid ""
8290 "This function returns an icon corresponding to the inspected operating "
8291 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
8292 "to PNG if necessary)."
8293 msgstr ""
8294
8295 #. type: textblock
8296 #: ../fish/guestfish-actions.pod:1939 ../src/guestfs-actions.pod:2865
8297 msgid ""
8298 "If it was not possible to get an icon this function returns a zero-length "
8299 "(non-NULL) buffer.  I<Callers must check for this case>."
8300 msgstr ""
8301
8302 #. type: textblock
8303 #: ../fish/guestfish-actions.pod:1942 ../src/guestfs-actions.pod:2868
8304 msgid ""
8305 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
8306 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
8307 "this file will be returned.  You can disable favicons by passing the "
8308 "optional C<favicon> boolean as false (default is true)."
8309 msgstr ""
8310
8311 #. type: textblock
8312 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:2874
8313 msgid ""
8314 "If finding the favicon fails, then we look in other places in the guest for "
8315 "a suitable icon."
8316 msgstr ""
8317
8318 #. type: textblock
8319 #: ../fish/guestfish-actions.pod:1951 ../src/guestfs-actions.pod:2877
8320 msgid ""
8321 "If the optional C<highquality> boolean is true then only high quality icons "
8322 "are returned, which means only icons of high resolution with an alpha "
8323 "channel.  The default (false) is to return any icon we can, even if it is of "
8324 "substandard quality."
8325 msgstr ""
8326
8327 #. type: textblock
8328 #: ../fish/guestfish-actions.pod:1962 ../src/guestfs-actions.pod:2888
8329 msgid ""
8330 "Unlike most other inspection API calls, the guest's disks must be mounted up "
8331 "before you call this, since it needs to read information from the guest "
8332 "filesystem during the call."
8333 msgstr ""
8334
8335 #. type: textblock
8336 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2894
8337 msgid ""
8338 "B<Security:> The icon data comes from the untrusted guest, and should be "
8339 "treated with caution.  PNG files have been known to contain exploits.  "
8340 "Ensure that libpng (or other relevant libraries) are fully up to date before "
8341 "trying to process or display the icon."
8342 msgstr ""
8343
8344 #. type: textblock
8345 #: ../fish/guestfish-actions.pod:1976 ../src/guestfs-actions.pod:2902
8346 msgid ""
8347 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
8348 "tries to return the largest, highest quality icon available.  The "
8349 "application must scale the icon to the required size."
8350 msgstr ""
8351
8352 #. type: textblock
8353 #: ../fish/guestfish-actions.pod:1983 ../src/guestfs-actions.pod:2909
8354 msgid ""
8355 "Extracting icons from Windows guests requires the external C<wrestool> "
8356 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
8357 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
8358 "installed separately."
8359 msgstr ""
8360
8361 #. type: textblock
8362 #: ../fish/guestfish-actions.pod:1990 ../src/guestfs-actions.pod:2916
8363 msgid ""
8364 "Operating system icons are usually trademarks.  Seek legal advice before "
8365 "using trademarks in applications."
8366 msgstr ""
8367
8368 #. type: =head2
8369 #: ../fish/guestfish-actions.pod:1997
8370 msgid "inspect-get-major-version"
8371 msgstr ""
8372
8373 #. type: verbatim
8374 #: ../fish/guestfish-actions.pod:1999
8375 #, no-wrap
8376 msgid ""
8377 " inspect-get-major-version root\n"
8378 "\n"
8379 msgstr ""
8380
8381 #. type: textblock
8382 #: ../fish/guestfish-actions.pod:2001 ../src/guestfs-actions.pod:2957
8383 msgid ""
8384 "This returns the major version number of the inspected operating system."
8385 msgstr ""
8386
8387 #. type: textblock
8388 #: ../fish/guestfish-actions.pod:2004 ../src/guestfs-actions.pod:2960
8389 msgid ""
8390 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8391 "popular public names used by the operating system.  Notably the operating "
8392 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8393 "1).  You can find out the real versions corresponding to releases of Windows "
8394 "by consulting Wikipedia or MSDN."
8395 msgstr ""
8396
8397 #. type: textblock
8398 #: ../fish/guestfish-actions.pod:2011 ../fish/guestfish-actions.pod:2022
8399 #: ../src/guestfs-actions.pod:2967 ../src/guestfs-actions.pod:2984
8400 msgid "If the version could not be determined, then C<0> is returned."
8401 msgstr ""
8402
8403 #. type: =head2
8404 #: ../fish/guestfish-actions.pod:2015
8405 msgid "inspect-get-minor-version"
8406 msgstr ""
8407
8408 #. type: verbatim
8409 #: ../fish/guestfish-actions.pod:2017
8410 #, no-wrap
8411 msgid ""
8412 " inspect-get-minor-version root\n"
8413 "\n"
8414 msgstr ""
8415
8416 #. type: textblock
8417 #: ../fish/guestfish-actions.pod:2019 ../src/guestfs-actions.pod:2981
8418 msgid ""
8419 "This returns the minor version number of the inspected operating system."
8420 msgstr ""
8421
8422 #. type: textblock
8423 #: ../fish/guestfish-actions.pod:2024
8424 msgid ""
8425 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8426 "get-major-version>."
8427 msgstr ""
8428
8429 #. type: =head2
8430 #: ../fish/guestfish-actions.pod:2027
8431 msgid "inspect-get-mountpoints"
8432 msgstr ""
8433
8434 #. type: verbatim
8435 #: ../fish/guestfish-actions.pod:2029
8436 #, no-wrap
8437 msgid ""
8438 " inspect-get-mountpoints root\n"
8439 "\n"
8440 msgstr ""
8441
8442 #. type: textblock
8443 #: ../fish/guestfish-actions.pod:2031 ../src/guestfs-actions.pod:2999
8444 msgid ""
8445 "This returns a hash of where we think the filesystems associated with this "
8446 "operating system should be mounted.  Callers should note that this is at "
8447 "best an educated guess made by reading configuration files such as C</etc/"
8448 "fstab>.  I<In particular note> that this may return filesystems which are "
8449 "non-existent or not mountable and callers should be prepared to handle or "
8450 "ignore failures if they try to mount them."
8451 msgstr ""
8452
8453 #. type: textblock
8454 #: ../fish/guestfish-actions.pod:2040 ../src/guestfs-actions.pod:3008
8455 msgid ""
8456 "Each element in the returned hashtable has a key which is the path of the "
8457 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8458 "mounted there (eg. C</dev/sda1>)."
8459 msgstr ""
8460
8461 #. type: textblock
8462 #: ../fish/guestfish-actions.pod:2045 ../src/guestfs-actions.pod:3013
8463 msgid ""
8464 "Non-mounted devices such as swap devices are I<not> returned in this list."
8465 msgstr ""
8466
8467 #. type: textblock
8468 #: ../fish/guestfish-actions.pod:2048
8469 msgid ""
8470 "For operating systems like Windows which still use drive letters, this call "
8471 "will only return an entry for the first drive \"mounted on\" C</>.  For "
8472 "information about the mapping of drive letters to partitions, see L</inspect-"
8473 "get-drive-mappings>."
8474 msgstr ""
8475
8476 #. type: textblock
8477 #: ../fish/guestfish-actions.pod:2054
8478 msgid ""
8479 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8480 "get-filesystems>."
8481 msgstr ""
8482
8483 #. type: =head2
8484 #: ../fish/guestfish-actions.pod:2057
8485 msgid "inspect-get-package-format"
8486 msgstr ""
8487
8488 #. type: verbatim
8489 #: ../fish/guestfish-actions.pod:2059
8490 #, no-wrap
8491 msgid ""
8492 " inspect-get-package-format root\n"
8493 "\n"
8494 msgstr ""
8495
8496 #. type: textblock
8497 #: ../fish/guestfish-actions.pod:2061
8498 msgid ""
8499 "This function and L</inspect-get-package-management> return the package "
8500 "format and package management tool used by the inspected operating system.  "
8501 "For example for Fedora these functions would return C<rpm> (package format) "
8502 "and C<yum> (package management)."
8503 msgstr ""
8504
8505 #. type: textblock
8506 #: ../fish/guestfish-actions.pod:2067 ../src/guestfs-actions.pod:3045
8507 msgid ""
8508 "This returns the string C<unknown> if we could not determine the package "
8509 "format I<or> if the operating system does not have a real packaging system "
8510 "(eg. Windows)."
8511 msgstr ""
8512
8513 #. type: textblock
8514 #: ../fish/guestfish-actions.pod:2071 ../src/guestfs-actions.pod:3049
8515 msgid ""
8516 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
8517 "Future versions of libguestfs may return other strings."
8518 msgstr ""
8519
8520 #. type: =head2
8521 #: ../fish/guestfish-actions.pod:2076
8522 msgid "inspect-get-package-management"
8523 msgstr ""
8524
8525 #. type: verbatim
8526 #: ../fish/guestfish-actions.pod:2078
8527 #, no-wrap
8528 msgid ""
8529 " inspect-get-package-management root\n"
8530 "\n"
8531 msgstr ""
8532
8533 #. type: textblock
8534 #: ../fish/guestfish-actions.pod:2080
8535 msgid ""
8536 "L</inspect-get-package-format> and this function return the package format "
8537 "and package management tool used by the inspected operating system.  For "
8538 "example for Fedora these functions would return C<rpm> (package format) and "
8539 "C<yum> (package management)."
8540 msgstr ""
8541
8542 #. type: textblock
8543 #: ../fish/guestfish-actions.pod:2086 ../src/guestfs-actions.pod:3071
8544 msgid ""
8545 "This returns the string C<unknown> if we could not determine the package "
8546 "management tool I<or> if the operating system does not have a real packaging "
8547 "system (eg. Windows)."
8548 msgstr ""
8549
8550 #. type: textblock
8551 #: ../fish/guestfish-actions.pod:2090 ../src/guestfs-actions.pod:3075
8552 msgid ""
8553 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
8554 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
8555 "libguestfs may return other strings."
8556 msgstr ""
8557
8558 #. type: =head2
8559 #: ../fish/guestfish-actions.pod:2097
8560 msgid "inspect-get-product-name"
8561 msgstr ""
8562
8563 #. type: verbatim
8564 #: ../fish/guestfish-actions.pod:2099
8565 #, no-wrap
8566 msgid ""
8567 " inspect-get-product-name root\n"
8568 "\n"
8569 msgstr ""
8570
8571 #. type: textblock
8572 #: ../fish/guestfish-actions.pod:2101 ../src/guestfs-actions.pod:3093
8573 msgid ""
8574 "This returns the product name of the inspected operating system.  The "
8575 "product name is generally some freeform string which can be displayed to the "
8576 "user, but should not be parsed by programs."
8577 msgstr ""
8578
8579 #. type: textblock
8580 #: ../fish/guestfish-actions.pod:2106 ../src/guestfs-actions.pod:3098
8581 msgid ""
8582 "If the product name could not be determined, then the string C<unknown> is "
8583 "returned."
8584 msgstr ""
8585
8586 #. type: =head2
8587 #: ../fish/guestfish-actions.pod:2111
8588 msgid "inspect-get-product-variant"
8589 msgstr ""
8590
8591 #. type: verbatim
8592 #: ../fish/guestfish-actions.pod:2113
8593 #, no-wrap
8594 msgid ""
8595 " inspect-get-product-variant root\n"
8596 "\n"
8597 msgstr ""
8598
8599 #. type: textblock
8600 #: ../fish/guestfish-actions.pod:2115 ../src/guestfs-actions.pod:3114
8601 msgid "This returns the product variant of the inspected operating system."
8602 msgstr ""
8603
8604 #. type: textblock
8605 #: ../fish/guestfish-actions.pod:2118 ../src/guestfs-actions.pod:3117
8606 msgid ""
8607 "For Windows guests, this returns the contents of the Registry key C<HKLM"
8608 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
8609 "is usually a string such as C<Client> or C<Server> (other values are "
8610 "possible).  This can be used to distinguish consumer and enterprise versions "
8611 "of Windows that have the same version number (for example, Windows 7 and "
8612 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
8613 "the latter is C<Server>)."
8614 msgstr ""
8615
8616 #. type: textblock
8617 #: ../fish/guestfish-actions.pod:2127 ../src/guestfs-actions.pod:3126
8618 msgid ""
8619 "For enterprise Linux guests, in future we intend this to return the product "
8620 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
8621 "implemented at present."
8622 msgstr ""
8623
8624 #. type: textblock
8625 #: ../fish/guestfish-actions.pod:2131 ../src/guestfs-actions.pod:3130
8626 msgid ""
8627 "If the product variant could not be determined, then the string C<unknown> "
8628 "is returned."
8629 msgstr ""
8630
8631 #. type: textblock
8632 #: ../fish/guestfish-actions.pod:2134
8633 msgid ""
8634 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8635 "get-product-name>, L</inspect-get-major-version>."
8636 msgstr ""
8637
8638 #. type: =head2
8639 #: ../fish/guestfish-actions.pod:2138
8640 msgid "inspect-get-roots"
8641 msgstr ""
8642
8643 #. type: verbatim
8644 #: ../fish/guestfish-actions.pod:2140
8645 #, no-wrap
8646 msgid ""
8647 " inspect-get-roots\n"
8648 "\n"
8649 msgstr ""
8650
8651 #. type: textblock
8652 #: ../fish/guestfish-actions.pod:2142
8653 msgid ""
8654 "This function is a convenient way to get the list of root devices, as "
8655 "returned from a previous call to L</inspect-os>, but without redoing the "
8656 "whole inspection process."
8657 msgstr ""
8658
8659 #. type: textblock
8660 #: ../fish/guestfish-actions.pod:2146
8661 msgid ""
8662 "This returns an empty list if either no root devices were found or the "
8663 "caller has not called L</inspect-os>."
8664 msgstr ""
8665
8666 #. type: =head2
8667 #: ../fish/guestfish-actions.pod:2151
8668 msgid "inspect-get-type"
8669 msgstr ""
8670
8671 #. type: verbatim
8672 #: ../fish/guestfish-actions.pod:2153
8673 #, no-wrap
8674 msgid ""
8675 " inspect-get-type root\n"
8676 "\n"
8677 msgstr ""
8678
8679 #. type: textblock
8680 #: ../fish/guestfish-actions.pod:2155 ../src/guestfs-actions.pod:3168
8681 msgid ""
8682 "This returns the type of the inspected operating system.  Currently defined "
8683 "types are:"
8684 msgstr ""
8685
8686 #. type: =item
8687 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3173
8688 msgid "\"linux\""
8689 msgstr ""
8690
8691 #. type: textblock
8692 #: ../fish/guestfish-actions.pod:2162 ../src/guestfs-actions.pod:3175
8693 msgid "Any Linux-based operating system."
8694 msgstr ""
8695
8696 #. type: textblock
8697 #: ../fish/guestfish-actions.pod:2166 ../src/guestfs-actions.pod:3179
8698 msgid "Any Microsoft Windows operating system."
8699 msgstr ""
8700
8701 #. type: =item
8702 #: ../fish/guestfish-actions.pod:2168 ../src/guestfs-actions.pod:3181
8703 msgid "\"freebsd\""
8704 msgstr ""
8705
8706 #. type: textblock
8707 #: ../fish/guestfish-actions.pod:2170 ../src/guestfs-actions.pod:3183
8708 msgid "FreeBSD."
8709 msgstr ""
8710
8711 #. type: textblock
8712 #: ../fish/guestfish-actions.pod:2174 ../src/guestfs-actions.pod:3187
8713 msgid "The operating system type could not be determined."
8714 msgstr ""
8715
8716 #. type: =head2
8717 #: ../fish/guestfish-actions.pod:2183
8718 msgid "inspect-get-windows-current-control-set"
8719 msgstr ""
8720
8721 #. type: verbatim
8722 #: ../fish/guestfish-actions.pod:2185
8723 #, no-wrap
8724 msgid ""
8725 " inspect-get-windows-current-control-set root\n"
8726 "\n"
8727 msgstr ""
8728
8729 #. type: textblock
8730 #: ../fish/guestfish-actions.pod:2187 ../src/guestfs-actions.pod:3207
8731 msgid ""
8732 "This returns the Windows CurrentControlSet of the inspected guest.  The "
8733 "CurrentControlSet is a registry key name such as C<ControlSet001>."
8734 msgstr ""
8735
8736 #. type: textblock
8737 #: ../fish/guestfish-actions.pod:2190 ../src/guestfs-actions.pod:3210
8738 msgid ""
8739 "This call assumes that the guest is Windows and that the Registry could be "
8740 "examined by inspection.  If this is not the case then an error is returned."
8741 msgstr ""
8742
8743 #. type: =head2
8744 #: ../fish/guestfish-actions.pod:2196
8745 msgid "inspect-get-windows-systemroot"
8746 msgstr ""
8747
8748 #. type: verbatim
8749 #: ../fish/guestfish-actions.pod:2198
8750 #, no-wrap
8751 msgid ""
8752 " inspect-get-windows-systemroot root\n"
8753 "\n"
8754 msgstr ""
8755
8756 #. type: textblock
8757 #: ../fish/guestfish-actions.pod:2200 ../src/guestfs-actions.pod:3227
8758 msgid ""
8759 "This returns the Windows systemroot of the inspected guest.  The systemroot "
8760 "is a directory path such as C</WINDOWS>."
8761 msgstr ""
8762
8763 #. type: textblock
8764 #: ../fish/guestfish-actions.pod:2203 ../src/guestfs-actions.pod:3230
8765 msgid ""
8766 "This call assumes that the guest is Windows and that the systemroot could be "
8767 "determined by inspection.  If this is not the case then an error is returned."
8768 msgstr ""
8769
8770 #. type: =head2
8771 #: ../fish/guestfish-actions.pod:2209
8772 msgid "inspect-is-live"
8773 msgstr ""
8774
8775 #. type: verbatim
8776 #: ../fish/guestfish-actions.pod:2211
8777 #, no-wrap
8778 msgid ""
8779 " inspect-is-live root\n"
8780 "\n"
8781 msgstr ""
8782
8783 #. type: textblock
8784 #: ../fish/guestfish-actions.pod:2213
8785 msgid ""
8786 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8787 "then this returns true if a live image was detected on the disk."
8788 msgstr ""
8789
8790 #. type: =head2
8791 #: ../fish/guestfish-actions.pod:2219
8792 msgid "inspect-is-multipart"
8793 msgstr ""
8794
8795 #. type: verbatim
8796 #: ../fish/guestfish-actions.pod:2221
8797 #, no-wrap
8798 msgid ""
8799 " inspect-is-multipart root\n"
8800 "\n"
8801 msgstr ""
8802
8803 #. type: textblock
8804 #: ../fish/guestfish-actions.pod:2223
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 part of a set."
8808 msgstr ""
8809
8810 #. type: =head2
8811 #: ../fish/guestfish-actions.pod:2229
8812 msgid "inspect-is-netinst"
8813 msgstr ""
8814
8815 #. type: verbatim
8816 #: ../fish/guestfish-actions.pod:2231
8817 #, no-wrap
8818 msgid ""
8819 " inspect-is-netinst root\n"
8820 "\n"
8821 msgstr ""
8822
8823 #. type: textblock
8824 #: ../fish/guestfish-actions.pod:2233
8825 msgid ""
8826 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8827 "then this returns true if the disk is a network installer, ie. not a self-"
8828 "contained install CD but one which is likely to require network access to "
8829 "complete the install."
8830 msgstr ""
8831
8832 #. type: =head2
8833 #: ../fish/guestfish-actions.pod:2241
8834 msgid "inspect-list-applications"
8835 msgstr ""
8836
8837 #. type: verbatim
8838 #: ../fish/guestfish-actions.pod:2243
8839 #, no-wrap
8840 msgid ""
8841 " inspect-list-applications root\n"
8842 "\n"
8843 msgstr ""
8844
8845 #. type: textblock
8846 #: ../fish/guestfish-actions.pod:2245 ../src/guestfs-actions.pod:3297
8847 msgid "Return the list of applications installed in the operating system."
8848 msgstr ""
8849
8850 #. type: textblock
8851 #: ../fish/guestfish-actions.pod:2247
8852 msgid ""
8853 "I<Note:> This call works differently from other parts of the inspection "
8854 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
8855 "then mount up the disks, before calling this.  Listing applications is a "
8856 "significantly more difficult operation which requires access to the full "
8857 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
8858 "are just returning data cached in the libguestfs handle, this call actually "
8859 "reads parts of the mounted filesystems during the call."
8860 msgstr ""
8861
8862 #. type: textblock
8863 #: ../fish/guestfish-actions.pod:2257 ../src/guestfs-actions.pod:3309
8864 msgid ""
8865 "This returns an empty list if the inspection code was not able to determine "
8866 "the list of applications."
8867 msgstr ""
8868
8869 #. type: textblock
8870 #: ../fish/guestfish-actions.pod:2260 ../src/guestfs-actions.pod:3312
8871 msgid "The application structure contains the following fields:"
8872 msgstr ""
8873
8874 #. type: =item
8875 #: ../fish/guestfish-actions.pod:2264 ../src/guestfs-actions.pod:3316
8876 msgid "C<app_name>"
8877 msgstr ""
8878
8879 #. type: textblock
8880 #: ../fish/guestfish-actions.pod:2266 ../src/guestfs-actions.pod:3318
8881 msgid ""
8882 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
8883 "guests, this is the package name."
8884 msgstr ""
8885
8886 #. type: =item
8887 #: ../fish/guestfish-actions.pod:2269 ../src/guestfs-actions.pod:3321
8888 msgid "C<app_display_name>"
8889 msgstr ""
8890
8891 #. type: textblock
8892 #: ../fish/guestfish-actions.pod:2271 ../src/guestfs-actions.pod:3323
8893 msgid ""
8894 "The display name of the application, sometimes localized to the install "
8895 "language of the guest operating system."
8896 msgstr ""
8897
8898 #. type: textblock
8899 #: ../fish/guestfish-actions.pod:2274 ../src/guestfs-actions.pod:3326
8900 msgid ""
8901 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
8902 "to display something can use C<app_name> instead."
8903 msgstr ""
8904
8905 #. type: =item
8906 #: ../fish/guestfish-actions.pod:2277 ../src/guestfs-actions.pod:3329
8907 msgid "C<app_epoch>"
8908 msgstr ""
8909
8910 #. type: textblock
8911 #: ../fish/guestfish-actions.pod:2279 ../src/guestfs-actions.pod:3331
8912 msgid ""
8913 "For package managers which use epochs, this contains the epoch of the "
8914 "package (an integer).  If unavailable, this is returned as C<0>."
8915 msgstr ""
8916
8917 #. type: =item
8918 #: ../fish/guestfish-actions.pod:2282 ../src/guestfs-actions.pod:3334
8919 msgid "C<app_version>"
8920 msgstr ""
8921
8922 #. type: textblock
8923 #: ../fish/guestfish-actions.pod:2284 ../src/guestfs-actions.pod:3336
8924 msgid ""
8925 "The version string of the application or package.  If unavailable this is "
8926 "returned as an empty string C<\"\">."
8927 msgstr ""
8928
8929 #. type: =item
8930 #: ../fish/guestfish-actions.pod:2287 ../src/guestfs-actions.pod:3339
8931 msgid "C<app_release>"
8932 msgstr ""
8933
8934 #. type: textblock
8935 #: ../fish/guestfish-actions.pod:2289 ../src/guestfs-actions.pod:3341
8936 msgid ""
8937 "The release string of the application or package, for package managers that "
8938 "use this.  If unavailable this is returned as an empty string C<\"\">."
8939 msgstr ""
8940
8941 #. type: =item
8942 #: ../fish/guestfish-actions.pod:2293 ../src/guestfs-actions.pod:3345
8943 msgid "C<app_install_path>"
8944 msgstr ""
8945
8946 #. type: textblock
8947 #: ../fish/guestfish-actions.pod:2295 ../src/guestfs-actions.pod:3347
8948 msgid ""
8949 "The installation path of the application (on operating systems such as "
8950 "Windows which use installation paths).  This path is in the format used by "
8951 "the guest operating system, it is not a libguestfs path."
8952 msgstr ""
8953
8954 #. type: textblock
8955 #: ../fish/guestfish-actions.pod:2300 ../src/guestfs-actions.pod:3352
8956 msgid "If unavailable this is returned as an empty string C<\"\">."
8957 msgstr ""
8958
8959 #. type: =item
8960 #: ../fish/guestfish-actions.pod:2302 ../src/guestfs-actions.pod:3354
8961 msgid "C<app_trans_path>"
8962 msgstr ""
8963
8964 #. type: textblock
8965 #: ../fish/guestfish-actions.pod:2304 ../src/guestfs-actions.pod:3356
8966 msgid ""
8967 "The install path translated into a libguestfs path.  If unavailable this is "
8968 "returned as an empty string C<\"\">."
8969 msgstr ""
8970
8971 #. type: =item
8972 #: ../fish/guestfish-actions.pod:2307 ../src/guestfs-actions.pod:3359
8973 msgid "C<app_publisher>"
8974 msgstr ""
8975
8976 #. type: textblock
8977 #: ../fish/guestfish-actions.pod:2309 ../src/guestfs-actions.pod:3361
8978 msgid ""
8979 "The name of the publisher of the application, for package managers that use "
8980 "this.  If unavailable this is returned as an empty string C<\"\">."
8981 msgstr ""
8982
8983 #. type: =item
8984 #: ../fish/guestfish-actions.pod:2313 ../src/guestfs-actions.pod:3365
8985 msgid "C<app_url>"
8986 msgstr ""
8987
8988 #. type: textblock
8989 #: ../fish/guestfish-actions.pod:2315 ../src/guestfs-actions.pod:3367
8990 msgid ""
8991 "The URL (eg. upstream URL) of the application.  If unavailable this is "
8992 "returned as an empty string C<\"\">."
8993 msgstr ""
8994
8995 #. type: =item
8996 #: ../fish/guestfish-actions.pod:2318 ../src/guestfs-actions.pod:3370
8997 msgid "C<app_source_package>"
8998 msgstr ""
8999
9000 #. type: textblock
9001 #: ../fish/guestfish-actions.pod:2320 ../src/guestfs-actions.pod:3372
9002 msgid ""
9003 "For packaging systems which support this, the name of the source package.  "
9004 "If unavailable this is returned as an empty string C<\"\">."
9005 msgstr ""
9006
9007 #. type: =item
9008 #: ../fish/guestfish-actions.pod:2323 ../src/guestfs-actions.pod:3375
9009 msgid "C<app_summary>"
9010 msgstr ""
9011
9012 #. type: textblock
9013 #: ../fish/guestfish-actions.pod:2325 ../src/guestfs-actions.pod:3377
9014 msgid ""
9015 "A short (usually one line) description of the application or package.  If "
9016 "unavailable this is returned as an empty string C<\"\">."
9017 msgstr ""
9018
9019 #. type: =item
9020 #: ../fish/guestfish-actions.pod:2328 ../src/guestfs-actions.pod:3380
9021 msgid "C<app_description>"
9022 msgstr ""
9023
9024 #. type: textblock
9025 #: ../fish/guestfish-actions.pod:2330 ../src/guestfs-actions.pod:3382
9026 msgid ""
9027 "A longer description of the application or package.  If unavailable this is "
9028 "returned as an empty string C<\"\">."
9029 msgstr ""
9030
9031 #. type: =head2
9032 #: ../fish/guestfish-actions.pod:2337
9033 msgid "inspect-os"
9034 msgstr ""
9035
9036 #. type: verbatim
9037 #: ../fish/guestfish-actions.pod:2339
9038 #, no-wrap
9039 msgid ""
9040 " inspect-os\n"
9041 "\n"
9042 msgstr ""
9043
9044 #. type: textblock
9045 #: ../fish/guestfish-actions.pod:2341 ../src/guestfs-actions.pod:3400
9046 msgid ""
9047 "This function uses other libguestfs functions and certain heuristics to "
9048 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9049 "for operating systems."
9050 msgstr ""
9051
9052 #. type: textblock
9053 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3404
9054 msgid "The list returned is empty if no operating systems were found."
9055 msgstr ""
9056
9057 #. type: textblock
9058 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3406
9059 msgid ""
9060 "If one operating system was found, then this returns a list with a single "
9061 "element, which is the name of the root filesystem of this operating system.  "
9062 "It is also possible for this function to return a list containing more than "
9063 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9064 "element being the root filesystem of one of the operating systems."
9065 msgstr ""
9066
9067 #. type: textblock
9068 #: ../fish/guestfish-actions.pod:2354
9069 msgid ""
9070 "You can pass the root string(s) returned to other L</inspect-get-*> "
9071 "functions in order to query further information about each operating system, "
9072 "such as the name and version."
9073 msgstr ""
9074
9075 #. type: textblock
9076 #: ../fish/guestfish-actions.pod:2359
9077 msgid ""
9078 "This function uses other libguestfs features such as L</mount-ro> and L</"
9079 "umount-all> in order to mount and unmount filesystems and look at the "
9080 "contents.  This should be called with no disks currently mounted.  The "
9081 "function may also use Augeas, so any existing Augeas handle will be closed."
9082 msgstr ""
9083
9084 #. type: textblock
9085 #: ../fish/guestfish-actions.pod:2365 ../src/guestfs-actions.pod:3424
9086 msgid ""
9087 "This function cannot decrypt encrypted disks.  The caller must do that first "
9088 "(supplying the necessary keys) if the disk is encrypted."
9089 msgstr ""
9090
9091 #. type: textblock
9092 #: ../fish/guestfish-actions.pod:2371 ../fish/guestfish-actions.pod:2569
9093 #: ../fish/guestfish-actions.pod:2628
9094 msgid "See also L</list-filesystems>."
9095 msgstr ""
9096
9097 #. type: =head2
9098 #: ../fish/guestfish-actions.pod:2373
9099 msgid "is-blockdev"
9100 msgstr ""
9101
9102 #. type: verbatim
9103 #: ../fish/guestfish-actions.pod:2375
9104 #, no-wrap
9105 msgid ""
9106 " is-blockdev path\n"
9107 "\n"
9108 msgstr ""
9109
9110 #. type: textblock
9111 #: ../fish/guestfish-actions.pod:2377 ../src/guestfs-actions.pod:3444
9112 msgid ""
9113 "This returns C<true> if and only if there is a block device with the given "
9114 "C<path> name."
9115 msgstr ""
9116
9117 #. type: textblock
9118 #: ../fish/guestfish-actions.pod:2380 ../fish/guestfish-actions.pod:2398
9119 #: ../fish/guestfish-actions.pod:2417 ../fish/guestfish-actions.pod:2426
9120 #: ../fish/guestfish-actions.pod:2436 ../fish/guestfish-actions.pod:2470
9121 #: ../fish/guestfish-actions.pod:2479
9122 msgid "See also L</stat>."
9123 msgstr ""
9124
9125 #. type: =head2
9126 #: ../fish/guestfish-actions.pod:2382
9127 msgid "is-busy"
9128 msgstr ""
9129
9130 #. type: verbatim
9131 #: ../fish/guestfish-actions.pod:2384
9132 #, no-wrap
9133 msgid ""
9134 " is-busy\n"
9135 "\n"
9136 msgstr ""
9137
9138 #. type: textblock
9139 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3458
9140 msgid ""
9141 "This returns true iff this handle is busy processing a command (in the "
9142 "C<BUSY> state)."
9143 msgstr ""
9144
9145 #. type: =head2
9146 #: ../fish/guestfish-actions.pod:2391
9147 msgid "is-chardev"
9148 msgstr ""
9149
9150 #. type: verbatim
9151 #: ../fish/guestfish-actions.pod:2393
9152 #, no-wrap
9153 msgid ""
9154 " is-chardev path\n"
9155 "\n"
9156 msgstr ""
9157
9158 #. type: textblock
9159 #: ../fish/guestfish-actions.pod:2395 ../src/guestfs-actions.pod:3473
9160 msgid ""
9161 "This returns C<true> if and only if there is a character device with the "
9162 "given C<path> name."
9163 msgstr ""
9164
9165 #. type: =head2
9166 #: ../fish/guestfish-actions.pod:2400
9167 msgid "is-config"
9168 msgstr ""
9169
9170 #. type: verbatim
9171 #: ../fish/guestfish-actions.pod:2402
9172 #, no-wrap
9173 msgid ""
9174 " is-config\n"
9175 "\n"
9176 msgstr ""
9177
9178 #. type: textblock
9179 #: ../fish/guestfish-actions.pod:2404 ../src/guestfs-actions.pod:3487
9180 msgid ""
9181 "This returns true iff this handle is being configured (in the C<CONFIG> "
9182 "state)."
9183 msgstr ""
9184
9185 #. type: =head2
9186 #: ../fish/guestfish-actions.pod:2409
9187 msgid "is-dir"
9188 msgstr ""
9189
9190 #. type: verbatim
9191 #: ../fish/guestfish-actions.pod:2411
9192 #, no-wrap
9193 msgid ""
9194 " is-dir path\n"
9195 "\n"
9196 msgstr ""
9197
9198 #. type: textblock
9199 #: ../fish/guestfish-actions.pod:2413 ../src/guestfs-actions.pod:3502
9200 msgid ""
9201 "This returns C<true> if and only if there is a directory with the given "
9202 "C<path> name.  Note that it returns false for other objects like files."
9203 msgstr ""
9204
9205 #. type: =head2
9206 #: ../fish/guestfish-actions.pod:2419
9207 msgid "is-fifo"
9208 msgstr ""
9209
9210 #. type: verbatim
9211 #: ../fish/guestfish-actions.pod:2421
9212 #, no-wrap
9213 msgid ""
9214 " is-fifo path\n"
9215 "\n"
9216 msgstr ""
9217
9218 #. type: textblock
9219 #: ../fish/guestfish-actions.pod:2423 ../src/guestfs-actions.pod:3518
9220 msgid ""
9221 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9222 "given C<path> name."
9223 msgstr ""
9224
9225 #. type: =head2
9226 #: ../fish/guestfish-actions.pod:2428
9227 msgid "is-file"
9228 msgstr ""
9229
9230 #. type: verbatim
9231 #: ../fish/guestfish-actions.pod:2430
9232 #, no-wrap
9233 msgid ""
9234 " is-file path\n"
9235 "\n"
9236 msgstr ""
9237
9238 #. type: textblock
9239 #: ../fish/guestfish-actions.pod:2432 ../src/guestfs-actions.pod:3533
9240 msgid ""
9241 "This returns C<true> if and only if there is a regular file with the given "
9242 "C<path> name.  Note that it returns false for other objects like directories."
9243 msgstr ""
9244
9245 #. type: =head2
9246 #: ../fish/guestfish-actions.pod:2438
9247 msgid "is-launching"
9248 msgstr ""
9249
9250 #. type: verbatim
9251 #: ../fish/guestfish-actions.pod:2440
9252 #, no-wrap
9253 msgid ""
9254 " is-launching\n"
9255 "\n"
9256 msgstr ""
9257
9258 #. type: textblock
9259 #: ../fish/guestfish-actions.pod:2442 ../src/guestfs-actions.pod:3548
9260 msgid ""
9261 "This returns true iff this handle is launching the subprocess (in the "
9262 "C<LAUNCHING> state)."
9263 msgstr ""
9264
9265 #. type: =head2
9266 #: ../fish/guestfish-actions.pod:2447
9267 msgid "is-lv"
9268 msgstr ""
9269
9270 #. type: verbatim
9271 #: ../fish/guestfish-actions.pod:2449
9272 #, no-wrap
9273 msgid ""
9274 " is-lv device\n"
9275 "\n"
9276 msgstr ""
9277
9278 #. type: textblock
9279 #: ../fish/guestfish-actions.pod:2451 ../src/guestfs-actions.pod:3563
9280 msgid ""
9281 "This command tests whether C<device> is a logical volume, and returns true "
9282 "iff this is the case."
9283 msgstr ""
9284
9285 #. type: =head2
9286 #: ../fish/guestfish-actions.pod:2454
9287 msgid "is-ready"
9288 msgstr ""
9289
9290 #. type: verbatim
9291 #: ../fish/guestfish-actions.pod:2456
9292 #, no-wrap
9293 msgid ""
9294 " is-ready\n"
9295 "\n"
9296 msgstr ""
9297
9298 #. type: textblock
9299 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3575
9300 msgid ""
9301 "This returns true iff this handle is ready to accept commands (in the "
9302 "C<READY> state)."
9303 msgstr ""
9304
9305 #. type: =head2
9306 #: ../fish/guestfish-actions.pod:2463
9307 msgid "is-socket"
9308 msgstr ""
9309
9310 #. type: verbatim
9311 #: ../fish/guestfish-actions.pod:2465
9312 #, no-wrap
9313 msgid ""
9314 " is-socket path\n"
9315 "\n"
9316 msgstr ""
9317
9318 #. type: textblock
9319 #: ../fish/guestfish-actions.pod:2467 ../src/guestfs-actions.pod:3590
9320 msgid ""
9321 "This returns C<true> if and only if there is a Unix domain socket with the "
9322 "given C<path> name."
9323 msgstr ""
9324
9325 #. type: =head2
9326 #: ../fish/guestfish-actions.pod:2472
9327 msgid "is-symlink"
9328 msgstr ""
9329
9330 #. type: verbatim
9331 #: ../fish/guestfish-actions.pod:2474
9332 #, no-wrap
9333 msgid ""
9334 " is-symlink path\n"
9335 "\n"
9336 msgstr ""
9337
9338 #. type: textblock
9339 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3605
9340 msgid ""
9341 "This returns C<true> if and only if there is a symbolic link with the given "
9342 "C<path> name."
9343 msgstr ""
9344
9345 #. type: =head2
9346 #: ../fish/guestfish-actions.pod:2481
9347 msgid "is-zero"
9348 msgstr ""
9349
9350 #. type: verbatim
9351 #: ../fish/guestfish-actions.pod:2483
9352 #, no-wrap
9353 msgid ""
9354 " is-zero path\n"
9355 "\n"
9356 msgstr ""
9357
9358 #. type: textblock
9359 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3620
9360 msgid ""
9361 "This returns true iff the file exists and the file is empty or it contains "
9362 "all zero bytes."
9363 msgstr ""
9364
9365 #. type: =head2
9366 #: ../fish/guestfish-actions.pod:2488
9367 msgid "is-zero-device"
9368 msgstr ""
9369
9370 #. type: verbatim
9371 #: ../fish/guestfish-actions.pod:2490
9372 #, no-wrap
9373 msgid ""
9374 " is-zero-device device\n"
9375 "\n"
9376 msgstr ""
9377
9378 #. type: textblock
9379 #: ../fish/guestfish-actions.pod:2492 ../src/guestfs-actions.pod:3633
9380 msgid "This returns true iff the device exists and contains all zero bytes."
9381 msgstr ""
9382
9383 #. type: textblock
9384 #: ../fish/guestfish-actions.pod:2494 ../src/guestfs-actions.pod:3635
9385 msgid "Note that for large devices this can take a long time to run."
9386 msgstr ""
9387
9388 #. type: =head2
9389 #: ../fish/guestfish-actions.pod:2496
9390 msgid "kill-subprocess"
9391 msgstr ""
9392
9393 #. type: verbatim
9394 #: ../fish/guestfish-actions.pod:2498
9395 #, no-wrap
9396 msgid ""
9397 " kill-subprocess\n"
9398 "\n"
9399 msgstr ""
9400
9401 #. type: textblock
9402 #: ../fish/guestfish-actions.pod:2500 ../src/guestfs-actions.pod:3646
9403 msgid "This kills the qemu subprocess.  You should never need to call this."
9404 msgstr ""
9405
9406 #. type: =head2
9407 #: ../fish/guestfish-actions.pod:2502
9408 msgid "launch"
9409 msgstr ""
9410
9411 #. type: =head2
9412 #: ../fish/guestfish-actions.pod:2504
9413 msgid "run"
9414 msgstr ""
9415
9416 #. type: verbatim
9417 #: ../fish/guestfish-actions.pod:2506
9418 #, no-wrap
9419 msgid ""
9420 " launch\n"
9421 "\n"
9422 msgstr ""
9423
9424 #. type: textblock
9425 #: ../fish/guestfish-actions.pod:2508 ../src/guestfs-actions.pod:3657
9426 msgid ""
9427 "Internally libguestfs is implemented by running a virtual machine using "
9428 "L<qemu(1)>."
9429 msgstr ""
9430
9431 #. type: textblock
9432 #: ../fish/guestfish-actions.pod:2511 ../src/guestfs-actions.pod:3660
9433 msgid ""
9434 "You should call this after configuring the handle (eg. adding drives) but "
9435 "before performing any actions."
9436 msgstr ""
9437
9438 #. type: =head2
9439 #: ../fish/guestfish-actions.pod:2514
9440 msgid "lchown"
9441 msgstr ""
9442
9443 #. type: verbatim
9444 #: ../fish/guestfish-actions.pod:2516
9445 #, no-wrap
9446 msgid ""
9447 " lchown owner group path\n"
9448 "\n"
9449 msgstr ""
9450
9451 #. type: textblock
9452 #: ../fish/guestfish-actions.pod:2518
9453 msgid ""
9454 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
9455 "chown> but if C<path> is a symlink then the link itself is changed, not the "
9456 "target."
9457 msgstr ""
9458
9459 #. type: =head2
9460 #: ../fish/guestfish-actions.pod:2526
9461 msgid "lgetxattr"
9462 msgstr ""
9463
9464 #. type: verbatim
9465 #: ../fish/guestfish-actions.pod:2528
9466 #, no-wrap
9467 msgid ""
9468 " lgetxattr path name\n"
9469 "\n"
9470 msgstr ""
9471
9472 #. type: textblock
9473 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3700
9474 msgid ""
9475 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
9476 "is a symlink, then this call returns an extended attribute from the symlink."
9477 msgstr ""
9478
9479 #. type: textblock
9480 #: ../fish/guestfish-actions.pod:2544
9481 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
9482 msgstr ""
9483
9484 #. type: =head2
9485 #: ../fish/guestfish-actions.pod:2546
9486 msgid "lgetxattrs"
9487 msgstr ""
9488
9489 #. type: verbatim
9490 #: ../fish/guestfish-actions.pod:2548
9491 #, no-wrap
9492 msgid ""
9493 " lgetxattrs path\n"
9494 "\n"
9495 msgstr ""
9496
9497 #. type: textblock
9498 #: ../fish/guestfish-actions.pod:2550
9499 msgid ""
9500 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
9501 "it returns the extended attributes of the link itself."
9502 msgstr ""
9503
9504 #. type: =head2
9505 #: ../fish/guestfish-actions.pod:2554
9506 msgid "list-9p"
9507 msgstr ""
9508
9509 #. type: verbatim
9510 #: ../fish/guestfish-actions.pod:2556
9511 #, no-wrap
9512 msgid ""
9513 " list-9p\n"
9514 "\n"
9515 msgstr ""
9516
9517 #. type: textblock
9518 #: ../fish/guestfish-actions.pod:2558 ../src/guestfs-actions.pod:3743
9519 msgid ""
9520 "List all 9p filesystems attached to the guest.  A list of mount tags is "
9521 "returned."
9522 msgstr ""
9523
9524 #. type: =head2
9525 #: ../fish/guestfish-actions.pod:2561
9526 msgid "list-devices"
9527 msgstr ""
9528
9529 #. type: verbatim
9530 #: ../fish/guestfish-actions.pod:2563
9531 #, no-wrap
9532 msgid ""
9533 " list-devices\n"
9534 "\n"
9535 msgstr ""
9536
9537 #. type: textblock
9538 #: ../fish/guestfish-actions.pod:2565 ../src/guestfs-actions.pod:3757
9539 msgid "List all the block devices."
9540 msgstr ""
9541
9542 #. type: textblock
9543 #: ../fish/guestfish-actions.pod:2567 ../src/guestfs-actions.pod:3759
9544 msgid "The full block device names are returned, eg. C</dev/sda>."
9545 msgstr ""
9546
9547 #. type: =head2
9548 #: ../fish/guestfish-actions.pod:2571
9549 msgid "list-dm-devices"
9550 msgstr ""
9551
9552 #. type: verbatim
9553 #: ../fish/guestfish-actions.pod:2573
9554 #, no-wrap
9555 msgid ""
9556 " list-dm-devices\n"
9557 "\n"
9558 msgstr ""
9559
9560 #. type: textblock
9561 #: ../fish/guestfish-actions.pod:2575 ../src/guestfs-actions.pod:3774
9562 msgid "List all device mapper devices."
9563 msgstr ""
9564
9565 #. type: textblock
9566 #: ../fish/guestfish-actions.pod:2577
9567 msgid ""
9568 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
9569 "previous call to L</luks-open>."
9570 msgstr ""
9571
9572 #. type: textblock
9573 #: ../fish/guestfish-actions.pod:2580
9574 msgid ""
9575 "Device mapper devices which correspond to logical volumes are I<not> "
9576 "returned in this list.  Call L</lvs> if you want to list logical volumes."
9577 msgstr ""
9578
9579 #. type: =head2
9580 #: ../fish/guestfish-actions.pod:2584
9581 msgid "list-filesystems"
9582 msgstr ""
9583
9584 #. type: verbatim
9585 #: ../fish/guestfish-actions.pod:2586
9586 #, no-wrap
9587 msgid ""
9588 " list-filesystems\n"
9589 "\n"
9590 msgstr ""
9591
9592 #. type: textblock
9593 #: ../fish/guestfish-actions.pod:2588 ../src/guestfs-actions.pod:3794
9594 msgid ""
9595 "This inspection command looks for filesystems on partitions, block devices "
9596 "and logical volumes, returning a list of devices containing filesystems and "
9597 "their type."
9598 msgstr ""
9599
9600 #. type: textblock
9601 #: ../fish/guestfish-actions.pod:2592 ../src/guestfs-actions.pod:3798
9602 msgid ""
9603 "The return value is a hash, where the keys are the devices containing "
9604 "filesystems, and the values are the filesystem types.  For example:"
9605 msgstr ""
9606
9607 #. type: verbatim
9608 #: ../fish/guestfish-actions.pod:2596 ../src/guestfs-actions.pod:3802
9609 #, no-wrap
9610 msgid ""
9611 " \"/dev/sda1\" => \"ntfs\"\n"
9612 " \"/dev/sda2\" => \"ext2\"\n"
9613 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
9614 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
9615 "\n"
9616 msgstr ""
9617
9618 #. type: textblock
9619 #: ../fish/guestfish-actions.pod:2601 ../src/guestfs-actions.pod:3807
9620 msgid ""
9621 "The value can have the special value \"unknown\", meaning the content of the "
9622 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
9623 msgstr ""
9624
9625 #. type: textblock
9626 #: ../fish/guestfish-actions.pod:2605
9627 msgid ""
9628 "This command runs other libguestfs commands, which might include L</mount> "
9629 "and L</umount>, and therefore you should use this soon after launch and only "
9630 "when nothing is mounted."
9631 msgstr ""
9632
9633 #. type: textblock
9634 #: ../fish/guestfish-actions.pod:2609
9635 msgid ""
9636 "Not all of the filesystems returned will be mountable.  In particular, swap "
9637 "partitions are returned in the list.  Also this command does not check that "
9638 "each filesystem found is valid and mountable, and some filesystems might be "
9639 "mountable but require special options.  Filesystems may not all belong to a "
9640 "single logical operating system (use L</inspect-os> to look for OSes)."
9641 msgstr ""
9642
9643 #. type: =head2
9644 #: ../fish/guestfish-actions.pod:2617
9645 msgid "list-partitions"
9646 msgstr ""
9647
9648 #. type: verbatim
9649 #: ../fish/guestfish-actions.pod:2619
9650 #, no-wrap
9651 msgid ""
9652 " list-partitions\n"
9653 "\n"
9654 msgstr ""
9655
9656 #. type: textblock
9657 #: ../fish/guestfish-actions.pod:2621 ../src/guestfs-actions.pod:3836
9658 msgid "List all the partitions detected on all block devices."
9659 msgstr ""
9660
9661 #. type: textblock
9662 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3838
9663 msgid "The full partition device names are returned, eg. C</dev/sda1>"
9664 msgstr ""
9665
9666 #. type: textblock
9667 #: ../fish/guestfish-actions.pod:2625
9668 msgid ""
9669 "This does not return logical volumes.  For that you will need to call L</"
9670 "lvs>."
9671 msgstr ""
9672
9673 #. type: =head2
9674 #: ../fish/guestfish-actions.pod:2630
9675 msgid "ll"
9676 msgstr ""
9677
9678 #. type: verbatim
9679 #: ../fish/guestfish-actions.pod:2632
9680 #, no-wrap
9681 msgid ""
9682 " ll directory\n"
9683 "\n"
9684 msgstr ""
9685
9686 #. type: textblock
9687 #: ../fish/guestfish-actions.pod:2634 ../src/guestfs-actions.pod:3857
9688 msgid ""
9689 "List the files in C<directory> (relative to the root directory, there is no "
9690 "cwd) in the format of 'ls -la'."
9691 msgstr ""
9692
9693 #. type: textblock
9694 #: ../fish/guestfish-actions.pod:2637 ../src/guestfs-actions.pod:3860
9695 msgid ""
9696 "This command is mostly useful for interactive sessions.  It is I<not> "
9697 "intended that you try to parse the output string."
9698 msgstr ""
9699
9700 #. type: =head2
9701 #: ../fish/guestfish-actions.pod:2640
9702 msgid "ln"
9703 msgstr ""
9704
9705 #. type: verbatim
9706 #: ../fish/guestfish-actions.pod:2642
9707 #, no-wrap
9708 msgid ""
9709 " ln target linkname\n"
9710 "\n"
9711 msgstr ""
9712
9713 #. type: textblock
9714 #: ../fish/guestfish-actions.pod:2644 ../src/guestfs-actions.pod:3875
9715 msgid "This command creates a hard link using the C<ln> command."
9716 msgstr ""
9717
9718 #. type: =head2
9719 #: ../fish/guestfish-actions.pod:2646
9720 msgid "ln-f"
9721 msgstr ""
9722
9723 #. type: verbatim
9724 #: ../fish/guestfish-actions.pod:2648
9725 #, no-wrap
9726 msgid ""
9727 " ln-f target linkname\n"
9728 "\n"
9729 msgstr ""
9730
9731 #. type: textblock
9732 #: ../fish/guestfish-actions.pod:2650 ../src/guestfs-actions.pod:3888
9733 msgid ""
9734 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
9735 "option removes the link (C<linkname>) if it exists already."
9736 msgstr ""
9737
9738 #. type: =head2
9739 #: ../fish/guestfish-actions.pod:2653
9740 msgid "ln-s"
9741 msgstr ""
9742
9743 #. type: verbatim
9744 #: ../fish/guestfish-actions.pod:2655
9745 #, no-wrap
9746 msgid ""
9747 " ln-s target linkname\n"
9748 "\n"
9749 msgstr ""
9750
9751 #. type: textblock
9752 #: ../fish/guestfish-actions.pod:2657 ../src/guestfs-actions.pod:3902
9753 msgid "This command creates a symbolic link using the C<ln -s> command."
9754 msgstr ""
9755
9756 #. type: =head2
9757 #: ../fish/guestfish-actions.pod:2659
9758 msgid "ln-sf"
9759 msgstr ""
9760
9761 #. type: verbatim
9762 #: ../fish/guestfish-actions.pod:2661
9763 #, no-wrap
9764 msgid ""
9765 " ln-sf target linkname\n"
9766 "\n"
9767 msgstr ""
9768
9769 #. type: textblock
9770 #: ../fish/guestfish-actions.pod:2663 ../src/guestfs-actions.pod:3915
9771 msgid ""
9772 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
9773 "option removes the link (C<linkname>) if it exists already."
9774 msgstr ""
9775
9776 #. type: =head2
9777 #: ../fish/guestfish-actions.pod:2666
9778 msgid "lremovexattr"
9779 msgstr ""
9780
9781 #. type: verbatim
9782 #: ../fish/guestfish-actions.pod:2668
9783 #, no-wrap
9784 msgid ""
9785 " lremovexattr xattr path\n"
9786 "\n"
9787 msgstr ""
9788
9789 #. type: textblock
9790 #: ../fish/guestfish-actions.pod:2670
9791 msgid ""
9792 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
9793 "it removes an extended attribute of the link itself."
9794 msgstr ""
9795
9796 #. type: =head2
9797 #: ../fish/guestfish-actions.pod:2674
9798 msgid "ls"
9799 msgstr ""
9800
9801 #. type: verbatim
9802 #: ../fish/guestfish-actions.pod:2676
9803 #, no-wrap
9804 msgid ""
9805 " ls directory\n"
9806 "\n"
9807 msgstr ""
9808
9809 #. type: textblock
9810 #: ../fish/guestfish-actions.pod:2678 ../src/guestfs-actions.pod:3943
9811 msgid ""
9812 "List the files in C<directory> (relative to the root directory, there is no "
9813 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
9814 msgstr ""
9815
9816 #. type: textblock
9817 #: ../fish/guestfish-actions.pod:2682
9818 msgid ""
9819 "This command is mostly useful for interactive sessions.  Programs should "
9820 "probably use L</readdir> instead."
9821 msgstr ""
9822
9823 #. type: =head2
9824 #: ../fish/guestfish-actions.pod:2685
9825 msgid "lsetxattr"
9826 msgstr ""
9827
9828 #. type: verbatim
9829 #: ../fish/guestfish-actions.pod:2687
9830 #, no-wrap
9831 msgid ""
9832 " lsetxattr xattr val vallen path\n"
9833 "\n"
9834 msgstr ""
9835
9836 #. type: textblock
9837 #: ../fish/guestfish-actions.pod:2689
9838 msgid ""
9839 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
9840 "sets an extended attribute of the link itself."
9841 msgstr ""
9842
9843 #. type: =head2
9844 #: ../fish/guestfish-actions.pod:2693
9845 msgid "lstat"
9846 msgstr ""
9847
9848 #. type: verbatim
9849 #: ../fish/guestfish-actions.pod:2695
9850 #, no-wrap
9851 msgid ""
9852 " lstat path\n"
9853 "\n"
9854 msgstr ""
9855
9856 #. type: textblock
9857 #: ../fish/guestfish-actions.pod:2697 ../fish/guestfish-actions.pod:4505
9858 #: ../src/guestfs-actions.pod:3979 ../src/guestfs-actions.pod:6758
9859 msgid "Returns file information for the given C<path>."
9860 msgstr ""
9861
9862 #. type: textblock
9863 #: ../fish/guestfish-actions.pod:2699
9864 msgid ""
9865 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
9866 "the link is stat-ed, not the file it refers to."
9867 msgstr ""
9868
9869 #. type: textblock
9870 #: ../fish/guestfish-actions.pod:2703 ../src/guestfs-actions.pod:3985
9871 msgid "This is the same as the C<lstat(2)> system call."
9872 msgstr ""
9873
9874 #. type: =head2
9875 #: ../fish/guestfish-actions.pod:2705
9876 msgid "lstatlist"
9877 msgstr ""
9878
9879 #. type: verbatim
9880 #: ../fish/guestfish-actions.pod:2707
9881 #, no-wrap
9882 msgid ""
9883 " lstatlist path 'names ...'\n"
9884 "\n"
9885 msgstr ""
9886
9887 #. type: textblock
9888 #: ../fish/guestfish-actions.pod:2709
9889 msgid ""
9890 "This call allows you to perform the L</lstat> operation on multiple files, "
9891 "where all files are in the directory C<path>.  C<names> is the list of files "
9892 "from this directory."
9893 msgstr ""
9894
9895 #. type: textblock
9896 #: ../fish/guestfish-actions.pod:2713 ../src/guestfs-actions.pod:4004
9897 msgid ""
9898 "On return you get a list of stat structs, with a one-to-one correspondence "
9899 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
9900 "then the C<ino> field of that structure is set to C<-1>."
9901 msgstr ""
9902
9903 #. type: textblock
9904 #: ../fish/guestfish-actions.pod:2718
9905 msgid ""
9906 "This call is intended for programs that want to efficiently list a directory "
9907 "contents without making many round-trips.  See also L</lxattrlist> for a "
9908 "similarly efficient call for getting extended attributes.  Very long "
9909 "directory listings might cause the protocol message size to be exceeded, "
9910 "causing this call to fail.  The caller must split up such requests into "
9911 "smaller groups of names."
9912 msgstr ""
9913
9914 #. type: =head2
9915 #: ../fish/guestfish-actions.pod:2726
9916 msgid "luks-add-key"
9917 msgstr ""
9918
9919 #. type: verbatim
9920 #: ../fish/guestfish-actions.pod:2728
9921 #, no-wrap
9922 msgid ""
9923 " luks-add-key device keyslot\n"
9924 "\n"
9925 msgstr ""
9926
9927 #. type: textblock
9928 #: ../fish/guestfish-actions.pod:2730 ../src/guestfs-actions.pod:4032
9929 msgid ""
9930 "This command adds a new key on LUKS device C<device>.  C<key> is any "
9931 "existing key, and is used to access the device.  C<newkey> is the new key to "
9932 "add.  C<keyslot> is the key slot that will be replaced."
9933 msgstr ""
9934
9935 #. type: textblock
9936 #: ../fish/guestfish-actions.pod:2735
9937 msgid ""
9938 "Note that if C<keyslot> already contains a key, then this command will "
9939 "fail.  You have to use L</luks-kill-slot> first to remove that key."
9940 msgstr ""
9941
9942 #. type: textblock
9943 #: ../fish/guestfish-actions.pod:2739 ../fish/guestfish-actions.pod:2761
9944 #: ../fish/guestfish-actions.pod:2774 ../fish/guestfish-actions.pod:2788
9945 #: ../fish/guestfish-actions.pod:2814 ../fish/guestfish-actions.pod:2824
9946 msgid ""
9947 "This command has one or more key or passphrase parameters.  Guestfish will "
9948 "prompt for these separately."
9949 msgstr ""
9950
9951 #. type: =head2
9952 #: ../fish/guestfish-actions.pod:2742
9953 msgid "luks-close"
9954 msgstr ""
9955
9956 #. type: verbatim
9957 #: ../fish/guestfish-actions.pod:2744
9958 #, no-wrap
9959 msgid ""
9960 " luks-close device\n"
9961 "\n"
9962 msgstr ""
9963
9964 #. type: textblock
9965 #: ../fish/guestfish-actions.pod:2746
9966 msgid ""
9967 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
9968 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
9969 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
9970 "block device."
9971 msgstr ""
9972
9973 #. type: =head2
9974 #: ../fish/guestfish-actions.pod:2752
9975 msgid "luks-format"
9976 msgstr ""
9977
9978 #. type: verbatim
9979 #: ../fish/guestfish-actions.pod:2754
9980 #, no-wrap
9981 msgid ""
9982 " luks-format device keyslot\n"
9983 "\n"
9984 msgstr ""
9985
9986 #. type: textblock
9987 #: ../fish/guestfish-actions.pod:2756 ../src/guestfs-actions.pod:4073
9988 msgid ""
9989 "This command erases existing data on C<device> and formats the device as a "
9990 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
9991 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
9992 msgstr ""
9993
9994 #. type: textblock
9995 #: ../fish/guestfish-actions.pod:2764 ../fish/guestfish-actions.pod:2777
9996 #: ../fish/guestfish-actions.pod:2864 ../fish/guestfish-actions.pod:3525
9997 #: ../fish/guestfish-actions.pod:4051 ../fish/guestfish-actions.pod:4376
9998 #: ../fish/guestfish-actions.pod:4399 ../fish/guestfish-actions.pod:4421
9999 #: ../fish/guestfish-actions.pod:5167 ../src/guestfs-actions.pod:4080
10000 #: ../src/guestfs-actions.pod:4103 ../src/guestfs-actions.pod:4246
10001 #: ../src/guestfs-actions.pod:5349 ../src/guestfs-actions.pod:6137
10002 #: ../src/guestfs-actions.pod:6565 ../src/guestfs-actions.pod:6595
10003 #: ../src/guestfs-actions.pod:6628 ../src/guestfs-actions.pod:7834
10004 msgid ""
10005 "B<This command is dangerous.  Without careful use you can easily destroy all "
10006 "your data>."
10007 msgstr ""
10008
10009 #. type: =head2
10010 #: ../fish/guestfish-actions.pod:2767
10011 msgid "luks-format-cipher"
10012 msgstr ""
10013
10014 #. type: verbatim
10015 #: ../fish/guestfish-actions.pod:2769
10016 #, no-wrap
10017 msgid ""
10018 " luks-format-cipher device keyslot cipher\n"
10019 "\n"
10020 msgstr ""
10021
10022 #. type: textblock
10023 #: ../fish/guestfish-actions.pod:2771
10024 msgid ""
10025 "This command is the same as L</luks-format> but it also allows you to set "
10026 "the C<cipher> used."
10027 msgstr ""
10028
10029 #. type: =head2
10030 #: ../fish/guestfish-actions.pod:2780
10031 msgid "luks-kill-slot"
10032 msgstr ""
10033
10034 #. type: verbatim
10035 #: ../fish/guestfish-actions.pod:2782
10036 #, no-wrap
10037 msgid ""
10038 " luks-kill-slot device keyslot\n"
10039 "\n"
10040 msgstr ""
10041
10042 #. type: textblock
10043 #: ../fish/guestfish-actions.pod:2784 ../src/guestfs-actions.pod:4120
10044 msgid ""
10045 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10046 "device C<device>.  C<key> must be one of the I<other> keys."
10047 msgstr ""
10048
10049 #. type: =head2
10050 #: ../fish/guestfish-actions.pod:2791
10051 msgid "luks-open"
10052 msgstr ""
10053
10054 #. type: verbatim
10055 #: ../fish/guestfish-actions.pod:2793
10056 #, no-wrap
10057 msgid ""
10058 " luks-open device mapname\n"
10059 "\n"
10060 msgstr ""
10061
10062 #. type: textblock
10063 #: ../fish/guestfish-actions.pod:2795 ../src/guestfs-actions.pod:4140
10064 msgid ""
10065 "This command opens a block device which has been encrypted according to the "
10066 "Linux Unified Key Setup (LUKS) standard."
10067 msgstr ""
10068
10069 #. type: textblock
10070 #: ../fish/guestfish-actions.pod:2798 ../src/guestfs-actions.pod:4143
10071 msgid "C<device> is the encrypted block device or partition."
10072 msgstr ""
10073
10074 #. type: textblock
10075 #: ../fish/guestfish-actions.pod:2800 ../src/guestfs-actions.pod:4145
10076 msgid ""
10077 "The caller must supply one of the keys associated with the LUKS block "
10078 "device, in the C<key> parameter."
10079 msgstr ""
10080
10081 #. type: textblock
10082 #: ../fish/guestfish-actions.pod:2803 ../src/guestfs-actions.pod:4148
10083 msgid ""
10084 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10085 "writes to this block device are decrypted from and encrypted to the "
10086 "underlying C<device> respectively."
10087 msgstr ""
10088
10089 #. type: textblock
10090 #: ../fish/guestfish-actions.pod:2807
10091 msgid ""
10092 "If this block device contains LVM volume groups, then calling L</vgscan> "
10093 "followed by L</vg-activate-all> will make them visible."
10094 msgstr ""
10095
10096 #. type: textblock
10097 #: ../fish/guestfish-actions.pod:2811
10098 msgid "Use L</list-dm-devices> to list all device mapper devices."
10099 msgstr ""
10100
10101 #. type: =head2
10102 #: ../fish/guestfish-actions.pod:2817
10103 msgid "luks-open-ro"
10104 msgstr ""
10105
10106 #. type: verbatim
10107 #: ../fish/guestfish-actions.pod:2819
10108 #, no-wrap
10109 msgid ""
10110 " luks-open-ro device mapname\n"
10111 "\n"
10112 msgstr ""
10113
10114 #. type: textblock
10115 #: ../fish/guestfish-actions.pod:2821
10116 msgid ""
10117 "This is the same as L</luks-open> except that a read-only mapping is created."
10118 msgstr ""
10119
10120 #. type: =head2
10121 #: ../fish/guestfish-actions.pod:2827
10122 msgid "lvcreate"
10123 msgstr ""
10124
10125 #. type: verbatim
10126 #: ../fish/guestfish-actions.pod:2829
10127 #, no-wrap
10128 msgid ""
10129 " lvcreate logvol volgroup mbytes\n"
10130 "\n"
10131 msgstr ""
10132
10133 #. type: textblock
10134 #: ../fish/guestfish-actions.pod:2831 ../src/guestfs-actions.pod:4194
10135 msgid ""
10136 "This creates an LVM logical volume called C<logvol> on the volume group "
10137 "C<volgroup>, with C<size> megabytes."
10138 msgstr ""
10139
10140 #. type: =head2
10141 #: ../fish/guestfish-actions.pod:2834
10142 msgid "lvm-canonical-lv-name"
10143 msgstr ""
10144
10145 #. type: verbatim
10146 #: ../fish/guestfish-actions.pod:2836
10147 #, no-wrap
10148 msgid ""
10149 " lvm-canonical-lv-name lvname\n"
10150 "\n"
10151 msgstr ""
10152
10153 #. type: textblock
10154 #: ../fish/guestfish-actions.pod:2838 ../src/guestfs-actions.pod:4207
10155 msgid ""
10156 "This converts alternative naming schemes for LVs that you might find to the "
10157 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10158 "LV>."
10159 msgstr ""
10160
10161 #. type: textblock
10162 #: ../fish/guestfish-actions.pod:2842 ../src/guestfs-actions.pod:4211
10163 msgid ""
10164 "This command returns an error if the C<lvname> parameter does not refer to a "
10165 "logical volume."
10166 msgstr ""
10167
10168 #. type: textblock
10169 #: ../fish/guestfish-actions.pod:2845
10170 msgid "See also L</is-lv>."
10171 msgstr ""
10172
10173 #. type: =head2
10174 #: ../fish/guestfish-actions.pod:2847
10175 msgid "lvm-clear-filter"
10176 msgstr ""
10177
10178 #. type: verbatim
10179 #: ../fish/guestfish-actions.pod:2849
10180 #, no-wrap
10181 msgid ""
10182 " lvm-clear-filter\n"
10183 "\n"
10184 msgstr ""
10185
10186 #. type: textblock
10187 #: ../fish/guestfish-actions.pod:2851
10188 msgid ""
10189 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
10190 "block device."
10191 msgstr ""
10192
10193 #. type: textblock
10194 #: ../fish/guestfish-actions.pod:2854 ../fish/guestfish-actions.pod:2885
10195 #: ../src/guestfs-actions.pod:4229 ../src/guestfs-actions.pod:4271
10196 msgid ""
10197 "This command also clears the LVM cache and performs a volume group scan."
10198 msgstr ""
10199
10200 #. type: =head2
10201 #: ../fish/guestfish-actions.pod:2857
10202 msgid "lvm-remove-all"
10203 msgstr ""
10204
10205 #. type: verbatim
10206 #: ../fish/guestfish-actions.pod:2859
10207 #, no-wrap
10208 msgid ""
10209 " lvm-remove-all\n"
10210 "\n"
10211 msgstr ""
10212
10213 #. type: textblock
10214 #: ../fish/guestfish-actions.pod:2861 ../src/guestfs-actions.pod:4241
10215 msgid ""
10216 "This command removes all LVM logical volumes, volume groups and physical "
10217 "volumes."
10218 msgstr ""
10219
10220 #. type: =head2
10221 #: ../fish/guestfish-actions.pod:2867
10222 msgid "lvm-set-filter"
10223 msgstr ""
10224
10225 #. type: verbatim
10226 #: ../fish/guestfish-actions.pod:2869
10227 #, no-wrap
10228 msgid ""
10229 " lvm-set-filter 'devices ...'\n"
10230 "\n"
10231 msgstr ""
10232
10233 #. type: textblock
10234 #: ../fish/guestfish-actions.pod:2871 ../src/guestfs-actions.pod:4257
10235 msgid ""
10236 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10237 "block devices in the list C<devices>, and will ignore all other attached "
10238 "block devices."
10239 msgstr ""
10240
10241 #. type: textblock
10242 #: ../fish/guestfish-actions.pod:2875 ../src/guestfs-actions.pod:4261
10243 msgid ""
10244 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10245 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10246 "there are two types of duplication possible: either cloned PVs/VGs which "
10247 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10248 "same name.  In normal operation you cannot create this situation, but you "
10249 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10250 "inside the LVM metadata."
10251 msgstr ""
10252
10253 #. type: textblock
10254 #: ../fish/guestfish-actions.pod:2888 ../src/guestfs-actions.pod:4274
10255 msgid "You can filter whole block devices or individual partitions."
10256 msgstr ""
10257
10258 #. type: textblock
10259 #: ../fish/guestfish-actions.pod:2890 ../src/guestfs-actions.pod:4276
10260 msgid ""
10261 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10262 "filesystem), even if you are not filtering out that VG."
10263 msgstr ""
10264
10265 #. type: =head2
10266 #: ../fish/guestfish-actions.pod:2894
10267 msgid "lvremove"
10268 msgstr ""
10269
10270 #. type: verbatim
10271 #: ../fish/guestfish-actions.pod:2896
10272 #, no-wrap
10273 msgid ""
10274 " lvremove device\n"
10275 "\n"
10276 msgstr ""
10277
10278 #. type: textblock
10279 #: ../fish/guestfish-actions.pod:2898 ../src/guestfs-actions.pod:4290
10280 msgid ""
10281 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10282 "LV, such as C</dev/VG/LV>."
10283 msgstr ""
10284
10285 #. type: textblock
10286 #: ../fish/guestfish-actions.pod:2901 ../src/guestfs-actions.pod:4293
10287 msgid ""
10288 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10289 "dev/VG>."
10290 msgstr ""
10291
10292 #. type: =head2
10293 #: ../fish/guestfish-actions.pod:2904
10294 msgid "lvrename"
10295 msgstr ""
10296
10297 #. type: verbatim
10298 #: ../fish/guestfish-actions.pod:2906
10299 #, no-wrap
10300 msgid ""
10301 " lvrename logvol newlogvol\n"
10302 "\n"
10303 msgstr ""
10304
10305 #. type: textblock
10306 #: ../fish/guestfish-actions.pod:2908 ../src/guestfs-actions.pod:4307
10307 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10308 msgstr ""
10309
10310 #. type: =head2
10311 #: ../fish/guestfish-actions.pod:2910
10312 msgid "lvresize"
10313 msgstr ""
10314
10315 #. type: verbatim
10316 #: ../fish/guestfish-actions.pod:2912
10317 #, no-wrap
10318 msgid ""
10319 " lvresize device mbytes\n"
10320 "\n"
10321 msgstr ""
10322
10323 #. type: textblock
10324 #: ../fish/guestfish-actions.pod:2914 ../src/guestfs-actions.pod:4320
10325 msgid ""
10326 "This resizes (expands or shrinks) an existing LVM logical volume to "
10327 "C<mbytes>.  When reducing, data in the reduced part is lost."
10328 msgstr ""
10329
10330 #. type: =head2
10331 #: ../fish/guestfish-actions.pod:2918
10332 msgid "lvresize-free"
10333 msgstr ""
10334
10335 #. type: verbatim
10336 #: ../fish/guestfish-actions.pod:2920
10337 #, no-wrap
10338 msgid ""
10339 " lvresize-free lv percent\n"
10340 "\n"
10341 msgstr ""
10342
10343 #. type: textblock
10344 #: ../fish/guestfish-actions.pod:2922 ../src/guestfs-actions.pod:4335
10345 msgid ""
10346 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10347 "remaining free space in the volume group.  Commonly you would call this with "
10348 "pc = 100 which expands the logical volume as much as possible, using all "
10349 "remaining free space in the volume group."
10350 msgstr ""
10351
10352 #. type: =head2
10353 #: ../fish/guestfish-actions.pod:2928
10354 msgid "lvs"
10355 msgstr ""
10356
10357 #. type: verbatim
10358 #: ../fish/guestfish-actions.pod:2930
10359 #, no-wrap
10360 msgid ""
10361 " lvs\n"
10362 "\n"
10363 msgstr ""
10364
10365 #. type: textblock
10366 #: ../fish/guestfish-actions.pod:2932 ../src/guestfs-actions.pod:4350
10367 msgid ""
10368 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10369 "(8)> command."
10370 msgstr ""
10371
10372 #. type: textblock
10373 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4353
10374 msgid ""
10375 "This returns a list of the logical volume device names (eg. C</dev/"
10376 "VolGroup00/LogVol00>)."
10377 msgstr ""
10378
10379 #. type: textblock
10380 #: ../fish/guestfish-actions.pod:2938
10381 msgid "See also L</lvs-full>, L</list-filesystems>."
10382 msgstr ""
10383
10384 #. type: =head2
10385 #: ../fish/guestfish-actions.pod:2940
10386 msgid "lvs-full"
10387 msgstr ""
10388
10389 #. type: verbatim
10390 #: ../fish/guestfish-actions.pod:2942
10391 #, no-wrap
10392 msgid ""
10393 " lvs-full\n"
10394 "\n"
10395 msgstr ""
10396
10397 #. type: textblock
10398 #: ../fish/guestfish-actions.pod:2944 ../src/guestfs-actions.pod:4369
10399 msgid ""
10400 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10401 "(8)> command.  The \"full\" version includes all fields."
10402 msgstr ""
10403
10404 #. type: =head2
10405 #: ../fish/guestfish-actions.pod:2947
10406 msgid "lvuuid"
10407 msgstr ""
10408
10409 #. type: verbatim
10410 #: ../fish/guestfish-actions.pod:2949
10411 #, no-wrap
10412 msgid ""
10413 " lvuuid device\n"
10414 "\n"
10415 msgstr ""
10416
10417 #. type: textblock
10418 #: ../fish/guestfish-actions.pod:2951 ../src/guestfs-actions.pod:4384
10419 msgid "This command returns the UUID of the LVM LV C<device>."
10420 msgstr ""
10421
10422 #. type: =head2
10423 #: ../fish/guestfish-actions.pod:2953
10424 msgid "lxattrlist"
10425 msgstr ""
10426
10427 #. type: verbatim
10428 #: ../fish/guestfish-actions.pod:2955
10429 #, no-wrap
10430 msgid ""
10431 " lxattrlist path 'names ...'\n"
10432 "\n"
10433 msgstr ""
10434
10435 #. type: textblock
10436 #: ../fish/guestfish-actions.pod:2957 ../src/guestfs-actions.pod:4398
10437 msgid ""
10438 "This call allows you to get the extended attributes of multiple files, where "
10439 "all files are in the directory C<path>.  C<names> is the list of files from "
10440 "this directory."
10441 msgstr ""
10442
10443 #. type: textblock
10444 #: ../fish/guestfish-actions.pod:2961 ../src/guestfs-actions.pod:4402
10445 msgid ""
10446 "On return you get a flat list of xattr structs which must be interpreted "
10447 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
10448 "C<attrval> in this struct is zero-length to indicate there was an error "
10449 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
10450 "number (the number of following attributes for this file, which could be C<"
10451 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
10452 "for the first named file.  This repeats for the second and subsequent files."
10453 msgstr ""
10454
10455 #. type: textblock
10456 #: ../fish/guestfish-actions.pod:2971
10457 msgid ""
10458 "This call is intended for programs that want to efficiently list a directory "
10459 "contents without making many round-trips.  See also L</lstatlist> for a "
10460 "similarly efficient call for getting standard stats.  Very long directory "
10461 "listings might cause the protocol message size to be exceeded, causing this "
10462 "call to fail.  The caller must split up such requests into smaller groups of "
10463 "names."
10464 msgstr ""
10465
10466 #. type: =head2
10467 #: ../fish/guestfish-actions.pod:2979
10468 msgid "mkdir"
10469 msgstr ""
10470
10471 #. type: verbatim
10472 #: ../fish/guestfish-actions.pod:2981
10473 #, no-wrap
10474 msgid ""
10475 " mkdir path\n"
10476 "\n"
10477 msgstr ""
10478
10479 #. type: textblock
10480 #: ../fish/guestfish-actions.pod:2983 ../src/guestfs-actions.pod:4432
10481 msgid "Create a directory named C<path>."
10482 msgstr ""
10483
10484 #. type: =head2
10485 #: ../fish/guestfish-actions.pod:2985
10486 msgid "mkdir-mode"
10487 msgstr ""
10488
10489 #. type: verbatim
10490 #: ../fish/guestfish-actions.pod:2987
10491 #, no-wrap
10492 msgid ""
10493 " mkdir-mode path mode\n"
10494 "\n"
10495 msgstr ""
10496
10497 #. type: textblock
10498 #: ../fish/guestfish-actions.pod:2989 ../src/guestfs-actions.pod:4445
10499 msgid ""
10500 "This command creates a directory, setting the initial permissions of the "
10501 "directory to C<mode>."
10502 msgstr ""
10503
10504 #. type: textblock
10505 #: ../fish/guestfish-actions.pod:2992 ../src/guestfs-actions.pod:4448
10506 msgid ""
10507 "For common Linux filesystems, the actual mode which is set will be C<mode & "
10508 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
10509 "other ways."
10510 msgstr ""
10511
10512 #. type: textblock
10513 #: ../fish/guestfish-actions.pod:2996
10514 msgid "See also L</mkdir>, L</umask>"
10515 msgstr ""
10516
10517 #. type: =head2
10518 #: ../fish/guestfish-actions.pod:2998
10519 msgid "mkdir-p"
10520 msgstr ""
10521
10522 #. type: verbatim
10523 #: ../fish/guestfish-actions.pod:3000
10524 #, no-wrap
10525 msgid ""
10526 " mkdir-p path\n"
10527 "\n"
10528 msgstr ""
10529
10530 #. type: textblock
10531 #: ../fish/guestfish-actions.pod:3002 ../src/guestfs-actions.pod:4464
10532 msgid ""
10533 "Create a directory named C<path>, creating any parent directories as "
10534 "necessary.  This is like the C<mkdir -p> shell command."
10535 msgstr ""
10536
10537 #. type: =head2
10538 #: ../fish/guestfish-actions.pod:3005
10539 msgid "mkdtemp"
10540 msgstr ""
10541
10542 #. type: verbatim
10543 #: ../fish/guestfish-actions.pod:3007
10544 #, no-wrap
10545 msgid ""
10546 " mkdtemp template\n"
10547 "\n"
10548 msgstr ""
10549
10550 #. type: textblock
10551 #: ../fish/guestfish-actions.pod:3009 ../src/guestfs-actions.pod:4477
10552 msgid ""
10553 "This command creates a temporary directory.  The C<template> parameter "
10554 "should be a full pathname for the temporary directory name with the final "
10555 "six characters being \"XXXXXX\"."
10556 msgstr ""
10557
10558 #. type: textblock
10559 #: ../fish/guestfish-actions.pod:3014 ../src/guestfs-actions.pod:4482
10560 msgid ""
10561 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
10562 "being suitable for Windows filesystems."
10563 msgstr ""
10564
10565 #. type: textblock
10566 #: ../fish/guestfish-actions.pod:3017 ../src/guestfs-actions.pod:4485
10567 msgid "The name of the temporary directory that was created is returned."
10568 msgstr ""
10569
10570 #. type: textblock
10571 #: ../fish/guestfish-actions.pod:3020 ../src/guestfs-actions.pod:4488
10572 msgid "The temporary directory is created with mode 0700 and is owned by root."
10573 msgstr ""
10574
10575 #. type: textblock
10576 #: ../fish/guestfish-actions.pod:3023 ../src/guestfs-actions.pod:4491
10577 msgid ""
10578 "The caller is responsible for deleting the temporary directory and its "
10579 "contents after use."
10580 msgstr ""
10581
10582 #. type: textblock
10583 #: ../fish/guestfish-actions.pod:3026 ../src/guestfs-actions.pod:4494
10584 msgid "See also: L<mkdtemp(3)>"
10585 msgstr ""
10586
10587 #. type: =head2
10588 #: ../fish/guestfish-actions.pod:3028
10589 msgid "mke2fs-J"
10590 msgstr ""
10591
10592 #. type: verbatim
10593 #: ../fish/guestfish-actions.pod:3030
10594 #, no-wrap
10595 msgid ""
10596 " mke2fs-J fstype blocksize device journal\n"
10597 "\n"
10598 msgstr ""
10599
10600 #. type: textblock
10601 #: ../fish/guestfish-actions.pod:3032 ../src/guestfs-actions.pod:4510
10602 msgid ""
10603 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10604 "C<journal>.  It is equivalent to the command:"
10605 msgstr ""
10606
10607 #. type: verbatim
10608 #: ../fish/guestfish-actions.pod:3036 ../src/guestfs-actions.pod:4514
10609 #, no-wrap
10610 msgid ""
10611 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
10612 "\n"
10613 msgstr ""
10614
10615 #. type: textblock
10616 #: ../fish/guestfish-actions.pod:3038
10617 msgid "See also L</mke2journal>."
10618 msgstr ""
10619
10620 #. type: =head2
10621 #: ../fish/guestfish-actions.pod:3040
10622 msgid "mke2fs-JL"
10623 msgstr ""
10624
10625 #. type: verbatim
10626 #: ../fish/guestfish-actions.pod:3042
10627 #, no-wrap
10628 msgid ""
10629 " mke2fs-JL fstype blocksize device label\n"
10630 "\n"
10631 msgstr ""
10632
10633 #. type: textblock
10634 #: ../fish/guestfish-actions.pod:3044 ../src/guestfs-actions.pod:4531
10635 msgid ""
10636 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10637 "the journal labeled C<label>."
10638 msgstr ""
10639
10640 #. type: textblock
10641 #: ../fish/guestfish-actions.pod:3047
10642 msgid "See also L</mke2journal-L>."
10643 msgstr ""
10644
10645 #. type: =head2
10646 #: ../fish/guestfish-actions.pod:3049
10647 msgid "mke2fs-JU"
10648 msgstr ""
10649
10650 #. type: verbatim
10651 #: ../fish/guestfish-actions.pod:3051
10652 #, no-wrap
10653 msgid ""
10654 " mke2fs-JU fstype blocksize device uuid\n"
10655 "\n"
10656 msgstr ""
10657
10658 #. type: textblock
10659 #: ../fish/guestfish-actions.pod:3053 ../src/guestfs-actions.pod:4549
10660 msgid ""
10661 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10662 "the journal with UUID C<uuid>."
10663 msgstr ""
10664
10665 #. type: textblock
10666 #: ../fish/guestfish-actions.pod:3056
10667 msgid "See also L</mke2journal-U>."
10668 msgstr ""
10669
10670 #. type: =head2
10671 #: ../fish/guestfish-actions.pod:3058
10672 msgid "mke2journal"
10673 msgstr ""
10674
10675 #. type: verbatim
10676 #: ../fish/guestfish-actions.pod:3060
10677 #, no-wrap
10678 msgid ""
10679 " mke2journal blocksize device\n"
10680 "\n"
10681 msgstr ""
10682
10683 #. type: textblock
10684 #: ../fish/guestfish-actions.pod:3062 ../src/guestfs-actions.pod:4565
10685 msgid ""
10686 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
10687 "command:"
10688 msgstr ""
10689
10690 #. type: verbatim
10691 #: ../fish/guestfish-actions.pod:3065 ../src/guestfs-actions.pod:4568
10692 #, no-wrap
10693 msgid ""
10694 " mke2fs -O journal_dev -b blocksize device\n"
10695 "\n"
10696 msgstr ""
10697
10698 #. type: =head2
10699 #: ../fish/guestfish-actions.pod:3067
10700 msgid "mke2journal-L"
10701 msgstr ""
10702
10703 #. type: verbatim
10704 #: ../fish/guestfish-actions.pod:3069
10705 #, no-wrap
10706 msgid ""
10707 " mke2journal-L blocksize label device\n"
10708 "\n"
10709 msgstr ""
10710
10711 #. type: textblock
10712 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4582
10713 msgid "This creates an ext2 external journal on C<device> with label C<label>."
10714 msgstr ""
10715
10716 #. type: =head2
10717 #: ../fish/guestfish-actions.pod:3073
10718 msgid "mke2journal-U"
10719 msgstr ""
10720
10721 #. type: verbatim
10722 #: ../fish/guestfish-actions.pod:3075
10723 #, no-wrap
10724 msgid ""
10725 " mke2journal-U blocksize uuid device\n"
10726 "\n"
10727 msgstr ""
10728
10729 #. type: textblock
10730 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4596
10731 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
10732 msgstr ""
10733
10734 #. type: =head2
10735 #: ../fish/guestfish-actions.pod:3079
10736 msgid "mkfifo"
10737 msgstr ""
10738
10739 #. type: verbatim
10740 #: ../fish/guestfish-actions.pod:3081
10741 #, no-wrap
10742 msgid ""
10743 " mkfifo mode path\n"
10744 "\n"
10745 msgstr ""
10746
10747 #. type: textblock
10748 #: ../fish/guestfish-actions.pod:3083
10749 msgid ""
10750 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
10751 "is just a convenient wrapper around L</mknod>."
10752 msgstr ""
10753
10754 #. type: =head2
10755 #: ../fish/guestfish-actions.pod:3089
10756 msgid "mkfs"
10757 msgstr ""
10758
10759 #. type: verbatim
10760 #: ../fish/guestfish-actions.pod:3091
10761 #, no-wrap
10762 msgid ""
10763 " mkfs fstype device\n"
10764 "\n"
10765 msgstr ""
10766
10767 #. type: textblock
10768 #: ../fish/guestfish-actions.pod:3093 ../src/guestfs-actions.pod:4626
10769 msgid ""
10770 "This creates a filesystem on C<device> (usually a partition or LVM logical "
10771 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
10772 msgstr ""
10773
10774 #. type: =head2
10775 #: ../fish/guestfish-actions.pod:3097
10776 msgid "mkfs-b"
10777 msgstr ""
10778
10779 #. type: verbatim
10780 #: ../fish/guestfish-actions.pod:3099
10781 #, no-wrap
10782 msgid ""
10783 " mkfs-b fstype blocksize device\n"
10784 "\n"
10785 msgstr ""
10786
10787 #. type: textblock
10788 #: ../fish/guestfish-actions.pod:3101
10789 msgid ""
10790 "This call is similar to L</mkfs>, but it allows you to control the block "
10791 "size of the resulting filesystem.  Supported block sizes depend on the "
10792 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
10793 msgstr ""
10794
10795 #. type: textblock
10796 #: ../fish/guestfish-actions.pod:3106 ../fish/guestfish-actions.pod:3133
10797 #: ../src/guestfs-actions.pod:4647 ../src/guestfs-actions.pod:4692
10798 msgid ""
10799 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
10800 "cluster size."
10801 msgstr ""
10802
10803 #. type: textblock
10804 #: ../fish/guestfish-actions.pod:3109
10805 msgid ""
10806 "This function is deprecated.  In new code, use the L</mkfs_opts> call "
10807 "instead."
10808 msgstr ""
10809
10810 #. type: =head2
10811 #: ../fish/guestfish-actions.pod:3116
10812 msgid "mkfs-opts"
10813 msgstr ""
10814
10815 #. type: verbatim
10816 #: ../fish/guestfish-actions.pod:3118
10817 #, no-wrap
10818 msgid ""
10819 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
10820 "\n"
10821 msgstr ""
10822
10823 #. type: textblock
10824 #: ../fish/guestfish-actions.pod:3120 ../src/guestfs-actions.pod:4679
10825 msgid ""
10826 "This function creates a filesystem on C<device>.  The filesystem type is "
10827 "C<fstype>, for example C<ext3>."
10828 msgstr ""
10829
10830 #. type: =item
10831 #: ../fish/guestfish-actions.pod:3127 ../src/guestfs-actions.pod:4686
10832 msgid "C<blocksize>"
10833 msgstr ""
10834
10835 #. type: textblock
10836 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4688
10837 msgid ""
10838 "The filesystem block size.  Supported block sizes depend on the filesystem "
10839 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
10840 "filesystems."
10841 msgstr ""
10842
10843 #. type: textblock
10844 #: ../fish/guestfish-actions.pod:3136 ../src/guestfs-actions.pod:4695
10845 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
10846 msgstr ""
10847
10848 #. type: =item
10849 #: ../fish/guestfish-actions.pod:3138 ../src/guestfs-actions.pod:4697
10850 msgid "C<features>"
10851 msgstr ""
10852
10853 #. type: textblock
10854 #: ../fish/guestfish-actions.pod:3140 ../src/guestfs-actions.pod:4699
10855 msgid "This passes the I<-O> parameter to the external mkfs program."
10856 msgstr ""
10857
10858 #. type: textblock
10859 #: ../fish/guestfish-actions.pod:3142 ../src/guestfs-actions.pod:4701
10860 msgid ""
10861 "For certain filesystem types, this allows extra filesystem features to be "
10862 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
10863 msgstr ""
10864
10865 #. type: textblock
10866 #: ../fish/guestfish-actions.pod:3146 ../src/guestfs-actions.pod:4705
10867 msgid ""
10868 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
10869 "type."
10870 msgstr ""
10871
10872 #. type: =item
10873 #: ../fish/guestfish-actions.pod:3149 ../src/guestfs-actions.pod:4708
10874 msgid "C<inode>"
10875 msgstr ""
10876
10877 #. type: textblock
10878 #: ../fish/guestfish-actions.pod:3151 ../src/guestfs-actions.pod:4710
10879 msgid ""
10880 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
10881 "sets the inode size (only for ext2/3/4 filesystems at present)."
10882 msgstr ""
10883
10884 #. type: =item
10885 #: ../fish/guestfish-actions.pod:3154 ../src/guestfs-actions.pod:4713
10886 msgid "C<sectorsize>"
10887 msgstr ""
10888
10889 #. type: textblock
10890 #: ../fish/guestfish-actions.pod:3156 ../src/guestfs-actions.pod:4715
10891 msgid ""
10892 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
10893 "sets sector size for ufs filesystem."
10894 msgstr ""
10895
10896 #. type: =head2
10897 #: ../fish/guestfish-actions.pod:3163
10898 msgid "mkmountpoint"
10899 msgstr ""
10900
10901 #. type: verbatim
10902 #: ../fish/guestfish-actions.pod:3165
10903 #, no-wrap
10904 msgid ""
10905 " mkmountpoint exemptpath\n"
10906 "\n"
10907 msgstr ""
10908
10909 #. type: textblock
10910 #: ../fish/guestfish-actions.pod:3167
10911 msgid ""
10912 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
10913 "to create extra mountpoints before mounting the first filesystem."
10914 msgstr ""
10915
10916 #. type: textblock
10917 #: ../fish/guestfish-actions.pod:3171 ../src/guestfs-actions.pod:4758
10918 msgid ""
10919 "These calls are I<only> necessary in some very limited circumstances, mainly "
10920 "the case where you want to mount a mix of unrelated and/or read-only "
10921 "filesystems together."
10922 msgstr ""
10923
10924 #. type: textblock
10925 #: ../fish/guestfish-actions.pod:3175 ../src/guestfs-actions.pod:4762
10926 msgid ""
10927 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
10928 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
10929 "inside that.  You can unpack this as follows in guestfish:"
10930 msgstr ""
10931
10932 #. type: verbatim
10933 #: ../fish/guestfish-actions.pod:3180 ../src/guestfs-actions.pod:4767
10934 #, no-wrap
10935 msgid ""
10936 " add-ro Fedora-11-i686-Live.iso\n"
10937 " run\n"
10938 " mkmountpoint /cd\n"
10939 " mkmountpoint /sqsh\n"
10940 " mkmountpoint /ext3fs\n"
10941 " mount /dev/sda /cd\n"
10942 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
10943 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
10944 "\n"
10945 msgstr ""
10946
10947 #. type: textblock
10948 #: ../fish/guestfish-actions.pod:3189 ../src/guestfs-actions.pod:4776
10949 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
10950 msgstr ""
10951
10952 #. type: textblock
10953 #: ../fish/guestfish-actions.pod:3191
10954 msgid ""
10955 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
10956 "unexpected errors if you try to mix these calls.  It is safest to manually "
10957 "unmount filesystems and remove mountpoints after use."
10958 msgstr ""
10959
10960 #. type: textblock
10961 #: ../fish/guestfish-actions.pod:3195
10962 msgid ""
10963 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
10964 "for this to work for manual mountpoints, you must ensure that the innermost "
10965 "mountpoints have the longest pathnames, as in the example code above."
10966 msgstr ""
10967
10968 #. type: textblock
10969 #: ../fish/guestfish-actions.pod:3200 ../src/guestfs-actions.pod:4787
10970 msgid ""
10971 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
10972 msgstr ""
10973
10974 #. type: textblock
10975 #: ../fish/guestfish-actions.pod:3202
10976 msgid ""
10977 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
10978 "L</umount-all> to be called when the handle is closed which can also trigger "
10979 "these issues."
10980 msgstr ""
10981
10982 #. type: =head2
10983 #: ../fish/guestfish-actions.pod:3206
10984 msgid "mknod"
10985 msgstr ""
10986
10987 #. type: verbatim
10988 #: ../fish/guestfish-actions.pod:3208
10989 #, no-wrap
10990 msgid ""
10991 " mknod mode devmajor devminor path\n"
10992 "\n"
10993 msgstr ""
10994
10995 #. type: textblock
10996 #: ../fish/guestfish-actions.pod:3210 ../src/guestfs-actions.pod:4806
10997 msgid ""
10998 "This call creates block or character special devices, or named pipes (FIFOs)."
10999 msgstr ""
11000
11001 #. type: textblock
11002 #: ../fish/guestfish-actions.pod:3213 ../src/guestfs-actions.pod:4809
11003 msgid ""
11004 "The C<mode> parameter should be the mode, using the standard constants.  "
11005 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11006 "used when creating block and character special devices."
11007 msgstr ""
11008
11009 #. type: textblock
11010 #: ../fish/guestfish-actions.pod:3218
11011 msgid ""
11012 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11013 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11014 "regular file).  These constants are available in the standard Linux header "
11015 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
11016 "wrappers around this command which bitwise OR in the appropriate constant "
11017 "for you."
11018 msgstr ""
11019
11020 #. type: =head2
11021 #: ../fish/guestfish-actions.pod:3228
11022 msgid "mknod-b"
11023 msgstr ""
11024
11025 #. type: verbatim
11026 #: ../fish/guestfish-actions.pod:3230
11027 #, no-wrap
11028 msgid ""
11029 " mknod-b mode devmajor devminor path\n"
11030 "\n"
11031 msgstr ""
11032
11033 #. type: textblock
11034 #: ../fish/guestfish-actions.pod:3232
11035 msgid ""
11036 "This call creates a block device node called C<path> with mode C<mode> and "
11037 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11038 "wrapper around L</mknod>."
11039 msgstr ""
11040
11041 #. type: =head2
11042 #: ../fish/guestfish-actions.pod:3238
11043 msgid "mknod-c"
11044 msgstr ""
11045
11046 #. type: verbatim
11047 #: ../fish/guestfish-actions.pod:3240
11048 #, no-wrap
11049 msgid ""
11050 " mknod-c mode devmajor devminor path\n"
11051 "\n"
11052 msgstr ""
11053
11054 #. type: textblock
11055 #: ../fish/guestfish-actions.pod:3242
11056 msgid ""
11057 "This call creates a char device node called C<path> with mode C<mode> and "
11058 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11059 "wrapper around L</mknod>."
11060 msgstr ""
11061
11062 #. type: =head2
11063 #: ../fish/guestfish-actions.pod:3248
11064 msgid "mkswap"
11065 msgstr ""
11066
11067 #. type: verbatim
11068 #: ../fish/guestfish-actions.pod:3250
11069 #, no-wrap
11070 msgid ""
11071 " mkswap device\n"
11072 "\n"
11073 msgstr ""
11074
11075 #. type: textblock
11076 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:4872
11077 msgid "Create a swap partition on C<device>."
11078 msgstr ""
11079
11080 #. type: =head2
11081 #: ../fish/guestfish-actions.pod:3254
11082 msgid "mkswap-L"
11083 msgstr ""
11084
11085 #. type: verbatim
11086 #: ../fish/guestfish-actions.pod:3256
11087 #, no-wrap
11088 msgid ""
11089 " mkswap-L label device\n"
11090 "\n"
11091 msgstr ""
11092
11093 #. type: textblock
11094 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:4885
11095 msgid "Create a swap partition on C<device> with label C<label>."
11096 msgstr ""
11097
11098 #. type: textblock
11099 #: ../fish/guestfish-actions.pod:3260 ../src/guestfs-actions.pod:4887
11100 msgid ""
11101 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11102 "sda>), just to a partition.  This appears to be a limitation of the kernel "
11103 "or swap tools."
11104 msgstr ""
11105
11106 #. type: =head2
11107 #: ../fish/guestfish-actions.pod:3264
11108 msgid "mkswap-U"
11109 msgstr ""
11110
11111 #. type: verbatim
11112 #: ../fish/guestfish-actions.pod:3266
11113 #, no-wrap
11114 msgid ""
11115 " mkswap-U uuid device\n"
11116 "\n"
11117 msgstr ""
11118
11119 #. type: textblock
11120 #: ../fish/guestfish-actions.pod:3268 ../src/guestfs-actions.pod:4902
11121 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11122 msgstr ""
11123
11124 #. type: =head2
11125 #: ../fish/guestfish-actions.pod:3270
11126 msgid "mkswap-file"
11127 msgstr ""
11128
11129 #. type: verbatim
11130 #: ../fish/guestfish-actions.pod:3272
11131 #, no-wrap
11132 msgid ""
11133 " mkswap-file path\n"
11134 "\n"
11135 msgstr ""
11136
11137 #. type: textblock
11138 #: ../fish/guestfish-actions.pod:3274 ../src/guestfs-actions.pod:4914
11139 msgid "Create a swap file."
11140 msgstr ""
11141
11142 #. type: textblock
11143 #: ../fish/guestfish-actions.pod:3276
11144 msgid ""
11145 "This command just writes a swap file signature to an existing file.  To "
11146 "create the file itself, use something like L</fallocate>."
11147 msgstr ""
11148
11149 #. type: =head2
11150 #: ../fish/guestfish-actions.pod:3279
11151 msgid "modprobe"
11152 msgstr ""
11153
11154 #. type: verbatim
11155 #: ../fish/guestfish-actions.pod:3281
11156 #, no-wrap
11157 msgid ""
11158 " modprobe modulename\n"
11159 "\n"
11160 msgstr ""
11161
11162 #. type: textblock
11163 #: ../fish/guestfish-actions.pod:3283 ../src/guestfs-actions.pod:4929
11164 msgid "This loads a kernel module in the appliance."
11165 msgstr ""
11166
11167 #. type: textblock
11168 #: ../fish/guestfish-actions.pod:3285 ../src/guestfs-actions.pod:4931
11169 msgid ""
11170 "The kernel module must have been whitelisted when libguestfs was built (see "
11171 "C<appliance/kmod.whitelist.in> in the source)."
11172 msgstr ""
11173
11174 #. type: =head2
11175 #: ../fish/guestfish-actions.pod:3288
11176 msgid "mount"
11177 msgstr ""
11178
11179 #. type: verbatim
11180 #: ../fish/guestfish-actions.pod:3290
11181 #, no-wrap
11182 msgid ""
11183 " mount device mountpoint\n"
11184 "\n"
11185 msgstr ""
11186
11187 #. type: textblock
11188 #: ../fish/guestfish-actions.pod:3292 ../src/guestfs-actions.pod:4945
11189 msgid ""
11190 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11191 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11192 "those block devices contain partitions, they will have the usual names (eg. "
11193 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11194 msgstr ""
11195
11196 #. type: textblock
11197 #: ../fish/guestfish-actions.pod:3298 ../src/guestfs-actions.pod:4951
11198 msgid ""
11199 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11200 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11201 "mounted on directories which already exist."
11202 msgstr ""
11203
11204 #. type: textblock
11205 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:4956
11206 msgid ""
11207 "The mounted filesystem is writable, if we have sufficient permissions on the "
11208 "underlying device."
11209 msgstr ""
11210
11211 #. type: textblock
11212 #: ../fish/guestfish-actions.pod:3306
11213 msgid ""
11214 "B<Important note:> When you use this call, the filesystem options C<sync> "
11215 "and C<noatime> are set implicitly.  This was originally done because we "
11216 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11217 "very large negative performance impact and negligible effect on "
11218 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
11219 "code that needs performance, and instead use L</mount-options> (use an empty "
11220 "string for the first parameter if you don't want any options)."
11221 msgstr ""
11222
11223 #. type: textblock
11224 #: ../fish/guestfish-actions.pod:3316
11225 msgid ""
11226 "This function is deprecated.  In new code, use the L</mount_options> call "
11227 "instead."
11228 msgstr ""
11229
11230 #. type: =head2
11231 #: ../fish/guestfish-actions.pod:3323
11232 msgid "mount-9p"
11233 msgstr ""
11234
11235 #. type: verbatim
11236 #: ../fish/guestfish-actions.pod:3325
11237 #, no-wrap
11238 msgid ""
11239 " mount-9p mounttag mountpoint [options:..]\n"
11240 "\n"
11241 msgstr ""
11242
11243 #. type: textblock
11244 #: ../fish/guestfish-actions.pod:3327 ../src/guestfs-actions.pod:4995
11245 msgid ""
11246 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
11247 "C<mountpoint>."
11248 msgstr ""
11249
11250 #. type: textblock
11251 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:4998
11252 msgid ""
11253 "If required, C<trans=virtio> will be automatically added to the options.  "
11254 "Any other options required can be passed in the optional C<options> "
11255 "parameter."
11256 msgstr ""
11257
11258 #. type: =head2
11259 #: ../fish/guestfish-actions.pod:3336
11260 msgid "mount-loop"
11261 msgstr ""
11262
11263 #. type: verbatim
11264 #: ../fish/guestfish-actions.pod:3338
11265 #, no-wrap
11266 msgid ""
11267 " mount-loop file mountpoint\n"
11268 "\n"
11269 msgstr ""
11270
11271 #. type: textblock
11272 #: ../fish/guestfish-actions.pod:3340 ../src/guestfs-actions.pod:5037
11273 msgid ""
11274 "This command lets you mount C<file> (a filesystem image in a file) on a "
11275 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11276 "mountpoint>."
11277 msgstr ""
11278
11279 #. type: =head2
11280 #: ../fish/guestfish-actions.pod:3344
11281 msgid "mount-options"
11282 msgstr ""
11283
11284 #. type: verbatim
11285 #: ../fish/guestfish-actions.pod:3346
11286 #, no-wrap
11287 msgid ""
11288 " mount-options options device mountpoint\n"
11289 "\n"
11290 msgstr ""
11291
11292 #. type: textblock
11293 #: ../fish/guestfish-actions.pod:3348
11294 msgid ""
11295 "This is the same as the L</mount> command, but it allows you to set the "
11296 "mount options as for the L<mount(8)> I<-o> flag."
11297 msgstr ""
11298
11299 #. type: textblock
11300 #: ../fish/guestfish-actions.pod:3352 ../src/guestfs-actions.pod:5057
11301 msgid ""
11302 "If the C<options> parameter is an empty string, then no options are passed "
11303 "(all options default to whatever the filesystem uses)."
11304 msgstr ""
11305
11306 #. type: =head2
11307 #: ../fish/guestfish-actions.pod:3356
11308 msgid "mount-ro"
11309 msgstr ""
11310
11311 #. type: verbatim
11312 #: ../fish/guestfish-actions.pod:3358
11313 #, no-wrap
11314 msgid ""
11315 " mount-ro device mountpoint\n"
11316 "\n"
11317 msgstr ""
11318
11319 #. type: textblock
11320 #: ../fish/guestfish-actions.pod:3360
11321 msgid ""
11322 "This is the same as the L</mount> command, but it mounts the filesystem with "
11323 "the read-only (I<-o ro>) flag."
11324 msgstr ""
11325
11326 #. type: =head2
11327 #: ../fish/guestfish-actions.pod:3363
11328 msgid "mount-vfs"
11329 msgstr ""
11330
11331 #. type: verbatim
11332 #: ../fish/guestfish-actions.pod:3365
11333 #, no-wrap
11334 msgid ""
11335 " mount-vfs options vfstype device mountpoint\n"
11336 "\n"
11337 msgstr ""
11338
11339 #. type: textblock
11340 #: ../fish/guestfish-actions.pod:3367
11341 msgid ""
11342 "This is the same as the L</mount> command, but it allows you to set both the "
11343 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
11344 msgstr ""
11345
11346 #. type: =head2
11347 #: ../fish/guestfish-actions.pod:3371
11348 msgid "mountpoints"
11349 msgstr ""
11350
11351 #. type: verbatim
11352 #: ../fish/guestfish-actions.pod:3373
11353 #, no-wrap
11354 msgid ""
11355 " mountpoints\n"
11356 "\n"
11357 msgstr ""
11358
11359 #. type: textblock
11360 #: ../fish/guestfish-actions.pod:3375
11361 msgid ""
11362 "This call is similar to L</mounts>.  That call returns a list of devices.  "
11363 "This one returns a hash table (map) of device name to directory where the "
11364 "device is mounted."
11365 msgstr ""
11366
11367 #. type: =head2
11368 #: ../fish/guestfish-actions.pod:3379
11369 msgid "mounts"
11370 msgstr ""
11371
11372 #. type: verbatim
11373 #: ../fish/guestfish-actions.pod:3381
11374 #, no-wrap
11375 msgid ""
11376 " mounts\n"
11377 "\n"
11378 msgstr ""
11379
11380 #. type: textblock
11381 #: ../fish/guestfish-actions.pod:3383 ../src/guestfs-actions.pod:5118
11382 msgid ""
11383 "This returns the list of currently mounted filesystems.  It returns the list "
11384 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
11385 msgstr ""
11386
11387 #. type: textblock
11388 #: ../fish/guestfish-actions.pod:3386 ../src/guestfs-actions.pod:5121
11389 msgid "Some internal mounts are not shown."
11390 msgstr ""
11391
11392 #. type: textblock
11393 #: ../fish/guestfish-actions.pod:3388
11394 msgid "See also: L</mountpoints>"
11395 msgstr ""
11396
11397 #. type: =head2
11398 #: ../fish/guestfish-actions.pod:3390
11399 msgid "mv"
11400 msgstr ""
11401
11402 #. type: verbatim
11403 #: ../fish/guestfish-actions.pod:3392
11404 #, no-wrap
11405 msgid ""
11406 " mv src dest\n"
11407 "\n"
11408 msgstr ""
11409
11410 #. type: textblock
11411 #: ../fish/guestfish-actions.pod:3394 ../src/guestfs-actions.pod:5138
11412 msgid ""
11413 "This moves a file from C<src> to C<dest> where C<dest> is either a "
11414 "destination filename or destination directory."
11415 msgstr ""
11416
11417 #. type: =head2
11418 #: ../fish/guestfish-actions.pod:3397
11419 msgid "ntfs-3g-probe"
11420 msgstr ""
11421
11422 #. type: verbatim
11423 #: ../fish/guestfish-actions.pod:3399
11424 #, no-wrap
11425 msgid ""
11426 " ntfs-3g-probe true|false device\n"
11427 "\n"
11428 msgstr ""
11429
11430 #. type: textblock
11431 #: ../fish/guestfish-actions.pod:3401 ../src/guestfs-actions.pod:5152
11432 msgid ""
11433 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
11434 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
11435 "write, and some cannot be mounted at all)."
11436 msgstr ""
11437
11438 #. type: textblock
11439 #: ../fish/guestfish-actions.pod:3405 ../src/guestfs-actions.pod:5156
11440 msgid ""
11441 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
11442 "can be mounted read-write.  Set it to false if you want to test if the "
11443 "volume can be mounted read-only."
11444 msgstr ""
11445
11446 #. type: textblock
11447 #: ../fish/guestfish-actions.pod:3409 ../src/guestfs-actions.pod:5160
11448 msgid ""
11449 "The return value is an integer which C<0> if the operation would succeed, or "
11450 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
11451 msgstr ""
11452
11453 #. type: =head2
11454 #: ../fish/guestfish-actions.pod:3413
11455 msgid "ntfsresize"
11456 msgstr ""
11457
11458 #. type: verbatim
11459 #: ../fish/guestfish-actions.pod:3415
11460 #, no-wrap
11461 msgid ""
11462 " ntfsresize device\n"
11463 "\n"
11464 msgstr ""
11465
11466 #. type: textblock
11467 #: ../fish/guestfish-actions.pod:3417 ../fish/guestfish-actions.pod:3441
11468 #: ../src/guestfs-actions.pod:5174 ../src/guestfs-actions.pod:5213
11469 msgid ""
11470 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
11471 "size of the underlying device."
11472 msgstr ""
11473
11474 #. type: textblock
11475 #: ../fish/guestfish-actions.pod:3420 ../src/guestfs-actions.pod:5177
11476 msgid ""
11477 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
11478 "consistency check (for safety).  You have to boot into Windows to perform "
11479 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
11480 "resize filesystems which have been marked in this way.  So in effect it is "
11481 "not possible to call ntfsresize multiple times on a single filesystem "
11482 "without booting into Windows between each resize."
11483 msgstr ""
11484
11485 #. type: textblock
11486 #: ../fish/guestfish-actions.pod:3428 ../fish/guestfish-actions.pod:3467
11487 #: ../src/guestfs-actions.pod:5185 ../src/guestfs-actions.pod:5239
11488 msgid "See also L<ntfsresize(8)>."
11489 msgstr ""
11490
11491 #. type: textblock
11492 #: ../fish/guestfish-actions.pod:3430 ../fish/guestfish-actions.pod:3478
11493 msgid ""
11494 "This function is deprecated.  In new code, use the L</ntfsresize_opts> call "
11495 "instead."
11496 msgstr ""
11497
11498 #. type: =head2
11499 #: ../fish/guestfish-actions.pod:3437
11500 msgid "ntfsresize-opts"
11501 msgstr ""
11502
11503 #. type: verbatim
11504 #: ../fish/guestfish-actions.pod:3439
11505 #, no-wrap
11506 msgid ""
11507 " ntfsresize-opts device [size:..] [force:..]\n"
11508 "\n"
11509 msgstr ""
11510
11511 #. type: textblock
11512 #: ../fish/guestfish-actions.pod:3450 ../src/guestfs-actions.pod:5222
11513 msgid ""
11514 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
11515 "resized to fit the container (eg. partition)."
11516 msgstr ""
11517
11518 #. type: =item
11519 #: ../fish/guestfish-actions.pod:3453 ../src/guestfs-actions.pod:5225
11520 msgid "C<force>"
11521 msgstr ""
11522
11523 #. type: textblock
11524 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5227
11525 msgid ""
11526 "If this option is true, then force the resize of the filesystem even if the "
11527 "filesystem is marked as requiring a consistency check."
11528 msgstr ""
11529
11530 #. type: textblock
11531 #: ../fish/guestfish-actions.pod:3458
11532 msgid ""
11533 "After the resize operation, the filesystem is always marked as requiring a "
11534 "consistency check (for safety).  You have to boot into Windows to perform "
11535 "this check and clear this condition.  If you I<don't> set the C<force> "
11536 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
11537 "a single filesystem without booting into Windows between each resize."
11538 msgstr ""
11539
11540 #. type: =head2
11541 #: ../fish/guestfish-actions.pod:3471
11542 msgid "ntfsresize-size"
11543 msgstr ""
11544
11545 #. type: verbatim
11546 #: ../fish/guestfish-actions.pod:3473
11547 #, no-wrap
11548 msgid ""
11549 " ntfsresize-size device size\n"
11550 "\n"
11551 msgstr ""
11552
11553 #. type: textblock
11554 #: ../fish/guestfish-actions.pod:3475
11555 msgid ""
11556 "This command is the same as L</ntfsresize> except that it allows you to "
11557 "specify the new size (in bytes) explicitly."
11558 msgstr ""
11559
11560 #. type: =head2
11561 #: ../fish/guestfish-actions.pod:3485
11562 msgid "part-add"
11563 msgstr ""
11564
11565 #. type: verbatim
11566 #: ../fish/guestfish-actions.pod:3487
11567 #, no-wrap
11568 msgid ""
11569 " part-add device prlogex startsect endsect\n"
11570 "\n"
11571 msgstr ""
11572
11573 #. type: textblock
11574 #: ../fish/guestfish-actions.pod:3489
11575 msgid ""
11576 "This command adds a partition to C<device>.  If there is no partition table "
11577 "on the device, call L</part-init> first."
11578 msgstr ""
11579
11580 #. type: textblock
11581 #: ../fish/guestfish-actions.pod:3492 ../src/guestfs-actions.pod:5300
11582 msgid ""
11583 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
11584 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
11585 "C<logical>) and C<e> (or C<extended>) partition types."
11586 msgstr ""
11587
11588 #. type: textblock
11589 #: ../fish/guestfish-actions.pod:3497 ../src/guestfs-actions.pod:5305
11590 msgid ""
11591 "C<startsect> and C<endsect> are the start and end of the partition in "
11592 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
11593 "from the end of the disk (C<-1> is the last sector)."
11594 msgstr ""
11595
11596 #. type: textblock
11597 #: ../fish/guestfish-actions.pod:3501
11598 msgid ""
11599 "Creating a partition which covers the whole disk is not so easy.  Use L</"
11600 "part-disk> to do that."
11601 msgstr ""
11602
11603 #. type: =head2
11604 #: ../fish/guestfish-actions.pod:3504
11605 msgid "part-del"
11606 msgstr ""
11607
11608 #. type: verbatim
11609 #: ../fish/guestfish-actions.pod:3506
11610 #, no-wrap
11611 msgid ""
11612 " part-del device partnum\n"
11613 "\n"
11614 msgstr ""
11615
11616 #. type: textblock
11617 #: ../fish/guestfish-actions.pod:3508 ../src/guestfs-actions.pod:5323
11618 msgid "This command deletes the partition numbered C<partnum> on C<device>."
11619 msgstr ""
11620
11621 #. type: textblock
11622 #: ../fish/guestfish-actions.pod:3510 ../src/guestfs-actions.pod:5325
11623 msgid ""
11624 "Note that in the case of MBR partitioning, deleting an extended partition "
11625 "also deletes any logical partitions it contains."
11626 msgstr ""
11627
11628 #. type: =head2
11629 #: ../fish/guestfish-actions.pod:3514
11630 msgid "part-disk"
11631 msgstr ""
11632
11633 #. type: verbatim
11634 #: ../fish/guestfish-actions.pod:3516
11635 #, no-wrap
11636 msgid ""
11637 " part-disk device parttype\n"
11638 "\n"
11639 msgstr ""
11640
11641 #. type: textblock
11642 #: ../fish/guestfish-actions.pod:3518
11643 msgid ""
11644 "This command is simply a combination of L</part-init> followed by L</part-"
11645 "add> to create a single primary partition covering the whole disk."
11646 msgstr ""
11647
11648 #. type: textblock
11649 #: ../fish/guestfish-actions.pod:3522
11650 msgid ""
11651 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
11652 "possible values are described in L</part-init>."
11653 msgstr ""
11654
11655 #. type: =head2
11656 #: ../fish/guestfish-actions.pod:3528
11657 msgid "part-get-bootable"
11658 msgstr ""
11659
11660 #. type: verbatim
11661 #: ../fish/guestfish-actions.pod:3530
11662 #, no-wrap
11663 msgid ""
11664 " part-get-bootable device partnum\n"
11665 "\n"
11666 msgstr ""
11667
11668 #. type: textblock
11669 #: ../fish/guestfish-actions.pod:3532 ../src/guestfs-actions.pod:5361
11670 msgid ""
11671 "This command returns true if the partition C<partnum> on C<device> has the "
11672 "bootable flag set."
11673 msgstr ""
11674
11675 #. type: textblock
11676 #: ../fish/guestfish-actions.pod:3535
11677 msgid "See also L</part-set-bootable>."
11678 msgstr ""
11679
11680 #. type: =head2
11681 #: ../fish/guestfish-actions.pod:3537
11682 msgid "part-get-mbr-id"
11683 msgstr ""
11684
11685 #. type: verbatim
11686 #: ../fish/guestfish-actions.pod:3539
11687 #, no-wrap
11688 msgid ""
11689 " part-get-mbr-id device partnum\n"
11690 "\n"
11691 msgstr ""
11692
11693 #. type: textblock
11694 #: ../fish/guestfish-actions.pod:3541 ../src/guestfs-actions.pod:5377
11695 msgid ""
11696 "Returns the MBR type byte (also known as the ID byte) from the numbered "
11697 "partition C<partnum>."
11698 msgstr ""
11699
11700 #. type: textblock
11701 #: ../fish/guestfish-actions.pod:3544 ../fish/guestfish-actions.pod:3688
11702 msgid ""
11703 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
11704 "undefined results for other partition table types (see L</part-get-"
11705 "parttype>)."
11706 msgstr ""
11707
11708 #. type: =head2
11709 #: ../fish/guestfish-actions.pod:3548
11710 msgid "part-get-parttype"
11711 msgstr ""
11712
11713 #. type: verbatim
11714 #: ../fish/guestfish-actions.pod:3550
11715 #, no-wrap
11716 msgid ""
11717 " part-get-parttype device\n"
11718 "\n"
11719 msgstr ""
11720
11721 #. type: textblock
11722 #: ../fish/guestfish-actions.pod:3552 ../src/guestfs-actions.pod:5394
11723 msgid ""
11724 "This command examines the partition table on C<device> and returns the "
11725 "partition table type (format) being used."
11726 msgstr ""
11727
11728 #. type: textblock
11729 #: ../fish/guestfish-actions.pod:3555
11730 msgid ""
11731 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
11732 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
11733 "possible, although unusual.  See L</part-init> for a full list."
11734 msgstr ""
11735
11736 #. type: =head2
11737 #: ../fish/guestfish-actions.pod:3560
11738 msgid "part-init"
11739 msgstr ""
11740
11741 #. type: verbatim
11742 #: ../fish/guestfish-actions.pod:3562
11743 #, no-wrap
11744 msgid ""
11745 " part-init device parttype\n"
11746 "\n"
11747 msgstr ""
11748
11749 #. type: textblock
11750 #: ../fish/guestfish-actions.pod:3564 ../src/guestfs-actions.pod:5414
11751 msgid ""
11752 "This creates an empty partition table on C<device> of one of the partition "
11753 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
11754 "(for large disks)."
11755 msgstr ""
11756
11757 #. type: textblock
11758 #: ../fish/guestfish-actions.pod:3568
11759 msgid ""
11760 "Initially there are no partitions.  Following this, you should call L</part-"
11761 "add> for each partition required."
11762 msgstr ""
11763
11764 #. type: textblock
11765 #: ../fish/guestfish-actions.pod:3571 ../src/guestfs-actions.pod:5421
11766 msgid "Possible values for C<parttype> are:"
11767 msgstr ""
11768
11769 #. type: =item
11770 #: ../fish/guestfish-actions.pod:3575 ../src/guestfs-actions.pod:5425
11771 msgid "B<efi>"
11772 msgstr ""
11773
11774 #. type: =item
11775 #: ../fish/guestfish-actions.pod:3577 ../src/guestfs-actions.pod:5427
11776 msgid "B<gpt>"
11777 msgstr ""
11778
11779 #. type: textblock
11780 #: ../fish/guestfish-actions.pod:3579 ../src/guestfs-actions.pod:5429
11781 msgid "Intel EFI / GPT partition table."
11782 msgstr ""
11783
11784 #. type: textblock
11785 #: ../fish/guestfish-actions.pod:3581 ../src/guestfs-actions.pod:5431
11786 msgid ""
11787 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
11788 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
11789 "the C<mbr> format."
11790 msgstr ""
11791
11792 #. type: =item
11793 #: ../fish/guestfish-actions.pod:3585 ../src/guestfs-actions.pod:5435
11794 msgid "B<mbr>"
11795 msgstr ""
11796
11797 #. type: =item
11798 #: ../fish/guestfish-actions.pod:3587 ../src/guestfs-actions.pod:5437
11799 msgid "B<msdos>"
11800 msgstr ""
11801
11802 #. type: textblock
11803 #: ../fish/guestfish-actions.pod:3589 ../src/guestfs-actions.pod:5439
11804 msgid ""
11805 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
11806 "Windows.  This partition type will B<only> work for device sizes up to 2 "
11807 "TB.  For large disks we recommend using C<gpt>."
11808 msgstr ""
11809
11810 #. type: textblock
11811 #: ../fish/guestfish-actions.pod:3596 ../src/guestfs-actions.pod:5446
11812 msgid ""
11813 "Other partition table types that may work but are not supported include:"
11814 msgstr ""
11815
11816 #. type: =item
11817 #: ../fish/guestfish-actions.pod:3601 ../src/guestfs-actions.pod:5451
11818 msgid "B<aix>"
11819 msgstr ""
11820
11821 #. type: textblock
11822 #: ../fish/guestfish-actions.pod:3603 ../src/guestfs-actions.pod:5453
11823 msgid "AIX disk labels."
11824 msgstr ""
11825
11826 #. type: =item
11827 #: ../fish/guestfish-actions.pod:3605 ../src/guestfs-actions.pod:5455
11828 msgid "B<amiga>"
11829 msgstr ""
11830
11831 #. type: =item
11832 #: ../fish/guestfish-actions.pod:3607 ../src/guestfs-actions.pod:5457
11833 msgid "B<rdb>"
11834 msgstr ""
11835
11836 #. type: textblock
11837 #: ../fish/guestfish-actions.pod:3609 ../src/guestfs-actions.pod:5459
11838 msgid "Amiga \"Rigid Disk Block\" format."
11839 msgstr ""
11840
11841 #. type: =item
11842 #: ../fish/guestfish-actions.pod:3611 ../src/guestfs-actions.pod:5461
11843 msgid "B<bsd>"
11844 msgstr ""
11845
11846 #. type: textblock
11847 #: ../fish/guestfish-actions.pod:3613 ../src/guestfs-actions.pod:5463
11848 msgid "BSD disk labels."
11849 msgstr ""
11850
11851 #. type: =item
11852 #: ../fish/guestfish-actions.pod:3615 ../src/guestfs-actions.pod:5465
11853 msgid "B<dasd>"
11854 msgstr ""
11855
11856 #. type: textblock
11857 #: ../fish/guestfish-actions.pod:3617 ../src/guestfs-actions.pod:5467
11858 msgid "DASD, used on IBM mainframes."
11859 msgstr ""
11860
11861 #. type: =item
11862 #: ../fish/guestfish-actions.pod:3619 ../src/guestfs-actions.pod:5469
11863 msgid "B<dvh>"
11864 msgstr ""
11865
11866 #. type: textblock
11867 #: ../fish/guestfish-actions.pod:3621 ../src/guestfs-actions.pod:5471
11868 msgid "MIPS/SGI volumes."
11869 msgstr ""
11870
11871 #. type: =item
11872 #: ../fish/guestfish-actions.pod:3623 ../src/guestfs-actions.pod:5473
11873 msgid "B<mac>"
11874 msgstr ""
11875
11876 #. type: textblock
11877 #: ../fish/guestfish-actions.pod:3625 ../src/guestfs-actions.pod:5475
11878 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
11879 msgstr ""
11880
11881 #. type: =item
11882 #: ../fish/guestfish-actions.pod:3627 ../src/guestfs-actions.pod:5477
11883 msgid "B<pc98>"
11884 msgstr ""
11885
11886 #. type: textblock
11887 #: ../fish/guestfish-actions.pod:3629 ../src/guestfs-actions.pod:5479
11888 msgid "NEC PC-98 format, common in Japan apparently."
11889 msgstr ""
11890
11891 #. type: =item
11892 #: ../fish/guestfish-actions.pod:3631 ../src/guestfs-actions.pod:5481
11893 msgid "B<sun>"
11894 msgstr ""
11895
11896 #. type: textblock
11897 #: ../fish/guestfish-actions.pod:3633 ../src/guestfs-actions.pod:5483
11898 msgid "Sun disk labels."
11899 msgstr ""
11900
11901 #. type: =head2
11902 #: ../fish/guestfish-actions.pod:3637
11903 msgid "part-list"
11904 msgstr ""
11905
11906 #. type: verbatim
11907 #: ../fish/guestfish-actions.pod:3639
11908 #, no-wrap
11909 msgid ""
11910 " part-list device\n"
11911 "\n"
11912 msgstr ""
11913
11914 #. type: textblock
11915 #: ../fish/guestfish-actions.pod:3641 ../src/guestfs-actions.pod:5497
11916 msgid ""
11917 "This command parses the partition table on C<device> and returns the list of "
11918 "partitions found."
11919 msgstr ""
11920
11921 #. type: textblock
11922 #: ../fish/guestfish-actions.pod:3644 ../src/guestfs-actions.pod:5500
11923 msgid "The fields in the returned structure are:"
11924 msgstr ""
11925
11926 #. type: =item
11927 #: ../fish/guestfish-actions.pod:3648 ../src/guestfs-actions.pod:5504
11928 msgid "B<part_num>"
11929 msgstr ""
11930
11931 #. type: textblock
11932 #: ../fish/guestfish-actions.pod:3650 ../src/guestfs-actions.pod:5506
11933 msgid "Partition number, counting from 1."
11934 msgstr ""
11935
11936 #. type: =item
11937 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5508
11938 msgid "B<part_start>"
11939 msgstr ""
11940
11941 #. type: textblock
11942 #: ../fish/guestfish-actions.pod:3654
11943 msgid ""
11944 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
11945 "the device's sector size, see L</blockdev-getss>."
11946 msgstr ""
11947
11948 #. type: =item
11949 #: ../fish/guestfish-actions.pod:3657 ../src/guestfs-actions.pod:5513
11950 msgid "B<part_end>"
11951 msgstr ""
11952
11953 #. type: textblock
11954 #: ../fish/guestfish-actions.pod:3659 ../src/guestfs-actions.pod:5515
11955 msgid "End of the partition in bytes."
11956 msgstr ""
11957
11958 #. type: =item
11959 #: ../fish/guestfish-actions.pod:3661 ../src/guestfs-actions.pod:5517
11960 msgid "B<part_size>"
11961 msgstr ""
11962
11963 #. type: textblock
11964 #: ../fish/guestfish-actions.pod:3663 ../src/guestfs-actions.pod:5519
11965 msgid "Size of the partition in bytes."
11966 msgstr ""
11967
11968 #. type: =head2
11969 #: ../fish/guestfish-actions.pod:3667
11970 msgid "part-set-bootable"
11971 msgstr ""
11972
11973 #. type: verbatim
11974 #: ../fish/guestfish-actions.pod:3669
11975 #, no-wrap
11976 msgid ""
11977 " part-set-bootable device partnum true|false\n"
11978 "\n"
11979 msgstr ""
11980
11981 #. type: textblock
11982 #: ../fish/guestfish-actions.pod:3671 ../src/guestfs-actions.pod:5537
11983 msgid ""
11984 "This sets the bootable flag on partition numbered C<partnum> on device "
11985 "C<device>.  Note that partitions are numbered from 1."
11986 msgstr ""
11987
11988 #. type: textblock
11989 #: ../fish/guestfish-actions.pod:3674 ../src/guestfs-actions.pod:5540
11990 msgid ""
11991 "The bootable flag is used by some operating systems (notably Windows) to "
11992 "determine which partition to boot from.  It is by no means universally "
11993 "recognized."
11994 msgstr ""
11995
11996 #. type: =head2
11997 #: ../fish/guestfish-actions.pod:3678
11998 msgid "part-set-mbr-id"
11999 msgstr ""
12000
12001 #. type: verbatim
12002 #: ../fish/guestfish-actions.pod:3680
12003 #, no-wrap
12004 msgid ""
12005 " part-set-mbr-id device partnum idbyte\n"
12006 "\n"
12007 msgstr ""
12008
12009 #. type: textblock
12010 #: ../fish/guestfish-actions.pod:3682 ../src/guestfs-actions.pod:5556
12011 msgid ""
12012 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12013 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12014 "documentation are in fact hexadecimal numbers, but usually documented "
12015 "without any leading \"0x\" which might be confusing."
12016 msgstr ""
12017
12018 #. type: =head2
12019 #: ../fish/guestfish-actions.pod:3692
12020 msgid "part-set-name"
12021 msgstr ""
12022
12023 #. type: verbatim
12024 #: ../fish/guestfish-actions.pod:3694
12025 #, no-wrap
12026 msgid ""
12027 " part-set-name device partnum name\n"
12028 "\n"
12029 msgstr ""
12030
12031 #. type: textblock
12032 #: ../fish/guestfish-actions.pod:3696 ../src/guestfs-actions.pod:5578
12033 msgid ""
12034 "This sets the partition name on partition numbered C<partnum> on device "
12035 "C<device>.  Note that partitions are numbered from 1."
12036 msgstr ""
12037
12038 #. type: textblock
12039 #: ../fish/guestfish-actions.pod:3699 ../src/guestfs-actions.pod:5581
12040 msgid ""
12041 "The partition name can only be set on certain types of partition table.  "
12042 "This works on C<gpt> but not on C<mbr> partitions."
12043 msgstr ""
12044
12045 #. type: =head2
12046 #: ../fish/guestfish-actions.pod:3702
12047 msgid "part-to-dev"
12048 msgstr ""
12049
12050 #. type: verbatim
12051 #: ../fish/guestfish-actions.pod:3704
12052 #, no-wrap
12053 msgid ""
12054 " part-to-dev partition\n"
12055 "\n"
12056 msgstr ""
12057
12058 #. type: textblock
12059 #: ../fish/guestfish-actions.pod:3706 ../src/guestfs-actions.pod:5594
12060 msgid ""
12061 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12062 "partition number, returning the device name (eg. \"/dev/sdb\")."
12063 msgstr ""
12064
12065 #. type: textblock
12066 #: ../fish/guestfish-actions.pod:3710
12067 msgid ""
12068 "The named partition must exist, for example as a string returned from L</"
12069 "list-partitions>."
12070 msgstr ""
12071
12072 #. type: =head2
12073 #: ../fish/guestfish-actions.pod:3713
12074 msgid "ping-daemon"
12075 msgstr ""
12076
12077 #. type: verbatim
12078 #: ../fish/guestfish-actions.pod:3715
12079 #, no-wrap
12080 msgid ""
12081 " ping-daemon\n"
12082 "\n"
12083 msgstr ""
12084
12085 #. type: textblock
12086 #: ../fish/guestfish-actions.pod:3717 ../src/guestfs-actions.pod:5611
12087 msgid ""
12088 "This is a test probe into the guestfs daemon running inside the qemu "
12089 "subprocess.  Calling this function checks that the daemon responds to the "
12090 "ping message, without affecting the daemon or attached block device(s) in "
12091 "any other way."
12092 msgstr ""
12093
12094 #. type: =head2
12095 #: ../fish/guestfish-actions.pod:3722
12096 msgid "pread"
12097 msgstr ""
12098
12099 #. type: verbatim
12100 #: ../fish/guestfish-actions.pod:3724
12101 #, no-wrap
12102 msgid ""
12103 " pread path count offset\n"
12104 "\n"
12105 msgstr ""
12106
12107 #. type: textblock
12108 #: ../fish/guestfish-actions.pod:3726 ../src/guestfs-actions.pod:5629
12109 msgid ""
12110 "This command lets you read part of a file.  It reads C<count> bytes of the "
12111 "file, starting at C<offset>, from file C<path>."
12112 msgstr ""
12113
12114 #. type: textblock
12115 #: ../fish/guestfish-actions.pod:3729 ../fish/guestfish-actions.pod:3744
12116 #: ../src/guestfs-actions.pod:5632 ../src/guestfs-actions.pod:5658
12117 msgid ""
12118 "This may read fewer bytes than requested.  For further details see the "
12119 "L<pread(2)> system call."
12120 msgstr ""
12121
12122 #. type: textblock
12123 #: ../fish/guestfish-actions.pod:3732
12124 msgid "See also L</pwrite>, L</pread-device>."
12125 msgstr ""
12126
12127 #. type: =head2
12128 #: ../fish/guestfish-actions.pod:3737
12129 msgid "pread-device"
12130 msgstr ""
12131
12132 #. type: verbatim
12133 #: ../fish/guestfish-actions.pod:3739
12134 #, no-wrap
12135 msgid ""
12136 " pread-device device count offset\n"
12137 "\n"
12138 msgstr ""
12139
12140 #. type: textblock
12141 #: ../fish/guestfish-actions.pod:3741 ../src/guestfs-actions.pod:5655
12142 msgid ""
12143 "This command lets you read part of a file.  It reads C<count> bytes of "
12144 "C<device>, starting at C<offset>."
12145 msgstr ""
12146
12147 #. type: textblock
12148 #: ../fish/guestfish-actions.pod:3747
12149 msgid "See also L</pread>."
12150 msgstr ""
12151
12152 #. type: =head2
12153 #: ../fish/guestfish-actions.pod:3752
12154 msgid "pvcreate"
12155 msgstr ""
12156
12157 #. type: verbatim
12158 #: ../fish/guestfish-actions.pod:3754
12159 #, no-wrap
12160 msgid ""
12161 " pvcreate device\n"
12162 "\n"
12163 msgstr ""
12164
12165 #. type: textblock
12166 #: ../fish/guestfish-actions.pod:3756 ../src/guestfs-actions.pod:5678
12167 msgid ""
12168 "This creates an LVM physical volume on the named C<device>, where C<device> "
12169 "should usually be a partition name such as C</dev/sda1>."
12170 msgstr ""
12171
12172 #. type: =head2
12173 #: ../fish/guestfish-actions.pod:3760
12174 msgid "pvremove"
12175 msgstr ""
12176
12177 #. type: verbatim
12178 #: ../fish/guestfish-actions.pod:3762
12179 #, no-wrap
12180 msgid ""
12181 " pvremove device\n"
12182 "\n"
12183 msgstr ""
12184
12185 #. type: textblock
12186 #: ../fish/guestfish-actions.pod:3764 ../src/guestfs-actions.pod:5692
12187 msgid ""
12188 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12189 "it."
12190 msgstr ""
12191
12192 #. type: textblock
12193 #: ../fish/guestfish-actions.pod:3767 ../src/guestfs-actions.pod:5695
12194 msgid ""
12195 "The implementation uses the C<pvremove> command which refuses to wipe "
12196 "physical volumes that contain any volume groups, so you have to remove those "
12197 "first."
12198 msgstr ""
12199
12200 #. type: =head2
12201 #: ../fish/guestfish-actions.pod:3771
12202 msgid "pvresize"
12203 msgstr ""
12204
12205 #. type: verbatim
12206 #: ../fish/guestfish-actions.pod:3773
12207 #, no-wrap
12208 msgid ""
12209 " pvresize device\n"
12210 "\n"
12211 msgstr ""
12212
12213 #. type: textblock
12214 #: ../fish/guestfish-actions.pod:3775 ../src/guestfs-actions.pod:5709
12215 msgid ""
12216 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12217 "the new size of the underlying device."
12218 msgstr ""
12219
12220 #. type: =head2
12221 #: ../fish/guestfish-actions.pod:3778
12222 msgid "pvresize-size"
12223 msgstr ""
12224
12225 #. type: verbatim
12226 #: ../fish/guestfish-actions.pod:3780
12227 #, no-wrap
12228 msgid ""
12229 " pvresize-size device size\n"
12230 "\n"
12231 msgstr ""
12232
12233 #. type: textblock
12234 #: ../fish/guestfish-actions.pod:3782
12235 msgid ""
12236 "This command is the same as L</pvresize> except that it allows you to "
12237 "specify the new size (in bytes) explicitly."
12238 msgstr ""
12239
12240 #. type: =head2
12241 #: ../fish/guestfish-actions.pod:3785
12242 msgid "pvs"
12243 msgstr ""
12244
12245 #. type: verbatim
12246 #: ../fish/guestfish-actions.pod:3787
12247 #, no-wrap
12248 msgid ""
12249 " pvs\n"
12250 "\n"
12251 msgstr ""
12252
12253 #. type: textblock
12254 #: ../fish/guestfish-actions.pod:3789 ../src/guestfs-actions.pod:5735
12255 msgid ""
12256 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12257 "(8)> command."
12258 msgstr ""
12259
12260 #. type: textblock
12261 #: ../fish/guestfish-actions.pod:3792 ../src/guestfs-actions.pod:5738
12262 msgid ""
12263 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12264 "sda2>)."
12265 msgstr ""
12266
12267 #. type: textblock
12268 #: ../fish/guestfish-actions.pod:3795
12269 msgid "See also L</pvs-full>."
12270 msgstr ""
12271
12272 #. type: =head2
12273 #: ../fish/guestfish-actions.pod:3797
12274 msgid "pvs-full"
12275 msgstr ""
12276
12277 #. type: verbatim
12278 #: ../fish/guestfish-actions.pod:3799
12279 #, no-wrap
12280 msgid ""
12281 " pvs-full\n"
12282 "\n"
12283 msgstr ""
12284
12285 #. type: textblock
12286 #: ../fish/guestfish-actions.pod:3801 ../src/guestfs-actions.pod:5754
12287 msgid ""
12288 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12289 "(8)> command.  The \"full\" version includes all fields."
12290 msgstr ""
12291
12292 #. type: =head2
12293 #: ../fish/guestfish-actions.pod:3804
12294 msgid "pvuuid"
12295 msgstr ""
12296
12297 #. type: verbatim
12298 #: ../fish/guestfish-actions.pod:3806
12299 #, no-wrap
12300 msgid ""
12301 " pvuuid device\n"
12302 "\n"
12303 msgstr ""
12304
12305 #. type: textblock
12306 #: ../fish/guestfish-actions.pod:3808 ../src/guestfs-actions.pod:5769
12307 msgid "This command returns the UUID of the LVM PV C<device>."
12308 msgstr ""
12309
12310 #. type: =head2
12311 #: ../fish/guestfish-actions.pod:3810
12312 msgid "pwrite"
12313 msgstr ""
12314
12315 #. type: verbatim
12316 #: ../fish/guestfish-actions.pod:3812
12317 #, no-wrap
12318 msgid ""
12319 " pwrite path content offset\n"
12320 "\n"
12321 msgstr ""
12322
12323 #. type: textblock
12324 #: ../fish/guestfish-actions.pod:3814 ../src/guestfs-actions.pod:5785
12325 msgid ""
12326 "This command writes to part of a file.  It writes the data buffer C<content> "
12327 "to the file C<path> starting at offset C<offset>."
12328 msgstr ""
12329
12330 #. type: textblock
12331 #: ../fish/guestfish-actions.pod:3817 ../src/guestfs-actions.pod:5788
12332 msgid ""
12333 "This command implements the L<pwrite(2)> system call, and like that system "
12334 "call it may not write the full data requested.  The return value is the "
12335 "number of bytes that were actually written to the file.  This could even be "
12336 "0, although short writes are unlikely for regular files in ordinary "
12337 "circumstances."
12338 msgstr ""
12339
12340 #. type: textblock
12341 #: ../fish/guestfish-actions.pod:3823
12342 msgid "See also L</pread>, L</pwrite-device>."
12343 msgstr ""
12344
12345 #. type: =head2
12346 #: ../fish/guestfish-actions.pod:3828
12347 msgid "pwrite-device"
12348 msgstr ""
12349
12350 #. type: verbatim
12351 #: ../fish/guestfish-actions.pod:3830
12352 #, no-wrap
12353 msgid ""
12354 " pwrite-device device content offset\n"
12355 "\n"
12356 msgstr ""
12357
12358 #. type: textblock
12359 #: ../fish/guestfish-actions.pod:3832 ../src/guestfs-actions.pod:5812
12360 msgid ""
12361 "This command writes to part of a device.  It writes the data buffer "
12362 "C<content> to C<device> starting at offset C<offset>."
12363 msgstr ""
12364
12365 #. type: textblock
12366 #: ../fish/guestfish-actions.pod:3835 ../src/guestfs-actions.pod:5815
12367 msgid ""
12368 "This command implements the L<pwrite(2)> system call, and like that system "
12369 "call it may not write the full data requested (although short writes to disk "
12370 "devices and partitions are probably impossible with standard Linux kernels)."
12371 msgstr ""
12372
12373 #. type: textblock
12374 #: ../fish/guestfish-actions.pod:3840
12375 msgid "See also L</pwrite>."
12376 msgstr ""
12377
12378 #. type: =head2
12379 #: ../fish/guestfish-actions.pod:3845
12380 msgid "read-file"
12381 msgstr ""
12382
12383 #. type: verbatim
12384 #: ../fish/guestfish-actions.pod:3847
12385 #, no-wrap
12386 msgid ""
12387 " read-file path\n"
12388 "\n"
12389 msgstr ""
12390
12391 #. type: textblock
12392 #: ../fish/guestfish-actions.pod:3849 ../src/guestfs-actions.pod:5836
12393 msgid "This calls returns the contents of the file C<path> as a buffer."
12394 msgstr ""
12395
12396 #. type: textblock
12397 #: ../fish/guestfish-actions.pod:3852
12398 msgid ""
12399 "Unlike L</cat>, this function can correctly handle files that contain "
12400 "embedded ASCII NUL characters.  However unlike L</download>, this function "
12401 "is limited in the total size of file that can be handled."
12402 msgstr ""
12403
12404 #. type: =head2
12405 #: ../fish/guestfish-actions.pod:3860
12406 msgid "read-lines"
12407 msgstr ""
12408
12409 #. type: verbatim
12410 #: ../fish/guestfish-actions.pod:3862
12411 #, no-wrap
12412 msgid ""
12413 " read-lines path\n"
12414 "\n"
12415 msgstr ""
12416
12417 #. type: textblock
12418 #: ../fish/guestfish-actions.pod:3866 ../src/guestfs-actions.pod:5861
12419 msgid ""
12420 "The file contents are returned as a list of lines.  Trailing C<LF> and "
12421 "C<CRLF> character sequences are I<not> returned."
12422 msgstr ""
12423
12424 #. type: textblock
12425 #: ../fish/guestfish-actions.pod:3869
12426 msgid ""
12427 "Note that this function cannot correctly handle binary files (specifically, "
12428 "files containing C<\\0> character which is treated as end of line).  For "
12429 "those you need to use the L</read-file> function which has a more complex "
12430 "interface."
12431 msgstr ""
12432
12433 #. type: =head2
12434 #: ../fish/guestfish-actions.pod:3874
12435 msgid "readdir"
12436 msgstr ""
12437
12438 #. type: verbatim
12439 #: ../fish/guestfish-actions.pod:3876
12440 #, no-wrap
12441 msgid ""
12442 " readdir dir\n"
12443 "\n"
12444 msgstr ""
12445
12446 #. type: textblock
12447 #: ../fish/guestfish-actions.pod:3878 ../src/guestfs-actions.pod:5881
12448 msgid "This returns the list of directory entries in directory C<dir>."
12449 msgstr ""
12450
12451 #. type: textblock
12452 #: ../fish/guestfish-actions.pod:3880 ../src/guestfs-actions.pod:5883
12453 msgid ""
12454 "All entries in the directory are returned, including C<.> and C<..>.  The "
12455 "entries are I<not> sorted, but returned in the same order as the underlying "
12456 "filesystem."
12457 msgstr ""
12458
12459 #. type: textblock
12460 #: ../fish/guestfish-actions.pod:3884 ../src/guestfs-actions.pod:5887
12461 msgid ""
12462 "Also this call returns basic file type information about each file.  The "
12463 "C<ftyp> field will contain one of the following characters:"
12464 msgstr ""
12465
12466 #. type: =item
12467 #: ../fish/guestfish-actions.pod:3889 ../src/guestfs-actions.pod:5892
12468 msgid "'b'"
12469 msgstr ""
12470
12471 #. type: textblock
12472 #: ../fish/guestfish-actions.pod:3891 ../src/guestfs-actions.pod:5894
12473 msgid "Block special"
12474 msgstr ""
12475
12476 #. type: =item
12477 #: ../fish/guestfish-actions.pod:3893 ../src/guestfs-actions.pod:5896
12478 msgid "'c'"
12479 msgstr ""
12480
12481 #. type: textblock
12482 #: ../fish/guestfish-actions.pod:3895 ../src/guestfs-actions.pod:5898
12483 msgid "Char special"
12484 msgstr ""
12485
12486 #. type: =item
12487 #: ../fish/guestfish-actions.pod:3897 ../src/guestfs-actions.pod:5900
12488 msgid "'d'"
12489 msgstr ""
12490
12491 #. type: textblock
12492 #: ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:5902
12493 msgid "Directory"
12494 msgstr ""
12495
12496 #. type: =item
12497 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:5904
12498 msgid "'f'"
12499 msgstr ""
12500
12501 #. type: textblock
12502 #: ../fish/guestfish-actions.pod:3903 ../src/guestfs-actions.pod:5906
12503 msgid "FIFO (named pipe)"
12504 msgstr ""
12505
12506 #. type: =item
12507 #: ../fish/guestfish-actions.pod:3905 ../src/guestfs-actions.pod:5908
12508 msgid "'l'"
12509 msgstr ""
12510
12511 #. type: textblock
12512 #: ../fish/guestfish-actions.pod:3907 ../src/guestfs-actions.pod:5910
12513 msgid "Symbolic link"
12514 msgstr ""
12515
12516 #. type: =item
12517 #: ../fish/guestfish-actions.pod:3909 ../src/guestfs-actions.pod:5912
12518 msgid "'r'"
12519 msgstr ""
12520
12521 #. type: textblock
12522 #: ../fish/guestfish-actions.pod:3911 ../src/guestfs-actions.pod:5914
12523 msgid "Regular file"
12524 msgstr ""
12525
12526 #. type: =item
12527 #: ../fish/guestfish-actions.pod:3913 ../src/guestfs-actions.pod:5916
12528 msgid "'s'"
12529 msgstr ""
12530
12531 #. type: textblock
12532 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:5918
12533 msgid "Socket"
12534 msgstr ""
12535
12536 #. type: =item
12537 #: ../fish/guestfish-actions.pod:3917 ../src/guestfs-actions.pod:5920
12538 msgid "'u'"
12539 msgstr ""
12540
12541 #. type: textblock
12542 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:5922
12543 msgid "Unknown file type"
12544 msgstr ""
12545
12546 #. type: =item
12547 #: ../fish/guestfish-actions.pod:3921 ../src/guestfs-actions.pod:5924
12548 msgid "'?'"
12549 msgstr ""
12550
12551 #. type: textblock
12552 #: ../fish/guestfish-actions.pod:3923 ../src/guestfs-actions.pod:5926
12553 msgid ""
12554 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
12555 msgstr ""
12556
12557 #. type: textblock
12558 #: ../fish/guestfish-actions.pod:3928
12559 msgid ""
12560 "This function is primarily intended for use by programs.  To get a simple "
12561 "list of names, use L</ls>.  To get a printable directory for human "
12562 "consumption, use L</ll>."
12563 msgstr ""
12564
12565 #. type: =head2
12566 #: ../fish/guestfish-actions.pod:3932
12567 msgid "readlink"
12568 msgstr ""
12569
12570 #. type: verbatim
12571 #: ../fish/guestfish-actions.pod:3934
12572 #, no-wrap
12573 msgid ""
12574 " readlink path\n"
12575 "\n"
12576 msgstr ""
12577
12578 #. type: textblock
12579 #: ../fish/guestfish-actions.pod:3936 ../src/guestfs-actions.pod:5947
12580 msgid "This command reads the target of a symbolic link."
12581 msgstr ""
12582
12583 #. type: =head2
12584 #: ../fish/guestfish-actions.pod:3938
12585 msgid "readlinklist"
12586 msgstr ""
12587
12588 #. type: verbatim
12589 #: ../fish/guestfish-actions.pod:3940
12590 #, no-wrap
12591 msgid ""
12592 " readlinklist path 'names ...'\n"
12593 "\n"
12594 msgstr ""
12595
12596 #. type: textblock
12597 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:5961
12598 msgid ""
12599 "This call allows you to do a C<readlink> operation on multiple files, where "
12600 "all files are in the directory C<path>.  C<names> is the list of files from "
12601 "this directory."
12602 msgstr ""
12603
12604 #. type: textblock
12605 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:5965
12606 msgid ""
12607 "On return you get a list of strings, with a one-to-one correspondence to the "
12608 "C<names> list.  Each string is the value of the symbolic link."
12609 msgstr ""
12610
12611 #. type: textblock
12612 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:5969
12613 msgid ""
12614 "If the C<readlink(2)> operation fails on any name, then the corresponding "
12615 "result string is the empty string C<\"\">.  However the whole operation is "
12616 "completed even if there were C<readlink(2)> errors, and so you can call this "
12617 "function with names where you don't know if they are symbolic links already "
12618 "(albeit slightly less efficient)."
12619 msgstr ""
12620
12621 #. type: textblock
12622 #: ../fish/guestfish-actions.pod:3957 ../src/guestfs-actions.pod:5976
12623 msgid ""
12624 "This call is intended for programs that want to efficiently list a directory "
12625 "contents without making many round-trips.  Very long directory listings "
12626 "might cause the protocol message size to be exceeded, causing this call to "
12627 "fail.  The caller must split up such requests into smaller groups of names."
12628 msgstr ""
12629
12630 #. type: =head2
12631 #: ../fish/guestfish-actions.pod:3964
12632 msgid "realpath"
12633 msgstr ""
12634
12635 #. type: verbatim
12636 #: ../fish/guestfish-actions.pod:3966
12637 #, no-wrap
12638 msgid ""
12639 " realpath path\n"
12640 "\n"
12641 msgstr ""
12642
12643 #. type: textblock
12644 #: ../fish/guestfish-actions.pod:3968 ../src/guestfs-actions.pod:5995
12645 msgid ""
12646 "Return the canonicalized absolute pathname of C<path>.  The returned path "
12647 "has no C<.>, C<..> or symbolic link path elements."
12648 msgstr ""
12649
12650 #. type: =head2
12651 #: ../fish/guestfish-actions.pod:3971
12652 msgid "removexattr"
12653 msgstr ""
12654
12655 #. type: verbatim
12656 #: ../fish/guestfish-actions.pod:3973
12657 #, no-wrap
12658 msgid ""
12659 " removexattr xattr path\n"
12660 "\n"
12661 msgstr ""
12662
12663 #. type: textblock
12664 #: ../fish/guestfish-actions.pod:3975 ../src/guestfs-actions.pod:6010
12665 msgid ""
12666 "This call removes the extended attribute named C<xattr> of the file C<path>."
12667 msgstr ""
12668
12669 #. type: textblock
12670 #: ../fish/guestfish-actions.pod:3978
12671 msgid "See also: L</lremovexattr>, L<attr(5)>."
12672 msgstr ""
12673
12674 #. type: =head2
12675 #: ../fish/guestfish-actions.pod:3980
12676 msgid "resize2fs"
12677 msgstr ""
12678
12679 #. type: verbatim
12680 #: ../fish/guestfish-actions.pod:3982
12681 #, no-wrap
12682 msgid ""
12683 " resize2fs device\n"
12684 "\n"
12685 msgstr ""
12686
12687 #. type: textblock
12688 #: ../fish/guestfish-actions.pod:3984 ../src/guestfs-actions.pod:6025
12689 msgid ""
12690 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
12691 "underlying device."
12692 msgstr ""
12693
12694 #. type: textblock
12695 #: ../fish/guestfish-actions.pod:3987
12696 msgid ""
12697 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
12698 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
12699 "gives an error about this and sometimes not.  In any case, it is always safe "
12700 "to call L</e2fsck-f> before calling this function."
12701 msgstr ""
12702
12703 #. type: =head2
12704 #: ../fish/guestfish-actions.pod:3993
12705 msgid "resize2fs-M"
12706 msgstr ""
12707
12708 #. type: verbatim
12709 #: ../fish/guestfish-actions.pod:3995
12710 #, no-wrap
12711 msgid ""
12712 " resize2fs-M device\n"
12713 "\n"
12714 msgstr ""
12715
12716 #. type: textblock
12717 #: ../fish/guestfish-actions.pod:3997
12718 msgid ""
12719 "This command is the same as L</resize2fs>, but the filesystem is resized to "
12720 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
12721 "command."
12722 msgstr ""
12723
12724 #. type: textblock
12725 #: ../fish/guestfish-actions.pod:4001
12726 msgid ""
12727 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
12728 "and read the C<Block size> and C<Block count> values.  These two numbers, "
12729 "multiplied together, give the resulting size of the minimal filesystem in "
12730 "bytes."
12731 msgstr ""
12732
12733 #. type: =head2
12734 #: ../fish/guestfish-actions.pod:4006
12735 msgid "resize2fs-size"
12736 msgstr ""
12737
12738 #. type: verbatim
12739 #: ../fish/guestfish-actions.pod:4008
12740 #, no-wrap
12741 msgid ""
12742 " resize2fs-size device size\n"
12743 "\n"
12744 msgstr ""
12745
12746 #. type: textblock
12747 #: ../fish/guestfish-actions.pod:4010
12748 msgid ""
12749 "This command is the same as L</resize2fs> except that it allows you to "
12750 "specify the new size (in bytes) explicitly."
12751 msgstr ""
12752
12753 #. type: =head2
12754 #: ../fish/guestfish-actions.pod:4013
12755 msgid "rm"
12756 msgstr ""
12757
12758 #. type: verbatim
12759 #: ../fish/guestfish-actions.pod:4015
12760 #, no-wrap
12761 msgid ""
12762 " rm path\n"
12763 "\n"
12764 msgstr ""
12765
12766 #. type: textblock
12767 #: ../fish/guestfish-actions.pod:4017 ../src/guestfs-actions.pod:6077
12768 msgid "Remove the single file C<path>."
12769 msgstr ""
12770
12771 #. type: =head2
12772 #: ../fish/guestfish-actions.pod:4019
12773 msgid "rm-rf"
12774 msgstr ""
12775
12776 #. type: verbatim
12777 #: ../fish/guestfish-actions.pod:4021
12778 #, no-wrap
12779 msgid ""
12780 " rm-rf path\n"
12781 "\n"
12782 msgstr ""
12783
12784 #. type: textblock
12785 #: ../fish/guestfish-actions.pod:4023 ../src/guestfs-actions.pod:6089
12786 msgid ""
12787 "Remove the file or directory C<path>, recursively removing the contents if "
12788 "its a directory.  This is like the C<rm -rf> shell command."
12789 msgstr ""
12790
12791 #. type: =head2
12792 #: ../fish/guestfish-actions.pod:4027
12793 msgid "rmdir"
12794 msgstr ""
12795
12796 #. type: verbatim
12797 #: ../fish/guestfish-actions.pod:4029
12798 #, no-wrap
12799 msgid ""
12800 " rmdir path\n"
12801 "\n"
12802 msgstr ""
12803
12804 #. type: textblock
12805 #: ../fish/guestfish-actions.pod:4031 ../src/guestfs-actions.pod:6103
12806 msgid "Remove the single directory C<path>."
12807 msgstr ""
12808
12809 #. type: =head2
12810 #: ../fish/guestfish-actions.pod:4033
12811 msgid "rmmountpoint"
12812 msgstr ""
12813
12814 #. type: verbatim
12815 #: ../fish/guestfish-actions.pod:4035
12816 #, no-wrap
12817 msgid ""
12818 " rmmountpoint exemptpath\n"
12819 "\n"
12820 msgstr ""
12821
12822 #. type: textblock
12823 #: ../fish/guestfish-actions.pod:4037
12824 msgid ""
12825 "This calls removes a mountpoint that was previously created with L</"
12826 "mkmountpoint>.  See L</mkmountpoint> for full details."
12827 msgstr ""
12828
12829 #. type: =head2
12830 #: ../fish/guestfish-actions.pod:4041
12831 msgid "scrub-device"
12832 msgstr ""
12833
12834 #. type: verbatim
12835 #: ../fish/guestfish-actions.pod:4043
12836 #, no-wrap
12837 msgid ""
12838 " scrub-device device\n"
12839 "\n"
12840 msgstr ""
12841
12842 #. type: textblock
12843 #: ../fish/guestfish-actions.pod:4045 ../src/guestfs-actions.pod:6129
12844 msgid ""
12845 "This command writes patterns over C<device> to make data retrieval more "
12846 "difficult."
12847 msgstr ""
12848
12849 #. type: textblock
12850 #: ../fish/guestfish-actions.pod:4048 ../fish/guestfish-actions.pod:4063
12851 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6132
12852 #: ../src/guestfs-actions.pod:6153 ../src/guestfs-actions.pod:6172
12853 msgid ""
12854 "It is an interface to the L<scrub(1)> program.  See that manual page for "
12855 "more details."
12856 msgstr ""
12857
12858 #. type: =head2
12859 #: ../fish/guestfish-actions.pod:4054
12860 msgid "scrub-file"
12861 msgstr ""
12862
12863 #. type: verbatim
12864 #: ../fish/guestfish-actions.pod:4056
12865 #, no-wrap
12866 msgid ""
12867 " scrub-file file\n"
12868 "\n"
12869 msgstr ""
12870
12871 #. type: textblock
12872 #: ../fish/guestfish-actions.pod:4058 ../src/guestfs-actions.pod:6148
12873 msgid ""
12874 "This command writes patterns over a file to make data retrieval more "
12875 "difficult."
12876 msgstr ""
12877
12878 #. type: textblock
12879 #: ../fish/guestfish-actions.pod:4061 ../src/guestfs-actions.pod:6151
12880 msgid "The file is I<removed> after scrubbing."
12881 msgstr ""
12882
12883 #. type: =head2
12884 #: ../fish/guestfish-actions.pod:4066
12885 msgid "scrub-freespace"
12886 msgstr ""
12887
12888 #. type: verbatim
12889 #: ../fish/guestfish-actions.pod:4068
12890 #, no-wrap
12891 msgid ""
12892 " scrub-freespace dir\n"
12893 "\n"
12894 msgstr ""
12895
12896 #. type: textblock
12897 #: ../fish/guestfish-actions.pod:4070
12898 msgid ""
12899 "This command creates the directory C<dir> and then fills it with files until "
12900 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
12901 "deletes them.  The intention is to scrub any free space on the partition "
12902 "containing C<dir>."
12903 msgstr ""
12904
12905 #. type: =head2
12906 #: ../fish/guestfish-actions.pod:4079
12907 msgid "set-append"
12908 msgstr ""
12909
12910 #. type: =head2
12911 #: ../fish/guestfish-actions.pod:4081
12912 msgid "append"
12913 msgstr ""
12914
12915 #. type: verbatim
12916 #: ../fish/guestfish-actions.pod:4083
12917 #, no-wrap
12918 msgid ""
12919 " set-append append\n"
12920 "\n"
12921 msgstr ""
12922
12923 #. type: textblock
12924 #: ../fish/guestfish-actions.pod:4085 ../src/guestfs-actions.pod:6185
12925 msgid ""
12926 "This function is used to add additional options to the guest kernel command "
12927 "line."
12928 msgstr ""
12929
12930 #. type: textblock
12931 #: ../fish/guestfish-actions.pod:4088 ../src/guestfs-actions.pod:6188
12932 msgid ""
12933 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
12934 "environment variable."
12935 msgstr ""
12936
12937 #. type: textblock
12938 #: ../fish/guestfish-actions.pod:4091 ../src/guestfs-actions.pod:6191
12939 msgid ""
12940 "Setting C<append> to C<NULL> means I<no> additional options are passed "
12941 "(libguestfs always adds a few of its own)."
12942 msgstr ""
12943
12944 #. type: =head2
12945 #: ../fish/guestfish-actions.pod:4094
12946 msgid "set-attach-method"
12947 msgstr ""
12948
12949 #. type: =head2
12950 #: ../fish/guestfish-actions.pod:4096
12951 msgid "attach-method"
12952 msgstr ""
12953
12954 #. type: verbatim
12955 #: ../fish/guestfish-actions.pod:4098
12956 #, no-wrap
12957 msgid ""
12958 " set-attach-method attachmethod\n"
12959 "\n"
12960 msgstr ""
12961
12962 #. type: textblock
12963 #: ../fish/guestfish-actions.pod:4100 ../src/guestfs-actions.pod:6204
12964 msgid ""
12965 "Set the method that libguestfs uses to connect to the back end guestfsd "
12966 "daemon.  Possible methods are:"
12967 msgstr ""
12968
12969 #. type: =item
12970 #: ../fish/guestfish-actions.pod:4105 ../src/guestfs-actions.pod:6209
12971 #: ../src/guestfs.pod:2780
12972 msgid "C<appliance>"
12973 msgstr ""
12974
12975 #. type: textblock
12976 #: ../fish/guestfish-actions.pod:4107 ../src/guestfs-actions.pod:6211
12977 msgid ""
12978 "Launch an appliance and connect to it.  This is the ordinary method and the "
12979 "default."
12980 msgstr ""
12981
12982 #. type: =item
12983 #: ../fish/guestfish-actions.pod:4110 ../src/guestfs-actions.pod:6214
12984 msgid "C<unix:I<path>>"
12985 msgstr ""
12986
12987 #. type: textblock
12988 #: ../fish/guestfish-actions.pod:4112 ../src/guestfs-actions.pod:6216
12989 msgid "Connect to the Unix domain socket I<path>."
12990 msgstr ""
12991
12992 #. type: textblock
12993 #: ../fish/guestfish-actions.pod:4114 ../src/guestfs-actions.pod:6218
12994 msgid ""
12995 "This method lets you connect to an existing daemon or (using virtio-serial) "
12996 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
12997 "RUNNING DAEMONS>."
12998 msgstr ""
12999
13000 #. type: =head2
13001 #: ../fish/guestfish-actions.pod:4120
13002 msgid "set-autosync"
13003 msgstr ""
13004
13005 #. type: =head2
13006 #: ../fish/guestfish-actions.pod:4122
13007 msgid "autosync"
13008 msgstr ""
13009
13010 #. type: verbatim
13011 #: ../fish/guestfish-actions.pod:4124
13012 #, no-wrap
13013 msgid ""
13014 " set-autosync true|false\n"
13015 "\n"
13016 msgstr ""
13017
13018 #. type: textblock
13019 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6234
13020 msgid ""
13021 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13022 "effort attempt to make filesystems consistent and synchronized when the "
13023 "handle is closed (also if the program exits without closing handles)."
13024 msgstr ""
13025
13026 #. type: textblock
13027 #: ../fish/guestfish-actions.pod:4131 ../src/guestfs-actions.pod:6239
13028 msgid ""
13029 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13030 "disabled by default)."
13031 msgstr ""
13032
13033 #. type: =head2
13034 #: ../fish/guestfish-actions.pod:4134
13035 msgid "set-direct"
13036 msgstr ""
13037
13038 #. type: =head2
13039 #: ../fish/guestfish-actions.pod:4136
13040 msgid "direct"
13041 msgstr ""
13042
13043 #. type: verbatim
13044 #: ../fish/guestfish-actions.pod:4138
13045 #, no-wrap
13046 msgid ""
13047 " set-direct true|false\n"
13048 "\n"
13049 msgstr ""
13050
13051 #. type: textblock
13052 #: ../fish/guestfish-actions.pod:4140 ../src/guestfs-actions.pod:6252
13053 msgid ""
13054 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13055 "passed directly through to the appliance once it is launched."
13056 msgstr ""
13057
13058 #. type: textblock
13059 #: ../fish/guestfish-actions.pod:4144
13060 msgid ""
13061 "One consequence of this is that log messages aren't caught by the library "
13062 "and handled by L</set-log-message-callback>, but go straight to stdout."
13063 msgstr ""
13064
13065 #. type: textblock
13066 #: ../fish/guestfish-actions.pod:4148 ../src/guestfs-actions.pod:6260
13067 msgid "You probably don't want to use this unless you know what you are doing."
13068 msgstr ""
13069
13070 #. type: textblock
13071 #: ../fish/guestfish-actions.pod:4151 ../src/guestfs-actions.pod:6263
13072 msgid "The default is disabled."
13073 msgstr ""
13074
13075 #. type: =head2
13076 #: ../fish/guestfish-actions.pod:4153
13077 msgid "set-e2label"
13078 msgstr ""
13079
13080 #. type: verbatim
13081 #: ../fish/guestfish-actions.pod:4155
13082 #, no-wrap
13083 msgid ""
13084 " set-e2label device label\n"
13085 "\n"
13086 msgstr ""
13087
13088 #. type: textblock
13089 #: ../fish/guestfish-actions.pod:4157 ../src/guestfs-actions.pod:6276
13090 msgid ""
13091 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13092 "C<label>.  Filesystem labels are limited to 16 characters."
13093 msgstr ""
13094
13095 #. type: textblock
13096 #: ../fish/guestfish-actions.pod:4161
13097 msgid ""
13098 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
13099 "label on a filesystem."
13100 msgstr ""
13101
13102 #. type: =head2
13103 #: ../fish/guestfish-actions.pod:4164
13104 msgid "set-e2uuid"
13105 msgstr ""
13106
13107 #. type: verbatim
13108 #: ../fish/guestfish-actions.pod:4166
13109 #, no-wrap
13110 msgid ""
13111 " set-e2uuid device uuid\n"
13112 "\n"
13113 msgstr ""
13114
13115 #. type: textblock
13116 #: ../fish/guestfish-actions.pod:4168 ../src/guestfs-actions.pod:6294
13117 msgid ""
13118 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13119 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13120 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13121 msgstr ""
13122
13123 #. type: textblock
13124 #: ../fish/guestfish-actions.pod:4173
13125 msgid ""
13126 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
13127 "UUID of a filesystem."
13128 msgstr ""
13129
13130 #. type: =head2
13131 #: ../fish/guestfish-actions.pod:4176
13132 msgid "set-memsize"
13133 msgstr ""
13134
13135 #. type: =head2
13136 #: ../fish/guestfish-actions.pod:4178
13137 msgid "memsize"
13138 msgstr ""
13139
13140 #. type: verbatim
13141 #: ../fish/guestfish-actions.pod:4180
13142 #, no-wrap
13143 msgid ""
13144 " set-memsize memsize\n"
13145 "\n"
13146 msgstr ""
13147
13148 #. type: textblock
13149 #: ../fish/guestfish-actions.pod:4182
13150 msgid ""
13151 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13152 "This only has any effect if called before L</launch>."
13153 msgstr ""
13154
13155 #. type: textblock
13156 #: ../fish/guestfish-actions.pod:4186 ../src/guestfs-actions.pod:6316
13157 msgid ""
13158 "You can also change this by setting the environment variable "
13159 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13160 msgstr ""
13161
13162 #. type: =head2
13163 #: ../fish/guestfish-actions.pod:4193
13164 msgid "set-network"
13165 msgstr ""
13166
13167 #. type: =head2
13168 #: ../fish/guestfish-actions.pod:4195
13169 msgid "network"
13170 msgstr ""
13171
13172 #. type: verbatim
13173 #: ../fish/guestfish-actions.pod:4197
13174 #, no-wrap
13175 msgid ""
13176 " set-network true|false\n"
13177 "\n"
13178 msgstr ""
13179
13180 #. type: textblock
13181 #: ../fish/guestfish-actions.pod:4199 ../src/guestfs-actions.pod:6333
13182 msgid ""
13183 "If C<network> is true, then the network is enabled in the libguestfs "
13184 "appliance.  The default is false."
13185 msgstr ""
13186
13187 #. type: textblock
13188 #: ../fish/guestfish-actions.pod:4202 ../src/guestfs-actions.pod:6336
13189 msgid ""
13190 "This affects whether commands are able to access the network (see L<guestfs"
13191 "(3)/RUNNING COMMANDS>)."
13192 msgstr ""
13193
13194 #. type: textblock
13195 #: ../fish/guestfish-actions.pod:4205
13196 msgid ""
13197 "You must call this before calling L</launch>, otherwise it has no effect."
13198 msgstr ""
13199
13200 #. type: =head2
13201 #: ../fish/guestfish-actions.pod:4208
13202 msgid "set-path"
13203 msgstr ""
13204
13205 #. type: verbatim
13206 #: ../fish/guestfish-actions.pod:4212
13207 #, no-wrap
13208 msgid ""
13209 " set-path searchpath\n"
13210 "\n"
13211 msgstr ""
13212
13213 #. type: textblock
13214 #: ../fish/guestfish-actions.pod:4214 ../src/guestfs-actions.pod:6352
13215 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13216 msgstr ""
13217
13218 #. type: textblock
13219 #: ../fish/guestfish-actions.pod:4216 ../src/guestfs-actions.pod:6354
13220 msgid ""
13221 "The default is C<$libdir/guestfs> unless overridden by setting "
13222 "C<LIBGUESTFS_PATH> environment variable."
13223 msgstr ""
13224
13225 #. type: textblock
13226 #: ../fish/guestfish-actions.pod:4219 ../src/guestfs-actions.pod:6357
13227 msgid "Setting C<path> to C<NULL> restores the default path."
13228 msgstr ""
13229
13230 #. type: =head2
13231 #: ../fish/guestfish-actions.pod:4221
13232 msgid "set-pgroup"
13233 msgstr ""
13234
13235 #. type: =head2
13236 #: ../fish/guestfish-actions.pod:4223
13237 msgid "pgroup"
13238 msgstr ""
13239
13240 #. type: verbatim
13241 #: ../fish/guestfish-actions.pod:4225
13242 #, no-wrap
13243 msgid ""
13244 " set-pgroup true|false\n"
13245 "\n"
13246 msgstr ""
13247
13248 #. type: textblock
13249 #: ../fish/guestfish-actions.pod:4227 ../src/guestfs-actions.pod:6369
13250 msgid ""
13251 "If C<pgroup> is true, child processes are placed into their own process "
13252 "group."
13253 msgstr ""
13254
13255 #. type: textblock
13256 #: ../fish/guestfish-actions.pod:4230 ../src/guestfs-actions.pod:6372
13257 msgid ""
13258 "The practical upshot of this is that signals like C<SIGINT> (from users "
13259 "pressing C<^C>) won't be received by the child process."
13260 msgstr ""
13261
13262 #. type: textblock
13263 #: ../fish/guestfish-actions.pod:4233 ../src/guestfs-actions.pod:6375
13264 msgid ""
13265 "The default for this flag is false, because usually you want C<^C> to kill "
13266 "the subprocess."
13267 msgstr ""
13268
13269 #. type: =head2
13270 #: ../fish/guestfish-actions.pod:4236
13271 msgid "set-qemu"
13272 msgstr ""
13273
13274 #. type: =head2
13275 #: ../fish/guestfish-actions.pod:4238
13276 msgid "qemu"
13277 msgstr ""
13278
13279 #. type: verbatim
13280 #: ../fish/guestfish-actions.pod:4240
13281 #, no-wrap
13282 msgid ""
13283 " set-qemu qemu\n"
13284 "\n"
13285 msgstr ""
13286
13287 #. type: textblock
13288 #: ../fish/guestfish-actions.pod:4242 ../src/guestfs-actions.pod:6388
13289 msgid "Set the qemu binary that we will use."
13290 msgstr ""
13291
13292 #. type: textblock
13293 #: ../fish/guestfish-actions.pod:4244 ../src/guestfs-actions.pod:6390
13294 msgid ""
13295 "The default is chosen when the library was compiled by the configure script."
13296 msgstr ""
13297
13298 #. type: textblock
13299 #: ../fish/guestfish-actions.pod:4247 ../src/guestfs-actions.pod:6393
13300 msgid ""
13301 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13302 "variable."
13303 msgstr ""
13304
13305 #. type: textblock
13306 #: ../fish/guestfish-actions.pod:4250 ../src/guestfs-actions.pod:6396
13307 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13308 msgstr ""
13309
13310 #. type: textblock
13311 #: ../fish/guestfish-actions.pod:4252 ../src/guestfs-actions.pod:6398
13312 msgid ""
13313 "Note that you should call this function as early as possible after creating "
13314 "the handle.  This is because some pre-launch operations depend on testing "
13315 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13316 "don't retest features, and so you might see inconsistent results.  Using the "
13317 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13318 "the qemu binary at the same time as the handle is created."
13319 msgstr ""
13320
13321 #. type: =head2
13322 #: ../fish/guestfish-actions.pod:4260
13323 msgid "set-recovery-proc"
13324 msgstr ""
13325
13326 #. type: =head2
13327 #: ../fish/guestfish-actions.pod:4262
13328 msgid "recovery-proc"
13329 msgstr ""
13330
13331 #. type: verbatim
13332 #: ../fish/guestfish-actions.pod:4264
13333 #, no-wrap
13334 msgid ""
13335 " set-recovery-proc true|false\n"
13336 "\n"
13337 msgstr ""
13338
13339 #. type: textblock
13340 #: ../fish/guestfish-actions.pod:4266
13341 msgid ""
13342 "If this is called with the parameter C<false> then L</launch> does not "
13343 "create a recovery process.  The purpose of the recovery process is to stop "
13344 "runaway qemu processes in the case where the main program aborts abruptly."
13345 msgstr ""
13346
13347 #. type: textblock
13348 #: ../fish/guestfish-actions.pod:4271
13349 msgid ""
13350 "This only has any effect if called before L</launch>, and the default is "
13351 "true."
13352 msgstr ""
13353
13354 #. type: textblock
13355 #: ../fish/guestfish-actions.pod:4274 ../src/guestfs-actions.pod:6424
13356 msgid ""
13357 "About the only time when you would want to disable this is if the main "
13358 "process will fork itself into the background (\"daemonize\" itself).  In "
13359 "this case the recovery process thinks that the main program has disappeared "
13360 "and so kills qemu, which is not very helpful."
13361 msgstr ""
13362
13363 #. type: =head2
13364 #: ../fish/guestfish-actions.pod:4280
13365 msgid "set-selinux"
13366 msgstr ""
13367
13368 #. type: =head2
13369 #: ../fish/guestfish-actions.pod:4282
13370 msgid "selinux"
13371 msgstr ""
13372
13373 #. type: verbatim
13374 #: ../fish/guestfish-actions.pod:4284
13375 #, no-wrap
13376 msgid ""
13377 " set-selinux true|false\n"
13378 "\n"
13379 msgstr ""
13380
13381 #. type: textblock
13382 #: ../fish/guestfish-actions.pod:4286 ../src/guestfs-actions.pod:6440
13383 msgid ""
13384 "This sets the selinux flag that is passed to the appliance at boot time.  "
13385 "The default is C<selinux=0> (disabled)."
13386 msgstr ""
13387
13388 #. type: textblock
13389 #: ../fish/guestfish-actions.pod:4289 ../src/guestfs-actions.pod:6443
13390 msgid ""
13391 "Note that if SELinux is enabled, it is always in Permissive mode "
13392 "(C<enforcing=0>)."
13393 msgstr ""
13394
13395 #. type: =head2
13396 #: ../fish/guestfish-actions.pod:4295
13397 msgid "set-trace"
13398 msgstr ""
13399
13400 #. type: =head2
13401 #: ../fish/guestfish-actions.pod:4297
13402 msgid "trace"
13403 msgstr ""
13404
13405 #. type: verbatim
13406 #: ../fish/guestfish-actions.pod:4299
13407 #, no-wrap
13408 msgid ""
13409 " set-trace true|false\n"
13410 "\n"
13411 msgstr ""
13412
13413 #. type: textblock
13414 #: ../fish/guestfish-actions.pod:4301 ../src/guestfs-actions.pod:6459
13415 msgid ""
13416 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
13417 "return values are traced."
13418 msgstr ""
13419
13420 #. type: textblock
13421 #: ../fish/guestfish-actions.pod:4304 ../src/guestfs-actions.pod:6462
13422 msgid ""
13423 "If you want to trace C API calls into libguestfs (and other libraries) then "
13424 "possibly a better way is to use the external ltrace(1) command."
13425 msgstr ""
13426
13427 #. type: textblock
13428 #: ../fish/guestfish-actions.pod:4308 ../src/guestfs-actions.pod:6466
13429 msgid ""
13430 "Command traces are disabled unless the environment variable "
13431 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
13432 msgstr ""
13433
13434 #. type: textblock
13435 #: ../fish/guestfish-actions.pod:4311
13436 msgid ""
13437 "Trace messages are normally sent to C<stderr>, unless you register a "
13438 "callback to send them somewhere else (see L</set-event-callback>)."
13439 msgstr ""
13440
13441 #. type: =head2
13442 #: ../fish/guestfish-actions.pod:4315
13443 msgid "set-verbose"
13444 msgstr ""
13445
13446 #. type: =head2
13447 #: ../fish/guestfish-actions.pod:4317
13448 msgid "verbose"
13449 msgstr ""
13450
13451 #. type: verbatim
13452 #: ../fish/guestfish-actions.pod:4319
13453 #, no-wrap
13454 msgid ""
13455 " set-verbose true|false\n"
13456 "\n"
13457 msgstr ""
13458
13459 #. type: textblock
13460 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6483
13461 msgid "If C<verbose> is true, this turns on verbose messages."
13462 msgstr ""
13463
13464 #. type: textblock
13465 #: ../fish/guestfish-actions.pod:4323 ../src/guestfs-actions.pod:6485
13466 msgid ""
13467 "Verbose messages are disabled unless the environment variable "
13468 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
13469 msgstr ""
13470
13471 #. type: textblock
13472 #: ../fish/guestfish-actions.pod:4326
13473 msgid ""
13474 "Verbose messages are normally sent to C<stderr>, unless you register a "
13475 "callback to send them somewhere else (see L</set-event-callback>)."
13476 msgstr ""
13477
13478 #. type: =head2
13479 #: ../fish/guestfish-actions.pod:4330
13480 msgid "setcon"
13481 msgstr ""
13482
13483 #. type: verbatim
13484 #: ../fish/guestfish-actions.pod:4332
13485 #, no-wrap
13486 msgid ""
13487 " setcon context\n"
13488 "\n"
13489 msgstr ""
13490
13491 #. type: textblock
13492 #: ../fish/guestfish-actions.pod:4334 ../src/guestfs-actions.pod:6502
13493 msgid ""
13494 "This sets the SELinux security context of the daemon to the string "
13495 "C<context>."
13496 msgstr ""
13497
13498 #. type: textblock
13499 #: ../fish/guestfish-actions.pod:4337 ../src/guestfs-actions.pod:6505
13500 msgid "See the documentation about SELINUX in L<guestfs(3)>."
13501 msgstr ""
13502
13503 #. type: =head2
13504 #: ../fish/guestfish-actions.pod:4339
13505 msgid "setxattr"
13506 msgstr ""
13507
13508 #. type: verbatim
13509 #: ../fish/guestfish-actions.pod:4341
13510 #, no-wrap
13511 msgid ""
13512 " setxattr xattr val vallen path\n"
13513 "\n"
13514 msgstr ""
13515
13516 #. type: textblock
13517 #: ../fish/guestfish-actions.pod:4343 ../src/guestfs-actions.pod:6520
13518 msgid ""
13519 "This call sets the extended attribute named C<xattr> of the file C<path> to "
13520 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
13521 msgstr ""
13522
13523 #. type: textblock
13524 #: ../fish/guestfish-actions.pod:4347
13525 msgid "See also: L</lsetxattr>, L<attr(5)>."
13526 msgstr ""
13527
13528 #. type: =head2
13529 #: ../fish/guestfish-actions.pod:4349
13530 msgid "sfdisk"
13531 msgstr ""
13532
13533 #. type: verbatim
13534 #: ../fish/guestfish-actions.pod:4351
13535 #, no-wrap
13536 msgid ""
13537 " sfdisk device cyls heads sectors 'lines ...'\n"
13538 "\n"
13539 msgstr ""
13540
13541 #. type: textblock
13542 #: ../fish/guestfish-actions.pod:4353 ../src/guestfs-actions.pod:6540
13543 msgid ""
13544 "This is a direct interface to the L<sfdisk(8)> program for creating "
13545 "partitions on block devices."
13546 msgstr ""
13547
13548 #. type: textblock
13549 #: ../fish/guestfish-actions.pod:4356 ../src/guestfs-actions.pod:6543
13550 msgid "C<device> should be a block device, for example C</dev/sda>."
13551 msgstr ""
13552
13553 #. type: textblock
13554 #: ../fish/guestfish-actions.pod:4358 ../src/guestfs-actions.pod:6545
13555 msgid ""
13556 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
13557 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
13558 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
13559 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
13560 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
13561 "the kernel) cannot work out the right geometry and you will need to tell it."
13562 msgstr ""
13563
13564 #. type: textblock
13565 #: ../fish/guestfish-actions.pod:4366 ../src/guestfs-actions.pod:6553
13566 msgid ""
13567 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
13568 "refer to the L<sfdisk(8)> manpage."
13569 msgstr ""
13570
13571 #. type: textblock
13572 #: ../fish/guestfish-actions.pod:4369 ../src/guestfs-actions.pod:6556
13573 msgid ""
13574 "To create a single partition occupying the whole disk, you would pass "
13575 "C<lines> as a single element list, when the single element being the string "
13576 "C<,> (comma)."
13577 msgstr ""
13578
13579 #. type: textblock
13580 #: ../fish/guestfish-actions.pod:4373
13581 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
13582 msgstr ""
13583
13584 #. type: textblock
13585 #: ../fish/guestfish-actions.pod:4379 ../fish/guestfish-actions.pod:4402
13586 #: ../fish/guestfish-actions.pod:4424
13587 msgid ""
13588 "This function is deprecated.  In new code, use the L</part_add> call instead."
13589 msgstr ""
13590
13591 #. type: =head2
13592 #: ../fish/guestfish-actions.pod:4386
13593 msgid "sfdiskM"
13594 msgstr ""
13595
13596 #. type: verbatim
13597 #: ../fish/guestfish-actions.pod:4388
13598 #, no-wrap
13599 msgid ""
13600 " sfdiskM device 'lines ...'\n"
13601 "\n"
13602 msgstr ""
13603
13604 #. type: textblock
13605 #: ../fish/guestfish-actions.pod:4390
13606 msgid ""
13607 "This is a simplified interface to the L</sfdisk> command, where partition "
13608 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
13609 "you don't need to specify the cyls, heads and sectors parameters which were "
13610 "rarely if ever used anyway."
13611 msgstr ""
13612
13613 #. type: textblock
13614 #: ../fish/guestfish-actions.pod:4396
13615 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
13616 msgstr ""
13617
13618 #. type: =head2
13619 #: ../fish/guestfish-actions.pod:4409
13620 msgid "sfdisk-N"
13621 msgstr ""
13622
13623 #. type: verbatim
13624 #: ../fish/guestfish-actions.pod:4411
13625 #, no-wrap
13626 msgid ""
13627 " sfdisk-N device partnum cyls heads sectors line\n"
13628 "\n"
13629 msgstr ""
13630
13631 #. type: textblock
13632 #: ../fish/guestfish-actions.pod:4413 ../src/guestfs-actions.pod:6618
13633 msgid ""
13634 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
13635 "(note: C<n> counts from 1)."
13636 msgstr ""
13637
13638 #. type: textblock
13639 #: ../fish/guestfish-actions.pod:4416
13640 msgid ""
13641 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
13642 "cyls/heads/sectors parameters."
13643 msgstr ""
13644
13645 #. type: textblock
13646 #: ../fish/guestfish-actions.pod:4419
13647 msgid "See also: L</part-add>"
13648 msgstr ""
13649
13650 #. type: =head2
13651 #: ../fish/guestfish-actions.pod:4431
13652 msgid "sfdisk-disk-geometry"
13653 msgstr ""
13654
13655 #. type: verbatim
13656 #: ../fish/guestfish-actions.pod:4433
13657 #, no-wrap
13658 msgid ""
13659 " sfdisk-disk-geometry device\n"
13660 "\n"
13661 msgstr ""
13662
13663 #. type: textblock
13664 #: ../fish/guestfish-actions.pod:4435
13665 msgid ""
13666 "This displays the disk geometry of C<device> read from the partition table.  "
13667 "Especially in the case where the underlying block device has been resized, "
13668 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
13669 "kernel-geometry>)."
13670 msgstr ""
13671
13672 #. type: textblock
13673 #: ../fish/guestfish-actions.pod:4440 ../fish/guestfish-actions.pod:4449
13674 #: ../src/guestfs-actions.pod:6651 ../src/guestfs-actions.pod:6667
13675 msgid "The result is in human-readable format, and not designed to be parsed."
13676 msgstr ""
13677
13678 #. type: =head2
13679 #: ../fish/guestfish-actions.pod:4443
13680 msgid "sfdisk-kernel-geometry"
13681 msgstr ""
13682
13683 #. type: verbatim
13684 #: ../fish/guestfish-actions.pod:4445
13685 #, no-wrap
13686 msgid ""
13687 " sfdisk-kernel-geometry device\n"
13688 "\n"
13689 msgstr ""
13690
13691 #. type: textblock
13692 #: ../fish/guestfish-actions.pod:4447 ../src/guestfs-actions.pod:6665
13693 msgid "This displays the kernel's idea of the geometry of C<device>."
13694 msgstr ""
13695
13696 #. type: =head2
13697 #: ../fish/guestfish-actions.pod:4452
13698 msgid "sfdisk-l"
13699 msgstr ""
13700
13701 #. type: verbatim
13702 #: ../fish/guestfish-actions.pod:4454
13703 #, no-wrap
13704 msgid ""
13705 " sfdisk-l device\n"
13706 "\n"
13707 msgstr ""
13708
13709 #. type: textblock
13710 #: ../fish/guestfish-actions.pod:4456 ../src/guestfs-actions.pod:6681
13711 msgid ""
13712 "This displays the partition table on C<device>, in the human-readable output "
13713 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
13714 msgstr ""
13715
13716 #. type: textblock
13717 #: ../fish/guestfish-actions.pod:4460
13718 msgid "See also: L</part-list>"
13719 msgstr ""
13720
13721 #. type: textblock
13722 #: ../fish/guestfish-actions.pod:4462
13723 msgid ""
13724 "This function is deprecated.  In new code, use the L</part_list> call "
13725 "instead."
13726 msgstr ""
13727
13728 #. type: =head2
13729 #: ../fish/guestfish-actions.pod:4469
13730 msgid "sh"
13731 msgstr ""
13732
13733 #. type: verbatim
13734 #: ../fish/guestfish-actions.pod:4471
13735 #, no-wrap
13736 msgid ""
13737 " sh command\n"
13738 "\n"
13739 msgstr ""
13740
13741 #. type: textblock
13742 #: ../fish/guestfish-actions.pod:4473 ../src/guestfs-actions.pod:6705
13743 msgid ""
13744 "This call runs a command from the guest filesystem via the guest's C</bin/"
13745 "sh>."
13746 msgstr ""
13747
13748 #. type: textblock
13749 #: ../fish/guestfish-actions.pod:4476
13750 msgid "This is like L</command>, but passes the command to:"
13751 msgstr ""
13752
13753 #. type: verbatim
13754 #: ../fish/guestfish-actions.pod:4478 ../src/guestfs-actions.pod:6710
13755 #, no-wrap
13756 msgid ""
13757 " /bin/sh -c \"command\"\n"
13758 "\n"
13759 msgstr ""
13760
13761 #. type: textblock
13762 #: ../fish/guestfish-actions.pod:4480 ../src/guestfs-actions.pod:6712
13763 msgid ""
13764 "Depending on the guest's shell, this usually results in wildcards being "
13765 "expanded, shell expressions being interpolated and so on."
13766 msgstr ""
13767
13768 #. type: textblock
13769 #: ../fish/guestfish-actions.pod:4484
13770 msgid "All the provisos about L</command> apply to this call."
13771 msgstr ""
13772
13773 #. type: =head2
13774 #: ../fish/guestfish-actions.pod:4486
13775 msgid "sh-lines"
13776 msgstr ""
13777
13778 #. type: verbatim
13779 #: ../fish/guestfish-actions.pod:4488
13780 #, no-wrap
13781 msgid ""
13782 " sh-lines command\n"
13783 "\n"
13784 msgstr ""
13785
13786 #. type: textblock
13787 #: ../fish/guestfish-actions.pod:4490
13788 msgid "This is the same as L</sh>, but splits the result into a list of lines."
13789 msgstr ""
13790
13791 #. type: textblock
13792 #: ../fish/guestfish-actions.pod:4493
13793 msgid "See also: L</command-lines>"
13794 msgstr ""
13795
13796 #. type: =head2
13797 #: ../fish/guestfish-actions.pod:4495
13798 msgid "sleep"
13799 msgstr ""
13800
13801 #. type: verbatim
13802 #: ../fish/guestfish-actions.pod:4497
13803 #, no-wrap
13804 msgid ""
13805 " sleep secs\n"
13806 "\n"
13807 msgstr ""
13808
13809 #. type: textblock
13810 #: ../fish/guestfish-actions.pod:4499 ../src/guestfs-actions.pod:6746
13811 msgid "Sleep for C<secs> seconds."
13812 msgstr ""
13813
13814 #. type: =head2
13815 #: ../fish/guestfish-actions.pod:4501
13816 msgid "stat"
13817 msgstr ""
13818
13819 #. type: verbatim
13820 #: ../fish/guestfish-actions.pod:4503
13821 #, no-wrap
13822 msgid ""
13823 " stat path\n"
13824 "\n"
13825 msgstr ""
13826
13827 #. type: textblock
13828 #: ../fish/guestfish-actions.pod:4507 ../src/guestfs-actions.pod:6760
13829 msgid "This is the same as the C<stat(2)> system call."
13830 msgstr ""
13831
13832 #. type: =head2
13833 #: ../fish/guestfish-actions.pod:4509
13834 msgid "statvfs"
13835 msgstr ""
13836
13837 #. type: verbatim
13838 #: ../fish/guestfish-actions.pod:4511
13839 #, no-wrap
13840 msgid ""
13841 " statvfs path\n"
13842 "\n"
13843 msgstr ""
13844
13845 #. type: textblock
13846 #: ../fish/guestfish-actions.pod:4513 ../src/guestfs-actions.pod:6774
13847 msgid ""
13848 "Returns file system statistics for any mounted file system.  C<path> should "
13849 "be a file or directory in the mounted file system (typically it is the mount "
13850 "point itself, but it doesn't need to be)."
13851 msgstr ""
13852
13853 #. type: textblock
13854 #: ../fish/guestfish-actions.pod:4517 ../src/guestfs-actions.pod:6778
13855 msgid "This is the same as the C<statvfs(2)> system call."
13856 msgstr ""
13857
13858 #. type: =head2
13859 #: ../fish/guestfish-actions.pod:4519
13860 msgid "strings"
13861 msgstr ""
13862
13863 #. type: verbatim
13864 #: ../fish/guestfish-actions.pod:4521
13865 #, no-wrap
13866 msgid ""
13867 " strings path\n"
13868 "\n"
13869 msgstr ""
13870
13871 #. type: textblock
13872 #: ../fish/guestfish-actions.pod:4523 ../src/guestfs-actions.pod:6792
13873 msgid ""
13874 "This runs the L<strings(1)> command on a file and returns the list of "
13875 "printable strings found."
13876 msgstr ""
13877
13878 #. type: =head2
13879 #: ../fish/guestfish-actions.pod:4529
13880 msgid "strings-e"
13881 msgstr ""
13882
13883 #. type: verbatim
13884 #: ../fish/guestfish-actions.pod:4531
13885 #, no-wrap
13886 msgid ""
13887 " strings-e encoding path\n"
13888 "\n"
13889 msgstr ""
13890
13891 #. type: textblock
13892 #: ../fish/guestfish-actions.pod:4533
13893 msgid ""
13894 "This is like the L</strings> command, but allows you to specify the encoding "
13895 "of strings that are looked for in the source file C<path>."
13896 msgstr ""
13897
13898 #. type: textblock
13899 #: ../fish/guestfish-actions.pod:4537 ../src/guestfs-actions.pod:6815
13900 msgid "Allowed encodings are:"
13901 msgstr ""
13902
13903 #. type: =item
13904 #: ../fish/guestfish-actions.pod:4541 ../src/guestfs-actions.pod:6819
13905 msgid "s"
13906 msgstr ""
13907
13908 #. type: textblock
13909 #: ../fish/guestfish-actions.pod:4543
13910 msgid ""
13911 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
13912 "ISO-8859-X (this is what L</strings> uses)."
13913 msgstr ""
13914
13915 #. type: =item
13916 #: ../fish/guestfish-actions.pod:4546 ../src/guestfs-actions.pod:6824
13917 msgid "S"
13918 msgstr ""
13919
13920 #. type: textblock
13921 #: ../fish/guestfish-actions.pod:4548 ../src/guestfs-actions.pod:6826
13922 msgid "Single 8-bit-byte characters."
13923 msgstr ""
13924
13925 #. type: =item
13926 #: ../fish/guestfish-actions.pod:4550 ../src/guestfs-actions.pod:6828
13927 msgid "b"
13928 msgstr ""
13929
13930 #. type: textblock
13931 #: ../fish/guestfish-actions.pod:4552 ../src/guestfs-actions.pod:6830
13932 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
13933 msgstr ""
13934
13935 #. type: =item
13936 #: ../fish/guestfish-actions.pod:4555 ../src/guestfs-actions.pod:6833
13937 msgid "l (lower case letter L)"
13938 msgstr ""
13939
13940 #. type: textblock
13941 #: ../fish/guestfish-actions.pod:4557 ../src/guestfs-actions.pod:6835
13942 msgid ""
13943 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
13944 "examining binaries in Windows guests."
13945 msgstr ""
13946
13947 #. type: =item
13948 #: ../fish/guestfish-actions.pod:4560 ../src/guestfs-actions.pod:6838
13949 msgid "B"
13950 msgstr ""
13951
13952 #. type: textblock
13953 #: ../fish/guestfish-actions.pod:4562 ../src/guestfs-actions.pod:6840
13954 msgid "32-bit big endian such as UCS-4BE."
13955 msgstr ""
13956
13957 #. type: =item
13958 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:6842
13959 msgid "L"
13960 msgstr ""
13961
13962 #. type: textblock
13963 #: ../fish/guestfish-actions.pod:4566 ../src/guestfs-actions.pod:6844
13964 msgid "32-bit little endian such as UCS-4LE."
13965 msgstr ""
13966
13967 #. type: textblock
13968 #: ../fish/guestfish-actions.pod:4570 ../src/guestfs-actions.pod:6848
13969 msgid "The returned strings are transcoded to UTF-8."
13970 msgstr ""
13971
13972 #. type: =head2
13973 #: ../fish/guestfish-actions.pod:4575
13974 msgid "swapoff-device"
13975 msgstr ""
13976
13977 #. type: verbatim
13978 #: ../fish/guestfish-actions.pod:4577
13979 #, no-wrap
13980 msgid ""
13981 " swapoff-device device\n"
13982 "\n"
13983 msgstr ""
13984
13985 #. type: textblock
13986 #: ../fish/guestfish-actions.pod:4579
13987 msgid ""
13988 "This command disables the libguestfs appliance swap device or partition "
13989 "named C<device>.  See L</swapon-device>."
13990 msgstr ""
13991
13992 #. type: =head2
13993 #: ../fish/guestfish-actions.pod:4583
13994 msgid "swapoff-file"
13995 msgstr ""
13996
13997 #. type: verbatim
13998 #: ../fish/guestfish-actions.pod:4585
13999 #, no-wrap
14000 msgid ""
14001 " swapoff-file file\n"
14002 "\n"
14003 msgstr ""
14004
14005 #. type: textblock
14006 #: ../fish/guestfish-actions.pod:4587 ../src/guestfs-actions.pod:6879
14007 msgid "This command disables the libguestfs appliance swap on file."
14008 msgstr ""
14009
14010 #. type: =head2
14011 #: ../fish/guestfish-actions.pod:4589
14012 msgid "swapoff-label"
14013 msgstr ""
14014
14015 #. type: verbatim
14016 #: ../fish/guestfish-actions.pod:4591
14017 #, no-wrap
14018 msgid ""
14019 " swapoff-label label\n"
14020 "\n"
14021 msgstr ""
14022
14023 #. type: textblock
14024 #: ../fish/guestfish-actions.pod:4593 ../src/guestfs-actions.pod:6891
14025 msgid ""
14026 "This command disables the libguestfs appliance swap on labeled swap "
14027 "partition."
14028 msgstr ""
14029
14030 #. type: =head2
14031 #: ../fish/guestfish-actions.pod:4596
14032 msgid "swapoff-uuid"
14033 msgstr ""
14034
14035 #. type: verbatim
14036 #: ../fish/guestfish-actions.pod:4598
14037 #, no-wrap
14038 msgid ""
14039 " swapoff-uuid uuid\n"
14040 "\n"
14041 msgstr ""
14042
14043 #. type: textblock
14044 #: ../fish/guestfish-actions.pod:4600 ../src/guestfs-actions.pod:6904
14045 msgid ""
14046 "This command disables the libguestfs appliance swap partition with the given "
14047 "UUID."
14048 msgstr ""
14049
14050 #. type: =head2
14051 #: ../fish/guestfish-actions.pod:4603
14052 msgid "swapon-device"
14053 msgstr ""
14054
14055 #. type: verbatim
14056 #: ../fish/guestfish-actions.pod:4605
14057 #, no-wrap
14058 msgid ""
14059 " swapon-device device\n"
14060 "\n"
14061 msgstr ""
14062
14063 #. type: textblock
14064 #: ../fish/guestfish-actions.pod:4607
14065 msgid ""
14066 "This command enables the libguestfs appliance to use the swap device or "
14067 "partition named C<device>.  The increased memory is made available for all "
14068 "commands, for example those run using L</command> or L</sh>."
14069 msgstr ""
14070
14071 #. type: textblock
14072 #: ../fish/guestfish-actions.pod:4612 ../src/guestfs-actions.pod:6922
14073 msgid ""
14074 "Note that you should not swap to existing guest swap partitions unless you "
14075 "know what you are doing.  They may contain hibernation information, or other "
14076 "information that the guest doesn't want you to trash.  You also risk leaking "
14077 "information about the host to the guest this way.  Instead, attach a new "
14078 "host device to the guest and swap on that."
14079 msgstr ""
14080
14081 #. type: =head2
14082 #: ../fish/guestfish-actions.pod:4619
14083 msgid "swapon-file"
14084 msgstr ""
14085
14086 #. type: verbatim
14087 #: ../fish/guestfish-actions.pod:4621
14088 #, no-wrap
14089 msgid ""
14090 " swapon-file file\n"
14091 "\n"
14092 msgstr ""
14093
14094 #. type: textblock
14095 #: ../fish/guestfish-actions.pod:4623
14096 msgid ""
14097 "This command enables swap to a file.  See L</swapon-device> for other notes."
14098 msgstr ""
14099
14100 #. type: =head2
14101 #: ../fish/guestfish-actions.pod:4626
14102 msgid "swapon-label"
14103 msgstr ""
14104
14105 #. type: verbatim
14106 #: ../fish/guestfish-actions.pod:4628
14107 #, no-wrap
14108 msgid ""
14109 " swapon-label label\n"
14110 "\n"
14111 msgstr ""
14112
14113 #. type: textblock
14114 #: ../fish/guestfish-actions.pod:4630
14115 msgid ""
14116 "This command enables swap to a labeled swap partition.  See L</swapon-"
14117 "device> for other notes."
14118 msgstr ""
14119
14120 #. type: =head2
14121 #: ../fish/guestfish-actions.pod:4633
14122 msgid "swapon-uuid"
14123 msgstr ""
14124
14125 #. type: verbatim
14126 #: ../fish/guestfish-actions.pod:4635
14127 #, no-wrap
14128 msgid ""
14129 " swapon-uuid uuid\n"
14130 "\n"
14131 msgstr ""
14132
14133 #. type: textblock
14134 #: ../fish/guestfish-actions.pod:4637
14135 msgid ""
14136 "This command enables swap to a swap partition with the given UUID.  See L</"
14137 "swapon-device> for other notes."
14138 msgstr ""
14139
14140 #. type: =head2
14141 #: ../fish/guestfish-actions.pod:4640
14142 msgid "sync"
14143 msgstr ""
14144
14145 #. type: verbatim
14146 #: ../fish/guestfish-actions.pod:4642
14147 #, no-wrap
14148 msgid ""
14149 " sync\n"
14150 "\n"
14151 msgstr ""
14152
14153 #. type: textblock
14154 #: ../fish/guestfish-actions.pod:4644 ../src/guestfs-actions.pod:6977
14155 msgid ""
14156 "This syncs the disk, so that any writes are flushed through to the "
14157 "underlying disk image."
14158 msgstr ""
14159
14160 #. type: textblock
14161 #: ../fish/guestfish-actions.pod:4647 ../src/guestfs-actions.pod:6980
14162 msgid ""
14163 "You should always call this if you have modified a disk image, before "
14164 "closing the handle."
14165 msgstr ""
14166
14167 #. type: =head2
14168 #: ../fish/guestfish-actions.pod:4650
14169 msgid "tail"
14170 msgstr ""
14171
14172 #. type: verbatim
14173 #: ../fish/guestfish-actions.pod:4652
14174 #, no-wrap
14175 msgid ""
14176 " tail path\n"
14177 "\n"
14178 msgstr ""
14179
14180 #. type: textblock
14181 #: ../fish/guestfish-actions.pod:4654 ../src/guestfs-actions.pod:6993
14182 msgid ""
14183 "This command returns up to the last 10 lines of a file as a list of strings."
14184 msgstr ""
14185
14186 #. type: =head2
14187 #: ../fish/guestfish-actions.pod:4660
14188 msgid "tail-n"
14189 msgstr ""
14190
14191 #. type: verbatim
14192 #: ../fish/guestfish-actions.pod:4662
14193 #, no-wrap
14194 msgid ""
14195 " tail-n nrlines path\n"
14196 "\n"
14197 msgstr ""
14198
14199 #. type: textblock
14200 #: ../fish/guestfish-actions.pod:4664 ../src/guestfs-actions.pod:7012
14201 msgid ""
14202 "If the parameter C<nrlines> is a positive number, this returns the last "
14203 "C<nrlines> lines of the file C<path>."
14204 msgstr ""
14205
14206 #. type: textblock
14207 #: ../fish/guestfish-actions.pod:4667 ../src/guestfs-actions.pod:7015
14208 msgid ""
14209 "If the parameter C<nrlines> is a negative number, this returns lines from "
14210 "the file C<path>, starting with the C<-nrlines>th line."
14211 msgstr ""
14212
14213 #. type: =head2
14214 #: ../fish/guestfish-actions.pod:4675
14215 msgid "tar-in"
14216 msgstr ""
14217
14218 #. type: verbatim
14219 #: ../fish/guestfish-actions.pod:4677
14220 #, no-wrap
14221 msgid ""
14222 " tar-in (tarfile|-) directory\n"
14223 "\n"
14224 msgstr ""
14225
14226 #. type: textblock
14227 #: ../fish/guestfish-actions.pod:4679 ../src/guestfs-actions.pod:7036
14228 msgid ""
14229 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14230 "tar file) into C<directory>."
14231 msgstr ""
14232
14233 #. type: textblock
14234 #: ../fish/guestfish-actions.pod:4682
14235 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
14236 msgstr ""
14237
14238 #. type: =head2
14239 #: ../fish/guestfish-actions.pod:4687
14240 msgid "tar-out"
14241 msgstr ""
14242
14243 #. type: verbatim
14244 #: ../fish/guestfish-actions.pod:4689
14245 #, no-wrap
14246 msgid ""
14247 " tar-out directory (tarfile|-)\n"
14248 "\n"
14249 msgstr ""
14250
14251 #. type: textblock
14252 #: ../fish/guestfish-actions.pod:4691 ../src/guestfs-actions.pod:7053
14253 msgid ""
14254 "This command packs the contents of C<directory> and downloads it to local "
14255 "file C<tarfile>."
14256 msgstr ""
14257
14258 #. type: textblock
14259 #: ../fish/guestfish-actions.pod:4694
14260 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
14261 msgstr ""
14262
14263 #. type: =head2
14264 #: ../fish/guestfish-actions.pod:4699
14265 msgid "tgz-in"
14266 msgstr ""
14267
14268 #. type: verbatim
14269 #: ../fish/guestfish-actions.pod:4701
14270 #, no-wrap
14271 msgid ""
14272 " tgz-in (tarball|-) directory\n"
14273 "\n"
14274 msgstr ""
14275
14276 #. type: textblock
14277 #: ../fish/guestfish-actions.pod:4703 ../src/guestfs-actions.pod:7070
14278 msgid ""
14279 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14280 "tar file) into C<directory>."
14281 msgstr ""
14282
14283 #. type: textblock
14284 #: ../fish/guestfish-actions.pod:4706
14285 msgid "To upload an uncompressed tarball, use L</tar-in>."
14286 msgstr ""
14287
14288 #. type: =head2
14289 #: ../fish/guestfish-actions.pod:4710
14290 msgid "tgz-out"
14291 msgstr ""
14292
14293 #. type: verbatim
14294 #: ../fish/guestfish-actions.pod:4712
14295 #, no-wrap
14296 msgid ""
14297 " tgz-out directory (tarball|-)\n"
14298 "\n"
14299 msgstr ""
14300
14301 #. type: textblock
14302 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7086
14303 msgid ""
14304 "This command packs the contents of C<directory> and downloads it to local "
14305 "file C<tarball>."
14306 msgstr ""
14307
14308 #. type: textblock
14309 #: ../fish/guestfish-actions.pod:4717
14310 msgid "To download an uncompressed tarball, use L</tar-out>."
14311 msgstr ""
14312
14313 #. type: =head2
14314 #: ../fish/guestfish-actions.pod:4721
14315 msgid "touch"
14316 msgstr ""
14317
14318 #. type: verbatim
14319 #: ../fish/guestfish-actions.pod:4723
14320 #, no-wrap
14321 msgid ""
14322 " touch path\n"
14323 "\n"
14324 msgstr ""
14325
14326 #. type: textblock
14327 #: ../fish/guestfish-actions.pod:4725 ../src/guestfs-actions.pod:7101
14328 msgid ""
14329 "Touch acts like the L<touch(1)> command.  It can be used to update the "
14330 "timestamps on a file, or, if the file does not exist, to create a new zero-"
14331 "length file."
14332 msgstr ""
14333
14334 #. type: textblock
14335 #: ../fish/guestfish-actions.pod:4729 ../src/guestfs-actions.pod:7105
14336 msgid ""
14337 "This command only works on regular files, and will fail on other file types "
14338 "such as directories, symbolic links, block special etc."
14339 msgstr ""
14340
14341 #. type: =head2
14342 #: ../fish/guestfish-actions.pod:4732
14343 msgid "truncate"
14344 msgstr ""
14345
14346 #. type: verbatim
14347 #: ../fish/guestfish-actions.pod:4734
14348 #, no-wrap
14349 msgid ""
14350 " truncate path\n"
14351 "\n"
14352 msgstr ""
14353
14354 #. type: textblock
14355 #: ../fish/guestfish-actions.pod:4736 ../src/guestfs-actions.pod:7118
14356 msgid ""
14357 "This command truncates C<path> to a zero-length file.  The file must exist "
14358 "already."
14359 msgstr ""
14360
14361 #. type: =head2
14362 #: ../fish/guestfish-actions.pod:4739
14363 msgid "truncate-size"
14364 msgstr ""
14365
14366 #. type: verbatim
14367 #: ../fish/guestfish-actions.pod:4741
14368 #, no-wrap
14369 msgid ""
14370 " truncate-size path size\n"
14371 "\n"
14372 msgstr ""
14373
14374 #. type: textblock
14375 #: ../fish/guestfish-actions.pod:4743 ../src/guestfs-actions.pod:7132
14376 msgid ""
14377 "This command truncates C<path> to size C<size> bytes.  The file must exist "
14378 "already."
14379 msgstr ""
14380
14381 #. type: textblock
14382 #: ../fish/guestfish-actions.pod:4746
14383 msgid ""
14384 "If the current file size is less than C<size> then the file is extended to "
14385 "the required size with zero bytes.  This creates a sparse file (ie. disk "
14386 "blocks are not allocated for the file until you write to it).  To create a "
14387 "non-sparse file of zeroes, use L</fallocate64> instead."
14388 msgstr ""
14389
14390 #. type: =head2
14391 #: ../fish/guestfish-actions.pod:4752
14392 msgid "tune2fs-l"
14393 msgstr ""
14394
14395 #. type: verbatim
14396 #: ../fish/guestfish-actions.pod:4754
14397 #, no-wrap
14398 msgid ""
14399 " tune2fs-l device\n"
14400 "\n"
14401 msgstr ""
14402
14403 #. type: textblock
14404 #: ../fish/guestfish-actions.pod:4756 ../src/guestfs-actions.pod:7151
14405 msgid ""
14406 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
14407 "C<device>."
14408 msgstr ""
14409
14410 #. type: textblock
14411 #: ../fish/guestfish-actions.pod:4759 ../src/guestfs-actions.pod:7154
14412 msgid ""
14413 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
14414 "for more details.  The list of fields returned isn't clearly defined, and "
14415 "depends on both the version of C<tune2fs> that libguestfs was built against, "
14416 "and the filesystem itself."
14417 msgstr ""
14418
14419 #. type: =head2
14420 #: ../fish/guestfish-actions.pod:4764
14421 msgid "txz-in"
14422 msgstr ""
14423
14424 #. type: verbatim
14425 #: ../fish/guestfish-actions.pod:4766
14426 #, no-wrap
14427 msgid ""
14428 " txz-in (tarball|-) directory\n"
14429 "\n"
14430 msgstr ""
14431
14432 #. type: textblock
14433 #: ../fish/guestfish-actions.pod:4768 ../src/guestfs-actions.pod:7174
14434 msgid ""
14435 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
14436 "tar file) into C<directory>."
14437 msgstr ""
14438
14439 #. type: =head2
14440 #: ../fish/guestfish-actions.pod:4773
14441 msgid "txz-out"
14442 msgstr ""
14443
14444 #. type: verbatim
14445 #: ../fish/guestfish-actions.pod:4775
14446 #, no-wrap
14447 msgid ""
14448 " txz-out directory (tarball|-)\n"
14449 "\n"
14450 msgstr ""
14451
14452 #. type: textblock
14453 #: ../fish/guestfish-actions.pod:4777 ../src/guestfs-actions.pod:7188
14454 msgid ""
14455 "This command packs the contents of C<directory> and downloads it to local "
14456 "file C<tarball> (as an xz compressed tar archive)."
14457 msgstr ""
14458
14459 #. type: =head2
14460 #: ../fish/guestfish-actions.pod:4782
14461 msgid "umask"
14462 msgstr ""
14463
14464 #. type: verbatim
14465 #: ../fish/guestfish-actions.pod:4784
14466 #, no-wrap
14467 msgid ""
14468 " umask mask\n"
14469 "\n"
14470 msgstr ""
14471
14472 #. type: textblock
14473 #: ../fish/guestfish-actions.pod:4786 ../src/guestfs-actions.pod:7201
14474 msgid ""
14475 "This function sets the mask used for creating new files and device nodes to "
14476 "C<mask & 0777>."
14477 msgstr ""
14478
14479 #. type: textblock
14480 #: ../fish/guestfish-actions.pod:4789 ../src/guestfs-actions.pod:7204
14481 msgid ""
14482 "Typical umask values would be C<022> which creates new files with "
14483 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
14484 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
14485 msgstr ""
14486
14487 #. type: textblock
14488 #: ../fish/guestfish-actions.pod:4794 ../src/guestfs-actions.pod:7209
14489 msgid ""
14490 "The default umask is C<022>.  This is important because it means that "
14491 "directories and device nodes will be created with C<0644> or C<0755> mode "
14492 "even if you specify C<0777>."
14493 msgstr ""
14494
14495 #. type: textblock
14496 #: ../fish/guestfish-actions.pod:4798
14497 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
14498 msgstr ""
14499
14500 #. type: textblock
14501 #: ../fish/guestfish-actions.pod:4801 ../src/guestfs-actions.pod:7216
14502 msgid "This call returns the previous umask."
14503 msgstr ""
14504
14505 #. type: =head2
14506 #: ../fish/guestfish-actions.pod:4803
14507 msgid "umount"
14508 msgstr ""
14509
14510 #. type: =head2
14511 #: ../fish/guestfish-actions.pod:4805
14512 msgid "unmount"
14513 msgstr ""
14514
14515 #. type: verbatim
14516 #: ../fish/guestfish-actions.pod:4807
14517 #, no-wrap
14518 msgid ""
14519 " umount pathordevice\n"
14520 "\n"
14521 msgstr ""
14522
14523 #. type: textblock
14524 #: ../fish/guestfish-actions.pod:4809 ../src/guestfs-actions.pod:7228
14525 msgid ""
14526 "This unmounts the given filesystem.  The filesystem may be specified either "
14527 "by its mountpoint (path) or the device which contains the filesystem."
14528 msgstr ""
14529
14530 #. type: =head2
14531 #: ../fish/guestfish-actions.pod:4813
14532 msgid "umount-all"
14533 msgstr ""
14534
14535 #. type: =head2
14536 #: ../fish/guestfish-actions.pod:4815
14537 msgid "unmount-all"
14538 msgstr ""
14539
14540 #. type: verbatim
14541 #: ../fish/guestfish-actions.pod:4817
14542 #, no-wrap
14543 msgid ""
14544 " umount-all\n"
14545 "\n"
14546 msgstr ""
14547
14548 #. type: textblock
14549 #: ../fish/guestfish-actions.pod:4819 ../src/guestfs-actions.pod:7241
14550 msgid "This unmounts all mounted filesystems."
14551 msgstr ""
14552
14553 #. type: textblock
14554 #: ../fish/guestfish-actions.pod:4821 ../src/guestfs-actions.pod:7243
14555 msgid "Some internal mounts are not unmounted by this call."
14556 msgstr ""
14557
14558 #. type: =head2
14559 #: ../fish/guestfish-actions.pod:4823
14560 msgid "upload"
14561 msgstr ""
14562
14563 #. type: verbatim
14564 #: ../fish/guestfish-actions.pod:4825
14565 #, no-wrap
14566 msgid ""
14567 " upload (filename|-) remotefilename\n"
14568 "\n"
14569 msgstr ""
14570
14571 #. type: textblock
14572 #: ../fish/guestfish-actions.pod:4827 ../fish/guestfish-actions.pod:4840
14573 #: ../src/guestfs-actions.pod:7256 ../src/guestfs-actions.pod:7280
14574 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
14575 msgstr ""
14576
14577 #. type: textblock
14578 #: ../fish/guestfish-actions.pod:4832
14579 msgid "See also L</download>."
14580 msgstr ""
14581
14582 #. type: =head2
14583 #: ../fish/guestfish-actions.pod:4836
14584 msgid "upload-offset"
14585 msgstr ""
14586
14587 #. type: verbatim
14588 #: ../fish/guestfish-actions.pod:4838
14589 #, no-wrap
14590 msgid ""
14591 " upload-offset (filename|-) remotefilename offset\n"
14592 "\n"
14593 msgstr ""
14594
14595 #. type: textblock
14596 #: ../fish/guestfish-actions.pod:4843 ../src/guestfs-actions.pod:7283
14597 msgid ""
14598 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
14599 "The intention is to overwrite parts of existing files or devices, although "
14600 "if a non-existant file is specified then it is created with a \"hole\" "
14601 "before C<offset>.  The size of the data written is implicit in the size of "
14602 "the source C<filename>."
14603 msgstr ""
14604
14605 #. type: textblock
14606 #: ../fish/guestfish-actions.pod:4850
14607 msgid ""
14608 "Note that there is no limit on the amount of data that can be uploaded with "
14609 "this call, unlike with L</pwrite>, and this call always writes the full "
14610 "amount unless an error occurs."
14611 msgstr ""
14612
14613 #. type: textblock
14614 #: ../fish/guestfish-actions.pod:4855
14615 msgid "See also L</upload>, L</pwrite>."
14616 msgstr ""
14617
14618 #. type: =head2
14619 #: ../fish/guestfish-actions.pod:4859
14620 msgid "utimens"
14621 msgstr ""
14622
14623 #. type: verbatim
14624 #: ../fish/guestfish-actions.pod:4861
14625 #, no-wrap
14626 msgid ""
14627 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
14628 "\n"
14629 msgstr ""
14630
14631 #. type: textblock
14632 #: ../fish/guestfish-actions.pod:4863 ../src/guestfs-actions.pod:7316
14633 msgid "This command sets the timestamps of a file with nanosecond precision."
14634 msgstr ""
14635
14636 #. type: textblock
14637 #: ../fish/guestfish-actions.pod:4866 ../src/guestfs-actions.pod:7319
14638 msgid ""
14639 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
14640 "from the epoch."
14641 msgstr ""
14642
14643 #. type: textblock
14644 #: ../fish/guestfish-actions.pod:4869 ../src/guestfs-actions.pod:7322
14645 msgid ""
14646 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
14647 "nanoseconds from the epoch."
14648 msgstr ""
14649
14650 #. type: textblock
14651 #: ../fish/guestfish-actions.pod:4872 ../src/guestfs-actions.pod:7325
14652 msgid ""
14653 "If the C<*nsecs> field contains the special value C<-1> then the "
14654 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
14655 "ignored in this case)."
14656 msgstr ""
14657
14658 #. type: textblock
14659 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7329
14660 msgid ""
14661 "If the C<*nsecs> field contains the special value C<-2> then the "
14662 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
14663 "in this case)."
14664 msgstr ""
14665
14666 #. type: =head2
14667 #: ../fish/guestfish-actions.pod:4880
14668 msgid "version"
14669 msgstr ""
14670
14671 #. type: verbatim
14672 #: ../fish/guestfish-actions.pod:4882
14673 #, no-wrap
14674 msgid ""
14675 " version\n"
14676 "\n"
14677 msgstr ""
14678
14679 #. type: textblock
14680 #: ../fish/guestfish-actions.pod:4884 ../src/guestfs-actions.pod:7342
14681 msgid ""
14682 "Return the libguestfs version number that the program is linked against."
14683 msgstr ""
14684
14685 #. type: textblock
14686 #: ../fish/guestfish-actions.pod:4887 ../src/guestfs-actions.pod:7345
14687 msgid ""
14688 "Note that because of dynamic linking this is not necessarily the version of "
14689 "libguestfs that you compiled against.  You can compile the program, and then "
14690 "at runtime dynamically link against a completely different C<libguestfs.so> "
14691 "library."
14692 msgstr ""
14693
14694 #. type: textblock
14695 #: ../fish/guestfish-actions.pod:4892 ../src/guestfs-actions.pod:7350
14696 msgid ""
14697 "This call was added in version C<1.0.58>.  In previous versions of "
14698 "libguestfs there was no way to get the version number.  From C code you can "
14699 "use dynamic linker functions to find out if this symbol exists (if it "
14700 "doesn't, then it's an earlier version)."
14701 msgstr ""
14702
14703 #. type: textblock
14704 #: ../fish/guestfish-actions.pod:4898 ../src/guestfs-actions.pod:7356
14705 msgid ""
14706 "The call returns a structure with four elements.  The first three (C<major>, "
14707 "C<minor> and C<release>) are numbers and correspond to the usual version "
14708 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
14709 "but may be used for distro-specific information."
14710 msgstr ""
14711
14712 #. type: textblock
14713 #: ../fish/guestfish-actions.pod:4904 ../src/guestfs-actions.pod:7362
14714 msgid ""
14715 "To construct the original version string: C<$major.$minor.$release$extra>"
14716 msgstr ""
14717
14718 #. type: textblock
14719 #: ../fish/guestfish-actions.pod:4907 ../src/guestfs-actions.pod:7365
14720 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
14721 msgstr ""
14722
14723 #. type: textblock
14724 #: ../fish/guestfish-actions.pod:4909
14725 msgid ""
14726 "I<Note:> Don't use this call to test for availability of features.  In "
14727 "enterprise distributions we backport features from later versions into "
14728 "earlier versions, making this an unreliable way to test for features.  Use "
14729 "L</available> instead."
14730 msgstr ""
14731
14732 #. type: =head2
14733 #: ../fish/guestfish-actions.pod:4915
14734 msgid "vfs-label"
14735 msgstr ""
14736
14737 #. type: verbatim
14738 #: ../fish/guestfish-actions.pod:4917
14739 #, no-wrap
14740 msgid ""
14741 " vfs-label device\n"
14742 "\n"
14743 msgstr ""
14744
14745 #. type: textblock
14746 #: ../fish/guestfish-actions.pod:4919 ../src/guestfs-actions.pod:7385
14747 msgid "This returns the filesystem label of the filesystem on C<device>."
14748 msgstr ""
14749
14750 #. type: textblock
14751 #: ../fish/guestfish-actions.pod:4922 ../src/guestfs-actions.pod:7388
14752 msgid "If the filesystem is unlabeled, this returns the empty string."
14753 msgstr ""
14754
14755 #. type: textblock
14756 #: ../fish/guestfish-actions.pod:4924
14757 msgid "To find a filesystem from the label, use L</findfs-label>."
14758 msgstr ""
14759
14760 #. type: =head2
14761 #: ../fish/guestfish-actions.pod:4926
14762 msgid "vfs-type"
14763 msgstr ""
14764
14765 #. type: verbatim
14766 #: ../fish/guestfish-actions.pod:4928
14767 #, no-wrap
14768 msgid ""
14769 " vfs-type device\n"
14770 "\n"
14771 msgstr ""
14772
14773 #. type: textblock
14774 #: ../fish/guestfish-actions.pod:4930 ../src/guestfs-actions.pod:7403
14775 msgid ""
14776 "This command gets the filesystem type corresponding to the filesystem on "
14777 "C<device>."
14778 msgstr ""
14779
14780 #. type: textblock
14781 #: ../fish/guestfish-actions.pod:4933 ../src/guestfs-actions.pod:7406
14782 msgid ""
14783 "For most filesystems, the result is the name of the Linux VFS module which "
14784 "would be used to mount this filesystem if you mounted it without specifying "
14785 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
14786 msgstr ""
14787
14788 #. type: =head2
14789 #: ../fish/guestfish-actions.pod:4938
14790 msgid "vfs-uuid"
14791 msgstr ""
14792
14793 #. type: verbatim
14794 #: ../fish/guestfish-actions.pod:4940
14795 #, no-wrap
14796 msgid ""
14797 " vfs-uuid device\n"
14798 "\n"
14799 msgstr ""
14800
14801 #. type: textblock
14802 #: ../fish/guestfish-actions.pod:4942 ../src/guestfs-actions.pod:7422
14803 msgid "This returns the filesystem UUID of the filesystem on C<device>."
14804 msgstr ""
14805
14806 #. type: textblock
14807 #: ../fish/guestfish-actions.pod:4945 ../src/guestfs-actions.pod:7425
14808 msgid "If the filesystem does not have a UUID, this returns the empty string."
14809 msgstr ""
14810
14811 #. type: textblock
14812 #: ../fish/guestfish-actions.pod:4947
14813 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
14814 msgstr ""
14815
14816 #. type: =head2
14817 #: ../fish/guestfish-actions.pod:4949
14818 msgid "vg-activate"
14819 msgstr ""
14820
14821 #. type: verbatim
14822 #: ../fish/guestfish-actions.pod:4951
14823 #, no-wrap
14824 msgid ""
14825 " vg-activate true|false 'volgroups ...'\n"
14826 "\n"
14827 msgstr ""
14828
14829 #. type: textblock
14830 #: ../fish/guestfish-actions.pod:4953 ../src/guestfs-actions.pod:7441
14831 msgid ""
14832 "This command activates or (if C<activate> is false) deactivates all logical "
14833 "volumes in the listed volume groups C<volgroups>."
14834 msgstr ""
14835
14836 #. type: textblock
14837 #: ../fish/guestfish-actions.pod:4956 ../src/guestfs-actions.pod:7444
14838 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
14839 msgstr ""
14840
14841 #. type: textblock
14842 #: ../fish/guestfish-actions.pod:4958 ../src/guestfs-actions.pod:7446
14843 msgid ""
14844 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
14845 "activated or deactivated."
14846 msgstr ""
14847
14848 #. type: =head2
14849 #: ../fish/guestfish-actions.pod:4961
14850 msgid "vg-activate-all"
14851 msgstr ""
14852
14853 #. type: verbatim
14854 #: ../fish/guestfish-actions.pod:4963
14855 #, no-wrap
14856 msgid ""
14857 " vg-activate-all true|false\n"
14858 "\n"
14859 msgstr ""
14860
14861 #. type: textblock
14862 #: ../fish/guestfish-actions.pod:4965 ../src/guestfs-actions.pod:7459
14863 msgid ""
14864 "This command activates or (if C<activate> is false) deactivates all logical "
14865 "volumes in all volume groups."
14866 msgstr ""
14867
14868 #. type: textblock
14869 #: ../fish/guestfish-actions.pod:4968 ../src/guestfs-actions.pod:7462
14870 msgid "This command is the same as running C<vgchange -a y|n>"
14871 msgstr ""
14872
14873 #. type: =head2
14874 #: ../fish/guestfish-actions.pod:4970
14875 msgid "vgcreate"
14876 msgstr ""
14877
14878 #. type: verbatim
14879 #: ../fish/guestfish-actions.pod:4972
14880 #, no-wrap
14881 msgid ""
14882 " vgcreate volgroup 'physvols ...'\n"
14883 "\n"
14884 msgstr ""
14885
14886 #. type: textblock
14887 #: ../fish/guestfish-actions.pod:4974 ../src/guestfs-actions.pod:7475
14888 msgid ""
14889 "This creates an LVM volume group called C<volgroup> from the non-empty list "
14890 "of physical volumes C<physvols>."
14891 msgstr ""
14892
14893 #. type: =head2
14894 #: ../fish/guestfish-actions.pod:4977
14895 msgid "vglvuuids"
14896 msgstr ""
14897
14898 #. type: verbatim
14899 #: ../fish/guestfish-actions.pod:4979
14900 #, no-wrap
14901 msgid ""
14902 " vglvuuids vgname\n"
14903 "\n"
14904 msgstr ""
14905
14906 #. type: textblock
14907 #: ../fish/guestfish-actions.pod:4981 ../src/guestfs-actions.pod:7488
14908 msgid ""
14909 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
14910 "volumes created in this volume group."
14911 msgstr ""
14912
14913 #. type: textblock
14914 #: ../fish/guestfish-actions.pod:4984
14915 msgid ""
14916 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
14917 "logical volumes and volume groups."
14918 msgstr ""
14919
14920 #. type: textblock
14921 #: ../fish/guestfish-actions.pod:4987
14922 msgid "See also L</vgpvuuids>."
14923 msgstr ""
14924
14925 #. type: =head2
14926 #: ../fish/guestfish-actions.pod:4989
14927 msgid "vgpvuuids"
14928 msgstr ""
14929
14930 #. type: verbatim
14931 #: ../fish/guestfish-actions.pod:4991
14932 #, no-wrap
14933 msgid ""
14934 " vgpvuuids vgname\n"
14935 "\n"
14936 msgstr ""
14937
14938 #. type: textblock
14939 #: ../fish/guestfish-actions.pod:4993 ../src/guestfs-actions.pod:7508
14940 msgid ""
14941 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
14942 "volumes that this volume group resides on."
14943 msgstr ""
14944
14945 #. type: textblock
14946 #: ../fish/guestfish-actions.pod:4996
14947 msgid ""
14948 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
14949 "physical volumes and volume groups."
14950 msgstr ""
14951
14952 #. type: textblock
14953 #: ../fish/guestfish-actions.pod:4999
14954 msgid "See also L</vglvuuids>."
14955 msgstr ""
14956
14957 #. type: =head2
14958 #: ../fish/guestfish-actions.pod:5001
14959 msgid "vgremove"
14960 msgstr ""
14961
14962 #. type: verbatim
14963 #: ../fish/guestfish-actions.pod:5003
14964 #, no-wrap
14965 msgid ""
14966 " vgremove vgname\n"
14967 "\n"
14968 msgstr ""
14969
14970 #. type: textblock
14971 #: ../fish/guestfish-actions.pod:5005 ../src/guestfs-actions.pod:7528
14972 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
14973 msgstr ""
14974
14975 #. type: textblock
14976 #: ../fish/guestfish-actions.pod:5007 ../src/guestfs-actions.pod:7530
14977 msgid ""
14978 "This also forcibly removes all logical volumes in the volume group (if any)."
14979 msgstr ""
14980
14981 #. type: =head2
14982 #: ../fish/guestfish-actions.pod:5010
14983 msgid "vgrename"
14984 msgstr ""
14985
14986 #. type: verbatim
14987 #: ../fish/guestfish-actions.pod:5012
14988 #, no-wrap
14989 msgid ""
14990 " vgrename volgroup newvolgroup\n"
14991 "\n"
14992 msgstr ""
14993
14994 #. type: textblock
14995 #: ../fish/guestfish-actions.pod:5014 ../src/guestfs-actions.pod:7544
14996 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
14997 msgstr ""
14998
14999 #. type: =head2
15000 #: ../fish/guestfish-actions.pod:5016
15001 msgid "vgs"
15002 msgstr ""
15003
15004 #. type: verbatim
15005 #: ../fish/guestfish-actions.pod:5018
15006 #, no-wrap
15007 msgid ""
15008 " vgs\n"
15009 "\n"
15010 msgstr ""
15011
15012 #. type: textblock
15013 #: ../fish/guestfish-actions.pod:5020 ../src/guestfs-actions.pod:7555
15014 msgid ""
15015 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15016 "> command."
15017 msgstr ""
15018
15019 #. type: textblock
15020 #: ../fish/guestfish-actions.pod:5023 ../src/guestfs-actions.pod:7558
15021 msgid ""
15022 "This returns a list of just the volume group names that were detected (eg. "
15023 "C<VolGroup00>)."
15024 msgstr ""
15025
15026 #. type: textblock
15027 #: ../fish/guestfish-actions.pod:5026
15028 msgid "See also L</vgs-full>."
15029 msgstr ""
15030
15031 #. type: =head2
15032 #: ../fish/guestfish-actions.pod:5028
15033 msgid "vgs-full"
15034 msgstr ""
15035
15036 #. type: verbatim
15037 #: ../fish/guestfish-actions.pod:5030
15038 #, no-wrap
15039 msgid ""
15040 " vgs-full\n"
15041 "\n"
15042 msgstr ""
15043
15044 #. type: textblock
15045 #: ../fish/guestfish-actions.pod:5032 ../src/guestfs-actions.pod:7574
15046 msgid ""
15047 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15048 "> command.  The \"full\" version includes all fields."
15049 msgstr ""
15050
15051 #. type: =head2
15052 #: ../fish/guestfish-actions.pod:5035
15053 msgid "vgscan"
15054 msgstr ""
15055
15056 #. type: verbatim
15057 #: ../fish/guestfish-actions.pod:5037
15058 #, no-wrap
15059 msgid ""
15060 " vgscan\n"
15061 "\n"
15062 msgstr ""
15063
15064 #. type: textblock
15065 #: ../fish/guestfish-actions.pod:5039 ../src/guestfs-actions.pod:7588
15066 msgid ""
15067 "This rescans all block devices and rebuilds the list of LVM physical "
15068 "volumes, volume groups and logical volumes."
15069 msgstr ""
15070
15071 #. type: =head2
15072 #: ../fish/guestfish-actions.pod:5042
15073 msgid "vguuid"
15074 msgstr ""
15075
15076 #. type: verbatim
15077 #: ../fish/guestfish-actions.pod:5044
15078 #, no-wrap
15079 msgid ""
15080 " vguuid vgname\n"
15081 "\n"
15082 msgstr ""
15083
15084 #. type: textblock
15085 #: ../fish/guestfish-actions.pod:5046 ../src/guestfs-actions.pod:7601
15086 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15087 msgstr ""
15088
15089 #. type: =head2
15090 #: ../fish/guestfish-actions.pod:5048
15091 msgid "wc-c"
15092 msgstr ""
15093
15094 #. type: verbatim
15095 #: ../fish/guestfish-actions.pod:5050
15096 #, no-wrap
15097 msgid ""
15098 " wc-c path\n"
15099 "\n"
15100 msgstr ""
15101
15102 #. type: textblock
15103 #: ../fish/guestfish-actions.pod:5052 ../src/guestfs-actions.pod:7641
15104 msgid ""
15105 "This command counts the characters in a file, using the C<wc -c> external "
15106 "command."
15107 msgstr ""
15108
15109 #. type: =head2
15110 #: ../fish/guestfish-actions.pod:5055
15111 msgid "wc-l"
15112 msgstr ""
15113
15114 #. type: verbatim
15115 #: ../fish/guestfish-actions.pod:5057
15116 #, no-wrap
15117 msgid ""
15118 " wc-l path\n"
15119 "\n"
15120 msgstr ""
15121
15122 #. type: textblock
15123 #: ../fish/guestfish-actions.pod:5059 ../src/guestfs-actions.pod:7654
15124 msgid ""
15125 "This command counts the lines in a file, using the C<wc -l> external command."
15126 msgstr ""
15127
15128 #. type: =head2
15129 #: ../fish/guestfish-actions.pod:5062
15130 msgid "wc-w"
15131 msgstr ""
15132
15133 #. type: verbatim
15134 #: ../fish/guestfish-actions.pod:5064
15135 #, no-wrap
15136 msgid ""
15137 " wc-w path\n"
15138 "\n"
15139 msgstr ""
15140
15141 #. type: textblock
15142 #: ../fish/guestfish-actions.pod:5066 ../src/guestfs-actions.pod:7667
15143 msgid ""
15144 "This command counts the words in a file, using the C<wc -w> external command."
15145 msgstr ""
15146
15147 #. type: =head2
15148 #: ../fish/guestfish-actions.pod:5069
15149 msgid "write"
15150 msgstr ""
15151
15152 #. type: verbatim
15153 #: ../fish/guestfish-actions.pod:5071
15154 #, no-wrap
15155 msgid ""
15156 " write path content\n"
15157 "\n"
15158 msgstr ""
15159
15160 #. type: textblock
15161 #: ../fish/guestfish-actions.pod:5073 ../src/guestfs-actions.pod:7682
15162 msgid ""
15163 "This call creates a file called C<path>.  The content of the file is the "
15164 "string C<content> (which can contain any 8 bit data)."
15165 msgstr ""
15166
15167 #. type: textblock
15168 #: ../fish/guestfish-actions.pod:5076
15169 msgid "See also L</write-append>."
15170 msgstr ""
15171
15172 #. type: =head2
15173 #: ../fish/guestfish-actions.pod:5081
15174 msgid "write-append"
15175 msgstr ""
15176
15177 #. type: verbatim
15178 #: ../fish/guestfish-actions.pod:5083
15179 #, no-wrap
15180 msgid ""
15181 " write-append path content\n"
15182 "\n"
15183 msgstr ""
15184
15185 #. type: textblock
15186 #: ../fish/guestfish-actions.pod:5085 ../src/guestfs-actions.pod:7702
15187 msgid ""
15188 "This call appends C<content> to the end of file C<path>.  If C<path> does "
15189 "not exist, then a new file is created."
15190 msgstr ""
15191
15192 #. type: textblock
15193 #: ../fish/guestfish-actions.pod:5088
15194 msgid "See also L</write>."
15195 msgstr ""
15196
15197 #. type: =head2
15198 #: ../fish/guestfish-actions.pod:5093
15199 msgid "write-file"
15200 msgstr ""
15201
15202 #. type: verbatim
15203 #: ../fish/guestfish-actions.pod:5095
15204 #, no-wrap
15205 msgid ""
15206 " write-file path content size\n"
15207 "\n"
15208 msgstr ""
15209
15210 #. type: textblock
15211 #: ../fish/guestfish-actions.pod:5097 ../src/guestfs-actions.pod:7722
15212 msgid ""
15213 "This call creates a file called C<path>.  The contents of the file is the "
15214 "string C<content> (which can contain any 8 bit data), with length C<size>."
15215 msgstr ""
15216
15217 #. type: textblock
15218 #: ../fish/guestfish-actions.pod:5101 ../src/guestfs-actions.pod:7726
15219 msgid ""
15220 "As a special case, if C<size> is C<0> then the length is calculated using "
15221 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
15222 msgstr ""
15223
15224 #. type: textblock
15225 #: ../fish/guestfish-actions.pod:5105 ../src/guestfs-actions.pod:7730
15226 msgid ""
15227 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
15228 "I<not> work, even if the length is specified."
15229 msgstr ""
15230
15231 #. type: textblock
15232 #: ../fish/guestfish-actions.pod:5111
15233 msgid ""
15234 "This function is deprecated.  In new code, use the L</write> call instead."
15235 msgstr ""
15236
15237 #. type: =head2
15238 #: ../fish/guestfish-actions.pod:5118
15239 msgid "zegrep"
15240 msgstr ""
15241
15242 #. type: verbatim
15243 #: ../fish/guestfish-actions.pod:5120
15244 #, no-wrap
15245 msgid ""
15246 " zegrep regex path\n"
15247 "\n"
15248 msgstr ""
15249
15250 #. type: textblock
15251 #: ../fish/guestfish-actions.pod:5122 ../src/guestfs-actions.pod:7754
15252 msgid ""
15253 "This calls the external C<zegrep> program and returns the matching lines."
15254 msgstr ""
15255
15256 #. type: =head2
15257 #: ../fish/guestfish-actions.pod:5128
15258 msgid "zegrepi"
15259 msgstr ""
15260
15261 #. type: verbatim
15262 #: ../fish/guestfish-actions.pod:5130
15263 #, no-wrap
15264 msgid ""
15265 " zegrepi regex path\n"
15266 "\n"
15267 msgstr ""
15268
15269 #. type: textblock
15270 #: ../fish/guestfish-actions.pod:5132 ../src/guestfs-actions.pod:7773
15271 msgid ""
15272 "This calls the external C<zegrep -i> program and returns the matching lines."
15273 msgstr ""
15274
15275 #. type: =head2
15276 #: ../fish/guestfish-actions.pod:5138
15277 msgid "zero"
15278 msgstr ""
15279
15280 #. type: verbatim
15281 #: ../fish/guestfish-actions.pod:5140
15282 #, no-wrap
15283 msgid ""
15284 " zero device\n"
15285 "\n"
15286 msgstr ""
15287
15288 #. type: textblock
15289 #: ../fish/guestfish-actions.pod:5142 ../src/guestfs-actions.pod:7791
15290 msgid "This command writes zeroes over the first few blocks of C<device>."
15291 msgstr ""
15292
15293 #. type: textblock
15294 #: ../fish/guestfish-actions.pod:5144 ../src/guestfs-actions.pod:7793
15295 msgid ""
15296 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
15297 "securely wipe the device).  It should be sufficient to remove any partition "
15298 "tables, filesystem superblocks and so on."
15299 msgstr ""
15300
15301 #. type: textblock
15302 #: ../fish/guestfish-actions.pod:5148 ../fish/guestfish-actions.pod:5163
15303 #: ../src/guestfs-actions.pod:7797 ../src/guestfs-actions.pod:7823
15304 msgid ""
15305 "If blocks are already zero, then this command avoids writing zeroes.  This "
15306 "prevents the underlying device from becoming non-sparse or growing "
15307 "unnecessarily."
15308 msgstr ""
15309
15310 #. type: textblock
15311 #: ../fish/guestfish-actions.pod:5152
15312 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
15313 msgstr ""
15314
15315 #. type: =head2
15316 #: ../fish/guestfish-actions.pod:5155
15317 msgid "zero-device"
15318 msgstr ""
15319
15320 #. type: verbatim
15321 #: ../fish/guestfish-actions.pod:5157
15322 #, no-wrap
15323 msgid ""
15324 " zero-device device\n"
15325 "\n"
15326 msgstr ""
15327
15328 #. type: textblock
15329 #: ../fish/guestfish-actions.pod:5159
15330 msgid ""
15331 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
15332 "which just zeroes the first few blocks of a device."
15333 msgstr ""
15334
15335 #. type: =head2
15336 #: ../fish/guestfish-actions.pod:5170
15337 msgid "zerofree"
15338 msgstr ""
15339
15340 #. type: verbatim
15341 #: ../fish/guestfish-actions.pod:5172
15342 #, no-wrap
15343 msgid ""
15344 " zerofree device\n"
15345 "\n"
15346 msgstr ""
15347
15348 #. type: textblock
15349 #: ../fish/guestfish-actions.pod:5174 ../src/guestfs-actions.pod:7845
15350 msgid ""
15351 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
15352 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
15353 "possible to compress the filesystem more effectively."
15354 msgstr ""
15355
15356 #. type: textblock
15357 #: ../fish/guestfish-actions.pod:5179 ../src/guestfs-actions.pod:7850
15358 msgid "You should B<not> run this program if the filesystem is mounted."
15359 msgstr ""
15360
15361 #. type: textblock
15362 #: ../fish/guestfish-actions.pod:5182 ../src/guestfs-actions.pod:7853
15363 msgid ""
15364 "It is possible that using this program can damage the filesystem or data on "
15365 "the filesystem."
15366 msgstr ""
15367
15368 #. type: =head2
15369 #: ../fish/guestfish-actions.pod:5185
15370 msgid "zfgrep"
15371 msgstr ""
15372
15373 #. type: verbatim
15374 #: ../fish/guestfish-actions.pod:5187
15375 #, no-wrap
15376 msgid ""
15377 " zfgrep pattern path\n"
15378 "\n"
15379 msgstr ""
15380
15381 #. type: textblock
15382 #: ../fish/guestfish-actions.pod:5189 ../src/guestfs-actions.pod:7867
15383 msgid ""
15384 "This calls the external C<zfgrep> program and returns the matching lines."
15385 msgstr ""
15386
15387 #. type: =head2
15388 #: ../fish/guestfish-actions.pod:5195
15389 msgid "zfgrepi"
15390 msgstr ""
15391
15392 #. type: verbatim
15393 #: ../fish/guestfish-actions.pod:5197
15394 #, no-wrap
15395 msgid ""
15396 " zfgrepi pattern path\n"
15397 "\n"
15398 msgstr ""
15399
15400 #. type: textblock
15401 #: ../fish/guestfish-actions.pod:5199 ../src/guestfs-actions.pod:7886
15402 msgid ""
15403 "This calls the external C<zfgrep -i> program and returns the matching lines."
15404 msgstr ""
15405
15406 #. type: =head2
15407 #: ../fish/guestfish-actions.pod:5205
15408 msgid "zfile"
15409 msgstr ""
15410
15411 #. type: verbatim
15412 #: ../fish/guestfish-actions.pod:5207
15413 #, no-wrap
15414 msgid ""
15415 " zfile meth path\n"
15416 "\n"
15417 msgstr ""
15418
15419 #. type: textblock
15420 #: ../fish/guestfish-actions.pod:5209 ../src/guestfs-actions.pod:7905
15421 msgid ""
15422 "This command runs C<file> after first decompressing C<path> using C<method>."
15423 msgstr ""
15424
15425 #. type: textblock
15426 #: ../fish/guestfish-actions.pod:5212 ../src/guestfs-actions.pod:7908
15427 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
15428 msgstr ""
15429
15430 #. type: textblock
15431 #: ../fish/guestfish-actions.pod:5214
15432 msgid ""
15433 "Since 1.0.63, use L</file> instead which can now process compressed files."
15434 msgstr ""
15435
15436 #. type: textblock
15437 #: ../fish/guestfish-actions.pod:5217
15438 msgid ""
15439 "This function is deprecated.  In new code, use the L</file> call instead."
15440 msgstr ""
15441
15442 #. type: =head2
15443 #: ../fish/guestfish-actions.pod:5224
15444 msgid "zgrep"
15445 msgstr ""
15446
15447 #. type: verbatim
15448 #: ../fish/guestfish-actions.pod:5226
15449 #, no-wrap
15450 msgid ""
15451 " zgrep regex path\n"
15452 "\n"
15453 msgstr ""
15454
15455 #. type: textblock
15456 #: ../fish/guestfish-actions.pod:5228 ../src/guestfs-actions.pod:7932
15457 msgid ""
15458 "This calls the external C<zgrep> program and returns the matching lines."
15459 msgstr ""
15460
15461 #. type: =head2
15462 #: ../fish/guestfish-actions.pod:5234
15463 msgid "zgrepi"
15464 msgstr ""
15465
15466 #. type: verbatim
15467 #: ../fish/guestfish-actions.pod:5236
15468 #, no-wrap
15469 msgid ""
15470 " zgrepi regex path\n"
15471 "\n"
15472 msgstr ""
15473
15474 #. type: textblock
15475 #: ../fish/guestfish-actions.pod:5238 ../src/guestfs-actions.pod:7951
15476 msgid ""
15477 "This calls the external C<zgrep -i> program and returns the matching lines."
15478 msgstr ""
15479
15480 #. type: =head2
15481 #: ../fish/guestfish-commands.pod:1
15482 msgid "alloc"
15483 msgstr ""
15484
15485 #. type: =head2
15486 #: ../fish/guestfish-commands.pod:3
15487 msgid "allocate"
15488 msgstr ""
15489
15490 #. type: verbatim
15491 #: ../fish/guestfish-commands.pod:5
15492 #, no-wrap
15493 msgid ""
15494 " alloc filename size\n"
15495 "\n"
15496 msgstr ""
15497
15498 #. type: textblock
15499 #: ../fish/guestfish-commands.pod:7
15500 msgid ""
15501 "This creates an empty (zeroed) file of the given size, and then adds so it "
15502 "can be further examined."
15503 msgstr ""
15504
15505 #. type: textblock
15506 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:182
15507 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
15508 msgstr ""
15509
15510 #. type: textblock
15511 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:184
15512 msgid "Size can be specified using standard suffixes, eg. C<1M>."
15513 msgstr ""
15514
15515 #. type: textblock
15516 #: ../fish/guestfish-commands.pod:14
15517 msgid ""
15518 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
15519 "image, see L</PREPARED DISK IMAGES>."
15520 msgstr ""
15521
15522 #. type: =head2
15523 #: ../fish/guestfish-commands.pod:17
15524 msgid "copy-in"
15525 msgstr ""
15526
15527 #. type: verbatim
15528 #: ../fish/guestfish-commands.pod:19
15529 #, no-wrap
15530 msgid ""
15531 " copy-in local [local ...] /remotedir\n"
15532 "\n"
15533 msgstr ""
15534
15535 #. type: textblock
15536 #: ../fish/guestfish-commands.pod:21
15537 msgid ""
15538 "C<copy-in> copies local files or directories recursively into the disk "
15539 "image, placing them in the directory called C</remotedir> (which must "
15540 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
15541 "other commands as necessary."
15542 msgstr ""
15543
15544 #. type: textblock
15545 #: ../fish/guestfish-commands.pod:26
15546 msgid ""
15547 "Multiple local files and directories can be specified, but the last "
15548 "parameter must always be a remote directory.  Wildcards cannot be used."
15549 msgstr ""
15550
15551 #. type: =head2
15552 #: ../fish/guestfish-commands.pod:30
15553 msgid "copy-out"
15554 msgstr ""
15555
15556 #. type: verbatim
15557 #: ../fish/guestfish-commands.pod:32
15558 #, no-wrap
15559 msgid ""
15560 " copy-out remote [remote ...] localdir\n"
15561 "\n"
15562 msgstr ""
15563
15564 #. type: textblock
15565 #: ../fish/guestfish-commands.pod:34
15566 msgid ""
15567 "C<copy-out> copies remote files or directories recursively out of the disk "
15568 "image, placing them on the host disk in a local directory called C<localdir> "
15569 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
15570 "download>, L</tar-out> and other commands as necessary."
15571 msgstr ""
15572
15573 #. type: textblock
15574 #: ../fish/guestfish-commands.pod:40
15575 msgid ""
15576 "Multiple remote files and directories can be specified, but the last "
15577 "parameter must always be a local directory.  To download to the current "
15578 "directory, use C<.> as in:"
15579 msgstr ""
15580
15581 #. type: verbatim
15582 #: ../fish/guestfish-commands.pod:44
15583 #, no-wrap
15584 msgid ""
15585 " copy-out /home .\n"
15586 "\n"
15587 msgstr ""
15588
15589 #. type: textblock
15590 #: ../fish/guestfish-commands.pod:46
15591 msgid ""
15592 "Wildcards cannot be used in the ordinary command, but you can use them with "
15593 "the help of L</glob> like this:"
15594 msgstr ""
15595
15596 #. type: verbatim
15597 #: ../fish/guestfish-commands.pod:49
15598 #, no-wrap
15599 msgid ""
15600 " glob copy-out /home/* .\n"
15601 "\n"
15602 msgstr ""
15603
15604 #. type: =head2
15605 #: ../fish/guestfish-commands.pod:51
15606 msgid "display"
15607 msgstr ""
15608
15609 #. type: verbatim
15610 #: ../fish/guestfish-commands.pod:53
15611 #, no-wrap
15612 msgid ""
15613 " display filename\n"
15614 "\n"
15615 msgstr ""
15616
15617 #. type: textblock
15618 #: ../fish/guestfish-commands.pod:55
15619 msgid ""
15620 "Use C<display> (a graphical display program) to display an image file.  It "
15621 "downloads the file, and runs C<display> on it."
15622 msgstr ""
15623
15624 #. type: textblock
15625 #: ../fish/guestfish-commands.pod:58
15626 msgid ""
15627 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
15628 "environment variable.  For example to use the GNOME display program:"
15629 msgstr ""
15630
15631 #. type: verbatim
15632 #: ../fish/guestfish-commands.pod:61
15633 #, no-wrap
15634 msgid ""
15635 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
15636 "\n"
15637 msgstr ""
15638
15639 #. type: textblock
15640 #: ../fish/guestfish-commands.pod:63
15641 msgid "See also L<display(1)>."
15642 msgstr ""
15643
15644 #. type: =head2
15645 #: ../fish/guestfish-commands.pod:65
15646 msgid "echo"
15647 msgstr ""
15648
15649 #. type: verbatim
15650 #: ../fish/guestfish-commands.pod:67
15651 #, no-wrap
15652 msgid ""
15653 " echo [params ...]\n"
15654 "\n"
15655 msgstr ""
15656
15657 #. type: textblock
15658 #: ../fish/guestfish-commands.pod:69
15659 msgid "This echos the parameters to the terminal."
15660 msgstr ""
15661
15662 #. type: =head2
15663 #: ../fish/guestfish-commands.pod:71
15664 msgid "edit"
15665 msgstr ""
15666
15667 #. type: =head2
15668 #: ../fish/guestfish-commands.pod:73
15669 msgid "vi"
15670 msgstr ""
15671
15672 #. type: =head2
15673 #: ../fish/guestfish-commands.pod:75
15674 msgid "emacs"
15675 msgstr ""
15676
15677 #. type: verbatim
15678 #: ../fish/guestfish-commands.pod:77
15679 #, no-wrap
15680 msgid ""
15681 " edit filename\n"
15682 "\n"
15683 msgstr ""
15684
15685 #. type: textblock
15686 #: ../fish/guestfish-commands.pod:79
15687 msgid ""
15688 "This is used to edit a file.  It downloads the file, edits it locally using "
15689 "your editor, then uploads the result."
15690 msgstr ""
15691
15692 #. type: textblock
15693 #: ../fish/guestfish-commands.pod:82
15694 msgid ""
15695 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
15696 "or C<emacs> you will get those corresponding editors."
15697 msgstr ""
15698
15699 #. type: =head2
15700 #: ../fish/guestfish-commands.pod:86
15701 msgid "glob"
15702 msgstr ""
15703
15704 #. type: verbatim
15705 #: ../fish/guestfish-commands.pod:88
15706 #, no-wrap
15707 msgid ""
15708 " glob command args...\n"
15709 "\n"
15710 msgstr ""
15711
15712 #. type: textblock
15713 #: ../fish/guestfish-commands.pod:90
15714 msgid ""
15715 "Expand wildcards in any paths in the args list, and run C<command> "
15716 "repeatedly on each matching path."
15717 msgstr ""
15718
15719 #. type: textblock
15720 #: ../fish/guestfish-commands.pod:93
15721 msgid "See L</WILDCARDS AND GLOBBING>."
15722 msgstr ""
15723
15724 #. type: =head2
15725 #: ../fish/guestfish-commands.pod:95
15726 msgid "hexedit"
15727 msgstr ""
15728
15729 #. type: verbatim
15730 #: ../fish/guestfish-commands.pod:97
15731 #, no-wrap
15732 msgid ""
15733 " hexedit <filename|device>\n"
15734 " hexedit <filename|device> <max>\n"
15735 " hexedit <filename|device> <start> <max>\n"
15736 "\n"
15737 msgstr ""
15738
15739 #. type: textblock
15740 #: ../fish/guestfish-commands.pod:101
15741 msgid ""
15742 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
15743 "device."
15744 msgstr ""
15745
15746 #. type: textblock
15747 #: ../fish/guestfish-commands.pod:104
15748 msgid ""
15749 "This command works by downloading potentially the whole file or device, "
15750 "editing it locally, then uploading it.  If the file or device is large, you "
15751 "have to specify which part you wish to edit by using C<max> and/or C<start> "
15752 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
15753 "usual modifiers allowed such as C<1M> (1 megabyte)."
15754 msgstr ""
15755
15756 #. type: textblock
15757 #: ../fish/guestfish-commands.pod:111
15758 msgid "For example to edit the first few sectors of a disk you might do:"
15759 msgstr ""
15760
15761 #. type: verbatim
15762 #: ../fish/guestfish-commands.pod:114
15763 #, no-wrap
15764 msgid ""
15765 " hexedit /dev/sda 1M\n"
15766 "\n"
15767 msgstr ""
15768
15769 #. type: textblock
15770 #: ../fish/guestfish-commands.pod:116
15771 msgid ""
15772 "which would allow you to edit anywhere within the first megabyte of the disk."
15773 msgstr ""
15774
15775 #. type: textblock
15776 #: ../fish/guestfish-commands.pod:119
15777 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
15778 msgstr ""
15779
15780 #. type: verbatim
15781 #: ../fish/guestfish-commands.pod:121
15782 #, no-wrap
15783 msgid ""
15784 " hexedit /dev/sda1 0x400 0x400\n"
15785 "\n"
15786 msgstr ""
15787
15788 #. type: textblock
15789 #: ../fish/guestfish-commands.pod:123
15790 msgid "(assuming the superblock is in the standard location)."
15791 msgstr ""
15792
15793 #. type: textblock
15794 #: ../fish/guestfish-commands.pod:125
15795 msgid ""
15796 "This command requires the external L<hexedit(1)> program.  You can specify "
15797 "another program to use by setting the C<HEXEDITOR> environment variable."
15798 msgstr ""
15799
15800 #. type: textblock
15801 #: ../fish/guestfish-commands.pod:129
15802 msgid "See also L</hexdump>."
15803 msgstr ""
15804
15805 #. type: =head2
15806 #: ../fish/guestfish-commands.pod:131
15807 msgid "lcd"
15808 msgstr ""
15809
15810 #. type: verbatim
15811 #: ../fish/guestfish-commands.pod:133
15812 #, no-wrap
15813 msgid ""
15814 " lcd directory\n"
15815 "\n"
15816 msgstr ""
15817
15818 #. type: textblock
15819 #: ../fish/guestfish-commands.pod:135
15820 msgid ""
15821 "Change the local directory, ie. the current directory of guestfish itself."
15822 msgstr ""
15823
15824 #. type: textblock
15825 #: ../fish/guestfish-commands.pod:138
15826 msgid "Note that C<!cd> won't do what you might expect."
15827 msgstr ""
15828
15829 #. type: =head2
15830 #: ../fish/guestfish-commands.pod:140
15831 msgid "man"
15832 msgstr ""
15833
15834 #. type: =head2
15835 #: ../fish/guestfish-commands.pod:142
15836 msgid "manual"
15837 msgstr ""
15838
15839 #. type: verbatim
15840 #: ../fish/guestfish-commands.pod:144
15841 #, no-wrap
15842 msgid ""
15843 "  man\n"
15844 "\n"
15845 msgstr ""
15846
15847 #. type: textblock
15848 #: ../fish/guestfish-commands.pod:146
15849 msgid "Opens the manual page for guestfish."
15850 msgstr ""
15851
15852 #. type: =head2
15853 #: ../fish/guestfish-commands.pod:148
15854 msgid "more"
15855 msgstr ""
15856
15857 #. type: =head2
15858 #: ../fish/guestfish-commands.pod:150
15859 msgid "less"
15860 msgstr ""
15861
15862 #. type: verbatim
15863 #: ../fish/guestfish-commands.pod:152
15864 #, no-wrap
15865 msgid ""
15866 " more filename\n"
15867 "\n"
15868 msgstr ""
15869
15870 #. type: verbatim
15871 #: ../fish/guestfish-commands.pod:154
15872 #, no-wrap
15873 msgid ""
15874 " less filename\n"
15875 "\n"
15876 msgstr ""
15877
15878 #. type: textblock
15879 #: ../fish/guestfish-commands.pod:156
15880 msgid "This is used to view a file."
15881 msgstr ""
15882
15883 #. type: textblock
15884 #: ../fish/guestfish-commands.pod:158
15885 msgid ""
15886 "The default viewer is C<$PAGER>.  However if you use the alternate command "
15887 "C<less> you will get the C<less> command specifically."
15888 msgstr ""
15889
15890 #. type: =head2
15891 #: ../fish/guestfish-commands.pod:161
15892 msgid "reopen"
15893 msgstr ""
15894
15895 #. type: verbatim
15896 #: ../fish/guestfish-commands.pod:163
15897 #, no-wrap
15898 msgid ""
15899 "  reopen\n"
15900 "\n"
15901 msgstr ""
15902
15903 #. type: textblock
15904 #: ../fish/guestfish-commands.pod:165
15905 msgid ""
15906 "Close and reopen the libguestfs handle.  It is not necessary to use this "
15907 "normally, because the handle is closed properly when guestfish exits.  "
15908 "However this is occasionally useful for testing."
15909 msgstr ""
15910
15911 #. type: =head2
15912 #: ../fish/guestfish-commands.pod:169
15913 msgid "sparse"
15914 msgstr ""
15915
15916 #. type: verbatim
15917 #: ../fish/guestfish-commands.pod:171
15918 #, no-wrap
15919 msgid ""
15920 " sparse filename size\n"
15921 "\n"
15922 msgstr ""
15923
15924 #. type: textblock
15925 #: ../fish/guestfish-commands.pod:173
15926 msgid ""
15927 "This creates an empty sparse file of the given size, and then adds so it can "
15928 "be further examined."
15929 msgstr ""
15930
15931 #. type: textblock
15932 #: ../fish/guestfish-commands.pod:176
15933 msgid ""
15934 "In all respects it works the same as the L</alloc> command, except that the "
15935 "image file is allocated sparsely, which means that disk blocks are not "
15936 "assigned to the file until they are needed.  Sparse disk files only use "
15937 "space when written to, but they are slower and there is a danger you could "
15938 "run out of real disk space during a write operation."
15939 msgstr ""
15940
15941 #. type: =head2
15942 #: ../fish/guestfish-commands.pod:186
15943 msgid "supported"
15944 msgstr ""
15945
15946 #. type: verbatim
15947 #: ../fish/guestfish-commands.pod:188
15948 #, no-wrap
15949 msgid ""
15950 " supported\n"
15951 "\n"
15952 msgstr ""
15953
15954 #. type: textblock
15955 #: ../fish/guestfish-commands.pod:190
15956 msgid ""
15957 "This command returns a list of the optional groups known to the daemon, and "
15958 "indicates which ones are supported by this build of the libguestfs appliance."
15959 msgstr ""
15960
15961 #. type: textblock
15962 #: ../fish/guestfish-commands.pod:194
15963 msgid "See also L<guestfs(3)/AVAILABILITY>."
15964 msgstr ""
15965
15966 #. type: =head2
15967 #: ../fish/guestfish-commands.pod:196
15968 msgid "time"
15969 msgstr ""
15970
15971 #. type: verbatim
15972 #: ../fish/guestfish-commands.pod:198
15973 #, no-wrap
15974 msgid ""
15975 " time command args...\n"
15976 "\n"
15977 msgstr ""
15978
15979 #. type: textblock
15980 #: ../fish/guestfish-commands.pod:200
15981 msgid ""
15982 "Run the command as usual, but print the elapsed time afterwards.  This can "
15983 "be useful for benchmarking operations."
15984 msgstr ""
15985
15986 #. type: textblock
15987 #: ../fish/guestfish.pod:5
15988 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
15989 msgstr ""
15990
15991 #. type: verbatim
15992 #: ../fish/guestfish.pod:9
15993 #, no-wrap
15994 msgid ""
15995 " guestfish [--options] [commands]\n"
15996 "\n"
15997 msgstr ""
15998
15999 #. type: verbatim
16000 #: ../fish/guestfish.pod:11
16001 #, no-wrap
16002 msgid ""
16003 " guestfish\n"
16004 "\n"
16005 msgstr ""
16006
16007 #. type: verbatim
16008 #: ../fish/guestfish.pod:13
16009 #, no-wrap
16010 msgid ""
16011 " guestfish [--ro|--rw] -a disk.img\n"
16012 "\n"
16013 msgstr ""
16014
16015 #. type: verbatim
16016 #: ../fish/guestfish.pod:15
16017 #, no-wrap
16018 msgid ""
16019 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16020 "\n"
16021 msgstr ""
16022
16023 #. type: verbatim
16024 #: ../fish/guestfish.pod:17
16025 #, no-wrap
16026 msgid ""
16027 " guestfish -d libvirt-domain\n"
16028 "\n"
16029 msgstr ""
16030
16031 #. type: verbatim
16032 #: ../fish/guestfish.pod:19
16033 #, no-wrap
16034 msgid ""
16035 " guestfish [--ro|--rw] -a disk.img -i\n"
16036 "\n"
16037 msgstr ""
16038
16039 #. type: verbatim
16040 #: ../fish/guestfish.pod:21
16041 #, no-wrap
16042 msgid ""
16043 " guestfish -d libvirt-domain -i\n"
16044 "\n"
16045 msgstr ""
16046
16047 #. type: textblock
16048 #: ../fish/guestfish.pod:25
16049 msgid ""
16050 "Using guestfish in read/write mode on live virtual machines can be "
16051 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16052 "option to use guestfish safely if the disk image or virtual machine might be "
16053 "live."
16054 msgstr ""
16055
16056 #. type: textblock
16057 #: ../fish/guestfish.pod:32
16058 msgid ""
16059 "Guestfish is a shell and command-line tool for examining and modifying "
16060 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16061 "functionality of the guestfs API, see L<guestfs(3)>."
16062 msgstr ""
16063
16064 #. type: textblock
16065 #: ../fish/guestfish.pod:36
16066 msgid ""
16067 "Guestfish gives you structured access to the libguestfs API, from shell "
16068 "scripts or the command line or interactively.  If you want to rescue a "
16069 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16070 "command."
16071 msgstr ""
16072
16073 #. type: =head2
16074 #: ../fish/guestfish.pod:43
16075 msgid "As an interactive shell"
16076 msgstr ""
16077
16078 #. type: verbatim
16079 #: ../fish/guestfish.pod:45
16080 #, no-wrap
16081 msgid ""
16082 " $ guestfish\n"
16083 " \n"
16084 msgstr ""
16085
16086 #. type: verbatim
16087 #: ../fish/guestfish.pod:47
16088 #, no-wrap
16089 msgid ""
16090 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16091 " editing virtual machine filesystems.\n"
16092 " \n"
16093 msgstr ""
16094
16095 #. type: verbatim
16096 #: ../fish/guestfish.pod:50
16097 #, no-wrap
16098 msgid ""
16099 " Type: 'help' for a list of commands\n"
16100 "       'man' to read the manual\n"
16101 "       'quit' to quit the shell\n"
16102 " \n"
16103 msgstr ""
16104
16105 #. type: verbatim
16106 #: ../fish/guestfish.pod:54
16107 #, no-wrap
16108 msgid ""
16109 " ><fs> add-ro disk.img\n"
16110 " ><fs> run\n"
16111 " ><fs> list-filesystems\n"
16112 " /dev/sda1: ext4\n"
16113 " /dev/vg_guest/lv_root: ext4\n"
16114 " /dev/vg_guest/lv_swap: swap\n"
16115 " ><fs> mount /dev/vg_guest/lv_root /\n"
16116 " ><fs> cat /etc/fstab\n"
16117 " # /etc/fstab\n"
16118 " # Created by anaconda\n"
16119 " [...]\n"
16120 " ><fs> exit\n"
16121 "\n"
16122 msgstr ""
16123
16124 #. type: =head2
16125 #: ../fish/guestfish.pod:67
16126 msgid "From shell scripts"
16127 msgstr ""
16128
16129 #. type: textblock
16130 #: ../fish/guestfish.pod:69
16131 msgid "Create a new C</etc/motd> file in a guest or disk image:"
16132 msgstr ""
16133
16134 #. type: verbatim
16135 #: ../fish/guestfish.pod:71
16136 #, no-wrap
16137 msgid ""
16138 " guestfish <<_EOF_\n"
16139 " add disk.img\n"
16140 " run\n"
16141 " mount /dev/vg_guest/lv_root /\n"
16142 " write /etc/motd \"Welcome, new users\"\n"
16143 " _EOF_\n"
16144 "\n"
16145 msgstr ""
16146
16147 #. type: textblock
16148 #: ../fish/guestfish.pod:78
16149 msgid "List the LVM logical volumes in a disk image:"
16150 msgstr ""
16151
16152 #. type: verbatim
16153 #: ../fish/guestfish.pod:80
16154 #, no-wrap
16155 msgid ""
16156 " guestfish -a disk.img --ro <<_EOF_\n"
16157 " run\n"
16158 " lvs\n"
16159 " _EOF_\n"
16160 "\n"
16161 msgstr ""
16162
16163 #. type: textblock
16164 #: ../fish/guestfish.pod:85
16165 msgid "List all the filesystems in a disk image:"
16166 msgstr ""
16167
16168 #. type: verbatim
16169 #: ../fish/guestfish.pod:87
16170 #, no-wrap
16171 msgid ""
16172 " guestfish -a disk.img --ro <<_EOF_\n"
16173 " run\n"
16174 " list-filesystems\n"
16175 " _EOF_\n"
16176 "\n"
16177 msgstr ""
16178
16179 #. type: =head2
16180 #: ../fish/guestfish.pod:92
16181 msgid "On one command line"
16182 msgstr ""
16183
16184 #. type: textblock
16185 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
16186 msgid "Update C</etc/resolv.conf> in a guest:"
16187 msgstr ""
16188
16189 #. type: verbatim
16190 #: ../fish/guestfish.pod:96
16191 #, no-wrap
16192 msgid ""
16193 " guestfish \\\n"
16194 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
16195 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
16196 "\n"
16197 msgstr ""
16198
16199 #. type: textblock
16200 #: ../fish/guestfish.pod:100
16201 msgid "Edit C</boot/grub/grub.conf> interactively:"
16202 msgstr ""
16203
16204 #. type: verbatim
16205 #: ../fish/guestfish.pod:102
16206 #, no-wrap
16207 msgid ""
16208 " guestfish --rw --add disk.img \\\n"
16209 "   --mount /dev/vg_guest/lv_root \\\n"
16210 "   --mount /dev/sda1:/boot \\\n"
16211 "   edit /boot/grub/grub.conf\n"
16212 "\n"
16213 msgstr ""
16214
16215 #. type: =head2
16216 #: ../fish/guestfish.pod:107
16217 msgid "Mount disks automatically"
16218 msgstr ""
16219
16220 #. type: textblock
16221 #: ../fish/guestfish.pod:109
16222 msgid ""
16223 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
16224 msgstr ""
16225
16226 #. type: verbatim
16227 #: ../fish/guestfish.pod:112
16228 #, no-wrap
16229 msgid ""
16230 " guestfish --ro -a disk.img -i cat /etc/group\n"
16231 "\n"
16232 msgstr ""
16233
16234 #. type: verbatim
16235 #: ../fish/guestfish.pod:114
16236 #, no-wrap
16237 msgid ""
16238 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
16239 "\n"
16240 msgstr ""
16241
16242 #. type: textblock
16243 #: ../fish/guestfish.pod:116
16244 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
16245 msgstr ""
16246
16247 #. type: verbatim
16248 #: ../fish/guestfish.pod:118
16249 #, no-wrap
16250 msgid ""
16251 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
16252 "\n"
16253 msgstr ""
16254
16255 #. type: =head2
16256 #: ../fish/guestfish.pod:120
16257 msgid "As a script interpreter"
16258 msgstr ""
16259
16260 #. type: textblock
16261 #: ../fish/guestfish.pod:122
16262 msgid "Create a 100MB disk containing an ext2-formatted partition:"
16263 msgstr ""
16264
16265 #. type: verbatim
16266 #: ../fish/guestfish.pod:124
16267 #, no-wrap
16268 msgid ""
16269 " #!/usr/bin/guestfish -f\n"
16270 " sparse test1.img 100M\n"
16271 " run\n"
16272 " part-disk /dev/sda mbr\n"
16273 " mkfs ext2 /dev/sda1\n"
16274 "\n"
16275 msgstr ""
16276
16277 #. type: =head2
16278 #: ../fish/guestfish.pod:130
16279 msgid "Start with a prepared disk"
16280 msgstr ""
16281
16282 #. type: textblock
16283 #: ../fish/guestfish.pod:132
16284 msgid ""
16285 "An alternate way to create a 100MB disk called C<test1.img> containing a "
16286 "single ext2-formatted partition:"
16287 msgstr ""
16288
16289 #. type: verbatim
16290 #: ../fish/guestfish.pod:135
16291 #, no-wrap
16292 msgid ""
16293 " guestfish -N fs\n"
16294 "\n"
16295 msgstr ""
16296
16297 #. type: textblock
16298 #: ../fish/guestfish.pod:137
16299 msgid "To list what is available do:"
16300 msgstr ""
16301
16302 #. type: verbatim
16303 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1009
16304 #, no-wrap
16305 msgid ""
16306 " guestfish -N help | less\n"
16307 "\n"
16308 msgstr ""
16309
16310 #. type: =head2
16311 #: ../fish/guestfish.pod:141
16312 msgid "Remote control"
16313 msgstr ""
16314
16315 #. type: verbatim
16316 #: ../fish/guestfish.pod:143
16317 #, no-wrap
16318 msgid ""
16319 " eval \"`guestfish --listen`\"\n"
16320 " guestfish --remote add-ro disk.img\n"
16321 " guestfish --remote run\n"
16322 " guestfish --remote lvs\n"
16323 "\n"
16324 msgstr ""
16325
16326 #. type: textblock
16327 #: ../fish/guestfish.pod:154
16328 msgid "Displays general help on options."
16329 msgstr ""
16330
16331 #. type: =item
16332 #: ../fish/guestfish.pod:158
16333 msgid "B<--cmd-help>"
16334 msgstr ""
16335
16336 #. type: textblock
16337 #: ../fish/guestfish.pod:160
16338 msgid "Lists all available guestfish commands."
16339 msgstr ""
16340
16341 #. type: =item
16342 #: ../fish/guestfish.pod:162
16343 msgid "B<-h cmd>"
16344 msgstr ""
16345
16346 #. type: =item
16347 #: ../fish/guestfish.pod:164
16348 msgid "B<--cmd-help cmd>"
16349 msgstr ""
16350
16351 #. type: textblock
16352 #: ../fish/guestfish.pod:166
16353 msgid "Displays detailed help on a single command C<cmd>."
16354 msgstr ""
16355
16356 #. type: =item
16357 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
16358 msgid "B<-a image>"
16359 msgstr ""
16360
16361 #. type: =item
16362 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
16363 msgid "B<--add image>"
16364 msgstr ""
16365
16366 #. type: textblock
16367 #: ../fish/guestfish.pod:172
16368 msgid "Add a block device or virtual machine image to the shell."
16369 msgstr ""
16370
16371 #. type: textblock
16372 #: ../fish/guestfish.pod:177
16373 msgid ""
16374 "Using this flag is mostly equivalent to using the C<add> command, with "
16375 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
16376 "the I<--format=...> flag was given."
16377 msgstr ""
16378
16379 #. type: textblock
16380 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
16381 msgid ""
16382 "When used in conjunction with the I<-d> option, this specifies the libvirt "
16383 "URI to use.  The default is to use the default libvirt connection."
16384 msgstr ""
16385
16386 #. type: =item
16387 #: ../fish/guestfish.pod:189
16388 msgid "B<--csh>"
16389 msgstr ""
16390
16391 #. type: textblock
16392 #: ../fish/guestfish.pod:191
16393 msgid ""
16394 "If using the I<--listen> option and a csh-like shell, use this option.  See "
16395 "section L</REMOTE CONTROL AND CSH> below."
16396 msgstr ""
16397
16398 #. type: =item
16399 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
16400 msgid "B<-d libvirt-domain>"
16401 msgstr ""
16402
16403 #. type: =item
16404 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
16405 msgid "B<--domain libvirt-domain>"
16406 msgstr ""
16407
16408 #. type: textblock
16409 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
16410 msgid ""
16411 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
16412 "used, then any libvirt domain can be used.  However in write mode, only "
16413 "libvirt domains which are shut down can be named here."
16414 msgstr ""
16415
16416 #. type: textblock
16417 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
16418 msgid "Domain UUIDs can be used instead of names."
16419 msgstr ""
16420
16421 #. type: textblock
16422 #: ../fish/guestfish.pod:204
16423 msgid ""
16424 "Using this flag is mostly equivalent to using the C<add-domain> command, "
16425 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
16426 "if the I<--format:...> flag was given."
16427 msgstr ""
16428
16429 #. type: =item
16430 #: ../fish/guestfish.pod:208
16431 msgid "B<-D>"
16432 msgstr ""
16433
16434 #. type: =item
16435 #: ../fish/guestfish.pod:210
16436 msgid "B<--no-dest-paths>"
16437 msgstr ""
16438
16439 #. type: textblock
16440 #: ../fish/guestfish.pod:212
16441 msgid ""
16442 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
16443 "to hit the tab key to complete paths on the guest filesystem, but this "
16444 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
16445 "allow this feature to be disabled."
16446 msgstr ""
16447
16448 #. type: textblock
16449 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
16450 msgid ""
16451 "When prompting for keys and passphrases, guestfish normally turns echoing "
16452 "off so you cannot see what you are typing.  If you are not worried about "
16453 "Tempest attacks and there is no one else in the room you can specify this "
16454 "flag to see what you are typing."
16455 msgstr ""
16456
16457 #. type: =item
16458 #: ../fish/guestfish.pod:224
16459 msgid "B<-f file>"
16460 msgstr ""
16461
16462 #. type: =item
16463 #: ../fish/guestfish.pod:226
16464 msgid "B<--file file>"
16465 msgstr ""
16466
16467 #. type: textblock
16468 #: ../fish/guestfish.pod:228
16469 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
16470 msgstr ""
16471
16472 #. type: verbatim
16473 #: ../fish/guestfish.pod:231
16474 #, no-wrap
16475 msgid ""
16476 " #!/usr/bin/guestfish -f\n"
16477 "\n"
16478 msgstr ""
16479
16480 #. type: verbatim
16481 #: ../fish/guestfish.pod:244
16482 #, no-wrap
16483 msgid ""
16484 " guestfish --format=raw -a disk.img\n"
16485 "\n"
16486 msgstr ""
16487
16488 #. type: verbatim
16489 #: ../fish/guestfish.pod:248
16490 #, no-wrap
16491 msgid ""
16492 " guestfish --format=raw -a disk.img --format -a another.img\n"
16493 "\n"
16494 msgstr ""
16495
16496 #. type: textblock
16497 #: ../fish/guestfish.pod:253
16498 msgid ""
16499 "If you have untrusted raw-format guest disk images, you should use this "
16500 "option to specify the disk format.  This avoids a possible security problem "
16501 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
16502 msgstr ""
16503
16504 #. type: =item
16505 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
16506 msgid "B<--inspector>"
16507 msgstr ""
16508
16509 #. type: textblock
16510 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
16511 msgid ""
16512 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
16513 "system and mount filesystems as they would be mounted on the real virtual "
16514 "machine."
16515 msgstr ""
16516
16517 #. type: textblock
16518 #: ../fish/guestfish.pod:266
16519 msgid "Typical usage is either:"
16520 msgstr ""
16521
16522 #. type: verbatim
16523 #: ../fish/guestfish.pod:268
16524 #, no-wrap
16525 msgid ""
16526 " guestfish -d myguest -i\n"
16527 "\n"
16528 msgstr ""
16529
16530 #. type: textblock
16531 #: ../fish/guestfish.pod:270
16532 msgid "(for an inactive libvirt domain called I<myguest>), or:"
16533 msgstr ""
16534
16535 #. type: verbatim
16536 #: ../fish/guestfish.pod:272
16537 #, no-wrap
16538 msgid ""
16539 " guestfish --ro -d myguest -i\n"
16540 "\n"
16541 msgstr ""
16542
16543 #. type: textblock
16544 #: ../fish/guestfish.pod:274
16545 msgid "(for active domains, readonly), or specify the block device directly:"
16546 msgstr ""
16547
16548 #. type: verbatim
16549 #: ../fish/guestfish.pod:276
16550 #, no-wrap
16551 msgid ""
16552 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
16553 "\n"
16554 msgstr ""
16555
16556 #. type: textblock
16557 #: ../fish/guestfish.pod:278
16558 msgid ""
16559 "Note that the command line syntax changed slightly over older versions of "
16560 "guestfish.  You can still use the old syntax:"
16561 msgstr ""
16562
16563 #. type: verbatim
16564 #: ../fish/guestfish.pod:281
16565 #, no-wrap
16566 msgid ""
16567 " guestfish [--ro] -i disk.img\n"
16568 "\n"
16569 msgstr ""
16570
16571 #. type: verbatim
16572 #: ../fish/guestfish.pod:283
16573 #, no-wrap
16574 msgid ""
16575 " guestfish [--ro] -i libvirt-domain\n"
16576 "\n"
16577 msgstr ""
16578
16579 #. type: textblock
16580 #: ../fish/guestfish.pod:285
16581 msgid ""
16582 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
16583 "then using other commands to mount the filesystems that were found."
16584 msgstr ""
16585
16586 #. type: =item
16587 #: ../fish/guestfish.pod:294
16588 msgid "B<--listen>"
16589 msgstr ""
16590
16591 #. type: textblock
16592 #: ../fish/guestfish.pod:296
16593 msgid ""
16594 "Fork into the background and listen for remote commands.  See section L</"
16595 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
16596 msgstr ""
16597
16598 #. type: =item
16599 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
16600 msgid "B<--live>"
16601 msgstr ""
16602
16603 #. type: textblock
16604 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
16605 msgid ""
16606 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
16607 "ATTACHING TO RUNNING DAEMONS>)."
16608 msgstr ""
16609
16610 #. type: =item
16611 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
16612 msgid "B<-m dev[:mountpoint[:options]]>"
16613 msgstr ""
16614
16615 #. type: =item
16616 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
16617 msgid "B<--mount dev[:mountpoint[:options]]>"
16618 msgstr ""
16619
16620 #. type: textblock
16621 #: ../fish/guestfish.pod:308
16622 msgid "Mount the named partition or logical volume on the given mountpoint."
16623 msgstr ""
16624
16625 #. type: textblock
16626 #: ../fish/guestfish.pod:310
16627 msgid "If the mountpoint is omitted, it defaults to C</>."
16628 msgstr ""
16629
16630 #. type: textblock
16631 #: ../fish/guestfish.pod:312
16632 msgid "You have to mount something on C</> before most commands will work."
16633 msgstr ""
16634
16635 #. type: textblock
16636 #: ../fish/guestfish.pod:314
16637 msgid ""
16638 "If any I<-m> or I<--mount> options are given, the guest is automatically "
16639 "launched."
16640 msgstr ""
16641
16642 #. type: textblock
16643 #: ../fish/guestfish.pod:317
16644 msgid ""
16645 "If you don't know what filesystems a disk image contains, you can either run "
16646 "guestfish without this option, then list the partitions, filesystems and LVs "
16647 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
16648 "commands), or you can use the L<virt-filesystems(1)> program."
16649 msgstr ""
16650
16651 #. type: textblock
16652 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
16653 msgid ""
16654 "The third (and rarely used) part of the mount parameter is the list of mount "
16655 "options used to mount the underlying filesystem.  If this is not given, then "
16656 "the mount options are either the empty string or C<ro> (the latter if the "
16657 "I<--ro> flag is used).  By specifying the mount options, you override this "
16658 "default choice.  Probably the only time you would use this is to enable ACLs "
16659 "and/or extended attributes if the filesystem can support them:"
16660 msgstr ""
16661
16662 #. type: verbatim
16663 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
16664 #, no-wrap
16665 msgid ""
16666 " -m /dev/sda1:/:acl,user_xattr\n"
16667 "\n"
16668 msgstr ""
16669
16670 #. type: textblock
16671 #: ../fish/guestfish.pod:333
16672 msgid "Using this flag is equivalent to using the C<mount-options> command."
16673 msgstr ""
16674
16675 #. type: =item
16676 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193
16677 #: ../resize/virt-resize.pod:358
16678 msgid "B<-n>"
16679 msgstr ""
16680
16681 #. type: =item
16682 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
16683 msgid "B<--no-sync>"
16684 msgstr ""
16685
16686 #. type: textblock
16687 #: ../fish/guestfish.pod:339
16688 msgid ""
16689 "Disable autosync.  This is enabled by default.  See the discussion of "
16690 "autosync in the L<guestfs(3)> manpage."
16691 msgstr ""
16692
16693 #. type: =item
16694 #: ../fish/guestfish.pod:342
16695 msgid "B<-N type>"
16696 msgstr ""
16697
16698 #. type: =item
16699 #: ../fish/guestfish.pod:344
16700 msgid "B<--new type>"
16701 msgstr ""
16702
16703 #. type: =item
16704 #: ../fish/guestfish.pod:346
16705 msgid "B<-N help>"
16706 msgstr ""
16707
16708 #. type: textblock
16709 #: ../fish/guestfish.pod:348
16710 msgid ""
16711 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
16712 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
16713 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
16714 "IMAGES> below."
16715 msgstr ""
16716
16717 #. type: =item
16718 #: ../fish/guestfish.pod:353
16719 msgid "B<--progress-bars>"
16720 msgstr ""
16721
16722 #. type: textblock
16723 #: ../fish/guestfish.pod:355
16724 msgid "Enable progress bars, even when guestfish is used non-interactively."
16725 msgstr ""
16726
16727 #. type: textblock
16728 #: ../fish/guestfish.pod:357
16729 msgid ""
16730 "Progress bars are enabled by default when guestfish is used as an "
16731 "interactive shell."
16732 msgstr ""
16733
16734 #. type: =item
16735 #: ../fish/guestfish.pod:360
16736 msgid "B<--no-progress-bars>"
16737 msgstr ""
16738
16739 #. type: textblock
16740 #: ../fish/guestfish.pod:362
16741 msgid "Disable progress bars."
16742 msgstr ""
16743
16744 #. type: =item
16745 #: ../fish/guestfish.pod:364
16746 msgid "B<--remote[=pid]>"
16747 msgstr ""
16748
16749 #. type: textblock
16750 #: ../fish/guestfish.pod:366
16751 msgid ""
16752 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
16753 "CONTROL GUESTFISH OVER A SOCKET> below."
16754 msgstr ""
16755
16756 #. type: =item
16757 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239
16758 #: ../rescue/virt-rescue.pod:161
16759 msgid "B<-r>"
16760 msgstr ""
16761
16762 #. type: =item
16763 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241
16764 #: ../rescue/virt-rescue.pod:163
16765 msgid "B<--ro>"
16766 msgstr ""
16767
16768 #. type: textblock
16769 #: ../fish/guestfish.pod:373
16770 msgid ""
16771 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
16772 "mounts are done read-only."
16773 msgstr ""
16774
16775 #. type: textblock
16776 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
16777 msgid ""
16778 "The option must always be used if the disk image or virtual machine might be "
16779 "running, and is generally recommended in cases where you don't need write "
16780 "access to the disk."
16781 msgstr ""
16782
16783 #. type: textblock
16784 #: ../fish/guestfish.pod:380
16785 msgid ""
16786 "Note that prepared disk images created with I<-N> are not affected by this "
16787 "option.  Also commands like C<add> are not affected - you have to specify "
16788 "the C<readonly:true> option explicitly if you need it."
16789 msgstr ""
16790
16791 #. type: textblock
16792 #: ../fish/guestfish.pod:384
16793 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
16794 msgstr ""
16795
16796 #. type: =item
16797 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253
16798 #: ../rescue/virt-rescue.pod:173
16799 msgid "B<--selinux>"
16800 msgstr ""
16801
16802 #. type: textblock
16803 #: ../fish/guestfish.pod:388
16804 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
16805 msgstr ""
16806
16807 #. type: textblock
16808 #: ../fish/guestfish.pod:394
16809 msgid ""
16810 "Enable very verbose messages.  This is particularly useful if you find a bug."
16811 msgstr ""
16812
16813 #. type: textblock
16814 #: ../fish/guestfish.pod:401
16815 msgid "Display the guestfish / libguestfs version number and exit."
16816 msgstr ""
16817
16818 #. type: =item
16819 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269
16820 #: ../rescue/virt-rescue.pod:190
16821 msgid "B<-w>"
16822 msgstr ""
16823
16824 #. type: =item
16825 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271
16826 #: ../rescue/virt-rescue.pod:192
16827 msgid "B<--rw>"
16828 msgstr ""
16829
16830 #. type: textblock
16831 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
16832 msgid ""
16833 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
16834 "mounts are done read-write."
16835 msgstr ""
16836
16837 #. type: textblock
16838 #: ../fish/guestfish.pod:410
16839 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
16840 msgstr ""
16841
16842 #. type: textblock
16843 #: ../fish/guestfish.pod:414
16844 msgid "Echo each command before executing it."
16845 msgstr ""
16846
16847 #. type: =head1
16848 #: ../fish/guestfish.pod:418
16849 msgid "COMMANDS ON COMMAND LINE"
16850 msgstr ""
16851
16852 #. type: textblock
16853 #: ../fish/guestfish.pod:420
16854 msgid ""
16855 "Any additional (non-option) arguments are treated as commands to execute."
16856 msgstr ""
16857
16858 #. type: textblock
16859 #: ../fish/guestfish.pod:423
16860 msgid ""
16861 "Commands to execute should be separated by a colon (C<:>), where the colon "
16862 "is a separate parameter.  Thus:"
16863 msgstr ""
16864
16865 #. type: verbatim
16866 #: ../fish/guestfish.pod:426
16867 #, no-wrap
16868 msgid ""
16869 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
16870 "\n"
16871 msgstr ""
16872
16873 #. type: textblock
16874 #: ../fish/guestfish.pod:428
16875 msgid ""
16876 "If there are no additional arguments, then we enter a shell, either an "
16877 "interactive shell with a prompt (if the input is a terminal) or a non-"
16878 "interactive shell."
16879 msgstr ""
16880
16881 #. type: textblock
16882 #: ../fish/guestfish.pod:432
16883 msgid ""
16884 "In either command line mode or non-interactive shell, the first command that "
16885 "gives an error causes the whole shell to exit.  In interactive mode (with a "
16886 "prompt) if a command fails, you can continue to enter commands."
16887 msgstr ""
16888
16889 #. type: =head1
16890 #: ../fish/guestfish.pod:437
16891 msgid "USING launch (OR run)"
16892 msgstr ""
16893
16894 #. type: textblock
16895 #: ../fish/guestfish.pod:439
16896 msgid ""
16897 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
16898 "then launch it, then mount any disks you need, and finally issue actions/"
16899 "commands.  So the general order of the day is:"
16900 msgstr ""
16901
16902 #. type: textblock
16903 #: ../fish/guestfish.pod:447
16904 msgid "add or -a/--add"
16905 msgstr ""
16906
16907 #. type: textblock
16908 #: ../fish/guestfish.pod:451
16909 msgid "launch (aka run)"
16910 msgstr ""
16911
16912 #. type: textblock
16913 #: ../fish/guestfish.pod:455
16914 msgid "mount or -m/--mount"
16915 msgstr ""
16916
16917 #. type: textblock
16918 #: ../fish/guestfish.pod:459
16919 msgid "any other commands"
16920 msgstr ""
16921
16922 #. type: textblock
16923 #: ../fish/guestfish.pod:463
16924 msgid ""
16925 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
16926 "guest before mounting or performing any other commands."
16927 msgstr ""
16928
16929 #. type: textblock
16930 #: ../fish/guestfish.pod:466
16931 msgid ""
16932 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
16933 "I<--new> options were given then C<run> is done automatically, simply "
16934 "because guestfish can't perform the action you asked for without doing this."
16935 msgstr ""
16936
16937 #. type: =head1
16938 #: ../fish/guestfish.pod:471
16939 msgid "OPENING DISKS FOR READ AND WRITE"
16940 msgstr ""
16941
16942 #. type: textblock
16943 #: ../fish/guestfish.pod:473
16944 msgid ""
16945 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
16946 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
16947 "I<-i> and I<-m> open disk images read-only or for writing."
16948 msgstr ""
16949
16950 #. type: textblock
16951 #: ../fish/guestfish.pod:478
16952 msgid ""
16953 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
16954 "opening disk images supplied on the command line for write.  To open a disk "
16955 "image read-only you have to do I<-a image --ro>."
16956 msgstr ""
16957
16958 #. type: textblock
16959 #: ../fish/guestfish.pod:482
16960 msgid ""
16961 "This matters: If you accidentally open a live VM disk image writable then "
16962 "you will cause irreversible disk corruption."
16963 msgstr ""
16964
16965 #. type: textblock
16966 #: ../fish/guestfish.pod:485
16967 msgid ""
16968 "In a future libguestfs we intend to change the default the other way.  Disk "
16969 "images will be opened read-only.  You will have to either specify "
16970 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
16971 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
16972 "access for disk images specified by those other command line options."
16973 msgstr ""
16974
16975 #. type: textblock
16976 #: ../fish/guestfish.pod:492
16977 msgid ""
16978 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
16979 "which does nothing (it is already the default).  However it is highly "
16980 "recommended that you use this option to indicate that you need write access, "
16981 "and prepare your scripts for the day when this option will be required for "
16982 "write access."
16983 msgstr ""
16984
16985 #. type: textblock
16986 #: ../fish/guestfish.pod:498
16987 msgid ""
16988 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
16989 "other libguestfs program apart from guestfish and guestmount."
16990 msgstr ""
16991
16992 #. type: =head1
16993 #: ../fish/guestfish.pod:501
16994 msgid "QUOTING"
16995 msgstr ""
16996
16997 #. type: textblock
16998 #: ../fish/guestfish.pod:503
16999 msgid ""
17000 "You can quote ordinary parameters using either single or double quotes.  For "
17001 "example:"
17002 msgstr ""
17003
17004 #. type: verbatim
17005 #: ../fish/guestfish.pod:506
17006 #, no-wrap
17007 msgid ""
17008 " add \"file with a space.img\"\n"
17009 "\n"
17010 msgstr ""
17011
17012 #. type: verbatim
17013 #: ../fish/guestfish.pod:508
17014 #, no-wrap
17015 msgid ""
17016 " rm '/file name'\n"
17017 "\n"
17018 msgstr ""
17019
17020 #. type: verbatim
17021 #: ../fish/guestfish.pod:510
17022 #, no-wrap
17023 msgid ""
17024 " rm '/\"'\n"
17025 "\n"
17026 msgstr ""
17027
17028 #. type: textblock
17029 #: ../fish/guestfish.pod:512
17030 msgid ""
17031 "A few commands require a list of strings to be passed.  For these, use a "
17032 "whitespace-separated list, enclosed in quotes.  Strings containing "
17033 "whitespace to be passed through must be enclosed in single quotes.  A "
17034 "literal single quote must be escaped with a backslash."
17035 msgstr ""
17036
17037 #. type: verbatim
17038 #: ../fish/guestfish.pod:517
17039 #, no-wrap
17040 msgid ""
17041 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17042 " command \"/bin/echo 'foo      bar'\"\n"
17043 " command \"/bin/echo \\'foo\\'\"\n"
17044 "\n"
17045 msgstr ""
17046
17047 #. type: =head2
17048 #: ../fish/guestfish.pod:521
17049 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
17050 msgstr ""
17051
17052 #. type: textblock
17053 #: ../fish/guestfish.pod:523
17054 msgid ""
17055 "In double-quoted arguments (only) use backslash to insert special characters:"
17056 msgstr ""
17057
17058 #. type: =item
17059 #: ../fish/guestfish.pod:528
17060 msgid "C<\\a>"
17061 msgstr ""
17062
17063 #. type: textblock
17064 #: ../fish/guestfish.pod:530
17065 msgid "Alert (bell) character."
17066 msgstr ""
17067
17068 #. type: =item
17069 #: ../fish/guestfish.pod:532
17070 msgid "C<\\b>"
17071 msgstr ""
17072
17073 #. type: textblock
17074 #: ../fish/guestfish.pod:534
17075 msgid "Backspace character."
17076 msgstr ""
17077
17078 #. type: =item
17079 #: ../fish/guestfish.pod:536
17080 msgid "C<\\f>"
17081 msgstr ""
17082
17083 #. type: textblock
17084 #: ../fish/guestfish.pod:538
17085 msgid "Form feed character."
17086 msgstr ""
17087
17088 #. type: =item
17089 #: ../fish/guestfish.pod:540
17090 msgid "C<\\n>"
17091 msgstr ""
17092
17093 #. type: textblock
17094 #: ../fish/guestfish.pod:542
17095 msgid "Newline character."
17096 msgstr ""
17097
17098 #. type: =item
17099 #: ../fish/guestfish.pod:544
17100 msgid "C<\\r>"
17101 msgstr ""
17102
17103 #. type: textblock
17104 #: ../fish/guestfish.pod:546
17105 msgid "Carriage return character."
17106 msgstr ""
17107
17108 #. type: =item
17109 #: ../fish/guestfish.pod:548
17110 msgid "C<\\t>"
17111 msgstr ""
17112
17113 #. type: textblock
17114 #: ../fish/guestfish.pod:550
17115 msgid "Horizontal tab character."
17116 msgstr ""
17117
17118 #. type: =item
17119 #: ../fish/guestfish.pod:552
17120 msgid "C<\\v>"
17121 msgstr ""
17122
17123 #. type: textblock
17124 #: ../fish/guestfish.pod:554
17125 msgid "Vertical tab character."
17126 msgstr ""
17127
17128 #. type: =item
17129 #: ../fish/guestfish.pod:556
17130 msgid "C<\\\">"
17131 msgstr ""
17132
17133 #. type: textblock
17134 #: ../fish/guestfish.pod:558
17135 msgid "A literal double quote character."
17136 msgstr ""
17137
17138 #. type: =item
17139 #: ../fish/guestfish.pod:560
17140 msgid "C<\\ooo>"
17141 msgstr ""
17142
17143 #. type: textblock
17144 #: ../fish/guestfish.pod:562
17145 msgid ""
17146 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
17147 "(unlike C)."
17148 msgstr ""
17149
17150 #. type: =item
17151 #: ../fish/guestfish.pod:565
17152 msgid "C<\\xhh>"
17153 msgstr ""
17154
17155 #. type: textblock
17156 #: ../fish/guestfish.pod:567
17157 msgid ""
17158 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
17159 msgstr ""
17160
17161 #. type: textblock
17162 #: ../fish/guestfish.pod:570
17163 msgid ""
17164 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
17165 "strings."
17166 msgstr ""
17167
17168 #. type: =item
17169 #: ../fish/guestfish.pod:573
17170 msgid "C<\\\\>"
17171 msgstr ""
17172
17173 #. type: textblock
17174 #: ../fish/guestfish.pod:575
17175 msgid "A literal backslash character."
17176 msgstr ""
17177
17178 #. type: =head1
17179 #: ../fish/guestfish.pod:579
17180 msgid "OPTIONAL ARGUMENTS"
17181 msgstr ""
17182
17183 #. type: textblock
17184 #: ../fish/guestfish.pod:581
17185 msgid ""
17186 "Some commands take optional arguments.  These arguments appear in this "
17187 "documentation as C<[argname:..]>.  You can use them as in these examples:"
17188 msgstr ""
17189
17190 #. type: verbatim
17191 #: ../fish/guestfish.pod:585
17192 #, no-wrap
17193 msgid ""
17194 " add-drive-opts filename\n"
17195 "\n"
17196 msgstr ""
17197
17198 #. type: verbatim
17199 #: ../fish/guestfish.pod:587
17200 #, no-wrap
17201 msgid ""
17202 " add-drive-opts filename readonly:true\n"
17203 "\n"
17204 msgstr ""
17205
17206 #. type: verbatim
17207 #: ../fish/guestfish.pod:589
17208 #, no-wrap
17209 msgid ""
17210 " add-drive-opts filename format:qcow2 readonly:false\n"
17211 "\n"
17212 msgstr ""
17213
17214 #. type: textblock
17215 #: ../fish/guestfish.pod:591
17216 msgid ""
17217 "Each optional argument can appear at most once.  All optional arguments must "
17218 "appear after the required ones."
17219 msgstr ""
17220
17221 #. type: =head1
17222 #: ../fish/guestfish.pod:594
17223 msgid "NUMBERS"
17224 msgstr ""
17225
17226 #. type: textblock
17227 #: ../fish/guestfish.pod:596
17228 msgid ""
17229 "This section applies to all commands which can take integers as parameters."
17230 msgstr ""
17231
17232 #. type: =head2
17233 #: ../fish/guestfish.pod:599
17234 msgid "SIZE SUFFIX"
17235 msgstr ""
17236
17237 #. type: textblock
17238 #: ../fish/guestfish.pod:601
17239 msgid ""
17240 "When the command takes a parameter measured in bytes, you can use one of the "
17241 "following suffixes to specify kilobytes, megabytes and larger sizes:"
17242 msgstr ""
17243
17244 #. type: =item
17245 #: ../fish/guestfish.pod:607
17246 msgid "B<k> or B<K> or B<KiB>"
17247 msgstr ""
17248
17249 #. type: textblock
17250 #: ../fish/guestfish.pod:609
17251 msgid "The size in kilobytes (multiplied by 1024)."
17252 msgstr ""
17253
17254 #. type: =item
17255 #: ../fish/guestfish.pod:611
17256 msgid "B<KB>"
17257 msgstr ""
17258
17259 #. type: textblock
17260 #: ../fish/guestfish.pod:613
17261 msgid "The size in SI 1000 byte units."
17262 msgstr ""
17263
17264 #. type: =item
17265 #: ../fish/guestfish.pod:615
17266 msgid "B<M> or B<MiB>"
17267 msgstr ""
17268
17269 #. type: textblock
17270 #: ../fish/guestfish.pod:617
17271 msgid "The size in megabytes (multiplied by 1048576)."
17272 msgstr ""
17273
17274 #. type: =item
17275 #: ../fish/guestfish.pod:619
17276 msgid "B<MB>"
17277 msgstr ""
17278
17279 #. type: textblock
17280 #: ../fish/guestfish.pod:621
17281 msgid "The size in SI 1000000 byte units."
17282 msgstr ""
17283
17284 #. type: =item
17285 #: ../fish/guestfish.pod:623
17286 msgid "B<G> or B<GiB>"
17287 msgstr ""
17288
17289 #. type: textblock
17290 #: ../fish/guestfish.pod:625
17291 msgid "The size in gigabytes (multiplied by 2**30)."
17292 msgstr ""
17293
17294 #. type: =item
17295 #: ../fish/guestfish.pod:627
17296 msgid "B<GB>"
17297 msgstr ""
17298
17299 #. type: textblock
17300 #: ../fish/guestfish.pod:629
17301 msgid "The size in SI 10**9 byte units."
17302 msgstr ""
17303
17304 #. type: =item
17305 #: ../fish/guestfish.pod:631
17306 msgid "B<T> or B<TiB>"
17307 msgstr ""
17308
17309 #. type: textblock
17310 #: ../fish/guestfish.pod:633
17311 msgid "The size in terabytes (multiplied by 2**40)."
17312 msgstr ""
17313
17314 #. type: =item
17315 #: ../fish/guestfish.pod:635
17316 msgid "B<TB>"
17317 msgstr ""
17318
17319 #. type: textblock
17320 #: ../fish/guestfish.pod:637
17321 msgid "The size in SI 10**12 byte units."
17322 msgstr ""
17323
17324 #. type: =item
17325 #: ../fish/guestfish.pod:639
17326 msgid "B<P> or B<PiB>"
17327 msgstr ""
17328
17329 #. type: textblock
17330 #: ../fish/guestfish.pod:641
17331 msgid "The size in petabytes (multiplied by 2**50)."
17332 msgstr ""
17333
17334 #. type: =item
17335 #: ../fish/guestfish.pod:643
17336 msgid "B<PB>"
17337 msgstr ""
17338
17339 #. type: textblock
17340 #: ../fish/guestfish.pod:645
17341 msgid "The size in SI 10**15 byte units."
17342 msgstr ""
17343
17344 #. type: =item
17345 #: ../fish/guestfish.pod:647
17346 msgid "B<E> or B<EiB>"
17347 msgstr ""
17348
17349 #. type: textblock
17350 #: ../fish/guestfish.pod:649
17351 msgid "The size in exabytes (multiplied by 2**60)."
17352 msgstr ""
17353
17354 #. type: =item
17355 #: ../fish/guestfish.pod:651
17356 msgid "B<EB>"
17357 msgstr ""
17358
17359 #. type: textblock
17360 #: ../fish/guestfish.pod:653
17361 msgid "The size in SI 10**18 byte units."
17362 msgstr ""
17363
17364 #. type: =item
17365 #: ../fish/guestfish.pod:655
17366 msgid "B<Z> or B<ZiB>"
17367 msgstr ""
17368
17369 #. type: textblock
17370 #: ../fish/guestfish.pod:657
17371 msgid "The size in zettabytes (multiplied by 2**70)."
17372 msgstr ""
17373
17374 #. type: =item
17375 #: ../fish/guestfish.pod:659
17376 msgid "B<ZB>"
17377 msgstr ""
17378
17379 #. type: textblock
17380 #: ../fish/guestfish.pod:661
17381 msgid "The size in SI 10**21 byte units."
17382 msgstr ""
17383
17384 #. type: =item
17385 #: ../fish/guestfish.pod:663
17386 msgid "B<Y> or B<YiB>"
17387 msgstr ""
17388
17389 #. type: textblock
17390 #: ../fish/guestfish.pod:665
17391 msgid "The size in yottabytes (multiplied by 2**80)."
17392 msgstr ""
17393
17394 #. type: =item
17395 #: ../fish/guestfish.pod:667
17396 msgid "B<YB>"
17397 msgstr ""
17398
17399 #. type: textblock
17400 #: ../fish/guestfish.pod:669
17401 msgid "The size in SI 10**24 byte units."
17402 msgstr ""
17403
17404 #. type: verbatim
17405 #: ../fish/guestfish.pod:675
17406 #, no-wrap
17407 msgid ""
17408 " truncate-size /file 1G\n"
17409 "\n"
17410 msgstr ""
17411
17412 #. type: textblock
17413 #: ../fish/guestfish.pod:677
17414 msgid "would truncate the file to 1 gigabyte."
17415 msgstr ""
17416
17417 #. type: textblock
17418 #: ../fish/guestfish.pod:679
17419 msgid ""
17420 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
17421 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
17422 "suffix will probably not do what you expect."
17423 msgstr ""
17424
17425 #. type: =head2
17426 #: ../fish/guestfish.pod:683
17427 msgid "OCTAL AND HEXADECIMAL NUMBERS"
17428 msgstr ""
17429
17430 #. type: textblock
17431 #: ../fish/guestfish.pod:685
17432 msgid ""
17433 "For specifying the radix (base) use the C convention: C<0> to prefix an "
17434 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
17435 msgstr ""
17436
17437 #. type: verbatim
17438 #: ../fish/guestfish.pod:688
17439 #, no-wrap
17440 msgid ""
17441 " 1234      decimal number 1234\n"
17442 " 02322     octal number, equivalent to decimal 1234\n"
17443 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
17444 "\n"
17445 msgstr ""
17446
17447 #. type: textblock
17448 #: ../fish/guestfish.pod:692
17449 msgid ""
17450 "When using the C<chmod> command, you almost always want to specify an octal "
17451 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
17452 "L<chmod(1)> program):"
17453 msgstr ""
17454
17455 #. type: verbatim
17456 #: ../fish/guestfish.pod:696
17457 #, no-wrap
17458 msgid ""
17459 " chmod 0777 /public  # OK\n"
17460 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
17461 "\n"
17462 msgstr ""
17463
17464 #. type: textblock
17465 #: ../fish/guestfish.pod:699
17466 msgid ""
17467 "Commands that return numbers usually print them in decimal, but some "
17468 "commands print numbers in other radices (eg. C<umask> prints the mode in "
17469 "octal, preceeded by C<0>)."
17470 msgstr ""
17471
17472 #. type: =head1
17473 #: ../fish/guestfish.pod:703
17474 msgid "WILDCARDS AND GLOBBING"
17475 msgstr ""
17476
17477 #. type: textblock
17478 #: ../fish/guestfish.pod:705
17479 msgid ""
17480 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
17481 "(globbing) by default.  So for example the following will not do what you "
17482 "expect:"
17483 msgstr ""
17484
17485 #. type: verbatim
17486 #: ../fish/guestfish.pod:709
17487 #, no-wrap
17488 msgid ""
17489 " rm-rf /home/*\n"
17490 "\n"
17491 msgstr ""
17492
17493 #. type: textblock
17494 #: ../fish/guestfish.pod:711
17495 msgid ""
17496 "Assuming you don't have a directory called literally C</home/*> then the "
17497 "above command will return an error."
17498 msgstr ""
17499
17500 #. type: textblock
17501 #: ../fish/guestfish.pod:714
17502 msgid "To perform wildcard expansion, use the C<glob> command."
17503 msgstr ""
17504
17505 #. type: verbatim
17506 #: ../fish/guestfish.pod:716
17507 #, no-wrap
17508 msgid ""
17509 " glob rm-rf /home/*\n"
17510 "\n"
17511 msgstr ""
17512
17513 #. type: textblock
17514 #: ../fish/guestfish.pod:718
17515 msgid ""
17516 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
17517 "many times), equivalent to:"
17518 msgstr ""
17519
17520 #. type: verbatim
17521 #: ../fish/guestfish.pod:721
17522 #, no-wrap
17523 msgid ""
17524 " rm-rf /home/jim\n"
17525 " rm-rf /home/joe\n"
17526 " rm-rf /home/mary\n"
17527 "\n"
17528 msgstr ""
17529
17530 #. type: textblock
17531 #: ../fish/guestfish.pod:725
17532 msgid "C<glob> only works on simple guest paths and not on device names."
17533 msgstr ""
17534
17535 #. type: textblock
17536 #: ../fish/guestfish.pod:727
17537 msgid ""
17538 "If you have several parameters, each containing a wildcard, then glob will "
17539 "perform a Cartesian product."
17540 msgstr ""
17541
17542 #. type: =head1
17543 #: ../fish/guestfish.pod:730
17544 msgid "COMMENTS"
17545 msgstr ""
17546
17547 #. type: textblock
17548 #: ../fish/guestfish.pod:732
17549 msgid ""
17550 "Any line which starts with a I<#> character is treated as a comment and "
17551 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
17552 "a command.  For example:"
17553 msgstr ""
17554
17555 #. type: verbatim
17556 #: ../fish/guestfish.pod:736
17557 #, no-wrap
17558 msgid ""
17559 " # this is a comment\n"
17560 "         # this is a comment\n"
17561 " foo # NOT a comment\n"
17562 "\n"
17563 msgstr ""
17564
17565 #. type: textblock
17566 #: ../fish/guestfish.pod:740
17567 msgid "Blank lines are also ignored."
17568 msgstr ""
17569
17570 #. type: =head1
17571 #: ../fish/guestfish.pod:742
17572 msgid "RUNNING COMMANDS LOCALLY"
17573 msgstr ""
17574
17575 #. type: textblock
17576 #: ../fish/guestfish.pod:744
17577 msgid ""
17578 "Any line which starts with a I<!> character is treated as a command sent to "
17579 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
17580 msgstr ""
17581
17582 #. type: verbatim
17583 #: ../fish/guestfish.pod:748
17584 #, no-wrap
17585 msgid ""
17586 " !mkdir local\n"
17587 " tgz-out /remote local/remote-data.tar.gz\n"
17588 "\n"
17589 msgstr ""
17590
17591 #. type: textblock
17592 #: ../fish/guestfish.pod:751
17593 msgid ""
17594 "will create a directory C<local> on the host, and then export the contents "
17595 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
17596 "(See C<tgz-out>)."
17597 msgstr ""
17598
17599 #. type: textblock
17600 #: ../fish/guestfish.pod:755
17601 msgid ""
17602 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
17603 "effect, due to the way that subprocesses work in Unix."
17604 msgstr ""
17605
17606 #. type: =head2
17607 #: ../fish/guestfish.pod:758
17608 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
17609 msgstr ""
17610
17611 #. type: textblock
17612 #: ../fish/guestfish.pod:760
17613 msgid ""
17614 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
17615 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
17616 "and executed as guestfish commands."
17617 msgstr ""
17618
17619 #. type: textblock
17620 #: ../fish/guestfish.pod:764
17621 msgid ""
17622 "Thus you can use shell script to construct arbitrary guestfish commands "
17623 "which are then parsed by guestfish."
17624 msgstr ""
17625
17626 #. type: textblock
17627 #: ../fish/guestfish.pod:767
17628 msgid ""
17629 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
17630 "through C</foo.100>) using guestfish commands alone.  However this is simple "
17631 "if we use a shell script to create the guestfish commands for us:"
17632 msgstr ""
17633
17634 #. type: verbatim
17635 #: ../fish/guestfish.pod:772
17636 #, no-wrap
17637 msgid ""
17638 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
17639 "\n"
17640 msgstr ""
17641
17642 #. type: textblock
17643 #: ../fish/guestfish.pod:774
17644 msgid "or with names like C</foo.001>:"
17645 msgstr ""
17646
17647 #. type: verbatim
17648 #: ../fish/guestfish.pod:776
17649 #, no-wrap
17650 msgid ""
17651 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
17652 "\n"
17653 msgstr ""
17654
17655 #. type: textblock
17656 #: ../fish/guestfish.pod:778
17657 msgid ""
17658 "When using guestfish interactively it can be helpful to just run the shell "
17659 "script first (ie. remove the initial C<E<lt>> character so it is just an "
17660 "ordinary I<!> local command), see what guestfish commands it would run, and "
17661 "when you are happy with those prepend the C<E<lt>> character to run the "
17662 "guestfish commands for real."
17663 msgstr ""
17664
17665 #. type: =head1
17666 #: ../fish/guestfish.pod:784
17667 msgid "PIPES"
17668 msgstr ""
17669
17670 #. type: textblock
17671 #: ../fish/guestfish.pod:786
17672 msgid ""
17673 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
17674 "command (a guestfish command) to the second command (any host command).  For "
17675 "example:"
17676 msgstr ""
17677
17678 #. type: verbatim
17679 #: ../fish/guestfish.pod:790
17680 #, no-wrap
17681 msgid ""
17682 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
17683 "\n"
17684 msgstr ""
17685
17686 #. type: textblock
17687 #: ../fish/guestfish.pod:792
17688 msgid ""
17689 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
17690 "program).  The above command would list all accounts in the guest filesystem "
17691 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
17692 msgstr ""
17693
17694 #. type: verbatim
17695 #: ../fish/guestfish.pod:797
17696 #, no-wrap
17697 msgid ""
17698 " hexdump /bin/ls | head\n"
17699 " list-devices | tail -1\n"
17700 " tgz-out / - | tar ztf -\n"
17701 "\n"
17702 msgstr ""
17703
17704 #. type: textblock
17705 #: ../fish/guestfish.pod:801
17706 msgid ""
17707 "The space before the pipe symbol is required, any space after the pipe "
17708 "symbol is optional.  Everything after the pipe symbol is just passed "
17709 "straight to the host shell, so it can contain redirections, globs and "
17710 "anything else that makes sense on the host side."
17711 msgstr ""
17712
17713 #. type: textblock
17714 #: ../fish/guestfish.pod:806
17715 msgid ""
17716 "To use a literal argument which begins with a pipe symbol, you have to quote "
17717 "it, eg:"
17718 msgstr ""
17719
17720 #. type: verbatim
17721 #: ../fish/guestfish.pod:809
17722 #, no-wrap
17723 msgid ""
17724 " echo \"|\"\n"
17725 "\n"
17726 msgstr ""
17727
17728 #. type: =head1
17729 #: ../fish/guestfish.pod:811
17730 msgid "HOME DIRECTORIES"
17731 msgstr ""
17732
17733 #. type: textblock
17734 #: ../fish/guestfish.pod:813
17735 msgid ""
17736 "If a parameter starts with the character C<~> then the tilde may be expanded "
17737 "as a home directory path (either C<~> for the current user's home directory, "
17738 "or C<~user> for another user)."
17739 msgstr ""
17740
17741 #. type: textblock
17742 #: ../fish/guestfish.pod:817
17743 msgid ""
17744 "Note that home directory expansion happens for users known I<on the host>, "
17745 "not in the guest filesystem."
17746 msgstr ""
17747
17748 #. type: textblock
17749 #: ../fish/guestfish.pod:820
17750 msgid ""
17751 "To use a literal argument which begins with a tilde, you have to quote it, "
17752 "eg:"
17753 msgstr ""
17754
17755 #. type: verbatim
17756 #: ../fish/guestfish.pod:823
17757 #, no-wrap
17758 msgid ""
17759 " echo \"~\"\n"
17760 "\n"
17761 msgstr ""
17762
17763 #. type: =head2
17764 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
17765 msgid "ENCRYPTED DISKS"
17766 msgstr ""
17767
17768 #. type: textblock
17769 #: ../fish/guestfish.pod:827
17770 msgid ""
17771 "Libguestfs has some support for Linux guests encrypted according to the "
17772 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
17773 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
17774 "LUKS is supported."
17775 msgstr ""
17776
17777 #. type: textblock
17778 #: ../fish/guestfish.pod:832
17779 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
17780 msgstr ""
17781
17782 #. type: verbatim
17783 #: ../fish/guestfish.pod:834
17784 #, no-wrap
17785 msgid ""
17786 " ><fs> vfs-type /dev/sda2\n"
17787 " crypto_LUKS\n"
17788 "\n"
17789 msgstr ""
17790
17791 #. type: textblock
17792 #: ../fish/guestfish.pod:837
17793 msgid ""
17794 "Then open those devices using L</luks-open>.  This creates a device-mapper "
17795 "device called C</dev/mapper/luksdev>."
17796 msgstr ""
17797
17798 #. type: verbatim
17799 #: ../fish/guestfish.pod:840
17800 #, no-wrap
17801 msgid ""
17802 " ><fs> luks-open /dev/sda2 luksdev\n"
17803 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
17804 "\n"
17805 msgstr ""
17806
17807 #. type: textblock
17808 #: ../fish/guestfish.pod:843
17809 msgid ""
17810 "Finally you have to tell LVM to scan for volume groups on the newly created "
17811 "mapper device:"
17812 msgstr ""
17813
17814 #. type: verbatim
17815 #: ../fish/guestfish.pod:846
17816 #, no-wrap
17817 msgid ""
17818 " vgscan\n"
17819 " vg-activate-all true\n"
17820 "\n"
17821 msgstr ""
17822
17823 #. type: textblock
17824 #: ../fish/guestfish.pod:849
17825 msgid "The logical volume(s) can now be mounted in the usual way."
17826 msgstr ""
17827
17828 #. type: textblock
17829 #: ../fish/guestfish.pod:851
17830 msgid ""
17831 "Before closing a LUKS device you must unmount any logical volumes on it and "
17832 "deactivate the volume groups by calling C<vg-activate false VG> on each "
17833 "one.  Then you can close the mapper device:"
17834 msgstr ""
17835
17836 #. type: verbatim
17837 #: ../fish/guestfish.pod:855
17838 #, no-wrap
17839 msgid ""
17840 " vg-activate false /dev/VG\n"
17841 " luks-close /dev/mapper/luksdev\n"
17842 "\n"
17843 msgstr ""
17844
17845 #. type: textblock
17846 #: ../fish/guestfish.pod:860
17847 msgid ""
17848 "If a path is prefixed with C<win:> then you can use Windows-style drive "
17849 "letters and paths (with some limitations).  The following commands are "
17850 "equivalent:"
17851 msgstr ""
17852
17853 #. type: verbatim
17854 #: ../fish/guestfish.pod:864
17855 #, no-wrap
17856 msgid ""
17857 " file /WINDOWS/system32/config/system.LOG\n"
17858 "\n"
17859 msgstr ""
17860
17861 #. type: verbatim
17862 #: ../fish/guestfish.pod:866
17863 #, no-wrap
17864 msgid ""
17865 " file win:\\windows\\system32\\config\\system.log\n"
17866 "\n"
17867 msgstr ""
17868
17869 #. type: verbatim
17870 #: ../fish/guestfish.pod:868
17871 #, no-wrap
17872 msgid ""
17873 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
17874 "\n"
17875 msgstr ""
17876
17877 #. type: textblock
17878 #: ../fish/guestfish.pod:870
17879 msgid ""
17880 "The parameter is rewritten \"behind the scenes\" by looking up the position "
17881 "where the drive is mounted, prepending that to the path, changing all "
17882 "backslash characters to forward slash, then resolving the result using L</"
17883 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
17884 "the parameter might be rewritten like this:"
17885 msgstr ""
17886
17887 #. type: verbatim
17888 #: ../fish/guestfish.pod:876
17889 #, no-wrap
17890 msgid ""
17891 " win:e:\\foo\\bar => /e/FOO/bar\n"
17892 "\n"
17893 msgstr ""
17894
17895 #. type: textblock
17896 #: ../fish/guestfish.pod:878
17897 msgid "This only works in argument positions that expect a path."
17898 msgstr ""
17899
17900 #. type: =head1
17901 #: ../fish/guestfish.pod:880
17902 msgid "UPLOADING AND DOWNLOADING FILES"
17903 msgstr ""
17904
17905 #. type: textblock
17906 #: ../fish/guestfish.pod:882
17907 msgid ""
17908 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
17909 "others which upload from or download to a local file, you can use the "
17910 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
17911 msgstr ""
17912
17913 #. type: verbatim
17914 #: ../fish/guestfish.pod:886
17915 #, no-wrap
17916 msgid ""
17917 " upload - /foo\n"
17918 "\n"
17919 msgstr ""
17920
17921 #. type: textblock
17922 #: ../fish/guestfish.pod:888
17923 msgid ""
17924 "reads stdin and creates from that a file C</foo> in the disk image, and:"
17925 msgstr ""
17926
17927 #. type: verbatim
17928 #: ../fish/guestfish.pod:891
17929 #, no-wrap
17930 msgid ""
17931 " tar-out /etc - | tar tf -\n"
17932 "\n"
17933 msgstr ""
17934
17935 #. type: textblock
17936 #: ../fish/guestfish.pod:893
17937 msgid ""
17938 "writes the tarball to stdout and then pipes that into the external \"tar\" "
17939 "command (see L</PIPES>)."
17940 msgstr ""
17941
17942 #. type: textblock
17943 #: ../fish/guestfish.pod:896
17944 msgid ""
17945 "When using C<-> to read from stdin, the input is read up to the end of "
17946 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
17947 "some arbitrary end marker:"
17948 msgstr ""
17949
17950 #. type: verbatim
17951 #: ../fish/guestfish.pod:900
17952 #, no-wrap
17953 msgid ""
17954 " upload -<<END /foo\n"
17955 " input line 1\n"
17956 " input line 2\n"
17957 " input line 3\n"
17958 " END\n"
17959 "\n"
17960 msgstr ""
17961
17962 #. type: textblock
17963 #: ../fish/guestfish.pod:906
17964 msgid ""
17965 "Any string of characters can be used instead of C<END>.  The end marker must "
17966 "appear on a line of its own, without any preceeding or following characters "
17967 "(not even spaces)."
17968 msgstr ""
17969
17970 #. type: textblock
17971 #: ../fish/guestfish.pod:910
17972 msgid ""
17973 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
17974 "upload local files (so-called \"FileIn\" parameters in the generator)."
17975 msgstr ""
17976
17977 #. type: =head1
17978 #: ../fish/guestfish.pod:913
17979 msgid "EXIT ON ERROR BEHAVIOUR"
17980 msgstr ""
17981
17982 #. type: textblock
17983 #: ../fish/guestfish.pod:915
17984 msgid ""
17985 "By default, guestfish will ignore any errors when in interactive mode (ie. "
17986 "taking commands from a human over a tty), and will exit on the first error "
17987 "in non-interactive mode (scripts, commands given on the command line)."
17988 msgstr ""
17989
17990 #. type: textblock
17991 #: ../fish/guestfish.pod:920
17992 msgid ""
17993 "If you prefix a command with a I<-> character, then that command will not "
17994 "cause guestfish to exit, even if that (one) command returns an error."
17995 msgstr ""
17996
17997 #. type: =head1
17998 #: ../fish/guestfish.pod:924
17999 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18000 msgstr ""
18001
18002 #. type: textblock
18003 #: ../fish/guestfish.pod:926
18004 msgid ""
18005 "Guestfish can be remote-controlled over a socket.  This is useful "
18006 "particularly in shell scripts where you want to make several different "
18007 "changes to a filesystem, but you don't want the overhead of starting up a "
18008 "guestfish process each time."
18009 msgstr ""
18010
18011 #. type: textblock
18012 #: ../fish/guestfish.pod:931
18013 msgid "Start a guestfish server process using:"
18014 msgstr ""
18015
18016 #. type: verbatim
18017 #: ../fish/guestfish.pod:933
18018 #, no-wrap
18019 msgid ""
18020 " eval \"`guestfish --listen`\"\n"
18021 "\n"
18022 msgstr ""
18023
18024 #. type: textblock
18025 #: ../fish/guestfish.pod:935
18026 msgid "and then send it commands by doing:"
18027 msgstr ""
18028
18029 #. type: verbatim
18030 #: ../fish/guestfish.pod:937
18031 #, no-wrap
18032 msgid ""
18033 " guestfish --remote cmd [...]\n"
18034 "\n"
18035 msgstr ""
18036
18037 #. type: textblock
18038 #: ../fish/guestfish.pod:939
18039 msgid "To cause the server to exit, send it the exit command:"
18040 msgstr ""
18041
18042 #. type: textblock
18043 #: ../fish/guestfish.pod:943
18044 msgid ""
18045 "Note that the server will normally exit if there is an error in a command.  "
18046 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18047 "BEHAVIOUR>."
18048 msgstr ""
18049
18050 #. type: =head2
18051 #: ../fish/guestfish.pod:947
18052 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18053 msgstr ""
18054
18055 #. type: textblock
18056 #: ../fish/guestfish.pod:949
18057 msgid ""
18058 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18059 "is how the I<--remote> option knows where to send the commands.  You can "
18060 "have several guestfish listener processes running using:"
18061 msgstr ""
18062
18063 #. type: verbatim
18064 #: ../fish/guestfish.pod:953
18065 #, no-wrap
18066 msgid ""
18067 " eval \"`guestfish --listen`\"\n"
18068 " pid1=$GUESTFISH_PID\n"
18069 " eval \"`guestfish --listen`\"\n"
18070 " pid2=$GUESTFISH_PID\n"
18071 " ...\n"
18072 " guestfish --remote=$pid1 cmd\n"
18073 " guestfish --remote=$pid2 cmd\n"
18074 "\n"
18075 msgstr ""
18076
18077 #. type: =head2
18078 #: ../fish/guestfish.pod:961
18079 msgid "REMOTE CONTROL AND CSH"
18080 msgstr ""
18081
18082 #. type: textblock
18083 #: ../fish/guestfish.pod:963
18084 msgid ""
18085 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18086 "option:"
18087 msgstr ""
18088
18089 #. type: verbatim
18090 #: ../fish/guestfish.pod:966
18091 #, no-wrap
18092 msgid ""
18093 " eval \"`guestfish --listen --csh`\"\n"
18094 "\n"
18095 msgstr ""
18096
18097 #. type: =head2
18098 #: ../fish/guestfish.pod:968
18099 msgid "REMOTE CONTROL DETAILS"
18100 msgstr ""
18101
18102 #. type: textblock
18103 #: ../fish/guestfish.pod:970
18104 msgid ""
18105 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
18106 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
18107 "and C<$PID> is the process ID of the server."
18108 msgstr ""
18109
18110 #. type: textblock
18111 #: ../fish/guestfish.pod:974
18112 msgid "Guestfish client and server versions must match exactly."
18113 msgstr ""
18114
18115 #. type: =head2
18116 #: ../fish/guestfish.pod:976
18117 msgid "REMOTE CONTROL RUN COMMAND HANGING"
18118 msgstr ""
18119
18120 #. type: textblock
18121 #: ../fish/guestfish.pod:978
18122 msgid ""
18123 "Using the C<run> (or C<launch>) command remotely in a command substitution "
18124 "context hangs, ie. don't do (note the backquotes):"
18125 msgstr ""
18126
18127 #. type: verbatim
18128 #: ../fish/guestfish.pod:981
18129 #, no-wrap
18130 msgid ""
18131 " a=`guestfish --remote run`\n"
18132 "\n"
18133 msgstr ""
18134
18135 #. type: textblock
18136 #: ../fish/guestfish.pod:983
18137 msgid ""
18138 "Since the C<run> command produces no output on stdout, this is not useful "
18139 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
18140 "cgi?id=592910>."
18141 msgstr ""
18142
18143 #. type: =head1
18144 #: ../fish/guestfish.pod:987
18145 msgid "PREPARED DISK IMAGES"
18146 msgstr ""
18147
18148 #. type: textblock
18149 #: ../fish/guestfish.pod:989
18150 msgid ""
18151 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18152 "preformatted disk images that guestfish can make for you to save typing.  "
18153 "This is particularly useful for testing purposes.  This option is used "
18154 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18155 "can be mixed with I<-a>)."
18156 msgstr ""
18157
18158 #. type: textblock
18159 #: ../fish/guestfish.pod:995
18160 msgid ""
18161 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
18162 "the second and so on.  Existing files in the current directory are "
18163 "I<overwritten>."
18164 msgstr ""
18165
18166 #. type: textblock
18167 #: ../fish/guestfish.pod:999
18168 msgid ""
18169 "The type briefly describes how the disk should be sized, partitioned, how "
18170 "filesystem(s) should be created, and how content should be added.  "
18171 "Optionally the type can be followed by extra parameters, separated by C<:> "
18172 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
18173 "allocated disk, containing a single partition, with the partition formatted "
18174 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
18175 "disk instead."
18176 msgstr ""
18177
18178 #. type: textblock
18179 #: ../fish/guestfish.pod:1007
18180 msgid "To list the available types and any extra parameters they take, run:"
18181 msgstr ""
18182
18183 #. type: textblock
18184 #: ../fish/guestfish.pod:1011
18185 msgid ""
18186 "Note that the prepared filesystem is not mounted.  You would usually have to "
18187 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
18188 msgstr ""
18189
18190 #. type: textblock
18191 #: ../fish/guestfish.pod:1015
18192 msgid ""
18193 "If any I<-N> or I<--new> options are given, the guest is automatically "
18194 "launched."
18195 msgstr ""
18196
18197 #. type: textblock
18198 #: ../fish/guestfish.pod:1020
18199 msgid "Create a 100MB disk with an ext4-formatted partition:"
18200 msgstr ""
18201
18202 #. type: verbatim
18203 #: ../fish/guestfish.pod:1022
18204 #, no-wrap
18205 msgid ""
18206 " guestfish -N fs:ext4\n"
18207 "\n"
18208 msgstr ""
18209
18210 #. type: textblock
18211 #: ../fish/guestfish.pod:1024
18212 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
18213 msgstr ""
18214
18215 #. type: verbatim
18216 #: ../fish/guestfish.pod:1026
18217 #, no-wrap
18218 msgid ""
18219 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
18220 "\n"
18221 msgstr ""
18222
18223 #. type: textblock
18224 #: ../fish/guestfish.pod:1028
18225 msgid "Create a blank 200MB disk:"
18226 msgstr ""
18227
18228 #. type: verbatim
18229 #: ../fish/guestfish.pod:1030
18230 #, no-wrap
18231 msgid ""
18232 " guestfish -N disk:200M\n"
18233 "\n"
18234 msgstr ""
18235
18236 #. type: =head1
18237 #: ../fish/guestfish.pod:1032
18238 msgid "PROGRESS BARS"
18239 msgstr ""
18240
18241 #. type: textblock
18242 #: ../fish/guestfish.pod:1034
18243 msgid ""
18244 "Some (not all) long-running commands send progress notification messages as "
18245 "they are running.  Guestfish turns these messages into progress bars."
18246 msgstr ""
18247
18248 #. type: textblock
18249 #: ../fish/guestfish.pod:1038
18250 msgid ""
18251 "When a command that supports progress bars takes longer than two seconds to "
18252 "run, and if progress bars are enabled, then you will see one appearing below "
18253 "the command:"
18254 msgstr ""
18255
18256 #. type: verbatim
18257 #: ../fish/guestfish.pod:1042
18258 #, no-wrap
18259 msgid ""
18260 " ><fs> copy-size /large-file /another-file 2048M\n"
18261 " / 10% [#####-----------------------------------------] 00:30\n"
18262 "\n"
18263 msgstr ""
18264
18265 #. type: textblock
18266 #: ../fish/guestfish.pod:1045
18267 msgid ""
18268 "The spinner on the left hand side moves round once for every progress "
18269 "notification received from the backend.  This is a (reasonably) golden "
18270 "assurance that the command is \"doing something\" even if the progress bar "
18271 "is not moving, because the command is able to send the progress "
18272 "notifications.  When the bar reaches 100% and the command finishes, the "
18273 "spinner disappears."
18274 msgstr ""
18275
18276 #. type: textblock
18277 #: ../fish/guestfish.pod:1052
18278 msgid ""
18279 "Progress bars are enabled by default when guestfish is used interactively.  "
18280 "You can enable them even for non-interactive modes using I<--progress-bars>, "
18281 "and you can disable them completely using I<--no-progress-bars>."
18282 msgstr ""
18283
18284 #. type: =head1
18285 #: ../fish/guestfish.pod:1057
18286 msgid "GUESTFISH COMMANDS"
18287 msgstr ""
18288
18289 #. type: textblock
18290 #: ../fish/guestfish.pod:1059
18291 msgid ""
18292 "The commands in this section are guestfish convenience commands, in other "
18293 "words, they are not part of the L<guestfs(3)> API."
18294 msgstr ""
18295
18296 #. type: =head2
18297 #: ../fish/guestfish.pod:1062
18298 msgid "help"
18299 msgstr ""
18300
18301 #. type: verbatim
18302 #: ../fish/guestfish.pod:1064
18303 #, no-wrap
18304 msgid ""
18305 " help\n"
18306 " help cmd\n"
18307 "\n"
18308 msgstr ""
18309
18310 #. type: textblock
18311 #: ../fish/guestfish.pod:1067
18312 msgid "Without any parameter, this provides general help."
18313 msgstr ""
18314
18315 #. type: textblock
18316 #: ../fish/guestfish.pod:1069
18317 msgid "With a C<cmd> parameter, this displays detailed help for that command."
18318 msgstr ""
18319
18320 #. type: =head2
18321 #: ../fish/guestfish.pod:1071
18322 msgid "quit | exit"
18323 msgstr ""
18324
18325 #. type: textblock
18326 #: ../fish/guestfish.pod:1073
18327 msgid "This exits guestfish.  You can also use C<^D> key."
18328 msgstr ""
18329
18330 #. type: textblock
18331 #: ../fish/guestfish.pod:1075
18332 msgid "@FISH_COMMANDS@"
18333 msgstr ""
18334
18335 #. type: =head1
18336 #: ../fish/guestfish.pod:1077
18337 msgid "COMMANDS"
18338 msgstr ""
18339
18340 #. type: textblock
18341 #: ../fish/guestfish.pod:1079 ../src/guestfs.pod:1474
18342 msgid "@ACTIONS@"
18343 msgstr ""
18344
18345 #. type: textblock
18346 #: ../fish/guestfish.pod:1083
18347 msgid ""
18348 "guestfish returns 0 if the commands completed without error, or 1 if there "
18349 "was an error."
18350 msgstr ""
18351
18352 #. type: =item
18353 #: ../fish/guestfish.pod:1090
18354 msgid "EDITOR"
18355 msgstr ""
18356
18357 #. type: textblock
18358 #: ../fish/guestfish.pod:1092
18359 msgid ""
18360 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
18361 "C<vi>."
18362 msgstr ""
18363
18364 #. type: =item
18365 #: ../fish/guestfish.pod:1095 ../src/guestfs.pod:3062
18366 msgid "FEBOOTSTRAP_KERNEL"
18367 msgstr ""
18368
18369 #. type: =item
18370 #: ../fish/guestfish.pod:1097 ../src/guestfs.pod:3064
18371 msgid "FEBOOTSTRAP_MODULES"
18372 msgstr ""
18373
18374 #. type: textblock
18375 #: ../fish/guestfish.pod:1099 ../src/guestfs.pod:3066
18376 msgid ""
18377 "These two environment variables allow the kernel that libguestfs uses in the "
18378 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
18379 "most recent host kernel is chosen.  For more information about kernel "
18380 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
18381 "available in febootstrap E<ge> 3.8."
18382 msgstr ""
18383
18384 #. type: =item
18385 #: ../fish/guestfish.pod:1105
18386 msgid "GUESTFISH_DISPLAY_IMAGE"
18387 msgstr ""
18388
18389 #. type: textblock
18390 #: ../fish/guestfish.pod:1107
18391 msgid ""
18392 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
18393 "If not set, it uses L<display(1)>."
18394 msgstr ""
18395
18396 #. type: =item
18397 #: ../fish/guestfish.pod:1110
18398 msgid "GUESTFISH_PID"
18399 msgstr ""
18400
18401 #. type: textblock
18402 #: ../fish/guestfish.pod:1112
18403 msgid ""
18404 "Used with the I<--remote> option to specify the remote guestfish process to "
18405 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
18406 msgstr ""
18407
18408 #. type: =item
18409 #: ../fish/guestfish.pod:1116
18410 msgid "HEXEDITOR"
18411 msgstr ""
18412
18413 #. type: textblock
18414 #: ../fish/guestfish.pod:1118
18415 msgid ""
18416 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
18417 "not specified, the external L<hexedit(1)> program is used."
18418 msgstr ""
18419
18420 #. type: =item
18421 #: ../fish/guestfish.pod:1122
18422 msgid "HOME"
18423 msgstr ""
18424
18425 #. type: textblock
18426 #: ../fish/guestfish.pod:1124
18427 msgid ""
18428 "If compiled with GNU readline support, various files in the home directory "
18429 "can be used.  See L</FILES>."
18430 msgstr ""
18431
18432 #. type: =item
18433 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:3072
18434 msgid "LIBGUESTFS_APPEND"
18435 msgstr ""
18436
18437 #. type: textblock
18438 #: ../fish/guestfish.pod:1129 ../src/guestfs.pod:3074
18439 msgid "Pass additional options to the guest kernel."
18440 msgstr ""
18441
18442 #. type: =item
18443 #: ../fish/guestfish.pod:1131 ../src/guestfs.pod:3076
18444 msgid "LIBGUESTFS_DEBUG"
18445 msgstr ""
18446
18447 #. type: textblock
18448 #: ../fish/guestfish.pod:1133
18449 msgid ""
18450 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
18451 "effect as using the B<-v> option."
18452 msgstr ""
18453
18454 #. type: =item
18455 #: ../fish/guestfish.pod:1136 ../src/guestfs.pod:3081
18456 msgid "LIBGUESTFS_MEMSIZE"
18457 msgstr ""
18458
18459 #. type: textblock
18460 #: ../fish/guestfish.pod:1138 ../src/guestfs.pod:3083
18461 msgid ""
18462 "Set the memory allocated to the qemu process, in megabytes.  For example:"
18463 msgstr ""
18464
18465 #. type: verbatim
18466 #: ../fish/guestfish.pod:1141 ../src/guestfs.pod:3086
18467 #, no-wrap
18468 msgid ""
18469 " LIBGUESTFS_MEMSIZE=700\n"
18470 "\n"
18471 msgstr ""
18472
18473 #. type: =item
18474 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:3088
18475 msgid "LIBGUESTFS_PATH"
18476 msgstr ""
18477
18478 #. type: textblock
18479 #: ../fish/guestfish.pod:1145
18480 msgid ""
18481 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
18482 "the discussion of paths in L<guestfs(3)>."
18483 msgstr ""
18484
18485 #. type: =item
18486 #: ../fish/guestfish.pod:1148 ../src/guestfs.pod:3093
18487 msgid "LIBGUESTFS_QEMU"
18488 msgstr ""
18489
18490 #. type: textblock
18491 #: ../fish/guestfish.pod:1150 ../src/guestfs.pod:3095
18492 msgid ""
18493 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
18494 "which was found at compile time by the configure script is used."
18495 msgstr ""
18496
18497 #. type: =item
18498 #: ../fish/guestfish.pod:1154 ../src/guestfs.pod:3101
18499 msgid "LIBGUESTFS_TRACE"
18500 msgstr ""
18501
18502 #. type: textblock
18503 #: ../fish/guestfish.pod:1156
18504 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
18505 msgstr ""
18506
18507 #. type: =item
18508 #: ../fish/guestfish.pod:1158
18509 msgid "PAGER"
18510 msgstr ""
18511
18512 #. type: textblock
18513 #: ../fish/guestfish.pod:1160
18514 msgid ""
18515 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
18516 "C<more>."
18517 msgstr ""
18518
18519 #. type: =item
18520 #: ../fish/guestfish.pod:1163 ../src/guestfs.pod:3106
18521 msgid "TMPDIR"
18522 msgstr ""
18523
18524 #. type: textblock
18525 #: ../fish/guestfish.pod:1165 ../src/guestfs.pod:3108
18526 msgid ""
18527 "Location of temporary directory, defaults to C</tmp> except for the cached "
18528 "supermin appliance which defaults to C</var/tmp>."
18529 msgstr ""
18530
18531 #. type: textblock
18532 #: ../fish/guestfish.pod:1168 ../src/guestfs.pod:3111
18533 msgid ""
18534 "If libguestfs was compiled to use the supermin appliance then the real "
18535 "appliance is cached in this directory, shared between all handles belonging "
18536 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
18537 "use in case C</var/tmp> is not large enough."
18538 msgstr ""
18539
18540 #. type: =head1
18541 #: ../fish/guestfish.pod:1176 ../fuse/guestmount.pod:288
18542 #: ../rescue/virt-rescue.pod:269
18543 msgid "FILES"
18544 msgstr ""
18545
18546 #. type: =item
18547 #: ../fish/guestfish.pod:1180 ../fuse/guestmount.pod:292
18548 #: ../rescue/virt-rescue.pod:273
18549 msgid "$HOME/.libguestfs-tools.rc"
18550 msgstr ""
18551
18552 #. type: =item
18553 #: ../fish/guestfish.pod:1182 ../fuse/guestmount.pod:294
18554 #: ../rescue/virt-rescue.pod:275
18555 msgid "/etc/libguestfs-tools.conf"
18556 msgstr ""
18557
18558 #. type: textblock
18559 #: ../fish/guestfish.pod:1184 ../fuse/guestmount.pod:296
18560 #: ../rescue/virt-rescue.pod:277
18561 msgid ""
18562 "This configuration file controls the default read-only or read-write mode "
18563 "(I<--ro> or I<--rw>)."
18564 msgstr ""
18565
18566 #. type: textblock
18567 #: ../fish/guestfish.pod:1187
18568 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
18569 msgstr ""
18570
18571 #. type: =item
18572 #: ../fish/guestfish.pod:1189
18573 msgid "$HOME/.guestfish"
18574 msgstr ""
18575
18576 #. type: textblock
18577 #: ../fish/guestfish.pod:1191
18578 msgid ""
18579 "If compiled with GNU readline support, then the command history is saved in "
18580 "this file."
18581 msgstr ""
18582
18583 #. type: =item
18584 #: ../fish/guestfish.pod:1194
18585 msgid "$HOME/.inputrc"
18586 msgstr ""
18587
18588 #. type: =item
18589 #: ../fish/guestfish.pod:1196
18590 msgid "/etc/inputrc"
18591 msgstr ""
18592
18593 #. type: textblock
18594 #: ../fish/guestfish.pod:1198
18595 msgid ""
18596 "If compiled with GNU readline support, then these files can be used to "
18597 "configure readline.  For further information, please see L<readline(3)/"
18598 "INITIALIZATION FILE>."
18599 msgstr ""
18600
18601 #. type: textblock
18602 #: ../fish/guestfish.pod:1202
18603 msgid "To write rules which only apply to guestfish, use:"
18604 msgstr ""
18605
18606 #. type: verbatim
18607 #: ../fish/guestfish.pod:1204
18608 #, no-wrap
18609 msgid ""
18610 " $if guestfish\n"
18611 " ...\n"
18612 " $endif\n"
18613 "\n"
18614 msgstr ""
18615
18616 #. type: textblock
18617 #: ../fish/guestfish.pod:1208
18618 msgid ""
18619 "Variables that you can set in inputrc that change the behaviour of guestfish "
18620 "in useful ways include:"
18621 msgstr ""
18622
18623 #. type: =item
18624 #: ../fish/guestfish.pod:1213
18625 msgid "completion-ignore-case (default: on)"
18626 msgstr ""
18627
18628 #. type: textblock
18629 #: ../fish/guestfish.pod:1215
18630 msgid ""
18631 "By default, guestfish will ignore case when tab-completing paths on the "
18632 "disk.  Use:"
18633 msgstr ""
18634
18635 #. type: verbatim
18636 #: ../fish/guestfish.pod:1218
18637 #, no-wrap
18638 msgid ""
18639 " set completion-ignore-case off\n"
18640 "\n"
18641 msgstr ""
18642
18643 #. type: textblock
18644 #: ../fish/guestfish.pod:1220
18645 msgid "to make guestfish case sensitive."
18646 msgstr ""
18647
18648 #. type: =item
18649 #: ../fish/guestfish.pod:1224
18650 msgid "test1.img"
18651 msgstr ""
18652
18653 #. type: =item
18654 #: ../fish/guestfish.pod:1226
18655 msgid "test2.img (etc)"
18656 msgstr ""
18657
18658 #. type: textblock
18659 #: ../fish/guestfish.pod:1228
18660 msgid ""
18661 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
18662 "will be created in the file C<test1.img> in the current directory.  The "
18663 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
18664 "the same name will be overwritten."
18665 msgstr ""
18666
18667 #. type: textblock
18668 #: ../fish/guestfish.pod:1237
18669 msgid ""
18670 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
18671 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
18672 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
18673 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
18674 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
18675 ">, L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
18676 msgstr ""
18677
18678 #. type: textblock
18679 #: ../fish/guestfish.pod:1266 ../src/guestfs.pod:3197
18680 #: ../test-tool/libguestfs-test-tool.pod:112
18681 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
18682 msgstr ""
18683
18684 #. type: textblock
18685 #: ../fish/virt-copy-in.pod:5
18686 msgid ""
18687 "virt-copy-in - Copy files and directories into a virtual machine disk image."
18688 msgstr ""
18689
18690 #. type: verbatim
18691 #: ../fish/virt-copy-in.pod:9
18692 #, no-wrap
18693 msgid ""
18694 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
18695 "\n"
18696 msgstr ""
18697
18698 #. type: verbatim
18699 #: ../fish/virt-copy-in.pod:11
18700 #, no-wrap
18701 msgid ""
18702 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
18703 "\n"
18704 msgstr ""
18705
18706 #. type: textblock
18707 #: ../fish/virt-copy-in.pod:15
18708 msgid ""
18709 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
18710 "causing disk corruption.  The virtual machine must be shut down before you "
18711 "use this command."
18712 msgstr ""
18713
18714 #. type: textblock
18715 #: ../fish/virt-copy-in.pod:21
18716 msgid ""
18717 "C<virt-copy-in> copies files and directories from the local disk into a "
18718 "virtual machine disk image or named libvirt domain."
18719 msgstr ""
18720
18721 #. type: textblock
18722 #: ../fish/virt-copy-in.pod:24
18723 msgid ""
18724 "You can give one of more filenames and directories on the command line.  "
18725 "Directories are copied in recursively.  The final parameter must be the "
18726 "destination directory in the disk image which must be an absolute path "
18727 "starting with a C</> character."
18728 msgstr ""
18729
18730 #. type: verbatim
18731 #: ../fish/virt-copy-in.pod:33
18732 #, no-wrap
18733 msgid ""
18734 " virt-copy-in -d MyGuest resolv.conf /etc\n"
18735 "\n"
18736 msgstr ""
18737
18738 #. type: textblock
18739 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
18740 msgid "Upload a home directory to a guest:"
18741 msgstr ""
18742
18743 #. type: verbatim
18744 #: ../fish/virt-copy-in.pod:37
18745 #, no-wrap
18746 msgid ""
18747 " virt-copy-in -d MyGuest skel /home\n"
18748 "\n"
18749 msgstr ""
18750
18751 #. type: =head1
18752 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
18753 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
18754 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
18755 msgstr ""
18756
18757 #. type: textblock
18758 #: ../fish/virt-copy-in.pod:41
18759 msgid ""
18760 "This command is just a simple shell script wrapper around the L<guestfish(1)"
18761 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
18762 "are probably better off using guestfish directly."
18763 msgstr ""
18764
18765 #. type: textblock
18766 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
18767 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
18768 msgid ""
18769 "Since the shell script just passes options straight to guestfish, read "
18770 "L<guestfish(1)> to see the full list of options."
18771 msgstr ""
18772
18773 #. type: textblock
18774 #: ../fish/virt-copy-in.pod:52
18775 msgid ""
18776 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
18777 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
18778 msgstr ""
18779
18780 #. type: textblock
18781 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
18782 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
18783 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
18784 msgstr ""
18785
18786 #. type: textblock
18787 #: ../fish/virt-copy-out.pod:5
18788 msgid ""
18789 "virt-copy-out - Copy files and directories out of a virtual machine disk "
18790 "image."
18791 msgstr ""
18792
18793 #. type: verbatim
18794 #: ../fish/virt-copy-out.pod:9
18795 #, no-wrap
18796 msgid ""
18797 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
18798 "\n"
18799 msgstr ""
18800
18801 #. type: verbatim
18802 #: ../fish/virt-copy-out.pod:11
18803 #, no-wrap
18804 msgid ""
18805 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
18806 "\n"
18807 msgstr ""
18808
18809 #. type: textblock
18810 #: ../fish/virt-copy-out.pod:15
18811 msgid ""
18812 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
18813 "image or named libvirt domain."
18814 msgstr ""
18815
18816 #. type: textblock
18817 #: ../fish/virt-copy-out.pod:18
18818 msgid ""
18819 "You can give one of more filenames and directories on the command line.  "
18820 "Directories are copied out recursively."
18821 msgstr ""
18822
18823 #. type: textblock
18824 #: ../fish/virt-copy-out.pod:23
18825 msgid "Download the home directories from a virtual machine:"
18826 msgstr ""
18827
18828 #. type: verbatim
18829 #: ../fish/virt-copy-out.pod:25
18830 #, no-wrap
18831 msgid ""
18832 " mkdir homes\n"
18833 " virt-copy-out -d MyGuest /home homes\n"
18834 "\n"
18835 msgstr ""
18836
18837 #. type: textblock
18838 #: ../fish/virt-copy-out.pod:30
18839 msgid ""
18840 "This command is just a simple shell script wrapper around the L<guestfish(1)"
18841 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
18842 "are probably better off using guestfish directly."
18843 msgstr ""
18844
18845 #. type: textblock
18846 #: ../fish/virt-copy-out.pod:41
18847 msgid ""
18848 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
18849 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
18850 msgstr ""
18851
18852 #. type: textblock
18853 #: ../fish/virt-tar-in.pod:5
18854 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
18855 msgstr ""
18856
18857 #. type: verbatim
18858 #: ../fish/virt-tar-in.pod:9
18859 #, no-wrap
18860 msgid ""
18861 " virt-tar-in -a disk.img data.tar /destination\n"
18862 "\n"
18863 msgstr ""
18864
18865 #. type: verbatim
18866 #: ../fish/virt-tar-in.pod:11
18867 #, no-wrap
18868 msgid ""
18869 " virt-tar-in -d domain data.tar /destination\n"
18870 "\n"
18871 msgstr ""
18872
18873 #. type: verbatim
18874 #: ../fish/virt-tar-in.pod:13
18875 #, no-wrap
18876 msgid ""
18877 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
18878 "\n"
18879 msgstr ""
18880
18881 #. type: textblock
18882 #: ../fish/virt-tar-in.pod:17
18883 msgid ""
18884 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
18885 "causing disk corruption.  The virtual machine must be shut down before you "
18886 "use this command."
18887 msgstr ""
18888
18889 #. type: textblock
18890 #: ../fish/virt-tar-in.pod:23
18891 msgid ""
18892 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
18893 "image or named libvirt domain."
18894 msgstr ""
18895
18896 #. type: textblock
18897 #: ../fish/virt-tar-in.pod:26
18898 msgid ""
18899 "The first parameter is the tar file.  Use C<-> to read the tar file from "
18900 "standard input.  The second parameter is the absolute target directory to "
18901 "unpack into."
18902 msgstr ""
18903
18904 #. type: verbatim
18905 #: ../fish/virt-tar-in.pod:34
18906 #, no-wrap
18907 msgid ""
18908 " virt-tar-in -d MyGuest homes.tar /home\n"
18909 "\n"
18910 msgstr ""
18911
18912 #. type: textblock
18913 #: ../fish/virt-tar-in.pod:38
18914 msgid ""
18915 "This command is just a simple shell script wrapper around the L<guestfish(1)"
18916 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
18917 "probably better off using guestfish directly."
18918 msgstr ""
18919
18920 #. type: textblock
18921 #: ../fish/virt-tar-in.pod:49
18922 msgid ""
18923 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
18924 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
18925 "org/>."
18926 msgstr ""
18927
18928 #. type: textblock
18929 #: ../fish/virt-tar-out.pod:5
18930 msgid ""
18931 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
18932 msgstr ""
18933
18934 #. type: verbatim
18935 #: ../fish/virt-tar-out.pod:9
18936 #, no-wrap
18937 msgid ""
18938 " virt-tar-out -a disk.img /dir files.tar\n"
18939 "\n"
18940 msgstr ""
18941
18942 #. type: verbatim
18943 #: ../fish/virt-tar-out.pod:11
18944 #, no-wrap
18945 msgid ""
18946 " virt-tar-out -d domain /dir files.tar\n"
18947 "\n"
18948 msgstr ""
18949
18950 #. type: verbatim
18951 #: ../fish/virt-tar-out.pod:13
18952 #, no-wrap
18953 msgid ""
18954 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
18955 "\n"
18956 msgstr ""
18957
18958 #. type: textblock
18959 #: ../fish/virt-tar-out.pod:17
18960 msgid ""
18961 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
18962 msgstr ""
18963
18964 #. type: textblock
18965 #: ../fish/virt-tar-out.pod:20
18966 msgid ""
18967 "The first parameter is the absolute path of the virtual machine directory.  "
18968 "The second parameter is the tar file to write.  Use C<-> to write to "
18969 "standard output."
18970 msgstr ""
18971
18972 #. type: textblock
18973 #: ../fish/virt-tar-out.pod:26
18974 msgid "Download the home directories from a guest:"
18975 msgstr ""
18976
18977 #. type: verbatim
18978 #: ../fish/virt-tar-out.pod:28
18979 #, no-wrap
18980 msgid ""
18981 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
18982 "\n"
18983 msgstr ""
18984
18985 #. type: textblock
18986 #: ../fish/virt-tar-out.pod:32
18987 msgid ""
18988 "This command is just a simple shell script wrapper around the L<guestfish(1)"
18989 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
18990 "are probably better off using guestfish directly."
18991 msgstr ""
18992
18993 #. type: textblock
18994 #: ../fish/virt-tar-out.pod:43
18995 msgid ""
18996 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
18997 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
18998 msgstr ""
18999
19000 #. type: textblock
19001 #: ../fuse/guestmount.pod:5
19002 msgid ""
19003 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
19004 msgstr ""
19005
19006 #. type: verbatim
19007 #: ../fuse/guestmount.pod:9
19008 #, no-wrap
19009 msgid ""
19010 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
19011 "\n"
19012 msgstr ""
19013
19014 #. type: verbatim
19015 #: ../fuse/guestmount.pod:11
19016 #, no-wrap
19017 msgid ""
19018 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
19019 "\n"
19020 msgstr ""
19021
19022 #. type: verbatim
19023 #: ../fuse/guestmount.pod:13
19024 #, no-wrap
19025 msgid ""
19026 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
19027 "\n"
19028 msgstr ""
19029
19030 #. type: textblock
19031 #: ../fuse/guestmount.pod:17
19032 msgid ""
19033 "You must I<not> use C<guestmount> in read-write mode on live virtual "
19034 "machines.  If you do this, you risk disk corruption in the VM."
19035 msgstr ""
19036
19037 #. type: textblock
19038 #: ../fuse/guestmount.pod:22
19039 msgid ""
19040 "The guestmount program can be used to mount virtual machine filesystems and "
19041 "other disk images on the host.  It uses libguestfs for access to the guest "
19042 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
19043 "a mountable device."
19044 msgstr ""
19045
19046 #. type: textblock
19047 #: ../fuse/guestmount.pod:27
19048 msgid ""
19049 "Along with other options, you have to give at least one device (I<-a> "
19050 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
19051 "option) or use the I<-i> inspection option.  How this works is better "
19052 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
19053 "below."
19054 msgstr ""
19055
19056 #. type: textblock
19057 #: ../fuse/guestmount.pod:33
19058 msgid ""
19059 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
19060 "by you, and the filesystem will not be visible to any other users unless you "
19061 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
19062 "the filesystem, use the C<fusermount -u> command."
19063 msgstr ""
19064
19065 #. type: textblock
19066 #: ../fuse/guestmount.pod:41
19067 msgid ""
19068 "For a typical Windows guest which has its main filesystem on the first "
19069 "partition:"
19070 msgstr ""
19071
19072 #. type: verbatim
19073 #: ../fuse/guestmount.pod:44
19074 #, no-wrap
19075 msgid ""
19076 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
19077 "\n"
19078 msgstr ""
19079
19080 #. type: textblock
19081 #: ../fuse/guestmount.pod:46
19082 msgid ""
19083 "For a typical Linux guest which has a /boot filesystem on the first "
19084 "partition, and the root filesystem on a logical volume:"
19085 msgstr ""
19086
19087 #. type: verbatim
19088 #: ../fuse/guestmount.pod:49
19089 #, no-wrap
19090 msgid ""
19091 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
19092 "\n"
19093 msgstr ""
19094
19095 #. type: textblock
19096 #: ../fuse/guestmount.pod:51
19097 msgid "To get libguestfs to detect guest mountpoints for you:"
19098 msgstr ""
19099
19100 #. type: verbatim
19101 #: ../fuse/guestmount.pod:53
19102 #, no-wrap
19103 msgid ""
19104 " guestmount -a guest.img -i --ro /mnt\n"
19105 "\n"
19106 msgstr ""
19107
19108 #. type: textblock
19109 #: ../fuse/guestmount.pod:55
19110 msgid "For a libvirt guest called \"Guest\" you could do:"
19111 msgstr ""
19112
19113 #. type: verbatim
19114 #: ../fuse/guestmount.pod:57
19115 #, no-wrap
19116 msgid ""
19117 " guestmount -d Guest -i --ro /mnt\n"
19118 "\n"
19119 msgstr ""
19120
19121 #. type: textblock
19122 #: ../fuse/guestmount.pod:59
19123 msgid ""
19124 "If you don't know what filesystems are contained in a guest or disk image, "
19125 "use L<virt-filesystems(1)> first:"
19126 msgstr ""
19127
19128 #. type: verbatim
19129 #: ../fuse/guestmount.pod:62
19130 #, no-wrap
19131 msgid ""
19132 " virt-filesystems MyGuest\n"
19133 "\n"
19134 msgstr ""
19135
19136 #. type: textblock
19137 #: ../fuse/guestmount.pod:64
19138 msgid ""
19139 "If you want to trace the libguestfs calls but without excessive debugging "
19140 "information, we recommend:"
19141 msgstr ""
19142
19143 #. type: verbatim
19144 #: ../fuse/guestmount.pod:67
19145 #, no-wrap
19146 msgid ""
19147 " guestmount [...] --trace /mnt\n"
19148 "\n"
19149 msgstr ""
19150
19151 #. type: textblock
19152 #: ../fuse/guestmount.pod:69
19153 msgid "If you want to debug the program, we recommend:"
19154 msgstr ""
19155
19156 #. type: verbatim
19157 #: ../fuse/guestmount.pod:71
19158 #, no-wrap
19159 msgid ""
19160 " guestmount [...] --trace --verbose /mnt\n"
19161 "\n"
19162 msgstr ""
19163
19164 #. type: =head1
19165 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
19166 #: ../resize/virt-resize.pod:511
19167 msgid "NOTES"
19168 msgstr ""
19169
19170 #. type: =head2
19171 #: ../fuse/guestmount.pod:75
19172 msgid "Other users cannot see the filesystem by default"
19173 msgstr ""
19174
19175 #. type: textblock
19176 #: ../fuse/guestmount.pod:77
19177 msgid ""
19178 "If you mount a filesystem as one user (eg. root), then other users will not "
19179 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
19180 "option when mounting:"
19181 msgstr ""
19182
19183 #. type: verbatim
19184 #: ../fuse/guestmount.pod:81
19185 #, no-wrap
19186 msgid ""
19187 " sudo guestmount [...] -o allow_other /mnt\n"
19188 "\n"
19189 msgstr ""
19190
19191 #. type: textblock
19192 #: ../fuse/guestmount.pod:91
19193 msgid "Add a block device or virtual machine image."
19194 msgstr ""
19195
19196 #. type: =item
19197 #: ../fuse/guestmount.pod:114
19198 msgid "B<--dir-cache-timeout N>"
19199 msgstr ""
19200
19201 #. type: textblock
19202 #: ../fuse/guestmount.pod:116
19203 msgid ""
19204 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
19205 "seconds.  The readdir cache [actually, there are several semi-independent "
19206 "caches] is populated after a readdir(2) call with the stat and extended "
19207 "attributes of the files in the directory, in anticipation that they will be "
19208 "requested soon after."
19209 msgstr ""
19210
19211 #. type: textblock
19212 #: ../fuse/guestmount.pod:122
19213 msgid ""
19214 "There is also a different attribute cache implemented by FUSE (see the FUSE "
19215 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
19216 "requests, only cache existing ones."
19217 msgstr ""
19218
19219 #. type: textblock
19220 #: ../fuse/guestmount.pod:142
19221 msgid ""
19222 "If you have untrusted raw-format guest disk images, you should use this "
19223 "option to specify the disk format.  This avoids a possible security problem "
19224 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
19225 "guestfs_add_drive_opts>."
19226 msgstr ""
19227
19228 #. type: =item
19229 #: ../fuse/guestmount.pod:147
19230 msgid "B<--fuse-help>"
19231 msgstr ""
19232
19233 #. type: textblock
19234 #: ../fuse/guestmount.pod:149
19235 msgid "Display help on special FUSE options (see I<-o> below)."
19236 msgstr ""
19237
19238 #. type: textblock
19239 #: ../fuse/guestmount.pod:153
19240 msgid "Display brief help and exit."
19241 msgstr ""
19242
19243 #. type: textblock
19244 #: ../fuse/guestmount.pod:177
19245 msgid ""
19246 "Mount the named partition or logical volume on the given mountpoint B<in the "
19247 "guest> (this has nothing to do with mountpoints in the host)."
19248 msgstr ""
19249
19250 #. type: textblock
19251 #: ../fuse/guestmount.pod:180
19252 msgid ""
19253 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
19254 "something on C</>."
19255 msgstr ""
19256
19257 #. type: textblock
19258 #: ../fuse/guestmount.pod:197
19259 msgid ""
19260 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
19261 "unmounted.  If you specify this option, then we don't attempt to sync the "
19262 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
19263 msgstr ""
19264
19265 #. type: =item
19266 #: ../fuse/guestmount.pod:202
19267 msgid "B<-o option>"
19268 msgstr ""
19269
19270 #. type: =item
19271 #: ../fuse/guestmount.pod:204
19272 msgid "B<--option option>"
19273 msgstr ""
19274
19275 #. type: textblock
19276 #: ../fuse/guestmount.pod:206
19277 msgid "Pass extra options to FUSE."
19278 msgstr ""
19279
19280 #. type: textblock
19281 #: ../fuse/guestmount.pod:208
19282 msgid ""
19283 "To get a list of all the extra options supported by FUSE, use the command "
19284 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
19285 "of them are a good idea."
19286 msgstr ""
19287
19288 #. type: verbatim
19289 #: ../fuse/guestmount.pod:212
19290 #, no-wrap
19291 msgid ""
19292 " guestmount --fuse-help\n"
19293 "\n"
19294 msgstr ""
19295
19296 #. type: textblock
19297 #: ../fuse/guestmount.pod:214
19298 msgid "Some potentially useful FUSE options:"
19299 msgstr ""
19300
19301 #. type: =item
19302 #: ../fuse/guestmount.pod:218
19303 msgid "B<-o allow_other>"
19304 msgstr ""
19305
19306 #. type: textblock
19307 #: ../fuse/guestmount.pod:220
19308 msgid "Allow other users to see the filesystem."
19309 msgstr ""
19310
19311 #. type: =item
19312 #: ../fuse/guestmount.pod:222
19313 msgid "B<-o attr_timeout=N>"
19314 msgstr ""
19315
19316 #. type: textblock
19317 #: ../fuse/guestmount.pod:224
19318 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
19319 msgstr ""
19320
19321 #. type: =item
19322 #: ../fuse/guestmount.pod:226
19323 msgid "B<-o kernel_cache>"
19324 msgstr ""
19325
19326 #. type: textblock
19327 #: ../fuse/guestmount.pod:228
19328 msgid ""
19329 "Allow the kernel to cache files (reduces the number of reads that have to go "
19330 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
19331 "afford the extra memory usage."
19332 msgstr ""
19333
19334 #. type: =item
19335 #: ../fuse/guestmount.pod:232
19336 msgid "B<-o uid=N> B<-o gid=N>"
19337 msgstr ""
19338
19339 #. type: textblock
19340 #: ../fuse/guestmount.pod:234
19341 msgid ""
19342 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
19343 "the chosen values."
19344 msgstr ""
19345
19346 #. type: textblock
19347 #: ../fuse/guestmount.pod:243
19348 msgid ""
19349 "Add devices and mount everything read-only.  Also disallow writes and make "
19350 "the disk appear read-only to FUSE."
19351 msgstr ""
19352
19353 #. type: textblock
19354 #: ../fuse/guestmount.pod:246
19355 msgid ""
19356 "This is highly recommended if you are not going to edit the guest disk.  If "
19357 "the guest is running and this option is I<not> supplied, then there is a "
19358 "strong risk of disk corruption in the guest.  We try to prevent this from "
19359 "happening, but it is not always possible."
19360 msgstr ""
19361
19362 #. type: textblock
19363 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
19364 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
19365 msgstr ""
19366
19367 #. type: textblock
19368 #: ../fuse/guestmount.pod:255
19369 msgid "Enable SELinux support for the guest."
19370 msgstr ""
19371
19372 #. type: textblock
19373 #: ../fuse/guestmount.pod:261
19374 msgid "Enable verbose messages from underlying libguestfs."
19375 msgstr ""
19376
19377 #. type: textblock
19378 #: ../fuse/guestmount.pod:267
19379 msgid "Display the program version and exit."
19380 msgstr ""
19381
19382 #. type: textblock
19383 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299
19384 #: ../rescue/virt-rescue.pod:197 ../rescue/virt-rescue.pod:280
19385 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
19386 msgstr ""
19387
19388 #. type: =item
19389 #: ../fuse/guestmount.pod:280
19390 msgid "B<--trace>"
19391 msgstr ""
19392
19393 #. type: textblock
19394 #: ../fuse/guestmount.pod:282
19395 msgid "Trace libguestfs calls and entry into each FUSE function."
19396 msgstr ""
19397
19398 #. type: textblock
19399 #: ../fuse/guestmount.pod:284
19400 msgid "This also stops the daemon from forking into the background."
19401 msgstr ""
19402
19403 #. type: textblock
19404 #: ../fuse/guestmount.pod:310
19405 msgid ""
19406 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
19407 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
19408 "net/>."
19409 msgstr ""
19410
19411 #. type: textblock
19412 #: ../fuse/guestmount.pod:325
19413 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
19414 msgstr ""
19415
19416 #. type: textblock
19417 #: ../inspector/virt-inspector.pod:5
19418 msgid ""
19419 "virt-inspector - Display operating system version and other information "
19420 "about a virtual machine"
19421 msgstr ""
19422
19423 #. type: verbatim
19424 #: ../inspector/virt-inspector.pod:9
19425 #, no-wrap
19426 msgid ""
19427 " virt-inspector [--options] -d domname\n"
19428 "\n"
19429 msgstr ""
19430
19431 #. type: verbatim
19432 #: ../inspector/virt-inspector.pod:11
19433 #, no-wrap
19434 msgid ""
19435 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
19436 "\n"
19437 msgstr ""
19438
19439 #. type: verbatim
19440 #: ../inspector/virt-inspector.pod:15
19441 #, no-wrap
19442 msgid ""
19443 " virt-inspector domname\n"
19444 "\n"
19445 msgstr ""
19446
19447 #. type: verbatim
19448 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
19449 #, no-wrap
19450 msgid ""
19451 " virt-inspector disk.img [disk.img ...]\n"
19452 "\n"
19453 msgstr ""
19454
19455 #. type: textblock
19456 #: ../inspector/virt-inspector.pod:21
19457 msgid ""
19458 "B<virt-inspector> examines a virtual machine or disk image and tries to "
19459 "determine the version of the operating system and other information about "
19460 "the virtual machine."
19461 msgstr ""
19462
19463 #. type: textblock
19464 #: ../inspector/virt-inspector.pod:25
19465 msgid "Virt-inspector produces XML output for feeding into other programs."
19466 msgstr ""
19467
19468 #. type: textblock
19469 #: ../inspector/virt-inspector.pod:27
19470 msgid ""
19471 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
19472 "the libvirt domain (see: C<virsh list --all>)."
19473 msgstr ""
19474
19475 #. type: textblock
19476 #: ../inspector/virt-inspector.pod:30
19477 msgid ""
19478 "You can also run virt-inspector directly on disk images from a single "
19479 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
19480 "has several block devices, in which case you should list several I<-a> "
19481 "options one after another, with the first corresponding to the guest's C</"
19482 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
19483 msgstr ""
19484
19485 #. type: textblock
19486 #: ../inspector/virt-inspector.pod:37
19487 msgid ""
19488 "You can also run virt-inspector on install disks, live CDs, bootable USB "
19489 "keys and similar."
19490 msgstr ""
19491
19492 #. type: textblock
19493 #: ../inspector/virt-inspector.pod:40
19494 msgid ""
19495 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
19496 "inspect several virtual machines, you have to run virt-inspector several "
19497 "times (for example, from a shell script for-loop)."
19498 msgstr ""
19499
19500 #. type: textblock
19501 #: ../inspector/virt-inspector.pod:45
19502 msgid ""
19503 "Because virt-inspector needs direct access to guest images, it won't "
19504 "normally work over remote libvirt connections."
19505 msgstr ""
19506
19507 #. type: textblock
19508 #: ../inspector/virt-inspector.pod:48
19509 msgid ""
19510 "All of the information available from virt-inspector is also available "
19511 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
19512 "The same information can also be fetched using guestfish or via libguestfs "
19513 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
19514 "WITH OTHER PROGRAMMING LANGUAGES>)."
19515 msgstr ""
19516
19517 #. type: textblock
19518 #: ../inspector/virt-inspector.pod:81
19519 msgid ""
19520 "Libvirt is only used if you specify a C<domname> on the command line.  If "
19521 "you specify guest block devices directly (I<-a>), then libvirt is not used "
19522 "at all."
19523 msgstr ""
19524
19525 #. type: textblock
19526 #: ../inspector/virt-inspector.pod:94
19527 msgid ""
19528 "When prompting for keys and passphrases, virt-inspector normally turns "
19529 "echoing off so you cannot see what you are typing.  If you are not worried "
19530 "about Tempest attacks and there is no one else in the room you can specify "
19531 "this flag to see what you are typing."
19532 msgstr ""
19533
19534 #. type: textblock
19535 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
19536 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
19537 #: ../tools/virt-win-reg.pl:144
19538 msgid ""
19539 "Specify the format of disk images given on the command line.  If this is "
19540 "omitted then the format is autodetected from the content of the disk image."
19541 msgstr ""
19542
19543 #. type: textblock
19544 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
19545 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
19546 #: ../tools/virt-win-reg.pl:148
19547 msgid ""
19548 "If disk images are requested from libvirt, then this program asks libvirt "
19549 "for this information.  In this case, the value of the format parameter is "
19550 "ignored."
19551 msgstr ""
19552
19553 #. type: textblock
19554 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
19555 #: ../resize/virt-resize.pod:406 ../tools/virt-list-filesystems.pl:101
19556 #: ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151
19557 #: ../tools/virt-win-reg.pl:152
19558 msgid ""
19559 "If working with untrusted raw-format guest disk images, you should ensure "
19560 "the format is always specified."
19561 msgstr ""
19562
19563 #. type: textblock
19564 #: ../inspector/virt-inspector.pod:139
19565 msgid "Previous versions of virt-inspector allowed you to write either:"
19566 msgstr ""
19567
19568 #. type: verbatim
19569 #: ../inspector/virt-inspector.pod:145
19570 #, no-wrap
19571 msgid ""
19572 " virt-inspector guestname\n"
19573 "\n"
19574 msgstr ""
19575
19576 #. type: =head1
19577 #: ../inspector/virt-inspector.pod:153
19578 msgid "XML FORMAT"
19579 msgstr ""
19580
19581 #. type: textblock
19582 #: ../inspector/virt-inspector.pod:155
19583 msgid ""
19584 "The virt-inspector XML is described precisely in a RELAX NG schema file "
19585 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
19586 "just an overview."
19587 msgstr ""
19588
19589 #. type: textblock
19590 #: ../inspector/virt-inspector.pod:159
19591 msgid ""
19592 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
19593 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
19594 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
19595 "which is vanishingly rare in real world VMs."
19596 msgstr ""
19597
19598 #. type: =head2
19599 #: ../inspector/virt-inspector.pod:164
19600 msgid "E<lt>operatingsystemE<gt>"
19601 msgstr ""
19602
19603 #. type: textblock
19604 #: ../inspector/virt-inspector.pod:166
19605 msgid ""
19606 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
19607 "describe the operating system, its architecture, the descriptive \"product "
19608 "name\" string, the type of OS and so on, as in this example:"
19609 msgstr ""
19610
19611 #. type: verbatim
19612 #: ../inspector/virt-inspector.pod:170
19613 #, no-wrap
19614 msgid ""
19615 " <operatingsystems>\n"
19616 "   <operatingsystem>\n"
19617 "     <root>/dev/sda2</root>\n"
19618 "     <name>windows</name>\n"
19619 "     <arch>i386</arch>\n"
19620 "     <distro>windows</distro>\n"
19621 "     <product_name>Windows 7 Enterprise</product_name>\n"
19622 "     <product_variant>Client</product_variant>\n"
19623 "     <major_version>6</major_version>\n"
19624 "     <minor_version>1</minor_version>\n"
19625 "     <windows_systemroot>/Windows</windows_systemroot>\n"
19626 "     <format>installed</format>\n"
19627 "\n"
19628 msgstr ""
19629
19630 #. type: textblock
19631 #: ../inspector/virt-inspector.pod:183
19632 msgid ""
19633 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
19634 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
19635 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
19636 "architecture.  The other fields are fairly self-explanatory, but because "
19637 "these fields are taken directly from the libguestfs inspection API you can "
19638 "find precise information from L<guestfs(3)/INSPECTION>."
19639 msgstr ""
19640
19641 #. type: textblock
19642 #: ../inspector/virt-inspector.pod:191
19643 msgid ""
19644 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
19645 "of view of libguestfs (block devices may have completely different names "
19646 "inside the VM itself)."
19647 msgstr ""
19648
19649 #. type: =head2
19650 #: ../inspector/virt-inspector.pod:195
19651 msgid "E<lt>mountpointsE<gt>"
19652 msgstr ""
19653
19654 #. type: textblock
19655 #: ../inspector/virt-inspector.pod:197
19656 msgid ""
19657 "Un*x-like guests typically have multiple filesystems which are mounted at "
19658 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
19659 "element which looks like this:"
19660 msgstr ""
19661
19662 #. type: verbatim
19663 #: ../inspector/virt-inspector.pod:201
19664 #, no-wrap
19665 msgid ""
19666 " <operatingsystems>\n"
19667 "   <operatingsystem>\n"
19668 "     ...\n"
19669 "     <mountpoints>\n"
19670 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
19671 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
19672 "     </mountpoints>\n"
19673 "\n"
19674 msgstr ""
19675
19676 #. type: textblock
19677 #: ../inspector/virt-inspector.pod:209
19678 msgid ""
19679 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
19680 "and may have completely different names inside the guest.  Only mountable "
19681 "filesystems appear in this list, not things like swap devices."
19682 msgstr ""
19683
19684 #. type: =head2
19685 #: ../inspector/virt-inspector.pod:214
19686 msgid "E<lt>filesystemsE<gt>"
19687 msgstr ""
19688
19689 #. type: textblock
19690 #: ../inspector/virt-inspector.pod:216
19691 msgid ""
19692 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
19693 "filesystems belonging to the guest, including swap and empty partitions.  "
19694 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
19695 "this OS or shared with this OS and other OSes)."
19696 msgstr ""
19697
19698 #. type: textblock
19699 #: ../inspector/virt-inspector.pod:222
19700 msgid "You might see something like this:"
19701 msgstr ""
19702
19703 #. type: verbatim
19704 #: ../inspector/virt-inspector.pod:224
19705 #, no-wrap
19706 msgid ""
19707 " <operatingsystems>\n"
19708 "   <operatingsystem>\n"
19709 "     ...\n"
19710 "     <filesystems>\n"
19711 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
19712 "         <type>ext4</type>\n"
19713 "         <label>Fedora-13-x86_64</label>\n"
19714 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
19715 "       </filesystem>\n"
19716 "\n"
19717 msgstr ""
19718
19719 #. type: textblock
19720 #: ../inspector/virt-inspector.pod:234
19721 msgid ""
19722 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
19723 "the label, and the UUID."
19724 msgstr ""
19725
19726 #. type: =head2
19727 #: ../inspector/virt-inspector.pod:237
19728 msgid "E<lt>applicationsE<gt>"
19729 msgstr ""
19730
19731 #. type: textblock
19732 #: ../inspector/virt-inspector.pod:239
19733 msgid ""
19734 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
19735 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
19736 "machine."
19737 msgstr ""
19738
19739 #. type: textblock
19740 #: ../inspector/virt-inspector.pod:243
19741 msgid ""
19742 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
19743 "Typical values would be C<rpm> and C<deb>."
19744 msgstr ""
19745
19746 #. type: textblock
19747 #: ../inspector/virt-inspector.pod:246
19748 msgid ""
19749 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
19750 "Typical values include C<yum>, C<up2date> and C<apt>"
19751 msgstr ""
19752
19753 #. type: textblock
19754 #: ../inspector/virt-inspector.pod:249
19755 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
19756 msgstr ""
19757
19758 #. type: verbatim
19759 #: ../inspector/virt-inspector.pod:252
19760 #, no-wrap
19761 msgid ""
19762 " <operatingsystems>\n"
19763 "   <operatingsystem>\n"
19764 "     ...\n"
19765 "     <applications>\n"
19766 "       <application>\n"
19767 "         <name>coreutils</name>\n"
19768 "         <version>8.5</version>\n"
19769 "         <release>1</release>\n"
19770 "       </application>\n"
19771 "\n"
19772 msgstr ""
19773
19774 #. type: textblock
19775 #: ../inspector/virt-inspector.pod:262
19776 msgid ""
19777 "The version and release fields may not be available for some types guests.  "
19778 "Other fields are possible, see L<guestfs(3)/"
19779 "guestfs_inspect_list_applications>."
19780 msgstr ""
19781
19782 #. type: =head2
19783 #: ../inspector/virt-inspector.pod:266
19784 msgid "E<lt>drive_mappingsE<gt>"
19785 msgstr ""
19786
19787 #. type: textblock
19788 #: ../inspector/virt-inspector.pod:268
19789 msgid ""
19790 "For operating systems like Windows which use drive letters, virt-inspector "
19791 "is able to find out how drive letters map to filesystems."
19792 msgstr ""
19793
19794 #. type: verbatim
19795 #: ../inspector/virt-inspector.pod:272
19796 #, no-wrap
19797 msgid ""
19798 " <operatingsystems>\n"
19799 "   <operatingsystem>\n"
19800 "     ...\n"
19801 "     <drive_mappings>\n"
19802 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
19803 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
19804 "     </drive_mappings>\n"
19805 "\n"
19806 msgstr ""
19807
19808 #. type: textblock
19809 #: ../inspector/virt-inspector.pod:280
19810 msgid ""
19811 "In the example above, drive C maps to the filesystem on the second partition "
19812 "on the first disk, and drive E maps to the filesystem on the first partition "
19813 "on the second disk."
19814 msgstr ""
19815
19816 #. type: textblock
19817 #: ../inspector/virt-inspector.pod:284
19818 msgid ""
19819 "Note that this only covers permanent local filesystem mappings, not things "
19820 "like network shares.  Furthermore NTFS volume mount points may not be listed "
19821 "here."
19822 msgstr ""
19823
19824 #. type: =head2
19825 #: ../inspector/virt-inspector.pod:288
19826 msgid "E<lt>iconE<gt>"
19827 msgstr ""
19828
19829 #. type: textblock
19830 #: ../inspector/virt-inspector.pod:290
19831 msgid ""
19832 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
19833 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
19834 "very large and high quality."
19835 msgstr ""
19836
19837 #. type: verbatim
19838 #: ../inspector/virt-inspector.pod:294
19839 #, no-wrap
19840 msgid ""
19841 " <operatingsystems>\n"
19842 "   <operatingsystem>\n"
19843 "     ...\n"
19844 "     <icon>\n"
19845 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
19846 "       [... many lines of base64 data ...]\n"
19847 "     </icon>\n"
19848 "\n"
19849 msgstr ""
19850
19851 #. type: textblock
19852 #: ../inspector/virt-inspector.pod:302
19853 msgid ""
19854 "To display the icon, you have to extract it and convert the base64 data back "
19855 "to a binary file.  Use an XPath query or simply an editor to extract the "
19856 "data, then use the coreutils L<base64(1)> program to do the conversion back "
19857 "to a PNG file:"
19858 msgstr ""
19859
19860 #. type: verbatim
19861 #: ../inspector/virt-inspector.pod:307
19862 #, no-wrap
19863 msgid ""
19864 " base64 -i -d < icon.data > icon.png\n"
19865 "\n"
19866 msgstr ""
19867
19868 #. type: =head2
19869 #: ../inspector/virt-inspector.pod:309
19870 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
19871 msgstr ""
19872
19873 #. type: textblock
19874 #: ../inspector/virt-inspector.pod:311
19875 msgid ""
19876 "Virt-inspector can detect some operating system installers on install disks, "
19877 "live CDs, bootable USB keys and more."
19878 msgstr ""
19879
19880 #. type: textblock
19881 #: ../inspector/virt-inspector.pod:314
19882 msgid ""
19883 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
19884 "fields may be present to indicate a live CD, network installer, or one part "
19885 "of a multipart CD.  For example:"
19886 msgstr ""
19887
19888 #. type: verbatim
19889 #: ../inspector/virt-inspector.pod:318
19890 #, no-wrap
19891 msgid ""
19892 " <operatingsystems>\n"
19893 "   <operatingsystem>\n"
19894 "     <root>/dev/sda</root>\n"
19895 "     <name>linux</name>\n"
19896 "     <arch>i386</arch>\n"
19897 "     <distro>ubuntu</distro>\n"
19898 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
19899 "     <major_version>10</major_version>\n"
19900 "     <minor_version>10</minor_version>\n"
19901 "     <format>installer</format>\n"
19902 "     <live/>\n"
19903 "\n"
19904 msgstr ""
19905
19906 #. type: =head1
19907 #: ../inspector/virt-inspector.pod:330
19908 msgid "USING XPATH"
19909 msgstr ""
19910
19911 #. type: textblock
19912 #: ../inspector/virt-inspector.pod:332
19913 msgid ""
19914 "You can use the XPath query language to select parts of the XML.  We "
19915 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
19916 msgstr ""
19917
19918 #. type: verbatim
19919 #: ../inspector/virt-inspector.pod:338
19920 #, no-wrap
19921 msgid ""
19922 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
19923 " <filesystems>\n"
19924 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
19925 "        <type>ext4</type>\n"
19926 " [...]\n"
19927 "\n"
19928 msgstr ""
19929
19930 #. type: verbatim
19931 #: ../inspector/virt-inspector.pod:344
19932 #, no-wrap
19933 msgid ""
19934 " $ virt-inspector -d Guest | \\\n"
19935 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
19936 " ext4\n"
19937 "\n"
19938 msgstr ""
19939
19940 #. type: verbatim
19941 #: ../inspector/virt-inspector.pod:348
19942 #, no-wrap
19943 msgid ""
19944 " $ virt-inspector -d Guest | \\\n"
19945 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
19946 " [displays the guest icon, if there is one]\n"
19947 "\n"
19948 msgstr ""
19949
19950 #. type: =head1
19951 #: ../inspector/virt-inspector.pod:359
19952 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
19953 msgstr ""
19954
19955 #. type: textblock
19956 #: ../inspector/virt-inspector.pod:361
19957 msgid ""
19958 "Early versions of libguestfs shipped with a different virt-inspector program "
19959 "written in Perl (the current version is written in C).  The XML output of "
19960 "the Perl virt-inspector was different and it could also output in other "
19961 "formats like text."
19962 msgstr ""
19963
19964 #. type: textblock
19965 #: ../inspector/virt-inspector.pod:366
19966 msgid ""
19967 "The old virt-inspector is no longer supported or shipped with libguestfs."
19968 msgstr ""
19969
19970 #. type: textblock
19971 #: ../inspector/virt-inspector.pod:369
19972 msgid ""
19973 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
19974 "versions of virt-inspector with different names:"
19975 msgstr ""
19976
19977 #. type: verbatim
19978 #: ../inspector/virt-inspector.pod:372
19979 #, no-wrap
19980 msgid ""
19981 " virt-inspector     Old Perl version.\n"
19982 " virt-inspector2    New C version.\n"
19983 "\n"
19984 msgstr ""
19985
19986 #. type: textblock
19987 #: ../inspector/virt-inspector.pod:382
19988 msgid ""
19989 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
19990 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
19991 msgstr ""
19992
19993 #. type: textblock
19994 #: ../inspector/virt-inspector.pod:399
19995 msgid "Matthew Booth L<mbooth@redhat.com>"
19996 msgstr ""
19997
19998 #. type: textblock
19999 #: ../java/examples/guestfs-java.pod:5
20000 msgid "guestfs-java - How to use libguestfs from Java"
20001 msgstr ""
20002
20003 #. type: verbatim
20004 #: ../java/examples/guestfs-java.pod:9
20005 #, no-wrap
20006 msgid ""
20007 " import com.redhat.et.libguestfs.*;\n"
20008 " \n"
20009 msgstr ""
20010
20011 #. type: verbatim
20012 #: ../java/examples/guestfs-java.pod:11
20013 #, no-wrap
20014 msgid ""
20015 " GuestFS g = new GuestFS ();\n"
20016 " g.add_drive_opts (\"disk.img\", null);\n"
20017 " g.launch ();\n"
20018 "\n"
20019 msgstr ""
20020
20021 #. type: textblock
20022 #: ../java/examples/guestfs-java.pod:17
20023 msgid ""
20024 "This manual page documents how to call libguestfs from the Java programming "
20025 "language.  This page just documents the differences from the C API and gives "
20026 "some examples.  If you are not familiar with using libguestfs, you also need "
20027 "to read L<guestfs(3)>."
20028 msgstr ""
20029
20030 #. type: =head2
20031 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
20032 msgid "CLOSING THE HANDLE"
20033 msgstr ""
20034
20035 #. type: textblock
20036 #: ../java/examples/guestfs-java.pod:24
20037 msgid ""
20038 "The handle is closed when it is reaped by the garbage collector.  Because "
20039 "libguestfs handles include a lot of state, it is also possible to close (and "
20040 "hence free) them explicitly by calling the C<close> method."
20041 msgstr ""
20042
20043 #. type: =head2
20044 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
20045 #: ../python/examples/guestfs-python.pod:21
20046 #: ../ruby/examples/guestfs-ruby.pod:22
20047 msgid "EXCEPTIONS"
20048 msgstr ""
20049
20050 #. type: textblock
20051 #: ../java/examples/guestfs-java.pod:31
20052 msgid ""
20053 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
20054 "exception.  This has a single parameter which is the error message (a "
20055 "C<String>)."
20056 msgstr ""
20057
20058 #. type: textblock
20059 #: ../java/examples/guestfs-java.pod:35
20060 msgid "Calling any method on a closed handle raises the same exception."
20061 msgstr ""
20062
20063 #. type: textblock
20064 #: ../java/examples/guestfs-java.pod:47
20065 msgid ""
20066 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)"
20067 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
20068 "libguestfs.org/>, L<http://caml.inria.fr/>."
20069 msgstr ""
20070
20071 #. type: textblock
20072 #: ../java/examples/guestfs-java.pod:63 ../perl/examples/guestfs-perl.pod:57
20073 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
20074 msgstr ""
20075
20076 #. type: textblock
20077 #: ../ocaml/examples/guestfs-ocaml.pod:5
20078 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
20079 msgstr ""
20080
20081 #. type: textblock
20082 #: ../ocaml/examples/guestfs-ocaml.pod:9
20083 msgid "Module style:"
20084 msgstr ""
20085
20086 #. type: verbatim
20087 #: ../ocaml/examples/guestfs-ocaml.pod:11
20088 #, no-wrap
20089 msgid ""
20090 " let g = Guestfs.create () in\n"
20091 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
20092 " Guestfs.launch g;\n"
20093 "\n"
20094 msgstr ""
20095
20096 #. type: textblock
20097 #: ../ocaml/examples/guestfs-ocaml.pod:15
20098 msgid "Object-oriented style:"
20099 msgstr ""
20100
20101 #. type: verbatim
20102 #: ../ocaml/examples/guestfs-ocaml.pod:17
20103 #, no-wrap
20104 msgid ""
20105 " let g = new Guestfs.guestfs () in\n"
20106 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
20107 " g#launch ();\n"
20108 "\n"
20109 msgstr ""
20110
20111 #. type: verbatim
20112 #: ../ocaml/examples/guestfs-ocaml.pod:21
20113 #, no-wrap
20114 msgid ""
20115 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
20116 "or:\n"
20117 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
20118 "\n"
20119 msgstr ""
20120
20121 #. type: textblock
20122 #: ../ocaml/examples/guestfs-ocaml.pod:27
20123 msgid ""
20124 "This manual page documents how to call libguestfs from the OCaml programming "
20125 "language.  This page just documents the differences from the C API and gives "
20126 "some examples.  If you are not familiar with using libguestfs, you also need "
20127 "to read L<guestfs(3)>."
20128 msgstr ""
20129
20130 #. type: =head2
20131 #: ../ocaml/examples/guestfs-ocaml.pod:32
20132 msgid "PROGRAMMING STYLES"
20133 msgstr ""
20134
20135 #. type: textblock
20136 #: ../ocaml/examples/guestfs-ocaml.pod:34
20137 msgid ""
20138 "There are two different programming styles supported by the OCaml bindings.  "
20139 "You can use a module style, with each C function mapped to an OCaml function:"
20140 msgstr ""
20141
20142 #. type: verbatim
20143 #: ../ocaml/examples/guestfs-ocaml.pod:38
20144 #, no-wrap
20145 msgid ""
20146 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
20147 "\n"
20148 msgstr ""
20149
20150 #. type: textblock
20151 #: ../ocaml/examples/guestfs-ocaml.pod:40
20152 msgid "becomes:"
20153 msgstr ""
20154
20155 #. type: verbatim
20156 #: ../ocaml/examples/guestfs-ocaml.pod:42
20157 #, no-wrap
20158 msgid ""
20159 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
20160 "\n"
20161 msgstr ""
20162
20163 #. type: textblock
20164 #: ../ocaml/examples/guestfs-ocaml.pod:44
20165 msgid ""
20166 "Alternately you can use an object-oriented style, calling methods on the "
20167 "class C<Guestfs.guestfs>:"
20168 msgstr ""
20169
20170 #. type: verbatim
20171 #: ../ocaml/examples/guestfs-ocaml.pod:47
20172 #, no-wrap
20173 msgid ""
20174 " method set_verbose : bool -> unit\n"
20175 "\n"
20176 msgstr ""
20177
20178 #. type: textblock
20179 #: ../ocaml/examples/guestfs-ocaml.pod:49
20180 msgid ""
20181 "The object-oriented style is usually briefer, and the minor performance "
20182 "penalty isn't noticable in the general overhead of performing libguestfs "
20183 "functions."
20184 msgstr ""
20185
20186 #. type: textblock
20187 #: ../ocaml/examples/guestfs-ocaml.pod:55
20188 msgid ""
20189 "The handle is closed when it is reaped by the garbage collector.  Because "
20190 "libguestfs handles include a lot of state, it is also possible to close (and "
20191 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
20192 "method."
20193 msgstr ""
20194
20195 #. type: textblock
20196 #: ../ocaml/examples/guestfs-ocaml.pod:62
20197 msgid ""
20198 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
20199 "exception.  This has a single parameter which is the error message (a "
20200 "string)."
20201 msgstr ""
20202
20203 #. type: textblock
20204 #: ../ocaml/examples/guestfs-ocaml.pod:66
20205 msgid ""
20206 "Calling any function/method on a closed handle raises C<Guestfs."
20207 "Handle_closed>.  The single parameter is the name of the function that you "
20208 "called."
20209 msgstr ""
20210
20211 #. type: textblock
20212 #: ../ocaml/examples/guestfs-ocaml.pod:80
20213 msgid ""
20214 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-perl(3)"
20215 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
20216 "libguestfs.org/>, L<http://caml.inria.fr/>."
20217 msgstr ""
20218
20219 #. type: textblock
20220 #: ../perl/examples/guestfs-perl.pod:5
20221 msgid "guestfs-perl - How to use libguestfs from Perl"
20222 msgstr ""
20223
20224 #. type: verbatim
20225 #: ../perl/examples/guestfs-perl.pod:9
20226 #, no-wrap
20227 msgid ""
20228 " use Sys::Guestfs;\n"
20229 " \n"
20230 msgstr ""
20231
20232 #. type: verbatim
20233 #: ../perl/examples/guestfs-perl.pod:11
20234 #, no-wrap
20235 msgid ""
20236 " my $h = Sys::Guestfs->new ();\n"
20237 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
20238 " $h->launch ();\n"
20239 " $h->mount_options ('', '/dev/sda1', '/');\n"
20240 " $h->touch ('/hello');\n"
20241 " $h->sync ();\n"
20242 "\n"
20243 msgstr ""
20244
20245 #. type: textblock
20246 #: ../perl/examples/guestfs-perl.pod:20
20247 msgid ""
20248 "This manual page documents how to call libguestfs from the Perl programming "
20249 "language.  This page just documents the differences from the C API and gives "
20250 "some examples.  If you are not familiar with using libguestfs, you also need "
20251 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
20252 msgstr ""
20253
20254 #. type: =head2
20255 #: ../perl/examples/guestfs-perl.pod:26
20256 msgid "ERRORS"
20257 msgstr ""
20258
20259 #. type: textblock
20260 #: ../perl/examples/guestfs-perl.pod:28
20261 msgid ""
20262 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
20263 ">)."
20264 msgstr ""
20265
20266 #. type: textblock
20267 #: ../perl/examples/guestfs-perl.pod:41
20268 msgid ""
20269 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)"
20270 ">, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
20271 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
20272 msgstr ""
20273
20274 #. type: textblock
20275 #: ../python/examples/guestfs-python.pod:5
20276 msgid "guestfs-python - How to use libguestfs from Python"
20277 msgstr ""
20278
20279 #. type: verbatim
20280 #: ../python/examples/guestfs-python.pod:9
20281 #, no-wrap
20282 msgid ""
20283 " import guestfs\n"
20284 " g = guestfs.GuestFS ()\n"
20285 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
20286 " g.launch\n"
20287 "\n"
20288 msgstr ""
20289
20290 #. type: textblock
20291 #: ../python/examples/guestfs-python.pod:16
20292 msgid ""
20293 "This manual page documents how to call libguestfs from the Python "
20294 "programming language.  This page just documents the differences from the C "
20295 "API and gives some examples.  If you are not familiar with using libguestfs, "
20296 "you also need to read L<guestfs(3)>."
20297 msgstr ""
20298
20299 #. type: textblock
20300 #: ../python/examples/guestfs-python.pod:23
20301 msgid ""
20302 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
20303 "single string argument which is the error message."
20304 msgstr ""
20305
20306 #. type: =head2
20307 #: ../python/examples/guestfs-python.pod:26
20308 msgid "MORE DOCUMENTATION"
20309 msgstr ""
20310
20311 #. type: textblock
20312 #: ../python/examples/guestfs-python.pod:28
20313 msgid "Type:"
20314 msgstr ""
20315
20316 #. type: verbatim
20317 #: ../python/examples/guestfs-python.pod:30
20318 #, no-wrap
20319 msgid ""
20320 " $ python\n"
20321 " >>> import guestfs\n"
20322 " >>> help (guestfs)\n"
20323 "\n"
20324 msgstr ""
20325
20326 #. type: textblock
20327 #: ../python/examples/guestfs-python.pod:44
20328 msgid ""
20329 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
20330 ">, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
20331 "libguestfs.org/>."
20332 msgstr ""
20333
20334 #. type: textblock
20335 #: ../rescue/virt-rescue.pod:5
20336 msgid "virt-rescue - Run a rescue shell on a virtual machine"
20337 msgstr ""
20338
20339 #. type: verbatim
20340 #: ../rescue/virt-rescue.pod:9
20341 #, no-wrap
20342 msgid ""
20343 " virt-rescue [--options] -d domname\n"
20344 "\n"
20345 msgstr ""
20346
20347 #. type: verbatim
20348 #: ../rescue/virt-rescue.pod:11
20349 #, no-wrap
20350 msgid ""
20351 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
20352 "\n"
20353 msgstr ""
20354
20355 #. type: verbatim
20356 #: ../rescue/virt-rescue.pod:15
20357 #, no-wrap
20358 msgid ""
20359 " virt-rescue [--options] domname\n"
20360 "\n"
20361 msgstr ""
20362
20363 #. type: verbatim
20364 #: ../rescue/virt-rescue.pod:17
20365 #, no-wrap
20366 msgid ""
20367 " virt-rescue [--options] disk.img [disk.img ...]\n"
20368 "\n"
20369 msgstr ""
20370
20371 #. type: textblock
20372 #: ../rescue/virt-rescue.pod:21
20373 msgid ""
20374 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
20375 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
20376 "you from doing this, but doesn't catch all cases."
20377 msgstr ""
20378
20379 #. type: textblock
20380 #: ../rescue/virt-rescue.pod:25
20381 msgid ""
20382 "However if you use the I<--ro> (read only) option, then you can attach a "
20383 "shell to a live virtual machine.  The results might be strange or "
20384 "inconsistent at times but you won't get disk corruption."
20385 msgstr ""
20386
20387 #. type: textblock
20388 #: ../rescue/virt-rescue.pod:31
20389 msgid ""
20390 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
20391 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
20392 "recovery tools which you can use to examine or rescue a virtual machine or "
20393 "disk image."
20394 msgstr ""
20395
20396 #. type: textblock
20397 #: ../rescue/virt-rescue.pod:36
20398 msgid ""
20399 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
20400 "on disk image(s):"
20401 msgstr ""
20402
20403 #. type: verbatim
20404 #: ../rescue/virt-rescue.pod:39
20405 #, no-wrap
20406 msgid ""
20407 " virt-rescue -d GuestName\n"
20408 "\n"
20409 msgstr ""
20410
20411 #. type: verbatim
20412 #: ../rescue/virt-rescue.pod:41
20413 #, no-wrap
20414 msgid ""
20415 " virt-rescue --ro -a /path/to/disk.img\n"
20416 "\n"
20417 msgstr ""
20418
20419 #. type: verbatim
20420 #: ../rescue/virt-rescue.pod:43
20421 #, no-wrap
20422 msgid ""
20423 " virt-rescue -a /dev/sdc\n"
20424 "\n"
20425 msgstr ""
20426
20427 #. type: textblock
20428 #: ../rescue/virt-rescue.pod:45
20429 msgid "For live VMs you I<must> use the --ro option."
20430 msgstr ""
20431
20432 #. type: textblock
20433 #: ../rescue/virt-rescue.pod:47
20434 msgid ""
20435 "When you run virt-rescue on a virtual machine or disk image, you are placed "
20436 "in an interactive bash shell where you can use many ordinary Linux "
20437 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
20438 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
20439 "is an empty directory called C</sysroot> where you can mount filesystems."
20440 msgstr ""
20441
20442 #. type: textblock
20443 #: ../rescue/virt-rescue.pod:54
20444 msgid ""
20445 "In the example below, we list logical volumes, then choose one to mount "
20446 "under C</sysroot>:"
20447 msgstr ""
20448
20449 #. type: verbatim
20450 #: ../rescue/virt-rescue.pod:57
20451 #, no-wrap
20452 msgid ""
20453 " ><rescue> lvs\n"
20454 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
20455 " lv_root vg_f11x64 -wi-a-   8.83G\n"
20456 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
20457 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
20458 " ><rescue> ls /sysroot\n"
20459 "\n"
20460 msgstr ""
20461
20462 #. type: textblock
20463 #: ../rescue/virt-rescue.pod:64
20464 msgid ""
20465 "If you don't know what filesystems are available on the virtual machine then "
20466 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
20467 msgstr ""
20468
20469 #. type: textblock
20470 #: ../rescue/virt-rescue.pod:70
20471 msgid ""
20472 "Virt-rescue can be used on I<any> disk image file or device, not just a "
20473 "virtual machine.  For example you can use it on a blank file if you want to "
20474 "partition that file (although we would recommend using L<guestfish(1)> "
20475 "instead as it is more suitable for this purpose).  You can even use virt-"
20476 "rescue on things like SD cards."
20477 msgstr ""
20478
20479 #. type: textblock
20480 #: ../rescue/virt-rescue.pod:76
20481 msgid ""
20482 "Virt-rescue does not require root.  You only need to run it as root if you "
20483 "need root to open the disk image."
20484 msgstr ""
20485
20486 #. type: textblock
20487 #: ../rescue/virt-rescue.pod:79
20488 msgid ""
20489 "This tool is just designed for quick interactive hacking on a virtual "
20490 "machine.  For more structured access to a virtual machine disk image, you "
20491 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
20492 "make scripted changes to guests, use L<guestfish(1)>."
20493 msgstr ""
20494
20495 #. type: =item
20496 #: ../rescue/virt-rescue.pod:103
20497 msgid "B<--append kernelopts>"
20498 msgstr ""
20499
20500 #. type: textblock
20501 #: ../rescue/virt-rescue.pod:105
20502 msgid "Pass additional options to the rescue kernel."
20503 msgstr ""
20504
20505 #. type: verbatim
20506 #: ../rescue/virt-rescue.pod:135
20507 #, no-wrap
20508 msgid ""
20509 " virt-rescue --format=raw -a disk.img\n"
20510 "\n"
20511 msgstr ""
20512
20513 #. type: verbatim
20514 #: ../rescue/virt-rescue.pod:139
20515 #, no-wrap
20516 msgid ""
20517 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
20518 "\n"
20519 msgstr ""
20520
20521 #. type: =item
20522 #: ../rescue/virt-rescue.pod:148
20523 msgid "B<-m MB>"
20524 msgstr ""
20525
20526 #. type: =item
20527 #: ../rescue/virt-rescue.pod:150
20528 msgid "B<--memsize MB>"
20529 msgstr ""
20530
20531 #. type: textblock
20532 #: ../rescue/virt-rescue.pod:152
20533 msgid ""
20534 "Change the amount of memory allocated to the rescue system.  The default is "
20535 "set by libguestfs and is small but adequate for running system tools.  The "
20536 "occasional program might need more memory.  The parameter is specified in "
20537 "megabytes."
20538 msgstr ""
20539
20540 #. type: =item
20541 #: ../rescue/virt-rescue.pod:157
20542 msgid "B<--network>"
20543 msgstr ""
20544
20545 #. type: textblock
20546 #: ../rescue/virt-rescue.pod:159
20547 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
20548 msgstr ""
20549
20550 #. type: textblock
20551 #: ../rescue/virt-rescue.pod:165
20552 msgid "Open the image read-only."
20553 msgstr ""
20554
20555 #. type: textblock
20556 #: ../rescue/virt-rescue.pod:175
20557 msgid ""
20558 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
20559 "SELINUX> before using this option."
20560 msgstr ""
20561
20562 #. type: textblock
20563 #: ../rescue/virt-rescue.pod:194
20564 msgid ""
20565 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
20566 "are done read-write."
20567 msgstr ""
20568
20569 #. type: textblock
20570 #: ../rescue/virt-rescue.pod:207
20571 msgid "Previous versions of virt-rescue allowed you to write either:"
20572 msgstr ""
20573
20574 #. type: verbatim
20575 #: ../rescue/virt-rescue.pod:209
20576 #, no-wrap
20577 msgid ""
20578 " virt-rescue disk.img [disk.img ...]\n"
20579 "\n"
20580 msgstr ""
20581
20582 #. type: verbatim
20583 #: ../rescue/virt-rescue.pod:213
20584 #, no-wrap
20585 msgid ""
20586 " virt-rescue guestname\n"
20587 "\n"
20588 msgstr ""
20589
20590 #. type: =head1
20591 #: ../rescue/virt-rescue.pod:221
20592 msgid "NETWORK"
20593 msgstr ""
20594
20595 #. type: textblock
20596 #: ../rescue/virt-rescue.pod:223
20597 msgid ""
20598 "Adding the I<--network> option enables QEMU user networking in the rescue "
20599 "appliance.  There are some differences between user networking and ordinary "
20600 "networking:"
20601 msgstr ""
20602
20603 #. type: =item
20604 #: ../rescue/virt-rescue.pod:229
20605 msgid "ping does not work"
20606 msgstr ""
20607
20608 #. type: textblock
20609 #: ../rescue/virt-rescue.pod:231
20610 msgid ""
20611 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
20612 "send the ping packets, and because virt-rescue must be able to run as non-"
20613 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
20614 "The ping command will appear to resolve addresses but will not be able to "
20615 "send or receive any packets.  This does not mean that the network is not "
20616 "working."
20617 msgstr ""
20618
20619 #. type: =item
20620 #: ../rescue/virt-rescue.pod:238
20621 msgid "cannot receive connections"
20622 msgstr ""
20623
20624 #. type: textblock
20625 #: ../rescue/virt-rescue.pod:240
20626 msgid "QEMU user networking cannot receive incoming connections."
20627 msgstr ""
20628
20629 #. type: =item
20630 #: ../rescue/virt-rescue.pod:242
20631 msgid "making TCP connections"
20632 msgstr ""
20633
20634 #. type: textblock
20635 #: ../rescue/virt-rescue.pod:244
20636 msgid ""
20637 "The virt-rescue appliance needs to be small and so does not include many "
20638 "network tools.  In particular there is no L<telnet(1)> command.  You can "
20639 "make TCP connections from the shell using the magical C</dev/tcp/"
20640 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
20641 msgstr ""
20642
20643 #. type: verbatim
20644 #: ../rescue/virt-rescue.pod:249
20645 #, no-wrap
20646 msgid ""
20647 " exec 3<>/dev/tcp/redhat.com/80\n"
20648 " echo \"GET /\" >&3\n"
20649 " cat <&3\n"
20650 "\n"
20651 msgstr ""
20652
20653 #. type: textblock
20654 #: ../rescue/virt-rescue.pod:253
20655 msgid "See L<bash(1)> for more details."
20656 msgstr ""
20657
20658 #. type: textblock
20659 #: ../rescue/virt-rescue.pod:259
20660 msgid ""
20661 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
20662 "ENVIRONMENT VARIABLES> for the complete list."
20663 msgstr ""
20664
20665 #. type: textblock
20666 #: ../rescue/virt-rescue.pod:286
20667 msgid ""
20668 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
20669 "libguestfs.org/>."
20670 msgstr ""
20671
20672 #. type: textblock
20673 #: ../resize/virt-resize.pod:5
20674 msgid "virt-resize - Resize a virtual machine disk"
20675 msgstr ""
20676
20677 #. type: verbatim
20678 #: ../resize/virt-resize.pod:9
20679 #, no-wrap
20680 msgid ""
20681 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
20682 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
20683 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
20684 "\n"
20685 msgstr ""
20686
20687 #. type: textblock
20688 #: ../resize/virt-resize.pod:15
20689 msgid ""
20690 "Virt-resize is a tool which can resize a virtual machine disk, making it "
20691 "larger or smaller overall, and resizing or deleting any partitions contained "
20692 "within."
20693 msgstr ""
20694
20695 #. type: textblock
20696 #: ../resize/virt-resize.pod:19
20697 msgid ""
20698 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
20699 "not> be used on live virtual machines - for consistent results, shut the "
20700 "virtual machine down before resizing it."
20701 msgstr ""
20702
20703 #. type: textblock
20704 #: ../resize/virt-resize.pod:23
20705 msgid ""
20706 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
20707 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
20708 msgstr ""
20709
20710 #. type: =item
20711 #: ../resize/virt-resize.pod:31 ../src/guestfs.pod:469 ../src/guestfs.pod:1257
20712 #: ../src/guestfs.pod:1395 ../src/guestfs.pod:2558
20713 msgid "1."
20714 msgstr ""
20715
20716 #. type: textblock
20717 #: ../resize/virt-resize.pod:33
20718 msgid ""
20719 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
20720 "fill the extra 5GB of space."
20721 msgstr ""
20722
20723 #. type: verbatim
20724 #: ../resize/virt-resize.pod:36
20725 #, no-wrap
20726 msgid ""
20727 " virt-filesystems --long -h --all -a olddisk\n"
20728 " \n"
20729 msgstr ""
20730
20731 #. type: verbatim
20732 #: ../resize/virt-resize.pod:38
20733 #, no-wrap
20734 msgid ""
20735 " truncate -r olddisk newdisk\n"
20736 " truncate -s +5G newdisk\n"
20737 " \n"
20738 msgstr ""
20739
20740 #. type: verbatim
20741 #: ../resize/virt-resize.pod:41
20742 #, no-wrap
20743 msgid ""
20744 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
20745 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
20746 "\n"
20747 msgstr ""
20748
20749 #. type: =item
20750 #: ../resize/virt-resize.pod:44 ../src/guestfs.pod:475 ../src/guestfs.pod:1261
20751 #: ../src/guestfs.pod:1399 ../src/guestfs.pod:2583
20752 msgid "2."
20753 msgstr ""
20754
20755 #. type: textblock
20756 #: ../resize/virt-resize.pod:46
20757 msgid ""
20758 "As above, but make the /boot partition 200MB bigger, while giving the "
20759 "remaining space to /dev/sda2:"
20760 msgstr ""
20761
20762 #. type: verbatim
20763 #: ../resize/virt-resize.pod:49
20764 #, no-wrap
20765 msgid ""
20766 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
20767 "   olddisk newdisk\n"
20768 "\n"
20769 msgstr ""
20770
20771 #. type: =item
20772 #: ../resize/virt-resize.pod:52 ../src/guestfs.pod:486 ../src/guestfs.pod:1405
20773 msgid "3."
20774 msgstr ""
20775
20776 #. type: textblock
20777 #: ../resize/virt-resize.pod:54
20778 msgid ""
20779 "As in the first example, but expand a logical volume as the final step.  "
20780 "This is what you would typically use for Linux guests that use LVM:"
20781 msgstr ""
20782
20783 #. type: verbatim
20784 #: ../resize/virt-resize.pod:58
20785 #, no-wrap
20786 msgid ""
20787 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
20788 "   olddisk newdisk\n"
20789 "\n"
20790 msgstr ""
20791
20792 #. type: =item
20793 #: ../resize/virt-resize.pod:61
20794 msgid "4."
20795 msgstr ""
20796
20797 #. type: textblock
20798 #: ../resize/virt-resize.pod:63
20799 msgid ""
20800 "As in the first example, but the output format will be qcow2 instead of a "
20801 "raw disk:"
20802 msgstr ""
20803
20804 #. type: verbatim
20805 #: ../resize/virt-resize.pod:66
20806 #, no-wrap
20807 msgid ""
20808 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
20809 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
20810 "\n"
20811 msgstr ""
20812
20813 #. type: =head1
20814 #: ../resize/virt-resize.pod:71
20815 msgid "DETAILED USAGE"
20816 msgstr ""
20817
20818 #. type: =head2
20819 #: ../resize/virt-resize.pod:73
20820 msgid "EXPANDING A VIRTUAL MACHINE DISK"
20821 msgstr ""
20822
20823 #. type: =item
20824 #: ../resize/virt-resize.pod:77
20825 msgid "1. Shut down the virtual machine"
20826 msgstr ""
20827
20828 #. type: =item
20829 #: ../resize/virt-resize.pod:79
20830 msgid "2. Locate input disk image"
20831 msgstr ""
20832
20833 #. type: textblock
20834 #: ../resize/virt-resize.pod:81
20835 msgid ""
20836 "Locate the input disk image (ie. the file or device on the host containing "
20837 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
20838 "dumpxml> like this to find the disk image name:"
20839 msgstr ""
20840
20841 #. type: verbatim
20842 #: ../resize/virt-resize.pod:85
20843 #, no-wrap
20844 msgid ""
20845 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
20846 " Found 1 nodes:\n"
20847 " -- NODE --\n"
20848 " <source dev=\"/dev/vg/lv_guest\" />\n"
20849 "\n"
20850 msgstr ""
20851
20852 #. type: =item
20853 #: ../resize/virt-resize.pod:90
20854 msgid "3. Look at current sizing"
20855 msgstr ""
20856
20857 #. type: textblock
20858 #: ../resize/virt-resize.pod:92
20859 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
20860 msgstr ""
20861
20862 #. type: verbatim
20863 #: ../resize/virt-resize.pod:95
20864 #, no-wrap
20865 msgid ""
20866 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
20867 " Name       Type       Size  Parent\n"
20868 " /dev/sda1  partition  101M  /dev/sda\n"
20869 " /dev/sda2  partition  7.9G  /dev/sda\n"
20870 " /dev/sda   device     8.0G  -\n"
20871 "\n"
20872 msgstr ""
20873
20874 #. type: textblock
20875 #: ../resize/virt-resize.pod:101
20876 msgid ""
20877 "(This example is a virtual machine with an 8 GB disk which we would like to "
20878 "expand up to 10 GB)."
20879 msgstr ""
20880
20881 #. type: =item
20882 #: ../resize/virt-resize.pod:104
20883 msgid "4. Create output disk"
20884 msgstr ""
20885
20886 #. type: textblock
20887 #: ../resize/virt-resize.pod:106
20888 msgid ""
20889 "Virt-resize cannot do in-place disk modifications.  You have to have space "
20890 "to store the resized output disk."
20891 msgstr ""
20892
20893 #. type: textblock
20894 #: ../resize/virt-resize.pod:109
20895 msgid ""
20896 "To store the resized disk image in a file, create a file of a suitable size:"
20897 msgstr ""
20898
20899 #. type: verbatim
20900 #: ../resize/virt-resize.pod:112
20901 #, no-wrap
20902 msgid ""
20903 " # rm -f outdisk\n"
20904 " # truncate -s 10G outdisk\n"
20905 "\n"
20906 msgstr ""
20907
20908 #. type: textblock
20909 #: ../resize/virt-resize.pod:115
20910 msgid "Or use L<lvcreate(1)> to create a logical volume:"
20911 msgstr ""
20912
20913 #. type: verbatim
20914 #: ../resize/virt-resize.pod:117
20915 #, no-wrap
20916 msgid ""
20917 " # lvcreate -L 10G -n lv_name vg_name\n"
20918 "\n"
20919 msgstr ""
20920
20921 #. type: textblock
20922 #: ../resize/virt-resize.pod:119
20923 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
20924 msgstr ""
20925
20926 #. type: verbatim
20927 #: ../resize/virt-resize.pod:121
20928 #, no-wrap
20929 msgid ""
20930 " # virsh pool-list\n"
20931 " # virsh vol-create-as poolname newvol 10G\n"
20932 "\n"
20933 msgstr ""
20934
20935 #. type: =item
20936 #: ../resize/virt-resize.pod:124
20937 msgid "5. Resize"
20938 msgstr ""
20939
20940 #. type: textblock
20941 #: ../resize/virt-resize.pod:126
20942 msgid ""
20943 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
20944 "file) and the output disk.  The output disk is the one created in the "
20945 "previous step."
20946 msgstr ""
20947
20948 #. type: verbatim
20949 #: ../resize/virt-resize.pod:130
20950 #, no-wrap
20951 msgid ""
20952 " # virt-resize indisk outdisk\n"
20953 "\n"
20954 msgstr ""
20955
20956 #. type: textblock
20957 #: ../resize/virt-resize.pod:132
20958 msgid ""
20959 "This command just copies disk image C<indisk> to disk image C<outdisk> "
20960 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
20961 "larger, then an extra, empty partition is created at the end of the disk "
20962 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
20963 "error."
20964 msgstr ""
20965
20966 #. type: textblock
20967 #: ../resize/virt-resize.pod:138
20968 msgid ""
20969 "More realistically you'd want to expand existing partitions in the disk "
20970 "image by passing extra options (for the full list see the L</OPTIONS> "
20971 "section below)."
20972 msgstr ""
20973
20974 #. type: textblock
20975 #: ../resize/virt-resize.pod:142
20976 msgid ""
20977 "L</--expand> is the most useful option.  It expands the named partition "
20978 "within the disk to fill any extra space:"
20979 msgstr ""
20980
20981 #. type: verbatim
20982 #: ../resize/virt-resize.pod:145
20983 #, no-wrap
20984 msgid ""
20985 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
20986 "\n"
20987 msgstr ""
20988
20989 #. type: textblock
20990 #: ../resize/virt-resize.pod:147
20991 msgid ""
20992 "(In this case, an extra partition is I<not> created at the end of the disk, "
20993 "because there will be no unused space)."
20994 msgstr ""
20995
20996 #. type: textblock
20997 #: ../resize/virt-resize.pod:150
20998 msgid ""
20999 "L</--resize> is the other commonly used option.  The following would "
21000 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
21001 "rest of the available space:"
21002 msgstr ""
21003
21004 #. type: verbatim
21005 #: ../resize/virt-resize.pod:154
21006 #, no-wrap
21007 msgid ""
21008 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
21009 "     indisk outdisk\n"
21010 "\n"
21011 msgstr ""
21012
21013 #. type: textblock
21014 #: ../resize/virt-resize.pod:157
21015 msgid ""
21016 "If the expanded partition in the image contains a filesystem or LVM PV, then "
21017 "if virt-resize knows how, it will resize the contents, the equivalent of "
21018 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
21019 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
21020 "filesystems, so you would have to online resize them after booting the guest."
21021 msgstr ""
21022
21023 #. type: textblock
21024 #: ../resize/virt-resize.pod:164
21025 msgid "Other options are covered below."
21026 msgstr ""
21027
21028 #. type: =item
21029 #: ../resize/virt-resize.pod:166
21030 msgid "6. Test"
21031 msgstr ""
21032
21033 #. type: textblock
21034 #: ../resize/virt-resize.pod:168
21035 msgid "Thoroughly test the new disk image I<before> discarding the old one."
21036 msgstr ""
21037
21038 #. type: textblock
21039 #: ../resize/virt-resize.pod:170
21040 msgid "If you are using libvirt, edit the XML to point at the new disk:"
21041 msgstr ""
21042
21043 #. type: verbatim
21044 #: ../resize/virt-resize.pod:172
21045 #, no-wrap
21046 msgid ""
21047 " # virsh edit guestname\n"
21048 "\n"
21049 msgstr ""
21050
21051 #. type: textblock
21052 #: ../resize/virt-resize.pod:174
21053 msgid ""
21054 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
21055 "html#elementsDisks>"
21056 msgstr ""
21057
21058 #. type: textblock
21059 #: ../resize/virt-resize.pod:177
21060 msgid "Then start up the domain with the new, resized disk:"
21061 msgstr ""
21062
21063 #. type: verbatim
21064 #: ../resize/virt-resize.pod:179
21065 #, no-wrap
21066 msgid ""
21067 " # virsh start guestname\n"
21068 "\n"
21069 msgstr ""
21070
21071 #. type: textblock
21072 #: ../resize/virt-resize.pod:181
21073 msgid ""
21074 "and check that it still works.  See also the L</NOTES> section below for "
21075 "additional information."
21076 msgstr ""
21077
21078 #. type: =item
21079 #: ../resize/virt-resize.pod:184
21080 msgid "7. Resize LVs etc inside the guest"
21081 msgstr ""
21082
21083 #. type: textblock
21084 #: ../resize/virt-resize.pod:186
21085 msgid "(This can also be done offline using L<guestfish(1)>)"
21086 msgstr ""
21087
21088 #. type: textblock
21089 #: ../resize/virt-resize.pod:188
21090 msgid ""
21091 "Once the guest has booted you should see the new space available, at least "
21092 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
21093 "may need to resize LVs inside PVs, and also resize filesystem types that "
21094 "virt-resize does not know how to expand."
21095 msgstr ""
21096
21097 #. type: =head2
21098 #: ../resize/virt-resize.pod:195
21099 msgid "SHRINKING A VIRTUAL MACHINE DISK"
21100 msgstr ""
21101
21102 #. type: textblock
21103 #: ../resize/virt-resize.pod:197
21104 msgid ""
21105 "Shrinking is somewhat more complex than expanding, and only an overview is "
21106 "given here."
21107 msgstr ""
21108
21109 #. type: textblock
21110 #: ../resize/virt-resize.pod:200
21111 msgid ""
21112 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
21113 "filesystems).  The user has to shrink content before passing the disk image "
21114 "to virt-resize, and virt-resize will check that the content has been shrunk "
21115 "properly."
21116 msgstr ""
21117
21118 #. type: textblock
21119 #: ../resize/virt-resize.pod:205
21120 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
21121 msgstr ""
21122
21123 #. type: textblock
21124 #: ../resize/virt-resize.pod:207
21125 msgid ""
21126 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
21127 "steps 3 and 4 above to allocate a new disk image."
21128 msgstr ""
21129
21130 #. type: textblock
21131 #: ../resize/virt-resize.pod:210
21132 msgid ""
21133 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
21134 msgstr ""
21135
21136 #. type: =head2
21137 #: ../resize/virt-resize.pod:213
21138 msgid "IGNORING OR DELETING PARTITIONS"
21139 msgstr ""
21140
21141 #. type: textblock
21142 #: ../resize/virt-resize.pod:215
21143 msgid ""
21144 "virt-resize also gives a convenient way to ignore or delete partitions when "
21145 "copying from the input disk to the output disk.  Ignoring a partition speeds "
21146 "up the copy where you don't care about the existing contents of a "
21147 "partition.  Deleting a partition removes it completely, but note that it "
21148 "also renumbers any partitions after the one which is deleted, which can "
21149 "leave some guests unbootable."
21150 msgstr ""
21151
21152 #. type: =head2
21153 #: ../resize/virt-resize.pod:222
21154 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
21155 msgstr ""
21156
21157 #. type: textblock
21158 #: ../resize/virt-resize.pod:224
21159 msgid ""
21160 "If the input disk is in qcow2 format, then you may prefer that the output is "
21161 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
21162 "the fly.  The output format is simply determined by the format of the empty "
21163 "output container that you provide.  Thus to create qcow2 output, use:"
21164 msgstr ""
21165
21166 #. type: verbatim
21167 #: ../resize/virt-resize.pod:230
21168 #, no-wrap
21169 msgid ""
21170 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
21171 "\n"
21172 msgstr ""
21173
21174 #. type: textblock
21175 #: ../resize/virt-resize.pod:232
21176 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
21177 msgstr ""
21178
21179 #. type: textblock
21180 #: ../resize/virt-resize.pod:234
21181 msgid "Similarly, to get non-sparse raw output use:"
21182 msgstr ""
21183
21184 #. type: verbatim
21185 #: ../resize/virt-resize.pod:236
21186 #, no-wrap
21187 msgid ""
21188 " fallocate -l size outdisk\n"
21189 "\n"
21190 msgstr ""
21191
21192 #. type: textblock
21193 #: ../resize/virt-resize.pod:238
21194 msgid ""
21195 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
21196 "dev/zero of=outdisk bs=1M count=..>)"
21197 msgstr ""
21198
21199 #. type: textblock
21200 #: ../resize/virt-resize.pod:247
21201 msgid "Display help."
21202 msgstr ""
21203
21204 #. type: =item
21205 #: ../resize/virt-resize.pod:249
21206 msgid "B<-d>"
21207 msgstr ""
21208
21209 #. type: =item
21210 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
21211 #: ../tools/virt-win-reg.pl:120
21212 msgid "B<--debug>"
21213 msgstr ""
21214
21215 #. type: textblock
21216 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
21217 msgid "Enable debugging messages."
21218 msgstr ""
21219
21220 #. type: =item
21221 #: ../resize/virt-resize.pod:255
21222 msgid "B<--delete part>"
21223 msgstr ""
21224
21225 #. type: textblock
21226 #: ../resize/virt-resize.pod:257
21227 msgid ""
21228 "Delete the named partition.  It would be more accurate to describe this as "
21229 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
21230 "the original disk image is left intact."
21231 msgstr ""
21232
21233 #. type: textblock
21234 #: ../resize/virt-resize.pod:261
21235 msgid ""
21236 "Note that when you delete a partition, then anything contained in the "
21237 "partition is also deleted.  Furthermore, this causes any partitions that "
21238 "come after to be I<renumbered>, which can easily make your guest unbootable."
21239 msgstr ""
21240
21241 #. type: textblock
21242 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
21243 #: ../resize/virt-resize.pod:454
21244 msgid "You can give this option multiple times."
21245 msgstr ""
21246
21247 #. type: =item
21248 #: ../resize/virt-resize.pod:268
21249 msgid "B<--expand part>"
21250 msgstr ""
21251
21252 #. type: textblock
21253 #: ../resize/virt-resize.pod:270
21254 msgid ""
21255 "Expand the named partition so it uses up all extra space (space left over "
21256 "after any other resize changes that you request have been done)."
21257 msgstr ""
21258
21259 #. type: textblock
21260 #: ../resize/virt-resize.pod:273
21261 msgid ""
21262 "If virt-resize knows how, it will expand the direct content of the "
21263 "partition.  For example, if the partition is an LVM PV, it will expand the "
21264 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
21265 "content it doesn't know about alone."
21266 msgstr ""
21267
21268 #. type: textblock
21269 #: ../resize/virt-resize.pod:278
21270 msgid "Currently virt-resize can resize:"
21271 msgstr ""
21272
21273 #. type: textblock
21274 #: ../resize/virt-resize.pod:284
21275 msgid "ext2, ext3 and ext4 filesystems."
21276 msgstr ""
21277
21278 #. type: textblock
21279 #: ../resize/virt-resize.pod:288
21280 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
21281 msgstr ""
21282
21283 #. type: textblock
21284 #: ../resize/virt-resize.pod:290
21285 msgid ""
21286 "The filesystem must have been shut down consistently last time it was used.  "
21287 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
21288 "consistency check, so at the first boot after resizing Windows will check "
21289 "the disk."
21290 msgstr ""
21291
21292 #. type: textblock
21293 #: ../resize/virt-resize.pod:297
21294 msgid ""
21295 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
21296 "inside the PV, but see the I<--LV-expand> option.  The user could also "
21297 "resize LVs as desired after boot."
21298 msgstr ""
21299
21300 #. type: textblock
21301 #: ../resize/virt-resize.pod:303
21302 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
21303 msgstr ""
21304
21305 #. type: textblock
21306 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
21307 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
21308 msgstr ""
21309
21310 #. type: =item
21311 #: ../resize/virt-resize.pod:309 ../tools/virt-list-filesystems.pl:91
21312 #: ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141
21313 #: ../tools/virt-win-reg.pl:142
21314 msgid "B<--format> raw"
21315 msgstr ""
21316
21317 #. type: textblock
21318 #: ../resize/virt-resize.pod:311
21319 msgid ""
21320 "Specify the format of the input disk image.  If this flag is not given then "
21321 "it is auto-detected from the image itself."
21322 msgstr ""
21323
21324 #. type: textblock
21325 #: ../resize/virt-resize.pod:317
21326 msgid ""
21327 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
21328 "AND NON-SPARSE RAW FORMATS>."
21329 msgstr ""
21330
21331 #. type: =item
21332 #: ../resize/virt-resize.pod:320
21333 msgid "B<--ignore part>"
21334 msgstr ""
21335
21336 #. type: textblock
21337 #: ../resize/virt-resize.pod:322
21338 msgid ""
21339 "Ignore the named partition.  Effectively this means the partition is "
21340 "allocated on the destination disk, but the content is not copied across from "
21341 "the source disk.  The content of the partition will be blank (all zero "
21342 "bytes)."
21343 msgstr ""
21344
21345 #. type: =item
21346 #: ../resize/virt-resize.pod:329
21347 msgid "B<--LV-expand logvol>"
21348 msgstr ""
21349
21350 #. type: textblock
21351 #: ../resize/virt-resize.pod:331
21352 msgid ""
21353 "This takes the logical volume and, as a final step, expands it to fill all "
21354 "the space available in its volume group.  A typical usage, assuming a Linux "
21355 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
21356 "lv_root> would be:"
21357 msgstr ""
21358
21359 #. type: verbatim
21360 #: ../resize/virt-resize.pod:336
21361 #, no-wrap
21362 msgid ""
21363 " virt-resize indisk outdisk \\\n"
21364 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
21365 "\n"
21366 msgstr ""
21367
21368 #. type: textblock
21369 #: ../resize/virt-resize.pod:339
21370 msgid ""
21371 "This would first expand the partition (and PV), and then expand the root "
21372 "device to fill the extra space in the PV."
21373 msgstr ""
21374
21375 #. type: textblock
21376 #: ../resize/virt-resize.pod:342
21377 msgid ""
21378 "The contents of the LV are also resized if virt-resize knows how to do "
21379 "that.  You can stop virt-resize from trying to expand the content by using "
21380 "the option I<--no-expand-content>."
21381 msgstr ""
21382
21383 #. type: textblock
21384 #: ../resize/virt-resize.pod:346
21385 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
21386 msgstr ""
21387
21388 #. type: textblock
21389 #: ../resize/virt-resize.pod:348
21390 msgid ""
21391 "You can give this option multiple times, I<but> it doesn't make sense to do "
21392 "this unless the logical volumes you specify are all in different volume "
21393 "groups."
21394 msgstr ""
21395
21396 #. type: =item
21397 #: ../resize/virt-resize.pod:352
21398 msgid "B<--machine-readable>"
21399 msgstr ""
21400
21401 #. type: textblock
21402 #: ../resize/virt-resize.pod:354
21403 msgid ""
21404 "This option is used to make the output more machine friendly when being "
21405 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
21406 msgstr ""
21407
21408 #. type: =item
21409 #: ../resize/virt-resize.pod:360
21410 msgid "B<--dryrun>"
21411 msgstr ""
21412
21413 #. type: textblock
21414 #: ../resize/virt-resize.pod:362
21415 msgid "Print a summary of what would be done, but don't do anything."
21416 msgstr ""
21417
21418 #. type: =item
21419 #: ../resize/virt-resize.pod:364
21420 msgid "B<--no-copy-boot-loader>"
21421 msgstr ""
21422
21423 #. type: textblock
21424 #: ../resize/virt-resize.pod:366
21425 msgid ""
21426 "By default, virt-resize copies over some sectors at the start of the disk "
21427 "(up to the beginning of the first partition).  Commonly these sectors "
21428 "contain the Master Boot Record (MBR) and the boot loader, and are required "
21429 "in order for the guest to boot correctly."
21430 msgstr ""
21431
21432 #. type: textblock
21433 #: ../resize/virt-resize.pod:371
21434 msgid ""
21435 "If you specify this flag, then this initial copy is not done.  You may need "
21436 "to reinstall the boot loader in this case."
21437 msgstr ""
21438
21439 #. type: =item
21440 #: ../resize/virt-resize.pod:374
21441 msgid "B<--no-extra-partition>"
21442 msgstr ""
21443
21444 #. type: textblock
21445 #: ../resize/virt-resize.pod:376
21446 msgid ""
21447 "By default, virt-resize creates an extra partition if there is any extra, "
21448 "unused space after all resizing has happened.  Use this option to prevent "
21449 "the extra partition from being created.  If you do this then the extra space "
21450 "will be inaccessible until you run fdisk, parted, or some other partitioning "
21451 "tool in the guest."
21452 msgstr ""
21453
21454 #. type: textblock
21455 #: ../resize/virt-resize.pod:382
21456 msgid ""
21457 "Note that if the surplus space is smaller than 10 MB, no extra partition "
21458 "will be created."
21459 msgstr ""
21460
21461 #. type: =item
21462 #: ../resize/virt-resize.pod:385
21463 msgid "B<--no-expand-content>"
21464 msgstr ""
21465
21466 #. type: textblock
21467 #: ../resize/virt-resize.pod:387
21468 msgid ""
21469 "By default, virt-resize will try to expand the direct contents of "
21470 "partitions, if it knows how (see I<--expand> option above)."
21471 msgstr ""
21472
21473 #. type: textblock
21474 #: ../resize/virt-resize.pod:390
21475 msgid ""
21476 "If you give the I<--no-expand-content> option then virt-resize will not "
21477 "attempt this."
21478 msgstr ""
21479
21480 #. type: =item
21481 #: ../resize/virt-resize.pod:393
21482 msgid "B<--ntfsresize-force>"
21483 msgstr ""
21484
21485 #. type: textblock
21486 #: ../resize/virt-resize.pod:395
21487 msgid ""
21488 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
21489 "the NTFS disk is marked as needing a consistency check.  You have to use "
21490 "this option if you want to resize a Windows guest multiple times without "
21491 "booting into Windows between each resize."
21492 msgstr ""
21493
21494 #. type: =item
21495 #: ../resize/virt-resize.pod:401
21496 msgid "B<--output-format> raw"
21497 msgstr ""
21498
21499 #. type: textblock
21500 #: ../resize/virt-resize.pod:403
21501 msgid ""
21502 "Specify the format of the output disk image.  If this flag is not given then "
21503 "it is auto-detected from the image itself."
21504 msgstr ""
21505
21506 #. type: textblock
21507 #: ../resize/virt-resize.pod:409
21508 msgid ""
21509 "Note that this option I<does not create> the output format.  This option "
21510 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
21511 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
21512 "SPARSE RAW FORMATS>."
21513 msgstr ""
21514
21515 #. type: =item
21516 #: ../resize/virt-resize.pod:414
21517 msgid "B<-q>"
21518 msgstr ""
21519
21520 #. type: =item
21521 #: ../resize/virt-resize.pod:416
21522 msgid "B<--quiet>"
21523 msgstr ""
21524
21525 #. type: textblock
21526 #: ../resize/virt-resize.pod:418
21527 msgid "Don't print the summary."
21528 msgstr ""
21529
21530 #. type: =item
21531 #: ../resize/virt-resize.pod:420
21532 msgid "B<--resize part=size>"
21533 msgstr ""
21534
21535 #. type: textblock
21536 #: ../resize/virt-resize.pod:422
21537 msgid ""
21538 "Resize the named partition (expanding or shrinking it) so that it has the "
21539 "given size."
21540 msgstr ""
21541
21542 #. type: textblock
21543 #: ../resize/virt-resize.pod:425
21544 msgid ""
21545 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
21546 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
21547 "size; or as a relative number or percentage.  For example:"
21548 msgstr ""
21549
21550 #. type: verbatim
21551 #: ../resize/virt-resize.pod:431
21552 #, no-wrap
21553 msgid ""
21554 " --resize /dev/sda2=10G\n"
21555 "\n"
21556 msgstr ""
21557
21558 #. type: verbatim
21559 #: ../resize/virt-resize.pod:433
21560 #, no-wrap
21561 msgid ""
21562 " --resize /dev/sda4=90%\n"
21563 "\n"
21564 msgstr ""
21565
21566 #. type: verbatim
21567 #: ../resize/virt-resize.pod:435
21568 #, no-wrap
21569 msgid ""
21570 " --resize /dev/sda2=+1G\n"
21571 "\n"
21572 msgstr ""
21573
21574 #. type: verbatim
21575 #: ../resize/virt-resize.pod:437
21576 #, no-wrap
21577 msgid ""
21578 " --resize /dev/sda2=-200M\n"
21579 "\n"
21580 msgstr ""
21581
21582 #. type: verbatim
21583 #: ../resize/virt-resize.pod:439
21584 #, no-wrap
21585 msgid ""
21586 " --resize /dev/sda1=+128K\n"
21587 "\n"
21588 msgstr ""
21589
21590 #. type: verbatim
21591 #: ../resize/virt-resize.pod:441
21592 #, no-wrap
21593 msgid ""
21594 " --resize /dev/sda1=+10%\n"
21595 "\n"
21596 msgstr ""
21597
21598 #. type: verbatim
21599 #: ../resize/virt-resize.pod:443
21600 #, no-wrap
21601 msgid ""
21602 " --resize /dev/sda1=-10%\n"
21603 "\n"
21604 msgstr ""
21605
21606 #. type: textblock
21607 #: ../resize/virt-resize.pod:445
21608 msgid ""
21609 "You can increase the size of any partition.  Virt-resize will expand the "
21610 "direct content of the partition if it knows how (see I<--expand> below)."
21611 msgstr ""
21612
21613 #. type: textblock
21614 #: ../resize/virt-resize.pod:449
21615 msgid ""
21616 "You can only I<decrease> the size of partitions that contain filesystems or "
21617 "PVs which have already been shrunk.  Virt-resize will check this has been "
21618 "done before proceeding, or else will print an error (see also I<--resize-"
21619 "force>)."
21620 msgstr ""
21621
21622 #. type: =item
21623 #: ../resize/virt-resize.pod:456
21624 msgid "B<--resize-force part=size>"
21625 msgstr ""
21626
21627 #. type: textblock
21628 #: ../resize/virt-resize.pod:458
21629 msgid ""
21630 "This is the same as I<--resize> except that it will let you decrease the "
21631 "size of any partition.  Generally this means you will lose any data which "
21632 "was at the end of the partition you shrink, but you may not care about that "
21633 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
21634 "as a swap partition)."
21635 msgstr ""
21636
21637 #. type: textblock
21638 #: ../resize/virt-resize.pod:464
21639 msgid "See also the I<--ignore> option."
21640 msgstr ""
21641
21642 #. type: =item
21643 #: ../resize/virt-resize.pod:466
21644 msgid "B<--shrink part>"
21645 msgstr ""
21646
21647 #. type: textblock
21648 #: ../resize/virt-resize.pod:468
21649 msgid ""
21650 "Shrink the named partition until the overall disk image fits in the "
21651 "destination.  The named partition B<must> contain a filesystem or PV which "
21652 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
21653 "online tools).  Virt-resize will check this and give an error if it has not "
21654 "been done."
21655 msgstr ""
21656
21657 #. type: textblock
21658 #: ../resize/virt-resize.pod:474
21659 msgid ""
21660 "The amount by which the overall disk must be shrunk (after carrying out all "
21661 "other operations requested by the user) is called the \"deficit\".  For "
21662 "example, a straight copy (assume no other operations)  from a 5GB disk image "
21663 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
21664 "would give an error unless the user specified a partition to shrink and that "
21665 "partition had more than a gigabyte of free space."
21666 msgstr ""
21667
21668 #. type: =head1
21669 #: ../resize/virt-resize.pod:492
21670 msgid "MACHINE READABLE OUTPUT"
21671 msgstr ""
21672
21673 #. type: textblock
21674 #: ../resize/virt-resize.pod:494
21675 msgid ""
21676 "The I<--machine-readable> option can be used to make the output more machine "
21677 "friendly, which is useful when calling virt-resize from other programs, GUIs "
21678 "etc."
21679 msgstr ""
21680
21681 #. type: textblock
21682 #: ../resize/virt-resize.pod:498
21683 msgid ""
21684 "Use the option on its own to query the capabilities of the virt-resize "
21685 "binary.  Typical output looks like this:"
21686 msgstr ""
21687
21688 #. type: verbatim
21689 #: ../resize/virt-resize.pod:501
21690 #, no-wrap
21691 msgid ""
21692 " $ virt-resize --machine-readable\n"
21693 " virt-resize\n"
21694 " ntfsresize-force\n"
21695 " 32bitok\n"
21696 " ntfs\n"
21697 " btrfs\n"
21698 "\n"
21699 msgstr ""
21700
21701 #. type: textblock
21702 #: ../resize/virt-resize.pod:508
21703 msgid ""
21704 "A list of features is printed, one per line, and the program exits with "
21705 "status 0."
21706 msgstr ""
21707
21708 #. type: =head2
21709 #: ../resize/virt-resize.pod:513
21710 msgid "\"Partition 1 does not end on cylinder boundary.\""
21711 msgstr ""
21712
21713 #. type: textblock
21714 #: ../resize/virt-resize.pod:515
21715 msgid ""
21716 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
21717 "means the partitions will not be aligned to the ancient CHS geometry.  "
21718 "However CHS geometry is meaningless for disks manufactured since the early "
21719 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
21720 "cylinders is not required by any modern operating system."
21721 msgstr ""
21722
21723 #. type: =head2
21724 #: ../resize/virt-resize.pod:522
21725 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
21726 msgstr ""
21727
21728 #. type: textblock
21729 #: ../resize/virt-resize.pod:524
21730 msgid ""
21731 "In Windows Vista and later versions, Microsoft switched to using a separate "
21732 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
21733 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
21734 "the boot partition.  Doing so seems to break the guest completely.  However "
21735 "expanding the second partition (ie. C: drive) should work."
21736 msgstr ""
21737
21738 #. type: textblock
21739 #: ../resize/virt-resize.pod:531
21740 msgid ""
21741 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
21742 "NTFS partitions have been expanded.  This is just a safety check and (unless "
21743 "it find errors) is nothing to worry about."
21744 msgstr ""
21745
21746 #. type: =head2
21747 #: ../resize/virt-resize.pod:535
21748 msgid "GUEST BOOT STUCK AT \"GRUB\""
21749 msgstr ""
21750
21751 #. type: textblock
21752 #: ../resize/virt-resize.pod:537
21753 msgid ""
21754 "If a Linux guest does not boot after resizing, and the boot is stuck after "
21755 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
21756 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
21757 "although we think is to do with partition alignment."
21758 msgstr ""
21759
21760 #. type: verbatim
21761 #: ../resize/virt-resize.pod:542
21762 #, no-wrap
21763 msgid ""
21764 " guestfish -i -a newdisk\n"
21765 " ><fs> cat /boot/grub/device.map\n"
21766 " # check the contents of this file are sensible or\n"
21767 " # edit the file if necessary\n"
21768 " ><fs> grub-install / /dev/vda\n"
21769 " ><fs> exit\n"
21770 "\n"
21771 msgstr ""
21772
21773 #. type: textblock
21774 #: ../resize/virt-resize.pod:549
21775 msgid ""
21776 "For more flexible guest reconfiguration, including if you need to specify "
21777 "other parameters to grub-install, use L<virt-rescue(1)>."
21778 msgstr ""
21779
21780 #. type: =head1
21781 #: ../resize/virt-resize.pod:552
21782 msgid "ALTERNATIVE TOOLS"
21783 msgstr ""
21784
21785 #. type: textblock
21786 #: ../resize/virt-resize.pod:554
21787 msgid ""
21788 "There are several proprietary tools for resizing partitions.  We won't "
21789 "mention any here."
21790 msgstr ""
21791
21792 #. type: textblock
21793 #: ../resize/virt-resize.pod:557
21794 msgid ""
21795 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
21796 "operations on disk images.  They can resize and move partitions, but I don't "
21797 "think they can do anything with the contents, and they certainly don't "
21798 "understand LVM."
21799 msgstr ""
21800
21801 #. type: textblock
21802 #: ../resize/virt-resize.pod:562
21803 msgid ""
21804 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
21805 "but at a much lower level.  You will probably end up hand-calculating sector "
21806 "offsets, which is something that virt-resize was designed to avoid.  If you "
21807 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
21808 "I<--debug> flag."
21809 msgstr ""
21810
21811 #. type: textblock
21812 #: ../resize/virt-resize.pod:582
21813 msgid ""
21814 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
21815 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
21816 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
21817 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<http://libguestfs.org/>."
21818 msgstr ""
21819
21820 #. type: textblock
21821 #: ../ruby/examples/guestfs-ruby.pod:5
21822 msgid "guestfs-ruby - How to use libguestfs from Ruby"
21823 msgstr ""
21824
21825 #. type: verbatim
21826 #: ../ruby/examples/guestfs-ruby.pod:9
21827 #, no-wrap
21828 msgid ""
21829 " require 'guestfs'\n"
21830 " g = Guestfs::Guestfs.new()\n"
21831 " g.add_drive_opts(\"disk.img\",\n"
21832 "                  :readonly => 1, :format => \"raw\")\n"
21833 " g.launch()\n"
21834 "\n"
21835 msgstr ""
21836
21837 #. type: textblock
21838 #: ../ruby/examples/guestfs-ruby.pod:17
21839 msgid ""
21840 "This manual page documents how to call libguestfs from the Ruby programming "
21841 "language.  This page just documents the differences from the C API and gives "
21842 "some examples.  If you are not familiar with using libguestfs, you also need "
21843 "to read L<guestfs(3)>."
21844 msgstr ""
21845
21846 #. type: textblock
21847 #: ../ruby/examples/guestfs-ruby.pod:24
21848 msgid ""
21849 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
21850 "This has a single parameter which is the error message (a string)."
21851 msgstr ""
21852
21853 #. type: textblock
21854 #: ../ruby/examples/guestfs-ruby.pod:38
21855 msgid ""
21856 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
21857 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<http://"
21858 "libguestfs.org/>."
21859 msgstr ""
21860
21861 #. type: =head2
21862 #: ../src/guestfs-actions.pod:1
21863 msgid "guestfs_add_cdrom"
21864 msgstr ""
21865
21866 #. type: verbatim
21867 #: ../src/guestfs-actions.pod:3
21868 #, no-wrap
21869 msgid ""
21870 " int\n"
21871 " guestfs_add_cdrom (guestfs_h *g,\n"
21872 "                    const char *filename);\n"
21873 "\n"
21874 msgstr ""
21875
21876 #. type: textblock
21877 #: ../src/guestfs-actions.pod:17
21878 msgid ""
21879 "This call checks for the existence of C<filename>.  This stops you from "
21880 "specifying other types of drive which are supported by qemu such as C<nbd:> "
21881 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
21882 "instead."
21883 msgstr ""
21884
21885 #. type: textblock
21886 #: ../src/guestfs-actions.pod:24
21887 msgid ""
21888 "If you just want to add an ISO file (often you use this as an efficient way "
21889 "to transfer large files into the guest), then you should probably use "
21890 "C<guestfs_add_drive_ro> instead."
21891 msgstr ""
21892
21893 #. type: textblock
21894 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:140
21895 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
21896 #: ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273
21897 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
21898 #: ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447
21899 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506
21900 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552
21901 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652
21902 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681
21903 #: ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798
21904 #: ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826
21905 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046
21906 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084
21907 #: ../src/guestfs-actions.pod:1168 ../src/guestfs-actions.pod:1186
21908 #: ../src/guestfs-actions.pod:1205 ../src/guestfs-actions.pod:1219
21909 #: ../src/guestfs-actions.pod:1239 ../src/guestfs-actions.pod:1309
21910 #: ../src/guestfs-actions.pod:1340 ../src/guestfs-actions.pod:1365
21911 #: ../src/guestfs-actions.pod:1407 ../src/guestfs-actions.pod:1513
21912 #: ../src/guestfs-actions.pod:1547 ../src/guestfs-actions.pod:1762
21913 #: ../src/guestfs-actions.pod:1784 ../src/guestfs-actions.pod:1871
21914 #: ../src/guestfs-actions.pod:2368 ../src/guestfs-actions.pod:2512
21915 #: ../src/guestfs-actions.pod:2573 ../src/guestfs-actions.pod:2608
21916 #: ../src/guestfs-actions.pod:3648 ../src/guestfs-actions.pod:3663
21917 #: ../src/guestfs-actions.pod:3688 ../src/guestfs-actions.pod:3877
21918 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3904
21919 #: ../src/guestfs-actions.pod:3918 ../src/guestfs-actions.pod:3933
21920 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:4041
21921 #: ../src/guestfs-actions.pod:4061 ../src/guestfs-actions.pod:4078
21922 #: ../src/guestfs-actions.pod:4101 ../src/guestfs-actions.pod:4124
21923 #: ../src/guestfs-actions.pod:4159 ../src/guestfs-actions.pod:4178
21924 #: ../src/guestfs-actions.pod:4197 ../src/guestfs-actions.pod:4232
21925 #: ../src/guestfs-actions.pod:4244 ../src/guestfs-actions.pod:4280
21926 #: ../src/guestfs-actions.pod:4296 ../src/guestfs-actions.pod:4309
21927 #: ../src/guestfs-actions.pod:4324 ../src/guestfs-actions.pod:4341
21928 #: ../src/guestfs-actions.pod:4434 ../src/guestfs-actions.pod:4454
21929 #: ../src/guestfs-actions.pod:4467 ../src/guestfs-actions.pod:4518
21930 #: ../src/guestfs-actions.pod:4536 ../src/guestfs-actions.pod:4554
21931 #: ../src/guestfs-actions.pod:4570 ../src/guestfs-actions.pod:4584
21932 #: ../src/guestfs-actions.pod:4598 ../src/guestfs-actions.pod:4615
21933 #: ../src/guestfs-actions.pod:4630 ../src/guestfs-actions.pod:4650
21934 #: ../src/guestfs-actions.pod:4720 ../src/guestfs-actions.pod:4793
21935 #: ../src/guestfs-actions.pod:4824 ../src/guestfs-actions.pod:4843
21936 #: ../src/guestfs-actions.pod:4862 ../src/guestfs-actions.pod:4874
21937 #: ../src/guestfs-actions.pod:4891 ../src/guestfs-actions.pod:4904
21938 #: ../src/guestfs-actions.pod:4919 ../src/guestfs-actions.pod:4934
21939 #: ../src/guestfs-actions.pod:4969 ../src/guestfs-actions.pod:5002
21940 #: ../src/guestfs-actions.pod:5041 ../src/guestfs-actions.pod:5061
21941 #: ../src/guestfs-actions.pod:5075 ../src/guestfs-actions.pod:5092
21942 #: ../src/guestfs-actions.pod:5141 ../src/guestfs-actions.pod:5187
21943 #: ../src/guestfs-actions.pod:5241 ../src/guestfs-actions.pod:5277
21944 #: ../src/guestfs-actions.pod:5312 ../src/guestfs-actions.pod:5329
21945 #: ../src/guestfs-actions.pod:5347 ../src/guestfs-actions.pod:5487
21946 #: ../src/guestfs-actions.pod:5544 ../src/guestfs-actions.pod:5566
21947 #: ../src/guestfs-actions.pod:5584 ../src/guestfs-actions.pod:5616
21948 #: ../src/guestfs-actions.pod:5682 ../src/guestfs-actions.pod:5699
21949 #: ../src/guestfs-actions.pod:5712 ../src/guestfs-actions.pod:5726
21950 #: ../src/guestfs-actions.pod:6015 ../src/guestfs-actions.pod:6034
21951 #: ../src/guestfs-actions.pod:6053 ../src/guestfs-actions.pod:6067
21952 #: ../src/guestfs-actions.pod:6079 ../src/guestfs-actions.pod:6093
21953 #: ../src/guestfs-actions.pod:6105 ../src/guestfs-actions.pod:6119
21954 #: ../src/guestfs-actions.pod:6135 ../src/guestfs-actions.pod:6156
21955 #: ../src/guestfs-actions.pod:6175 ../src/guestfs-actions.pod:6194
21956 #: ../src/guestfs-actions.pod:6224 ../src/guestfs-actions.pod:6242
21957 #: ../src/guestfs-actions.pod:6265 ../src/guestfs-actions.pod:6283
21958 #: ../src/guestfs-actions.pod:6302 ../src/guestfs-actions.pod:6323
21959 #: ../src/guestfs-actions.pod:6342 ../src/guestfs-actions.pod:6359
21960 #: ../src/guestfs-actions.pod:6378 ../src/guestfs-actions.pod:6406
21961 #: ../src/guestfs-actions.pod:6430 ../src/guestfs-actions.pod:6449
21962 #: ../src/guestfs-actions.pod:6473 ../src/guestfs-actions.pod:6492
21963 #: ../src/guestfs-actions.pod:6507 ../src/guestfs-actions.pod:6526
21964 #: ../src/guestfs-actions.pod:6563 ../src/guestfs-actions.pod:6593
21965 #: ../src/guestfs-actions.pod:6626 ../src/guestfs-actions.pod:6748
21966 #: ../src/guestfs-actions.pod:6869 ../src/guestfs-actions.pod:6881
21967 #: ../src/guestfs-actions.pod:6894 ../src/guestfs-actions.pod:6907
21968 #: ../src/guestfs-actions.pod:6929 ../src/guestfs-actions.pod:6942
21969 #: ../src/guestfs-actions.pod:6955 ../src/guestfs-actions.pod:6968
21970 #: ../src/guestfs-actions.pod:6983 ../src/guestfs-actions.pod:7042
21971 #: ../src/guestfs-actions.pod:7059 ../src/guestfs-actions.pod:7075
21972 #: ../src/guestfs-actions.pod:7091 ../src/guestfs-actions.pod:7108
21973 #: ../src/guestfs-actions.pod:7121 ../src/guestfs-actions.pod:7141
21974 #: ../src/guestfs-actions.pod:7177 ../src/guestfs-actions.pod:7191
21975 #: ../src/guestfs-actions.pod:7232 ../src/guestfs-actions.pod:7245
21976 #: ../src/guestfs-actions.pod:7263 ../src/guestfs-actions.pod:7297
21977 #: ../src/guestfs-actions.pod:7333 ../src/guestfs-actions.pod:7449
21978 #: ../src/guestfs-actions.pod:7464 ../src/guestfs-actions.pod:7478
21979 #: ../src/guestfs-actions.pod:7533 ../src/guestfs-actions.pod:7546
21980 #: ../src/guestfs-actions.pod:7591 ../src/guestfs-actions.pod:7624
21981 #: ../src/guestfs-actions.pod:7687 ../src/guestfs-actions.pod:7707
21982 #: ../src/guestfs-actions.pod:7733 ../src/guestfs-actions.pod:7804
21983 #: ../src/guestfs-actions.pod:7827 ../src/guestfs-actions.pod:7856
21984 msgid "This function returns 0 on success or -1 on error."
21985 msgstr ""
21986
21987 #. type: textblock
21988 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:254
21989 #: ../src/guestfs-actions.pod:275
21990 msgid ""
21991 "This function is deprecated.  In new code, use the L</"
21992 "guestfs_add_drive_opts> call instead."
21993 msgstr ""
21994
21995 #. type: textblock
21996 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
21997 #: ../src/guestfs-actions.pod:1170 ../src/guestfs-actions.pod:1985
21998 #: ../src/guestfs-actions.pod:2083 ../src/guestfs-actions.pod:2197
21999 #: ../src/guestfs-actions.pod:3650 ../src/guestfs-actions.pod:3670
22000 #: ../src/guestfs-actions.pod:4978 ../src/guestfs-actions.pod:6244
22001 #: ../src/guestfs-actions.pod:6361 ../src/guestfs-actions.pod:6494
22002 #: ../src/guestfs-actions.pod:6985 ../src/guestfs-actions.pod:7110
22003 #: ../src/guestfs-actions.pod:7633
22004 msgid "(Added in 0.3)"
22005 msgstr ""
22006
22007 #. type: =head2
22008 #: ../src/guestfs-actions.pod:41
22009 msgid "guestfs_add_domain"
22010 msgstr ""
22011
22012 #. type: verbatim
22013 #: ../src/guestfs-actions.pod:43
22014 #, no-wrap
22015 msgid ""
22016 " int\n"
22017 " guestfs_add_domain (guestfs_h *g,\n"
22018 "                     const char *dom,\n"
22019 "                     ...);\n"
22020 "\n"
22021 msgstr ""
22022
22023 #. type: textblock
22024 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
22025 #: ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:2853
22026 #: ../src/guestfs-actions.pod:4669 ../src/guestfs-actions.pod:4988
22027 #: ../src/guestfs-actions.pod:5205
22028 msgid ""
22029 "You may supply a list of optional arguments to this call.  Use zero or more "
22030 "of the following pairs of parameters, and terminate the list with C<-1> on "
22031 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
22032 msgstr ""
22033
22034 #. type: verbatim
22035 #: ../src/guestfs-actions.pod:53
22036 #, no-wrap
22037 msgid ""
22038 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
22039 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
22040 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
22041 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
22042 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
22043 "\n"
22044 msgstr ""
22045
22046 #. type: textblock
22047 #: ../src/guestfs-actions.pod:59
22048 msgid ""
22049 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
22050 "It works by connecting to libvirt, requesting the domain and domain XML from "
22051 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
22052 "one."
22053 msgstr ""
22054
22055 #. type: textblock
22056 #: ../src/guestfs-actions.pod:94
22057 msgid ""
22058 "The other optional parameters are passed directly through to "
22059 "C<guestfs_add_drive_opts>."
22060 msgstr ""
22061
22062 #. type: textblock
22063 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
22064 #: ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698
22065 #: ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747
22066 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1385
22067 #: ../src/guestfs-actions.pod:1741 ../src/guestfs-actions.pod:1944
22068 #: ../src/guestfs-actions.pod:2055 ../src/guestfs-actions.pod:2106
22069 #: ../src/guestfs-actions.pod:2161 ../src/guestfs-actions.pod:2184
22070 #: ../src/guestfs-actions.pod:2499 ../src/guestfs-actions.pod:2971
22071 #: ../src/guestfs-actions.pod:2989 ../src/guestfs-actions.pod:5164
22072 #: ../src/guestfs-actions.pod:5384 ../src/guestfs-actions.pod:5796
22073 #: ../src/guestfs-actions.pod:5822 ../src/guestfs-actions.pod:7218
22074 #: ../src/guestfs-actions.pod:7644 ../src/guestfs-actions.pod:7657
22075 #: ../src/guestfs-actions.pod:7670
22076 msgid "On error this function returns -1."
22077 msgstr ""
22078
22079 #. type: textblock
22080 #: ../src/guestfs-actions.pod:99
22081 msgid "(Added in 1.7.4)"
22082 msgstr ""
22083
22084 #. type: =head2
22085 #: ../src/guestfs-actions.pod:101
22086 msgid "guestfs_add_domain_va"
22087 msgstr ""
22088
22089 #. type: verbatim
22090 #: ../src/guestfs-actions.pod:103
22091 #, no-wrap
22092 msgid ""
22093 " int\n"
22094 " guestfs_add_domain_va (guestfs_h *g,\n"
22095 "                        const char *dom,\n"
22096 "                        va_list args);\n"
22097 "\n"
22098 msgstr ""
22099
22100 #. type: textblock
22101 #: ../src/guestfs-actions.pod:108
22102 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
22103 msgstr ""
22104
22105 #. type: textblock
22106 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
22107 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
22108 #: ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887
22109 #: ../src/guestfs-actions.pod:2937 ../src/guestfs-actions.pod:2949
22110 #: ../src/guestfs-actions.pod:4734 ../src/guestfs-actions.pod:4746
22111 #: ../src/guestfs-actions.pod:5016 ../src/guestfs-actions.pod:5028
22112 #: ../src/guestfs-actions.pod:5254 ../src/guestfs-actions.pod:5265
22113 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
22114 msgstr ""
22115
22116 #. type: =head2
22117 #: ../src/guestfs-actions.pod:112
22118 msgid "guestfs_add_domain_argv"
22119 msgstr ""
22120
22121 #. type: verbatim
22122 #: ../src/guestfs-actions.pod:114
22123 #, no-wrap
22124 msgid ""
22125 " int\n"
22126 " guestfs_add_domain_argv (guestfs_h *g,\n"
22127 "                          const char *dom,\n"
22128 "                          const struct guestfs_add_domain_argv *optargs);\n"
22129 "\n"
22130 msgstr ""
22131
22132 #. type: textblock
22133 #: ../src/guestfs-actions.pod:119
22134 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
22135 msgstr ""
22136
22137 #. type: =head2
22138 #: ../src/guestfs-actions.pod:123
22139 msgid "guestfs_add_drive"
22140 msgstr ""
22141
22142 #. type: verbatim
22143 #: ../src/guestfs-actions.pod:125
22144 #, no-wrap
22145 msgid ""
22146 " int\n"
22147 " guestfs_add_drive (guestfs_h *g,\n"
22148 "                    const char *filename);\n"
22149 "\n"
22150 msgstr ""
22151
22152 #. type: textblock
22153 #: ../src/guestfs-actions.pod:129
22154 msgid ""
22155 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
22156 "optional parameters, so the disk is added writable, with the format being "
22157 "detected automatically."
22158 msgstr ""
22159
22160 #. type: textblock
22161 #: ../src/guestfs-actions.pod:133
22162 msgid ""
22163 "Automatic detection of the format opens you up to a potential security hole "
22164 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
22165 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
22166 "you should think about replacing calls to this function with calls to "
22167 "C<guestfs_add_drive_opts>, and specifying the format."
22168 msgstr ""
22169
22170 #. type: =head2
22171 #: ../src/guestfs-actions.pod:144
22172 msgid "guestfs_add_drive_opts"
22173 msgstr ""
22174
22175 #. type: verbatim
22176 #: ../src/guestfs-actions.pod:146
22177 #, no-wrap
22178 msgid ""
22179 " int\n"
22180 " guestfs_add_drive_opts (guestfs_h *g,\n"
22181 "                         const char *filename,\n"
22182 "                         ...);\n"
22183 "\n"
22184 msgstr ""
22185
22186 #. type: verbatim
22187 #: ../src/guestfs-actions.pod:156
22188 #, no-wrap
22189 msgid ""
22190 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
22191 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
22192 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
22193 "\n"
22194 msgstr ""
22195
22196 #. type: textblock
22197 #: ../src/guestfs-actions.pod:185
22198 msgid ""
22199 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
22200 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
22201 "Possible formats include C<raw> and C<qcow2>."
22202 msgstr ""
22203
22204 #. type: textblock
22205 #: ../src/guestfs-actions.pod:196
22206 msgid ""
22207 "This rarely-used option lets you emulate the behaviour of the deprecated "
22208 "C<guestfs_add_drive_with_if> call (q.v.)"
22209 msgstr ""
22210
22211 #. type: textblock
22212 #: ../src/guestfs-actions.pod:203
22213 msgid "(Added in 1.5.23)"
22214 msgstr ""
22215
22216 #. type: =head2
22217 #: ../src/guestfs-actions.pod:205
22218 msgid "guestfs_add_drive_opts_va"
22219 msgstr ""
22220
22221 #. type: verbatim
22222 #: ../src/guestfs-actions.pod:207
22223 #, no-wrap
22224 msgid ""
22225 " int\n"
22226 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
22227 "                            const char *filename,\n"
22228 "                            va_list args);\n"
22229 "\n"
22230 msgstr ""
22231
22232 #. type: textblock
22233 #: ../src/guestfs-actions.pod:212
22234 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
22235 msgstr ""
22236
22237 #. type: =head2
22238 #: ../src/guestfs-actions.pod:216
22239 msgid "guestfs_add_drive_opts_argv"
22240 msgstr ""
22241
22242 #. type: verbatim
22243 #: ../src/guestfs-actions.pod:218
22244 #, no-wrap
22245 msgid ""
22246 " int\n"
22247 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
22248 "                              const char *filename,\n"
22249 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
22250 "\n"
22251 msgstr ""
22252
22253 #. type: textblock
22254 #: ../src/guestfs-actions.pod:223
22255 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
22256 msgstr ""
22257
22258 #. type: =head2
22259 #: ../src/guestfs-actions.pod:227
22260 msgid "guestfs_add_drive_ro"
22261 msgstr ""
22262
22263 #. type: verbatim
22264 #: ../src/guestfs-actions.pod:229
22265 #, no-wrap
22266 msgid ""
22267 " int\n"
22268 " guestfs_add_drive_ro (guestfs_h *g,\n"
22269 "                       const char *filename);\n"
22270 "\n"
22271 msgstr ""
22272
22273 #. type: textblock
22274 #: ../src/guestfs-actions.pod:233
22275 msgid ""
22276 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
22277 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
22278 "disk is added read-only, with the format being detected automatically."
22279 msgstr ""
22280
22281 #. type: textblock
22282 #: ../src/guestfs-actions.pod:240
22283 msgid "(Added in 1.0.38)"
22284 msgstr ""
22285
22286 #. type: =head2
22287 #: ../src/guestfs-actions.pod:242
22288 msgid "guestfs_add_drive_ro_with_if"
22289 msgstr ""
22290
22291 #. type: verbatim
22292 #: ../src/guestfs-actions.pod:244
22293 #, no-wrap
22294 msgid ""
22295 " int\n"
22296 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
22297 "                               const char *filename,\n"
22298 "                               const char *iface);\n"
22299 "\n"
22300 msgstr ""
22301
22302 #. type: textblock
22303 #: ../src/guestfs-actions.pod:249
22304 msgid ""
22305 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
22306 "QEMU interface emulation to use at run time."
22307 msgstr ""
22308
22309 #. type: textblock
22310 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
22311 #: ../src/guestfs-actions.pod:2458
22312 msgid "(Added in 1.0.84)"
22313 msgstr ""
22314
22315 #. type: =head2
22316 #: ../src/guestfs-actions.pod:263
22317 msgid "guestfs_add_drive_with_if"
22318 msgstr ""
22319
22320 #. type: verbatim
22321 #: ../src/guestfs-actions.pod:265
22322 #, no-wrap
22323 msgid ""
22324 " int\n"
22325 " guestfs_add_drive_with_if (guestfs_h *g,\n"
22326 "                            const char *filename,\n"
22327 "                            const char *iface);\n"
22328 "\n"
22329 msgstr ""
22330
22331 #. type: textblock
22332 #: ../src/guestfs-actions.pod:270
22333 msgid ""
22334 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
22335 "QEMU interface emulation to use at run time."
22336 msgstr ""
22337
22338 #. type: =head2
22339 #: ../src/guestfs-actions.pod:284
22340 msgid "guestfs_aug_clear"
22341 msgstr ""
22342
22343 #. type: verbatim
22344 #: ../src/guestfs-actions.pod:286
22345 #, no-wrap
22346 msgid ""
22347 " int\n"
22348 " guestfs_aug_clear (guestfs_h *g,\n"
22349 "                    const char *augpath);\n"
22350 "\n"
22351 msgstr ""
22352
22353 #. type: textblock
22354 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2186
22355 msgid "(Added in 1.3.4)"
22356 msgstr ""
22357
22358 #. type: =head2
22359 #: ../src/guestfs-actions.pod:297
22360 msgid "guestfs_aug_close"
22361 msgstr ""
22362
22363 #. type: verbatim
22364 #: ../src/guestfs-actions.pod:299
22365 #, no-wrap
22366 msgid ""
22367 " int\n"
22368 " guestfs_aug_close (guestfs_h *g);\n"
22369 "\n"
22370 msgstr ""
22371
22372 #. type: textblock
22373 #: ../src/guestfs-actions.pod:302
22374 msgid ""
22375 "Close the current Augeas handle and free up any resources used by it.  After "
22376 "calling this, you have to call C<guestfs_aug_init> again before you can use "
22377 "any other Augeas functions."
22378 msgstr ""
22379
22380 #. type: textblock
22381 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
22382 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
22383 #: ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449
22384 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494
22385 #: ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522
22386 #: ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554
22387 #: ../src/guestfs-actions.pod:5873
22388 msgid "(Added in 0.7)"
22389 msgstr ""
22390
22391 #. type: =head2
22392 #: ../src/guestfs-actions.pod:311
22393 msgid "guestfs_aug_defnode"
22394 msgstr ""
22395
22396 #. type: verbatim
22397 #: ../src/guestfs-actions.pod:313
22398 #, no-wrap
22399 msgid ""
22400 " struct guestfs_int_bool *\n"
22401 " guestfs_aug_defnode (guestfs_h *g,\n"
22402 "                      const char *name,\n"
22403 "                      const char *expr,\n"
22404 "                      const char *val);\n"
22405 "\n"
22406 msgstr ""
22407
22408 #. type: textblock
22409 #: ../src/guestfs-actions.pod:322
22410 msgid ""
22411 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
22412 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
22413 "containing that single node."
22414 msgstr ""
22415
22416 #. type: textblock
22417 #: ../src/guestfs-actions.pod:330
22418 msgid ""
22419 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
22420 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
22421 msgstr ""
22422
22423 #. type: =head2
22424 #: ../src/guestfs-actions.pod:336
22425 msgid "guestfs_aug_defvar"
22426 msgstr ""
22427
22428 #. type: verbatim
22429 #: ../src/guestfs-actions.pod:338
22430 #, no-wrap
22431 msgid ""
22432 " int\n"
22433 " guestfs_aug_defvar (guestfs_h *g,\n"
22434 "                     const char *name,\n"
22435 "                     const char *expr);\n"
22436 "\n"
22437 msgstr ""
22438
22439 #. type: =head2
22440 #: ../src/guestfs-actions.pod:354
22441 msgid "guestfs_aug_get"
22442 msgstr ""
22443
22444 #. type: verbatim
22445 #: ../src/guestfs-actions.pod:356
22446 #, no-wrap
22447 msgid ""
22448 " char *\n"
22449 " guestfs_aug_get (guestfs_h *g,\n"
22450 "                  const char *augpath);\n"
22451 "\n"
22452 msgstr ""
22453
22454 #. type: textblock
22455 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927
22456 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005
22457 #: ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124
22458 #: ../src/guestfs-actions.pod:1254 ../src/guestfs-actions.pod:1271
22459 #: ../src/guestfs-actions.pod:1290 ../src/guestfs-actions.pod:1424
22460 #: ../src/guestfs-actions.pod:1612 ../src/guestfs-actions.pod:1724
22461 #: ../src/guestfs-actions.pod:1887 ../src/guestfs-actions.pod:1904
22462 #: ../src/guestfs-actions.pod:1971 ../src/guestfs-actions.pod:2007
22463 #: ../src/guestfs-actions.pod:2028 ../src/guestfs-actions.pod:2209
22464 #: ../src/guestfs-actions.pod:2423 ../src/guestfs-actions.pod:2627
22465 #: ../src/guestfs-actions.pod:2717 ../src/guestfs-actions.pod:2821
22466 #: ../src/guestfs-actions.pod:2840 ../src/guestfs-actions.pod:3054
22467 #: ../src/guestfs-actions.pod:3082 ../src/guestfs-actions.pod:3103
22468 #: ../src/guestfs-actions.pod:3137 ../src/guestfs-actions.pod:3196
22469 #: ../src/guestfs-actions.pod:3216 ../src/guestfs-actions.pod:3236
22470 #: ../src/guestfs-actions.pod:3863 ../src/guestfs-actions.pod:4216
22471 #: ../src/guestfs-actions.pod:4386 ../src/guestfs-actions.pod:4496
22472 #: ../src/guestfs-actions.pod:5402 ../src/guestfs-actions.pod:5601
22473 #: ../src/guestfs-actions.pod:5771 ../src/guestfs-actions.pod:5949
22474 #: ../src/guestfs-actions.pod:5998 ../src/guestfs-actions.pod:6654
22475 #: ../src/guestfs-actions.pod:6670 ../src/guestfs-actions.pod:6687
22476 #: ../src/guestfs-actions.pod:6718 ../src/guestfs-actions.pod:7392
22477 #: ../src/guestfs-actions.pod:7411 ../src/guestfs-actions.pod:7429
22478 #: ../src/guestfs-actions.pod:7603 ../src/guestfs-actions.pod:7913
22479 msgid ""
22480 "This function returns a string, or NULL on error.  I<The caller must free "
22481 "the returned string after use>."
22482 msgstr ""
22483
22484 #. type: =head2
22485 #: ../src/guestfs-actions.pod:368
22486 msgid "guestfs_aug_init"
22487 msgstr ""
22488
22489 #. type: verbatim
22490 #: ../src/guestfs-actions.pod:370
22491 #, no-wrap
22492 msgid ""
22493 " int\n"
22494 " guestfs_aug_init (guestfs_h *g,\n"
22495 "                   const char *root,\n"
22496 "                   int flags);\n"
22497 "\n"
22498 msgstr ""
22499
22500 #. type: textblock
22501 #: ../src/guestfs-actions.pod:379
22502 msgid "You must call this before using any other C<guestfs_aug_*> commands."
22503 msgstr ""
22504
22505 #. type: textblock
22506 #: ../src/guestfs-actions.pod:404
22507 msgid ""
22508 "This option is only useful when debugging Augeas lenses.  Use of this option "
22509 "may require additional memory for the libguestfs appliance.  You may need to "
22510 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
22511 "C<guestfs_set_memsize>."
22512 msgstr ""
22513
22514 #. type: textblock
22515 #: ../src/guestfs-actions.pod:419
22516 msgid "Do not load the tree in C<guestfs_aug_init>."
22517 msgstr ""
22518
22519 #. type: textblock
22520 #: ../src/guestfs-actions.pod:423
22521 msgid "To close the handle, you can call C<guestfs_aug_close>."
22522 msgstr ""
22523
22524 #. type: =head2
22525 #: ../src/guestfs-actions.pod:431
22526 msgid "guestfs_aug_insert"
22527 msgstr ""
22528
22529 #. type: verbatim
22530 #: ../src/guestfs-actions.pod:433
22531 #, no-wrap
22532 msgid ""
22533 " int\n"
22534 " guestfs_aug_insert (guestfs_h *g,\n"
22535 "                     const char *augpath,\n"
22536 "                     const char *label,\n"
22537 "                     int before);\n"
22538 "\n"
22539 msgstr ""
22540
22541 #. type: =head2
22542 #: ../src/guestfs-actions.pod:451
22543 msgid "guestfs_aug_load"
22544 msgstr ""
22545
22546 #. type: verbatim
22547 #: ../src/guestfs-actions.pod:453
22548 #, no-wrap
22549 msgid ""
22550 " int\n"
22551 " guestfs_aug_load (guestfs_h *g);\n"
22552 "\n"
22553 msgstr ""
22554
22555 #. type: =head2
22556 #: ../src/guestfs-actions.pod:465
22557 msgid "guestfs_aug_ls"
22558 msgstr ""
22559
22560 #. type: verbatim
22561 #: ../src/guestfs-actions.pod:467
22562 #, no-wrap
22563 msgid ""
22564 " char **\n"
22565 " guestfs_aug_ls (guestfs_h *g,\n"
22566 "                 const char *augpath);\n"
22567 "\n"
22568 msgstr ""
22569
22570 #. type: textblock
22571 #: ../src/guestfs-actions.pod:471
22572 msgid ""
22573 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
22574 "sorting the resulting nodes into alphabetical order."
22575 msgstr ""
22576
22577 #. type: textblock
22578 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490
22579 #: ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143
22580 #: ../src/guestfs-actions.pod:1439 ../src/guestfs-actions.pod:1458
22581 #: ../src/guestfs-actions.pod:1561 ../src/guestfs-actions.pod:1580
22582 #: ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:2281
22583 #: ../src/guestfs-actions.pod:2297 ../src/guestfs-actions.pod:2316
22584 #: ../src/guestfs-actions.pod:2381 ../src/guestfs-actions.pod:2405
22585 #: ../src/guestfs-actions.pod:2476 ../src/guestfs-actions.pod:2525
22586 #: ../src/guestfs-actions.pod:2782 ../src/guestfs-actions.pod:3156
22587 #: ../src/guestfs-actions.pod:3432 ../src/guestfs-actions.pod:3746
22588 #: ../src/guestfs-actions.pod:3763 ../src/guestfs-actions.pod:3783
22589 #: ../src/guestfs-actions.pod:3845 ../src/guestfs-actions.pod:3950
22590 #: ../src/guestfs-actions.pod:4358 ../src/guestfs-actions.pod:5125
22591 #: ../src/guestfs-actions.pod:5743 ../src/guestfs-actions.pod:5869
22592 #: ../src/guestfs-actions.pod:5983 ../src/guestfs-actions.pod:6734
22593 #: ../src/guestfs-actions.pod:6795 ../src/guestfs-actions.pod:6850
22594 #: ../src/guestfs-actions.pod:6996 ../src/guestfs-actions.pod:7020
22595 #: ../src/guestfs-actions.pod:7496 ../src/guestfs-actions.pod:7516
22596 #: ../src/guestfs-actions.pod:7563 ../src/guestfs-actions.pod:7757
22597 #: ../src/guestfs-actions.pod:7776 ../src/guestfs-actions.pod:7870
22598 #: ../src/guestfs-actions.pod:7889 ../src/guestfs-actions.pod:7935
22599 #: ../src/guestfs-actions.pod:7954
22600 msgid ""
22601 "This function returns a NULL-terminated array of strings (like L<environ(3)"
22602 ">), or NULL if there was an error.  I<The caller must free the strings and "
22603 "the array after use>."
22604 msgstr ""
22605
22606 #. type: textblock
22607 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068
22608 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1496
22609 #: ../src/guestfs-actions.pod:3510 ../src/guestfs-actions.pod:3541
22610 #: ../src/guestfs-actions.pod:4199 ../src/guestfs-actions.pod:4249
22611 #: ../src/guestfs-actions.pod:4436 ../src/guestfs-actions.pod:4469
22612 #: ../src/guestfs-actions.pod:4632 ../src/guestfs-actions.pod:5129
22613 #: ../src/guestfs-actions.pod:5684 ../src/guestfs-actions.pod:6081
22614 #: ../src/guestfs-actions.pod:6095 ../src/guestfs-actions.pod:6107
22615 #: ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:7234
22616 #: ../src/guestfs-actions.pod:7247 ../src/guestfs-actions.pod:7480
22617 #: ../src/guestfs-actions.pod:7745
22618 msgid "(Added in 0.8)"
22619 msgstr ""
22620
22621 #. type: =head2
22622 #: ../src/guestfs-actions.pod:480
22623 msgid "guestfs_aug_match"
22624 msgstr ""
22625
22626 #. type: verbatim
22627 #: ../src/guestfs-actions.pod:482
22628 #, no-wrap
22629 msgid ""
22630 " char **\n"
22631 " guestfs_aug_match (guestfs_h *g,\n"
22632 "                    const char *augpath);\n"
22633 "\n"
22634 msgstr ""
22635
22636 #. type: =head2
22637 #: ../src/guestfs-actions.pod:496
22638 msgid "guestfs_aug_mv"
22639 msgstr ""
22640
22641 #. type: verbatim
22642 #: ../src/guestfs-actions.pod:498
22643 #, no-wrap
22644 msgid ""
22645 " int\n"
22646 " guestfs_aug_mv (guestfs_h *g,\n"
22647 "                 const char *src,\n"
22648 "                 const char *dest);\n"
22649 "\n"
22650 msgstr ""
22651
22652 #. type: =head2
22653 #: ../src/guestfs-actions.pod:510
22654 msgid "guestfs_aug_rm"
22655 msgstr ""
22656
22657 #. type: verbatim
22658 #: ../src/guestfs-actions.pod:512
22659 #, no-wrap
22660 msgid ""
22661 " int\n"
22662 " guestfs_aug_rm (guestfs_h *g,\n"
22663 "                 const char *augpath);\n"
22664 "\n"
22665 msgstr ""
22666
22667 #. type: =head2
22668 #: ../src/guestfs-actions.pod:524
22669 msgid "guestfs_aug_save"
22670 msgstr ""
22671
22672 #. type: verbatim
22673 #: ../src/guestfs-actions.pod:526
22674 #, no-wrap
22675 msgid ""
22676 " int\n"
22677 " guestfs_aug_save (guestfs_h *g);\n"
22678 "\n"
22679 msgstr ""
22680
22681 #. type: textblock
22682 #: ../src/guestfs-actions.pod:531
22683 msgid ""
22684 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
22685 "are saved."
22686 msgstr ""
22687
22688 #. type: =head2
22689 #: ../src/guestfs-actions.pod:538
22690 msgid "guestfs_aug_set"
22691 msgstr ""
22692
22693 #. type: verbatim
22694 #: ../src/guestfs-actions.pod:540
22695 #, no-wrap
22696 msgid ""
22697 " int\n"
22698 " guestfs_aug_set (guestfs_h *g,\n"
22699 "                  const char *augpath,\n"
22700 "                  const char *val);\n"
22701 "\n"
22702 msgstr ""
22703
22704 #. type: textblock
22705 #: ../src/guestfs-actions.pod:547
22706 msgid ""
22707 "In the Augeas API, it is possible to clear a node by setting the value to "
22708 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
22709 "this call.  Instead you must use the C<guestfs_aug_clear> call."
22710 msgstr ""
22711
22712 #. type: =head2
22713 #: ../src/guestfs-actions.pod:556
22714 msgid "guestfs_available"
22715 msgstr ""
22716
22717 #. type: verbatim
22718 #: ../src/guestfs-actions.pod:558
22719 #, no-wrap
22720 msgid ""
22721 " int\n"
22722 " guestfs_available (guestfs_h *g,\n"
22723 "                    char *const *groups);\n"
22724 "\n"
22725 msgstr ""
22726
22727 #. type: textblock
22728 #: ../src/guestfs-actions.pod:566
22729 msgid ""
22730 "The libguestfs groups, and the functions that those groups correspond to, "
22731 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
22732 "runtime by calling C<guestfs_available_all_groups>."
22733 msgstr ""
22734
22735 #. type: textblock
22736 #: ../src/guestfs-actions.pod:590
22737 msgid "You must call C<guestfs_launch> before calling this function."
22738 msgstr ""
22739
22740 #. type: textblock
22741 #: ../src/guestfs-actions.pod:612
22742 msgid ""
22743 "This call was added in version C<1.0.80>.  In previous versions of "
22744 "libguestfs all you could do would be to speculatively execute a command to "
22745 "find out if the daemon implemented it.  See also C<guestfs_version>."
22746 msgstr ""
22747
22748 #. type: textblock
22749 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1241
22750 msgid "(Added in 1.0.80)"
22751 msgstr ""
22752
22753 #. type: =head2
22754 #: ../src/guestfs-actions.pod:623
22755 msgid "guestfs_available_all_groups"
22756 msgstr ""
22757
22758 #. type: verbatim
22759 #: ../src/guestfs-actions.pod:625
22760 #, no-wrap
22761 msgid ""
22762 " char **\n"
22763 " guestfs_available_all_groups (guestfs_h *g);\n"
22764 "\n"
22765 msgstr ""
22766
22767 #. type: textblock
22768 #: ../src/guestfs-actions.pod:628
22769 msgid ""
22770 "This command returns a list of all optional groups that this daemon knows "
22771 "about.  Note this returns both supported and unsupported groups.  To find "
22772 "out which ones the daemon can actually support you have to call "
22773 "C<guestfs_available> on each member of the returned list."
22774 msgstr ""
22775
22776 #. type: textblock
22777 #: ../src/guestfs-actions.pod:634
22778 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
22779 msgstr ""
22780
22781 #. type: textblock
22782 #: ../src/guestfs-actions.pod:640
22783 msgid "(Added in 1.3.15)"
22784 msgstr ""
22785
22786 #. type: =head2
22787 #: ../src/guestfs-actions.pod:642
22788 msgid "guestfs_base64_in"
22789 msgstr ""
22790
22791 #. type: verbatim
22792 #: ../src/guestfs-actions.pod:644
22793 #, no-wrap
22794 msgid ""
22795 " int\n"
22796 " guestfs_base64_in (guestfs_h *g,\n"
22797 "                    const char *base64file,\n"
22798 "                    const char *filename);\n"
22799 "\n"
22800 msgstr ""
22801
22802 #. type: textblock
22803 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
22804 msgid "(Added in 1.3.5)"
22805 msgstr ""
22806
22807 #. type: =head2
22808 #: ../src/guestfs-actions.pod:656
22809 msgid "guestfs_base64_out"
22810 msgstr ""
22811
22812 #. type: verbatim
22813 #: ../src/guestfs-actions.pod:658
22814 #, no-wrap
22815 msgid ""
22816 " int\n"
22817 " guestfs_base64_out (guestfs_h *g,\n"
22818 "                     const char *filename,\n"
22819 "                     const char *base64file);\n"
22820 "\n"
22821 msgstr ""
22822
22823 #. type: =head2
22824 #: ../src/guestfs-actions.pod:670
22825 msgid "guestfs_blockdev_flushbufs"
22826 msgstr ""
22827
22828 #. type: verbatim
22829 #: ../src/guestfs-actions.pod:672
22830 #, no-wrap
22831 msgid ""
22832 " int\n"
22833 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
22834 "                             const char *device);\n"
22835 "\n"
22836 msgstr ""
22837
22838 #. type: textblock
22839 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700
22840 #: ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731
22841 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768
22842 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
22843 #: ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
22844 msgid "(Added in 0.9.3)"
22845 msgstr ""
22846
22847 #. type: =head2
22848 #: ../src/guestfs-actions.pod:685
22849 msgid "guestfs_blockdev_getbsz"
22850 msgstr ""
22851
22852 #. type: verbatim
22853 #: ../src/guestfs-actions.pod:687
22854 #, no-wrap
22855 msgid ""
22856 " int\n"
22857 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
22858 "                          const char *device);\n"
22859 "\n"
22860 msgstr ""
22861
22862 #. type: =head2
22863 #: ../src/guestfs-actions.pod:702
22864 msgid "guestfs_blockdev_getro"
22865 msgstr ""
22866
22867 #. type: verbatim
22868 #: ../src/guestfs-actions.pod:704
22869 #, no-wrap
22870 msgid ""
22871 " int\n"
22872 " guestfs_blockdev_getro (guestfs_h *g,\n"
22873 "                         const char *device);\n"
22874 "\n"
22875 msgstr ""
22876
22877 #. type: textblock
22878 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1479
22879 #: ../src/guestfs-actions.pod:1494 ../src/guestfs-actions.pod:1983
22880 #: ../src/guestfs-actions.pod:1994 ../src/guestfs-actions.pod:2066
22881 #: ../src/guestfs-actions.pod:2092 ../src/guestfs-actions.pod:2132
22882 #: ../src/guestfs-actions.pod:2147 ../src/guestfs-actions.pod:2172
22883 #: ../src/guestfs-actions.pod:2195 ../src/guestfs-actions.pod:3253
22884 #: ../src/guestfs-actions.pod:3269 ../src/guestfs-actions.pod:3287
22885 #: ../src/guestfs-actions.pod:3449 ../src/guestfs-actions.pod:3463
22886 #: ../src/guestfs-actions.pod:3478 ../src/guestfs-actions.pod:3492
22887 #: ../src/guestfs-actions.pod:3508 ../src/guestfs-actions.pod:3523
22888 #: ../src/guestfs-actions.pod:3539 ../src/guestfs-actions.pod:3553
22889 #: ../src/guestfs-actions.pod:3566 ../src/guestfs-actions.pod:3580
22890 #: ../src/guestfs-actions.pod:3595 ../src/guestfs-actions.pod:3610
22891 #: ../src/guestfs-actions.pod:3623 ../src/guestfs-actions.pod:3637
22892 #: ../src/guestfs-actions.pod:5366
22893 msgid "This function returns a C truth value on success or -1 on error."
22894 msgstr ""
22895
22896 #. type: =head2
22897 #: ../src/guestfs-actions.pod:717
22898 msgid "guestfs_blockdev_getsize64"
22899 msgstr ""
22900
22901 #. type: verbatim
22902 #: ../src/guestfs-actions.pod:719
22903 #, no-wrap
22904 msgid ""
22905 " int64_t\n"
22906 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
22907 "                             const char *device);\n"
22908 "\n"
22909 msgstr ""
22910
22911 #. type: textblock
22912 #: ../src/guestfs-actions.pod:725
22913 msgid "See also C<guestfs_blockdev_getsz>."
22914 msgstr ""
22915
22916 #. type: =head2
22917 #: ../src/guestfs-actions.pod:733
22918 msgid "guestfs_blockdev_getss"
22919 msgstr ""
22920
22921 #. type: verbatim
22922 #: ../src/guestfs-actions.pod:735
22923 #, no-wrap
22924 msgid ""
22925 " int\n"
22926 " guestfs_blockdev_getss (guestfs_h *g,\n"
22927 "                         const char *device);\n"
22928 "\n"
22929 msgstr ""
22930
22931 #. type: textblock
22932 #: ../src/guestfs-actions.pod:742
22933 msgid ""
22934 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
22935 "that)."
22936 msgstr ""
22937
22938 #. type: =head2
22939 #: ../src/guestfs-actions.pod:751
22940 msgid "guestfs_blockdev_getsz"
22941 msgstr ""
22942
22943 #. type: verbatim
22944 #: ../src/guestfs-actions.pod:753
22945 #, no-wrap
22946 msgid ""
22947 " int64_t\n"
22948 " guestfs_blockdev_getsz (guestfs_h *g,\n"
22949 "                         const char *device);\n"
22950 "\n"
22951 msgstr ""
22952
22953 #. type: textblock
22954 #: ../src/guestfs-actions.pod:760
22955 msgid ""
22956 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
22957 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
22958 msgstr ""
22959
22960 #. type: =head2
22961 #: ../src/guestfs-actions.pod:770
22962 msgid "guestfs_blockdev_rereadpt"
22963 msgstr ""
22964
22965 #. type: verbatim
22966 #: ../src/guestfs-actions.pod:772
22967 #, no-wrap
22968 msgid ""
22969 " int\n"
22970 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
22971 "                            const char *device);\n"
22972 "\n"
22973 msgstr ""
22974
22975 #. type: =head2
22976 #: ../src/guestfs-actions.pod:784
22977 msgid "guestfs_blockdev_setbsz"
22978 msgstr ""
22979
22980 #. type: verbatim
22981 #: ../src/guestfs-actions.pod:786
22982 #, no-wrap
22983 msgid ""
22984 " int\n"
22985 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
22986 "                          const char *device,\n"
22987 "                          int blocksize);\n"
22988 "\n"
22989 msgstr ""
22990
22991 #. type: =head2
22992 #: ../src/guestfs-actions.pod:802
22993 msgid "guestfs_blockdev_setro"
22994 msgstr ""
22995
22996 #. type: verbatim
22997 #: ../src/guestfs-actions.pod:804
22998 #, no-wrap
22999 msgid ""
23000 " int\n"
23001 " guestfs_blockdev_setro (guestfs_h *g,\n"
23002 "                         const char *device);\n"
23003 "\n"
23004 msgstr ""
23005
23006 #. type: =head2
23007 #: ../src/guestfs-actions.pod:816
23008 msgid "guestfs_blockdev_setrw"
23009 msgstr ""
23010
23011 #. type: verbatim
23012 #: ../src/guestfs-actions.pod:818
23013 #, no-wrap
23014 msgid ""
23015 " int\n"
23016 " guestfs_blockdev_setrw (guestfs_h *g,\n"
23017 "                         const char *device);\n"
23018 "\n"
23019 msgstr ""
23020
23021 #. type: =head2
23022 #: ../src/guestfs-actions.pod:830
23023 msgid "guestfs_btrfs_filesystem_resize"
23024 msgstr ""
23025
23026 #. type: verbatim
23027 #: ../src/guestfs-actions.pod:832
23028 #, no-wrap
23029 msgid ""
23030 " int\n"
23031 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
23032 "                                  const char *mountpoint,\n"
23033 "                                  ...);\n"
23034 "\n"
23035 msgstr ""
23036
23037 #. type: verbatim
23038 #: ../src/guestfs-actions.pod:842
23039 #, no-wrap
23040 msgid ""
23041 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
23042 "\n"
23043 msgstr ""
23044
23045 #. type: textblock
23046 #: ../src/guestfs-actions.pod:865
23047 msgid "(Added in 1.11.17)"
23048 msgstr ""
23049
23050 #. type: =head2
23051 #: ../src/guestfs-actions.pod:867
23052 msgid "guestfs_btrfs_filesystem_resize_va"
23053 msgstr ""
23054
23055 #. type: verbatim
23056 #: ../src/guestfs-actions.pod:869
23057 #, no-wrap
23058 msgid ""
23059 " int\n"
23060 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
23061 "                                     const char *mountpoint,\n"
23062 "                                     va_list args);\n"
23063 "\n"
23064 msgstr ""
23065
23066 #. type: textblock
23067 #: ../src/guestfs-actions.pod:874
23068 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
23069 msgstr ""
23070
23071 #. type: =head2
23072 #: ../src/guestfs-actions.pod:878
23073 msgid "guestfs_btrfs_filesystem_resize_argv"
23074 msgstr ""
23075
23076 #. type: verbatim
23077 #: ../src/guestfs-actions.pod:880
23078 #, no-wrap
23079 msgid ""
23080 " int\n"
23081 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
23082 "                                       const char *mountpoint,\n"
23083 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
23084 "\n"
23085 msgstr ""
23086
23087 #. type: textblock
23088 #: ../src/guestfs-actions.pod:885
23089 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
23090 msgstr ""
23091
23092 #. type: =head2
23093 #: ../src/guestfs-actions.pod:889
23094 msgid "guestfs_case_sensitive_path"
23095 msgstr ""
23096
23097 #. type: verbatim
23098 #: ../src/guestfs-actions.pod:891
23099 #, no-wrap
23100 msgid ""
23101 " char *\n"
23102 " guestfs_case_sensitive_path (guestfs_h *g,\n"
23103 "                              const char *path);\n"
23104 "\n"
23105 msgstr ""
23106
23107 #. type: textblock
23108 #: ../src/guestfs-actions.pod:917
23109 msgid ""
23110 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
23111 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
23112 "how the directories were originally created under Windows)."
23113 msgstr ""
23114
23115 #. type: textblock
23116 #: ../src/guestfs-actions.pod:925
23117 msgid "See also C<guestfs_realpath>."
23118 msgstr ""
23119
23120 #. type: textblock
23121 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7414
23122 msgid "(Added in 1.0.75)"
23123 msgstr ""
23124
23125 #. type: =head2
23126 #: ../src/guestfs-actions.pod:932
23127 msgid "guestfs_cat"
23128 msgstr ""
23129
23130 #. type: verbatim
23131 #: ../src/guestfs-actions.pod:934
23132 #, no-wrap
23133 msgid ""
23134 " char *\n"
23135 " guestfs_cat (guestfs_h *g,\n"
23136 "              const char *path);\n"
23137 "\n"
23138 msgstr ""
23139
23140 #. type: textblock
23141 #: ../src/guestfs-actions.pod:940
23142 msgid ""
23143 "Note that this function cannot correctly handle binary files (specifically, "
23144 "files containing C<\\0> character which is treated as end of string).  For "
23145 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
23146 "functions which have a more complex interface."
23147 msgstr ""
23148
23149 #. type: textblock
23150 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3767
23151 #: ../src/guestfs-actions.pod:3849 ../src/guestfs-actions.pod:3866
23152 #: ../src/guestfs-actions.pod:3954 ../src/guestfs-actions.pod:4362
23153 #: ../src/guestfs-actions.pod:4376 ../src/guestfs-actions.pod:5747
23154 #: ../src/guestfs-actions.pod:5761 ../src/guestfs-actions.pod:7567
23155 #: ../src/guestfs-actions.pod:7581
23156 msgid "(Added in 0.4)"
23157 msgstr ""
23158
23159 #. type: =head2
23160 #: ../src/guestfs-actions.pod:953
23161 msgid "guestfs_checksum"
23162 msgstr ""
23163
23164 #. type: verbatim
23165 #: ../src/guestfs-actions.pod:955
23166 #, no-wrap
23167 msgid ""
23168 " char *\n"
23169 " guestfs_checksum (guestfs_h *g,\n"
23170 "                   const char *csumtype,\n"
23171 "                   const char *path);\n"
23172 "\n"
23173 msgstr ""
23174
23175 #. type: textblock
23176 #: ../src/guestfs-actions.pod:1001
23177 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
23178 msgstr ""
23179
23180 #. type: textblock
23181 #: ../src/guestfs-actions.pod:1003
23182 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
23183 msgstr ""
23184
23185 #. type: textblock
23186 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1316
23187 #: ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:3465
23188 #: ../src/guestfs-actions.pod:3494 ../src/guestfs-actions.pod:3555
23189 #: ../src/guestfs-actions.pod:3582 ../src/guestfs-actions.pod:7270
23190 msgid "(Added in 1.0.2)"
23191 msgstr ""
23192
23193 #. type: =head2
23194 #: ../src/guestfs-actions.pod:1010
23195 msgid "guestfs_checksum_device"
23196 msgstr ""
23197
23198 #. type: verbatim
23199 #: ../src/guestfs-actions.pod:1012
23200 #, no-wrap
23201 msgid ""
23202 " char *\n"
23203 " guestfs_checksum_device (guestfs_h *g,\n"
23204 "                          const char *csumtype,\n"
23205 "                          const char *device);\n"
23206 "\n"
23207 msgstr ""
23208
23209 #. type: textblock
23210 #: ../src/guestfs-actions.pod:1017
23211 msgid ""
23212 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
23213 "device named C<device>.  For the types of checksums supported see the "
23214 "C<guestfs_checksum> command."
23215 msgstr ""
23216
23217 #. type: textblock
23218 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5196
23219 #: ../src/guestfs-actions.pod:5331 ../src/guestfs-actions.pod:5368
23220 #: ../src/guestfs-actions.pod:5386 ../src/guestfs-actions.pod:5568
23221 #: ../src/guestfs-actions.pod:7179 ../src/guestfs-actions.pod:7193
23222 #: ../src/guestfs-actions.pod:7593
23223 msgid "(Added in 1.3.2)"
23224 msgstr ""
23225
23226 #. type: =head2
23227 #: ../src/guestfs-actions.pod:1026
23228 msgid "guestfs_checksums_out"
23229 msgstr ""
23230
23231 #. type: verbatim
23232 #: ../src/guestfs-actions.pod:1028
23233 #, no-wrap
23234 msgid ""
23235 " int\n"
23236 " guestfs_checksums_out (guestfs_h *g,\n"
23237 "                        const char *csumtype,\n"
23238 "                        const char *directory,\n"
23239 "                        const char *sumsfile);\n"
23240 "\n"
23241 msgstr ""
23242
23243 #. type: textblock
23244 #: ../src/guestfs-actions.pod:1048
23245 msgid "(Added in 1.3.7)"
23246 msgstr ""
23247
23248 #. type: =head2
23249 #: ../src/guestfs-actions.pod:1050
23250 msgid "guestfs_chmod"
23251 msgstr ""
23252
23253 #. type: verbatim
23254 #: ../src/guestfs-actions.pod:1052
23255 #, no-wrap
23256 msgid ""
23257 " int\n"
23258 " guestfs_chmod (guestfs_h *g,\n"
23259 "                int mode,\n"
23260 "                const char *path);\n"
23261 "\n"
23262 msgstr ""
23263
23264 #. type: =head2
23265 #: ../src/guestfs-actions.pod:1070
23266 msgid "guestfs_chown"
23267 msgstr ""
23268
23269 #. type: verbatim
23270 #: ../src/guestfs-actions.pod:1072
23271 #, no-wrap
23272 msgid ""
23273 " int\n"
23274 " guestfs_chown (guestfs_h *g,\n"
23275 "                int owner,\n"
23276 "                int group,\n"
23277 "                const char *path);\n"
23278 "\n"
23279 msgstr ""
23280
23281 #. type: =head2
23282 #: ../src/guestfs-actions.pod:1088
23283 msgid "guestfs_command"
23284 msgstr ""
23285
23286 #. type: verbatim
23287 #: ../src/guestfs-actions.pod:1090
23288 #, no-wrap
23289 msgid ""
23290 " char *\n"
23291 " guestfs_command (guestfs_h *g,\n"
23292 "                  char *const *arguments);\n"
23293 "\n"
23294 msgstr ""
23295
23296 #. type: textblock
23297 #: ../src/guestfs-actions.pod:1099
23298 msgid ""
23299 "The single parameter is an argv-style list of arguments.  The first element "
23300 "is the name of the program to run.  Subsequent elements are parameters.  The "
23301 "list must be non-empty (ie. must contain a program name).  Note that the "
23302 "command runs directly, and is I<not> invoked via the shell (see "
23303 "C<guestfs_sh>)."
23304 msgstr ""
23305
23306 #. type: textblock
23307 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150
23308 #: ../src/guestfs-actions.pod:1615
23309 msgid "(Added in 0.9.1)"
23310 msgstr ""
23311
23312 #. type: =head2
23313 #: ../src/guestfs-actions.pod:1132
23314 msgid "guestfs_command_lines"
23315 msgstr ""
23316
23317 #. type: verbatim
23318 #: ../src/guestfs-actions.pod:1134
23319 #, no-wrap
23320 msgid ""
23321 " char **\n"
23322 " guestfs_command_lines (guestfs_h *g,\n"
23323 "                        char *const *arguments);\n"
23324 "\n"
23325 msgstr ""
23326
23327 #. type: textblock
23328 #: ../src/guestfs-actions.pod:1138
23329 msgid ""
23330 "This is the same as C<guestfs_command>, but splits the result into a list of "
23331 "lines."
23332 msgstr ""
23333
23334 #. type: textblock
23335 #: ../src/guestfs-actions.pod:1141
23336 msgid "See also: C<guestfs_sh_lines>"
23337 msgstr ""
23338
23339 #. type: =head2
23340 #: ../src/guestfs-actions.pod:1152
23341 msgid "guestfs_config"
23342 msgstr ""
23343
23344 #. type: verbatim
23345 #: ../src/guestfs-actions.pod:1154
23346 #, no-wrap
23347 msgid ""
23348 " int\n"
23349 " guestfs_config (guestfs_h *g,\n"
23350 "                 const char *qemuparam,\n"
23351 "                 const char *qemuvalue);\n"
23352 "\n"
23353 msgstr ""
23354
23355 #. type: =head2
23356 #: ../src/guestfs-actions.pod:1172
23357 msgid "guestfs_copy_size"
23358 msgstr ""
23359
23360 #. type: verbatim
23361 #: ../src/guestfs-actions.pod:1174
23362 #, no-wrap
23363 msgid ""
23364 " int\n"
23365 " guestfs_copy_size (guestfs_h *g,\n"
23366 "                    const char *src,\n"
23367 "                    const char *dest,\n"
23368 "                    int64_t size);\n"
23369 "\n"
23370 msgstr ""
23371
23372 #. type: textblock
23373 #: ../src/guestfs-actions.pod:1188 ../src/guestfs-actions.pod:1311
23374 #: ../src/guestfs-actions.pod:1342 ../src/guestfs-actions.pod:1387
23375 #: ../src/guestfs-actions.pod:1764 ../src/guestfs-actions.pod:1786
23376 #: ../src/guestfs-actions.pod:3665 ../src/guestfs-actions.pod:7265
23377 #: ../src/guestfs-actions.pod:7299 ../src/guestfs-actions.pod:7806
23378 #: ../src/guestfs-actions.pod:7829
23379 msgid ""
23380 "This long-running command can generate progress notification messages so "
23381 "that the caller can display a progress bar or indicator.  To receive these "
23382 "messages, the caller must register a progress event callback.  See L<guestfs"
23383 "(3)/GUESTFS_EVENT_PROGRESS>."
23384 msgstr ""
23385
23386 #. type: textblock
23387 #: ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:4389
23388 #: ../src/guestfs-actions.pod:5774 ../src/guestfs-actions.pod:7500
23389 #: ../src/guestfs-actions.pod:7520 ../src/guestfs-actions.pod:7606
23390 msgid "(Added in 1.0.87)"
23391 msgstr ""
23392
23393 #. type: =head2
23394 #: ../src/guestfs-actions.pod:1195
23395 msgid "guestfs_cp"
23396 msgstr ""
23397
23398 #. type: verbatim
23399 #: ../src/guestfs-actions.pod:1197
23400 #, no-wrap
23401 msgid ""
23402 " int\n"
23403 " guestfs_cp (guestfs_h *g,\n"
23404 "             const char *src,\n"
23405 "             const char *dest);\n"
23406 "\n"
23407 msgstr ""
23408
23409 #. type: textblock
23410 #: ../src/guestfs-actions.pod:1207 ../src/guestfs-actions.pod:1221
23411 #: ../src/guestfs-actions.pod:1293 ../src/guestfs-actions.pod:1367
23412 #: ../src/guestfs-actions.pod:1481 ../src/guestfs-actions.pod:5143
23413 #: ../src/guestfs-actions.pod:5618
23414 msgid "(Added in 1.0.18)"
23415 msgstr ""
23416
23417 #. type: =head2
23418 #: ../src/guestfs-actions.pod:1209
23419 msgid "guestfs_cp_a"
23420 msgstr ""
23421
23422 #. type: verbatim
23423 #: ../src/guestfs-actions.pod:1211
23424 #, no-wrap
23425 msgid ""
23426 " int\n"
23427 " guestfs_cp_a (guestfs_h *g,\n"
23428 "               const char *src,\n"
23429 "               const char *dest);\n"
23430 "\n"
23431 msgstr ""
23432
23433 #. type: =head2
23434 #: ../src/guestfs-actions.pod:1223
23435 msgid "guestfs_dd"
23436 msgstr ""
23437
23438 #. type: verbatim
23439 #: ../src/guestfs-actions.pod:1225
23440 #, no-wrap
23441 msgid ""
23442 " int\n"
23443 " guestfs_dd (guestfs_h *g,\n"
23444 "             const char *src,\n"
23445 "             const char *dest);\n"
23446 "\n"
23447 msgstr ""
23448
23449 #. type: textblock
23450 #: ../src/guestfs-actions.pod:1235
23451 msgid ""
23452 "If the destination is a device, it must be as large or larger than the "
23453 "source file or device, otherwise the copy will fail.  This command cannot do "
23454 "partial copies (see C<guestfs_copy_size>)."
23455 msgstr ""
23456
23457 #. type: =head2
23458 #: ../src/guestfs-actions.pod:1243
23459 msgid "guestfs_df"
23460 msgstr ""
23461
23462 #. type: verbatim
23463 #: ../src/guestfs-actions.pod:1245
23464 #, no-wrap
23465 msgid ""
23466 " char *\n"
23467 " guestfs_df (guestfs_h *g);\n"
23468 "\n"
23469 msgstr ""
23470
23471 #. type: textblock
23472 #: ../src/guestfs-actions.pod:1250 ../src/guestfs-actions.pod:1267
23473 msgid ""
23474 "This command is mostly useful for interactive sessions.  It is I<not> "
23475 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
23476 "from programs."
23477 msgstr ""
23478
23479 #. type: textblock
23480 #: ../src/guestfs-actions.pod:1257 ../src/guestfs-actions.pod:1274
23481 #: ../src/guestfs-actions.pod:1392 ../src/guestfs-actions.pod:2388
23482 #: ../src/guestfs-actions.pod:2412 ../src/guestfs-actions.pod:2480
23483 #: ../src/guestfs-actions.pod:4499 ../src/guestfs-actions.pod:5043
23484 #: ../src/guestfs-actions.pod:7003 ../src/guestfs-actions.pod:7027
23485 #: ../src/guestfs-actions.pod:7646 ../src/guestfs-actions.pod:7659
23486 #: ../src/guestfs-actions.pod:7672
23487 msgid "(Added in 1.0.54)"
23488 msgstr ""
23489
23490 #. type: =head2
23491 #: ../src/guestfs-actions.pod:1259
23492 msgid "guestfs_df_h"
23493 msgstr ""
23494
23495 #. type: verbatim
23496 #: ../src/guestfs-actions.pod:1261
23497 #, no-wrap
23498 msgid ""
23499 " char *\n"
23500 " guestfs_df_h (guestfs_h *g);\n"
23501 "\n"
23502 msgstr ""
23503
23504 #. type: =head2
23505 #: ../src/guestfs-actions.pod:1276
23506 msgid "guestfs_dmesg"
23507 msgstr ""
23508
23509 #. type: verbatim
23510 #: ../src/guestfs-actions.pod:1278
23511 #, no-wrap
23512 msgid ""
23513 " char *\n"
23514 " guestfs_dmesg (guestfs_h *g);\n"
23515 "\n"
23516 msgstr ""
23517
23518 #. type: textblock
23519 #: ../src/guestfs-actions.pod:1285
23520 msgid ""
23521 "Another way to get the same information is to enable verbose messages with "
23522 "C<guestfs_set_verbose> or by setting the environment variable "
23523 "C<LIBGUESTFS_DEBUG=1> before running the program."
23524 msgstr ""
23525
23526 #. type: =head2
23527 #: ../src/guestfs-actions.pod:1295
23528 msgid "guestfs_download"
23529 msgstr ""
23530
23531 #. type: verbatim
23532 #: ../src/guestfs-actions.pod:1297
23533 #, no-wrap
23534 msgid ""
23535 " int\n"
23536 " guestfs_download (guestfs_h *g,\n"
23537 "                   const char *remotefilename,\n"
23538 "                   const char *filename);\n"
23539 "\n"
23540 msgstr ""
23541
23542 #. type: textblock
23543 #: ../src/guestfs-actions.pod:1307
23544 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
23545 msgstr ""
23546
23547 #. type: =head2
23548 #: ../src/guestfs-actions.pod:1318
23549 msgid "guestfs_download_offset"
23550 msgstr ""
23551
23552 #. type: verbatim
23553 #: ../src/guestfs-actions.pod:1320
23554 #, no-wrap
23555 msgid ""
23556 " int\n"
23557 " guestfs_download_offset (guestfs_h *g,\n"
23558 "                          const char *remotefilename,\n"
23559 "                          const char *filename,\n"
23560 "                          int64_t offset,\n"
23561 "                          int64_t size);\n"
23562 "\n"
23563 msgstr ""
23564
23565 #. type: textblock
23566 #: ../src/guestfs-actions.pod:1333
23567 msgid ""
23568 "Note that there is no limit on the amount of data that can be downloaded "
23569 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
23570 "full amount unless an error occurs."
23571 msgstr ""
23572
23573 #. type: textblock
23574 #: ../src/guestfs-actions.pod:1338
23575 msgid "See also C<guestfs_download>, C<guestfs_pread>."
23576 msgstr ""
23577
23578 #. type: textblock
23579 #: ../src/guestfs-actions.pod:1347 ../src/guestfs-actions.pod:7304
23580 msgid "(Added in 1.5.17)"
23581 msgstr ""
23582
23583 #. type: =head2
23584 #: ../src/guestfs-actions.pod:1349
23585 msgid "guestfs_drop_caches"
23586 msgstr ""
23587
23588 #. type: verbatim
23589 #: ../src/guestfs-actions.pod:1351
23590 #, no-wrap
23591 msgid ""
23592 " int\n"
23593 " guestfs_drop_caches (guestfs_h *g,\n"
23594 "                      int whattodrop);\n"
23595 "\n"
23596 msgstr ""
23597
23598 #. type: =head2
23599 #: ../src/guestfs-actions.pod:1369
23600 msgid "guestfs_du"
23601 msgstr ""
23602
23603 #. type: verbatim
23604 #: ../src/guestfs-actions.pod:1371
23605 #, no-wrap
23606 msgid ""
23607 " int64_t\n"
23608 " guestfs_du (guestfs_h *g,\n"
23609 "             const char *path);\n"
23610 "\n"
23611 msgstr ""
23612
23613 #. type: =head2
23614 #: ../src/guestfs-actions.pod:1394
23615 msgid "guestfs_e2fsck_f"
23616 msgstr ""
23617
23618 #. type: verbatim
23619 #: ../src/guestfs-actions.pod:1396
23620 #, no-wrap
23621 msgid ""
23622 " int\n"
23623 " guestfs_e2fsck_f (guestfs_h *g,\n"
23624 "                   const char *device);\n"
23625 "\n"
23626 msgstr ""
23627
23628 #. type: textblock
23629 #: ../src/guestfs-actions.pod:1404
23630 msgid ""
23631 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
23632 "Normally you should use C<guestfs_fsck>."
23633 msgstr ""
23634
23635 #. type: textblock
23636 #: ../src/guestfs-actions.pod:1409
23637 msgid "(Added in 1.0.29)"
23638 msgstr ""
23639
23640 #. type: =head2
23641 #: ../src/guestfs-actions.pod:1411
23642 msgid "guestfs_echo_daemon"
23643 msgstr ""
23644
23645 #. type: verbatim
23646 #: ../src/guestfs-actions.pod:1413
23647 #, no-wrap
23648 msgid ""
23649 " char *\n"
23650 " guestfs_echo_daemon (guestfs_h *g,\n"
23651 "                      char *const *words);\n"
23652 "\n"
23653 msgstr ""
23654
23655 #. type: textblock
23656 #: ../src/guestfs-actions.pod:1422
23657 msgid "See also C<guestfs_ping_daemon>."
23658 msgstr ""
23659
23660 #. type: textblock
23661 #: ../src/guestfs-actions.pod:1427 ../src/guestfs-actions.pod:2174
23662 #: ../src/guestfs-actions.pod:6475
23663 msgid "(Added in 1.0.69)"
23664 msgstr ""
23665
23666 #. type: =head2
23667 #: ../src/guestfs-actions.pod:1429
23668 msgid "guestfs_egrep"
23669 msgstr ""
23670
23671 #. type: verbatim
23672 #: ../src/guestfs-actions.pod:1431
23673 #, no-wrap
23674 msgid ""
23675 " char **\n"
23676 " guestfs_egrep (guestfs_h *g,\n"
23677 "                const char *regex,\n"
23678 "                const char *path);\n"
23679 "\n"
23680 msgstr ""
23681
23682 #. type: textblock
23683 #: ../src/guestfs-actions.pod:1446 ../src/guestfs-actions.pod:1465
23684 #: ../src/guestfs-actions.pod:1522 ../src/guestfs-actions.pod:1568
23685 #: ../src/guestfs-actions.pod:1587 ../src/guestfs-actions.pod:2304
23686 #: ../src/guestfs-actions.pod:2323 ../src/guestfs-actions.pod:2501
23687 #: ../src/guestfs-actions.pod:2514 ../src/guestfs-actions.pod:2529
23688 #: ../src/guestfs-actions.pod:2575 ../src/guestfs-actions.pod:2597
23689 #: ../src/guestfs-actions.pod:2610 ../src/guestfs-actions.pod:3879
23690 #: ../src/guestfs-actions.pod:3893 ../src/guestfs-actions.pod:3906
23691 #: ../src/guestfs-actions.pod:3920 ../src/guestfs-actions.pod:4921
23692 #: ../src/guestfs-actions.pod:5952 ../src/guestfs-actions.pod:6001
23693 #: ../src/guestfs-actions.pod:6871 ../src/guestfs-actions.pod:6883
23694 #: ../src/guestfs-actions.pod:6896 ../src/guestfs-actions.pod:6909
23695 #: ../src/guestfs-actions.pod:6931 ../src/guestfs-actions.pod:6944
23696 #: ../src/guestfs-actions.pod:6957 ../src/guestfs-actions.pod:6970
23697 #: ../src/guestfs-actions.pod:7764 ../src/guestfs-actions.pod:7783
23698 #: ../src/guestfs-actions.pod:7877 ../src/guestfs-actions.pod:7896
23699 #: ../src/guestfs-actions.pod:7942 ../src/guestfs-actions.pod:7961
23700 msgid "(Added in 1.0.66)"
23701 msgstr ""
23702
23703 #. type: =head2
23704 #: ../src/guestfs-actions.pod:1448
23705 msgid "guestfs_egrepi"
23706 msgstr ""
23707
23708 #. type: verbatim
23709 #: ../src/guestfs-actions.pod:1450
23710 #, no-wrap
23711 msgid ""
23712 " char **\n"
23713 " guestfs_egrepi (guestfs_h *g,\n"
23714 "                 const char *regex,\n"
23715 "                 const char *path);\n"
23716 "\n"
23717 msgstr ""
23718
23719 #. type: =head2
23720 #: ../src/guestfs-actions.pod:1467
23721 msgid "guestfs_equal"
23722 msgstr ""
23723
23724 #. type: verbatim
23725 #: ../src/guestfs-actions.pod:1469
23726 #, no-wrap
23727 msgid ""
23728 " int\n"
23729 " guestfs_equal (guestfs_h *g,\n"
23730 "                const char *file1,\n"
23731 "                const char *file2);\n"
23732 "\n"
23733 msgstr ""
23734
23735 #. type: =head2
23736 #: ../src/guestfs-actions.pod:1483
23737 msgid "guestfs_exists"
23738 msgstr ""
23739
23740 #. type: verbatim
23741 #: ../src/guestfs-actions.pod:1485
23742 #, no-wrap
23743 msgid ""
23744 " int\n"
23745 " guestfs_exists (guestfs_h *g,\n"
23746 "                 const char *path);\n"
23747 "\n"
23748 msgstr ""
23749
23750 #. type: textblock
23751 #: ../src/guestfs-actions.pod:1492
23752 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
23753 msgstr ""
23754
23755 #. type: =head2
23756 #: ../src/guestfs-actions.pod:1498
23757 msgid "guestfs_fallocate"
23758 msgstr ""
23759
23760 #. type: verbatim
23761 #: ../src/guestfs-actions.pod:1500
23762 #, no-wrap
23763 msgid ""
23764 " int\n"
23765 " guestfs_fallocate (guestfs_h *g,\n"
23766 "                    const char *path,\n"
23767 "                    int len);\n"
23768 "\n"
23769 msgstr ""
23770
23771 #. type: textblock
23772 #: ../src/guestfs-actions.pod:1515
23773 msgid ""
23774 "This function is deprecated.  In new code, use the L</guestfs_fallocate64> "
23775 "call instead."
23776 msgstr ""
23777
23778 #. type: =head2
23779 #: ../src/guestfs-actions.pod:1524
23780 msgid "guestfs_fallocate64"
23781 msgstr ""
23782
23783 #. type: verbatim
23784 #: ../src/guestfs-actions.pod:1526
23785 #, no-wrap
23786 msgid ""
23787 " int\n"
23788 " guestfs_fallocate64 (guestfs_h *g,\n"
23789 "                      const char *path,\n"
23790 "                      int64_t len);\n"
23791 "\n"
23792 msgstr ""
23793
23794 #. type: textblock
23795 #: ../src/guestfs-actions.pod:1535
23796 msgid ""
23797 "Note that this call allocates disk blocks for the file.  To create a sparse "
23798 "file use C<guestfs_truncate_size> instead."
23799 msgstr ""
23800
23801 #. type: textblock
23802 #: ../src/guestfs-actions.pod:1538
23803 msgid ""
23804 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
23805 "oversight it only allowed 30 bit lengths to be specified, effectively "
23806 "limiting the maximum size of files created through that call to 1GB."
23807 msgstr ""
23808
23809 #. type: textblock
23810 #: ../src/guestfs-actions.pod:1549
23811 msgid "(Added in 1.3.17)"
23812 msgstr ""
23813
23814 #. type: =head2
23815 #: ../src/guestfs-actions.pod:1551
23816 msgid "guestfs_fgrep"
23817 msgstr ""
23818
23819 #. type: verbatim
23820 #: ../src/guestfs-actions.pod:1553
23821 #, no-wrap
23822 msgid ""
23823 " char **\n"
23824 " guestfs_fgrep (guestfs_h *g,\n"
23825 "                const char *pattern,\n"
23826 "                const char *path);\n"
23827 "\n"
23828 msgstr ""
23829
23830 #. type: =head2
23831 #: ../src/guestfs-actions.pod:1570
23832 msgid "guestfs_fgrepi"
23833 msgstr ""
23834
23835 #. type: verbatim
23836 #: ../src/guestfs-actions.pod:1572
23837 #, no-wrap
23838 msgid ""
23839 " char **\n"
23840 " guestfs_fgrepi (guestfs_h *g,\n"
23841 "                 const char *pattern,\n"
23842 "                 const char *path);\n"
23843 "\n"
23844 msgstr ""
23845
23846 #. type: =head2
23847 #: ../src/guestfs-actions.pod:1589
23848 msgid "guestfs_file"
23849 msgstr ""
23850
23851 #. type: verbatim
23852 #: ../src/guestfs-actions.pod:1591
23853 #, no-wrap
23854 msgid ""
23855 " char *\n"
23856 " guestfs_file (guestfs_h *g,\n"
23857 "               const char *path);\n"
23858 "\n"
23859 msgstr ""
23860
23861 #. type: textblock
23862 #: ../src/guestfs-actions.pod:1609
23863 msgid ""
23864 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
23865 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
23866 msgstr ""
23867
23868 #. type: =head2
23869 #: ../src/guestfs-actions.pod:1617
23870 msgid "guestfs_file_architecture"
23871 msgstr ""
23872
23873 #. type: verbatim
23874 #: ../src/guestfs-actions.pod:1619
23875 #, no-wrap
23876 msgid ""
23877 " char *\n"
23878 " guestfs_file_architecture (guestfs_h *g,\n"
23879 "                            const char *filename);\n"
23880 "\n"
23881 msgstr ""
23882
23883 #. type: textblock
23884 #: ../src/guestfs-actions.pod:1727 ../src/guestfs-actions.pod:1890
23885 #: ../src/guestfs-actions.pod:1907 ../src/guestfs-actions.pod:2630
23886 #: ../src/guestfs-actions.pod:2720 ../src/guestfs-actions.pod:2786
23887 #: ../src/guestfs-actions.pod:2973 ../src/guestfs-actions.pod:2991
23888 #: ../src/guestfs-actions.pod:3031 ../src/guestfs-actions.pod:3106
23889 #: ../src/guestfs-actions.pod:3199 ../src/guestfs-actions.pod:3436
23890 #: ../src/guestfs-actions.pod:3568
23891 msgid "(Added in 1.5.3)"
23892 msgstr ""
23893
23894 #. type: =head2
23895 #: ../src/guestfs-actions.pod:1729
23896 msgid "guestfs_filesize"
23897 msgstr ""
23898
23899 #. type: verbatim
23900 #: ../src/guestfs-actions.pod:1731
23901 #, no-wrap
23902 msgid ""
23903 " int64_t\n"
23904 " guestfs_filesize (guestfs_h *g,\n"
23905 "                   const char *file);\n"
23906 "\n"
23907 msgstr ""
23908
23909 #. type: textblock
23910 #: ../src/guestfs-actions.pod:1737
23911 msgid ""
23912 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
23913 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
23914 "devices, use C<guestfs_blockdev_getsize64>."
23915 msgstr ""
23916
23917 #. type: textblock
23918 #: ../src/guestfs-actions.pod:1743
23919 msgid "(Added in 1.0.82)"
23920 msgstr ""
23921
23922 #. type: =head2
23923 #: ../src/guestfs-actions.pod:1745
23924 msgid "guestfs_fill"
23925 msgstr ""
23926
23927 #. type: verbatim
23928 #: ../src/guestfs-actions.pod:1747
23929 #, no-wrap
23930 msgid ""
23931 " int\n"
23932 " guestfs_fill (guestfs_h *g,\n"
23933 "               int c,\n"
23934 "               int len,\n"
23935 "               const char *path);\n"
23936 "\n"
23937 msgstr ""
23938
23939 #. type: textblock
23940 #: ../src/guestfs-actions.pod:1757
23941 msgid ""
23942 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
23943 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
23944 "bytes use C<guestfs_fill_pattern>."
23945 msgstr ""
23946
23947 #. type: textblock
23948 #: ../src/guestfs-actions.pod:1769
23949 msgid "(Added in 1.0.79)"
23950 msgstr ""
23951
23952 #. type: =head2
23953 #: ../src/guestfs-actions.pod:1771
23954 msgid "guestfs_fill_pattern"
23955 msgstr ""
23956
23957 #. type: verbatim
23958 #: ../src/guestfs-actions.pod:1773
23959 #, no-wrap
23960 msgid ""
23961 " int\n"
23962 " guestfs_fill_pattern (guestfs_h *g,\n"
23963 "                       const char *pattern,\n"
23964 "                       int len,\n"
23965 "                       const char *path);\n"
23966 "\n"
23967 msgstr ""
23968
23969 #. type: textblock
23970 #: ../src/guestfs-actions.pod:1779
23971 msgid ""
23972 "This function is like C<guestfs_fill> except that it creates a new file of "
23973 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
23974 "pattern is truncated if necessary to ensure the length of the file is "
23975 "exactly C<len> bytes."
23976 msgstr ""
23977
23978 #. type: textblock
23979 #: ../src/guestfs-actions.pod:1791
23980 msgid "(Added in 1.3.12)"
23981 msgstr ""
23982
23983 #. type: =head2
23984 #: ../src/guestfs-actions.pod:1793
23985 msgid "guestfs_find"
23986 msgstr ""
23987
23988 #. type: verbatim
23989 #: ../src/guestfs-actions.pod:1795
23990 #, no-wrap
23991 msgid ""
23992 " char **\n"
23993 " guestfs_find (guestfs_h *g,\n"
23994 "               const char *directory);\n"
23995 "\n"
23996 msgstr ""
23997
23998 #. type: textblock
23999 #: ../src/guestfs-actions.pod:1811
24000 msgid ""
24001 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
24002 msgstr ""
24003
24004 #. type: textblock
24005 #: ../src/guestfs-actions.pod:1824
24006 msgid "See also C<guestfs_find0>."
24007 msgstr ""
24008
24009 #. type: textblock
24010 #: ../src/guestfs-actions.pod:1833 ../src/guestfs-actions.pod:4326
24011 #: ../src/guestfs-actions.pod:6036
24012 msgid "(Added in 1.0.27)"
24013 msgstr ""
24014
24015 #. type: =head2
24016 #: ../src/guestfs-actions.pod:1835
24017 msgid "guestfs_find0"
24018 msgstr ""
24019
24020 #. type: verbatim
24021 #: ../src/guestfs-actions.pod:1837
24022 #, no-wrap
24023 msgid ""
24024 " int\n"
24025 " guestfs_find0 (guestfs_h *g,\n"
24026 "                const char *directory,\n"
24027 "                const char *files);\n"
24028 "\n"
24029 msgstr ""
24030
24031 #. type: textblock
24032 #: ../src/guestfs-actions.pod:1846
24033 msgid ""
24034 "This command works the same way as C<guestfs_find> with the following "
24035 "exceptions:"
24036 msgstr ""
24037
24038 #. type: textblock
24039 #: ../src/guestfs-actions.pod:1873
24040 msgid "(Added in 1.0.74)"
24041 msgstr ""
24042
24043 #. type: =head2
24044 #: ../src/guestfs-actions.pod:1875
24045 msgid "guestfs_findfs_label"
24046 msgstr ""
24047
24048 #. type: verbatim
24049 #: ../src/guestfs-actions.pod:1877
24050 #, no-wrap
24051 msgid ""
24052 " char *\n"
24053 " guestfs_findfs_label (guestfs_h *g,\n"
24054 "                       const char *label);\n"
24055 "\n"
24056 msgstr ""
24057
24058 #. type: textblock
24059 #: ../src/guestfs-actions.pod:1885
24060 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
24061 msgstr ""
24062
24063 #. type: =head2
24064 #: ../src/guestfs-actions.pod:1892
24065 msgid "guestfs_findfs_uuid"
24066 msgstr ""
24067
24068 #. type: verbatim
24069 #: ../src/guestfs-actions.pod:1894
24070 #, no-wrap
24071 msgid ""
24072 " char *\n"
24073 " guestfs_findfs_uuid (guestfs_h *g,\n"
24074 "                      const char *uuid);\n"
24075 "\n"
24076 msgstr ""
24077
24078 #. type: textblock
24079 #: ../src/guestfs-actions.pod:1902
24080 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
24081 msgstr ""
24082
24083 #. type: =head2
24084 #: ../src/guestfs-actions.pod:1909
24085 msgid "guestfs_fsck"
24086 msgstr ""
24087
24088 #. type: verbatim
24089 #: ../src/guestfs-actions.pod:1911
24090 #, no-wrap
24091 msgid ""
24092 " int\n"
24093 " guestfs_fsck (guestfs_h *g,\n"
24094 "               const char *fstype,\n"
24095 "               const char *device);\n"
24096 "\n"
24097 msgstr ""
24098
24099 #. type: textblock
24100 #: ../src/guestfs-actions.pod:1946 ../src/guestfs-actions.pod:7811
24101 msgid "(Added in 1.0.16)"
24102 msgstr ""
24103
24104 #. type: =head2
24105 #: ../src/guestfs-actions.pod:1948
24106 msgid "guestfs_get_append"
24107 msgstr ""
24108
24109 #. type: verbatim
24110 #: ../src/guestfs-actions.pod:1950
24111 #, no-wrap
24112 msgid ""
24113 " const char *\n"
24114 " guestfs_get_append (guestfs_h *g);\n"
24115 "\n"
24116 msgstr ""
24117
24118 #. type: textblock
24119 #: ../src/guestfs-actions.pod:1958
24120 msgid ""
24121 "This function returns a string which may be NULL.  There is no way to return "
24122 "an error from this function.  The string is owned by the guest handle and "
24123 "must I<not> be freed."
24124 msgstr ""
24125
24126 #. type: textblock
24127 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:5714
24128 #: ../src/guestfs-actions.pod:6196 ../src/guestfs-actions.pod:6638
24129 #: ../src/guestfs-actions.pod:6657 ../src/guestfs-actions.pod:6673
24130 #: ../src/guestfs-actions.pod:6697 ../src/guestfs-actions.pod:7451
24131 #: ../src/guestfs-actions.pod:7466 ../src/guestfs-actions.pod:7858
24132 msgid "(Added in 1.0.26)"
24133 msgstr ""
24134
24135 #. type: =head2
24136 #: ../src/guestfs-actions.pod:1964
24137 msgid "guestfs_get_attach_method"
24138 msgstr ""
24139
24140 #. type: verbatim
24141 #: ../src/guestfs-actions.pod:1966
24142 #, no-wrap
24143 msgid ""
24144 " char *\n"
24145 " guestfs_get_attach_method (guestfs_h *g);\n"
24146 "\n"
24147 msgstr ""
24148
24149 #. type: textblock
24150 #: ../src/guestfs-actions.pod:1969
24151 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
24152 msgstr ""
24153
24154 #. type: textblock
24155 #: ../src/guestfs-actions.pod:1974 ../src/guestfs-actions.pod:6226
24156 msgid "(Added in 1.9.8)"
24157 msgstr ""
24158
24159 #. type: =head2
24160 #: ../src/guestfs-actions.pod:1976
24161 msgid "guestfs_get_autosync"
24162 msgstr ""
24163
24164 #. type: verbatim
24165 #: ../src/guestfs-actions.pod:1978
24166 #, no-wrap
24167 msgid ""
24168 " int\n"
24169 " guestfs_get_autosync (guestfs_h *g);\n"
24170 "\n"
24171 msgstr ""
24172
24173 #. type: =head2
24174 #: ../src/guestfs-actions.pod:1987
24175 msgid "guestfs_get_direct"
24176 msgstr ""
24177
24178 #. type: verbatim
24179 #: ../src/guestfs-actions.pod:1989
24180 #, no-wrap
24181 msgid ""
24182 " int\n"
24183 " guestfs_get_direct (guestfs_h *g);\n"
24184 "\n"
24185 msgstr ""
24186
24187 #. type: textblock
24188 #: ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:6267
24189 msgid "(Added in 1.0.72)"
24190 msgstr ""
24191
24192 #. type: =head2
24193 #: ../src/guestfs-actions.pod:1998
24194 msgid "guestfs_get_e2label"
24195 msgstr ""
24196
24197 #. type: verbatim
24198 #: ../src/guestfs-actions.pod:2000
24199 #, no-wrap
24200 msgid ""
24201 " char *\n"
24202 " guestfs_get_e2label (guestfs_h *g,\n"
24203 "                      const char *device);\n"
24204 "\n"
24205 msgstr ""
24206
24207 #. type: textblock
24208 #: ../src/guestfs-actions.pod:2010
24209 msgid ""
24210 "This function is deprecated.  In new code, use the L</guestfs_vfs_label> "
24211 "call instead."
24212 msgstr ""
24213
24214 #. type: textblock
24215 #: ../src/guestfs-actions.pod:2017 ../src/guestfs-actions.pod:2038
24216 #: ../src/guestfs-actions.pod:6285 ../src/guestfs-actions.pod:6304
24217 msgid "(Added in 1.0.15)"
24218 msgstr ""
24219
24220 #. type: =head2
24221 #: ../src/guestfs-actions.pod:2019
24222 msgid "guestfs_get_e2uuid"
24223 msgstr ""
24224
24225 #. type: verbatim
24226 #: ../src/guestfs-actions.pod:2021
24227 #, no-wrap
24228 msgid ""
24229 " char *\n"
24230 " guestfs_get_e2uuid (guestfs_h *g,\n"
24231 "                     const char *device);\n"
24232 "\n"
24233 msgstr ""
24234
24235 #. type: textblock
24236 #: ../src/guestfs-actions.pod:2031
24237 msgid ""
24238 "This function is deprecated.  In new code, use the L</guestfs_vfs_uuid> call "
24239 "instead."
24240 msgstr ""
24241
24242 #. type: =head2
24243 #: ../src/guestfs-actions.pod:2040
24244 msgid "guestfs_get_memsize"
24245 msgstr ""
24246
24247 #. type: verbatim
24248 #: ../src/guestfs-actions.pod:2042
24249 #, no-wrap
24250 msgid ""
24251 " int\n"
24252 " guestfs_get_memsize (guestfs_h *g);\n"
24253 "\n"
24254 msgstr ""
24255
24256 #. type: textblock
24257 #: ../src/guestfs-actions.pod:2048
24258 msgid ""
24259 "If C<guestfs_set_memsize> was not called on this handle, and if "
24260 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
24261 "value for memsize."
24262 msgstr ""
24263
24264 #. type: textblock
24265 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:4617
24266 #: ../src/guestfs-actions.pod:4826 ../src/guestfs-actions.pod:4845
24267 #: ../src/guestfs-actions.pod:4864 ../src/guestfs-actions.pod:4876
24268 #: ../src/guestfs-actions.pod:4893 ../src/guestfs-actions.pod:4906
24269 #: ../src/guestfs-actions.pod:5939 ../src/guestfs-actions.pod:6325
24270 #: ../src/guestfs-actions.pod:6605 ../src/guestfs-actions.pod:7220
24271 msgid "(Added in 1.0.55)"
24272 msgstr ""
24273
24274 #. type: =head2
24275 #: ../src/guestfs-actions.pod:2059
24276 msgid "guestfs_get_network"
24277 msgstr ""
24278
24279 #. type: verbatim
24280 #: ../src/guestfs-actions.pod:2061
24281 #, no-wrap
24282 msgid ""
24283 " int\n"
24284 " guestfs_get_network (guestfs_h *g);\n"
24285 "\n"
24286 msgstr ""
24287
24288 #. type: textblock
24289 #: ../src/guestfs-actions.pod:2068 ../src/guestfs-actions.pod:6344
24290 msgid "(Added in 1.5.4)"
24291 msgstr ""
24292
24293 #. type: =head2
24294 #: ../src/guestfs-actions.pod:2070
24295 msgid "guestfs_get_path"
24296 msgstr ""
24297
24298 #. type: verbatim
24299 #: ../src/guestfs-actions.pod:2072
24300 #, no-wrap
24301 msgid ""
24302 " const char *\n"
24303 " guestfs_get_path (guestfs_h *g);\n"
24304 "\n"
24305 msgstr ""
24306
24307 #. type: textblock
24308 #: ../src/guestfs-actions.pod:2080 ../src/guestfs-actions.pod:2120
24309 msgid ""
24310 "This function returns a string, or NULL on error.  The string is owned by "
24311 "the guest handle and must I<not> be freed."
24312 msgstr ""
24313
24314 #. type: =head2
24315 #: ../src/guestfs-actions.pod:2085
24316 msgid "guestfs_get_pgroup"
24317 msgstr ""
24318
24319 #. type: verbatim
24320 #: ../src/guestfs-actions.pod:2087
24321 #, no-wrap
24322 msgid ""
24323 " int\n"
24324 " guestfs_get_pgroup (guestfs_h *g);\n"
24325 "\n"
24326 msgstr ""
24327
24328 #. type: textblock
24329 #: ../src/guestfs-actions.pod:2094 ../src/guestfs-actions.pod:6380
24330 #: ../src/guestfs-actions.pod:7712
24331 msgid "(Added in 1.11.18)"
24332 msgstr ""
24333
24334 #. type: =head2
24335 #: ../src/guestfs-actions.pod:2096
24336 msgid "guestfs_get_pid"
24337 msgstr ""
24338
24339 #. type: verbatim
24340 #: ../src/guestfs-actions.pod:2098
24341 #, no-wrap
24342 msgid ""
24343 " int\n"
24344 " guestfs_get_pid (guestfs_h *g);\n"
24345 "\n"
24346 msgstr ""
24347
24348 #. type: textblock
24349 #: ../src/guestfs-actions.pod:2108
24350 msgid "(Added in 1.0.56)"
24351 msgstr ""
24352
24353 #. type: =head2
24354 #: ../src/guestfs-actions.pod:2110
24355 msgid "guestfs_get_qemu"
24356 msgstr ""
24357
24358 #. type: verbatim
24359 #: ../src/guestfs-actions.pod:2112
24360 #, no-wrap
24361 msgid ""
24362 " const char *\n"
24363 " guestfs_get_qemu (guestfs_h *g);\n"
24364 "\n"
24365 msgstr ""
24366
24367 #. type: textblock
24368 #: ../src/guestfs-actions.pod:2123 ../src/guestfs-actions.pod:6408
24369 msgid "(Added in 1.0.6)"
24370 msgstr ""
24371
24372 #. type: =head2
24373 #: ../src/guestfs-actions.pod:2125
24374 msgid "guestfs_get_recovery_proc"
24375 msgstr ""
24376
24377 #. type: verbatim
24378 #: ../src/guestfs-actions.pod:2127
24379 #, no-wrap
24380 msgid ""
24381 " int\n"
24382 " guestfs_get_recovery_proc (guestfs_h *g);\n"
24383 "\n"
24384 msgstr ""
24385
24386 #. type: textblock
24387 #: ../src/guestfs-actions.pod:2134 ../src/guestfs-actions.pod:3690
24388 #: ../src/guestfs-actions.pod:4021 ../src/guestfs-actions.pod:4424
24389 #: ../src/guestfs-actions.pod:4456 ../src/guestfs-actions.pod:5644
24390 #: ../src/guestfs-actions.pod:5987 ../src/guestfs-actions.pod:6432
24391 #: ../src/guestfs-actions.pod:7123 ../src/guestfs-actions.pod:7143
24392 #: ../src/guestfs-actions.pod:7335
24393 msgid "(Added in 1.0.77)"
24394 msgstr ""
24395
24396 #. type: =head2
24397 #: ../src/guestfs-actions.pod:2136
24398 msgid "guestfs_get_selinux"
24399 msgstr ""
24400
24401 #. type: verbatim
24402 #: ../src/guestfs-actions.pod:2138
24403 #, no-wrap
24404 msgid ""
24405 " int\n"
24406 " guestfs_get_selinux (guestfs_h *g);\n"
24407 "\n"
24408 msgstr ""
24409
24410 #. type: textblock
24411 #: ../src/guestfs-actions.pod:2141
24412 msgid ""
24413 "This returns the current setting of the selinux flag which is passed to the "
24414 "appliance at boot time.  See C<guestfs_set_selinux>."
24415 msgstr ""
24416
24417 #. type: textblock
24418 #: ../src/guestfs-actions.pod:2149 ../src/guestfs-actions.pod:2212
24419 #: ../src/guestfs-actions.pod:6451 ../src/guestfs-actions.pod:6509
24420 msgid "(Added in 1.0.67)"
24421 msgstr ""
24422
24423 #. type: =head2
24424 #: ../src/guestfs-actions.pod:2151
24425 msgid "guestfs_get_state"
24426 msgstr ""
24427
24428 #. type: verbatim
24429 #: ../src/guestfs-actions.pod:2153
24430 #, no-wrap
24431 msgid ""
24432 " int\n"
24433 " guestfs_get_state (guestfs_h *g);\n"
24434 "\n"
24435 msgstr ""
24436
24437 #. type: =head2
24438 #: ../src/guestfs-actions.pod:2165
24439 msgid "guestfs_get_trace"
24440 msgstr ""
24441
24442 #. type: verbatim
24443 #: ../src/guestfs-actions.pod:2167
24444 #, no-wrap
24445 msgid ""
24446 " int\n"
24447 " guestfs_get_trace (guestfs_h *g);\n"
24448 "\n"
24449 msgstr ""
24450
24451 #. type: =head2
24452 #: ../src/guestfs-actions.pod:2176
24453 msgid "guestfs_get_umask"
24454 msgstr ""
24455
24456 #. type: verbatim
24457 #: ../src/guestfs-actions.pod:2178
24458 #, no-wrap
24459 msgid ""
24460 " int\n"
24461 " guestfs_get_umask (guestfs_h *g);\n"
24462 "\n"
24463 msgstr ""
24464
24465 #. type: textblock
24466 #: ../src/guestfs-actions.pod:2181
24467 msgid ""
24468 "Return the current umask.  By default the umask is C<022> unless it has been "
24469 "set by calling C<guestfs_umask>."
24470 msgstr ""
24471
24472 #. type: =head2
24473 #: ../src/guestfs-actions.pod:2188
24474 msgid "guestfs_get_verbose"
24475 msgstr ""
24476
24477 #. type: verbatim
24478 #: ../src/guestfs-actions.pod:2190
24479 #, no-wrap
24480 msgid ""
24481 " int\n"
24482 " guestfs_get_verbose (guestfs_h *g);\n"
24483 "\n"
24484 msgstr ""
24485
24486 #. type: =head2
24487 #: ../src/guestfs-actions.pod:2199
24488 msgid "guestfs_getcon"
24489 msgstr ""
24490
24491 #. type: verbatim
24492 #: ../src/guestfs-actions.pod:2201
24493 #, no-wrap
24494 msgid ""
24495 " char *\n"
24496 " guestfs_getcon (guestfs_h *g);\n"
24497 "\n"
24498 msgstr ""
24499
24500 #. type: textblock
24501 #: ../src/guestfs-actions.pod:2206
24502 msgid ""
24503 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
24504 msgstr ""
24505
24506 #. type: =head2
24507 #: ../src/guestfs-actions.pod:2214
24508 msgid "guestfs_getxattr"
24509 msgstr ""
24510
24511 #. type: verbatim
24512 #: ../src/guestfs-actions.pod:2216
24513 #, no-wrap
24514 msgid ""
24515 " char *\n"
24516 " guestfs_getxattr (guestfs_h *g,\n"
24517 "                   const char *path,\n"
24518 "                   const char *name,\n"
24519 "                   size_t *size_r);\n"
24520 "\n"
24521 msgstr ""
24522
24523 #. type: textblock
24524 #: ../src/guestfs-actions.pod:2222
24525 msgid ""
24526 "Get a single extended attribute from file C<path> named C<name>.  This call "
24527 "follows symlinks.  If you want to lookup an extended attribute for the "
24528 "symlink itself, use C<guestfs_lgetxattr>."
24529 msgstr ""
24530
24531 #. type: textblock
24532 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:3704
24533 msgid ""
24534 "Normally it is better to get all extended attributes from a file in one go "
24535 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
24536 "implementations are buggy and do not provide a way to list out attributes.  "
24537 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
24538 "extended attributes you want in advance and call this function."
24539 msgstr ""
24540
24541 #. type: textblock
24542 #: ../src/guestfs-actions.pod:2236
24543 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
24544 msgstr ""
24545
24546 #. type: textblock
24547 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2451
24548 #: ../src/guestfs-actions.pod:2921 ../src/guestfs-actions.pod:3716
24549 #: ../src/guestfs-actions.pod:5637 ../src/guestfs-actions.pod:5663
24550 #: ../src/guestfs-actions.pod:5844
24551 msgid ""
24552 "This function returns a buffer, or NULL on error.  The size of the returned "
24553 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
24554 "after use>."
24555 msgstr ""
24556
24557 #. type: textblock
24558 #: ../src/guestfs-actions.pod:2242 ../src/guestfs-actions.pod:3720
24559 msgid "(Added in 1.7.24)"
24560 msgstr ""
24561
24562 #. type: =head2
24563 #: ../src/guestfs-actions.pod:2244
24564 msgid "guestfs_getxattrs"
24565 msgstr ""
24566
24567 #. type: verbatim
24568 #: ../src/guestfs-actions.pod:2246
24569 #, no-wrap
24570 msgid ""
24571 " struct guestfs_xattr_list *\n"
24572 " guestfs_getxattrs (guestfs_h *g,\n"
24573 "                    const char *path);\n"
24574 "\n"
24575 msgstr ""
24576
24577 #. type: textblock
24578 #: ../src/guestfs-actions.pod:2256
24579 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
24580 msgstr ""
24581
24582 #. type: textblock
24583 #: ../src/guestfs-actions.pod:2258 ../src/guestfs-actions.pod:3732
24584 #: ../src/guestfs-actions.pod:4420
24585 msgid ""
24586 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
24587 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
24588 msgstr ""
24589
24590 #. type: textblock
24591 #: ../src/guestfs-actions.pod:2262 ../src/guestfs-actions.pod:3736
24592 #: ../src/guestfs-actions.pod:3935 ../src/guestfs-actions.pod:3971
24593 #: ../src/guestfs-actions.pod:6017 ../src/guestfs-actions.pod:6528
24594 #: ../src/guestfs-actions.pod:7923
24595 msgid "(Added in 1.0.59)"
24596 msgstr ""
24597
24598 #. type: =head2
24599 #: ../src/guestfs-actions.pod:2264
24600 msgid "guestfs_glob_expand"
24601 msgstr ""
24602
24603 #. type: verbatim
24604 #: ../src/guestfs-actions.pod:2266
24605 #, no-wrap
24606 msgid ""
24607 " char **\n"
24608 " guestfs_glob_expand (guestfs_h *g,\n"
24609 "                      const char *pattern);\n"
24610 "\n"
24611 msgstr ""
24612
24613 #. type: textblock
24614 #: ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:6721
24615 #: ../src/guestfs-actions.pod:6738
24616 msgid "(Added in 1.0.50)"
24617 msgstr ""
24618
24619 #. type: =head2
24620 #: ../src/guestfs-actions.pod:2287
24621 msgid "guestfs_grep"
24622 msgstr ""
24623
24624 #. type: verbatim
24625 #: ../src/guestfs-actions.pod:2289
24626 #, no-wrap
24627 msgid ""
24628 " char **\n"
24629 " guestfs_grep (guestfs_h *g,\n"
24630 "               const char *regex,\n"
24631 "               const char *path);\n"
24632 "\n"
24633 msgstr ""
24634
24635 #. type: =head2
24636 #: ../src/guestfs-actions.pod:2306
24637 msgid "guestfs_grepi"
24638 msgstr ""
24639
24640 #. type: verbatim
24641 #: ../src/guestfs-actions.pod:2308
24642 #, no-wrap
24643 msgid ""
24644 " char **\n"
24645 " guestfs_grepi (guestfs_h *g,\n"
24646 "                const char *regex,\n"
24647 "                const char *path);\n"
24648 "\n"
24649 msgstr ""
24650
24651 #. type: =head2
24652 #: ../src/guestfs-actions.pod:2325
24653 msgid "guestfs_grub_install"
24654 msgstr ""
24655
24656 #. type: verbatim
24657 #: ../src/guestfs-actions.pod:2327
24658 #, no-wrap
24659 msgid ""
24660 " int\n"
24661 " guestfs_grub_install (guestfs_h *g,\n"
24662 "                       const char *root,\n"
24663 "                       const char *device);\n"
24664 "\n"
24665 msgstr ""
24666
24667 #. type: textblock
24668 #: ../src/guestfs-actions.pod:2370
24669 msgid "(Added in 1.0.17)"
24670 msgstr ""
24671
24672 #. type: =head2
24673 #: ../src/guestfs-actions.pod:2372
24674 msgid "guestfs_head"
24675 msgstr ""
24676
24677 #. type: verbatim
24678 #: ../src/guestfs-actions.pod:2374
24679 #, no-wrap
24680 msgid ""
24681 " char **\n"
24682 " guestfs_head (guestfs_h *g,\n"
24683 "               const char *path);\n"
24684 "\n"
24685 msgstr ""
24686
24687 #. type: =head2
24688 #: ../src/guestfs-actions.pod:2390
24689 msgid "guestfs_head_n"
24690 msgstr ""
24691
24692 #. type: verbatim
24693 #: ../src/guestfs-actions.pod:2392
24694 #, no-wrap
24695 msgid ""
24696 " char **\n"
24697 " guestfs_head_n (guestfs_h *g,\n"
24698 "                 int nrlines,\n"
24699 "                 const char *path);\n"
24700 "\n"
24701 msgstr ""
24702
24703 #. type: =head2
24704 #: ../src/guestfs-actions.pod:2414
24705 msgid "guestfs_hexdump"
24706 msgstr ""
24707
24708 #. type: verbatim
24709 #: ../src/guestfs-actions.pod:2416
24710 #, no-wrap
24711 msgid ""
24712 " char *\n"
24713 " guestfs_hexdump (guestfs_h *g,\n"
24714 "                  const char *path);\n"
24715 "\n"
24716 msgstr ""
24717
24718 #. type: textblock
24719 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:6802
24720 #: ../src/guestfs-actions.pod:6857
24721 msgid "(Added in 1.0.22)"
24722 msgstr ""
24723
24724 #. type: =head2
24725 #: ../src/guestfs-actions.pod:2431
24726 msgid "guestfs_initrd_cat"
24727 msgstr ""
24728
24729 #. type: verbatim
24730 #: ../src/guestfs-actions.pod:2433
24731 #, no-wrap
24732 msgid ""
24733 " char *\n"
24734 " guestfs_initrd_cat (guestfs_h *g,\n"
24735 "                     const char *initrdpath,\n"
24736 "                     const char *filename,\n"
24737 "                     size_t *size_r);\n"
24738 "\n"
24739 msgstr ""
24740
24741 #. type: textblock
24742 #: ../src/guestfs-actions.pod:2449
24743 msgid "See also C<guestfs_initrd_list>."
24744 msgstr ""
24745
24746 #. type: =head2
24747 #: ../src/guestfs-actions.pod:2460
24748 msgid "guestfs_initrd_list"
24749 msgstr ""
24750
24751 #. type: verbatim
24752 #: ../src/guestfs-actions.pod:2462
24753 #, no-wrap
24754 msgid ""
24755 " char **\n"
24756 " guestfs_initrd_list (guestfs_h *g,\n"
24757 "                      const char *path);\n"
24758 "\n"
24759 msgstr ""
24760
24761 #. type: =head2
24762 #: ../src/guestfs-actions.pod:2482
24763 msgid "guestfs_inotify_add_watch"
24764 msgstr ""
24765
24766 #. type: verbatim
24767 #: ../src/guestfs-actions.pod:2484
24768 #, no-wrap
24769 msgid ""
24770 " int64_t\n"
24771 " guestfs_inotify_add_watch (guestfs_h *g,\n"
24772 "                            const char *path,\n"
24773 "                            int mask);\n"
24774 "\n"
24775 msgstr ""
24776
24777 #. type: =head2
24778 #: ../src/guestfs-actions.pod:2503
24779 msgid "guestfs_inotify_close"
24780 msgstr ""
24781
24782 #. type: verbatim
24783 #: ../src/guestfs-actions.pod:2505
24784 #, no-wrap
24785 msgid ""
24786 " int\n"
24787 " guestfs_inotify_close (guestfs_h *g);\n"
24788 "\n"
24789 msgstr ""
24790
24791 #. type: =head2
24792 #: ../src/guestfs-actions.pod:2516
24793 msgid "guestfs_inotify_files"
24794 msgstr ""
24795
24796 #. type: verbatim
24797 #: ../src/guestfs-actions.pod:2518
24798 #, no-wrap
24799 msgid ""
24800 " char **\n"
24801 " guestfs_inotify_files (guestfs_h *g);\n"
24802 "\n"
24803 msgstr ""
24804
24805 #. type: textblock
24806 #: ../src/guestfs-actions.pod:2521
24807 msgid ""
24808 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
24809 "returns a list of pathnames of objects that were touched.  The returned "
24810 "pathnames are sorted and deduplicated."
24811 msgstr ""
24812
24813 #. type: =head2
24814 #: ../src/guestfs-actions.pod:2531
24815 msgid "guestfs_inotify_init"
24816 msgstr ""
24817
24818 #. type: verbatim
24819 #: ../src/guestfs-actions.pod:2533
24820 #, no-wrap
24821 msgid ""
24822 " int\n"
24823 " guestfs_inotify_init (guestfs_h *g,\n"
24824 "                       int maxevents);\n"
24825 "\n"
24826 msgstr ""
24827
24828 #. type: textblock
24829 #: ../src/guestfs-actions.pod:2541
24830 msgid ""
24831 "C<maxevents> is the maximum number of events which will be queued up between "
24832 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
24833 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
24834 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
24835 "throws away events, but records the fact that it threw them away by setting "
24836 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
24837 "C<guestfs_inotify_read>)."
24838 msgstr ""
24839
24840 #. type: textblock
24841 #: ../src/guestfs-actions.pod:2551
24842 msgid ""
24843 "Before any events are generated, you have to add some watches to the "
24844 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
24845 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
24846 msgstr ""
24847
24848 #. type: textblock
24849 #: ../src/guestfs-actions.pod:2557
24850 msgid ""
24851 "Queued up events should be read periodically by calling "
24852 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
24853 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
24854 "often enough then you risk the internal queue overflowing."
24855 msgstr ""
24856
24857 #. type: textblock
24858 #: ../src/guestfs-actions.pod:2564
24859 msgid ""
24860 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
24861 "This also removes any watches automatically."
24862 msgstr ""
24863
24864 #. type: =head2
24865 #: ../src/guestfs-actions.pod:2577
24866 msgid "guestfs_inotify_read"
24867 msgstr ""
24868
24869 #. type: verbatim
24870 #: ../src/guestfs-actions.pod:2579
24871 #, no-wrap
24872 msgid ""
24873 " struct guestfs_inotify_event_list *\n"
24874 " guestfs_inotify_read (guestfs_h *g);\n"
24875 "\n"
24876 msgstr ""
24877
24878 #. type: textblock
24879 #: ../src/guestfs-actions.pod:2593
24880 msgid ""
24881 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
24882 "there was an error.  I<The caller must call "
24883 "C<guestfs_free_inotify_event_list> after use>."
24884 msgstr ""
24885
24886 #. type: =head2
24887 #: ../src/guestfs-actions.pod:2599
24888 msgid "guestfs_inotify_rm_watch"
24889 msgstr ""
24890
24891 #. type: verbatim
24892 #: ../src/guestfs-actions.pod:2601
24893 #, no-wrap
24894 msgid ""
24895 " int\n"
24896 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
24897 "                           int wd);\n"
24898 "\n"
24899 msgstr ""
24900
24901 #. type: textblock
24902 #: ../src/guestfs-actions.pod:2605
24903 msgid ""
24904 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
24905 msgstr ""
24906
24907 #. type: =head2
24908 #: ../src/guestfs-actions.pod:2612
24909 msgid "guestfs_inspect_get_arch"
24910 msgstr ""
24911
24912 #. type: verbatim
24913 #: ../src/guestfs-actions.pod:2614
24914 #, no-wrap
24915 msgid ""
24916 " char *\n"
24917 " guestfs_inspect_get_arch (guestfs_h *g,\n"
24918 "                           const char *root);\n"
24919 "\n"
24920 msgstr ""
24921
24922 #. type: textblock
24923 #: ../src/guestfs-actions.pod:2618
24924 msgid ""
24925 "This returns the architecture of the inspected operating system.  The "
24926 "possible return values are listed under C<guestfs_file_architecture>."
24927 msgstr ""
24928
24929 #. type: =head2
24930 #: ../src/guestfs-actions.pod:2632
24931 msgid "guestfs_inspect_get_distro"
24932 msgstr ""
24933
24934 #. type: verbatim
24935 #: ../src/guestfs-actions.pod:2634
24936 #, no-wrap
24937 msgid ""
24938 " char *\n"
24939 " guestfs_inspect_get_distro (guestfs_h *g,\n"
24940 "                             const char *root);\n"
24941 "\n"
24942 msgstr ""
24943
24944 #. type: =head2
24945 #: ../src/guestfs-actions.pod:2722
24946 msgid "guestfs_inspect_get_drive_mappings"
24947 msgstr ""
24948
24949 #. type: verbatim
24950 #: ../src/guestfs-actions.pod:2724
24951 #, no-wrap
24952 msgid ""
24953 " char **\n"
24954 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
24955 "                                     const char *root);\n"
24956 "\n"
24957 msgstr ""
24958
24959 #. type: textblock
24960 #: ../src/guestfs-actions.pod:2753
24961 msgid ""
24962 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24963 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
24964 msgstr ""
24965
24966 #. type: textblock
24967 #: ../src/guestfs-actions.pod:2757 ../src/guestfs-actions.pod:3025
24968 #: ../src/guestfs-actions.pod:3823 ../src/guestfs-actions.pod:5105
24969 #: ../src/guestfs-actions.pod:7159
24970 msgid ""
24971 "This function returns a NULL-terminated array of strings, or NULL if there "
24972 "was an error.  The array of strings will always have length C<2n+1>, where "
24973 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
24974 "caller must free the strings and the array after use>."
24975 msgstr ""
24976
24977 #. type: textblock
24978 #: ../src/guestfs-actions.pod:2763 ../src/guestfs-actions.pod:3219
24979 msgid "(Added in 1.9.17)"
24980 msgstr ""
24981
24982 #. type: =head2
24983 #: ../src/guestfs-actions.pod:2765
24984 msgid "guestfs_inspect_get_filesystems"
24985 msgstr ""
24986
24987 #. type: verbatim
24988 #: ../src/guestfs-actions.pod:2767
24989 #, no-wrap
24990 msgid ""
24991 " char **\n"
24992 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
24993 "                                  const char *root);\n"
24994 "\n"
24995 msgstr ""
24996
24997 #. type: textblock
24998 #: ../src/guestfs-actions.pod:2779
24999 msgid ""
25000 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25001 "C<guestfs_inspect_get_mountpoints>."
25002 msgstr ""
25003
25004 #. type: =head2
25005 #: ../src/guestfs-actions.pod:2788
25006 msgid "guestfs_inspect_get_format"
25007 msgstr ""
25008
25009 #. type: verbatim
25010 #: ../src/guestfs-actions.pod:2790
25011 #, no-wrap
25012 msgid ""
25013 " char *\n"
25014 " guestfs_inspect_get_format (guestfs_h *g,\n"
25015 "                             const char *root);\n"
25016 "\n"
25017 msgstr ""
25018
25019 #. type: textblock
25020 #: ../src/guestfs-actions.pod:2824 ../src/guestfs-actions.pod:3255
25021 #: ../src/guestfs-actions.pod:3271 ../src/guestfs-actions.pod:3289
25022 #: ../src/guestfs-actions.pod:6055
25023 msgid "(Added in 1.9.4)"
25024 msgstr ""
25025
25026 #. type: =head2
25027 #: ../src/guestfs-actions.pod:2826
25028 msgid "guestfs_inspect_get_hostname"
25029 msgstr ""
25030
25031 #. type: verbatim
25032 #: ../src/guestfs-actions.pod:2828
25033 #, no-wrap
25034 msgid ""
25035 " char *\n"
25036 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
25037 "                               const char *root);\n"
25038 "\n"
25039 msgstr ""
25040
25041 #. type: textblock
25042 #: ../src/guestfs-actions.pod:2843
25043 msgid "(Added in 1.7.9)"
25044 msgstr ""
25045
25046 #. type: =head2
25047 #: ../src/guestfs-actions.pod:2845
25048 msgid "guestfs_inspect_get_icon"
25049 msgstr ""
25050
25051 #. type: verbatim
25052 #: ../src/guestfs-actions.pod:2847
25053 #, no-wrap
25054 msgid ""
25055 " char *\n"
25056 " guestfs_inspect_get_icon (guestfs_h *g,\n"
25057 "                           const char *root,\n"
25058 "                           size_t *size_r,\n"
25059 "                           ...);\n"
25060 "\n"
25061 msgstr ""
25062
25063 #. type: verbatim
25064 #: ../src/guestfs-actions.pod:2858
25065 #, no-wrap
25066 msgid ""
25067 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
25068 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
25069 "\n"
25070 msgstr ""
25071
25072 #. type: textblock
25073 #: ../src/guestfs-actions.pod:2925 ../src/guestfs-actions.pod:3750
25074 #: ../src/guestfs-actions.pod:5004
25075 msgid "(Added in 1.11.12)"
25076 msgstr ""
25077
25078 #. type: =head2
25079 #: ../src/guestfs-actions.pod:2927
25080 msgid "guestfs_inspect_get_icon_va"
25081 msgstr ""
25082
25083 #. type: verbatim
25084 #: ../src/guestfs-actions.pod:2929
25085 #, no-wrap
25086 msgid ""
25087 " char *\n"
25088 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
25089 "                              const char *root,\n"
25090 "                              size_t *size_r,\n"
25091 "                              va_list args);\n"
25092 "\n"
25093 msgstr ""
25094
25095 #. type: textblock
25096 #: ../src/guestfs-actions.pod:2935
25097 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
25098 msgstr ""
25099
25100 #. type: =head2
25101 #: ../src/guestfs-actions.pod:2939
25102 msgid "guestfs_inspect_get_icon_argv"
25103 msgstr ""
25104
25105 #. type: verbatim
25106 #: ../src/guestfs-actions.pod:2941
25107 #, no-wrap
25108 msgid ""
25109 " char *\n"
25110 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
25111 "                                const char *root,\n"
25112 "                                size_t *size_r,\n"
25113 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
25114 "\n"
25115 msgstr ""
25116
25117 #. type: textblock
25118 #: ../src/guestfs-actions.pod:2947
25119 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
25120 msgstr ""
25121
25122 #. type: =head2
25123 #: ../src/guestfs-actions.pod:2951
25124 msgid "guestfs_inspect_get_major_version"
25125 msgstr ""
25126
25127 #. type: verbatim
25128 #: ../src/guestfs-actions.pod:2953
25129 #, no-wrap
25130 msgid ""
25131 " int\n"
25132 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
25133 "                                    const char *root);\n"
25134 "\n"
25135 msgstr ""
25136
25137 #. type: =head2
25138 #: ../src/guestfs-actions.pod:2975
25139 msgid "guestfs_inspect_get_minor_version"
25140 msgstr ""
25141
25142 #. type: verbatim
25143 #: ../src/guestfs-actions.pod:2977
25144 #, no-wrap
25145 msgid ""
25146 " int\n"
25147 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
25148 "                                    const char *root);\n"
25149 "\n"
25150 msgstr ""
25151
25152 #. type: textblock
25153 #: ../src/guestfs-actions.pod:2986
25154 msgid ""
25155 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25156 "C<guestfs_inspect_get_major_version>."
25157 msgstr ""
25158
25159 #. type: =head2
25160 #: ../src/guestfs-actions.pod:2993
25161 msgid "guestfs_inspect_get_mountpoints"
25162 msgstr ""
25163
25164 #. type: verbatim
25165 #: ../src/guestfs-actions.pod:2995
25166 #, no-wrap
25167 msgid ""
25168 " char **\n"
25169 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
25170 "                                  const char *root);\n"
25171 "\n"
25172 msgstr ""
25173
25174 #. type: textblock
25175 #: ../src/guestfs-actions.pod:3016
25176 msgid ""
25177 "For operating systems like Windows which still use drive letters, this call "
25178 "will only return an entry for the first drive \"mounted on\" C</>.  For "
25179 "information about the mapping of drive letters to partitions, see "
25180 "C<guestfs_inspect_get_drive_mappings>."
25181 msgstr ""
25182
25183 #. type: textblock
25184 #: ../src/guestfs-actions.pod:3022
25185 msgid ""
25186 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25187 "C<guestfs_inspect_get_filesystems>."
25188 msgstr ""
25189
25190 #. type: =head2
25191 #: ../src/guestfs-actions.pod:3033
25192 msgid "guestfs_inspect_get_package_format"
25193 msgstr ""
25194
25195 #. type: verbatim
25196 #: ../src/guestfs-actions.pod:3035
25197 #, no-wrap
25198 msgid ""
25199 " char *\n"
25200 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
25201 "                                     const char *root);\n"
25202 "\n"
25203 msgstr ""
25204
25205 #. type: textblock
25206 #: ../src/guestfs-actions.pod:3039
25207 msgid ""
25208 "This function and C<guestfs_inspect_get_package_management> return the "
25209 "package format and package management tool used by the inspected operating "
25210 "system.  For example for Fedora these functions would return C<rpm> (package "
25211 "format) and C<yum> (package management)."
25212 msgstr ""
25213
25214 #. type: textblock
25215 #: ../src/guestfs-actions.pod:3057 ../src/guestfs-actions.pod:3085
25216 msgid "(Added in 1.7.5)"
25217 msgstr ""
25218
25219 #. type: =head2
25220 #: ../src/guestfs-actions.pod:3059
25221 msgid "guestfs_inspect_get_package_management"
25222 msgstr ""
25223
25224 #. type: verbatim
25225 #: ../src/guestfs-actions.pod:3061
25226 #, no-wrap
25227 msgid ""
25228 " char *\n"
25229 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
25230 "                                         const char *root);\n"
25231 "\n"
25232 msgstr ""
25233
25234 #. type: textblock
25235 #: ../src/guestfs-actions.pod:3065
25236 msgid ""
25237 "C<guestfs_inspect_get_package_format> and this function return the package "
25238 "format and package management tool used by the inspected operating system.  "
25239 "For example for Fedora these functions would return C<rpm> (package format) "
25240 "and C<yum> (package management)."
25241 msgstr ""
25242
25243 #. type: =head2
25244 #: ../src/guestfs-actions.pod:3087
25245 msgid "guestfs_inspect_get_product_name"
25246 msgstr ""
25247
25248 #. type: verbatim
25249 #: ../src/guestfs-actions.pod:3089
25250 #, no-wrap
25251 msgid ""
25252 " char *\n"
25253 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
25254 "                                   const char *root);\n"
25255 "\n"
25256 msgstr ""
25257
25258 #. type: =head2
25259 #: ../src/guestfs-actions.pod:3108
25260 msgid "guestfs_inspect_get_product_variant"
25261 msgstr ""
25262
25263 #. type: verbatim
25264 #: ../src/guestfs-actions.pod:3110
25265 #, no-wrap
25266 msgid ""
25267 " char *\n"
25268 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
25269 "                                      const char *root);\n"
25270 "\n"
25271 msgstr ""
25272
25273 #. type: textblock
25274 #: ../src/guestfs-actions.pod:3133
25275 msgid ""
25276 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25277 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
25278 msgstr ""
25279
25280 #. type: textblock
25281 #: ../src/guestfs-actions.pod:3140
25282 msgid "(Added in 1.9.13)"
25283 msgstr ""
25284
25285 #. type: =head2
25286 #: ../src/guestfs-actions.pod:3142
25287 msgid "guestfs_inspect_get_roots"
25288 msgstr ""
25289
25290 #. type: verbatim
25291 #: ../src/guestfs-actions.pod:3144
25292 #, no-wrap
25293 msgid ""
25294 " char **\n"
25295 " guestfs_inspect_get_roots (guestfs_h *g);\n"
25296 "\n"
25297 msgstr ""
25298
25299 #. type: textblock
25300 #: ../src/guestfs-actions.pod:3147
25301 msgid ""
25302 "This function is a convenient way to get the list of root devices, as "
25303 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
25304 "the whole inspection process."
25305 msgstr ""
25306
25307 #. type: textblock
25308 #: ../src/guestfs-actions.pod:3151
25309 msgid ""
25310 "This returns an empty list if either no root devices were found or the "
25311 "caller has not called C<guestfs_inspect_os>."
25312 msgstr ""
25313
25314 #. type: textblock
25315 #: ../src/guestfs-actions.pod:3160
25316 msgid "(Added in 1.7.3)"
25317 msgstr ""
25318
25319 #. type: =head2
25320 #: ../src/guestfs-actions.pod:3162
25321 msgid "guestfs_inspect_get_type"
25322 msgstr ""
25323
25324 #. type: verbatim
25325 #: ../src/guestfs-actions.pod:3164
25326 #, no-wrap
25327 msgid ""
25328 " char *\n"
25329 " guestfs_inspect_get_type (guestfs_h *g,\n"
25330 "                           const char *root);\n"
25331 "\n"
25332 msgstr ""
25333
25334 #. type: =head2
25335 #: ../src/guestfs-actions.pod:3201
25336 msgid "guestfs_inspect_get_windows_current_control_set"
25337 msgstr ""
25338
25339 #. type: verbatim
25340 #: ../src/guestfs-actions.pod:3203
25341 #, no-wrap
25342 msgid ""
25343 " char *\n"
25344 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
25345 "                                                  const char *root);\n"
25346 "\n"
25347 msgstr ""
25348
25349 #. type: =head2
25350 #: ../src/guestfs-actions.pod:3221
25351 msgid "guestfs_inspect_get_windows_systemroot"
25352 msgstr ""
25353
25354 #. type: verbatim
25355 #: ../src/guestfs-actions.pod:3223
25356 #, no-wrap
25357 msgid ""
25358 " char *\n"
25359 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
25360 "                                         const char *root);\n"
25361 "\n"
25362 msgstr ""
25363
25364 #. type: textblock
25365 #: ../src/guestfs-actions.pod:3239
25366 msgid "(Added in 1.5.25)"
25367 msgstr ""
25368
25369 #. type: =head2
25370 #: ../src/guestfs-actions.pod:3241
25371 msgid "guestfs_inspect_is_live"
25372 msgstr ""
25373
25374 #. type: verbatim
25375 #: ../src/guestfs-actions.pod:3243
25376 #, no-wrap
25377 msgid ""
25378 " int\n"
25379 " guestfs_inspect_is_live (guestfs_h *g,\n"
25380 "                          const char *root);\n"
25381 "\n"
25382 msgstr ""
25383
25384 #. type: textblock
25385 #: ../src/guestfs-actions.pod:3247
25386 msgid ""
25387 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
25388 "disk), then this returns true if a live image was detected on the disk."
25389 msgstr ""
25390
25391 #. type: =head2
25392 #: ../src/guestfs-actions.pod:3257
25393 msgid "guestfs_inspect_is_multipart"
25394 msgstr ""
25395
25396 #. type: verbatim
25397 #: ../src/guestfs-actions.pod:3259
25398 #, no-wrap
25399 msgid ""
25400 " int\n"
25401 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
25402 "                               const char *root);\n"
25403 "\n"
25404 msgstr ""
25405
25406 #. type: textblock
25407 #: ../src/guestfs-actions.pod:3263
25408 msgid ""
25409 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
25410 "disk), then this returns true if the disk is part of a set."
25411 msgstr ""
25412
25413 #. type: =head2
25414 #: ../src/guestfs-actions.pod:3273
25415 msgid "guestfs_inspect_is_netinst"
25416 msgstr ""
25417
25418 #. type: verbatim
25419 #: ../src/guestfs-actions.pod:3275
25420 #, no-wrap
25421 msgid ""
25422 " int\n"
25423 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
25424 "                             const char *root);\n"
25425 "\n"
25426 msgstr ""
25427
25428 #. type: textblock
25429 #: ../src/guestfs-actions.pod:3279
25430 msgid ""
25431 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
25432 "disk), then this returns true if the disk is a network installer, ie. not a "
25433 "self-contained install CD but one which is likely to require network access "
25434 "to complete the install."
25435 msgstr ""
25436
25437 #. type: =head2
25438 #: ../src/guestfs-actions.pod:3291
25439 msgid "guestfs_inspect_list_applications"
25440 msgstr ""
25441
25442 #. type: verbatim
25443 #: ../src/guestfs-actions.pod:3293
25444 #, no-wrap
25445 msgid ""
25446 " struct guestfs_application_list *\n"
25447 " guestfs_inspect_list_applications (guestfs_h *g,\n"
25448 "                                    const char *root);\n"
25449 "\n"
25450 msgstr ""
25451
25452 #. type: textblock
25453 #: ../src/guestfs-actions.pod:3299
25454 msgid ""
25455 "I<Note:> This call works differently from other parts of the inspection "
25456 "API.  You have to call C<guestfs_inspect_os>, then "
25457 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
25458 "this.  Listing applications is a significantly more difficult operation "
25459 "which requires access to the full filesystem.  Also note that unlike the "
25460 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
25461 "the libguestfs handle, this call actually reads parts of the mounted "
25462 "filesystems during the call."
25463 msgstr ""
25464
25465 #. type: textblock
25466 #: ../src/guestfs-actions.pod:3389
25467 msgid ""
25468 "This function returns a C<struct guestfs_application_list *>, or NULL if "
25469 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
25470 "after use>."
25471 msgstr ""
25472
25473 #. type: textblock
25474 #: ../src/guestfs-actions.pod:3393
25475 msgid "(Added in 1.7.8)"
25476 msgstr ""
25477
25478 #. type: =head2
25479 #: ../src/guestfs-actions.pod:3395
25480 msgid "guestfs_inspect_os"
25481 msgstr ""
25482
25483 #. type: verbatim
25484 #: ../src/guestfs-actions.pod:3397
25485 #, no-wrap
25486 msgid ""
25487 " char **\n"
25488 " guestfs_inspect_os (guestfs_h *g);\n"
25489 "\n"
25490 msgstr ""
25491
25492 #. type: textblock
25493 #: ../src/guestfs-actions.pod:3413
25494 msgid ""
25495 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
25496 "functions in order to query further information about each operating system, "
25497 "such as the name and version."
25498 msgstr ""
25499
25500 #. type: textblock
25501 #: ../src/guestfs-actions.pod:3418
25502 msgid ""
25503 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
25504 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
25505 "the contents.  This should be called with no disks currently mounted.  The "
25506 "function may also use Augeas, so any existing Augeas handle will be closed."
25507 msgstr ""
25508
25509 #. type: textblock
25510 #: ../src/guestfs-actions.pod:3430 ../src/guestfs-actions.pod:3761
25511 #: ../src/guestfs-actions.pod:3843
25512 msgid "See also C<guestfs_list_filesystems>."
25513 msgstr ""
25514
25515 #. type: =head2
25516 #: ../src/guestfs-actions.pod:3438
25517 msgid "guestfs_is_blockdev"
25518 msgstr ""
25519
25520 #. type: verbatim
25521 #: ../src/guestfs-actions.pod:3440
25522 #, no-wrap
25523 msgid ""
25524 " int\n"
25525 " guestfs_is_blockdev (guestfs_h *g,\n"
25526 "                      const char *path);\n"
25527 "\n"
25528 msgstr ""
25529
25530 #. type: textblock
25531 #: ../src/guestfs-actions.pod:3447 ../src/guestfs-actions.pod:3476
25532 #: ../src/guestfs-actions.pod:3506 ../src/guestfs-actions.pod:3521
25533 #: ../src/guestfs-actions.pod:3537 ../src/guestfs-actions.pod:3593
25534 #: ../src/guestfs-actions.pod:3608
25535 msgid "See also C<guestfs_stat>."
25536 msgstr ""
25537
25538 #. type: textblock
25539 #: ../src/guestfs-actions.pod:3451 ../src/guestfs-actions.pod:3480
25540 #: ../src/guestfs-actions.pod:3525 ../src/guestfs-actions.pod:3597
25541 #: ../src/guestfs-actions.pod:3612
25542 msgid "(Added in 1.5.10)"
25543 msgstr ""
25544
25545 #. type: =head2
25546 #: ../src/guestfs-actions.pod:3453
25547 msgid "guestfs_is_busy"
25548 msgstr ""
25549
25550 #. type: verbatim
25551 #: ../src/guestfs-actions.pod:3455
25552 #, no-wrap
25553 msgid ""
25554 " int\n"
25555 " guestfs_is_busy (guestfs_h *g);\n"
25556 "\n"
25557 msgstr ""
25558
25559 #. type: =head2
25560 #: ../src/guestfs-actions.pod:3467
25561 msgid "guestfs_is_chardev"
25562 msgstr ""
25563
25564 #. type: verbatim
25565 #: ../src/guestfs-actions.pod:3469
25566 #, no-wrap
25567 msgid ""
25568 " int\n"
25569 " guestfs_is_chardev (guestfs_h *g,\n"
25570 "                     const char *path);\n"
25571 "\n"
25572 msgstr ""
25573
25574 #. type: =head2
25575 #: ../src/guestfs-actions.pod:3482
25576 msgid "guestfs_is_config"
25577 msgstr ""
25578
25579 #. type: verbatim
25580 #: ../src/guestfs-actions.pod:3484
25581 #, no-wrap
25582 msgid ""
25583 " int\n"
25584 " guestfs_is_config (guestfs_h *g);\n"
25585 "\n"
25586 msgstr ""
25587
25588 #. type: =head2
25589 #: ../src/guestfs-actions.pod:3496
25590 msgid "guestfs_is_dir"
25591 msgstr ""
25592
25593 #. type: verbatim
25594 #: ../src/guestfs-actions.pod:3498
25595 #, no-wrap
25596 msgid ""
25597 " int\n"
25598 " guestfs_is_dir (guestfs_h *g,\n"
25599 "                 const char *path);\n"
25600 "\n"
25601 msgstr ""
25602
25603 #. type: =head2
25604 #: ../src/guestfs-actions.pod:3512
25605 msgid "guestfs_is_fifo"
25606 msgstr ""
25607
25608 #. type: verbatim
25609 #: ../src/guestfs-actions.pod:3514
25610 #, no-wrap
25611 msgid ""
25612 " int\n"
25613 " guestfs_is_fifo (guestfs_h *g,\n"
25614 "                  const char *path);\n"
25615 "\n"
25616 msgstr ""
25617
25618 #. type: =head2
25619 #: ../src/guestfs-actions.pod:3527
25620 msgid "guestfs_is_file"
25621 msgstr ""
25622
25623 #. type: verbatim
25624 #: ../src/guestfs-actions.pod:3529
25625 #, no-wrap
25626 msgid ""
25627 " int\n"
25628 " guestfs_is_file (guestfs_h *g,\n"
25629 "                  const char *path);\n"
25630 "\n"
25631 msgstr ""
25632
25633 #. type: =head2
25634 #: ../src/guestfs-actions.pod:3543
25635 msgid "guestfs_is_launching"
25636 msgstr ""
25637
25638 #. type: verbatim
25639 #: ../src/guestfs-actions.pod:3545
25640 #, no-wrap
25641 msgid ""
25642 " int\n"
25643 " guestfs_is_launching (guestfs_h *g);\n"
25644 "\n"
25645 msgstr ""
25646
25647 #. type: =head2
25648 #: ../src/guestfs-actions.pod:3557
25649 msgid "guestfs_is_lv"
25650 msgstr ""
25651
25652 #. type: verbatim
25653 #: ../src/guestfs-actions.pod:3559
25654 #, no-wrap
25655 msgid ""
25656 " int\n"
25657 " guestfs_is_lv (guestfs_h *g,\n"
25658 "                const char *device);\n"
25659 "\n"
25660 msgstr ""
25661
25662 #. type: =head2
25663 #: ../src/guestfs-actions.pod:3570
25664 msgid "guestfs_is_ready"
25665 msgstr ""
25666
25667 #. type: verbatim
25668 #: ../src/guestfs-actions.pod:3572
25669 #, no-wrap
25670 msgid ""
25671 " int\n"
25672 " guestfs_is_ready (guestfs_h *g);\n"
25673 "\n"
25674 msgstr ""
25675
25676 #. type: =head2
25677 #: ../src/guestfs-actions.pod:3584
25678 msgid "guestfs_is_socket"
25679 msgstr ""
25680
25681 #. type: verbatim
25682 #: ../src/guestfs-actions.pod:3586
25683 #, no-wrap
25684 msgid ""
25685 " int\n"
25686 " guestfs_is_socket (guestfs_h *g,\n"
25687 "                    const char *path);\n"
25688 "\n"
25689 msgstr ""
25690
25691 #. type: =head2
25692 #: ../src/guestfs-actions.pod:3599
25693 msgid "guestfs_is_symlink"
25694 msgstr ""
25695
25696 #. type: verbatim
25697 #: ../src/guestfs-actions.pod:3601
25698 #, no-wrap
25699 msgid ""
25700 " int\n"
25701 " guestfs_is_symlink (guestfs_h *g,\n"
25702 "                     const char *path);\n"
25703 "\n"
25704 msgstr ""
25705
25706 #. type: =head2
25707 #: ../src/guestfs-actions.pod:3614
25708 msgid "guestfs_is_zero"
25709 msgstr ""
25710
25711 #. type: verbatim
25712 #: ../src/guestfs-actions.pod:3616
25713 #, no-wrap
25714 msgid ""
25715 " int\n"
25716 " guestfs_is_zero (guestfs_h *g,\n"
25717 "                  const char *path);\n"
25718 "\n"
25719 msgstr ""
25720
25721 #. type: textblock
25722 #: ../src/guestfs-actions.pod:3625 ../src/guestfs-actions.pod:3639
25723 msgid "(Added in 1.11.8)"
25724 msgstr ""
25725
25726 #. type: =head2
25727 #: ../src/guestfs-actions.pod:3627
25728 msgid "guestfs_is_zero_device"
25729 msgstr ""
25730
25731 #. type: verbatim
25732 #: ../src/guestfs-actions.pod:3629
25733 #, no-wrap
25734 msgid ""
25735 " int\n"
25736 " guestfs_is_zero_device (guestfs_h *g,\n"
25737 "                         const char *device);\n"
25738 "\n"
25739 msgstr ""
25740
25741 #. type: =head2
25742 #: ../src/guestfs-actions.pod:3641
25743 msgid "guestfs_kill_subprocess"
25744 msgstr ""
25745
25746 #. type: verbatim
25747 #: ../src/guestfs-actions.pod:3643
25748 #, no-wrap
25749 msgid ""
25750 " int\n"
25751 " guestfs_kill_subprocess (guestfs_h *g);\n"
25752 "\n"
25753 msgstr ""
25754
25755 #. type: =head2
25756 #: ../src/guestfs-actions.pod:3652
25757 msgid "guestfs_launch"
25758 msgstr ""
25759
25760 #. type: verbatim
25761 #: ../src/guestfs-actions.pod:3654
25762 #, no-wrap
25763 msgid ""
25764 " int\n"
25765 " guestfs_launch (guestfs_h *g);\n"
25766 "\n"
25767 msgstr ""
25768
25769 #. type: =head2
25770 #: ../src/guestfs-actions.pod:3672
25771 msgid "guestfs_lchown"
25772 msgstr ""
25773
25774 #. type: verbatim
25775 #: ../src/guestfs-actions.pod:3674
25776 #, no-wrap
25777 msgid ""
25778 " int\n"
25779 " guestfs_lchown (guestfs_h *g,\n"
25780 "                 int owner,\n"
25781 "                 int group,\n"
25782 "                 const char *path);\n"
25783 "\n"
25784 msgstr ""
25785
25786 #. type: textblock
25787 #: ../src/guestfs-actions.pod:3680
25788 msgid ""
25789 "Change the file owner to C<owner> and group to C<group>.  This is like "
25790 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
25791 "changed, not the target."
25792 msgstr ""
25793
25794 #. type: =head2
25795 #: ../src/guestfs-actions.pod:3692
25796 msgid "guestfs_lgetxattr"
25797 msgstr ""
25798
25799 #. type: verbatim
25800 #: ../src/guestfs-actions.pod:3694
25801 #, no-wrap
25802 msgid ""
25803 " char *\n"
25804 " guestfs_lgetxattr (guestfs_h *g,\n"
25805 "                    const char *path,\n"
25806 "                    const char *name,\n"
25807 "                    size_t *size_r);\n"
25808 "\n"
25809 msgstr ""
25810
25811 #. type: textblock
25812 #: ../src/guestfs-actions.pod:3714
25813 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
25814 msgstr ""
25815
25816 #. type: =head2
25817 #: ../src/guestfs-actions.pod:3722
25818 msgid "guestfs_lgetxattrs"
25819 msgstr ""
25820
25821 #. type: verbatim
25822 #: ../src/guestfs-actions.pod:3724
25823 #, no-wrap
25824 msgid ""
25825 " struct guestfs_xattr_list *\n"
25826 " guestfs_lgetxattrs (guestfs_h *g,\n"
25827 "                     const char *path);\n"
25828 "\n"
25829 msgstr ""
25830
25831 #. type: textblock
25832 #: ../src/guestfs-actions.pod:3728
25833 msgid ""
25834 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
25835 "then it returns the extended attributes of the link itself."
25836 msgstr ""
25837
25838 #. type: =head2
25839 #: ../src/guestfs-actions.pod:3738
25840 msgid "guestfs_list_9p"
25841 msgstr ""
25842
25843 #. type: verbatim
25844 #: ../src/guestfs-actions.pod:3740
25845 #, no-wrap
25846 msgid ""
25847 " char **\n"
25848 " guestfs_list_9p (guestfs_h *g);\n"
25849 "\n"
25850 msgstr ""
25851
25852 #. type: =head2
25853 #: ../src/guestfs-actions.pod:3752
25854 msgid "guestfs_list_devices"
25855 msgstr ""
25856
25857 #. type: verbatim
25858 #: ../src/guestfs-actions.pod:3754
25859 #, no-wrap
25860 msgid ""
25861 " char **\n"
25862 " guestfs_list_devices (guestfs_h *g);\n"
25863 "\n"
25864 msgstr ""
25865
25866 #. type: =head2
25867 #: ../src/guestfs-actions.pod:3769
25868 msgid "guestfs_list_dm_devices"
25869 msgstr ""
25870
25871 #. type: verbatim
25872 #: ../src/guestfs-actions.pod:3771
25873 #, no-wrap
25874 msgid ""
25875 " char **\n"
25876 " guestfs_list_dm_devices (guestfs_h *g);\n"
25877 "\n"
25878 msgstr ""
25879
25880 #. type: textblock
25881 #: ../src/guestfs-actions.pod:3776
25882 msgid ""
25883 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
25884 "previous call to C<guestfs_luks_open>."
25885 msgstr ""
25886
25887 #. type: textblock
25888 #: ../src/guestfs-actions.pod:3779
25889 msgid ""
25890 "Device mapper devices which correspond to logical volumes are I<not> "
25891 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
25892 "volumes."
25893 msgstr ""
25894
25895 #. type: textblock
25896 #: ../src/guestfs-actions.pod:3787 ../src/guestfs-actions.pod:5243
25897 msgid "(Added in 1.11.15)"
25898 msgstr ""
25899
25900 #. type: =head2
25901 #: ../src/guestfs-actions.pod:3789
25902 msgid "guestfs_list_filesystems"
25903 msgstr ""
25904
25905 #. type: verbatim
25906 #: ../src/guestfs-actions.pod:3791
25907 #, no-wrap
25908 msgid ""
25909 " char **\n"
25910 " guestfs_list_filesystems (guestfs_h *g);\n"
25911 "\n"
25912 msgstr ""
25913
25914 #. type: textblock
25915 #: ../src/guestfs-actions.pod:3811
25916 msgid ""
25917 "This command runs other libguestfs commands, which might include "
25918 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
25919 "soon after launch and only when nothing is mounted."
25920 msgstr ""
25921
25922 #. type: textblock
25923 #: ../src/guestfs-actions.pod:3815
25924 msgid ""
25925 "Not all of the filesystems returned will be mountable.  In particular, swap "
25926 "partitions are returned in the list.  Also this command does not check that "
25927 "each filesystem found is valid and mountable, and some filesystems might be "
25928 "mountable but require special options.  Filesystems may not all belong to a "
25929 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
25930 msgstr ""
25931
25932 #. type: textblock
25933 #: ../src/guestfs-actions.pod:3829 ../src/guestfs-actions.pod:5604
25934 msgid "(Added in 1.5.15)"
25935 msgstr ""
25936
25937 #. type: =head2
25938 #: ../src/guestfs-actions.pod:3831
25939 msgid "guestfs_list_partitions"
25940 msgstr ""
25941
25942 #. type: verbatim
25943 #: ../src/guestfs-actions.pod:3833
25944 #, no-wrap
25945 msgid ""
25946 " char **\n"
25947 " guestfs_list_partitions (guestfs_h *g);\n"
25948 "\n"
25949 msgstr ""
25950
25951 #. type: textblock
25952 #: ../src/guestfs-actions.pod:3840
25953 msgid ""
25954 "This does not return logical volumes.  For that you will need to call "
25955 "C<guestfs_lvs>."
25956 msgstr ""
25957
25958 #. type: =head2
25959 #: ../src/guestfs-actions.pod:3851
25960 msgid "guestfs_ll"
25961 msgstr ""
25962
25963 #. type: verbatim
25964 #: ../src/guestfs-actions.pod:3853
25965 #, no-wrap
25966 msgid ""
25967 " char *\n"
25968 " guestfs_ll (guestfs_h *g,\n"
25969 "             const char *directory);\n"
25970 "\n"
25971 msgstr ""
25972
25973 #. type: =head2
25974 #: ../src/guestfs-actions.pod:3868
25975 msgid "guestfs_ln"
25976 msgstr ""
25977
25978 #. type: verbatim
25979 #: ../src/guestfs-actions.pod:3870
25980 #, no-wrap
25981 msgid ""
25982 " int\n"
25983 " guestfs_ln (guestfs_h *g,\n"
25984 "             const char *target,\n"
25985 "             const char *linkname);\n"
25986 "\n"
25987 msgstr ""
25988
25989 #. type: =head2
25990 #: ../src/guestfs-actions.pod:3881
25991 msgid "guestfs_ln_f"
25992 msgstr ""
25993
25994 #. type: verbatim
25995 #: ../src/guestfs-actions.pod:3883
25996 #, no-wrap
25997 msgid ""
25998 " int\n"
25999 " guestfs_ln_f (guestfs_h *g,\n"
26000 "               const char *target,\n"
26001 "               const char *linkname);\n"
26002 "\n"
26003 msgstr ""
26004
26005 #. type: =head2
26006 #: ../src/guestfs-actions.pod:3895
26007 msgid "guestfs_ln_s"
26008 msgstr ""
26009
26010 #. type: verbatim
26011 #: ../src/guestfs-actions.pod:3897
26012 #, no-wrap
26013 msgid ""
26014 " int\n"
26015 " guestfs_ln_s (guestfs_h *g,\n"
26016 "               const char *target,\n"
26017 "               const char *linkname);\n"
26018 "\n"
26019 msgstr ""
26020
26021 #. type: =head2
26022 #: ../src/guestfs-actions.pod:3908
26023 msgid "guestfs_ln_sf"
26024 msgstr ""
26025
26026 #. type: verbatim
26027 #: ../src/guestfs-actions.pod:3910
26028 #, no-wrap
26029 msgid ""
26030 " int\n"
26031 " guestfs_ln_sf (guestfs_h *g,\n"
26032 "                const char *target,\n"
26033 "                const char *linkname);\n"
26034 "\n"
26035 msgstr ""
26036
26037 #. type: =head2
26038 #: ../src/guestfs-actions.pod:3922
26039 msgid "guestfs_lremovexattr"
26040 msgstr ""
26041
26042 #. type: verbatim
26043 #: ../src/guestfs-actions.pod:3924
26044 #, no-wrap
26045 msgid ""
26046 " int\n"
26047 " guestfs_lremovexattr (guestfs_h *g,\n"
26048 "                       const char *xattr,\n"
26049 "                       const char *path);\n"
26050 "\n"
26051 msgstr ""
26052
26053 #. type: textblock
26054 #: ../src/guestfs-actions.pod:3929
26055 msgid ""
26056 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
26057 "link, then it removes an extended attribute of the link itself."
26058 msgstr ""
26059
26060 #. type: =head2
26061 #: ../src/guestfs-actions.pod:3937
26062 msgid "guestfs_ls"
26063 msgstr ""
26064
26065 #. type: verbatim
26066 #: ../src/guestfs-actions.pod:3939
26067 #, no-wrap
26068 msgid ""
26069 " char **\n"
26070 " guestfs_ls (guestfs_h *g,\n"
26071 "             const char *directory);\n"
26072 "\n"
26073 msgstr ""
26074
26075 #. type: textblock
26076 #: ../src/guestfs-actions.pod:3947
26077 msgid ""
26078 "This command is mostly useful for interactive sessions.  Programs should "
26079 "probably use C<guestfs_readdir> instead."
26080 msgstr ""
26081
26082 #. type: =head2
26083 #: ../src/guestfs-actions.pod:3956
26084 msgid "guestfs_lsetxattr"
26085 msgstr ""
26086
26087 #. type: verbatim
26088 #: ../src/guestfs-actions.pod:3958
26089 #, no-wrap
26090 msgid ""
26091 " int\n"
26092 " guestfs_lsetxattr (guestfs_h *g,\n"
26093 "                    const char *xattr,\n"
26094 "                    const char *val,\n"
26095 "                    int vallen,\n"
26096 "                    const char *path);\n"
26097 "\n"
26098 msgstr ""
26099
26100 #. type: textblock
26101 #: ../src/guestfs-actions.pod:3965
26102 msgid ""
26103 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
26104 "then it sets an extended attribute of the link itself."
26105 msgstr ""
26106
26107 #. type: =head2
26108 #: ../src/guestfs-actions.pod:3973
26109 msgid "guestfs_lstat"
26110 msgstr ""
26111
26112 #. type: verbatim
26113 #: ../src/guestfs-actions.pod:3975
26114 #, no-wrap
26115 msgid ""
26116 " struct guestfs_stat *\n"
26117 " guestfs_lstat (guestfs_h *g,\n"
26118 "                const char *path);\n"
26119 "\n"
26120 msgstr ""
26121
26122 #. type: textblock
26123 #: ../src/guestfs-actions.pod:3981
26124 msgid ""
26125 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
26126 "link, then the link is stat-ed, not the file it refers to."
26127 msgstr ""
26128
26129 #. type: textblock
26130 #: ../src/guestfs-actions.pod:3987 ../src/guestfs-actions.pod:6762
26131 msgid ""
26132 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
26133 "error.  I<The caller must call C<guestfs_free_stat> after use>."
26134 msgstr ""
26135
26136 #. type: textblock
26137 #: ../src/guestfs-actions.pod:3991 ../src/guestfs-actions.pod:6766
26138 #: ../src/guestfs-actions.pod:6784 ../src/guestfs-actions.pod:7165
26139 msgid "(Added in 0.9.2)"
26140 msgstr ""
26141
26142 #. type: =head2
26143 #: ../src/guestfs-actions.pod:3993
26144 msgid "guestfs_lstatlist"
26145 msgstr ""
26146
26147 #. type: verbatim
26148 #: ../src/guestfs-actions.pod:3995
26149 #, no-wrap
26150 msgid ""
26151 " struct guestfs_stat_list *\n"
26152 " guestfs_lstatlist (guestfs_h *g,\n"
26153 "                    const char *path,\n"
26154 "                    char *const *names);\n"
26155 "\n"
26156 msgstr ""
26157
26158 #. type: textblock
26159 #: ../src/guestfs-actions.pod:4000
26160 msgid ""
26161 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
26162 "files, where all files are in the directory C<path>.  C<names> is the list "
26163 "of files from this directory."
26164 msgstr ""
26165
26166 #. type: textblock
26167 #: ../src/guestfs-actions.pod:4009
26168 msgid ""
26169 "This call is intended for programs that want to efficiently list a directory "
26170 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
26171 "for a similarly efficient call for getting extended attributes.  Very long "
26172 "directory listings might cause the protocol message size to be exceeded, "
26173 "causing this call to fail.  The caller must split up such requests into "
26174 "smaller groups of names."
26175 msgstr ""
26176
26177 #. type: textblock
26178 #: ../src/guestfs-actions.pod:4017
26179 msgid ""
26180 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
26181 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
26182 msgstr ""
26183
26184 #. type: =head2
26185 #: ../src/guestfs-actions.pod:4023
26186 msgid "guestfs_luks_add_key"
26187 msgstr ""
26188
26189 #. type: verbatim
26190 #: ../src/guestfs-actions.pod:4025
26191 #, no-wrap
26192 msgid ""
26193 " int\n"
26194 " guestfs_luks_add_key (guestfs_h *g,\n"
26195 "                       const char *device,\n"
26196 "                       const char *key,\n"
26197 "                       const char *newkey,\n"
26198 "                       int keyslot);\n"
26199 "\n"
26200 msgstr ""
26201
26202 #. type: textblock
26203 #: ../src/guestfs-actions.pod:4037
26204 msgid ""
26205 "Note that if C<keyslot> already contains a key, then this command will "
26206 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
26207 msgstr ""
26208
26209 #. type: textblock
26210 #: ../src/guestfs-actions.pod:4043 ../src/guestfs-actions.pod:4083
26211 #: ../src/guestfs-actions.pod:4106 ../src/guestfs-actions.pod:4126
26212 #: ../src/guestfs-actions.pod:4161 ../src/guestfs-actions.pod:4180
26213 msgid ""
26214 "This function takes a key or passphrase parameter which could contain "
26215 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
26216 "information."
26217 msgstr ""
26218
26219 #. type: textblock
26220 #: ../src/guestfs-actions.pod:4047 ../src/guestfs-actions.pod:4087
26221 #: ../src/guestfs-actions.pod:4110 ../src/guestfs-actions.pod:4130
26222 msgid "(Added in 1.5.2)"
26223 msgstr ""
26224
26225 #. type: =head2
26226 #: ../src/guestfs-actions.pod:4049
26227 msgid "guestfs_luks_close"
26228 msgstr ""
26229
26230 #. type: verbatim
26231 #: ../src/guestfs-actions.pod:4051
26232 #, no-wrap
26233 msgid ""
26234 " int\n"
26235 " guestfs_luks_close (guestfs_h *g,\n"
26236 "                     const char *device);\n"
26237 "\n"
26238 msgstr ""
26239
26240 #. type: textblock
26241 #: ../src/guestfs-actions.pod:4055
26242 msgid ""
26243 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
26244 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
26245 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
26246 "underlying block device."
26247 msgstr ""
26248
26249 #. type: textblock
26250 #: ../src/guestfs-actions.pod:4063 ../src/guestfs-actions.pod:4165
26251 #: ../src/guestfs-actions.pod:4184 ../src/guestfs-actions.pod:4234
26252 #: ../src/guestfs-actions.pod:4282
26253 msgid "(Added in 1.5.1)"
26254 msgstr ""
26255
26256 #. type: =head2
26257 #: ../src/guestfs-actions.pod:4065
26258 msgid "guestfs_luks_format"
26259 msgstr ""
26260
26261 #. type: verbatim
26262 #: ../src/guestfs-actions.pod:4067
26263 #, no-wrap
26264 msgid ""
26265 " int\n"
26266 " guestfs_luks_format (guestfs_h *g,\n"
26267 "                      const char *device,\n"
26268 "                      const char *key,\n"
26269 "                      int keyslot);\n"
26270 "\n"
26271 msgstr ""
26272
26273 #. type: =head2
26274 #: ../src/guestfs-actions.pod:4089
26275 msgid "guestfs_luks_format_cipher"
26276 msgstr ""
26277
26278 #. type: verbatim
26279 #: ../src/guestfs-actions.pod:4091
26280 #, no-wrap
26281 msgid ""
26282 " int\n"
26283 " guestfs_luks_format_cipher (guestfs_h *g,\n"
26284 "                             const char *device,\n"
26285 "                             const char *key,\n"
26286 "                             int keyslot,\n"
26287 "                             const char *cipher);\n"
26288 "\n"
26289 msgstr ""
26290
26291 #. type: textblock
26292 #: ../src/guestfs-actions.pod:4098
26293 msgid ""
26294 "This command is the same as C<guestfs_luks_format> but it also allows you to "
26295 "set the C<cipher> used."
26296 msgstr ""
26297
26298 #. type: =head2
26299 #: ../src/guestfs-actions.pod:4112
26300 msgid "guestfs_luks_kill_slot"
26301 msgstr ""
26302
26303 #. type: verbatim
26304 #: ../src/guestfs-actions.pod:4114
26305 #, no-wrap
26306 msgid ""
26307 " int\n"
26308 " guestfs_luks_kill_slot (guestfs_h *g,\n"
26309 "                         const char *device,\n"
26310 "                         const char *key,\n"
26311 "                         int keyslot);\n"
26312 "\n"
26313 msgstr ""
26314
26315 #. type: =head2
26316 #: ../src/guestfs-actions.pod:4132
26317 msgid "guestfs_luks_open"
26318 msgstr ""
26319
26320 #. type: verbatim
26321 #: ../src/guestfs-actions.pod:4134
26322 #, no-wrap
26323 msgid ""
26324 " int\n"
26325 " guestfs_luks_open (guestfs_h *g,\n"
26326 "                    const char *device,\n"
26327 "                    const char *key,\n"
26328 "                    const char *mapname);\n"
26329 "\n"
26330 msgstr ""
26331
26332 #. type: textblock
26333 #: ../src/guestfs-actions.pod:4152
26334 msgid ""
26335 "If this block device contains LVM volume groups, then calling "
26336 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
26337 "visible."
26338 msgstr ""
26339
26340 #. type: textblock
26341 #: ../src/guestfs-actions.pod:4156
26342 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
26343 msgstr ""
26344
26345 #. type: =head2
26346 #: ../src/guestfs-actions.pod:4167
26347 msgid "guestfs_luks_open_ro"
26348 msgstr ""
26349
26350 #. type: verbatim
26351 #: ../src/guestfs-actions.pod:4169
26352 #, no-wrap
26353 msgid ""
26354 " int\n"
26355 " guestfs_luks_open_ro (guestfs_h *g,\n"
26356 "                       const char *device,\n"
26357 "                       const char *key,\n"
26358 "                       const char *mapname);\n"
26359 "\n"
26360 msgstr ""
26361
26362 #. type: textblock
26363 #: ../src/guestfs-actions.pod:4175
26364 msgid ""
26365 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
26366 "created."
26367 msgstr ""
26368
26369 #. type: =head2
26370 #: ../src/guestfs-actions.pod:4186
26371 msgid "guestfs_lvcreate"
26372 msgstr ""
26373
26374 #. type: verbatim
26375 #: ../src/guestfs-actions.pod:4188
26376 #, no-wrap
26377 msgid ""
26378 " int\n"
26379 " guestfs_lvcreate (guestfs_h *g,\n"
26380 "                   const char *logvol,\n"
26381 "                   const char *volgroup,\n"
26382 "                   int mbytes);\n"
26383 "\n"
26384 msgstr ""
26385
26386 #. type: =head2
26387 #: ../src/guestfs-actions.pod:4201
26388 msgid "guestfs_lvm_canonical_lv_name"
26389 msgstr ""
26390
26391 #. type: verbatim
26392 #: ../src/guestfs-actions.pod:4203
26393 #, no-wrap
26394 msgid ""
26395 " char *\n"
26396 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
26397 "                                const char *lvname);\n"
26398 "\n"
26399 msgstr ""
26400
26401 #. type: textblock
26402 #: ../src/guestfs-actions.pod:4214
26403 msgid "See also C<guestfs_is_lv>."
26404 msgstr ""
26405
26406 #. type: textblock
26407 #: ../src/guestfs-actions.pod:4219
26408 msgid "(Added in 1.5.24)"
26409 msgstr ""
26410
26411 #. type: =head2
26412 #: ../src/guestfs-actions.pod:4221
26413 msgid "guestfs_lvm_clear_filter"
26414 msgstr ""
26415
26416 #. type: verbatim
26417 #: ../src/guestfs-actions.pod:4223
26418 #, no-wrap
26419 msgid ""
26420 " int\n"
26421 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
26422 "\n"
26423 msgstr ""
26424
26425 #. type: textblock
26426 #: ../src/guestfs-actions.pod:4226
26427 msgid ""
26428 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
26429 "see every block device."
26430 msgstr ""
26431
26432 #. type: =head2
26433 #: ../src/guestfs-actions.pod:4236
26434 msgid "guestfs_lvm_remove_all"
26435 msgstr ""
26436
26437 #. type: verbatim
26438 #: ../src/guestfs-actions.pod:4238
26439 #, no-wrap
26440 msgid ""
26441 " int\n"
26442 " guestfs_lvm_remove_all (guestfs_h *g);\n"
26443 "\n"
26444 msgstr ""
26445
26446 #. type: =head2
26447 #: ../src/guestfs-actions.pod:4251
26448 msgid "guestfs_lvm_set_filter"
26449 msgstr ""
26450
26451 #. type: verbatim
26452 #: ../src/guestfs-actions.pod:4253
26453 #, no-wrap
26454 msgid ""
26455 " int\n"
26456 " guestfs_lvm_set_filter (guestfs_h *g,\n"
26457 "                         char *const *devices);\n"
26458 "\n"
26459 msgstr ""
26460
26461 #. type: =head2
26462 #: ../src/guestfs-actions.pod:4284
26463 msgid "guestfs_lvremove"
26464 msgstr ""
26465
26466 #. type: verbatim
26467 #: ../src/guestfs-actions.pod:4286
26468 #, no-wrap
26469 msgid ""
26470 " int\n"
26471 " guestfs_lvremove (guestfs_h *g,\n"
26472 "                   const char *device);\n"
26473 "\n"
26474 msgstr ""
26475
26476 #. type: textblock
26477 #: ../src/guestfs-actions.pod:4298 ../src/guestfs-actions.pod:5701
26478 #: ../src/guestfs-actions.pod:7535
26479 msgid "(Added in 1.0.13)"
26480 msgstr ""
26481
26482 #. type: =head2
26483 #: ../src/guestfs-actions.pod:4300
26484 msgid "guestfs_lvrename"
26485 msgstr ""
26486
26487 #. type: verbatim
26488 #: ../src/guestfs-actions.pod:4302
26489 #, no-wrap
26490 msgid ""
26491 " int\n"
26492 " guestfs_lvrename (guestfs_h *g,\n"
26493 "                   const char *logvol,\n"
26494 "                   const char *newlogvol);\n"
26495 "\n"
26496 msgstr ""
26497
26498 #. type: textblock
26499 #: ../src/guestfs-actions.pod:4311 ../src/guestfs-actions.pod:7548
26500 msgid "(Added in 1.0.83)"
26501 msgstr ""
26502
26503 #. type: =head2
26504 #: ../src/guestfs-actions.pod:4313
26505 msgid "guestfs_lvresize"
26506 msgstr ""
26507
26508 #. type: verbatim
26509 #: ../src/guestfs-actions.pod:4315
26510 #, no-wrap
26511 msgid ""
26512 " int\n"
26513 " guestfs_lvresize (guestfs_h *g,\n"
26514 "                   const char *device,\n"
26515 "                   int mbytes);\n"
26516 "\n"
26517 msgstr ""
26518
26519 #. type: =head2
26520 #: ../src/guestfs-actions.pod:4328
26521 msgid "guestfs_lvresize_free"
26522 msgstr ""
26523
26524 #. type: verbatim
26525 #: ../src/guestfs-actions.pod:4330
26526 #, no-wrap
26527 msgid ""
26528 " int\n"
26529 " guestfs_lvresize_free (guestfs_h *g,\n"
26530 "                        const char *lv,\n"
26531 "                        int percent);\n"
26532 "\n"
26533 msgstr ""
26534
26535 #. type: textblock
26536 #: ../src/guestfs-actions.pod:4343
26537 msgid "(Added in 1.3.3)"
26538 msgstr ""
26539
26540 #. type: =head2
26541 #: ../src/guestfs-actions.pod:4345
26542 msgid "guestfs_lvs"
26543 msgstr ""
26544
26545 #. type: verbatim
26546 #: ../src/guestfs-actions.pod:4347
26547 #, no-wrap
26548 msgid ""
26549 " char **\n"
26550 " guestfs_lvs (guestfs_h *g);\n"
26551 "\n"
26552 msgstr ""
26553
26554 #. type: textblock
26555 #: ../src/guestfs-actions.pod:4356
26556 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
26557 msgstr ""
26558
26559 #. type: =head2
26560 #: ../src/guestfs-actions.pod:4364
26561 msgid "guestfs_lvs_full"
26562 msgstr ""
26563
26564 #. type: verbatim
26565 #: ../src/guestfs-actions.pod:4366
26566 #, no-wrap
26567 msgid ""
26568 " struct guestfs_lvm_lv_list *\n"
26569 " guestfs_lvs_full (guestfs_h *g);\n"
26570 "\n"
26571 msgstr ""
26572
26573 #. type: textblock
26574 #: ../src/guestfs-actions.pod:4372
26575 msgid ""
26576 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
26577 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
26578 msgstr ""
26579
26580 #. type: =head2
26581 #: ../src/guestfs-actions.pod:4378
26582 msgid "guestfs_lvuuid"
26583 msgstr ""
26584
26585 #. type: verbatim
26586 #: ../src/guestfs-actions.pod:4380
26587 #, no-wrap
26588 msgid ""
26589 " char *\n"
26590 " guestfs_lvuuid (guestfs_h *g,\n"
26591 "                 const char *device);\n"
26592 "\n"
26593 msgstr ""
26594
26595 #. type: =head2
26596 #: ../src/guestfs-actions.pod:4391
26597 msgid "guestfs_lxattrlist"
26598 msgstr ""
26599
26600 #. type: verbatim
26601 #: ../src/guestfs-actions.pod:4393
26602 #, no-wrap
26603 msgid ""
26604 " struct guestfs_xattr_list *\n"
26605 " guestfs_lxattrlist (guestfs_h *g,\n"
26606 "                     const char *path,\n"
26607 "                     char *const *names);\n"
26608 "\n"
26609 msgstr ""
26610
26611 #. type: textblock
26612 #: ../src/guestfs-actions.pod:4412
26613 msgid ""
26614 "This call is intended for programs that want to efficiently list a directory "
26615 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
26616 "a similarly efficient call for getting standard stats.  Very long directory "
26617 "listings might cause the protocol message size to be exceeded, causing this "
26618 "call to fail.  The caller must split up such requests into smaller groups of "
26619 "names."
26620 msgstr ""
26621
26622 #. type: =head2
26623 #: ../src/guestfs-actions.pod:4426
26624 msgid "guestfs_mkdir"
26625 msgstr ""
26626
26627 #. type: verbatim
26628 #: ../src/guestfs-actions.pod:4428
26629 #, no-wrap
26630 msgid ""
26631 " int\n"
26632 " guestfs_mkdir (guestfs_h *g,\n"
26633 "                const char *path);\n"
26634 "\n"
26635 msgstr ""
26636
26637 #. type: =head2
26638 #: ../src/guestfs-actions.pod:4438
26639 msgid "guestfs_mkdir_mode"
26640 msgstr ""
26641
26642 #. type: verbatim
26643 #: ../src/guestfs-actions.pod:4440
26644 #, no-wrap
26645 msgid ""
26646 " int\n"
26647 " guestfs_mkdir_mode (guestfs_h *g,\n"
26648 "                     const char *path,\n"
26649 "                     int mode);\n"
26650 "\n"
26651 msgstr ""
26652
26653 #. type: textblock
26654 #: ../src/guestfs-actions.pod:4452
26655 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
26656 msgstr ""
26657
26658 #. type: =head2
26659 #: ../src/guestfs-actions.pod:4458
26660 msgid "guestfs_mkdir_p"
26661 msgstr ""
26662
26663 #. type: verbatim
26664 #: ../src/guestfs-actions.pod:4460
26665 #, no-wrap
26666 msgid ""
26667 " int\n"
26668 " guestfs_mkdir_p (guestfs_h *g,\n"
26669 "                  const char *path);\n"
26670 "\n"
26671 msgstr ""
26672
26673 #. type: =head2
26674 #: ../src/guestfs-actions.pod:4471
26675 msgid "guestfs_mkdtemp"
26676 msgstr ""
26677
26678 #. type: verbatim
26679 #: ../src/guestfs-actions.pod:4473
26680 #, no-wrap
26681 msgid ""
26682 " char *\n"
26683 " guestfs_mkdtemp (guestfs_h *g,\n"
26684 "                  const char *template);\n"
26685 "\n"
26686 msgstr ""
26687
26688 #. type: =head2
26689 #: ../src/guestfs-actions.pod:4501
26690 msgid "guestfs_mke2fs_J"
26691 msgstr ""
26692
26693 #. type: verbatim
26694 #: ../src/guestfs-actions.pod:4503
26695 #, no-wrap
26696 msgid ""
26697 " int\n"
26698 " guestfs_mke2fs_J (guestfs_h *g,\n"
26699 "                   const char *fstype,\n"
26700 "                   int blocksize,\n"
26701 "                   const char *device,\n"
26702 "                   const char *journal);\n"
26703 "\n"
26704 msgstr ""
26705
26706 #. type: textblock
26707 #: ../src/guestfs-actions.pod:4516
26708 msgid "See also C<guestfs_mke2journal>."
26709 msgstr ""
26710
26711 #. type: textblock
26712 #: ../src/guestfs-actions.pod:4520 ../src/guestfs-actions.pod:4538
26713 #: ../src/guestfs-actions.pod:4556 ../src/guestfs-actions.pod:4572
26714 #: ../src/guestfs-actions.pod:4586 ../src/guestfs-actions.pod:4600
26715 #: ../src/guestfs-actions.pod:4659 ../src/guestfs-actions.pod:4936
26716 msgid "(Added in 1.0.68)"
26717 msgstr ""
26718
26719 #. type: =head2
26720 #: ../src/guestfs-actions.pod:4522
26721 msgid "guestfs_mke2fs_JL"
26722 msgstr ""
26723
26724 #. type: verbatim
26725 #: ../src/guestfs-actions.pod:4524
26726 #, no-wrap
26727 msgid ""
26728 " int\n"
26729 " guestfs_mke2fs_JL (guestfs_h *g,\n"
26730 "                    const char *fstype,\n"
26731 "                    int blocksize,\n"
26732 "                    const char *device,\n"
26733 "                    const char *label);\n"
26734 "\n"
26735 msgstr ""
26736
26737 #. type: textblock
26738 #: ../src/guestfs-actions.pod:4534
26739 msgid "See also C<guestfs_mke2journal_L>."
26740 msgstr ""
26741
26742 #. type: =head2
26743 #: ../src/guestfs-actions.pod:4540
26744 msgid "guestfs_mke2fs_JU"
26745 msgstr ""
26746
26747 #. type: verbatim
26748 #: ../src/guestfs-actions.pod:4542
26749 #, no-wrap
26750 msgid ""
26751 " int\n"
26752 " guestfs_mke2fs_JU (guestfs_h *g,\n"
26753 "                    const char *fstype,\n"
26754 "                    int blocksize,\n"
26755 "                    const char *device,\n"
26756 "                    const char *uuid);\n"
26757 "\n"
26758 msgstr ""
26759
26760 #. type: textblock
26761 #: ../src/guestfs-actions.pod:4552
26762 msgid "See also C<guestfs_mke2journal_U>."
26763 msgstr ""
26764
26765 #. type: =head2
26766 #: ../src/guestfs-actions.pod:4558
26767 msgid "guestfs_mke2journal"
26768 msgstr ""
26769
26770 #. type: verbatim
26771 #: ../src/guestfs-actions.pod:4560
26772 #, no-wrap
26773 msgid ""
26774 " int\n"
26775 " guestfs_mke2journal (guestfs_h *g,\n"
26776 "                      int blocksize,\n"
26777 "                      const char *device);\n"
26778 "\n"
26779 msgstr ""
26780
26781 #. type: =head2
26782 #: ../src/guestfs-actions.pod:4574
26783 msgid "guestfs_mke2journal_L"
26784 msgstr ""
26785
26786 #. type: verbatim
26787 #: ../src/guestfs-actions.pod:4576
26788 #, no-wrap
26789 msgid ""
26790 " int\n"
26791 " guestfs_mke2journal_L (guestfs_h *g,\n"
26792 "                        int blocksize,\n"
26793 "                        const char *label,\n"
26794 "                        const char *device);\n"
26795 "\n"
26796 msgstr ""
26797
26798 #. type: =head2
26799 #: ../src/guestfs-actions.pod:4588
26800 msgid "guestfs_mke2journal_U"
26801 msgstr ""
26802
26803 #. type: verbatim
26804 #: ../src/guestfs-actions.pod:4590
26805 #, no-wrap
26806 msgid ""
26807 " int\n"
26808 " guestfs_mke2journal_U (guestfs_h *g,\n"
26809 "                        int blocksize,\n"
26810 "                        const char *uuid,\n"
26811 "                        const char *device);\n"
26812 "\n"
26813 msgstr ""
26814
26815 #. type: =head2
26816 #: ../src/guestfs-actions.pod:4602
26817 msgid "guestfs_mkfifo"
26818 msgstr ""
26819
26820 #. type: verbatim
26821 #: ../src/guestfs-actions.pod:4604
26822 #, no-wrap
26823 msgid ""
26824 " int\n"
26825 " guestfs_mkfifo (guestfs_h *g,\n"
26826 "                 int mode,\n"
26827 "                 const char *path);\n"
26828 "\n"
26829 msgstr ""
26830
26831 #. type: textblock
26832 #: ../src/guestfs-actions.pod:4609
26833 msgid ""
26834 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
26835 "is just a convenient wrapper around C<guestfs_mknod>."
26836 msgstr ""
26837
26838 #. type: =head2
26839 #: ../src/guestfs-actions.pod:4619
26840 msgid "guestfs_mkfs"
26841 msgstr ""
26842
26843 #. type: verbatim
26844 #: ../src/guestfs-actions.pod:4621
26845 #, no-wrap
26846 msgid ""
26847 " int\n"
26848 " guestfs_mkfs (guestfs_h *g,\n"
26849 "               const char *fstype,\n"
26850 "               const char *device);\n"
26851 "\n"
26852 msgstr ""
26853
26854 #. type: =head2
26855 #: ../src/guestfs-actions.pod:4634
26856 msgid "guestfs_mkfs_b"
26857 msgstr ""
26858
26859 #. type: verbatim
26860 #: ../src/guestfs-actions.pod:4636
26861 #, no-wrap
26862 msgid ""
26863 " int\n"
26864 " guestfs_mkfs_b (guestfs_h *g,\n"
26865 "                 const char *fstype,\n"
26866 "                 int blocksize,\n"
26867 "                 const char *device);\n"
26868 "\n"
26869 msgstr ""
26870
26871 #. type: textblock
26872 #: ../src/guestfs-actions.pod:4642
26873 msgid ""
26874 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
26875 "block size of the resulting filesystem.  Supported block sizes depend on the "
26876 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
26877 msgstr ""
26878
26879 #. type: textblock
26880 #: ../src/guestfs-actions.pod:4652
26881 msgid ""
26882 "This function is deprecated.  In new code, use the L</guestfs_mkfs_opts> "
26883 "call instead."
26884 msgstr ""
26885
26886 #. type: =head2
26887 #: ../src/guestfs-actions.pod:4661
26888 msgid "guestfs_mkfs_opts"
26889 msgstr ""
26890
26891 #. type: verbatim
26892 #: ../src/guestfs-actions.pod:4663
26893 #, no-wrap
26894 msgid ""
26895 " int\n"
26896 " guestfs_mkfs_opts (guestfs_h *g,\n"
26897 "                    const char *fstype,\n"
26898 "                    const char *device,\n"
26899 "                    ...);\n"
26900 "\n"
26901 msgstr ""
26902
26903 #. type: verbatim
26904 #: ../src/guestfs-actions.pod:4674
26905 #, no-wrap
26906 msgid ""
26907 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
26908 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
26909 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
26910 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
26911 "\n"
26912 msgstr ""
26913
26914 #. type: textblock
26915 #: ../src/guestfs-actions.pod:4722
26916 msgid "(Added in 1.7.19)"
26917 msgstr ""
26918
26919 #. type: =head2
26920 #: ../src/guestfs-actions.pod:4724
26921 msgid "guestfs_mkfs_opts_va"
26922 msgstr ""
26923
26924 #. type: verbatim
26925 #: ../src/guestfs-actions.pod:4726
26926 #, no-wrap
26927 msgid ""
26928 " int\n"
26929 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
26930 "                       const char *fstype,\n"
26931 "                       const char *device,\n"
26932 "                       va_list args);\n"
26933 "\n"
26934 msgstr ""
26935
26936 #. type: textblock
26937 #: ../src/guestfs-actions.pod:4732
26938 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
26939 msgstr ""
26940
26941 #. type: =head2
26942 #: ../src/guestfs-actions.pod:4736
26943 msgid "guestfs_mkfs_opts_argv"
26944 msgstr ""
26945
26946 #. type: verbatim
26947 #: ../src/guestfs-actions.pod:4738
26948 #, no-wrap
26949 msgid ""
26950 " int\n"
26951 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
26952 "                         const char *fstype,\n"
26953 "                         const char *device,\n"
26954 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
26955 "\n"
26956 msgstr ""
26957
26958 #. type: textblock
26959 #: ../src/guestfs-actions.pod:4744
26960 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
26961 msgstr ""
26962
26963 #. type: =head2
26964 #: ../src/guestfs-actions.pod:4748
26965 msgid "guestfs_mkmountpoint"
26966 msgstr ""
26967
26968 #. type: verbatim
26969 #: ../src/guestfs-actions.pod:4750
26970 #, no-wrap
26971 msgid ""
26972 " int\n"
26973 " guestfs_mkmountpoint (guestfs_h *g,\n"
26974 "                       const char *exemptpath);\n"
26975 "\n"
26976 msgstr ""
26977
26978 #. type: textblock
26979 #: ../src/guestfs-actions.pod:4754
26980 msgid ""
26981 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
26982 "that can be used to create extra mountpoints before mounting the first "
26983 "filesystem."
26984 msgstr ""
26985
26986 #. type: textblock
26987 #: ../src/guestfs-actions.pod:4778
26988 msgid ""
26989 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
26990 "may get unexpected errors if you try to mix these calls.  It is safest to "
26991 "manually unmount filesystems and remove mountpoints after use."
26992 msgstr ""
26993
26994 #. type: textblock
26995 #: ../src/guestfs-actions.pod:4782
26996 msgid ""
26997 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
26998 "first, so for this to work for manual mountpoints, you must ensure that the "
26999 "innermost mountpoints have the longest pathnames, as in the example code "
27000 "above."
27001 msgstr ""
27002
27003 #. type: textblock
27004 #: ../src/guestfs-actions.pod:4789
27005 msgid ""
27006 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
27007 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
27008 "can also trigger these issues."
27009 msgstr ""
27010
27011 #. type: textblock
27012 #: ../src/guestfs-actions.pod:4795 ../src/guestfs-actions.pod:5111
27013 #: ../src/guestfs-actions.pod:6121
27014 msgid "(Added in 1.0.62)"
27015 msgstr ""
27016
27017 #. type: =head2
27018 #: ../src/guestfs-actions.pod:4797
27019 msgid "guestfs_mknod"
27020 msgstr ""
27021
27022 #. type: verbatim
27023 #: ../src/guestfs-actions.pod:4799
27024 #, no-wrap
27025 msgid ""
27026 " int\n"
27027 " guestfs_mknod (guestfs_h *g,\n"
27028 "                int mode,\n"
27029 "                int devmajor,\n"
27030 "                int devminor,\n"
27031 "                const char *path);\n"
27032 "\n"
27033 msgstr ""
27034
27035 #. type: textblock
27036 #: ../src/guestfs-actions.pod:4814
27037 msgid ""
27038 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
27039 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
27040 "regular file).  These constants are available in the standard Linux header "
27041 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
27042 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
27043 "the appropriate constant for you."
27044 msgstr ""
27045
27046 #. type: =head2
27047 #: ../src/guestfs-actions.pod:4828
27048 msgid "guestfs_mknod_b"
27049 msgstr ""
27050
27051 #. type: verbatim
27052 #: ../src/guestfs-actions.pod:4830
27053 #, no-wrap
27054 msgid ""
27055 " int\n"
27056 " guestfs_mknod_b (guestfs_h *g,\n"
27057 "                  int mode,\n"
27058 "                  int devmajor,\n"
27059 "                  int devminor,\n"
27060 "                  const char *path);\n"
27061 "\n"
27062 msgstr ""
27063
27064 #. type: textblock
27065 #: ../src/guestfs-actions.pod:4837
27066 msgid ""
27067 "This call creates a block device node called C<path> with mode C<mode> and "
27068 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
27069 "wrapper around C<guestfs_mknod>."
27070 msgstr ""
27071
27072 #. type: =head2
27073 #: ../src/guestfs-actions.pod:4847
27074 msgid "guestfs_mknod_c"
27075 msgstr ""
27076
27077 #. type: verbatim
27078 #: ../src/guestfs-actions.pod:4849
27079 #, no-wrap
27080 msgid ""
27081 " int\n"
27082 " guestfs_mknod_c (guestfs_h *g,\n"
27083 "                  int mode,\n"
27084 "                  int devmajor,\n"
27085 "                  int devminor,\n"
27086 "                  const char *path);\n"
27087 "\n"
27088 msgstr ""
27089
27090 #. type: textblock
27091 #: ../src/guestfs-actions.pod:4856
27092 msgid ""
27093 "This call creates a char device node called C<path> with mode C<mode> and "
27094 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
27095 "wrapper around C<guestfs_mknod>."
27096 msgstr ""
27097
27098 #. type: =head2
27099 #: ../src/guestfs-actions.pod:4866
27100 msgid "guestfs_mkswap"
27101 msgstr ""
27102
27103 #. type: verbatim
27104 #: ../src/guestfs-actions.pod:4868
27105 #, no-wrap
27106 msgid ""
27107 " int\n"
27108 " guestfs_mkswap (guestfs_h *g,\n"
27109 "                 const char *device);\n"
27110 "\n"
27111 msgstr ""
27112
27113 #. type: =head2
27114 #: ../src/guestfs-actions.pod:4878
27115 msgid "guestfs_mkswap_L"
27116 msgstr ""
27117
27118 #. type: verbatim
27119 #: ../src/guestfs-actions.pod:4880
27120 #, no-wrap
27121 msgid ""
27122 " int\n"
27123 " guestfs_mkswap_L (guestfs_h *g,\n"
27124 "                   const char *label,\n"
27125 "                   const char *device);\n"
27126 "\n"
27127 msgstr ""
27128
27129 #. type: =head2
27130 #: ../src/guestfs-actions.pod:4895
27131 msgid "guestfs_mkswap_U"
27132 msgstr ""
27133
27134 #. type: verbatim
27135 #: ../src/guestfs-actions.pod:4897
27136 #, no-wrap
27137 msgid ""
27138 " int\n"
27139 " guestfs_mkswap_U (guestfs_h *g,\n"
27140 "                   const char *uuid,\n"
27141 "                   const char *device);\n"
27142 "\n"
27143 msgstr ""
27144
27145 #. type: =head2
27146 #: ../src/guestfs-actions.pod:4908
27147 msgid "guestfs_mkswap_file"
27148 msgstr ""
27149
27150 #. type: verbatim
27151 #: ../src/guestfs-actions.pod:4910
27152 #, no-wrap
27153 msgid ""
27154 " int\n"
27155 " guestfs_mkswap_file (guestfs_h *g,\n"
27156 "                      const char *path);\n"
27157 "\n"
27158 msgstr ""
27159
27160 #. type: textblock
27161 #: ../src/guestfs-actions.pod:4916
27162 msgid ""
27163 "This command just writes a swap file signature to an existing file.  To "
27164 "create the file itself, use something like C<guestfs_fallocate>."
27165 msgstr ""
27166
27167 #. type: =head2
27168 #: ../src/guestfs-actions.pod:4923
27169 msgid "guestfs_modprobe"
27170 msgstr ""
27171
27172 #. type: verbatim
27173 #: ../src/guestfs-actions.pod:4925
27174 #, no-wrap
27175 msgid ""
27176 " int\n"
27177 " guestfs_modprobe (guestfs_h *g,\n"
27178 "                   const char *modulename);\n"
27179 "\n"
27180 msgstr ""
27181
27182 #. type: =head2
27183 #: ../src/guestfs-actions.pod:4938
27184 msgid "guestfs_mount"
27185 msgstr ""
27186
27187 #. type: verbatim
27188 #: ../src/guestfs-actions.pod:4940
27189 #, no-wrap
27190 msgid ""
27191 " int\n"
27192 " guestfs_mount (guestfs_h *g,\n"
27193 "                const char *device,\n"
27194 "                const char *mountpoint);\n"
27195 "\n"
27196 msgstr ""
27197
27198 #. type: textblock
27199 #: ../src/guestfs-actions.pod:4959
27200 msgid ""
27201 "B<Important note:> When you use this call, the filesystem options C<sync> "
27202 "and C<noatime> are set implicitly.  This was originally done because we "
27203 "thought it would improve reliability, but it turns out that I<-o sync> has a "
27204 "very large negative performance impact and negligible effect on "
27205 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
27206 "in any code that needs performance, and instead use C<guestfs_mount_options> "
27207 "(use an empty string for the first parameter if you don't want any options)."
27208 msgstr ""
27209
27210 #. type: textblock
27211 #: ../src/guestfs-actions.pod:4971
27212 msgid ""
27213 "This function is deprecated.  In new code, use the L</guestfs_mount_options> "
27214 "call instead."
27215 msgstr ""
27216
27217 #. type: =head2
27218 #: ../src/guestfs-actions.pod:4980
27219 msgid "guestfs_mount_9p"
27220 msgstr ""
27221
27222 #. type: verbatim
27223 #: ../src/guestfs-actions.pod:4982
27224 #, no-wrap
27225 msgid ""
27226 " int\n"
27227 " guestfs_mount_9p (guestfs_h *g,\n"
27228 "                   const char *mounttag,\n"
27229 "                   const char *mountpoint,\n"
27230 "                   ...);\n"
27231 "\n"
27232 msgstr ""
27233
27234 #. type: verbatim
27235 #: ../src/guestfs-actions.pod:4993
27236 #, no-wrap
27237 msgid ""
27238 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
27239 "\n"
27240 msgstr ""
27241
27242 #. type: =head2
27243 #: ../src/guestfs-actions.pod:5006
27244 msgid "guestfs_mount_9p_va"
27245 msgstr ""
27246
27247 #. type: verbatim
27248 #: ../src/guestfs-actions.pod:5008
27249 #, no-wrap
27250 msgid ""
27251 " int\n"
27252 " guestfs_mount_9p_va (guestfs_h *g,\n"
27253 "                      const char *mounttag,\n"
27254 "                      const char *mountpoint,\n"
27255 "                      va_list args);\n"
27256 "\n"
27257 msgstr ""
27258
27259 #. type: textblock
27260 #: ../src/guestfs-actions.pod:5014
27261 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
27262 msgstr ""
27263
27264 #. type: =head2
27265 #: ../src/guestfs-actions.pod:5018
27266 msgid "guestfs_mount_9p_argv"
27267 msgstr ""
27268
27269 #. type: verbatim
27270 #: ../src/guestfs-actions.pod:5020
27271 #, no-wrap
27272 msgid ""
27273 " int\n"
27274 " guestfs_mount_9p_argv (guestfs_h *g,\n"
27275 "                        const char *mounttag,\n"
27276 "                        const char *mountpoint,\n"
27277 "                        const struct guestfs_mount_9p_argv *optargs);\n"
27278 "\n"
27279 msgstr ""
27280
27281 #. type: textblock
27282 #: ../src/guestfs-actions.pod:5026
27283 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
27284 msgstr ""
27285
27286 #. type: =head2
27287 #: ../src/guestfs-actions.pod:5030
27288 msgid "guestfs_mount_loop"
27289 msgstr ""
27290
27291 #. type: verbatim
27292 #: ../src/guestfs-actions.pod:5032
27293 #, no-wrap
27294 msgid ""
27295 " int\n"
27296 " guestfs_mount_loop (guestfs_h *g,\n"
27297 "                     const char *file,\n"
27298 "                     const char *mountpoint);\n"
27299 "\n"
27300 msgstr ""
27301
27302 #. type: =head2
27303 #: ../src/guestfs-actions.pod:5045
27304 msgid "guestfs_mount_options"
27305 msgstr ""
27306
27307 #. type: verbatim
27308 #: ../src/guestfs-actions.pod:5047
27309 #, no-wrap
27310 msgid ""
27311 " int\n"
27312 " guestfs_mount_options (guestfs_h *g,\n"
27313 "                        const char *options,\n"
27314 "                        const char *device,\n"
27315 "                        const char *mountpoint);\n"
27316 "\n"
27317 msgstr ""
27318
27319 #. type: textblock
27320 #: ../src/guestfs-actions.pod:5053
27321 msgid ""
27322 "This is the same as the C<guestfs_mount> command, but it allows you to set "
27323 "the mount options as for the L<mount(8)> I<-o> flag."
27324 msgstr ""
27325
27326 #. type: textblock
27327 #: ../src/guestfs-actions.pod:5063 ../src/guestfs-actions.pod:5077
27328 #: ../src/guestfs-actions.pod:5094
27329 msgid "(Added in 1.0.10)"
27330 msgstr ""
27331
27332 #. type: =head2
27333 #: ../src/guestfs-actions.pod:5065
27334 msgid "guestfs_mount_ro"
27335 msgstr ""
27336
27337 #. type: verbatim
27338 #: ../src/guestfs-actions.pod:5067
27339 #, no-wrap
27340 msgid ""
27341 " int\n"
27342 " guestfs_mount_ro (guestfs_h *g,\n"
27343 "                   const char *device,\n"
27344 "                   const char *mountpoint);\n"
27345 "\n"
27346 msgstr ""
27347
27348 #. type: textblock
27349 #: ../src/guestfs-actions.pod:5072
27350 msgid ""
27351 "This is the same as the C<guestfs_mount> command, but it mounts the "
27352 "filesystem with the read-only (I<-o ro>) flag."
27353 msgstr ""
27354
27355 #. type: =head2
27356 #: ../src/guestfs-actions.pod:5079
27357 msgid "guestfs_mount_vfs"
27358 msgstr ""
27359
27360 #. type: verbatim
27361 #: ../src/guestfs-actions.pod:5081
27362 #, no-wrap
27363 msgid ""
27364 " int\n"
27365 " guestfs_mount_vfs (guestfs_h *g,\n"
27366 "                    const char *options,\n"
27367 "                    const char *vfstype,\n"
27368 "                    const char *device,\n"
27369 "                    const char *mountpoint);\n"
27370 "\n"
27371 msgstr ""
27372
27373 #. type: textblock
27374 #: ../src/guestfs-actions.pod:5088
27375 msgid ""
27376 "This is the same as the C<guestfs_mount> command, but it allows you to set "
27377 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
27378 "t> flags."
27379 msgstr ""
27380
27381 #. type: =head2
27382 #: ../src/guestfs-actions.pod:5096
27383 msgid "guestfs_mountpoints"
27384 msgstr ""
27385
27386 #. type: verbatim
27387 #: ../src/guestfs-actions.pod:5098
27388 #, no-wrap
27389 msgid ""
27390 " char **\n"
27391 " guestfs_mountpoints (guestfs_h *g);\n"
27392 "\n"
27393 msgstr ""
27394
27395 #. type: textblock
27396 #: ../src/guestfs-actions.pod:5101
27397 msgid ""
27398 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
27399 "devices.  This one returns a hash table (map) of device name to directory "
27400 "where the device is mounted."
27401 msgstr ""
27402
27403 #. type: =head2
27404 #: ../src/guestfs-actions.pod:5113
27405 msgid "guestfs_mounts"
27406 msgstr ""
27407
27408 #. type: verbatim
27409 #: ../src/guestfs-actions.pod:5115
27410 #, no-wrap
27411 msgid ""
27412 " char **\n"
27413 " guestfs_mounts (guestfs_h *g);\n"
27414 "\n"
27415 msgstr ""
27416
27417 #. type: textblock
27418 #: ../src/guestfs-actions.pod:5123
27419 msgid "See also: C<guestfs_mountpoints>"
27420 msgstr ""
27421
27422 #. type: =head2
27423 #: ../src/guestfs-actions.pod:5131
27424 msgid "guestfs_mv"
27425 msgstr ""
27426
27427 #. type: verbatim
27428 #: ../src/guestfs-actions.pod:5133
27429 #, no-wrap
27430 msgid ""
27431 " int\n"
27432 " guestfs_mv (guestfs_h *g,\n"
27433 "             const char *src,\n"
27434 "             const char *dest);\n"
27435 "\n"
27436 msgstr ""
27437
27438 #. type: =head2
27439 #: ../src/guestfs-actions.pod:5145
27440 msgid "guestfs_ntfs_3g_probe"
27441 msgstr ""
27442
27443 #. type: verbatim
27444 #: ../src/guestfs-actions.pod:5147
27445 #, no-wrap
27446 msgid ""
27447 " int\n"
27448 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
27449 "                        int rw,\n"
27450 "                        const char *device);\n"
27451 "\n"
27452 msgstr ""
27453
27454 #. type: textblock
27455 #: ../src/guestfs-actions.pod:5166
27456 msgid "(Added in 1.0.43)"
27457 msgstr ""
27458
27459 #. type: =head2
27460 #: ../src/guestfs-actions.pod:5168
27461 msgid "guestfs_ntfsresize"
27462 msgstr ""
27463
27464 #. type: verbatim
27465 #: ../src/guestfs-actions.pod:5170
27466 #, no-wrap
27467 msgid ""
27468 " int\n"
27469 " guestfs_ntfsresize (guestfs_h *g,\n"
27470 "                     const char *device);\n"
27471 "\n"
27472 msgstr ""
27473
27474 #. type: textblock
27475 #: ../src/guestfs-actions.pod:5189 ../src/guestfs-actions.pod:5279
27476 msgid ""
27477 "This function is deprecated.  In new code, use the L</"
27478 "guestfs_ntfsresize_opts> call instead."
27479 msgstr ""
27480
27481 #. type: =head2
27482 #: ../src/guestfs-actions.pod:5198
27483 msgid "guestfs_ntfsresize_opts"
27484 msgstr ""
27485
27486 #. type: verbatim
27487 #: ../src/guestfs-actions.pod:5200
27488 #, no-wrap
27489 msgid ""
27490 " int\n"
27491 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
27492 "                          const char *device,\n"
27493 "                          ...);\n"
27494 "\n"
27495 msgstr ""
27496
27497 #. type: verbatim
27498 #: ../src/guestfs-actions.pod:5210
27499 #, no-wrap
27500 msgid ""
27501 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
27502 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
27503 "\n"
27504 msgstr ""
27505
27506 #. type: textblock
27507 #: ../src/guestfs-actions.pod:5230
27508 msgid ""
27509 "After the resize operation, the filesystem is always marked as requiring a "
27510 "consistency check (for safety).  You have to boot into Windows to perform "
27511 "this check and clear this condition.  If you I<don't> set the C<force> "
27512 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
27513 "times on a single filesystem without booting into Windows between each "
27514 "resize."
27515 msgstr ""
27516
27517 #. type: =head2
27518 #: ../src/guestfs-actions.pod:5245
27519 msgid "guestfs_ntfsresize_opts_va"
27520 msgstr ""
27521
27522 #. type: verbatim
27523 #: ../src/guestfs-actions.pod:5247
27524 #, no-wrap
27525 msgid ""
27526 " int\n"
27527 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
27528 "                             const char *device,\n"
27529 "                             va_list args);\n"
27530 "\n"
27531 msgstr ""
27532
27533 #. type: textblock
27534 #: ../src/guestfs-actions.pod:5252
27535 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
27536 msgstr ""
27537
27538 #. type: =head2
27539 #: ../src/guestfs-actions.pod:5256
27540 msgid "guestfs_ntfsresize_opts_argv"
27541 msgstr ""
27542
27543 #. type: verbatim
27544 #: ../src/guestfs-actions.pod:5258
27545 #, no-wrap
27546 msgid ""
27547 " int\n"
27548 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
27549 "                               const char *device,\n"
27550 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
27551 "\n"
27552 msgstr ""
27553
27554 #. type: textblock
27555 #: ../src/guestfs-actions.pod:5263
27556 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
27557 msgstr ""
27558
27559 #. type: =head2
27560 #: ../src/guestfs-actions.pod:5267
27561 msgid "guestfs_ntfsresize_size"
27562 msgstr ""
27563
27564 #. type: verbatim
27565 #: ../src/guestfs-actions.pod:5269
27566 #, no-wrap
27567 msgid ""
27568 " int\n"
27569 " guestfs_ntfsresize_size (guestfs_h *g,\n"
27570 "                          const char *device,\n"
27571 "                          int64_t size);\n"
27572 "\n"
27573 msgstr ""
27574
27575 #. type: textblock
27576 #: ../src/guestfs-actions.pod:5274
27577 msgid ""
27578 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
27579 "to specify the new size (in bytes) explicitly."
27580 msgstr ""
27581
27582 #. type: textblock
27583 #: ../src/guestfs-actions.pod:5286 ../src/guestfs-actions.pod:5728
27584 #: ../src/guestfs-actions.pod:5801 ../src/guestfs-actions.pod:6069
27585 #: ../src/guestfs-actions.pod:7692
27586 msgid "(Added in 1.3.14)"
27587 msgstr ""
27588
27589 #. type: =head2
27590 #: ../src/guestfs-actions.pod:5288
27591 msgid "guestfs_part_add"
27592 msgstr ""
27593
27594 #. type: verbatim
27595 #: ../src/guestfs-actions.pod:5290
27596 #, no-wrap
27597 msgid ""
27598 " int\n"
27599 " guestfs_part_add (guestfs_h *g,\n"
27600 "                   const char *device,\n"
27601 "                   const char *prlogex,\n"
27602 "                   int64_t startsect,\n"
27603 "                   int64_t endsect);\n"
27604 "\n"
27605 msgstr ""
27606
27607 #. type: textblock
27608 #: ../src/guestfs-actions.pod:5297
27609 msgid ""
27610 "This command adds a partition to C<device>.  If there is no partition table "
27611 "on the device, call C<guestfs_part_init> first."
27612 msgstr ""
27613
27614 #. type: textblock
27615 #: ../src/guestfs-actions.pod:5309
27616 msgid ""
27617 "Creating a partition which covers the whole disk is not so easy.  Use "
27618 "C<guestfs_part_disk> to do that."
27619 msgstr ""
27620
27621 #. type: textblock
27622 #: ../src/guestfs-actions.pod:5314 ../src/guestfs-actions.pod:5352
27623 #: ../src/guestfs-actions.pod:5405 ../src/guestfs-actions.pod:5489
27624 #: ../src/guestfs-actions.pod:5527 ../src/guestfs-actions.pod:5546
27625 #: ../src/guestfs-actions.pod:5586
27626 msgid "(Added in 1.0.78)"
27627 msgstr ""
27628
27629 #. type: =head2
27630 #: ../src/guestfs-actions.pod:5316
27631 msgid "guestfs_part_del"
27632 msgstr ""
27633
27634 #. type: verbatim
27635 #: ../src/guestfs-actions.pod:5318
27636 #, no-wrap
27637 msgid ""
27638 " int\n"
27639 " guestfs_part_del (guestfs_h *g,\n"
27640 "                   const char *device,\n"
27641 "                   int partnum);\n"
27642 "\n"
27643 msgstr ""
27644
27645 #. type: =head2
27646 #: ../src/guestfs-actions.pod:5333
27647 msgid "guestfs_part_disk"
27648 msgstr ""
27649
27650 #. type: verbatim
27651 #: ../src/guestfs-actions.pod:5335
27652 #, no-wrap
27653 msgid ""
27654 " int\n"
27655 " guestfs_part_disk (guestfs_h *g,\n"
27656 "                    const char *device,\n"
27657 "                    const char *parttype);\n"
27658 "\n"
27659 msgstr ""
27660
27661 #. type: textblock
27662 #: ../src/guestfs-actions.pod:5340
27663 msgid ""
27664 "This command is simply a combination of C<guestfs_part_init> followed by "
27665 "C<guestfs_part_add> to create a single primary partition covering the whole "
27666 "disk."
27667 msgstr ""
27668
27669 #. type: textblock
27670 #: ../src/guestfs-actions.pod:5344
27671 msgid ""
27672 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
27673 "possible values are described in C<guestfs_part_init>."
27674 msgstr ""
27675
27676 #. type: =head2
27677 #: ../src/guestfs-actions.pod:5354
27678 msgid "guestfs_part_get_bootable"
27679 msgstr ""
27680
27681 #. type: verbatim
27682 #: ../src/guestfs-actions.pod:5356
27683 #, no-wrap
27684 msgid ""
27685 " int\n"
27686 " guestfs_part_get_bootable (guestfs_h *g,\n"
27687 "                            const char *device,\n"
27688 "                            int partnum);\n"
27689 "\n"
27690 msgstr ""
27691
27692 #. type: textblock
27693 #: ../src/guestfs-actions.pod:5364
27694 msgid "See also C<guestfs_part_set_bootable>."
27695 msgstr ""
27696
27697 #. type: =head2
27698 #: ../src/guestfs-actions.pod:5370
27699 msgid "guestfs_part_get_mbr_id"
27700 msgstr ""
27701
27702 #. type: verbatim
27703 #: ../src/guestfs-actions.pod:5372
27704 #, no-wrap
27705 msgid ""
27706 " int\n"
27707 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
27708 "                          const char *device,\n"
27709 "                          int partnum);\n"
27710 "\n"
27711 msgstr ""
27712
27713 #. type: textblock
27714 #: ../src/guestfs-actions.pod:5380 ../src/guestfs-actions.pod:5562
27715 msgid ""
27716 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
27717 "undefined results for other partition table types (see "
27718 "C<guestfs_part_get_parttype>)."
27719 msgstr ""
27720
27721 #. type: =head2
27722 #: ../src/guestfs-actions.pod:5388
27723 msgid "guestfs_part_get_parttype"
27724 msgstr ""
27725
27726 #. type: verbatim
27727 #: ../src/guestfs-actions.pod:5390
27728 #, no-wrap
27729 msgid ""
27730 " char *\n"
27731 " guestfs_part_get_parttype (guestfs_h *g,\n"
27732 "                            const char *device);\n"
27733 "\n"
27734 msgstr ""
27735
27736 #. type: textblock
27737 #: ../src/guestfs-actions.pod:5397
27738 msgid ""
27739 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
27740 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
27741 "possible, although unusual.  See C<guestfs_part_init> for a full list."
27742 msgstr ""
27743
27744 #. type: =head2
27745 #: ../src/guestfs-actions.pod:5407
27746 msgid "guestfs_part_init"
27747 msgstr ""
27748
27749 #. type: verbatim
27750 #: ../src/guestfs-actions.pod:5409
27751 #, no-wrap
27752 msgid ""
27753 " int\n"
27754 " guestfs_part_init (guestfs_h *g,\n"
27755 "                    const char *device,\n"
27756 "                    const char *parttype);\n"
27757 "\n"
27758 msgstr ""
27759
27760 #. type: textblock
27761 #: ../src/guestfs-actions.pod:5418
27762 msgid ""
27763 "Initially there are no partitions.  Following this, you should call "
27764 "C<guestfs_part_add> for each partition required."
27765 msgstr ""
27766
27767 #. type: =head2
27768 #: ../src/guestfs-actions.pod:5491
27769 msgid "guestfs_part_list"
27770 msgstr ""
27771
27772 #. type: verbatim
27773 #: ../src/guestfs-actions.pod:5493
27774 #, no-wrap
27775 msgid ""
27776 " struct guestfs_partition_list *\n"
27777 " guestfs_part_list (guestfs_h *g,\n"
27778 "                    const char *device);\n"
27779 "\n"
27780 msgstr ""
27781
27782 #. type: textblock
27783 #: ../src/guestfs-actions.pod:5510
27784 msgid ""
27785 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
27786 "the device's sector size, see C<guestfs_blockdev_getss>."
27787 msgstr ""
27788
27789 #. type: textblock
27790 #: ../src/guestfs-actions.pod:5523
27791 msgid ""
27792 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
27793 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
27794 "use>."
27795 msgstr ""
27796
27797 #. type: =head2
27798 #: ../src/guestfs-actions.pod:5529
27799 msgid "guestfs_part_set_bootable"
27800 msgstr ""
27801
27802 #. type: verbatim
27803 #: ../src/guestfs-actions.pod:5531
27804 #, no-wrap
27805 msgid ""
27806 " int\n"
27807 " guestfs_part_set_bootable (guestfs_h *g,\n"
27808 "                            const char *device,\n"
27809 "                            int partnum,\n"
27810 "                            int bootable);\n"
27811 "\n"
27812 msgstr ""
27813
27814 #. type: =head2
27815 #: ../src/guestfs-actions.pod:5548
27816 msgid "guestfs_part_set_mbr_id"
27817 msgstr ""
27818
27819 #. type: verbatim
27820 #: ../src/guestfs-actions.pod:5550
27821 #, no-wrap
27822 msgid ""
27823 " int\n"
27824 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
27825 "                          const char *device,\n"
27826 "                          int partnum,\n"
27827 "                          int idbyte);\n"
27828 "\n"
27829 msgstr ""
27830
27831 #. type: =head2
27832 #: ../src/guestfs-actions.pod:5570
27833 msgid "guestfs_part_set_name"
27834 msgstr ""
27835
27836 #. type: verbatim
27837 #: ../src/guestfs-actions.pod:5572
27838 #, no-wrap
27839 msgid ""
27840 " int\n"
27841 " guestfs_part_set_name (guestfs_h *g,\n"
27842 "                        const char *device,\n"
27843 "                        int partnum,\n"
27844 "                        const char *name);\n"
27845 "\n"
27846 msgstr ""
27847
27848 #. type: =head2
27849 #: ../src/guestfs-actions.pod:5588
27850 msgid "guestfs_part_to_dev"
27851 msgstr ""
27852
27853 #. type: verbatim
27854 #: ../src/guestfs-actions.pod:5590
27855 #, no-wrap
27856 msgid ""
27857 " char *\n"
27858 " guestfs_part_to_dev (guestfs_h *g,\n"
27859 "                      const char *partition);\n"
27860 "\n"
27861 msgstr ""
27862
27863 #. type: textblock
27864 #: ../src/guestfs-actions.pod:5598
27865 msgid ""
27866 "The named partition must exist, for example as a string returned from "
27867 "C<guestfs_list_partitions>."
27868 msgstr ""
27869
27870 #. type: =head2
27871 #: ../src/guestfs-actions.pod:5606
27872 msgid "guestfs_ping_daemon"
27873 msgstr ""
27874
27875 #. type: verbatim
27876 #: ../src/guestfs-actions.pod:5608
27877 #, no-wrap
27878 msgid ""
27879 " int\n"
27880 " guestfs_ping_daemon (guestfs_h *g);\n"
27881 "\n"
27882 msgstr ""
27883
27884 #. type: =head2
27885 #: ../src/guestfs-actions.pod:5620
27886 msgid "guestfs_pread"
27887 msgstr ""
27888
27889 #. type: verbatim
27890 #: ../src/guestfs-actions.pod:5622
27891 #, no-wrap
27892 msgid ""
27893 " char *\n"
27894 " guestfs_pread (guestfs_h *g,\n"
27895 "                const char *path,\n"
27896 "                int count,\n"
27897 "                int64_t offset,\n"
27898 "                size_t *size_r);\n"
27899 "\n"
27900 msgstr ""
27901
27902 #. type: textblock
27903 #: ../src/guestfs-actions.pod:5635
27904 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
27905 msgstr ""
27906
27907 #. type: =head2
27908 #: ../src/guestfs-actions.pod:5646
27909 msgid "guestfs_pread_device"
27910 msgstr ""
27911
27912 #. type: verbatim
27913 #: ../src/guestfs-actions.pod:5648
27914 #, no-wrap
27915 msgid ""
27916 " char *\n"
27917 " guestfs_pread_device (guestfs_h *g,\n"
27918 "                       const char *device,\n"
27919 "                       int count,\n"
27920 "                       int64_t offset,\n"
27921 "                       size_t *size_r);\n"
27922 "\n"
27923 msgstr ""
27924
27925 #. type: textblock
27926 #: ../src/guestfs-actions.pod:5661
27927 msgid "See also C<guestfs_pread>."
27928 msgstr ""
27929
27930 #. type: textblock
27931 #: ../src/guestfs-actions.pod:5670
27932 msgid "(Added in 1.5.21)"
27933 msgstr ""
27934
27935 #. type: =head2
27936 #: ../src/guestfs-actions.pod:5672
27937 msgid "guestfs_pvcreate"
27938 msgstr ""
27939
27940 #. type: verbatim
27941 #: ../src/guestfs-actions.pod:5674
27942 #, no-wrap
27943 msgid ""
27944 " int\n"
27945 " guestfs_pvcreate (guestfs_h *g,\n"
27946 "                   const char *device);\n"
27947 "\n"
27948 msgstr ""
27949
27950 #. type: =head2
27951 #: ../src/guestfs-actions.pod:5686
27952 msgid "guestfs_pvremove"
27953 msgstr ""
27954
27955 #. type: verbatim
27956 #: ../src/guestfs-actions.pod:5688
27957 #, no-wrap
27958 msgid ""
27959 " int\n"
27960 " guestfs_pvremove (guestfs_h *g,\n"
27961 "                   const char *device);\n"
27962 "\n"
27963 msgstr ""
27964
27965 #. type: =head2
27966 #: ../src/guestfs-actions.pod:5703
27967 msgid "guestfs_pvresize"
27968 msgstr ""
27969
27970 #. type: verbatim
27971 #: ../src/guestfs-actions.pod:5705
27972 #, no-wrap
27973 msgid ""
27974 " int\n"
27975 " guestfs_pvresize (guestfs_h *g,\n"
27976 "                   const char *device);\n"
27977 "\n"
27978 msgstr ""
27979
27980 #. type: =head2
27981 #: ../src/guestfs-actions.pod:5716
27982 msgid "guestfs_pvresize_size"
27983 msgstr ""
27984
27985 #. type: verbatim
27986 #: ../src/guestfs-actions.pod:5718
27987 #, no-wrap
27988 msgid ""
27989 " int\n"
27990 " guestfs_pvresize_size (guestfs_h *g,\n"
27991 "                        const char *device,\n"
27992 "                        int64_t size);\n"
27993 "\n"
27994 msgstr ""
27995
27996 #. type: textblock
27997 #: ../src/guestfs-actions.pod:5723
27998 msgid ""
27999 "This command is the same as C<guestfs_pvresize> except that it allows you to "
28000 "specify the new size (in bytes) explicitly."
28001 msgstr ""
28002
28003 #. type: =head2
28004 #: ../src/guestfs-actions.pod:5730
28005 msgid "guestfs_pvs"
28006 msgstr ""
28007
28008 #. type: verbatim
28009 #: ../src/guestfs-actions.pod:5732
28010 #, no-wrap
28011 msgid ""
28012 " char **\n"
28013 " guestfs_pvs (guestfs_h *g);\n"
28014 "\n"
28015 msgstr ""
28016
28017 #. type: textblock
28018 #: ../src/guestfs-actions.pod:5741
28019 msgid "See also C<guestfs_pvs_full>."
28020 msgstr ""
28021
28022 #. type: =head2
28023 #: ../src/guestfs-actions.pod:5749
28024 msgid "guestfs_pvs_full"
28025 msgstr ""
28026
28027 #. type: verbatim
28028 #: ../src/guestfs-actions.pod:5751
28029 #, no-wrap
28030 msgid ""
28031 " struct guestfs_lvm_pv_list *\n"
28032 " guestfs_pvs_full (guestfs_h *g);\n"
28033 "\n"
28034 msgstr ""
28035
28036 #. type: textblock
28037 #: ../src/guestfs-actions.pod:5757
28038 msgid ""
28039 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
28040 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
28041 msgstr ""
28042
28043 #. type: =head2
28044 #: ../src/guestfs-actions.pod:5763
28045 msgid "guestfs_pvuuid"
28046 msgstr ""
28047
28048 #. type: verbatim
28049 #: ../src/guestfs-actions.pod:5765
28050 #, no-wrap
28051 msgid ""
28052 " char *\n"
28053 " guestfs_pvuuid (guestfs_h *g,\n"
28054 "                 const char *device);\n"
28055 "\n"
28056 msgstr ""
28057
28058 #. type: =head2
28059 #: ../src/guestfs-actions.pod:5776
28060 msgid "guestfs_pwrite"
28061 msgstr ""
28062
28063 #. type: verbatim
28064 #: ../src/guestfs-actions.pod:5778
28065 #, no-wrap
28066 msgid ""
28067 " int\n"
28068 " guestfs_pwrite (guestfs_h *g,\n"
28069 "                 const char *path,\n"
28070 "                 const char *content,\n"
28071 "                 size_t content_size,\n"
28072 "                 int64_t offset);\n"
28073 "\n"
28074 msgstr ""
28075
28076 #. type: textblock
28077 #: ../src/guestfs-actions.pod:5794
28078 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
28079 msgstr ""
28080
28081 #. type: =head2
28082 #: ../src/guestfs-actions.pod:5803
28083 msgid "guestfs_pwrite_device"
28084 msgstr ""
28085
28086 #. type: verbatim
28087 #: ../src/guestfs-actions.pod:5805
28088 #, no-wrap
28089 msgid ""
28090 " int\n"
28091 " guestfs_pwrite_device (guestfs_h *g,\n"
28092 "                        const char *device,\n"
28093 "                        const char *content,\n"
28094 "                        size_t content_size,\n"
28095 "                        int64_t offset);\n"
28096 "\n"
28097 msgstr ""
28098
28099 #. type: textblock
28100 #: ../src/guestfs-actions.pod:5820
28101 msgid "See also C<guestfs_pwrite>."
28102 msgstr ""
28103
28104 #. type: textblock
28105 #: ../src/guestfs-actions.pod:5827
28106 msgid "(Added in 1.5.20)"
28107 msgstr ""
28108
28109 #. type: =head2
28110 #: ../src/guestfs-actions.pod:5829
28111 msgid "guestfs_read_file"
28112 msgstr ""
28113
28114 #. type: verbatim
28115 #: ../src/guestfs-actions.pod:5831
28116 #, no-wrap
28117 msgid ""
28118 " char *\n"
28119 " guestfs_read_file (guestfs_h *g,\n"
28120 "                    const char *path,\n"
28121 "                    size_t *size_r);\n"
28122 "\n"
28123 msgstr ""
28124
28125 #. type: textblock
28126 #: ../src/guestfs-actions.pod:5839
28127 msgid ""
28128 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
28129 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
28130 "function is limited in the total size of file that can be handled."
28131 msgstr ""
28132
28133 #. type: textblock
28134 #: ../src/guestfs-actions.pod:5851
28135 msgid "(Added in 1.0.63)"
28136 msgstr ""
28137
28138 #. type: =head2
28139 #: ../src/guestfs-actions.pod:5853
28140 msgid "guestfs_read_lines"
28141 msgstr ""
28142
28143 #. type: verbatim
28144 #: ../src/guestfs-actions.pod:5855
28145 #, no-wrap
28146 msgid ""
28147 " char **\n"
28148 " guestfs_read_lines (guestfs_h *g,\n"
28149 "                     const char *path);\n"
28150 "\n"
28151 msgstr ""
28152
28153 #. type: textblock
28154 #: ../src/guestfs-actions.pod:5864
28155 msgid ""
28156 "Note that this function cannot correctly handle binary files (specifically, "
28157 "files containing C<\\0> character which is treated as end of line).  For "
28158 "those you need to use the C<guestfs_read_file> function which has a more "
28159 "complex interface."
28160 msgstr ""
28161
28162 #. type: =head2
28163 #: ../src/guestfs-actions.pod:5875
28164 msgid "guestfs_readdir"
28165 msgstr ""
28166
28167 #. type: verbatim
28168 #: ../src/guestfs-actions.pod:5877
28169 #, no-wrap
28170 msgid ""
28171 " struct guestfs_dirent_list *\n"
28172 " guestfs_readdir (guestfs_h *g,\n"
28173 "                  const char *dir);\n"
28174 "\n"
28175 msgstr ""
28176
28177 #. type: textblock
28178 #: ../src/guestfs-actions.pod:5931
28179 msgid ""
28180 "This function is primarily intended for use by programs.  To get a simple "
28181 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
28182 "consumption, use C<guestfs_ll>."
28183 msgstr ""
28184
28185 #. type: textblock
28186 #: ../src/guestfs-actions.pod:5935
28187 msgid ""
28188 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
28189 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
28190 msgstr ""
28191
28192 #. type: =head2
28193 #: ../src/guestfs-actions.pod:5941
28194 msgid "guestfs_readlink"
28195 msgstr ""
28196
28197 #. type: verbatim
28198 #: ../src/guestfs-actions.pod:5943
28199 #, no-wrap
28200 msgid ""
28201 " char *\n"
28202 " guestfs_readlink (guestfs_h *g,\n"
28203 "                   const char *path);\n"
28204 "\n"
28205 msgstr ""
28206
28207 #. type: =head2
28208 #: ../src/guestfs-actions.pod:5954
28209 msgid "guestfs_readlinklist"
28210 msgstr ""
28211
28212 #. type: verbatim
28213 #: ../src/guestfs-actions.pod:5956
28214 #, no-wrap
28215 msgid ""
28216 " char **\n"
28217 " guestfs_readlinklist (guestfs_h *g,\n"
28218 "                       const char *path,\n"
28219 "                       char *const *names);\n"
28220 "\n"
28221 msgstr ""
28222
28223 #. type: =head2
28224 #: ../src/guestfs-actions.pod:5989
28225 msgid "guestfs_realpath"
28226 msgstr ""
28227
28228 #. type: verbatim
28229 #: ../src/guestfs-actions.pod:5991
28230 #, no-wrap
28231 msgid ""
28232 " char *\n"
28233 " guestfs_realpath (guestfs_h *g,\n"
28234 "                   const char *path);\n"
28235 "\n"
28236 msgstr ""
28237
28238 #. type: =head2
28239 #: ../src/guestfs-actions.pod:6003
28240 msgid "guestfs_removexattr"
28241 msgstr ""
28242
28243 #. type: verbatim
28244 #: ../src/guestfs-actions.pod:6005
28245 #, no-wrap
28246 msgid ""
28247 " int\n"
28248 " guestfs_removexattr (guestfs_h *g,\n"
28249 "                      const char *xattr,\n"
28250 "                      const char *path);\n"
28251 "\n"
28252 msgstr ""
28253
28254 #. type: textblock
28255 #: ../src/guestfs-actions.pod:6013
28256 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
28257 msgstr ""
28258
28259 #. type: =head2
28260 #: ../src/guestfs-actions.pod:6019
28261 msgid "guestfs_resize2fs"
28262 msgstr ""
28263
28264 #. type: verbatim
28265 #: ../src/guestfs-actions.pod:6021
28266 #, no-wrap
28267 msgid ""
28268 " int\n"
28269 " guestfs_resize2fs (guestfs_h *g,\n"
28270 "                    const char *device);\n"
28271 "\n"
28272 msgstr ""
28273
28274 #. type: textblock
28275 #: ../src/guestfs-actions.pod:6028
28276 msgid ""
28277 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
28278 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
28279 "sometimes gives an error about this and sometimes not.  In any case, it is "
28280 "always safe to call C<guestfs_e2fsck_f> before calling this function."
28281 msgstr ""
28282
28283 #. type: =head2
28284 #: ../src/guestfs-actions.pod:6038
28285 msgid "guestfs_resize2fs_M"
28286 msgstr ""
28287
28288 #. type: verbatim
28289 #: ../src/guestfs-actions.pod:6040
28290 #, no-wrap
28291 msgid ""
28292 " int\n"
28293 " guestfs_resize2fs_M (guestfs_h *g,\n"
28294 "                      const char *device);\n"
28295 "\n"
28296 msgstr ""
28297
28298 #. type: textblock
28299 #: ../src/guestfs-actions.pod:6044
28300 msgid ""
28301 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
28302 "resized to its minimum size.  This works like the I<-M> option to the "
28303 "C<resize2fs> command."
28304 msgstr ""
28305
28306 #. type: textblock
28307 #: ../src/guestfs-actions.pod:6048
28308 msgid ""
28309 "To get the resulting size of the filesystem you should call "
28310 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
28311 "These two numbers, multiplied together, give the resulting size of the "
28312 "minimal filesystem in bytes."
28313 msgstr ""
28314
28315 #. type: =head2
28316 #: ../src/guestfs-actions.pod:6057
28317 msgid "guestfs_resize2fs_size"
28318 msgstr ""
28319
28320 #. type: verbatim
28321 #: ../src/guestfs-actions.pod:6059
28322 #, no-wrap
28323 msgid ""
28324 " int\n"
28325 " guestfs_resize2fs_size (guestfs_h *g,\n"
28326 "                         const char *device,\n"
28327 "                         int64_t size);\n"
28328 "\n"
28329 msgstr ""
28330
28331 #. type: textblock
28332 #: ../src/guestfs-actions.pod:6064
28333 msgid ""
28334 "This command is the same as C<guestfs_resize2fs> except that it allows you "
28335 "to specify the new size (in bytes) explicitly."
28336 msgstr ""
28337
28338 #. type: =head2
28339 #: ../src/guestfs-actions.pod:6071
28340 msgid "guestfs_rm"
28341 msgstr ""
28342
28343 #. type: verbatim
28344 #: ../src/guestfs-actions.pod:6073
28345 #, no-wrap
28346 msgid ""
28347 " int\n"
28348 " guestfs_rm (guestfs_h *g,\n"
28349 "             const char *path);\n"
28350 "\n"
28351 msgstr ""
28352
28353 #. type: =head2
28354 #: ../src/guestfs-actions.pod:6083
28355 msgid "guestfs_rm_rf"
28356 msgstr ""
28357
28358 #. type: verbatim
28359 #: ../src/guestfs-actions.pod:6085
28360 #, no-wrap
28361 msgid ""
28362 " int\n"
28363 " guestfs_rm_rf (guestfs_h *g,\n"
28364 "                const char *path);\n"
28365 "\n"
28366 msgstr ""
28367
28368 #. type: =head2
28369 #: ../src/guestfs-actions.pod:6097
28370 msgid "guestfs_rmdir"
28371 msgstr ""
28372
28373 #. type: verbatim
28374 #: ../src/guestfs-actions.pod:6099
28375 #, no-wrap
28376 msgid ""
28377 " int\n"
28378 " guestfs_rmdir (guestfs_h *g,\n"
28379 "                const char *path);\n"
28380 "\n"
28381 msgstr ""
28382
28383 #. type: =head2
28384 #: ../src/guestfs-actions.pod:6109
28385 msgid "guestfs_rmmountpoint"
28386 msgstr ""
28387
28388 #. type: verbatim
28389 #: ../src/guestfs-actions.pod:6111
28390 #, no-wrap
28391 msgid ""
28392 " int\n"
28393 " guestfs_rmmountpoint (guestfs_h *g,\n"
28394 "                       const char *exemptpath);\n"
28395 "\n"
28396 msgstr ""
28397
28398 #. type: textblock
28399 #: ../src/guestfs-actions.pod:6115
28400 msgid ""
28401 "This calls removes a mountpoint that was previously created with "
28402 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
28403 msgstr ""
28404
28405 #. type: =head2
28406 #: ../src/guestfs-actions.pod:6123
28407 msgid "guestfs_scrub_device"
28408 msgstr ""
28409
28410 #. type: verbatim
28411 #: ../src/guestfs-actions.pod:6125
28412 #, no-wrap
28413 msgid ""
28414 " int\n"
28415 " guestfs_scrub_device (guestfs_h *g,\n"
28416 "                       const char *device);\n"
28417 "\n"
28418 msgstr ""
28419
28420 #. type: textblock
28421 #: ../src/guestfs-actions.pod:6140 ../src/guestfs-actions.pod:6158
28422 #: ../src/guestfs-actions.pod:6177
28423 msgid "(Added in 1.0.52)"
28424 msgstr ""
28425
28426 #. type: =head2
28427 #: ../src/guestfs-actions.pod:6142
28428 msgid "guestfs_scrub_file"
28429 msgstr ""
28430
28431 #. type: verbatim
28432 #: ../src/guestfs-actions.pod:6144
28433 #, no-wrap
28434 msgid ""
28435 " int\n"
28436 " guestfs_scrub_file (guestfs_h *g,\n"
28437 "                     const char *file);\n"
28438 "\n"
28439 msgstr ""
28440
28441 #. type: =head2
28442 #: ../src/guestfs-actions.pod:6160
28443 msgid "guestfs_scrub_freespace"
28444 msgstr ""
28445
28446 #. type: verbatim
28447 #: ../src/guestfs-actions.pod:6162
28448 #, no-wrap
28449 msgid ""
28450 " int\n"
28451 " guestfs_scrub_freespace (guestfs_h *g,\n"
28452 "                          const char *dir);\n"
28453 "\n"
28454 msgstr ""
28455
28456 #. type: textblock
28457 #: ../src/guestfs-actions.pod:6166
28458 msgid ""
28459 "This command creates the directory C<dir> and then fills it with files until "
28460 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
28461 "and deletes them.  The intention is to scrub any free space on the partition "
28462 "containing C<dir>."
28463 msgstr ""
28464
28465 #. type: =head2
28466 #: ../src/guestfs-actions.pod:6179
28467 msgid "guestfs_set_append"
28468 msgstr ""
28469
28470 #. type: verbatim
28471 #: ../src/guestfs-actions.pod:6181
28472 #, no-wrap
28473 msgid ""
28474 " int\n"
28475 " guestfs_set_append (guestfs_h *g,\n"
28476 "                     const char *append);\n"
28477 "\n"
28478 msgstr ""
28479
28480 #. type: =head2
28481 #: ../src/guestfs-actions.pod:6198
28482 msgid "guestfs_set_attach_method"
28483 msgstr ""
28484
28485 #. type: verbatim
28486 #: ../src/guestfs-actions.pod:6200
28487 #, no-wrap
28488 msgid ""
28489 " int\n"
28490 " guestfs_set_attach_method (guestfs_h *g,\n"
28491 "                            const char *attachmethod);\n"
28492 "\n"
28493 msgstr ""
28494
28495 #. type: =head2
28496 #: ../src/guestfs-actions.pod:6228
28497 msgid "guestfs_set_autosync"
28498 msgstr ""
28499
28500 #. type: verbatim
28501 #: ../src/guestfs-actions.pod:6230
28502 #, no-wrap
28503 msgid ""
28504 " int\n"
28505 " guestfs_set_autosync (guestfs_h *g,\n"
28506 "                       int autosync);\n"
28507 "\n"
28508 msgstr ""
28509
28510 #. type: =head2
28511 #: ../src/guestfs-actions.pod:6246
28512 msgid "guestfs_set_direct"
28513 msgstr ""
28514
28515 #. type: verbatim
28516 #: ../src/guestfs-actions.pod:6248
28517 #, no-wrap
28518 msgid ""
28519 " int\n"
28520 " guestfs_set_direct (guestfs_h *g,\n"
28521 "                     int direct);\n"
28522 "\n"
28523 msgstr ""
28524
28525 #. type: textblock
28526 #: ../src/guestfs-actions.pod:6256
28527 msgid ""
28528 "One consequence of this is that log messages aren't caught by the library "
28529 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
28530 "stdout."
28531 msgstr ""
28532
28533 #. type: =head2
28534 #: ../src/guestfs-actions.pod:6269
28535 msgid "guestfs_set_e2label"
28536 msgstr ""
28537
28538 #. type: verbatim
28539 #: ../src/guestfs-actions.pod:6271
28540 #, no-wrap
28541 msgid ""
28542 " int\n"
28543 " guestfs_set_e2label (guestfs_h *g,\n"
28544 "                      const char *device,\n"
28545 "                      const char *label);\n"
28546 "\n"
28547 msgstr ""
28548
28549 #. type: textblock
28550 #: ../src/guestfs-actions.pod:6280
28551 msgid ""
28552 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
28553 "the existing label on a filesystem."
28554 msgstr ""
28555
28556 #. type: =head2
28557 #: ../src/guestfs-actions.pod:6287
28558 msgid "guestfs_set_e2uuid"
28559 msgstr ""
28560
28561 #. type: verbatim
28562 #: ../src/guestfs-actions.pod:6289
28563 #, no-wrap
28564 msgid ""
28565 " int\n"
28566 " guestfs_set_e2uuid (guestfs_h *g,\n"
28567 "                     const char *device,\n"
28568 "                     const char *uuid);\n"
28569 "\n"
28570 msgstr ""
28571
28572 #. type: textblock
28573 #: ../src/guestfs-actions.pod:6299
28574 msgid ""
28575 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
28576 "the existing UUID of a filesystem."
28577 msgstr ""
28578
28579 #. type: =head2
28580 #: ../src/guestfs-actions.pod:6306
28581 msgid "guestfs_set_memsize"
28582 msgstr ""
28583
28584 #. type: verbatim
28585 #: ../src/guestfs-actions.pod:6308
28586 #, no-wrap
28587 msgid ""
28588 " int\n"
28589 " guestfs_set_memsize (guestfs_h *g,\n"
28590 "                      int memsize);\n"
28591 "\n"
28592 msgstr ""
28593
28594 #. type: textblock
28595 #: ../src/guestfs-actions.pod:6312
28596 msgid ""
28597 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
28598 "This only has any effect if called before C<guestfs_launch>."
28599 msgstr ""
28600
28601 #. type: =head2
28602 #: ../src/guestfs-actions.pod:6327
28603 msgid "guestfs_set_network"
28604 msgstr ""
28605
28606 #. type: verbatim
28607 #: ../src/guestfs-actions.pod:6329
28608 #, no-wrap
28609 msgid ""
28610 " int\n"
28611 " guestfs_set_network (guestfs_h *g,\n"
28612 "                      int network);\n"
28613 "\n"
28614 msgstr ""
28615
28616 #. type: textblock
28617 #: ../src/guestfs-actions.pod:6339
28618 msgid ""
28619 "You must call this before calling C<guestfs_launch>, otherwise it has no "
28620 "effect."
28621 msgstr ""
28622
28623 #. type: =head2
28624 #: ../src/guestfs-actions.pod:6346
28625 msgid "guestfs_set_path"
28626 msgstr ""
28627
28628 #. type: verbatim
28629 #: ../src/guestfs-actions.pod:6348
28630 #, no-wrap
28631 msgid ""
28632 " int\n"
28633 " guestfs_set_path (guestfs_h *g,\n"
28634 "                   const char *searchpath);\n"
28635 "\n"
28636 msgstr ""
28637
28638 #. type: =head2
28639 #: ../src/guestfs-actions.pod:6363
28640 msgid "guestfs_set_pgroup"
28641 msgstr ""
28642
28643 #. type: verbatim
28644 #: ../src/guestfs-actions.pod:6365
28645 #, no-wrap
28646 msgid ""
28647 " int\n"
28648 " guestfs_set_pgroup (guestfs_h *g,\n"
28649 "                     int pgroup);\n"
28650 "\n"
28651 msgstr ""
28652
28653 #. type: =head2
28654 #: ../src/guestfs-actions.pod:6382
28655 msgid "guestfs_set_qemu"
28656 msgstr ""
28657
28658 #. type: verbatim
28659 #: ../src/guestfs-actions.pod:6384
28660 #, no-wrap
28661 msgid ""
28662 " int\n"
28663 " guestfs_set_qemu (guestfs_h *g,\n"
28664 "                   const char *qemu);\n"
28665 "\n"
28666 msgstr ""
28667
28668 #. type: =head2
28669 #: ../src/guestfs-actions.pod:6410
28670 msgid "guestfs_set_recovery_proc"
28671 msgstr ""
28672
28673 #. type: verbatim
28674 #: ../src/guestfs-actions.pod:6412
28675 #, no-wrap
28676 msgid ""
28677 " int\n"
28678 " guestfs_set_recovery_proc (guestfs_h *g,\n"
28679 "                            int recoveryproc);\n"
28680 "\n"
28681 msgstr ""
28682
28683 #. type: textblock
28684 #: ../src/guestfs-actions.pod:6416
28685 msgid ""
28686 "If this is called with the parameter C<false> then C<guestfs_launch> does "
28687 "not create a recovery process.  The purpose of the recovery process is to "
28688 "stop runaway qemu processes in the case where the main program aborts "
28689 "abruptly."
28690 msgstr ""
28691
28692 #. type: textblock
28693 #: ../src/guestfs-actions.pod:6421
28694 msgid ""
28695 "This only has any effect if called before C<guestfs_launch>, and the default "
28696 "is true."
28697 msgstr ""
28698
28699 #. type: =head2
28700 #: ../src/guestfs-actions.pod:6434
28701 msgid "guestfs_set_selinux"
28702 msgstr ""
28703
28704 #. type: verbatim
28705 #: ../src/guestfs-actions.pod:6436
28706 #, no-wrap
28707 msgid ""
28708 " int\n"
28709 " guestfs_set_selinux (guestfs_h *g,\n"
28710 "                      int selinux);\n"
28711 "\n"
28712 msgstr ""
28713
28714 #. type: =head2
28715 #: ../src/guestfs-actions.pod:6453
28716 msgid "guestfs_set_trace"
28717 msgstr ""
28718
28719 #. type: verbatim
28720 #: ../src/guestfs-actions.pod:6455
28721 #, no-wrap
28722 msgid ""
28723 " int\n"
28724 " guestfs_set_trace (guestfs_h *g,\n"
28725 "                    int trace);\n"
28726 "\n"
28727 msgstr ""
28728
28729 #. type: textblock
28730 #: ../src/guestfs-actions.pod:6469
28731 msgid ""
28732 "Trace messages are normally sent to C<stderr>, unless you register a "
28733 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
28734 msgstr ""
28735
28736 #. type: =head2
28737 #: ../src/guestfs-actions.pod:6477
28738 msgid "guestfs_set_verbose"
28739 msgstr ""
28740
28741 #. type: verbatim
28742 #: ../src/guestfs-actions.pod:6479
28743 #, no-wrap
28744 msgid ""
28745 " int\n"
28746 " guestfs_set_verbose (guestfs_h *g,\n"
28747 "                      int verbose);\n"
28748 "\n"
28749 msgstr ""
28750
28751 #. type: textblock
28752 #: ../src/guestfs-actions.pod:6488
28753 msgid ""
28754 "Verbose messages are normally sent to C<stderr>, unless you register a "
28755 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
28756 msgstr ""
28757
28758 #. type: =head2
28759 #: ../src/guestfs-actions.pod:6496
28760 msgid "guestfs_setcon"
28761 msgstr ""
28762
28763 #. type: verbatim
28764 #: ../src/guestfs-actions.pod:6498
28765 #, no-wrap
28766 msgid ""
28767 " int\n"
28768 " guestfs_setcon (guestfs_h *g,\n"
28769 "                 const char *context);\n"
28770 "\n"
28771 msgstr ""
28772
28773 #. type: =head2
28774 #: ../src/guestfs-actions.pod:6511
28775 msgid "guestfs_setxattr"
28776 msgstr ""
28777
28778 #. type: verbatim
28779 #: ../src/guestfs-actions.pod:6513
28780 #, no-wrap
28781 msgid ""
28782 " int\n"
28783 " guestfs_setxattr (guestfs_h *g,\n"
28784 "                   const char *xattr,\n"
28785 "                   const char *val,\n"
28786 "                   int vallen,\n"
28787 "                   const char *path);\n"
28788 "\n"
28789 msgstr ""
28790
28791 #. type: textblock
28792 #: ../src/guestfs-actions.pod:6524
28793 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
28794 msgstr ""
28795
28796 #. type: =head2
28797 #: ../src/guestfs-actions.pod:6530
28798 msgid "guestfs_sfdisk"
28799 msgstr ""
28800
28801 #. type: verbatim
28802 #: ../src/guestfs-actions.pod:6532
28803 #, no-wrap
28804 msgid ""
28805 " int\n"
28806 " guestfs_sfdisk (guestfs_h *g,\n"
28807 "                 const char *device,\n"
28808 "                 int cyls,\n"
28809 "                 int heads,\n"
28810 "                 int sectors,\n"
28811 "                 char *const *lines);\n"
28812 "\n"
28813 msgstr ""
28814
28815 #. type: textblock
28816 #: ../src/guestfs-actions.pod:6560
28817 msgid ""
28818 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
28819 msgstr ""
28820
28821 #. type: textblock
28822 #: ../src/guestfs-actions.pod:6568 ../src/guestfs-actions.pod:6598
28823 #: ../src/guestfs-actions.pod:6631
28824 msgid ""
28825 "This function is deprecated.  In new code, use the L</guestfs_part_add> call "
28826 "instead."
28827 msgstr ""
28828
28829 #. type: =head2
28830 #: ../src/guestfs-actions.pod:6577
28831 msgid "guestfs_sfdiskM"
28832 msgstr ""
28833
28834 #. type: verbatim
28835 #: ../src/guestfs-actions.pod:6579
28836 #, no-wrap
28837 msgid ""
28838 " int\n"
28839 " guestfs_sfdiskM (guestfs_h *g,\n"
28840 "                  const char *device,\n"
28841 "                  char *const *lines);\n"
28842 "\n"
28843 msgstr ""
28844
28845 #. type: textblock
28846 #: ../src/guestfs-actions.pod:6584
28847 msgid ""
28848 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
28849 "partition sizes are specified in megabytes only (rounded to the nearest "
28850 "cylinder) and you don't need to specify the cyls, heads and sectors "
28851 "parameters which were rarely if ever used anyway."
28852 msgstr ""
28853
28854 #. type: textblock
28855 #: ../src/guestfs-actions.pod:6590
28856 msgid ""
28857 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
28858 "C<guestfs_part_disk>"
28859 msgstr ""
28860
28861 #. type: =head2
28862 #: ../src/guestfs-actions.pod:6607
28863 msgid "guestfs_sfdisk_N"
28864 msgstr ""
28865
28866 #. type: verbatim
28867 #: ../src/guestfs-actions.pod:6609
28868 #, no-wrap
28869 msgid ""
28870 " int\n"
28871 " guestfs_sfdisk_N (guestfs_h *g,\n"
28872 "                   const char *device,\n"
28873 "                   int partnum,\n"
28874 "                   int cyls,\n"
28875 "                   int heads,\n"
28876 "                   int sectors,\n"
28877 "                   const char *line);\n"
28878 "\n"
28879 msgstr ""
28880
28881 #. type: textblock
28882 #: ../src/guestfs-actions.pod:6621
28883 msgid ""
28884 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
28885 "for the cyls/heads/sectors parameters."
28886 msgstr ""
28887
28888 #. type: textblock
28889 #: ../src/guestfs-actions.pod:6624
28890 msgid "See also: C<guestfs_part_add>"
28891 msgstr ""
28892
28893 #. type: =head2
28894 #: ../src/guestfs-actions.pod:6640
28895 msgid "guestfs_sfdisk_disk_geometry"
28896 msgstr ""
28897
28898 #. type: verbatim
28899 #: ../src/guestfs-actions.pod:6642
28900 #, no-wrap
28901 msgid ""
28902 " char *\n"
28903 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
28904 "                               const char *device);\n"
28905 "\n"
28906 msgstr ""
28907
28908 #. type: textblock
28909 #: ../src/guestfs-actions.pod:6646
28910 msgid ""
28911 "This displays the disk geometry of C<device> read from the partition table.  "
28912 "Especially in the case where the underlying block device has been resized, "
28913 "this can be different from the kernel's idea of the geometry (see "
28914 "C<guestfs_sfdisk_kernel_geometry>)."
28915 msgstr ""
28916
28917 #. type: =head2
28918 #: ../src/guestfs-actions.pod:6659
28919 msgid "guestfs_sfdisk_kernel_geometry"
28920 msgstr ""
28921
28922 #. type: verbatim
28923 #: ../src/guestfs-actions.pod:6661
28924 #, no-wrap
28925 msgid ""
28926 " char *\n"
28927 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
28928 "                                 const char *device);\n"
28929 "\n"
28930 msgstr ""
28931
28932 #. type: =head2
28933 #: ../src/guestfs-actions.pod:6675
28934 msgid "guestfs_sfdisk_l"
28935 msgstr ""
28936
28937 #. type: verbatim
28938 #: ../src/guestfs-actions.pod:6677
28939 #, no-wrap
28940 msgid ""
28941 " char *\n"
28942 " guestfs_sfdisk_l (guestfs_h *g,\n"
28943 "                   const char *device);\n"
28944 "\n"
28945 msgstr ""
28946
28947 #. type: textblock
28948 #: ../src/guestfs-actions.pod:6685
28949 msgid "See also: C<guestfs_part_list>"
28950 msgstr ""
28951
28952 #. type: textblock
28953 #: ../src/guestfs-actions.pod:6690
28954 msgid ""
28955 "This function is deprecated.  In new code, use the L</guestfs_part_list> "
28956 "call instead."
28957 msgstr ""
28958
28959 #. type: =head2
28960 #: ../src/guestfs-actions.pod:6699
28961 msgid "guestfs_sh"
28962 msgstr ""
28963
28964 #. type: verbatim
28965 #: ../src/guestfs-actions.pod:6701
28966 #, no-wrap
28967 msgid ""
28968 " char *\n"
28969 " guestfs_sh (guestfs_h *g,\n"
28970 "             const char *command);\n"
28971 "\n"
28972 msgstr ""
28973
28974 #. type: textblock
28975 #: ../src/guestfs-actions.pod:6708
28976 msgid "This is like C<guestfs_command>, but passes the command to:"
28977 msgstr ""
28978
28979 #. type: textblock
28980 #: ../src/guestfs-actions.pod:6716
28981 msgid "All the provisos about C<guestfs_command> apply to this call."
28982 msgstr ""
28983
28984 #. type: =head2
28985 #: ../src/guestfs-actions.pod:6723
28986 msgid "guestfs_sh_lines"
28987 msgstr ""
28988
28989 #. type: verbatim
28990 #: ../src/guestfs-actions.pod:6725
28991 #, no-wrap
28992 msgid ""
28993 " char **\n"
28994 " guestfs_sh_lines (guestfs_h *g,\n"
28995 "                   const char *command);\n"
28996 "\n"
28997 msgstr ""
28998
28999 #. type: textblock
29000 #: ../src/guestfs-actions.pod:6729
29001 msgid ""
29002 "This is the same as C<guestfs_sh>, but splits the result into a list of "
29003 "lines."
29004 msgstr ""
29005
29006 #. type: textblock
29007 #: ../src/guestfs-actions.pod:6732
29008 msgid "See also: C<guestfs_command_lines>"
29009 msgstr ""
29010
29011 #. type: =head2
29012 #: ../src/guestfs-actions.pod:6740
29013 msgid "guestfs_sleep"
29014 msgstr ""
29015
29016 #. type: verbatim
29017 #: ../src/guestfs-actions.pod:6742
29018 #, no-wrap
29019 msgid ""
29020 " int\n"
29021 " guestfs_sleep (guestfs_h *g,\n"
29022 "                int secs);\n"
29023 "\n"
29024 msgstr ""
29025
29026 #. type: textblock
29027 #: ../src/guestfs-actions.pod:6750
29028 msgid "(Added in 1.0.41)"
29029 msgstr ""
29030
29031 #. type: =head2
29032 #: ../src/guestfs-actions.pod:6752 ../src/guestfs-structs.pod:109
29033 msgid "guestfs_stat"
29034 msgstr ""
29035
29036 #. type: verbatim
29037 #: ../src/guestfs-actions.pod:6754
29038 #, no-wrap
29039 msgid ""
29040 " struct guestfs_stat *\n"
29041 " guestfs_stat (guestfs_h *g,\n"
29042 "               const char *path);\n"
29043 "\n"
29044 msgstr ""
29045
29046 #. type: =head2
29047 #: ../src/guestfs-actions.pod:6768 ../src/guestfs-structs.pod:135
29048 msgid "guestfs_statvfs"
29049 msgstr ""
29050
29051 #. type: verbatim
29052 #: ../src/guestfs-actions.pod:6770
29053 #, no-wrap
29054 msgid ""
29055 " struct guestfs_statvfs *\n"
29056 " guestfs_statvfs (guestfs_h *g,\n"
29057 "                  const char *path);\n"
29058 "\n"
29059 msgstr ""
29060
29061 #. type: textblock
29062 #: ../src/guestfs-actions.pod:6780
29063 msgid ""
29064 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
29065 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
29066 msgstr ""
29067
29068 #. type: =head2
29069 #: ../src/guestfs-actions.pod:6786
29070 msgid "guestfs_strings"
29071 msgstr ""
29072
29073 #. type: verbatim
29074 #: ../src/guestfs-actions.pod:6788
29075 #, no-wrap
29076 msgid ""
29077 " char **\n"
29078 " guestfs_strings (guestfs_h *g,\n"
29079 "                  const char *path);\n"
29080 "\n"
29081 msgstr ""
29082
29083 #. type: =head2
29084 #: ../src/guestfs-actions.pod:6804
29085 msgid "guestfs_strings_e"
29086 msgstr ""
29087
29088 #. type: verbatim
29089 #: ../src/guestfs-actions.pod:6806
29090 #, no-wrap
29091 msgid ""
29092 " char **\n"
29093 " guestfs_strings_e (guestfs_h *g,\n"
29094 "                    const char *encoding,\n"
29095 "                    const char *path);\n"
29096 "\n"
29097 msgstr ""
29098
29099 #. type: textblock
29100 #: ../src/guestfs-actions.pod:6811
29101 msgid ""
29102 "This is like the C<guestfs_strings> command, but allows you to specify the "
29103 "encoding of strings that are looked for in the source file C<path>."
29104 msgstr ""
29105
29106 #. type: textblock
29107 #: ../src/guestfs-actions.pod:6821
29108 msgid ""
29109 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
29110 "ISO-8859-X (this is what C<guestfs_strings> uses)."
29111 msgstr ""
29112
29113 #. type: =head2
29114 #: ../src/guestfs-actions.pod:6859
29115 msgid "guestfs_swapoff_device"
29116 msgstr ""
29117
29118 #. type: verbatim
29119 #: ../src/guestfs-actions.pod:6861
29120 #, no-wrap
29121 msgid ""
29122 " int\n"
29123 " guestfs_swapoff_device (guestfs_h *g,\n"
29124 "                         const char *device);\n"
29125 "\n"
29126 msgstr ""
29127
29128 #. type: textblock
29129 #: ../src/guestfs-actions.pod:6865
29130 msgid ""
29131 "This command disables the libguestfs appliance swap device or partition "
29132 "named C<device>.  See C<guestfs_swapon_device>."
29133 msgstr ""
29134
29135 #. type: =head2
29136 #: ../src/guestfs-actions.pod:6873
29137 msgid "guestfs_swapoff_file"
29138 msgstr ""
29139
29140 #. type: verbatim
29141 #: ../src/guestfs-actions.pod:6875
29142 #, no-wrap
29143 msgid ""
29144 " int\n"
29145 " guestfs_swapoff_file (guestfs_h *g,\n"
29146 "                       const char *file);\n"
29147 "\n"
29148 msgstr ""
29149
29150 #. type: =head2
29151 #: ../src/guestfs-actions.pod:6885
29152 msgid "guestfs_swapoff_label"
29153 msgstr ""
29154
29155 #. type: verbatim
29156 #: ../src/guestfs-actions.pod:6887
29157 #, no-wrap
29158 msgid ""
29159 " int\n"
29160 " guestfs_swapoff_label (guestfs_h *g,\n"
29161 "                        const char *label);\n"
29162 "\n"
29163 msgstr ""
29164
29165 #. type: =head2
29166 #: ../src/guestfs-actions.pod:6898
29167 msgid "guestfs_swapoff_uuid"
29168 msgstr ""
29169
29170 #. type: verbatim
29171 #: ../src/guestfs-actions.pod:6900
29172 #, no-wrap
29173 msgid ""
29174 " int\n"
29175 " guestfs_swapoff_uuid (guestfs_h *g,\n"
29176 "                       const char *uuid);\n"
29177 "\n"
29178 msgstr ""
29179
29180 #. type: =head2
29181 #: ../src/guestfs-actions.pod:6911
29182 msgid "guestfs_swapon_device"
29183 msgstr ""
29184
29185 #. type: verbatim
29186 #: ../src/guestfs-actions.pod:6913
29187 #, no-wrap
29188 msgid ""
29189 " int\n"
29190 " guestfs_swapon_device (guestfs_h *g,\n"
29191 "                        const char *device);\n"
29192 "\n"
29193 msgstr ""
29194
29195 #. type: textblock
29196 #: ../src/guestfs-actions.pod:6917
29197 msgid ""
29198 "This command enables the libguestfs appliance to use the swap device or "
29199 "partition named C<device>.  The increased memory is made available for all "
29200 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
29201 msgstr ""
29202
29203 #. type: =head2
29204 #: ../src/guestfs-actions.pod:6933
29205 msgid "guestfs_swapon_file"
29206 msgstr ""
29207
29208 #. type: verbatim
29209 #: ../src/guestfs-actions.pod:6935
29210 #, no-wrap
29211 msgid ""
29212 " int\n"
29213 " guestfs_swapon_file (guestfs_h *g,\n"
29214 "                      const char *file);\n"
29215 "\n"
29216 msgstr ""
29217
29218 #. type: textblock
29219 #: ../src/guestfs-actions.pod:6939
29220 msgid ""
29221 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
29222 "notes."
29223 msgstr ""
29224
29225 #. type: =head2
29226 #: ../src/guestfs-actions.pod:6946
29227 msgid "guestfs_swapon_label"
29228 msgstr ""
29229
29230 #. type: verbatim
29231 #: ../src/guestfs-actions.pod:6948
29232 #, no-wrap
29233 msgid ""
29234 " int\n"
29235 " guestfs_swapon_label (guestfs_h *g,\n"
29236 "                       const char *label);\n"
29237 "\n"
29238 msgstr ""
29239
29240 #. type: textblock
29241 #: ../src/guestfs-actions.pod:6952
29242 msgid ""
29243 "This command enables swap to a labeled swap partition.  See "
29244 "C<guestfs_swapon_device> for other notes."
29245 msgstr ""
29246
29247 #. type: =head2
29248 #: ../src/guestfs-actions.pod:6959
29249 msgid "guestfs_swapon_uuid"
29250 msgstr ""
29251
29252 #. type: verbatim
29253 #: ../src/guestfs-actions.pod:6961
29254 #, no-wrap
29255 msgid ""
29256 " int\n"
29257 " guestfs_swapon_uuid (guestfs_h *g,\n"
29258 "                      const char *uuid);\n"
29259 "\n"
29260 msgstr ""
29261
29262 #. type: textblock
29263 #: ../src/guestfs-actions.pod:6965
29264 msgid ""
29265 "This command enables swap to a swap partition with the given UUID.  See "
29266 "C<guestfs_swapon_device> for other notes."
29267 msgstr ""
29268
29269 #. type: =head2
29270 #: ../src/guestfs-actions.pod:6972
29271 msgid "guestfs_sync"
29272 msgstr ""
29273
29274 #. type: verbatim
29275 #: ../src/guestfs-actions.pod:6974
29276 #, no-wrap
29277 msgid ""
29278 " int\n"
29279 " guestfs_sync (guestfs_h *g);\n"
29280 "\n"
29281 msgstr ""
29282
29283 #. type: =head2
29284 #: ../src/guestfs-actions.pod:6987
29285 msgid "guestfs_tail"
29286 msgstr ""
29287
29288 #. type: verbatim
29289 #: ../src/guestfs-actions.pod:6989
29290 #, no-wrap
29291 msgid ""
29292 " char **\n"
29293 " guestfs_tail (guestfs_h *g,\n"
29294 "               const char *path);\n"
29295 "\n"
29296 msgstr ""
29297
29298 #. type: =head2
29299 #: ../src/guestfs-actions.pod:7005
29300 msgid "guestfs_tail_n"
29301 msgstr ""
29302
29303 #. type: verbatim
29304 #: ../src/guestfs-actions.pod:7007
29305 #, no-wrap
29306 msgid ""
29307 " char **\n"
29308 " guestfs_tail_n (guestfs_h *g,\n"
29309 "                 int nrlines,\n"
29310 "                 const char *path);\n"
29311 "\n"
29312 msgstr ""
29313
29314 #. type: =head2
29315 #: ../src/guestfs-actions.pod:7029
29316 msgid "guestfs_tar_in"
29317 msgstr ""
29318
29319 #. type: verbatim
29320 #: ../src/guestfs-actions.pod:7031
29321 #, no-wrap
29322 msgid ""
29323 " int\n"
29324 " guestfs_tar_in (guestfs_h *g,\n"
29325 "                 const char *tarfile,\n"
29326 "                 const char *directory);\n"
29327 "\n"
29328 msgstr ""
29329
29330 #. type: textblock
29331 #: ../src/guestfs-actions.pod:7039
29332 msgid ""
29333 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
29334 msgstr ""
29335
29336 #. type: textblock
29337 #: ../src/guestfs-actions.pod:7044 ../src/guestfs-actions.pod:7061
29338 #: ../src/guestfs-actions.pod:7077 ../src/guestfs-actions.pod:7093
29339 msgid "(Added in 1.0.3)"
29340 msgstr ""
29341
29342 #. type: =head2
29343 #: ../src/guestfs-actions.pod:7046
29344 msgid "guestfs_tar_out"
29345 msgstr ""
29346
29347 #. type: verbatim
29348 #: ../src/guestfs-actions.pod:7048
29349 #, no-wrap
29350 msgid ""
29351 " int\n"
29352 " guestfs_tar_out (guestfs_h *g,\n"
29353 "                  const char *directory,\n"
29354 "                  const char *tarfile);\n"
29355 "\n"
29356 msgstr ""
29357
29358 #. type: textblock
29359 #: ../src/guestfs-actions.pod:7056
29360 msgid ""
29361 "To download a compressed tarball, use C<guestfs_tgz_out> or "
29362 "C<guestfs_txz_out>."
29363 msgstr ""
29364
29365 #. type: =head2
29366 #: ../src/guestfs-actions.pod:7063
29367 msgid "guestfs_tgz_in"
29368 msgstr ""
29369
29370 #. type: verbatim
29371 #: ../src/guestfs-actions.pod:7065
29372 #, no-wrap
29373 msgid ""
29374 " int\n"
29375 " guestfs_tgz_in (guestfs_h *g,\n"
29376 "                 const char *tarball,\n"
29377 "                 const char *directory);\n"
29378 "\n"
29379 msgstr ""
29380
29381 #. type: textblock
29382 #: ../src/guestfs-actions.pod:7073
29383 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
29384 msgstr ""
29385
29386 #. type: =head2
29387 #: ../src/guestfs-actions.pod:7079
29388 msgid "guestfs_tgz_out"
29389 msgstr ""
29390
29391 #. type: verbatim
29392 #: ../src/guestfs-actions.pod:7081
29393 #, no-wrap
29394 msgid ""
29395 " int\n"
29396 " guestfs_tgz_out (guestfs_h *g,\n"
29397 "                  const char *directory,\n"
29398 "                  const char *tarball);\n"
29399 "\n"
29400 msgstr ""
29401
29402 #. type: textblock
29403 #: ../src/guestfs-actions.pod:7089
29404 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
29405 msgstr ""
29406
29407 #. type: =head2
29408 #: ../src/guestfs-actions.pod:7095
29409 msgid "guestfs_touch"
29410 msgstr ""
29411
29412 #. type: verbatim
29413 #: ../src/guestfs-actions.pod:7097
29414 #, no-wrap
29415 msgid ""
29416 " int\n"
29417 " guestfs_touch (guestfs_h *g,\n"
29418 "                const char *path);\n"
29419 "\n"
29420 msgstr ""
29421
29422 #. type: =head2
29423 #: ../src/guestfs-actions.pod:7112
29424 msgid "guestfs_truncate"
29425 msgstr ""
29426
29427 #. type: verbatim
29428 #: ../src/guestfs-actions.pod:7114
29429 #, no-wrap
29430 msgid ""
29431 " int\n"
29432 " guestfs_truncate (guestfs_h *g,\n"
29433 "                   const char *path);\n"
29434 "\n"
29435 msgstr ""
29436
29437 #. type: =head2
29438 #: ../src/guestfs-actions.pod:7125
29439 msgid "guestfs_truncate_size"
29440 msgstr ""
29441
29442 #. type: verbatim
29443 #: ../src/guestfs-actions.pod:7127
29444 #, no-wrap
29445 msgid ""
29446 " int\n"
29447 " guestfs_truncate_size (guestfs_h *g,\n"
29448 "                        const char *path,\n"
29449 "                        int64_t size);\n"
29450 "\n"
29451 msgstr ""
29452
29453 #. type: textblock
29454 #: ../src/guestfs-actions.pod:7135
29455 msgid ""
29456 "If the current file size is less than C<size> then the file is extended to "
29457 "the required size with zero bytes.  This creates a sparse file (ie. disk "
29458 "blocks are not allocated for the file until you write to it).  To create a "
29459 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
29460 msgstr ""
29461
29462 #. type: =head2
29463 #: ../src/guestfs-actions.pod:7145
29464 msgid "guestfs_tune2fs_l"
29465 msgstr ""
29466
29467 #. type: verbatim
29468 #: ../src/guestfs-actions.pod:7147
29469 #, no-wrap
29470 msgid ""
29471 " char **\n"
29472 " guestfs_tune2fs_l (guestfs_h *g,\n"
29473 "                    const char *device);\n"
29474 "\n"
29475 msgstr ""
29476
29477 #. type: =head2
29478 #: ../src/guestfs-actions.pod:7167
29479 msgid "guestfs_txz_in"
29480 msgstr ""
29481
29482 #. type: verbatim
29483 #: ../src/guestfs-actions.pod:7169
29484 #, no-wrap
29485 msgid ""
29486 " int\n"
29487 " guestfs_txz_in (guestfs_h *g,\n"
29488 "                 const char *tarball,\n"
29489 "                 const char *directory);\n"
29490 "\n"
29491 msgstr ""
29492
29493 #. type: =head2
29494 #: ../src/guestfs-actions.pod:7181
29495 msgid "guestfs_txz_out"
29496 msgstr ""
29497
29498 #. type: verbatim
29499 #: ../src/guestfs-actions.pod:7183
29500 #, no-wrap
29501 msgid ""
29502 " int\n"
29503 " guestfs_txz_out (guestfs_h *g,\n"
29504 "                  const char *directory,\n"
29505 "                  const char *tarball);\n"
29506 "\n"
29507 msgstr ""
29508
29509 #. type: =head2
29510 #: ../src/guestfs-actions.pod:7195
29511 msgid "guestfs_umask"
29512 msgstr ""
29513
29514 #. type: verbatim
29515 #: ../src/guestfs-actions.pod:7197
29516 #, no-wrap
29517 msgid ""
29518 " int\n"
29519 " guestfs_umask (guestfs_h *g,\n"
29520 "                int mask);\n"
29521 "\n"
29522 msgstr ""
29523
29524 #. type: textblock
29525 #: ../src/guestfs-actions.pod:7213
29526 msgid ""
29527 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
29528 "C<guestfs_mkdir>."
29529 msgstr ""
29530
29531 #. type: =head2
29532 #: ../src/guestfs-actions.pod:7222
29533 msgid "guestfs_umount"
29534 msgstr ""
29535
29536 #. type: verbatim
29537 #: ../src/guestfs-actions.pod:7224
29538 #, no-wrap
29539 msgid ""
29540 " int\n"
29541 " guestfs_umount (guestfs_h *g,\n"
29542 "                 const char *pathordevice);\n"
29543 "\n"
29544 msgstr ""
29545
29546 #. type: =head2
29547 #: ../src/guestfs-actions.pod:7236
29548 msgid "guestfs_umount_all"
29549 msgstr ""
29550
29551 #. type: verbatim
29552 #: ../src/guestfs-actions.pod:7238
29553 #, no-wrap
29554 msgid ""
29555 " int\n"
29556 " guestfs_umount_all (guestfs_h *g);\n"
29557 "\n"
29558 msgstr ""
29559
29560 #. type: =head2
29561 #: ../src/guestfs-actions.pod:7249
29562 msgid "guestfs_upload"
29563 msgstr ""
29564
29565 #. type: verbatim
29566 #: ../src/guestfs-actions.pod:7251
29567 #, no-wrap
29568 msgid ""
29569 " int\n"
29570 " guestfs_upload (guestfs_h *g,\n"
29571 "                 const char *filename,\n"
29572 "                 const char *remotefilename);\n"
29573 "\n"
29574 msgstr ""
29575
29576 #. type: textblock
29577 #: ../src/guestfs-actions.pod:7261
29578 msgid "See also C<guestfs_download>."
29579 msgstr ""
29580
29581 #. type: =head2
29582 #: ../src/guestfs-actions.pod:7272
29583 msgid "guestfs_upload_offset"
29584 msgstr ""
29585
29586 #. type: verbatim
29587 #: ../src/guestfs-actions.pod:7274
29588 #, no-wrap
29589 msgid ""
29590 " int\n"
29591 " guestfs_upload_offset (guestfs_h *g,\n"
29592 "                        const char *filename,\n"
29593 "                        const char *remotefilename,\n"
29594 "                        int64_t offset);\n"
29595 "\n"
29596 msgstr ""
29597
29598 #. type: textblock
29599 #: ../src/guestfs-actions.pod:7290
29600 msgid ""
29601 "Note that there is no limit on the amount of data that can be uploaded with "
29602 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
29603 "full amount unless an error occurs."
29604 msgstr ""
29605
29606 #. type: textblock
29607 #: ../src/guestfs-actions.pod:7295
29608 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
29609 msgstr ""
29610
29611 #. type: =head2
29612 #: ../src/guestfs-actions.pod:7306
29613 msgid "guestfs_utimens"
29614 msgstr ""
29615
29616 #. type: verbatim
29617 #: ../src/guestfs-actions.pod:7308
29618 #, no-wrap
29619 msgid ""
29620 " int\n"
29621 " guestfs_utimens (guestfs_h *g,\n"
29622 "                  const char *path,\n"
29623 "                  int64_t atsecs,\n"
29624 "                  int64_t atnsecs,\n"
29625 "                  int64_t mtsecs,\n"
29626 "                  int64_t mtnsecs);\n"
29627 "\n"
29628 msgstr ""
29629
29630 #. type: =head2
29631 #: ../src/guestfs-actions.pod:7337 ../src/guestfs-structs.pod:175
29632 msgid "guestfs_version"
29633 msgstr ""
29634
29635 #. type: verbatim
29636 #: ../src/guestfs-actions.pod:7339
29637 #, no-wrap
29638 msgid ""
29639 " struct guestfs_version *\n"
29640 " guestfs_version (guestfs_h *g);\n"
29641 "\n"
29642 msgstr ""
29643
29644 #. type: textblock
29645 #: ../src/guestfs-actions.pod:7367
29646 msgid ""
29647 "I<Note:> Don't use this call to test for availability of features.  In "
29648 "enterprise distributions we backport features from later versions into "
29649 "earlier versions, making this an unreliable way to test for features.  Use "
29650 "C<guestfs_available> instead."
29651 msgstr ""
29652
29653 #. type: textblock
29654 #: ../src/guestfs-actions.pod:7373
29655 msgid ""
29656 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
29657 "error.  I<The caller must call C<guestfs_free_version> after use>."
29658 msgstr ""
29659
29660 #. type: textblock
29661 #: ../src/guestfs-actions.pod:7377
29662 msgid "(Added in 1.0.58)"
29663 msgstr ""
29664
29665 #. type: =head2
29666 #: ../src/guestfs-actions.pod:7379
29667 msgid "guestfs_vfs_label"
29668 msgstr ""
29669
29670 #. type: verbatim
29671 #: ../src/guestfs-actions.pod:7381
29672 #, no-wrap
29673 msgid ""
29674 " char *\n"
29675 " guestfs_vfs_label (guestfs_h *g,\n"
29676 "                    const char *device);\n"
29677 "\n"
29678 msgstr ""
29679
29680 #. type: textblock
29681 #: ../src/guestfs-actions.pod:7390
29682 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
29683 msgstr ""
29684
29685 #. type: textblock
29686 #: ../src/guestfs-actions.pod:7395 ../src/guestfs-actions.pod:7432
29687 msgid "(Added in 1.3.18)"
29688 msgstr ""
29689
29690 #. type: =head2
29691 #: ../src/guestfs-actions.pod:7397
29692 msgid "guestfs_vfs_type"
29693 msgstr ""
29694
29695 #. type: verbatim
29696 #: ../src/guestfs-actions.pod:7399
29697 #, no-wrap
29698 msgid ""
29699 " char *\n"
29700 " guestfs_vfs_type (guestfs_h *g,\n"
29701 "                   const char *device);\n"
29702 "\n"
29703 msgstr ""
29704
29705 #. type: =head2
29706 #: ../src/guestfs-actions.pod:7416
29707 msgid "guestfs_vfs_uuid"
29708 msgstr ""
29709
29710 #. type: verbatim
29711 #: ../src/guestfs-actions.pod:7418
29712 #, no-wrap
29713 msgid ""
29714 " char *\n"
29715 " guestfs_vfs_uuid (guestfs_h *g,\n"
29716 "                   const char *device);\n"
29717 "\n"
29718 msgstr ""
29719
29720 #. type: textblock
29721 #: ../src/guestfs-actions.pod:7427
29722 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
29723 msgstr ""
29724
29725 #. type: =head2
29726 #: ../src/guestfs-actions.pod:7434
29727 msgid "guestfs_vg_activate"
29728 msgstr ""
29729
29730 #. type: verbatim
29731 #: ../src/guestfs-actions.pod:7436
29732 #, no-wrap
29733 msgid ""
29734 " int\n"
29735 " guestfs_vg_activate (guestfs_h *g,\n"
29736 "                      int activate,\n"
29737 "                      char *const *volgroups);\n"
29738 "\n"
29739 msgstr ""
29740
29741 #. type: =head2
29742 #: ../src/guestfs-actions.pod:7453
29743 msgid "guestfs_vg_activate_all"
29744 msgstr ""
29745
29746 #. type: verbatim
29747 #: ../src/guestfs-actions.pod:7455
29748 #, no-wrap
29749 msgid ""
29750 " int\n"
29751 " guestfs_vg_activate_all (guestfs_h *g,\n"
29752 "                          int activate);\n"
29753 "\n"
29754 msgstr ""
29755
29756 #. type: =head2
29757 #: ../src/guestfs-actions.pod:7468
29758 msgid "guestfs_vgcreate"
29759 msgstr ""
29760
29761 #. type: verbatim
29762 #: ../src/guestfs-actions.pod:7470
29763 #, no-wrap
29764 msgid ""
29765 " int\n"
29766 " guestfs_vgcreate (guestfs_h *g,\n"
29767 "                   const char *volgroup,\n"
29768 "                   char *const *physvols);\n"
29769 "\n"
29770 msgstr ""
29771
29772 #. type: =head2
29773 #: ../src/guestfs-actions.pod:7482
29774 msgid "guestfs_vglvuuids"
29775 msgstr ""
29776
29777 #. type: verbatim
29778 #: ../src/guestfs-actions.pod:7484
29779 #, no-wrap
29780 msgid ""
29781 " char **\n"
29782 " guestfs_vglvuuids (guestfs_h *g,\n"
29783 "                    const char *vgname);\n"
29784 "\n"
29785 msgstr ""
29786
29787 #. type: textblock
29788 #: ../src/guestfs-actions.pod:7491
29789 msgid ""
29790 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
29791 "associate logical volumes and volume groups."
29792 msgstr ""
29793
29794 #. type: textblock
29795 #: ../src/guestfs-actions.pod:7494
29796 msgid "See also C<guestfs_vgpvuuids>."
29797 msgstr ""
29798
29799 #. type: =head2
29800 #: ../src/guestfs-actions.pod:7502
29801 msgid "guestfs_vgpvuuids"
29802 msgstr ""
29803
29804 #. type: verbatim
29805 #: ../src/guestfs-actions.pod:7504
29806 #, no-wrap
29807 msgid ""
29808 " char **\n"
29809 " guestfs_vgpvuuids (guestfs_h *g,\n"
29810 "                    const char *vgname);\n"
29811 "\n"
29812 msgstr ""
29813
29814 #. type: textblock
29815 #: ../src/guestfs-actions.pod:7511
29816 msgid ""
29817 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
29818 "associate physical volumes and volume groups."
29819 msgstr ""
29820
29821 #. type: textblock
29822 #: ../src/guestfs-actions.pod:7514
29823 msgid "See also C<guestfs_vglvuuids>."
29824 msgstr ""
29825
29826 #. type: =head2
29827 #: ../src/guestfs-actions.pod:7522
29828 msgid "guestfs_vgremove"
29829 msgstr ""
29830
29831 #. type: verbatim
29832 #: ../src/guestfs-actions.pod:7524
29833 #, no-wrap
29834 msgid ""
29835 " int\n"
29836 " guestfs_vgremove (guestfs_h *g,\n"
29837 "                   const char *vgname);\n"
29838 "\n"
29839 msgstr ""
29840
29841 #. type: =head2
29842 #: ../src/guestfs-actions.pod:7537
29843 msgid "guestfs_vgrename"
29844 msgstr ""
29845
29846 #. type: verbatim
29847 #: ../src/guestfs-actions.pod:7539
29848 #, no-wrap
29849 msgid ""
29850 " int\n"
29851 " guestfs_vgrename (guestfs_h *g,\n"
29852 "                   const char *volgroup,\n"
29853 "                   const char *newvolgroup);\n"
29854 "\n"
29855 msgstr ""
29856
29857 #. type: =head2
29858 #: ../src/guestfs-actions.pod:7550
29859 msgid "guestfs_vgs"
29860 msgstr ""
29861
29862 #. type: verbatim
29863 #: ../src/guestfs-actions.pod:7552
29864 #, no-wrap
29865 msgid ""
29866 " char **\n"
29867 " guestfs_vgs (guestfs_h *g);\n"
29868 "\n"
29869 msgstr ""
29870
29871 #. type: textblock
29872 #: ../src/guestfs-actions.pod:7561
29873 msgid "See also C<guestfs_vgs_full>."
29874 msgstr ""
29875
29876 #. type: =head2
29877 #: ../src/guestfs-actions.pod:7569
29878 msgid "guestfs_vgs_full"
29879 msgstr ""
29880
29881 #. type: verbatim
29882 #: ../src/guestfs-actions.pod:7571
29883 #, no-wrap
29884 msgid ""
29885 " struct guestfs_lvm_vg_list *\n"
29886 " guestfs_vgs_full (guestfs_h *g);\n"
29887 "\n"
29888 msgstr ""
29889
29890 #. type: textblock
29891 #: ../src/guestfs-actions.pod:7577
29892 msgid ""
29893 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
29894 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
29895 msgstr ""
29896
29897 #. type: =head2
29898 #: ../src/guestfs-actions.pod:7583
29899 msgid "guestfs_vgscan"
29900 msgstr ""
29901
29902 #. type: verbatim
29903 #: ../src/guestfs-actions.pod:7585
29904 #, no-wrap
29905 msgid ""
29906 " int\n"
29907 " guestfs_vgscan (guestfs_h *g);\n"
29908 "\n"
29909 msgstr ""
29910
29911 #. type: =head2
29912 #: ../src/guestfs-actions.pod:7595
29913 msgid "guestfs_vguuid"
29914 msgstr ""
29915
29916 #. type: verbatim
29917 #: ../src/guestfs-actions.pod:7597
29918 #, no-wrap
29919 msgid ""
29920 " char *\n"
29921 " guestfs_vguuid (guestfs_h *g,\n"
29922 "                 const char *vgname);\n"
29923 "\n"
29924 msgstr ""
29925
29926 #. type: =head2
29927 #: ../src/guestfs-actions.pod:7608
29928 msgid "guestfs_wait_ready"
29929 msgstr ""
29930
29931 #. type: verbatim
29932 #: ../src/guestfs-actions.pod:7610
29933 #, no-wrap
29934 msgid ""
29935 " int\n"
29936 " guestfs_wait_ready (guestfs_h *g);\n"
29937 "\n"
29938 msgstr ""
29939
29940 #. type: textblock
29941 #: ../src/guestfs-actions.pod:7613
29942 msgid "This function is a no op."
29943 msgstr ""
29944
29945 #. type: textblock
29946 #: ../src/guestfs-actions.pod:7615
29947 msgid ""
29948 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
29949 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
29950 "is no longer necessary because C<guestfs_launch> now does the waiting."
29951 msgstr ""
29952
29953 #. type: textblock
29954 #: ../src/guestfs-actions.pod:7620
29955 msgid ""
29956 "If you see any calls to this function in code then you can just remove them, "
29957 "unless you want to retain compatibility with older versions of the API."
29958 msgstr ""
29959
29960 #. type: textblock
29961 #: ../src/guestfs-actions.pod:7626
29962 msgid ""
29963 "This function is deprecated.  In new code, use the L</guestfs_launch> call "
29964 "instead."
29965 msgstr ""
29966
29967 #. type: =head2
29968 #: ../src/guestfs-actions.pod:7635
29969 msgid "guestfs_wc_c"
29970 msgstr ""
29971
29972 #. type: verbatim
29973 #: ../src/guestfs-actions.pod:7637
29974 #, no-wrap
29975 msgid ""
29976 " int\n"
29977 " guestfs_wc_c (guestfs_h *g,\n"
29978 "               const char *path);\n"
29979 "\n"
29980 msgstr ""
29981
29982 #. type: =head2
29983 #: ../src/guestfs-actions.pod:7648
29984 msgid "guestfs_wc_l"
29985 msgstr ""
29986
29987 #. type: verbatim
29988 #: ../src/guestfs-actions.pod:7650
29989 #, no-wrap
29990 msgid ""
29991 " int\n"
29992 " guestfs_wc_l (guestfs_h *g,\n"
29993 "               const char *path);\n"
29994 "\n"
29995 msgstr ""
29996
29997 #. type: =head2
29998 #: ../src/guestfs-actions.pod:7661
29999 msgid "guestfs_wc_w"
30000 msgstr ""
30001
30002 #. type: verbatim
30003 #: ../src/guestfs-actions.pod:7663
30004 #, no-wrap
30005 msgid ""
30006 " int\n"
30007 " guestfs_wc_w (guestfs_h *g,\n"
30008 "               const char *path);\n"
30009 "\n"
30010 msgstr ""
30011
30012 #. type: =head2
30013 #: ../src/guestfs-actions.pod:7674
30014 msgid "guestfs_write"
30015 msgstr ""
30016
30017 #. type: verbatim
30018 #: ../src/guestfs-actions.pod:7676
30019 #, no-wrap
30020 msgid ""
30021 " int\n"
30022 " guestfs_write (guestfs_h *g,\n"
30023 "                const char *path,\n"
30024 "                const char *content,\n"
30025 "                size_t content_size);\n"
30026 "\n"
30027 msgstr ""
30028
30029 #. type: textblock
30030 #: ../src/guestfs-actions.pod:7685
30031 msgid "See also C<guestfs_write_append>."
30032 msgstr ""
30033
30034 #. type: =head2
30035 #: ../src/guestfs-actions.pod:7694
30036 msgid "guestfs_write_append"
30037 msgstr ""
30038
30039 #. type: verbatim
30040 #: ../src/guestfs-actions.pod:7696
30041 #, no-wrap
30042 msgid ""
30043 " int\n"
30044 " guestfs_write_append (guestfs_h *g,\n"
30045 "                       const char *path,\n"
30046 "                       const char *content,\n"
30047 "                       size_t content_size);\n"
30048 "\n"
30049 msgstr ""
30050
30051 #. type: textblock
30052 #: ../src/guestfs-actions.pod:7705
30053 msgid "See also C<guestfs_write>."
30054 msgstr ""
30055
30056 #. type: =head2
30057 #: ../src/guestfs-actions.pod:7714
30058 msgid "guestfs_write_file"
30059 msgstr ""
30060
30061 #. type: verbatim
30062 #: ../src/guestfs-actions.pod:7716
30063 #, no-wrap
30064 msgid ""
30065 " int\n"
30066 " guestfs_write_file (guestfs_h *g,\n"
30067 "                     const char *path,\n"
30068 "                     const char *content,\n"
30069 "                     int size);\n"
30070 "\n"
30071 msgstr ""
30072
30073 #. type: textblock
30074 #: ../src/guestfs-actions.pod:7738
30075 msgid ""
30076 "This function is deprecated.  In new code, use the L</guestfs_write> call "
30077 "instead."
30078 msgstr ""
30079
30080 #. type: =head2
30081 #: ../src/guestfs-actions.pod:7747
30082 msgid "guestfs_zegrep"
30083 msgstr ""
30084
30085 #. type: verbatim
30086 #: ../src/guestfs-actions.pod:7749
30087 #, no-wrap
30088 msgid ""
30089 " char **\n"
30090 " guestfs_zegrep (guestfs_h *g,\n"
30091 "                 const char *regex,\n"
30092 "                 const char *path);\n"
30093 "\n"
30094 msgstr ""
30095
30096 #. type: =head2
30097 #: ../src/guestfs-actions.pod:7766
30098 msgid "guestfs_zegrepi"
30099 msgstr ""
30100
30101 #. type: verbatim
30102 #: ../src/guestfs-actions.pod:7768
30103 #, no-wrap
30104 msgid ""
30105 " char **\n"
30106 " guestfs_zegrepi (guestfs_h *g,\n"
30107 "                  const char *regex,\n"
30108 "                  const char *path);\n"
30109 "\n"
30110 msgstr ""
30111
30112 #. type: =head2
30113 #: ../src/guestfs-actions.pod:7785
30114 msgid "guestfs_zero"
30115 msgstr ""
30116
30117 #. type: verbatim
30118 #: ../src/guestfs-actions.pod:7787
30119 #, no-wrap
30120 msgid ""
30121 " int\n"
30122 " guestfs_zero (guestfs_h *g,\n"
30123 "               const char *device);\n"
30124 "\n"
30125 msgstr ""
30126
30127 #. type: textblock
30128 #: ../src/guestfs-actions.pod:7801
30129 msgid ""
30130 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
30131 "C<guestfs_is_zero_device>"
30132 msgstr ""
30133
30134 #. type: =head2
30135 #: ../src/guestfs-actions.pod:7813
30136 msgid "guestfs_zero_device"
30137 msgstr ""
30138
30139 #. type: verbatim
30140 #: ../src/guestfs-actions.pod:7815
30141 #, no-wrap
30142 msgid ""
30143 " int\n"
30144 " guestfs_zero_device (guestfs_h *g,\n"
30145 "                      const char *device);\n"
30146 "\n"
30147 msgstr ""
30148
30149 #. type: textblock
30150 #: ../src/guestfs-actions.pod:7819
30151 msgid ""
30152 "This command writes zeroes over the entire C<device>.  Compare with "
30153 "C<guestfs_zero> which just zeroes the first few blocks of a device."
30154 msgstr ""
30155
30156 #. type: textblock
30157 #: ../src/guestfs-actions.pod:7837
30158 msgid "(Added in 1.3.1)"
30159 msgstr ""
30160
30161 #. type: =head2
30162 #: ../src/guestfs-actions.pod:7839
30163 msgid "guestfs_zerofree"
30164 msgstr ""
30165
30166 #. type: verbatim
30167 #: ../src/guestfs-actions.pod:7841
30168 #, no-wrap
30169 msgid ""
30170 " int\n"
30171 " guestfs_zerofree (guestfs_h *g,\n"
30172 "                   const char *device);\n"
30173 "\n"
30174 msgstr ""
30175
30176 #. type: =head2
30177 #: ../src/guestfs-actions.pod:7860
30178 msgid "guestfs_zfgrep"
30179 msgstr ""
30180
30181 #. type: verbatim
30182 #: ../src/guestfs-actions.pod:7862
30183 #, no-wrap
30184 msgid ""
30185 " char **\n"
30186 " guestfs_zfgrep (guestfs_h *g,\n"
30187 "                 const char *pattern,\n"
30188 "                 const char *path);\n"
30189 "\n"
30190 msgstr ""
30191
30192 #. type: =head2
30193 #: ../src/guestfs-actions.pod:7879
30194 msgid "guestfs_zfgrepi"
30195 msgstr ""
30196
30197 #. type: verbatim
30198 #: ../src/guestfs-actions.pod:7881
30199 #, no-wrap
30200 msgid ""
30201 " char **\n"
30202 " guestfs_zfgrepi (guestfs_h *g,\n"
30203 "                  const char *pattern,\n"
30204 "                  const char *path);\n"
30205 "\n"
30206 msgstr ""
30207
30208 #. type: =head2
30209 #: ../src/guestfs-actions.pod:7898
30210 msgid "guestfs_zfile"
30211 msgstr ""
30212
30213 #. type: verbatim
30214 #: ../src/guestfs-actions.pod:7900
30215 #, no-wrap
30216 msgid ""
30217 " char *\n"
30218 " guestfs_zfile (guestfs_h *g,\n"
30219 "                const char *meth,\n"
30220 "                const char *path);\n"
30221 "\n"
30222 msgstr ""
30223
30224 #. type: textblock
30225 #: ../src/guestfs-actions.pod:7910
30226 msgid ""
30227 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
30228 "files."
30229 msgstr ""
30230
30231 #. type: textblock
30232 #: ../src/guestfs-actions.pod:7916
30233 msgid ""
30234 "This function is deprecated.  In new code, use the L</guestfs_file> call "
30235 "instead."
30236 msgstr ""
30237
30238 #. type: =head2
30239 #: ../src/guestfs-actions.pod:7925
30240 msgid "guestfs_zgrep"
30241 msgstr ""
30242
30243 #. type: verbatim
30244 #: ../src/guestfs-actions.pod:7927
30245 #, no-wrap
30246 msgid ""
30247 " char **\n"
30248 " guestfs_zgrep (guestfs_h *g,\n"
30249 "                const char *regex,\n"
30250 "                const char *path);\n"
30251 "\n"
30252 msgstr ""
30253
30254 #. type: =head2
30255 #: ../src/guestfs-actions.pod:7944
30256 msgid "guestfs_zgrepi"
30257 msgstr ""
30258
30259 #. type: verbatim
30260 #: ../src/guestfs-actions.pod:7946
30261 #, no-wrap
30262 msgid ""
30263 " char **\n"
30264 " guestfs_zgrepi (guestfs_h *g,\n"
30265 "                 const char *regex,\n"
30266 "                 const char *path);\n"
30267 "\n"
30268 msgstr ""
30269
30270 #. type: =item
30271 #: ../src/guestfs-availability.pod:3
30272 msgid "B<augeas>"
30273 msgstr ""
30274
30275 #. type: textblock
30276 #: ../src/guestfs-availability.pod:5
30277 msgid ""
30278 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
30279 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
30280 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
30281 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
30282 "L</guestfs_aug_save> L</guestfs_aug_set>"
30283 msgstr ""
30284
30285 #. type: =item
30286 #: ../src/guestfs-availability.pod:21
30287 msgid "B<btrfs>"
30288 msgstr ""
30289
30290 #. type: textblock
30291 #: ../src/guestfs-availability.pod:23
30292 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
30293 msgstr ""
30294
30295 #. type: =item
30296 #: ../src/guestfs-availability.pod:26
30297 msgid "B<grub>"
30298 msgstr ""
30299
30300 #. type: textblock
30301 #: ../src/guestfs-availability.pod:28
30302 msgid "The following functions: L</guestfs_grub_install>"
30303 msgstr ""
30304
30305 #. type: =item
30306 #: ../src/guestfs-availability.pod:31
30307 msgid "B<inotify>"
30308 msgstr ""
30309
30310 #. type: textblock
30311 #: ../src/guestfs-availability.pod:33
30312 msgid ""
30313 "The following functions: L</guestfs_inotify_add_watch> L</"
30314 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
30315 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
30316 msgstr ""
30317
30318 #. type: =item
30319 #: ../src/guestfs-availability.pod:41
30320 msgid "B<linuxfsuuid>"
30321 msgstr ""
30322
30323 #. type: textblock
30324 #: ../src/guestfs-availability.pod:43
30325 msgid ""
30326 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
30327 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
30328 msgstr ""
30329
30330 #. type: =item
30331 #: ../src/guestfs-availability.pod:50
30332 msgid "B<linuxmodules>"
30333 msgstr ""
30334
30335 #. type: textblock
30336 #: ../src/guestfs-availability.pod:52
30337 msgid "The following functions: L</guestfs_modprobe>"
30338 msgstr ""
30339
30340 #. type: =item
30341 #: ../src/guestfs-availability.pod:55
30342 msgid "B<linuxxattrs>"
30343 msgstr ""
30344
30345 #. type: textblock
30346 #: ../src/guestfs-availability.pod:57
30347 msgid ""
30348 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
30349 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
30350 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
30351 "guestfs_setxattr>"
30352 msgstr ""
30353
30354 #. type: =item
30355 #: ../src/guestfs-availability.pod:68
30356 msgid "B<luks>"
30357 msgstr ""
30358
30359 #. type: textblock
30360 #: ../src/guestfs-availability.pod:70
30361 msgid ""
30362 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
30363 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
30364 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
30365 msgstr ""
30366
30367 #. type: =item
30368 #: ../src/guestfs-availability.pod:79
30369 msgid "B<lvm2>"
30370 msgstr ""
30371
30372 #. type: textblock
30373 #: ../src/guestfs-availability.pod:81
30374 msgid ""
30375 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
30376 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
30377 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
30378 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
30379 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
30380 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
30381 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
30382 msgstr ""
30383
30384 #. type: =item
30385 #: ../src/guestfs-availability.pod:104
30386 msgid "B<mknod>"
30387 msgstr ""
30388
30389 #. type: textblock
30390 #: ../src/guestfs-availability.pod:106
30391 msgid ""
30392 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
30393 "guestfs_mknod_b> L</guestfs_mknod_c>"
30394 msgstr ""
30395
30396 #. type: =item
30397 #: ../src/guestfs-availability.pod:112
30398 msgid "B<ntfs3g>"
30399 msgstr ""
30400
30401 #. type: textblock
30402 #: ../src/guestfs-availability.pod:114
30403 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
30404 msgstr ""
30405
30406 #. type: =item
30407 #: ../src/guestfs-availability.pod:117
30408 msgid "B<ntfsprogs>"
30409 msgstr ""
30410
30411 #. type: textblock
30412 #: ../src/guestfs-availability.pod:119
30413 msgid ""
30414 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
30415 "L</guestfs_ntfsresize_size>"
30416 msgstr ""
30417
30418 #. type: =item
30419 #: ../src/guestfs-availability.pod:124
30420 msgid "B<realpath>"
30421 msgstr ""
30422
30423 #. type: textblock
30424 #: ../src/guestfs-availability.pod:126
30425 msgid "The following functions: L</guestfs_realpath>"
30426 msgstr ""
30427
30428 #. type: =item
30429 #: ../src/guestfs-availability.pod:129
30430 msgid "B<scrub>"
30431 msgstr ""
30432
30433 #. type: textblock
30434 #: ../src/guestfs-availability.pod:131
30435 msgid ""
30436 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
30437 "guestfs_scrub_freespace>"
30438 msgstr ""
30439
30440 #. type: =item
30441 #: ../src/guestfs-availability.pod:136
30442 msgid "B<selinux>"
30443 msgstr ""
30444
30445 #. type: textblock
30446 #: ../src/guestfs-availability.pod:138
30447 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
30448 msgstr ""
30449
30450 #. type: =item
30451 #: ../src/guestfs-availability.pod:142
30452 msgid "B<xz>"
30453 msgstr ""
30454
30455 #. type: textblock
30456 #: ../src/guestfs-availability.pod:144
30457 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
30458 msgstr ""
30459
30460 #. type: =item
30461 #: ../src/guestfs-availability.pod:148
30462 msgid "B<zerofree>"
30463 msgstr ""
30464
30465 #. type: textblock
30466 #: ../src/guestfs-availability.pod:150
30467 msgid "The following functions: L</guestfs_zerofree>"
30468 msgstr ""
30469
30470 #. type: =head2
30471 #: ../src/guestfs-structs.pod:1
30472 msgid "guestfs_int_bool"
30473 msgstr ""
30474
30475 #. type: verbatim
30476 #: ../src/guestfs-structs.pod:3
30477 #, no-wrap
30478 msgid ""
30479 " struct guestfs_int_bool {\n"
30480 "   int32_t i;\n"
30481 "   int32_t b;\n"
30482 " };\n"
30483 " \n"
30484 msgstr ""
30485
30486 #. type: verbatim
30487 #: ../src/guestfs-structs.pod:8
30488 #, no-wrap
30489 msgid ""
30490 " struct guestfs_int_bool_list {\n"
30491 "   uint32_t len; /* Number of elements in list. */\n"
30492 "   struct guestfs_int_bool *val; /* Elements. */\n"
30493 " };\n"
30494 " \n"
30495 msgstr ""
30496
30497 #. type: verbatim
30498 #: ../src/guestfs-structs.pod:13
30499 #, no-wrap
30500 msgid ""
30501 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
30502 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
30503 "\n"
30504 msgstr ""
30505
30506 #. type: =head2
30507 #: ../src/guestfs-structs.pod:16
30508 msgid "guestfs_lvm_pv"
30509 msgstr ""
30510
30511 #. type: verbatim
30512 #: ../src/guestfs-structs.pod:18
30513 #, no-wrap
30514 msgid ""
30515 " struct guestfs_lvm_pv {\n"
30516 "   char *pv_name;\n"
30517 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
30518 "   char pv_uuid[32];\n"
30519 "   char *pv_fmt;\n"
30520 "   uint64_t pv_size;\n"
30521 "   uint64_t dev_size;\n"
30522 "   uint64_t pv_free;\n"
30523 "   uint64_t pv_used;\n"
30524 "   char *pv_attr;\n"
30525 "   int64_t pv_pe_count;\n"
30526 "   int64_t pv_pe_alloc_count;\n"
30527 "   char *pv_tags;\n"
30528 "   uint64_t pe_start;\n"
30529 "   int64_t pv_mda_count;\n"
30530 "   uint64_t pv_mda_free;\n"
30531 " };\n"
30532 " \n"
30533 msgstr ""
30534
30535 #. type: verbatim
30536 #: ../src/guestfs-structs.pod:36
30537 #, no-wrap
30538 msgid ""
30539 " struct guestfs_lvm_pv_list {\n"
30540 "   uint32_t len; /* Number of elements in list. */\n"
30541 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
30542 " };\n"
30543 " \n"
30544 msgstr ""
30545
30546 #. type: verbatim
30547 #: ../src/guestfs-structs.pod:41
30548 #, no-wrap
30549 msgid ""
30550 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
30551 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
30552 "\n"
30553 msgstr ""
30554
30555 #. type: =head2
30556 #: ../src/guestfs-structs.pod:44
30557 msgid "guestfs_lvm_vg"
30558 msgstr ""
30559
30560 #. type: verbatim
30561 #: ../src/guestfs-structs.pod:46
30562 #, no-wrap
30563 msgid ""
30564 " struct guestfs_lvm_vg {\n"
30565 "   char *vg_name;\n"
30566 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
30567 "   char vg_uuid[32];\n"
30568 "   char *vg_fmt;\n"
30569 "   char *vg_attr;\n"
30570 "   uint64_t vg_size;\n"
30571 "   uint64_t vg_free;\n"
30572 "   char *vg_sysid;\n"
30573 "   uint64_t vg_extent_size;\n"
30574 "   int64_t vg_extent_count;\n"
30575 "   int64_t vg_free_count;\n"
30576 "   int64_t max_lv;\n"
30577 "   int64_t max_pv;\n"
30578 "   int64_t pv_count;\n"
30579 "   int64_t lv_count;\n"
30580 "   int64_t snap_count;\n"
30581 "   int64_t vg_seqno;\n"
30582 "   char *vg_tags;\n"
30583 "   int64_t vg_mda_count;\n"
30584 "   uint64_t vg_mda_free;\n"
30585 " };\n"
30586 " \n"
30587 msgstr ""
30588
30589 #. type: verbatim
30590 #: ../src/guestfs-structs.pod:69
30591 #, no-wrap
30592 msgid ""
30593 " struct guestfs_lvm_vg_list {\n"
30594 "   uint32_t len; /* Number of elements in list. */\n"
30595 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
30596 " };\n"
30597 " \n"
30598 msgstr ""
30599
30600 #. type: verbatim
30601 #: ../src/guestfs-structs.pod:74
30602 #, no-wrap
30603 msgid ""
30604 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
30605 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
30606 "\n"
30607 msgstr ""
30608
30609 #. type: =head2
30610 #: ../src/guestfs-structs.pod:77
30611 msgid "guestfs_lvm_lv"
30612 msgstr ""
30613
30614 #. type: verbatim
30615 #: ../src/guestfs-structs.pod:79
30616 #, no-wrap
30617 msgid ""
30618 " struct guestfs_lvm_lv {\n"
30619 "   char *lv_name;\n"
30620 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
30621 "   char lv_uuid[32];\n"
30622 "   char *lv_attr;\n"
30623 "   int64_t lv_major;\n"
30624 "   int64_t lv_minor;\n"
30625 "   int64_t lv_kernel_major;\n"
30626 "   int64_t lv_kernel_minor;\n"
30627 "   uint64_t lv_size;\n"
30628 "   int64_t seg_count;\n"
30629 "   char *origin;\n"
30630 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
30631 "   float snap_percent;\n"
30632 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
30633 "   float copy_percent;\n"
30634 "   char *move_pv;\n"
30635 "   char *lv_tags;\n"
30636 "   char *mirror_log;\n"
30637 "   char *modules;\n"
30638 " };\n"
30639 " \n"
30640 msgstr ""
30641
30642 #. type: verbatim
30643 #: ../src/guestfs-structs.pod:101
30644 #, no-wrap
30645 msgid ""
30646 " struct guestfs_lvm_lv_list {\n"
30647 "   uint32_t len; /* Number of elements in list. */\n"
30648 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
30649 " };\n"
30650 " \n"
30651 msgstr ""
30652
30653 #. type: verbatim
30654 #: ../src/guestfs-structs.pod:106
30655 #, no-wrap
30656 msgid ""
30657 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
30658 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
30659 "\n"
30660 msgstr ""
30661
30662 #. type: verbatim
30663 #: ../src/guestfs-structs.pod:111
30664 #, no-wrap
30665 msgid ""
30666 " struct guestfs_stat {\n"
30667 "   int64_t dev;\n"
30668 "   int64_t ino;\n"
30669 "   int64_t mode;\n"
30670 "   int64_t nlink;\n"
30671 "   int64_t uid;\n"
30672 "   int64_t gid;\n"
30673 "   int64_t rdev;\n"
30674 "   int64_t size;\n"
30675 "   int64_t blksize;\n"
30676 "   int64_t blocks;\n"
30677 "   int64_t atime;\n"
30678 "   int64_t mtime;\n"
30679 "   int64_t ctime;\n"
30680 " };\n"
30681 " \n"
30682 msgstr ""
30683
30684 #. type: verbatim
30685 #: ../src/guestfs-structs.pod:127
30686 #, no-wrap
30687 msgid ""
30688 " struct guestfs_stat_list {\n"
30689 "   uint32_t len; /* Number of elements in list. */\n"
30690 "   struct guestfs_stat *val; /* Elements. */\n"
30691 " };\n"
30692 " \n"
30693 msgstr ""
30694
30695 #. type: verbatim
30696 #: ../src/guestfs-structs.pod:132
30697 #, no-wrap
30698 msgid ""
30699 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
30700 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
30701 "\n"
30702 msgstr ""
30703
30704 #. type: verbatim
30705 #: ../src/guestfs-structs.pod:137
30706 #, no-wrap
30707 msgid ""
30708 " struct guestfs_statvfs {\n"
30709 "   int64_t bsize;\n"
30710 "   int64_t frsize;\n"
30711 "   int64_t blocks;\n"
30712 "   int64_t bfree;\n"
30713 "   int64_t bavail;\n"
30714 "   int64_t files;\n"
30715 "   int64_t ffree;\n"
30716 "   int64_t favail;\n"
30717 "   int64_t fsid;\n"
30718 "   int64_t flag;\n"
30719 "   int64_t namemax;\n"
30720 " };\n"
30721 " \n"
30722 msgstr ""
30723
30724 #. type: verbatim
30725 #: ../src/guestfs-structs.pod:151
30726 #, no-wrap
30727 msgid ""
30728 " struct guestfs_statvfs_list {\n"
30729 "   uint32_t len; /* Number of elements in list. */\n"
30730 "   struct guestfs_statvfs *val; /* Elements. */\n"
30731 " };\n"
30732 " \n"
30733 msgstr ""
30734
30735 #. type: verbatim
30736 #: ../src/guestfs-structs.pod:156
30737 #, no-wrap
30738 msgid ""
30739 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
30740 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
30741 "\n"
30742 msgstr ""
30743
30744 #. type: =head2
30745 #: ../src/guestfs-structs.pod:159
30746 msgid "guestfs_dirent"
30747 msgstr ""
30748
30749 #. type: verbatim
30750 #: ../src/guestfs-structs.pod:161
30751 #, no-wrap
30752 msgid ""
30753 " struct guestfs_dirent {\n"
30754 "   int64_t ino;\n"
30755 "   char ftyp;\n"
30756 "   char *name;\n"
30757 " };\n"
30758 " \n"
30759 msgstr ""
30760
30761 #. type: verbatim
30762 #: ../src/guestfs-structs.pod:167
30763 #, no-wrap
30764 msgid ""
30765 " struct guestfs_dirent_list {\n"
30766 "   uint32_t len; /* Number of elements in list. */\n"
30767 "   struct guestfs_dirent *val; /* Elements. */\n"
30768 " };\n"
30769 " \n"
30770 msgstr ""
30771
30772 #. type: verbatim
30773 #: ../src/guestfs-structs.pod:172
30774 #, no-wrap
30775 msgid ""
30776 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
30777 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
30778 "\n"
30779 msgstr ""
30780
30781 #. type: verbatim
30782 #: ../src/guestfs-structs.pod:177
30783 #, no-wrap
30784 msgid ""
30785 " struct guestfs_version {\n"
30786 "   int64_t major;\n"
30787 "   int64_t minor;\n"
30788 "   int64_t release;\n"
30789 "   char *extra;\n"
30790 " };\n"
30791 " \n"
30792 msgstr ""
30793
30794 #. type: verbatim
30795 #: ../src/guestfs-structs.pod:184
30796 #, no-wrap
30797 msgid ""
30798 " struct guestfs_version_list {\n"
30799 "   uint32_t len; /* Number of elements in list. */\n"
30800 "   struct guestfs_version *val; /* Elements. */\n"
30801 " };\n"
30802 " \n"
30803 msgstr ""
30804
30805 #. type: verbatim
30806 #: ../src/guestfs-structs.pod:189
30807 #, no-wrap
30808 msgid ""
30809 " void guestfs_free_version (struct guestfs_free_version *);\n"
30810 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
30811 "\n"
30812 msgstr ""
30813
30814 #. type: =head2
30815 #: ../src/guestfs-structs.pod:192
30816 msgid "guestfs_xattr"
30817 msgstr ""
30818
30819 #. type: verbatim
30820 #: ../src/guestfs-structs.pod:194
30821 #, no-wrap
30822 msgid ""
30823 " struct guestfs_xattr {\n"
30824 "   char *attrname;\n"
30825 "   /* The next two fields describe a byte array. */\n"
30826 "   uint32_t attrval_len;\n"
30827 "   char *attrval;\n"
30828 " };\n"
30829 " \n"
30830 msgstr ""
30831
30832 #. type: verbatim
30833 #: ../src/guestfs-structs.pod:201
30834 #, no-wrap
30835 msgid ""
30836 " struct guestfs_xattr_list {\n"
30837 "   uint32_t len; /* Number of elements in list. */\n"
30838 "   struct guestfs_xattr *val; /* Elements. */\n"
30839 " };\n"
30840 " \n"
30841 msgstr ""
30842
30843 #. type: verbatim
30844 #: ../src/guestfs-structs.pod:206
30845 #, no-wrap
30846 msgid ""
30847 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
30848 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
30849 "\n"
30850 msgstr ""
30851
30852 #. type: =head2
30853 #: ../src/guestfs-structs.pod:209
30854 msgid "guestfs_inotify_event"
30855 msgstr ""
30856
30857 #. type: verbatim
30858 #: ../src/guestfs-structs.pod:211
30859 #, no-wrap
30860 msgid ""
30861 " struct guestfs_inotify_event {\n"
30862 "   int64_t in_wd;\n"
30863 "   uint32_t in_mask;\n"
30864 "   uint32_t in_cookie;\n"
30865 "   char *in_name;\n"
30866 " };\n"
30867 " \n"
30868 msgstr ""
30869
30870 #. type: verbatim
30871 #: ../src/guestfs-structs.pod:218
30872 #, no-wrap
30873 msgid ""
30874 " struct guestfs_inotify_event_list {\n"
30875 "   uint32_t len; /* Number of elements in list. */\n"
30876 "   struct guestfs_inotify_event *val; /* Elements. */\n"
30877 " };\n"
30878 " \n"
30879 msgstr ""
30880
30881 #. type: verbatim
30882 #: ../src/guestfs-structs.pod:223
30883 #, no-wrap
30884 msgid ""
30885 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
30886 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
30887 "\n"
30888 msgstr ""
30889
30890 #. type: =head2
30891 #: ../src/guestfs-structs.pod:226
30892 msgid "guestfs_partition"
30893 msgstr ""
30894
30895 #. type: verbatim
30896 #: ../src/guestfs-structs.pod:228
30897 #, no-wrap
30898 msgid ""
30899 " struct guestfs_partition {\n"
30900 "   int32_t part_num;\n"
30901 "   uint64_t part_start;\n"
30902 "   uint64_t part_end;\n"
30903 "   uint64_t part_size;\n"
30904 " };\n"
30905 " \n"
30906 msgstr ""
30907
30908 #. type: verbatim
30909 #: ../src/guestfs-structs.pod:235
30910 #, no-wrap
30911 msgid ""
30912 " struct guestfs_partition_list {\n"
30913 "   uint32_t len; /* Number of elements in list. */\n"
30914 "   struct guestfs_partition *val; /* Elements. */\n"
30915 " };\n"
30916 " \n"
30917 msgstr ""
30918
30919 #. type: verbatim
30920 #: ../src/guestfs-structs.pod:240
30921 #, no-wrap
30922 msgid ""
30923 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
30924 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
30925 "\n"
30926 msgstr ""
30927
30928 #. type: =head2
30929 #: ../src/guestfs-structs.pod:243
30930 msgid "guestfs_application"
30931 msgstr ""
30932
30933 #. type: verbatim
30934 #: ../src/guestfs-structs.pod:245
30935 #, no-wrap
30936 msgid ""
30937 " struct guestfs_application {\n"
30938 "   char *app_name;\n"
30939 "   char *app_display_name;\n"
30940 "   int32_t app_epoch;\n"
30941 "   char *app_version;\n"
30942 "   char *app_release;\n"
30943 "   char *app_install_path;\n"
30944 "   char *app_trans_path;\n"
30945 "   char *app_publisher;\n"
30946 "   char *app_url;\n"
30947 "   char *app_source_package;\n"
30948 "   char *app_summary;\n"
30949 "   char *app_description;\n"
30950 " };\n"
30951 " \n"
30952 msgstr ""
30953
30954 #. type: verbatim
30955 #: ../src/guestfs-structs.pod:260
30956 #, no-wrap
30957 msgid ""
30958 " struct guestfs_application_list {\n"
30959 "   uint32_t len; /* Number of elements in list. */\n"
30960 "   struct guestfs_application *val; /* Elements. */\n"
30961 " };\n"
30962 " \n"
30963 msgstr ""
30964
30965 #. type: verbatim
30966 #: ../src/guestfs-structs.pod:265
30967 #, no-wrap
30968 msgid ""
30969 " void guestfs_free_application (struct guestfs_free_application *);\n"
30970 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
30971 "\n"
30972 msgstr ""
30973
30974 #. type: textblock
30975 #: ../src/guestfs.pod:5
30976 msgid "guestfs - Library for accessing and modifying virtual machine images"
30977 msgstr ""
30978
30979 #. type: verbatim
30980 #: ../src/guestfs.pod:11
30981 #, no-wrap
30982 msgid ""
30983 " guestfs_h *g = guestfs_create ();\n"
30984 " guestfs_add_drive (g, \"guest.img\");\n"
30985 " guestfs_launch (g);\n"
30986 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
30987 " guestfs_touch (g, \"/hello\");\n"
30988 " guestfs_umount (g, \"/\");\n"
30989 " guestfs_close (g);\n"
30990 "\n"
30991 msgstr ""
30992
30993 #. type: textblock
30994 #: ../src/guestfs.pod:25
30995 msgid ""
30996 "Libguestfs is a library for accessing and modifying guest disk images.  "
30997 "Amongst the things this is good for: making batch configuration changes to "
30998 "guests, getting disk used/free statistics (see also: virt-df), migrating "
30999 "between virtualization systems (see also: virt-p2v), performing partial "
31000 "backups, performing partial guest clones, cloning guests and changing "
31001 "registry/UUID/hostname info, and much else besides."
31002 msgstr ""
31003
31004 #. type: textblock
31005 #: ../src/guestfs.pod:33
31006 msgid ""
31007 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
31008 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
31009 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
31010 "qcow2, vmdk."
31011 msgstr ""
31012
31013 #. type: textblock
31014 #: ../src/guestfs.pod:38
31015 msgid ""
31016 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
31017 "what filesystem is in each LV, etc.).  It can also run commands in the "
31018 "context of the guest.  Also you can access filesystems over FUSE."
31019 msgstr ""
31020
31021 #. type: textblock
31022 #: ../src/guestfs.pod:43
31023 msgid ""
31024 "Libguestfs is a library that can be linked with C and C++ management "
31025 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
31026 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
31027 "line."
31028 msgstr ""
31029
31030 #. type: textblock
31031 #: ../src/guestfs.pod:48
31032 msgid ""
31033 "You don't need to be root to use libguestfs, although obviously you do need "
31034 "enough permissions to access the disk images."
31035 msgstr ""
31036
31037 #. type: textblock
31038 #: ../src/guestfs.pod:51
31039 msgid ""
31040 "Libguestfs is a large API because it can do many things.  For a gentle "
31041 "introduction, please read the L</API OVERVIEW> section next."
31042 msgstr ""
31043
31044 #. type: textblock
31045 #: ../src/guestfs.pod:54
31046 msgid ""
31047 "There are also some example programs in the L<guestfs-examples(3)> manual "
31048 "page."
31049 msgstr ""
31050
31051 #. type: =head1
31052 #: ../src/guestfs.pod:57
31053 msgid "API OVERVIEW"
31054 msgstr ""
31055
31056 #. type: textblock
31057 #: ../src/guestfs.pod:59
31058 msgid ""
31059 "This section provides a gentler overview of the libguestfs API.  We also try "
31060 "to group API calls together, where that may not be obvious from reading "
31061 "about the individual calls in the main section of this manual."
31062 msgstr ""
31063
31064 #. type: =head2
31065 #: ../src/guestfs.pod:64
31066 msgid "HANDLES"
31067 msgstr ""
31068
31069 #. type: textblock
31070 #: ../src/guestfs.pod:66
31071 msgid ""
31072 "Before you can use libguestfs calls, you have to create a handle.  Then you "
31073 "must add at least one disk image to the handle, followed by launching the "
31074 "handle, then performing whatever operations you want, and finally closing "
31075 "the handle.  By convention we use the single letter C<g> for the name of the "
31076 "handle variable, although of course you can use any name you want."
31077 msgstr ""
31078
31079 #. type: textblock
31080 #: ../src/guestfs.pod:73
31081 msgid "The general structure of all libguestfs-using programs looks like this:"
31082 msgstr ""
31083
31084 #. type: verbatim
31085 #: ../src/guestfs.pod:76
31086 #, no-wrap
31087 msgid ""
31088 " guestfs_h *g = guestfs_create ();\n"
31089 " \n"
31090 msgstr ""
31091
31092 #. type: verbatim
31093 #: ../src/guestfs.pod:78
31094 #, no-wrap
31095 msgid ""
31096 " /* Call guestfs_add_drive additional times if there are\n"
31097 "  * multiple disk images.\n"
31098 "  */\n"
31099 " guestfs_add_drive (g, \"guest.img\");\n"
31100 " \n"
31101 msgstr ""
31102
31103 #. type: verbatim
31104 #: ../src/guestfs.pod:83
31105 #, no-wrap
31106 msgid ""
31107 " /* Most manipulation calls won't work until you've launched\n"
31108 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
31109 "  * and _before_ other commands.\n"
31110 "  */\n"
31111 " guestfs_launch (g);\n"
31112 " \n"
31113 msgstr ""
31114
31115 #. type: verbatim
31116 #: ../src/guestfs.pod:89
31117 #, no-wrap
31118 msgid ""
31119 " /* Now you can examine what partitions, LVs etc are available.\n"
31120 "  */\n"
31121 " char **partitions = guestfs_list_partitions (g);\n"
31122 " char **logvols = guestfs_lvs (g);\n"
31123 " \n"
31124 msgstr ""
31125
31126 #. type: verbatim
31127 #: ../src/guestfs.pod:94
31128 #, no-wrap
31129 msgid ""
31130 " /* To access a filesystem in the image, you must mount it.\n"
31131 "  */\n"
31132 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
31133 " \n"
31134 msgstr ""
31135
31136 #. type: verbatim
31137 #: ../src/guestfs.pod:98
31138 #, no-wrap
31139 msgid ""
31140 " /* Now you can perform filesystem actions on the guest\n"
31141 "  * disk image.\n"
31142 "  */\n"
31143 " guestfs_touch (g, \"/hello\");\n"
31144 " \n"
31145 msgstr ""
31146
31147 #. type: verbatim
31148 #: ../src/guestfs.pod:103
31149 #, no-wrap
31150 msgid ""
31151 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
31152 "  * it is done automatically when you close the handle.  See\n"
31153 "  * discussion of autosync in this page.\n"
31154 "  */\n"
31155 " guestfs_sync (g);\n"
31156 " \n"
31157 msgstr ""
31158
31159 #. type: verbatim
31160 #: ../src/guestfs.pod:109
31161 #, no-wrap
31162 msgid ""
31163 " /* Close the handle 'g'. */\n"
31164 " guestfs_close (g);\n"
31165 "\n"
31166 msgstr ""
31167
31168 #. type: textblock
31169 #: ../src/guestfs.pod:112
31170 msgid ""
31171 "The code above doesn't include any error checking.  In real code you should "
31172 "check return values carefully for errors.  In general all functions that "
31173 "return integers return C<-1> on error, and all functions that return "
31174 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
31175 "how to handle errors, and consult the documentation for each function call "
31176 "below to see precisely how they return error indications.  See L<guestfs-"
31177 "examples(3)> for fully worked examples."
31178 msgstr ""
31179
31180 #. type: =head2
31181 #: ../src/guestfs.pod:121
31182 msgid "DISK IMAGES"
31183 msgstr ""
31184
31185 #. type: textblock
31186 #: ../src/guestfs.pod:123
31187 msgid ""
31188 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
31189 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
31190 "actual block device, or simply an empty file of zeroes that you have created "
31191 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
31192 "of these."
31193 msgstr ""
31194
31195 #. type: textblock
31196 #: ../src/guestfs.pod:129
31197 msgid ""
31198 "The call you should use in modern code for adding drives is L</"
31199 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
31200 "specifying that the format is raw, do:"
31201 msgstr ""
31202
31203 #. type: verbatim
31204 #: ../src/guestfs.pod:133
31205 #, no-wrap
31206 msgid ""
31207 " guestfs_add_drive_opts (g, filename,\n"
31208 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
31209 "                         -1);\n"
31210 "\n"
31211 msgstr ""
31212
31213 #. type: textblock
31214 #: ../src/guestfs.pod:137
31215 msgid "You can add a disk read-only using:"
31216 msgstr ""
31217
31218 #. type: verbatim
31219 #: ../src/guestfs.pod:139
31220 #, no-wrap
31221 msgid ""
31222 " guestfs_add_drive_opts (g, filename,\n"
31223 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
31224 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
31225 "                         -1);\n"
31226 "\n"
31227 msgstr ""
31228
31229 #. type: textblock
31230 #: ../src/guestfs.pod:144
31231 msgid ""
31232 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
31233 "libguestfs won't modify the file."
31234 msgstr ""
31235
31236 #. type: textblock
31237 #: ../src/guestfs.pod:147
31238 msgid ""
31239 "Be extremely cautious if the disk image is in use, eg. if it is being used "
31240 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
31241 "corruption, but adding it read-only is safe."
31242 msgstr ""
31243
31244 #. type: textblock
31245 #: ../src/guestfs.pod:151
31246 msgid ""
31247 "You must add at least one disk image, and you may add multiple disk images.  "
31248 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
31249 "first one you added), C</dev/sdb> (for the second one you added), etc."
31250 msgstr ""
31251
31252 #. type: textblock
31253 #: ../src/guestfs.pod:156
31254 msgid ""
31255 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
31256 "can call L</guestfs_list_devices> to get a list of the device names, in the "
31257 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
31258 msgstr ""
31259
31260 #. type: =head2
31261 #: ../src/guestfs.pod:161
31262 msgid "MOUNTING"
31263 msgstr ""
31264
31265 #. type: textblock
31266 #: ../src/guestfs.pod:163
31267 msgid ""
31268 "Before you can read or write files, create directories and so on in a disk "
31269 "image that contains filesystems, you have to mount those filesystems using "
31270 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
31271 "a disk image contains (for example) one partition with a filesystem on that "
31272 "partition, then you can mount it directly:"
31273 msgstr ""
31274
31275 #. type: verbatim
31276 #: ../src/guestfs.pod:170
31277 #, no-wrap
31278 msgid ""
31279 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
31280 "\n"
31281 msgstr ""
31282
31283 #. type: textblock
31284 #: ../src/guestfs.pod:172
31285 msgid ""
31286 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
31287 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
31288 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
31289 "that these are libguestfs virtual devices, and are nothing to do with host "
31290 "devices."
31291 msgstr ""
31292
31293 #. type: textblock
31294 #: ../src/guestfs.pod:178
31295 msgid ""
31296 "If you are given a disk image and you don't know what it contains then you "
31297 "have to find out.  Libguestfs can do that too: use L</"
31298 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
31299 "LVs, and either try mounting each to see what is mountable, or else examine "
31300 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
31301 "filesystems, use L</guestfs_list_filesystems>."
31302 msgstr ""
31303
31304 #. type: textblock
31305 #: ../src/guestfs.pod:186
31306 msgid ""
31307 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
31308 "L</INSPECTION> below).  But you might find it easier to look at higher level "
31309 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
31310 msgstr ""
31311
31312 #. type: textblock
31313 #: ../src/guestfs.pod:191
31314 msgid ""
31315 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
31316 "several other variations of the C<guestfs_mount_*> call."
31317 msgstr ""
31318
31319 #. type: =head2
31320 #: ../src/guestfs.pod:194
31321 msgid "FILESYSTEM ACCESS AND MODIFICATION"
31322 msgstr ""
31323
31324 #. type: textblock
31325 #: ../src/guestfs.pod:196
31326 msgid ""
31327 "The majority of the libguestfs API consists of fairly low-level calls for "
31328 "accessing and modifying the files, directories, symlinks etc on mounted "
31329 "filesystems.  There are over a hundred such calls which you can find listed "
31330 "in detail below in this man page, and we don't even pretend to cover them "
31331 "all in this overview."
31332 msgstr ""
31333
31334 #. type: textblock
31335 #: ../src/guestfs.pod:202
31336 msgid ""
31337 "Specify filenames as full paths, starting with C<\"/\"> and including the "
31338 "mount point."
31339 msgstr ""
31340
31341 #. type: textblock
31342 #: ../src/guestfs.pod:205
31343 msgid ""
31344 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
31345 "the file called C<\"etc/passwd\"> then you could do:"
31346 msgstr ""
31347
31348 #. type: verbatim
31349 #: ../src/guestfs.pod:208
31350 #, no-wrap
31351 msgid ""
31352 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
31353 "\n"
31354 msgstr ""
31355
31356 #. type: textblock
31357 #: ../src/guestfs.pod:210
31358 msgid ""
31359 "This would return C<data> as a newly allocated buffer containing the full "
31360 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
31361 "or C<NULL> if there was an error."
31362 msgstr ""
31363
31364 #. type: textblock
31365 #: ../src/guestfs.pod:214
31366 msgid ""
31367 "As another example, to create a top-level directory on that filesystem "
31368 "called C<\"var\"> you would do:"
31369 msgstr ""
31370
31371 #. type: verbatim
31372 #: ../src/guestfs.pod:217
31373 #, no-wrap
31374 msgid ""
31375 " guestfs_mkdir (g, \"/var\");\n"
31376 "\n"
31377 msgstr ""
31378
31379 #. type: textblock
31380 #: ../src/guestfs.pod:219
31381 msgid "To create a symlink you could do:"
31382 msgstr ""
31383
31384 #. type: verbatim
31385 #: ../src/guestfs.pod:221
31386 #, no-wrap
31387 msgid ""
31388 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
31389 "               \"/etc/rc3.d/S30portmap\");\n"
31390 "\n"
31391 msgstr ""
31392
31393 #. type: textblock
31394 #: ../src/guestfs.pod:224
31395 msgid ""
31396 "Libguestfs will reject attempts to use relative paths and there is no "
31397 "concept of a current working directory."
31398 msgstr ""
31399
31400 #. type: textblock
31401 #: ../src/guestfs.pod:227
31402 msgid ""
31403 "Libguestfs can return errors in many situations: for example if the "
31404 "filesystem isn't writable, or if a file or directory that you requested "
31405 "doesn't exist.  If you are using the C API (documented here)  you have to "
31406 "check for those error conditions after each call.  (Other language bindings "
31407 "turn these errors into exceptions)."
31408 msgstr ""
31409
31410 #. type: textblock
31411 #: ../src/guestfs.pod:233
31412 msgid ""
31413 "File writes are affected by the per-handle umask, set by calling L</"
31414 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
31415 msgstr ""
31416
31417 #. type: =head2
31418 #: ../src/guestfs.pod:236
31419 msgid "PARTITIONING"
31420 msgstr ""
31421
31422 #. type: textblock
31423 #: ../src/guestfs.pod:238
31424 msgid ""
31425 "Libguestfs contains API calls to read, create and modify partition tables on "
31426 "disk images."
31427 msgstr ""
31428
31429 #. type: textblock
31430 #: ../src/guestfs.pod:241
31431 msgid ""
31432 "In the common case where you want to create a single partition covering the "
31433 "whole disk, you should use the L</guestfs_part_disk> call:"
31434 msgstr ""
31435
31436 #. type: verbatim
31437 #: ../src/guestfs.pod:245
31438 #, no-wrap
31439 msgid ""
31440 " const char *parttype = \"mbr\";\n"
31441 " if (disk_is_larger_than_2TB)\n"
31442 "   parttype = \"gpt\";\n"
31443 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
31444 "\n"
31445 msgstr ""
31446
31447 #. type: textblock
31448 #: ../src/guestfs.pod:250
31449 msgid ""
31450 "Obviously this effectively wipes anything that was on that disk image before."
31451 msgstr ""
31452
31453 #. type: =head2
31454 #: ../src/guestfs.pod:253
31455 msgid "LVM2"
31456 msgstr ""
31457
31458 #. type: textblock
31459 #: ../src/guestfs.pod:255
31460 msgid ""
31461 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
31462 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
31463 "you familiarize yourself with the concepts of physical volumes, volume "
31464 "groups and logical volumes."
31465 msgstr ""
31466
31467 #. type: textblock
31468 #: ../src/guestfs.pod:260
31469 msgid ""
31470 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
31471 "tldp.org/HOWTO/LVM-HOWTO/>."
31472 msgstr ""
31473
31474 #. type: =head2
31475 #: ../src/guestfs.pod:263
31476 msgid "DOWNLOADING"
31477 msgstr ""
31478
31479 #. type: textblock
31480 #: ../src/guestfs.pod:265
31481 msgid ""
31482 "Use L</guestfs_cat> to download small, text only files.  This call is "
31483 "limited to files which are less than 2 MB and which cannot contain any ASCII "
31484 "NUL (C<\\0>) characters.  However the API is very simple to use."
31485 msgstr ""
31486
31487 #. type: textblock
31488 #: ../src/guestfs.pod:269
31489 msgid ""
31490 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
31491 "bit data, since it returns a (pointer, size) pair.  However it is still "
31492 "limited to \"small\" files, less than 2 MB."
31493 msgstr ""
31494
31495 #. type: textblock
31496 #: ../src/guestfs.pod:273
31497 msgid ""
31498 "L</guestfs_download> can be used to download any file, with no limits on "
31499 "content or size (even files larger than 4 GB)."
31500 msgstr ""
31501
31502 #. type: textblock
31503 #: ../src/guestfs.pod:276
31504 msgid ""
31505 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
31506 msgstr ""
31507
31508 #. type: =head2
31509 #: ../src/guestfs.pod:279
31510 msgid "UPLOADING"
31511 msgstr ""
31512
31513 #. type: textblock
31514 #: ../src/guestfs.pod:281
31515 msgid ""
31516 "It's often the case that you want to write a file or files to the disk image."
31517 msgstr ""
31518
31519 #. type: textblock
31520 #: ../src/guestfs.pod:284
31521 msgid ""
31522 "To write a small file with fixed content, use L</guestfs_write>.  To create "
31523 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
31524 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
31525 "of other functions for creating test files, for example L</guestfs_fill> and "
31526 "L</guestfs_fill_pattern>."
31527 msgstr ""
31528
31529 #. type: textblock
31530 #: ../src/guestfs.pod:290
31531 msgid ""
31532 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
31533 "file content or size (even files larger than 4 GB)."
31534 msgstr ""
31535
31536 #. type: textblock
31537 #: ../src/guestfs.pod:293
31538 msgid ""
31539 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
31540 msgstr ""
31541
31542 #. type: textblock
31543 #: ../src/guestfs.pod:295
31544 msgid ""
31545 "However the fastest way to upload I<large numbers of arbitrary files> is to "
31546 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
31547 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
31548 "in a predictable way (eg. adding it last after all other drives) then you "
31549 "can get the device name from L</guestfs_list_devices> and mount it directly "
31550 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
31551 "portable between kernel versions, and they don't support labels or UUIDs.  "
31552 "If you want to pre-build an image or you need to mount it using a label or "
31553 "UUID, use an ISO image instead."
31554 msgstr ""
31555
31556 #. type: =head2
31557 #: ../src/guestfs.pod:306
31558 msgid "COPYING"
31559 msgstr ""
31560
31561 #. type: textblock
31562 #: ../src/guestfs.pod:308
31563 msgid ""
31564 "There are various different commands for copying between files and devices "
31565 "and in and out of the guest filesystem.  These are summarised in the table "
31566 "below."
31567 msgstr ""
31568
31569 #. type: =item
31570 #: ../src/guestfs.pod:314
31571 msgid "B<file> to B<file>"
31572 msgstr ""
31573
31574 #. type: textblock
31575 #: ../src/guestfs.pod:316
31576 msgid ""
31577 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
31578 "directories recursively."
31579 msgstr ""
31580
31581 #. type: =item
31582 #: ../src/guestfs.pod:319
31583 msgid "B<file or device> to B<file or device>"
31584 msgstr ""
31585
31586 #. type: textblock
31587 #: ../src/guestfs.pod:321
31588 msgid ""
31589 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
31590 "devices in the guest."
31591 msgstr ""
31592
31593 #. type: textblock
31594 #: ../src/guestfs.pod:324
31595 msgid "Example: duplicate the contents of an LV:"
31596 msgstr ""
31597
31598 #. type: verbatim
31599 #: ../src/guestfs.pod:326
31600 #, no-wrap
31601 msgid ""
31602 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
31603 "\n"
31604 msgstr ""
31605
31606 #. type: textblock
31607 #: ../src/guestfs.pod:328
31608 msgid ""
31609 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
31610 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
31611 "guestfs_copy_size>."
31612 msgstr ""
31613
31614 #. type: =item
31615 #: ../src/guestfs.pod:332
31616 msgid "B<file on the host> to B<file or device>"
31617 msgstr ""
31618
31619 #. type: textblock
31620 #: ../src/guestfs.pod:334
31621 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
31622 msgstr ""
31623
31624 #. type: =item
31625 #: ../src/guestfs.pod:336
31626 msgid "B<file or device> to B<file on the host>"
31627 msgstr ""
31628
31629 #. type: textblock
31630 #: ../src/guestfs.pod:338
31631 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
31632 msgstr ""
31633
31634 #. type: =head2
31635 #: ../src/guestfs.pod:342
31636 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
31637 msgstr ""
31638
31639 #. type: textblock
31640 #: ../src/guestfs.pod:344
31641 msgid ""
31642 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
31643 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
31644 "appears you can only upload and download to files.  However many Un*x-like "
31645 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
31646 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
31647 "and arbitrary file descriptor N."
31648 msgstr ""
31649
31650 #. type: textblock
31651 #: ../src/guestfs.pod:352
31652 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
31653 msgstr ""
31654
31655 #. type: verbatim
31656 #: ../src/guestfs.pod:355
31657 #, no-wrap
31658 msgid ""
31659 " guestfs_download (g, filename, \"/dev/stdout\");\n"
31660 "\n"
31661 msgstr ""
31662
31663 #. type: textblock
31664 #: ../src/guestfs.pod:357
31665 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
31666 msgstr ""
31667
31668 #. type: verbatim
31669 #: ../src/guestfs.pod:359
31670 #, no-wrap
31671 msgid ""
31672 " char devfd[64];\n"
31673 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
31674 " guestfs_tar_out (g, \"/\", devfd);\n"
31675 "\n"
31676 msgstr ""
31677
31678 #. type: =head2
31679 #: ../src/guestfs.pod:363
31680 msgid "LISTING FILES"
31681 msgstr ""
31682
31683 #. type: textblock
31684 #: ../src/guestfs.pod:365
31685 msgid ""
31686 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
31687 "L<guestfish(1)>-equivalent command C<ll>)."
31688 msgstr ""
31689
31690 #. type: textblock
31691 #: ../src/guestfs.pod:368
31692 msgid ""
31693 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
31694 "programs, as a flat list of strings."
31695 msgstr ""
31696
31697 #. type: textblock
31698 #: ../src/guestfs.pod:371
31699 msgid ""
31700 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
31701 "directory, plus additional information about each one.  It is more "
31702 "equivalent to using the L<readdir(3)> call on a local filesystem."
31703 msgstr ""
31704
31705 #. type: textblock
31706 #: ../src/guestfs.pod:375
31707 msgid ""
31708 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
31709 msgstr ""
31710
31711 #. type: =head2
31712 #: ../src/guestfs.pod:378
31713 msgid "RUNNING COMMANDS"
31714 msgstr ""
31715
31716 #. type: textblock
31717 #: ../src/guestfs.pod:380
31718 msgid ""
31719 "Although libguestfs is primarily an API for manipulating files inside guest "
31720 "images, we also provide some limited facilities for running commands inside "
31721 "guests."
31722 msgstr ""
31723
31724 #. type: textblock
31725 #: ../src/guestfs.pod:384
31726 msgid "There are many limitations to this:"
31727 msgstr ""
31728
31729 #. type: textblock
31730 #: ../src/guestfs.pod:390
31731 msgid ""
31732 "The kernel version that the command runs under will be different from what "
31733 "it expects."
31734 msgstr ""
31735
31736 #. type: textblock
31737 #: ../src/guestfs.pod:395
31738 msgid ""
31739 "If the command needs to communicate with daemons, then most likely they "
31740 "won't be running."
31741 msgstr ""
31742
31743 #. type: textblock
31744 #: ../src/guestfs.pod:400
31745 msgid "The command will be running in limited memory."
31746 msgstr ""
31747
31748 #. type: textblock
31749 #: ../src/guestfs.pod:404
31750 msgid ""
31751 "The network may not be available unless you enable it (see L</"
31752 "guestfs_set_network>)."
31753 msgstr ""
31754
31755 #. type: textblock
31756 #: ../src/guestfs.pod:409
31757 msgid "Only supports Linux guests (not Windows, BSD, etc)."
31758 msgstr ""
31759
31760 #. type: textblock
31761 #: ../src/guestfs.pod:413
31762 msgid ""
31763 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
31764 msgstr ""
31765
31766 #. type: textblock
31767 #: ../src/guestfs.pod:418
31768 msgid ""
31769 "For SELinux guests, you may need to enable SELinux and load policy first.  "
31770 "See L</SELINUX> in this manpage."
31771 msgstr ""
31772
31773 #. type: textblock
31774 #: ../src/guestfs.pod:423
31775 msgid ""
31776 "I<Security:> It is not safe to run commands from untrusted, possibly "
31777 "malicious guests.  These commands may attempt to exploit your program by "
31778 "sending unexpected output.  They could also try to exploit the Linux kernel "
31779 "or qemu provided by the libguestfs appliance.  They could use the network "
31780 "provided by the libguestfs appliance to bypass ordinary network partitions "
31781 "and firewalls.  They could use the elevated privileges or different SELinux "
31782 "context of your program to their advantage."
31783 msgstr ""
31784
31785 #. type: textblock
31786 #: ../src/guestfs.pod:432
31787 msgid ""
31788 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
31789 "(a script which runs when the guest next boots normally), and to have this "
31790 "script run the commands you want in the normal context of the running guest, "
31791 "network security and so on.  For information about other security issues, "
31792 "see L</SECURITY>."
31793 msgstr ""
31794
31795 #. type: textblock
31796 #: ../src/guestfs.pod:440
31797 msgid ""
31798 "The two main API calls to run commands are L</guestfs_command> and L</"
31799 "guestfs_sh> (there are also variations)."
31800 msgstr ""
31801
31802 #. type: textblock
31803 #: ../src/guestfs.pod:443
31804 msgid ""
31805 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
31806 "shell globs, redirections, etc will work."
31807 msgstr ""
31808
31809 #. type: =head2
31810 #: ../src/guestfs.pod:446
31811 msgid "CONFIGURATION FILES"
31812 msgstr ""
31813
31814 #. type: textblock
31815 #: ../src/guestfs.pod:448
31816 msgid ""
31817 "To read and write configuration files in Linux guest filesystems, we "
31818 "strongly recommend using Augeas.  For example, Augeas understands how to "
31819 "read and write, say, a Linux shadow password file or X.org configuration "
31820 "file, and so avoids you having to write that code."
31821 msgstr ""
31822
31823 #. type: textblock
31824 #: ../src/guestfs.pod:453
31825 msgid ""
31826 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
31827 "document Augeas itself here because there is excellent documentation on the "
31828 "L<http://augeas.net/> website."
31829 msgstr ""
31830
31831 #. type: textblock
31832 #: ../src/guestfs.pod:457
31833 msgid ""
31834 "If you don't want to use Augeas (you fool!) then try calling L</"
31835 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
31836 "over."
31837 msgstr ""
31838
31839 #. type: =head2
31840 #: ../src/guestfs.pod:461
31841 msgid "SELINUX"
31842 msgstr ""
31843
31844 #. type: textblock
31845 #: ../src/guestfs.pod:463
31846 msgid ""
31847 "We support SELinux guests.  To ensure that labeling happens correctly in "
31848 "SELinux guests, you need to enable SELinux and load the guest's policy:"
31849 msgstr ""
31850
31851 #. type: textblock
31852 #: ../src/guestfs.pod:471
31853 msgid "Before launching, do:"
31854 msgstr ""
31855
31856 #. type: verbatim
31857 #: ../src/guestfs.pod:473
31858 #, no-wrap
31859 msgid ""
31860 " guestfs_set_selinux (g, 1);\n"
31861 "\n"
31862 msgstr ""
31863
31864 #. type: textblock
31865 #: ../src/guestfs.pod:477
31866 msgid ""
31867 "After mounting the guest's filesystem(s), load the policy.  This is best "
31868 "done by running the L<load_policy(8)> command in the guest itself:"
31869 msgstr ""
31870
31871 #. type: verbatim
31872 #: ../src/guestfs.pod:481
31873 #, no-wrap
31874 msgid ""
31875 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
31876 "\n"
31877 msgstr ""
31878
31879 #. type: textblock
31880 #: ../src/guestfs.pod:483
31881 msgid ""
31882 "(Older versions of C<load_policy> require you to specify the name of the "
31883 "policy file)."
31884 msgstr ""
31885
31886 #. type: textblock
31887 #: ../src/guestfs.pod:488
31888 msgid ""
31889 "Optionally, set the security context for the API.  The correct security "
31890 "context to use can only be known by inspecting the guest.  As an example:"
31891 msgstr ""
31892
31893 #. type: verbatim
31894 #: ../src/guestfs.pod:492
31895 #, no-wrap
31896 msgid ""
31897 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
31898 "\n"
31899 msgstr ""
31900
31901 #. type: textblock
31902 #: ../src/guestfs.pod:496
31903 msgid "This will work for running commands and editing existing files."
31904 msgstr ""
31905
31906 #. type: textblock
31907 #: ../src/guestfs.pod:498
31908 msgid ""
31909 "When new files are created, you may need to label them explicitly, for "
31910 "example by running the external command C<restorecon pathname>."
31911 msgstr ""
31912
31913 #. type: =head2
31914 #: ../src/guestfs.pod:502
31915 msgid "UMASK"
31916 msgstr ""
31917
31918 #. type: textblock
31919 #: ../src/guestfs.pod:504
31920 msgid ""
31921 "Certain calls are affected by the current file mode creation mask (the "
31922 "\"umask\").  In particular ones which create files or directories, such as "
31923 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
31924 "either the default mode that the file is created with or modifies the mode "
31925 "that you supply."
31926 msgstr ""
31927
31928 #. type: textblock
31929 #: ../src/guestfs.pod:510
31930 msgid ""
31931 "The default umask is C<022>, so files are created with modes such as C<0644> "
31932 "and directories with C<0755>."
31933 msgstr ""
31934
31935 #. type: textblock
31936 #: ../src/guestfs.pod:513
31937 msgid ""
31938 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
31939 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
31940 "guestfs_chmod> after creating each file or directory."
31941 msgstr ""
31942
31943 #. type: textblock
31944 #: ../src/guestfs.pod:517
31945 msgid "For more information about umask, see L<umask(2)>."
31946 msgstr ""
31947
31948 #. type: textblock
31949 #: ../src/guestfs.pod:521
31950 msgid ""
31951 "Libguestfs allows you to access Linux guests which have been encrypted using "
31952 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
31953 "standard.  This includes nearly all whole disk encryption systems used by "
31954 "modern Linux guests."
31955 msgstr ""
31956
31957 #. type: textblock
31958 #: ../src/guestfs.pod:527
31959 msgid ""
31960 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
31961 "returns the string C<crypto_LUKS>)."
31962 msgstr ""
31963
31964 #. type: textblock
31965 #: ../src/guestfs.pod:530
31966 msgid ""
31967 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
31968 "will require the passphrase!"
31969 msgstr ""
31970
31971 #. type: textblock
31972 #: ../src/guestfs.pod:533
31973 msgid ""
31974 "Opening a LUKS device creates a new device mapper device called C</dev/"
31975 "mapper/mapname> (where C<mapname> is the string you supply to L</"
31976 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
31977 "from and encrypted to the underlying block device respectively."
31978 msgstr ""
31979
31980 #. type: textblock
31981 #: ../src/guestfs.pod:539
31982 msgid ""
31983 "LVM volume groups on the device can be made visible by calling L</"
31984 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
31985 "(s) can now be mounted in the usual way."
31986 msgstr ""
31987
31988 #. type: textblock
31989 #: ../src/guestfs.pod:543
31990 msgid ""
31991 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
31992 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
31993 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
31994 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
31995 "underlying encrypted block device)."
31996 msgstr ""
31997
31998 #. type: =head2
31999 #: ../src/guestfs.pod:550
32000 msgid "INSPECTION"
32001 msgstr ""
32002
32003 #. type: textblock
32004 #: ../src/guestfs.pod:552
32005 msgid ""
32006 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
32007 "contains operating systems, an install CD or a live CD.  (These APIs used to "
32008 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
32009 "version 1.5.3 the most frequently used part of this library has been "
32010 "rewritten in C and moved into the core code)."
32011 msgstr ""
32012
32013 #. type: textblock
32014 #: ../src/guestfs.pod:559
32015 msgid ""
32016 "Add all disks belonging to the unknown virtual machine and call L</"
32017 "guestfs_launch> in the usual way."
32018 msgstr ""
32019
32020 #. type: textblock
32021 #: ../src/guestfs.pod:562
32022 msgid ""
32023 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
32024 "and certain heuristics, and returns a list of operating systems that were "
32025 "found.  An empty list means none were found.  A single element is the root "
32026 "filesystem of the operating system.  For dual- or multi-boot guests, "
32027 "multiple roots can be returned, each one corresponding to a separate "
32028 "operating system.  (Multi-boot virtual machines are extremely rare in the "
32029 "world of virtualization, but since this scenario can happen, we have built "
32030 "libguestfs to deal with it.)"
32031 msgstr ""
32032
32033 #. type: textblock
32034 #: ../src/guestfs.pod:571
32035 msgid ""
32036 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
32037 "to get additional details about that operating system.  For example, call L</"
32038 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
32039 "Windows and Linux-based operating systems respectively."
32040 msgstr ""
32041
32042 #. type: textblock
32043 #: ../src/guestfs.pod:577
32044 msgid ""
32045 "Un*x-like and Linux-based operating systems usually consist of several "
32046 "filesystems which are mounted at boot time (for example, a separate boot "
32047 "partition mounted on C</boot>).  The inspection rules are able to detect how "
32048 "filesystems correspond to mount points.  Call "
32049 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
32050 "hash table like this example:"
32051 msgstr ""
32052
32053 #. type: verbatim
32054 #: ../src/guestfs.pod:584
32055 #, no-wrap
32056 msgid ""
32057 " /boot => /dev/sda1\n"
32058 " /     => /dev/vg_guest/lv_root\n"
32059 " /usr  => /dev/vg_guest/lv_usr\n"
32060 "\n"
32061 msgstr ""
32062
32063 #. type: textblock
32064 #: ../src/guestfs.pod:588
32065 msgid ""
32066 "The caller can then make calls to L</guestfs_mount_options> to mount the "
32067 "filesystems as suggested."
32068 msgstr ""
32069
32070 #. type: textblock
32071 #: ../src/guestfs.pod:591
32072 msgid ""
32073 "Be careful to mount filesystems in the right order (eg. C</> before C</"
32074 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
32075 msgstr ""
32076
32077 #. type: textblock
32078 #: ../src/guestfs.pod:595
32079 msgid ""
32080 "Inspection currently only works for some common operating systems.  "
32081 "Contributors are welcome to send patches for other operating systems that we "
32082 "currently cannot detect."
32083 msgstr ""
32084
32085 #. type: textblock
32086 #: ../src/guestfs.pod:599
32087 msgid ""
32088 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
32089 "for more details.  The L</guestfs_inspect_os> function just ignores any "
32090 "encrypted devices."
32091 msgstr ""
32092
32093 #. type: textblock
32094 #: ../src/guestfs.pod:603
32095 msgid ""
32096 "A note on the implementation: The call L</guestfs_inspect_os> performs "
32097 "inspection and caches the results in the guest handle.  Subsequent calls to "
32098 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
32099 "read the disks.  If you change the content of the guest disks, you can redo "
32100 "inspection by calling L</guestfs_inspect_os> again.  (L</"
32101 "guestfs_inspect_list_applications> works a little differently from the other "
32102 "calls and does read the disks.  See documentation for that function for "
32103 "details)."
32104 msgstr ""
32105
32106 #. type: =head3
32107 #: ../src/guestfs.pod:612
32108 msgid "INSPECTING INSTALL DISKS"
32109 msgstr ""
32110
32111 #. type: textblock
32112 #: ../src/guestfs.pod:614
32113 msgid ""
32114 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
32115 "CDs and more."
32116 msgstr ""
32117
32118 #. type: textblock
32119 #: ../src/guestfs.pod:617
32120 msgid ""
32121 "Call L</guestfs_inspect_get_format> to return the format of the operating "
32122 "system, which currently can be C<installed> (a regular operating system) or "
32123 "C<installer> (some sort of install disk)."
32124 msgstr ""
32125
32126 #. type: textblock
32127 #: ../src/guestfs.pod:621
32128 msgid ""
32129 "Further information is available about the operating system that can be "
32130 "installed using the regular inspection APIs like L</"
32131 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
32132 msgstr ""
32133
32134 #. type: textblock
32135 #: ../src/guestfs.pod:626
32136 msgid ""
32137 "Some additional information specific to installer disks is also available "
32138 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
32139 "guestfs_inspect_is_multipart> calls."
32140 msgstr ""
32141
32142 #. type: =head2
32143 #: ../src/guestfs.pod:631
32144 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
32145 msgstr ""
32146
32147 #. type: textblock
32148 #: ../src/guestfs.pod:633
32149 msgid ""
32150 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
32151 "ntfs-3g.org/> driver."
32152 msgstr ""
32153
32154 #. type: =head3
32155 #: ../src/guestfs.pod:636
32156 msgid "DRIVE LETTERS AND PATHS"
32157 msgstr ""
32158
32159 #. type: textblock
32160 #: ../src/guestfs.pod:638
32161 msgid ""
32162 "DOS and Windows still use drive letters, and the filesystems are always "
32163 "treated as case insensitive by Windows itself, and therefore you might find "
32164 "a Windows configuration file referring to a path like C<c:\\windows"
32165 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
32166 "might be referred to as C</WINDOWS/System32>."
32167 msgstr ""
32168
32169 #. type: textblock
32170 #: ../src/guestfs.pod:644
32171 msgid ""
32172 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
32173 "L</guestfs_inspect_get_drive_mappings>)"
32174 msgstr ""
32175
32176 #. type: textblock
32177 #: ../src/guestfs.pod:647
32178 msgid ""
32179 "Dealing with separator characters (backslash vs forward slash) is outside "
32180 "the scope of libguestfs, but usually a simple character replacement will "
32181 "work."
32182 msgstr ""
32183
32184 #. type: textblock
32185 #: ../src/guestfs.pod:651
32186 msgid ""
32187 "To resolve the case insensitivity of paths, call L</"
32188 "guestfs_case_sensitive_path>."
32189 msgstr ""
32190
32191 #. type: =head3
32192 #: ../src/guestfs.pod:654
32193 msgid "ACCESSING THE WINDOWS REGISTRY"
32194 msgstr ""
32195
32196 #. type: textblock
32197 #: ../src/guestfs.pod:656
32198 msgid ""
32199 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
32200 "files, through the library C<hivex> which is part of the libguestfs project "
32201 "although ships as a separate tarball.  You have to locate and download the "
32202 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
32203 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
32204 "reg(1)> for more help on this issue."
32205 msgstr ""
32206
32207 #. type: =head3
32208 #: ../src/guestfs.pod:664
32209 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
32210 msgstr ""
32211
32212 #. type: textblock
32213 #: ../src/guestfs.pod:666
32214 msgid ""
32215 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
32216 "provide something which looks like a Linux symlink.  The way it tries to do "
32217 "the rewriting is described here:"
32218 msgstr ""
32219
32220 #. type: textblock
32221 #: ../src/guestfs.pod:670
32222 msgid ""
32223 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
32224 "symbolic-links/>"
32225 msgstr ""
32226
32227 #. type: textblock
32228 #: ../src/guestfs.pod:672
32229 msgid ""
32230 "The essential problem is that ntfs-3g simply does not have enough "
32231 "information to do a correct job.  NTFS links can contain drive letters and "
32232 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
32233 "It is almost certainly the case that libguestfs callers should ignore what "
32234 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
32235 msgstr ""
32236
32237 #. type: textblock
32238 #: ../src/guestfs.pod:679
32239 msgid ""
32240 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
32241 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
32242 "attribute, and read the raw reparse data from that (you can find the format "
32243 "documented in various places around the web)."
32244 msgstr ""
32245
32246 #. type: =head3
32247 #: ../src/guestfs.pod:684
32248 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
32249 msgstr ""
32250
32251 #. type: textblock
32252 #: ../src/guestfs.pod:686
32253 msgid ""
32254 "There are other useful extended attributes that can be read from ntfs-3g "
32255 "filesystems (using L</guestfs_getxattr>).  See:"
32256 msgstr ""
32257
32258 #. type: textblock
32259 #: ../src/guestfs.pod:689
32260 msgid ""
32261 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
32262 msgstr ""
32263
32264 #. type: =head2
32265 #: ../src/guestfs.pod:691
32266 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
32267 msgstr ""
32268
32269 #. type: textblock
32270 #: ../src/guestfs.pod:693
32271 msgid ""
32272 "Although we don't want to discourage you from using the C API, we will "
32273 "mention here that the same API is also available in other languages."
32274 msgstr ""
32275
32276 #. type: textblock
32277 #: ../src/guestfs.pod:696
32278 msgid ""
32279 "The API is broadly identical in all supported languages.  This means that "
32280 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
32281 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
32282 "OCaml.  In other words, a straightforward, predictable isomorphism between "
32283 "each language."
32284 msgstr ""
32285
32286 #. type: textblock
32287 #: ../src/guestfs.pod:702
32288 msgid ""
32289 "Error messages are automatically transformed into exceptions if the language "
32290 "supports it."
32291 msgstr ""
32292
32293 #. type: textblock
32294 #: ../src/guestfs.pod:705
32295 msgid ""
32296 "We don't try to \"object orientify\" parts of the API in OO languages, "
32297 "although contributors are welcome to write higher level APIs above what we "
32298 "provide in their favourite languages if they wish."
32299 msgstr ""
32300
32301 #. type: =item
32302 #: ../src/guestfs.pod:711
32303 msgid "B<C++>"
32304 msgstr ""
32305
32306 #. type: textblock
32307 #: ../src/guestfs.pod:713
32308 msgid ""
32309 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
32310 "identical to the C API.  C++ classes and exceptions are not used."
32311 msgstr ""
32312
32313 #. type: =item
32314 #: ../src/guestfs.pod:717
32315 msgid "B<C#>"
32316 msgstr ""
32317
32318 #. type: textblock
32319 #: ../src/guestfs.pod:719
32320 msgid ""
32321 "The C# bindings are highly experimental.  Please read the warnings at the "
32322 "top of C<csharp/Libguestfs.cs>."
32323 msgstr ""
32324
32325 #. type: =item
32326 #: ../src/guestfs.pod:722
32327 msgid "B<Haskell>"
32328 msgstr ""
32329
32330 #. type: textblock
32331 #: ../src/guestfs.pod:724
32332 msgid ""
32333 "This is the only language binding that is working but incomplete.  Only "
32334 "calls which return simple integers have been bound in Haskell, and we are "
32335 "looking for help to complete this binding."
32336 msgstr ""
32337
32338 #. type: =item
32339 #: ../src/guestfs.pod:728
32340 msgid "B<Java>"
32341 msgstr ""
32342
32343 #. type: textblock
32344 #: ../src/guestfs.pod:730
32345 msgid ""
32346 "Full documentation is contained in the Javadoc which is distributed with "
32347 "libguestfs.  For examples, see L<guestfs-java(3)>."
32348 msgstr ""
32349
32350 #. type: =item
32351 #: ../src/guestfs.pod:733
32352 msgid "B<OCaml>"
32353 msgstr ""
32354
32355 #. type: textblock
32356 #: ../src/guestfs.pod:735
32357 msgid "See L<guestfs-ocaml(3)>."
32358 msgstr ""
32359
32360 #. type: =item
32361 #: ../src/guestfs.pod:737
32362 msgid "B<Perl>"
32363 msgstr ""
32364
32365 #. type: textblock
32366 #: ../src/guestfs.pod:739
32367 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
32368 msgstr ""
32369
32370 #. type: =item
32371 #: ../src/guestfs.pod:741
32372 msgid "B<PHP>"
32373 msgstr ""
32374
32375 #. type: textblock
32376 #: ../src/guestfs.pod:743
32377 msgid ""
32378 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
32379 "the php-libguestfs package for your distribution."
32380 msgstr ""
32381
32382 #. type: textblock
32383 #: ../src/guestfs.pod:746
32384 msgid "The PHP binding only works correctly on 64 bit machines."
32385 msgstr ""
32386
32387 #. type: =item
32388 #: ../src/guestfs.pod:748
32389 msgid "B<Python>"
32390 msgstr ""
32391
32392 #. type: textblock
32393 #: ../src/guestfs.pod:750
32394 msgid "See L<guestfs-python(3)>."
32395 msgstr ""
32396
32397 #. type: =item
32398 #: ../src/guestfs.pod:752
32399 msgid "B<Ruby>"
32400 msgstr ""
32401
32402 #. type: textblock
32403 #: ../src/guestfs.pod:754
32404 msgid "See L<guestfs-ruby(3)>."
32405 msgstr ""
32406
32407 #. type: =item
32408 #: ../src/guestfs.pod:756
32409 msgid "B<shell scripts>"
32410 msgstr ""
32411
32412 #. type: textblock
32413 #: ../src/guestfs.pod:758
32414 msgid "See L<guestfish(1)>."
32415 msgstr ""
32416
32417 #. type: =head2
32418 #: ../src/guestfs.pod:762
32419 msgid "LIBGUESTFS GOTCHAS"
32420 msgstr ""
32421
32422 #. type: textblock
32423 #: ../src/guestfs.pod:764
32424 msgid ""
32425 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
32426 "system [...] that works in the way it is documented but is counterintuitive "
32427 "and almost invites mistakes.\""
32428 msgstr ""
32429
32430 #. type: textblock
32431 #: ../src/guestfs.pod:768
32432 msgid ""
32433 "Since we developed libguestfs and the associated tools, there are several "
32434 "things we would have designed differently, but are now stuck with for "
32435 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
32436 "release, you can expect these to change.  Beware of them."
32437 msgstr ""
32438
32439 #. type: =item
32440 #: ../src/guestfs.pod:776
32441 msgid "Autosync / forgetting to sync."
32442 msgstr ""
32443
32444 #. type: textblock
32445 #: ../src/guestfs.pod:778
32446 msgid ""
32447 "I<Update:> Autosync is enabled by default for all API users starting from "
32448 "libguestfs 1.5.24.  This section only applies to older versions."
32449 msgstr ""
32450
32451 #. type: textblock
32452 #: ../src/guestfs.pod:781
32453 msgid ""
32454 "When modifying a filesystem from C or another language, you B<must> unmount "
32455 "all filesystems and call L</guestfs_sync> explicitly before you close the "
32456 "libguestfs handle.  You can also call:"
32457 msgstr ""
32458
32459 #. type: verbatim
32460 #: ../src/guestfs.pod:785
32461 #, no-wrap
32462 msgid ""
32463 " guestfs_set_autosync (g, 1);\n"
32464 "\n"
32465 msgstr ""
32466
32467 #. type: textblock
32468 #: ../src/guestfs.pod:787
32469 msgid ""
32470 "to have the unmount/sync done automatically for you when the handle 'g' is "
32471 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
32472 msgstr ""
32473
32474 #. type: textblock
32475 #: ../src/guestfs.pod:791
32476 msgid ""
32477 "If you forget to do this, then it is entirely possible that your changes "
32478 "won't be written out, or will be partially written, or (very rarely) that "
32479 "you'll get disk corruption."
32480 msgstr ""
32481
32482 #. type: textblock
32483 #: ../src/guestfs.pod:795
32484 msgid ""
32485 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
32486 "guestfish scripts that forget to sync will work just fine, which can make "
32487 "this very puzzling if you are trying to debug a problem."
32488 msgstr ""
32489
32490 #. type: =item
32491 #: ../src/guestfs.pod:799
32492 msgid "Mount option C<-o sync> should not be the default."
32493 msgstr ""
32494
32495 #. type: textblock
32496 #: ../src/guestfs.pod:801
32497 msgid ""
32498 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
32499 "However C<-o sync> does not add any reliability benefit, but does have a "
32500 "very large performance impact."
32501 msgstr ""
32502
32503 #. type: textblock
32504 #: ../src/guestfs.pod:805
32505 msgid ""
32506 "The work around is to use L</guestfs_mount_options> and set the mount "
32507 "options that you actually want to use."
32508 msgstr ""
32509
32510 #. type: =item
32511 #: ../src/guestfs.pod:808
32512 msgid "Read-only should be the default."
32513 msgstr ""
32514
32515 #. type: textblock
32516 #: ../src/guestfs.pod:810
32517 msgid ""
32518 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
32519 "specify I<--rw> if you want to make changes to the image."
32520 msgstr ""
32521
32522 #. type: textblock
32523 #: ../src/guestfs.pod:813
32524 msgid "This would reduce the potential to corrupt live VM images."
32525 msgstr ""
32526
32527 #. type: textblock
32528 #: ../src/guestfs.pod:815
32529 msgid ""
32530 "Note that many filesystems change the disk when you just mount and unmount, "
32531 "even if you didn't perform any writes.  You need to use L</"
32532 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
32533 msgstr ""
32534
32535 #. type: =item
32536 #: ../src/guestfs.pod:819
32537 msgid "guestfish command line is hard to use."
32538 msgstr ""
32539
32540 #. type: textblock
32541 #: ../src/guestfs.pod:821
32542 msgid ""
32543 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
32544 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
32545 "exist, so it fails.  In earlier versions of guestfish the error message was "
32546 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
32547 "we should have used C<guestfish -c command> to run commands."
32548 msgstr ""
32549
32550 #. type: =item
32551 #: ../src/guestfs.pod:828
32552 msgid "guestfish megabyte modifiers don't work right on all commands"
32553 msgstr ""
32554
32555 #. type: textblock
32556 #: ../src/guestfs.pod:830
32557 msgid ""
32558 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
32559 "other modifiers).  What guestfish actually does is to multiply the number "
32560 "part by the modifier part and pass the result to the C API.  However this "
32561 "doesn't work for a few APIs which aren't expecting bytes, but are already "
32562 "expecting some other unit (eg. megabytes)."
32563 msgstr ""
32564
32565 #. type: textblock
32566 #: ../src/guestfs.pod:837
32567 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
32568 msgstr ""
32569
32570 #. type: verbatim
32571 #: ../src/guestfs.pod:839
32572 #, no-wrap
32573 msgid ""
32574 " lvcreate LV VG 100M\n"
32575 "\n"
32576 msgstr ""
32577
32578 #. type: textblock
32579 #: ../src/guestfs.pod:841
32580 msgid ""
32581 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
32582 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
32583 "megabytes * megabytes) logical volume.  The error message you get from this "
32584 "is also a little obscure."
32585 msgstr ""
32586
32587 #. type: textblock
32588 #: ../src/guestfs.pod:846
32589 msgid ""
32590 "This could be fixed in the generator by specially marking parameters and "
32591 "return values which take bytes or other units."
32592 msgstr ""
32593
32594 #. type: =item
32595 #: ../src/guestfs.pod:849
32596 msgid "Ambiguity between devices and paths"
32597 msgstr ""
32598
32599 #. type: textblock
32600 #: ../src/guestfs.pod:851
32601 msgid ""
32602 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
32603 "sdb2>) and a similar pathname.  A file might just happen to be called "
32604 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
32605 msgstr ""
32606
32607 #. type: textblock
32608 #: ../src/guestfs.pod:856
32609 msgid ""
32610 "In the current API we usually resolve this ambiguity by having two separate "
32611 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
32612 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
32613 "detecting if the path supplied begins with C</dev/>."
32614 msgstr ""
32615
32616 #. type: textblock
32617 #: ../src/guestfs.pod:862
32618 msgid ""
32619 "To avoid both the ambiguity and the need to duplicate some calls, we could "
32620 "make paths/devices into structured names.  One way to do this would be to "
32621 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
32622 "aspect of grub.  Another way would be to use a structured type, equivalent "
32623 "to this OCaml type:"
32624 msgstr ""
32625
32626 #. type: verbatim
32627 #: ../src/guestfs.pod:868
32628 #, no-wrap
32629 msgid ""
32630 " type path = Path of string | Device of int | Partition of int * int\n"
32631 "\n"
32632 msgstr ""
32633
32634 #. type: textblock
32635 #: ../src/guestfs.pod:870
32636 msgid "which would allow you to pass arguments like:"
32637 msgstr ""
32638
32639 #. type: verbatim
32640 #: ../src/guestfs.pod:872
32641 #, no-wrap
32642 msgid ""
32643 " Path \"/foo/bar\"\n"
32644 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
32645 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
32646 " Path \"/dev/sdb2\"    (* not a device *)\n"
32647 "\n"
32648 msgstr ""
32649
32650 #. type: textblock
32651 #: ../src/guestfs.pod:877
32652 msgid ""
32653 "As you can see there are still problems to resolve even with this "
32654 "representation.  Also consider how it might work in guestfish."
32655 msgstr ""
32656
32657 #. type: =head2
32658 #: ../src/guestfs.pod:882
32659 msgid "KEYS AND PASSPHRASES"
32660 msgstr ""
32661
32662 #. type: textblock
32663 #: ../src/guestfs.pod:884
32664 msgid ""
32665 "Certain libguestfs calls take a parameter that contains sensitive key "
32666 "material, passed in as a C string."
32667 msgstr ""
32668
32669 #. type: textblock
32670 #: ../src/guestfs.pod:887
32671 msgid ""
32672 "In the future we would hope to change the libguestfs implementation so that "
32673 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
32674 "swap.  However this is I<not> done at the moment, because of the complexity "
32675 "of such an implementation."
32676 msgstr ""
32677
32678 #. type: textblock
32679 #: ../src/guestfs.pod:892
32680 msgid ""
32681 "Therefore you should be aware that any key parameter you pass to libguestfs "
32682 "might end up being written out to the swap partition.  If this is a concern, "
32683 "scrub the swap partition or don't use libguestfs on encrypted devices."
32684 msgstr ""
32685
32686 #. type: =head2
32687 #: ../src/guestfs.pod:897
32688 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
32689 msgstr ""
32690
32691 #. type: textblock
32692 #: ../src/guestfs.pod:899
32693 msgid ""
32694 "All high-level libguestfs actions are synchronous.  If you want to use "
32695 "libguestfs asynchronously then you must create a thread."
32696 msgstr ""
32697
32698 #. type: textblock
32699 #: ../src/guestfs.pod:902
32700 msgid ""
32701 "Only use the handle from a single thread.  Either use the handle exclusively "
32702 "from one thread, or provide your own mutex so that two threads cannot issue "
32703 "calls on the same handle at the same time."
32704 msgstr ""
32705
32706 #. type: textblock
32707 #: ../src/guestfs.pod:906
32708 msgid ""
32709 "See the graphical program guestfs-browser for one possible architecture for "
32710 "multithreaded programs using libvirt and libguestfs."
32711 msgstr ""
32712
32713 #. type: =head2
32714 #: ../src/guestfs.pod:909
32715 msgid "PATH"
32716 msgstr ""
32717
32718 #. type: textblock
32719 #: ../src/guestfs.pod:911
32720 msgid ""
32721 "Libguestfs needs a supermin appliance, which it finds by looking along an "
32722 "internal path."
32723 msgstr ""
32724
32725 #. type: textblock
32726 #: ../src/guestfs.pod:914
32727 msgid ""
32728 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
32729 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
32730 msgstr ""
32731
32732 #. type: textblock
32733 #: ../src/guestfs.pod:917
32734 msgid ""
32735 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
32736 "to change the directories that libguestfs will search in.  The value is a "
32737 "colon-separated list of paths.  The current directory is I<not> searched "
32738 "unless the path contains an empty element or C<.>.  For example "
32739 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
32740 "then C</usr/lib/guestfs>."
32741 msgstr ""
32742
32743 #. type: =head2
32744 #: ../src/guestfs.pod:924
32745 msgid "QEMU WRAPPERS"
32746 msgstr ""
32747
32748 #. type: textblock
32749 #: ../src/guestfs.pod:926
32750 msgid ""
32751 "If you want to compile your own qemu, run qemu from a non-standard location, "
32752 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
32753 "around qemu."
32754 msgstr ""
32755
32756 #. type: textblock
32757 #: ../src/guestfs.pod:930
32758 msgid ""
32759 "There is one important rule to remember: you I<must C<exec qemu>> as the "
32760 "last command in the shell script (so that qemu replaces the shell and "
32761 "becomes the direct child of the libguestfs-using program).  If you don't do "
32762 "this, then the qemu process won't be cleaned up correctly."
32763 msgstr ""
32764
32765 #. type: textblock
32766 #: ../src/guestfs.pod:935
32767 msgid ""
32768 "Here is an example of a wrapper, where I have built my own copy of qemu from "
32769 "source:"
32770 msgstr ""
32771
32772 #. type: verbatim
32773 #: ../src/guestfs.pod:938
32774 #, no-wrap
32775 msgid ""
32776 " #!/bin/sh -\n"
32777 " qemudir=/home/rjones/d/qemu\n"
32778 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
32779 "\n"
32780 msgstr ""
32781
32782 #. type: textblock
32783 #: ../src/guestfs.pod:942
32784 msgid ""
32785 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
32786 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
32787 "example:"
32788 msgstr ""
32789
32790 #. type: verbatim
32791 #: ../src/guestfs.pod:946
32792 #, no-wrap
32793 msgid ""
32794 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
32795 "\n"
32796 msgstr ""
32797
32798 #. type: textblock
32799 #: ../src/guestfs.pod:948
32800 msgid ""
32801 "Note that libguestfs also calls qemu with the -help and -version options in "
32802 "order to determine features."
32803 msgstr ""
32804
32805 #. type: =head2
32806 #: ../src/guestfs.pod:951
32807 msgid "ATTACHING TO RUNNING DAEMONS"
32808 msgstr ""
32809
32810 #. type: textblock
32811 #: ../src/guestfs.pod:953
32812 msgid ""
32813 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
32814 "babies.  Use with caution."
32815 msgstr ""
32816
32817 #. type: textblock
32818 #: ../src/guestfs.pod:956
32819 msgid ""
32820 "I<Note (2):> This section explains how to attach to a running daemon from a "
32821 "low level perspective.  For most users, simply using virt tools such as "
32822 "L<guestfish(1)> with the I<--live> option will \"just work\"."
32823 msgstr ""
32824
32825 #. type: =head3
32826 #: ../src/guestfs.pod:960
32827 msgid "Using guestfs_set_attach_method"
32828 msgstr ""
32829
32830 #. type: textblock
32831 #: ../src/guestfs.pod:962
32832 msgid ""
32833 "By calling L</guestfs_set_attach_method> you can change how the library "
32834 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
32835 "ARCHITECTURE> for some background)."
32836 msgstr ""
32837
32838 #. type: textblock
32839 #: ../src/guestfs.pod:966
32840 msgid ""
32841 "The normal attach method is C<appliance>, where a small appliance is created "
32842 "containing the daemon, and then the library connects to this."
32843 msgstr ""
32844
32845 #. type: textblock
32846 #: ../src/guestfs.pod:969
32847 msgid ""
32848 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
32849 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
32850 "daemon over the Unix domain socket."
32851 msgstr ""
32852
32853 #. type: textblock
32854 #: ../src/guestfs.pod:973
32855 msgid ""
32856 "The normal use for this is to connect to a running virtual machine that "
32857 "contains a C<guestfsd> daemon, and send commands so you can read and write "
32858 "files inside the live virtual machine."
32859 msgstr ""
32860
32861 #. type: =head3
32862 #: ../src/guestfs.pod:977
32863 msgid "Using guestfs_add_domain with live flag"
32864 msgstr ""
32865
32866 #. type: textblock
32867 #: ../src/guestfs.pod:979
32868 msgid ""
32869 "L</guestfs_add_domain> provides some help for getting the correct attach "
32870 "method.  If you pass the C<live> option to this function, then (if the "
32871 "virtual machine is running) it will examine the libvirt XML looking for a "
32872 "virtio-serial channel to connect to:"
32873 msgstr ""
32874
32875 #. type: verbatim
32876 #: ../src/guestfs.pod:985
32877 #, no-wrap
32878 msgid ""
32879 " <domain>\n"
32880 "   ...\n"
32881 "   <devices>\n"
32882 "     ...\n"
32883 "     <channel type='unix'>\n"
32884 "       <source mode='bind' path='/path/to/socket'/>\n"
32885 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
32886 "     </channel>\n"
32887 "     ...\n"
32888 "   </devices>\n"
32889 " </domain>\n"
32890 "\n"
32891 msgstr ""
32892
32893 #. type: textblock
32894 #: ../src/guestfs.pod:997
32895 msgid ""
32896 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
32897 "method to C<unix:/path/to/socket>."
32898 msgstr ""
32899
32900 #. type: textblock
32901 #: ../src/guestfs.pod:1000
32902 msgid ""
32903 "Some of the libguestfs tools (including guestfish) support a I<--live> "
32904 "option which is passed through to L</guestfs_add_domain> thus allowing you "
32905 "to attach to and modify live virtual machines."
32906 msgstr ""
32907
32908 #. type: textblock
32909 #: ../src/guestfs.pod:1004
32910 msgid ""
32911 "The virtual machine needs to have been set up beforehand so that it has the "
32912 "virtio-serial channel and so that guestfsd is running inside it."
32913 msgstr ""
32914
32915 #. type: =head2
32916 #: ../src/guestfs.pod:1008
32917 msgid "ABI GUARANTEE"
32918 msgstr ""
32919
32920 #. type: textblock
32921 #: ../src/guestfs.pod:1010
32922 msgid ""
32923 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
32924 "actions as outlined in this section.  Although we will deprecate some "
32925 "actions, for example if they get replaced by newer calls, we will keep the "
32926 "old actions forever.  This allows you the developer to program in confidence "
32927 "against the libguestfs API."
32928 msgstr ""
32929
32930 #. type: =head2
32931 #: ../src/guestfs.pod:1016
32932 msgid "BLOCK DEVICE NAMING"
32933 msgstr ""
32934
32935 #. type: textblock
32936 #: ../src/guestfs.pod:1018
32937 msgid ""
32938 "In the kernel there is now quite a profusion of schemata for naming block "
32939 "devices (in this context, by I<block device> I mean a physical or virtual "
32940 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
32941 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
32942 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
32943 "for the old IDE driver (particularly for SATA devices) those devices also "
32944 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
32945 "paravirtualized drivers.  This has created several different naming systems, "
32946 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
32947 msgstr ""
32948
32949 #. type: textblock
32950 #: ../src/guestfs.pod:1030
32951 msgid ""
32952 "As discussed above, libguestfs uses a qemu appliance running an embedded "
32953 "Linux kernel to access block devices.  We can run a variety of appliances "
32954 "based on a variety of Linux kernels."
32955 msgstr ""
32956
32957 #. type: textblock
32958 #: ../src/guestfs.pod:1034
32959 msgid ""
32960 "This causes a problem for libguestfs because many API calls use device or "
32961 "partition names.  Working scripts and the recipe (example) scripts that we "
32962 "make available over the internet could fail if the naming scheme changes."
32963 msgstr ""
32964
32965 #. type: textblock
32966 #: ../src/guestfs.pod:1039
32967 msgid ""
32968 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
32969 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
32970 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
32971 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
32972 msgstr ""
32973
32974 #. type: textblock
32975 #: ../src/guestfs.pod:1045
32976 msgid ""
32977 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
32978 "L</guestfs_list_partitions> and similar calls return the true names of the "
32979 "devices and partitions as known to the appliance."
32980 msgstr ""
32981
32982 #. type: =head3
32983 #: ../src/guestfs.pod:1050
32984 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
32985 msgstr ""
32986
32987 #. type: textblock
32988 #: ../src/guestfs.pod:1052
32989 msgid ""
32990 "Usually this translation is transparent.  However in some (very rare)  cases "
32991 "you may need to know the exact algorithm.  Such cases include where you use "
32992 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
32993 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
32994 msgstr ""
32995
32996 #. type: textblock
32997 #: ../src/guestfs.pod:1058
32998 msgid ""
32999 "The algorithm is applied only to I<parameters> which are known to be either "
33000 "device or partition names.  Return values from functions such as L</"
33001 "guestfs_list_devices> are never changed."
33002 msgstr ""
33003
33004 #. type: textblock
33005 #: ../src/guestfs.pod:1066
33006 msgid "Is the string a parameter which is a device or partition name?"
33007 msgstr ""
33008
33009 #. type: textblock
33010 #: ../src/guestfs.pod:1070
33011 msgid "Does the string begin with C</dev/sd>?"
33012 msgstr ""
33013
33014 #. type: textblock
33015 #: ../src/guestfs.pod:1074
33016 msgid ""
33017 "Does the named device exist? If so, we use that device.  However if I<not> "
33018 "then we continue with this algorithm."
33019 msgstr ""
33020
33021 #. type: textblock
33022 #: ../src/guestfs.pod:1079
33023 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
33024 msgstr ""
33025
33026 #. type: textblock
33027 #: ../src/guestfs.pod:1081
33028 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
33029 msgstr ""
33030
33031 #. type: textblock
33032 #: ../src/guestfs.pod:1083
33033 msgid "If that named device exists, use it.  If not, continue."
33034 msgstr ""
33035
33036 #. type: textblock
33037 #: ../src/guestfs.pod:1087
33038 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
33039 msgstr ""
33040
33041 #. type: textblock
33042 #: ../src/guestfs.pod:1089
33043 msgid "If that named device exists, use it.  If not, return an error."
33044 msgstr ""
33045
33046 #. type: =head3
33047 #: ../src/guestfs.pod:1093
33048 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
33049 msgstr ""
33050
33051 #. type: textblock
33052 #: ../src/guestfs.pod:1095
33053 msgid ""
33054 "Although the standard naming scheme and automatic translation is useful for "
33055 "simple programs and guestfish scripts, for larger programs it is best not to "
33056 "rely on this mechanism."
33057 msgstr ""
33058
33059 #. type: textblock
33060 #: ../src/guestfs.pod:1099
33061 msgid ""
33062 "Where possible for maximum future portability programs using libguestfs "
33063 "should use these future-proof techniques:"
33064 msgstr ""
33065
33066 #. type: textblock
33067 #: ../src/guestfs.pod:1106
33068 msgid ""
33069 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
33070 "device names, and then use those names directly."
33071 msgstr ""
33072
33073 #. type: textblock
33074 #: ../src/guestfs.pod:1109
33075 msgid ""
33076 "Since those device names exist by definition, they will never be translated."
33077 msgstr ""
33078
33079 #. type: textblock
33080 #: ../src/guestfs.pod:1114
33081 msgid ""
33082 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
33083 "filesystem labels."
33084 msgstr ""
33085
33086 #. type: =head1
33087 #: ../src/guestfs.pod:1119
33088 msgid "SECURITY"
33089 msgstr ""
33090
33091 #. type: textblock
33092 #: ../src/guestfs.pod:1121
33093 msgid ""
33094 "This section discusses security implications of using libguestfs, "
33095 "particularly with untrusted or malicious guests or disk images."
33096 msgstr ""
33097
33098 #. type: =head2
33099 #: ../src/guestfs.pod:1124
33100 msgid "GENERAL SECURITY CONSIDERATIONS"
33101 msgstr ""
33102
33103 #. type: textblock
33104 #: ../src/guestfs.pod:1126
33105 msgid ""
33106 "Be careful with any files or data that you download from a guest (by "
33107 "\"download\" we mean not just the L</guestfs_download> command but any "
33108 "command that reads files, filenames, directories or anything else from a "
33109 "disk image).  An attacker could manipulate the data to fool your program "
33110 "into doing the wrong thing.  Consider cases such as:"
33111 msgstr ""
33112
33113 #. type: textblock
33114 #: ../src/guestfs.pod:1136
33115 msgid "the data (file etc) not being present"
33116 msgstr ""
33117
33118 #. type: textblock
33119 #: ../src/guestfs.pod:1140
33120 msgid "being present but empty"
33121 msgstr ""
33122
33123 #. type: textblock
33124 #: ../src/guestfs.pod:1144
33125 msgid "being much larger than normal"
33126 msgstr ""
33127
33128 #. type: textblock
33129 #: ../src/guestfs.pod:1148
33130 msgid "containing arbitrary 8 bit data"
33131 msgstr ""
33132
33133 #. type: textblock
33134 #: ../src/guestfs.pod:1152
33135 msgid "being in an unexpected character encoding"
33136 msgstr ""
33137
33138 #. type: textblock
33139 #: ../src/guestfs.pod:1156
33140 msgid "containing homoglyphs."
33141 msgstr ""
33142
33143 #. type: =head2
33144 #: ../src/guestfs.pod:1160
33145 msgid "SECURITY OF MOUNTING FILESYSTEMS"
33146 msgstr ""
33147
33148 #. type: textblock
33149 #: ../src/guestfs.pod:1162
33150 msgid ""
33151 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
33152 "(VFS) module can sometimes be escalated into exploits by deliberately "
33153 "creating a malicious, malformed filesystem.  These exploits are very severe "
33154 "for two reasons.  Firstly there are very many filesystem drivers in the "
33155 "kernel, and many of them are infrequently used and not much developer "
33156 "attention has been paid to the code.  Linux userspace helps potential "
33157 "crackers by detecting the filesystem type and automatically choosing the "
33158 "right VFS driver, even if that filesystem type is obscure or unexpected for "
33159 "the administrator.  Secondly, a kernel-level exploit is like a local root "
33160 "exploit (worse in some ways), giving immediate and total access to the "
33161 "system right down to the hardware level."
33162 msgstr ""
33163
33164 #. type: textblock
33165 #: ../src/guestfs.pod:1175
33166 msgid ""
33167 "That explains why you should never mount a filesystem from an untrusted "
33168 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
33169 "inside a qemu virtual machine, usually running as a non-root user.  The "
33170 "attacker would need to write a filesystem which first exploited the kernel, "
33171 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
33172 "the libguestfs protocol, and finally to be as serious as the host kernel "
33173 "exploit it would need to escalate its privileges to root.  This multi-step "
33174 "escalation, performed by a static piece of data, is thought to be extremely "
33175 "hard to do, although we never say 'never' about security issues."
33176 msgstr ""
33177
33178 #. type: textblock
33179 #: ../src/guestfs.pod:1186
33180 msgid ""
33181 "In any case callers can reduce the attack surface by forcing the filesystem "
33182 "type when mounting (use L</guestfs_mount_vfs>)."
33183 msgstr ""
33184
33185 #. type: =head2
33186 #: ../src/guestfs.pod:1189
33187 msgid "PROTOCOL SECURITY"
33188 msgstr ""
33189
33190 #. type: textblock
33191 #: ../src/guestfs.pod:1191
33192 msgid ""
33193 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
33194 "defined upper message size.  However a program that uses libguestfs must "
33195 "also take care - for example you can write a program that downloads a binary "
33196 "from a disk image and executes it locally, and no amount of protocol "
33197 "security will save you from the consequences."
33198 msgstr ""
33199
33200 #. type: =head2
33201 #: ../src/guestfs.pod:1197
33202 msgid "INSPECTION SECURITY"
33203 msgstr ""
33204
33205 #. type: textblock
33206 #: ../src/guestfs.pod:1199
33207 msgid ""
33208 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
33209 "directly from the guest, and these could contain any 8 bit data.  Callers "
33210 "should be careful to escape these before printing them to a structured file "
33211 "(for example, use HTML escaping if creating a web page)."
33212 msgstr ""
33213
33214 #. type: textblock
33215 #: ../src/guestfs.pod:1205
33216 msgid ""
33217 "Guest configuration may be altered in unusual ways by the administrator of "
33218 "the virtual machine, and may not reflect reality (particularly for untrusted "
33219 "or actively malicious guests).  For example we parse the hostname from "
33220 "configuration files like C</etc/sysconfig/network> that we find in the "
33221 "guest, but the guest administrator can easily manipulate these files to "
33222 "provide the wrong hostname."
33223 msgstr ""
33224
33225 #. type: textblock
33226 #: ../src/guestfs.pod:1213
33227 msgid ""
33228 "The inspection API parses guest configuration using two external libraries: "
33229 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
33230 "designed to be robust in the face of malicious data, although denial of "
33231 "service attacks are still possible, for example with oversized configuration "
33232 "files."
33233 msgstr ""
33234
33235 #. type: =head2
33236 #: ../src/guestfs.pod:1219
33237 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
33238 msgstr ""
33239
33240 #. type: textblock
33241 #: ../src/guestfs.pod:1221
33242 msgid ""
33243 "Be very cautious about running commands from the guest.  By running a "
33244 "command in the guest, you are giving CPU time to a binary that you do not "
33245 "control, under the same user account as the library, albeit wrapped in qemu "
33246 "virtualization.  More information and alternatives can be found in the "
33247 "section L</RUNNING COMMANDS>."
33248 msgstr ""
33249
33250 #. type: =head2
33251 #: ../src/guestfs.pod:1227
33252 msgid "CVE-2010-3851"
33253 msgstr ""
33254
33255 #. type: textblock
33256 #: ../src/guestfs.pod:1229
33257 msgid "https://bugzilla.redhat.com/642934"
33258 msgstr ""
33259
33260 #. type: textblock
33261 #: ../src/guestfs.pod:1231
33262 msgid ""
33263 "This security bug concerns the automatic disk format detection that qemu "
33264 "does on disk images."
33265 msgstr ""
33266
33267 #. type: textblock
33268 #: ../src/guestfs.pod:1234
33269 msgid ""
33270 "A raw disk image is just the raw bytes, there is no header.  Other disk "
33271 "images like qcow2 contain a special header.  Qemu deals with this by looking "
33272 "for one of the known headers, and if none is found then assuming the disk "
33273 "image must be raw."
33274 msgstr ""
33275
33276 #. type: textblock
33277 #: ../src/guestfs.pod:1239
33278 msgid ""
33279 "This allows a guest which has been given a raw disk image to write some "
33280 "other header.  At next boot (or when the disk image is accessed by "
33281 "libguestfs) qemu would do autodetection and think the disk image format was, "
33282 "say, qcow2 based on the header written by the guest."
33283 msgstr ""
33284
33285 #. type: textblock
33286 #: ../src/guestfs.pod:1244
33287 msgid ""
33288 "This in itself would not be a problem, but qcow2 offers many features, one "
33289 "of which is to allow a disk image to refer to another image (called the "
33290 "\"backing disk\").  It does this by placing the path to the backing disk "
33291 "into the qcow2 header.  This path is not validated and could point to any "
33292 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
33293 "\"holes\" in the qcow2 disk image, which of course is completely under the "
33294 "control of the attacker."
33295 msgstr ""
33296
33297 #. type: textblock
33298 #: ../src/guestfs.pod:1252
33299 msgid ""
33300 "In libguestfs this is rather hard to exploit except under two circumstances:"
33301 msgstr ""
33302
33303 #. type: textblock
33304 #: ../src/guestfs.pod:1259
33305 msgid "You have enabled the network or have opened the disk in write mode."
33306 msgstr ""
33307
33308 #. type: textblock
33309 #: ../src/guestfs.pod:1263
33310 msgid ""
33311 "You are also running untrusted code from the guest (see L</RUNNING "
33312 "COMMANDS>)."
33313 msgstr ""
33314
33315 #. type: textblock
33316 #: ../src/guestfs.pod:1268
33317 msgid ""
33318 "The way to avoid this is to specify the expected disk format when adding "
33319 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
33320 "should always do this if the disk is raw format, and it's a good idea for "
33321 "other cases too."
33322 msgstr ""
33323
33324 #. type: textblock
33325 #: ../src/guestfs.pod:1273
33326 msgid ""
33327 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
33328 "format is fetched from libvirt and passed through."
33329 msgstr ""
33330
33331 #. type: textblock
33332 #: ../src/guestfs.pod:1276
33333 msgid ""
33334 "For libguestfs tools, use the I<--format> command line parameter as "
33335 "appropriate."
33336 msgstr ""
33337
33338 #. type: =head1
33339 #: ../src/guestfs.pod:1279
33340 msgid "CONNECTION MANAGEMENT"
33341 msgstr ""
33342
33343 #. type: =head2
33344 #: ../src/guestfs.pod:1281
33345 msgid "guestfs_h *"
33346 msgstr ""
33347
33348 #. type: textblock
33349 #: ../src/guestfs.pod:1283
33350 msgid ""
33351 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
33352 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
33353 "handle and release all resources used."
33354 msgstr ""
33355
33356 #. type: textblock
33357 #: ../src/guestfs.pod:1287
33358 msgid ""
33359 "For information on using multiple handles and threads, see the section L</"
33360 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
33361 msgstr ""
33362
33363 #. type: =head2
33364 #: ../src/guestfs.pod:1290
33365 msgid "guestfs_create"
33366 msgstr ""
33367
33368 #. type: verbatim
33369 #: ../src/guestfs.pod:1292
33370 #, no-wrap
33371 msgid ""
33372 " guestfs_h *guestfs_create (void);\n"
33373 "\n"
33374 msgstr ""
33375
33376 #. type: textblock
33377 #: ../src/guestfs.pod:1294
33378 msgid "Create a connection handle."
33379 msgstr ""
33380
33381 #. type: textblock
33382 #: ../src/guestfs.pod:1296
33383 msgid ""
33384 "On success this returns a non-NULL pointer to a handle.  On error it returns "
33385 "NULL."
33386 msgstr ""
33387
33388 #. type: textblock
33389 #: ../src/guestfs.pod:1299
33390 msgid ""
33391 "You have to \"configure\" the handle after creating it.  This includes "
33392 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
33393 "handle at least once."
33394 msgstr ""
33395
33396 #. type: textblock
33397 #: ../src/guestfs.pod:1303
33398 msgid "After configuring the handle, you have to call L</guestfs_launch>."
33399 msgstr ""
33400
33401 #. type: textblock
33402 #: ../src/guestfs.pod:1305
33403 msgid ""
33404 "You may also want to configure error handling for the handle.  See the L</"
33405 "ERROR HANDLING> section below."
33406 msgstr ""
33407
33408 #. type: =head2
33409 #: ../src/guestfs.pod:1308
33410 msgid "guestfs_close"
33411 msgstr ""
33412
33413 #. type: verbatim
33414 #: ../src/guestfs.pod:1310
33415 #, no-wrap
33416 msgid ""
33417 " void guestfs_close (guestfs_h *g);\n"
33418 "\n"
33419 msgstr ""
33420
33421 #. type: textblock
33422 #: ../src/guestfs.pod:1312
33423 msgid "This closes the connection handle and frees up all resources used."
33424 msgstr ""
33425
33426 #. type: textblock
33427 #: ../src/guestfs.pod:1314
33428 msgid ""
33429 "If autosync was set on the handle and the handle was launched, then this "
33430 "implicitly calls various functions to unmount filesystems and sync the "
33431 "disk.  See L</guestfs_set_autosync> for more details."
33432 msgstr ""
33433
33434 #. type: textblock
33435 #: ../src/guestfs.pod:1318
33436 msgid "If a close callback was set on the handle, then it is called."
33437 msgstr ""
33438
33439 #. type: =head1
33440 #: ../src/guestfs.pod:1320
33441 msgid "ERROR HANDLING"
33442 msgstr ""
33443
33444 #. type: textblock
33445 #: ../src/guestfs.pod:1322
33446 msgid ""
33447 "API functions can return errors.  For example, almost all functions that "
33448 "return C<int> will return C<-1> to indicate an error."
33449 msgstr ""
33450
33451 #. type: textblock
33452 #: ../src/guestfs.pod:1325
33453 msgid ""
33454 "Additional information is available for errors: an error message string and "
33455 "optionally an error number (errno) if the thing that failed was a system "
33456 "call."
33457 msgstr ""
33458
33459 #. type: textblock
33460 #: ../src/guestfs.pod:1329
33461 msgid ""
33462 "You can get at the additional information about the last error on the handle "
33463 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
33464 "up an error handler with L</guestfs_set_error_handler>."
33465 msgstr ""
33466
33467 #. type: textblock
33468 #: ../src/guestfs.pod:1334
33469 msgid ""
33470 "When the handle is created, a default error handler is installed which "
33471 "prints the error message string to C<stderr>.  For small short-running "
33472 "command line programs it is sufficient to do:"
33473 msgstr ""
33474
33475 #. type: verbatim
33476 #: ../src/guestfs.pod:1338
33477 #, no-wrap
33478 msgid ""
33479 " if (guestfs_launch (g) == -1)\n"
33480 "   exit (EXIT_FAILURE);\n"
33481 "\n"
33482 msgstr ""
33483
33484 #. type: textblock
33485 #: ../src/guestfs.pod:1341
33486 msgid ""
33487 "since the default error handler will ensure that an error message has been "
33488 "printed to C<stderr> before the program exits."
33489 msgstr ""
33490
33491 #. type: textblock
33492 #: ../src/guestfs.pod:1344
33493 msgid ""
33494 "For other programs the caller will almost certainly want to install an "
33495 "alternate error handler or do error handling in-line like this:"
33496 msgstr ""
33497
33498 #. type: verbatim
33499 #: ../src/guestfs.pod:1347
33500 #, no-wrap
33501 msgid ""
33502 " g = guestfs_create ();\n"
33503 " \n"
33504 msgstr ""
33505
33506 #. type: verbatim
33507 #: ../src/guestfs.pod:1349
33508 #, no-wrap
33509 msgid ""
33510 " /* This disables the default behaviour of printing errors\n"
33511 "    on stderr. */\n"
33512 " guestfs_set_error_handler (g, NULL, NULL);\n"
33513 " \n"
33514 msgstr ""
33515
33516 #. type: verbatim
33517 #: ../src/guestfs.pod:1353
33518 #, no-wrap
33519 msgid ""
33520 " if (guestfs_launch (g) == -1) {\n"
33521 "   /* Examine the error message and print it etc. */\n"
33522 "   char *msg = guestfs_last_error (g);\n"
33523 "   int errnum = guestfs_last_errno (g);\n"
33524 "   fprintf (stderr, \"%s\\n\", msg);\n"
33525 "   /* ... */\n"
33526 "  }\n"
33527 "\n"
33528 msgstr ""
33529
33530 #. type: textblock
33531 #: ../src/guestfs.pod:1361
33532 msgid ""
33533 "Out of memory errors are handled differently.  The default action is to call "
33534 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
33535 "guestfs_set_out_of_memory_handler>."
33536 msgstr ""
33537
33538 #. type: textblock
33539 #: ../src/guestfs.pod:1365
33540 msgid ""
33541 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
33542 "because there is no handle if this happens there is no way to get additional "
33543 "error information.  However L</guestfs_create> is supposed to be a "
33544 "lightweight operation which can only fail because of insufficient memory (it "
33545 "returns NULL in this case)."
33546 msgstr ""
33547
33548 #. type: =head2
33549 #: ../src/guestfs.pod:1371
33550 msgid "guestfs_last_error"
33551 msgstr ""
33552
33553 #. type: verbatim
33554 #: ../src/guestfs.pod:1373
33555 #, no-wrap
33556 msgid ""
33557 " const char *guestfs_last_error (guestfs_h *g);\n"
33558 "\n"
33559 msgstr ""
33560
33561 #. type: textblock
33562 #: ../src/guestfs.pod:1375
33563 msgid ""
33564 "This returns the last error message that happened on C<g>.  If there has not "
33565 "been an error since the handle was created, then this returns C<NULL>."
33566 msgstr ""
33567
33568 #. type: textblock
33569 #: ../src/guestfs.pod:1379
33570 msgid ""
33571 "The lifetime of the returned string is until the next error occurs, or L</"
33572 "guestfs_close> is called."
33573 msgstr ""
33574
33575 #. type: =head2
33576 #: ../src/guestfs.pod:1382
33577 msgid "guestfs_last_errno"
33578 msgstr ""
33579
33580 #. type: verbatim
33581 #: ../src/guestfs.pod:1384
33582 #, no-wrap
33583 msgid ""
33584 " int guestfs_last_errno (guestfs_h *g);\n"
33585 "\n"
33586 msgstr ""
33587
33588 #. type: textblock
33589 #: ../src/guestfs.pod:1386
33590 msgid "This returns the last error number (errno) that happened on C<g>."
33591 msgstr ""
33592
33593 #. type: textblock
33594 #: ../src/guestfs.pod:1388
33595 msgid "If successful, an errno integer not equal to zero is returned."
33596 msgstr ""
33597
33598 #. type: textblock
33599 #: ../src/guestfs.pod:1390
33600 msgid ""
33601 "If no error, this returns 0.  This call can return 0 in three situations:"
33602 msgstr ""
33603
33604 #. type: textblock
33605 #: ../src/guestfs.pod:1397
33606 msgid "There has not been any error on the handle."
33607 msgstr ""
33608
33609 #. type: textblock
33610 #: ../src/guestfs.pod:1401
33611 msgid ""
33612 "There has been an error but the errno was meaningless.  This corresponds to "
33613 "the case where the error did not come from a failed system call, but for "
33614 "some other reason."
33615 msgstr ""
33616
33617 #. type: textblock
33618 #: ../src/guestfs.pod:1407
33619 msgid ""
33620 "There was an error from a failed system call, but for some reason the errno "
33621 "was not captured and returned.  This usually indicates a bug in libguestfs."
33622 msgstr ""
33623
33624 #. type: textblock
33625 #: ../src/guestfs.pod:1413
33626 msgid ""
33627 "Libguestfs tries to convert the errno from inside the applicance into a "
33628 "corresponding errno for the caller (not entirely trivial: the appliance "
33629 "might be running a completely different operating system from the library "
33630 "and error numbers are not standardized across Un*xen).  If this could not be "
33631 "done, then the error is translated to C<EINVAL>.  In practice this should "
33632 "only happen in very rare circumstances."
33633 msgstr ""
33634
33635 #. type: =head2
33636 #: ../src/guestfs.pod:1421
33637 msgid "guestfs_set_error_handler"
33638 msgstr ""
33639
33640 #. type: verbatim
33641 #: ../src/guestfs.pod:1423
33642 #, no-wrap
33643 msgid ""
33644 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
33645 "                                           void *opaque,\n"
33646 "                                           const char *msg);\n"
33647 " void guestfs_set_error_handler (guestfs_h *g,\n"
33648 "                                 guestfs_error_handler_cb cb,\n"
33649 "                                 void *opaque);\n"
33650 "\n"
33651 msgstr ""
33652
33653 #. type: textblock
33654 #: ../src/guestfs.pod:1430
33655 msgid ""
33656 "The callback C<cb> will be called if there is an error.  The parameters "
33657 "passed to the callback are an opaque data pointer and the error message "
33658 "string."
33659 msgstr ""
33660
33661 #. type: textblock
33662 #: ../src/guestfs.pod:1434
33663 msgid ""
33664 "C<errno> is not passed to the callback.  To get that the callback must call "
33665 "L</guestfs_last_errno>."
33666 msgstr ""
33667
33668 #. type: textblock
33669 #: ../src/guestfs.pod:1437
33670 msgid ""
33671 "Note that the message string C<msg> is freed as soon as the callback "
33672 "function returns, so if you want to stash it somewhere you must make your "
33673 "own copy."
33674 msgstr ""
33675
33676 #. type: textblock
33677 #: ../src/guestfs.pod:1441
33678 msgid "The default handler prints messages on C<stderr>."
33679 msgstr ""
33680
33681 #. type: textblock
33682 #: ../src/guestfs.pod:1443
33683 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
33684 msgstr ""
33685
33686 #. type: =head2
33687 #: ../src/guestfs.pod:1445
33688 msgid "guestfs_get_error_handler"
33689 msgstr ""
33690
33691 #. type: verbatim
33692 #: ../src/guestfs.pod:1447
33693 #, no-wrap
33694 msgid ""
33695 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
33696 "                                                     void **opaque_rtn);\n"
33697 "\n"
33698 msgstr ""
33699
33700 #. type: textblock
33701 #: ../src/guestfs.pod:1450
33702 msgid "Returns the current error handler callback."
33703 msgstr ""
33704
33705 #. type: =head2
33706 #: ../src/guestfs.pod:1452
33707 msgid "guestfs_set_out_of_memory_handler"
33708 msgstr ""
33709
33710 #. type: verbatim
33711 #: ../src/guestfs.pod:1454
33712 #, no-wrap
33713 msgid ""
33714 " typedef void (*guestfs_abort_cb) (void);\n"
33715 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
33716 "                                         guestfs_abort_cb);\n"
33717 "\n"
33718 msgstr ""
33719
33720 #. type: textblock
33721 #: ../src/guestfs.pod:1458
33722 msgid ""
33723 "The callback C<cb> will be called if there is an out of memory situation.  "
33724 "I<Note this callback must not return>."
33725 msgstr ""
33726
33727 #. type: textblock
33728 #: ../src/guestfs.pod:1461
33729 msgid "The default is to call L<abort(3)>."
33730 msgstr ""
33731
33732 #. type: textblock
33733 #: ../src/guestfs.pod:1463
33734 msgid ""
33735 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
33736 msgstr ""
33737
33738 #. type: =head2
33739 #: ../src/guestfs.pod:1466
33740 msgid "guestfs_get_out_of_memory_handler"
33741 msgstr ""
33742
33743 #. type: verbatim
33744 #: ../src/guestfs.pod:1468
33745 #, no-wrap
33746 msgid ""
33747 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
33748 "\n"
33749 msgstr ""
33750
33751 #. type: textblock
33752 #: ../src/guestfs.pod:1470
33753 msgid "This returns the current out of memory handler."
33754 msgstr ""
33755
33756 #. type: =head1
33757 #: ../src/guestfs.pod:1472
33758 msgid "API CALLS"
33759 msgstr ""
33760
33761 #. type: =head1
33762 #: ../src/guestfs.pod:1476
33763 msgid "STRUCTURES"
33764 msgstr ""
33765
33766 #. type: textblock
33767 #: ../src/guestfs.pod:1478
33768 msgid "@STRUCTS@"
33769 msgstr ""
33770
33771 #. type: =head1
33772 #: ../src/guestfs.pod:1480
33773 msgid "AVAILABILITY"
33774 msgstr ""
33775
33776 #. type: =head2
33777 #: ../src/guestfs.pod:1482
33778 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
33779 msgstr ""
33780
33781 #. type: textblock
33782 #: ../src/guestfs.pod:1484
33783 msgid ""
33784 "Using L</guestfs_available> you can test availability of the following "
33785 "groups of functions.  This test queries the appliance to see if the "
33786 "appliance you are currently using supports the functionality."
33787 msgstr ""
33788
33789 #. type: textblock
33790 #: ../src/guestfs.pod:1489
33791 msgid "@AVAILABILITY@"
33792 msgstr ""
33793
33794 #. type: =head2
33795 #: ../src/guestfs.pod:1491
33796 msgid "GUESTFISH supported COMMAND"
33797 msgstr ""
33798
33799 #. type: textblock
33800 #: ../src/guestfs.pod:1493
33801 msgid ""
33802 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
33803 "prints out the available groups and whether they are supported by this build "
33804 "of libguestfs.  Note however that you have to do C<run> first."
33805 msgstr ""
33806
33807 #. type: =head2
33808 #: ../src/guestfs.pod:1498
33809 msgid "SINGLE CALLS AT COMPILE TIME"
33810 msgstr ""
33811
33812 #. type: textblock
33813 #: ../src/guestfs.pod:1500
33814 msgid ""
33815 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
33816 "function, such as:"
33817 msgstr ""
33818
33819 #. type: verbatim
33820 #: ../src/guestfs.pod:1503
33821 #, no-wrap
33822 msgid ""
33823 " #define LIBGUESTFS_HAVE_DD 1\n"
33824 "\n"
33825 msgstr ""
33826
33827 #. type: textblock
33828 #: ../src/guestfs.pod:1505
33829 msgid "if L</guestfs_dd> is available."
33830 msgstr ""
33831
33832 #. type: textblock
33833 #: ../src/guestfs.pod:1507
33834 msgid ""
33835 "Before version 1.5.8, if you needed to test whether a single libguestfs "
33836 "function is available at compile time, we recommended using build tools such "
33837 "as autoconf or cmake.  For example in autotools you could use:"
33838 msgstr ""
33839
33840 #. type: verbatim
33841 #: ../src/guestfs.pod:1512
33842 #, no-wrap
33843 msgid ""
33844 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
33845 " AC_CHECK_FUNCS([guestfs_dd])\n"
33846 "\n"
33847 msgstr ""
33848
33849 #. type: textblock
33850 #: ../src/guestfs.pod:1515
33851 msgid ""
33852 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
33853 "in your program."
33854 msgstr ""
33855
33856 #. type: =head2
33857 #: ../src/guestfs.pod:1518
33858 msgid "SINGLE CALLS AT RUN TIME"
33859 msgstr ""
33860
33861 #. type: textblock
33862 #: ../src/guestfs.pod:1520
33863 msgid ""
33864 "Testing at compile time doesn't guarantee that a function really exists in "
33865 "the library.  The reason is that you might be dynamically linked against a "
33866 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
33867 "This situation unfortunately results in a segmentation fault, which is a "
33868 "shortcoming of the C dynamic linking system itself."
33869 msgstr ""
33870
33871 #. type: textblock
33872 #: ../src/guestfs.pod:1527
33873 msgid ""
33874 "You can use L<dlopen(3)> to test if a function is available at run time, as "
33875 "in this example program (note that you still need the compile time check as "
33876 "well):"
33877 msgstr ""
33878
33879 #. type: verbatim
33880 #: ../src/guestfs.pod:1531
33881 #, no-wrap
33882 msgid ""
33883 " #include <stdio.h>\n"
33884 " #include <stdlib.h>\n"
33885 " #include <unistd.h>\n"
33886 " #include <dlfcn.h>\n"
33887 " #include <guestfs.h>\n"
33888 " \n"
33889 msgstr ""
33890
33891 #. type: verbatim
33892 #: ../src/guestfs.pod:1537
33893 #, no-wrap
33894 msgid ""
33895 " main ()\n"
33896 " {\n"
33897 " #ifdef LIBGUESTFS_HAVE_DD\n"
33898 "   void *dl;\n"
33899 "   int has_function;\n"
33900 " \n"
33901 msgstr ""
33902
33903 #. type: verbatim
33904 #: ../src/guestfs.pod:1543
33905 #, no-wrap
33906 msgid ""
33907 "   /* Test if the function guestfs_dd is really available. */\n"
33908 "   dl = dlopen (NULL, RTLD_LAZY);\n"
33909 "   if (!dl) {\n"
33910 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
33911 "     exit (EXIT_FAILURE);\n"
33912 "   }\n"
33913 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
33914 "   dlclose (dl);\n"
33915 " \n"
33916 msgstr ""
33917
33918 #. type: verbatim
33919 #: ../src/guestfs.pod:1552
33920 #, no-wrap
33921 msgid ""
33922 "   if (!has_function)\n"
33923 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
33924 "   else {\n"
33925 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
33926 "     /* Now it's safe to call\n"
33927 "     guestfs_dd (g, \"foo\", \"bar\");\n"
33928 "     */\n"
33929 "   }\n"
33930 " #else\n"
33931 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
33932 " #endif\n"
33933 "  }\n"
33934 "\n"
33935 msgstr ""
33936
33937 #. type: textblock
33938 #: ../src/guestfs.pod:1565
33939 msgid ""
33940 "You may think the above is an awful lot of hassle, and it is.  There are "
33941 "other ways outside of the C linking system to ensure that this kind of "
33942 "incompatibility never arises, such as using package versioning:"
33943 msgstr ""
33944
33945 #. type: verbatim
33946 #: ../src/guestfs.pod:1570
33947 #, no-wrap
33948 msgid ""
33949 " Requires: libguestfs >= 1.0.80\n"
33950 "\n"
33951 msgstr ""
33952
33953 #. type: =head1
33954 #: ../src/guestfs.pod:1572
33955 msgid "CALLS WITH OPTIONAL ARGUMENTS"
33956 msgstr ""
33957
33958 #. type: textblock
33959 #: ../src/guestfs.pod:1574
33960 msgid ""
33961 "A recent feature of the API is the introduction of calls which take optional "
33962 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
33963 "takes variable arguments (ie. C<...>), as in this example:"
33964 msgstr ""
33965
33966 #. type: verbatim
33967 #: ../src/guestfs.pod:1579
33968 #, no-wrap
33969 msgid ""
33970 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
33971 "\n"
33972 msgstr ""
33973
33974 #. type: textblock
33975 #: ../src/guestfs.pod:1581
33976 msgid ""
33977 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
33978 "call with no optional arguments specified:"
33979 msgstr ""
33980
33981 #. type: verbatim
33982 #: ../src/guestfs.pod:1584
33983 #, no-wrap
33984 msgid ""
33985 " guestfs_add_drive_opts (g, filename, -1);\n"
33986 "\n"
33987 msgstr ""
33988
33989 #. type: textblock
33990 #: ../src/guestfs.pod:1586
33991 msgid "With a single optional argument:"
33992 msgstr ""
33993
33994 #. type: verbatim
33995 #: ../src/guestfs.pod:1588
33996 #, no-wrap
33997 msgid ""
33998 " guestfs_add_drive_opts (g, filename,\n"
33999 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
34000 "                         -1);\n"
34001 "\n"
34002 msgstr ""
34003
34004 #. type: textblock
34005 #: ../src/guestfs.pod:1592
34006 msgid "With two:"
34007 msgstr ""
34008
34009 #. type: verbatim
34010 #: ../src/guestfs.pod:1594
34011 #, no-wrap
34012 msgid ""
34013 " guestfs_add_drive_opts (g, filename,\n"
34014 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
34015 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
34016 "                         -1);\n"
34017 "\n"
34018 msgstr ""
34019
34020 #. type: textblock
34021 #: ../src/guestfs.pod:1599
34022 msgid ""
34023 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
34024 "happen!"
34025 msgstr ""
34026
34027 #. type: =head2
34028 #: ../src/guestfs.pod:1602
34029 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
34030 msgstr ""
34031
34032 #. type: textblock
34033 #: ../src/guestfs.pod:1604
34034 msgid ""
34035 "The second variant has the same name with the suffix C<_va>, which works the "
34036 "same way but takes a C<va_list>.  See the C manual for details.  For the "
34037 "example function, this is declared:"
34038 msgstr ""
34039
34040 #. type: verbatim
34041 #: ../src/guestfs.pod:1608
34042 #, no-wrap
34043 msgid ""
34044 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
34045 "                                va_list args);\n"
34046 "\n"
34047 msgstr ""
34048
34049 #. type: =head2
34050 #: ../src/guestfs.pod:1611
34051 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
34052 msgstr ""
34053
34054 #. type: textblock
34055 #: ../src/guestfs.pod:1613
34056 msgid ""
34057 "The third variant is useful where you need to construct these calls.  You "
34058 "pass in a structure where you fill in the optional fields.  The structure "
34059 "has a bitmask as the first element which you must set to indicate which "
34060 "fields you have filled in.  For our example function the structure and call "
34061 "are declared:"
34062 msgstr ""
34063
34064 #. type: verbatim
34065 #: ../src/guestfs.pod:1619
34066 #, no-wrap
34067 msgid ""
34068 " struct guestfs_add_drive_opts_argv {\n"
34069 "   uint64_t bitmask;\n"
34070 "   int readonly;\n"
34071 "   const char *format;\n"
34072 "   /* ... */\n"
34073 " };\n"
34074 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
34075 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
34076 "\n"
34077 msgstr ""
34078
34079 #. type: textblock
34080 #: ../src/guestfs.pod:1628
34081 msgid "You could call it like this:"
34082 msgstr ""
34083
34084 #. type: verbatim
34085 #: ../src/guestfs.pod:1630
34086 #, no-wrap
34087 msgid ""
34088 " struct guestfs_add_drive_opts_argv optargs = {\n"
34089 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
34090 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
34091 "   .readonly = 1,\n"
34092 "   .format = \"qcow2\"\n"
34093 " };\n"
34094 " \n"
34095 msgstr ""
34096
34097 #. type: verbatim
34098 #: ../src/guestfs.pod:1637
34099 #, no-wrap
34100 msgid ""
34101 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
34102 "\n"
34103 msgstr ""
34104
34105 #. type: textblock
34106 #: ../src/guestfs.pod:1645
34107 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
34108 msgstr ""
34109
34110 #. type: textblock
34111 #: ../src/guestfs.pod:1650
34112 msgid "You do not need to fill in all fields of the structure."
34113 msgstr ""
34114
34115 #. type: textblock
34116 #: ../src/guestfs.pod:1654
34117 msgid ""
34118 "There must be a one-to-one correspondence between fields of the structure "
34119 "that are filled in, and bits set in the bitmask."
34120 msgstr ""
34121
34122 #. type: =head2
34123 #: ../src/guestfs.pod:1659
34124 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
34125 msgstr ""
34126
34127 #. type: textblock
34128 #: ../src/guestfs.pod:1661
34129 msgid ""
34130 "In other languages, optional arguments are expressed in the way that is "
34131 "natural for that language.  We refer you to the language-specific "
34132 "documentation for more details on that."
34133 msgstr ""
34134
34135 #. type: textblock
34136 #: ../src/guestfs.pod:1665
34137 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
34138 msgstr ""
34139
34140 #. type: =head2
34141 #: ../src/guestfs.pod:1667
34142 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
34143 msgstr ""
34144
34145 #. type: textblock
34146 #: ../src/guestfs.pod:1669
34147 msgid ""
34148 "B<Note:> This section documents the generic event mechanism introduced in "
34149 "libguestfs 1.10, which you should use in new code if possible.  The old "
34150 "functions C<guestfs_set_log_message_callback>, "
34151 "C<guestfs_set_subprocess_quit_callback>, "
34152 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
34153 "C<guestfs_set_progress_callback> are no longer documented in this manual "
34154 "page.  Because of the ABI guarantee, the old functions continue to work."
34155 msgstr ""
34156
34157 #. type: textblock
34158 #: ../src/guestfs.pod:1678
34159 msgid ""
34160 "Handles generate events when certain things happen, such as log messages "
34161 "being generated, progress messages during long-running operations, or the "
34162 "handle being closed.  The API calls described below let you register a "
34163 "callback to be called when events happen.  You can register multiple "
34164 "callbacks (for the same, different or overlapping sets of events), and "
34165 "individually remove callbacks.  If callbacks are not removed, then they "
34166 "remain in force until the handle is closed."
34167 msgstr ""
34168
34169 #. type: textblock
34170 #: ../src/guestfs.pod:1686
34171 msgid ""
34172 "In the current implementation, events are only generated synchronously: that "
34173 "means that events (and hence callbacks) can only happen while you are in the "
34174 "middle of making another libguestfs call.  The callback is called in the "
34175 "same thread."
34176 msgstr ""
34177
34178 #. type: textblock
34179 #: ../src/guestfs.pod:1691
34180 msgid ""
34181 "Events may contain a payload, usually nothing (void), an array of 64 bit "
34182 "unsigned integers, or a message buffer.  Payloads are discussed later on."
34183 msgstr ""
34184
34185 #. type: =head3
34186 #: ../src/guestfs.pod:1695
34187 msgid "CLASSES OF EVENTS"
34188 msgstr ""
34189
34190 #. type: =item
34191 #: ../src/guestfs.pod:1699
34192 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
34193 msgstr ""
34194
34195 #. type: textblock
34196 #: ../src/guestfs.pod:1702
34197 msgid ""
34198 "The callback function will be called while the handle is being closed "
34199 "(synchronously from L</guestfs_close>)."
34200 msgstr ""
34201
34202 #. type: textblock
34203 #: ../src/guestfs.pod:1705
34204 msgid ""
34205 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
34206 "handles that are open when the program exits.  This means that this callback "
34207 "might be called indirectly from L<exit(3)>, which can cause unexpected "
34208 "problems in higher-level languages (eg. if your HLL interpreter has already "
34209 "been cleaned up by the time this is called, and if your callback then jumps "
34210 "into some HLL function)."
34211 msgstr ""
34212
34213 #. type: textblock
34214 #: ../src/guestfs.pod:1712
34215 msgid ""
34216 "If no callback is registered: the handle is closed without any callback "
34217 "being invoked."
34218 msgstr ""
34219
34220 #. type: =item
34221 #: ../src/guestfs.pod:1715
34222 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
34223 msgstr ""
34224
34225 #. type: textblock
34226 #: ../src/guestfs.pod:1718
34227 msgid ""
34228 "The callback function will be called when the child process quits, either "
34229 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
34230 "corresponds to a transition from any state to the CONFIG state)."
34231 msgstr ""
34232
34233 #. type: textblock
34234 #: ../src/guestfs.pod:1722 ../src/guestfs.pod:1731
34235 msgid "If no callback is registered: the event is ignored."
34236 msgstr ""
34237
34238 #. type: =item
34239 #: ../src/guestfs.pod:1724
34240 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
34241 msgstr ""
34242
34243 #. type: textblock
34244 #: ../src/guestfs.pod:1727
34245 msgid ""
34246 "The callback function will be called when the child process becomes ready "
34247 "first time after it has been launched.  (This corresponds to a transition "
34248 "from LAUNCHING to the READY state)."
34249 msgstr ""
34250
34251 #. type: =item
34252 #: ../src/guestfs.pod:1733
34253 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
34254 msgstr ""
34255
34256 #. type: textblock
34257 #: ../src/guestfs.pod:1736
34258 msgid ""
34259 "Some long-running operations can generate progress messages.  If this "
34260 "callback is registered, then it will be called each time a progress message "
34261 "is generated (usually two seconds after the operation started, and three "
34262 "times per second thereafter until it completes, although the frequency may "
34263 "change in future versions)."
34264 msgstr ""
34265
34266 #. type: textblock
34267 #: ../src/guestfs.pod:1742
34268 msgid ""
34269 "The callback receives in the payload four unsigned 64 bit numbers which are "
34270 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
34271 msgstr ""
34272
34273 #. type: textblock
34274 #: ../src/guestfs.pod:1745
34275 msgid ""
34276 "The units of C<total> are not defined, although for some operations C<total> "
34277 "may relate in some way to the amount of data to be transferred (eg. in bytes "
34278 "or megabytes), and C<position> may be the portion which has been transferred."
34279 msgstr ""
34280
34281 #. type: textblock
34282 #: ../src/guestfs.pod:1750
34283 msgid "The only defined and stable parts of the API are:"
34284 msgstr ""
34285
34286 #. type: textblock
34287 #: ../src/guestfs.pod:1756
34288 msgid ""
34289 "The callback can display to the user some type of progress bar or indicator "
34290 "which shows the ratio of C<position>:C<total>."
34291 msgstr ""
34292
34293 #. type: textblock
34294 #: ../src/guestfs.pod:1761
34295 msgid "0 E<lt>= C<position> E<lt>= C<total>"
34296 msgstr ""
34297
34298 #. type: textblock
34299 #: ../src/guestfs.pod:1765
34300 msgid ""
34301 "If any progress notification is sent during a call, then a final progress "
34302 "notification is always sent when C<position> = C<total> (I<unless> the call "
34303 "fails with an error)."
34304 msgstr ""
34305
34306 #. type: textblock
34307 #: ../src/guestfs.pod:1769
34308 msgid ""
34309 "This is to simplify caller code, so callers can easily set the progress "
34310 "indicator to \"100%\" at the end of the operation, without requiring special "
34311 "code to detect this case."
34312 msgstr ""
34313
34314 #. type: textblock
34315 #: ../src/guestfs.pod:1775
34316 msgid ""
34317 "For some calls we are unable to estimate the progress of the call, but we "
34318 "can still generate progress messages to indicate activity.  This is known as "
34319 "\"pulse mode\", and is directly supported by certain progress bar "
34320 "implementations (eg. GtkProgressBar)."
34321 msgstr ""
34322
34323 #. type: textblock
34324 #: ../src/guestfs.pod:1780
34325 msgid ""
34326 "For these calls, zero or more progress messages are generated with "
34327 "C<position = 0> and C<total = 1>, followed by a final message with "
34328 "C<position = total = 1>."
34329 msgstr ""
34330
34331 #. type: textblock
34332 #: ../src/guestfs.pod:1784
34333 msgid ""
34334 "As noted above, if the call fails with an error then the final message may "
34335 "not be generated."
34336 msgstr ""
34337
34338 #. type: textblock
34339 #: ../src/guestfs.pod:1789
34340 msgid ""
34341 "The callback also receives the procedure number (C<proc_nr>) and serial "
34342 "number (C<serial>) of the call.  These are only useful for debugging "
34343 "protocol issues, and the callback can normally ignore them.  The callback "
34344 "may want to print these numbers in error messages or debugging messages."
34345 msgstr ""
34346
34347 #. type: textblock
34348 #: ../src/guestfs.pod:1795
34349 msgid "If no callback is registered: progress messages are discarded."
34350 msgstr ""
34351
34352 #. type: =item
34353 #: ../src/guestfs.pod:1797
34354 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
34355 msgstr ""
34356
34357 #. type: textblock
34358 #: ../src/guestfs.pod:1800
34359 msgid ""
34360 "The callback function is called whenever a log message is generated by qemu, "
34361 "the appliance kernel, guestfsd (daemon), or utility programs."
34362 msgstr ""
34363
34364 #. type: textblock
34365 #: ../src/guestfs.pod:1803
34366 msgid ""
34367 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
34368 "guestfs_launch>) then additional debug messages are generated."
34369 msgstr ""
34370
34371 #. type: textblock
34372 #: ../src/guestfs.pod:1806 ../src/guestfs.pod:1820
34373 msgid ""
34374 "If no callback is registered: the messages are discarded unless the verbose "
34375 "flag is set in which case they are sent to stderr.  You can override the "
34376 "printing of verbose messages to stderr by setting up a callback."
34377 msgstr ""
34378
34379 #. type: =item
34380 #: ../src/guestfs.pod:1811
34381 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
34382 msgstr ""
34383
34384 #. type: textblock
34385 #: ../src/guestfs.pod:1814
34386 msgid ""
34387 "The callback function is called whenever a log message is generated by the "
34388 "library part of libguestfs."
34389 msgstr ""
34390
34391 #. type: textblock
34392 #: ../src/guestfs.pod:1817
34393 msgid ""
34394 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
34395 "messages are generated."
34396 msgstr ""
34397
34398 #. type: =item
34399 #: ../src/guestfs.pod:1825
34400 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
34401 msgstr ""
34402
34403 #. type: textblock
34404 #: ../src/guestfs.pod:1828
34405 msgid ""
34406 "The callback function is called whenever a trace message is generated.  This "
34407 "only applies if the trace flag (L</guestfs_set_trace>) is set."
34408 msgstr ""
34409
34410 #. type: textblock
34411 #: ../src/guestfs.pod:1831
34412 msgid ""
34413 "If no callback is registered: the messages are sent to stderr.  You can "
34414 "override the printing of trace messages to stderr by setting up a callback."
34415 msgstr ""
34416
34417 #. type: =head3
34418 #: ../src/guestfs.pod:1837
34419 msgid "guestfs_set_event_callback"
34420 msgstr ""
34421
34422 #. type: verbatim
34423 #: ../src/guestfs.pod:1839
34424 #, no-wrap
34425 msgid ""
34426 " int guestfs_set_event_callback (guestfs_h *g,\n"
34427 "                                 guestfs_event_callback cb,\n"
34428 "                                 uint64_t event_bitmask,\n"
34429 "                                 int flags,\n"
34430 "                                 void *opaque);\n"
34431 "\n"
34432 msgstr ""
34433
34434 #. type: textblock
34435 #: ../src/guestfs.pod:1845
34436 msgid ""
34437 "This function registers a callback (C<cb>) for all event classes in the "
34438 "C<event_bitmask>."
34439 msgstr ""
34440
34441 #. type: textblock
34442 #: ../src/guestfs.pod:1848
34443 msgid ""
34444 "For example, to register for all log message events, you could call this "
34445 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
34446 "To register a single callback for all possible classes of events, use "
34447 "C<GUESTFS_EVENT_ALL>."
34448 msgstr ""
34449
34450 #. type: textblock
34451 #: ../src/guestfs.pod:1854
34452 msgid "C<flags> should always be passed as 0."
34453 msgstr ""
34454
34455 #. type: textblock
34456 #: ../src/guestfs.pod:1856
34457 msgid ""
34458 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
34459 "it for any purpose."
34460 msgstr ""
34461
34462 #. type: textblock
34463 #: ../src/guestfs.pod:1859
34464 msgid ""
34465 "The return value is the event handle (an integer) which you can use to "
34466 "delete the callback (see below)."
34467 msgstr ""
34468
34469 #. type: textblock
34470 #: ../src/guestfs.pod:1862
34471 msgid ""
34472 "If there is an error, this function returns C<-1>, and sets the error in the "
34473 "handle in the usual way (see L</guestfs_last_error> etc.)"
34474 msgstr ""
34475
34476 #. type: textblock
34477 #: ../src/guestfs.pod:1865
34478 msgid ""
34479 "Callbacks remain in effect until they are deleted, or until the handle is "
34480 "closed."
34481 msgstr ""
34482
34483 #. type: textblock
34484 #: ../src/guestfs.pod:1868
34485 msgid ""
34486 "In the case where multiple callbacks are registered for a particular event "
34487 "class, all of the callbacks are called.  The order in which multiple "
34488 "callbacks are called is not defined."
34489 msgstr ""
34490
34491 #. type: =head3
34492 #: ../src/guestfs.pod:1872
34493 msgid "guestfs_delete_event_callback"
34494 msgstr ""
34495
34496 #. type: verbatim
34497 #: ../src/guestfs.pod:1874
34498 #, no-wrap
34499 msgid ""
34500 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
34501 "\n"
34502 msgstr ""
34503
34504 #. type: textblock
34505 #: ../src/guestfs.pod:1876
34506 msgid ""
34507 "Delete a callback that was previously registered.  C<event_handle> should be "
34508 "the integer that was returned by a previous call to "
34509 "C<guestfs_set_event_callback> on the same handle."
34510 msgstr ""
34511
34512 #. type: =head3
34513 #: ../src/guestfs.pod:1880
34514 msgid "guestfs_event_callback"
34515 msgstr ""
34516
34517 #. type: verbatim
34518 #: ../src/guestfs.pod:1882
34519 #, no-wrap
34520 msgid ""
34521 " typedef void (*guestfs_event_callback) (\n"
34522 "                  guestfs_h *g,\n"
34523 "                  void *opaque,\n"
34524 "                  uint64_t event,\n"
34525 "                  int event_handle,\n"
34526 "                  int flags,\n"
34527 "                  const char *buf, size_t buf_len,\n"
34528 "                  const uint64_t *array, size_t array_len);\n"
34529 "\n"
34530 msgstr ""
34531
34532 #. type: textblock
34533 #: ../src/guestfs.pod:1891
34534 msgid ""
34535 "This is the type of the event callback function that you have to provide."
34536 msgstr ""
34537
34538 #. type: textblock
34539 #: ../src/guestfs.pod:1894
34540 msgid ""
34541 "The basic parameters are: the handle (C<g>), the opaque user pointer "
34542 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
34543 "handle, and C<flags> which in the current API you should ignore."
34544 msgstr ""
34545
34546 #. type: textblock
34547 #: ../src/guestfs.pod:1898
34548 msgid ""
34549 "The remaining parameters contain the event payload (if any).  Each event may "
34550 "contain a payload, which usually relates to the event class, but for future "
34551 "proofing your code should be written to handle any payload for any event "
34552 "class."
34553 msgstr ""
34554
34555 #. type: textblock
34556 #: ../src/guestfs.pod:1903
34557 msgid ""
34558 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
34559 "there is no message buffer).  Note that this message buffer can contain "
34560 "arbitrary 8 bit data, including NUL bytes."
34561 msgstr ""
34562
34563 #. type: textblock
34564 #: ../src/guestfs.pod:1907
34565 msgid ""
34566 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
34567 "moment this is only used for progress messages."
34568 msgstr ""
34569
34570 #. type: =head3
34571 #: ../src/guestfs.pod:1910
34572 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
34573 msgstr ""
34574
34575 #. type: textblock
34576 #: ../src/guestfs.pod:1912
34577 msgid ""
34578 "One motivation for the generic event API was to allow GUI programs to "
34579 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
34580 "unconditionally to C<stderr>."
34581 msgstr ""
34582
34583 #. type: textblock
34584 #: ../src/guestfs.pod:1916
34585 msgid ""
34586 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
34587 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
34588 "messages are not events; you must capture error messages separately)."
34589 msgstr ""
34590
34591 #. type: textblock
34592 #: ../src/guestfs.pod:1921
34593 msgid ""
34594 "Programs have to set up a callback to capture the classes of events of "
34595 "interest:"
34596 msgstr ""
34597
34598 #. type: verbatim
34599 #: ../src/guestfs.pod:1924
34600 #, no-wrap
34601 msgid ""
34602 " int eh =\n"
34603 "   guestfs_set_event_callback\n"
34604 "     (g, message_callback,\n"
34605 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
34606 "      GUESTFS_EVENT_TRACE,\n"
34607 "      0, NULL) == -1)\n"
34608 " if (eh == -1) {\n"
34609 "   // handle error in the usual way\n"
34610 " }\n"
34611 "\n"
34612 msgstr ""
34613
34614 #. type: textblock
34615 #: ../src/guestfs.pod:1934
34616 msgid ""
34617 "The callback can then direct messages to the appropriate place.  In this "
34618 "example, messages are directed to syslog:"
34619 msgstr ""
34620
34621 #. type: verbatim
34622 #: ../src/guestfs.pod:1937
34623 #, no-wrap
34624 msgid ""
34625 " static void\n"
34626 " message_callback (\n"
34627 "         guestfs_h *g,\n"
34628 "         void *opaque,\n"
34629 "         uint64_t event,\n"
34630 "         int event_handle,\n"
34631 "         int flags,\n"
34632 "         const char *buf, size_t buf_len,\n"
34633 "         const uint64_t *array, size_t array_len)\n"
34634 " {\n"
34635 "   const int priority = LOG_USER|LOG_INFO;\n"
34636 "   if (buf_len > 0)\n"
34637 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
34638 " }\n"
34639 "\n"
34640 msgstr ""
34641
34642 #. type: =head1
34643 #: ../src/guestfs.pod:1952
34644 msgid "CANCELLING LONG TRANSFERS"
34645 msgstr ""
34646
34647 #. type: textblock
34648 #: ../src/guestfs.pod:1954
34649 msgid ""
34650 "Some operations can be cancelled by the caller while they are in progress.  "
34651 "Currently only operations that involve uploading or downloading data can be "
34652 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
34653 "parameters in the generator)."
34654 msgstr ""
34655
34656 #. type: =head2
34657 #: ../src/guestfs.pod:1959
34658 msgid "guestfs_user_cancel"
34659 msgstr ""
34660
34661 #. type: verbatim
34662 #: ../src/guestfs.pod:1961
34663 #, no-wrap
34664 msgid ""
34665 " void guestfs_user_cancel (guestfs_h *g);\n"
34666 "\n"
34667 msgstr ""
34668
34669 #. type: textblock
34670 #: ../src/guestfs.pod:1963
34671 msgid ""
34672 "C<guestfs_user_cancel> cancels the current upload or download operation."
34673 msgstr ""
34674
34675 #. type: textblock
34676 #: ../src/guestfs.pod:1966
34677 msgid ""
34678 "Unlike most other libguestfs calls, this function is signal safe and thread "
34679 "safe.  You can call it from a signal handler or from another thread, without "
34680 "needing to do any locking."
34681 msgstr ""
34682
34683 #. type: textblock
34684 #: ../src/guestfs.pod:1970
34685 msgid ""
34686 "The transfer that was in progress (if there is one) will stop shortly "
34687 "afterwards, and will return an error.  The errno (see L</"
34688 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
34689 "out if the operation was cancelled or failed because of another error."
34690 msgstr ""
34691
34692 #. type: textblock
34693 #: ../src/guestfs.pod:1976
34694 msgid ""
34695 "No cleanup is performed: for example, if a file was being uploaded then "
34696 "after cancellation there may be a partially uploaded file.  It is the "
34697 "caller's responsibility to clean up if necessary."
34698 msgstr ""
34699
34700 #. type: textblock
34701 #: ../src/guestfs.pod:1980
34702 msgid "There are two common places that you might call C<guestfs_user_cancel>."
34703 msgstr ""
34704
34705 #. type: textblock
34706 #: ../src/guestfs.pod:1982
34707 msgid ""
34708 "In an interactive text-based program, you might call it from a C<SIGINT> "
34709 "signal handler so that pressing C<^C> cancels the current operation.  (You "
34710 "also need to call L</guestfs_set_pgroup> so that child processes don't "
34711 "receive the C<^C> signal)."
34712 msgstr ""
34713
34714 #. type: textblock
34715 #: ../src/guestfs.pod:1987
34716 msgid ""
34717 "In a graphical program, when the main thread is displaying a progress bar "
34718 "with a cancel button, wire up the cancel button to call this function."
34719 msgstr ""
34720
34721 #. type: =head1
34722 #: ../src/guestfs.pod:1991
34723 msgid "PRIVATE DATA AREA"
34724 msgstr ""
34725
34726 #. type: textblock
34727 #: ../src/guestfs.pod:1993
34728 msgid ""
34729 "You can attach named pieces of private data to the libguestfs handle, fetch "
34730 "them by name, and walk over them, for the lifetime of the handle.  This is "
34731 "called the private data area and is only available from the C API."
34732 msgstr ""
34733
34734 #. type: textblock
34735 #: ../src/guestfs.pod:1998
34736 msgid "To attach a named piece of data, use the following call:"
34737 msgstr ""
34738
34739 #. type: verbatim
34740 #: ../src/guestfs.pod:2000
34741 #, no-wrap
34742 msgid ""
34743 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
34744 "\n"
34745 msgstr ""
34746
34747 #. type: textblock
34748 #: ../src/guestfs.pod:2002
34749 msgid ""
34750 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
34751 "pointer (which can be C<NULL>).  Any previous item with the same key is "
34752 "overwritten."
34753 msgstr ""
34754
34755 #. type: textblock
34756 #: ../src/guestfs.pod:2006
34757 msgid ""
34758 "You can use any C<key> you want, but your key should I<not> start with an "
34759 "underscore character.  Keys beginning with an underscore character are "
34760 "reserved for internal libguestfs purposes (eg. for implementing language "
34761 "bindings).  It is recommended that you prefix the key with some unique "
34762 "string to avoid collisions with other users."
34763 msgstr ""
34764
34765 #. type: textblock
34766 #: ../src/guestfs.pod:2012
34767 msgid "To retrieve the pointer, use:"
34768 msgstr ""
34769
34770 #. type: verbatim
34771 #: ../src/guestfs.pod:2014
34772 #, no-wrap
34773 msgid ""
34774 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
34775 "\n"
34776 msgstr ""
34777
34778 #. type: textblock
34779 #: ../src/guestfs.pod:2016
34780 msgid ""
34781 "This function returns C<NULL> if either no data is found associated with "
34782 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
34783 "C<NULL>."
34784 msgstr ""
34785
34786 #. type: textblock
34787 #: ../src/guestfs.pod:2020
34788 msgid ""
34789 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
34790 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
34791 "all.  In particular, libguestfs does I<not> try to free the data when the "
34792 "handle is closed.  If the data must be freed, then the caller must either "
34793 "free it before calling L</guestfs_close> or must set up a close callback to "
34794 "do it (see L</GUESTFS_EVENT_CLOSE>)."
34795 msgstr ""
34796
34797 #. type: textblock
34798 #: ../src/guestfs.pod:2027
34799 msgid "To walk over all entries, use these two functions:"
34800 msgstr ""
34801
34802 #. type: verbatim
34803 #: ../src/guestfs.pod:2029
34804 #, no-wrap
34805 msgid ""
34806 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
34807 "\n"
34808 msgstr ""
34809
34810 #. type: verbatim
34811 #: ../src/guestfs.pod:2031
34812 #, no-wrap
34813 msgid ""
34814 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
34815 "\n"
34816 msgstr ""
34817
34818 #. type: textblock
34819 #: ../src/guestfs.pod:2033
34820 msgid ""
34821 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
34822 "not have any particular meaning -- keys are not returned in any defined "
34823 "order).  A pointer to the key is returned in C<*key_rtn> and the "
34824 "corresponding data pointer is returned from the function.  C<NULL> is "
34825 "returned if there are no keys stored in the handle."
34826 msgstr ""
34827
34828 #. type: textblock
34829 #: ../src/guestfs.pod:2039
34830 msgid ""
34831 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
34832 "value of this function is also C<NULL> is there are no further entries to "
34833 "return."
34834 msgstr ""
34835
34836 #. type: textblock
34837 #: ../src/guestfs.pod:2043
34838 msgid "Notes about walking over entries:"
34839 msgstr ""
34840
34841 #. type: textblock
34842 #: ../src/guestfs.pod:2049
34843 msgid ""
34844 "You must not call C<guestfs_set_private> while walking over the entries."
34845 msgstr ""
34846
34847 #. type: textblock
34848 #: ../src/guestfs.pod:2054
34849 msgid ""
34850 "The handle maintains an internal iterator which is reset when you call "
34851 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
34852 "call C<guestfs_set_private>."
34853 msgstr ""
34854
34855 #. type: textblock
34856 #: ../src/guestfs.pod:2060
34857 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
34858 msgstr ""
34859
34860 #. type: verbatim
34861 #: ../src/guestfs.pod:2062
34862 #, no-wrap
34863 msgid ""
34864 " guestfs_set_private (g, key, NULL);\n"
34865 "\n"
34866 msgstr ""
34867
34868 #. type: textblock
34869 #: ../src/guestfs.pod:2064
34870 msgid "then that C<key> is not returned when walking."
34871 msgstr ""
34872
34873 #. type: textblock
34874 #: ../src/guestfs.pod:2068
34875 msgid ""
34876 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
34877 "C<guestfs_next_private> or C<guestfs_set_private>."
34878 msgstr ""
34879
34880 #. type: textblock
34881 #: ../src/guestfs.pod:2074
34882 msgid ""
34883 "The following example code shows how to print all keys and data pointers "
34884 "that are associated with the handle C<g>:"
34885 msgstr ""
34886
34887 #. type: verbatim
34888 #: ../src/guestfs.pod:2077
34889 #, no-wrap
34890 msgid ""
34891 " const char *key;\n"
34892 " void *data = guestfs_first_private (g, &key);\n"
34893 " while (data != NULL)\n"
34894 "   {\n"
34895 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
34896 "     data = guestfs_next_private (g, &key);\n"
34897 "   }\n"
34898 "\n"
34899 msgstr ""
34900
34901 #. type: textblock
34902 #: ../src/guestfs.pod:2085
34903 msgid ""
34904 "More commonly you are only interested in keys that begin with an application-"
34905 "specific prefix C<foo_>.  Modify the loop like so:"
34906 msgstr ""
34907
34908 #. type: verbatim
34909 #: ../src/guestfs.pod:2088
34910 #, no-wrap
34911 msgid ""
34912 " const char *key;\n"
34913 " void *data = guestfs_first_private (g, &key);\n"
34914 " while (data != NULL)\n"
34915 "   {\n"
34916 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
34917 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
34918 "     data = guestfs_next_private (g, &key);\n"
34919 "   }\n"
34920 "\n"
34921 msgstr ""
34922
34923 #. type: textblock
34924 #: ../src/guestfs.pod:2097
34925 msgid ""
34926 "If you need to modify keys while walking, then you have to jump back to the "
34927 "beginning of the loop.  For example, to delete all keys prefixed with "
34928 "C<foo_>:"
34929 msgstr ""
34930
34931 #. type: verbatim
34932 #: ../src/guestfs.pod:2101
34933 #, no-wrap
34934 msgid ""
34935 "  const char *key;\n"
34936 "  void *data;\n"
34937 " again:\n"
34938 "  data = guestfs_first_private (g, &key);\n"
34939 "  while (data != NULL)\n"
34940 "    {\n"
34941 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
34942 "        {\n"
34943 "          guestfs_set_private (g, key, NULL);\n"
34944 "          /* note that 'key' pointer is now invalid, and so is\n"
34945 "             the internal iterator */\n"
34946 "          goto again;\n"
34947 "        }\n"
34948 "      data = guestfs_next_private (g, &key);\n"
34949 "    }\n"
34950 "\n"
34951 msgstr ""
34952
34953 #. type: textblock
34954 #: ../src/guestfs.pod:2117
34955 msgid ""
34956 "Note that the above loop is guaranteed to terminate because the keys are "
34957 "being deleted, but other manipulations of keys within the loop might not "
34958 "terminate unless you also maintain an indication of which keys have been "
34959 "visited."
34960 msgstr ""
34961
34962 #. type: =end
34963 #: ../src/guestfs.pod:2122 ../src/guestfs.pod:2127
34964 msgid "html"
34965 msgstr ""
34966
34967 #. type: textblock
34968 #: ../src/guestfs.pod:2124
34969 msgid ""
34970 "<!-- old anchor for the next section --> <a name="
34971 "\"state_machine_and_low_level_event_api\"/>"
34972 msgstr ""
34973
34974 #. type: =head1
34975 #: ../src/guestfs.pod:2129
34976 msgid "ARCHITECTURE"
34977 msgstr ""
34978
34979 #. type: textblock
34980 #: ../src/guestfs.pod:2131
34981 msgid ""
34982 "Internally, libguestfs is implemented by running an appliance (a special "
34983 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
34984 "process of the main program."
34985 msgstr ""
34986
34987 #. type: verbatim
34988 #: ../src/guestfs.pod:2135
34989 #, no-wrap
34990 msgid ""
34991 "  ___________________\n"
34992 " /                   \\\n"
34993 " | main program      |\n"
34994 " |                   |\n"
34995 " |                   |           child process / appliance\n"
34996 " |                   |           __________________________\n"
34997 " |                   |          / qemu                     \\\n"
34998 " +-------------------+   RPC    |      +-----------------+ |\n"
34999 " | libguestfs     <--------------------> guestfsd        | |\n"
35000 " |                   |          |      +-----------------+ |\n"
35001 " \\___________________/          |      | Linux kernel    | |\n"
35002 "                                |      +--^--------------+ |\n"
35003 "                                \\_________|________________/\n"
35004 "                                          |\n"
35005 "                                   _______v______\n"
35006 "                                  /              \\\n"
35007 "                                  | Device or    |\n"
35008 "                                  | disk image   |\n"
35009 "                                  \\______________/\n"
35010 "\n"
35011 msgstr ""
35012
35013 #. type: textblock
35014 #: ../src/guestfs.pod:2155
35015 msgid ""
35016 "The library, linked to the main program, creates the child process and hence "
35017 "the appliance in the L</guestfs_launch> function."
35018 msgstr ""
35019
35020 #. type: textblock
35021 #: ../src/guestfs.pod:2158
35022 msgid ""
35023 "Inside the appliance is a Linux kernel and a complete stack of userspace "
35024 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
35025 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
35026 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
35027 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
35028 "attached to the qemu process which translates device access by the "
35029 "appliance's Linux kernel into accesses to the image."
35030 msgstr ""
35031
35032 #. type: textblock
35033 #: ../src/guestfs.pod:2167
35034 msgid ""
35035 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
35036 "Although the disk image you are attached to might also be used by some "
35037 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
35038 "care if both libguestfs's qemu process and your virtual machine are trying "
35039 "to update the disk image at the same time, since these usually results in "
35040 "massive disk corruption)."
35041 msgstr ""
35042
35043 #. type: =head1
35044 #: ../src/guestfs.pod:2174
35045 msgid "STATE MACHINE"
35046 msgstr ""
35047
35048 #. type: textblock
35049 #: ../src/guestfs.pod:2176
35050 msgid "libguestfs uses a state machine to model the child process:"
35051 msgstr ""
35052
35053 #. type: verbatim
35054 #: ../src/guestfs.pod:2178
35055 #, no-wrap
35056 msgid ""
35057 "                         |\n"
35058 "                    guestfs_create\n"
35059 "                         |\n"
35060 "                         |\n"
35061 "                     ____V_____\n"
35062 "                    /          \\\n"
35063 "                    |  CONFIG  |\n"
35064 "                    \\__________/\n"
35065 "                     ^ ^   ^  \\\n"
35066 "                    /  |    \\  \\ guestfs_launch\n"
35067 "                   /   |    _\\__V______\n"
35068 "                  /    |   /           \\\n"
35069 "                 /     |   | LAUNCHING |\n"
35070 "                /      |   \\___________/\n"
35071 "               /       |       /\n"
35072 "              /        |  guestfs_launch\n"
35073 "             /         |     /\n"
35074 "    ______  /        __|____V\n"
35075 "   /      \\ ------> /        \\\n"
35076 "   | BUSY |         | READY  |\n"
35077 "   \\______/ <------ \\________/\n"
35078 "\n"
35079 msgstr ""
35080
35081 #. type: textblock
35082 #: ../src/guestfs.pod:2200
35083 msgid ""
35084 "The normal transitions are (1) CONFIG (when the handle is created, but there "
35085 "is no child process), (2) LAUNCHING (when the child process is booting up), "
35086 "(3) alternating between READY and BUSY as commands are issued to, and "
35087 "carried out by, the child process."
35088 msgstr ""
35089
35090 #. type: textblock
35091 #: ../src/guestfs.pod:2205
35092 msgid ""
35093 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
35094 "asynchronously at any time (eg. due to some internal error), and that causes "
35095 "the state to transition back to CONFIG."
35096 msgstr ""
35097
35098 #. type: textblock
35099 #: ../src/guestfs.pod:2209
35100 msgid ""
35101 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
35102 "issued when in the CONFIG state."
35103 msgstr ""
35104
35105 #. type: textblock
35106 #: ../src/guestfs.pod:2212
35107 msgid ""
35108 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
35109 "L</guestfs_launch> blocks until the child process is READY to accept "
35110 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
35111 "moves the state from CONFIG to LAUNCHING while it is running."
35112 msgstr ""
35113
35114 #. type: textblock
35115 #: ../src/guestfs.pod:2218
35116 msgid ""
35117 "API actions such as L</guestfs_mount> can only be issued when in the READY "
35118 "state.  These API calls block waiting for the command to be carried out (ie. "
35119 "the state to transition to BUSY and then back to READY).  There are no non-"
35120 "blocking versions, and no way to issue more than one command per handle at "
35121 "the same time."
35122 msgstr ""
35123
35124 #. type: textblock
35125 #: ../src/guestfs.pod:2224
35126 msgid ""
35127 "Finally, the child process sends asynchronous messages back to the main "
35128 "program, such as kernel log messages.  You can register a callback to "
35129 "receive these messages."
35130 msgstr ""
35131
35132 #. type: =head1
35133 #: ../src/guestfs.pod:2228
35134 msgid "INTERNALS"
35135 msgstr ""
35136
35137 #. type: =head2
35138 #: ../src/guestfs.pod:2230
35139 msgid "APPLIANCE BOOT PROCESS"
35140 msgstr ""
35141
35142 #. type: textblock
35143 #: ../src/guestfs.pod:2232
35144 msgid ""
35145 "This process has evolved and continues to evolve.  The description here "
35146 "corresponds only to the current version of libguestfs and is provided for "
35147 "information only."
35148 msgstr ""
35149
35150 #. type: textblock
35151 #: ../src/guestfs.pod:2236
35152 msgid ""
35153 "In order to follow the stages involved below, enable libguestfs debugging "
35154 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
35155 msgstr ""
35156
35157 #. type: =item
35158 #: ../src/guestfs.pod:2241
35159 msgid "Create the appliance"
35160 msgstr ""
35161
35162 #. type: textblock
35163 #: ../src/guestfs.pod:2243
35164 msgid ""
35165 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
35166 "initrd and the appliance."
35167 msgstr ""
35168
35169 #. type: textblock
35170 #: ../src/guestfs.pod:2246
35171 msgid ""
35172 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
35173 "directory if C<TMPDIR> is set)."
35174 msgstr ""
35175
35176 #. type: textblock
35177 #: ../src/guestfs.pod:2249
35178 msgid ""
35179 "For a complete description of how the appliance is created and cached, read "
35180 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
35181 msgstr ""
35182
35183 #. type: =item
35184 #: ../src/guestfs.pod:2253
35185 msgid "Start qemu and boot the kernel"
35186 msgstr ""
35187
35188 #. type: textblock
35189 #: ../src/guestfs.pod:2255
35190 msgid "qemu is invoked to boot the kernel."
35191 msgstr ""
35192
35193 #. type: =item
35194 #: ../src/guestfs.pod:2257
35195 msgid "Run the initrd"
35196 msgstr ""
35197
35198 #. type: textblock
35199 #: ../src/guestfs.pod:2259
35200 msgid ""
35201 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
35202 "appliance.  The purpose of the initrd is to load enough kernel modules in "
35203 "order that the appliance itself can be mounted and started."
35204 msgstr ""
35205
35206 #. type: textblock
35207 #: ../src/guestfs.pod:2263
35208 msgid ""
35209 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
35210 "initrd>."
35211 msgstr ""
35212
35213 #. type: textblock
35214 #: ../src/guestfs.pod:2266
35215 msgid ""
35216 "When the initrd has started you will see messages showing that kernel "
35217 "modules are being loaded, similar to this:"
35218 msgstr ""
35219
35220 #. type: verbatim
35221 #: ../src/guestfs.pod:2269
35222 #, no-wrap
35223 msgid ""
35224 " febootstrap: ext2 mini initrd starting up\n"
35225 " febootstrap: mounting /sys\n"
35226 " febootstrap: internal insmod libcrc32c.ko\n"
35227 " febootstrap: internal insmod crc32c-intel.ko\n"
35228 "\n"
35229 msgstr ""
35230
35231 #. type: =item
35232 #: ../src/guestfs.pod:2274
35233 msgid "Find and mount the appliance device"
35234 msgstr ""
35235
35236 #. type: textblock
35237 #: ../src/guestfs.pod:2276
35238 msgid ""
35239 "The appliance is a sparse file containing an ext2 filesystem which contains "
35240 "a familiar (although reduced in size) Linux operating system.  It would "
35241 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
35242 msgstr ""
35243
35244 #. type: textblock
35245 #: ../src/guestfs.pod:2280
35246 msgid ""
35247 "The regular disks being inspected by libguestfs are the first devices "
35248 "exposed by qemu (eg. as C</dev/vda>)."
35249 msgstr ""
35250
35251 #. type: textblock
35252 #: ../src/guestfs.pod:2283
35253 msgid ""
35254 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
35255 "there was only one regular disk)."
35256 msgstr ""
35257
35258 #. type: textblock
35259 #: ../src/guestfs.pod:2286
35260 msgid ""
35261 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
35262 "and switch root into the appliance, and run C</init> from the appliance."
35263 msgstr ""
35264
35265 #. type: textblock
35266 #: ../src/guestfs.pod:2290
35267 msgid "If this works successfully you will see messages such as:"
35268 msgstr ""
35269
35270 #. type: verbatim
35271 #: ../src/guestfs.pod:2292
35272 #, no-wrap
35273 msgid ""
35274 " febootstrap: picked /sys/block/vdb/dev as root device\n"
35275 " febootstrap: creating /dev/root as block special 252:16\n"
35276 " febootstrap: mounting new root on /root\n"
35277 " febootstrap: chroot\n"
35278 " Starting /init script ...\n"
35279 "\n"
35280 msgstr ""
35281
35282 #. type: textblock
35283 #: ../src/guestfs.pod:2298
35284 msgid ""
35285 "Note that C<Starting /init script ...> indicates that the appliance's init "
35286 "script is now running."
35287 msgstr ""
35288
35289 #. type: =item
35290 #: ../src/guestfs.pod:2301
35291 msgid "Initialize the appliance"
35292 msgstr ""
35293
35294 #. type: textblock
35295 #: ../src/guestfs.pod:2303
35296 msgid ""
35297 "The appliance itself now initializes itself.  This involves starting certain "
35298 "processes like C<udev>, possibly printing some debug information, and "
35299 "finally running the daemon (C<guestfsd>)."
35300 msgstr ""
35301
35302 #. type: =item
35303 #: ../src/guestfs.pod:2307
35304 msgid "The daemon"
35305 msgstr ""
35306
35307 #. type: textblock
35308 #: ../src/guestfs.pod:2309
35309 msgid ""
35310 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
35311 "should see:"
35312 msgstr ""
35313
35314 #. type: verbatim
35315 #: ../src/guestfs.pod:2312
35316 #, no-wrap
35317 msgid ""
35318 " verbose daemon enabled\n"
35319 "\n"
35320 msgstr ""
35321
35322 #. type: textblock
35323 #: ../src/guestfs.pod:2314
35324 msgid ""
35325 "The daemon expects to see a named virtio-serial port exposed by qemu and "
35326 "connected on the other end to the library."
35327 msgstr ""
35328
35329 #. type: textblock
35330 #: ../src/guestfs.pod:2317
35331 msgid ""
35332 "The daemon connects to this port (and hence to the library) and sends a four "
35333 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
35334 "protocol (see below)."
35335 msgstr ""
35336
35337 #. type: =head2
35338 #: ../src/guestfs.pod:2323
35339 msgid "COMMUNICATION PROTOCOL"
35340 msgstr ""
35341
35342 #. type: textblock
35343 #: ../src/guestfs.pod:2325
35344 msgid ""
35345 "Don't rely on using this protocol directly.  This section documents how it "
35346 "currently works, but it may change at any time."
35347 msgstr ""
35348
35349 #. type: textblock
35350 #: ../src/guestfs.pod:2328
35351 msgid ""
35352 "The protocol used to talk between the library and the daemon running inside "
35353 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
35354 "1014, RFC 1832, RFC 4506)."
35355 msgstr ""
35356
35357 #. type: textblock
35358 #: ../src/guestfs.pod:2332
35359 msgid ""
35360 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
35361 "this file is automatically generated)."
35362 msgstr ""
35363
35364 #. type: textblock
35365 #: ../src/guestfs.pod:2335
35366 msgid ""
35367 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
35368 "and C<FileOut> parameters, which are handled with very simple request/reply "
35369 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
35370 "parameters, which use the same request and reply messages, but they may also "
35371 "be followed by files sent using a chunked encoding."
35372 msgstr ""
35373
35374 #. type: =head3
35375 #: ../src/guestfs.pod:2342
35376 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
35377 msgstr ""
35378
35379 #. type: textblock
35380 #: ../src/guestfs.pod:2344
35381 msgid "For ordinary functions, the request message is:"
35382 msgstr ""
35383
35384 #. type: verbatim
35385 #: ../src/guestfs.pod:2346
35386 #, no-wrap
35387 msgid ""
35388 " total length (header + arguments,\n"
35389 "      but not including the length word itself)\n"
35390 " struct guestfs_message_header (encoded as XDR)\n"
35391 " struct guestfs_<foo>_args (encoded as XDR)\n"
35392 "\n"
35393 msgstr ""
35394
35395 #. type: textblock
35396 #: ../src/guestfs.pod:2351
35397 msgid ""
35398 "The total length field allows the daemon to allocate a fixed size buffer "
35399 "into which it slurps the rest of the message.  As a result, the total length "
35400 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
35401 "effective size of any request is limited to somewhere under this size."
35402 msgstr ""
35403
35404 #. type: textblock
35405 #: ../src/guestfs.pod:2357
35406 msgid ""
35407 "Note also that many functions don't take any arguments, in which case the "
35408 "C<guestfs_I<foo>_args> is completely omitted."
35409 msgstr ""
35410
35411 #. type: textblock
35412 #: ../src/guestfs.pod:2360
35413 msgid ""
35414 "The header contains the procedure number (C<guestfs_proc>) which is how the "
35415 "receiver knows what type of args structure to expect, or none at all."
35416 msgstr ""
35417
35418 #. type: textblock
35419 #: ../src/guestfs.pod:2364
35420 msgid ""
35421 "For functions that take optional arguments, the optional arguments are "
35422 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
35423 "arguments.  A bitmask in the header indicates which optional arguments are "
35424 "meaningful.  The bitmask is also checked to see if it contains bits set "
35425 "which the daemon does not know about (eg. if more optional arguments were "
35426 "added in a later version of the library), and this causes the call to be "
35427 "rejected."
35428 msgstr ""
35429
35430 #. type: textblock
35431 #: ../src/guestfs.pod:2372
35432 msgid "The reply message for ordinary functions is:"
35433 msgstr ""
35434
35435 #. type: verbatim
35436 #: ../src/guestfs.pod:2374
35437 #, no-wrap
35438 msgid ""
35439 " total length (header + ret,\n"
35440 "      but not including the length word itself)\n"
35441 " struct guestfs_message_header (encoded as XDR)\n"
35442 " struct guestfs_<foo>_ret (encoded as XDR)\n"
35443 "\n"
35444 msgstr ""
35445
35446 #. type: textblock
35447 #: ../src/guestfs.pod:2379
35448 msgid ""
35449 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
35450 "functions that return no formal return values."
35451 msgstr ""
35452
35453 #. type: textblock
35454 #: ../src/guestfs.pod:2382
35455 msgid ""
35456 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
35457 msgstr ""
35458
35459 #. type: textblock
35460 #: ../src/guestfs.pod:2385
35461 msgid ""
35462 "In the case of an error, a flag is set in the header, and the reply message "
35463 "is slightly changed:"
35464 msgstr ""
35465
35466 #. type: verbatim
35467 #: ../src/guestfs.pod:2388
35468 #, no-wrap
35469 msgid ""
35470 " total length (header + error,\n"
35471 "      but not including the length word itself)\n"
35472 " struct guestfs_message_header (encoded as XDR)\n"
35473 " struct guestfs_message_error (encoded as XDR)\n"
35474 "\n"
35475 msgstr ""
35476
35477 #. type: textblock
35478 #: ../src/guestfs.pod:2393
35479 msgid ""
35480 "The C<guestfs_message_error> structure contains the error message as a "
35481 "string."
35482 msgstr ""
35483
35484 #. type: =head3
35485 #: ../src/guestfs.pod:2396
35486 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
35487 msgstr ""
35488
35489 #. type: textblock
35490 #: ../src/guestfs.pod:2398
35491 msgid ""
35492 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
35493 "The normal request message is sent (see above).  However this is followed by "
35494 "a sequence of file chunks."
35495 msgstr ""
35496
35497 #. type: verbatim
35498 #: ../src/guestfs.pod:2402
35499 #, no-wrap
35500 msgid ""
35501 " total length (header + arguments,\n"
35502 "      but not including the length word itself,\n"
35503 "      and not including the chunks)\n"
35504 " struct guestfs_message_header (encoded as XDR)\n"
35505 " struct guestfs_<foo>_args (encoded as XDR)\n"
35506 " sequence of chunks for FileIn param #0\n"
35507 " sequence of chunks for FileIn param #1 etc.\n"
35508 "\n"
35509 msgstr ""
35510
35511 #. type: textblock
35512 #: ../src/guestfs.pod:2410
35513 msgid "The \"sequence of chunks\" is:"
35514 msgstr ""
35515
35516 #. type: verbatim
35517 #: ../src/guestfs.pod:2412
35518 #, no-wrap
35519 msgid ""
35520 " length of chunk (not including length word itself)\n"
35521 " struct guestfs_chunk (encoded as XDR)\n"
35522 " length of chunk\n"
35523 " struct guestfs_chunk (encoded as XDR)\n"
35524 "   ...\n"
35525 " length of chunk\n"
35526 " struct guestfs_chunk (with data.data_len == 0)\n"
35527 "\n"
35528 msgstr ""
35529
35530 #. type: textblock
35531 #: ../src/guestfs.pod:2420
35532 msgid ""
35533 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
35534 "is set in the final chunk to indicate either successful completion or early "
35535 "cancellation."
35536 msgstr ""
35537
35538 #. type: textblock
35539 #: ../src/guestfs.pod:2424
35540 msgid ""
35541 "At time of writing there are no functions that have more than one FileIn "
35542 "parameter.  However this is (theoretically) supported, by sending the "
35543 "sequence of chunks for each FileIn parameter one after another (from left to "
35544 "right)."
35545 msgstr ""
35546
35547 #. type: textblock
35548 #: ../src/guestfs.pod:2429
35549 msgid ""
35550 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
35551 "transfer.  The library does this by sending a chunk with a special flag set "
35552 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
35553 "RPC, does I<not> send any reply, and goes back to reading the next request."
35554 msgstr ""
35555
35556 #. type: textblock
35557 #: ../src/guestfs.pod:2435
35558 msgid ""
35559 "The daemon may also cancel.  It does this by writing a special word "
35560 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
35561 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
35562 "cancel chunk).  The special word is chosen so that even if cancellation "
35563 "happens right at the end of the transfer (after the library has finished "
35564 "writing and has started listening for the reply), the \"spurious\" cancel "
35565 "flag will not be confused with the reply message."
35566 msgstr ""
35567
35568 #. type: textblock
35569 #: ../src/guestfs.pod:2444
35570 msgid ""
35571 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
35572 "limit), and also files where the size is not known in advance (eg. from "
35573 "pipes or sockets).  However the chunks are rather small "
35574 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
35575 "to keep much in memory."
35576 msgstr ""
35577
35578 #. type: =head3
35579 #: ../src/guestfs.pod:2450
35580 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
35581 msgstr ""
35582
35583 #. type: textblock
35584 #: ../src/guestfs.pod:2452
35585 msgid ""
35586 "The protocol for FileOut parameters is exactly the same as for FileIn "
35587 "parameters, but with the roles of daemon and library reversed."
35588 msgstr ""
35589
35590 #. type: verbatim
35591 #: ../src/guestfs.pod:2455
35592 #, no-wrap
35593 msgid ""
35594 " total length (header + ret,\n"
35595 "      but not including the length word itself,\n"
35596 "      and not including the chunks)\n"
35597 " struct guestfs_message_header (encoded as XDR)\n"
35598 " struct guestfs_<foo>_ret (encoded as XDR)\n"
35599 " sequence of chunks for FileOut param #0\n"
35600 " sequence of chunks for FileOut param #1 etc.\n"
35601 "\n"
35602 msgstr ""
35603
35604 #. type: =head3
35605 #: ../src/guestfs.pod:2463
35606 msgid "INITIAL MESSAGE"
35607 msgstr ""
35608
35609 #. type: textblock
35610 #: ../src/guestfs.pod:2465
35611 msgid ""
35612 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
35613 "which indicates that the guest and daemon is alive.  This is what L</"
35614 "guestfs_launch> waits for."
35615 msgstr ""
35616
35617 #. type: =head3
35618 #: ../src/guestfs.pod:2469
35619 msgid "PROGRESS NOTIFICATION MESSAGES"
35620 msgstr ""
35621
35622 #. type: textblock
35623 #: ../src/guestfs.pod:2471
35624 msgid ""
35625 "The daemon may send progress notification messages at any time.  These are "
35626 "distinguished by the normal length word being replaced by "
35627 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
35628 msgstr ""
35629
35630 #. type: textblock
35631 #: ../src/guestfs.pod:2475
35632 msgid ""
35633 "The library turns them into progress callbacks (see L</"
35634 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
35635 "if not."
35636 msgstr ""
35637
35638 #. type: textblock
35639 #: ../src/guestfs.pod:2479
35640 msgid ""
35641 "The daemon self-limits the frequency of progress messages it sends (see "
35642 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
35643 "messages."
35644 msgstr ""
35645
35646 #. type: =head1
35647 #: ../src/guestfs.pod:2483
35648 msgid "LIBGUESTFS VERSION NUMBERS"
35649 msgstr ""
35650
35651 #. type: textblock
35652 #: ../src/guestfs.pod:2485
35653 msgid ""
35654 "Since April 2010, libguestfs has started to make separate development and "
35655 "stable releases, along with corresponding branches in our git repository.  "
35656 "These separate releases can be identified by version number:"
35657 msgstr ""
35658
35659 #. type: verbatim
35660 #: ../src/guestfs.pod:2490
35661 #, no-wrap
35662 msgid ""
35663 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
35664 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
35665 "       |\n"
35666 "       v\n"
35667 " 1  .  3  .  5\n"
35668 " ^           ^\n"
35669 " |           |\n"
35670 " |           `-------- sub-version\n"
35671 " |\n"
35672 " `------ always '1' because we don't change the ABI\n"
35673 "\n"
35674 msgstr ""
35675
35676 #. type: textblock
35677 #: ../src/guestfs.pod:2501
35678 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
35679 msgstr ""
35680
35681 #. type: textblock
35682 #: ../src/guestfs.pod:2503
35683 msgid ""
35684 "As time passes we cherry pick fixes from the development branch and backport "
35685 "those into the stable branch, the effect being that the stable branch should "
35686 "get more stable and less buggy over time.  So the stable releases are ideal "
35687 "for people who don't need new features but would just like the software to "
35688 "work."
35689 msgstr ""
35690
35691 #. type: textblock
35692 #: ../src/guestfs.pod:2509
35693 msgid "Our criteria for backporting changes are:"
35694 msgstr ""
35695
35696 #. type: textblock
35697 #: ../src/guestfs.pod:2515
35698 msgid ""
35699 "Documentation changes which don't affect any code are backported unless the "
35700 "documentation refers to a future feature which is not in stable."
35701 msgstr ""
35702
35703 #. type: textblock
35704 #: ../src/guestfs.pod:2521
35705 msgid ""
35706 "Bug fixes which are not controversial, fix obvious problems, and have been "
35707 "well tested are backported."
35708 msgstr ""
35709
35710 #. type: textblock
35711 #: ../src/guestfs.pod:2526
35712 msgid ""
35713 "Simple rearrangements of code which shouldn't affect how it works get "
35714 "backported.  This is so that the code in the two branches doesn't get too "
35715 "far out of step, allowing us to backport future fixes more easily."
35716 msgstr ""
35717
35718 #. type: textblock
35719 #: ../src/guestfs.pod:2532
35720 msgid ""
35721 "We I<don't> backport new features, new APIs, new tools etc, except in one "
35722 "exceptional case: the new feature is required in order to implement an "
35723 "important bug fix."
35724 msgstr ""
35725
35726 #. type: textblock
35727 #: ../src/guestfs.pod:2538
35728 msgid ""
35729 "A new stable branch starts when we think the new features in development are "
35730 "substantial and compelling enough over the current stable branch to warrant "
35731 "it.  When that happens we create new stable and development versions 1.N.0 "
35732 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
35733 "stable at this point, but by backporting fixes from development, that branch "
35734 "will stabilize over time."
35735 msgstr ""
35736
35737 #. type: =head1
35738 #: ../src/guestfs.pod:2546
35739 msgid "EXTENDING LIBGUESTFS"
35740 msgstr ""
35741
35742 #. type: =head2
35743 #: ../src/guestfs.pod:2548
35744 msgid "ADDING A NEW API ACTION"
35745 msgstr ""
35746
35747 #. type: textblock
35748 #: ../src/guestfs.pod:2550
35749 msgid ""
35750 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
35751 "documentation) are generated, and this makes it easy to extend the "
35752 "libguestfs API."
35753 msgstr ""
35754
35755 #. type: textblock
35756 #: ../src/guestfs.pod:2554
35757 msgid "To add a new API action there are two changes:"
35758 msgstr ""
35759
35760 #. type: textblock
35761 #: ../src/guestfs.pod:2560
35762 msgid ""
35763 "You need to add a description of the call (name, parameters, return type, "
35764 "tests, documentation) to C<generator/generator_actions.ml>."
35765 msgstr ""
35766
35767 #. type: textblock
35768 #: ../src/guestfs.pod:2563
35769 msgid ""
35770 "There are two sorts of API action, depending on whether the call goes "
35771 "through to the daemon in the appliance, or is serviced entirely by the "
35772 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
35773 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
35774 "an example of the latter, since a trace flag is maintained in the handle and "
35775 "all tracing is done on the library side."
35776 msgstr ""
35777
35778 #. type: textblock
35779 #: ../src/guestfs.pod:2571
35780 msgid ""
35781 "Most new actions are of the first type, and get added to the "
35782 "C<daemon_functions> list.  Each function has a unique procedure number used "
35783 "in the RPC protocol which is assigned to that action when we publish "
35784 "libguestfs and cannot be reused.  Take the latest procedure number and "
35785 "increment it."
35786 msgstr ""
35787
35788 #. type: textblock
35789 #: ../src/guestfs.pod:2577
35790 msgid ""
35791 "For library-only actions of the second type, add to the "
35792 "C<non_daemon_functions> list.  Since these functions are serviced by the "
35793 "library and do not travel over the RPC mechanism to the daemon, these "
35794 "functions do not need a procedure number, and so the procedure number is set "
35795 "to C<-1>."
35796 msgstr ""
35797
35798 #. type: textblock
35799 #: ../src/guestfs.pod:2585
35800 msgid "Implement the action (in C):"
35801 msgstr ""
35802
35803 #. type: textblock
35804 #: ../src/guestfs.pod:2587
35805 msgid ""
35806 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
35807 "C<daemon/> directory."
35808 msgstr ""
35809
35810 #. type: textblock
35811 #: ../src/guestfs.pod:2590
35812 msgid ""
35813 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
35814 "(note: double underscore) in the C<src/> directory."
35815 msgstr ""
35816
35817 #. type: textblock
35818 #: ../src/guestfs.pod:2593
35819 msgid "In either case, use another function as an example of what to do."
35820 msgstr ""
35821
35822 #. type: textblock
35823 #: ../src/guestfs.pod:2597
35824 msgid "After making these changes, use C<make> to compile."
35825 msgstr ""
35826
35827 #. type: textblock
35828 #: ../src/guestfs.pod:2599
35829 msgid ""
35830 "Note that you don't need to implement the RPC, language bindings, manual "
35831 "pages or anything else.  It's all automatically generated from the OCaml "
35832 "description."
35833 msgstr ""
35834
35835 #. type: =head2
35836 #: ../src/guestfs.pod:2603
35837 msgid "ADDING TESTS FOR AN API ACTION"
35838 msgstr ""
35839
35840 #. type: textblock
35841 #: ../src/guestfs.pod:2605
35842 msgid ""
35843 "You can supply zero or as many tests as you want per API call.  The tests "
35844 "can either be added as part of the API description (C<generator/"
35845 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
35846 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
35847 "slower, so if possible use the first method."
35848 msgstr ""
35849
35850 #. type: textblock
35851 #: ../src/guestfs.pod:2611
35852 msgid ""
35853 "The following describes the test environment used when you add an API test "
35854 "in C<generator_actions.ml>."
35855 msgstr ""
35856
35857 #. type: textblock
35858 #: ../src/guestfs.pod:2614
35859 msgid "The test environment has 4 block devices:"
35860 msgstr ""
35861
35862 #. type: =item
35863 #: ../src/guestfs.pod:2618
35864 msgid "C</dev/sda> 500MB"
35865 msgstr ""
35866
35867 #. type: textblock
35868 #: ../src/guestfs.pod:2620
35869 msgid "General block device for testing."
35870 msgstr ""
35871
35872 #. type: =item
35873 #: ../src/guestfs.pod:2622
35874 msgid "C</dev/sdb> 50MB"
35875 msgstr ""
35876
35877 #. type: textblock
35878 #: ../src/guestfs.pod:2624
35879 msgid ""
35880 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
35881 "operations."
35882 msgstr ""
35883
35884 #. type: =item
35885 #: ../src/guestfs.pod:2627
35886 msgid "C</dev/sdc> 10MB"
35887 msgstr ""
35888
35889 #. type: textblock
35890 #: ../src/guestfs.pod:2629
35891 msgid "Used in a few tests where two block devices are needed."
35892 msgstr ""
35893
35894 #. type: =item
35895 #: ../src/guestfs.pod:2631
35896 msgid "C</dev/sdd>"
35897 msgstr ""
35898
35899 #. type: textblock
35900 #: ../src/guestfs.pod:2633
35901 msgid "ISO with fixed content (see C<images/test.iso>)."
35902 msgstr ""
35903
35904 #. type: textblock
35905 #: ../src/guestfs.pod:2637
35906 msgid ""
35907 "To be able to run the tests in a reasonable amount of time, the libguestfs "
35908 "appliance and block devices are reused between tests.  So don't try testing "
35909 "L</guestfs_kill_subprocess> :-x"
35910 msgstr ""
35911
35912 #. type: textblock
35913 #: ../src/guestfs.pod:2641
35914 msgid ""
35915 "Each test starts with an initial scenario, selected using one of the "
35916 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
35917 "initialize the disks mentioned above in a particular way as documented in "
35918 "C<generator_types.ml>.  You should not assume anything about the previous "
35919 "contents of other disks that are not initialized."
35920 msgstr ""
35921
35922 #. type: textblock
35923 #: ../src/guestfs.pod:2647
35924 msgid ""
35925 "You can add a prerequisite clause to any individual test.  This is a run-"
35926 "time check, which, if it fails, causes the test to be skipped.  Useful if "
35927 "testing a command which might not work on all variations of libguestfs "
35928 "builds.  A test that has prerequisite of C<Always> means to run "
35929 "unconditionally."
35930 msgstr ""
35931
35932 #. type: textblock
35933 #: ../src/guestfs.pod:2653
35934 msgid ""
35935 "In addition, packagers can skip individual tests by setting environment "
35936 "variables before running C<make check>."
35937 msgstr ""
35938
35939 #. type: verbatim
35940 #: ../src/guestfs.pod:2656
35941 #, no-wrap
35942 msgid ""
35943 " SKIP_TEST_<CMD>_<NUM>=1\n"
35944 "\n"
35945 msgstr ""
35946
35947 #. type: textblock
35948 #: ../src/guestfs.pod:2658
35949 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
35950 msgstr ""
35951
35952 #. type: textblock
35953 #: ../src/guestfs.pod:2660
35954 msgid "or:"
35955 msgstr ""
35956
35957 #. type: verbatim
35958 #: ../src/guestfs.pod:2662
35959 #, no-wrap
35960 msgid ""
35961 " SKIP_TEST_<CMD>=1\n"
35962 "\n"
35963 msgstr ""
35964
35965 #. type: textblock
35966 #: ../src/guestfs.pod:2664
35967 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
35968 msgstr ""
35969
35970 #. type: textblock
35971 #: ../src/guestfs.pod:2666
35972 msgid "Packagers can run only certain tests by setting for example:"
35973 msgstr ""
35974
35975 #. type: verbatim
35976 #: ../src/guestfs.pod:2668
35977 #, no-wrap
35978 msgid ""
35979 " TEST_ONLY=\"vfs_type zerofree\"\n"
35980 "\n"
35981 msgstr ""
35982
35983 #. type: textblock
35984 #: ../src/guestfs.pod:2670
35985 msgid ""
35986 "See C<capitests/tests.c> for more details of how these environment variables "
35987 "work."
35988 msgstr ""
35989
35990 #. type: =head2
35991 #: ../src/guestfs.pod:2673
35992 msgid "DEBUGGING NEW API ACTIONS"
35993 msgstr ""
35994
35995 #. type: textblock
35996 #: ../src/guestfs.pod:2675
35997 msgid "Test new actions work before submitting them."
35998 msgstr ""
35999
36000 #. type: textblock
36001 #: ../src/guestfs.pod:2677
36002 msgid "You can use guestfish to try out new commands."
36003 msgstr ""
36004
36005 #. type: textblock
36006 #: ../src/guestfs.pod:2679
36007 msgid ""
36008 "Debugging the daemon is a problem because it runs inside a minimal "
36009 "environment.  However you can fprintf messages in the daemon to stderr, and "
36010 "they will show up if you use C<guestfish -v>."
36011 msgstr ""
36012
36013 #. type: =head2
36014 #: ../src/guestfs.pod:2683
36015 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
36016 msgstr ""
36017
36018 #. type: textblock
36019 #: ../src/guestfs.pod:2685
36020 msgid ""
36021 "Our C source code generally adheres to some basic code-formatting "
36022 "conventions.  The existing code base is not totally consistent on this "
36023 "front, but we do prefer that contributed code be formatted similarly.  In "
36024 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
36025 "indentation level, and other than that, follow the K&R style."
36026 msgstr ""
36027
36028 #. type: textblock
36029 #: ../src/guestfs.pod:2691
36030 msgid ""
36031 "If you use Emacs, add the following to one of one of your start-up files (e."
36032 "g., ~/.emacs), to help ensure that you get indentation right:"
36033 msgstr ""
36034
36035 #. type: verbatim
36036 #: ../src/guestfs.pod:2694
36037 #, no-wrap
36038 msgid ""
36039 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
36040 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
36041 " (add-hook 'find-file-hook\n"
36042 "     '(lambda () (if (and buffer-file-name\n"
36043 "                          (string-match \"/libguestfs\\\\>\"\n"
36044 "                              (buffer-file-name))\n"
36045 "                          (not (string-equal mode-name \"Change Log\"))\n"
36046 "                          (not (string-equal mode-name \"Makefile\")))\n"
36047 "                     (setq indent-tabs-mode nil))))\n"
36048 " \n"
36049 msgstr ""
36050
36051 #. type: verbatim
36052 #: ../src/guestfs.pod:2704
36053 #, no-wrap
36054 msgid ""
36055 " ;;; When editing C sources in libguestfs, use this style.\n"
36056 " (defun libguestfs-c-mode ()\n"
36057 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
36058 "   (interactive)\n"
36059 "   (c-set-style \"K&R\")\n"
36060 "   (setq c-indent-level 2)\n"
36061 "   (setq c-basic-offset 2))\n"
36062 " (add-hook 'c-mode-hook\n"
36063 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
36064 "                               (buffer-file-name))\n"
36065 "                           (libguestfs-c-mode))))\n"
36066 "\n"
36067 msgstr ""
36068
36069 #. type: textblock
36070 #: ../src/guestfs.pod:2716
36071 msgid "Enable warnings when compiling (and fix any problems this finds):"
36072 msgstr ""
36073
36074 #. type: verbatim
36075 #: ../src/guestfs.pod:2719
36076 #, no-wrap
36077 msgid ""
36078 " ./configure --enable-gcc-warnings\n"
36079 "\n"
36080 msgstr ""
36081
36082 #. type: textblock
36083 #: ../src/guestfs.pod:2721
36084 msgid "Useful targets are:"
36085 msgstr ""
36086
36087 #. type: verbatim
36088 #: ../src/guestfs.pod:2723
36089 #, no-wrap
36090 msgid ""
36091 " make syntax-check  # checks the syntax of the C code\n"
36092 " make check         # runs the test suite\n"
36093 "\n"
36094 msgstr ""
36095
36096 #. type: =head2
36097 #: ../src/guestfs.pod:2726
36098 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
36099 msgstr ""
36100
36101 #. type: textblock
36102 #: ../src/guestfs.pod:2728
36103 msgid ""
36104 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
36105 "which are used to do shell quoting."
36106 msgstr ""
36107
36108 #. type: =item
36109 #: ../src/guestfs.pod:2733
36110 msgid "%Q"
36111 msgstr ""
36112
36113 #. type: textblock
36114 #: ../src/guestfs.pod:2735
36115 msgid ""
36116 "Simple shell quoted string.  Any spaces or other shell characters are "
36117 "escaped for you."
36118 msgstr ""
36119
36120 #. type: =item
36121 #: ../src/guestfs.pod:2738
36122 msgid "%R"
36123 msgstr ""
36124
36125 #. type: textblock
36126 #: ../src/guestfs.pod:2740
36127 msgid ""
36128 "Same as C<%Q> except the string is treated as a path which is prefixed by "
36129 "the sysroot."
36130 msgstr ""
36131
36132 #. type: verbatim
36133 #: ../src/guestfs.pod:2747
36134 #, no-wrap
36135 msgid ""
36136 " asprintf (&cmd, \"cat %R\", path);\n"
36137 "\n"
36138 msgstr ""
36139
36140 #. type: textblock
36141 #: ../src/guestfs.pod:2749
36142 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
36143 msgstr ""
36144
36145 #. type: textblock
36146 #: ../src/guestfs.pod:2751
36147 msgid ""
36148 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
36149 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
36150 "they are not passed via the shell (instead, straight to exec).  You probably "
36151 "want to use the C<sysroot_path()> function however."
36152 msgstr ""
36153
36154 #. type: =head2
36155 #: ../src/guestfs.pod:2757
36156 msgid "SUBMITTING YOUR NEW API ACTIONS"
36157 msgstr ""
36158
36159 #. type: textblock
36160 #: ../src/guestfs.pod:2759
36161 msgid ""
36162 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
36163 "libguestfs> and CC to L<rjones@redhat.com>."
36164 msgstr ""
36165
36166 #. type: =head2
36167 #: ../src/guestfs.pod:2763
36168 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
36169 msgstr ""
36170
36171 #. type: textblock
36172 #: ../src/guestfs.pod:2765
36173 msgid "We support i18n (gettext anyhow) in the library."
36174 msgstr ""
36175
36176 #. type: textblock
36177 #: ../src/guestfs.pod:2767
36178 msgid ""
36179 "However many messages come from the daemon, and we don't translate those at "
36180 "the moment.  One reason is that the appliance generally has all locale files "
36181 "removed from it, because they take up a lot of space.  So we'd have to readd "
36182 "some of those, as well as copying our PO files into the appliance."
36183 msgstr ""
36184
36185 #. type: textblock
36186 #: ../src/guestfs.pod:2773
36187 msgid ""
36188 "Debugging messages are never translated, since they are intended for the "
36189 "programmers."
36190 msgstr ""
36191
36192 #. type: =head2
36193 #: ../src/guestfs.pod:2776
36194 msgid "SOURCE CODE SUBDIRECTORIES"
36195 msgstr ""
36196
36197 #. type: textblock
36198 #: ../src/guestfs.pod:2782
36199 msgid "The libguestfs appliance, build scripts and so on."
36200 msgstr ""
36201
36202 #. type: =item
36203 #: ../src/guestfs.pod:2784
36204 msgid "C<capitests>"
36205 msgstr ""
36206
36207 #. type: textblock
36208 #: ../src/guestfs.pod:2786
36209 msgid "Automated tests of the C API."
36210 msgstr ""
36211
36212 #. type: =item
36213 #: ../src/guestfs.pod:2788
36214 msgid "C<cat>"
36215 msgstr ""
36216
36217 #. type: textblock
36218 #: ../src/guestfs.pod:2790
36219 msgid ""
36220 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
36221 "documentation."
36222 msgstr ""
36223
36224 #. type: =item
36225 #: ../src/guestfs.pod:2793
36226 msgid "C<caution>"
36227 msgstr ""
36228
36229 #. type: textblock
36230 #: ../src/guestfs.pod:2795
36231 msgid ""
36232 "Safety and liveness tests of components that libguestfs depends upon (not of "
36233 "libguestfs itself).  Mainly this is for qemu and the kernel."
36234 msgstr ""
36235
36236 #. type: =item
36237 #: ../src/guestfs.pod:2798
36238 msgid "C<contrib>"
36239 msgstr ""
36240
36241 #. type: textblock
36242 #: ../src/guestfs.pod:2800
36243 msgid "Outside contributions, experimental parts."
36244 msgstr ""
36245
36246 #. type: =item
36247 #: ../src/guestfs.pod:2802
36248 msgid "C<daemon>"
36249 msgstr ""
36250
36251 #. type: textblock
36252 #: ../src/guestfs.pod:2804
36253 msgid ""
36254 "The daemon that runs inside the libguestfs appliance and carries out actions."
36255 msgstr ""
36256
36257 #. type: =item
36258 #: ../src/guestfs.pod:2807
36259 msgid "C<df>"
36260 msgstr ""
36261
36262 #. type: textblock
36263 #: ../src/guestfs.pod:2809
36264 msgid "L<virt-df(1)> command and documentation."
36265 msgstr ""
36266
36267 #. type: =item
36268 #: ../src/guestfs.pod:2811
36269 msgid "C<edit>"
36270 msgstr ""
36271
36272 #. type: textblock
36273 #: ../src/guestfs.pod:2813
36274 msgid "L<virt-edit(1)> command and documentation."
36275 msgstr ""
36276
36277 #. type: =item
36278 #: ../src/guestfs.pod:2815
36279 msgid "C<examples>"
36280 msgstr ""
36281
36282 #. type: textblock
36283 #: ../src/guestfs.pod:2817
36284 msgid "C API example code."
36285 msgstr ""
36286
36287 #. type: =item
36288 #: ../src/guestfs.pod:2819
36289 msgid "C<fish>"
36290 msgstr ""
36291
36292 #. type: textblock
36293 #: ../src/guestfs.pod:2821
36294 msgid ""
36295 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
36296 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
36297 "L<virt-tar-out(1)>."
36298 msgstr ""
36299
36300 #. type: =item
36301 #: ../src/guestfs.pod:2825
36302 msgid "C<fuse>"
36303 msgstr ""
36304
36305 #. type: textblock
36306 #: ../src/guestfs.pod:2827
36307 msgid ""
36308 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
36309 msgstr ""
36310
36311 #. type: =item
36312 #: ../src/guestfs.pod:2829
36313 msgid "C<generator>"
36314 msgstr ""
36315
36316 #. type: textblock
36317 #: ../src/guestfs.pod:2831
36318 msgid ""
36319 "The crucially important generator, used to automatically generate large "
36320 "amounts of boilerplate C code for things like RPC and bindings."
36321 msgstr ""
36322
36323 #. type: =item
36324 #: ../src/guestfs.pod:2834
36325 msgid "C<images>"
36326 msgstr ""
36327
36328 #. type: textblock
36329 #: ../src/guestfs.pod:2836
36330 msgid "Files used by the test suite."
36331 msgstr ""
36332
36333 #. type: textblock
36334 #: ../src/guestfs.pod:2838
36335 msgid "Some \"phony\" guest images which we test against."
36336 msgstr ""
36337
36338 #. type: =item
36339 #: ../src/guestfs.pod:2840
36340 msgid "C<inspector>"
36341 msgstr ""
36342
36343 #. type: textblock
36344 #: ../src/guestfs.pod:2842
36345 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
36346 msgstr ""
36347
36348 #. type: =item
36349 #: ../src/guestfs.pod:2844
36350 msgid "C<logo>"
36351 msgstr ""
36352
36353 #. type: textblock
36354 #: ../src/guestfs.pod:2846
36355 msgid "Logo used on the website.  The fish is called Arthur by the way."
36356 msgstr ""
36357
36358 #. type: =item
36359 #: ../src/guestfs.pod:2848
36360 msgid "C<m4>"
36361 msgstr ""
36362
36363 #. type: textblock
36364 #: ../src/guestfs.pod:2850
36365 msgid "M4 macros used by autoconf."
36366 msgstr ""
36367
36368 #. type: =item
36369 #: ../src/guestfs.pod:2852
36370 msgid "C<po>"
36371 msgstr ""
36372
36373 #. type: textblock
36374 #: ../src/guestfs.pod:2854
36375 msgid "Translations of simple gettext strings."
36376 msgstr ""
36377
36378 #. type: =item
36379 #: ../src/guestfs.pod:2856
36380 msgid "C<po-docs>"
36381 msgstr ""
36382
36383 #. type: textblock
36384 #: ../src/guestfs.pod:2858
36385 msgid ""
36386 "The build infrastructure and PO files for translations of manpages and POD "
36387 "files.  Eventually this will be combined with the C<po> directory, but that "
36388 "is rather complicated."
36389 msgstr ""
36390
36391 #. type: =item
36392 #: ../src/guestfs.pod:2862
36393 msgid "C<regressions>"
36394 msgstr ""
36395
36396 #. type: textblock
36397 #: ../src/guestfs.pod:2864
36398 msgid "Regression tests."
36399 msgstr ""
36400
36401 #. type: =item
36402 #: ../src/guestfs.pod:2866
36403 msgid "C<rescue>"
36404 msgstr ""
36405
36406 #. type: textblock
36407 #: ../src/guestfs.pod:2868
36408 msgid "L<virt-rescue(1)> command and documentation."
36409 msgstr ""
36410
36411 #. type: =item
36412 #: ../src/guestfs.pod:2870
36413 msgid "C<src>"
36414 msgstr ""
36415
36416 #. type: textblock
36417 #: ../src/guestfs.pod:2872
36418 msgid "Source code to the C library."
36419 msgstr ""
36420
36421 #. type: =item
36422 #: ../src/guestfs.pod:2874
36423 msgid "C<tools>"
36424 msgstr ""
36425
36426 #. type: textblock
36427 #: ../src/guestfs.pod:2876
36428 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
36429 msgstr ""
36430
36431 #. type: =item
36432 #: ../src/guestfs.pod:2878
36433 msgid "C<test-tool>"
36434 msgstr ""
36435
36436 #. type: textblock
36437 #: ../src/guestfs.pod:2880
36438 msgid ""
36439 "Test tool for end users to test if their qemu/kernel combination will work "
36440 "with libguestfs."
36441 msgstr ""
36442
36443 #. type: =item
36444 #: ../src/guestfs.pod:2883
36445 msgid "C<csharp>"
36446 msgstr ""
36447
36448 #. type: =item
36449 #: ../src/guestfs.pod:2885
36450 msgid "C<haskell>"
36451 msgstr ""
36452
36453 #. type: =item
36454 #: ../src/guestfs.pod:2887
36455 msgid "C<java>"
36456 msgstr ""
36457
36458 #. type: =item
36459 #: ../src/guestfs.pod:2889
36460 msgid "C<ocaml>"
36461 msgstr ""
36462
36463 #. type: =item
36464 #: ../src/guestfs.pod:2891
36465 msgid "C<php>"
36466 msgstr ""
36467
36468 #. type: =item
36469 #: ../src/guestfs.pod:2893
36470 msgid "C<perl>"
36471 msgstr ""
36472
36473 #. type: =item
36474 #: ../src/guestfs.pod:2895
36475 msgid "C<python>"
36476 msgstr ""
36477
36478 #. type: =item
36479 #: ../src/guestfs.pod:2897
36480 msgid "C<ruby>"
36481 msgstr ""
36482
36483 #. type: textblock
36484 #: ../src/guestfs.pod:2899
36485 msgid "Language bindings."
36486 msgstr ""
36487
36488 #. type: =head2
36489 #: ../src/guestfs.pod:2903
36490 msgid "MAKING A STABLE RELEASE"
36491 msgstr ""
36492
36493 #. type: textblock
36494 #: ../src/guestfs.pod:2905
36495 msgid ""
36496 "When we make a stable release, there are several steps documented here.  See "
36497 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
36498 "branch policy."
36499 msgstr ""
36500
36501 #. type: textblock
36502 #: ../src/guestfs.pod:2913
36503 msgid ""
36504 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
36505 msgstr ""
36506
36507 #. type: textblock
36508 #: ../src/guestfs.pod:2918
36509 msgid "Finalize RELEASE-NOTES."
36510 msgstr ""
36511
36512 #. type: textblock
36513 #: ../src/guestfs.pod:2922
36514 msgid "Update ROADMAP."
36515 msgstr ""
36516
36517 #. type: textblock
36518 #: ../src/guestfs.pod:2926
36519 msgid "Run C<src/api-support/update-from-tarballs.sh>."
36520 msgstr ""
36521
36522 #. type: textblock
36523 #: ../src/guestfs.pod:2930
36524 msgid "Push and pull from Transifex."
36525 msgstr ""
36526
36527 #. type: textblock
36528 #: ../src/guestfs.pod:2932
36529 msgid "Run:"
36530 msgstr ""
36531
36532 #. type: verbatim
36533 #: ../src/guestfs.pod:2934
36534 #, no-wrap
36535 msgid ""
36536 " tx push -s\n"
36537 "\n"
36538 msgstr ""
36539
36540 #. type: textblock
36541 #: ../src/guestfs.pod:2936
36542 msgid "to push the latest POT files to Transifex.  Then run:"
36543 msgstr ""
36544
36545 #. type: verbatim
36546 #: ../src/guestfs.pod:2938
36547 #, no-wrap
36548 msgid ""
36549 " ./tx-pull.sh\n"
36550 "\n"
36551 msgstr ""
36552
36553 #. type: textblock
36554 #: ../src/guestfs.pod:2940
36555 msgid "which is a wrapper to pull the latest translated C<*.po> files."
36556 msgstr ""
36557
36558 #. type: textblock
36559 #: ../src/guestfs.pod:2944
36560 msgid ""
36561 "Create new stable and development directories under L<http://libguestfs.org/"
36562 "download>."
36563 msgstr ""
36564
36565 #. type: textblock
36566 #: ../src/guestfs.pod:2949
36567 msgid "Create the branch in git:"
36568 msgstr ""
36569
36570 #. type: verbatim
36571 #: ../src/guestfs.pod:2951
36572 #, no-wrap
36573 msgid ""
36574 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
36575 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
36576 " git branch stable-1.XX\n"
36577 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
36578 "\n"
36579 msgstr ""
36580
36581 #. type: =head1
36582 #: ../src/guestfs.pod:2958
36583 msgid "LIMITS"
36584 msgstr ""
36585
36586 #. type: =head2
36587 #: ../src/guestfs.pod:2960
36588 msgid "PROTOCOL LIMITS"
36589 msgstr ""
36590
36591 #. type: textblock
36592 #: ../src/guestfs.pod:2962
36593 msgid ""
36594 "Internally libguestfs uses a message-based protocol to pass API calls and "
36595 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
36596 "plenty more detail about this).  The maximum message size used by the "
36597 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
36598 "aware of this limit.  The API calls which may be affected are individually "
36599 "documented, with a link back to this section of the documentation."
36600 msgstr ""
36601
36602 #. type: textblock
36603 #: ../src/guestfs.pod:2970
36604 msgid ""
36605 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
36606 "a simple string.  Because this string is at some point internally encoded as "
36607 "a message, the maximum size that it can return is slightly under 4 MB.  If "
36608 "the requested file is larger than this then you will get an error."
36609 msgstr ""
36610
36611 #. type: textblock
36612 #: ../src/guestfs.pod:2976
36613 msgid ""
36614 "In order to transfer large files into and out of the guest filesystem, you "
36615 "need to use particular calls that support this.  The sections L</UPLOADING> "
36616 "and L</DOWNLOADING> document how to do this."
36617 msgstr ""
36618
36619 #. type: textblock
36620 #: ../src/guestfs.pod:2980
36621 msgid ""
36622 "You might also consider mounting the disk image using our FUSE filesystem "
36623 "support (L<guestmount(1)>)."
36624 msgstr ""
36625
36626 #. type: =head2
36627 #: ../src/guestfs.pod:2983
36628 msgid "MAXIMUM NUMBER OF DISKS"
36629 msgstr ""
36630
36631 #. type: textblock
36632 #: ../src/guestfs.pod:2985
36633 msgid "When using virtio disks (the default) the current limit is B<25> disks."
36634 msgstr ""
36635
36636 #. type: textblock
36637 #: ../src/guestfs.pod:2988
36638 msgid ""
36639 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
36640 "slots.  However febootstrap only understands disks with names C</dev/vda> "
36641 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
36642 "purposes."
36643 msgstr ""
36644
36645 #. type: textblock
36646 #: ../src/guestfs.pod:2993
36647 msgid ""
36648 "We are working to substantially raise this limit in future versions but it "
36649 "requires complex changes to qemu."
36650 msgstr ""
36651
36652 #. type: textblock
36653 #: ../src/guestfs.pod:2996
36654 msgid ""
36655 "In future versions of libguestfs it should also be possible to \"hot plug\" "
36656 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
36657 "requires changes to qemu."
36658 msgstr ""
36659
36660 #. type: =head2
36661 #: ../src/guestfs.pod:3000
36662 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
36663 msgstr ""
36664
36665 #. type: textblock
36666 #: ../src/guestfs.pod:3002
36667 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
36668 msgstr ""
36669
36670 #. type: textblock
36671 #: ../src/guestfs.pod:3004
36672 msgid ""
36673 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
36674 "vda>, and C</dev/vda1> through C</dev/vda15>)."
36675 msgstr ""
36676
36677 #. type: textblock
36678 #: ../src/guestfs.pod:3007
36679 msgid ""
36680 "If you attach a disk with more than 15 partitions, the extra partitions are "
36681 "ignored by libguestfs."
36682 msgstr ""
36683
36684 #. type: =head2
36685 #: ../src/guestfs.pod:3010
36686 msgid "MAXIMUM SIZE OF A DISK"
36687 msgstr ""
36688
36689 #. type: textblock
36690 #: ../src/guestfs.pod:3012
36691 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
36692 msgstr ""
36693
36694 #. type: textblock
36695 #: ../src/guestfs.pod:3014
36696 msgid ""
36697 "We have tested block devices up to 1 exabyte (2**60 or "
36698 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
36699 "filesystem."
36700 msgstr ""
36701
36702 #. type: textblock
36703 #: ../src/guestfs.pod:3018
36704 msgid ""
36705 "Although libguestfs probably does not impose any limit, the underlying host "
36706 "storage will.  If you store disk images on a host ext4 filesystem, then the "
36707 "maximum size will be limited by the maximum ext4 file size (currently 16 "
36708 "TB).  If you store disk images as host logical volumes then you are limited "
36709 "by the maximum size of an LV."
36710 msgstr ""
36711
36712 #. type: textblock
36713 #: ../src/guestfs.pod:3024
36714 msgid ""
36715 "For the hugest disk image files, we recommend using XFS on the host for "
36716 "storage."
36717 msgstr ""
36718
36719 #. type: =head2
36720 #: ../src/guestfs.pod:3027
36721 msgid "MAXIMUM SIZE OF A PARTITION"
36722 msgstr ""
36723
36724 #. type: textblock
36725 #: ../src/guestfs.pod:3029
36726 msgid ""
36727 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
36728 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
36729 "address a partition located beyond 2 TB on the disk."
36730 msgstr ""
36731
36732 #. type: textblock
36733 #: ../src/guestfs.pod:3033
36734 msgid ""
36735 "It is recommended that you use GPT partitions on disks which are larger than "
36736 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
36737 "which are theoretically larger than the largest disk we could support."
36738 msgstr ""
36739
36740 #. type: =head2
36741 #: ../src/guestfs.pod:3038
36742 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
36743 msgstr ""
36744
36745 #. type: textblock
36746 #: ../src/guestfs.pod:3040
36747 msgid ""
36748 "This depends on the filesystem type.  libguestfs itself does not impose any "
36749 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
36750 "what these limits are."
36751 msgstr ""
36752
36753 #. type: =head2
36754 #: ../src/guestfs.pod:3044
36755 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
36756 msgstr ""
36757
36758 #. type: textblock
36759 #: ../src/guestfs.pod:3046
36760 msgid ""
36761 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
36762 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
36763 "uploads and downloads."
36764 msgstr ""
36765
36766 #. type: =head2
36767 #: ../src/guestfs.pod:3050
36768 msgid "INSPECTION LIMITS"
36769 msgstr ""
36770
36771 #. type: textblock
36772 #: ../src/guestfs.pod:3052
36773 msgid ""
36774 "The inspection code has several arbitrary limits on things like the size of "
36775 "Windows Registry hive it will read, and the length of product name.  These "
36776 "are intended to stop a malicious guest from consuming arbitrary amounts of "
36777 "memory and disk space on the host, and should not be reached in practice.  "
36778 "See the source code for more information."
36779 msgstr ""
36780
36781 #. type: textblock
36782 #: ../src/guestfs.pod:3078
36783 msgid ""
36784 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
36785 "effect as calling C<guestfs_set_verbose (g, 1)>."
36786 msgstr ""
36787
36788 #. type: textblock
36789 #: ../src/guestfs.pod:3090
36790 msgid ""
36791 "Set the path that libguestfs uses to search for a supermin appliance.  See "
36792 "the discussion of paths in section L</PATH> above."
36793 msgstr ""
36794
36795 #. type: textblock
36796 #: ../src/guestfs.pod:3099
36797 msgid "See also L</QEMU WRAPPERS> above."
36798 msgstr ""
36799
36800 #. type: textblock
36801 #: ../src/guestfs.pod:3103
36802 msgid ""
36803 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
36804 "effect as calling C<guestfs_set_trace (g, 1)>."
36805 msgstr ""
36806
36807 #. type: textblock
36808 #: ../src/guestfs.pod:3121
36809 msgid ""
36810 "L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-"
36811 "perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, L<guestfish(1)>, "
36812 "L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
36813 "L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)"
36814 ">, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
36815 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
36816 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, "
36817 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://libguestfs.org/>."
36818 msgstr ""
36819
36820 #. type: textblock
36821 #: ../src/guestfs.pod:3151
36822 msgid ""
36823 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
36824 "(8)>, L<disktype(1)>."
36825 msgstr ""
36826
36827 #. type: =head1
36828 #: ../src/guestfs.pod:3158 ../tools/virt-make-fs.pl:553
36829 #: ../tools/virt-win-reg.pl:761
36830 msgid "BUGS"
36831 msgstr ""
36832
36833 #. type: textblock
36834 #: ../src/guestfs.pod:3160
36835 msgid "To get a list of bugs against libguestfs use this link:"
36836 msgstr ""
36837
36838 #. type: textblock
36839 #: ../src/guestfs.pod:3162
36840 msgid ""
36841 "L<https://bugzilla.redhat.com/buglist.cgi?"
36842 "component=libguestfs&product=Virtualization+Tools>"
36843 msgstr ""
36844
36845 #. type: textblock
36846 #: ../src/guestfs.pod:3164
36847 msgid "To report a new bug against libguestfs use this link:"
36848 msgstr ""
36849
36850 #. type: textblock
36851 #: ../src/guestfs.pod:3166
36852 msgid ""
36853 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
36854 "component=libguestfs&product=Virtualization+Tools>"
36855 msgstr ""
36856
36857 #. type: textblock
36858 #: ../src/guestfs.pod:3168
36859 msgid "When reporting a bug, please check:"
36860 msgstr ""
36861
36862 #. type: textblock
36863 #: ../src/guestfs.pod:3174
36864 msgid "That the bug hasn't been reported already."
36865 msgstr ""
36866
36867 #. type: textblock
36868 #: ../src/guestfs.pod:3178
36869 msgid "That you are testing a recent version."
36870 msgstr ""
36871
36872 #. type: textblock
36873 #: ../src/guestfs.pod:3182
36874 msgid "Describe the bug accurately, and give a way to reproduce it."
36875 msgstr ""
36876
36877 #. type: textblock
36878 #: ../src/guestfs.pod:3186
36879 msgid ""
36880 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
36881 "bug report."
36882 msgstr ""
36883
36884 #. type: textblock
36885 #: ../test-tool/libguestfs-test-tool.pod:5
36886 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
36887 msgstr ""
36888
36889 #. type: verbatim
36890 #: ../test-tool/libguestfs-test-tool.pod:9
36891 #, no-wrap
36892 msgid ""
36893 " libguestfs-test-tool [--options]\n"
36894 "\n"
36895 msgstr ""
36896
36897 #. type: textblock
36898 #: ../test-tool/libguestfs-test-tool.pod:13
36899 msgid ""
36900 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
36901 "to check basic libguestfs functionality is working.  This is needed because "
36902 "libguestfs occasionally breaks for reasons beyond our control: usually "
36903 "because of changes in the underlying qemu or kernel packages, or the host "
36904 "environment."
36905 msgstr ""
36906
36907 #. type: textblock
36908 #: ../test-tool/libguestfs-test-tool.pod:19
36909 msgid "If you suspect a problem in libguestfs, then just run:"
36910 msgstr ""
36911
36912 #. type: verbatim
36913 #: ../test-tool/libguestfs-test-tool.pod:21
36914 #, no-wrap
36915 msgid ""
36916 " libguestfs-test-tool\n"
36917 "\n"
36918 msgstr ""
36919
36920 #. type: textblock
36921 #: ../test-tool/libguestfs-test-tool.pod:23
36922 msgid "It will print lots of diagnostic messages."
36923 msgstr ""
36924
36925 #. type: textblock
36926 #: ../test-tool/libguestfs-test-tool.pod:25
36927 msgid "If it runs to completion successfully, you will see this near the end:"
36928 msgstr ""
36929
36930 #. type: verbatim
36931 #: ../test-tool/libguestfs-test-tool.pod:27
36932 #, no-wrap
36933 msgid ""
36934 " ===== TEST FINISHED OK =====\n"
36935 "\n"
36936 msgstr ""
36937
36938 #. type: textblock
36939 #: ../test-tool/libguestfs-test-tool.pod:29
36940 msgid "and the test tool will exit with code 0."
36941 msgstr ""
36942
36943 #. type: textblock
36944 #: ../test-tool/libguestfs-test-tool.pod:31
36945 msgid ""
36946 "If it fails (and/or exits with non-zero error code), please paste the "
36947 "I<complete, unedited> output of the test tool into a bug report.  More "
36948 "information about reporting bugs can be found on the L<http://libguestfs.org/"
36949 "> website."
36950 msgstr ""
36951
36952 #. type: textblock
36953 #: ../test-tool/libguestfs-test-tool.pod:42
36954 msgid "Display short usage information and exit."
36955 msgstr ""
36956
36957 #. type: =item
36958 #: ../test-tool/libguestfs-test-tool.pod:44
36959 msgid "B<--qemu qemu_binary>"
36960 msgstr ""
36961
36962 #. type: textblock
36963 #: ../test-tool/libguestfs-test-tool.pod:46
36964 msgid ""
36965 "If you have downloaded another qemu binary, point this option at the full "
36966 "path of the binary to try it."
36967 msgstr ""
36968
36969 #. type: =item
36970 #: ../test-tool/libguestfs-test-tool.pod:49
36971 msgid "B<--qemudir qemu_source_dir>"
36972 msgstr ""
36973
36974 #. type: textblock
36975 #: ../test-tool/libguestfs-test-tool.pod:51
36976 msgid ""
36977 "If you have compiled qemu from source, point this option at the source "
36978 "directory to try it."
36979 msgstr ""
36980
36981 #. type: =item
36982 #: ../test-tool/libguestfs-test-tool.pod:54
36983 msgid "B<-t N>"
36984 msgstr ""
36985
36986 #. type: =item
36987 #: ../test-tool/libguestfs-test-tool.pod:56
36988 msgid "B<--timeout N>"
36989 msgstr ""
36990
36991 #. type: textblock
36992 #: ../test-tool/libguestfs-test-tool.pod:58
36993 msgid ""
36994 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
36995 "minutes) which does not usually need to be adjusted."
36996 msgstr ""
36997
36998 #. type: =head1
36999 #: ../test-tool/libguestfs-test-tool.pod:63
37000 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
37001 msgstr ""
37002
37003 #. type: textblock
37004 #: ../test-tool/libguestfs-test-tool.pod:65
37005 msgid ""
37006 "If you have compiled another version of qemu from source and would like to "
37007 "try that, then you can use the I<--qemudir> option to point to the qemu "
37008 "source directory."
37009 msgstr ""
37010
37011 #. type: textblock
37012 #: ../test-tool/libguestfs-test-tool.pod:69
37013 msgid ""
37014 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
37015 "option to point to the binary."
37016 msgstr ""
37017
37018 #. type: textblock
37019 #: ../test-tool/libguestfs-test-tool.pod:72
37020 msgid ""
37021 "Note when using these options, you can ignore the business of qemu wrapper "
37022 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
37023 "wrapper script for you if one is needed."
37024 msgstr ""
37025
37026 #. type: =head1
37027 #: ../test-tool/libguestfs-test-tool.pod:76
37028 msgid "TRYING OUT A DIFFERENT KERNEL"
37029 msgstr ""
37030
37031 #. type: textblock
37032 #: ../test-tool/libguestfs-test-tool.pod:78
37033 msgid ""
37034 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
37035 "libguestfs tries.  You do this by setting the environment variables "
37036 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
37037 msgstr ""
37038
37039 #. type: textblock
37040 #: ../test-tool/libguestfs-test-tool.pod:82
37041 msgid ""
37042 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
37043 "information."
37044 msgstr ""
37045
37046 #. type: =head1
37047 #: ../test-tool/libguestfs-test-tool.pod:85
37048 msgid "SELF-DIAGNOSIS"
37049 msgstr ""
37050
37051 #. type: textblock
37052 #: ../test-tool/libguestfs-test-tool.pod:87
37053 msgid ""
37054 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
37055 "produced by libguestfs-test-tool and/or possible errors."
37056 msgstr ""
37057
37058 #. type: textblock
37059 #: ../test-tool/libguestfs-test-tool.pod:92
37060 msgid ""
37061 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
37062 "I<1> if there was an error."
37063 msgstr ""
37064
37065 #. type: textblock
37066 #: ../test-tool/libguestfs-test-tool.pod:97
37067 msgid ""
37068 "For the full list of environment variables which may affect libguestfs, "
37069 "please see the L<guestfs(3)> manual page."
37070 msgstr ""
37071
37072 #. type: textblock
37073 #: ../test-tool/libguestfs-test-tool.pod:102
37074 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
37075 msgstr ""
37076
37077 #. type: textblock
37078 #: ../tools/virt-list-filesystems.pl:32
37079 msgid ""
37080 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
37081 msgstr ""
37082
37083 #. type: verbatim
37084 #: ../tools/virt-list-filesystems.pl:36
37085 #, no-wrap
37086 msgid ""
37087 " virt-list-filesystems [--options] domname\n"
37088 "\n"
37089 msgstr ""
37090
37091 #. type: verbatim
37092 #: ../tools/virt-list-filesystems.pl:38
37093 #, no-wrap
37094 msgid ""
37095 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
37096 "\n"
37097 msgstr ""
37098
37099 #. type: textblock
37100 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
37101 msgid ""
37102 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
37103 "replacement."
37104 msgstr ""
37105
37106 #. type: textblock
37107 #: ../tools/virt-list-filesystems.pl:45
37108 msgid ""
37109 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
37110 "are contained in a virtual machine or disk image."
37111 msgstr ""
37112
37113 #. type: textblock
37114 #: ../tools/virt-list-filesystems.pl:49
37115 msgid ""
37116 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
37117 "functionality.  For more complex cases you should look at the L<guestfish(1)"
37118 "> tool."
37119 msgstr ""
37120
37121 #. type: textblock
37122 #: ../tools/virt-list-filesystems.pl:112
37123 msgid ""
37124 "With this option, C<virt-list-filesystems> displays the type of each "
37125 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
37126 msgstr ""
37127
37128 #. type: =item
37129 #: ../tools/virt-list-filesystems.pl:119
37130 msgid "B<-a>"
37131 msgstr ""
37132
37133 #. type: textblock
37134 #: ../tools/virt-list-filesystems.pl:123
37135 msgid ""
37136 "Normally we only show mountable filesystems.  If this option is given then "
37137 "swap devices are shown too."
37138 msgstr ""
37139
37140 #. type: textblock
37141 #: ../tools/virt-list-filesystems.pl:197
37142 msgid ""
37143 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
37144 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
37145 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
37146 msgstr ""
37147
37148 #. type: textblock
37149 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
37150 msgid "Copyright (C) 2009 Red Hat Inc."
37151 msgstr ""
37152
37153 #. type: textblock
37154 #: ../tools/virt-list-partitions.pl:32
37155 msgid ""
37156 "virt-list-partitions - List partitions in a virtual machine or disk image"
37157 msgstr ""
37158
37159 #. type: verbatim
37160 #: ../tools/virt-list-partitions.pl:36
37161 #, no-wrap
37162 msgid ""
37163 " virt-list-partitions [--options] domname\n"
37164 "\n"
37165 msgstr ""
37166
37167 #. type: verbatim
37168 #: ../tools/virt-list-partitions.pl:38
37169 #, no-wrap
37170 msgid ""
37171 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
37172 "\n"
37173 msgstr ""
37174
37175 #. type: textblock
37176 #: ../tools/virt-list-partitions.pl:45
37177 msgid ""
37178 "C<virt-list-partitions> is a command line tool to list the partitions that "
37179 "are contained in a virtual machine or disk image.  It is mainly useful as a "
37180 "first step to using L<virt-resize(1)>."
37181 msgstr ""
37182
37183 #. type: textblock
37184 #: ../tools/virt-list-partitions.pl:50
37185 msgid ""
37186 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
37187 "functionality.  For more complex cases you should look at the L<guestfish(1)"
37188 "> tool."
37189 msgstr ""
37190
37191 #. type: textblock
37192 #: ../tools/virt-list-partitions.pl:113
37193 msgid "Show sizes in human-readable form (eg. \"1G\")."
37194 msgstr ""
37195
37196 #. type: textblock
37197 #: ../tools/virt-list-partitions.pl:123
37198 msgid ""
37199 "With this option, C<virt-list-partitions> displays the type and size of each "
37200 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
37201 msgstr ""
37202
37203 #. type: =item
37204 #: ../tools/virt-list-partitions.pl:130
37205 msgid "B<-t>"
37206 msgstr ""
37207
37208 #. type: =item
37209 #: ../tools/virt-list-partitions.pl:132
37210 msgid "B<--total>"
37211 msgstr ""
37212
37213 #. type: textblock
37214 #: ../tools/virt-list-partitions.pl:134
37215 msgid ""
37216 "Display the total size of each block device (as a separate row or rows)."
37217 msgstr ""
37218
37219 #. type: textblock
37220 #: ../tools/virt-list-partitions.pl:267
37221 msgid ""
37222 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
37223 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
37224 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
37225 msgstr ""
37226
37227 #. type: textblock
37228 #: ../tools/virt-list-partitions.pl:283
37229 msgid "Copyright (C) 2009-2010 Red Hat Inc."
37230 msgstr ""
37231
37232 #. type: textblock
37233 #: ../tools/virt-make-fs.pl:37
37234 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
37235 msgstr ""
37236
37237 #. type: verbatim
37238 #: ../tools/virt-make-fs.pl:41
37239 #, no-wrap
37240 msgid ""
37241 " virt-make-fs [--options] input.tar output.img\n"
37242 "\n"
37243 msgstr ""
37244
37245 #. type: verbatim
37246 #: ../tools/virt-make-fs.pl:43
37247 #, no-wrap
37248 msgid ""
37249 " virt-make-fs [--options] input.tar.gz output.img\n"
37250 "\n"
37251 msgstr ""
37252
37253 #. type: verbatim
37254 #: ../tools/virt-make-fs.pl:45
37255 #, no-wrap
37256 msgid ""
37257 " virt-make-fs [--options] directory output.img\n"
37258 "\n"
37259 msgstr ""
37260
37261 #. type: textblock
37262 #: ../tools/virt-make-fs.pl:49
37263 msgid ""
37264 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
37265 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
37266 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
37267 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
37268 "you want to attach these filesystems to existing virtual machines (eg. to "
37269 "import large amounts of read-only data to a VM)."
37270 msgstr ""
37271
37272 #. type: textblock
37273 #: ../tools/virt-make-fs.pl:57
37274 msgid "Basic usage is:"
37275 msgstr ""
37276
37277 #. type: verbatim
37278 #: ../tools/virt-make-fs.pl:59
37279 #, no-wrap
37280 msgid ""
37281 " virt-make-fs input output\n"
37282 "\n"
37283 msgstr ""
37284
37285 #. type: textblock
37286 #: ../tools/virt-make-fs.pl:61
37287 msgid ""
37288 "where C<input> is either a directory containing files that you want to add, "
37289 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
37290 "C<output> is a disk image.  The input type is detected automatically.  The "
37291 "output disk image defaults to a raw ext2 image unless you specify extra "
37292 "flags (see L</OPTIONS> below)."
37293 msgstr ""
37294
37295 #. type: =head2
37296 #: ../tools/virt-make-fs.pl:67
37297 msgid "EXTRA SPACE"
37298 msgstr ""
37299
37300 #. type: textblock
37301 #: ../tools/virt-make-fs.pl:69
37302 msgid ""
37303 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
37304 "the files that it contains, but might have extra space.  Depending on how "
37305 "you are going to use the output, you might think this extra space is wasted "
37306 "and want to minimize it, or you might want to leave space so that more files "
37307 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
37308 "but you can use the I<--size> flag to leave space in the filesystem if you "
37309 "want it."
37310 msgstr ""
37311
37312 #. type: textblock
37313 #: ../tools/virt-make-fs.pl:77
37314 msgid ""
37315 "An alternative way to leave extra space but not make the output image any "
37316 "bigger is to use an alternative disk image format (instead of the default "
37317 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
37318 "image format (check your hypervisor supports this before using it).  This "
37319 "allows you to choose a large I<--size> but the extra space won't actually be "
37320 "allocated in the image until you try to store something in it."
37321 msgstr ""
37322
37323 #. type: textblock
37324 #: ../tools/virt-make-fs.pl:85
37325 msgid ""
37326 "Don't forget that you can also use local commands including L<resize2fs(8)> "
37327 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
37328 "to build another image from scratch."
37329 msgstr ""
37330
37331 #. type: =head3
37332 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
37333 #: ../tools/virt-make-fs.pl:142
37334 msgid "EXAMPLE"
37335 msgstr ""
37336
37337 #. type: verbatim
37338 #: ../tools/virt-make-fs.pl:91
37339 #, no-wrap
37340 msgid ""
37341 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
37342 "\n"
37343 msgstr ""
37344
37345 #. type: =head2
37346 #: ../tools/virt-make-fs.pl:93
37347 msgid "FILESYSTEM TYPE"
37348 msgstr ""
37349
37350 #. type: textblock
37351 #: ../tools/virt-make-fs.pl:95
37352 msgid ""
37353 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
37354 "libguestfs supports can be used (but I<not> read-only formats like "
37355 "ISO9660).  Here are some of the more common choices:"
37356 msgstr ""
37357
37358 #. type: =item
37359 #: ../tools/virt-make-fs.pl:101
37360 msgid "I<ext3>"
37361 msgstr ""
37362
37363 #. type: textblock
37364 #: ../tools/virt-make-fs.pl:103
37365 msgid ""
37366 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
37367 "you are not going to use the filesystem in a way that requires the journal, "
37368 "then this is just wasted overhead."
37369 msgstr ""
37370
37371 #. type: =item
37372 #: ../tools/virt-make-fs.pl:107
37373 msgid "I<ntfs> or I<vfat>"
37374 msgstr ""
37375
37376 #. type: textblock
37377 #: ../tools/virt-make-fs.pl:109
37378 msgid "Useful if exporting data to a Windows guest."
37379 msgstr ""
37380
37381 #. type: textblock
37382 #: ../tools/virt-make-fs.pl:111
37383 msgid ""
37384 "I<Note for vfat>: The tar archive or local directory must only contain files "
37385 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
37386 "program running within libguestfs is unable to change the ownership of non-"
37387 "root files, since vfat itself does not support this."
37388 msgstr ""
37389
37390 #. type: =item
37391 #: ../tools/virt-make-fs.pl:116
37392 msgid "I<minix>"
37393 msgstr ""
37394
37395 #. type: textblock
37396 #: ../tools/virt-make-fs.pl:118
37397 msgid ""
37398 "Lower overhead than C<ext2>, but certain limitations on filename length and "
37399 "total filesystem size."
37400 msgstr ""
37401
37402 #. type: verbatim
37403 #: ../tools/virt-make-fs.pl:125
37404 #, no-wrap
37405 msgid ""
37406 " virt-make-fs --type=minix input minixfs.img\n"
37407 "\n"
37408 msgstr ""
37409
37410 #. type: =head2
37411 #: ../tools/virt-make-fs.pl:127
37412 msgid "TO PARTITION OR NOT TO PARTITION"
37413 msgstr ""
37414
37415 #. type: textblock
37416 #: ../tools/virt-make-fs.pl:129
37417 msgid "Optionally virt-make-fs can add a partition table to the output disk."
37418 msgstr ""
37419
37420 #. type: textblock
37421 #: ../tools/virt-make-fs.pl:131
37422 msgid ""
37423 "Adding a partition can make the disk image more compatible with certain "
37424 "virtualized operating systems which don't expect to see a filesystem "
37425 "directly located on a block device (Linux doesn't care and will happily "
37426 "handle both types)."
37427 msgstr ""
37428
37429 #. type: textblock
37430 #: ../tools/virt-make-fs.pl:136
37431 msgid ""
37432 "On the other hand, if you have a partition table then the output image is no "
37433 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
37434 "directly on a partitioned disk image.  (However libguestfs tools such as "
37435 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
37436 msgstr ""
37437
37438 #. type: textblock
37439 #: ../tools/virt-make-fs.pl:144
37440 msgid "Add an MBR partition:"
37441 msgstr ""
37442
37443 #. type: verbatim
37444 #: ../tools/virt-make-fs.pl:146
37445 #, no-wrap
37446 msgid ""
37447 " virt-make-fs --partition -- input disk.img\n"
37448 "\n"
37449 msgstr ""
37450
37451 #. type: textblock
37452 #: ../tools/virt-make-fs.pl:148
37453 msgid ""
37454 "If the output disk image could be terabyte-sized or larger, it's better to "
37455 "use an EFI/GPT-compatible partition table:"
37456 msgstr ""
37457
37458 #. type: verbatim
37459 #: ../tools/virt-make-fs.pl:151
37460 #, no-wrap
37461 msgid ""
37462 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
37463 "\n"
37464 msgstr ""
37465
37466 #. type: textblock
37467 #: ../tools/virt-make-fs.pl:179
37468 msgid "Enable debugging information."
37469 msgstr ""
37470
37471 #. type: =item
37472 #: ../tools/virt-make-fs.pl:185
37473 msgid "B<--size=E<lt>NE<gt>>"
37474 msgstr ""
37475
37476 #. type: =item
37477 #: ../tools/virt-make-fs.pl:187
37478 msgid "B<--size=+E<lt>NE<gt>>"
37479 msgstr ""
37480
37481 #. type: =item
37482 #: ../tools/virt-make-fs.pl:189
37483 msgid "B<-s E<lt>NE<gt>>"
37484 msgstr ""
37485
37486 #. type: =item
37487 #: ../tools/virt-make-fs.pl:191
37488 msgid "B<-s +E<lt>NE<gt>>"
37489 msgstr ""
37490
37491 #. type: textblock
37492 #: ../tools/virt-make-fs.pl:193
37493 msgid ""
37494 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
37495 msgstr ""
37496
37497 #. type: textblock
37498 #: ../tools/virt-make-fs.pl:196
37499 msgid ""
37500 "If this option is I<not> given, then the output image will be just large "
37501 "enough to contain all the files, with not much wasted space."
37502 msgstr ""
37503
37504 #. type: textblock
37505 #: ../tools/virt-make-fs.pl:199
37506 msgid ""
37507 "To choose a fixed size output disk, specify an absolute number followed by b/"
37508 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
37509 "Petabytes or Exabytes.  This must be large enough to contain all the input "
37510 "files, else you will get an error."
37511 msgstr ""
37512
37513 #. type: textblock
37514 #: ../tools/virt-make-fs.pl:204
37515 msgid ""
37516 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
37517 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
37518 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
37519 "the input files, and (approximately) an extra 200 MB free space."
37520 msgstr ""
37521
37522 #. type: textblock
37523 #: ../tools/virt-make-fs.pl:210
37524 msgid ""
37525 "Note that virt-make-fs estimates free space, and therefore will not produce "
37526 "filesystems containing precisely the free space requested.  (It is much more "
37527 "expensive and time-consuming to produce a filesystem which has precisely the "
37528 "desired free space)."
37529 msgstr ""
37530
37531 #. type: =item
37532 #: ../tools/virt-make-fs.pl:219
37533 msgid "B<--format=E<lt>fmtE<gt>>"
37534 msgstr ""
37535
37536 #. type: =item
37537 #: ../tools/virt-make-fs.pl:221
37538 msgid "B<-F E<lt>fmtE<gt>>"
37539 msgstr ""
37540
37541 #. type: textblock
37542 #: ../tools/virt-make-fs.pl:223
37543 msgid "Choose the output disk image format."
37544 msgstr ""
37545
37546 #. type: textblock
37547 #: ../tools/virt-make-fs.pl:225
37548 msgid "The default is C<raw> (raw disk image)."
37549 msgstr ""
37550
37551 #. type: textblock
37552 #: ../tools/virt-make-fs.pl:227
37553 msgid ""
37554 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
37555 "that would really make sense here is C<qcow2>."
37556 msgstr ""
37557
37558 #. type: =item
37559 #: ../tools/virt-make-fs.pl:234
37560 msgid "B<--type=E<lt>fsE<gt>>"
37561 msgstr ""
37562
37563 #. type: =item
37564 #: ../tools/virt-make-fs.pl:236
37565 msgid "B<-t E<lt>fsE<gt>>"
37566 msgstr ""
37567
37568 #. type: textblock
37569 #: ../tools/virt-make-fs.pl:238
37570 msgid "Choose the output filesystem type."
37571 msgstr ""
37572
37573 #. type: textblock
37574 #: ../tools/virt-make-fs.pl:240
37575 msgid "The default is C<ext2>."
37576 msgstr ""
37577
37578 #. type: textblock
37579 #: ../tools/virt-make-fs.pl:242
37580 msgid ""
37581 "Any filesystem which is supported read-write by libguestfs can be used here."
37582 msgstr ""
37583
37584 #. type: =item
37585 #: ../tools/virt-make-fs.pl:249
37586 msgid "B<--partition>"
37587 msgstr ""
37588
37589 #. type: =item
37590 #: ../tools/virt-make-fs.pl:251
37591 msgid "B<--partition=E<lt>parttypeE<gt>>"
37592 msgstr ""
37593
37594 #. type: textblock
37595 #: ../tools/virt-make-fs.pl:253
37596 msgid ""
37597 "If specified, this flag adds an MBR partition table to the output disk image."
37598 msgstr ""
37599
37600 #. type: textblock
37601 #: ../tools/virt-make-fs.pl:256
37602 msgid ""
37603 "You can change the partition table type, eg. I<--partition=gpt> for large "
37604 "disks."
37605 msgstr ""
37606
37607 #. type: textblock
37608 #: ../tools/virt-make-fs.pl:259
37609 msgid ""
37610 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
37611 "might consider the next parameter to be the partition type.  For example:"
37612 msgstr ""
37613
37614 #. type: verbatim
37615 #: ../tools/virt-make-fs.pl:263
37616 #, no-wrap
37617 msgid ""
37618 " virt-make-fs --partition input.tar ...\n"
37619 "\n"
37620 msgstr ""
37621
37622 #. type: textblock
37623 #: ../tools/virt-make-fs.pl:265
37624 msgid ""
37625 "would cause virt-make-fs to think you wanted to use a partition type of "
37626 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
37627 "dash) between options and the input file argument:"
37628 msgstr ""
37629
37630 #. type: verbatim
37631 #: ../tools/virt-make-fs.pl:269
37632 #, no-wrap
37633 msgid ""
37634 " virt-make-fs --partition -- input.tar ...\n"
37635 "\n"
37636 msgstr ""
37637
37638 #. type: textblock
37639 #: ../tools/virt-make-fs.pl:541
37640 msgid ""
37641 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
37642 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
37643 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
37644 msgstr ""
37645
37646 #. type: textblock
37647 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
37648 msgid ""
37649 "When reporting bugs, please enable debugging and capture the I<complete> "
37650 "output:"
37651 msgstr ""
37652
37653 #. type: verbatim
37654 #: ../tools/virt-make-fs.pl:558
37655 #, no-wrap
37656 msgid ""
37657 " export LIBGUESTFS_DEBUG=1\n"
37658 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
37659 "\n"
37660 msgstr ""
37661
37662 #. type: textblock
37663 #: ../tools/virt-make-fs.pl:561
37664 msgid ""
37665 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
37666 "redhat.com/>"
37667 msgstr ""
37668
37669 #. type: textblock
37670 #: ../tools/virt-tar.pl:33
37671 msgid "virt-tar - Extract or upload files to a virtual machine"
37672 msgstr ""
37673
37674 #. type: verbatim
37675 #: ../tools/virt-tar.pl:37
37676 #, no-wrap
37677 msgid ""
37678 " virt-tar [--options] -x domname directory tarball\n"
37679 "\n"
37680 msgstr ""
37681
37682 #. type: verbatim
37683 #: ../tools/virt-tar.pl:39
37684 #, no-wrap
37685 msgid ""
37686 " virt-tar [--options] -u domname tarball directory\n"
37687 "\n"
37688 msgstr ""
37689
37690 #. type: verbatim
37691 #: ../tools/virt-tar.pl:41
37692 #, no-wrap
37693 msgid ""
37694 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
37695 "\n"
37696 msgstr ""
37697
37698 #. type: verbatim
37699 #: ../tools/virt-tar.pl:43
37700 #, no-wrap
37701 msgid ""
37702 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
37703 "\n"
37704 msgstr ""
37705
37706 #. type: =head2
37707 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
37708 msgid "NOTE"
37709 msgstr ""
37710
37711 #. type: textblock
37712 #: ../tools/virt-tar.pl:47
37713 msgid ""
37714 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
37715 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
37716 msgstr ""
37717
37718 #. type: textblock
37719 #: ../tools/virt-tar.pl:52
37720 msgid "Download C</home> from the VM into a local tarball:"
37721 msgstr ""
37722
37723 #. type: verbatim
37724 #: ../tools/virt-tar.pl:54
37725 #, no-wrap
37726 msgid ""
37727 " virt-tar -x domname /home home.tar\n"
37728 "\n"
37729 msgstr ""
37730
37731 #. type: verbatim
37732 #: ../tools/virt-tar.pl:56
37733 #, no-wrap
37734 msgid ""
37735 " virt-tar -zx domname /home home.tar.gz\n"
37736 "\n"
37737 msgstr ""
37738
37739 #. type: textblock
37740 #: ../tools/virt-tar.pl:58
37741 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
37742 msgstr ""
37743
37744 #. type: verbatim
37745 #: ../tools/virt-tar.pl:60
37746 #, no-wrap
37747 msgid ""
37748 " virt-tar -u domname uploadstuff.tar /tmp\n"
37749 "\n"
37750 msgstr ""
37751
37752 #. type: verbatim
37753 #: ../tools/virt-tar.pl:62
37754 #, no-wrap
37755 msgid ""
37756 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
37757 "\n"
37758 msgstr ""
37759
37760 #. type: textblock
37761 #: ../tools/virt-tar.pl:66
37762 msgid ""
37763 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
37764 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
37765 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
37766 msgstr ""
37767
37768 #. type: textblock
37769 #: ../tools/virt-tar.pl:71
37770 msgid ""
37771 "You can use I<-x> (extract) on live virtual machines, but you might get "
37772 "inconsistent results or errors if there is filesystem activity inside the "
37773 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
37774 "work, but the only way to guarantee consistent results is if the virtual "
37775 "machine is shut down."
37776 msgstr ""
37777
37778 #. type: textblock
37779 #: ../tools/virt-tar.pl:79
37780 msgid ""
37781 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
37782 "parts of a guest filesystem.  There are many possibilities: making backups, "
37783 "uploading data files, snooping on guest activity, fixing or customizing "
37784 "guests, etc."
37785 msgstr ""
37786
37787 #. type: textblock
37788 #: ../tools/virt-tar.pl:84
37789 msgid ""
37790 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
37791 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
37792 "should look at the L<guestfish(1)> tool."
37793 msgstr ""
37794
37795 #. type: textblock
37796 #: ../tools/virt-tar.pl:88
37797 msgid ""
37798 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
37799 "its contents (recursively) from the virtual machine into a local tarball.  "
37800 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
37801 "virtual machine.  You cannot use these two options together."
37802 msgstr ""
37803
37804 #. type: textblock
37805 #: ../tools/virt-tar.pl:94
37806 msgid ""
37807 "In addition, you may need to use the I<-z> (gZip) option to enable "
37808 "compression.  When uploading, you have to specify I<-z> if the upload file "
37809 "is compressed because virt-tar won't detect this on its own."
37810 msgstr ""
37811
37812 #. type: textblock
37813 #: ../tools/virt-tar.pl:98
37814 msgid ""
37815 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
37816 "example it cannot do PKZip files or bzip2 compression.  If you want that "
37817 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
37818 "the L<libguestfs(3)> API)."
37819 msgstr ""
37820
37821 #. type: =item
37822 #: ../tools/virt-tar.pl:160
37823 msgid "B<--extract>"
37824 msgstr ""
37825
37826 #. type: =item
37827 #: ../tools/virt-tar.pl:162
37828 msgid "B<--download>"
37829 msgstr ""
37830
37831 #. type: =item
37832 #: ../tools/virt-tar.pl:164
37833 msgid "B<-u>"
37834 msgstr ""
37835
37836 #. type: =item
37837 #: ../tools/virt-tar.pl:166
37838 msgid "B<--upload>"
37839 msgstr ""
37840
37841 #. type: textblock
37842 #: ../tools/virt-tar.pl:168
37843 msgid ""
37844 "Use I<-x> to extract (download) a directory from a virtual machine to a "
37845 "local tarball."
37846 msgstr ""
37847
37848 #. type: textblock
37849 #: ../tools/virt-tar.pl:171
37850 msgid ""
37851 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
37852 "Please read the L</WARNING> section above before using this option."
37853 msgstr ""
37854
37855 #. type: textblock
37856 #: ../tools/virt-tar.pl:175
37857 msgid "You must specify exactly one of these options."
37858 msgstr ""
37859
37860 #. type: =item
37861 #: ../tools/virt-tar.pl:181
37862 msgid "B<-z>"
37863 msgstr ""
37864
37865 #. type: =item
37866 #: ../tools/virt-tar.pl:183
37867 msgid "B<--gzip>"
37868 msgstr ""
37869
37870 #. type: textblock
37871 #: ../tools/virt-tar.pl:185
37872 msgid "Specify that the input or output tarball is gzip-compressed."
37873 msgstr ""
37874
37875 #. type: textblock
37876 #: ../tools/virt-tar.pl:298
37877 msgid ""
37878 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
37879 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
37880 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
37881 "org/>."
37882 msgstr ""
37883
37884 #. type: textblock
37885 #: ../tools/virt-win-reg.pl:37
37886 msgid ""
37887 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
37888 msgstr ""
37889
37890 #. type: verbatim
37891 #: ../tools/virt-win-reg.pl:41
37892 #, no-wrap
37893 msgid ""
37894 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
37895 "\n"
37896 msgstr ""
37897
37898 #. type: verbatim
37899 #: ../tools/virt-win-reg.pl:43
37900 #, no-wrap
37901 msgid ""
37902 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
37903 "\n"
37904 msgstr ""
37905
37906 #. type: verbatim
37907 #: ../tools/virt-win-reg.pl:45
37908 #, no-wrap
37909 msgid ""
37910 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
37911 "\n"
37912 msgstr ""
37913
37914 #. type: verbatim
37915 #: ../tools/virt-win-reg.pl:47
37916 #, no-wrap
37917 msgid ""
37918 " virt-win-reg --merge domname [input.reg ...]\n"
37919 "\n"
37920 msgstr ""
37921
37922 #. type: verbatim
37923 #: ../tools/virt-win-reg.pl:49
37924 #, no-wrap
37925 msgid ""
37926 " virt-win-reg [--options] disk.img ... # instead of domname\n"
37927 "\n"
37928 msgstr ""
37929
37930 #. type: textblock
37931 #: ../tools/virt-win-reg.pl:53
37932 msgid ""
37933 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
37934 "virtual machines.  If you do this, you I<will> get irreversible disk "
37935 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
37936 "but doesn't catch all cases."
37937 msgstr ""
37938
37939 #. type: textblock
37940 #: ../tools/virt-win-reg.pl:58
37941 msgid ""
37942 "Modifying the Windows Registry is an inherently risky operation.  The format "
37943 "is deliberately obscure and undocumented, and Registry changes can leave the "
37944 "system unbootable.  Therefore when using the I<--merge> option, make sure "
37945 "you have a reliable backup first."
37946 msgstr ""
37947
37948 #. type: textblock
37949 #: ../tools/virt-win-reg.pl:65
37950 msgid ""
37951 "This program can export and merge Windows Registry entries from a Windows "
37952 "guest."
37953 msgstr ""
37954
37955 #. type: textblock
37956 #: ../tools/virt-win-reg.pl:68
37957 msgid ""
37958 "The first parameter is the libvirt guest name or the raw disk image of a "
37959 "Windows guest."
37960 msgstr ""
37961
37962 #. type: textblock
37963 #: ../tools/virt-win-reg.pl:71
37964 msgid ""
37965 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
37966 "exported (recursively).  For example:"
37967 msgstr ""
37968
37969 #. type: verbatim
37970 #: ../tools/virt-win-reg.pl:74
37971 #, no-wrap
37972 msgid ""
37973 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
37974 "\n"
37975 msgstr ""
37976
37977 #. type: textblock
37978 #: ../tools/virt-win-reg.pl:76
37979 msgid ""
37980 "You can also display single values from within registry keys, for example:"
37981 msgstr ""
37982
37983 #. type: verbatim
37984 #: ../tools/virt-win-reg.pl:79
37985 #, no-wrap
37986 msgid ""
37987 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
37988 " $ virt-win-reg Windows7 $cvkey ProductName\n"
37989 " Windows 7 Enterprise\n"
37990 "\n"
37991 msgstr ""
37992
37993 #. type: textblock
37994 #: ../tools/virt-win-reg.pl:83
37995 msgid ""
37996 "With I<--merge>, you can merge a textual regedit file into the Windows "
37997 "Registry:"
37998 msgstr ""
37999
38000 #. type: verbatim
38001 #: ../tools/virt-win-reg.pl:86
38002 #, no-wrap
38003 msgid ""
38004 " $ virt-win-reg --merge Windows7 changes.reg\n"
38005 "\n"
38006 msgstr ""
38007
38008 #. type: textblock
38009 #: ../tools/virt-win-reg.pl:90
38010 msgid ""
38011 "This program is only meant for simple access to the registry.  If you want "
38012 "to do complicated things with the registry, we suggest you download the "
38013 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
38014 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
38015 "L<hivexregedit(1)>."
38016 msgstr ""
38017
38018 #. type: =item
38019 #: ../tools/virt-win-reg.pl:159
38020 msgid "B<--merge>"
38021 msgstr ""
38022
38023 #. type: textblock
38024 #: ../tools/virt-win-reg.pl:161
38025 msgid ""
38026 "In merge mode, this merges a textual regedit file into the Windows Registry "
38027 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
38028 "displays or exports Registry entries instead."
38029 msgstr ""
38030
38031 #. type: textblock
38032 #: ../tools/virt-win-reg.pl:165
38033 msgid ""
38034 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
38035 "result in disk corruption.  However exporting (without this flag)  is always "
38036 "safe."
38037 msgstr ""
38038
38039 #. type: =item
38040 #: ../tools/virt-win-reg.pl:173
38041 msgid "B<--encoding> UTF-16LE|ASCII"
38042 msgstr ""
38043
38044 #. type: textblock
38045 #: ../tools/virt-win-reg.pl:175
38046 msgid ""
38047 "When merging (only), you may need to specify the encoding for strings to be "
38048 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
38049 "(3)/ENCODING STRINGS>."
38050 msgstr ""
38051
38052 #. type: textblock
38053 #: ../tools/virt-win-reg.pl:179
38054 msgid ""
38055 "The default is to use UTF-16LE, which should work with recent versions of "
38056 "Windows."
38057 msgstr ""
38058
38059 #. type: =item
38060 #: ../tools/virt-win-reg.pl:186
38061 msgid "B<--unsafe-printable-strings>"
38062 msgstr ""
38063
38064 #. type: textblock
38065 #: ../tools/virt-win-reg.pl:188
38066 msgid ""
38067 "When exporting (only), assume strings are UTF-16LE and print them as strings "
38068 "instead of hex sequences.  Remove the final zero codepoint from strings if "
38069 "present."
38070 msgstr ""
38071
38072 #. type: textblock
38073 #: ../tools/virt-win-reg.pl:192
38074 msgid ""
38075 "This is unsafe and does not preserve the fidelity of strings in the original "
38076 "Registry for various reasons:"
38077 msgstr ""
38078
38079 #. type: textblock
38080 #: ../tools/virt-win-reg.pl:199
38081 msgid ""
38082 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
38083 "other encodings will be corrupted by this transformation."
38084 msgstr ""
38085
38086 #. type: textblock
38087 #: ../tools/virt-win-reg.pl:204
38088 msgid ""
38089 "Assumes that everything which has type 1 or 2 is really a string and that "
38090 "everything else is not a string, but the type field in real Registries is "
38091 "not reliable."
38092 msgstr ""
38093
38094 #. type: textblock
38095 #: ../tools/virt-win-reg.pl:210
38096 msgid ""
38097 "Loses information about whether a zero codepoint followed the string in the "
38098 "Registry or not."
38099 msgstr ""
38100
38101 #. type: textblock
38102 #: ../tools/virt-win-reg.pl:215
38103 msgid ""
38104 "This all happens because the Registry itself contains no information about "
38105 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
38106 msgstr ""
38107
38108 #. type: textblock
38109 #: ../tools/virt-win-reg.pl:219
38110 msgid ""
38111 "You should only use this option for quick hacking and debugging of the "
38112 "Registry contents, and I<never> use it if the output is going to be passed "
38113 "into another program or stored in another Registry."
38114 msgstr ""
38115
38116 #. type: =head1
38117 #: ../tools/virt-win-reg.pl:556
38118 msgid "SUPPORTED SYSTEMS"
38119 msgstr ""
38120
38121 #. type: textblock
38122 #: ../tools/virt-win-reg.pl:558
38123 msgid ""
38124 "The program currently supports Windows NT-derived guests starting with "
38125 "Windows XP through to at least Windows 7."
38126 msgstr ""
38127
38128 #. type: textblock
38129 #: ../tools/virt-win-reg.pl:561
38130 msgid "The following Registry keys are supported:"
38131 msgstr ""
38132
38133 #. type: =item
38134 #: ../tools/virt-win-reg.pl:565
38135 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
38136 msgstr ""
38137
38138 #. type: =item
38139 #: ../tools/virt-win-reg.pl:567
38140 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
38141 msgstr ""
38142
38143 #. type: =item
38144 #: ../tools/virt-win-reg.pl:569
38145 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
38146 msgstr ""
38147
38148 #. type: =item
38149 #: ../tools/virt-win-reg.pl:571
38150 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
38151 msgstr ""
38152
38153 #. type: =item
38154 #: ../tools/virt-win-reg.pl:573
38155 msgid "C<HKEY_USERS\\.DEFAULT>"
38156 msgstr ""
38157
38158 #. type: =item
38159 #: ../tools/virt-win-reg.pl:575
38160 msgid "C<HKEY_USERS\\I<SID>>"
38161 msgstr ""
38162
38163 #. type: textblock
38164 #: ../tools/virt-win-reg.pl:577
38165 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
38166 msgstr ""
38167
38168 #. type: =item
38169 #: ../tools/virt-win-reg.pl:579
38170 msgid "C<HKEY_USERS\\I<username>>"
38171 msgstr ""
38172
38173 #. type: textblock
38174 #: ../tools/virt-win-reg.pl:581
38175 msgid ""
38176 "where I<username> is a local user name (this is a libguestfs extension)."
38177 msgstr ""
38178
38179 #. type: textblock
38180 #: ../tools/virt-win-reg.pl:585
38181 msgid ""
38182 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
38183 "C<HKEY_USERS>."
38184 msgstr ""
38185
38186 #. type: textblock
38187 #: ../tools/virt-win-reg.pl:588
38188 msgid ""
38189 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
38190 "supported (there is no \"current user\")."
38191 msgstr ""
38192
38193 #. type: =head1
38194 #: ../tools/virt-win-reg.pl:591
38195 msgid "ENCODING"
38196 msgstr ""
38197
38198 #. type: textblock
38199 #: ../tools/virt-win-reg.pl:593
38200 msgid ""
38201 "C<virt-win-reg> expects that regedit files have already been reencoded in "
38202 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
38203 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
38204 "Windows-style line endings, you may need to reencode the whole file before "
38205 "or after processing."
38206 msgstr ""
38207
38208 #. type: textblock
38209 #: ../tools/virt-win-reg.pl:599
38210 msgid ""
38211 "To reencode a file from Windows format to Linux (before processing it with "
38212 "the I<--merge> option), you would do something like this:"
38213 msgstr ""
38214
38215 #. type: verbatim
38216 #: ../tools/virt-win-reg.pl:602
38217 #, no-wrap
38218 msgid ""
38219 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
38220 "\n"
38221 msgstr ""
38222
38223 #. type: textblock
38224 #: ../tools/virt-win-reg.pl:604
38225 msgid ""
38226 "To go in the opposite direction, after exporting and before sending the file "
38227 "to a Windows user, do something like this:"
38228 msgstr ""
38229
38230 #. type: verbatim
38231 #: ../tools/virt-win-reg.pl:607
38232 #, no-wrap
38233 msgid ""
38234 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
38235 "\n"
38236 msgstr ""
38237
38238 #. type: textblock
38239 #: ../tools/virt-win-reg.pl:609
38240 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
38241 msgstr ""
38242
38243 #. type: textblock
38244 #: ../tools/virt-win-reg.pl:611
38245 msgid ""
38246 "If you are unsure about the current encoding, use the L<file(1)> command.  "
38247 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
38248 "style (CRLF) line endings, like this:"
38249 msgstr ""
38250
38251 #. type: verbatim
38252 #: ../tools/virt-win-reg.pl:615
38253 #, no-wrap
38254 msgid ""
38255 " $ file software.reg\n"
38256 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
38257 " with CRLF line terminators\n"
38258 "\n"
38259 msgstr ""
38260
38261 #. type: textblock
38262 #: ../tools/virt-win-reg.pl:619
38263 msgid "This file would need conversion before you could I<--merge> it."
38264 msgstr ""
38265
38266 #. type: =head1
38267 #: ../tools/virt-win-reg.pl:621
38268 msgid "CurrentControlSet etc."
38269 msgstr ""
38270
38271 #. type: textblock
38272 #: ../tools/virt-win-reg.pl:623
38273 msgid ""
38274 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
38275 "Registry at the level of the hive file, and therefore you cannot modify "
38276 "these."
38277 msgstr ""
38278
38279 #. type: textblock
38280 #: ../tools/virt-win-reg.pl:627
38281 msgid ""
38282 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
38283 "circumstances it might refer to another control set.  The way to find out is "
38284 "to look at the C<HKLM\\SYSTEM\\Select> key:"
38285 msgstr ""
38286
38287 #. type: verbatim
38288 #: ../tools/virt-win-reg.pl:631
38289 #, no-wrap
38290 msgid ""
38291 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
38292 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
38293 " \"Current\"=dword:00000001\n"
38294 " \"Default\"=dword:00000001\n"
38295 " \"Failed\"=dword:00000000\n"
38296 " \"LastKnownGood\"=dword:00000002\n"
38297 "\n"
38298 msgstr ""
38299
38300 #. type: textblock
38301 #: ../tools/virt-win-reg.pl:638
38302 msgid "\"Current\" is the one which Windows will choose when it boots."
38303 msgstr ""
38304
38305 #. type: textblock
38306 #: ../tools/virt-win-reg.pl:640
38307 msgid ""
38308 "Similarly, other C<Current...> keys in the path may need to be replaced."
38309 msgstr ""
38310
38311 #. type: =head1
38312 #: ../tools/virt-win-reg.pl:643
38313 msgid "WINDOWS TIPS"
38314 msgstr ""
38315
38316 #. type: textblock
38317 #: ../tools/virt-win-reg.pl:645
38318 msgid ""
38319 "Note that some of these tips modify the guest disk image.  The guest I<must> "
38320 "be shut off, else you will get disk corruption."
38321 msgstr ""
38322
38323 #. type: =head2
38324 #: ../tools/virt-win-reg.pl:648
38325 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
38326 msgstr ""
38327
38328 #. type: textblock
38329 #: ../tools/virt-win-reg.pl:650
38330 msgid ""
38331 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
38332 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
38333 "is uploaded into C<C:\\>:"
38334 msgstr ""
38335
38336 #. type: verbatim
38337 #: ../tools/virt-win-reg.pl:654
38338 #, no-wrap
38339 msgid ""
38340 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
38341 "\n"
38342 msgstr ""
38343
38344 #. type: textblock
38345 #: ../tools/virt-win-reg.pl:656
38346 msgid "Prepare a regedit file containing the registry change:"
38347 msgstr ""
38348
38349 #. type: verbatim
38350 #: ../tools/virt-win-reg.pl:658
38351 #, no-wrap
38352 msgid ""
38353 " cat > test.reg <<'EOF'\n"
38354 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
38355 " \"Test\"=\"c:\\\\test.bat\"\n"
38356 " EOF\n"
38357 "\n"
38358 msgstr ""
38359
38360 #. type: textblock
38361 #: ../tools/virt-win-reg.pl:663
38362 msgid ""
38363 "In this example we use the key C<RunOnce> which means that the script will "
38364 "run precisely once when the first user logs in.  If you want it to run every "
38365 "time a user logs in, replace C<RunOnce> with C<Run>."
38366 msgstr ""
38367
38368 #. type: textblock
38369 #: ../tools/virt-win-reg.pl:667
38370 msgid "Now update the registry:"
38371 msgstr ""
38372
38373 #. type: verbatim
38374 #: ../tools/virt-win-reg.pl:669
38375 #, no-wrap
38376 msgid ""
38377 " virt-win-reg --merge WindowsGuest test.reg\n"
38378 "\n"
38379 msgstr ""
38380
38381 #. type: =head2
38382 #: ../tools/virt-win-reg.pl:671
38383 msgid "INSTALLING A SERVICE"
38384 msgstr ""
38385
38386 #. type: textblock
38387 #: ../tools/virt-win-reg.pl:673
38388 msgid ""
38389 "This section assumes you are familiar with Windows services, and you either "
38390 "have a program which handles the Windows Service Control Protocol directly "
38391 "or you want to run any program using a service wrapper like SrvAny or the "
38392 "free RHSrvAny."
38393 msgstr ""
38394
38395 #. type: textblock
38396 #: ../tools/virt-win-reg.pl:678
38397 msgid ""
38398 "First upload the program and optionally the service wrapper.  In this case "
38399 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
38400 msgstr ""
38401
38402 #. type: verbatim
38403 #: ../tools/virt-win-reg.pl:682
38404 #, no-wrap
38405 msgid ""
38406 " guestfish -i -d WindowsGuest <<EOF\n"
38407 "   upload rhsrvany.exe /rhsrvany.exe\n"
38408 "   upload test.exe /test.exe\n"
38409 " EOF\n"
38410 "\n"
38411 msgstr ""
38412
38413 #. type: textblock
38414 #: ../tools/virt-win-reg.pl:687
38415 msgid ""
38416 "Prepare a regedit file containing the registry changes.  In this example, "
38417 "the first registry change is needed for the service itself or the service "
38418 "wrapper (if used).  The second registry change is only needed because I am "
38419 "using the RHSrvAny service wrapper."
38420 msgstr ""
38421
38422 #. type: verbatim
38423 #: ../tools/virt-win-reg.pl:692
38424 #, no-wrap
38425 msgid ""
38426 " cat > service.reg <<'EOF'\n"
38427 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
38428 " \"Type\"=dword:00000010\n"
38429 " \"Start\"=dword:00000002\n"
38430 " \"ErrorControl\"=dword:00000001\n"
38431 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
38432 " \"DisplayName\"=\"RHSrvAny\"\n"
38433 " \"ObjectName\"=\"NetworkService\"\n"
38434 " \n"
38435 msgstr ""
38436
38437 #. type: verbatim
38438 #: ../tools/virt-win-reg.pl:701
38439 #, no-wrap
38440 msgid ""
38441 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
38442 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
38443 " \"PWD\"=\"c:\\\\Temp\"\n"
38444 " EOF\n"
38445 "\n"
38446 msgstr ""
38447
38448 #. type: textblock
38449 #: ../tools/virt-win-reg.pl:712
38450 msgid ""
38451 "For use of C<ControlSet001> see the section above in this manual page.  You "
38452 "may need to adjust this according to the control set that is in use by the "
38453 "guest."
38454 msgstr ""
38455
38456 #. type: textblock
38457 #: ../tools/virt-win-reg.pl:718
38458 msgid ""
38459 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
38460 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
38461 "privileged account."
38462 msgstr ""
38463
38464 #. type: textblock
38465 #: ../tools/virt-win-reg.pl:724
38466 msgid ""
38467 "For the meaning of the magic numbers, see this Microsoft KB article: "
38468 "L<http://support.microsoft.com/kb/103000>."
38469 msgstr ""
38470
38471 #. type: textblock
38472 #: ../tools/virt-win-reg.pl:729
38473 msgid "Update the registry:"
38474 msgstr ""
38475
38476 #. type: verbatim
38477 #: ../tools/virt-win-reg.pl:731
38478 #, no-wrap
38479 msgid ""
38480 " virt-win-reg --merge WindowsGuest service.reg\n"
38481 "\n"
38482 msgstr ""
38483
38484 #. type: textblock
38485 #: ../tools/virt-win-reg.pl:735
38486 msgid ""
38487 "Be careful when passing parameters containing C<\\> (backslash) in the "
38488 "shell.  Usually you will have to use 'single quotes' or double backslashes "
38489 "(but not both) to protect them from the shell."
38490 msgstr ""
38491
38492 #. type: textblock
38493 #: ../tools/virt-win-reg.pl:739
38494 msgid "Paths and value names are case-insensitive."
38495 msgstr ""
38496
38497 #. type: textblock
38498 #: ../tools/virt-win-reg.pl:748
38499 msgid ""
38500 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
38501 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
38502 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38503 msgstr ""
38504
38505 #. type: verbatim
38506 #: ../tools/virt-win-reg.pl:766
38507 #, no-wrap
38508 msgid ""
38509 " export LIBGUESTFS_DEBUG=1\n"
38510 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
38511 "\n"
38512 msgstr ""
38513
38514 #. type: textblock
38515 #: ../tools/virt-win-reg.pl:769
38516 msgid ""
38517 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
38518 "redhat.com/>"
38519 msgstr ""