7f762822ec77ea166370ec2761e5d61cc81be1e7
[libguestfs.git] / po-docs / ja.po
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
4 #
5 # rjones <rjones@redhat.com>, 2011.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: libguestfs\n"
9 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
10 "POT-Creation-Date: 2011-08-26 22:52+0200\n"
11 "PO-Revision-Date: 2011-07-17 20:50+0000\n"
12 "Last-Translator: rjones <rjones@redhat.com>\n"
13 "Language-Team: Japanese (http://www.transifex.net/projects/p/fedora/team/"
14 "ja/)\n"
15 "Language: ja\n"
16 "MIME-Version: 1.0\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19 "Plural-Forms: nplurals=1; plural=0\n"
20
21 #. type: =head1
22 #: ../cat/virt-cat.pod:3 ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3
23 #: ../df/virt-df.pod:3 ../edit/virt-edit.pod:3
24 #: ../examples/guestfs-examples.pod:3 ../examples/guestfs-recipes.pod:14
25 #: ../fish/guestfish.pod:3 ../fish/virt-copy-in.pod:3
26 #: ../fish/virt-copy-out.pod:3 ../fish/virt-tar-in.pod:3
27 #: ../fish/virt-tar-out.pod:3 ../fuse/guestmount.pod:3
28 #: ../inspector/virt-inspector.pod:3 ../java/examples/guestfs-java.pod:3
29 #: ../ocaml/examples/guestfs-ocaml.pod:3 ../perl/examples/guestfs-perl.pod:3
30 #: ../python/examples/guestfs-python.pod:3 ../rescue/virt-rescue.pod:3
31 #: ../resize/virt-resize.pod:3 ../ruby/examples/guestfs-ruby.pod:3
32 #: ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3
33 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
34 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
35 #: ../tools/virt-win-reg.pl:35
36 msgid "NAME"
37 msgstr "名前"
38
39 #. type: textblock
40 #: ../cat/virt-cat.pod:5
41 msgid "virt-cat - Display files in a virtual machine"
42 msgstr ""
43
44 #. type: =head1
45 #: ../cat/virt-cat.pod:7 ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7
46 #: ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
47 #: ../examples/guestfs-examples.pod:7 ../fish/guestfish.pod:7
48 #: ../fish/virt-copy-in.pod:7 ../fish/virt-copy-out.pod:7
49 #: ../fish/virt-tar-in.pod:7 ../fish/virt-tar-out.pod:7
50 #: ../fuse/guestmount.pod:7 ../inspector/virt-inspector.pod:7
51 #: ../java/examples/guestfs-java.pod:7 ../ocaml/examples/guestfs-ocaml.pod:7
52 #: ../perl/examples/guestfs-perl.pod:7 ../python/examples/guestfs-python.pod:7
53 #: ../rescue/virt-rescue.pod:7 ../resize/virt-resize.pod:7
54 #: ../ruby/examples/guestfs-ruby.pod:7 ../src/guestfs.pod:7
55 #: ../test-tool/libguestfs-test-tool.pod:7
56 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
57 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
58 #: ../tools/virt-win-reg.pl:39
59 msgid "SYNOPSIS"
60 msgstr ""
61
62 #. type: verbatim
63 #: ../cat/virt-cat.pod:9
64 #, no-wrap
65 msgid ""
66 " virt-cat [--options] -d domname file [file ...]\n"
67 "\n"
68 msgstr ""
69
70 #. type: verbatim
71 #: ../cat/virt-cat.pod:11
72 #, no-wrap
73 msgid ""
74 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
75 "\n"
76 msgstr ""
77
78 #. type: textblock
79 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
80 #: ../inspector/virt-inspector.pod:13
81 msgid "Old-style:"
82 msgstr ""
83
84 #. type: verbatim
85 #: ../cat/virt-cat.pod:15
86 #, no-wrap
87 msgid ""
88 " virt-cat domname file\n"
89 "\n"
90 msgstr ""
91
92 #. type: verbatim
93 #: ../cat/virt-cat.pod:17
94 #, no-wrap
95 msgid ""
96 " virt-cat disk.img file\n"
97 "\n"
98 msgstr ""
99
100 #. type: =head1
101 #: ../cat/virt-cat.pod:19 ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
102 #: ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
103 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
104 #: ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19
105 #: ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21
106 #: ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20
107 #: ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15
108 #: ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18
109 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29
110 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
111 #: ../src/guestfs.pod:23 ../test-tool/libguestfs-test-tool.pod:11
112 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
113 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
114 #: ../tools/virt-win-reg.pl:63
115 msgid "DESCRIPTION"
116 msgstr ""
117
118 #. type: textblock
119 #: ../cat/virt-cat.pod:21
120 msgid ""
121 "C<virt-cat> is a command line tool to display the contents of C<file> where "
122 "C<file> exists in the named virtual machine (or disk image)."
123 msgstr ""
124
125 #. type: textblock
126 #: ../cat/virt-cat.pod:24
127 msgid ""
128 "Multiple filenames can be given, in which case they are concatenated "
129 "together.  Each filename must be a full path, starting at the root directory "
130 "(starting with '/')."
131 msgstr ""
132
133 #. type: textblock
134 #: ../cat/virt-cat.pod:28
135 msgid ""
136 "C<virt-cat> can be used to quickly view a file.  To edit a file, use C<virt-"
137 "edit>.  For more complex cases you should look at the L<guestfish(1)> tool "
138 "(see L</USING GUESTFISH> below)."
139 msgstr ""
140
141 #. type: =head1
142 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
143 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
144 #: ../fish/guestfish.pod:1018 ../fish/virt-copy-in.pod:29
145 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
146 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
147 #: ../resize/virt-resize.pod:27 ../tools/virt-tar.pl:50
148 msgid "EXAMPLES"
149 msgstr ""
150
151 #. type: textblock
152 #: ../cat/virt-cat.pod:34
153 msgid ""
154 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
155 msgstr ""
156
157 #. type: verbatim
158 #: ../cat/virt-cat.pod:37
159 #, no-wrap
160 msgid ""
161 " virt-cat -d mydomain /etc/fstab\n"
162 "\n"
163 msgstr ""
164
165 #. type: textblock
166 #: ../cat/virt-cat.pod:39
167 msgid "List syslog messages from a VM disk image file:"
168 msgstr ""
169
170 #. type: verbatim
171 #: ../cat/virt-cat.pod:41
172 #, no-wrap
173 msgid ""
174 " virt-cat -a disk.img /var/log/messages | tail\n"
175 "\n"
176 msgstr ""
177
178 #. type: textblock
179 #: ../cat/virt-cat.pod:43
180 msgid "Find out what DHCP IP address a VM acquired:"
181 msgstr ""
182
183 #. type: verbatim
184 #: ../cat/virt-cat.pod:45
185 #, no-wrap
186 msgid ""
187 " virt-cat -d mydomain /var/log/messages | \\\n"
188 "   grep 'dhclient: bound to' | tail\n"
189 "\n"
190 msgstr ""
191
192 #. type: textblock
193 #: ../cat/virt-cat.pod:48
194 msgid "Find out what packages were recently installed:"
195 msgstr ""
196
197 #. type: verbatim
198 #: ../cat/virt-cat.pod:50
199 #, no-wrap
200 msgid ""
201 " virt-cat -d mydomain /var/log/yum.log | tail\n"
202 "\n"
203 msgstr ""
204
205 #. type: textblock
206 #: ../cat/virt-cat.pod:52
207 msgid "Find out who is logged on inside a virtual machine:"
208 msgstr ""
209
210 #. type: verbatim
211 #: ../cat/virt-cat.pod:54
212 #, no-wrap
213 msgid ""
214 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
215 " who /tmp/utmp\n"
216 "\n"
217 msgstr ""
218
219 #. type: textblock
220 #: ../cat/virt-cat.pod:57
221 msgid "or who was logged on:"
222 msgstr ""
223
224 #. type: verbatim
225 #: ../cat/virt-cat.pod:59
226 #, no-wrap
227 msgid ""
228 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
229 " last -f /tmp/wtmp\n"
230 "\n"
231 msgstr ""
232
233 #. type: =head1
234 #: ../cat/virt-cat.pod:62 ../cat/virt-filesystems.pod:91
235 #: ../cat/virt-ls.pod:261 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
236 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
237 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
238 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:83
239 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84
240 #: ../resize/virt-resize.pod:241 ../test-tool/libguestfs-test-tool.pod:37
241 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
242 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
243 #: ../tools/virt-win-reg.pl:96
244 msgid "OPTIONS"
245 msgstr ""
246
247 #. type: =item
248 #: ../cat/virt-cat.pod:66 ../cat/virt-filesystems.pod:95
249 #: ../cat/virt-ls.pod:265 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
250 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:151
251 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88
252 #: ../resize/virt-resize.pod:245 ../tools/virt-list-filesystems.pl:61
253 #: ../tools/virt-list-partitions.pl:62 ../tools/virt-make-fs.pl:161
254 #: ../tools/virt-tar.pl:111 ../tools/virt-win-reg.pl:104
255 msgid "B<--help>"
256 msgstr ""
257
258 #. type: textblock
259 #: ../cat/virt-cat.pod:68 ../cat/virt-filesystems.pod:97
260 #: ../cat/virt-ls.pod:267 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
261 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90
262 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
263 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
264 #: ../tools/virt-win-reg.pl:106
265 msgid "Display brief help."
266 msgstr ""
267
268 #. type: =item
269 #: ../cat/virt-cat.pod:70 ../cat/virt-filesystems.pod:99
270 #: ../cat/virt-ls.pod:269 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
271 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
272 msgid "B<-a> file"
273 msgstr ""
274
275 #. type: =item
276 #: ../cat/virt-cat.pod:72 ../cat/virt-filesystems.pod:101
277 #: ../cat/virt-ls.pod:271 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
278 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
279 msgid "B<--add> file"
280 msgstr ""
281
282 #. type: textblock
283 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
284 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
285 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
286 msgid ""
287 "Add I<file> which should be a disk image from a virtual machine.  If the "
288 "virtual machine has multiple block devices, you must supply all of them with "
289 "separate I<-a> options."
290 msgstr ""
291
292 #. type: textblock
293 #: ../cat/virt-cat.pod:78 ../cat/virt-filesystems.pod:107
294 #: ../cat/virt-ls.pod:277 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
295 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:93
296 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
297 msgid ""
298 "The format of the disk image is auto-detected.  To override this and force a "
299 "particular format use the I<--format=..> option."
300 msgstr ""
301
302 #. type: =item
303 #: ../cat/virt-cat.pod:81 ../cat/virt-filesystems.pod:125
304 #: ../cat/virt-ls.pod:291 ../df/virt-df.pod:78 ../rescue/virt-rescue.pod:107
305 msgid "B<-c> URI"
306 msgstr ""
307
308 #. type: =item
309 #: ../cat/virt-cat.pod:83 ../cat/virt-filesystems.pod:127
310 #: ../cat/virt-ls.pod:293 ../df/virt-df.pod:80 ../rescue/virt-rescue.pod:109
311 msgid "B<--connect> URI"
312 msgstr ""
313
314 #. type: textblock
315 #: ../cat/virt-cat.pod:85 ../cat/virt-filesystems.pod:129
316 #: ../cat/virt-ls.pod:295 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
317 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111
318 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
319 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
320 msgid ""
321 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
322 "to the default libvirt hypervisor."
323 msgstr ""
324
325 #. type: textblock
326 #: ../cat/virt-cat.pod:88 ../cat/virt-filesystems.pod:132
327 #: ../cat/virt-ls.pod:298 ../df/virt-df.pod:85 ../rescue/virt-rescue.pod:114
328 msgid ""
329 "If you specify guest block devices directly (I<-a>), then libvirt is not "
330 "used at all."
331 msgstr ""
332
333 #. type: =item
334 #: ../cat/virt-cat.pod:91 ../cat/virt-filesystems.pod:141
335 #: ../cat/virt-ls.pod:307 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
336 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
337 msgid "B<-d> guest"
338 msgstr ""
339
340 #. type: =item
341 #: ../cat/virt-cat.pod:93 ../cat/virt-filesystems.pod:143
342 #: ../cat/virt-ls.pod:309 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
343 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
344 msgid "B<--domain> guest"
345 msgstr ""
346
347 #. type: textblock
348 #: ../cat/virt-cat.pod:95 ../cat/virt-filesystems.pod:145
349 #: ../cat/virt-ls.pod:311 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
350 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
351 msgid ""
352 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
353 "instead of names."
354 msgstr ""
355
356 #. type: =item
357 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
358 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
359 #: ../fuse/guestmount.pod:126 ../inspector/virt-inspector.pod:92
360 msgid "B<--echo-keys>"
361 msgstr ""
362
363 #. type: textblock
364 #: ../cat/virt-cat.pod:100
365 msgid ""
366 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
367 "so you cannot see what you are typing.  If you are not worried about Tempest "
368 "attacks and there is no one else in the room you can specify this flag to "
369 "see what you are typing."
370 msgstr ""
371
372 #. type: =item
373 #: ../cat/virt-cat.pod:105 ../cat/virt-filesystems.pod:170
374 #: ../cat/virt-ls.pod:328 ../df/virt-df.pod:101 ../fish/guestfish.pod:233
375 #: ../fuse/guestmount.pod:133 ../inspector/virt-inspector.pod:99
376 #: ../rescue/virt-rescue.pod:124
377 msgid "B<--format=raw|qcow2|..>"
378 msgstr ""
379
380 #. type: =item
381 #: ../cat/virt-cat.pod:107 ../cat/virt-filesystems.pod:172
382 #: ../cat/virt-ls.pod:330 ../df/virt-df.pod:103 ../edit/virt-edit.pod:134
383 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:135
384 #: ../inspector/virt-inspector.pod:101 ../rescue/virt-rescue.pod:126
385 msgid "B<--format>"
386 msgstr ""
387
388 #. type: textblock
389 #: ../cat/virt-cat.pod:109 ../cat/virt-filesystems.pod:174
390 #: ../cat/virt-ls.pod:332 ../df/virt-df.pod:105 ../edit/virt-edit.pod:136
391 #: ../fish/guestfish.pod:237 ../fuse/guestmount.pod:137
392 #: ../rescue/virt-rescue.pod:128
393 msgid ""
394 "The default for the I<-a> option is to auto-detect the format of the disk "
395 "image.  Using this forces the disk format for I<-a> options which follow on "
396 "the command line.  Using I<--format> with no argument switches back to auto-"
397 "detection for subsequent I<-a> options."
398 msgstr ""
399
400 #. type: textblock
401 #: ../cat/virt-cat.pod:114 ../cat/virt-filesystems.pod:179
402 #: ../cat/virt-ls.pod:337 ../df/virt-df.pod:110 ../edit/virt-edit.pod:141
403 #: ../fish/guestfish.pod:242 ../fish/guestfish.pod:673
404 #: ../inspector/virt-inspector.pod:335 ../rescue/virt-rescue.pod:133
405 #: ../src/guestfs.pod:2668
406 msgid "For example:"
407 msgstr ""
408
409 #. type: verbatim
410 #: ../cat/virt-cat.pod:116
411 #, no-wrap
412 msgid ""
413 " virt-cat --format=raw -a disk.img file\n"
414 "\n"
415 msgstr ""
416
417 #. type: textblock
418 #: ../cat/virt-cat.pod:118 ../cat/virt-filesystems.pod:183
419 #: ../cat/virt-ls.pod:341 ../df/virt-df.pod:114 ../edit/virt-edit.pod:145
420 #: ../fish/guestfish.pod:246 ../rescue/virt-rescue.pod:137
421 msgid "forces raw format (no auto-detection) for C<disk.img>."
422 msgstr ""
423
424 #. type: verbatim
425 #: ../cat/virt-cat.pod:120
426 #, no-wrap
427 msgid ""
428 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
429 "\n"
430 msgstr ""
431
432 #. type: textblock
433 #: ../cat/virt-cat.pod:122 ../cat/virt-filesystems.pod:187
434 #: ../cat/virt-ls.pod:345 ../df/virt-df.pod:118 ../edit/virt-edit.pod:149
435 #: ../fish/guestfish.pod:250 ../rescue/virt-rescue.pod:141
436 msgid ""
437 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
438 "detection for C<another.img>."
439 msgstr ""
440
441 #. type: textblock
442 #: ../cat/virt-cat.pod:125 ../cat/virt-filesystems.pod:190
443 #: ../cat/virt-ls.pod:348 ../df/virt-df.pod:121 ../edit/virt-edit.pod:152
444 #: ../rescue/virt-rescue.pod:144
445 msgid ""
446 "If you have untrusted raw-format guest disk images, you should use this "
447 "option to specify the disk format.  This avoids a possible security problem "
448 "with malicious guests (CVE-2010-3851)."
449 msgstr ""
450
451 #. type: =item
452 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
453 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
454 #: ../fuse/guestmount.pod:163 ../inspector/virt-inspector.pod:114
455 msgid "B<--keys-from-stdin>"
456 msgstr ""
457
458 #. type: textblock
459 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
460 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
461 #: ../fuse/guestmount.pod:165 ../inspector/virt-inspector.pod:116
462 msgid ""
463 "Read key or passphrase parameters from stdin.  The default is to try to read "
464 "passphrases from the user by opening C</dev/tty>."
465 msgstr ""
466
467 #. type: =item
468 #: ../cat/virt-cat.pod:134 ../cat/virt-filesystems.pod:261
469 #: ../cat/virt-ls.pod:425 ../df/virt-df.pod:173 ../edit/virt-edit.pod:161
470 #: ../fish/guestfish.pod:390 ../fuse/guestmount.pod:257
471 #: ../inspector/virt-inspector.pod:119 ../rescue/virt-rescue.pod:178
472 msgid "B<-v>"
473 msgstr ""
474
475 #. type: =item
476 #: ../cat/virt-cat.pod:136 ../cat/virt-filesystems.pod:263
477 #: ../cat/virt-ls.pod:427 ../df/virt-df.pod:175 ../edit/virt-edit.pod:163
478 #: ../fish/guestfish.pod:392 ../fuse/guestmount.pod:259
479 #: ../inspector/virt-inspector.pod:121 ../rescue/virt-rescue.pod:180
480 msgid "B<--verbose>"
481 msgstr ""
482
483 #. type: textblock
484 #: ../cat/virt-cat.pod:138 ../cat/virt-filesystems.pod:265
485 #: ../cat/virt-ls.pod:429 ../df/virt-df.pod:177 ../edit/virt-edit.pod:165
486 #: ../inspector/virt-inspector.pod:123 ../rescue/virt-rescue.pod:182
487 msgid "Enable verbose messages for debugging."
488 msgstr ""
489
490 #. type: =item
491 #: ../cat/virt-cat.pod:140 ../cat/virt-filesystems.pod:267
492 #: ../cat/virt-ls.pod:431 ../df/virt-df.pod:179 ../edit/virt-edit.pod:167
493 #: ../fish/guestfish.pod:397 ../fuse/guestmount.pod:263
494 #: ../inspector/virt-inspector.pod:125 ../rescue/virt-rescue.pod:184
495 #: ../resize/virt-resize.pod:484
496 msgid "B<-V>"
497 msgstr ""
498
499 #. type: =item
500 #: ../cat/virt-cat.pod:142 ../cat/virt-filesystems.pod:269
501 #: ../cat/virt-ls.pod:433 ../df/virt-df.pod:181 ../edit/virt-edit.pod:169
502 #: ../fish/guestfish.pod:399 ../fuse/guestmount.pod:265
503 #: ../inspector/virt-inspector.pod:127 ../rescue/virt-rescue.pod:186
504 #: ../resize/virt-resize.pod:486 ../tools/virt-list-filesystems.pl:69
505 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
506 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
507 msgid "B<--version>"
508 msgstr ""
509
510 #. type: textblock
511 #: ../cat/virt-cat.pod:144 ../cat/virt-filesystems.pod:271
512 #: ../cat/virt-ls.pod:435 ../df/virt-df.pod:183 ../edit/virt-edit.pod:171
513 #: ../inspector/virt-inspector.pod:129 ../rescue/virt-rescue.pod:188
514 #: ../resize/virt-resize.pod:488 ../tools/virt-list-filesystems.pl:71
515 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
516 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
517 msgid "Display version number and exit."
518 msgstr ""
519
520 #. type: =item
521 #: ../cat/virt-cat.pod:146 ../cat/virt-filesystems.pod:281
522 #: ../cat/virt-ls.pod:437 ../df/virt-df.pod:185 ../edit/virt-edit.pod:173
523 #: ../fish/guestfish.pod:412 ../fuse/guestmount.pod:278
524 #: ../inspector/virt-inspector.pod:131 ../rescue/virt-rescue.pod:199
525 #: ../tools/virt-tar.pl:158
526 msgid "B<-x>"
527 msgstr ""
528
529 #. type: textblock
530 #: ../cat/virt-cat.pod:148 ../cat/virt-filesystems.pod:283
531 #: ../cat/virt-ls.pod:439 ../df/virt-df.pod:187 ../edit/virt-edit.pod:175
532 #: ../inspector/virt-inspector.pod:133 ../rescue/virt-rescue.pod:201
533 msgid "Enable tracing of libguestfs API calls."
534 msgstr ""
535
536 #. type: =head1
537 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
538 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:205
539 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
540 msgstr ""
541
542 #. type: textblock
543 #: ../cat/virt-cat.pod:154
544 msgid "Previous versions of virt-cat allowed you to write either:"
545 msgstr ""
546
547 #. type: verbatim
548 #: ../cat/virt-cat.pod:156
549 #, no-wrap
550 msgid ""
551 " virt-cat disk.img [disk.img ...] file\n"
552 "\n"
553 msgstr ""
554
555 #. type: textblock
556 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
557 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:211
558 msgid "or"
559 msgstr ""
560
561 #. type: verbatim
562 #: ../cat/virt-cat.pod:160
563 #, no-wrap
564 msgid ""
565 " virt-cat guestname file\n"
566 "\n"
567 msgstr ""
568
569 #. type: textblock
570 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
571 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:215
572 msgid ""
573 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
574 "the confusing case where a disk image might have the same name as a guest."
575 msgstr ""
576
577 #. type: textblock
578 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
579 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:219
580 msgid "For compatibility the old style is still supported."
581 msgstr ""
582
583 #. type: =head1
584 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
585 msgid "USING GUESTFISH"
586 msgstr ""
587
588 #. type: textblock
589 #: ../cat/virt-cat.pod:170
590 msgid ""
591 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
592 "C<virt-cat> doesn't work."
593 msgstr ""
594
595 #. type: textblock
596 #: ../cat/virt-cat.pod:173
597 msgid "Using C<virt-cat> is approximately equivalent to doing:"
598 msgstr ""
599
600 #. type: verbatim
601 #: ../cat/virt-cat.pod:175
602 #, no-wrap
603 msgid ""
604 " guestfish --ro -i -d domname download file -\n"
605 "\n"
606 msgstr ""
607
608 #. type: textblock
609 #: ../cat/virt-cat.pod:177
610 msgid ""
611 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
612 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
613 msgstr ""
614
615 #. type: textblock
616 #: ../cat/virt-cat.pod:181
617 msgid ""
618 "The command above uses libguestfs's guest inspection feature and so does not "
619 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
620 "disk images that don't contain guests.  To display a file from a disk image "
621 "directly, use:"
622 msgstr ""
623
624 #. type: verbatim
625 #: ../cat/virt-cat.pod:186
626 #, no-wrap
627 msgid ""
628 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
629 "\n"
630 msgstr ""
631
632 #. type: textblock
633 #: ../cat/virt-cat.pod:188
634 msgid ""
635 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
636 "the disk image to edit, and C<file> is the full path to the file."
637 msgstr ""
638
639 #. type: =head1
640 #: ../cat/virt-cat.pod:192 ../cat/virt-filesystems.pod:365
641 #: ../cat/virt-ls.pod:483 ../df/virt-df.pod:215 ../edit/virt-edit.pod:342
642 #: ../inspector/virt-inspector.pod:349 ../rescue/virt-rescue.pod:262
643 #: ../resize/virt-resize.pod:601 ../tools/virt-list-filesystems.pl:188
644 #: ../tools/virt-list-partitions.pl:258 ../tools/virt-make-fs.pl:532
645 #: ../tools/virt-tar.pl:289 ../tools/virt-win-reg.pl:733
646 msgid "SHELL QUOTING"
647 msgstr ""
648
649 #. type: textblock
650 #: ../cat/virt-cat.pod:194 ../cat/virt-filesystems.pod:367
651 #: ../cat/virt-ls.pod:485 ../df/virt-df.pod:217 ../edit/virt-edit.pod:344
652 #: ../inspector/virt-inspector.pod:351 ../rescue/virt-rescue.pod:264
653 #: ../resize/virt-resize.pod:603 ../tools/virt-list-filesystems.pl:190
654 #: ../tools/virt-list-partitions.pl:260 ../tools/virt-make-fs.pl:534
655 #: ../tools/virt-tar.pl:291 ../tools/virt-win-reg.pl:741
656 msgid ""
657 "Libvirt guest names can contain arbitrary characters, some of which have "
658 "meaning to the shell such as C<#> and space.  You may need to quote or "
659 "escape these characters on the command line.  See the shell manual page L<sh"
660 "(1)> for details."
661 msgstr ""
662
663 #. type: =head1
664 #: ../cat/virt-cat.pod:199 ../cat/virt-filesystems.pod:372
665 #: ../cat/virt-ls.pod:490 ../df/virt-df.pod:222 ../edit/virt-edit.pod:349
666 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
667 #: ../fish/guestfish.pod:1235 ../fish/virt-copy-in.pod:50
668 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
669 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:303
670 #: ../inspector/virt-inspector.pod:372 ../java/examples/guestfs-java.pod:45
671 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
672 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:284
673 #: ../resize/virt-resize.pod:608 ../ruby/examples/guestfs-ruby.pod:36
674 #: ../src/guestfs.pod:3042 ../test-tool/libguestfs-test-tool.pod:87
675 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
676 #: ../tools/virt-make-fs.pl:539 ../tools/virt-tar.pl:296
677 #: ../tools/virt-win-reg.pl:746
678 msgid "SEE ALSO"
679 msgstr ""
680
681 #. type: textblock
682 #: ../cat/virt-cat.pod:201
683 msgid ""
684 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
685 "tar-out(1)>, L<http://libguestfs.org/>."
686 msgstr ""
687
688 #. type: =head1
689 #: ../cat/virt-cat.pod:208 ../cat/virt-filesystems.pod:383
690 #: ../cat/virt-ls.pod:502 ../df/virt-df.pod:230 ../edit/virt-edit.pod:363
691 #: ../rescue/virt-rescue.pod:292 ../resize/virt-resize.pod:629
692 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
693 #: ../tools/virt-make-fs.pl:564 ../tools/virt-tar.pl:311
694 #: ../tools/virt-win-reg.pl:772
695 msgid "AUTHOR"
696 msgstr ""
697
698 #. type: textblock
699 #: ../cat/virt-cat.pod:210 ../cat/virt-filesystems.pod:385
700 #: ../cat/virt-ls.pod:504 ../df/virt-df.pod:232 ../edit/virt-edit.pod:365
701 #: ../inspector/virt-inspector.pod:386 ../rescue/virt-rescue.pod:294
702 #: ../resize/virt-resize.pod:631 ../tools/virt-list-filesystems.pl:210
703 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:566
704 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:774
705 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
706 msgstr ""
707
708 #. type: =head1
709 #: ../cat/virt-cat.pod:212 ../cat/virt-filesystems.pod:387
710 #: ../cat/virt-ls.pod:506 ../df/virt-df.pod:234 ../edit/virt-edit.pod:367
711 #: ../examples/guestfs-examples.pod:48 ../examples/guestfs-recipes.pod:400
712 #: ../fish/guestfish.pod:1264 ../fish/virt-copy-in.pod:64
713 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
714 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:318
715 #: ../inspector/virt-inspector.pod:394 ../java/examples/guestfs-java.pod:61
716 #: ../ocaml/examples/guestfs-ocaml.pod:94 ../perl/examples/guestfs-perl.pod:55
717 #: ../python/examples/guestfs-python.pod:57 ../rescue/virt-rescue.pod:296
718 #: ../resize/virt-resize.pod:633 ../ruby/examples/guestfs-ruby.pod:51
719 #: ../src/guestfs.pod:3118 ../test-tool/libguestfs-test-tool.pod:97
720 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
721 #: ../tools/virt-make-fs.pl:568 ../tools/virt-tar.pl:315
722 #: ../tools/virt-win-reg.pl:776
723 msgid "COPYRIGHT"
724 msgstr ""
725
726 #. type: textblock
727 #: ../cat/virt-cat.pod:214 ../inspector/virt-inspector.pod:396
728 #: ../resize/virt-resize.pod:635
729 msgid "Copyright (C) 2010-2011 Red Hat Inc."
730 msgstr ""
731
732 #. type: textblock
733 #: ../cat/virt-cat.pod:216 ../cat/virt-filesystems.pod:391
734 #: ../cat/virt-ls.pod:510 ../df/virt-df.pod:238 ../edit/virt-edit.pod:371
735 #: ../fish/guestfish.pod:1269 ../fish/virt-copy-in.pod:69
736 #: ../fish/virt-copy-out.pod:58 ../fish/virt-tar-in.pod:67
737 #: ../fish/virt-tar-out.pod:60 ../fuse/guestmount.pod:323
738 #: ../inspector/virt-inspector.pod:398 ../rescue/virt-rescue.pod:300
739 #: ../resize/virt-resize.pod:637 ../test-tool/libguestfs-test-tool.pod:102
740 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
741 #: ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319
742 #: ../tools/virt-win-reg.pl:780
743 msgid ""
744 "This program is free software; you can redistribute it and/or modify it "
745 "under the terms of the GNU General Public License as published by the Free "
746 "Software Foundation; either version 2 of the License, or (at your option) "
747 "any later version."
748 msgstr ""
749
750 #. type: textblock
751 #: ../cat/virt-cat.pod:221 ../cat/virt-filesystems.pod:396
752 #: ../cat/virt-ls.pod:515 ../df/virt-df.pod:243 ../edit/virt-edit.pod:376
753 #: ../fish/guestfish.pod:1274 ../fish/virt-copy-in.pod:74
754 #: ../fish/virt-copy-out.pod:63 ../fish/virt-tar-in.pod:72
755 #: ../fish/virt-tar-out.pod:65 ../fuse/guestmount.pod:328
756 #: ../inspector/virt-inspector.pod:403 ../rescue/virt-rescue.pod:305
757 #: ../resize/virt-resize.pod:642 ../test-tool/libguestfs-test-tool.pod:107
758 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
759 #: ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324
760 #: ../tools/virt-win-reg.pl:785
761 msgid ""
762 "This program is distributed in the hope that it will be useful, but WITHOUT "
763 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
764 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
765 "more details."
766 msgstr ""
767
768 #. type: textblock
769 #: ../cat/virt-cat.pod:226 ../cat/virt-filesystems.pod:401
770 #: ../cat/virt-ls.pod:520 ../df/virt-df.pod:248 ../edit/virt-edit.pod:381
771 #: ../fish/guestfish.pod:1279 ../fish/virt-copy-in.pod:79
772 #: ../fish/virt-copy-out.pod:68 ../fish/virt-tar-in.pod:77
773 #: ../fish/virt-tar-out.pod:70 ../fuse/guestmount.pod:333
774 #: ../inspector/virt-inspector.pod:408 ../rescue/virt-rescue.pod:310
775 #: ../resize/virt-resize.pod:647 ../test-tool/libguestfs-test-tool.pod:112
776 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
777 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329
778 #: ../tools/virt-win-reg.pl:790
779 msgid ""
780 "You should have received a copy of the GNU General Public License along with "
781 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
782 "Ave, Cambridge, MA 02139, USA."
783 msgstr ""
784
785 #. type: textblock
786 #: ../cat/virt-filesystems.pod:5
787 msgid ""
788 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
789 "virtual machine or disk image"
790 msgstr ""
791
792 #. type: verbatim
793 #: ../cat/virt-filesystems.pod:9
794 #, no-wrap
795 msgid ""
796 " virt-filesystems [--options] -d domname\n"
797 "\n"
798 msgstr ""
799
800 #. type: verbatim
801 #: ../cat/virt-filesystems.pod:11
802 #, no-wrap
803 msgid ""
804 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
805 "\n"
806 msgstr ""
807
808 #. type: textblock
809 #: ../cat/virt-filesystems.pod:15
810 msgid ""
811 "This tool allows you to discover filesystems, partitions, logical volumes, "
812 "and their sizes in a disk image or virtual machine.  It is a replacement for "
813 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
814 msgstr ""
815
816 #. type: textblock
817 #: ../cat/virt-filesystems.pod:20
818 msgid ""
819 "One use for this tool is from shell scripts to iterate over all filesystems "
820 "from a disk image:"
821 msgstr ""
822
823 #. type: verbatim
824 #: ../cat/virt-filesystems.pod:23
825 #, no-wrap
826 msgid ""
827 " for fs in $(virt-filesystems -a disk.img); do\n"
828 "   # ...\n"
829 " done\n"
830 "\n"
831 msgstr ""
832
833 #. type: textblock
834 #: ../cat/virt-filesystems.pod:27
835 msgid ""
836 "Another use is to list partitions before using another tool to modify those "
837 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
838 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
839 msgstr ""
840
841 #. type: textblock
842 #: ../cat/virt-filesystems.pod:32
843 msgid ""
844 "Various command line options control what this program displays.  You need "
845 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
846 "guest respectively.  If you just specify that then the program shows "
847 "filesystems found, one per line, like this:"
848 msgstr ""
849
850 #. type: verbatim
851 #: ../cat/virt-filesystems.pod:37
852 #, no-wrap
853 msgid ""
854 " $ virt-filesystems -a disk.img\n"
855 " /dev/sda1\n"
856 " /dev/vg_guest/lv_root\n"
857 "\n"
858 msgstr ""
859
860 #. type: textblock
861 #: ../cat/virt-filesystems.pod:41
862 msgid ""
863 "If you add I<-l> or I<--long> then the output includes extra information:"
864 msgstr ""
865
866 #. type: verbatim
867 #: ../cat/virt-filesystems.pod:44
868 #, no-wrap
869 msgid ""
870 " $ virt-filesystems -a disk.img -l\n"
871 " Name                   Type         VFS   Label  Size\n"
872 " /dev/sda1              filesystem   ext4  boot   524288000\n"
873 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
874 "\n"
875 msgstr ""
876
877 #. type: textblock
878 #: ../cat/virt-filesystems.pod:49
879 msgid ""
880 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
881 "shown as well:"
882 msgstr ""
883
884 #. type: verbatim
885 #: ../cat/virt-filesystems.pod:52
886 #, no-wrap
887 msgid ""
888 " $ virt-filesystems -a disk.img --extra\n"
889 " /dev/sda1\n"
890 " /dev/vg_guest/lv_root\n"
891 " /dev/vg_guest/lv_swap\n"
892 " /dev/vg_guest/lv_data\n"
893 "\n"
894 msgstr ""
895
896 #. type: textblock
897 #: ../cat/virt-filesystems.pod:58
898 msgid ""
899 "If you add I<--partitions> then partitions are shown instead of filesystems:"
900 msgstr ""
901
902 #. type: verbatim
903 #: ../cat/virt-filesystems.pod:60
904 #, no-wrap
905 msgid ""
906 " $ virt-filesystems -a disk.img --partitions\n"
907 " /dev/sda1\n"
908 " /dev/sda2\n"
909 "\n"
910 msgstr ""
911
912 #. type: textblock
913 #: ../cat/virt-filesystems.pod:64
914 msgid ""
915 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
916 "volumes>, I<--block-devices> to list those items."
917 msgstr ""
918
919 #. type: textblock
920 #: ../cat/virt-filesystems.pod:67
921 msgid ""
922 "You can use these options in combination as well (if you want a combination "
923 "including filesystems, you have to add I<--filesystems>).  Notice that some "
924 "items fall into several categories (eg. C</dev/sda1> might be both a "
925 "partition and a filesystem).  These items are listed several times.  To get "
926 "a list which includes absolutely everything that virt-filesystems knows "
927 "about, use the I<--all> option."
928 msgstr ""
929
930 #. type: textblock
931 #: ../cat/virt-filesystems.pod:74
932 msgid ""
933 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
934 "uuid> option to display device and filesystem UUIDs in the long output."
935 msgstr ""
936
937 #. type: textblock
938 #: ../cat/virt-filesystems.pod:78
939 msgid ""
940 "I<--all --long --uuid> is a useful combination to display all possible "
941 "information about everything."
942 msgstr ""
943
944 #. type: verbatim
945 #: ../cat/virt-filesystems.pod:81
946 #, no-wrap
947 msgid ""
948 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
949 " Name      Type       VFS  Label           Size Parent   UUID\n"
950 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
951 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
952 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
953 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
954 " /dev/sda  device     -    -               20G  -        -\n"
955 "\n"
956 msgstr ""
957
958 #. type: textblock
959 #: ../cat/virt-filesystems.pod:89
960 msgid ""
961 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
962 msgstr ""
963
964 #. type: =item
965 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
966 msgid "B<--all>"
967 msgstr ""
968
969 #. type: textblock
970 #: ../cat/virt-filesystems.pod:112
971 msgid ""
972 "Display everything.  This is currently the same as specifying these options: "
973 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
974 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
975 "added to this list in future)."
976 msgstr ""
977
978 #. type: textblock
979 #: ../cat/virt-filesystems.pod:117
980 msgid "See also I<--long>."
981 msgstr ""
982
983 #. type: =item
984 #: ../cat/virt-filesystems.pod:119
985 msgid "B<--blkdevs>"
986 msgstr ""
987
988 #. type: =item
989 #: ../cat/virt-filesystems.pod:121
990 msgid "B<--block-devices>"
991 msgstr ""
992
993 #. type: textblock
994 #: ../cat/virt-filesystems.pod:123
995 msgid "Display block devices."
996 msgstr ""
997
998 #. type: =item
999 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1000 msgid "B<--csv>"
1001 msgstr ""
1002
1003 #. type: textblock
1004 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1005 msgid ""
1006 "Write out the results in CSV format (comma-separated values).  This format "
1007 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1008 "ABOUT CSV FORMAT> below."
1009 msgstr ""
1010
1011 #. type: textblock
1012 #: ../cat/virt-filesystems.pod:150
1013 msgid ""
1014 "When prompting for keys and passphrases, virt-filesystems normally turns "
1015 "echoing off so you cannot see what you are typing.  If you are not worried "
1016 "about Tempest attacks and there is no one else in the room you can specify "
1017 "this flag to see what you are typing."
1018 msgstr ""
1019
1020 #. type: =item
1021 #: ../cat/virt-filesystems.pod:155
1022 msgid "B<--extra>"
1023 msgstr ""
1024
1025 #. type: textblock
1026 #: ../cat/virt-filesystems.pod:157
1027 msgid ""
1028 "This causes filesystems that are not ordinary, mountable filesystems to be "
1029 "displayed.  This category includes swapspace, and filesystems that are empty "
1030 "or contain unknown data."
1031 msgstr ""
1032
1033 #. type: textblock
1034 #: ../cat/virt-filesystems.pod:161
1035 msgid "This option implies I<--filesystems>."
1036 msgstr ""
1037
1038 #. type: =item
1039 #: ../cat/virt-filesystems.pod:163
1040 msgid "B<--filesystems>"
1041 msgstr ""
1042
1043 #. type: textblock
1044 #: ../cat/virt-filesystems.pod:165
1045 msgid ""
1046 "Display mountable filesystems.  If no display option was selected then this "
1047 "option is implied."
1048 msgstr ""
1049
1050 #. type: textblock
1051 #: ../cat/virt-filesystems.pod:168
1052 msgid "With I<--extra>, non-mountable filesystems are shown too."
1053 msgstr ""
1054
1055 #. type: verbatim
1056 #: ../cat/virt-filesystems.pod:181
1057 #, no-wrap
1058 msgid ""
1059 " virt-filesystems --format=raw -a disk.img\n"
1060 "\n"
1061 msgstr ""
1062
1063 #. type: verbatim
1064 #: ../cat/virt-filesystems.pod:185
1065 #, no-wrap
1066 msgid ""
1067 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1068 "\n"
1069 msgstr ""
1070
1071 #. type: =item
1072 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1073 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1074 #: ../tools/virt-list-partitions.pl:109
1075 msgid "B<-h>"
1076 msgstr ""
1077
1078 #. type: =item
1079 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1080 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1081 msgid "B<--human-readable>"
1082 msgstr ""
1083
1084 #. type: textblock
1085 #: ../cat/virt-filesystems.pod:198
1086 msgid "In I<--long> mode, display sizes in human-readable format."
1087 msgstr ""
1088
1089 #. type: =item
1090 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1091 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1092 msgid "B<-l>"
1093 msgstr ""
1094
1095 #. type: =item
1096 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1097 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1098 msgid "B<--long>"
1099 msgstr ""
1100
1101 #. type: textblock
1102 #: ../cat/virt-filesystems.pod:209
1103 msgid "Display extra columns of data (\"long format\")."
1104 msgstr ""
1105
1106 #. type: textblock
1107 #: ../cat/virt-filesystems.pod:211
1108 msgid "A title row is added unless you also specify I<--no-title>."
1109 msgstr ""
1110
1111 #. type: textblock
1112 #: ../cat/virt-filesystems.pod:213
1113 msgid ""
1114 "The extra columns displayed depend on what output you select, and the "
1115 "ordering of columns may change in future versions.  Use the title row, I<--"
1116 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1117 "programs."
1118 msgstr ""
1119
1120 #. type: textblock
1121 #: ../cat/virt-filesystems.pod:218
1122 msgid ""
1123 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1124 "default is to show raw numbers of I<bytes>."
1125 msgstr ""
1126
1127 #. type: textblock
1128 #: ../cat/virt-filesystems.pod:221
1129 msgid "Use I<--uuid> to display UUIDs too."
1130 msgstr ""
1131
1132 #. type: =item
1133 #: ../cat/virt-filesystems.pod:223
1134 msgid "B<--lvs>"
1135 msgstr ""
1136
1137 #. type: =item
1138 #: ../cat/virt-filesystems.pod:225
1139 msgid "B<--logvols>"
1140 msgstr ""
1141
1142 #. type: =item
1143 #: ../cat/virt-filesystems.pod:227
1144 msgid "B<--logical-volumes>"
1145 msgstr ""
1146
1147 #. type: textblock
1148 #: ../cat/virt-filesystems.pod:229
1149 msgid ""
1150 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1151 "of whether the LVs contain filesystems."
1152 msgstr ""
1153
1154 #. type: =item
1155 #: ../cat/virt-filesystems.pod:232
1156 msgid "B<--no-title>"
1157 msgstr ""
1158
1159 #. type: textblock
1160 #: ../cat/virt-filesystems.pod:234
1161 msgid "In I<--long> mode, don't add a title row."
1162 msgstr ""
1163
1164 #. type: textblock
1165 #: ../cat/virt-filesystems.pod:236
1166 msgid ""
1167 "Note that the order of the columns is not fixed, and may change in future "
1168 "versions of virt-filesystems, so using this option may give you unexpected "
1169 "surprises."
1170 msgstr ""
1171
1172 #. type: =item
1173 #: ../cat/virt-filesystems.pod:240
1174 msgid "B<--parts>"
1175 msgstr ""
1176
1177 #. type: =item
1178 #: ../cat/virt-filesystems.pod:242
1179 msgid "B<--partitions>"
1180 msgstr ""
1181
1182 #. type: textblock
1183 #: ../cat/virt-filesystems.pod:244
1184 msgid ""
1185 "Display partitions.  In this mode, these are displayed irrespective of "
1186 "whether the partitions contain filesystems."
1187 msgstr ""
1188
1189 #. type: =item
1190 #: ../cat/virt-filesystems.pod:247
1191 msgid "B<--pvs>"
1192 msgstr ""
1193
1194 #. type: =item
1195 #: ../cat/virt-filesystems.pod:249
1196 msgid "B<--physvols>"
1197 msgstr ""
1198
1199 #. type: =item
1200 #: ../cat/virt-filesystems.pod:251
1201 msgid "B<--physical-volumes>"
1202 msgstr ""
1203
1204 #. type: textblock
1205 #: ../cat/virt-filesystems.pod:253
1206 msgid "Display LVM physical volumes."
1207 msgstr ""
1208
1209 #. type: =item
1210 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1211 msgid "B<--uuid>"
1212 msgstr ""
1213
1214 #. type: =item
1215 #: ../cat/virt-filesystems.pod:257
1216 msgid "B<--uuids>"
1217 msgstr ""
1218
1219 #. type: textblock
1220 #: ../cat/virt-filesystems.pod:259
1221 msgid "In I<--long> mode, display UUIDs as well."
1222 msgstr ""
1223
1224 #. type: =item
1225 #: ../cat/virt-filesystems.pod:273
1226 msgid "B<--vgs>"
1227 msgstr ""
1228
1229 #. type: =item
1230 #: ../cat/virt-filesystems.pod:275
1231 msgid "B<--volgroups>"
1232 msgstr ""
1233
1234 #. type: =item
1235 #: ../cat/virt-filesystems.pod:277
1236 msgid "B<--volume-groups>"
1237 msgstr ""
1238
1239 #. type: textblock
1240 #: ../cat/virt-filesystems.pod:279
1241 msgid "Display LVM volume groups."
1242 msgstr ""
1243
1244 #. type: =head1
1245 #: ../cat/virt-filesystems.pod:287
1246 msgid "COLUMNS"
1247 msgstr ""
1248
1249 #. type: textblock
1250 #: ../cat/virt-filesystems.pod:289
1251 msgid ""
1252 "Note that columns in the output are subject to reordering and change in "
1253 "future versions of this tool."
1254 msgstr ""
1255
1256 #. type: =item
1257 #: ../cat/virt-filesystems.pod:294
1258 msgid "B<Name>"
1259 msgstr ""
1260
1261 #. type: textblock
1262 #: ../cat/virt-filesystems.pod:296
1263 msgid "The filesystem, partition, block device or LVM name."
1264 msgstr ""
1265
1266 #. type: textblock
1267 #: ../cat/virt-filesystems.pod:298
1268 msgid ""
1269 "For device and partition names these are displayed as canonical libguestfs "
1270 "names, so that for example C</dev/sda2> is the second partition on the first "
1271 "device."
1272 msgstr ""
1273
1274 #. type: textblock
1275 #: ../cat/virt-filesystems.pod:302
1276 msgid ""
1277 "If the I<--long> option is B<not> specified, then only the name column is "
1278 "shown in the output."
1279 msgstr ""
1280
1281 #. type: =item
1282 #: ../cat/virt-filesystems.pod:305
1283 msgid "B<Type>"
1284 msgstr ""
1285
1286 #. type: textblock
1287 #: ../cat/virt-filesystems.pod:307
1288 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1289 msgstr ""
1290
1291 #. type: =item
1292 #: ../cat/virt-filesystems.pod:309
1293 msgid "B<VFS>"
1294 msgstr ""
1295
1296 #. type: textblock
1297 #: ../cat/virt-filesystems.pod:311
1298 msgid ""
1299 "If there is a filesystem, then this column displays the filesystem type if "
1300 "one could be detected, eg. C<ext4>."
1301 msgstr ""
1302
1303 #. type: =item
1304 #: ../cat/virt-filesystems.pod:314
1305 msgid "B<Label>"
1306 msgstr ""
1307
1308 #. type: textblock
1309 #: ../cat/virt-filesystems.pod:316
1310 msgid ""
1311 "If the object has a label (used for identifying and mounting filesystems) "
1312 "then this column contains the label."
1313 msgstr ""
1314
1315 #. type: =item
1316 #: ../cat/virt-filesystems.pod:319
1317 msgid "B<Size>"
1318 msgstr ""
1319
1320 #. type: textblock
1321 #: ../cat/virt-filesystems.pod:321
1322 msgid ""
1323 "The size of the object in bytes.  If the I<--human> option is used then the "
1324 "size is displayed in a human-readable form."
1325 msgstr ""
1326
1327 #. type: =item
1328 #: ../cat/virt-filesystems.pod:324
1329 msgid "B<Parent>"
1330 msgstr ""
1331
1332 #. type: textblock
1333 #: ../cat/virt-filesystems.pod:326
1334 msgid ""
1335 "The parent column records the parent relationship between objects.  For "
1336 "example, if the object is a partition, then this column contains the name of "
1337 "the containing device.  If the object is a logical volume, then this column "
1338 "is the name of the volume group."
1339 msgstr ""
1340
1341 #. type: =item
1342 #: ../cat/virt-filesystems.pod:331
1343 msgid "B<UUID>"
1344 msgstr ""
1345
1346 #. type: textblock
1347 #: ../cat/virt-filesystems.pod:333
1348 msgid ""
1349 "If the object has a UUID (used for identifying and mounting filesystems and "
1350 "block devices) then this column contains the UUID as a string."
1351 msgstr ""
1352
1353 #. type: textblock
1354 #: ../cat/virt-filesystems.pod:337
1355 msgid "The UUID is only displayed if the I<--uuid> option is given."
1356 msgstr ""
1357
1358 #. type: =head1
1359 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459
1360 #: ../df/virt-df.pod:191
1361 msgid "NOTE ABOUT CSV FORMAT"
1362 msgstr ""
1363
1364 #. type: textblock
1365 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461
1366 #: ../df/virt-df.pod:193
1367 msgid ""
1368 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
1369 "should be easy to parse, but it is definitely not easy to parse."
1370 msgstr ""
1371
1372 #. type: textblock
1373 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464
1374 #: ../df/virt-df.pod:196
1375 msgid ""
1376 "Myth: Just split fields at commas.  Reality: This does I<not> work "
1377 "reliably.  This example has two columns:"
1378 msgstr ""
1379
1380 #. type: verbatim
1381 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467
1382 #: ../df/virt-df.pod:199
1383 #, no-wrap
1384 msgid ""
1385 " \"foo,bar\",baz\n"
1386 "\n"
1387 msgstr ""
1388
1389 #. type: textblock
1390 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469
1391 #: ../df/virt-df.pod:201
1392 msgid ""
1393 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
1394 "reliably.  This example has one row:"
1395 msgstr ""
1396
1397 #. type: verbatim
1398 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472
1399 #: ../df/virt-df.pod:204
1400 #, no-wrap
1401 msgid ""
1402 " \"foo\n"
1403 " bar\",baz\n"
1404 "\n"
1405 msgstr ""
1406
1407 #. type: textblock
1408 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475
1409 #: ../df/virt-df.pod:207
1410 msgid ""
1411 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1412 "packaged in major Linux distributions)."
1413 msgstr ""
1414
1415 #. type: textblock
1416 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478
1417 #: ../df/virt-df.pod:210
1418 msgid ""
1419 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1420 "or Python's built-in csv library)."
1421 msgstr ""
1422
1423 #. type: textblock
1424 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481
1425 #: ../df/virt-df.pod:213
1426 msgid "Most spreadsheets and databases can import CSV directly."
1427 msgstr ""
1428
1429 #. type: textblock
1430 #: ../cat/virt-filesystems.pod:374
1431 msgid ""
1432 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
1433 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
1434 "libguestfs.org/>."
1435 msgstr ""
1436
1437 #. type: textblock
1438 #: ../cat/virt-filesystems.pod:389 ../tools/virt-make-fs.pl:570
1439 #: ../tools/virt-win-reg.pl:778
1440 msgid "Copyright (C) 2010 Red Hat Inc."
1441 msgstr ""
1442
1443 #. type: textblock
1444 #: ../cat/virt-ls.pod:5
1445 msgid "virt-ls - List files in a virtual machine"
1446 msgstr ""
1447
1448 #. type: verbatim
1449 #: ../cat/virt-ls.pod:9
1450 #, no-wrap
1451 msgid ""
1452 " virt-ls [--options] -d domname directory [directory ...]\n"
1453 "\n"
1454 msgstr ""
1455
1456 #. type: verbatim
1457 #: ../cat/virt-ls.pod:11
1458 #, no-wrap
1459 msgid ""
1460 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
1461 "\n"
1462 msgstr ""
1463
1464 #. type: textblock
1465 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
1466 msgid "Old style:"
1467 msgstr ""
1468
1469 #. type: verbatim
1470 #: ../cat/virt-ls.pod:15
1471 #, no-wrap
1472 msgid ""
1473 " virt-ls [--options] domname directory\n"
1474 "\n"
1475 msgstr ""
1476
1477 #. type: verbatim
1478 #: ../cat/virt-ls.pod:17
1479 #, no-wrap
1480 msgid ""
1481 " virt-ls [--options] disk.img [disk.img ...] directory\n"
1482 "\n"
1483 msgstr ""
1484
1485 #. type: textblock
1486 #: ../cat/virt-ls.pod:21
1487 msgid ""
1488 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
1489 "more from a virtual machine or disk image."
1490 msgstr ""
1491
1492 #. type: textblock
1493 #: ../cat/virt-ls.pod:24
1494 msgid ""
1495 "Multiple directory names can be given, in which case the output from each is "
1496 "concatenated."
1497 msgstr ""
1498
1499 #. type: textblock
1500 #: ../cat/virt-ls.pod:27
1501 msgid ""
1502 "To list directories from a libvirt guest use the I<-d> option to specify the "
1503 "name of the guest.  For a disk image, use the I<-a> option."
1504 msgstr ""
1505
1506 #. type: textblock
1507 #: ../cat/virt-ls.pod:31
1508 msgid ""
1509 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
1510 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
1511 "(3)> API."
1512 msgstr ""
1513
1514 #. type: textblock
1515 #: ../cat/virt-ls.pod:37
1516 msgid "Get a list of all files and directories in a virtual machine:"
1517 msgstr ""
1518
1519 #. type: verbatim
1520 #: ../cat/virt-ls.pod:39
1521 #, no-wrap
1522 msgid ""
1523 " virt-ls -R -d guest /\n"
1524 "\n"
1525 msgstr ""
1526
1527 #. type: textblock
1528 #: ../cat/virt-ls.pod:41
1529 msgid "List all setuid or setgid programs in a Linux virtual machine:"
1530 msgstr ""
1531
1532 #. type: verbatim
1533 #: ../cat/virt-ls.pod:43
1534 #, no-wrap
1535 msgid ""
1536 " virt-ls -lR -d guest / | grep '^- [42]'\n"
1537 "\n"
1538 msgstr ""
1539
1540 #. type: textblock
1541 #: ../cat/virt-ls.pod:45
1542 msgid "List all public-writable directories in a Linux virtual machine:"
1543 msgstr ""
1544
1545 #. type: verbatim
1546 #: ../cat/virt-ls.pod:47
1547 #, no-wrap
1548 msgid ""
1549 " virt-ls -lR -d guest / | grep '^d ...7'\n"
1550 "\n"
1551 msgstr ""
1552
1553 #. type: textblock
1554 #: ../cat/virt-ls.pod:49
1555 msgid "List all Unix domain sockets in a Linux virtual machine:"
1556 msgstr ""
1557
1558 #. type: verbatim
1559 #: ../cat/virt-ls.pod:51
1560 #, no-wrap
1561 msgid ""
1562 " virt-ls -lR -d guest / | grep '^s'\n"
1563 "\n"
1564 msgstr ""
1565
1566 #. type: textblock
1567 #: ../cat/virt-ls.pod:53
1568 msgid "List all regular files with filenames ending in '.png':"
1569 msgstr ""
1570
1571 #. type: verbatim
1572 #: ../cat/virt-ls.pod:55
1573 #, no-wrap
1574 msgid ""
1575 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
1576 "\n"
1577 msgstr ""
1578
1579 #. type: textblock
1580 #: ../cat/virt-ls.pod:57
1581 msgid "To display files larger than 10MB in home directories:"
1582 msgstr ""
1583
1584 #. type: verbatim
1585 #: ../cat/virt-ls.pod:59
1586 #, no-wrap
1587 msgid ""
1588 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
1589 "\n"
1590 msgstr ""
1591
1592 #. type: textblock
1593 #: ../cat/virt-ls.pod:61
1594 msgid "Find everything modified in the last 7 days:"
1595 msgstr ""
1596
1597 #. type: verbatim
1598 #: ../cat/virt-ls.pod:63
1599 #, no-wrap
1600 msgid ""
1601 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
1602 "\n"
1603 msgstr ""
1604
1605 #. type: textblock
1606 #: ../cat/virt-ls.pod:65
1607 msgid "Find regular files modified in the last 24 hours:"
1608 msgstr ""
1609
1610 #. type: verbatim
1611 #: ../cat/virt-ls.pod:67
1612 #, no-wrap
1613 msgid ""
1614 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
1615 "\n"
1616 msgstr ""
1617
1618 #. type: =head2
1619 #: ../cat/virt-ls.pod:69
1620 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
1621 msgstr ""
1622
1623 #. type: textblock
1624 #: ../cat/virt-ls.pod:71
1625 msgid ""
1626 "Find the differences between files in a guest and an earlier snapshot of the "
1627 "same guest."
1628 msgstr ""
1629
1630 #. type: verbatim
1631 #: ../cat/virt-ls.pod:74
1632 #, no-wrap
1633 msgid ""
1634 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
1635 " virt-ls -lR -a current.img / --uids --time-t > new\n"
1636 " diff -u old new | less\n"
1637 "\n"
1638 msgstr ""
1639
1640 #. type: textblock
1641 #: ../cat/virt-ls.pod:78
1642 msgid ""
1643 "The commands above won't find files where the content has changed but the "
1644 "metadata (eg. file size and modification date) is the same.  To do that, you "
1645 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
1646 "checksum> can be quite slow since it has to read and compute a checksum of "
1647 "every regular file in the virtual machine."
1648 msgstr ""
1649
1650 #. type: =head1
1651 #: ../cat/virt-ls.pod:84
1652 msgid "OUTPUT MODES"
1653 msgstr ""
1654
1655 #. type: textblock
1656 #: ../cat/virt-ls.pod:86
1657 msgid ""
1658 "C<virt-ls> has four output modes, controlled by different combinations of "
1659 "the I<-l> and I<-R> options."
1660 msgstr ""
1661
1662 #. type: =head2
1663 #: ../cat/virt-ls.pod:89
1664 msgid "SIMPLE LISTING"
1665 msgstr ""
1666
1667 #. type: textblock
1668 #: ../cat/virt-ls.pod:91
1669 msgid "A simple listing is like the ordinary L<ls(1)> command:"
1670 msgstr ""
1671
1672 #. type: verbatim
1673 #: ../cat/virt-ls.pod:93
1674 #, no-wrap
1675 msgid ""
1676 " $ virt-ls -d guest /\n"
1677 " bin\n"
1678 " boot\n"
1679 " [etc.]\n"
1680 "\n"
1681 msgstr ""
1682
1683 #. type: =head2
1684 #: ../cat/virt-ls.pod:98
1685 msgid "LONG LISTING"
1686 msgstr ""
1687
1688 #. type: textblock
1689 #: ../cat/virt-ls.pod:100
1690 msgid ""
1691 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
1692 "(more specifically, like the C<guestfs_ll> function)."
1693 msgstr ""
1694
1695 #. type: verbatim
1696 #: ../cat/virt-ls.pod:103
1697 #, no-wrap
1698 msgid ""
1699 " $ virt-ls -l -d guest /\n"
1700 " total 204\n"
1701 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
1702 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
1703 " [etc.]\n"
1704 "\n"
1705 msgstr ""
1706
1707 #. type: textblock
1708 #: ../cat/virt-ls.pod:109
1709 msgid ""
1710 "Note that while this is useful for displaying a directory, do not try "
1711 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
1712 "instead."
1713 msgstr ""
1714
1715 #. type: =head2
1716 #: ../cat/virt-ls.pod:113
1717 msgid "RECURSIVE LISTING"
1718 msgstr ""
1719
1720 #. type: textblock
1721 #: ../cat/virt-ls.pod:115
1722 msgid ""
1723 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
1724 "and directories recursively:"
1725 msgstr ""
1726
1727 #. type: verbatim
1728 #: ../cat/virt-ls.pod:118
1729 #, no-wrap
1730 msgid ""
1731 " $ virt-ls -R -d guest /tmp\n"
1732 " foo\n"
1733 " foo/bar\n"
1734 " [etc.]\n"
1735 "\n"
1736 msgstr ""
1737
1738 #. type: textblock
1739 #: ../cat/virt-ls.pod:123
1740 msgid ""
1741 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
1742 "converts C<\\0> characters to C<\\n>."
1743 msgstr ""
1744
1745 #. type: =head2
1746 #: ../cat/virt-ls.pod:126
1747 msgid "RECURSIVE LONG LISTING"
1748 msgstr ""
1749
1750 #. type: textblock
1751 #: ../cat/virt-ls.pod:128
1752 msgid ""
1753 "Using I<-lR> options together changes the output to display directories "
1754 "recursively, with file stats, and optionally other features such as "
1755 "checksums and extended attributes."
1756 msgstr ""
1757
1758 #. type: textblock
1759 #: ../cat/virt-ls.pod:132
1760 msgid ""
1761 "Most of the interesting features of C<virt-ls> are only available when using "
1762 "I<-lR> mode."
1763 msgstr ""
1764
1765 #. type: textblock
1766 #: ../cat/virt-ls.pod:135
1767 msgid ""
1768 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
1769 "you cannot use the output in another program (because filenames can contain "
1770 "spaces and other unsafe characters).  If the guest was untrusted and someone "
1771 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
1772 "on you by creating filenames with embedded newline characters.  To B<safely> "
1773 "parse the output in another program, use the I<--csv> (Comma-Separated "
1774 "Values) option."
1775 msgstr ""
1776
1777 #. type: textblock
1778 #: ../cat/virt-ls.pod:143
1779 msgid ""
1780 "Note that this output format is completely unrelated to the C<ls -lR> "
1781 "command."
1782 msgstr ""
1783
1784 #. type: verbatim
1785 #: ../cat/virt-ls.pod:146
1786 #, no-wrap
1787 msgid ""
1788 " $ virt-ls -lR -d guest /bin\n"
1789 " d 0555       4096 /bin\n"
1790 " - 0755        123 /bin/alsaunmute\n"
1791 " - 0755      28328 /bin/arch\n"
1792 " l 0777          4 /bin/awk -> gawk\n"
1793 " - 0755      27216 /bin/basename\n"
1794 " - 0755     943360 /bin/bash\n"
1795 " [etc.]\n"
1796 "\n"
1797 msgstr ""
1798
1799 #. type: textblock
1800 #: ../cat/virt-ls.pod:155
1801 msgid "These basic fields are always shown:"
1802 msgstr ""
1803
1804 #. type: =item
1805 #: ../cat/virt-ls.pod:159
1806 msgid "type"
1807 msgstr ""
1808
1809 #. type: textblock
1810 #: ../cat/virt-ls.pod:161
1811 msgid ""
1812 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
1813 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
1814 "link), C<s> (socket) or C<u> (unknown)."
1815 msgstr ""
1816
1817 #. type: =item
1818 #: ../cat/virt-ls.pod:171
1819 msgid "permissions"
1820 msgstr ""
1821
1822 #. type: textblock
1823 #: ../cat/virt-ls.pod:173
1824 msgid "The Unix permissions, displayed as a 4 digit octal number."
1825 msgstr ""
1826
1827 #. type: =item
1828 #: ../cat/virt-ls.pod:175
1829 msgid "size"
1830 msgstr ""
1831
1832 #. type: textblock
1833 #: ../cat/virt-ls.pod:177
1834 msgid ""
1835 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
1836 "readable> option is given, in which case this is shown as a human-readable "
1837 "number."
1838 msgstr ""
1839
1840 #. type: =head2
1841 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4188
1842 msgid "path"
1843 msgstr ""
1844
1845 #. type: textblock
1846 #: ../cat/virt-ls.pod:183
1847 msgid "The full path of the file or directory."
1848 msgstr ""
1849
1850 #. type: =item
1851 #: ../cat/virt-ls.pod:185
1852 msgid "link"
1853 msgstr ""
1854
1855 #. type: textblock
1856 #: ../cat/virt-ls.pod:187
1857 msgid "For symbolic links only, the link target."
1858 msgstr ""
1859
1860 #. type: textblock
1861 #: ../cat/virt-ls.pod:191
1862 msgid ""
1863 "In I<-lR> mode, additional command line options enable the display of more "
1864 "fields."
1865 msgstr ""
1866
1867 #. type: textblock
1868 #: ../cat/virt-ls.pod:194
1869 msgid ""
1870 "With the I<--uids> flag, these additional fields are displayed before the "
1871 "path:"
1872 msgstr ""
1873
1874 #. type: =item
1875 #: ../cat/virt-ls.pod:199
1876 msgid "uid"
1877 msgstr ""
1878
1879 #. type: =item
1880 #: ../cat/virt-ls.pod:201
1881 msgid "gid"
1882 msgstr ""
1883
1884 #. type: textblock
1885 #: ../cat/virt-ls.pod:203
1886 msgid ""
1887 "The UID and GID of the owner of the file (displayed numerically).  Note "
1888 "these only make sense in the context of a Unix-like guest."
1889 msgstr ""
1890
1891 #. type: textblock
1892 #: ../cat/virt-ls.pod:208
1893 msgid "With the I<--times> flag, these additional fields are displayed:"
1894 msgstr ""
1895
1896 #. type: =item
1897 #: ../cat/virt-ls.pod:212
1898 msgid "atime"
1899 msgstr ""
1900
1901 #. type: textblock
1902 #: ../cat/virt-ls.pod:214
1903 msgid "The time of last access."
1904 msgstr ""
1905
1906 #. type: =item
1907 #: ../cat/virt-ls.pod:216
1908 msgid "mtime"
1909 msgstr ""
1910
1911 #. type: textblock
1912 #: ../cat/virt-ls.pod:218
1913 msgid "The time of last modification."
1914 msgstr ""
1915
1916 #. type: =item
1917 #: ../cat/virt-ls.pod:220
1918 msgid "ctime"
1919 msgstr ""
1920
1921 #. type: textblock
1922 #: ../cat/virt-ls.pod:222
1923 msgid "The time of last status change."
1924 msgstr ""
1925
1926 #. type: textblock
1927 #: ../cat/virt-ls.pod:226
1928 msgid ""
1929 "The time fields are displayed as string dates and times, unless one of the "
1930 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
1931 msgstr ""
1932
1933 #. type: textblock
1934 #: ../cat/virt-ls.pod:229
1935 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
1936 msgstr ""
1937
1938 #. type: =item
1939 #: ../cat/virt-ls.pod:233
1940 msgid "device"
1941 msgstr ""
1942
1943 #. type: textblock
1944 #: ../cat/virt-ls.pod:235
1945 msgid ""
1946 "The device containing the file (displayed as major:minor).  This may not "
1947 "match devices as known to the guest."
1948 msgstr ""
1949
1950 #. type: =item
1951 #: ../cat/virt-ls.pod:238
1952 msgid "inode"
1953 msgstr ""
1954
1955 #. type: textblock
1956 #: ../cat/virt-ls.pod:240
1957 msgid "The inode number."
1958 msgstr ""
1959
1960 #. type: =item
1961 #: ../cat/virt-ls.pod:242
1962 msgid "nlink"
1963 msgstr ""
1964
1965 #. type: textblock
1966 #: ../cat/virt-ls.pod:244
1967 msgid "The number of hard links."
1968 msgstr ""
1969
1970 #. type: =item
1971 #: ../cat/virt-ls.pod:246
1972 msgid "rdev"
1973 msgstr ""
1974
1975 #. type: textblock
1976 #: ../cat/virt-ls.pod:248
1977 msgid ""
1978 "For block and char special files, the device (displayed as major:minor)."
1979 msgstr ""
1980
1981 #. type: =item
1982 #: ../cat/virt-ls.pod:251
1983 msgid "blocks"
1984 msgstr ""
1985
1986 #. type: textblock
1987 #: ../cat/virt-ls.pod:253
1988 msgid "The number of 512 byte blocks allocated to the file."
1989 msgstr ""
1990
1991 #. type: textblock
1992 #: ../cat/virt-ls.pod:257
1993 msgid ""
1994 "With the I<--checksum> flag, the checksum of the file contents is shown "
1995 "(only for regular files).  Computing file checksums can take a considerable "
1996 "amount of time."
1997 msgstr ""
1998
1999 #. type: =item
2000 #: ../cat/virt-ls.pod:280
2001 msgid "B<--checksum>"
2002 msgstr ""
2003
2004 #. type: =item
2005 #: ../cat/virt-ls.pod:282
2006 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2007 msgstr ""
2008
2009 #. type: textblock
2010 #: ../cat/virt-ls.pod:284
2011 msgid ""
2012 "Display checksum over file contents for regular files.  With no argument, "
2013 "this defaults to using I<md5>.  Using an argument, you can select the "
2014 "checksum type to use."
2015 msgstr ""
2016
2017 #. type: textblock
2018 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2019 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2020 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2021 msgid ""
2022 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2023 "LISTING> above."
2024 msgstr ""
2025
2026 #. type: textblock
2027 #: ../cat/virt-ls.pod:316
2028 msgid ""
2029 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2030 "so you cannot see what you are typing.  If you are not worried about Tempest "
2031 "attacks and there is no one else in the room you can specify this flag to "
2032 "see what you are typing."
2033 msgstr ""
2034
2035 #. type: =item
2036 #: ../cat/virt-ls.pod:321
2037 msgid "B<--extra-stats>"
2038 msgstr ""
2039
2040 #. type: textblock
2041 #: ../cat/virt-ls.pod:323
2042 msgid "Display extra stats."
2043 msgstr ""
2044
2045 #. type: verbatim
2046 #: ../cat/virt-ls.pod:339
2047 #, no-wrap
2048 msgid ""
2049 " virt-ls --format=raw -a disk.img /dir\n"
2050 "\n"
2051 msgstr ""
2052
2053 #. type: verbatim
2054 #: ../cat/virt-ls.pod:343
2055 #, no-wrap
2056 msgid ""
2057 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2058 "\n"
2059 msgstr ""
2060
2061 #. type: textblock
2062 #: ../cat/virt-ls.pod:356
2063 msgid "Display file sizes in human-readable format."
2064 msgstr ""
2065
2066 #. type: =item
2067 #: ../cat/virt-ls.pod:370
2068 msgid "B<-R>"
2069 msgstr ""
2070
2071 #. type: =item
2072 #: ../cat/virt-ls.pod:372
2073 msgid "B<--recursive>"
2074 msgstr ""
2075
2076 #. type: textblock
2077 #: ../cat/virt-ls.pod:374
2078 msgid ""
2079 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2080 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2081 "LISTING>."
2082 msgstr ""
2083
2084 #. type: textblock
2085 #: ../cat/virt-ls.pod:378
2086 msgid ""
2087 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2088 "LONG LISTING>."
2089 msgstr ""
2090
2091 #. type: textblock
2092 #: ../cat/virt-ls.pod:381
2093 msgid ""
2094 "C<virt-ls -R> produces a recursive list of files starting at the named "
2095 "directory.  See L</RECURSIVE LISTING>."
2096 msgstr ""
2097
2098 #. type: textblock
2099 #: ../cat/virt-ls.pod:384
2100 msgid ""
2101 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2102 "parsed.  See L</RECURSIVE LONG LISTING>."
2103 msgstr ""
2104
2105 #. type: =item
2106 #: ../cat/virt-ls.pod:387
2107 msgid "B<--times>"
2108 msgstr ""
2109
2110 #. type: textblock
2111 #: ../cat/virt-ls.pod:389
2112 msgid "Display time fields."
2113 msgstr ""
2114
2115 #. type: =item
2116 #: ../cat/virt-ls.pod:394
2117 msgid "B<--time-days>"
2118 msgstr ""
2119
2120 #. type: textblock
2121 #: ../cat/virt-ls.pod:396
2122 msgid "Display time fields as days before now (negative if in the future)."
2123 msgstr ""
2124
2125 #. type: textblock
2126 #: ../cat/virt-ls.pod:398
2127 msgid ""
2128 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2129 "of the file is between 0 and 86399 seconds."
2130 msgstr ""
2131
2132 #. type: =item
2133 #: ../cat/virt-ls.pod:404
2134 msgid "B<--time-relative>"
2135 msgstr ""
2136
2137 #. type: textblock
2138 #: ../cat/virt-ls.pod:406
2139 msgid "Display time fields as seconds before now (negative if in the future)."
2140 msgstr ""
2141
2142 #. type: =item
2143 #: ../cat/virt-ls.pod:411
2144 msgid "B<--time-t>"
2145 msgstr ""
2146
2147 #. type: textblock
2148 #: ../cat/virt-ls.pod:413
2149 msgid "Display time fields as seconds since the Unix epoch."
2150 msgstr ""
2151
2152 #. type: =item
2153 #: ../cat/virt-ls.pod:418
2154 msgid "B<--uids>"
2155 msgstr ""
2156
2157 #. type: textblock
2158 #: ../cat/virt-ls.pod:420
2159 msgid "Display UID and GID fields."
2160 msgstr ""
2161
2162 #. type: textblock
2163 #: ../cat/virt-ls.pod:445
2164 msgid "Previous versions of virt-ls allowed you to write either:"
2165 msgstr ""
2166
2167 #. type: verbatim
2168 #: ../cat/virt-ls.pod:447
2169 #, no-wrap
2170 msgid ""
2171 " virt-ls disk.img [disk.img ...] /dir\n"
2172 "\n"
2173 msgstr ""
2174
2175 #. type: verbatim
2176 #: ../cat/virt-ls.pod:451
2177 #, no-wrap
2178 msgid ""
2179 " virt-ls guestname /dir\n"
2180 "\n"
2181 msgstr ""
2182
2183 #. type: textblock
2184 #: ../cat/virt-ls.pod:492
2185 msgid ""
2186 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2187 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2188 "L<http://libguestfs.org/>."
2189 msgstr ""
2190
2191 #. type: textblock
2192 #: ../cat/virt-ls.pod:508 ../df/virt-df.pod:236 ../edit/virt-edit.pod:369
2193 #: ../rescue/virt-rescue.pod:298
2194 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2195 msgstr ""
2196
2197 #. type: textblock
2198 #: ../df/virt-df.pod:5
2199 msgid "virt-df - Display free space on virtual filesystems"
2200 msgstr ""
2201
2202 #. type: verbatim
2203 #: ../df/virt-df.pod:9
2204 #, no-wrap
2205 msgid ""
2206 " virt-df [--options]\n"
2207 "\n"
2208 msgstr ""
2209
2210 #. type: verbatim
2211 #: ../df/virt-df.pod:11
2212 #, no-wrap
2213 msgid ""
2214 " virt-df [--options] -d domname\n"
2215 "\n"
2216 msgstr ""
2217
2218 #. type: verbatim
2219 #: ../df/virt-df.pod:13
2220 #, no-wrap
2221 msgid ""
2222 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
2223 "\n"
2224 msgstr ""
2225
2226 #. type: verbatim
2227 #: ../df/virt-df.pod:17
2228 #, no-wrap
2229 msgid ""
2230 " virt-df [--options] domname\n"
2231 "\n"
2232 msgstr ""
2233
2234 #. type: verbatim
2235 #: ../df/virt-df.pod:19
2236 #, no-wrap
2237 msgid ""
2238 " virt-df [--options] disk.img [disk.img ...]\n"
2239 "\n"
2240 msgstr ""
2241
2242 #. type: textblock
2243 #: ../df/virt-df.pod:23
2244 msgid ""
2245 "C<virt-df> is a command line tool to display free space on virtual machine "
2246 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
2247 "allocated to a virtual machine, but can look inside disk images to see how "
2248 "much space is really being used."
2249 msgstr ""
2250
2251 #. type: textblock
2252 #: ../df/virt-df.pod:28
2253 msgid ""
2254 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
2255 "to get a list of all active and inactive guests, and performs a C<df>-type "
2256 "operation on each one in turn, printing out the results."
2257 msgstr ""
2258
2259 #. type: textblock
2260 #: ../df/virt-df.pod:32
2261 msgid ""
2262 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
2263 "type operation on either the single named libvirt domain, or on the disk "
2264 "image(s) listed on the command line (which must all belong to a single VM).  "
2265 "In this mode (with arguments), C<virt-df> will I<only work for a single "
2266 "guest>.  If you want to run on multiple guests, then you have to invoke "
2267 "C<virt-df> multiple times."
2268 msgstr ""
2269
2270 #. type: textblock
2271 #: ../df/virt-df.pod:39
2272 msgid ""
2273 "Use the I<--csv> option to get a format which can be easily parsed by other "
2274 "programs.  Other options are similar to the standard L<df(1)> command."
2275 msgstr ""
2276
2277 #. type: textblock
2278 #: ../df/virt-df.pod:45
2279 msgid ""
2280 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
2281 "output human-readable:"
2282 msgstr ""
2283
2284 #. type: verbatim
2285 #: ../df/virt-df.pod:48
2286 #, no-wrap
2287 msgid ""
2288 " # virt-df -d F14x64 -h\n"
2289 " Filesystem                       Size     Used  Available  Use%\n"
2290 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
2291 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
2292 "\n"
2293 msgstr ""
2294
2295 #. type: textblock
2296 #: ../df/virt-df.pod:53
2297 msgid "Show disk usage for a disk image file called C<test.img>:"
2298 msgstr ""
2299
2300 #. type: verbatim
2301 #: ../df/virt-df.pod:55
2302 #, no-wrap
2303 msgid ""
2304 " $ virt-df -a test1.img\n"
2305 " Filesystem                  1K-blocks     Used  Available  Use%\n"
2306 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
2307 "\n"
2308 msgstr ""
2309
2310 #. type: verbatim
2311 #: ../df/virt-df.pod:112
2312 #, no-wrap
2313 msgid ""
2314 " virt-df --format=raw -a disk.img\n"
2315 "\n"
2316 msgstr ""
2317
2318 #. type: verbatim
2319 #: ../df/virt-df.pod:116
2320 #, no-wrap
2321 msgid ""
2322 " virt-df --format=raw -a disk.img --format -a another.img\n"
2323 "\n"
2324 msgstr ""
2325
2326 #. type: textblock
2327 #: ../df/virt-df.pod:129
2328 msgid "Print sizes in human-readable format."
2329 msgstr ""
2330
2331 #. type: textblock
2332 #: ../df/virt-df.pod:131
2333 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
2334 msgstr ""
2335
2336 #. type: =item
2337 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:155
2338 msgid "B<-i>"
2339 msgstr ""
2340
2341 #. type: =item
2342 #: ../df/virt-df.pod:135
2343 msgid "B<--inodes>"
2344 msgstr ""
2345
2346 #. type: textblock
2347 #: ../df/virt-df.pod:137
2348 msgid "Print inodes instead of blocks."
2349 msgstr ""
2350
2351 #. type: =item
2352 #: ../df/virt-df.pod:139
2353 msgid "B<--one-per-guest>"
2354 msgstr ""
2355
2356 #. type: textblock
2357 #: ../df/virt-df.pod:141
2358 msgid ""
2359 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
2360 "disks from several guests to a single libguestfs appliance."
2361 msgstr ""
2362
2363 #. type: textblock
2364 #: ../df/virt-df.pod:144
2365 msgid "You might use this option in the following circumstances:"
2366 msgstr ""
2367
2368 #. type: =item
2369 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
2370 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
2371 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
2372 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
2373 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
2374 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
2375 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
2376 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
2377 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
2378 #: ../fish/guestfish-actions.pod:390 ../fish/guestfish-actions.pod:398
2379 #: ../fish/guestfish-actions.pod:405 ../fish/guestfish-actions.pod:412
2380 #: ../fish/guestfish-actions.pod:1104 ../fish/guestfish-actions.pod:1108
2381 #: ../fish/guestfish-actions.pod:1112 ../fish/guestfish-actions.pod:1116
2382 #: ../fish/guestfish-actions.pod:1124 ../fish/guestfish-actions.pod:1128
2383 #: ../fish/guestfish-actions.pod:1132 ../fish/guestfish-actions.pod:1142
2384 #: ../fish/guestfish-actions.pod:1146 ../fish/guestfish-actions.pod:1150
2385 #: ../fish/guestfish-actions.pod:1240 ../fish/guestfish-actions.pod:1244
2386 #: ../fish/guestfish-actions.pod:1249 ../fish/guestfish-actions.pod:1254
2387 #: ../fish/guestfish-actions.pod:1296 ../fish/guestfish-actions.pod:1300
2388 #: ../fish/guestfish-actions.pod:1305 ../fish/guestfish-actions.pod:1938
2389 #: ../fish/guestfish-actions.pod:1944 ../fish/guestfish-actions.pod:1952
2390 #: ../fish/guestfish-actions.pod:1959 ../fish/guestfish-actions.pod:1966
2391 #: ../fish/guestfish.pod:445 ../fish/guestfish.pod:449
2392 #: ../fish/guestfish.pod:453 ../fish/guestfish.pod:457
2393 #: ../inspector/virt-inspector.pod:384 ../inspector/virt-inspector.pod:388
2394 #: ../resize/virt-resize.pod:282 ../resize/virt-resize.pod:286
2395 #: ../resize/virt-resize.pod:295 ../resize/virt-resize.pod:301
2396 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
2397 #: ../src/guestfs-actions.pod:588 ../src/guestfs-actions.pod:596
2398 #: ../src/guestfs-actions.pod:603 ../src/guestfs-actions.pod:610
2399 #: ../src/guestfs-actions.pod:1667 ../src/guestfs-actions.pod:1671
2400 #: ../src/guestfs-actions.pod:1675 ../src/guestfs-actions.pod:1679
2401 #: ../src/guestfs-actions.pod:1687 ../src/guestfs-actions.pod:1691
2402 #: ../src/guestfs-actions.pod:1695 ../src/guestfs-actions.pod:1705
2403 #: ../src/guestfs-actions.pod:1709 ../src/guestfs-actions.pod:1713
2404 #: ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:1855
2405 #: ../src/guestfs-actions.pod:1860 ../src/guestfs-actions.pod:1865
2406 #: ../src/guestfs-actions.pod:1926 ../src/guestfs-actions.pod:1930
2407 #: ../src/guestfs-actions.pod:1935 ../src/guestfs-actions.pod:2864
2408 #: ../src/guestfs-actions.pod:2870 ../src/guestfs-actions.pod:2878
2409 #: ../src/guestfs-actions.pod:2885 ../src/guestfs-actions.pod:2892
2410 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398
2411 #: ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411
2412 #: ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1064
2413 #: ../src/guestfs.pod:1068 ../src/guestfs.pod:1072 ../src/guestfs.pod:1077
2414 #: ../src/guestfs.pod:1085 ../src/guestfs.pod:1104 ../src/guestfs.pod:1112
2415 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1138 ../src/guestfs.pod:1142
2416 #: ../src/guestfs.pod:1146 ../src/guestfs.pod:1150 ../src/guestfs.pod:1154
2417 #: ../src/guestfs.pod:1644 ../src/guestfs.pod:1649 ../src/guestfs.pod:1653
2418 #: ../src/guestfs.pod:1755 ../src/guestfs.pod:1760 ../src/guestfs.pod:1764
2419 #: ../src/guestfs.pod:1774 ../src/guestfs.pod:2063 ../src/guestfs.pod:2068
2420 #: ../src/guestfs.pod:2074 ../src/guestfs.pod:2082 ../src/guestfs.pod:2436
2421 #: ../src/guestfs.pod:2442 ../src/guestfs.pod:2447 ../src/guestfs.pod:2453
2422 #: ../src/guestfs.pod:2834 ../src/guestfs.pod:2839 ../src/guestfs.pod:2843
2423 #: ../src/guestfs.pod:2847 ../src/guestfs.pod:2851 ../src/guestfs.pod:2865
2424 #: ../src/guestfs.pod:2870 ../src/guestfs.pod:3095 ../src/guestfs.pod:3099
2425 #: ../src/guestfs.pod:3103 ../src/guestfs.pod:3107
2426 #: ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202
2427 #: ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:710
2428 #: ../tools/virt-win-reg.pl:716 ../tools/virt-win-reg.pl:722
2429 msgid "*"
2430 msgstr ""
2431
2432 #. type: textblock
2433 #: ../df/virt-df.pod:150
2434 msgid ""
2435 "If you think an untrusted guest might actively try to exploit the libguestfs "
2436 "appliance kernel, then this prevents one guest from interfering with the "
2437 "stats printed for another guest."
2438 msgstr ""
2439
2440 #. type: textblock
2441 #: ../df/virt-df.pod:156
2442 msgid ""
2443 "If the kernel has a bug which stops it from accessing a filesystem in one "
2444 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
2445 "and report stats for further guests."
2446 msgstr ""
2447
2448 #. type: textblock
2449 #: ../df/virt-df.pod:165
2450 msgid ""
2451 "Print UUIDs instead of names.  This is useful for following a guest even "
2452 "when the guest is migrated or renamed, or when two guests happen to have the "
2453 "same name."
2454 msgstr ""
2455
2456 #. type: textblock
2457 #: ../df/virt-df.pod:169
2458 msgid ""
2459 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
2460 "images, we still print the disk image name even when this option is "
2461 "specified."
2462 msgstr ""
2463
2464 #. type: textblock
2465 #: ../df/virt-df.pod:224
2466 msgid ""
2467 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
2468 "libguestfs.org/>."
2469 msgstr ""
2470
2471 #. type: textblock
2472 #: ../edit/virt-edit.pod:5
2473 msgid "virt-edit - Edit a file in a virtual machine"
2474 msgstr ""
2475
2476 #. type: verbatim
2477 #: ../edit/virt-edit.pod:9
2478 #, no-wrap
2479 msgid ""
2480 " virt-edit [--options] -d domname file [file ...]\n"
2481 "\n"
2482 msgstr ""
2483
2484 #. type: verbatim
2485 #: ../edit/virt-edit.pod:11
2486 #, no-wrap
2487 msgid ""
2488 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
2489 "\n"
2490 msgstr ""
2491
2492 #. type: verbatim
2493 #: ../edit/virt-edit.pod:13
2494 #, no-wrap
2495 msgid ""
2496 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
2497 "\n"
2498 msgstr ""
2499
2500 #. type: verbatim
2501 #: ../edit/virt-edit.pod:17
2502 #, no-wrap
2503 msgid ""
2504 " virt-edit domname file\n"
2505 "\n"
2506 msgstr ""
2507
2508 #. type: verbatim
2509 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
2510 #, no-wrap
2511 msgid ""
2512 " virt-edit disk.img [disk.img ...] file\n"
2513 "\n"
2514 msgstr ""
2515
2516 #. type: =head1
2517 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
2518 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
2519 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
2520 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
2521 msgid "WARNING"
2522 msgstr ""
2523
2524 #. type: textblock
2525 #: ../edit/virt-edit.pod:23
2526 msgid ""
2527 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
2528 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
2529 "doing this, but doesn't catch all cases."
2530 msgstr ""
2531
2532 #. type: textblock
2533 #: ../edit/virt-edit.pod:29
2534 msgid ""
2535 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
2536 "exists in the named virtual machine (or disk image)."
2537 msgstr ""
2538
2539 #. type: textblock
2540 #: ../edit/virt-edit.pod:32
2541 msgid ""
2542 "Multiple filenames can be given, in which case they are each edited in "
2543 "turn.  Each filename must be a full path, starting at the root directory "
2544 "(starting with '/')."
2545 msgstr ""
2546
2547 #. type: textblock
2548 #: ../edit/virt-edit.pod:36
2549 msgid "If you want to just view a file, use L<virt-cat(1)>."
2550 msgstr ""
2551
2552 #. type: textblock
2553 #: ../edit/virt-edit.pod:38
2554 msgid ""
2555 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
2556 "USING GUESTFISH> below)."
2557 msgstr ""
2558
2559 #. type: textblock
2560 #: ../edit/virt-edit.pod:41
2561 msgid ""
2562 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
2563 "that and much more."
2564 msgstr ""
2565
2566 #. type: textblock
2567 #: ../edit/virt-edit.pod:46
2568 msgid "Edit the named files interactively:"
2569 msgstr ""
2570
2571 #. type: verbatim
2572 #: ../edit/virt-edit.pod:48
2573 #, no-wrap
2574 msgid ""
2575 " virt-edit -d mydomain /boot/grub/grub.conf\n"
2576 "\n"
2577 msgstr ""
2578
2579 #. type: verbatim
2580 #: ../edit/virt-edit.pod:50
2581 #, no-wrap
2582 msgid ""
2583 " virt-edit -d mydomain /etc/passwd\n"
2584 "\n"
2585 msgstr ""
2586
2587 #. type: textblock
2588 #: ../edit/virt-edit.pod:52
2589 msgid "For Windows guests, some Windows paths are understood:"
2590 msgstr ""
2591
2592 #. type: verbatim
2593 #: ../edit/virt-edit.pod:54
2594 #, no-wrap
2595 msgid ""
2596 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
2597 "\n"
2598 msgstr ""
2599
2600 #. type: textblock
2601 #: ../edit/virt-edit.pod:56
2602 msgid ""
2603 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
2604 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
2605 msgstr ""
2606
2607 #. type: verbatim
2608 #: ../edit/virt-edit.pod:60
2609 #, no-wrap
2610 msgid ""
2611 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
2612 "\n"
2613 msgstr ""
2614
2615 #. type: =item
2616 #: ../edit/virt-edit.pod:81
2617 msgid "B<-b> extension"
2618 msgstr ""
2619
2620 #. type: =item
2621 #: ../edit/virt-edit.pod:83
2622 msgid "B<--backup> extension"
2623 msgstr ""
2624
2625 #. type: textblock
2626 #: ../edit/virt-edit.pod:85
2627 msgid ""
2628 "Create a backup of the original file I<in the guest disk image>.  The backup "
2629 "has the original filename with C<extension> added."
2630 msgstr ""
2631
2632 #. type: textblock
2633 #: ../edit/virt-edit.pod:88
2634 msgid ""
2635 "Usually the first character of C<extension> would be a dot C<.> so you would "
2636 "write:"
2637 msgstr ""
2638
2639 #. type: verbatim
2640 #: ../edit/virt-edit.pod:91
2641 #, no-wrap
2642 msgid ""
2643 " virt-edit -b .orig [etc]\n"
2644 "\n"
2645 msgstr ""
2646
2647 #. type: textblock
2648 #: ../edit/virt-edit.pod:93
2649 msgid "By default, no backup file is made."
2650 msgstr ""
2651
2652 #. type: =item
2653 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
2654 #: ../fuse/guestmount.pod:96 ../inspector/virt-inspector.pod:74
2655 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
2656 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
2657 msgid "B<-c URI>"
2658 msgstr ""
2659
2660 #. type: =item
2661 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
2662 #: ../fuse/guestmount.pod:98 ../inspector/virt-inspector.pod:76
2663 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
2664 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
2665 msgid "B<--connect URI>"
2666 msgstr ""
2667
2668 #. type: textblock
2669 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
2670 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
2671 #: ../tools/virt-win-reg.pl:135
2672 msgid ""
2673 "If you specify guest block devices directly, then libvirt is not used at all."
2674 msgstr ""
2675
2676 #. type: textblock
2677 #: ../edit/virt-edit.pod:114
2678 msgid ""
2679 "When prompting for keys and passphrases, virt-edit normally turns echoing "
2680 "off so you cannot see what you are typing.  If you are not worried about "
2681 "Tempest attacks and there is no one else in the room you can specify this "
2682 "flag to see what you are typing."
2683 msgstr ""
2684
2685 #. type: =item
2686 #: ../edit/virt-edit.pod:119
2687 msgid "B<-e> EXPR"
2688 msgstr ""
2689
2690 #. type: =item
2691 #: ../edit/virt-edit.pod:121
2692 msgid "B<--expr> EXPR"
2693 msgstr ""
2694
2695 #. type: textblock
2696 #: ../edit/virt-edit.pod:123
2697 msgid ""
2698 "Instead of launching the external editor, non-interactively apply the Perl "
2699 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
2700 "EDITING> below."
2701 msgstr ""
2702
2703 #. type: textblock
2704 #: ../edit/virt-edit.pod:127
2705 msgid ""
2706 "Be careful to properly quote the expression to prevent it from being altered "
2707 "by the shell."
2708 msgstr ""
2709
2710 #. type: textblock
2711 #: ../edit/virt-edit.pod:130
2712 msgid "Note that this option is only available when Perl 5 is installed."
2713 msgstr ""
2714
2715 #. type: =item
2716 #: ../edit/virt-edit.pod:132
2717 msgid "B<--format> raw|qcow2|..."
2718 msgstr ""
2719
2720 #. type: verbatim
2721 #: ../edit/virt-edit.pod:143
2722 #, no-wrap
2723 msgid ""
2724 " virt-edit --format=raw -a disk.img file\n"
2725 "\n"
2726 msgstr ""
2727
2728 #. type: verbatim
2729 #: ../edit/virt-edit.pod:147
2730 #, no-wrap
2731 msgid ""
2732 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
2733 "\n"
2734 msgstr ""
2735
2736 #. type: textblock
2737 #: ../edit/virt-edit.pod:181
2738 msgid "Previous versions of virt-edit allowed you to write either:"
2739 msgstr ""
2740
2741 #. type: verbatim
2742 #: ../edit/virt-edit.pod:187
2743 #, no-wrap
2744 msgid ""
2745 " virt-edit guestname file\n"
2746 "\n"
2747 msgstr ""
2748
2749 #. type: =head1
2750 #: ../edit/virt-edit.pod:195
2751 msgid "NON-INTERACTIVE EDITING"
2752 msgstr ""
2753
2754 #. type: textblock
2755 #: ../edit/virt-edit.pod:197
2756 msgid ""
2757 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
2758 "administrator can interactively edit the file."
2759 msgstr ""
2760
2761 #. type: textblock
2762 #: ../edit/virt-edit.pod:200
2763 msgid ""
2764 "There are two ways also to use C<virt-edit> from scripts in order to make "
2765 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
2766 "like this, it's less error-prone to write scripts directly using the "
2767 "libguestfs API and Augeas for configuration file editing.)"
2768 msgstr ""
2769
2770 #. type: textblock
2771 #: ../edit/virt-edit.pod:206
2772 msgid ""
2773 "The first method is to temporarily set C<$EDITOR> to any script or program "
2774 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
2775 "update C<tmpfile> in place however it likes."
2776 msgstr ""
2777
2778 #. type: textblock
2779 #: ../edit/virt-edit.pod:210
2780 msgid ""
2781 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
2782 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
2783 "instances of C<foo> with C<bar> in a file:"
2784 msgstr ""
2785
2786 #. type: verbatim
2787 #: ../edit/virt-edit.pod:214
2788 #, no-wrap
2789 msgid ""
2790 " virt-edit -d domname filename -e 's/foo/bar/'\n"
2791 "\n"
2792 msgstr ""
2793
2794 #. type: textblock
2795 #: ../edit/virt-edit.pod:216
2796 msgid ""
2797 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
2798 "For example to delete root's password you could do:"
2799 msgstr ""
2800
2801 #. type: verbatim
2802 #: ../edit/virt-edit.pod:219
2803 #, no-wrap
2804 msgid ""
2805 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
2806 "\n"
2807 msgstr ""
2808
2809 #. type: textblock
2810 #: ../edit/virt-edit.pod:221
2811 msgid ""
2812 "What really happens is that the snippet is evaluated as a Perl expression "
2813 "for each line of the file.  The line, including the final C<\\n>, is passed "
2814 "in C<$_> and the expression should update C<$_> or leave it unchanged."
2815 msgstr ""
2816
2817 #. type: textblock
2818 #: ../edit/virt-edit.pod:226
2819 msgid ""
2820 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
2821 "C<apache> user account from the password file you can do:"
2822 msgstr ""
2823
2824 #. type: verbatim
2825 #: ../edit/virt-edit.pod:229
2826 #, no-wrap
2827 msgid ""
2828 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
2829 "\n"
2830 msgstr ""
2831
2832 #. type: textblock
2833 #: ../edit/virt-edit.pod:231
2834 msgid ""
2835 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
2836 "the end of the file is rather difficult this way since there is no concept "
2837 "of \"last line of the file\" - your expression just doesn't get called "
2838 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
2839 "want to do this."
2840 msgstr ""
2841
2842 #. type: textblock
2843 #: ../edit/virt-edit.pod:237
2844 msgid ""
2845 "The variable C<$lineno> contains the current line number.  As is "
2846 "traditional, the first line in the file is number C<1>."
2847 msgstr ""
2848
2849 #. type: textblock
2850 #: ../edit/virt-edit.pod:240
2851 msgid ""
2852 "The return value from the expression is ignored, but the expression may call "
2853 "C<die> in order to abort the whole program, leaving the original file "
2854 "untouched."
2855 msgstr ""
2856
2857 #. type: textblock
2858 #: ../edit/virt-edit.pod:244
2859 msgid ""
2860 "Remember when matching the end of a line that C<$_> may contain the final C<"
2861 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
2862 "newline then neither of these.  Thus to match or substitute some text at the "
2863 "end of a line, use this regular expression:"
2864 msgstr ""
2865
2866 #. type: verbatim
2867 #: ../edit/virt-edit.pod:249
2868 #, no-wrap
2869 msgid ""
2870 " /some text(\\r?\\n)?$/\n"
2871 "\n"
2872 msgstr ""
2873
2874 #. type: textblock
2875 #: ../edit/virt-edit.pod:251
2876 msgid ""
2877 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
2878 "$_> itself (since that would remove all newlines from the file):"
2879 msgstr ""
2880
2881 #. type: verbatim
2882 #: ../edit/virt-edit.pod:255
2883 #, no-wrap
2884 msgid ""
2885 " my $m = $_; chomp $m; $m =~ /some text$/\n"
2886 "\n"
2887 msgstr ""
2888
2889 #. type: =head1
2890 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
2891 msgid "WINDOWS PATHS"
2892 msgstr ""
2893
2894 #. type: textblock
2895 #: ../edit/virt-edit.pod:259
2896 msgid ""
2897 "C<virt-edit> has a limited ability to understand Windows drive letters and "
2898 "paths (eg. C<E:\\foo\\bar.txt>)."
2899 msgstr ""
2900
2901 #. type: textblock
2902 #: ../edit/virt-edit.pod:262
2903 msgid "If and only if the guest is running Windows then:"
2904 msgstr ""
2905
2906 #. type: textblock
2907 #: ../edit/virt-edit.pod:268
2908 msgid ""
2909 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
2910 "to the correct filesystem."
2911 msgstr ""
2912
2913 #. type: textblock
2914 #: ../edit/virt-edit.pod:273
2915 msgid ""
2916 "Any backslash (C<\\>) characters in the path are replaced with forward "
2917 "slashes so that libguestfs can process it."
2918 msgstr ""
2919
2920 #. type: textblock
2921 #: ../edit/virt-edit.pod:278
2922 msgid ""
2923 "The path is resolved case insensitively to locate the file that should be "
2924 "edited."
2925 msgstr ""
2926
2927 #. type: textblock
2928 #: ../edit/virt-edit.pod:283
2929 msgid "There are some known shortcomings:"
2930 msgstr ""
2931
2932 #. type: textblock
2933 #: ../edit/virt-edit.pod:289
2934 msgid "Some NTFS symbolic links may not be followed correctly."
2935 msgstr ""
2936
2937 #. type: textblock
2938 #: ../edit/virt-edit.pod:293
2939 msgid "NTFS junction points that cross filesystems are not followed."
2940 msgstr ""
2941
2942 #. type: textblock
2943 #: ../edit/virt-edit.pod:299
2944 msgid ""
2945 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
2946 "C<virt-edit> doesn't work."
2947 msgstr ""
2948
2949 #. type: textblock
2950 #: ../edit/virt-edit.pod:302
2951 msgid "Using C<virt-edit> is approximately equivalent to doing:"
2952 msgstr ""
2953
2954 #. type: verbatim
2955 #: ../edit/virt-edit.pod:304
2956 #, no-wrap
2957 msgid ""
2958 " guestfish --rw -i -d domname edit /file\n"
2959 "\n"
2960 msgstr ""
2961
2962 #. type: textblock
2963 #: ../edit/virt-edit.pod:306
2964 msgid ""
2965 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
2966 "path to the file."
2967 msgstr ""
2968
2969 #. type: textblock
2970 #: ../edit/virt-edit.pod:309
2971 msgid ""
2972 "The command above uses libguestfs's guest inspection feature and so does not "
2973 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
2974 "disk images that don't contain guests.  To edit a file on a disk image "
2975 "directly, use:"
2976 msgstr ""
2977
2978 #. type: verbatim
2979 #: ../edit/virt-edit.pod:314
2980 #, no-wrap
2981 msgid ""
2982 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
2983 "\n"
2984 msgstr ""
2985
2986 #. type: textblock
2987 #: ../edit/virt-edit.pod:316
2988 msgid ""
2989 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
2990 "the disk image to edit, and C</file> is the full path to the file."
2991 msgstr ""
2992
2993 #. type: textblock
2994 #: ../edit/virt-edit.pod:320
2995 msgid ""
2996 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
2997 "C<write> or C<upload> instead:"
2998 msgstr ""
2999
3000 #. type: verbatim
3001 #: ../edit/virt-edit.pod:323
3002 #, no-wrap
3003 msgid ""
3004 " guestfish --rw -i -d domname touch /newfile\n"
3005 "\n"
3006 msgstr ""
3007
3008 #. type: verbatim
3009 #: ../edit/virt-edit.pod:325
3010 #, no-wrap
3011 msgid ""
3012 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
3013 "\n"
3014 msgstr ""
3015
3016 #. type: verbatim
3017 #: ../edit/virt-edit.pod:327
3018 #, no-wrap
3019 msgid ""
3020 " guestfish --rw -i -d domname upload localfile /newfile\n"
3021 "\n"
3022 msgstr ""
3023
3024 #. type: =head1
3025 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1086
3026 #: ../rescue/virt-rescue.pod:257 ../src/guestfs.pod:2981
3027 #: ../test-tool/libguestfs-test-tool.pod:82
3028 msgid "ENVIRONMENT VARIABLES"
3029 msgstr ""
3030
3031 #. type: =item
3032 #: ../edit/virt-edit.pod:333
3033 msgid "C<EDITOR>"
3034 msgstr ""
3035
3036 #. type: textblock
3037 #: ../edit/virt-edit.pod:335
3038 msgid ""
3039 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
3040 "\"emacs -nw\">"
3041 msgstr ""
3042
3043 #. type: textblock
3044 #: ../edit/virt-edit.pod:338
3045 msgid "If not set, C<vi> is used."
3046 msgstr ""
3047
3048 #. type: textblock
3049 #: ../edit/virt-edit.pod:351
3050 msgid ""
3051 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
3052 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3053 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
3054 msgstr ""
3055
3056 #. type: textblock
3057 #: ../examples/guestfs-examples.pod:5
3058 msgid "guestfs-examples - Examples of using libguestfs from C"
3059 msgstr ""
3060
3061 #. type: verbatim
3062 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
3063 #, no-wrap
3064 msgid ""
3065 " #include <guestfs.h>\n"
3066 " \n"
3067 msgstr ""
3068
3069 #. type: verbatim
3070 #: ../examples/guestfs-examples.pod:11
3071 #, no-wrap
3072 msgid ""
3073 " guestfs_h *g = guestfs_create ();\n"
3074 " guestfs_add_drive_ro (g, \"disk.img\");\n"
3075 " guestfs_launch (g);\n"
3076 "\n"
3077 msgstr ""
3078
3079 #. type: verbatim
3080 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
3081 #, no-wrap
3082 msgid ""
3083 " cc prog.c -o prog -lguestfs\n"
3084 "or:\n"
3085 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3086 "\n"
3087 msgstr ""
3088
3089 #. type: textblock
3090 #: ../examples/guestfs-examples.pod:21
3091 msgid ""
3092 "This manual page contains examples of calling libguestfs from the C "
3093 "programming language.  If you are not familiar with using libguestfs, you "
3094 "also need to read L<guestfs(3)>."
3095 msgstr ""
3096
3097 #. type: =head1
3098 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
3099 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
3100 #: ../python/examples/guestfs-python.pod:34
3101 #: ../ruby/examples/guestfs-ruby.pod:28
3102 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
3103 msgstr ""
3104
3105 #. type: textblock
3106 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
3107 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
3108 #: ../python/examples/guestfs-python.pod:36
3109 #: ../ruby/examples/guestfs-ruby.pod:30
3110 msgid "@EXAMPLE1@"
3111 msgstr ""
3112
3113 #. type: =head1
3114 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
3115 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
3116 #: ../python/examples/guestfs-python.pod:38
3117 #: ../ruby/examples/guestfs-ruby.pod:32
3118 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
3119 msgstr ""
3120
3121 #. type: textblock
3122 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
3123 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
3124 #: ../python/examples/guestfs-python.pod:40
3125 #: ../ruby/examples/guestfs-ruby.pod:34
3126 msgid "@EXAMPLE2@"
3127 msgstr ""
3128
3129 #. type: textblock
3130 #: ../examples/guestfs-examples.pod:35
3131 msgid ""
3132 "L<guestfs(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
3133 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
3134 "libguestfs.org/>."
3135 msgstr ""
3136
3137 #. type: =head1
3138 #: ../examples/guestfs-examples.pod:44 ../examples/guestfs-recipes.pod:396
3139 #: ../fish/guestfish.pod:1260 ../fish/virt-copy-in.pod:60
3140 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
3141 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:314
3142 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:57
3143 #: ../ocaml/examples/guestfs-ocaml.pod:90 ../perl/examples/guestfs-perl.pod:51
3144 #: ../python/examples/guestfs-python.pod:53
3145 #: ../ruby/examples/guestfs-ruby.pod:47 ../src/guestfs.pod:3114
3146 #: ../test-tool/libguestfs-test-tool.pod:93
3147 msgid "AUTHORS"
3148 msgstr ""
3149
3150 #. type: textblock
3151 #: ../examples/guestfs-examples.pod:46 ../examples/guestfs-recipes.pod:398
3152 #: ../fish/guestfish.pod:1262 ../fish/virt-copy-in.pod:62
3153 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
3154 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:316
3155 #: ../java/examples/guestfs-java.pod:59 ../ocaml/examples/guestfs-ocaml.pod:92
3156 #: ../perl/examples/guestfs-perl.pod:53
3157 #: ../python/examples/guestfs-python.pod:55
3158 #: ../ruby/examples/guestfs-ruby.pod:49 ../src/guestfs.pod:3116
3159 #: ../test-tool/libguestfs-test-tool.pod:95
3160 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3161 msgstr ""
3162
3163 #. type: textblock
3164 #: ../examples/guestfs-examples.pod:50 ../ocaml/examples/guestfs-ocaml.pod:96
3165 #: ../python/examples/guestfs-python.pod:59
3166 #: ../ruby/examples/guestfs-ruby.pod:53
3167 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
3168 msgstr ""
3169
3170 #. type: textblock
3171 #: ../examples/guestfs-examples.pod:52 ../examples/guestfs-recipes.pod:404
3172 #: ../java/examples/guestfs-java.pod:65 ../ocaml/examples/guestfs-ocaml.pod:98
3173 #: ../perl/examples/guestfs-perl.pod:59
3174 #: ../python/examples/guestfs-python.pod:61
3175 #: ../ruby/examples/guestfs-ruby.pod:55
3176 msgid ""
3177 "The examples in this manual page may be freely copied, modified and "
3178 "distributed without any restrictions."
3179 msgstr ""
3180
3181 #. type: textblock
3182 #: ../examples/guestfs-examples.pod:55 ../examples/guestfs-recipes.pod:407
3183 #: ../java/examples/guestfs-java.pod:68
3184 #: ../ocaml/examples/guestfs-ocaml.pod:101
3185 #: ../perl/examples/guestfs-perl.pod:62
3186 #: ../python/examples/guestfs-python.pod:64
3187 #: ../ruby/examples/guestfs-ruby.pod:58 ../src/guestfs.pod:3123
3188 msgid ""
3189 "This library is free software; you can redistribute it and/or modify it "
3190 "under the terms of the GNU Lesser General Public License as published by the "
3191 "Free Software Foundation; either version 2 of the License, or (at your "
3192 "option) any later version."
3193 msgstr ""
3194
3195 #. type: textblock
3196 #: ../examples/guestfs-examples.pod:60 ../examples/guestfs-recipes.pod:412
3197 #: ../java/examples/guestfs-java.pod:73
3198 #: ../ocaml/examples/guestfs-ocaml.pod:106
3199 #: ../perl/examples/guestfs-perl.pod:67
3200 #: ../python/examples/guestfs-python.pod:69
3201 #: ../ruby/examples/guestfs-ruby.pod:63 ../src/guestfs.pod:3128
3202 msgid ""
3203 "This library is distributed in the hope that it will be useful, but WITHOUT "
3204 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3205 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3206 "for more details."
3207 msgstr ""
3208
3209 #. type: textblock
3210 #: ../examples/guestfs-examples.pod:65 ../examples/guestfs-recipes.pod:417
3211 #: ../java/examples/guestfs-java.pod:78
3212 #: ../ocaml/examples/guestfs-ocaml.pod:111
3213 #: ../perl/examples/guestfs-perl.pod:72
3214 #: ../python/examples/guestfs-python.pod:74
3215 #: ../ruby/examples/guestfs-ruby.pod:68 ../src/guestfs.pod:3133
3216 msgid ""
3217 "You should have received a copy of the GNU Lesser General Public License "
3218 "along with this library; if not, write to the Free Software Foundation, "
3219 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3220 msgstr ""
3221
3222 #. type: =end
3223 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
3224 msgid "comment"
3225 msgstr ""
3226
3227 #. type: textblock
3228 #: ../examples/guestfs-recipes.pod:5
3229 msgid ""
3230 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
3231 "here.  The only way which works for both sorts of output is to just write "
3232 "the URL directly.  Do NOT use L<...> for URLs."
3233 msgstr ""
3234
3235 #. type: textblock
3236 #: ../examples/guestfs-recipes.pod:9
3237 msgid ""
3238 "We break with tradition here and don't use ALL CAPS for the section "
3239 "headings, as this makes them much easier to read."
3240 msgstr ""
3241
3242 #. type: textblock
3243 #: ../examples/guestfs-recipes.pod:16
3244 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
3245 msgstr ""
3246
3247 #. type: textblock
3248 #: ../examples/guestfs-recipes.pod:20
3249 msgid ""
3250 "This page contains recipes for and links to things you can do using "
3251 "libguestfs, L<guestfish(1)> and the virt tools."
3252 msgstr ""
3253
3254 #. type: =head1
3255 #: ../examples/guestfs-recipes.pod:23
3256 msgid "Audit a virtual machine for setuid files"
3257 msgstr ""
3258
3259 #. type: textblock
3260 #: ../examples/guestfs-recipes.pod:25
3261 msgid ""
3262 "The link below contains a small program which can be used to audit a Linux "
3263 "virtual machine to see what setuid and setgid files it contains."
3264 msgstr ""
3265
3266 #. type: textblock
3267 #: ../examples/guestfs-recipes.pod:28
3268 msgid ""
3269 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
3270 "files/#content"
3271 msgstr ""
3272
3273 #. type: =head1
3274 #: ../examples/guestfs-recipes.pod:30
3275 msgid "Change the background image in a Windows XP VM"
3276 msgstr ""
3277
3278 #. type: textblock
3279 #: ../examples/guestfs-recipes.pod:32
3280 msgid ""
3281 "The links below explain how to use L<guestfish(1)> to change the background "
3282 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
3283 "be substantially different for each version of Windows."
3284 msgstr ""
3285
3286 #. type: textblock
3287 #: ../examples/guestfs-recipes.pod:37
3288 msgid ""
3289 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
3290 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
3291 msgstr ""
3292
3293 #. type: =head1
3294 #: ../examples/guestfs-recipes.pod:40
3295 msgid "Cloning a virtual machine (Linux)"
3296 msgstr ""
3297
3298 #. type: textblock
3299 #: ../examples/guestfs-recipes.pod:42
3300 msgid ""
3301 "The guestfish technique described in the link below works well for most "
3302 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
3303 "slightly."
3304 msgstr ""
3305
3306 #. type: textblock
3307 #: ../examples/guestfs-recipes.pod:46
3308 msgid ""
3309 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
3310 "vm/#content"
3311 msgstr ""
3312
3313 #. type: textblock
3314 #: ../examples/guestfs-recipes.pod:48
3315 msgid ""
3316 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
3317 "discussion."
3318 msgstr ""
3319
3320 #. type: textblock
3321 #: ../examples/guestfs-recipes.pod:51
3322 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
3323 msgstr ""
3324
3325 #. type: =head1
3326 #: ../examples/guestfs-recipes.pod:53
3327 msgid "Cloning a virtual machine (Windows)"
3328 msgstr ""
3329
3330 #. type: textblock
3331 #: ../examples/guestfs-recipes.pod:55
3332 msgid ""
3333 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
3334 "straightforward.  Currently there is code in the Aeolus Oz project which "
3335 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
3336 "we may add sysprepping ability."
3337 msgstr ""
3338
3339 #. type: textblock
3340 #: ../examples/guestfs-recipes.pod:60
3341 msgid ""
3342 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
3343 "list/2011-May/msg00019.html"
3344 msgstr ""
3345
3346 #. type: =head1
3347 #: ../examples/guestfs-recipes.pod:63
3348 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
3349 msgstr ""
3350
3351 #. type: textblock
3352 #: ../examples/guestfs-recipes.pod:65
3353 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
3354 msgstr ""
3355
3356 #. type: verbatim
3357 #: ../examples/guestfs-recipes.pod:67
3358 #, no-wrap
3359 msgid ""
3360 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
3361 "\n"
3362 msgstr ""
3363
3364 #. type: textblock
3365 #: ../examples/guestfs-recipes.pod:69
3366 msgid "To export just a subdirectory, eg. C</files>, do:"
3367 msgstr ""
3368
3369 #. type: verbatim
3370 #: ../examples/guestfs-recipes.pod:71
3371 #, no-wrap
3372 msgid ""
3373 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
3374 "\n"
3375 msgstr ""
3376
3377 #. type: =head1
3378 #: ../examples/guestfs-recipes.pod:73
3379 msgid "Create empty disk images"
3380 msgstr ""
3381
3382 #. type: textblock
3383 #: ../examples/guestfs-recipes.pod:75
3384 msgid ""
3385 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
3386 "The useful guide below explains the options available."
3387 msgstr ""
3388
3389 #. type: textblock
3390 #: ../examples/guestfs-recipes.pod:78
3391 msgid ""
3392 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
3393 "#content"
3394 msgstr ""
3395
3396 #. type: =head1
3397 #: ../examples/guestfs-recipes.pod:80
3398 msgid "Dump raw filesystem content from inside a disk image or VM"
3399 msgstr ""
3400
3401 #. type: textblock
3402 #: ../examples/guestfs-recipes.pod:82
3403 msgid ""
3404 "You can use the L<guestfish(1)> C<download> command to extract the raw "
3405 "filesystem content from any filesystem in a disk image or a VM (even one "
3406 "which is encrypted or buried inside an LV):"
3407 msgstr ""
3408
3409 #. type: verbatim
3410 #: ../examples/guestfs-recipes.pod:86
3411 #, no-wrap
3412 msgid ""
3413 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
3414 "\n"
3415 msgstr ""
3416
3417 #. type: verbatim
3418 #: ../examples/guestfs-recipes.pod:88
3419 #, no-wrap
3420 msgid ""
3421 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
3422 "\n"
3423 msgstr ""
3424
3425 #. type: textblock
3426 #: ../examples/guestfs-recipes.pod:90
3427 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
3428 msgstr ""
3429
3430 #. type: =head1
3431 #: ../examples/guestfs-recipes.pod:92
3432 msgid "Edit grub configuration in a VM"
3433 msgstr ""
3434
3435 #. type: textblock
3436 #: ../examples/guestfs-recipes.pod:94
3437 msgid "You can use this to:"
3438 msgstr ""
3439
3440 #. type: textblock
3441 #: ../examples/guestfs-recipes.pod:100
3442 msgid "Fix a virtual machine that does not boot."
3443 msgstr ""
3444
3445 #. type: textblock
3446 #: ../examples/guestfs-recipes.pod:104
3447 msgid "Change which kernel is used to boot the VM."
3448 msgstr ""
3449
3450 #. type: textblock
3451 #: ../examples/guestfs-recipes.pod:108
3452 msgid "Change kernel command line options."
3453 msgstr ""
3454
3455 #. type: textblock
3456 #: ../examples/guestfs-recipes.pod:112
3457 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
3458 msgstr ""
3459
3460 #. type: verbatim
3461 #: ../examples/guestfs-recipes.pod:114
3462 #, no-wrap
3463 msgid ""
3464 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
3465 "\n"
3466 msgstr ""
3467
3468 #. type: textblock
3469 #: ../examples/guestfs-recipes.pod:116
3470 msgid ""
3471 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
3472 "this:"
3473 msgstr ""
3474
3475 #. type: verbatim
3476 #: ../examples/guestfs-recipes.pod:119
3477 #, no-wrap
3478 msgid ""
3479 " virt-rescue -d BrokenGuest\n"
3480 "\n"
3481 msgstr ""
3482
3483 #. type: =head1
3484 #: ../examples/guestfs-recipes.pod:121
3485 msgid "Export any directory from a VM"
3486 msgstr ""
3487
3488 #. type: textblock
3489 #: ../examples/guestfs-recipes.pod:123
3490 msgid ""
3491 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
3492 msgstr ""
3493
3494 #. type: verbatim
3495 #: ../examples/guestfs-recipes.pod:126
3496 #, no-wrap
3497 msgid ""
3498 " virt-copy-out -d Guest /home .\n"
3499 "\n"
3500 msgstr ""
3501
3502 #. type: textblock
3503 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
3504 #: ../fish/guestfish-actions.pod:1292 ../fish/guestfish-actions.pod:1934
3505 #: ../src/guestfs-actions.pod:18 ../src/guestfs-actions.pod:1922
3506 #: ../src/guestfs-actions.pod:2860 ../src/guestfs.pod:1640
3507 #: ../tools/virt-win-reg.pl:706
3508 msgid "Notes:"
3509 msgstr ""
3510
3511 #. type: textblock
3512 #: ../examples/guestfs-recipes.pod:134
3513 msgid ""
3514 "The final dot of the command is not a printing error.  It means we want to "
3515 "copy out to the current directory."
3516 msgstr ""
3517
3518 #. type: textblock
3519 #: ../examples/guestfs-recipes.pod:139
3520 msgid "This creates a directory called C<home> under the current directory."
3521 msgstr ""
3522
3523 #. type: textblock
3524 #: ../examples/guestfs-recipes.pod:143
3525 msgid ""
3526 "If the guest is a Windows guest then you can use drive letters and "
3527 "backslashes, but you must prefix the path with C<win:> and quote it to "
3528 "protect it from the shell, like this:"
3529 msgstr ""
3530
3531 #. type: verbatim
3532 #: ../examples/guestfs-recipes.pod:147
3533 #, no-wrap
3534 msgid ""
3535 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
3536 "\n"
3537 msgstr ""
3538
3539 #. type: textblock
3540 #: ../examples/guestfs-recipes.pod:149
3541 msgid "To get the output as a compressed tarball, do:"
3542 msgstr ""
3543
3544 #. type: verbatim
3545 #: ../examples/guestfs-recipes.pod:151
3546 #, no-wrap
3547 msgid ""
3548 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
3549 "\n"
3550 msgstr ""
3551
3552 #. type: textblock
3553 #: ../examples/guestfs-recipes.pod:153
3554 msgid ""
3555 "Although it sounds tempting, this is usually not a reliable way to get a "
3556 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
3557 "org/FAQ.html#backup"
3558 msgstr ""
3559
3560 #. type: =head1
3561 #: ../examples/guestfs-recipes.pod:157
3562 msgid "Find out which user is using the most space"
3563 msgstr ""
3564
3565 #. type: textblock
3566 #: ../examples/guestfs-recipes.pod:159
3567 msgid ""
3568 "This simple script examines a Linux guest to find out which user is using "
3569 "the most space in their home directory:"
3570 msgstr ""
3571
3572 #. type: verbatim
3573 #: ../examples/guestfs-recipes.pod:162
3574 #, no-wrap
3575 msgid ""
3576 " #!/bin/sh -\n"
3577 " \n"
3578 msgstr ""
3579
3580 #. type: verbatim
3581 #: ../examples/guestfs-recipes.pod:164
3582 #, no-wrap
3583 msgid ""
3584 " set -e\n"
3585 " \n"
3586 msgstr ""
3587
3588 #. type: verbatim
3589 #: ../examples/guestfs-recipes.pod:166
3590 #, no-wrap
3591 msgid ""
3592 " vm=\"$1\"\n"
3593 " dir=/home\n"
3594 " \n"
3595 msgstr ""
3596
3597 #. type: verbatim
3598 #: ../examples/guestfs-recipes.pod:169
3599 #, no-wrap
3600 msgid ""
3601 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
3602 " \n"
3603 msgstr ""
3604
3605 #. type: verbatim
3606 #: ../examples/guestfs-recipes.pod:171
3607 #, no-wrap
3608 msgid ""
3609 " for d in $(guestfish --remote ls \"$dir\"); do\n"
3610 "     echo -n \"$dir/$d\"\n"
3611 "     echo -ne '\\t'\n"
3612 "     guestfish --remote du \"$dir/$d\";\n"
3613 " done | sort -nr -k 2\n"
3614 " \n"
3615 msgstr ""
3616
3617 #. type: verbatim
3618 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
3619 #, no-wrap
3620 msgid ""
3621 " guestfish --remote exit\n"
3622 "\n"
3623 msgstr ""
3624
3625 #. type: =head1
3626 #: ../examples/guestfs-recipes.pod:179
3627 msgid "Get DHCP address from a VM"
3628 msgstr ""
3629
3630 #. type: textblock
3631 #: ../examples/guestfs-recipes.pod:181
3632 msgid ""
3633 "The link below explains the many different possible techniques for getting "
3634 "the last assigned DHCP address of a virtual machine."
3635 msgstr ""
3636
3637 #. type: textblock
3638 #: ../examples/guestfs-recipes.pod:184
3639 msgid ""
3640 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
3641 "a-virtual-machine-disk-image/#content"
3642 msgstr ""
3643
3644 #. type: textblock
3645 #: ../examples/guestfs-recipes.pod:186
3646 msgid ""
3647 "In the libguestfs source examples directory you will find the latest version "
3648 "of the C<virt-dhcp-address.c> program."
3649 msgstr ""
3650
3651 #. type: =head1
3652 #: ../examples/guestfs-recipes.pod:189
3653 msgid "Get the operating system product name string"
3654 msgstr ""
3655
3656 #. type: textblock
3657 #: ../examples/guestfs-recipes.pod:191
3658 msgid "Save the following script into a file called C<product-name.sh>:"
3659 msgstr ""
3660
3661 #. type: verbatim
3662 #: ../examples/guestfs-recipes.pod:193
3663 #, no-wrap
3664 msgid ""
3665 " #!/bin/sh -\n"
3666 " set -e\n"
3667 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
3668 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
3669 " guestfish --remote inspect-get-product-name \"$root\"\n"
3670 " guestfish --remote exit\n"
3671 "\n"
3672 msgstr ""
3673
3674 #. type: textblock
3675 #: ../examples/guestfs-recipes.pod:200
3676 msgid "Make the script executable and run it on a named guest:"
3677 msgstr ""
3678
3679 #. type: verbatim
3680 #: ../examples/guestfs-recipes.pod:202
3681 #, no-wrap
3682 msgid ""
3683 " # product-name.sh RHEL60x64\n"
3684 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
3685 "\n"
3686 msgstr ""
3687
3688 #. type: textblock
3689 #: ../examples/guestfs-recipes.pod:205
3690 msgid ""
3691 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
3692 "C<xpath> command line tool or from your favourite programming language:"
3693 msgstr ""
3694
3695 #. type: verbatim
3696 #: ../examples/guestfs-recipes.pod:209
3697 #, no-wrap
3698 msgid ""
3699 " # virt-inspector RHEL60x64 > xml\n"
3700 " # xpath '//product_name' < xml\n"
3701 " Found 1 nodes:\n"
3702 " -- NODE --\n"
3703 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
3704 "\n"
3705 msgstr ""
3706
3707 #. type: =head1
3708 #: ../examples/guestfs-recipes.pod:215
3709 msgid "Get the default boot kernel for a Linux VM"
3710 msgstr ""
3711
3712 #. type: textblock
3713 #: ../examples/guestfs-recipes.pod:217
3714 msgid ""
3715 "The link below contains a program to print the default boot kernel for a "
3716 "Linux VM."
3717 msgstr ""
3718
3719 #. type: textblock
3720 #: ../examples/guestfs-recipes.pod:220
3721 msgid ""
3722 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
3723 "kernel-for-a-vm/#content"
3724 msgstr ""
3725
3726 #. type: textblock
3727 #: ../examples/guestfs-recipes.pod:222
3728 msgid ""
3729 "It uses Augeas, and the technique is generally applicable for many different "
3730 "tasks, such as:"
3731 msgstr ""
3732
3733 #. type: textblock
3734 #: ../examples/guestfs-recipes.pod:229
3735 msgid "listing the user accounts in the guest"
3736 msgstr ""
3737
3738 #. type: textblock
3739 #: ../examples/guestfs-recipes.pod:233
3740 msgid "what repositories is it configured to use"
3741 msgstr ""
3742
3743 #. type: textblock
3744 #: ../examples/guestfs-recipes.pod:237
3745 msgid "what NTP servers does it connect to"
3746 msgstr ""
3747
3748 #. type: textblock
3749 #: ../examples/guestfs-recipes.pod:241
3750 msgid "what were the boot messages last time it booted"
3751 msgstr ""
3752
3753 #. type: textblock
3754 #: ../examples/guestfs-recipes.pod:245
3755 msgid "listing who was logged in recently"
3756 msgstr ""
3757
3758 #. type: textblock
3759 #: ../examples/guestfs-recipes.pod:249
3760 msgid "http://augeas.net/"
3761 msgstr ""
3762
3763 #. type: =head1
3764 #: ../examples/guestfs-recipes.pod:251
3765 msgid "Install RPMs in a guest"
3766 msgstr ""
3767
3768 #. type: textblock
3769 #: ../examples/guestfs-recipes.pod:253
3770 msgid ""
3771 "The link below contains a method to install RPMs in a guest.  In fact the "
3772 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
3773 "installs them next time the guest is booted.  You could use this technique "
3774 "to install vital security updates in an offline guest."
3775 msgstr ""
3776
3777 #. type: textblock
3778 #: ../examples/guestfs-recipes.pod:259
3779 msgid ""
3780 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
3781 msgstr ""
3782
3783 #. type: =head1
3784 #: ../examples/guestfs-recipes.pod:261
3785 msgid "List applications installed in a VM"
3786 msgstr ""
3787
3788 #. type: textblock
3789 #: ../examples/guestfs-recipes.pod:263
3790 msgid "Save the following to a file C<list-apps.sh>:"
3791 msgstr ""
3792
3793 #. type: verbatim
3794 #: ../examples/guestfs-recipes.pod:265
3795 #, no-wrap
3796 msgid ""
3797 " #!/bin/sh -\n"
3798 " set -e\n"
3799 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
3800 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
3801 " guestfish --remote inspect-list-applications \"$root\"\n"
3802 " guestfish --remote exit\n"
3803 "\n"
3804 msgstr ""
3805
3806 #. type: textblock
3807 #: ../examples/guestfs-recipes.pod:272
3808 msgid ""
3809 "Make the file executable and then you can run it on any named virtual "
3810 "machine:"
3811 msgstr ""
3812
3813 #. type: verbatim
3814 #: ../examples/guestfs-recipes.pod:275
3815 #, no-wrap
3816 msgid ""
3817 " # list-apps.sh WinGuest\n"
3818 " [0] = {\n"
3819 "   app_name: Mozilla Firefox (3.6.12)\n"
3820 "   app_display_name: Mozilla Firefox (3.6.12)\n"
3821 "   app_epoch: 0\n"
3822 "   app_version: 3.6.12 (en-GB)\n"
3823 "   app_release:\n"
3824 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
3825 "   app_trans_path:\n"
3826 "   app_publisher: Mozilla\n"
3827 "   app_url: http://www.mozilla.com/en-GB/\n"
3828 "   app_source_package:\n"
3829 "   app_summary:\n"
3830 "   app_description: Mozilla Firefox\n"
3831 " }\n"
3832 " [1] = {\n"
3833 "   app_name: VLC media player\n"
3834 "   app_display_name: VLC media player 1.1.5\n"
3835 "   app_epoch: 0\n"
3836 "   app_version: 1.1.5\n"
3837 "   app_release:\n"
3838 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
3839 "   app_trans_path:\n"
3840 "   app_publisher: VideoLAN\n"
3841 "   app_url: http://www.videolan.org/\n"
3842 "   app_source_package:\n"
3843 "   app_summary:\n"
3844 "   app_description:\n"
3845 " }\n"
3846 "\n"
3847 msgstr ""
3848
3849 #. type: textblock
3850 #: ../examples/guestfs-recipes.pod:305
3851 msgid ""
3852 "If you want to run the script on disk images (instead of libvirt virtual "
3853 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
3854 ">."
3855 msgstr ""
3856
3857 #. type: =head1
3858 #: ../examples/guestfs-recipes.pod:309
3859 msgid "List files and directories in a VM"
3860 msgstr ""
3861
3862 #. type: textblock
3863 #: ../examples/guestfs-recipes.pod:311
3864 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
3865 msgstr ""
3866
3867 #. type: verbatim
3868 #: ../examples/guestfs-recipes.pod:313
3869 #, no-wrap
3870 msgid ""
3871 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
3872 "\n"
3873 msgstr ""
3874
3875 #. type: =head1
3876 #: ../examples/guestfs-recipes.pod:315
3877 msgid "List services in a Windows VM"
3878 msgstr ""
3879
3880 #. type: textblock
3881 #: ../examples/guestfs-recipes.pod:317
3882 msgid ""
3883 "The link below contains a script that can be used to list out the services "
3884 "from a Windows VM, and whether those services run at boot time or are loaded "
3885 "on demand."
3886 msgstr ""
3887
3888 #. type: textblock
3889 #: ../examples/guestfs-recipes.pod:321
3890 msgid ""
3891 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
3892 "#content"
3893 msgstr ""
3894
3895 #. type: =head1
3896 #: ../examples/guestfs-recipes.pod:323
3897 msgid "Make a disk image sparse"
3898 msgstr ""
3899
3900 #. type: textblock
3901 #: ../examples/guestfs-recipes.pod:325
3902 msgid ""
3903 "The link below contains some guides for making a disk image sparse (or "
3904 "reintroducing sparseness)."
3905 msgstr ""
3906
3907 #. type: textblock
3908 #: ../examples/guestfs-recipes.pod:328
3909 msgid ""
3910 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
3911 msgstr ""
3912
3913 #. type: =head1
3914 #: ../examples/guestfs-recipes.pod:330
3915 msgid "Monitor disk usage over time"
3916 msgstr ""
3917
3918 #. type: textblock
3919 #: ../examples/guestfs-recipes.pod:332
3920 msgid ""
3921 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
3922 "The link below contains a guide."
3923 msgstr ""
3924
3925 #. type: textblock
3926 #: ../examples/guestfs-recipes.pod:335
3927 msgid "http://virt-tools.org/learning/advanced-virt-df/"
3928 msgstr ""
3929
3930 #. type: =head1
3931 #: ../examples/guestfs-recipes.pod:337
3932 msgid "Reading the Windows Event Log from Windows Vista (or later)"
3933 msgstr ""
3934
3935 #. type: textblock
3936 #: ../examples/guestfs-recipes.pod:339
3937 msgid ""
3938 "L<guestfish(1)> plus the tools described in the link below can be used to "
3939 "read out the Windows Event Log from any virtual machine running Windows "
3940 "Vista or a later version."
3941 msgstr ""
3942
3943 #. type: textblock
3944 #: ../examples/guestfs-recipes.pod:343
3945 msgid ""
3946 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
3947 "guestfish/#content"
3948 msgstr ""
3949
3950 #. type: =head1
3951 #: ../examples/guestfs-recipes.pod:345
3952 msgid "Remove root password (Linux)"
3953 msgstr ""
3954
3955 #. type: textblock
3956 #: ../examples/guestfs-recipes.pod:347
3957 msgid ""
3958 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
3959 "files.  One use is to remove the root password from a Linux guest:"
3960 msgstr ""
3961
3962 #. type: verbatim
3963 #: ../examples/guestfs-recipes.pod:350
3964 #, no-wrap
3965 msgid ""
3966 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3967 "\n"
3968 msgstr ""
3969
3970 #. type: =head1
3971 #: ../examples/guestfs-recipes.pod:352
3972 msgid "Remove Administrator password (Windows)"
3973 msgstr ""
3974
3975 #. type: textblock
3976 #: ../examples/guestfs-recipes.pod:354
3977 msgid ""
3978 "The link below contains one technique for removing the Administrator "
3979 "password from a Windows VM, or to be more precise, it gives you a command "
3980 "prompt the next time you log in which you can use to bypass any security:"
3981 msgstr ""
3982
3983 #. type: textblock
3984 #: ../examples/guestfs-recipes.pod:359
3985 msgid ""
3986 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
3987 "administrator-password-with-guestfish/"
3988 msgstr ""
3989
3990 #. type: =head1
3991 #: ../examples/guestfs-recipes.pod:361
3992 msgid "Unpack a live CD"
3993 msgstr ""
3994
3995 #. type: textblock
3996 #: ../examples/guestfs-recipes.pod:363
3997 msgid ""
3998 "Linux live CDs often contain multiple layers of disk images wrapped like a "
3999 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
4000 "layers, as outlined in the guide below."
4001 msgstr ""
4002
4003 #. type: textblock
4004 #: ../examples/guestfs-recipes.pod:367
4005 msgid ""
4006 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
4007 "cd/#content"
4008 msgstr ""
4009
4010 #. type: =head1
4011 #: ../examples/guestfs-recipes.pod:369
4012 msgid "Uploading and downloading files"
4013 msgstr ""
4014
4015 #. type: textblock
4016 #: ../examples/guestfs-recipes.pod:371
4017 msgid ""
4018 "The link below contains general tips on uploading (copying in)  and "
4019 "downloading (copying out) files from VMs."
4020 msgstr ""
4021
4022 #. type: textblock
4023 #: ../examples/guestfs-recipes.pod:374
4024 msgid ""
4025 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
4026 msgstr ""
4027
4028 #. type: =head1
4029 #: ../examples/guestfs-recipes.pod:376
4030 msgid "Use libguestfs tools on VMware ESX guests"
4031 msgstr ""
4032
4033 #. type: textblock
4034 #: ../examples/guestfs-recipes.pod:378
4035 msgid ""
4036 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
4037 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
4038 msgstr ""
4039
4040 #. type: textblock
4041 #: ../examples/guestfs-recipes.pod:382
4042 msgid ""
4043 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
4044 "guests/#content"
4045 msgstr ""
4046
4047 #. type: textblock
4048 #: ../examples/guestfs-recipes.pod:386
4049 msgid ""
4050 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
4051 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby"
4052 "(3)>, L<http://libguestfs.org/>."
4053 msgstr ""
4054
4055 #. type: textblock
4056 #: ../examples/guestfs-recipes.pod:402
4057 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
4058 msgstr ""
4059
4060 #. type: =head2
4061 #: ../fish/guestfish-actions.pod:1
4062 msgid "add-cdrom"
4063 msgstr ""
4064
4065 #. type: verbatim
4066 #: ../fish/guestfish-actions.pod:3
4067 #, no-wrap
4068 msgid ""
4069 " add-cdrom filename\n"
4070 "\n"
4071 msgstr ""
4072
4073 #. type: textblock
4074 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
4075 msgid "This function adds a virtual CD-ROM disk image to the guest."
4076 msgstr ""
4077
4078 #. type: textblock
4079 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
4080 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
4081 msgstr ""
4082
4083 #. type: textblock
4084 #: ../fish/guestfish-actions.pod:15
4085 msgid ""
4086 "This call checks for the existence of C<filename>.  This stops you from "
4087 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4088 "and C<http:> URLs.  To specify those, use the general L</config> call "
4089 "instead."
4090 msgstr ""
4091
4092 #. type: textblock
4093 #: ../fish/guestfish-actions.pod:22
4094 msgid ""
4095 "If you just want to add an ISO file (often you use this as an efficient way "
4096 "to transfer large files into the guest), then you should probably use L</add-"
4097 "drive-ro> instead."
4098 msgstr ""
4099
4100 #. type: textblock
4101 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163
4102 #: ../fish/guestfish-actions.pod:177
4103 msgid ""
4104 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
4105 "instead."
4106 msgstr ""
4107
4108 #. type: textblock
4109 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166
4110 #: ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:991
4111 #: ../fish/guestfish-actions.pod:1351 ../fish/guestfish-actions.pod:1365
4112 #: ../fish/guestfish-actions.pod:3090 ../fish/guestfish-actions.pod:3297
4113 #: ../fish/guestfish-actions.pod:3411 ../fish/guestfish-actions.pod:3459
4114 #: ../fish/guestfish-actions.pod:4360 ../fish/guestfish-actions.pod:4383
4115 #: ../fish/guestfish-actions.pod:4405 ../fish/guestfish-actions.pod:4443
4116 #: ../fish/guestfish-actions.pod:5092 ../fish/guestfish-actions.pod:5198
4117 #: ../src/guestfs-actions.pod:10 ../src/guestfs-actions.pod:252
4118 #: ../src/guestfs-actions.pod:273 ../src/guestfs-actions.pod:1508
4119 #: ../src/guestfs-actions.pod:2007 ../src/guestfs-actions.pod:2028
4120 #: ../src/guestfs-actions.pod:4623 ../src/guestfs-actions.pod:4926
4121 #: ../src/guestfs-actions.pod:5155 ../src/guestfs-actions.pod:5255
4122 #: ../src/guestfs-actions.pod:6521 ../src/guestfs-actions.pod:6565
4123 #: ../src/guestfs-actions.pod:6599 ../src/guestfs-actions.pod:6662
4124 #: ../src/guestfs-actions.pod:7594 ../src/guestfs-actions.pod:7703
4125 #: ../src/guestfs-actions.pod:7886
4126 msgid ""
4127 "Deprecated functions will not be removed from the API, but the fact that "
4128 "they are deprecated indicates that there are problems with correct use of "
4129 "these functions."
4130 msgstr ""
4131
4132 #. type: =head2
4133 #: ../fish/guestfish-actions.pod:35
4134 msgid "add-domain"
4135 msgstr ""
4136
4137 #. type: =head2
4138 #: ../fish/guestfish-actions.pod:37
4139 msgid "domain"
4140 msgstr ""
4141
4142 #. type: verbatim
4143 #: ../fish/guestfish-actions.pod:39
4144 #, no-wrap
4145 msgid ""
4146 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
4147 "\n"
4148 msgstr ""
4149
4150 #. type: textblock
4151 #: ../fish/guestfish-actions.pod:41
4152 msgid ""
4153 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4154 "It works by connecting to libvirt, requesting the domain and domain XML from "
4155 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
4156 msgstr ""
4157
4158 #. type: textblock
4159 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
4160 msgid ""
4161 "The number of disks added is returned.  This operation is atomic: if an "
4162 "error is returned, then no disks are added."
4163 msgstr ""
4164
4165 #. type: textblock
4166 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
4167 msgid ""
4168 "This function does some minimal checks to make sure the libvirt domain is "
4169 "not running (unless C<readonly> is true).  In a future version we will try "
4170 "to acquire the libvirt lock on each disk."
4171 msgstr ""
4172
4173 #. type: textblock
4174 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
4175 msgid ""
4176 "Disks must be accessible locally.  This often means that adding disks from a "
4177 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4178 "unless those disks are accessible via the same device path locally too."
4179 msgstr ""
4180
4181 #. type: textblock
4182 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
4183 msgid ""
4184 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4185 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
4186 "libvirt URI (or one set through an environment variable, see the libvirt "
4187 "documentation for full details)."
4188 msgstr ""
4189
4190 #. type: textblock
4191 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
4192 msgid ""
4193 "The optional C<live> flag controls whether this call will try to connect to "
4194 "a running virtual machine C<guestfsd> process if it sees a suitable "
4195 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
4196 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
4197 "DAEMONS> for more information."
4198 msgstr ""
4199
4200 #. type: textblock
4201 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
4202 msgid ""
4203 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
4204 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
4205 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
4206 "as usual."
4207 msgstr ""
4208
4209 #. type: textblock
4210 #: ../fish/guestfish-actions.pod:76
4211 msgid ""
4212 "The other optional parameters are passed directly through to L</add-drive-"
4213 "opts>."
4214 msgstr ""
4215
4216 #. type: textblock
4217 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
4218 #: ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:1973
4219 #: ../fish/guestfish-actions.pod:3139 ../fish/guestfish-actions.pod:3312
4220 #: ../fish/guestfish-actions.pod:3447
4221 msgid ""
4222 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
4223 msgstr ""
4224
4225 #. type: =head2
4226 #: ../fish/guestfish-actions.pod:81
4227 msgid "add-drive"
4228 msgstr ""
4229
4230 #. type: verbatim
4231 #: ../fish/guestfish-actions.pod:83
4232 #, no-wrap
4233 msgid ""
4234 " add-drive filename\n"
4235 "\n"
4236 msgstr ""
4237
4238 #. type: textblock
4239 #: ../fish/guestfish-actions.pod:85
4240 msgid ""
4241 "This function is the equivalent of calling L</add-drive-opts> with no "
4242 "optional parameters, so the disk is added writable, with the format being "
4243 "detected automatically."
4244 msgstr ""
4245
4246 #. type: textblock
4247 #: ../fish/guestfish-actions.pod:89
4248 msgid ""
4249 "Automatic detection of the format opens you up to a potential security hole "
4250 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4251 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4252 "you should think about replacing calls to this function with calls to L</add-"
4253 "drive-opts>, and specifying the format."
4254 msgstr ""
4255
4256 #. type: =head2
4257 #: ../fish/guestfish-actions.pod:96
4258 msgid "add-drive-opts"
4259 msgstr ""
4260
4261 #. type: =head2
4262 #: ../fish/guestfish-actions.pod:98
4263 msgid "add"
4264 msgstr ""
4265
4266 #. type: verbatim
4267 #: ../fish/guestfish-actions.pod:100
4268 #, no-wrap
4269 msgid ""
4270 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
4271 "\n"
4272 msgstr ""
4273
4274 #. type: textblock
4275 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
4276 msgid ""
4277 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4278 "The first time you call this function, the disk appears as C</dev/sda>, the "
4279 "second time as C</dev/sdb>, and so on."
4280 msgstr ""
4281
4282 #. type: textblock
4283 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
4284 msgid ""
4285 "You don't necessarily need to be root when using libguestfs.  However you "
4286 "obviously do need sufficient permissions to access the filename for whatever "
4287 "operations you want to perform (ie. read access if you just want to read the "
4288 "image or write access if you want to modify the image)."
4289 msgstr ""
4290
4291 #. type: textblock
4292 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
4293 msgid "This call checks that C<filename> exists."
4294 msgstr ""
4295
4296 #. type: textblock
4297 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3101
4298 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4660
4299 msgid "The optional arguments are:"
4300 msgstr ""
4301
4302 #. type: =item
4303 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
4304 msgid "C<readonly>"
4305 msgstr ""
4306
4307 #. type: textblock
4308 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
4309 msgid ""
4310 "If true then the image is treated as read-only.  Writes are still allowed, "
4311 "but they are stored in a temporary snapshot overlay which is discarded at "
4312 "the end.  The disk that you add is not modified."
4313 msgstr ""
4314
4315 #. type: =item
4316 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
4317 msgid "C<format>"
4318 msgstr ""
4319
4320 #. type: textblock
4321 #: ../fish/guestfish-actions.pod:127
4322 msgid ""
4323 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
4324 "add-drive-ro>) then the format is automatically detected.  Possible formats "
4325 "include C<raw> and C<qcow2>."
4326 msgstr ""
4327
4328 #. type: textblock
4329 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
4330 msgid ""
4331 "Automatic detection of the format opens you up to a potential security hole "
4332 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4333 "RHBZ#642934.  Specifying the format closes this security hole."
4334 msgstr ""
4335
4336 #. type: =item
4337 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
4338 msgid "C<iface>"
4339 msgstr ""
4340
4341 #. type: textblock
4342 #: ../fish/guestfish-actions.pod:138
4343 msgid ""
4344 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
4345 "add-drive-with-if> call (q.v.)"
4346 msgstr ""
4347
4348 #. type: =head2
4349 #: ../fish/guestfish-actions.pod:145
4350 msgid "add-drive-ro"
4351 msgstr ""
4352
4353 #. type: =head2
4354 #: ../fish/guestfish-actions.pod:147
4355 msgid "add-ro"
4356 msgstr ""
4357
4358 #. type: verbatim
4359 #: ../fish/guestfish-actions.pod:149
4360 #, no-wrap
4361 msgid ""
4362 " add-drive-ro filename\n"
4363 "\n"
4364 msgstr ""
4365
4366 #. type: textblock
4367 #: ../fish/guestfish-actions.pod:151
4368 msgid ""
4369 "This function is the equivalent of calling L</add-drive-opts> with the "
4370 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
4371 "is added read-only, with the format being detected automatically."
4372 msgstr ""
4373
4374 #. type: =head2
4375 #: ../fish/guestfish-actions.pod:156
4376 msgid "add-drive-ro-with-if"
4377 msgstr ""
4378
4379 #. type: verbatim
4380 #: ../fish/guestfish-actions.pod:158
4381 #, no-wrap
4382 msgid ""
4383 " add-drive-ro-with-if filename iface\n"
4384 "\n"
4385 msgstr ""
4386
4387 #. type: textblock
4388 #: ../fish/guestfish-actions.pod:160
4389 msgid ""
4390 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
4391 "interface emulation to use at run time."
4392 msgstr ""
4393
4394 #. type: =head2
4395 #: ../fish/guestfish-actions.pod:170
4396 msgid "add-drive-with-if"
4397 msgstr ""
4398
4399 #. type: verbatim
4400 #: ../fish/guestfish-actions.pod:172
4401 #, no-wrap
4402 msgid ""
4403 " add-drive-with-if filename iface\n"
4404 "\n"
4405 msgstr ""
4406
4407 #. type: textblock
4408 #: ../fish/guestfish-actions.pod:174
4409 msgid ""
4410 "This is the same as L</add-drive> but it allows you to specify the QEMU "
4411 "interface emulation to use at run time."
4412 msgstr ""
4413
4414 #. type: =head2
4415 #: ../fish/guestfish-actions.pod:184
4416 msgid "aug-clear"
4417 msgstr ""
4418
4419 #. type: verbatim
4420 #: ../fish/guestfish-actions.pod:186
4421 #, no-wrap
4422 msgid ""
4423 " aug-clear augpath\n"
4424 "\n"
4425 msgstr ""
4426
4427 #. type: textblock
4428 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
4429 msgid ""
4430 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4431 "L<augtool(1)> C<clear> command."
4432 msgstr ""
4433
4434 #. type: =head2
4435 #: ../fish/guestfish-actions.pod:191
4436 msgid "aug-close"
4437 msgstr ""
4438
4439 #. type: verbatim
4440 #: ../fish/guestfish-actions.pod:193
4441 #, no-wrap
4442 msgid ""
4443 " aug-close\n"
4444 "\n"
4445 msgstr ""
4446
4447 #. type: textblock
4448 #: ../fish/guestfish-actions.pod:195
4449 msgid ""
4450 "Close the current Augeas handle and free up any resources used by it.  After "
4451 "calling this, you have to call L</aug-init> again before you can use any "
4452 "other Augeas functions."
4453 msgstr ""
4454
4455 #. type: =head2
4456 #: ../fish/guestfish-actions.pod:200
4457 msgid "aug-defnode"
4458 msgstr ""
4459
4460 #. type: verbatim
4461 #: ../fish/guestfish-actions.pod:202
4462 #, no-wrap
4463 msgid ""
4464 " aug-defnode name expr val\n"
4465 "\n"
4466 msgstr ""
4467
4468 #. type: textblock
4469 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
4470 msgid ""
4471 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4472 msgstr ""
4473
4474 #. type: textblock
4475 #: ../fish/guestfish-actions.pod:207
4476 msgid ""
4477 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4478 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
4479 "containing that single node."
4480 msgstr ""
4481
4482 #. type: textblock
4483 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
4484 msgid ""
4485 "On success this returns a pair containing the number of nodes in the "
4486 "nodeset, and a boolean flag if a node was created."
4487 msgstr ""
4488
4489 #. type: =head2
4490 #: ../fish/guestfish-actions.pod:215
4491 msgid "aug-defvar"
4492 msgstr ""
4493
4494 #. type: verbatim
4495 #: ../fish/guestfish-actions.pod:217
4496 #, no-wrap
4497 msgid ""
4498 " aug-defvar name expr\n"
4499 "\n"
4500 msgstr ""
4501
4502 #. type: textblock
4503 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
4504 msgid ""
4505 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4506 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4507 msgstr ""
4508
4509 #. type: textblock
4510 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
4511 msgid ""
4512 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4513 "evaluates to something which is not a nodeset."
4514 msgstr ""
4515
4516 #. type: =head2
4517 #: ../fish/guestfish-actions.pod:226
4518 msgid "aug-get"
4519 msgstr ""
4520
4521 #. type: verbatim
4522 #: ../fish/guestfish-actions.pod:228
4523 #, no-wrap
4524 msgid ""
4525 " aug-get augpath\n"
4526 "\n"
4527 msgstr ""
4528
4529 #. type: textblock
4530 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
4531 msgid ""
4532 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4533 "node, the C<value> is returned."
4534 msgstr ""
4535
4536 #. type: =head2
4537 #: ../fish/guestfish-actions.pod:233
4538 msgid "aug-init"
4539 msgstr ""
4540
4541 #. type: verbatim
4542 #: ../fish/guestfish-actions.pod:235
4543 #, no-wrap
4544 msgid ""
4545 " aug-init root flags\n"
4546 "\n"
4547 msgstr ""
4548
4549 #. type: textblock
4550 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
4551 msgid ""
4552 "Create a new Augeas handle for editing configuration files.  If there was "
4553 "any previous Augeas handle associated with this guestfs session, then it is "
4554 "closed."
4555 msgstr ""
4556
4557 #. type: textblock
4558 #: ../fish/guestfish-actions.pod:241
4559 msgid "You must call this before using any other L</aug-*> commands."
4560 msgstr ""
4561
4562 #. type: textblock
4563 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
4564 msgid ""
4565 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4566 msgstr ""
4567
4568 #. type: textblock
4569 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
4570 msgid ""
4571 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4572 "logical I<or> of the following integers:"
4573 msgstr ""
4574
4575 #. type: =item
4576 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
4577 msgid "C<AUG_SAVE_BACKUP> = 1"
4578 msgstr ""
4579
4580 #. type: textblock
4581 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
4582 msgid "Keep the original file with a C<.augsave> extension."
4583 msgstr ""
4584
4585 #. type: =item
4586 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
4587 msgid "C<AUG_SAVE_NEWFILE> = 2"
4588 msgstr ""
4589
4590 #. type: textblock
4591 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
4592 msgid ""
4593 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4594 "original.  Overrides C<AUG_SAVE_BACKUP>."
4595 msgstr ""
4596
4597 #. type: =item
4598 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
4599 msgid "C<AUG_TYPE_CHECK> = 4"
4600 msgstr ""
4601
4602 #. type: textblock
4603 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
4604 msgid "Typecheck lenses."
4605 msgstr ""
4606
4607 #. type: textblock
4608 #: ../fish/guestfish-actions.pod:266
4609 msgid ""
4610 "This option is only useful when debugging Augeas lenses.  Use of this option "
4611 "may require additional memory for the libguestfs appliance.  You may need to "
4612 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
4613 msgstr ""
4614
4615 #. type: =item
4616 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
4617 msgid "C<AUG_NO_STDINC> = 8"
4618 msgstr ""
4619
4620 #. type: textblock
4621 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
4622 msgid "Do not use standard load path for modules."
4623 msgstr ""
4624
4625 #. type: =item
4626 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
4627 msgid "C<AUG_SAVE_NOOP> = 16"
4628 msgstr ""
4629
4630 #. type: textblock
4631 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
4632 msgid "Make save a no-op, just record what would have been changed."
4633 msgstr ""
4634
4635 #. type: =item
4636 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
4637 msgid "C<AUG_NO_LOAD> = 32"
4638 msgstr ""
4639
4640 #. type: textblock
4641 #: ../fish/guestfish-actions.pod:281
4642 msgid "Do not load the tree in L</aug-init>."
4643 msgstr ""
4644
4645 #. type: textblock
4646 #: ../fish/guestfish-actions.pod:285
4647 msgid "To close the handle, you can call L</aug-close>."
4648 msgstr ""
4649
4650 #. type: textblock
4651 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
4652 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4653 msgstr ""
4654
4655 #. type: =head2
4656 #: ../fish/guestfish-actions.pod:289
4657 msgid "aug-insert"
4658 msgstr ""
4659
4660 #. type: verbatim
4661 #: ../fish/guestfish-actions.pod:291
4662 #, no-wrap
4663 msgid ""
4664 " aug-insert augpath label true|false\n"
4665 "\n"
4666 msgstr ""
4667
4668 #. type: textblock
4669 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
4670 msgid ""
4671 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4672 "or after C<path> (depending on the boolean flag C<before>)."
4673 msgstr ""
4674
4675 #. type: textblock
4676 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
4677 msgid ""
4678 "C<path> must match exactly one existing node in the tree, and C<label> must "
4679 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4680 msgstr ""
4681
4682 #. type: =head2
4683 #: ../fish/guestfish-actions.pod:301
4684 msgid "aug-load"
4685 msgstr ""
4686
4687 #. type: verbatim
4688 #: ../fish/guestfish-actions.pod:303
4689 #, no-wrap
4690 msgid ""
4691 " aug-load\n"
4692 "\n"
4693 msgstr ""
4694
4695 #. type: textblock
4696 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
4697 msgid "Load files into the tree."
4698 msgstr ""
4699
4700 #. type: textblock
4701 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
4702 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4703 msgstr ""
4704
4705 #. type: =head2
4706 #: ../fish/guestfish-actions.pod:310
4707 msgid "aug-ls"
4708 msgstr ""
4709
4710 #. type: verbatim
4711 #: ../fish/guestfish-actions.pod:312
4712 #, no-wrap
4713 msgid ""
4714 " aug-ls augpath\n"
4715 "\n"
4716 msgstr ""
4717
4718 #. type: textblock
4719 #: ../fish/guestfish-actions.pod:314
4720 msgid ""
4721 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
4722 "resulting nodes into alphabetical order."
4723 msgstr ""
4724
4725 #. type: =head2
4726 #: ../fish/guestfish-actions.pod:317
4727 msgid "aug-match"
4728 msgstr ""
4729
4730 #. type: verbatim
4731 #: ../fish/guestfish-actions.pod:319
4732 #, no-wrap
4733 msgid ""
4734 " aug-match augpath\n"
4735 "\n"
4736 msgstr ""
4737
4738 #. type: textblock
4739 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
4740 msgid ""
4741 "Returns a list of paths which match the path expression C<path>.  The "
4742 "returned paths are sufficiently qualified so that they match exactly one "
4743 "node in the current tree."
4744 msgstr ""
4745
4746 #. type: =head2
4747 #: ../fish/guestfish-actions.pod:325
4748 msgid "aug-mv"
4749 msgstr ""
4750
4751 #. type: verbatim
4752 #: ../fish/guestfish-actions.pod:327
4753 #, no-wrap
4754 msgid ""
4755 " aug-mv src dest\n"
4756 "\n"
4757 msgstr ""
4758
4759 #. type: textblock
4760 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
4761 msgid ""
4762 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4763 "C<dest> is overwritten if it exists."
4764 msgstr ""
4765
4766 #. type: =head2
4767 #: ../fish/guestfish-actions.pod:332
4768 msgid "aug-rm"
4769 msgstr ""
4770
4771 #. type: verbatim
4772 #: ../fish/guestfish-actions.pod:334
4773 #, no-wrap
4774 msgid ""
4775 " aug-rm augpath\n"
4776 "\n"
4777 msgstr ""
4778
4779 #. type: textblock
4780 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
4781 msgid "Remove C<path> and all of its children."
4782 msgstr ""
4783
4784 #. type: textblock
4785 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
4786 msgid "On success this returns the number of entries which were removed."
4787 msgstr ""
4788
4789 #. type: =head2
4790 #: ../fish/guestfish-actions.pod:340
4791 msgid "aug-save"
4792 msgstr ""
4793
4794 #. type: verbatim
4795 #: ../fish/guestfish-actions.pod:342
4796 #, no-wrap
4797 msgid ""
4798 " aug-save\n"
4799 "\n"
4800 msgstr ""
4801
4802 #. type: textblock
4803 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
4804 msgid "This writes all pending changes to disk."
4805 msgstr ""
4806
4807 #. type: textblock
4808 #: ../fish/guestfish-actions.pod:346
4809 msgid ""
4810 "The flags which were passed to L</aug-init> affect exactly how files are "
4811 "saved."
4812 msgstr ""
4813
4814 #. type: =head2
4815 #: ../fish/guestfish-actions.pod:349
4816 msgid "aug-set"
4817 msgstr ""
4818
4819 #. type: verbatim
4820 #: ../fish/guestfish-actions.pod:351
4821 #, no-wrap
4822 msgid ""
4823 " aug-set augpath val\n"
4824 "\n"
4825 msgstr ""
4826
4827 #. type: textblock
4828 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
4829 msgid "Set the value associated with C<path> to C<val>."
4830 msgstr ""
4831
4832 #. type: textblock
4833 #: ../fish/guestfish-actions.pod:355
4834 msgid ""
4835 "In the Augeas API, it is possible to clear a node by setting the value to "
4836 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
4837 "this call.  Instead you must use the L</aug-clear> call."
4838 msgstr ""
4839
4840 #. type: =head2
4841 #: ../fish/guestfish-actions.pod:360
4842 msgid "available"
4843 msgstr ""
4844
4845 #. type: verbatim
4846 #: ../fish/guestfish-actions.pod:362
4847 #, no-wrap
4848 msgid ""
4849 " available 'groups ...'\n"
4850 "\n"
4851 msgstr ""
4852
4853 #. type: textblock
4854 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
4855 msgid ""
4856 "This command is used to check the availability of some groups of "
4857 "functionality in the appliance, which not all builds of the libguestfs "
4858 "appliance will be able to provide."
4859 msgstr ""
4860
4861 #. type: textblock
4862 #: ../fish/guestfish-actions.pod:368
4863 msgid ""
4864 "The libguestfs groups, and the functions that those groups correspond to, "
4865 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
4866 "runtime by calling L</available-all-groups>."
4867 msgstr ""
4868
4869 #. type: textblock
4870 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
4871 msgid ""
4872 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
4873 "\"]> would check for the availability of the Linux inotify functions and "
4874 "Augeas (configuration file editing) functions."
4875 msgstr ""
4876
4877 #. type: textblock
4878 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
4879 msgid "The command returns no error if I<all> requested groups are available."
4880 msgstr ""
4881
4882 #. type: textblock
4883 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:578
4884 msgid ""
4885 "It fails with an error if one or more of the requested groups is unavailable "
4886 "in the appliance."
4887 msgstr ""
4888
4889 #. type: textblock
4890 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:581
4891 msgid ""
4892 "If an unknown group name is included in the list of groups then an error is "
4893 "always returned."
4894 msgstr ""
4895
4896 #. type: textblock
4897 #: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:584
4898 msgid "I<Notes:>"
4899 msgstr ""
4900
4901 #. type: textblock
4902 #: ../fish/guestfish-actions.pod:392
4903 msgid "You must call L</launch> before calling this function."
4904 msgstr ""
4905
4906 #. type: textblock
4907 #: ../fish/guestfish-actions.pod:394 ../src/guestfs-actions.pod:592
4908 msgid ""
4909 "The reason is because we don't know what groups are supported by the "
4910 "appliance/daemon until it is running and can be queried."
4911 msgstr ""
4912
4913 #. type: textblock
4914 #: ../fish/guestfish-actions.pod:400 ../src/guestfs-actions.pod:598
4915 msgid ""
4916 "If a group of functions is available, this does not necessarily mean that "
4917 "they will work.  You still have to check for errors when calling individual "
4918 "API functions even if they are available."
4919 msgstr ""
4920
4921 #. type: textblock
4922 #: ../fish/guestfish-actions.pod:407 ../src/guestfs-actions.pod:605
4923 msgid ""
4924 "It is usually the job of distro packagers to build complete functionality "
4925 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
4926 "with all requirements satisfied, will support everything."
4927 msgstr ""
4928
4929 #. type: textblock
4930 #: ../fish/guestfish-actions.pod:414
4931 msgid ""
4932 "This call was added in version C<1.0.80>.  In previous versions of "
4933 "libguestfs all you could do would be to speculatively execute a command to "
4934 "find out if the daemon implemented it.  See also L</version>."
4935 msgstr ""
4936
4937 #. type: =head2
4938 #: ../fish/guestfish-actions.pod:421
4939 msgid "available-all-groups"
4940 msgstr ""
4941
4942 #. type: verbatim
4943 #: ../fish/guestfish-actions.pod:423
4944 #, no-wrap
4945 msgid ""
4946 " available-all-groups\n"
4947 "\n"
4948 msgstr ""
4949
4950 #. type: textblock
4951 #: ../fish/guestfish-actions.pod:425
4952 msgid ""
4953 "This command returns a list of all optional groups that this daemon knows "
4954 "about.  Note this returns both supported and unsupported groups.  To find "
4955 "out which ones the daemon can actually support you have to call L</"
4956 "available> on each member of the returned list."
4957 msgstr ""
4958
4959 #. type: textblock
4960 #: ../fish/guestfish-actions.pod:431
4961 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
4962 msgstr ""
4963
4964 #. type: =head2
4965 #: ../fish/guestfish-actions.pod:433
4966 msgid "base64-in"
4967 msgstr ""
4968
4969 #. type: verbatim
4970 #: ../fish/guestfish-actions.pod:435
4971 #, no-wrap
4972 msgid ""
4973 " base64-in (base64file|-) filename\n"
4974 "\n"
4975 msgstr ""
4976
4977 #. type: textblock
4978 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:649
4979 msgid ""
4980 "This command uploads base64-encoded data from C<base64file> to C<filename>."
4981 msgstr ""
4982
4983 #. type: textblock
4984 #: ../fish/guestfish-actions.pod:440 ../fish/guestfish-actions.pod:449
4985 #: ../fish/guestfish-actions.pod:698 ../fish/guestfish-actions.pod:867
4986 #: ../fish/guestfish-actions.pod:886 ../fish/guestfish-actions.pod:1260
4987 #: ../fish/guestfish-actions.pod:4663 ../fish/guestfish-actions.pod:4675
4988 #: ../fish/guestfish-actions.pod:4686 ../fish/guestfish-actions.pod:4697
4989 #: ../fish/guestfish-actions.pod:4749 ../fish/guestfish-actions.pod:4758
4990 #: ../fish/guestfish-actions.pod:4812 ../fish/guestfish-actions.pod:4835
4991 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
4992 msgstr ""
4993
4994 #. type: =head2
4995 #: ../fish/guestfish-actions.pod:442
4996 msgid "base64-out"
4997 msgstr ""
4998
4999 #. type: verbatim
5000 #: ../fish/guestfish-actions.pod:444
5001 #, no-wrap
5002 msgid ""
5003 " base64-out filename (base64file|-)\n"
5004 "\n"
5005 msgstr ""
5006
5007 #. type: textblock
5008 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
5009 msgid ""
5010 "This command downloads the contents of C<filename>, writing it out to local "
5011 "file C<base64file> encoded as base64."
5012 msgstr ""
5013
5014 #. type: =head2
5015 #: ../fish/guestfish-actions.pod:451
5016 msgid "blockdev-flushbufs"
5017 msgstr ""
5018
5019 #. type: verbatim
5020 #: ../fish/guestfish-actions.pod:453
5021 #, no-wrap
5022 msgid ""
5023 " blockdev-flushbufs device\n"
5024 "\n"
5025 msgstr ""
5026
5027 #. type: textblock
5028 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
5029 msgid ""
5030 "This tells the kernel to flush internal buffers associated with C<device>."
5031 msgstr ""
5032
5033 #. type: textblock
5034 #: ../fish/guestfish-actions.pod:458 ../fish/guestfish-actions.pod:469
5035 #: ../fish/guestfish-actions.pod:478 ../fish/guestfish-actions.pod:488
5036 #: ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:513
5037 #: ../fish/guestfish-actions.pod:521 ../fish/guestfish-actions.pod:532
5038 #: ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:548
5039 #: ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:696
5040 #: ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:727
5041 #: ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:764
5042 #: ../src/guestfs-actions.pod:778 ../src/guestfs-actions.pod:796
5043 #: ../src/guestfs-actions.pod:810 ../src/guestfs-actions.pod:824
5044 msgid "This uses the L<blockdev(8)> command."
5045 msgstr ""
5046
5047 #. type: =head2
5048 #: ../fish/guestfish-actions.pod:460
5049 msgid "blockdev-getbsz"
5050 msgstr ""
5051
5052 #. type: verbatim
5053 #: ../fish/guestfish-actions.pod:462
5054 #, no-wrap
5055 msgid ""
5056 " blockdev-getbsz device\n"
5057 "\n"
5058 msgstr ""
5059
5060 #. type: textblock
5061 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
5062 msgid "This returns the block size of a device."
5063 msgstr ""
5064
5065 #. type: textblock
5066 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529
5067 #: ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
5068 msgid ""
5069 "(Note this is different from both I<size in blocks> and I<filesystem block "
5070 "size>)."
5071 msgstr ""
5072
5073 #. type: =head2
5074 #: ../fish/guestfish-actions.pod:471
5075 msgid "blockdev-getro"
5076 msgstr ""
5077
5078 #. type: verbatim
5079 #: ../fish/guestfish-actions.pod:473
5080 #, no-wrap
5081 msgid ""
5082 " blockdev-getro device\n"
5083 "\n"
5084 msgstr ""
5085
5086 #. type: textblock
5087 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
5088 msgid ""
5089 "Returns a boolean indicating if the block device is read-only (true if read-"
5090 "only, false if not)."
5091 msgstr ""
5092
5093 #. type: =head2
5094 #: ../fish/guestfish-actions.pod:480
5095 msgid "blockdev-getsize64"
5096 msgstr ""
5097
5098 #. type: verbatim
5099 #: ../fish/guestfish-actions.pod:482
5100 #, no-wrap
5101 msgid ""
5102 " blockdev-getsize64 device\n"
5103 "\n"
5104 msgstr ""
5105
5106 #. type: textblock
5107 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
5108 msgid "This returns the size of the device in bytes."
5109 msgstr ""
5110
5111 #. type: textblock
5112 #: ../fish/guestfish-actions.pod:486
5113 msgid "See also L</blockdev-getsz>."
5114 msgstr ""
5115
5116 #. type: =head2
5117 #: ../fish/guestfish-actions.pod:490
5118 msgid "blockdev-getss"
5119 msgstr ""
5120
5121 #. type: verbatim
5122 #: ../fish/guestfish-actions.pod:492
5123 #, no-wrap
5124 msgid ""
5125 " blockdev-getss device\n"
5126 "\n"
5127 msgstr ""
5128
5129 #. type: textblock
5130 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
5131 msgid ""
5132 "This returns the size of sectors on a block device.  Usually 512, but can be "
5133 "larger for modern devices."
5134 msgstr ""
5135
5136 #. type: textblock
5137 #: ../fish/guestfish-actions.pod:497
5138 msgid ""
5139 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
5140 msgstr ""
5141
5142 #. type: =head2
5143 #: ../fish/guestfish-actions.pod:502
5144 msgid "blockdev-getsz"
5145 msgstr ""
5146
5147 #. type: verbatim
5148 #: ../fish/guestfish-actions.pod:504
5149 #, no-wrap
5150 msgid ""
5151 " blockdev-getsz device\n"
5152 "\n"
5153 msgstr ""
5154
5155 #. type: textblock
5156 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
5157 msgid ""
5158 "This returns the size of the device in units of 512-byte sectors (even if "
5159 "the sectorsize isn't 512 bytes ... weird)."
5160 msgstr ""
5161
5162 #. type: textblock
5163 #: ../fish/guestfish-actions.pod:509
5164 msgid ""
5165 "See also L</blockdev-getss> for the real sector size of the device, and L</"
5166 "blockdev-getsize64> for the more useful I<size in bytes>."
5167 msgstr ""
5168
5169 #. type: =head2
5170 #: ../fish/guestfish-actions.pod:515
5171 msgid "blockdev-rereadpt"
5172 msgstr ""
5173
5174 #. type: verbatim
5175 #: ../fish/guestfish-actions.pod:517
5176 #, no-wrap
5177 msgid ""
5178 " blockdev-rereadpt device\n"
5179 "\n"
5180 msgstr ""
5181
5182 #. type: textblock
5183 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
5184 msgid "Reread the partition table on C<device>."
5185 msgstr ""
5186
5187 #. type: =head2
5188 #: ../fish/guestfish-actions.pod:523
5189 msgid "blockdev-setbsz"
5190 msgstr ""
5191
5192 #. type: verbatim
5193 #: ../fish/guestfish-actions.pod:525
5194 #, no-wrap
5195 msgid ""
5196 " blockdev-setbsz device blocksize\n"
5197 "\n"
5198 msgstr ""
5199
5200 #. type: textblock
5201 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
5202 msgid "This sets the block size of a device."
5203 msgstr ""
5204
5205 #. type: =head2
5206 #: ../fish/guestfish-actions.pod:534
5207 msgid "blockdev-setro"
5208 msgstr ""
5209
5210 #. type: verbatim
5211 #: ../fish/guestfish-actions.pod:536
5212 #, no-wrap
5213 msgid ""
5214 " blockdev-setro device\n"
5215 "\n"
5216 msgstr ""
5217
5218 #. type: textblock
5219 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
5220 msgid "Sets the block device named C<device> to read-only."
5221 msgstr ""
5222
5223 #. type: =head2
5224 #: ../fish/guestfish-actions.pod:542
5225 msgid "blockdev-setrw"
5226 msgstr ""
5227
5228 #. type: verbatim
5229 #: ../fish/guestfish-actions.pod:544
5230 #, no-wrap
5231 msgid ""
5232 " blockdev-setrw device\n"
5233 "\n"
5234 msgstr ""
5235
5236 #. type: textblock
5237 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
5238 msgid "Sets the block device named C<device> to read-write."
5239 msgstr ""
5240
5241 #. type: =head2
5242 #: ../fish/guestfish-actions.pod:550
5243 msgid "btrfs-filesystem-resize"
5244 msgstr ""
5245
5246 #. type: verbatim
5247 #: ../fish/guestfish-actions.pod:552
5248 #, no-wrap
5249 msgid ""
5250 " btrfs-filesystem-resize mountpoint [size:..]\n"
5251 "\n"
5252 msgstr ""
5253
5254 #. type: textblock
5255 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
5256 msgid "This command resizes a btrfs filesystem."
5257 msgstr ""
5258
5259 #. type: textblock
5260 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
5261 msgid ""
5262 "Note that unlike other resize calls, the filesystem has to be mounted and "
5263 "the parameter is the mountpoint not the device (this is a requirement of "
5264 "btrfs itself)."
5265 msgstr ""
5266
5267 #. type: textblock
5268 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3422
5269 #: ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5194
5270 msgid "The optional parameters are:"
5271 msgstr ""
5272
5273 #. type: =item
5274 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3426
5275 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5198
5276 msgid "C<size>"
5277 msgstr ""
5278
5279 #. type: textblock
5280 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
5281 msgid ""
5282 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
5283 "resized to the maximum size."
5284 msgstr ""
5285
5286 #. type: textblock
5287 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
5288 msgid "See also L<btrfs(8)>."
5289 msgstr ""
5290
5291 #. type: =head2
5292 #: ../fish/guestfish-actions.pod:575
5293 msgid "case-sensitive-path"
5294 msgstr ""
5295
5296 #. type: verbatim
5297 #: ../fish/guestfish-actions.pod:577
5298 #, no-wrap
5299 msgid ""
5300 " case-sensitive-path path\n"
5301 "\n"
5302 msgstr ""
5303
5304 #. type: textblock
5305 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
5306 msgid ""
5307 "This can be used to resolve case insensitive paths on a filesystem which is "
5308 "case sensitive.  The use case is to resolve paths which you have read from "
5309 "Windows configuration files or the Windows Registry, to the true path."
5310 msgstr ""
5311
5312 #. type: textblock
5313 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
5314 msgid ""
5315 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5316 "(and probably others), which is that although the underlying filesystem is "
5317 "case-insensitive, the driver exports the filesystem to Linux as case-"
5318 "sensitive."
5319 msgstr ""
5320
5321 #. type: textblock
5322 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
5323 msgid ""
5324 "One consequence of this is that special directories such as C<c:\\windows> "
5325 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5326 "precise details of how they were created.  In Windows itself this would not "
5327 "be a problem."
5328 msgstr ""
5329
5330 #. type: textblock
5331 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
5332 msgid ""
5333 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5334 "#posixfilenames1>"
5335 msgstr ""
5336
5337 #. type: textblock
5338 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
5339 msgid ""
5340 "This function resolves the true case of each element in the path and returns "
5341 "the case-sensitive path."
5342 msgstr ""
5343
5344 #. type: textblock
5345 #: ../fish/guestfish-actions.pod:601
5346 msgid ""
5347 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
5348 "WINDOWS/system32\"> (the exact return value would depend on details of how "
5349 "the directories were originally created under Windows)."
5350 msgstr ""
5351
5352 #. type: textblock
5353 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
5354 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5355 msgstr ""
5356
5357 #. type: textblock
5358 #: ../fish/guestfish-actions.pod:609
5359 msgid "See also L</realpath>."
5360 msgstr ""
5361
5362 #. type: =head2
5363 #: ../fish/guestfish-actions.pod:611
5364 msgid "cat"
5365 msgstr ""
5366
5367 #. type: verbatim
5368 #: ../fish/guestfish-actions.pod:613
5369 #, no-wrap
5370 msgid ""
5371 " cat path\n"
5372 "\n"
5373 msgstr ""
5374
5375 #. type: textblock
5376 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3842
5377 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5837
5378 msgid "Return the contents of the file named C<path>."
5379 msgstr ""
5380
5381 #. type: textblock
5382 #: ../fish/guestfish-actions.pod:617
5383 msgid ""
5384 "Note that this function cannot correctly handle binary files (specifically, "
5385 "files containing C<\\0> character which is treated as end of string).  For "
5386 "those you need to use the L</read-file> or L</download> functions which have "
5387 "a more complex interface."
5388 msgstr ""
5389
5390 #. type: textblock
5391 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:757
5392 #: ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:945
5393 #: ../fish/guestfish-actions.pod:955 ../fish/guestfish-actions.pod:1022
5394 #: ../fish/guestfish-actions.pod:1032 ../fish/guestfish-actions.pod:1224
5395 #: ../fish/guestfish-actions.pod:1531 ../fish/guestfish-actions.pod:1541
5396 #: ../fish/guestfish-actions.pod:1569 ../fish/guestfish-actions.pod:1584
5397 #: ../fish/guestfish-actions.pod:1594 ../fish/guestfish-actions.pod:1613
5398 #: ../fish/guestfish-actions.pod:3712 ../fish/guestfish-actions.pod:3727
5399 #: ../fish/guestfish-actions.pod:3803 ../fish/guestfish-actions.pod:3820
5400 #: ../fish/guestfish-actions.pod:3835 ../fish/guestfish-actions.pod:4504
5401 #: ../fish/guestfish-actions.pod:4550 ../fish/guestfish-actions.pod:4635
5402 #: ../fish/guestfish-actions.pod:4650 ../fish/guestfish-actions.pod:5056
5403 #: ../fish/guestfish-actions.pod:5068 ../fish/guestfish-actions.pod:5086
5404 #: ../fish/guestfish-actions.pod:5103 ../fish/guestfish-actions.pod:5113
5405 #: ../fish/guestfish-actions.pod:5170 ../fish/guestfish-actions.pod:5180
5406 #: ../fish/guestfish-actions.pod:5209 ../fish/guestfish-actions.pod:5219
5407 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:1127
5408 #: ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1443
5409 #: ../src/guestfs-actions.pod:1462 ../src/guestfs-actions.pod:1565
5410 #: ../src/guestfs-actions.pod:1584 ../src/guestfs-actions.pod:1830
5411 #: ../src/guestfs-actions.pod:2301 ../src/guestfs-actions.pod:2320
5412 #: ../src/guestfs-actions.pod:2363 ../src/guestfs-actions.pod:2387
5413 #: ../src/guestfs-actions.pod:2404 ../src/guestfs-actions.pod:2433
5414 #: ../src/guestfs-actions.pod:5619 ../src/guestfs-actions.pod:5645
5415 #: ../src/guestfs-actions.pod:5776 ../src/guestfs-actions.pod:5802
5416 #: ../src/guestfs-actions.pod:5826 ../src/guestfs-actions.pod:6777
5417 #: ../src/guestfs-actions.pod:6832 ../src/guestfs-actions.pod:6978
5418 #: ../src/guestfs-actions.pod:7002 ../src/guestfs-actions.pod:7667
5419 #: ../src/guestfs-actions.pod:7687 ../src/guestfs-actions.pod:7720
5420 #: ../src/guestfs-actions.pod:7739 ../src/guestfs-actions.pod:7758
5421 #: ../src/guestfs-actions.pod:7852 ../src/guestfs-actions.pod:7871
5422 #: ../src/guestfs-actions.pod:7917 ../src/guestfs-actions.pod:7936
5423 msgid ""
5424 "Because of the message protocol, there is a transfer limit of somewhere "
5425 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5426 msgstr ""
5427
5428 #. type: =head2
5429 #: ../fish/guestfish-actions.pod:625
5430 msgid "checksum"
5431 msgstr ""
5432
5433 #. type: verbatim
5434 #: ../fish/guestfish-actions.pod:627
5435 #, no-wrap
5436 msgid ""
5437 " checksum csumtype path\n"
5438 "\n"
5439 msgstr ""
5440
5441 #. type: textblock
5442 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
5443 msgid ""
5444 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5445 msgstr ""
5446
5447 #. type: textblock
5448 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
5449 msgid ""
5450 "The type of checksum to compute is given by the C<csumtype> parameter which "
5451 "must have one of the following values:"
5452 msgstr ""
5453
5454 #. type: =item
5455 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
5456 msgid "C<crc>"
5457 msgstr ""
5458
5459 #. type: textblock
5460 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
5461 msgid ""
5462 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5463 "C<cksum> command."
5464 msgstr ""
5465
5466 #. type: =item
5467 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
5468 msgid "C<md5>"
5469 msgstr ""
5470
5471 #. type: textblock
5472 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
5473 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5474 msgstr ""
5475
5476 #. type: =item
5477 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
5478 msgid "C<sha1>"
5479 msgstr ""
5480
5481 #. type: textblock
5482 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
5483 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5484 msgstr ""
5485
5486 #. type: =item
5487 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
5488 msgid "C<sha224>"
5489 msgstr ""
5490
5491 #. type: textblock
5492 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
5493 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5494 msgstr ""
5495
5496 #. type: =item
5497 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
5498 msgid "C<sha256>"
5499 msgstr ""
5500
5501 #. type: textblock
5502 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
5503 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5504 msgstr ""
5505
5506 #. type: =item
5507 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
5508 msgid "C<sha384>"
5509 msgstr ""
5510
5511 #. type: textblock
5512 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
5513 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5514 msgstr ""
5515
5516 #. type: =item
5517 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
5518 msgid "C<sha512>"
5519 msgstr ""
5520
5521 #. type: textblock
5522 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
5523 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5524 msgstr ""
5525
5526 #. type: textblock
5527 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
5528 msgid "The checksum is returned as a printable string."
5529 msgstr ""
5530
5531 #. type: textblock
5532 #: ../fish/guestfish-actions.pod:670
5533 msgid "To get the checksum for a device, use L</checksum-device>."
5534 msgstr ""
5535
5536 #. type: textblock
5537 #: ../fish/guestfish-actions.pod:672
5538 msgid "To get the checksums for many files, use L</checksums-out>."
5539 msgstr ""
5540
5541 #. type: =head2
5542 #: ../fish/guestfish-actions.pod:674
5543 msgid "checksum-device"
5544 msgstr ""
5545
5546 #. type: verbatim
5547 #: ../fish/guestfish-actions.pod:676
5548 #, no-wrap
5549 msgid ""
5550 " checksum-device csumtype device\n"
5551 "\n"
5552 msgstr ""
5553
5554 #. type: textblock
5555 #: ../fish/guestfish-actions.pod:678
5556 msgid ""
5557 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5558 "device named C<device>.  For the types of checksums supported see the L</"
5559 "checksum> command."
5560 msgstr ""
5561
5562 #. type: =head2
5563 #: ../fish/guestfish-actions.pod:682
5564 msgid "checksums-out"
5565 msgstr ""
5566
5567 #. type: verbatim
5568 #: ../fish/guestfish-actions.pod:684
5569 #, no-wrap
5570 msgid ""
5571 " checksums-out csumtype directory (sumsfile|-)\n"
5572 "\n"
5573 msgstr ""
5574
5575 #. type: textblock
5576 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
5577 msgid ""
5578 "This command computes the checksums of all regular files in C<directory> and "
5579 "then emits a list of those checksums to the local output file C<sumsfile>."
5580 msgstr ""
5581
5582 #. type: textblock
5583 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
5584 msgid ""
5585 "This can be used for verifying the integrity of a virtual machine.  However "
5586 "to be properly secure you should pay attention to the output of the checksum "
5587 "command (it uses the ones from GNU coreutils).  In particular when the "
5588 "filename is not printable, coreutils uses a special backslash syntax.  For "
5589 "more information, see the GNU coreutils info file."
5590 msgstr ""
5591
5592 #. type: =head2
5593 #: ../fish/guestfish-actions.pod:700
5594 msgid "chmod"
5595 msgstr ""
5596
5597 #. type: verbatim
5598 #: ../fish/guestfish-actions.pod:702
5599 #, no-wrap
5600 msgid ""
5601 " chmod mode path\n"
5602 "\n"
5603 msgstr ""
5604
5605 #. type: textblock
5606 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
5607 msgid ""
5608 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5609 "supported."
5610 msgstr ""
5611
5612 #. type: textblock
5613 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
5614 msgid ""
5615 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5616 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5617 "C<700>."
5618 msgstr ""
5619
5620 #. type: textblock
5621 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3065
5622 #: ../fish/guestfish-actions.pod:3204 ../fish/guestfish-actions.pod:3214
5623 #: ../fish/guestfish-actions.pod:3224 ../src/guestfs-actions.pod:1064
5624 #: ../src/guestfs-actions.pod:4591 ../src/guestfs-actions.pod:4800
5625 #: ../src/guestfs-actions.pod:4819 ../src/guestfs-actions.pod:4838
5626 msgid "The mode actually set is affected by the umask."
5627 msgstr ""
5628
5629 #. type: =head2
5630 #: ../fish/guestfish-actions.pod:713
5631 msgid "chown"
5632 msgstr ""
5633
5634 #. type: verbatim
5635 #: ../fish/guestfish-actions.pod:715
5636 #, no-wrap
5637 msgid ""
5638 " chown owner group path\n"
5639 "\n"
5640 msgstr ""
5641
5642 #. type: textblock
5643 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
5644 msgid "Change the file owner to C<owner> and group to C<group>."
5645 msgstr ""
5646
5647 #. type: textblock
5648 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2500
5649 #: ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3662
5650 msgid ""
5651 "Only numeric uid and gid are supported.  If you want to use names, you will "
5652 "need to locate and parse the password file yourself (Augeas support makes "
5653 "this relatively easy)."
5654 msgstr ""
5655
5656 #. type: =head2
5657 #: ../fish/guestfish-actions.pod:723
5658 msgid "command"
5659 msgstr ""
5660
5661 #. type: verbatim
5662 #: ../fish/guestfish-actions.pod:725
5663 #, no-wrap
5664 msgid ""
5665 " command 'arguments ...'\n"
5666 "\n"
5667 msgstr ""
5668
5669 #. type: textblock
5670 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
5671 msgid ""
5672 "This call runs a command from the guest filesystem.  The filesystem must be "
5673 "mounted, and must contain a compatible operating system (ie. something "
5674 "Linux, with the same or compatible processor architecture)."
5675 msgstr ""
5676
5677 #. type: textblock
5678 #: ../fish/guestfish-actions.pod:732
5679 msgid ""
5680 "The single parameter is an argv-style list of arguments.  The first element "
5681 "is the name of the program to run.  Subsequent elements are parameters.  The "
5682 "list must be non-empty (ie. must contain a program name).  Note that the "
5683 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
5684 msgstr ""
5685
5686 #. type: textblock
5687 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
5688 msgid "The return value is anything printed to I<stdout> by the command."
5689 msgstr ""
5690
5691 #. type: textblock
5692 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
5693 msgid ""
5694 "If the command returns a non-zero exit status, then this function returns an "
5695 "error message.  The error message string is the content of I<stderr> from "
5696 "the command."
5697 msgstr ""
5698
5699 #. type: textblock
5700 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
5701 msgid ""
5702 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
5703 "bin>.  If you require a program from another location, you should provide "
5704 "the full path in the first parameter."
5705 msgstr ""
5706
5707 #. type: textblock
5708 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
5709 msgid ""
5710 "Shared libraries and data files required by the program must be available on "
5711 "filesystems which are mounted in the correct places.  It is the caller's "
5712 "responsibility to ensure all filesystems that are needed are mounted at the "
5713 "right locations."
5714 msgstr ""
5715
5716 #. type: =head2
5717 #: ../fish/guestfish-actions.pod:760
5718 msgid "command-lines"
5719 msgstr ""
5720
5721 #. type: verbatim
5722 #: ../fish/guestfish-actions.pod:762
5723 #, no-wrap
5724 msgid ""
5725 " command-lines 'arguments ...'\n"
5726 "\n"
5727 msgstr ""
5728
5729 #. type: textblock
5730 #: ../fish/guestfish-actions.pod:764
5731 msgid ""
5732 "This is the same as L</command>, but splits the result into a list of lines."
5733 msgstr ""
5734
5735 #. type: textblock
5736 #: ../fish/guestfish-actions.pod:767
5737 msgid "See also: L</sh-lines>"
5738 msgstr ""
5739
5740 #. type: =head2
5741 #: ../fish/guestfish-actions.pod:772
5742 msgid "config"
5743 msgstr ""
5744
5745 #. type: verbatim
5746 #: ../fish/guestfish-actions.pod:774
5747 #, no-wrap
5748 msgid ""
5749 " config qemuparam qemuvalue\n"
5750 "\n"
5751 msgstr ""
5752
5753 #. type: textblock
5754 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1159
5755 msgid ""
5756 "This can be used to add arbitrary qemu command line parameters of the form "
5757 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
5758 "setting some parameters which would interfere with parameters that we use."
5759 msgstr ""
5760
5761 #. type: textblock
5762 #: ../fish/guestfish-actions.pod:781 ../src/guestfs-actions.pod:1164
5763 msgid "The first character of C<param> string must be a C<-> (dash)."
5764 msgstr ""
5765
5766 #. type: textblock
5767 #: ../fish/guestfish-actions.pod:783 ../src/guestfs-actions.pod:1166
5768 msgid "C<value> can be NULL."
5769 msgstr ""
5770
5771 #. type: =head2
5772 #: ../fish/guestfish-actions.pod:785
5773 msgid "copy-size"
5774 msgstr ""
5775
5776 #. type: verbatim
5777 #: ../fish/guestfish-actions.pod:787
5778 #, no-wrap
5779 msgid ""
5780 " copy-size src dest size\n"
5781 "\n"
5782 msgstr ""
5783
5784 #. type: textblock
5785 #: ../fish/guestfish-actions.pod:789 ../src/guestfs-actions.pod:1180
5786 msgid ""
5787 "This command copies exactly C<size> bytes from one source device or file "
5788 "C<src> to another destination device or file C<dest>."
5789 msgstr ""
5790
5791 #. type: textblock
5792 #: ../fish/guestfish-actions.pod:792 ../src/guestfs-actions.pod:1183
5793 msgid ""
5794 "Note this will fail if the source is too short or if the destination is not "
5795 "large enough."
5796 msgstr ""
5797
5798 #. type: =head2
5799 #: ../fish/guestfish-actions.pod:795
5800 msgid "cp"
5801 msgstr ""
5802
5803 #. type: verbatim
5804 #: ../fish/guestfish-actions.pod:797
5805 #, no-wrap
5806 msgid ""
5807 " cp src dest\n"
5808 "\n"
5809 msgstr ""
5810
5811 #. type: textblock
5812 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1202
5813 msgid ""
5814 "This copies a file from C<src> to C<dest> where C<dest> is either a "
5815 "destination filename or destination directory."
5816 msgstr ""
5817
5818 #. type: =head2
5819 #: ../fish/guestfish-actions.pod:802
5820 msgid "cp-a"
5821 msgstr ""
5822
5823 #. type: verbatim
5824 #: ../fish/guestfish-actions.pod:804
5825 #, no-wrap
5826 msgid ""
5827 " cp-a src dest\n"
5828 "\n"
5829 msgstr ""
5830
5831 #. type: textblock
5832 #: ../fish/guestfish-actions.pod:806 ../src/guestfs-actions.pod:1216
5833 msgid ""
5834 "This copies a file or directory from C<src> to C<dest> recursively using the "
5835 "C<cp -a> command."
5836 msgstr ""
5837
5838 #. type: =head2
5839 #: ../fish/guestfish-actions.pod:809
5840 msgid "dd"
5841 msgstr ""
5842
5843 #. type: verbatim
5844 #: ../fish/guestfish-actions.pod:811
5845 #, no-wrap
5846 msgid ""
5847 " dd src dest\n"
5848 "\n"
5849 msgstr ""
5850
5851 #. type: textblock
5852 #: ../fish/guestfish-actions.pod:813 ../src/guestfs-actions.pod:1230
5853 msgid ""
5854 "This command copies from one source device or file C<src> to another "
5855 "destination device or file C<dest>.  Normally you would use this to copy to "
5856 "or from a device or partition, for example to duplicate a filesystem."
5857 msgstr ""
5858
5859 #. type: textblock
5860 #: ../fish/guestfish-actions.pod:818
5861 msgid ""
5862 "If the destination is a device, it must be as large or larger than the "
5863 "source file or device, otherwise the copy will fail.  This command cannot do "
5864 "partial copies (see L</copy-size>)."
5865 msgstr ""
5866
5867 #. type: =head2
5868 #: ../fish/guestfish-actions.pod:822
5869 msgid "df"
5870 msgstr ""
5871
5872 #. type: verbatim
5873 #: ../fish/guestfish-actions.pod:824
5874 #, no-wrap
5875 msgid ""
5876 " df\n"
5877 "\n"
5878 msgstr ""
5879
5880 #. type: textblock
5881 #: ../fish/guestfish-actions.pod:826 ../src/guestfs-actions.pod:1248
5882 msgid "This command runs the C<df> command to report disk space used."
5883 msgstr ""
5884
5885 #. type: textblock
5886 #: ../fish/guestfish-actions.pod:828 ../fish/guestfish-actions.pod:839
5887 msgid ""
5888 "This command is mostly useful for interactive sessions.  It is I<not> "
5889 "intended that you try to parse the output string.  Use L</statvfs> from "
5890 "programs."
5891 msgstr ""
5892
5893 #. type: =head2
5894 #: ../fish/guestfish-actions.pod:832
5895 msgid "df-h"
5896 msgstr ""
5897
5898 #. type: verbatim
5899 #: ../fish/guestfish-actions.pod:834
5900 #, no-wrap
5901 msgid ""
5902 " df-h\n"
5903 "\n"
5904 msgstr ""
5905
5906 #. type: textblock
5907 #: ../fish/guestfish-actions.pod:836 ../src/guestfs-actions.pod:1264
5908 msgid ""
5909 "This command runs the C<df -h> command to report disk space used in human-"
5910 "readable format."
5911 msgstr ""
5912
5913 #. type: =head2
5914 #: ../fish/guestfish-actions.pod:843
5915 msgid "dmesg"
5916 msgstr ""
5917
5918 #. type: verbatim
5919 #: ../fish/guestfish-actions.pod:845
5920 #, no-wrap
5921 msgid ""
5922 " dmesg\n"
5923 "\n"
5924 msgstr ""
5925
5926 #. type: textblock
5927 #: ../fish/guestfish-actions.pod:847 ../src/guestfs-actions.pod:1281
5928 msgid ""
5929 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
5930 "This is sometimes useful for extended debugging of problems."
5931 msgstr ""
5932
5933 #. type: textblock
5934 #: ../fish/guestfish-actions.pod:851
5935 msgid ""
5936 "Another way to get the same information is to enable verbose messages with "
5937 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
5938 "before running the program."
5939 msgstr ""
5940
5941 #. type: =head2
5942 #: ../fish/guestfish-actions.pod:856
5943 msgid "download"
5944 msgstr ""
5945
5946 #. type: verbatim
5947 #: ../fish/guestfish-actions.pod:858
5948 #, no-wrap
5949 msgid ""
5950 " download remotefilename (filename|-)\n"
5951 "\n"
5952 msgstr ""
5953
5954 #. type: textblock
5955 #: ../fish/guestfish-actions.pod:860 ../fish/guestfish-actions.pod:873
5956 #: ../src/guestfs-actions.pod:1302 ../src/guestfs-actions.pod:1327
5957 msgid ""
5958 "Download file C<remotefilename> and save it as C<filename> on the local "
5959 "machine."
5960 msgstr ""
5961
5962 #. type: textblock
5963 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:4808
5964 #: ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:7237
5965 msgid "C<filename> can also be a named pipe."
5966 msgstr ""
5967
5968 #. type: textblock
5969 #: ../fish/guestfish-actions.pod:865
5970 msgid "See also L</upload>, L</cat>."
5971 msgstr ""
5972
5973 #. type: =head2
5974 #: ../fish/guestfish-actions.pod:869
5975 msgid "download-offset"
5976 msgstr ""
5977
5978 #. type: verbatim
5979 #: ../fish/guestfish-actions.pod:871
5980 #, no-wrap
5981 msgid ""
5982 " download-offset remotefilename (filename|-) offset size\n"
5983 "\n"
5984 msgstr ""
5985
5986 #. type: textblock
5987 #: ../fish/guestfish-actions.pod:876 ../src/guestfs-actions.pod:1330
5988 msgid ""
5989 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
5990 "region must be within the file or device)."
5991 msgstr ""
5992
5993 #. type: textblock
5994 #: ../fish/guestfish-actions.pod:879
5995 msgid ""
5996 "Note that there is no limit on the amount of data that can be downloaded "
5997 "with this call, unlike with L</pread>, and this call always reads the full "
5998 "amount unless an error occurs."
5999 msgstr ""
6000
6001 #. type: textblock
6002 #: ../fish/guestfish-actions.pod:884
6003 msgid "See also L</download>, L</pread>."
6004 msgstr ""
6005
6006 #. type: =head2
6007 #: ../fish/guestfish-actions.pod:888
6008 msgid "drop-caches"
6009 msgstr ""
6010
6011 #. type: verbatim
6012 #: ../fish/guestfish-actions.pod:890
6013 #, no-wrap
6014 msgid ""
6015 " drop-caches whattodrop\n"
6016 "\n"
6017 msgstr ""
6018
6019 #. type: textblock
6020 #: ../fish/guestfish-actions.pod:892 ../src/guestfs-actions.pod:1355
6021 msgid ""
6022 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6023 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6024 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6025 msgstr ""
6026
6027 #. type: textblock
6028 #: ../fish/guestfish-actions.pod:897 ../src/guestfs-actions.pod:1360
6029 msgid "Setting C<whattodrop> to 3 should drop everything."
6030 msgstr ""
6031
6032 #. type: textblock
6033 #: ../fish/guestfish-actions.pod:899 ../src/guestfs-actions.pod:1362
6034 msgid ""
6035 "This automatically calls L<sync(2)> before the operation, so that the "
6036 "maximum guest memory is freed."
6037 msgstr ""
6038
6039 #. type: =head2
6040 #: ../fish/guestfish-actions.pod:902
6041 msgid "du"
6042 msgstr ""
6043
6044 #. type: verbatim
6045 #: ../fish/guestfish-actions.pod:904
6046 #, no-wrap
6047 msgid ""
6048 " du path\n"
6049 "\n"
6050 msgstr ""
6051
6052 #. type: textblock
6053 #: ../fish/guestfish-actions.pod:906 ../src/guestfs-actions.pod:1375
6054 msgid ""
6055 "This command runs the C<du -s> command to estimate file space usage for "
6056 "C<path>."
6057 msgstr ""
6058
6059 #. type: textblock
6060 #: ../fish/guestfish-actions.pod:909 ../src/guestfs-actions.pod:1378
6061 msgid ""
6062 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6063 "estimate includes the contents of the directory and all subdirectories "
6064 "(recursively)."
6065 msgstr ""
6066
6067 #. type: textblock
6068 #: ../fish/guestfish-actions.pod:913 ../src/guestfs-actions.pod:1382
6069 msgid ""
6070 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6071 msgstr ""
6072
6073 #. type: =head2
6074 #: ../fish/guestfish-actions.pod:916
6075 msgid "e2fsck-f"
6076 msgstr ""
6077
6078 #. type: verbatim
6079 #: ../fish/guestfish-actions.pod:918
6080 #, no-wrap
6081 msgid ""
6082 " e2fsck-f device\n"
6083 "\n"
6084 msgstr ""
6085
6086 #. type: textblock
6087 #: ../fish/guestfish-actions.pod:920 ../src/guestfs-actions.pod:1400
6088 msgid ""
6089 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6090 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
6091 "clean (I<-f>)."
6092 msgstr ""
6093
6094 #. type: textblock
6095 #: ../fish/guestfish-actions.pod:924
6096 msgid ""
6097 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
6098 "should use L</fsck>."
6099 msgstr ""
6100
6101 #. type: =head2
6102 #: ../fish/guestfish-actions.pod:927
6103 msgid "echo-daemon"
6104 msgstr ""
6105
6106 #. type: verbatim
6107 #: ../fish/guestfish-actions.pod:929
6108 #, no-wrap
6109 msgid ""
6110 " echo-daemon 'words ...'\n"
6111 "\n"
6112 msgstr ""
6113
6114 #. type: textblock
6115 #: ../fish/guestfish-actions.pod:931 ../src/guestfs-actions.pod:1417
6116 msgid ""
6117 "This command concatenates the list of C<words> passed with single spaces "
6118 "between them and returns the resulting string."
6119 msgstr ""
6120
6121 #. type: textblock
6122 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1420
6123 msgid "You can use this command to test the connection through to the daemon."
6124 msgstr ""
6125
6126 #. type: textblock
6127 #: ../fish/guestfish-actions.pod:936
6128 msgid "See also L</ping-daemon>."
6129 msgstr ""
6130
6131 #. type: =head2
6132 #: ../fish/guestfish-actions.pod:938
6133 msgid "egrep"
6134 msgstr ""
6135
6136 #. type: verbatim
6137 #: ../fish/guestfish-actions.pod:940
6138 #, no-wrap
6139 msgid ""
6140 " egrep regex path\n"
6141 "\n"
6142 msgstr ""
6143
6144 #. type: textblock
6145 #: ../fish/guestfish-actions.pod:942 ../src/guestfs-actions.pod:1436
6146 msgid ""
6147 "This calls the external C<egrep> program and returns the matching lines."
6148 msgstr ""
6149
6150 #. type: =head2
6151 #: ../fish/guestfish-actions.pod:948
6152 msgid "egrepi"
6153 msgstr ""
6154
6155 #. type: verbatim
6156 #: ../fish/guestfish-actions.pod:950
6157 #, no-wrap
6158 msgid ""
6159 " egrepi regex path\n"
6160 "\n"
6161 msgstr ""
6162
6163 #. type: textblock
6164 #: ../fish/guestfish-actions.pod:952 ../src/guestfs-actions.pod:1455
6165 msgid ""
6166 "This calls the external C<egrep -i> program and returns the matching lines."
6167 msgstr ""
6168
6169 #. type: =head2
6170 #: ../fish/guestfish-actions.pod:958
6171 msgid "equal"
6172 msgstr ""
6173
6174 #. type: verbatim
6175 #: ../fish/guestfish-actions.pod:960
6176 #, no-wrap
6177 msgid ""
6178 " equal file1 file2\n"
6179 "\n"
6180 msgstr ""
6181
6182 #. type: textblock
6183 #: ../fish/guestfish-actions.pod:962 ../src/guestfs-actions.pod:1474
6184 msgid ""
6185 "This compares the two files C<file1> and C<file2> and returns true if their "
6186 "content is exactly equal, or false otherwise."
6187 msgstr ""
6188
6189 #. type: textblock
6190 #: ../fish/guestfish-actions.pod:965 ../src/guestfs-actions.pod:1477
6191 msgid "The external L<cmp(1)> program is used for the comparison."
6192 msgstr ""
6193
6194 #. type: =head2
6195 #: ../fish/guestfish-actions.pod:967
6196 msgid "exists"
6197 msgstr ""
6198
6199 #. type: verbatim
6200 #: ../fish/guestfish-actions.pod:969
6201 #, no-wrap
6202 msgid ""
6203 " exists path\n"
6204 "\n"
6205 msgstr ""
6206
6207 #. type: textblock
6208 #: ../fish/guestfish-actions.pod:971 ../src/guestfs-actions.pod:1489
6209 msgid ""
6210 "This returns C<true> if and only if there is a file, directory (or anything) "
6211 "with the given C<path> name."
6212 msgstr ""
6213
6214 #. type: textblock
6215 #: ../fish/guestfish-actions.pod:974
6216 msgid "See also L</is-file>, L</is-dir>, L</stat>."
6217 msgstr ""
6218
6219 #. type: =head2
6220 #: ../fish/guestfish-actions.pod:976
6221 msgid "fallocate"
6222 msgstr ""
6223
6224 #. type: verbatim
6225 #: ../fish/guestfish-actions.pod:978
6226 #, no-wrap
6227 msgid ""
6228 " fallocate path len\n"
6229 "\n"
6230 msgstr ""
6231
6232 #. type: textblock
6233 #: ../fish/guestfish-actions.pod:980 ../fish/guestfish-actions.pod:999
6234 #: ../src/guestfs-actions.pod:1512 ../src/guestfs-actions.pod:1531
6235 msgid ""
6236 "This command preallocates a file (containing zero bytes) named C<path> of "
6237 "size C<len> bytes.  If the file exists already, it is overwritten."
6238 msgstr ""
6239
6240 #. type: textblock
6241 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1516
6242 msgid ""
6243 "Do not confuse this with the guestfish-specific C<alloc> command which "
6244 "allocates a file in the host and attaches it as a device."
6245 msgstr ""
6246
6247 #. type: textblock
6248 #: ../fish/guestfish-actions.pod:988
6249 msgid ""
6250 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
6251 "instead."
6252 msgstr ""
6253
6254 #. type: =head2
6255 #: ../fish/guestfish-actions.pod:995
6256 msgid "fallocate64"
6257 msgstr ""
6258
6259 #. type: verbatim
6260 #: ../fish/guestfish-actions.pod:997
6261 #, no-wrap
6262 msgid ""
6263 " fallocate64 path len\n"
6264 "\n"
6265 msgstr ""
6266
6267 #. type: textblock
6268 #: ../fish/guestfish-actions.pod:1003
6269 msgid ""
6270 "Note that this call allocates disk blocks for the file.  To create a sparse "
6271 "file use L</truncate-size> instead."
6272 msgstr ""
6273
6274 #. type: textblock
6275 #: ../fish/guestfish-actions.pod:1006
6276 msgid ""
6277 "The deprecated call L</fallocate> does the same, but owing to an oversight "
6278 "it only allowed 30 bit lengths to be specified, effectively limiting the "
6279 "maximum size of files created through that call to 1GB."
6280 msgstr ""
6281
6282 #. type: textblock
6283 #: ../fish/guestfish-actions.pod:1011 ../src/guestfs-actions.pod:1543
6284 msgid ""
6285 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6286 "commands which create a file in the host and attach it as a device."
6287 msgstr ""
6288
6289 #. type: =head2
6290 #: ../fish/guestfish-actions.pod:1015
6291 msgid "fgrep"
6292 msgstr ""
6293
6294 #. type: verbatim
6295 #: ../fish/guestfish-actions.pod:1017
6296 #, no-wrap
6297 msgid ""
6298 " fgrep pattern path\n"
6299 "\n"
6300 msgstr ""
6301
6302 #. type: textblock
6303 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1558
6304 msgid ""
6305 "This calls the external C<fgrep> program and returns the matching lines."
6306 msgstr ""
6307
6308 #. type: =head2
6309 #: ../fish/guestfish-actions.pod:1025
6310 msgid "fgrepi"
6311 msgstr ""
6312
6313 #. type: verbatim
6314 #: ../fish/guestfish-actions.pod:1027
6315 #, no-wrap
6316 msgid ""
6317 " fgrepi pattern path\n"
6318 "\n"
6319 msgstr ""
6320
6321 #. type: textblock
6322 #: ../fish/guestfish-actions.pod:1029 ../src/guestfs-actions.pod:1577
6323 msgid ""
6324 "This calls the external C<fgrep -i> program and returns the matching lines."
6325 msgstr ""
6326
6327 #. type: =head2
6328 #: ../fish/guestfish-actions.pod:1035
6329 msgid "file"
6330 msgstr ""
6331
6332 #. type: verbatim
6333 #: ../fish/guestfish-actions.pod:1037
6334 #, no-wrap
6335 msgid ""
6336 " file path\n"
6337 "\n"
6338 msgstr ""
6339
6340 #. type: textblock
6341 #: ../fish/guestfish-actions.pod:1039 ../src/guestfs-actions.pod:1595
6342 msgid ""
6343 "This call uses the standard L<file(1)> command to determine the type or "
6344 "contents of the file."
6345 msgstr ""
6346
6347 #. type: textblock
6348 #: ../fish/guestfish-actions.pod:1042 ../src/guestfs-actions.pod:1598
6349 msgid ""
6350 "This call will also transparently look inside various types of compressed "
6351 "file."
6352 msgstr ""
6353
6354 #. type: textblock
6355 #: ../fish/guestfish-actions.pod:1045 ../src/guestfs-actions.pod:1601
6356 msgid ""
6357 "The exact command which runs is C<file -zb path>.  Note in particular that "
6358 "the filename is not prepended to the output (the I<-b> option)."
6359 msgstr ""
6360
6361 #. type: textblock
6362 #: ../fish/guestfish-actions.pod:1049 ../src/guestfs-actions.pod:1605
6363 msgid ""
6364 "The output depends on the output of the underlying L<file(1)> command and it "
6365 "can change in future in ways beyond our control.  In other words, the output "
6366 "is not guaranteed by the ABI."
6367 msgstr ""
6368
6369 #. type: textblock
6370 #: ../fish/guestfish-actions.pod:1053
6371 msgid ""
6372 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
6373 "(etc), L</is-zero>."
6374 msgstr ""
6375
6376 #. type: =head2
6377 #: ../fish/guestfish-actions.pod:1056
6378 msgid "file-architecture"
6379 msgstr ""
6380
6381 #. type: verbatim
6382 #: ../fish/guestfish-actions.pod:1058
6383 #, no-wrap
6384 msgid ""
6385 " file-architecture filename\n"
6386 "\n"
6387 msgstr ""
6388
6389 #. type: textblock
6390 #: ../fish/guestfish-actions.pod:1060 ../src/guestfs-actions.pod:1623
6391 msgid ""
6392 "This detects the architecture of the binary C<filename>, and returns it if "
6393 "known."
6394 msgstr ""
6395
6396 #. type: textblock
6397 #: ../fish/guestfish-actions.pod:1063 ../src/guestfs-actions.pod:1626
6398 msgid "Currently defined architectures are:"
6399 msgstr ""
6400
6401 #. type: =item
6402 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1630
6403 msgid "\"i386\""
6404 msgstr ""
6405
6406 #. type: textblock
6407 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1632
6408 msgid ""
6409 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6410 "irrespective of the precise processor requirements of the binary."
6411 msgstr ""
6412
6413 #. type: =item
6414 #: ../fish/guestfish-actions.pod:1072 ../src/guestfs-actions.pod:1635
6415 msgid "\"x86_64\""
6416 msgstr ""
6417
6418 #. type: textblock
6419 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1637
6420 msgid "64 bit x86-64."
6421 msgstr ""
6422
6423 #. type: =item
6424 #: ../fish/guestfish-actions.pod:1076 ../src/guestfs-actions.pod:1639
6425 msgid "\"sparc\""
6426 msgstr ""
6427
6428 #. type: textblock
6429 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1641
6430 msgid "32 bit SPARC."
6431 msgstr ""
6432
6433 #. type: =item
6434 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1643
6435 msgid "\"sparc64\""
6436 msgstr ""
6437
6438 #. type: textblock
6439 #: ../fish/guestfish-actions.pod:1082 ../src/guestfs-actions.pod:1645
6440 msgid "64 bit SPARC V9 and above."
6441 msgstr ""
6442
6443 #. type: =item
6444 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1647
6445 msgid "\"ia64\""
6446 msgstr ""
6447
6448 #. type: textblock
6449 #: ../fish/guestfish-actions.pod:1086 ../src/guestfs-actions.pod:1649
6450 msgid "Intel Itanium."
6451 msgstr ""
6452
6453 #. type: =item
6454 #: ../fish/guestfish-actions.pod:1088 ../src/guestfs-actions.pod:1651
6455 msgid "\"ppc\""
6456 msgstr ""
6457
6458 #. type: textblock
6459 #: ../fish/guestfish-actions.pod:1090 ../src/guestfs-actions.pod:1653
6460 msgid "32 bit Power PC."
6461 msgstr ""
6462
6463 #. type: =item
6464 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1655
6465 msgid "\"ppc64\""
6466 msgstr ""
6467
6468 #. type: textblock
6469 #: ../fish/guestfish-actions.pod:1094 ../src/guestfs-actions.pod:1657
6470 msgid "64 bit Power PC."
6471 msgstr ""
6472
6473 #. type: textblock
6474 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1661
6475 msgid "Libguestfs may return other architecture strings in future."
6476 msgstr ""
6477
6478 #. type: textblock
6479 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1663
6480 msgid "The function works on at least the following types of files:"
6481 msgstr ""
6482
6483 #. type: textblock
6484 #: ../fish/guestfish-actions.pod:1106 ../src/guestfs-actions.pod:1669
6485 msgid "many types of Un*x and Linux binary"
6486 msgstr ""
6487
6488 #. type: textblock
6489 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1673
6490 msgid "many types of Un*x and Linux shared library"
6491 msgstr ""
6492
6493 #. type: textblock
6494 #: ../fish/guestfish-actions.pod:1114 ../src/guestfs-actions.pod:1677
6495 msgid "Windows Win32 and Win64 binaries"
6496 msgstr ""
6497
6498 #. type: textblock
6499 #: ../fish/guestfish-actions.pod:1118 ../src/guestfs-actions.pod:1681
6500 msgid "Windows Win32 and Win64 DLLs"
6501 msgstr ""
6502
6503 #. type: textblock
6504 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1683
6505 msgid "Win32 binaries and DLLs return C<i386>."
6506 msgstr ""
6507
6508 #. type: textblock
6509 #: ../fish/guestfish-actions.pod:1122 ../src/guestfs-actions.pod:1685
6510 msgid "Win64 binaries and DLLs return C<x86_64>."
6511 msgstr ""
6512
6513 #. type: textblock
6514 #: ../fish/guestfish-actions.pod:1126 ../src/guestfs-actions.pod:1689
6515 msgid "Linux kernel modules"
6516 msgstr ""
6517
6518 #. type: textblock
6519 #: ../fish/guestfish-actions.pod:1130 ../src/guestfs-actions.pod:1693
6520 msgid "Linux new-style initrd images"
6521 msgstr ""
6522
6523 #. type: textblock
6524 #: ../fish/guestfish-actions.pod:1134 ../src/guestfs-actions.pod:1697
6525 msgid "some non-x86 Linux vmlinuz kernels"
6526 msgstr ""
6527
6528 #. type: textblock
6529 #: ../fish/guestfish-actions.pod:1138 ../src/guestfs-actions.pod:1701
6530 msgid "What it can't do currently:"
6531 msgstr ""
6532
6533 #. type: textblock
6534 #: ../fish/guestfish-actions.pod:1144 ../src/guestfs-actions.pod:1707
6535 msgid "static libraries (libfoo.a)"
6536 msgstr ""
6537
6538 #. type: textblock
6539 #: ../fish/guestfish-actions.pod:1148 ../src/guestfs-actions.pod:1711
6540 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6541 msgstr ""
6542
6543 #. type: textblock
6544 #: ../fish/guestfish-actions.pod:1152 ../src/guestfs-actions.pod:1715
6545 msgid "x86 Linux vmlinuz kernels"
6546 msgstr ""
6547
6548 #. type: textblock
6549 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1717
6550 msgid ""
6551 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6552 "compressed code, and are horribly hard to unpack.  If you want to find the "
6553 "architecture of a kernel, use the architecture of the associated initrd or "
6554 "kernel module(s) instead."
6555 msgstr ""
6556
6557 #. type: =head2
6558 #: ../fish/guestfish-actions.pod:1161
6559 msgid "filesize"
6560 msgstr ""
6561
6562 #. type: verbatim
6563 #: ../fish/guestfish-actions.pod:1163
6564 #, no-wrap
6565 msgid ""
6566 " filesize file\n"
6567 "\n"
6568 msgstr ""
6569
6570 #. type: textblock
6571 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1735
6572 msgid "This command returns the size of C<file> in bytes."
6573 msgstr ""
6574
6575 #. type: textblock
6576 #: ../fish/guestfish-actions.pod:1167
6577 msgid ""
6578 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
6579 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
6580 msgstr ""
6581
6582 #. type: =head2
6583 #: ../fish/guestfish-actions.pod:1171
6584 msgid "fill"
6585 msgstr ""
6586
6587 #. type: verbatim
6588 #: ../fish/guestfish-actions.pod:1173
6589 #, no-wrap
6590 msgid ""
6591 " fill c len path\n"
6592 "\n"
6593 msgstr ""
6594
6595 #. type: textblock
6596 #: ../fish/guestfish-actions.pod:1175 ../src/guestfs-actions.pod:1753
6597 msgid ""
6598 "This command creates a new file called C<path>.  The initial content of the "
6599 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
6600 "[0..255]>."
6601 msgstr ""
6602
6603 #. type: textblock
6604 #: ../fish/guestfish-actions.pod:1179
6605 msgid ""
6606 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6607 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
6608 "L</fill-pattern>."
6609 msgstr ""
6610
6611 #. type: =head2
6612 #: ../fish/guestfish-actions.pod:1184
6613 msgid "fill-pattern"
6614 msgstr ""
6615
6616 #. type: verbatim
6617 #: ../fish/guestfish-actions.pod:1186
6618 #, no-wrap
6619 msgid ""
6620 " fill-pattern pattern len path\n"
6621 "\n"
6622 msgstr ""
6623
6624 #. type: textblock
6625 #: ../fish/guestfish-actions.pod:1188
6626 msgid ""
6627 "This function is like L</fill> except that it creates a new file of length "
6628 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
6629 "is truncated if necessary to ensure the length of the file is exactly C<len> "
6630 "bytes."
6631 msgstr ""
6632
6633 #. type: =head2
6634 #: ../fish/guestfish-actions.pod:1193
6635 msgid "find"
6636 msgstr ""
6637
6638 #. type: verbatim
6639 #: ../fish/guestfish-actions.pod:1195
6640 #, no-wrap
6641 msgid ""
6642 " find directory\n"
6643 "\n"
6644 msgstr ""
6645
6646 #. type: textblock
6647 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:1799
6648 msgid ""
6649 "This command lists out all files and directories, recursively, starting at "
6650 "C<directory>.  It is essentially equivalent to running the shell command "
6651 "C<find directory -print> but some post-processing happens on the output, "
6652 "described below."
6653 msgstr ""
6654
6655 #. type: textblock
6656 #: ../fish/guestfish-actions.pod:1202 ../src/guestfs-actions.pod:1804
6657 msgid ""
6658 "This returns a list of strings I<without any prefix>.  Thus if the directory "
6659 "structure was:"
6660 msgstr ""
6661
6662 #. type: verbatim
6663 #: ../fish/guestfish-actions.pod:1205 ../src/guestfs-actions.pod:1807
6664 #, no-wrap
6665 msgid ""
6666 " /tmp/a\n"
6667 " /tmp/b\n"
6668 " /tmp/c/d\n"
6669 "\n"
6670 msgstr ""
6671
6672 #. type: textblock
6673 #: ../fish/guestfish-actions.pod:1209
6674 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
6675 msgstr ""
6676
6677 #. type: verbatim
6678 #: ../fish/guestfish-actions.pod:1212 ../src/guestfs-actions.pod:1814
6679 #, no-wrap
6680 msgid ""
6681 " a\n"
6682 " b\n"
6683 " c\n"
6684 " c/d\n"
6685 "\n"
6686 msgstr ""
6687
6688 #. type: textblock
6689 #: ../fish/guestfish-actions.pod:1217 ../src/guestfs-actions.pod:1819
6690 msgid "If C<directory> is not a directory, then this command returns an error."
6691 msgstr ""
6692
6693 #. type: textblock
6694 #: ../fish/guestfish-actions.pod:1220 ../src/guestfs-actions.pod:1822
6695 msgid "The returned list is sorted."
6696 msgstr ""
6697
6698 #. type: textblock
6699 #: ../fish/guestfish-actions.pod:1222
6700 msgid "See also L</find0>."
6701 msgstr ""
6702
6703 #. type: =head2
6704 #: ../fish/guestfish-actions.pod:1227
6705 msgid "find0"
6706 msgstr ""
6707
6708 #. type: verbatim
6709 #: ../fish/guestfish-actions.pod:1229
6710 #, no-wrap
6711 msgid ""
6712 " find0 directory (files|-)\n"
6713 "\n"
6714 msgstr ""
6715
6716 #. type: textblock
6717 #: ../fish/guestfish-actions.pod:1231 ../src/guestfs-actions.pod:1842
6718 msgid ""
6719 "This command lists out all files and directories, recursively, starting at "
6720 "C<directory>, placing the resulting list in the external file called "
6721 "C<files>."
6722 msgstr ""
6723
6724 #. type: textblock
6725 #: ../fish/guestfish-actions.pod:1235
6726 msgid ""
6727 "This command works the same way as L</find> with the following exceptions:"
6728 msgstr ""
6729
6730 #. type: textblock
6731 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:1853
6732 msgid "The resulting list is written to an external file."
6733 msgstr ""
6734
6735 #. type: textblock
6736 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:1857
6737 msgid ""
6738 "Items (filenames) in the result are separated by C<\\0> characters.  See "
6739 "L<find(1)> option I<-print0>."
6740 msgstr ""
6741
6742 #. type: textblock
6743 #: ../fish/guestfish-actions.pod:1251 ../src/guestfs-actions.pod:1862
6744 msgid "This command is not limited in the number of names that it can return."
6745 msgstr ""
6746
6747 #. type: textblock
6748 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:1867
6749 msgid "The result list is not sorted."
6750 msgstr ""
6751
6752 #. type: =head2
6753 #: ../fish/guestfish-actions.pod:1262
6754 msgid "findfs-label"
6755 msgstr ""
6756
6757 #. type: verbatim
6758 #: ../fish/guestfish-actions.pod:1264
6759 #, no-wrap
6760 msgid ""
6761 " findfs-label label\n"
6762 "\n"
6763 msgstr ""
6764
6765 #. type: textblock
6766 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1881
6767 msgid ""
6768 "This command searches the filesystems and returns the one which has the "
6769 "given label.  An error is returned if no such filesystem can be found."
6770 msgstr ""
6771
6772 #. type: textblock
6773 #: ../fish/guestfish-actions.pod:1270
6774 msgid "To find the label of a filesystem, use L</vfs-label>."
6775 msgstr ""
6776
6777 #. type: =head2
6778 #: ../fish/guestfish-actions.pod:1272
6779 msgid "findfs-uuid"
6780 msgstr ""
6781
6782 #. type: verbatim
6783 #: ../fish/guestfish-actions.pod:1274
6784 #, no-wrap
6785 msgid ""
6786 " findfs-uuid uuid\n"
6787 "\n"
6788 msgstr ""
6789
6790 #. type: textblock
6791 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:1898
6792 msgid ""
6793 "This command searches the filesystems and returns the one which has the "
6794 "given UUID.  An error is returned if no such filesystem can be found."
6795 msgstr ""
6796
6797 #. type: textblock
6798 #: ../fish/guestfish-actions.pod:1280
6799 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
6800 msgstr ""
6801
6802 #. type: =head2
6803 #: ../fish/guestfish-actions.pod:1282
6804 msgid "fsck"
6805 msgstr ""
6806
6807 #. type: verbatim
6808 #: ../fish/guestfish-actions.pod:1284
6809 #, no-wrap
6810 msgid ""
6811 " fsck fstype device\n"
6812 "\n"
6813 msgstr ""
6814
6815 #. type: textblock
6816 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1916
6817 msgid ""
6818 "This runs the filesystem checker (fsck) on C<device> which should have "
6819 "filesystem type C<fstype>."
6820 msgstr ""
6821
6822 #. type: textblock
6823 #: ../fish/guestfish-actions.pod:1289 ../src/guestfs-actions.pod:1919
6824 msgid ""
6825 "The returned integer is the status.  See L<fsck(8)> for the list of status "
6826 "codes from C<fsck>."
6827 msgstr ""
6828
6829 #. type: textblock
6830 #: ../fish/guestfish-actions.pod:1298 ../src/guestfs-actions.pod:1928
6831 msgid "Multiple status codes can be summed together."
6832 msgstr ""
6833
6834 #. type: textblock
6835 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:1932
6836 msgid ""
6837 "A non-zero return code can mean \"success\", for example if errors have been "
6838 "corrected on the filesystem."
6839 msgstr ""
6840
6841 #. type: textblock
6842 #: ../fish/guestfish-actions.pod:1307 ../src/guestfs-actions.pod:1937
6843 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
6844 msgstr ""
6845
6846 #. type: textblock
6847 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:1942
6848 msgid ""
6849 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
6850 msgstr ""
6851
6852 #. type: =head2
6853 #: ../fish/guestfish-actions.pod:1314
6854 msgid "get-append"
6855 msgstr ""
6856
6857 #. type: verbatim
6858 #: ../fish/guestfish-actions.pod:1316
6859 #, no-wrap
6860 msgid ""
6861 " get-append\n"
6862 "\n"
6863 msgstr ""
6864
6865 #. type: textblock
6866 #: ../fish/guestfish-actions.pod:1318 ../src/guestfs-actions.pod:1953
6867 msgid ""
6868 "Return the additional kernel options which are added to the guest kernel "
6869 "command line."
6870 msgstr ""
6871
6872 #. type: textblock
6873 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:1956
6874 msgid "If C<NULL> then no options are added."
6875 msgstr ""
6876
6877 #. type: =head2
6878 #: ../fish/guestfish-actions.pod:1323
6879 msgid "get-attach-method"
6880 msgstr ""
6881
6882 #. type: verbatim
6883 #: ../fish/guestfish-actions.pod:1325
6884 #, no-wrap
6885 msgid ""
6886 " get-attach-method\n"
6887 "\n"
6888 msgstr ""
6889
6890 #. type: textblock
6891 #: ../fish/guestfish-actions.pod:1327
6892 msgid "Return the current attach method.  See L</set-attach-method>."
6893 msgstr ""
6894
6895 #. type: =head2
6896 #: ../fish/guestfish-actions.pod:1329
6897 msgid "get-autosync"
6898 msgstr ""
6899
6900 #. type: verbatim
6901 #: ../fish/guestfish-actions.pod:1331
6902 #, no-wrap
6903 msgid ""
6904 " get-autosync\n"
6905 "\n"
6906 msgstr ""
6907
6908 #. type: textblock
6909 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:1981
6910 msgid "Get the autosync flag."
6911 msgstr ""
6912
6913 #. type: =head2
6914 #: ../fish/guestfish-actions.pod:1335
6915 msgid "get-direct"
6916 msgstr ""
6917
6918 #. type: verbatim
6919 #: ../fish/guestfish-actions.pod:1337
6920 #, no-wrap
6921 msgid ""
6922 " get-direct\n"
6923 "\n"
6924 msgstr ""
6925
6926 #. type: textblock
6927 #: ../fish/guestfish-actions.pod:1339 ../src/guestfs-actions.pod:1992
6928 msgid "Return the direct appliance mode flag."
6929 msgstr ""
6930
6931 #. type: =head2
6932 #: ../fish/guestfish-actions.pod:1341
6933 msgid "get-e2label"
6934 msgstr ""
6935
6936 #. type: verbatim
6937 #: ../fish/guestfish-actions.pod:1343
6938 #, no-wrap
6939 msgid ""
6940 " get-e2label device\n"
6941 "\n"
6942 msgstr ""
6943
6944 #. type: textblock
6945 #: ../fish/guestfish-actions.pod:1345 ../src/guestfs-actions.pod:2011
6946 msgid ""
6947 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
6948 msgstr ""
6949
6950 #. type: textblock
6951 #: ../fish/guestfish-actions.pod:1348
6952 msgid ""
6953 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
6954 "instead."
6955 msgstr ""
6956
6957 #. type: =head2
6958 #: ../fish/guestfish-actions.pod:1355
6959 msgid "get-e2uuid"
6960 msgstr ""
6961
6962 #. type: verbatim
6963 #: ../fish/guestfish-actions.pod:1357
6964 #, no-wrap
6965 msgid ""
6966 " get-e2uuid device\n"
6967 "\n"
6968 msgstr ""
6969
6970 #. type: textblock
6971 #: ../fish/guestfish-actions.pod:1359 ../src/guestfs-actions.pod:2032
6972 msgid ""
6973 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
6974 msgstr ""
6975
6976 #. type: textblock
6977 #: ../fish/guestfish-actions.pod:1362
6978 msgid ""
6979 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
6980 "instead."
6981 msgstr ""
6982
6983 #. type: =head2
6984 #: ../fish/guestfish-actions.pod:1369
6985 msgid "get-memsize"
6986 msgstr ""
6987
6988 #. type: verbatim
6989 #: ../fish/guestfish-actions.pod:1371
6990 #, no-wrap
6991 msgid ""
6992 " get-memsize\n"
6993 "\n"
6994 msgstr ""
6995
6996 #. type: textblock
6997 #: ../fish/guestfish-actions.pod:1373 ../src/guestfs-actions.pod:2045
6998 msgid ""
6999 "This gets the memory size in megabytes allocated to the qemu subprocess."
7000 msgstr ""
7001
7002 #. type: textblock
7003 #: ../fish/guestfish-actions.pod:1376
7004 msgid ""
7005 "If L</set-memsize> was not called on this handle, and if "
7006 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7007 "value for memsize."
7008 msgstr ""
7009
7010 #. type: textblock
7011 #: ../fish/guestfish-actions.pod:1380 ../fish/guestfish-actions.pod:1437
7012 #: ../fish/guestfish-actions.pod:4168 ../fish/guestfish-actions.pod:4270
7013 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2144
7014 #: ../src/guestfs-actions.pod:6298 ../src/guestfs-actions.pod:6424
7015 msgid ""
7016 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7017 msgstr ""
7018
7019 #. type: =head2
7020 #: ../fish/guestfish-actions.pod:1383
7021 msgid "get-network"
7022 msgstr ""
7023
7024 #. type: verbatim
7025 #: ../fish/guestfish-actions.pod:1385
7026 #, no-wrap
7027 msgid ""
7028 " get-network\n"
7029 "\n"
7030 msgstr ""
7031
7032 #. type: textblock
7033 #: ../fish/guestfish-actions.pod:1387 ../src/guestfs-actions.pod:2064
7034 msgid "This returns the enable network flag."
7035 msgstr ""
7036
7037 #. type: =head2
7038 #: ../fish/guestfish-actions.pod:1389
7039 msgid "get-path"
7040 msgstr ""
7041
7042 #. type: verbatim
7043 #: ../fish/guestfish-actions.pod:1391
7044 #, no-wrap
7045 msgid ""
7046 " get-path\n"
7047 "\n"
7048 msgstr ""
7049
7050 #. type: textblock
7051 #: ../fish/guestfish-actions.pod:1393 ../src/guestfs-actions.pod:2075
7052 msgid "Return the current search path."
7053 msgstr ""
7054
7055 #. type: textblock
7056 #: ../fish/guestfish-actions.pod:1395 ../src/guestfs-actions.pod:2077
7057 msgid ""
7058 "This is always non-NULL.  If it wasn't set already, then this will return "
7059 "the default path."
7060 msgstr ""
7061
7062 #. type: =head2
7063 #: ../fish/guestfish-actions.pod:1398
7064 msgid "get-pgroup"
7065 msgstr ""
7066
7067 #. type: verbatim
7068 #: ../fish/guestfish-actions.pod:1400
7069 #, no-wrap
7070 msgid ""
7071 " get-pgroup\n"
7072 "\n"
7073 msgstr ""
7074
7075 #. type: textblock
7076 #: ../fish/guestfish-actions.pod:1402 ../src/guestfs-actions.pod:2090
7077 msgid "This returns the process group flag."
7078 msgstr ""
7079
7080 #. type: =head2
7081 #: ../fish/guestfish-actions.pod:1404
7082 msgid "get-pid"
7083 msgstr ""
7084
7085 #. type: =head2
7086 #: ../fish/guestfish-actions.pod:1406
7087 msgid "pid"
7088 msgstr ""
7089
7090 #. type: verbatim
7091 #: ../fish/guestfish-actions.pod:1408
7092 #, no-wrap
7093 msgid ""
7094 " get-pid\n"
7095 "\n"
7096 msgstr ""
7097
7098 #. type: textblock
7099 #: ../fish/guestfish-actions.pod:1410 ../src/guestfs-actions.pod:2101
7100 msgid ""
7101 "Return the process ID of the qemu subprocess.  If there is no qemu "
7102 "subprocess, then this will return an error."
7103 msgstr ""
7104
7105 #. type: textblock
7106 #: ../fish/guestfish-actions.pod:1413 ../src/guestfs-actions.pod:2104
7107 msgid "This is an internal call used for debugging and testing."
7108 msgstr ""
7109
7110 #. type: =head2
7111 #: ../fish/guestfish-actions.pod:1415
7112 msgid "get-qemu"
7113 msgstr ""
7114
7115 #. type: verbatim
7116 #: ../fish/guestfish-actions.pod:1417
7117 #, no-wrap
7118 msgid ""
7119 " get-qemu\n"
7120 "\n"
7121 msgstr ""
7122
7123 #. type: textblock
7124 #: ../fish/guestfish-actions.pod:1419 ../src/guestfs-actions.pod:2115
7125 msgid "Return the current qemu binary."
7126 msgstr ""
7127
7128 #. type: textblock
7129 #: ../fish/guestfish-actions.pod:1421 ../src/guestfs-actions.pod:2117
7130 msgid ""
7131 "This is always non-NULL.  If it wasn't set already, then this will return "
7132 "the default qemu binary name."
7133 msgstr ""
7134
7135 #. type: =head2
7136 #: ../fish/guestfish-actions.pod:1424
7137 msgid "get-recovery-proc"
7138 msgstr ""
7139
7140 #. type: verbatim
7141 #: ../fish/guestfish-actions.pod:1426
7142 #, no-wrap
7143 msgid ""
7144 " get-recovery-proc\n"
7145 "\n"
7146 msgstr ""
7147
7148 #. type: textblock
7149 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2130
7150 msgid "Return the recovery process enabled flag."
7151 msgstr ""
7152
7153 #. type: =head2
7154 #: ../fish/guestfish-actions.pod:1430
7155 msgid "get-selinux"
7156 msgstr ""
7157
7158 #. type: verbatim
7159 #: ../fish/guestfish-actions.pod:1432
7160 #, no-wrap
7161 msgid ""
7162 " get-selinux\n"
7163 "\n"
7164 msgstr ""
7165
7166 #. type: textblock
7167 #: ../fish/guestfish-actions.pod:1434
7168 msgid ""
7169 "This returns the current setting of the selinux flag which is passed to the "
7170 "appliance at boot time.  See L</set-selinux>."
7171 msgstr ""
7172
7173 #. type: =head2
7174 #: ../fish/guestfish-actions.pod:1440
7175 msgid "get-state"
7176 msgstr ""
7177
7178 #. type: verbatim
7179 #: ../fish/guestfish-actions.pod:1442
7180 #, no-wrap
7181 msgid ""
7182 " get-state\n"
7183 "\n"
7184 msgstr ""
7185
7186 #. type: textblock
7187 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2156
7188 msgid ""
7189 "This returns the current state as an opaque integer.  This is only useful "
7190 "for printing debug and internal error messages."
7191 msgstr ""
7192
7193 #. type: textblock
7194 #: ../fish/guestfish-actions.pod:1447 ../fish/guestfish-actions.pod:2367
7195 #: ../fish/guestfish-actions.pod:2385 ../fish/guestfish-actions.pod:2423
7196 #: ../fish/guestfish-actions.pod:2439 ../src/guestfs-actions.pod:2159
7197 #: ../src/guestfs-actions.pod:3439 ../src/guestfs-actions.pod:3468
7198 #: ../src/guestfs-actions.pod:3529 ../src/guestfs-actions.pod:3556
7199 msgid "For more information on states, see L<guestfs(3)>."
7200 msgstr ""
7201
7202 #. type: =head2
7203 #: ../fish/guestfish-actions.pod:1449
7204 msgid "get-trace"
7205 msgstr ""
7206
7207 #. type: verbatim
7208 #: ../fish/guestfish-actions.pod:1451
7209 #, no-wrap
7210 msgid ""
7211 " get-trace\n"
7212 "\n"
7213 msgstr ""
7214
7215 #. type: textblock
7216 #: ../fish/guestfish-actions.pod:1453 ../src/guestfs-actions.pod:2170
7217 msgid "Return the command trace flag."
7218 msgstr ""
7219
7220 #. type: =head2
7221 #: ../fish/guestfish-actions.pod:1455
7222 msgid "get-umask"
7223 msgstr ""
7224
7225 #. type: verbatim
7226 #: ../fish/guestfish-actions.pod:1457
7227 #, no-wrap
7228 msgid ""
7229 " get-umask\n"
7230 "\n"
7231 msgstr ""
7232
7233 #. type: textblock
7234 #: ../fish/guestfish-actions.pod:1459
7235 msgid ""
7236 "Return the current umask.  By default the umask is C<022> unless it has been "
7237 "set by calling L</umask>."
7238 msgstr ""
7239
7240 #. type: =head2
7241 #: ../fish/guestfish-actions.pod:1462
7242 msgid "get-verbose"
7243 msgstr ""
7244
7245 #. type: verbatim
7246 #: ../fish/guestfish-actions.pod:1464
7247 #, no-wrap
7248 msgid ""
7249 " get-verbose\n"
7250 "\n"
7251 msgstr ""
7252
7253 #. type: textblock
7254 #: ../fish/guestfish-actions.pod:1466 ../src/guestfs-actions.pod:2193
7255 msgid "This returns the verbose messages flag."
7256 msgstr ""
7257
7258 #. type: =head2
7259 #: ../fish/guestfish-actions.pod:1468
7260 msgid "getcon"
7261 msgstr ""
7262
7263 #. type: verbatim
7264 #: ../fish/guestfish-actions.pod:1470
7265 #, no-wrap
7266 msgid ""
7267 " getcon\n"
7268 "\n"
7269 msgstr ""
7270
7271 #. type: textblock
7272 #: ../fish/guestfish-actions.pod:1472 ../src/guestfs-actions.pod:2204
7273 msgid "This gets the SELinux security context of the daemon."
7274 msgstr ""
7275
7276 #. type: textblock
7277 #: ../fish/guestfish-actions.pod:1474
7278 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
7279 msgstr ""
7280
7281 #. type: =head2
7282 #: ../fish/guestfish-actions.pod:1477
7283 msgid "getxattr"
7284 msgstr ""
7285
7286 #. type: verbatim
7287 #: ../fish/guestfish-actions.pod:1479
7288 #, no-wrap
7289 msgid ""
7290 " getxattr path name\n"
7291 "\n"
7292 msgstr ""
7293
7294 #. type: textblock
7295 #: ../fish/guestfish-actions.pod:1481
7296 msgid ""
7297 "Get a single extended attribute from file C<path> named C<name>.  This call "
7298 "follows symlinks.  If you want to lookup an extended attribute for the "
7299 "symlink itself, use L</lgetxattr>."
7300 msgstr ""
7301
7302 #. type: textblock
7303 #: ../fish/guestfish-actions.pod:1485 ../fish/guestfish-actions.pod:2512
7304 msgid ""
7305 "Normally it is better to get all extended attributes from a file in one go "
7306 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
7307 "buggy and do not provide a way to list out attributes.  For these "
7308 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
7309 "attributes you want in advance and call this function."
7310 msgstr ""
7311
7312 #. type: textblock
7313 #: ../fish/guestfish-actions.pod:1492 ../fish/guestfish-actions.pod:2519
7314 #: ../src/guestfs-actions.pod:2233 ../src/guestfs-actions.pod:3689
7315 msgid ""
7316 "Extended attribute values are blobs of binary data.  If there is no extended "
7317 "attribute named C<name>, this returns an error."
7318 msgstr ""
7319
7320 #. type: textblock
7321 #: ../fish/guestfish-actions.pod:1495
7322 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7323 msgstr ""
7324
7325 #. type: =head2
7326 #: ../fish/guestfish-actions.pod:1497
7327 msgid "getxattrs"
7328 msgstr ""
7329
7330 #. type: verbatim
7331 #: ../fish/guestfish-actions.pod:1499
7332 #, no-wrap
7333 msgid ""
7334 " getxattrs path\n"
7335 "\n"
7336 msgstr ""
7337
7338 #. type: textblock
7339 #: ../fish/guestfish-actions.pod:1501 ../src/guestfs-actions.pod:2250
7340 msgid ""
7341 "This call lists the extended attributes of the file or directory C<path>."
7342 msgstr ""
7343
7344 #. type: textblock
7345 #: ../fish/guestfish-actions.pod:1504 ../src/guestfs-actions.pod:2253
7346 msgid ""
7347 "At the system call level, this is a combination of the L<listxattr(2)> and "
7348 "L<getxattr(2)> calls."
7349 msgstr ""
7350
7351 #. type: textblock
7352 #: ../fish/guestfish-actions.pod:1507
7353 msgid "See also: L</lgetxattrs>, L<attr(5)>."
7354 msgstr ""
7355
7356 #. type: =head2
7357 #: ../fish/guestfish-actions.pod:1509
7358 msgid "glob-expand"
7359 msgstr ""
7360
7361 #. type: verbatim
7362 #: ../fish/guestfish-actions.pod:1511
7363 #, no-wrap
7364 msgid ""
7365 " glob-expand pattern\n"
7366 "\n"
7367 msgstr ""
7368
7369 #. type: textblock
7370 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2270
7371 msgid ""
7372 "This command searches for all the pathnames matching C<pattern> according to "
7373 "the wildcard expansion rules used by the shell."
7374 msgstr ""
7375
7376 #. type: textblock
7377 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2274
7378 msgid ""
7379 "If no paths match, then this returns an empty list (note: not an error)."
7380 msgstr ""
7381
7382 #. type: textblock
7383 #: ../fish/guestfish-actions.pod:1520 ../src/guestfs-actions.pod:2277
7384 msgid ""
7385 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
7386 "GLOB_BRACE>.  See that manual page for more details."
7387 msgstr ""
7388
7389 #. type: =head2
7390 #: ../fish/guestfish-actions.pod:1524
7391 msgid "grep"
7392 msgstr ""
7393
7394 #. type: verbatim
7395 #: ../fish/guestfish-actions.pod:1526
7396 #, no-wrap
7397 msgid ""
7398 " grep regex path\n"
7399 "\n"
7400 msgstr ""
7401
7402 #. type: textblock
7403 #: ../fish/guestfish-actions.pod:1528 ../src/guestfs-actions.pod:2294
7404 msgid "This calls the external C<grep> program and returns the matching lines."
7405 msgstr ""
7406
7407 #. type: =head2
7408 #: ../fish/guestfish-actions.pod:1534
7409 msgid "grepi"
7410 msgstr ""
7411
7412 #. type: verbatim
7413 #: ../fish/guestfish-actions.pod:1536
7414 #, no-wrap
7415 msgid ""
7416 " grepi regex path\n"
7417 "\n"
7418 msgstr ""
7419
7420 #. type: textblock
7421 #: ../fish/guestfish-actions.pod:1538 ../src/guestfs-actions.pod:2313
7422 msgid ""
7423 "This calls the external C<grep -i> program and returns the matching lines."
7424 msgstr ""
7425
7426 #. type: =head2
7427 #: ../fish/guestfish-actions.pod:1544
7428 msgid "grub-install"
7429 msgstr ""
7430
7431 #. type: verbatim
7432 #: ../fish/guestfish-actions.pod:1546
7433 #, no-wrap
7434 msgid ""
7435 " grub-install root device\n"
7436 "\n"
7437 msgstr ""
7438
7439 #. type: textblock
7440 #: ../fish/guestfish-actions.pod:1548 ../src/guestfs-actions.pod:2332
7441 msgid ""
7442 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7443 "the root directory being C<root>."
7444 msgstr ""
7445
7446 #. type: textblock
7447 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2335
7448 msgid ""
7449 "Note: If grub-install reports the error \"No suitable drive was found in the "
7450 "generated device map.\" it may be that you need to create a C</boot/grub/"
7451 "device.map> file first that contains the mapping between grub device names "
7452 "and Linux device names.  It is usually sufficient to create a file "
7453 "containing:"
7454 msgstr ""
7455
7456 #. type: verbatim
7457 #: ../fish/guestfish-actions.pod:1558 ../src/guestfs-actions.pod:2342
7458 #, no-wrap
7459 msgid ""
7460 " (hd0) /dev/vda\n"
7461 "\n"
7462 msgstr ""
7463
7464 #. type: textblock
7465 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2344
7466 msgid "replacing C</dev/vda> with the name of the installation device."
7467 msgstr ""
7468
7469 #. type: =head2
7470 #: ../fish/guestfish-actions.pod:1562
7471 msgid "head"
7472 msgstr ""
7473
7474 #. type: verbatim
7475 #: ../fish/guestfish-actions.pod:1564
7476 #, no-wrap
7477 msgid ""
7478 " head path\n"
7479 "\n"
7480 msgstr ""
7481
7482 #. type: textblock
7483 #: ../fish/guestfish-actions.pod:1566 ../src/guestfs-actions.pod:2356
7484 msgid ""
7485 "This command returns up to the first 10 lines of a file as a list of strings."
7486 msgstr ""
7487
7488 #. type: =head2
7489 #: ../fish/guestfish-actions.pod:1572
7490 msgid "head-n"
7491 msgstr ""
7492
7493 #. type: verbatim
7494 #: ../fish/guestfish-actions.pod:1574
7495 #, no-wrap
7496 msgid ""
7497 " head-n nrlines path\n"
7498 "\n"
7499 msgstr ""
7500
7501 #. type: textblock
7502 #: ../fish/guestfish-actions.pod:1576 ../src/guestfs-actions.pod:2375
7503 msgid ""
7504 "If the parameter C<nrlines> is a positive number, this returns the first "
7505 "C<nrlines> lines of the file C<path>."
7506 msgstr ""
7507
7508 #. type: textblock
7509 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2378
7510 msgid ""
7511 "If the parameter C<nrlines> is a negative number, this returns lines from "
7512 "the file C<path>, excluding the last C<nrlines> lines."
7513 msgstr ""
7514
7515 #. type: textblock
7516 #: ../fish/guestfish-actions.pod:1582 ../fish/guestfish-actions.pod:4648
7517 #: ../src/guestfs-actions.pod:2381 ../src/guestfs-actions.pod:6996
7518 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7519 msgstr ""
7520
7521 #. type: =head2
7522 #: ../fish/guestfish-actions.pod:1587
7523 msgid "hexdump"
7524 msgstr ""
7525
7526 #. type: verbatim
7527 #: ../fish/guestfish-actions.pod:1589
7528 #, no-wrap
7529 msgid ""
7530 " hexdump path\n"
7531 "\n"
7532 msgstr ""
7533
7534 #. type: textblock
7535 #: ../fish/guestfish-actions.pod:1591 ../src/guestfs-actions.pod:2398
7536 msgid ""
7537 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
7538 "readable, canonical hex dump of the file."
7539 msgstr ""
7540
7541 #. type: =head2
7542 #: ../fish/guestfish-actions.pod:1597
7543 msgid "initrd-cat"
7544 msgstr ""
7545
7546 #. type: verbatim
7547 #: ../fish/guestfish-actions.pod:1599
7548 #, no-wrap
7549 msgid ""
7550 " initrd-cat initrdpath filename\n"
7551 "\n"
7552 msgstr ""
7553
7554 #. type: textblock
7555 #: ../fish/guestfish-actions.pod:1601 ../src/guestfs-actions.pod:2417
7556 msgid ""
7557 "This command unpacks the file C<filename> from the initrd file called "
7558 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7559 "character."
7560 msgstr ""
7561
7562 #. type: textblock
7563 #: ../fish/guestfish-actions.pod:1605 ../src/guestfs-actions.pod:2421
7564 msgid ""
7565 "For example, in guestfish you could use the following command to examine the "
7566 "boot script (usually called C</init>)  contained in a Linux initrd or "
7567 "initramfs image:"
7568 msgstr ""
7569
7570 #. type: verbatim
7571 #: ../fish/guestfish-actions.pod:1609 ../src/guestfs-actions.pod:2425
7572 #, no-wrap
7573 msgid ""
7574 " initrd-cat /boot/initrd-<version>.img init\n"
7575 "\n"
7576 msgstr ""
7577
7578 #. type: textblock
7579 #: ../fish/guestfish-actions.pod:1611
7580 msgid "See also L</initrd-list>."
7581 msgstr ""
7582
7583 #. type: =head2
7584 #: ../fish/guestfish-actions.pod:1616
7585 msgid "initrd-list"
7586 msgstr ""
7587
7588 #. type: verbatim
7589 #: ../fish/guestfish-actions.pod:1618
7590 #, no-wrap
7591 msgid ""
7592 " initrd-list path\n"
7593 "\n"
7594 msgstr ""
7595
7596 #. type: textblock
7597 #: ../fish/guestfish-actions.pod:1620 ../src/guestfs-actions.pod:2444
7598 msgid "This command lists out files contained in an initrd."
7599 msgstr ""
7600
7601 #. type: textblock
7602 #: ../fish/guestfish-actions.pod:1622 ../src/guestfs-actions.pod:2446
7603 msgid ""
7604 "The files are listed without any initial C</> character.  The files are "
7605 "listed in the order they appear (not necessarily alphabetical).  Directory "
7606 "names are listed as separate items."
7607 msgstr ""
7608
7609 #. type: textblock
7610 #: ../fish/guestfish-actions.pod:1626 ../src/guestfs-actions.pod:2450
7611 msgid ""
7612 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
7613 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
7614 "files)."
7615 msgstr ""
7616
7617 #. type: =head2
7618 #: ../fish/guestfish-actions.pod:1630
7619 msgid "inotify-add-watch"
7620 msgstr ""
7621
7622 #. type: verbatim
7623 #: ../fish/guestfish-actions.pod:1632
7624 #, no-wrap
7625 msgid ""
7626 " inotify-add-watch path mask\n"
7627 "\n"
7628 msgstr ""
7629
7630 #. type: textblock
7631 #: ../fish/guestfish-actions.pod:1634 ../src/guestfs-actions.pod:2467
7632 msgid "Watch C<path> for the events listed in C<mask>."
7633 msgstr ""
7634
7635 #. type: textblock
7636 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2469
7637 msgid ""
7638 "Note that if C<path> is a directory then events within that directory are "
7639 "watched, but this does I<not> happen recursively (in subdirectories)."
7640 msgstr ""
7641
7642 #. type: textblock
7643 #: ../fish/guestfish-actions.pod:1640 ../src/guestfs-actions.pod:2473
7644 msgid ""
7645 "Note for non-C or non-Linux callers: the inotify events are defined by the "
7646 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
7647 msgstr ""
7648
7649 #. type: =head2
7650 #: ../fish/guestfish-actions.pod:1644
7651 msgid "inotify-close"
7652 msgstr ""
7653
7654 #. type: verbatim
7655 #: ../fish/guestfish-actions.pod:1646
7656 #, no-wrap
7657 msgid ""
7658 " inotify-close\n"
7659 "\n"
7660 msgstr ""
7661
7662 #. type: textblock
7663 #: ../fish/guestfish-actions.pod:1648 ../src/guestfs-actions.pod:2486
7664 msgid ""
7665 "This closes the inotify handle which was previously opened by inotify_init.  "
7666 "It removes all watches, throws away any pending events, and deallocates all "
7667 "resources."
7668 msgstr ""
7669
7670 #. type: =head2
7671 #: ../fish/guestfish-actions.pod:1652
7672 msgid "inotify-files"
7673 msgstr ""
7674
7675 #. type: verbatim
7676 #: ../fish/guestfish-actions.pod:1654
7677 #, no-wrap
7678 msgid ""
7679 " inotify-files\n"
7680 "\n"
7681 msgstr ""
7682
7683 #. type: textblock
7684 #: ../fish/guestfish-actions.pod:1656
7685 msgid ""
7686 "This function is a helpful wrapper around L</inotify-read> which just "
7687 "returns a list of pathnames of objects that were touched.  The returned "
7688 "pathnames are sorted and deduplicated."
7689 msgstr ""
7690
7691 #. type: =head2
7692 #: ../fish/guestfish-actions.pod:1660
7693 msgid "inotify-init"
7694 msgstr ""
7695
7696 #. type: verbatim
7697 #: ../fish/guestfish-actions.pod:1662
7698 #, no-wrap
7699 msgid ""
7700 " inotify-init maxevents\n"
7701 "\n"
7702 msgstr ""
7703
7704 #. type: textblock
7705 #: ../fish/guestfish-actions.pod:1664 ../src/guestfs-actions.pod:2515
7706 msgid ""
7707 "This command creates a new inotify handle.  The inotify subsystem can be "
7708 "used to notify events which happen to objects in the guest filesystem."
7709 msgstr ""
7710
7711 #. type: textblock
7712 #: ../fish/guestfish-actions.pod:1668
7713 msgid ""
7714 "C<maxevents> is the maximum number of events which will be queued up between "
7715 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
7716 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
7717 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
7718 "but records the fact that it threw them away by setting a flag "
7719 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
7720 msgstr ""
7721
7722 #. type: textblock
7723 #: ../fish/guestfish-actions.pod:1678
7724 msgid ""
7725 "Before any events are generated, you have to add some watches to the "
7726 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
7727 "L</inotify-watch-all>."
7728 msgstr ""
7729
7730 #. type: textblock
7731 #: ../fish/guestfish-actions.pod:1684
7732 msgid ""
7733 "Queued up events should be read periodically by calling L</inotify-read> (or "
7734 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
7735 "If you don't read the events out often enough then you risk the internal "
7736 "queue overflowing."
7737 msgstr ""
7738
7739 #. type: textblock
7740 #: ../fish/guestfish-actions.pod:1691
7741 msgid ""
7742 "The handle should be closed after use by calling L</inotify-close>.  This "
7743 "also removes any watches automatically."
7744 msgstr ""
7745
7746 #. type: textblock
7747 #: ../fish/guestfish-actions.pod:1695 ../src/guestfs-actions.pod:2546
7748 msgid ""
7749 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
7750 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
7751 "that there is one global inotify handle per libguestfs instance."
7752 msgstr ""
7753
7754 #. type: =head2
7755 #: ../fish/guestfish-actions.pod:1700
7756 msgid "inotify-read"
7757 msgstr ""
7758
7759 #. type: verbatim
7760 #: ../fish/guestfish-actions.pod:1702
7761 #, no-wrap
7762 msgid ""
7763 " inotify-read\n"
7764 "\n"
7765 msgstr ""
7766
7767 #. type: textblock
7768 #: ../fish/guestfish-actions.pod:1704 ../src/guestfs-actions.pod:2560
7769 msgid ""
7770 "Return the complete queue of events that have happened since the previous "
7771 "read call."
7772 msgstr ""
7773
7774 #. type: textblock
7775 #: ../fish/guestfish-actions.pod:1707 ../src/guestfs-actions.pod:2563
7776 msgid "If no events have happened, this returns an empty list."
7777 msgstr ""
7778
7779 #. type: textblock
7780 #: ../fish/guestfish-actions.pod:1709 ../src/guestfs-actions.pod:2565
7781 msgid ""
7782 "I<Note>: In order to make sure that all events have been read, you must call "
7783 "this function repeatedly until it returns an empty list.  The reason is that "
7784 "the call will read events up to the maximum appliance-to-host message size "
7785 "and leave remaining events in the queue."
7786 msgstr ""
7787
7788 #. type: =head2
7789 #: ../fish/guestfish-actions.pod:1715
7790 msgid "inotify-rm-watch"
7791 msgstr ""
7792
7793 #. type: verbatim
7794 #: ../fish/guestfish-actions.pod:1717
7795 #, no-wrap
7796 msgid ""
7797 " inotify-rm-watch wd\n"
7798 "\n"
7799 msgstr ""
7800
7801 #. type: textblock
7802 #: ../fish/guestfish-actions.pod:1719
7803 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
7804 msgstr ""
7805
7806 #. type: =head2
7807 #: ../fish/guestfish-actions.pod:1722
7808 msgid "inspect-get-arch"
7809 msgstr ""
7810
7811 #. type: verbatim
7812 #: ../fish/guestfish-actions.pod:1724
7813 #, no-wrap
7814 msgid ""
7815 " inspect-get-arch root\n"
7816 "\n"
7817 msgstr ""
7818
7819 #. type: textblock
7820 #: ../fish/guestfish-actions.pod:1726
7821 msgid ""
7822 "This returns the architecture of the inspected operating system.  The "
7823 "possible return values are listed under L</file-architecture>."
7824 msgstr ""
7825
7826 #. type: textblock
7827 #: ../fish/guestfish-actions.pod:1730 ../src/guestfs-actions.pod:2600
7828 msgid ""
7829 "If the architecture could not be determined, then the string C<unknown> is "
7830 "returned."
7831 msgstr ""
7832
7833 #. type: textblock
7834 #: ../fish/guestfish-actions.pod:1733 ../fish/guestfish-actions.pod:1816
7835 #: ../fish/guestfish-actions.pod:1895 ../fish/guestfish-actions.pod:1907
7836 #: ../fish/guestfish-actions.pod:1991 ../fish/guestfish-actions.pod:2052
7837 #: ../fish/guestfish-actions.pod:2073 ../fish/guestfish-actions.pod:2087
7838 #: ../fish/guestfish-actions.pod:2127 ../fish/guestfish-actions.pod:2159
7839 #: ../fish/guestfish-actions.pod:2172 ../fish/guestfish-actions.pod:2185
7840 #: ../fish/guestfish-actions.pod:2195 ../fish/guestfish-actions.pod:2205
7841 #: ../fish/guestfish-actions.pod:2217 ../fish/guestfish-actions.pod:2313
7842 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:2603
7843 #: ../src/guestfs-actions.pod:2693 ../src/guestfs-actions.pod:2797
7844 #: ../src/guestfs-actions.pod:2816 ../src/guestfs-actions.pod:2947
7845 #: ../src/guestfs-actions.pod:3030 ../src/guestfs-actions.pod:3058
7846 #: ../src/guestfs-actions.pod:3079 ../src/guestfs-actions.pod:3132
7847 #: ../src/guestfs-actions.pod:3172 ../src/guestfs-actions.pod:3192
7848 #: ../src/guestfs-actions.pod:3212 ../src/guestfs-actions.pod:3229
7849 #: ../src/guestfs-actions.pod:3245 ../src/guestfs-actions.pod:3263
7850 #: ../src/guestfs-actions.pod:3365 ../src/guestfs-actions.pod:3406
7851 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
7852 msgstr ""
7853
7854 #. type: =head2
7855 #: ../fish/guestfish-actions.pod:1735
7856 msgid "inspect-get-distro"
7857 msgstr ""
7858
7859 #. type: verbatim
7860 #: ../fish/guestfish-actions.pod:1737
7861 #, no-wrap
7862 msgid ""
7863 " inspect-get-distro root\n"
7864 "\n"
7865 msgstr ""
7866
7867 #. type: textblock
7868 #: ../fish/guestfish-actions.pod:1739 ../src/guestfs-actions.pod:2616
7869 msgid ""
7870 "This returns the distro (distribution) of the inspected operating system."
7871 msgstr ""
7872
7873 #. type: textblock
7874 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2619
7875 msgid "Currently defined distros are:"
7876 msgstr ""
7877
7878 #. type: =item
7879 #: ../fish/guestfish-actions.pod:1746 ../src/guestfs-actions.pod:2623
7880 msgid "\"archlinux\""
7881 msgstr ""
7882
7883 #. type: textblock
7884 #: ../fish/guestfish-actions.pod:1748 ../src/guestfs-actions.pod:2625
7885 msgid "Arch Linux."
7886 msgstr ""
7887
7888 #. type: =item
7889 #: ../fish/guestfish-actions.pod:1750 ../src/guestfs-actions.pod:2627
7890 msgid "\"centos\""
7891 msgstr ""
7892
7893 #. type: textblock
7894 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2629
7895 msgid "CentOS."
7896 msgstr ""
7897
7898 #. type: =item
7899 #: ../fish/guestfish-actions.pod:1754 ../src/guestfs-actions.pod:2631
7900 msgid "\"debian\""
7901 msgstr ""
7902
7903 #. type: textblock
7904 #: ../fish/guestfish-actions.pod:1756 ../src/guestfs-actions.pod:2633
7905 msgid "Debian."
7906 msgstr ""
7907
7908 #. type: =item
7909 #: ../fish/guestfish-actions.pod:1758 ../src/guestfs-actions.pod:2635
7910 msgid "\"fedora\""
7911 msgstr ""
7912
7913 #. type: textblock
7914 #: ../fish/guestfish-actions.pod:1760 ../src/guestfs-actions.pod:2637
7915 msgid "Fedora."
7916 msgstr ""
7917
7918 #. type: =item
7919 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2639
7920 msgid "\"gentoo\""
7921 msgstr ""
7922
7923 #. type: textblock
7924 #: ../fish/guestfish-actions.pod:1764 ../src/guestfs-actions.pod:2641
7925 msgid "Gentoo."
7926 msgstr ""
7927
7928 #. type: =item
7929 #: ../fish/guestfish-actions.pod:1766 ../src/guestfs-actions.pod:2643
7930 msgid "\"linuxmint\""
7931 msgstr ""
7932
7933 #. type: textblock
7934 #: ../fish/guestfish-actions.pod:1768 ../src/guestfs-actions.pod:2645
7935 msgid "Linux Mint."
7936 msgstr ""
7937
7938 #. type: =item
7939 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2647
7940 msgid "\"mandriva\""
7941 msgstr ""
7942
7943 #. type: textblock
7944 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2649
7945 msgid "Mandriva."
7946 msgstr ""
7947
7948 #. type: =item
7949 #: ../fish/guestfish-actions.pod:1774 ../src/guestfs-actions.pod:2651
7950 msgid "\"meego\""
7951 msgstr ""
7952
7953 #. type: textblock
7954 #: ../fish/guestfish-actions.pod:1776 ../src/guestfs-actions.pod:2653
7955 msgid "MeeGo."
7956 msgstr ""
7957
7958 #. type: =item
7959 #: ../fish/guestfish-actions.pod:1778 ../src/guestfs-actions.pod:2655
7960 msgid "\"pardus\""
7961 msgstr ""
7962
7963 #. type: textblock
7964 #: ../fish/guestfish-actions.pod:1780 ../src/guestfs-actions.pod:2657
7965 msgid "Pardus."
7966 msgstr ""
7967
7968 #. type: =item
7969 #: ../fish/guestfish-actions.pod:1782 ../src/guestfs-actions.pod:2659
7970 msgid "\"redhat-based\""
7971 msgstr ""
7972
7973 #. type: textblock
7974 #: ../fish/guestfish-actions.pod:1784 ../src/guestfs-actions.pod:2661
7975 msgid "Some Red Hat-derived distro."
7976 msgstr ""
7977
7978 #. type: =item
7979 #: ../fish/guestfish-actions.pod:1786 ../src/guestfs-actions.pod:2663
7980 msgid "\"rhel\""
7981 msgstr ""
7982
7983 #. type: textblock
7984 #: ../fish/guestfish-actions.pod:1788 ../src/guestfs-actions.pod:2665
7985 msgid "Red Hat Enterprise Linux."
7986 msgstr ""
7987
7988 #. type: =item
7989 #: ../fish/guestfish-actions.pod:1790 ../src/guestfs-actions.pod:2667
7990 msgid "\"scientificlinux\""
7991 msgstr ""
7992
7993 #. type: textblock
7994 #: ../fish/guestfish-actions.pod:1792 ../src/guestfs-actions.pod:2669
7995 msgid "Scientific Linux."
7996 msgstr ""
7997
7998 #. type: =item
7999 #: ../fish/guestfish-actions.pod:1794 ../src/guestfs-actions.pod:2671
8000 msgid "\"slackware\""
8001 msgstr ""
8002
8003 #. type: textblock
8004 #: ../fish/guestfish-actions.pod:1796 ../src/guestfs-actions.pod:2673
8005 msgid "Slackware."
8006 msgstr ""
8007
8008 #. type: =item
8009 #: ../fish/guestfish-actions.pod:1798 ../src/guestfs-actions.pod:2675
8010 msgid "\"ubuntu\""
8011 msgstr ""
8012
8013 #. type: textblock
8014 #: ../fish/guestfish-actions.pod:1800 ../src/guestfs-actions.pod:2677
8015 msgid "Ubuntu."
8016 msgstr ""
8017
8018 #. type: =item
8019 #: ../fish/guestfish-actions.pod:1802 ../fish/guestfish-actions.pod:1886
8020 #: ../fish/guestfish-actions.pod:2150 ../src/guestfs-actions.pod:2679
8021 #: ../src/guestfs-actions.pod:2788 ../src/guestfs-actions.pod:3163
8022 msgid "\"unknown\""
8023 msgstr ""
8024
8025 #. type: textblock
8026 #: ../fish/guestfish-actions.pod:1804 ../src/guestfs-actions.pod:2681
8027 msgid "The distro could not be determined."
8028 msgstr ""
8029
8030 #. type: =item
8031 #: ../fish/guestfish-actions.pod:1806 ../fish/guestfish-actions.pod:2142
8032 #: ../src/guestfs-actions.pod:2683 ../src/guestfs-actions.pod:3155
8033 msgid "\"windows\""
8034 msgstr ""
8035
8036 #. type: textblock
8037 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2685
8038 msgid ""
8039 "Windows does not have distributions.  This string is returned if the OS type "
8040 "is Windows."
8041 msgstr ""
8042
8043 #. type: textblock
8044 #: ../fish/guestfish-actions.pod:1813 ../fish/guestfish-actions.pod:1892
8045 #: ../fish/guestfish-actions.pod:2156 ../src/guestfs-actions.pod:2690
8046 #: ../src/guestfs-actions.pod:2794 ../src/guestfs-actions.pod:3169
8047 msgid ""
8048 "Future versions of libguestfs may return other strings here.  The caller "
8049 "should be prepared to handle any string."
8050 msgstr ""
8051
8052 #. type: =head2
8053 #: ../fish/guestfish-actions.pod:1818
8054 msgid "inspect-get-drive-mappings"
8055 msgstr ""
8056
8057 #. type: verbatim
8058 #: ../fish/guestfish-actions.pod:1820
8059 #, no-wrap
8060 msgid ""
8061 " inspect-get-drive-mappings root\n"
8062 "\n"
8063 msgstr ""
8064
8065 #. type: textblock
8066 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2706
8067 msgid ""
8068 "This call is useful for Windows which uses a primitive system of assigning "
8069 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
8070 "Windows Registry to find out how disks/partitions are mapped to drive "
8071 "letters, and returns a hash table as in the example below:"
8072 msgstr ""
8073
8074 #. type: verbatim
8075 #: ../fish/guestfish-actions.pod:1828 ../src/guestfs-actions.pod:2712
8076 #, no-wrap
8077 msgid ""
8078 " C      =>     /dev/vda2\n"
8079 " E      =>     /dev/vdb1\n"
8080 " F      =>     /dev/vdc1\n"
8081 "\n"
8082 msgstr ""
8083
8084 #. type: textblock
8085 #: ../fish/guestfish-actions.pod:1832 ../src/guestfs-actions.pod:2716
8086 msgid ""
8087 "Note that keys are drive letters.  For Windows, the key is case insensitive "
8088 "and just contains the drive letter, without the customary colon separator "
8089 "character."
8090 msgstr ""
8091
8092 #. type: textblock
8093 #: ../fish/guestfish-actions.pod:1836 ../src/guestfs-actions.pod:2720
8094 msgid ""
8095 "In future we may support other operating systems that also used drive "
8096 "letters, but the keys for those might not be case insensitive and might be "
8097 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
8098 "C<h1> etc."
8099 msgstr ""
8100
8101 #. type: textblock
8102 #: ../fish/guestfish-actions.pod:1841 ../src/guestfs-actions.pod:2725
8103 msgid ""
8104 "For Windows guests, currently only hard drive mappings are returned.  "
8105 "Removable disks (eg. DVD-ROMs) are ignored."
8106 msgstr ""
8107
8108 #. type: textblock
8109 #: ../fish/guestfish-actions.pod:1844 ../src/guestfs-actions.pod:2728
8110 msgid ""
8111 "For guests that do not use drive mappings, or if the drive mappings could "
8112 "not be determined, this returns an empty hash table."
8113 msgstr ""
8114
8115 #. type: textblock
8116 #: ../fish/guestfish-actions.pod:1847
8117 msgid ""
8118 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8119 "get-mountpoints>, L</inspect-get-filesystems>."
8120 msgstr ""
8121
8122 #. type: =head2
8123 #: ../fish/guestfish-actions.pod:1851
8124 msgid "inspect-get-filesystems"
8125 msgstr ""
8126
8127 #. type: verbatim
8128 #: ../fish/guestfish-actions.pod:1853
8129 #, no-wrap
8130 msgid ""
8131 " inspect-get-filesystems root\n"
8132 "\n"
8133 msgstr ""
8134
8135 #. type: textblock
8136 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2749
8137 msgid ""
8138 "This returns a list of all the filesystems that we think are associated with "
8139 "this operating system.  This includes the root filesystem, other ordinary "
8140 "filesystems, and non-mounted devices like swap partitions."
8141 msgstr ""
8142
8143 #. type: textblock
8144 #: ../fish/guestfish-actions.pod:1860 ../src/guestfs-actions.pod:2754
8145 msgid ""
8146 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8147 "to be shared between operating systems."
8148 msgstr ""
8149
8150 #. type: textblock
8151 #: ../fish/guestfish-actions.pod:1863
8152 msgid ""
8153 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8154 "get-mountpoints>."
8155 msgstr ""
8156
8157 #. type: =head2
8158 #: ../fish/guestfish-actions.pod:1866
8159 msgid "inspect-get-format"
8160 msgstr ""
8161
8162 #. type: verbatim
8163 #: ../fish/guestfish-actions.pod:1868
8164 #, no-wrap
8165 msgid ""
8166 " inspect-get-format root\n"
8167 "\n"
8168 msgstr ""
8169
8170 #. type: textblock
8171 #: ../fish/guestfish-actions.pod:1870 ../src/guestfs-actions.pod:2772
8172 msgid ""
8173 "This returns the format of the inspected operating system.  You can use it "
8174 "to detect install images, live CDs and similar."
8175 msgstr ""
8176
8177 #. type: textblock
8178 #: ../fish/guestfish-actions.pod:1873 ../src/guestfs-actions.pod:2775
8179 msgid "Currently defined formats are:"
8180 msgstr ""
8181
8182 #. type: =item
8183 #: ../fish/guestfish-actions.pod:1877 ../src/guestfs-actions.pod:2779
8184 msgid "\"installed\""
8185 msgstr ""
8186
8187 #. type: textblock
8188 #: ../fish/guestfish-actions.pod:1879 ../src/guestfs-actions.pod:2781
8189 msgid "This is an installed operating system."
8190 msgstr ""
8191
8192 #. type: =item
8193 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2783
8194 msgid "\"installer\""
8195 msgstr ""
8196
8197 #. type: textblock
8198 #: ../fish/guestfish-actions.pod:1883 ../src/guestfs-actions.pod:2785
8199 msgid ""
8200 "The disk image being inspected is not an installed operating system, but a "
8201 "I<bootable> install disk, live CD, or similar."
8202 msgstr ""
8203
8204 #. type: textblock
8205 #: ../fish/guestfish-actions.pod:1888 ../src/guestfs-actions.pod:2790
8206 msgid "The format of this disk image is not known."
8207 msgstr ""
8208
8209 #. type: =head2
8210 #: ../fish/guestfish-actions.pod:1897
8211 msgid "inspect-get-hostname"
8212 msgstr ""
8213
8214 #. type: verbatim
8215 #: ../fish/guestfish-actions.pod:1899
8216 #, no-wrap
8217 msgid ""
8218 " inspect-get-hostname root\n"
8219 "\n"
8220 msgstr ""
8221
8222 #. type: textblock
8223 #: ../fish/guestfish-actions.pod:1901 ../src/guestfs-actions.pod:2810
8224 msgid ""
8225 "This function returns the hostname of the operating system as found by "
8226 "inspection of the guest's configuration files."
8227 msgstr ""
8228
8229 #. type: textblock
8230 #: ../fish/guestfish-actions.pod:1904 ../src/guestfs-actions.pod:2813
8231 msgid ""
8232 "If the hostname could not be determined, then the string C<unknown> is "
8233 "returned."
8234 msgstr ""
8235
8236 #. type: =head2
8237 #: ../fish/guestfish-actions.pod:1909
8238 msgid "inspect-get-icon"
8239 msgstr ""
8240
8241 #. type: verbatim
8242 #: ../fish/guestfish-actions.pod:1911
8243 #, no-wrap
8244 msgid ""
8245 " inspect-get-icon root [favicon:..] [highquality:..]\n"
8246 "\n"
8247 msgstr ""
8248
8249 #. type: textblock
8250 #: ../fish/guestfish-actions.pod:1913 ../src/guestfs-actions.pod:2839
8251 msgid ""
8252 "This function returns an icon corresponding to the inspected operating "
8253 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
8254 "to PNG if necessary)."
8255 msgstr ""
8256
8257 #. type: textblock
8258 #: ../fish/guestfish-actions.pod:1917 ../src/guestfs-actions.pod:2843
8259 msgid ""
8260 "If it was not possible to get an icon this function returns a zero-length "
8261 "(non-NULL) buffer.  I<Callers must check for this case>."
8262 msgstr ""
8263
8264 #. type: textblock
8265 #: ../fish/guestfish-actions.pod:1920 ../src/guestfs-actions.pod:2846
8266 msgid ""
8267 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
8268 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
8269 "this file will be returned.  You can disable favicons by passing the "
8270 "optional C<favicon> boolean as false (default is true)."
8271 msgstr ""
8272
8273 #. type: textblock
8274 #: ../fish/guestfish-actions.pod:1926 ../src/guestfs-actions.pod:2852
8275 msgid ""
8276 "If finding the favicon fails, then we look in other places in the guest for "
8277 "a suitable icon."
8278 msgstr ""
8279
8280 #. type: textblock
8281 #: ../fish/guestfish-actions.pod:1929 ../src/guestfs-actions.pod:2855
8282 msgid ""
8283 "If the optional C<highquality> boolean is true then only high quality icons "
8284 "are returned, which means only icons of high resolution with an alpha "
8285 "channel.  The default (false) is to return any icon we can, even if it is of "
8286 "substandard quality."
8287 msgstr ""
8288
8289 #. type: textblock
8290 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2866
8291 msgid ""
8292 "Unlike most other inspection API calls, the guest's disks must be mounted up "
8293 "before you call this, since it needs to read information from the guest "
8294 "filesystem during the call."
8295 msgstr ""
8296
8297 #. type: textblock
8298 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:2872
8299 msgid ""
8300 "B<Security:> The icon data comes from the untrusted guest, and should be "
8301 "treated with caution.  PNG files have been known to contain exploits.  "
8302 "Ensure that libpng (or other relevant libraries) are fully up to date before "
8303 "trying to process or display the icon."
8304 msgstr ""
8305
8306 #. type: textblock
8307 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:2880
8308 msgid ""
8309 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
8310 "tries to return the largest, highest quality icon available.  The "
8311 "application must scale the icon to the required size."
8312 msgstr ""
8313
8314 #. type: textblock
8315 #: ../fish/guestfish-actions.pod:1961 ../src/guestfs-actions.pod:2887
8316 msgid ""
8317 "Extracting icons from Windows guests requires the external C<wrestool> "
8318 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
8319 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
8320 "installed separately."
8321 msgstr ""
8322
8323 #. type: textblock
8324 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2894
8325 msgid ""
8326 "Operating system icons are usually trademarks.  Seek legal advice before "
8327 "using trademarks in applications."
8328 msgstr ""
8329
8330 #. type: =head2
8331 #: ../fish/guestfish-actions.pod:1975
8332 msgid "inspect-get-major-version"
8333 msgstr ""
8334
8335 #. type: verbatim
8336 #: ../fish/guestfish-actions.pod:1977
8337 #, no-wrap
8338 msgid ""
8339 " inspect-get-major-version root\n"
8340 "\n"
8341 msgstr ""
8342
8343 #. type: textblock
8344 #: ../fish/guestfish-actions.pod:1979 ../src/guestfs-actions.pod:2935
8345 msgid ""
8346 "This returns the major version number of the inspected operating system."
8347 msgstr ""
8348
8349 #. type: textblock
8350 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:2938
8351 msgid ""
8352 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8353 "popular public names used by the operating system.  Notably the operating "
8354 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8355 "1).  You can find out the real versions corresponding to releases of Windows "
8356 "by consulting Wikipedia or MSDN."
8357 msgstr ""
8358
8359 #. type: textblock
8360 #: ../fish/guestfish-actions.pod:1989 ../fish/guestfish-actions.pod:2000
8361 #: ../src/guestfs-actions.pod:2945 ../src/guestfs-actions.pod:2962
8362 msgid "If the version could not be determined, then C<0> is returned."
8363 msgstr ""
8364
8365 #. type: =head2
8366 #: ../fish/guestfish-actions.pod:1993
8367 msgid "inspect-get-minor-version"
8368 msgstr ""
8369
8370 #. type: verbatim
8371 #: ../fish/guestfish-actions.pod:1995
8372 #, no-wrap
8373 msgid ""
8374 " inspect-get-minor-version root\n"
8375 "\n"
8376 msgstr ""
8377
8378 #. type: textblock
8379 #: ../fish/guestfish-actions.pod:1997 ../src/guestfs-actions.pod:2959
8380 msgid ""
8381 "This returns the minor version number of the inspected operating system."
8382 msgstr ""
8383
8384 #. type: textblock
8385 #: ../fish/guestfish-actions.pod:2002
8386 msgid ""
8387 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8388 "get-major-version>."
8389 msgstr ""
8390
8391 #. type: =head2
8392 #: ../fish/guestfish-actions.pod:2005
8393 msgid "inspect-get-mountpoints"
8394 msgstr ""
8395
8396 #. type: verbatim
8397 #: ../fish/guestfish-actions.pod:2007
8398 #, no-wrap
8399 msgid ""
8400 " inspect-get-mountpoints root\n"
8401 "\n"
8402 msgstr ""
8403
8404 #. type: textblock
8405 #: ../fish/guestfish-actions.pod:2009 ../src/guestfs-actions.pod:2977
8406 msgid ""
8407 "This returns a hash of where we think the filesystems associated with this "
8408 "operating system should be mounted.  Callers should note that this is at "
8409 "best an educated guess made by reading configuration files such as C</etc/"
8410 "fstab>.  I<In particular note> that this may return filesystems which are "
8411 "non-existent or not mountable and callers should be prepared to handle or "
8412 "ignore failures if they try to mount them."
8413 msgstr ""
8414
8415 #. type: textblock
8416 #: ../fish/guestfish-actions.pod:2018 ../src/guestfs-actions.pod:2986
8417 msgid ""
8418 "Each element in the returned hashtable has a key which is the path of the "
8419 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8420 "mounted there (eg. C</dev/sda1>)."
8421 msgstr ""
8422
8423 #. type: textblock
8424 #: ../fish/guestfish-actions.pod:2023 ../src/guestfs-actions.pod:2991
8425 msgid ""
8426 "Non-mounted devices such as swap devices are I<not> returned in this list."
8427 msgstr ""
8428
8429 #. type: textblock
8430 #: ../fish/guestfish-actions.pod:2026
8431 msgid ""
8432 "For operating systems like Windows which still use drive letters, this call "
8433 "will only return an entry for the first drive \"mounted on\" C</>.  For "
8434 "information about the mapping of drive letters to partitions, see L</inspect-"
8435 "get-drive-mappings>."
8436 msgstr ""
8437
8438 #. type: textblock
8439 #: ../fish/guestfish-actions.pod:2032
8440 msgid ""
8441 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8442 "get-filesystems>."
8443 msgstr ""
8444
8445 #. type: =head2
8446 #: ../fish/guestfish-actions.pod:2035
8447 msgid "inspect-get-package-format"
8448 msgstr ""
8449
8450 #. type: verbatim
8451 #: ../fish/guestfish-actions.pod:2037
8452 #, no-wrap
8453 msgid ""
8454 " inspect-get-package-format root\n"
8455 "\n"
8456 msgstr ""
8457
8458 #. type: textblock
8459 #: ../fish/guestfish-actions.pod:2039
8460 msgid ""
8461 "This function and L</inspect-get-package-management> return the package "
8462 "format and package management tool used by the inspected operating system.  "
8463 "For example for Fedora these functions would return C<rpm> (package format) "
8464 "and C<yum> (package management)."
8465 msgstr ""
8466
8467 #. type: textblock
8468 #: ../fish/guestfish-actions.pod:2045 ../src/guestfs-actions.pod:3023
8469 msgid ""
8470 "This returns the string C<unknown> if we could not determine the package "
8471 "format I<or> if the operating system does not have a real packaging system "
8472 "(eg. Windows)."
8473 msgstr ""
8474
8475 #. type: textblock
8476 #: ../fish/guestfish-actions.pod:2049 ../src/guestfs-actions.pod:3027
8477 msgid ""
8478 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
8479 "Future versions of libguestfs may return other strings."
8480 msgstr ""
8481
8482 #. type: =head2
8483 #: ../fish/guestfish-actions.pod:2054
8484 msgid "inspect-get-package-management"
8485 msgstr ""
8486
8487 #. type: verbatim
8488 #: ../fish/guestfish-actions.pod:2056
8489 #, no-wrap
8490 msgid ""
8491 " inspect-get-package-management root\n"
8492 "\n"
8493 msgstr ""
8494
8495 #. type: textblock
8496 #: ../fish/guestfish-actions.pod:2058
8497 msgid ""
8498 "L</inspect-get-package-format> and this function return the package format "
8499 "and package management tool used by the inspected operating system.  For "
8500 "example for Fedora these functions would return C<rpm> (package format) and "
8501 "C<yum> (package management)."
8502 msgstr ""
8503
8504 #. type: textblock
8505 #: ../fish/guestfish-actions.pod:2064 ../src/guestfs-actions.pod:3049
8506 msgid ""
8507 "This returns the string C<unknown> if we could not determine the package "
8508 "management tool I<or> if the operating system does not have a real packaging "
8509 "system (eg. Windows)."
8510 msgstr ""
8511
8512 #. type: textblock
8513 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3053
8514 msgid ""
8515 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
8516 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
8517 "libguestfs may return other strings."
8518 msgstr ""
8519
8520 #. type: =head2
8521 #: ../fish/guestfish-actions.pod:2075
8522 msgid "inspect-get-product-name"
8523 msgstr ""
8524
8525 #. type: verbatim
8526 #: ../fish/guestfish-actions.pod:2077
8527 #, no-wrap
8528 msgid ""
8529 " inspect-get-product-name root\n"
8530 "\n"
8531 msgstr ""
8532
8533 #. type: textblock
8534 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3071
8535 msgid ""
8536 "This returns the product name of the inspected operating system.  The "
8537 "product name is generally some freeform string which can be displayed to the "
8538 "user, but should not be parsed by programs."
8539 msgstr ""
8540
8541 #. type: textblock
8542 #: ../fish/guestfish-actions.pod:2084 ../src/guestfs-actions.pod:3076
8543 msgid ""
8544 "If the product name could not be determined, then the string C<unknown> is "
8545 "returned."
8546 msgstr ""
8547
8548 #. type: =head2
8549 #: ../fish/guestfish-actions.pod:2089
8550 msgid "inspect-get-product-variant"
8551 msgstr ""
8552
8553 #. type: verbatim
8554 #: ../fish/guestfish-actions.pod:2091
8555 #, no-wrap
8556 msgid ""
8557 " inspect-get-product-variant root\n"
8558 "\n"
8559 msgstr ""
8560
8561 #. type: textblock
8562 #: ../fish/guestfish-actions.pod:2093 ../src/guestfs-actions.pod:3092
8563 msgid "This returns the product variant of the inspected operating system."
8564 msgstr ""
8565
8566 #. type: textblock
8567 #: ../fish/guestfish-actions.pod:2096 ../src/guestfs-actions.pod:3095
8568 msgid ""
8569 "For Windows guests, this returns the contents of the Registry key C<HKLM"
8570 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
8571 "is usually a string such as C<Client> or C<Server> (other values are "
8572 "possible).  This can be used to distinguish consumer and enterprise versions "
8573 "of Windows that have the same version number (for example, Windows 7 and "
8574 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
8575 "the latter is C<Server>)."
8576 msgstr ""
8577
8578 #. type: textblock
8579 #: ../fish/guestfish-actions.pod:2105 ../src/guestfs-actions.pod:3104
8580 msgid ""
8581 "For enterprise Linux guests, in future we intend this to return the product "
8582 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
8583 "implemented at present."
8584 msgstr ""
8585
8586 #. type: textblock
8587 #: ../fish/guestfish-actions.pod:2109 ../src/guestfs-actions.pod:3108
8588 msgid ""
8589 "If the product variant could not be determined, then the string C<unknown> "
8590 "is returned."
8591 msgstr ""
8592
8593 #. type: textblock
8594 #: ../fish/guestfish-actions.pod:2112
8595 msgid ""
8596 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8597 "get-product-name>, L</inspect-get-major-version>."
8598 msgstr ""
8599
8600 #. type: =head2
8601 #: ../fish/guestfish-actions.pod:2116
8602 msgid "inspect-get-roots"
8603 msgstr ""
8604
8605 #. type: verbatim
8606 #: ../fish/guestfish-actions.pod:2118
8607 #, no-wrap
8608 msgid ""
8609 " inspect-get-roots\n"
8610 "\n"
8611 msgstr ""
8612
8613 #. type: textblock
8614 #: ../fish/guestfish-actions.pod:2120
8615 msgid ""
8616 "This function is a convenient way to get the list of root devices, as "
8617 "returned from a previous call to L</inspect-os>, but without redoing the "
8618 "whole inspection process."
8619 msgstr ""
8620
8621 #. type: textblock
8622 #: ../fish/guestfish-actions.pod:2124
8623 msgid ""
8624 "This returns an empty list if either no root devices were found or the "
8625 "caller has not called L</inspect-os>."
8626 msgstr ""
8627
8628 #. type: =head2
8629 #: ../fish/guestfish-actions.pod:2129
8630 msgid "inspect-get-type"
8631 msgstr ""
8632
8633 #. type: verbatim
8634 #: ../fish/guestfish-actions.pod:2131
8635 #, no-wrap
8636 msgid ""
8637 " inspect-get-type root\n"
8638 "\n"
8639 msgstr ""
8640
8641 #. type: textblock
8642 #: ../fish/guestfish-actions.pod:2133 ../src/guestfs-actions.pod:3146
8643 msgid ""
8644 "This returns the type of the inspected operating system.  Currently defined "
8645 "types are:"
8646 msgstr ""
8647
8648 #. type: =item
8649 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3151
8650 msgid "\"linux\""
8651 msgstr ""
8652
8653 #. type: textblock
8654 #: ../fish/guestfish-actions.pod:2140 ../src/guestfs-actions.pod:3153
8655 msgid "Any Linux-based operating system."
8656 msgstr ""
8657
8658 #. type: textblock
8659 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3157
8660 msgid "Any Microsoft Windows operating system."
8661 msgstr ""
8662
8663 #. type: =item
8664 #: ../fish/guestfish-actions.pod:2146 ../src/guestfs-actions.pod:3159
8665 msgid "\"freebsd\""
8666 msgstr ""
8667
8668 #. type: textblock
8669 #: ../fish/guestfish-actions.pod:2148 ../src/guestfs-actions.pod:3161
8670 msgid "FreeBSD."
8671 msgstr ""
8672
8673 #. type: textblock
8674 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3165
8675 msgid "The operating system type could not be determined."
8676 msgstr ""
8677
8678 #. type: =head2
8679 #: ../fish/guestfish-actions.pod:2161
8680 msgid "inspect-get-windows-current-control-set"
8681 msgstr ""
8682
8683 #. type: verbatim
8684 #: ../fish/guestfish-actions.pod:2163
8685 #, no-wrap
8686 msgid ""
8687 " inspect-get-windows-current-control-set root\n"
8688 "\n"
8689 msgstr ""
8690
8691 #. type: textblock
8692 #: ../fish/guestfish-actions.pod:2165 ../src/guestfs-actions.pod:3185
8693 msgid ""
8694 "This returns the Windows CurrentControlSet of the inspected guest.  The "
8695 "CurrentControlSet is a registry key name such as C<ControlSet001>."
8696 msgstr ""
8697
8698 #. type: textblock
8699 #: ../fish/guestfish-actions.pod:2168 ../src/guestfs-actions.pod:3188
8700 msgid ""
8701 "This call assumes that the guest is Windows and that the Registry could be "
8702 "examined by inspection.  If this is not the case then an error is returned."
8703 msgstr ""
8704
8705 #. type: =head2
8706 #: ../fish/guestfish-actions.pod:2174
8707 msgid "inspect-get-windows-systemroot"
8708 msgstr ""
8709
8710 #. type: verbatim
8711 #: ../fish/guestfish-actions.pod:2176
8712 #, no-wrap
8713 msgid ""
8714 " inspect-get-windows-systemroot root\n"
8715 "\n"
8716 msgstr ""
8717
8718 #. type: textblock
8719 #: ../fish/guestfish-actions.pod:2178 ../src/guestfs-actions.pod:3205
8720 msgid ""
8721 "This returns the Windows systemroot of the inspected guest.  The systemroot "
8722 "is a directory path such as C</WINDOWS>."
8723 msgstr ""
8724
8725 #. type: textblock
8726 #: ../fish/guestfish-actions.pod:2181 ../src/guestfs-actions.pod:3208
8727 msgid ""
8728 "This call assumes that the guest is Windows and that the systemroot could be "
8729 "determined by inspection.  If this is not the case then an error is returned."
8730 msgstr ""
8731
8732 #. type: =head2
8733 #: ../fish/guestfish-actions.pod:2187
8734 msgid "inspect-is-live"
8735 msgstr ""
8736
8737 #. type: verbatim
8738 #: ../fish/guestfish-actions.pod:2189
8739 #, no-wrap
8740 msgid ""
8741 " inspect-is-live root\n"
8742 "\n"
8743 msgstr ""
8744
8745 #. type: textblock
8746 #: ../fish/guestfish-actions.pod:2191
8747 msgid ""
8748 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8749 "then this returns true if a live image was detected on the disk."
8750 msgstr ""
8751
8752 #. type: =head2
8753 #: ../fish/guestfish-actions.pod:2197
8754 msgid "inspect-is-multipart"
8755 msgstr ""
8756
8757 #. type: verbatim
8758 #: ../fish/guestfish-actions.pod:2199
8759 #, no-wrap
8760 msgid ""
8761 " inspect-is-multipart root\n"
8762 "\n"
8763 msgstr ""
8764
8765 #. type: textblock
8766 #: ../fish/guestfish-actions.pod:2201
8767 msgid ""
8768 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8769 "then this returns true if the disk is part of a set."
8770 msgstr ""
8771
8772 #. type: =head2
8773 #: ../fish/guestfish-actions.pod:2207
8774 msgid "inspect-is-netinst"
8775 msgstr ""
8776
8777 #. type: verbatim
8778 #: ../fish/guestfish-actions.pod:2209
8779 #, no-wrap
8780 msgid ""
8781 " inspect-is-netinst root\n"
8782 "\n"
8783 msgstr ""
8784
8785 #. type: textblock
8786 #: ../fish/guestfish-actions.pod:2211
8787 msgid ""
8788 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8789 "then this returns true if the disk is a network installer, ie. not a self-"
8790 "contained install CD but one which is likely to require network access to "
8791 "complete the install."
8792 msgstr ""
8793
8794 #. type: =head2
8795 #: ../fish/guestfish-actions.pod:2219
8796 msgid "inspect-list-applications"
8797 msgstr ""
8798
8799 #. type: verbatim
8800 #: ../fish/guestfish-actions.pod:2221
8801 #, no-wrap
8802 msgid ""
8803 " inspect-list-applications root\n"
8804 "\n"
8805 msgstr ""
8806
8807 #. type: textblock
8808 #: ../fish/guestfish-actions.pod:2223 ../src/guestfs-actions.pod:3275
8809 msgid "Return the list of applications installed in the operating system."
8810 msgstr ""
8811
8812 #. type: textblock
8813 #: ../fish/guestfish-actions.pod:2225
8814 msgid ""
8815 "I<Note:> This call works differently from other parts of the inspection "
8816 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
8817 "then mount up the disks, before calling this.  Listing applications is a "
8818 "significantly more difficult operation which requires access to the full "
8819 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
8820 "are just returning data cached in the libguestfs handle, this call actually "
8821 "reads parts of the mounted filesystems during the call."
8822 msgstr ""
8823
8824 #. type: textblock
8825 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:3287
8826 msgid ""
8827 "This returns an empty list if the inspection code was not able to determine "
8828 "the list of applications."
8829 msgstr ""
8830
8831 #. type: textblock
8832 #: ../fish/guestfish-actions.pod:2238 ../src/guestfs-actions.pod:3290
8833 msgid "The application structure contains the following fields:"
8834 msgstr ""
8835
8836 #. type: =item
8837 #: ../fish/guestfish-actions.pod:2242 ../src/guestfs-actions.pod:3294
8838 msgid "C<app_name>"
8839 msgstr ""
8840
8841 #. type: textblock
8842 #: ../fish/guestfish-actions.pod:2244 ../src/guestfs-actions.pod:3296
8843 msgid ""
8844 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
8845 "guests, this is the package name."
8846 msgstr ""
8847
8848 #. type: =item
8849 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3299
8850 msgid "C<app_display_name>"
8851 msgstr ""
8852
8853 #. type: textblock
8854 #: ../fish/guestfish-actions.pod:2249 ../src/guestfs-actions.pod:3301
8855 msgid ""
8856 "The display name of the application, sometimes localized to the install "
8857 "language of the guest operating system."
8858 msgstr ""
8859
8860 #. type: textblock
8861 #: ../fish/guestfish-actions.pod:2252 ../src/guestfs-actions.pod:3304
8862 msgid ""
8863 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
8864 "to display something can use C<app_name> instead."
8865 msgstr ""
8866
8867 #. type: =item
8868 #: ../fish/guestfish-actions.pod:2255 ../src/guestfs-actions.pod:3307
8869 msgid "C<app_epoch>"
8870 msgstr ""
8871
8872 #. type: textblock
8873 #: ../fish/guestfish-actions.pod:2257 ../src/guestfs-actions.pod:3309
8874 msgid ""
8875 "For package managers which use epochs, this contains the epoch of the "
8876 "package (an integer).  If unavailable, this is returned as C<0>."
8877 msgstr ""
8878
8879 #. type: =item
8880 #: ../fish/guestfish-actions.pod:2260 ../src/guestfs-actions.pod:3312
8881 msgid "C<app_version>"
8882 msgstr ""
8883
8884 #. type: textblock
8885 #: ../fish/guestfish-actions.pod:2262 ../src/guestfs-actions.pod:3314
8886 msgid ""
8887 "The version string of the application or package.  If unavailable this is "
8888 "returned as an empty string C<\"\">."
8889 msgstr ""
8890
8891 #. type: =item
8892 #: ../fish/guestfish-actions.pod:2265 ../src/guestfs-actions.pod:3317
8893 msgid "C<app_release>"
8894 msgstr ""
8895
8896 #. type: textblock
8897 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3319
8898 msgid ""
8899 "The release string of the application or package, for package managers that "
8900 "use this.  If unavailable this is returned as an empty string C<\"\">."
8901 msgstr ""
8902
8903 #. type: =item
8904 #: ../fish/guestfish-actions.pod:2271 ../src/guestfs-actions.pod:3323
8905 msgid "C<app_install_path>"
8906 msgstr ""
8907
8908 #. type: textblock
8909 #: ../fish/guestfish-actions.pod:2273 ../src/guestfs-actions.pod:3325
8910 msgid ""
8911 "The installation path of the application (on operating systems such as "
8912 "Windows which use installation paths).  This path is in the format used by "
8913 "the guest operating system, it is not a libguestfs path."
8914 msgstr ""
8915
8916 #. type: textblock
8917 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3330
8918 msgid "If unavailable this is returned as an empty string C<\"\">."
8919 msgstr ""
8920
8921 #. type: =item
8922 #: ../fish/guestfish-actions.pod:2280 ../src/guestfs-actions.pod:3332
8923 msgid "C<app_trans_path>"
8924 msgstr ""
8925
8926 #. type: textblock
8927 #: ../fish/guestfish-actions.pod:2282 ../src/guestfs-actions.pod:3334
8928 msgid ""
8929 "The install path translated into a libguestfs path.  If unavailable this is "
8930 "returned as an empty string C<\"\">."
8931 msgstr ""
8932
8933 #. type: =item
8934 #: ../fish/guestfish-actions.pod:2285 ../src/guestfs-actions.pod:3337
8935 msgid "C<app_publisher>"
8936 msgstr ""
8937
8938 #. type: textblock
8939 #: ../fish/guestfish-actions.pod:2287 ../src/guestfs-actions.pod:3339
8940 msgid ""
8941 "The name of the publisher of the application, for package managers that use "
8942 "this.  If unavailable this is returned as an empty string C<\"\">."
8943 msgstr ""
8944
8945 #. type: =item
8946 #: ../fish/guestfish-actions.pod:2291 ../src/guestfs-actions.pod:3343
8947 msgid "C<app_url>"
8948 msgstr ""
8949
8950 #. type: textblock
8951 #: ../fish/guestfish-actions.pod:2293 ../src/guestfs-actions.pod:3345
8952 msgid ""
8953 "The URL (eg. upstream URL) of the application.  If unavailable this is "
8954 "returned as an empty string C<\"\">."
8955 msgstr ""
8956
8957 #. type: =item
8958 #: ../fish/guestfish-actions.pod:2296 ../src/guestfs-actions.pod:3348
8959 msgid "C<app_source_package>"
8960 msgstr ""
8961
8962 #. type: textblock
8963 #: ../fish/guestfish-actions.pod:2298 ../src/guestfs-actions.pod:3350
8964 msgid ""
8965 "For packaging systems which support this, the name of the source package.  "
8966 "If unavailable this is returned as an empty string C<\"\">."
8967 msgstr ""
8968
8969 #. type: =item
8970 #: ../fish/guestfish-actions.pod:2301 ../src/guestfs-actions.pod:3353
8971 msgid "C<app_summary>"
8972 msgstr ""
8973
8974 #. type: textblock
8975 #: ../fish/guestfish-actions.pod:2303 ../src/guestfs-actions.pod:3355
8976 msgid ""
8977 "A short (usually one line) description of the application or package.  If "
8978 "unavailable this is returned as an empty string C<\"\">."
8979 msgstr ""
8980
8981 #. type: =item
8982 #: ../fish/guestfish-actions.pod:2306 ../src/guestfs-actions.pod:3358
8983 msgid "C<app_description>"
8984 msgstr ""
8985
8986 #. type: textblock
8987 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3360
8988 msgid ""
8989 "A longer description of the application or package.  If unavailable this is "
8990 "returned as an empty string C<\"\">."
8991 msgstr ""
8992
8993 #. type: =head2
8994 #: ../fish/guestfish-actions.pod:2315
8995 msgid "inspect-os"
8996 msgstr ""
8997
8998 #. type: verbatim
8999 #: ../fish/guestfish-actions.pod:2317
9000 #, no-wrap
9001 msgid ""
9002 " inspect-os\n"
9003 "\n"
9004 msgstr ""
9005
9006 #. type: textblock
9007 #: ../fish/guestfish-actions.pod:2319 ../src/guestfs-actions.pod:3378
9008 msgid ""
9009 "This function uses other libguestfs functions and certain heuristics to "
9010 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9011 "for operating systems."
9012 msgstr ""
9013
9014 #. type: textblock
9015 #: ../fish/guestfish-actions.pod:2323 ../src/guestfs-actions.pod:3382
9016 msgid "The list returned is empty if no operating systems were found."
9017 msgstr ""
9018
9019 #. type: textblock
9020 #: ../fish/guestfish-actions.pod:2325 ../src/guestfs-actions.pod:3384
9021 msgid ""
9022 "If one operating system was found, then this returns a list with a single "
9023 "element, which is the name of the root filesystem of this operating system.  "
9024 "It is also possible for this function to return a list containing more than "
9025 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9026 "element being the root filesystem of one of the operating systems."
9027 msgstr ""
9028
9029 #. type: textblock
9030 #: ../fish/guestfish-actions.pod:2332
9031 msgid ""
9032 "You can pass the root string(s) returned to other L</inspect-get-*> "
9033 "functions in order to query further information about each operating system, "
9034 "such as the name and version."
9035 msgstr ""
9036
9037 #. type: textblock
9038 #: ../fish/guestfish-actions.pod:2337
9039 msgid ""
9040 "This function uses other libguestfs features such as L</mount-ro> and L</"
9041 "umount-all> in order to mount and unmount filesystems and look at the "
9042 "contents.  This should be called with no disks currently mounted.  The "
9043 "function may also use Augeas, so any existing Augeas handle will be closed."
9044 msgstr ""
9045
9046 #. type: textblock
9047 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3402
9048 msgid ""
9049 "This function cannot decrypt encrypted disks.  The caller must do that first "
9050 "(supplying the necessary keys) if the disk is encrypted."
9051 msgstr ""
9052
9053 #. type: textblock
9054 #: ../fish/guestfish-actions.pod:2349 ../fish/guestfish-actions.pod:2547
9055 #: ../fish/guestfish-actions.pod:2606
9056 msgid "See also L</list-filesystems>."
9057 msgstr ""
9058
9059 #. type: =head2
9060 #: ../fish/guestfish-actions.pod:2351
9061 msgid "is-blockdev"
9062 msgstr ""
9063
9064 #. type: verbatim
9065 #: ../fish/guestfish-actions.pod:2353
9066 #, no-wrap
9067 msgid ""
9068 " is-blockdev path\n"
9069 "\n"
9070 msgstr ""
9071
9072 #. type: textblock
9073 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3422
9074 msgid ""
9075 "This returns C<true> if and only if there is a block device with the given "
9076 "C<path> name."
9077 msgstr ""
9078
9079 #. type: textblock
9080 #: ../fish/guestfish-actions.pod:2358 ../fish/guestfish-actions.pod:2376
9081 #: ../fish/guestfish-actions.pod:2395 ../fish/guestfish-actions.pod:2404
9082 #: ../fish/guestfish-actions.pod:2414 ../fish/guestfish-actions.pod:2448
9083 #: ../fish/guestfish-actions.pod:2457
9084 msgid "See also L</stat>."
9085 msgstr ""
9086
9087 #. type: =head2
9088 #: ../fish/guestfish-actions.pod:2360
9089 msgid "is-busy"
9090 msgstr ""
9091
9092 #. type: verbatim
9093 #: ../fish/guestfish-actions.pod:2362
9094 #, no-wrap
9095 msgid ""
9096 " is-busy\n"
9097 "\n"
9098 msgstr ""
9099
9100 #. type: textblock
9101 #: ../fish/guestfish-actions.pod:2364 ../src/guestfs-actions.pod:3436
9102 msgid ""
9103 "This returns true iff this handle is busy processing a command (in the "
9104 "C<BUSY> state)."
9105 msgstr ""
9106
9107 #. type: =head2
9108 #: ../fish/guestfish-actions.pod:2369
9109 msgid "is-chardev"
9110 msgstr ""
9111
9112 #. type: verbatim
9113 #: ../fish/guestfish-actions.pod:2371
9114 #, no-wrap
9115 msgid ""
9116 " is-chardev path\n"
9117 "\n"
9118 msgstr ""
9119
9120 #. type: textblock
9121 #: ../fish/guestfish-actions.pod:2373 ../src/guestfs-actions.pod:3451
9122 msgid ""
9123 "This returns C<true> if and only if there is a character device with the "
9124 "given C<path> name."
9125 msgstr ""
9126
9127 #. type: =head2
9128 #: ../fish/guestfish-actions.pod:2378
9129 msgid "is-config"
9130 msgstr ""
9131
9132 #. type: verbatim
9133 #: ../fish/guestfish-actions.pod:2380
9134 #, no-wrap
9135 msgid ""
9136 " is-config\n"
9137 "\n"
9138 msgstr ""
9139
9140 #. type: textblock
9141 #: ../fish/guestfish-actions.pod:2382 ../src/guestfs-actions.pod:3465
9142 msgid ""
9143 "This returns true iff this handle is being configured (in the C<CONFIG> "
9144 "state)."
9145 msgstr ""
9146
9147 #. type: =head2
9148 #: ../fish/guestfish-actions.pod:2387
9149 msgid "is-dir"
9150 msgstr ""
9151
9152 #. type: verbatim
9153 #: ../fish/guestfish-actions.pod:2389
9154 #, no-wrap
9155 msgid ""
9156 " is-dir path\n"
9157 "\n"
9158 msgstr ""
9159
9160 #. type: textblock
9161 #: ../fish/guestfish-actions.pod:2391 ../src/guestfs-actions.pod:3480
9162 msgid ""
9163 "This returns C<true> if and only if there is a directory with the given "
9164 "C<path> name.  Note that it returns false for other objects like files."
9165 msgstr ""
9166
9167 #. type: =head2
9168 #: ../fish/guestfish-actions.pod:2397
9169 msgid "is-fifo"
9170 msgstr ""
9171
9172 #. type: verbatim
9173 #: ../fish/guestfish-actions.pod:2399
9174 #, no-wrap
9175 msgid ""
9176 " is-fifo path\n"
9177 "\n"
9178 msgstr ""
9179
9180 #. type: textblock
9181 #: ../fish/guestfish-actions.pod:2401 ../src/guestfs-actions.pod:3496
9182 msgid ""
9183 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9184 "given C<path> name."
9185 msgstr ""
9186
9187 #. type: =head2
9188 #: ../fish/guestfish-actions.pod:2406
9189 msgid "is-file"
9190 msgstr ""
9191
9192 #. type: verbatim
9193 #: ../fish/guestfish-actions.pod:2408
9194 #, no-wrap
9195 msgid ""
9196 " is-file path\n"
9197 "\n"
9198 msgstr ""
9199
9200 #. type: textblock
9201 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3511
9202 msgid ""
9203 "This returns C<true> if and only if there is a regular file with the given "
9204 "C<path> name.  Note that it returns false for other objects like directories."
9205 msgstr ""
9206
9207 #. type: =head2
9208 #: ../fish/guestfish-actions.pod:2416
9209 msgid "is-launching"
9210 msgstr ""
9211
9212 #. type: verbatim
9213 #: ../fish/guestfish-actions.pod:2418
9214 #, no-wrap
9215 msgid ""
9216 " is-launching\n"
9217 "\n"
9218 msgstr ""
9219
9220 #. type: textblock
9221 #: ../fish/guestfish-actions.pod:2420 ../src/guestfs-actions.pod:3526
9222 msgid ""
9223 "This returns true iff this handle is launching the subprocess (in the "
9224 "C<LAUNCHING> state)."
9225 msgstr ""
9226
9227 #. type: =head2
9228 #: ../fish/guestfish-actions.pod:2425
9229 msgid "is-lv"
9230 msgstr ""
9231
9232 #. type: verbatim
9233 #: ../fish/guestfish-actions.pod:2427
9234 #, no-wrap
9235 msgid ""
9236 " is-lv device\n"
9237 "\n"
9238 msgstr ""
9239
9240 #. type: textblock
9241 #: ../fish/guestfish-actions.pod:2429 ../src/guestfs-actions.pod:3541
9242 msgid ""
9243 "This command tests whether C<device> is a logical volume, and returns true "
9244 "iff this is the case."
9245 msgstr ""
9246
9247 #. type: =head2
9248 #: ../fish/guestfish-actions.pod:2432
9249 msgid "is-ready"
9250 msgstr ""
9251
9252 #. type: verbatim
9253 #: ../fish/guestfish-actions.pod:2434
9254 #, no-wrap
9255 msgid ""
9256 " is-ready\n"
9257 "\n"
9258 msgstr ""
9259
9260 #. type: textblock
9261 #: ../fish/guestfish-actions.pod:2436 ../src/guestfs-actions.pod:3553
9262 msgid ""
9263 "This returns true iff this handle is ready to accept commands (in the "
9264 "C<READY> state)."
9265 msgstr ""
9266
9267 #. type: =head2
9268 #: ../fish/guestfish-actions.pod:2441
9269 msgid "is-socket"
9270 msgstr ""
9271
9272 #. type: verbatim
9273 #: ../fish/guestfish-actions.pod:2443
9274 #, no-wrap
9275 msgid ""
9276 " is-socket path\n"
9277 "\n"
9278 msgstr ""
9279
9280 #. type: textblock
9281 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3568
9282 msgid ""
9283 "This returns C<true> if and only if there is a Unix domain socket with the "
9284 "given C<path> name."
9285 msgstr ""
9286
9287 #. type: =head2
9288 #: ../fish/guestfish-actions.pod:2450
9289 msgid "is-symlink"
9290 msgstr ""
9291
9292 #. type: verbatim
9293 #: ../fish/guestfish-actions.pod:2452
9294 #, no-wrap
9295 msgid ""
9296 " is-symlink path\n"
9297 "\n"
9298 msgstr ""
9299
9300 #. type: textblock
9301 #: ../fish/guestfish-actions.pod:2454 ../src/guestfs-actions.pod:3583
9302 msgid ""
9303 "This returns C<true> if and only if there is a symbolic link with the given "
9304 "C<path> name."
9305 msgstr ""
9306
9307 #. type: =head2
9308 #: ../fish/guestfish-actions.pod:2459
9309 msgid "is-zero"
9310 msgstr ""
9311
9312 #. type: verbatim
9313 #: ../fish/guestfish-actions.pod:2461
9314 #, no-wrap
9315 msgid ""
9316 " is-zero path\n"
9317 "\n"
9318 msgstr ""
9319
9320 #. type: textblock
9321 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3598
9322 msgid ""
9323 "This returns true iff the file exists and the file is empty or it contains "
9324 "all zero bytes."
9325 msgstr ""
9326
9327 #. type: =head2
9328 #: ../fish/guestfish-actions.pod:2466
9329 msgid "is-zero-device"
9330 msgstr ""
9331
9332 #. type: verbatim
9333 #: ../fish/guestfish-actions.pod:2468
9334 #, no-wrap
9335 msgid ""
9336 " is-zero-device device\n"
9337 "\n"
9338 msgstr ""
9339
9340 #. type: textblock
9341 #: ../fish/guestfish-actions.pod:2470 ../src/guestfs-actions.pod:3611
9342 msgid "This returns true iff the device exists and contains all zero bytes."
9343 msgstr ""
9344
9345 #. type: textblock
9346 #: ../fish/guestfish-actions.pod:2472 ../src/guestfs-actions.pod:3613
9347 msgid "Note that for large devices this can take a long time to run."
9348 msgstr ""
9349
9350 #. type: =head2
9351 #: ../fish/guestfish-actions.pod:2474
9352 msgid "kill-subprocess"
9353 msgstr ""
9354
9355 #. type: verbatim
9356 #: ../fish/guestfish-actions.pod:2476
9357 #, no-wrap
9358 msgid ""
9359 " kill-subprocess\n"
9360 "\n"
9361 msgstr ""
9362
9363 #. type: textblock
9364 #: ../fish/guestfish-actions.pod:2478 ../src/guestfs-actions.pod:3624
9365 msgid "This kills the qemu subprocess.  You should never need to call this."
9366 msgstr ""
9367
9368 #. type: =head2
9369 #: ../fish/guestfish-actions.pod:2480
9370 msgid "launch"
9371 msgstr ""
9372
9373 #. type: =head2
9374 #: ../fish/guestfish-actions.pod:2482
9375 msgid "run"
9376 msgstr ""
9377
9378 #. type: verbatim
9379 #: ../fish/guestfish-actions.pod:2484
9380 #, no-wrap
9381 msgid ""
9382 " launch\n"
9383 "\n"
9384 msgstr ""
9385
9386 #. type: textblock
9387 #: ../fish/guestfish-actions.pod:2486 ../src/guestfs-actions.pod:3635
9388 msgid ""
9389 "Internally libguestfs is implemented by running a virtual machine using "
9390 "L<qemu(1)>."
9391 msgstr ""
9392
9393 #. type: textblock
9394 #: ../fish/guestfish-actions.pod:2489 ../src/guestfs-actions.pod:3638
9395 msgid ""
9396 "You should call this after configuring the handle (eg. adding drives) but "
9397 "before performing any actions."
9398 msgstr ""
9399
9400 #. type: =head2
9401 #: ../fish/guestfish-actions.pod:2492
9402 msgid "lchown"
9403 msgstr ""
9404
9405 #. type: verbatim
9406 #: ../fish/guestfish-actions.pod:2494
9407 #, no-wrap
9408 msgid ""
9409 " lchown owner group path\n"
9410 "\n"
9411 msgstr ""
9412
9413 #. type: textblock
9414 #: ../fish/guestfish-actions.pod:2496
9415 msgid ""
9416 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
9417 "chown> but if C<path> is a symlink then the link itself is changed, not the "
9418 "target."
9419 msgstr ""
9420
9421 #. type: =head2
9422 #: ../fish/guestfish-actions.pod:2504
9423 msgid "lgetxattr"
9424 msgstr ""
9425
9426 #. type: verbatim
9427 #: ../fish/guestfish-actions.pod:2506
9428 #, no-wrap
9429 msgid ""
9430 " lgetxattr path name\n"
9431 "\n"
9432 msgstr ""
9433
9434 #. type: textblock
9435 #: ../fish/guestfish-actions.pod:2508 ../src/guestfs-actions.pod:3678
9436 msgid ""
9437 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
9438 "is a symlink, then this call returns an extended attribute from the symlink."
9439 msgstr ""
9440
9441 #. type: textblock
9442 #: ../fish/guestfish-actions.pod:2522
9443 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
9444 msgstr ""
9445
9446 #. type: =head2
9447 #: ../fish/guestfish-actions.pod:2524
9448 msgid "lgetxattrs"
9449 msgstr ""
9450
9451 #. type: verbatim
9452 #: ../fish/guestfish-actions.pod:2526
9453 #, no-wrap
9454 msgid ""
9455 " lgetxattrs path\n"
9456 "\n"
9457 msgstr ""
9458
9459 #. type: textblock
9460 #: ../fish/guestfish-actions.pod:2528
9461 msgid ""
9462 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
9463 "it returns the extended attributes of the link itself."
9464 msgstr ""
9465
9466 #. type: =head2
9467 #: ../fish/guestfish-actions.pod:2532
9468 msgid "list-9p"
9469 msgstr ""
9470
9471 #. type: verbatim
9472 #: ../fish/guestfish-actions.pod:2534
9473 #, no-wrap
9474 msgid ""
9475 " list-9p\n"
9476 "\n"
9477 msgstr ""
9478
9479 #. type: textblock
9480 #: ../fish/guestfish-actions.pod:2536 ../src/guestfs-actions.pod:3721
9481 msgid ""
9482 "List all 9p filesystems attached to the guest.  A list of mount tags is "
9483 "returned."
9484 msgstr ""
9485
9486 #. type: =head2
9487 #: ../fish/guestfish-actions.pod:2539
9488 msgid "list-devices"
9489 msgstr ""
9490
9491 #. type: verbatim
9492 #: ../fish/guestfish-actions.pod:2541
9493 #, no-wrap
9494 msgid ""
9495 " list-devices\n"
9496 "\n"
9497 msgstr ""
9498
9499 #. type: textblock
9500 #: ../fish/guestfish-actions.pod:2543 ../src/guestfs-actions.pod:3735
9501 msgid "List all the block devices."
9502 msgstr ""
9503
9504 #. type: textblock
9505 #: ../fish/guestfish-actions.pod:2545 ../src/guestfs-actions.pod:3737
9506 msgid "The full block device names are returned, eg. C</dev/sda>."
9507 msgstr ""
9508
9509 #. type: =head2
9510 #: ../fish/guestfish-actions.pod:2549
9511 msgid "list-dm-devices"
9512 msgstr ""
9513
9514 #. type: verbatim
9515 #: ../fish/guestfish-actions.pod:2551
9516 #, no-wrap
9517 msgid ""
9518 " list-dm-devices\n"
9519 "\n"
9520 msgstr ""
9521
9522 #. type: textblock
9523 #: ../fish/guestfish-actions.pod:2553 ../src/guestfs-actions.pod:3752
9524 msgid "List all device mapper devices."
9525 msgstr ""
9526
9527 #. type: textblock
9528 #: ../fish/guestfish-actions.pod:2555
9529 msgid ""
9530 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
9531 "previous call to L</luks-open>."
9532 msgstr ""
9533
9534 #. type: textblock
9535 #: ../fish/guestfish-actions.pod:2558
9536 msgid ""
9537 "Device mapper devices which correspond to logical volumes are I<not> "
9538 "returned in this list.  Call L</lvs> if you want to list logical volumes."
9539 msgstr ""
9540
9541 #. type: =head2
9542 #: ../fish/guestfish-actions.pod:2562
9543 msgid "list-filesystems"
9544 msgstr ""
9545
9546 #. type: verbatim
9547 #: ../fish/guestfish-actions.pod:2564
9548 #, no-wrap
9549 msgid ""
9550 " list-filesystems\n"
9551 "\n"
9552 msgstr ""
9553
9554 #. type: textblock
9555 #: ../fish/guestfish-actions.pod:2566 ../src/guestfs-actions.pod:3772
9556 msgid ""
9557 "This inspection command looks for filesystems on partitions, block devices "
9558 "and logical volumes, returning a list of devices containing filesystems and "
9559 "their type."
9560 msgstr ""
9561
9562 #. type: textblock
9563 #: ../fish/guestfish-actions.pod:2570 ../src/guestfs-actions.pod:3776
9564 msgid ""
9565 "The return value is a hash, where the keys are the devices containing "
9566 "filesystems, and the values are the filesystem types.  For example:"
9567 msgstr ""
9568
9569 #. type: verbatim
9570 #: ../fish/guestfish-actions.pod:2574 ../src/guestfs-actions.pod:3780
9571 #, no-wrap
9572 msgid ""
9573 " \"/dev/sda1\" => \"ntfs\"\n"
9574 " \"/dev/sda2\" => \"ext2\"\n"
9575 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
9576 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
9577 "\n"
9578 msgstr ""
9579
9580 #. type: textblock
9581 #: ../fish/guestfish-actions.pod:2579 ../src/guestfs-actions.pod:3785
9582 msgid ""
9583 "The value can have the special value \"unknown\", meaning the content of the "
9584 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
9585 msgstr ""
9586
9587 #. type: textblock
9588 #: ../fish/guestfish-actions.pod:2583
9589 msgid ""
9590 "This command runs other libguestfs commands, which might include L</mount> "
9591 "and L</umount>, and therefore you should use this soon after launch and only "
9592 "when nothing is mounted."
9593 msgstr ""
9594
9595 #. type: textblock
9596 #: ../fish/guestfish-actions.pod:2587
9597 msgid ""
9598 "Not all of the filesystems returned will be mountable.  In particular, swap "
9599 "partitions are returned in the list.  Also this command does not check that "
9600 "each filesystem found is valid and mountable, and some filesystems might be "
9601 "mountable but require special options.  Filesystems may not all belong to a "
9602 "single logical operating system (use L</inspect-os> to look for OSes)."
9603 msgstr ""
9604
9605 #. type: =head2
9606 #: ../fish/guestfish-actions.pod:2595
9607 msgid "list-partitions"
9608 msgstr ""
9609
9610 #. type: verbatim
9611 #: ../fish/guestfish-actions.pod:2597
9612 #, no-wrap
9613 msgid ""
9614 " list-partitions\n"
9615 "\n"
9616 msgstr ""
9617
9618 #. type: textblock
9619 #: ../fish/guestfish-actions.pod:2599 ../src/guestfs-actions.pod:3814
9620 msgid "List all the partitions detected on all block devices."
9621 msgstr ""
9622
9623 #. type: textblock
9624 #: ../fish/guestfish-actions.pod:2601 ../src/guestfs-actions.pod:3816
9625 msgid "The full partition device names are returned, eg. C</dev/sda1>"
9626 msgstr ""
9627
9628 #. type: textblock
9629 #: ../fish/guestfish-actions.pod:2603
9630 msgid ""
9631 "This does not return logical volumes.  For that you will need to call L</"
9632 "lvs>."
9633 msgstr ""
9634
9635 #. type: =head2
9636 #: ../fish/guestfish-actions.pod:2608
9637 msgid "ll"
9638 msgstr ""
9639
9640 #. type: verbatim
9641 #: ../fish/guestfish-actions.pod:2610
9642 #, no-wrap
9643 msgid ""
9644 " ll directory\n"
9645 "\n"
9646 msgstr ""
9647
9648 #. type: textblock
9649 #: ../fish/guestfish-actions.pod:2612 ../src/guestfs-actions.pod:3835
9650 msgid ""
9651 "List the files in C<directory> (relative to the root directory, there is no "
9652 "cwd) in the format of 'ls -la'."
9653 msgstr ""
9654
9655 #. type: textblock
9656 #: ../fish/guestfish-actions.pod:2615 ../src/guestfs-actions.pod:3838
9657 msgid ""
9658 "This command is mostly useful for interactive sessions.  It is I<not> "
9659 "intended that you try to parse the output string."
9660 msgstr ""
9661
9662 #. type: =head2
9663 #: ../fish/guestfish-actions.pod:2618
9664 msgid "ln"
9665 msgstr ""
9666
9667 #. type: verbatim
9668 #: ../fish/guestfish-actions.pod:2620
9669 #, no-wrap
9670 msgid ""
9671 " ln target linkname\n"
9672 "\n"
9673 msgstr ""
9674
9675 #. type: textblock
9676 #: ../fish/guestfish-actions.pod:2622 ../src/guestfs-actions.pod:3853
9677 msgid "This command creates a hard link using the C<ln> command."
9678 msgstr ""
9679
9680 #. type: =head2
9681 #: ../fish/guestfish-actions.pod:2624
9682 msgid "ln-f"
9683 msgstr ""
9684
9685 #. type: verbatim
9686 #: ../fish/guestfish-actions.pod:2626
9687 #, no-wrap
9688 msgid ""
9689 " ln-f target linkname\n"
9690 "\n"
9691 msgstr ""
9692
9693 #. type: textblock
9694 #: ../fish/guestfish-actions.pod:2628 ../src/guestfs-actions.pod:3866
9695 msgid ""
9696 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
9697 "option removes the link (C<linkname>) if it exists already."
9698 msgstr ""
9699
9700 #. type: =head2
9701 #: ../fish/guestfish-actions.pod:2631
9702 msgid "ln-s"
9703 msgstr ""
9704
9705 #. type: verbatim
9706 #: ../fish/guestfish-actions.pod:2633
9707 #, no-wrap
9708 msgid ""
9709 " ln-s target linkname\n"
9710 "\n"
9711 msgstr ""
9712
9713 #. type: textblock
9714 #: ../fish/guestfish-actions.pod:2635 ../src/guestfs-actions.pod:3880
9715 msgid "This command creates a symbolic link using the C<ln -s> command."
9716 msgstr ""
9717
9718 #. type: =head2
9719 #: ../fish/guestfish-actions.pod:2637
9720 msgid "ln-sf"
9721 msgstr ""
9722
9723 #. type: verbatim
9724 #: ../fish/guestfish-actions.pod:2639
9725 #, no-wrap
9726 msgid ""
9727 " ln-sf target linkname\n"
9728 "\n"
9729 msgstr ""
9730
9731 #. type: textblock
9732 #: ../fish/guestfish-actions.pod:2641 ../src/guestfs-actions.pod:3893
9733 msgid ""
9734 "This command creates a symbolic link using the C<ln -sf> 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:2644
9740 msgid "lremovexattr"
9741 msgstr ""
9742
9743 #. type: verbatim
9744 #: ../fish/guestfish-actions.pod:2646
9745 #, no-wrap
9746 msgid ""
9747 " lremovexattr xattr path\n"
9748 "\n"
9749 msgstr ""
9750
9751 #. type: textblock
9752 #: ../fish/guestfish-actions.pod:2648
9753 msgid ""
9754 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
9755 "it removes an extended attribute of the link itself."
9756 msgstr ""
9757
9758 #. type: =head2
9759 #: ../fish/guestfish-actions.pod:2652
9760 msgid "ls"
9761 msgstr ""
9762
9763 #. type: verbatim
9764 #: ../fish/guestfish-actions.pod:2654
9765 #, no-wrap
9766 msgid ""
9767 " ls directory\n"
9768 "\n"
9769 msgstr ""
9770
9771 #. type: textblock
9772 #: ../fish/guestfish-actions.pod:2656 ../src/guestfs-actions.pod:3921
9773 msgid ""
9774 "List the files in C<directory> (relative to the root directory, there is no "
9775 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
9776 msgstr ""
9777
9778 #. type: textblock
9779 #: ../fish/guestfish-actions.pod:2660
9780 msgid ""
9781 "This command is mostly useful for interactive sessions.  Programs should "
9782 "probably use L</readdir> instead."
9783 msgstr ""
9784
9785 #. type: =head2
9786 #: ../fish/guestfish-actions.pod:2663
9787 msgid "lsetxattr"
9788 msgstr ""
9789
9790 #. type: verbatim
9791 #: ../fish/guestfish-actions.pod:2665
9792 #, no-wrap
9793 msgid ""
9794 " lsetxattr xattr val vallen path\n"
9795 "\n"
9796 msgstr ""
9797
9798 #. type: textblock
9799 #: ../fish/guestfish-actions.pod:2667
9800 msgid ""
9801 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
9802 "sets an extended attribute of the link itself."
9803 msgstr ""
9804
9805 #. type: =head2
9806 #: ../fish/guestfish-actions.pod:2671
9807 msgid "lstat"
9808 msgstr ""
9809
9810 #. type: verbatim
9811 #: ../fish/guestfish-actions.pod:2673
9812 #, no-wrap
9813 msgid ""
9814 " lstat path\n"
9815 "\n"
9816 msgstr ""
9817
9818 #. type: textblock
9819 #: ../fish/guestfish-actions.pod:2675 ../fish/guestfish-actions.pod:4483
9820 #: ../src/guestfs-actions.pod:3957 ../src/guestfs-actions.pod:6736
9821 msgid "Returns file information for the given C<path>."
9822 msgstr ""
9823
9824 #. type: textblock
9825 #: ../fish/guestfish-actions.pod:2677
9826 msgid ""
9827 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
9828 "the link is stat-ed, not the file it refers to."
9829 msgstr ""
9830
9831 #. type: textblock
9832 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:3963
9833 msgid "This is the same as the C<lstat(2)> system call."
9834 msgstr ""
9835
9836 #. type: =head2
9837 #: ../fish/guestfish-actions.pod:2683
9838 msgid "lstatlist"
9839 msgstr ""
9840
9841 #. type: verbatim
9842 #: ../fish/guestfish-actions.pod:2685
9843 #, no-wrap
9844 msgid ""
9845 " lstatlist path 'names ...'\n"
9846 "\n"
9847 msgstr ""
9848
9849 #. type: textblock
9850 #: ../fish/guestfish-actions.pod:2687
9851 msgid ""
9852 "This call allows you to perform the L</lstat> operation on multiple files, "
9853 "where all files are in the directory C<path>.  C<names> is the list of files "
9854 "from this directory."
9855 msgstr ""
9856
9857 #. type: textblock
9858 #: ../fish/guestfish-actions.pod:2691 ../src/guestfs-actions.pod:3982
9859 msgid ""
9860 "On return you get a list of stat structs, with a one-to-one correspondence "
9861 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
9862 "then the C<ino> field of that structure is set to C<-1>."
9863 msgstr ""
9864
9865 #. type: textblock
9866 #: ../fish/guestfish-actions.pod:2696
9867 msgid ""
9868 "This call is intended for programs that want to efficiently list a directory "
9869 "contents without making many round-trips.  See also L</lxattrlist> for a "
9870 "similarly efficient call for getting extended attributes.  Very long "
9871 "directory listings might cause the protocol message size to be exceeded, "
9872 "causing this call to fail.  The caller must split up such requests into "
9873 "smaller groups of names."
9874 msgstr ""
9875
9876 #. type: =head2
9877 #: ../fish/guestfish-actions.pod:2704
9878 msgid "luks-add-key"
9879 msgstr ""
9880
9881 #. type: verbatim
9882 #: ../fish/guestfish-actions.pod:2706
9883 #, no-wrap
9884 msgid ""
9885 " luks-add-key device keyslot\n"
9886 "\n"
9887 msgstr ""
9888
9889 #. type: textblock
9890 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4010
9891 msgid ""
9892 "This command adds a new key on LUKS device C<device>.  C<key> is any "
9893 "existing key, and is used to access the device.  C<newkey> is the new key to "
9894 "add.  C<keyslot> is the key slot that will be replaced."
9895 msgstr ""
9896
9897 #. type: textblock
9898 #: ../fish/guestfish-actions.pod:2713
9899 msgid ""
9900 "Note that if C<keyslot> already contains a key, then this command will "
9901 "fail.  You have to use L</luks-kill-slot> first to remove that key."
9902 msgstr ""
9903
9904 #. type: textblock
9905 #: ../fish/guestfish-actions.pod:2717 ../fish/guestfish-actions.pod:2739
9906 #: ../fish/guestfish-actions.pod:2752 ../fish/guestfish-actions.pod:2766
9907 #: ../fish/guestfish-actions.pod:2792 ../fish/guestfish-actions.pod:2802
9908 msgid ""
9909 "This command has one or more key or passphrase parameters.  Guestfish will "
9910 "prompt for these separately."
9911 msgstr ""
9912
9913 #. type: =head2
9914 #: ../fish/guestfish-actions.pod:2720
9915 msgid "luks-close"
9916 msgstr ""
9917
9918 #. type: verbatim
9919 #: ../fish/guestfish-actions.pod:2722
9920 #, no-wrap
9921 msgid ""
9922 " luks-close device\n"
9923 "\n"
9924 msgstr ""
9925
9926 #. type: textblock
9927 #: ../fish/guestfish-actions.pod:2724
9928 msgid ""
9929 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
9930 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
9931 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
9932 "block device."
9933 msgstr ""
9934
9935 #. type: =head2
9936 #: ../fish/guestfish-actions.pod:2730
9937 msgid "luks-format"
9938 msgstr ""
9939
9940 #. type: verbatim
9941 #: ../fish/guestfish-actions.pod:2732
9942 #, no-wrap
9943 msgid ""
9944 " luks-format device keyslot\n"
9945 "\n"
9946 msgstr ""
9947
9948 #. type: textblock
9949 #: ../fish/guestfish-actions.pod:2734 ../src/guestfs-actions.pod:4051
9950 msgid ""
9951 "This command erases existing data on C<device> and formats the device as a "
9952 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
9953 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
9954 msgstr ""
9955
9956 #. type: textblock
9957 #: ../fish/guestfish-actions.pod:2742 ../fish/guestfish-actions.pod:2755
9958 #: ../fish/guestfish-actions.pod:2842 ../fish/guestfish-actions.pod:3503
9959 #: ../fish/guestfish-actions.pod:4029 ../fish/guestfish-actions.pod:4354
9960 #: ../fish/guestfish-actions.pod:4377 ../fish/guestfish-actions.pod:4399
9961 #: ../fish/guestfish-actions.pod:5145 ../src/guestfs-actions.pod:4058
9962 #: ../src/guestfs-actions.pod:4081 ../src/guestfs-actions.pod:4224
9963 #: ../src/guestfs-actions.pod:5327 ../src/guestfs-actions.pod:6115
9964 #: ../src/guestfs-actions.pod:6550 ../src/guestfs-actions.pod:6580
9965 #: ../src/guestfs-actions.pod:6613 ../src/guestfs-actions.pod:7812
9966 msgid ""
9967 "B<This command is dangerous.  Without careful use you can easily destroy all "
9968 "your data>."
9969 msgstr ""
9970
9971 #. type: =head2
9972 #: ../fish/guestfish-actions.pod:2745
9973 msgid "luks-format-cipher"
9974 msgstr ""
9975
9976 #. type: verbatim
9977 #: ../fish/guestfish-actions.pod:2747
9978 #, no-wrap
9979 msgid ""
9980 " luks-format-cipher device keyslot cipher\n"
9981 "\n"
9982 msgstr ""
9983
9984 #. type: textblock
9985 #: ../fish/guestfish-actions.pod:2749
9986 msgid ""
9987 "This command is the same as L</luks-format> but it also allows you to set "
9988 "the C<cipher> used."
9989 msgstr ""
9990
9991 #. type: =head2
9992 #: ../fish/guestfish-actions.pod:2758
9993 msgid "luks-kill-slot"
9994 msgstr ""
9995
9996 #. type: verbatim
9997 #: ../fish/guestfish-actions.pod:2760
9998 #, no-wrap
9999 msgid ""
10000 " luks-kill-slot device keyslot\n"
10001 "\n"
10002 msgstr ""
10003
10004 #. type: textblock
10005 #: ../fish/guestfish-actions.pod:2762 ../src/guestfs-actions.pod:4098
10006 msgid ""
10007 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10008 "device C<device>.  C<key> must be one of the I<other> keys."
10009 msgstr ""
10010
10011 #. type: =head2
10012 #: ../fish/guestfish-actions.pod:2769
10013 msgid "luks-open"
10014 msgstr ""
10015
10016 #. type: verbatim
10017 #: ../fish/guestfish-actions.pod:2771
10018 #, no-wrap
10019 msgid ""
10020 " luks-open device mapname\n"
10021 "\n"
10022 msgstr ""
10023
10024 #. type: textblock
10025 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4118
10026 msgid ""
10027 "This command opens a block device which has been encrypted according to the "
10028 "Linux Unified Key Setup (LUKS) standard."
10029 msgstr ""
10030
10031 #. type: textblock
10032 #: ../fish/guestfish-actions.pod:2776 ../src/guestfs-actions.pod:4121
10033 msgid "C<device> is the encrypted block device or partition."
10034 msgstr ""
10035
10036 #. type: textblock
10037 #: ../fish/guestfish-actions.pod:2778 ../src/guestfs-actions.pod:4123
10038 msgid ""
10039 "The caller must supply one of the keys associated with the LUKS block "
10040 "device, in the C<key> parameter."
10041 msgstr ""
10042
10043 #. type: textblock
10044 #: ../fish/guestfish-actions.pod:2781 ../src/guestfs-actions.pod:4126
10045 msgid ""
10046 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10047 "writes to this block device are decrypted from and encrypted to the "
10048 "underlying C<device> respectively."
10049 msgstr ""
10050
10051 #. type: textblock
10052 #: ../fish/guestfish-actions.pod:2785
10053 msgid ""
10054 "If this block device contains LVM volume groups, then calling L</vgscan> "
10055 "followed by L</vg-activate-all> will make them visible."
10056 msgstr ""
10057
10058 #. type: textblock
10059 #: ../fish/guestfish-actions.pod:2789
10060 msgid "Use L</list-dm-devices> to list all device mapper devices."
10061 msgstr ""
10062
10063 #. type: =head2
10064 #: ../fish/guestfish-actions.pod:2795
10065 msgid "luks-open-ro"
10066 msgstr ""
10067
10068 #. type: verbatim
10069 #: ../fish/guestfish-actions.pod:2797
10070 #, no-wrap
10071 msgid ""
10072 " luks-open-ro device mapname\n"
10073 "\n"
10074 msgstr ""
10075
10076 #. type: textblock
10077 #: ../fish/guestfish-actions.pod:2799
10078 msgid ""
10079 "This is the same as L</luks-open> except that a read-only mapping is created."
10080 msgstr ""
10081
10082 #. type: =head2
10083 #: ../fish/guestfish-actions.pod:2805
10084 msgid "lvcreate"
10085 msgstr ""
10086
10087 #. type: verbatim
10088 #: ../fish/guestfish-actions.pod:2807
10089 #, no-wrap
10090 msgid ""
10091 " lvcreate logvol volgroup mbytes\n"
10092 "\n"
10093 msgstr ""
10094
10095 #. type: textblock
10096 #: ../fish/guestfish-actions.pod:2809 ../src/guestfs-actions.pod:4172
10097 msgid ""
10098 "This creates an LVM logical volume called C<logvol> on the volume group "
10099 "C<volgroup>, with C<size> megabytes."
10100 msgstr ""
10101
10102 #. type: =head2
10103 #: ../fish/guestfish-actions.pod:2812
10104 msgid "lvm-canonical-lv-name"
10105 msgstr ""
10106
10107 #. type: verbatim
10108 #: ../fish/guestfish-actions.pod:2814
10109 #, no-wrap
10110 msgid ""
10111 " lvm-canonical-lv-name lvname\n"
10112 "\n"
10113 msgstr ""
10114
10115 #. type: textblock
10116 #: ../fish/guestfish-actions.pod:2816 ../src/guestfs-actions.pod:4185
10117 msgid ""
10118 "This converts alternative naming schemes for LVs that you might find to the "
10119 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10120 "LV>."
10121 msgstr ""
10122
10123 #. type: textblock
10124 #: ../fish/guestfish-actions.pod:2820 ../src/guestfs-actions.pod:4189
10125 msgid ""
10126 "This command returns an error if the C<lvname> parameter does not refer to a "
10127 "logical volume."
10128 msgstr ""
10129
10130 #. type: textblock
10131 #: ../fish/guestfish-actions.pod:2823
10132 msgid "See also L</is-lv>."
10133 msgstr ""
10134
10135 #. type: =head2
10136 #: ../fish/guestfish-actions.pod:2825
10137 msgid "lvm-clear-filter"
10138 msgstr ""
10139
10140 #. type: verbatim
10141 #: ../fish/guestfish-actions.pod:2827
10142 #, no-wrap
10143 msgid ""
10144 " lvm-clear-filter\n"
10145 "\n"
10146 msgstr ""
10147
10148 #. type: textblock
10149 #: ../fish/guestfish-actions.pod:2829
10150 msgid ""
10151 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
10152 "block device."
10153 msgstr ""
10154
10155 #. type: textblock
10156 #: ../fish/guestfish-actions.pod:2832 ../fish/guestfish-actions.pod:2863
10157 #: ../src/guestfs-actions.pod:4207 ../src/guestfs-actions.pod:4249
10158 msgid ""
10159 "This command also clears the LVM cache and performs a volume group scan."
10160 msgstr ""
10161
10162 #. type: =head2
10163 #: ../fish/guestfish-actions.pod:2835
10164 msgid "lvm-remove-all"
10165 msgstr ""
10166
10167 #. type: verbatim
10168 #: ../fish/guestfish-actions.pod:2837
10169 #, no-wrap
10170 msgid ""
10171 " lvm-remove-all\n"
10172 "\n"
10173 msgstr ""
10174
10175 #. type: textblock
10176 #: ../fish/guestfish-actions.pod:2839 ../src/guestfs-actions.pod:4219
10177 msgid ""
10178 "This command removes all LVM logical volumes, volume groups and physical "
10179 "volumes."
10180 msgstr ""
10181
10182 #. type: =head2
10183 #: ../fish/guestfish-actions.pod:2845
10184 msgid "lvm-set-filter"
10185 msgstr ""
10186
10187 #. type: verbatim
10188 #: ../fish/guestfish-actions.pod:2847
10189 #, no-wrap
10190 msgid ""
10191 " lvm-set-filter 'devices ...'\n"
10192 "\n"
10193 msgstr ""
10194
10195 #. type: textblock
10196 #: ../fish/guestfish-actions.pod:2849 ../src/guestfs-actions.pod:4235
10197 msgid ""
10198 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10199 "block devices in the list C<devices>, and will ignore all other attached "
10200 "block devices."
10201 msgstr ""
10202
10203 #. type: textblock
10204 #: ../fish/guestfish-actions.pod:2853 ../src/guestfs-actions.pod:4239
10205 msgid ""
10206 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10207 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10208 "there are two types of duplication possible: either cloned PVs/VGs which "
10209 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10210 "same name.  In normal operation you cannot create this situation, but you "
10211 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10212 "inside the LVM metadata."
10213 msgstr ""
10214
10215 #. type: textblock
10216 #: ../fish/guestfish-actions.pod:2866 ../src/guestfs-actions.pod:4252
10217 msgid "You can filter whole block devices or individual partitions."
10218 msgstr ""
10219
10220 #. type: textblock
10221 #: ../fish/guestfish-actions.pod:2868 ../src/guestfs-actions.pod:4254
10222 msgid ""
10223 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10224 "filesystem), even if you are not filtering out that VG."
10225 msgstr ""
10226
10227 #. type: =head2
10228 #: ../fish/guestfish-actions.pod:2872
10229 msgid "lvremove"
10230 msgstr ""
10231
10232 #. type: verbatim
10233 #: ../fish/guestfish-actions.pod:2874
10234 #, no-wrap
10235 msgid ""
10236 " lvremove device\n"
10237 "\n"
10238 msgstr ""
10239
10240 #. type: textblock
10241 #: ../fish/guestfish-actions.pod:2876 ../src/guestfs-actions.pod:4268
10242 msgid ""
10243 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10244 "LV, such as C</dev/VG/LV>."
10245 msgstr ""
10246
10247 #. type: textblock
10248 #: ../fish/guestfish-actions.pod:2879 ../src/guestfs-actions.pod:4271
10249 msgid ""
10250 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10251 "dev/VG>."
10252 msgstr ""
10253
10254 #. type: =head2
10255 #: ../fish/guestfish-actions.pod:2882
10256 msgid "lvrename"
10257 msgstr ""
10258
10259 #. type: verbatim
10260 #: ../fish/guestfish-actions.pod:2884
10261 #, no-wrap
10262 msgid ""
10263 " lvrename logvol newlogvol\n"
10264 "\n"
10265 msgstr ""
10266
10267 #. type: textblock
10268 #: ../fish/guestfish-actions.pod:2886 ../src/guestfs-actions.pod:4285
10269 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10270 msgstr ""
10271
10272 #. type: =head2
10273 #: ../fish/guestfish-actions.pod:2888
10274 msgid "lvresize"
10275 msgstr ""
10276
10277 #. type: verbatim
10278 #: ../fish/guestfish-actions.pod:2890
10279 #, no-wrap
10280 msgid ""
10281 " lvresize device mbytes\n"
10282 "\n"
10283 msgstr ""
10284
10285 #. type: textblock
10286 #: ../fish/guestfish-actions.pod:2892 ../src/guestfs-actions.pod:4298
10287 msgid ""
10288 "This resizes (expands or shrinks) an existing LVM logical volume to "
10289 "C<mbytes>.  When reducing, data in the reduced part is lost."
10290 msgstr ""
10291
10292 #. type: =head2
10293 #: ../fish/guestfish-actions.pod:2896
10294 msgid "lvresize-free"
10295 msgstr ""
10296
10297 #. type: verbatim
10298 #: ../fish/guestfish-actions.pod:2898
10299 #, no-wrap
10300 msgid ""
10301 " lvresize-free lv percent\n"
10302 "\n"
10303 msgstr ""
10304
10305 #. type: textblock
10306 #: ../fish/guestfish-actions.pod:2900 ../src/guestfs-actions.pod:4313
10307 msgid ""
10308 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10309 "remaining free space in the volume group.  Commonly you would call this with "
10310 "pc = 100 which expands the logical volume as much as possible, using all "
10311 "remaining free space in the volume group."
10312 msgstr ""
10313
10314 #. type: =head2
10315 #: ../fish/guestfish-actions.pod:2906
10316 msgid "lvs"
10317 msgstr ""
10318
10319 #. type: verbatim
10320 #: ../fish/guestfish-actions.pod:2908
10321 #, no-wrap
10322 msgid ""
10323 " lvs\n"
10324 "\n"
10325 msgstr ""
10326
10327 #. type: textblock
10328 #: ../fish/guestfish-actions.pod:2910 ../src/guestfs-actions.pod:4328
10329 msgid ""
10330 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10331 "(8)> command."
10332 msgstr ""
10333
10334 #. type: textblock
10335 #: ../fish/guestfish-actions.pod:2913 ../src/guestfs-actions.pod:4331
10336 msgid ""
10337 "This returns a list of the logical volume device names (eg. C</dev/"
10338 "VolGroup00/LogVol00>)."
10339 msgstr ""
10340
10341 #. type: textblock
10342 #: ../fish/guestfish-actions.pod:2916
10343 msgid "See also L</lvs-full>, L</list-filesystems>."
10344 msgstr ""
10345
10346 #. type: =head2
10347 #: ../fish/guestfish-actions.pod:2918
10348 msgid "lvs-full"
10349 msgstr ""
10350
10351 #. type: verbatim
10352 #: ../fish/guestfish-actions.pod:2920
10353 #, no-wrap
10354 msgid ""
10355 " lvs-full\n"
10356 "\n"
10357 msgstr ""
10358
10359 #. type: textblock
10360 #: ../fish/guestfish-actions.pod:2922 ../src/guestfs-actions.pod:4347
10361 msgid ""
10362 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10363 "(8)> command.  The \"full\" version includes all fields."
10364 msgstr ""
10365
10366 #. type: =head2
10367 #: ../fish/guestfish-actions.pod:2925
10368 msgid "lvuuid"
10369 msgstr ""
10370
10371 #. type: verbatim
10372 #: ../fish/guestfish-actions.pod:2927
10373 #, no-wrap
10374 msgid ""
10375 " lvuuid device\n"
10376 "\n"
10377 msgstr ""
10378
10379 #. type: textblock
10380 #: ../fish/guestfish-actions.pod:2929 ../src/guestfs-actions.pod:4362
10381 msgid "This command returns the UUID of the LVM LV C<device>."
10382 msgstr ""
10383
10384 #. type: =head2
10385 #: ../fish/guestfish-actions.pod:2931
10386 msgid "lxattrlist"
10387 msgstr ""
10388
10389 #. type: verbatim
10390 #: ../fish/guestfish-actions.pod:2933
10391 #, no-wrap
10392 msgid ""
10393 " lxattrlist path 'names ...'\n"
10394 "\n"
10395 msgstr ""
10396
10397 #. type: textblock
10398 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4376
10399 msgid ""
10400 "This call allows you to get the extended attributes of multiple files, where "
10401 "all files are in the directory C<path>.  C<names> is the list of files from "
10402 "this directory."
10403 msgstr ""
10404
10405 #. type: textblock
10406 #: ../fish/guestfish-actions.pod:2939 ../src/guestfs-actions.pod:4380
10407 msgid ""
10408 "On return you get a flat list of xattr structs which must be interpreted "
10409 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
10410 "C<attrval> in this struct is zero-length to indicate there was an error "
10411 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
10412 "number (the number of following attributes for this file, which could be C<"
10413 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
10414 "for the first named file.  This repeats for the second and subsequent files."
10415 msgstr ""
10416
10417 #. type: textblock
10418 #: ../fish/guestfish-actions.pod:2949
10419 msgid ""
10420 "This call is intended for programs that want to efficiently list a directory "
10421 "contents without making many round-trips.  See also L</lstatlist> for a "
10422 "similarly efficient call for getting standard stats.  Very long directory "
10423 "listings might cause the protocol message size to be exceeded, causing this "
10424 "call to fail.  The caller must split up such requests into smaller groups of "
10425 "names."
10426 msgstr ""
10427
10428 #. type: =head2
10429 #: ../fish/guestfish-actions.pod:2957
10430 msgid "mkdir"
10431 msgstr ""
10432
10433 #. type: verbatim
10434 #: ../fish/guestfish-actions.pod:2959
10435 #, no-wrap
10436 msgid ""
10437 " mkdir path\n"
10438 "\n"
10439 msgstr ""
10440
10441 #. type: textblock
10442 #: ../fish/guestfish-actions.pod:2961 ../src/guestfs-actions.pod:4410
10443 msgid "Create a directory named C<path>."
10444 msgstr ""
10445
10446 #. type: =head2
10447 #: ../fish/guestfish-actions.pod:2963
10448 msgid "mkdir-mode"
10449 msgstr ""
10450
10451 #. type: verbatim
10452 #: ../fish/guestfish-actions.pod:2965
10453 #, no-wrap
10454 msgid ""
10455 " mkdir-mode path mode\n"
10456 "\n"
10457 msgstr ""
10458
10459 #. type: textblock
10460 #: ../fish/guestfish-actions.pod:2967 ../src/guestfs-actions.pod:4423
10461 msgid ""
10462 "This command creates a directory, setting the initial permissions of the "
10463 "directory to C<mode>."
10464 msgstr ""
10465
10466 #. type: textblock
10467 #: ../fish/guestfish-actions.pod:2970 ../src/guestfs-actions.pod:4426
10468 msgid ""
10469 "For common Linux filesystems, the actual mode which is set will be C<mode & "
10470 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
10471 "other ways."
10472 msgstr ""
10473
10474 #. type: textblock
10475 #: ../fish/guestfish-actions.pod:2974
10476 msgid "See also L</mkdir>, L</umask>"
10477 msgstr ""
10478
10479 #. type: =head2
10480 #: ../fish/guestfish-actions.pod:2976
10481 msgid "mkdir-p"
10482 msgstr ""
10483
10484 #. type: verbatim
10485 #: ../fish/guestfish-actions.pod:2978
10486 #, no-wrap
10487 msgid ""
10488 " mkdir-p path\n"
10489 "\n"
10490 msgstr ""
10491
10492 #. type: textblock
10493 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4442
10494 msgid ""
10495 "Create a directory named C<path>, creating any parent directories as "
10496 "necessary.  This is like the C<mkdir -p> shell command."
10497 msgstr ""
10498
10499 #. type: =head2
10500 #: ../fish/guestfish-actions.pod:2983
10501 msgid "mkdtemp"
10502 msgstr ""
10503
10504 #. type: verbatim
10505 #: ../fish/guestfish-actions.pod:2985
10506 #, no-wrap
10507 msgid ""
10508 " mkdtemp template\n"
10509 "\n"
10510 msgstr ""
10511
10512 #. type: textblock
10513 #: ../fish/guestfish-actions.pod:2987 ../src/guestfs-actions.pod:4455
10514 msgid ""
10515 "This command creates a temporary directory.  The C<template> parameter "
10516 "should be a full pathname for the temporary directory name with the final "
10517 "six characters being \"XXXXXX\"."
10518 msgstr ""
10519
10520 #. type: textblock
10521 #: ../fish/guestfish-actions.pod:2992 ../src/guestfs-actions.pod:4460
10522 msgid ""
10523 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
10524 "being suitable for Windows filesystems."
10525 msgstr ""
10526
10527 #. type: textblock
10528 #: ../fish/guestfish-actions.pod:2995 ../src/guestfs-actions.pod:4463
10529 msgid "The name of the temporary directory that was created is returned."
10530 msgstr ""
10531
10532 #. type: textblock
10533 #: ../fish/guestfish-actions.pod:2998 ../src/guestfs-actions.pod:4466
10534 msgid "The temporary directory is created with mode 0700 and is owned by root."
10535 msgstr ""
10536
10537 #. type: textblock
10538 #: ../fish/guestfish-actions.pod:3001 ../src/guestfs-actions.pod:4469
10539 msgid ""
10540 "The caller is responsible for deleting the temporary directory and its "
10541 "contents after use."
10542 msgstr ""
10543
10544 #. type: textblock
10545 #: ../fish/guestfish-actions.pod:3004 ../src/guestfs-actions.pod:4472
10546 msgid "See also: L<mkdtemp(3)>"
10547 msgstr ""
10548
10549 #. type: =head2
10550 #: ../fish/guestfish-actions.pod:3006
10551 msgid "mke2fs-J"
10552 msgstr ""
10553
10554 #. type: verbatim
10555 #: ../fish/guestfish-actions.pod:3008
10556 #, no-wrap
10557 msgid ""
10558 " mke2fs-J fstype blocksize device journal\n"
10559 "\n"
10560 msgstr ""
10561
10562 #. type: textblock
10563 #: ../fish/guestfish-actions.pod:3010 ../src/guestfs-actions.pod:4488
10564 msgid ""
10565 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10566 "C<journal>.  It is equivalent to the command:"
10567 msgstr ""
10568
10569 #. type: verbatim
10570 #: ../fish/guestfish-actions.pod:3014 ../src/guestfs-actions.pod:4492
10571 #, no-wrap
10572 msgid ""
10573 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
10574 "\n"
10575 msgstr ""
10576
10577 #. type: textblock
10578 #: ../fish/guestfish-actions.pod:3016
10579 msgid "See also L</mke2journal>."
10580 msgstr ""
10581
10582 #. type: =head2
10583 #: ../fish/guestfish-actions.pod:3018
10584 msgid "mke2fs-JL"
10585 msgstr ""
10586
10587 #. type: verbatim
10588 #: ../fish/guestfish-actions.pod:3020
10589 #, no-wrap
10590 msgid ""
10591 " mke2fs-JL fstype blocksize device label\n"
10592 "\n"
10593 msgstr ""
10594
10595 #. type: textblock
10596 #: ../fish/guestfish-actions.pod:3022 ../src/guestfs-actions.pod:4509
10597 msgid ""
10598 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10599 "the journal labeled C<label>."
10600 msgstr ""
10601
10602 #. type: textblock
10603 #: ../fish/guestfish-actions.pod:3025
10604 msgid "See also L</mke2journal-L>."
10605 msgstr ""
10606
10607 #. type: =head2
10608 #: ../fish/guestfish-actions.pod:3027
10609 msgid "mke2fs-JU"
10610 msgstr ""
10611
10612 #. type: verbatim
10613 #: ../fish/guestfish-actions.pod:3029
10614 #, no-wrap
10615 msgid ""
10616 " mke2fs-JU fstype blocksize device uuid\n"
10617 "\n"
10618 msgstr ""
10619
10620 #. type: textblock
10621 #: ../fish/guestfish-actions.pod:3031 ../src/guestfs-actions.pod:4527
10622 msgid ""
10623 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10624 "the journal with UUID C<uuid>."
10625 msgstr ""
10626
10627 #. type: textblock
10628 #: ../fish/guestfish-actions.pod:3034
10629 msgid "See also L</mke2journal-U>."
10630 msgstr ""
10631
10632 #. type: =head2
10633 #: ../fish/guestfish-actions.pod:3036
10634 msgid "mke2journal"
10635 msgstr ""
10636
10637 #. type: verbatim
10638 #: ../fish/guestfish-actions.pod:3038
10639 #, no-wrap
10640 msgid ""
10641 " mke2journal blocksize device\n"
10642 "\n"
10643 msgstr ""
10644
10645 #. type: textblock
10646 #: ../fish/guestfish-actions.pod:3040 ../src/guestfs-actions.pod:4543
10647 msgid ""
10648 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
10649 "command:"
10650 msgstr ""
10651
10652 #. type: verbatim
10653 #: ../fish/guestfish-actions.pod:3043 ../src/guestfs-actions.pod:4546
10654 #, no-wrap
10655 msgid ""
10656 " mke2fs -O journal_dev -b blocksize device\n"
10657 "\n"
10658 msgstr ""
10659
10660 #. type: =head2
10661 #: ../fish/guestfish-actions.pod:3045
10662 msgid "mke2journal-L"
10663 msgstr ""
10664
10665 #. type: verbatim
10666 #: ../fish/guestfish-actions.pod:3047
10667 #, no-wrap
10668 msgid ""
10669 " mke2journal-L blocksize label device\n"
10670 "\n"
10671 msgstr ""
10672
10673 #. type: textblock
10674 #: ../fish/guestfish-actions.pod:3049 ../src/guestfs-actions.pod:4560
10675 msgid "This creates an ext2 external journal on C<device> with label C<label>."
10676 msgstr ""
10677
10678 #. type: =head2
10679 #: ../fish/guestfish-actions.pod:3051
10680 msgid "mke2journal-U"
10681 msgstr ""
10682
10683 #. type: verbatim
10684 #: ../fish/guestfish-actions.pod:3053
10685 #, no-wrap
10686 msgid ""
10687 " mke2journal-U blocksize uuid device\n"
10688 "\n"
10689 msgstr ""
10690
10691 #. type: textblock
10692 #: ../fish/guestfish-actions.pod:3055 ../src/guestfs-actions.pod:4574
10693 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
10694 msgstr ""
10695
10696 #. type: =head2
10697 #: ../fish/guestfish-actions.pod:3057
10698 msgid "mkfifo"
10699 msgstr ""
10700
10701 #. type: verbatim
10702 #: ../fish/guestfish-actions.pod:3059
10703 #, no-wrap
10704 msgid ""
10705 " mkfifo mode path\n"
10706 "\n"
10707 msgstr ""
10708
10709 #. type: textblock
10710 #: ../fish/guestfish-actions.pod:3061
10711 msgid ""
10712 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
10713 "is just a convenient wrapper around L</mknod>."
10714 msgstr ""
10715
10716 #. type: =head2
10717 #: ../fish/guestfish-actions.pod:3067
10718 msgid "mkfs"
10719 msgstr ""
10720
10721 #. type: verbatim
10722 #: ../fish/guestfish-actions.pod:3069
10723 #, no-wrap
10724 msgid ""
10725 " mkfs fstype device\n"
10726 "\n"
10727 msgstr ""
10728
10729 #. type: textblock
10730 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4604
10731 msgid ""
10732 "This creates a filesystem on C<device> (usually a partition or LVM logical "
10733 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
10734 msgstr ""
10735
10736 #. type: =head2
10737 #: ../fish/guestfish-actions.pod:3075
10738 msgid "mkfs-b"
10739 msgstr ""
10740
10741 #. type: verbatim
10742 #: ../fish/guestfish-actions.pod:3077
10743 #, no-wrap
10744 msgid ""
10745 " mkfs-b fstype blocksize device\n"
10746 "\n"
10747 msgstr ""
10748
10749 #. type: textblock
10750 #: ../fish/guestfish-actions.pod:3079
10751 msgid ""
10752 "This call is similar to L</mkfs>, but it allows you to control the block "
10753 "size of the resulting filesystem.  Supported block sizes depend on the "
10754 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
10755 msgstr ""
10756
10757 #. type: textblock
10758 #: ../fish/guestfish-actions.pod:3084 ../fish/guestfish-actions.pod:3111
10759 #: ../src/guestfs-actions.pod:4632 ../src/guestfs-actions.pod:4670
10760 msgid ""
10761 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
10762 "cluster size."
10763 msgstr ""
10764
10765 #. type: textblock
10766 #: ../fish/guestfish-actions.pod:3087
10767 msgid ""
10768 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
10769 "instead."
10770 msgstr ""
10771
10772 #. type: =head2
10773 #: ../fish/guestfish-actions.pod:3094
10774 msgid "mkfs-opts"
10775 msgstr ""
10776
10777 #. type: verbatim
10778 #: ../fish/guestfish-actions.pod:3096
10779 #, no-wrap
10780 msgid ""
10781 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
10782 "\n"
10783 msgstr ""
10784
10785 #. type: textblock
10786 #: ../fish/guestfish-actions.pod:3098 ../src/guestfs-actions.pod:4657
10787 msgid ""
10788 "This function creates a filesystem on C<device>.  The filesystem type is "
10789 "C<fstype>, for example C<ext3>."
10790 msgstr ""
10791
10792 #. type: =item
10793 #: ../fish/guestfish-actions.pod:3105 ../src/guestfs-actions.pod:4664
10794 msgid "C<blocksize>"
10795 msgstr ""
10796
10797 #. type: textblock
10798 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4666
10799 msgid ""
10800 "The filesystem block size.  Supported block sizes depend on the filesystem "
10801 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
10802 "filesystems."
10803 msgstr ""
10804
10805 #. type: textblock
10806 #: ../fish/guestfish-actions.pod:3114 ../src/guestfs-actions.pod:4673
10807 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
10808 msgstr ""
10809
10810 #. type: =item
10811 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4675
10812 msgid "C<features>"
10813 msgstr ""
10814
10815 #. type: textblock
10816 #: ../fish/guestfish-actions.pod:3118 ../src/guestfs-actions.pod:4677
10817 msgid "This passes the I<-O> parameter to the external mkfs program."
10818 msgstr ""
10819
10820 #. type: textblock
10821 #: ../fish/guestfish-actions.pod:3120 ../src/guestfs-actions.pod:4679
10822 msgid ""
10823 "For certain filesystem types, this allows extra filesystem features to be "
10824 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
10825 msgstr ""
10826
10827 #. type: textblock
10828 #: ../fish/guestfish-actions.pod:3124 ../src/guestfs-actions.pod:4683
10829 msgid ""
10830 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
10831 "type."
10832 msgstr ""
10833
10834 #. type: =item
10835 #: ../fish/guestfish-actions.pod:3127 ../src/guestfs-actions.pod:4686
10836 msgid "C<inode>"
10837 msgstr ""
10838
10839 #. type: textblock
10840 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4688
10841 msgid ""
10842 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
10843 "sets the inode size (only for ext2/3/4 filesystems at present)."
10844 msgstr ""
10845
10846 #. type: =item
10847 #: ../fish/guestfish-actions.pod:3132 ../src/guestfs-actions.pod:4691
10848 msgid "C<sectorsize>"
10849 msgstr ""
10850
10851 #. type: textblock
10852 #: ../fish/guestfish-actions.pod:3134 ../src/guestfs-actions.pod:4693
10853 msgid ""
10854 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
10855 "sets sector size for ufs filesystem."
10856 msgstr ""
10857
10858 #. type: =head2
10859 #: ../fish/guestfish-actions.pod:3141
10860 msgid "mkmountpoint"
10861 msgstr ""
10862
10863 #. type: verbatim
10864 #: ../fish/guestfish-actions.pod:3143
10865 #, no-wrap
10866 msgid ""
10867 " mkmountpoint exemptpath\n"
10868 "\n"
10869 msgstr ""
10870
10871 #. type: textblock
10872 #: ../fish/guestfish-actions.pod:3145
10873 msgid ""
10874 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
10875 "to create extra mountpoints before mounting the first filesystem."
10876 msgstr ""
10877
10878 #. type: textblock
10879 #: ../fish/guestfish-actions.pod:3149 ../src/guestfs-actions.pod:4736
10880 msgid ""
10881 "These calls are I<only> necessary in some very limited circumstances, mainly "
10882 "the case where you want to mount a mix of unrelated and/or read-only "
10883 "filesystems together."
10884 msgstr ""
10885
10886 #. type: textblock
10887 #: ../fish/guestfish-actions.pod:3153 ../src/guestfs-actions.pod:4740
10888 msgid ""
10889 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
10890 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
10891 "inside that.  You can unpack this as follows in guestfish:"
10892 msgstr ""
10893
10894 #. type: verbatim
10895 #: ../fish/guestfish-actions.pod:3158 ../src/guestfs-actions.pod:4745
10896 #, no-wrap
10897 msgid ""
10898 " add-ro Fedora-11-i686-Live.iso\n"
10899 " run\n"
10900 " mkmountpoint /cd\n"
10901 " mkmountpoint /sqsh\n"
10902 " mkmountpoint /ext3fs\n"
10903 " mount /dev/sda /cd\n"
10904 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
10905 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
10906 "\n"
10907 msgstr ""
10908
10909 #. type: textblock
10910 #: ../fish/guestfish-actions.pod:3167 ../src/guestfs-actions.pod:4754
10911 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
10912 msgstr ""
10913
10914 #. type: textblock
10915 #: ../fish/guestfish-actions.pod:3169
10916 msgid ""
10917 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
10918 "unexpected errors if you try to mix these calls.  It is safest to manually "
10919 "unmount filesystems and remove mountpoints after use."
10920 msgstr ""
10921
10922 #. type: textblock
10923 #: ../fish/guestfish-actions.pod:3173
10924 msgid ""
10925 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
10926 "for this to work for manual mountpoints, you must ensure that the innermost "
10927 "mountpoints have the longest pathnames, as in the example code above."
10928 msgstr ""
10929
10930 #. type: textblock
10931 #: ../fish/guestfish-actions.pod:3178 ../src/guestfs-actions.pod:4765
10932 msgid ""
10933 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
10934 msgstr ""
10935
10936 #. type: textblock
10937 #: ../fish/guestfish-actions.pod:3180
10938 msgid ""
10939 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
10940 "L</umount-all> to be called when the handle is closed which can also trigger "
10941 "these issues."
10942 msgstr ""
10943
10944 #. type: =head2
10945 #: ../fish/guestfish-actions.pod:3184
10946 msgid "mknod"
10947 msgstr ""
10948
10949 #. type: verbatim
10950 #: ../fish/guestfish-actions.pod:3186
10951 #, no-wrap
10952 msgid ""
10953 " mknod mode devmajor devminor path\n"
10954 "\n"
10955 msgstr ""
10956
10957 #. type: textblock
10958 #: ../fish/guestfish-actions.pod:3188 ../src/guestfs-actions.pod:4784
10959 msgid ""
10960 "This call creates block or character special devices, or named pipes (FIFOs)."
10961 msgstr ""
10962
10963 #. type: textblock
10964 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4787
10965 msgid ""
10966 "The C<mode> parameter should be the mode, using the standard constants.  "
10967 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
10968 "used when creating block and character special devices."
10969 msgstr ""
10970
10971 #. type: textblock
10972 #: ../fish/guestfish-actions.pod:3196
10973 msgid ""
10974 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
10975 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
10976 "regular file).  These constants are available in the standard Linux header "
10977 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
10978 "wrappers around this command which bitwise OR in the appropriate constant "
10979 "for you."
10980 msgstr ""
10981
10982 #. type: =head2
10983 #: ../fish/guestfish-actions.pod:3206
10984 msgid "mknod-b"
10985 msgstr ""
10986
10987 #. type: verbatim
10988 #: ../fish/guestfish-actions.pod:3208
10989 #, no-wrap
10990 msgid ""
10991 " mknod-b mode devmajor devminor path\n"
10992 "\n"
10993 msgstr ""
10994
10995 #. type: textblock
10996 #: ../fish/guestfish-actions.pod:3210
10997 msgid ""
10998 "This call creates a block device node called C<path> with mode C<mode> and "
10999 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11000 "wrapper around L</mknod>."
11001 msgstr ""
11002
11003 #. type: =head2
11004 #: ../fish/guestfish-actions.pod:3216
11005 msgid "mknod-c"
11006 msgstr ""
11007
11008 #. type: verbatim
11009 #: ../fish/guestfish-actions.pod:3218
11010 #, no-wrap
11011 msgid ""
11012 " mknod-c mode devmajor devminor path\n"
11013 "\n"
11014 msgstr ""
11015
11016 #. type: textblock
11017 #: ../fish/guestfish-actions.pod:3220
11018 msgid ""
11019 "This call creates a char device node called C<path> with mode C<mode> and "
11020 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11021 "wrapper around L</mknod>."
11022 msgstr ""
11023
11024 #. type: =head2
11025 #: ../fish/guestfish-actions.pod:3226
11026 msgid "mkswap"
11027 msgstr ""
11028
11029 #. type: verbatim
11030 #: ../fish/guestfish-actions.pod:3228
11031 #, no-wrap
11032 msgid ""
11033 " mkswap device\n"
11034 "\n"
11035 msgstr ""
11036
11037 #. type: textblock
11038 #: ../fish/guestfish-actions.pod:3230 ../src/guestfs-actions.pod:4850
11039 msgid "Create a swap partition on C<device>."
11040 msgstr ""
11041
11042 #. type: =head2
11043 #: ../fish/guestfish-actions.pod:3232
11044 msgid "mkswap-L"
11045 msgstr ""
11046
11047 #. type: verbatim
11048 #: ../fish/guestfish-actions.pod:3234
11049 #, no-wrap
11050 msgid ""
11051 " mkswap-L label device\n"
11052 "\n"
11053 msgstr ""
11054
11055 #. type: textblock
11056 #: ../fish/guestfish-actions.pod:3236 ../src/guestfs-actions.pod:4863
11057 msgid "Create a swap partition on C<device> with label C<label>."
11058 msgstr ""
11059
11060 #. type: textblock
11061 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4865
11062 msgid ""
11063 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11064 "sda>), just to a partition.  This appears to be a limitation of the kernel "
11065 "or swap tools."
11066 msgstr ""
11067
11068 #. type: =head2
11069 #: ../fish/guestfish-actions.pod:3242
11070 msgid "mkswap-U"
11071 msgstr ""
11072
11073 #. type: verbatim
11074 #: ../fish/guestfish-actions.pod:3244
11075 #, no-wrap
11076 msgid ""
11077 " mkswap-U uuid device\n"
11078 "\n"
11079 msgstr ""
11080
11081 #. type: textblock
11082 #: ../fish/guestfish-actions.pod:3246 ../src/guestfs-actions.pod:4880
11083 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11084 msgstr ""
11085
11086 #. type: =head2
11087 #: ../fish/guestfish-actions.pod:3248
11088 msgid "mkswap-file"
11089 msgstr ""
11090
11091 #. type: verbatim
11092 #: ../fish/guestfish-actions.pod:3250
11093 #, no-wrap
11094 msgid ""
11095 " mkswap-file path\n"
11096 "\n"
11097 msgstr ""
11098
11099 #. type: textblock
11100 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:4892
11101 msgid "Create a swap file."
11102 msgstr ""
11103
11104 #. type: textblock
11105 #: ../fish/guestfish-actions.pod:3254
11106 msgid ""
11107 "This command just writes a swap file signature to an existing file.  To "
11108 "create the file itself, use something like L</fallocate>."
11109 msgstr ""
11110
11111 #. type: =head2
11112 #: ../fish/guestfish-actions.pod:3257
11113 msgid "modprobe"
11114 msgstr ""
11115
11116 #. type: verbatim
11117 #: ../fish/guestfish-actions.pod:3259
11118 #, no-wrap
11119 msgid ""
11120 " modprobe modulename\n"
11121 "\n"
11122 msgstr ""
11123
11124 #. type: textblock
11125 #: ../fish/guestfish-actions.pod:3261 ../src/guestfs-actions.pod:4907
11126 msgid "This loads a kernel module in the appliance."
11127 msgstr ""
11128
11129 #. type: textblock
11130 #: ../fish/guestfish-actions.pod:3263 ../src/guestfs-actions.pod:4909
11131 msgid ""
11132 "The kernel module must have been whitelisted when libguestfs was built (see "
11133 "C<appliance/kmod.whitelist.in> in the source)."
11134 msgstr ""
11135
11136 #. type: =head2
11137 #: ../fish/guestfish-actions.pod:3266
11138 msgid "mount"
11139 msgstr ""
11140
11141 #. type: verbatim
11142 #: ../fish/guestfish-actions.pod:3268
11143 #, no-wrap
11144 msgid ""
11145 " mount device mountpoint\n"
11146 "\n"
11147 msgstr ""
11148
11149 #. type: textblock
11150 #: ../fish/guestfish-actions.pod:3270 ../src/guestfs-actions.pod:4930
11151 msgid ""
11152 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11153 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11154 "those block devices contain partitions, they will have the usual names (eg. "
11155 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11156 msgstr ""
11157
11158 #. type: textblock
11159 #: ../fish/guestfish-actions.pod:3276 ../src/guestfs-actions.pod:4936
11160 msgid ""
11161 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11162 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11163 "mounted on directories which already exist."
11164 msgstr ""
11165
11166 #. type: textblock
11167 #: ../fish/guestfish-actions.pod:3281 ../src/guestfs-actions.pod:4941
11168 msgid ""
11169 "The mounted filesystem is writable, if we have sufficient permissions on the "
11170 "underlying device."
11171 msgstr ""
11172
11173 #. type: textblock
11174 #: ../fish/guestfish-actions.pod:3284
11175 msgid ""
11176 "B<Important note:> When you use this call, the filesystem options C<sync> "
11177 "and C<noatime> are set implicitly.  This was originally done because we "
11178 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11179 "very large negative performance impact and negligible effect on "
11180 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
11181 "code that needs performance, and instead use L</mount-options> (use an empty "
11182 "string for the first parameter if you don't want any options)."
11183 msgstr ""
11184
11185 #. type: textblock
11186 #: ../fish/guestfish-actions.pod:3294
11187 msgid ""
11188 "I<This function is deprecated.> In new code, use the L</mount_options> call "
11189 "instead."
11190 msgstr ""
11191
11192 #. type: =head2
11193 #: ../fish/guestfish-actions.pod:3301
11194 msgid "mount-9p"
11195 msgstr ""
11196
11197 #. type: verbatim
11198 #: ../fish/guestfish-actions.pod:3303
11199 #, no-wrap
11200 msgid ""
11201 " mount-9p mounttag mountpoint [options:..]\n"
11202 "\n"
11203 msgstr ""
11204
11205 #. type: textblock
11206 #: ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:4973
11207 msgid ""
11208 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
11209 "C<mountpoint>."
11210 msgstr ""
11211
11212 #. type: textblock
11213 #: ../fish/guestfish-actions.pod:3308 ../src/guestfs-actions.pod:4976
11214 msgid ""
11215 "If required, C<trans=virtio> will be automatically added to the options.  "
11216 "Any other options required can be passed in the optional C<options> "
11217 "parameter."
11218 msgstr ""
11219
11220 #. type: =head2
11221 #: ../fish/guestfish-actions.pod:3314
11222 msgid "mount-loop"
11223 msgstr ""
11224
11225 #. type: verbatim
11226 #: ../fish/guestfish-actions.pod:3316
11227 #, no-wrap
11228 msgid ""
11229 " mount-loop file mountpoint\n"
11230 "\n"
11231 msgstr ""
11232
11233 #. type: textblock
11234 #: ../fish/guestfish-actions.pod:3318 ../src/guestfs-actions.pod:5015
11235 msgid ""
11236 "This command lets you mount C<file> (a filesystem image in a file) on a "
11237 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11238 "mountpoint>."
11239 msgstr ""
11240
11241 #. type: =head2
11242 #: ../fish/guestfish-actions.pod:3322
11243 msgid "mount-options"
11244 msgstr ""
11245
11246 #. type: verbatim
11247 #: ../fish/guestfish-actions.pod:3324
11248 #, no-wrap
11249 msgid ""
11250 " mount-options options device mountpoint\n"
11251 "\n"
11252 msgstr ""
11253
11254 #. type: textblock
11255 #: ../fish/guestfish-actions.pod:3326
11256 msgid ""
11257 "This is the same as the L</mount> command, but it allows you to set the "
11258 "mount options as for the L<mount(8)> I<-o> flag."
11259 msgstr ""
11260
11261 #. type: textblock
11262 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5035
11263 msgid ""
11264 "If the C<options> parameter is an empty string, then no options are passed "
11265 "(all options default to whatever the filesystem uses)."
11266 msgstr ""
11267
11268 #. type: =head2
11269 #: ../fish/guestfish-actions.pod:3334
11270 msgid "mount-ro"
11271 msgstr ""
11272
11273 #. type: verbatim
11274 #: ../fish/guestfish-actions.pod:3336
11275 #, no-wrap
11276 msgid ""
11277 " mount-ro device mountpoint\n"
11278 "\n"
11279 msgstr ""
11280
11281 #. type: textblock
11282 #: ../fish/guestfish-actions.pod:3338
11283 msgid ""
11284 "This is the same as the L</mount> command, but it mounts the filesystem with "
11285 "the read-only (I<-o ro>) flag."
11286 msgstr ""
11287
11288 #. type: =head2
11289 #: ../fish/guestfish-actions.pod:3341
11290 msgid "mount-vfs"
11291 msgstr ""
11292
11293 #. type: verbatim
11294 #: ../fish/guestfish-actions.pod:3343
11295 #, no-wrap
11296 msgid ""
11297 " mount-vfs options vfstype device mountpoint\n"
11298 "\n"
11299 msgstr ""
11300
11301 #. type: textblock
11302 #: ../fish/guestfish-actions.pod:3345
11303 msgid ""
11304 "This is the same as the L</mount> command, but it allows you to set both the "
11305 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
11306 msgstr ""
11307
11308 #. type: =head2
11309 #: ../fish/guestfish-actions.pod:3349
11310 msgid "mountpoints"
11311 msgstr ""
11312
11313 #. type: verbatim
11314 #: ../fish/guestfish-actions.pod:3351
11315 #, no-wrap
11316 msgid ""
11317 " mountpoints\n"
11318 "\n"
11319 msgstr ""
11320
11321 #. type: textblock
11322 #: ../fish/guestfish-actions.pod:3353
11323 msgid ""
11324 "This call is similar to L</mounts>.  That call returns a list of devices.  "
11325 "This one returns a hash table (map) of device name to directory where the "
11326 "device is mounted."
11327 msgstr ""
11328
11329 #. type: =head2
11330 #: ../fish/guestfish-actions.pod:3357
11331 msgid "mounts"
11332 msgstr ""
11333
11334 #. type: verbatim
11335 #: ../fish/guestfish-actions.pod:3359
11336 #, no-wrap
11337 msgid ""
11338 " mounts\n"
11339 "\n"
11340 msgstr ""
11341
11342 #. type: textblock
11343 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5096
11344 msgid ""
11345 "This returns the list of currently mounted filesystems.  It returns the list "
11346 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
11347 msgstr ""
11348
11349 #. type: textblock
11350 #: ../fish/guestfish-actions.pod:3364 ../src/guestfs-actions.pod:5099
11351 msgid "Some internal mounts are not shown."
11352 msgstr ""
11353
11354 #. type: textblock
11355 #: ../fish/guestfish-actions.pod:3366
11356 msgid "See also: L</mountpoints>"
11357 msgstr ""
11358
11359 #. type: =head2
11360 #: ../fish/guestfish-actions.pod:3368
11361 msgid "mv"
11362 msgstr ""
11363
11364 #. type: verbatim
11365 #: ../fish/guestfish-actions.pod:3370
11366 #, no-wrap
11367 msgid ""
11368 " mv src dest\n"
11369 "\n"
11370 msgstr ""
11371
11372 #. type: textblock
11373 #: ../fish/guestfish-actions.pod:3372 ../src/guestfs-actions.pod:5116
11374 msgid ""
11375 "This moves a file from C<src> to C<dest> where C<dest> is either a "
11376 "destination filename or destination directory."
11377 msgstr ""
11378
11379 #. type: =head2
11380 #: ../fish/guestfish-actions.pod:3375
11381 msgid "ntfs-3g-probe"
11382 msgstr ""
11383
11384 #. type: verbatim
11385 #: ../fish/guestfish-actions.pod:3377
11386 #, no-wrap
11387 msgid ""
11388 " ntfs-3g-probe true|false device\n"
11389 "\n"
11390 msgstr ""
11391
11392 #. type: textblock
11393 #: ../fish/guestfish-actions.pod:3379 ../src/guestfs-actions.pod:5130
11394 msgid ""
11395 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
11396 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
11397 "write, and some cannot be mounted at all)."
11398 msgstr ""
11399
11400 #. type: textblock
11401 #: ../fish/guestfish-actions.pod:3383 ../src/guestfs-actions.pod:5134
11402 msgid ""
11403 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
11404 "can be mounted read-write.  Set it to false if you want to test if the "
11405 "volume can be mounted read-only."
11406 msgstr ""
11407
11408 #. type: textblock
11409 #: ../fish/guestfish-actions.pod:3387 ../src/guestfs-actions.pod:5138
11410 msgid ""
11411 "The return value is an integer which C<0> if the operation would succeed, or "
11412 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
11413 msgstr ""
11414
11415 #. type: =head2
11416 #: ../fish/guestfish-actions.pod:3391
11417 msgid "ntfsresize"
11418 msgstr ""
11419
11420 #. type: verbatim
11421 #: ../fish/guestfish-actions.pod:3393
11422 #, no-wrap
11423 msgid ""
11424 " ntfsresize device\n"
11425 "\n"
11426 msgstr ""
11427
11428 #. type: textblock
11429 #: ../fish/guestfish-actions.pod:3395 ../fish/guestfish-actions.pod:3419
11430 #: ../src/guestfs-actions.pod:5159 ../src/guestfs-actions.pod:5191
11431 msgid ""
11432 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
11433 "size of the underlying device."
11434 msgstr ""
11435
11436 #. type: textblock
11437 #: ../fish/guestfish-actions.pod:3398 ../src/guestfs-actions.pod:5162
11438 msgid ""
11439 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
11440 "consistency check (for safety).  You have to boot into Windows to perform "
11441 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
11442 "resize filesystems which have been marked in this way.  So in effect it is "
11443 "not possible to call ntfsresize multiple times on a single filesystem "
11444 "without booting into Windows between each resize."
11445 msgstr ""
11446
11447 #. type: textblock
11448 #: ../fish/guestfish-actions.pod:3406 ../fish/guestfish-actions.pod:3445
11449 #: ../src/guestfs-actions.pod:5170 ../src/guestfs-actions.pod:5217
11450 msgid "See also L<ntfsresize(8)>."
11451 msgstr ""
11452
11453 #. type: textblock
11454 #: ../fish/guestfish-actions.pod:3408 ../fish/guestfish-actions.pod:3456
11455 msgid ""
11456 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
11457 "call instead."
11458 msgstr ""
11459
11460 #. type: =head2
11461 #: ../fish/guestfish-actions.pod:3415
11462 msgid "ntfsresize-opts"
11463 msgstr ""
11464
11465 #. type: verbatim
11466 #: ../fish/guestfish-actions.pod:3417
11467 #, no-wrap
11468 msgid ""
11469 " ntfsresize-opts device [size:..] [force:..]\n"
11470 "\n"
11471 msgstr ""
11472
11473 #. type: textblock
11474 #: ../fish/guestfish-actions.pod:3428 ../src/guestfs-actions.pod:5200
11475 msgid ""
11476 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
11477 "resized to fit the container (eg. partition)."
11478 msgstr ""
11479
11480 #. type: =item
11481 #: ../fish/guestfish-actions.pod:3431 ../src/guestfs-actions.pod:5203
11482 msgid "C<force>"
11483 msgstr ""
11484
11485 #. type: textblock
11486 #: ../fish/guestfish-actions.pod:3433 ../src/guestfs-actions.pod:5205
11487 msgid ""
11488 "If this option is true, then force the resize of the filesystem even if the "
11489 "filesystem is marked as requiring a consistency check."
11490 msgstr ""
11491
11492 #. type: textblock
11493 #: ../fish/guestfish-actions.pod:3436
11494 msgid ""
11495 "After the resize operation, the filesystem is always marked as requiring a "
11496 "consistency check (for safety).  You have to boot into Windows to perform "
11497 "this check and clear this condition.  If you I<don't> set the C<force> "
11498 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
11499 "a single filesystem without booting into Windows between each resize."
11500 msgstr ""
11501
11502 #. type: =head2
11503 #: ../fish/guestfish-actions.pod:3449
11504 msgid "ntfsresize-size"
11505 msgstr ""
11506
11507 #. type: verbatim
11508 #: ../fish/guestfish-actions.pod:3451
11509 #, no-wrap
11510 msgid ""
11511 " ntfsresize-size device size\n"
11512 "\n"
11513 msgstr ""
11514
11515 #. type: textblock
11516 #: ../fish/guestfish-actions.pod:3453
11517 msgid ""
11518 "This command is the same as L</ntfsresize> except that it allows you to "
11519 "specify the new size (in bytes) explicitly."
11520 msgstr ""
11521
11522 #. type: =head2
11523 #: ../fish/guestfish-actions.pod:3463
11524 msgid "part-add"
11525 msgstr ""
11526
11527 #. type: verbatim
11528 #: ../fish/guestfish-actions.pod:3465
11529 #, no-wrap
11530 msgid ""
11531 " part-add device prlogex startsect endsect\n"
11532 "\n"
11533 msgstr ""
11534
11535 #. type: textblock
11536 #: ../fish/guestfish-actions.pod:3467
11537 msgid ""
11538 "This command adds a partition to C<device>.  If there is no partition table "
11539 "on the device, call L</part-init> first."
11540 msgstr ""
11541
11542 #. type: textblock
11543 #: ../fish/guestfish-actions.pod:3470 ../src/guestfs-actions.pod:5278
11544 msgid ""
11545 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
11546 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
11547 "C<logical>) and C<e> (or C<extended>) partition types."
11548 msgstr ""
11549
11550 #. type: textblock
11551 #: ../fish/guestfish-actions.pod:3475 ../src/guestfs-actions.pod:5283
11552 msgid ""
11553 "C<startsect> and C<endsect> are the start and end of the partition in "
11554 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
11555 "from the end of the disk (C<-1> is the last sector)."
11556 msgstr ""
11557
11558 #. type: textblock
11559 #: ../fish/guestfish-actions.pod:3479
11560 msgid ""
11561 "Creating a partition which covers the whole disk is not so easy.  Use L</"
11562 "part-disk> to do that."
11563 msgstr ""
11564
11565 #. type: =head2
11566 #: ../fish/guestfish-actions.pod:3482
11567 msgid "part-del"
11568 msgstr ""
11569
11570 #. type: verbatim
11571 #: ../fish/guestfish-actions.pod:3484
11572 #, no-wrap
11573 msgid ""
11574 " part-del device partnum\n"
11575 "\n"
11576 msgstr ""
11577
11578 #. type: textblock
11579 #: ../fish/guestfish-actions.pod:3486 ../src/guestfs-actions.pod:5301
11580 msgid "This command deletes the partition numbered C<partnum> on C<device>."
11581 msgstr ""
11582
11583 #. type: textblock
11584 #: ../fish/guestfish-actions.pod:3488 ../src/guestfs-actions.pod:5303
11585 msgid ""
11586 "Note that in the case of MBR partitioning, deleting an extended partition "
11587 "also deletes any logical partitions it contains."
11588 msgstr ""
11589
11590 #. type: =head2
11591 #: ../fish/guestfish-actions.pod:3492
11592 msgid "part-disk"
11593 msgstr ""
11594
11595 #. type: verbatim
11596 #: ../fish/guestfish-actions.pod:3494
11597 #, no-wrap
11598 msgid ""
11599 " part-disk device parttype\n"
11600 "\n"
11601 msgstr ""
11602
11603 #. type: textblock
11604 #: ../fish/guestfish-actions.pod:3496
11605 msgid ""
11606 "This command is simply a combination of L</part-init> followed by L</part-"
11607 "add> to create a single primary partition covering the whole disk."
11608 msgstr ""
11609
11610 #. type: textblock
11611 #: ../fish/guestfish-actions.pod:3500
11612 msgid ""
11613 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
11614 "possible values are described in L</part-init>."
11615 msgstr ""
11616
11617 #. type: =head2
11618 #: ../fish/guestfish-actions.pod:3506
11619 msgid "part-get-bootable"
11620 msgstr ""
11621
11622 #. type: verbatim
11623 #: ../fish/guestfish-actions.pod:3508
11624 #, no-wrap
11625 msgid ""
11626 " part-get-bootable device partnum\n"
11627 "\n"
11628 msgstr ""
11629
11630 #. type: textblock
11631 #: ../fish/guestfish-actions.pod:3510 ../src/guestfs-actions.pod:5339
11632 msgid ""
11633 "This command returns true if the partition C<partnum> on C<device> has the "
11634 "bootable flag set."
11635 msgstr ""
11636
11637 #. type: textblock
11638 #: ../fish/guestfish-actions.pod:3513
11639 msgid "See also L</part-set-bootable>."
11640 msgstr ""
11641
11642 #. type: =head2
11643 #: ../fish/guestfish-actions.pod:3515
11644 msgid "part-get-mbr-id"
11645 msgstr ""
11646
11647 #. type: verbatim
11648 #: ../fish/guestfish-actions.pod:3517
11649 #, no-wrap
11650 msgid ""
11651 " part-get-mbr-id device partnum\n"
11652 "\n"
11653 msgstr ""
11654
11655 #. type: textblock
11656 #: ../fish/guestfish-actions.pod:3519 ../src/guestfs-actions.pod:5355
11657 msgid ""
11658 "Returns the MBR type byte (also known as the ID byte) from the numbered "
11659 "partition C<partnum>."
11660 msgstr ""
11661
11662 #. type: textblock
11663 #: ../fish/guestfish-actions.pod:3522 ../fish/guestfish-actions.pod:3666
11664 msgid ""
11665 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
11666 "undefined results for other partition table types (see L</part-get-"
11667 "parttype>)."
11668 msgstr ""
11669
11670 #. type: =head2
11671 #: ../fish/guestfish-actions.pod:3526
11672 msgid "part-get-parttype"
11673 msgstr ""
11674
11675 #. type: verbatim
11676 #: ../fish/guestfish-actions.pod:3528
11677 #, no-wrap
11678 msgid ""
11679 " part-get-parttype device\n"
11680 "\n"
11681 msgstr ""
11682
11683 #. type: textblock
11684 #: ../fish/guestfish-actions.pod:3530 ../src/guestfs-actions.pod:5372
11685 msgid ""
11686 "This command examines the partition table on C<device> and returns the "
11687 "partition table type (format) being used."
11688 msgstr ""
11689
11690 #. type: textblock
11691 #: ../fish/guestfish-actions.pod:3533
11692 msgid ""
11693 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
11694 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
11695 "possible, although unusual.  See L</part-init> for a full list."
11696 msgstr ""
11697
11698 #. type: =head2
11699 #: ../fish/guestfish-actions.pod:3538
11700 msgid "part-init"
11701 msgstr ""
11702
11703 #. type: verbatim
11704 #: ../fish/guestfish-actions.pod:3540
11705 #, no-wrap
11706 msgid ""
11707 " part-init device parttype\n"
11708 "\n"
11709 msgstr ""
11710
11711 #. type: textblock
11712 #: ../fish/guestfish-actions.pod:3542 ../src/guestfs-actions.pod:5392
11713 msgid ""
11714 "This creates an empty partition table on C<device> of one of the partition "
11715 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
11716 "(for large disks)."
11717 msgstr ""
11718
11719 #. type: textblock
11720 #: ../fish/guestfish-actions.pod:3546
11721 msgid ""
11722 "Initially there are no partitions.  Following this, you should call L</part-"
11723 "add> for each partition required."
11724 msgstr ""
11725
11726 #. type: textblock
11727 #: ../fish/guestfish-actions.pod:3549 ../src/guestfs-actions.pod:5399
11728 msgid "Possible values for C<parttype> are:"
11729 msgstr ""
11730
11731 #. type: =item
11732 #: ../fish/guestfish-actions.pod:3553 ../src/guestfs-actions.pod:5403
11733 msgid "B<efi>"
11734 msgstr ""
11735
11736 #. type: =item
11737 #: ../fish/guestfish-actions.pod:3555 ../src/guestfs-actions.pod:5405
11738 msgid "B<gpt>"
11739 msgstr ""
11740
11741 #. type: textblock
11742 #: ../fish/guestfish-actions.pod:3557 ../src/guestfs-actions.pod:5407
11743 msgid "Intel EFI / GPT partition table."
11744 msgstr ""
11745
11746 #. type: textblock
11747 #: ../fish/guestfish-actions.pod:3559 ../src/guestfs-actions.pod:5409
11748 msgid ""
11749 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
11750 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
11751 "the C<mbr> format."
11752 msgstr ""
11753
11754 #. type: =item
11755 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5413
11756 msgid "B<mbr>"
11757 msgstr ""
11758
11759 #. type: =item
11760 #: ../fish/guestfish-actions.pod:3565 ../src/guestfs-actions.pod:5415
11761 msgid "B<msdos>"
11762 msgstr ""
11763
11764 #. type: textblock
11765 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5417
11766 msgid ""
11767 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
11768 "Windows.  This partition type will B<only> work for device sizes up to 2 "
11769 "TB.  For large disks we recommend using C<gpt>."
11770 msgstr ""
11771
11772 #. type: textblock
11773 #: ../fish/guestfish-actions.pod:3574 ../src/guestfs-actions.pod:5424
11774 msgid ""
11775 "Other partition table types that may work but are not supported include:"
11776 msgstr ""
11777
11778 #. type: =item
11779 #: ../fish/guestfish-actions.pod:3579 ../src/guestfs-actions.pod:5429
11780 msgid "B<aix>"
11781 msgstr ""
11782
11783 #. type: textblock
11784 #: ../fish/guestfish-actions.pod:3581 ../src/guestfs-actions.pod:5431
11785 msgid "AIX disk labels."
11786 msgstr ""
11787
11788 #. type: =item
11789 #: ../fish/guestfish-actions.pod:3583 ../src/guestfs-actions.pod:5433
11790 msgid "B<amiga>"
11791 msgstr ""
11792
11793 #. type: =item
11794 #: ../fish/guestfish-actions.pod:3585 ../src/guestfs-actions.pod:5435
11795 msgid "B<rdb>"
11796 msgstr ""
11797
11798 #. type: textblock
11799 #: ../fish/guestfish-actions.pod:3587 ../src/guestfs-actions.pod:5437
11800 msgid "Amiga \"Rigid Disk Block\" format."
11801 msgstr ""
11802
11803 #. type: =item
11804 #: ../fish/guestfish-actions.pod:3589 ../src/guestfs-actions.pod:5439
11805 msgid "B<bsd>"
11806 msgstr ""
11807
11808 #. type: textblock
11809 #: ../fish/guestfish-actions.pod:3591 ../src/guestfs-actions.pod:5441
11810 msgid "BSD disk labels."
11811 msgstr ""
11812
11813 #. type: =item
11814 #: ../fish/guestfish-actions.pod:3593 ../src/guestfs-actions.pod:5443
11815 msgid "B<dasd>"
11816 msgstr ""
11817
11818 #. type: textblock
11819 #: ../fish/guestfish-actions.pod:3595 ../src/guestfs-actions.pod:5445
11820 msgid "DASD, used on IBM mainframes."
11821 msgstr ""
11822
11823 #. type: =item
11824 #: ../fish/guestfish-actions.pod:3597 ../src/guestfs-actions.pod:5447
11825 msgid "B<dvh>"
11826 msgstr ""
11827
11828 #. type: textblock
11829 #: ../fish/guestfish-actions.pod:3599 ../src/guestfs-actions.pod:5449
11830 msgid "MIPS/SGI volumes."
11831 msgstr ""
11832
11833 #. type: =item
11834 #: ../fish/guestfish-actions.pod:3601 ../src/guestfs-actions.pod:5451
11835 msgid "B<mac>"
11836 msgstr ""
11837
11838 #. type: textblock
11839 #: ../fish/guestfish-actions.pod:3603 ../src/guestfs-actions.pod:5453
11840 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
11841 msgstr ""
11842
11843 #. type: =item
11844 #: ../fish/guestfish-actions.pod:3605 ../src/guestfs-actions.pod:5455
11845 msgid "B<pc98>"
11846 msgstr ""
11847
11848 #. type: textblock
11849 #: ../fish/guestfish-actions.pod:3607 ../src/guestfs-actions.pod:5457
11850 msgid "NEC PC-98 format, common in Japan apparently."
11851 msgstr ""
11852
11853 #. type: =item
11854 #: ../fish/guestfish-actions.pod:3609 ../src/guestfs-actions.pod:5459
11855 msgid "B<sun>"
11856 msgstr ""
11857
11858 #. type: textblock
11859 #: ../fish/guestfish-actions.pod:3611 ../src/guestfs-actions.pod:5461
11860 msgid "Sun disk labels."
11861 msgstr ""
11862
11863 #. type: =head2
11864 #: ../fish/guestfish-actions.pod:3615
11865 msgid "part-list"
11866 msgstr ""
11867
11868 #. type: verbatim
11869 #: ../fish/guestfish-actions.pod:3617
11870 #, no-wrap
11871 msgid ""
11872 " part-list device\n"
11873 "\n"
11874 msgstr ""
11875
11876 #. type: textblock
11877 #: ../fish/guestfish-actions.pod:3619 ../src/guestfs-actions.pod:5475
11878 msgid ""
11879 "This command parses the partition table on C<device> and returns the list of "
11880 "partitions found."
11881 msgstr ""
11882
11883 #. type: textblock
11884 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5478
11885 msgid "The fields in the returned structure are:"
11886 msgstr ""
11887
11888 #. type: =item
11889 #: ../fish/guestfish-actions.pod:3626 ../src/guestfs-actions.pod:5482
11890 msgid "B<part_num>"
11891 msgstr ""
11892
11893 #. type: textblock
11894 #: ../fish/guestfish-actions.pod:3628 ../src/guestfs-actions.pod:5484
11895 msgid "Partition number, counting from 1."
11896 msgstr ""
11897
11898 #. type: =item
11899 #: ../fish/guestfish-actions.pod:3630 ../src/guestfs-actions.pod:5486
11900 msgid "B<part_start>"
11901 msgstr ""
11902
11903 #. type: textblock
11904 #: ../fish/guestfish-actions.pod:3632
11905 msgid ""
11906 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
11907 "the device's sector size, see L</blockdev-getss>."
11908 msgstr ""
11909
11910 #. type: =item
11911 #: ../fish/guestfish-actions.pod:3635 ../src/guestfs-actions.pod:5491
11912 msgid "B<part_end>"
11913 msgstr ""
11914
11915 #. type: textblock
11916 #: ../fish/guestfish-actions.pod:3637 ../src/guestfs-actions.pod:5493
11917 msgid "End of the partition in bytes."
11918 msgstr ""
11919
11920 #. type: =item
11921 #: ../fish/guestfish-actions.pod:3639 ../src/guestfs-actions.pod:5495
11922 msgid "B<part_size>"
11923 msgstr ""
11924
11925 #. type: textblock
11926 #: ../fish/guestfish-actions.pod:3641 ../src/guestfs-actions.pod:5497
11927 msgid "Size of the partition in bytes."
11928 msgstr ""
11929
11930 #. type: =head2
11931 #: ../fish/guestfish-actions.pod:3645
11932 msgid "part-set-bootable"
11933 msgstr ""
11934
11935 #. type: verbatim
11936 #: ../fish/guestfish-actions.pod:3647
11937 #, no-wrap
11938 msgid ""
11939 " part-set-bootable device partnum true|false\n"
11940 "\n"
11941 msgstr ""
11942
11943 #. type: textblock
11944 #: ../fish/guestfish-actions.pod:3649 ../src/guestfs-actions.pod:5515
11945 msgid ""
11946 "This sets the bootable flag on partition numbered C<partnum> on device "
11947 "C<device>.  Note that partitions are numbered from 1."
11948 msgstr ""
11949
11950 #. type: textblock
11951 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5518
11952 msgid ""
11953 "The bootable flag is used by some operating systems (notably Windows) to "
11954 "determine which partition to boot from.  It is by no means universally "
11955 "recognized."
11956 msgstr ""
11957
11958 #. type: =head2
11959 #: ../fish/guestfish-actions.pod:3656
11960 msgid "part-set-mbr-id"
11961 msgstr ""
11962
11963 #. type: verbatim
11964 #: ../fish/guestfish-actions.pod:3658
11965 #, no-wrap
11966 msgid ""
11967 " part-set-mbr-id device partnum idbyte\n"
11968 "\n"
11969 msgstr ""
11970
11971 #. type: textblock
11972 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5534
11973 msgid ""
11974 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
11975 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
11976 "documentation are in fact hexadecimal numbers, but usually documented "
11977 "without any leading \"0x\" which might be confusing."
11978 msgstr ""
11979
11980 #. type: =head2
11981 #: ../fish/guestfish-actions.pod:3670
11982 msgid "part-set-name"
11983 msgstr ""
11984
11985 #. type: verbatim
11986 #: ../fish/guestfish-actions.pod:3672
11987 #, no-wrap
11988 msgid ""
11989 " part-set-name device partnum name\n"
11990 "\n"
11991 msgstr ""
11992
11993 #. type: textblock
11994 #: ../fish/guestfish-actions.pod:3674 ../src/guestfs-actions.pod:5556
11995 msgid ""
11996 "This sets the partition name on partition numbered C<partnum> on device "
11997 "C<device>.  Note that partitions are numbered from 1."
11998 msgstr ""
11999
12000 #. type: textblock
12001 #: ../fish/guestfish-actions.pod:3677 ../src/guestfs-actions.pod:5559
12002 msgid ""
12003 "The partition name can only be set on certain types of partition table.  "
12004 "This works on C<gpt> but not on C<mbr> partitions."
12005 msgstr ""
12006
12007 #. type: =head2
12008 #: ../fish/guestfish-actions.pod:3680
12009 msgid "part-to-dev"
12010 msgstr ""
12011
12012 #. type: verbatim
12013 #: ../fish/guestfish-actions.pod:3682
12014 #, no-wrap
12015 msgid ""
12016 " part-to-dev partition\n"
12017 "\n"
12018 msgstr ""
12019
12020 #. type: textblock
12021 #: ../fish/guestfish-actions.pod:3684 ../src/guestfs-actions.pod:5572
12022 msgid ""
12023 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12024 "partition number, returning the device name (eg. \"/dev/sdb\")."
12025 msgstr ""
12026
12027 #. type: textblock
12028 #: ../fish/guestfish-actions.pod:3688
12029 msgid ""
12030 "The named partition must exist, for example as a string returned from L</"
12031 "list-partitions>."
12032 msgstr ""
12033
12034 #. type: =head2
12035 #: ../fish/guestfish-actions.pod:3691
12036 msgid "ping-daemon"
12037 msgstr ""
12038
12039 #. type: verbatim
12040 #: ../fish/guestfish-actions.pod:3693
12041 #, no-wrap
12042 msgid ""
12043 " ping-daemon\n"
12044 "\n"
12045 msgstr ""
12046
12047 #. type: textblock
12048 #: ../fish/guestfish-actions.pod:3695 ../src/guestfs-actions.pod:5589
12049 msgid ""
12050 "This is a test probe into the guestfs daemon running inside the qemu "
12051 "subprocess.  Calling this function checks that the daemon responds to the "
12052 "ping message, without affecting the daemon or attached block device(s) in "
12053 "any other way."
12054 msgstr ""
12055
12056 #. type: =head2
12057 #: ../fish/guestfish-actions.pod:3700
12058 msgid "pread"
12059 msgstr ""
12060
12061 #. type: verbatim
12062 #: ../fish/guestfish-actions.pod:3702
12063 #, no-wrap
12064 msgid ""
12065 " pread path count offset\n"
12066 "\n"
12067 msgstr ""
12068
12069 #. type: textblock
12070 #: ../fish/guestfish-actions.pod:3704 ../src/guestfs-actions.pod:5607
12071 msgid ""
12072 "This command lets you read part of a file.  It reads C<count> bytes of the "
12073 "file, starting at C<offset>, from file C<path>."
12074 msgstr ""
12075
12076 #. type: textblock
12077 #: ../fish/guestfish-actions.pod:3707 ../fish/guestfish-actions.pod:3722
12078 #: ../src/guestfs-actions.pod:5610 ../src/guestfs-actions.pod:5636
12079 msgid ""
12080 "This may read fewer bytes than requested.  For further details see the "
12081 "L<pread(2)> system call."
12082 msgstr ""
12083
12084 #. type: textblock
12085 #: ../fish/guestfish-actions.pod:3710
12086 msgid "See also L</pwrite>, L</pread-device>."
12087 msgstr ""
12088
12089 #. type: =head2
12090 #: ../fish/guestfish-actions.pod:3715
12091 msgid "pread-device"
12092 msgstr ""
12093
12094 #. type: verbatim
12095 #: ../fish/guestfish-actions.pod:3717
12096 #, no-wrap
12097 msgid ""
12098 " pread-device device count offset\n"
12099 "\n"
12100 msgstr ""
12101
12102 #. type: textblock
12103 #: ../fish/guestfish-actions.pod:3719 ../src/guestfs-actions.pod:5633
12104 msgid ""
12105 "This command lets you read part of a file.  It reads C<count> bytes of "
12106 "C<device>, starting at C<offset>."
12107 msgstr ""
12108
12109 #. type: textblock
12110 #: ../fish/guestfish-actions.pod:3725
12111 msgid "See also L</pread>."
12112 msgstr ""
12113
12114 #. type: =head2
12115 #: ../fish/guestfish-actions.pod:3730
12116 msgid "pvcreate"
12117 msgstr ""
12118
12119 #. type: verbatim
12120 #: ../fish/guestfish-actions.pod:3732
12121 #, no-wrap
12122 msgid ""
12123 " pvcreate device\n"
12124 "\n"
12125 msgstr ""
12126
12127 #. type: textblock
12128 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5656
12129 msgid ""
12130 "This creates an LVM physical volume on the named C<device>, where C<device> "
12131 "should usually be a partition name such as C</dev/sda1>."
12132 msgstr ""
12133
12134 #. type: =head2
12135 #: ../fish/guestfish-actions.pod:3738
12136 msgid "pvremove"
12137 msgstr ""
12138
12139 #. type: verbatim
12140 #: ../fish/guestfish-actions.pod:3740
12141 #, no-wrap
12142 msgid ""
12143 " pvremove device\n"
12144 "\n"
12145 msgstr ""
12146
12147 #. type: textblock
12148 #: ../fish/guestfish-actions.pod:3742 ../src/guestfs-actions.pod:5670
12149 msgid ""
12150 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12151 "it."
12152 msgstr ""
12153
12154 #. type: textblock
12155 #: ../fish/guestfish-actions.pod:3745 ../src/guestfs-actions.pod:5673
12156 msgid ""
12157 "The implementation uses the C<pvremove> command which refuses to wipe "
12158 "physical volumes that contain any volume groups, so you have to remove those "
12159 "first."
12160 msgstr ""
12161
12162 #. type: =head2
12163 #: ../fish/guestfish-actions.pod:3749
12164 msgid "pvresize"
12165 msgstr ""
12166
12167 #. type: verbatim
12168 #: ../fish/guestfish-actions.pod:3751
12169 #, no-wrap
12170 msgid ""
12171 " pvresize device\n"
12172 "\n"
12173 msgstr ""
12174
12175 #. type: textblock
12176 #: ../fish/guestfish-actions.pod:3753 ../src/guestfs-actions.pod:5687
12177 msgid ""
12178 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12179 "the new size of the underlying device."
12180 msgstr ""
12181
12182 #. type: =head2
12183 #: ../fish/guestfish-actions.pod:3756
12184 msgid "pvresize-size"
12185 msgstr ""
12186
12187 #. type: verbatim
12188 #: ../fish/guestfish-actions.pod:3758
12189 #, no-wrap
12190 msgid ""
12191 " pvresize-size device size\n"
12192 "\n"
12193 msgstr ""
12194
12195 #. type: textblock
12196 #: ../fish/guestfish-actions.pod:3760
12197 msgid ""
12198 "This command is the same as L</pvresize> except that it allows you to "
12199 "specify the new size (in bytes) explicitly."
12200 msgstr ""
12201
12202 #. type: =head2
12203 #: ../fish/guestfish-actions.pod:3763
12204 msgid "pvs"
12205 msgstr ""
12206
12207 #. type: verbatim
12208 #: ../fish/guestfish-actions.pod:3765
12209 #, no-wrap
12210 msgid ""
12211 " pvs\n"
12212 "\n"
12213 msgstr ""
12214
12215 #. type: textblock
12216 #: ../fish/guestfish-actions.pod:3767 ../src/guestfs-actions.pod:5713
12217 msgid ""
12218 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12219 "(8)> command."
12220 msgstr ""
12221
12222 #. type: textblock
12223 #: ../fish/guestfish-actions.pod:3770 ../src/guestfs-actions.pod:5716
12224 msgid ""
12225 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12226 "sda2>)."
12227 msgstr ""
12228
12229 #. type: textblock
12230 #: ../fish/guestfish-actions.pod:3773
12231 msgid "See also L</pvs-full>."
12232 msgstr ""
12233
12234 #. type: =head2
12235 #: ../fish/guestfish-actions.pod:3775
12236 msgid "pvs-full"
12237 msgstr ""
12238
12239 #. type: verbatim
12240 #: ../fish/guestfish-actions.pod:3777
12241 #, no-wrap
12242 msgid ""
12243 " pvs-full\n"
12244 "\n"
12245 msgstr ""
12246
12247 #. type: textblock
12248 #: ../fish/guestfish-actions.pod:3779 ../src/guestfs-actions.pod:5732
12249 msgid ""
12250 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12251 "(8)> command.  The \"full\" version includes all fields."
12252 msgstr ""
12253
12254 #. type: =head2
12255 #: ../fish/guestfish-actions.pod:3782
12256 msgid "pvuuid"
12257 msgstr ""
12258
12259 #. type: verbatim
12260 #: ../fish/guestfish-actions.pod:3784
12261 #, no-wrap
12262 msgid ""
12263 " pvuuid device\n"
12264 "\n"
12265 msgstr ""
12266
12267 #. type: textblock
12268 #: ../fish/guestfish-actions.pod:3786 ../src/guestfs-actions.pod:5747
12269 msgid "This command returns the UUID of the LVM PV C<device>."
12270 msgstr ""
12271
12272 #. type: =head2
12273 #: ../fish/guestfish-actions.pod:3788
12274 msgid "pwrite"
12275 msgstr ""
12276
12277 #. type: verbatim
12278 #: ../fish/guestfish-actions.pod:3790
12279 #, no-wrap
12280 msgid ""
12281 " pwrite path content offset\n"
12282 "\n"
12283 msgstr ""
12284
12285 #. type: textblock
12286 #: ../fish/guestfish-actions.pod:3792 ../src/guestfs-actions.pod:5763
12287 msgid ""
12288 "This command writes to part of a file.  It writes the data buffer C<content> "
12289 "to the file C<path> starting at offset C<offset>."
12290 msgstr ""
12291
12292 #. type: textblock
12293 #: ../fish/guestfish-actions.pod:3795 ../src/guestfs-actions.pod:5766
12294 msgid ""
12295 "This command implements the L<pwrite(2)> system call, and like that system "
12296 "call it may not write the full data requested.  The return value is the "
12297 "number of bytes that were actually written to the file.  This could even be "
12298 "0, although short writes are unlikely for regular files in ordinary "
12299 "circumstances."
12300 msgstr ""
12301
12302 #. type: textblock
12303 #: ../fish/guestfish-actions.pod:3801
12304 msgid "See also L</pread>, L</pwrite-device>."
12305 msgstr ""
12306
12307 #. type: =head2
12308 #: ../fish/guestfish-actions.pod:3806
12309 msgid "pwrite-device"
12310 msgstr ""
12311
12312 #. type: verbatim
12313 #: ../fish/guestfish-actions.pod:3808
12314 #, no-wrap
12315 msgid ""
12316 " pwrite-device device content offset\n"
12317 "\n"
12318 msgstr ""
12319
12320 #. type: textblock
12321 #: ../fish/guestfish-actions.pod:3810 ../src/guestfs-actions.pod:5790
12322 msgid ""
12323 "This command writes to part of a device.  It writes the data buffer "
12324 "C<content> to C<device> starting at offset C<offset>."
12325 msgstr ""
12326
12327 #. type: textblock
12328 #: ../fish/guestfish-actions.pod:3813 ../src/guestfs-actions.pod:5793
12329 msgid ""
12330 "This command implements the L<pwrite(2)> system call, and like that system "
12331 "call it may not write the full data requested (although short writes to disk "
12332 "devices and partitions are probably impossible with standard Linux kernels)."
12333 msgstr ""
12334
12335 #. type: textblock
12336 #: ../fish/guestfish-actions.pod:3818
12337 msgid "See also L</pwrite>."
12338 msgstr ""
12339
12340 #. type: =head2
12341 #: ../fish/guestfish-actions.pod:3823
12342 msgid "read-file"
12343 msgstr ""
12344
12345 #. type: verbatim
12346 #: ../fish/guestfish-actions.pod:3825
12347 #, no-wrap
12348 msgid ""
12349 " read-file path\n"
12350 "\n"
12351 msgstr ""
12352
12353 #. type: textblock
12354 #: ../fish/guestfish-actions.pod:3827 ../src/guestfs-actions.pod:5814
12355 msgid "This calls returns the contents of the file C<path> as a buffer."
12356 msgstr ""
12357
12358 #. type: textblock
12359 #: ../fish/guestfish-actions.pod:3830
12360 msgid ""
12361 "Unlike L</cat>, this function can correctly handle files that contain "
12362 "embedded ASCII NUL characters.  However unlike L</download>, this function "
12363 "is limited in the total size of file that can be handled."
12364 msgstr ""
12365
12366 #. type: =head2
12367 #: ../fish/guestfish-actions.pod:3838
12368 msgid "read-lines"
12369 msgstr ""
12370
12371 #. type: verbatim
12372 #: ../fish/guestfish-actions.pod:3840
12373 #, no-wrap
12374 msgid ""
12375 " read-lines path\n"
12376 "\n"
12377 msgstr ""
12378
12379 #. type: textblock
12380 #: ../fish/guestfish-actions.pod:3844 ../src/guestfs-actions.pod:5839
12381 msgid ""
12382 "The file contents are returned as a list of lines.  Trailing C<LF> and "
12383 "C<CRLF> character sequences are I<not> returned."
12384 msgstr ""
12385
12386 #. type: textblock
12387 #: ../fish/guestfish-actions.pod:3847
12388 msgid ""
12389 "Note that this function cannot correctly handle binary files (specifically, "
12390 "files containing C<\\0> character which is treated as end of line).  For "
12391 "those you need to use the L</read-file> function which has a more complex "
12392 "interface."
12393 msgstr ""
12394
12395 #. type: =head2
12396 #: ../fish/guestfish-actions.pod:3852
12397 msgid "readdir"
12398 msgstr ""
12399
12400 #. type: verbatim
12401 #: ../fish/guestfish-actions.pod:3854
12402 #, no-wrap
12403 msgid ""
12404 " readdir dir\n"
12405 "\n"
12406 msgstr ""
12407
12408 #. type: textblock
12409 #: ../fish/guestfish-actions.pod:3856 ../src/guestfs-actions.pod:5859
12410 msgid "This returns the list of directory entries in directory C<dir>."
12411 msgstr ""
12412
12413 #. type: textblock
12414 #: ../fish/guestfish-actions.pod:3858 ../src/guestfs-actions.pod:5861
12415 msgid ""
12416 "All entries in the directory are returned, including C<.> and C<..>.  The "
12417 "entries are I<not> sorted, but returned in the same order as the underlying "
12418 "filesystem."
12419 msgstr ""
12420
12421 #. type: textblock
12422 #: ../fish/guestfish-actions.pod:3862 ../src/guestfs-actions.pod:5865
12423 msgid ""
12424 "Also this call returns basic file type information about each file.  The "
12425 "C<ftyp> field will contain one of the following characters:"
12426 msgstr ""
12427
12428 #. type: =item
12429 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5870
12430 msgid "'b'"
12431 msgstr ""
12432
12433 #. type: textblock
12434 #: ../fish/guestfish-actions.pod:3869 ../src/guestfs-actions.pod:5872
12435 msgid "Block special"
12436 msgstr ""
12437
12438 #. type: =item
12439 #: ../fish/guestfish-actions.pod:3871 ../src/guestfs-actions.pod:5874
12440 msgid "'c'"
12441 msgstr ""
12442
12443 #. type: textblock
12444 #: ../fish/guestfish-actions.pod:3873 ../src/guestfs-actions.pod:5876
12445 msgid "Char special"
12446 msgstr ""
12447
12448 #. type: =item
12449 #: ../fish/guestfish-actions.pod:3875 ../src/guestfs-actions.pod:5878
12450 msgid "'d'"
12451 msgstr ""
12452
12453 #. type: textblock
12454 #: ../fish/guestfish-actions.pod:3877 ../src/guestfs-actions.pod:5880
12455 msgid "Directory"
12456 msgstr ""
12457
12458 #. type: =item
12459 #: ../fish/guestfish-actions.pod:3879 ../src/guestfs-actions.pod:5882
12460 msgid "'f'"
12461 msgstr ""
12462
12463 #. type: textblock
12464 #: ../fish/guestfish-actions.pod:3881 ../src/guestfs-actions.pod:5884
12465 msgid "FIFO (named pipe)"
12466 msgstr ""
12467
12468 #. type: =item
12469 #: ../fish/guestfish-actions.pod:3883 ../src/guestfs-actions.pod:5886
12470 msgid "'l'"
12471 msgstr ""
12472
12473 #. type: textblock
12474 #: ../fish/guestfish-actions.pod:3885 ../src/guestfs-actions.pod:5888
12475 msgid "Symbolic link"
12476 msgstr ""
12477
12478 #. type: =item
12479 #: ../fish/guestfish-actions.pod:3887 ../src/guestfs-actions.pod:5890
12480 msgid "'r'"
12481 msgstr ""
12482
12483 #. type: textblock
12484 #: ../fish/guestfish-actions.pod:3889 ../src/guestfs-actions.pod:5892
12485 msgid "Regular file"
12486 msgstr ""
12487
12488 #. type: =item
12489 #: ../fish/guestfish-actions.pod:3891 ../src/guestfs-actions.pod:5894
12490 msgid "'s'"
12491 msgstr ""
12492
12493 #. type: textblock
12494 #: ../fish/guestfish-actions.pod:3893 ../src/guestfs-actions.pod:5896
12495 msgid "Socket"
12496 msgstr ""
12497
12498 #. type: =item
12499 #: ../fish/guestfish-actions.pod:3895 ../src/guestfs-actions.pod:5898
12500 msgid "'u'"
12501 msgstr ""
12502
12503 #. type: textblock
12504 #: ../fish/guestfish-actions.pod:3897 ../src/guestfs-actions.pod:5900
12505 msgid "Unknown file type"
12506 msgstr ""
12507
12508 #. type: =item
12509 #: ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:5902
12510 msgid "'?'"
12511 msgstr ""
12512
12513 #. type: textblock
12514 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:5904
12515 msgid ""
12516 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
12517 msgstr ""
12518
12519 #. type: textblock
12520 #: ../fish/guestfish-actions.pod:3906
12521 msgid ""
12522 "This function is primarily intended for use by programs.  To get a simple "
12523 "list of names, use L</ls>.  To get a printable directory for human "
12524 "consumption, use L</ll>."
12525 msgstr ""
12526
12527 #. type: =head2
12528 #: ../fish/guestfish-actions.pod:3910
12529 msgid "readlink"
12530 msgstr ""
12531
12532 #. type: verbatim
12533 #: ../fish/guestfish-actions.pod:3912
12534 #, no-wrap
12535 msgid ""
12536 " readlink path\n"
12537 "\n"
12538 msgstr ""
12539
12540 #. type: textblock
12541 #: ../fish/guestfish-actions.pod:3914 ../src/guestfs-actions.pod:5925
12542 msgid "This command reads the target of a symbolic link."
12543 msgstr ""
12544
12545 #. type: =head2
12546 #: ../fish/guestfish-actions.pod:3916
12547 msgid "readlinklist"
12548 msgstr ""
12549
12550 #. type: verbatim
12551 #: ../fish/guestfish-actions.pod:3918
12552 #, no-wrap
12553 msgid ""
12554 " readlinklist path 'names ...'\n"
12555 "\n"
12556 msgstr ""
12557
12558 #. type: textblock
12559 #: ../fish/guestfish-actions.pod:3920 ../src/guestfs-actions.pod:5939
12560 msgid ""
12561 "This call allows you to do a C<readlink> operation on multiple files, where "
12562 "all files are in the directory C<path>.  C<names> is the list of files from "
12563 "this directory."
12564 msgstr ""
12565
12566 #. type: textblock
12567 #: ../fish/guestfish-actions.pod:3924 ../src/guestfs-actions.pod:5943
12568 msgid ""
12569 "On return you get a list of strings, with a one-to-one correspondence to the "
12570 "C<names> list.  Each string is the value of the symbolic link."
12571 msgstr ""
12572
12573 #. type: textblock
12574 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:5947
12575 msgid ""
12576 "If the C<readlink(2)> operation fails on any name, then the corresponding "
12577 "result string is the empty string C<\"\">.  However the whole operation is "
12578 "completed even if there were C<readlink(2)> errors, and so you can call this "
12579 "function with names where you don't know if they are symbolic links already "
12580 "(albeit slightly less efficient)."
12581 msgstr ""
12582
12583 #. type: textblock
12584 #: ../fish/guestfish-actions.pod:3935 ../src/guestfs-actions.pod:5954
12585 msgid ""
12586 "This call is intended for programs that want to efficiently list a directory "
12587 "contents without making many round-trips.  Very long directory listings "
12588 "might cause the protocol message size to be exceeded, causing this call to "
12589 "fail.  The caller must split up such requests into smaller groups of names."
12590 msgstr ""
12591
12592 #. type: =head2
12593 #: ../fish/guestfish-actions.pod:3942
12594 msgid "realpath"
12595 msgstr ""
12596
12597 #. type: verbatim
12598 #: ../fish/guestfish-actions.pod:3944
12599 #, no-wrap
12600 msgid ""
12601 " realpath path\n"
12602 "\n"
12603 msgstr ""
12604
12605 #. type: textblock
12606 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:5973
12607 msgid ""
12608 "Return the canonicalized absolute pathname of C<path>.  The returned path "
12609 "has no C<.>, C<..> or symbolic link path elements."
12610 msgstr ""
12611
12612 #. type: =head2
12613 #: ../fish/guestfish-actions.pod:3949
12614 msgid "removexattr"
12615 msgstr ""
12616
12617 #. type: verbatim
12618 #: ../fish/guestfish-actions.pod:3951
12619 #, no-wrap
12620 msgid ""
12621 " removexattr xattr path\n"
12622 "\n"
12623 msgstr ""
12624
12625 #. type: textblock
12626 #: ../fish/guestfish-actions.pod:3953 ../src/guestfs-actions.pod:5988
12627 msgid ""
12628 "This call removes the extended attribute named C<xattr> of the file C<path>."
12629 msgstr ""
12630
12631 #. type: textblock
12632 #: ../fish/guestfish-actions.pod:3956
12633 msgid "See also: L</lremovexattr>, L<attr(5)>."
12634 msgstr ""
12635
12636 #. type: =head2
12637 #: ../fish/guestfish-actions.pod:3958
12638 msgid "resize2fs"
12639 msgstr ""
12640
12641 #. type: verbatim
12642 #: ../fish/guestfish-actions.pod:3960
12643 #, no-wrap
12644 msgid ""
12645 " resize2fs device\n"
12646 "\n"
12647 msgstr ""
12648
12649 #. type: textblock
12650 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6003
12651 msgid ""
12652 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
12653 "underlying device."
12654 msgstr ""
12655
12656 #. type: textblock
12657 #: ../fish/guestfish-actions.pod:3965
12658 msgid ""
12659 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
12660 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
12661 "gives an error about this and sometimes not.  In any case, it is always safe "
12662 "to call L</e2fsck-f> before calling this function."
12663 msgstr ""
12664
12665 #. type: =head2
12666 #: ../fish/guestfish-actions.pod:3971
12667 msgid "resize2fs-M"
12668 msgstr ""
12669
12670 #. type: verbatim
12671 #: ../fish/guestfish-actions.pod:3973
12672 #, no-wrap
12673 msgid ""
12674 " resize2fs-M device\n"
12675 "\n"
12676 msgstr ""
12677
12678 #. type: textblock
12679 #: ../fish/guestfish-actions.pod:3975
12680 msgid ""
12681 "This command is the same as L</resize2fs>, but the filesystem is resized to "
12682 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
12683 "command."
12684 msgstr ""
12685
12686 #. type: textblock
12687 #: ../fish/guestfish-actions.pod:3979
12688 msgid ""
12689 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
12690 "and read the C<Block size> and C<Block count> values.  These two numbers, "
12691 "multiplied together, give the resulting size of the minimal filesystem in "
12692 "bytes."
12693 msgstr ""
12694
12695 #. type: =head2
12696 #: ../fish/guestfish-actions.pod:3984
12697 msgid "resize2fs-size"
12698 msgstr ""
12699
12700 #. type: verbatim
12701 #: ../fish/guestfish-actions.pod:3986
12702 #, no-wrap
12703 msgid ""
12704 " resize2fs-size device size\n"
12705 "\n"
12706 msgstr ""
12707
12708 #. type: textblock
12709 #: ../fish/guestfish-actions.pod:3988
12710 msgid ""
12711 "This command is the same as L</resize2fs> except that it allows you to "
12712 "specify the new size (in bytes) explicitly."
12713 msgstr ""
12714
12715 #. type: =head2
12716 #: ../fish/guestfish-actions.pod:3991
12717 msgid "rm"
12718 msgstr ""
12719
12720 #. type: verbatim
12721 #: ../fish/guestfish-actions.pod:3993
12722 #, no-wrap
12723 msgid ""
12724 " rm path\n"
12725 "\n"
12726 msgstr ""
12727
12728 #. type: textblock
12729 #: ../fish/guestfish-actions.pod:3995 ../src/guestfs-actions.pod:6055
12730 msgid "Remove the single file C<path>."
12731 msgstr ""
12732
12733 #. type: =head2
12734 #: ../fish/guestfish-actions.pod:3997
12735 msgid "rm-rf"
12736 msgstr ""
12737
12738 #. type: verbatim
12739 #: ../fish/guestfish-actions.pod:3999
12740 #, no-wrap
12741 msgid ""
12742 " rm-rf path\n"
12743 "\n"
12744 msgstr ""
12745
12746 #. type: textblock
12747 #: ../fish/guestfish-actions.pod:4001 ../src/guestfs-actions.pod:6067
12748 msgid ""
12749 "Remove the file or directory C<path>, recursively removing the contents if "
12750 "its a directory.  This is like the C<rm -rf> shell command."
12751 msgstr ""
12752
12753 #. type: =head2
12754 #: ../fish/guestfish-actions.pod:4005
12755 msgid "rmdir"
12756 msgstr ""
12757
12758 #. type: verbatim
12759 #: ../fish/guestfish-actions.pod:4007
12760 #, no-wrap
12761 msgid ""
12762 " rmdir path\n"
12763 "\n"
12764 msgstr ""
12765
12766 #. type: textblock
12767 #: ../fish/guestfish-actions.pod:4009 ../src/guestfs-actions.pod:6081
12768 msgid "Remove the single directory C<path>."
12769 msgstr ""
12770
12771 #. type: =head2
12772 #: ../fish/guestfish-actions.pod:4011
12773 msgid "rmmountpoint"
12774 msgstr ""
12775
12776 #. type: verbatim
12777 #: ../fish/guestfish-actions.pod:4013
12778 #, no-wrap
12779 msgid ""
12780 " rmmountpoint exemptpath\n"
12781 "\n"
12782 msgstr ""
12783
12784 #. type: textblock
12785 #: ../fish/guestfish-actions.pod:4015
12786 msgid ""
12787 "This calls removes a mountpoint that was previously created with L</"
12788 "mkmountpoint>.  See L</mkmountpoint> for full details."
12789 msgstr ""
12790
12791 #. type: =head2
12792 #: ../fish/guestfish-actions.pod:4019
12793 msgid "scrub-device"
12794 msgstr ""
12795
12796 #. type: verbatim
12797 #: ../fish/guestfish-actions.pod:4021
12798 #, no-wrap
12799 msgid ""
12800 " scrub-device device\n"
12801 "\n"
12802 msgstr ""
12803
12804 #. type: textblock
12805 #: ../fish/guestfish-actions.pod:4023 ../src/guestfs-actions.pod:6107
12806 msgid ""
12807 "This command writes patterns over C<device> to make data retrieval more "
12808 "difficult."
12809 msgstr ""
12810
12811 #. type: textblock
12812 #: ../fish/guestfish-actions.pod:4026 ../fish/guestfish-actions.pod:4041
12813 #: ../fish/guestfish-actions.pod:4054 ../src/guestfs-actions.pod:6110
12814 #: ../src/guestfs-actions.pod:6131 ../src/guestfs-actions.pod:6150
12815 msgid ""
12816 "It is an interface to the L<scrub(1)> program.  See that manual page for "
12817 "more details."
12818 msgstr ""
12819
12820 #. type: =head2
12821 #: ../fish/guestfish-actions.pod:4032
12822 msgid "scrub-file"
12823 msgstr ""
12824
12825 #. type: verbatim
12826 #: ../fish/guestfish-actions.pod:4034
12827 #, no-wrap
12828 msgid ""
12829 " scrub-file file\n"
12830 "\n"
12831 msgstr ""
12832
12833 #. type: textblock
12834 #: ../fish/guestfish-actions.pod:4036 ../src/guestfs-actions.pod:6126
12835 msgid ""
12836 "This command writes patterns over a file to make data retrieval more "
12837 "difficult."
12838 msgstr ""
12839
12840 #. type: textblock
12841 #: ../fish/guestfish-actions.pod:4039 ../src/guestfs-actions.pod:6129
12842 msgid "The file is I<removed> after scrubbing."
12843 msgstr ""
12844
12845 #. type: =head2
12846 #: ../fish/guestfish-actions.pod:4044
12847 msgid "scrub-freespace"
12848 msgstr ""
12849
12850 #. type: verbatim
12851 #: ../fish/guestfish-actions.pod:4046
12852 #, no-wrap
12853 msgid ""
12854 " scrub-freespace dir\n"
12855 "\n"
12856 msgstr ""
12857
12858 #. type: textblock
12859 #: ../fish/guestfish-actions.pod:4048
12860 msgid ""
12861 "This command creates the directory C<dir> and then fills it with files until "
12862 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
12863 "deletes them.  The intention is to scrub any free space on the partition "
12864 "containing C<dir>."
12865 msgstr ""
12866
12867 #. type: =head2
12868 #: ../fish/guestfish-actions.pod:4057
12869 msgid "set-append"
12870 msgstr ""
12871
12872 #. type: =head2
12873 #: ../fish/guestfish-actions.pod:4059
12874 msgid "append"
12875 msgstr ""
12876
12877 #. type: verbatim
12878 #: ../fish/guestfish-actions.pod:4061
12879 #, no-wrap
12880 msgid ""
12881 " set-append append\n"
12882 "\n"
12883 msgstr ""
12884
12885 #. type: textblock
12886 #: ../fish/guestfish-actions.pod:4063 ../src/guestfs-actions.pod:6163
12887 msgid ""
12888 "This function is used to add additional options to the guest kernel command "
12889 "line."
12890 msgstr ""
12891
12892 #. type: textblock
12893 #: ../fish/guestfish-actions.pod:4066 ../src/guestfs-actions.pod:6166
12894 msgid ""
12895 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
12896 "environment variable."
12897 msgstr ""
12898
12899 #. type: textblock
12900 #: ../fish/guestfish-actions.pod:4069 ../src/guestfs-actions.pod:6169
12901 msgid ""
12902 "Setting C<append> to C<NULL> means I<no> additional options are passed "
12903 "(libguestfs always adds a few of its own)."
12904 msgstr ""
12905
12906 #. type: =head2
12907 #: ../fish/guestfish-actions.pod:4072
12908 msgid "set-attach-method"
12909 msgstr ""
12910
12911 #. type: =head2
12912 #: ../fish/guestfish-actions.pod:4074
12913 msgid "attach-method"
12914 msgstr ""
12915
12916 #. type: verbatim
12917 #: ../fish/guestfish-actions.pod:4076
12918 #, no-wrap
12919 msgid ""
12920 " set-attach-method attachmethod\n"
12921 "\n"
12922 msgstr ""
12923
12924 #. type: textblock
12925 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6182
12926 msgid ""
12927 "Set the method that libguestfs uses to connect to the back end guestfsd "
12928 "daemon.  Possible methods are:"
12929 msgstr ""
12930
12931 #. type: =item
12932 #: ../fish/guestfish-actions.pod:4083 ../src/guestfs-actions.pod:6187
12933 #: ../src/guestfs.pod:2703
12934 msgid "C<appliance>"
12935 msgstr ""
12936
12937 #. type: textblock
12938 #: ../fish/guestfish-actions.pod:4085 ../src/guestfs-actions.pod:6189
12939 msgid ""
12940 "Launch an appliance and connect to it.  This is the ordinary method and the "
12941 "default."
12942 msgstr ""
12943
12944 #. type: =item
12945 #: ../fish/guestfish-actions.pod:4088 ../src/guestfs-actions.pod:6192
12946 msgid "C<unix:I<path>>"
12947 msgstr ""
12948
12949 #. type: textblock
12950 #: ../fish/guestfish-actions.pod:4090 ../src/guestfs-actions.pod:6194
12951 msgid "Connect to the Unix domain socket I<path>."
12952 msgstr ""
12953
12954 #. type: textblock
12955 #: ../fish/guestfish-actions.pod:4092 ../src/guestfs-actions.pod:6196
12956 msgid ""
12957 "This method lets you connect to an existing daemon or (using virtio-serial) "
12958 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
12959 "RUNNING DAEMONS>."
12960 msgstr ""
12961
12962 #. type: =head2
12963 #: ../fish/guestfish-actions.pod:4098
12964 msgid "set-autosync"
12965 msgstr ""
12966
12967 #. type: =head2
12968 #: ../fish/guestfish-actions.pod:4100
12969 msgid "autosync"
12970 msgstr ""
12971
12972 #. type: verbatim
12973 #: ../fish/guestfish-actions.pod:4102
12974 #, no-wrap
12975 msgid ""
12976 " set-autosync true|false\n"
12977 "\n"
12978 msgstr ""
12979
12980 #. type: textblock
12981 #: ../fish/guestfish-actions.pod:4104 ../src/guestfs-actions.pod:6212
12982 msgid ""
12983 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
12984 "effort attempt to make filesystems consistent and synchronized when the "
12985 "handle is closed (also if the program exits without closing handles)."
12986 msgstr ""
12987
12988 #. type: textblock
12989 #: ../fish/guestfish-actions.pod:4109 ../src/guestfs-actions.pod:6217
12990 msgid ""
12991 "This is enabled by default (since libguestfs 1.5.24, previously it was "
12992 "disabled by default)."
12993 msgstr ""
12994
12995 #. type: =head2
12996 #: ../fish/guestfish-actions.pod:4112
12997 msgid "set-direct"
12998 msgstr ""
12999
13000 #. type: =head2
13001 #: ../fish/guestfish-actions.pod:4114
13002 msgid "direct"
13003 msgstr ""
13004
13005 #. type: verbatim
13006 #: ../fish/guestfish-actions.pod:4116
13007 #, no-wrap
13008 msgid ""
13009 " set-direct true|false\n"
13010 "\n"
13011 msgstr ""
13012
13013 #. type: textblock
13014 #: ../fish/guestfish-actions.pod:4118 ../src/guestfs-actions.pod:6230
13015 msgid ""
13016 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13017 "passed directly through to the appliance once it is launched."
13018 msgstr ""
13019
13020 #. type: textblock
13021 #: ../fish/guestfish-actions.pod:4122
13022 msgid ""
13023 "One consequence of this is that log messages aren't caught by the library "
13024 "and handled by L</set-log-message-callback>, but go straight to stdout."
13025 msgstr ""
13026
13027 #. type: textblock
13028 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6238
13029 msgid "You probably don't want to use this unless you know what you are doing."
13030 msgstr ""
13031
13032 #. type: textblock
13033 #: ../fish/guestfish-actions.pod:4129 ../src/guestfs-actions.pod:6241
13034 msgid "The default is disabled."
13035 msgstr ""
13036
13037 #. type: =head2
13038 #: ../fish/guestfish-actions.pod:4131
13039 msgid "set-e2label"
13040 msgstr ""
13041
13042 #. type: verbatim
13043 #: ../fish/guestfish-actions.pod:4133
13044 #, no-wrap
13045 msgid ""
13046 " set-e2label device label\n"
13047 "\n"
13048 msgstr ""
13049
13050 #. type: textblock
13051 #: ../fish/guestfish-actions.pod:4135 ../src/guestfs-actions.pod:6254
13052 msgid ""
13053 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13054 "C<label>.  Filesystem labels are limited to 16 characters."
13055 msgstr ""
13056
13057 #. type: textblock
13058 #: ../fish/guestfish-actions.pod:4139
13059 msgid ""
13060 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
13061 "label on a filesystem."
13062 msgstr ""
13063
13064 #. type: =head2
13065 #: ../fish/guestfish-actions.pod:4142
13066 msgid "set-e2uuid"
13067 msgstr ""
13068
13069 #. type: verbatim
13070 #: ../fish/guestfish-actions.pod:4144
13071 #, no-wrap
13072 msgid ""
13073 " set-e2uuid device uuid\n"
13074 "\n"
13075 msgstr ""
13076
13077 #. type: textblock
13078 #: ../fish/guestfish-actions.pod:4146 ../src/guestfs-actions.pod:6272
13079 msgid ""
13080 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13081 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13082 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13083 msgstr ""
13084
13085 #. type: textblock
13086 #: ../fish/guestfish-actions.pod:4151
13087 msgid ""
13088 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
13089 "UUID of a filesystem."
13090 msgstr ""
13091
13092 #. type: =head2
13093 #: ../fish/guestfish-actions.pod:4154
13094 msgid "set-memsize"
13095 msgstr ""
13096
13097 #. type: =head2
13098 #: ../fish/guestfish-actions.pod:4156
13099 msgid "memsize"
13100 msgstr ""
13101
13102 #. type: verbatim
13103 #: ../fish/guestfish-actions.pod:4158
13104 #, no-wrap
13105 msgid ""
13106 " set-memsize memsize\n"
13107 "\n"
13108 msgstr ""
13109
13110 #. type: textblock
13111 #: ../fish/guestfish-actions.pod:4160
13112 msgid ""
13113 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13114 "This only has any effect if called before L</launch>."
13115 msgstr ""
13116
13117 #. type: textblock
13118 #: ../fish/guestfish-actions.pod:4164 ../src/guestfs-actions.pod:6294
13119 msgid ""
13120 "You can also change this by setting the environment variable "
13121 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13122 msgstr ""
13123
13124 #. type: =head2
13125 #: ../fish/guestfish-actions.pod:4171
13126 msgid "set-network"
13127 msgstr ""
13128
13129 #. type: =head2
13130 #: ../fish/guestfish-actions.pod:4173
13131 msgid "network"
13132 msgstr ""
13133
13134 #. type: verbatim
13135 #: ../fish/guestfish-actions.pod:4175
13136 #, no-wrap
13137 msgid ""
13138 " set-network true|false\n"
13139 "\n"
13140 msgstr ""
13141
13142 #. type: textblock
13143 #: ../fish/guestfish-actions.pod:4177 ../src/guestfs-actions.pod:6311
13144 msgid ""
13145 "If C<network> is true, then the network is enabled in the libguestfs "
13146 "appliance.  The default is false."
13147 msgstr ""
13148
13149 #. type: textblock
13150 #: ../fish/guestfish-actions.pod:4180 ../src/guestfs-actions.pod:6314
13151 msgid ""
13152 "This affects whether commands are able to access the network (see L<guestfs"
13153 "(3)/RUNNING COMMANDS>)."
13154 msgstr ""
13155
13156 #. type: textblock
13157 #: ../fish/guestfish-actions.pod:4183
13158 msgid ""
13159 "You must call this before calling L</launch>, otherwise it has no effect."
13160 msgstr ""
13161
13162 #. type: =head2
13163 #: ../fish/guestfish-actions.pod:4186
13164 msgid "set-path"
13165 msgstr ""
13166
13167 #. type: verbatim
13168 #: ../fish/guestfish-actions.pod:4190
13169 #, no-wrap
13170 msgid ""
13171 " set-path searchpath\n"
13172 "\n"
13173 msgstr ""
13174
13175 #. type: textblock
13176 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6330
13177 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13178 msgstr ""
13179
13180 #. type: textblock
13181 #: ../fish/guestfish-actions.pod:4194 ../src/guestfs-actions.pod:6332
13182 msgid ""
13183 "The default is C<$libdir/guestfs> unless overridden by setting "
13184 "C<LIBGUESTFS_PATH> environment variable."
13185 msgstr ""
13186
13187 #. type: textblock
13188 #: ../fish/guestfish-actions.pod:4197 ../src/guestfs-actions.pod:6335
13189 msgid "Setting C<path> to C<NULL> restores the default path."
13190 msgstr ""
13191
13192 #. type: =head2
13193 #: ../fish/guestfish-actions.pod:4199
13194 msgid "set-pgroup"
13195 msgstr ""
13196
13197 #. type: =head2
13198 #: ../fish/guestfish-actions.pod:4201
13199 msgid "pgroup"
13200 msgstr ""
13201
13202 #. type: verbatim
13203 #: ../fish/guestfish-actions.pod:4203
13204 #, no-wrap
13205 msgid ""
13206 " set-pgroup true|false\n"
13207 "\n"
13208 msgstr ""
13209
13210 #. type: textblock
13211 #: ../fish/guestfish-actions.pod:4205 ../src/guestfs-actions.pod:6347
13212 msgid ""
13213 "If C<pgroup> is true, child processes are placed into their own process "
13214 "group."
13215 msgstr ""
13216
13217 #. type: textblock
13218 #: ../fish/guestfish-actions.pod:4208 ../src/guestfs-actions.pod:6350
13219 msgid ""
13220 "The practical upshot of this is that signals like C<SIGINT> (from users "
13221 "pressing C<^C>) won't be received by the child process."
13222 msgstr ""
13223
13224 #. type: textblock
13225 #: ../fish/guestfish-actions.pod:4211 ../src/guestfs-actions.pod:6353
13226 msgid ""
13227 "The default for this flag is false, because usually you want C<^C> to kill "
13228 "the subprocess."
13229 msgstr ""
13230
13231 #. type: =head2
13232 #: ../fish/guestfish-actions.pod:4214
13233 msgid "set-qemu"
13234 msgstr ""
13235
13236 #. type: =head2
13237 #: ../fish/guestfish-actions.pod:4216
13238 msgid "qemu"
13239 msgstr ""
13240
13241 #. type: verbatim
13242 #: ../fish/guestfish-actions.pod:4218
13243 #, no-wrap
13244 msgid ""
13245 " set-qemu qemu\n"
13246 "\n"
13247 msgstr ""
13248
13249 #. type: textblock
13250 #: ../fish/guestfish-actions.pod:4220 ../src/guestfs-actions.pod:6366
13251 msgid "Set the qemu binary that we will use."
13252 msgstr ""
13253
13254 #. type: textblock
13255 #: ../fish/guestfish-actions.pod:4222 ../src/guestfs-actions.pod:6368
13256 msgid ""
13257 "The default is chosen when the library was compiled by the configure script."
13258 msgstr ""
13259
13260 #. type: textblock
13261 #: ../fish/guestfish-actions.pod:4225 ../src/guestfs-actions.pod:6371
13262 msgid ""
13263 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13264 "variable."
13265 msgstr ""
13266
13267 #. type: textblock
13268 #: ../fish/guestfish-actions.pod:4228 ../src/guestfs-actions.pod:6374
13269 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13270 msgstr ""
13271
13272 #. type: textblock
13273 #: ../fish/guestfish-actions.pod:4230 ../src/guestfs-actions.pod:6376
13274 msgid ""
13275 "Note that you should call this function as early as possible after creating "
13276 "the handle.  This is because some pre-launch operations depend on testing "
13277 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13278 "don't retest features, and so you might see inconsistent results.  Using the "
13279 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13280 "the qemu binary at the same time as the handle is created."
13281 msgstr ""
13282
13283 #. type: =head2
13284 #: ../fish/guestfish-actions.pod:4238
13285 msgid "set-recovery-proc"
13286 msgstr ""
13287
13288 #. type: =head2
13289 #: ../fish/guestfish-actions.pod:4240
13290 msgid "recovery-proc"
13291 msgstr ""
13292
13293 #. type: verbatim
13294 #: ../fish/guestfish-actions.pod:4242
13295 #, no-wrap
13296 msgid ""
13297 " set-recovery-proc true|false\n"
13298 "\n"
13299 msgstr ""
13300
13301 #. type: textblock
13302 #: ../fish/guestfish-actions.pod:4244
13303 msgid ""
13304 "If this is called with the parameter C<false> then L</launch> does not "
13305 "create a recovery process.  The purpose of the recovery process is to stop "
13306 "runaway qemu processes in the case where the main program aborts abruptly."
13307 msgstr ""
13308
13309 #. type: textblock
13310 #: ../fish/guestfish-actions.pod:4249
13311 msgid ""
13312 "This only has any effect if called before L</launch>, and the default is "
13313 "true."
13314 msgstr ""
13315
13316 #. type: textblock
13317 #: ../fish/guestfish-actions.pod:4252 ../src/guestfs-actions.pod:6402
13318 msgid ""
13319 "About the only time when you would want to disable this is if the main "
13320 "process will fork itself into the background (\"daemonize\" itself).  In "
13321 "this case the recovery process thinks that the main program has disappeared "
13322 "and so kills qemu, which is not very helpful."
13323 msgstr ""
13324
13325 #. type: =head2
13326 #: ../fish/guestfish-actions.pod:4258
13327 msgid "set-selinux"
13328 msgstr ""
13329
13330 #. type: =head2
13331 #: ../fish/guestfish-actions.pod:4260
13332 msgid "selinux"
13333 msgstr ""
13334
13335 #. type: verbatim
13336 #: ../fish/guestfish-actions.pod:4262
13337 #, no-wrap
13338 msgid ""
13339 " set-selinux true|false\n"
13340 "\n"
13341 msgstr ""
13342
13343 #. type: textblock
13344 #: ../fish/guestfish-actions.pod:4264 ../src/guestfs-actions.pod:6418
13345 msgid ""
13346 "This sets the selinux flag that is passed to the appliance at boot time.  "
13347 "The default is C<selinux=0> (disabled)."
13348 msgstr ""
13349
13350 #. type: textblock
13351 #: ../fish/guestfish-actions.pod:4267 ../src/guestfs-actions.pod:6421
13352 msgid ""
13353 "Note that if SELinux is enabled, it is always in Permissive mode "
13354 "(C<enforcing=0>)."
13355 msgstr ""
13356
13357 #. type: =head2
13358 #: ../fish/guestfish-actions.pod:4273
13359 msgid "set-trace"
13360 msgstr ""
13361
13362 #. type: =head2
13363 #: ../fish/guestfish-actions.pod:4275
13364 msgid "trace"
13365 msgstr ""
13366
13367 #. type: verbatim
13368 #: ../fish/guestfish-actions.pod:4277
13369 #, no-wrap
13370 msgid ""
13371 " set-trace true|false\n"
13372 "\n"
13373 msgstr ""
13374
13375 #. type: textblock
13376 #: ../fish/guestfish-actions.pod:4279 ../src/guestfs-actions.pod:6437
13377 msgid ""
13378 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
13379 "return values are traced."
13380 msgstr ""
13381
13382 #. type: textblock
13383 #: ../fish/guestfish-actions.pod:4282 ../src/guestfs-actions.pod:6440
13384 msgid ""
13385 "If you want to trace C API calls into libguestfs (and other libraries) then "
13386 "possibly a better way is to use the external ltrace(1) command."
13387 msgstr ""
13388
13389 #. type: textblock
13390 #: ../fish/guestfish-actions.pod:4286 ../src/guestfs-actions.pod:6444
13391 msgid ""
13392 "Command traces are disabled unless the environment variable "
13393 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
13394 msgstr ""
13395
13396 #. type: textblock
13397 #: ../fish/guestfish-actions.pod:4289
13398 msgid ""
13399 "Trace messages are normally sent to C<stderr>, unless you register a "
13400 "callback to send them somewhere else (see L</set-event-callback>)."
13401 msgstr ""
13402
13403 #. type: =head2
13404 #: ../fish/guestfish-actions.pod:4293
13405 msgid "set-verbose"
13406 msgstr ""
13407
13408 #. type: =head2
13409 #: ../fish/guestfish-actions.pod:4295
13410 msgid "verbose"
13411 msgstr ""
13412
13413 #. type: verbatim
13414 #: ../fish/guestfish-actions.pod:4297
13415 #, no-wrap
13416 msgid ""
13417 " set-verbose true|false\n"
13418 "\n"
13419 msgstr ""
13420
13421 #. type: textblock
13422 #: ../fish/guestfish-actions.pod:4299 ../src/guestfs-actions.pod:6461
13423 msgid "If C<verbose> is true, this turns on verbose messages."
13424 msgstr ""
13425
13426 #. type: textblock
13427 #: ../fish/guestfish-actions.pod:4301 ../src/guestfs-actions.pod:6463
13428 msgid ""
13429 "Verbose messages are disabled unless the environment variable "
13430 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
13431 msgstr ""
13432
13433 #. type: textblock
13434 #: ../fish/guestfish-actions.pod:4304
13435 msgid ""
13436 "Verbose messages are normally sent to C<stderr>, unless you register a "
13437 "callback to send them somewhere else (see L</set-event-callback>)."
13438 msgstr ""
13439
13440 #. type: =head2
13441 #: ../fish/guestfish-actions.pod:4308
13442 msgid "setcon"
13443 msgstr ""
13444
13445 #. type: verbatim
13446 #: ../fish/guestfish-actions.pod:4310
13447 #, no-wrap
13448 msgid ""
13449 " setcon context\n"
13450 "\n"
13451 msgstr ""
13452
13453 #. type: textblock
13454 #: ../fish/guestfish-actions.pod:4312 ../src/guestfs-actions.pod:6480
13455 msgid ""
13456 "This sets the SELinux security context of the daemon to the string "
13457 "C<context>."
13458 msgstr ""
13459
13460 #. type: textblock
13461 #: ../fish/guestfish-actions.pod:4315 ../src/guestfs-actions.pod:6483
13462 msgid "See the documentation about SELINUX in L<guestfs(3)>."
13463 msgstr ""
13464
13465 #. type: =head2
13466 #: ../fish/guestfish-actions.pod:4317
13467 msgid "setxattr"
13468 msgstr ""
13469
13470 #. type: verbatim
13471 #: ../fish/guestfish-actions.pod:4319
13472 #, no-wrap
13473 msgid ""
13474 " setxattr xattr val vallen path\n"
13475 "\n"
13476 msgstr ""
13477
13478 #. type: textblock
13479 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6498
13480 msgid ""
13481 "This call sets the extended attribute named C<xattr> of the file C<path> to "
13482 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
13483 msgstr ""
13484
13485 #. type: textblock
13486 #: ../fish/guestfish-actions.pod:4325
13487 msgid "See also: L</lsetxattr>, L<attr(5)>."
13488 msgstr ""
13489
13490 #. type: =head2
13491 #: ../fish/guestfish-actions.pod:4327
13492 msgid "sfdisk"
13493 msgstr ""
13494
13495 #. type: verbatim
13496 #: ../fish/guestfish-actions.pod:4329
13497 #, no-wrap
13498 msgid ""
13499 " sfdisk device cyls heads sectors 'lines ...'\n"
13500 "\n"
13501 msgstr ""
13502
13503 #. type: textblock
13504 #: ../fish/guestfish-actions.pod:4331 ../src/guestfs-actions.pod:6525
13505 msgid ""
13506 "This is a direct interface to the L<sfdisk(8)> program for creating "
13507 "partitions on block devices."
13508 msgstr ""
13509
13510 #. type: textblock
13511 #: ../fish/guestfish-actions.pod:4334 ../src/guestfs-actions.pod:6528
13512 msgid "C<device> should be a block device, for example C</dev/sda>."
13513 msgstr ""
13514
13515 #. type: textblock
13516 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6530
13517 msgid ""
13518 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
13519 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
13520 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
13521 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
13522 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
13523 "the kernel) cannot work out the right geometry and you will need to tell it."
13524 msgstr ""
13525
13526 #. type: textblock
13527 #: ../fish/guestfish-actions.pod:4344 ../src/guestfs-actions.pod:6538
13528 msgid ""
13529 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
13530 "refer to the L<sfdisk(8)> manpage."
13531 msgstr ""
13532
13533 #. type: textblock
13534 #: ../fish/guestfish-actions.pod:4347 ../src/guestfs-actions.pod:6541
13535 msgid ""
13536 "To create a single partition occupying the whole disk, you would pass "
13537 "C<lines> as a single element list, when the single element being the string "
13538 "C<,> (comma)."
13539 msgstr ""
13540
13541 #. type: textblock
13542 #: ../fish/guestfish-actions.pod:4351
13543 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
13544 msgstr ""
13545
13546 #. type: textblock
13547 #: ../fish/guestfish-actions.pod:4357 ../fish/guestfish-actions.pod:4380
13548 #: ../fish/guestfish-actions.pod:4402
13549 msgid ""
13550 "I<This function is deprecated.> In new code, use the L</part_add> call "
13551 "instead."
13552 msgstr ""
13553
13554 #. type: =head2
13555 #: ../fish/guestfish-actions.pod:4364
13556 msgid "sfdiskM"
13557 msgstr ""
13558
13559 #. type: verbatim
13560 #: ../fish/guestfish-actions.pod:4366
13561 #, no-wrap
13562 msgid ""
13563 " sfdiskM device 'lines ...'\n"
13564 "\n"
13565 msgstr ""
13566
13567 #. type: textblock
13568 #: ../fish/guestfish-actions.pod:4368
13569 msgid ""
13570 "This is a simplified interface to the L</sfdisk> command, where partition "
13571 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
13572 "you don't need to specify the cyls, heads and sectors parameters which were "
13573 "rarely if ever used anyway."
13574 msgstr ""
13575
13576 #. type: textblock
13577 #: ../fish/guestfish-actions.pod:4374
13578 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
13579 msgstr ""
13580
13581 #. type: =head2
13582 #: ../fish/guestfish-actions.pod:4387
13583 msgid "sfdisk-N"
13584 msgstr ""
13585
13586 #. type: verbatim
13587 #: ../fish/guestfish-actions.pod:4389
13588 #, no-wrap
13589 msgid ""
13590 " sfdisk-N device partnum cyls heads sectors line\n"
13591 "\n"
13592 msgstr ""
13593
13594 #. type: textblock
13595 #: ../fish/guestfish-actions.pod:4391 ../src/guestfs-actions.pod:6603
13596 msgid ""
13597 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
13598 "(note: C<n> counts from 1)."
13599 msgstr ""
13600
13601 #. type: textblock
13602 #: ../fish/guestfish-actions.pod:4394
13603 msgid ""
13604 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
13605 "cyls/heads/sectors parameters."
13606 msgstr ""
13607
13608 #. type: textblock
13609 #: ../fish/guestfish-actions.pod:4397
13610 msgid "See also: L</part-add>"
13611 msgstr ""
13612
13613 #. type: =head2
13614 #: ../fish/guestfish-actions.pod:4409
13615 msgid "sfdisk-disk-geometry"
13616 msgstr ""
13617
13618 #. type: verbatim
13619 #: ../fish/guestfish-actions.pod:4411
13620 #, no-wrap
13621 msgid ""
13622 " sfdisk-disk-geometry device\n"
13623 "\n"
13624 msgstr ""
13625
13626 #. type: textblock
13627 #: ../fish/guestfish-actions.pod:4413
13628 msgid ""
13629 "This displays the disk geometry of C<device> read from the partition table.  "
13630 "Especially in the case where the underlying block device has been resized, "
13631 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
13632 "kernel-geometry>)."
13633 msgstr ""
13634
13635 #. type: textblock
13636 #: ../fish/guestfish-actions.pod:4418 ../fish/guestfish-actions.pod:4427
13637 #: ../src/guestfs-actions.pod:6629 ../src/guestfs-actions.pod:6645
13638 msgid "The result is in human-readable format, and not designed to be parsed."
13639 msgstr ""
13640
13641 #. type: =head2
13642 #: ../fish/guestfish-actions.pod:4421
13643 msgid "sfdisk-kernel-geometry"
13644 msgstr ""
13645
13646 #. type: verbatim
13647 #: ../fish/guestfish-actions.pod:4423
13648 #, no-wrap
13649 msgid ""
13650 " sfdisk-kernel-geometry device\n"
13651 "\n"
13652 msgstr ""
13653
13654 #. type: textblock
13655 #: ../fish/guestfish-actions.pod:4425 ../src/guestfs-actions.pod:6643
13656 msgid "This displays the kernel's idea of the geometry of C<device>."
13657 msgstr ""
13658
13659 #. type: =head2
13660 #: ../fish/guestfish-actions.pod:4430
13661 msgid "sfdisk-l"
13662 msgstr ""
13663
13664 #. type: verbatim
13665 #: ../fish/guestfish-actions.pod:4432
13666 #, no-wrap
13667 msgid ""
13668 " sfdisk-l device\n"
13669 "\n"
13670 msgstr ""
13671
13672 #. type: textblock
13673 #: ../fish/guestfish-actions.pod:4434 ../src/guestfs-actions.pod:6666
13674 msgid ""
13675 "This displays the partition table on C<device>, in the human-readable output "
13676 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
13677 msgstr ""
13678
13679 #. type: textblock
13680 #: ../fish/guestfish-actions.pod:4438
13681 msgid "See also: L</part-list>"
13682 msgstr ""
13683
13684 #. type: textblock
13685 #: ../fish/guestfish-actions.pod:4440
13686 msgid ""
13687 "I<This function is deprecated.> In new code, use the L</part_list> call "
13688 "instead."
13689 msgstr ""
13690
13691 #. type: =head2
13692 #: ../fish/guestfish-actions.pod:4447
13693 msgid "sh"
13694 msgstr ""
13695
13696 #. type: verbatim
13697 #: ../fish/guestfish-actions.pod:4449
13698 #, no-wrap
13699 msgid ""
13700 " sh command\n"
13701 "\n"
13702 msgstr ""
13703
13704 #. type: textblock
13705 #: ../fish/guestfish-actions.pod:4451 ../src/guestfs-actions.pod:6683
13706 msgid ""
13707 "This call runs a command from the guest filesystem via the guest's C</bin/"
13708 "sh>."
13709 msgstr ""
13710
13711 #. type: textblock
13712 #: ../fish/guestfish-actions.pod:4454
13713 msgid "This is like L</command>, but passes the command to:"
13714 msgstr ""
13715
13716 #. type: verbatim
13717 #: ../fish/guestfish-actions.pod:4456 ../src/guestfs-actions.pod:6688
13718 #, no-wrap
13719 msgid ""
13720 " /bin/sh -c \"command\"\n"
13721 "\n"
13722 msgstr ""
13723
13724 #. type: textblock
13725 #: ../fish/guestfish-actions.pod:4458 ../src/guestfs-actions.pod:6690
13726 msgid ""
13727 "Depending on the guest's shell, this usually results in wildcards being "
13728 "expanded, shell expressions being interpolated and so on."
13729 msgstr ""
13730
13731 #. type: textblock
13732 #: ../fish/guestfish-actions.pod:4462
13733 msgid "All the provisos about L</command> apply to this call."
13734 msgstr ""
13735
13736 #. type: =head2
13737 #: ../fish/guestfish-actions.pod:4464
13738 msgid "sh-lines"
13739 msgstr ""
13740
13741 #. type: verbatim
13742 #: ../fish/guestfish-actions.pod:4466
13743 #, no-wrap
13744 msgid ""
13745 " sh-lines command\n"
13746 "\n"
13747 msgstr ""
13748
13749 #. type: textblock
13750 #: ../fish/guestfish-actions.pod:4468
13751 msgid "This is the same as L</sh>, but splits the result into a list of lines."
13752 msgstr ""
13753
13754 #. type: textblock
13755 #: ../fish/guestfish-actions.pod:4471
13756 msgid "See also: L</command-lines>"
13757 msgstr ""
13758
13759 #. type: =head2
13760 #: ../fish/guestfish-actions.pod:4473
13761 msgid "sleep"
13762 msgstr ""
13763
13764 #. type: verbatim
13765 #: ../fish/guestfish-actions.pod:4475
13766 #, no-wrap
13767 msgid ""
13768 " sleep secs\n"
13769 "\n"
13770 msgstr ""
13771
13772 #. type: textblock
13773 #: ../fish/guestfish-actions.pod:4477 ../src/guestfs-actions.pod:6724
13774 msgid "Sleep for C<secs> seconds."
13775 msgstr ""
13776
13777 #. type: =head2
13778 #: ../fish/guestfish-actions.pod:4479
13779 msgid "stat"
13780 msgstr ""
13781
13782 #. type: verbatim
13783 #: ../fish/guestfish-actions.pod:4481
13784 #, no-wrap
13785 msgid ""
13786 " stat path\n"
13787 "\n"
13788 msgstr ""
13789
13790 #. type: textblock
13791 #: ../fish/guestfish-actions.pod:4485 ../src/guestfs-actions.pod:6738
13792 msgid "This is the same as the C<stat(2)> system call."
13793 msgstr ""
13794
13795 #. type: =head2
13796 #: ../fish/guestfish-actions.pod:4487
13797 msgid "statvfs"
13798 msgstr ""
13799
13800 #. type: verbatim
13801 #: ../fish/guestfish-actions.pod:4489
13802 #, no-wrap
13803 msgid ""
13804 " statvfs path\n"
13805 "\n"
13806 msgstr ""
13807
13808 #. type: textblock
13809 #: ../fish/guestfish-actions.pod:4491 ../src/guestfs-actions.pod:6752
13810 msgid ""
13811 "Returns file system statistics for any mounted file system.  C<path> should "
13812 "be a file or directory in the mounted file system (typically it is the mount "
13813 "point itself, but it doesn't need to be)."
13814 msgstr ""
13815
13816 #. type: textblock
13817 #: ../fish/guestfish-actions.pod:4495 ../src/guestfs-actions.pod:6756
13818 msgid "This is the same as the C<statvfs(2)> system call."
13819 msgstr ""
13820
13821 #. type: =head2
13822 #: ../fish/guestfish-actions.pod:4497
13823 msgid "strings"
13824 msgstr ""
13825
13826 #. type: verbatim
13827 #: ../fish/guestfish-actions.pod:4499
13828 #, no-wrap
13829 msgid ""
13830 " strings path\n"
13831 "\n"
13832 msgstr ""
13833
13834 #. type: textblock
13835 #: ../fish/guestfish-actions.pod:4501 ../src/guestfs-actions.pod:6770
13836 msgid ""
13837 "This runs the L<strings(1)> command on a file and returns the list of "
13838 "printable strings found."
13839 msgstr ""
13840
13841 #. type: =head2
13842 #: ../fish/guestfish-actions.pod:4507
13843 msgid "strings-e"
13844 msgstr ""
13845
13846 #. type: verbatim
13847 #: ../fish/guestfish-actions.pod:4509
13848 #, no-wrap
13849 msgid ""
13850 " strings-e encoding path\n"
13851 "\n"
13852 msgstr ""
13853
13854 #. type: textblock
13855 #: ../fish/guestfish-actions.pod:4511
13856 msgid ""
13857 "This is like the L</strings> command, but allows you to specify the encoding "
13858 "of strings that are looked for in the source file C<path>."
13859 msgstr ""
13860
13861 #. type: textblock
13862 #: ../fish/guestfish-actions.pod:4515 ../src/guestfs-actions.pod:6793
13863 msgid "Allowed encodings are:"
13864 msgstr ""
13865
13866 #. type: =item
13867 #: ../fish/guestfish-actions.pod:4519 ../src/guestfs-actions.pod:6797
13868 msgid "s"
13869 msgstr ""
13870
13871 #. type: textblock
13872 #: ../fish/guestfish-actions.pod:4521
13873 msgid ""
13874 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
13875 "ISO-8859-X (this is what L</strings> uses)."
13876 msgstr ""
13877
13878 #. type: =item
13879 #: ../fish/guestfish-actions.pod:4524 ../src/guestfs-actions.pod:6802
13880 msgid "S"
13881 msgstr ""
13882
13883 #. type: textblock
13884 #: ../fish/guestfish-actions.pod:4526 ../src/guestfs-actions.pod:6804
13885 msgid "Single 8-bit-byte characters."
13886 msgstr ""
13887
13888 #. type: =item
13889 #: ../fish/guestfish-actions.pod:4528 ../src/guestfs-actions.pod:6806
13890 msgid "b"
13891 msgstr ""
13892
13893 #. type: textblock
13894 #: ../fish/guestfish-actions.pod:4530 ../src/guestfs-actions.pod:6808
13895 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
13896 msgstr ""
13897
13898 #. type: =item
13899 #: ../fish/guestfish-actions.pod:4533 ../src/guestfs-actions.pod:6811
13900 msgid "l (lower case letter L)"
13901 msgstr ""
13902
13903 #. type: textblock
13904 #: ../fish/guestfish-actions.pod:4535 ../src/guestfs-actions.pod:6813
13905 msgid ""
13906 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
13907 "examining binaries in Windows guests."
13908 msgstr ""
13909
13910 #. type: =item
13911 #: ../fish/guestfish-actions.pod:4538 ../src/guestfs-actions.pod:6816
13912 msgid "B"
13913 msgstr ""
13914
13915 #. type: textblock
13916 #: ../fish/guestfish-actions.pod:4540 ../src/guestfs-actions.pod:6818
13917 msgid "32-bit big endian such as UCS-4BE."
13918 msgstr ""
13919
13920 #. type: =item
13921 #: ../fish/guestfish-actions.pod:4542 ../src/guestfs-actions.pod:6820
13922 msgid "L"
13923 msgstr ""
13924
13925 #. type: textblock
13926 #: ../fish/guestfish-actions.pod:4544 ../src/guestfs-actions.pod:6822
13927 msgid "32-bit little endian such as UCS-4LE."
13928 msgstr ""
13929
13930 #. type: textblock
13931 #: ../fish/guestfish-actions.pod:4548 ../src/guestfs-actions.pod:6826
13932 msgid "The returned strings are transcoded to UTF-8."
13933 msgstr ""
13934
13935 #. type: =head2
13936 #: ../fish/guestfish-actions.pod:4553
13937 msgid "swapoff-device"
13938 msgstr ""
13939
13940 #. type: verbatim
13941 #: ../fish/guestfish-actions.pod:4555
13942 #, no-wrap
13943 msgid ""
13944 " swapoff-device device\n"
13945 "\n"
13946 msgstr ""
13947
13948 #. type: textblock
13949 #: ../fish/guestfish-actions.pod:4557
13950 msgid ""
13951 "This command disables the libguestfs appliance swap device or partition "
13952 "named C<device>.  See L</swapon-device>."
13953 msgstr ""
13954
13955 #. type: =head2
13956 #: ../fish/guestfish-actions.pod:4561
13957 msgid "swapoff-file"
13958 msgstr ""
13959
13960 #. type: verbatim
13961 #: ../fish/guestfish-actions.pod:4563
13962 #, no-wrap
13963 msgid ""
13964 " swapoff-file file\n"
13965 "\n"
13966 msgstr ""
13967
13968 #. type: textblock
13969 #: ../fish/guestfish-actions.pod:4565 ../src/guestfs-actions.pod:6857
13970 msgid "This command disables the libguestfs appliance swap on file."
13971 msgstr ""
13972
13973 #. type: =head2
13974 #: ../fish/guestfish-actions.pod:4567
13975 msgid "swapoff-label"
13976 msgstr ""
13977
13978 #. type: verbatim
13979 #: ../fish/guestfish-actions.pod:4569
13980 #, no-wrap
13981 msgid ""
13982 " swapoff-label label\n"
13983 "\n"
13984 msgstr ""
13985
13986 #. type: textblock
13987 #: ../fish/guestfish-actions.pod:4571 ../src/guestfs-actions.pod:6869
13988 msgid ""
13989 "This command disables the libguestfs appliance swap on labeled swap "
13990 "partition."
13991 msgstr ""
13992
13993 #. type: =head2
13994 #: ../fish/guestfish-actions.pod:4574
13995 msgid "swapoff-uuid"
13996 msgstr ""
13997
13998 #. type: verbatim
13999 #: ../fish/guestfish-actions.pod:4576
14000 #, no-wrap
14001 msgid ""
14002 " swapoff-uuid uuid\n"
14003 "\n"
14004 msgstr ""
14005
14006 #. type: textblock
14007 #: ../fish/guestfish-actions.pod:4578 ../src/guestfs-actions.pod:6882
14008 msgid ""
14009 "This command disables the libguestfs appliance swap partition with the given "
14010 "UUID."
14011 msgstr ""
14012
14013 #. type: =head2
14014 #: ../fish/guestfish-actions.pod:4581
14015 msgid "swapon-device"
14016 msgstr ""
14017
14018 #. type: verbatim
14019 #: ../fish/guestfish-actions.pod:4583
14020 #, no-wrap
14021 msgid ""
14022 " swapon-device device\n"
14023 "\n"
14024 msgstr ""
14025
14026 #. type: textblock
14027 #: ../fish/guestfish-actions.pod:4585
14028 msgid ""
14029 "This command enables the libguestfs appliance to use the swap device or "
14030 "partition named C<device>.  The increased memory is made available for all "
14031 "commands, for example those run using L</command> or L</sh>."
14032 msgstr ""
14033
14034 #. type: textblock
14035 #: ../fish/guestfish-actions.pod:4590 ../src/guestfs-actions.pod:6900
14036 msgid ""
14037 "Note that you should not swap to existing guest swap partitions unless you "
14038 "know what you are doing.  They may contain hibernation information, or other "
14039 "information that the guest doesn't want you to trash.  You also risk leaking "
14040 "information about the host to the guest this way.  Instead, attach a new "
14041 "host device to the guest and swap on that."
14042 msgstr ""
14043
14044 #. type: =head2
14045 #: ../fish/guestfish-actions.pod:4597
14046 msgid "swapon-file"
14047 msgstr ""
14048
14049 #. type: verbatim
14050 #: ../fish/guestfish-actions.pod:4599
14051 #, no-wrap
14052 msgid ""
14053 " swapon-file file\n"
14054 "\n"
14055 msgstr ""
14056
14057 #. type: textblock
14058 #: ../fish/guestfish-actions.pod:4601
14059 msgid ""
14060 "This command enables swap to a file.  See L</swapon-device> for other notes."
14061 msgstr ""
14062
14063 #. type: =head2
14064 #: ../fish/guestfish-actions.pod:4604
14065 msgid "swapon-label"
14066 msgstr ""
14067
14068 #. type: verbatim
14069 #: ../fish/guestfish-actions.pod:4606
14070 #, no-wrap
14071 msgid ""
14072 " swapon-label label\n"
14073 "\n"
14074 msgstr ""
14075
14076 #. type: textblock
14077 #: ../fish/guestfish-actions.pod:4608
14078 msgid ""
14079 "This command enables swap to a labeled swap partition.  See L</swapon-"
14080 "device> for other notes."
14081 msgstr ""
14082
14083 #. type: =head2
14084 #: ../fish/guestfish-actions.pod:4611
14085 msgid "swapon-uuid"
14086 msgstr ""
14087
14088 #. type: verbatim
14089 #: ../fish/guestfish-actions.pod:4613
14090 #, no-wrap
14091 msgid ""
14092 " swapon-uuid uuid\n"
14093 "\n"
14094 msgstr ""
14095
14096 #. type: textblock
14097 #: ../fish/guestfish-actions.pod:4615
14098 msgid ""
14099 "This command enables swap to a swap partition with the given UUID.  See L</"
14100 "swapon-device> for other notes."
14101 msgstr ""
14102
14103 #. type: =head2
14104 #: ../fish/guestfish-actions.pod:4618
14105 msgid "sync"
14106 msgstr ""
14107
14108 #. type: verbatim
14109 #: ../fish/guestfish-actions.pod:4620
14110 #, no-wrap
14111 msgid ""
14112 " sync\n"
14113 "\n"
14114 msgstr ""
14115
14116 #. type: textblock
14117 #: ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:6955
14118 msgid ""
14119 "This syncs the disk, so that any writes are flushed through to the "
14120 "underlying disk image."
14121 msgstr ""
14122
14123 #. type: textblock
14124 #: ../fish/guestfish-actions.pod:4625 ../src/guestfs-actions.pod:6958
14125 msgid ""
14126 "You should always call this if you have modified a disk image, before "
14127 "closing the handle."
14128 msgstr ""
14129
14130 #. type: =head2
14131 #: ../fish/guestfish-actions.pod:4628
14132 msgid "tail"
14133 msgstr ""
14134
14135 #. type: verbatim
14136 #: ../fish/guestfish-actions.pod:4630
14137 #, no-wrap
14138 msgid ""
14139 " tail path\n"
14140 "\n"
14141 msgstr ""
14142
14143 #. type: textblock
14144 #: ../fish/guestfish-actions.pod:4632 ../src/guestfs-actions.pod:6971
14145 msgid ""
14146 "This command returns up to the last 10 lines of a file as a list of strings."
14147 msgstr ""
14148
14149 #. type: =head2
14150 #: ../fish/guestfish-actions.pod:4638
14151 msgid "tail-n"
14152 msgstr ""
14153
14154 #. type: verbatim
14155 #: ../fish/guestfish-actions.pod:4640
14156 #, no-wrap
14157 msgid ""
14158 " tail-n nrlines path\n"
14159 "\n"
14160 msgstr ""
14161
14162 #. type: textblock
14163 #: ../fish/guestfish-actions.pod:4642 ../src/guestfs-actions.pod:6990
14164 msgid ""
14165 "If the parameter C<nrlines> is a positive number, this returns the last "
14166 "C<nrlines> lines of the file C<path>."
14167 msgstr ""
14168
14169 #. type: textblock
14170 #: ../fish/guestfish-actions.pod:4645 ../src/guestfs-actions.pod:6993
14171 msgid ""
14172 "If the parameter C<nrlines> is a negative number, this returns lines from "
14173 "the file C<path>, starting with the C<-nrlines>th line."
14174 msgstr ""
14175
14176 #. type: =head2
14177 #: ../fish/guestfish-actions.pod:4653
14178 msgid "tar-in"
14179 msgstr ""
14180
14181 #. type: verbatim
14182 #: ../fish/guestfish-actions.pod:4655
14183 #, no-wrap
14184 msgid ""
14185 " tar-in (tarfile|-) directory\n"
14186 "\n"
14187 msgstr ""
14188
14189 #. type: textblock
14190 #: ../fish/guestfish-actions.pod:4657 ../src/guestfs-actions.pod:7014
14191 msgid ""
14192 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14193 "tar file) into C<directory>."
14194 msgstr ""
14195
14196 #. type: textblock
14197 #: ../fish/guestfish-actions.pod:4660
14198 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
14199 msgstr ""
14200
14201 #. type: =head2
14202 #: ../fish/guestfish-actions.pod:4665
14203 msgid "tar-out"
14204 msgstr ""
14205
14206 #. type: verbatim
14207 #: ../fish/guestfish-actions.pod:4667
14208 #, no-wrap
14209 msgid ""
14210 " tar-out directory (tarfile|-)\n"
14211 "\n"
14212 msgstr ""
14213
14214 #. type: textblock
14215 #: ../fish/guestfish-actions.pod:4669 ../src/guestfs-actions.pod:7031
14216 msgid ""
14217 "This command packs the contents of C<directory> and downloads it to local "
14218 "file C<tarfile>."
14219 msgstr ""
14220
14221 #. type: textblock
14222 #: ../fish/guestfish-actions.pod:4672
14223 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
14224 msgstr ""
14225
14226 #. type: =head2
14227 #: ../fish/guestfish-actions.pod:4677
14228 msgid "tgz-in"
14229 msgstr ""
14230
14231 #. type: verbatim
14232 #: ../fish/guestfish-actions.pod:4679
14233 #, no-wrap
14234 msgid ""
14235 " tgz-in (tarball|-) directory\n"
14236 "\n"
14237 msgstr ""
14238
14239 #. type: textblock
14240 #: ../fish/guestfish-actions.pod:4681 ../src/guestfs-actions.pod:7048
14241 msgid ""
14242 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14243 "tar file) into C<directory>."
14244 msgstr ""
14245
14246 #. type: textblock
14247 #: ../fish/guestfish-actions.pod:4684
14248 msgid "To upload an uncompressed tarball, use L</tar-in>."
14249 msgstr ""
14250
14251 #. type: =head2
14252 #: ../fish/guestfish-actions.pod:4688
14253 msgid "tgz-out"
14254 msgstr ""
14255
14256 #. type: verbatim
14257 #: ../fish/guestfish-actions.pod:4690
14258 #, no-wrap
14259 msgid ""
14260 " tgz-out directory (tarball|-)\n"
14261 "\n"
14262 msgstr ""
14263
14264 #. type: textblock
14265 #: ../fish/guestfish-actions.pod:4692 ../src/guestfs-actions.pod:7064
14266 msgid ""
14267 "This command packs the contents of C<directory> and downloads it to local "
14268 "file C<tarball>."
14269 msgstr ""
14270
14271 #. type: textblock
14272 #: ../fish/guestfish-actions.pod:4695
14273 msgid "To download an uncompressed tarball, use L</tar-out>."
14274 msgstr ""
14275
14276 #. type: =head2
14277 #: ../fish/guestfish-actions.pod:4699
14278 msgid "touch"
14279 msgstr ""
14280
14281 #. type: verbatim
14282 #: ../fish/guestfish-actions.pod:4701
14283 #, no-wrap
14284 msgid ""
14285 " touch path\n"
14286 "\n"
14287 msgstr ""
14288
14289 #. type: textblock
14290 #: ../fish/guestfish-actions.pod:4703 ../src/guestfs-actions.pod:7079
14291 msgid ""
14292 "Touch acts like the L<touch(1)> command.  It can be used to update the "
14293 "timestamps on a file, or, if the file does not exist, to create a new zero-"
14294 "length file."
14295 msgstr ""
14296
14297 #. type: textblock
14298 #: ../fish/guestfish-actions.pod:4707 ../src/guestfs-actions.pod:7083
14299 msgid ""
14300 "This command only works on regular files, and will fail on other file types "
14301 "such as directories, symbolic links, block special etc."
14302 msgstr ""
14303
14304 #. type: =head2
14305 #: ../fish/guestfish-actions.pod:4710
14306 msgid "truncate"
14307 msgstr ""
14308
14309 #. type: verbatim
14310 #: ../fish/guestfish-actions.pod:4712
14311 #, no-wrap
14312 msgid ""
14313 " truncate path\n"
14314 "\n"
14315 msgstr ""
14316
14317 #. type: textblock
14318 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7096
14319 msgid ""
14320 "This command truncates C<path> to a zero-length file.  The file must exist "
14321 "already."
14322 msgstr ""
14323
14324 #. type: =head2
14325 #: ../fish/guestfish-actions.pod:4717
14326 msgid "truncate-size"
14327 msgstr ""
14328
14329 #. type: verbatim
14330 #: ../fish/guestfish-actions.pod:4719
14331 #, no-wrap
14332 msgid ""
14333 " truncate-size path size\n"
14334 "\n"
14335 msgstr ""
14336
14337 #. type: textblock
14338 #: ../fish/guestfish-actions.pod:4721 ../src/guestfs-actions.pod:7110
14339 msgid ""
14340 "This command truncates C<path> to size C<size> bytes.  The file must exist "
14341 "already."
14342 msgstr ""
14343
14344 #. type: textblock
14345 #: ../fish/guestfish-actions.pod:4724
14346 msgid ""
14347 "If the current file size is less than C<size> then the file is extended to "
14348 "the required size with zero bytes.  This creates a sparse file (ie. disk "
14349 "blocks are not allocated for the file until you write to it).  To create a "
14350 "non-sparse file of zeroes, use L</fallocate64> instead."
14351 msgstr ""
14352
14353 #. type: =head2
14354 #: ../fish/guestfish-actions.pod:4730
14355 msgid "tune2fs-l"
14356 msgstr ""
14357
14358 #. type: verbatim
14359 #: ../fish/guestfish-actions.pod:4732
14360 #, no-wrap
14361 msgid ""
14362 " tune2fs-l device\n"
14363 "\n"
14364 msgstr ""
14365
14366 #. type: textblock
14367 #: ../fish/guestfish-actions.pod:4734 ../src/guestfs-actions.pod:7129
14368 msgid ""
14369 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
14370 "C<device>."
14371 msgstr ""
14372
14373 #. type: textblock
14374 #: ../fish/guestfish-actions.pod:4737 ../src/guestfs-actions.pod:7132
14375 msgid ""
14376 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
14377 "for more details.  The list of fields returned isn't clearly defined, and "
14378 "depends on both the version of C<tune2fs> that libguestfs was built against, "
14379 "and the filesystem itself."
14380 msgstr ""
14381
14382 #. type: =head2
14383 #: ../fish/guestfish-actions.pod:4742
14384 msgid "txz-in"
14385 msgstr ""
14386
14387 #. type: verbatim
14388 #: ../fish/guestfish-actions.pod:4744
14389 #, no-wrap
14390 msgid ""
14391 " txz-in (tarball|-) directory\n"
14392 "\n"
14393 msgstr ""
14394
14395 #. type: textblock
14396 #: ../fish/guestfish-actions.pod:4746 ../src/guestfs-actions.pod:7152
14397 msgid ""
14398 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
14399 "tar file) into C<directory>."
14400 msgstr ""
14401
14402 #. type: =head2
14403 #: ../fish/guestfish-actions.pod:4751
14404 msgid "txz-out"
14405 msgstr ""
14406
14407 #. type: verbatim
14408 #: ../fish/guestfish-actions.pod:4753
14409 #, no-wrap
14410 msgid ""
14411 " txz-out directory (tarball|-)\n"
14412 "\n"
14413 msgstr ""
14414
14415 #. type: textblock
14416 #: ../fish/guestfish-actions.pod:4755 ../src/guestfs-actions.pod:7166
14417 msgid ""
14418 "This command packs the contents of C<directory> and downloads it to local "
14419 "file C<tarball> (as an xz compressed tar archive)."
14420 msgstr ""
14421
14422 #. type: =head2
14423 #: ../fish/guestfish-actions.pod:4760
14424 msgid "umask"
14425 msgstr ""
14426
14427 #. type: verbatim
14428 #: ../fish/guestfish-actions.pod:4762
14429 #, no-wrap
14430 msgid ""
14431 " umask mask\n"
14432 "\n"
14433 msgstr ""
14434
14435 #. type: textblock
14436 #: ../fish/guestfish-actions.pod:4764 ../src/guestfs-actions.pod:7179
14437 msgid ""
14438 "This function sets the mask used for creating new files and device nodes to "
14439 "C<mask & 0777>."
14440 msgstr ""
14441
14442 #. type: textblock
14443 #: ../fish/guestfish-actions.pod:4767 ../src/guestfs-actions.pod:7182
14444 msgid ""
14445 "Typical umask values would be C<022> which creates new files with "
14446 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
14447 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
14448 msgstr ""
14449
14450 #. type: textblock
14451 #: ../fish/guestfish-actions.pod:4772 ../src/guestfs-actions.pod:7187
14452 msgid ""
14453 "The default umask is C<022>.  This is important because it means that "
14454 "directories and device nodes will be created with C<0644> or C<0755> mode "
14455 "even if you specify C<0777>."
14456 msgstr ""
14457
14458 #. type: textblock
14459 #: ../fish/guestfish-actions.pod:4776
14460 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
14461 msgstr ""
14462
14463 #. type: textblock
14464 #: ../fish/guestfish-actions.pod:4779 ../src/guestfs-actions.pod:7194
14465 msgid "This call returns the previous umask."
14466 msgstr ""
14467
14468 #. type: =head2
14469 #: ../fish/guestfish-actions.pod:4781
14470 msgid "umount"
14471 msgstr ""
14472
14473 #. type: =head2
14474 #: ../fish/guestfish-actions.pod:4783
14475 msgid "unmount"
14476 msgstr ""
14477
14478 #. type: verbatim
14479 #: ../fish/guestfish-actions.pod:4785
14480 #, no-wrap
14481 msgid ""
14482 " umount pathordevice\n"
14483 "\n"
14484 msgstr ""
14485
14486 #. type: textblock
14487 #: ../fish/guestfish-actions.pod:4787 ../src/guestfs-actions.pod:7206
14488 msgid ""
14489 "This unmounts the given filesystem.  The filesystem may be specified either "
14490 "by its mountpoint (path) or the device which contains the filesystem."
14491 msgstr ""
14492
14493 #. type: =head2
14494 #: ../fish/guestfish-actions.pod:4791
14495 msgid "umount-all"
14496 msgstr ""
14497
14498 #. type: =head2
14499 #: ../fish/guestfish-actions.pod:4793
14500 msgid "unmount-all"
14501 msgstr ""
14502
14503 #. type: verbatim
14504 #: ../fish/guestfish-actions.pod:4795
14505 #, no-wrap
14506 msgid ""
14507 " umount-all\n"
14508 "\n"
14509 msgstr ""
14510
14511 #. type: textblock
14512 #: ../fish/guestfish-actions.pod:4797 ../src/guestfs-actions.pod:7219
14513 msgid "This unmounts all mounted filesystems."
14514 msgstr ""
14515
14516 #. type: textblock
14517 #: ../fish/guestfish-actions.pod:4799 ../src/guestfs-actions.pod:7221
14518 msgid "Some internal mounts are not unmounted by this call."
14519 msgstr ""
14520
14521 #. type: =head2
14522 #: ../fish/guestfish-actions.pod:4801
14523 msgid "upload"
14524 msgstr ""
14525
14526 #. type: verbatim
14527 #: ../fish/guestfish-actions.pod:4803
14528 #, no-wrap
14529 msgid ""
14530 " upload (filename|-) remotefilename\n"
14531 "\n"
14532 msgstr ""
14533
14534 #. type: textblock
14535 #: ../fish/guestfish-actions.pod:4805 ../fish/guestfish-actions.pod:4818
14536 #: ../src/guestfs-actions.pod:7234 ../src/guestfs-actions.pod:7258
14537 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
14538 msgstr ""
14539
14540 #. type: textblock
14541 #: ../fish/guestfish-actions.pod:4810
14542 msgid "See also L</download>."
14543 msgstr ""
14544
14545 #. type: =head2
14546 #: ../fish/guestfish-actions.pod:4814
14547 msgid "upload-offset"
14548 msgstr ""
14549
14550 #. type: verbatim
14551 #: ../fish/guestfish-actions.pod:4816
14552 #, no-wrap
14553 msgid ""
14554 " upload-offset (filename|-) remotefilename offset\n"
14555 "\n"
14556 msgstr ""
14557
14558 #. type: textblock
14559 #: ../fish/guestfish-actions.pod:4821 ../src/guestfs-actions.pod:7261
14560 msgid ""
14561 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
14562 "The intention is to overwrite parts of existing files or devices, although "
14563 "if a non-existant file is specified then it is created with a \"hole\" "
14564 "before C<offset>.  The size of the data written is implicit in the size of "
14565 "the source C<filename>."
14566 msgstr ""
14567
14568 #. type: textblock
14569 #: ../fish/guestfish-actions.pod:4828
14570 msgid ""
14571 "Note that there is no limit on the amount of data that can be uploaded with "
14572 "this call, unlike with L</pwrite>, and this call always writes the full "
14573 "amount unless an error occurs."
14574 msgstr ""
14575
14576 #. type: textblock
14577 #: ../fish/guestfish-actions.pod:4833
14578 msgid "See also L</upload>, L</pwrite>."
14579 msgstr ""
14580
14581 #. type: =head2
14582 #: ../fish/guestfish-actions.pod:4837
14583 msgid "utimens"
14584 msgstr ""
14585
14586 #. type: verbatim
14587 #: ../fish/guestfish-actions.pod:4839
14588 #, no-wrap
14589 msgid ""
14590 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
14591 "\n"
14592 msgstr ""
14593
14594 #. type: textblock
14595 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7294
14596 msgid "This command sets the timestamps of a file with nanosecond precision."
14597 msgstr ""
14598
14599 #. type: textblock
14600 #: ../fish/guestfish-actions.pod:4844 ../src/guestfs-actions.pod:7297
14601 msgid ""
14602 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
14603 "from the epoch."
14604 msgstr ""
14605
14606 #. type: textblock
14607 #: ../fish/guestfish-actions.pod:4847 ../src/guestfs-actions.pod:7300
14608 msgid ""
14609 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
14610 "nanoseconds from the epoch."
14611 msgstr ""
14612
14613 #. type: textblock
14614 #: ../fish/guestfish-actions.pod:4850 ../src/guestfs-actions.pod:7303
14615 msgid ""
14616 "If the C<*nsecs> field contains the special value C<-1> then the "
14617 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
14618 "ignored in this case)."
14619 msgstr ""
14620
14621 #. type: textblock
14622 #: ../fish/guestfish-actions.pod:4854 ../src/guestfs-actions.pod:7307
14623 msgid ""
14624 "If the C<*nsecs> field contains the special value C<-2> then the "
14625 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
14626 "in this case)."
14627 msgstr ""
14628
14629 #. type: =head2
14630 #: ../fish/guestfish-actions.pod:4858
14631 msgid "version"
14632 msgstr ""
14633
14634 #. type: verbatim
14635 #: ../fish/guestfish-actions.pod:4860
14636 #, no-wrap
14637 msgid ""
14638 " version\n"
14639 "\n"
14640 msgstr ""
14641
14642 #. type: textblock
14643 #: ../fish/guestfish-actions.pod:4862 ../src/guestfs-actions.pod:7320
14644 msgid ""
14645 "Return the libguestfs version number that the program is linked against."
14646 msgstr ""
14647
14648 #. type: textblock
14649 #: ../fish/guestfish-actions.pod:4865 ../src/guestfs-actions.pod:7323
14650 msgid ""
14651 "Note that because of dynamic linking this is not necessarily the version of "
14652 "libguestfs that you compiled against.  You can compile the program, and then "
14653 "at runtime dynamically link against a completely different C<libguestfs.so> "
14654 "library."
14655 msgstr ""
14656
14657 #. type: textblock
14658 #: ../fish/guestfish-actions.pod:4870 ../src/guestfs-actions.pod:7328
14659 msgid ""
14660 "This call was added in version C<1.0.58>.  In previous versions of "
14661 "libguestfs there was no way to get the version number.  From C code you can "
14662 "use dynamic linker functions to find out if this symbol exists (if it "
14663 "doesn't, then it's an earlier version)."
14664 msgstr ""
14665
14666 #. type: textblock
14667 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7334
14668 msgid ""
14669 "The call returns a structure with four elements.  The first three (C<major>, "
14670 "C<minor> and C<release>) are numbers and correspond to the usual version "
14671 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
14672 "but may be used for distro-specific information."
14673 msgstr ""
14674
14675 #. type: textblock
14676 #: ../fish/guestfish-actions.pod:4882 ../src/guestfs-actions.pod:7340
14677 msgid ""
14678 "To construct the original version string: C<$major.$minor.$release$extra>"
14679 msgstr ""
14680
14681 #. type: textblock
14682 #: ../fish/guestfish-actions.pod:4885 ../src/guestfs-actions.pod:7343
14683 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
14684 msgstr ""
14685
14686 #. type: textblock
14687 #: ../fish/guestfish-actions.pod:4887
14688 msgid ""
14689 "I<Note:> Don't use this call to test for availability of features.  In "
14690 "enterprise distributions we backport features from later versions into "
14691 "earlier versions, making this an unreliable way to test for features.  Use "
14692 "L</available> instead."
14693 msgstr ""
14694
14695 #. type: =head2
14696 #: ../fish/guestfish-actions.pod:4893
14697 msgid "vfs-label"
14698 msgstr ""
14699
14700 #. type: verbatim
14701 #: ../fish/guestfish-actions.pod:4895
14702 #, no-wrap
14703 msgid ""
14704 " vfs-label device\n"
14705 "\n"
14706 msgstr ""
14707
14708 #. type: textblock
14709 #: ../fish/guestfish-actions.pod:4897 ../src/guestfs-actions.pod:7363
14710 msgid "This returns the filesystem label of the filesystem on C<device>."
14711 msgstr ""
14712
14713 #. type: textblock
14714 #: ../fish/guestfish-actions.pod:4900 ../src/guestfs-actions.pod:7366
14715 msgid "If the filesystem is unlabeled, this returns the empty string."
14716 msgstr ""
14717
14718 #. type: textblock
14719 #: ../fish/guestfish-actions.pod:4902
14720 msgid "To find a filesystem from the label, use L</findfs-label>."
14721 msgstr ""
14722
14723 #. type: =head2
14724 #: ../fish/guestfish-actions.pod:4904
14725 msgid "vfs-type"
14726 msgstr ""
14727
14728 #. type: verbatim
14729 #: ../fish/guestfish-actions.pod:4906
14730 #, no-wrap
14731 msgid ""
14732 " vfs-type device\n"
14733 "\n"
14734 msgstr ""
14735
14736 #. type: textblock
14737 #: ../fish/guestfish-actions.pod:4908 ../src/guestfs-actions.pod:7381
14738 msgid ""
14739 "This command gets the filesystem type corresponding to the filesystem on "
14740 "C<device>."
14741 msgstr ""
14742
14743 #. type: textblock
14744 #: ../fish/guestfish-actions.pod:4911 ../src/guestfs-actions.pod:7384
14745 msgid ""
14746 "For most filesystems, the result is the name of the Linux VFS module which "
14747 "would be used to mount this filesystem if you mounted it without specifying "
14748 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
14749 msgstr ""
14750
14751 #. type: =head2
14752 #: ../fish/guestfish-actions.pod:4916
14753 msgid "vfs-uuid"
14754 msgstr ""
14755
14756 #. type: verbatim
14757 #: ../fish/guestfish-actions.pod:4918
14758 #, no-wrap
14759 msgid ""
14760 " vfs-uuid device\n"
14761 "\n"
14762 msgstr ""
14763
14764 #. type: textblock
14765 #: ../fish/guestfish-actions.pod:4920 ../src/guestfs-actions.pod:7400
14766 msgid "This returns the filesystem UUID of the filesystem on C<device>."
14767 msgstr ""
14768
14769 #. type: textblock
14770 #: ../fish/guestfish-actions.pod:4923 ../src/guestfs-actions.pod:7403
14771 msgid "If the filesystem does not have a UUID, this returns the empty string."
14772 msgstr ""
14773
14774 #. type: textblock
14775 #: ../fish/guestfish-actions.pod:4925
14776 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
14777 msgstr ""
14778
14779 #. type: =head2
14780 #: ../fish/guestfish-actions.pod:4927
14781 msgid "vg-activate"
14782 msgstr ""
14783
14784 #. type: verbatim
14785 #: ../fish/guestfish-actions.pod:4929
14786 #, no-wrap
14787 msgid ""
14788 " vg-activate true|false 'volgroups ...'\n"
14789 "\n"
14790 msgstr ""
14791
14792 #. type: textblock
14793 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7419
14794 msgid ""
14795 "This command activates or (if C<activate> is false) deactivates all logical "
14796 "volumes in the listed volume groups C<volgroups>."
14797 msgstr ""
14798
14799 #. type: textblock
14800 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7422
14801 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
14802 msgstr ""
14803
14804 #. type: textblock
14805 #: ../fish/guestfish-actions.pod:4936 ../src/guestfs-actions.pod:7424
14806 msgid ""
14807 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
14808 "activated or deactivated."
14809 msgstr ""
14810
14811 #. type: =head2
14812 #: ../fish/guestfish-actions.pod:4939
14813 msgid "vg-activate-all"
14814 msgstr ""
14815
14816 #. type: verbatim
14817 #: ../fish/guestfish-actions.pod:4941
14818 #, no-wrap
14819 msgid ""
14820 " vg-activate-all true|false\n"
14821 "\n"
14822 msgstr ""
14823
14824 #. type: textblock
14825 #: ../fish/guestfish-actions.pod:4943 ../src/guestfs-actions.pod:7437
14826 msgid ""
14827 "This command activates or (if C<activate> is false) deactivates all logical "
14828 "volumes in all volume groups."
14829 msgstr ""
14830
14831 #. type: textblock
14832 #: ../fish/guestfish-actions.pod:4946 ../src/guestfs-actions.pod:7440
14833 msgid "This command is the same as running C<vgchange -a y|n>"
14834 msgstr ""
14835
14836 #. type: =head2
14837 #: ../fish/guestfish-actions.pod:4948
14838 msgid "vgcreate"
14839 msgstr ""
14840
14841 #. type: verbatim
14842 #: ../fish/guestfish-actions.pod:4950
14843 #, no-wrap
14844 msgid ""
14845 " vgcreate volgroup 'physvols ...'\n"
14846 "\n"
14847 msgstr ""
14848
14849 #. type: textblock
14850 #: ../fish/guestfish-actions.pod:4952 ../src/guestfs-actions.pod:7453
14851 msgid ""
14852 "This creates an LVM volume group called C<volgroup> from the non-empty list "
14853 "of physical volumes C<physvols>."
14854 msgstr ""
14855
14856 #. type: =head2
14857 #: ../fish/guestfish-actions.pod:4955
14858 msgid "vglvuuids"
14859 msgstr ""
14860
14861 #. type: verbatim
14862 #: ../fish/guestfish-actions.pod:4957
14863 #, no-wrap
14864 msgid ""
14865 " vglvuuids vgname\n"
14866 "\n"
14867 msgstr ""
14868
14869 #. type: textblock
14870 #: ../fish/guestfish-actions.pod:4959 ../src/guestfs-actions.pod:7466
14871 msgid ""
14872 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
14873 "volumes created in this volume group."
14874 msgstr ""
14875
14876 #. type: textblock
14877 #: ../fish/guestfish-actions.pod:4962
14878 msgid ""
14879 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
14880 "logical volumes and volume groups."
14881 msgstr ""
14882
14883 #. type: textblock
14884 #: ../fish/guestfish-actions.pod:4965
14885 msgid "See also L</vgpvuuids>."
14886 msgstr ""
14887
14888 #. type: =head2
14889 #: ../fish/guestfish-actions.pod:4967
14890 msgid "vgpvuuids"
14891 msgstr ""
14892
14893 #. type: verbatim
14894 #: ../fish/guestfish-actions.pod:4969
14895 #, no-wrap
14896 msgid ""
14897 " vgpvuuids vgname\n"
14898 "\n"
14899 msgstr ""
14900
14901 #. type: textblock
14902 #: ../fish/guestfish-actions.pod:4971 ../src/guestfs-actions.pod:7486
14903 msgid ""
14904 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
14905 "volumes that this volume group resides on."
14906 msgstr ""
14907
14908 #. type: textblock
14909 #: ../fish/guestfish-actions.pod:4974
14910 msgid ""
14911 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
14912 "physical volumes and volume groups."
14913 msgstr ""
14914
14915 #. type: textblock
14916 #: ../fish/guestfish-actions.pod:4977
14917 msgid "See also L</vglvuuids>."
14918 msgstr ""
14919
14920 #. type: =head2
14921 #: ../fish/guestfish-actions.pod:4979
14922 msgid "vgremove"
14923 msgstr ""
14924
14925 #. type: verbatim
14926 #: ../fish/guestfish-actions.pod:4981
14927 #, no-wrap
14928 msgid ""
14929 " vgremove vgname\n"
14930 "\n"
14931 msgstr ""
14932
14933 #. type: textblock
14934 #: ../fish/guestfish-actions.pod:4983 ../src/guestfs-actions.pod:7506
14935 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
14936 msgstr ""
14937
14938 #. type: textblock
14939 #: ../fish/guestfish-actions.pod:4985 ../src/guestfs-actions.pod:7508
14940 msgid ""
14941 "This also forcibly removes all logical volumes in the volume group (if any)."
14942 msgstr ""
14943
14944 #. type: =head2
14945 #: ../fish/guestfish-actions.pod:4988
14946 msgid "vgrename"
14947 msgstr ""
14948
14949 #. type: verbatim
14950 #: ../fish/guestfish-actions.pod:4990
14951 #, no-wrap
14952 msgid ""
14953 " vgrename volgroup newvolgroup\n"
14954 "\n"
14955 msgstr ""
14956
14957 #. type: textblock
14958 #: ../fish/guestfish-actions.pod:4992 ../src/guestfs-actions.pod:7522
14959 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
14960 msgstr ""
14961
14962 #. type: =head2
14963 #: ../fish/guestfish-actions.pod:4994
14964 msgid "vgs"
14965 msgstr ""
14966
14967 #. type: verbatim
14968 #: ../fish/guestfish-actions.pod:4996
14969 #, no-wrap
14970 msgid ""
14971 " vgs\n"
14972 "\n"
14973 msgstr ""
14974
14975 #. type: textblock
14976 #: ../fish/guestfish-actions.pod:4998 ../src/guestfs-actions.pod:7533
14977 msgid ""
14978 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
14979 "> command."
14980 msgstr ""
14981
14982 #. type: textblock
14983 #: ../fish/guestfish-actions.pod:5001 ../src/guestfs-actions.pod:7536
14984 msgid ""
14985 "This returns a list of just the volume group names that were detected (eg. "
14986 "C<VolGroup00>)."
14987 msgstr ""
14988
14989 #. type: textblock
14990 #: ../fish/guestfish-actions.pod:5004
14991 msgid "See also L</vgs-full>."
14992 msgstr ""
14993
14994 #. type: =head2
14995 #: ../fish/guestfish-actions.pod:5006
14996 msgid "vgs-full"
14997 msgstr ""
14998
14999 #. type: verbatim
15000 #: ../fish/guestfish-actions.pod:5008
15001 #, no-wrap
15002 msgid ""
15003 " vgs-full\n"
15004 "\n"
15005 msgstr ""
15006
15007 #. type: textblock
15008 #: ../fish/guestfish-actions.pod:5010 ../src/guestfs-actions.pod:7552
15009 msgid ""
15010 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15011 "> command.  The \"full\" version includes all fields."
15012 msgstr ""
15013
15014 #. type: =head2
15015 #: ../fish/guestfish-actions.pod:5013
15016 msgid "vgscan"
15017 msgstr ""
15018
15019 #. type: verbatim
15020 #: ../fish/guestfish-actions.pod:5015
15021 #, no-wrap
15022 msgid ""
15023 " vgscan\n"
15024 "\n"
15025 msgstr ""
15026
15027 #. type: textblock
15028 #: ../fish/guestfish-actions.pod:5017 ../src/guestfs-actions.pod:7566
15029 msgid ""
15030 "This rescans all block devices and rebuilds the list of LVM physical "
15031 "volumes, volume groups and logical volumes."
15032 msgstr ""
15033
15034 #. type: =head2
15035 #: ../fish/guestfish-actions.pod:5020
15036 msgid "vguuid"
15037 msgstr ""
15038
15039 #. type: verbatim
15040 #: ../fish/guestfish-actions.pod:5022
15041 #, no-wrap
15042 msgid ""
15043 " vguuid vgname\n"
15044 "\n"
15045 msgstr ""
15046
15047 #. type: textblock
15048 #: ../fish/guestfish-actions.pod:5024 ../src/guestfs-actions.pod:7579
15049 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15050 msgstr ""
15051
15052 #. type: =head2
15053 #: ../fish/guestfish-actions.pod:5026
15054 msgid "wc-c"
15055 msgstr ""
15056
15057 #. type: verbatim
15058 #: ../fish/guestfish-actions.pod:5028
15059 #, no-wrap
15060 msgid ""
15061 " wc-c path\n"
15062 "\n"
15063 msgstr ""
15064
15065 #. type: textblock
15066 #: ../fish/guestfish-actions.pod:5030 ../src/guestfs-actions.pod:7619
15067 msgid ""
15068 "This command counts the characters in a file, using the C<wc -c> external "
15069 "command."
15070 msgstr ""
15071
15072 #. type: =head2
15073 #: ../fish/guestfish-actions.pod:5033
15074 msgid "wc-l"
15075 msgstr ""
15076
15077 #. type: verbatim
15078 #: ../fish/guestfish-actions.pod:5035
15079 #, no-wrap
15080 msgid ""
15081 " wc-l path\n"
15082 "\n"
15083 msgstr ""
15084
15085 #. type: textblock
15086 #: ../fish/guestfish-actions.pod:5037 ../src/guestfs-actions.pod:7632
15087 msgid ""
15088 "This command counts the lines in a file, using the C<wc -l> external command."
15089 msgstr ""
15090
15091 #. type: =head2
15092 #: ../fish/guestfish-actions.pod:5040
15093 msgid "wc-w"
15094 msgstr ""
15095
15096 #. type: verbatim
15097 #: ../fish/guestfish-actions.pod:5042
15098 #, no-wrap
15099 msgid ""
15100 " wc-w path\n"
15101 "\n"
15102 msgstr ""
15103
15104 #. type: textblock
15105 #: ../fish/guestfish-actions.pod:5044 ../src/guestfs-actions.pod:7645
15106 msgid ""
15107 "This command counts the words in a file, using the C<wc -w> external command."
15108 msgstr ""
15109
15110 #. type: =head2
15111 #: ../fish/guestfish-actions.pod:5047
15112 msgid "write"
15113 msgstr ""
15114
15115 #. type: verbatim
15116 #: ../fish/guestfish-actions.pod:5049
15117 #, no-wrap
15118 msgid ""
15119 " write path content\n"
15120 "\n"
15121 msgstr ""
15122
15123 #. type: textblock
15124 #: ../fish/guestfish-actions.pod:5051 ../src/guestfs-actions.pod:7660
15125 msgid ""
15126 "This call creates a file called C<path>.  The content of the file is the "
15127 "string C<content> (which can contain any 8 bit data)."
15128 msgstr ""
15129
15130 #. type: textblock
15131 #: ../fish/guestfish-actions.pod:5054
15132 msgid "See also L</write-append>."
15133 msgstr ""
15134
15135 #. type: =head2
15136 #: ../fish/guestfish-actions.pod:5059
15137 msgid "write-append"
15138 msgstr ""
15139
15140 #. type: verbatim
15141 #: ../fish/guestfish-actions.pod:5061
15142 #, no-wrap
15143 msgid ""
15144 " write-append path content\n"
15145 "\n"
15146 msgstr ""
15147
15148 #. type: textblock
15149 #: ../fish/guestfish-actions.pod:5063 ../src/guestfs-actions.pod:7680
15150 msgid ""
15151 "This call appends C<content> to the end of file C<path>.  If C<path> does "
15152 "not exist, then a new file is created."
15153 msgstr ""
15154
15155 #. type: textblock
15156 #: ../fish/guestfish-actions.pod:5066
15157 msgid "See also L</write>."
15158 msgstr ""
15159
15160 #. type: =head2
15161 #: ../fish/guestfish-actions.pod:5071
15162 msgid "write-file"
15163 msgstr ""
15164
15165 #. type: verbatim
15166 #: ../fish/guestfish-actions.pod:5073
15167 #, no-wrap
15168 msgid ""
15169 " write-file path content size\n"
15170 "\n"
15171 msgstr ""
15172
15173 #. type: textblock
15174 #: ../fish/guestfish-actions.pod:5075 ../src/guestfs-actions.pod:7707
15175 msgid ""
15176 "This call creates a file called C<path>.  The contents of the file is the "
15177 "string C<content> (which can contain any 8 bit data), with length C<size>."
15178 msgstr ""
15179
15180 #. type: textblock
15181 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7711
15182 msgid ""
15183 "As a special case, if C<size> is C<0> then the length is calculated using "
15184 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
15185 msgstr ""
15186
15187 #. type: textblock
15188 #: ../fish/guestfish-actions.pod:5083 ../src/guestfs-actions.pod:7715
15189 msgid ""
15190 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
15191 "I<not> work, even if the length is specified."
15192 msgstr ""
15193
15194 #. type: textblock
15195 #: ../fish/guestfish-actions.pod:5089
15196 msgid ""
15197 "I<This function is deprecated.> In new code, use the L</write> call instead."
15198 msgstr ""
15199
15200 #. type: =head2
15201 #: ../fish/guestfish-actions.pod:5096
15202 msgid "zegrep"
15203 msgstr ""
15204
15205 #. type: verbatim
15206 #: ../fish/guestfish-actions.pod:5098
15207 #, no-wrap
15208 msgid ""
15209 " zegrep regex path\n"
15210 "\n"
15211 msgstr ""
15212
15213 #. type: textblock
15214 #: ../fish/guestfish-actions.pod:5100 ../src/guestfs-actions.pod:7732
15215 msgid ""
15216 "This calls the external C<zegrep> program and returns the matching lines."
15217 msgstr ""
15218
15219 #. type: =head2
15220 #: ../fish/guestfish-actions.pod:5106
15221 msgid "zegrepi"
15222 msgstr ""
15223
15224 #. type: verbatim
15225 #: ../fish/guestfish-actions.pod:5108
15226 #, no-wrap
15227 msgid ""
15228 " zegrepi regex path\n"
15229 "\n"
15230 msgstr ""
15231
15232 #. type: textblock
15233 #: ../fish/guestfish-actions.pod:5110 ../src/guestfs-actions.pod:7751
15234 msgid ""
15235 "This calls the external C<zegrep -i> program and returns the matching lines."
15236 msgstr ""
15237
15238 #. type: =head2
15239 #: ../fish/guestfish-actions.pod:5116
15240 msgid "zero"
15241 msgstr ""
15242
15243 #. type: verbatim
15244 #: ../fish/guestfish-actions.pod:5118
15245 #, no-wrap
15246 msgid ""
15247 " zero device\n"
15248 "\n"
15249 msgstr ""
15250
15251 #. type: textblock
15252 #: ../fish/guestfish-actions.pod:5120 ../src/guestfs-actions.pod:7769
15253 msgid "This command writes zeroes over the first few blocks of C<device>."
15254 msgstr ""
15255
15256 #. type: textblock
15257 #: ../fish/guestfish-actions.pod:5122 ../src/guestfs-actions.pod:7771
15258 msgid ""
15259 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
15260 "securely wipe the device).  It should be sufficient to remove any partition "
15261 "tables, filesystem superblocks and so on."
15262 msgstr ""
15263
15264 #. type: textblock
15265 #: ../fish/guestfish-actions.pod:5126 ../fish/guestfish-actions.pod:5141
15266 #: ../src/guestfs-actions.pod:7775 ../src/guestfs-actions.pod:7801
15267 msgid ""
15268 "If blocks are already zero, then this command avoids writing zeroes.  This "
15269 "prevents the underlying device from becoming non-sparse or growing "
15270 "unnecessarily."
15271 msgstr ""
15272
15273 #. type: textblock
15274 #: ../fish/guestfish-actions.pod:5130
15275 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
15276 msgstr ""
15277
15278 #. type: =head2
15279 #: ../fish/guestfish-actions.pod:5133
15280 msgid "zero-device"
15281 msgstr ""
15282
15283 #. type: verbatim
15284 #: ../fish/guestfish-actions.pod:5135
15285 #, no-wrap
15286 msgid ""
15287 " zero-device device\n"
15288 "\n"
15289 msgstr ""
15290
15291 #. type: textblock
15292 #: ../fish/guestfish-actions.pod:5137
15293 msgid ""
15294 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
15295 "which just zeroes the first few blocks of a device."
15296 msgstr ""
15297
15298 #. type: =head2
15299 #: ../fish/guestfish-actions.pod:5148
15300 msgid "zerofree"
15301 msgstr ""
15302
15303 #. type: verbatim
15304 #: ../fish/guestfish-actions.pod:5150
15305 #, no-wrap
15306 msgid ""
15307 " zerofree device\n"
15308 "\n"
15309 msgstr ""
15310
15311 #. type: textblock
15312 #: ../fish/guestfish-actions.pod:5152 ../src/guestfs-actions.pod:7823
15313 msgid ""
15314 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
15315 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
15316 "possible to compress the filesystem more effectively."
15317 msgstr ""
15318
15319 #. type: textblock
15320 #: ../fish/guestfish-actions.pod:5157 ../src/guestfs-actions.pod:7828
15321 msgid "You should B<not> run this program if the filesystem is mounted."
15322 msgstr ""
15323
15324 #. type: textblock
15325 #: ../fish/guestfish-actions.pod:5160 ../src/guestfs-actions.pod:7831
15326 msgid ""
15327 "It is possible that using this program can damage the filesystem or data on "
15328 "the filesystem."
15329 msgstr ""
15330
15331 #. type: =head2
15332 #: ../fish/guestfish-actions.pod:5163
15333 msgid "zfgrep"
15334 msgstr ""
15335
15336 #. type: verbatim
15337 #: ../fish/guestfish-actions.pod:5165
15338 #, no-wrap
15339 msgid ""
15340 " zfgrep pattern path\n"
15341 "\n"
15342 msgstr ""
15343
15344 #. type: textblock
15345 #: ../fish/guestfish-actions.pod:5167 ../src/guestfs-actions.pod:7845
15346 msgid ""
15347 "This calls the external C<zfgrep> program and returns the matching lines."
15348 msgstr ""
15349
15350 #. type: =head2
15351 #: ../fish/guestfish-actions.pod:5173
15352 msgid "zfgrepi"
15353 msgstr ""
15354
15355 #. type: verbatim
15356 #: ../fish/guestfish-actions.pod:5175
15357 #, no-wrap
15358 msgid ""
15359 " zfgrepi pattern path\n"
15360 "\n"
15361 msgstr ""
15362
15363 #. type: textblock
15364 #: ../fish/guestfish-actions.pod:5177 ../src/guestfs-actions.pod:7864
15365 msgid ""
15366 "This calls the external C<zfgrep -i> program and returns the matching lines."
15367 msgstr ""
15368
15369 #. type: =head2
15370 #: ../fish/guestfish-actions.pod:5183
15371 msgid "zfile"
15372 msgstr ""
15373
15374 #. type: verbatim
15375 #: ../fish/guestfish-actions.pod:5185
15376 #, no-wrap
15377 msgid ""
15378 " zfile meth path\n"
15379 "\n"
15380 msgstr ""
15381
15382 #. type: textblock
15383 #: ../fish/guestfish-actions.pod:5187 ../src/guestfs-actions.pod:7890
15384 msgid ""
15385 "This command runs C<file> after first decompressing C<path> using C<method>."
15386 msgstr ""
15387
15388 #. type: textblock
15389 #: ../fish/guestfish-actions.pod:5190 ../src/guestfs-actions.pod:7893
15390 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
15391 msgstr ""
15392
15393 #. type: textblock
15394 #: ../fish/guestfish-actions.pod:5192
15395 msgid ""
15396 "Since 1.0.63, use L</file> instead which can now process compressed files."
15397 msgstr ""
15398
15399 #. type: textblock
15400 #: ../fish/guestfish-actions.pod:5195
15401 msgid ""
15402 "I<This function is deprecated.> In new code, use the L</file> call instead."
15403 msgstr ""
15404
15405 #. type: =head2
15406 #: ../fish/guestfish-actions.pod:5202
15407 msgid "zgrep"
15408 msgstr ""
15409
15410 #. type: verbatim
15411 #: ../fish/guestfish-actions.pod:5204
15412 #, no-wrap
15413 msgid ""
15414 " zgrep regex path\n"
15415 "\n"
15416 msgstr ""
15417
15418 #. type: textblock
15419 #: ../fish/guestfish-actions.pod:5206 ../src/guestfs-actions.pod:7910
15420 msgid ""
15421 "This calls the external C<zgrep> program and returns the matching lines."
15422 msgstr ""
15423
15424 #. type: =head2
15425 #: ../fish/guestfish-actions.pod:5212
15426 msgid "zgrepi"
15427 msgstr ""
15428
15429 #. type: verbatim
15430 #: ../fish/guestfish-actions.pod:5214
15431 #, no-wrap
15432 msgid ""
15433 " zgrepi regex path\n"
15434 "\n"
15435 msgstr ""
15436
15437 #. type: textblock
15438 #: ../fish/guestfish-actions.pod:5216 ../src/guestfs-actions.pod:7929
15439 msgid ""
15440 "This calls the external C<zgrep -i> program and returns the matching lines."
15441 msgstr ""
15442
15443 #. type: =head2
15444 #: ../fish/guestfish-commands.pod:1
15445 msgid "alloc"
15446 msgstr ""
15447
15448 #. type: =head2
15449 #: ../fish/guestfish-commands.pod:3
15450 msgid "allocate"
15451 msgstr ""
15452
15453 #. type: verbatim
15454 #: ../fish/guestfish-commands.pod:5
15455 #, no-wrap
15456 msgid ""
15457 " alloc filename size\n"
15458 "\n"
15459 msgstr ""
15460
15461 #. type: textblock
15462 #: ../fish/guestfish-commands.pod:7
15463 msgid ""
15464 "This creates an empty (zeroed) file of the given size, and then adds so it "
15465 "can be further examined."
15466 msgstr ""
15467
15468 #. type: textblock
15469 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
15470 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
15471 msgstr ""
15472
15473 #. type: textblock
15474 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
15475 msgid "Size can be specified using standard suffixes, eg. C<1M>."
15476 msgstr ""
15477
15478 #. type: textblock
15479 #: ../fish/guestfish-commands.pod:14
15480 msgid ""
15481 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
15482 "image, see L</PREPARED DISK IMAGES>."
15483 msgstr ""
15484
15485 #. type: =head2
15486 #: ../fish/guestfish-commands.pod:17
15487 msgid "copy-in"
15488 msgstr ""
15489
15490 #. type: verbatim
15491 #: ../fish/guestfish-commands.pod:19
15492 #, no-wrap
15493 msgid ""
15494 " copy-in local [local ...] /remotedir\n"
15495 "\n"
15496 msgstr ""
15497
15498 #. type: textblock
15499 #: ../fish/guestfish-commands.pod:21
15500 msgid ""
15501 "C<copy-in> copies local files or directories recursively into the disk "
15502 "image, placing them in the directory called C</remotedir> (which must "
15503 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
15504 "other commands as necessary."
15505 msgstr ""
15506
15507 #. type: textblock
15508 #: ../fish/guestfish-commands.pod:26
15509 msgid ""
15510 "Multiple local files and directories can be specified, but the last "
15511 "parameter must always be a remote directory.  Wildcards cannot be used."
15512 msgstr ""
15513
15514 #. type: =head2
15515 #: ../fish/guestfish-commands.pod:30
15516 msgid "copy-out"
15517 msgstr ""
15518
15519 #. type: verbatim
15520 #: ../fish/guestfish-commands.pod:32
15521 #, no-wrap
15522 msgid ""
15523 " copy-out remote [remote ...] localdir\n"
15524 "\n"
15525 msgstr ""
15526
15527 #. type: textblock
15528 #: ../fish/guestfish-commands.pod:34
15529 msgid ""
15530 "C<copy-out> copies remote files or directories recursively out of the disk "
15531 "image, placing them on the host disk in a local directory called C<localdir> "
15532 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
15533 "download>, L</tar-out> and other commands as necessary."
15534 msgstr ""
15535
15536 #. type: textblock
15537 #: ../fish/guestfish-commands.pod:40
15538 msgid ""
15539 "Multiple remote files and directories can be specified, but the last "
15540 "parameter must always be a local directory.  To download to the current "
15541 "directory, use C<.> as in:"
15542 msgstr ""
15543
15544 #. type: verbatim
15545 #: ../fish/guestfish-commands.pod:44
15546 #, no-wrap
15547 msgid ""
15548 " copy-out /home .\n"
15549 "\n"
15550 msgstr ""
15551
15552 #. type: textblock
15553 #: ../fish/guestfish-commands.pod:46
15554 msgid ""
15555 "Wildcards cannot be used in the ordinary command, but you can use them with "
15556 "the help of L</glob> like this:"
15557 msgstr ""
15558
15559 #. type: verbatim
15560 #: ../fish/guestfish-commands.pod:49
15561 #, no-wrap
15562 msgid ""
15563 " glob copy-out /home/* .\n"
15564 "\n"
15565 msgstr ""
15566
15567 #. type: =head2
15568 #: ../fish/guestfish-commands.pod:51
15569 msgid "display"
15570 msgstr ""
15571
15572 #. type: verbatim
15573 #: ../fish/guestfish-commands.pod:53
15574 #, no-wrap
15575 msgid ""
15576 " display filename\n"
15577 "\n"
15578 msgstr ""
15579
15580 #. type: textblock
15581 #: ../fish/guestfish-commands.pod:55
15582 msgid ""
15583 "Use C<display> (a graphical display program) to display an image file.  It "
15584 "downloads the file, and runs C<display> on it."
15585 msgstr ""
15586
15587 #. type: textblock
15588 #: ../fish/guestfish-commands.pod:58
15589 msgid ""
15590 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
15591 "environment variable.  For example to use the GNOME display program:"
15592 msgstr ""
15593
15594 #. type: verbatim
15595 #: ../fish/guestfish-commands.pod:61
15596 #, no-wrap
15597 msgid ""
15598 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
15599 "\n"
15600 msgstr ""
15601
15602 #. type: textblock
15603 #: ../fish/guestfish-commands.pod:63
15604 msgid "See also L<display(1)>."
15605 msgstr ""
15606
15607 #. type: =head2
15608 #: ../fish/guestfish-commands.pod:65
15609 msgid "echo"
15610 msgstr ""
15611
15612 #. type: verbatim
15613 #: ../fish/guestfish-commands.pod:67
15614 #, no-wrap
15615 msgid ""
15616 " echo [params ...]\n"
15617 "\n"
15618 msgstr ""
15619
15620 #. type: textblock
15621 #: ../fish/guestfish-commands.pod:69
15622 msgid "This echos the parameters to the terminal."
15623 msgstr ""
15624
15625 #. type: =head2
15626 #: ../fish/guestfish-commands.pod:71
15627 msgid "edit"
15628 msgstr ""
15629
15630 #. type: =head2
15631 #: ../fish/guestfish-commands.pod:73
15632 msgid "vi"
15633 msgstr ""
15634
15635 #. type: =head2
15636 #: ../fish/guestfish-commands.pod:75
15637 msgid "emacs"
15638 msgstr ""
15639
15640 #. type: verbatim
15641 #: ../fish/guestfish-commands.pod:77
15642 #, no-wrap
15643 msgid ""
15644 " edit filename\n"
15645 "\n"
15646 msgstr ""
15647
15648 #. type: textblock
15649 #: ../fish/guestfish-commands.pod:79
15650 msgid ""
15651 "This is used to edit a file.  It downloads the file, edits it locally using "
15652 "your editor, then uploads the result."
15653 msgstr ""
15654
15655 #. type: textblock
15656 #: ../fish/guestfish-commands.pod:82
15657 msgid ""
15658 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
15659 "or C<emacs> you will get those corresponding editors."
15660 msgstr ""
15661
15662 #. type: =head2
15663 #: ../fish/guestfish-commands.pod:86
15664 msgid "glob"
15665 msgstr ""
15666
15667 #. type: verbatim
15668 #: ../fish/guestfish-commands.pod:88
15669 #, no-wrap
15670 msgid ""
15671 " glob command args...\n"
15672 "\n"
15673 msgstr ""
15674
15675 #. type: textblock
15676 #: ../fish/guestfish-commands.pod:90
15677 msgid ""
15678 "Expand wildcards in any paths in the args list, and run C<command> "
15679 "repeatedly on each matching path."
15680 msgstr ""
15681
15682 #. type: textblock
15683 #: ../fish/guestfish-commands.pod:93
15684 msgid "See L</WILDCARDS AND GLOBBING>."
15685 msgstr ""
15686
15687 #. type: =head2
15688 #: ../fish/guestfish-commands.pod:95
15689 msgid "hexedit"
15690 msgstr ""
15691
15692 #. type: verbatim
15693 #: ../fish/guestfish-commands.pod:97
15694 #, no-wrap
15695 msgid ""
15696 " hexedit <filename|device>\n"
15697 " hexedit <filename|device> <max>\n"
15698 " hexedit <filename|device> <start> <max>\n"
15699 "\n"
15700 msgstr ""
15701
15702 #. type: textblock
15703 #: ../fish/guestfish-commands.pod:101
15704 msgid ""
15705 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
15706 "device."
15707 msgstr ""
15708
15709 #. type: textblock
15710 #: ../fish/guestfish-commands.pod:104
15711 msgid ""
15712 "This command works by downloading potentially the whole file or device, "
15713 "editing it locally, then uploading it.  If the file or device is large, you "
15714 "have to specify which part you wish to edit by using C<max> and/or C<start> "
15715 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
15716 "usual modifiers allowed such as C<1M> (1 megabyte)."
15717 msgstr ""
15718
15719 #. type: textblock
15720 #: ../fish/guestfish-commands.pod:111
15721 msgid "For example to edit the first few sectors of a disk you might do:"
15722 msgstr ""
15723
15724 #. type: verbatim
15725 #: ../fish/guestfish-commands.pod:114
15726 #, no-wrap
15727 msgid ""
15728 " hexedit /dev/sda 1M\n"
15729 "\n"
15730 msgstr ""
15731
15732 #. type: textblock
15733 #: ../fish/guestfish-commands.pod:116
15734 msgid ""
15735 "which would allow you to edit anywhere within the first megabyte of the disk."
15736 msgstr ""
15737
15738 #. type: textblock
15739 #: ../fish/guestfish-commands.pod:119
15740 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
15741 msgstr ""
15742
15743 #. type: verbatim
15744 #: ../fish/guestfish-commands.pod:121
15745 #, no-wrap
15746 msgid ""
15747 " hexedit /dev/sda1 0x400 0x400\n"
15748 "\n"
15749 msgstr ""
15750
15751 #. type: textblock
15752 #: ../fish/guestfish-commands.pod:123
15753 msgid "(assuming the superblock is in the standard location)."
15754 msgstr ""
15755
15756 #. type: textblock
15757 #: ../fish/guestfish-commands.pod:125
15758 msgid ""
15759 "This command requires the external L<hexedit(1)> program.  You can specify "
15760 "another program to use by setting the C<HEXEDITOR> environment variable."
15761 msgstr ""
15762
15763 #. type: textblock
15764 #: ../fish/guestfish-commands.pod:129
15765 msgid "See also L</hexdump>."
15766 msgstr ""
15767
15768 #. type: =head2
15769 #: ../fish/guestfish-commands.pod:131
15770 msgid "lcd"
15771 msgstr ""
15772
15773 #. type: verbatim
15774 #: ../fish/guestfish-commands.pod:133
15775 #, no-wrap
15776 msgid ""
15777 " lcd directory\n"
15778 "\n"
15779 msgstr ""
15780
15781 #. type: textblock
15782 #: ../fish/guestfish-commands.pod:135
15783 msgid ""
15784 "Change the local directory, ie. the current directory of guestfish itself."
15785 msgstr ""
15786
15787 #. type: textblock
15788 #: ../fish/guestfish-commands.pod:138
15789 msgid "Note that C<!cd> won't do what you might expect."
15790 msgstr ""
15791
15792 #. type: =head2
15793 #: ../fish/guestfish-commands.pod:140
15794 msgid "man"
15795 msgstr ""
15796
15797 #. type: =head2
15798 #: ../fish/guestfish-commands.pod:142
15799 msgid "manual"
15800 msgstr ""
15801
15802 #. type: verbatim
15803 #: ../fish/guestfish-commands.pod:144
15804 #, no-wrap
15805 msgid ""
15806 "  man\n"
15807 "\n"
15808 msgstr ""
15809
15810 #. type: textblock
15811 #: ../fish/guestfish-commands.pod:146
15812 msgid "Opens the manual page for guestfish."
15813 msgstr ""
15814
15815 #. type: =head2
15816 #: ../fish/guestfish-commands.pod:148
15817 msgid "more"
15818 msgstr ""
15819
15820 #. type: =head2
15821 #: ../fish/guestfish-commands.pod:150
15822 msgid "less"
15823 msgstr ""
15824
15825 #. type: verbatim
15826 #: ../fish/guestfish-commands.pod:152
15827 #, no-wrap
15828 msgid ""
15829 " more filename\n"
15830 "\n"
15831 msgstr ""
15832
15833 #. type: verbatim
15834 #: ../fish/guestfish-commands.pod:154
15835 #, no-wrap
15836 msgid ""
15837 " less filename\n"
15838 "\n"
15839 msgstr ""
15840
15841 #. type: textblock
15842 #: ../fish/guestfish-commands.pod:156
15843 msgid "This is used to view a file."
15844 msgstr ""
15845
15846 #. type: textblock
15847 #: ../fish/guestfish-commands.pod:158
15848 msgid ""
15849 "The default viewer is C<$PAGER>.  However if you use the alternate command "
15850 "C<less> you will get the C<less> command specifically."
15851 msgstr ""
15852
15853 #. type: =head2
15854 #: ../fish/guestfish-commands.pod:161
15855 msgid "reopen"
15856 msgstr ""
15857
15858 #. type: verbatim
15859 #: ../fish/guestfish-commands.pod:163
15860 #, no-wrap
15861 msgid ""
15862 "  reopen\n"
15863 "\n"
15864 msgstr ""
15865
15866 #. type: textblock
15867 #: ../fish/guestfish-commands.pod:165
15868 msgid ""
15869 "Close and reopen the libguestfs handle.  It is not necessary to use this "
15870 "normally, because the handle is closed properly when guestfish exits.  "
15871 "However this is occasionally useful for testing."
15872 msgstr ""
15873
15874 #. type: =head2
15875 #: ../fish/guestfish-commands.pod:169
15876 msgid "setenv"
15877 msgstr ""
15878
15879 #. type: verbatim
15880 #: ../fish/guestfish-commands.pod:171
15881 #, no-wrap
15882 msgid ""
15883 "  setenv VAR value\n"
15884 "\n"
15885 msgstr ""
15886
15887 #. type: textblock
15888 #: ../fish/guestfish-commands.pod:173
15889 msgid "Set the environment variable C<VAR> to the string C<value>."
15890 msgstr ""
15891
15892 #. type: textblock
15893 #: ../fish/guestfish-commands.pod:175
15894 msgid ""
15895 "To print the value of an environment variable use a shell command such as:"
15896 msgstr ""
15897
15898 #. type: verbatim
15899 #: ../fish/guestfish-commands.pod:178
15900 #, no-wrap
15901 msgid ""
15902 " !echo $VAR\n"
15903 "\n"
15904 msgstr ""
15905
15906 #. type: =head2
15907 #: ../fish/guestfish-commands.pod:180
15908 msgid "sparse"
15909 msgstr ""
15910
15911 #. type: verbatim
15912 #: ../fish/guestfish-commands.pod:182
15913 #, no-wrap
15914 msgid ""
15915 " sparse filename size\n"
15916 "\n"
15917 msgstr ""
15918
15919 #. type: textblock
15920 #: ../fish/guestfish-commands.pod:184
15921 msgid ""
15922 "This creates an empty sparse file of the given size, and then adds so it can "
15923 "be further examined."
15924 msgstr ""
15925
15926 #. type: textblock
15927 #: ../fish/guestfish-commands.pod:187
15928 msgid ""
15929 "In all respects it works the same as the L</alloc> command, except that the "
15930 "image file is allocated sparsely, which means that disk blocks are not "
15931 "assigned to the file until they are needed.  Sparse disk files only use "
15932 "space when written to, but they are slower and there is a danger you could "
15933 "run out of real disk space during a write operation."
15934 msgstr ""
15935
15936 #. type: =head2
15937 #: ../fish/guestfish-commands.pod:197
15938 msgid "supported"
15939 msgstr ""
15940
15941 #. type: verbatim
15942 #: ../fish/guestfish-commands.pod:199
15943 #, no-wrap
15944 msgid ""
15945 " supported\n"
15946 "\n"
15947 msgstr ""
15948
15949 #. type: textblock
15950 #: ../fish/guestfish-commands.pod:201
15951 msgid ""
15952 "This command returns a list of the optional groups known to the daemon, and "
15953 "indicates which ones are supported by this build of the libguestfs appliance."
15954 msgstr ""
15955
15956 #. type: textblock
15957 #: ../fish/guestfish-commands.pod:205
15958 msgid "See also L<guestfs(3)/AVAILABILITY>."
15959 msgstr ""
15960
15961 #. type: =head2
15962 #: ../fish/guestfish-commands.pod:207
15963 msgid "time"
15964 msgstr ""
15965
15966 #. type: verbatim
15967 #: ../fish/guestfish-commands.pod:209
15968 #, no-wrap
15969 msgid ""
15970 " time command args...\n"
15971 "\n"
15972 msgstr ""
15973
15974 #. type: textblock
15975 #: ../fish/guestfish-commands.pod:211
15976 msgid ""
15977 "Run the command as usual, but print the elapsed time afterwards.  This can "
15978 "be useful for benchmarking operations."
15979 msgstr ""
15980
15981 #. type: =head2
15982 #: ../fish/guestfish-commands.pod:214
15983 msgid "unsetenv"
15984 msgstr ""
15985
15986 #. type: verbatim
15987 #: ../fish/guestfish-commands.pod:216
15988 #, no-wrap
15989 msgid ""
15990 "  unsetenv VAR\n"
15991 "\n"
15992 msgstr ""
15993
15994 #. type: textblock
15995 #: ../fish/guestfish-commands.pod:218
15996 msgid "Remove C<VAR> from the environment."
15997 msgstr ""
15998
15999 #. type: textblock
16000 #: ../fish/guestfish.pod:5
16001 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16002 msgstr ""
16003
16004 #. type: verbatim
16005 #: ../fish/guestfish.pod:9
16006 #, no-wrap
16007 msgid ""
16008 " guestfish [--options] [commands]\n"
16009 "\n"
16010 msgstr ""
16011
16012 #. type: verbatim
16013 #: ../fish/guestfish.pod:11
16014 #, no-wrap
16015 msgid ""
16016 " guestfish\n"
16017 "\n"
16018 msgstr ""
16019
16020 #. type: verbatim
16021 #: ../fish/guestfish.pod:13
16022 #, no-wrap
16023 msgid ""
16024 " guestfish [--ro|--rw] -a disk.img\n"
16025 "\n"
16026 msgstr ""
16027
16028 #. type: verbatim
16029 #: ../fish/guestfish.pod:15
16030 #, no-wrap
16031 msgid ""
16032 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16033 "\n"
16034 msgstr ""
16035
16036 #. type: verbatim
16037 #: ../fish/guestfish.pod:17
16038 #, no-wrap
16039 msgid ""
16040 " guestfish -d libvirt-domain\n"
16041 "\n"
16042 msgstr ""
16043
16044 #. type: verbatim
16045 #: ../fish/guestfish.pod:19
16046 #, no-wrap
16047 msgid ""
16048 " guestfish [--ro|--rw] -a disk.img -i\n"
16049 "\n"
16050 msgstr ""
16051
16052 #. type: verbatim
16053 #: ../fish/guestfish.pod:21
16054 #, no-wrap
16055 msgid ""
16056 " guestfish -d libvirt-domain -i\n"
16057 "\n"
16058 msgstr ""
16059
16060 #. type: textblock
16061 #: ../fish/guestfish.pod:25
16062 msgid ""
16063 "Using guestfish in read/write mode on live virtual machines can be "
16064 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16065 "option to use guestfish safely if the disk image or virtual machine might be "
16066 "live."
16067 msgstr ""
16068
16069 #. type: textblock
16070 #: ../fish/guestfish.pod:32
16071 msgid ""
16072 "Guestfish is a shell and command-line tool for examining and modifying "
16073 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16074 "functionality of the guestfs API, see L<guestfs(3)>."
16075 msgstr ""
16076
16077 #. type: textblock
16078 #: ../fish/guestfish.pod:36
16079 msgid ""
16080 "Guestfish gives you structured access to the libguestfs API, from shell "
16081 "scripts or the command line or interactively.  If you want to rescue a "
16082 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16083 "command."
16084 msgstr ""
16085
16086 #. type: =head2
16087 #: ../fish/guestfish.pod:43
16088 msgid "As an interactive shell"
16089 msgstr ""
16090
16091 #. type: verbatim
16092 #: ../fish/guestfish.pod:45
16093 #, no-wrap
16094 msgid ""
16095 " $ guestfish\n"
16096 " \n"
16097 msgstr ""
16098
16099 #. type: verbatim
16100 #: ../fish/guestfish.pod:47
16101 #, no-wrap
16102 msgid ""
16103 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16104 " editing virtual machine filesystems.\n"
16105 " \n"
16106 msgstr ""
16107
16108 #. type: verbatim
16109 #: ../fish/guestfish.pod:50
16110 #, no-wrap
16111 msgid ""
16112 " Type: 'help' for a list of commands\n"
16113 "       'man' to read the manual\n"
16114 "       'quit' to quit the shell\n"
16115 " \n"
16116 msgstr ""
16117
16118 #. type: verbatim
16119 #: ../fish/guestfish.pod:54
16120 #, no-wrap
16121 msgid ""
16122 " ><fs> add-ro disk.img\n"
16123 " ><fs> run\n"
16124 " ><fs> list-filesystems\n"
16125 " /dev/sda1: ext4\n"
16126 " /dev/vg_guest/lv_root: ext4\n"
16127 " /dev/vg_guest/lv_swap: swap\n"
16128 " ><fs> mount /dev/vg_guest/lv_root /\n"
16129 " ><fs> cat /etc/fstab\n"
16130 " # /etc/fstab\n"
16131 " # Created by anaconda\n"
16132 " [...]\n"
16133 " ><fs> exit\n"
16134 "\n"
16135 msgstr ""
16136
16137 #. type: =head2
16138 #: ../fish/guestfish.pod:67
16139 msgid "From shell scripts"
16140 msgstr ""
16141
16142 #. type: textblock
16143 #: ../fish/guestfish.pod:69
16144 msgid "Create a new C</etc/motd> file in a guest or disk image:"
16145 msgstr ""
16146
16147 #. type: verbatim
16148 #: ../fish/guestfish.pod:71
16149 #, no-wrap
16150 msgid ""
16151 " guestfish <<_EOF_\n"
16152 " add disk.img\n"
16153 " run\n"
16154 " mount /dev/vg_guest/lv_root /\n"
16155 " write /etc/motd \"Welcome, new users\"\n"
16156 " _EOF_\n"
16157 "\n"
16158 msgstr ""
16159
16160 #. type: textblock
16161 #: ../fish/guestfish.pod:78
16162 msgid "List the LVM logical volumes in a disk image:"
16163 msgstr ""
16164
16165 #. type: verbatim
16166 #: ../fish/guestfish.pod:80
16167 #, no-wrap
16168 msgid ""
16169 " guestfish -a disk.img --ro <<_EOF_\n"
16170 " run\n"
16171 " lvs\n"
16172 " _EOF_\n"
16173 "\n"
16174 msgstr ""
16175
16176 #. type: textblock
16177 #: ../fish/guestfish.pod:85
16178 msgid "List all the filesystems in a disk image:"
16179 msgstr ""
16180
16181 #. type: verbatim
16182 #: ../fish/guestfish.pod:87
16183 #, no-wrap
16184 msgid ""
16185 " guestfish -a disk.img --ro <<_EOF_\n"
16186 " run\n"
16187 " list-filesystems\n"
16188 " _EOF_\n"
16189 "\n"
16190 msgstr ""
16191
16192 #. type: =head2
16193 #: ../fish/guestfish.pod:92
16194 msgid "On one command line"
16195 msgstr ""
16196
16197 #. type: textblock
16198 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
16199 msgid "Update C</etc/resolv.conf> in a guest:"
16200 msgstr ""
16201
16202 #. type: verbatim
16203 #: ../fish/guestfish.pod:96
16204 #, no-wrap
16205 msgid ""
16206 " guestfish \\\n"
16207 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
16208 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
16209 "\n"
16210 msgstr ""
16211
16212 #. type: textblock
16213 #: ../fish/guestfish.pod:100
16214 msgid "Edit C</boot/grub/grub.conf> interactively:"
16215 msgstr ""
16216
16217 #. type: verbatim
16218 #: ../fish/guestfish.pod:102
16219 #, no-wrap
16220 msgid ""
16221 " guestfish --rw --add disk.img \\\n"
16222 "   --mount /dev/vg_guest/lv_root \\\n"
16223 "   --mount /dev/sda1:/boot \\\n"
16224 "   edit /boot/grub/grub.conf\n"
16225 "\n"
16226 msgstr ""
16227
16228 #. type: =head2
16229 #: ../fish/guestfish.pod:107
16230 msgid "Mount disks automatically"
16231 msgstr ""
16232
16233 #. type: textblock
16234 #: ../fish/guestfish.pod:109
16235 msgid ""
16236 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
16237 msgstr ""
16238
16239 #. type: verbatim
16240 #: ../fish/guestfish.pod:112
16241 #, no-wrap
16242 msgid ""
16243 " guestfish --ro -a disk.img -i cat /etc/group\n"
16244 "\n"
16245 msgstr ""
16246
16247 #. type: verbatim
16248 #: ../fish/guestfish.pod:114
16249 #, no-wrap
16250 msgid ""
16251 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
16252 "\n"
16253 msgstr ""
16254
16255 #. type: textblock
16256 #: ../fish/guestfish.pod:116
16257 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
16258 msgstr ""
16259
16260 #. type: verbatim
16261 #: ../fish/guestfish.pod:118
16262 #, no-wrap
16263 msgid ""
16264 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
16265 "\n"
16266 msgstr ""
16267
16268 #. type: =head2
16269 #: ../fish/guestfish.pod:120
16270 msgid "As a script interpreter"
16271 msgstr ""
16272
16273 #. type: textblock
16274 #: ../fish/guestfish.pod:122
16275 msgid "Create a 100MB disk containing an ext2-formatted partition:"
16276 msgstr ""
16277
16278 #. type: verbatim
16279 #: ../fish/guestfish.pod:124
16280 #, no-wrap
16281 msgid ""
16282 " #!/usr/bin/guestfish -f\n"
16283 " sparse test1.img 100M\n"
16284 " run\n"
16285 " part-disk /dev/sda mbr\n"
16286 " mkfs ext2 /dev/sda1\n"
16287 "\n"
16288 msgstr ""
16289
16290 #. type: =head2
16291 #: ../fish/guestfish.pod:130
16292 msgid "Start with a prepared disk"
16293 msgstr ""
16294
16295 #. type: textblock
16296 #: ../fish/guestfish.pod:132
16297 msgid ""
16298 "An alternate way to create a 100MB disk called C<test1.img> containing a "
16299 "single ext2-formatted partition:"
16300 msgstr ""
16301
16302 #. type: verbatim
16303 #: ../fish/guestfish.pod:135
16304 #, no-wrap
16305 msgid ""
16306 " guestfish -N fs\n"
16307 "\n"
16308 msgstr ""
16309
16310 #. type: textblock
16311 #: ../fish/guestfish.pod:137
16312 msgid "To list what is available do:"
16313 msgstr ""
16314
16315 #. type: verbatim
16316 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1009
16317 #, no-wrap
16318 msgid ""
16319 " guestfish -N help | less\n"
16320 "\n"
16321 msgstr ""
16322
16323 #. type: =head2
16324 #: ../fish/guestfish.pod:141
16325 msgid "Remote control"
16326 msgstr ""
16327
16328 #. type: verbatim
16329 #: ../fish/guestfish.pod:143
16330 #, no-wrap
16331 msgid ""
16332 " eval \"`guestfish --listen`\"\n"
16333 " guestfish --remote add-ro disk.img\n"
16334 " guestfish --remote run\n"
16335 " guestfish --remote lvs\n"
16336 "\n"
16337 msgstr ""
16338
16339 #. type: textblock
16340 #: ../fish/guestfish.pod:154
16341 msgid "Displays general help on options."
16342 msgstr ""
16343
16344 #. type: =item
16345 #: ../fish/guestfish.pod:158
16346 msgid "B<--cmd-help>"
16347 msgstr ""
16348
16349 #. type: textblock
16350 #: ../fish/guestfish.pod:160
16351 msgid "Lists all available guestfish commands."
16352 msgstr ""
16353
16354 #. type: =item
16355 #: ../fish/guestfish.pod:162
16356 msgid "B<-h cmd>"
16357 msgstr ""
16358
16359 #. type: =item
16360 #: ../fish/guestfish.pod:164
16361 msgid "B<--cmd-help cmd>"
16362 msgstr ""
16363
16364 #. type: textblock
16365 #: ../fish/guestfish.pod:166
16366 msgid "Displays detailed help on a single command C<cmd>."
16367 msgstr ""
16368
16369 #. type: =item
16370 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
16371 msgid "B<-a image>"
16372 msgstr ""
16373
16374 #. type: =item
16375 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
16376 msgid "B<--add image>"
16377 msgstr ""
16378
16379 #. type: textblock
16380 #: ../fish/guestfish.pod:172
16381 msgid "Add a block device or virtual machine image to the shell."
16382 msgstr ""
16383
16384 #. type: textblock
16385 #: ../fish/guestfish.pod:177
16386 msgid ""
16387 "Using this flag is mostly equivalent to using the C<add> command, with "
16388 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
16389 "the I<--format=...> flag was given."
16390 msgstr ""
16391
16392 #. type: textblock
16393 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
16394 msgid ""
16395 "When used in conjunction with the I<-d> option, this specifies the libvirt "
16396 "URI to use.  The default is to use the default libvirt connection."
16397 msgstr ""
16398
16399 #. type: =item
16400 #: ../fish/guestfish.pod:189
16401 msgid "B<--csh>"
16402 msgstr ""
16403
16404 #. type: textblock
16405 #: ../fish/guestfish.pod:191
16406 msgid ""
16407 "If using the I<--listen> option and a csh-like shell, use this option.  See "
16408 "section L</REMOTE CONTROL AND CSH> below."
16409 msgstr ""
16410
16411 #. type: =item
16412 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
16413 msgid "B<-d libvirt-domain>"
16414 msgstr ""
16415
16416 #. type: =item
16417 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
16418 msgid "B<--domain libvirt-domain>"
16419 msgstr ""
16420
16421 #. type: textblock
16422 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
16423 msgid ""
16424 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
16425 "used, then any libvirt domain can be used.  However in write mode, only "
16426 "libvirt domains which are shut down can be named here."
16427 msgstr ""
16428
16429 #. type: textblock
16430 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
16431 msgid "Domain UUIDs can be used instead of names."
16432 msgstr ""
16433
16434 #. type: textblock
16435 #: ../fish/guestfish.pod:204
16436 msgid ""
16437 "Using this flag is mostly equivalent to using the C<add-domain> command, "
16438 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
16439 "if the I<--format:...> flag was given."
16440 msgstr ""
16441
16442 #. type: =item
16443 #: ../fish/guestfish.pod:208
16444 msgid "B<-D>"
16445 msgstr ""
16446
16447 #. type: =item
16448 #: ../fish/guestfish.pod:210
16449 msgid "B<--no-dest-paths>"
16450 msgstr ""
16451
16452 #. type: textblock
16453 #: ../fish/guestfish.pod:212
16454 msgid ""
16455 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
16456 "to hit the tab key to complete paths on the guest filesystem, but this "
16457 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
16458 "allow this feature to be disabled."
16459 msgstr ""
16460
16461 #. type: textblock
16462 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
16463 msgid ""
16464 "When prompting for keys and passphrases, guestfish normally turns echoing "
16465 "off so you cannot see what you are typing.  If you are not worried about "
16466 "Tempest attacks and there is no one else in the room you can specify this "
16467 "flag to see what you are typing."
16468 msgstr ""
16469
16470 #. type: =item
16471 #: ../fish/guestfish.pod:224
16472 msgid "B<-f file>"
16473 msgstr ""
16474
16475 #. type: =item
16476 #: ../fish/guestfish.pod:226
16477 msgid "B<--file file>"
16478 msgstr ""
16479
16480 #. type: textblock
16481 #: ../fish/guestfish.pod:228
16482 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
16483 msgstr ""
16484
16485 #. type: verbatim
16486 #: ../fish/guestfish.pod:231
16487 #, no-wrap
16488 msgid ""
16489 " #!/usr/bin/guestfish -f\n"
16490 "\n"
16491 msgstr ""
16492
16493 #. type: verbatim
16494 #: ../fish/guestfish.pod:244
16495 #, no-wrap
16496 msgid ""
16497 " guestfish --format=raw -a disk.img\n"
16498 "\n"
16499 msgstr ""
16500
16501 #. type: verbatim
16502 #: ../fish/guestfish.pod:248
16503 #, no-wrap
16504 msgid ""
16505 " guestfish --format=raw -a disk.img --format -a another.img\n"
16506 "\n"
16507 msgstr ""
16508
16509 #. type: textblock
16510 #: ../fish/guestfish.pod:253
16511 msgid ""
16512 "If you have untrusted raw-format guest disk images, you should use this "
16513 "option to specify the disk format.  This avoids a possible security problem "
16514 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
16515 msgstr ""
16516
16517 #. type: =item
16518 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
16519 msgid "B<--inspector>"
16520 msgstr ""
16521
16522 #. type: textblock
16523 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
16524 msgid ""
16525 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
16526 "system and mount filesystems as they would be mounted on the real virtual "
16527 "machine."
16528 msgstr ""
16529
16530 #. type: textblock
16531 #: ../fish/guestfish.pod:266
16532 msgid "Typical usage is either:"
16533 msgstr ""
16534
16535 #. type: verbatim
16536 #: ../fish/guestfish.pod:268
16537 #, no-wrap
16538 msgid ""
16539 " guestfish -d myguest -i\n"
16540 "\n"
16541 msgstr ""
16542
16543 #. type: textblock
16544 #: ../fish/guestfish.pod:270
16545 msgid "(for an inactive libvirt domain called I<myguest>), or:"
16546 msgstr ""
16547
16548 #. type: verbatim
16549 #: ../fish/guestfish.pod:272
16550 #, no-wrap
16551 msgid ""
16552 " guestfish --ro -d myguest -i\n"
16553 "\n"
16554 msgstr ""
16555
16556 #. type: textblock
16557 #: ../fish/guestfish.pod:274
16558 msgid "(for active domains, readonly), or specify the block device directly:"
16559 msgstr ""
16560
16561 #. type: verbatim
16562 #: ../fish/guestfish.pod:276
16563 #, no-wrap
16564 msgid ""
16565 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
16566 "\n"
16567 msgstr ""
16568
16569 #. type: textblock
16570 #: ../fish/guestfish.pod:278
16571 msgid ""
16572 "Note that the command line syntax changed slightly over older versions of "
16573 "guestfish.  You can still use the old syntax:"
16574 msgstr ""
16575
16576 #. type: verbatim
16577 #: ../fish/guestfish.pod:281
16578 #, no-wrap
16579 msgid ""
16580 " guestfish [--ro] -i disk.img\n"
16581 "\n"
16582 msgstr ""
16583
16584 #. type: verbatim
16585 #: ../fish/guestfish.pod:283
16586 #, no-wrap
16587 msgid ""
16588 " guestfish [--ro] -i libvirt-domain\n"
16589 "\n"
16590 msgstr ""
16591
16592 #. type: textblock
16593 #: ../fish/guestfish.pod:285
16594 msgid ""
16595 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
16596 "then using other commands to mount the filesystems that were found."
16597 msgstr ""
16598
16599 #. type: =item
16600 #: ../fish/guestfish.pod:294
16601 msgid "B<--listen>"
16602 msgstr ""
16603
16604 #. type: textblock
16605 #: ../fish/guestfish.pod:296
16606 msgid ""
16607 "Fork into the background and listen for remote commands.  See section L</"
16608 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
16609 msgstr ""
16610
16611 #. type: =item
16612 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
16613 msgid "B<--live>"
16614 msgstr ""
16615
16616 #. type: textblock
16617 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
16618 msgid ""
16619 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
16620 "ATTACHING TO RUNNING DAEMONS>)."
16621 msgstr ""
16622
16623 #. type: =item
16624 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
16625 msgid "B<-m dev[:mountpoint[:options]]>"
16626 msgstr ""
16627
16628 #. type: =item
16629 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
16630 msgid "B<--mount dev[:mountpoint[:options]]>"
16631 msgstr ""
16632
16633 #. type: textblock
16634 #: ../fish/guestfish.pod:308
16635 msgid "Mount the named partition or logical volume on the given mountpoint."
16636 msgstr ""
16637
16638 #. type: textblock
16639 #: ../fish/guestfish.pod:310
16640 msgid "If the mountpoint is omitted, it defaults to C</>."
16641 msgstr ""
16642
16643 #. type: textblock
16644 #: ../fish/guestfish.pod:312
16645 msgid "You have to mount something on C</> before most commands will work."
16646 msgstr ""
16647
16648 #. type: textblock
16649 #: ../fish/guestfish.pod:314
16650 msgid ""
16651 "If any I<-m> or I<--mount> options are given, the guest is automatically "
16652 "launched."
16653 msgstr ""
16654
16655 #. type: textblock
16656 #: ../fish/guestfish.pod:317
16657 msgid ""
16658 "If you don't know what filesystems a disk image contains, you can either run "
16659 "guestfish without this option, then list the partitions, filesystems and LVs "
16660 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
16661 "commands), or you can use the L<virt-filesystems(1)> program."
16662 msgstr ""
16663
16664 #. type: textblock
16665 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
16666 msgid ""
16667 "The third (and rarely used) part of the mount parameter is the list of mount "
16668 "options used to mount the underlying filesystem.  If this is not given, then "
16669 "the mount options are either the empty string or C<ro> (the latter if the "
16670 "I<--ro> flag is used).  By specifying the mount options, you override this "
16671 "default choice.  Probably the only time you would use this is to enable ACLs "
16672 "and/or extended attributes if the filesystem can support them:"
16673 msgstr ""
16674
16675 #. type: verbatim
16676 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
16677 #, no-wrap
16678 msgid ""
16679 " -m /dev/sda1:/:acl,user_xattr\n"
16680 "\n"
16681 msgstr ""
16682
16683 #. type: textblock
16684 #: ../fish/guestfish.pod:333
16685 msgid "Using this flag is equivalent to using the C<mount-options> command."
16686 msgstr ""
16687
16688 #. type: =item
16689 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193
16690 #: ../resize/virt-resize.pod:358
16691 msgid "B<-n>"
16692 msgstr ""
16693
16694 #. type: =item
16695 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
16696 msgid "B<--no-sync>"
16697 msgstr ""
16698
16699 #. type: textblock
16700 #: ../fish/guestfish.pod:339
16701 msgid ""
16702 "Disable autosync.  This is enabled by default.  See the discussion of "
16703 "autosync in the L<guestfs(3)> manpage."
16704 msgstr ""
16705
16706 #. type: =item
16707 #: ../fish/guestfish.pod:342
16708 msgid "B<-N type>"
16709 msgstr ""
16710
16711 #. type: =item
16712 #: ../fish/guestfish.pod:344
16713 msgid "B<--new type>"
16714 msgstr ""
16715
16716 #. type: =item
16717 #: ../fish/guestfish.pod:346
16718 msgid "B<-N help>"
16719 msgstr ""
16720
16721 #. type: textblock
16722 #: ../fish/guestfish.pod:348
16723 msgid ""
16724 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
16725 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
16726 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
16727 "IMAGES> below."
16728 msgstr ""
16729
16730 #. type: =item
16731 #: ../fish/guestfish.pod:353
16732 msgid "B<--progress-bars>"
16733 msgstr ""
16734
16735 #. type: textblock
16736 #: ../fish/guestfish.pod:355
16737 msgid "Enable progress bars, even when guestfish is used non-interactively."
16738 msgstr ""
16739
16740 #. type: textblock
16741 #: ../fish/guestfish.pod:357
16742 msgid ""
16743 "Progress bars are enabled by default when guestfish is used as an "
16744 "interactive shell."
16745 msgstr ""
16746
16747 #. type: =item
16748 #: ../fish/guestfish.pod:360
16749 msgid "B<--no-progress-bars>"
16750 msgstr ""
16751
16752 #. type: textblock
16753 #: ../fish/guestfish.pod:362
16754 msgid "Disable progress bars."
16755 msgstr ""
16756
16757 #. type: =item
16758 #: ../fish/guestfish.pod:364
16759 msgid "B<--remote[=pid]>"
16760 msgstr ""
16761
16762 #. type: textblock
16763 #: ../fish/guestfish.pod:366
16764 msgid ""
16765 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
16766 "CONTROL GUESTFISH OVER A SOCKET> below."
16767 msgstr ""
16768
16769 #. type: =item
16770 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239
16771 #: ../rescue/virt-rescue.pod:161
16772 msgid "B<-r>"
16773 msgstr ""
16774
16775 #. type: =item
16776 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241
16777 #: ../rescue/virt-rescue.pod:163
16778 msgid "B<--ro>"
16779 msgstr ""
16780
16781 #. type: textblock
16782 #: ../fish/guestfish.pod:373
16783 msgid ""
16784 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
16785 "mounts are done read-only."
16786 msgstr ""
16787
16788 #. type: textblock
16789 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
16790 msgid ""
16791 "The option must always be used if the disk image or virtual machine might be "
16792 "running, and is generally recommended in cases where you don't need write "
16793 "access to the disk."
16794 msgstr ""
16795
16796 #. type: textblock
16797 #: ../fish/guestfish.pod:380
16798 msgid ""
16799 "Note that prepared disk images created with I<-N> are not affected by this "
16800 "option.  Also commands like C<add> are not affected - you have to specify "
16801 "the C<readonly:true> option explicitly if you need it."
16802 msgstr ""
16803
16804 #. type: textblock
16805 #: ../fish/guestfish.pod:384
16806 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
16807 msgstr ""
16808
16809 #. type: =item
16810 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253
16811 #: ../rescue/virt-rescue.pod:173
16812 msgid "B<--selinux>"
16813 msgstr ""
16814
16815 #. type: textblock
16816 #: ../fish/guestfish.pod:388
16817 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
16818 msgstr ""
16819
16820 #. type: textblock
16821 #: ../fish/guestfish.pod:394
16822 msgid ""
16823 "Enable very verbose messages.  This is particularly useful if you find a bug."
16824 msgstr ""
16825
16826 #. type: textblock
16827 #: ../fish/guestfish.pod:401
16828 msgid "Display the guestfish / libguestfs version number and exit."
16829 msgstr ""
16830
16831 #. type: =item
16832 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269
16833 #: ../rescue/virt-rescue.pod:190
16834 msgid "B<-w>"
16835 msgstr ""
16836
16837 #. type: =item
16838 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271
16839 #: ../rescue/virt-rescue.pod:192
16840 msgid "B<--rw>"
16841 msgstr ""
16842
16843 #. type: textblock
16844 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
16845 msgid ""
16846 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
16847 "mounts are done read-write."
16848 msgstr ""
16849
16850 #. type: textblock
16851 #: ../fish/guestfish.pod:410
16852 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
16853 msgstr ""
16854
16855 #. type: textblock
16856 #: ../fish/guestfish.pod:414
16857 msgid "Echo each command before executing it."
16858 msgstr ""
16859
16860 #. type: =head1
16861 #: ../fish/guestfish.pod:418
16862 msgid "COMMANDS ON COMMAND LINE"
16863 msgstr ""
16864
16865 #. type: textblock
16866 #: ../fish/guestfish.pod:420
16867 msgid ""
16868 "Any additional (non-option) arguments are treated as commands to execute."
16869 msgstr ""
16870
16871 #. type: textblock
16872 #: ../fish/guestfish.pod:423
16873 msgid ""
16874 "Commands to execute should be separated by a colon (C<:>), where the colon "
16875 "is a separate parameter.  Thus:"
16876 msgstr ""
16877
16878 #. type: verbatim
16879 #: ../fish/guestfish.pod:426
16880 #, no-wrap
16881 msgid ""
16882 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
16883 "\n"
16884 msgstr ""
16885
16886 #. type: textblock
16887 #: ../fish/guestfish.pod:428
16888 msgid ""
16889 "If there are no additional arguments, then we enter a shell, either an "
16890 "interactive shell with a prompt (if the input is a terminal) or a non-"
16891 "interactive shell."
16892 msgstr ""
16893
16894 #. type: textblock
16895 #: ../fish/guestfish.pod:432
16896 msgid ""
16897 "In either command line mode or non-interactive shell, the first command that "
16898 "gives an error causes the whole shell to exit.  In interactive mode (with a "
16899 "prompt) if a command fails, you can continue to enter commands."
16900 msgstr ""
16901
16902 #. type: =head1
16903 #: ../fish/guestfish.pod:437
16904 msgid "USING launch (OR run)"
16905 msgstr ""
16906
16907 #. type: textblock
16908 #: ../fish/guestfish.pod:439
16909 msgid ""
16910 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
16911 "then launch it, then mount any disks you need, and finally issue actions/"
16912 "commands.  So the general order of the day is:"
16913 msgstr ""
16914
16915 #. type: textblock
16916 #: ../fish/guestfish.pod:447
16917 msgid "add or -a/--add"
16918 msgstr ""
16919
16920 #. type: textblock
16921 #: ../fish/guestfish.pod:451
16922 msgid "launch (aka run)"
16923 msgstr ""
16924
16925 #. type: textblock
16926 #: ../fish/guestfish.pod:455
16927 msgid "mount or -m/--mount"
16928 msgstr ""
16929
16930 #. type: textblock
16931 #: ../fish/guestfish.pod:459
16932 msgid "any other commands"
16933 msgstr ""
16934
16935 #. type: textblock
16936 #: ../fish/guestfish.pod:463
16937 msgid ""
16938 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
16939 "guest before mounting or performing any other commands."
16940 msgstr ""
16941
16942 #. type: textblock
16943 #: ../fish/guestfish.pod:466
16944 msgid ""
16945 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
16946 "I<--new> options were given then C<run> is done automatically, simply "
16947 "because guestfish can't perform the action you asked for without doing this."
16948 msgstr ""
16949
16950 #. type: =head1
16951 #: ../fish/guestfish.pod:471
16952 msgid "OPENING DISKS FOR READ AND WRITE"
16953 msgstr ""
16954
16955 #. type: textblock
16956 #: ../fish/guestfish.pod:473
16957 msgid ""
16958 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
16959 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
16960 "I<-i> and I<-m> open disk images read-only or for writing."
16961 msgstr ""
16962
16963 #. type: textblock
16964 #: ../fish/guestfish.pod:478
16965 msgid ""
16966 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
16967 "opening disk images supplied on the command line for write.  To open a disk "
16968 "image read-only you have to do I<-a image --ro>."
16969 msgstr ""
16970
16971 #. type: textblock
16972 #: ../fish/guestfish.pod:482
16973 msgid ""
16974 "This matters: If you accidentally open a live VM disk image writable then "
16975 "you will cause irreversible disk corruption."
16976 msgstr ""
16977
16978 #. type: textblock
16979 #: ../fish/guestfish.pod:485
16980 msgid ""
16981 "In a future libguestfs we intend to change the default the other way.  Disk "
16982 "images will be opened read-only.  You will have to either specify "
16983 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
16984 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
16985 "access for disk images specified by those other command line options."
16986 msgstr ""
16987
16988 #. type: textblock
16989 #: ../fish/guestfish.pod:492
16990 msgid ""
16991 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
16992 "which does nothing (it is already the default).  However it is highly "
16993 "recommended that you use this option to indicate that you need write access, "
16994 "and prepare your scripts for the day when this option will be required for "
16995 "write access."
16996 msgstr ""
16997
16998 #. type: textblock
16999 #: ../fish/guestfish.pod:498
17000 msgid ""
17001 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17002 "other libguestfs program apart from guestfish and guestmount."
17003 msgstr ""
17004
17005 #. type: =head1
17006 #: ../fish/guestfish.pod:501
17007 msgid "QUOTING"
17008 msgstr ""
17009
17010 #. type: textblock
17011 #: ../fish/guestfish.pod:503
17012 msgid ""
17013 "You can quote ordinary parameters using either single or double quotes.  For "
17014 "example:"
17015 msgstr ""
17016
17017 #. type: verbatim
17018 #: ../fish/guestfish.pod:506
17019 #, no-wrap
17020 msgid ""
17021 " add \"file with a space.img\"\n"
17022 "\n"
17023 msgstr ""
17024
17025 #. type: verbatim
17026 #: ../fish/guestfish.pod:508
17027 #, no-wrap
17028 msgid ""
17029 " rm '/file name'\n"
17030 "\n"
17031 msgstr ""
17032
17033 #. type: verbatim
17034 #: ../fish/guestfish.pod:510
17035 #, no-wrap
17036 msgid ""
17037 " rm '/\"'\n"
17038 "\n"
17039 msgstr ""
17040
17041 #. type: textblock
17042 #: ../fish/guestfish.pod:512
17043 msgid ""
17044 "A few commands require a list of strings to be passed.  For these, use a "
17045 "whitespace-separated list, enclosed in quotes.  Strings containing "
17046 "whitespace to be passed through must be enclosed in single quotes.  A "
17047 "literal single quote must be escaped with a backslash."
17048 msgstr ""
17049
17050 #. type: verbatim
17051 #: ../fish/guestfish.pod:517
17052 #, no-wrap
17053 msgid ""
17054 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17055 " command \"/bin/echo 'foo      bar'\"\n"
17056 " command \"/bin/echo \\'foo\\'\"\n"
17057 "\n"
17058 msgstr ""
17059
17060 #. type: =head2
17061 #: ../fish/guestfish.pod:521
17062 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
17063 msgstr ""
17064
17065 #. type: textblock
17066 #: ../fish/guestfish.pod:523
17067 msgid ""
17068 "In double-quoted arguments (only) use backslash to insert special characters:"
17069 msgstr ""
17070
17071 #. type: =item
17072 #: ../fish/guestfish.pod:528
17073 msgid "C<\\a>"
17074 msgstr ""
17075
17076 #. type: textblock
17077 #: ../fish/guestfish.pod:530
17078 msgid "Alert (bell) character."
17079 msgstr ""
17080
17081 #. type: =item
17082 #: ../fish/guestfish.pod:532
17083 msgid "C<\\b>"
17084 msgstr ""
17085
17086 #. type: textblock
17087 #: ../fish/guestfish.pod:534
17088 msgid "Backspace character."
17089 msgstr ""
17090
17091 #. type: =item
17092 #: ../fish/guestfish.pod:536
17093 msgid "C<\\f>"
17094 msgstr ""
17095
17096 #. type: textblock
17097 #: ../fish/guestfish.pod:538
17098 msgid "Form feed character."
17099 msgstr ""
17100
17101 #. type: =item
17102 #: ../fish/guestfish.pod:540
17103 msgid "C<\\n>"
17104 msgstr ""
17105
17106 #. type: textblock
17107 #: ../fish/guestfish.pod:542
17108 msgid "Newline character."
17109 msgstr ""
17110
17111 #. type: =item
17112 #: ../fish/guestfish.pod:544
17113 msgid "C<\\r>"
17114 msgstr ""
17115
17116 #. type: textblock
17117 #: ../fish/guestfish.pod:546
17118 msgid "Carriage return character."
17119 msgstr ""
17120
17121 #. type: =item
17122 #: ../fish/guestfish.pod:548
17123 msgid "C<\\t>"
17124 msgstr ""
17125
17126 #. type: textblock
17127 #: ../fish/guestfish.pod:550
17128 msgid "Horizontal tab character."
17129 msgstr ""
17130
17131 #. type: =item
17132 #: ../fish/guestfish.pod:552
17133 msgid "C<\\v>"
17134 msgstr ""
17135
17136 #. type: textblock
17137 #: ../fish/guestfish.pod:554
17138 msgid "Vertical tab character."
17139 msgstr ""
17140
17141 #. type: =item
17142 #: ../fish/guestfish.pod:556
17143 msgid "C<\\\">"
17144 msgstr ""
17145
17146 #. type: textblock
17147 #: ../fish/guestfish.pod:558
17148 msgid "A literal double quote character."
17149 msgstr ""
17150
17151 #. type: =item
17152 #: ../fish/guestfish.pod:560
17153 msgid "C<\\ooo>"
17154 msgstr ""
17155
17156 #. type: textblock
17157 #: ../fish/guestfish.pod:562
17158 msgid ""
17159 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
17160 "(unlike C)."
17161 msgstr ""
17162
17163 #. type: =item
17164 #: ../fish/guestfish.pod:565
17165 msgid "C<\\xhh>"
17166 msgstr ""
17167
17168 #. type: textblock
17169 #: ../fish/guestfish.pod:567
17170 msgid ""
17171 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
17172 msgstr ""
17173
17174 #. type: textblock
17175 #: ../fish/guestfish.pod:570
17176 msgid ""
17177 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
17178 "strings."
17179 msgstr ""
17180
17181 #. type: =item
17182 #: ../fish/guestfish.pod:573
17183 msgid "C<\\\\>"
17184 msgstr ""
17185
17186 #. type: textblock
17187 #: ../fish/guestfish.pod:575
17188 msgid "A literal backslash character."
17189 msgstr ""
17190
17191 #. type: =head1
17192 #: ../fish/guestfish.pod:579
17193 msgid "OPTIONAL ARGUMENTS"
17194 msgstr ""
17195
17196 #. type: textblock
17197 #: ../fish/guestfish.pod:581
17198 msgid ""
17199 "Some commands take optional arguments.  These arguments appear in this "
17200 "documentation as C<[argname:..]>.  You can use them as in these examples:"
17201 msgstr ""
17202
17203 #. type: verbatim
17204 #: ../fish/guestfish.pod:585
17205 #, no-wrap
17206 msgid ""
17207 " add-drive-opts filename\n"
17208 "\n"
17209 msgstr ""
17210
17211 #. type: verbatim
17212 #: ../fish/guestfish.pod:587
17213 #, no-wrap
17214 msgid ""
17215 " add-drive-opts filename readonly:true\n"
17216 "\n"
17217 msgstr ""
17218
17219 #. type: verbatim
17220 #: ../fish/guestfish.pod:589
17221 #, no-wrap
17222 msgid ""
17223 " add-drive-opts filename format:qcow2 readonly:false\n"
17224 "\n"
17225 msgstr ""
17226
17227 #. type: textblock
17228 #: ../fish/guestfish.pod:591
17229 msgid ""
17230 "Each optional argument can appear at most once.  All optional arguments must "
17231 "appear after the required ones."
17232 msgstr ""
17233
17234 #. type: =head1
17235 #: ../fish/guestfish.pod:594
17236 msgid "NUMBERS"
17237 msgstr ""
17238
17239 #. type: textblock
17240 #: ../fish/guestfish.pod:596
17241 msgid ""
17242 "This section applies to all commands which can take integers as parameters."
17243 msgstr ""
17244
17245 #. type: =head2
17246 #: ../fish/guestfish.pod:599
17247 msgid "SIZE SUFFIX"
17248 msgstr ""
17249
17250 #. type: textblock
17251 #: ../fish/guestfish.pod:601
17252 msgid ""
17253 "When the command takes a parameter measured in bytes, you can use one of the "
17254 "following suffixes to specify kilobytes, megabytes and larger sizes:"
17255 msgstr ""
17256
17257 #. type: =item
17258 #: ../fish/guestfish.pod:607
17259 msgid "B<k> or B<K> or B<KiB>"
17260 msgstr ""
17261
17262 #. type: textblock
17263 #: ../fish/guestfish.pod:609
17264 msgid "The size in kilobytes (multiplied by 1024)."
17265 msgstr ""
17266
17267 #. type: =item
17268 #: ../fish/guestfish.pod:611
17269 msgid "B<KB>"
17270 msgstr ""
17271
17272 #. type: textblock
17273 #: ../fish/guestfish.pod:613
17274 msgid "The size in SI 1000 byte units."
17275 msgstr ""
17276
17277 #. type: =item
17278 #: ../fish/guestfish.pod:615
17279 msgid "B<M> or B<MiB>"
17280 msgstr ""
17281
17282 #. type: textblock
17283 #: ../fish/guestfish.pod:617
17284 msgid "The size in megabytes (multiplied by 1048576)."
17285 msgstr ""
17286
17287 #. type: =item
17288 #: ../fish/guestfish.pod:619
17289 msgid "B<MB>"
17290 msgstr ""
17291
17292 #. type: textblock
17293 #: ../fish/guestfish.pod:621
17294 msgid "The size in SI 1000000 byte units."
17295 msgstr ""
17296
17297 #. type: =item
17298 #: ../fish/guestfish.pod:623
17299 msgid "B<G> or B<GiB>"
17300 msgstr ""
17301
17302 #. type: textblock
17303 #: ../fish/guestfish.pod:625
17304 msgid "The size in gigabytes (multiplied by 2**30)."
17305 msgstr ""
17306
17307 #. type: =item
17308 #: ../fish/guestfish.pod:627
17309 msgid "B<GB>"
17310 msgstr ""
17311
17312 #. type: textblock
17313 #: ../fish/guestfish.pod:629
17314 msgid "The size in SI 10**9 byte units."
17315 msgstr ""
17316
17317 #. type: =item
17318 #: ../fish/guestfish.pod:631
17319 msgid "B<T> or B<TiB>"
17320 msgstr ""
17321
17322 #. type: textblock
17323 #: ../fish/guestfish.pod:633
17324 msgid "The size in terabytes (multiplied by 2**40)."
17325 msgstr ""
17326
17327 #. type: =item
17328 #: ../fish/guestfish.pod:635
17329 msgid "B<TB>"
17330 msgstr ""
17331
17332 #. type: textblock
17333 #: ../fish/guestfish.pod:637
17334 msgid "The size in SI 10**12 byte units."
17335 msgstr ""
17336
17337 #. type: =item
17338 #: ../fish/guestfish.pod:639
17339 msgid "B<P> or B<PiB>"
17340 msgstr ""
17341
17342 #. type: textblock
17343 #: ../fish/guestfish.pod:641
17344 msgid "The size in petabytes (multiplied by 2**50)."
17345 msgstr ""
17346
17347 #. type: =item
17348 #: ../fish/guestfish.pod:643
17349 msgid "B<PB>"
17350 msgstr ""
17351
17352 #. type: textblock
17353 #: ../fish/guestfish.pod:645
17354 msgid "The size in SI 10**15 byte units."
17355 msgstr ""
17356
17357 #. type: =item
17358 #: ../fish/guestfish.pod:647
17359 msgid "B<E> or B<EiB>"
17360 msgstr ""
17361
17362 #. type: textblock
17363 #: ../fish/guestfish.pod:649
17364 msgid "The size in exabytes (multiplied by 2**60)."
17365 msgstr ""
17366
17367 #. type: =item
17368 #: ../fish/guestfish.pod:651
17369 msgid "B<EB>"
17370 msgstr ""
17371
17372 #. type: textblock
17373 #: ../fish/guestfish.pod:653
17374 msgid "The size in SI 10**18 byte units."
17375 msgstr ""
17376
17377 #. type: =item
17378 #: ../fish/guestfish.pod:655
17379 msgid "B<Z> or B<ZiB>"
17380 msgstr ""
17381
17382 #. type: textblock
17383 #: ../fish/guestfish.pod:657
17384 msgid "The size in zettabytes (multiplied by 2**70)."
17385 msgstr ""
17386
17387 #. type: =item
17388 #: ../fish/guestfish.pod:659
17389 msgid "B<ZB>"
17390 msgstr ""
17391
17392 #. type: textblock
17393 #: ../fish/guestfish.pod:661
17394 msgid "The size in SI 10**21 byte units."
17395 msgstr ""
17396
17397 #. type: =item
17398 #: ../fish/guestfish.pod:663
17399 msgid "B<Y> or B<YiB>"
17400 msgstr ""
17401
17402 #. type: textblock
17403 #: ../fish/guestfish.pod:665
17404 msgid "The size in yottabytes (multiplied by 2**80)."
17405 msgstr ""
17406
17407 #. type: =item
17408 #: ../fish/guestfish.pod:667
17409 msgid "B<YB>"
17410 msgstr ""
17411
17412 #. type: textblock
17413 #: ../fish/guestfish.pod:669
17414 msgid "The size in SI 10**24 byte units."
17415 msgstr ""
17416
17417 #. type: verbatim
17418 #: ../fish/guestfish.pod:675
17419 #, no-wrap
17420 msgid ""
17421 " truncate-size /file 1G\n"
17422 "\n"
17423 msgstr ""
17424
17425 #. type: textblock
17426 #: ../fish/guestfish.pod:677
17427 msgid "would truncate the file to 1 gigabyte."
17428 msgstr ""
17429
17430 #. type: textblock
17431 #: ../fish/guestfish.pod:679
17432 msgid ""
17433 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
17434 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
17435 "suffix will probably not do what you expect."
17436 msgstr ""
17437
17438 #. type: =head2
17439 #: ../fish/guestfish.pod:683
17440 msgid "OCTAL AND HEXADECIMAL NUMBERS"
17441 msgstr ""
17442
17443 #. type: textblock
17444 #: ../fish/guestfish.pod:685
17445 msgid ""
17446 "For specifying the radix (base) use the C convention: C<0> to prefix an "
17447 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
17448 msgstr ""
17449
17450 #. type: verbatim
17451 #: ../fish/guestfish.pod:688
17452 #, no-wrap
17453 msgid ""
17454 " 1234      decimal number 1234\n"
17455 " 02322     octal number, equivalent to decimal 1234\n"
17456 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
17457 "\n"
17458 msgstr ""
17459
17460 #. type: textblock
17461 #: ../fish/guestfish.pod:692
17462 msgid ""
17463 "When using the C<chmod> command, you almost always want to specify an octal "
17464 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
17465 "L<chmod(1)> program):"
17466 msgstr ""
17467
17468 #. type: verbatim
17469 #: ../fish/guestfish.pod:696
17470 #, no-wrap
17471 msgid ""
17472 " chmod 0777 /public  # OK\n"
17473 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
17474 "\n"
17475 msgstr ""
17476
17477 #. type: textblock
17478 #: ../fish/guestfish.pod:699
17479 msgid ""
17480 "Commands that return numbers usually print them in decimal, but some "
17481 "commands print numbers in other radices (eg. C<umask> prints the mode in "
17482 "octal, preceeded by C<0>)."
17483 msgstr ""
17484
17485 #. type: =head1
17486 #: ../fish/guestfish.pod:703
17487 msgid "WILDCARDS AND GLOBBING"
17488 msgstr ""
17489
17490 #. type: textblock
17491 #: ../fish/guestfish.pod:705
17492 msgid ""
17493 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
17494 "(globbing) by default.  So for example the following will not do what you "
17495 "expect:"
17496 msgstr ""
17497
17498 #. type: verbatim
17499 #: ../fish/guestfish.pod:709
17500 #, no-wrap
17501 msgid ""
17502 " rm-rf /home/*\n"
17503 "\n"
17504 msgstr ""
17505
17506 #. type: textblock
17507 #: ../fish/guestfish.pod:711
17508 msgid ""
17509 "Assuming you don't have a directory called literally C</home/*> then the "
17510 "above command will return an error."
17511 msgstr ""
17512
17513 #. type: textblock
17514 #: ../fish/guestfish.pod:714
17515 msgid "To perform wildcard expansion, use the C<glob> command."
17516 msgstr ""
17517
17518 #. type: verbatim
17519 #: ../fish/guestfish.pod:716
17520 #, no-wrap
17521 msgid ""
17522 " glob rm-rf /home/*\n"
17523 "\n"
17524 msgstr ""
17525
17526 #. type: textblock
17527 #: ../fish/guestfish.pod:718
17528 msgid ""
17529 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
17530 "many times), equivalent to:"
17531 msgstr ""
17532
17533 #. type: verbatim
17534 #: ../fish/guestfish.pod:721
17535 #, no-wrap
17536 msgid ""
17537 " rm-rf /home/jim\n"
17538 " rm-rf /home/joe\n"
17539 " rm-rf /home/mary\n"
17540 "\n"
17541 msgstr ""
17542
17543 #. type: textblock
17544 #: ../fish/guestfish.pod:725
17545 msgid "C<glob> only works on simple guest paths and not on device names."
17546 msgstr ""
17547
17548 #. type: textblock
17549 #: ../fish/guestfish.pod:727
17550 msgid ""
17551 "If you have several parameters, each containing a wildcard, then glob will "
17552 "perform a Cartesian product."
17553 msgstr ""
17554
17555 #. type: =head1
17556 #: ../fish/guestfish.pod:730
17557 msgid "COMMENTS"
17558 msgstr ""
17559
17560 #. type: textblock
17561 #: ../fish/guestfish.pod:732
17562 msgid ""
17563 "Any line which starts with a I<#> character is treated as a comment and "
17564 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
17565 "a command.  For example:"
17566 msgstr ""
17567
17568 #. type: verbatim
17569 #: ../fish/guestfish.pod:736
17570 #, no-wrap
17571 msgid ""
17572 " # this is a comment\n"
17573 "         # this is a comment\n"
17574 " foo # NOT a comment\n"
17575 "\n"
17576 msgstr ""
17577
17578 #. type: textblock
17579 #: ../fish/guestfish.pod:740
17580 msgid "Blank lines are also ignored."
17581 msgstr ""
17582
17583 #. type: =head1
17584 #: ../fish/guestfish.pod:742
17585 msgid "RUNNING COMMANDS LOCALLY"
17586 msgstr ""
17587
17588 #. type: textblock
17589 #: ../fish/guestfish.pod:744
17590 msgid ""
17591 "Any line which starts with a I<!> character is treated as a command sent to "
17592 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
17593 msgstr ""
17594
17595 #. type: verbatim
17596 #: ../fish/guestfish.pod:748
17597 #, no-wrap
17598 msgid ""
17599 " !mkdir local\n"
17600 " tgz-out /remote local/remote-data.tar.gz\n"
17601 "\n"
17602 msgstr ""
17603
17604 #. type: textblock
17605 #: ../fish/guestfish.pod:751
17606 msgid ""
17607 "will create a directory C<local> on the host, and then export the contents "
17608 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
17609 "(See C<tgz-out>)."
17610 msgstr ""
17611
17612 #. type: textblock
17613 #: ../fish/guestfish.pod:755
17614 msgid ""
17615 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
17616 "effect, due to the way that subprocesses work in Unix."
17617 msgstr ""
17618
17619 #. type: =head2
17620 #: ../fish/guestfish.pod:758
17621 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
17622 msgstr ""
17623
17624 #. type: textblock
17625 #: ../fish/guestfish.pod:760
17626 msgid ""
17627 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
17628 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
17629 "and executed as guestfish commands."
17630 msgstr ""
17631
17632 #. type: textblock
17633 #: ../fish/guestfish.pod:764
17634 msgid ""
17635 "Thus you can use shell script to construct arbitrary guestfish commands "
17636 "which are then parsed by guestfish."
17637 msgstr ""
17638
17639 #. type: textblock
17640 #: ../fish/guestfish.pod:767
17641 msgid ""
17642 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
17643 "through C</foo.100>) using guestfish commands alone.  However this is simple "
17644 "if we use a shell script to create the guestfish commands for us:"
17645 msgstr ""
17646
17647 #. type: verbatim
17648 #: ../fish/guestfish.pod:772
17649 #, no-wrap
17650 msgid ""
17651 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
17652 "\n"
17653 msgstr ""
17654
17655 #. type: textblock
17656 #: ../fish/guestfish.pod:774
17657 msgid "or with names like C</foo.001>:"
17658 msgstr ""
17659
17660 #. type: verbatim
17661 #: ../fish/guestfish.pod:776
17662 #, no-wrap
17663 msgid ""
17664 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
17665 "\n"
17666 msgstr ""
17667
17668 #. type: textblock
17669 #: ../fish/guestfish.pod:778
17670 msgid ""
17671 "When using guestfish interactively it can be helpful to just run the shell "
17672 "script first (ie. remove the initial C<E<lt>> character so it is just an "
17673 "ordinary I<!> local command), see what guestfish commands it would run, and "
17674 "when you are happy with those prepend the C<E<lt>> character to run the "
17675 "guestfish commands for real."
17676 msgstr ""
17677
17678 #. type: =head1
17679 #: ../fish/guestfish.pod:784
17680 msgid "PIPES"
17681 msgstr ""
17682
17683 #. type: textblock
17684 #: ../fish/guestfish.pod:786
17685 msgid ""
17686 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
17687 "command (a guestfish command) to the second command (any host command).  For "
17688 "example:"
17689 msgstr ""
17690
17691 #. type: verbatim
17692 #: ../fish/guestfish.pod:790
17693 #, no-wrap
17694 msgid ""
17695 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
17696 "\n"
17697 msgstr ""
17698
17699 #. type: textblock
17700 #: ../fish/guestfish.pod:792
17701 msgid ""
17702 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
17703 "program).  The above command would list all accounts in the guest filesystem "
17704 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
17705 msgstr ""
17706
17707 #. type: verbatim
17708 #: ../fish/guestfish.pod:797
17709 #, no-wrap
17710 msgid ""
17711 " hexdump /bin/ls | head\n"
17712 " list-devices | tail -1\n"
17713 " tgz-out / - | tar ztf -\n"
17714 "\n"
17715 msgstr ""
17716
17717 #. type: textblock
17718 #: ../fish/guestfish.pod:801
17719 msgid ""
17720 "The space before the pipe symbol is required, any space after the pipe "
17721 "symbol is optional.  Everything after the pipe symbol is just passed "
17722 "straight to the host shell, so it can contain redirections, globs and "
17723 "anything else that makes sense on the host side."
17724 msgstr ""
17725
17726 #. type: textblock
17727 #: ../fish/guestfish.pod:806
17728 msgid ""
17729 "To use a literal argument which begins with a pipe symbol, you have to quote "
17730 "it, eg:"
17731 msgstr ""
17732
17733 #. type: verbatim
17734 #: ../fish/guestfish.pod:809
17735 #, no-wrap
17736 msgid ""
17737 " echo \"|\"\n"
17738 "\n"
17739 msgstr ""
17740
17741 #. type: =head1
17742 #: ../fish/guestfish.pod:811
17743 msgid "HOME DIRECTORIES"
17744 msgstr ""
17745
17746 #. type: textblock
17747 #: ../fish/guestfish.pod:813
17748 msgid ""
17749 "If a parameter starts with the character C<~> then the tilde may be expanded "
17750 "as a home directory path (either C<~> for the current user's home directory, "
17751 "or C<~user> for another user)."
17752 msgstr ""
17753
17754 #. type: textblock
17755 #: ../fish/guestfish.pod:817
17756 msgid ""
17757 "Note that home directory expansion happens for users known I<on the host>, "
17758 "not in the guest filesystem."
17759 msgstr ""
17760
17761 #. type: textblock
17762 #: ../fish/guestfish.pod:820
17763 msgid ""
17764 "To use a literal argument which begins with a tilde, you have to quote it, "
17765 "eg:"
17766 msgstr ""
17767
17768 #. type: verbatim
17769 #: ../fish/guestfish.pod:823
17770 #, no-wrap
17771 msgid ""
17772 " echo \"~\"\n"
17773 "\n"
17774 msgstr ""
17775
17776 #. type: =head2
17777 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
17778 msgid "ENCRYPTED DISKS"
17779 msgstr ""
17780
17781 #. type: textblock
17782 #: ../fish/guestfish.pod:827
17783 msgid ""
17784 "Libguestfs has some support for Linux guests encrypted according to the "
17785 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
17786 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
17787 "LUKS is supported."
17788 msgstr ""
17789
17790 #. type: textblock
17791 #: ../fish/guestfish.pod:832
17792 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
17793 msgstr ""
17794
17795 #. type: verbatim
17796 #: ../fish/guestfish.pod:834
17797 #, no-wrap
17798 msgid ""
17799 " ><fs> vfs-type /dev/sda2\n"
17800 " crypto_LUKS\n"
17801 "\n"
17802 msgstr ""
17803
17804 #. type: textblock
17805 #: ../fish/guestfish.pod:837
17806 msgid ""
17807 "Then open those devices using L</luks-open>.  This creates a device-mapper "
17808 "device called C</dev/mapper/luksdev>."
17809 msgstr ""
17810
17811 #. type: verbatim
17812 #: ../fish/guestfish.pod:840
17813 #, no-wrap
17814 msgid ""
17815 " ><fs> luks-open /dev/sda2 luksdev\n"
17816 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
17817 "\n"
17818 msgstr ""
17819
17820 #. type: textblock
17821 #: ../fish/guestfish.pod:843
17822 msgid ""
17823 "Finally you have to tell LVM to scan for volume groups on the newly created "
17824 "mapper device:"
17825 msgstr ""
17826
17827 #. type: verbatim
17828 #: ../fish/guestfish.pod:846
17829 #, no-wrap
17830 msgid ""
17831 " vgscan\n"
17832 " vg-activate-all true\n"
17833 "\n"
17834 msgstr ""
17835
17836 #. type: textblock
17837 #: ../fish/guestfish.pod:849
17838 msgid "The logical volume(s) can now be mounted in the usual way."
17839 msgstr ""
17840
17841 #. type: textblock
17842 #: ../fish/guestfish.pod:851
17843 msgid ""
17844 "Before closing a LUKS device you must unmount any logical volumes on it and "
17845 "deactivate the volume groups by calling C<vg-activate false VG> on each "
17846 "one.  Then you can close the mapper device:"
17847 msgstr ""
17848
17849 #. type: verbatim
17850 #: ../fish/guestfish.pod:855
17851 #, no-wrap
17852 msgid ""
17853 " vg-activate false /dev/VG\n"
17854 " luks-close /dev/mapper/luksdev\n"
17855 "\n"
17856 msgstr ""
17857
17858 #. type: textblock
17859 #: ../fish/guestfish.pod:860
17860 msgid ""
17861 "If a path is prefixed with C<win:> then you can use Windows-style drive "
17862 "letters and paths (with some limitations).  The following commands are "
17863 "equivalent:"
17864 msgstr ""
17865
17866 #. type: verbatim
17867 #: ../fish/guestfish.pod:864
17868 #, no-wrap
17869 msgid ""
17870 " file /WINDOWS/system32/config/system.LOG\n"
17871 "\n"
17872 msgstr ""
17873
17874 #. type: verbatim
17875 #: ../fish/guestfish.pod:866
17876 #, no-wrap
17877 msgid ""
17878 " file win:\\windows\\system32\\config\\system.log\n"
17879 "\n"
17880 msgstr ""
17881
17882 #. type: verbatim
17883 #: ../fish/guestfish.pod:868
17884 #, no-wrap
17885 msgid ""
17886 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
17887 "\n"
17888 msgstr ""
17889
17890 #. type: textblock
17891 #: ../fish/guestfish.pod:870
17892 msgid ""
17893 "The parameter is rewritten \"behind the scenes\" by looking up the position "
17894 "where the drive is mounted, prepending that to the path, changing all "
17895 "backslash characters to forward slash, then resolving the result using L</"
17896 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
17897 "the parameter might be rewritten like this:"
17898 msgstr ""
17899
17900 #. type: verbatim
17901 #: ../fish/guestfish.pod:876
17902 #, no-wrap
17903 msgid ""
17904 " win:e:\\foo\\bar => /e/FOO/bar\n"
17905 "\n"
17906 msgstr ""
17907
17908 #. type: textblock
17909 #: ../fish/guestfish.pod:878
17910 msgid "This only works in argument positions that expect a path."
17911 msgstr ""
17912
17913 #. type: =head1
17914 #: ../fish/guestfish.pod:880
17915 msgid "UPLOADING AND DOWNLOADING FILES"
17916 msgstr ""
17917
17918 #. type: textblock
17919 #: ../fish/guestfish.pod:882
17920 msgid ""
17921 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
17922 "others which upload from or download to a local file, you can use the "
17923 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
17924 msgstr ""
17925
17926 #. type: verbatim
17927 #: ../fish/guestfish.pod:886
17928 #, no-wrap
17929 msgid ""
17930 " upload - /foo\n"
17931 "\n"
17932 msgstr ""
17933
17934 #. type: textblock
17935 #: ../fish/guestfish.pod:888
17936 msgid ""
17937 "reads stdin and creates from that a file C</foo> in the disk image, and:"
17938 msgstr ""
17939
17940 #. type: verbatim
17941 #: ../fish/guestfish.pod:891
17942 #, no-wrap
17943 msgid ""
17944 " tar-out /etc - | tar tf -\n"
17945 "\n"
17946 msgstr ""
17947
17948 #. type: textblock
17949 #: ../fish/guestfish.pod:893
17950 msgid ""
17951 "writes the tarball to stdout and then pipes that into the external \"tar\" "
17952 "command (see L</PIPES>)."
17953 msgstr ""
17954
17955 #. type: textblock
17956 #: ../fish/guestfish.pod:896
17957 msgid ""
17958 "When using C<-> to read from stdin, the input is read up to the end of "
17959 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
17960 "some arbitrary end marker:"
17961 msgstr ""
17962
17963 #. type: verbatim
17964 #: ../fish/guestfish.pod:900
17965 #, no-wrap
17966 msgid ""
17967 " upload -<<END /foo\n"
17968 " input line 1\n"
17969 " input line 2\n"
17970 " input line 3\n"
17971 " END\n"
17972 "\n"
17973 msgstr ""
17974
17975 #. type: textblock
17976 #: ../fish/guestfish.pod:906
17977 msgid ""
17978 "Any string of characters can be used instead of C<END>.  The end marker must "
17979 "appear on a line of its own, without any preceeding or following characters "
17980 "(not even spaces)."
17981 msgstr ""
17982
17983 #. type: textblock
17984 #: ../fish/guestfish.pod:910
17985 msgid ""
17986 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
17987 "upload local files (so-called \"FileIn\" parameters in the generator)."
17988 msgstr ""
17989
17990 #. type: =head1
17991 #: ../fish/guestfish.pod:913
17992 msgid "EXIT ON ERROR BEHAVIOUR"
17993 msgstr ""
17994
17995 #. type: textblock
17996 #: ../fish/guestfish.pod:915
17997 msgid ""
17998 "By default, guestfish will ignore any errors when in interactive mode (ie. "
17999 "taking commands from a human over a tty), and will exit on the first error "
18000 "in non-interactive mode (scripts, commands given on the command line)."
18001 msgstr ""
18002
18003 #. type: textblock
18004 #: ../fish/guestfish.pod:920
18005 msgid ""
18006 "If you prefix a command with a I<-> character, then that command will not "
18007 "cause guestfish to exit, even if that (one) command returns an error."
18008 msgstr ""
18009
18010 #. type: =head1
18011 #: ../fish/guestfish.pod:924
18012 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18013 msgstr ""
18014
18015 #. type: textblock
18016 #: ../fish/guestfish.pod:926
18017 msgid ""
18018 "Guestfish can be remote-controlled over a socket.  This is useful "
18019 "particularly in shell scripts where you want to make several different "
18020 "changes to a filesystem, but you don't want the overhead of starting up a "
18021 "guestfish process each time."
18022 msgstr ""
18023
18024 #. type: textblock
18025 #: ../fish/guestfish.pod:931
18026 msgid "Start a guestfish server process using:"
18027 msgstr ""
18028
18029 #. type: verbatim
18030 #: ../fish/guestfish.pod:933
18031 #, no-wrap
18032 msgid ""
18033 " eval \"`guestfish --listen`\"\n"
18034 "\n"
18035 msgstr ""
18036
18037 #. type: textblock
18038 #: ../fish/guestfish.pod:935
18039 msgid "and then send it commands by doing:"
18040 msgstr ""
18041
18042 #. type: verbatim
18043 #: ../fish/guestfish.pod:937
18044 #, no-wrap
18045 msgid ""
18046 " guestfish --remote cmd [...]\n"
18047 "\n"
18048 msgstr ""
18049
18050 #. type: textblock
18051 #: ../fish/guestfish.pod:939
18052 msgid "To cause the server to exit, send it the exit command:"
18053 msgstr ""
18054
18055 #. type: textblock
18056 #: ../fish/guestfish.pod:943
18057 msgid ""
18058 "Note that the server will normally exit if there is an error in a command.  "
18059 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18060 "BEHAVIOUR>."
18061 msgstr ""
18062
18063 #. type: =head2
18064 #: ../fish/guestfish.pod:947
18065 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18066 msgstr ""
18067
18068 #. type: textblock
18069 #: ../fish/guestfish.pod:949
18070 msgid ""
18071 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18072 "is how the I<--remote> option knows where to send the commands.  You can "
18073 "have several guestfish listener processes running using:"
18074 msgstr ""
18075
18076 #. type: verbatim
18077 #: ../fish/guestfish.pod:953
18078 #, no-wrap
18079 msgid ""
18080 " eval \"`guestfish --listen`\"\n"
18081 " pid1=$GUESTFISH_PID\n"
18082 " eval \"`guestfish --listen`\"\n"
18083 " pid2=$GUESTFISH_PID\n"
18084 " ...\n"
18085 " guestfish --remote=$pid1 cmd\n"
18086 " guestfish --remote=$pid2 cmd\n"
18087 "\n"
18088 msgstr ""
18089
18090 #. type: =head2
18091 #: ../fish/guestfish.pod:961
18092 msgid "REMOTE CONTROL AND CSH"
18093 msgstr ""
18094
18095 #. type: textblock
18096 #: ../fish/guestfish.pod:963
18097 msgid ""
18098 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18099 "option:"
18100 msgstr ""
18101
18102 #. type: verbatim
18103 #: ../fish/guestfish.pod:966
18104 #, no-wrap
18105 msgid ""
18106 " eval \"`guestfish --listen --csh`\"\n"
18107 "\n"
18108 msgstr ""
18109
18110 #. type: =head2
18111 #: ../fish/guestfish.pod:968
18112 msgid "REMOTE CONTROL DETAILS"
18113 msgstr ""
18114
18115 #. type: textblock
18116 #: ../fish/guestfish.pod:970
18117 msgid ""
18118 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
18119 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
18120 "and C<$PID> is the process ID of the server."
18121 msgstr ""
18122
18123 #. type: textblock
18124 #: ../fish/guestfish.pod:974
18125 msgid "Guestfish client and server versions must match exactly."
18126 msgstr ""
18127
18128 #. type: =head2
18129 #: ../fish/guestfish.pod:976
18130 msgid "REMOTE CONTROL RUN COMMAND HANGING"
18131 msgstr ""
18132
18133 #. type: textblock
18134 #: ../fish/guestfish.pod:978
18135 msgid ""
18136 "Using the C<run> (or C<launch>) command remotely in a command substitution "
18137 "context hangs, ie. don't do (note the backquotes):"
18138 msgstr ""
18139
18140 #. type: verbatim
18141 #: ../fish/guestfish.pod:981
18142 #, no-wrap
18143 msgid ""
18144 " a=`guestfish --remote run`\n"
18145 "\n"
18146 msgstr ""
18147
18148 #. type: textblock
18149 #: ../fish/guestfish.pod:983
18150 msgid ""
18151 "Since the C<run> command produces no output on stdout, this is not useful "
18152 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
18153 "cgi?id=592910>."
18154 msgstr ""
18155
18156 #. type: =head1
18157 #: ../fish/guestfish.pod:987
18158 msgid "PREPARED DISK IMAGES"
18159 msgstr ""
18160
18161 #. type: textblock
18162 #: ../fish/guestfish.pod:989
18163 msgid ""
18164 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18165 "preformatted disk images that guestfish can make for you to save typing.  "
18166 "This is particularly useful for testing purposes.  This option is used "
18167 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18168 "can be mixed with I<-a>)."
18169 msgstr ""
18170
18171 #. type: textblock
18172 #: ../fish/guestfish.pod:995
18173 msgid ""
18174 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
18175 "the second and so on.  Existing files in the current directory are "
18176 "I<overwritten>."
18177 msgstr ""
18178
18179 #. type: textblock
18180 #: ../fish/guestfish.pod:999
18181 msgid ""
18182 "The type briefly describes how the disk should be sized, partitioned, how "
18183 "filesystem(s) should be created, and how content should be added.  "
18184 "Optionally the type can be followed by extra parameters, separated by C<:> "
18185 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
18186 "allocated disk, containing a single partition, with the partition formatted "
18187 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
18188 "disk instead."
18189 msgstr ""
18190
18191 #. type: textblock
18192 #: ../fish/guestfish.pod:1007
18193 msgid "To list the available types and any extra parameters they take, run:"
18194 msgstr ""
18195
18196 #. type: textblock
18197 #: ../fish/guestfish.pod:1011
18198 msgid ""
18199 "Note that the prepared filesystem is not mounted.  You would usually have to "
18200 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
18201 msgstr ""
18202
18203 #. type: textblock
18204 #: ../fish/guestfish.pod:1015
18205 msgid ""
18206 "If any I<-N> or I<--new> options are given, the guest is automatically "
18207 "launched."
18208 msgstr ""
18209
18210 #. type: textblock
18211 #: ../fish/guestfish.pod:1020
18212 msgid "Create a 100MB disk with an ext4-formatted partition:"
18213 msgstr ""
18214
18215 #. type: verbatim
18216 #: ../fish/guestfish.pod:1022
18217 #, no-wrap
18218 msgid ""
18219 " guestfish -N fs:ext4\n"
18220 "\n"
18221 msgstr ""
18222
18223 #. type: textblock
18224 #: ../fish/guestfish.pod:1024
18225 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
18226 msgstr ""
18227
18228 #. type: verbatim
18229 #: ../fish/guestfish.pod:1026
18230 #, no-wrap
18231 msgid ""
18232 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
18233 "\n"
18234 msgstr ""
18235
18236 #. type: textblock
18237 #: ../fish/guestfish.pod:1028
18238 msgid "Create a blank 200MB disk:"
18239 msgstr ""
18240
18241 #. type: verbatim
18242 #: ../fish/guestfish.pod:1030
18243 #, no-wrap
18244 msgid ""
18245 " guestfish -N disk:200M\n"
18246 "\n"
18247 msgstr ""
18248
18249 #. type: =head1
18250 #: ../fish/guestfish.pod:1032
18251 msgid "PROGRESS BARS"
18252 msgstr ""
18253
18254 #. type: textblock
18255 #: ../fish/guestfish.pod:1034
18256 msgid ""
18257 "Some (not all) long-running commands send progress notification messages as "
18258 "they are running.  Guestfish turns these messages into progress bars."
18259 msgstr ""
18260
18261 #. type: textblock
18262 #: ../fish/guestfish.pod:1038
18263 msgid ""
18264 "When a command that supports progress bars takes longer than two seconds to "
18265 "run, and if progress bars are enabled, then you will see one appearing below "
18266 "the command:"
18267 msgstr ""
18268
18269 #. type: verbatim
18270 #: ../fish/guestfish.pod:1042
18271 #, no-wrap
18272 msgid ""
18273 " ><fs> copy-size /large-file /another-file 2048M\n"
18274 " / 10% [#####-----------------------------------------] 00:30\n"
18275 "\n"
18276 msgstr ""
18277
18278 #. type: textblock
18279 #: ../fish/guestfish.pod:1045
18280 msgid ""
18281 "The spinner on the left hand side moves round once for every progress "
18282 "notification received from the backend.  This is a (reasonably) golden "
18283 "assurance that the command is \"doing something\" even if the progress bar "
18284 "is not moving, because the command is able to send the progress "
18285 "notifications.  When the bar reaches 100% and the command finishes, the "
18286 "spinner disappears."
18287 msgstr ""
18288
18289 #. type: textblock
18290 #: ../fish/guestfish.pod:1052
18291 msgid ""
18292 "Progress bars are enabled by default when guestfish is used interactively.  "
18293 "You can enable them even for non-interactive modes using I<--progress-bars>, "
18294 "and you can disable them completely using I<--no-progress-bars>."
18295 msgstr ""
18296
18297 #. type: =head1
18298 #: ../fish/guestfish.pod:1057
18299 msgid "GUESTFISH COMMANDS"
18300 msgstr ""
18301
18302 #. type: textblock
18303 #: ../fish/guestfish.pod:1059
18304 msgid ""
18305 "The commands in this section are guestfish convenience commands, in other "
18306 "words, they are not part of the L<guestfs(3)> API."
18307 msgstr ""
18308
18309 #. type: =head2
18310 #: ../fish/guestfish.pod:1062
18311 msgid "help"
18312 msgstr ""
18313
18314 #. type: verbatim
18315 #: ../fish/guestfish.pod:1064
18316 #, no-wrap
18317 msgid ""
18318 " help\n"
18319 " help cmd\n"
18320 "\n"
18321 msgstr ""
18322
18323 #. type: textblock
18324 #: ../fish/guestfish.pod:1067
18325 msgid "Without any parameter, this provides general help."
18326 msgstr ""
18327
18328 #. type: textblock
18329 #: ../fish/guestfish.pod:1069
18330 msgid "With a C<cmd> parameter, this displays detailed help for that command."
18331 msgstr ""
18332
18333 #. type: =head2
18334 #: ../fish/guestfish.pod:1071
18335 msgid "quit | exit"
18336 msgstr ""
18337
18338 #. type: textblock
18339 #: ../fish/guestfish.pod:1073
18340 msgid "This exits guestfish.  You can also use C<^D> key."
18341 msgstr ""
18342
18343 #. type: textblock
18344 #: ../fish/guestfish.pod:1075
18345 msgid "@FISH_COMMANDS@"
18346 msgstr ""
18347
18348 #. type: =head1
18349 #: ../fish/guestfish.pod:1077
18350 msgid "COMMANDS"
18351 msgstr ""
18352
18353 #. type: textblock
18354 #: ../fish/guestfish.pod:1079 ../src/guestfs.pod:1475
18355 msgid "@ACTIONS@"
18356 msgstr ""
18357
18358 #. type: =head1
18359 #: ../fish/guestfish.pod:1081 ../test-tool/libguestfs-test-tool.pod:77
18360 msgid "EXIT CODE"
18361 msgstr ""
18362
18363 #. type: textblock
18364 #: ../fish/guestfish.pod:1083
18365 msgid ""
18366 "guestfish returns 0 if the commands completed without error, or 1 if there "
18367 "was an error."
18368 msgstr ""
18369
18370 #. type: =item
18371 #: ../fish/guestfish.pod:1090
18372 msgid "EDITOR"
18373 msgstr ""
18374
18375 #. type: textblock
18376 #: ../fish/guestfish.pod:1092
18377 msgid ""
18378 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
18379 "C<vi>."
18380 msgstr ""
18381
18382 #. type: =item
18383 #: ../fish/guestfish.pod:1095 ../src/guestfs.pod:2985
18384 msgid "FEBOOTSTRAP_KERNEL"
18385 msgstr ""
18386
18387 #. type: =item
18388 #: ../fish/guestfish.pod:1097 ../src/guestfs.pod:2987
18389 msgid "FEBOOTSTRAP_MODULES"
18390 msgstr ""
18391
18392 #. type: textblock
18393 #: ../fish/guestfish.pod:1099 ../src/guestfs.pod:2989
18394 msgid ""
18395 "These two environment variables allow the kernel that libguestfs uses in the "
18396 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
18397 "most recent host kernel is chosen.  For more information about kernel "
18398 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
18399 "available in febootstrap E<ge> 3.8."
18400 msgstr ""
18401
18402 #. type: =item
18403 #: ../fish/guestfish.pod:1105
18404 msgid "GUESTFISH_DISPLAY_IMAGE"
18405 msgstr ""
18406
18407 #. type: textblock
18408 #: ../fish/guestfish.pod:1107
18409 msgid ""
18410 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
18411 "If not set, it uses L<display(1)>."
18412 msgstr ""
18413
18414 #. type: =item
18415 #: ../fish/guestfish.pod:1110
18416 msgid "GUESTFISH_PID"
18417 msgstr ""
18418
18419 #. type: textblock
18420 #: ../fish/guestfish.pod:1112
18421 msgid ""
18422 "Used with the I<--remote> option to specify the remote guestfish process to "
18423 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
18424 msgstr ""
18425
18426 #. type: =item
18427 #: ../fish/guestfish.pod:1116
18428 msgid "HEXEDITOR"
18429 msgstr ""
18430
18431 #. type: textblock
18432 #: ../fish/guestfish.pod:1118
18433 msgid ""
18434 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
18435 "not specified, the external L<hexedit(1)> program is used."
18436 msgstr ""
18437
18438 #. type: =item
18439 #: ../fish/guestfish.pod:1122
18440 msgid "HOME"
18441 msgstr ""
18442
18443 #. type: textblock
18444 #: ../fish/guestfish.pod:1124
18445 msgid ""
18446 "If compiled with GNU readline support, various files in the home directory "
18447 "can be used.  See L</FILES>."
18448 msgstr ""
18449
18450 #. type: =item
18451 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:2995
18452 msgid "LIBGUESTFS_APPEND"
18453 msgstr ""
18454
18455 #. type: textblock
18456 #: ../fish/guestfish.pod:1129 ../src/guestfs.pod:2997
18457 msgid "Pass additional options to the guest kernel."
18458 msgstr ""
18459
18460 #. type: =item
18461 #: ../fish/guestfish.pod:1131 ../src/guestfs.pod:2999
18462 msgid "LIBGUESTFS_DEBUG"
18463 msgstr ""
18464
18465 #. type: textblock
18466 #: ../fish/guestfish.pod:1133
18467 msgid ""
18468 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
18469 "effect as using the B<-v> option."
18470 msgstr ""
18471
18472 #. type: =item
18473 #: ../fish/guestfish.pod:1136 ../src/guestfs.pod:3004
18474 msgid "LIBGUESTFS_MEMSIZE"
18475 msgstr ""
18476
18477 #. type: textblock
18478 #: ../fish/guestfish.pod:1138 ../src/guestfs.pod:3006
18479 msgid ""
18480 "Set the memory allocated to the qemu process, in megabytes.  For example:"
18481 msgstr ""
18482
18483 #. type: verbatim
18484 #: ../fish/guestfish.pod:1141 ../src/guestfs.pod:3009
18485 #, no-wrap
18486 msgid ""
18487 " LIBGUESTFS_MEMSIZE=700\n"
18488 "\n"
18489 msgstr ""
18490
18491 #. type: =item
18492 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:3011
18493 msgid "LIBGUESTFS_PATH"
18494 msgstr ""
18495
18496 #. type: textblock
18497 #: ../fish/guestfish.pod:1145
18498 msgid ""
18499 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
18500 "the discussion of paths in L<guestfs(3)>."
18501 msgstr ""
18502
18503 #. type: =item
18504 #: ../fish/guestfish.pod:1148 ../src/guestfs.pod:3016
18505 msgid "LIBGUESTFS_QEMU"
18506 msgstr ""
18507
18508 #. type: textblock
18509 #: ../fish/guestfish.pod:1150 ../src/guestfs.pod:3018
18510 msgid ""
18511 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
18512 "which was found at compile time by the configure script is used."
18513 msgstr ""
18514
18515 #. type: =item
18516 #: ../fish/guestfish.pod:1154 ../src/guestfs.pod:3024
18517 msgid "LIBGUESTFS_TRACE"
18518 msgstr ""
18519
18520 #. type: textblock
18521 #: ../fish/guestfish.pod:1156
18522 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
18523 msgstr ""
18524
18525 #. type: =item
18526 #: ../fish/guestfish.pod:1158
18527 msgid "PAGER"
18528 msgstr ""
18529
18530 #. type: textblock
18531 #: ../fish/guestfish.pod:1160
18532 msgid ""
18533 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
18534 "C<more>."
18535 msgstr ""
18536
18537 #. type: =item
18538 #: ../fish/guestfish.pod:1163 ../src/guestfs.pod:3029
18539 msgid "TMPDIR"
18540 msgstr ""
18541
18542 #. type: textblock
18543 #: ../fish/guestfish.pod:1165 ../src/guestfs.pod:3031
18544 msgid ""
18545 "Location of temporary directory, defaults to C</tmp> except for the cached "
18546 "supermin appliance which defaults to C</var/tmp>."
18547 msgstr ""
18548
18549 #. type: textblock
18550 #: ../fish/guestfish.pod:1168 ../src/guestfs.pod:3034
18551 msgid ""
18552 "If libguestfs was compiled to use the supermin appliance then the real "
18553 "appliance is cached in this directory, shared between all handles belonging "
18554 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
18555 "use in case C</var/tmp> is not large enough."
18556 msgstr ""
18557
18558 #. type: =head1
18559 #: ../fish/guestfish.pod:1176 ../fuse/guestmount.pod:288
18560 #: ../rescue/virt-rescue.pod:269
18561 msgid "FILES"
18562 msgstr ""
18563
18564 #. type: =item
18565 #: ../fish/guestfish.pod:1180 ../fuse/guestmount.pod:292
18566 #: ../rescue/virt-rescue.pod:273
18567 msgid "$HOME/.libguestfs-tools.rc"
18568 msgstr ""
18569
18570 #. type: =item
18571 #: ../fish/guestfish.pod:1182 ../fuse/guestmount.pod:294
18572 #: ../rescue/virt-rescue.pod:275
18573 msgid "/etc/libguestfs-tools.conf"
18574 msgstr ""
18575
18576 #. type: textblock
18577 #: ../fish/guestfish.pod:1184 ../fuse/guestmount.pod:296
18578 #: ../rescue/virt-rescue.pod:277
18579 msgid ""
18580 "This configuration file controls the default read-only or read-write mode "
18581 "(I<--ro> or I<--rw>)."
18582 msgstr ""
18583
18584 #. type: textblock
18585 #: ../fish/guestfish.pod:1187
18586 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
18587 msgstr ""
18588
18589 #. type: =item
18590 #: ../fish/guestfish.pod:1189
18591 msgid "$HOME/.guestfish"
18592 msgstr ""
18593
18594 #. type: textblock
18595 #: ../fish/guestfish.pod:1191
18596 msgid ""
18597 "If compiled with GNU readline support, then the command history is saved in "
18598 "this file."
18599 msgstr ""
18600
18601 #. type: =item
18602 #: ../fish/guestfish.pod:1194
18603 msgid "$HOME/.inputrc"
18604 msgstr ""
18605
18606 #. type: =item
18607 #: ../fish/guestfish.pod:1196
18608 msgid "/etc/inputrc"
18609 msgstr ""
18610
18611 #. type: textblock
18612 #: ../fish/guestfish.pod:1198
18613 msgid ""
18614 "If compiled with GNU readline support, then these files can be used to "
18615 "configure readline.  For further information, please see L<readline(3)/"
18616 "INITIALIZATION FILE>."
18617 msgstr ""
18618
18619 #. type: textblock
18620 #: ../fish/guestfish.pod:1202
18621 msgid "To write rules which only apply to guestfish, use:"
18622 msgstr ""
18623
18624 #. type: verbatim
18625 #: ../fish/guestfish.pod:1204
18626 #, no-wrap
18627 msgid ""
18628 " $if guestfish\n"
18629 " ...\n"
18630 " $endif\n"
18631 "\n"
18632 msgstr ""
18633
18634 #. type: textblock
18635 #: ../fish/guestfish.pod:1208
18636 msgid ""
18637 "Variables that you can set in inputrc that change the behaviour of guestfish "
18638 "in useful ways include:"
18639 msgstr ""
18640
18641 #. type: =item
18642 #: ../fish/guestfish.pod:1213
18643 msgid "completion-ignore-case (default: on)"
18644 msgstr ""
18645
18646 #. type: textblock
18647 #: ../fish/guestfish.pod:1215
18648 msgid ""
18649 "By default, guestfish will ignore case when tab-completing paths on the "
18650 "disk.  Use:"
18651 msgstr ""
18652
18653 #. type: verbatim
18654 #: ../fish/guestfish.pod:1218
18655 #, no-wrap
18656 msgid ""
18657 " set completion-ignore-case off\n"
18658 "\n"
18659 msgstr ""
18660
18661 #. type: textblock
18662 #: ../fish/guestfish.pod:1220
18663 msgid "to make guestfish case sensitive."
18664 msgstr ""
18665
18666 #. type: =item
18667 #: ../fish/guestfish.pod:1224
18668 msgid "test1.img"
18669 msgstr ""
18670
18671 #. type: =item
18672 #: ../fish/guestfish.pod:1226
18673 msgid "test2.img (etc)"
18674 msgstr ""
18675
18676 #. type: textblock
18677 #: ../fish/guestfish.pod:1228
18678 msgid ""
18679 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
18680 "will be created in the file C<test1.img> in the current directory.  The "
18681 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
18682 "the same name will be overwritten."
18683 msgstr ""
18684
18685 #. type: textblock
18686 #: ../fish/guestfish.pod:1237
18687 msgid ""
18688 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
18689 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
18690 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
18691 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
18692 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
18693 ">, L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
18694 msgstr ""
18695
18696 #. type: textblock
18697 #: ../fish/guestfish.pod:1266 ../src/guestfs.pod:3120
18698 #: ../test-tool/libguestfs-test-tool.pod:99
18699 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
18700 msgstr ""
18701
18702 #. type: textblock
18703 #: ../fish/virt-copy-in.pod:5
18704 msgid ""
18705 "virt-copy-in - Copy files and directories into a virtual machine disk image."
18706 msgstr ""
18707
18708 #. type: verbatim
18709 #: ../fish/virt-copy-in.pod:9
18710 #, no-wrap
18711 msgid ""
18712 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
18713 "\n"
18714 msgstr ""
18715
18716 #. type: verbatim
18717 #: ../fish/virt-copy-in.pod:11
18718 #, no-wrap
18719 msgid ""
18720 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
18721 "\n"
18722 msgstr ""
18723
18724 #. type: textblock
18725 #: ../fish/virt-copy-in.pod:15
18726 msgid ""
18727 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
18728 "causing disk corruption.  The virtual machine must be shut down before you "
18729 "use this command."
18730 msgstr ""
18731
18732 #. type: textblock
18733 #: ../fish/virt-copy-in.pod:21
18734 msgid ""
18735 "C<virt-copy-in> copies files and directories from the local disk into a "
18736 "virtual machine disk image or named libvirt domain."
18737 msgstr ""
18738
18739 #. type: textblock
18740 #: ../fish/virt-copy-in.pod:24
18741 msgid ""
18742 "You can give one of more filenames and directories on the command line.  "
18743 "Directories are copied in recursively.  The final parameter must be the "
18744 "destination directory in the disk image which must be an absolute path "
18745 "starting with a C</> character."
18746 msgstr ""
18747
18748 #. type: verbatim
18749 #: ../fish/virt-copy-in.pod:33
18750 #, no-wrap
18751 msgid ""
18752 " virt-copy-in -d MyGuest resolv.conf /etc\n"
18753 "\n"
18754 msgstr ""
18755
18756 #. type: textblock
18757 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
18758 msgid "Upload a home directory to a guest:"
18759 msgstr ""
18760
18761 #. type: verbatim
18762 #: ../fish/virt-copy-in.pod:37
18763 #, no-wrap
18764 msgid ""
18765 " virt-copy-in -d MyGuest skel /home\n"
18766 "\n"
18767 msgstr ""
18768
18769 #. type: =head1
18770 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
18771 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
18772 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
18773 msgstr ""
18774
18775 #. type: textblock
18776 #: ../fish/virt-copy-in.pod:41
18777 msgid ""
18778 "This command is just a simple shell script wrapper around the L<guestfish(1)"
18779 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
18780 "are probably better off using guestfish directly."
18781 msgstr ""
18782
18783 #. type: textblock
18784 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
18785 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
18786 msgid ""
18787 "Since the shell script just passes options straight to guestfish, read "
18788 "L<guestfish(1)> to see the full list of options."
18789 msgstr ""
18790
18791 #. type: textblock
18792 #: ../fish/virt-copy-in.pod:52
18793 msgid ""
18794 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
18795 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
18796 msgstr ""
18797
18798 #. type: textblock
18799 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
18800 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
18801 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
18802 msgstr ""
18803
18804 #. type: textblock
18805 #: ../fish/virt-copy-out.pod:5
18806 msgid ""
18807 "virt-copy-out - Copy files and directories out of a virtual machine disk "
18808 "image."
18809 msgstr ""
18810
18811 #. type: verbatim
18812 #: ../fish/virt-copy-out.pod:9
18813 #, no-wrap
18814 msgid ""
18815 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
18816 "\n"
18817 msgstr ""
18818
18819 #. type: verbatim
18820 #: ../fish/virt-copy-out.pod:11
18821 #, no-wrap
18822 msgid ""
18823 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
18824 "\n"
18825 msgstr ""
18826
18827 #. type: textblock
18828 #: ../fish/virt-copy-out.pod:15
18829 msgid ""
18830 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
18831 "image or named libvirt domain."
18832 msgstr ""
18833
18834 #. type: textblock
18835 #: ../fish/virt-copy-out.pod:18
18836 msgid ""
18837 "You can give one of more filenames and directories on the command line.  "
18838 "Directories are copied out recursively."
18839 msgstr ""
18840
18841 #. type: textblock
18842 #: ../fish/virt-copy-out.pod:23
18843 msgid "Download the home directories from a virtual machine:"
18844 msgstr ""
18845
18846 #. type: verbatim
18847 #: ../fish/virt-copy-out.pod:25
18848 #, no-wrap
18849 msgid ""
18850 " mkdir homes\n"
18851 " virt-copy-out -d MyGuest /home homes\n"
18852 "\n"
18853 msgstr ""
18854
18855 #. type: textblock
18856 #: ../fish/virt-copy-out.pod:30
18857 msgid ""
18858 "This command is just a simple shell script wrapper around the L<guestfish(1)"
18859 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
18860 "are probably better off using guestfish directly."
18861 msgstr ""
18862
18863 #. type: textblock
18864 #: ../fish/virt-copy-out.pod:41
18865 msgid ""
18866 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
18867 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
18868 msgstr ""
18869
18870 #. type: textblock
18871 #: ../fish/virt-tar-in.pod:5
18872 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
18873 msgstr ""
18874
18875 #. type: verbatim
18876 #: ../fish/virt-tar-in.pod:9
18877 #, no-wrap
18878 msgid ""
18879 " virt-tar-in -a disk.img data.tar /destination\n"
18880 "\n"
18881 msgstr ""
18882
18883 #. type: verbatim
18884 #: ../fish/virt-tar-in.pod:11
18885 #, no-wrap
18886 msgid ""
18887 " virt-tar-in -d domain data.tar /destination\n"
18888 "\n"
18889 msgstr ""
18890
18891 #. type: verbatim
18892 #: ../fish/virt-tar-in.pod:13
18893 #, no-wrap
18894 msgid ""
18895 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
18896 "\n"
18897 msgstr ""
18898
18899 #. type: textblock
18900 #: ../fish/virt-tar-in.pod:17
18901 msgid ""
18902 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
18903 "causing disk corruption.  The virtual machine must be shut down before you "
18904 "use this command."
18905 msgstr ""
18906
18907 #. type: textblock
18908 #: ../fish/virt-tar-in.pod:23
18909 msgid ""
18910 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
18911 "image or named libvirt domain."
18912 msgstr ""
18913
18914 #. type: textblock
18915 #: ../fish/virt-tar-in.pod:26
18916 msgid ""
18917 "The first parameter is the tar file.  Use C<-> to read the tar file from "
18918 "standard input.  The second parameter is the absolute target directory to "
18919 "unpack into."
18920 msgstr ""
18921
18922 #. type: verbatim
18923 #: ../fish/virt-tar-in.pod:34
18924 #, no-wrap
18925 msgid ""
18926 " virt-tar-in -d MyGuest homes.tar /home\n"
18927 "\n"
18928 msgstr ""
18929
18930 #. type: textblock
18931 #: ../fish/virt-tar-in.pod:38
18932 msgid ""
18933 "This command is just a simple shell script wrapper around the L<guestfish(1)"
18934 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
18935 "probably better off using guestfish directly."
18936 msgstr ""
18937
18938 #. type: textblock
18939 #: ../fish/virt-tar-in.pod:49
18940 msgid ""
18941 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
18942 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
18943 "org/>."
18944 msgstr ""
18945
18946 #. type: textblock
18947 #: ../fish/virt-tar-out.pod:5
18948 msgid ""
18949 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
18950 msgstr ""
18951
18952 #. type: verbatim
18953 #: ../fish/virt-tar-out.pod:9
18954 #, no-wrap
18955 msgid ""
18956 " virt-tar-out -a disk.img /dir files.tar\n"
18957 "\n"
18958 msgstr ""
18959
18960 #. type: verbatim
18961 #: ../fish/virt-tar-out.pod:11
18962 #, no-wrap
18963 msgid ""
18964 " virt-tar-out -d domain /dir files.tar\n"
18965 "\n"
18966 msgstr ""
18967
18968 #. type: verbatim
18969 #: ../fish/virt-tar-out.pod:13
18970 #, no-wrap
18971 msgid ""
18972 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
18973 "\n"
18974 msgstr ""
18975
18976 #. type: textblock
18977 #: ../fish/virt-tar-out.pod:17
18978 msgid ""
18979 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
18980 msgstr ""
18981
18982 #. type: textblock
18983 #: ../fish/virt-tar-out.pod:20
18984 msgid ""
18985 "The first parameter is the absolute path of the virtual machine directory.  "
18986 "The second parameter is the tar file to write.  Use C<-> to write to "
18987 "standard output."
18988 msgstr ""
18989
18990 #. type: textblock
18991 #: ../fish/virt-tar-out.pod:26
18992 msgid "Download the home directories from a guest:"
18993 msgstr ""
18994
18995 #. type: verbatim
18996 #: ../fish/virt-tar-out.pod:28
18997 #, no-wrap
18998 msgid ""
18999 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
19000 "\n"
19001 msgstr ""
19002
19003 #. type: textblock
19004 #: ../fish/virt-tar-out.pod:32
19005 msgid ""
19006 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19007 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
19008 "are probably better off using guestfish directly."
19009 msgstr ""
19010
19011 #. type: textblock
19012 #: ../fish/virt-tar-out.pod:43
19013 msgid ""
19014 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19015 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
19016 msgstr ""
19017
19018 #. type: textblock
19019 #: ../fuse/guestmount.pod:5
19020 msgid ""
19021 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
19022 msgstr ""
19023
19024 #. type: verbatim
19025 #: ../fuse/guestmount.pod:9
19026 #, no-wrap
19027 msgid ""
19028 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
19029 "\n"
19030 msgstr ""
19031
19032 #. type: verbatim
19033 #: ../fuse/guestmount.pod:11
19034 #, no-wrap
19035 msgid ""
19036 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
19037 "\n"
19038 msgstr ""
19039
19040 #. type: verbatim
19041 #: ../fuse/guestmount.pod:13
19042 #, no-wrap
19043 msgid ""
19044 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
19045 "\n"
19046 msgstr ""
19047
19048 #. type: textblock
19049 #: ../fuse/guestmount.pod:17
19050 msgid ""
19051 "You must I<not> use C<guestmount> in read-write mode on live virtual "
19052 "machines.  If you do this, you risk disk corruption in the VM."
19053 msgstr ""
19054
19055 #. type: textblock
19056 #: ../fuse/guestmount.pod:22
19057 msgid ""
19058 "The guestmount program can be used to mount virtual machine filesystems and "
19059 "other disk images on the host.  It uses libguestfs for access to the guest "
19060 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
19061 "a mountable device."
19062 msgstr ""
19063
19064 #. type: textblock
19065 #: ../fuse/guestmount.pod:27
19066 msgid ""
19067 "Along with other options, you have to give at least one device (I<-a> "
19068 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
19069 "option) or use the I<-i> inspection option.  How this works is better "
19070 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
19071 "below."
19072 msgstr ""
19073
19074 #. type: textblock
19075 #: ../fuse/guestmount.pod:33
19076 msgid ""
19077 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
19078 "by you, and the filesystem will not be visible to any other users unless you "
19079 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
19080 "the filesystem, use the C<fusermount -u> command."
19081 msgstr ""
19082
19083 #. type: textblock
19084 #: ../fuse/guestmount.pod:41
19085 msgid ""
19086 "For a typical Windows guest which has its main filesystem on the first "
19087 "partition:"
19088 msgstr ""
19089
19090 #. type: verbatim
19091 #: ../fuse/guestmount.pod:44
19092 #, no-wrap
19093 msgid ""
19094 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
19095 "\n"
19096 msgstr ""
19097
19098 #. type: textblock
19099 #: ../fuse/guestmount.pod:46
19100 msgid ""
19101 "For a typical Linux guest which has a /boot filesystem on the first "
19102 "partition, and the root filesystem on a logical volume:"
19103 msgstr ""
19104
19105 #. type: verbatim
19106 #: ../fuse/guestmount.pod:49
19107 #, no-wrap
19108 msgid ""
19109 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
19110 "\n"
19111 msgstr ""
19112
19113 #. type: textblock
19114 #: ../fuse/guestmount.pod:51
19115 msgid "To get libguestfs to detect guest mountpoints for you:"
19116 msgstr ""
19117
19118 #. type: verbatim
19119 #: ../fuse/guestmount.pod:53
19120 #, no-wrap
19121 msgid ""
19122 " guestmount -a guest.img -i --ro /mnt\n"
19123 "\n"
19124 msgstr ""
19125
19126 #. type: textblock
19127 #: ../fuse/guestmount.pod:55
19128 msgid "For a libvirt guest called \"Guest\" you could do:"
19129 msgstr ""
19130
19131 #. type: verbatim
19132 #: ../fuse/guestmount.pod:57
19133 #, no-wrap
19134 msgid ""
19135 " guestmount -d Guest -i --ro /mnt\n"
19136 "\n"
19137 msgstr ""
19138
19139 #. type: textblock
19140 #: ../fuse/guestmount.pod:59
19141 msgid ""
19142 "If you don't know what filesystems are contained in a guest or disk image, "
19143 "use L<virt-filesystems(1)> first:"
19144 msgstr ""
19145
19146 #. type: verbatim
19147 #: ../fuse/guestmount.pod:62
19148 #, no-wrap
19149 msgid ""
19150 " virt-filesystems MyGuest\n"
19151 "\n"
19152 msgstr ""
19153
19154 #. type: textblock
19155 #: ../fuse/guestmount.pod:64
19156 msgid ""
19157 "If you want to trace the libguestfs calls but without excessive debugging "
19158 "information, we recommend:"
19159 msgstr ""
19160
19161 #. type: verbatim
19162 #: ../fuse/guestmount.pod:67
19163 #, no-wrap
19164 msgid ""
19165 " guestmount [...] --trace /mnt\n"
19166 "\n"
19167 msgstr ""
19168
19169 #. type: textblock
19170 #: ../fuse/guestmount.pod:69
19171 msgid "If you want to debug the program, we recommend:"
19172 msgstr ""
19173
19174 #. type: verbatim
19175 #: ../fuse/guestmount.pod:71
19176 #, no-wrap
19177 msgid ""
19178 " guestmount [...] --trace --verbose /mnt\n"
19179 "\n"
19180 msgstr ""
19181
19182 #. type: =head1
19183 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
19184 #: ../resize/virt-resize.pod:544
19185 msgid "NOTES"
19186 msgstr ""
19187
19188 #. type: =head2
19189 #: ../fuse/guestmount.pod:75
19190 msgid "Other users cannot see the filesystem by default"
19191 msgstr ""
19192
19193 #. type: textblock
19194 #: ../fuse/guestmount.pod:77
19195 msgid ""
19196 "If you mount a filesystem as one user (eg. root), then other users will not "
19197 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
19198 "option when mounting:"
19199 msgstr ""
19200
19201 #. type: verbatim
19202 #: ../fuse/guestmount.pod:81
19203 #, no-wrap
19204 msgid ""
19205 " sudo guestmount [...] -o allow_other /mnt\n"
19206 "\n"
19207 msgstr ""
19208
19209 #. type: textblock
19210 #: ../fuse/guestmount.pod:91
19211 msgid "Add a block device or virtual machine image."
19212 msgstr ""
19213
19214 #. type: =item
19215 #: ../fuse/guestmount.pod:114
19216 msgid "B<--dir-cache-timeout N>"
19217 msgstr ""
19218
19219 #. type: textblock
19220 #: ../fuse/guestmount.pod:116
19221 msgid ""
19222 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
19223 "seconds.  The readdir cache [actually, there are several semi-independent "
19224 "caches] is populated after a readdir(2) call with the stat and extended "
19225 "attributes of the files in the directory, in anticipation that they will be "
19226 "requested soon after."
19227 msgstr ""
19228
19229 #. type: textblock
19230 #: ../fuse/guestmount.pod:122
19231 msgid ""
19232 "There is also a different attribute cache implemented by FUSE (see the FUSE "
19233 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
19234 "requests, only cache existing ones."
19235 msgstr ""
19236
19237 #. type: textblock
19238 #: ../fuse/guestmount.pod:142
19239 msgid ""
19240 "If you have untrusted raw-format guest disk images, you should use this "
19241 "option to specify the disk format.  This avoids a possible security problem "
19242 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
19243 "guestfs_add_drive_opts>."
19244 msgstr ""
19245
19246 #. type: =item
19247 #: ../fuse/guestmount.pod:147
19248 msgid "B<--fuse-help>"
19249 msgstr ""
19250
19251 #. type: textblock
19252 #: ../fuse/guestmount.pod:149
19253 msgid "Display help on special FUSE options (see I<-o> below)."
19254 msgstr ""
19255
19256 #. type: textblock
19257 #: ../fuse/guestmount.pod:153
19258 msgid "Display brief help and exit."
19259 msgstr ""
19260
19261 #. type: textblock
19262 #: ../fuse/guestmount.pod:177
19263 msgid ""
19264 "Mount the named partition or logical volume on the given mountpoint B<in the "
19265 "guest> (this has nothing to do with mountpoints in the host)."
19266 msgstr ""
19267
19268 #. type: textblock
19269 #: ../fuse/guestmount.pod:180
19270 msgid ""
19271 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
19272 "something on C</>."
19273 msgstr ""
19274
19275 #. type: textblock
19276 #: ../fuse/guestmount.pod:197
19277 msgid ""
19278 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
19279 "unmounted.  If you specify this option, then we don't attempt to sync the "
19280 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
19281 msgstr ""
19282
19283 #. type: =item
19284 #: ../fuse/guestmount.pod:202
19285 msgid "B<-o option>"
19286 msgstr ""
19287
19288 #. type: =item
19289 #: ../fuse/guestmount.pod:204
19290 msgid "B<--option option>"
19291 msgstr ""
19292
19293 #. type: textblock
19294 #: ../fuse/guestmount.pod:206
19295 msgid "Pass extra options to FUSE."
19296 msgstr ""
19297
19298 #. type: textblock
19299 #: ../fuse/guestmount.pod:208
19300 msgid ""
19301 "To get a list of all the extra options supported by FUSE, use the command "
19302 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
19303 "of them are a good idea."
19304 msgstr ""
19305
19306 #. type: verbatim
19307 #: ../fuse/guestmount.pod:212
19308 #, no-wrap
19309 msgid ""
19310 " guestmount --fuse-help\n"
19311 "\n"
19312 msgstr ""
19313
19314 #. type: textblock
19315 #: ../fuse/guestmount.pod:214
19316 msgid "Some potentially useful FUSE options:"
19317 msgstr ""
19318
19319 #. type: =item
19320 #: ../fuse/guestmount.pod:218
19321 msgid "B<-o allow_other>"
19322 msgstr ""
19323
19324 #. type: textblock
19325 #: ../fuse/guestmount.pod:220
19326 msgid "Allow other users to see the filesystem."
19327 msgstr ""
19328
19329 #. type: =item
19330 #: ../fuse/guestmount.pod:222
19331 msgid "B<-o attr_timeout=N>"
19332 msgstr ""
19333
19334 #. type: textblock
19335 #: ../fuse/guestmount.pod:224
19336 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
19337 msgstr ""
19338
19339 #. type: =item
19340 #: ../fuse/guestmount.pod:226
19341 msgid "B<-o kernel_cache>"
19342 msgstr ""
19343
19344 #. type: textblock
19345 #: ../fuse/guestmount.pod:228
19346 msgid ""
19347 "Allow the kernel to cache files (reduces the number of reads that have to go "
19348 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
19349 "afford the extra memory usage."
19350 msgstr ""
19351
19352 #. type: =item
19353 #: ../fuse/guestmount.pod:232
19354 msgid "B<-o uid=N> B<-o gid=N>"
19355 msgstr ""
19356
19357 #. type: textblock
19358 #: ../fuse/guestmount.pod:234
19359 msgid ""
19360 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
19361 "the chosen values."
19362 msgstr ""
19363
19364 #. type: textblock
19365 #: ../fuse/guestmount.pod:243
19366 msgid ""
19367 "Add devices and mount everything read-only.  Also disallow writes and make "
19368 "the disk appear read-only to FUSE."
19369 msgstr ""
19370
19371 #. type: textblock
19372 #: ../fuse/guestmount.pod:246
19373 msgid ""
19374 "This is highly recommended if you are not going to edit the guest disk.  If "
19375 "the guest is running and this option is I<not> supplied, then there is a "
19376 "strong risk of disk corruption in the guest.  We try to prevent this from "
19377 "happening, but it is not always possible."
19378 msgstr ""
19379
19380 #. type: textblock
19381 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
19382 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
19383 msgstr ""
19384
19385 #. type: textblock
19386 #: ../fuse/guestmount.pod:255
19387 msgid "Enable SELinux support for the guest."
19388 msgstr ""
19389
19390 #. type: textblock
19391 #: ../fuse/guestmount.pod:261
19392 msgid "Enable verbose messages from underlying libguestfs."
19393 msgstr ""
19394
19395 #. type: textblock
19396 #: ../fuse/guestmount.pod:267
19397 msgid "Display the program version and exit."
19398 msgstr ""
19399
19400 #. type: textblock
19401 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299
19402 #: ../rescue/virt-rescue.pod:197 ../rescue/virt-rescue.pod:280
19403 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
19404 msgstr ""
19405
19406 #. type: =item
19407 #: ../fuse/guestmount.pod:280
19408 msgid "B<--trace>"
19409 msgstr ""
19410
19411 #. type: textblock
19412 #: ../fuse/guestmount.pod:282
19413 msgid "Trace libguestfs calls and entry into each FUSE function."
19414 msgstr ""
19415
19416 #. type: textblock
19417 #: ../fuse/guestmount.pod:284
19418 msgid "This also stops the daemon from forking into the background."
19419 msgstr ""
19420
19421 #. type: textblock
19422 #: ../fuse/guestmount.pod:305
19423 msgid ""
19424 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
19425 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
19426 "net/>."
19427 msgstr ""
19428
19429 #. type: textblock
19430 #: ../fuse/guestmount.pod:320
19431 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
19432 msgstr ""
19433
19434 #. type: textblock
19435 #: ../inspector/virt-inspector.pod:5
19436 msgid ""
19437 "virt-inspector - Display operating system version and other information "
19438 "about a virtual machine"
19439 msgstr ""
19440
19441 #. type: verbatim
19442 #: ../inspector/virt-inspector.pod:9
19443 #, no-wrap
19444 msgid ""
19445 " virt-inspector [--options] -d domname\n"
19446 "\n"
19447 msgstr ""
19448
19449 #. type: verbatim
19450 #: ../inspector/virt-inspector.pod:11
19451 #, no-wrap
19452 msgid ""
19453 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
19454 "\n"
19455 msgstr ""
19456
19457 #. type: verbatim
19458 #: ../inspector/virt-inspector.pod:15
19459 #, no-wrap
19460 msgid ""
19461 " virt-inspector domname\n"
19462 "\n"
19463 msgstr ""
19464
19465 #. type: verbatim
19466 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
19467 #, no-wrap
19468 msgid ""
19469 " virt-inspector disk.img [disk.img ...]\n"
19470 "\n"
19471 msgstr ""
19472
19473 #. type: textblock
19474 #: ../inspector/virt-inspector.pod:21
19475 msgid ""
19476 "B<virt-inspector> examines a virtual machine or disk image and tries to "
19477 "determine the version of the operating system and other information about "
19478 "the virtual machine."
19479 msgstr ""
19480
19481 #. type: textblock
19482 #: ../inspector/virt-inspector.pod:25
19483 msgid "Virt-inspector produces XML output for feeding into other programs."
19484 msgstr ""
19485
19486 #. type: textblock
19487 #: ../inspector/virt-inspector.pod:27
19488 msgid ""
19489 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
19490 "the libvirt domain (see: C<virsh list --all>)."
19491 msgstr ""
19492
19493 #. type: textblock
19494 #: ../inspector/virt-inspector.pod:30
19495 msgid ""
19496 "You can also run virt-inspector directly on disk images from a single "
19497 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
19498 "has several block devices, in which case you should list several I<-a> "
19499 "options one after another, with the first corresponding to the guest's C</"
19500 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
19501 msgstr ""
19502
19503 #. type: textblock
19504 #: ../inspector/virt-inspector.pod:37
19505 msgid ""
19506 "You can also run virt-inspector on install disks, live CDs, bootable USB "
19507 "keys and similar."
19508 msgstr ""
19509
19510 #. type: textblock
19511 #: ../inspector/virt-inspector.pod:40
19512 msgid ""
19513 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
19514 "inspect several virtual machines, you have to run virt-inspector several "
19515 "times (for example, from a shell script for-loop)."
19516 msgstr ""
19517
19518 #. type: textblock
19519 #: ../inspector/virt-inspector.pod:45
19520 msgid ""
19521 "Because virt-inspector needs direct access to guest images, it won't "
19522 "normally work over remote libvirt connections."
19523 msgstr ""
19524
19525 #. type: textblock
19526 #: ../inspector/virt-inspector.pod:48
19527 msgid ""
19528 "All of the information available from virt-inspector is also available "
19529 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
19530 "The same information can also be fetched using guestfish or via libguestfs "
19531 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
19532 "WITH OTHER PROGRAMMING LANGUAGES>)."
19533 msgstr ""
19534
19535 #. type: textblock
19536 #: ../inspector/virt-inspector.pod:81
19537 msgid ""
19538 "Libvirt is only used if you specify a C<domname> on the command line.  If "
19539 "you specify guest block devices directly (I<-a>), then libvirt is not used "
19540 "at all."
19541 msgstr ""
19542
19543 #. type: textblock
19544 #: ../inspector/virt-inspector.pod:94
19545 msgid ""
19546 "When prompting for keys and passphrases, virt-inspector normally turns "
19547 "echoing off so you cannot see what you are typing.  If you are not worried "
19548 "about Tempest attacks and there is no one else in the room you can specify "
19549 "this flag to see what you are typing."
19550 msgstr ""
19551
19552 #. type: textblock
19553 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
19554 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
19555 #: ../tools/virt-win-reg.pl:144
19556 msgid ""
19557 "Specify the format of disk images given on the command line.  If this is "
19558 "omitted then the format is autodetected from the content of the disk image."
19559 msgstr ""
19560
19561 #. type: textblock
19562 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
19563 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
19564 #: ../tools/virt-win-reg.pl:148
19565 msgid ""
19566 "If disk images are requested from libvirt, then this program asks libvirt "
19567 "for this information.  In this case, the value of the format parameter is "
19568 "ignored."
19569 msgstr ""
19570
19571 #. type: textblock
19572 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
19573 #: ../resize/virt-resize.pod:406 ../tools/virt-list-filesystems.pl:101
19574 #: ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151
19575 #: ../tools/virt-win-reg.pl:152
19576 msgid ""
19577 "If working with untrusted raw-format guest disk images, you should ensure "
19578 "the format is always specified."
19579 msgstr ""
19580
19581 #. type: textblock
19582 #: ../inspector/virt-inspector.pod:139
19583 msgid "Previous versions of virt-inspector allowed you to write either:"
19584 msgstr ""
19585
19586 #. type: verbatim
19587 #: ../inspector/virt-inspector.pod:145
19588 #, no-wrap
19589 msgid ""
19590 " virt-inspector guestname\n"
19591 "\n"
19592 msgstr ""
19593
19594 #. type: =head1
19595 #: ../inspector/virt-inspector.pod:153
19596 msgid "XML FORMAT"
19597 msgstr ""
19598
19599 #. type: textblock
19600 #: ../inspector/virt-inspector.pod:155
19601 msgid ""
19602 "The virt-inspector XML is described precisely in a RELAX NG schema file "
19603 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
19604 "just an overview."
19605 msgstr ""
19606
19607 #. type: textblock
19608 #: ../inspector/virt-inspector.pod:159
19609 msgid ""
19610 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
19611 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
19612 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
19613 "which is vanishingly rare in real world VMs."
19614 msgstr ""
19615
19616 #. type: =head2
19617 #: ../inspector/virt-inspector.pod:164
19618 msgid "E<lt>operatingsystemE<gt>"
19619 msgstr ""
19620
19621 #. type: textblock
19622 #: ../inspector/virt-inspector.pod:166
19623 msgid ""
19624 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
19625 "describe the operating system, its architecture, the descriptive \"product "
19626 "name\" string, the type of OS and so on, as in this example:"
19627 msgstr ""
19628
19629 #. type: verbatim
19630 #: ../inspector/virt-inspector.pod:170
19631 #, no-wrap
19632 msgid ""
19633 " <operatingsystems>\n"
19634 "   <operatingsystem>\n"
19635 "     <root>/dev/sda2</root>\n"
19636 "     <name>windows</name>\n"
19637 "     <arch>i386</arch>\n"
19638 "     <distro>windows</distro>\n"
19639 "     <product_name>Windows 7 Enterprise</product_name>\n"
19640 "     <product_variant>Client</product_variant>\n"
19641 "     <major_version>6</major_version>\n"
19642 "     <minor_version>1</minor_version>\n"
19643 "     <windows_systemroot>/Windows</windows_systemroot>\n"
19644 "     <format>installed</format>\n"
19645 "\n"
19646 msgstr ""
19647
19648 #. type: textblock
19649 #: ../inspector/virt-inspector.pod:183
19650 msgid ""
19651 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
19652 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
19653 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
19654 "architecture.  The other fields are fairly self-explanatory, but because "
19655 "these fields are taken directly from the libguestfs inspection API you can "
19656 "find precise information from L<guestfs(3)/INSPECTION>."
19657 msgstr ""
19658
19659 #. type: textblock
19660 #: ../inspector/virt-inspector.pod:191
19661 msgid ""
19662 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
19663 "of view of libguestfs (block devices may have completely different names "
19664 "inside the VM itself)."
19665 msgstr ""
19666
19667 #. type: =head2
19668 #: ../inspector/virt-inspector.pod:195
19669 msgid "E<lt>mountpointsE<gt>"
19670 msgstr ""
19671
19672 #. type: textblock
19673 #: ../inspector/virt-inspector.pod:197
19674 msgid ""
19675 "Un*x-like guests typically have multiple filesystems which are mounted at "
19676 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
19677 "element which looks like this:"
19678 msgstr ""
19679
19680 #. type: verbatim
19681 #: ../inspector/virt-inspector.pod:201
19682 #, no-wrap
19683 msgid ""
19684 " <operatingsystems>\n"
19685 "   <operatingsystem>\n"
19686 "     ...\n"
19687 "     <mountpoints>\n"
19688 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
19689 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
19690 "     </mountpoints>\n"
19691 "\n"
19692 msgstr ""
19693
19694 #. type: textblock
19695 #: ../inspector/virt-inspector.pod:209
19696 msgid ""
19697 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
19698 "and may have completely different names inside the guest.  Only mountable "
19699 "filesystems appear in this list, not things like swap devices."
19700 msgstr ""
19701
19702 #. type: =head2
19703 #: ../inspector/virt-inspector.pod:214
19704 msgid "E<lt>filesystemsE<gt>"
19705 msgstr ""
19706
19707 #. type: textblock
19708 #: ../inspector/virt-inspector.pod:216
19709 msgid ""
19710 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
19711 "filesystems belonging to the guest, including swap and empty partitions.  "
19712 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
19713 "this OS or shared with this OS and other OSes)."
19714 msgstr ""
19715
19716 #. type: textblock
19717 #: ../inspector/virt-inspector.pod:222
19718 msgid "You might see something like this:"
19719 msgstr ""
19720
19721 #. type: verbatim
19722 #: ../inspector/virt-inspector.pod:224
19723 #, no-wrap
19724 msgid ""
19725 " <operatingsystems>\n"
19726 "   <operatingsystem>\n"
19727 "     ...\n"
19728 "     <filesystems>\n"
19729 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
19730 "         <type>ext4</type>\n"
19731 "         <label>Fedora-13-x86_64</label>\n"
19732 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
19733 "       </filesystem>\n"
19734 "\n"
19735 msgstr ""
19736
19737 #. type: textblock
19738 #: ../inspector/virt-inspector.pod:234
19739 msgid ""
19740 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
19741 "the label, and the UUID."
19742 msgstr ""
19743
19744 #. type: =head2
19745 #: ../inspector/virt-inspector.pod:237
19746 msgid "E<lt>applicationsE<gt>"
19747 msgstr ""
19748
19749 #. type: textblock
19750 #: ../inspector/virt-inspector.pod:239
19751 msgid ""
19752 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
19753 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
19754 "machine."
19755 msgstr ""
19756
19757 #. type: textblock
19758 #: ../inspector/virt-inspector.pod:243
19759 msgid ""
19760 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
19761 "Typical values would be C<rpm> and C<deb>."
19762 msgstr ""
19763
19764 #. type: textblock
19765 #: ../inspector/virt-inspector.pod:246
19766 msgid ""
19767 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
19768 "Typical values include C<yum>, C<up2date> and C<apt>"
19769 msgstr ""
19770
19771 #. type: textblock
19772 #: ../inspector/virt-inspector.pod:249
19773 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
19774 msgstr ""
19775
19776 #. type: verbatim
19777 #: ../inspector/virt-inspector.pod:252
19778 #, no-wrap
19779 msgid ""
19780 " <operatingsystems>\n"
19781 "   <operatingsystem>\n"
19782 "     ...\n"
19783 "     <applications>\n"
19784 "       <application>\n"
19785 "         <name>coreutils</name>\n"
19786 "         <version>8.5</version>\n"
19787 "         <release>1</release>\n"
19788 "       </application>\n"
19789 "\n"
19790 msgstr ""
19791
19792 #. type: textblock
19793 #: ../inspector/virt-inspector.pod:262
19794 msgid ""
19795 "The version and release fields may not be available for some types guests.  "
19796 "Other fields are possible, see L<guestfs(3)/"
19797 "guestfs_inspect_list_applications>."
19798 msgstr ""
19799
19800 #. type: =head2
19801 #: ../inspector/virt-inspector.pod:266
19802 msgid "E<lt>drive_mappingsE<gt>"
19803 msgstr ""
19804
19805 #. type: textblock
19806 #: ../inspector/virt-inspector.pod:268
19807 msgid ""
19808 "For operating systems like Windows which use drive letters, virt-inspector "
19809 "is able to find out how drive letters map to filesystems."
19810 msgstr ""
19811
19812 #. type: verbatim
19813 #: ../inspector/virt-inspector.pod:272
19814 #, no-wrap
19815 msgid ""
19816 " <operatingsystems>\n"
19817 "   <operatingsystem>\n"
19818 "     ...\n"
19819 "     <drive_mappings>\n"
19820 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
19821 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
19822 "     </drive_mappings>\n"
19823 "\n"
19824 msgstr ""
19825
19826 #. type: textblock
19827 #: ../inspector/virt-inspector.pod:280
19828 msgid ""
19829 "In the example above, drive C maps to the filesystem on the second partition "
19830 "on the first disk, and drive E maps to the filesystem on the first partition "
19831 "on the second disk."
19832 msgstr ""
19833
19834 #. type: textblock
19835 #: ../inspector/virt-inspector.pod:284
19836 msgid ""
19837 "Note that this only covers permanent local filesystem mappings, not things "
19838 "like network shares.  Furthermore NTFS volume mount points may not be listed "
19839 "here."
19840 msgstr ""
19841
19842 #. type: =head2
19843 #: ../inspector/virt-inspector.pod:288
19844 msgid "E<lt>iconE<gt>"
19845 msgstr ""
19846
19847 #. type: textblock
19848 #: ../inspector/virt-inspector.pod:290
19849 msgid ""
19850 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
19851 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
19852 "very large and high quality."
19853 msgstr ""
19854
19855 #. type: verbatim
19856 #: ../inspector/virt-inspector.pod:294
19857 #, no-wrap
19858 msgid ""
19859 " <operatingsystems>\n"
19860 "   <operatingsystem>\n"
19861 "     ...\n"
19862 "     <icon>\n"
19863 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
19864 "       [... many lines of base64 data ...]\n"
19865 "     </icon>\n"
19866 "\n"
19867 msgstr ""
19868
19869 #. type: textblock
19870 #: ../inspector/virt-inspector.pod:302
19871 msgid ""
19872 "To display the icon, you have to extract it and convert the base64 data back "
19873 "to a binary file.  Use an XPath query or simply an editor to extract the "
19874 "data, then use the coreutils L<base64(1)> program to do the conversion back "
19875 "to a PNG file:"
19876 msgstr ""
19877
19878 #. type: verbatim
19879 #: ../inspector/virt-inspector.pod:307
19880 #, no-wrap
19881 msgid ""
19882 " base64 -i -d < icon.data > icon.png\n"
19883 "\n"
19884 msgstr ""
19885
19886 #. type: =head2
19887 #: ../inspector/virt-inspector.pod:309
19888 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
19889 msgstr ""
19890
19891 #. type: textblock
19892 #: ../inspector/virt-inspector.pod:311
19893 msgid ""
19894 "Virt-inspector can detect some operating system installers on install disks, "
19895 "live CDs, bootable USB keys and more."
19896 msgstr ""
19897
19898 #. type: textblock
19899 #: ../inspector/virt-inspector.pod:314
19900 msgid ""
19901 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
19902 "fields may be present to indicate a live CD, network installer, or one part "
19903 "of a multipart CD.  For example:"
19904 msgstr ""
19905
19906 #. type: verbatim
19907 #: ../inspector/virt-inspector.pod:318
19908 #, no-wrap
19909 msgid ""
19910 " <operatingsystems>\n"
19911 "   <operatingsystem>\n"
19912 "     <root>/dev/sda</root>\n"
19913 "     <name>linux</name>\n"
19914 "     <arch>i386</arch>\n"
19915 "     <distro>ubuntu</distro>\n"
19916 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
19917 "     <major_version>10</major_version>\n"
19918 "     <minor_version>10</minor_version>\n"
19919 "     <format>installer</format>\n"
19920 "     <live/>\n"
19921 "\n"
19922 msgstr ""
19923
19924 #. type: =head1
19925 #: ../inspector/virt-inspector.pod:330
19926 msgid "USING XPATH"
19927 msgstr ""
19928
19929 #. type: textblock
19930 #: ../inspector/virt-inspector.pod:332
19931 msgid ""
19932 "You can use the XPath query language, and/or the xpath tool, in order to "
19933 "select parts of the XML."
19934 msgstr ""
19935
19936 #. type: verbatim
19937 #: ../inspector/virt-inspector.pod:337
19938 #, no-wrap
19939 msgid ""
19940 " $ virt-inspector -d Guest | xpath //filesystems\n"
19941 " Found 1 nodes:\n"
19942 " -- NODE --\n"
19943 " <filesystems>\n"
19944 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
19945 "        <type>ext4</type>\n"
19946 " [etc]\n"
19947 "\n"
19948 msgstr ""
19949
19950 #. type: verbatim
19951 #: ../inspector/virt-inspector.pod:345
19952 #, no-wrap
19953 msgid ""
19954 " $ virt-inspector -d Guest | \\\n"
19955 "     xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
19956 " Query didn't return a nodeset. Value: ext4\n"
19957 "\n"
19958 msgstr ""
19959
19960 #. type: =head1
19961 #: ../inspector/virt-inspector.pod:356
19962 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
19963 msgstr ""
19964
19965 #. type: textblock
19966 #: ../inspector/virt-inspector.pod:358
19967 msgid ""
19968 "Early versions of libguestfs shipped with a different virt-inspector program "
19969 "written in Perl (the current version is written in C).  The XML output of "
19970 "the Perl virt-inspector was different and it could also output in other "
19971 "formats like text."
19972 msgstr ""
19973
19974 #. type: textblock
19975 #: ../inspector/virt-inspector.pod:363
19976 msgid ""
19977 "The old virt-inspector is no longer supported or shipped with libguestfs."
19978 msgstr ""
19979
19980 #. type: textblock
19981 #: ../inspector/virt-inspector.pod:366
19982 msgid ""
19983 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
19984 "versions of virt-inspector with different names:"
19985 msgstr ""
19986
19987 #. type: verbatim
19988 #: ../inspector/virt-inspector.pod:369
19989 #, no-wrap
19990 msgid ""
19991 " virt-inspector     Old Perl version.\n"
19992 " virt-inspector2    New C version.\n"
19993 "\n"
19994 msgstr ""
19995
19996 #. type: textblock
19997 #: ../inspector/virt-inspector.pod:374
19998 msgid ""
19999 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
20000 ">, L<http://libguestfs.org/>."
20001 msgstr ""
20002
20003 #. type: textblock
20004 #: ../inspector/virt-inspector.pod:390
20005 msgid "Matthew Booth L<mbooth@redhat.com>"
20006 msgstr ""
20007
20008 #. type: textblock
20009 #: ../java/examples/guestfs-java.pod:5
20010 msgid "guestfs-java - How to use libguestfs from Java"
20011 msgstr ""
20012
20013 #. type: verbatim
20014 #: ../java/examples/guestfs-java.pod:9
20015 #, no-wrap
20016 msgid ""
20017 " import com.redhat.et.libguestfs.*;\n"
20018 " \n"
20019 msgstr ""
20020
20021 #. type: verbatim
20022 #: ../java/examples/guestfs-java.pod:11
20023 #, no-wrap
20024 msgid ""
20025 " GuestFS g = new GuestFS ();\n"
20026 " g.add_drive_opts (\"disk.img\", null);\n"
20027 " g.launch ();\n"
20028 "\n"
20029 msgstr ""
20030
20031 #. type: textblock
20032 #: ../java/examples/guestfs-java.pod:17
20033 msgid ""
20034 "This manual page documents how to call libguestfs from the Java programming "
20035 "language.  This page just documents the differences from the C API and gives "
20036 "some examples.  If you are not familiar with using libguestfs, you also need "
20037 "to read L<guestfs(3)>."
20038 msgstr ""
20039
20040 #. type: =head2
20041 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
20042 msgid "CLOSING THE HANDLE"
20043 msgstr ""
20044
20045 #. type: textblock
20046 #: ../java/examples/guestfs-java.pod:24
20047 msgid ""
20048 "The handle is closed when it is reaped by the garbage collector.  Because "
20049 "libguestfs handles include a lot of state, it is also possible to close (and "
20050 "hence free) them explicitly by calling the C<close> method."
20051 msgstr ""
20052
20053 #. type: =head2
20054 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
20055 #: ../python/examples/guestfs-python.pod:21
20056 #: ../ruby/examples/guestfs-ruby.pod:22
20057 msgid "EXCEPTIONS"
20058 msgstr ""
20059
20060 #. type: textblock
20061 #: ../java/examples/guestfs-java.pod:31
20062 msgid ""
20063 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
20064 "exception.  This has a single parameter which is the error message (a "
20065 "C<String>)."
20066 msgstr ""
20067
20068 #. type: textblock
20069 #: ../java/examples/guestfs-java.pod:35
20070 msgid "Calling any method on a closed handle raises the same exception."
20071 msgstr ""
20072
20073 #. type: textblock
20074 #: ../java/examples/guestfs-java.pod:47
20075 msgid ""
20076 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)"
20077 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
20078 "libguestfs.org/>, L<http://caml.inria.fr/>."
20079 msgstr ""
20080
20081 #. type: textblock
20082 #: ../java/examples/guestfs-java.pod:63 ../perl/examples/guestfs-perl.pod:57
20083 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
20084 msgstr ""
20085
20086 #. type: textblock
20087 #: ../ocaml/examples/guestfs-ocaml.pod:5
20088 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
20089 msgstr ""
20090
20091 #. type: textblock
20092 #: ../ocaml/examples/guestfs-ocaml.pod:9
20093 msgid "Module style:"
20094 msgstr ""
20095
20096 #. type: verbatim
20097 #: ../ocaml/examples/guestfs-ocaml.pod:11
20098 #, no-wrap
20099 msgid ""
20100 " let g = Guestfs.create () in\n"
20101 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
20102 " Guestfs.launch g;\n"
20103 "\n"
20104 msgstr ""
20105
20106 #. type: textblock
20107 #: ../ocaml/examples/guestfs-ocaml.pod:15
20108 msgid "Object-oriented style:"
20109 msgstr ""
20110
20111 #. type: verbatim
20112 #: ../ocaml/examples/guestfs-ocaml.pod:17
20113 #, no-wrap
20114 msgid ""
20115 " let g = new Guestfs.guestfs () in\n"
20116 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
20117 " g#launch ();\n"
20118 "\n"
20119 msgstr ""
20120
20121 #. type: verbatim
20122 #: ../ocaml/examples/guestfs-ocaml.pod:21
20123 #, no-wrap
20124 msgid ""
20125 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
20126 "or:\n"
20127 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
20128 "\n"
20129 msgstr ""
20130
20131 #. type: textblock
20132 #: ../ocaml/examples/guestfs-ocaml.pod:27
20133 msgid ""
20134 "This manual page documents how to call libguestfs from the OCaml programming "
20135 "language.  This page just documents the differences from the C API and gives "
20136 "some examples.  If you are not familiar with using libguestfs, you also need "
20137 "to read L<guestfs(3)>."
20138 msgstr ""
20139
20140 #. type: =head2
20141 #: ../ocaml/examples/guestfs-ocaml.pod:32
20142 msgid "PROGRAMMING STYLES"
20143 msgstr ""
20144
20145 #. type: textblock
20146 #: ../ocaml/examples/guestfs-ocaml.pod:34
20147 msgid ""
20148 "There are two different programming styles supported by the OCaml bindings.  "
20149 "You can use a module style, with each C function mapped to an OCaml function:"
20150 msgstr ""
20151
20152 #. type: verbatim
20153 #: ../ocaml/examples/guestfs-ocaml.pod:38
20154 #, no-wrap
20155 msgid ""
20156 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
20157 "\n"
20158 msgstr ""
20159
20160 #. type: textblock
20161 #: ../ocaml/examples/guestfs-ocaml.pod:40
20162 msgid "becomes:"
20163 msgstr ""
20164
20165 #. type: verbatim
20166 #: ../ocaml/examples/guestfs-ocaml.pod:42
20167 #, no-wrap
20168 msgid ""
20169 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
20170 "\n"
20171 msgstr ""
20172
20173 #. type: textblock
20174 #: ../ocaml/examples/guestfs-ocaml.pod:44
20175 msgid ""
20176 "Alternately you can use an object-oriented style, calling methods on the "
20177 "class C<Guestfs.guestfs>:"
20178 msgstr ""
20179
20180 #. type: verbatim
20181 #: ../ocaml/examples/guestfs-ocaml.pod:47
20182 #, no-wrap
20183 msgid ""
20184 " method set_verbose : bool -> unit\n"
20185 "\n"
20186 msgstr ""
20187
20188 #. type: textblock
20189 #: ../ocaml/examples/guestfs-ocaml.pod:49
20190 msgid ""
20191 "The object-oriented style is usually briefer, and the minor performance "
20192 "penalty isn't noticable in the general overhead of performing libguestfs "
20193 "functions."
20194 msgstr ""
20195
20196 #. type: textblock
20197 #: ../ocaml/examples/guestfs-ocaml.pod:55
20198 msgid ""
20199 "The handle is closed when it is reaped by the garbage collector.  Because "
20200 "libguestfs handles include a lot of state, it is also possible to close (and "
20201 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
20202 "method."
20203 msgstr ""
20204
20205 #. type: textblock
20206 #: ../ocaml/examples/guestfs-ocaml.pod:62
20207 msgid ""
20208 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
20209 "exception.  This has a single parameter which is the error message (a "
20210 "string)."
20211 msgstr ""
20212
20213 #. type: textblock
20214 #: ../ocaml/examples/guestfs-ocaml.pod:66
20215 msgid ""
20216 "Calling any function/method on a closed handle raises C<Guestfs."
20217 "Handle_closed>.  The single parameter is the name of the function that you "
20218 "called."
20219 msgstr ""
20220
20221 #. type: textblock
20222 #: ../ocaml/examples/guestfs-ocaml.pod:80
20223 msgid ""
20224 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-perl(3)"
20225 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
20226 "libguestfs.org/>, L<http://caml.inria.fr/>."
20227 msgstr ""
20228
20229 #. type: textblock
20230 #: ../perl/examples/guestfs-perl.pod:5
20231 msgid "guestfs-perl - How to use libguestfs from Perl"
20232 msgstr ""
20233
20234 #. type: verbatim
20235 #: ../perl/examples/guestfs-perl.pod:9
20236 #, no-wrap
20237 msgid ""
20238 " use Sys::Guestfs;\n"
20239 " \n"
20240 msgstr ""
20241
20242 #. type: verbatim
20243 #: ../perl/examples/guestfs-perl.pod:11
20244 #, no-wrap
20245 msgid ""
20246 " my $h = Sys::Guestfs->new ();\n"
20247 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
20248 " $h->launch ();\n"
20249 " $h->mount_options ('', '/dev/sda1', '/');\n"
20250 " $h->touch ('/hello');\n"
20251 " $h->sync ();\n"
20252 "\n"
20253 msgstr ""
20254
20255 #. type: textblock
20256 #: ../perl/examples/guestfs-perl.pod:20
20257 msgid ""
20258 "This manual page documents how to call libguestfs from the Perl programming "
20259 "language.  This page just documents the differences from the C API and gives "
20260 "some examples.  If you are not familiar with using libguestfs, you also need "
20261 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
20262 msgstr ""
20263
20264 #. type: =head2
20265 #: ../perl/examples/guestfs-perl.pod:26
20266 msgid "ERRORS"
20267 msgstr ""
20268
20269 #. type: textblock
20270 #: ../perl/examples/guestfs-perl.pod:28
20271 msgid ""
20272 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
20273 ">)."
20274 msgstr ""
20275
20276 #. type: textblock
20277 #: ../perl/examples/guestfs-perl.pod:41
20278 msgid ""
20279 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)"
20280 ">, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
20281 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
20282 msgstr ""
20283
20284 #. type: textblock
20285 #: ../python/examples/guestfs-python.pod:5
20286 msgid "guestfs-python - How to use libguestfs from Python"
20287 msgstr ""
20288
20289 #. type: verbatim
20290 #: ../python/examples/guestfs-python.pod:9
20291 #, no-wrap
20292 msgid ""
20293 " import guestfs\n"
20294 " g = guestfs.GuestFS ()\n"
20295 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
20296 " g.launch\n"
20297 "\n"
20298 msgstr ""
20299
20300 #. type: textblock
20301 #: ../python/examples/guestfs-python.pod:16
20302 msgid ""
20303 "This manual page documents how to call libguestfs from the Python "
20304 "programming language.  This page just documents the differences from the C "
20305 "API and gives some examples.  If you are not familiar with using libguestfs, "
20306 "you also need to read L<guestfs(3)>."
20307 msgstr ""
20308
20309 #. type: textblock
20310 #: ../python/examples/guestfs-python.pod:23
20311 msgid ""
20312 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
20313 "single string argument which is the error message."
20314 msgstr ""
20315
20316 #. type: =head2
20317 #: ../python/examples/guestfs-python.pod:26
20318 msgid "MORE DOCUMENTATION"
20319 msgstr ""
20320
20321 #. type: textblock
20322 #: ../python/examples/guestfs-python.pod:28
20323 msgid "Type:"
20324 msgstr ""
20325
20326 #. type: verbatim
20327 #: ../python/examples/guestfs-python.pod:30
20328 #, no-wrap
20329 msgid ""
20330 " $ python\n"
20331 " >>> import guestfs\n"
20332 " >>> help (guestfs)\n"
20333 "\n"
20334 msgstr ""
20335
20336 #. type: textblock
20337 #: ../python/examples/guestfs-python.pod:44
20338 msgid ""
20339 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
20340 ">, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
20341 "libguestfs.org/>."
20342 msgstr ""
20343
20344 #. type: textblock
20345 #: ../rescue/virt-rescue.pod:5
20346 msgid "virt-rescue - Run a rescue shell on a virtual machine"
20347 msgstr ""
20348
20349 #. type: verbatim
20350 #: ../rescue/virt-rescue.pod:9
20351 #, no-wrap
20352 msgid ""
20353 " virt-rescue [--options] -d domname\n"
20354 "\n"
20355 msgstr ""
20356
20357 #. type: verbatim
20358 #: ../rescue/virt-rescue.pod:11
20359 #, no-wrap
20360 msgid ""
20361 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
20362 "\n"
20363 msgstr ""
20364
20365 #. type: verbatim
20366 #: ../rescue/virt-rescue.pod:15
20367 #, no-wrap
20368 msgid ""
20369 " virt-rescue [--options] domname\n"
20370 "\n"
20371 msgstr ""
20372
20373 #. type: verbatim
20374 #: ../rescue/virt-rescue.pod:17
20375 #, no-wrap
20376 msgid ""
20377 " virt-rescue [--options] disk.img [disk.img ...]\n"
20378 "\n"
20379 msgstr ""
20380
20381 #. type: textblock
20382 #: ../rescue/virt-rescue.pod:21
20383 msgid ""
20384 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
20385 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
20386 "you from doing this, but doesn't catch all cases."
20387 msgstr ""
20388
20389 #. type: textblock
20390 #: ../rescue/virt-rescue.pod:25
20391 msgid ""
20392 "However if you use the I<--ro> (read only) option, then you can attach a "
20393 "shell to a live virtual machine.  The results might be strange or "
20394 "inconsistent at times but you won't get disk corruption."
20395 msgstr ""
20396
20397 #. type: textblock
20398 #: ../rescue/virt-rescue.pod:31
20399 msgid ""
20400 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
20401 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
20402 "recovery tools which you can use to examine or rescue a virtual machine or "
20403 "disk image."
20404 msgstr ""
20405
20406 #. type: textblock
20407 #: ../rescue/virt-rescue.pod:36
20408 msgid ""
20409 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
20410 "on disk image(s):"
20411 msgstr ""
20412
20413 #. type: verbatim
20414 #: ../rescue/virt-rescue.pod:39
20415 #, no-wrap
20416 msgid ""
20417 " virt-rescue -d GuestName\n"
20418 "\n"
20419 msgstr ""
20420
20421 #. type: verbatim
20422 #: ../rescue/virt-rescue.pod:41
20423 #, no-wrap
20424 msgid ""
20425 " virt-rescue --ro -a /path/to/disk.img\n"
20426 "\n"
20427 msgstr ""
20428
20429 #. type: verbatim
20430 #: ../rescue/virt-rescue.pod:43
20431 #, no-wrap
20432 msgid ""
20433 " virt-rescue -a /dev/sdc\n"
20434 "\n"
20435 msgstr ""
20436
20437 #. type: textblock
20438 #: ../rescue/virt-rescue.pod:45
20439 msgid "For live VMs you I<must> use the --ro option."
20440 msgstr ""
20441
20442 #. type: textblock
20443 #: ../rescue/virt-rescue.pod:47
20444 msgid ""
20445 "When you run virt-rescue on a virtual machine or disk image, you are placed "
20446 "in an interactive bash shell where you can use many ordinary Linux "
20447 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
20448 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
20449 "is an empty directory called C</sysroot> where you can mount filesystems."
20450 msgstr ""
20451
20452 #. type: textblock
20453 #: ../rescue/virt-rescue.pod:54
20454 msgid ""
20455 "In the example below, we list logical volumes, then choose one to mount "
20456 "under C</sysroot>:"
20457 msgstr ""
20458
20459 #. type: verbatim
20460 #: ../rescue/virt-rescue.pod:57
20461 #, no-wrap
20462 msgid ""
20463 " ><rescue> lvs\n"
20464 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
20465 " lv_root vg_f11x64 -wi-a-   8.83G\n"
20466 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
20467 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
20468 " ><rescue> ls /sysroot\n"
20469 "\n"
20470 msgstr ""
20471
20472 #. type: textblock
20473 #: ../rescue/virt-rescue.pod:64
20474 msgid ""
20475 "If you don't know what filesystems are available on the virtual machine then "
20476 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
20477 msgstr ""
20478
20479 #. type: textblock
20480 #: ../rescue/virt-rescue.pod:70
20481 msgid ""
20482 "Virt-rescue can be used on I<any> disk image file or device, not just a "
20483 "virtual machine.  For example you can use it on a blank file if you want to "
20484 "partition that file (although we would recommend using L<guestfish(1)> "
20485 "instead as it is more suitable for this purpose).  You can even use virt-"
20486 "rescue on things like SD cards."
20487 msgstr ""
20488
20489 #. type: textblock
20490 #: ../rescue/virt-rescue.pod:76
20491 msgid ""
20492 "Virt-rescue does not require root.  You only need to run it as root if you "
20493 "need root to open the disk image."
20494 msgstr ""
20495
20496 #. type: textblock
20497 #: ../rescue/virt-rescue.pod:79
20498 msgid ""
20499 "This tool is just designed for quick interactive hacking on a virtual "
20500 "machine.  For more structured access to a virtual machine disk image, you "
20501 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
20502 "make scripted changes to guests, use L<guestfish(1)>."
20503 msgstr ""
20504
20505 #. type: =item
20506 #: ../rescue/virt-rescue.pod:103
20507 msgid "B<--append kernelopts>"
20508 msgstr ""
20509
20510 #. type: textblock
20511 #: ../rescue/virt-rescue.pod:105
20512 msgid "Pass additional options to the rescue kernel."
20513 msgstr ""
20514
20515 #. type: verbatim
20516 #: ../rescue/virt-rescue.pod:135
20517 #, no-wrap
20518 msgid ""
20519 " virt-rescue --format=raw -a disk.img\n"
20520 "\n"
20521 msgstr ""
20522
20523 #. type: verbatim
20524 #: ../rescue/virt-rescue.pod:139
20525 #, no-wrap
20526 msgid ""
20527 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
20528 "\n"
20529 msgstr ""
20530
20531 #. type: =item
20532 #: ../rescue/virt-rescue.pod:148
20533 msgid "B<-m MB>"
20534 msgstr ""
20535
20536 #. type: =item
20537 #: ../rescue/virt-rescue.pod:150
20538 msgid "B<--memsize MB>"
20539 msgstr ""
20540
20541 #. type: textblock
20542 #: ../rescue/virt-rescue.pod:152
20543 msgid ""
20544 "Change the amount of memory allocated to the rescue system.  The default is "
20545 "set by libguestfs and is small but adequate for running system tools.  The "
20546 "occasional program might need more memory.  The parameter is specified in "
20547 "megabytes."
20548 msgstr ""
20549
20550 #. type: =item
20551 #: ../rescue/virt-rescue.pod:157
20552 msgid "B<--network>"
20553 msgstr ""
20554
20555 #. type: textblock
20556 #: ../rescue/virt-rescue.pod:159
20557 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
20558 msgstr ""
20559
20560 #. type: textblock
20561 #: ../rescue/virt-rescue.pod:165
20562 msgid "Open the image read-only."
20563 msgstr ""
20564
20565 #. type: textblock
20566 #: ../rescue/virt-rescue.pod:175
20567 msgid ""
20568 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
20569 "SELINUX> before using this option."
20570 msgstr ""
20571
20572 #. type: textblock
20573 #: ../rescue/virt-rescue.pod:194
20574 msgid ""
20575 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
20576 "are done read-write."
20577 msgstr ""
20578
20579 #. type: textblock
20580 #: ../rescue/virt-rescue.pod:207
20581 msgid "Previous versions of virt-rescue allowed you to write either:"
20582 msgstr ""
20583
20584 #. type: verbatim
20585 #: ../rescue/virt-rescue.pod:209
20586 #, no-wrap
20587 msgid ""
20588 " virt-rescue disk.img [disk.img ...]\n"
20589 "\n"
20590 msgstr ""
20591
20592 #. type: verbatim
20593 #: ../rescue/virt-rescue.pod:213
20594 #, no-wrap
20595 msgid ""
20596 " virt-rescue guestname\n"
20597 "\n"
20598 msgstr ""
20599
20600 #. type: =head1
20601 #: ../rescue/virt-rescue.pod:221
20602 msgid "NETWORK"
20603 msgstr ""
20604
20605 #. type: textblock
20606 #: ../rescue/virt-rescue.pod:223
20607 msgid ""
20608 "Adding the I<--network> option enables QEMU user networking in the rescue "
20609 "appliance.  There are some differences between user networking and ordinary "
20610 "networking:"
20611 msgstr ""
20612
20613 #. type: =item
20614 #: ../rescue/virt-rescue.pod:229
20615 msgid "ping does not work"
20616 msgstr ""
20617
20618 #. type: textblock
20619 #: ../rescue/virt-rescue.pod:231
20620 msgid ""
20621 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
20622 "send the ping packets, and because virt-rescue must be able to run as non-"
20623 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
20624 "The ping command will appear to resolve addresses but will not be able to "
20625 "send or receive any packets.  This does not mean that the network is not "
20626 "working."
20627 msgstr ""
20628
20629 #. type: =item
20630 #: ../rescue/virt-rescue.pod:238
20631 msgid "cannot receive connections"
20632 msgstr ""
20633
20634 #. type: textblock
20635 #: ../rescue/virt-rescue.pod:240
20636 msgid "QEMU user networking cannot receive incoming connections."
20637 msgstr ""
20638
20639 #. type: =item
20640 #: ../rescue/virt-rescue.pod:242
20641 msgid "making TCP connections"
20642 msgstr ""
20643
20644 #. type: textblock
20645 #: ../rescue/virt-rescue.pod:244
20646 msgid ""
20647 "The virt-rescue appliance needs to be small and so does not include many "
20648 "network tools.  In particular there is no L<telnet(1)> command.  You can "
20649 "make TCP connections from the shell using the magical C</dev/tcp/"
20650 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
20651 msgstr ""
20652
20653 #. type: verbatim
20654 #: ../rescue/virt-rescue.pod:249
20655 #, no-wrap
20656 msgid ""
20657 " exec 3<>/dev/tcp/redhat.com/80\n"
20658 " echo \"GET /\" >&3\n"
20659 " cat <&3\n"
20660 "\n"
20661 msgstr ""
20662
20663 #. type: textblock
20664 #: ../rescue/virt-rescue.pod:253
20665 msgid "See L<bash(1)> for more details."
20666 msgstr ""
20667
20668 #. type: textblock
20669 #: ../rescue/virt-rescue.pod:259
20670 msgid ""
20671 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
20672 "ENVIRONMENT VARIABLES> for the complete list."
20673 msgstr ""
20674
20675 #. type: textblock
20676 #: ../rescue/virt-rescue.pod:286
20677 msgid ""
20678 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
20679 "libguestfs.org/>."
20680 msgstr ""
20681
20682 #. type: textblock
20683 #: ../resize/virt-resize.pod:5
20684 msgid "virt-resize - Resize a virtual machine disk"
20685 msgstr ""
20686
20687 #. type: verbatim
20688 #: ../resize/virt-resize.pod:9
20689 #, no-wrap
20690 msgid ""
20691 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
20692 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
20693 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
20694 "\n"
20695 msgstr ""
20696
20697 #. type: textblock
20698 #: ../resize/virt-resize.pod:15
20699 msgid ""
20700 "Virt-resize is a tool which can resize a virtual machine disk, making it "
20701 "larger or smaller overall, and resizing or deleting any partitions contained "
20702 "within."
20703 msgstr ""
20704
20705 #. type: textblock
20706 #: ../resize/virt-resize.pod:19
20707 msgid ""
20708 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
20709 "not> be used on live virtual machines - for consistent results, shut the "
20710 "virtual machine down before resizing it."
20711 msgstr ""
20712
20713 #. type: textblock
20714 #: ../resize/virt-resize.pod:23
20715 msgid ""
20716 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
20717 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
20718 msgstr ""
20719
20720 #. type: =item
20721 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:520
20722 #: ../src/guestfs.pod:469 ../src/guestfs.pod:1257 ../src/guestfs.pod:1396
20723 #: ../src/guestfs.pod:2481
20724 msgid "1."
20725 msgstr ""
20726
20727 #. type: textblock
20728 #: ../resize/virt-resize.pod:33
20729 msgid ""
20730 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
20731 "fill the extra 5GB of space."
20732 msgstr ""
20733
20734 #. type: verbatim
20735 #: ../resize/virt-resize.pod:36
20736 #, no-wrap
20737 msgid ""
20738 " virt-filesystems --long -h --all -a olddisk\n"
20739 " \n"
20740 msgstr ""
20741
20742 #. type: verbatim
20743 #: ../resize/virt-resize.pod:38
20744 #, no-wrap
20745 msgid ""
20746 " truncate -r olddisk newdisk\n"
20747 " truncate -s +5G newdisk\n"
20748 " \n"
20749 msgstr ""
20750
20751 #. type: verbatim
20752 #: ../resize/virt-resize.pod:41
20753 #, no-wrap
20754 msgid ""
20755 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
20756 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
20757 "\n"
20758 msgstr ""
20759
20760 #. type: =item
20761 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:527
20762 #: ../src/guestfs.pod:475 ../src/guestfs.pod:1261 ../src/guestfs.pod:1400
20763 #: ../src/guestfs.pod:2506
20764 msgid "2."
20765 msgstr ""
20766
20767 #. type: textblock
20768 #: ../resize/virt-resize.pod:46
20769 msgid ""
20770 "As above, but make the /boot partition 200MB bigger, while giving the "
20771 "remaining space to /dev/sda2:"
20772 msgstr ""
20773
20774 #. type: verbatim
20775 #: ../resize/virt-resize.pod:49
20776 #, no-wrap
20777 msgid ""
20778 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
20779 "   olddisk newdisk\n"
20780 "\n"
20781 msgstr ""
20782
20783 #. type: =item
20784 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:533
20785 #: ../src/guestfs.pod:486 ../src/guestfs.pod:1406
20786 msgid "3."
20787 msgstr ""
20788
20789 #. type: textblock
20790 #: ../resize/virt-resize.pod:54
20791 msgid ""
20792 "As in the first example, but expand a logical volume as the final step.  "
20793 "This is what you would typically use for Linux guests that use LVM:"
20794 msgstr ""
20795
20796 #. type: verbatim
20797 #: ../resize/virt-resize.pod:58
20798 #, no-wrap
20799 msgid ""
20800 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
20801 "   olddisk newdisk\n"
20802 "\n"
20803 msgstr ""
20804
20805 #. type: =item
20806 #: ../resize/virt-resize.pod:61
20807 msgid "4."
20808 msgstr ""
20809
20810 #. type: textblock
20811 #: ../resize/virt-resize.pod:63
20812 msgid ""
20813 "As in the first example, but the output format will be qcow2 instead of a "
20814 "raw disk:"
20815 msgstr ""
20816
20817 #. type: verbatim
20818 #: ../resize/virt-resize.pod:66
20819 #, no-wrap
20820 msgid ""
20821 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
20822 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
20823 "\n"
20824 msgstr ""
20825
20826 #. type: =head1
20827 #: ../resize/virt-resize.pod:71
20828 msgid "DETAILED USAGE"
20829 msgstr ""
20830
20831 #. type: =head2
20832 #: ../resize/virt-resize.pod:73
20833 msgid "EXPANDING A VIRTUAL MACHINE DISK"
20834 msgstr ""
20835
20836 #. type: =item
20837 #: ../resize/virt-resize.pod:77
20838 msgid "1. Shut down the virtual machine"
20839 msgstr ""
20840
20841 #. type: =item
20842 #: ../resize/virt-resize.pod:79
20843 msgid "2. Locate input disk image"
20844 msgstr ""
20845
20846 #. type: textblock
20847 #: ../resize/virt-resize.pod:81
20848 msgid ""
20849 "Locate the input disk image (ie. the file or device on the host containing "
20850 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
20851 "dumpxml> like this to find the disk image name:"
20852 msgstr ""
20853
20854 #. type: verbatim
20855 #: ../resize/virt-resize.pod:85
20856 #, no-wrap
20857 msgid ""
20858 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
20859 " Found 1 nodes:\n"
20860 " -- NODE --\n"
20861 " <source dev=\"/dev/vg/lv_guest\" />\n"
20862 "\n"
20863 msgstr ""
20864
20865 #. type: =item
20866 #: ../resize/virt-resize.pod:90
20867 msgid "3. Look at current sizing"
20868 msgstr ""
20869
20870 #. type: textblock
20871 #: ../resize/virt-resize.pod:92
20872 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
20873 msgstr ""
20874
20875 #. type: verbatim
20876 #: ../resize/virt-resize.pod:95
20877 #, no-wrap
20878 msgid ""
20879 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
20880 " Name       Type       Size  Parent\n"
20881 " /dev/sda1  partition  101M  /dev/sda\n"
20882 " /dev/sda2  partition  7.9G  /dev/sda\n"
20883 " /dev/sda   device     8.0G  -\n"
20884 "\n"
20885 msgstr ""
20886
20887 #. type: textblock
20888 #: ../resize/virt-resize.pod:101
20889 msgid ""
20890 "(This example is a virtual machine with an 8 GB disk which we would like to "
20891 "expand up to 10 GB)."
20892 msgstr ""
20893
20894 #. type: =item
20895 #: ../resize/virt-resize.pod:104
20896 msgid "4. Create output disk"
20897 msgstr ""
20898
20899 #. type: textblock
20900 #: ../resize/virt-resize.pod:106
20901 msgid ""
20902 "Virt-resize cannot do in-place disk modifications.  You have to have space "
20903 "to store the resized output disk."
20904 msgstr ""
20905
20906 #. type: textblock
20907 #: ../resize/virt-resize.pod:109
20908 msgid ""
20909 "To store the resized disk image in a file, create a file of a suitable size:"
20910 msgstr ""
20911
20912 #. type: verbatim
20913 #: ../resize/virt-resize.pod:112
20914 #, no-wrap
20915 msgid ""
20916 " # rm -f outdisk\n"
20917 " # truncate -s 10G outdisk\n"
20918 "\n"
20919 msgstr ""
20920
20921 #. type: textblock
20922 #: ../resize/virt-resize.pod:115
20923 msgid "Or use L<lvcreate(1)> to create a logical volume:"
20924 msgstr ""
20925
20926 #. type: verbatim
20927 #: ../resize/virt-resize.pod:117
20928 #, no-wrap
20929 msgid ""
20930 " # lvcreate -L 10G -n lv_name vg_name\n"
20931 "\n"
20932 msgstr ""
20933
20934 #. type: textblock
20935 #: ../resize/virt-resize.pod:119
20936 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
20937 msgstr ""
20938
20939 #. type: verbatim
20940 #: ../resize/virt-resize.pod:121
20941 #, no-wrap
20942 msgid ""
20943 " # virsh pool-list\n"
20944 " # virsh vol-create-as poolname newvol 10G\n"
20945 "\n"
20946 msgstr ""
20947
20948 #. type: =item
20949 #: ../resize/virt-resize.pod:124
20950 msgid "5. Resize"
20951 msgstr ""
20952
20953 #. type: textblock
20954 #: ../resize/virt-resize.pod:126
20955 msgid ""
20956 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
20957 "file) and the output disk.  The output disk is the one created in the "
20958 "previous step."
20959 msgstr ""
20960
20961 #. type: verbatim
20962 #: ../resize/virt-resize.pod:130
20963 #, no-wrap
20964 msgid ""
20965 " # virt-resize indisk outdisk\n"
20966 "\n"
20967 msgstr ""
20968
20969 #. type: textblock
20970 #: ../resize/virt-resize.pod:132
20971 msgid ""
20972 "This command just copies disk image C<indisk> to disk image C<outdisk> "
20973 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
20974 "larger, then an extra, empty partition is created at the end of the disk "
20975 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
20976 "error."
20977 msgstr ""
20978
20979 #. type: textblock
20980 #: ../resize/virt-resize.pod:138
20981 msgid ""
20982 "More realistically you'd want to expand existing partitions in the disk "
20983 "image by passing extra options (for the full list see the L</OPTIONS> "
20984 "section below)."
20985 msgstr ""
20986
20987 #. type: textblock
20988 #: ../resize/virt-resize.pod:142
20989 msgid ""
20990 "L</--expand> is the most useful option.  It expands the named partition "
20991 "within the disk to fill any extra space:"
20992 msgstr ""
20993
20994 #. type: verbatim
20995 #: ../resize/virt-resize.pod:145
20996 #, no-wrap
20997 msgid ""
20998 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
20999 "\n"
21000 msgstr ""
21001
21002 #. type: textblock
21003 #: ../resize/virt-resize.pod:147
21004 msgid ""
21005 "(In this case, an extra partition is I<not> created at the end of the disk, "
21006 "because there will be no unused space)."
21007 msgstr ""
21008
21009 #. type: textblock
21010 #: ../resize/virt-resize.pod:150
21011 msgid ""
21012 "L</--resize> is the other commonly used option.  The following would "
21013 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
21014 "rest of the available space:"
21015 msgstr ""
21016
21017 #. type: verbatim
21018 #: ../resize/virt-resize.pod:154
21019 #, no-wrap
21020 msgid ""
21021 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
21022 "     indisk outdisk\n"
21023 "\n"
21024 msgstr ""
21025
21026 #. type: textblock
21027 #: ../resize/virt-resize.pod:157
21028 msgid ""
21029 "If the expanded partition in the image contains a filesystem or LVM PV, then "
21030 "if virt-resize knows how, it will resize the contents, the equivalent of "
21031 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
21032 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
21033 "filesystems, so you would have to online resize them after booting the guest."
21034 msgstr ""
21035
21036 #. type: textblock
21037 #: ../resize/virt-resize.pod:164
21038 msgid "Other options are covered below."
21039 msgstr ""
21040
21041 #. type: =item
21042 #: ../resize/virt-resize.pod:166
21043 msgid "6. Test"
21044 msgstr ""
21045
21046 #. type: textblock
21047 #: ../resize/virt-resize.pod:168
21048 msgid "Thoroughly test the new disk image I<before> discarding the old one."
21049 msgstr ""
21050
21051 #. type: textblock
21052 #: ../resize/virt-resize.pod:170
21053 msgid "If you are using libvirt, edit the XML to point at the new disk:"
21054 msgstr ""
21055
21056 #. type: verbatim
21057 #: ../resize/virt-resize.pod:172
21058 #, no-wrap
21059 msgid ""
21060 " # virsh edit guestname\n"
21061 "\n"
21062 msgstr ""
21063
21064 #. type: textblock
21065 #: ../resize/virt-resize.pod:174
21066 msgid ""
21067 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
21068 "html#elementsDisks>"
21069 msgstr ""
21070
21071 #. type: textblock
21072 #: ../resize/virt-resize.pod:177
21073 msgid "Then start up the domain with the new, resized disk:"
21074 msgstr ""
21075
21076 #. type: verbatim
21077 #: ../resize/virt-resize.pod:179
21078 #, no-wrap
21079 msgid ""
21080 " # virsh start guestname\n"
21081 "\n"
21082 msgstr ""
21083
21084 #. type: textblock
21085 #: ../resize/virt-resize.pod:181
21086 msgid ""
21087 "and check that it still works.  See also the L</NOTES> section below for "
21088 "additional information."
21089 msgstr ""
21090
21091 #. type: =item
21092 #: ../resize/virt-resize.pod:184
21093 msgid "7. Resize LVs etc inside the guest"
21094 msgstr ""
21095
21096 #. type: textblock
21097 #: ../resize/virt-resize.pod:186
21098 msgid "(This can also be done offline using L<guestfish(1)>)"
21099 msgstr ""
21100
21101 #. type: textblock
21102 #: ../resize/virt-resize.pod:188
21103 msgid ""
21104 "Once the guest has booted you should see the new space available, at least "
21105 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
21106 "may need to resize LVs inside PVs, and also resize filesystem types that "
21107 "virt-resize does not know how to expand."
21108 msgstr ""
21109
21110 #. type: =head2
21111 #: ../resize/virt-resize.pod:195
21112 msgid "SHRINKING A VIRTUAL MACHINE DISK"
21113 msgstr ""
21114
21115 #. type: textblock
21116 #: ../resize/virt-resize.pod:197
21117 msgid ""
21118 "Shrinking is somewhat more complex than expanding, and only an overview is "
21119 "given here."
21120 msgstr ""
21121
21122 #. type: textblock
21123 #: ../resize/virt-resize.pod:200
21124 msgid ""
21125 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
21126 "filesystems).  The user has to shrink content before passing the disk image "
21127 "to virt-resize, and virt-resize will check that the content has been shrunk "
21128 "properly."
21129 msgstr ""
21130
21131 #. type: textblock
21132 #: ../resize/virt-resize.pod:205
21133 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
21134 msgstr ""
21135
21136 #. type: textblock
21137 #: ../resize/virt-resize.pod:207
21138 msgid ""
21139 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
21140 "steps 3 and 4 above to allocate a new disk image."
21141 msgstr ""
21142
21143 #. type: textblock
21144 #: ../resize/virt-resize.pod:210
21145 msgid ""
21146 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
21147 msgstr ""
21148
21149 #. type: =head2
21150 #: ../resize/virt-resize.pod:213
21151 msgid "IGNORING OR DELETING PARTITIONS"
21152 msgstr ""
21153
21154 #. type: textblock
21155 #: ../resize/virt-resize.pod:215
21156 msgid ""
21157 "virt-resize also gives a convenient way to ignore or delete partitions when "
21158 "copying from the input disk to the output disk.  Ignoring a partition speeds "
21159 "up the copy where you don't care about the existing contents of a "
21160 "partition.  Deleting a partition removes it completely, but note that it "
21161 "also renumbers any partitions after the one which is deleted, which can "
21162 "leave some guests unbootable."
21163 msgstr ""
21164
21165 #. type: =head2
21166 #: ../resize/virt-resize.pod:222
21167 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
21168 msgstr ""
21169
21170 #. type: textblock
21171 #: ../resize/virt-resize.pod:224
21172 msgid ""
21173 "If the input disk is in qcow2 format, then you may prefer that the output is "
21174 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
21175 "the fly.  The output format is simply determined by the format of the empty "
21176 "output container that you provide.  Thus to create qcow2 output, use:"
21177 msgstr ""
21178
21179 #. type: verbatim
21180 #: ../resize/virt-resize.pod:230
21181 #, no-wrap
21182 msgid ""
21183 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
21184 "\n"
21185 msgstr ""
21186
21187 #. type: textblock
21188 #: ../resize/virt-resize.pod:232
21189 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
21190 msgstr ""
21191
21192 #. type: textblock
21193 #: ../resize/virt-resize.pod:234
21194 msgid "Similarly, to get non-sparse raw output use:"
21195 msgstr ""
21196
21197 #. type: verbatim
21198 #: ../resize/virt-resize.pod:236
21199 #, no-wrap
21200 msgid ""
21201 " fallocate -l size outdisk\n"
21202 "\n"
21203 msgstr ""
21204
21205 #. type: textblock
21206 #: ../resize/virt-resize.pod:238
21207 msgid ""
21208 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
21209 "dev/zero of=outdisk bs=1M count=..>)"
21210 msgstr ""
21211
21212 #. type: textblock
21213 #: ../resize/virt-resize.pod:247
21214 msgid "Display help."
21215 msgstr ""
21216
21217 #. type: =item
21218 #: ../resize/virt-resize.pod:249
21219 msgid "B<-d>"
21220 msgstr ""
21221
21222 #. type: =item
21223 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
21224 #: ../tools/virt-win-reg.pl:120
21225 msgid "B<--debug>"
21226 msgstr ""
21227
21228 #. type: textblock
21229 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
21230 msgid "Enable debugging messages."
21231 msgstr ""
21232
21233 #. type: =item
21234 #: ../resize/virt-resize.pod:255
21235 msgid "B<--delete part>"
21236 msgstr ""
21237
21238 #. type: textblock
21239 #: ../resize/virt-resize.pod:257
21240 msgid ""
21241 "Delete the named partition.  It would be more accurate to describe this as "
21242 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
21243 "the original disk image is left intact."
21244 msgstr ""
21245
21246 #. type: textblock
21247 #: ../resize/virt-resize.pod:261
21248 msgid ""
21249 "Note that when you delete a partition, then anything contained in the "
21250 "partition is also deleted.  Furthermore, this causes any partitions that "
21251 "come after to be I<renumbered>, which can easily make your guest unbootable."
21252 msgstr ""
21253
21254 #. type: textblock
21255 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
21256 #: ../resize/virt-resize.pod:454
21257 msgid "You can give this option multiple times."
21258 msgstr ""
21259
21260 #. type: =item
21261 #: ../resize/virt-resize.pod:268
21262 msgid "B<--expand part>"
21263 msgstr ""
21264
21265 #. type: textblock
21266 #: ../resize/virt-resize.pod:270
21267 msgid ""
21268 "Expand the named partition so it uses up all extra space (space left over "
21269 "after any other resize changes that you request have been done)."
21270 msgstr ""
21271
21272 #. type: textblock
21273 #: ../resize/virt-resize.pod:273
21274 msgid ""
21275 "If virt-resize knows how, it will expand the direct content of the "
21276 "partition.  For example, if the partition is an LVM PV, it will expand the "
21277 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
21278 "content it doesn't know about alone."
21279 msgstr ""
21280
21281 #. type: textblock
21282 #: ../resize/virt-resize.pod:278
21283 msgid "Currently virt-resize can resize:"
21284 msgstr ""
21285
21286 #. type: textblock
21287 #: ../resize/virt-resize.pod:284
21288 msgid "ext2, ext3 and ext4 filesystems."
21289 msgstr ""
21290
21291 #. type: textblock
21292 #: ../resize/virt-resize.pod:288
21293 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
21294 msgstr ""
21295
21296 #. type: textblock
21297 #: ../resize/virt-resize.pod:290
21298 msgid ""
21299 "The filesystem must have been shut down consistently last time it was used.  "
21300 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
21301 "consistency check, so at the first boot after resizing Windows will check "
21302 "the disk."
21303 msgstr ""
21304
21305 #. type: textblock
21306 #: ../resize/virt-resize.pod:297
21307 msgid ""
21308 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
21309 "inside the PV, but see the I<--LV-expand> option.  The user could also "
21310 "resize LVs as desired after boot."
21311 msgstr ""
21312
21313 #. type: textblock
21314 #: ../resize/virt-resize.pod:303
21315 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
21316 msgstr ""
21317
21318 #. type: textblock
21319 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
21320 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
21321 msgstr ""
21322
21323 #. type: =item
21324 #: ../resize/virt-resize.pod:309 ../tools/virt-list-filesystems.pl:91
21325 #: ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141
21326 #: ../tools/virt-win-reg.pl:142
21327 msgid "B<--format> raw"
21328 msgstr ""
21329
21330 #. type: textblock
21331 #: ../resize/virt-resize.pod:311
21332 msgid ""
21333 "Specify the format of the input disk image.  If this flag is not given then "
21334 "it is auto-detected from the image itself."
21335 msgstr ""
21336
21337 #. type: textblock
21338 #: ../resize/virt-resize.pod:317
21339 msgid ""
21340 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
21341 "AND NON-SPARSE RAW FORMATS>."
21342 msgstr ""
21343
21344 #. type: =item
21345 #: ../resize/virt-resize.pod:320
21346 msgid "B<--ignore part>"
21347 msgstr ""
21348
21349 #. type: textblock
21350 #: ../resize/virt-resize.pod:322
21351 msgid ""
21352 "Ignore the named partition.  Effectively this means the partition is "
21353 "allocated on the destination disk, but the content is not copied across from "
21354 "the source disk.  The content of the partition will be blank (all zero "
21355 "bytes)."
21356 msgstr ""
21357
21358 #. type: =item
21359 #: ../resize/virt-resize.pod:329
21360 msgid "B<--LV-expand logvol>"
21361 msgstr ""
21362
21363 #. type: textblock
21364 #: ../resize/virt-resize.pod:331
21365 msgid ""
21366 "This takes the logical volume and, as a final step, expands it to fill all "
21367 "the space available in its volume group.  A typical usage, assuming a Linux "
21368 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
21369 "lv_root> would be:"
21370 msgstr ""
21371
21372 #. type: verbatim
21373 #: ../resize/virt-resize.pod:336
21374 #, no-wrap
21375 msgid ""
21376 " virt-resize indisk outdisk \\\n"
21377 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
21378 "\n"
21379 msgstr ""
21380
21381 #. type: textblock
21382 #: ../resize/virt-resize.pod:339
21383 msgid ""
21384 "This would first expand the partition (and PV), and then expand the root "
21385 "device to fill the extra space in the PV."
21386 msgstr ""
21387
21388 #. type: textblock
21389 #: ../resize/virt-resize.pod:342
21390 msgid ""
21391 "The contents of the LV are also resized if virt-resize knows how to do "
21392 "that.  You can stop virt-resize from trying to expand the content by using "
21393 "the option I<--no-expand-content>."
21394 msgstr ""
21395
21396 #. type: textblock
21397 #: ../resize/virt-resize.pod:346
21398 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
21399 msgstr ""
21400
21401 #. type: textblock
21402 #: ../resize/virt-resize.pod:348
21403 msgid ""
21404 "You can give this option multiple times, I<but> it doesn't make sense to do "
21405 "this unless the logical volumes you specify are all in different volume "
21406 "groups."
21407 msgstr ""
21408
21409 #. type: =item
21410 #: ../resize/virt-resize.pod:352
21411 msgid "B<--machine-readable>"
21412 msgstr ""
21413
21414 #. type: textblock
21415 #: ../resize/virt-resize.pod:354
21416 msgid ""
21417 "This option is used to make the output more machine friendly when being "
21418 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
21419 msgstr ""
21420
21421 #. type: =item
21422 #: ../resize/virt-resize.pod:360
21423 msgid "B<--dryrun>"
21424 msgstr ""
21425
21426 #. type: textblock
21427 #: ../resize/virt-resize.pod:362
21428 msgid "Print a summary of what would be done, but don't do anything."
21429 msgstr ""
21430
21431 #. type: =item
21432 #: ../resize/virt-resize.pod:364
21433 msgid "B<--no-copy-boot-loader>"
21434 msgstr ""
21435
21436 #. type: textblock
21437 #: ../resize/virt-resize.pod:366
21438 msgid ""
21439 "By default, virt-resize copies over some sectors at the start of the disk "
21440 "(up to the beginning of the first partition).  Commonly these sectors "
21441 "contain the Master Boot Record (MBR) and the boot loader, and are required "
21442 "in order for the guest to boot correctly."
21443 msgstr ""
21444
21445 #. type: textblock
21446 #: ../resize/virt-resize.pod:371
21447 msgid ""
21448 "If you specify this flag, then this initial copy is not done.  You may need "
21449 "to reinstall the boot loader in this case."
21450 msgstr ""
21451
21452 #. type: =item
21453 #: ../resize/virt-resize.pod:374
21454 msgid "B<--no-extra-partition>"
21455 msgstr ""
21456
21457 #. type: textblock
21458 #: ../resize/virt-resize.pod:376
21459 msgid ""
21460 "By default, virt-resize creates an extra partition if there is any extra, "
21461 "unused space after all resizing has happened.  Use this option to prevent "
21462 "the extra partition from being created.  If you do this then the extra space "
21463 "will be inaccessible until you run fdisk, parted, or some other partitioning "
21464 "tool in the guest."
21465 msgstr ""
21466
21467 #. type: textblock
21468 #: ../resize/virt-resize.pod:382
21469 msgid ""
21470 "Note that if the surplus space is smaller than 10 MB, no extra partition "
21471 "will be created."
21472 msgstr ""
21473
21474 #. type: =item
21475 #: ../resize/virt-resize.pod:385
21476 msgid "B<--no-expand-content>"
21477 msgstr ""
21478
21479 #. type: textblock
21480 #: ../resize/virt-resize.pod:387
21481 msgid ""
21482 "By default, virt-resize will try to expand the direct contents of "
21483 "partitions, if it knows how (see I<--expand> option above)."
21484 msgstr ""
21485
21486 #. type: textblock
21487 #: ../resize/virt-resize.pod:390
21488 msgid ""
21489 "If you give the I<--no-expand-content> option then virt-resize will not "
21490 "attempt this."
21491 msgstr ""
21492
21493 #. type: =item
21494 #: ../resize/virt-resize.pod:393
21495 msgid "B<--ntfsresize-force>"
21496 msgstr ""
21497
21498 #. type: textblock
21499 #: ../resize/virt-resize.pod:395
21500 msgid ""
21501 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
21502 "the NTFS disk is marked as needing a consistency check.  You have to use "
21503 "this option if you want to resize a Windows guest multiple times without "
21504 "booting into Windows between each resize."
21505 msgstr ""
21506
21507 #. type: =item
21508 #: ../resize/virt-resize.pod:401
21509 msgid "B<--output-format> raw"
21510 msgstr ""
21511
21512 #. type: textblock
21513 #: ../resize/virt-resize.pod:403
21514 msgid ""
21515 "Specify the format of the output disk image.  If this flag is not given then "
21516 "it is auto-detected from the image itself."
21517 msgstr ""
21518
21519 #. type: textblock
21520 #: ../resize/virt-resize.pod:409
21521 msgid ""
21522 "Note that this option I<does not create> the output format.  This option "
21523 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
21524 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
21525 "SPARSE RAW FORMATS>."
21526 msgstr ""
21527
21528 #. type: =item
21529 #: ../resize/virt-resize.pod:414
21530 msgid "B<-q>"
21531 msgstr ""
21532
21533 #. type: =item
21534 #: ../resize/virt-resize.pod:416
21535 msgid "B<--quiet>"
21536 msgstr ""
21537
21538 #. type: textblock
21539 #: ../resize/virt-resize.pod:418
21540 msgid "Don't print the summary."
21541 msgstr ""
21542
21543 #. type: =item
21544 #: ../resize/virt-resize.pod:420
21545 msgid "B<--resize part=size>"
21546 msgstr ""
21547
21548 #. type: textblock
21549 #: ../resize/virt-resize.pod:422
21550 msgid ""
21551 "Resize the named partition (expanding or shrinking it) so that it has the "
21552 "given size."
21553 msgstr ""
21554
21555 #. type: textblock
21556 #: ../resize/virt-resize.pod:425
21557 msgid ""
21558 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
21559 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
21560 "size; or as a relative number or percentage.  For example:"
21561 msgstr ""
21562
21563 #. type: verbatim
21564 #: ../resize/virt-resize.pod:431
21565 #, no-wrap
21566 msgid ""
21567 " --resize /dev/sda2=10G\n"
21568 "\n"
21569 msgstr ""
21570
21571 #. type: verbatim
21572 #: ../resize/virt-resize.pod:433
21573 #, no-wrap
21574 msgid ""
21575 " --resize /dev/sda4=90%\n"
21576 "\n"
21577 msgstr ""
21578
21579 #. type: verbatim
21580 #: ../resize/virt-resize.pod:435
21581 #, no-wrap
21582 msgid ""
21583 " --resize /dev/sda2=+1G\n"
21584 "\n"
21585 msgstr ""
21586
21587 #. type: verbatim
21588 #: ../resize/virt-resize.pod:437
21589 #, no-wrap
21590 msgid ""
21591 " --resize /dev/sda2=-200M\n"
21592 "\n"
21593 msgstr ""
21594
21595 #. type: verbatim
21596 #: ../resize/virt-resize.pod:439
21597 #, no-wrap
21598 msgid ""
21599 " --resize /dev/sda1=+128K\n"
21600 "\n"
21601 msgstr ""
21602
21603 #. type: verbatim
21604 #: ../resize/virt-resize.pod:441
21605 #, no-wrap
21606 msgid ""
21607 " --resize /dev/sda1=+10%\n"
21608 "\n"
21609 msgstr ""
21610
21611 #. type: verbatim
21612 #: ../resize/virt-resize.pod:443
21613 #, no-wrap
21614 msgid ""
21615 " --resize /dev/sda1=-10%\n"
21616 "\n"
21617 msgstr ""
21618
21619 #. type: textblock
21620 #: ../resize/virt-resize.pod:445
21621 msgid ""
21622 "You can increase the size of any partition.  Virt-resize will expand the "
21623 "direct content of the partition if it knows how (see I<--expand> below)."
21624 msgstr ""
21625
21626 #. type: textblock
21627 #: ../resize/virt-resize.pod:449
21628 msgid ""
21629 "You can only I<decrease> the size of partitions that contain filesystems or "
21630 "PVs which have already been shrunk.  Virt-resize will check this has been "
21631 "done before proceeding, or else will print an error (see also I<--resize-"
21632 "force>)."
21633 msgstr ""
21634
21635 #. type: =item
21636 #: ../resize/virt-resize.pod:456
21637 msgid "B<--resize-force part=size>"
21638 msgstr ""
21639
21640 #. type: textblock
21641 #: ../resize/virt-resize.pod:458
21642 msgid ""
21643 "This is the same as I<--resize> except that it will let you decrease the "
21644 "size of any partition.  Generally this means you will lose any data which "
21645 "was at the end of the partition you shrink, but you may not care about that "
21646 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
21647 "as a swap partition)."
21648 msgstr ""
21649
21650 #. type: textblock
21651 #: ../resize/virt-resize.pod:464
21652 msgid "See also the I<--ignore> option."
21653 msgstr ""
21654
21655 #. type: =item
21656 #: ../resize/virt-resize.pod:466
21657 msgid "B<--shrink part>"
21658 msgstr ""
21659
21660 #. type: textblock
21661 #: ../resize/virt-resize.pod:468
21662 msgid ""
21663 "Shrink the named partition until the overall disk image fits in the "
21664 "destination.  The named partition B<must> contain a filesystem or PV which "
21665 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
21666 "online tools).  Virt-resize will check this and give an error if it has not "
21667 "been done."
21668 msgstr ""
21669
21670 #. type: textblock
21671 #: ../resize/virt-resize.pod:474
21672 msgid ""
21673 "The amount by which the overall disk must be shrunk (after carrying out all "
21674 "other operations requested by the user) is called the \"deficit\".  For "
21675 "example, a straight copy (assume no other operations)  from a 5GB disk image "
21676 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
21677 "would give an error unless the user specified a partition to shrink and that "
21678 "partition had more than a gigabyte of free space."
21679 msgstr ""
21680
21681 #. type: =head1
21682 #: ../resize/virt-resize.pod:492
21683 msgid "MACHINE READABLE OUTPUT"
21684 msgstr ""
21685
21686 #. type: textblock
21687 #: ../resize/virt-resize.pod:494
21688 msgid ""
21689 "The I<--machine-readable> option can be used to make the output more machine "
21690 "friendly, which is useful when calling virt-resize from other programs, GUIs "
21691 "etc."
21692 msgstr ""
21693
21694 #. type: textblock
21695 #: ../resize/virt-resize.pod:498
21696 msgid "There are two ways to use this option."
21697 msgstr ""
21698
21699 #. type: textblock
21700 #: ../resize/virt-resize.pod:500
21701 msgid ""
21702 "Firstly use the option on its own to query the capabilities of the virt-"
21703 "resize binary.  Typical output looks like this:"
21704 msgstr ""
21705
21706 #. type: verbatim
21707 #: ../resize/virt-resize.pod:503
21708 #, no-wrap
21709 msgid ""
21710 " $ virt-resize --machine-readable\n"
21711 " virt-resize\n"
21712 " ntfsresize-force\n"
21713 " 32bitok\n"
21714 " ntfs\n"
21715 " btrfs\n"
21716 "\n"
21717 msgstr ""
21718
21719 #. type: textblock
21720 #: ../resize/virt-resize.pod:510
21721 msgid ""
21722 "A list of features is printed, one per line, and the program exits with "
21723 "status 0."
21724 msgstr ""
21725
21726 #. type: textblock
21727 #: ../resize/virt-resize.pod:513
21728 msgid ""
21729 "Secondly use the option in conjunction with other options to make the "
21730 "regular program output more machine friendly."
21731 msgstr ""
21732
21733 #. type: textblock
21734 #: ../resize/virt-resize.pod:516
21735 msgid "At the moment this means:"
21736 msgstr ""
21737
21738 #. type: textblock
21739 #: ../resize/virt-resize.pod:522
21740 msgid ""
21741 "Progress bar messages can be parsed from stdout by looking for this regular "
21742 "expression:"
21743 msgstr ""
21744
21745 #. type: verbatim
21746 #: ../resize/virt-resize.pod:525
21747 #, no-wrap
21748 msgid ""
21749 " ^[0-9]+/[0-9]+$\n"
21750 "\n"
21751 msgstr ""
21752
21753 #. type: textblock
21754 #: ../resize/virt-resize.pod:529
21755 msgid ""
21756 "The calling program should treat messages sent to stdout (except for "
21757 "progress bar messages) as status messages.  They can be logged and/or "
21758 "displayed to the user."
21759 msgstr ""
21760
21761 #. type: textblock
21762 #: ../resize/virt-resize.pod:535
21763 msgid ""
21764 "The calling program should treat messages sent to stderr as error messages.  "
21765 "In addition, virt-resize exits with a non-zero status code if there was a "
21766 "fatal error."
21767 msgstr ""
21768
21769 #. type: textblock
21770 #: ../resize/virt-resize.pod:541
21771 msgid ""
21772 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
21773 "readable> option and will return an error."
21774 msgstr ""
21775
21776 #. type: =head2
21777 #: ../resize/virt-resize.pod:546
21778 msgid "\"Partition 1 does not end on cylinder boundary.\""
21779 msgstr ""
21780
21781 #. type: textblock
21782 #: ../resize/virt-resize.pod:548
21783 msgid ""
21784 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
21785 "means the partitions will not be aligned to the ancient CHS geometry.  "
21786 "However CHS geometry is meaningless for disks manufactured since the early "
21787 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
21788 "cylinders is not required by any modern operating system."
21789 msgstr ""
21790
21791 #. type: =head2
21792 #: ../resize/virt-resize.pod:555
21793 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
21794 msgstr ""
21795
21796 #. type: textblock
21797 #: ../resize/virt-resize.pod:557
21798 msgid ""
21799 "In Windows Vista and later versions, Microsoft switched to using a separate "
21800 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
21801 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
21802 "the boot partition.  Doing so seems to break the guest completely.  However "
21803 "expanding the second partition (ie. C: drive) should work."
21804 msgstr ""
21805
21806 #. type: textblock
21807 #: ../resize/virt-resize.pod:564
21808 msgid ""
21809 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
21810 "NTFS partitions have been expanded.  This is just a safety check and (unless "
21811 "it find errors) is nothing to worry about."
21812 msgstr ""
21813
21814 #. type: =head2
21815 #: ../resize/virt-resize.pod:568
21816 msgid "GUEST BOOT STUCK AT \"GRUB\""
21817 msgstr ""
21818
21819 #. type: textblock
21820 #: ../resize/virt-resize.pod:570
21821 msgid ""
21822 "If a Linux guest does not boot after resizing, and the boot is stuck after "
21823 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
21824 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
21825 "although we think is to do with partition alignment."
21826 msgstr ""
21827
21828 #. type: verbatim
21829 #: ../resize/virt-resize.pod:575
21830 #, no-wrap
21831 msgid ""
21832 " guestfish -i -a newdisk\n"
21833 " ><fs> cat /boot/grub/device.map\n"
21834 " # check the contents of this file are sensible or\n"
21835 " # edit the file if necessary\n"
21836 " ><fs> grub-install / /dev/vda\n"
21837 " ><fs> exit\n"
21838 "\n"
21839 msgstr ""
21840
21841 #. type: textblock
21842 #: ../resize/virt-resize.pod:582
21843 msgid ""
21844 "For more flexible guest reconfiguration, including if you need to specify "
21845 "other parameters to grub-install, use L<virt-rescue(1)>."
21846 msgstr ""
21847
21848 #. type: =head1
21849 #: ../resize/virt-resize.pod:585
21850 msgid "ALTERNATIVE TOOLS"
21851 msgstr ""
21852
21853 #. type: textblock
21854 #: ../resize/virt-resize.pod:587
21855 msgid ""
21856 "There are several proprietary tools for resizing partitions.  We won't "
21857 "mention any here."
21858 msgstr ""
21859
21860 #. type: textblock
21861 #: ../resize/virt-resize.pod:590
21862 msgid ""
21863 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
21864 "operations on disk images.  They can resize and move partitions, but I don't "
21865 "think they can do anything with the contents, and they certainly don't "
21866 "understand LVM."
21867 msgstr ""
21868
21869 #. type: textblock
21870 #: ../resize/virt-resize.pod:595
21871 msgid ""
21872 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
21873 "but at a much lower level.  You will probably end up hand-calculating sector "
21874 "offsets, which is something that virt-resize was designed to avoid.  If you "
21875 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
21876 "I<--debug> flag."
21877 msgstr ""
21878
21879 #. type: textblock
21880 #: ../resize/virt-resize.pod:610
21881 msgid ""
21882 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
21883 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
21884 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
21885 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<http://libguestfs.org/>."
21886 msgstr ""
21887
21888 #. type: textblock
21889 #: ../ruby/examples/guestfs-ruby.pod:5
21890 msgid "guestfs-ruby - How to use libguestfs from Ruby"
21891 msgstr ""
21892
21893 #. type: verbatim
21894 #: ../ruby/examples/guestfs-ruby.pod:9
21895 #, no-wrap
21896 msgid ""
21897 " require 'guestfs'\n"
21898 " g = Guestfs::Guestfs.new()\n"
21899 " g.add_drive_opts(\"disk.img\",\n"
21900 "                  :readonly => 1, :format => \"raw\")\n"
21901 " g.launch()\n"
21902 "\n"
21903 msgstr ""
21904
21905 #. type: textblock
21906 #: ../ruby/examples/guestfs-ruby.pod:17
21907 msgid ""
21908 "This manual page documents how to call libguestfs from the Ruby programming "
21909 "language.  This page just documents the differences from the C API and gives "
21910 "some examples.  If you are not familiar with using libguestfs, you also need "
21911 "to read L<guestfs(3)>."
21912 msgstr ""
21913
21914 #. type: textblock
21915 #: ../ruby/examples/guestfs-ruby.pod:24
21916 msgid ""
21917 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
21918 "This has a single parameter which is the error message (a string)."
21919 msgstr ""
21920
21921 #. type: textblock
21922 #: ../ruby/examples/guestfs-ruby.pod:38
21923 msgid ""
21924 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
21925 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<http://"
21926 "libguestfs.org/>."
21927 msgstr ""
21928
21929 #. type: =head2
21930 #: ../src/guestfs-actions.pod:1
21931 msgid "guestfs_add_cdrom"
21932 msgstr ""
21933
21934 #. type: verbatim
21935 #: ../src/guestfs-actions.pod:3
21936 #, no-wrap
21937 msgid ""
21938 " int\n"
21939 " guestfs_add_cdrom (guestfs_h *g,\n"
21940 "                    const char *filename);\n"
21941 "\n"
21942 msgstr ""
21943
21944 #. type: textblock
21945 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:249
21946 #: ../src/guestfs-actions.pod:270
21947 msgid ""
21948 "I<This function is deprecated.> In new code, use the L</"
21949 "guestfs_add_drive_opts> call instead."
21950 msgstr ""
21951
21952 #. type: textblock
21953 #: ../src/guestfs-actions.pod:24
21954 msgid ""
21955 "This call checks for the existence of C<filename>.  This stops you from "
21956 "specifying other types of drive which are supported by qemu such as C<nbd:> "
21957 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
21958 "instead."
21959 msgstr ""
21960
21961 #. type: textblock
21962 #: ../src/guestfs-actions.pod:31
21963 msgid ""
21964 "If you just want to add an ISO file (often you use this as an efficient way "
21965 "to transfer large files into the guest), then you should probably use "
21966 "C<guestfs_add_drive_ro> instead."
21967 msgstr ""
21968
21969 #. type: textblock
21970 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
21971 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
21972 #: ../src/guestfs-actions.pod:259 ../src/guestfs-actions.pod:280
21973 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
21974 #: ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447
21975 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506
21976 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552
21977 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652
21978 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681
21979 #: ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798
21980 #: ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826
21981 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046
21982 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084
21983 #: ../src/guestfs-actions.pod:1168 ../src/guestfs-actions.pod:1186
21984 #: ../src/guestfs-actions.pod:1205 ../src/guestfs-actions.pod:1219
21985 #: ../src/guestfs-actions.pod:1239 ../src/guestfs-actions.pod:1309
21986 #: ../src/guestfs-actions.pod:1340 ../src/guestfs-actions.pod:1365
21987 #: ../src/guestfs-actions.pod:1407 ../src/guestfs-actions.pod:1520
21988 #: ../src/guestfs-actions.pod:1547 ../src/guestfs-actions.pod:1762
21989 #: ../src/guestfs-actions.pod:1784 ../src/guestfs-actions.pod:1871
21990 #: ../src/guestfs-actions.pod:2346 ../src/guestfs-actions.pod:2490
21991 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2586
21992 #: ../src/guestfs-actions.pod:3626 ../src/guestfs-actions.pod:3641
21993 #: ../src/guestfs-actions.pod:3666 ../src/guestfs-actions.pod:3855
21994 #: ../src/guestfs-actions.pod:3869 ../src/guestfs-actions.pod:3882
21995 #: ../src/guestfs-actions.pod:3896 ../src/guestfs-actions.pod:3911
21996 #: ../src/guestfs-actions.pod:3947 ../src/guestfs-actions.pod:4019
21997 #: ../src/guestfs-actions.pod:4039 ../src/guestfs-actions.pod:4056
21998 #: ../src/guestfs-actions.pod:4079 ../src/guestfs-actions.pod:4102
21999 #: ../src/guestfs-actions.pod:4137 ../src/guestfs-actions.pod:4156
22000 #: ../src/guestfs-actions.pod:4175 ../src/guestfs-actions.pod:4210
22001 #: ../src/guestfs-actions.pod:4222 ../src/guestfs-actions.pod:4258
22002 #: ../src/guestfs-actions.pod:4274 ../src/guestfs-actions.pod:4287
22003 #: ../src/guestfs-actions.pod:4302 ../src/guestfs-actions.pod:4319
22004 #: ../src/guestfs-actions.pod:4412 ../src/guestfs-actions.pod:4432
22005 #: ../src/guestfs-actions.pod:4445 ../src/guestfs-actions.pod:4496
22006 #: ../src/guestfs-actions.pod:4514 ../src/guestfs-actions.pod:4532
22007 #: ../src/guestfs-actions.pod:4548 ../src/guestfs-actions.pod:4562
22008 #: ../src/guestfs-actions.pod:4576 ../src/guestfs-actions.pod:4593
22009 #: ../src/guestfs-actions.pod:4608 ../src/guestfs-actions.pod:4635
22010 #: ../src/guestfs-actions.pod:4698 ../src/guestfs-actions.pod:4771
22011 #: ../src/guestfs-actions.pod:4802 ../src/guestfs-actions.pod:4821
22012 #: ../src/guestfs-actions.pod:4840 ../src/guestfs-actions.pod:4852
22013 #: ../src/guestfs-actions.pod:4869 ../src/guestfs-actions.pod:4882
22014 #: ../src/guestfs-actions.pod:4897 ../src/guestfs-actions.pod:4912
22015 #: ../src/guestfs-actions.pod:4954 ../src/guestfs-actions.pod:4980
22016 #: ../src/guestfs-actions.pod:5019 ../src/guestfs-actions.pod:5039
22017 #: ../src/guestfs-actions.pod:5053 ../src/guestfs-actions.pod:5070
22018 #: ../src/guestfs-actions.pod:5119 ../src/guestfs-actions.pod:5172
22019 #: ../src/guestfs-actions.pod:5219 ../src/guestfs-actions.pod:5262
22020 #: ../src/guestfs-actions.pod:5290 ../src/guestfs-actions.pod:5307
22021 #: ../src/guestfs-actions.pod:5325 ../src/guestfs-actions.pod:5465
22022 #: ../src/guestfs-actions.pod:5522 ../src/guestfs-actions.pod:5544
22023 #: ../src/guestfs-actions.pod:5562 ../src/guestfs-actions.pod:5594
22024 #: ../src/guestfs-actions.pod:5660 ../src/guestfs-actions.pod:5677
22025 #: ../src/guestfs-actions.pod:5690 ../src/guestfs-actions.pod:5704
22026 #: ../src/guestfs-actions.pod:5993 ../src/guestfs-actions.pod:6012
22027 #: ../src/guestfs-actions.pod:6031 ../src/guestfs-actions.pod:6045
22028 #: ../src/guestfs-actions.pod:6057 ../src/guestfs-actions.pod:6071
22029 #: ../src/guestfs-actions.pod:6083 ../src/guestfs-actions.pod:6097
22030 #: ../src/guestfs-actions.pod:6113 ../src/guestfs-actions.pod:6134
22031 #: ../src/guestfs-actions.pod:6153 ../src/guestfs-actions.pod:6172
22032 #: ../src/guestfs-actions.pod:6202 ../src/guestfs-actions.pod:6220
22033 #: ../src/guestfs-actions.pod:6243 ../src/guestfs-actions.pod:6261
22034 #: ../src/guestfs-actions.pod:6280 ../src/guestfs-actions.pod:6301
22035 #: ../src/guestfs-actions.pod:6320 ../src/guestfs-actions.pod:6337
22036 #: ../src/guestfs-actions.pod:6356 ../src/guestfs-actions.pod:6384
22037 #: ../src/guestfs-actions.pod:6408 ../src/guestfs-actions.pod:6427
22038 #: ../src/guestfs-actions.pod:6451 ../src/guestfs-actions.pod:6470
22039 #: ../src/guestfs-actions.pod:6485 ../src/guestfs-actions.pod:6504
22040 #: ../src/guestfs-actions.pod:6548 ../src/guestfs-actions.pod:6578
22041 #: ../src/guestfs-actions.pod:6611 ../src/guestfs-actions.pod:6726
22042 #: ../src/guestfs-actions.pod:6847 ../src/guestfs-actions.pod:6859
22043 #: ../src/guestfs-actions.pod:6872 ../src/guestfs-actions.pod:6885
22044 #: ../src/guestfs-actions.pod:6907 ../src/guestfs-actions.pod:6920
22045 #: ../src/guestfs-actions.pod:6933 ../src/guestfs-actions.pod:6946
22046 #: ../src/guestfs-actions.pod:6961 ../src/guestfs-actions.pod:7020
22047 #: ../src/guestfs-actions.pod:7037 ../src/guestfs-actions.pod:7053
22048 #: ../src/guestfs-actions.pod:7069 ../src/guestfs-actions.pod:7086
22049 #: ../src/guestfs-actions.pod:7099 ../src/guestfs-actions.pod:7119
22050 #: ../src/guestfs-actions.pod:7155 ../src/guestfs-actions.pod:7169
22051 #: ../src/guestfs-actions.pod:7210 ../src/guestfs-actions.pod:7223
22052 #: ../src/guestfs-actions.pod:7241 ../src/guestfs-actions.pod:7275
22053 #: ../src/guestfs-actions.pod:7311 ../src/guestfs-actions.pod:7427
22054 #: ../src/guestfs-actions.pod:7442 ../src/guestfs-actions.pod:7456
22055 #: ../src/guestfs-actions.pod:7511 ../src/guestfs-actions.pod:7524
22056 #: ../src/guestfs-actions.pod:7569 ../src/guestfs-actions.pod:7609
22057 #: ../src/guestfs-actions.pod:7665 ../src/guestfs-actions.pod:7685
22058 #: ../src/guestfs-actions.pod:7718 ../src/guestfs-actions.pod:7782
22059 #: ../src/guestfs-actions.pod:7805 ../src/guestfs-actions.pod:7834
22060 msgid "This function returns 0 on success or -1 on error."
22061 msgstr ""
22062
22063 #. type: textblock
22064 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
22065 #: ../src/guestfs-actions.pod:1170 ../src/guestfs-actions.pod:1985
22066 #: ../src/guestfs-actions.pod:2083 ../src/guestfs-actions.pod:2197
22067 #: ../src/guestfs-actions.pod:3628 ../src/guestfs-actions.pod:3648
22068 #: ../src/guestfs-actions.pod:4956 ../src/guestfs-actions.pod:6222
22069 #: ../src/guestfs-actions.pod:6339 ../src/guestfs-actions.pod:6472
22070 #: ../src/guestfs-actions.pod:6963 ../src/guestfs-actions.pod:7088
22071 #: ../src/guestfs-actions.pod:7611
22072 msgid "(Added in 0.3)"
22073 msgstr ""
22074
22075 #. type: =head2
22076 #: ../src/guestfs-actions.pod:41
22077 msgid "guestfs_add_domain"
22078 msgstr ""
22079
22080 #. type: verbatim
22081 #: ../src/guestfs-actions.pod:43
22082 #, no-wrap
22083 msgid ""
22084 " int\n"
22085 " guestfs_add_domain (guestfs_h *g,\n"
22086 "                     const char *dom,\n"
22087 "                     ...);\n"
22088 "\n"
22089 msgstr ""
22090
22091 #. type: textblock
22092 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
22093 #: ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:2831
22094 #: ../src/guestfs-actions.pod:4647 ../src/guestfs-actions.pod:4966
22095 #: ../src/guestfs-actions.pod:5183
22096 msgid ""
22097 "You may supply a list of optional arguments to this call.  Use zero or more "
22098 "of the following pairs of parameters, and terminate the list with C<-1> on "
22099 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
22100 msgstr ""
22101
22102 #. type: verbatim
22103 #: ../src/guestfs-actions.pod:53
22104 #, no-wrap
22105 msgid ""
22106 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
22107 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
22108 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
22109 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
22110 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
22111 "\n"
22112 msgstr ""
22113
22114 #. type: textblock
22115 #: ../src/guestfs-actions.pod:59
22116 msgid ""
22117 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
22118 "It works by connecting to libvirt, requesting the domain and domain XML from "
22119 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
22120 "one."
22121 msgstr ""
22122
22123 #. type: textblock
22124 #: ../src/guestfs-actions.pod:94
22125 msgid ""
22126 "The other optional parameters are passed directly through to "
22127 "C<guestfs_add_drive_opts>."
22128 msgstr ""
22129
22130 #. type: textblock
22131 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
22132 #: ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698
22133 #: ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747
22134 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1385
22135 #: ../src/guestfs-actions.pod:1741 ../src/guestfs-actions.pod:1944
22136 #: ../src/guestfs-actions.pod:2055 ../src/guestfs-actions.pod:2106
22137 #: ../src/guestfs-actions.pod:2161 ../src/guestfs-actions.pod:2184
22138 #: ../src/guestfs-actions.pod:2477 ../src/guestfs-actions.pod:2949
22139 #: ../src/guestfs-actions.pod:2967 ../src/guestfs-actions.pod:5142
22140 #: ../src/guestfs-actions.pod:5362 ../src/guestfs-actions.pod:5774
22141 #: ../src/guestfs-actions.pod:5800 ../src/guestfs-actions.pod:7196
22142 #: ../src/guestfs-actions.pod:7622 ../src/guestfs-actions.pod:7635
22143 #: ../src/guestfs-actions.pod:7648
22144 msgid "On error this function returns -1."
22145 msgstr ""
22146
22147 #. type: textblock
22148 #: ../src/guestfs-actions.pod:99
22149 msgid "(Added in 1.7.4)"
22150 msgstr ""
22151
22152 #. type: =head2
22153 #: ../src/guestfs-actions.pod:101
22154 msgid "guestfs_add_domain_va"
22155 msgstr ""
22156
22157 #. type: verbatim
22158 #: ../src/guestfs-actions.pod:103
22159 #, no-wrap
22160 msgid ""
22161 " int\n"
22162 " guestfs_add_domain_va (guestfs_h *g,\n"
22163 "                        const char *dom,\n"
22164 "                        va_list args);\n"
22165 "\n"
22166 msgstr ""
22167
22168 #. type: textblock
22169 #: ../src/guestfs-actions.pod:108
22170 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
22171 msgstr ""
22172
22173 #. type: textblock
22174 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
22175 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
22176 #: ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887
22177 #: ../src/guestfs-actions.pod:2915 ../src/guestfs-actions.pod:2927
22178 #: ../src/guestfs-actions.pod:4712 ../src/guestfs-actions.pod:4724
22179 #: ../src/guestfs-actions.pod:4994 ../src/guestfs-actions.pod:5006
22180 #: ../src/guestfs-actions.pod:5232 ../src/guestfs-actions.pod:5243
22181 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
22182 msgstr ""
22183
22184 #. type: =head2
22185 #: ../src/guestfs-actions.pod:112
22186 msgid "guestfs_add_domain_argv"
22187 msgstr ""
22188
22189 #. type: verbatim
22190 #: ../src/guestfs-actions.pod:114
22191 #, no-wrap
22192 msgid ""
22193 " int\n"
22194 " guestfs_add_domain_argv (guestfs_h *g,\n"
22195 "                          const char *dom,\n"
22196 "                          const struct guestfs_add_domain_argv *optargs);\n"
22197 "\n"
22198 msgstr ""
22199
22200 #. type: textblock
22201 #: ../src/guestfs-actions.pod:119
22202 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
22203 msgstr ""
22204
22205 #. type: =head2
22206 #: ../src/guestfs-actions.pod:123
22207 msgid "guestfs_add_drive"
22208 msgstr ""
22209
22210 #. type: verbatim
22211 #: ../src/guestfs-actions.pod:125
22212 #, no-wrap
22213 msgid ""
22214 " int\n"
22215 " guestfs_add_drive (guestfs_h *g,\n"
22216 "                    const char *filename);\n"
22217 "\n"
22218 msgstr ""
22219
22220 #. type: textblock
22221 #: ../src/guestfs-actions.pod:129
22222 msgid ""
22223 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
22224 "optional parameters, so the disk is added writable, with the format being "
22225 "detected automatically."
22226 msgstr ""
22227
22228 #. type: textblock
22229 #: ../src/guestfs-actions.pod:133
22230 msgid ""
22231 "Automatic detection of the format opens you up to a potential security hole "
22232 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
22233 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
22234 "you should think about replacing calls to this function with calls to "
22235 "C<guestfs_add_drive_opts>, and specifying the format."
22236 msgstr ""
22237
22238 #. type: =head2
22239 #: ../src/guestfs-actions.pod:144
22240 msgid "guestfs_add_drive_opts"
22241 msgstr ""
22242
22243 #. type: verbatim
22244 #: ../src/guestfs-actions.pod:146
22245 #, no-wrap
22246 msgid ""
22247 " int\n"
22248 " guestfs_add_drive_opts (guestfs_h *g,\n"
22249 "                         const char *filename,\n"
22250 "                         ...);\n"
22251 "\n"
22252 msgstr ""
22253
22254 #. type: verbatim
22255 #: ../src/guestfs-actions.pod:156
22256 #, no-wrap
22257 msgid ""
22258 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
22259 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
22260 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
22261 "\n"
22262 msgstr ""
22263
22264 #. type: textblock
22265 #: ../src/guestfs-actions.pod:185
22266 msgid ""
22267 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
22268 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
22269 "Possible formats include C<raw> and C<qcow2>."
22270 msgstr ""
22271
22272 #. type: textblock
22273 #: ../src/guestfs-actions.pod:196
22274 msgid ""
22275 "This rarely-used option lets you emulate the behaviour of the deprecated "
22276 "C<guestfs_add_drive_with_if> call (q.v.)"
22277 msgstr ""
22278
22279 #. type: textblock
22280 #: ../src/guestfs-actions.pod:203
22281 msgid "(Added in 1.5.23)"
22282 msgstr ""
22283
22284 #. type: =head2
22285 #: ../src/guestfs-actions.pod:205
22286 msgid "guestfs_add_drive_opts_va"
22287 msgstr ""
22288
22289 #. type: verbatim
22290 #: ../src/guestfs-actions.pod:207
22291 #, no-wrap
22292 msgid ""
22293 " int\n"
22294 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
22295 "                            const char *filename,\n"
22296 "                            va_list args);\n"
22297 "\n"
22298 msgstr ""
22299
22300 #. type: textblock
22301 #: ../src/guestfs-actions.pod:212
22302 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
22303 msgstr ""
22304
22305 #. type: =head2
22306 #: ../src/guestfs-actions.pod:216
22307 msgid "guestfs_add_drive_opts_argv"
22308 msgstr ""
22309
22310 #. type: verbatim
22311 #: ../src/guestfs-actions.pod:218
22312 #, no-wrap
22313 msgid ""
22314 " int\n"
22315 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
22316 "                              const char *filename,\n"
22317 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
22318 "\n"
22319 msgstr ""
22320
22321 #. type: textblock
22322 #: ../src/guestfs-actions.pod:223
22323 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
22324 msgstr ""
22325
22326 #. type: =head2
22327 #: ../src/guestfs-actions.pod:227
22328 msgid "guestfs_add_drive_ro"
22329 msgstr ""
22330
22331 #. type: verbatim
22332 #: ../src/guestfs-actions.pod:229
22333 #, no-wrap
22334 msgid ""
22335 " int\n"
22336 " guestfs_add_drive_ro (guestfs_h *g,\n"
22337 "                       const char *filename);\n"
22338 "\n"
22339 msgstr ""
22340
22341 #. type: textblock
22342 #: ../src/guestfs-actions.pod:233
22343 msgid ""
22344 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
22345 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
22346 "disk is added read-only, with the format being detected automatically."
22347 msgstr ""
22348
22349 #. type: textblock
22350 #: ../src/guestfs-actions.pod:240
22351 msgid "(Added in 1.0.38)"
22352 msgstr ""
22353
22354 #. type: =head2
22355 #: ../src/guestfs-actions.pod:242
22356 msgid "guestfs_add_drive_ro_with_if"
22357 msgstr ""
22358
22359 #. type: verbatim
22360 #: ../src/guestfs-actions.pod:244
22361 #, no-wrap
22362 msgid ""
22363 " int\n"
22364 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
22365 "                               const char *filename,\n"
22366 "                               const char *iface);\n"
22367 "\n"
22368 msgstr ""
22369
22370 #. type: textblock
22371 #: ../src/guestfs-actions.pod:256
22372 msgid ""
22373 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
22374 "QEMU interface emulation to use at run time."
22375 msgstr ""
22376
22377 #. type: textblock
22378 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
22379 #: ../src/guestfs-actions.pod:2436
22380 msgid "(Added in 1.0.84)"
22381 msgstr ""
22382
22383 #. type: =head2
22384 #: ../src/guestfs-actions.pod:263
22385 msgid "guestfs_add_drive_with_if"
22386 msgstr ""
22387
22388 #. type: verbatim
22389 #: ../src/guestfs-actions.pod:265
22390 #, no-wrap
22391 msgid ""
22392 " int\n"
22393 " guestfs_add_drive_with_if (guestfs_h *g,\n"
22394 "                            const char *filename,\n"
22395 "                            const char *iface);\n"
22396 "\n"
22397 msgstr ""
22398
22399 #. type: textblock
22400 #: ../src/guestfs-actions.pod:277
22401 msgid ""
22402 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
22403 "QEMU interface emulation to use at run time."
22404 msgstr ""
22405
22406 #. type: =head2
22407 #: ../src/guestfs-actions.pod:284
22408 msgid "guestfs_aug_clear"
22409 msgstr ""
22410
22411 #. type: verbatim
22412 #: ../src/guestfs-actions.pod:286
22413 #, no-wrap
22414 msgid ""
22415 " int\n"
22416 " guestfs_aug_clear (guestfs_h *g,\n"
22417 "                    const char *augpath);\n"
22418 "\n"
22419 msgstr ""
22420
22421 #. type: textblock
22422 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2186
22423 msgid "(Added in 1.3.4)"
22424 msgstr ""
22425
22426 #. type: =head2
22427 #: ../src/guestfs-actions.pod:297
22428 msgid "guestfs_aug_close"
22429 msgstr ""
22430
22431 #. type: verbatim
22432 #: ../src/guestfs-actions.pod:299
22433 #, no-wrap
22434 msgid ""
22435 " int\n"
22436 " guestfs_aug_close (guestfs_h *g);\n"
22437 "\n"
22438 msgstr ""
22439
22440 #. type: textblock
22441 #: ../src/guestfs-actions.pod:302
22442 msgid ""
22443 "Close the current Augeas handle and free up any resources used by it.  After "
22444 "calling this, you have to call C<guestfs_aug_init> again before you can use "
22445 "any other Augeas functions."
22446 msgstr ""
22447
22448 #. type: textblock
22449 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
22450 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
22451 #: ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449
22452 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494
22453 #: ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522
22454 #: ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554
22455 #: ../src/guestfs-actions.pod:5851
22456 msgid "(Added in 0.7)"
22457 msgstr ""
22458
22459 #. type: =head2
22460 #: ../src/guestfs-actions.pod:311
22461 msgid "guestfs_aug_defnode"
22462 msgstr ""
22463
22464 #. type: verbatim
22465 #: ../src/guestfs-actions.pod:313
22466 #, no-wrap
22467 msgid ""
22468 " struct guestfs_int_bool *\n"
22469 " guestfs_aug_defnode (guestfs_h *g,\n"
22470 "                      const char *name,\n"
22471 "                      const char *expr,\n"
22472 "                      const char *val);\n"
22473 "\n"
22474 msgstr ""
22475
22476 #. type: textblock
22477 #: ../src/guestfs-actions.pod:322
22478 msgid ""
22479 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
22480 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
22481 "containing that single node."
22482 msgstr ""
22483
22484 #. type: textblock
22485 #: ../src/guestfs-actions.pod:330
22486 msgid ""
22487 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
22488 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
22489 msgstr ""
22490
22491 #. type: =head2
22492 #: ../src/guestfs-actions.pod:336
22493 msgid "guestfs_aug_defvar"
22494 msgstr ""
22495
22496 #. type: verbatim
22497 #: ../src/guestfs-actions.pod:338
22498 #, no-wrap
22499 msgid ""
22500 " int\n"
22501 " guestfs_aug_defvar (guestfs_h *g,\n"
22502 "                     const char *name,\n"
22503 "                     const char *expr);\n"
22504 "\n"
22505 msgstr ""
22506
22507 #. type: =head2
22508 #: ../src/guestfs-actions.pod:354
22509 msgid "guestfs_aug_get"
22510 msgstr ""
22511
22512 #. type: verbatim
22513 #: ../src/guestfs-actions.pod:356
22514 #, no-wrap
22515 msgid ""
22516 " char *\n"
22517 " guestfs_aug_get (guestfs_h *g,\n"
22518 "                  const char *augpath);\n"
22519 "\n"
22520 msgstr ""
22521
22522 #. type: textblock
22523 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927
22524 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005
22525 #: ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124
22526 #: ../src/guestfs-actions.pod:1254 ../src/guestfs-actions.pod:1271
22527 #: ../src/guestfs-actions.pod:1290 ../src/guestfs-actions.pod:1424
22528 #: ../src/guestfs-actions.pod:1612 ../src/guestfs-actions.pod:1724
22529 #: ../src/guestfs-actions.pod:1887 ../src/guestfs-actions.pod:1904
22530 #: ../src/guestfs-actions.pod:1971 ../src/guestfs-actions.pod:2014
22531 #: ../src/guestfs-actions.pod:2035 ../src/guestfs-actions.pod:2209
22532 #: ../src/guestfs-actions.pod:2401 ../src/guestfs-actions.pod:2605
22533 #: ../src/guestfs-actions.pod:2695 ../src/guestfs-actions.pod:2799
22534 #: ../src/guestfs-actions.pod:2818 ../src/guestfs-actions.pod:3032
22535 #: ../src/guestfs-actions.pod:3060 ../src/guestfs-actions.pod:3081
22536 #: ../src/guestfs-actions.pod:3115 ../src/guestfs-actions.pod:3174
22537 #: ../src/guestfs-actions.pod:3194 ../src/guestfs-actions.pod:3214
22538 #: ../src/guestfs-actions.pod:3841 ../src/guestfs-actions.pod:4194
22539 #: ../src/guestfs-actions.pod:4364 ../src/guestfs-actions.pod:4474
22540 #: ../src/guestfs-actions.pod:5380 ../src/guestfs-actions.pod:5579
22541 #: ../src/guestfs-actions.pod:5749 ../src/guestfs-actions.pod:5927
22542 #: ../src/guestfs-actions.pod:5976 ../src/guestfs-actions.pod:6632
22543 #: ../src/guestfs-actions.pod:6648 ../src/guestfs-actions.pod:6672
22544 #: ../src/guestfs-actions.pod:6696 ../src/guestfs-actions.pod:7370
22545 #: ../src/guestfs-actions.pod:7389 ../src/guestfs-actions.pod:7407
22546 #: ../src/guestfs-actions.pod:7581 ../src/guestfs-actions.pod:7898
22547 msgid ""
22548 "This function returns a string, or NULL on error.  I<The caller must free "
22549 "the returned string after use>."
22550 msgstr ""
22551
22552 #. type: =head2
22553 #: ../src/guestfs-actions.pod:368
22554 msgid "guestfs_aug_init"
22555 msgstr ""
22556
22557 #. type: verbatim
22558 #: ../src/guestfs-actions.pod:370
22559 #, no-wrap
22560 msgid ""
22561 " int\n"
22562 " guestfs_aug_init (guestfs_h *g,\n"
22563 "                   const char *root,\n"
22564 "                   int flags);\n"
22565 "\n"
22566 msgstr ""
22567
22568 #. type: textblock
22569 #: ../src/guestfs-actions.pod:379
22570 msgid "You must call this before using any other C<guestfs_aug_*> commands."
22571 msgstr ""
22572
22573 #. type: textblock
22574 #: ../src/guestfs-actions.pod:404
22575 msgid ""
22576 "This option is only useful when debugging Augeas lenses.  Use of this option "
22577 "may require additional memory for the libguestfs appliance.  You may need to "
22578 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
22579 "C<guestfs_set_memsize>."
22580 msgstr ""
22581
22582 #. type: textblock
22583 #: ../src/guestfs-actions.pod:419
22584 msgid "Do not load the tree in C<guestfs_aug_init>."
22585 msgstr ""
22586
22587 #. type: textblock
22588 #: ../src/guestfs-actions.pod:423
22589 msgid "To close the handle, you can call C<guestfs_aug_close>."
22590 msgstr ""
22591
22592 #. type: =head2
22593 #: ../src/guestfs-actions.pod:431
22594 msgid "guestfs_aug_insert"
22595 msgstr ""
22596
22597 #. type: verbatim
22598 #: ../src/guestfs-actions.pod:433
22599 #, no-wrap
22600 msgid ""
22601 " int\n"
22602 " guestfs_aug_insert (guestfs_h *g,\n"
22603 "                     const char *augpath,\n"
22604 "                     const char *label,\n"
22605 "                     int before);\n"
22606 "\n"
22607 msgstr ""
22608
22609 #. type: =head2
22610 #: ../src/guestfs-actions.pod:451
22611 msgid "guestfs_aug_load"
22612 msgstr ""
22613
22614 #. type: verbatim
22615 #: ../src/guestfs-actions.pod:453
22616 #, no-wrap
22617 msgid ""
22618 " int\n"
22619 " guestfs_aug_load (guestfs_h *g);\n"
22620 "\n"
22621 msgstr ""
22622
22623 #. type: =head2
22624 #: ../src/guestfs-actions.pod:465
22625 msgid "guestfs_aug_ls"
22626 msgstr ""
22627
22628 #. type: verbatim
22629 #: ../src/guestfs-actions.pod:467
22630 #, no-wrap
22631 msgid ""
22632 " char **\n"
22633 " guestfs_aug_ls (guestfs_h *g,\n"
22634 "                 const char *augpath);\n"
22635 "\n"
22636 msgstr ""
22637
22638 #. type: textblock
22639 #: ../src/guestfs-actions.pod:471
22640 msgid ""
22641 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
22642 "sorting the resulting nodes into alphabetical order."
22643 msgstr ""
22644
22645 #. type: textblock
22646 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490
22647 #: ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143
22648 #: ../src/guestfs-actions.pod:1439 ../src/guestfs-actions.pod:1458
22649 #: ../src/guestfs-actions.pod:1561 ../src/guestfs-actions.pod:1580
22650 #: ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:2281
22651 #: ../src/guestfs-actions.pod:2297 ../src/guestfs-actions.pod:2316
22652 #: ../src/guestfs-actions.pod:2359 ../src/guestfs-actions.pod:2383
22653 #: ../src/guestfs-actions.pod:2454 ../src/guestfs-actions.pod:2503
22654 #: ../src/guestfs-actions.pod:2760 ../src/guestfs-actions.pod:3134
22655 #: ../src/guestfs-actions.pod:3410 ../src/guestfs-actions.pod:3724
22656 #: ../src/guestfs-actions.pod:3741 ../src/guestfs-actions.pod:3761
22657 #: ../src/guestfs-actions.pod:3823 ../src/guestfs-actions.pod:3928
22658 #: ../src/guestfs-actions.pod:4336 ../src/guestfs-actions.pod:5103
22659 #: ../src/guestfs-actions.pod:5721 ../src/guestfs-actions.pod:5847
22660 #: ../src/guestfs-actions.pod:5961 ../src/guestfs-actions.pod:6712
22661 #: ../src/guestfs-actions.pod:6773 ../src/guestfs-actions.pod:6828
22662 #: ../src/guestfs-actions.pod:6974 ../src/guestfs-actions.pod:6998
22663 #: ../src/guestfs-actions.pod:7474 ../src/guestfs-actions.pod:7494
22664 #: ../src/guestfs-actions.pod:7541 ../src/guestfs-actions.pod:7735
22665 #: ../src/guestfs-actions.pod:7754 ../src/guestfs-actions.pod:7848
22666 #: ../src/guestfs-actions.pod:7867 ../src/guestfs-actions.pod:7913
22667 #: ../src/guestfs-actions.pod:7932
22668 msgid ""
22669 "This function returns a NULL-terminated array of strings (like L<environ(3)"
22670 ">), or NULL if there was an error.  I<The caller must free the strings and "
22671 "the array after use>."
22672 msgstr ""
22673
22674 #. type: textblock
22675 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068
22676 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1496
22677 #: ../src/guestfs-actions.pod:3488 ../src/guestfs-actions.pod:3519
22678 #: ../src/guestfs-actions.pod:4177 ../src/guestfs-actions.pod:4227
22679 #: ../src/guestfs-actions.pod:4414 ../src/guestfs-actions.pod:4447
22680 #: ../src/guestfs-actions.pod:4610 ../src/guestfs-actions.pod:5107
22681 #: ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:6059
22682 #: ../src/guestfs-actions.pod:6073 ../src/guestfs-actions.pod:6085
22683 #: ../src/guestfs-actions.pod:6553 ../src/guestfs-actions.pod:7212
22684 #: ../src/guestfs-actions.pod:7225 ../src/guestfs-actions.pod:7458
22685 #: ../src/guestfs-actions.pod:7723
22686 msgid "(Added in 0.8)"
22687 msgstr ""
22688
22689 #. type: =head2
22690 #: ../src/guestfs-actions.pod:480
22691 msgid "guestfs_aug_match"
22692 msgstr ""
22693
22694 #. type: verbatim
22695 #: ../src/guestfs-actions.pod:482
22696 #, no-wrap
22697 msgid ""
22698 " char **\n"
22699 " guestfs_aug_match (guestfs_h *g,\n"
22700 "                    const char *augpath);\n"
22701 "\n"
22702 msgstr ""
22703
22704 #. type: =head2
22705 #: ../src/guestfs-actions.pod:496
22706 msgid "guestfs_aug_mv"
22707 msgstr ""
22708
22709 #. type: verbatim
22710 #: ../src/guestfs-actions.pod:498
22711 #, no-wrap
22712 msgid ""
22713 " int\n"
22714 " guestfs_aug_mv (guestfs_h *g,\n"
22715 "                 const char *src,\n"
22716 "                 const char *dest);\n"
22717 "\n"
22718 msgstr ""
22719
22720 #. type: =head2
22721 #: ../src/guestfs-actions.pod:510
22722 msgid "guestfs_aug_rm"
22723 msgstr ""
22724
22725 #. type: verbatim
22726 #: ../src/guestfs-actions.pod:512
22727 #, no-wrap
22728 msgid ""
22729 " int\n"
22730 " guestfs_aug_rm (guestfs_h *g,\n"
22731 "                 const char *augpath);\n"
22732 "\n"
22733 msgstr ""
22734
22735 #. type: =head2
22736 #: ../src/guestfs-actions.pod:524
22737 msgid "guestfs_aug_save"
22738 msgstr ""
22739
22740 #. type: verbatim
22741 #: ../src/guestfs-actions.pod:526
22742 #, no-wrap
22743 msgid ""
22744 " int\n"
22745 " guestfs_aug_save (guestfs_h *g);\n"
22746 "\n"
22747 msgstr ""
22748
22749 #. type: textblock
22750 #: ../src/guestfs-actions.pod:531
22751 msgid ""
22752 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
22753 "are saved."
22754 msgstr ""
22755
22756 #. type: =head2
22757 #: ../src/guestfs-actions.pod:538
22758 msgid "guestfs_aug_set"
22759 msgstr ""
22760
22761 #. type: verbatim
22762 #: ../src/guestfs-actions.pod:540
22763 #, no-wrap
22764 msgid ""
22765 " int\n"
22766 " guestfs_aug_set (guestfs_h *g,\n"
22767 "                  const char *augpath,\n"
22768 "                  const char *val);\n"
22769 "\n"
22770 msgstr ""
22771
22772 #. type: textblock
22773 #: ../src/guestfs-actions.pod:547
22774 msgid ""
22775 "In the Augeas API, it is possible to clear a node by setting the value to "
22776 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
22777 "this call.  Instead you must use the C<guestfs_aug_clear> call."
22778 msgstr ""
22779
22780 #. type: =head2
22781 #: ../src/guestfs-actions.pod:556
22782 msgid "guestfs_available"
22783 msgstr ""
22784
22785 #. type: verbatim
22786 #: ../src/guestfs-actions.pod:558
22787 #, no-wrap
22788 msgid ""
22789 " int\n"
22790 " guestfs_available (guestfs_h *g,\n"
22791 "                    char *const *groups);\n"
22792 "\n"
22793 msgstr ""
22794
22795 #. type: textblock
22796 #: ../src/guestfs-actions.pod:566
22797 msgid ""
22798 "The libguestfs groups, and the functions that those groups correspond to, "
22799 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
22800 "runtime by calling C<guestfs_available_all_groups>."
22801 msgstr ""
22802
22803 #. type: textblock
22804 #: ../src/guestfs-actions.pod:590
22805 msgid "You must call C<guestfs_launch> before calling this function."
22806 msgstr ""
22807
22808 #. type: textblock
22809 #: ../src/guestfs-actions.pod:612
22810 msgid ""
22811 "This call was added in version C<1.0.80>.  In previous versions of "
22812 "libguestfs all you could do would be to speculatively execute a command to "
22813 "find out if the daemon implemented it.  See also C<guestfs_version>."
22814 msgstr ""
22815
22816 #. type: textblock
22817 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1241
22818 msgid "(Added in 1.0.80)"
22819 msgstr ""
22820
22821 #. type: =head2
22822 #: ../src/guestfs-actions.pod:623
22823 msgid "guestfs_available_all_groups"
22824 msgstr ""
22825
22826 #. type: verbatim
22827 #: ../src/guestfs-actions.pod:625
22828 #, no-wrap
22829 msgid ""
22830 " char **\n"
22831 " guestfs_available_all_groups (guestfs_h *g);\n"
22832 "\n"
22833 msgstr ""
22834
22835 #. type: textblock
22836 #: ../src/guestfs-actions.pod:628
22837 msgid ""
22838 "This command returns a list of all optional groups that this daemon knows "
22839 "about.  Note this returns both supported and unsupported groups.  To find "
22840 "out which ones the daemon can actually support you have to call "
22841 "C<guestfs_available> on each member of the returned list."
22842 msgstr ""
22843
22844 #. type: textblock
22845 #: ../src/guestfs-actions.pod:634
22846 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
22847 msgstr ""
22848
22849 #. type: textblock
22850 #: ../src/guestfs-actions.pod:640
22851 msgid "(Added in 1.3.15)"
22852 msgstr ""
22853
22854 #. type: =head2
22855 #: ../src/guestfs-actions.pod:642
22856 msgid "guestfs_base64_in"
22857 msgstr ""
22858
22859 #. type: verbatim
22860 #: ../src/guestfs-actions.pod:644
22861 #, no-wrap
22862 msgid ""
22863 " int\n"
22864 " guestfs_base64_in (guestfs_h *g,\n"
22865 "                    const char *base64file,\n"
22866 "                    const char *filename);\n"
22867 "\n"
22868 msgstr ""
22869
22870 #. type: textblock
22871 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
22872 msgid "(Added in 1.3.5)"
22873 msgstr ""
22874
22875 #. type: =head2
22876 #: ../src/guestfs-actions.pod:656
22877 msgid "guestfs_base64_out"
22878 msgstr ""
22879
22880 #. type: verbatim
22881 #: ../src/guestfs-actions.pod:658
22882 #, no-wrap
22883 msgid ""
22884 " int\n"
22885 " guestfs_base64_out (guestfs_h *g,\n"
22886 "                     const char *filename,\n"
22887 "                     const char *base64file);\n"
22888 "\n"
22889 msgstr ""
22890
22891 #. type: =head2
22892 #: ../src/guestfs-actions.pod:670
22893 msgid "guestfs_blockdev_flushbufs"
22894 msgstr ""
22895
22896 #. type: verbatim
22897 #: ../src/guestfs-actions.pod:672
22898 #, no-wrap
22899 msgid ""
22900 " int\n"
22901 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
22902 "                             const char *device);\n"
22903 "\n"
22904 msgstr ""
22905
22906 #. type: textblock
22907 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700
22908 #: ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731
22909 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768
22910 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
22911 #: ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
22912 msgid "(Added in 0.9.3)"
22913 msgstr ""
22914
22915 #. type: =head2
22916 #: ../src/guestfs-actions.pod:685
22917 msgid "guestfs_blockdev_getbsz"
22918 msgstr ""
22919
22920 #. type: verbatim
22921 #: ../src/guestfs-actions.pod:687
22922 #, no-wrap
22923 msgid ""
22924 " int\n"
22925 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
22926 "                          const char *device);\n"
22927 "\n"
22928 msgstr ""
22929
22930 #. type: =head2
22931 #: ../src/guestfs-actions.pod:702
22932 msgid "guestfs_blockdev_getro"
22933 msgstr ""
22934
22935 #. type: verbatim
22936 #: ../src/guestfs-actions.pod:704
22937 #, no-wrap
22938 msgid ""
22939 " int\n"
22940 " guestfs_blockdev_getro (guestfs_h *g,\n"
22941 "                         const char *device);\n"
22942 "\n"
22943 msgstr ""
22944
22945 #. type: textblock
22946 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1479
22947 #: ../src/guestfs-actions.pod:1494 ../src/guestfs-actions.pod:1983
22948 #: ../src/guestfs-actions.pod:1994 ../src/guestfs-actions.pod:2066
22949 #: ../src/guestfs-actions.pod:2092 ../src/guestfs-actions.pod:2132
22950 #: ../src/guestfs-actions.pod:2147 ../src/guestfs-actions.pod:2172
22951 #: ../src/guestfs-actions.pod:2195 ../src/guestfs-actions.pod:3231
22952 #: ../src/guestfs-actions.pod:3247 ../src/guestfs-actions.pod:3265
22953 #: ../src/guestfs-actions.pod:3427 ../src/guestfs-actions.pod:3441
22954 #: ../src/guestfs-actions.pod:3456 ../src/guestfs-actions.pod:3470
22955 #: ../src/guestfs-actions.pod:3486 ../src/guestfs-actions.pod:3501
22956 #: ../src/guestfs-actions.pod:3517 ../src/guestfs-actions.pod:3531
22957 #: ../src/guestfs-actions.pod:3544 ../src/guestfs-actions.pod:3558
22958 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3588
22959 #: ../src/guestfs-actions.pod:3601 ../src/guestfs-actions.pod:3615
22960 #: ../src/guestfs-actions.pod:5344
22961 msgid "This function returns a C truth value on success or -1 on error."
22962 msgstr ""
22963
22964 #. type: =head2
22965 #: ../src/guestfs-actions.pod:717
22966 msgid "guestfs_blockdev_getsize64"
22967 msgstr ""
22968
22969 #. type: verbatim
22970 #: ../src/guestfs-actions.pod:719
22971 #, no-wrap
22972 msgid ""
22973 " int64_t\n"
22974 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
22975 "                             const char *device);\n"
22976 "\n"
22977 msgstr ""
22978
22979 #. type: textblock
22980 #: ../src/guestfs-actions.pod:725
22981 msgid "See also C<guestfs_blockdev_getsz>."
22982 msgstr ""
22983
22984 #. type: =head2
22985 #: ../src/guestfs-actions.pod:733
22986 msgid "guestfs_blockdev_getss"
22987 msgstr ""
22988
22989 #. type: verbatim
22990 #: ../src/guestfs-actions.pod:735
22991 #, no-wrap
22992 msgid ""
22993 " int\n"
22994 " guestfs_blockdev_getss (guestfs_h *g,\n"
22995 "                         const char *device);\n"
22996 "\n"
22997 msgstr ""
22998
22999 #. type: textblock
23000 #: ../src/guestfs-actions.pod:742
23001 msgid ""
23002 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
23003 "that)."
23004 msgstr ""
23005
23006 #. type: =head2
23007 #: ../src/guestfs-actions.pod:751
23008 msgid "guestfs_blockdev_getsz"
23009 msgstr ""
23010
23011 #. type: verbatim
23012 #: ../src/guestfs-actions.pod:753
23013 #, no-wrap
23014 msgid ""
23015 " int64_t\n"
23016 " guestfs_blockdev_getsz (guestfs_h *g,\n"
23017 "                         const char *device);\n"
23018 "\n"
23019 msgstr ""
23020
23021 #. type: textblock
23022 #: ../src/guestfs-actions.pod:760
23023 msgid ""
23024 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
23025 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
23026 msgstr ""
23027
23028 #. type: =head2
23029 #: ../src/guestfs-actions.pod:770
23030 msgid "guestfs_blockdev_rereadpt"
23031 msgstr ""
23032
23033 #. type: verbatim
23034 #: ../src/guestfs-actions.pod:772
23035 #, no-wrap
23036 msgid ""
23037 " int\n"
23038 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
23039 "                            const char *device);\n"
23040 "\n"
23041 msgstr ""
23042
23043 #. type: =head2
23044 #: ../src/guestfs-actions.pod:784
23045 msgid "guestfs_blockdev_setbsz"
23046 msgstr ""
23047
23048 #. type: verbatim
23049 #: ../src/guestfs-actions.pod:786
23050 #, no-wrap
23051 msgid ""
23052 " int\n"
23053 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
23054 "                          const char *device,\n"
23055 "                          int blocksize);\n"
23056 "\n"
23057 msgstr ""
23058
23059 #. type: =head2
23060 #: ../src/guestfs-actions.pod:802
23061 msgid "guestfs_blockdev_setro"
23062 msgstr ""
23063
23064 #. type: verbatim
23065 #: ../src/guestfs-actions.pod:804
23066 #, no-wrap
23067 msgid ""
23068 " int\n"
23069 " guestfs_blockdev_setro (guestfs_h *g,\n"
23070 "                         const char *device);\n"
23071 "\n"
23072 msgstr ""
23073
23074 #. type: =head2
23075 #: ../src/guestfs-actions.pod:816
23076 msgid "guestfs_blockdev_setrw"
23077 msgstr ""
23078
23079 #. type: verbatim
23080 #: ../src/guestfs-actions.pod:818
23081 #, no-wrap
23082 msgid ""
23083 " int\n"
23084 " guestfs_blockdev_setrw (guestfs_h *g,\n"
23085 "                         const char *device);\n"
23086 "\n"
23087 msgstr ""
23088
23089 #. type: =head2
23090 #: ../src/guestfs-actions.pod:830
23091 msgid "guestfs_btrfs_filesystem_resize"
23092 msgstr ""
23093
23094 #. type: verbatim
23095 #: ../src/guestfs-actions.pod:832
23096 #, no-wrap
23097 msgid ""
23098 " int\n"
23099 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
23100 "                                  const char *mountpoint,\n"
23101 "                                  ...);\n"
23102 "\n"
23103 msgstr ""
23104
23105 #. type: verbatim
23106 #: ../src/guestfs-actions.pod:842
23107 #, no-wrap
23108 msgid ""
23109 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
23110 "\n"
23111 msgstr ""
23112
23113 #. type: textblock
23114 #: ../src/guestfs-actions.pod:865
23115 msgid "(Added in 1.11.17)"
23116 msgstr ""
23117
23118 #. type: =head2
23119 #: ../src/guestfs-actions.pod:867
23120 msgid "guestfs_btrfs_filesystem_resize_va"
23121 msgstr ""
23122
23123 #. type: verbatim
23124 #: ../src/guestfs-actions.pod:869
23125 #, no-wrap
23126 msgid ""
23127 " int\n"
23128 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
23129 "                                     const char *mountpoint,\n"
23130 "                                     va_list args);\n"
23131 "\n"
23132 msgstr ""
23133
23134 #. type: textblock
23135 #: ../src/guestfs-actions.pod:874
23136 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
23137 msgstr ""
23138
23139 #. type: =head2
23140 #: ../src/guestfs-actions.pod:878
23141 msgid "guestfs_btrfs_filesystem_resize_argv"
23142 msgstr ""
23143
23144 #. type: verbatim
23145 #: ../src/guestfs-actions.pod:880
23146 #, no-wrap
23147 msgid ""
23148 " int\n"
23149 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
23150 "                                       const char *mountpoint,\n"
23151 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
23152 "\n"
23153 msgstr ""
23154
23155 #. type: textblock
23156 #: ../src/guestfs-actions.pod:885
23157 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
23158 msgstr ""
23159
23160 #. type: =head2
23161 #: ../src/guestfs-actions.pod:889
23162 msgid "guestfs_case_sensitive_path"
23163 msgstr ""
23164
23165 #. type: verbatim
23166 #: ../src/guestfs-actions.pod:891
23167 #, no-wrap
23168 msgid ""
23169 " char *\n"
23170 " guestfs_case_sensitive_path (guestfs_h *g,\n"
23171 "                              const char *path);\n"
23172 "\n"
23173 msgstr ""
23174
23175 #. type: textblock
23176 #: ../src/guestfs-actions.pod:917
23177 msgid ""
23178 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
23179 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
23180 "how the directories were originally created under Windows)."
23181 msgstr ""
23182
23183 #. type: textblock
23184 #: ../src/guestfs-actions.pod:925
23185 msgid "See also C<guestfs_realpath>."
23186 msgstr ""
23187
23188 #. type: textblock
23189 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7392
23190 msgid "(Added in 1.0.75)"
23191 msgstr ""
23192
23193 #. type: =head2
23194 #: ../src/guestfs-actions.pod:932
23195 msgid "guestfs_cat"
23196 msgstr ""
23197
23198 #. type: verbatim
23199 #: ../src/guestfs-actions.pod:934
23200 #, no-wrap
23201 msgid ""
23202 " char *\n"
23203 " guestfs_cat (guestfs_h *g,\n"
23204 "              const char *path);\n"
23205 "\n"
23206 msgstr ""
23207
23208 #. type: textblock
23209 #: ../src/guestfs-actions.pod:940
23210 msgid ""
23211 "Note that this function cannot correctly handle binary files (specifically, "
23212 "files containing C<\\0> character which is treated as end of string).  For "
23213 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
23214 "functions which have a more complex interface."
23215 msgstr ""
23216
23217 #. type: textblock
23218 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3745
23219 #: ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:3844
23220 #: ../src/guestfs-actions.pod:3932 ../src/guestfs-actions.pod:4340
23221 #: ../src/guestfs-actions.pod:4354 ../src/guestfs-actions.pod:5725
23222 #: ../src/guestfs-actions.pod:5739 ../src/guestfs-actions.pod:7545
23223 #: ../src/guestfs-actions.pod:7559
23224 msgid "(Added in 0.4)"
23225 msgstr ""
23226
23227 #. type: =head2
23228 #: ../src/guestfs-actions.pod:953
23229 msgid "guestfs_checksum"
23230 msgstr ""
23231
23232 #. type: verbatim
23233 #: ../src/guestfs-actions.pod:955
23234 #, no-wrap
23235 msgid ""
23236 " char *\n"
23237 " guestfs_checksum (guestfs_h *g,\n"
23238 "                   const char *csumtype,\n"
23239 "                   const char *path);\n"
23240 "\n"
23241 msgstr ""
23242
23243 #. type: textblock
23244 #: ../src/guestfs-actions.pod:1001
23245 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
23246 msgstr ""
23247
23248 #. type: textblock
23249 #: ../src/guestfs-actions.pod:1003
23250 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
23251 msgstr ""
23252
23253 #. type: textblock
23254 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1316
23255 #: ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:3443
23256 #: ../src/guestfs-actions.pod:3472 ../src/guestfs-actions.pod:3533
23257 #: ../src/guestfs-actions.pod:3560 ../src/guestfs-actions.pod:7248
23258 msgid "(Added in 1.0.2)"
23259 msgstr ""
23260
23261 #. type: =head2
23262 #: ../src/guestfs-actions.pod:1010
23263 msgid "guestfs_checksum_device"
23264 msgstr ""
23265
23266 #. type: verbatim
23267 #: ../src/guestfs-actions.pod:1012
23268 #, no-wrap
23269 msgid ""
23270 " char *\n"
23271 " guestfs_checksum_device (guestfs_h *g,\n"
23272 "                          const char *csumtype,\n"
23273 "                          const char *device);\n"
23274 "\n"
23275 msgstr ""
23276
23277 #. type: textblock
23278 #: ../src/guestfs-actions.pod:1017
23279 msgid ""
23280 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
23281 "device named C<device>.  For the types of checksums supported see the "
23282 "C<guestfs_checksum> command."
23283 msgstr ""
23284
23285 #. type: textblock
23286 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5174
23287 #: ../src/guestfs-actions.pod:5309 ../src/guestfs-actions.pod:5346
23288 #: ../src/guestfs-actions.pod:5364 ../src/guestfs-actions.pod:5546
23289 #: ../src/guestfs-actions.pod:7157 ../src/guestfs-actions.pod:7171
23290 #: ../src/guestfs-actions.pod:7571
23291 msgid "(Added in 1.3.2)"
23292 msgstr ""
23293
23294 #. type: =head2
23295 #: ../src/guestfs-actions.pod:1026
23296 msgid "guestfs_checksums_out"
23297 msgstr ""
23298
23299 #. type: verbatim
23300 #: ../src/guestfs-actions.pod:1028
23301 #, no-wrap
23302 msgid ""
23303 " int\n"
23304 " guestfs_checksums_out (guestfs_h *g,\n"
23305 "                        const char *csumtype,\n"
23306 "                        const char *directory,\n"
23307 "                        const char *sumsfile);\n"
23308 "\n"
23309 msgstr ""
23310
23311 #. type: textblock
23312 #: ../src/guestfs-actions.pod:1048
23313 msgid "(Added in 1.3.7)"
23314 msgstr ""
23315
23316 #. type: =head2
23317 #: ../src/guestfs-actions.pod:1050
23318 msgid "guestfs_chmod"
23319 msgstr ""
23320
23321 #. type: verbatim
23322 #: ../src/guestfs-actions.pod:1052
23323 #, no-wrap
23324 msgid ""
23325 " int\n"
23326 " guestfs_chmod (guestfs_h *g,\n"
23327 "                int mode,\n"
23328 "                const char *path);\n"
23329 "\n"
23330 msgstr ""
23331
23332 #. type: =head2
23333 #: ../src/guestfs-actions.pod:1070
23334 msgid "guestfs_chown"
23335 msgstr ""
23336
23337 #. type: verbatim
23338 #: ../src/guestfs-actions.pod:1072
23339 #, no-wrap
23340 msgid ""
23341 " int\n"
23342 " guestfs_chown (guestfs_h *g,\n"
23343 "                int owner,\n"
23344 "                int group,\n"
23345 "                const char *path);\n"
23346 "\n"
23347 msgstr ""
23348
23349 #. type: =head2
23350 #: ../src/guestfs-actions.pod:1088
23351 msgid "guestfs_command"
23352 msgstr ""
23353
23354 #. type: verbatim
23355 #: ../src/guestfs-actions.pod:1090
23356 #, no-wrap
23357 msgid ""
23358 " char *\n"
23359 " guestfs_command (guestfs_h *g,\n"
23360 "                  char *const *arguments);\n"
23361 "\n"
23362 msgstr ""
23363
23364 #. type: textblock
23365 #: ../src/guestfs-actions.pod:1099
23366 msgid ""
23367 "The single parameter is an argv-style list of arguments.  The first element "
23368 "is the name of the program to run.  Subsequent elements are parameters.  The "
23369 "list must be non-empty (ie. must contain a program name).  Note that the "
23370 "command runs directly, and is I<not> invoked via the shell (see "
23371 "C<guestfs_sh>)."
23372 msgstr ""
23373
23374 #. type: textblock
23375 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150
23376 #: ../src/guestfs-actions.pod:1615
23377 msgid "(Added in 0.9.1)"
23378 msgstr ""
23379
23380 #. type: =head2
23381 #: ../src/guestfs-actions.pod:1132
23382 msgid "guestfs_command_lines"
23383 msgstr ""
23384
23385 #. type: verbatim
23386 #: ../src/guestfs-actions.pod:1134
23387 #, no-wrap
23388 msgid ""
23389 " char **\n"
23390 " guestfs_command_lines (guestfs_h *g,\n"
23391 "                        char *const *arguments);\n"
23392 "\n"
23393 msgstr ""
23394
23395 #. type: textblock
23396 #: ../src/guestfs-actions.pod:1138
23397 msgid ""
23398 "This is the same as C<guestfs_command>, but splits the result into a list of "
23399 "lines."
23400 msgstr ""
23401
23402 #. type: textblock
23403 #: ../src/guestfs-actions.pod:1141
23404 msgid "See also: C<guestfs_sh_lines>"
23405 msgstr ""
23406
23407 #. type: =head2
23408 #: ../src/guestfs-actions.pod:1152
23409 msgid "guestfs_config"
23410 msgstr ""
23411
23412 #. type: verbatim
23413 #: ../src/guestfs-actions.pod:1154
23414 #, no-wrap
23415 msgid ""
23416 " int\n"
23417 " guestfs_config (guestfs_h *g,\n"
23418 "                 const char *qemuparam,\n"
23419 "                 const char *qemuvalue);\n"
23420 "\n"
23421 msgstr ""
23422
23423 #. type: =head2
23424 #: ../src/guestfs-actions.pod:1172
23425 msgid "guestfs_copy_size"
23426 msgstr ""
23427
23428 #. type: verbatim
23429 #: ../src/guestfs-actions.pod:1174
23430 #, no-wrap
23431 msgid ""
23432 " int\n"
23433 " guestfs_copy_size (guestfs_h *g,\n"
23434 "                    const char *src,\n"
23435 "                    const char *dest,\n"
23436 "                    int64_t size);\n"
23437 "\n"
23438 msgstr ""
23439
23440 #. type: textblock
23441 #: ../src/guestfs-actions.pod:1188 ../src/guestfs-actions.pod:1311
23442 #: ../src/guestfs-actions.pod:1342 ../src/guestfs-actions.pod:1387
23443 #: ../src/guestfs-actions.pod:1764 ../src/guestfs-actions.pod:1786
23444 #: ../src/guestfs-actions.pod:3643 ../src/guestfs-actions.pod:7243
23445 #: ../src/guestfs-actions.pod:7277 ../src/guestfs-actions.pod:7784
23446 #: ../src/guestfs-actions.pod:7807
23447 msgid ""
23448 "This long-running command can generate progress notification messages so "
23449 "that the caller can display a progress bar or indicator.  To receive these "
23450 "messages, the caller must register a progress event callback.  See L<guestfs"
23451 "(3)/GUESTFS_EVENT_PROGRESS>."
23452 msgstr ""
23453
23454 #. type: textblock
23455 #: ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:4367
23456 #: ../src/guestfs-actions.pod:5752 ../src/guestfs-actions.pod:7478
23457 #: ../src/guestfs-actions.pod:7498 ../src/guestfs-actions.pod:7584
23458 msgid "(Added in 1.0.87)"
23459 msgstr ""
23460
23461 #. type: =head2
23462 #: ../src/guestfs-actions.pod:1195
23463 msgid "guestfs_cp"
23464 msgstr ""
23465
23466 #. type: verbatim
23467 #: ../src/guestfs-actions.pod:1197
23468 #, no-wrap
23469 msgid ""
23470 " int\n"
23471 " guestfs_cp (guestfs_h *g,\n"
23472 "             const char *src,\n"
23473 "             const char *dest);\n"
23474 "\n"
23475 msgstr ""
23476
23477 #. type: textblock
23478 #: ../src/guestfs-actions.pod:1207 ../src/guestfs-actions.pod:1221
23479 #: ../src/guestfs-actions.pod:1293 ../src/guestfs-actions.pod:1367
23480 #: ../src/guestfs-actions.pod:1481 ../src/guestfs-actions.pod:5121
23481 #: ../src/guestfs-actions.pod:5596
23482 msgid "(Added in 1.0.18)"
23483 msgstr ""
23484
23485 #. type: =head2
23486 #: ../src/guestfs-actions.pod:1209
23487 msgid "guestfs_cp_a"
23488 msgstr ""
23489
23490 #. type: verbatim
23491 #: ../src/guestfs-actions.pod:1211
23492 #, no-wrap
23493 msgid ""
23494 " int\n"
23495 " guestfs_cp_a (guestfs_h *g,\n"
23496 "               const char *src,\n"
23497 "               const char *dest);\n"
23498 "\n"
23499 msgstr ""
23500
23501 #. type: =head2
23502 #: ../src/guestfs-actions.pod:1223
23503 msgid "guestfs_dd"
23504 msgstr ""
23505
23506 #. type: verbatim
23507 #: ../src/guestfs-actions.pod:1225
23508 #, no-wrap
23509 msgid ""
23510 " int\n"
23511 " guestfs_dd (guestfs_h *g,\n"
23512 "             const char *src,\n"
23513 "             const char *dest);\n"
23514 "\n"
23515 msgstr ""
23516
23517 #. type: textblock
23518 #: ../src/guestfs-actions.pod:1235
23519 msgid ""
23520 "If the destination is a device, it must be as large or larger than the "
23521 "source file or device, otherwise the copy will fail.  This command cannot do "
23522 "partial copies (see C<guestfs_copy_size>)."
23523 msgstr ""
23524
23525 #. type: =head2
23526 #: ../src/guestfs-actions.pod:1243
23527 msgid "guestfs_df"
23528 msgstr ""
23529
23530 #. type: verbatim
23531 #: ../src/guestfs-actions.pod:1245
23532 #, no-wrap
23533 msgid ""
23534 " char *\n"
23535 " guestfs_df (guestfs_h *g);\n"
23536 "\n"
23537 msgstr ""
23538
23539 #. type: textblock
23540 #: ../src/guestfs-actions.pod:1250 ../src/guestfs-actions.pod:1267
23541 msgid ""
23542 "This command is mostly useful for interactive sessions.  It is I<not> "
23543 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
23544 "from programs."
23545 msgstr ""
23546
23547 #. type: textblock
23548 #: ../src/guestfs-actions.pod:1257 ../src/guestfs-actions.pod:1274
23549 #: ../src/guestfs-actions.pod:1392 ../src/guestfs-actions.pod:2366
23550 #: ../src/guestfs-actions.pod:2390 ../src/guestfs-actions.pod:2458
23551 #: ../src/guestfs-actions.pod:4477 ../src/guestfs-actions.pod:5021
23552 #: ../src/guestfs-actions.pod:6981 ../src/guestfs-actions.pod:7005
23553 #: ../src/guestfs-actions.pod:7624 ../src/guestfs-actions.pod:7637
23554 #: ../src/guestfs-actions.pod:7650
23555 msgid "(Added in 1.0.54)"
23556 msgstr ""
23557
23558 #. type: =head2
23559 #: ../src/guestfs-actions.pod:1259
23560 msgid "guestfs_df_h"
23561 msgstr ""
23562
23563 #. type: verbatim
23564 #: ../src/guestfs-actions.pod:1261
23565 #, no-wrap
23566 msgid ""
23567 " char *\n"
23568 " guestfs_df_h (guestfs_h *g);\n"
23569 "\n"
23570 msgstr ""
23571
23572 #. type: =head2
23573 #: ../src/guestfs-actions.pod:1276
23574 msgid "guestfs_dmesg"
23575 msgstr ""
23576
23577 #. type: verbatim
23578 #: ../src/guestfs-actions.pod:1278
23579 #, no-wrap
23580 msgid ""
23581 " char *\n"
23582 " guestfs_dmesg (guestfs_h *g);\n"
23583 "\n"
23584 msgstr ""
23585
23586 #. type: textblock
23587 #: ../src/guestfs-actions.pod:1285
23588 msgid ""
23589 "Another way to get the same information is to enable verbose messages with "
23590 "C<guestfs_set_verbose> or by setting the environment variable "
23591 "C<LIBGUESTFS_DEBUG=1> before running the program."
23592 msgstr ""
23593
23594 #. type: =head2
23595 #: ../src/guestfs-actions.pod:1295
23596 msgid "guestfs_download"
23597 msgstr ""
23598
23599 #. type: verbatim
23600 #: ../src/guestfs-actions.pod:1297
23601 #, no-wrap
23602 msgid ""
23603 " int\n"
23604 " guestfs_download (guestfs_h *g,\n"
23605 "                   const char *remotefilename,\n"
23606 "                   const char *filename);\n"
23607 "\n"
23608 msgstr ""
23609
23610 #. type: textblock
23611 #: ../src/guestfs-actions.pod:1307
23612 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
23613 msgstr ""
23614
23615 #. type: =head2
23616 #: ../src/guestfs-actions.pod:1318
23617 msgid "guestfs_download_offset"
23618 msgstr ""
23619
23620 #. type: verbatim
23621 #: ../src/guestfs-actions.pod:1320
23622 #, no-wrap
23623 msgid ""
23624 " int\n"
23625 " guestfs_download_offset (guestfs_h *g,\n"
23626 "                          const char *remotefilename,\n"
23627 "                          const char *filename,\n"
23628 "                          int64_t offset,\n"
23629 "                          int64_t size);\n"
23630 "\n"
23631 msgstr ""
23632
23633 #. type: textblock
23634 #: ../src/guestfs-actions.pod:1333
23635 msgid ""
23636 "Note that there is no limit on the amount of data that can be downloaded "
23637 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
23638 "full amount unless an error occurs."
23639 msgstr ""
23640
23641 #. type: textblock
23642 #: ../src/guestfs-actions.pod:1338
23643 msgid "See also C<guestfs_download>, C<guestfs_pread>."
23644 msgstr ""
23645
23646 #. type: textblock
23647 #: ../src/guestfs-actions.pod:1347 ../src/guestfs-actions.pod:7282
23648 msgid "(Added in 1.5.17)"
23649 msgstr ""
23650
23651 #. type: =head2
23652 #: ../src/guestfs-actions.pod:1349
23653 msgid "guestfs_drop_caches"
23654 msgstr ""
23655
23656 #. type: verbatim
23657 #: ../src/guestfs-actions.pod:1351
23658 #, no-wrap
23659 msgid ""
23660 " int\n"
23661 " guestfs_drop_caches (guestfs_h *g,\n"
23662 "                      int whattodrop);\n"
23663 "\n"
23664 msgstr ""
23665
23666 #. type: =head2
23667 #: ../src/guestfs-actions.pod:1369
23668 msgid "guestfs_du"
23669 msgstr ""
23670
23671 #. type: verbatim
23672 #: ../src/guestfs-actions.pod:1371
23673 #, no-wrap
23674 msgid ""
23675 " int64_t\n"
23676 " guestfs_du (guestfs_h *g,\n"
23677 "             const char *path);\n"
23678 "\n"
23679 msgstr ""
23680
23681 #. type: =head2
23682 #: ../src/guestfs-actions.pod:1394
23683 msgid "guestfs_e2fsck_f"
23684 msgstr ""
23685
23686 #. type: verbatim
23687 #: ../src/guestfs-actions.pod:1396
23688 #, no-wrap
23689 msgid ""
23690 " int\n"
23691 " guestfs_e2fsck_f (guestfs_h *g,\n"
23692 "                   const char *device);\n"
23693 "\n"
23694 msgstr ""
23695
23696 #. type: textblock
23697 #: ../src/guestfs-actions.pod:1404
23698 msgid ""
23699 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
23700 "Normally you should use C<guestfs_fsck>."
23701 msgstr ""
23702
23703 #. type: textblock
23704 #: ../src/guestfs-actions.pod:1409
23705 msgid "(Added in 1.0.29)"
23706 msgstr ""
23707
23708 #. type: =head2
23709 #: ../src/guestfs-actions.pod:1411
23710 msgid "guestfs_echo_daemon"
23711 msgstr ""
23712
23713 #. type: verbatim
23714 #: ../src/guestfs-actions.pod:1413
23715 #, no-wrap
23716 msgid ""
23717 " char *\n"
23718 " guestfs_echo_daemon (guestfs_h *g,\n"
23719 "                      char *const *words);\n"
23720 "\n"
23721 msgstr ""
23722
23723 #. type: textblock
23724 #: ../src/guestfs-actions.pod:1422
23725 msgid "See also C<guestfs_ping_daemon>."
23726 msgstr ""
23727
23728 #. type: textblock
23729 #: ../src/guestfs-actions.pod:1427 ../src/guestfs-actions.pod:2174
23730 #: ../src/guestfs-actions.pod:6453
23731 msgid "(Added in 1.0.69)"
23732 msgstr ""
23733
23734 #. type: =head2
23735 #: ../src/guestfs-actions.pod:1429
23736 msgid "guestfs_egrep"
23737 msgstr ""
23738
23739 #. type: verbatim
23740 #: ../src/guestfs-actions.pod:1431
23741 #, no-wrap
23742 msgid ""
23743 " char **\n"
23744 " guestfs_egrep (guestfs_h *g,\n"
23745 "                const char *regex,\n"
23746 "                const char *path);\n"
23747 "\n"
23748 msgstr ""
23749
23750 #. type: textblock
23751 #: ../src/guestfs-actions.pod:1446 ../src/guestfs-actions.pod:1465
23752 #: ../src/guestfs-actions.pod:1522 ../src/guestfs-actions.pod:1568
23753 #: ../src/guestfs-actions.pod:1587 ../src/guestfs-actions.pod:2304
23754 #: ../src/guestfs-actions.pod:2323 ../src/guestfs-actions.pod:2479
23755 #: ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2507
23756 #: ../src/guestfs-actions.pod:2553 ../src/guestfs-actions.pod:2575
23757 #: ../src/guestfs-actions.pod:2588 ../src/guestfs-actions.pod:3857
23758 #: ../src/guestfs-actions.pod:3871 ../src/guestfs-actions.pod:3884
23759 #: ../src/guestfs-actions.pod:3898 ../src/guestfs-actions.pod:4899
23760 #: ../src/guestfs-actions.pod:5930 ../src/guestfs-actions.pod:5979
23761 #: ../src/guestfs-actions.pod:6849 ../src/guestfs-actions.pod:6861
23762 #: ../src/guestfs-actions.pod:6874 ../src/guestfs-actions.pod:6887
23763 #: ../src/guestfs-actions.pod:6909 ../src/guestfs-actions.pod:6922
23764 #: ../src/guestfs-actions.pod:6935 ../src/guestfs-actions.pod:6948
23765 #: ../src/guestfs-actions.pod:7742 ../src/guestfs-actions.pod:7761
23766 #: ../src/guestfs-actions.pod:7855 ../src/guestfs-actions.pod:7874
23767 #: ../src/guestfs-actions.pod:7920 ../src/guestfs-actions.pod:7939
23768 msgid "(Added in 1.0.66)"
23769 msgstr ""
23770
23771 #. type: =head2
23772 #: ../src/guestfs-actions.pod:1448
23773 msgid "guestfs_egrepi"
23774 msgstr ""
23775
23776 #. type: verbatim
23777 #: ../src/guestfs-actions.pod:1450
23778 #, no-wrap
23779 msgid ""
23780 " char **\n"
23781 " guestfs_egrepi (guestfs_h *g,\n"
23782 "                 const char *regex,\n"
23783 "                 const char *path);\n"
23784 "\n"
23785 msgstr ""
23786
23787 #. type: =head2
23788 #: ../src/guestfs-actions.pod:1467
23789 msgid "guestfs_equal"
23790 msgstr ""
23791
23792 #. type: verbatim
23793 #: ../src/guestfs-actions.pod:1469
23794 #, no-wrap
23795 msgid ""
23796 " int\n"
23797 " guestfs_equal (guestfs_h *g,\n"
23798 "                const char *file1,\n"
23799 "                const char *file2);\n"
23800 "\n"
23801 msgstr ""
23802
23803 #. type: =head2
23804 #: ../src/guestfs-actions.pod:1483
23805 msgid "guestfs_exists"
23806 msgstr ""
23807
23808 #. type: verbatim
23809 #: ../src/guestfs-actions.pod:1485
23810 #, no-wrap
23811 msgid ""
23812 " int\n"
23813 " guestfs_exists (guestfs_h *g,\n"
23814 "                 const char *path);\n"
23815 "\n"
23816 msgstr ""
23817
23818 #. type: textblock
23819 #: ../src/guestfs-actions.pod:1492
23820 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
23821 msgstr ""
23822
23823 #. type: =head2
23824 #: ../src/guestfs-actions.pod:1498
23825 msgid "guestfs_fallocate"
23826 msgstr ""
23827
23828 #. type: verbatim
23829 #: ../src/guestfs-actions.pod:1500
23830 #, no-wrap
23831 msgid ""
23832 " int\n"
23833 " guestfs_fallocate (guestfs_h *g,\n"
23834 "                    const char *path,\n"
23835 "                    int len);\n"
23836 "\n"
23837 msgstr ""
23838
23839 #. type: textblock
23840 #: ../src/guestfs-actions.pod:1505
23841 msgid ""
23842 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
23843 "call instead."
23844 msgstr ""
23845
23846 #. type: =head2
23847 #: ../src/guestfs-actions.pod:1524
23848 msgid "guestfs_fallocate64"
23849 msgstr ""
23850
23851 #. type: verbatim
23852 #: ../src/guestfs-actions.pod:1526
23853 #, no-wrap
23854 msgid ""
23855 " int\n"
23856 " guestfs_fallocate64 (guestfs_h *g,\n"
23857 "                      const char *path,\n"
23858 "                      int64_t len);\n"
23859 "\n"
23860 msgstr ""
23861
23862 #. type: textblock
23863 #: ../src/guestfs-actions.pod:1535
23864 msgid ""
23865 "Note that this call allocates disk blocks for the file.  To create a sparse "
23866 "file use C<guestfs_truncate_size> instead."
23867 msgstr ""
23868
23869 #. type: textblock
23870 #: ../src/guestfs-actions.pod:1538
23871 msgid ""
23872 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
23873 "oversight it only allowed 30 bit lengths to be specified, effectively "
23874 "limiting the maximum size of files created through that call to 1GB."
23875 msgstr ""
23876
23877 #. type: textblock
23878 #: ../src/guestfs-actions.pod:1549
23879 msgid "(Added in 1.3.17)"
23880 msgstr ""
23881
23882 #. type: =head2
23883 #: ../src/guestfs-actions.pod:1551
23884 msgid "guestfs_fgrep"
23885 msgstr ""
23886
23887 #. type: verbatim
23888 #: ../src/guestfs-actions.pod:1553
23889 #, no-wrap
23890 msgid ""
23891 " char **\n"
23892 " guestfs_fgrep (guestfs_h *g,\n"
23893 "                const char *pattern,\n"
23894 "                const char *path);\n"
23895 "\n"
23896 msgstr ""
23897
23898 #. type: =head2
23899 #: ../src/guestfs-actions.pod:1570
23900 msgid "guestfs_fgrepi"
23901 msgstr ""
23902
23903 #. type: verbatim
23904 #: ../src/guestfs-actions.pod:1572
23905 #, no-wrap
23906 msgid ""
23907 " char **\n"
23908 " guestfs_fgrepi (guestfs_h *g,\n"
23909 "                 const char *pattern,\n"
23910 "                 const char *path);\n"
23911 "\n"
23912 msgstr ""
23913
23914 #. type: =head2
23915 #: ../src/guestfs-actions.pod:1589
23916 msgid "guestfs_file"
23917 msgstr ""
23918
23919 #. type: verbatim
23920 #: ../src/guestfs-actions.pod:1591
23921 #, no-wrap
23922 msgid ""
23923 " char *\n"
23924 " guestfs_file (guestfs_h *g,\n"
23925 "               const char *path);\n"
23926 "\n"
23927 msgstr ""
23928
23929 #. type: textblock
23930 #: ../src/guestfs-actions.pod:1609
23931 msgid ""
23932 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
23933 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
23934 msgstr ""
23935
23936 #. type: =head2
23937 #: ../src/guestfs-actions.pod:1617
23938 msgid "guestfs_file_architecture"
23939 msgstr ""
23940
23941 #. type: verbatim
23942 #: ../src/guestfs-actions.pod:1619
23943 #, no-wrap
23944 msgid ""
23945 " char *\n"
23946 " guestfs_file_architecture (guestfs_h *g,\n"
23947 "                            const char *filename);\n"
23948 "\n"
23949 msgstr ""
23950
23951 #. type: textblock
23952 #: ../src/guestfs-actions.pod:1727 ../src/guestfs-actions.pod:1890
23953 #: ../src/guestfs-actions.pod:1907 ../src/guestfs-actions.pod:2608
23954 #: ../src/guestfs-actions.pod:2698 ../src/guestfs-actions.pod:2764
23955 #: ../src/guestfs-actions.pod:2951 ../src/guestfs-actions.pod:2969
23956 #: ../src/guestfs-actions.pod:3009 ../src/guestfs-actions.pod:3084
23957 #: ../src/guestfs-actions.pod:3177 ../src/guestfs-actions.pod:3414
23958 #: ../src/guestfs-actions.pod:3546
23959 msgid "(Added in 1.5.3)"
23960 msgstr ""
23961
23962 #. type: =head2
23963 #: ../src/guestfs-actions.pod:1729
23964 msgid "guestfs_filesize"
23965 msgstr ""
23966
23967 #. type: verbatim
23968 #: ../src/guestfs-actions.pod:1731
23969 #, no-wrap
23970 msgid ""
23971 " int64_t\n"
23972 " guestfs_filesize (guestfs_h *g,\n"
23973 "                   const char *file);\n"
23974 "\n"
23975 msgstr ""
23976
23977 #. type: textblock
23978 #: ../src/guestfs-actions.pod:1737
23979 msgid ""
23980 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
23981 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
23982 "devices, use C<guestfs_blockdev_getsize64>."
23983 msgstr ""
23984
23985 #. type: textblock
23986 #: ../src/guestfs-actions.pod:1743
23987 msgid "(Added in 1.0.82)"
23988 msgstr ""
23989
23990 #. type: =head2
23991 #: ../src/guestfs-actions.pod:1745
23992 msgid "guestfs_fill"
23993 msgstr ""
23994
23995 #. type: verbatim
23996 #: ../src/guestfs-actions.pod:1747
23997 #, no-wrap
23998 msgid ""
23999 " int\n"
24000 " guestfs_fill (guestfs_h *g,\n"
24001 "               int c,\n"
24002 "               int len,\n"
24003 "               const char *path);\n"
24004 "\n"
24005 msgstr ""
24006
24007 #. type: textblock
24008 #: ../src/guestfs-actions.pod:1757
24009 msgid ""
24010 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
24011 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
24012 "bytes use C<guestfs_fill_pattern>."
24013 msgstr ""
24014
24015 #. type: textblock
24016 #: ../src/guestfs-actions.pod:1769
24017 msgid "(Added in 1.0.79)"
24018 msgstr ""
24019
24020 #. type: =head2
24021 #: ../src/guestfs-actions.pod:1771
24022 msgid "guestfs_fill_pattern"
24023 msgstr ""
24024
24025 #. type: verbatim
24026 #: ../src/guestfs-actions.pod:1773
24027 #, no-wrap
24028 msgid ""
24029 " int\n"
24030 " guestfs_fill_pattern (guestfs_h *g,\n"
24031 "                       const char *pattern,\n"
24032 "                       int len,\n"
24033 "                       const char *path);\n"
24034 "\n"
24035 msgstr ""
24036
24037 #. type: textblock
24038 #: ../src/guestfs-actions.pod:1779
24039 msgid ""
24040 "This function is like C<guestfs_fill> except that it creates a new file of "
24041 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
24042 "pattern is truncated if necessary to ensure the length of the file is "
24043 "exactly C<len> bytes."
24044 msgstr ""
24045
24046 #. type: textblock
24047 #: ../src/guestfs-actions.pod:1791
24048 msgid "(Added in 1.3.12)"
24049 msgstr ""
24050
24051 #. type: =head2
24052 #: ../src/guestfs-actions.pod:1793
24053 msgid "guestfs_find"
24054 msgstr ""
24055
24056 #. type: verbatim
24057 #: ../src/guestfs-actions.pod:1795
24058 #, no-wrap
24059 msgid ""
24060 " char **\n"
24061 " guestfs_find (guestfs_h *g,\n"
24062 "               const char *directory);\n"
24063 "\n"
24064 msgstr ""
24065
24066 #. type: textblock
24067 #: ../src/guestfs-actions.pod:1811
24068 msgid ""
24069 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
24070 msgstr ""
24071
24072 #. type: textblock
24073 #: ../src/guestfs-actions.pod:1824
24074 msgid "See also C<guestfs_find0>."
24075 msgstr ""
24076
24077 #. type: textblock
24078 #: ../src/guestfs-actions.pod:1833 ../src/guestfs-actions.pod:4304
24079 #: ../src/guestfs-actions.pod:6014
24080 msgid "(Added in 1.0.27)"
24081 msgstr ""
24082
24083 #. type: =head2
24084 #: ../src/guestfs-actions.pod:1835
24085 msgid "guestfs_find0"
24086 msgstr ""
24087
24088 #. type: verbatim
24089 #: ../src/guestfs-actions.pod:1837
24090 #, no-wrap
24091 msgid ""
24092 " int\n"
24093 " guestfs_find0 (guestfs_h *g,\n"
24094 "                const char *directory,\n"
24095 "                const char *files);\n"
24096 "\n"
24097 msgstr ""
24098
24099 #. type: textblock
24100 #: ../src/guestfs-actions.pod:1846
24101 msgid ""
24102 "This command works the same way as C<guestfs_find> with the following "
24103 "exceptions:"
24104 msgstr ""
24105
24106 #. type: textblock
24107 #: ../src/guestfs-actions.pod:1873
24108 msgid "(Added in 1.0.74)"
24109 msgstr ""
24110
24111 #. type: =head2
24112 #: ../src/guestfs-actions.pod:1875
24113 msgid "guestfs_findfs_label"
24114 msgstr ""
24115
24116 #. type: verbatim
24117 #: ../src/guestfs-actions.pod:1877
24118 #, no-wrap
24119 msgid ""
24120 " char *\n"
24121 " guestfs_findfs_label (guestfs_h *g,\n"
24122 "                       const char *label);\n"
24123 "\n"
24124 msgstr ""
24125
24126 #. type: textblock
24127 #: ../src/guestfs-actions.pod:1885
24128 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
24129 msgstr ""
24130
24131 #. type: =head2
24132 #: ../src/guestfs-actions.pod:1892
24133 msgid "guestfs_findfs_uuid"
24134 msgstr ""
24135
24136 #. type: verbatim
24137 #: ../src/guestfs-actions.pod:1894
24138 #, no-wrap
24139 msgid ""
24140 " char *\n"
24141 " guestfs_findfs_uuid (guestfs_h *g,\n"
24142 "                      const char *uuid);\n"
24143 "\n"
24144 msgstr ""
24145
24146 #. type: textblock
24147 #: ../src/guestfs-actions.pod:1902
24148 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
24149 msgstr ""
24150
24151 #. type: =head2
24152 #: ../src/guestfs-actions.pod:1909
24153 msgid "guestfs_fsck"
24154 msgstr ""
24155
24156 #. type: verbatim
24157 #: ../src/guestfs-actions.pod:1911
24158 #, no-wrap
24159 msgid ""
24160 " int\n"
24161 " guestfs_fsck (guestfs_h *g,\n"
24162 "               const char *fstype,\n"
24163 "               const char *device);\n"
24164 "\n"
24165 msgstr ""
24166
24167 #. type: textblock
24168 #: ../src/guestfs-actions.pod:1946 ../src/guestfs-actions.pod:7789
24169 msgid "(Added in 1.0.16)"
24170 msgstr ""
24171
24172 #. type: =head2
24173 #: ../src/guestfs-actions.pod:1948
24174 msgid "guestfs_get_append"
24175 msgstr ""
24176
24177 #. type: verbatim
24178 #: ../src/guestfs-actions.pod:1950
24179 #, no-wrap
24180 msgid ""
24181 " const char *\n"
24182 " guestfs_get_append (guestfs_h *g);\n"
24183 "\n"
24184 msgstr ""
24185
24186 #. type: textblock
24187 #: ../src/guestfs-actions.pod:1958
24188 msgid ""
24189 "This function returns a string which may be NULL.  There is no way to return "
24190 "an error from this function.  The string is owned by the guest handle and "
24191 "must I<not> be freed."
24192 msgstr ""
24193
24194 #. type: textblock
24195 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:5692
24196 #: ../src/guestfs-actions.pod:6174 ../src/guestfs-actions.pod:6616
24197 #: ../src/guestfs-actions.pod:6635 ../src/guestfs-actions.pod:6651
24198 #: ../src/guestfs-actions.pod:6675 ../src/guestfs-actions.pod:7429
24199 #: ../src/guestfs-actions.pod:7444 ../src/guestfs-actions.pod:7836
24200 msgid "(Added in 1.0.26)"
24201 msgstr ""
24202
24203 #. type: =head2
24204 #: ../src/guestfs-actions.pod:1964
24205 msgid "guestfs_get_attach_method"
24206 msgstr ""
24207
24208 #. type: verbatim
24209 #: ../src/guestfs-actions.pod:1966
24210 #, no-wrap
24211 msgid ""
24212 " char *\n"
24213 " guestfs_get_attach_method (guestfs_h *g);\n"
24214 "\n"
24215 msgstr ""
24216
24217 #. type: textblock
24218 #: ../src/guestfs-actions.pod:1969
24219 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
24220 msgstr ""
24221
24222 #. type: textblock
24223 #: ../src/guestfs-actions.pod:1974 ../src/guestfs-actions.pod:6204
24224 msgid "(Added in 1.9.8)"
24225 msgstr ""
24226
24227 #. type: =head2
24228 #: ../src/guestfs-actions.pod:1976
24229 msgid "guestfs_get_autosync"
24230 msgstr ""
24231
24232 #. type: verbatim
24233 #: ../src/guestfs-actions.pod:1978
24234 #, no-wrap
24235 msgid ""
24236 " int\n"
24237 " guestfs_get_autosync (guestfs_h *g);\n"
24238 "\n"
24239 msgstr ""
24240
24241 #. type: =head2
24242 #: ../src/guestfs-actions.pod:1987
24243 msgid "guestfs_get_direct"
24244 msgstr ""
24245
24246 #. type: verbatim
24247 #: ../src/guestfs-actions.pod:1989
24248 #, no-wrap
24249 msgid ""
24250 " int\n"
24251 " guestfs_get_direct (guestfs_h *g);\n"
24252 "\n"
24253 msgstr ""
24254
24255 #. type: textblock
24256 #: ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:6245
24257 msgid "(Added in 1.0.72)"
24258 msgstr ""
24259
24260 #. type: =head2
24261 #: ../src/guestfs-actions.pod:1998
24262 msgid "guestfs_get_e2label"
24263 msgstr ""
24264
24265 #. type: verbatim
24266 #: ../src/guestfs-actions.pod:2000
24267 #, no-wrap
24268 msgid ""
24269 " char *\n"
24270 " guestfs_get_e2label (guestfs_h *g,\n"
24271 "                      const char *device);\n"
24272 "\n"
24273 msgstr ""
24274
24275 #. type: textblock
24276 #: ../src/guestfs-actions.pod:2004
24277 msgid ""
24278 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
24279 "call instead."
24280 msgstr ""
24281
24282 #. type: textblock
24283 #: ../src/guestfs-actions.pod:2017 ../src/guestfs-actions.pod:2038
24284 #: ../src/guestfs-actions.pod:6263 ../src/guestfs-actions.pod:6282
24285 msgid "(Added in 1.0.15)"
24286 msgstr ""
24287
24288 #. type: =head2
24289 #: ../src/guestfs-actions.pod:2019
24290 msgid "guestfs_get_e2uuid"
24291 msgstr ""
24292
24293 #. type: verbatim
24294 #: ../src/guestfs-actions.pod:2021
24295 #, no-wrap
24296 msgid ""
24297 " char *\n"
24298 " guestfs_get_e2uuid (guestfs_h *g,\n"
24299 "                     const char *device);\n"
24300 "\n"
24301 msgstr ""
24302
24303 #. type: textblock
24304 #: ../src/guestfs-actions.pod:2025
24305 msgid ""
24306 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
24307 "call instead."
24308 msgstr ""
24309
24310 #. type: =head2
24311 #: ../src/guestfs-actions.pod:2040
24312 msgid "guestfs_get_memsize"
24313 msgstr ""
24314
24315 #. type: verbatim
24316 #: ../src/guestfs-actions.pod:2042
24317 #, no-wrap
24318 msgid ""
24319 " int\n"
24320 " guestfs_get_memsize (guestfs_h *g);\n"
24321 "\n"
24322 msgstr ""
24323
24324 #. type: textblock
24325 #: ../src/guestfs-actions.pod:2048
24326 msgid ""
24327 "If C<guestfs_set_memsize> was not called on this handle, and if "
24328 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
24329 "value for memsize."
24330 msgstr ""
24331
24332 #. type: textblock
24333 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:4595
24334 #: ../src/guestfs-actions.pod:4804 ../src/guestfs-actions.pod:4823
24335 #: ../src/guestfs-actions.pod:4842 ../src/guestfs-actions.pod:4854
24336 #: ../src/guestfs-actions.pod:4871 ../src/guestfs-actions.pod:4884
24337 #: ../src/guestfs-actions.pod:5917 ../src/guestfs-actions.pod:6303
24338 #: ../src/guestfs-actions.pod:6583 ../src/guestfs-actions.pod:7198
24339 msgid "(Added in 1.0.55)"
24340 msgstr ""
24341
24342 #. type: =head2
24343 #: ../src/guestfs-actions.pod:2059
24344 msgid "guestfs_get_network"
24345 msgstr ""
24346
24347 #. type: verbatim
24348 #: ../src/guestfs-actions.pod:2061
24349 #, no-wrap
24350 msgid ""
24351 " int\n"
24352 " guestfs_get_network (guestfs_h *g);\n"
24353 "\n"
24354 msgstr ""
24355
24356 #. type: textblock
24357 #: ../src/guestfs-actions.pod:2068 ../src/guestfs-actions.pod:6322
24358 msgid "(Added in 1.5.4)"
24359 msgstr ""
24360
24361 #. type: =head2
24362 #: ../src/guestfs-actions.pod:2070
24363 msgid "guestfs_get_path"
24364 msgstr ""
24365
24366 #. type: verbatim
24367 #: ../src/guestfs-actions.pod:2072
24368 #, no-wrap
24369 msgid ""
24370 " const char *\n"
24371 " guestfs_get_path (guestfs_h *g);\n"
24372 "\n"
24373 msgstr ""
24374
24375 #. type: textblock
24376 #: ../src/guestfs-actions.pod:2080 ../src/guestfs-actions.pod:2120
24377 msgid ""
24378 "This function returns a string, or NULL on error.  The string is owned by "
24379 "the guest handle and must I<not> be freed."
24380 msgstr ""
24381
24382 #. type: =head2
24383 #: ../src/guestfs-actions.pod:2085
24384 msgid "guestfs_get_pgroup"
24385 msgstr ""
24386
24387 #. type: verbatim
24388 #: ../src/guestfs-actions.pod:2087
24389 #, no-wrap
24390 msgid ""
24391 " int\n"
24392 " guestfs_get_pgroup (guestfs_h *g);\n"
24393 "\n"
24394 msgstr ""
24395
24396 #. type: textblock
24397 #: ../src/guestfs-actions.pod:2094 ../src/guestfs-actions.pod:6358
24398 #: ../src/guestfs-actions.pod:7690
24399 msgid "(Added in 1.11.18)"
24400 msgstr ""
24401
24402 #. type: =head2
24403 #: ../src/guestfs-actions.pod:2096
24404 msgid "guestfs_get_pid"
24405 msgstr ""
24406
24407 #. type: verbatim
24408 #: ../src/guestfs-actions.pod:2098
24409 #, no-wrap
24410 msgid ""
24411 " int\n"
24412 " guestfs_get_pid (guestfs_h *g);\n"
24413 "\n"
24414 msgstr ""
24415
24416 #. type: textblock
24417 #: ../src/guestfs-actions.pod:2108
24418 msgid "(Added in 1.0.56)"
24419 msgstr ""
24420
24421 #. type: =head2
24422 #: ../src/guestfs-actions.pod:2110
24423 msgid "guestfs_get_qemu"
24424 msgstr ""
24425
24426 #. type: verbatim
24427 #: ../src/guestfs-actions.pod:2112
24428 #, no-wrap
24429 msgid ""
24430 " const char *\n"
24431 " guestfs_get_qemu (guestfs_h *g);\n"
24432 "\n"
24433 msgstr ""
24434
24435 #. type: textblock
24436 #: ../src/guestfs-actions.pod:2123 ../src/guestfs-actions.pod:6386
24437 msgid "(Added in 1.0.6)"
24438 msgstr ""
24439
24440 #. type: =head2
24441 #: ../src/guestfs-actions.pod:2125
24442 msgid "guestfs_get_recovery_proc"
24443 msgstr ""
24444
24445 #. type: verbatim
24446 #: ../src/guestfs-actions.pod:2127
24447 #, no-wrap
24448 msgid ""
24449 " int\n"
24450 " guestfs_get_recovery_proc (guestfs_h *g);\n"
24451 "\n"
24452 msgstr ""
24453
24454 #. type: textblock
24455 #: ../src/guestfs-actions.pod:2134 ../src/guestfs-actions.pod:3668
24456 #: ../src/guestfs-actions.pod:3999 ../src/guestfs-actions.pod:4402
24457 #: ../src/guestfs-actions.pod:4434 ../src/guestfs-actions.pod:5622
24458 #: ../src/guestfs-actions.pod:5965 ../src/guestfs-actions.pod:6410
24459 #: ../src/guestfs-actions.pod:7101 ../src/guestfs-actions.pod:7121
24460 #: ../src/guestfs-actions.pod:7313
24461 msgid "(Added in 1.0.77)"
24462 msgstr ""
24463
24464 #. type: =head2
24465 #: ../src/guestfs-actions.pod:2136
24466 msgid "guestfs_get_selinux"
24467 msgstr ""
24468
24469 #. type: verbatim
24470 #: ../src/guestfs-actions.pod:2138
24471 #, no-wrap
24472 msgid ""
24473 " int\n"
24474 " guestfs_get_selinux (guestfs_h *g);\n"
24475 "\n"
24476 msgstr ""
24477
24478 #. type: textblock
24479 #: ../src/guestfs-actions.pod:2141
24480 msgid ""
24481 "This returns the current setting of the selinux flag which is passed to the "
24482 "appliance at boot time.  See C<guestfs_set_selinux>."
24483 msgstr ""
24484
24485 #. type: textblock
24486 #: ../src/guestfs-actions.pod:2149 ../src/guestfs-actions.pod:2212
24487 #: ../src/guestfs-actions.pod:6429 ../src/guestfs-actions.pod:6487
24488 msgid "(Added in 1.0.67)"
24489 msgstr ""
24490
24491 #. type: =head2
24492 #: ../src/guestfs-actions.pod:2151
24493 msgid "guestfs_get_state"
24494 msgstr ""
24495
24496 #. type: verbatim
24497 #: ../src/guestfs-actions.pod:2153
24498 #, no-wrap
24499 msgid ""
24500 " int\n"
24501 " guestfs_get_state (guestfs_h *g);\n"
24502 "\n"
24503 msgstr ""
24504
24505 #. type: =head2
24506 #: ../src/guestfs-actions.pod:2165
24507 msgid "guestfs_get_trace"
24508 msgstr ""
24509
24510 #. type: verbatim
24511 #: ../src/guestfs-actions.pod:2167
24512 #, no-wrap
24513 msgid ""
24514 " int\n"
24515 " guestfs_get_trace (guestfs_h *g);\n"
24516 "\n"
24517 msgstr ""
24518
24519 #. type: =head2
24520 #: ../src/guestfs-actions.pod:2176
24521 msgid "guestfs_get_umask"
24522 msgstr ""
24523
24524 #. type: verbatim
24525 #: ../src/guestfs-actions.pod:2178
24526 #, no-wrap
24527 msgid ""
24528 " int\n"
24529 " guestfs_get_umask (guestfs_h *g);\n"
24530 "\n"
24531 msgstr ""
24532
24533 #. type: textblock
24534 #: ../src/guestfs-actions.pod:2181
24535 msgid ""
24536 "Return the current umask.  By default the umask is C<022> unless it has been "
24537 "set by calling C<guestfs_umask>."
24538 msgstr ""
24539
24540 #. type: =head2
24541 #: ../src/guestfs-actions.pod:2188
24542 msgid "guestfs_get_verbose"
24543 msgstr ""
24544
24545 #. type: verbatim
24546 #: ../src/guestfs-actions.pod:2190
24547 #, no-wrap
24548 msgid ""
24549 " int\n"
24550 " guestfs_get_verbose (guestfs_h *g);\n"
24551 "\n"
24552 msgstr ""
24553
24554 #. type: =head2
24555 #: ../src/guestfs-actions.pod:2199
24556 msgid "guestfs_getcon"
24557 msgstr ""
24558
24559 #. type: verbatim
24560 #: ../src/guestfs-actions.pod:2201
24561 #, no-wrap
24562 msgid ""
24563 " char *\n"
24564 " guestfs_getcon (guestfs_h *g);\n"
24565 "\n"
24566 msgstr ""
24567
24568 #. type: textblock
24569 #: ../src/guestfs-actions.pod:2206
24570 msgid ""
24571 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
24572 msgstr ""
24573
24574 #. type: =head2
24575 #: ../src/guestfs-actions.pod:2214
24576 msgid "guestfs_getxattr"
24577 msgstr ""
24578
24579 #. type: verbatim
24580 #: ../src/guestfs-actions.pod:2216
24581 #, no-wrap
24582 msgid ""
24583 " char *\n"
24584 " guestfs_getxattr (guestfs_h *g,\n"
24585 "                   const char *path,\n"
24586 "                   const char *name,\n"
24587 "                   size_t *size_r);\n"
24588 "\n"
24589 msgstr ""
24590
24591 #. type: textblock
24592 #: ../src/guestfs-actions.pod:2222
24593 msgid ""
24594 "Get a single extended attribute from file C<path> named C<name>.  This call "
24595 "follows symlinks.  If you want to lookup an extended attribute for the "
24596 "symlink itself, use C<guestfs_lgetxattr>."
24597 msgstr ""
24598
24599 #. type: textblock
24600 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:3682
24601 msgid ""
24602 "Normally it is better to get all extended attributes from a file in one go "
24603 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
24604 "implementations are buggy and do not provide a way to list out attributes.  "
24605 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
24606 "extended attributes you want in advance and call this function."
24607 msgstr ""
24608
24609 #. type: textblock
24610 #: ../src/guestfs-actions.pod:2236
24611 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
24612 msgstr ""
24613
24614 #. type: textblock
24615 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2429
24616 #: ../src/guestfs-actions.pod:2899 ../src/guestfs-actions.pod:3694
24617 #: ../src/guestfs-actions.pod:5615 ../src/guestfs-actions.pod:5641
24618 #: ../src/guestfs-actions.pod:5822
24619 msgid ""
24620 "This function returns a buffer, or NULL on error.  The size of the returned "
24621 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
24622 "after use>."
24623 msgstr ""
24624
24625 #. type: textblock
24626 #: ../src/guestfs-actions.pod:2242 ../src/guestfs-actions.pod:3698
24627 msgid "(Added in 1.7.24)"
24628 msgstr ""
24629
24630 #. type: =head2
24631 #: ../src/guestfs-actions.pod:2244
24632 msgid "guestfs_getxattrs"
24633 msgstr ""
24634
24635 #. type: verbatim
24636 #: ../src/guestfs-actions.pod:2246
24637 #, no-wrap
24638 msgid ""
24639 " struct guestfs_xattr_list *\n"
24640 " guestfs_getxattrs (guestfs_h *g,\n"
24641 "                    const char *path);\n"
24642 "\n"
24643 msgstr ""
24644
24645 #. type: textblock
24646 #: ../src/guestfs-actions.pod:2256
24647 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
24648 msgstr ""
24649
24650 #. type: textblock
24651 #: ../src/guestfs-actions.pod:2258 ../src/guestfs-actions.pod:3710
24652 #: ../src/guestfs-actions.pod:4398
24653 msgid ""
24654 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
24655 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
24656 msgstr ""
24657
24658 #. type: textblock
24659 #: ../src/guestfs-actions.pod:2262 ../src/guestfs-actions.pod:3714
24660 #: ../src/guestfs-actions.pod:3913 ../src/guestfs-actions.pod:3949
24661 #: ../src/guestfs-actions.pod:5995 ../src/guestfs-actions.pod:6506
24662 #: ../src/guestfs-actions.pod:7901
24663 msgid "(Added in 1.0.59)"
24664 msgstr ""
24665
24666 #. type: =head2
24667 #: ../src/guestfs-actions.pod:2264
24668 msgid "guestfs_glob_expand"
24669 msgstr ""
24670
24671 #. type: verbatim
24672 #: ../src/guestfs-actions.pod:2266
24673 #, no-wrap
24674 msgid ""
24675 " char **\n"
24676 " guestfs_glob_expand (guestfs_h *g,\n"
24677 "                      const char *pattern);\n"
24678 "\n"
24679 msgstr ""
24680
24681 #. type: textblock
24682 #: ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:6699
24683 #: ../src/guestfs-actions.pod:6716
24684 msgid "(Added in 1.0.50)"
24685 msgstr ""
24686
24687 #. type: =head2
24688 #: ../src/guestfs-actions.pod:2287
24689 msgid "guestfs_grep"
24690 msgstr ""
24691
24692 #. type: verbatim
24693 #: ../src/guestfs-actions.pod:2289
24694 #, no-wrap
24695 msgid ""
24696 " char **\n"
24697 " guestfs_grep (guestfs_h *g,\n"
24698 "               const char *regex,\n"
24699 "               const char *path);\n"
24700 "\n"
24701 msgstr ""
24702
24703 #. type: =head2
24704 #: ../src/guestfs-actions.pod:2306
24705 msgid "guestfs_grepi"
24706 msgstr ""
24707
24708 #. type: verbatim
24709 #: ../src/guestfs-actions.pod:2308
24710 #, no-wrap
24711 msgid ""
24712 " char **\n"
24713 " guestfs_grepi (guestfs_h *g,\n"
24714 "                const char *regex,\n"
24715 "                const char *path);\n"
24716 "\n"
24717 msgstr ""
24718
24719 #. type: =head2
24720 #: ../src/guestfs-actions.pod:2325
24721 msgid "guestfs_grub_install"
24722 msgstr ""
24723
24724 #. type: verbatim
24725 #: ../src/guestfs-actions.pod:2327
24726 #, no-wrap
24727 msgid ""
24728 " int\n"
24729 " guestfs_grub_install (guestfs_h *g,\n"
24730 "                       const char *root,\n"
24731 "                       const char *device);\n"
24732 "\n"
24733 msgstr ""
24734
24735 #. type: textblock
24736 #: ../src/guestfs-actions.pod:2348
24737 msgid "(Added in 1.0.17)"
24738 msgstr ""
24739
24740 #. type: =head2
24741 #: ../src/guestfs-actions.pod:2350
24742 msgid "guestfs_head"
24743 msgstr ""
24744
24745 #. type: verbatim
24746 #: ../src/guestfs-actions.pod:2352
24747 #, no-wrap
24748 msgid ""
24749 " char **\n"
24750 " guestfs_head (guestfs_h *g,\n"
24751 "               const char *path);\n"
24752 "\n"
24753 msgstr ""
24754
24755 #. type: =head2
24756 #: ../src/guestfs-actions.pod:2368
24757 msgid "guestfs_head_n"
24758 msgstr ""
24759
24760 #. type: verbatim
24761 #: ../src/guestfs-actions.pod:2370
24762 #, no-wrap
24763 msgid ""
24764 " char **\n"
24765 " guestfs_head_n (guestfs_h *g,\n"
24766 "                 int nrlines,\n"
24767 "                 const char *path);\n"
24768 "\n"
24769 msgstr ""
24770
24771 #. type: =head2
24772 #: ../src/guestfs-actions.pod:2392
24773 msgid "guestfs_hexdump"
24774 msgstr ""
24775
24776 #. type: verbatim
24777 #: ../src/guestfs-actions.pod:2394
24778 #, no-wrap
24779 msgid ""
24780 " char *\n"
24781 " guestfs_hexdump (guestfs_h *g,\n"
24782 "                  const char *path);\n"
24783 "\n"
24784 msgstr ""
24785
24786 #. type: textblock
24787 #: ../src/guestfs-actions.pod:2407 ../src/guestfs-actions.pod:6780
24788 #: ../src/guestfs-actions.pod:6835
24789 msgid "(Added in 1.0.22)"
24790 msgstr ""
24791
24792 #. type: =head2
24793 #: ../src/guestfs-actions.pod:2409
24794 msgid "guestfs_initrd_cat"
24795 msgstr ""
24796
24797 #. type: verbatim
24798 #: ../src/guestfs-actions.pod:2411
24799 #, no-wrap
24800 msgid ""
24801 " char *\n"
24802 " guestfs_initrd_cat (guestfs_h *g,\n"
24803 "                     const char *initrdpath,\n"
24804 "                     const char *filename,\n"
24805 "                     size_t *size_r);\n"
24806 "\n"
24807 msgstr ""
24808
24809 #. type: textblock
24810 #: ../src/guestfs-actions.pod:2427
24811 msgid "See also C<guestfs_initrd_list>."
24812 msgstr ""
24813
24814 #. type: =head2
24815 #: ../src/guestfs-actions.pod:2438
24816 msgid "guestfs_initrd_list"
24817 msgstr ""
24818
24819 #. type: verbatim
24820 #: ../src/guestfs-actions.pod:2440
24821 #, no-wrap
24822 msgid ""
24823 " char **\n"
24824 " guestfs_initrd_list (guestfs_h *g,\n"
24825 "                      const char *path);\n"
24826 "\n"
24827 msgstr ""
24828
24829 #. type: =head2
24830 #: ../src/guestfs-actions.pod:2460
24831 msgid "guestfs_inotify_add_watch"
24832 msgstr ""
24833
24834 #. type: verbatim
24835 #: ../src/guestfs-actions.pod:2462
24836 #, no-wrap
24837 msgid ""
24838 " int64_t\n"
24839 " guestfs_inotify_add_watch (guestfs_h *g,\n"
24840 "                            const char *path,\n"
24841 "                            int mask);\n"
24842 "\n"
24843 msgstr ""
24844
24845 #. type: =head2
24846 #: ../src/guestfs-actions.pod:2481
24847 msgid "guestfs_inotify_close"
24848 msgstr ""
24849
24850 #. type: verbatim
24851 #: ../src/guestfs-actions.pod:2483
24852 #, no-wrap
24853 msgid ""
24854 " int\n"
24855 " guestfs_inotify_close (guestfs_h *g);\n"
24856 "\n"
24857 msgstr ""
24858
24859 #. type: =head2
24860 #: ../src/guestfs-actions.pod:2494
24861 msgid "guestfs_inotify_files"
24862 msgstr ""
24863
24864 #. type: verbatim
24865 #: ../src/guestfs-actions.pod:2496
24866 #, no-wrap
24867 msgid ""
24868 " char **\n"
24869 " guestfs_inotify_files (guestfs_h *g);\n"
24870 "\n"
24871 msgstr ""
24872
24873 #. type: textblock
24874 #: ../src/guestfs-actions.pod:2499
24875 msgid ""
24876 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
24877 "returns a list of pathnames of objects that were touched.  The returned "
24878 "pathnames are sorted and deduplicated."
24879 msgstr ""
24880
24881 #. type: =head2
24882 #: ../src/guestfs-actions.pod:2509
24883 msgid "guestfs_inotify_init"
24884 msgstr ""
24885
24886 #. type: verbatim
24887 #: ../src/guestfs-actions.pod:2511
24888 #, no-wrap
24889 msgid ""
24890 " int\n"
24891 " guestfs_inotify_init (guestfs_h *g,\n"
24892 "                       int maxevents);\n"
24893 "\n"
24894 msgstr ""
24895
24896 #. type: textblock
24897 #: ../src/guestfs-actions.pod:2519
24898 msgid ""
24899 "C<maxevents> is the maximum number of events which will be queued up between "
24900 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
24901 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
24902 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
24903 "throws away events, but records the fact that it threw them away by setting "
24904 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
24905 "C<guestfs_inotify_read>)."
24906 msgstr ""
24907
24908 #. type: textblock
24909 #: ../src/guestfs-actions.pod:2529
24910 msgid ""
24911 "Before any events are generated, you have to add some watches to the "
24912 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
24913 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
24914 msgstr ""
24915
24916 #. type: textblock
24917 #: ../src/guestfs-actions.pod:2535
24918 msgid ""
24919 "Queued up events should be read periodically by calling "
24920 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
24921 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
24922 "often enough then you risk the internal queue overflowing."
24923 msgstr ""
24924
24925 #. type: textblock
24926 #: ../src/guestfs-actions.pod:2542
24927 msgid ""
24928 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
24929 "This also removes any watches automatically."
24930 msgstr ""
24931
24932 #. type: =head2
24933 #: ../src/guestfs-actions.pod:2555
24934 msgid "guestfs_inotify_read"
24935 msgstr ""
24936
24937 #. type: verbatim
24938 #: ../src/guestfs-actions.pod:2557
24939 #, no-wrap
24940 msgid ""
24941 " struct guestfs_inotify_event_list *\n"
24942 " guestfs_inotify_read (guestfs_h *g);\n"
24943 "\n"
24944 msgstr ""
24945
24946 #. type: textblock
24947 #: ../src/guestfs-actions.pod:2571
24948 msgid ""
24949 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
24950 "there was an error.  I<The caller must call "
24951 "C<guestfs_free_inotify_event_list> after use>."
24952 msgstr ""
24953
24954 #. type: =head2
24955 #: ../src/guestfs-actions.pod:2577
24956 msgid "guestfs_inotify_rm_watch"
24957 msgstr ""
24958
24959 #. type: verbatim
24960 #: ../src/guestfs-actions.pod:2579
24961 #, no-wrap
24962 msgid ""
24963 " int\n"
24964 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
24965 "                           int wd);\n"
24966 "\n"
24967 msgstr ""
24968
24969 #. type: textblock
24970 #: ../src/guestfs-actions.pod:2583
24971 msgid ""
24972 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
24973 msgstr ""
24974
24975 #. type: =head2
24976 #: ../src/guestfs-actions.pod:2590
24977 msgid "guestfs_inspect_get_arch"
24978 msgstr ""
24979
24980 #. type: verbatim
24981 #: ../src/guestfs-actions.pod:2592
24982 #, no-wrap
24983 msgid ""
24984 " char *\n"
24985 " guestfs_inspect_get_arch (guestfs_h *g,\n"
24986 "                           const char *root);\n"
24987 "\n"
24988 msgstr ""
24989
24990 #. type: textblock
24991 #: ../src/guestfs-actions.pod:2596
24992 msgid ""
24993 "This returns the architecture of the inspected operating system.  The "
24994 "possible return values are listed under C<guestfs_file_architecture>."
24995 msgstr ""
24996
24997 #. type: =head2
24998 #: ../src/guestfs-actions.pod:2610
24999 msgid "guestfs_inspect_get_distro"
25000 msgstr ""
25001
25002 #. type: verbatim
25003 #: ../src/guestfs-actions.pod:2612
25004 #, no-wrap
25005 msgid ""
25006 " char *\n"
25007 " guestfs_inspect_get_distro (guestfs_h *g,\n"
25008 "                             const char *root);\n"
25009 "\n"
25010 msgstr ""
25011
25012 #. type: =head2
25013 #: ../src/guestfs-actions.pod:2700
25014 msgid "guestfs_inspect_get_drive_mappings"
25015 msgstr ""
25016
25017 #. type: verbatim
25018 #: ../src/guestfs-actions.pod:2702
25019 #, no-wrap
25020 msgid ""
25021 " char **\n"
25022 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
25023 "                                     const char *root);\n"
25024 "\n"
25025 msgstr ""
25026
25027 #. type: textblock
25028 #: ../src/guestfs-actions.pod:2731
25029 msgid ""
25030 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25031 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
25032 msgstr ""
25033
25034 #. type: textblock
25035 #: ../src/guestfs-actions.pod:2735 ../src/guestfs-actions.pod:3003
25036 #: ../src/guestfs-actions.pod:3801 ../src/guestfs-actions.pod:5083
25037 #: ../src/guestfs-actions.pod:7137
25038 msgid ""
25039 "This function returns a NULL-terminated array of strings, or NULL if there "
25040 "was an error.  The array of strings will always have length C<2n+1>, where "
25041 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
25042 "caller must free the strings and the array after use>."
25043 msgstr ""
25044
25045 #. type: textblock
25046 #: ../src/guestfs-actions.pod:2741 ../src/guestfs-actions.pod:3197
25047 msgid "(Added in 1.9.17)"
25048 msgstr ""
25049
25050 #. type: =head2
25051 #: ../src/guestfs-actions.pod:2743
25052 msgid "guestfs_inspect_get_filesystems"
25053 msgstr ""
25054
25055 #. type: verbatim
25056 #: ../src/guestfs-actions.pod:2745
25057 #, no-wrap
25058 msgid ""
25059 " char **\n"
25060 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
25061 "                                  const char *root);\n"
25062 "\n"
25063 msgstr ""
25064
25065 #. type: textblock
25066 #: ../src/guestfs-actions.pod:2757
25067 msgid ""
25068 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25069 "C<guestfs_inspect_get_mountpoints>."
25070 msgstr ""
25071
25072 #. type: =head2
25073 #: ../src/guestfs-actions.pod:2766
25074 msgid "guestfs_inspect_get_format"
25075 msgstr ""
25076
25077 #. type: verbatim
25078 #: ../src/guestfs-actions.pod:2768
25079 #, no-wrap
25080 msgid ""
25081 " char *\n"
25082 " guestfs_inspect_get_format (guestfs_h *g,\n"
25083 "                             const char *root);\n"
25084 "\n"
25085 msgstr ""
25086
25087 #. type: textblock
25088 #: ../src/guestfs-actions.pod:2802 ../src/guestfs-actions.pod:3233
25089 #: ../src/guestfs-actions.pod:3249 ../src/guestfs-actions.pod:3267
25090 #: ../src/guestfs-actions.pod:6033
25091 msgid "(Added in 1.9.4)"
25092 msgstr ""
25093
25094 #. type: =head2
25095 #: ../src/guestfs-actions.pod:2804
25096 msgid "guestfs_inspect_get_hostname"
25097 msgstr ""
25098
25099 #. type: verbatim
25100 #: ../src/guestfs-actions.pod:2806
25101 #, no-wrap
25102 msgid ""
25103 " char *\n"
25104 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
25105 "                               const char *root);\n"
25106 "\n"
25107 msgstr ""
25108
25109 #. type: textblock
25110 #: ../src/guestfs-actions.pod:2821
25111 msgid "(Added in 1.7.9)"
25112 msgstr ""
25113
25114 #. type: =head2
25115 #: ../src/guestfs-actions.pod:2823
25116 msgid "guestfs_inspect_get_icon"
25117 msgstr ""
25118
25119 #. type: verbatim
25120 #: ../src/guestfs-actions.pod:2825
25121 #, no-wrap
25122 msgid ""
25123 " char *\n"
25124 " guestfs_inspect_get_icon (guestfs_h *g,\n"
25125 "                           const char *root,\n"
25126 "                           size_t *size_r,\n"
25127 "                           ...);\n"
25128 "\n"
25129 msgstr ""
25130
25131 #. type: verbatim
25132 #: ../src/guestfs-actions.pod:2836
25133 #, no-wrap
25134 msgid ""
25135 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
25136 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
25137 "\n"
25138 msgstr ""
25139
25140 #. type: textblock
25141 #: ../src/guestfs-actions.pod:2903 ../src/guestfs-actions.pod:3728
25142 #: ../src/guestfs-actions.pod:4982
25143 msgid "(Added in 1.11.12)"
25144 msgstr ""
25145
25146 #. type: =head2
25147 #: ../src/guestfs-actions.pod:2905
25148 msgid "guestfs_inspect_get_icon_va"
25149 msgstr ""
25150
25151 #. type: verbatim
25152 #: ../src/guestfs-actions.pod:2907
25153 #, no-wrap
25154 msgid ""
25155 " char *\n"
25156 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
25157 "                              const char *root,\n"
25158 "                              size_t *size_r,\n"
25159 "                              va_list args);\n"
25160 "\n"
25161 msgstr ""
25162
25163 #. type: textblock
25164 #: ../src/guestfs-actions.pod:2913
25165 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
25166 msgstr ""
25167
25168 #. type: =head2
25169 #: ../src/guestfs-actions.pod:2917
25170 msgid "guestfs_inspect_get_icon_argv"
25171 msgstr ""
25172
25173 #. type: verbatim
25174 #: ../src/guestfs-actions.pod:2919
25175 #, no-wrap
25176 msgid ""
25177 " char *\n"
25178 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
25179 "                                const char *root,\n"
25180 "                                size_t *size_r,\n"
25181 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
25182 "\n"
25183 msgstr ""
25184
25185 #. type: textblock
25186 #: ../src/guestfs-actions.pod:2925
25187 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
25188 msgstr ""
25189
25190 #. type: =head2
25191 #: ../src/guestfs-actions.pod:2929
25192 msgid "guestfs_inspect_get_major_version"
25193 msgstr ""
25194
25195 #. type: verbatim
25196 #: ../src/guestfs-actions.pod:2931
25197 #, no-wrap
25198 msgid ""
25199 " int\n"
25200 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
25201 "                                    const char *root);\n"
25202 "\n"
25203 msgstr ""
25204
25205 #. type: =head2
25206 #: ../src/guestfs-actions.pod:2953
25207 msgid "guestfs_inspect_get_minor_version"
25208 msgstr ""
25209
25210 #. type: verbatim
25211 #: ../src/guestfs-actions.pod:2955
25212 #, no-wrap
25213 msgid ""
25214 " int\n"
25215 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
25216 "                                    const char *root);\n"
25217 "\n"
25218 msgstr ""
25219
25220 #. type: textblock
25221 #: ../src/guestfs-actions.pod:2964
25222 msgid ""
25223 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25224 "C<guestfs_inspect_get_major_version>."
25225 msgstr ""
25226
25227 #. type: =head2
25228 #: ../src/guestfs-actions.pod:2971
25229 msgid "guestfs_inspect_get_mountpoints"
25230 msgstr ""
25231
25232 #. type: verbatim
25233 #: ../src/guestfs-actions.pod:2973
25234 #, no-wrap
25235 msgid ""
25236 " char **\n"
25237 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
25238 "                                  const char *root);\n"
25239 "\n"
25240 msgstr ""
25241
25242 #. type: textblock
25243 #: ../src/guestfs-actions.pod:2994
25244 msgid ""
25245 "For operating systems like Windows which still use drive letters, this call "
25246 "will only return an entry for the first drive \"mounted on\" C</>.  For "
25247 "information about the mapping of drive letters to partitions, see "
25248 "C<guestfs_inspect_get_drive_mappings>."
25249 msgstr ""
25250
25251 #. type: textblock
25252 #: ../src/guestfs-actions.pod:3000
25253 msgid ""
25254 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25255 "C<guestfs_inspect_get_filesystems>."
25256 msgstr ""
25257
25258 #. type: =head2
25259 #: ../src/guestfs-actions.pod:3011
25260 msgid "guestfs_inspect_get_package_format"
25261 msgstr ""
25262
25263 #. type: verbatim
25264 #: ../src/guestfs-actions.pod:3013
25265 #, no-wrap
25266 msgid ""
25267 " char *\n"
25268 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
25269 "                                     const char *root);\n"
25270 "\n"
25271 msgstr ""
25272
25273 #. type: textblock
25274 #: ../src/guestfs-actions.pod:3017
25275 msgid ""
25276 "This function and C<guestfs_inspect_get_package_management> return the "
25277 "package format and package management tool used by the inspected operating "
25278 "system.  For example for Fedora these functions would return C<rpm> (package "
25279 "format) and C<yum> (package management)."
25280 msgstr ""
25281
25282 #. type: textblock
25283 #: ../src/guestfs-actions.pod:3035 ../src/guestfs-actions.pod:3063
25284 msgid "(Added in 1.7.5)"
25285 msgstr ""
25286
25287 #. type: =head2
25288 #: ../src/guestfs-actions.pod:3037
25289 msgid "guestfs_inspect_get_package_management"
25290 msgstr ""
25291
25292 #. type: verbatim
25293 #: ../src/guestfs-actions.pod:3039
25294 #, no-wrap
25295 msgid ""
25296 " char *\n"
25297 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
25298 "                                         const char *root);\n"
25299 "\n"
25300 msgstr ""
25301
25302 #. type: textblock
25303 #: ../src/guestfs-actions.pod:3043
25304 msgid ""
25305 "C<guestfs_inspect_get_package_format> and this function return the package "
25306 "format and package management tool used by the inspected operating system.  "
25307 "For example for Fedora these functions would return C<rpm> (package format) "
25308 "and C<yum> (package management)."
25309 msgstr ""
25310
25311 #. type: =head2
25312 #: ../src/guestfs-actions.pod:3065
25313 msgid "guestfs_inspect_get_product_name"
25314 msgstr ""
25315
25316 #. type: verbatim
25317 #: ../src/guestfs-actions.pod:3067
25318 #, no-wrap
25319 msgid ""
25320 " char *\n"
25321 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
25322 "                                   const char *root);\n"
25323 "\n"
25324 msgstr ""
25325
25326 #. type: =head2
25327 #: ../src/guestfs-actions.pod:3086
25328 msgid "guestfs_inspect_get_product_variant"
25329 msgstr ""
25330
25331 #. type: verbatim
25332 #: ../src/guestfs-actions.pod:3088
25333 #, no-wrap
25334 msgid ""
25335 " char *\n"
25336 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
25337 "                                      const char *root);\n"
25338 "\n"
25339 msgstr ""
25340
25341 #. type: textblock
25342 #: ../src/guestfs-actions.pod:3111
25343 msgid ""
25344 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25345 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
25346 msgstr ""
25347
25348 #. type: textblock
25349 #: ../src/guestfs-actions.pod:3118
25350 msgid "(Added in 1.9.13)"
25351 msgstr ""
25352
25353 #. type: =head2
25354 #: ../src/guestfs-actions.pod:3120
25355 msgid "guestfs_inspect_get_roots"
25356 msgstr ""
25357
25358 #. type: verbatim
25359 #: ../src/guestfs-actions.pod:3122
25360 #, no-wrap
25361 msgid ""
25362 " char **\n"
25363 " guestfs_inspect_get_roots (guestfs_h *g);\n"
25364 "\n"
25365 msgstr ""
25366
25367 #. type: textblock
25368 #: ../src/guestfs-actions.pod:3125
25369 msgid ""
25370 "This function is a convenient way to get the list of root devices, as "
25371 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
25372 "the whole inspection process."
25373 msgstr ""
25374
25375 #. type: textblock
25376 #: ../src/guestfs-actions.pod:3129
25377 msgid ""
25378 "This returns an empty list if either no root devices were found or the "
25379 "caller has not called C<guestfs_inspect_os>."
25380 msgstr ""
25381
25382 #. type: textblock
25383 #: ../src/guestfs-actions.pod:3138
25384 msgid "(Added in 1.7.3)"
25385 msgstr ""
25386
25387 #. type: =head2
25388 #: ../src/guestfs-actions.pod:3140
25389 msgid "guestfs_inspect_get_type"
25390 msgstr ""
25391
25392 #. type: verbatim
25393 #: ../src/guestfs-actions.pod:3142
25394 #, no-wrap
25395 msgid ""
25396 " char *\n"
25397 " guestfs_inspect_get_type (guestfs_h *g,\n"
25398 "                           const char *root);\n"
25399 "\n"
25400 msgstr ""
25401
25402 #. type: =head2
25403 #: ../src/guestfs-actions.pod:3179
25404 msgid "guestfs_inspect_get_windows_current_control_set"
25405 msgstr ""
25406
25407 #. type: verbatim
25408 #: ../src/guestfs-actions.pod:3181
25409 #, no-wrap
25410 msgid ""
25411 " char *\n"
25412 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
25413 "                                                  const char *root);\n"
25414 "\n"
25415 msgstr ""
25416
25417 #. type: =head2
25418 #: ../src/guestfs-actions.pod:3199
25419 msgid "guestfs_inspect_get_windows_systemroot"
25420 msgstr ""
25421
25422 #. type: verbatim
25423 #: ../src/guestfs-actions.pod:3201
25424 #, no-wrap
25425 msgid ""
25426 " char *\n"
25427 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
25428 "                                         const char *root);\n"
25429 "\n"
25430 msgstr ""
25431
25432 #. type: textblock
25433 #: ../src/guestfs-actions.pod:3217
25434 msgid "(Added in 1.5.25)"
25435 msgstr ""
25436
25437 #. type: =head2
25438 #: ../src/guestfs-actions.pod:3219
25439 msgid "guestfs_inspect_is_live"
25440 msgstr ""
25441
25442 #. type: verbatim
25443 #: ../src/guestfs-actions.pod:3221
25444 #, no-wrap
25445 msgid ""
25446 " int\n"
25447 " guestfs_inspect_is_live (guestfs_h *g,\n"
25448 "                          const char *root);\n"
25449 "\n"
25450 msgstr ""
25451
25452 #. type: textblock
25453 #: ../src/guestfs-actions.pod:3225
25454 msgid ""
25455 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
25456 "disk), then this returns true if a live image was detected on the disk."
25457 msgstr ""
25458
25459 #. type: =head2
25460 #: ../src/guestfs-actions.pod:3235
25461 msgid "guestfs_inspect_is_multipart"
25462 msgstr ""
25463
25464 #. type: verbatim
25465 #: ../src/guestfs-actions.pod:3237
25466 #, no-wrap
25467 msgid ""
25468 " int\n"
25469 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
25470 "                               const char *root);\n"
25471 "\n"
25472 msgstr ""
25473
25474 #. type: textblock
25475 #: ../src/guestfs-actions.pod:3241
25476 msgid ""
25477 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
25478 "disk), then this returns true if the disk is part of a set."
25479 msgstr ""
25480
25481 #. type: =head2
25482 #: ../src/guestfs-actions.pod:3251
25483 msgid "guestfs_inspect_is_netinst"
25484 msgstr ""
25485
25486 #. type: verbatim
25487 #: ../src/guestfs-actions.pod:3253
25488 #, no-wrap
25489 msgid ""
25490 " int\n"
25491 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
25492 "                             const char *root);\n"
25493 "\n"
25494 msgstr ""
25495
25496 #. type: textblock
25497 #: ../src/guestfs-actions.pod:3257
25498 msgid ""
25499 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
25500 "disk), then this returns true if the disk is a network installer, ie. not a "
25501 "self-contained install CD but one which is likely to require network access "
25502 "to complete the install."
25503 msgstr ""
25504
25505 #. type: =head2
25506 #: ../src/guestfs-actions.pod:3269
25507 msgid "guestfs_inspect_list_applications"
25508 msgstr ""
25509
25510 #. type: verbatim
25511 #: ../src/guestfs-actions.pod:3271
25512 #, no-wrap
25513 msgid ""
25514 " struct guestfs_application_list *\n"
25515 " guestfs_inspect_list_applications (guestfs_h *g,\n"
25516 "                                    const char *root);\n"
25517 "\n"
25518 msgstr ""
25519
25520 #. type: textblock
25521 #: ../src/guestfs-actions.pod:3277
25522 msgid ""
25523 "I<Note:> This call works differently from other parts of the inspection "
25524 "API.  You have to call C<guestfs_inspect_os>, then "
25525 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
25526 "this.  Listing applications is a significantly more difficult operation "
25527 "which requires access to the full filesystem.  Also note that unlike the "
25528 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
25529 "the libguestfs handle, this call actually reads parts of the mounted "
25530 "filesystems during the call."
25531 msgstr ""
25532
25533 #. type: textblock
25534 #: ../src/guestfs-actions.pod:3367
25535 msgid ""
25536 "This function returns a C<struct guestfs_application_list *>, or NULL if "
25537 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
25538 "after use>."
25539 msgstr ""
25540
25541 #. type: textblock
25542 #: ../src/guestfs-actions.pod:3371
25543 msgid "(Added in 1.7.8)"
25544 msgstr ""
25545
25546 #. type: =head2
25547 #: ../src/guestfs-actions.pod:3373
25548 msgid "guestfs_inspect_os"
25549 msgstr ""
25550
25551 #. type: verbatim
25552 #: ../src/guestfs-actions.pod:3375
25553 #, no-wrap
25554 msgid ""
25555 " char **\n"
25556 " guestfs_inspect_os (guestfs_h *g);\n"
25557 "\n"
25558 msgstr ""
25559
25560 #. type: textblock
25561 #: ../src/guestfs-actions.pod:3391
25562 msgid ""
25563 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
25564 "functions in order to query further information about each operating system, "
25565 "such as the name and version."
25566 msgstr ""
25567
25568 #. type: textblock
25569 #: ../src/guestfs-actions.pod:3396
25570 msgid ""
25571 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
25572 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
25573 "the contents.  This should be called with no disks currently mounted.  The "
25574 "function may also use Augeas, so any existing Augeas handle will be closed."
25575 msgstr ""
25576
25577 #. type: textblock
25578 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3739
25579 #: ../src/guestfs-actions.pod:3821
25580 msgid "See also C<guestfs_list_filesystems>."
25581 msgstr ""
25582
25583 #. type: =head2
25584 #: ../src/guestfs-actions.pod:3416
25585 msgid "guestfs_is_blockdev"
25586 msgstr ""
25587
25588 #. type: verbatim
25589 #: ../src/guestfs-actions.pod:3418
25590 #, no-wrap
25591 msgid ""
25592 " int\n"
25593 " guestfs_is_blockdev (guestfs_h *g,\n"
25594 "                      const char *path);\n"
25595 "\n"
25596 msgstr ""
25597
25598 #. type: textblock
25599 #: ../src/guestfs-actions.pod:3425 ../src/guestfs-actions.pod:3454
25600 #: ../src/guestfs-actions.pod:3484 ../src/guestfs-actions.pod:3499
25601 #: ../src/guestfs-actions.pod:3515 ../src/guestfs-actions.pod:3571
25602 #: ../src/guestfs-actions.pod:3586
25603 msgid "See also C<guestfs_stat>."
25604 msgstr ""
25605
25606 #. type: textblock
25607 #: ../src/guestfs-actions.pod:3429 ../src/guestfs-actions.pod:3458
25608 #: ../src/guestfs-actions.pod:3503 ../src/guestfs-actions.pod:3575
25609 #: ../src/guestfs-actions.pod:3590
25610 msgid "(Added in 1.5.10)"
25611 msgstr ""
25612
25613 #. type: =head2
25614 #: ../src/guestfs-actions.pod:3431
25615 msgid "guestfs_is_busy"
25616 msgstr ""
25617
25618 #. type: verbatim
25619 #: ../src/guestfs-actions.pod:3433
25620 #, no-wrap
25621 msgid ""
25622 " int\n"
25623 " guestfs_is_busy (guestfs_h *g);\n"
25624 "\n"
25625 msgstr ""
25626
25627 #. type: =head2
25628 #: ../src/guestfs-actions.pod:3445
25629 msgid "guestfs_is_chardev"
25630 msgstr ""
25631
25632 #. type: verbatim
25633 #: ../src/guestfs-actions.pod:3447
25634 #, no-wrap
25635 msgid ""
25636 " int\n"
25637 " guestfs_is_chardev (guestfs_h *g,\n"
25638 "                     const char *path);\n"
25639 "\n"
25640 msgstr ""
25641
25642 #. type: =head2
25643 #: ../src/guestfs-actions.pod:3460
25644 msgid "guestfs_is_config"
25645 msgstr ""
25646
25647 #. type: verbatim
25648 #: ../src/guestfs-actions.pod:3462
25649 #, no-wrap
25650 msgid ""
25651 " int\n"
25652 " guestfs_is_config (guestfs_h *g);\n"
25653 "\n"
25654 msgstr ""
25655
25656 #. type: =head2
25657 #: ../src/guestfs-actions.pod:3474
25658 msgid "guestfs_is_dir"
25659 msgstr ""
25660
25661 #. type: verbatim
25662 #: ../src/guestfs-actions.pod:3476
25663 #, no-wrap
25664 msgid ""
25665 " int\n"
25666 " guestfs_is_dir (guestfs_h *g,\n"
25667 "                 const char *path);\n"
25668 "\n"
25669 msgstr ""
25670
25671 #. type: =head2
25672 #: ../src/guestfs-actions.pod:3490
25673 msgid "guestfs_is_fifo"
25674 msgstr ""
25675
25676 #. type: verbatim
25677 #: ../src/guestfs-actions.pod:3492
25678 #, no-wrap
25679 msgid ""
25680 " int\n"
25681 " guestfs_is_fifo (guestfs_h *g,\n"
25682 "                  const char *path);\n"
25683 "\n"
25684 msgstr ""
25685
25686 #. type: =head2
25687 #: ../src/guestfs-actions.pod:3505
25688 msgid "guestfs_is_file"
25689 msgstr ""
25690
25691 #. type: verbatim
25692 #: ../src/guestfs-actions.pod:3507
25693 #, no-wrap
25694 msgid ""
25695 " int\n"
25696 " guestfs_is_file (guestfs_h *g,\n"
25697 "                  const char *path);\n"
25698 "\n"
25699 msgstr ""
25700
25701 #. type: =head2
25702 #: ../src/guestfs-actions.pod:3521
25703 msgid "guestfs_is_launching"
25704 msgstr ""
25705
25706 #. type: verbatim
25707 #: ../src/guestfs-actions.pod:3523
25708 #, no-wrap
25709 msgid ""
25710 " int\n"
25711 " guestfs_is_launching (guestfs_h *g);\n"
25712 "\n"
25713 msgstr ""
25714
25715 #. type: =head2
25716 #: ../src/guestfs-actions.pod:3535
25717 msgid "guestfs_is_lv"
25718 msgstr ""
25719
25720 #. type: verbatim
25721 #: ../src/guestfs-actions.pod:3537
25722 #, no-wrap
25723 msgid ""
25724 " int\n"
25725 " guestfs_is_lv (guestfs_h *g,\n"
25726 "                const char *device);\n"
25727 "\n"
25728 msgstr ""
25729
25730 #. type: =head2
25731 #: ../src/guestfs-actions.pod:3548
25732 msgid "guestfs_is_ready"
25733 msgstr ""
25734
25735 #. type: verbatim
25736 #: ../src/guestfs-actions.pod:3550
25737 #, no-wrap
25738 msgid ""
25739 " int\n"
25740 " guestfs_is_ready (guestfs_h *g);\n"
25741 "\n"
25742 msgstr ""
25743
25744 #. type: =head2
25745 #: ../src/guestfs-actions.pod:3562
25746 msgid "guestfs_is_socket"
25747 msgstr ""
25748
25749 #. type: verbatim
25750 #: ../src/guestfs-actions.pod:3564
25751 #, no-wrap
25752 msgid ""
25753 " int\n"
25754 " guestfs_is_socket (guestfs_h *g,\n"
25755 "                    const char *path);\n"
25756 "\n"
25757 msgstr ""
25758
25759 #. type: =head2
25760 #: ../src/guestfs-actions.pod:3577
25761 msgid "guestfs_is_symlink"
25762 msgstr ""
25763
25764 #. type: verbatim
25765 #: ../src/guestfs-actions.pod:3579
25766 #, no-wrap
25767 msgid ""
25768 " int\n"
25769 " guestfs_is_symlink (guestfs_h *g,\n"
25770 "                     const char *path);\n"
25771 "\n"
25772 msgstr ""
25773
25774 #. type: =head2
25775 #: ../src/guestfs-actions.pod:3592
25776 msgid "guestfs_is_zero"
25777 msgstr ""
25778
25779 #. type: verbatim
25780 #: ../src/guestfs-actions.pod:3594
25781 #, no-wrap
25782 msgid ""
25783 " int\n"
25784 " guestfs_is_zero (guestfs_h *g,\n"
25785 "                  const char *path);\n"
25786 "\n"
25787 msgstr ""
25788
25789 #. type: textblock
25790 #: ../src/guestfs-actions.pod:3603 ../src/guestfs-actions.pod:3617
25791 msgid "(Added in 1.11.8)"
25792 msgstr ""
25793
25794 #. type: =head2
25795 #: ../src/guestfs-actions.pod:3605
25796 msgid "guestfs_is_zero_device"
25797 msgstr ""
25798
25799 #. type: verbatim
25800 #: ../src/guestfs-actions.pod:3607
25801 #, no-wrap
25802 msgid ""
25803 " int\n"
25804 " guestfs_is_zero_device (guestfs_h *g,\n"
25805 "                         const char *device);\n"
25806 "\n"
25807 msgstr ""
25808
25809 #. type: =head2
25810 #: ../src/guestfs-actions.pod:3619
25811 msgid "guestfs_kill_subprocess"
25812 msgstr ""
25813
25814 #. type: verbatim
25815 #: ../src/guestfs-actions.pod:3621
25816 #, no-wrap
25817 msgid ""
25818 " int\n"
25819 " guestfs_kill_subprocess (guestfs_h *g);\n"
25820 "\n"
25821 msgstr ""
25822
25823 #. type: =head2
25824 #: ../src/guestfs-actions.pod:3630
25825 msgid "guestfs_launch"
25826 msgstr ""
25827
25828 #. type: verbatim
25829 #: ../src/guestfs-actions.pod:3632
25830 #, no-wrap
25831 msgid ""
25832 " int\n"
25833 " guestfs_launch (guestfs_h *g);\n"
25834 "\n"
25835 msgstr ""
25836
25837 #. type: =head2
25838 #: ../src/guestfs-actions.pod:3650
25839 msgid "guestfs_lchown"
25840 msgstr ""
25841
25842 #. type: verbatim
25843 #: ../src/guestfs-actions.pod:3652
25844 #, no-wrap
25845 msgid ""
25846 " int\n"
25847 " guestfs_lchown (guestfs_h *g,\n"
25848 "                 int owner,\n"
25849 "                 int group,\n"
25850 "                 const char *path);\n"
25851 "\n"
25852 msgstr ""
25853
25854 #. type: textblock
25855 #: ../src/guestfs-actions.pod:3658
25856 msgid ""
25857 "Change the file owner to C<owner> and group to C<group>.  This is like "
25858 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
25859 "changed, not the target."
25860 msgstr ""
25861
25862 #. type: =head2
25863 #: ../src/guestfs-actions.pod:3670
25864 msgid "guestfs_lgetxattr"
25865 msgstr ""
25866
25867 #. type: verbatim
25868 #: ../src/guestfs-actions.pod:3672
25869 #, no-wrap
25870 msgid ""
25871 " char *\n"
25872 " guestfs_lgetxattr (guestfs_h *g,\n"
25873 "                    const char *path,\n"
25874 "                    const char *name,\n"
25875 "                    size_t *size_r);\n"
25876 "\n"
25877 msgstr ""
25878
25879 #. type: textblock
25880 #: ../src/guestfs-actions.pod:3692
25881 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
25882 msgstr ""
25883
25884 #. type: =head2
25885 #: ../src/guestfs-actions.pod:3700
25886 msgid "guestfs_lgetxattrs"
25887 msgstr ""
25888
25889 #. type: verbatim
25890 #: ../src/guestfs-actions.pod:3702
25891 #, no-wrap
25892 msgid ""
25893 " struct guestfs_xattr_list *\n"
25894 " guestfs_lgetxattrs (guestfs_h *g,\n"
25895 "                     const char *path);\n"
25896 "\n"
25897 msgstr ""
25898
25899 #. type: textblock
25900 #: ../src/guestfs-actions.pod:3706
25901 msgid ""
25902 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
25903 "then it returns the extended attributes of the link itself."
25904 msgstr ""
25905
25906 #. type: =head2
25907 #: ../src/guestfs-actions.pod:3716
25908 msgid "guestfs_list_9p"
25909 msgstr ""
25910
25911 #. type: verbatim
25912 #: ../src/guestfs-actions.pod:3718
25913 #, no-wrap
25914 msgid ""
25915 " char **\n"
25916 " guestfs_list_9p (guestfs_h *g);\n"
25917 "\n"
25918 msgstr ""
25919
25920 #. type: =head2
25921 #: ../src/guestfs-actions.pod:3730
25922 msgid "guestfs_list_devices"
25923 msgstr ""
25924
25925 #. type: verbatim
25926 #: ../src/guestfs-actions.pod:3732
25927 #, no-wrap
25928 msgid ""
25929 " char **\n"
25930 " guestfs_list_devices (guestfs_h *g);\n"
25931 "\n"
25932 msgstr ""
25933
25934 #. type: =head2
25935 #: ../src/guestfs-actions.pod:3747
25936 msgid "guestfs_list_dm_devices"
25937 msgstr ""
25938
25939 #. type: verbatim
25940 #: ../src/guestfs-actions.pod:3749
25941 #, no-wrap
25942 msgid ""
25943 " char **\n"
25944 " guestfs_list_dm_devices (guestfs_h *g);\n"
25945 "\n"
25946 msgstr ""
25947
25948 #. type: textblock
25949 #: ../src/guestfs-actions.pod:3754
25950 msgid ""
25951 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
25952 "previous call to C<guestfs_luks_open>."
25953 msgstr ""
25954
25955 #. type: textblock
25956 #: ../src/guestfs-actions.pod:3757
25957 msgid ""
25958 "Device mapper devices which correspond to logical volumes are I<not> "
25959 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
25960 "volumes."
25961 msgstr ""
25962
25963 #. type: textblock
25964 #: ../src/guestfs-actions.pod:3765 ../src/guestfs-actions.pod:5221
25965 msgid "(Added in 1.11.15)"
25966 msgstr ""
25967
25968 #. type: =head2
25969 #: ../src/guestfs-actions.pod:3767
25970 msgid "guestfs_list_filesystems"
25971 msgstr ""
25972
25973 #. type: verbatim
25974 #: ../src/guestfs-actions.pod:3769
25975 #, no-wrap
25976 msgid ""
25977 " char **\n"
25978 " guestfs_list_filesystems (guestfs_h *g);\n"
25979 "\n"
25980 msgstr ""
25981
25982 #. type: textblock
25983 #: ../src/guestfs-actions.pod:3789
25984 msgid ""
25985 "This command runs other libguestfs commands, which might include "
25986 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
25987 "soon after launch and only when nothing is mounted."
25988 msgstr ""
25989
25990 #. type: textblock
25991 #: ../src/guestfs-actions.pod:3793
25992 msgid ""
25993 "Not all of the filesystems returned will be mountable.  In particular, swap "
25994 "partitions are returned in the list.  Also this command does not check that "
25995 "each filesystem found is valid and mountable, and some filesystems might be "
25996 "mountable but require special options.  Filesystems may not all belong to a "
25997 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
25998 msgstr ""
25999
26000 #. type: textblock
26001 #: ../src/guestfs-actions.pod:3807 ../src/guestfs-actions.pod:5582
26002 msgid "(Added in 1.5.15)"
26003 msgstr ""
26004
26005 #. type: =head2
26006 #: ../src/guestfs-actions.pod:3809
26007 msgid "guestfs_list_partitions"
26008 msgstr ""
26009
26010 #. type: verbatim
26011 #: ../src/guestfs-actions.pod:3811
26012 #, no-wrap
26013 msgid ""
26014 " char **\n"
26015 " guestfs_list_partitions (guestfs_h *g);\n"
26016 "\n"
26017 msgstr ""
26018
26019 #. type: textblock
26020 #: ../src/guestfs-actions.pod:3818
26021 msgid ""
26022 "This does not return logical volumes.  For that you will need to call "
26023 "C<guestfs_lvs>."
26024 msgstr ""
26025
26026 #. type: =head2
26027 #: ../src/guestfs-actions.pod:3829
26028 msgid "guestfs_ll"
26029 msgstr ""
26030
26031 #. type: verbatim
26032 #: ../src/guestfs-actions.pod:3831
26033 #, no-wrap
26034 msgid ""
26035 " char *\n"
26036 " guestfs_ll (guestfs_h *g,\n"
26037 "             const char *directory);\n"
26038 "\n"
26039 msgstr ""
26040
26041 #. type: =head2
26042 #: ../src/guestfs-actions.pod:3846
26043 msgid "guestfs_ln"
26044 msgstr ""
26045
26046 #. type: verbatim
26047 #: ../src/guestfs-actions.pod:3848
26048 #, no-wrap
26049 msgid ""
26050 " int\n"
26051 " guestfs_ln (guestfs_h *g,\n"
26052 "             const char *target,\n"
26053 "             const char *linkname);\n"
26054 "\n"
26055 msgstr ""
26056
26057 #. type: =head2
26058 #: ../src/guestfs-actions.pod:3859
26059 msgid "guestfs_ln_f"
26060 msgstr ""
26061
26062 #. type: verbatim
26063 #: ../src/guestfs-actions.pod:3861
26064 #, no-wrap
26065 msgid ""
26066 " int\n"
26067 " guestfs_ln_f (guestfs_h *g,\n"
26068 "               const char *target,\n"
26069 "               const char *linkname);\n"
26070 "\n"
26071 msgstr ""
26072
26073 #. type: =head2
26074 #: ../src/guestfs-actions.pod:3873
26075 msgid "guestfs_ln_s"
26076 msgstr ""
26077
26078 #. type: verbatim
26079 #: ../src/guestfs-actions.pod:3875
26080 #, no-wrap
26081 msgid ""
26082 " int\n"
26083 " guestfs_ln_s (guestfs_h *g,\n"
26084 "               const char *target,\n"
26085 "               const char *linkname);\n"
26086 "\n"
26087 msgstr ""
26088
26089 #. type: =head2
26090 #: ../src/guestfs-actions.pod:3886
26091 msgid "guestfs_ln_sf"
26092 msgstr ""
26093
26094 #. type: verbatim
26095 #: ../src/guestfs-actions.pod:3888
26096 #, no-wrap
26097 msgid ""
26098 " int\n"
26099 " guestfs_ln_sf (guestfs_h *g,\n"
26100 "                const char *target,\n"
26101 "                const char *linkname);\n"
26102 "\n"
26103 msgstr ""
26104
26105 #. type: =head2
26106 #: ../src/guestfs-actions.pod:3900
26107 msgid "guestfs_lremovexattr"
26108 msgstr ""
26109
26110 #. type: verbatim
26111 #: ../src/guestfs-actions.pod:3902
26112 #, no-wrap
26113 msgid ""
26114 " int\n"
26115 " guestfs_lremovexattr (guestfs_h *g,\n"
26116 "                       const char *xattr,\n"
26117 "                       const char *path);\n"
26118 "\n"
26119 msgstr ""
26120
26121 #. type: textblock
26122 #: ../src/guestfs-actions.pod:3907
26123 msgid ""
26124 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
26125 "link, then it removes an extended attribute of the link itself."
26126 msgstr ""
26127
26128 #. type: =head2
26129 #: ../src/guestfs-actions.pod:3915
26130 msgid "guestfs_ls"
26131 msgstr ""
26132
26133 #. type: verbatim
26134 #: ../src/guestfs-actions.pod:3917
26135 #, no-wrap
26136 msgid ""
26137 " char **\n"
26138 " guestfs_ls (guestfs_h *g,\n"
26139 "             const char *directory);\n"
26140 "\n"
26141 msgstr ""
26142
26143 #. type: textblock
26144 #: ../src/guestfs-actions.pod:3925
26145 msgid ""
26146 "This command is mostly useful for interactive sessions.  Programs should "
26147 "probably use C<guestfs_readdir> instead."
26148 msgstr ""
26149
26150 #. type: =head2
26151 #: ../src/guestfs-actions.pod:3934
26152 msgid "guestfs_lsetxattr"
26153 msgstr ""
26154
26155 #. type: verbatim
26156 #: ../src/guestfs-actions.pod:3936
26157 #, no-wrap
26158 msgid ""
26159 " int\n"
26160 " guestfs_lsetxattr (guestfs_h *g,\n"
26161 "                    const char *xattr,\n"
26162 "                    const char *val,\n"
26163 "                    int vallen,\n"
26164 "                    const char *path);\n"
26165 "\n"
26166 msgstr ""
26167
26168 #. type: textblock
26169 #: ../src/guestfs-actions.pod:3943
26170 msgid ""
26171 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
26172 "then it sets an extended attribute of the link itself."
26173 msgstr ""
26174
26175 #. type: =head2
26176 #: ../src/guestfs-actions.pod:3951
26177 msgid "guestfs_lstat"
26178 msgstr ""
26179
26180 #. type: verbatim
26181 #: ../src/guestfs-actions.pod:3953
26182 #, no-wrap
26183 msgid ""
26184 " struct guestfs_stat *\n"
26185 " guestfs_lstat (guestfs_h *g,\n"
26186 "                const char *path);\n"
26187 "\n"
26188 msgstr ""
26189
26190 #. type: textblock
26191 #: ../src/guestfs-actions.pod:3959
26192 msgid ""
26193 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
26194 "link, then the link is stat-ed, not the file it refers to."
26195 msgstr ""
26196
26197 #. type: textblock
26198 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:6740
26199 msgid ""
26200 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
26201 "error.  I<The caller must call C<guestfs_free_stat> after use>."
26202 msgstr ""
26203
26204 #. type: textblock
26205 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:6744
26206 #: ../src/guestfs-actions.pod:6762 ../src/guestfs-actions.pod:7143
26207 msgid "(Added in 0.9.2)"
26208 msgstr ""
26209
26210 #. type: =head2
26211 #: ../src/guestfs-actions.pod:3971
26212 msgid "guestfs_lstatlist"
26213 msgstr ""
26214
26215 #. type: verbatim
26216 #: ../src/guestfs-actions.pod:3973
26217 #, no-wrap
26218 msgid ""
26219 " struct guestfs_stat_list *\n"
26220 " guestfs_lstatlist (guestfs_h *g,\n"
26221 "                    const char *path,\n"
26222 "                    char *const *names);\n"
26223 "\n"
26224 msgstr ""
26225
26226 #. type: textblock
26227 #: ../src/guestfs-actions.pod:3978
26228 msgid ""
26229 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
26230 "files, where all files are in the directory C<path>.  C<names> is the list "
26231 "of files from this directory."
26232 msgstr ""
26233
26234 #. type: textblock
26235 #: ../src/guestfs-actions.pod:3987
26236 msgid ""
26237 "This call is intended for programs that want to efficiently list a directory "
26238 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
26239 "for a similarly efficient call for getting extended attributes.  Very long "
26240 "directory listings might cause the protocol message size to be exceeded, "
26241 "causing this call to fail.  The caller must split up such requests into "
26242 "smaller groups of names."
26243 msgstr ""
26244
26245 #. type: textblock
26246 #: ../src/guestfs-actions.pod:3995
26247 msgid ""
26248 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
26249 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
26250 msgstr ""
26251
26252 #. type: =head2
26253 #: ../src/guestfs-actions.pod:4001
26254 msgid "guestfs_luks_add_key"
26255 msgstr ""
26256
26257 #. type: verbatim
26258 #: ../src/guestfs-actions.pod:4003
26259 #, no-wrap
26260 msgid ""
26261 " int\n"
26262 " guestfs_luks_add_key (guestfs_h *g,\n"
26263 "                       const char *device,\n"
26264 "                       const char *key,\n"
26265 "                       const char *newkey,\n"
26266 "                       int keyslot);\n"
26267 "\n"
26268 msgstr ""
26269
26270 #. type: textblock
26271 #: ../src/guestfs-actions.pod:4015
26272 msgid ""
26273 "Note that if C<keyslot> already contains a key, then this command will "
26274 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
26275 msgstr ""
26276
26277 #. type: textblock
26278 #: ../src/guestfs-actions.pod:4021 ../src/guestfs-actions.pod:4061
26279 #: ../src/guestfs-actions.pod:4084 ../src/guestfs-actions.pod:4104
26280 #: ../src/guestfs-actions.pod:4139 ../src/guestfs-actions.pod:4158
26281 msgid ""
26282 "This function takes a key or passphrase parameter which could contain "
26283 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
26284 "information."
26285 msgstr ""
26286
26287 #. type: textblock
26288 #: ../src/guestfs-actions.pod:4025 ../src/guestfs-actions.pod:4065
26289 #: ../src/guestfs-actions.pod:4088 ../src/guestfs-actions.pod:4108
26290 msgid "(Added in 1.5.2)"
26291 msgstr ""
26292
26293 #. type: =head2
26294 #: ../src/guestfs-actions.pod:4027
26295 msgid "guestfs_luks_close"
26296 msgstr ""
26297
26298 #. type: verbatim
26299 #: ../src/guestfs-actions.pod:4029
26300 #, no-wrap
26301 msgid ""
26302 " int\n"
26303 " guestfs_luks_close (guestfs_h *g,\n"
26304 "                     const char *device);\n"
26305 "\n"
26306 msgstr ""
26307
26308 #. type: textblock
26309 #: ../src/guestfs-actions.pod:4033
26310 msgid ""
26311 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
26312 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
26313 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
26314 "underlying block device."
26315 msgstr ""
26316
26317 #. type: textblock
26318 #: ../src/guestfs-actions.pod:4041 ../src/guestfs-actions.pod:4143
26319 #: ../src/guestfs-actions.pod:4162 ../src/guestfs-actions.pod:4212
26320 #: ../src/guestfs-actions.pod:4260
26321 msgid "(Added in 1.5.1)"
26322 msgstr ""
26323
26324 #. type: =head2
26325 #: ../src/guestfs-actions.pod:4043
26326 msgid "guestfs_luks_format"
26327 msgstr ""
26328
26329 #. type: verbatim
26330 #: ../src/guestfs-actions.pod:4045
26331 #, no-wrap
26332 msgid ""
26333 " int\n"
26334 " guestfs_luks_format (guestfs_h *g,\n"
26335 "                      const char *device,\n"
26336 "                      const char *key,\n"
26337 "                      int keyslot);\n"
26338 "\n"
26339 msgstr ""
26340
26341 #. type: =head2
26342 #: ../src/guestfs-actions.pod:4067
26343 msgid "guestfs_luks_format_cipher"
26344 msgstr ""
26345
26346 #. type: verbatim
26347 #: ../src/guestfs-actions.pod:4069
26348 #, no-wrap
26349 msgid ""
26350 " int\n"
26351 " guestfs_luks_format_cipher (guestfs_h *g,\n"
26352 "                             const char *device,\n"
26353 "                             const char *key,\n"
26354 "                             int keyslot,\n"
26355 "                             const char *cipher);\n"
26356 "\n"
26357 msgstr ""
26358
26359 #. type: textblock
26360 #: ../src/guestfs-actions.pod:4076
26361 msgid ""
26362 "This command is the same as C<guestfs_luks_format> but it also allows you to "
26363 "set the C<cipher> used."
26364 msgstr ""
26365
26366 #. type: =head2
26367 #: ../src/guestfs-actions.pod:4090
26368 msgid "guestfs_luks_kill_slot"
26369 msgstr ""
26370
26371 #. type: verbatim
26372 #: ../src/guestfs-actions.pod:4092
26373 #, no-wrap
26374 msgid ""
26375 " int\n"
26376 " guestfs_luks_kill_slot (guestfs_h *g,\n"
26377 "                         const char *device,\n"
26378 "                         const char *key,\n"
26379 "                         int keyslot);\n"
26380 "\n"
26381 msgstr ""
26382
26383 #. type: =head2
26384 #: ../src/guestfs-actions.pod:4110
26385 msgid "guestfs_luks_open"
26386 msgstr ""
26387
26388 #. type: verbatim
26389 #: ../src/guestfs-actions.pod:4112
26390 #, no-wrap
26391 msgid ""
26392 " int\n"
26393 " guestfs_luks_open (guestfs_h *g,\n"
26394 "                    const char *device,\n"
26395 "                    const char *key,\n"
26396 "                    const char *mapname);\n"
26397 "\n"
26398 msgstr ""
26399
26400 #. type: textblock
26401 #: ../src/guestfs-actions.pod:4130
26402 msgid ""
26403 "If this block device contains LVM volume groups, then calling "
26404 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
26405 "visible."
26406 msgstr ""
26407
26408 #. type: textblock
26409 #: ../src/guestfs-actions.pod:4134
26410 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
26411 msgstr ""
26412
26413 #. type: =head2
26414 #: ../src/guestfs-actions.pod:4145
26415 msgid "guestfs_luks_open_ro"
26416 msgstr ""
26417
26418 #. type: verbatim
26419 #: ../src/guestfs-actions.pod:4147
26420 #, no-wrap
26421 msgid ""
26422 " int\n"
26423 " guestfs_luks_open_ro (guestfs_h *g,\n"
26424 "                       const char *device,\n"
26425 "                       const char *key,\n"
26426 "                       const char *mapname);\n"
26427 "\n"
26428 msgstr ""
26429
26430 #. type: textblock
26431 #: ../src/guestfs-actions.pod:4153
26432 msgid ""
26433 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
26434 "created."
26435 msgstr ""
26436
26437 #. type: =head2
26438 #: ../src/guestfs-actions.pod:4164
26439 msgid "guestfs_lvcreate"
26440 msgstr ""
26441
26442 #. type: verbatim
26443 #: ../src/guestfs-actions.pod:4166
26444 #, no-wrap
26445 msgid ""
26446 " int\n"
26447 " guestfs_lvcreate (guestfs_h *g,\n"
26448 "                   const char *logvol,\n"
26449 "                   const char *volgroup,\n"
26450 "                   int mbytes);\n"
26451 "\n"
26452 msgstr ""
26453
26454 #. type: =head2
26455 #: ../src/guestfs-actions.pod:4179
26456 msgid "guestfs_lvm_canonical_lv_name"
26457 msgstr ""
26458
26459 #. type: verbatim
26460 #: ../src/guestfs-actions.pod:4181
26461 #, no-wrap
26462 msgid ""
26463 " char *\n"
26464 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
26465 "                                const char *lvname);\n"
26466 "\n"
26467 msgstr ""
26468
26469 #. type: textblock
26470 #: ../src/guestfs-actions.pod:4192
26471 msgid "See also C<guestfs_is_lv>."
26472 msgstr ""
26473
26474 #. type: textblock
26475 #: ../src/guestfs-actions.pod:4197
26476 msgid "(Added in 1.5.24)"
26477 msgstr ""
26478
26479 #. type: =head2
26480 #: ../src/guestfs-actions.pod:4199
26481 msgid "guestfs_lvm_clear_filter"
26482 msgstr ""
26483
26484 #. type: verbatim
26485 #: ../src/guestfs-actions.pod:4201
26486 #, no-wrap
26487 msgid ""
26488 " int\n"
26489 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
26490 "\n"
26491 msgstr ""
26492
26493 #. type: textblock
26494 #: ../src/guestfs-actions.pod:4204
26495 msgid ""
26496 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
26497 "see every block device."
26498 msgstr ""
26499
26500 #. type: =head2
26501 #: ../src/guestfs-actions.pod:4214
26502 msgid "guestfs_lvm_remove_all"
26503 msgstr ""
26504
26505 #. type: verbatim
26506 #: ../src/guestfs-actions.pod:4216
26507 #, no-wrap
26508 msgid ""
26509 " int\n"
26510 " guestfs_lvm_remove_all (guestfs_h *g);\n"
26511 "\n"
26512 msgstr ""
26513
26514 #. type: =head2
26515 #: ../src/guestfs-actions.pod:4229
26516 msgid "guestfs_lvm_set_filter"
26517 msgstr ""
26518
26519 #. type: verbatim
26520 #: ../src/guestfs-actions.pod:4231
26521 #, no-wrap
26522 msgid ""
26523 " int\n"
26524 " guestfs_lvm_set_filter (guestfs_h *g,\n"
26525 "                         char *const *devices);\n"
26526 "\n"
26527 msgstr ""
26528
26529 #. type: =head2
26530 #: ../src/guestfs-actions.pod:4262
26531 msgid "guestfs_lvremove"
26532 msgstr ""
26533
26534 #. type: verbatim
26535 #: ../src/guestfs-actions.pod:4264
26536 #, no-wrap
26537 msgid ""
26538 " int\n"
26539 " guestfs_lvremove (guestfs_h *g,\n"
26540 "                   const char *device);\n"
26541 "\n"
26542 msgstr ""
26543
26544 #. type: textblock
26545 #: ../src/guestfs-actions.pod:4276 ../src/guestfs-actions.pod:5679
26546 #: ../src/guestfs-actions.pod:7513
26547 msgid "(Added in 1.0.13)"
26548 msgstr ""
26549
26550 #. type: =head2
26551 #: ../src/guestfs-actions.pod:4278
26552 msgid "guestfs_lvrename"
26553 msgstr ""
26554
26555 #. type: verbatim
26556 #: ../src/guestfs-actions.pod:4280
26557 #, no-wrap
26558 msgid ""
26559 " int\n"
26560 " guestfs_lvrename (guestfs_h *g,\n"
26561 "                   const char *logvol,\n"
26562 "                   const char *newlogvol);\n"
26563 "\n"
26564 msgstr ""
26565
26566 #. type: textblock
26567 #: ../src/guestfs-actions.pod:4289 ../src/guestfs-actions.pod:7526
26568 msgid "(Added in 1.0.83)"
26569 msgstr ""
26570
26571 #. type: =head2
26572 #: ../src/guestfs-actions.pod:4291
26573 msgid "guestfs_lvresize"
26574 msgstr ""
26575
26576 #. type: verbatim
26577 #: ../src/guestfs-actions.pod:4293
26578 #, no-wrap
26579 msgid ""
26580 " int\n"
26581 " guestfs_lvresize (guestfs_h *g,\n"
26582 "                   const char *device,\n"
26583 "                   int mbytes);\n"
26584 "\n"
26585 msgstr ""
26586
26587 #. type: =head2
26588 #: ../src/guestfs-actions.pod:4306
26589 msgid "guestfs_lvresize_free"
26590 msgstr ""
26591
26592 #. type: verbatim
26593 #: ../src/guestfs-actions.pod:4308
26594 #, no-wrap
26595 msgid ""
26596 " int\n"
26597 " guestfs_lvresize_free (guestfs_h *g,\n"
26598 "                        const char *lv,\n"
26599 "                        int percent);\n"
26600 "\n"
26601 msgstr ""
26602
26603 #. type: textblock
26604 #: ../src/guestfs-actions.pod:4321
26605 msgid "(Added in 1.3.3)"
26606 msgstr ""
26607
26608 #. type: =head2
26609 #: ../src/guestfs-actions.pod:4323
26610 msgid "guestfs_lvs"
26611 msgstr ""
26612
26613 #. type: verbatim
26614 #: ../src/guestfs-actions.pod:4325
26615 #, no-wrap
26616 msgid ""
26617 " char **\n"
26618 " guestfs_lvs (guestfs_h *g);\n"
26619 "\n"
26620 msgstr ""
26621
26622 #. type: textblock
26623 #: ../src/guestfs-actions.pod:4334
26624 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
26625 msgstr ""
26626
26627 #. type: =head2
26628 #: ../src/guestfs-actions.pod:4342
26629 msgid "guestfs_lvs_full"
26630 msgstr ""
26631
26632 #. type: verbatim
26633 #: ../src/guestfs-actions.pod:4344
26634 #, no-wrap
26635 msgid ""
26636 " struct guestfs_lvm_lv_list *\n"
26637 " guestfs_lvs_full (guestfs_h *g);\n"
26638 "\n"
26639 msgstr ""
26640
26641 #. type: textblock
26642 #: ../src/guestfs-actions.pod:4350
26643 msgid ""
26644 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
26645 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
26646 msgstr ""
26647
26648 #. type: =head2
26649 #: ../src/guestfs-actions.pod:4356
26650 msgid "guestfs_lvuuid"
26651 msgstr ""
26652
26653 #. type: verbatim
26654 #: ../src/guestfs-actions.pod:4358
26655 #, no-wrap
26656 msgid ""
26657 " char *\n"
26658 " guestfs_lvuuid (guestfs_h *g,\n"
26659 "                 const char *device);\n"
26660 "\n"
26661 msgstr ""
26662
26663 #. type: =head2
26664 #: ../src/guestfs-actions.pod:4369
26665 msgid "guestfs_lxattrlist"
26666 msgstr ""
26667
26668 #. type: verbatim
26669 #: ../src/guestfs-actions.pod:4371
26670 #, no-wrap
26671 msgid ""
26672 " struct guestfs_xattr_list *\n"
26673 " guestfs_lxattrlist (guestfs_h *g,\n"
26674 "                     const char *path,\n"
26675 "                     char *const *names);\n"
26676 "\n"
26677 msgstr ""
26678
26679 #. type: textblock
26680 #: ../src/guestfs-actions.pod:4390
26681 msgid ""
26682 "This call is intended for programs that want to efficiently list a directory "
26683 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
26684 "a similarly efficient call for getting standard stats.  Very long directory "
26685 "listings might cause the protocol message size to be exceeded, causing this "
26686 "call to fail.  The caller must split up such requests into smaller groups of "
26687 "names."
26688 msgstr ""
26689
26690 #. type: =head2
26691 #: ../src/guestfs-actions.pod:4404
26692 msgid "guestfs_mkdir"
26693 msgstr ""
26694
26695 #. type: verbatim
26696 #: ../src/guestfs-actions.pod:4406
26697 #, no-wrap
26698 msgid ""
26699 " int\n"
26700 " guestfs_mkdir (guestfs_h *g,\n"
26701 "                const char *path);\n"
26702 "\n"
26703 msgstr ""
26704
26705 #. type: =head2
26706 #: ../src/guestfs-actions.pod:4416
26707 msgid "guestfs_mkdir_mode"
26708 msgstr ""
26709
26710 #. type: verbatim
26711 #: ../src/guestfs-actions.pod:4418
26712 #, no-wrap
26713 msgid ""
26714 " int\n"
26715 " guestfs_mkdir_mode (guestfs_h *g,\n"
26716 "                     const char *path,\n"
26717 "                     int mode);\n"
26718 "\n"
26719 msgstr ""
26720
26721 #. type: textblock
26722 #: ../src/guestfs-actions.pod:4430
26723 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
26724 msgstr ""
26725
26726 #. type: =head2
26727 #: ../src/guestfs-actions.pod:4436
26728 msgid "guestfs_mkdir_p"
26729 msgstr ""
26730
26731 #. type: verbatim
26732 #: ../src/guestfs-actions.pod:4438
26733 #, no-wrap
26734 msgid ""
26735 " int\n"
26736 " guestfs_mkdir_p (guestfs_h *g,\n"
26737 "                  const char *path);\n"
26738 "\n"
26739 msgstr ""
26740
26741 #. type: =head2
26742 #: ../src/guestfs-actions.pod:4449
26743 msgid "guestfs_mkdtemp"
26744 msgstr ""
26745
26746 #. type: verbatim
26747 #: ../src/guestfs-actions.pod:4451
26748 #, no-wrap
26749 msgid ""
26750 " char *\n"
26751 " guestfs_mkdtemp (guestfs_h *g,\n"
26752 "                  const char *template);\n"
26753 "\n"
26754 msgstr ""
26755
26756 #. type: =head2
26757 #: ../src/guestfs-actions.pod:4479
26758 msgid "guestfs_mke2fs_J"
26759 msgstr ""
26760
26761 #. type: verbatim
26762 #: ../src/guestfs-actions.pod:4481
26763 #, no-wrap
26764 msgid ""
26765 " int\n"
26766 " guestfs_mke2fs_J (guestfs_h *g,\n"
26767 "                   const char *fstype,\n"
26768 "                   int blocksize,\n"
26769 "                   const char *device,\n"
26770 "                   const char *journal);\n"
26771 "\n"
26772 msgstr ""
26773
26774 #. type: textblock
26775 #: ../src/guestfs-actions.pod:4494
26776 msgid "See also C<guestfs_mke2journal>."
26777 msgstr ""
26778
26779 #. type: textblock
26780 #: ../src/guestfs-actions.pod:4498 ../src/guestfs-actions.pod:4516
26781 #: ../src/guestfs-actions.pod:4534 ../src/guestfs-actions.pod:4550
26782 #: ../src/guestfs-actions.pod:4564 ../src/guestfs-actions.pod:4578
26783 #: ../src/guestfs-actions.pod:4637 ../src/guestfs-actions.pod:4914
26784 msgid "(Added in 1.0.68)"
26785 msgstr ""
26786
26787 #. type: =head2
26788 #: ../src/guestfs-actions.pod:4500
26789 msgid "guestfs_mke2fs_JL"
26790 msgstr ""
26791
26792 #. type: verbatim
26793 #: ../src/guestfs-actions.pod:4502
26794 #, no-wrap
26795 msgid ""
26796 " int\n"
26797 " guestfs_mke2fs_JL (guestfs_h *g,\n"
26798 "                    const char *fstype,\n"
26799 "                    int blocksize,\n"
26800 "                    const char *device,\n"
26801 "                    const char *label);\n"
26802 "\n"
26803 msgstr ""
26804
26805 #. type: textblock
26806 #: ../src/guestfs-actions.pod:4512
26807 msgid "See also C<guestfs_mke2journal_L>."
26808 msgstr ""
26809
26810 #. type: =head2
26811 #: ../src/guestfs-actions.pod:4518
26812 msgid "guestfs_mke2fs_JU"
26813 msgstr ""
26814
26815 #. type: verbatim
26816 #: ../src/guestfs-actions.pod:4520
26817 #, no-wrap
26818 msgid ""
26819 " int\n"
26820 " guestfs_mke2fs_JU (guestfs_h *g,\n"
26821 "                    const char *fstype,\n"
26822 "                    int blocksize,\n"
26823 "                    const char *device,\n"
26824 "                    const char *uuid);\n"
26825 "\n"
26826 msgstr ""
26827
26828 #. type: textblock
26829 #: ../src/guestfs-actions.pod:4530
26830 msgid "See also C<guestfs_mke2journal_U>."
26831 msgstr ""
26832
26833 #. type: =head2
26834 #: ../src/guestfs-actions.pod:4536
26835 msgid "guestfs_mke2journal"
26836 msgstr ""
26837
26838 #. type: verbatim
26839 #: ../src/guestfs-actions.pod:4538
26840 #, no-wrap
26841 msgid ""
26842 " int\n"
26843 " guestfs_mke2journal (guestfs_h *g,\n"
26844 "                      int blocksize,\n"
26845 "                      const char *device);\n"
26846 "\n"
26847 msgstr ""
26848
26849 #. type: =head2
26850 #: ../src/guestfs-actions.pod:4552
26851 msgid "guestfs_mke2journal_L"
26852 msgstr ""
26853
26854 #. type: verbatim
26855 #: ../src/guestfs-actions.pod:4554
26856 #, no-wrap
26857 msgid ""
26858 " int\n"
26859 " guestfs_mke2journal_L (guestfs_h *g,\n"
26860 "                        int blocksize,\n"
26861 "                        const char *label,\n"
26862 "                        const char *device);\n"
26863 "\n"
26864 msgstr ""
26865
26866 #. type: =head2
26867 #: ../src/guestfs-actions.pod:4566
26868 msgid "guestfs_mke2journal_U"
26869 msgstr ""
26870
26871 #. type: verbatim
26872 #: ../src/guestfs-actions.pod:4568
26873 #, no-wrap
26874 msgid ""
26875 " int\n"
26876 " guestfs_mke2journal_U (guestfs_h *g,\n"
26877 "                        int blocksize,\n"
26878 "                        const char *uuid,\n"
26879 "                        const char *device);\n"
26880 "\n"
26881 msgstr ""
26882
26883 #. type: =head2
26884 #: ../src/guestfs-actions.pod:4580
26885 msgid "guestfs_mkfifo"
26886 msgstr ""
26887
26888 #. type: verbatim
26889 #: ../src/guestfs-actions.pod:4582
26890 #, no-wrap
26891 msgid ""
26892 " int\n"
26893 " guestfs_mkfifo (guestfs_h *g,\n"
26894 "                 int mode,\n"
26895 "                 const char *path);\n"
26896 "\n"
26897 msgstr ""
26898
26899 #. type: textblock
26900 #: ../src/guestfs-actions.pod:4587
26901 msgid ""
26902 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
26903 "is just a convenient wrapper around C<guestfs_mknod>."
26904 msgstr ""
26905
26906 #. type: =head2
26907 #: ../src/guestfs-actions.pod:4597
26908 msgid "guestfs_mkfs"
26909 msgstr ""
26910
26911 #. type: verbatim
26912 #: ../src/guestfs-actions.pod:4599
26913 #, no-wrap
26914 msgid ""
26915 " int\n"
26916 " guestfs_mkfs (guestfs_h *g,\n"
26917 "               const char *fstype,\n"
26918 "               const char *device);\n"
26919 "\n"
26920 msgstr ""
26921
26922 #. type: =head2
26923 #: ../src/guestfs-actions.pod:4612
26924 msgid "guestfs_mkfs_b"
26925 msgstr ""
26926
26927 #. type: verbatim
26928 #: ../src/guestfs-actions.pod:4614
26929 #, no-wrap
26930 msgid ""
26931 " int\n"
26932 " guestfs_mkfs_b (guestfs_h *g,\n"
26933 "                 const char *fstype,\n"
26934 "                 int blocksize,\n"
26935 "                 const char *device);\n"
26936 "\n"
26937 msgstr ""
26938
26939 #. type: textblock
26940 #: ../src/guestfs-actions.pod:4620
26941 msgid ""
26942 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
26943 "call instead."
26944 msgstr ""
26945
26946 #. type: textblock
26947 #: ../src/guestfs-actions.pod:4627
26948 msgid ""
26949 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
26950 "block size of the resulting filesystem.  Supported block sizes depend on the "
26951 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
26952 msgstr ""
26953
26954 #. type: =head2
26955 #: ../src/guestfs-actions.pod:4639
26956 msgid "guestfs_mkfs_opts"
26957 msgstr ""
26958
26959 #. type: verbatim
26960 #: ../src/guestfs-actions.pod:4641
26961 #, no-wrap
26962 msgid ""
26963 " int\n"
26964 " guestfs_mkfs_opts (guestfs_h *g,\n"
26965 "                    const char *fstype,\n"
26966 "                    const char *device,\n"
26967 "                    ...);\n"
26968 "\n"
26969 msgstr ""
26970
26971 #. type: verbatim
26972 #: ../src/guestfs-actions.pod:4652
26973 #, no-wrap
26974 msgid ""
26975 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
26976 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
26977 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
26978 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
26979 "\n"
26980 msgstr ""
26981
26982 #. type: textblock
26983 #: ../src/guestfs-actions.pod:4700
26984 msgid "(Added in 1.7.19)"
26985 msgstr ""
26986
26987 #. type: =head2
26988 #: ../src/guestfs-actions.pod:4702
26989 msgid "guestfs_mkfs_opts_va"
26990 msgstr ""
26991
26992 #. type: verbatim
26993 #: ../src/guestfs-actions.pod:4704
26994 #, no-wrap
26995 msgid ""
26996 " int\n"
26997 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
26998 "                       const char *fstype,\n"
26999 "                       const char *device,\n"
27000 "                       va_list args);\n"
27001 "\n"
27002 msgstr ""
27003
27004 #. type: textblock
27005 #: ../src/guestfs-actions.pod:4710
27006 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
27007 msgstr ""
27008
27009 #. type: =head2
27010 #: ../src/guestfs-actions.pod:4714
27011 msgid "guestfs_mkfs_opts_argv"
27012 msgstr ""
27013
27014 #. type: verbatim
27015 #: ../src/guestfs-actions.pod:4716
27016 #, no-wrap
27017 msgid ""
27018 " int\n"
27019 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27020 "                         const char *fstype,\n"
27021 "                         const char *device,\n"
27022 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
27023 "\n"
27024 msgstr ""
27025
27026 #. type: textblock
27027 #: ../src/guestfs-actions.pod:4722
27028 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
27029 msgstr ""
27030
27031 #. type: =head2
27032 #: ../src/guestfs-actions.pod:4726
27033 msgid "guestfs_mkmountpoint"
27034 msgstr ""
27035
27036 #. type: verbatim
27037 #: ../src/guestfs-actions.pod:4728
27038 #, no-wrap
27039 msgid ""
27040 " int\n"
27041 " guestfs_mkmountpoint (guestfs_h *g,\n"
27042 "                       const char *exemptpath);\n"
27043 "\n"
27044 msgstr ""
27045
27046 #. type: textblock
27047 #: ../src/guestfs-actions.pod:4732
27048 msgid ""
27049 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
27050 "that can be used to create extra mountpoints before mounting the first "
27051 "filesystem."
27052 msgstr ""
27053
27054 #. type: textblock
27055 #: ../src/guestfs-actions.pod:4756
27056 msgid ""
27057 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
27058 "may get unexpected errors if you try to mix these calls.  It is safest to "
27059 "manually unmount filesystems and remove mountpoints after use."
27060 msgstr ""
27061
27062 #. type: textblock
27063 #: ../src/guestfs-actions.pod:4760
27064 msgid ""
27065 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
27066 "first, so for this to work for manual mountpoints, you must ensure that the "
27067 "innermost mountpoints have the longest pathnames, as in the example code "
27068 "above."
27069 msgstr ""
27070
27071 #. type: textblock
27072 #: ../src/guestfs-actions.pod:4767
27073 msgid ""
27074 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
27075 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
27076 "can also trigger these issues."
27077 msgstr ""
27078
27079 #. type: textblock
27080 #: ../src/guestfs-actions.pod:4773 ../src/guestfs-actions.pod:5089
27081 #: ../src/guestfs-actions.pod:6099
27082 msgid "(Added in 1.0.62)"
27083 msgstr ""
27084
27085 #. type: =head2
27086 #: ../src/guestfs-actions.pod:4775
27087 msgid "guestfs_mknod"
27088 msgstr ""
27089
27090 #. type: verbatim
27091 #: ../src/guestfs-actions.pod:4777
27092 #, no-wrap
27093 msgid ""
27094 " int\n"
27095 " guestfs_mknod (guestfs_h *g,\n"
27096 "                int mode,\n"
27097 "                int devmajor,\n"
27098 "                int devminor,\n"
27099 "                const char *path);\n"
27100 "\n"
27101 msgstr ""
27102
27103 #. type: textblock
27104 #: ../src/guestfs-actions.pod:4792
27105 msgid ""
27106 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
27107 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
27108 "regular file).  These constants are available in the standard Linux header "
27109 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
27110 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
27111 "the appropriate constant for you."
27112 msgstr ""
27113
27114 #. type: =head2
27115 #: ../src/guestfs-actions.pod:4806
27116 msgid "guestfs_mknod_b"
27117 msgstr ""
27118
27119 #. type: verbatim
27120 #: ../src/guestfs-actions.pod:4808
27121 #, no-wrap
27122 msgid ""
27123 " int\n"
27124 " guestfs_mknod_b (guestfs_h *g,\n"
27125 "                  int mode,\n"
27126 "                  int devmajor,\n"
27127 "                  int devminor,\n"
27128 "                  const char *path);\n"
27129 "\n"
27130 msgstr ""
27131
27132 #. type: textblock
27133 #: ../src/guestfs-actions.pod:4815
27134 msgid ""
27135 "This call creates a block device node called C<path> with mode C<mode> and "
27136 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
27137 "wrapper around C<guestfs_mknod>."
27138 msgstr ""
27139
27140 #. type: =head2
27141 #: ../src/guestfs-actions.pod:4825
27142 msgid "guestfs_mknod_c"
27143 msgstr ""
27144
27145 #. type: verbatim
27146 #: ../src/guestfs-actions.pod:4827
27147 #, no-wrap
27148 msgid ""
27149 " int\n"
27150 " guestfs_mknod_c (guestfs_h *g,\n"
27151 "                  int mode,\n"
27152 "                  int devmajor,\n"
27153 "                  int devminor,\n"
27154 "                  const char *path);\n"
27155 "\n"
27156 msgstr ""
27157
27158 #. type: textblock
27159 #: ../src/guestfs-actions.pod:4834
27160 msgid ""
27161 "This call creates a char device node called C<path> with mode C<mode> and "
27162 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
27163 "wrapper around C<guestfs_mknod>."
27164 msgstr ""
27165
27166 #. type: =head2
27167 #: ../src/guestfs-actions.pod:4844
27168 msgid "guestfs_mkswap"
27169 msgstr ""
27170
27171 #. type: verbatim
27172 #: ../src/guestfs-actions.pod:4846
27173 #, no-wrap
27174 msgid ""
27175 " int\n"
27176 " guestfs_mkswap (guestfs_h *g,\n"
27177 "                 const char *device);\n"
27178 "\n"
27179 msgstr ""
27180
27181 #. type: =head2
27182 #: ../src/guestfs-actions.pod:4856
27183 msgid "guestfs_mkswap_L"
27184 msgstr ""
27185
27186 #. type: verbatim
27187 #: ../src/guestfs-actions.pod:4858
27188 #, no-wrap
27189 msgid ""
27190 " int\n"
27191 " guestfs_mkswap_L (guestfs_h *g,\n"
27192 "                   const char *label,\n"
27193 "                   const char *device);\n"
27194 "\n"
27195 msgstr ""
27196
27197 #. type: =head2
27198 #: ../src/guestfs-actions.pod:4873
27199 msgid "guestfs_mkswap_U"
27200 msgstr ""
27201
27202 #. type: verbatim
27203 #: ../src/guestfs-actions.pod:4875
27204 #, no-wrap
27205 msgid ""
27206 " int\n"
27207 " guestfs_mkswap_U (guestfs_h *g,\n"
27208 "                   const char *uuid,\n"
27209 "                   const char *device);\n"
27210 "\n"
27211 msgstr ""
27212
27213 #. type: =head2
27214 #: ../src/guestfs-actions.pod:4886
27215 msgid "guestfs_mkswap_file"
27216 msgstr ""
27217
27218 #. type: verbatim
27219 #: ../src/guestfs-actions.pod:4888
27220 #, no-wrap
27221 msgid ""
27222 " int\n"
27223 " guestfs_mkswap_file (guestfs_h *g,\n"
27224 "                      const char *path);\n"
27225 "\n"
27226 msgstr ""
27227
27228 #. type: textblock
27229 #: ../src/guestfs-actions.pod:4894
27230 msgid ""
27231 "This command just writes a swap file signature to an existing file.  To "
27232 "create the file itself, use something like C<guestfs_fallocate>."
27233 msgstr ""
27234
27235 #. type: =head2
27236 #: ../src/guestfs-actions.pod:4901
27237 msgid "guestfs_modprobe"
27238 msgstr ""
27239
27240 #. type: verbatim
27241 #: ../src/guestfs-actions.pod:4903
27242 #, no-wrap
27243 msgid ""
27244 " int\n"
27245 " guestfs_modprobe (guestfs_h *g,\n"
27246 "                   const char *modulename);\n"
27247 "\n"
27248 msgstr ""
27249
27250 #. type: =head2
27251 #: ../src/guestfs-actions.pod:4916
27252 msgid "guestfs_mount"
27253 msgstr ""
27254
27255 #. type: verbatim
27256 #: ../src/guestfs-actions.pod:4918
27257 #, no-wrap
27258 msgid ""
27259 " int\n"
27260 " guestfs_mount (guestfs_h *g,\n"
27261 "                const char *device,\n"
27262 "                const char *mountpoint);\n"
27263 "\n"
27264 msgstr ""
27265
27266 #. type: textblock
27267 #: ../src/guestfs-actions.pod:4923
27268 msgid ""
27269 "I<This function is deprecated.> In new code, use the L</"
27270 "guestfs_mount_options> call instead."
27271 msgstr ""
27272
27273 #. type: textblock
27274 #: ../src/guestfs-actions.pod:4944
27275 msgid ""
27276 "B<Important note:> When you use this call, the filesystem options C<sync> "
27277 "and C<noatime> are set implicitly.  This was originally done because we "
27278 "thought it would improve reliability, but it turns out that I<-o sync> has a "
27279 "very large negative performance impact and negligible effect on "
27280 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
27281 "in any code that needs performance, and instead use C<guestfs_mount_options> "
27282 "(use an empty string for the first parameter if you don't want any options)."
27283 msgstr ""
27284
27285 #. type: =head2
27286 #: ../src/guestfs-actions.pod:4958
27287 msgid "guestfs_mount_9p"
27288 msgstr ""
27289
27290 #. type: verbatim
27291 #: ../src/guestfs-actions.pod:4960
27292 #, no-wrap
27293 msgid ""
27294 " int\n"
27295 " guestfs_mount_9p (guestfs_h *g,\n"
27296 "                   const char *mounttag,\n"
27297 "                   const char *mountpoint,\n"
27298 "                   ...);\n"
27299 "\n"
27300 msgstr ""
27301
27302 #. type: verbatim
27303 #: ../src/guestfs-actions.pod:4971
27304 #, no-wrap
27305 msgid ""
27306 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
27307 "\n"
27308 msgstr ""
27309
27310 #. type: =head2
27311 #: ../src/guestfs-actions.pod:4984
27312 msgid "guestfs_mount_9p_va"
27313 msgstr ""
27314
27315 #. type: verbatim
27316 #: ../src/guestfs-actions.pod:4986
27317 #, no-wrap
27318 msgid ""
27319 " int\n"
27320 " guestfs_mount_9p_va (guestfs_h *g,\n"
27321 "                      const char *mounttag,\n"
27322 "                      const char *mountpoint,\n"
27323 "                      va_list args);\n"
27324 "\n"
27325 msgstr ""
27326
27327 #. type: textblock
27328 #: ../src/guestfs-actions.pod:4992
27329 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
27330 msgstr ""
27331
27332 #. type: =head2
27333 #: ../src/guestfs-actions.pod:4996
27334 msgid "guestfs_mount_9p_argv"
27335 msgstr ""
27336
27337 #. type: verbatim
27338 #: ../src/guestfs-actions.pod:4998
27339 #, no-wrap
27340 msgid ""
27341 " int\n"
27342 " guestfs_mount_9p_argv (guestfs_h *g,\n"
27343 "                        const char *mounttag,\n"
27344 "                        const char *mountpoint,\n"
27345 "                        const struct guestfs_mount_9p_argv *optargs);\n"
27346 "\n"
27347 msgstr ""
27348
27349 #. type: textblock
27350 #: ../src/guestfs-actions.pod:5004
27351 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
27352 msgstr ""
27353
27354 #. type: =head2
27355 #: ../src/guestfs-actions.pod:5008
27356 msgid "guestfs_mount_loop"
27357 msgstr ""
27358
27359 #. type: verbatim
27360 #: ../src/guestfs-actions.pod:5010
27361 #, no-wrap
27362 msgid ""
27363 " int\n"
27364 " guestfs_mount_loop (guestfs_h *g,\n"
27365 "                     const char *file,\n"
27366 "                     const char *mountpoint);\n"
27367 "\n"
27368 msgstr ""
27369
27370 #. type: =head2
27371 #: ../src/guestfs-actions.pod:5023
27372 msgid "guestfs_mount_options"
27373 msgstr ""
27374
27375 #. type: verbatim
27376 #: ../src/guestfs-actions.pod:5025
27377 #, no-wrap
27378 msgid ""
27379 " int\n"
27380 " guestfs_mount_options (guestfs_h *g,\n"
27381 "                        const char *options,\n"
27382 "                        const char *device,\n"
27383 "                        const char *mountpoint);\n"
27384 "\n"
27385 msgstr ""
27386
27387 #. type: textblock
27388 #: ../src/guestfs-actions.pod:5031
27389 msgid ""
27390 "This is the same as the C<guestfs_mount> command, but it allows you to set "
27391 "the mount options as for the L<mount(8)> I<-o> flag."
27392 msgstr ""
27393
27394 #. type: textblock
27395 #: ../src/guestfs-actions.pod:5041 ../src/guestfs-actions.pod:5055
27396 #: ../src/guestfs-actions.pod:5072
27397 msgid "(Added in 1.0.10)"
27398 msgstr ""
27399
27400 #. type: =head2
27401 #: ../src/guestfs-actions.pod:5043
27402 msgid "guestfs_mount_ro"
27403 msgstr ""
27404
27405 #. type: verbatim
27406 #: ../src/guestfs-actions.pod:5045
27407 #, no-wrap
27408 msgid ""
27409 " int\n"
27410 " guestfs_mount_ro (guestfs_h *g,\n"
27411 "                   const char *device,\n"
27412 "                   const char *mountpoint);\n"
27413 "\n"
27414 msgstr ""
27415
27416 #. type: textblock
27417 #: ../src/guestfs-actions.pod:5050
27418 msgid ""
27419 "This is the same as the C<guestfs_mount> command, but it mounts the "
27420 "filesystem with the read-only (I<-o ro>) flag."
27421 msgstr ""
27422
27423 #. type: =head2
27424 #: ../src/guestfs-actions.pod:5057
27425 msgid "guestfs_mount_vfs"
27426 msgstr ""
27427
27428 #. type: verbatim
27429 #: ../src/guestfs-actions.pod:5059
27430 #, no-wrap
27431 msgid ""
27432 " int\n"
27433 " guestfs_mount_vfs (guestfs_h *g,\n"
27434 "                    const char *options,\n"
27435 "                    const char *vfstype,\n"
27436 "                    const char *device,\n"
27437 "                    const char *mountpoint);\n"
27438 "\n"
27439 msgstr ""
27440
27441 #. type: textblock
27442 #: ../src/guestfs-actions.pod:5066
27443 msgid ""
27444 "This is the same as the C<guestfs_mount> command, but it allows you to set "
27445 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
27446 "t> flags."
27447 msgstr ""
27448
27449 #. type: =head2
27450 #: ../src/guestfs-actions.pod:5074
27451 msgid "guestfs_mountpoints"
27452 msgstr ""
27453
27454 #. type: verbatim
27455 #: ../src/guestfs-actions.pod:5076
27456 #, no-wrap
27457 msgid ""
27458 " char **\n"
27459 " guestfs_mountpoints (guestfs_h *g);\n"
27460 "\n"
27461 msgstr ""
27462
27463 #. type: textblock
27464 #: ../src/guestfs-actions.pod:5079
27465 msgid ""
27466 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
27467 "devices.  This one returns a hash table (map) of device name to directory "
27468 "where the device is mounted."
27469 msgstr ""
27470
27471 #. type: =head2
27472 #: ../src/guestfs-actions.pod:5091
27473 msgid "guestfs_mounts"
27474 msgstr ""
27475
27476 #. type: verbatim
27477 #: ../src/guestfs-actions.pod:5093
27478 #, no-wrap
27479 msgid ""
27480 " char **\n"
27481 " guestfs_mounts (guestfs_h *g);\n"
27482 "\n"
27483 msgstr ""
27484
27485 #. type: textblock
27486 #: ../src/guestfs-actions.pod:5101
27487 msgid "See also: C<guestfs_mountpoints>"
27488 msgstr ""
27489
27490 #. type: =head2
27491 #: ../src/guestfs-actions.pod:5109
27492 msgid "guestfs_mv"
27493 msgstr ""
27494
27495 #. type: verbatim
27496 #: ../src/guestfs-actions.pod:5111
27497 #, no-wrap
27498 msgid ""
27499 " int\n"
27500 " guestfs_mv (guestfs_h *g,\n"
27501 "             const char *src,\n"
27502 "             const char *dest);\n"
27503 "\n"
27504 msgstr ""
27505
27506 #. type: =head2
27507 #: ../src/guestfs-actions.pod:5123
27508 msgid "guestfs_ntfs_3g_probe"
27509 msgstr ""
27510
27511 #. type: verbatim
27512 #: ../src/guestfs-actions.pod:5125
27513 #, no-wrap
27514 msgid ""
27515 " int\n"
27516 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
27517 "                        int rw,\n"
27518 "                        const char *device);\n"
27519 "\n"
27520 msgstr ""
27521
27522 #. type: textblock
27523 #: ../src/guestfs-actions.pod:5144
27524 msgid "(Added in 1.0.43)"
27525 msgstr ""
27526
27527 #. type: =head2
27528 #: ../src/guestfs-actions.pod:5146
27529 msgid "guestfs_ntfsresize"
27530 msgstr ""
27531
27532 #. type: verbatim
27533 #: ../src/guestfs-actions.pod:5148
27534 #, no-wrap
27535 msgid ""
27536 " int\n"
27537 " guestfs_ntfsresize (guestfs_h *g,\n"
27538 "                     const char *device);\n"
27539 "\n"
27540 msgstr ""
27541
27542 #. type: textblock
27543 #: ../src/guestfs-actions.pod:5152 ../src/guestfs-actions.pod:5252
27544 msgid ""
27545 "I<This function is deprecated.> In new code, use the L</"
27546 "guestfs_ntfsresize_opts> call instead."
27547 msgstr ""
27548
27549 #. type: =head2
27550 #: ../src/guestfs-actions.pod:5176
27551 msgid "guestfs_ntfsresize_opts"
27552 msgstr ""
27553
27554 #. type: verbatim
27555 #: ../src/guestfs-actions.pod:5178
27556 #, no-wrap
27557 msgid ""
27558 " int\n"
27559 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
27560 "                          const char *device,\n"
27561 "                          ...);\n"
27562 "\n"
27563 msgstr ""
27564
27565 #. type: verbatim
27566 #: ../src/guestfs-actions.pod:5188
27567 #, no-wrap
27568 msgid ""
27569 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
27570 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
27571 "\n"
27572 msgstr ""
27573
27574 #. type: textblock
27575 #: ../src/guestfs-actions.pod:5208
27576 msgid ""
27577 "After the resize operation, the filesystem is always marked as requiring a "
27578 "consistency check (for safety).  You have to boot into Windows to perform "
27579 "this check and clear this condition.  If you I<don't> set the C<force> "
27580 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
27581 "times on a single filesystem without booting into Windows between each "
27582 "resize."
27583 msgstr ""
27584
27585 #. type: =head2
27586 #: ../src/guestfs-actions.pod:5223
27587 msgid "guestfs_ntfsresize_opts_va"
27588 msgstr ""
27589
27590 #. type: verbatim
27591 #: ../src/guestfs-actions.pod:5225
27592 #, no-wrap
27593 msgid ""
27594 " int\n"
27595 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
27596 "                             const char *device,\n"
27597 "                             va_list args);\n"
27598 "\n"
27599 msgstr ""
27600
27601 #. type: textblock
27602 #: ../src/guestfs-actions.pod:5230
27603 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
27604 msgstr ""
27605
27606 #. type: =head2
27607 #: ../src/guestfs-actions.pod:5234
27608 msgid "guestfs_ntfsresize_opts_argv"
27609 msgstr ""
27610
27611 #. type: verbatim
27612 #: ../src/guestfs-actions.pod:5236
27613 #, no-wrap
27614 msgid ""
27615 " int\n"
27616 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
27617 "                               const char *device,\n"
27618 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
27619 "\n"
27620 msgstr ""
27621
27622 #. type: textblock
27623 #: ../src/guestfs-actions.pod:5241
27624 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
27625 msgstr ""
27626
27627 #. type: =head2
27628 #: ../src/guestfs-actions.pod:5245
27629 msgid "guestfs_ntfsresize_size"
27630 msgstr ""
27631
27632 #. type: verbatim
27633 #: ../src/guestfs-actions.pod:5247
27634 #, no-wrap
27635 msgid ""
27636 " int\n"
27637 " guestfs_ntfsresize_size (guestfs_h *g,\n"
27638 "                          const char *device,\n"
27639 "                          int64_t size);\n"
27640 "\n"
27641 msgstr ""
27642
27643 #. type: textblock
27644 #: ../src/guestfs-actions.pod:5259
27645 msgid ""
27646 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
27647 "to specify the new size (in bytes) explicitly."
27648 msgstr ""
27649
27650 #. type: textblock
27651 #: ../src/guestfs-actions.pod:5264 ../src/guestfs-actions.pod:5706
27652 #: ../src/guestfs-actions.pod:5779 ../src/guestfs-actions.pod:6047
27653 #: ../src/guestfs-actions.pod:7670
27654 msgid "(Added in 1.3.14)"
27655 msgstr ""
27656
27657 #. type: =head2
27658 #: ../src/guestfs-actions.pod:5266
27659 msgid "guestfs_part_add"
27660 msgstr ""
27661
27662 #. type: verbatim
27663 #: ../src/guestfs-actions.pod:5268
27664 #, no-wrap
27665 msgid ""
27666 " int\n"
27667 " guestfs_part_add (guestfs_h *g,\n"
27668 "                   const char *device,\n"
27669 "                   const char *prlogex,\n"
27670 "                   int64_t startsect,\n"
27671 "                   int64_t endsect);\n"
27672 "\n"
27673 msgstr ""
27674
27675 #. type: textblock
27676 #: ../src/guestfs-actions.pod:5275
27677 msgid ""
27678 "This command adds a partition to C<device>.  If there is no partition table "
27679 "on the device, call C<guestfs_part_init> first."
27680 msgstr ""
27681
27682 #. type: textblock
27683 #: ../src/guestfs-actions.pod:5287
27684 msgid ""
27685 "Creating a partition which covers the whole disk is not so easy.  Use "
27686 "C<guestfs_part_disk> to do that."
27687 msgstr ""
27688
27689 #. type: textblock
27690 #: ../src/guestfs-actions.pod:5292 ../src/guestfs-actions.pod:5330
27691 #: ../src/guestfs-actions.pod:5383 ../src/guestfs-actions.pod:5467
27692 #: ../src/guestfs-actions.pod:5505 ../src/guestfs-actions.pod:5524
27693 #: ../src/guestfs-actions.pod:5564
27694 msgid "(Added in 1.0.78)"
27695 msgstr ""
27696
27697 #. type: =head2
27698 #: ../src/guestfs-actions.pod:5294
27699 msgid "guestfs_part_del"
27700 msgstr ""
27701
27702 #. type: verbatim
27703 #: ../src/guestfs-actions.pod:5296
27704 #, no-wrap
27705 msgid ""
27706 " int\n"
27707 " guestfs_part_del (guestfs_h *g,\n"
27708 "                   const char *device,\n"
27709 "                   int partnum);\n"
27710 "\n"
27711 msgstr ""
27712
27713 #. type: =head2
27714 #: ../src/guestfs-actions.pod:5311
27715 msgid "guestfs_part_disk"
27716 msgstr ""
27717
27718 #. type: verbatim
27719 #: ../src/guestfs-actions.pod:5313
27720 #, no-wrap
27721 msgid ""
27722 " int\n"
27723 " guestfs_part_disk (guestfs_h *g,\n"
27724 "                    const char *device,\n"
27725 "                    const char *parttype);\n"
27726 "\n"
27727 msgstr ""
27728
27729 #. type: textblock
27730 #: ../src/guestfs-actions.pod:5318
27731 msgid ""
27732 "This command is simply a combination of C<guestfs_part_init> followed by "
27733 "C<guestfs_part_add> to create a single primary partition covering the whole "
27734 "disk."
27735 msgstr ""
27736
27737 #. type: textblock
27738 #: ../src/guestfs-actions.pod:5322
27739 msgid ""
27740 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
27741 "possible values are described in C<guestfs_part_init>."
27742 msgstr ""
27743
27744 #. type: =head2
27745 #: ../src/guestfs-actions.pod:5332
27746 msgid "guestfs_part_get_bootable"
27747 msgstr ""
27748
27749 #. type: verbatim
27750 #: ../src/guestfs-actions.pod:5334
27751 #, no-wrap
27752 msgid ""
27753 " int\n"
27754 " guestfs_part_get_bootable (guestfs_h *g,\n"
27755 "                            const char *device,\n"
27756 "                            int partnum);\n"
27757 "\n"
27758 msgstr ""
27759
27760 #. type: textblock
27761 #: ../src/guestfs-actions.pod:5342
27762 msgid "See also C<guestfs_part_set_bootable>."
27763 msgstr ""
27764
27765 #. type: =head2
27766 #: ../src/guestfs-actions.pod:5348
27767 msgid "guestfs_part_get_mbr_id"
27768 msgstr ""
27769
27770 #. type: verbatim
27771 #: ../src/guestfs-actions.pod:5350
27772 #, no-wrap
27773 msgid ""
27774 " int\n"
27775 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
27776 "                          const char *device,\n"
27777 "                          int partnum);\n"
27778 "\n"
27779 msgstr ""
27780
27781 #. type: textblock
27782 #: ../src/guestfs-actions.pod:5358 ../src/guestfs-actions.pod:5540
27783 msgid ""
27784 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
27785 "undefined results for other partition table types (see "
27786 "C<guestfs_part_get_parttype>)."
27787 msgstr ""
27788
27789 #. type: =head2
27790 #: ../src/guestfs-actions.pod:5366
27791 msgid "guestfs_part_get_parttype"
27792 msgstr ""
27793
27794 #. type: verbatim
27795 #: ../src/guestfs-actions.pod:5368
27796 #, no-wrap
27797 msgid ""
27798 " char *\n"
27799 " guestfs_part_get_parttype (guestfs_h *g,\n"
27800 "                            const char *device);\n"
27801 "\n"
27802 msgstr ""
27803
27804 #. type: textblock
27805 #: ../src/guestfs-actions.pod:5375
27806 msgid ""
27807 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
27808 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
27809 "possible, although unusual.  See C<guestfs_part_init> for a full list."
27810 msgstr ""
27811
27812 #. type: =head2
27813 #: ../src/guestfs-actions.pod:5385
27814 msgid "guestfs_part_init"
27815 msgstr ""
27816
27817 #. type: verbatim
27818 #: ../src/guestfs-actions.pod:5387
27819 #, no-wrap
27820 msgid ""
27821 " int\n"
27822 " guestfs_part_init (guestfs_h *g,\n"
27823 "                    const char *device,\n"
27824 "                    const char *parttype);\n"
27825 "\n"
27826 msgstr ""
27827
27828 #. type: textblock
27829 #: ../src/guestfs-actions.pod:5396
27830 msgid ""
27831 "Initially there are no partitions.  Following this, you should call "
27832 "C<guestfs_part_add> for each partition required."
27833 msgstr ""
27834
27835 #. type: =head2
27836 #: ../src/guestfs-actions.pod:5469
27837 msgid "guestfs_part_list"
27838 msgstr ""
27839
27840 #. type: verbatim
27841 #: ../src/guestfs-actions.pod:5471
27842 #, no-wrap
27843 msgid ""
27844 " struct guestfs_partition_list *\n"
27845 " guestfs_part_list (guestfs_h *g,\n"
27846 "                    const char *device);\n"
27847 "\n"
27848 msgstr ""
27849
27850 #. type: textblock
27851 #: ../src/guestfs-actions.pod:5488
27852 msgid ""
27853 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
27854 "the device's sector size, see C<guestfs_blockdev_getss>."
27855 msgstr ""
27856
27857 #. type: textblock
27858 #: ../src/guestfs-actions.pod:5501
27859 msgid ""
27860 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
27861 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
27862 "use>."
27863 msgstr ""
27864
27865 #. type: =head2
27866 #: ../src/guestfs-actions.pod:5507
27867 msgid "guestfs_part_set_bootable"
27868 msgstr ""
27869
27870 #. type: verbatim
27871 #: ../src/guestfs-actions.pod:5509
27872 #, no-wrap
27873 msgid ""
27874 " int\n"
27875 " guestfs_part_set_bootable (guestfs_h *g,\n"
27876 "                            const char *device,\n"
27877 "                            int partnum,\n"
27878 "                            int bootable);\n"
27879 "\n"
27880 msgstr ""
27881
27882 #. type: =head2
27883 #: ../src/guestfs-actions.pod:5526
27884 msgid "guestfs_part_set_mbr_id"
27885 msgstr ""
27886
27887 #. type: verbatim
27888 #: ../src/guestfs-actions.pod:5528
27889 #, no-wrap
27890 msgid ""
27891 " int\n"
27892 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
27893 "                          const char *device,\n"
27894 "                          int partnum,\n"
27895 "                          int idbyte);\n"
27896 "\n"
27897 msgstr ""
27898
27899 #. type: =head2
27900 #: ../src/guestfs-actions.pod:5548
27901 msgid "guestfs_part_set_name"
27902 msgstr ""
27903
27904 #. type: verbatim
27905 #: ../src/guestfs-actions.pod:5550
27906 #, no-wrap
27907 msgid ""
27908 " int\n"
27909 " guestfs_part_set_name (guestfs_h *g,\n"
27910 "                        const char *device,\n"
27911 "                        int partnum,\n"
27912 "                        const char *name);\n"
27913 "\n"
27914 msgstr ""
27915
27916 #. type: =head2
27917 #: ../src/guestfs-actions.pod:5566
27918 msgid "guestfs_part_to_dev"
27919 msgstr ""
27920
27921 #. type: verbatim
27922 #: ../src/guestfs-actions.pod:5568
27923 #, no-wrap
27924 msgid ""
27925 " char *\n"
27926 " guestfs_part_to_dev (guestfs_h *g,\n"
27927 "                      const char *partition);\n"
27928 "\n"
27929 msgstr ""
27930
27931 #. type: textblock
27932 #: ../src/guestfs-actions.pod:5576
27933 msgid ""
27934 "The named partition must exist, for example as a string returned from "
27935 "C<guestfs_list_partitions>."
27936 msgstr ""
27937
27938 #. type: =head2
27939 #: ../src/guestfs-actions.pod:5584
27940 msgid "guestfs_ping_daemon"
27941 msgstr ""
27942
27943 #. type: verbatim
27944 #: ../src/guestfs-actions.pod:5586
27945 #, no-wrap
27946 msgid ""
27947 " int\n"
27948 " guestfs_ping_daemon (guestfs_h *g);\n"
27949 "\n"
27950 msgstr ""
27951
27952 #. type: =head2
27953 #: ../src/guestfs-actions.pod:5598
27954 msgid "guestfs_pread"
27955 msgstr ""
27956
27957 #. type: verbatim
27958 #: ../src/guestfs-actions.pod:5600
27959 #, no-wrap
27960 msgid ""
27961 " char *\n"
27962 " guestfs_pread (guestfs_h *g,\n"
27963 "                const char *path,\n"
27964 "                int count,\n"
27965 "                int64_t offset,\n"
27966 "                size_t *size_r);\n"
27967 "\n"
27968 msgstr ""
27969
27970 #. type: textblock
27971 #: ../src/guestfs-actions.pod:5613
27972 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
27973 msgstr ""
27974
27975 #. type: =head2
27976 #: ../src/guestfs-actions.pod:5624
27977 msgid "guestfs_pread_device"
27978 msgstr ""
27979
27980 #. type: verbatim
27981 #: ../src/guestfs-actions.pod:5626
27982 #, no-wrap
27983 msgid ""
27984 " char *\n"
27985 " guestfs_pread_device (guestfs_h *g,\n"
27986 "                       const char *device,\n"
27987 "                       int count,\n"
27988 "                       int64_t offset,\n"
27989 "                       size_t *size_r);\n"
27990 "\n"
27991 msgstr ""
27992
27993 #. type: textblock
27994 #: ../src/guestfs-actions.pod:5639
27995 msgid "See also C<guestfs_pread>."
27996 msgstr ""
27997
27998 #. type: textblock
27999 #: ../src/guestfs-actions.pod:5648
28000 msgid "(Added in 1.5.21)"
28001 msgstr ""
28002
28003 #. type: =head2
28004 #: ../src/guestfs-actions.pod:5650
28005 msgid "guestfs_pvcreate"
28006 msgstr ""
28007
28008 #. type: verbatim
28009 #: ../src/guestfs-actions.pod:5652
28010 #, no-wrap
28011 msgid ""
28012 " int\n"
28013 " guestfs_pvcreate (guestfs_h *g,\n"
28014 "                   const char *device);\n"
28015 "\n"
28016 msgstr ""
28017
28018 #. type: =head2
28019 #: ../src/guestfs-actions.pod:5664
28020 msgid "guestfs_pvremove"
28021 msgstr ""
28022
28023 #. type: verbatim
28024 #: ../src/guestfs-actions.pod:5666
28025 #, no-wrap
28026 msgid ""
28027 " int\n"
28028 " guestfs_pvremove (guestfs_h *g,\n"
28029 "                   const char *device);\n"
28030 "\n"
28031 msgstr ""
28032
28033 #. type: =head2
28034 #: ../src/guestfs-actions.pod:5681
28035 msgid "guestfs_pvresize"
28036 msgstr ""
28037
28038 #. type: verbatim
28039 #: ../src/guestfs-actions.pod:5683
28040 #, no-wrap
28041 msgid ""
28042 " int\n"
28043 " guestfs_pvresize (guestfs_h *g,\n"
28044 "                   const char *device);\n"
28045 "\n"
28046 msgstr ""
28047
28048 #. type: =head2
28049 #: ../src/guestfs-actions.pod:5694
28050 msgid "guestfs_pvresize_size"
28051 msgstr ""
28052
28053 #. type: verbatim
28054 #: ../src/guestfs-actions.pod:5696
28055 #, no-wrap
28056 msgid ""
28057 " int\n"
28058 " guestfs_pvresize_size (guestfs_h *g,\n"
28059 "                        const char *device,\n"
28060 "                        int64_t size);\n"
28061 "\n"
28062 msgstr ""
28063
28064 #. type: textblock
28065 #: ../src/guestfs-actions.pod:5701
28066 msgid ""
28067 "This command is the same as C<guestfs_pvresize> except that it allows you to "
28068 "specify the new size (in bytes) explicitly."
28069 msgstr ""
28070
28071 #. type: =head2
28072 #: ../src/guestfs-actions.pod:5708
28073 msgid "guestfs_pvs"
28074 msgstr ""
28075
28076 #. type: verbatim
28077 #: ../src/guestfs-actions.pod:5710
28078 #, no-wrap
28079 msgid ""
28080 " char **\n"
28081 " guestfs_pvs (guestfs_h *g);\n"
28082 "\n"
28083 msgstr ""
28084
28085 #. type: textblock
28086 #: ../src/guestfs-actions.pod:5719
28087 msgid "See also C<guestfs_pvs_full>."
28088 msgstr ""
28089
28090 #. type: =head2
28091 #: ../src/guestfs-actions.pod:5727
28092 msgid "guestfs_pvs_full"
28093 msgstr ""
28094
28095 #. type: verbatim
28096 #: ../src/guestfs-actions.pod:5729
28097 #, no-wrap
28098 msgid ""
28099 " struct guestfs_lvm_pv_list *\n"
28100 " guestfs_pvs_full (guestfs_h *g);\n"
28101 "\n"
28102 msgstr ""
28103
28104 #. type: textblock
28105 #: ../src/guestfs-actions.pod:5735
28106 msgid ""
28107 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
28108 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
28109 msgstr ""
28110
28111 #. type: =head2
28112 #: ../src/guestfs-actions.pod:5741
28113 msgid "guestfs_pvuuid"
28114 msgstr ""
28115
28116 #. type: verbatim
28117 #: ../src/guestfs-actions.pod:5743
28118 #, no-wrap
28119 msgid ""
28120 " char *\n"
28121 " guestfs_pvuuid (guestfs_h *g,\n"
28122 "                 const char *device);\n"
28123 "\n"
28124 msgstr ""
28125
28126 #. type: =head2
28127 #: ../src/guestfs-actions.pod:5754
28128 msgid "guestfs_pwrite"
28129 msgstr ""
28130
28131 #. type: verbatim
28132 #: ../src/guestfs-actions.pod:5756
28133 #, no-wrap
28134 msgid ""
28135 " int\n"
28136 " guestfs_pwrite (guestfs_h *g,\n"
28137 "                 const char *path,\n"
28138 "                 const char *content,\n"
28139 "                 size_t content_size,\n"
28140 "                 int64_t offset);\n"
28141 "\n"
28142 msgstr ""
28143
28144 #. type: textblock
28145 #: ../src/guestfs-actions.pod:5772
28146 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
28147 msgstr ""
28148
28149 #. type: =head2
28150 #: ../src/guestfs-actions.pod:5781
28151 msgid "guestfs_pwrite_device"
28152 msgstr ""
28153
28154 #. type: verbatim
28155 #: ../src/guestfs-actions.pod:5783
28156 #, no-wrap
28157 msgid ""
28158 " int\n"
28159 " guestfs_pwrite_device (guestfs_h *g,\n"
28160 "                        const char *device,\n"
28161 "                        const char *content,\n"
28162 "                        size_t content_size,\n"
28163 "                        int64_t offset);\n"
28164 "\n"
28165 msgstr ""
28166
28167 #. type: textblock
28168 #: ../src/guestfs-actions.pod:5798
28169 msgid "See also C<guestfs_pwrite>."
28170 msgstr ""
28171
28172 #. type: textblock
28173 #: ../src/guestfs-actions.pod:5805
28174 msgid "(Added in 1.5.20)"
28175 msgstr ""
28176
28177 #. type: =head2
28178 #: ../src/guestfs-actions.pod:5807
28179 msgid "guestfs_read_file"
28180 msgstr ""
28181
28182 #. type: verbatim
28183 #: ../src/guestfs-actions.pod:5809
28184 #, no-wrap
28185 msgid ""
28186 " char *\n"
28187 " guestfs_read_file (guestfs_h *g,\n"
28188 "                    const char *path,\n"
28189 "                    size_t *size_r);\n"
28190 "\n"
28191 msgstr ""
28192
28193 #. type: textblock
28194 #: ../src/guestfs-actions.pod:5817
28195 msgid ""
28196 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
28197 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
28198 "function is limited in the total size of file that can be handled."
28199 msgstr ""
28200
28201 #. type: textblock
28202 #: ../src/guestfs-actions.pod:5829
28203 msgid "(Added in 1.0.63)"
28204 msgstr ""
28205
28206 #. type: =head2
28207 #: ../src/guestfs-actions.pod:5831
28208 msgid "guestfs_read_lines"
28209 msgstr ""
28210
28211 #. type: verbatim
28212 #: ../src/guestfs-actions.pod:5833
28213 #, no-wrap
28214 msgid ""
28215 " char **\n"
28216 " guestfs_read_lines (guestfs_h *g,\n"
28217 "                     const char *path);\n"
28218 "\n"
28219 msgstr ""
28220
28221 #. type: textblock
28222 #: ../src/guestfs-actions.pod:5842
28223 msgid ""
28224 "Note that this function cannot correctly handle binary files (specifically, "
28225 "files containing C<\\0> character which is treated as end of line).  For "
28226 "those you need to use the C<guestfs_read_file> function which has a more "
28227 "complex interface."
28228 msgstr ""
28229
28230 #. type: =head2
28231 #: ../src/guestfs-actions.pod:5853
28232 msgid "guestfs_readdir"
28233 msgstr ""
28234
28235 #. type: verbatim
28236 #: ../src/guestfs-actions.pod:5855
28237 #, no-wrap
28238 msgid ""
28239 " struct guestfs_dirent_list *\n"
28240 " guestfs_readdir (guestfs_h *g,\n"
28241 "                  const char *dir);\n"
28242 "\n"
28243 msgstr ""
28244
28245 #. type: textblock
28246 #: ../src/guestfs-actions.pod:5909
28247 msgid ""
28248 "This function is primarily intended for use by programs.  To get a simple "
28249 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
28250 "consumption, use C<guestfs_ll>."
28251 msgstr ""
28252
28253 #. type: textblock
28254 #: ../src/guestfs-actions.pod:5913
28255 msgid ""
28256 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
28257 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
28258 msgstr ""
28259
28260 #. type: =head2
28261 #: ../src/guestfs-actions.pod:5919
28262 msgid "guestfs_readlink"
28263 msgstr ""
28264
28265 #. type: verbatim
28266 #: ../src/guestfs-actions.pod:5921
28267 #, no-wrap
28268 msgid ""
28269 " char *\n"
28270 " guestfs_readlink (guestfs_h *g,\n"
28271 "                   const char *path);\n"
28272 "\n"
28273 msgstr ""
28274
28275 #. type: =head2
28276 #: ../src/guestfs-actions.pod:5932
28277 msgid "guestfs_readlinklist"
28278 msgstr ""
28279
28280 #. type: verbatim
28281 #: ../src/guestfs-actions.pod:5934
28282 #, no-wrap
28283 msgid ""
28284 " char **\n"
28285 " guestfs_readlinklist (guestfs_h *g,\n"
28286 "                       const char *path,\n"
28287 "                       char *const *names);\n"
28288 "\n"
28289 msgstr ""
28290
28291 #. type: =head2
28292 #: ../src/guestfs-actions.pod:5967
28293 msgid "guestfs_realpath"
28294 msgstr ""
28295
28296 #. type: verbatim
28297 #: ../src/guestfs-actions.pod:5969
28298 #, no-wrap
28299 msgid ""
28300 " char *\n"
28301 " guestfs_realpath (guestfs_h *g,\n"
28302 "                   const char *path);\n"
28303 "\n"
28304 msgstr ""
28305
28306 #. type: =head2
28307 #: ../src/guestfs-actions.pod:5981
28308 msgid "guestfs_removexattr"
28309 msgstr ""
28310
28311 #. type: verbatim
28312 #: ../src/guestfs-actions.pod:5983
28313 #, no-wrap
28314 msgid ""
28315 " int\n"
28316 " guestfs_removexattr (guestfs_h *g,\n"
28317 "                      const char *xattr,\n"
28318 "                      const char *path);\n"
28319 "\n"
28320 msgstr ""
28321
28322 #. type: textblock
28323 #: ../src/guestfs-actions.pod:5991
28324 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
28325 msgstr ""
28326
28327 #. type: =head2
28328 #: ../src/guestfs-actions.pod:5997
28329 msgid "guestfs_resize2fs"
28330 msgstr ""
28331
28332 #. type: verbatim
28333 #: ../src/guestfs-actions.pod:5999
28334 #, no-wrap
28335 msgid ""
28336 " int\n"
28337 " guestfs_resize2fs (guestfs_h *g,\n"
28338 "                    const char *device);\n"
28339 "\n"
28340 msgstr ""
28341
28342 #. type: textblock
28343 #: ../src/guestfs-actions.pod:6006
28344 msgid ""
28345 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
28346 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
28347 "sometimes gives an error about this and sometimes not.  In any case, it is "
28348 "always safe to call C<guestfs_e2fsck_f> before calling this function."
28349 msgstr ""
28350
28351 #. type: =head2
28352 #: ../src/guestfs-actions.pod:6016
28353 msgid "guestfs_resize2fs_M"
28354 msgstr ""
28355
28356 #. type: verbatim
28357 #: ../src/guestfs-actions.pod:6018
28358 #, no-wrap
28359 msgid ""
28360 " int\n"
28361 " guestfs_resize2fs_M (guestfs_h *g,\n"
28362 "                      const char *device);\n"
28363 "\n"
28364 msgstr ""
28365
28366 #. type: textblock
28367 #: ../src/guestfs-actions.pod:6022
28368 msgid ""
28369 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
28370 "resized to its minimum size.  This works like the I<-M> option to the "
28371 "C<resize2fs> command."
28372 msgstr ""
28373
28374 #. type: textblock
28375 #: ../src/guestfs-actions.pod:6026
28376 msgid ""
28377 "To get the resulting size of the filesystem you should call "
28378 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
28379 "These two numbers, multiplied together, give the resulting size of the "
28380 "minimal filesystem in bytes."
28381 msgstr ""
28382
28383 #. type: =head2
28384 #: ../src/guestfs-actions.pod:6035
28385 msgid "guestfs_resize2fs_size"
28386 msgstr ""
28387
28388 #. type: verbatim
28389 #: ../src/guestfs-actions.pod:6037
28390 #, no-wrap
28391 msgid ""
28392 " int\n"
28393 " guestfs_resize2fs_size (guestfs_h *g,\n"
28394 "                         const char *device,\n"
28395 "                         int64_t size);\n"
28396 "\n"
28397 msgstr ""
28398
28399 #. type: textblock
28400 #: ../src/guestfs-actions.pod:6042
28401 msgid ""
28402 "This command is the same as C<guestfs_resize2fs> except that it allows you "
28403 "to specify the new size (in bytes) explicitly."
28404 msgstr ""
28405
28406 #. type: =head2
28407 #: ../src/guestfs-actions.pod:6049
28408 msgid "guestfs_rm"
28409 msgstr ""
28410
28411 #. type: verbatim
28412 #: ../src/guestfs-actions.pod:6051
28413 #, no-wrap
28414 msgid ""
28415 " int\n"
28416 " guestfs_rm (guestfs_h *g,\n"
28417 "             const char *path);\n"
28418 "\n"
28419 msgstr ""
28420
28421 #. type: =head2
28422 #: ../src/guestfs-actions.pod:6061
28423 msgid "guestfs_rm_rf"
28424 msgstr ""
28425
28426 #. type: verbatim
28427 #: ../src/guestfs-actions.pod:6063
28428 #, no-wrap
28429 msgid ""
28430 " int\n"
28431 " guestfs_rm_rf (guestfs_h *g,\n"
28432 "                const char *path);\n"
28433 "\n"
28434 msgstr ""
28435
28436 #. type: =head2
28437 #: ../src/guestfs-actions.pod:6075
28438 msgid "guestfs_rmdir"
28439 msgstr ""
28440
28441 #. type: verbatim
28442 #: ../src/guestfs-actions.pod:6077
28443 #, no-wrap
28444 msgid ""
28445 " int\n"
28446 " guestfs_rmdir (guestfs_h *g,\n"
28447 "                const char *path);\n"
28448 "\n"
28449 msgstr ""
28450
28451 #. type: =head2
28452 #: ../src/guestfs-actions.pod:6087
28453 msgid "guestfs_rmmountpoint"
28454 msgstr ""
28455
28456 #. type: verbatim
28457 #: ../src/guestfs-actions.pod:6089
28458 #, no-wrap
28459 msgid ""
28460 " int\n"
28461 " guestfs_rmmountpoint (guestfs_h *g,\n"
28462 "                       const char *exemptpath);\n"
28463 "\n"
28464 msgstr ""
28465
28466 #. type: textblock
28467 #: ../src/guestfs-actions.pod:6093
28468 msgid ""
28469 "This calls removes a mountpoint that was previously created with "
28470 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
28471 msgstr ""
28472
28473 #. type: =head2
28474 #: ../src/guestfs-actions.pod:6101
28475 msgid "guestfs_scrub_device"
28476 msgstr ""
28477
28478 #. type: verbatim
28479 #: ../src/guestfs-actions.pod:6103
28480 #, no-wrap
28481 msgid ""
28482 " int\n"
28483 " guestfs_scrub_device (guestfs_h *g,\n"
28484 "                       const char *device);\n"
28485 "\n"
28486 msgstr ""
28487
28488 #. type: textblock
28489 #: ../src/guestfs-actions.pod:6118 ../src/guestfs-actions.pod:6136
28490 #: ../src/guestfs-actions.pod:6155
28491 msgid "(Added in 1.0.52)"
28492 msgstr ""
28493
28494 #. type: =head2
28495 #: ../src/guestfs-actions.pod:6120
28496 msgid "guestfs_scrub_file"
28497 msgstr ""
28498
28499 #. type: verbatim
28500 #: ../src/guestfs-actions.pod:6122
28501 #, no-wrap
28502 msgid ""
28503 " int\n"
28504 " guestfs_scrub_file (guestfs_h *g,\n"
28505 "                     const char *file);\n"
28506 "\n"
28507 msgstr ""
28508
28509 #. type: =head2
28510 #: ../src/guestfs-actions.pod:6138
28511 msgid "guestfs_scrub_freespace"
28512 msgstr ""
28513
28514 #. type: verbatim
28515 #: ../src/guestfs-actions.pod:6140
28516 #, no-wrap
28517 msgid ""
28518 " int\n"
28519 " guestfs_scrub_freespace (guestfs_h *g,\n"
28520 "                          const char *dir);\n"
28521 "\n"
28522 msgstr ""
28523
28524 #. type: textblock
28525 #: ../src/guestfs-actions.pod:6144
28526 msgid ""
28527 "This command creates the directory C<dir> and then fills it with files until "
28528 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
28529 "and deletes them.  The intention is to scrub any free space on the partition "
28530 "containing C<dir>."
28531 msgstr ""
28532
28533 #. type: =head2
28534 #: ../src/guestfs-actions.pod:6157
28535 msgid "guestfs_set_append"
28536 msgstr ""
28537
28538 #. type: verbatim
28539 #: ../src/guestfs-actions.pod:6159
28540 #, no-wrap
28541 msgid ""
28542 " int\n"
28543 " guestfs_set_append (guestfs_h *g,\n"
28544 "                     const char *append);\n"
28545 "\n"
28546 msgstr ""
28547
28548 #. type: =head2
28549 #: ../src/guestfs-actions.pod:6176
28550 msgid "guestfs_set_attach_method"
28551 msgstr ""
28552
28553 #. type: verbatim
28554 #: ../src/guestfs-actions.pod:6178
28555 #, no-wrap
28556 msgid ""
28557 " int\n"
28558 " guestfs_set_attach_method (guestfs_h *g,\n"
28559 "                            const char *attachmethod);\n"
28560 "\n"
28561 msgstr ""
28562
28563 #. type: =head2
28564 #: ../src/guestfs-actions.pod:6206
28565 msgid "guestfs_set_autosync"
28566 msgstr ""
28567
28568 #. type: verbatim
28569 #: ../src/guestfs-actions.pod:6208
28570 #, no-wrap
28571 msgid ""
28572 " int\n"
28573 " guestfs_set_autosync (guestfs_h *g,\n"
28574 "                       int autosync);\n"
28575 "\n"
28576 msgstr ""
28577
28578 #. type: =head2
28579 #: ../src/guestfs-actions.pod:6224
28580 msgid "guestfs_set_direct"
28581 msgstr ""
28582
28583 #. type: verbatim
28584 #: ../src/guestfs-actions.pod:6226
28585 #, no-wrap
28586 msgid ""
28587 " int\n"
28588 " guestfs_set_direct (guestfs_h *g,\n"
28589 "                     int direct);\n"
28590 "\n"
28591 msgstr ""
28592
28593 #. type: textblock
28594 #: ../src/guestfs-actions.pod:6234
28595 msgid ""
28596 "One consequence of this is that log messages aren't caught by the library "
28597 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
28598 "stdout."
28599 msgstr ""
28600
28601 #. type: =head2
28602 #: ../src/guestfs-actions.pod:6247
28603 msgid "guestfs_set_e2label"
28604 msgstr ""
28605
28606 #. type: verbatim
28607 #: ../src/guestfs-actions.pod:6249
28608 #, no-wrap
28609 msgid ""
28610 " int\n"
28611 " guestfs_set_e2label (guestfs_h *g,\n"
28612 "                      const char *device,\n"
28613 "                      const char *label);\n"
28614 "\n"
28615 msgstr ""
28616
28617 #. type: textblock
28618 #: ../src/guestfs-actions.pod:6258
28619 msgid ""
28620 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
28621 "the existing label on a filesystem."
28622 msgstr ""
28623
28624 #. type: =head2
28625 #: ../src/guestfs-actions.pod:6265
28626 msgid "guestfs_set_e2uuid"
28627 msgstr ""
28628
28629 #. type: verbatim
28630 #: ../src/guestfs-actions.pod:6267
28631 #, no-wrap
28632 msgid ""
28633 " int\n"
28634 " guestfs_set_e2uuid (guestfs_h *g,\n"
28635 "                     const char *device,\n"
28636 "                     const char *uuid);\n"
28637 "\n"
28638 msgstr ""
28639
28640 #. type: textblock
28641 #: ../src/guestfs-actions.pod:6277
28642 msgid ""
28643 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
28644 "the existing UUID of a filesystem."
28645 msgstr ""
28646
28647 #. type: =head2
28648 #: ../src/guestfs-actions.pod:6284
28649 msgid "guestfs_set_memsize"
28650 msgstr ""
28651
28652 #. type: verbatim
28653 #: ../src/guestfs-actions.pod:6286
28654 #, no-wrap
28655 msgid ""
28656 " int\n"
28657 " guestfs_set_memsize (guestfs_h *g,\n"
28658 "                      int memsize);\n"
28659 "\n"
28660 msgstr ""
28661
28662 #. type: textblock
28663 #: ../src/guestfs-actions.pod:6290
28664 msgid ""
28665 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
28666 "This only has any effect if called before C<guestfs_launch>."
28667 msgstr ""
28668
28669 #. type: =head2
28670 #: ../src/guestfs-actions.pod:6305
28671 msgid "guestfs_set_network"
28672 msgstr ""
28673
28674 #. type: verbatim
28675 #: ../src/guestfs-actions.pod:6307
28676 #, no-wrap
28677 msgid ""
28678 " int\n"
28679 " guestfs_set_network (guestfs_h *g,\n"
28680 "                      int network);\n"
28681 "\n"
28682 msgstr ""
28683
28684 #. type: textblock
28685 #: ../src/guestfs-actions.pod:6317
28686 msgid ""
28687 "You must call this before calling C<guestfs_launch>, otherwise it has no "
28688 "effect."
28689 msgstr ""
28690
28691 #. type: =head2
28692 #: ../src/guestfs-actions.pod:6324
28693 msgid "guestfs_set_path"
28694 msgstr ""
28695
28696 #. type: verbatim
28697 #: ../src/guestfs-actions.pod:6326
28698 #, no-wrap
28699 msgid ""
28700 " int\n"
28701 " guestfs_set_path (guestfs_h *g,\n"
28702 "                   const char *searchpath);\n"
28703 "\n"
28704 msgstr ""
28705
28706 #. type: =head2
28707 #: ../src/guestfs-actions.pod:6341
28708 msgid "guestfs_set_pgroup"
28709 msgstr ""
28710
28711 #. type: verbatim
28712 #: ../src/guestfs-actions.pod:6343
28713 #, no-wrap
28714 msgid ""
28715 " int\n"
28716 " guestfs_set_pgroup (guestfs_h *g,\n"
28717 "                     int pgroup);\n"
28718 "\n"
28719 msgstr ""
28720
28721 #. type: =head2
28722 #: ../src/guestfs-actions.pod:6360
28723 msgid "guestfs_set_qemu"
28724 msgstr ""
28725
28726 #. type: verbatim
28727 #: ../src/guestfs-actions.pod:6362
28728 #, no-wrap
28729 msgid ""
28730 " int\n"
28731 " guestfs_set_qemu (guestfs_h *g,\n"
28732 "                   const char *qemu);\n"
28733 "\n"
28734 msgstr ""
28735
28736 #. type: =head2
28737 #: ../src/guestfs-actions.pod:6388
28738 msgid "guestfs_set_recovery_proc"
28739 msgstr ""
28740
28741 #. type: verbatim
28742 #: ../src/guestfs-actions.pod:6390
28743 #, no-wrap
28744 msgid ""
28745 " int\n"
28746 " guestfs_set_recovery_proc (guestfs_h *g,\n"
28747 "                            int recoveryproc);\n"
28748 "\n"
28749 msgstr ""
28750
28751 #. type: textblock
28752 #: ../src/guestfs-actions.pod:6394
28753 msgid ""
28754 "If this is called with the parameter C<false> then C<guestfs_launch> does "
28755 "not create a recovery process.  The purpose of the recovery process is to "
28756 "stop runaway qemu processes in the case where the main program aborts "
28757 "abruptly."
28758 msgstr ""
28759
28760 #. type: textblock
28761 #: ../src/guestfs-actions.pod:6399
28762 msgid ""
28763 "This only has any effect if called before C<guestfs_launch>, and the default "
28764 "is true."
28765 msgstr ""
28766
28767 #. type: =head2
28768 #: ../src/guestfs-actions.pod:6412
28769 msgid "guestfs_set_selinux"
28770 msgstr ""
28771
28772 #. type: verbatim
28773 #: ../src/guestfs-actions.pod:6414
28774 #, no-wrap
28775 msgid ""
28776 " int\n"
28777 " guestfs_set_selinux (guestfs_h *g,\n"
28778 "                      int selinux);\n"
28779 "\n"
28780 msgstr ""
28781
28782 #. type: =head2
28783 #: ../src/guestfs-actions.pod:6431
28784 msgid "guestfs_set_trace"
28785 msgstr ""
28786
28787 #. type: verbatim
28788 #: ../src/guestfs-actions.pod:6433
28789 #, no-wrap
28790 msgid ""
28791 " int\n"
28792 " guestfs_set_trace (guestfs_h *g,\n"
28793 "                    int trace);\n"
28794 "\n"
28795 msgstr ""
28796
28797 #. type: textblock
28798 #: ../src/guestfs-actions.pod:6447
28799 msgid ""
28800 "Trace messages are normally sent to C<stderr>, unless you register a "
28801 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
28802 msgstr ""
28803
28804 #. type: =head2
28805 #: ../src/guestfs-actions.pod:6455
28806 msgid "guestfs_set_verbose"
28807 msgstr ""
28808
28809 #. type: verbatim
28810 #: ../src/guestfs-actions.pod:6457
28811 #, no-wrap
28812 msgid ""
28813 " int\n"
28814 " guestfs_set_verbose (guestfs_h *g,\n"
28815 "                      int verbose);\n"
28816 "\n"
28817 msgstr ""
28818
28819 #. type: textblock
28820 #: ../src/guestfs-actions.pod:6466
28821 msgid ""
28822 "Verbose messages are normally sent to C<stderr>, unless you register a "
28823 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
28824 msgstr ""
28825
28826 #. type: =head2
28827 #: ../src/guestfs-actions.pod:6474
28828 msgid "guestfs_setcon"
28829 msgstr ""
28830
28831 #. type: verbatim
28832 #: ../src/guestfs-actions.pod:6476
28833 #, no-wrap
28834 msgid ""
28835 " int\n"
28836 " guestfs_setcon (guestfs_h *g,\n"
28837 "                 const char *context);\n"
28838 "\n"
28839 msgstr ""
28840
28841 #. type: =head2
28842 #: ../src/guestfs-actions.pod:6489
28843 msgid "guestfs_setxattr"
28844 msgstr ""
28845
28846 #. type: verbatim
28847 #: ../src/guestfs-actions.pod:6491
28848 #, no-wrap
28849 msgid ""
28850 " int\n"
28851 " guestfs_setxattr (guestfs_h *g,\n"
28852 "                   const char *xattr,\n"
28853 "                   const char *val,\n"
28854 "                   int vallen,\n"
28855 "                   const char *path);\n"
28856 "\n"
28857 msgstr ""
28858
28859 #. type: textblock
28860 #: ../src/guestfs-actions.pod:6502
28861 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
28862 msgstr ""
28863
28864 #. type: =head2
28865 #: ../src/guestfs-actions.pod:6508
28866 msgid "guestfs_sfdisk"
28867 msgstr ""
28868
28869 #. type: verbatim
28870 #: ../src/guestfs-actions.pod:6510
28871 #, no-wrap
28872 msgid ""
28873 " int\n"
28874 " guestfs_sfdisk (guestfs_h *g,\n"
28875 "                 const char *device,\n"
28876 "                 int cyls,\n"
28877 "                 int heads,\n"
28878 "                 int sectors,\n"
28879 "                 char *const *lines);\n"
28880 "\n"
28881 msgstr ""
28882
28883 #. type: textblock
28884 #: ../src/guestfs-actions.pod:6518 ../src/guestfs-actions.pod:6562
28885 #: ../src/guestfs-actions.pod:6596
28886 msgid ""
28887 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
28888 "call instead."
28889 msgstr ""
28890
28891 #. type: textblock
28892 #: ../src/guestfs-actions.pod:6545
28893 msgid ""
28894 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
28895 msgstr ""
28896
28897 #. type: =head2
28898 #: ../src/guestfs-actions.pod:6555
28899 msgid "guestfs_sfdiskM"
28900 msgstr ""
28901
28902 #. type: verbatim
28903 #: ../src/guestfs-actions.pod:6557
28904 #, no-wrap
28905 msgid ""
28906 " int\n"
28907 " guestfs_sfdiskM (guestfs_h *g,\n"
28908 "                  const char *device,\n"
28909 "                  char *const *lines);\n"
28910 "\n"
28911 msgstr ""
28912
28913 #. type: textblock
28914 #: ../src/guestfs-actions.pod:6569
28915 msgid ""
28916 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
28917 "partition sizes are specified in megabytes only (rounded to the nearest "
28918 "cylinder) and you don't need to specify the cyls, heads and sectors "
28919 "parameters which were rarely if ever used anyway."
28920 msgstr ""
28921
28922 #. type: textblock
28923 #: ../src/guestfs-actions.pod:6575
28924 msgid ""
28925 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
28926 "C<guestfs_part_disk>"
28927 msgstr ""
28928
28929 #. type: =head2
28930 #: ../src/guestfs-actions.pod:6585
28931 msgid "guestfs_sfdisk_N"
28932 msgstr ""
28933
28934 #. type: verbatim
28935 #: ../src/guestfs-actions.pod:6587
28936 #, no-wrap
28937 msgid ""
28938 " int\n"
28939 " guestfs_sfdisk_N (guestfs_h *g,\n"
28940 "                   const char *device,\n"
28941 "                   int partnum,\n"
28942 "                   int cyls,\n"
28943 "                   int heads,\n"
28944 "                   int sectors,\n"
28945 "                   const char *line);\n"
28946 "\n"
28947 msgstr ""
28948
28949 #. type: textblock
28950 #: ../src/guestfs-actions.pod:6606
28951 msgid ""
28952 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
28953 "for the cyls/heads/sectors parameters."
28954 msgstr ""
28955
28956 #. type: textblock
28957 #: ../src/guestfs-actions.pod:6609
28958 msgid "See also: C<guestfs_part_add>"
28959 msgstr ""
28960
28961 #. type: =head2
28962 #: ../src/guestfs-actions.pod:6618
28963 msgid "guestfs_sfdisk_disk_geometry"
28964 msgstr ""
28965
28966 #. type: verbatim
28967 #: ../src/guestfs-actions.pod:6620
28968 #, no-wrap
28969 msgid ""
28970 " char *\n"
28971 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
28972 "                               const char *device);\n"
28973 "\n"
28974 msgstr ""
28975
28976 #. type: textblock
28977 #: ../src/guestfs-actions.pod:6624
28978 msgid ""
28979 "This displays the disk geometry of C<device> read from the partition table.  "
28980 "Especially in the case where the underlying block device has been resized, "
28981 "this can be different from the kernel's idea of the geometry (see "
28982 "C<guestfs_sfdisk_kernel_geometry>)."
28983 msgstr ""
28984
28985 #. type: =head2
28986 #: ../src/guestfs-actions.pod:6637
28987 msgid "guestfs_sfdisk_kernel_geometry"
28988 msgstr ""
28989
28990 #. type: verbatim
28991 #: ../src/guestfs-actions.pod:6639
28992 #, no-wrap
28993 msgid ""
28994 " char *\n"
28995 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
28996 "                                 const char *device);\n"
28997 "\n"
28998 msgstr ""
28999
29000 #. type: =head2
29001 #: ../src/guestfs-actions.pod:6653
29002 msgid "guestfs_sfdisk_l"
29003 msgstr ""
29004
29005 #. type: verbatim
29006 #: ../src/guestfs-actions.pod:6655
29007 #, no-wrap
29008 msgid ""
29009 " char *\n"
29010 " guestfs_sfdisk_l (guestfs_h *g,\n"
29011 "                   const char *device);\n"
29012 "\n"
29013 msgstr ""
29014
29015 #. type: textblock
29016 #: ../src/guestfs-actions.pod:6659
29017 msgid ""
29018 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
29019 "call instead."
29020 msgstr ""
29021
29022 #. type: textblock
29023 #: ../src/guestfs-actions.pod:6670
29024 msgid "See also: C<guestfs_part_list>"
29025 msgstr ""
29026
29027 #. type: =head2
29028 #: ../src/guestfs-actions.pod:6677
29029 msgid "guestfs_sh"
29030 msgstr ""
29031
29032 #. type: verbatim
29033 #: ../src/guestfs-actions.pod:6679
29034 #, no-wrap
29035 msgid ""
29036 " char *\n"
29037 " guestfs_sh (guestfs_h *g,\n"
29038 "             const char *command);\n"
29039 "\n"
29040 msgstr ""
29041
29042 #. type: textblock
29043 #: ../src/guestfs-actions.pod:6686
29044 msgid "This is like C<guestfs_command>, but passes the command to:"
29045 msgstr ""
29046
29047 #. type: textblock
29048 #: ../src/guestfs-actions.pod:6694
29049 msgid "All the provisos about C<guestfs_command> apply to this call."
29050 msgstr ""
29051
29052 #. type: =head2
29053 #: ../src/guestfs-actions.pod:6701
29054 msgid "guestfs_sh_lines"
29055 msgstr ""
29056
29057 #. type: verbatim
29058 #: ../src/guestfs-actions.pod:6703
29059 #, no-wrap
29060 msgid ""
29061 " char **\n"
29062 " guestfs_sh_lines (guestfs_h *g,\n"
29063 "                   const char *command);\n"
29064 "\n"
29065 msgstr ""
29066
29067 #. type: textblock
29068 #: ../src/guestfs-actions.pod:6707
29069 msgid ""
29070 "This is the same as C<guestfs_sh>, but splits the result into a list of "
29071 "lines."
29072 msgstr ""
29073
29074 #. type: textblock
29075 #: ../src/guestfs-actions.pod:6710
29076 msgid "See also: C<guestfs_command_lines>"
29077 msgstr ""
29078
29079 #. type: =head2
29080 #: ../src/guestfs-actions.pod:6718
29081 msgid "guestfs_sleep"
29082 msgstr ""
29083
29084 #. type: verbatim
29085 #: ../src/guestfs-actions.pod:6720
29086 #, no-wrap
29087 msgid ""
29088 " int\n"
29089 " guestfs_sleep (guestfs_h *g,\n"
29090 "                int secs);\n"
29091 "\n"
29092 msgstr ""
29093
29094 #. type: textblock
29095 #: ../src/guestfs-actions.pod:6728
29096 msgid "(Added in 1.0.41)"
29097 msgstr ""
29098
29099 #. type: =head2
29100 #: ../src/guestfs-actions.pod:6730 ../src/guestfs-structs.pod:109
29101 msgid "guestfs_stat"
29102 msgstr ""
29103
29104 #. type: verbatim
29105 #: ../src/guestfs-actions.pod:6732
29106 #, no-wrap
29107 msgid ""
29108 " struct guestfs_stat *\n"
29109 " guestfs_stat (guestfs_h *g,\n"
29110 "               const char *path);\n"
29111 "\n"
29112 msgstr ""
29113
29114 #. type: =head2
29115 #: ../src/guestfs-actions.pod:6746 ../src/guestfs-structs.pod:135
29116 msgid "guestfs_statvfs"
29117 msgstr ""
29118
29119 #. type: verbatim
29120 #: ../src/guestfs-actions.pod:6748
29121 #, no-wrap
29122 msgid ""
29123 " struct guestfs_statvfs *\n"
29124 " guestfs_statvfs (guestfs_h *g,\n"
29125 "                  const char *path);\n"
29126 "\n"
29127 msgstr ""
29128
29129 #. type: textblock
29130 #: ../src/guestfs-actions.pod:6758
29131 msgid ""
29132 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
29133 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
29134 msgstr ""
29135
29136 #. type: =head2
29137 #: ../src/guestfs-actions.pod:6764
29138 msgid "guestfs_strings"
29139 msgstr ""
29140
29141 #. type: verbatim
29142 #: ../src/guestfs-actions.pod:6766
29143 #, no-wrap
29144 msgid ""
29145 " char **\n"
29146 " guestfs_strings (guestfs_h *g,\n"
29147 "                  const char *path);\n"
29148 "\n"
29149 msgstr ""
29150
29151 #. type: =head2
29152 #: ../src/guestfs-actions.pod:6782
29153 msgid "guestfs_strings_e"
29154 msgstr ""
29155
29156 #. type: verbatim
29157 #: ../src/guestfs-actions.pod:6784
29158 #, no-wrap
29159 msgid ""
29160 " char **\n"
29161 " guestfs_strings_e (guestfs_h *g,\n"
29162 "                    const char *encoding,\n"
29163 "                    const char *path);\n"
29164 "\n"
29165 msgstr ""
29166
29167 #. type: textblock
29168 #: ../src/guestfs-actions.pod:6789
29169 msgid ""
29170 "This is like the C<guestfs_strings> command, but allows you to specify the "
29171 "encoding of strings that are looked for in the source file C<path>."
29172 msgstr ""
29173
29174 #. type: textblock
29175 #: ../src/guestfs-actions.pod:6799
29176 msgid ""
29177 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
29178 "ISO-8859-X (this is what C<guestfs_strings> uses)."
29179 msgstr ""
29180
29181 #. type: =head2
29182 #: ../src/guestfs-actions.pod:6837
29183 msgid "guestfs_swapoff_device"
29184 msgstr ""
29185
29186 #. type: verbatim
29187 #: ../src/guestfs-actions.pod:6839
29188 #, no-wrap
29189 msgid ""
29190 " int\n"
29191 " guestfs_swapoff_device (guestfs_h *g,\n"
29192 "                         const char *device);\n"
29193 "\n"
29194 msgstr ""
29195
29196 #. type: textblock
29197 #: ../src/guestfs-actions.pod:6843
29198 msgid ""
29199 "This command disables the libguestfs appliance swap device or partition "
29200 "named C<device>.  See C<guestfs_swapon_device>."
29201 msgstr ""
29202
29203 #. type: =head2
29204 #: ../src/guestfs-actions.pod:6851
29205 msgid "guestfs_swapoff_file"
29206 msgstr ""
29207
29208 #. type: verbatim
29209 #: ../src/guestfs-actions.pod:6853
29210 #, no-wrap
29211 msgid ""
29212 " int\n"
29213 " guestfs_swapoff_file (guestfs_h *g,\n"
29214 "                       const char *file);\n"
29215 "\n"
29216 msgstr ""
29217
29218 #. type: =head2
29219 #: ../src/guestfs-actions.pod:6863
29220 msgid "guestfs_swapoff_label"
29221 msgstr ""
29222
29223 #. type: verbatim
29224 #: ../src/guestfs-actions.pod:6865
29225 #, no-wrap
29226 msgid ""
29227 " int\n"
29228 " guestfs_swapoff_label (guestfs_h *g,\n"
29229 "                        const char *label);\n"
29230 "\n"
29231 msgstr ""
29232
29233 #. type: =head2
29234 #: ../src/guestfs-actions.pod:6876
29235 msgid "guestfs_swapoff_uuid"
29236 msgstr ""
29237
29238 #. type: verbatim
29239 #: ../src/guestfs-actions.pod:6878
29240 #, no-wrap
29241 msgid ""
29242 " int\n"
29243 " guestfs_swapoff_uuid (guestfs_h *g,\n"
29244 "                       const char *uuid);\n"
29245 "\n"
29246 msgstr ""
29247
29248 #. type: =head2
29249 #: ../src/guestfs-actions.pod:6889
29250 msgid "guestfs_swapon_device"
29251 msgstr ""
29252
29253 #. type: verbatim
29254 #: ../src/guestfs-actions.pod:6891
29255 #, no-wrap
29256 msgid ""
29257 " int\n"
29258 " guestfs_swapon_device (guestfs_h *g,\n"
29259 "                        const char *device);\n"
29260 "\n"
29261 msgstr ""
29262
29263 #. type: textblock
29264 #: ../src/guestfs-actions.pod:6895
29265 msgid ""
29266 "This command enables the libguestfs appliance to use the swap device or "
29267 "partition named C<device>.  The increased memory is made available for all "
29268 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
29269 msgstr ""
29270
29271 #. type: =head2
29272 #: ../src/guestfs-actions.pod:6911
29273 msgid "guestfs_swapon_file"
29274 msgstr ""
29275
29276 #. type: verbatim
29277 #: ../src/guestfs-actions.pod:6913
29278 #, no-wrap
29279 msgid ""
29280 " int\n"
29281 " guestfs_swapon_file (guestfs_h *g,\n"
29282 "                      const char *file);\n"
29283 "\n"
29284 msgstr ""
29285
29286 #. type: textblock
29287 #: ../src/guestfs-actions.pod:6917
29288 msgid ""
29289 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
29290 "notes."
29291 msgstr ""
29292
29293 #. type: =head2
29294 #: ../src/guestfs-actions.pod:6924
29295 msgid "guestfs_swapon_label"
29296 msgstr ""
29297
29298 #. type: verbatim
29299 #: ../src/guestfs-actions.pod:6926
29300 #, no-wrap
29301 msgid ""
29302 " int\n"
29303 " guestfs_swapon_label (guestfs_h *g,\n"
29304 "                       const char *label);\n"
29305 "\n"
29306 msgstr ""
29307
29308 #. type: textblock
29309 #: ../src/guestfs-actions.pod:6930
29310 msgid ""
29311 "This command enables swap to a labeled swap partition.  See "
29312 "C<guestfs_swapon_device> for other notes."
29313 msgstr ""
29314
29315 #. type: =head2
29316 #: ../src/guestfs-actions.pod:6937
29317 msgid "guestfs_swapon_uuid"
29318 msgstr ""
29319
29320 #. type: verbatim
29321 #: ../src/guestfs-actions.pod:6939
29322 #, no-wrap
29323 msgid ""
29324 " int\n"
29325 " guestfs_swapon_uuid (guestfs_h *g,\n"
29326 "                      const char *uuid);\n"
29327 "\n"
29328 msgstr ""
29329
29330 #. type: textblock
29331 #: ../src/guestfs-actions.pod:6943
29332 msgid ""
29333 "This command enables swap to a swap partition with the given UUID.  See "
29334 "C<guestfs_swapon_device> for other notes."
29335 msgstr ""
29336
29337 #. type: =head2
29338 #: ../src/guestfs-actions.pod:6950
29339 msgid "guestfs_sync"
29340 msgstr ""
29341
29342 #. type: verbatim
29343 #: ../src/guestfs-actions.pod:6952
29344 #, no-wrap
29345 msgid ""
29346 " int\n"
29347 " guestfs_sync (guestfs_h *g);\n"
29348 "\n"
29349 msgstr ""
29350
29351 #. type: =head2
29352 #: ../src/guestfs-actions.pod:6965
29353 msgid "guestfs_tail"
29354 msgstr ""
29355
29356 #. type: verbatim
29357 #: ../src/guestfs-actions.pod:6967
29358 #, no-wrap
29359 msgid ""
29360 " char **\n"
29361 " guestfs_tail (guestfs_h *g,\n"
29362 "               const char *path);\n"
29363 "\n"
29364 msgstr ""
29365
29366 #. type: =head2
29367 #: ../src/guestfs-actions.pod:6983
29368 msgid "guestfs_tail_n"
29369 msgstr ""
29370
29371 #. type: verbatim
29372 #: ../src/guestfs-actions.pod:6985
29373 #, no-wrap
29374 msgid ""
29375 " char **\n"
29376 " guestfs_tail_n (guestfs_h *g,\n"
29377 "                 int nrlines,\n"
29378 "                 const char *path);\n"
29379 "\n"
29380 msgstr ""
29381
29382 #. type: =head2
29383 #: ../src/guestfs-actions.pod:7007
29384 msgid "guestfs_tar_in"
29385 msgstr ""
29386
29387 #. type: verbatim
29388 #: ../src/guestfs-actions.pod:7009
29389 #, no-wrap
29390 msgid ""
29391 " int\n"
29392 " guestfs_tar_in (guestfs_h *g,\n"
29393 "                 const char *tarfile,\n"
29394 "                 const char *directory);\n"
29395 "\n"
29396 msgstr ""
29397
29398 #. type: textblock
29399 #: ../src/guestfs-actions.pod:7017
29400 msgid ""
29401 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
29402 msgstr ""
29403
29404 #. type: textblock
29405 #: ../src/guestfs-actions.pod:7022 ../src/guestfs-actions.pod:7039
29406 #: ../src/guestfs-actions.pod:7055 ../src/guestfs-actions.pod:7071
29407 msgid "(Added in 1.0.3)"
29408 msgstr ""
29409
29410 #. type: =head2
29411 #: ../src/guestfs-actions.pod:7024
29412 msgid "guestfs_tar_out"
29413 msgstr ""
29414
29415 #. type: verbatim
29416 #: ../src/guestfs-actions.pod:7026
29417 #, no-wrap
29418 msgid ""
29419 " int\n"
29420 " guestfs_tar_out (guestfs_h *g,\n"
29421 "                  const char *directory,\n"
29422 "                  const char *tarfile);\n"
29423 "\n"
29424 msgstr ""
29425
29426 #. type: textblock
29427 #: ../src/guestfs-actions.pod:7034
29428 msgid ""
29429 "To download a compressed tarball, use C<guestfs_tgz_out> or "
29430 "C<guestfs_txz_out>."
29431 msgstr ""
29432
29433 #. type: =head2
29434 #: ../src/guestfs-actions.pod:7041
29435 msgid "guestfs_tgz_in"
29436 msgstr ""
29437
29438 #. type: verbatim
29439 #: ../src/guestfs-actions.pod:7043
29440 #, no-wrap
29441 msgid ""
29442 " int\n"
29443 " guestfs_tgz_in (guestfs_h *g,\n"
29444 "                 const char *tarball,\n"
29445 "                 const char *directory);\n"
29446 "\n"
29447 msgstr ""
29448
29449 #. type: textblock
29450 #: ../src/guestfs-actions.pod:7051
29451 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
29452 msgstr ""
29453
29454 #. type: =head2
29455 #: ../src/guestfs-actions.pod:7057
29456 msgid "guestfs_tgz_out"
29457 msgstr ""
29458
29459 #. type: verbatim
29460 #: ../src/guestfs-actions.pod:7059
29461 #, no-wrap
29462 msgid ""
29463 " int\n"
29464 " guestfs_tgz_out (guestfs_h *g,\n"
29465 "                  const char *directory,\n"
29466 "                  const char *tarball);\n"
29467 "\n"
29468 msgstr ""
29469
29470 #. type: textblock
29471 #: ../src/guestfs-actions.pod:7067
29472 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
29473 msgstr ""
29474
29475 #. type: =head2
29476 #: ../src/guestfs-actions.pod:7073
29477 msgid "guestfs_touch"
29478 msgstr ""
29479
29480 #. type: verbatim
29481 #: ../src/guestfs-actions.pod:7075
29482 #, no-wrap
29483 msgid ""
29484 " int\n"
29485 " guestfs_touch (guestfs_h *g,\n"
29486 "                const char *path);\n"
29487 "\n"
29488 msgstr ""
29489
29490 #. type: =head2
29491 #: ../src/guestfs-actions.pod:7090
29492 msgid "guestfs_truncate"
29493 msgstr ""
29494
29495 #. type: verbatim
29496 #: ../src/guestfs-actions.pod:7092
29497 #, no-wrap
29498 msgid ""
29499 " int\n"
29500 " guestfs_truncate (guestfs_h *g,\n"
29501 "                   const char *path);\n"
29502 "\n"
29503 msgstr ""
29504
29505 #. type: =head2
29506 #: ../src/guestfs-actions.pod:7103
29507 msgid "guestfs_truncate_size"
29508 msgstr ""
29509
29510 #. type: verbatim
29511 #: ../src/guestfs-actions.pod:7105
29512 #, no-wrap
29513 msgid ""
29514 " int\n"
29515 " guestfs_truncate_size (guestfs_h *g,\n"
29516 "                        const char *path,\n"
29517 "                        int64_t size);\n"
29518 "\n"
29519 msgstr ""
29520
29521 #. type: textblock
29522 #: ../src/guestfs-actions.pod:7113
29523 msgid ""
29524 "If the current file size is less than C<size> then the file is extended to "
29525 "the required size with zero bytes.  This creates a sparse file (ie. disk "
29526 "blocks are not allocated for the file until you write to it).  To create a "
29527 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
29528 msgstr ""
29529
29530 #. type: =head2
29531 #: ../src/guestfs-actions.pod:7123
29532 msgid "guestfs_tune2fs_l"
29533 msgstr ""
29534
29535 #. type: verbatim
29536 #: ../src/guestfs-actions.pod:7125
29537 #, no-wrap
29538 msgid ""
29539 " char **\n"
29540 " guestfs_tune2fs_l (guestfs_h *g,\n"
29541 "                    const char *device);\n"
29542 "\n"
29543 msgstr ""
29544
29545 #. type: =head2
29546 #: ../src/guestfs-actions.pod:7145
29547 msgid "guestfs_txz_in"
29548 msgstr ""
29549
29550 #. type: verbatim
29551 #: ../src/guestfs-actions.pod:7147
29552 #, no-wrap
29553 msgid ""
29554 " int\n"
29555 " guestfs_txz_in (guestfs_h *g,\n"
29556 "                 const char *tarball,\n"
29557 "                 const char *directory);\n"
29558 "\n"
29559 msgstr ""
29560
29561 #. type: =head2
29562 #: ../src/guestfs-actions.pod:7159
29563 msgid "guestfs_txz_out"
29564 msgstr ""
29565
29566 #. type: verbatim
29567 #: ../src/guestfs-actions.pod:7161
29568 #, no-wrap
29569 msgid ""
29570 " int\n"
29571 " guestfs_txz_out (guestfs_h *g,\n"
29572 "                  const char *directory,\n"
29573 "                  const char *tarball);\n"
29574 "\n"
29575 msgstr ""
29576
29577 #. type: =head2
29578 #: ../src/guestfs-actions.pod:7173
29579 msgid "guestfs_umask"
29580 msgstr ""
29581
29582 #. type: verbatim
29583 #: ../src/guestfs-actions.pod:7175
29584 #, no-wrap
29585 msgid ""
29586 " int\n"
29587 " guestfs_umask (guestfs_h *g,\n"
29588 "                int mask);\n"
29589 "\n"
29590 msgstr ""
29591
29592 #. type: textblock
29593 #: ../src/guestfs-actions.pod:7191
29594 msgid ""
29595 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
29596 "C<guestfs_mkdir>."
29597 msgstr ""
29598
29599 #. type: =head2
29600 #: ../src/guestfs-actions.pod:7200
29601 msgid "guestfs_umount"
29602 msgstr ""
29603
29604 #. type: verbatim
29605 #: ../src/guestfs-actions.pod:7202
29606 #, no-wrap
29607 msgid ""
29608 " int\n"
29609 " guestfs_umount (guestfs_h *g,\n"
29610 "                 const char *pathordevice);\n"
29611 "\n"
29612 msgstr ""
29613
29614 #. type: =head2
29615 #: ../src/guestfs-actions.pod:7214
29616 msgid "guestfs_umount_all"
29617 msgstr ""
29618
29619 #. type: verbatim
29620 #: ../src/guestfs-actions.pod:7216
29621 #, no-wrap
29622 msgid ""
29623 " int\n"
29624 " guestfs_umount_all (guestfs_h *g);\n"
29625 "\n"
29626 msgstr ""
29627
29628 #. type: =head2
29629 #: ../src/guestfs-actions.pod:7227
29630 msgid "guestfs_upload"
29631 msgstr ""
29632
29633 #. type: verbatim
29634 #: ../src/guestfs-actions.pod:7229
29635 #, no-wrap
29636 msgid ""
29637 " int\n"
29638 " guestfs_upload (guestfs_h *g,\n"
29639 "                 const char *filename,\n"
29640 "                 const char *remotefilename);\n"
29641 "\n"
29642 msgstr ""
29643
29644 #. type: textblock
29645 #: ../src/guestfs-actions.pod:7239
29646 msgid "See also C<guestfs_download>."
29647 msgstr ""
29648
29649 #. type: =head2
29650 #: ../src/guestfs-actions.pod:7250
29651 msgid "guestfs_upload_offset"
29652 msgstr ""
29653
29654 #. type: verbatim
29655 #: ../src/guestfs-actions.pod:7252
29656 #, no-wrap
29657 msgid ""
29658 " int\n"
29659 " guestfs_upload_offset (guestfs_h *g,\n"
29660 "                        const char *filename,\n"
29661 "                        const char *remotefilename,\n"
29662 "                        int64_t offset);\n"
29663 "\n"
29664 msgstr ""
29665
29666 #. type: textblock
29667 #: ../src/guestfs-actions.pod:7268
29668 msgid ""
29669 "Note that there is no limit on the amount of data that can be uploaded with "
29670 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
29671 "full amount unless an error occurs."
29672 msgstr ""
29673
29674 #. type: textblock
29675 #: ../src/guestfs-actions.pod:7273
29676 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
29677 msgstr ""
29678
29679 #. type: =head2
29680 #: ../src/guestfs-actions.pod:7284
29681 msgid "guestfs_utimens"
29682 msgstr ""
29683
29684 #. type: verbatim
29685 #: ../src/guestfs-actions.pod:7286
29686 #, no-wrap
29687 msgid ""
29688 " int\n"
29689 " guestfs_utimens (guestfs_h *g,\n"
29690 "                  const char *path,\n"
29691 "                  int64_t atsecs,\n"
29692 "                  int64_t atnsecs,\n"
29693 "                  int64_t mtsecs,\n"
29694 "                  int64_t mtnsecs);\n"
29695 "\n"
29696 msgstr ""
29697
29698 #. type: =head2
29699 #: ../src/guestfs-actions.pod:7315 ../src/guestfs-structs.pod:175
29700 msgid "guestfs_version"
29701 msgstr ""
29702
29703 #. type: verbatim
29704 #: ../src/guestfs-actions.pod:7317
29705 #, no-wrap
29706 msgid ""
29707 " struct guestfs_version *\n"
29708 " guestfs_version (guestfs_h *g);\n"
29709 "\n"
29710 msgstr ""
29711
29712 #. type: textblock
29713 #: ../src/guestfs-actions.pod:7345
29714 msgid ""
29715 "I<Note:> Don't use this call to test for availability of features.  In "
29716 "enterprise distributions we backport features from later versions into "
29717 "earlier versions, making this an unreliable way to test for features.  Use "
29718 "C<guestfs_available> instead."
29719 msgstr ""
29720
29721 #. type: textblock
29722 #: ../src/guestfs-actions.pod:7351
29723 msgid ""
29724 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
29725 "error.  I<The caller must call C<guestfs_free_version> after use>."
29726 msgstr ""
29727
29728 #. type: textblock
29729 #: ../src/guestfs-actions.pod:7355
29730 msgid "(Added in 1.0.58)"
29731 msgstr ""
29732
29733 #. type: =head2
29734 #: ../src/guestfs-actions.pod:7357
29735 msgid "guestfs_vfs_label"
29736 msgstr ""
29737
29738 #. type: verbatim
29739 #: ../src/guestfs-actions.pod:7359
29740 #, no-wrap
29741 msgid ""
29742 " char *\n"
29743 " guestfs_vfs_label (guestfs_h *g,\n"
29744 "                    const char *device);\n"
29745 "\n"
29746 msgstr ""
29747
29748 #. type: textblock
29749 #: ../src/guestfs-actions.pod:7368
29750 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
29751 msgstr ""
29752
29753 #. type: textblock
29754 #: ../src/guestfs-actions.pod:7373 ../src/guestfs-actions.pod:7410
29755 msgid "(Added in 1.3.18)"
29756 msgstr ""
29757
29758 #. type: =head2
29759 #: ../src/guestfs-actions.pod:7375
29760 msgid "guestfs_vfs_type"
29761 msgstr ""
29762
29763 #. type: verbatim
29764 #: ../src/guestfs-actions.pod:7377
29765 #, no-wrap
29766 msgid ""
29767 " char *\n"
29768 " guestfs_vfs_type (guestfs_h *g,\n"
29769 "                   const char *device);\n"
29770 "\n"
29771 msgstr ""
29772
29773 #. type: =head2
29774 #: ../src/guestfs-actions.pod:7394
29775 msgid "guestfs_vfs_uuid"
29776 msgstr ""
29777
29778 #. type: verbatim
29779 #: ../src/guestfs-actions.pod:7396
29780 #, no-wrap
29781 msgid ""
29782 " char *\n"
29783 " guestfs_vfs_uuid (guestfs_h *g,\n"
29784 "                   const char *device);\n"
29785 "\n"
29786 msgstr ""
29787
29788 #. type: textblock
29789 #: ../src/guestfs-actions.pod:7405
29790 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
29791 msgstr ""
29792
29793 #. type: =head2
29794 #: ../src/guestfs-actions.pod:7412
29795 msgid "guestfs_vg_activate"
29796 msgstr ""
29797
29798 #. type: verbatim
29799 #: ../src/guestfs-actions.pod:7414
29800 #, no-wrap
29801 msgid ""
29802 " int\n"
29803 " guestfs_vg_activate (guestfs_h *g,\n"
29804 "                      int activate,\n"
29805 "                      char *const *volgroups);\n"
29806 "\n"
29807 msgstr ""
29808
29809 #. type: =head2
29810 #: ../src/guestfs-actions.pod:7431
29811 msgid "guestfs_vg_activate_all"
29812 msgstr ""
29813
29814 #. type: verbatim
29815 #: ../src/guestfs-actions.pod:7433
29816 #, no-wrap
29817 msgid ""
29818 " int\n"
29819 " guestfs_vg_activate_all (guestfs_h *g,\n"
29820 "                          int activate);\n"
29821 "\n"
29822 msgstr ""
29823
29824 #. type: =head2
29825 #: ../src/guestfs-actions.pod:7446
29826 msgid "guestfs_vgcreate"
29827 msgstr ""
29828
29829 #. type: verbatim
29830 #: ../src/guestfs-actions.pod:7448
29831 #, no-wrap
29832 msgid ""
29833 " int\n"
29834 " guestfs_vgcreate (guestfs_h *g,\n"
29835 "                   const char *volgroup,\n"
29836 "                   char *const *physvols);\n"
29837 "\n"
29838 msgstr ""
29839
29840 #. type: =head2
29841 #: ../src/guestfs-actions.pod:7460
29842 msgid "guestfs_vglvuuids"
29843 msgstr ""
29844
29845 #. type: verbatim
29846 #: ../src/guestfs-actions.pod:7462
29847 #, no-wrap
29848 msgid ""
29849 " char **\n"
29850 " guestfs_vglvuuids (guestfs_h *g,\n"
29851 "                    const char *vgname);\n"
29852 "\n"
29853 msgstr ""
29854
29855 #. type: textblock
29856 #: ../src/guestfs-actions.pod:7469
29857 msgid ""
29858 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
29859 "associate logical volumes and volume groups."
29860 msgstr ""
29861
29862 #. type: textblock
29863 #: ../src/guestfs-actions.pod:7472
29864 msgid "See also C<guestfs_vgpvuuids>."
29865 msgstr ""
29866
29867 #. type: =head2
29868 #: ../src/guestfs-actions.pod:7480
29869 msgid "guestfs_vgpvuuids"
29870 msgstr ""
29871
29872 #. type: verbatim
29873 #: ../src/guestfs-actions.pod:7482
29874 #, no-wrap
29875 msgid ""
29876 " char **\n"
29877 " guestfs_vgpvuuids (guestfs_h *g,\n"
29878 "                    const char *vgname);\n"
29879 "\n"
29880 msgstr ""
29881
29882 #. type: textblock
29883 #: ../src/guestfs-actions.pod:7489
29884 msgid ""
29885 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
29886 "associate physical volumes and volume groups."
29887 msgstr ""
29888
29889 #. type: textblock
29890 #: ../src/guestfs-actions.pod:7492
29891 msgid "See also C<guestfs_vglvuuids>."
29892 msgstr ""
29893
29894 #. type: =head2
29895 #: ../src/guestfs-actions.pod:7500
29896 msgid "guestfs_vgremove"
29897 msgstr ""
29898
29899 #. type: verbatim
29900 #: ../src/guestfs-actions.pod:7502
29901 #, no-wrap
29902 msgid ""
29903 " int\n"
29904 " guestfs_vgremove (guestfs_h *g,\n"
29905 "                   const char *vgname);\n"
29906 "\n"
29907 msgstr ""
29908
29909 #. type: =head2
29910 #: ../src/guestfs-actions.pod:7515
29911 msgid "guestfs_vgrename"
29912 msgstr ""
29913
29914 #. type: verbatim
29915 #: ../src/guestfs-actions.pod:7517
29916 #, no-wrap
29917 msgid ""
29918 " int\n"
29919 " guestfs_vgrename (guestfs_h *g,\n"
29920 "                   const char *volgroup,\n"
29921 "                   const char *newvolgroup);\n"
29922 "\n"
29923 msgstr ""
29924
29925 #. type: =head2
29926 #: ../src/guestfs-actions.pod:7528
29927 msgid "guestfs_vgs"
29928 msgstr ""
29929
29930 #. type: verbatim
29931 #: ../src/guestfs-actions.pod:7530
29932 #, no-wrap
29933 msgid ""
29934 " char **\n"
29935 " guestfs_vgs (guestfs_h *g);\n"
29936 "\n"
29937 msgstr ""
29938
29939 #. type: textblock
29940 #: ../src/guestfs-actions.pod:7539
29941 msgid "See also C<guestfs_vgs_full>."
29942 msgstr ""
29943
29944 #. type: =head2
29945 #: ../src/guestfs-actions.pod:7547
29946 msgid "guestfs_vgs_full"
29947 msgstr ""
29948
29949 #. type: verbatim
29950 #: ../src/guestfs-actions.pod:7549
29951 #, no-wrap
29952 msgid ""
29953 " struct guestfs_lvm_vg_list *\n"
29954 " guestfs_vgs_full (guestfs_h *g);\n"
29955 "\n"
29956 msgstr ""
29957
29958 #. type: textblock
29959 #: ../src/guestfs-actions.pod:7555
29960 msgid ""
29961 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
29962 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
29963 msgstr ""
29964
29965 #. type: =head2
29966 #: ../src/guestfs-actions.pod:7561
29967 msgid "guestfs_vgscan"
29968 msgstr ""
29969
29970 #. type: verbatim
29971 #: ../src/guestfs-actions.pod:7563
29972 #, no-wrap
29973 msgid ""
29974 " int\n"
29975 " guestfs_vgscan (guestfs_h *g);\n"
29976 "\n"
29977 msgstr ""
29978
29979 #. type: =head2
29980 #: ../src/guestfs-actions.pod:7573
29981 msgid "guestfs_vguuid"
29982 msgstr ""
29983
29984 #. type: verbatim
29985 #: ../src/guestfs-actions.pod:7575
29986 #, no-wrap
29987 msgid ""
29988 " char *\n"
29989 " guestfs_vguuid (guestfs_h *g,\n"
29990 "                 const char *vgname);\n"
29991 "\n"
29992 msgstr ""
29993
29994 #. type: =head2
29995 #: ../src/guestfs-actions.pod:7586
29996 msgid "guestfs_wait_ready"
29997 msgstr ""
29998
29999 #. type: verbatim
30000 #: ../src/guestfs-actions.pod:7588
30001 #, no-wrap
30002 msgid ""
30003 " int\n"
30004 " guestfs_wait_ready (guestfs_h *g);\n"
30005 "\n"
30006 msgstr ""
30007
30008 #. type: textblock
30009 #: ../src/guestfs-actions.pod:7591
30010 msgid ""
30011 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
30012 "instead."
30013 msgstr ""
30014
30015 #. type: textblock
30016 #: ../src/guestfs-actions.pod:7598
30017 msgid "This function is a no op."
30018 msgstr ""
30019
30020 #. type: textblock
30021 #: ../src/guestfs-actions.pod:7600
30022 msgid ""
30023 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
30024 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
30025 "is no longer necessary because C<guestfs_launch> now does the waiting."
30026 msgstr ""
30027
30028 #. type: textblock
30029 #: ../src/guestfs-actions.pod:7605
30030 msgid ""
30031 "If you see any calls to this function in code then you can just remove them, "
30032 "unless you want to retain compatibility with older versions of the API."
30033 msgstr ""
30034
30035 #. type: =head2
30036 #: ../src/guestfs-actions.pod:7613
30037 msgid "guestfs_wc_c"
30038 msgstr ""
30039
30040 #. type: verbatim
30041 #: ../src/guestfs-actions.pod:7615
30042 #, no-wrap
30043 msgid ""
30044 " int\n"
30045 " guestfs_wc_c (guestfs_h *g,\n"
30046 "               const char *path);\n"
30047 "\n"
30048 msgstr ""
30049
30050 #. type: =head2
30051 #: ../src/guestfs-actions.pod:7626
30052 msgid "guestfs_wc_l"
30053 msgstr ""
30054
30055 #. type: verbatim
30056 #: ../src/guestfs-actions.pod:7628
30057 #, no-wrap
30058 msgid ""
30059 " int\n"
30060 " guestfs_wc_l (guestfs_h *g,\n"
30061 "               const char *path);\n"
30062 "\n"
30063 msgstr ""
30064
30065 #. type: =head2
30066 #: ../src/guestfs-actions.pod:7639
30067 msgid "guestfs_wc_w"
30068 msgstr ""
30069
30070 #. type: verbatim
30071 #: ../src/guestfs-actions.pod:7641
30072 #, no-wrap
30073 msgid ""
30074 " int\n"
30075 " guestfs_wc_w (guestfs_h *g,\n"
30076 "               const char *path);\n"
30077 "\n"
30078 msgstr ""
30079
30080 #. type: =head2
30081 #: ../src/guestfs-actions.pod:7652
30082 msgid "guestfs_write"
30083 msgstr ""
30084
30085 #. type: verbatim
30086 #: ../src/guestfs-actions.pod:7654
30087 #, no-wrap
30088 msgid ""
30089 " int\n"
30090 " guestfs_write (guestfs_h *g,\n"
30091 "                const char *path,\n"
30092 "                const char *content,\n"
30093 "                size_t content_size);\n"
30094 "\n"
30095 msgstr ""
30096
30097 #. type: textblock
30098 #: ../src/guestfs-actions.pod:7663
30099 msgid "See also C<guestfs_write_append>."
30100 msgstr ""
30101
30102 #. type: =head2
30103 #: ../src/guestfs-actions.pod:7672
30104 msgid "guestfs_write_append"
30105 msgstr ""
30106
30107 #. type: verbatim
30108 #: ../src/guestfs-actions.pod:7674
30109 #, no-wrap
30110 msgid ""
30111 " int\n"
30112 " guestfs_write_append (guestfs_h *g,\n"
30113 "                       const char *path,\n"
30114 "                       const char *content,\n"
30115 "                       size_t content_size);\n"
30116 "\n"
30117 msgstr ""
30118
30119 #. type: textblock
30120 #: ../src/guestfs-actions.pod:7683
30121 msgid "See also C<guestfs_write>."
30122 msgstr ""
30123
30124 #. type: =head2
30125 #: ../src/guestfs-actions.pod:7692
30126 msgid "guestfs_write_file"
30127 msgstr ""
30128
30129 #. type: verbatim
30130 #: ../src/guestfs-actions.pod:7694
30131 #, no-wrap
30132 msgid ""
30133 " int\n"
30134 " guestfs_write_file (guestfs_h *g,\n"
30135 "                     const char *path,\n"
30136 "                     const char *content,\n"
30137 "                     int size);\n"
30138 "\n"
30139 msgstr ""
30140
30141 #. type: textblock
30142 #: ../src/guestfs-actions.pod:7700
30143 msgid ""
30144 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
30145 "instead."
30146 msgstr ""
30147
30148 #. type: =head2
30149 #: ../src/guestfs-actions.pod:7725
30150 msgid "guestfs_zegrep"
30151 msgstr ""
30152
30153 #. type: verbatim
30154 #: ../src/guestfs-actions.pod:7727
30155 #, no-wrap
30156 msgid ""
30157 " char **\n"
30158 " guestfs_zegrep (guestfs_h *g,\n"
30159 "                 const char *regex,\n"
30160 "                 const char *path);\n"
30161 "\n"
30162 msgstr ""
30163
30164 #. type: =head2
30165 #: ../src/guestfs-actions.pod:7744
30166 msgid "guestfs_zegrepi"
30167 msgstr ""
30168
30169 #. type: verbatim
30170 #: ../src/guestfs-actions.pod:7746
30171 #, no-wrap
30172 msgid ""
30173 " char **\n"
30174 " guestfs_zegrepi (guestfs_h *g,\n"
30175 "                  const char *regex,\n"
30176 "                  const char *path);\n"
30177 "\n"
30178 msgstr ""
30179
30180 #. type: =head2
30181 #: ../src/guestfs-actions.pod:7763
30182 msgid "guestfs_zero"
30183 msgstr ""
30184
30185 #. type: verbatim
30186 #: ../src/guestfs-actions.pod:7765
30187 #, no-wrap
30188 msgid ""
30189 " int\n"
30190 " guestfs_zero (guestfs_h *g,\n"
30191 "               const char *device);\n"
30192 "\n"
30193 msgstr ""
30194
30195 #. type: textblock
30196 #: ../src/guestfs-actions.pod:7779
30197 msgid ""
30198 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
30199 "C<guestfs_is_zero_device>"
30200 msgstr ""
30201
30202 #. type: =head2
30203 #: ../src/guestfs-actions.pod:7791
30204 msgid "guestfs_zero_device"
30205 msgstr ""
30206
30207 #. type: verbatim
30208 #: ../src/guestfs-actions.pod:7793
30209 #, no-wrap
30210 msgid ""
30211 " int\n"
30212 " guestfs_zero_device (guestfs_h *g,\n"
30213 "                      const char *device);\n"
30214 "\n"
30215 msgstr ""
30216
30217 #. type: textblock
30218 #: ../src/guestfs-actions.pod:7797
30219 msgid ""
30220 "This command writes zeroes over the entire C<device>.  Compare with "
30221 "C<guestfs_zero> which just zeroes the first few blocks of a device."
30222 msgstr ""
30223
30224 #. type: textblock
30225 #: ../src/guestfs-actions.pod:7815
30226 msgid "(Added in 1.3.1)"
30227 msgstr ""
30228
30229 #. type: =head2
30230 #: ../src/guestfs-actions.pod:7817
30231 msgid "guestfs_zerofree"
30232 msgstr ""
30233
30234 #. type: verbatim
30235 #: ../src/guestfs-actions.pod:7819
30236 #, no-wrap
30237 msgid ""
30238 " int\n"
30239 " guestfs_zerofree (guestfs_h *g,\n"
30240 "                   const char *device);\n"
30241 "\n"
30242 msgstr ""
30243
30244 #. type: =head2
30245 #: ../src/guestfs-actions.pod:7838
30246 msgid "guestfs_zfgrep"
30247 msgstr ""
30248
30249 #. type: verbatim
30250 #: ../src/guestfs-actions.pod:7840
30251 #, no-wrap
30252 msgid ""
30253 " char **\n"
30254 " guestfs_zfgrep (guestfs_h *g,\n"
30255 "                 const char *pattern,\n"
30256 "                 const char *path);\n"
30257 "\n"
30258 msgstr ""
30259
30260 #. type: =head2
30261 #: ../src/guestfs-actions.pod:7857
30262 msgid "guestfs_zfgrepi"
30263 msgstr ""
30264
30265 #. type: verbatim
30266 #: ../src/guestfs-actions.pod:7859
30267 #, no-wrap
30268 msgid ""
30269 " char **\n"
30270 " guestfs_zfgrepi (guestfs_h *g,\n"
30271 "                  const char *pattern,\n"
30272 "                  const char *path);\n"
30273 "\n"
30274 msgstr ""
30275
30276 #. type: =head2
30277 #: ../src/guestfs-actions.pod:7876
30278 msgid "guestfs_zfile"
30279 msgstr ""
30280
30281 #. type: verbatim
30282 #: ../src/guestfs-actions.pod:7878
30283 #, no-wrap
30284 msgid ""
30285 " char *\n"
30286 " guestfs_zfile (guestfs_h *g,\n"
30287 "                const char *meth,\n"
30288 "                const char *path);\n"
30289 "\n"
30290 msgstr ""
30291
30292 #. type: textblock
30293 #: ../src/guestfs-actions.pod:7883
30294 msgid ""
30295 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
30296 "instead."
30297 msgstr ""
30298
30299 #. type: textblock
30300 #: ../src/guestfs-actions.pod:7895
30301 msgid ""
30302 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
30303 "files."
30304 msgstr ""
30305
30306 #. type: =head2
30307 #: ../src/guestfs-actions.pod:7903
30308 msgid "guestfs_zgrep"
30309 msgstr ""
30310
30311 #. type: verbatim
30312 #: ../src/guestfs-actions.pod:7905
30313 #, no-wrap
30314 msgid ""
30315 " char **\n"
30316 " guestfs_zgrep (guestfs_h *g,\n"
30317 "                const char *regex,\n"
30318 "                const char *path);\n"
30319 "\n"
30320 msgstr ""
30321
30322 #. type: =head2
30323 #: ../src/guestfs-actions.pod:7922
30324 msgid "guestfs_zgrepi"
30325 msgstr ""
30326
30327 #. type: verbatim
30328 #: ../src/guestfs-actions.pod:7924
30329 #, no-wrap
30330 msgid ""
30331 " char **\n"
30332 " guestfs_zgrepi (guestfs_h *g,\n"
30333 "                 const char *regex,\n"
30334 "                 const char *path);\n"
30335 "\n"
30336 msgstr ""
30337
30338 #. type: =item
30339 #: ../src/guestfs-availability.pod:3
30340 msgid "B<augeas>"
30341 msgstr ""
30342
30343 #. type: textblock
30344 #: ../src/guestfs-availability.pod:5
30345 msgid ""
30346 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
30347 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
30348 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
30349 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
30350 "L</guestfs_aug_save> L</guestfs_aug_set>"
30351 msgstr ""
30352
30353 #. type: =item
30354 #: ../src/guestfs-availability.pod:21
30355 msgid "B<btrfs>"
30356 msgstr ""
30357
30358 #. type: textblock
30359 #: ../src/guestfs-availability.pod:23
30360 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
30361 msgstr ""
30362
30363 #. type: =item
30364 #: ../src/guestfs-availability.pod:26
30365 msgid "B<inotify>"
30366 msgstr ""
30367
30368 #. type: textblock
30369 #: ../src/guestfs-availability.pod:28
30370 msgid ""
30371 "The following functions: L</guestfs_inotify_add_watch> L</"
30372 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
30373 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
30374 msgstr ""
30375
30376 #. type: =item
30377 #: ../src/guestfs-availability.pod:36
30378 msgid "B<linuxfsuuid>"
30379 msgstr ""
30380
30381 #. type: textblock
30382 #: ../src/guestfs-availability.pod:38
30383 msgid ""
30384 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
30385 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
30386 msgstr ""
30387
30388 #. type: =item
30389 #: ../src/guestfs-availability.pod:45
30390 msgid "B<linuxmodules>"
30391 msgstr ""
30392
30393 #. type: textblock
30394 #: ../src/guestfs-availability.pod:47
30395 msgid "The following functions: L</guestfs_modprobe>"
30396 msgstr ""
30397
30398 #. type: =item
30399 #: ../src/guestfs-availability.pod:50
30400 msgid "B<linuxxattrs>"
30401 msgstr ""
30402
30403 #. type: textblock
30404 #: ../src/guestfs-availability.pod:52
30405 msgid ""
30406 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
30407 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
30408 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
30409 "guestfs_setxattr>"
30410 msgstr ""
30411
30412 #. type: =item
30413 #: ../src/guestfs-availability.pod:63
30414 msgid "B<luks>"
30415 msgstr ""
30416
30417 #. type: textblock
30418 #: ../src/guestfs-availability.pod:65
30419 msgid ""
30420 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
30421 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
30422 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
30423 msgstr ""
30424
30425 #. type: =item
30426 #: ../src/guestfs-availability.pod:74
30427 msgid "B<lvm2>"
30428 msgstr ""
30429
30430 #. type: textblock
30431 #: ../src/guestfs-availability.pod:76
30432 msgid ""
30433 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
30434 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
30435 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
30436 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
30437 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
30438 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
30439 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
30440 msgstr ""
30441
30442 #. type: =item
30443 #: ../src/guestfs-availability.pod:99
30444 msgid "B<mknod>"
30445 msgstr ""
30446
30447 #. type: textblock
30448 #: ../src/guestfs-availability.pod:101
30449 msgid ""
30450 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
30451 "guestfs_mknod_b> L</guestfs_mknod_c>"
30452 msgstr ""
30453
30454 #. type: =item
30455 #: ../src/guestfs-availability.pod:107
30456 msgid "B<ntfs3g>"
30457 msgstr ""
30458
30459 #. type: textblock
30460 #: ../src/guestfs-availability.pod:109
30461 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
30462 msgstr ""
30463
30464 #. type: =item
30465 #: ../src/guestfs-availability.pod:112
30466 msgid "B<ntfsprogs>"
30467 msgstr ""
30468
30469 #. type: textblock
30470 #: ../src/guestfs-availability.pod:114
30471 msgid ""
30472 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
30473 "L</guestfs_ntfsresize_size>"
30474 msgstr ""
30475
30476 #. type: =item
30477 #: ../src/guestfs-availability.pod:119
30478 msgid "B<realpath>"
30479 msgstr ""
30480
30481 #. type: textblock
30482 #: ../src/guestfs-availability.pod:121
30483 msgid "The following functions: L</guestfs_realpath>"
30484 msgstr ""
30485
30486 #. type: =item
30487 #: ../src/guestfs-availability.pod:124
30488 msgid "B<scrub>"
30489 msgstr ""
30490
30491 #. type: textblock
30492 #: ../src/guestfs-availability.pod:126
30493 msgid ""
30494 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
30495 "guestfs_scrub_freespace>"
30496 msgstr ""
30497
30498 #. type: =item
30499 #: ../src/guestfs-availability.pod:131
30500 msgid "B<selinux>"
30501 msgstr ""
30502
30503 #. type: textblock
30504 #: ../src/guestfs-availability.pod:133
30505 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
30506 msgstr ""
30507
30508 #. type: =item
30509 #: ../src/guestfs-availability.pod:137
30510 msgid "B<xz>"
30511 msgstr ""
30512
30513 #. type: textblock
30514 #: ../src/guestfs-availability.pod:139
30515 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
30516 msgstr ""
30517
30518 #. type: =item
30519 #: ../src/guestfs-availability.pod:143
30520 msgid "B<zerofree>"
30521 msgstr ""
30522
30523 #. type: textblock
30524 #: ../src/guestfs-availability.pod:145
30525 msgid "The following functions: L</guestfs_zerofree>"
30526 msgstr ""
30527
30528 #. type: =head2
30529 #: ../src/guestfs-structs.pod:1
30530 msgid "guestfs_int_bool"
30531 msgstr ""
30532
30533 #. type: verbatim
30534 #: ../src/guestfs-structs.pod:3
30535 #, no-wrap
30536 msgid ""
30537 " struct guestfs_int_bool {\n"
30538 "   int32_t i;\n"
30539 "   int32_t b;\n"
30540 " };\n"
30541 " \n"
30542 msgstr ""
30543
30544 #. type: verbatim
30545 #: ../src/guestfs-structs.pod:8
30546 #, no-wrap
30547 msgid ""
30548 " struct guestfs_int_bool_list {\n"
30549 "   uint32_t len; /* Number of elements in list. */\n"
30550 "   struct guestfs_int_bool *val; /* Elements. */\n"
30551 " };\n"
30552 " \n"
30553 msgstr ""
30554
30555 #. type: verbatim
30556 #: ../src/guestfs-structs.pod:13
30557 #, no-wrap
30558 msgid ""
30559 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
30560 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
30561 "\n"
30562 msgstr ""
30563
30564 #. type: =head2
30565 #: ../src/guestfs-structs.pod:16
30566 msgid "guestfs_lvm_pv"
30567 msgstr ""
30568
30569 #. type: verbatim
30570 #: ../src/guestfs-structs.pod:18
30571 #, no-wrap
30572 msgid ""
30573 " struct guestfs_lvm_pv {\n"
30574 "   char *pv_name;\n"
30575 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
30576 "   char pv_uuid[32];\n"
30577 "   char *pv_fmt;\n"
30578 "   uint64_t pv_size;\n"
30579 "   uint64_t dev_size;\n"
30580 "   uint64_t pv_free;\n"
30581 "   uint64_t pv_used;\n"
30582 "   char *pv_attr;\n"
30583 "   int64_t pv_pe_count;\n"
30584 "   int64_t pv_pe_alloc_count;\n"
30585 "   char *pv_tags;\n"
30586 "   uint64_t pe_start;\n"
30587 "   int64_t pv_mda_count;\n"
30588 "   uint64_t pv_mda_free;\n"
30589 " };\n"
30590 " \n"
30591 msgstr ""
30592
30593 #. type: verbatim
30594 #: ../src/guestfs-structs.pod:36
30595 #, no-wrap
30596 msgid ""
30597 " struct guestfs_lvm_pv_list {\n"
30598 "   uint32_t len; /* Number of elements in list. */\n"
30599 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
30600 " };\n"
30601 " \n"
30602 msgstr ""
30603
30604 #. type: verbatim
30605 #: ../src/guestfs-structs.pod:41
30606 #, no-wrap
30607 msgid ""
30608 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
30609 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
30610 "\n"
30611 msgstr ""
30612
30613 #. type: =head2
30614 #: ../src/guestfs-structs.pod:44
30615 msgid "guestfs_lvm_vg"
30616 msgstr ""
30617
30618 #. type: verbatim
30619 #: ../src/guestfs-structs.pod:46
30620 #, no-wrap
30621 msgid ""
30622 " struct guestfs_lvm_vg {\n"
30623 "   char *vg_name;\n"
30624 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
30625 "   char vg_uuid[32];\n"
30626 "   char *vg_fmt;\n"
30627 "   char *vg_attr;\n"
30628 "   uint64_t vg_size;\n"
30629 "   uint64_t vg_free;\n"
30630 "   char *vg_sysid;\n"
30631 "   uint64_t vg_extent_size;\n"
30632 "   int64_t vg_extent_count;\n"
30633 "   int64_t vg_free_count;\n"
30634 "   int64_t max_lv;\n"
30635 "   int64_t max_pv;\n"
30636 "   int64_t pv_count;\n"
30637 "   int64_t lv_count;\n"
30638 "   int64_t snap_count;\n"
30639 "   int64_t vg_seqno;\n"
30640 "   char *vg_tags;\n"
30641 "   int64_t vg_mda_count;\n"
30642 "   uint64_t vg_mda_free;\n"
30643 " };\n"
30644 " \n"
30645 msgstr ""
30646
30647 #. type: verbatim
30648 #: ../src/guestfs-structs.pod:69
30649 #, no-wrap
30650 msgid ""
30651 " struct guestfs_lvm_vg_list {\n"
30652 "   uint32_t len; /* Number of elements in list. */\n"
30653 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
30654 " };\n"
30655 " \n"
30656 msgstr ""
30657
30658 #. type: verbatim
30659 #: ../src/guestfs-structs.pod:74
30660 #, no-wrap
30661 msgid ""
30662 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
30663 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
30664 "\n"
30665 msgstr ""
30666
30667 #. type: =head2
30668 #: ../src/guestfs-structs.pod:77
30669 msgid "guestfs_lvm_lv"
30670 msgstr ""
30671
30672 #. type: verbatim
30673 #: ../src/guestfs-structs.pod:79
30674 #, no-wrap
30675 msgid ""
30676 " struct guestfs_lvm_lv {\n"
30677 "   char *lv_name;\n"
30678 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
30679 "   char lv_uuid[32];\n"
30680 "   char *lv_attr;\n"
30681 "   int64_t lv_major;\n"
30682 "   int64_t lv_minor;\n"
30683 "   int64_t lv_kernel_major;\n"
30684 "   int64_t lv_kernel_minor;\n"
30685 "   uint64_t lv_size;\n"
30686 "   int64_t seg_count;\n"
30687 "   char *origin;\n"
30688 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
30689 "   float snap_percent;\n"
30690 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
30691 "   float copy_percent;\n"
30692 "   char *move_pv;\n"
30693 "   char *lv_tags;\n"
30694 "   char *mirror_log;\n"
30695 "   char *modules;\n"
30696 " };\n"
30697 " \n"
30698 msgstr ""
30699
30700 #. type: verbatim
30701 #: ../src/guestfs-structs.pod:101
30702 #, no-wrap
30703 msgid ""
30704 " struct guestfs_lvm_lv_list {\n"
30705 "   uint32_t len; /* Number of elements in list. */\n"
30706 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
30707 " };\n"
30708 " \n"
30709 msgstr ""
30710
30711 #. type: verbatim
30712 #: ../src/guestfs-structs.pod:106
30713 #, no-wrap
30714 msgid ""
30715 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
30716 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
30717 "\n"
30718 msgstr ""
30719
30720 #. type: verbatim
30721 #: ../src/guestfs-structs.pod:111
30722 #, no-wrap
30723 msgid ""
30724 " struct guestfs_stat {\n"
30725 "   int64_t dev;\n"
30726 "   int64_t ino;\n"
30727 "   int64_t mode;\n"
30728 "   int64_t nlink;\n"
30729 "   int64_t uid;\n"
30730 "   int64_t gid;\n"
30731 "   int64_t rdev;\n"
30732 "   int64_t size;\n"
30733 "   int64_t blksize;\n"
30734 "   int64_t blocks;\n"
30735 "   int64_t atime;\n"
30736 "   int64_t mtime;\n"
30737 "   int64_t ctime;\n"
30738 " };\n"
30739 " \n"
30740 msgstr ""
30741
30742 #. type: verbatim
30743 #: ../src/guestfs-structs.pod:127
30744 #, no-wrap
30745 msgid ""
30746 " struct guestfs_stat_list {\n"
30747 "   uint32_t len; /* Number of elements in list. */\n"
30748 "   struct guestfs_stat *val; /* Elements. */\n"
30749 " };\n"
30750 " \n"
30751 msgstr ""
30752
30753 #. type: verbatim
30754 #: ../src/guestfs-structs.pod:132
30755 #, no-wrap
30756 msgid ""
30757 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
30758 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
30759 "\n"
30760 msgstr ""
30761
30762 #. type: verbatim
30763 #: ../src/guestfs-structs.pod:137
30764 #, no-wrap
30765 msgid ""
30766 " struct guestfs_statvfs {\n"
30767 "   int64_t bsize;\n"
30768 "   int64_t frsize;\n"
30769 "   int64_t blocks;\n"
30770 "   int64_t bfree;\n"
30771 "   int64_t bavail;\n"
30772 "   int64_t files;\n"
30773 "   int64_t ffree;\n"
30774 "   int64_t favail;\n"
30775 "   int64_t fsid;\n"
30776 "   int64_t flag;\n"
30777 "   int64_t namemax;\n"
30778 " };\n"
30779 " \n"
30780 msgstr ""
30781
30782 #. type: verbatim
30783 #: ../src/guestfs-structs.pod:151
30784 #, no-wrap
30785 msgid ""
30786 " struct guestfs_statvfs_list {\n"
30787 "   uint32_t len; /* Number of elements in list. */\n"
30788 "   struct guestfs_statvfs *val; /* Elements. */\n"
30789 " };\n"
30790 " \n"
30791 msgstr ""
30792
30793 #. type: verbatim
30794 #: ../src/guestfs-structs.pod:156
30795 #, no-wrap
30796 msgid ""
30797 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
30798 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
30799 "\n"
30800 msgstr ""
30801
30802 #. type: =head2
30803 #: ../src/guestfs-structs.pod:159
30804 msgid "guestfs_dirent"
30805 msgstr ""
30806
30807 #. type: verbatim
30808 #: ../src/guestfs-structs.pod:161
30809 #, no-wrap
30810 msgid ""
30811 " struct guestfs_dirent {\n"
30812 "   int64_t ino;\n"
30813 "   char ftyp;\n"
30814 "   char *name;\n"
30815 " };\n"
30816 " \n"
30817 msgstr ""
30818
30819 #. type: verbatim
30820 #: ../src/guestfs-structs.pod:167
30821 #, no-wrap
30822 msgid ""
30823 " struct guestfs_dirent_list {\n"
30824 "   uint32_t len; /* Number of elements in list. */\n"
30825 "   struct guestfs_dirent *val; /* Elements. */\n"
30826 " };\n"
30827 " \n"
30828 msgstr ""
30829
30830 #. type: verbatim
30831 #: ../src/guestfs-structs.pod:172
30832 #, no-wrap
30833 msgid ""
30834 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
30835 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
30836 "\n"
30837 msgstr ""
30838
30839 #. type: verbatim
30840 #: ../src/guestfs-structs.pod:177
30841 #, no-wrap
30842 msgid ""
30843 " struct guestfs_version {\n"
30844 "   int64_t major;\n"
30845 "   int64_t minor;\n"
30846 "   int64_t release;\n"
30847 "   char *extra;\n"
30848 " };\n"
30849 " \n"
30850 msgstr ""
30851
30852 #. type: verbatim
30853 #: ../src/guestfs-structs.pod:184
30854 #, no-wrap
30855 msgid ""
30856 " struct guestfs_version_list {\n"
30857 "   uint32_t len; /* Number of elements in list. */\n"
30858 "   struct guestfs_version *val; /* Elements. */\n"
30859 " };\n"
30860 " \n"
30861 msgstr ""
30862
30863 #. type: verbatim
30864 #: ../src/guestfs-structs.pod:189
30865 #, no-wrap
30866 msgid ""
30867 " void guestfs_free_version (struct guestfs_free_version *);\n"
30868 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
30869 "\n"
30870 msgstr ""
30871
30872 #. type: =head2
30873 #: ../src/guestfs-structs.pod:192
30874 msgid "guestfs_xattr"
30875 msgstr ""
30876
30877 #. type: verbatim
30878 #: ../src/guestfs-structs.pod:194
30879 #, no-wrap
30880 msgid ""
30881 " struct guestfs_xattr {\n"
30882 "   char *attrname;\n"
30883 "   /* The next two fields describe a byte array. */\n"
30884 "   uint32_t attrval_len;\n"
30885 "   char *attrval;\n"
30886 " };\n"
30887 " \n"
30888 msgstr ""
30889
30890 #. type: verbatim
30891 #: ../src/guestfs-structs.pod:201
30892 #, no-wrap
30893 msgid ""
30894 " struct guestfs_xattr_list {\n"
30895 "   uint32_t len; /* Number of elements in list. */\n"
30896 "   struct guestfs_xattr *val; /* Elements. */\n"
30897 " };\n"
30898 " \n"
30899 msgstr ""
30900
30901 #. type: verbatim
30902 #: ../src/guestfs-structs.pod:206
30903 #, no-wrap
30904 msgid ""
30905 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
30906 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
30907 "\n"
30908 msgstr ""
30909
30910 #. type: =head2
30911 #: ../src/guestfs-structs.pod:209
30912 msgid "guestfs_inotify_event"
30913 msgstr ""
30914
30915 #. type: verbatim
30916 #: ../src/guestfs-structs.pod:211
30917 #, no-wrap
30918 msgid ""
30919 " struct guestfs_inotify_event {\n"
30920 "   int64_t in_wd;\n"
30921 "   uint32_t in_mask;\n"
30922 "   uint32_t in_cookie;\n"
30923 "   char *in_name;\n"
30924 " };\n"
30925 " \n"
30926 msgstr ""
30927
30928 #. type: verbatim
30929 #: ../src/guestfs-structs.pod:218
30930 #, no-wrap
30931 msgid ""
30932 " struct guestfs_inotify_event_list {\n"
30933 "   uint32_t len; /* Number of elements in list. */\n"
30934 "   struct guestfs_inotify_event *val; /* Elements. */\n"
30935 " };\n"
30936 " \n"
30937 msgstr ""
30938
30939 #. type: verbatim
30940 #: ../src/guestfs-structs.pod:223
30941 #, no-wrap
30942 msgid ""
30943 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
30944 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
30945 "\n"
30946 msgstr ""
30947
30948 #. type: =head2
30949 #: ../src/guestfs-structs.pod:226
30950 msgid "guestfs_partition"
30951 msgstr ""
30952
30953 #. type: verbatim
30954 #: ../src/guestfs-structs.pod:228
30955 #, no-wrap
30956 msgid ""
30957 " struct guestfs_partition {\n"
30958 "   int32_t part_num;\n"
30959 "   uint64_t part_start;\n"
30960 "   uint64_t part_end;\n"
30961 "   uint64_t part_size;\n"
30962 " };\n"
30963 " \n"
30964 msgstr ""
30965
30966 #. type: verbatim
30967 #: ../src/guestfs-structs.pod:235
30968 #, no-wrap
30969 msgid ""
30970 " struct guestfs_partition_list {\n"
30971 "   uint32_t len; /* Number of elements in list. */\n"
30972 "   struct guestfs_partition *val; /* Elements. */\n"
30973 " };\n"
30974 " \n"
30975 msgstr ""
30976
30977 #. type: verbatim
30978 #: ../src/guestfs-structs.pod:240
30979 #, no-wrap
30980 msgid ""
30981 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
30982 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
30983 "\n"
30984 msgstr ""
30985
30986 #. type: =head2
30987 #: ../src/guestfs-structs.pod:243
30988 msgid "guestfs_application"
30989 msgstr ""
30990
30991 #. type: verbatim
30992 #: ../src/guestfs-structs.pod:245
30993 #, no-wrap
30994 msgid ""
30995 " struct guestfs_application {\n"
30996 "   char *app_name;\n"
30997 "   char *app_display_name;\n"
30998 "   int32_t app_epoch;\n"
30999 "   char *app_version;\n"
31000 "   char *app_release;\n"
31001 "   char *app_install_path;\n"
31002 "   char *app_trans_path;\n"
31003 "   char *app_publisher;\n"
31004 "   char *app_url;\n"
31005 "   char *app_source_package;\n"
31006 "   char *app_summary;\n"
31007 "   char *app_description;\n"
31008 " };\n"
31009 " \n"
31010 msgstr ""
31011
31012 #. type: verbatim
31013 #: ../src/guestfs-structs.pod:260
31014 #, no-wrap
31015 msgid ""
31016 " struct guestfs_application_list {\n"
31017 "   uint32_t len; /* Number of elements in list. */\n"
31018 "   struct guestfs_application *val; /* Elements. */\n"
31019 " };\n"
31020 " \n"
31021 msgstr ""
31022
31023 #. type: verbatim
31024 #: ../src/guestfs-structs.pod:265
31025 #, no-wrap
31026 msgid ""
31027 " void guestfs_free_application (struct guestfs_free_application *);\n"
31028 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
31029 "\n"
31030 msgstr ""
31031
31032 #. type: textblock
31033 #: ../src/guestfs.pod:5
31034 msgid "guestfs - Library for accessing and modifying virtual machine images"
31035 msgstr ""
31036
31037 #. type: verbatim
31038 #: ../src/guestfs.pod:11
31039 #, no-wrap
31040 msgid ""
31041 " guestfs_h *g = guestfs_create ();\n"
31042 " guestfs_add_drive (g, \"guest.img\");\n"
31043 " guestfs_launch (g);\n"
31044 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
31045 " guestfs_touch (g, \"/hello\");\n"
31046 " guestfs_umount (g, \"/\");\n"
31047 " guestfs_close (g);\n"
31048 "\n"
31049 msgstr ""
31050
31051 #. type: textblock
31052 #: ../src/guestfs.pod:25
31053 msgid ""
31054 "Libguestfs is a library for accessing and modifying guest disk images.  "
31055 "Amongst the things this is good for: making batch configuration changes to "
31056 "guests, getting disk used/free statistics (see also: virt-df), migrating "
31057 "between virtualization systems (see also: virt-p2v), performing partial "
31058 "backups, performing partial guest clones, cloning guests and changing "
31059 "registry/UUID/hostname info, and much else besides."
31060 msgstr ""
31061
31062 #. type: textblock
31063 #: ../src/guestfs.pod:33
31064 msgid ""
31065 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
31066 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
31067 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
31068 "qcow2, vmdk."
31069 msgstr ""
31070
31071 #. type: textblock
31072 #: ../src/guestfs.pod:38
31073 msgid ""
31074 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
31075 "what filesystem is in each LV, etc.).  It can also run commands in the "
31076 "context of the guest.  Also you can access filesystems over FUSE."
31077 msgstr ""
31078
31079 #. type: textblock
31080 #: ../src/guestfs.pod:43
31081 msgid ""
31082 "Libguestfs is a library that can be linked with C and C++ management "
31083 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
31084 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
31085 "line."
31086 msgstr ""
31087
31088 #. type: textblock
31089 #: ../src/guestfs.pod:48
31090 msgid ""
31091 "You don't need to be root to use libguestfs, although obviously you do need "
31092 "enough permissions to access the disk images."
31093 msgstr ""
31094
31095 #. type: textblock
31096 #: ../src/guestfs.pod:51
31097 msgid ""
31098 "Libguestfs is a large API because it can do many things.  For a gentle "
31099 "introduction, please read the L</API OVERVIEW> section next."
31100 msgstr ""
31101
31102 #. type: textblock
31103 #: ../src/guestfs.pod:54
31104 msgid ""
31105 "There are also some example programs in the L<guestfs-examples(3)> manual "
31106 "page."
31107 msgstr ""
31108
31109 #. type: =head1
31110 #: ../src/guestfs.pod:57
31111 msgid "API OVERVIEW"
31112 msgstr ""
31113
31114 #. type: textblock
31115 #: ../src/guestfs.pod:59
31116 msgid ""
31117 "This section provides a gentler overview of the libguestfs API.  We also try "
31118 "to group API calls together, where that may not be obvious from reading "
31119 "about the individual calls in the main section of this manual."
31120 msgstr ""
31121
31122 #. type: =head2
31123 #: ../src/guestfs.pod:64
31124 msgid "HANDLES"
31125 msgstr ""
31126
31127 #. type: textblock
31128 #: ../src/guestfs.pod:66
31129 msgid ""
31130 "Before you can use libguestfs calls, you have to create a handle.  Then you "
31131 "must add at least one disk image to the handle, followed by launching the "
31132 "handle, then performing whatever operations you want, and finally closing "
31133 "the handle.  By convention we use the single letter C<g> for the name of the "
31134 "handle variable, although of course you can use any name you want."
31135 msgstr ""
31136
31137 #. type: textblock
31138 #: ../src/guestfs.pod:73
31139 msgid "The general structure of all libguestfs-using programs looks like this:"
31140 msgstr ""
31141
31142 #. type: verbatim
31143 #: ../src/guestfs.pod:76
31144 #, no-wrap
31145 msgid ""
31146 " guestfs_h *g = guestfs_create ();\n"
31147 " \n"
31148 msgstr ""
31149
31150 #. type: verbatim
31151 #: ../src/guestfs.pod:78
31152 #, no-wrap
31153 msgid ""
31154 " /* Call guestfs_add_drive additional times if there are\n"
31155 "  * multiple disk images.\n"
31156 "  */\n"
31157 " guestfs_add_drive (g, \"guest.img\");\n"
31158 " \n"
31159 msgstr ""
31160
31161 #. type: verbatim
31162 #: ../src/guestfs.pod:83
31163 #, no-wrap
31164 msgid ""
31165 " /* Most manipulation calls won't work until you've launched\n"
31166 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
31167 "  * and _before_ other commands.\n"
31168 "  */\n"
31169 " guestfs_launch (g);\n"
31170 " \n"
31171 msgstr ""
31172
31173 #. type: verbatim
31174 #: ../src/guestfs.pod:89
31175 #, no-wrap
31176 msgid ""
31177 " /* Now you can examine what partitions, LVs etc are available.\n"
31178 "  */\n"
31179 " char **partitions = guestfs_list_partitions (g);\n"
31180 " char **logvols = guestfs_lvs (g);\n"
31181 " \n"
31182 msgstr ""
31183
31184 #. type: verbatim
31185 #: ../src/guestfs.pod:94
31186 #, no-wrap
31187 msgid ""
31188 " /* To access a filesystem in the image, you must mount it.\n"
31189 "  */\n"
31190 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
31191 " \n"
31192 msgstr ""
31193
31194 #. type: verbatim
31195 #: ../src/guestfs.pod:98
31196 #, no-wrap
31197 msgid ""
31198 " /* Now you can perform filesystem actions on the guest\n"
31199 "  * disk image.\n"
31200 "  */\n"
31201 " guestfs_touch (g, \"/hello\");\n"
31202 " \n"
31203 msgstr ""
31204
31205 #. type: verbatim
31206 #: ../src/guestfs.pod:103
31207 #, no-wrap
31208 msgid ""
31209 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
31210 "  * it is done automatically when you close the handle.  See\n"
31211 "  * discussion of autosync in this page.\n"
31212 "  */\n"
31213 " guestfs_sync (g);\n"
31214 " \n"
31215 msgstr ""
31216
31217 #. type: verbatim
31218 #: ../src/guestfs.pod:109
31219 #, no-wrap
31220 msgid ""
31221 " /* Close the handle 'g'. */\n"
31222 " guestfs_close (g);\n"
31223 "\n"
31224 msgstr ""
31225
31226 #. type: textblock
31227 #: ../src/guestfs.pod:112
31228 msgid ""
31229 "The code above doesn't include any error checking.  In real code you should "
31230 "check return values carefully for errors.  In general all functions that "
31231 "return integers return C<-1> on error, and all functions that return "
31232 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
31233 "how to handle errors, and consult the documentation for each function call "
31234 "below to see precisely how they return error indications.  See L<guestfs-"
31235 "examples(3)> for fully worked examples."
31236 msgstr ""
31237
31238 #. type: =head2
31239 #: ../src/guestfs.pod:121
31240 msgid "DISK IMAGES"
31241 msgstr ""
31242
31243 #. type: textblock
31244 #: ../src/guestfs.pod:123
31245 msgid ""
31246 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
31247 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
31248 "actual block device, or simply an empty file of zeroes that you have created "
31249 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
31250 "of these."
31251 msgstr ""
31252
31253 #. type: textblock
31254 #: ../src/guestfs.pod:129
31255 msgid ""
31256 "The call you should use in modern code for adding drives is L</"
31257 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
31258 "specifying that the format is raw, do:"
31259 msgstr ""
31260
31261 #. type: verbatim
31262 #: ../src/guestfs.pod:133
31263 #, no-wrap
31264 msgid ""
31265 " guestfs_add_drive_opts (g, filename,\n"
31266 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
31267 "                         -1);\n"
31268 "\n"
31269 msgstr ""
31270
31271 #. type: textblock
31272 #: ../src/guestfs.pod:137
31273 msgid "You can add a disk read-only using:"
31274 msgstr ""
31275
31276 #. type: verbatim
31277 #: ../src/guestfs.pod:139
31278 #, no-wrap
31279 msgid ""
31280 " guestfs_add_drive_opts (g, filename,\n"
31281 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
31282 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
31283 "                         -1);\n"
31284 "\n"
31285 msgstr ""
31286
31287 #. type: textblock
31288 #: ../src/guestfs.pod:144
31289 msgid ""
31290 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
31291 "libguestfs won't modify the file."
31292 msgstr ""
31293
31294 #. type: textblock
31295 #: ../src/guestfs.pod:147
31296 msgid ""
31297 "Be extremely cautious if the disk image is in use, eg. if it is being used "
31298 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
31299 "corruption, but adding it read-only is safe."
31300 msgstr ""
31301
31302 #. type: textblock
31303 #: ../src/guestfs.pod:151
31304 msgid ""
31305 "You must add at least one disk image, and you may add multiple disk images.  "
31306 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
31307 "first one you added), C</dev/sdb> (for the second one you added), etc."
31308 msgstr ""
31309
31310 #. type: textblock
31311 #: ../src/guestfs.pod:156
31312 msgid ""
31313 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
31314 "can call L</guestfs_list_devices> to get a list of the device names, in the "
31315 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
31316 msgstr ""
31317
31318 #. type: =head2
31319 #: ../src/guestfs.pod:161
31320 msgid "MOUNTING"
31321 msgstr ""
31322
31323 #. type: textblock
31324 #: ../src/guestfs.pod:163
31325 msgid ""
31326 "Before you can read or write files, create directories and so on in a disk "
31327 "image that contains filesystems, you have to mount those filesystems using "
31328 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
31329 "a disk image contains (for example) one partition with a filesystem on that "
31330 "partition, then you can mount it directly:"
31331 msgstr ""
31332
31333 #. type: verbatim
31334 #: ../src/guestfs.pod:170
31335 #, no-wrap
31336 msgid ""
31337 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
31338 "\n"
31339 msgstr ""
31340
31341 #. type: textblock
31342 #: ../src/guestfs.pod:172
31343 msgid ""
31344 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
31345 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
31346 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
31347 "that these are libguestfs virtual devices, and are nothing to do with host "
31348 "devices."
31349 msgstr ""
31350
31351 #. type: textblock
31352 #: ../src/guestfs.pod:178
31353 msgid ""
31354 "If you are given a disk image and you don't know what it contains then you "
31355 "have to find out.  Libguestfs can do that too: use L</"
31356 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
31357 "LVs, and either try mounting each to see what is mountable, or else examine "
31358 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
31359 "filesystems, use L</guestfs_list_filesystems>."
31360 msgstr ""
31361
31362 #. type: textblock
31363 #: ../src/guestfs.pod:186
31364 msgid ""
31365 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
31366 "L</INSPECTION> below).  But you might find it easier to look at higher level "
31367 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
31368 msgstr ""
31369
31370 #. type: textblock
31371 #: ../src/guestfs.pod:191
31372 msgid ""
31373 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
31374 "several other variations of the C<guestfs_mount_*> call."
31375 msgstr ""
31376
31377 #. type: =head2
31378 #: ../src/guestfs.pod:194
31379 msgid "FILESYSTEM ACCESS AND MODIFICATION"
31380 msgstr ""
31381
31382 #. type: textblock
31383 #: ../src/guestfs.pod:196
31384 msgid ""
31385 "The majority of the libguestfs API consists of fairly low-level calls for "
31386 "accessing and modifying the files, directories, symlinks etc on mounted "
31387 "filesystems.  There are over a hundred such calls which you can find listed "
31388 "in detail below in this man page, and we don't even pretend to cover them "
31389 "all in this overview."
31390 msgstr ""
31391
31392 #. type: textblock
31393 #: ../src/guestfs.pod:202
31394 msgid ""
31395 "Specify filenames as full paths, starting with C<\"/\"> and including the "
31396 "mount point."
31397 msgstr ""
31398
31399 #. type: textblock
31400 #: ../src/guestfs.pod:205
31401 msgid ""
31402 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
31403 "the file called C<\"etc/passwd\"> then you could do:"
31404 msgstr ""
31405
31406 #. type: verbatim
31407 #: ../src/guestfs.pod:208
31408 #, no-wrap
31409 msgid ""
31410 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
31411 "\n"
31412 msgstr ""
31413
31414 #. type: textblock
31415 #: ../src/guestfs.pod:210
31416 msgid ""
31417 "This would return C<data> as a newly allocated buffer containing the full "
31418 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
31419 "or C<NULL> if there was an error."
31420 msgstr ""
31421
31422 #. type: textblock
31423 #: ../src/guestfs.pod:214
31424 msgid ""
31425 "As another example, to create a top-level directory on that filesystem "
31426 "called C<\"var\"> you would do:"
31427 msgstr ""
31428
31429 #. type: verbatim
31430 #: ../src/guestfs.pod:217
31431 #, no-wrap
31432 msgid ""
31433 " guestfs_mkdir (g, \"/var\");\n"
31434 "\n"
31435 msgstr ""
31436
31437 #. type: textblock
31438 #: ../src/guestfs.pod:219
31439 msgid "To create a symlink you could do:"
31440 msgstr ""
31441
31442 #. type: verbatim
31443 #: ../src/guestfs.pod:221
31444 #, no-wrap
31445 msgid ""
31446 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
31447 "               \"/etc/rc3.d/S30portmap\");\n"
31448 "\n"
31449 msgstr ""
31450
31451 #. type: textblock
31452 #: ../src/guestfs.pod:224
31453 msgid ""
31454 "Libguestfs will reject attempts to use relative paths and there is no "
31455 "concept of a current working directory."
31456 msgstr ""
31457
31458 #. type: textblock
31459 #: ../src/guestfs.pod:227
31460 msgid ""
31461 "Libguestfs can return errors in many situations: for example if the "
31462 "filesystem isn't writable, or if a file or directory that you requested "
31463 "doesn't exist.  If you are using the C API (documented here)  you have to "
31464 "check for those error conditions after each call.  (Other language bindings "
31465 "turn these errors into exceptions)."
31466 msgstr ""
31467
31468 #. type: textblock
31469 #: ../src/guestfs.pod:233
31470 msgid ""
31471 "File writes are affected by the per-handle umask, set by calling L</"
31472 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
31473 msgstr ""
31474
31475 #. type: =head2
31476 #: ../src/guestfs.pod:236
31477 msgid "PARTITIONING"
31478 msgstr ""
31479
31480 #. type: textblock
31481 #: ../src/guestfs.pod:238
31482 msgid ""
31483 "Libguestfs contains API calls to read, create and modify partition tables on "
31484 "disk images."
31485 msgstr ""
31486
31487 #. type: textblock
31488 #: ../src/guestfs.pod:241
31489 msgid ""
31490 "In the common case where you want to create a single partition covering the "
31491 "whole disk, you should use the L</guestfs_part_disk> call:"
31492 msgstr ""
31493
31494 #. type: verbatim
31495 #: ../src/guestfs.pod:245
31496 #, no-wrap
31497 msgid ""
31498 " const char *parttype = \"mbr\";\n"
31499 " if (disk_is_larger_than_2TB)\n"
31500 "   parttype = \"gpt\";\n"
31501 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
31502 "\n"
31503 msgstr ""
31504
31505 #. type: textblock
31506 #: ../src/guestfs.pod:250
31507 msgid ""
31508 "Obviously this effectively wipes anything that was on that disk image before."
31509 msgstr ""
31510
31511 #. type: =head2
31512 #: ../src/guestfs.pod:253
31513 msgid "LVM2"
31514 msgstr ""
31515
31516 #. type: textblock
31517 #: ../src/guestfs.pod:255
31518 msgid ""
31519 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
31520 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
31521 "you familiarize yourself with the concepts of physical volumes, volume "
31522 "groups and logical volumes."
31523 msgstr ""
31524
31525 #. type: textblock
31526 #: ../src/guestfs.pod:260
31527 msgid ""
31528 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
31529 "tldp.org/HOWTO/LVM-HOWTO/>."
31530 msgstr ""
31531
31532 #. type: =head2
31533 #: ../src/guestfs.pod:263
31534 msgid "DOWNLOADING"
31535 msgstr ""
31536
31537 #. type: textblock
31538 #: ../src/guestfs.pod:265
31539 msgid ""
31540 "Use L</guestfs_cat> to download small, text only files.  This call is "
31541 "limited to files which are less than 2 MB and which cannot contain any ASCII "
31542 "NUL (C<\\0>) characters.  However the API is very simple to use."
31543 msgstr ""
31544
31545 #. type: textblock
31546 #: ../src/guestfs.pod:269
31547 msgid ""
31548 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
31549 "bit data, since it returns a (pointer, size) pair.  However it is still "
31550 "limited to \"small\" files, less than 2 MB."
31551 msgstr ""
31552
31553 #. type: textblock
31554 #: ../src/guestfs.pod:273
31555 msgid ""
31556 "L</guestfs_download> can be used to download any file, with no limits on "
31557 "content or size (even files larger than 4 GB)."
31558 msgstr ""
31559
31560 #. type: textblock
31561 #: ../src/guestfs.pod:276
31562 msgid ""
31563 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
31564 msgstr ""
31565
31566 #. type: =head2
31567 #: ../src/guestfs.pod:279
31568 msgid "UPLOADING"
31569 msgstr ""
31570
31571 #. type: textblock
31572 #: ../src/guestfs.pod:281
31573 msgid ""
31574 "It's often the case that you want to write a file or files to the disk image."
31575 msgstr ""
31576
31577 #. type: textblock
31578 #: ../src/guestfs.pod:284
31579 msgid ""
31580 "To write a small file with fixed content, use L</guestfs_write>.  To create "
31581 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
31582 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
31583 "of other functions for creating test files, for example L</guestfs_fill> and "
31584 "L</guestfs_fill_pattern>."
31585 msgstr ""
31586
31587 #. type: textblock
31588 #: ../src/guestfs.pod:290
31589 msgid ""
31590 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
31591 "file content or size (even files larger than 4 GB)."
31592 msgstr ""
31593
31594 #. type: textblock
31595 #: ../src/guestfs.pod:293
31596 msgid ""
31597 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
31598 msgstr ""
31599
31600 #. type: textblock
31601 #: ../src/guestfs.pod:295
31602 msgid ""
31603 "However the fastest way to upload I<large numbers of arbitrary files> is to "
31604 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
31605 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
31606 "in a predictable way (eg. adding it last after all other drives) then you "
31607 "can get the device name from L</guestfs_list_devices> and mount it directly "
31608 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
31609 "portable between kernel versions, and they don't support labels or UUIDs.  "
31610 "If you want to pre-build an image or you need to mount it using a label or "
31611 "UUID, use an ISO image instead."
31612 msgstr ""
31613
31614 #. type: =head2
31615 #: ../src/guestfs.pod:306
31616 msgid "COPYING"
31617 msgstr ""
31618
31619 #. type: textblock
31620 #: ../src/guestfs.pod:308
31621 msgid ""
31622 "There are various different commands for copying between files and devices "
31623 "and in and out of the guest filesystem.  These are summarised in the table "
31624 "below."
31625 msgstr ""
31626
31627 #. type: =item
31628 #: ../src/guestfs.pod:314
31629 msgid "B<file> to B<file>"
31630 msgstr ""
31631
31632 #. type: textblock
31633 #: ../src/guestfs.pod:316
31634 msgid ""
31635 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
31636 "directories recursively."
31637 msgstr ""
31638
31639 #. type: =item
31640 #: ../src/guestfs.pod:319
31641 msgid "B<file or device> to B<file or device>"
31642 msgstr ""
31643
31644 #. type: textblock
31645 #: ../src/guestfs.pod:321
31646 msgid ""
31647 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
31648 "devices in the guest."
31649 msgstr ""
31650
31651 #. type: textblock
31652 #: ../src/guestfs.pod:324
31653 msgid "Example: duplicate the contents of an LV:"
31654 msgstr ""
31655
31656 #. type: verbatim
31657 #: ../src/guestfs.pod:326
31658 #, no-wrap
31659 msgid ""
31660 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
31661 "\n"
31662 msgstr ""
31663
31664 #. type: textblock
31665 #: ../src/guestfs.pod:328
31666 msgid ""
31667 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
31668 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
31669 "guestfs_copy_size>."
31670 msgstr ""
31671
31672 #. type: =item
31673 #: ../src/guestfs.pod:332
31674 msgid "B<file on the host> to B<file or device>"
31675 msgstr ""
31676
31677 #. type: textblock
31678 #: ../src/guestfs.pod:334
31679 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
31680 msgstr ""
31681
31682 #. type: =item
31683 #: ../src/guestfs.pod:336
31684 msgid "B<file or device> to B<file on the host>"
31685 msgstr ""
31686
31687 #. type: textblock
31688 #: ../src/guestfs.pod:338
31689 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
31690 msgstr ""
31691
31692 #. type: =head2
31693 #: ../src/guestfs.pod:342
31694 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
31695 msgstr ""
31696
31697 #. type: textblock
31698 #: ../src/guestfs.pod:344
31699 msgid ""
31700 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
31701 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
31702 "appears you can only upload and download to files.  However many Un*x-like "
31703 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
31704 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
31705 "and arbitrary file descriptor N."
31706 msgstr ""
31707
31708 #. type: textblock
31709 #: ../src/guestfs.pod:352
31710 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
31711 msgstr ""
31712
31713 #. type: verbatim
31714 #: ../src/guestfs.pod:355
31715 #, no-wrap
31716 msgid ""
31717 " guestfs_download (g, filename, \"/dev/stdout\");\n"
31718 "\n"
31719 msgstr ""
31720
31721 #. type: textblock
31722 #: ../src/guestfs.pod:357
31723 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
31724 msgstr ""
31725
31726 #. type: verbatim
31727 #: ../src/guestfs.pod:359
31728 #, no-wrap
31729 msgid ""
31730 " char devfd[64];\n"
31731 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
31732 " guestfs_tar_out (g, \"/\", devfd);\n"
31733 "\n"
31734 msgstr ""
31735
31736 #. type: =head2
31737 #: ../src/guestfs.pod:363
31738 msgid "LISTING FILES"
31739 msgstr ""
31740
31741 #. type: textblock
31742 #: ../src/guestfs.pod:365
31743 msgid ""
31744 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
31745 "L<guestfish(1)>-equivalent command C<ll>)."
31746 msgstr ""
31747
31748 #. type: textblock
31749 #: ../src/guestfs.pod:368
31750 msgid ""
31751 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
31752 "programs, as a flat list of strings."
31753 msgstr ""
31754
31755 #. type: textblock
31756 #: ../src/guestfs.pod:371
31757 msgid ""
31758 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
31759 "directory, plus additional information about each one.  It is more "
31760 "equivalent to using the L<readdir(3)> call on a local filesystem."
31761 msgstr ""
31762
31763 #. type: textblock
31764 #: ../src/guestfs.pod:375
31765 msgid ""
31766 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
31767 msgstr ""
31768
31769 #. type: =head2
31770 #: ../src/guestfs.pod:378
31771 msgid "RUNNING COMMANDS"
31772 msgstr ""
31773
31774 #. type: textblock
31775 #: ../src/guestfs.pod:380
31776 msgid ""
31777 "Although libguestfs is primarily an API for manipulating files inside guest "
31778 "images, we also provide some limited facilities for running commands inside "
31779 "guests."
31780 msgstr ""
31781
31782 #. type: textblock
31783 #: ../src/guestfs.pod:384
31784 msgid "There are many limitations to this:"
31785 msgstr ""
31786
31787 #. type: textblock
31788 #: ../src/guestfs.pod:390
31789 msgid ""
31790 "The kernel version that the command runs under will be different from what "
31791 "it expects."
31792 msgstr ""
31793
31794 #. type: textblock
31795 #: ../src/guestfs.pod:395
31796 msgid ""
31797 "If the command needs to communicate with daemons, then most likely they "
31798 "won't be running."
31799 msgstr ""
31800
31801 #. type: textblock
31802 #: ../src/guestfs.pod:400
31803 msgid "The command will be running in limited memory."
31804 msgstr ""
31805
31806 #. type: textblock
31807 #: ../src/guestfs.pod:404
31808 msgid ""
31809 "The network may not be available unless you enable it (see L</"
31810 "guestfs_set_network>)."
31811 msgstr ""
31812
31813 #. type: textblock
31814 #: ../src/guestfs.pod:409
31815 msgid "Only supports Linux guests (not Windows, BSD, etc)."
31816 msgstr ""
31817
31818 #. type: textblock
31819 #: ../src/guestfs.pod:413
31820 msgid ""
31821 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
31822 msgstr ""
31823
31824 #. type: textblock
31825 #: ../src/guestfs.pod:418
31826 msgid ""
31827 "For SELinux guests, you may need to enable SELinux and load policy first.  "
31828 "See L</SELINUX> in this manpage."
31829 msgstr ""
31830
31831 #. type: textblock
31832 #: ../src/guestfs.pod:423
31833 msgid ""
31834 "I<Security:> It is not safe to run commands from untrusted, possibly "
31835 "malicious guests.  These commands may attempt to exploit your program by "
31836 "sending unexpected output.  They could also try to exploit the Linux kernel "
31837 "or qemu provided by the libguestfs appliance.  They could use the network "
31838 "provided by the libguestfs appliance to bypass ordinary network partitions "
31839 "and firewalls.  They could use the elevated privileges or different SELinux "
31840 "context of your program to their advantage."
31841 msgstr ""
31842
31843 #. type: textblock
31844 #: ../src/guestfs.pod:432
31845 msgid ""
31846 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
31847 "(a script which runs when the guest next boots normally), and to have this "
31848 "script run the commands you want in the normal context of the running guest, "
31849 "network security and so on.  For information about other security issues, "
31850 "see L</SECURITY>."
31851 msgstr ""
31852
31853 #. type: textblock
31854 #: ../src/guestfs.pod:440
31855 msgid ""
31856 "The two main API calls to run commands are L</guestfs_command> and L</"
31857 "guestfs_sh> (there are also variations)."
31858 msgstr ""
31859
31860 #. type: textblock
31861 #: ../src/guestfs.pod:443
31862 msgid ""
31863 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
31864 "shell globs, redirections, etc will work."
31865 msgstr ""
31866
31867 #. type: =head2
31868 #: ../src/guestfs.pod:446
31869 msgid "CONFIGURATION FILES"
31870 msgstr ""
31871
31872 #. type: textblock
31873 #: ../src/guestfs.pod:448
31874 msgid ""
31875 "To read and write configuration files in Linux guest filesystems, we "
31876 "strongly recommend using Augeas.  For example, Augeas understands how to "
31877 "read and write, say, a Linux shadow password file or X.org configuration "
31878 "file, and so avoids you having to write that code."
31879 msgstr ""
31880
31881 #. type: textblock
31882 #: ../src/guestfs.pod:453
31883 msgid ""
31884 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
31885 "document Augeas itself here because there is excellent documentation on the "
31886 "L<http://augeas.net/> website."
31887 msgstr ""
31888
31889 #. type: textblock
31890 #: ../src/guestfs.pod:457
31891 msgid ""
31892 "If you don't want to use Augeas (you fool!) then try calling L</"
31893 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
31894 "over."
31895 msgstr ""
31896
31897 #. type: =head2
31898 #: ../src/guestfs.pod:461
31899 msgid "SELINUX"
31900 msgstr ""
31901
31902 #. type: textblock
31903 #: ../src/guestfs.pod:463
31904 msgid ""
31905 "We support SELinux guests.  To ensure that labeling happens correctly in "
31906 "SELinux guests, you need to enable SELinux and load the guest's policy:"
31907 msgstr ""
31908
31909 #. type: textblock
31910 #: ../src/guestfs.pod:471
31911 msgid "Before launching, do:"
31912 msgstr ""
31913
31914 #. type: verbatim
31915 #: ../src/guestfs.pod:473
31916 #, no-wrap
31917 msgid ""
31918 " guestfs_set_selinux (g, 1);\n"
31919 "\n"
31920 msgstr ""
31921
31922 #. type: textblock
31923 #: ../src/guestfs.pod:477
31924 msgid ""
31925 "After mounting the guest's filesystem(s), load the policy.  This is best "
31926 "done by running the L<load_policy(8)> command in the guest itself:"
31927 msgstr ""
31928
31929 #. type: verbatim
31930 #: ../src/guestfs.pod:481
31931 #, no-wrap
31932 msgid ""
31933 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
31934 "\n"
31935 msgstr ""
31936
31937 #. type: textblock
31938 #: ../src/guestfs.pod:483
31939 msgid ""
31940 "(Older versions of C<load_policy> require you to specify the name of the "
31941 "policy file)."
31942 msgstr ""
31943
31944 #. type: textblock
31945 #: ../src/guestfs.pod:488
31946 msgid ""
31947 "Optionally, set the security context for the API.  The correct security "
31948 "context to use can only be known by inspecting the guest.  As an example:"
31949 msgstr ""
31950
31951 #. type: verbatim
31952 #: ../src/guestfs.pod:492
31953 #, no-wrap
31954 msgid ""
31955 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
31956 "\n"
31957 msgstr ""
31958
31959 #. type: textblock
31960 #: ../src/guestfs.pod:496
31961 msgid "This will work for running commands and editing existing files."
31962 msgstr ""
31963
31964 #. type: textblock
31965 #: ../src/guestfs.pod:498
31966 msgid ""
31967 "When new files are created, you may need to label them explicitly, for "
31968 "example by running the external command C<restorecon pathname>."
31969 msgstr ""
31970
31971 #. type: =head2
31972 #: ../src/guestfs.pod:502
31973 msgid "UMASK"
31974 msgstr ""
31975
31976 #. type: textblock
31977 #: ../src/guestfs.pod:504
31978 msgid ""
31979 "Certain calls are affected by the current file mode creation mask (the "
31980 "\"umask\").  In particular ones which create files or directories, such as "
31981 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
31982 "either the default mode that the file is created with or modifies the mode "
31983 "that you supply."
31984 msgstr ""
31985
31986 #. type: textblock
31987 #: ../src/guestfs.pod:510
31988 msgid ""
31989 "The default umask is C<022>, so files are created with modes such as C<0644> "
31990 "and directories with C<0755>."
31991 msgstr ""
31992
31993 #. type: textblock
31994 #: ../src/guestfs.pod:513
31995 msgid ""
31996 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
31997 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
31998 "guestfs_chmod> after creating each file or directory."
31999 msgstr ""
32000
32001 #. type: textblock
32002 #: ../src/guestfs.pod:517
32003 msgid "For more information about umask, see L<umask(2)>."
32004 msgstr ""
32005
32006 #. type: textblock
32007 #: ../src/guestfs.pod:521
32008 msgid ""
32009 "Libguestfs allows you to access Linux guests which have been encrypted using "
32010 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
32011 "standard.  This includes nearly all whole disk encryption systems used by "
32012 "modern Linux guests."
32013 msgstr ""
32014
32015 #. type: textblock
32016 #: ../src/guestfs.pod:527
32017 msgid ""
32018 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
32019 "returns the string C<crypto_LUKS>)."
32020 msgstr ""
32021
32022 #. type: textblock
32023 #: ../src/guestfs.pod:530
32024 msgid ""
32025 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
32026 "will require the passphrase!"
32027 msgstr ""
32028
32029 #. type: textblock
32030 #: ../src/guestfs.pod:533
32031 msgid ""
32032 "Opening a LUKS device creates a new device mapper device called C</dev/"
32033 "mapper/mapname> (where C<mapname> is the string you supply to L</"
32034 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
32035 "from and encrypted to the underlying block device respectively."
32036 msgstr ""
32037
32038 #. type: textblock
32039 #: ../src/guestfs.pod:539
32040 msgid ""
32041 "LVM volume groups on the device can be made visible by calling L</"
32042 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
32043 "(s) can now be mounted in the usual way."
32044 msgstr ""
32045
32046 #. type: textblock
32047 #: ../src/guestfs.pod:543
32048 msgid ""
32049 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
32050 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
32051 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
32052 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
32053 "underlying encrypted block device)."
32054 msgstr ""
32055
32056 #. type: =head2
32057 #: ../src/guestfs.pod:550
32058 msgid "INSPECTION"
32059 msgstr ""
32060
32061 #. type: textblock
32062 #: ../src/guestfs.pod:552
32063 msgid ""
32064 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
32065 "contains operating systems, an install CD or a live CD.  (These APIs used to "
32066 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
32067 "version 1.5.3 the most frequently used part of this library has been "
32068 "rewritten in C and moved into the core code)."
32069 msgstr ""
32070
32071 #. type: textblock
32072 #: ../src/guestfs.pod:559
32073 msgid ""
32074 "Add all disks belonging to the unknown virtual machine and call L</"
32075 "guestfs_launch> in the usual way."
32076 msgstr ""
32077
32078 #. type: textblock
32079 #: ../src/guestfs.pod:562
32080 msgid ""
32081 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
32082 "and certain heuristics, and returns a list of operating systems that were "
32083 "found.  An empty list means none were found.  A single element is the root "
32084 "filesystem of the operating system.  For dual- or multi-boot guests, "
32085 "multiple roots can be returned, each one corresponding to a separate "
32086 "operating system.  (Multi-boot virtual machines are extremely rare in the "
32087 "world of virtualization, but since this scenario can happen, we have built "
32088 "libguestfs to deal with it.)"
32089 msgstr ""
32090
32091 #. type: textblock
32092 #: ../src/guestfs.pod:571
32093 msgid ""
32094 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
32095 "to get additional details about that operating system.  For example, call L</"
32096 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
32097 "Windows and Linux-based operating systems respectively."
32098 msgstr ""
32099
32100 #. type: textblock
32101 #: ../src/guestfs.pod:577
32102 msgid ""
32103 "Un*x-like and Linux-based operating systems usually consist of several "
32104 "filesystems which are mounted at boot time (for example, a separate boot "
32105 "partition mounted on C</boot>).  The inspection rules are able to detect how "
32106 "filesystems correspond to mount points.  Call "
32107 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
32108 "hash table like this example:"
32109 msgstr ""
32110
32111 #. type: verbatim
32112 #: ../src/guestfs.pod:584
32113 #, no-wrap
32114 msgid ""
32115 " /boot => /dev/sda1\n"
32116 " /     => /dev/vg_guest/lv_root\n"
32117 " /usr  => /dev/vg_guest/lv_usr\n"
32118 "\n"
32119 msgstr ""
32120
32121 #. type: textblock
32122 #: ../src/guestfs.pod:588
32123 msgid ""
32124 "The caller can then make calls to L</guestfs_mount_options> to mount the "
32125 "filesystems as suggested."
32126 msgstr ""
32127
32128 #. type: textblock
32129 #: ../src/guestfs.pod:591
32130 msgid ""
32131 "Be careful to mount filesystems in the right order (eg. C</> before C</"
32132 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
32133 msgstr ""
32134
32135 #. type: textblock
32136 #: ../src/guestfs.pod:595
32137 msgid ""
32138 "Inspection currently only works for some common operating systems.  "
32139 "Contributors are welcome to send patches for other operating systems that we "
32140 "currently cannot detect."
32141 msgstr ""
32142
32143 #. type: textblock
32144 #: ../src/guestfs.pod:599
32145 msgid ""
32146 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
32147 "for more details.  The L</guestfs_inspect_os> function just ignores any "
32148 "encrypted devices."
32149 msgstr ""
32150
32151 #. type: textblock
32152 #: ../src/guestfs.pod:603
32153 msgid ""
32154 "A note on the implementation: The call L</guestfs_inspect_os> performs "
32155 "inspection and caches the results in the guest handle.  Subsequent calls to "
32156 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
32157 "read the disks.  If you change the content of the guest disks, you can redo "
32158 "inspection by calling L</guestfs_inspect_os> again.  (L</"
32159 "guestfs_inspect_list_applications> works a little differently from the other "
32160 "calls and does read the disks.  See documentation for that function for "
32161 "details)."
32162 msgstr ""
32163
32164 #. type: =head3
32165 #: ../src/guestfs.pod:612
32166 msgid "INSPECTING INSTALL DISKS"
32167 msgstr ""
32168
32169 #. type: textblock
32170 #: ../src/guestfs.pod:614
32171 msgid ""
32172 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
32173 "CDs and more."
32174 msgstr ""
32175
32176 #. type: textblock
32177 #: ../src/guestfs.pod:617
32178 msgid ""
32179 "Call L</guestfs_inspect_get_format> to return the format of the operating "
32180 "system, which currently can be C<installed> (a regular operating system) or "
32181 "C<installer> (some sort of install disk)."
32182 msgstr ""
32183
32184 #. type: textblock
32185 #: ../src/guestfs.pod:621
32186 msgid ""
32187 "Further information is available about the operating system that can be "
32188 "installed using the regular inspection APIs like L</"
32189 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
32190 msgstr ""
32191
32192 #. type: textblock
32193 #: ../src/guestfs.pod:626
32194 msgid ""
32195 "Some additional information specific to installer disks is also available "
32196 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
32197 "guestfs_inspect_is_multipart> calls."
32198 msgstr ""
32199
32200 #. type: =head2
32201 #: ../src/guestfs.pod:631
32202 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
32203 msgstr ""
32204
32205 #. type: textblock
32206 #: ../src/guestfs.pod:633
32207 msgid ""
32208 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
32209 "ntfs-3g.org/> driver."
32210 msgstr ""
32211
32212 #. type: =head3
32213 #: ../src/guestfs.pod:636
32214 msgid "DRIVE LETTERS AND PATHS"
32215 msgstr ""
32216
32217 #. type: textblock
32218 #: ../src/guestfs.pod:638
32219 msgid ""
32220 "DOS and Windows still use drive letters, and the filesystems are always "
32221 "treated as case insensitive by Windows itself, and therefore you might find "
32222 "a Windows configuration file referring to a path like C<c:\\windows"
32223 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
32224 "might be referred to as C</WINDOWS/System32>."
32225 msgstr ""
32226
32227 #. type: textblock
32228 #: ../src/guestfs.pod:644
32229 msgid ""
32230 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
32231 "L</guestfs_inspect_get_drive_mappings>)"
32232 msgstr ""
32233
32234 #. type: textblock
32235 #: ../src/guestfs.pod:647
32236 msgid ""
32237 "Dealing with separator characters (backslash vs forward slash) is outside "
32238 "the scope of libguestfs, but usually a simple character replacement will "
32239 "work."
32240 msgstr ""
32241
32242 #. type: textblock
32243 #: ../src/guestfs.pod:651
32244 msgid ""
32245 "To resolve the case insensitivity of paths, call L</"
32246 "guestfs_case_sensitive_path>."
32247 msgstr ""
32248
32249 #. type: =head3
32250 #: ../src/guestfs.pod:654
32251 msgid "ACCESSING THE WINDOWS REGISTRY"
32252 msgstr ""
32253
32254 #. type: textblock
32255 #: ../src/guestfs.pod:656
32256 msgid ""
32257 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
32258 "files, through the library C<hivex> which is part of the libguestfs project "
32259 "although ships as a separate tarball.  You have to locate and download the "
32260 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
32261 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
32262 "reg(1)> for more help on this issue."
32263 msgstr ""
32264
32265 #. type: =head3
32266 #: ../src/guestfs.pod:664
32267 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
32268 msgstr ""
32269
32270 #. type: textblock
32271 #: ../src/guestfs.pod:666
32272 msgid ""
32273 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
32274 "provide something which looks like a Linux symlink.  The way it tries to do "
32275 "the rewriting is described here:"
32276 msgstr ""
32277
32278 #. type: textblock
32279 #: ../src/guestfs.pod:670
32280 msgid ""
32281 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
32282 "symbolic-links/>"
32283 msgstr ""
32284
32285 #. type: textblock
32286 #: ../src/guestfs.pod:672
32287 msgid ""
32288 "The essential problem is that ntfs-3g simply does not have enough "
32289 "information to do a correct job.  NTFS links can contain drive letters and "
32290 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
32291 "It is almost certainly the case that libguestfs callers should ignore what "
32292 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
32293 msgstr ""
32294
32295 #. type: textblock
32296 #: ../src/guestfs.pod:679
32297 msgid ""
32298 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
32299 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
32300 "attribute, and read the raw reparse data from that (you can find the format "
32301 "documented in various places around the web)."
32302 msgstr ""
32303
32304 #. type: =head3
32305 #: ../src/guestfs.pod:684
32306 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
32307 msgstr ""
32308
32309 #. type: textblock
32310 #: ../src/guestfs.pod:686
32311 msgid ""
32312 "There are other useful extended attributes that can be read from ntfs-3g "
32313 "filesystems (using L</guestfs_getxattr>).  See:"
32314 msgstr ""
32315
32316 #. type: textblock
32317 #: ../src/guestfs.pod:689
32318 msgid ""
32319 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
32320 msgstr ""
32321
32322 #. type: =head2
32323 #: ../src/guestfs.pod:691
32324 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
32325 msgstr ""
32326
32327 #. type: textblock
32328 #: ../src/guestfs.pod:693
32329 msgid ""
32330 "Although we don't want to discourage you from using the C API, we will "
32331 "mention here that the same API is also available in other languages."
32332 msgstr ""
32333
32334 #. type: textblock
32335 #: ../src/guestfs.pod:696
32336 msgid ""
32337 "The API is broadly identical in all supported languages.  This means that "
32338 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
32339 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
32340 "OCaml.  In other words, a straightforward, predictable isomorphism between "
32341 "each language."
32342 msgstr ""
32343
32344 #. type: textblock
32345 #: ../src/guestfs.pod:702
32346 msgid ""
32347 "Error messages are automatically transformed into exceptions if the language "
32348 "supports it."
32349 msgstr ""
32350
32351 #. type: textblock
32352 #: ../src/guestfs.pod:705
32353 msgid ""
32354 "We don't try to \"object orientify\" parts of the API in OO languages, "
32355 "although contributors are welcome to write higher level APIs above what we "
32356 "provide in their favourite languages if they wish."
32357 msgstr ""
32358
32359 #. type: =item
32360 #: ../src/guestfs.pod:711
32361 msgid "B<C++>"
32362 msgstr ""
32363
32364 #. type: textblock
32365 #: ../src/guestfs.pod:713
32366 msgid ""
32367 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
32368 "identical to the C API.  C++ classes and exceptions are not used."
32369 msgstr ""
32370
32371 #. type: =item
32372 #: ../src/guestfs.pod:717
32373 msgid "B<C#>"
32374 msgstr ""
32375
32376 #. type: textblock
32377 #: ../src/guestfs.pod:719
32378 msgid ""
32379 "The C# bindings are highly experimental.  Please read the warnings at the "
32380 "top of C<csharp/Libguestfs.cs>."
32381 msgstr ""
32382
32383 #. type: =item
32384 #: ../src/guestfs.pod:722
32385 msgid "B<Haskell>"
32386 msgstr ""
32387
32388 #. type: textblock
32389 #: ../src/guestfs.pod:724
32390 msgid ""
32391 "This is the only language binding that is working but incomplete.  Only "
32392 "calls which return simple integers have been bound in Haskell, and we are "
32393 "looking for help to complete this binding."
32394 msgstr ""
32395
32396 #. type: =item
32397 #: ../src/guestfs.pod:728
32398 msgid "B<Java>"
32399 msgstr ""
32400
32401 #. type: textblock
32402 #: ../src/guestfs.pod:730
32403 msgid ""
32404 "Full documentation is contained in the Javadoc which is distributed with "
32405 "libguestfs.  For examples, see L<guestfs-java(3)>."
32406 msgstr ""
32407
32408 #. type: =item
32409 #: ../src/guestfs.pod:733
32410 msgid "B<OCaml>"
32411 msgstr ""
32412
32413 #. type: textblock
32414 #: ../src/guestfs.pod:735
32415 msgid "See L<guestfs-ocaml(3)>."
32416 msgstr ""
32417
32418 #. type: =item
32419 #: ../src/guestfs.pod:737
32420 msgid "B<Perl>"
32421 msgstr ""
32422
32423 #. type: textblock
32424 #: ../src/guestfs.pod:739
32425 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
32426 msgstr ""
32427
32428 #. type: =item
32429 #: ../src/guestfs.pod:741
32430 msgid "B<PHP>"
32431 msgstr ""
32432
32433 #. type: textblock
32434 #: ../src/guestfs.pod:743
32435 msgid ""
32436 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
32437 "the php-libguestfs package for your distribution."
32438 msgstr ""
32439
32440 #. type: textblock
32441 #: ../src/guestfs.pod:746
32442 msgid "The PHP binding only works correctly on 64 bit machines."
32443 msgstr ""
32444
32445 #. type: =item
32446 #: ../src/guestfs.pod:748
32447 msgid "B<Python>"
32448 msgstr ""
32449
32450 #. type: textblock
32451 #: ../src/guestfs.pod:750
32452 msgid "See L<guestfs-python(3)>."
32453 msgstr ""
32454
32455 #. type: =item
32456 #: ../src/guestfs.pod:752
32457 msgid "B<Ruby>"
32458 msgstr ""
32459
32460 #. type: textblock
32461 #: ../src/guestfs.pod:754
32462 msgid "See L<guestfs-ruby(3)>."
32463 msgstr ""
32464
32465 #. type: =item
32466 #: ../src/guestfs.pod:756
32467 msgid "B<shell scripts>"
32468 msgstr ""
32469
32470 #. type: textblock
32471 #: ../src/guestfs.pod:758
32472 msgid "See L<guestfish(1)>."
32473 msgstr ""
32474
32475 #. type: =head2
32476 #: ../src/guestfs.pod:762
32477 msgid "LIBGUESTFS GOTCHAS"
32478 msgstr ""
32479
32480 #. type: textblock
32481 #: ../src/guestfs.pod:764
32482 msgid ""
32483 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
32484 "system [...] that works in the way it is documented but is counterintuitive "
32485 "and almost invites mistakes.\""
32486 msgstr ""
32487
32488 #. type: textblock
32489 #: ../src/guestfs.pod:768
32490 msgid ""
32491 "Since we developed libguestfs and the associated tools, there are several "
32492 "things we would have designed differently, but are now stuck with for "
32493 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
32494 "release, you can expect these to change.  Beware of them."
32495 msgstr ""
32496
32497 #. type: =item
32498 #: ../src/guestfs.pod:776
32499 msgid "Autosync / forgetting to sync."
32500 msgstr ""
32501
32502 #. type: textblock
32503 #: ../src/guestfs.pod:778
32504 msgid ""
32505 "I<Update:> Autosync is enabled by default for all API users starting from "
32506 "libguestfs 1.5.24.  This section only applies to older versions."
32507 msgstr ""
32508
32509 #. type: textblock
32510 #: ../src/guestfs.pod:781
32511 msgid ""
32512 "When modifying a filesystem from C or another language, you B<must> unmount "
32513 "all filesystems and call L</guestfs_sync> explicitly before you close the "
32514 "libguestfs handle.  You can also call:"
32515 msgstr ""
32516
32517 #. type: verbatim
32518 #: ../src/guestfs.pod:785
32519 #, no-wrap
32520 msgid ""
32521 " guestfs_set_autosync (g, 1);\n"
32522 "\n"
32523 msgstr ""
32524
32525 #. type: textblock
32526 #: ../src/guestfs.pod:787
32527 msgid ""
32528 "to have the unmount/sync done automatically for you when the handle 'g' is "
32529 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
32530 msgstr ""
32531
32532 #. type: textblock
32533 #: ../src/guestfs.pod:791
32534 msgid ""
32535 "If you forget to do this, then it is entirely possible that your changes "
32536 "won't be written out, or will be partially written, or (very rarely) that "
32537 "you'll get disk corruption."
32538 msgstr ""
32539
32540 #. type: textblock
32541 #: ../src/guestfs.pod:795
32542 msgid ""
32543 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
32544 "guestfish scripts that forget to sync will work just fine, which can make "
32545 "this very puzzling if you are trying to debug a problem."
32546 msgstr ""
32547
32548 #. type: =item
32549 #: ../src/guestfs.pod:799
32550 msgid "Mount option C<-o sync> should not be the default."
32551 msgstr ""
32552
32553 #. type: textblock
32554 #: ../src/guestfs.pod:801
32555 msgid ""
32556 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
32557 "However C<-o sync> does not add any reliability benefit, but does have a "
32558 "very large performance impact."
32559 msgstr ""
32560
32561 #. type: textblock
32562 #: ../src/guestfs.pod:805
32563 msgid ""
32564 "The work around is to use L</guestfs_mount_options> and set the mount "
32565 "options that you actually want to use."
32566 msgstr ""
32567
32568 #. type: =item
32569 #: ../src/guestfs.pod:808
32570 msgid "Read-only should be the default."
32571 msgstr ""
32572
32573 #. type: textblock
32574 #: ../src/guestfs.pod:810
32575 msgid ""
32576 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
32577 "specify I<--rw> if you want to make changes to the image."
32578 msgstr ""
32579
32580 #. type: textblock
32581 #: ../src/guestfs.pod:813
32582 msgid "This would reduce the potential to corrupt live VM images."
32583 msgstr ""
32584
32585 #. type: textblock
32586 #: ../src/guestfs.pod:815
32587 msgid ""
32588 "Note that many filesystems change the disk when you just mount and unmount, "
32589 "even if you didn't perform any writes.  You need to use L</"
32590 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
32591 msgstr ""
32592
32593 #. type: =item
32594 #: ../src/guestfs.pod:819
32595 msgid "guestfish command line is hard to use."
32596 msgstr ""
32597
32598 #. type: textblock
32599 #: ../src/guestfs.pod:821
32600 msgid ""
32601 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
32602 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
32603 "exist, so it fails.  In earlier versions of guestfish the error message was "
32604 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
32605 "we should have used C<guestfish -c command> to run commands."
32606 msgstr ""
32607
32608 #. type: =item
32609 #: ../src/guestfs.pod:828
32610 msgid "guestfish megabyte modifiers don't work right on all commands"
32611 msgstr ""
32612
32613 #. type: textblock
32614 #: ../src/guestfs.pod:830
32615 msgid ""
32616 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
32617 "other modifiers).  What guestfish actually does is to multiply the number "
32618 "part by the modifier part and pass the result to the C API.  However this "
32619 "doesn't work for a few APIs which aren't expecting bytes, but are already "
32620 "expecting some other unit (eg. megabytes)."
32621 msgstr ""
32622
32623 #. type: textblock
32624 #: ../src/guestfs.pod:837
32625 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
32626 msgstr ""
32627
32628 #. type: verbatim
32629 #: ../src/guestfs.pod:839
32630 #, no-wrap
32631 msgid ""
32632 " lvcreate LV VG 100M\n"
32633 "\n"
32634 msgstr ""
32635
32636 #. type: textblock
32637 #: ../src/guestfs.pod:841
32638 msgid ""
32639 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
32640 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
32641 "megabytes * megabytes) logical volume.  The error message you get from this "
32642 "is also a little obscure."
32643 msgstr ""
32644
32645 #. type: textblock
32646 #: ../src/guestfs.pod:846
32647 msgid ""
32648 "This could be fixed in the generator by specially marking parameters and "
32649 "return values which take bytes or other units."
32650 msgstr ""
32651
32652 #. type: =item
32653 #: ../src/guestfs.pod:849
32654 msgid "Ambiguity between devices and paths"
32655 msgstr ""
32656
32657 #. type: textblock
32658 #: ../src/guestfs.pod:851
32659 msgid ""
32660 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
32661 "sdb2>) and a similar pathname.  A file might just happen to be called "
32662 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
32663 msgstr ""
32664
32665 #. type: textblock
32666 #: ../src/guestfs.pod:856
32667 msgid ""
32668 "In the current API we usually resolve this ambiguity by having two separate "
32669 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
32670 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
32671 "detecting if the path supplied begins with C</dev/>."
32672 msgstr ""
32673
32674 #. type: textblock
32675 #: ../src/guestfs.pod:862
32676 msgid ""
32677 "To avoid both the ambiguity and the need to duplicate some calls, we could "
32678 "make paths/devices into structured names.  One way to do this would be to "
32679 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
32680 "aspect of grub.  Another way would be to use a structured type, equivalent "
32681 "to this OCaml type:"
32682 msgstr ""
32683
32684 #. type: verbatim
32685 #: ../src/guestfs.pod:868
32686 #, no-wrap
32687 msgid ""
32688 " type path = Path of string | Device of int | Partition of int * int\n"
32689 "\n"
32690 msgstr ""
32691
32692 #. type: textblock
32693 #: ../src/guestfs.pod:870
32694 msgid "which would allow you to pass arguments like:"
32695 msgstr ""
32696
32697 #. type: verbatim
32698 #: ../src/guestfs.pod:872
32699 #, no-wrap
32700 msgid ""
32701 " Path \"/foo/bar\"\n"
32702 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
32703 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
32704 " Path \"/dev/sdb2\"    (* not a device *)\n"
32705 "\n"
32706 msgstr ""
32707
32708 #. type: textblock
32709 #: ../src/guestfs.pod:877
32710 msgid ""
32711 "As you can see there are still problems to resolve even with this "
32712 "representation.  Also consider how it might work in guestfish."
32713 msgstr ""
32714
32715 #. type: =head2
32716 #: ../src/guestfs.pod:882
32717 msgid "KEYS AND PASSPHRASES"
32718 msgstr ""
32719
32720 #. type: textblock
32721 #: ../src/guestfs.pod:884
32722 msgid ""
32723 "Certain libguestfs calls take a parameter that contains sensitive key "
32724 "material, passed in as a C string."
32725 msgstr ""
32726
32727 #. type: textblock
32728 #: ../src/guestfs.pod:887
32729 msgid ""
32730 "In the future we would hope to change the libguestfs implementation so that "
32731 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
32732 "swap.  However this is I<not> done at the moment, because of the complexity "
32733 "of such an implementation."
32734 msgstr ""
32735
32736 #. type: textblock
32737 #: ../src/guestfs.pod:892
32738 msgid ""
32739 "Therefore you should be aware that any key parameter you pass to libguestfs "
32740 "might end up being written out to the swap partition.  If this is a concern, "
32741 "scrub the swap partition or don't use libguestfs on encrypted devices."
32742 msgstr ""
32743
32744 #. type: =head2
32745 #: ../src/guestfs.pod:897
32746 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
32747 msgstr ""
32748
32749 #. type: textblock
32750 #: ../src/guestfs.pod:899
32751 msgid ""
32752 "All high-level libguestfs actions are synchronous.  If you want to use "
32753 "libguestfs asynchronously then you must create a thread."
32754 msgstr ""
32755
32756 #. type: textblock
32757 #: ../src/guestfs.pod:902
32758 msgid ""
32759 "Only use the handle from a single thread.  Either use the handle exclusively "
32760 "from one thread, or provide your own mutex so that two threads cannot issue "
32761 "calls on the same handle at the same time."
32762 msgstr ""
32763
32764 #. type: textblock
32765 #: ../src/guestfs.pod:906
32766 msgid ""
32767 "See the graphical program guestfs-browser for one possible architecture for "
32768 "multithreaded programs using libvirt and libguestfs."
32769 msgstr ""
32770
32771 #. type: =head2
32772 #: ../src/guestfs.pod:909
32773 msgid "PATH"
32774 msgstr ""
32775
32776 #. type: textblock
32777 #: ../src/guestfs.pod:911
32778 msgid ""
32779 "Libguestfs needs a supermin appliance, which it finds by looking along an "
32780 "internal path."
32781 msgstr ""
32782
32783 #. type: textblock
32784 #: ../src/guestfs.pod:914
32785 msgid ""
32786 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
32787 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
32788 msgstr ""
32789
32790 #. type: textblock
32791 #: ../src/guestfs.pod:917
32792 msgid ""
32793 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
32794 "to change the directories that libguestfs will search in.  The value is a "
32795 "colon-separated list of paths.  The current directory is I<not> searched "
32796 "unless the path contains an empty element or C<.>.  For example "
32797 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
32798 "then C</usr/lib/guestfs>."
32799 msgstr ""
32800
32801 #. type: =head2
32802 #: ../src/guestfs.pod:924
32803 msgid "QEMU WRAPPERS"
32804 msgstr ""
32805
32806 #. type: textblock
32807 #: ../src/guestfs.pod:926
32808 msgid ""
32809 "If you want to compile your own qemu, run qemu from a non-standard location, "
32810 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
32811 "around qemu."
32812 msgstr ""
32813
32814 #. type: textblock
32815 #: ../src/guestfs.pod:930
32816 msgid ""
32817 "There is one important rule to remember: you I<must C<exec qemu>> as the "
32818 "last command in the shell script (so that qemu replaces the shell and "
32819 "becomes the direct child of the libguestfs-using program).  If you don't do "
32820 "this, then the qemu process won't be cleaned up correctly."
32821 msgstr ""
32822
32823 #. type: textblock
32824 #: ../src/guestfs.pod:935
32825 msgid ""
32826 "Here is an example of a wrapper, where I have built my own copy of qemu from "
32827 "source:"
32828 msgstr ""
32829
32830 #. type: verbatim
32831 #: ../src/guestfs.pod:938
32832 #, no-wrap
32833 msgid ""
32834 " #!/bin/sh -\n"
32835 " qemudir=/home/rjones/d/qemu\n"
32836 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
32837 "\n"
32838 msgstr ""
32839
32840 #. type: textblock
32841 #: ../src/guestfs.pod:942
32842 msgid ""
32843 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
32844 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
32845 "example:"
32846 msgstr ""
32847
32848 #. type: verbatim
32849 #: ../src/guestfs.pod:946
32850 #, no-wrap
32851 msgid ""
32852 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
32853 "\n"
32854 msgstr ""
32855
32856 #. type: textblock
32857 #: ../src/guestfs.pod:948
32858 msgid ""
32859 "Note that libguestfs also calls qemu with the -help and -version options in "
32860 "order to determine features."
32861 msgstr ""
32862
32863 #. type: =head2
32864 #: ../src/guestfs.pod:951
32865 msgid "ATTACHING TO RUNNING DAEMONS"
32866 msgstr ""
32867
32868 #. type: textblock
32869 #: ../src/guestfs.pod:953
32870 msgid ""
32871 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
32872 "babies.  Use with caution."
32873 msgstr ""
32874
32875 #. type: textblock
32876 #: ../src/guestfs.pod:956
32877 msgid ""
32878 "I<Note (2):> This section explains how to attach to a running daemon from a "
32879 "low level perspective.  For most users, simply using virt tools such as "
32880 "L<guestfish(1)> with the I<--live> option will \"just work\"."
32881 msgstr ""
32882
32883 #. type: =head3
32884 #: ../src/guestfs.pod:960
32885 msgid "Using guestfs_set_attach_method"
32886 msgstr ""
32887
32888 #. type: textblock
32889 #: ../src/guestfs.pod:962
32890 msgid ""
32891 "By calling L</guestfs_set_attach_method> you can change how the library "
32892 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
32893 "ARCHITECTURE> for some background)."
32894 msgstr ""
32895
32896 #. type: textblock
32897 #: ../src/guestfs.pod:966
32898 msgid ""
32899 "The normal attach method is C<appliance>, where a small appliance is created "
32900 "containing the daemon, and then the library connects to this."
32901 msgstr ""
32902
32903 #. type: textblock
32904 #: ../src/guestfs.pod:969
32905 msgid ""
32906 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
32907 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
32908 "daemon over the Unix domain socket."
32909 msgstr ""
32910
32911 #. type: textblock
32912 #: ../src/guestfs.pod:973
32913 msgid ""
32914 "The normal use for this is to connect to a running virtual machine that "
32915 "contains a C<guestfsd> daemon, and send commands so you can read and write "
32916 "files inside the live virtual machine."
32917 msgstr ""
32918
32919 #. type: =head3
32920 #: ../src/guestfs.pod:977
32921 msgid "Using guestfs_add_domain with live flag"
32922 msgstr ""
32923
32924 #. type: textblock
32925 #: ../src/guestfs.pod:979
32926 msgid ""
32927 "L</guestfs_add_domain> provides some help for getting the correct attach "
32928 "method.  If you pass the C<live> option to this function, then (if the "
32929 "virtual machine is running) it will examine the libvirt XML looking for a "
32930 "virtio-serial channel to connect to:"
32931 msgstr ""
32932
32933 #. type: verbatim
32934 #: ../src/guestfs.pod:985
32935 #, no-wrap
32936 msgid ""
32937 " <domain>\n"
32938 "   ...\n"
32939 "   <devices>\n"
32940 "     ...\n"
32941 "     <channel type='unix'>\n"
32942 "       <source mode='bind' path='/path/to/socket'/>\n"
32943 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
32944 "     </channel>\n"
32945 "     ...\n"
32946 "   </devices>\n"
32947 " </domain>\n"
32948 "\n"
32949 msgstr ""
32950
32951 #. type: textblock
32952 #: ../src/guestfs.pod:997
32953 msgid ""
32954 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
32955 "method to C<unix:/path/to/socket>."
32956 msgstr ""
32957
32958 #. type: textblock
32959 #: ../src/guestfs.pod:1000
32960 msgid ""
32961 "Some of the libguestfs tools (including guestfish) support a I<--live> "
32962 "option which is passed through to L</guestfs_add_domain> thus allowing you "
32963 "to attach to and modify live virtual machines."
32964 msgstr ""
32965
32966 #. type: textblock
32967 #: ../src/guestfs.pod:1004
32968 msgid ""
32969 "The virtual machine needs to have been set up beforehand so that it has the "
32970 "virtio-serial channel and so that guestfsd is running inside it."
32971 msgstr ""
32972
32973 #. type: =head2
32974 #: ../src/guestfs.pod:1008
32975 msgid "ABI GUARANTEE"
32976 msgstr ""
32977
32978 #. type: textblock
32979 #: ../src/guestfs.pod:1010
32980 msgid ""
32981 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
32982 "actions as outlined in this section.  Although we will deprecate some "
32983 "actions, for example if they get replaced by newer calls, we will keep the "
32984 "old actions forever.  This allows you the developer to program in confidence "
32985 "against the libguestfs API."
32986 msgstr ""
32987
32988 #. type: =head2
32989 #: ../src/guestfs.pod:1016
32990 msgid "BLOCK DEVICE NAMING"
32991 msgstr ""
32992
32993 #. type: textblock
32994 #: ../src/guestfs.pod:1018
32995 msgid ""
32996 "In the kernel there is now quite a profusion of schemata for naming block "
32997 "devices (in this context, by I<block device> I mean a physical or virtual "
32998 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
32999 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
33000 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
33001 "for the old IDE driver (particularly for SATA devices) those devices also "
33002 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
33003 "paravirtualized drivers.  This has created several different naming systems, "
33004 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
33005 msgstr ""
33006
33007 #. type: textblock
33008 #: ../src/guestfs.pod:1030
33009 msgid ""
33010 "As discussed above, libguestfs uses a qemu appliance running an embedded "
33011 "Linux kernel to access block devices.  We can run a variety of appliances "
33012 "based on a variety of Linux kernels."
33013 msgstr ""
33014
33015 #. type: textblock
33016 #: ../src/guestfs.pod:1034
33017 msgid ""
33018 "This causes a problem for libguestfs because many API calls use device or "
33019 "partition names.  Working scripts and the recipe (example) scripts that we "
33020 "make available over the internet could fail if the naming scheme changes."
33021 msgstr ""
33022
33023 #. type: textblock
33024 #: ../src/guestfs.pod:1039
33025 msgid ""
33026 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
33027 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
33028 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
33029 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
33030 msgstr ""
33031
33032 #. type: textblock
33033 #: ../src/guestfs.pod:1045
33034 msgid ""
33035 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
33036 "L</guestfs_list_partitions> and similar calls return the true names of the "
33037 "devices and partitions as known to the appliance."
33038 msgstr ""
33039
33040 #. type: =head3
33041 #: ../src/guestfs.pod:1050
33042 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
33043 msgstr ""
33044
33045 #. type: textblock
33046 #: ../src/guestfs.pod:1052
33047 msgid ""
33048 "Usually this translation is transparent.  However in some (very rare)  cases "
33049 "you may need to know the exact algorithm.  Such cases include where you use "
33050 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
33051 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
33052 msgstr ""
33053
33054 #. type: textblock
33055 #: ../src/guestfs.pod:1058
33056 msgid ""
33057 "The algorithm is applied only to I<parameters> which are known to be either "
33058 "device or partition names.  Return values from functions such as L</"
33059 "guestfs_list_devices> are never changed."
33060 msgstr ""
33061
33062 #. type: textblock
33063 #: ../src/guestfs.pod:1066
33064 msgid "Is the string a parameter which is a device or partition name?"
33065 msgstr ""
33066
33067 #. type: textblock
33068 #: ../src/guestfs.pod:1070
33069 msgid "Does the string begin with C</dev/sd>?"
33070 msgstr ""
33071
33072 #. type: textblock
33073 #: ../src/guestfs.pod:1074
33074 msgid ""
33075 "Does the named device exist? If so, we use that device.  However if I<not> "
33076 "then we continue with this algorithm."
33077 msgstr ""
33078
33079 #. type: textblock
33080 #: ../src/guestfs.pod:1079
33081 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
33082 msgstr ""
33083
33084 #. type: textblock
33085 #: ../src/guestfs.pod:1081
33086 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
33087 msgstr ""
33088
33089 #. type: textblock
33090 #: ../src/guestfs.pod:1083
33091 msgid "If that named device exists, use it.  If not, continue."
33092 msgstr ""
33093
33094 #. type: textblock
33095 #: ../src/guestfs.pod:1087
33096 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
33097 msgstr ""
33098
33099 #. type: textblock
33100 #: ../src/guestfs.pod:1089
33101 msgid "If that named device exists, use it.  If not, return an error."
33102 msgstr ""
33103
33104 #. type: =head3
33105 #: ../src/guestfs.pod:1093
33106 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
33107 msgstr ""
33108
33109 #. type: textblock
33110 #: ../src/guestfs.pod:1095
33111 msgid ""
33112 "Although the standard naming scheme and automatic translation is useful for "
33113 "simple programs and guestfish scripts, for larger programs it is best not to "
33114 "rely on this mechanism."
33115 msgstr ""
33116
33117 #. type: textblock
33118 #: ../src/guestfs.pod:1099
33119 msgid ""
33120 "Where possible for maximum future portability programs using libguestfs "
33121 "should use these future-proof techniques:"
33122 msgstr ""
33123
33124 #. type: textblock
33125 #: ../src/guestfs.pod:1106
33126 msgid ""
33127 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
33128 "device names, and then use those names directly."
33129 msgstr ""
33130
33131 #. type: textblock
33132 #: ../src/guestfs.pod:1109
33133 msgid ""
33134 "Since those device names exist by definition, they will never be translated."
33135 msgstr ""
33136
33137 #. type: textblock
33138 #: ../src/guestfs.pod:1114
33139 msgid ""
33140 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
33141 "filesystem labels."
33142 msgstr ""
33143
33144 #. type: =head1
33145 #: ../src/guestfs.pod:1119
33146 msgid "SECURITY"
33147 msgstr ""
33148
33149 #. type: textblock
33150 #: ../src/guestfs.pod:1121
33151 msgid ""
33152 "This section discusses security implications of using libguestfs, "
33153 "particularly with untrusted or malicious guests or disk images."
33154 msgstr ""
33155
33156 #. type: =head2
33157 #: ../src/guestfs.pod:1124
33158 msgid "GENERAL SECURITY CONSIDERATIONS"
33159 msgstr ""
33160
33161 #. type: textblock
33162 #: ../src/guestfs.pod:1126
33163 msgid ""
33164 "Be careful with any files or data that you download from a guest (by "
33165 "\"download\" we mean not just the L</guestfs_download> command but any "
33166 "command that reads files, filenames, directories or anything else from a "
33167 "disk image).  An attacker could manipulate the data to fool your program "
33168 "into doing the wrong thing.  Consider cases such as:"
33169 msgstr ""
33170
33171 #. type: textblock
33172 #: ../src/guestfs.pod:1136
33173 msgid "the data (file etc) not being present"
33174 msgstr ""
33175
33176 #. type: textblock
33177 #: ../src/guestfs.pod:1140
33178 msgid "being present but empty"
33179 msgstr ""
33180
33181 #. type: textblock
33182 #: ../src/guestfs.pod:1144
33183 msgid "being much larger than normal"
33184 msgstr ""
33185
33186 #. type: textblock
33187 #: ../src/guestfs.pod:1148
33188 msgid "containing arbitrary 8 bit data"
33189 msgstr ""
33190
33191 #. type: textblock
33192 #: ../src/guestfs.pod:1152
33193 msgid "being in an unexpected character encoding"
33194 msgstr ""
33195
33196 #. type: textblock
33197 #: ../src/guestfs.pod:1156
33198 msgid "containing homoglyphs."
33199 msgstr ""
33200
33201 #. type: =head2
33202 #: ../src/guestfs.pod:1160
33203 msgid "SECURITY OF MOUNTING FILESYSTEMS"
33204 msgstr ""
33205
33206 #. type: textblock
33207 #: ../src/guestfs.pod:1162
33208 msgid ""
33209 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
33210 "(VFS) module can sometimes be escalated into exploits by deliberately "
33211 "creating a malicious, malformed filesystem.  These exploits are very severe "
33212 "for two reasons.  Firstly there are very many filesystem drivers in the "
33213 "kernel, and many of them are infrequently used and not much developer "
33214 "attention has been paid to the code.  Linux userspace helps potential "
33215 "crackers by detecting the filesystem type and automatically choosing the "
33216 "right VFS driver, even if that filesystem type is obscure or unexpected for "
33217 "the administrator.  Secondly, a kernel-level exploit is like a local root "
33218 "exploit (worse in some ways), giving immediate and total access to the "
33219 "system right down to the hardware level."
33220 msgstr ""
33221
33222 #. type: textblock
33223 #: ../src/guestfs.pod:1175
33224 msgid ""
33225 "That explains why you should never mount a filesystem from an untrusted "
33226 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
33227 "inside a qemu virtual machine, usually running as a non-root user.  The "
33228 "attacker would need to write a filesystem which first exploited the kernel, "
33229 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
33230 "the libguestfs protocol, and finally to be as serious as the host kernel "
33231 "exploit it would need to escalate its privileges to root.  This multi-step "
33232 "escalation, performed by a static piece of data, is thought to be extremely "
33233 "hard to do, although we never say 'never' about security issues."
33234 msgstr ""
33235
33236 #. type: textblock
33237 #: ../src/guestfs.pod:1186
33238 msgid ""
33239 "In any case callers can reduce the attack surface by forcing the filesystem "
33240 "type when mounting (use L</guestfs_mount_vfs>)."
33241 msgstr ""
33242
33243 #. type: =head2
33244 #: ../src/guestfs.pod:1189
33245 msgid "PROTOCOL SECURITY"
33246 msgstr ""
33247
33248 #. type: textblock
33249 #: ../src/guestfs.pod:1191
33250 msgid ""
33251 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
33252 "defined upper message size.  However a program that uses libguestfs must "
33253 "also take care - for example you can write a program that downloads a binary "
33254 "from a disk image and executes it locally, and no amount of protocol "
33255 "security will save you from the consequences."
33256 msgstr ""
33257
33258 #. type: =head2
33259 #: ../src/guestfs.pod:1197
33260 msgid "INSPECTION SECURITY"
33261 msgstr ""
33262
33263 #. type: textblock
33264 #: ../src/guestfs.pod:1199
33265 msgid ""
33266 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
33267 "directly from the guest, and these could contain any 8 bit data.  Callers "
33268 "should be careful to escape these before printing them to a structured file "
33269 "(for example, use HTML escaping if creating a web page)."
33270 msgstr ""
33271
33272 #. type: textblock
33273 #: ../src/guestfs.pod:1205
33274 msgid ""
33275 "Guest configuration may be altered in unusual ways by the administrator of "
33276 "the virtual machine, and may not reflect reality (particularly for untrusted "
33277 "or actively malicious guests).  For example we parse the hostname from "
33278 "configuration files like C</etc/sysconfig/network> that we find in the "
33279 "guest, but the guest administrator can easily manipulate these files to "
33280 "provide the wrong hostname."
33281 msgstr ""
33282
33283 #. type: textblock
33284 #: ../src/guestfs.pod:1213
33285 msgid ""
33286 "The inspection API parses guest configuration using two external libraries: "
33287 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
33288 "designed to be robust in the face of malicious data, although denial of "
33289 "service attacks are still possible, for example with oversized configuration "
33290 "files."
33291 msgstr ""
33292
33293 #. type: =head2
33294 #: ../src/guestfs.pod:1219
33295 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
33296 msgstr ""
33297
33298 #. type: textblock
33299 #: ../src/guestfs.pod:1221
33300 msgid ""
33301 "Be very cautious about running commands from the guest.  By running a "
33302 "command in the guest, you are giving CPU time to a binary that you do not "
33303 "control, under the same user account as the library, albeit wrapped in qemu "
33304 "virtualization.  More information and alternatives can be found in the "
33305 "section L</RUNNING COMMANDS>."
33306 msgstr ""
33307
33308 #. type: =head2
33309 #: ../src/guestfs.pod:1227
33310 msgid "CVE-2010-3851"
33311 msgstr ""
33312
33313 #. type: textblock
33314 #: ../src/guestfs.pod:1229
33315 msgid "https://bugzilla.redhat.com/642934"
33316 msgstr ""
33317
33318 #. type: textblock
33319 #: ../src/guestfs.pod:1231
33320 msgid ""
33321 "This security bug concerns the automatic disk format detection that qemu "
33322 "does on disk images."
33323 msgstr ""
33324
33325 #. type: textblock
33326 #: ../src/guestfs.pod:1234
33327 msgid ""
33328 "A raw disk image is just the raw bytes, there is no header.  Other disk "
33329 "images like qcow2 contain a special header.  Qemu deals with this by looking "
33330 "for one of the known headers, and if none is found then assuming the disk "
33331 "image must be raw."
33332 msgstr ""
33333
33334 #. type: textblock
33335 #: ../src/guestfs.pod:1239
33336 msgid ""
33337 "This allows a guest which has been given a raw disk image to write some "
33338 "other header.  At next boot (or when the disk image is accessed by "
33339 "libguestfs) qemu would do autodetection and think the disk image format was, "
33340 "say, qcow2 based on the header written by the guest."
33341 msgstr ""
33342
33343 #. type: textblock
33344 #: ../src/guestfs.pod:1244
33345 msgid ""
33346 "This in itself would not be a problem, but qcow2 offers many features, one "
33347 "of which is to allow a disk image to refer to another image (called the "
33348 "\"backing disk\").  It does this by placing the path to the backing disk "
33349 "into the qcow2 header.  This path is not validated and could point to any "
33350 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
33351 "\"holes\" in the qcow2 disk image, which of course is completely under the "
33352 "control of the attacker."
33353 msgstr ""
33354
33355 #. type: textblock
33356 #: ../src/guestfs.pod:1252
33357 msgid ""
33358 "In libguestfs this is rather hard to exploit except under two circumstances:"
33359 msgstr ""
33360
33361 #. type: textblock
33362 #: ../src/guestfs.pod:1259
33363 msgid "You have enabled the network or have opened the disk in write mode."
33364 msgstr ""
33365
33366 #. type: textblock
33367 #: ../src/guestfs.pod:1263
33368 msgid ""
33369 "You are also running untrusted code from the guest (see L</RUNNING "
33370 "COMMANDS>)."
33371 msgstr ""
33372
33373 #. type: textblock
33374 #: ../src/guestfs.pod:1268
33375 msgid ""
33376 "The way to avoid this is to specify the expected disk format when adding "
33377 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
33378 "should always do this if the disk is raw format, and it's a good idea for "
33379 "other cases too."
33380 msgstr ""
33381
33382 #. type: textblock
33383 #: ../src/guestfs.pod:1273
33384 msgid ""
33385 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
33386 "format is fetched from libvirt and passed through."
33387 msgstr ""
33388
33389 #. type: textblock
33390 #: ../src/guestfs.pod:1276
33391 msgid ""
33392 "For libguestfs tools, use the I<--format> command line parameter as "
33393 "appropriate."
33394 msgstr ""
33395
33396 #. type: =head1
33397 #: ../src/guestfs.pod:1279
33398 msgid "CONNECTION MANAGEMENT"
33399 msgstr ""
33400
33401 #. type: =head2
33402 #: ../src/guestfs.pod:1281
33403 msgid "guestfs_h *"
33404 msgstr ""
33405
33406 #. type: textblock
33407 #: ../src/guestfs.pod:1283
33408 msgid ""
33409 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
33410 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
33411 "handle and release all resources used."
33412 msgstr ""
33413
33414 #. type: textblock
33415 #: ../src/guestfs.pod:1287
33416 msgid ""
33417 "For information on using multiple handles and threads, see the section L</"
33418 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
33419 msgstr ""
33420
33421 #. type: =head2
33422 #: ../src/guestfs.pod:1290
33423 msgid "guestfs_create"
33424 msgstr ""
33425
33426 #. type: verbatim
33427 #: ../src/guestfs.pod:1292
33428 #, no-wrap
33429 msgid ""
33430 " guestfs_h *guestfs_create (void);\n"
33431 "\n"
33432 msgstr ""
33433
33434 #. type: textblock
33435 #: ../src/guestfs.pod:1294
33436 msgid "Create a connection handle."
33437 msgstr ""
33438
33439 #. type: textblock
33440 #: ../src/guestfs.pod:1296
33441 msgid ""
33442 "On success this returns a non-NULL pointer to a handle.  On error it returns "
33443 "NULL."
33444 msgstr ""
33445
33446 #. type: textblock
33447 #: ../src/guestfs.pod:1299
33448 msgid ""
33449 "You have to \"configure\" the handle after creating it.  This includes "
33450 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
33451 "handle at least once."
33452 msgstr ""
33453
33454 #. type: textblock
33455 #: ../src/guestfs.pod:1303
33456 msgid "After configuring the handle, you have to call L</guestfs_launch>."
33457 msgstr ""
33458
33459 #. type: textblock
33460 #: ../src/guestfs.pod:1305
33461 msgid ""
33462 "You may also want to configure error handling for the handle.  See the L</"
33463 "ERROR HANDLING> section below."
33464 msgstr ""
33465
33466 #. type: =head2
33467 #: ../src/guestfs.pod:1308
33468 msgid "guestfs_close"
33469 msgstr ""
33470
33471 #. type: verbatim
33472 #: ../src/guestfs.pod:1310
33473 #, no-wrap
33474 msgid ""
33475 " void guestfs_close (guestfs_h *g);\n"
33476 "\n"
33477 msgstr ""
33478
33479 #. type: textblock
33480 #: ../src/guestfs.pod:1312
33481 msgid "This closes the connection handle and frees up all resources used."
33482 msgstr ""
33483
33484 #. type: textblock
33485 #: ../src/guestfs.pod:1314
33486 msgid ""
33487 "If autosync was set on the handle and the handle was launched, then this "
33488 "implicitly calls various functions to unmount filesystems and sync the "
33489 "disk.  See L</guestfs_set_autosync> for more details."
33490 msgstr ""
33491
33492 #. type: textblock
33493 #: ../src/guestfs.pod:1318
33494 msgid "If a close callback was set on the handle, then it is called."
33495 msgstr ""
33496
33497 #. type: =head1
33498 #: ../src/guestfs.pod:1320
33499 msgid "ERROR HANDLING"
33500 msgstr ""
33501
33502 #. type: textblock
33503 #: ../src/guestfs.pod:1322
33504 msgid ""
33505 "API functions can return errors.  For example, almost all functions that "
33506 "return C<int> will return C<-1> to indicate an error."
33507 msgstr ""
33508
33509 #. type: textblock
33510 #: ../src/guestfs.pod:1325
33511 msgid ""
33512 "Additional information is available for errors: an error message string and "
33513 "optionally an error number (errno) if the thing that failed was a system "
33514 "call."
33515 msgstr ""
33516
33517 #. type: textblock
33518 #: ../src/guestfs.pod:1329
33519 msgid ""
33520 "You can get at the additional information about the last error on the handle "
33521 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
33522 "up an error handler with L</guestfs_set_error_handler>."
33523 msgstr ""
33524
33525 #. type: textblock
33526 #: ../src/guestfs.pod:1334
33527 msgid ""
33528 "When the handle is created, a default error handler is installed which "
33529 "prints the error message string to C<stderr>.  For small short-running "
33530 "command line programs it is sufficient to do:"
33531 msgstr ""
33532
33533 #. type: verbatim
33534 #: ../src/guestfs.pod:1338
33535 #, no-wrap
33536 msgid ""
33537 " if (guestfs_launch (g) == -1)\n"
33538 "   exit (EXIT_FAILURE);\n"
33539 "\n"
33540 msgstr ""
33541
33542 #. type: textblock
33543 #: ../src/guestfs.pod:1341
33544 msgid ""
33545 "since the default error handler will ensure that an error message has been "
33546 "printed to C<stderr> before the program exits."
33547 msgstr ""
33548
33549 #. type: textblock
33550 #: ../src/guestfs.pod:1344
33551 msgid ""
33552 "For other programs the caller will almost certainly want to install an "
33553 "alternate error handler or do error handling in-line like this:"
33554 msgstr ""
33555
33556 #. type: verbatim
33557 #: ../src/guestfs.pod:1347
33558 #, no-wrap
33559 msgid ""
33560 " /* This disables the default behaviour of printing errors\n"
33561 "    on stderr. */\n"
33562 " guestfs_set_error_handler (g, NULL, NULL);\n"
33563 " \n"
33564 msgstr ""
33565
33566 #. type: verbatim
33567 #: ../src/guestfs.pod:1351
33568 #, no-wrap
33569 msgid ""
33570 " if (guestfs_launch (g) == -1) {\n"
33571 "   /* Examine the error message and print it etc. */\n"
33572 "   char *msg = guestfs_last_error (g);\n"
33573 "   int errnum = guestfs_last_errno (g);\n"
33574 "   fprintf (stderr, \"%s\", msg);\n"
33575 "   if (errnum != 0)\n"
33576 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
33577 "   fprintf (stderr, \"\\n\");\n"
33578 "   /* ... */\n"
33579 " }\n"
33580 "\n"
33581 msgstr ""
33582
33583 #. type: textblock
33584 #: ../src/guestfs.pod:1362
33585 msgid ""
33586 "Out of memory errors are handled differently.  The default action is to call "
33587 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
33588 "guestfs_set_out_of_memory_handler>."
33589 msgstr ""
33590
33591 #. type: textblock
33592 #: ../src/guestfs.pod:1366
33593 msgid ""
33594 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
33595 "because there is no handle if this happens there is no way to get additional "
33596 "error information.  However L</guestfs_create> is supposed to be a "
33597 "lightweight operation which can only fail because of insufficient memory (it "
33598 "returns NULL in this case)."
33599 msgstr ""
33600
33601 #. type: =head2
33602 #: ../src/guestfs.pod:1372
33603 msgid "guestfs_last_error"
33604 msgstr ""
33605
33606 #. type: verbatim
33607 #: ../src/guestfs.pod:1374
33608 #, no-wrap
33609 msgid ""
33610 " const char *guestfs_last_error (guestfs_h *g);\n"
33611 "\n"
33612 msgstr ""
33613
33614 #. type: textblock
33615 #: ../src/guestfs.pod:1376
33616 msgid ""
33617 "This returns the last error message that happened on C<g>.  If there has not "
33618 "been an error since the handle was created, then this returns C<NULL>."
33619 msgstr ""
33620
33621 #. type: textblock
33622 #: ../src/guestfs.pod:1380
33623 msgid ""
33624 "The lifetime of the returned string is until the next error occurs, or L</"
33625 "guestfs_close> is called."
33626 msgstr ""
33627
33628 #. type: =head2
33629 #: ../src/guestfs.pod:1383
33630 msgid "guestfs_last_errno"
33631 msgstr ""
33632
33633 #. type: verbatim
33634 #: ../src/guestfs.pod:1385
33635 #, no-wrap
33636 msgid ""
33637 " int guestfs_last_errno (guestfs_h *g);\n"
33638 "\n"
33639 msgstr ""
33640
33641 #. type: textblock
33642 #: ../src/guestfs.pod:1387
33643 msgid "This returns the last error number (errno) that happened on C<g>."
33644 msgstr ""
33645
33646 #. type: textblock
33647 #: ../src/guestfs.pod:1389
33648 msgid "If successful, an errno integer not equal to zero is returned."
33649 msgstr ""
33650
33651 #. type: textblock
33652 #: ../src/guestfs.pod:1391
33653 msgid ""
33654 "If no error, this returns 0.  This call can return 0 in three situations:"
33655 msgstr ""
33656
33657 #. type: textblock
33658 #: ../src/guestfs.pod:1398
33659 msgid "There has not been any error on the handle."
33660 msgstr ""
33661
33662 #. type: textblock
33663 #: ../src/guestfs.pod:1402
33664 msgid ""
33665 "There has been an error but the errno was meaningless.  This corresponds to "
33666 "the case where the error did not come from a failed system call, but for "
33667 "some other reason."
33668 msgstr ""
33669
33670 #. type: textblock
33671 #: ../src/guestfs.pod:1408
33672 msgid ""
33673 "There was an error from a failed system call, but for some reason the errno "
33674 "was not captured and returned.  This usually indicates a bug in libguestfs."
33675 msgstr ""
33676
33677 #. type: textblock
33678 #: ../src/guestfs.pod:1414
33679 msgid ""
33680 "Libguestfs tries to convert the errno from inside the applicance into a "
33681 "corresponding errno for the caller (not entirely trivial: the appliance "
33682 "might be running a completely different operating system from the library "
33683 "and error numbers are not standardized across Un*xen).  If this could not be "
33684 "done, then the error is translated to C<EINVAL>.  In practice this should "
33685 "only happen in very rare circumstances."
33686 msgstr ""
33687
33688 #. type: =head2
33689 #: ../src/guestfs.pod:1422
33690 msgid "guestfs_set_error_handler"
33691 msgstr ""
33692
33693 #. type: verbatim
33694 #: ../src/guestfs.pod:1424
33695 #, no-wrap
33696 msgid ""
33697 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
33698 "                                           void *opaque,\n"
33699 "                                           const char *msg);\n"
33700 " void guestfs_set_error_handler (guestfs_h *g,\n"
33701 "                                 guestfs_error_handler_cb cb,\n"
33702 "                                 void *opaque);\n"
33703 "\n"
33704 msgstr ""
33705
33706 #. type: textblock
33707 #: ../src/guestfs.pod:1431
33708 msgid ""
33709 "The callback C<cb> will be called if there is an error.  The parameters "
33710 "passed to the callback are an opaque data pointer and the error message "
33711 "string."
33712 msgstr ""
33713
33714 #. type: textblock
33715 #: ../src/guestfs.pod:1435
33716 msgid ""
33717 "C<errno> is not passed to the callback.  To get that the callback must call "
33718 "L</guestfs_last_errno>."
33719 msgstr ""
33720
33721 #. type: textblock
33722 #: ../src/guestfs.pod:1438
33723 msgid ""
33724 "Note that the message string C<msg> is freed as soon as the callback "
33725 "function returns, so if you want to stash it somewhere you must make your "
33726 "own copy."
33727 msgstr ""
33728
33729 #. type: textblock
33730 #: ../src/guestfs.pod:1442
33731 msgid "The default handler prints messages on C<stderr>."
33732 msgstr ""
33733
33734 #. type: textblock
33735 #: ../src/guestfs.pod:1444
33736 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
33737 msgstr ""
33738
33739 #. type: =head2
33740 #: ../src/guestfs.pod:1446
33741 msgid "guestfs_get_error_handler"
33742 msgstr ""
33743
33744 #. type: verbatim
33745 #: ../src/guestfs.pod:1448
33746 #, no-wrap
33747 msgid ""
33748 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
33749 "                                                     void **opaque_rtn);\n"
33750 "\n"
33751 msgstr ""
33752
33753 #. type: textblock
33754 #: ../src/guestfs.pod:1451
33755 msgid "Returns the current error handler callback."
33756 msgstr ""
33757
33758 #. type: =head2
33759 #: ../src/guestfs.pod:1453
33760 msgid "guestfs_set_out_of_memory_handler"
33761 msgstr ""
33762
33763 #. type: verbatim
33764 #: ../src/guestfs.pod:1455
33765 #, no-wrap
33766 msgid ""
33767 " typedef void (*guestfs_abort_cb) (void);\n"
33768 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
33769 "                                         guestfs_abort_cb);\n"
33770 "\n"
33771 msgstr ""
33772
33773 #. type: textblock
33774 #: ../src/guestfs.pod:1459
33775 msgid ""
33776 "The callback C<cb> will be called if there is an out of memory situation.  "
33777 "I<Note this callback must not return>."
33778 msgstr ""
33779
33780 #. type: textblock
33781 #: ../src/guestfs.pod:1462
33782 msgid "The default is to call L<abort(3)>."
33783 msgstr ""
33784
33785 #. type: textblock
33786 #: ../src/guestfs.pod:1464
33787 msgid ""
33788 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
33789 msgstr ""
33790
33791 #. type: =head2
33792 #: ../src/guestfs.pod:1467
33793 msgid "guestfs_get_out_of_memory_handler"
33794 msgstr ""
33795
33796 #. type: verbatim
33797 #: ../src/guestfs.pod:1469
33798 #, no-wrap
33799 msgid ""
33800 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
33801 "\n"
33802 msgstr ""
33803
33804 #. type: textblock
33805 #: ../src/guestfs.pod:1471
33806 msgid "This returns the current out of memory handler."
33807 msgstr ""
33808
33809 #. type: =head1
33810 #: ../src/guestfs.pod:1473
33811 msgid "API CALLS"
33812 msgstr ""
33813
33814 #. type: =head1
33815 #: ../src/guestfs.pod:1477
33816 msgid "STRUCTURES"
33817 msgstr ""
33818
33819 #. type: textblock
33820 #: ../src/guestfs.pod:1479
33821 msgid "@STRUCTS@"
33822 msgstr ""
33823
33824 #. type: =head1
33825 #: ../src/guestfs.pod:1481
33826 msgid "AVAILABILITY"
33827 msgstr ""
33828
33829 #. type: =head2
33830 #: ../src/guestfs.pod:1483
33831 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
33832 msgstr ""
33833
33834 #. type: textblock
33835 #: ../src/guestfs.pod:1485
33836 msgid ""
33837 "Using L</guestfs_available> you can test availability of the following "
33838 "groups of functions.  This test queries the appliance to see if the "
33839 "appliance you are currently using supports the functionality."
33840 msgstr ""
33841
33842 #. type: textblock
33843 #: ../src/guestfs.pod:1490
33844 msgid "@AVAILABILITY@"
33845 msgstr ""
33846
33847 #. type: =head2
33848 #: ../src/guestfs.pod:1492
33849 msgid "GUESTFISH supported COMMAND"
33850 msgstr ""
33851
33852 #. type: textblock
33853 #: ../src/guestfs.pod:1494
33854 msgid ""
33855 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
33856 "prints out the available groups and whether they are supported by this build "
33857 "of libguestfs.  Note however that you have to do C<run> first."
33858 msgstr ""
33859
33860 #. type: =head2
33861 #: ../src/guestfs.pod:1499
33862 msgid "SINGLE CALLS AT COMPILE TIME"
33863 msgstr ""
33864
33865 #. type: textblock
33866 #: ../src/guestfs.pod:1501
33867 msgid ""
33868 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
33869 "function, such as:"
33870 msgstr ""
33871
33872 #. type: verbatim
33873 #: ../src/guestfs.pod:1504
33874 #, no-wrap
33875 msgid ""
33876 " #define LIBGUESTFS_HAVE_DD 1\n"
33877 "\n"
33878 msgstr ""
33879
33880 #. type: textblock
33881 #: ../src/guestfs.pod:1506
33882 msgid "if L</guestfs_dd> is available."
33883 msgstr ""
33884
33885 #. type: textblock
33886 #: ../src/guestfs.pod:1508
33887 msgid ""
33888 "Before version 1.5.8, if you needed to test whether a single libguestfs "
33889 "function is available at compile time, we recommended using build tools such "
33890 "as autoconf or cmake.  For example in autotools you could use:"
33891 msgstr ""
33892
33893 #. type: verbatim
33894 #: ../src/guestfs.pod:1513
33895 #, no-wrap
33896 msgid ""
33897 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
33898 " AC_CHECK_FUNCS([guestfs_dd])\n"
33899 "\n"
33900 msgstr ""
33901
33902 #. type: textblock
33903 #: ../src/guestfs.pod:1516
33904 msgid ""
33905 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
33906 "in your program."
33907 msgstr ""
33908
33909 #. type: =head2
33910 #: ../src/guestfs.pod:1519
33911 msgid "SINGLE CALLS AT RUN TIME"
33912 msgstr ""
33913
33914 #. type: textblock
33915 #: ../src/guestfs.pod:1521
33916 msgid ""
33917 "Testing at compile time doesn't guarantee that a function really exists in "
33918 "the library.  The reason is that you might be dynamically linked against a "
33919 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
33920 "This situation unfortunately results in a segmentation fault, which is a "
33921 "shortcoming of the C dynamic linking system itself."
33922 msgstr ""
33923
33924 #. type: textblock
33925 #: ../src/guestfs.pod:1528
33926 msgid ""
33927 "You can use L<dlopen(3)> to test if a function is available at run time, as "
33928 "in this example program (note that you still need the compile time check as "
33929 "well):"
33930 msgstr ""
33931
33932 #. type: verbatim
33933 #: ../src/guestfs.pod:1532
33934 #, no-wrap
33935 msgid ""
33936 " #include <stdio.h>\n"
33937 " #include <stdlib.h>\n"
33938 " #include <unistd.h>\n"
33939 " #include <dlfcn.h>\n"
33940 " #include <guestfs.h>\n"
33941 " \n"
33942 msgstr ""
33943
33944 #. type: verbatim
33945 #: ../src/guestfs.pod:1538
33946 #, no-wrap
33947 msgid ""
33948 " main ()\n"
33949 " {\n"
33950 " #ifdef LIBGUESTFS_HAVE_DD\n"
33951 "   void *dl;\n"
33952 "   int has_function;\n"
33953 " \n"
33954 msgstr ""
33955
33956 #. type: verbatim
33957 #: ../src/guestfs.pod:1544
33958 #, no-wrap
33959 msgid ""
33960 "   /* Test if the function guestfs_dd is really available. */\n"
33961 "   dl = dlopen (NULL, RTLD_LAZY);\n"
33962 "   if (!dl) {\n"
33963 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
33964 "     exit (EXIT_FAILURE);\n"
33965 "   }\n"
33966 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
33967 "   dlclose (dl);\n"
33968 " \n"
33969 msgstr ""
33970
33971 #. type: verbatim
33972 #: ../src/guestfs.pod:1553
33973 #, no-wrap
33974 msgid ""
33975 "   if (!has_function)\n"
33976 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
33977 "   else {\n"
33978 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
33979 "     /* Now it's safe to call\n"
33980 "     guestfs_dd (g, \"foo\", \"bar\");\n"
33981 "     */\n"
33982 "   }\n"
33983 " #else\n"
33984 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
33985 " #endif\n"
33986 "  }\n"
33987 "\n"
33988 msgstr ""
33989
33990 #. type: textblock
33991 #: ../src/guestfs.pod:1566
33992 msgid ""
33993 "You may think the above is an awful lot of hassle, and it is.  There are "
33994 "other ways outside of the C linking system to ensure that this kind of "
33995 "incompatibility never arises, such as using package versioning:"
33996 msgstr ""
33997
33998 #. type: verbatim
33999 #: ../src/guestfs.pod:1571
34000 #, no-wrap
34001 msgid ""
34002 " Requires: libguestfs >= 1.0.80\n"
34003 "\n"
34004 msgstr ""
34005
34006 #. type: =head1
34007 #: ../src/guestfs.pod:1573
34008 msgid "CALLS WITH OPTIONAL ARGUMENTS"
34009 msgstr ""
34010
34011 #. type: textblock
34012 #: ../src/guestfs.pod:1575
34013 msgid ""
34014 "A recent feature of the API is the introduction of calls which take optional "
34015 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
34016 "takes variable arguments (ie. C<...>), as in this example:"
34017 msgstr ""
34018
34019 #. type: verbatim
34020 #: ../src/guestfs.pod:1580
34021 #, no-wrap
34022 msgid ""
34023 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
34024 "\n"
34025 msgstr ""
34026
34027 #. type: textblock
34028 #: ../src/guestfs.pod:1582
34029 msgid ""
34030 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
34031 "call with no optional arguments specified:"
34032 msgstr ""
34033
34034 #. type: verbatim
34035 #: ../src/guestfs.pod:1585
34036 #, no-wrap
34037 msgid ""
34038 " guestfs_add_drive_opts (g, filename, -1);\n"
34039 "\n"
34040 msgstr ""
34041
34042 #. type: textblock
34043 #: ../src/guestfs.pod:1587
34044 msgid "With a single optional argument:"
34045 msgstr ""
34046
34047 #. type: verbatim
34048 #: ../src/guestfs.pod:1589
34049 #, no-wrap
34050 msgid ""
34051 " guestfs_add_drive_opts (g, filename,\n"
34052 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
34053 "                         -1);\n"
34054 "\n"
34055 msgstr ""
34056
34057 #. type: textblock
34058 #: ../src/guestfs.pod:1593
34059 msgid "With two:"
34060 msgstr ""
34061
34062 #. type: verbatim
34063 #: ../src/guestfs.pod:1595
34064 #, no-wrap
34065 msgid ""
34066 " guestfs_add_drive_opts (g, filename,\n"
34067 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
34068 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
34069 "                         -1);\n"
34070 "\n"
34071 msgstr ""
34072
34073 #. type: textblock
34074 #: ../src/guestfs.pod:1600
34075 msgid ""
34076 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
34077 "happen!"
34078 msgstr ""
34079
34080 #. type: =head2
34081 #: ../src/guestfs.pod:1603
34082 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
34083 msgstr ""
34084
34085 #. type: textblock
34086 #: ../src/guestfs.pod:1605
34087 msgid ""
34088 "The second variant has the same name with the suffix C<_va>, which works the "
34089 "same way but takes a C<va_list>.  See the C manual for details.  For the "
34090 "example function, this is declared:"
34091 msgstr ""
34092
34093 #. type: verbatim
34094 #: ../src/guestfs.pod:1609
34095 #, no-wrap
34096 msgid ""
34097 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
34098 "                                va_list args);\n"
34099 "\n"
34100 msgstr ""
34101
34102 #. type: =head2
34103 #: ../src/guestfs.pod:1612
34104 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
34105 msgstr ""
34106
34107 #. type: textblock
34108 #: ../src/guestfs.pod:1614
34109 msgid ""
34110 "The third variant is useful where you need to construct these calls.  You "
34111 "pass in a structure where you fill in the optional fields.  The structure "
34112 "has a bitmask as the first element which you must set to indicate which "
34113 "fields you have filled in.  For our example function the structure and call "
34114 "are declared:"
34115 msgstr ""
34116
34117 #. type: verbatim
34118 #: ../src/guestfs.pod:1620
34119 #, no-wrap
34120 msgid ""
34121 " struct guestfs_add_drive_opts_argv {\n"
34122 "   uint64_t bitmask;\n"
34123 "   int readonly;\n"
34124 "   const char *format;\n"
34125 "   /* ... */\n"
34126 " };\n"
34127 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
34128 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
34129 "\n"
34130 msgstr ""
34131
34132 #. type: textblock
34133 #: ../src/guestfs.pod:1629
34134 msgid "You could call it like this:"
34135 msgstr ""
34136
34137 #. type: verbatim
34138 #: ../src/guestfs.pod:1631
34139 #, no-wrap
34140 msgid ""
34141 " struct guestfs_add_drive_opts_argv optargs = {\n"
34142 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
34143 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
34144 "   .readonly = 1,\n"
34145 "   .format = \"qcow2\"\n"
34146 " };\n"
34147 " \n"
34148 msgstr ""
34149
34150 #. type: verbatim
34151 #: ../src/guestfs.pod:1638
34152 #, no-wrap
34153 msgid ""
34154 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
34155 "\n"
34156 msgstr ""
34157
34158 #. type: textblock
34159 #: ../src/guestfs.pod:1646
34160 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
34161 msgstr ""
34162
34163 #. type: textblock
34164 #: ../src/guestfs.pod:1651
34165 msgid "You do not need to fill in all fields of the structure."
34166 msgstr ""
34167
34168 #. type: textblock
34169 #: ../src/guestfs.pod:1655
34170 msgid ""
34171 "There must be a one-to-one correspondence between fields of the structure "
34172 "that are filled in, and bits set in the bitmask."
34173 msgstr ""
34174
34175 #. type: =head2
34176 #: ../src/guestfs.pod:1660
34177 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
34178 msgstr ""
34179
34180 #. type: textblock
34181 #: ../src/guestfs.pod:1662
34182 msgid ""
34183 "In other languages, optional arguments are expressed in the way that is "
34184 "natural for that language.  We refer you to the language-specific "
34185 "documentation for more details on that."
34186 msgstr ""
34187
34188 #. type: textblock
34189 #: ../src/guestfs.pod:1666
34190 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
34191 msgstr ""
34192
34193 #. type: =head2
34194 #: ../src/guestfs.pod:1668
34195 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
34196 msgstr ""
34197
34198 #. type: textblock
34199 #: ../src/guestfs.pod:1670
34200 msgid ""
34201 "B<Note:> This section documents the generic event mechanism introduced in "
34202 "libguestfs 1.10, which you should use in new code if possible.  The old "
34203 "functions C<guestfs_set_log_message_callback>, "
34204 "C<guestfs_set_subprocess_quit_callback>, "
34205 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
34206 "C<guestfs_set_progress_callback> are no longer documented in this manual "
34207 "page.  Because of the ABI guarantee, the old functions continue to work."
34208 msgstr ""
34209
34210 #. type: textblock
34211 #: ../src/guestfs.pod:1679
34212 msgid ""
34213 "Handles generate events when certain things happen, such as log messages "
34214 "being generated, progress messages during long-running operations, or the "
34215 "handle being closed.  The API calls described below let you register a "
34216 "callback to be called when events happen.  You can register multiple "
34217 "callbacks (for the same, different or overlapping sets of events), and "
34218 "individually remove callbacks.  If callbacks are not removed, then they "
34219 "remain in force until the handle is closed."
34220 msgstr ""
34221
34222 #. type: textblock
34223 #: ../src/guestfs.pod:1687
34224 msgid ""
34225 "In the current implementation, events are only generated synchronously: that "
34226 "means that events (and hence callbacks) can only happen while you are in the "
34227 "middle of making another libguestfs call.  The callback is called in the "
34228 "same thread."
34229 msgstr ""
34230
34231 #. type: textblock
34232 #: ../src/guestfs.pod:1692
34233 msgid ""
34234 "Events may contain a payload, usually nothing (void), an array of 64 bit "
34235 "unsigned integers, or a message buffer.  Payloads are discussed later on."
34236 msgstr ""
34237
34238 #. type: =head3
34239 #: ../src/guestfs.pod:1696
34240 msgid "CLASSES OF EVENTS"
34241 msgstr ""
34242
34243 #. type: =item
34244 #: ../src/guestfs.pod:1700
34245 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
34246 msgstr ""
34247
34248 #. type: textblock
34249 #: ../src/guestfs.pod:1703
34250 msgid ""
34251 "The callback function will be called while the handle is being closed "
34252 "(synchronously from L</guestfs_close>)."
34253 msgstr ""
34254
34255 #. type: textblock
34256 #: ../src/guestfs.pod:1706
34257 msgid ""
34258 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
34259 "handles that are open when the program exits.  This means that this callback "
34260 "might be called indirectly from L<exit(3)>, which can cause unexpected "
34261 "problems in higher-level languages (eg. if your HLL interpreter has already "
34262 "been cleaned up by the time this is called, and if your callback then jumps "
34263 "into some HLL function)."
34264 msgstr ""
34265
34266 #. type: textblock
34267 #: ../src/guestfs.pod:1713
34268 msgid ""
34269 "If no callback is registered: the handle is closed without any callback "
34270 "being invoked."
34271 msgstr ""
34272
34273 #. type: =item
34274 #: ../src/guestfs.pod:1716
34275 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
34276 msgstr ""
34277
34278 #. type: textblock
34279 #: ../src/guestfs.pod:1719
34280 msgid ""
34281 "The callback function will be called when the child process quits, either "
34282 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
34283 "corresponds to a transition from any state to the CONFIG state)."
34284 msgstr ""
34285
34286 #. type: textblock
34287 #: ../src/guestfs.pod:1723 ../src/guestfs.pod:1732 ../src/guestfs.pod:1849
34288 msgid "If no callback is registered: the event is ignored."
34289 msgstr ""
34290
34291 #. type: =item
34292 #: ../src/guestfs.pod:1725
34293 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
34294 msgstr ""
34295
34296 #. type: textblock
34297 #: ../src/guestfs.pod:1728
34298 msgid ""
34299 "The callback function will be called when the child process becomes ready "
34300 "first time after it has been launched.  (This corresponds to a transition "
34301 "from LAUNCHING to the READY state)."
34302 msgstr ""
34303
34304 #. type: =item
34305 #: ../src/guestfs.pod:1734
34306 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
34307 msgstr ""
34308
34309 #. type: textblock
34310 #: ../src/guestfs.pod:1737
34311 msgid ""
34312 "Some long-running operations can generate progress messages.  If this "
34313 "callback is registered, then it will be called each time a progress message "
34314 "is generated (usually two seconds after the operation started, and three "
34315 "times per second thereafter until it completes, although the frequency may "
34316 "change in future versions)."
34317 msgstr ""
34318
34319 #. type: textblock
34320 #: ../src/guestfs.pod:1743
34321 msgid ""
34322 "The callback receives in the payload four unsigned 64 bit numbers which are "
34323 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
34324 msgstr ""
34325
34326 #. type: textblock
34327 #: ../src/guestfs.pod:1746
34328 msgid ""
34329 "The units of C<total> are not defined, although for some operations C<total> "
34330 "may relate in some way to the amount of data to be transferred (eg. in bytes "
34331 "or megabytes), and C<position> may be the portion which has been transferred."
34332 msgstr ""
34333
34334 #. type: textblock
34335 #: ../src/guestfs.pod:1751
34336 msgid "The only defined and stable parts of the API are:"
34337 msgstr ""
34338
34339 #. type: textblock
34340 #: ../src/guestfs.pod:1757
34341 msgid ""
34342 "The callback can display to the user some type of progress bar or indicator "
34343 "which shows the ratio of C<position>:C<total>."
34344 msgstr ""
34345
34346 #. type: textblock
34347 #: ../src/guestfs.pod:1762
34348 msgid "0 E<lt>= C<position> E<lt>= C<total>"
34349 msgstr ""
34350
34351 #. type: textblock
34352 #: ../src/guestfs.pod:1766
34353 msgid ""
34354 "If any progress notification is sent during a call, then a final progress "
34355 "notification is always sent when C<position> = C<total> (I<unless> the call "
34356 "fails with an error)."
34357 msgstr ""
34358
34359 #. type: textblock
34360 #: ../src/guestfs.pod:1770
34361 msgid ""
34362 "This is to simplify caller code, so callers can easily set the progress "
34363 "indicator to \"100%\" at the end of the operation, without requiring special "
34364 "code to detect this case."
34365 msgstr ""
34366
34367 #. type: textblock
34368 #: ../src/guestfs.pod:1776
34369 msgid ""
34370 "For some calls we are unable to estimate the progress of the call, but we "
34371 "can still generate progress messages to indicate activity.  This is known as "
34372 "\"pulse mode\", and is directly supported by certain progress bar "
34373 "implementations (eg. GtkProgressBar)."
34374 msgstr ""
34375
34376 #. type: textblock
34377 #: ../src/guestfs.pod:1781
34378 msgid ""
34379 "For these calls, zero or more progress messages are generated with "
34380 "C<position = 0> and C<total = 1>, followed by a final message with "
34381 "C<position = total = 1>."
34382 msgstr ""
34383
34384 #. type: textblock
34385 #: ../src/guestfs.pod:1785
34386 msgid ""
34387 "As noted above, if the call fails with an error then the final message may "
34388 "not be generated."
34389 msgstr ""
34390
34391 #. type: textblock
34392 #: ../src/guestfs.pod:1790
34393 msgid ""
34394 "The callback also receives the procedure number (C<proc_nr>) and serial "
34395 "number (C<serial>) of the call.  These are only useful for debugging "
34396 "protocol issues, and the callback can normally ignore them.  The callback "
34397 "may want to print these numbers in error messages or debugging messages."
34398 msgstr ""
34399
34400 #. type: textblock
34401 #: ../src/guestfs.pod:1796
34402 msgid "If no callback is registered: progress messages are discarded."
34403 msgstr ""
34404
34405 #. type: =item
34406 #: ../src/guestfs.pod:1798
34407 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
34408 msgstr ""
34409
34410 #. type: textblock
34411 #: ../src/guestfs.pod:1801
34412 msgid ""
34413 "The callback function is called whenever a log message is generated by qemu, "
34414 "the appliance kernel, guestfsd (daemon), or utility programs."
34415 msgstr ""
34416
34417 #. type: textblock
34418 #: ../src/guestfs.pod:1804
34419 msgid ""
34420 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
34421 "guestfs_launch>) then additional debug messages are generated."
34422 msgstr ""
34423
34424 #. type: textblock
34425 #: ../src/guestfs.pod:1807 ../src/guestfs.pod:1821
34426 msgid ""
34427 "If no callback is registered: the messages are discarded unless the verbose "
34428 "flag is set in which case they are sent to stderr.  You can override the "
34429 "printing of verbose messages to stderr by setting up a callback."
34430 msgstr ""
34431
34432 #. type: =item
34433 #: ../src/guestfs.pod:1812
34434 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
34435 msgstr ""
34436
34437 #. type: textblock
34438 #: ../src/guestfs.pod:1815
34439 msgid ""
34440 "The callback function is called whenever a log message is generated by the "
34441 "library part of libguestfs."
34442 msgstr ""
34443
34444 #. type: textblock
34445 #: ../src/guestfs.pod:1818
34446 msgid ""
34447 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
34448 "messages are generated."
34449 msgstr ""
34450
34451 #. type: =item
34452 #: ../src/guestfs.pod:1826
34453 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
34454 msgstr ""
34455
34456 #. type: textblock
34457 #: ../src/guestfs.pod:1829
34458 msgid ""
34459 "The callback function is called whenever a trace message is generated.  This "
34460 "only applies if the trace flag (L</guestfs_set_trace>) is set."
34461 msgstr ""
34462
34463 #. type: textblock
34464 #: ../src/guestfs.pod:1832
34465 msgid ""
34466 "If no callback is registered: the messages are sent to stderr.  You can "
34467 "override the printing of trace messages to stderr by setting up a callback."
34468 msgstr ""
34469
34470 #. type: =item
34471 #: ../src/guestfs.pod:1836
34472 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
34473 msgstr ""
34474
34475 #. type: textblock
34476 #: ../src/guestfs.pod:1839
34477 msgid ""
34478 "The callback function is called whenever a libguestfs function is entered."
34479 msgstr ""
34480
34481 #. type: textblock
34482 #: ../src/guestfs.pod:1842
34483 msgid ""
34484 "The payload is a string which contains the name of the function that we are "
34485 "entering (not including C<guestfs_> prefix)."
34486 msgstr ""
34487
34488 #. type: textblock
34489 #: ../src/guestfs.pod:1845
34490 msgid ""
34491 "Note that libguestfs functions can call themselves, so you may see many "
34492 "events from a single call.  A few libguestfs functions do not generate this "
34493 "event."
34494 msgstr ""
34495
34496 #. type: =head3
34497 #: ../src/guestfs.pod:1853
34498 msgid "guestfs_set_event_callback"
34499 msgstr ""
34500
34501 #. type: verbatim
34502 #: ../src/guestfs.pod:1855
34503 #, no-wrap
34504 msgid ""
34505 " int guestfs_set_event_callback (guestfs_h *g,\n"
34506 "                                 guestfs_event_callback cb,\n"
34507 "                                 uint64_t event_bitmask,\n"
34508 "                                 int flags,\n"
34509 "                                 void *opaque);\n"
34510 "\n"
34511 msgstr ""
34512
34513 #. type: textblock
34514 #: ../src/guestfs.pod:1861
34515 msgid ""
34516 "This function registers a callback (C<cb>) for all event classes in the "
34517 "C<event_bitmask>."
34518 msgstr ""
34519
34520 #. type: textblock
34521 #: ../src/guestfs.pod:1864
34522 msgid ""
34523 "For example, to register for all log message events, you could call this "
34524 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
34525 "To register a single callback for all possible classes of events, use "
34526 "C<GUESTFS_EVENT_ALL>."
34527 msgstr ""
34528
34529 #. type: textblock
34530 #: ../src/guestfs.pod:1870
34531 msgid "C<flags> should always be passed as 0."
34532 msgstr ""
34533
34534 #. type: textblock
34535 #: ../src/guestfs.pod:1872
34536 msgid ""
34537 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
34538 "it for any purpose."
34539 msgstr ""
34540
34541 #. type: textblock
34542 #: ../src/guestfs.pod:1875
34543 msgid ""
34544 "The return value is the event handle (an integer) which you can use to "
34545 "delete the callback (see below)."
34546 msgstr ""
34547
34548 #. type: textblock
34549 #: ../src/guestfs.pod:1878
34550 msgid ""
34551 "If there is an error, this function returns C<-1>, and sets the error in the "
34552 "handle in the usual way (see L</guestfs_last_error> etc.)"
34553 msgstr ""
34554
34555 #. type: textblock
34556 #: ../src/guestfs.pod:1881
34557 msgid ""
34558 "Callbacks remain in effect until they are deleted, or until the handle is "
34559 "closed."
34560 msgstr ""
34561
34562 #. type: textblock
34563 #: ../src/guestfs.pod:1884
34564 msgid ""
34565 "In the case where multiple callbacks are registered for a particular event "
34566 "class, all of the callbacks are called.  The order in which multiple "
34567 "callbacks are called is not defined."
34568 msgstr ""
34569
34570 #. type: =head3
34571 #: ../src/guestfs.pod:1888
34572 msgid "guestfs_delete_event_callback"
34573 msgstr ""
34574
34575 #. type: verbatim
34576 #: ../src/guestfs.pod:1890
34577 #, no-wrap
34578 msgid ""
34579 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
34580 "\n"
34581 msgstr ""
34582
34583 #. type: textblock
34584 #: ../src/guestfs.pod:1892
34585 msgid ""
34586 "Delete a callback that was previously registered.  C<event_handle> should be "
34587 "the integer that was returned by a previous call to "
34588 "C<guestfs_set_event_callback> on the same handle."
34589 msgstr ""
34590
34591 #. type: =head3
34592 #: ../src/guestfs.pod:1896
34593 msgid "guestfs_event_callback"
34594 msgstr ""
34595
34596 #. type: verbatim
34597 #: ../src/guestfs.pod:1898
34598 #, no-wrap
34599 msgid ""
34600 " typedef void (*guestfs_event_callback) (\n"
34601 "                  guestfs_h *g,\n"
34602 "                  void *opaque,\n"
34603 "                  uint64_t event,\n"
34604 "                  int event_handle,\n"
34605 "                  int flags,\n"
34606 "                  const char *buf, size_t buf_len,\n"
34607 "                  const uint64_t *array, size_t array_len);\n"
34608 "\n"
34609 msgstr ""
34610
34611 #. type: textblock
34612 #: ../src/guestfs.pod:1907
34613 msgid ""
34614 "This is the type of the event callback function that you have to provide."
34615 msgstr ""
34616
34617 #. type: textblock
34618 #: ../src/guestfs.pod:1910
34619 msgid ""
34620 "The basic parameters are: the handle (C<g>), the opaque user pointer "
34621 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
34622 "handle, and C<flags> which in the current API you should ignore."
34623 msgstr ""
34624
34625 #. type: textblock
34626 #: ../src/guestfs.pod:1914
34627 msgid ""
34628 "The remaining parameters contain the event payload (if any).  Each event may "
34629 "contain a payload, which usually relates to the event class, but for future "
34630 "proofing your code should be written to handle any payload for any event "
34631 "class."
34632 msgstr ""
34633
34634 #. type: textblock
34635 #: ../src/guestfs.pod:1919
34636 msgid ""
34637 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
34638 "there is no message buffer).  Note that this message buffer can contain "
34639 "arbitrary 8 bit data, including NUL bytes."
34640 msgstr ""
34641
34642 #. type: textblock
34643 #: ../src/guestfs.pod:1923
34644 msgid ""
34645 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
34646 "moment this is only used for progress messages."
34647 msgstr ""
34648
34649 #. type: =head3
34650 #: ../src/guestfs.pod:1926
34651 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
34652 msgstr ""
34653
34654 #. type: textblock
34655 #: ../src/guestfs.pod:1928
34656 msgid ""
34657 "One motivation for the generic event API was to allow GUI programs to "
34658 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
34659 "unconditionally to C<stderr>."
34660 msgstr ""
34661
34662 #. type: textblock
34663 #: ../src/guestfs.pod:1932
34664 msgid ""
34665 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
34666 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
34667 "messages are not events; you must capture error messages separately)."
34668 msgstr ""
34669
34670 #. type: textblock
34671 #: ../src/guestfs.pod:1937
34672 msgid ""
34673 "Programs have to set up a callback to capture the classes of events of "
34674 "interest:"
34675 msgstr ""
34676
34677 #. type: verbatim
34678 #: ../src/guestfs.pod:1940
34679 #, no-wrap
34680 msgid ""
34681 " int eh =\n"
34682 "   guestfs_set_event_callback\n"
34683 "     (g, message_callback,\n"
34684 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
34685 "      GUESTFS_EVENT_TRACE,\n"
34686 "      0, NULL) == -1)\n"
34687 " if (eh == -1) {\n"
34688 "   // handle error in the usual way\n"
34689 " }\n"
34690 "\n"
34691 msgstr ""
34692
34693 #. type: textblock
34694 #: ../src/guestfs.pod:1950
34695 msgid ""
34696 "The callback can then direct messages to the appropriate place.  In this "
34697 "example, messages are directed to syslog:"
34698 msgstr ""
34699
34700 #. type: verbatim
34701 #: ../src/guestfs.pod:1953
34702 #, no-wrap
34703 msgid ""
34704 " static void\n"
34705 " message_callback (\n"
34706 "         guestfs_h *g,\n"
34707 "         void *opaque,\n"
34708 "         uint64_t event,\n"
34709 "         int event_handle,\n"
34710 "         int flags,\n"
34711 "         const char *buf, size_t buf_len,\n"
34712 "         const uint64_t *array, size_t array_len)\n"
34713 " {\n"
34714 "   const int priority = LOG_USER|LOG_INFO;\n"
34715 "   if (buf_len > 0)\n"
34716 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
34717 " }\n"
34718 "\n"
34719 msgstr ""
34720
34721 #. type: =head1
34722 #: ../src/guestfs.pod:1968
34723 msgid "CANCELLING LONG TRANSFERS"
34724 msgstr ""
34725
34726 #. type: textblock
34727 #: ../src/guestfs.pod:1970
34728 msgid ""
34729 "Some operations can be cancelled by the caller while they are in progress.  "
34730 "Currently only operations that involve uploading or downloading data can be "
34731 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
34732 "parameters in the generator)."
34733 msgstr ""
34734
34735 #. type: =head2
34736 #: ../src/guestfs.pod:1975
34737 msgid "guestfs_user_cancel"
34738 msgstr ""
34739
34740 #. type: verbatim
34741 #: ../src/guestfs.pod:1977
34742 #, no-wrap
34743 msgid ""
34744 " void guestfs_user_cancel (guestfs_h *g);\n"
34745 "\n"
34746 msgstr ""
34747
34748 #. type: textblock
34749 #: ../src/guestfs.pod:1979
34750 msgid ""
34751 "C<guestfs_user_cancel> cancels the current upload or download operation."
34752 msgstr ""
34753
34754 #. type: textblock
34755 #: ../src/guestfs.pod:1982
34756 msgid ""
34757 "Unlike most other libguestfs calls, this function is signal safe and thread "
34758 "safe.  You can call it from a signal handler or from another thread, without "
34759 "needing to do any locking."
34760 msgstr ""
34761
34762 #. type: textblock
34763 #: ../src/guestfs.pod:1986
34764 msgid ""
34765 "The transfer that was in progress (if there is one) will stop shortly "
34766 "afterwards, and will return an error.  The errno (see L</"
34767 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
34768 "out if the operation was cancelled or failed because of another error."
34769 msgstr ""
34770
34771 #. type: textblock
34772 #: ../src/guestfs.pod:1992
34773 msgid ""
34774 "No cleanup is performed: for example, if a file was being uploaded then "
34775 "after cancellation there may be a partially uploaded file.  It is the "
34776 "caller's responsibility to clean up if necessary."
34777 msgstr ""
34778
34779 #. type: textblock
34780 #: ../src/guestfs.pod:1996
34781 msgid "There are two common places that you might call C<guestfs_user_cancel>."
34782 msgstr ""
34783
34784 #. type: textblock
34785 #: ../src/guestfs.pod:1998
34786 msgid ""
34787 "In an interactive text-based program, you might call it from a C<SIGINT> "
34788 "signal handler so that pressing C<^C> cancels the current operation.  (You "
34789 "also need to call L</guestfs_set_pgroup> so that child processes don't "
34790 "receive the C<^C> signal)."
34791 msgstr ""
34792
34793 #. type: textblock
34794 #: ../src/guestfs.pod:2003
34795 msgid ""
34796 "In a graphical program, when the main thread is displaying a progress bar "
34797 "with a cancel button, wire up the cancel button to call this function."
34798 msgstr ""
34799
34800 #. type: =head1
34801 #: ../src/guestfs.pod:2007
34802 msgid "PRIVATE DATA AREA"
34803 msgstr ""
34804
34805 #. type: textblock
34806 #: ../src/guestfs.pod:2009
34807 msgid ""
34808 "You can attach named pieces of private data to the libguestfs handle, fetch "
34809 "them by name, and walk over them, for the lifetime of the handle.  This is "
34810 "called the private data area and is only available from the C API."
34811 msgstr ""
34812
34813 #. type: textblock
34814 #: ../src/guestfs.pod:2014
34815 msgid "To attach a named piece of data, use the following call:"
34816 msgstr ""
34817
34818 #. type: verbatim
34819 #: ../src/guestfs.pod:2016
34820 #, no-wrap
34821 msgid ""
34822 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
34823 "\n"
34824 msgstr ""
34825
34826 #. type: textblock
34827 #: ../src/guestfs.pod:2018
34828 msgid ""
34829 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
34830 "pointer (which can be C<NULL>).  Any previous item with the same key is "
34831 "overwritten."
34832 msgstr ""
34833
34834 #. type: textblock
34835 #: ../src/guestfs.pod:2022
34836 msgid ""
34837 "You can use any C<key> you want, but your key should I<not> start with an "
34838 "underscore character.  Keys beginning with an underscore character are "
34839 "reserved for internal libguestfs purposes (eg. for implementing language "
34840 "bindings).  It is recommended that you prefix the key with some unique "
34841 "string to avoid collisions with other users."
34842 msgstr ""
34843
34844 #. type: textblock
34845 #: ../src/guestfs.pod:2028
34846 msgid "To retrieve the pointer, use:"
34847 msgstr ""
34848
34849 #. type: verbatim
34850 #: ../src/guestfs.pod:2030
34851 #, no-wrap
34852 msgid ""
34853 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
34854 "\n"
34855 msgstr ""
34856
34857 #. type: textblock
34858 #: ../src/guestfs.pod:2032
34859 msgid ""
34860 "This function returns C<NULL> if either no data is found associated with "
34861 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
34862 "C<NULL>."
34863 msgstr ""
34864
34865 #. type: textblock
34866 #: ../src/guestfs.pod:2036
34867 msgid ""
34868 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
34869 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
34870 "all.  In particular, libguestfs does I<not> try to free the data when the "
34871 "handle is closed.  If the data must be freed, then the caller must either "
34872 "free it before calling L</guestfs_close> or must set up a close callback to "
34873 "do it (see L</GUESTFS_EVENT_CLOSE>)."
34874 msgstr ""
34875
34876 #. type: textblock
34877 #: ../src/guestfs.pod:2043
34878 msgid "To walk over all entries, use these two functions:"
34879 msgstr ""
34880
34881 #. type: verbatim
34882 #: ../src/guestfs.pod:2045
34883 #, no-wrap
34884 msgid ""
34885 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
34886 "\n"
34887 msgstr ""
34888
34889 #. type: verbatim
34890 #: ../src/guestfs.pod:2047
34891 #, no-wrap
34892 msgid ""
34893 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
34894 "\n"
34895 msgstr ""
34896
34897 #. type: textblock
34898 #: ../src/guestfs.pod:2049
34899 msgid ""
34900 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
34901 "not have any particular meaning -- keys are not returned in any defined "
34902 "order).  A pointer to the key is returned in C<*key_rtn> and the "
34903 "corresponding data pointer is returned from the function.  C<NULL> is "
34904 "returned if there are no keys stored in the handle."
34905 msgstr ""
34906
34907 #. type: textblock
34908 #: ../src/guestfs.pod:2055
34909 msgid ""
34910 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
34911 "value of this function is also C<NULL> is there are no further entries to "
34912 "return."
34913 msgstr ""
34914
34915 #. type: textblock
34916 #: ../src/guestfs.pod:2059
34917 msgid "Notes about walking over entries:"
34918 msgstr ""
34919
34920 #. type: textblock
34921 #: ../src/guestfs.pod:2065
34922 msgid ""
34923 "You must not call C<guestfs_set_private> while walking over the entries."
34924 msgstr ""
34925
34926 #. type: textblock
34927 #: ../src/guestfs.pod:2070
34928 msgid ""
34929 "The handle maintains an internal iterator which is reset when you call "
34930 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
34931 "call C<guestfs_set_private>."
34932 msgstr ""
34933
34934 #. type: textblock
34935 #: ../src/guestfs.pod:2076
34936 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
34937 msgstr ""
34938
34939 #. type: verbatim
34940 #: ../src/guestfs.pod:2078
34941 #, no-wrap
34942 msgid ""
34943 " guestfs_set_private (g, key, NULL);\n"
34944 "\n"
34945 msgstr ""
34946
34947 #. type: textblock
34948 #: ../src/guestfs.pod:2080
34949 msgid "then that C<key> is not returned when walking."
34950 msgstr ""
34951
34952 #. type: textblock
34953 #: ../src/guestfs.pod:2084
34954 msgid ""
34955 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
34956 "C<guestfs_next_private> or C<guestfs_set_private>."
34957 msgstr ""
34958
34959 #. type: textblock
34960 #: ../src/guestfs.pod:2090
34961 msgid ""
34962 "The following example code shows how to print all keys and data pointers "
34963 "that are associated with the handle C<g>:"
34964 msgstr ""
34965
34966 #. type: verbatim
34967 #: ../src/guestfs.pod:2093
34968 #, no-wrap
34969 msgid ""
34970 " const char *key;\n"
34971 " void *data = guestfs_first_private (g, &key);\n"
34972 " while (data != NULL)\n"
34973 "   {\n"
34974 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
34975 "     data = guestfs_next_private (g, &key);\n"
34976 "   }\n"
34977 "\n"
34978 msgstr ""
34979
34980 #. type: textblock
34981 #: ../src/guestfs.pod:2101
34982 msgid ""
34983 "More commonly you are only interested in keys that begin with an application-"
34984 "specific prefix C<foo_>.  Modify the loop like so:"
34985 msgstr ""
34986
34987 #. type: verbatim
34988 #: ../src/guestfs.pod:2104
34989 #, no-wrap
34990 msgid ""
34991 " const char *key;\n"
34992 " void *data = guestfs_first_private (g, &key);\n"
34993 " while (data != NULL)\n"
34994 "   {\n"
34995 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
34996 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
34997 "     data = guestfs_next_private (g, &key);\n"
34998 "   }\n"
34999 "\n"
35000 msgstr ""
35001
35002 #. type: textblock
35003 #: ../src/guestfs.pod:2113
35004 msgid ""
35005 "If you need to modify keys while walking, then you have to jump back to the "
35006 "beginning of the loop.  For example, to delete all keys prefixed with "
35007 "C<foo_>:"
35008 msgstr ""
35009
35010 #. type: verbatim
35011 #: ../src/guestfs.pod:2117
35012 #, no-wrap
35013 msgid ""
35014 "  const char *key;\n"
35015 "  void *data;\n"
35016 " again:\n"
35017 "  data = guestfs_first_private (g, &key);\n"
35018 "  while (data != NULL)\n"
35019 "    {\n"
35020 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
35021 "        {\n"
35022 "          guestfs_set_private (g, key, NULL);\n"
35023 "          /* note that 'key' pointer is now invalid, and so is\n"
35024 "             the internal iterator */\n"
35025 "          goto again;\n"
35026 "        }\n"
35027 "      data = guestfs_next_private (g, &key);\n"
35028 "    }\n"
35029 "\n"
35030 msgstr ""
35031
35032 #. type: textblock
35033 #: ../src/guestfs.pod:2133
35034 msgid ""
35035 "Note that the above loop is guaranteed to terminate because the keys are "
35036 "being deleted, but other manipulations of keys within the loop might not "
35037 "terminate unless you also maintain an indication of which keys have been "
35038 "visited."
35039 msgstr ""
35040
35041 #. type: =end
35042 #: ../src/guestfs.pod:2138 ../src/guestfs.pod:2143
35043 msgid "html"
35044 msgstr ""
35045
35046 #. type: textblock
35047 #: ../src/guestfs.pod:2140
35048 msgid ""
35049 "<!-- old anchor for the next section --> <a name="
35050 "\"state_machine_and_low_level_event_api\"/>"
35051 msgstr ""
35052
35053 #. type: =head1
35054 #: ../src/guestfs.pod:2145
35055 msgid "ARCHITECTURE"
35056 msgstr ""
35057
35058 #. type: textblock
35059 #: ../src/guestfs.pod:2147
35060 msgid ""
35061 "Internally, libguestfs is implemented by running an appliance (a special "
35062 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
35063 "process of the main program."
35064 msgstr ""
35065
35066 #. type: verbatim
35067 #: ../src/guestfs.pod:2151
35068 #, no-wrap
35069 msgid ""
35070 "  ___________________\n"
35071 " /                   \\\n"
35072 " | main program      |\n"
35073 " |                   |\n"
35074 " |                   |           child process / appliance\n"
35075 " |                   |           __________________________\n"
35076 " |                   |          / qemu                     \\\n"
35077 " +-------------------+   RPC    |      +-----------------+ |\n"
35078 " | libguestfs     <--------------------> guestfsd        | |\n"
35079 " |                   |          |      +-----------------+ |\n"
35080 " \\___________________/          |      | Linux kernel    | |\n"
35081 "                                |      +--^--------------+ |\n"
35082 "                                \\_________|________________/\n"
35083 "                                          |\n"
35084 "                                   _______v______\n"
35085 "                                  /              \\\n"
35086 "                                  | Device or    |\n"
35087 "                                  | disk image   |\n"
35088 "                                  \\______________/\n"
35089 "\n"
35090 msgstr ""
35091
35092 #. type: textblock
35093 #: ../src/guestfs.pod:2171
35094 msgid ""
35095 "The library, linked to the main program, creates the child process and hence "
35096 "the appliance in the L</guestfs_launch> function."
35097 msgstr ""
35098
35099 #. type: textblock
35100 #: ../src/guestfs.pod:2174
35101 msgid ""
35102 "Inside the appliance is a Linux kernel and a complete stack of userspace "
35103 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
35104 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
35105 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
35106 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
35107 "attached to the qemu process which translates device access by the "
35108 "appliance's Linux kernel into accesses to the image."
35109 msgstr ""
35110
35111 #. type: textblock
35112 #: ../src/guestfs.pod:2183
35113 msgid ""
35114 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
35115 "Although the disk image you are attached to might also be used by some "
35116 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
35117 "care if both libguestfs's qemu process and your virtual machine are trying "
35118 "to update the disk image at the same time, since these usually results in "
35119 "massive disk corruption)."
35120 msgstr ""
35121
35122 #. type: =head1
35123 #: ../src/guestfs.pod:2190
35124 msgid "STATE MACHINE"
35125 msgstr ""
35126
35127 #. type: textblock
35128 #: ../src/guestfs.pod:2192
35129 msgid "libguestfs uses a state machine to model the child process:"
35130 msgstr ""
35131
35132 #. type: verbatim
35133 #: ../src/guestfs.pod:2194
35134 #, no-wrap
35135 msgid ""
35136 "                         |\n"
35137 "                    guestfs_create\n"
35138 "                         |\n"
35139 "                         |\n"
35140 "                     ____V_____\n"
35141 "                    /          \\\n"
35142 "                    |  CONFIG  |\n"
35143 "                    \\__________/\n"
35144 "                     ^ ^   ^  \\\n"
35145 "                    /  |    \\  \\ guestfs_launch\n"
35146 "                   /   |    _\\__V______\n"
35147 "                  /    |   /           \\\n"
35148 "                 /     |   | LAUNCHING |\n"
35149 "                /      |   \\___________/\n"
35150 "               /       |       /\n"
35151 "              /        |  guestfs_launch\n"
35152 "             /         |     /\n"
35153 "    ______  /        __|____V\n"
35154 "   /      \\ ------> /        \\\n"
35155 "   | BUSY |         | READY  |\n"
35156 "   \\______/ <------ \\________/\n"
35157 "\n"
35158 msgstr ""
35159
35160 #. type: textblock
35161 #: ../src/guestfs.pod:2216
35162 msgid ""
35163 "The normal transitions are (1) CONFIG (when the handle is created, but there "
35164 "is no child process), (2) LAUNCHING (when the child process is booting up), "
35165 "(3) alternating between READY and BUSY as commands are issued to, and "
35166 "carried out by, the child process."
35167 msgstr ""
35168
35169 #. type: textblock
35170 #: ../src/guestfs.pod:2221
35171 msgid ""
35172 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
35173 "asynchronously at any time (eg. due to some internal error), and that causes "
35174 "the state to transition back to CONFIG."
35175 msgstr ""
35176
35177 #. type: textblock
35178 #: ../src/guestfs.pod:2225
35179 msgid ""
35180 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
35181 "issued when in the CONFIG state."
35182 msgstr ""
35183
35184 #. type: textblock
35185 #: ../src/guestfs.pod:2228
35186 msgid ""
35187 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
35188 "L</guestfs_launch> blocks until the child process is READY to accept "
35189 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
35190 "moves the state from CONFIG to LAUNCHING while it is running."
35191 msgstr ""
35192
35193 #. type: textblock
35194 #: ../src/guestfs.pod:2234
35195 msgid ""
35196 "API actions such as L</guestfs_mount> can only be issued when in the READY "
35197 "state.  These API calls block waiting for the command to be carried out (ie. "
35198 "the state to transition to BUSY and then back to READY).  There are no non-"
35199 "blocking versions, and no way to issue more than one command per handle at "
35200 "the same time."
35201 msgstr ""
35202
35203 #. type: textblock
35204 #: ../src/guestfs.pod:2240
35205 msgid ""
35206 "Finally, the child process sends asynchronous messages back to the main "
35207 "program, such as kernel log messages.  You can register a callback to "
35208 "receive these messages."
35209 msgstr ""
35210
35211 #. type: =head1
35212 #: ../src/guestfs.pod:2244
35213 msgid "INTERNALS"
35214 msgstr ""
35215
35216 #. type: =head2
35217 #: ../src/guestfs.pod:2246
35218 msgid "COMMUNICATION PROTOCOL"
35219 msgstr ""
35220
35221 #. type: textblock
35222 #: ../src/guestfs.pod:2248
35223 msgid ""
35224 "Don't rely on using this protocol directly.  This section documents how it "
35225 "currently works, but it may change at any time."
35226 msgstr ""
35227
35228 #. type: textblock
35229 #: ../src/guestfs.pod:2251
35230 msgid ""
35231 "The protocol used to talk between the library and the daemon running inside "
35232 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
35233 "1014, RFC 1832, RFC 4506)."
35234 msgstr ""
35235
35236 #. type: textblock
35237 #: ../src/guestfs.pod:2255
35238 msgid ""
35239 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
35240 "this file is automatically generated)."
35241 msgstr ""
35242
35243 #. type: textblock
35244 #: ../src/guestfs.pod:2258
35245 msgid ""
35246 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
35247 "and C<FileOut> parameters, which are handled with very simple request/reply "
35248 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
35249 "parameters, which use the same request and reply messages, but they may also "
35250 "be followed by files sent using a chunked encoding."
35251 msgstr ""
35252
35253 #. type: =head3
35254 #: ../src/guestfs.pod:2265
35255 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
35256 msgstr ""
35257
35258 #. type: textblock
35259 #: ../src/guestfs.pod:2267
35260 msgid "For ordinary functions, the request message is:"
35261 msgstr ""
35262
35263 #. type: verbatim
35264 #: ../src/guestfs.pod:2269
35265 #, no-wrap
35266 msgid ""
35267 " total length (header + arguments,\n"
35268 "      but not including the length word itself)\n"
35269 " struct guestfs_message_header (encoded as XDR)\n"
35270 " struct guestfs_<foo>_args (encoded as XDR)\n"
35271 "\n"
35272 msgstr ""
35273
35274 #. type: textblock
35275 #: ../src/guestfs.pod:2274
35276 msgid ""
35277 "The total length field allows the daemon to allocate a fixed size buffer "
35278 "into which it slurps the rest of the message.  As a result, the total length "
35279 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
35280 "effective size of any request is limited to somewhere under this size."
35281 msgstr ""
35282
35283 #. type: textblock
35284 #: ../src/guestfs.pod:2280
35285 msgid ""
35286 "Note also that many functions don't take any arguments, in which case the "
35287 "C<guestfs_I<foo>_args> is completely omitted."
35288 msgstr ""
35289
35290 #. type: textblock
35291 #: ../src/guestfs.pod:2283
35292 msgid ""
35293 "The header contains the procedure number (C<guestfs_proc>) which is how the "
35294 "receiver knows what type of args structure to expect, or none at all."
35295 msgstr ""
35296
35297 #. type: textblock
35298 #: ../src/guestfs.pod:2287
35299 msgid ""
35300 "For functions that take optional arguments, the optional arguments are "
35301 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
35302 "arguments.  A bitmask in the header indicates which optional arguments are "
35303 "meaningful.  The bitmask is also checked to see if it contains bits set "
35304 "which the daemon does not know about (eg. if more optional arguments were "
35305 "added in a later version of the library), and this causes the call to be "
35306 "rejected."
35307 msgstr ""
35308
35309 #. type: textblock
35310 #: ../src/guestfs.pod:2295
35311 msgid "The reply message for ordinary functions is:"
35312 msgstr ""
35313
35314 #. type: verbatim
35315 #: ../src/guestfs.pod:2297
35316 #, no-wrap
35317 msgid ""
35318 " total length (header + ret,\n"
35319 "      but not including the length word itself)\n"
35320 " struct guestfs_message_header (encoded as XDR)\n"
35321 " struct guestfs_<foo>_ret (encoded as XDR)\n"
35322 "\n"
35323 msgstr ""
35324
35325 #. type: textblock
35326 #: ../src/guestfs.pod:2302
35327 msgid ""
35328 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
35329 "functions that return no formal return values."
35330 msgstr ""
35331
35332 #. type: textblock
35333 #: ../src/guestfs.pod:2305
35334 msgid ""
35335 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
35336 msgstr ""
35337
35338 #. type: textblock
35339 #: ../src/guestfs.pod:2308
35340 msgid ""
35341 "In the case of an error, a flag is set in the header, and the reply message "
35342 "is slightly changed:"
35343 msgstr ""
35344
35345 #. type: verbatim
35346 #: ../src/guestfs.pod:2311
35347 #, no-wrap
35348 msgid ""
35349 " total length (header + error,\n"
35350 "      but not including the length word itself)\n"
35351 " struct guestfs_message_header (encoded as XDR)\n"
35352 " struct guestfs_message_error (encoded as XDR)\n"
35353 "\n"
35354 msgstr ""
35355
35356 #. type: textblock
35357 #: ../src/guestfs.pod:2316
35358 msgid ""
35359 "The C<guestfs_message_error> structure contains the error message as a "
35360 "string."
35361 msgstr ""
35362
35363 #. type: =head3
35364 #: ../src/guestfs.pod:2319
35365 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
35366 msgstr ""
35367
35368 #. type: textblock
35369 #: ../src/guestfs.pod:2321
35370 msgid ""
35371 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
35372 "The normal request message is sent (see above).  However this is followed by "
35373 "a sequence of file chunks."
35374 msgstr ""
35375
35376 #. type: verbatim
35377 #: ../src/guestfs.pod:2325
35378 #, no-wrap
35379 msgid ""
35380 " total length (header + arguments,\n"
35381 "      but not including the length word itself,\n"
35382 "      and not including the chunks)\n"
35383 " struct guestfs_message_header (encoded as XDR)\n"
35384 " struct guestfs_<foo>_args (encoded as XDR)\n"
35385 " sequence of chunks for FileIn param #0\n"
35386 " sequence of chunks for FileIn param #1 etc.\n"
35387 "\n"
35388 msgstr ""
35389
35390 #. type: textblock
35391 #: ../src/guestfs.pod:2333
35392 msgid "The \"sequence of chunks\" is:"
35393 msgstr ""
35394
35395 #. type: verbatim
35396 #: ../src/guestfs.pod:2335
35397 #, no-wrap
35398 msgid ""
35399 " length of chunk (not including length word itself)\n"
35400 " struct guestfs_chunk (encoded as XDR)\n"
35401 " length of chunk\n"
35402 " struct guestfs_chunk (encoded as XDR)\n"
35403 "   ...\n"
35404 " length of chunk\n"
35405 " struct guestfs_chunk (with data.data_len == 0)\n"
35406 "\n"
35407 msgstr ""
35408
35409 #. type: textblock
35410 #: ../src/guestfs.pod:2343
35411 msgid ""
35412 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
35413 "is set in the final chunk to indicate either successful completion or early "
35414 "cancellation."
35415 msgstr ""
35416
35417 #. type: textblock
35418 #: ../src/guestfs.pod:2347
35419 msgid ""
35420 "At time of writing there are no functions that have more than one FileIn "
35421 "parameter.  However this is (theoretically) supported, by sending the "
35422 "sequence of chunks for each FileIn parameter one after another (from left to "
35423 "right)."
35424 msgstr ""
35425
35426 #. type: textblock
35427 #: ../src/guestfs.pod:2352
35428 msgid ""
35429 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
35430 "transfer.  The library does this by sending a chunk with a special flag set "
35431 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
35432 "RPC, does I<not> send any reply, and goes back to reading the next request."
35433 msgstr ""
35434
35435 #. type: textblock
35436 #: ../src/guestfs.pod:2358
35437 msgid ""
35438 "The daemon may also cancel.  It does this by writing a special word "
35439 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
35440 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
35441 "cancel chunk).  The special word is chosen so that even if cancellation "
35442 "happens right at the end of the transfer (after the library has finished "
35443 "writing and has started listening for the reply), the \"spurious\" cancel "
35444 "flag will not be confused with the reply message."
35445 msgstr ""
35446
35447 #. type: textblock
35448 #: ../src/guestfs.pod:2367
35449 msgid ""
35450 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
35451 "limit), and also files where the size is not known in advance (eg. from "
35452 "pipes or sockets).  However the chunks are rather small "
35453 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
35454 "to keep much in memory."
35455 msgstr ""
35456
35457 #. type: =head3
35458 #: ../src/guestfs.pod:2373
35459 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
35460 msgstr ""
35461
35462 #. type: textblock
35463 #: ../src/guestfs.pod:2375
35464 msgid ""
35465 "The protocol for FileOut parameters is exactly the same as for FileIn "
35466 "parameters, but with the roles of daemon and library reversed."
35467 msgstr ""
35468
35469 #. type: verbatim
35470 #: ../src/guestfs.pod:2378
35471 #, no-wrap
35472 msgid ""
35473 " total length (header + ret,\n"
35474 "      but not including the length word itself,\n"
35475 "      and not including the chunks)\n"
35476 " struct guestfs_message_header (encoded as XDR)\n"
35477 " struct guestfs_<foo>_ret (encoded as XDR)\n"
35478 " sequence of chunks for FileOut param #0\n"
35479 " sequence of chunks for FileOut param #1 etc.\n"
35480 "\n"
35481 msgstr ""
35482
35483 #. type: =head3
35484 #: ../src/guestfs.pod:2386
35485 msgid "INITIAL MESSAGE"
35486 msgstr ""
35487
35488 #. type: textblock
35489 #: ../src/guestfs.pod:2388
35490 msgid ""
35491 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
35492 "which indicates that the guest and daemon is alive.  This is what L</"
35493 "guestfs_launch> waits for."
35494 msgstr ""
35495
35496 #. type: =head3
35497 #: ../src/guestfs.pod:2392
35498 msgid "PROGRESS NOTIFICATION MESSAGES"
35499 msgstr ""
35500
35501 #. type: textblock
35502 #: ../src/guestfs.pod:2394
35503 msgid ""
35504 "The daemon may send progress notification messages at any time.  These are "
35505 "distinguished by the normal length word being replaced by "
35506 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
35507 msgstr ""
35508
35509 #. type: textblock
35510 #: ../src/guestfs.pod:2398
35511 msgid ""
35512 "The library turns them into progress callbacks (see L</"
35513 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
35514 "if not."
35515 msgstr ""
35516
35517 #. type: textblock
35518 #: ../src/guestfs.pod:2402
35519 msgid ""
35520 "The daemon self-limits the frequency of progress messages it sends (see "
35521 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
35522 "messages."
35523 msgstr ""
35524
35525 #. type: =head1
35526 #: ../src/guestfs.pod:2406
35527 msgid "LIBGUESTFS VERSION NUMBERS"
35528 msgstr ""
35529
35530 #. type: textblock
35531 #: ../src/guestfs.pod:2408
35532 msgid ""
35533 "Since April 2010, libguestfs has started to make separate development and "
35534 "stable releases, along with corresponding branches in our git repository.  "
35535 "These separate releases can be identified by version number:"
35536 msgstr ""
35537
35538 #. type: verbatim
35539 #: ../src/guestfs.pod:2413
35540 #, no-wrap
35541 msgid ""
35542 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
35543 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
35544 "       |\n"
35545 "       v\n"
35546 " 1  .  3  .  5\n"
35547 " ^           ^\n"
35548 " |           |\n"
35549 " |           `-------- sub-version\n"
35550 " |\n"
35551 " `------ always '1' because we don't change the ABI\n"
35552 "\n"
35553 msgstr ""
35554
35555 #. type: textblock
35556 #: ../src/guestfs.pod:2424
35557 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
35558 msgstr ""
35559
35560 #. type: textblock
35561 #: ../src/guestfs.pod:2426
35562 msgid ""
35563 "As time passes we cherry pick fixes from the development branch and backport "
35564 "those into the stable branch, the effect being that the stable branch should "
35565 "get more stable and less buggy over time.  So the stable releases are ideal "
35566 "for people who don't need new features but would just like the software to "
35567 "work."
35568 msgstr ""
35569
35570 #. type: textblock
35571 #: ../src/guestfs.pod:2432
35572 msgid "Our criteria for backporting changes are:"
35573 msgstr ""
35574
35575 #. type: textblock
35576 #: ../src/guestfs.pod:2438
35577 msgid ""
35578 "Documentation changes which don't affect any code are backported unless the "
35579 "documentation refers to a future feature which is not in stable."
35580 msgstr ""
35581
35582 #. type: textblock
35583 #: ../src/guestfs.pod:2444
35584 msgid ""
35585 "Bug fixes which are not controversial, fix obvious problems, and have been "
35586 "well tested are backported."
35587 msgstr ""
35588
35589 #. type: textblock
35590 #: ../src/guestfs.pod:2449
35591 msgid ""
35592 "Simple rearrangements of code which shouldn't affect how it works get "
35593 "backported.  This is so that the code in the two branches doesn't get too "
35594 "far out of step, allowing us to backport future fixes more easily."
35595 msgstr ""
35596
35597 #. type: textblock
35598 #: ../src/guestfs.pod:2455
35599 msgid ""
35600 "We I<don't> backport new features, new APIs, new tools etc, except in one "
35601 "exceptional case: the new feature is required in order to implement an "
35602 "important bug fix."
35603 msgstr ""
35604
35605 #. type: textblock
35606 #: ../src/guestfs.pod:2461
35607 msgid ""
35608 "A new stable branch starts when we think the new features in development are "
35609 "substantial and compelling enough over the current stable branch to warrant "
35610 "it.  When that happens we create new stable and development versions 1.N.0 "
35611 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
35612 "stable at this point, but by backporting fixes from development, that branch "
35613 "will stabilize over time."
35614 msgstr ""
35615
35616 #. type: =head1
35617 #: ../src/guestfs.pod:2469
35618 msgid "EXTENDING LIBGUESTFS"
35619 msgstr ""
35620
35621 #. type: =head2
35622 #: ../src/guestfs.pod:2471
35623 msgid "ADDING A NEW API ACTION"
35624 msgstr ""
35625
35626 #. type: textblock
35627 #: ../src/guestfs.pod:2473
35628 msgid ""
35629 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
35630 "documentation) are generated, and this makes it easy to extend the "
35631 "libguestfs API."
35632 msgstr ""
35633
35634 #. type: textblock
35635 #: ../src/guestfs.pod:2477
35636 msgid "To add a new API action there are two changes:"
35637 msgstr ""
35638
35639 #. type: textblock
35640 #: ../src/guestfs.pod:2483
35641 msgid ""
35642 "You need to add a description of the call (name, parameters, return type, "
35643 "tests, documentation) to C<generator/generator_actions.ml>."
35644 msgstr ""
35645
35646 #. type: textblock
35647 #: ../src/guestfs.pod:2486
35648 msgid ""
35649 "There are two sorts of API action, depending on whether the call goes "
35650 "through to the daemon in the appliance, or is serviced entirely by the "
35651 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
35652 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
35653 "an example of the latter, since a trace flag is maintained in the handle and "
35654 "all tracing is done on the library side."
35655 msgstr ""
35656
35657 #. type: textblock
35658 #: ../src/guestfs.pod:2494
35659 msgid ""
35660 "Most new actions are of the first type, and get added to the "
35661 "C<daemon_functions> list.  Each function has a unique procedure number used "
35662 "in the RPC protocol which is assigned to that action when we publish "
35663 "libguestfs and cannot be reused.  Take the latest procedure number and "
35664 "increment it."
35665 msgstr ""
35666
35667 #. type: textblock
35668 #: ../src/guestfs.pod:2500
35669 msgid ""
35670 "For library-only actions of the second type, add to the "
35671 "C<non_daemon_functions> list.  Since these functions are serviced by the "
35672 "library and do not travel over the RPC mechanism to the daemon, these "
35673 "functions do not need a procedure number, and so the procedure number is set "
35674 "to C<-1>."
35675 msgstr ""
35676
35677 #. type: textblock
35678 #: ../src/guestfs.pod:2508
35679 msgid "Implement the action (in C):"
35680 msgstr ""
35681
35682 #. type: textblock
35683 #: ../src/guestfs.pod:2510
35684 msgid ""
35685 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
35686 "C<daemon/> directory."
35687 msgstr ""
35688
35689 #. type: textblock
35690 #: ../src/guestfs.pod:2513
35691 msgid ""
35692 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
35693 "(note: double underscore) in the C<src/> directory."
35694 msgstr ""
35695
35696 #. type: textblock
35697 #: ../src/guestfs.pod:2516
35698 msgid "In either case, use another function as an example of what to do."
35699 msgstr ""
35700
35701 #. type: textblock
35702 #: ../src/guestfs.pod:2520
35703 msgid "After making these changes, use C<make> to compile."
35704 msgstr ""
35705
35706 #. type: textblock
35707 #: ../src/guestfs.pod:2522
35708 msgid ""
35709 "Note that you don't need to implement the RPC, language bindings, manual "
35710 "pages or anything else.  It's all automatically generated from the OCaml "
35711 "description."
35712 msgstr ""
35713
35714 #. type: =head2
35715 #: ../src/guestfs.pod:2526
35716 msgid "ADDING TESTS FOR AN API ACTION"
35717 msgstr ""
35718
35719 #. type: textblock
35720 #: ../src/guestfs.pod:2528
35721 msgid ""
35722 "You can supply zero or as many tests as you want per API call.  The tests "
35723 "can either be added as part of the API description (C<generator/"
35724 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
35725 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
35726 "slower, so if possible use the first method."
35727 msgstr ""
35728
35729 #. type: textblock
35730 #: ../src/guestfs.pod:2534
35731 msgid ""
35732 "The following describes the test environment used when you add an API test "
35733 "in C<generator_actions.ml>."
35734 msgstr ""
35735
35736 #. type: textblock
35737 #: ../src/guestfs.pod:2537
35738 msgid "The test environment has 4 block devices:"
35739 msgstr ""
35740
35741 #. type: =item
35742 #: ../src/guestfs.pod:2541
35743 msgid "C</dev/sda> 500MB"
35744 msgstr ""
35745
35746 #. type: textblock
35747 #: ../src/guestfs.pod:2543
35748 msgid "General block device for testing."
35749 msgstr ""
35750
35751 #. type: =item
35752 #: ../src/guestfs.pod:2545
35753 msgid "C</dev/sdb> 50MB"
35754 msgstr ""
35755
35756 #. type: textblock
35757 #: ../src/guestfs.pod:2547
35758 msgid ""
35759 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
35760 "operations."
35761 msgstr ""
35762
35763 #. type: =item
35764 #: ../src/guestfs.pod:2550
35765 msgid "C</dev/sdc> 10MB"
35766 msgstr ""
35767
35768 #. type: textblock
35769 #: ../src/guestfs.pod:2552
35770 msgid "Used in a few tests where two block devices are needed."
35771 msgstr ""
35772
35773 #. type: =item
35774 #: ../src/guestfs.pod:2554
35775 msgid "C</dev/sdd>"
35776 msgstr ""
35777
35778 #. type: textblock
35779 #: ../src/guestfs.pod:2556
35780 msgid "ISO with fixed content (see C<images/test.iso>)."
35781 msgstr ""
35782
35783 #. type: textblock
35784 #: ../src/guestfs.pod:2560
35785 msgid ""
35786 "To be able to run the tests in a reasonable amount of time, the libguestfs "
35787 "appliance and block devices are reused between tests.  So don't try testing "
35788 "L</guestfs_kill_subprocess> :-x"
35789 msgstr ""
35790
35791 #. type: textblock
35792 #: ../src/guestfs.pod:2564
35793 msgid ""
35794 "Each test starts with an initial scenario, selected using one of the "
35795 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
35796 "initialize the disks mentioned above in a particular way as documented in "
35797 "C<generator_types.ml>.  You should not assume anything about the previous "
35798 "contents of other disks that are not initialized."
35799 msgstr ""
35800
35801 #. type: textblock
35802 #: ../src/guestfs.pod:2570
35803 msgid ""
35804 "You can add a prerequisite clause to any individual test.  This is a run-"
35805 "time check, which, if it fails, causes the test to be skipped.  Useful if "
35806 "testing a command which might not work on all variations of libguestfs "
35807 "builds.  A test that has prerequisite of C<Always> means to run "
35808 "unconditionally."
35809 msgstr ""
35810
35811 #. type: textblock
35812 #: ../src/guestfs.pod:2576
35813 msgid ""
35814 "In addition, packagers can skip individual tests by setting environment "
35815 "variables before running C<make check>."
35816 msgstr ""
35817
35818 #. type: verbatim
35819 #: ../src/guestfs.pod:2579
35820 #, no-wrap
35821 msgid ""
35822 " SKIP_TEST_<CMD>_<NUM>=1\n"
35823 "\n"
35824 msgstr ""
35825
35826 #. type: textblock
35827 #: ../src/guestfs.pod:2581
35828 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
35829 msgstr ""
35830
35831 #. type: textblock
35832 #: ../src/guestfs.pod:2583
35833 msgid "or:"
35834 msgstr ""
35835
35836 #. type: verbatim
35837 #: ../src/guestfs.pod:2585
35838 #, no-wrap
35839 msgid ""
35840 " SKIP_TEST_<CMD>=1\n"
35841 "\n"
35842 msgstr ""
35843
35844 #. type: textblock
35845 #: ../src/guestfs.pod:2587
35846 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
35847 msgstr ""
35848
35849 #. type: textblock
35850 #: ../src/guestfs.pod:2589
35851 msgid "Packagers can run only certain tests by setting for example:"
35852 msgstr ""
35853
35854 #. type: verbatim
35855 #: ../src/guestfs.pod:2591
35856 #, no-wrap
35857 msgid ""
35858 " TEST_ONLY=\"vfs_type zerofree\"\n"
35859 "\n"
35860 msgstr ""
35861
35862 #. type: textblock
35863 #: ../src/guestfs.pod:2593
35864 msgid ""
35865 "See C<capitests/tests.c> for more details of how these environment variables "
35866 "work."
35867 msgstr ""
35868
35869 #. type: =head2
35870 #: ../src/guestfs.pod:2596
35871 msgid "DEBUGGING NEW API ACTIONS"
35872 msgstr ""
35873
35874 #. type: textblock
35875 #: ../src/guestfs.pod:2598
35876 msgid "Test new actions work before submitting them."
35877 msgstr ""
35878
35879 #. type: textblock
35880 #: ../src/guestfs.pod:2600
35881 msgid "You can use guestfish to try out new commands."
35882 msgstr ""
35883
35884 #. type: textblock
35885 #: ../src/guestfs.pod:2602
35886 msgid ""
35887 "Debugging the daemon is a problem because it runs inside a minimal "
35888 "environment.  However you can fprintf messages in the daemon to stderr, and "
35889 "they will show up if you use C<guestfish -v>."
35890 msgstr ""
35891
35892 #. type: =head2
35893 #: ../src/guestfs.pod:2606
35894 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
35895 msgstr ""
35896
35897 #. type: textblock
35898 #: ../src/guestfs.pod:2608
35899 msgid ""
35900 "Our C source code generally adheres to some basic code-formatting "
35901 "conventions.  The existing code base is not totally consistent on this "
35902 "front, but we do prefer that contributed code be formatted similarly.  In "
35903 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
35904 "indentation level, and other than that, follow the K&R style."
35905 msgstr ""
35906
35907 #. type: textblock
35908 #: ../src/guestfs.pod:2614
35909 msgid ""
35910 "If you use Emacs, add the following to one of one of your start-up files (e."
35911 "g., ~/.emacs), to help ensure that you get indentation right:"
35912 msgstr ""
35913
35914 #. type: verbatim
35915 #: ../src/guestfs.pod:2617
35916 #, no-wrap
35917 msgid ""
35918 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
35919 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
35920 " (add-hook 'find-file-hook\n"
35921 "     '(lambda () (if (and buffer-file-name\n"
35922 "                          (string-match \"/libguestfs\\\\>\"\n"
35923 "                              (buffer-file-name))\n"
35924 "                          (not (string-equal mode-name \"Change Log\"))\n"
35925 "                          (not (string-equal mode-name \"Makefile\")))\n"
35926 "                     (setq indent-tabs-mode nil))))\n"
35927 " \n"
35928 msgstr ""
35929
35930 #. type: verbatim
35931 #: ../src/guestfs.pod:2627
35932 #, no-wrap
35933 msgid ""
35934 " ;;; When editing C sources in libguestfs, use this style.\n"
35935 " (defun libguestfs-c-mode ()\n"
35936 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
35937 "   (interactive)\n"
35938 "   (c-set-style \"K&R\")\n"
35939 "   (setq c-indent-level 2)\n"
35940 "   (setq c-basic-offset 2))\n"
35941 " (add-hook 'c-mode-hook\n"
35942 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
35943 "                               (buffer-file-name))\n"
35944 "                           (libguestfs-c-mode))))\n"
35945 "\n"
35946 msgstr ""
35947
35948 #. type: textblock
35949 #: ../src/guestfs.pod:2639
35950 msgid "Enable warnings when compiling (and fix any problems this finds):"
35951 msgstr ""
35952
35953 #. type: verbatim
35954 #: ../src/guestfs.pod:2642
35955 #, no-wrap
35956 msgid ""
35957 " ./configure --enable-gcc-warnings\n"
35958 "\n"
35959 msgstr ""
35960
35961 #. type: textblock
35962 #: ../src/guestfs.pod:2644
35963 msgid "Useful targets are:"
35964 msgstr ""
35965
35966 #. type: verbatim
35967 #: ../src/guestfs.pod:2646
35968 #, no-wrap
35969 msgid ""
35970 " make syntax-check  # checks the syntax of the C code\n"
35971 " make check         # runs the test suite\n"
35972 "\n"
35973 msgstr ""
35974
35975 #. type: =head2
35976 #: ../src/guestfs.pod:2649
35977 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
35978 msgstr ""
35979
35980 #. type: textblock
35981 #: ../src/guestfs.pod:2651
35982 msgid ""
35983 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
35984 "which are used to do shell quoting."
35985 msgstr ""
35986
35987 #. type: =item
35988 #: ../src/guestfs.pod:2656
35989 msgid "%Q"
35990 msgstr ""
35991
35992 #. type: textblock
35993 #: ../src/guestfs.pod:2658
35994 msgid ""
35995 "Simple shell quoted string.  Any spaces or other shell characters are "
35996 "escaped for you."
35997 msgstr ""
35998
35999 #. type: =item
36000 #: ../src/guestfs.pod:2661
36001 msgid "%R"
36002 msgstr ""
36003
36004 #. type: textblock
36005 #: ../src/guestfs.pod:2663
36006 msgid ""
36007 "Same as C<%Q> except the string is treated as a path which is prefixed by "
36008 "the sysroot."
36009 msgstr ""
36010
36011 #. type: verbatim
36012 #: ../src/guestfs.pod:2670
36013 #, no-wrap
36014 msgid ""
36015 " asprintf (&cmd, \"cat %R\", path);\n"
36016 "\n"
36017 msgstr ""
36018
36019 #. type: textblock
36020 #: ../src/guestfs.pod:2672
36021 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
36022 msgstr ""
36023
36024 #. type: textblock
36025 #: ../src/guestfs.pod:2674
36026 msgid ""
36027 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
36028 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
36029 "they are not passed via the shell (instead, straight to exec).  You probably "
36030 "want to use the C<sysroot_path()> function however."
36031 msgstr ""
36032
36033 #. type: =head2
36034 #: ../src/guestfs.pod:2680
36035 msgid "SUBMITTING YOUR NEW API ACTIONS"
36036 msgstr ""
36037
36038 #. type: textblock
36039 #: ../src/guestfs.pod:2682
36040 msgid ""
36041 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
36042 "libguestfs> and CC to L<rjones@redhat.com>."
36043 msgstr ""
36044
36045 #. type: =head2
36046 #: ../src/guestfs.pod:2686
36047 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
36048 msgstr ""
36049
36050 #. type: textblock
36051 #: ../src/guestfs.pod:2688
36052 msgid "We support i18n (gettext anyhow) in the library."
36053 msgstr ""
36054
36055 #. type: textblock
36056 #: ../src/guestfs.pod:2690
36057 msgid ""
36058 "However many messages come from the daemon, and we don't translate those at "
36059 "the moment.  One reason is that the appliance generally has all locale files "
36060 "removed from it, because they take up a lot of space.  So we'd have to readd "
36061 "some of those, as well as copying our PO files into the appliance."
36062 msgstr ""
36063
36064 #. type: textblock
36065 #: ../src/guestfs.pod:2696
36066 msgid ""
36067 "Debugging messages are never translated, since they are intended for the "
36068 "programmers."
36069 msgstr ""
36070
36071 #. type: =head2
36072 #: ../src/guestfs.pod:2699
36073 msgid "SOURCE CODE SUBDIRECTORIES"
36074 msgstr ""
36075
36076 #. type: textblock
36077 #: ../src/guestfs.pod:2705
36078 msgid "The libguestfs appliance, build scripts and so on."
36079 msgstr ""
36080
36081 #. type: =item
36082 #: ../src/guestfs.pod:2707
36083 msgid "C<capitests>"
36084 msgstr ""
36085
36086 #. type: textblock
36087 #: ../src/guestfs.pod:2709
36088 msgid "Automated tests of the C API."
36089 msgstr ""
36090
36091 #. type: =item
36092 #: ../src/guestfs.pod:2711
36093 msgid "C<cat>"
36094 msgstr ""
36095
36096 #. type: textblock
36097 #: ../src/guestfs.pod:2713
36098 msgid ""
36099 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
36100 "documentation."
36101 msgstr ""
36102
36103 #. type: =item
36104 #: ../src/guestfs.pod:2716
36105 msgid "C<caution>"
36106 msgstr ""
36107
36108 #. type: textblock
36109 #: ../src/guestfs.pod:2718
36110 msgid ""
36111 "Safety and liveness tests of components that libguestfs depends upon (not of "
36112 "libguestfs itself).  Mainly this is for qemu and the kernel."
36113 msgstr ""
36114
36115 #. type: =item
36116 #: ../src/guestfs.pod:2721
36117 msgid "C<contrib>"
36118 msgstr ""
36119
36120 #. type: textblock
36121 #: ../src/guestfs.pod:2723
36122 msgid "Outside contributions, experimental parts."
36123 msgstr ""
36124
36125 #. type: =item
36126 #: ../src/guestfs.pod:2725
36127 msgid "C<daemon>"
36128 msgstr ""
36129
36130 #. type: textblock
36131 #: ../src/guestfs.pod:2727
36132 msgid ""
36133 "The daemon that runs inside the libguestfs appliance and carries out actions."
36134 msgstr ""
36135
36136 #. type: =item
36137 #: ../src/guestfs.pod:2730
36138 msgid "C<df>"
36139 msgstr ""
36140
36141 #. type: textblock
36142 #: ../src/guestfs.pod:2732
36143 msgid "L<virt-df(1)> command and documentation."
36144 msgstr ""
36145
36146 #. type: =item
36147 #: ../src/guestfs.pod:2734
36148 msgid "C<edit>"
36149 msgstr ""
36150
36151 #. type: textblock
36152 #: ../src/guestfs.pod:2736
36153 msgid "L<virt-edit(1)> command and documentation."
36154 msgstr ""
36155
36156 #. type: =item
36157 #: ../src/guestfs.pod:2738
36158 msgid "C<examples>"
36159 msgstr ""
36160
36161 #. type: textblock
36162 #: ../src/guestfs.pod:2740
36163 msgid "C API example code."
36164 msgstr ""
36165
36166 #. type: =item
36167 #: ../src/guestfs.pod:2742
36168 msgid "C<fish>"
36169 msgstr ""
36170
36171 #. type: textblock
36172 #: ../src/guestfs.pod:2744
36173 msgid ""
36174 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
36175 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
36176 "L<virt-tar-out(1)>."
36177 msgstr ""
36178
36179 #. type: =item
36180 #: ../src/guestfs.pod:2748
36181 msgid "C<fuse>"
36182 msgstr ""
36183
36184 #. type: textblock
36185 #: ../src/guestfs.pod:2750
36186 msgid ""
36187 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
36188 msgstr ""
36189
36190 #. type: =item
36191 #: ../src/guestfs.pod:2752
36192 msgid "C<generator>"
36193 msgstr ""
36194
36195 #. type: textblock
36196 #: ../src/guestfs.pod:2754
36197 msgid ""
36198 "The crucially important generator, used to automatically generate large "
36199 "amounts of boilerplate C code for things like RPC and bindings."
36200 msgstr ""
36201
36202 #. type: =item
36203 #: ../src/guestfs.pod:2757
36204 msgid "C<images>"
36205 msgstr ""
36206
36207 #. type: textblock
36208 #: ../src/guestfs.pod:2759
36209 msgid "Files used by the test suite."
36210 msgstr ""
36211
36212 #. type: textblock
36213 #: ../src/guestfs.pod:2761
36214 msgid "Some \"phony\" guest images which we test against."
36215 msgstr ""
36216
36217 #. type: =item
36218 #: ../src/guestfs.pod:2763
36219 msgid "C<inspector>"
36220 msgstr ""
36221
36222 #. type: textblock
36223 #: ../src/guestfs.pod:2765
36224 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
36225 msgstr ""
36226
36227 #. type: =item
36228 #: ../src/guestfs.pod:2767
36229 msgid "C<logo>"
36230 msgstr ""
36231
36232 #. type: textblock
36233 #: ../src/guestfs.pod:2769
36234 msgid "Logo used on the website.  The fish is called Arthur by the way."
36235 msgstr ""
36236
36237 #. type: =item
36238 #: ../src/guestfs.pod:2771
36239 msgid "C<m4>"
36240 msgstr ""
36241
36242 #. type: textblock
36243 #: ../src/guestfs.pod:2773
36244 msgid "M4 macros used by autoconf."
36245 msgstr ""
36246
36247 #. type: =item
36248 #: ../src/guestfs.pod:2775
36249 msgid "C<po>"
36250 msgstr ""
36251
36252 #. type: textblock
36253 #: ../src/guestfs.pod:2777
36254 msgid "Translations of simple gettext strings."
36255 msgstr ""
36256
36257 #. type: =item
36258 #: ../src/guestfs.pod:2779
36259 msgid "C<po-docs>"
36260 msgstr ""
36261
36262 #. type: textblock
36263 #: ../src/guestfs.pod:2781
36264 msgid ""
36265 "The build infrastructure and PO files for translations of manpages and POD "
36266 "files.  Eventually this will be combined with the C<po> directory, but that "
36267 "is rather complicated."
36268 msgstr ""
36269
36270 #. type: =item
36271 #: ../src/guestfs.pod:2785
36272 msgid "C<regressions>"
36273 msgstr ""
36274
36275 #. type: textblock
36276 #: ../src/guestfs.pod:2787
36277 msgid "Regression tests."
36278 msgstr ""
36279
36280 #. type: =item
36281 #: ../src/guestfs.pod:2789
36282 msgid "C<rescue>"
36283 msgstr ""
36284
36285 #. type: textblock
36286 #: ../src/guestfs.pod:2791
36287 msgid "L<virt-rescue(1)> command and documentation."
36288 msgstr ""
36289
36290 #. type: =item
36291 #: ../src/guestfs.pod:2793
36292 msgid "C<src>"
36293 msgstr ""
36294
36295 #. type: textblock
36296 #: ../src/guestfs.pod:2795
36297 msgid "Source code to the C library."
36298 msgstr ""
36299
36300 #. type: =item
36301 #: ../src/guestfs.pod:2797
36302 msgid "C<tools>"
36303 msgstr ""
36304
36305 #. type: textblock
36306 #: ../src/guestfs.pod:2799
36307 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
36308 msgstr ""
36309
36310 #. type: =item
36311 #: ../src/guestfs.pod:2801
36312 msgid "C<test-tool>"
36313 msgstr ""
36314
36315 #. type: textblock
36316 #: ../src/guestfs.pod:2803
36317 msgid ""
36318 "Test tool for end users to test if their qemu/kernel combination will work "
36319 "with libguestfs."
36320 msgstr ""
36321
36322 #. type: =item
36323 #: ../src/guestfs.pod:2806
36324 msgid "C<csharp>"
36325 msgstr ""
36326
36327 #. type: =item
36328 #: ../src/guestfs.pod:2808
36329 msgid "C<haskell>"
36330 msgstr ""
36331
36332 #. type: =item
36333 #: ../src/guestfs.pod:2810
36334 msgid "C<java>"
36335 msgstr ""
36336
36337 #. type: =item
36338 #: ../src/guestfs.pod:2812
36339 msgid "C<ocaml>"
36340 msgstr ""
36341
36342 #. type: =item
36343 #: ../src/guestfs.pod:2814
36344 msgid "C<php>"
36345 msgstr ""
36346
36347 #. type: =item
36348 #: ../src/guestfs.pod:2816
36349 msgid "C<perl>"
36350 msgstr ""
36351
36352 #. type: =item
36353 #: ../src/guestfs.pod:2818
36354 msgid "C<python>"
36355 msgstr ""
36356
36357 #. type: =item
36358 #: ../src/guestfs.pod:2820
36359 msgid "C<ruby>"
36360 msgstr ""
36361
36362 #. type: textblock
36363 #: ../src/guestfs.pod:2822
36364 msgid "Language bindings."
36365 msgstr ""
36366
36367 #. type: =head2
36368 #: ../src/guestfs.pod:2826
36369 msgid "MAKING A STABLE RELEASE"
36370 msgstr ""
36371
36372 #. type: textblock
36373 #: ../src/guestfs.pod:2828
36374 msgid ""
36375 "When we make a stable release, there are several steps documented here.  See "
36376 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
36377 "branch policy."
36378 msgstr ""
36379
36380 #. type: textblock
36381 #: ../src/guestfs.pod:2836
36382 msgid ""
36383 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
36384 msgstr ""
36385
36386 #. type: textblock
36387 #: ../src/guestfs.pod:2841
36388 msgid "Finalize RELEASE-NOTES."
36389 msgstr ""
36390
36391 #. type: textblock
36392 #: ../src/guestfs.pod:2845
36393 msgid "Update ROADMAP."
36394 msgstr ""
36395
36396 #. type: textblock
36397 #: ../src/guestfs.pod:2849
36398 msgid "Run C<src/api-support/update-from-tarballs.sh>."
36399 msgstr ""
36400
36401 #. type: textblock
36402 #: ../src/guestfs.pod:2853
36403 msgid "Push and pull from Transifex."
36404 msgstr ""
36405
36406 #. type: textblock
36407 #: ../src/guestfs.pod:2855
36408 msgid "Run:"
36409 msgstr ""
36410
36411 #. type: verbatim
36412 #: ../src/guestfs.pod:2857
36413 #, no-wrap
36414 msgid ""
36415 " tx push -s\n"
36416 "\n"
36417 msgstr ""
36418
36419 #. type: textblock
36420 #: ../src/guestfs.pod:2859
36421 msgid "to push the latest POT files to Transifex.  Then run:"
36422 msgstr ""
36423
36424 #. type: verbatim
36425 #: ../src/guestfs.pod:2861
36426 #, no-wrap
36427 msgid ""
36428 " ./tx-pull.sh\n"
36429 "\n"
36430 msgstr ""
36431
36432 #. type: textblock
36433 #: ../src/guestfs.pod:2863
36434 msgid "which is a wrapper to pull the latest translated C<*.po> files."
36435 msgstr ""
36436
36437 #. type: textblock
36438 #: ../src/guestfs.pod:2867
36439 msgid ""
36440 "Create new stable and development directories under L<http://libguestfs.org/"
36441 "download>."
36442 msgstr ""
36443
36444 #. type: textblock
36445 #: ../src/guestfs.pod:2872
36446 msgid "Create the branch in git:"
36447 msgstr ""
36448
36449 #. type: verbatim
36450 #: ../src/guestfs.pod:2874
36451 #, no-wrap
36452 msgid ""
36453 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
36454 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
36455 " git branch stable-1.XX\n"
36456 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
36457 "\n"
36458 msgstr ""
36459
36460 #. type: =head1
36461 #: ../src/guestfs.pod:2881
36462 msgid "LIMITS"
36463 msgstr ""
36464
36465 #. type: =head2
36466 #: ../src/guestfs.pod:2883
36467 msgid "PROTOCOL LIMITS"
36468 msgstr ""
36469
36470 #. type: textblock
36471 #: ../src/guestfs.pod:2885
36472 msgid ""
36473 "Internally libguestfs uses a message-based protocol to pass API calls and "
36474 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
36475 "plenty more detail about this).  The maximum message size used by the "
36476 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
36477 "aware of this limit.  The API calls which may be affected are individually "
36478 "documented, with a link back to this section of the documentation."
36479 msgstr ""
36480
36481 #. type: textblock
36482 #: ../src/guestfs.pod:2893
36483 msgid ""
36484 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
36485 "a simple string.  Because this string is at some point internally encoded as "
36486 "a message, the maximum size that it can return is slightly under 4 MB.  If "
36487 "the requested file is larger than this then you will get an error."
36488 msgstr ""
36489
36490 #. type: textblock
36491 #: ../src/guestfs.pod:2899
36492 msgid ""
36493 "In order to transfer large files into and out of the guest filesystem, you "
36494 "need to use particular calls that support this.  The sections L</UPLOADING> "
36495 "and L</DOWNLOADING> document how to do this."
36496 msgstr ""
36497
36498 #. type: textblock
36499 #: ../src/guestfs.pod:2903
36500 msgid ""
36501 "You might also consider mounting the disk image using our FUSE filesystem "
36502 "support (L<guestmount(1)>)."
36503 msgstr ""
36504
36505 #. type: =head2
36506 #: ../src/guestfs.pod:2906
36507 msgid "MAXIMUM NUMBER OF DISKS"
36508 msgstr ""
36509
36510 #. type: textblock
36511 #: ../src/guestfs.pod:2908
36512 msgid "When using virtio disks (the default) the current limit is B<25> disks."
36513 msgstr ""
36514
36515 #. type: textblock
36516 #: ../src/guestfs.pod:2911
36517 msgid ""
36518 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
36519 "slots.  However febootstrap only understands disks with names C</dev/vda> "
36520 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
36521 "purposes."
36522 msgstr ""
36523
36524 #. type: textblock
36525 #: ../src/guestfs.pod:2916
36526 msgid ""
36527 "We are working to substantially raise this limit in future versions but it "
36528 "requires complex changes to qemu."
36529 msgstr ""
36530
36531 #. type: textblock
36532 #: ../src/guestfs.pod:2919
36533 msgid ""
36534 "In future versions of libguestfs it should also be possible to \"hot plug\" "
36535 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
36536 "requires changes to qemu."
36537 msgstr ""
36538
36539 #. type: =head2
36540 #: ../src/guestfs.pod:2923
36541 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
36542 msgstr ""
36543
36544 #. type: textblock
36545 #: ../src/guestfs.pod:2925
36546 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
36547 msgstr ""
36548
36549 #. type: textblock
36550 #: ../src/guestfs.pod:2927
36551 msgid ""
36552 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
36553 "vda>, and C</dev/vda1> through C</dev/vda15>)."
36554 msgstr ""
36555
36556 #. type: textblock
36557 #: ../src/guestfs.pod:2930
36558 msgid ""
36559 "If you attach a disk with more than 15 partitions, the extra partitions are "
36560 "ignored by libguestfs."
36561 msgstr ""
36562
36563 #. type: =head2
36564 #: ../src/guestfs.pod:2933
36565 msgid "MAXIMUM SIZE OF A DISK"
36566 msgstr ""
36567
36568 #. type: textblock
36569 #: ../src/guestfs.pod:2935
36570 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
36571 msgstr ""
36572
36573 #. type: textblock
36574 #: ../src/guestfs.pod:2937
36575 msgid ""
36576 "We have tested block devices up to 1 exabyte (2**60 or "
36577 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
36578 "filesystem."
36579 msgstr ""
36580
36581 #. type: textblock
36582 #: ../src/guestfs.pod:2941
36583 msgid ""
36584 "Although libguestfs probably does not impose any limit, the underlying host "
36585 "storage will.  If you store disk images on a host ext4 filesystem, then the "
36586 "maximum size will be limited by the maximum ext4 file size (currently 16 "
36587 "TB).  If you store disk images as host logical volumes then you are limited "
36588 "by the maximum size of an LV."
36589 msgstr ""
36590
36591 #. type: textblock
36592 #: ../src/guestfs.pod:2947
36593 msgid ""
36594 "For the hugest disk image files, we recommend using XFS on the host for "
36595 "storage."
36596 msgstr ""
36597
36598 #. type: =head2
36599 #: ../src/guestfs.pod:2950
36600 msgid "MAXIMUM SIZE OF A PARTITION"
36601 msgstr ""
36602
36603 #. type: textblock
36604 #: ../src/guestfs.pod:2952
36605 msgid ""
36606 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
36607 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
36608 "address a partition located beyond 2 TB on the disk."
36609 msgstr ""
36610
36611 #. type: textblock
36612 #: ../src/guestfs.pod:2956
36613 msgid ""
36614 "It is recommended that you use GPT partitions on disks which are larger than "
36615 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
36616 "which are theoretically larger than the largest disk we could support."
36617 msgstr ""
36618
36619 #. type: =head2
36620 #: ../src/guestfs.pod:2961
36621 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
36622 msgstr ""
36623
36624 #. type: textblock
36625 #: ../src/guestfs.pod:2963
36626 msgid ""
36627 "This depends on the filesystem type.  libguestfs itself does not impose any "
36628 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
36629 "what these limits are."
36630 msgstr ""
36631
36632 #. type: =head2
36633 #: ../src/guestfs.pod:2967
36634 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
36635 msgstr ""
36636
36637 #. type: textblock
36638 #: ../src/guestfs.pod:2969
36639 msgid ""
36640 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
36641 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
36642 "uploads and downloads."
36643 msgstr ""
36644
36645 #. type: =head2
36646 #: ../src/guestfs.pod:2973
36647 msgid "INSPECTION LIMITS"
36648 msgstr ""
36649
36650 #. type: textblock
36651 #: ../src/guestfs.pod:2975
36652 msgid ""
36653 "The inspection code has several arbitrary limits on things like the size of "
36654 "Windows Registry hive it will read, and the length of product name.  These "
36655 "are intended to stop a malicious guest from consuming arbitrary amounts of "
36656 "memory and disk space on the host, and should not be reached in practice.  "
36657 "See the source code for more information."
36658 msgstr ""
36659
36660 #. type: textblock
36661 #: ../src/guestfs.pod:3001
36662 msgid ""
36663 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
36664 "effect as calling C<guestfs_set_verbose (g, 1)>."
36665 msgstr ""
36666
36667 #. type: textblock
36668 #: ../src/guestfs.pod:3013
36669 msgid ""
36670 "Set the path that libguestfs uses to search for a supermin appliance.  See "
36671 "the discussion of paths in section L</PATH> above."
36672 msgstr ""
36673
36674 #. type: textblock
36675 #: ../src/guestfs.pod:3022
36676 msgid "See also L</QEMU WRAPPERS> above."
36677 msgstr ""
36678
36679 #. type: textblock
36680 #: ../src/guestfs.pod:3026
36681 msgid ""
36682 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
36683 "effect as calling C<guestfs_set_trace (g, 1)>."
36684 msgstr ""
36685
36686 #. type: textblock
36687 #: ../src/guestfs.pod:3044
36688 msgid ""
36689 "L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-"
36690 "perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, L<guestfish(1)>, "
36691 "L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
36692 "L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)"
36693 ">, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
36694 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
36695 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, "
36696 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://libguestfs.org/>."
36697 msgstr ""
36698
36699 #. type: textblock
36700 #: ../src/guestfs.pod:3074
36701 msgid ""
36702 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
36703 "(8)>, L<disktype(1)>."
36704 msgstr ""
36705
36706 #. type: =head1
36707 #: ../src/guestfs.pod:3081 ../tools/virt-make-fs.pl:553
36708 #: ../tools/virt-win-reg.pl:761
36709 msgid "BUGS"
36710 msgstr ""
36711
36712 #. type: textblock
36713 #: ../src/guestfs.pod:3083
36714 msgid "To get a list of bugs against libguestfs use this link:"
36715 msgstr ""
36716
36717 #. type: textblock
36718 #: ../src/guestfs.pod:3085
36719 msgid ""
36720 "L<https://bugzilla.redhat.com/buglist.cgi?"
36721 "component=libguestfs&product=Virtualization+Tools>"
36722 msgstr ""
36723
36724 #. type: textblock
36725 #: ../src/guestfs.pod:3087
36726 msgid "To report a new bug against libguestfs use this link:"
36727 msgstr ""
36728
36729 #. type: textblock
36730 #: ../src/guestfs.pod:3089
36731 msgid ""
36732 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
36733 "component=libguestfs&product=Virtualization+Tools>"
36734 msgstr ""
36735
36736 #. type: textblock
36737 #: ../src/guestfs.pod:3091
36738 msgid "When reporting a bug, please check:"
36739 msgstr ""
36740
36741 #. type: textblock
36742 #: ../src/guestfs.pod:3097
36743 msgid "That the bug hasn't been reported already."
36744 msgstr ""
36745
36746 #. type: textblock
36747 #: ../src/guestfs.pod:3101
36748 msgid "That you are testing a recent version."
36749 msgstr ""
36750
36751 #. type: textblock
36752 #: ../src/guestfs.pod:3105
36753 msgid "Describe the bug accurately, and give a way to reproduce it."
36754 msgstr ""
36755
36756 #. type: textblock
36757 #: ../src/guestfs.pod:3109
36758 msgid ""
36759 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
36760 "bug report."
36761 msgstr ""
36762
36763 #. type: textblock
36764 #: ../test-tool/libguestfs-test-tool.pod:5
36765 msgid "libguestfs-test-tool - End user tests for libguestfs"
36766 msgstr ""
36767
36768 #. type: verbatim
36769 #: ../test-tool/libguestfs-test-tool.pod:9
36770 #, no-wrap
36771 msgid ""
36772 " libguestfs-test-tool [--options]\n"
36773 "\n"
36774 msgstr ""
36775
36776 #. type: textblock
36777 #: ../test-tool/libguestfs-test-tool.pod:13
36778 msgid ""
36779 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
36780 "and developers, to allow them to check basic libguestfs functionality is "
36781 "working.  This is needed because libguestfs occasionally breaks for reasons "
36782 "beyond our control: usually because of changes in the underlying qemu or "
36783 "kernel packages, or the host environment."
36784 msgstr ""
36785
36786 #. type: textblock
36787 #: ../test-tool/libguestfs-test-tool.pod:20
36788 msgid "If you suspect a problem in libguestfs, then just run:"
36789 msgstr ""
36790
36791 #. type: verbatim
36792 #: ../test-tool/libguestfs-test-tool.pod:22
36793 #, no-wrap
36794 msgid ""
36795 " libguestfs-test-tool\n"
36796 "\n"
36797 msgstr ""
36798
36799 #. type: textblock
36800 #: ../test-tool/libguestfs-test-tool.pod:24
36801 msgid "It will print lots of diagnostic messages."
36802 msgstr ""
36803
36804 #. type: textblock
36805 #: ../test-tool/libguestfs-test-tool.pod:26
36806 msgid "If it runs to completion successfully, you will see this near the end:"
36807 msgstr ""
36808
36809 #. type: verbatim
36810 #: ../test-tool/libguestfs-test-tool.pod:28
36811 #, no-wrap
36812 msgid ""
36813 " ===== TEST FINISHED OK =====\n"
36814 "\n"
36815 msgstr ""
36816
36817 #. type: textblock
36818 #: ../test-tool/libguestfs-test-tool.pod:30
36819 msgid "and the test tool will exit with code 0."
36820 msgstr ""
36821
36822 #. type: textblock
36823 #: ../test-tool/libguestfs-test-tool.pod:32
36824 msgid ""
36825 "If it fails (and/or exits with non-zero error code), please paste the "
36826 "B<complete, unedited> output of the test tool into a bug report.  More "
36827 "information about reporting bugs can be found on the L<http://libguestfs.org/"
36828 "> website."
36829 msgstr ""
36830
36831 #. type: =item
36832 #: ../test-tool/libguestfs-test-tool.pod:41
36833 msgid "I<--help>"
36834 msgstr ""
36835
36836 #. type: textblock
36837 #: ../test-tool/libguestfs-test-tool.pod:43
36838 msgid "Display short usage information and exit."
36839 msgstr ""
36840
36841 #. type: =item
36842 #: ../test-tool/libguestfs-test-tool.pod:45
36843 msgid "I<--qemu qemu_binary>"
36844 msgstr ""
36845
36846 #. type: textblock
36847 #: ../test-tool/libguestfs-test-tool.pod:47
36848 msgid ""
36849 "If you have downloaded another qemu binary, point this option at the full "
36850 "path of the binary to try it."
36851 msgstr ""
36852
36853 #. type: =item
36854 #: ../test-tool/libguestfs-test-tool.pod:50
36855 msgid "I<--qemudir qemu_source_dir>"
36856 msgstr ""
36857
36858 #. type: textblock
36859 #: ../test-tool/libguestfs-test-tool.pod:52
36860 msgid ""
36861 "If you have compiled qemu from source, point this option at the source "
36862 "directory to try it."
36863 msgstr ""
36864
36865 #. type: =item
36866 #: ../test-tool/libguestfs-test-tool.pod:55
36867 msgid "I<--timeout N>"
36868 msgstr ""
36869
36870 #. type: textblock
36871 #: ../test-tool/libguestfs-test-tool.pod:57
36872 msgid ""
36873 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
36874 "does not usually need to be adjusted unless your machine is very slow."
36875 msgstr ""
36876
36877 #. type: =head1
36878 #: ../test-tool/libguestfs-test-tool.pod:63
36879 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
36880 msgstr ""
36881
36882 #. type: textblock
36883 #: ../test-tool/libguestfs-test-tool.pod:65
36884 msgid ""
36885 "If you have compiled another version of qemu from source and would like to "
36886 "try that, then you can use the I<--qemudir> option to point to the qemu "
36887 "source directory."
36888 msgstr ""
36889
36890 #. type: textblock
36891 #: ../test-tool/libguestfs-test-tool.pod:69
36892 msgid ""
36893 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
36894 "option to point to the binary."
36895 msgstr ""
36896
36897 #. type: textblock
36898 #: ../test-tool/libguestfs-test-tool.pod:72
36899 msgid ""
36900 "When using an alternate qemu with libguestfs, usually you would need to "
36901 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
36902 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
36903 "use either of the I<--qemudir> or I<--qemu> options."
36904 msgstr ""
36905
36906 #. type: textblock
36907 #: ../test-tool/libguestfs-test-tool.pod:79
36908 msgid ""
36909 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
36910 "I<1> if there was an error."
36911 msgstr ""
36912
36913 #. type: textblock
36914 #: ../test-tool/libguestfs-test-tool.pod:84
36915 msgid ""
36916 "For the full list of environment variables which may affect libguestfs, "
36917 "please see the L<guestfs(3)> manual page."
36918 msgstr ""
36919
36920 #. type: textblock
36921 #: ../test-tool/libguestfs-test-tool.pod:89
36922 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
36923 msgstr ""
36924
36925 #. type: textblock
36926 #: ../tools/virt-list-filesystems.pl:32
36927 msgid ""
36928 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
36929 msgstr ""
36930
36931 #. type: verbatim
36932 #: ../tools/virt-list-filesystems.pl:36
36933 #, no-wrap
36934 msgid ""
36935 " virt-list-filesystems [--options] domname\n"
36936 "\n"
36937 msgstr ""
36938
36939 #. type: verbatim
36940 #: ../tools/virt-list-filesystems.pl:38
36941 #, no-wrap
36942 msgid ""
36943 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
36944 "\n"
36945 msgstr ""
36946
36947 #. type: textblock
36948 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
36949 msgid ""
36950 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
36951 "replacement."
36952 msgstr ""
36953
36954 #. type: textblock
36955 #: ../tools/virt-list-filesystems.pl:45
36956 msgid ""
36957 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
36958 "are contained in a virtual machine or disk image."
36959 msgstr ""
36960
36961 #. type: textblock
36962 #: ../tools/virt-list-filesystems.pl:49
36963 msgid ""
36964 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
36965 "functionality.  For more complex cases you should look at the L<guestfish(1)"
36966 "> tool."
36967 msgstr ""
36968
36969 #. type: textblock
36970 #: ../tools/virt-list-filesystems.pl:112
36971 msgid ""
36972 "With this option, C<virt-list-filesystems> displays the type of each "
36973 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
36974 msgstr ""
36975
36976 #. type: =item
36977 #: ../tools/virt-list-filesystems.pl:119
36978 msgid "B<-a>"
36979 msgstr ""
36980
36981 #. type: textblock
36982 #: ../tools/virt-list-filesystems.pl:123
36983 msgid ""
36984 "Normally we only show mountable filesystems.  If this option is given then "
36985 "swap devices are shown too."
36986 msgstr ""
36987
36988 #. type: textblock
36989 #: ../tools/virt-list-filesystems.pl:197
36990 msgid ""
36991 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
36992 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
36993 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
36994 msgstr ""
36995
36996 #. type: textblock
36997 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
36998 msgid "Copyright (C) 2009 Red Hat Inc."
36999 msgstr ""
37000
37001 #. type: textblock
37002 #: ../tools/virt-list-partitions.pl:32
37003 msgid ""
37004 "virt-list-partitions - List partitions in a virtual machine or disk image"
37005 msgstr ""
37006
37007 #. type: verbatim
37008 #: ../tools/virt-list-partitions.pl:36
37009 #, no-wrap
37010 msgid ""
37011 " virt-list-partitions [--options] domname\n"
37012 "\n"
37013 msgstr ""
37014
37015 #. type: verbatim
37016 #: ../tools/virt-list-partitions.pl:38
37017 #, no-wrap
37018 msgid ""
37019 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
37020 "\n"
37021 msgstr ""
37022
37023 #. type: textblock
37024 #: ../tools/virt-list-partitions.pl:45
37025 msgid ""
37026 "C<virt-list-partitions> is a command line tool to list the partitions that "
37027 "are contained in a virtual machine or disk image.  It is mainly useful as a "
37028 "first step to using L<virt-resize(1)>."
37029 msgstr ""
37030
37031 #. type: textblock
37032 #: ../tools/virt-list-partitions.pl:50
37033 msgid ""
37034 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
37035 "functionality.  For more complex cases you should look at the L<guestfish(1)"
37036 "> tool."
37037 msgstr ""
37038
37039 #. type: textblock
37040 #: ../tools/virt-list-partitions.pl:113
37041 msgid "Show sizes in human-readable form (eg. \"1G\")."
37042 msgstr ""
37043
37044 #. type: textblock
37045 #: ../tools/virt-list-partitions.pl:123
37046 msgid ""
37047 "With this option, C<virt-list-partitions> displays the type and size of each "
37048 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
37049 msgstr ""
37050
37051 #. type: =item
37052 #: ../tools/virt-list-partitions.pl:130
37053 msgid "B<-t>"
37054 msgstr ""
37055
37056 #. type: =item
37057 #: ../tools/virt-list-partitions.pl:132
37058 msgid "B<--total>"
37059 msgstr ""
37060
37061 #. type: textblock
37062 #: ../tools/virt-list-partitions.pl:134
37063 msgid ""
37064 "Display the total size of each block device (as a separate row or rows)."
37065 msgstr ""
37066
37067 #. type: textblock
37068 #: ../tools/virt-list-partitions.pl:267
37069 msgid ""
37070 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
37071 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
37072 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
37073 msgstr ""
37074
37075 #. type: textblock
37076 #: ../tools/virt-list-partitions.pl:283
37077 msgid "Copyright (C) 2009-2010 Red Hat Inc."
37078 msgstr ""
37079
37080 #. type: textblock
37081 #: ../tools/virt-make-fs.pl:37
37082 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
37083 msgstr ""
37084
37085 #. type: verbatim
37086 #: ../tools/virt-make-fs.pl:41
37087 #, no-wrap
37088 msgid ""
37089 " virt-make-fs [--options] input.tar output.img\n"
37090 "\n"
37091 msgstr ""
37092
37093 #. type: verbatim
37094 #: ../tools/virt-make-fs.pl:43
37095 #, no-wrap
37096 msgid ""
37097 " virt-make-fs [--options] input.tar.gz output.img\n"
37098 "\n"
37099 msgstr ""
37100
37101 #. type: verbatim
37102 #: ../tools/virt-make-fs.pl:45
37103 #, no-wrap
37104 msgid ""
37105 " virt-make-fs [--options] directory output.img\n"
37106 "\n"
37107 msgstr ""
37108
37109 #. type: textblock
37110 #: ../tools/virt-make-fs.pl:49
37111 msgid ""
37112 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
37113 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
37114 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
37115 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
37116 "you want to attach these filesystems to existing virtual machines (eg. to "
37117 "import large amounts of read-only data to a VM)."
37118 msgstr ""
37119
37120 #. type: textblock
37121 #: ../tools/virt-make-fs.pl:57
37122 msgid "Basic usage is:"
37123 msgstr ""
37124
37125 #. type: verbatim
37126 #: ../tools/virt-make-fs.pl:59
37127 #, no-wrap
37128 msgid ""
37129 " virt-make-fs input output\n"
37130 "\n"
37131 msgstr ""
37132
37133 #. type: textblock
37134 #: ../tools/virt-make-fs.pl:61
37135 msgid ""
37136 "where C<input> is either a directory containing files that you want to add, "
37137 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
37138 "C<output> is a disk image.  The input type is detected automatically.  The "
37139 "output disk image defaults to a raw ext2 image unless you specify extra "
37140 "flags (see L</OPTIONS> below)."
37141 msgstr ""
37142
37143 #. type: =head2
37144 #: ../tools/virt-make-fs.pl:67
37145 msgid "EXTRA SPACE"
37146 msgstr ""
37147
37148 #. type: textblock
37149 #: ../tools/virt-make-fs.pl:69
37150 msgid ""
37151 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
37152 "the files that it contains, but might have extra space.  Depending on how "
37153 "you are going to use the output, you might think this extra space is wasted "
37154 "and want to minimize it, or you might want to leave space so that more files "
37155 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
37156 "but you can use the I<--size> flag to leave space in the filesystem if you "
37157 "want it."
37158 msgstr ""
37159
37160 #. type: textblock
37161 #: ../tools/virt-make-fs.pl:77
37162 msgid ""
37163 "An alternative way to leave extra space but not make the output image any "
37164 "bigger is to use an alternative disk image format (instead of the default "
37165 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
37166 "image format (check your hypervisor supports this before using it).  This "
37167 "allows you to choose a large I<--size> but the extra space won't actually be "
37168 "allocated in the image until you try to store something in it."
37169 msgstr ""
37170
37171 #. type: textblock
37172 #: ../tools/virt-make-fs.pl:85
37173 msgid ""
37174 "Don't forget that you can also use local commands including L<resize2fs(8)> "
37175 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
37176 "to build another image from scratch."
37177 msgstr ""
37178
37179 #. type: =head3
37180 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
37181 #: ../tools/virt-make-fs.pl:142
37182 msgid "EXAMPLE"
37183 msgstr ""
37184
37185 #. type: verbatim
37186 #: ../tools/virt-make-fs.pl:91
37187 #, no-wrap
37188 msgid ""
37189 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
37190 "\n"
37191 msgstr ""
37192
37193 #. type: =head2
37194 #: ../tools/virt-make-fs.pl:93
37195 msgid "FILESYSTEM TYPE"
37196 msgstr ""
37197
37198 #. type: textblock
37199 #: ../tools/virt-make-fs.pl:95
37200 msgid ""
37201 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
37202 "libguestfs supports can be used (but I<not> read-only formats like "
37203 "ISO9660).  Here are some of the more common choices:"
37204 msgstr ""
37205
37206 #. type: =item
37207 #: ../tools/virt-make-fs.pl:101
37208 msgid "I<ext3>"
37209 msgstr ""
37210
37211 #. type: textblock
37212 #: ../tools/virt-make-fs.pl:103
37213 msgid ""
37214 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
37215 "you are not going to use the filesystem in a way that requires the journal, "
37216 "then this is just wasted overhead."
37217 msgstr ""
37218
37219 #. type: =item
37220 #: ../tools/virt-make-fs.pl:107
37221 msgid "I<ntfs> or I<vfat>"
37222 msgstr ""
37223
37224 #. type: textblock
37225 #: ../tools/virt-make-fs.pl:109
37226 msgid "Useful if exporting data to a Windows guest."
37227 msgstr ""
37228
37229 #. type: textblock
37230 #: ../tools/virt-make-fs.pl:111
37231 msgid ""
37232 "I<Note for vfat>: The tar archive or local directory must only contain files "
37233 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
37234 "program running within libguestfs is unable to change the ownership of non-"
37235 "root files, since vfat itself does not support this."
37236 msgstr ""
37237
37238 #. type: =item
37239 #: ../tools/virt-make-fs.pl:116
37240 msgid "I<minix>"
37241 msgstr ""
37242
37243 #. type: textblock
37244 #: ../tools/virt-make-fs.pl:118
37245 msgid ""
37246 "Lower overhead than C<ext2>, but certain limitations on filename length and "
37247 "total filesystem size."
37248 msgstr ""
37249
37250 #. type: verbatim
37251 #: ../tools/virt-make-fs.pl:125
37252 #, no-wrap
37253 msgid ""
37254 " virt-make-fs --type=minix input minixfs.img\n"
37255 "\n"
37256 msgstr ""
37257
37258 #. type: =head2
37259 #: ../tools/virt-make-fs.pl:127
37260 msgid "TO PARTITION OR NOT TO PARTITION"
37261 msgstr ""
37262
37263 #. type: textblock
37264 #: ../tools/virt-make-fs.pl:129
37265 msgid "Optionally virt-make-fs can add a partition table to the output disk."
37266 msgstr ""
37267
37268 #. type: textblock
37269 #: ../tools/virt-make-fs.pl:131
37270 msgid ""
37271 "Adding a partition can make the disk image more compatible with certain "
37272 "virtualized operating systems which don't expect to see a filesystem "
37273 "directly located on a block device (Linux doesn't care and will happily "
37274 "handle both types)."
37275 msgstr ""
37276
37277 #. type: textblock
37278 #: ../tools/virt-make-fs.pl:136
37279 msgid ""
37280 "On the other hand, if you have a partition table then the output image is no "
37281 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
37282 "directly on a partitioned disk image.  (However libguestfs tools such as "
37283 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
37284 msgstr ""
37285
37286 #. type: textblock
37287 #: ../tools/virt-make-fs.pl:144
37288 msgid "Add an MBR partition:"
37289 msgstr ""
37290
37291 #. type: verbatim
37292 #: ../tools/virt-make-fs.pl:146
37293 #, no-wrap
37294 msgid ""
37295 " virt-make-fs --partition -- input disk.img\n"
37296 "\n"
37297 msgstr ""
37298
37299 #. type: textblock
37300 #: ../tools/virt-make-fs.pl:148
37301 msgid ""
37302 "If the output disk image could be terabyte-sized or larger, it's better to "
37303 "use an EFI/GPT-compatible partition table:"
37304 msgstr ""
37305
37306 #. type: verbatim
37307 #: ../tools/virt-make-fs.pl:151
37308 #, no-wrap
37309 msgid ""
37310 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
37311 "\n"
37312 msgstr ""
37313
37314 #. type: textblock
37315 #: ../tools/virt-make-fs.pl:179
37316 msgid "Enable debugging information."
37317 msgstr ""
37318
37319 #. type: =item
37320 #: ../tools/virt-make-fs.pl:185
37321 msgid "B<--size=E<lt>NE<gt>>"
37322 msgstr ""
37323
37324 #. type: =item
37325 #: ../tools/virt-make-fs.pl:187
37326 msgid "B<--size=+E<lt>NE<gt>>"
37327 msgstr ""
37328
37329 #. type: =item
37330 #: ../tools/virt-make-fs.pl:189
37331 msgid "B<-s E<lt>NE<gt>>"
37332 msgstr ""
37333
37334 #. type: =item
37335 #: ../tools/virt-make-fs.pl:191
37336 msgid "B<-s +E<lt>NE<gt>>"
37337 msgstr ""
37338
37339 #. type: textblock
37340 #: ../tools/virt-make-fs.pl:193
37341 msgid ""
37342 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
37343 msgstr ""
37344
37345 #. type: textblock
37346 #: ../tools/virt-make-fs.pl:196
37347 msgid ""
37348 "If this option is I<not> given, then the output image will be just large "
37349 "enough to contain all the files, with not much wasted space."
37350 msgstr ""
37351
37352 #. type: textblock
37353 #: ../tools/virt-make-fs.pl:199
37354 msgid ""
37355 "To choose a fixed size output disk, specify an absolute number followed by b/"
37356 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
37357 "Petabytes or Exabytes.  This must be large enough to contain all the input "
37358 "files, else you will get an error."
37359 msgstr ""
37360
37361 #. type: textblock
37362 #: ../tools/virt-make-fs.pl:204
37363 msgid ""
37364 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
37365 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
37366 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
37367 "the input files, and (approximately) an extra 200 MB free space."
37368 msgstr ""
37369
37370 #. type: textblock
37371 #: ../tools/virt-make-fs.pl:210
37372 msgid ""
37373 "Note that virt-make-fs estimates free space, and therefore will not produce "
37374 "filesystems containing precisely the free space requested.  (It is much more "
37375 "expensive and time-consuming to produce a filesystem which has precisely the "
37376 "desired free space)."
37377 msgstr ""
37378
37379 #. type: =item
37380 #: ../tools/virt-make-fs.pl:219
37381 msgid "B<--format=E<lt>fmtE<gt>>"
37382 msgstr ""
37383
37384 #. type: =item
37385 #: ../tools/virt-make-fs.pl:221
37386 msgid "B<-F E<lt>fmtE<gt>>"
37387 msgstr ""
37388
37389 #. type: textblock
37390 #: ../tools/virt-make-fs.pl:223
37391 msgid "Choose the output disk image format."
37392 msgstr ""
37393
37394 #. type: textblock
37395 #: ../tools/virt-make-fs.pl:225
37396 msgid "The default is C<raw> (raw disk image)."
37397 msgstr ""
37398
37399 #. type: textblock
37400 #: ../tools/virt-make-fs.pl:227
37401 msgid ""
37402 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
37403 "that would really make sense here is C<qcow2>."
37404 msgstr ""
37405
37406 #. type: =item
37407 #: ../tools/virt-make-fs.pl:234
37408 msgid "B<--type=E<lt>fsE<gt>>"
37409 msgstr ""
37410
37411 #. type: =item
37412 #: ../tools/virt-make-fs.pl:236
37413 msgid "B<-t E<lt>fsE<gt>>"
37414 msgstr ""
37415
37416 #. type: textblock
37417 #: ../tools/virt-make-fs.pl:238
37418 msgid "Choose the output filesystem type."
37419 msgstr ""
37420
37421 #. type: textblock
37422 #: ../tools/virt-make-fs.pl:240
37423 msgid "The default is C<ext2>."
37424 msgstr ""
37425
37426 #. type: textblock
37427 #: ../tools/virt-make-fs.pl:242
37428 msgid ""
37429 "Any filesystem which is supported read-write by libguestfs can be used here."
37430 msgstr ""
37431
37432 #. type: =item
37433 #: ../tools/virt-make-fs.pl:249
37434 msgid "B<--partition>"
37435 msgstr ""
37436
37437 #. type: =item
37438 #: ../tools/virt-make-fs.pl:251
37439 msgid "B<--partition=E<lt>parttypeE<gt>>"
37440 msgstr ""
37441
37442 #. type: textblock
37443 #: ../tools/virt-make-fs.pl:253
37444 msgid ""
37445 "If specified, this flag adds an MBR partition table to the output disk image."
37446 msgstr ""
37447
37448 #. type: textblock
37449 #: ../tools/virt-make-fs.pl:256
37450 msgid ""
37451 "You can change the partition table type, eg. I<--partition=gpt> for large "
37452 "disks."
37453 msgstr ""
37454
37455 #. type: textblock
37456 #: ../tools/virt-make-fs.pl:259
37457 msgid ""
37458 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
37459 "might consider the next parameter to be the partition type.  For example:"
37460 msgstr ""
37461
37462 #. type: verbatim
37463 #: ../tools/virt-make-fs.pl:263
37464 #, no-wrap
37465 msgid ""
37466 " virt-make-fs --partition input.tar ...\n"
37467 "\n"
37468 msgstr ""
37469
37470 #. type: textblock
37471 #: ../tools/virt-make-fs.pl:265
37472 msgid ""
37473 "would cause virt-make-fs to think you wanted to use a partition type of "
37474 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
37475 "dash) between options and the input file argument:"
37476 msgstr ""
37477
37478 #. type: verbatim
37479 #: ../tools/virt-make-fs.pl:269
37480 #, no-wrap
37481 msgid ""
37482 " virt-make-fs --partition -- input.tar ...\n"
37483 "\n"
37484 msgstr ""
37485
37486 #. type: textblock
37487 #: ../tools/virt-make-fs.pl:541
37488 msgid ""
37489 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
37490 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
37491 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
37492 msgstr ""
37493
37494 #. type: textblock
37495 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
37496 msgid ""
37497 "When reporting bugs, please enable debugging and capture the I<complete> "
37498 "output:"
37499 msgstr ""
37500
37501 #. type: verbatim
37502 #: ../tools/virt-make-fs.pl:558
37503 #, no-wrap
37504 msgid ""
37505 " export LIBGUESTFS_DEBUG=1\n"
37506 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
37507 "\n"
37508 msgstr ""
37509
37510 #. type: textblock
37511 #: ../tools/virt-make-fs.pl:561
37512 msgid ""
37513 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
37514 "redhat.com/>"
37515 msgstr ""
37516
37517 #. type: textblock
37518 #: ../tools/virt-tar.pl:33
37519 msgid "virt-tar - Extract or upload files to a virtual machine"
37520 msgstr ""
37521
37522 #. type: verbatim
37523 #: ../tools/virt-tar.pl:37
37524 #, no-wrap
37525 msgid ""
37526 " virt-tar [--options] -x domname directory tarball\n"
37527 "\n"
37528 msgstr ""
37529
37530 #. type: verbatim
37531 #: ../tools/virt-tar.pl:39
37532 #, no-wrap
37533 msgid ""
37534 " virt-tar [--options] -u domname tarball directory\n"
37535 "\n"
37536 msgstr ""
37537
37538 #. type: verbatim
37539 #: ../tools/virt-tar.pl:41
37540 #, no-wrap
37541 msgid ""
37542 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
37543 "\n"
37544 msgstr ""
37545
37546 #. type: verbatim
37547 #: ../tools/virt-tar.pl:43
37548 #, no-wrap
37549 msgid ""
37550 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
37551 "\n"
37552 msgstr ""
37553
37554 #. type: =head2
37555 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
37556 msgid "NOTE"
37557 msgstr ""
37558
37559 #. type: textblock
37560 #: ../tools/virt-tar.pl:47
37561 msgid ""
37562 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
37563 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
37564 msgstr ""
37565
37566 #. type: textblock
37567 #: ../tools/virt-tar.pl:52
37568 msgid "Download C</home> from the VM into a local tarball:"
37569 msgstr ""
37570
37571 #. type: verbatim
37572 #: ../tools/virt-tar.pl:54
37573 #, no-wrap
37574 msgid ""
37575 " virt-tar -x domname /home home.tar\n"
37576 "\n"
37577 msgstr ""
37578
37579 #. type: verbatim
37580 #: ../tools/virt-tar.pl:56
37581 #, no-wrap
37582 msgid ""
37583 " virt-tar -zx domname /home home.tar.gz\n"
37584 "\n"
37585 msgstr ""
37586
37587 #. type: textblock
37588 #: ../tools/virt-tar.pl:58
37589 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
37590 msgstr ""
37591
37592 #. type: verbatim
37593 #: ../tools/virt-tar.pl:60
37594 #, no-wrap
37595 msgid ""
37596 " virt-tar -u domname uploadstuff.tar /tmp\n"
37597 "\n"
37598 msgstr ""
37599
37600 #. type: verbatim
37601 #: ../tools/virt-tar.pl:62
37602 #, no-wrap
37603 msgid ""
37604 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
37605 "\n"
37606 msgstr ""
37607
37608 #. type: textblock
37609 #: ../tools/virt-tar.pl:66
37610 msgid ""
37611 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
37612 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
37613 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
37614 msgstr ""
37615
37616 #. type: textblock
37617 #: ../tools/virt-tar.pl:71
37618 msgid ""
37619 "You can use I<-x> (extract) on live virtual machines, but you might get "
37620 "inconsistent results or errors if there is filesystem activity inside the "
37621 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
37622 "work, but the only way to guarantee consistent results is if the virtual "
37623 "machine is shut down."
37624 msgstr ""
37625
37626 #. type: textblock
37627 #: ../tools/virt-tar.pl:79
37628 msgid ""
37629 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
37630 "parts of a guest filesystem.  There are many possibilities: making backups, "
37631 "uploading data files, snooping on guest activity, fixing or customizing "
37632 "guests, etc."
37633 msgstr ""
37634
37635 #. type: textblock
37636 #: ../tools/virt-tar.pl:84
37637 msgid ""
37638 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
37639 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
37640 "should look at the L<guestfish(1)> tool."
37641 msgstr ""
37642
37643 #. type: textblock
37644 #: ../tools/virt-tar.pl:88
37645 msgid ""
37646 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
37647 "its contents (recursively) from the virtual machine into a local tarball.  "
37648 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
37649 "virtual machine.  You cannot use these two options together."
37650 msgstr ""
37651
37652 #. type: textblock
37653 #: ../tools/virt-tar.pl:94
37654 msgid ""
37655 "In addition, you may need to use the I<-z> (gZip) option to enable "
37656 "compression.  When uploading, you have to specify I<-z> if the upload file "
37657 "is compressed because virt-tar won't detect this on its own."
37658 msgstr ""
37659
37660 #. type: textblock
37661 #: ../tools/virt-tar.pl:98
37662 msgid ""
37663 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
37664 "example it cannot do PKZip files or bzip2 compression.  If you want that "
37665 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
37666 "the L<libguestfs(3)> API)."
37667 msgstr ""
37668
37669 #. type: =item
37670 #: ../tools/virt-tar.pl:160
37671 msgid "B<--extract>"
37672 msgstr ""
37673
37674 #. type: =item
37675 #: ../tools/virt-tar.pl:162
37676 msgid "B<--download>"
37677 msgstr ""
37678
37679 #. type: =item
37680 #: ../tools/virt-tar.pl:164
37681 msgid "B<-u>"
37682 msgstr ""
37683
37684 #. type: =item
37685 #: ../tools/virt-tar.pl:166
37686 msgid "B<--upload>"
37687 msgstr ""
37688
37689 #. type: textblock
37690 #: ../tools/virt-tar.pl:168
37691 msgid ""
37692 "Use I<-x> to extract (download) a directory from a virtual machine to a "
37693 "local tarball."
37694 msgstr ""
37695
37696 #. type: textblock
37697 #: ../tools/virt-tar.pl:171
37698 msgid ""
37699 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
37700 "Please read the L</WARNING> section above before using this option."
37701 msgstr ""
37702
37703 #. type: textblock
37704 #: ../tools/virt-tar.pl:175
37705 msgid "You must specify exactly one of these options."
37706 msgstr ""
37707
37708 #. type: =item
37709 #: ../tools/virt-tar.pl:181
37710 msgid "B<-z>"
37711 msgstr ""
37712
37713 #. type: =item
37714 #: ../tools/virt-tar.pl:183
37715 msgid "B<--gzip>"
37716 msgstr ""
37717
37718 #. type: textblock
37719 #: ../tools/virt-tar.pl:185
37720 msgid "Specify that the input or output tarball is gzip-compressed."
37721 msgstr ""
37722
37723 #. type: textblock
37724 #: ../tools/virt-tar.pl:298
37725 msgid ""
37726 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
37727 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
37728 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
37729 "org/>."
37730 msgstr ""
37731
37732 #. type: textblock
37733 #: ../tools/virt-win-reg.pl:37
37734 msgid ""
37735 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
37736 msgstr ""
37737
37738 #. type: verbatim
37739 #: ../tools/virt-win-reg.pl:41
37740 #, no-wrap
37741 msgid ""
37742 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
37743 "\n"
37744 msgstr ""
37745
37746 #. type: verbatim
37747 #: ../tools/virt-win-reg.pl:43
37748 #, no-wrap
37749 msgid ""
37750 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
37751 "\n"
37752 msgstr ""
37753
37754 #. type: verbatim
37755 #: ../tools/virt-win-reg.pl:45
37756 #, no-wrap
37757 msgid ""
37758 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
37759 "\n"
37760 msgstr ""
37761
37762 #. type: verbatim
37763 #: ../tools/virt-win-reg.pl:47
37764 #, no-wrap
37765 msgid ""
37766 " virt-win-reg --merge domname [input.reg ...]\n"
37767 "\n"
37768 msgstr ""
37769
37770 #. type: verbatim
37771 #: ../tools/virt-win-reg.pl:49
37772 #, no-wrap
37773 msgid ""
37774 " virt-win-reg [--options] disk.img ... # instead of domname\n"
37775 "\n"
37776 msgstr ""
37777
37778 #. type: textblock
37779 #: ../tools/virt-win-reg.pl:53
37780 msgid ""
37781 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
37782 "virtual machines.  If you do this, you I<will> get irreversible disk "
37783 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
37784 "but doesn't catch all cases."
37785 msgstr ""
37786
37787 #. type: textblock
37788 #: ../tools/virt-win-reg.pl:58
37789 msgid ""
37790 "Modifying the Windows Registry is an inherently risky operation.  The format "
37791 "is deliberately obscure and undocumented, and Registry changes can leave the "
37792 "system unbootable.  Therefore when using the I<--merge> option, make sure "
37793 "you have a reliable backup first."
37794 msgstr ""
37795
37796 #. type: textblock
37797 #: ../tools/virt-win-reg.pl:65
37798 msgid ""
37799 "This program can export and merge Windows Registry entries from a Windows "
37800 "guest."
37801 msgstr ""
37802
37803 #. type: textblock
37804 #: ../tools/virt-win-reg.pl:68
37805 msgid ""
37806 "The first parameter is the libvirt guest name or the raw disk image of a "
37807 "Windows guest."
37808 msgstr ""
37809
37810 #. type: textblock
37811 #: ../tools/virt-win-reg.pl:71
37812 msgid ""
37813 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
37814 "exported (recursively).  For example:"
37815 msgstr ""
37816
37817 #. type: verbatim
37818 #: ../tools/virt-win-reg.pl:74
37819 #, no-wrap
37820 msgid ""
37821 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
37822 "\n"
37823 msgstr ""
37824
37825 #. type: textblock
37826 #: ../tools/virt-win-reg.pl:76
37827 msgid ""
37828 "You can also display single values from within registry keys, for example:"
37829 msgstr ""
37830
37831 #. type: verbatim
37832 #: ../tools/virt-win-reg.pl:79
37833 #, no-wrap
37834 msgid ""
37835 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
37836 " $ virt-win-reg Windows7 $cvkey ProductName\n"
37837 " Windows 7 Enterprise\n"
37838 "\n"
37839 msgstr ""
37840
37841 #. type: textblock
37842 #: ../tools/virt-win-reg.pl:83
37843 msgid ""
37844 "With I<--merge>, you can merge a textual regedit file into the Windows "
37845 "Registry:"
37846 msgstr ""
37847
37848 #. type: verbatim
37849 #: ../tools/virt-win-reg.pl:86
37850 #, no-wrap
37851 msgid ""
37852 " $ virt-win-reg --merge Windows7 changes.reg\n"
37853 "\n"
37854 msgstr ""
37855
37856 #. type: textblock
37857 #: ../tools/virt-win-reg.pl:90
37858 msgid ""
37859 "This program is only meant for simple access to the registry.  If you want "
37860 "to do complicated things with the registry, we suggest you download the "
37861 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
37862 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
37863 "L<hivexregedit(1)>."
37864 msgstr ""
37865
37866 #. type: =item
37867 #: ../tools/virt-win-reg.pl:159
37868 msgid "B<--merge>"
37869 msgstr ""
37870
37871 #. type: textblock
37872 #: ../tools/virt-win-reg.pl:161
37873 msgid ""
37874 "In merge mode, this merges a textual regedit file into the Windows Registry "
37875 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
37876 "displays or exports Registry entries instead."
37877 msgstr ""
37878
37879 #. type: textblock
37880 #: ../tools/virt-win-reg.pl:165
37881 msgid ""
37882 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
37883 "result in disk corruption.  However exporting (without this flag)  is always "
37884 "safe."
37885 msgstr ""
37886
37887 #. type: =item
37888 #: ../tools/virt-win-reg.pl:173
37889 msgid "B<--encoding> UTF-16LE|ASCII"
37890 msgstr ""
37891
37892 #. type: textblock
37893 #: ../tools/virt-win-reg.pl:175
37894 msgid ""
37895 "When merging (only), you may need to specify the encoding for strings to be "
37896 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
37897 "(3)/ENCODING STRINGS>."
37898 msgstr ""
37899
37900 #. type: textblock
37901 #: ../tools/virt-win-reg.pl:179
37902 msgid ""
37903 "The default is to use UTF-16LE, which should work with recent versions of "
37904 "Windows."
37905 msgstr ""
37906
37907 #. type: =item
37908 #: ../tools/virt-win-reg.pl:186
37909 msgid "B<--unsafe-printable-strings>"
37910 msgstr ""
37911
37912 #. type: textblock
37913 #: ../tools/virt-win-reg.pl:188
37914 msgid ""
37915 "When exporting (only), assume strings are UTF-16LE and print them as strings "
37916 "instead of hex sequences.  Remove the final zero codepoint from strings if "
37917 "present."
37918 msgstr ""
37919
37920 #. type: textblock
37921 #: ../tools/virt-win-reg.pl:192
37922 msgid ""
37923 "This is unsafe and does not preserve the fidelity of strings in the original "
37924 "Registry for various reasons:"
37925 msgstr ""
37926
37927 #. type: textblock
37928 #: ../tools/virt-win-reg.pl:199
37929 msgid ""
37930 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
37931 "other encodings will be corrupted by this transformation."
37932 msgstr ""
37933
37934 #. type: textblock
37935 #: ../tools/virt-win-reg.pl:204
37936 msgid ""
37937 "Assumes that everything which has type 1 or 2 is really a string and that "
37938 "everything else is not a string, but the type field in real Registries is "
37939 "not reliable."
37940 msgstr ""
37941
37942 #. type: textblock
37943 #: ../tools/virt-win-reg.pl:210
37944 msgid ""
37945 "Loses information about whether a zero codepoint followed the string in the "
37946 "Registry or not."
37947 msgstr ""
37948
37949 #. type: textblock
37950 #: ../tools/virt-win-reg.pl:215
37951 msgid ""
37952 "This all happens because the Registry itself contains no information about "
37953 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
37954 msgstr ""
37955
37956 #. type: textblock
37957 #: ../tools/virt-win-reg.pl:219
37958 msgid ""
37959 "You should only use this option for quick hacking and debugging of the "
37960 "Registry contents, and I<never> use it if the output is going to be passed "
37961 "into another program or stored in another Registry."
37962 msgstr ""
37963
37964 #. type: =head1
37965 #: ../tools/virt-win-reg.pl:556
37966 msgid "SUPPORTED SYSTEMS"
37967 msgstr ""
37968
37969 #. type: textblock
37970 #: ../tools/virt-win-reg.pl:558
37971 msgid ""
37972 "The program currently supports Windows NT-derived guests starting with "
37973 "Windows XP through to at least Windows 7."
37974 msgstr ""
37975
37976 #. type: textblock
37977 #: ../tools/virt-win-reg.pl:561
37978 msgid "The following Registry keys are supported:"
37979 msgstr ""
37980
37981 #. type: =item
37982 #: ../tools/virt-win-reg.pl:565
37983 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
37984 msgstr ""
37985
37986 #. type: =item
37987 #: ../tools/virt-win-reg.pl:567
37988 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
37989 msgstr ""
37990
37991 #. type: =item
37992 #: ../tools/virt-win-reg.pl:569
37993 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
37994 msgstr ""
37995
37996 #. type: =item
37997 #: ../tools/virt-win-reg.pl:571
37998 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
37999 msgstr ""
38000
38001 #. type: =item
38002 #: ../tools/virt-win-reg.pl:573
38003 msgid "C<HKEY_USERS\\.DEFAULT>"
38004 msgstr ""
38005
38006 #. type: =item
38007 #: ../tools/virt-win-reg.pl:575
38008 msgid "C<HKEY_USERS\\I<SID>>"
38009 msgstr ""
38010
38011 #. type: textblock
38012 #: ../tools/virt-win-reg.pl:577
38013 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
38014 msgstr ""
38015
38016 #. type: =item
38017 #: ../tools/virt-win-reg.pl:579
38018 msgid "C<HKEY_USERS\\I<username>>"
38019 msgstr ""
38020
38021 #. type: textblock
38022 #: ../tools/virt-win-reg.pl:581
38023 msgid ""
38024 "where I<username> is a local user name (this is a libguestfs extension)."
38025 msgstr ""
38026
38027 #. type: textblock
38028 #: ../tools/virt-win-reg.pl:585
38029 msgid ""
38030 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
38031 "C<HKEY_USERS>."
38032 msgstr ""
38033
38034 #. type: textblock
38035 #: ../tools/virt-win-reg.pl:588
38036 msgid ""
38037 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
38038 "supported (there is no \"current user\")."
38039 msgstr ""
38040
38041 #. type: =head1
38042 #: ../tools/virt-win-reg.pl:591
38043 msgid "ENCODING"
38044 msgstr ""
38045
38046 #. type: textblock
38047 #: ../tools/virt-win-reg.pl:593
38048 msgid ""
38049 "C<virt-win-reg> expects that regedit files have already been reencoded in "
38050 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
38051 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
38052 "Windows-style line endings, you may need to reencode the whole file before "
38053 "or after processing."
38054 msgstr ""
38055
38056 #. type: textblock
38057 #: ../tools/virt-win-reg.pl:599
38058 msgid ""
38059 "To reencode a file from Windows format to Linux (before processing it with "
38060 "the I<--merge> option), you would do something like this:"
38061 msgstr ""
38062
38063 #. type: verbatim
38064 #: ../tools/virt-win-reg.pl:602
38065 #, no-wrap
38066 msgid ""
38067 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
38068 "\n"
38069 msgstr ""
38070
38071 #. type: textblock
38072 #: ../tools/virt-win-reg.pl:604
38073 msgid ""
38074 "To go in the opposite direction, after exporting and before sending the file "
38075 "to a Windows user, do something like this:"
38076 msgstr ""
38077
38078 #. type: verbatim
38079 #: ../tools/virt-win-reg.pl:607
38080 #, no-wrap
38081 msgid ""
38082 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
38083 "\n"
38084 msgstr ""
38085
38086 #. type: textblock
38087 #: ../tools/virt-win-reg.pl:609
38088 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
38089 msgstr ""
38090
38091 #. type: textblock
38092 #: ../tools/virt-win-reg.pl:611
38093 msgid ""
38094 "If you are unsure about the current encoding, use the L<file(1)> command.  "
38095 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
38096 "style (CRLF) line endings, like this:"
38097 msgstr ""
38098
38099 #. type: verbatim
38100 #: ../tools/virt-win-reg.pl:615
38101 #, no-wrap
38102 msgid ""
38103 " $ file software.reg\n"
38104 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
38105 " with CRLF line terminators\n"
38106 "\n"
38107 msgstr ""
38108
38109 #. type: textblock
38110 #: ../tools/virt-win-reg.pl:619
38111 msgid "This file would need conversion before you could I<--merge> it."
38112 msgstr ""
38113
38114 #. type: =head1
38115 #: ../tools/virt-win-reg.pl:621
38116 msgid "CurrentControlSet etc."
38117 msgstr ""
38118
38119 #. type: textblock
38120 #: ../tools/virt-win-reg.pl:623
38121 msgid ""
38122 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
38123 "Registry at the level of the hive file, and therefore you cannot modify "
38124 "these."
38125 msgstr ""
38126
38127 #. type: textblock
38128 #: ../tools/virt-win-reg.pl:627
38129 msgid ""
38130 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
38131 "circumstances it might refer to another control set.  The way to find out is "
38132 "to look at the C<HKLM\\SYSTEM\\Select> key:"
38133 msgstr ""
38134
38135 #. type: verbatim
38136 #: ../tools/virt-win-reg.pl:631
38137 #, no-wrap
38138 msgid ""
38139 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
38140 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
38141 " \"Current\"=dword:00000001\n"
38142 " \"Default\"=dword:00000001\n"
38143 " \"Failed\"=dword:00000000\n"
38144 " \"LastKnownGood\"=dword:00000002\n"
38145 "\n"
38146 msgstr ""
38147
38148 #. type: textblock
38149 #: ../tools/virt-win-reg.pl:638
38150 msgid "\"Current\" is the one which Windows will choose when it boots."
38151 msgstr ""
38152
38153 #. type: textblock
38154 #: ../tools/virt-win-reg.pl:640
38155 msgid ""
38156 "Similarly, other C<Current...> keys in the path may need to be replaced."
38157 msgstr ""
38158
38159 #. type: =head1
38160 #: ../tools/virt-win-reg.pl:643
38161 msgid "WINDOWS TIPS"
38162 msgstr ""
38163
38164 #. type: textblock
38165 #: ../tools/virt-win-reg.pl:645
38166 msgid ""
38167 "Note that some of these tips modify the guest disk image.  The guest I<must> "
38168 "be shut off, else you will get disk corruption."
38169 msgstr ""
38170
38171 #. type: =head2
38172 #: ../tools/virt-win-reg.pl:648
38173 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
38174 msgstr ""
38175
38176 #. type: textblock
38177 #: ../tools/virt-win-reg.pl:650
38178 msgid ""
38179 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
38180 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
38181 "is uploaded into C<C:\\>:"
38182 msgstr ""
38183
38184 #. type: verbatim
38185 #: ../tools/virt-win-reg.pl:654
38186 #, no-wrap
38187 msgid ""
38188 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
38189 "\n"
38190 msgstr ""
38191
38192 #. type: textblock
38193 #: ../tools/virt-win-reg.pl:656
38194 msgid "Prepare a regedit file containing the registry change:"
38195 msgstr ""
38196
38197 #. type: verbatim
38198 #: ../tools/virt-win-reg.pl:658
38199 #, no-wrap
38200 msgid ""
38201 " cat > test.reg <<'EOF'\n"
38202 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
38203 " \"Test\"=\"c:\\\\test.bat\"\n"
38204 " EOF\n"
38205 "\n"
38206 msgstr ""
38207
38208 #. type: textblock
38209 #: ../tools/virt-win-reg.pl:663
38210 msgid ""
38211 "In this example we use the key C<RunOnce> which means that the script will "
38212 "run precisely once when the first user logs in.  If you want it to run every "
38213 "time a user logs in, replace C<RunOnce> with C<Run>."
38214 msgstr ""
38215
38216 #. type: textblock
38217 #: ../tools/virt-win-reg.pl:667
38218 msgid "Now update the registry:"
38219 msgstr ""
38220
38221 #. type: verbatim
38222 #: ../tools/virt-win-reg.pl:669
38223 #, no-wrap
38224 msgid ""
38225 " virt-win-reg --merge WindowsGuest test.reg\n"
38226 "\n"
38227 msgstr ""
38228
38229 #. type: =head2
38230 #: ../tools/virt-win-reg.pl:671
38231 msgid "INSTALLING A SERVICE"
38232 msgstr ""
38233
38234 #. type: textblock
38235 #: ../tools/virt-win-reg.pl:673
38236 msgid ""
38237 "This section assumes you are familiar with Windows services, and you either "
38238 "have a program which handles the Windows Service Control Protocol directly "
38239 "or you want to run any program using a service wrapper like SrvAny or the "
38240 "free RHSrvAny."
38241 msgstr ""
38242
38243 #. type: textblock
38244 #: ../tools/virt-win-reg.pl:678
38245 msgid ""
38246 "First upload the program and optionally the service wrapper.  In this case "
38247 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
38248 msgstr ""
38249
38250 #. type: verbatim
38251 #: ../tools/virt-win-reg.pl:682
38252 #, no-wrap
38253 msgid ""
38254 " guestfish -i -d WindowsGuest <<EOF\n"
38255 "   upload rhsrvany.exe /rhsrvany.exe\n"
38256 "   upload test.exe /test.exe\n"
38257 " EOF\n"
38258 "\n"
38259 msgstr ""
38260
38261 #. type: textblock
38262 #: ../tools/virt-win-reg.pl:687
38263 msgid ""
38264 "Prepare a regedit file containing the registry changes.  In this example, "
38265 "the first registry change is needed for the service itself or the service "
38266 "wrapper (if used).  The second registry change is only needed because I am "
38267 "using the RHSrvAny service wrapper."
38268 msgstr ""
38269
38270 #. type: verbatim
38271 #: ../tools/virt-win-reg.pl:692
38272 #, no-wrap
38273 msgid ""
38274 " cat > service.reg <<'EOF'\n"
38275 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
38276 " \"Type\"=dword:00000010\n"
38277 " \"Start\"=dword:00000002\n"
38278 " \"ErrorControl\"=dword:00000001\n"
38279 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
38280 " \"DisplayName\"=\"RHSrvAny\"\n"
38281 " \"ObjectName\"=\"NetworkService\"\n"
38282 " \n"
38283 msgstr ""
38284
38285 #. type: verbatim
38286 #: ../tools/virt-win-reg.pl:701
38287 #, no-wrap
38288 msgid ""
38289 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
38290 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
38291 " \"PWD\"=\"c:\\\\Temp\"\n"
38292 " EOF\n"
38293 "\n"
38294 msgstr ""
38295
38296 #. type: textblock
38297 #: ../tools/virt-win-reg.pl:712
38298 msgid ""
38299 "For use of C<ControlSet001> see the section above in this manual page.  You "
38300 "may need to adjust this according to the control set that is in use by the "
38301 "guest."
38302 msgstr ""
38303
38304 #. type: textblock
38305 #: ../tools/virt-win-reg.pl:718
38306 msgid ""
38307 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
38308 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
38309 "privileged account."
38310 msgstr ""
38311
38312 #. type: textblock
38313 #: ../tools/virt-win-reg.pl:724
38314 msgid ""
38315 "For the meaning of the magic numbers, see this Microsoft KB article: "
38316 "L<http://support.microsoft.com/kb/103000>."
38317 msgstr ""
38318
38319 #. type: textblock
38320 #: ../tools/virt-win-reg.pl:729
38321 msgid "Update the registry:"
38322 msgstr ""
38323
38324 #. type: verbatim
38325 #: ../tools/virt-win-reg.pl:731
38326 #, no-wrap
38327 msgid ""
38328 " virt-win-reg --merge WindowsGuest service.reg\n"
38329 "\n"
38330 msgstr ""
38331
38332 #. type: textblock
38333 #: ../tools/virt-win-reg.pl:735
38334 msgid ""
38335 "Be careful when passing parameters containing C<\\> (backslash) in the "
38336 "shell.  Usually you will have to use 'single quotes' or double backslashes "
38337 "(but not both) to protect them from the shell."
38338 msgstr ""
38339
38340 #. type: textblock
38341 #: ../tools/virt-win-reg.pl:739
38342 msgid "Paths and value names are case-insensitive."
38343 msgstr ""
38344
38345 #. type: textblock
38346 #: ../tools/virt-win-reg.pl:748
38347 msgid ""
38348 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
38349 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
38350 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38351 msgstr ""
38352
38353 #. type: verbatim
38354 #: ../tools/virt-win-reg.pl:766
38355 #, no-wrap
38356 msgid ""
38357 " export LIBGUESTFS_DEBUG=1\n"
38358 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
38359 "\n"
38360 msgstr ""
38361
38362 #. type: textblock
38363 #: ../tools/virt-win-reg.pl:769
38364 msgid ""
38365 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
38366 "redhat.com/>"
38367 msgstr ""