Version 1.12.4.
[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-17 13: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:2652
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:478
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:480 ../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:482 ../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:543 ../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:545 ../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:550 ../ruby/examples/guestfs-ruby.pod:36
674 #: ../src/guestfs.pod:3026 ../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:571
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:573 ../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:575 ../ruby/examples/guestfs-ruby.pod:51
719 #: ../src/guestfs.pod:3102 ../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:577
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:579 ../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:584 ../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:589 ../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:15 ../src/guestfs-actions.pod:22
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:1643 ../src/guestfs.pod:1648 ../src/guestfs.pod:1652
2418 #: ../src/guestfs.pod:1754 ../src/guestfs.pod:1759 ../src/guestfs.pod:1763
2419 #: ../src/guestfs.pod:1773 ../src/guestfs.pod:2047 ../src/guestfs.pod:2052
2420 #: ../src/guestfs.pod:2058 ../src/guestfs.pod:2066 ../src/guestfs.pod:2420
2421 #: ../src/guestfs.pod:2426 ../src/guestfs.pod:2431 ../src/guestfs.pod:2437
2422 #: ../src/guestfs.pod:2818 ../src/guestfs.pod:2823 ../src/guestfs.pod:2827
2423 #: ../src/guestfs.pod:2831 ../src/guestfs.pod:2835 ../src/guestfs.pod:2849
2424 #: ../src/guestfs.pod:2854 ../src/guestfs.pod:3079 ../src/guestfs.pod:3083
2425 #: ../src/guestfs.pod:3087 ../src/guestfs.pod:3091
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:2965
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:3098
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:3100
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:3107
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:3112
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:3117
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:11 ../src/guestfs-actions.pod:1922
3506 #: ../src/guestfs-actions.pod:2860 ../src/guestfs.pod:1639
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:7
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:9
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 "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:5190
4117 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:257
4118 #: ../src/guestfs-actions.pod:278 ../src/guestfs-actions.pod:1518
4119 #: ../src/guestfs-actions.pod:2013 ../src/guestfs-actions.pod:2034
4120 #: ../src/guestfs-actions.pod:4633 ../src/guestfs-actions.pod:4952
4121 #: ../src/guestfs-actions.pod:5170 ../src/guestfs-actions.pod:5260
4122 #: ../src/guestfs-actions.pod:6549 ../src/guestfs-actions.pod:6579
4123 #: ../src/guestfs-actions.pod:6612 ../src/guestfs-actions.pod:6671
4124 #: ../src/guestfs-actions.pod:7607 ../src/guestfs-actions.pod:7719
4125 #: ../src/guestfs-actions.pod:7889
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:5162 ../fish/guestfish-actions.pod:5172
5406 #: ../fish/guestfish-actions.pod:5201 ../fish/guestfish-actions.pod:5211
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:7713
5420 #: ../src/guestfs-actions.pod:7739 ../src/guestfs-actions.pod:7758
5421 #: ../src/guestfs-actions.pod:7844 ../src/guestfs-actions.pod:7863
5422 #: ../src/guestfs-actions.pod:7909 ../src/guestfs-actions.pod:7928
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:1505 ../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:1509
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 "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:2004
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 "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:2025
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 "This function is deprecated.  In new code, use the L</vfs_uuid> call instead."
6980 msgstr ""
6981
6982 #. type: =head2
6983 #: ../fish/guestfish-actions.pod:1369
6984 msgid "get-memsize"
6985 msgstr ""
6986
6987 #. type: verbatim
6988 #: ../fish/guestfish-actions.pod:1371
6989 #, no-wrap
6990 msgid ""
6991 " get-memsize\n"
6992 "\n"
6993 msgstr ""
6994
6995 #. type: textblock
6996 #: ../fish/guestfish-actions.pod:1373 ../src/guestfs-actions.pod:2045
6997 msgid ""
6998 "This gets the memory size in megabytes allocated to the qemu subprocess."
6999 msgstr ""
7000
7001 #. type: textblock
7002 #: ../fish/guestfish-actions.pod:1376
7003 msgid ""
7004 "If L</set-memsize> was not called on this handle, and if "
7005 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7006 "value for memsize."
7007 msgstr ""
7008
7009 #. type: textblock
7010 #: ../fish/guestfish-actions.pod:1380 ../fish/guestfish-actions.pod:1437
7011 #: ../fish/guestfish-actions.pod:4168 ../fish/guestfish-actions.pod:4270
7012 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2144
7013 #: ../src/guestfs-actions.pod:6298 ../src/guestfs-actions.pod:6424
7014 msgid ""
7015 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7016 msgstr ""
7017
7018 #. type: =head2
7019 #: ../fish/guestfish-actions.pod:1383
7020 msgid "get-network"
7021 msgstr ""
7022
7023 #. type: verbatim
7024 #: ../fish/guestfish-actions.pod:1385
7025 #, no-wrap
7026 msgid ""
7027 " get-network\n"
7028 "\n"
7029 msgstr ""
7030
7031 #. type: textblock
7032 #: ../fish/guestfish-actions.pod:1387 ../src/guestfs-actions.pod:2064
7033 msgid "This returns the enable network flag."
7034 msgstr ""
7035
7036 #. type: =head2
7037 #: ../fish/guestfish-actions.pod:1389
7038 msgid "get-path"
7039 msgstr ""
7040
7041 #. type: verbatim
7042 #: ../fish/guestfish-actions.pod:1391
7043 #, no-wrap
7044 msgid ""
7045 " get-path\n"
7046 "\n"
7047 msgstr ""
7048
7049 #. type: textblock
7050 #: ../fish/guestfish-actions.pod:1393 ../src/guestfs-actions.pod:2075
7051 msgid "Return the current search path."
7052 msgstr ""
7053
7054 #. type: textblock
7055 #: ../fish/guestfish-actions.pod:1395 ../src/guestfs-actions.pod:2077
7056 msgid ""
7057 "This is always non-NULL.  If it wasn't set already, then this will return "
7058 "the default path."
7059 msgstr ""
7060
7061 #. type: =head2
7062 #: ../fish/guestfish-actions.pod:1398
7063 msgid "get-pgroup"
7064 msgstr ""
7065
7066 #. type: verbatim
7067 #: ../fish/guestfish-actions.pod:1400
7068 #, no-wrap
7069 msgid ""
7070 " get-pgroup\n"
7071 "\n"
7072 msgstr ""
7073
7074 #. type: textblock
7075 #: ../fish/guestfish-actions.pod:1402 ../src/guestfs-actions.pod:2090
7076 msgid "This returns the process group flag."
7077 msgstr ""
7078
7079 #. type: =head2
7080 #: ../fish/guestfish-actions.pod:1404
7081 msgid "get-pid"
7082 msgstr ""
7083
7084 #. type: =head2
7085 #: ../fish/guestfish-actions.pod:1406
7086 msgid "pid"
7087 msgstr ""
7088
7089 #. type: verbatim
7090 #: ../fish/guestfish-actions.pod:1408
7091 #, no-wrap
7092 msgid ""
7093 " get-pid\n"
7094 "\n"
7095 msgstr ""
7096
7097 #. type: textblock
7098 #: ../fish/guestfish-actions.pod:1410 ../src/guestfs-actions.pod:2101
7099 msgid ""
7100 "Return the process ID of the qemu subprocess.  If there is no qemu "
7101 "subprocess, then this will return an error."
7102 msgstr ""
7103
7104 #. type: textblock
7105 #: ../fish/guestfish-actions.pod:1413 ../src/guestfs-actions.pod:2104
7106 msgid "This is an internal call used for debugging and testing."
7107 msgstr ""
7108
7109 #. type: =head2
7110 #: ../fish/guestfish-actions.pod:1415
7111 msgid "get-qemu"
7112 msgstr ""
7113
7114 #. type: verbatim
7115 #: ../fish/guestfish-actions.pod:1417
7116 #, no-wrap
7117 msgid ""
7118 " get-qemu\n"
7119 "\n"
7120 msgstr ""
7121
7122 #. type: textblock
7123 #: ../fish/guestfish-actions.pod:1419 ../src/guestfs-actions.pod:2115
7124 msgid "Return the current qemu binary."
7125 msgstr ""
7126
7127 #. type: textblock
7128 #: ../fish/guestfish-actions.pod:1421 ../src/guestfs-actions.pod:2117
7129 msgid ""
7130 "This is always non-NULL.  If it wasn't set already, then this will return "
7131 "the default qemu binary name."
7132 msgstr ""
7133
7134 #. type: =head2
7135 #: ../fish/guestfish-actions.pod:1424
7136 msgid "get-recovery-proc"
7137 msgstr ""
7138
7139 #. type: verbatim
7140 #: ../fish/guestfish-actions.pod:1426
7141 #, no-wrap
7142 msgid ""
7143 " get-recovery-proc\n"
7144 "\n"
7145 msgstr ""
7146
7147 #. type: textblock
7148 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2130
7149 msgid "Return the recovery process enabled flag."
7150 msgstr ""
7151
7152 #. type: =head2
7153 #: ../fish/guestfish-actions.pod:1430
7154 msgid "get-selinux"
7155 msgstr ""
7156
7157 #. type: verbatim
7158 #: ../fish/guestfish-actions.pod:1432
7159 #, no-wrap
7160 msgid ""
7161 " get-selinux\n"
7162 "\n"
7163 msgstr ""
7164
7165 #. type: textblock
7166 #: ../fish/guestfish-actions.pod:1434
7167 msgid ""
7168 "This returns the current setting of the selinux flag which is passed to the "
7169 "appliance at boot time.  See L</set-selinux>."
7170 msgstr ""
7171
7172 #. type: =head2
7173 #: ../fish/guestfish-actions.pod:1440
7174 msgid "get-state"
7175 msgstr ""
7176
7177 #. type: verbatim
7178 #: ../fish/guestfish-actions.pod:1442
7179 #, no-wrap
7180 msgid ""
7181 " get-state\n"
7182 "\n"
7183 msgstr ""
7184
7185 #. type: textblock
7186 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2156
7187 msgid ""
7188 "This returns the current state as an opaque integer.  This is only useful "
7189 "for printing debug and internal error messages."
7190 msgstr ""
7191
7192 #. type: textblock
7193 #: ../fish/guestfish-actions.pod:1447 ../fish/guestfish-actions.pod:2367
7194 #: ../fish/guestfish-actions.pod:2385 ../fish/guestfish-actions.pod:2423
7195 #: ../fish/guestfish-actions.pod:2439 ../src/guestfs-actions.pod:2159
7196 #: ../src/guestfs-actions.pod:3439 ../src/guestfs-actions.pod:3468
7197 #: ../src/guestfs-actions.pod:3529 ../src/guestfs-actions.pod:3556
7198 msgid "For more information on states, see L<guestfs(3)>."
7199 msgstr ""
7200
7201 #. type: =head2
7202 #: ../fish/guestfish-actions.pod:1449
7203 msgid "get-trace"
7204 msgstr ""
7205
7206 #. type: verbatim
7207 #: ../fish/guestfish-actions.pod:1451
7208 #, no-wrap
7209 msgid ""
7210 " get-trace\n"
7211 "\n"
7212 msgstr ""
7213
7214 #. type: textblock
7215 #: ../fish/guestfish-actions.pod:1453 ../src/guestfs-actions.pod:2170
7216 msgid "Return the command trace flag."
7217 msgstr ""
7218
7219 #. type: =head2
7220 #: ../fish/guestfish-actions.pod:1455
7221 msgid "get-umask"
7222 msgstr ""
7223
7224 #. type: verbatim
7225 #: ../fish/guestfish-actions.pod:1457
7226 #, no-wrap
7227 msgid ""
7228 " get-umask\n"
7229 "\n"
7230 msgstr ""
7231
7232 #. type: textblock
7233 #: ../fish/guestfish-actions.pod:1459
7234 msgid ""
7235 "Return the current umask.  By default the umask is C<022> unless it has been "
7236 "set by calling L</umask>."
7237 msgstr ""
7238
7239 #. type: =head2
7240 #: ../fish/guestfish-actions.pod:1462
7241 msgid "get-verbose"
7242 msgstr ""
7243
7244 #. type: verbatim
7245 #: ../fish/guestfish-actions.pod:1464
7246 #, no-wrap
7247 msgid ""
7248 " get-verbose\n"
7249 "\n"
7250 msgstr ""
7251
7252 #. type: textblock
7253 #: ../fish/guestfish-actions.pod:1466 ../src/guestfs-actions.pod:2193
7254 msgid "This returns the verbose messages flag."
7255 msgstr ""
7256
7257 #. type: =head2
7258 #: ../fish/guestfish-actions.pod:1468
7259 msgid "getcon"
7260 msgstr ""
7261
7262 #. type: verbatim
7263 #: ../fish/guestfish-actions.pod:1470
7264 #, no-wrap
7265 msgid ""
7266 " getcon\n"
7267 "\n"
7268 msgstr ""
7269
7270 #. type: textblock
7271 #: ../fish/guestfish-actions.pod:1472 ../src/guestfs-actions.pod:2204
7272 msgid "This gets the SELinux security context of the daemon."
7273 msgstr ""
7274
7275 #. type: textblock
7276 #: ../fish/guestfish-actions.pod:1474
7277 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
7278 msgstr ""
7279
7280 #. type: =head2
7281 #: ../fish/guestfish-actions.pod:1477
7282 msgid "getxattr"
7283 msgstr ""
7284
7285 #. type: verbatim
7286 #: ../fish/guestfish-actions.pod:1479
7287 #, no-wrap
7288 msgid ""
7289 " getxattr path name\n"
7290 "\n"
7291 msgstr ""
7292
7293 #. type: textblock
7294 #: ../fish/guestfish-actions.pod:1481
7295 msgid ""
7296 "Get a single extended attribute from file C<path> named C<name>.  This call "
7297 "follows symlinks.  If you want to lookup an extended attribute for the "
7298 "symlink itself, use L</lgetxattr>."
7299 msgstr ""
7300
7301 #. type: textblock
7302 #: ../fish/guestfish-actions.pod:1485 ../fish/guestfish-actions.pod:2512
7303 msgid ""
7304 "Normally it is better to get all extended attributes from a file in one go "
7305 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
7306 "buggy and do not provide a way to list out attributes.  For these "
7307 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
7308 "attributes you want in advance and call this function."
7309 msgstr ""
7310
7311 #. type: textblock
7312 #: ../fish/guestfish-actions.pod:1492 ../fish/guestfish-actions.pod:2519
7313 #: ../src/guestfs-actions.pod:2233 ../src/guestfs-actions.pod:3689
7314 msgid ""
7315 "Extended attribute values are blobs of binary data.  If there is no extended "
7316 "attribute named C<name>, this returns an error."
7317 msgstr ""
7318
7319 #. type: textblock
7320 #: ../fish/guestfish-actions.pod:1495
7321 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7322 msgstr ""
7323
7324 #. type: =head2
7325 #: ../fish/guestfish-actions.pod:1497
7326 msgid "getxattrs"
7327 msgstr ""
7328
7329 #. type: verbatim
7330 #: ../fish/guestfish-actions.pod:1499
7331 #, no-wrap
7332 msgid ""
7333 " getxattrs path\n"
7334 "\n"
7335 msgstr ""
7336
7337 #. type: textblock
7338 #: ../fish/guestfish-actions.pod:1501 ../src/guestfs-actions.pod:2250
7339 msgid ""
7340 "This call lists the extended attributes of the file or directory C<path>."
7341 msgstr ""
7342
7343 #. type: textblock
7344 #: ../fish/guestfish-actions.pod:1504 ../src/guestfs-actions.pod:2253
7345 msgid ""
7346 "At the system call level, this is a combination of the L<listxattr(2)> and "
7347 "L<getxattr(2)> calls."
7348 msgstr ""
7349
7350 #. type: textblock
7351 #: ../fish/guestfish-actions.pod:1507
7352 msgid "See also: L</lgetxattrs>, L<attr(5)>."
7353 msgstr ""
7354
7355 #. type: =head2
7356 #: ../fish/guestfish-actions.pod:1509
7357 msgid "glob-expand"
7358 msgstr ""
7359
7360 #. type: verbatim
7361 #: ../fish/guestfish-actions.pod:1511
7362 #, no-wrap
7363 msgid ""
7364 " glob-expand pattern\n"
7365 "\n"
7366 msgstr ""
7367
7368 #. type: textblock
7369 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2270
7370 msgid ""
7371 "This command searches for all the pathnames matching C<pattern> according to "
7372 "the wildcard expansion rules used by the shell."
7373 msgstr ""
7374
7375 #. type: textblock
7376 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2274
7377 msgid ""
7378 "If no paths match, then this returns an empty list (note: not an error)."
7379 msgstr ""
7380
7381 #. type: textblock
7382 #: ../fish/guestfish-actions.pod:1520 ../src/guestfs-actions.pod:2277
7383 msgid ""
7384 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
7385 "GLOB_BRACE>.  See that manual page for more details."
7386 msgstr ""
7387
7388 #. type: =head2
7389 #: ../fish/guestfish-actions.pod:1524
7390 msgid "grep"
7391 msgstr ""
7392
7393 #. type: verbatim
7394 #: ../fish/guestfish-actions.pod:1526
7395 #, no-wrap
7396 msgid ""
7397 " grep regex path\n"
7398 "\n"
7399 msgstr ""
7400
7401 #. type: textblock
7402 #: ../fish/guestfish-actions.pod:1528 ../src/guestfs-actions.pod:2294
7403 msgid "This calls the external C<grep> program and returns the matching lines."
7404 msgstr ""
7405
7406 #. type: =head2
7407 #: ../fish/guestfish-actions.pod:1534
7408 msgid "grepi"
7409 msgstr ""
7410
7411 #. type: verbatim
7412 #: ../fish/guestfish-actions.pod:1536
7413 #, no-wrap
7414 msgid ""
7415 " grepi regex path\n"
7416 "\n"
7417 msgstr ""
7418
7419 #. type: textblock
7420 #: ../fish/guestfish-actions.pod:1538 ../src/guestfs-actions.pod:2313
7421 msgid ""
7422 "This calls the external C<grep -i> program and returns the matching lines."
7423 msgstr ""
7424
7425 #. type: =head2
7426 #: ../fish/guestfish-actions.pod:1544
7427 msgid "grub-install"
7428 msgstr ""
7429
7430 #. type: verbatim
7431 #: ../fish/guestfish-actions.pod:1546
7432 #, no-wrap
7433 msgid ""
7434 " grub-install root device\n"
7435 "\n"
7436 msgstr ""
7437
7438 #. type: textblock
7439 #: ../fish/guestfish-actions.pod:1548 ../src/guestfs-actions.pod:2332
7440 msgid ""
7441 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7442 "the root directory being C<root>."
7443 msgstr ""
7444
7445 #. type: textblock
7446 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2335
7447 msgid ""
7448 "Note: If grub-install reports the error \"No suitable drive was found in the "
7449 "generated device map.\" it may be that you need to create a C</boot/grub/"
7450 "device.map> file first that contains the mapping between grub device names "
7451 "and Linux device names.  It is usually sufficient to create a file "
7452 "containing:"
7453 msgstr ""
7454
7455 #. type: verbatim
7456 #: ../fish/guestfish-actions.pod:1558 ../src/guestfs-actions.pod:2342
7457 #, no-wrap
7458 msgid ""
7459 " (hd0) /dev/vda\n"
7460 "\n"
7461 msgstr ""
7462
7463 #. type: textblock
7464 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2344
7465 msgid "replacing C</dev/vda> with the name of the installation device."
7466 msgstr ""
7467
7468 #. type: =head2
7469 #: ../fish/guestfish-actions.pod:1562
7470 msgid "head"
7471 msgstr ""
7472
7473 #. type: verbatim
7474 #: ../fish/guestfish-actions.pod:1564
7475 #, no-wrap
7476 msgid ""
7477 " head path\n"
7478 "\n"
7479 msgstr ""
7480
7481 #. type: textblock
7482 #: ../fish/guestfish-actions.pod:1566 ../src/guestfs-actions.pod:2356
7483 msgid ""
7484 "This command returns up to the first 10 lines of a file as a list of strings."
7485 msgstr ""
7486
7487 #. type: =head2
7488 #: ../fish/guestfish-actions.pod:1572
7489 msgid "head-n"
7490 msgstr ""
7491
7492 #. type: verbatim
7493 #: ../fish/guestfish-actions.pod:1574
7494 #, no-wrap
7495 msgid ""
7496 " head-n nrlines path\n"
7497 "\n"
7498 msgstr ""
7499
7500 #. type: textblock
7501 #: ../fish/guestfish-actions.pod:1576 ../src/guestfs-actions.pod:2375
7502 msgid ""
7503 "If the parameter C<nrlines> is a positive number, this returns the first "
7504 "C<nrlines> lines of the file C<path>."
7505 msgstr ""
7506
7507 #. type: textblock
7508 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2378
7509 msgid ""
7510 "If the parameter C<nrlines> is a negative number, this returns lines from "
7511 "the file C<path>, excluding the last C<nrlines> lines."
7512 msgstr ""
7513
7514 #. type: textblock
7515 #: ../fish/guestfish-actions.pod:1582 ../fish/guestfish-actions.pod:4648
7516 #: ../src/guestfs-actions.pod:2381 ../src/guestfs-actions.pod:6996
7517 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7518 msgstr ""
7519
7520 #. type: =head2
7521 #: ../fish/guestfish-actions.pod:1587
7522 msgid "hexdump"
7523 msgstr ""
7524
7525 #. type: verbatim
7526 #: ../fish/guestfish-actions.pod:1589
7527 #, no-wrap
7528 msgid ""
7529 " hexdump path\n"
7530 "\n"
7531 msgstr ""
7532
7533 #. type: textblock
7534 #: ../fish/guestfish-actions.pod:1591 ../src/guestfs-actions.pod:2398
7535 msgid ""
7536 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
7537 "readable, canonical hex dump of the file."
7538 msgstr ""
7539
7540 #. type: =head2
7541 #: ../fish/guestfish-actions.pod:1597
7542 msgid "initrd-cat"
7543 msgstr ""
7544
7545 #. type: verbatim
7546 #: ../fish/guestfish-actions.pod:1599
7547 #, no-wrap
7548 msgid ""
7549 " initrd-cat initrdpath filename\n"
7550 "\n"
7551 msgstr ""
7552
7553 #. type: textblock
7554 #: ../fish/guestfish-actions.pod:1601 ../src/guestfs-actions.pod:2417
7555 msgid ""
7556 "This command unpacks the file C<filename> from the initrd file called "
7557 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7558 "character."
7559 msgstr ""
7560
7561 #. type: textblock
7562 #: ../fish/guestfish-actions.pod:1605 ../src/guestfs-actions.pod:2421
7563 msgid ""
7564 "For example, in guestfish you could use the following command to examine the "
7565 "boot script (usually called C</init>)  contained in a Linux initrd or "
7566 "initramfs image:"
7567 msgstr ""
7568
7569 #. type: verbatim
7570 #: ../fish/guestfish-actions.pod:1609 ../src/guestfs-actions.pod:2425
7571 #, no-wrap
7572 msgid ""
7573 " initrd-cat /boot/initrd-<version>.img init\n"
7574 "\n"
7575 msgstr ""
7576
7577 #. type: textblock
7578 #: ../fish/guestfish-actions.pod:1611
7579 msgid "See also L</initrd-list>."
7580 msgstr ""
7581
7582 #. type: =head2
7583 #: ../fish/guestfish-actions.pod:1616
7584 msgid "initrd-list"
7585 msgstr ""
7586
7587 #. type: verbatim
7588 #: ../fish/guestfish-actions.pod:1618
7589 #, no-wrap
7590 msgid ""
7591 " initrd-list path\n"
7592 "\n"
7593 msgstr ""
7594
7595 #. type: textblock
7596 #: ../fish/guestfish-actions.pod:1620 ../src/guestfs-actions.pod:2444
7597 msgid "This command lists out files contained in an initrd."
7598 msgstr ""
7599
7600 #. type: textblock
7601 #: ../fish/guestfish-actions.pod:1622 ../src/guestfs-actions.pod:2446
7602 msgid ""
7603 "The files are listed without any initial C</> character.  The files are "
7604 "listed in the order they appear (not necessarily alphabetical).  Directory "
7605 "names are listed as separate items."
7606 msgstr ""
7607
7608 #. type: textblock
7609 #: ../fish/guestfish-actions.pod:1626 ../src/guestfs-actions.pod:2450
7610 msgid ""
7611 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
7612 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
7613 "files)."
7614 msgstr ""
7615
7616 #. type: =head2
7617 #: ../fish/guestfish-actions.pod:1630
7618 msgid "inotify-add-watch"
7619 msgstr ""
7620
7621 #. type: verbatim
7622 #: ../fish/guestfish-actions.pod:1632
7623 #, no-wrap
7624 msgid ""
7625 " inotify-add-watch path mask\n"
7626 "\n"
7627 msgstr ""
7628
7629 #. type: textblock
7630 #: ../fish/guestfish-actions.pod:1634 ../src/guestfs-actions.pod:2467
7631 msgid "Watch C<path> for the events listed in C<mask>."
7632 msgstr ""
7633
7634 #. type: textblock
7635 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2469
7636 msgid ""
7637 "Note that if C<path> is a directory then events within that directory are "
7638 "watched, but this does I<not> happen recursively (in subdirectories)."
7639 msgstr ""
7640
7641 #. type: textblock
7642 #: ../fish/guestfish-actions.pod:1640 ../src/guestfs-actions.pod:2473
7643 msgid ""
7644 "Note for non-C or non-Linux callers: the inotify events are defined by the "
7645 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
7646 msgstr ""
7647
7648 #. type: =head2
7649 #: ../fish/guestfish-actions.pod:1644
7650 msgid "inotify-close"
7651 msgstr ""
7652
7653 #. type: verbatim
7654 #: ../fish/guestfish-actions.pod:1646
7655 #, no-wrap
7656 msgid ""
7657 " inotify-close\n"
7658 "\n"
7659 msgstr ""
7660
7661 #. type: textblock
7662 #: ../fish/guestfish-actions.pod:1648 ../src/guestfs-actions.pod:2486
7663 msgid ""
7664 "This closes the inotify handle which was previously opened by inotify_init.  "
7665 "It removes all watches, throws away any pending events, and deallocates all "
7666 "resources."
7667 msgstr ""
7668
7669 #. type: =head2
7670 #: ../fish/guestfish-actions.pod:1652
7671 msgid "inotify-files"
7672 msgstr ""
7673
7674 #. type: verbatim
7675 #: ../fish/guestfish-actions.pod:1654
7676 #, no-wrap
7677 msgid ""
7678 " inotify-files\n"
7679 "\n"
7680 msgstr ""
7681
7682 #. type: textblock
7683 #: ../fish/guestfish-actions.pod:1656
7684 msgid ""
7685 "This function is a helpful wrapper around L</inotify-read> which just "
7686 "returns a list of pathnames of objects that were touched.  The returned "
7687 "pathnames are sorted and deduplicated."
7688 msgstr ""
7689
7690 #. type: =head2
7691 #: ../fish/guestfish-actions.pod:1660
7692 msgid "inotify-init"
7693 msgstr ""
7694
7695 #. type: verbatim
7696 #: ../fish/guestfish-actions.pod:1662
7697 #, no-wrap
7698 msgid ""
7699 " inotify-init maxevents\n"
7700 "\n"
7701 msgstr ""
7702
7703 #. type: textblock
7704 #: ../fish/guestfish-actions.pod:1664 ../src/guestfs-actions.pod:2515
7705 msgid ""
7706 "This command creates a new inotify handle.  The inotify subsystem can be "
7707 "used to notify events which happen to objects in the guest filesystem."
7708 msgstr ""
7709
7710 #. type: textblock
7711 #: ../fish/guestfish-actions.pod:1668
7712 msgid ""
7713 "C<maxevents> is the maximum number of events which will be queued up between "
7714 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
7715 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
7716 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
7717 "but records the fact that it threw them away by setting a flag "
7718 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
7719 msgstr ""
7720
7721 #. type: textblock
7722 #: ../fish/guestfish-actions.pod:1678
7723 msgid ""
7724 "Before any events are generated, you have to add some watches to the "
7725 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
7726 "L</inotify-watch-all>."
7727 msgstr ""
7728
7729 #. type: textblock
7730 #: ../fish/guestfish-actions.pod:1684
7731 msgid ""
7732 "Queued up events should be read periodically by calling L</inotify-read> (or "
7733 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
7734 "If you don't read the events out often enough then you risk the internal "
7735 "queue overflowing."
7736 msgstr ""
7737
7738 #. type: textblock
7739 #: ../fish/guestfish-actions.pod:1691
7740 msgid ""
7741 "The handle should be closed after use by calling L</inotify-close>.  This "
7742 "also removes any watches automatically."
7743 msgstr ""
7744
7745 #. type: textblock
7746 #: ../fish/guestfish-actions.pod:1695 ../src/guestfs-actions.pod:2546
7747 msgid ""
7748 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
7749 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
7750 "that there is one global inotify handle per libguestfs instance."
7751 msgstr ""
7752
7753 #. type: =head2
7754 #: ../fish/guestfish-actions.pod:1700
7755 msgid "inotify-read"
7756 msgstr ""
7757
7758 #. type: verbatim
7759 #: ../fish/guestfish-actions.pod:1702
7760 #, no-wrap
7761 msgid ""
7762 " inotify-read\n"
7763 "\n"
7764 msgstr ""
7765
7766 #. type: textblock
7767 #: ../fish/guestfish-actions.pod:1704 ../src/guestfs-actions.pod:2560
7768 msgid ""
7769 "Return the complete queue of events that have happened since the previous "
7770 "read call."
7771 msgstr ""
7772
7773 #. type: textblock
7774 #: ../fish/guestfish-actions.pod:1707 ../src/guestfs-actions.pod:2563
7775 msgid "If no events have happened, this returns an empty list."
7776 msgstr ""
7777
7778 #. type: textblock
7779 #: ../fish/guestfish-actions.pod:1709 ../src/guestfs-actions.pod:2565
7780 msgid ""
7781 "I<Note>: In order to make sure that all events have been read, you must call "
7782 "this function repeatedly until it returns an empty list.  The reason is that "
7783 "the call will read events up to the maximum appliance-to-host message size "
7784 "and leave remaining events in the queue."
7785 msgstr ""
7786
7787 #. type: =head2
7788 #: ../fish/guestfish-actions.pod:1715
7789 msgid "inotify-rm-watch"
7790 msgstr ""
7791
7792 #. type: verbatim
7793 #: ../fish/guestfish-actions.pod:1717
7794 #, no-wrap
7795 msgid ""
7796 " inotify-rm-watch wd\n"
7797 "\n"
7798 msgstr ""
7799
7800 #. type: textblock
7801 #: ../fish/guestfish-actions.pod:1719
7802 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
7803 msgstr ""
7804
7805 #. type: =head2
7806 #: ../fish/guestfish-actions.pod:1722
7807 msgid "inspect-get-arch"
7808 msgstr ""
7809
7810 #. type: verbatim
7811 #: ../fish/guestfish-actions.pod:1724
7812 #, no-wrap
7813 msgid ""
7814 " inspect-get-arch root\n"
7815 "\n"
7816 msgstr ""
7817
7818 #. type: textblock
7819 #: ../fish/guestfish-actions.pod:1726
7820 msgid ""
7821 "This returns the architecture of the inspected operating system.  The "
7822 "possible return values are listed under L</file-architecture>."
7823 msgstr ""
7824
7825 #. type: textblock
7826 #: ../fish/guestfish-actions.pod:1730 ../src/guestfs-actions.pod:2600
7827 msgid ""
7828 "If the architecture could not be determined, then the string C<unknown> is "
7829 "returned."
7830 msgstr ""
7831
7832 #. type: textblock
7833 #: ../fish/guestfish-actions.pod:1733 ../fish/guestfish-actions.pod:1816
7834 #: ../fish/guestfish-actions.pod:1895 ../fish/guestfish-actions.pod:1907
7835 #: ../fish/guestfish-actions.pod:1991 ../fish/guestfish-actions.pod:2052
7836 #: ../fish/guestfish-actions.pod:2073 ../fish/guestfish-actions.pod:2087
7837 #: ../fish/guestfish-actions.pod:2127 ../fish/guestfish-actions.pod:2159
7838 #: ../fish/guestfish-actions.pod:2172 ../fish/guestfish-actions.pod:2185
7839 #: ../fish/guestfish-actions.pod:2195 ../fish/guestfish-actions.pod:2205
7840 #: ../fish/guestfish-actions.pod:2217 ../fish/guestfish-actions.pod:2313
7841 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:2603
7842 #: ../src/guestfs-actions.pod:2693 ../src/guestfs-actions.pod:2797
7843 #: ../src/guestfs-actions.pod:2816 ../src/guestfs-actions.pod:2947
7844 #: ../src/guestfs-actions.pod:3030 ../src/guestfs-actions.pod:3058
7845 #: ../src/guestfs-actions.pod:3079 ../src/guestfs-actions.pod:3132
7846 #: ../src/guestfs-actions.pod:3172 ../src/guestfs-actions.pod:3192
7847 #: ../src/guestfs-actions.pod:3212 ../src/guestfs-actions.pod:3229
7848 #: ../src/guestfs-actions.pod:3245 ../src/guestfs-actions.pod:3263
7849 #: ../src/guestfs-actions.pod:3365 ../src/guestfs-actions.pod:3406
7850 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
7851 msgstr ""
7852
7853 #. type: =head2
7854 #: ../fish/guestfish-actions.pod:1735
7855 msgid "inspect-get-distro"
7856 msgstr ""
7857
7858 #. type: verbatim
7859 #: ../fish/guestfish-actions.pod:1737
7860 #, no-wrap
7861 msgid ""
7862 " inspect-get-distro root\n"
7863 "\n"
7864 msgstr ""
7865
7866 #. type: textblock
7867 #: ../fish/guestfish-actions.pod:1739 ../src/guestfs-actions.pod:2616
7868 msgid ""
7869 "This returns the distro (distribution) of the inspected operating system."
7870 msgstr ""
7871
7872 #. type: textblock
7873 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2619
7874 msgid "Currently defined distros are:"
7875 msgstr ""
7876
7877 #. type: =item
7878 #: ../fish/guestfish-actions.pod:1746 ../src/guestfs-actions.pod:2623
7879 msgid "\"archlinux\""
7880 msgstr ""
7881
7882 #. type: textblock
7883 #: ../fish/guestfish-actions.pod:1748 ../src/guestfs-actions.pod:2625
7884 msgid "Arch Linux."
7885 msgstr ""
7886
7887 #. type: =item
7888 #: ../fish/guestfish-actions.pod:1750 ../src/guestfs-actions.pod:2627
7889 msgid "\"centos\""
7890 msgstr ""
7891
7892 #. type: textblock
7893 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2629
7894 msgid "CentOS."
7895 msgstr ""
7896
7897 #. type: =item
7898 #: ../fish/guestfish-actions.pod:1754 ../src/guestfs-actions.pod:2631
7899 msgid "\"debian\""
7900 msgstr ""
7901
7902 #. type: textblock
7903 #: ../fish/guestfish-actions.pod:1756 ../src/guestfs-actions.pod:2633
7904 msgid "Debian."
7905 msgstr ""
7906
7907 #. type: =item
7908 #: ../fish/guestfish-actions.pod:1758 ../src/guestfs-actions.pod:2635
7909 msgid "\"fedora\""
7910 msgstr ""
7911
7912 #. type: textblock
7913 #: ../fish/guestfish-actions.pod:1760 ../src/guestfs-actions.pod:2637
7914 msgid "Fedora."
7915 msgstr ""
7916
7917 #. type: =item
7918 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2639
7919 msgid "\"gentoo\""
7920 msgstr ""
7921
7922 #. type: textblock
7923 #: ../fish/guestfish-actions.pod:1764 ../src/guestfs-actions.pod:2641
7924 msgid "Gentoo."
7925 msgstr ""
7926
7927 #. type: =item
7928 #: ../fish/guestfish-actions.pod:1766 ../src/guestfs-actions.pod:2643
7929 msgid "\"linuxmint\""
7930 msgstr ""
7931
7932 #. type: textblock
7933 #: ../fish/guestfish-actions.pod:1768 ../src/guestfs-actions.pod:2645
7934 msgid "Linux Mint."
7935 msgstr ""
7936
7937 #. type: =item
7938 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2647
7939 msgid "\"mandriva\""
7940 msgstr ""
7941
7942 #. type: textblock
7943 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2649
7944 msgid "Mandriva."
7945 msgstr ""
7946
7947 #. type: =item
7948 #: ../fish/guestfish-actions.pod:1774 ../src/guestfs-actions.pod:2651
7949 msgid "\"meego\""
7950 msgstr ""
7951
7952 #. type: textblock
7953 #: ../fish/guestfish-actions.pod:1776 ../src/guestfs-actions.pod:2653
7954 msgid "MeeGo."
7955 msgstr ""
7956
7957 #. type: =item
7958 #: ../fish/guestfish-actions.pod:1778 ../src/guestfs-actions.pod:2655
7959 msgid "\"pardus\""
7960 msgstr ""
7961
7962 #. type: textblock
7963 #: ../fish/guestfish-actions.pod:1780 ../src/guestfs-actions.pod:2657
7964 msgid "Pardus."
7965 msgstr ""
7966
7967 #. type: =item
7968 #: ../fish/guestfish-actions.pod:1782 ../src/guestfs-actions.pod:2659
7969 msgid "\"redhat-based\""
7970 msgstr ""
7971
7972 #. type: textblock
7973 #: ../fish/guestfish-actions.pod:1784 ../src/guestfs-actions.pod:2661
7974 msgid "Some Red Hat-derived distro."
7975 msgstr ""
7976
7977 #. type: =item
7978 #: ../fish/guestfish-actions.pod:1786 ../src/guestfs-actions.pod:2663
7979 msgid "\"rhel\""
7980 msgstr ""
7981
7982 #. type: textblock
7983 #: ../fish/guestfish-actions.pod:1788 ../src/guestfs-actions.pod:2665
7984 msgid "Red Hat Enterprise Linux."
7985 msgstr ""
7986
7987 #. type: =item
7988 #: ../fish/guestfish-actions.pod:1790 ../src/guestfs-actions.pod:2667
7989 msgid "\"scientificlinux\""
7990 msgstr ""
7991
7992 #. type: textblock
7993 #: ../fish/guestfish-actions.pod:1792 ../src/guestfs-actions.pod:2669
7994 msgid "Scientific Linux."
7995 msgstr ""
7996
7997 #. type: =item
7998 #: ../fish/guestfish-actions.pod:1794 ../src/guestfs-actions.pod:2671
7999 msgid "\"slackware\""
8000 msgstr ""
8001
8002 #. type: textblock
8003 #: ../fish/guestfish-actions.pod:1796 ../src/guestfs-actions.pod:2673
8004 msgid "Slackware."
8005 msgstr ""
8006
8007 #. type: =item
8008 #: ../fish/guestfish-actions.pod:1798 ../src/guestfs-actions.pod:2675
8009 msgid "\"ubuntu\""
8010 msgstr ""
8011
8012 #. type: textblock
8013 #: ../fish/guestfish-actions.pod:1800 ../src/guestfs-actions.pod:2677
8014 msgid "Ubuntu."
8015 msgstr ""
8016
8017 #. type: =item
8018 #: ../fish/guestfish-actions.pod:1802 ../fish/guestfish-actions.pod:1886
8019 #: ../fish/guestfish-actions.pod:2150 ../src/guestfs-actions.pod:2679
8020 #: ../src/guestfs-actions.pod:2788 ../src/guestfs-actions.pod:3163
8021 msgid "\"unknown\""
8022 msgstr ""
8023
8024 #. type: textblock
8025 #: ../fish/guestfish-actions.pod:1804 ../src/guestfs-actions.pod:2681
8026 msgid "The distro could not be determined."
8027 msgstr ""
8028
8029 #. type: =item
8030 #: ../fish/guestfish-actions.pod:1806 ../fish/guestfish-actions.pod:2142
8031 #: ../src/guestfs-actions.pod:2683 ../src/guestfs-actions.pod:3155
8032 msgid "\"windows\""
8033 msgstr ""
8034
8035 #. type: textblock
8036 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2685
8037 msgid ""
8038 "Windows does not have distributions.  This string is returned if the OS type "
8039 "is Windows."
8040 msgstr ""
8041
8042 #. type: textblock
8043 #: ../fish/guestfish-actions.pod:1813 ../fish/guestfish-actions.pod:1892
8044 #: ../fish/guestfish-actions.pod:2156 ../src/guestfs-actions.pod:2690
8045 #: ../src/guestfs-actions.pod:2794 ../src/guestfs-actions.pod:3169
8046 msgid ""
8047 "Future versions of libguestfs may return other strings here.  The caller "
8048 "should be prepared to handle any string."
8049 msgstr ""
8050
8051 #. type: =head2
8052 #: ../fish/guestfish-actions.pod:1818
8053 msgid "inspect-get-drive-mappings"
8054 msgstr ""
8055
8056 #. type: verbatim
8057 #: ../fish/guestfish-actions.pod:1820
8058 #, no-wrap
8059 msgid ""
8060 " inspect-get-drive-mappings root\n"
8061 "\n"
8062 msgstr ""
8063
8064 #. type: textblock
8065 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2706
8066 msgid ""
8067 "This call is useful for Windows which uses a primitive system of assigning "
8068 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
8069 "Windows Registry to find out how disks/partitions are mapped to drive "
8070 "letters, and returns a hash table as in the example below:"
8071 msgstr ""
8072
8073 #. type: verbatim
8074 #: ../fish/guestfish-actions.pod:1828 ../src/guestfs-actions.pod:2712
8075 #, no-wrap
8076 msgid ""
8077 " C      =>     /dev/vda2\n"
8078 " E      =>     /dev/vdb1\n"
8079 " F      =>     /dev/vdc1\n"
8080 "\n"
8081 msgstr ""
8082
8083 #. type: textblock
8084 #: ../fish/guestfish-actions.pod:1832 ../src/guestfs-actions.pod:2716
8085 msgid ""
8086 "Note that keys are drive letters.  For Windows, the key is case insensitive "
8087 "and just contains the drive letter, without the customary colon separator "
8088 "character."
8089 msgstr ""
8090
8091 #. type: textblock
8092 #: ../fish/guestfish-actions.pod:1836 ../src/guestfs-actions.pod:2720
8093 msgid ""
8094 "In future we may support other operating systems that also used drive "
8095 "letters, but the keys for those might not be case insensitive and might be "
8096 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
8097 "C<h1> etc."
8098 msgstr ""
8099
8100 #. type: textblock
8101 #: ../fish/guestfish-actions.pod:1841 ../src/guestfs-actions.pod:2725
8102 msgid ""
8103 "For Windows guests, currently only hard drive mappings are returned.  "
8104 "Removable disks (eg. DVD-ROMs) are ignored."
8105 msgstr ""
8106
8107 #. type: textblock
8108 #: ../fish/guestfish-actions.pod:1844 ../src/guestfs-actions.pod:2728
8109 msgid ""
8110 "For guests that do not use drive mappings, or if the drive mappings could "
8111 "not be determined, this returns an empty hash table."
8112 msgstr ""
8113
8114 #. type: textblock
8115 #: ../fish/guestfish-actions.pod:1847
8116 msgid ""
8117 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8118 "get-mountpoints>, L</inspect-get-filesystems>."
8119 msgstr ""
8120
8121 #. type: =head2
8122 #: ../fish/guestfish-actions.pod:1851
8123 msgid "inspect-get-filesystems"
8124 msgstr ""
8125
8126 #. type: verbatim
8127 #: ../fish/guestfish-actions.pod:1853
8128 #, no-wrap
8129 msgid ""
8130 " inspect-get-filesystems root\n"
8131 "\n"
8132 msgstr ""
8133
8134 #. type: textblock
8135 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2749
8136 msgid ""
8137 "This returns a list of all the filesystems that we think are associated with "
8138 "this operating system.  This includes the root filesystem, other ordinary "
8139 "filesystems, and non-mounted devices like swap partitions."
8140 msgstr ""
8141
8142 #. type: textblock
8143 #: ../fish/guestfish-actions.pod:1860 ../src/guestfs-actions.pod:2754
8144 msgid ""
8145 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8146 "to be shared between operating systems."
8147 msgstr ""
8148
8149 #. type: textblock
8150 #: ../fish/guestfish-actions.pod:1863
8151 msgid ""
8152 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8153 "get-mountpoints>."
8154 msgstr ""
8155
8156 #. type: =head2
8157 #: ../fish/guestfish-actions.pod:1866
8158 msgid "inspect-get-format"
8159 msgstr ""
8160
8161 #. type: verbatim
8162 #: ../fish/guestfish-actions.pod:1868
8163 #, no-wrap
8164 msgid ""
8165 " inspect-get-format root\n"
8166 "\n"
8167 msgstr ""
8168
8169 #. type: textblock
8170 #: ../fish/guestfish-actions.pod:1870 ../src/guestfs-actions.pod:2772
8171 msgid ""
8172 "This returns the format of the inspected operating system.  You can use it "
8173 "to detect install images, live CDs and similar."
8174 msgstr ""
8175
8176 #. type: textblock
8177 #: ../fish/guestfish-actions.pod:1873 ../src/guestfs-actions.pod:2775
8178 msgid "Currently defined formats are:"
8179 msgstr ""
8180
8181 #. type: =item
8182 #: ../fish/guestfish-actions.pod:1877 ../src/guestfs-actions.pod:2779
8183 msgid "\"installed\""
8184 msgstr ""
8185
8186 #. type: textblock
8187 #: ../fish/guestfish-actions.pod:1879 ../src/guestfs-actions.pod:2781
8188 msgid "This is an installed operating system."
8189 msgstr ""
8190
8191 #. type: =item
8192 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2783
8193 msgid "\"installer\""
8194 msgstr ""
8195
8196 #. type: textblock
8197 #: ../fish/guestfish-actions.pod:1883 ../src/guestfs-actions.pod:2785
8198 msgid ""
8199 "The disk image being inspected is not an installed operating system, but a "
8200 "I<bootable> install disk, live CD, or similar."
8201 msgstr ""
8202
8203 #. type: textblock
8204 #: ../fish/guestfish-actions.pod:1888 ../src/guestfs-actions.pod:2790
8205 msgid "The format of this disk image is not known."
8206 msgstr ""
8207
8208 #. type: =head2
8209 #: ../fish/guestfish-actions.pod:1897
8210 msgid "inspect-get-hostname"
8211 msgstr ""
8212
8213 #. type: verbatim
8214 #: ../fish/guestfish-actions.pod:1899
8215 #, no-wrap
8216 msgid ""
8217 " inspect-get-hostname root\n"
8218 "\n"
8219 msgstr ""
8220
8221 #. type: textblock
8222 #: ../fish/guestfish-actions.pod:1901 ../src/guestfs-actions.pod:2810
8223 msgid ""
8224 "This function returns the hostname of the operating system as found by "
8225 "inspection of the guest's configuration files."
8226 msgstr ""
8227
8228 #. type: textblock
8229 #: ../fish/guestfish-actions.pod:1904 ../src/guestfs-actions.pod:2813
8230 msgid ""
8231 "If the hostname could not be determined, then the string C<unknown> is "
8232 "returned."
8233 msgstr ""
8234
8235 #. type: =head2
8236 #: ../fish/guestfish-actions.pod:1909
8237 msgid "inspect-get-icon"
8238 msgstr ""
8239
8240 #. type: verbatim
8241 #: ../fish/guestfish-actions.pod:1911
8242 #, no-wrap
8243 msgid ""
8244 " inspect-get-icon root [favicon:..] [highquality:..]\n"
8245 "\n"
8246 msgstr ""
8247
8248 #. type: textblock
8249 #: ../fish/guestfish-actions.pod:1913 ../src/guestfs-actions.pod:2839
8250 msgid ""
8251 "This function returns an icon corresponding to the inspected operating "
8252 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
8253 "to PNG if necessary)."
8254 msgstr ""
8255
8256 #. type: textblock
8257 #: ../fish/guestfish-actions.pod:1917 ../src/guestfs-actions.pod:2843
8258 msgid ""
8259 "If it was not possible to get an icon this function returns a zero-length "
8260 "(non-NULL) buffer.  I<Callers must check for this case>."
8261 msgstr ""
8262
8263 #. type: textblock
8264 #: ../fish/guestfish-actions.pod:1920 ../src/guestfs-actions.pod:2846
8265 msgid ""
8266 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
8267 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
8268 "this file will be returned.  You can disable favicons by passing the "
8269 "optional C<favicon> boolean as false (default is true)."
8270 msgstr ""
8271
8272 #. type: textblock
8273 #: ../fish/guestfish-actions.pod:1926 ../src/guestfs-actions.pod:2852
8274 msgid ""
8275 "If finding the favicon fails, then we look in other places in the guest for "
8276 "a suitable icon."
8277 msgstr ""
8278
8279 #. type: textblock
8280 #: ../fish/guestfish-actions.pod:1929 ../src/guestfs-actions.pod:2855
8281 msgid ""
8282 "If the optional C<highquality> boolean is true then only high quality icons "
8283 "are returned, which means only icons of high resolution with an alpha "
8284 "channel.  The default (false) is to return any icon we can, even if it is of "
8285 "substandard quality."
8286 msgstr ""
8287
8288 #. type: textblock
8289 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2866
8290 msgid ""
8291 "Unlike most other inspection API calls, the guest's disks must be mounted up "
8292 "before you call this, since it needs to read information from the guest "
8293 "filesystem during the call."
8294 msgstr ""
8295
8296 #. type: textblock
8297 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:2872
8298 msgid ""
8299 "B<Security:> The icon data comes from the untrusted guest, and should be "
8300 "treated with caution.  PNG files have been known to contain exploits.  "
8301 "Ensure that libpng (or other relevant libraries) are fully up to date before "
8302 "trying to process or display the icon."
8303 msgstr ""
8304
8305 #. type: textblock
8306 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:2880
8307 msgid ""
8308 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
8309 "tries to return the largest, highest quality icon available.  The "
8310 "application must scale the icon to the required size."
8311 msgstr ""
8312
8313 #. type: textblock
8314 #: ../fish/guestfish-actions.pod:1961 ../src/guestfs-actions.pod:2887
8315 msgid ""
8316 "Extracting icons from Windows guests requires the external C<wrestool> "
8317 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
8318 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
8319 "installed separately."
8320 msgstr ""
8321
8322 #. type: textblock
8323 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2894
8324 msgid ""
8325 "Operating system icons are usually trademarks.  Seek legal advice before "
8326 "using trademarks in applications."
8327 msgstr ""
8328
8329 #. type: =head2
8330 #: ../fish/guestfish-actions.pod:1975
8331 msgid "inspect-get-major-version"
8332 msgstr ""
8333
8334 #. type: verbatim
8335 #: ../fish/guestfish-actions.pod:1977
8336 #, no-wrap
8337 msgid ""
8338 " inspect-get-major-version root\n"
8339 "\n"
8340 msgstr ""
8341
8342 #. type: textblock
8343 #: ../fish/guestfish-actions.pod:1979 ../src/guestfs-actions.pod:2935
8344 msgid ""
8345 "This returns the major version number of the inspected operating system."
8346 msgstr ""
8347
8348 #. type: textblock
8349 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:2938
8350 msgid ""
8351 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8352 "popular public names used by the operating system.  Notably the operating "
8353 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8354 "1).  You can find out the real versions corresponding to releases of Windows "
8355 "by consulting Wikipedia or MSDN."
8356 msgstr ""
8357
8358 #. type: textblock
8359 #: ../fish/guestfish-actions.pod:1989 ../fish/guestfish-actions.pod:2000
8360 #: ../src/guestfs-actions.pod:2945 ../src/guestfs-actions.pod:2962
8361 msgid "If the version could not be determined, then C<0> is returned."
8362 msgstr ""
8363
8364 #. type: =head2
8365 #: ../fish/guestfish-actions.pod:1993
8366 msgid "inspect-get-minor-version"
8367 msgstr ""
8368
8369 #. type: verbatim
8370 #: ../fish/guestfish-actions.pod:1995
8371 #, no-wrap
8372 msgid ""
8373 " inspect-get-minor-version root\n"
8374 "\n"
8375 msgstr ""
8376
8377 #. type: textblock
8378 #: ../fish/guestfish-actions.pod:1997 ../src/guestfs-actions.pod:2959
8379 msgid ""
8380 "This returns the minor version number of the inspected operating system."
8381 msgstr ""
8382
8383 #. type: textblock
8384 #: ../fish/guestfish-actions.pod:2002
8385 msgid ""
8386 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8387 "get-major-version>."
8388 msgstr ""
8389
8390 #. type: =head2
8391 #: ../fish/guestfish-actions.pod:2005
8392 msgid "inspect-get-mountpoints"
8393 msgstr ""
8394
8395 #. type: verbatim
8396 #: ../fish/guestfish-actions.pod:2007
8397 #, no-wrap
8398 msgid ""
8399 " inspect-get-mountpoints root\n"
8400 "\n"
8401 msgstr ""
8402
8403 #. type: textblock
8404 #: ../fish/guestfish-actions.pod:2009 ../src/guestfs-actions.pod:2977
8405 msgid ""
8406 "This returns a hash of where we think the filesystems associated with this "
8407 "operating system should be mounted.  Callers should note that this is at "
8408 "best an educated guess made by reading configuration files such as C</etc/"
8409 "fstab>.  I<In particular note> that this may return filesystems which are "
8410 "non-existent or not mountable and callers should be prepared to handle or "
8411 "ignore failures if they try to mount them."
8412 msgstr ""
8413
8414 #. type: textblock
8415 #: ../fish/guestfish-actions.pod:2018 ../src/guestfs-actions.pod:2986
8416 msgid ""
8417 "Each element in the returned hashtable has a key which is the path of the "
8418 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8419 "mounted there (eg. C</dev/sda1>)."
8420 msgstr ""
8421
8422 #. type: textblock
8423 #: ../fish/guestfish-actions.pod:2023 ../src/guestfs-actions.pod:2991
8424 msgid ""
8425 "Non-mounted devices such as swap devices are I<not> returned in this list."
8426 msgstr ""
8427
8428 #. type: textblock
8429 #: ../fish/guestfish-actions.pod:2026
8430 msgid ""
8431 "For operating systems like Windows which still use drive letters, this call "
8432 "will only return an entry for the first drive \"mounted on\" C</>.  For "
8433 "information about the mapping of drive letters to partitions, see L</inspect-"
8434 "get-drive-mappings>."
8435 msgstr ""
8436
8437 #. type: textblock
8438 #: ../fish/guestfish-actions.pod:2032
8439 msgid ""
8440 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8441 "get-filesystems>."
8442 msgstr ""
8443
8444 #. type: =head2
8445 #: ../fish/guestfish-actions.pod:2035
8446 msgid "inspect-get-package-format"
8447 msgstr ""
8448
8449 #. type: verbatim
8450 #: ../fish/guestfish-actions.pod:2037
8451 #, no-wrap
8452 msgid ""
8453 " inspect-get-package-format root\n"
8454 "\n"
8455 msgstr ""
8456
8457 #. type: textblock
8458 #: ../fish/guestfish-actions.pod:2039
8459 msgid ""
8460 "This function and L</inspect-get-package-management> return the package "
8461 "format and package management tool used by the inspected operating system.  "
8462 "For example for Fedora these functions would return C<rpm> (package format) "
8463 "and C<yum> (package management)."
8464 msgstr ""
8465
8466 #. type: textblock
8467 #: ../fish/guestfish-actions.pod:2045 ../src/guestfs-actions.pod:3023
8468 msgid ""
8469 "This returns the string C<unknown> if we could not determine the package "
8470 "format I<or> if the operating system does not have a real packaging system "
8471 "(eg. Windows)."
8472 msgstr ""
8473
8474 #. type: textblock
8475 #: ../fish/guestfish-actions.pod:2049 ../src/guestfs-actions.pod:3027
8476 msgid ""
8477 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
8478 "Future versions of libguestfs may return other strings."
8479 msgstr ""
8480
8481 #. type: =head2
8482 #: ../fish/guestfish-actions.pod:2054
8483 msgid "inspect-get-package-management"
8484 msgstr ""
8485
8486 #. type: verbatim
8487 #: ../fish/guestfish-actions.pod:2056
8488 #, no-wrap
8489 msgid ""
8490 " inspect-get-package-management root\n"
8491 "\n"
8492 msgstr ""
8493
8494 #. type: textblock
8495 #: ../fish/guestfish-actions.pod:2058
8496 msgid ""
8497 "L</inspect-get-package-format> and this function return the package format "
8498 "and package management tool used by the inspected operating system.  For "
8499 "example for Fedora these functions would return C<rpm> (package format) and "
8500 "C<yum> (package management)."
8501 msgstr ""
8502
8503 #. type: textblock
8504 #: ../fish/guestfish-actions.pod:2064 ../src/guestfs-actions.pod:3049
8505 msgid ""
8506 "This returns the string C<unknown> if we could not determine the package "
8507 "management tool I<or> if the operating system does not have a real packaging "
8508 "system (eg. Windows)."
8509 msgstr ""
8510
8511 #. type: textblock
8512 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3053
8513 msgid ""
8514 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
8515 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
8516 "libguestfs may return other strings."
8517 msgstr ""
8518
8519 #. type: =head2
8520 #: ../fish/guestfish-actions.pod:2075
8521 msgid "inspect-get-product-name"
8522 msgstr ""
8523
8524 #. type: verbatim
8525 #: ../fish/guestfish-actions.pod:2077
8526 #, no-wrap
8527 msgid ""
8528 " inspect-get-product-name root\n"
8529 "\n"
8530 msgstr ""
8531
8532 #. type: textblock
8533 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3071
8534 msgid ""
8535 "This returns the product name of the inspected operating system.  The "
8536 "product name is generally some freeform string which can be displayed to the "
8537 "user, but should not be parsed by programs."
8538 msgstr ""
8539
8540 #. type: textblock
8541 #: ../fish/guestfish-actions.pod:2084 ../src/guestfs-actions.pod:3076
8542 msgid ""
8543 "If the product name could not be determined, then the string C<unknown> is "
8544 "returned."
8545 msgstr ""
8546
8547 #. type: =head2
8548 #: ../fish/guestfish-actions.pod:2089
8549 msgid "inspect-get-product-variant"
8550 msgstr ""
8551
8552 #. type: verbatim
8553 #: ../fish/guestfish-actions.pod:2091
8554 #, no-wrap
8555 msgid ""
8556 " inspect-get-product-variant root\n"
8557 "\n"
8558 msgstr ""
8559
8560 #. type: textblock
8561 #: ../fish/guestfish-actions.pod:2093 ../src/guestfs-actions.pod:3092
8562 msgid "This returns the product variant of the inspected operating system."
8563 msgstr ""
8564
8565 #. type: textblock
8566 #: ../fish/guestfish-actions.pod:2096 ../src/guestfs-actions.pod:3095
8567 msgid ""
8568 "For Windows guests, this returns the contents of the Registry key C<HKLM"
8569 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
8570 "is usually a string such as C<Client> or C<Server> (other values are "
8571 "possible).  This can be used to distinguish consumer and enterprise versions "
8572 "of Windows that have the same version number (for example, Windows 7 and "
8573 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
8574 "the latter is C<Server>)."
8575 msgstr ""
8576
8577 #. type: textblock
8578 #: ../fish/guestfish-actions.pod:2105 ../src/guestfs-actions.pod:3104
8579 msgid ""
8580 "For enterprise Linux guests, in future we intend this to return the product "
8581 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
8582 "implemented at present."
8583 msgstr ""
8584
8585 #. type: textblock
8586 #: ../fish/guestfish-actions.pod:2109 ../src/guestfs-actions.pod:3108
8587 msgid ""
8588 "If the product variant could not be determined, then the string C<unknown> "
8589 "is returned."
8590 msgstr ""
8591
8592 #. type: textblock
8593 #: ../fish/guestfish-actions.pod:2112
8594 msgid ""
8595 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8596 "get-product-name>, L</inspect-get-major-version>."
8597 msgstr ""
8598
8599 #. type: =head2
8600 #: ../fish/guestfish-actions.pod:2116
8601 msgid "inspect-get-roots"
8602 msgstr ""
8603
8604 #. type: verbatim
8605 #: ../fish/guestfish-actions.pod:2118
8606 #, no-wrap
8607 msgid ""
8608 " inspect-get-roots\n"
8609 "\n"
8610 msgstr ""
8611
8612 #. type: textblock
8613 #: ../fish/guestfish-actions.pod:2120
8614 msgid ""
8615 "This function is a convenient way to get the list of root devices, as "
8616 "returned from a previous call to L</inspect-os>, but without redoing the "
8617 "whole inspection process."
8618 msgstr ""
8619
8620 #. type: textblock
8621 #: ../fish/guestfish-actions.pod:2124
8622 msgid ""
8623 "This returns an empty list if either no root devices were found or the "
8624 "caller has not called L</inspect-os>."
8625 msgstr ""
8626
8627 #. type: =head2
8628 #: ../fish/guestfish-actions.pod:2129
8629 msgid "inspect-get-type"
8630 msgstr ""
8631
8632 #. type: verbatim
8633 #: ../fish/guestfish-actions.pod:2131
8634 #, no-wrap
8635 msgid ""
8636 " inspect-get-type root\n"
8637 "\n"
8638 msgstr ""
8639
8640 #. type: textblock
8641 #: ../fish/guestfish-actions.pod:2133 ../src/guestfs-actions.pod:3146
8642 msgid ""
8643 "This returns the type of the inspected operating system.  Currently defined "
8644 "types are:"
8645 msgstr ""
8646
8647 #. type: =item
8648 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3151
8649 msgid "\"linux\""
8650 msgstr ""
8651
8652 #. type: textblock
8653 #: ../fish/guestfish-actions.pod:2140 ../src/guestfs-actions.pod:3153
8654 msgid "Any Linux-based operating system."
8655 msgstr ""
8656
8657 #. type: textblock
8658 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3157
8659 msgid "Any Microsoft Windows operating system."
8660 msgstr ""
8661
8662 #. type: =item
8663 #: ../fish/guestfish-actions.pod:2146 ../src/guestfs-actions.pod:3159
8664 msgid "\"freebsd\""
8665 msgstr ""
8666
8667 #. type: textblock
8668 #: ../fish/guestfish-actions.pod:2148 ../src/guestfs-actions.pod:3161
8669 msgid "FreeBSD."
8670 msgstr ""
8671
8672 #. type: textblock
8673 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3165
8674 msgid "The operating system type could not be determined."
8675 msgstr ""
8676
8677 #. type: =head2
8678 #: ../fish/guestfish-actions.pod:2161
8679 msgid "inspect-get-windows-current-control-set"
8680 msgstr ""
8681
8682 #. type: verbatim
8683 #: ../fish/guestfish-actions.pod:2163
8684 #, no-wrap
8685 msgid ""
8686 " inspect-get-windows-current-control-set root\n"
8687 "\n"
8688 msgstr ""
8689
8690 #. type: textblock
8691 #: ../fish/guestfish-actions.pod:2165 ../src/guestfs-actions.pod:3185
8692 msgid ""
8693 "This returns the Windows CurrentControlSet of the inspected guest.  The "
8694 "CurrentControlSet is a registry key name such as C<ControlSet001>."
8695 msgstr ""
8696
8697 #. type: textblock
8698 #: ../fish/guestfish-actions.pod:2168 ../src/guestfs-actions.pod:3188
8699 msgid ""
8700 "This call assumes that the guest is Windows and that the Registry could be "
8701 "examined by inspection.  If this is not the case then an error is returned."
8702 msgstr ""
8703
8704 #. type: =head2
8705 #: ../fish/guestfish-actions.pod:2174
8706 msgid "inspect-get-windows-systemroot"
8707 msgstr ""
8708
8709 #. type: verbatim
8710 #: ../fish/guestfish-actions.pod:2176
8711 #, no-wrap
8712 msgid ""
8713 " inspect-get-windows-systemroot root\n"
8714 "\n"
8715 msgstr ""
8716
8717 #. type: textblock
8718 #: ../fish/guestfish-actions.pod:2178 ../src/guestfs-actions.pod:3205
8719 msgid ""
8720 "This returns the Windows systemroot of the inspected guest.  The systemroot "
8721 "is a directory path such as C</WINDOWS>."
8722 msgstr ""
8723
8724 #. type: textblock
8725 #: ../fish/guestfish-actions.pod:2181 ../src/guestfs-actions.pod:3208
8726 msgid ""
8727 "This call assumes that the guest is Windows and that the systemroot could be "
8728 "determined by inspection.  If this is not the case then an error is returned."
8729 msgstr ""
8730
8731 #. type: =head2
8732 #: ../fish/guestfish-actions.pod:2187
8733 msgid "inspect-is-live"
8734 msgstr ""
8735
8736 #. type: verbatim
8737 #: ../fish/guestfish-actions.pod:2189
8738 #, no-wrap
8739 msgid ""
8740 " inspect-is-live root\n"
8741 "\n"
8742 msgstr ""
8743
8744 #. type: textblock
8745 #: ../fish/guestfish-actions.pod:2191
8746 msgid ""
8747 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8748 "then this returns true if a live image was detected on the disk."
8749 msgstr ""
8750
8751 #. type: =head2
8752 #: ../fish/guestfish-actions.pod:2197
8753 msgid "inspect-is-multipart"
8754 msgstr ""
8755
8756 #. type: verbatim
8757 #: ../fish/guestfish-actions.pod:2199
8758 #, no-wrap
8759 msgid ""
8760 " inspect-is-multipart root\n"
8761 "\n"
8762 msgstr ""
8763
8764 #. type: textblock
8765 #: ../fish/guestfish-actions.pod:2201
8766 msgid ""
8767 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8768 "then this returns true if the disk is part of a set."
8769 msgstr ""
8770
8771 #. type: =head2
8772 #: ../fish/guestfish-actions.pod:2207
8773 msgid "inspect-is-netinst"
8774 msgstr ""
8775
8776 #. type: verbatim
8777 #: ../fish/guestfish-actions.pod:2209
8778 #, no-wrap
8779 msgid ""
8780 " inspect-is-netinst root\n"
8781 "\n"
8782 msgstr ""
8783
8784 #. type: textblock
8785 #: ../fish/guestfish-actions.pod:2211
8786 msgid ""
8787 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8788 "then this returns true if the disk is a network installer, ie. not a self-"
8789 "contained install CD but one which is likely to require network access to "
8790 "complete the install."
8791 msgstr ""
8792
8793 #. type: =head2
8794 #: ../fish/guestfish-actions.pod:2219
8795 msgid "inspect-list-applications"
8796 msgstr ""
8797
8798 #. type: verbatim
8799 #: ../fish/guestfish-actions.pod:2221
8800 #, no-wrap
8801 msgid ""
8802 " inspect-list-applications root\n"
8803 "\n"
8804 msgstr ""
8805
8806 #. type: textblock
8807 #: ../fish/guestfish-actions.pod:2223 ../src/guestfs-actions.pod:3275
8808 msgid "Return the list of applications installed in the operating system."
8809 msgstr ""
8810
8811 #. type: textblock
8812 #: ../fish/guestfish-actions.pod:2225
8813 msgid ""
8814 "I<Note:> This call works differently from other parts of the inspection "
8815 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
8816 "then mount up the disks, before calling this.  Listing applications is a "
8817 "significantly more difficult operation which requires access to the full "
8818 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
8819 "are just returning data cached in the libguestfs handle, this call actually "
8820 "reads parts of the mounted filesystems during the call."
8821 msgstr ""
8822
8823 #. type: textblock
8824 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:3287
8825 msgid ""
8826 "This returns an empty list if the inspection code was not able to determine "
8827 "the list of applications."
8828 msgstr ""
8829
8830 #. type: textblock
8831 #: ../fish/guestfish-actions.pod:2238 ../src/guestfs-actions.pod:3290
8832 msgid "The application structure contains the following fields:"
8833 msgstr ""
8834
8835 #. type: =item
8836 #: ../fish/guestfish-actions.pod:2242 ../src/guestfs-actions.pod:3294
8837 msgid "C<app_name>"
8838 msgstr ""
8839
8840 #. type: textblock
8841 #: ../fish/guestfish-actions.pod:2244 ../src/guestfs-actions.pod:3296
8842 msgid ""
8843 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
8844 "guests, this is the package name."
8845 msgstr ""
8846
8847 #. type: =item
8848 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3299
8849 msgid "C<app_display_name>"
8850 msgstr ""
8851
8852 #. type: textblock
8853 #: ../fish/guestfish-actions.pod:2249 ../src/guestfs-actions.pod:3301
8854 msgid ""
8855 "The display name of the application, sometimes localized to the install "
8856 "language of the guest operating system."
8857 msgstr ""
8858
8859 #. type: textblock
8860 #: ../fish/guestfish-actions.pod:2252 ../src/guestfs-actions.pod:3304
8861 msgid ""
8862 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
8863 "to display something can use C<app_name> instead."
8864 msgstr ""
8865
8866 #. type: =item
8867 #: ../fish/guestfish-actions.pod:2255 ../src/guestfs-actions.pod:3307
8868 msgid "C<app_epoch>"
8869 msgstr ""
8870
8871 #. type: textblock
8872 #: ../fish/guestfish-actions.pod:2257 ../src/guestfs-actions.pod:3309
8873 msgid ""
8874 "For package managers which use epochs, this contains the epoch of the "
8875 "package (an integer).  If unavailable, this is returned as C<0>."
8876 msgstr ""
8877
8878 #. type: =item
8879 #: ../fish/guestfish-actions.pod:2260 ../src/guestfs-actions.pod:3312
8880 msgid "C<app_version>"
8881 msgstr ""
8882
8883 #. type: textblock
8884 #: ../fish/guestfish-actions.pod:2262 ../src/guestfs-actions.pod:3314
8885 msgid ""
8886 "The version string of the application or package.  If unavailable this is "
8887 "returned as an empty string C<\"\">."
8888 msgstr ""
8889
8890 #. type: =item
8891 #: ../fish/guestfish-actions.pod:2265 ../src/guestfs-actions.pod:3317
8892 msgid "C<app_release>"
8893 msgstr ""
8894
8895 #. type: textblock
8896 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3319
8897 msgid ""
8898 "The release string of the application or package, for package managers that "
8899 "use this.  If unavailable this is returned as an empty string C<\"\">."
8900 msgstr ""
8901
8902 #. type: =item
8903 #: ../fish/guestfish-actions.pod:2271 ../src/guestfs-actions.pod:3323
8904 msgid "C<app_install_path>"
8905 msgstr ""
8906
8907 #. type: textblock
8908 #: ../fish/guestfish-actions.pod:2273 ../src/guestfs-actions.pod:3325
8909 msgid ""
8910 "The installation path of the application (on operating systems such as "
8911 "Windows which use installation paths).  This path is in the format used by "
8912 "the guest operating system, it is not a libguestfs path."
8913 msgstr ""
8914
8915 #. type: textblock
8916 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3330
8917 msgid "If unavailable this is returned as an empty string C<\"\">."
8918 msgstr ""
8919
8920 #. type: =item
8921 #: ../fish/guestfish-actions.pod:2280 ../src/guestfs-actions.pod:3332
8922 msgid "C<app_trans_path>"
8923 msgstr ""
8924
8925 #. type: textblock
8926 #: ../fish/guestfish-actions.pod:2282 ../src/guestfs-actions.pod:3334
8927 msgid ""
8928 "The install path translated into a libguestfs path.  If unavailable this is "
8929 "returned as an empty string C<\"\">."
8930 msgstr ""
8931
8932 #. type: =item
8933 #: ../fish/guestfish-actions.pod:2285 ../src/guestfs-actions.pod:3337
8934 msgid "C<app_publisher>"
8935 msgstr ""
8936
8937 #. type: textblock
8938 #: ../fish/guestfish-actions.pod:2287 ../src/guestfs-actions.pod:3339
8939 msgid ""
8940 "The name of the publisher of the application, for package managers that use "
8941 "this.  If unavailable this is returned as an empty string C<\"\">."
8942 msgstr ""
8943
8944 #. type: =item
8945 #: ../fish/guestfish-actions.pod:2291 ../src/guestfs-actions.pod:3343
8946 msgid "C<app_url>"
8947 msgstr ""
8948
8949 #. type: textblock
8950 #: ../fish/guestfish-actions.pod:2293 ../src/guestfs-actions.pod:3345
8951 msgid ""
8952 "The URL (eg. upstream URL) of the application.  If unavailable this is "
8953 "returned as an empty string C<\"\">."
8954 msgstr ""
8955
8956 #. type: =item
8957 #: ../fish/guestfish-actions.pod:2296 ../src/guestfs-actions.pod:3348
8958 msgid "C<app_source_package>"
8959 msgstr ""
8960
8961 #. type: textblock
8962 #: ../fish/guestfish-actions.pod:2298 ../src/guestfs-actions.pod:3350
8963 msgid ""
8964 "For packaging systems which support this, the name of the source package.  "
8965 "If unavailable this is returned as an empty string C<\"\">."
8966 msgstr ""
8967
8968 #. type: =item
8969 #: ../fish/guestfish-actions.pod:2301 ../src/guestfs-actions.pod:3353
8970 msgid "C<app_summary>"
8971 msgstr ""
8972
8973 #. type: textblock
8974 #: ../fish/guestfish-actions.pod:2303 ../src/guestfs-actions.pod:3355
8975 msgid ""
8976 "A short (usually one line) description of the application or package.  If "
8977 "unavailable this is returned as an empty string C<\"\">."
8978 msgstr ""
8979
8980 #. type: =item
8981 #: ../fish/guestfish-actions.pod:2306 ../src/guestfs-actions.pod:3358
8982 msgid "C<app_description>"
8983 msgstr ""
8984
8985 #. type: textblock
8986 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3360
8987 msgid ""
8988 "A longer description of the application or package.  If unavailable this is "
8989 "returned as an empty string C<\"\">."
8990 msgstr ""
8991
8992 #. type: =head2
8993 #: ../fish/guestfish-actions.pod:2315
8994 msgid "inspect-os"
8995 msgstr ""
8996
8997 #. type: verbatim
8998 #: ../fish/guestfish-actions.pod:2317
8999 #, no-wrap
9000 msgid ""
9001 " inspect-os\n"
9002 "\n"
9003 msgstr ""
9004
9005 #. type: textblock
9006 #: ../fish/guestfish-actions.pod:2319 ../src/guestfs-actions.pod:3378
9007 msgid ""
9008 "This function uses other libguestfs functions and certain heuristics to "
9009 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9010 "for operating systems."
9011 msgstr ""
9012
9013 #. type: textblock
9014 #: ../fish/guestfish-actions.pod:2323 ../src/guestfs-actions.pod:3382
9015 msgid "The list returned is empty if no operating systems were found."
9016 msgstr ""
9017
9018 #. type: textblock
9019 #: ../fish/guestfish-actions.pod:2325 ../src/guestfs-actions.pod:3384
9020 msgid ""
9021 "If one operating system was found, then this returns a list with a single "
9022 "element, which is the name of the root filesystem of this operating system.  "
9023 "It is also possible for this function to return a list containing more than "
9024 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9025 "element being the root filesystem of one of the operating systems."
9026 msgstr ""
9027
9028 #. type: textblock
9029 #: ../fish/guestfish-actions.pod:2332
9030 msgid ""
9031 "You can pass the root string(s) returned to other L</inspect-get-*> "
9032 "functions in order to query further information about each operating system, "
9033 "such as the name and version."
9034 msgstr ""
9035
9036 #. type: textblock
9037 #: ../fish/guestfish-actions.pod:2337
9038 msgid ""
9039 "This function uses other libguestfs features such as L</mount-ro> and L</"
9040 "umount-all> in order to mount and unmount filesystems and look at the "
9041 "contents.  This should be called with no disks currently mounted.  The "
9042 "function may also use Augeas, so any existing Augeas handle will be closed."
9043 msgstr ""
9044
9045 #. type: textblock
9046 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3402
9047 msgid ""
9048 "This function cannot decrypt encrypted disks.  The caller must do that first "
9049 "(supplying the necessary keys) if the disk is encrypted."
9050 msgstr ""
9051
9052 #. type: textblock
9053 #: ../fish/guestfish-actions.pod:2349 ../fish/guestfish-actions.pod:2547
9054 #: ../fish/guestfish-actions.pod:2606
9055 msgid "See also L</list-filesystems>."
9056 msgstr ""
9057
9058 #. type: =head2
9059 #: ../fish/guestfish-actions.pod:2351
9060 msgid "is-blockdev"
9061 msgstr ""
9062
9063 #. type: verbatim
9064 #: ../fish/guestfish-actions.pod:2353
9065 #, no-wrap
9066 msgid ""
9067 " is-blockdev path\n"
9068 "\n"
9069 msgstr ""
9070
9071 #. type: textblock
9072 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3422
9073 msgid ""
9074 "This returns C<true> if and only if there is a block device with the given "
9075 "C<path> name."
9076 msgstr ""
9077
9078 #. type: textblock
9079 #: ../fish/guestfish-actions.pod:2358 ../fish/guestfish-actions.pod:2376
9080 #: ../fish/guestfish-actions.pod:2395 ../fish/guestfish-actions.pod:2404
9081 #: ../fish/guestfish-actions.pod:2414 ../fish/guestfish-actions.pod:2448
9082 #: ../fish/guestfish-actions.pod:2457
9083 msgid "See also L</stat>."
9084 msgstr ""
9085
9086 #. type: =head2
9087 #: ../fish/guestfish-actions.pod:2360
9088 msgid "is-busy"
9089 msgstr ""
9090
9091 #. type: verbatim
9092 #: ../fish/guestfish-actions.pod:2362
9093 #, no-wrap
9094 msgid ""
9095 " is-busy\n"
9096 "\n"
9097 msgstr ""
9098
9099 #. type: textblock
9100 #: ../fish/guestfish-actions.pod:2364 ../src/guestfs-actions.pod:3436
9101 msgid ""
9102 "This returns true iff this handle is busy processing a command (in the "
9103 "C<BUSY> state)."
9104 msgstr ""
9105
9106 #. type: =head2
9107 #: ../fish/guestfish-actions.pod:2369
9108 msgid "is-chardev"
9109 msgstr ""
9110
9111 #. type: verbatim
9112 #: ../fish/guestfish-actions.pod:2371
9113 #, no-wrap
9114 msgid ""
9115 " is-chardev path\n"
9116 "\n"
9117 msgstr ""
9118
9119 #. type: textblock
9120 #: ../fish/guestfish-actions.pod:2373 ../src/guestfs-actions.pod:3451
9121 msgid ""
9122 "This returns C<true> if and only if there is a character device with the "
9123 "given C<path> name."
9124 msgstr ""
9125
9126 #. type: =head2
9127 #: ../fish/guestfish-actions.pod:2378
9128 msgid "is-config"
9129 msgstr ""
9130
9131 #. type: verbatim
9132 #: ../fish/guestfish-actions.pod:2380
9133 #, no-wrap
9134 msgid ""
9135 " is-config\n"
9136 "\n"
9137 msgstr ""
9138
9139 #. type: textblock
9140 #: ../fish/guestfish-actions.pod:2382 ../src/guestfs-actions.pod:3465
9141 msgid ""
9142 "This returns true iff this handle is being configured (in the C<CONFIG> "
9143 "state)."
9144 msgstr ""
9145
9146 #. type: =head2
9147 #: ../fish/guestfish-actions.pod:2387
9148 msgid "is-dir"
9149 msgstr ""
9150
9151 #. type: verbatim
9152 #: ../fish/guestfish-actions.pod:2389
9153 #, no-wrap
9154 msgid ""
9155 " is-dir path\n"
9156 "\n"
9157 msgstr ""
9158
9159 #. type: textblock
9160 #: ../fish/guestfish-actions.pod:2391 ../src/guestfs-actions.pod:3480
9161 msgid ""
9162 "This returns C<true> if and only if there is a directory with the given "
9163 "C<path> name.  Note that it returns false for other objects like files."
9164 msgstr ""
9165
9166 #. type: =head2
9167 #: ../fish/guestfish-actions.pod:2397
9168 msgid "is-fifo"
9169 msgstr ""
9170
9171 #. type: verbatim
9172 #: ../fish/guestfish-actions.pod:2399
9173 #, no-wrap
9174 msgid ""
9175 " is-fifo path\n"
9176 "\n"
9177 msgstr ""
9178
9179 #. type: textblock
9180 #: ../fish/guestfish-actions.pod:2401 ../src/guestfs-actions.pod:3496
9181 msgid ""
9182 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9183 "given C<path> name."
9184 msgstr ""
9185
9186 #. type: =head2
9187 #: ../fish/guestfish-actions.pod:2406
9188 msgid "is-file"
9189 msgstr ""
9190
9191 #. type: verbatim
9192 #: ../fish/guestfish-actions.pod:2408
9193 #, no-wrap
9194 msgid ""
9195 " is-file path\n"
9196 "\n"
9197 msgstr ""
9198
9199 #. type: textblock
9200 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3511
9201 msgid ""
9202 "This returns C<true> if and only if there is a regular file with the given "
9203 "C<path> name.  Note that it returns false for other objects like directories."
9204 msgstr ""
9205
9206 #. type: =head2
9207 #: ../fish/guestfish-actions.pod:2416
9208 msgid "is-launching"
9209 msgstr ""
9210
9211 #. type: verbatim
9212 #: ../fish/guestfish-actions.pod:2418
9213 #, no-wrap
9214 msgid ""
9215 " is-launching\n"
9216 "\n"
9217 msgstr ""
9218
9219 #. type: textblock
9220 #: ../fish/guestfish-actions.pod:2420 ../src/guestfs-actions.pod:3526
9221 msgid ""
9222 "This returns true iff this handle is launching the subprocess (in the "
9223 "C<LAUNCHING> state)."
9224 msgstr ""
9225
9226 #. type: =head2
9227 #: ../fish/guestfish-actions.pod:2425
9228 msgid "is-lv"
9229 msgstr ""
9230
9231 #. type: verbatim
9232 #: ../fish/guestfish-actions.pod:2427
9233 #, no-wrap
9234 msgid ""
9235 " is-lv device\n"
9236 "\n"
9237 msgstr ""
9238
9239 #. type: textblock
9240 #: ../fish/guestfish-actions.pod:2429 ../src/guestfs-actions.pod:3541
9241 msgid ""
9242 "This command tests whether C<device> is a logical volume, and returns true "
9243 "iff this is the case."
9244 msgstr ""
9245
9246 #. type: =head2
9247 #: ../fish/guestfish-actions.pod:2432
9248 msgid "is-ready"
9249 msgstr ""
9250
9251 #. type: verbatim
9252 #: ../fish/guestfish-actions.pod:2434
9253 #, no-wrap
9254 msgid ""
9255 " is-ready\n"
9256 "\n"
9257 msgstr ""
9258
9259 #. type: textblock
9260 #: ../fish/guestfish-actions.pod:2436 ../src/guestfs-actions.pod:3553
9261 msgid ""
9262 "This returns true iff this handle is ready to accept commands (in the "
9263 "C<READY> state)."
9264 msgstr ""
9265
9266 #. type: =head2
9267 #: ../fish/guestfish-actions.pod:2441
9268 msgid "is-socket"
9269 msgstr ""
9270
9271 #. type: verbatim
9272 #: ../fish/guestfish-actions.pod:2443
9273 #, no-wrap
9274 msgid ""
9275 " is-socket path\n"
9276 "\n"
9277 msgstr ""
9278
9279 #. type: textblock
9280 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3568
9281 msgid ""
9282 "This returns C<true> if and only if there is a Unix domain socket with the "
9283 "given C<path> name."
9284 msgstr ""
9285
9286 #. type: =head2
9287 #: ../fish/guestfish-actions.pod:2450
9288 msgid "is-symlink"
9289 msgstr ""
9290
9291 #. type: verbatim
9292 #: ../fish/guestfish-actions.pod:2452
9293 #, no-wrap
9294 msgid ""
9295 " is-symlink path\n"
9296 "\n"
9297 msgstr ""
9298
9299 #. type: textblock
9300 #: ../fish/guestfish-actions.pod:2454 ../src/guestfs-actions.pod:3583
9301 msgid ""
9302 "This returns C<true> if and only if there is a symbolic link with the given "
9303 "C<path> name."
9304 msgstr ""
9305
9306 #. type: =head2
9307 #: ../fish/guestfish-actions.pod:2459
9308 msgid "is-zero"
9309 msgstr ""
9310
9311 #. type: verbatim
9312 #: ../fish/guestfish-actions.pod:2461
9313 #, no-wrap
9314 msgid ""
9315 " is-zero path\n"
9316 "\n"
9317 msgstr ""
9318
9319 #. type: textblock
9320 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3598
9321 msgid ""
9322 "This returns true iff the file exists and the file is empty or it contains "
9323 "all zero bytes."
9324 msgstr ""
9325
9326 #. type: =head2
9327 #: ../fish/guestfish-actions.pod:2466
9328 msgid "is-zero-device"
9329 msgstr ""
9330
9331 #. type: verbatim
9332 #: ../fish/guestfish-actions.pod:2468
9333 #, no-wrap
9334 msgid ""
9335 " is-zero-device device\n"
9336 "\n"
9337 msgstr ""
9338
9339 #. type: textblock
9340 #: ../fish/guestfish-actions.pod:2470 ../src/guestfs-actions.pod:3611
9341 msgid "This returns true iff the device exists and contains all zero bytes."
9342 msgstr ""
9343
9344 #. type: textblock
9345 #: ../fish/guestfish-actions.pod:2472 ../src/guestfs-actions.pod:3613
9346 msgid "Note that for large devices this can take a long time to run."
9347 msgstr ""
9348
9349 #. type: =head2
9350 #: ../fish/guestfish-actions.pod:2474
9351 msgid "kill-subprocess"
9352 msgstr ""
9353
9354 #. type: verbatim
9355 #: ../fish/guestfish-actions.pod:2476
9356 #, no-wrap
9357 msgid ""
9358 " kill-subprocess\n"
9359 "\n"
9360 msgstr ""
9361
9362 #. type: textblock
9363 #: ../fish/guestfish-actions.pod:2478 ../src/guestfs-actions.pod:3624
9364 msgid "This kills the qemu subprocess.  You should never need to call this."
9365 msgstr ""
9366
9367 #. type: =head2
9368 #: ../fish/guestfish-actions.pod:2480
9369 msgid "launch"
9370 msgstr ""
9371
9372 #. type: =head2
9373 #: ../fish/guestfish-actions.pod:2482
9374 msgid "run"
9375 msgstr ""
9376
9377 #. type: verbatim
9378 #: ../fish/guestfish-actions.pod:2484
9379 #, no-wrap
9380 msgid ""
9381 " launch\n"
9382 "\n"
9383 msgstr ""
9384
9385 #. type: textblock
9386 #: ../fish/guestfish-actions.pod:2486 ../src/guestfs-actions.pod:3635
9387 msgid ""
9388 "Internally libguestfs is implemented by running a virtual machine using "
9389 "L<qemu(1)>."
9390 msgstr ""
9391
9392 #. type: textblock
9393 #: ../fish/guestfish-actions.pod:2489 ../src/guestfs-actions.pod:3638
9394 msgid ""
9395 "You should call this after configuring the handle (eg. adding drives) but "
9396 "before performing any actions."
9397 msgstr ""
9398
9399 #. type: =head2
9400 #: ../fish/guestfish-actions.pod:2492
9401 msgid "lchown"
9402 msgstr ""
9403
9404 #. type: verbatim
9405 #: ../fish/guestfish-actions.pod:2494
9406 #, no-wrap
9407 msgid ""
9408 " lchown owner group path\n"
9409 "\n"
9410 msgstr ""
9411
9412 #. type: textblock
9413 #: ../fish/guestfish-actions.pod:2496
9414 msgid ""
9415 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
9416 "chown> but if C<path> is a symlink then the link itself is changed, not the "
9417 "target."
9418 msgstr ""
9419
9420 #. type: =head2
9421 #: ../fish/guestfish-actions.pod:2504
9422 msgid "lgetxattr"
9423 msgstr ""
9424
9425 #. type: verbatim
9426 #: ../fish/guestfish-actions.pod:2506
9427 #, no-wrap
9428 msgid ""
9429 " lgetxattr path name\n"
9430 "\n"
9431 msgstr ""
9432
9433 #. type: textblock
9434 #: ../fish/guestfish-actions.pod:2508 ../src/guestfs-actions.pod:3678
9435 msgid ""
9436 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
9437 "is a symlink, then this call returns an extended attribute from the symlink."
9438 msgstr ""
9439
9440 #. type: textblock
9441 #: ../fish/guestfish-actions.pod:2522
9442 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
9443 msgstr ""
9444
9445 #. type: =head2
9446 #: ../fish/guestfish-actions.pod:2524
9447 msgid "lgetxattrs"
9448 msgstr ""
9449
9450 #. type: verbatim
9451 #: ../fish/guestfish-actions.pod:2526
9452 #, no-wrap
9453 msgid ""
9454 " lgetxattrs path\n"
9455 "\n"
9456 msgstr ""
9457
9458 #. type: textblock
9459 #: ../fish/guestfish-actions.pod:2528
9460 msgid ""
9461 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
9462 "it returns the extended attributes of the link itself."
9463 msgstr ""
9464
9465 #. type: =head2
9466 #: ../fish/guestfish-actions.pod:2532
9467 msgid "list-9p"
9468 msgstr ""
9469
9470 #. type: verbatim
9471 #: ../fish/guestfish-actions.pod:2534
9472 #, no-wrap
9473 msgid ""
9474 " list-9p\n"
9475 "\n"
9476 msgstr ""
9477
9478 #. type: textblock
9479 #: ../fish/guestfish-actions.pod:2536 ../src/guestfs-actions.pod:3721
9480 msgid ""
9481 "List all 9p filesystems attached to the guest.  A list of mount tags is "
9482 "returned."
9483 msgstr ""
9484
9485 #. type: =head2
9486 #: ../fish/guestfish-actions.pod:2539
9487 msgid "list-devices"
9488 msgstr ""
9489
9490 #. type: verbatim
9491 #: ../fish/guestfish-actions.pod:2541
9492 #, no-wrap
9493 msgid ""
9494 " list-devices\n"
9495 "\n"
9496 msgstr ""
9497
9498 #. type: textblock
9499 #: ../fish/guestfish-actions.pod:2543 ../src/guestfs-actions.pod:3735
9500 msgid "List all the block devices."
9501 msgstr ""
9502
9503 #. type: textblock
9504 #: ../fish/guestfish-actions.pod:2545 ../src/guestfs-actions.pod:3737
9505 msgid "The full block device names are returned, eg. C</dev/sda>."
9506 msgstr ""
9507
9508 #. type: =head2
9509 #: ../fish/guestfish-actions.pod:2549
9510 msgid "list-dm-devices"
9511 msgstr ""
9512
9513 #. type: verbatim
9514 #: ../fish/guestfish-actions.pod:2551
9515 #, no-wrap
9516 msgid ""
9517 " list-dm-devices\n"
9518 "\n"
9519 msgstr ""
9520
9521 #. type: textblock
9522 #: ../fish/guestfish-actions.pod:2553 ../src/guestfs-actions.pod:3752
9523 msgid "List all device mapper devices."
9524 msgstr ""
9525
9526 #. type: textblock
9527 #: ../fish/guestfish-actions.pod:2555
9528 msgid ""
9529 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
9530 "previous call to L</luks-open>."
9531 msgstr ""
9532
9533 #. type: textblock
9534 #: ../fish/guestfish-actions.pod:2558
9535 msgid ""
9536 "Device mapper devices which correspond to logical volumes are I<not> "
9537 "returned in this list.  Call L</lvs> if you want to list logical volumes."
9538 msgstr ""
9539
9540 #. type: =head2
9541 #: ../fish/guestfish-actions.pod:2562
9542 msgid "list-filesystems"
9543 msgstr ""
9544
9545 #. type: verbatim
9546 #: ../fish/guestfish-actions.pod:2564
9547 #, no-wrap
9548 msgid ""
9549 " list-filesystems\n"
9550 "\n"
9551 msgstr ""
9552
9553 #. type: textblock
9554 #: ../fish/guestfish-actions.pod:2566 ../src/guestfs-actions.pod:3772
9555 msgid ""
9556 "This inspection command looks for filesystems on partitions, block devices "
9557 "and logical volumes, returning a list of devices containing filesystems and "
9558 "their type."
9559 msgstr ""
9560
9561 #. type: textblock
9562 #: ../fish/guestfish-actions.pod:2570 ../src/guestfs-actions.pod:3776
9563 msgid ""
9564 "The return value is a hash, where the keys are the devices containing "
9565 "filesystems, and the values are the filesystem types.  For example:"
9566 msgstr ""
9567
9568 #. type: verbatim
9569 #: ../fish/guestfish-actions.pod:2574 ../src/guestfs-actions.pod:3780
9570 #, no-wrap
9571 msgid ""
9572 " \"/dev/sda1\" => \"ntfs\"\n"
9573 " \"/dev/sda2\" => \"ext2\"\n"
9574 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
9575 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
9576 "\n"
9577 msgstr ""
9578
9579 #. type: textblock
9580 #: ../fish/guestfish-actions.pod:2579 ../src/guestfs-actions.pod:3785
9581 msgid ""
9582 "The value can have the special value \"unknown\", meaning the content of the "
9583 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
9584 msgstr ""
9585
9586 #. type: textblock
9587 #: ../fish/guestfish-actions.pod:2583
9588 msgid ""
9589 "This command runs other libguestfs commands, which might include L</mount> "
9590 "and L</umount>, and therefore you should use this soon after launch and only "
9591 "when nothing is mounted."
9592 msgstr ""
9593
9594 #. type: textblock
9595 #: ../fish/guestfish-actions.pod:2587
9596 msgid ""
9597 "Not all of the filesystems returned will be mountable.  In particular, swap "
9598 "partitions are returned in the list.  Also this command does not check that "
9599 "each filesystem found is valid and mountable, and some filesystems might be "
9600 "mountable but require special options.  Filesystems may not all belong to a "
9601 "single logical operating system (use L</inspect-os> to look for OSes)."
9602 msgstr ""
9603
9604 #. type: =head2
9605 #: ../fish/guestfish-actions.pod:2595
9606 msgid "list-partitions"
9607 msgstr ""
9608
9609 #. type: verbatim
9610 #: ../fish/guestfish-actions.pod:2597
9611 #, no-wrap
9612 msgid ""
9613 " list-partitions\n"
9614 "\n"
9615 msgstr ""
9616
9617 #. type: textblock
9618 #: ../fish/guestfish-actions.pod:2599 ../src/guestfs-actions.pod:3814
9619 msgid "List all the partitions detected on all block devices."
9620 msgstr ""
9621
9622 #. type: textblock
9623 #: ../fish/guestfish-actions.pod:2601 ../src/guestfs-actions.pod:3816
9624 msgid "The full partition device names are returned, eg. C</dev/sda1>"
9625 msgstr ""
9626
9627 #. type: textblock
9628 #: ../fish/guestfish-actions.pod:2603
9629 msgid ""
9630 "This does not return logical volumes.  For that you will need to call L</"
9631 "lvs>."
9632 msgstr ""
9633
9634 #. type: =head2
9635 #: ../fish/guestfish-actions.pod:2608
9636 msgid "ll"
9637 msgstr ""
9638
9639 #. type: verbatim
9640 #: ../fish/guestfish-actions.pod:2610
9641 #, no-wrap
9642 msgid ""
9643 " ll directory\n"
9644 "\n"
9645 msgstr ""
9646
9647 #. type: textblock
9648 #: ../fish/guestfish-actions.pod:2612 ../src/guestfs-actions.pod:3835
9649 msgid ""
9650 "List the files in C<directory> (relative to the root directory, there is no "
9651 "cwd) in the format of 'ls -la'."
9652 msgstr ""
9653
9654 #. type: textblock
9655 #: ../fish/guestfish-actions.pod:2615 ../src/guestfs-actions.pod:3838
9656 msgid ""
9657 "This command is mostly useful for interactive sessions.  It is I<not> "
9658 "intended that you try to parse the output string."
9659 msgstr ""
9660
9661 #. type: =head2
9662 #: ../fish/guestfish-actions.pod:2618
9663 msgid "ln"
9664 msgstr ""
9665
9666 #. type: verbatim
9667 #: ../fish/guestfish-actions.pod:2620
9668 #, no-wrap
9669 msgid ""
9670 " ln target linkname\n"
9671 "\n"
9672 msgstr ""
9673
9674 #. type: textblock
9675 #: ../fish/guestfish-actions.pod:2622 ../src/guestfs-actions.pod:3853
9676 msgid "This command creates a hard link using the C<ln> command."
9677 msgstr ""
9678
9679 #. type: =head2
9680 #: ../fish/guestfish-actions.pod:2624
9681 msgid "ln-f"
9682 msgstr ""
9683
9684 #. type: verbatim
9685 #: ../fish/guestfish-actions.pod:2626
9686 #, no-wrap
9687 msgid ""
9688 " ln-f target linkname\n"
9689 "\n"
9690 msgstr ""
9691
9692 #. type: textblock
9693 #: ../fish/guestfish-actions.pod:2628 ../src/guestfs-actions.pod:3866
9694 msgid ""
9695 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
9696 "option removes the link (C<linkname>) if it exists already."
9697 msgstr ""
9698
9699 #. type: =head2
9700 #: ../fish/guestfish-actions.pod:2631
9701 msgid "ln-s"
9702 msgstr ""
9703
9704 #. type: verbatim
9705 #: ../fish/guestfish-actions.pod:2633
9706 #, no-wrap
9707 msgid ""
9708 " ln-s target linkname\n"
9709 "\n"
9710 msgstr ""
9711
9712 #. type: textblock
9713 #: ../fish/guestfish-actions.pod:2635 ../src/guestfs-actions.pod:3880
9714 msgid "This command creates a symbolic link using the C<ln -s> command."
9715 msgstr ""
9716
9717 #. type: =head2
9718 #: ../fish/guestfish-actions.pod:2637
9719 msgid "ln-sf"
9720 msgstr ""
9721
9722 #. type: verbatim
9723 #: ../fish/guestfish-actions.pod:2639
9724 #, no-wrap
9725 msgid ""
9726 " ln-sf target linkname\n"
9727 "\n"
9728 msgstr ""
9729
9730 #. type: textblock
9731 #: ../fish/guestfish-actions.pod:2641 ../src/guestfs-actions.pod:3893
9732 msgid ""
9733 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
9734 "option removes the link (C<linkname>) if it exists already."
9735 msgstr ""
9736
9737 #. type: =head2
9738 #: ../fish/guestfish-actions.pod:2644
9739 msgid "lremovexattr"
9740 msgstr ""
9741
9742 #. type: verbatim
9743 #: ../fish/guestfish-actions.pod:2646
9744 #, no-wrap
9745 msgid ""
9746 " lremovexattr xattr path\n"
9747 "\n"
9748 msgstr ""
9749
9750 #. type: textblock
9751 #: ../fish/guestfish-actions.pod:2648
9752 msgid ""
9753 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
9754 "it removes an extended attribute of the link itself."
9755 msgstr ""
9756
9757 #. type: =head2
9758 #: ../fish/guestfish-actions.pod:2652
9759 msgid "ls"
9760 msgstr ""
9761
9762 #. type: verbatim
9763 #: ../fish/guestfish-actions.pod:2654
9764 #, no-wrap
9765 msgid ""
9766 " ls directory\n"
9767 "\n"
9768 msgstr ""
9769
9770 #. type: textblock
9771 #: ../fish/guestfish-actions.pod:2656 ../src/guestfs-actions.pod:3921
9772 msgid ""
9773 "List the files in C<directory> (relative to the root directory, there is no "
9774 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
9775 msgstr ""
9776
9777 #. type: textblock
9778 #: ../fish/guestfish-actions.pod:2660
9779 msgid ""
9780 "This command is mostly useful for interactive sessions.  Programs should "
9781 "probably use L</readdir> instead."
9782 msgstr ""
9783
9784 #. type: =head2
9785 #: ../fish/guestfish-actions.pod:2663
9786 msgid "lsetxattr"
9787 msgstr ""
9788
9789 #. type: verbatim
9790 #: ../fish/guestfish-actions.pod:2665
9791 #, no-wrap
9792 msgid ""
9793 " lsetxattr xattr val vallen path\n"
9794 "\n"
9795 msgstr ""
9796
9797 #. type: textblock
9798 #: ../fish/guestfish-actions.pod:2667
9799 msgid ""
9800 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
9801 "sets an extended attribute of the link itself."
9802 msgstr ""
9803
9804 #. type: =head2
9805 #: ../fish/guestfish-actions.pod:2671
9806 msgid "lstat"
9807 msgstr ""
9808
9809 #. type: verbatim
9810 #: ../fish/guestfish-actions.pod:2673
9811 #, no-wrap
9812 msgid ""
9813 " lstat path\n"
9814 "\n"
9815 msgstr ""
9816
9817 #. type: textblock
9818 #: ../fish/guestfish-actions.pod:2675 ../fish/guestfish-actions.pod:4483
9819 #: ../src/guestfs-actions.pod:3957 ../src/guestfs-actions.pod:6736
9820 msgid "Returns file information for the given C<path>."
9821 msgstr ""
9822
9823 #. type: textblock
9824 #: ../fish/guestfish-actions.pod:2677
9825 msgid ""
9826 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
9827 "the link is stat-ed, not the file it refers to."
9828 msgstr ""
9829
9830 #. type: textblock
9831 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:3963
9832 msgid "This is the same as the C<lstat(2)> system call."
9833 msgstr ""
9834
9835 #. type: =head2
9836 #: ../fish/guestfish-actions.pod:2683
9837 msgid "lstatlist"
9838 msgstr ""
9839
9840 #. type: verbatim
9841 #: ../fish/guestfish-actions.pod:2685
9842 #, no-wrap
9843 msgid ""
9844 " lstatlist path 'names ...'\n"
9845 "\n"
9846 msgstr ""
9847
9848 #. type: textblock
9849 #: ../fish/guestfish-actions.pod:2687
9850 msgid ""
9851 "This call allows you to perform the L</lstat> operation on multiple files, "
9852 "where all files are in the directory C<path>.  C<names> is the list of files "
9853 "from this directory."
9854 msgstr ""
9855
9856 #. type: textblock
9857 #: ../fish/guestfish-actions.pod:2691 ../src/guestfs-actions.pod:3982
9858 msgid ""
9859 "On return you get a list of stat structs, with a one-to-one correspondence "
9860 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
9861 "then the C<ino> field of that structure is set to C<-1>."
9862 msgstr ""
9863
9864 #. type: textblock
9865 #: ../fish/guestfish-actions.pod:2696
9866 msgid ""
9867 "This call is intended for programs that want to efficiently list a directory "
9868 "contents without making many round-trips.  See also L</lxattrlist> for a "
9869 "similarly efficient call for getting extended attributes.  Very long "
9870 "directory listings might cause the protocol message size to be exceeded, "
9871 "causing this call to fail.  The caller must split up such requests into "
9872 "smaller groups of names."
9873 msgstr ""
9874
9875 #. type: =head2
9876 #: ../fish/guestfish-actions.pod:2704
9877 msgid "luks-add-key"
9878 msgstr ""
9879
9880 #. type: verbatim
9881 #: ../fish/guestfish-actions.pod:2706
9882 #, no-wrap
9883 msgid ""
9884 " luks-add-key device keyslot\n"
9885 "\n"
9886 msgstr ""
9887
9888 #. type: textblock
9889 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4010
9890 msgid ""
9891 "This command adds a new key on LUKS device C<device>.  C<key> is any "
9892 "existing key, and is used to access the device.  C<newkey> is the new key to "
9893 "add.  C<keyslot> is the key slot that will be replaced."
9894 msgstr ""
9895
9896 #. type: textblock
9897 #: ../fish/guestfish-actions.pod:2713
9898 msgid ""
9899 "Note that if C<keyslot> already contains a key, then this command will "
9900 "fail.  You have to use L</luks-kill-slot> first to remove that key."
9901 msgstr ""
9902
9903 #. type: textblock
9904 #: ../fish/guestfish-actions.pod:2717 ../fish/guestfish-actions.pod:2739
9905 #: ../fish/guestfish-actions.pod:2752 ../fish/guestfish-actions.pod:2766
9906 #: ../fish/guestfish-actions.pod:2792 ../fish/guestfish-actions.pod:2802
9907 msgid ""
9908 "This command has one or more key or passphrase parameters.  Guestfish will "
9909 "prompt for these separately."
9910 msgstr ""
9911
9912 #. type: =head2
9913 #: ../fish/guestfish-actions.pod:2720
9914 msgid "luks-close"
9915 msgstr ""
9916
9917 #. type: verbatim
9918 #: ../fish/guestfish-actions.pod:2722
9919 #, no-wrap
9920 msgid ""
9921 " luks-close device\n"
9922 "\n"
9923 msgstr ""
9924
9925 #. type: textblock
9926 #: ../fish/guestfish-actions.pod:2724
9927 msgid ""
9928 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
9929 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
9930 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
9931 "block device."
9932 msgstr ""
9933
9934 #. type: =head2
9935 #: ../fish/guestfish-actions.pod:2730
9936 msgid "luks-format"
9937 msgstr ""
9938
9939 #. type: verbatim
9940 #: ../fish/guestfish-actions.pod:2732
9941 #, no-wrap
9942 msgid ""
9943 " luks-format device keyslot\n"
9944 "\n"
9945 msgstr ""
9946
9947 #. type: textblock
9948 #: ../fish/guestfish-actions.pod:2734 ../src/guestfs-actions.pod:4051
9949 msgid ""
9950 "This command erases existing data on C<device> and formats the device as a "
9951 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
9952 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
9953 msgstr ""
9954
9955 #. type: textblock
9956 #: ../fish/guestfish-actions.pod:2742 ../fish/guestfish-actions.pod:2755
9957 #: ../fish/guestfish-actions.pod:2842 ../fish/guestfish-actions.pod:3503
9958 #: ../fish/guestfish-actions.pod:4029 ../fish/guestfish-actions.pod:4354
9959 #: ../fish/guestfish-actions.pod:4377 ../fish/guestfish-actions.pod:4399
9960 #: ../fish/guestfish-actions.pod:5137 ../src/guestfs-actions.pod:4058
9961 #: ../src/guestfs-actions.pod:4081 ../src/guestfs-actions.pod:4224
9962 #: ../src/guestfs-actions.pod:5327 ../src/guestfs-actions.pod:6115
9963 #: ../src/guestfs-actions.pod:6543 ../src/guestfs-actions.pod:6573
9964 #: ../src/guestfs-actions.pod:6606 ../src/guestfs-actions.pod:7804
9965 msgid ""
9966 "B<This command is dangerous.  Without careful use you can easily destroy all "
9967 "your data>."
9968 msgstr ""
9969
9970 #. type: =head2
9971 #: ../fish/guestfish-actions.pod:2745
9972 msgid "luks-format-cipher"
9973 msgstr ""
9974
9975 #. type: verbatim
9976 #: ../fish/guestfish-actions.pod:2747
9977 #, no-wrap
9978 msgid ""
9979 " luks-format-cipher device keyslot cipher\n"
9980 "\n"
9981 msgstr ""
9982
9983 #. type: textblock
9984 #: ../fish/guestfish-actions.pod:2749
9985 msgid ""
9986 "This command is the same as L</luks-format> but it also allows you to set "
9987 "the C<cipher> used."
9988 msgstr ""
9989
9990 #. type: =head2
9991 #: ../fish/guestfish-actions.pod:2758
9992 msgid "luks-kill-slot"
9993 msgstr ""
9994
9995 #. type: verbatim
9996 #: ../fish/guestfish-actions.pod:2760
9997 #, no-wrap
9998 msgid ""
9999 " luks-kill-slot device keyslot\n"
10000 "\n"
10001 msgstr ""
10002
10003 #. type: textblock
10004 #: ../fish/guestfish-actions.pod:2762 ../src/guestfs-actions.pod:4098
10005 msgid ""
10006 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10007 "device C<device>.  C<key> must be one of the I<other> keys."
10008 msgstr ""
10009
10010 #. type: =head2
10011 #: ../fish/guestfish-actions.pod:2769
10012 msgid "luks-open"
10013 msgstr ""
10014
10015 #. type: verbatim
10016 #: ../fish/guestfish-actions.pod:2771
10017 #, no-wrap
10018 msgid ""
10019 " luks-open device mapname\n"
10020 "\n"
10021 msgstr ""
10022
10023 #. type: textblock
10024 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4118
10025 msgid ""
10026 "This command opens a block device which has been encrypted according to the "
10027 "Linux Unified Key Setup (LUKS) standard."
10028 msgstr ""
10029
10030 #. type: textblock
10031 #: ../fish/guestfish-actions.pod:2776 ../src/guestfs-actions.pod:4121
10032 msgid "C<device> is the encrypted block device or partition."
10033 msgstr ""
10034
10035 #. type: textblock
10036 #: ../fish/guestfish-actions.pod:2778 ../src/guestfs-actions.pod:4123
10037 msgid ""
10038 "The caller must supply one of the keys associated with the LUKS block "
10039 "device, in the C<key> parameter."
10040 msgstr ""
10041
10042 #. type: textblock
10043 #: ../fish/guestfish-actions.pod:2781 ../src/guestfs-actions.pod:4126
10044 msgid ""
10045 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10046 "writes to this block device are decrypted from and encrypted to the "
10047 "underlying C<device> respectively."
10048 msgstr ""
10049
10050 #. type: textblock
10051 #: ../fish/guestfish-actions.pod:2785
10052 msgid ""
10053 "If this block device contains LVM volume groups, then calling L</vgscan> "
10054 "followed by L</vg-activate-all> will make them visible."
10055 msgstr ""
10056
10057 #. type: textblock
10058 #: ../fish/guestfish-actions.pod:2789
10059 msgid "Use L</list-dm-devices> to list all device mapper devices."
10060 msgstr ""
10061
10062 #. type: =head2
10063 #: ../fish/guestfish-actions.pod:2795
10064 msgid "luks-open-ro"
10065 msgstr ""
10066
10067 #. type: verbatim
10068 #: ../fish/guestfish-actions.pod:2797
10069 #, no-wrap
10070 msgid ""
10071 " luks-open-ro device mapname\n"
10072 "\n"
10073 msgstr ""
10074
10075 #. type: textblock
10076 #: ../fish/guestfish-actions.pod:2799
10077 msgid ""
10078 "This is the same as L</luks-open> except that a read-only mapping is created."
10079 msgstr ""
10080
10081 #. type: =head2
10082 #: ../fish/guestfish-actions.pod:2805
10083 msgid "lvcreate"
10084 msgstr ""
10085
10086 #. type: verbatim
10087 #: ../fish/guestfish-actions.pod:2807
10088 #, no-wrap
10089 msgid ""
10090 " lvcreate logvol volgroup mbytes\n"
10091 "\n"
10092 msgstr ""
10093
10094 #. type: textblock
10095 #: ../fish/guestfish-actions.pod:2809 ../src/guestfs-actions.pod:4172
10096 msgid ""
10097 "This creates an LVM logical volume called C<logvol> on the volume group "
10098 "C<volgroup>, with C<size> megabytes."
10099 msgstr ""
10100
10101 #. type: =head2
10102 #: ../fish/guestfish-actions.pod:2812
10103 msgid "lvm-canonical-lv-name"
10104 msgstr ""
10105
10106 #. type: verbatim
10107 #: ../fish/guestfish-actions.pod:2814
10108 #, no-wrap
10109 msgid ""
10110 " lvm-canonical-lv-name lvname\n"
10111 "\n"
10112 msgstr ""
10113
10114 #. type: textblock
10115 #: ../fish/guestfish-actions.pod:2816 ../src/guestfs-actions.pod:4185
10116 msgid ""
10117 "This converts alternative naming schemes for LVs that you might find to the "
10118 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10119 "LV>."
10120 msgstr ""
10121
10122 #. type: textblock
10123 #: ../fish/guestfish-actions.pod:2820 ../src/guestfs-actions.pod:4189
10124 msgid ""
10125 "This command returns an error if the C<lvname> parameter does not refer to a "
10126 "logical volume."
10127 msgstr ""
10128
10129 #. type: textblock
10130 #: ../fish/guestfish-actions.pod:2823
10131 msgid "See also L</is-lv>."
10132 msgstr ""
10133
10134 #. type: =head2
10135 #: ../fish/guestfish-actions.pod:2825
10136 msgid "lvm-clear-filter"
10137 msgstr ""
10138
10139 #. type: verbatim
10140 #: ../fish/guestfish-actions.pod:2827
10141 #, no-wrap
10142 msgid ""
10143 " lvm-clear-filter\n"
10144 "\n"
10145 msgstr ""
10146
10147 #. type: textblock
10148 #: ../fish/guestfish-actions.pod:2829
10149 msgid ""
10150 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
10151 "block device."
10152 msgstr ""
10153
10154 #. type: textblock
10155 #: ../fish/guestfish-actions.pod:2832 ../fish/guestfish-actions.pod:2863
10156 #: ../src/guestfs-actions.pod:4207 ../src/guestfs-actions.pod:4249
10157 msgid ""
10158 "This command also clears the LVM cache and performs a volume group scan."
10159 msgstr ""
10160
10161 #. type: =head2
10162 #: ../fish/guestfish-actions.pod:2835
10163 msgid "lvm-remove-all"
10164 msgstr ""
10165
10166 #. type: verbatim
10167 #: ../fish/guestfish-actions.pod:2837
10168 #, no-wrap
10169 msgid ""
10170 " lvm-remove-all\n"
10171 "\n"
10172 msgstr ""
10173
10174 #. type: textblock
10175 #: ../fish/guestfish-actions.pod:2839 ../src/guestfs-actions.pod:4219
10176 msgid ""
10177 "This command removes all LVM logical volumes, volume groups and physical "
10178 "volumes."
10179 msgstr ""
10180
10181 #. type: =head2
10182 #: ../fish/guestfish-actions.pod:2845
10183 msgid "lvm-set-filter"
10184 msgstr ""
10185
10186 #. type: verbatim
10187 #: ../fish/guestfish-actions.pod:2847
10188 #, no-wrap
10189 msgid ""
10190 " lvm-set-filter 'devices ...'\n"
10191 "\n"
10192 msgstr ""
10193
10194 #. type: textblock
10195 #: ../fish/guestfish-actions.pod:2849 ../src/guestfs-actions.pod:4235
10196 msgid ""
10197 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10198 "block devices in the list C<devices>, and will ignore all other attached "
10199 "block devices."
10200 msgstr ""
10201
10202 #. type: textblock
10203 #: ../fish/guestfish-actions.pod:2853 ../src/guestfs-actions.pod:4239
10204 msgid ""
10205 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10206 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10207 "there are two types of duplication possible: either cloned PVs/VGs which "
10208 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10209 "same name.  In normal operation you cannot create this situation, but you "
10210 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10211 "inside the LVM metadata."
10212 msgstr ""
10213
10214 #. type: textblock
10215 #: ../fish/guestfish-actions.pod:2866 ../src/guestfs-actions.pod:4252
10216 msgid "You can filter whole block devices or individual partitions."
10217 msgstr ""
10218
10219 #. type: textblock
10220 #: ../fish/guestfish-actions.pod:2868 ../src/guestfs-actions.pod:4254
10221 msgid ""
10222 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10223 "filesystem), even if you are not filtering out that VG."
10224 msgstr ""
10225
10226 #. type: =head2
10227 #: ../fish/guestfish-actions.pod:2872
10228 msgid "lvremove"
10229 msgstr ""
10230
10231 #. type: verbatim
10232 #: ../fish/guestfish-actions.pod:2874
10233 #, no-wrap
10234 msgid ""
10235 " lvremove device\n"
10236 "\n"
10237 msgstr ""
10238
10239 #. type: textblock
10240 #: ../fish/guestfish-actions.pod:2876 ../src/guestfs-actions.pod:4268
10241 msgid ""
10242 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10243 "LV, such as C</dev/VG/LV>."
10244 msgstr ""
10245
10246 #. type: textblock
10247 #: ../fish/guestfish-actions.pod:2879 ../src/guestfs-actions.pod:4271
10248 msgid ""
10249 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10250 "dev/VG>."
10251 msgstr ""
10252
10253 #. type: =head2
10254 #: ../fish/guestfish-actions.pod:2882
10255 msgid "lvrename"
10256 msgstr ""
10257
10258 #. type: verbatim
10259 #: ../fish/guestfish-actions.pod:2884
10260 #, no-wrap
10261 msgid ""
10262 " lvrename logvol newlogvol\n"
10263 "\n"
10264 msgstr ""
10265
10266 #. type: textblock
10267 #: ../fish/guestfish-actions.pod:2886 ../src/guestfs-actions.pod:4285
10268 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10269 msgstr ""
10270
10271 #. type: =head2
10272 #: ../fish/guestfish-actions.pod:2888
10273 msgid "lvresize"
10274 msgstr ""
10275
10276 #. type: verbatim
10277 #: ../fish/guestfish-actions.pod:2890
10278 #, no-wrap
10279 msgid ""
10280 " lvresize device mbytes\n"
10281 "\n"
10282 msgstr ""
10283
10284 #. type: textblock
10285 #: ../fish/guestfish-actions.pod:2892 ../src/guestfs-actions.pod:4298
10286 msgid ""
10287 "This resizes (expands or shrinks) an existing LVM logical volume to "
10288 "C<mbytes>.  When reducing, data in the reduced part is lost."
10289 msgstr ""
10290
10291 #. type: =head2
10292 #: ../fish/guestfish-actions.pod:2896
10293 msgid "lvresize-free"
10294 msgstr ""
10295
10296 #. type: verbatim
10297 #: ../fish/guestfish-actions.pod:2898
10298 #, no-wrap
10299 msgid ""
10300 " lvresize-free lv percent\n"
10301 "\n"
10302 msgstr ""
10303
10304 #. type: textblock
10305 #: ../fish/guestfish-actions.pod:2900 ../src/guestfs-actions.pod:4313
10306 msgid ""
10307 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10308 "remaining free space in the volume group.  Commonly you would call this with "
10309 "pc = 100 which expands the logical volume as much as possible, using all "
10310 "remaining free space in the volume group."
10311 msgstr ""
10312
10313 #. type: =head2
10314 #: ../fish/guestfish-actions.pod:2906
10315 msgid "lvs"
10316 msgstr ""
10317
10318 #. type: verbatim
10319 #: ../fish/guestfish-actions.pod:2908
10320 #, no-wrap
10321 msgid ""
10322 " lvs\n"
10323 "\n"
10324 msgstr ""
10325
10326 #. type: textblock
10327 #: ../fish/guestfish-actions.pod:2910 ../src/guestfs-actions.pod:4328
10328 msgid ""
10329 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10330 "(8)> command."
10331 msgstr ""
10332
10333 #. type: textblock
10334 #: ../fish/guestfish-actions.pod:2913 ../src/guestfs-actions.pod:4331
10335 msgid ""
10336 "This returns a list of the logical volume device names (eg. C</dev/"
10337 "VolGroup00/LogVol00>)."
10338 msgstr ""
10339
10340 #. type: textblock
10341 #: ../fish/guestfish-actions.pod:2916
10342 msgid "See also L</lvs-full>, L</list-filesystems>."
10343 msgstr ""
10344
10345 #. type: =head2
10346 #: ../fish/guestfish-actions.pod:2918
10347 msgid "lvs-full"
10348 msgstr ""
10349
10350 #. type: verbatim
10351 #: ../fish/guestfish-actions.pod:2920
10352 #, no-wrap
10353 msgid ""
10354 " lvs-full\n"
10355 "\n"
10356 msgstr ""
10357
10358 #. type: textblock
10359 #: ../fish/guestfish-actions.pod:2922 ../src/guestfs-actions.pod:4347
10360 msgid ""
10361 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10362 "(8)> command.  The \"full\" version includes all fields."
10363 msgstr ""
10364
10365 #. type: =head2
10366 #: ../fish/guestfish-actions.pod:2925
10367 msgid "lvuuid"
10368 msgstr ""
10369
10370 #. type: verbatim
10371 #: ../fish/guestfish-actions.pod:2927
10372 #, no-wrap
10373 msgid ""
10374 " lvuuid device\n"
10375 "\n"
10376 msgstr ""
10377
10378 #. type: textblock
10379 #: ../fish/guestfish-actions.pod:2929 ../src/guestfs-actions.pod:4362
10380 msgid "This command returns the UUID of the LVM LV C<device>."
10381 msgstr ""
10382
10383 #. type: =head2
10384 #: ../fish/guestfish-actions.pod:2931
10385 msgid "lxattrlist"
10386 msgstr ""
10387
10388 #. type: verbatim
10389 #: ../fish/guestfish-actions.pod:2933
10390 #, no-wrap
10391 msgid ""
10392 " lxattrlist path 'names ...'\n"
10393 "\n"
10394 msgstr ""
10395
10396 #. type: textblock
10397 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4376
10398 msgid ""
10399 "This call allows you to get the extended attributes of multiple files, where "
10400 "all files are in the directory C<path>.  C<names> is the list of files from "
10401 "this directory."
10402 msgstr ""
10403
10404 #. type: textblock
10405 #: ../fish/guestfish-actions.pod:2939 ../src/guestfs-actions.pod:4380
10406 msgid ""
10407 "On return you get a flat list of xattr structs which must be interpreted "
10408 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
10409 "C<attrval> in this struct is zero-length to indicate there was an error "
10410 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
10411 "number (the number of following attributes for this file, which could be C<"
10412 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
10413 "for the first named file.  This repeats for the second and subsequent files."
10414 msgstr ""
10415
10416 #. type: textblock
10417 #: ../fish/guestfish-actions.pod:2949
10418 msgid ""
10419 "This call is intended for programs that want to efficiently list a directory "
10420 "contents without making many round-trips.  See also L</lstatlist> for a "
10421 "similarly efficient call for getting standard stats.  Very long directory "
10422 "listings might cause the protocol message size to be exceeded, causing this "
10423 "call to fail.  The caller must split up such requests into smaller groups of "
10424 "names."
10425 msgstr ""
10426
10427 #. type: =head2
10428 #: ../fish/guestfish-actions.pod:2957
10429 msgid "mkdir"
10430 msgstr ""
10431
10432 #. type: verbatim
10433 #: ../fish/guestfish-actions.pod:2959
10434 #, no-wrap
10435 msgid ""
10436 " mkdir path\n"
10437 "\n"
10438 msgstr ""
10439
10440 #. type: textblock
10441 #: ../fish/guestfish-actions.pod:2961 ../src/guestfs-actions.pod:4410
10442 msgid "Create a directory named C<path>."
10443 msgstr ""
10444
10445 #. type: =head2
10446 #: ../fish/guestfish-actions.pod:2963
10447 msgid "mkdir-mode"
10448 msgstr ""
10449
10450 #. type: verbatim
10451 #: ../fish/guestfish-actions.pod:2965
10452 #, no-wrap
10453 msgid ""
10454 " mkdir-mode path mode\n"
10455 "\n"
10456 msgstr ""
10457
10458 #. type: textblock
10459 #: ../fish/guestfish-actions.pod:2967 ../src/guestfs-actions.pod:4423
10460 msgid ""
10461 "This command creates a directory, setting the initial permissions of the "
10462 "directory to C<mode>."
10463 msgstr ""
10464
10465 #. type: textblock
10466 #: ../fish/guestfish-actions.pod:2970 ../src/guestfs-actions.pod:4426
10467 msgid ""
10468 "For common Linux filesystems, the actual mode which is set will be C<mode & "
10469 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
10470 "other ways."
10471 msgstr ""
10472
10473 #. type: textblock
10474 #: ../fish/guestfish-actions.pod:2974
10475 msgid "See also L</mkdir>, L</umask>"
10476 msgstr ""
10477
10478 #. type: =head2
10479 #: ../fish/guestfish-actions.pod:2976
10480 msgid "mkdir-p"
10481 msgstr ""
10482
10483 #. type: verbatim
10484 #: ../fish/guestfish-actions.pod:2978
10485 #, no-wrap
10486 msgid ""
10487 " mkdir-p path\n"
10488 "\n"
10489 msgstr ""
10490
10491 #. type: textblock
10492 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4442
10493 msgid ""
10494 "Create a directory named C<path>, creating any parent directories as "
10495 "necessary.  This is like the C<mkdir -p> shell command."
10496 msgstr ""
10497
10498 #. type: =head2
10499 #: ../fish/guestfish-actions.pod:2983
10500 msgid "mkdtemp"
10501 msgstr ""
10502
10503 #. type: verbatim
10504 #: ../fish/guestfish-actions.pod:2985
10505 #, no-wrap
10506 msgid ""
10507 " mkdtemp template\n"
10508 "\n"
10509 msgstr ""
10510
10511 #. type: textblock
10512 #: ../fish/guestfish-actions.pod:2987 ../src/guestfs-actions.pod:4455
10513 msgid ""
10514 "This command creates a temporary directory.  The C<template> parameter "
10515 "should be a full pathname for the temporary directory name with the final "
10516 "six characters being \"XXXXXX\"."
10517 msgstr ""
10518
10519 #. type: textblock
10520 #: ../fish/guestfish-actions.pod:2992 ../src/guestfs-actions.pod:4460
10521 msgid ""
10522 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
10523 "being suitable for Windows filesystems."
10524 msgstr ""
10525
10526 #. type: textblock
10527 #: ../fish/guestfish-actions.pod:2995 ../src/guestfs-actions.pod:4463
10528 msgid "The name of the temporary directory that was created is returned."
10529 msgstr ""
10530
10531 #. type: textblock
10532 #: ../fish/guestfish-actions.pod:2998 ../src/guestfs-actions.pod:4466
10533 msgid "The temporary directory is created with mode 0700 and is owned by root."
10534 msgstr ""
10535
10536 #. type: textblock
10537 #: ../fish/guestfish-actions.pod:3001 ../src/guestfs-actions.pod:4469
10538 msgid ""
10539 "The caller is responsible for deleting the temporary directory and its "
10540 "contents after use."
10541 msgstr ""
10542
10543 #. type: textblock
10544 #: ../fish/guestfish-actions.pod:3004 ../src/guestfs-actions.pod:4472
10545 msgid "See also: L<mkdtemp(3)>"
10546 msgstr ""
10547
10548 #. type: =head2
10549 #: ../fish/guestfish-actions.pod:3006
10550 msgid "mke2fs-J"
10551 msgstr ""
10552
10553 #. type: verbatim
10554 #: ../fish/guestfish-actions.pod:3008
10555 #, no-wrap
10556 msgid ""
10557 " mke2fs-J fstype blocksize device journal\n"
10558 "\n"
10559 msgstr ""
10560
10561 #. type: textblock
10562 #: ../fish/guestfish-actions.pod:3010 ../src/guestfs-actions.pod:4488
10563 msgid ""
10564 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10565 "C<journal>.  It is equivalent to the command:"
10566 msgstr ""
10567
10568 #. type: verbatim
10569 #: ../fish/guestfish-actions.pod:3014 ../src/guestfs-actions.pod:4492
10570 #, no-wrap
10571 msgid ""
10572 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
10573 "\n"
10574 msgstr ""
10575
10576 #. type: textblock
10577 #: ../fish/guestfish-actions.pod:3016
10578 msgid "See also L</mke2journal>."
10579 msgstr ""
10580
10581 #. type: =head2
10582 #: ../fish/guestfish-actions.pod:3018
10583 msgid "mke2fs-JL"
10584 msgstr ""
10585
10586 #. type: verbatim
10587 #: ../fish/guestfish-actions.pod:3020
10588 #, no-wrap
10589 msgid ""
10590 " mke2fs-JL fstype blocksize device label\n"
10591 "\n"
10592 msgstr ""
10593
10594 #. type: textblock
10595 #: ../fish/guestfish-actions.pod:3022 ../src/guestfs-actions.pod:4509
10596 msgid ""
10597 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10598 "the journal labeled C<label>."
10599 msgstr ""
10600
10601 #. type: textblock
10602 #: ../fish/guestfish-actions.pod:3025
10603 msgid "See also L</mke2journal-L>."
10604 msgstr ""
10605
10606 #. type: =head2
10607 #: ../fish/guestfish-actions.pod:3027
10608 msgid "mke2fs-JU"
10609 msgstr ""
10610
10611 #. type: verbatim
10612 #: ../fish/guestfish-actions.pod:3029
10613 #, no-wrap
10614 msgid ""
10615 " mke2fs-JU fstype blocksize device uuid\n"
10616 "\n"
10617 msgstr ""
10618
10619 #. type: textblock
10620 #: ../fish/guestfish-actions.pod:3031 ../src/guestfs-actions.pod:4527
10621 msgid ""
10622 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10623 "the journal with UUID C<uuid>."
10624 msgstr ""
10625
10626 #. type: textblock
10627 #: ../fish/guestfish-actions.pod:3034
10628 msgid "See also L</mke2journal-U>."
10629 msgstr ""
10630
10631 #. type: =head2
10632 #: ../fish/guestfish-actions.pod:3036
10633 msgid "mke2journal"
10634 msgstr ""
10635
10636 #. type: verbatim
10637 #: ../fish/guestfish-actions.pod:3038
10638 #, no-wrap
10639 msgid ""
10640 " mke2journal blocksize device\n"
10641 "\n"
10642 msgstr ""
10643
10644 #. type: textblock
10645 #: ../fish/guestfish-actions.pod:3040 ../src/guestfs-actions.pod:4543
10646 msgid ""
10647 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
10648 "command:"
10649 msgstr ""
10650
10651 #. type: verbatim
10652 #: ../fish/guestfish-actions.pod:3043 ../src/guestfs-actions.pod:4546
10653 #, no-wrap
10654 msgid ""
10655 " mke2fs -O journal_dev -b blocksize device\n"
10656 "\n"
10657 msgstr ""
10658
10659 #. type: =head2
10660 #: ../fish/guestfish-actions.pod:3045
10661 msgid "mke2journal-L"
10662 msgstr ""
10663
10664 #. type: verbatim
10665 #: ../fish/guestfish-actions.pod:3047
10666 #, no-wrap
10667 msgid ""
10668 " mke2journal-L blocksize label device\n"
10669 "\n"
10670 msgstr ""
10671
10672 #. type: textblock
10673 #: ../fish/guestfish-actions.pod:3049 ../src/guestfs-actions.pod:4560
10674 msgid "This creates an ext2 external journal on C<device> with label C<label>."
10675 msgstr ""
10676
10677 #. type: =head2
10678 #: ../fish/guestfish-actions.pod:3051
10679 msgid "mke2journal-U"
10680 msgstr ""
10681
10682 #. type: verbatim
10683 #: ../fish/guestfish-actions.pod:3053
10684 #, no-wrap
10685 msgid ""
10686 " mke2journal-U blocksize uuid device\n"
10687 "\n"
10688 msgstr ""
10689
10690 #. type: textblock
10691 #: ../fish/guestfish-actions.pod:3055 ../src/guestfs-actions.pod:4574
10692 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
10693 msgstr ""
10694
10695 #. type: =head2
10696 #: ../fish/guestfish-actions.pod:3057
10697 msgid "mkfifo"
10698 msgstr ""
10699
10700 #. type: verbatim
10701 #: ../fish/guestfish-actions.pod:3059
10702 #, no-wrap
10703 msgid ""
10704 " mkfifo mode path\n"
10705 "\n"
10706 msgstr ""
10707
10708 #. type: textblock
10709 #: ../fish/guestfish-actions.pod:3061
10710 msgid ""
10711 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
10712 "is just a convenient wrapper around L</mknod>."
10713 msgstr ""
10714
10715 #. type: =head2
10716 #: ../fish/guestfish-actions.pod:3067
10717 msgid "mkfs"
10718 msgstr ""
10719
10720 #. type: verbatim
10721 #: ../fish/guestfish-actions.pod:3069
10722 #, no-wrap
10723 msgid ""
10724 " mkfs fstype device\n"
10725 "\n"
10726 msgstr ""
10727
10728 #. type: textblock
10729 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4604
10730 msgid ""
10731 "This creates a filesystem on C<device> (usually a partition or LVM logical "
10732 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
10733 msgstr ""
10734
10735 #. type: =head2
10736 #: ../fish/guestfish-actions.pod:3075
10737 msgid "mkfs-b"
10738 msgstr ""
10739
10740 #. type: verbatim
10741 #: ../fish/guestfish-actions.pod:3077
10742 #, no-wrap
10743 msgid ""
10744 " mkfs-b fstype blocksize device\n"
10745 "\n"
10746 msgstr ""
10747
10748 #. type: textblock
10749 #: ../fish/guestfish-actions.pod:3079
10750 msgid ""
10751 "This call is similar to L</mkfs>, but it allows you to control the block "
10752 "size of the resulting filesystem.  Supported block sizes depend on the "
10753 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
10754 msgstr ""
10755
10756 #. type: textblock
10757 #: ../fish/guestfish-actions.pod:3084 ../fish/guestfish-actions.pod:3111
10758 #: ../src/guestfs-actions.pod:4625 ../src/guestfs-actions.pod:4670
10759 msgid ""
10760 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
10761 "cluster size."
10762 msgstr ""
10763
10764 #. type: textblock
10765 #: ../fish/guestfish-actions.pod:3087
10766 msgid ""
10767 "This function is deprecated.  In new code, use the L</mkfs_opts> call "
10768 "instead."
10769 msgstr ""
10770
10771 #. type: =head2
10772 #: ../fish/guestfish-actions.pod:3094
10773 msgid "mkfs-opts"
10774 msgstr ""
10775
10776 #. type: verbatim
10777 #: ../fish/guestfish-actions.pod:3096
10778 #, no-wrap
10779 msgid ""
10780 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
10781 "\n"
10782 msgstr ""
10783
10784 #. type: textblock
10785 #: ../fish/guestfish-actions.pod:3098 ../src/guestfs-actions.pod:4657
10786 msgid ""
10787 "This function creates a filesystem on C<device>.  The filesystem type is "
10788 "C<fstype>, for example C<ext3>."
10789 msgstr ""
10790
10791 #. type: =item
10792 #: ../fish/guestfish-actions.pod:3105 ../src/guestfs-actions.pod:4664
10793 msgid "C<blocksize>"
10794 msgstr ""
10795
10796 #. type: textblock
10797 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4666
10798 msgid ""
10799 "The filesystem block size.  Supported block sizes depend on the filesystem "
10800 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
10801 "filesystems."
10802 msgstr ""
10803
10804 #. type: textblock
10805 #: ../fish/guestfish-actions.pod:3114 ../src/guestfs-actions.pod:4673
10806 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
10807 msgstr ""
10808
10809 #. type: =item
10810 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4675
10811 msgid "C<features>"
10812 msgstr ""
10813
10814 #. type: textblock
10815 #: ../fish/guestfish-actions.pod:3118 ../src/guestfs-actions.pod:4677
10816 msgid "This passes the I<-O> parameter to the external mkfs program."
10817 msgstr ""
10818
10819 #. type: textblock
10820 #: ../fish/guestfish-actions.pod:3120 ../src/guestfs-actions.pod:4679
10821 msgid ""
10822 "For certain filesystem types, this allows extra filesystem features to be "
10823 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
10824 msgstr ""
10825
10826 #. type: textblock
10827 #: ../fish/guestfish-actions.pod:3124 ../src/guestfs-actions.pod:4683
10828 msgid ""
10829 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
10830 "type."
10831 msgstr ""
10832
10833 #. type: =item
10834 #: ../fish/guestfish-actions.pod:3127 ../src/guestfs-actions.pod:4686
10835 msgid "C<inode>"
10836 msgstr ""
10837
10838 #. type: textblock
10839 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4688
10840 msgid ""
10841 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
10842 "sets the inode size (only for ext2/3/4 filesystems at present)."
10843 msgstr ""
10844
10845 #. type: =item
10846 #: ../fish/guestfish-actions.pod:3132 ../src/guestfs-actions.pod:4691
10847 msgid "C<sectorsize>"
10848 msgstr ""
10849
10850 #. type: textblock
10851 #: ../fish/guestfish-actions.pod:3134 ../src/guestfs-actions.pod:4693
10852 msgid ""
10853 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
10854 "sets sector size for ufs filesystem."
10855 msgstr ""
10856
10857 #. type: =head2
10858 #: ../fish/guestfish-actions.pod:3141
10859 msgid "mkmountpoint"
10860 msgstr ""
10861
10862 #. type: verbatim
10863 #: ../fish/guestfish-actions.pod:3143
10864 #, no-wrap
10865 msgid ""
10866 " mkmountpoint exemptpath\n"
10867 "\n"
10868 msgstr ""
10869
10870 #. type: textblock
10871 #: ../fish/guestfish-actions.pod:3145
10872 msgid ""
10873 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
10874 "to create extra mountpoints before mounting the first filesystem."
10875 msgstr ""
10876
10877 #. type: textblock
10878 #: ../fish/guestfish-actions.pod:3149 ../src/guestfs-actions.pod:4736
10879 msgid ""
10880 "These calls are I<only> necessary in some very limited circumstances, mainly "
10881 "the case where you want to mount a mix of unrelated and/or read-only "
10882 "filesystems together."
10883 msgstr ""
10884
10885 #. type: textblock
10886 #: ../fish/guestfish-actions.pod:3153 ../src/guestfs-actions.pod:4740
10887 msgid ""
10888 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
10889 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
10890 "inside that.  You can unpack this as follows in guestfish:"
10891 msgstr ""
10892
10893 #. type: verbatim
10894 #: ../fish/guestfish-actions.pod:3158 ../src/guestfs-actions.pod:4745
10895 #, no-wrap
10896 msgid ""
10897 " add-ro Fedora-11-i686-Live.iso\n"
10898 " run\n"
10899 " mkmountpoint /cd\n"
10900 " mkmountpoint /sqsh\n"
10901 " mkmountpoint /ext3fs\n"
10902 " mount /dev/sda /cd\n"
10903 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
10904 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
10905 "\n"
10906 msgstr ""
10907
10908 #. type: textblock
10909 #: ../fish/guestfish-actions.pod:3167 ../src/guestfs-actions.pod:4754
10910 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
10911 msgstr ""
10912
10913 #. type: textblock
10914 #: ../fish/guestfish-actions.pod:3169
10915 msgid ""
10916 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
10917 "unexpected errors if you try to mix these calls.  It is safest to manually "
10918 "unmount filesystems and remove mountpoints after use."
10919 msgstr ""
10920
10921 #. type: textblock
10922 #: ../fish/guestfish-actions.pod:3173
10923 msgid ""
10924 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
10925 "for this to work for manual mountpoints, you must ensure that the innermost "
10926 "mountpoints have the longest pathnames, as in the example code above."
10927 msgstr ""
10928
10929 #. type: textblock
10930 #: ../fish/guestfish-actions.pod:3178 ../src/guestfs-actions.pod:4765
10931 msgid ""
10932 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
10933 msgstr ""
10934
10935 #. type: textblock
10936 #: ../fish/guestfish-actions.pod:3180
10937 msgid ""
10938 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
10939 "L</umount-all> to be called when the handle is closed which can also trigger "
10940 "these issues."
10941 msgstr ""
10942
10943 #. type: =head2
10944 #: ../fish/guestfish-actions.pod:3184
10945 msgid "mknod"
10946 msgstr ""
10947
10948 #. type: verbatim
10949 #: ../fish/guestfish-actions.pod:3186
10950 #, no-wrap
10951 msgid ""
10952 " mknod mode devmajor devminor path\n"
10953 "\n"
10954 msgstr ""
10955
10956 #. type: textblock
10957 #: ../fish/guestfish-actions.pod:3188 ../src/guestfs-actions.pod:4784
10958 msgid ""
10959 "This call creates block or character special devices, or named pipes (FIFOs)."
10960 msgstr ""
10961
10962 #. type: textblock
10963 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4787
10964 msgid ""
10965 "The C<mode> parameter should be the mode, using the standard constants.  "
10966 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
10967 "used when creating block and character special devices."
10968 msgstr ""
10969
10970 #. type: textblock
10971 #: ../fish/guestfish-actions.pod:3196
10972 msgid ""
10973 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
10974 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
10975 "regular file).  These constants are available in the standard Linux header "
10976 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
10977 "wrappers around this command which bitwise OR in the appropriate constant "
10978 "for you."
10979 msgstr ""
10980
10981 #. type: =head2
10982 #: ../fish/guestfish-actions.pod:3206
10983 msgid "mknod-b"
10984 msgstr ""
10985
10986 #. type: verbatim
10987 #: ../fish/guestfish-actions.pod:3208
10988 #, no-wrap
10989 msgid ""
10990 " mknod-b mode devmajor devminor path\n"
10991 "\n"
10992 msgstr ""
10993
10994 #. type: textblock
10995 #: ../fish/guestfish-actions.pod:3210
10996 msgid ""
10997 "This call creates a block device node called C<path> with mode C<mode> and "
10998 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10999 "wrapper around L</mknod>."
11000 msgstr ""
11001
11002 #. type: =head2
11003 #: ../fish/guestfish-actions.pod:3216
11004 msgid "mknod-c"
11005 msgstr ""
11006
11007 #. type: verbatim
11008 #: ../fish/guestfish-actions.pod:3218
11009 #, no-wrap
11010 msgid ""
11011 " mknod-c mode devmajor devminor path\n"
11012 "\n"
11013 msgstr ""
11014
11015 #. type: textblock
11016 #: ../fish/guestfish-actions.pod:3220
11017 msgid ""
11018 "This call creates a char device node called C<path> with mode C<mode> and "
11019 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11020 "wrapper around L</mknod>."
11021 msgstr ""
11022
11023 #. type: =head2
11024 #: ../fish/guestfish-actions.pod:3226
11025 msgid "mkswap"
11026 msgstr ""
11027
11028 #. type: verbatim
11029 #: ../fish/guestfish-actions.pod:3228
11030 #, no-wrap
11031 msgid ""
11032 " mkswap device\n"
11033 "\n"
11034 msgstr ""
11035
11036 #. type: textblock
11037 #: ../fish/guestfish-actions.pod:3230 ../src/guestfs-actions.pod:4850
11038 msgid "Create a swap partition on C<device>."
11039 msgstr ""
11040
11041 #. type: =head2
11042 #: ../fish/guestfish-actions.pod:3232
11043 msgid "mkswap-L"
11044 msgstr ""
11045
11046 #. type: verbatim
11047 #: ../fish/guestfish-actions.pod:3234
11048 #, no-wrap
11049 msgid ""
11050 " mkswap-L label device\n"
11051 "\n"
11052 msgstr ""
11053
11054 #. type: textblock
11055 #: ../fish/guestfish-actions.pod:3236 ../src/guestfs-actions.pod:4863
11056 msgid "Create a swap partition on C<device> with label C<label>."
11057 msgstr ""
11058
11059 #. type: textblock
11060 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4865
11061 msgid ""
11062 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11063 "sda>), just to a partition.  This appears to be a limitation of the kernel "
11064 "or swap tools."
11065 msgstr ""
11066
11067 #. type: =head2
11068 #: ../fish/guestfish-actions.pod:3242
11069 msgid "mkswap-U"
11070 msgstr ""
11071
11072 #. type: verbatim
11073 #: ../fish/guestfish-actions.pod:3244
11074 #, no-wrap
11075 msgid ""
11076 " mkswap-U uuid device\n"
11077 "\n"
11078 msgstr ""
11079
11080 #. type: textblock
11081 #: ../fish/guestfish-actions.pod:3246 ../src/guestfs-actions.pod:4880
11082 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11083 msgstr ""
11084
11085 #. type: =head2
11086 #: ../fish/guestfish-actions.pod:3248
11087 msgid "mkswap-file"
11088 msgstr ""
11089
11090 #. type: verbatim
11091 #: ../fish/guestfish-actions.pod:3250
11092 #, no-wrap
11093 msgid ""
11094 " mkswap-file path\n"
11095 "\n"
11096 msgstr ""
11097
11098 #. type: textblock
11099 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:4892
11100 msgid "Create a swap file."
11101 msgstr ""
11102
11103 #. type: textblock
11104 #: ../fish/guestfish-actions.pod:3254
11105 msgid ""
11106 "This command just writes a swap file signature to an existing file.  To "
11107 "create the file itself, use something like L</fallocate>."
11108 msgstr ""
11109
11110 #. type: =head2
11111 #: ../fish/guestfish-actions.pod:3257
11112 msgid "modprobe"
11113 msgstr ""
11114
11115 #. type: verbatim
11116 #: ../fish/guestfish-actions.pod:3259
11117 #, no-wrap
11118 msgid ""
11119 " modprobe modulename\n"
11120 "\n"
11121 msgstr ""
11122
11123 #. type: textblock
11124 #: ../fish/guestfish-actions.pod:3261 ../src/guestfs-actions.pod:4907
11125 msgid "This loads a kernel module in the appliance."
11126 msgstr ""
11127
11128 #. type: textblock
11129 #: ../fish/guestfish-actions.pod:3263 ../src/guestfs-actions.pod:4909
11130 msgid ""
11131 "The kernel module must have been whitelisted when libguestfs was built (see "
11132 "C<appliance/kmod.whitelist.in> in the source)."
11133 msgstr ""
11134
11135 #. type: =head2
11136 #: ../fish/guestfish-actions.pod:3266
11137 msgid "mount"
11138 msgstr ""
11139
11140 #. type: verbatim
11141 #: ../fish/guestfish-actions.pod:3268
11142 #, no-wrap
11143 msgid ""
11144 " mount device mountpoint\n"
11145 "\n"
11146 msgstr ""
11147
11148 #. type: textblock
11149 #: ../fish/guestfish-actions.pod:3270 ../src/guestfs-actions.pod:4923
11150 msgid ""
11151 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11152 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11153 "those block devices contain partitions, they will have the usual names (eg. "
11154 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11155 msgstr ""
11156
11157 #. type: textblock
11158 #: ../fish/guestfish-actions.pod:3276 ../src/guestfs-actions.pod:4929
11159 msgid ""
11160 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11161 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11162 "mounted on directories which already exist."
11163 msgstr ""
11164
11165 #. type: textblock
11166 #: ../fish/guestfish-actions.pod:3281 ../src/guestfs-actions.pod:4934
11167 msgid ""
11168 "The mounted filesystem is writable, if we have sufficient permissions on the "
11169 "underlying device."
11170 msgstr ""
11171
11172 #. type: textblock
11173 #: ../fish/guestfish-actions.pod:3284
11174 msgid ""
11175 "B<Important note:> When you use this call, the filesystem options C<sync> "
11176 "and C<noatime> are set implicitly.  This was originally done because we "
11177 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11178 "very large negative performance impact and negligible effect on "
11179 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
11180 "code that needs performance, and instead use L</mount-options> (use an empty "
11181 "string for the first parameter if you don't want any options)."
11182 msgstr ""
11183
11184 #. type: textblock
11185 #: ../fish/guestfish-actions.pod:3294
11186 msgid ""
11187 "This function is deprecated.  In new code, use the L</mount_options> call "
11188 "instead."
11189 msgstr ""
11190
11191 #. type: =head2
11192 #: ../fish/guestfish-actions.pod:3301
11193 msgid "mount-9p"
11194 msgstr ""
11195
11196 #. type: verbatim
11197 #: ../fish/guestfish-actions.pod:3303
11198 #, no-wrap
11199 msgid ""
11200 " mount-9p mounttag mountpoint [options:..]\n"
11201 "\n"
11202 msgstr ""
11203
11204 #. type: textblock
11205 #: ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:4973
11206 msgid ""
11207 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
11208 "C<mountpoint>."
11209 msgstr ""
11210
11211 #. type: textblock
11212 #: ../fish/guestfish-actions.pod:3308 ../src/guestfs-actions.pod:4976
11213 msgid ""
11214 "If required, C<trans=virtio> will be automatically added to the options.  "
11215 "Any other options required can be passed in the optional C<options> "
11216 "parameter."
11217 msgstr ""
11218
11219 #. type: =head2
11220 #: ../fish/guestfish-actions.pod:3314
11221 msgid "mount-loop"
11222 msgstr ""
11223
11224 #. type: verbatim
11225 #: ../fish/guestfish-actions.pod:3316
11226 #, no-wrap
11227 msgid ""
11228 " mount-loop file mountpoint\n"
11229 "\n"
11230 msgstr ""
11231
11232 #. type: textblock
11233 #: ../fish/guestfish-actions.pod:3318 ../src/guestfs-actions.pod:5015
11234 msgid ""
11235 "This command lets you mount C<file> (a filesystem image in a file) on a "
11236 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11237 "mountpoint>."
11238 msgstr ""
11239
11240 #. type: =head2
11241 #: ../fish/guestfish-actions.pod:3322
11242 msgid "mount-options"
11243 msgstr ""
11244
11245 #. type: verbatim
11246 #: ../fish/guestfish-actions.pod:3324
11247 #, no-wrap
11248 msgid ""
11249 " mount-options options device mountpoint\n"
11250 "\n"
11251 msgstr ""
11252
11253 #. type: textblock
11254 #: ../fish/guestfish-actions.pod:3326
11255 msgid ""
11256 "This is the same as the L</mount> command, but it allows you to set the "
11257 "mount options as for the L<mount(8)> I<-o> flag."
11258 msgstr ""
11259
11260 #. type: textblock
11261 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5035
11262 msgid ""
11263 "If the C<options> parameter is an empty string, then no options are passed "
11264 "(all options default to whatever the filesystem uses)."
11265 msgstr ""
11266
11267 #. type: =head2
11268 #: ../fish/guestfish-actions.pod:3334
11269 msgid "mount-ro"
11270 msgstr ""
11271
11272 #. type: verbatim
11273 #: ../fish/guestfish-actions.pod:3336
11274 #, no-wrap
11275 msgid ""
11276 " mount-ro device mountpoint\n"
11277 "\n"
11278 msgstr ""
11279
11280 #. type: textblock
11281 #: ../fish/guestfish-actions.pod:3338
11282 msgid ""
11283 "This is the same as the L</mount> command, but it mounts the filesystem with "
11284 "the read-only (I<-o ro>) flag."
11285 msgstr ""
11286
11287 #. type: =head2
11288 #: ../fish/guestfish-actions.pod:3341
11289 msgid "mount-vfs"
11290 msgstr ""
11291
11292 #. type: verbatim
11293 #: ../fish/guestfish-actions.pod:3343
11294 #, no-wrap
11295 msgid ""
11296 " mount-vfs options vfstype device mountpoint\n"
11297 "\n"
11298 msgstr ""
11299
11300 #. type: textblock
11301 #: ../fish/guestfish-actions.pod:3345
11302 msgid ""
11303 "This is the same as the L</mount> command, but it allows you to set both the "
11304 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
11305 msgstr ""
11306
11307 #. type: =head2
11308 #: ../fish/guestfish-actions.pod:3349
11309 msgid "mountpoints"
11310 msgstr ""
11311
11312 #. type: verbatim
11313 #: ../fish/guestfish-actions.pod:3351
11314 #, no-wrap
11315 msgid ""
11316 " mountpoints\n"
11317 "\n"
11318 msgstr ""
11319
11320 #. type: textblock
11321 #: ../fish/guestfish-actions.pod:3353
11322 msgid ""
11323 "This call is similar to L</mounts>.  That call returns a list of devices.  "
11324 "This one returns a hash table (map) of device name to directory where the "
11325 "device is mounted."
11326 msgstr ""
11327
11328 #. type: =head2
11329 #: ../fish/guestfish-actions.pod:3357
11330 msgid "mounts"
11331 msgstr ""
11332
11333 #. type: verbatim
11334 #: ../fish/guestfish-actions.pod:3359
11335 #, no-wrap
11336 msgid ""
11337 " mounts\n"
11338 "\n"
11339 msgstr ""
11340
11341 #. type: textblock
11342 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5096
11343 msgid ""
11344 "This returns the list of currently mounted filesystems.  It returns the list "
11345 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
11346 msgstr ""
11347
11348 #. type: textblock
11349 #: ../fish/guestfish-actions.pod:3364 ../src/guestfs-actions.pod:5099
11350 msgid "Some internal mounts are not shown."
11351 msgstr ""
11352
11353 #. type: textblock
11354 #: ../fish/guestfish-actions.pod:3366
11355 msgid "See also: L</mountpoints>"
11356 msgstr ""
11357
11358 #. type: =head2
11359 #: ../fish/guestfish-actions.pod:3368
11360 msgid "mv"
11361 msgstr ""
11362
11363 #. type: verbatim
11364 #: ../fish/guestfish-actions.pod:3370
11365 #, no-wrap
11366 msgid ""
11367 " mv src dest\n"
11368 "\n"
11369 msgstr ""
11370
11371 #. type: textblock
11372 #: ../fish/guestfish-actions.pod:3372 ../src/guestfs-actions.pod:5116
11373 msgid ""
11374 "This moves a file from C<src> to C<dest> where C<dest> is either a "
11375 "destination filename or destination directory."
11376 msgstr ""
11377
11378 #. type: =head2
11379 #: ../fish/guestfish-actions.pod:3375
11380 msgid "ntfs-3g-probe"
11381 msgstr ""
11382
11383 #. type: verbatim
11384 #: ../fish/guestfish-actions.pod:3377
11385 #, no-wrap
11386 msgid ""
11387 " ntfs-3g-probe true|false device\n"
11388 "\n"
11389 msgstr ""
11390
11391 #. type: textblock
11392 #: ../fish/guestfish-actions.pod:3379 ../src/guestfs-actions.pod:5130
11393 msgid ""
11394 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
11395 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
11396 "write, and some cannot be mounted at all)."
11397 msgstr ""
11398
11399 #. type: textblock
11400 #: ../fish/guestfish-actions.pod:3383 ../src/guestfs-actions.pod:5134
11401 msgid ""
11402 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
11403 "can be mounted read-write.  Set it to false if you want to test if the "
11404 "volume can be mounted read-only."
11405 msgstr ""
11406
11407 #. type: textblock
11408 #: ../fish/guestfish-actions.pod:3387 ../src/guestfs-actions.pod:5138
11409 msgid ""
11410 "The return value is an integer which C<0> if the operation would succeed, or "
11411 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
11412 msgstr ""
11413
11414 #. type: =head2
11415 #: ../fish/guestfish-actions.pod:3391
11416 msgid "ntfsresize"
11417 msgstr ""
11418
11419 #. type: verbatim
11420 #: ../fish/guestfish-actions.pod:3393
11421 #, no-wrap
11422 msgid ""
11423 " ntfsresize device\n"
11424 "\n"
11425 msgstr ""
11426
11427 #. type: textblock
11428 #: ../fish/guestfish-actions.pod:3395 ../fish/guestfish-actions.pod:3419
11429 #: ../src/guestfs-actions.pod:5152 ../src/guestfs-actions.pod:5191
11430 msgid ""
11431 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
11432 "size of the underlying device."
11433 msgstr ""
11434
11435 #. type: textblock
11436 #: ../fish/guestfish-actions.pod:3398 ../src/guestfs-actions.pod:5155
11437 msgid ""
11438 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
11439 "consistency check (for safety).  You have to boot into Windows to perform "
11440 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
11441 "resize filesystems which have been marked in this way.  So in effect it is "
11442 "not possible to call ntfsresize multiple times on a single filesystem "
11443 "without booting into Windows between each resize."
11444 msgstr ""
11445
11446 #. type: textblock
11447 #: ../fish/guestfish-actions.pod:3406 ../fish/guestfish-actions.pod:3445
11448 #: ../src/guestfs-actions.pod:5163 ../src/guestfs-actions.pod:5217
11449 msgid "See also L<ntfsresize(8)>."
11450 msgstr ""
11451
11452 #. type: textblock
11453 #: ../fish/guestfish-actions.pod:3408 ../fish/guestfish-actions.pod:3456
11454 msgid ""
11455 "This function is deprecated.  In new code, use the L</ntfsresize_opts> call "
11456 "instead."
11457 msgstr ""
11458
11459 #. type: =head2
11460 #: ../fish/guestfish-actions.pod:3415
11461 msgid "ntfsresize-opts"
11462 msgstr ""
11463
11464 #. type: verbatim
11465 #: ../fish/guestfish-actions.pod:3417
11466 #, no-wrap
11467 msgid ""
11468 " ntfsresize-opts device [size:..] [force:..]\n"
11469 "\n"
11470 msgstr ""
11471
11472 #. type: textblock
11473 #: ../fish/guestfish-actions.pod:3428 ../src/guestfs-actions.pod:5200
11474 msgid ""
11475 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
11476 "resized to fit the container (eg. partition)."
11477 msgstr ""
11478
11479 #. type: =item
11480 #: ../fish/guestfish-actions.pod:3431 ../src/guestfs-actions.pod:5203
11481 msgid "C<force>"
11482 msgstr ""
11483
11484 #. type: textblock
11485 #: ../fish/guestfish-actions.pod:3433 ../src/guestfs-actions.pod:5205
11486 msgid ""
11487 "If this option is true, then force the resize of the filesystem even if the "
11488 "filesystem is marked as requiring a consistency check."
11489 msgstr ""
11490
11491 #. type: textblock
11492 #: ../fish/guestfish-actions.pod:3436
11493 msgid ""
11494 "After the resize operation, the filesystem is always marked as requiring a "
11495 "consistency check (for safety).  You have to boot into Windows to perform "
11496 "this check and clear this condition.  If you I<don't> set the C<force> "
11497 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
11498 "a single filesystem without booting into Windows between each resize."
11499 msgstr ""
11500
11501 #. type: =head2
11502 #: ../fish/guestfish-actions.pod:3449
11503 msgid "ntfsresize-size"
11504 msgstr ""
11505
11506 #. type: verbatim
11507 #: ../fish/guestfish-actions.pod:3451
11508 #, no-wrap
11509 msgid ""
11510 " ntfsresize-size device size\n"
11511 "\n"
11512 msgstr ""
11513
11514 #. type: textblock
11515 #: ../fish/guestfish-actions.pod:3453
11516 msgid ""
11517 "This command is the same as L</ntfsresize> except that it allows you to "
11518 "specify the new size (in bytes) explicitly."
11519 msgstr ""
11520
11521 #. type: =head2
11522 #: ../fish/guestfish-actions.pod:3463
11523 msgid "part-add"
11524 msgstr ""
11525
11526 #. type: verbatim
11527 #: ../fish/guestfish-actions.pod:3465
11528 #, no-wrap
11529 msgid ""
11530 " part-add device prlogex startsect endsect\n"
11531 "\n"
11532 msgstr ""
11533
11534 #. type: textblock
11535 #: ../fish/guestfish-actions.pod:3467
11536 msgid ""
11537 "This command adds a partition to C<device>.  If there is no partition table "
11538 "on the device, call L</part-init> first."
11539 msgstr ""
11540
11541 #. type: textblock
11542 #: ../fish/guestfish-actions.pod:3470 ../src/guestfs-actions.pod:5278
11543 msgid ""
11544 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
11545 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
11546 "C<logical>) and C<e> (or C<extended>) partition types."
11547 msgstr ""
11548
11549 #. type: textblock
11550 #: ../fish/guestfish-actions.pod:3475 ../src/guestfs-actions.pod:5283
11551 msgid ""
11552 "C<startsect> and C<endsect> are the start and end of the partition in "
11553 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
11554 "from the end of the disk (C<-1> is the last sector)."
11555 msgstr ""
11556
11557 #. type: textblock
11558 #: ../fish/guestfish-actions.pod:3479
11559 msgid ""
11560 "Creating a partition which covers the whole disk is not so easy.  Use L</"
11561 "part-disk> to do that."
11562 msgstr ""
11563
11564 #. type: =head2
11565 #: ../fish/guestfish-actions.pod:3482
11566 msgid "part-del"
11567 msgstr ""
11568
11569 #. type: verbatim
11570 #: ../fish/guestfish-actions.pod:3484
11571 #, no-wrap
11572 msgid ""
11573 " part-del device partnum\n"
11574 "\n"
11575 msgstr ""
11576
11577 #. type: textblock
11578 #: ../fish/guestfish-actions.pod:3486 ../src/guestfs-actions.pod:5301
11579 msgid "This command deletes the partition numbered C<partnum> on C<device>."
11580 msgstr ""
11581
11582 #. type: textblock
11583 #: ../fish/guestfish-actions.pod:3488 ../src/guestfs-actions.pod:5303
11584 msgid ""
11585 "Note that in the case of MBR partitioning, deleting an extended partition "
11586 "also deletes any logical partitions it contains."
11587 msgstr ""
11588
11589 #. type: =head2
11590 #: ../fish/guestfish-actions.pod:3492
11591 msgid "part-disk"
11592 msgstr ""
11593
11594 #. type: verbatim
11595 #: ../fish/guestfish-actions.pod:3494
11596 #, no-wrap
11597 msgid ""
11598 " part-disk device parttype\n"
11599 "\n"
11600 msgstr ""
11601
11602 #. type: textblock
11603 #: ../fish/guestfish-actions.pod:3496
11604 msgid ""
11605 "This command is simply a combination of L</part-init> followed by L</part-"
11606 "add> to create a single primary partition covering the whole disk."
11607 msgstr ""
11608
11609 #. type: textblock
11610 #: ../fish/guestfish-actions.pod:3500
11611 msgid ""
11612 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
11613 "possible values are described in L</part-init>."
11614 msgstr ""
11615
11616 #. type: =head2
11617 #: ../fish/guestfish-actions.pod:3506
11618 msgid "part-get-bootable"
11619 msgstr ""
11620
11621 #. type: verbatim
11622 #: ../fish/guestfish-actions.pod:3508
11623 #, no-wrap
11624 msgid ""
11625 " part-get-bootable device partnum\n"
11626 "\n"
11627 msgstr ""
11628
11629 #. type: textblock
11630 #: ../fish/guestfish-actions.pod:3510 ../src/guestfs-actions.pod:5339
11631 msgid ""
11632 "This command returns true if the partition C<partnum> on C<device> has the "
11633 "bootable flag set."
11634 msgstr ""
11635
11636 #. type: textblock
11637 #: ../fish/guestfish-actions.pod:3513
11638 msgid "See also L</part-set-bootable>."
11639 msgstr ""
11640
11641 #. type: =head2
11642 #: ../fish/guestfish-actions.pod:3515
11643 msgid "part-get-mbr-id"
11644 msgstr ""
11645
11646 #. type: verbatim
11647 #: ../fish/guestfish-actions.pod:3517
11648 #, no-wrap
11649 msgid ""
11650 " part-get-mbr-id device partnum\n"
11651 "\n"
11652 msgstr ""
11653
11654 #. type: textblock
11655 #: ../fish/guestfish-actions.pod:3519 ../src/guestfs-actions.pod:5355
11656 msgid ""
11657 "Returns the MBR type byte (also known as the ID byte) from the numbered "
11658 "partition C<partnum>."
11659 msgstr ""
11660
11661 #. type: textblock
11662 #: ../fish/guestfish-actions.pod:3522 ../fish/guestfish-actions.pod:3666
11663 msgid ""
11664 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
11665 "undefined results for other partition table types (see L</part-get-"
11666 "parttype>)."
11667 msgstr ""
11668
11669 #. type: =head2
11670 #: ../fish/guestfish-actions.pod:3526
11671 msgid "part-get-parttype"
11672 msgstr ""
11673
11674 #. type: verbatim
11675 #: ../fish/guestfish-actions.pod:3528
11676 #, no-wrap
11677 msgid ""
11678 " part-get-parttype device\n"
11679 "\n"
11680 msgstr ""
11681
11682 #. type: textblock
11683 #: ../fish/guestfish-actions.pod:3530 ../src/guestfs-actions.pod:5372
11684 msgid ""
11685 "This command examines the partition table on C<device> and returns the "
11686 "partition table type (format) being used."
11687 msgstr ""
11688
11689 #. type: textblock
11690 #: ../fish/guestfish-actions.pod:3533
11691 msgid ""
11692 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
11693 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
11694 "possible, although unusual.  See L</part-init> for a full list."
11695 msgstr ""
11696
11697 #. type: =head2
11698 #: ../fish/guestfish-actions.pod:3538
11699 msgid "part-init"
11700 msgstr ""
11701
11702 #. type: verbatim
11703 #: ../fish/guestfish-actions.pod:3540
11704 #, no-wrap
11705 msgid ""
11706 " part-init device parttype\n"
11707 "\n"
11708 msgstr ""
11709
11710 #. type: textblock
11711 #: ../fish/guestfish-actions.pod:3542 ../src/guestfs-actions.pod:5392
11712 msgid ""
11713 "This creates an empty partition table on C<device> of one of the partition "
11714 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
11715 "(for large disks)."
11716 msgstr ""
11717
11718 #. type: textblock
11719 #: ../fish/guestfish-actions.pod:3546
11720 msgid ""
11721 "Initially there are no partitions.  Following this, you should call L</part-"
11722 "add> for each partition required."
11723 msgstr ""
11724
11725 #. type: textblock
11726 #: ../fish/guestfish-actions.pod:3549 ../src/guestfs-actions.pod:5399
11727 msgid "Possible values for C<parttype> are:"
11728 msgstr ""
11729
11730 #. type: =item
11731 #: ../fish/guestfish-actions.pod:3553 ../src/guestfs-actions.pod:5403
11732 msgid "B<efi>"
11733 msgstr ""
11734
11735 #. type: =item
11736 #: ../fish/guestfish-actions.pod:3555 ../src/guestfs-actions.pod:5405
11737 msgid "B<gpt>"
11738 msgstr ""
11739
11740 #. type: textblock
11741 #: ../fish/guestfish-actions.pod:3557 ../src/guestfs-actions.pod:5407
11742 msgid "Intel EFI / GPT partition table."
11743 msgstr ""
11744
11745 #. type: textblock
11746 #: ../fish/guestfish-actions.pod:3559 ../src/guestfs-actions.pod:5409
11747 msgid ""
11748 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
11749 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
11750 "the C<mbr> format."
11751 msgstr ""
11752
11753 #. type: =item
11754 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5413
11755 msgid "B<mbr>"
11756 msgstr ""
11757
11758 #. type: =item
11759 #: ../fish/guestfish-actions.pod:3565 ../src/guestfs-actions.pod:5415
11760 msgid "B<msdos>"
11761 msgstr ""
11762
11763 #. type: textblock
11764 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5417
11765 msgid ""
11766 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
11767 "Windows.  This partition type will B<only> work for device sizes up to 2 "
11768 "TB.  For large disks we recommend using C<gpt>."
11769 msgstr ""
11770
11771 #. type: textblock
11772 #: ../fish/guestfish-actions.pod:3574 ../src/guestfs-actions.pod:5424
11773 msgid ""
11774 "Other partition table types that may work but are not supported include:"
11775 msgstr ""
11776
11777 #. type: =item
11778 #: ../fish/guestfish-actions.pod:3579 ../src/guestfs-actions.pod:5429
11779 msgid "B<aix>"
11780 msgstr ""
11781
11782 #. type: textblock
11783 #: ../fish/guestfish-actions.pod:3581 ../src/guestfs-actions.pod:5431
11784 msgid "AIX disk labels."
11785 msgstr ""
11786
11787 #. type: =item
11788 #: ../fish/guestfish-actions.pod:3583 ../src/guestfs-actions.pod:5433
11789 msgid "B<amiga>"
11790 msgstr ""
11791
11792 #. type: =item
11793 #: ../fish/guestfish-actions.pod:3585 ../src/guestfs-actions.pod:5435
11794 msgid "B<rdb>"
11795 msgstr ""
11796
11797 #. type: textblock
11798 #: ../fish/guestfish-actions.pod:3587 ../src/guestfs-actions.pod:5437
11799 msgid "Amiga \"Rigid Disk Block\" format."
11800 msgstr ""
11801
11802 #. type: =item
11803 #: ../fish/guestfish-actions.pod:3589 ../src/guestfs-actions.pod:5439
11804 msgid "B<bsd>"
11805 msgstr ""
11806
11807 #. type: textblock
11808 #: ../fish/guestfish-actions.pod:3591 ../src/guestfs-actions.pod:5441
11809 msgid "BSD disk labels."
11810 msgstr ""
11811
11812 #. type: =item
11813 #: ../fish/guestfish-actions.pod:3593 ../src/guestfs-actions.pod:5443
11814 msgid "B<dasd>"
11815 msgstr ""
11816
11817 #. type: textblock
11818 #: ../fish/guestfish-actions.pod:3595 ../src/guestfs-actions.pod:5445
11819 msgid "DASD, used on IBM mainframes."
11820 msgstr ""
11821
11822 #. type: =item
11823 #: ../fish/guestfish-actions.pod:3597 ../src/guestfs-actions.pod:5447
11824 msgid "B<dvh>"
11825 msgstr ""
11826
11827 #. type: textblock
11828 #: ../fish/guestfish-actions.pod:3599 ../src/guestfs-actions.pod:5449
11829 msgid "MIPS/SGI volumes."
11830 msgstr ""
11831
11832 #. type: =item
11833 #: ../fish/guestfish-actions.pod:3601 ../src/guestfs-actions.pod:5451
11834 msgid "B<mac>"
11835 msgstr ""
11836
11837 #. type: textblock
11838 #: ../fish/guestfish-actions.pod:3603 ../src/guestfs-actions.pod:5453
11839 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
11840 msgstr ""
11841
11842 #. type: =item
11843 #: ../fish/guestfish-actions.pod:3605 ../src/guestfs-actions.pod:5455
11844 msgid "B<pc98>"
11845 msgstr ""
11846
11847 #. type: textblock
11848 #: ../fish/guestfish-actions.pod:3607 ../src/guestfs-actions.pod:5457
11849 msgid "NEC PC-98 format, common in Japan apparently."
11850 msgstr ""
11851
11852 #. type: =item
11853 #: ../fish/guestfish-actions.pod:3609 ../src/guestfs-actions.pod:5459
11854 msgid "B<sun>"
11855 msgstr ""
11856
11857 #. type: textblock
11858 #: ../fish/guestfish-actions.pod:3611 ../src/guestfs-actions.pod:5461
11859 msgid "Sun disk labels."
11860 msgstr ""
11861
11862 #. type: =head2
11863 #: ../fish/guestfish-actions.pod:3615
11864 msgid "part-list"
11865 msgstr ""
11866
11867 #. type: verbatim
11868 #: ../fish/guestfish-actions.pod:3617
11869 #, no-wrap
11870 msgid ""
11871 " part-list device\n"
11872 "\n"
11873 msgstr ""
11874
11875 #. type: textblock
11876 #: ../fish/guestfish-actions.pod:3619 ../src/guestfs-actions.pod:5475
11877 msgid ""
11878 "This command parses the partition table on C<device> and returns the list of "
11879 "partitions found."
11880 msgstr ""
11881
11882 #. type: textblock
11883 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5478
11884 msgid "The fields in the returned structure are:"
11885 msgstr ""
11886
11887 #. type: =item
11888 #: ../fish/guestfish-actions.pod:3626 ../src/guestfs-actions.pod:5482
11889 msgid "B<part_num>"
11890 msgstr ""
11891
11892 #. type: textblock
11893 #: ../fish/guestfish-actions.pod:3628 ../src/guestfs-actions.pod:5484
11894 msgid "Partition number, counting from 1."
11895 msgstr ""
11896
11897 #. type: =item
11898 #: ../fish/guestfish-actions.pod:3630 ../src/guestfs-actions.pod:5486
11899 msgid "B<part_start>"
11900 msgstr ""
11901
11902 #. type: textblock
11903 #: ../fish/guestfish-actions.pod:3632
11904 msgid ""
11905 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
11906 "the device's sector size, see L</blockdev-getss>."
11907 msgstr ""
11908
11909 #. type: =item
11910 #: ../fish/guestfish-actions.pod:3635 ../src/guestfs-actions.pod:5491
11911 msgid "B<part_end>"
11912 msgstr ""
11913
11914 #. type: textblock
11915 #: ../fish/guestfish-actions.pod:3637 ../src/guestfs-actions.pod:5493
11916 msgid "End of the partition in bytes."
11917 msgstr ""
11918
11919 #. type: =item
11920 #: ../fish/guestfish-actions.pod:3639 ../src/guestfs-actions.pod:5495
11921 msgid "B<part_size>"
11922 msgstr ""
11923
11924 #. type: textblock
11925 #: ../fish/guestfish-actions.pod:3641 ../src/guestfs-actions.pod:5497
11926 msgid "Size of the partition in bytes."
11927 msgstr ""
11928
11929 #. type: =head2
11930 #: ../fish/guestfish-actions.pod:3645
11931 msgid "part-set-bootable"
11932 msgstr ""
11933
11934 #. type: verbatim
11935 #: ../fish/guestfish-actions.pod:3647
11936 #, no-wrap
11937 msgid ""
11938 " part-set-bootable device partnum true|false\n"
11939 "\n"
11940 msgstr ""
11941
11942 #. type: textblock
11943 #: ../fish/guestfish-actions.pod:3649 ../src/guestfs-actions.pod:5515
11944 msgid ""
11945 "This sets the bootable flag on partition numbered C<partnum> on device "
11946 "C<device>.  Note that partitions are numbered from 1."
11947 msgstr ""
11948
11949 #. type: textblock
11950 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5518
11951 msgid ""
11952 "The bootable flag is used by some operating systems (notably Windows) to "
11953 "determine which partition to boot from.  It is by no means universally "
11954 "recognized."
11955 msgstr ""
11956
11957 #. type: =head2
11958 #: ../fish/guestfish-actions.pod:3656
11959 msgid "part-set-mbr-id"
11960 msgstr ""
11961
11962 #. type: verbatim
11963 #: ../fish/guestfish-actions.pod:3658
11964 #, no-wrap
11965 msgid ""
11966 " part-set-mbr-id device partnum idbyte\n"
11967 "\n"
11968 msgstr ""
11969
11970 #. type: textblock
11971 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5534
11972 msgid ""
11973 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
11974 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
11975 "documentation are in fact hexadecimal numbers, but usually documented "
11976 "without any leading \"0x\" which might be confusing."
11977 msgstr ""
11978
11979 #. type: =head2
11980 #: ../fish/guestfish-actions.pod:3670
11981 msgid "part-set-name"
11982 msgstr ""
11983
11984 #. type: verbatim
11985 #: ../fish/guestfish-actions.pod:3672
11986 #, no-wrap
11987 msgid ""
11988 " part-set-name device partnum name\n"
11989 "\n"
11990 msgstr ""
11991
11992 #. type: textblock
11993 #: ../fish/guestfish-actions.pod:3674 ../src/guestfs-actions.pod:5556
11994 msgid ""
11995 "This sets the partition name on partition numbered C<partnum> on device "
11996 "C<device>.  Note that partitions are numbered from 1."
11997 msgstr ""
11998
11999 #. type: textblock
12000 #: ../fish/guestfish-actions.pod:3677 ../src/guestfs-actions.pod:5559
12001 msgid ""
12002 "The partition name can only be set on certain types of partition table.  "
12003 "This works on C<gpt> but not on C<mbr> partitions."
12004 msgstr ""
12005
12006 #. type: =head2
12007 #: ../fish/guestfish-actions.pod:3680
12008 msgid "part-to-dev"
12009 msgstr ""
12010
12011 #. type: verbatim
12012 #: ../fish/guestfish-actions.pod:3682
12013 #, no-wrap
12014 msgid ""
12015 " part-to-dev partition\n"
12016 "\n"
12017 msgstr ""
12018
12019 #. type: textblock
12020 #: ../fish/guestfish-actions.pod:3684 ../src/guestfs-actions.pod:5572
12021 msgid ""
12022 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12023 "partition number, returning the device name (eg. \"/dev/sdb\")."
12024 msgstr ""
12025
12026 #. type: textblock
12027 #: ../fish/guestfish-actions.pod:3688
12028 msgid ""
12029 "The named partition must exist, for example as a string returned from L</"
12030 "list-partitions>."
12031 msgstr ""
12032
12033 #. type: =head2
12034 #: ../fish/guestfish-actions.pod:3691
12035 msgid "ping-daemon"
12036 msgstr ""
12037
12038 #. type: verbatim
12039 #: ../fish/guestfish-actions.pod:3693
12040 #, no-wrap
12041 msgid ""
12042 " ping-daemon\n"
12043 "\n"
12044 msgstr ""
12045
12046 #. type: textblock
12047 #: ../fish/guestfish-actions.pod:3695 ../src/guestfs-actions.pod:5589
12048 msgid ""
12049 "This is a test probe into the guestfs daemon running inside the qemu "
12050 "subprocess.  Calling this function checks that the daemon responds to the "
12051 "ping message, without affecting the daemon or attached block device(s) in "
12052 "any other way."
12053 msgstr ""
12054
12055 #. type: =head2
12056 #: ../fish/guestfish-actions.pod:3700
12057 msgid "pread"
12058 msgstr ""
12059
12060 #. type: verbatim
12061 #: ../fish/guestfish-actions.pod:3702
12062 #, no-wrap
12063 msgid ""
12064 " pread path count offset\n"
12065 "\n"
12066 msgstr ""
12067
12068 #. type: textblock
12069 #: ../fish/guestfish-actions.pod:3704 ../src/guestfs-actions.pod:5607
12070 msgid ""
12071 "This command lets you read part of a file.  It reads C<count> bytes of the "
12072 "file, starting at C<offset>, from file C<path>."
12073 msgstr ""
12074
12075 #. type: textblock
12076 #: ../fish/guestfish-actions.pod:3707 ../fish/guestfish-actions.pod:3722
12077 #: ../src/guestfs-actions.pod:5610 ../src/guestfs-actions.pod:5636
12078 msgid ""
12079 "This may read fewer bytes than requested.  For further details see the "
12080 "L<pread(2)> system call."
12081 msgstr ""
12082
12083 #. type: textblock
12084 #: ../fish/guestfish-actions.pod:3710
12085 msgid "See also L</pwrite>, L</pread-device>."
12086 msgstr ""
12087
12088 #. type: =head2
12089 #: ../fish/guestfish-actions.pod:3715
12090 msgid "pread-device"
12091 msgstr ""
12092
12093 #. type: verbatim
12094 #: ../fish/guestfish-actions.pod:3717
12095 #, no-wrap
12096 msgid ""
12097 " pread-device device count offset\n"
12098 "\n"
12099 msgstr ""
12100
12101 #. type: textblock
12102 #: ../fish/guestfish-actions.pod:3719 ../src/guestfs-actions.pod:5633
12103 msgid ""
12104 "This command lets you read part of a file.  It reads C<count> bytes of "
12105 "C<device>, starting at C<offset>."
12106 msgstr ""
12107
12108 #. type: textblock
12109 #: ../fish/guestfish-actions.pod:3725
12110 msgid "See also L</pread>."
12111 msgstr ""
12112
12113 #. type: =head2
12114 #: ../fish/guestfish-actions.pod:3730
12115 msgid "pvcreate"
12116 msgstr ""
12117
12118 #. type: verbatim
12119 #: ../fish/guestfish-actions.pod:3732
12120 #, no-wrap
12121 msgid ""
12122 " pvcreate device\n"
12123 "\n"
12124 msgstr ""
12125
12126 #. type: textblock
12127 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5656
12128 msgid ""
12129 "This creates an LVM physical volume on the named C<device>, where C<device> "
12130 "should usually be a partition name such as C</dev/sda1>."
12131 msgstr ""
12132
12133 #. type: =head2
12134 #: ../fish/guestfish-actions.pod:3738
12135 msgid "pvremove"
12136 msgstr ""
12137
12138 #. type: verbatim
12139 #: ../fish/guestfish-actions.pod:3740
12140 #, no-wrap
12141 msgid ""
12142 " pvremove device\n"
12143 "\n"
12144 msgstr ""
12145
12146 #. type: textblock
12147 #: ../fish/guestfish-actions.pod:3742 ../src/guestfs-actions.pod:5670
12148 msgid ""
12149 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12150 "it."
12151 msgstr ""
12152
12153 #. type: textblock
12154 #: ../fish/guestfish-actions.pod:3745 ../src/guestfs-actions.pod:5673
12155 msgid ""
12156 "The implementation uses the C<pvremove> command which refuses to wipe "
12157 "physical volumes that contain any volume groups, so you have to remove those "
12158 "first."
12159 msgstr ""
12160
12161 #. type: =head2
12162 #: ../fish/guestfish-actions.pod:3749
12163 msgid "pvresize"
12164 msgstr ""
12165
12166 #. type: verbatim
12167 #: ../fish/guestfish-actions.pod:3751
12168 #, no-wrap
12169 msgid ""
12170 " pvresize device\n"
12171 "\n"
12172 msgstr ""
12173
12174 #. type: textblock
12175 #: ../fish/guestfish-actions.pod:3753 ../src/guestfs-actions.pod:5687
12176 msgid ""
12177 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12178 "the new size of the underlying device."
12179 msgstr ""
12180
12181 #. type: =head2
12182 #: ../fish/guestfish-actions.pod:3756
12183 msgid "pvresize-size"
12184 msgstr ""
12185
12186 #. type: verbatim
12187 #: ../fish/guestfish-actions.pod:3758
12188 #, no-wrap
12189 msgid ""
12190 " pvresize-size device size\n"
12191 "\n"
12192 msgstr ""
12193
12194 #. type: textblock
12195 #: ../fish/guestfish-actions.pod:3760
12196 msgid ""
12197 "This command is the same as L</pvresize> except that it allows you to "
12198 "specify the new size (in bytes) explicitly."
12199 msgstr ""
12200
12201 #. type: =head2
12202 #: ../fish/guestfish-actions.pod:3763
12203 msgid "pvs"
12204 msgstr ""
12205
12206 #. type: verbatim
12207 #: ../fish/guestfish-actions.pod:3765
12208 #, no-wrap
12209 msgid ""
12210 " pvs\n"
12211 "\n"
12212 msgstr ""
12213
12214 #. type: textblock
12215 #: ../fish/guestfish-actions.pod:3767 ../src/guestfs-actions.pod:5713
12216 msgid ""
12217 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12218 "(8)> command."
12219 msgstr ""
12220
12221 #. type: textblock
12222 #: ../fish/guestfish-actions.pod:3770 ../src/guestfs-actions.pod:5716
12223 msgid ""
12224 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12225 "sda2>)."
12226 msgstr ""
12227
12228 #. type: textblock
12229 #: ../fish/guestfish-actions.pod:3773
12230 msgid "See also L</pvs-full>."
12231 msgstr ""
12232
12233 #. type: =head2
12234 #: ../fish/guestfish-actions.pod:3775
12235 msgid "pvs-full"
12236 msgstr ""
12237
12238 #. type: verbatim
12239 #: ../fish/guestfish-actions.pod:3777
12240 #, no-wrap
12241 msgid ""
12242 " pvs-full\n"
12243 "\n"
12244 msgstr ""
12245
12246 #. type: textblock
12247 #: ../fish/guestfish-actions.pod:3779 ../src/guestfs-actions.pod:5732
12248 msgid ""
12249 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12250 "(8)> command.  The \"full\" version includes all fields."
12251 msgstr ""
12252
12253 #. type: =head2
12254 #: ../fish/guestfish-actions.pod:3782
12255 msgid "pvuuid"
12256 msgstr ""
12257
12258 #. type: verbatim
12259 #: ../fish/guestfish-actions.pod:3784
12260 #, no-wrap
12261 msgid ""
12262 " pvuuid device\n"
12263 "\n"
12264 msgstr ""
12265
12266 #. type: textblock
12267 #: ../fish/guestfish-actions.pod:3786 ../src/guestfs-actions.pod:5747
12268 msgid "This command returns the UUID of the LVM PV C<device>."
12269 msgstr ""
12270
12271 #. type: =head2
12272 #: ../fish/guestfish-actions.pod:3788
12273 msgid "pwrite"
12274 msgstr ""
12275
12276 #. type: verbatim
12277 #: ../fish/guestfish-actions.pod:3790
12278 #, no-wrap
12279 msgid ""
12280 " pwrite path content offset\n"
12281 "\n"
12282 msgstr ""
12283
12284 #. type: textblock
12285 #: ../fish/guestfish-actions.pod:3792 ../src/guestfs-actions.pod:5763
12286 msgid ""
12287 "This command writes to part of a file.  It writes the data buffer C<content> "
12288 "to the file C<path> starting at offset C<offset>."
12289 msgstr ""
12290
12291 #. type: textblock
12292 #: ../fish/guestfish-actions.pod:3795 ../src/guestfs-actions.pod:5766
12293 msgid ""
12294 "This command implements the L<pwrite(2)> system call, and like that system "
12295 "call it may not write the full data requested.  The return value is the "
12296 "number of bytes that were actually written to the file.  This could even be "
12297 "0, although short writes are unlikely for regular files in ordinary "
12298 "circumstances."
12299 msgstr ""
12300
12301 #. type: textblock
12302 #: ../fish/guestfish-actions.pod:3801
12303 msgid "See also L</pread>, L</pwrite-device>."
12304 msgstr ""
12305
12306 #. type: =head2
12307 #: ../fish/guestfish-actions.pod:3806
12308 msgid "pwrite-device"
12309 msgstr ""
12310
12311 #. type: verbatim
12312 #: ../fish/guestfish-actions.pod:3808
12313 #, no-wrap
12314 msgid ""
12315 " pwrite-device device content offset\n"
12316 "\n"
12317 msgstr ""
12318
12319 #. type: textblock
12320 #: ../fish/guestfish-actions.pod:3810 ../src/guestfs-actions.pod:5790
12321 msgid ""
12322 "This command writes to part of a device.  It writes the data buffer "
12323 "C<content> to C<device> starting at offset C<offset>."
12324 msgstr ""
12325
12326 #. type: textblock
12327 #: ../fish/guestfish-actions.pod:3813 ../src/guestfs-actions.pod:5793
12328 msgid ""
12329 "This command implements the L<pwrite(2)> system call, and like that system "
12330 "call it may not write the full data requested (although short writes to disk "
12331 "devices and partitions are probably impossible with standard Linux kernels)."
12332 msgstr ""
12333
12334 #. type: textblock
12335 #: ../fish/guestfish-actions.pod:3818
12336 msgid "See also L</pwrite>."
12337 msgstr ""
12338
12339 #. type: =head2
12340 #: ../fish/guestfish-actions.pod:3823
12341 msgid "read-file"
12342 msgstr ""
12343
12344 #. type: verbatim
12345 #: ../fish/guestfish-actions.pod:3825
12346 #, no-wrap
12347 msgid ""
12348 " read-file path\n"
12349 "\n"
12350 msgstr ""
12351
12352 #. type: textblock
12353 #: ../fish/guestfish-actions.pod:3827 ../src/guestfs-actions.pod:5814
12354 msgid "This calls returns the contents of the file C<path> as a buffer."
12355 msgstr ""
12356
12357 #. type: textblock
12358 #: ../fish/guestfish-actions.pod:3830
12359 msgid ""
12360 "Unlike L</cat>, this function can correctly handle files that contain "
12361 "embedded ASCII NUL characters.  However unlike L</download>, this function "
12362 "is limited in the total size of file that can be handled."
12363 msgstr ""
12364
12365 #. type: =head2
12366 #: ../fish/guestfish-actions.pod:3838
12367 msgid "read-lines"
12368 msgstr ""
12369
12370 #. type: verbatim
12371 #: ../fish/guestfish-actions.pod:3840
12372 #, no-wrap
12373 msgid ""
12374 " read-lines path\n"
12375 "\n"
12376 msgstr ""
12377
12378 #. type: textblock
12379 #: ../fish/guestfish-actions.pod:3844 ../src/guestfs-actions.pod:5839
12380 msgid ""
12381 "The file contents are returned as a list of lines.  Trailing C<LF> and "
12382 "C<CRLF> character sequences are I<not> returned."
12383 msgstr ""
12384
12385 #. type: textblock
12386 #: ../fish/guestfish-actions.pod:3847
12387 msgid ""
12388 "Note that this function cannot correctly handle binary files (specifically, "
12389 "files containing C<\\0> character which is treated as end of line).  For "
12390 "those you need to use the L</read-file> function which has a more complex "
12391 "interface."
12392 msgstr ""
12393
12394 #. type: =head2
12395 #: ../fish/guestfish-actions.pod:3852
12396 msgid "readdir"
12397 msgstr ""
12398
12399 #. type: verbatim
12400 #: ../fish/guestfish-actions.pod:3854
12401 #, no-wrap
12402 msgid ""
12403 " readdir dir\n"
12404 "\n"
12405 msgstr ""
12406
12407 #. type: textblock
12408 #: ../fish/guestfish-actions.pod:3856 ../src/guestfs-actions.pod:5859
12409 msgid "This returns the list of directory entries in directory C<dir>."
12410 msgstr ""
12411
12412 #. type: textblock
12413 #: ../fish/guestfish-actions.pod:3858 ../src/guestfs-actions.pod:5861
12414 msgid ""
12415 "All entries in the directory are returned, including C<.> and C<..>.  The "
12416 "entries are I<not> sorted, but returned in the same order as the underlying "
12417 "filesystem."
12418 msgstr ""
12419
12420 #. type: textblock
12421 #: ../fish/guestfish-actions.pod:3862 ../src/guestfs-actions.pod:5865
12422 msgid ""
12423 "Also this call returns basic file type information about each file.  The "
12424 "C<ftyp> field will contain one of the following characters:"
12425 msgstr ""
12426
12427 #. type: =item
12428 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5870
12429 msgid "'b'"
12430 msgstr ""
12431
12432 #. type: textblock
12433 #: ../fish/guestfish-actions.pod:3869 ../src/guestfs-actions.pod:5872
12434 msgid "Block special"
12435 msgstr ""
12436
12437 #. type: =item
12438 #: ../fish/guestfish-actions.pod:3871 ../src/guestfs-actions.pod:5874
12439 msgid "'c'"
12440 msgstr ""
12441
12442 #. type: textblock
12443 #: ../fish/guestfish-actions.pod:3873 ../src/guestfs-actions.pod:5876
12444 msgid "Char special"
12445 msgstr ""
12446
12447 #. type: =item
12448 #: ../fish/guestfish-actions.pod:3875 ../src/guestfs-actions.pod:5878
12449 msgid "'d'"
12450 msgstr ""
12451
12452 #. type: textblock
12453 #: ../fish/guestfish-actions.pod:3877 ../src/guestfs-actions.pod:5880
12454 msgid "Directory"
12455 msgstr ""
12456
12457 #. type: =item
12458 #: ../fish/guestfish-actions.pod:3879 ../src/guestfs-actions.pod:5882
12459 msgid "'f'"
12460 msgstr ""
12461
12462 #. type: textblock
12463 #: ../fish/guestfish-actions.pod:3881 ../src/guestfs-actions.pod:5884
12464 msgid "FIFO (named pipe)"
12465 msgstr ""
12466
12467 #. type: =item
12468 #: ../fish/guestfish-actions.pod:3883 ../src/guestfs-actions.pod:5886
12469 msgid "'l'"
12470 msgstr ""
12471
12472 #. type: textblock
12473 #: ../fish/guestfish-actions.pod:3885 ../src/guestfs-actions.pod:5888
12474 msgid "Symbolic link"
12475 msgstr ""
12476
12477 #. type: =item
12478 #: ../fish/guestfish-actions.pod:3887 ../src/guestfs-actions.pod:5890
12479 msgid "'r'"
12480 msgstr ""
12481
12482 #. type: textblock
12483 #: ../fish/guestfish-actions.pod:3889 ../src/guestfs-actions.pod:5892
12484 msgid "Regular file"
12485 msgstr ""
12486
12487 #. type: =item
12488 #: ../fish/guestfish-actions.pod:3891 ../src/guestfs-actions.pod:5894
12489 msgid "'s'"
12490 msgstr ""
12491
12492 #. type: textblock
12493 #: ../fish/guestfish-actions.pod:3893 ../src/guestfs-actions.pod:5896
12494 msgid "Socket"
12495 msgstr ""
12496
12497 #. type: =item
12498 #: ../fish/guestfish-actions.pod:3895 ../src/guestfs-actions.pod:5898
12499 msgid "'u'"
12500 msgstr ""
12501
12502 #. type: textblock
12503 #: ../fish/guestfish-actions.pod:3897 ../src/guestfs-actions.pod:5900
12504 msgid "Unknown file type"
12505 msgstr ""
12506
12507 #. type: =item
12508 #: ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:5902
12509 msgid "'?'"
12510 msgstr ""
12511
12512 #. type: textblock
12513 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:5904
12514 msgid ""
12515 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
12516 msgstr ""
12517
12518 #. type: textblock
12519 #: ../fish/guestfish-actions.pod:3906
12520 msgid ""
12521 "This function is primarily intended for use by programs.  To get a simple "
12522 "list of names, use L</ls>.  To get a printable directory for human "
12523 "consumption, use L</ll>."
12524 msgstr ""
12525
12526 #. type: =head2
12527 #: ../fish/guestfish-actions.pod:3910
12528 msgid "readlink"
12529 msgstr ""
12530
12531 #. type: verbatim
12532 #: ../fish/guestfish-actions.pod:3912
12533 #, no-wrap
12534 msgid ""
12535 " readlink path\n"
12536 "\n"
12537 msgstr ""
12538
12539 #. type: textblock
12540 #: ../fish/guestfish-actions.pod:3914 ../src/guestfs-actions.pod:5925
12541 msgid "This command reads the target of a symbolic link."
12542 msgstr ""
12543
12544 #. type: =head2
12545 #: ../fish/guestfish-actions.pod:3916
12546 msgid "readlinklist"
12547 msgstr ""
12548
12549 #. type: verbatim
12550 #: ../fish/guestfish-actions.pod:3918
12551 #, no-wrap
12552 msgid ""
12553 " readlinklist path 'names ...'\n"
12554 "\n"
12555 msgstr ""
12556
12557 #. type: textblock
12558 #: ../fish/guestfish-actions.pod:3920 ../src/guestfs-actions.pod:5939
12559 msgid ""
12560 "This call allows you to do a C<readlink> operation on multiple files, where "
12561 "all files are in the directory C<path>.  C<names> is the list of files from "
12562 "this directory."
12563 msgstr ""
12564
12565 #. type: textblock
12566 #: ../fish/guestfish-actions.pod:3924 ../src/guestfs-actions.pod:5943
12567 msgid ""
12568 "On return you get a list of strings, with a one-to-one correspondence to the "
12569 "C<names> list.  Each string is the value of the symbolic link."
12570 msgstr ""
12571
12572 #. type: textblock
12573 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:5947
12574 msgid ""
12575 "If the C<readlink(2)> operation fails on any name, then the corresponding "
12576 "result string is the empty string C<\"\">.  However the whole operation is "
12577 "completed even if there were C<readlink(2)> errors, and so you can call this "
12578 "function with names where you don't know if they are symbolic links already "
12579 "(albeit slightly less efficient)."
12580 msgstr ""
12581
12582 #. type: textblock
12583 #: ../fish/guestfish-actions.pod:3935 ../src/guestfs-actions.pod:5954
12584 msgid ""
12585 "This call is intended for programs that want to efficiently list a directory "
12586 "contents without making many round-trips.  Very long directory listings "
12587 "might cause the protocol message size to be exceeded, causing this call to "
12588 "fail.  The caller must split up such requests into smaller groups of names."
12589 msgstr ""
12590
12591 #. type: =head2
12592 #: ../fish/guestfish-actions.pod:3942
12593 msgid "realpath"
12594 msgstr ""
12595
12596 #. type: verbatim
12597 #: ../fish/guestfish-actions.pod:3944
12598 #, no-wrap
12599 msgid ""
12600 " realpath path\n"
12601 "\n"
12602 msgstr ""
12603
12604 #. type: textblock
12605 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:5973
12606 msgid ""
12607 "Return the canonicalized absolute pathname of C<path>.  The returned path "
12608 "has no C<.>, C<..> or symbolic link path elements."
12609 msgstr ""
12610
12611 #. type: =head2
12612 #: ../fish/guestfish-actions.pod:3949
12613 msgid "removexattr"
12614 msgstr ""
12615
12616 #. type: verbatim
12617 #: ../fish/guestfish-actions.pod:3951
12618 #, no-wrap
12619 msgid ""
12620 " removexattr xattr path\n"
12621 "\n"
12622 msgstr ""
12623
12624 #. type: textblock
12625 #: ../fish/guestfish-actions.pod:3953 ../src/guestfs-actions.pod:5988
12626 msgid ""
12627 "This call removes the extended attribute named C<xattr> of the file C<path>."
12628 msgstr ""
12629
12630 #. type: textblock
12631 #: ../fish/guestfish-actions.pod:3956
12632 msgid "See also: L</lremovexattr>, L<attr(5)>."
12633 msgstr ""
12634
12635 #. type: =head2
12636 #: ../fish/guestfish-actions.pod:3958
12637 msgid "resize2fs"
12638 msgstr ""
12639
12640 #. type: verbatim
12641 #: ../fish/guestfish-actions.pod:3960
12642 #, no-wrap
12643 msgid ""
12644 " resize2fs device\n"
12645 "\n"
12646 msgstr ""
12647
12648 #. type: textblock
12649 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6003
12650 msgid ""
12651 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
12652 "underlying device."
12653 msgstr ""
12654
12655 #. type: textblock
12656 #: ../fish/guestfish-actions.pod:3965
12657 msgid ""
12658 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
12659 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
12660 "gives an error about this and sometimes not.  In any case, it is always safe "
12661 "to call L</e2fsck-f> before calling this function."
12662 msgstr ""
12663
12664 #. type: =head2
12665 #: ../fish/guestfish-actions.pod:3971
12666 msgid "resize2fs-M"
12667 msgstr ""
12668
12669 #. type: verbatim
12670 #: ../fish/guestfish-actions.pod:3973
12671 #, no-wrap
12672 msgid ""
12673 " resize2fs-M device\n"
12674 "\n"
12675 msgstr ""
12676
12677 #. type: textblock
12678 #: ../fish/guestfish-actions.pod:3975
12679 msgid ""
12680 "This command is the same as L</resize2fs>, but the filesystem is resized to "
12681 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
12682 "command."
12683 msgstr ""
12684
12685 #. type: textblock
12686 #: ../fish/guestfish-actions.pod:3979
12687 msgid ""
12688 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
12689 "and read the C<Block size> and C<Block count> values.  These two numbers, "
12690 "multiplied together, give the resulting size of the minimal filesystem in "
12691 "bytes."
12692 msgstr ""
12693
12694 #. type: =head2
12695 #: ../fish/guestfish-actions.pod:3984
12696 msgid "resize2fs-size"
12697 msgstr ""
12698
12699 #. type: verbatim
12700 #: ../fish/guestfish-actions.pod:3986
12701 #, no-wrap
12702 msgid ""
12703 " resize2fs-size device size\n"
12704 "\n"
12705 msgstr ""
12706
12707 #. type: textblock
12708 #: ../fish/guestfish-actions.pod:3988
12709 msgid ""
12710 "This command is the same as L</resize2fs> except that it allows you to "
12711 "specify the new size (in bytes) explicitly."
12712 msgstr ""
12713
12714 #. type: =head2
12715 #: ../fish/guestfish-actions.pod:3991
12716 msgid "rm"
12717 msgstr ""
12718
12719 #. type: verbatim
12720 #: ../fish/guestfish-actions.pod:3993
12721 #, no-wrap
12722 msgid ""
12723 " rm path\n"
12724 "\n"
12725 msgstr ""
12726
12727 #. type: textblock
12728 #: ../fish/guestfish-actions.pod:3995 ../src/guestfs-actions.pod:6055
12729 msgid "Remove the single file C<path>."
12730 msgstr ""
12731
12732 #. type: =head2
12733 #: ../fish/guestfish-actions.pod:3997
12734 msgid "rm-rf"
12735 msgstr ""
12736
12737 #. type: verbatim
12738 #: ../fish/guestfish-actions.pod:3999
12739 #, no-wrap
12740 msgid ""
12741 " rm-rf path\n"
12742 "\n"
12743 msgstr ""
12744
12745 #. type: textblock
12746 #: ../fish/guestfish-actions.pod:4001 ../src/guestfs-actions.pod:6067
12747 msgid ""
12748 "Remove the file or directory C<path>, recursively removing the contents if "
12749 "its a directory.  This is like the C<rm -rf> shell command."
12750 msgstr ""
12751
12752 #. type: =head2
12753 #: ../fish/guestfish-actions.pod:4005
12754 msgid "rmdir"
12755 msgstr ""
12756
12757 #. type: verbatim
12758 #: ../fish/guestfish-actions.pod:4007
12759 #, no-wrap
12760 msgid ""
12761 " rmdir path\n"
12762 "\n"
12763 msgstr ""
12764
12765 #. type: textblock
12766 #: ../fish/guestfish-actions.pod:4009 ../src/guestfs-actions.pod:6081
12767 msgid "Remove the single directory C<path>."
12768 msgstr ""
12769
12770 #. type: =head2
12771 #: ../fish/guestfish-actions.pod:4011
12772 msgid "rmmountpoint"
12773 msgstr ""
12774
12775 #. type: verbatim
12776 #: ../fish/guestfish-actions.pod:4013
12777 #, no-wrap
12778 msgid ""
12779 " rmmountpoint exemptpath\n"
12780 "\n"
12781 msgstr ""
12782
12783 #. type: textblock
12784 #: ../fish/guestfish-actions.pod:4015
12785 msgid ""
12786 "This calls removes a mountpoint that was previously created with L</"
12787 "mkmountpoint>.  See L</mkmountpoint> for full details."
12788 msgstr ""
12789
12790 #. type: =head2
12791 #: ../fish/guestfish-actions.pod:4019
12792 msgid "scrub-device"
12793 msgstr ""
12794
12795 #. type: verbatim
12796 #: ../fish/guestfish-actions.pod:4021
12797 #, no-wrap
12798 msgid ""
12799 " scrub-device device\n"
12800 "\n"
12801 msgstr ""
12802
12803 #. type: textblock
12804 #: ../fish/guestfish-actions.pod:4023 ../src/guestfs-actions.pod:6107
12805 msgid ""
12806 "This command writes patterns over C<device> to make data retrieval more "
12807 "difficult."
12808 msgstr ""
12809
12810 #. type: textblock
12811 #: ../fish/guestfish-actions.pod:4026 ../fish/guestfish-actions.pod:4041
12812 #: ../fish/guestfish-actions.pod:4054 ../src/guestfs-actions.pod:6110
12813 #: ../src/guestfs-actions.pod:6131 ../src/guestfs-actions.pod:6150
12814 msgid ""
12815 "It is an interface to the L<scrub(1)> program.  See that manual page for "
12816 "more details."
12817 msgstr ""
12818
12819 #. type: =head2
12820 #: ../fish/guestfish-actions.pod:4032
12821 msgid "scrub-file"
12822 msgstr ""
12823
12824 #. type: verbatim
12825 #: ../fish/guestfish-actions.pod:4034
12826 #, no-wrap
12827 msgid ""
12828 " scrub-file file\n"
12829 "\n"
12830 msgstr ""
12831
12832 #. type: textblock
12833 #: ../fish/guestfish-actions.pod:4036 ../src/guestfs-actions.pod:6126
12834 msgid ""
12835 "This command writes patterns over a file to make data retrieval more "
12836 "difficult."
12837 msgstr ""
12838
12839 #. type: textblock
12840 #: ../fish/guestfish-actions.pod:4039 ../src/guestfs-actions.pod:6129
12841 msgid "The file is I<removed> after scrubbing."
12842 msgstr ""
12843
12844 #. type: =head2
12845 #: ../fish/guestfish-actions.pod:4044
12846 msgid "scrub-freespace"
12847 msgstr ""
12848
12849 #. type: verbatim
12850 #: ../fish/guestfish-actions.pod:4046
12851 #, no-wrap
12852 msgid ""
12853 " scrub-freespace dir\n"
12854 "\n"
12855 msgstr ""
12856
12857 #. type: textblock
12858 #: ../fish/guestfish-actions.pod:4048
12859 msgid ""
12860 "This command creates the directory C<dir> and then fills it with files until "
12861 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
12862 "deletes them.  The intention is to scrub any free space on the partition "
12863 "containing C<dir>."
12864 msgstr ""
12865
12866 #. type: =head2
12867 #: ../fish/guestfish-actions.pod:4057
12868 msgid "set-append"
12869 msgstr ""
12870
12871 #. type: =head2
12872 #: ../fish/guestfish-actions.pod:4059
12873 msgid "append"
12874 msgstr ""
12875
12876 #. type: verbatim
12877 #: ../fish/guestfish-actions.pod:4061
12878 #, no-wrap
12879 msgid ""
12880 " set-append append\n"
12881 "\n"
12882 msgstr ""
12883
12884 #. type: textblock
12885 #: ../fish/guestfish-actions.pod:4063 ../src/guestfs-actions.pod:6163
12886 msgid ""
12887 "This function is used to add additional options to the guest kernel command "
12888 "line."
12889 msgstr ""
12890
12891 #. type: textblock
12892 #: ../fish/guestfish-actions.pod:4066 ../src/guestfs-actions.pod:6166
12893 msgid ""
12894 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
12895 "environment variable."
12896 msgstr ""
12897
12898 #. type: textblock
12899 #: ../fish/guestfish-actions.pod:4069 ../src/guestfs-actions.pod:6169
12900 msgid ""
12901 "Setting C<append> to C<NULL> means I<no> additional options are passed "
12902 "(libguestfs always adds a few of its own)."
12903 msgstr ""
12904
12905 #. type: =head2
12906 #: ../fish/guestfish-actions.pod:4072
12907 msgid "set-attach-method"
12908 msgstr ""
12909
12910 #. type: =head2
12911 #: ../fish/guestfish-actions.pod:4074
12912 msgid "attach-method"
12913 msgstr ""
12914
12915 #. type: verbatim
12916 #: ../fish/guestfish-actions.pod:4076
12917 #, no-wrap
12918 msgid ""
12919 " set-attach-method attachmethod\n"
12920 "\n"
12921 msgstr ""
12922
12923 #. type: textblock
12924 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6182
12925 msgid ""
12926 "Set the method that libguestfs uses to connect to the back end guestfsd "
12927 "daemon.  Possible methods are:"
12928 msgstr ""
12929
12930 #. type: =item
12931 #: ../fish/guestfish-actions.pod:4083 ../src/guestfs-actions.pod:6187
12932 #: ../src/guestfs.pod:2687
12933 msgid "C<appliance>"
12934 msgstr ""
12935
12936 #. type: textblock
12937 #: ../fish/guestfish-actions.pod:4085 ../src/guestfs-actions.pod:6189
12938 msgid ""
12939 "Launch an appliance and connect to it.  This is the ordinary method and the "
12940 "default."
12941 msgstr ""
12942
12943 #. type: =item
12944 #: ../fish/guestfish-actions.pod:4088 ../src/guestfs-actions.pod:6192
12945 msgid "C<unix:I<path>>"
12946 msgstr ""
12947
12948 #. type: textblock
12949 #: ../fish/guestfish-actions.pod:4090 ../src/guestfs-actions.pod:6194
12950 msgid "Connect to the Unix domain socket I<path>."
12951 msgstr ""
12952
12953 #. type: textblock
12954 #: ../fish/guestfish-actions.pod:4092 ../src/guestfs-actions.pod:6196
12955 msgid ""
12956 "This method lets you connect to an existing daemon or (using virtio-serial) "
12957 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
12958 "RUNNING DAEMONS>."
12959 msgstr ""
12960
12961 #. type: =head2
12962 #: ../fish/guestfish-actions.pod:4098
12963 msgid "set-autosync"
12964 msgstr ""
12965
12966 #. type: =head2
12967 #: ../fish/guestfish-actions.pod:4100
12968 msgid "autosync"
12969 msgstr ""
12970
12971 #. type: verbatim
12972 #: ../fish/guestfish-actions.pod:4102
12973 #, no-wrap
12974 msgid ""
12975 " set-autosync true|false\n"
12976 "\n"
12977 msgstr ""
12978
12979 #. type: textblock
12980 #: ../fish/guestfish-actions.pod:4104 ../src/guestfs-actions.pod:6212
12981 msgid ""
12982 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
12983 "effort attempt to make filesystems consistent and synchronized when the "
12984 "handle is closed (also if the program exits without closing handles)."
12985 msgstr ""
12986
12987 #. type: textblock
12988 #: ../fish/guestfish-actions.pod:4109 ../src/guestfs-actions.pod:6217
12989 msgid ""
12990 "This is enabled by default (since libguestfs 1.5.24, previously it was "
12991 "disabled by default)."
12992 msgstr ""
12993
12994 #. type: =head2
12995 #: ../fish/guestfish-actions.pod:4112
12996 msgid "set-direct"
12997 msgstr ""
12998
12999 #. type: =head2
13000 #: ../fish/guestfish-actions.pod:4114
13001 msgid "direct"
13002 msgstr ""
13003
13004 #. type: verbatim
13005 #: ../fish/guestfish-actions.pod:4116
13006 #, no-wrap
13007 msgid ""
13008 " set-direct true|false\n"
13009 "\n"
13010 msgstr ""
13011
13012 #. type: textblock
13013 #: ../fish/guestfish-actions.pod:4118 ../src/guestfs-actions.pod:6230
13014 msgid ""
13015 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13016 "passed directly through to the appliance once it is launched."
13017 msgstr ""
13018
13019 #. type: textblock
13020 #: ../fish/guestfish-actions.pod:4122
13021 msgid ""
13022 "One consequence of this is that log messages aren't caught by the library "
13023 "and handled by L</set-log-message-callback>, but go straight to stdout."
13024 msgstr ""
13025
13026 #. type: textblock
13027 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6238
13028 msgid "You probably don't want to use this unless you know what you are doing."
13029 msgstr ""
13030
13031 #. type: textblock
13032 #: ../fish/guestfish-actions.pod:4129 ../src/guestfs-actions.pod:6241
13033 msgid "The default is disabled."
13034 msgstr ""
13035
13036 #. type: =head2
13037 #: ../fish/guestfish-actions.pod:4131
13038 msgid "set-e2label"
13039 msgstr ""
13040
13041 #. type: verbatim
13042 #: ../fish/guestfish-actions.pod:4133
13043 #, no-wrap
13044 msgid ""
13045 " set-e2label device label\n"
13046 "\n"
13047 msgstr ""
13048
13049 #. type: textblock
13050 #: ../fish/guestfish-actions.pod:4135 ../src/guestfs-actions.pod:6254
13051 msgid ""
13052 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13053 "C<label>.  Filesystem labels are limited to 16 characters."
13054 msgstr ""
13055
13056 #. type: textblock
13057 #: ../fish/guestfish-actions.pod:4139
13058 msgid ""
13059 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
13060 "label on a filesystem."
13061 msgstr ""
13062
13063 #. type: =head2
13064 #: ../fish/guestfish-actions.pod:4142
13065 msgid "set-e2uuid"
13066 msgstr ""
13067
13068 #. type: verbatim
13069 #: ../fish/guestfish-actions.pod:4144
13070 #, no-wrap
13071 msgid ""
13072 " set-e2uuid device uuid\n"
13073 "\n"
13074 msgstr ""
13075
13076 #. type: textblock
13077 #: ../fish/guestfish-actions.pod:4146 ../src/guestfs-actions.pod:6272
13078 msgid ""
13079 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13080 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13081 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13082 msgstr ""
13083
13084 #. type: textblock
13085 #: ../fish/guestfish-actions.pod:4151
13086 msgid ""
13087 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
13088 "UUID of a filesystem."
13089 msgstr ""
13090
13091 #. type: =head2
13092 #: ../fish/guestfish-actions.pod:4154
13093 msgid "set-memsize"
13094 msgstr ""
13095
13096 #. type: =head2
13097 #: ../fish/guestfish-actions.pod:4156
13098 msgid "memsize"
13099 msgstr ""
13100
13101 #. type: verbatim
13102 #: ../fish/guestfish-actions.pod:4158
13103 #, no-wrap
13104 msgid ""
13105 " set-memsize memsize\n"
13106 "\n"
13107 msgstr ""
13108
13109 #. type: textblock
13110 #: ../fish/guestfish-actions.pod:4160
13111 msgid ""
13112 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13113 "This only has any effect if called before L</launch>."
13114 msgstr ""
13115
13116 #. type: textblock
13117 #: ../fish/guestfish-actions.pod:4164 ../src/guestfs-actions.pod:6294
13118 msgid ""
13119 "You can also change this by setting the environment variable "
13120 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13121 msgstr ""
13122
13123 #. type: =head2
13124 #: ../fish/guestfish-actions.pod:4171
13125 msgid "set-network"
13126 msgstr ""
13127
13128 #. type: =head2
13129 #: ../fish/guestfish-actions.pod:4173
13130 msgid "network"
13131 msgstr ""
13132
13133 #. type: verbatim
13134 #: ../fish/guestfish-actions.pod:4175
13135 #, no-wrap
13136 msgid ""
13137 " set-network true|false\n"
13138 "\n"
13139 msgstr ""
13140
13141 #. type: textblock
13142 #: ../fish/guestfish-actions.pod:4177 ../src/guestfs-actions.pod:6311
13143 msgid ""
13144 "If C<network> is true, then the network is enabled in the libguestfs "
13145 "appliance.  The default is false."
13146 msgstr ""
13147
13148 #. type: textblock
13149 #: ../fish/guestfish-actions.pod:4180 ../src/guestfs-actions.pod:6314
13150 msgid ""
13151 "This affects whether commands are able to access the network (see L<guestfs"
13152 "(3)/RUNNING COMMANDS>)."
13153 msgstr ""
13154
13155 #. type: textblock
13156 #: ../fish/guestfish-actions.pod:4183
13157 msgid ""
13158 "You must call this before calling L</launch>, otherwise it has no effect."
13159 msgstr ""
13160
13161 #. type: =head2
13162 #: ../fish/guestfish-actions.pod:4186
13163 msgid "set-path"
13164 msgstr ""
13165
13166 #. type: verbatim
13167 #: ../fish/guestfish-actions.pod:4190
13168 #, no-wrap
13169 msgid ""
13170 " set-path searchpath\n"
13171 "\n"
13172 msgstr ""
13173
13174 #. type: textblock
13175 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6330
13176 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13177 msgstr ""
13178
13179 #. type: textblock
13180 #: ../fish/guestfish-actions.pod:4194 ../src/guestfs-actions.pod:6332
13181 msgid ""
13182 "The default is C<$libdir/guestfs> unless overridden by setting "
13183 "C<LIBGUESTFS_PATH> environment variable."
13184 msgstr ""
13185
13186 #. type: textblock
13187 #: ../fish/guestfish-actions.pod:4197 ../src/guestfs-actions.pod:6335
13188 msgid "Setting C<path> to C<NULL> restores the default path."
13189 msgstr ""
13190
13191 #. type: =head2
13192 #: ../fish/guestfish-actions.pod:4199
13193 msgid "set-pgroup"
13194 msgstr ""
13195
13196 #. type: =head2
13197 #: ../fish/guestfish-actions.pod:4201
13198 msgid "pgroup"
13199 msgstr ""
13200
13201 #. type: verbatim
13202 #: ../fish/guestfish-actions.pod:4203
13203 #, no-wrap
13204 msgid ""
13205 " set-pgroup true|false\n"
13206 "\n"
13207 msgstr ""
13208
13209 #. type: textblock
13210 #: ../fish/guestfish-actions.pod:4205 ../src/guestfs-actions.pod:6347
13211 msgid ""
13212 "If C<pgroup> is true, child processes are placed into their own process "
13213 "group."
13214 msgstr ""
13215
13216 #. type: textblock
13217 #: ../fish/guestfish-actions.pod:4208 ../src/guestfs-actions.pod:6350
13218 msgid ""
13219 "The practical upshot of this is that signals like C<SIGINT> (from users "
13220 "pressing C<^C>) won't be received by the child process."
13221 msgstr ""
13222
13223 #. type: textblock
13224 #: ../fish/guestfish-actions.pod:4211 ../src/guestfs-actions.pod:6353
13225 msgid ""
13226 "The default for this flag is false, because usually you want C<^C> to kill "
13227 "the subprocess."
13228 msgstr ""
13229
13230 #. type: =head2
13231 #: ../fish/guestfish-actions.pod:4214
13232 msgid "set-qemu"
13233 msgstr ""
13234
13235 #. type: =head2
13236 #: ../fish/guestfish-actions.pod:4216
13237 msgid "qemu"
13238 msgstr ""
13239
13240 #. type: verbatim
13241 #: ../fish/guestfish-actions.pod:4218
13242 #, no-wrap
13243 msgid ""
13244 " set-qemu qemu\n"
13245 "\n"
13246 msgstr ""
13247
13248 #. type: textblock
13249 #: ../fish/guestfish-actions.pod:4220 ../src/guestfs-actions.pod:6366
13250 msgid "Set the qemu binary that we will use."
13251 msgstr ""
13252
13253 #. type: textblock
13254 #: ../fish/guestfish-actions.pod:4222 ../src/guestfs-actions.pod:6368
13255 msgid ""
13256 "The default is chosen when the library was compiled by the configure script."
13257 msgstr ""
13258
13259 #. type: textblock
13260 #: ../fish/guestfish-actions.pod:4225 ../src/guestfs-actions.pod:6371
13261 msgid ""
13262 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13263 "variable."
13264 msgstr ""
13265
13266 #. type: textblock
13267 #: ../fish/guestfish-actions.pod:4228 ../src/guestfs-actions.pod:6374
13268 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13269 msgstr ""
13270
13271 #. type: textblock
13272 #: ../fish/guestfish-actions.pod:4230 ../src/guestfs-actions.pod:6376
13273 msgid ""
13274 "Note that you should call this function as early as possible after creating "
13275 "the handle.  This is because some pre-launch operations depend on testing "
13276 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13277 "don't retest features, and so you might see inconsistent results.  Using the "
13278 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13279 "the qemu binary at the same time as the handle is created."
13280 msgstr ""
13281
13282 #. type: =head2
13283 #: ../fish/guestfish-actions.pod:4238
13284 msgid "set-recovery-proc"
13285 msgstr ""
13286
13287 #. type: =head2
13288 #: ../fish/guestfish-actions.pod:4240
13289 msgid "recovery-proc"
13290 msgstr ""
13291
13292 #. type: verbatim
13293 #: ../fish/guestfish-actions.pod:4242
13294 #, no-wrap
13295 msgid ""
13296 " set-recovery-proc true|false\n"
13297 "\n"
13298 msgstr ""
13299
13300 #. type: textblock
13301 #: ../fish/guestfish-actions.pod:4244
13302 msgid ""
13303 "If this is called with the parameter C<false> then L</launch> does not "
13304 "create a recovery process.  The purpose of the recovery process is to stop "
13305 "runaway qemu processes in the case where the main program aborts abruptly."
13306 msgstr ""
13307
13308 #. type: textblock
13309 #: ../fish/guestfish-actions.pod:4249
13310 msgid ""
13311 "This only has any effect if called before L</launch>, and the default is "
13312 "true."
13313 msgstr ""
13314
13315 #. type: textblock
13316 #: ../fish/guestfish-actions.pod:4252 ../src/guestfs-actions.pod:6402
13317 msgid ""
13318 "About the only time when you would want to disable this is if the main "
13319 "process will fork itself into the background (\"daemonize\" itself).  In "
13320 "this case the recovery process thinks that the main program has disappeared "
13321 "and so kills qemu, which is not very helpful."
13322 msgstr ""
13323
13324 #. type: =head2
13325 #: ../fish/guestfish-actions.pod:4258
13326 msgid "set-selinux"
13327 msgstr ""
13328
13329 #. type: =head2
13330 #: ../fish/guestfish-actions.pod:4260
13331 msgid "selinux"
13332 msgstr ""
13333
13334 #. type: verbatim
13335 #: ../fish/guestfish-actions.pod:4262
13336 #, no-wrap
13337 msgid ""
13338 " set-selinux true|false\n"
13339 "\n"
13340 msgstr ""
13341
13342 #. type: textblock
13343 #: ../fish/guestfish-actions.pod:4264 ../src/guestfs-actions.pod:6418
13344 msgid ""
13345 "This sets the selinux flag that is passed to the appliance at boot time.  "
13346 "The default is C<selinux=0> (disabled)."
13347 msgstr ""
13348
13349 #. type: textblock
13350 #: ../fish/guestfish-actions.pod:4267 ../src/guestfs-actions.pod:6421
13351 msgid ""
13352 "Note that if SELinux is enabled, it is always in Permissive mode "
13353 "(C<enforcing=0>)."
13354 msgstr ""
13355
13356 #. type: =head2
13357 #: ../fish/guestfish-actions.pod:4273
13358 msgid "set-trace"
13359 msgstr ""
13360
13361 #. type: =head2
13362 #: ../fish/guestfish-actions.pod:4275
13363 msgid "trace"
13364 msgstr ""
13365
13366 #. type: verbatim
13367 #: ../fish/guestfish-actions.pod:4277
13368 #, no-wrap
13369 msgid ""
13370 " set-trace true|false\n"
13371 "\n"
13372 msgstr ""
13373
13374 #. type: textblock
13375 #: ../fish/guestfish-actions.pod:4279 ../src/guestfs-actions.pod:6437
13376 msgid ""
13377 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
13378 "return values are traced."
13379 msgstr ""
13380
13381 #. type: textblock
13382 #: ../fish/guestfish-actions.pod:4282 ../src/guestfs-actions.pod:6440
13383 msgid ""
13384 "If you want to trace C API calls into libguestfs (and other libraries) then "
13385 "possibly a better way is to use the external ltrace(1) command."
13386 msgstr ""
13387
13388 #. type: textblock
13389 #: ../fish/guestfish-actions.pod:4286 ../src/guestfs-actions.pod:6444
13390 msgid ""
13391 "Command traces are disabled unless the environment variable "
13392 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
13393 msgstr ""
13394
13395 #. type: textblock
13396 #: ../fish/guestfish-actions.pod:4289
13397 msgid ""
13398 "Trace messages are normally sent to C<stderr>, unless you register a "
13399 "callback to send them somewhere else (see L</set-event-callback>)."
13400 msgstr ""
13401
13402 #. type: =head2
13403 #: ../fish/guestfish-actions.pod:4293
13404 msgid "set-verbose"
13405 msgstr ""
13406
13407 #. type: =head2
13408 #: ../fish/guestfish-actions.pod:4295
13409 msgid "verbose"
13410 msgstr ""
13411
13412 #. type: verbatim
13413 #: ../fish/guestfish-actions.pod:4297
13414 #, no-wrap
13415 msgid ""
13416 " set-verbose true|false\n"
13417 "\n"
13418 msgstr ""
13419
13420 #. type: textblock
13421 #: ../fish/guestfish-actions.pod:4299 ../src/guestfs-actions.pod:6461
13422 msgid "If C<verbose> is true, this turns on verbose messages."
13423 msgstr ""
13424
13425 #. type: textblock
13426 #: ../fish/guestfish-actions.pod:4301 ../src/guestfs-actions.pod:6463
13427 msgid ""
13428 "Verbose messages are disabled unless the environment variable "
13429 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
13430 msgstr ""
13431
13432 #. type: textblock
13433 #: ../fish/guestfish-actions.pod:4304
13434 msgid ""
13435 "Verbose messages are normally sent to C<stderr>, unless you register a "
13436 "callback to send them somewhere else (see L</set-event-callback>)."
13437 msgstr ""
13438
13439 #. type: =head2
13440 #: ../fish/guestfish-actions.pod:4308
13441 msgid "setcon"
13442 msgstr ""
13443
13444 #. type: verbatim
13445 #: ../fish/guestfish-actions.pod:4310
13446 #, no-wrap
13447 msgid ""
13448 " setcon context\n"
13449 "\n"
13450 msgstr ""
13451
13452 #. type: textblock
13453 #: ../fish/guestfish-actions.pod:4312 ../src/guestfs-actions.pod:6480
13454 msgid ""
13455 "This sets the SELinux security context of the daemon to the string "
13456 "C<context>."
13457 msgstr ""
13458
13459 #. type: textblock
13460 #: ../fish/guestfish-actions.pod:4315 ../src/guestfs-actions.pod:6483
13461 msgid "See the documentation about SELINUX in L<guestfs(3)>."
13462 msgstr ""
13463
13464 #. type: =head2
13465 #: ../fish/guestfish-actions.pod:4317
13466 msgid "setxattr"
13467 msgstr ""
13468
13469 #. type: verbatim
13470 #: ../fish/guestfish-actions.pod:4319
13471 #, no-wrap
13472 msgid ""
13473 " setxattr xattr val vallen path\n"
13474 "\n"
13475 msgstr ""
13476
13477 #. type: textblock
13478 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6498
13479 msgid ""
13480 "This call sets the extended attribute named C<xattr> of the file C<path> to "
13481 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
13482 msgstr ""
13483
13484 #. type: textblock
13485 #: ../fish/guestfish-actions.pod:4325
13486 msgid "See also: L</lsetxattr>, L<attr(5)>."
13487 msgstr ""
13488
13489 #. type: =head2
13490 #: ../fish/guestfish-actions.pod:4327
13491 msgid "sfdisk"
13492 msgstr ""
13493
13494 #. type: verbatim
13495 #: ../fish/guestfish-actions.pod:4329
13496 #, no-wrap
13497 msgid ""
13498 " sfdisk device cyls heads sectors 'lines ...'\n"
13499 "\n"
13500 msgstr ""
13501
13502 #. type: textblock
13503 #: ../fish/guestfish-actions.pod:4331 ../src/guestfs-actions.pod:6518
13504 msgid ""
13505 "This is a direct interface to the L<sfdisk(8)> program for creating "
13506 "partitions on block devices."
13507 msgstr ""
13508
13509 #. type: textblock
13510 #: ../fish/guestfish-actions.pod:4334 ../src/guestfs-actions.pod:6521
13511 msgid "C<device> should be a block device, for example C</dev/sda>."
13512 msgstr ""
13513
13514 #. type: textblock
13515 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6523
13516 msgid ""
13517 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
13518 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
13519 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
13520 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
13521 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
13522 "the kernel) cannot work out the right geometry and you will need to tell it."
13523 msgstr ""
13524
13525 #. type: textblock
13526 #: ../fish/guestfish-actions.pod:4344 ../src/guestfs-actions.pod:6531
13527 msgid ""
13528 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
13529 "refer to the L<sfdisk(8)> manpage."
13530 msgstr ""
13531
13532 #. type: textblock
13533 #: ../fish/guestfish-actions.pod:4347 ../src/guestfs-actions.pod:6534
13534 msgid ""
13535 "To create a single partition occupying the whole disk, you would pass "
13536 "C<lines> as a single element list, when the single element being the string "
13537 "C<,> (comma)."
13538 msgstr ""
13539
13540 #. type: textblock
13541 #: ../fish/guestfish-actions.pod:4351
13542 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
13543 msgstr ""
13544
13545 #. type: textblock
13546 #: ../fish/guestfish-actions.pod:4357 ../fish/guestfish-actions.pod:4380
13547 #: ../fish/guestfish-actions.pod:4402
13548 msgid ""
13549 "This function is deprecated.  In new code, use the L</part_add> call instead."
13550 msgstr ""
13551
13552 #. type: =head2
13553 #: ../fish/guestfish-actions.pod:4364
13554 msgid "sfdiskM"
13555 msgstr ""
13556
13557 #. type: verbatim
13558 #: ../fish/guestfish-actions.pod:4366
13559 #, no-wrap
13560 msgid ""
13561 " sfdiskM device 'lines ...'\n"
13562 "\n"
13563 msgstr ""
13564
13565 #. type: textblock
13566 #: ../fish/guestfish-actions.pod:4368
13567 msgid ""
13568 "This is a simplified interface to the L</sfdisk> command, where partition "
13569 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
13570 "you don't need to specify the cyls, heads and sectors parameters which were "
13571 "rarely if ever used anyway."
13572 msgstr ""
13573
13574 #. type: textblock
13575 #: ../fish/guestfish-actions.pod:4374
13576 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
13577 msgstr ""
13578
13579 #. type: =head2
13580 #: ../fish/guestfish-actions.pod:4387
13581 msgid "sfdisk-N"
13582 msgstr ""
13583
13584 #. type: verbatim
13585 #: ../fish/guestfish-actions.pod:4389
13586 #, no-wrap
13587 msgid ""
13588 " sfdisk-N device partnum cyls heads sectors line\n"
13589 "\n"
13590 msgstr ""
13591
13592 #. type: textblock
13593 #: ../fish/guestfish-actions.pod:4391 ../src/guestfs-actions.pod:6596
13594 msgid ""
13595 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
13596 "(note: C<n> counts from 1)."
13597 msgstr ""
13598
13599 #. type: textblock
13600 #: ../fish/guestfish-actions.pod:4394
13601 msgid ""
13602 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
13603 "cyls/heads/sectors parameters."
13604 msgstr ""
13605
13606 #. type: textblock
13607 #: ../fish/guestfish-actions.pod:4397
13608 msgid "See also: L</part-add>"
13609 msgstr ""
13610
13611 #. type: =head2
13612 #: ../fish/guestfish-actions.pod:4409
13613 msgid "sfdisk-disk-geometry"
13614 msgstr ""
13615
13616 #. type: verbatim
13617 #: ../fish/guestfish-actions.pod:4411
13618 #, no-wrap
13619 msgid ""
13620 " sfdisk-disk-geometry device\n"
13621 "\n"
13622 msgstr ""
13623
13624 #. type: textblock
13625 #: ../fish/guestfish-actions.pod:4413
13626 msgid ""
13627 "This displays the disk geometry of C<device> read from the partition table.  "
13628 "Especially in the case where the underlying block device has been resized, "
13629 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
13630 "kernel-geometry>)."
13631 msgstr ""
13632
13633 #. type: textblock
13634 #: ../fish/guestfish-actions.pod:4418 ../fish/guestfish-actions.pod:4427
13635 #: ../src/guestfs-actions.pod:6629 ../src/guestfs-actions.pod:6645
13636 msgid "The result is in human-readable format, and not designed to be parsed."
13637 msgstr ""
13638
13639 #. type: =head2
13640 #: ../fish/guestfish-actions.pod:4421
13641 msgid "sfdisk-kernel-geometry"
13642 msgstr ""
13643
13644 #. type: verbatim
13645 #: ../fish/guestfish-actions.pod:4423
13646 #, no-wrap
13647 msgid ""
13648 " sfdisk-kernel-geometry device\n"
13649 "\n"
13650 msgstr ""
13651
13652 #. type: textblock
13653 #: ../fish/guestfish-actions.pod:4425 ../src/guestfs-actions.pod:6643
13654 msgid "This displays the kernel's idea of the geometry of C<device>."
13655 msgstr ""
13656
13657 #. type: =head2
13658 #: ../fish/guestfish-actions.pod:4430
13659 msgid "sfdisk-l"
13660 msgstr ""
13661
13662 #. type: verbatim
13663 #: ../fish/guestfish-actions.pod:4432
13664 #, no-wrap
13665 msgid ""
13666 " sfdisk-l device\n"
13667 "\n"
13668 msgstr ""
13669
13670 #. type: textblock
13671 #: ../fish/guestfish-actions.pod:4434 ../src/guestfs-actions.pod:6659
13672 msgid ""
13673 "This displays the partition table on C<device>, in the human-readable output "
13674 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
13675 msgstr ""
13676
13677 #. type: textblock
13678 #: ../fish/guestfish-actions.pod:4438
13679 msgid "See also: L</part-list>"
13680 msgstr ""
13681
13682 #. type: textblock
13683 #: ../fish/guestfish-actions.pod:4440
13684 msgid ""
13685 "This function is deprecated.  In new code, use the L</part_list> call "
13686 "instead."
13687 msgstr ""
13688
13689 #. type: =head2
13690 #: ../fish/guestfish-actions.pod:4447
13691 msgid "sh"
13692 msgstr ""
13693
13694 #. type: verbatim
13695 #: ../fish/guestfish-actions.pod:4449
13696 #, no-wrap
13697 msgid ""
13698 " sh command\n"
13699 "\n"
13700 msgstr ""
13701
13702 #. type: textblock
13703 #: ../fish/guestfish-actions.pod:4451 ../src/guestfs-actions.pod:6683
13704 msgid ""
13705 "This call runs a command from the guest filesystem via the guest's C</bin/"
13706 "sh>."
13707 msgstr ""
13708
13709 #. type: textblock
13710 #: ../fish/guestfish-actions.pod:4454
13711 msgid "This is like L</command>, but passes the command to:"
13712 msgstr ""
13713
13714 #. type: verbatim
13715 #: ../fish/guestfish-actions.pod:4456 ../src/guestfs-actions.pod:6688
13716 #, no-wrap
13717 msgid ""
13718 " /bin/sh -c \"command\"\n"
13719 "\n"
13720 msgstr ""
13721
13722 #. type: textblock
13723 #: ../fish/guestfish-actions.pod:4458 ../src/guestfs-actions.pod:6690
13724 msgid ""
13725 "Depending on the guest's shell, this usually results in wildcards being "
13726 "expanded, shell expressions being interpolated and so on."
13727 msgstr ""
13728
13729 #. type: textblock
13730 #: ../fish/guestfish-actions.pod:4462
13731 msgid "All the provisos about L</command> apply to this call."
13732 msgstr ""
13733
13734 #. type: =head2
13735 #: ../fish/guestfish-actions.pod:4464
13736 msgid "sh-lines"
13737 msgstr ""
13738
13739 #. type: verbatim
13740 #: ../fish/guestfish-actions.pod:4466
13741 #, no-wrap
13742 msgid ""
13743 " sh-lines command\n"
13744 "\n"
13745 msgstr ""
13746
13747 #. type: textblock
13748 #: ../fish/guestfish-actions.pod:4468
13749 msgid "This is the same as L</sh>, but splits the result into a list of lines."
13750 msgstr ""
13751
13752 #. type: textblock
13753 #: ../fish/guestfish-actions.pod:4471
13754 msgid "See also: L</command-lines>"
13755 msgstr ""
13756
13757 #. type: =head2
13758 #: ../fish/guestfish-actions.pod:4473
13759 msgid "sleep"
13760 msgstr ""
13761
13762 #. type: verbatim
13763 #: ../fish/guestfish-actions.pod:4475
13764 #, no-wrap
13765 msgid ""
13766 " sleep secs\n"
13767 "\n"
13768 msgstr ""
13769
13770 #. type: textblock
13771 #: ../fish/guestfish-actions.pod:4477 ../src/guestfs-actions.pod:6724
13772 msgid "Sleep for C<secs> seconds."
13773 msgstr ""
13774
13775 #. type: =head2
13776 #: ../fish/guestfish-actions.pod:4479
13777 msgid "stat"
13778 msgstr ""
13779
13780 #. type: verbatim
13781 #: ../fish/guestfish-actions.pod:4481
13782 #, no-wrap
13783 msgid ""
13784 " stat path\n"
13785 "\n"
13786 msgstr ""
13787
13788 #. type: textblock
13789 #: ../fish/guestfish-actions.pod:4485 ../src/guestfs-actions.pod:6738
13790 msgid "This is the same as the C<stat(2)> system call."
13791 msgstr ""
13792
13793 #. type: =head2
13794 #: ../fish/guestfish-actions.pod:4487
13795 msgid "statvfs"
13796 msgstr ""
13797
13798 #. type: verbatim
13799 #: ../fish/guestfish-actions.pod:4489
13800 #, no-wrap
13801 msgid ""
13802 " statvfs path\n"
13803 "\n"
13804 msgstr ""
13805
13806 #. type: textblock
13807 #: ../fish/guestfish-actions.pod:4491 ../src/guestfs-actions.pod:6752
13808 msgid ""
13809 "Returns file system statistics for any mounted file system.  C<path> should "
13810 "be a file or directory in the mounted file system (typically it is the mount "
13811 "point itself, but it doesn't need to be)."
13812 msgstr ""
13813
13814 #. type: textblock
13815 #: ../fish/guestfish-actions.pod:4495 ../src/guestfs-actions.pod:6756
13816 msgid "This is the same as the C<statvfs(2)> system call."
13817 msgstr ""
13818
13819 #. type: =head2
13820 #: ../fish/guestfish-actions.pod:4497
13821 msgid "strings"
13822 msgstr ""
13823
13824 #. type: verbatim
13825 #: ../fish/guestfish-actions.pod:4499
13826 #, no-wrap
13827 msgid ""
13828 " strings path\n"
13829 "\n"
13830 msgstr ""
13831
13832 #. type: textblock
13833 #: ../fish/guestfish-actions.pod:4501 ../src/guestfs-actions.pod:6770
13834 msgid ""
13835 "This runs the L<strings(1)> command on a file and returns the list of "
13836 "printable strings found."
13837 msgstr ""
13838
13839 #. type: =head2
13840 #: ../fish/guestfish-actions.pod:4507
13841 msgid "strings-e"
13842 msgstr ""
13843
13844 #. type: verbatim
13845 #: ../fish/guestfish-actions.pod:4509
13846 #, no-wrap
13847 msgid ""
13848 " strings-e encoding path\n"
13849 "\n"
13850 msgstr ""
13851
13852 #. type: textblock
13853 #: ../fish/guestfish-actions.pod:4511
13854 msgid ""
13855 "This is like the L</strings> command, but allows you to specify the encoding "
13856 "of strings that are looked for in the source file C<path>."
13857 msgstr ""
13858
13859 #. type: textblock
13860 #: ../fish/guestfish-actions.pod:4515 ../src/guestfs-actions.pod:6793
13861 msgid "Allowed encodings are:"
13862 msgstr ""
13863
13864 #. type: =item
13865 #: ../fish/guestfish-actions.pod:4519 ../src/guestfs-actions.pod:6797
13866 msgid "s"
13867 msgstr ""
13868
13869 #. type: textblock
13870 #: ../fish/guestfish-actions.pod:4521
13871 msgid ""
13872 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
13873 "ISO-8859-X (this is what L</strings> uses)."
13874 msgstr ""
13875
13876 #. type: =item
13877 #: ../fish/guestfish-actions.pod:4524 ../src/guestfs-actions.pod:6802
13878 msgid "S"
13879 msgstr ""
13880
13881 #. type: textblock
13882 #: ../fish/guestfish-actions.pod:4526 ../src/guestfs-actions.pod:6804
13883 msgid "Single 8-bit-byte characters."
13884 msgstr ""
13885
13886 #. type: =item
13887 #: ../fish/guestfish-actions.pod:4528 ../src/guestfs-actions.pod:6806
13888 msgid "b"
13889 msgstr ""
13890
13891 #. type: textblock
13892 #: ../fish/guestfish-actions.pod:4530 ../src/guestfs-actions.pod:6808
13893 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
13894 msgstr ""
13895
13896 #. type: =item
13897 #: ../fish/guestfish-actions.pod:4533 ../src/guestfs-actions.pod:6811
13898 msgid "l (lower case letter L)"
13899 msgstr ""
13900
13901 #. type: textblock
13902 #: ../fish/guestfish-actions.pod:4535 ../src/guestfs-actions.pod:6813
13903 msgid ""
13904 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
13905 "examining binaries in Windows guests."
13906 msgstr ""
13907
13908 #. type: =item
13909 #: ../fish/guestfish-actions.pod:4538 ../src/guestfs-actions.pod:6816
13910 msgid "B"
13911 msgstr ""
13912
13913 #. type: textblock
13914 #: ../fish/guestfish-actions.pod:4540 ../src/guestfs-actions.pod:6818
13915 msgid "32-bit big endian such as UCS-4BE."
13916 msgstr ""
13917
13918 #. type: =item
13919 #: ../fish/guestfish-actions.pod:4542 ../src/guestfs-actions.pod:6820
13920 msgid "L"
13921 msgstr ""
13922
13923 #. type: textblock
13924 #: ../fish/guestfish-actions.pod:4544 ../src/guestfs-actions.pod:6822
13925 msgid "32-bit little endian such as UCS-4LE."
13926 msgstr ""
13927
13928 #. type: textblock
13929 #: ../fish/guestfish-actions.pod:4548 ../src/guestfs-actions.pod:6826
13930 msgid "The returned strings are transcoded to UTF-8."
13931 msgstr ""
13932
13933 #. type: =head2
13934 #: ../fish/guestfish-actions.pod:4553
13935 msgid "swapoff-device"
13936 msgstr ""
13937
13938 #. type: verbatim
13939 #: ../fish/guestfish-actions.pod:4555
13940 #, no-wrap
13941 msgid ""
13942 " swapoff-device device\n"
13943 "\n"
13944 msgstr ""
13945
13946 #. type: textblock
13947 #: ../fish/guestfish-actions.pod:4557
13948 msgid ""
13949 "This command disables the libguestfs appliance swap device or partition "
13950 "named C<device>.  See L</swapon-device>."
13951 msgstr ""
13952
13953 #. type: =head2
13954 #: ../fish/guestfish-actions.pod:4561
13955 msgid "swapoff-file"
13956 msgstr ""
13957
13958 #. type: verbatim
13959 #: ../fish/guestfish-actions.pod:4563
13960 #, no-wrap
13961 msgid ""
13962 " swapoff-file file\n"
13963 "\n"
13964 msgstr ""
13965
13966 #. type: textblock
13967 #: ../fish/guestfish-actions.pod:4565 ../src/guestfs-actions.pod:6857
13968 msgid "This command disables the libguestfs appliance swap on file."
13969 msgstr ""
13970
13971 #. type: =head2
13972 #: ../fish/guestfish-actions.pod:4567
13973 msgid "swapoff-label"
13974 msgstr ""
13975
13976 #. type: verbatim
13977 #: ../fish/guestfish-actions.pod:4569
13978 #, no-wrap
13979 msgid ""
13980 " swapoff-label label\n"
13981 "\n"
13982 msgstr ""
13983
13984 #. type: textblock
13985 #: ../fish/guestfish-actions.pod:4571 ../src/guestfs-actions.pod:6869
13986 msgid ""
13987 "This command disables the libguestfs appliance swap on labeled swap "
13988 "partition."
13989 msgstr ""
13990
13991 #. type: =head2
13992 #: ../fish/guestfish-actions.pod:4574
13993 msgid "swapoff-uuid"
13994 msgstr ""
13995
13996 #. type: verbatim
13997 #: ../fish/guestfish-actions.pod:4576
13998 #, no-wrap
13999 msgid ""
14000 " swapoff-uuid uuid\n"
14001 "\n"
14002 msgstr ""
14003
14004 #. type: textblock
14005 #: ../fish/guestfish-actions.pod:4578 ../src/guestfs-actions.pod:6882
14006 msgid ""
14007 "This command disables the libguestfs appliance swap partition with the given "
14008 "UUID."
14009 msgstr ""
14010
14011 #. type: =head2
14012 #: ../fish/guestfish-actions.pod:4581
14013 msgid "swapon-device"
14014 msgstr ""
14015
14016 #. type: verbatim
14017 #: ../fish/guestfish-actions.pod:4583
14018 #, no-wrap
14019 msgid ""
14020 " swapon-device device\n"
14021 "\n"
14022 msgstr ""
14023
14024 #. type: textblock
14025 #: ../fish/guestfish-actions.pod:4585
14026 msgid ""
14027 "This command enables the libguestfs appliance to use the swap device or "
14028 "partition named C<device>.  The increased memory is made available for all "
14029 "commands, for example those run using L</command> or L</sh>."
14030 msgstr ""
14031
14032 #. type: textblock
14033 #: ../fish/guestfish-actions.pod:4590 ../src/guestfs-actions.pod:6900
14034 msgid ""
14035 "Note that you should not swap to existing guest swap partitions unless you "
14036 "know what you are doing.  They may contain hibernation information, or other "
14037 "information that the guest doesn't want you to trash.  You also risk leaking "
14038 "information about the host to the guest this way.  Instead, attach a new "
14039 "host device to the guest and swap on that."
14040 msgstr ""
14041
14042 #. type: =head2
14043 #: ../fish/guestfish-actions.pod:4597
14044 msgid "swapon-file"
14045 msgstr ""
14046
14047 #. type: verbatim
14048 #: ../fish/guestfish-actions.pod:4599
14049 #, no-wrap
14050 msgid ""
14051 " swapon-file file\n"
14052 "\n"
14053 msgstr ""
14054
14055 #. type: textblock
14056 #: ../fish/guestfish-actions.pod:4601
14057 msgid ""
14058 "This command enables swap to a file.  See L</swapon-device> for other notes."
14059 msgstr ""
14060
14061 #. type: =head2
14062 #: ../fish/guestfish-actions.pod:4604
14063 msgid "swapon-label"
14064 msgstr ""
14065
14066 #. type: verbatim
14067 #: ../fish/guestfish-actions.pod:4606
14068 #, no-wrap
14069 msgid ""
14070 " swapon-label label\n"
14071 "\n"
14072 msgstr ""
14073
14074 #. type: textblock
14075 #: ../fish/guestfish-actions.pod:4608
14076 msgid ""
14077 "This command enables swap to a labeled swap partition.  See L</swapon-"
14078 "device> for other notes."
14079 msgstr ""
14080
14081 #. type: =head2
14082 #: ../fish/guestfish-actions.pod:4611
14083 msgid "swapon-uuid"
14084 msgstr ""
14085
14086 #. type: verbatim
14087 #: ../fish/guestfish-actions.pod:4613
14088 #, no-wrap
14089 msgid ""
14090 " swapon-uuid uuid\n"
14091 "\n"
14092 msgstr ""
14093
14094 #. type: textblock
14095 #: ../fish/guestfish-actions.pod:4615
14096 msgid ""
14097 "This command enables swap to a swap partition with the given UUID.  See L</"
14098 "swapon-device> for other notes."
14099 msgstr ""
14100
14101 #. type: =head2
14102 #: ../fish/guestfish-actions.pod:4618
14103 msgid "sync"
14104 msgstr ""
14105
14106 #. type: verbatim
14107 #: ../fish/guestfish-actions.pod:4620
14108 #, no-wrap
14109 msgid ""
14110 " sync\n"
14111 "\n"
14112 msgstr ""
14113
14114 #. type: textblock
14115 #: ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:6955
14116 msgid ""
14117 "This syncs the disk, so that any writes are flushed through to the "
14118 "underlying disk image."
14119 msgstr ""
14120
14121 #. type: textblock
14122 #: ../fish/guestfish-actions.pod:4625 ../src/guestfs-actions.pod:6958
14123 msgid ""
14124 "You should always call this if you have modified a disk image, before "
14125 "closing the handle."
14126 msgstr ""
14127
14128 #. type: =head2
14129 #: ../fish/guestfish-actions.pod:4628
14130 msgid "tail"
14131 msgstr ""
14132
14133 #. type: verbatim
14134 #: ../fish/guestfish-actions.pod:4630
14135 #, no-wrap
14136 msgid ""
14137 " tail path\n"
14138 "\n"
14139 msgstr ""
14140
14141 #. type: textblock
14142 #: ../fish/guestfish-actions.pod:4632 ../src/guestfs-actions.pod:6971
14143 msgid ""
14144 "This command returns up to the last 10 lines of a file as a list of strings."
14145 msgstr ""
14146
14147 #. type: =head2
14148 #: ../fish/guestfish-actions.pod:4638
14149 msgid "tail-n"
14150 msgstr ""
14151
14152 #. type: verbatim
14153 #: ../fish/guestfish-actions.pod:4640
14154 #, no-wrap
14155 msgid ""
14156 " tail-n nrlines path\n"
14157 "\n"
14158 msgstr ""
14159
14160 #. type: textblock
14161 #: ../fish/guestfish-actions.pod:4642 ../src/guestfs-actions.pod:6990
14162 msgid ""
14163 "If the parameter C<nrlines> is a positive number, this returns the last "
14164 "C<nrlines> lines of the file C<path>."
14165 msgstr ""
14166
14167 #. type: textblock
14168 #: ../fish/guestfish-actions.pod:4645 ../src/guestfs-actions.pod:6993
14169 msgid ""
14170 "If the parameter C<nrlines> is a negative number, this returns lines from "
14171 "the file C<path>, starting with the C<-nrlines>th line."
14172 msgstr ""
14173
14174 #. type: =head2
14175 #: ../fish/guestfish-actions.pod:4653
14176 msgid "tar-in"
14177 msgstr ""
14178
14179 #. type: verbatim
14180 #: ../fish/guestfish-actions.pod:4655
14181 #, no-wrap
14182 msgid ""
14183 " tar-in (tarfile|-) directory\n"
14184 "\n"
14185 msgstr ""
14186
14187 #. type: textblock
14188 #: ../fish/guestfish-actions.pod:4657 ../src/guestfs-actions.pod:7014
14189 msgid ""
14190 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14191 "tar file) into C<directory>."
14192 msgstr ""
14193
14194 #. type: textblock
14195 #: ../fish/guestfish-actions.pod:4660
14196 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
14197 msgstr ""
14198
14199 #. type: =head2
14200 #: ../fish/guestfish-actions.pod:4665
14201 msgid "tar-out"
14202 msgstr ""
14203
14204 #. type: verbatim
14205 #: ../fish/guestfish-actions.pod:4667
14206 #, no-wrap
14207 msgid ""
14208 " tar-out directory (tarfile|-)\n"
14209 "\n"
14210 msgstr ""
14211
14212 #. type: textblock
14213 #: ../fish/guestfish-actions.pod:4669 ../src/guestfs-actions.pod:7031
14214 msgid ""
14215 "This command packs the contents of C<directory> and downloads it to local "
14216 "file C<tarfile>."
14217 msgstr ""
14218
14219 #. type: textblock
14220 #: ../fish/guestfish-actions.pod:4672
14221 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
14222 msgstr ""
14223
14224 #. type: =head2
14225 #: ../fish/guestfish-actions.pod:4677
14226 msgid "tgz-in"
14227 msgstr ""
14228
14229 #. type: verbatim
14230 #: ../fish/guestfish-actions.pod:4679
14231 #, no-wrap
14232 msgid ""
14233 " tgz-in (tarball|-) directory\n"
14234 "\n"
14235 msgstr ""
14236
14237 #. type: textblock
14238 #: ../fish/guestfish-actions.pod:4681 ../src/guestfs-actions.pod:7048
14239 msgid ""
14240 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14241 "tar file) into C<directory>."
14242 msgstr ""
14243
14244 #. type: textblock
14245 #: ../fish/guestfish-actions.pod:4684
14246 msgid "To upload an uncompressed tarball, use L</tar-in>."
14247 msgstr ""
14248
14249 #. type: =head2
14250 #: ../fish/guestfish-actions.pod:4688
14251 msgid "tgz-out"
14252 msgstr ""
14253
14254 #. type: verbatim
14255 #: ../fish/guestfish-actions.pod:4690
14256 #, no-wrap
14257 msgid ""
14258 " tgz-out directory (tarball|-)\n"
14259 "\n"
14260 msgstr ""
14261
14262 #. type: textblock
14263 #: ../fish/guestfish-actions.pod:4692 ../src/guestfs-actions.pod:7064
14264 msgid ""
14265 "This command packs the contents of C<directory> and downloads it to local "
14266 "file C<tarball>."
14267 msgstr ""
14268
14269 #. type: textblock
14270 #: ../fish/guestfish-actions.pod:4695
14271 msgid "To download an uncompressed tarball, use L</tar-out>."
14272 msgstr ""
14273
14274 #. type: =head2
14275 #: ../fish/guestfish-actions.pod:4699
14276 msgid "touch"
14277 msgstr ""
14278
14279 #. type: verbatim
14280 #: ../fish/guestfish-actions.pod:4701
14281 #, no-wrap
14282 msgid ""
14283 " touch path\n"
14284 "\n"
14285 msgstr ""
14286
14287 #. type: textblock
14288 #: ../fish/guestfish-actions.pod:4703 ../src/guestfs-actions.pod:7079
14289 msgid ""
14290 "Touch acts like the L<touch(1)> command.  It can be used to update the "
14291 "timestamps on a file, or, if the file does not exist, to create a new zero-"
14292 "length file."
14293 msgstr ""
14294
14295 #. type: textblock
14296 #: ../fish/guestfish-actions.pod:4707 ../src/guestfs-actions.pod:7083
14297 msgid ""
14298 "This command only works on regular files, and will fail on other file types "
14299 "such as directories, symbolic links, block special etc."
14300 msgstr ""
14301
14302 #. type: =head2
14303 #: ../fish/guestfish-actions.pod:4710
14304 msgid "truncate"
14305 msgstr ""
14306
14307 #. type: verbatim
14308 #: ../fish/guestfish-actions.pod:4712
14309 #, no-wrap
14310 msgid ""
14311 " truncate path\n"
14312 "\n"
14313 msgstr ""
14314
14315 #. type: textblock
14316 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7096
14317 msgid ""
14318 "This command truncates C<path> to a zero-length file.  The file must exist "
14319 "already."
14320 msgstr ""
14321
14322 #. type: =head2
14323 #: ../fish/guestfish-actions.pod:4717
14324 msgid "truncate-size"
14325 msgstr ""
14326
14327 #. type: verbatim
14328 #: ../fish/guestfish-actions.pod:4719
14329 #, no-wrap
14330 msgid ""
14331 " truncate-size path size\n"
14332 "\n"
14333 msgstr ""
14334
14335 #. type: textblock
14336 #: ../fish/guestfish-actions.pod:4721 ../src/guestfs-actions.pod:7110
14337 msgid ""
14338 "This command truncates C<path> to size C<size> bytes.  The file must exist "
14339 "already."
14340 msgstr ""
14341
14342 #. type: textblock
14343 #: ../fish/guestfish-actions.pod:4724
14344 msgid ""
14345 "If the current file size is less than C<size> then the file is extended to "
14346 "the required size with zero bytes.  This creates a sparse file (ie. disk "
14347 "blocks are not allocated for the file until you write to it).  To create a "
14348 "non-sparse file of zeroes, use L</fallocate64> instead."
14349 msgstr ""
14350
14351 #. type: =head2
14352 #: ../fish/guestfish-actions.pod:4730
14353 msgid "tune2fs-l"
14354 msgstr ""
14355
14356 #. type: verbatim
14357 #: ../fish/guestfish-actions.pod:4732
14358 #, no-wrap
14359 msgid ""
14360 " tune2fs-l device\n"
14361 "\n"
14362 msgstr ""
14363
14364 #. type: textblock
14365 #: ../fish/guestfish-actions.pod:4734 ../src/guestfs-actions.pod:7129
14366 msgid ""
14367 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
14368 "C<device>."
14369 msgstr ""
14370
14371 #. type: textblock
14372 #: ../fish/guestfish-actions.pod:4737 ../src/guestfs-actions.pod:7132
14373 msgid ""
14374 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
14375 "for more details.  The list of fields returned isn't clearly defined, and "
14376 "depends on both the version of C<tune2fs> that libguestfs was built against, "
14377 "and the filesystem itself."
14378 msgstr ""
14379
14380 #. type: =head2
14381 #: ../fish/guestfish-actions.pod:4742
14382 msgid "txz-in"
14383 msgstr ""
14384
14385 #. type: verbatim
14386 #: ../fish/guestfish-actions.pod:4744
14387 #, no-wrap
14388 msgid ""
14389 " txz-in (tarball|-) directory\n"
14390 "\n"
14391 msgstr ""
14392
14393 #. type: textblock
14394 #: ../fish/guestfish-actions.pod:4746 ../src/guestfs-actions.pod:7152
14395 msgid ""
14396 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
14397 "tar file) into C<directory>."
14398 msgstr ""
14399
14400 #. type: =head2
14401 #: ../fish/guestfish-actions.pod:4751
14402 msgid "txz-out"
14403 msgstr ""
14404
14405 #. type: verbatim
14406 #: ../fish/guestfish-actions.pod:4753
14407 #, no-wrap
14408 msgid ""
14409 " txz-out directory (tarball|-)\n"
14410 "\n"
14411 msgstr ""
14412
14413 #. type: textblock
14414 #: ../fish/guestfish-actions.pod:4755 ../src/guestfs-actions.pod:7166
14415 msgid ""
14416 "This command packs the contents of C<directory> and downloads it to local "
14417 "file C<tarball> (as an xz compressed tar archive)."
14418 msgstr ""
14419
14420 #. type: =head2
14421 #: ../fish/guestfish-actions.pod:4760
14422 msgid "umask"
14423 msgstr ""
14424
14425 #. type: verbatim
14426 #: ../fish/guestfish-actions.pod:4762
14427 #, no-wrap
14428 msgid ""
14429 " umask mask\n"
14430 "\n"
14431 msgstr ""
14432
14433 #. type: textblock
14434 #: ../fish/guestfish-actions.pod:4764 ../src/guestfs-actions.pod:7179
14435 msgid ""
14436 "This function sets the mask used for creating new files and device nodes to "
14437 "C<mask & 0777>."
14438 msgstr ""
14439
14440 #. type: textblock
14441 #: ../fish/guestfish-actions.pod:4767 ../src/guestfs-actions.pod:7182
14442 msgid ""
14443 "Typical umask values would be C<022> which creates new files with "
14444 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
14445 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
14446 msgstr ""
14447
14448 #. type: textblock
14449 #: ../fish/guestfish-actions.pod:4772 ../src/guestfs-actions.pod:7187
14450 msgid ""
14451 "The default umask is C<022>.  This is important because it means that "
14452 "directories and device nodes will be created with C<0644> or C<0755> mode "
14453 "even if you specify C<0777>."
14454 msgstr ""
14455
14456 #. type: textblock
14457 #: ../fish/guestfish-actions.pod:4776
14458 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
14459 msgstr ""
14460
14461 #. type: textblock
14462 #: ../fish/guestfish-actions.pod:4779 ../src/guestfs-actions.pod:7194
14463 msgid "This call returns the previous umask."
14464 msgstr ""
14465
14466 #. type: =head2
14467 #: ../fish/guestfish-actions.pod:4781
14468 msgid "umount"
14469 msgstr ""
14470
14471 #. type: =head2
14472 #: ../fish/guestfish-actions.pod:4783
14473 msgid "unmount"
14474 msgstr ""
14475
14476 #. type: verbatim
14477 #: ../fish/guestfish-actions.pod:4785
14478 #, no-wrap
14479 msgid ""
14480 " umount pathordevice\n"
14481 "\n"
14482 msgstr ""
14483
14484 #. type: textblock
14485 #: ../fish/guestfish-actions.pod:4787 ../src/guestfs-actions.pod:7206
14486 msgid ""
14487 "This unmounts the given filesystem.  The filesystem may be specified either "
14488 "by its mountpoint (path) or the device which contains the filesystem."
14489 msgstr ""
14490
14491 #. type: =head2
14492 #: ../fish/guestfish-actions.pod:4791
14493 msgid "umount-all"
14494 msgstr ""
14495
14496 #. type: =head2
14497 #: ../fish/guestfish-actions.pod:4793
14498 msgid "unmount-all"
14499 msgstr ""
14500
14501 #. type: verbatim
14502 #: ../fish/guestfish-actions.pod:4795
14503 #, no-wrap
14504 msgid ""
14505 " umount-all\n"
14506 "\n"
14507 msgstr ""
14508
14509 #. type: textblock
14510 #: ../fish/guestfish-actions.pod:4797 ../src/guestfs-actions.pod:7219
14511 msgid "This unmounts all mounted filesystems."
14512 msgstr ""
14513
14514 #. type: textblock
14515 #: ../fish/guestfish-actions.pod:4799 ../src/guestfs-actions.pod:7221
14516 msgid "Some internal mounts are not unmounted by this call."
14517 msgstr ""
14518
14519 #. type: =head2
14520 #: ../fish/guestfish-actions.pod:4801
14521 msgid "upload"
14522 msgstr ""
14523
14524 #. type: verbatim
14525 #: ../fish/guestfish-actions.pod:4803
14526 #, no-wrap
14527 msgid ""
14528 " upload (filename|-) remotefilename\n"
14529 "\n"
14530 msgstr ""
14531
14532 #. type: textblock
14533 #: ../fish/guestfish-actions.pod:4805 ../fish/guestfish-actions.pod:4818
14534 #: ../src/guestfs-actions.pod:7234 ../src/guestfs-actions.pod:7258
14535 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
14536 msgstr ""
14537
14538 #. type: textblock
14539 #: ../fish/guestfish-actions.pod:4810
14540 msgid "See also L</download>."
14541 msgstr ""
14542
14543 #. type: =head2
14544 #: ../fish/guestfish-actions.pod:4814
14545 msgid "upload-offset"
14546 msgstr ""
14547
14548 #. type: verbatim
14549 #: ../fish/guestfish-actions.pod:4816
14550 #, no-wrap
14551 msgid ""
14552 " upload-offset (filename|-) remotefilename offset\n"
14553 "\n"
14554 msgstr ""
14555
14556 #. type: textblock
14557 #: ../fish/guestfish-actions.pod:4821 ../src/guestfs-actions.pod:7261
14558 msgid ""
14559 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
14560 "The intention is to overwrite parts of existing files or devices, although "
14561 "if a non-existant file is specified then it is created with a \"hole\" "
14562 "before C<offset>.  The size of the data written is implicit in the size of "
14563 "the source C<filename>."
14564 msgstr ""
14565
14566 #. type: textblock
14567 #: ../fish/guestfish-actions.pod:4828
14568 msgid ""
14569 "Note that there is no limit on the amount of data that can be uploaded with "
14570 "this call, unlike with L</pwrite>, and this call always writes the full "
14571 "amount unless an error occurs."
14572 msgstr ""
14573
14574 #. type: textblock
14575 #: ../fish/guestfish-actions.pod:4833
14576 msgid "See also L</upload>, L</pwrite>."
14577 msgstr ""
14578
14579 #. type: =head2
14580 #: ../fish/guestfish-actions.pod:4837
14581 msgid "utimens"
14582 msgstr ""
14583
14584 #. type: verbatim
14585 #: ../fish/guestfish-actions.pod:4839
14586 #, no-wrap
14587 msgid ""
14588 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
14589 "\n"
14590 msgstr ""
14591
14592 #. type: textblock
14593 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7294
14594 msgid "This command sets the timestamps of a file with nanosecond precision."
14595 msgstr ""
14596
14597 #. type: textblock
14598 #: ../fish/guestfish-actions.pod:4844 ../src/guestfs-actions.pod:7297
14599 msgid ""
14600 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
14601 "from the epoch."
14602 msgstr ""
14603
14604 #. type: textblock
14605 #: ../fish/guestfish-actions.pod:4847 ../src/guestfs-actions.pod:7300
14606 msgid ""
14607 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
14608 "nanoseconds from the epoch."
14609 msgstr ""
14610
14611 #. type: textblock
14612 #: ../fish/guestfish-actions.pod:4850 ../src/guestfs-actions.pod:7303
14613 msgid ""
14614 "If the C<*nsecs> field contains the special value C<-1> then the "
14615 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
14616 "ignored in this case)."
14617 msgstr ""
14618
14619 #. type: textblock
14620 #: ../fish/guestfish-actions.pod:4854 ../src/guestfs-actions.pod:7307
14621 msgid ""
14622 "If the C<*nsecs> field contains the special value C<-2> then the "
14623 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
14624 "in this case)."
14625 msgstr ""
14626
14627 #. type: =head2
14628 #: ../fish/guestfish-actions.pod:4858
14629 msgid "version"
14630 msgstr ""
14631
14632 #. type: verbatim
14633 #: ../fish/guestfish-actions.pod:4860
14634 #, no-wrap
14635 msgid ""
14636 " version\n"
14637 "\n"
14638 msgstr ""
14639
14640 #. type: textblock
14641 #: ../fish/guestfish-actions.pod:4862 ../src/guestfs-actions.pod:7320
14642 msgid ""
14643 "Return the libguestfs version number that the program is linked against."
14644 msgstr ""
14645
14646 #. type: textblock
14647 #: ../fish/guestfish-actions.pod:4865 ../src/guestfs-actions.pod:7323
14648 msgid ""
14649 "Note that because of dynamic linking this is not necessarily the version of "
14650 "libguestfs that you compiled against.  You can compile the program, and then "
14651 "at runtime dynamically link against a completely different C<libguestfs.so> "
14652 "library."
14653 msgstr ""
14654
14655 #. type: textblock
14656 #: ../fish/guestfish-actions.pod:4870 ../src/guestfs-actions.pod:7328
14657 msgid ""
14658 "This call was added in version C<1.0.58>.  In previous versions of "
14659 "libguestfs there was no way to get the version number.  From C code you can "
14660 "use dynamic linker functions to find out if this symbol exists (if it "
14661 "doesn't, then it's an earlier version)."
14662 msgstr ""
14663
14664 #. type: textblock
14665 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7334
14666 msgid ""
14667 "The call returns a structure with four elements.  The first three (C<major>, "
14668 "C<minor> and C<release>) are numbers and correspond to the usual version "
14669 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
14670 "but may be used for distro-specific information."
14671 msgstr ""
14672
14673 #. type: textblock
14674 #: ../fish/guestfish-actions.pod:4882 ../src/guestfs-actions.pod:7340
14675 msgid ""
14676 "To construct the original version string: C<$major.$minor.$release$extra>"
14677 msgstr ""
14678
14679 #. type: textblock
14680 #: ../fish/guestfish-actions.pod:4885 ../src/guestfs-actions.pod:7343
14681 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
14682 msgstr ""
14683
14684 #. type: textblock
14685 #: ../fish/guestfish-actions.pod:4887
14686 msgid ""
14687 "I<Note:> Don't use this call to test for availability of features.  In "
14688 "enterprise distributions we backport features from later versions into "
14689 "earlier versions, making this an unreliable way to test for features.  Use "
14690 "L</available> instead."
14691 msgstr ""
14692
14693 #. type: =head2
14694 #: ../fish/guestfish-actions.pod:4893
14695 msgid "vfs-label"
14696 msgstr ""
14697
14698 #. type: verbatim
14699 #: ../fish/guestfish-actions.pod:4895
14700 #, no-wrap
14701 msgid ""
14702 " vfs-label device\n"
14703 "\n"
14704 msgstr ""
14705
14706 #. type: textblock
14707 #: ../fish/guestfish-actions.pod:4897 ../src/guestfs-actions.pod:7363
14708 msgid "This returns the filesystem label of the filesystem on C<device>."
14709 msgstr ""
14710
14711 #. type: textblock
14712 #: ../fish/guestfish-actions.pod:4900 ../src/guestfs-actions.pod:7366
14713 msgid "If the filesystem is unlabeled, this returns the empty string."
14714 msgstr ""
14715
14716 #. type: textblock
14717 #: ../fish/guestfish-actions.pod:4902
14718 msgid "To find a filesystem from the label, use L</findfs-label>."
14719 msgstr ""
14720
14721 #. type: =head2
14722 #: ../fish/guestfish-actions.pod:4904
14723 msgid "vfs-type"
14724 msgstr ""
14725
14726 #. type: verbatim
14727 #: ../fish/guestfish-actions.pod:4906
14728 #, no-wrap
14729 msgid ""
14730 " vfs-type device\n"
14731 "\n"
14732 msgstr ""
14733
14734 #. type: textblock
14735 #: ../fish/guestfish-actions.pod:4908 ../src/guestfs-actions.pod:7381
14736 msgid ""
14737 "This command gets the filesystem type corresponding to the filesystem on "
14738 "C<device>."
14739 msgstr ""
14740
14741 #. type: textblock
14742 #: ../fish/guestfish-actions.pod:4911 ../src/guestfs-actions.pod:7384
14743 msgid ""
14744 "For most filesystems, the result is the name of the Linux VFS module which "
14745 "would be used to mount this filesystem if you mounted it without specifying "
14746 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
14747 msgstr ""
14748
14749 #. type: =head2
14750 #: ../fish/guestfish-actions.pod:4916
14751 msgid "vfs-uuid"
14752 msgstr ""
14753
14754 #. type: verbatim
14755 #: ../fish/guestfish-actions.pod:4918
14756 #, no-wrap
14757 msgid ""
14758 " vfs-uuid device\n"
14759 "\n"
14760 msgstr ""
14761
14762 #. type: textblock
14763 #: ../fish/guestfish-actions.pod:4920 ../src/guestfs-actions.pod:7400
14764 msgid "This returns the filesystem UUID of the filesystem on C<device>."
14765 msgstr ""
14766
14767 #. type: textblock
14768 #: ../fish/guestfish-actions.pod:4923 ../src/guestfs-actions.pod:7403
14769 msgid "If the filesystem does not have a UUID, this returns the empty string."
14770 msgstr ""
14771
14772 #. type: textblock
14773 #: ../fish/guestfish-actions.pod:4925
14774 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
14775 msgstr ""
14776
14777 #. type: =head2
14778 #: ../fish/guestfish-actions.pod:4927
14779 msgid "vg-activate"
14780 msgstr ""
14781
14782 #. type: verbatim
14783 #: ../fish/guestfish-actions.pod:4929
14784 #, no-wrap
14785 msgid ""
14786 " vg-activate true|false 'volgroups ...'\n"
14787 "\n"
14788 msgstr ""
14789
14790 #. type: textblock
14791 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7419
14792 msgid ""
14793 "This command activates or (if C<activate> is false) deactivates all logical "
14794 "volumes in the listed volume groups C<volgroups>."
14795 msgstr ""
14796
14797 #. type: textblock
14798 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7422
14799 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
14800 msgstr ""
14801
14802 #. type: textblock
14803 #: ../fish/guestfish-actions.pod:4936 ../src/guestfs-actions.pod:7424
14804 msgid ""
14805 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
14806 "activated or deactivated."
14807 msgstr ""
14808
14809 #. type: =head2
14810 #: ../fish/guestfish-actions.pod:4939
14811 msgid "vg-activate-all"
14812 msgstr ""
14813
14814 #. type: verbatim
14815 #: ../fish/guestfish-actions.pod:4941
14816 #, no-wrap
14817 msgid ""
14818 " vg-activate-all true|false\n"
14819 "\n"
14820 msgstr ""
14821
14822 #. type: textblock
14823 #: ../fish/guestfish-actions.pod:4943 ../src/guestfs-actions.pod:7437
14824 msgid ""
14825 "This command activates or (if C<activate> is false) deactivates all logical "
14826 "volumes in all volume groups."
14827 msgstr ""
14828
14829 #. type: textblock
14830 #: ../fish/guestfish-actions.pod:4946 ../src/guestfs-actions.pod:7440
14831 msgid "This command is the same as running C<vgchange -a y|n>"
14832 msgstr ""
14833
14834 #. type: =head2
14835 #: ../fish/guestfish-actions.pod:4948
14836 msgid "vgcreate"
14837 msgstr ""
14838
14839 #. type: verbatim
14840 #: ../fish/guestfish-actions.pod:4950
14841 #, no-wrap
14842 msgid ""
14843 " vgcreate volgroup 'physvols ...'\n"
14844 "\n"
14845 msgstr ""
14846
14847 #. type: textblock
14848 #: ../fish/guestfish-actions.pod:4952 ../src/guestfs-actions.pod:7453
14849 msgid ""
14850 "This creates an LVM volume group called C<volgroup> from the non-empty list "
14851 "of physical volumes C<physvols>."
14852 msgstr ""
14853
14854 #. type: =head2
14855 #: ../fish/guestfish-actions.pod:4955
14856 msgid "vglvuuids"
14857 msgstr ""
14858
14859 #. type: verbatim
14860 #: ../fish/guestfish-actions.pod:4957
14861 #, no-wrap
14862 msgid ""
14863 " vglvuuids vgname\n"
14864 "\n"
14865 msgstr ""
14866
14867 #. type: textblock
14868 #: ../fish/guestfish-actions.pod:4959 ../src/guestfs-actions.pod:7466
14869 msgid ""
14870 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
14871 "volumes created in this volume group."
14872 msgstr ""
14873
14874 #. type: textblock
14875 #: ../fish/guestfish-actions.pod:4962
14876 msgid ""
14877 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
14878 "logical volumes and volume groups."
14879 msgstr ""
14880
14881 #. type: textblock
14882 #: ../fish/guestfish-actions.pod:4965
14883 msgid "See also L</vgpvuuids>."
14884 msgstr ""
14885
14886 #. type: =head2
14887 #: ../fish/guestfish-actions.pod:4967
14888 msgid "vgpvuuids"
14889 msgstr ""
14890
14891 #. type: verbatim
14892 #: ../fish/guestfish-actions.pod:4969
14893 #, no-wrap
14894 msgid ""
14895 " vgpvuuids vgname\n"
14896 "\n"
14897 msgstr ""
14898
14899 #. type: textblock
14900 #: ../fish/guestfish-actions.pod:4971 ../src/guestfs-actions.pod:7486
14901 msgid ""
14902 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
14903 "volumes that this volume group resides on."
14904 msgstr ""
14905
14906 #. type: textblock
14907 #: ../fish/guestfish-actions.pod:4974
14908 msgid ""
14909 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
14910 "physical volumes and volume groups."
14911 msgstr ""
14912
14913 #. type: textblock
14914 #: ../fish/guestfish-actions.pod:4977
14915 msgid "See also L</vglvuuids>."
14916 msgstr ""
14917
14918 #. type: =head2
14919 #: ../fish/guestfish-actions.pod:4979
14920 msgid "vgremove"
14921 msgstr ""
14922
14923 #. type: verbatim
14924 #: ../fish/guestfish-actions.pod:4981
14925 #, no-wrap
14926 msgid ""
14927 " vgremove vgname\n"
14928 "\n"
14929 msgstr ""
14930
14931 #. type: textblock
14932 #: ../fish/guestfish-actions.pod:4983 ../src/guestfs-actions.pod:7506
14933 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
14934 msgstr ""
14935
14936 #. type: textblock
14937 #: ../fish/guestfish-actions.pod:4985 ../src/guestfs-actions.pod:7508
14938 msgid ""
14939 "This also forcibly removes all logical volumes in the volume group (if any)."
14940 msgstr ""
14941
14942 #. type: =head2
14943 #: ../fish/guestfish-actions.pod:4988
14944 msgid "vgrename"
14945 msgstr ""
14946
14947 #. type: verbatim
14948 #: ../fish/guestfish-actions.pod:4990
14949 #, no-wrap
14950 msgid ""
14951 " vgrename volgroup newvolgroup\n"
14952 "\n"
14953 msgstr ""
14954
14955 #. type: textblock
14956 #: ../fish/guestfish-actions.pod:4992 ../src/guestfs-actions.pod:7522
14957 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
14958 msgstr ""
14959
14960 #. type: =head2
14961 #: ../fish/guestfish-actions.pod:4994
14962 msgid "vgs"
14963 msgstr ""
14964
14965 #. type: verbatim
14966 #: ../fish/guestfish-actions.pod:4996
14967 #, no-wrap
14968 msgid ""
14969 " vgs\n"
14970 "\n"
14971 msgstr ""
14972
14973 #. type: textblock
14974 #: ../fish/guestfish-actions.pod:4998 ../src/guestfs-actions.pod:7533
14975 msgid ""
14976 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
14977 "> command."
14978 msgstr ""
14979
14980 #. type: textblock
14981 #: ../fish/guestfish-actions.pod:5001 ../src/guestfs-actions.pod:7536
14982 msgid ""
14983 "This returns a list of just the volume group names that were detected (eg. "
14984 "C<VolGroup00>)."
14985 msgstr ""
14986
14987 #. type: textblock
14988 #: ../fish/guestfish-actions.pod:5004
14989 msgid "See also L</vgs-full>."
14990 msgstr ""
14991
14992 #. type: =head2
14993 #: ../fish/guestfish-actions.pod:5006
14994 msgid "vgs-full"
14995 msgstr ""
14996
14997 #. type: verbatim
14998 #: ../fish/guestfish-actions.pod:5008
14999 #, no-wrap
15000 msgid ""
15001 " vgs-full\n"
15002 "\n"
15003 msgstr ""
15004
15005 #. type: textblock
15006 #: ../fish/guestfish-actions.pod:5010 ../src/guestfs-actions.pod:7552
15007 msgid ""
15008 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15009 "> command.  The \"full\" version includes all fields."
15010 msgstr ""
15011
15012 #. type: =head2
15013 #: ../fish/guestfish-actions.pod:5013
15014 msgid "vgscan"
15015 msgstr ""
15016
15017 #. type: verbatim
15018 #: ../fish/guestfish-actions.pod:5015
15019 #, no-wrap
15020 msgid ""
15021 " vgscan\n"
15022 "\n"
15023 msgstr ""
15024
15025 #. type: textblock
15026 #: ../fish/guestfish-actions.pod:5017 ../src/guestfs-actions.pod:7566
15027 msgid ""
15028 "This rescans all block devices and rebuilds the list of LVM physical "
15029 "volumes, volume groups and logical volumes."
15030 msgstr ""
15031
15032 #. type: =head2
15033 #: ../fish/guestfish-actions.pod:5020
15034 msgid "vguuid"
15035 msgstr ""
15036
15037 #. type: verbatim
15038 #: ../fish/guestfish-actions.pod:5022
15039 #, no-wrap
15040 msgid ""
15041 " vguuid vgname\n"
15042 "\n"
15043 msgstr ""
15044
15045 #. type: textblock
15046 #: ../fish/guestfish-actions.pod:5024 ../src/guestfs-actions.pod:7579
15047 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15048 msgstr ""
15049
15050 #. type: =head2
15051 #: ../fish/guestfish-actions.pod:5026
15052 msgid "wc-c"
15053 msgstr ""
15054
15055 #. type: verbatim
15056 #: ../fish/guestfish-actions.pod:5028
15057 #, no-wrap
15058 msgid ""
15059 " wc-c path\n"
15060 "\n"
15061 msgstr ""
15062
15063 #. type: textblock
15064 #: ../fish/guestfish-actions.pod:5030 ../src/guestfs-actions.pod:7619
15065 msgid ""
15066 "This command counts the characters in a file, using the C<wc -c> external "
15067 "command."
15068 msgstr ""
15069
15070 #. type: =head2
15071 #: ../fish/guestfish-actions.pod:5033
15072 msgid "wc-l"
15073 msgstr ""
15074
15075 #. type: verbatim
15076 #: ../fish/guestfish-actions.pod:5035
15077 #, no-wrap
15078 msgid ""
15079 " wc-l path\n"
15080 "\n"
15081 msgstr ""
15082
15083 #. type: textblock
15084 #: ../fish/guestfish-actions.pod:5037 ../src/guestfs-actions.pod:7632
15085 msgid ""
15086 "This command counts the lines in a file, using the C<wc -l> external command."
15087 msgstr ""
15088
15089 #. type: =head2
15090 #: ../fish/guestfish-actions.pod:5040
15091 msgid "wc-w"
15092 msgstr ""
15093
15094 #. type: verbatim
15095 #: ../fish/guestfish-actions.pod:5042
15096 #, no-wrap
15097 msgid ""
15098 " wc-w path\n"
15099 "\n"
15100 msgstr ""
15101
15102 #. type: textblock
15103 #: ../fish/guestfish-actions.pod:5044 ../src/guestfs-actions.pod:7645
15104 msgid ""
15105 "This command counts the words in a file, using the C<wc -w> external command."
15106 msgstr ""
15107
15108 #. type: =head2
15109 #: ../fish/guestfish-actions.pod:5047
15110 msgid "write"
15111 msgstr ""
15112
15113 #. type: verbatim
15114 #: ../fish/guestfish-actions.pod:5049
15115 #, no-wrap
15116 msgid ""
15117 " write path content\n"
15118 "\n"
15119 msgstr ""
15120
15121 #. type: textblock
15122 #: ../fish/guestfish-actions.pod:5051 ../src/guestfs-actions.pod:7660
15123 msgid ""
15124 "This call creates a file called C<path>.  The content of the file is the "
15125 "string C<content> (which can contain any 8 bit data)."
15126 msgstr ""
15127
15128 #. type: textblock
15129 #: ../fish/guestfish-actions.pod:5054
15130 msgid "See also L</write-append>."
15131 msgstr ""
15132
15133 #. type: =head2
15134 #: ../fish/guestfish-actions.pod:5059
15135 msgid "write-append"
15136 msgstr ""
15137
15138 #. type: verbatim
15139 #: ../fish/guestfish-actions.pod:5061
15140 #, no-wrap
15141 msgid ""
15142 " write-append path content\n"
15143 "\n"
15144 msgstr ""
15145
15146 #. type: textblock
15147 #: ../fish/guestfish-actions.pod:5063 ../src/guestfs-actions.pod:7680
15148 msgid ""
15149 "This call appends C<content> to the end of file C<path>.  If C<path> does "
15150 "not exist, then a new file is created."
15151 msgstr ""
15152
15153 #. type: textblock
15154 #: ../fish/guestfish-actions.pod:5066
15155 msgid "See also L</write>."
15156 msgstr ""
15157
15158 #. type: =head2
15159 #: ../fish/guestfish-actions.pod:5071
15160 msgid "write-file"
15161 msgstr ""
15162
15163 #. type: verbatim
15164 #: ../fish/guestfish-actions.pod:5073
15165 #, no-wrap
15166 msgid ""
15167 " write-file path content size\n"
15168 "\n"
15169 msgstr ""
15170
15171 #. type: textblock
15172 #: ../fish/guestfish-actions.pod:5075 ../src/guestfs-actions.pod:7700
15173 msgid ""
15174 "This call creates a file called C<path>.  The contents of the file is the "
15175 "string C<content> (which can contain any 8 bit data), with length C<size>."
15176 msgstr ""
15177
15178 #. type: textblock
15179 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7704
15180 msgid ""
15181 "As a special case, if C<size> is C<0> then the length is calculated using "
15182 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
15183 msgstr ""
15184
15185 #. type: textblock
15186 #: ../fish/guestfish-actions.pod:5083 ../src/guestfs-actions.pod:7708
15187 msgid ""
15188 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
15189 "I<not> work, even if the length is specified."
15190 msgstr ""
15191
15192 #. type: textblock
15193 #: ../fish/guestfish-actions.pod:5089
15194 msgid ""
15195 "This function is deprecated.  In new code, use the L</write> call instead."
15196 msgstr ""
15197
15198 #. type: =head2
15199 #: ../fish/guestfish-actions.pod:5096
15200 msgid "zegrep"
15201 msgstr ""
15202
15203 #. type: verbatim
15204 #: ../fish/guestfish-actions.pod:5098
15205 #, no-wrap
15206 msgid ""
15207 " zegrep regex path\n"
15208 "\n"
15209 msgstr ""
15210
15211 #. type: textblock
15212 #: ../fish/guestfish-actions.pod:5100 ../src/guestfs-actions.pod:7732
15213 msgid ""
15214 "This calls the external C<zegrep> program and returns the matching lines."
15215 msgstr ""
15216
15217 #. type: =head2
15218 #: ../fish/guestfish-actions.pod:5106
15219 msgid "zegrepi"
15220 msgstr ""
15221
15222 #. type: verbatim
15223 #: ../fish/guestfish-actions.pod:5108
15224 #, no-wrap
15225 msgid ""
15226 " zegrepi regex path\n"
15227 "\n"
15228 msgstr ""
15229
15230 #. type: textblock
15231 #: ../fish/guestfish-actions.pod:5110 ../src/guestfs-actions.pod:7751
15232 msgid ""
15233 "This calls the external C<zegrep -i> program and returns the matching lines."
15234 msgstr ""
15235
15236 #. type: =head2
15237 #: ../fish/guestfish-actions.pod:5116
15238 msgid "zero"
15239 msgstr ""
15240
15241 #. type: verbatim
15242 #: ../fish/guestfish-actions.pod:5118
15243 #, no-wrap
15244 msgid ""
15245 " zero device\n"
15246 "\n"
15247 msgstr ""
15248
15249 #. type: textblock
15250 #: ../fish/guestfish-actions.pod:5120 ../src/guestfs-actions.pod:7769
15251 msgid "This command writes zeroes over the first few blocks of C<device>."
15252 msgstr ""
15253
15254 #. type: textblock
15255 #: ../fish/guestfish-actions.pod:5122 ../src/guestfs-actions.pod:7771
15256 msgid ""
15257 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
15258 "securely wipe the device).  It should be sufficient to remove any partition "
15259 "tables, filesystem superblocks and so on."
15260 msgstr ""
15261
15262 #. type: textblock
15263 #: ../fish/guestfish-actions.pod:5126
15264 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
15265 msgstr ""
15266
15267 #. type: =head2
15268 #: ../fish/guestfish-actions.pod:5129
15269 msgid "zero-device"
15270 msgstr ""
15271
15272 #. type: verbatim
15273 #: ../fish/guestfish-actions.pod:5131
15274 #, no-wrap
15275 msgid ""
15276 " zero-device device\n"
15277 "\n"
15278 msgstr ""
15279
15280 #. type: textblock
15281 #: ../fish/guestfish-actions.pod:5133
15282 msgid ""
15283 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
15284 "which just zeroes the first few blocks of a device."
15285 msgstr ""
15286
15287 #. type: =head2
15288 #: ../fish/guestfish-actions.pod:5140
15289 msgid "zerofree"
15290 msgstr ""
15291
15292 #. type: verbatim
15293 #: ../fish/guestfish-actions.pod:5142
15294 #, no-wrap
15295 msgid ""
15296 " zerofree device\n"
15297 "\n"
15298 msgstr ""
15299
15300 #. type: textblock
15301 #: ../fish/guestfish-actions.pod:5144 ../src/guestfs-actions.pod:7815
15302 msgid ""
15303 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
15304 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
15305 "possible to compress the filesystem more effectively."
15306 msgstr ""
15307
15308 #. type: textblock
15309 #: ../fish/guestfish-actions.pod:5149 ../src/guestfs-actions.pod:7820
15310 msgid "You should B<not> run this program if the filesystem is mounted."
15311 msgstr ""
15312
15313 #. type: textblock
15314 #: ../fish/guestfish-actions.pod:5152 ../src/guestfs-actions.pod:7823
15315 msgid ""
15316 "It is possible that using this program can damage the filesystem or data on "
15317 "the filesystem."
15318 msgstr ""
15319
15320 #. type: =head2
15321 #: ../fish/guestfish-actions.pod:5155
15322 msgid "zfgrep"
15323 msgstr ""
15324
15325 #. type: verbatim
15326 #: ../fish/guestfish-actions.pod:5157
15327 #, no-wrap
15328 msgid ""
15329 " zfgrep pattern path\n"
15330 "\n"
15331 msgstr ""
15332
15333 #. type: textblock
15334 #: ../fish/guestfish-actions.pod:5159 ../src/guestfs-actions.pod:7837
15335 msgid ""
15336 "This calls the external C<zfgrep> program and returns the matching lines."
15337 msgstr ""
15338
15339 #. type: =head2
15340 #: ../fish/guestfish-actions.pod:5165
15341 msgid "zfgrepi"
15342 msgstr ""
15343
15344 #. type: verbatim
15345 #: ../fish/guestfish-actions.pod:5167
15346 #, no-wrap
15347 msgid ""
15348 " zfgrepi pattern path\n"
15349 "\n"
15350 msgstr ""
15351
15352 #. type: textblock
15353 #: ../fish/guestfish-actions.pod:5169 ../src/guestfs-actions.pod:7856
15354 msgid ""
15355 "This calls the external C<zfgrep -i> program and returns the matching lines."
15356 msgstr ""
15357
15358 #. type: =head2
15359 #: ../fish/guestfish-actions.pod:5175
15360 msgid "zfile"
15361 msgstr ""
15362
15363 #. type: verbatim
15364 #: ../fish/guestfish-actions.pod:5177
15365 #, no-wrap
15366 msgid ""
15367 " zfile meth path\n"
15368 "\n"
15369 msgstr ""
15370
15371 #. type: textblock
15372 #: ../fish/guestfish-actions.pod:5179 ../src/guestfs-actions.pod:7875
15373 msgid ""
15374 "This command runs C<file> after first decompressing C<path> using C<method>."
15375 msgstr ""
15376
15377 #. type: textblock
15378 #: ../fish/guestfish-actions.pod:5182 ../src/guestfs-actions.pod:7878
15379 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
15380 msgstr ""
15381
15382 #. type: textblock
15383 #: ../fish/guestfish-actions.pod:5184
15384 msgid ""
15385 "Since 1.0.63, use L</file> instead which can now process compressed files."
15386 msgstr ""
15387
15388 #. type: textblock
15389 #: ../fish/guestfish-actions.pod:5187
15390 msgid ""
15391 "This function is deprecated.  In new code, use the L</file> call instead."
15392 msgstr ""
15393
15394 #. type: =head2
15395 #: ../fish/guestfish-actions.pod:5194
15396 msgid "zgrep"
15397 msgstr ""
15398
15399 #. type: verbatim
15400 #: ../fish/guestfish-actions.pod:5196
15401 #, no-wrap
15402 msgid ""
15403 " zgrep regex path\n"
15404 "\n"
15405 msgstr ""
15406
15407 #. type: textblock
15408 #: ../fish/guestfish-actions.pod:5198 ../src/guestfs-actions.pod:7902
15409 msgid ""
15410 "This calls the external C<zgrep> program and returns the matching lines."
15411 msgstr ""
15412
15413 #. type: =head2
15414 #: ../fish/guestfish-actions.pod:5204
15415 msgid "zgrepi"
15416 msgstr ""
15417
15418 #. type: verbatim
15419 #: ../fish/guestfish-actions.pod:5206
15420 #, no-wrap
15421 msgid ""
15422 " zgrepi regex path\n"
15423 "\n"
15424 msgstr ""
15425
15426 #. type: textblock
15427 #: ../fish/guestfish-actions.pod:5208 ../src/guestfs-actions.pod:7921
15428 msgid ""
15429 "This calls the external C<zgrep -i> program and returns the matching lines."
15430 msgstr ""
15431
15432 #. type: =head2
15433 #: ../fish/guestfish-commands.pod:1
15434 msgid "alloc"
15435 msgstr ""
15436
15437 #. type: =head2
15438 #: ../fish/guestfish-commands.pod:3
15439 msgid "allocate"
15440 msgstr ""
15441
15442 #. type: verbatim
15443 #: ../fish/guestfish-commands.pod:5
15444 #, no-wrap
15445 msgid ""
15446 " alloc filename size\n"
15447 "\n"
15448 msgstr ""
15449
15450 #. type: textblock
15451 #: ../fish/guestfish-commands.pod:7
15452 msgid ""
15453 "This creates an empty (zeroed) file of the given size, and then adds so it "
15454 "can be further examined."
15455 msgstr ""
15456
15457 #. type: textblock
15458 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:182
15459 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
15460 msgstr ""
15461
15462 #. type: textblock
15463 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:184
15464 msgid "Size can be specified using standard suffixes, eg. C<1M>."
15465 msgstr ""
15466
15467 #. type: textblock
15468 #: ../fish/guestfish-commands.pod:14
15469 msgid ""
15470 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
15471 "image, see L</PREPARED DISK IMAGES>."
15472 msgstr ""
15473
15474 #. type: =head2
15475 #: ../fish/guestfish-commands.pod:17
15476 msgid "copy-in"
15477 msgstr ""
15478
15479 #. type: verbatim
15480 #: ../fish/guestfish-commands.pod:19
15481 #, no-wrap
15482 msgid ""
15483 " copy-in local [local ...] /remotedir\n"
15484 "\n"
15485 msgstr ""
15486
15487 #. type: textblock
15488 #: ../fish/guestfish-commands.pod:21
15489 msgid ""
15490 "C<copy-in> copies local files or directories recursively into the disk "
15491 "image, placing them in the directory called C</remotedir> (which must "
15492 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
15493 "other commands as necessary."
15494 msgstr ""
15495
15496 #. type: textblock
15497 #: ../fish/guestfish-commands.pod:26
15498 msgid ""
15499 "Multiple local files and directories can be specified, but the last "
15500 "parameter must always be a remote directory.  Wildcards cannot be used."
15501 msgstr ""
15502
15503 #. type: =head2
15504 #: ../fish/guestfish-commands.pod:30
15505 msgid "copy-out"
15506 msgstr ""
15507
15508 #. type: verbatim
15509 #: ../fish/guestfish-commands.pod:32
15510 #, no-wrap
15511 msgid ""
15512 " copy-out remote [remote ...] localdir\n"
15513 "\n"
15514 msgstr ""
15515
15516 #. type: textblock
15517 #: ../fish/guestfish-commands.pod:34
15518 msgid ""
15519 "C<copy-out> copies remote files or directories recursively out of the disk "
15520 "image, placing them on the host disk in a local directory called C<localdir> "
15521 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
15522 "download>, L</tar-out> and other commands as necessary."
15523 msgstr ""
15524
15525 #. type: textblock
15526 #: ../fish/guestfish-commands.pod:40
15527 msgid ""
15528 "Multiple remote files and directories can be specified, but the last "
15529 "parameter must always be a local directory.  To download to the current "
15530 "directory, use C<.> as in:"
15531 msgstr ""
15532
15533 #. type: verbatim
15534 #: ../fish/guestfish-commands.pod:44
15535 #, no-wrap
15536 msgid ""
15537 " copy-out /home .\n"
15538 "\n"
15539 msgstr ""
15540
15541 #. type: textblock
15542 #: ../fish/guestfish-commands.pod:46
15543 msgid ""
15544 "Wildcards cannot be used in the ordinary command, but you can use them with "
15545 "the help of L</glob> like this:"
15546 msgstr ""
15547
15548 #. type: verbatim
15549 #: ../fish/guestfish-commands.pod:49
15550 #, no-wrap
15551 msgid ""
15552 " glob copy-out /home/* .\n"
15553 "\n"
15554 msgstr ""
15555
15556 #. type: =head2
15557 #: ../fish/guestfish-commands.pod:51
15558 msgid "display"
15559 msgstr ""
15560
15561 #. type: verbatim
15562 #: ../fish/guestfish-commands.pod:53
15563 #, no-wrap
15564 msgid ""
15565 " display filename\n"
15566 "\n"
15567 msgstr ""
15568
15569 #. type: textblock
15570 #: ../fish/guestfish-commands.pod:55
15571 msgid ""
15572 "Use C<display> (a graphical display program) to display an image file.  It "
15573 "downloads the file, and runs C<display> on it."
15574 msgstr ""
15575
15576 #. type: textblock
15577 #: ../fish/guestfish-commands.pod:58
15578 msgid ""
15579 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
15580 "environment variable.  For example to use the GNOME display program:"
15581 msgstr ""
15582
15583 #. type: verbatim
15584 #: ../fish/guestfish-commands.pod:61
15585 #, no-wrap
15586 msgid ""
15587 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
15588 "\n"
15589 msgstr ""
15590
15591 #. type: textblock
15592 #: ../fish/guestfish-commands.pod:63
15593 msgid "See also L<display(1)>."
15594 msgstr ""
15595
15596 #. type: =head2
15597 #: ../fish/guestfish-commands.pod:65
15598 msgid "echo"
15599 msgstr ""
15600
15601 #. type: verbatim
15602 #: ../fish/guestfish-commands.pod:67
15603 #, no-wrap
15604 msgid ""
15605 " echo [params ...]\n"
15606 "\n"
15607 msgstr ""
15608
15609 #. type: textblock
15610 #: ../fish/guestfish-commands.pod:69
15611 msgid "This echos the parameters to the terminal."
15612 msgstr ""
15613
15614 #. type: =head2
15615 #: ../fish/guestfish-commands.pod:71
15616 msgid "edit"
15617 msgstr ""
15618
15619 #. type: =head2
15620 #: ../fish/guestfish-commands.pod:73
15621 msgid "vi"
15622 msgstr ""
15623
15624 #. type: =head2
15625 #: ../fish/guestfish-commands.pod:75
15626 msgid "emacs"
15627 msgstr ""
15628
15629 #. type: verbatim
15630 #: ../fish/guestfish-commands.pod:77
15631 #, no-wrap
15632 msgid ""
15633 " edit filename\n"
15634 "\n"
15635 msgstr ""
15636
15637 #. type: textblock
15638 #: ../fish/guestfish-commands.pod:79
15639 msgid ""
15640 "This is used to edit a file.  It downloads the file, edits it locally using "
15641 "your editor, then uploads the result."
15642 msgstr ""
15643
15644 #. type: textblock
15645 #: ../fish/guestfish-commands.pod:82
15646 msgid ""
15647 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
15648 "or C<emacs> you will get those corresponding editors."
15649 msgstr ""
15650
15651 #. type: =head2
15652 #: ../fish/guestfish-commands.pod:86
15653 msgid "glob"
15654 msgstr ""
15655
15656 #. type: verbatim
15657 #: ../fish/guestfish-commands.pod:88
15658 #, no-wrap
15659 msgid ""
15660 " glob command args...\n"
15661 "\n"
15662 msgstr ""
15663
15664 #. type: textblock
15665 #: ../fish/guestfish-commands.pod:90
15666 msgid ""
15667 "Expand wildcards in any paths in the args list, and run C<command> "
15668 "repeatedly on each matching path."
15669 msgstr ""
15670
15671 #. type: textblock
15672 #: ../fish/guestfish-commands.pod:93
15673 msgid "See L</WILDCARDS AND GLOBBING>."
15674 msgstr ""
15675
15676 #. type: =head2
15677 #: ../fish/guestfish-commands.pod:95
15678 msgid "hexedit"
15679 msgstr ""
15680
15681 #. type: verbatim
15682 #: ../fish/guestfish-commands.pod:97
15683 #, no-wrap
15684 msgid ""
15685 " hexedit <filename|device>\n"
15686 " hexedit <filename|device> <max>\n"
15687 " hexedit <filename|device> <start> <max>\n"
15688 "\n"
15689 msgstr ""
15690
15691 #. type: textblock
15692 #: ../fish/guestfish-commands.pod:101
15693 msgid ""
15694 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
15695 "device."
15696 msgstr ""
15697
15698 #. type: textblock
15699 #: ../fish/guestfish-commands.pod:104
15700 msgid ""
15701 "This command works by downloading potentially the whole file or device, "
15702 "editing it locally, then uploading it.  If the file or device is large, you "
15703 "have to specify which part you wish to edit by using C<max> and/or C<start> "
15704 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
15705 "usual modifiers allowed such as C<1M> (1 megabyte)."
15706 msgstr ""
15707
15708 #. type: textblock
15709 #: ../fish/guestfish-commands.pod:111
15710 msgid "For example to edit the first few sectors of a disk you might do:"
15711 msgstr ""
15712
15713 #. type: verbatim
15714 #: ../fish/guestfish-commands.pod:114
15715 #, no-wrap
15716 msgid ""
15717 " hexedit /dev/sda 1M\n"
15718 "\n"
15719 msgstr ""
15720
15721 #. type: textblock
15722 #: ../fish/guestfish-commands.pod:116
15723 msgid ""
15724 "which would allow you to edit anywhere within the first megabyte of the disk."
15725 msgstr ""
15726
15727 #. type: textblock
15728 #: ../fish/guestfish-commands.pod:119
15729 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
15730 msgstr ""
15731
15732 #. type: verbatim
15733 #: ../fish/guestfish-commands.pod:121
15734 #, no-wrap
15735 msgid ""
15736 " hexedit /dev/sda1 0x400 0x400\n"
15737 "\n"
15738 msgstr ""
15739
15740 #. type: textblock
15741 #: ../fish/guestfish-commands.pod:123
15742 msgid "(assuming the superblock is in the standard location)."
15743 msgstr ""
15744
15745 #. type: textblock
15746 #: ../fish/guestfish-commands.pod:125
15747 msgid ""
15748 "This command requires the external L<hexedit(1)> program.  You can specify "
15749 "another program to use by setting the C<HEXEDITOR> environment variable."
15750 msgstr ""
15751
15752 #. type: textblock
15753 #: ../fish/guestfish-commands.pod:129
15754 msgid "See also L</hexdump>."
15755 msgstr ""
15756
15757 #. type: =head2
15758 #: ../fish/guestfish-commands.pod:131
15759 msgid "lcd"
15760 msgstr ""
15761
15762 #. type: verbatim
15763 #: ../fish/guestfish-commands.pod:133
15764 #, no-wrap
15765 msgid ""
15766 " lcd directory\n"
15767 "\n"
15768 msgstr ""
15769
15770 #. type: textblock
15771 #: ../fish/guestfish-commands.pod:135
15772 msgid ""
15773 "Change the local directory, ie. the current directory of guestfish itself."
15774 msgstr ""
15775
15776 #. type: textblock
15777 #: ../fish/guestfish-commands.pod:138
15778 msgid "Note that C<!cd> won't do what you might expect."
15779 msgstr ""
15780
15781 #. type: =head2
15782 #: ../fish/guestfish-commands.pod:140
15783 msgid "man"
15784 msgstr ""
15785
15786 #. type: =head2
15787 #: ../fish/guestfish-commands.pod:142
15788 msgid "manual"
15789 msgstr ""
15790
15791 #. type: verbatim
15792 #: ../fish/guestfish-commands.pod:144
15793 #, no-wrap
15794 msgid ""
15795 "  man\n"
15796 "\n"
15797 msgstr ""
15798
15799 #. type: textblock
15800 #: ../fish/guestfish-commands.pod:146
15801 msgid "Opens the manual page for guestfish."
15802 msgstr ""
15803
15804 #. type: =head2
15805 #: ../fish/guestfish-commands.pod:148
15806 msgid "more"
15807 msgstr ""
15808
15809 #. type: =head2
15810 #: ../fish/guestfish-commands.pod:150
15811 msgid "less"
15812 msgstr ""
15813
15814 #. type: verbatim
15815 #: ../fish/guestfish-commands.pod:152
15816 #, no-wrap
15817 msgid ""
15818 " more filename\n"
15819 "\n"
15820 msgstr ""
15821
15822 #. type: verbatim
15823 #: ../fish/guestfish-commands.pod:154
15824 #, no-wrap
15825 msgid ""
15826 " less filename\n"
15827 "\n"
15828 msgstr ""
15829
15830 #. type: textblock
15831 #: ../fish/guestfish-commands.pod:156
15832 msgid "This is used to view a file."
15833 msgstr ""
15834
15835 #. type: textblock
15836 #: ../fish/guestfish-commands.pod:158
15837 msgid ""
15838 "The default viewer is C<$PAGER>.  However if you use the alternate command "
15839 "C<less> you will get the C<less> command specifically."
15840 msgstr ""
15841
15842 #. type: =head2
15843 #: ../fish/guestfish-commands.pod:161
15844 msgid "reopen"
15845 msgstr ""
15846
15847 #. type: verbatim
15848 #: ../fish/guestfish-commands.pod:163
15849 #, no-wrap
15850 msgid ""
15851 "  reopen\n"
15852 "\n"
15853 msgstr ""
15854
15855 #. type: textblock
15856 #: ../fish/guestfish-commands.pod:165
15857 msgid ""
15858 "Close and reopen the libguestfs handle.  It is not necessary to use this "
15859 "normally, because the handle is closed properly when guestfish exits.  "
15860 "However this is occasionally useful for testing."
15861 msgstr ""
15862
15863 #. type: =head2
15864 #: ../fish/guestfish-commands.pod:169
15865 msgid "sparse"
15866 msgstr ""
15867
15868 #. type: verbatim
15869 #: ../fish/guestfish-commands.pod:171
15870 #, no-wrap
15871 msgid ""
15872 " sparse filename size\n"
15873 "\n"
15874 msgstr ""
15875
15876 #. type: textblock
15877 #: ../fish/guestfish-commands.pod:173
15878 msgid ""
15879 "This creates an empty sparse file of the given size, and then adds so it can "
15880 "be further examined."
15881 msgstr ""
15882
15883 #. type: textblock
15884 #: ../fish/guestfish-commands.pod:176
15885 msgid ""
15886 "In all respects it works the same as the L</alloc> command, except that the "
15887 "image file is allocated sparsely, which means that disk blocks are not "
15888 "assigned to the file until they are needed.  Sparse disk files only use "
15889 "space when written to, but they are slower and there is a danger you could "
15890 "run out of real disk space during a write operation."
15891 msgstr ""
15892
15893 #. type: =head2
15894 #: ../fish/guestfish-commands.pod:186
15895 msgid "supported"
15896 msgstr ""
15897
15898 #. type: verbatim
15899 #: ../fish/guestfish-commands.pod:188
15900 #, no-wrap
15901 msgid ""
15902 " supported\n"
15903 "\n"
15904 msgstr ""
15905
15906 #. type: textblock
15907 #: ../fish/guestfish-commands.pod:190
15908 msgid ""
15909 "This command returns a list of the optional groups known to the daemon, and "
15910 "indicates which ones are supported by this build of the libguestfs appliance."
15911 msgstr ""
15912
15913 #. type: textblock
15914 #: ../fish/guestfish-commands.pod:194
15915 msgid "See also L<guestfs(3)/AVAILABILITY>."
15916 msgstr ""
15917
15918 #. type: =head2
15919 #: ../fish/guestfish-commands.pod:196
15920 msgid "time"
15921 msgstr ""
15922
15923 #. type: verbatim
15924 #: ../fish/guestfish-commands.pod:198
15925 #, no-wrap
15926 msgid ""
15927 " time command args...\n"
15928 "\n"
15929 msgstr ""
15930
15931 #. type: textblock
15932 #: ../fish/guestfish-commands.pod:200
15933 msgid ""
15934 "Run the command as usual, but print the elapsed time afterwards.  This can "
15935 "be useful for benchmarking operations."
15936 msgstr ""
15937
15938 #. type: textblock
15939 #: ../fish/guestfish.pod:5
15940 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
15941 msgstr ""
15942
15943 #. type: verbatim
15944 #: ../fish/guestfish.pod:9
15945 #, no-wrap
15946 msgid ""
15947 " guestfish [--options] [commands]\n"
15948 "\n"
15949 msgstr ""
15950
15951 #. type: verbatim
15952 #: ../fish/guestfish.pod:11
15953 #, no-wrap
15954 msgid ""
15955 " guestfish\n"
15956 "\n"
15957 msgstr ""
15958
15959 #. type: verbatim
15960 #: ../fish/guestfish.pod:13
15961 #, no-wrap
15962 msgid ""
15963 " guestfish [--ro|--rw] -a disk.img\n"
15964 "\n"
15965 msgstr ""
15966
15967 #. type: verbatim
15968 #: ../fish/guestfish.pod:15
15969 #, no-wrap
15970 msgid ""
15971 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
15972 "\n"
15973 msgstr ""
15974
15975 #. type: verbatim
15976 #: ../fish/guestfish.pod:17
15977 #, no-wrap
15978 msgid ""
15979 " guestfish -d libvirt-domain\n"
15980 "\n"
15981 msgstr ""
15982
15983 #. type: verbatim
15984 #: ../fish/guestfish.pod:19
15985 #, no-wrap
15986 msgid ""
15987 " guestfish [--ro|--rw] -a disk.img -i\n"
15988 "\n"
15989 msgstr ""
15990
15991 #. type: verbatim
15992 #: ../fish/guestfish.pod:21
15993 #, no-wrap
15994 msgid ""
15995 " guestfish -d libvirt-domain -i\n"
15996 "\n"
15997 msgstr ""
15998
15999 #. type: textblock
16000 #: ../fish/guestfish.pod:25
16001 msgid ""
16002 "Using guestfish in read/write mode on live virtual machines can be "
16003 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16004 "option to use guestfish safely if the disk image or virtual machine might be "
16005 "live."
16006 msgstr ""
16007
16008 #. type: textblock
16009 #: ../fish/guestfish.pod:32
16010 msgid ""
16011 "Guestfish is a shell and command-line tool for examining and modifying "
16012 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16013 "functionality of the guestfs API, see L<guestfs(3)>."
16014 msgstr ""
16015
16016 #. type: textblock
16017 #: ../fish/guestfish.pod:36
16018 msgid ""
16019 "Guestfish gives you structured access to the libguestfs API, from shell "
16020 "scripts or the command line or interactively.  If you want to rescue a "
16021 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16022 "command."
16023 msgstr ""
16024
16025 #. type: =head2
16026 #: ../fish/guestfish.pod:43
16027 msgid "As an interactive shell"
16028 msgstr ""
16029
16030 #. type: verbatim
16031 #: ../fish/guestfish.pod:45
16032 #, no-wrap
16033 msgid ""
16034 " $ guestfish\n"
16035 " \n"
16036 msgstr ""
16037
16038 #. type: verbatim
16039 #: ../fish/guestfish.pod:47
16040 #, no-wrap
16041 msgid ""
16042 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16043 " editing virtual machine filesystems.\n"
16044 " \n"
16045 msgstr ""
16046
16047 #. type: verbatim
16048 #: ../fish/guestfish.pod:50
16049 #, no-wrap
16050 msgid ""
16051 " Type: 'help' for a list of commands\n"
16052 "       'man' to read the manual\n"
16053 "       'quit' to quit the shell\n"
16054 " \n"
16055 msgstr ""
16056
16057 #. type: verbatim
16058 #: ../fish/guestfish.pod:54
16059 #, no-wrap
16060 msgid ""
16061 " ><fs> add-ro disk.img\n"
16062 " ><fs> run\n"
16063 " ><fs> list-filesystems\n"
16064 " /dev/sda1: ext4\n"
16065 " /dev/vg_guest/lv_root: ext4\n"
16066 " /dev/vg_guest/lv_swap: swap\n"
16067 " ><fs> mount /dev/vg_guest/lv_root /\n"
16068 " ><fs> cat /etc/fstab\n"
16069 " # /etc/fstab\n"
16070 " # Created by anaconda\n"
16071 " [...]\n"
16072 " ><fs> exit\n"
16073 "\n"
16074 msgstr ""
16075
16076 #. type: =head2
16077 #: ../fish/guestfish.pod:67
16078 msgid "From shell scripts"
16079 msgstr ""
16080
16081 #. type: textblock
16082 #: ../fish/guestfish.pod:69
16083 msgid "Create a new C</etc/motd> file in a guest or disk image:"
16084 msgstr ""
16085
16086 #. type: verbatim
16087 #: ../fish/guestfish.pod:71
16088 #, no-wrap
16089 msgid ""
16090 " guestfish <<_EOF_\n"
16091 " add disk.img\n"
16092 " run\n"
16093 " mount /dev/vg_guest/lv_root /\n"
16094 " write /etc/motd \"Welcome, new users\"\n"
16095 " _EOF_\n"
16096 "\n"
16097 msgstr ""
16098
16099 #. type: textblock
16100 #: ../fish/guestfish.pod:78
16101 msgid "List the LVM logical volumes in a disk image:"
16102 msgstr ""
16103
16104 #. type: verbatim
16105 #: ../fish/guestfish.pod:80
16106 #, no-wrap
16107 msgid ""
16108 " guestfish -a disk.img --ro <<_EOF_\n"
16109 " run\n"
16110 " lvs\n"
16111 " _EOF_\n"
16112 "\n"
16113 msgstr ""
16114
16115 #. type: textblock
16116 #: ../fish/guestfish.pod:85
16117 msgid "List all the filesystems in a disk image:"
16118 msgstr ""
16119
16120 #. type: verbatim
16121 #: ../fish/guestfish.pod:87
16122 #, no-wrap
16123 msgid ""
16124 " guestfish -a disk.img --ro <<_EOF_\n"
16125 " run\n"
16126 " list-filesystems\n"
16127 " _EOF_\n"
16128 "\n"
16129 msgstr ""
16130
16131 #. type: =head2
16132 #: ../fish/guestfish.pod:92
16133 msgid "On one command line"
16134 msgstr ""
16135
16136 #. type: textblock
16137 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
16138 msgid "Update C</etc/resolv.conf> in a guest:"
16139 msgstr ""
16140
16141 #. type: verbatim
16142 #: ../fish/guestfish.pod:96
16143 #, no-wrap
16144 msgid ""
16145 " guestfish \\\n"
16146 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
16147 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
16148 "\n"
16149 msgstr ""
16150
16151 #. type: textblock
16152 #: ../fish/guestfish.pod:100
16153 msgid "Edit C</boot/grub/grub.conf> interactively:"
16154 msgstr ""
16155
16156 #. type: verbatim
16157 #: ../fish/guestfish.pod:102
16158 #, no-wrap
16159 msgid ""
16160 " guestfish --rw --add disk.img \\\n"
16161 "   --mount /dev/vg_guest/lv_root \\\n"
16162 "   --mount /dev/sda1:/boot \\\n"
16163 "   edit /boot/grub/grub.conf\n"
16164 "\n"
16165 msgstr ""
16166
16167 #. type: =head2
16168 #: ../fish/guestfish.pod:107
16169 msgid "Mount disks automatically"
16170 msgstr ""
16171
16172 #. type: textblock
16173 #: ../fish/guestfish.pod:109
16174 msgid ""
16175 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
16176 msgstr ""
16177
16178 #. type: verbatim
16179 #: ../fish/guestfish.pod:112
16180 #, no-wrap
16181 msgid ""
16182 " guestfish --ro -a disk.img -i cat /etc/group\n"
16183 "\n"
16184 msgstr ""
16185
16186 #. type: verbatim
16187 #: ../fish/guestfish.pod:114
16188 #, no-wrap
16189 msgid ""
16190 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
16191 "\n"
16192 msgstr ""
16193
16194 #. type: textblock
16195 #: ../fish/guestfish.pod:116
16196 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
16197 msgstr ""
16198
16199 #. type: verbatim
16200 #: ../fish/guestfish.pod:118
16201 #, no-wrap
16202 msgid ""
16203 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
16204 "\n"
16205 msgstr ""
16206
16207 #. type: =head2
16208 #: ../fish/guestfish.pod:120
16209 msgid "As a script interpreter"
16210 msgstr ""
16211
16212 #. type: textblock
16213 #: ../fish/guestfish.pod:122
16214 msgid "Create a 100MB disk containing an ext2-formatted partition:"
16215 msgstr ""
16216
16217 #. type: verbatim
16218 #: ../fish/guestfish.pod:124
16219 #, no-wrap
16220 msgid ""
16221 " #!/usr/bin/guestfish -f\n"
16222 " sparse test1.img 100M\n"
16223 " run\n"
16224 " part-disk /dev/sda mbr\n"
16225 " mkfs ext2 /dev/sda1\n"
16226 "\n"
16227 msgstr ""
16228
16229 #. type: =head2
16230 #: ../fish/guestfish.pod:130
16231 msgid "Start with a prepared disk"
16232 msgstr ""
16233
16234 #. type: textblock
16235 #: ../fish/guestfish.pod:132
16236 msgid ""
16237 "An alternate way to create a 100MB disk called C<test1.img> containing a "
16238 "single ext2-formatted partition:"
16239 msgstr ""
16240
16241 #. type: verbatim
16242 #: ../fish/guestfish.pod:135
16243 #, no-wrap
16244 msgid ""
16245 " guestfish -N fs\n"
16246 "\n"
16247 msgstr ""
16248
16249 #. type: textblock
16250 #: ../fish/guestfish.pod:137
16251 msgid "To list what is available do:"
16252 msgstr ""
16253
16254 #. type: verbatim
16255 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1009
16256 #, no-wrap
16257 msgid ""
16258 " guestfish -N help | less\n"
16259 "\n"
16260 msgstr ""
16261
16262 #. type: =head2
16263 #: ../fish/guestfish.pod:141
16264 msgid "Remote control"
16265 msgstr ""
16266
16267 #. type: verbatim
16268 #: ../fish/guestfish.pod:143
16269 #, no-wrap
16270 msgid ""
16271 " eval \"`guestfish --listen`\"\n"
16272 " guestfish --remote add-ro disk.img\n"
16273 " guestfish --remote run\n"
16274 " guestfish --remote lvs\n"
16275 "\n"
16276 msgstr ""
16277
16278 #. type: textblock
16279 #: ../fish/guestfish.pod:154
16280 msgid "Displays general help on options."
16281 msgstr ""
16282
16283 #. type: =item
16284 #: ../fish/guestfish.pod:158
16285 msgid "B<--cmd-help>"
16286 msgstr ""
16287
16288 #. type: textblock
16289 #: ../fish/guestfish.pod:160
16290 msgid "Lists all available guestfish commands."
16291 msgstr ""
16292
16293 #. type: =item
16294 #: ../fish/guestfish.pod:162
16295 msgid "B<-h cmd>"
16296 msgstr ""
16297
16298 #. type: =item
16299 #: ../fish/guestfish.pod:164
16300 msgid "B<--cmd-help cmd>"
16301 msgstr ""
16302
16303 #. type: textblock
16304 #: ../fish/guestfish.pod:166
16305 msgid "Displays detailed help on a single command C<cmd>."
16306 msgstr ""
16307
16308 #. type: =item
16309 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
16310 msgid "B<-a image>"
16311 msgstr ""
16312
16313 #. type: =item
16314 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
16315 msgid "B<--add image>"
16316 msgstr ""
16317
16318 #. type: textblock
16319 #: ../fish/guestfish.pod:172
16320 msgid "Add a block device or virtual machine image to the shell."
16321 msgstr ""
16322
16323 #. type: textblock
16324 #: ../fish/guestfish.pod:177
16325 msgid ""
16326 "Using this flag is mostly equivalent to using the C<add> command, with "
16327 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
16328 "the I<--format=...> flag was given."
16329 msgstr ""
16330
16331 #. type: textblock
16332 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
16333 msgid ""
16334 "When used in conjunction with the I<-d> option, this specifies the libvirt "
16335 "URI to use.  The default is to use the default libvirt connection."
16336 msgstr ""
16337
16338 #. type: =item
16339 #: ../fish/guestfish.pod:189
16340 msgid "B<--csh>"
16341 msgstr ""
16342
16343 #. type: textblock
16344 #: ../fish/guestfish.pod:191
16345 msgid ""
16346 "If using the I<--listen> option and a csh-like shell, use this option.  See "
16347 "section L</REMOTE CONTROL AND CSH> below."
16348 msgstr ""
16349
16350 #. type: =item
16351 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
16352 msgid "B<-d libvirt-domain>"
16353 msgstr ""
16354
16355 #. type: =item
16356 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
16357 msgid "B<--domain libvirt-domain>"
16358 msgstr ""
16359
16360 #. type: textblock
16361 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
16362 msgid ""
16363 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
16364 "used, then any libvirt domain can be used.  However in write mode, only "
16365 "libvirt domains which are shut down can be named here."
16366 msgstr ""
16367
16368 #. type: textblock
16369 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
16370 msgid "Domain UUIDs can be used instead of names."
16371 msgstr ""
16372
16373 #. type: textblock
16374 #: ../fish/guestfish.pod:204
16375 msgid ""
16376 "Using this flag is mostly equivalent to using the C<add-domain> command, "
16377 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
16378 "if the I<--format:...> flag was given."
16379 msgstr ""
16380
16381 #. type: =item
16382 #: ../fish/guestfish.pod:208
16383 msgid "B<-D>"
16384 msgstr ""
16385
16386 #. type: =item
16387 #: ../fish/guestfish.pod:210
16388 msgid "B<--no-dest-paths>"
16389 msgstr ""
16390
16391 #. type: textblock
16392 #: ../fish/guestfish.pod:212
16393 msgid ""
16394 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
16395 "to hit the tab key to complete paths on the guest filesystem, but this "
16396 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
16397 "allow this feature to be disabled."
16398 msgstr ""
16399
16400 #. type: textblock
16401 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
16402 msgid ""
16403 "When prompting for keys and passphrases, guestfish normally turns echoing "
16404 "off so you cannot see what you are typing.  If you are not worried about "
16405 "Tempest attacks and there is no one else in the room you can specify this "
16406 "flag to see what you are typing."
16407 msgstr ""
16408
16409 #. type: =item
16410 #: ../fish/guestfish.pod:224
16411 msgid "B<-f file>"
16412 msgstr ""
16413
16414 #. type: =item
16415 #: ../fish/guestfish.pod:226
16416 msgid "B<--file file>"
16417 msgstr ""
16418
16419 #. type: textblock
16420 #: ../fish/guestfish.pod:228
16421 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
16422 msgstr ""
16423
16424 #. type: verbatim
16425 #: ../fish/guestfish.pod:231
16426 #, no-wrap
16427 msgid ""
16428 " #!/usr/bin/guestfish -f\n"
16429 "\n"
16430 msgstr ""
16431
16432 #. type: verbatim
16433 #: ../fish/guestfish.pod:244
16434 #, no-wrap
16435 msgid ""
16436 " guestfish --format=raw -a disk.img\n"
16437 "\n"
16438 msgstr ""
16439
16440 #. type: verbatim
16441 #: ../fish/guestfish.pod:248
16442 #, no-wrap
16443 msgid ""
16444 " guestfish --format=raw -a disk.img --format -a another.img\n"
16445 "\n"
16446 msgstr ""
16447
16448 #. type: textblock
16449 #: ../fish/guestfish.pod:253
16450 msgid ""
16451 "If you have untrusted raw-format guest disk images, you should use this "
16452 "option to specify the disk format.  This avoids a possible security problem "
16453 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
16454 msgstr ""
16455
16456 #. type: =item
16457 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
16458 msgid "B<--inspector>"
16459 msgstr ""
16460
16461 #. type: textblock
16462 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
16463 msgid ""
16464 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
16465 "system and mount filesystems as they would be mounted on the real virtual "
16466 "machine."
16467 msgstr ""
16468
16469 #. type: textblock
16470 #: ../fish/guestfish.pod:266
16471 msgid "Typical usage is either:"
16472 msgstr ""
16473
16474 #. type: verbatim
16475 #: ../fish/guestfish.pod:268
16476 #, no-wrap
16477 msgid ""
16478 " guestfish -d myguest -i\n"
16479 "\n"
16480 msgstr ""
16481
16482 #. type: textblock
16483 #: ../fish/guestfish.pod:270
16484 msgid "(for an inactive libvirt domain called I<myguest>), or:"
16485 msgstr ""
16486
16487 #. type: verbatim
16488 #: ../fish/guestfish.pod:272
16489 #, no-wrap
16490 msgid ""
16491 " guestfish --ro -d myguest -i\n"
16492 "\n"
16493 msgstr ""
16494
16495 #. type: textblock
16496 #: ../fish/guestfish.pod:274
16497 msgid "(for active domains, readonly), or specify the block device directly:"
16498 msgstr ""
16499
16500 #. type: verbatim
16501 #: ../fish/guestfish.pod:276
16502 #, no-wrap
16503 msgid ""
16504 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
16505 "\n"
16506 msgstr ""
16507
16508 #. type: textblock
16509 #: ../fish/guestfish.pod:278
16510 msgid ""
16511 "Note that the command line syntax changed slightly over older versions of "
16512 "guestfish.  You can still use the old syntax:"
16513 msgstr ""
16514
16515 #. type: verbatim
16516 #: ../fish/guestfish.pod:281
16517 #, no-wrap
16518 msgid ""
16519 " guestfish [--ro] -i disk.img\n"
16520 "\n"
16521 msgstr ""
16522
16523 #. type: verbatim
16524 #: ../fish/guestfish.pod:283
16525 #, no-wrap
16526 msgid ""
16527 " guestfish [--ro] -i libvirt-domain\n"
16528 "\n"
16529 msgstr ""
16530
16531 #. type: textblock
16532 #: ../fish/guestfish.pod:285
16533 msgid ""
16534 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
16535 "then using other commands to mount the filesystems that were found."
16536 msgstr ""
16537
16538 #. type: =item
16539 #: ../fish/guestfish.pod:294
16540 msgid "B<--listen>"
16541 msgstr ""
16542
16543 #. type: textblock
16544 #: ../fish/guestfish.pod:296
16545 msgid ""
16546 "Fork into the background and listen for remote commands.  See section L</"
16547 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
16548 msgstr ""
16549
16550 #. type: =item
16551 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
16552 msgid "B<--live>"
16553 msgstr ""
16554
16555 #. type: textblock
16556 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
16557 msgid ""
16558 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
16559 "ATTACHING TO RUNNING DAEMONS>)."
16560 msgstr ""
16561
16562 #. type: =item
16563 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
16564 msgid "B<-m dev[:mountpoint[:options]]>"
16565 msgstr ""
16566
16567 #. type: =item
16568 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
16569 msgid "B<--mount dev[:mountpoint[:options]]>"
16570 msgstr ""
16571
16572 #. type: textblock
16573 #: ../fish/guestfish.pod:308
16574 msgid "Mount the named partition or logical volume on the given mountpoint."
16575 msgstr ""
16576
16577 #. type: textblock
16578 #: ../fish/guestfish.pod:310
16579 msgid "If the mountpoint is omitted, it defaults to C</>."
16580 msgstr ""
16581
16582 #. type: textblock
16583 #: ../fish/guestfish.pod:312
16584 msgid "You have to mount something on C</> before most commands will work."
16585 msgstr ""
16586
16587 #. type: textblock
16588 #: ../fish/guestfish.pod:314
16589 msgid ""
16590 "If any I<-m> or I<--mount> options are given, the guest is automatically "
16591 "launched."
16592 msgstr ""
16593
16594 #. type: textblock
16595 #: ../fish/guestfish.pod:317
16596 msgid ""
16597 "If you don't know what filesystems a disk image contains, you can either run "
16598 "guestfish without this option, then list the partitions, filesystems and LVs "
16599 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
16600 "commands), or you can use the L<virt-filesystems(1)> program."
16601 msgstr ""
16602
16603 #. type: textblock
16604 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
16605 msgid ""
16606 "The third (and rarely used) part of the mount parameter is the list of mount "
16607 "options used to mount the underlying filesystem.  If this is not given, then "
16608 "the mount options are either the empty string or C<ro> (the latter if the "
16609 "I<--ro> flag is used).  By specifying the mount options, you override this "
16610 "default choice.  Probably the only time you would use this is to enable ACLs "
16611 "and/or extended attributes if the filesystem can support them:"
16612 msgstr ""
16613
16614 #. type: verbatim
16615 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
16616 #, no-wrap
16617 msgid ""
16618 " -m /dev/sda1:/:acl,user_xattr\n"
16619 "\n"
16620 msgstr ""
16621
16622 #. type: textblock
16623 #: ../fish/guestfish.pod:333
16624 msgid "Using this flag is equivalent to using the C<mount-options> command."
16625 msgstr ""
16626
16627 #. type: =item
16628 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193
16629 #: ../resize/virt-resize.pod:352
16630 msgid "B<-n>"
16631 msgstr ""
16632
16633 #. type: =item
16634 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
16635 msgid "B<--no-sync>"
16636 msgstr ""
16637
16638 #. type: textblock
16639 #: ../fish/guestfish.pod:339
16640 msgid ""
16641 "Disable autosync.  This is enabled by default.  See the discussion of "
16642 "autosync in the L<guestfs(3)> manpage."
16643 msgstr ""
16644
16645 #. type: =item
16646 #: ../fish/guestfish.pod:342
16647 msgid "B<-N type>"
16648 msgstr ""
16649
16650 #. type: =item
16651 #: ../fish/guestfish.pod:344
16652 msgid "B<--new type>"
16653 msgstr ""
16654
16655 #. type: =item
16656 #: ../fish/guestfish.pod:346
16657 msgid "B<-N help>"
16658 msgstr ""
16659
16660 #. type: textblock
16661 #: ../fish/guestfish.pod:348
16662 msgid ""
16663 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
16664 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
16665 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
16666 "IMAGES> below."
16667 msgstr ""
16668
16669 #. type: =item
16670 #: ../fish/guestfish.pod:353
16671 msgid "B<--progress-bars>"
16672 msgstr ""
16673
16674 #. type: textblock
16675 #: ../fish/guestfish.pod:355
16676 msgid "Enable progress bars, even when guestfish is used non-interactively."
16677 msgstr ""
16678
16679 #. type: textblock
16680 #: ../fish/guestfish.pod:357
16681 msgid ""
16682 "Progress bars are enabled by default when guestfish is used as an "
16683 "interactive shell."
16684 msgstr ""
16685
16686 #. type: =item
16687 #: ../fish/guestfish.pod:360
16688 msgid "B<--no-progress-bars>"
16689 msgstr ""
16690
16691 #. type: textblock
16692 #: ../fish/guestfish.pod:362
16693 msgid "Disable progress bars."
16694 msgstr ""
16695
16696 #. type: =item
16697 #: ../fish/guestfish.pod:364
16698 msgid "B<--remote[=pid]>"
16699 msgstr ""
16700
16701 #. type: textblock
16702 #: ../fish/guestfish.pod:366
16703 msgid ""
16704 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
16705 "CONTROL GUESTFISH OVER A SOCKET> below."
16706 msgstr ""
16707
16708 #. type: =item
16709 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239
16710 #: ../rescue/virt-rescue.pod:161
16711 msgid "B<-r>"
16712 msgstr ""
16713
16714 #. type: =item
16715 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241
16716 #: ../rescue/virt-rescue.pod:163
16717 msgid "B<--ro>"
16718 msgstr ""
16719
16720 #. type: textblock
16721 #: ../fish/guestfish.pod:373
16722 msgid ""
16723 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
16724 "mounts are done read-only."
16725 msgstr ""
16726
16727 #. type: textblock
16728 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
16729 msgid ""
16730 "The option must always be used if the disk image or virtual machine might be "
16731 "running, and is generally recommended in cases where you don't need write "
16732 "access to the disk."
16733 msgstr ""
16734
16735 #. type: textblock
16736 #: ../fish/guestfish.pod:380
16737 msgid ""
16738 "Note that prepared disk images created with I<-N> are not affected by this "
16739 "option.  Also commands like C<add> are not affected - you have to specify "
16740 "the C<readonly:true> option explicitly if you need it."
16741 msgstr ""
16742
16743 #. type: textblock
16744 #: ../fish/guestfish.pod:384
16745 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
16746 msgstr ""
16747
16748 #. type: =item
16749 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253
16750 #: ../rescue/virt-rescue.pod:173
16751 msgid "B<--selinux>"
16752 msgstr ""
16753
16754 #. type: textblock
16755 #: ../fish/guestfish.pod:388
16756 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
16757 msgstr ""
16758
16759 #. type: textblock
16760 #: ../fish/guestfish.pod:394
16761 msgid ""
16762 "Enable very verbose messages.  This is particularly useful if you find a bug."
16763 msgstr ""
16764
16765 #. type: textblock
16766 #: ../fish/guestfish.pod:401
16767 msgid "Display the guestfish / libguestfs version number and exit."
16768 msgstr ""
16769
16770 #. type: =item
16771 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269
16772 #: ../rescue/virt-rescue.pod:190
16773 msgid "B<-w>"
16774 msgstr ""
16775
16776 #. type: =item
16777 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271
16778 #: ../rescue/virt-rescue.pod:192
16779 msgid "B<--rw>"
16780 msgstr ""
16781
16782 #. type: textblock
16783 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
16784 msgid ""
16785 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
16786 "mounts are done read-write."
16787 msgstr ""
16788
16789 #. type: textblock
16790 #: ../fish/guestfish.pod:410
16791 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
16792 msgstr ""
16793
16794 #. type: textblock
16795 #: ../fish/guestfish.pod:414
16796 msgid "Echo each command before executing it."
16797 msgstr ""
16798
16799 #. type: =head1
16800 #: ../fish/guestfish.pod:418
16801 msgid "COMMANDS ON COMMAND LINE"
16802 msgstr ""
16803
16804 #. type: textblock
16805 #: ../fish/guestfish.pod:420
16806 msgid ""
16807 "Any additional (non-option) arguments are treated as commands to execute."
16808 msgstr ""
16809
16810 #. type: textblock
16811 #: ../fish/guestfish.pod:423
16812 msgid ""
16813 "Commands to execute should be separated by a colon (C<:>), where the colon "
16814 "is a separate parameter.  Thus:"
16815 msgstr ""
16816
16817 #. type: verbatim
16818 #: ../fish/guestfish.pod:426
16819 #, no-wrap
16820 msgid ""
16821 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
16822 "\n"
16823 msgstr ""
16824
16825 #. type: textblock
16826 #: ../fish/guestfish.pod:428
16827 msgid ""
16828 "If there are no additional arguments, then we enter a shell, either an "
16829 "interactive shell with a prompt (if the input is a terminal) or a non-"
16830 "interactive shell."
16831 msgstr ""
16832
16833 #. type: textblock
16834 #: ../fish/guestfish.pod:432
16835 msgid ""
16836 "In either command line mode or non-interactive shell, the first command that "
16837 "gives an error causes the whole shell to exit.  In interactive mode (with a "
16838 "prompt) if a command fails, you can continue to enter commands."
16839 msgstr ""
16840
16841 #. type: =head1
16842 #: ../fish/guestfish.pod:437
16843 msgid "USING launch (OR run)"
16844 msgstr ""
16845
16846 #. type: textblock
16847 #: ../fish/guestfish.pod:439
16848 msgid ""
16849 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
16850 "then launch it, then mount any disks you need, and finally issue actions/"
16851 "commands.  So the general order of the day is:"
16852 msgstr ""
16853
16854 #. type: textblock
16855 #: ../fish/guestfish.pod:447
16856 msgid "add or -a/--add"
16857 msgstr ""
16858
16859 #. type: textblock
16860 #: ../fish/guestfish.pod:451
16861 msgid "launch (aka run)"
16862 msgstr ""
16863
16864 #. type: textblock
16865 #: ../fish/guestfish.pod:455
16866 msgid "mount or -m/--mount"
16867 msgstr ""
16868
16869 #. type: textblock
16870 #: ../fish/guestfish.pod:459
16871 msgid "any other commands"
16872 msgstr ""
16873
16874 #. type: textblock
16875 #: ../fish/guestfish.pod:463
16876 msgid ""
16877 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
16878 "guest before mounting or performing any other commands."
16879 msgstr ""
16880
16881 #. type: textblock
16882 #: ../fish/guestfish.pod:466
16883 msgid ""
16884 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
16885 "I<--new> options were given then C<run> is done automatically, simply "
16886 "because guestfish can't perform the action you asked for without doing this."
16887 msgstr ""
16888
16889 #. type: =head1
16890 #: ../fish/guestfish.pod:471
16891 msgid "OPENING DISKS FOR READ AND WRITE"
16892 msgstr ""
16893
16894 #. type: textblock
16895 #: ../fish/guestfish.pod:473
16896 msgid ""
16897 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
16898 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
16899 "I<-i> and I<-m> open disk images read-only or for writing."
16900 msgstr ""
16901
16902 #. type: textblock
16903 #: ../fish/guestfish.pod:478
16904 msgid ""
16905 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
16906 "opening disk images supplied on the command line for write.  To open a disk "
16907 "image read-only you have to do I<-a image --ro>."
16908 msgstr ""
16909
16910 #. type: textblock
16911 #: ../fish/guestfish.pod:482
16912 msgid ""
16913 "This matters: If you accidentally open a live VM disk image writable then "
16914 "you will cause irreversible disk corruption."
16915 msgstr ""
16916
16917 #. type: textblock
16918 #: ../fish/guestfish.pod:485
16919 msgid ""
16920 "In a future libguestfs we intend to change the default the other way.  Disk "
16921 "images will be opened read-only.  You will have to either specify "
16922 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
16923 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
16924 "access for disk images specified by those other command line options."
16925 msgstr ""
16926
16927 #. type: textblock
16928 #: ../fish/guestfish.pod:492
16929 msgid ""
16930 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
16931 "which does nothing (it is already the default).  However it is highly "
16932 "recommended that you use this option to indicate that you need write access, "
16933 "and prepare your scripts for the day when this option will be required for "
16934 "write access."
16935 msgstr ""
16936
16937 #. type: textblock
16938 #: ../fish/guestfish.pod:498
16939 msgid ""
16940 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
16941 "other libguestfs program apart from guestfish and guestmount."
16942 msgstr ""
16943
16944 #. type: =head1
16945 #: ../fish/guestfish.pod:501
16946 msgid "QUOTING"
16947 msgstr ""
16948
16949 #. type: textblock
16950 #: ../fish/guestfish.pod:503
16951 msgid ""
16952 "You can quote ordinary parameters using either single or double quotes.  For "
16953 "example:"
16954 msgstr ""
16955
16956 #. type: verbatim
16957 #: ../fish/guestfish.pod:506
16958 #, no-wrap
16959 msgid ""
16960 " add \"file with a space.img\"\n"
16961 "\n"
16962 msgstr ""
16963
16964 #. type: verbatim
16965 #: ../fish/guestfish.pod:508
16966 #, no-wrap
16967 msgid ""
16968 " rm '/file name'\n"
16969 "\n"
16970 msgstr ""
16971
16972 #. type: verbatim
16973 #: ../fish/guestfish.pod:510
16974 #, no-wrap
16975 msgid ""
16976 " rm '/\"'\n"
16977 "\n"
16978 msgstr ""
16979
16980 #. type: textblock
16981 #: ../fish/guestfish.pod:512
16982 msgid ""
16983 "A few commands require a list of strings to be passed.  For these, use a "
16984 "whitespace-separated list, enclosed in quotes.  Strings containing "
16985 "whitespace to be passed through must be enclosed in single quotes.  A "
16986 "literal single quote must be escaped with a backslash."
16987 msgstr ""
16988
16989 #. type: verbatim
16990 #: ../fish/guestfish.pod:517
16991 #, no-wrap
16992 msgid ""
16993 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
16994 " command \"/bin/echo 'foo      bar'\"\n"
16995 " command \"/bin/echo \\'foo\\'\"\n"
16996 "\n"
16997 msgstr ""
16998
16999 #. type: =head2
17000 #: ../fish/guestfish.pod:521
17001 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
17002 msgstr ""
17003
17004 #. type: textblock
17005 #: ../fish/guestfish.pod:523
17006 msgid ""
17007 "In double-quoted arguments (only) use backslash to insert special characters:"
17008 msgstr ""
17009
17010 #. type: =item
17011 #: ../fish/guestfish.pod:528
17012 msgid "C<\\a>"
17013 msgstr ""
17014
17015 #. type: textblock
17016 #: ../fish/guestfish.pod:530
17017 msgid "Alert (bell) character."
17018 msgstr ""
17019
17020 #. type: =item
17021 #: ../fish/guestfish.pod:532
17022 msgid "C<\\b>"
17023 msgstr ""
17024
17025 #. type: textblock
17026 #: ../fish/guestfish.pod:534
17027 msgid "Backspace character."
17028 msgstr ""
17029
17030 #. type: =item
17031 #: ../fish/guestfish.pod:536
17032 msgid "C<\\f>"
17033 msgstr ""
17034
17035 #. type: textblock
17036 #: ../fish/guestfish.pod:538
17037 msgid "Form feed character."
17038 msgstr ""
17039
17040 #. type: =item
17041 #: ../fish/guestfish.pod:540
17042 msgid "C<\\n>"
17043 msgstr ""
17044
17045 #. type: textblock
17046 #: ../fish/guestfish.pod:542
17047 msgid "Newline character."
17048 msgstr ""
17049
17050 #. type: =item
17051 #: ../fish/guestfish.pod:544
17052 msgid "C<\\r>"
17053 msgstr ""
17054
17055 #. type: textblock
17056 #: ../fish/guestfish.pod:546
17057 msgid "Carriage return character."
17058 msgstr ""
17059
17060 #. type: =item
17061 #: ../fish/guestfish.pod:548
17062 msgid "C<\\t>"
17063 msgstr ""
17064
17065 #. type: textblock
17066 #: ../fish/guestfish.pod:550
17067 msgid "Horizontal tab character."
17068 msgstr ""
17069
17070 #. type: =item
17071 #: ../fish/guestfish.pod:552
17072 msgid "C<\\v>"
17073 msgstr ""
17074
17075 #. type: textblock
17076 #: ../fish/guestfish.pod:554
17077 msgid "Vertical tab character."
17078 msgstr ""
17079
17080 #. type: =item
17081 #: ../fish/guestfish.pod:556
17082 msgid "C<\\\">"
17083 msgstr ""
17084
17085 #. type: textblock
17086 #: ../fish/guestfish.pod:558
17087 msgid "A literal double quote character."
17088 msgstr ""
17089
17090 #. type: =item
17091 #: ../fish/guestfish.pod:560
17092 msgid "C<\\ooo>"
17093 msgstr ""
17094
17095 #. type: textblock
17096 #: ../fish/guestfish.pod:562
17097 msgid ""
17098 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
17099 "(unlike C)."
17100 msgstr ""
17101
17102 #. type: =item
17103 #: ../fish/guestfish.pod:565
17104 msgid "C<\\xhh>"
17105 msgstr ""
17106
17107 #. type: textblock
17108 #: ../fish/guestfish.pod:567
17109 msgid ""
17110 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
17111 msgstr ""
17112
17113 #. type: textblock
17114 #: ../fish/guestfish.pod:570
17115 msgid ""
17116 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
17117 "strings."
17118 msgstr ""
17119
17120 #. type: =item
17121 #: ../fish/guestfish.pod:573
17122 msgid "C<\\\\>"
17123 msgstr ""
17124
17125 #. type: textblock
17126 #: ../fish/guestfish.pod:575
17127 msgid "A literal backslash character."
17128 msgstr ""
17129
17130 #. type: =head1
17131 #: ../fish/guestfish.pod:579
17132 msgid "OPTIONAL ARGUMENTS"
17133 msgstr ""
17134
17135 #. type: textblock
17136 #: ../fish/guestfish.pod:581
17137 msgid ""
17138 "Some commands take optional arguments.  These arguments appear in this "
17139 "documentation as C<[argname:..]>.  You can use them as in these examples:"
17140 msgstr ""
17141
17142 #. type: verbatim
17143 #: ../fish/guestfish.pod:585
17144 #, no-wrap
17145 msgid ""
17146 " add-drive-opts filename\n"
17147 "\n"
17148 msgstr ""
17149
17150 #. type: verbatim
17151 #: ../fish/guestfish.pod:587
17152 #, no-wrap
17153 msgid ""
17154 " add-drive-opts filename readonly:true\n"
17155 "\n"
17156 msgstr ""
17157
17158 #. type: verbatim
17159 #: ../fish/guestfish.pod:589
17160 #, no-wrap
17161 msgid ""
17162 " add-drive-opts filename format:qcow2 readonly:false\n"
17163 "\n"
17164 msgstr ""
17165
17166 #. type: textblock
17167 #: ../fish/guestfish.pod:591
17168 msgid ""
17169 "Each optional argument can appear at most once.  All optional arguments must "
17170 "appear after the required ones."
17171 msgstr ""
17172
17173 #. type: =head1
17174 #: ../fish/guestfish.pod:594
17175 msgid "NUMBERS"
17176 msgstr ""
17177
17178 #. type: textblock
17179 #: ../fish/guestfish.pod:596
17180 msgid ""
17181 "This section applies to all commands which can take integers as parameters."
17182 msgstr ""
17183
17184 #. type: =head2
17185 #: ../fish/guestfish.pod:599
17186 msgid "SIZE SUFFIX"
17187 msgstr ""
17188
17189 #. type: textblock
17190 #: ../fish/guestfish.pod:601
17191 msgid ""
17192 "When the command takes a parameter measured in bytes, you can use one of the "
17193 "following suffixes to specify kilobytes, megabytes and larger sizes:"
17194 msgstr ""
17195
17196 #. type: =item
17197 #: ../fish/guestfish.pod:607
17198 msgid "B<k> or B<K> or B<KiB>"
17199 msgstr ""
17200
17201 #. type: textblock
17202 #: ../fish/guestfish.pod:609
17203 msgid "The size in kilobytes (multiplied by 1024)."
17204 msgstr ""
17205
17206 #. type: =item
17207 #: ../fish/guestfish.pod:611
17208 msgid "B<KB>"
17209 msgstr ""
17210
17211 #. type: textblock
17212 #: ../fish/guestfish.pod:613
17213 msgid "The size in SI 1000 byte units."
17214 msgstr ""
17215
17216 #. type: =item
17217 #: ../fish/guestfish.pod:615
17218 msgid "B<M> or B<MiB>"
17219 msgstr ""
17220
17221 #. type: textblock
17222 #: ../fish/guestfish.pod:617
17223 msgid "The size in megabytes (multiplied by 1048576)."
17224 msgstr ""
17225
17226 #. type: =item
17227 #: ../fish/guestfish.pod:619
17228 msgid "B<MB>"
17229 msgstr ""
17230
17231 #. type: textblock
17232 #: ../fish/guestfish.pod:621
17233 msgid "The size in SI 1000000 byte units."
17234 msgstr ""
17235
17236 #. type: =item
17237 #: ../fish/guestfish.pod:623
17238 msgid "B<G> or B<GiB>"
17239 msgstr ""
17240
17241 #. type: textblock
17242 #: ../fish/guestfish.pod:625
17243 msgid "The size in gigabytes (multiplied by 2**30)."
17244 msgstr ""
17245
17246 #. type: =item
17247 #: ../fish/guestfish.pod:627
17248 msgid "B<GB>"
17249 msgstr ""
17250
17251 #. type: textblock
17252 #: ../fish/guestfish.pod:629
17253 msgid "The size in SI 10**9 byte units."
17254 msgstr ""
17255
17256 #. type: =item
17257 #: ../fish/guestfish.pod:631
17258 msgid "B<T> or B<TiB>"
17259 msgstr ""
17260
17261 #. type: textblock
17262 #: ../fish/guestfish.pod:633
17263 msgid "The size in terabytes (multiplied by 2**40)."
17264 msgstr ""
17265
17266 #. type: =item
17267 #: ../fish/guestfish.pod:635
17268 msgid "B<TB>"
17269 msgstr ""
17270
17271 #. type: textblock
17272 #: ../fish/guestfish.pod:637
17273 msgid "The size in SI 10**12 byte units."
17274 msgstr ""
17275
17276 #. type: =item
17277 #: ../fish/guestfish.pod:639
17278 msgid "B<P> or B<PiB>"
17279 msgstr ""
17280
17281 #. type: textblock
17282 #: ../fish/guestfish.pod:641
17283 msgid "The size in petabytes (multiplied by 2**50)."
17284 msgstr ""
17285
17286 #. type: =item
17287 #: ../fish/guestfish.pod:643
17288 msgid "B<PB>"
17289 msgstr ""
17290
17291 #. type: textblock
17292 #: ../fish/guestfish.pod:645
17293 msgid "The size in SI 10**15 byte units."
17294 msgstr ""
17295
17296 #. type: =item
17297 #: ../fish/guestfish.pod:647
17298 msgid "B<E> or B<EiB>"
17299 msgstr ""
17300
17301 #. type: textblock
17302 #: ../fish/guestfish.pod:649
17303 msgid "The size in exabytes (multiplied by 2**60)."
17304 msgstr ""
17305
17306 #. type: =item
17307 #: ../fish/guestfish.pod:651
17308 msgid "B<EB>"
17309 msgstr ""
17310
17311 #. type: textblock
17312 #: ../fish/guestfish.pod:653
17313 msgid "The size in SI 10**18 byte units."
17314 msgstr ""
17315
17316 #. type: =item
17317 #: ../fish/guestfish.pod:655
17318 msgid "B<Z> or B<ZiB>"
17319 msgstr ""
17320
17321 #. type: textblock
17322 #: ../fish/guestfish.pod:657
17323 msgid "The size in zettabytes (multiplied by 2**70)."
17324 msgstr ""
17325
17326 #. type: =item
17327 #: ../fish/guestfish.pod:659
17328 msgid "B<ZB>"
17329 msgstr ""
17330
17331 #. type: textblock
17332 #: ../fish/guestfish.pod:661
17333 msgid "The size in SI 10**21 byte units."
17334 msgstr ""
17335
17336 #. type: =item
17337 #: ../fish/guestfish.pod:663
17338 msgid "B<Y> or B<YiB>"
17339 msgstr ""
17340
17341 #. type: textblock
17342 #: ../fish/guestfish.pod:665
17343 msgid "The size in yottabytes (multiplied by 2**80)."
17344 msgstr ""
17345
17346 #. type: =item
17347 #: ../fish/guestfish.pod:667
17348 msgid "B<YB>"
17349 msgstr ""
17350
17351 #. type: textblock
17352 #: ../fish/guestfish.pod:669
17353 msgid "The size in SI 10**24 byte units."
17354 msgstr ""
17355
17356 #. type: verbatim
17357 #: ../fish/guestfish.pod:675
17358 #, no-wrap
17359 msgid ""
17360 " truncate-size /file 1G\n"
17361 "\n"
17362 msgstr ""
17363
17364 #. type: textblock
17365 #: ../fish/guestfish.pod:677
17366 msgid "would truncate the file to 1 gigabyte."
17367 msgstr ""
17368
17369 #. type: textblock
17370 #: ../fish/guestfish.pod:679
17371 msgid ""
17372 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
17373 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
17374 "suffix will probably not do what you expect."
17375 msgstr ""
17376
17377 #. type: =head2
17378 #: ../fish/guestfish.pod:683
17379 msgid "OCTAL AND HEXADECIMAL NUMBERS"
17380 msgstr ""
17381
17382 #. type: textblock
17383 #: ../fish/guestfish.pod:685
17384 msgid ""
17385 "For specifying the radix (base) use the C convention: C<0> to prefix an "
17386 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
17387 msgstr ""
17388
17389 #. type: verbatim
17390 #: ../fish/guestfish.pod:688
17391 #, no-wrap
17392 msgid ""
17393 " 1234      decimal number 1234\n"
17394 " 02322     octal number, equivalent to decimal 1234\n"
17395 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
17396 "\n"
17397 msgstr ""
17398
17399 #. type: textblock
17400 #: ../fish/guestfish.pod:692
17401 msgid ""
17402 "When using the C<chmod> command, you almost always want to specify an octal "
17403 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
17404 "L<chmod(1)> program):"
17405 msgstr ""
17406
17407 #. type: verbatim
17408 #: ../fish/guestfish.pod:696
17409 #, no-wrap
17410 msgid ""
17411 " chmod 0777 /public  # OK\n"
17412 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
17413 "\n"
17414 msgstr ""
17415
17416 #. type: textblock
17417 #: ../fish/guestfish.pod:699
17418 msgid ""
17419 "Commands that return numbers usually print them in decimal, but some "
17420 "commands print numbers in other radices (eg. C<umask> prints the mode in "
17421 "octal, preceeded by C<0>)."
17422 msgstr ""
17423
17424 #. type: =head1
17425 #: ../fish/guestfish.pod:703
17426 msgid "WILDCARDS AND GLOBBING"
17427 msgstr ""
17428
17429 #. type: textblock
17430 #: ../fish/guestfish.pod:705
17431 msgid ""
17432 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
17433 "(globbing) by default.  So for example the following will not do what you "
17434 "expect:"
17435 msgstr ""
17436
17437 #. type: verbatim
17438 #: ../fish/guestfish.pod:709
17439 #, no-wrap
17440 msgid ""
17441 " rm-rf /home/*\n"
17442 "\n"
17443 msgstr ""
17444
17445 #. type: textblock
17446 #: ../fish/guestfish.pod:711
17447 msgid ""
17448 "Assuming you don't have a directory called literally C</home/*> then the "
17449 "above command will return an error."
17450 msgstr ""
17451
17452 #. type: textblock
17453 #: ../fish/guestfish.pod:714
17454 msgid "To perform wildcard expansion, use the C<glob> command."
17455 msgstr ""
17456
17457 #. type: verbatim
17458 #: ../fish/guestfish.pod:716
17459 #, no-wrap
17460 msgid ""
17461 " glob rm-rf /home/*\n"
17462 "\n"
17463 msgstr ""
17464
17465 #. type: textblock
17466 #: ../fish/guestfish.pod:718
17467 msgid ""
17468 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
17469 "many times), equivalent to:"
17470 msgstr ""
17471
17472 #. type: verbatim
17473 #: ../fish/guestfish.pod:721
17474 #, no-wrap
17475 msgid ""
17476 " rm-rf /home/jim\n"
17477 " rm-rf /home/joe\n"
17478 " rm-rf /home/mary\n"
17479 "\n"
17480 msgstr ""
17481
17482 #. type: textblock
17483 #: ../fish/guestfish.pod:725
17484 msgid "C<glob> only works on simple guest paths and not on device names."
17485 msgstr ""
17486
17487 #. type: textblock
17488 #: ../fish/guestfish.pod:727
17489 msgid ""
17490 "If you have several parameters, each containing a wildcard, then glob will "
17491 "perform a Cartesian product."
17492 msgstr ""
17493
17494 #. type: =head1
17495 #: ../fish/guestfish.pod:730
17496 msgid "COMMENTS"
17497 msgstr ""
17498
17499 #. type: textblock
17500 #: ../fish/guestfish.pod:732
17501 msgid ""
17502 "Any line which starts with a I<#> character is treated as a comment and "
17503 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
17504 "a command.  For example:"
17505 msgstr ""
17506
17507 #. type: verbatim
17508 #: ../fish/guestfish.pod:736
17509 #, no-wrap
17510 msgid ""
17511 " # this is a comment\n"
17512 "         # this is a comment\n"
17513 " foo # NOT a comment\n"
17514 "\n"
17515 msgstr ""
17516
17517 #. type: textblock
17518 #: ../fish/guestfish.pod:740
17519 msgid "Blank lines are also ignored."
17520 msgstr ""
17521
17522 #. type: =head1
17523 #: ../fish/guestfish.pod:742
17524 msgid "RUNNING COMMANDS LOCALLY"
17525 msgstr ""
17526
17527 #. type: textblock
17528 #: ../fish/guestfish.pod:744
17529 msgid ""
17530 "Any line which starts with a I<!> character is treated as a command sent to "
17531 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
17532 msgstr ""
17533
17534 #. type: verbatim
17535 #: ../fish/guestfish.pod:748
17536 #, no-wrap
17537 msgid ""
17538 " !mkdir local\n"
17539 " tgz-out /remote local/remote-data.tar.gz\n"
17540 "\n"
17541 msgstr ""
17542
17543 #. type: textblock
17544 #: ../fish/guestfish.pod:751
17545 msgid ""
17546 "will create a directory C<local> on the host, and then export the contents "
17547 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
17548 "(See C<tgz-out>)."
17549 msgstr ""
17550
17551 #. type: textblock
17552 #: ../fish/guestfish.pod:755
17553 msgid ""
17554 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
17555 "effect, due to the way that subprocesses work in Unix."
17556 msgstr ""
17557
17558 #. type: =head2
17559 #: ../fish/guestfish.pod:758
17560 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
17561 msgstr ""
17562
17563 #. type: textblock
17564 #: ../fish/guestfish.pod:760
17565 msgid ""
17566 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
17567 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
17568 "and executed as guestfish commands."
17569 msgstr ""
17570
17571 #. type: textblock
17572 #: ../fish/guestfish.pod:764
17573 msgid ""
17574 "Thus you can use shell script to construct arbitrary guestfish commands "
17575 "which are then parsed by guestfish."
17576 msgstr ""
17577
17578 #. type: textblock
17579 #: ../fish/guestfish.pod:767
17580 msgid ""
17581 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
17582 "through C</foo.100>) using guestfish commands alone.  However this is simple "
17583 "if we use a shell script to create the guestfish commands for us:"
17584 msgstr ""
17585
17586 #. type: verbatim
17587 #: ../fish/guestfish.pod:772
17588 #, no-wrap
17589 msgid ""
17590 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
17591 "\n"
17592 msgstr ""
17593
17594 #. type: textblock
17595 #: ../fish/guestfish.pod:774
17596 msgid "or with names like C</foo.001>:"
17597 msgstr ""
17598
17599 #. type: verbatim
17600 #: ../fish/guestfish.pod:776
17601 #, no-wrap
17602 msgid ""
17603 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
17604 "\n"
17605 msgstr ""
17606
17607 #. type: textblock
17608 #: ../fish/guestfish.pod:778
17609 msgid ""
17610 "When using guestfish interactively it can be helpful to just run the shell "
17611 "script first (ie. remove the initial C<E<lt>> character so it is just an "
17612 "ordinary I<!> local command), see what guestfish commands it would run, and "
17613 "when you are happy with those prepend the C<E<lt>> character to run the "
17614 "guestfish commands for real."
17615 msgstr ""
17616
17617 #. type: =head1
17618 #: ../fish/guestfish.pod:784
17619 msgid "PIPES"
17620 msgstr ""
17621
17622 #. type: textblock
17623 #: ../fish/guestfish.pod:786
17624 msgid ""
17625 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
17626 "command (a guestfish command) to the second command (any host command).  For "
17627 "example:"
17628 msgstr ""
17629
17630 #. type: verbatim
17631 #: ../fish/guestfish.pod:790
17632 #, no-wrap
17633 msgid ""
17634 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
17635 "\n"
17636 msgstr ""
17637
17638 #. type: textblock
17639 #: ../fish/guestfish.pod:792
17640 msgid ""
17641 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
17642 "program).  The above command would list all accounts in the guest filesystem "
17643 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
17644 msgstr ""
17645
17646 #. type: verbatim
17647 #: ../fish/guestfish.pod:797
17648 #, no-wrap
17649 msgid ""
17650 " hexdump /bin/ls | head\n"
17651 " list-devices | tail -1\n"
17652 " tgz-out / - | tar ztf -\n"
17653 "\n"
17654 msgstr ""
17655
17656 #. type: textblock
17657 #: ../fish/guestfish.pod:801
17658 msgid ""
17659 "The space before the pipe symbol is required, any space after the pipe "
17660 "symbol is optional.  Everything after the pipe symbol is just passed "
17661 "straight to the host shell, so it can contain redirections, globs and "
17662 "anything else that makes sense on the host side."
17663 msgstr ""
17664
17665 #. type: textblock
17666 #: ../fish/guestfish.pod:806
17667 msgid ""
17668 "To use a literal argument which begins with a pipe symbol, you have to quote "
17669 "it, eg:"
17670 msgstr ""
17671
17672 #. type: verbatim
17673 #: ../fish/guestfish.pod:809
17674 #, no-wrap
17675 msgid ""
17676 " echo \"|\"\n"
17677 "\n"
17678 msgstr ""
17679
17680 #. type: =head1
17681 #: ../fish/guestfish.pod:811
17682 msgid "HOME DIRECTORIES"
17683 msgstr ""
17684
17685 #. type: textblock
17686 #: ../fish/guestfish.pod:813
17687 msgid ""
17688 "If a parameter starts with the character C<~> then the tilde may be expanded "
17689 "as a home directory path (either C<~> for the current user's home directory, "
17690 "or C<~user> for another user)."
17691 msgstr ""
17692
17693 #. type: textblock
17694 #: ../fish/guestfish.pod:817
17695 msgid ""
17696 "Note that home directory expansion happens for users known I<on the host>, "
17697 "not in the guest filesystem."
17698 msgstr ""
17699
17700 #. type: textblock
17701 #: ../fish/guestfish.pod:820
17702 msgid ""
17703 "To use a literal argument which begins with a tilde, you have to quote it, "
17704 "eg:"
17705 msgstr ""
17706
17707 #. type: verbatim
17708 #: ../fish/guestfish.pod:823
17709 #, no-wrap
17710 msgid ""
17711 " echo \"~\"\n"
17712 "\n"
17713 msgstr ""
17714
17715 #. type: =head2
17716 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
17717 msgid "ENCRYPTED DISKS"
17718 msgstr ""
17719
17720 #. type: textblock
17721 #: ../fish/guestfish.pod:827
17722 msgid ""
17723 "Libguestfs has some support for Linux guests encrypted according to the "
17724 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
17725 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
17726 "LUKS is supported."
17727 msgstr ""
17728
17729 #. type: textblock
17730 #: ../fish/guestfish.pod:832
17731 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
17732 msgstr ""
17733
17734 #. type: verbatim
17735 #: ../fish/guestfish.pod:834
17736 #, no-wrap
17737 msgid ""
17738 " ><fs> vfs-type /dev/sda2\n"
17739 " crypto_LUKS\n"
17740 "\n"
17741 msgstr ""
17742
17743 #. type: textblock
17744 #: ../fish/guestfish.pod:837
17745 msgid ""
17746 "Then open those devices using L</luks-open>.  This creates a device-mapper "
17747 "device called C</dev/mapper/luksdev>."
17748 msgstr ""
17749
17750 #. type: verbatim
17751 #: ../fish/guestfish.pod:840
17752 #, no-wrap
17753 msgid ""
17754 " ><fs> luks-open /dev/sda2 luksdev\n"
17755 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
17756 "\n"
17757 msgstr ""
17758
17759 #. type: textblock
17760 #: ../fish/guestfish.pod:843
17761 msgid ""
17762 "Finally you have to tell LVM to scan for volume groups on the newly created "
17763 "mapper device:"
17764 msgstr ""
17765
17766 #. type: verbatim
17767 #: ../fish/guestfish.pod:846
17768 #, no-wrap
17769 msgid ""
17770 " vgscan\n"
17771 " vg-activate-all true\n"
17772 "\n"
17773 msgstr ""
17774
17775 #. type: textblock
17776 #: ../fish/guestfish.pod:849
17777 msgid "The logical volume(s) can now be mounted in the usual way."
17778 msgstr ""
17779
17780 #. type: textblock
17781 #: ../fish/guestfish.pod:851
17782 msgid ""
17783 "Before closing a LUKS device you must unmount any logical volumes on it and "
17784 "deactivate the volume groups by calling C<vg-activate false VG> on each "
17785 "one.  Then you can close the mapper device:"
17786 msgstr ""
17787
17788 #. type: verbatim
17789 #: ../fish/guestfish.pod:855
17790 #, no-wrap
17791 msgid ""
17792 " vg-activate false /dev/VG\n"
17793 " luks-close /dev/mapper/luksdev\n"
17794 "\n"
17795 msgstr ""
17796
17797 #. type: textblock
17798 #: ../fish/guestfish.pod:860
17799 msgid ""
17800 "If a path is prefixed with C<win:> then you can use Windows-style drive "
17801 "letters and paths (with some limitations).  The following commands are "
17802 "equivalent:"
17803 msgstr ""
17804
17805 #. type: verbatim
17806 #: ../fish/guestfish.pod:864
17807 #, no-wrap
17808 msgid ""
17809 " file /WINDOWS/system32/config/system.LOG\n"
17810 "\n"
17811 msgstr ""
17812
17813 #. type: verbatim
17814 #: ../fish/guestfish.pod:866
17815 #, no-wrap
17816 msgid ""
17817 " file win:\\windows\\system32\\config\\system.log\n"
17818 "\n"
17819 msgstr ""
17820
17821 #. type: verbatim
17822 #: ../fish/guestfish.pod:868
17823 #, no-wrap
17824 msgid ""
17825 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
17826 "\n"
17827 msgstr ""
17828
17829 #. type: textblock
17830 #: ../fish/guestfish.pod:870
17831 msgid ""
17832 "The parameter is rewritten \"behind the scenes\" by looking up the position "
17833 "where the drive is mounted, prepending that to the path, changing all "
17834 "backslash characters to forward slash, then resolving the result using L</"
17835 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
17836 "the parameter might be rewritten like this:"
17837 msgstr ""
17838
17839 #. type: verbatim
17840 #: ../fish/guestfish.pod:876
17841 #, no-wrap
17842 msgid ""
17843 " win:e:\\foo\\bar => /e/FOO/bar\n"
17844 "\n"
17845 msgstr ""
17846
17847 #. type: textblock
17848 #: ../fish/guestfish.pod:878
17849 msgid "This only works in argument positions that expect a path."
17850 msgstr ""
17851
17852 #. type: =head1
17853 #: ../fish/guestfish.pod:880
17854 msgid "UPLOADING AND DOWNLOADING FILES"
17855 msgstr ""
17856
17857 #. type: textblock
17858 #: ../fish/guestfish.pod:882
17859 msgid ""
17860 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
17861 "others which upload from or download to a local file, you can use the "
17862 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
17863 msgstr ""
17864
17865 #. type: verbatim
17866 #: ../fish/guestfish.pod:886
17867 #, no-wrap
17868 msgid ""
17869 " upload - /foo\n"
17870 "\n"
17871 msgstr ""
17872
17873 #. type: textblock
17874 #: ../fish/guestfish.pod:888
17875 msgid ""
17876 "reads stdin and creates from that a file C</foo> in the disk image, and:"
17877 msgstr ""
17878
17879 #. type: verbatim
17880 #: ../fish/guestfish.pod:891
17881 #, no-wrap
17882 msgid ""
17883 " tar-out /etc - | tar tf -\n"
17884 "\n"
17885 msgstr ""
17886
17887 #. type: textblock
17888 #: ../fish/guestfish.pod:893
17889 msgid ""
17890 "writes the tarball to stdout and then pipes that into the external \"tar\" "
17891 "command (see L</PIPES>)."
17892 msgstr ""
17893
17894 #. type: textblock
17895 #: ../fish/guestfish.pod:896
17896 msgid ""
17897 "When using C<-> to read from stdin, the input is read up to the end of "
17898 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
17899 "some arbitrary end marker:"
17900 msgstr ""
17901
17902 #. type: verbatim
17903 #: ../fish/guestfish.pod:900
17904 #, no-wrap
17905 msgid ""
17906 " upload -<<END /foo\n"
17907 " input line 1\n"
17908 " input line 2\n"
17909 " input line 3\n"
17910 " END\n"
17911 "\n"
17912 msgstr ""
17913
17914 #. type: textblock
17915 #: ../fish/guestfish.pod:906
17916 msgid ""
17917 "Any string of characters can be used instead of C<END>.  The end marker must "
17918 "appear on a line of its own, without any preceeding or following characters "
17919 "(not even spaces)."
17920 msgstr ""
17921
17922 #. type: textblock
17923 #: ../fish/guestfish.pod:910
17924 msgid ""
17925 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
17926 "upload local files (so-called \"FileIn\" parameters in the generator)."
17927 msgstr ""
17928
17929 #. type: =head1
17930 #: ../fish/guestfish.pod:913
17931 msgid "EXIT ON ERROR BEHAVIOUR"
17932 msgstr ""
17933
17934 #. type: textblock
17935 #: ../fish/guestfish.pod:915
17936 msgid ""
17937 "By default, guestfish will ignore any errors when in interactive mode (ie. "
17938 "taking commands from a human over a tty), and will exit on the first error "
17939 "in non-interactive mode (scripts, commands given on the command line)."
17940 msgstr ""
17941
17942 #. type: textblock
17943 #: ../fish/guestfish.pod:920
17944 msgid ""
17945 "If you prefix a command with a I<-> character, then that command will not "
17946 "cause guestfish to exit, even if that (one) command returns an error."
17947 msgstr ""
17948
17949 #. type: =head1
17950 #: ../fish/guestfish.pod:924
17951 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
17952 msgstr ""
17953
17954 #. type: textblock
17955 #: ../fish/guestfish.pod:926
17956 msgid ""
17957 "Guestfish can be remote-controlled over a socket.  This is useful "
17958 "particularly in shell scripts where you want to make several different "
17959 "changes to a filesystem, but you don't want the overhead of starting up a "
17960 "guestfish process each time."
17961 msgstr ""
17962
17963 #. type: textblock
17964 #: ../fish/guestfish.pod:931
17965 msgid "Start a guestfish server process using:"
17966 msgstr ""
17967
17968 #. type: verbatim
17969 #: ../fish/guestfish.pod:933
17970 #, no-wrap
17971 msgid ""
17972 " eval \"`guestfish --listen`\"\n"
17973 "\n"
17974 msgstr ""
17975
17976 #. type: textblock
17977 #: ../fish/guestfish.pod:935
17978 msgid "and then send it commands by doing:"
17979 msgstr ""
17980
17981 #. type: verbatim
17982 #: ../fish/guestfish.pod:937
17983 #, no-wrap
17984 msgid ""
17985 " guestfish --remote cmd [...]\n"
17986 "\n"
17987 msgstr ""
17988
17989 #. type: textblock
17990 #: ../fish/guestfish.pod:939
17991 msgid "To cause the server to exit, send it the exit command:"
17992 msgstr ""
17993
17994 #. type: textblock
17995 #: ../fish/guestfish.pod:943
17996 msgid ""
17997 "Note that the server will normally exit if there is an error in a command.  "
17998 "You can change this in the usual way.  See section L</EXIT ON ERROR "
17999 "BEHAVIOUR>."
18000 msgstr ""
18001
18002 #. type: =head2
18003 #: ../fish/guestfish.pod:947
18004 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18005 msgstr ""
18006
18007 #. type: textblock
18008 #: ../fish/guestfish.pod:949
18009 msgid ""
18010 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18011 "is how the I<--remote> option knows where to send the commands.  You can "
18012 "have several guestfish listener processes running using:"
18013 msgstr ""
18014
18015 #. type: verbatim
18016 #: ../fish/guestfish.pod:953
18017 #, no-wrap
18018 msgid ""
18019 " eval \"`guestfish --listen`\"\n"
18020 " pid1=$GUESTFISH_PID\n"
18021 " eval \"`guestfish --listen`\"\n"
18022 " pid2=$GUESTFISH_PID\n"
18023 " ...\n"
18024 " guestfish --remote=$pid1 cmd\n"
18025 " guestfish --remote=$pid2 cmd\n"
18026 "\n"
18027 msgstr ""
18028
18029 #. type: =head2
18030 #: ../fish/guestfish.pod:961
18031 msgid "REMOTE CONTROL AND CSH"
18032 msgstr ""
18033
18034 #. type: textblock
18035 #: ../fish/guestfish.pod:963
18036 msgid ""
18037 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18038 "option:"
18039 msgstr ""
18040
18041 #. type: verbatim
18042 #: ../fish/guestfish.pod:966
18043 #, no-wrap
18044 msgid ""
18045 " eval \"`guestfish --listen --csh`\"\n"
18046 "\n"
18047 msgstr ""
18048
18049 #. type: =head2
18050 #: ../fish/guestfish.pod:968
18051 msgid "REMOTE CONTROL DETAILS"
18052 msgstr ""
18053
18054 #. type: textblock
18055 #: ../fish/guestfish.pod:970
18056 msgid ""
18057 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
18058 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
18059 "and C<$PID> is the process ID of the server."
18060 msgstr ""
18061
18062 #. type: textblock
18063 #: ../fish/guestfish.pod:974
18064 msgid "Guestfish client and server versions must match exactly."
18065 msgstr ""
18066
18067 #. type: =head2
18068 #: ../fish/guestfish.pod:976
18069 msgid "REMOTE CONTROL RUN COMMAND HANGING"
18070 msgstr ""
18071
18072 #. type: textblock
18073 #: ../fish/guestfish.pod:978
18074 msgid ""
18075 "Using the C<run> (or C<launch>) command remotely in a command substitution "
18076 "context hangs, ie. don't do (note the backquotes):"
18077 msgstr ""
18078
18079 #. type: verbatim
18080 #: ../fish/guestfish.pod:981
18081 #, no-wrap
18082 msgid ""
18083 " a=`guestfish --remote run`\n"
18084 "\n"
18085 msgstr ""
18086
18087 #. type: textblock
18088 #: ../fish/guestfish.pod:983
18089 msgid ""
18090 "Since the C<run> command produces no output on stdout, this is not useful "
18091 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
18092 "cgi?id=592910>."
18093 msgstr ""
18094
18095 #. type: =head1
18096 #: ../fish/guestfish.pod:987
18097 msgid "PREPARED DISK IMAGES"
18098 msgstr ""
18099
18100 #. type: textblock
18101 #: ../fish/guestfish.pod:989
18102 msgid ""
18103 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18104 "preformatted disk images that guestfish can make for you to save typing.  "
18105 "This is particularly useful for testing purposes.  This option is used "
18106 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18107 "can be mixed with I<-a>)."
18108 msgstr ""
18109
18110 #. type: textblock
18111 #: ../fish/guestfish.pod:995
18112 msgid ""
18113 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
18114 "the second and so on.  Existing files in the current directory are "
18115 "I<overwritten>."
18116 msgstr ""
18117
18118 #. type: textblock
18119 #: ../fish/guestfish.pod:999
18120 msgid ""
18121 "The type briefly describes how the disk should be sized, partitioned, how "
18122 "filesystem(s) should be created, and how content should be added.  "
18123 "Optionally the type can be followed by extra parameters, separated by C<:> "
18124 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
18125 "allocated disk, containing a single partition, with the partition formatted "
18126 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
18127 "disk instead."
18128 msgstr ""
18129
18130 #. type: textblock
18131 #: ../fish/guestfish.pod:1007
18132 msgid "To list the available types and any extra parameters they take, run:"
18133 msgstr ""
18134
18135 #. type: textblock
18136 #: ../fish/guestfish.pod:1011
18137 msgid ""
18138 "Note that the prepared filesystem is not mounted.  You would usually have to "
18139 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
18140 msgstr ""
18141
18142 #. type: textblock
18143 #: ../fish/guestfish.pod:1015
18144 msgid ""
18145 "If any I<-N> or I<--new> options are given, the guest is automatically "
18146 "launched."
18147 msgstr ""
18148
18149 #. type: textblock
18150 #: ../fish/guestfish.pod:1020
18151 msgid "Create a 100MB disk with an ext4-formatted partition:"
18152 msgstr ""
18153
18154 #. type: verbatim
18155 #: ../fish/guestfish.pod:1022
18156 #, no-wrap
18157 msgid ""
18158 " guestfish -N fs:ext4\n"
18159 "\n"
18160 msgstr ""
18161
18162 #. type: textblock
18163 #: ../fish/guestfish.pod:1024
18164 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
18165 msgstr ""
18166
18167 #. type: verbatim
18168 #: ../fish/guestfish.pod:1026
18169 #, no-wrap
18170 msgid ""
18171 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
18172 "\n"
18173 msgstr ""
18174
18175 #. type: textblock
18176 #: ../fish/guestfish.pod:1028
18177 msgid "Create a blank 200MB disk:"
18178 msgstr ""
18179
18180 #. type: verbatim
18181 #: ../fish/guestfish.pod:1030
18182 #, no-wrap
18183 msgid ""
18184 " guestfish -N disk:200M\n"
18185 "\n"
18186 msgstr ""
18187
18188 #. type: =head1
18189 #: ../fish/guestfish.pod:1032
18190 msgid "PROGRESS BARS"
18191 msgstr ""
18192
18193 #. type: textblock
18194 #: ../fish/guestfish.pod:1034
18195 msgid ""
18196 "Some (not all) long-running commands send progress notification messages as "
18197 "they are running.  Guestfish turns these messages into progress bars."
18198 msgstr ""
18199
18200 #. type: textblock
18201 #: ../fish/guestfish.pod:1038
18202 msgid ""
18203 "When a command that supports progress bars takes longer than two seconds to "
18204 "run, and if progress bars are enabled, then you will see one appearing below "
18205 "the command:"
18206 msgstr ""
18207
18208 #. type: verbatim
18209 #: ../fish/guestfish.pod:1042
18210 #, no-wrap
18211 msgid ""
18212 " ><fs> copy-size /large-file /another-file 2048M\n"
18213 " / 10% [#####-----------------------------------------] 00:30\n"
18214 "\n"
18215 msgstr ""
18216
18217 #. type: textblock
18218 #: ../fish/guestfish.pod:1045
18219 msgid ""
18220 "The spinner on the left hand side moves round once for every progress "
18221 "notification received from the backend.  This is a (reasonably) golden "
18222 "assurance that the command is \"doing something\" even if the progress bar "
18223 "is not moving, because the command is able to send the progress "
18224 "notifications.  When the bar reaches 100% and the command finishes, the "
18225 "spinner disappears."
18226 msgstr ""
18227
18228 #. type: textblock
18229 #: ../fish/guestfish.pod:1052
18230 msgid ""
18231 "Progress bars are enabled by default when guestfish is used interactively.  "
18232 "You can enable them even for non-interactive modes using I<--progress-bars>, "
18233 "and you can disable them completely using I<--no-progress-bars>."
18234 msgstr ""
18235
18236 #. type: =head1
18237 #: ../fish/guestfish.pod:1057
18238 msgid "GUESTFISH COMMANDS"
18239 msgstr ""
18240
18241 #. type: textblock
18242 #: ../fish/guestfish.pod:1059
18243 msgid ""
18244 "The commands in this section are guestfish convenience commands, in other "
18245 "words, they are not part of the L<guestfs(3)> API."
18246 msgstr ""
18247
18248 #. type: =head2
18249 #: ../fish/guestfish.pod:1062
18250 msgid "help"
18251 msgstr ""
18252
18253 #. type: verbatim
18254 #: ../fish/guestfish.pod:1064
18255 #, no-wrap
18256 msgid ""
18257 " help\n"
18258 " help cmd\n"
18259 "\n"
18260 msgstr ""
18261
18262 #. type: textblock
18263 #: ../fish/guestfish.pod:1067
18264 msgid "Without any parameter, this provides general help."
18265 msgstr ""
18266
18267 #. type: textblock
18268 #: ../fish/guestfish.pod:1069
18269 msgid "With a C<cmd> parameter, this displays detailed help for that command."
18270 msgstr ""
18271
18272 #. type: =head2
18273 #: ../fish/guestfish.pod:1071
18274 msgid "quit | exit"
18275 msgstr ""
18276
18277 #. type: textblock
18278 #: ../fish/guestfish.pod:1073
18279 msgid "This exits guestfish.  You can also use C<^D> key."
18280 msgstr ""
18281
18282 #. type: textblock
18283 #: ../fish/guestfish.pod:1075
18284 msgid "@FISH_COMMANDS@"
18285 msgstr ""
18286
18287 #. type: =head1
18288 #: ../fish/guestfish.pod:1077
18289 msgid "COMMANDS"
18290 msgstr ""
18291
18292 #. type: textblock
18293 #: ../fish/guestfish.pod:1079 ../src/guestfs.pod:1474
18294 msgid "@ACTIONS@"
18295 msgstr ""
18296
18297 #. type: =head1
18298 #: ../fish/guestfish.pod:1081 ../test-tool/libguestfs-test-tool.pod:77
18299 msgid "EXIT CODE"
18300 msgstr ""
18301
18302 #. type: textblock
18303 #: ../fish/guestfish.pod:1083
18304 msgid ""
18305 "guestfish returns 0 if the commands completed without error, or 1 if there "
18306 "was an error."
18307 msgstr ""
18308
18309 #. type: =item
18310 #: ../fish/guestfish.pod:1090
18311 msgid "EDITOR"
18312 msgstr ""
18313
18314 #. type: textblock
18315 #: ../fish/guestfish.pod:1092
18316 msgid ""
18317 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
18318 "C<vi>."
18319 msgstr ""
18320
18321 #. type: =item
18322 #: ../fish/guestfish.pod:1095 ../src/guestfs.pod:2969
18323 msgid "FEBOOTSTRAP_KERNEL"
18324 msgstr ""
18325
18326 #. type: =item
18327 #: ../fish/guestfish.pod:1097 ../src/guestfs.pod:2971
18328 msgid "FEBOOTSTRAP_MODULES"
18329 msgstr ""
18330
18331 #. type: textblock
18332 #: ../fish/guestfish.pod:1099 ../src/guestfs.pod:2973
18333 msgid ""
18334 "These two environment variables allow the kernel that libguestfs uses in the "
18335 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
18336 "most recent host kernel is chosen.  For more information about kernel "
18337 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
18338 "available in febootstrap E<ge> 3.8."
18339 msgstr ""
18340
18341 #. type: =item
18342 #: ../fish/guestfish.pod:1105
18343 msgid "GUESTFISH_DISPLAY_IMAGE"
18344 msgstr ""
18345
18346 #. type: textblock
18347 #: ../fish/guestfish.pod:1107
18348 msgid ""
18349 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
18350 "If not set, it uses L<display(1)>."
18351 msgstr ""
18352
18353 #. type: =item
18354 #: ../fish/guestfish.pod:1110
18355 msgid "GUESTFISH_PID"
18356 msgstr ""
18357
18358 #. type: textblock
18359 #: ../fish/guestfish.pod:1112
18360 msgid ""
18361 "Used with the I<--remote> option to specify the remote guestfish process to "
18362 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
18363 msgstr ""
18364
18365 #. type: =item
18366 #: ../fish/guestfish.pod:1116
18367 msgid "HEXEDITOR"
18368 msgstr ""
18369
18370 #. type: textblock
18371 #: ../fish/guestfish.pod:1118
18372 msgid ""
18373 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
18374 "not specified, the external L<hexedit(1)> program is used."
18375 msgstr ""
18376
18377 #. type: =item
18378 #: ../fish/guestfish.pod:1122
18379 msgid "HOME"
18380 msgstr ""
18381
18382 #. type: textblock
18383 #: ../fish/guestfish.pod:1124
18384 msgid ""
18385 "If compiled with GNU readline support, various files in the home directory "
18386 "can be used.  See L</FILES>."
18387 msgstr ""
18388
18389 #. type: =item
18390 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:2979
18391 msgid "LIBGUESTFS_APPEND"
18392 msgstr ""
18393
18394 #. type: textblock
18395 #: ../fish/guestfish.pod:1129 ../src/guestfs.pod:2981
18396 msgid "Pass additional options to the guest kernel."
18397 msgstr ""
18398
18399 #. type: =item
18400 #: ../fish/guestfish.pod:1131 ../src/guestfs.pod:2983
18401 msgid "LIBGUESTFS_DEBUG"
18402 msgstr ""
18403
18404 #. type: textblock
18405 #: ../fish/guestfish.pod:1133
18406 msgid ""
18407 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
18408 "effect as using the B<-v> option."
18409 msgstr ""
18410
18411 #. type: =item
18412 #: ../fish/guestfish.pod:1136 ../src/guestfs.pod:2988
18413 msgid "LIBGUESTFS_MEMSIZE"
18414 msgstr ""
18415
18416 #. type: textblock
18417 #: ../fish/guestfish.pod:1138 ../src/guestfs.pod:2990
18418 msgid ""
18419 "Set the memory allocated to the qemu process, in megabytes.  For example:"
18420 msgstr ""
18421
18422 #. type: verbatim
18423 #: ../fish/guestfish.pod:1141 ../src/guestfs.pod:2993
18424 #, no-wrap
18425 msgid ""
18426 " LIBGUESTFS_MEMSIZE=700\n"
18427 "\n"
18428 msgstr ""
18429
18430 #. type: =item
18431 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:2995
18432 msgid "LIBGUESTFS_PATH"
18433 msgstr ""
18434
18435 #. type: textblock
18436 #: ../fish/guestfish.pod:1145
18437 msgid ""
18438 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
18439 "the discussion of paths in L<guestfs(3)>."
18440 msgstr ""
18441
18442 #. type: =item
18443 #: ../fish/guestfish.pod:1148 ../src/guestfs.pod:3000
18444 msgid "LIBGUESTFS_QEMU"
18445 msgstr ""
18446
18447 #. type: textblock
18448 #: ../fish/guestfish.pod:1150 ../src/guestfs.pod:3002
18449 msgid ""
18450 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
18451 "which was found at compile time by the configure script is used."
18452 msgstr ""
18453
18454 #. type: =item
18455 #: ../fish/guestfish.pod:1154 ../src/guestfs.pod:3008
18456 msgid "LIBGUESTFS_TRACE"
18457 msgstr ""
18458
18459 #. type: textblock
18460 #: ../fish/guestfish.pod:1156
18461 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
18462 msgstr ""
18463
18464 #. type: =item
18465 #: ../fish/guestfish.pod:1158
18466 msgid "PAGER"
18467 msgstr ""
18468
18469 #. type: textblock
18470 #: ../fish/guestfish.pod:1160
18471 msgid ""
18472 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
18473 "C<more>."
18474 msgstr ""
18475
18476 #. type: =item
18477 #: ../fish/guestfish.pod:1163 ../src/guestfs.pod:3013
18478 msgid "TMPDIR"
18479 msgstr ""
18480
18481 #. type: textblock
18482 #: ../fish/guestfish.pod:1165 ../src/guestfs.pod:3015
18483 msgid ""
18484 "Location of temporary directory, defaults to C</tmp> except for the cached "
18485 "supermin appliance which defaults to C</var/tmp>."
18486 msgstr ""
18487
18488 #. type: textblock
18489 #: ../fish/guestfish.pod:1168 ../src/guestfs.pod:3018
18490 msgid ""
18491 "If libguestfs was compiled to use the supermin appliance then the real "
18492 "appliance is cached in this directory, shared between all handles belonging "
18493 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
18494 "use in case C</var/tmp> is not large enough."
18495 msgstr ""
18496
18497 #. type: =head1
18498 #: ../fish/guestfish.pod:1176 ../fuse/guestmount.pod:288
18499 #: ../rescue/virt-rescue.pod:269
18500 msgid "FILES"
18501 msgstr ""
18502
18503 #. type: =item
18504 #: ../fish/guestfish.pod:1180 ../fuse/guestmount.pod:292
18505 #: ../rescue/virt-rescue.pod:273
18506 msgid "$HOME/.libguestfs-tools.rc"
18507 msgstr ""
18508
18509 #. type: =item
18510 #: ../fish/guestfish.pod:1182 ../fuse/guestmount.pod:294
18511 #: ../rescue/virt-rescue.pod:275
18512 msgid "/etc/libguestfs-tools.conf"
18513 msgstr ""
18514
18515 #. type: textblock
18516 #: ../fish/guestfish.pod:1184 ../fuse/guestmount.pod:296
18517 #: ../rescue/virt-rescue.pod:277
18518 msgid ""
18519 "This configuration file controls the default read-only or read-write mode "
18520 "(I<--ro> or I<--rw>)."
18521 msgstr ""
18522
18523 #. type: textblock
18524 #: ../fish/guestfish.pod:1187
18525 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
18526 msgstr ""
18527
18528 #. type: =item
18529 #: ../fish/guestfish.pod:1189
18530 msgid "$HOME/.guestfish"
18531 msgstr ""
18532
18533 #. type: textblock
18534 #: ../fish/guestfish.pod:1191
18535 msgid ""
18536 "If compiled with GNU readline support, then the command history is saved in "
18537 "this file."
18538 msgstr ""
18539
18540 #. type: =item
18541 #: ../fish/guestfish.pod:1194
18542 msgid "$HOME/.inputrc"
18543 msgstr ""
18544
18545 #. type: =item
18546 #: ../fish/guestfish.pod:1196
18547 msgid "/etc/inputrc"
18548 msgstr ""
18549
18550 #. type: textblock
18551 #: ../fish/guestfish.pod:1198
18552 msgid ""
18553 "If compiled with GNU readline support, then these files can be used to "
18554 "configure readline.  For further information, please see L<readline(3)/"
18555 "INITIALIZATION FILE>."
18556 msgstr ""
18557
18558 #. type: textblock
18559 #: ../fish/guestfish.pod:1202
18560 msgid "To write rules which only apply to guestfish, use:"
18561 msgstr ""
18562
18563 #. type: verbatim
18564 #: ../fish/guestfish.pod:1204
18565 #, no-wrap
18566 msgid ""
18567 " $if guestfish\n"
18568 " ...\n"
18569 " $endif\n"
18570 "\n"
18571 msgstr ""
18572
18573 #. type: textblock
18574 #: ../fish/guestfish.pod:1208
18575 msgid ""
18576 "Variables that you can set in inputrc that change the behaviour of guestfish "
18577 "in useful ways include:"
18578 msgstr ""
18579
18580 #. type: =item
18581 #: ../fish/guestfish.pod:1213
18582 msgid "completion-ignore-case (default: on)"
18583 msgstr ""
18584
18585 #. type: textblock
18586 #: ../fish/guestfish.pod:1215
18587 msgid ""
18588 "By default, guestfish will ignore case when tab-completing paths on the "
18589 "disk.  Use:"
18590 msgstr ""
18591
18592 #. type: verbatim
18593 #: ../fish/guestfish.pod:1218
18594 #, no-wrap
18595 msgid ""
18596 " set completion-ignore-case off\n"
18597 "\n"
18598 msgstr ""
18599
18600 #. type: textblock
18601 #: ../fish/guestfish.pod:1220
18602 msgid "to make guestfish case sensitive."
18603 msgstr ""
18604
18605 #. type: =item
18606 #: ../fish/guestfish.pod:1224
18607 msgid "test1.img"
18608 msgstr ""
18609
18610 #. type: =item
18611 #: ../fish/guestfish.pod:1226
18612 msgid "test2.img (etc)"
18613 msgstr ""
18614
18615 #. type: textblock
18616 #: ../fish/guestfish.pod:1228
18617 msgid ""
18618 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
18619 "will be created in the file C<test1.img> in the current directory.  The "
18620 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
18621 "the same name will be overwritten."
18622 msgstr ""
18623
18624 #. type: textblock
18625 #: ../fish/guestfish.pod:1237
18626 msgid ""
18627 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
18628 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
18629 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
18630 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
18631 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
18632 ">, L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
18633 msgstr ""
18634
18635 #. type: textblock
18636 #: ../fish/guestfish.pod:1266 ../src/guestfs.pod:3104
18637 #: ../test-tool/libguestfs-test-tool.pod:99
18638 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
18639 msgstr ""
18640
18641 #. type: textblock
18642 #: ../fish/virt-copy-in.pod:5
18643 msgid ""
18644 "virt-copy-in - Copy files and directories into a virtual machine disk image."
18645 msgstr ""
18646
18647 #. type: verbatim
18648 #: ../fish/virt-copy-in.pod:9
18649 #, no-wrap
18650 msgid ""
18651 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
18652 "\n"
18653 msgstr ""
18654
18655 #. type: verbatim
18656 #: ../fish/virt-copy-in.pod:11
18657 #, no-wrap
18658 msgid ""
18659 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
18660 "\n"
18661 msgstr ""
18662
18663 #. type: textblock
18664 #: ../fish/virt-copy-in.pod:15
18665 msgid ""
18666 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
18667 "causing disk corruption.  The virtual machine must be shut down before you "
18668 "use this command."
18669 msgstr ""
18670
18671 #. type: textblock
18672 #: ../fish/virt-copy-in.pod:21
18673 msgid ""
18674 "C<virt-copy-in> copies files and directories from the local disk into a "
18675 "virtual machine disk image or named libvirt domain."
18676 msgstr ""
18677
18678 #. type: textblock
18679 #: ../fish/virt-copy-in.pod:24
18680 msgid ""
18681 "You can give one of more filenames and directories on the command line.  "
18682 "Directories are copied in recursively.  The final parameter must be the "
18683 "destination directory in the disk image which must be an absolute path "
18684 "starting with a C</> character."
18685 msgstr ""
18686
18687 #. type: verbatim
18688 #: ../fish/virt-copy-in.pod:33
18689 #, no-wrap
18690 msgid ""
18691 " virt-copy-in -d MyGuest resolv.conf /etc\n"
18692 "\n"
18693 msgstr ""
18694
18695 #. type: textblock
18696 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
18697 msgid "Upload a home directory to a guest:"
18698 msgstr ""
18699
18700 #. type: verbatim
18701 #: ../fish/virt-copy-in.pod:37
18702 #, no-wrap
18703 msgid ""
18704 " virt-copy-in -d MyGuest skel /home\n"
18705 "\n"
18706 msgstr ""
18707
18708 #. type: =head1
18709 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
18710 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
18711 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
18712 msgstr ""
18713
18714 #. type: textblock
18715 #: ../fish/virt-copy-in.pod:41
18716 msgid ""
18717 "This command is just a simple shell script wrapper around the L<guestfish(1)"
18718 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
18719 "are probably better off using guestfish directly."
18720 msgstr ""
18721
18722 #. type: textblock
18723 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
18724 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
18725 msgid ""
18726 "Since the shell script just passes options straight to guestfish, read "
18727 "L<guestfish(1)> to see the full list of options."
18728 msgstr ""
18729
18730 #. type: textblock
18731 #: ../fish/virt-copy-in.pod:52
18732 msgid ""
18733 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
18734 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
18735 msgstr ""
18736
18737 #. type: textblock
18738 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
18739 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
18740 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
18741 msgstr ""
18742
18743 #. type: textblock
18744 #: ../fish/virt-copy-out.pod:5
18745 msgid ""
18746 "virt-copy-out - Copy files and directories out of a virtual machine disk "
18747 "image."
18748 msgstr ""
18749
18750 #. type: verbatim
18751 #: ../fish/virt-copy-out.pod:9
18752 #, no-wrap
18753 msgid ""
18754 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
18755 "\n"
18756 msgstr ""
18757
18758 #. type: verbatim
18759 #: ../fish/virt-copy-out.pod:11
18760 #, no-wrap
18761 msgid ""
18762 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
18763 "\n"
18764 msgstr ""
18765
18766 #. type: textblock
18767 #: ../fish/virt-copy-out.pod:15
18768 msgid ""
18769 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
18770 "image or named libvirt domain."
18771 msgstr ""
18772
18773 #. type: textblock
18774 #: ../fish/virt-copy-out.pod:18
18775 msgid ""
18776 "You can give one of more filenames and directories on the command line.  "
18777 "Directories are copied out recursively."
18778 msgstr ""
18779
18780 #. type: textblock
18781 #: ../fish/virt-copy-out.pod:23
18782 msgid "Download the home directories from a virtual machine:"
18783 msgstr ""
18784
18785 #. type: verbatim
18786 #: ../fish/virt-copy-out.pod:25
18787 #, no-wrap
18788 msgid ""
18789 " mkdir homes\n"
18790 " virt-copy-out -d MyGuest /home homes\n"
18791 "\n"
18792 msgstr ""
18793
18794 #. type: textblock
18795 #: ../fish/virt-copy-out.pod:30
18796 msgid ""
18797 "This command is just a simple shell script wrapper around the L<guestfish(1)"
18798 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
18799 "are probably better off using guestfish directly."
18800 msgstr ""
18801
18802 #. type: textblock
18803 #: ../fish/virt-copy-out.pod:41
18804 msgid ""
18805 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
18806 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
18807 msgstr ""
18808
18809 #. type: textblock
18810 #: ../fish/virt-tar-in.pod:5
18811 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
18812 msgstr ""
18813
18814 #. type: verbatim
18815 #: ../fish/virt-tar-in.pod:9
18816 #, no-wrap
18817 msgid ""
18818 " virt-tar-in -a disk.img data.tar /destination\n"
18819 "\n"
18820 msgstr ""
18821
18822 #. type: verbatim
18823 #: ../fish/virt-tar-in.pod:11
18824 #, no-wrap
18825 msgid ""
18826 " virt-tar-in -d domain data.tar /destination\n"
18827 "\n"
18828 msgstr ""
18829
18830 #. type: verbatim
18831 #: ../fish/virt-tar-in.pod:13
18832 #, no-wrap
18833 msgid ""
18834 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
18835 "\n"
18836 msgstr ""
18837
18838 #. type: textblock
18839 #: ../fish/virt-tar-in.pod:17
18840 msgid ""
18841 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
18842 "causing disk corruption.  The virtual machine must be shut down before you "
18843 "use this command."
18844 msgstr ""
18845
18846 #. type: textblock
18847 #: ../fish/virt-tar-in.pod:23
18848 msgid ""
18849 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
18850 "image or named libvirt domain."
18851 msgstr ""
18852
18853 #. type: textblock
18854 #: ../fish/virt-tar-in.pod:26
18855 msgid ""
18856 "The first parameter is the tar file.  Use C<-> to read the tar file from "
18857 "standard input.  The second parameter is the absolute target directory to "
18858 "unpack into."
18859 msgstr ""
18860
18861 #. type: verbatim
18862 #: ../fish/virt-tar-in.pod:34
18863 #, no-wrap
18864 msgid ""
18865 " virt-tar-in -d MyGuest homes.tar /home\n"
18866 "\n"
18867 msgstr ""
18868
18869 #. type: textblock
18870 #: ../fish/virt-tar-in.pod:38
18871 msgid ""
18872 "This command is just a simple shell script wrapper around the L<guestfish(1)"
18873 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
18874 "probably better off using guestfish directly."
18875 msgstr ""
18876
18877 #. type: textblock
18878 #: ../fish/virt-tar-in.pod:49
18879 msgid ""
18880 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
18881 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
18882 "org/>."
18883 msgstr ""
18884
18885 #. type: textblock
18886 #: ../fish/virt-tar-out.pod:5
18887 msgid ""
18888 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
18889 msgstr ""
18890
18891 #. type: verbatim
18892 #: ../fish/virt-tar-out.pod:9
18893 #, no-wrap
18894 msgid ""
18895 " virt-tar-out -a disk.img /dir files.tar\n"
18896 "\n"
18897 msgstr ""
18898
18899 #. type: verbatim
18900 #: ../fish/virt-tar-out.pod:11
18901 #, no-wrap
18902 msgid ""
18903 " virt-tar-out -d domain /dir files.tar\n"
18904 "\n"
18905 msgstr ""
18906
18907 #. type: verbatim
18908 #: ../fish/virt-tar-out.pod:13
18909 #, no-wrap
18910 msgid ""
18911 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
18912 "\n"
18913 msgstr ""
18914
18915 #. type: textblock
18916 #: ../fish/virt-tar-out.pod:17
18917 msgid ""
18918 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
18919 msgstr ""
18920
18921 #. type: textblock
18922 #: ../fish/virt-tar-out.pod:20
18923 msgid ""
18924 "The first parameter is the absolute path of the virtual machine directory.  "
18925 "The second parameter is the tar file to write.  Use C<-> to write to "
18926 "standard output."
18927 msgstr ""
18928
18929 #. type: textblock
18930 #: ../fish/virt-tar-out.pod:26
18931 msgid "Download the home directories from a guest:"
18932 msgstr ""
18933
18934 #. type: verbatim
18935 #: ../fish/virt-tar-out.pod:28
18936 #, no-wrap
18937 msgid ""
18938 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
18939 "\n"
18940 msgstr ""
18941
18942 #. type: textblock
18943 #: ../fish/virt-tar-out.pod:32
18944 msgid ""
18945 "This command is just a simple shell script wrapper around the L<guestfish(1)"
18946 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
18947 "are probably better off using guestfish directly."
18948 msgstr ""
18949
18950 #. type: textblock
18951 #: ../fish/virt-tar-out.pod:43
18952 msgid ""
18953 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
18954 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
18955 msgstr ""
18956
18957 #. type: textblock
18958 #: ../fuse/guestmount.pod:5
18959 msgid ""
18960 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
18961 msgstr ""
18962
18963 #. type: verbatim
18964 #: ../fuse/guestmount.pod:9
18965 #, no-wrap
18966 msgid ""
18967 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
18968 "\n"
18969 msgstr ""
18970
18971 #. type: verbatim
18972 #: ../fuse/guestmount.pod:11
18973 #, no-wrap
18974 msgid ""
18975 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
18976 "\n"
18977 msgstr ""
18978
18979 #. type: verbatim
18980 #: ../fuse/guestmount.pod:13
18981 #, no-wrap
18982 msgid ""
18983 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
18984 "\n"
18985 msgstr ""
18986
18987 #. type: textblock
18988 #: ../fuse/guestmount.pod:17
18989 msgid ""
18990 "You must I<not> use C<guestmount> in read-write mode on live virtual "
18991 "machines.  If you do this, you risk disk corruption in the VM."
18992 msgstr ""
18993
18994 #. type: textblock
18995 #: ../fuse/guestmount.pod:22
18996 msgid ""
18997 "The guestmount program can be used to mount virtual machine filesystems and "
18998 "other disk images on the host.  It uses libguestfs for access to the guest "
18999 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
19000 "a mountable device."
19001 msgstr ""
19002
19003 #. type: textblock
19004 #: ../fuse/guestmount.pod:27
19005 msgid ""
19006 "Along with other options, you have to give at least one device (I<-a> "
19007 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
19008 "option) or use the I<-i> inspection option.  How this works is better "
19009 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
19010 "below."
19011 msgstr ""
19012
19013 #. type: textblock
19014 #: ../fuse/guestmount.pod:33
19015 msgid ""
19016 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
19017 "by you, and the filesystem will not be visible to any other users unless you "
19018 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
19019 "the filesystem, use the C<fusermount -u> command."
19020 msgstr ""
19021
19022 #. type: textblock
19023 #: ../fuse/guestmount.pod:41
19024 msgid ""
19025 "For a typical Windows guest which has its main filesystem on the first "
19026 "partition:"
19027 msgstr ""
19028
19029 #. type: verbatim
19030 #: ../fuse/guestmount.pod:44
19031 #, no-wrap
19032 msgid ""
19033 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
19034 "\n"
19035 msgstr ""
19036
19037 #. type: textblock
19038 #: ../fuse/guestmount.pod:46
19039 msgid ""
19040 "For a typical Linux guest which has a /boot filesystem on the first "
19041 "partition, and the root filesystem on a logical volume:"
19042 msgstr ""
19043
19044 #. type: verbatim
19045 #: ../fuse/guestmount.pod:49
19046 #, no-wrap
19047 msgid ""
19048 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
19049 "\n"
19050 msgstr ""
19051
19052 #. type: textblock
19053 #: ../fuse/guestmount.pod:51
19054 msgid "To get libguestfs to detect guest mountpoints for you:"
19055 msgstr ""
19056
19057 #. type: verbatim
19058 #: ../fuse/guestmount.pod:53
19059 #, no-wrap
19060 msgid ""
19061 " guestmount -a guest.img -i --ro /mnt\n"
19062 "\n"
19063 msgstr ""
19064
19065 #. type: textblock
19066 #: ../fuse/guestmount.pod:55
19067 msgid "For a libvirt guest called \"Guest\" you could do:"
19068 msgstr ""
19069
19070 #. type: verbatim
19071 #: ../fuse/guestmount.pod:57
19072 #, no-wrap
19073 msgid ""
19074 " guestmount -d Guest -i --ro /mnt\n"
19075 "\n"
19076 msgstr ""
19077
19078 #. type: textblock
19079 #: ../fuse/guestmount.pod:59
19080 msgid ""
19081 "If you don't know what filesystems are contained in a guest or disk image, "
19082 "use L<virt-filesystems(1)> first:"
19083 msgstr ""
19084
19085 #. type: verbatim
19086 #: ../fuse/guestmount.pod:62
19087 #, no-wrap
19088 msgid ""
19089 " virt-filesystems MyGuest\n"
19090 "\n"
19091 msgstr ""
19092
19093 #. type: textblock
19094 #: ../fuse/guestmount.pod:64
19095 msgid ""
19096 "If you want to trace the libguestfs calls but without excessive debugging "
19097 "information, we recommend:"
19098 msgstr ""
19099
19100 #. type: verbatim
19101 #: ../fuse/guestmount.pod:67
19102 #, no-wrap
19103 msgid ""
19104 " guestmount [...] --trace /mnt\n"
19105 "\n"
19106 msgstr ""
19107
19108 #. type: textblock
19109 #: ../fuse/guestmount.pod:69
19110 msgid "If you want to debug the program, we recommend:"
19111 msgstr ""
19112
19113 #. type: verbatim
19114 #: ../fuse/guestmount.pod:71
19115 #, no-wrap
19116 msgid ""
19117 " guestmount [...] --trace --verbose /mnt\n"
19118 "\n"
19119 msgstr ""
19120
19121 #. type: =head1
19122 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
19123 #: ../resize/virt-resize.pod:486
19124 msgid "NOTES"
19125 msgstr ""
19126
19127 #. type: =head2
19128 #: ../fuse/guestmount.pod:75
19129 msgid "Other users cannot see the filesystem by default"
19130 msgstr ""
19131
19132 #. type: textblock
19133 #: ../fuse/guestmount.pod:77
19134 msgid ""
19135 "If you mount a filesystem as one user (eg. root), then other users will not "
19136 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
19137 "option when mounting:"
19138 msgstr ""
19139
19140 #. type: verbatim
19141 #: ../fuse/guestmount.pod:81
19142 #, no-wrap
19143 msgid ""
19144 " sudo guestmount [...] -o allow_other /mnt\n"
19145 "\n"
19146 msgstr ""
19147
19148 #. type: textblock
19149 #: ../fuse/guestmount.pod:91
19150 msgid "Add a block device or virtual machine image."
19151 msgstr ""
19152
19153 #. type: =item
19154 #: ../fuse/guestmount.pod:114
19155 msgid "B<--dir-cache-timeout N>"
19156 msgstr ""
19157
19158 #. type: textblock
19159 #: ../fuse/guestmount.pod:116
19160 msgid ""
19161 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
19162 "seconds.  The readdir cache [actually, there are several semi-independent "
19163 "caches] is populated after a readdir(2) call with the stat and extended "
19164 "attributes of the files in the directory, in anticipation that they will be "
19165 "requested soon after."
19166 msgstr ""
19167
19168 #. type: textblock
19169 #: ../fuse/guestmount.pod:122
19170 msgid ""
19171 "There is also a different attribute cache implemented by FUSE (see the FUSE "
19172 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
19173 "requests, only cache existing ones."
19174 msgstr ""
19175
19176 #. type: textblock
19177 #: ../fuse/guestmount.pod:142
19178 msgid ""
19179 "If you have untrusted raw-format guest disk images, you should use this "
19180 "option to specify the disk format.  This avoids a possible security problem "
19181 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
19182 "guestfs_add_drive_opts>."
19183 msgstr ""
19184
19185 #. type: =item
19186 #: ../fuse/guestmount.pod:147
19187 msgid "B<--fuse-help>"
19188 msgstr ""
19189
19190 #. type: textblock
19191 #: ../fuse/guestmount.pod:149
19192 msgid "Display help on special FUSE options (see I<-o> below)."
19193 msgstr ""
19194
19195 #. type: textblock
19196 #: ../fuse/guestmount.pod:153
19197 msgid "Display brief help and exit."
19198 msgstr ""
19199
19200 #. type: textblock
19201 #: ../fuse/guestmount.pod:177
19202 msgid ""
19203 "Mount the named partition or logical volume on the given mountpoint B<in the "
19204 "guest> (this has nothing to do with mountpoints in the host)."
19205 msgstr ""
19206
19207 #. type: textblock
19208 #: ../fuse/guestmount.pod:180
19209 msgid ""
19210 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
19211 "something on C</>."
19212 msgstr ""
19213
19214 #. type: textblock
19215 #: ../fuse/guestmount.pod:197
19216 msgid ""
19217 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
19218 "unmounted.  If you specify this option, then we don't attempt to sync the "
19219 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
19220 msgstr ""
19221
19222 #. type: =item
19223 #: ../fuse/guestmount.pod:202
19224 msgid "B<-o option>"
19225 msgstr ""
19226
19227 #. type: =item
19228 #: ../fuse/guestmount.pod:204
19229 msgid "B<--option option>"
19230 msgstr ""
19231
19232 #. type: textblock
19233 #: ../fuse/guestmount.pod:206
19234 msgid "Pass extra options to FUSE."
19235 msgstr ""
19236
19237 #. type: textblock
19238 #: ../fuse/guestmount.pod:208
19239 msgid ""
19240 "To get a list of all the extra options supported by FUSE, use the command "
19241 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
19242 "of them are a good idea."
19243 msgstr ""
19244
19245 #. type: verbatim
19246 #: ../fuse/guestmount.pod:212
19247 #, no-wrap
19248 msgid ""
19249 " guestmount --fuse-help\n"
19250 "\n"
19251 msgstr ""
19252
19253 #. type: textblock
19254 #: ../fuse/guestmount.pod:214
19255 msgid "Some potentially useful FUSE options:"
19256 msgstr ""
19257
19258 #. type: =item
19259 #: ../fuse/guestmount.pod:218
19260 msgid "B<-o allow_other>"
19261 msgstr ""
19262
19263 #. type: textblock
19264 #: ../fuse/guestmount.pod:220
19265 msgid "Allow other users to see the filesystem."
19266 msgstr ""
19267
19268 #. type: =item
19269 #: ../fuse/guestmount.pod:222
19270 msgid "B<-o attr_timeout=N>"
19271 msgstr ""
19272
19273 #. type: textblock
19274 #: ../fuse/guestmount.pod:224
19275 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
19276 msgstr ""
19277
19278 #. type: =item
19279 #: ../fuse/guestmount.pod:226
19280 msgid "B<-o kernel_cache>"
19281 msgstr ""
19282
19283 #. type: textblock
19284 #: ../fuse/guestmount.pod:228
19285 msgid ""
19286 "Allow the kernel to cache files (reduces the number of reads that have to go "
19287 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
19288 "afford the extra memory usage."
19289 msgstr ""
19290
19291 #. type: =item
19292 #: ../fuse/guestmount.pod:232
19293 msgid "B<-o uid=N> B<-o gid=N>"
19294 msgstr ""
19295
19296 #. type: textblock
19297 #: ../fuse/guestmount.pod:234
19298 msgid ""
19299 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
19300 "the chosen values."
19301 msgstr ""
19302
19303 #. type: textblock
19304 #: ../fuse/guestmount.pod:243
19305 msgid ""
19306 "Add devices and mount everything read-only.  Also disallow writes and make "
19307 "the disk appear read-only to FUSE."
19308 msgstr ""
19309
19310 #. type: textblock
19311 #: ../fuse/guestmount.pod:246
19312 msgid ""
19313 "This is highly recommended if you are not going to edit the guest disk.  If "
19314 "the guest is running and this option is I<not> supplied, then there is a "
19315 "strong risk of disk corruption in the guest.  We try to prevent this from "
19316 "happening, but it is not always possible."
19317 msgstr ""
19318
19319 #. type: textblock
19320 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
19321 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
19322 msgstr ""
19323
19324 #. type: textblock
19325 #: ../fuse/guestmount.pod:255
19326 msgid "Enable SELinux support for the guest."
19327 msgstr ""
19328
19329 #. type: textblock
19330 #: ../fuse/guestmount.pod:261
19331 msgid "Enable verbose messages from underlying libguestfs."
19332 msgstr ""
19333
19334 #. type: textblock
19335 #: ../fuse/guestmount.pod:267
19336 msgid "Display the program version and exit."
19337 msgstr ""
19338
19339 #. type: textblock
19340 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299
19341 #: ../rescue/virt-rescue.pod:197 ../rescue/virt-rescue.pod:280
19342 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
19343 msgstr ""
19344
19345 #. type: =item
19346 #: ../fuse/guestmount.pod:280
19347 msgid "B<--trace>"
19348 msgstr ""
19349
19350 #. type: textblock
19351 #: ../fuse/guestmount.pod:282
19352 msgid "Trace libguestfs calls and entry into each FUSE function."
19353 msgstr ""
19354
19355 #. type: textblock
19356 #: ../fuse/guestmount.pod:284
19357 msgid "This also stops the daemon from forking into the background."
19358 msgstr ""
19359
19360 #. type: textblock
19361 #: ../fuse/guestmount.pod:305
19362 msgid ""
19363 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
19364 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
19365 "net/>."
19366 msgstr ""
19367
19368 #. type: textblock
19369 #: ../fuse/guestmount.pod:320
19370 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
19371 msgstr ""
19372
19373 #. type: textblock
19374 #: ../inspector/virt-inspector.pod:5
19375 msgid ""
19376 "virt-inspector - Display operating system version and other information "
19377 "about a virtual machine"
19378 msgstr ""
19379
19380 #. type: verbatim
19381 #: ../inspector/virt-inspector.pod:9
19382 #, no-wrap
19383 msgid ""
19384 " virt-inspector [--options] -d domname\n"
19385 "\n"
19386 msgstr ""
19387
19388 #. type: verbatim
19389 #: ../inspector/virt-inspector.pod:11
19390 #, no-wrap
19391 msgid ""
19392 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
19393 "\n"
19394 msgstr ""
19395
19396 #. type: verbatim
19397 #: ../inspector/virt-inspector.pod:15
19398 #, no-wrap
19399 msgid ""
19400 " virt-inspector domname\n"
19401 "\n"
19402 msgstr ""
19403
19404 #. type: verbatim
19405 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
19406 #, no-wrap
19407 msgid ""
19408 " virt-inspector disk.img [disk.img ...]\n"
19409 "\n"
19410 msgstr ""
19411
19412 #. type: textblock
19413 #: ../inspector/virt-inspector.pod:21
19414 msgid ""
19415 "B<virt-inspector> examines a virtual machine or disk image and tries to "
19416 "determine the version of the operating system and other information about "
19417 "the virtual machine."
19418 msgstr ""
19419
19420 #. type: textblock
19421 #: ../inspector/virt-inspector.pod:25
19422 msgid "Virt-inspector produces XML output for feeding into other programs."
19423 msgstr ""
19424
19425 #. type: textblock
19426 #: ../inspector/virt-inspector.pod:27
19427 msgid ""
19428 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
19429 "the libvirt domain (see: C<virsh list --all>)."
19430 msgstr ""
19431
19432 #. type: textblock
19433 #: ../inspector/virt-inspector.pod:30
19434 msgid ""
19435 "You can also run virt-inspector directly on disk images from a single "
19436 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
19437 "has several block devices, in which case you should list several I<-a> "
19438 "options one after another, with the first corresponding to the guest's C</"
19439 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
19440 msgstr ""
19441
19442 #. type: textblock
19443 #: ../inspector/virt-inspector.pod:37
19444 msgid ""
19445 "You can also run virt-inspector on install disks, live CDs, bootable USB "
19446 "keys and similar."
19447 msgstr ""
19448
19449 #. type: textblock
19450 #: ../inspector/virt-inspector.pod:40
19451 msgid ""
19452 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
19453 "inspect several virtual machines, you have to run virt-inspector several "
19454 "times (for example, from a shell script for-loop)."
19455 msgstr ""
19456
19457 #. type: textblock
19458 #: ../inspector/virt-inspector.pod:45
19459 msgid ""
19460 "Because virt-inspector needs direct access to guest images, it won't "
19461 "normally work over remote libvirt connections."
19462 msgstr ""
19463
19464 #. type: textblock
19465 #: ../inspector/virt-inspector.pod:48
19466 msgid ""
19467 "All of the information available from virt-inspector is also available "
19468 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
19469 "The same information can also be fetched using guestfish or via libguestfs "
19470 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
19471 "WITH OTHER PROGRAMMING LANGUAGES>)."
19472 msgstr ""
19473
19474 #. type: textblock
19475 #: ../inspector/virt-inspector.pod:81
19476 msgid ""
19477 "Libvirt is only used if you specify a C<domname> on the command line.  If "
19478 "you specify guest block devices directly (I<-a>), then libvirt is not used "
19479 "at all."
19480 msgstr ""
19481
19482 #. type: textblock
19483 #: ../inspector/virt-inspector.pod:94
19484 msgid ""
19485 "When prompting for keys and passphrases, virt-inspector normally turns "
19486 "echoing off so you cannot see what you are typing.  If you are not worried "
19487 "about Tempest attacks and there is no one else in the room you can specify "
19488 "this flag to see what you are typing."
19489 msgstr ""
19490
19491 #. type: textblock
19492 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
19493 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
19494 #: ../tools/virt-win-reg.pl:144
19495 msgid ""
19496 "Specify the format of disk images given on the command line.  If this is "
19497 "omitted then the format is autodetected from the content of the disk image."
19498 msgstr ""
19499
19500 #. type: textblock
19501 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
19502 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
19503 #: ../tools/virt-win-reg.pl:148
19504 msgid ""
19505 "If disk images are requested from libvirt, then this program asks libvirt "
19506 "for this information.  In this case, the value of the format parameter is "
19507 "ignored."
19508 msgstr ""
19509
19510 #. type: textblock
19511 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
19512 #: ../resize/virt-resize.pod:400 ../tools/virt-list-filesystems.pl:101
19513 #: ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151
19514 #: ../tools/virt-win-reg.pl:152
19515 msgid ""
19516 "If working with untrusted raw-format guest disk images, you should ensure "
19517 "the format is always specified."
19518 msgstr ""
19519
19520 #. type: textblock
19521 #: ../inspector/virt-inspector.pod:139
19522 msgid "Previous versions of virt-inspector allowed you to write either:"
19523 msgstr ""
19524
19525 #. type: verbatim
19526 #: ../inspector/virt-inspector.pod:145
19527 #, no-wrap
19528 msgid ""
19529 " virt-inspector guestname\n"
19530 "\n"
19531 msgstr ""
19532
19533 #. type: =head1
19534 #: ../inspector/virt-inspector.pod:153
19535 msgid "XML FORMAT"
19536 msgstr ""
19537
19538 #. type: textblock
19539 #: ../inspector/virt-inspector.pod:155
19540 msgid ""
19541 "The virt-inspector XML is described precisely in a RELAX NG schema file "
19542 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
19543 "just an overview."
19544 msgstr ""
19545
19546 #. type: textblock
19547 #: ../inspector/virt-inspector.pod:159
19548 msgid ""
19549 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
19550 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
19551 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
19552 "which is vanishingly rare in real world VMs."
19553 msgstr ""
19554
19555 #. type: =head2
19556 #: ../inspector/virt-inspector.pod:164
19557 msgid "E<lt>operatingsystemE<gt>"
19558 msgstr ""
19559
19560 #. type: textblock
19561 #: ../inspector/virt-inspector.pod:166
19562 msgid ""
19563 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
19564 "describe the operating system, its architecture, the descriptive \"product "
19565 "name\" string, the type of OS and so on, as in this example:"
19566 msgstr ""
19567
19568 #. type: verbatim
19569 #: ../inspector/virt-inspector.pod:170
19570 #, no-wrap
19571 msgid ""
19572 " <operatingsystems>\n"
19573 "   <operatingsystem>\n"
19574 "     <root>/dev/sda2</root>\n"
19575 "     <name>windows</name>\n"
19576 "     <arch>i386</arch>\n"
19577 "     <distro>windows</distro>\n"
19578 "     <product_name>Windows 7 Enterprise</product_name>\n"
19579 "     <product_variant>Client</product_variant>\n"
19580 "     <major_version>6</major_version>\n"
19581 "     <minor_version>1</minor_version>\n"
19582 "     <windows_systemroot>/Windows</windows_systemroot>\n"
19583 "     <format>installed</format>\n"
19584 "\n"
19585 msgstr ""
19586
19587 #. type: textblock
19588 #: ../inspector/virt-inspector.pod:183
19589 msgid ""
19590 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
19591 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
19592 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
19593 "architecture.  The other fields are fairly self-explanatory, but because "
19594 "these fields are taken directly from the libguestfs inspection API you can "
19595 "find precise information from L<guestfs(3)/INSPECTION>."
19596 msgstr ""
19597
19598 #. type: textblock
19599 #: ../inspector/virt-inspector.pod:191
19600 msgid ""
19601 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
19602 "of view of libguestfs (block devices may have completely different names "
19603 "inside the VM itself)."
19604 msgstr ""
19605
19606 #. type: =head2
19607 #: ../inspector/virt-inspector.pod:195
19608 msgid "E<lt>mountpointsE<gt>"
19609 msgstr ""
19610
19611 #. type: textblock
19612 #: ../inspector/virt-inspector.pod:197
19613 msgid ""
19614 "Un*x-like guests typically have multiple filesystems which are mounted at "
19615 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
19616 "element which looks like this:"
19617 msgstr ""
19618
19619 #. type: verbatim
19620 #: ../inspector/virt-inspector.pod:201
19621 #, no-wrap
19622 msgid ""
19623 " <operatingsystems>\n"
19624 "   <operatingsystem>\n"
19625 "     ...\n"
19626 "     <mountpoints>\n"
19627 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
19628 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
19629 "     </mountpoints>\n"
19630 "\n"
19631 msgstr ""
19632
19633 #. type: textblock
19634 #: ../inspector/virt-inspector.pod:209
19635 msgid ""
19636 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
19637 "and may have completely different names inside the guest.  Only mountable "
19638 "filesystems appear in this list, not things like swap devices."
19639 msgstr ""
19640
19641 #. type: =head2
19642 #: ../inspector/virt-inspector.pod:214
19643 msgid "E<lt>filesystemsE<gt>"
19644 msgstr ""
19645
19646 #. type: textblock
19647 #: ../inspector/virt-inspector.pod:216
19648 msgid ""
19649 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
19650 "filesystems belonging to the guest, including swap and empty partitions.  "
19651 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
19652 "this OS or shared with this OS and other OSes)."
19653 msgstr ""
19654
19655 #. type: textblock
19656 #: ../inspector/virt-inspector.pod:222
19657 msgid "You might see something like this:"
19658 msgstr ""
19659
19660 #. type: verbatim
19661 #: ../inspector/virt-inspector.pod:224
19662 #, no-wrap
19663 msgid ""
19664 " <operatingsystems>\n"
19665 "   <operatingsystem>\n"
19666 "     ...\n"
19667 "     <filesystems>\n"
19668 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
19669 "         <type>ext4</type>\n"
19670 "         <label>Fedora-13-x86_64</label>\n"
19671 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
19672 "       </filesystem>\n"
19673 "\n"
19674 msgstr ""
19675
19676 #. type: textblock
19677 #: ../inspector/virt-inspector.pod:234
19678 msgid ""
19679 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
19680 "the label, and the UUID."
19681 msgstr ""
19682
19683 #. type: =head2
19684 #: ../inspector/virt-inspector.pod:237
19685 msgid "E<lt>applicationsE<gt>"
19686 msgstr ""
19687
19688 #. type: textblock
19689 #: ../inspector/virt-inspector.pod:239
19690 msgid ""
19691 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
19692 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
19693 "machine."
19694 msgstr ""
19695
19696 #. type: textblock
19697 #: ../inspector/virt-inspector.pod:243
19698 msgid ""
19699 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
19700 "Typical values would be C<rpm> and C<deb>."
19701 msgstr ""
19702
19703 #. type: textblock
19704 #: ../inspector/virt-inspector.pod:246
19705 msgid ""
19706 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
19707 "Typical values include C<yum>, C<up2date> and C<apt>"
19708 msgstr ""
19709
19710 #. type: textblock
19711 #: ../inspector/virt-inspector.pod:249
19712 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
19713 msgstr ""
19714
19715 #. type: verbatim
19716 #: ../inspector/virt-inspector.pod:252
19717 #, no-wrap
19718 msgid ""
19719 " <operatingsystems>\n"
19720 "   <operatingsystem>\n"
19721 "     ...\n"
19722 "     <applications>\n"
19723 "       <application>\n"
19724 "         <name>coreutils</name>\n"
19725 "         <version>8.5</version>\n"
19726 "         <release>1</release>\n"
19727 "       </application>\n"
19728 "\n"
19729 msgstr ""
19730
19731 #. type: textblock
19732 #: ../inspector/virt-inspector.pod:262
19733 msgid ""
19734 "The version and release fields may not be available for some types guests.  "
19735 "Other fields are possible, see L<guestfs(3)/"
19736 "guestfs_inspect_list_applications>."
19737 msgstr ""
19738
19739 #. type: =head2
19740 #: ../inspector/virt-inspector.pod:266
19741 msgid "E<lt>drive_mappingsE<gt>"
19742 msgstr ""
19743
19744 #. type: textblock
19745 #: ../inspector/virt-inspector.pod:268
19746 msgid ""
19747 "For operating systems like Windows which use drive letters, virt-inspector "
19748 "is able to find out how drive letters map to filesystems."
19749 msgstr ""
19750
19751 #. type: verbatim
19752 #: ../inspector/virt-inspector.pod:272
19753 #, no-wrap
19754 msgid ""
19755 " <operatingsystems>\n"
19756 "   <operatingsystem>\n"
19757 "     ...\n"
19758 "     <drive_mappings>\n"
19759 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
19760 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
19761 "     </drive_mappings>\n"
19762 "\n"
19763 msgstr ""
19764
19765 #. type: textblock
19766 #: ../inspector/virt-inspector.pod:280
19767 msgid ""
19768 "In the example above, drive C maps to the filesystem on the second partition "
19769 "on the first disk, and drive E maps to the filesystem on the first partition "
19770 "on the second disk."
19771 msgstr ""
19772
19773 #. type: textblock
19774 #: ../inspector/virt-inspector.pod:284
19775 msgid ""
19776 "Note that this only covers permanent local filesystem mappings, not things "
19777 "like network shares.  Furthermore NTFS volume mount points may not be listed "
19778 "here."
19779 msgstr ""
19780
19781 #. type: =head2
19782 #: ../inspector/virt-inspector.pod:288
19783 msgid "E<lt>iconE<gt>"
19784 msgstr ""
19785
19786 #. type: textblock
19787 #: ../inspector/virt-inspector.pod:290
19788 msgid ""
19789 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
19790 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
19791 "very large and high quality."
19792 msgstr ""
19793
19794 #. type: verbatim
19795 #: ../inspector/virt-inspector.pod:294
19796 #, no-wrap
19797 msgid ""
19798 " <operatingsystems>\n"
19799 "   <operatingsystem>\n"
19800 "     ...\n"
19801 "     <icon>\n"
19802 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
19803 "       [... many lines of base64 data ...]\n"
19804 "     </icon>\n"
19805 "\n"
19806 msgstr ""
19807
19808 #. type: textblock
19809 #: ../inspector/virt-inspector.pod:302
19810 msgid ""
19811 "To display the icon, you have to extract it and convert the base64 data back "
19812 "to a binary file.  Use an XPath query or simply an editor to extract the "
19813 "data, then use the coreutils L<base64(1)> program to do the conversion back "
19814 "to a PNG file:"
19815 msgstr ""
19816
19817 #. type: verbatim
19818 #: ../inspector/virt-inspector.pod:307
19819 #, no-wrap
19820 msgid ""
19821 " base64 -i -d < icon.data > icon.png\n"
19822 "\n"
19823 msgstr ""
19824
19825 #. type: =head2
19826 #: ../inspector/virt-inspector.pod:309
19827 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
19828 msgstr ""
19829
19830 #. type: textblock
19831 #: ../inspector/virt-inspector.pod:311
19832 msgid ""
19833 "Virt-inspector can detect some operating system installers on install disks, "
19834 "live CDs, bootable USB keys and more."
19835 msgstr ""
19836
19837 #. type: textblock
19838 #: ../inspector/virt-inspector.pod:314
19839 msgid ""
19840 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
19841 "fields may be present to indicate a live CD, network installer, or one part "
19842 "of a multipart CD.  For example:"
19843 msgstr ""
19844
19845 #. type: verbatim
19846 #: ../inspector/virt-inspector.pod:318
19847 #, no-wrap
19848 msgid ""
19849 " <operatingsystems>\n"
19850 "   <operatingsystem>\n"
19851 "     <root>/dev/sda</root>\n"
19852 "     <name>linux</name>\n"
19853 "     <arch>i386</arch>\n"
19854 "     <distro>ubuntu</distro>\n"
19855 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
19856 "     <major_version>10</major_version>\n"
19857 "     <minor_version>10</minor_version>\n"
19858 "     <format>installer</format>\n"
19859 "     <live/>\n"
19860 "\n"
19861 msgstr ""
19862
19863 #. type: =head1
19864 #: ../inspector/virt-inspector.pod:330
19865 msgid "USING XPATH"
19866 msgstr ""
19867
19868 #. type: textblock
19869 #: ../inspector/virt-inspector.pod:332
19870 msgid ""
19871 "You can use the XPath query language, and/or the xpath tool, in order to "
19872 "select parts of the XML."
19873 msgstr ""
19874
19875 #. type: verbatim
19876 #: ../inspector/virt-inspector.pod:337
19877 #, no-wrap
19878 msgid ""
19879 " $ virt-inspector -d Guest | xpath //filesystems\n"
19880 " Found 1 nodes:\n"
19881 " -- NODE --\n"
19882 " <filesystems>\n"
19883 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
19884 "        <type>ext4</type>\n"
19885 " [etc]\n"
19886 "\n"
19887 msgstr ""
19888
19889 #. type: verbatim
19890 #: ../inspector/virt-inspector.pod:345
19891 #, no-wrap
19892 msgid ""
19893 " $ virt-inspector -d Guest | \\\n"
19894 "     xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
19895 " Query didn't return a nodeset. Value: ext4\n"
19896 "\n"
19897 msgstr ""
19898
19899 #. type: =head1
19900 #: ../inspector/virt-inspector.pod:356
19901 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
19902 msgstr ""
19903
19904 #. type: textblock
19905 #: ../inspector/virt-inspector.pod:358
19906 msgid ""
19907 "Early versions of libguestfs shipped with a different virt-inspector program "
19908 "written in Perl (the current version is written in C).  The XML output of "
19909 "the Perl virt-inspector was different and it could also output in other "
19910 "formats like text."
19911 msgstr ""
19912
19913 #. type: textblock
19914 #: ../inspector/virt-inspector.pod:363
19915 msgid ""
19916 "The old virt-inspector is no longer supported or shipped with libguestfs."
19917 msgstr ""
19918
19919 #. type: textblock
19920 #: ../inspector/virt-inspector.pod:366
19921 msgid ""
19922 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
19923 "versions of virt-inspector with different names:"
19924 msgstr ""
19925
19926 #. type: verbatim
19927 #: ../inspector/virt-inspector.pod:369
19928 #, no-wrap
19929 msgid ""
19930 " virt-inspector     Old Perl version.\n"
19931 " virt-inspector2    New C version.\n"
19932 "\n"
19933 msgstr ""
19934
19935 #. type: textblock
19936 #: ../inspector/virt-inspector.pod:374
19937 msgid ""
19938 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
19939 ">, L<http://libguestfs.org/>."
19940 msgstr ""
19941
19942 #. type: textblock
19943 #: ../inspector/virt-inspector.pod:390
19944 msgid "Matthew Booth L<mbooth@redhat.com>"
19945 msgstr ""
19946
19947 #. type: textblock
19948 #: ../java/examples/guestfs-java.pod:5
19949 msgid "guestfs-java - How to use libguestfs from Java"
19950 msgstr ""
19951
19952 #. type: verbatim
19953 #: ../java/examples/guestfs-java.pod:9
19954 #, no-wrap
19955 msgid ""
19956 " import com.redhat.et.libguestfs.*;\n"
19957 " \n"
19958 msgstr ""
19959
19960 #. type: verbatim
19961 #: ../java/examples/guestfs-java.pod:11
19962 #, no-wrap
19963 msgid ""
19964 " GuestFS g = new GuestFS ();\n"
19965 " g.add_drive_opts (\"disk.img\", null);\n"
19966 " g.launch ();\n"
19967 "\n"
19968 msgstr ""
19969
19970 #. type: textblock
19971 #: ../java/examples/guestfs-java.pod:17
19972 msgid ""
19973 "This manual page documents how to call libguestfs from the Java programming "
19974 "language.  This page just documents the differences from the C API and gives "
19975 "some examples.  If you are not familiar with using libguestfs, you also need "
19976 "to read L<guestfs(3)>."
19977 msgstr ""
19978
19979 #. type: =head2
19980 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
19981 msgid "CLOSING THE HANDLE"
19982 msgstr ""
19983
19984 #. type: textblock
19985 #: ../java/examples/guestfs-java.pod:24
19986 msgid ""
19987 "The handle is closed when it is reaped by the garbage collector.  Because "
19988 "libguestfs handles include a lot of state, it is also possible to close (and "
19989 "hence free) them explicitly by calling the C<close> method."
19990 msgstr ""
19991
19992 #. type: =head2
19993 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
19994 #: ../python/examples/guestfs-python.pod:21
19995 #: ../ruby/examples/guestfs-ruby.pod:22
19996 msgid "EXCEPTIONS"
19997 msgstr ""
19998
19999 #. type: textblock
20000 #: ../java/examples/guestfs-java.pod:31
20001 msgid ""
20002 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
20003 "exception.  This has a single parameter which is the error message (a "
20004 "C<String>)."
20005 msgstr ""
20006
20007 #. type: textblock
20008 #: ../java/examples/guestfs-java.pod:35
20009 msgid "Calling any method on a closed handle raises the same exception."
20010 msgstr ""
20011
20012 #. type: textblock
20013 #: ../java/examples/guestfs-java.pod:47
20014 msgid ""
20015 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)"
20016 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
20017 "libguestfs.org/>, L<http://caml.inria.fr/>."
20018 msgstr ""
20019
20020 #. type: textblock
20021 #: ../java/examples/guestfs-java.pod:63 ../perl/examples/guestfs-perl.pod:57
20022 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
20023 msgstr ""
20024
20025 #. type: textblock
20026 #: ../ocaml/examples/guestfs-ocaml.pod:5
20027 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
20028 msgstr ""
20029
20030 #. type: textblock
20031 #: ../ocaml/examples/guestfs-ocaml.pod:9
20032 msgid "Module style:"
20033 msgstr ""
20034
20035 #. type: verbatim
20036 #: ../ocaml/examples/guestfs-ocaml.pod:11
20037 #, no-wrap
20038 msgid ""
20039 " let g = Guestfs.create () in\n"
20040 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
20041 " Guestfs.launch g;\n"
20042 "\n"
20043 msgstr ""
20044
20045 #. type: textblock
20046 #: ../ocaml/examples/guestfs-ocaml.pod:15
20047 msgid "Object-oriented style:"
20048 msgstr ""
20049
20050 #. type: verbatim
20051 #: ../ocaml/examples/guestfs-ocaml.pod:17
20052 #, no-wrap
20053 msgid ""
20054 " let g = new Guestfs.guestfs () in\n"
20055 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
20056 " g#launch ();\n"
20057 "\n"
20058 msgstr ""
20059
20060 #. type: verbatim
20061 #: ../ocaml/examples/guestfs-ocaml.pod:21
20062 #, no-wrap
20063 msgid ""
20064 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
20065 "or:\n"
20066 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
20067 "\n"
20068 msgstr ""
20069
20070 #. type: textblock
20071 #: ../ocaml/examples/guestfs-ocaml.pod:27
20072 msgid ""
20073 "This manual page documents how to call libguestfs from the OCaml programming "
20074 "language.  This page just documents the differences from the C API and gives "
20075 "some examples.  If you are not familiar with using libguestfs, you also need "
20076 "to read L<guestfs(3)>."
20077 msgstr ""
20078
20079 #. type: =head2
20080 #: ../ocaml/examples/guestfs-ocaml.pod:32
20081 msgid "PROGRAMMING STYLES"
20082 msgstr ""
20083
20084 #. type: textblock
20085 #: ../ocaml/examples/guestfs-ocaml.pod:34
20086 msgid ""
20087 "There are two different programming styles supported by the OCaml bindings.  "
20088 "You can use a module style, with each C function mapped to an OCaml function:"
20089 msgstr ""
20090
20091 #. type: verbatim
20092 #: ../ocaml/examples/guestfs-ocaml.pod:38
20093 #, no-wrap
20094 msgid ""
20095 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
20096 "\n"
20097 msgstr ""
20098
20099 #. type: textblock
20100 #: ../ocaml/examples/guestfs-ocaml.pod:40
20101 msgid "becomes:"
20102 msgstr ""
20103
20104 #. type: verbatim
20105 #: ../ocaml/examples/guestfs-ocaml.pod:42
20106 #, no-wrap
20107 msgid ""
20108 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
20109 "\n"
20110 msgstr ""
20111
20112 #. type: textblock
20113 #: ../ocaml/examples/guestfs-ocaml.pod:44
20114 msgid ""
20115 "Alternately you can use an object-oriented style, calling methods on the "
20116 "class C<Guestfs.guestfs>:"
20117 msgstr ""
20118
20119 #. type: verbatim
20120 #: ../ocaml/examples/guestfs-ocaml.pod:47
20121 #, no-wrap
20122 msgid ""
20123 " method set_verbose : bool -> unit\n"
20124 "\n"
20125 msgstr ""
20126
20127 #. type: textblock
20128 #: ../ocaml/examples/guestfs-ocaml.pod:49
20129 msgid ""
20130 "The object-oriented style is usually briefer, and the minor performance "
20131 "penalty isn't noticable in the general overhead of performing libguestfs "
20132 "functions."
20133 msgstr ""
20134
20135 #. type: textblock
20136 #: ../ocaml/examples/guestfs-ocaml.pod:55
20137 msgid ""
20138 "The handle is closed when it is reaped by the garbage collector.  Because "
20139 "libguestfs handles include a lot of state, it is also possible to close (and "
20140 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
20141 "method."
20142 msgstr ""
20143
20144 #. type: textblock
20145 #: ../ocaml/examples/guestfs-ocaml.pod:62
20146 msgid ""
20147 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
20148 "exception.  This has a single parameter which is the error message (a "
20149 "string)."
20150 msgstr ""
20151
20152 #. type: textblock
20153 #: ../ocaml/examples/guestfs-ocaml.pod:66
20154 msgid ""
20155 "Calling any function/method on a closed handle raises C<Guestfs."
20156 "Handle_closed>.  The single parameter is the name of the function that you "
20157 "called."
20158 msgstr ""
20159
20160 #. type: textblock
20161 #: ../ocaml/examples/guestfs-ocaml.pod:80
20162 msgid ""
20163 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-perl(3)"
20164 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
20165 "libguestfs.org/>, L<http://caml.inria.fr/>."
20166 msgstr ""
20167
20168 #. type: textblock
20169 #: ../perl/examples/guestfs-perl.pod:5
20170 msgid "guestfs-perl - How to use libguestfs from Perl"
20171 msgstr ""
20172
20173 #. type: verbatim
20174 #: ../perl/examples/guestfs-perl.pod:9
20175 #, no-wrap
20176 msgid ""
20177 " use Sys::Guestfs;\n"
20178 " \n"
20179 msgstr ""
20180
20181 #. type: verbatim
20182 #: ../perl/examples/guestfs-perl.pod:11
20183 #, no-wrap
20184 msgid ""
20185 " my $h = Sys::Guestfs->new ();\n"
20186 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
20187 " $h->launch ();\n"
20188 " $h->mount_options ('', '/dev/sda1', '/');\n"
20189 " $h->touch ('/hello');\n"
20190 " $h->sync ();\n"
20191 "\n"
20192 msgstr ""
20193
20194 #. type: textblock
20195 #: ../perl/examples/guestfs-perl.pod:20
20196 msgid ""
20197 "This manual page documents how to call libguestfs from the Perl programming "
20198 "language.  This page just documents the differences from the C API and gives "
20199 "some examples.  If you are not familiar with using libguestfs, you also need "
20200 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
20201 msgstr ""
20202
20203 #. type: =head2
20204 #: ../perl/examples/guestfs-perl.pod:26
20205 msgid "ERRORS"
20206 msgstr ""
20207
20208 #. type: textblock
20209 #: ../perl/examples/guestfs-perl.pod:28
20210 msgid ""
20211 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
20212 ">)."
20213 msgstr ""
20214
20215 #. type: textblock
20216 #: ../perl/examples/guestfs-perl.pod:41
20217 msgid ""
20218 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)"
20219 ">, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
20220 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
20221 msgstr ""
20222
20223 #. type: textblock
20224 #: ../python/examples/guestfs-python.pod:5
20225 msgid "guestfs-python - How to use libguestfs from Python"
20226 msgstr ""
20227
20228 #. type: verbatim
20229 #: ../python/examples/guestfs-python.pod:9
20230 #, no-wrap
20231 msgid ""
20232 " import guestfs\n"
20233 " g = guestfs.GuestFS ()\n"
20234 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
20235 " g.launch\n"
20236 "\n"
20237 msgstr ""
20238
20239 #. type: textblock
20240 #: ../python/examples/guestfs-python.pod:16
20241 msgid ""
20242 "This manual page documents how to call libguestfs from the Python "
20243 "programming language.  This page just documents the differences from the C "
20244 "API and gives some examples.  If you are not familiar with using libguestfs, "
20245 "you also need to read L<guestfs(3)>."
20246 msgstr ""
20247
20248 #. type: textblock
20249 #: ../python/examples/guestfs-python.pod:23
20250 msgid ""
20251 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
20252 "single string argument which is the error message."
20253 msgstr ""
20254
20255 #. type: =head2
20256 #: ../python/examples/guestfs-python.pod:26
20257 msgid "MORE DOCUMENTATION"
20258 msgstr ""
20259
20260 #. type: textblock
20261 #: ../python/examples/guestfs-python.pod:28
20262 msgid "Type:"
20263 msgstr ""
20264
20265 #. type: verbatim
20266 #: ../python/examples/guestfs-python.pod:30
20267 #, no-wrap
20268 msgid ""
20269 " $ python\n"
20270 " >>> import guestfs\n"
20271 " >>> help (guestfs)\n"
20272 "\n"
20273 msgstr ""
20274
20275 #. type: textblock
20276 #: ../python/examples/guestfs-python.pod:44
20277 msgid ""
20278 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
20279 ">, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
20280 "libguestfs.org/>."
20281 msgstr ""
20282
20283 #. type: textblock
20284 #: ../rescue/virt-rescue.pod:5
20285 msgid "virt-rescue - Run a rescue shell on a virtual machine"
20286 msgstr ""
20287
20288 #. type: verbatim
20289 #: ../rescue/virt-rescue.pod:9
20290 #, no-wrap
20291 msgid ""
20292 " virt-rescue [--options] -d domname\n"
20293 "\n"
20294 msgstr ""
20295
20296 #. type: verbatim
20297 #: ../rescue/virt-rescue.pod:11
20298 #, no-wrap
20299 msgid ""
20300 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
20301 "\n"
20302 msgstr ""
20303
20304 #. type: verbatim
20305 #: ../rescue/virt-rescue.pod:15
20306 #, no-wrap
20307 msgid ""
20308 " virt-rescue [--options] domname\n"
20309 "\n"
20310 msgstr ""
20311
20312 #. type: verbatim
20313 #: ../rescue/virt-rescue.pod:17
20314 #, no-wrap
20315 msgid ""
20316 " virt-rescue [--options] disk.img [disk.img ...]\n"
20317 "\n"
20318 msgstr ""
20319
20320 #. type: textblock
20321 #: ../rescue/virt-rescue.pod:21
20322 msgid ""
20323 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
20324 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
20325 "you from doing this, but doesn't catch all cases."
20326 msgstr ""
20327
20328 #. type: textblock
20329 #: ../rescue/virt-rescue.pod:25
20330 msgid ""
20331 "However if you use the I<--ro> (read only) option, then you can attach a "
20332 "shell to a live virtual machine.  The results might be strange or "
20333 "inconsistent at times but you won't get disk corruption."
20334 msgstr ""
20335
20336 #. type: textblock
20337 #: ../rescue/virt-rescue.pod:31
20338 msgid ""
20339 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
20340 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
20341 "recovery tools which you can use to examine or rescue a virtual machine or "
20342 "disk image."
20343 msgstr ""
20344
20345 #. type: textblock
20346 #: ../rescue/virt-rescue.pod:36
20347 msgid ""
20348 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
20349 "on disk image(s):"
20350 msgstr ""
20351
20352 #. type: verbatim
20353 #: ../rescue/virt-rescue.pod:39
20354 #, no-wrap
20355 msgid ""
20356 " virt-rescue -d GuestName\n"
20357 "\n"
20358 msgstr ""
20359
20360 #. type: verbatim
20361 #: ../rescue/virt-rescue.pod:41
20362 #, no-wrap
20363 msgid ""
20364 " virt-rescue --ro -a /path/to/disk.img\n"
20365 "\n"
20366 msgstr ""
20367
20368 #. type: verbatim
20369 #: ../rescue/virt-rescue.pod:43
20370 #, no-wrap
20371 msgid ""
20372 " virt-rescue -a /dev/sdc\n"
20373 "\n"
20374 msgstr ""
20375
20376 #. type: textblock
20377 #: ../rescue/virt-rescue.pod:45
20378 msgid "For live VMs you I<must> use the --ro option."
20379 msgstr ""
20380
20381 #. type: textblock
20382 #: ../rescue/virt-rescue.pod:47
20383 msgid ""
20384 "When you run virt-rescue on a virtual machine or disk image, you are placed "
20385 "in an interactive bash shell where you can use many ordinary Linux "
20386 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
20387 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
20388 "is an empty directory called C</sysroot> where you can mount filesystems."
20389 msgstr ""
20390
20391 #. type: textblock
20392 #: ../rescue/virt-rescue.pod:54
20393 msgid ""
20394 "In the example below, we list logical volumes, then choose one to mount "
20395 "under C</sysroot>:"
20396 msgstr ""
20397
20398 #. type: verbatim
20399 #: ../rescue/virt-rescue.pod:57
20400 #, no-wrap
20401 msgid ""
20402 " ><rescue> lvs\n"
20403 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
20404 " lv_root vg_f11x64 -wi-a-   8.83G\n"
20405 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
20406 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
20407 " ><rescue> ls /sysroot\n"
20408 "\n"
20409 msgstr ""
20410
20411 #. type: textblock
20412 #: ../rescue/virt-rescue.pod:64
20413 msgid ""
20414 "If you don't know what filesystems are available on the virtual machine then "
20415 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
20416 msgstr ""
20417
20418 #. type: textblock
20419 #: ../rescue/virt-rescue.pod:70
20420 msgid ""
20421 "Virt-rescue can be used on I<any> disk image file or device, not just a "
20422 "virtual machine.  For example you can use it on a blank file if you want to "
20423 "partition that file (although we would recommend using L<guestfish(1)> "
20424 "instead as it is more suitable for this purpose).  You can even use virt-"
20425 "rescue on things like SD cards."
20426 msgstr ""
20427
20428 #. type: textblock
20429 #: ../rescue/virt-rescue.pod:76
20430 msgid ""
20431 "Virt-rescue does not require root.  You only need to run it as root if you "
20432 "need root to open the disk image."
20433 msgstr ""
20434
20435 #. type: textblock
20436 #: ../rescue/virt-rescue.pod:79
20437 msgid ""
20438 "This tool is just designed for quick interactive hacking on a virtual "
20439 "machine.  For more structured access to a virtual machine disk image, you "
20440 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
20441 "make scripted changes to guests, use L<guestfish(1)>."
20442 msgstr ""
20443
20444 #. type: =item
20445 #: ../rescue/virt-rescue.pod:103
20446 msgid "B<--append kernelopts>"
20447 msgstr ""
20448
20449 #. type: textblock
20450 #: ../rescue/virt-rescue.pod:105
20451 msgid "Pass additional options to the rescue kernel."
20452 msgstr ""
20453
20454 #. type: verbatim
20455 #: ../rescue/virt-rescue.pod:135
20456 #, no-wrap
20457 msgid ""
20458 " virt-rescue --format=raw -a disk.img\n"
20459 "\n"
20460 msgstr ""
20461
20462 #. type: verbatim
20463 #: ../rescue/virt-rescue.pod:139
20464 #, no-wrap
20465 msgid ""
20466 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
20467 "\n"
20468 msgstr ""
20469
20470 #. type: =item
20471 #: ../rescue/virt-rescue.pod:148
20472 msgid "B<-m MB>"
20473 msgstr ""
20474
20475 #. type: =item
20476 #: ../rescue/virt-rescue.pod:150
20477 msgid "B<--memsize MB>"
20478 msgstr ""
20479
20480 #. type: textblock
20481 #: ../rescue/virt-rescue.pod:152
20482 msgid ""
20483 "Change the amount of memory allocated to the rescue system.  The default is "
20484 "set by libguestfs and is small but adequate for running system tools.  The "
20485 "occasional program might need more memory.  The parameter is specified in "
20486 "megabytes."
20487 msgstr ""
20488
20489 #. type: =item
20490 #: ../rescue/virt-rescue.pod:157
20491 msgid "B<--network>"
20492 msgstr ""
20493
20494 #. type: textblock
20495 #: ../rescue/virt-rescue.pod:159
20496 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
20497 msgstr ""
20498
20499 #. type: textblock
20500 #: ../rescue/virt-rescue.pod:165
20501 msgid "Open the image read-only."
20502 msgstr ""
20503
20504 #. type: textblock
20505 #: ../rescue/virt-rescue.pod:175
20506 msgid ""
20507 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
20508 "SELINUX> before using this option."
20509 msgstr ""
20510
20511 #. type: textblock
20512 #: ../rescue/virt-rescue.pod:194
20513 msgid ""
20514 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
20515 "are done read-write."
20516 msgstr ""
20517
20518 #. type: textblock
20519 #: ../rescue/virt-rescue.pod:207
20520 msgid "Previous versions of virt-rescue allowed you to write either:"
20521 msgstr ""
20522
20523 #. type: verbatim
20524 #: ../rescue/virt-rescue.pod:209
20525 #, no-wrap
20526 msgid ""
20527 " virt-rescue disk.img [disk.img ...]\n"
20528 "\n"
20529 msgstr ""
20530
20531 #. type: verbatim
20532 #: ../rescue/virt-rescue.pod:213
20533 #, no-wrap
20534 msgid ""
20535 " virt-rescue guestname\n"
20536 "\n"
20537 msgstr ""
20538
20539 #. type: =head1
20540 #: ../rescue/virt-rescue.pod:221
20541 msgid "NETWORK"
20542 msgstr ""
20543
20544 #. type: textblock
20545 #: ../rescue/virt-rescue.pod:223
20546 msgid ""
20547 "Adding the I<--network> option enables QEMU user networking in the rescue "
20548 "appliance.  There are some differences between user networking and ordinary "
20549 "networking:"
20550 msgstr ""
20551
20552 #. type: =item
20553 #: ../rescue/virt-rescue.pod:229
20554 msgid "ping does not work"
20555 msgstr ""
20556
20557 #. type: textblock
20558 #: ../rescue/virt-rescue.pod:231
20559 msgid ""
20560 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
20561 "send the ping packets, and because virt-rescue must be able to run as non-"
20562 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
20563 "The ping command will appear to resolve addresses but will not be able to "
20564 "send or receive any packets.  This does not mean that the network is not "
20565 "working."
20566 msgstr ""
20567
20568 #. type: =item
20569 #: ../rescue/virt-rescue.pod:238
20570 msgid "cannot receive connections"
20571 msgstr ""
20572
20573 #. type: textblock
20574 #: ../rescue/virt-rescue.pod:240
20575 msgid "QEMU user networking cannot receive incoming connections."
20576 msgstr ""
20577
20578 #. type: =item
20579 #: ../rescue/virt-rescue.pod:242
20580 msgid "making TCP connections"
20581 msgstr ""
20582
20583 #. type: textblock
20584 #: ../rescue/virt-rescue.pod:244
20585 msgid ""
20586 "The virt-rescue appliance needs to be small and so does not include many "
20587 "network tools.  In particular there is no L<telnet(1)> command.  You can "
20588 "make TCP connections from the shell using the magical C</dev/tcp/"
20589 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
20590 msgstr ""
20591
20592 #. type: verbatim
20593 #: ../rescue/virt-rescue.pod:249
20594 #, no-wrap
20595 msgid ""
20596 " exec 3<>/dev/tcp/redhat.com/80\n"
20597 " echo \"GET /\" >&3\n"
20598 " cat <&3\n"
20599 "\n"
20600 msgstr ""
20601
20602 #. type: textblock
20603 #: ../rescue/virt-rescue.pod:253
20604 msgid "See L<bash(1)> for more details."
20605 msgstr ""
20606
20607 #. type: textblock
20608 #: ../rescue/virt-rescue.pod:259
20609 msgid ""
20610 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
20611 "ENVIRONMENT VARIABLES> for the complete list."
20612 msgstr ""
20613
20614 #. type: textblock
20615 #: ../rescue/virt-rescue.pod:286
20616 msgid ""
20617 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
20618 "libguestfs.org/>."
20619 msgstr ""
20620
20621 #. type: textblock
20622 #: ../resize/virt-resize.pod:5
20623 msgid "virt-resize - Resize a virtual machine disk"
20624 msgstr ""
20625
20626 #. type: verbatim
20627 #: ../resize/virt-resize.pod:9
20628 #, no-wrap
20629 msgid ""
20630 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
20631 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
20632 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
20633 "\n"
20634 msgstr ""
20635
20636 #. type: textblock
20637 #: ../resize/virt-resize.pod:15
20638 msgid ""
20639 "Virt-resize is a tool which can resize a virtual machine disk, making it "
20640 "larger or smaller overall, and resizing or deleting any partitions contained "
20641 "within."
20642 msgstr ""
20643
20644 #. type: textblock
20645 #: ../resize/virt-resize.pod:19
20646 msgid ""
20647 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
20648 "not> be used on live virtual machines - for consistent results, shut the "
20649 "virtual machine down before resizing it."
20650 msgstr ""
20651
20652 #. type: textblock
20653 #: ../resize/virt-resize.pod:23
20654 msgid ""
20655 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
20656 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
20657 msgstr ""
20658
20659 #. type: =item
20660 #: ../resize/virt-resize.pod:31 ../src/guestfs.pod:469 ../src/guestfs.pod:1257
20661 #: ../src/guestfs.pod:1395 ../src/guestfs.pod:2465
20662 msgid "1."
20663 msgstr ""
20664
20665 #. type: textblock
20666 #: ../resize/virt-resize.pod:33
20667 msgid ""
20668 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
20669 "fill the extra 5GB of space."
20670 msgstr ""
20671
20672 #. type: verbatim
20673 #: ../resize/virt-resize.pod:36
20674 #, no-wrap
20675 msgid ""
20676 " virt-filesystems --long -h --all -a olddisk\n"
20677 " \n"
20678 msgstr ""
20679
20680 #. type: verbatim
20681 #: ../resize/virt-resize.pod:38
20682 #, no-wrap
20683 msgid ""
20684 " truncate -r olddisk newdisk\n"
20685 " truncate -s +5G newdisk\n"
20686 " \n"
20687 msgstr ""
20688
20689 #. type: verbatim
20690 #: ../resize/virt-resize.pod:41
20691 #, no-wrap
20692 msgid ""
20693 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
20694 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
20695 "\n"
20696 msgstr ""
20697
20698 #. type: =item
20699 #: ../resize/virt-resize.pod:44 ../src/guestfs.pod:475 ../src/guestfs.pod:1261
20700 #: ../src/guestfs.pod:1399 ../src/guestfs.pod:2490
20701 msgid "2."
20702 msgstr ""
20703
20704 #. type: textblock
20705 #: ../resize/virt-resize.pod:46
20706 msgid ""
20707 "As above, but make the /boot partition 200MB bigger, while giving the "
20708 "remaining space to /dev/sda2:"
20709 msgstr ""
20710
20711 #. type: verbatim
20712 #: ../resize/virt-resize.pod:49
20713 #, no-wrap
20714 msgid ""
20715 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
20716 "   olddisk newdisk\n"
20717 "\n"
20718 msgstr ""
20719
20720 #. type: =item
20721 #: ../resize/virt-resize.pod:52 ../src/guestfs.pod:486 ../src/guestfs.pod:1405
20722 msgid "3."
20723 msgstr ""
20724
20725 #. type: textblock
20726 #: ../resize/virt-resize.pod:54
20727 msgid ""
20728 "As in the first example, but expand a logical volume as the final step.  "
20729 "This is what you would typically use for Linux guests that use LVM:"
20730 msgstr ""
20731
20732 #. type: verbatim
20733 #: ../resize/virt-resize.pod:58
20734 #, no-wrap
20735 msgid ""
20736 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
20737 "   olddisk newdisk\n"
20738 "\n"
20739 msgstr ""
20740
20741 #. type: =item
20742 #: ../resize/virt-resize.pod:61
20743 msgid "4."
20744 msgstr ""
20745
20746 #. type: textblock
20747 #: ../resize/virt-resize.pod:63
20748 msgid ""
20749 "As in the first example, but the output format will be qcow2 instead of a "
20750 "raw disk:"
20751 msgstr ""
20752
20753 #. type: verbatim
20754 #: ../resize/virt-resize.pod:66
20755 #, no-wrap
20756 msgid ""
20757 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
20758 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
20759 "\n"
20760 msgstr ""
20761
20762 #. type: =head1
20763 #: ../resize/virt-resize.pod:71
20764 msgid "DETAILED USAGE"
20765 msgstr ""
20766
20767 #. type: =head2
20768 #: ../resize/virt-resize.pod:73
20769 msgid "EXPANDING A VIRTUAL MACHINE DISK"
20770 msgstr ""
20771
20772 #. type: =item
20773 #: ../resize/virt-resize.pod:77
20774 msgid "1. Shut down the virtual machine"
20775 msgstr ""
20776
20777 #. type: =item
20778 #: ../resize/virt-resize.pod:79
20779 msgid "2. Locate input disk image"
20780 msgstr ""
20781
20782 #. type: textblock
20783 #: ../resize/virt-resize.pod:81
20784 msgid ""
20785 "Locate the input disk image (ie. the file or device on the host containing "
20786 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
20787 "dumpxml> like this to find the disk image name:"
20788 msgstr ""
20789
20790 #. type: verbatim
20791 #: ../resize/virt-resize.pod:85
20792 #, no-wrap
20793 msgid ""
20794 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
20795 " Found 1 nodes:\n"
20796 " -- NODE --\n"
20797 " <source dev=\"/dev/vg/lv_guest\" />\n"
20798 "\n"
20799 msgstr ""
20800
20801 #. type: =item
20802 #: ../resize/virt-resize.pod:90
20803 msgid "3. Look at current sizing"
20804 msgstr ""
20805
20806 #. type: textblock
20807 #: ../resize/virt-resize.pod:92
20808 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
20809 msgstr ""
20810
20811 #. type: verbatim
20812 #: ../resize/virt-resize.pod:95
20813 #, no-wrap
20814 msgid ""
20815 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
20816 " Name       Type       Size  Parent\n"
20817 " /dev/sda1  partition  101M  /dev/sda\n"
20818 " /dev/sda2  partition  7.9G  /dev/sda\n"
20819 " /dev/sda   device     8.0G  -\n"
20820 "\n"
20821 msgstr ""
20822
20823 #. type: textblock
20824 #: ../resize/virt-resize.pod:101
20825 msgid ""
20826 "(This example is a virtual machine with an 8 GB disk which we would like to "
20827 "expand up to 10 GB)."
20828 msgstr ""
20829
20830 #. type: =item
20831 #: ../resize/virt-resize.pod:104
20832 msgid "4. Create output disk"
20833 msgstr ""
20834
20835 #. type: textblock
20836 #: ../resize/virt-resize.pod:106
20837 msgid ""
20838 "Virt-resize cannot do in-place disk modifications.  You have to have space "
20839 "to store the resized output disk."
20840 msgstr ""
20841
20842 #. type: textblock
20843 #: ../resize/virt-resize.pod:109
20844 msgid ""
20845 "To store the resized disk image in a file, create a file of a suitable size:"
20846 msgstr ""
20847
20848 #. type: verbatim
20849 #: ../resize/virt-resize.pod:112
20850 #, no-wrap
20851 msgid ""
20852 " # rm -f outdisk\n"
20853 " # truncate -s 10G outdisk\n"
20854 "\n"
20855 msgstr ""
20856
20857 #. type: textblock
20858 #: ../resize/virt-resize.pod:115
20859 msgid "Or use L<lvcreate(1)> to create a logical volume:"
20860 msgstr ""
20861
20862 #. type: verbatim
20863 #: ../resize/virt-resize.pod:117
20864 #, no-wrap
20865 msgid ""
20866 " # lvcreate -L 10G -n lv_name vg_name\n"
20867 "\n"
20868 msgstr ""
20869
20870 #. type: textblock
20871 #: ../resize/virt-resize.pod:119
20872 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
20873 msgstr ""
20874
20875 #. type: verbatim
20876 #: ../resize/virt-resize.pod:121
20877 #, no-wrap
20878 msgid ""
20879 " # virsh pool-list\n"
20880 " # virsh vol-create-as poolname newvol 10G\n"
20881 "\n"
20882 msgstr ""
20883
20884 #. type: =item
20885 #: ../resize/virt-resize.pod:124
20886 msgid "5. Resize"
20887 msgstr ""
20888
20889 #. type: textblock
20890 #: ../resize/virt-resize.pod:126
20891 msgid ""
20892 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
20893 "file) and the output disk.  The output disk is the one created in the "
20894 "previous step."
20895 msgstr ""
20896
20897 #. type: verbatim
20898 #: ../resize/virt-resize.pod:130
20899 #, no-wrap
20900 msgid ""
20901 " # virt-resize indisk outdisk\n"
20902 "\n"
20903 msgstr ""
20904
20905 #. type: textblock
20906 #: ../resize/virt-resize.pod:132
20907 msgid ""
20908 "This command just copies disk image C<indisk> to disk image C<outdisk> "
20909 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
20910 "larger, then an extra, empty partition is created at the end of the disk "
20911 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
20912 "error."
20913 msgstr ""
20914
20915 #. type: textblock
20916 #: ../resize/virt-resize.pod:138
20917 msgid ""
20918 "More realistically you'd want to expand existing partitions in the disk "
20919 "image by passing extra options (for the full list see the L</OPTIONS> "
20920 "section below)."
20921 msgstr ""
20922
20923 #. type: textblock
20924 #: ../resize/virt-resize.pod:142
20925 msgid ""
20926 "L</--expand> is the most useful option.  It expands the named partition "
20927 "within the disk to fill any extra space:"
20928 msgstr ""
20929
20930 #. type: verbatim
20931 #: ../resize/virt-resize.pod:145
20932 #, no-wrap
20933 msgid ""
20934 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
20935 "\n"
20936 msgstr ""
20937
20938 #. type: textblock
20939 #: ../resize/virt-resize.pod:147
20940 msgid ""
20941 "(In this case, an extra partition is I<not> created at the end of the disk, "
20942 "because there will be no unused space)."
20943 msgstr ""
20944
20945 #. type: textblock
20946 #: ../resize/virt-resize.pod:150
20947 msgid ""
20948 "L</--resize> is the other commonly used option.  The following would "
20949 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
20950 "rest of the available space:"
20951 msgstr ""
20952
20953 #. type: verbatim
20954 #: ../resize/virt-resize.pod:154
20955 #, no-wrap
20956 msgid ""
20957 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
20958 "     indisk outdisk\n"
20959 "\n"
20960 msgstr ""
20961
20962 #. type: textblock
20963 #: ../resize/virt-resize.pod:157
20964 msgid ""
20965 "If the expanded partition in the image contains a filesystem or LVM PV, then "
20966 "if virt-resize knows how, it will resize the contents, the equivalent of "
20967 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
20968 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
20969 "filesystems, so you would have to online resize them after booting the guest."
20970 msgstr ""
20971
20972 #. type: textblock
20973 #: ../resize/virt-resize.pod:164
20974 msgid "Other options are covered below."
20975 msgstr ""
20976
20977 #. type: =item
20978 #: ../resize/virt-resize.pod:166
20979 msgid "6. Test"
20980 msgstr ""
20981
20982 #. type: textblock
20983 #: ../resize/virt-resize.pod:168
20984 msgid "Thoroughly test the new disk image I<before> discarding the old one."
20985 msgstr ""
20986
20987 #. type: textblock
20988 #: ../resize/virt-resize.pod:170
20989 msgid "If you are using libvirt, edit the XML to point at the new disk:"
20990 msgstr ""
20991
20992 #. type: verbatim
20993 #: ../resize/virt-resize.pod:172
20994 #, no-wrap
20995 msgid ""
20996 " # virsh edit guestname\n"
20997 "\n"
20998 msgstr ""
20999
21000 #. type: textblock
21001 #: ../resize/virt-resize.pod:174
21002 msgid ""
21003 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
21004 "html#elementsDisks>"
21005 msgstr ""
21006
21007 #. type: textblock
21008 #: ../resize/virt-resize.pod:177
21009 msgid "Then start up the domain with the new, resized disk:"
21010 msgstr ""
21011
21012 #. type: verbatim
21013 #: ../resize/virt-resize.pod:179
21014 #, no-wrap
21015 msgid ""
21016 " # virsh start guestname\n"
21017 "\n"
21018 msgstr ""
21019
21020 #. type: textblock
21021 #: ../resize/virt-resize.pod:181
21022 msgid ""
21023 "and check that it still works.  See also the L</NOTES> section below for "
21024 "additional information."
21025 msgstr ""
21026
21027 #. type: =item
21028 #: ../resize/virt-resize.pod:184
21029 msgid "7. Resize LVs etc inside the guest"
21030 msgstr ""
21031
21032 #. type: textblock
21033 #: ../resize/virt-resize.pod:186
21034 msgid "(This can also be done offline using L<guestfish(1)>)"
21035 msgstr ""
21036
21037 #. type: textblock
21038 #: ../resize/virt-resize.pod:188
21039 msgid ""
21040 "Once the guest has booted you should see the new space available, at least "
21041 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
21042 "may need to resize LVs inside PVs, and also resize filesystem types that "
21043 "virt-resize does not know how to expand."
21044 msgstr ""
21045
21046 #. type: =head2
21047 #: ../resize/virt-resize.pod:195
21048 msgid "SHRINKING A VIRTUAL MACHINE DISK"
21049 msgstr ""
21050
21051 #. type: textblock
21052 #: ../resize/virt-resize.pod:197
21053 msgid ""
21054 "Shrinking is somewhat more complex than expanding, and only an overview is "
21055 "given here."
21056 msgstr ""
21057
21058 #. type: textblock
21059 #: ../resize/virt-resize.pod:200
21060 msgid ""
21061 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
21062 "filesystems).  The user has to shrink content before passing the disk image "
21063 "to virt-resize, and virt-resize will check that the content has been shrunk "
21064 "properly."
21065 msgstr ""
21066
21067 #. type: textblock
21068 #: ../resize/virt-resize.pod:205
21069 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
21070 msgstr ""
21071
21072 #. type: textblock
21073 #: ../resize/virt-resize.pod:207
21074 msgid ""
21075 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
21076 "steps 3 and 4 above to allocate a new disk image."
21077 msgstr ""
21078
21079 #. type: textblock
21080 #: ../resize/virt-resize.pod:210
21081 msgid ""
21082 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
21083 msgstr ""
21084
21085 #. type: =head2
21086 #: ../resize/virt-resize.pod:213
21087 msgid "IGNORING OR DELETING PARTITIONS"
21088 msgstr ""
21089
21090 #. type: textblock
21091 #: ../resize/virt-resize.pod:215
21092 msgid ""
21093 "virt-resize also gives a convenient way to ignore or delete partitions when "
21094 "copying from the input disk to the output disk.  Ignoring a partition speeds "
21095 "up the copy where you don't care about the existing contents of a "
21096 "partition.  Deleting a partition removes it completely, but note that it "
21097 "also renumbers any partitions after the one which is deleted, which can "
21098 "leave some guests unbootable."
21099 msgstr ""
21100
21101 #. type: =head2
21102 #: ../resize/virt-resize.pod:222
21103 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
21104 msgstr ""
21105
21106 #. type: textblock
21107 #: ../resize/virt-resize.pod:224
21108 msgid ""
21109 "If the input disk is in qcow2 format, then you may prefer that the output is "
21110 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
21111 "the fly.  The output format is simply determined by the format of the empty "
21112 "output container that you provide.  Thus to create qcow2 output, use:"
21113 msgstr ""
21114
21115 #. type: verbatim
21116 #: ../resize/virt-resize.pod:230
21117 #, no-wrap
21118 msgid ""
21119 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
21120 "\n"
21121 msgstr ""
21122
21123 #. type: textblock
21124 #: ../resize/virt-resize.pod:232
21125 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
21126 msgstr ""
21127
21128 #. type: textblock
21129 #: ../resize/virt-resize.pod:234
21130 msgid "Similarly, to get non-sparse raw output use:"
21131 msgstr ""
21132
21133 #. type: verbatim
21134 #: ../resize/virt-resize.pod:236
21135 #, no-wrap
21136 msgid ""
21137 " fallocate -l size outdisk\n"
21138 "\n"
21139 msgstr ""
21140
21141 #. type: textblock
21142 #: ../resize/virt-resize.pod:238
21143 msgid ""
21144 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
21145 "dev/zero of=outdisk bs=1M count=..>)"
21146 msgstr ""
21147
21148 #. type: textblock
21149 #: ../resize/virt-resize.pod:247
21150 msgid "Display help."
21151 msgstr ""
21152
21153 #. type: =item
21154 #: ../resize/virt-resize.pod:249
21155 msgid "B<-d>"
21156 msgstr ""
21157
21158 #. type: =item
21159 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
21160 #: ../tools/virt-win-reg.pl:120
21161 msgid "B<--debug>"
21162 msgstr ""
21163
21164 #. type: textblock
21165 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
21166 msgid "Enable debugging messages."
21167 msgstr ""
21168
21169 #. type: =item
21170 #: ../resize/virt-resize.pod:255
21171 msgid "B<--delete part>"
21172 msgstr ""
21173
21174 #. type: textblock
21175 #: ../resize/virt-resize.pod:257
21176 msgid ""
21177 "Delete the named partition.  It would be more accurate to describe this as "
21178 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
21179 "the original disk image is left intact."
21180 msgstr ""
21181
21182 #. type: textblock
21183 #: ../resize/virt-resize.pod:261
21184 msgid ""
21185 "Note that when you delete a partition, then anything contained in the "
21186 "partition is also deleted.  Furthermore, this causes any partitions that "
21187 "come after to be I<renumbered>, which can easily make your guest unbootable."
21188 msgstr ""
21189
21190 #. type: textblock
21191 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
21192 #: ../resize/virt-resize.pod:448
21193 msgid "You can give this option multiple times."
21194 msgstr ""
21195
21196 #. type: =item
21197 #: ../resize/virt-resize.pod:268
21198 msgid "B<--expand part>"
21199 msgstr ""
21200
21201 #. type: textblock
21202 #: ../resize/virt-resize.pod:270
21203 msgid ""
21204 "Expand the named partition so it uses up all extra space (space left over "
21205 "after any other resize changes that you request have been done)."
21206 msgstr ""
21207
21208 #. type: textblock
21209 #: ../resize/virt-resize.pod:273
21210 msgid ""
21211 "If virt-resize knows how, it will expand the direct content of the "
21212 "partition.  For example, if the partition is an LVM PV, it will expand the "
21213 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
21214 "content it doesn't know about alone."
21215 msgstr ""
21216
21217 #. type: textblock
21218 #: ../resize/virt-resize.pod:278
21219 msgid "Currently virt-resize can resize:"
21220 msgstr ""
21221
21222 #. type: textblock
21223 #: ../resize/virt-resize.pod:284
21224 msgid "ext2, ext3 and ext4 filesystems."
21225 msgstr ""
21226
21227 #. type: textblock
21228 #: ../resize/virt-resize.pod:288
21229 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
21230 msgstr ""
21231
21232 #. type: textblock
21233 #: ../resize/virt-resize.pod:290
21234 msgid ""
21235 "The filesystem must have been shut down consistently last time it was used.  "
21236 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
21237 "consistency check, so at the first boot after resizing Windows will check "
21238 "the disk."
21239 msgstr ""
21240
21241 #. type: textblock
21242 #: ../resize/virt-resize.pod:297
21243 msgid ""
21244 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
21245 "inside the PV, but see the I<--LV-expand> option.  The user could also "
21246 "resize LVs as desired after boot."
21247 msgstr ""
21248
21249 #. type: textblock
21250 #: ../resize/virt-resize.pod:303
21251 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
21252 msgstr ""
21253
21254 #. type: textblock
21255 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:476
21256 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
21257 msgstr ""
21258
21259 #. type: =item
21260 #: ../resize/virt-resize.pod:309 ../tools/virt-list-filesystems.pl:91
21261 #: ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141
21262 #: ../tools/virt-win-reg.pl:142
21263 msgid "B<--format> raw"
21264 msgstr ""
21265
21266 #. type: textblock
21267 #: ../resize/virt-resize.pod:311
21268 msgid ""
21269 "Specify the format of the input disk image.  If this flag is not given then "
21270 "it is auto-detected from the image itself."
21271 msgstr ""
21272
21273 #. type: textblock
21274 #: ../resize/virt-resize.pod:317
21275 msgid ""
21276 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
21277 "AND NON-SPARSE RAW FORMATS>."
21278 msgstr ""
21279
21280 #. type: =item
21281 #: ../resize/virt-resize.pod:320
21282 msgid "B<--ignore part>"
21283 msgstr ""
21284
21285 #. type: textblock
21286 #: ../resize/virt-resize.pod:322
21287 msgid ""
21288 "Ignore the named partition.  Effectively this means the partition is "
21289 "allocated on the destination disk, but the content is not copied across from "
21290 "the source disk.  The content of the partition will be blank (all zero "
21291 "bytes)."
21292 msgstr ""
21293
21294 #. type: =item
21295 #: ../resize/virt-resize.pod:329
21296 msgid "B<--LV-expand logvol>"
21297 msgstr ""
21298
21299 #. type: textblock
21300 #: ../resize/virt-resize.pod:331
21301 msgid ""
21302 "This takes the logical volume and, as a final step, expands it to fill all "
21303 "the space available in its volume group.  A typical usage, assuming a Linux "
21304 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
21305 "lv_root> would be:"
21306 msgstr ""
21307
21308 #. type: verbatim
21309 #: ../resize/virt-resize.pod:336
21310 #, no-wrap
21311 msgid ""
21312 " virt-resize indisk outdisk \\\n"
21313 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
21314 "\n"
21315 msgstr ""
21316
21317 #. type: textblock
21318 #: ../resize/virt-resize.pod:339
21319 msgid ""
21320 "This would first expand the partition (and PV), and then expand the root "
21321 "device to fill the extra space in the PV."
21322 msgstr ""
21323
21324 #. type: textblock
21325 #: ../resize/virt-resize.pod:342
21326 msgid ""
21327 "The contents of the LV are also resized if virt-resize knows how to do "
21328 "that.  You can stop virt-resize from trying to expand the content by using "
21329 "the option I<--no-expand-content>."
21330 msgstr ""
21331
21332 #. type: textblock
21333 #: ../resize/virt-resize.pod:346
21334 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
21335 msgstr ""
21336
21337 #. type: textblock
21338 #: ../resize/virt-resize.pod:348
21339 msgid ""
21340 "You can give this option multiple times, I<but> it doesn't make sense to do "
21341 "this unless the logical volumes you specify are all in different volume "
21342 "groups."
21343 msgstr ""
21344
21345 #. type: =item
21346 #: ../resize/virt-resize.pod:354
21347 msgid "B<--dryrun>"
21348 msgstr ""
21349
21350 #. type: textblock
21351 #: ../resize/virt-resize.pod:356
21352 msgid "Print a summary of what would be done, but don't do anything."
21353 msgstr ""
21354
21355 #. type: =item
21356 #: ../resize/virt-resize.pod:358
21357 msgid "B<--no-copy-boot-loader>"
21358 msgstr ""
21359
21360 #. type: textblock
21361 #: ../resize/virt-resize.pod:360
21362 msgid ""
21363 "By default, virt-resize copies over some sectors at the start of the disk "
21364 "(up to the beginning of the first partition).  Commonly these sectors "
21365 "contain the Master Boot Record (MBR) and the boot loader, and are required "
21366 "in order for the guest to boot correctly."
21367 msgstr ""
21368
21369 #. type: textblock
21370 #: ../resize/virt-resize.pod:365
21371 msgid ""
21372 "If you specify this flag, then this initial copy is not done.  You may need "
21373 "to reinstall the boot loader in this case."
21374 msgstr ""
21375
21376 #. type: =item
21377 #: ../resize/virt-resize.pod:368
21378 msgid "B<--no-extra-partition>"
21379 msgstr ""
21380
21381 #. type: textblock
21382 #: ../resize/virt-resize.pod:370
21383 msgid ""
21384 "By default, virt-resize creates an extra partition if there is any extra, "
21385 "unused space after all resizing has happened.  Use this option to prevent "
21386 "the extra partition from being created.  If you do this then the extra space "
21387 "will be inaccessible until you run fdisk, parted, or some other partitioning "
21388 "tool in the guest."
21389 msgstr ""
21390
21391 #. type: textblock
21392 #: ../resize/virt-resize.pod:376
21393 msgid ""
21394 "Note that if the surplus space is smaller than 10 MB, no extra partition "
21395 "will be created."
21396 msgstr ""
21397
21398 #. type: =item
21399 #: ../resize/virt-resize.pod:379
21400 msgid "B<--no-expand-content>"
21401 msgstr ""
21402
21403 #. type: textblock
21404 #: ../resize/virt-resize.pod:381
21405 msgid ""
21406 "By default, virt-resize will try to expand the direct contents of "
21407 "partitions, if it knows how (see I<--expand> option above)."
21408 msgstr ""
21409
21410 #. type: textblock
21411 #: ../resize/virt-resize.pod:384
21412 msgid ""
21413 "If you give the I<--no-expand-content> option then virt-resize will not "
21414 "attempt this."
21415 msgstr ""
21416
21417 #. type: =item
21418 #: ../resize/virt-resize.pod:387
21419 msgid "B<--ntfsresize-force>"
21420 msgstr ""
21421
21422 #. type: textblock
21423 #: ../resize/virt-resize.pod:389
21424 msgid ""
21425 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
21426 "the NTFS disk is marked as needing a consistency check.  You have to use "
21427 "this option if you want to resize a Windows guest multiple times without "
21428 "booting into Windows between each resize."
21429 msgstr ""
21430
21431 #. type: =item
21432 #: ../resize/virt-resize.pod:395
21433 msgid "B<--output-format> raw"
21434 msgstr ""
21435
21436 #. type: textblock
21437 #: ../resize/virt-resize.pod:397
21438 msgid ""
21439 "Specify the format of the output disk image.  If this flag is not given then "
21440 "it is auto-detected from the image itself."
21441 msgstr ""
21442
21443 #. type: textblock
21444 #: ../resize/virt-resize.pod:403
21445 msgid ""
21446 "Note that this option I<does not create> the output format.  This option "
21447 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
21448 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
21449 "SPARSE RAW FORMATS>."
21450 msgstr ""
21451
21452 #. type: =item
21453 #: ../resize/virt-resize.pod:408
21454 msgid "B<-q>"
21455 msgstr ""
21456
21457 #. type: =item
21458 #: ../resize/virt-resize.pod:410
21459 msgid "B<--quiet>"
21460 msgstr ""
21461
21462 #. type: textblock
21463 #: ../resize/virt-resize.pod:412
21464 msgid "Don't print the summary."
21465 msgstr ""
21466
21467 #. type: =item
21468 #: ../resize/virt-resize.pod:414
21469 msgid "B<--resize part=size>"
21470 msgstr ""
21471
21472 #. type: textblock
21473 #: ../resize/virt-resize.pod:416
21474 msgid ""
21475 "Resize the named partition (expanding or shrinking it) so that it has the "
21476 "given size."
21477 msgstr ""
21478
21479 #. type: textblock
21480 #: ../resize/virt-resize.pod:419
21481 msgid ""
21482 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
21483 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
21484 "size; or as a relative number or percentage.  For example:"
21485 msgstr ""
21486
21487 #. type: verbatim
21488 #: ../resize/virt-resize.pod:425
21489 #, no-wrap
21490 msgid ""
21491 " --resize /dev/sda2=10G\n"
21492 "\n"
21493 msgstr ""
21494
21495 #. type: verbatim
21496 #: ../resize/virt-resize.pod:427
21497 #, no-wrap
21498 msgid ""
21499 " --resize /dev/sda4=90%\n"
21500 "\n"
21501 msgstr ""
21502
21503 #. type: verbatim
21504 #: ../resize/virt-resize.pod:429
21505 #, no-wrap
21506 msgid ""
21507 " --resize /dev/sda2=+1G\n"
21508 "\n"
21509 msgstr ""
21510
21511 #. type: verbatim
21512 #: ../resize/virt-resize.pod:431
21513 #, no-wrap
21514 msgid ""
21515 " --resize /dev/sda2=-200M\n"
21516 "\n"
21517 msgstr ""
21518
21519 #. type: verbatim
21520 #: ../resize/virt-resize.pod:433
21521 #, no-wrap
21522 msgid ""
21523 " --resize /dev/sda1=+128K\n"
21524 "\n"
21525 msgstr ""
21526
21527 #. type: verbatim
21528 #: ../resize/virt-resize.pod:435
21529 #, no-wrap
21530 msgid ""
21531 " --resize /dev/sda1=+10%\n"
21532 "\n"
21533 msgstr ""
21534
21535 #. type: verbatim
21536 #: ../resize/virt-resize.pod:437
21537 #, no-wrap
21538 msgid ""
21539 " --resize /dev/sda1=-10%\n"
21540 "\n"
21541 msgstr ""
21542
21543 #. type: textblock
21544 #: ../resize/virt-resize.pod:439
21545 msgid ""
21546 "You can increase the size of any partition.  Virt-resize will expand the "
21547 "direct content of the partition if it knows how (see I<--expand> below)."
21548 msgstr ""
21549
21550 #. type: textblock
21551 #: ../resize/virt-resize.pod:443
21552 msgid ""
21553 "You can only I<decrease> the size of partitions that contain filesystems or "
21554 "PVs which have already been shrunk.  Virt-resize will check this has been "
21555 "done before proceeding, or else will print an error (see also I<--resize-"
21556 "force>)."
21557 msgstr ""
21558
21559 #. type: =item
21560 #: ../resize/virt-resize.pod:450
21561 msgid "B<--resize-force part=size>"
21562 msgstr ""
21563
21564 #. type: textblock
21565 #: ../resize/virt-resize.pod:452
21566 msgid ""
21567 "This is the same as I<--resize> except that it will let you decrease the "
21568 "size of any partition.  Generally this means you will lose any data which "
21569 "was at the end of the partition you shrink, but you may not care about that "
21570 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
21571 "as a swap partition)."
21572 msgstr ""
21573
21574 #. type: textblock
21575 #: ../resize/virt-resize.pod:458
21576 msgid "See also the I<--ignore> option."
21577 msgstr ""
21578
21579 #. type: =item
21580 #: ../resize/virt-resize.pod:460
21581 msgid "B<--shrink part>"
21582 msgstr ""
21583
21584 #. type: textblock
21585 #: ../resize/virt-resize.pod:462
21586 msgid ""
21587 "Shrink the named partition until the overall disk image fits in the "
21588 "destination.  The named partition B<must> contain a filesystem or PV which "
21589 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
21590 "online tools).  Virt-resize will check this and give an error if it has not "
21591 "been done."
21592 msgstr ""
21593
21594 #. type: textblock
21595 #: ../resize/virt-resize.pod:468
21596 msgid ""
21597 "The amount by which the overall disk must be shrunk (after carrying out all "
21598 "other operations requested by the user) is called the \"deficit\".  For "
21599 "example, a straight copy (assume no other operations)  from a 5GB disk image "
21600 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
21601 "would give an error unless the user specified a partition to shrink and that "
21602 "partition had more than a gigabyte of free space."
21603 msgstr ""
21604
21605 #. type: =head2
21606 #: ../resize/virt-resize.pod:488
21607 msgid "\"Partition 1 does not end on cylinder boundary.\""
21608 msgstr ""
21609
21610 #. type: textblock
21611 #: ../resize/virt-resize.pod:490
21612 msgid ""
21613 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
21614 "means the partitions will not be aligned to the ancient CHS geometry.  "
21615 "However CHS geometry is meaningless for disks manufactured since the early "
21616 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
21617 "cylinders is not required by any modern operating system."
21618 msgstr ""
21619
21620 #. type: =head2
21621 #: ../resize/virt-resize.pod:497
21622 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
21623 msgstr ""
21624
21625 #. type: textblock
21626 #: ../resize/virt-resize.pod:499
21627 msgid ""
21628 "In Windows Vista and later versions, Microsoft switched to using a separate "
21629 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
21630 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
21631 "the boot partition.  Doing so seems to break the guest completely.  However "
21632 "expanding the second partition (ie. C: drive) should work."
21633 msgstr ""
21634
21635 #. type: textblock
21636 #: ../resize/virt-resize.pod:506
21637 msgid ""
21638 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
21639 "NTFS partitions have been expanded.  This is just a safety check and (unless "
21640 "it find errors) is nothing to worry about."
21641 msgstr ""
21642
21643 #. type: =head2
21644 #: ../resize/virt-resize.pod:510
21645 msgid "GUEST BOOT STUCK AT \"GRUB\""
21646 msgstr ""
21647
21648 #. type: textblock
21649 #: ../resize/virt-resize.pod:512
21650 msgid ""
21651 "If a Linux guest does not boot after resizing, and the boot is stuck after "
21652 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
21653 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
21654 "although we think is to do with partition alignment."
21655 msgstr ""
21656
21657 #. type: verbatim
21658 #: ../resize/virt-resize.pod:517
21659 #, no-wrap
21660 msgid ""
21661 " guestfish -i -a newdisk\n"
21662 " ><fs> cat /boot/grub/device.map\n"
21663 " # check the contents of this file are sensible or\n"
21664 " # edit the file if necessary\n"
21665 " ><fs> grub-install / /dev/vda\n"
21666 " ><fs> exit\n"
21667 "\n"
21668 msgstr ""
21669
21670 #. type: textblock
21671 #: ../resize/virt-resize.pod:524
21672 msgid ""
21673 "For more flexible guest reconfiguration, including if you need to specify "
21674 "other parameters to grub-install, use L<virt-rescue(1)>."
21675 msgstr ""
21676
21677 #. type: =head1
21678 #: ../resize/virt-resize.pod:527
21679 msgid "ALTERNATIVE TOOLS"
21680 msgstr ""
21681
21682 #. type: textblock
21683 #: ../resize/virt-resize.pod:529
21684 msgid ""
21685 "There are several proprietary tools for resizing partitions.  We won't "
21686 "mention any here."
21687 msgstr ""
21688
21689 #. type: textblock
21690 #: ../resize/virt-resize.pod:532
21691 msgid ""
21692 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
21693 "operations on disk images.  They can resize and move partitions, but I don't "
21694 "think they can do anything with the contents, and they certainly don't "
21695 "understand LVM."
21696 msgstr ""
21697
21698 #. type: textblock
21699 #: ../resize/virt-resize.pod:537
21700 msgid ""
21701 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
21702 "but at a much lower level.  You will probably end up hand-calculating sector "
21703 "offsets, which is something that virt-resize was designed to avoid.  If you "
21704 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
21705 "I<--debug> flag."
21706 msgstr ""
21707
21708 #. type: textblock
21709 #: ../resize/virt-resize.pod:552
21710 msgid ""
21711 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
21712 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
21713 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
21714 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<http://libguestfs.org/>."
21715 msgstr ""
21716
21717 #. type: textblock
21718 #: ../ruby/examples/guestfs-ruby.pod:5
21719 msgid "guestfs-ruby - How to use libguestfs from Ruby"
21720 msgstr ""
21721
21722 #. type: verbatim
21723 #: ../ruby/examples/guestfs-ruby.pod:9
21724 #, no-wrap
21725 msgid ""
21726 " require 'guestfs'\n"
21727 " g = Guestfs::Guestfs.new()\n"
21728 " g.add_drive_opts(\"disk.img\",\n"
21729 "                  :readonly => 1, :format => \"raw\")\n"
21730 " g.launch()\n"
21731 "\n"
21732 msgstr ""
21733
21734 #. type: textblock
21735 #: ../ruby/examples/guestfs-ruby.pod:17
21736 msgid ""
21737 "This manual page documents how to call libguestfs from the Ruby programming "
21738 "language.  This page just documents the differences from the C API and gives "
21739 "some examples.  If you are not familiar with using libguestfs, you also need "
21740 "to read L<guestfs(3)>."
21741 msgstr ""
21742
21743 #. type: textblock
21744 #: ../ruby/examples/guestfs-ruby.pod:24
21745 msgid ""
21746 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
21747 "This has a single parameter which is the error message (a string)."
21748 msgstr ""
21749
21750 #. type: textblock
21751 #: ../ruby/examples/guestfs-ruby.pod:38
21752 msgid ""
21753 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
21754 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<http://"
21755 "libguestfs.org/>."
21756 msgstr ""
21757
21758 #. type: =head2
21759 #: ../src/guestfs-actions.pod:1
21760 msgid "guestfs_add_cdrom"
21761 msgstr ""
21762
21763 #. type: verbatim
21764 #: ../src/guestfs-actions.pod:3
21765 #, no-wrap
21766 msgid ""
21767 " int\n"
21768 " guestfs_add_cdrom (guestfs_h *g,\n"
21769 "                    const char *filename);\n"
21770 "\n"
21771 msgstr ""
21772
21773 #. type: textblock
21774 #: ../src/guestfs-actions.pod:17
21775 msgid ""
21776 "This call checks for the existence of C<filename>.  This stops you from "
21777 "specifying other types of drive which are supported by qemu such as C<nbd:> "
21778 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
21779 "instead."
21780 msgstr ""
21781
21782 #. type: textblock
21783 #: ../src/guestfs-actions.pod:24
21784 msgid ""
21785 "If you just want to add an ISO file (often you use this as an efficient way "
21786 "to transfer large files into the guest), then you should probably use "
21787 "C<guestfs_add_drive_ro> instead."
21788 msgstr ""
21789
21790 #. type: textblock
21791 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:140
21792 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
21793 #: ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273
21794 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
21795 #: ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447
21796 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506
21797 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552
21798 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652
21799 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681
21800 #: ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798
21801 #: ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826
21802 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046
21803 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084
21804 #: ../src/guestfs-actions.pod:1168 ../src/guestfs-actions.pod:1186
21805 #: ../src/guestfs-actions.pod:1205 ../src/guestfs-actions.pod:1219
21806 #: ../src/guestfs-actions.pod:1239 ../src/guestfs-actions.pod:1309
21807 #: ../src/guestfs-actions.pod:1340 ../src/guestfs-actions.pod:1365
21808 #: ../src/guestfs-actions.pod:1407 ../src/guestfs-actions.pod:1513
21809 #: ../src/guestfs-actions.pod:1547 ../src/guestfs-actions.pod:1762
21810 #: ../src/guestfs-actions.pod:1784 ../src/guestfs-actions.pod:1871
21811 #: ../src/guestfs-actions.pod:2346 ../src/guestfs-actions.pod:2490
21812 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2586
21813 #: ../src/guestfs-actions.pod:3626 ../src/guestfs-actions.pod:3641
21814 #: ../src/guestfs-actions.pod:3666 ../src/guestfs-actions.pod:3855
21815 #: ../src/guestfs-actions.pod:3869 ../src/guestfs-actions.pod:3882
21816 #: ../src/guestfs-actions.pod:3896 ../src/guestfs-actions.pod:3911
21817 #: ../src/guestfs-actions.pod:3947 ../src/guestfs-actions.pod:4019
21818 #: ../src/guestfs-actions.pod:4039 ../src/guestfs-actions.pod:4056
21819 #: ../src/guestfs-actions.pod:4079 ../src/guestfs-actions.pod:4102
21820 #: ../src/guestfs-actions.pod:4137 ../src/guestfs-actions.pod:4156
21821 #: ../src/guestfs-actions.pod:4175 ../src/guestfs-actions.pod:4210
21822 #: ../src/guestfs-actions.pod:4222 ../src/guestfs-actions.pod:4258
21823 #: ../src/guestfs-actions.pod:4274 ../src/guestfs-actions.pod:4287
21824 #: ../src/guestfs-actions.pod:4302 ../src/guestfs-actions.pod:4319
21825 #: ../src/guestfs-actions.pod:4412 ../src/guestfs-actions.pod:4432
21826 #: ../src/guestfs-actions.pod:4445 ../src/guestfs-actions.pod:4496
21827 #: ../src/guestfs-actions.pod:4514 ../src/guestfs-actions.pod:4532
21828 #: ../src/guestfs-actions.pod:4548 ../src/guestfs-actions.pod:4562
21829 #: ../src/guestfs-actions.pod:4576 ../src/guestfs-actions.pod:4593
21830 #: ../src/guestfs-actions.pod:4608 ../src/guestfs-actions.pod:4628
21831 #: ../src/guestfs-actions.pod:4698 ../src/guestfs-actions.pod:4771
21832 #: ../src/guestfs-actions.pod:4802 ../src/guestfs-actions.pod:4821
21833 #: ../src/guestfs-actions.pod:4840 ../src/guestfs-actions.pod:4852
21834 #: ../src/guestfs-actions.pod:4869 ../src/guestfs-actions.pod:4882
21835 #: ../src/guestfs-actions.pod:4897 ../src/guestfs-actions.pod:4912
21836 #: ../src/guestfs-actions.pod:4947 ../src/guestfs-actions.pod:4980
21837 #: ../src/guestfs-actions.pod:5019 ../src/guestfs-actions.pod:5039
21838 #: ../src/guestfs-actions.pod:5053 ../src/guestfs-actions.pod:5070
21839 #: ../src/guestfs-actions.pod:5119 ../src/guestfs-actions.pod:5165
21840 #: ../src/guestfs-actions.pod:5219 ../src/guestfs-actions.pod:5255
21841 #: ../src/guestfs-actions.pod:5290 ../src/guestfs-actions.pod:5307
21842 #: ../src/guestfs-actions.pod:5325 ../src/guestfs-actions.pod:5465
21843 #: ../src/guestfs-actions.pod:5522 ../src/guestfs-actions.pod:5544
21844 #: ../src/guestfs-actions.pod:5562 ../src/guestfs-actions.pod:5594
21845 #: ../src/guestfs-actions.pod:5660 ../src/guestfs-actions.pod:5677
21846 #: ../src/guestfs-actions.pod:5690 ../src/guestfs-actions.pod:5704
21847 #: ../src/guestfs-actions.pod:5993 ../src/guestfs-actions.pod:6012
21848 #: ../src/guestfs-actions.pod:6031 ../src/guestfs-actions.pod:6045
21849 #: ../src/guestfs-actions.pod:6057 ../src/guestfs-actions.pod:6071
21850 #: ../src/guestfs-actions.pod:6083 ../src/guestfs-actions.pod:6097
21851 #: ../src/guestfs-actions.pod:6113 ../src/guestfs-actions.pod:6134
21852 #: ../src/guestfs-actions.pod:6153 ../src/guestfs-actions.pod:6172
21853 #: ../src/guestfs-actions.pod:6202 ../src/guestfs-actions.pod:6220
21854 #: ../src/guestfs-actions.pod:6243 ../src/guestfs-actions.pod:6261
21855 #: ../src/guestfs-actions.pod:6280 ../src/guestfs-actions.pod:6301
21856 #: ../src/guestfs-actions.pod:6320 ../src/guestfs-actions.pod:6337
21857 #: ../src/guestfs-actions.pod:6356 ../src/guestfs-actions.pod:6384
21858 #: ../src/guestfs-actions.pod:6408 ../src/guestfs-actions.pod:6427
21859 #: ../src/guestfs-actions.pod:6451 ../src/guestfs-actions.pod:6470
21860 #: ../src/guestfs-actions.pod:6485 ../src/guestfs-actions.pod:6504
21861 #: ../src/guestfs-actions.pod:6541 ../src/guestfs-actions.pod:6571
21862 #: ../src/guestfs-actions.pod:6604 ../src/guestfs-actions.pod:6726
21863 #: ../src/guestfs-actions.pod:6847 ../src/guestfs-actions.pod:6859
21864 #: ../src/guestfs-actions.pod:6872 ../src/guestfs-actions.pod:6885
21865 #: ../src/guestfs-actions.pod:6907 ../src/guestfs-actions.pod:6920
21866 #: ../src/guestfs-actions.pod:6933 ../src/guestfs-actions.pod:6946
21867 #: ../src/guestfs-actions.pod:6961 ../src/guestfs-actions.pod:7020
21868 #: ../src/guestfs-actions.pod:7037 ../src/guestfs-actions.pod:7053
21869 #: ../src/guestfs-actions.pod:7069 ../src/guestfs-actions.pod:7086
21870 #: ../src/guestfs-actions.pod:7099 ../src/guestfs-actions.pod:7119
21871 #: ../src/guestfs-actions.pod:7155 ../src/guestfs-actions.pod:7169
21872 #: ../src/guestfs-actions.pod:7210 ../src/guestfs-actions.pod:7223
21873 #: ../src/guestfs-actions.pod:7241 ../src/guestfs-actions.pod:7275
21874 #: ../src/guestfs-actions.pod:7311 ../src/guestfs-actions.pod:7427
21875 #: ../src/guestfs-actions.pod:7442 ../src/guestfs-actions.pod:7456
21876 #: ../src/guestfs-actions.pod:7511 ../src/guestfs-actions.pod:7524
21877 #: ../src/guestfs-actions.pod:7569 ../src/guestfs-actions.pod:7602
21878 #: ../src/guestfs-actions.pod:7665 ../src/guestfs-actions.pod:7685
21879 #: ../src/guestfs-actions.pod:7711 ../src/guestfs-actions.pod:7778
21880 #: ../src/guestfs-actions.pod:7797 ../src/guestfs-actions.pod:7826
21881 msgid "This function returns 0 on success or -1 on error."
21882 msgstr ""
21883
21884 #. type: textblock
21885 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:254
21886 #: ../src/guestfs-actions.pod:275
21887 msgid ""
21888 "This function is deprecated.  In new code, use the L</"
21889 "guestfs_add_drive_opts> call instead."
21890 msgstr ""
21891
21892 #. type: textblock
21893 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
21894 #: ../src/guestfs-actions.pod:1170 ../src/guestfs-actions.pod:1985
21895 #: ../src/guestfs-actions.pod:2083 ../src/guestfs-actions.pod:2197
21896 #: ../src/guestfs-actions.pod:3628 ../src/guestfs-actions.pod:3648
21897 #: ../src/guestfs-actions.pod:4956 ../src/guestfs-actions.pod:6222
21898 #: ../src/guestfs-actions.pod:6339 ../src/guestfs-actions.pod:6472
21899 #: ../src/guestfs-actions.pod:6963 ../src/guestfs-actions.pod:7088
21900 #: ../src/guestfs-actions.pod:7611
21901 msgid "(Added in 0.3)"
21902 msgstr ""
21903
21904 #. type: =head2
21905 #: ../src/guestfs-actions.pod:41
21906 msgid "guestfs_add_domain"
21907 msgstr ""
21908
21909 #. type: verbatim
21910 #: ../src/guestfs-actions.pod:43
21911 #, no-wrap
21912 msgid ""
21913 " int\n"
21914 " guestfs_add_domain (guestfs_h *g,\n"
21915 "                     const char *dom,\n"
21916 "                     ...);\n"
21917 "\n"
21918 msgstr ""
21919
21920 #. type: textblock
21921 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
21922 #: ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:2831
21923 #: ../src/guestfs-actions.pod:4647 ../src/guestfs-actions.pod:4966
21924 #: ../src/guestfs-actions.pod:5183
21925 msgid ""
21926 "You may supply a list of optional arguments to this call.  Use zero or more "
21927 "of the following pairs of parameters, and terminate the list with C<-1> on "
21928 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
21929 msgstr ""
21930
21931 #. type: verbatim
21932 #: ../src/guestfs-actions.pod:53
21933 #, no-wrap
21934 msgid ""
21935 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
21936 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
21937 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
21938 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
21939 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
21940 "\n"
21941 msgstr ""
21942
21943 #. type: textblock
21944 #: ../src/guestfs-actions.pod:59
21945 msgid ""
21946 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
21947 "It works by connecting to libvirt, requesting the domain and domain XML from "
21948 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
21949 "one."
21950 msgstr ""
21951
21952 #. type: textblock
21953 #: ../src/guestfs-actions.pod:94
21954 msgid ""
21955 "The other optional parameters are passed directly through to "
21956 "C<guestfs_add_drive_opts>."
21957 msgstr ""
21958
21959 #. type: textblock
21960 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
21961 #: ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698
21962 #: ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747
21963 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1385
21964 #: ../src/guestfs-actions.pod:1741 ../src/guestfs-actions.pod:1944
21965 #: ../src/guestfs-actions.pod:2055 ../src/guestfs-actions.pod:2106
21966 #: ../src/guestfs-actions.pod:2161 ../src/guestfs-actions.pod:2184
21967 #: ../src/guestfs-actions.pod:2477 ../src/guestfs-actions.pod:2949
21968 #: ../src/guestfs-actions.pod:2967 ../src/guestfs-actions.pod:5142
21969 #: ../src/guestfs-actions.pod:5362 ../src/guestfs-actions.pod:5774
21970 #: ../src/guestfs-actions.pod:5800 ../src/guestfs-actions.pod:7196
21971 #: ../src/guestfs-actions.pod:7622 ../src/guestfs-actions.pod:7635
21972 #: ../src/guestfs-actions.pod:7648
21973 msgid "On error this function returns -1."
21974 msgstr ""
21975
21976 #. type: textblock
21977 #: ../src/guestfs-actions.pod:99
21978 msgid "(Added in 1.7.4)"
21979 msgstr ""
21980
21981 #. type: =head2
21982 #: ../src/guestfs-actions.pod:101
21983 msgid "guestfs_add_domain_va"
21984 msgstr ""
21985
21986 #. type: verbatim
21987 #: ../src/guestfs-actions.pod:103
21988 #, no-wrap
21989 msgid ""
21990 " int\n"
21991 " guestfs_add_domain_va (guestfs_h *g,\n"
21992 "                        const char *dom,\n"
21993 "                        va_list args);\n"
21994 "\n"
21995 msgstr ""
21996
21997 #. type: textblock
21998 #: ../src/guestfs-actions.pod:108
21999 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
22000 msgstr ""
22001
22002 #. type: textblock
22003 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
22004 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
22005 #: ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887
22006 #: ../src/guestfs-actions.pod:2915 ../src/guestfs-actions.pod:2927
22007 #: ../src/guestfs-actions.pod:4712 ../src/guestfs-actions.pod:4724
22008 #: ../src/guestfs-actions.pod:4994 ../src/guestfs-actions.pod:5006
22009 #: ../src/guestfs-actions.pod:5232 ../src/guestfs-actions.pod:5243
22010 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
22011 msgstr ""
22012
22013 #. type: =head2
22014 #: ../src/guestfs-actions.pod:112
22015 msgid "guestfs_add_domain_argv"
22016 msgstr ""
22017
22018 #. type: verbatim
22019 #: ../src/guestfs-actions.pod:114
22020 #, no-wrap
22021 msgid ""
22022 " int\n"
22023 " guestfs_add_domain_argv (guestfs_h *g,\n"
22024 "                          const char *dom,\n"
22025 "                          const struct guestfs_add_domain_argv *optargs);\n"
22026 "\n"
22027 msgstr ""
22028
22029 #. type: textblock
22030 #: ../src/guestfs-actions.pod:119
22031 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
22032 msgstr ""
22033
22034 #. type: =head2
22035 #: ../src/guestfs-actions.pod:123
22036 msgid "guestfs_add_drive"
22037 msgstr ""
22038
22039 #. type: verbatim
22040 #: ../src/guestfs-actions.pod:125
22041 #, no-wrap
22042 msgid ""
22043 " int\n"
22044 " guestfs_add_drive (guestfs_h *g,\n"
22045 "                    const char *filename);\n"
22046 "\n"
22047 msgstr ""
22048
22049 #. type: textblock
22050 #: ../src/guestfs-actions.pod:129
22051 msgid ""
22052 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
22053 "optional parameters, so the disk is added writable, with the format being "
22054 "detected automatically."
22055 msgstr ""
22056
22057 #. type: textblock
22058 #: ../src/guestfs-actions.pod:133
22059 msgid ""
22060 "Automatic detection of the format opens you up to a potential security hole "
22061 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
22062 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
22063 "you should think about replacing calls to this function with calls to "
22064 "C<guestfs_add_drive_opts>, and specifying the format."
22065 msgstr ""
22066
22067 #. type: =head2
22068 #: ../src/guestfs-actions.pod:144
22069 msgid "guestfs_add_drive_opts"
22070 msgstr ""
22071
22072 #. type: verbatim
22073 #: ../src/guestfs-actions.pod:146
22074 #, no-wrap
22075 msgid ""
22076 " int\n"
22077 " guestfs_add_drive_opts (guestfs_h *g,\n"
22078 "                         const char *filename,\n"
22079 "                         ...);\n"
22080 "\n"
22081 msgstr ""
22082
22083 #. type: verbatim
22084 #: ../src/guestfs-actions.pod:156
22085 #, no-wrap
22086 msgid ""
22087 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
22088 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
22089 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
22090 "\n"
22091 msgstr ""
22092
22093 #. type: textblock
22094 #: ../src/guestfs-actions.pod:185
22095 msgid ""
22096 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
22097 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
22098 "Possible formats include C<raw> and C<qcow2>."
22099 msgstr ""
22100
22101 #. type: textblock
22102 #: ../src/guestfs-actions.pod:196
22103 msgid ""
22104 "This rarely-used option lets you emulate the behaviour of the deprecated "
22105 "C<guestfs_add_drive_with_if> call (q.v.)"
22106 msgstr ""
22107
22108 #. type: textblock
22109 #: ../src/guestfs-actions.pod:203
22110 msgid "(Added in 1.5.23)"
22111 msgstr ""
22112
22113 #. type: =head2
22114 #: ../src/guestfs-actions.pod:205
22115 msgid "guestfs_add_drive_opts_va"
22116 msgstr ""
22117
22118 #. type: verbatim
22119 #: ../src/guestfs-actions.pod:207
22120 #, no-wrap
22121 msgid ""
22122 " int\n"
22123 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
22124 "                            const char *filename,\n"
22125 "                            va_list args);\n"
22126 "\n"
22127 msgstr ""
22128
22129 #. type: textblock
22130 #: ../src/guestfs-actions.pod:212
22131 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
22132 msgstr ""
22133
22134 #. type: =head2
22135 #: ../src/guestfs-actions.pod:216
22136 msgid "guestfs_add_drive_opts_argv"
22137 msgstr ""
22138
22139 #. type: verbatim
22140 #: ../src/guestfs-actions.pod:218
22141 #, no-wrap
22142 msgid ""
22143 " int\n"
22144 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
22145 "                              const char *filename,\n"
22146 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
22147 "\n"
22148 msgstr ""
22149
22150 #. type: textblock
22151 #: ../src/guestfs-actions.pod:223
22152 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
22153 msgstr ""
22154
22155 #. type: =head2
22156 #: ../src/guestfs-actions.pod:227
22157 msgid "guestfs_add_drive_ro"
22158 msgstr ""
22159
22160 #. type: verbatim
22161 #: ../src/guestfs-actions.pod:229
22162 #, no-wrap
22163 msgid ""
22164 " int\n"
22165 " guestfs_add_drive_ro (guestfs_h *g,\n"
22166 "                       const char *filename);\n"
22167 "\n"
22168 msgstr ""
22169
22170 #. type: textblock
22171 #: ../src/guestfs-actions.pod:233
22172 msgid ""
22173 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
22174 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
22175 "disk is added read-only, with the format being detected automatically."
22176 msgstr ""
22177
22178 #. type: textblock
22179 #: ../src/guestfs-actions.pod:240
22180 msgid "(Added in 1.0.38)"
22181 msgstr ""
22182
22183 #. type: =head2
22184 #: ../src/guestfs-actions.pod:242
22185 msgid "guestfs_add_drive_ro_with_if"
22186 msgstr ""
22187
22188 #. type: verbatim
22189 #: ../src/guestfs-actions.pod:244
22190 #, no-wrap
22191 msgid ""
22192 " int\n"
22193 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
22194 "                               const char *filename,\n"
22195 "                               const char *iface);\n"
22196 "\n"
22197 msgstr ""
22198
22199 #. type: textblock
22200 #: ../src/guestfs-actions.pod:249
22201 msgid ""
22202 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
22203 "QEMU interface emulation to use at run time."
22204 msgstr ""
22205
22206 #. type: textblock
22207 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
22208 #: ../src/guestfs-actions.pod:2436
22209 msgid "(Added in 1.0.84)"
22210 msgstr ""
22211
22212 #. type: =head2
22213 #: ../src/guestfs-actions.pod:263
22214 msgid "guestfs_add_drive_with_if"
22215 msgstr ""
22216
22217 #. type: verbatim
22218 #: ../src/guestfs-actions.pod:265
22219 #, no-wrap
22220 msgid ""
22221 " int\n"
22222 " guestfs_add_drive_with_if (guestfs_h *g,\n"
22223 "                            const char *filename,\n"
22224 "                            const char *iface);\n"
22225 "\n"
22226 msgstr ""
22227
22228 #. type: textblock
22229 #: ../src/guestfs-actions.pod:270
22230 msgid ""
22231 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
22232 "QEMU interface emulation to use at run time."
22233 msgstr ""
22234
22235 #. type: =head2
22236 #: ../src/guestfs-actions.pod:284
22237 msgid "guestfs_aug_clear"
22238 msgstr ""
22239
22240 #. type: verbatim
22241 #: ../src/guestfs-actions.pod:286
22242 #, no-wrap
22243 msgid ""
22244 " int\n"
22245 " guestfs_aug_clear (guestfs_h *g,\n"
22246 "                    const char *augpath);\n"
22247 "\n"
22248 msgstr ""
22249
22250 #. type: textblock
22251 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2186
22252 msgid "(Added in 1.3.4)"
22253 msgstr ""
22254
22255 #. type: =head2
22256 #: ../src/guestfs-actions.pod:297
22257 msgid "guestfs_aug_close"
22258 msgstr ""
22259
22260 #. type: verbatim
22261 #: ../src/guestfs-actions.pod:299
22262 #, no-wrap
22263 msgid ""
22264 " int\n"
22265 " guestfs_aug_close (guestfs_h *g);\n"
22266 "\n"
22267 msgstr ""
22268
22269 #. type: textblock
22270 #: ../src/guestfs-actions.pod:302
22271 msgid ""
22272 "Close the current Augeas handle and free up any resources used by it.  After "
22273 "calling this, you have to call C<guestfs_aug_init> again before you can use "
22274 "any other Augeas functions."
22275 msgstr ""
22276
22277 #. type: textblock
22278 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
22279 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
22280 #: ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449
22281 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494
22282 #: ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522
22283 #: ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554
22284 #: ../src/guestfs-actions.pod:5851
22285 msgid "(Added in 0.7)"
22286 msgstr ""
22287
22288 #. type: =head2
22289 #: ../src/guestfs-actions.pod:311
22290 msgid "guestfs_aug_defnode"
22291 msgstr ""
22292
22293 #. type: verbatim
22294 #: ../src/guestfs-actions.pod:313
22295 #, no-wrap
22296 msgid ""
22297 " struct guestfs_int_bool *\n"
22298 " guestfs_aug_defnode (guestfs_h *g,\n"
22299 "                      const char *name,\n"
22300 "                      const char *expr,\n"
22301 "                      const char *val);\n"
22302 "\n"
22303 msgstr ""
22304
22305 #. type: textblock
22306 #: ../src/guestfs-actions.pod:322
22307 msgid ""
22308 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
22309 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
22310 "containing that single node."
22311 msgstr ""
22312
22313 #. type: textblock
22314 #: ../src/guestfs-actions.pod:330
22315 msgid ""
22316 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
22317 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
22318 msgstr ""
22319
22320 #. type: =head2
22321 #: ../src/guestfs-actions.pod:336
22322 msgid "guestfs_aug_defvar"
22323 msgstr ""
22324
22325 #. type: verbatim
22326 #: ../src/guestfs-actions.pod:338
22327 #, no-wrap
22328 msgid ""
22329 " int\n"
22330 " guestfs_aug_defvar (guestfs_h *g,\n"
22331 "                     const char *name,\n"
22332 "                     const char *expr);\n"
22333 "\n"
22334 msgstr ""
22335
22336 #. type: =head2
22337 #: ../src/guestfs-actions.pod:354
22338 msgid "guestfs_aug_get"
22339 msgstr ""
22340
22341 #. type: verbatim
22342 #: ../src/guestfs-actions.pod:356
22343 #, no-wrap
22344 msgid ""
22345 " char *\n"
22346 " guestfs_aug_get (guestfs_h *g,\n"
22347 "                  const char *augpath);\n"
22348 "\n"
22349 msgstr ""
22350
22351 #. type: textblock
22352 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927
22353 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005
22354 #: ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124
22355 #: ../src/guestfs-actions.pod:1254 ../src/guestfs-actions.pod:1271
22356 #: ../src/guestfs-actions.pod:1290 ../src/guestfs-actions.pod:1424
22357 #: ../src/guestfs-actions.pod:1612 ../src/guestfs-actions.pod:1724
22358 #: ../src/guestfs-actions.pod:1887 ../src/guestfs-actions.pod:1904
22359 #: ../src/guestfs-actions.pod:1971 ../src/guestfs-actions.pod:2007
22360 #: ../src/guestfs-actions.pod:2028 ../src/guestfs-actions.pod:2209
22361 #: ../src/guestfs-actions.pod:2401 ../src/guestfs-actions.pod:2605
22362 #: ../src/guestfs-actions.pod:2695 ../src/guestfs-actions.pod:2799
22363 #: ../src/guestfs-actions.pod:2818 ../src/guestfs-actions.pod:3032
22364 #: ../src/guestfs-actions.pod:3060 ../src/guestfs-actions.pod:3081
22365 #: ../src/guestfs-actions.pod:3115 ../src/guestfs-actions.pod:3174
22366 #: ../src/guestfs-actions.pod:3194 ../src/guestfs-actions.pod:3214
22367 #: ../src/guestfs-actions.pod:3841 ../src/guestfs-actions.pod:4194
22368 #: ../src/guestfs-actions.pod:4364 ../src/guestfs-actions.pod:4474
22369 #: ../src/guestfs-actions.pod:5380 ../src/guestfs-actions.pod:5579
22370 #: ../src/guestfs-actions.pod:5749 ../src/guestfs-actions.pod:5927
22371 #: ../src/guestfs-actions.pod:5976 ../src/guestfs-actions.pod:6632
22372 #: ../src/guestfs-actions.pod:6648 ../src/guestfs-actions.pod:6665
22373 #: ../src/guestfs-actions.pod:6696 ../src/guestfs-actions.pod:7370
22374 #: ../src/guestfs-actions.pod:7389 ../src/guestfs-actions.pod:7407
22375 #: ../src/guestfs-actions.pod:7581 ../src/guestfs-actions.pod:7883
22376 msgid ""
22377 "This function returns a string, or NULL on error.  I<The caller must free "
22378 "the returned string after use>."
22379 msgstr ""
22380
22381 #. type: =head2
22382 #: ../src/guestfs-actions.pod:368
22383 msgid "guestfs_aug_init"
22384 msgstr ""
22385
22386 #. type: verbatim
22387 #: ../src/guestfs-actions.pod:370
22388 #, no-wrap
22389 msgid ""
22390 " int\n"
22391 " guestfs_aug_init (guestfs_h *g,\n"
22392 "                   const char *root,\n"
22393 "                   int flags);\n"
22394 "\n"
22395 msgstr ""
22396
22397 #. type: textblock
22398 #: ../src/guestfs-actions.pod:379
22399 msgid "You must call this before using any other C<guestfs_aug_*> commands."
22400 msgstr ""
22401
22402 #. type: textblock
22403 #: ../src/guestfs-actions.pod:404
22404 msgid ""
22405 "This option is only useful when debugging Augeas lenses.  Use of this option "
22406 "may require additional memory for the libguestfs appliance.  You may need to "
22407 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
22408 "C<guestfs_set_memsize>."
22409 msgstr ""
22410
22411 #. type: textblock
22412 #: ../src/guestfs-actions.pod:419
22413 msgid "Do not load the tree in C<guestfs_aug_init>."
22414 msgstr ""
22415
22416 #. type: textblock
22417 #: ../src/guestfs-actions.pod:423
22418 msgid "To close the handle, you can call C<guestfs_aug_close>."
22419 msgstr ""
22420
22421 #. type: =head2
22422 #: ../src/guestfs-actions.pod:431
22423 msgid "guestfs_aug_insert"
22424 msgstr ""
22425
22426 #. type: verbatim
22427 #: ../src/guestfs-actions.pod:433
22428 #, no-wrap
22429 msgid ""
22430 " int\n"
22431 " guestfs_aug_insert (guestfs_h *g,\n"
22432 "                     const char *augpath,\n"
22433 "                     const char *label,\n"
22434 "                     int before);\n"
22435 "\n"
22436 msgstr ""
22437
22438 #. type: =head2
22439 #: ../src/guestfs-actions.pod:451
22440 msgid "guestfs_aug_load"
22441 msgstr ""
22442
22443 #. type: verbatim
22444 #: ../src/guestfs-actions.pod:453
22445 #, no-wrap
22446 msgid ""
22447 " int\n"
22448 " guestfs_aug_load (guestfs_h *g);\n"
22449 "\n"
22450 msgstr ""
22451
22452 #. type: =head2
22453 #: ../src/guestfs-actions.pod:465
22454 msgid "guestfs_aug_ls"
22455 msgstr ""
22456
22457 #. type: verbatim
22458 #: ../src/guestfs-actions.pod:467
22459 #, no-wrap
22460 msgid ""
22461 " char **\n"
22462 " guestfs_aug_ls (guestfs_h *g,\n"
22463 "                 const char *augpath);\n"
22464 "\n"
22465 msgstr ""
22466
22467 #. type: textblock
22468 #: ../src/guestfs-actions.pod:471
22469 msgid ""
22470 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
22471 "sorting the resulting nodes into alphabetical order."
22472 msgstr ""
22473
22474 #. type: textblock
22475 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490
22476 #: ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143
22477 #: ../src/guestfs-actions.pod:1439 ../src/guestfs-actions.pod:1458
22478 #: ../src/guestfs-actions.pod:1561 ../src/guestfs-actions.pod:1580
22479 #: ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:2281
22480 #: ../src/guestfs-actions.pod:2297 ../src/guestfs-actions.pod:2316
22481 #: ../src/guestfs-actions.pod:2359 ../src/guestfs-actions.pod:2383
22482 #: ../src/guestfs-actions.pod:2454 ../src/guestfs-actions.pod:2503
22483 #: ../src/guestfs-actions.pod:2760 ../src/guestfs-actions.pod:3134
22484 #: ../src/guestfs-actions.pod:3410 ../src/guestfs-actions.pod:3724
22485 #: ../src/guestfs-actions.pod:3741 ../src/guestfs-actions.pod:3761
22486 #: ../src/guestfs-actions.pod:3823 ../src/guestfs-actions.pod:3928
22487 #: ../src/guestfs-actions.pod:4336 ../src/guestfs-actions.pod:5103
22488 #: ../src/guestfs-actions.pod:5721 ../src/guestfs-actions.pod:5847
22489 #: ../src/guestfs-actions.pod:5961 ../src/guestfs-actions.pod:6712
22490 #: ../src/guestfs-actions.pod:6773 ../src/guestfs-actions.pod:6828
22491 #: ../src/guestfs-actions.pod:6974 ../src/guestfs-actions.pod:6998
22492 #: ../src/guestfs-actions.pod:7474 ../src/guestfs-actions.pod:7494
22493 #: ../src/guestfs-actions.pod:7541 ../src/guestfs-actions.pod:7735
22494 #: ../src/guestfs-actions.pod:7754 ../src/guestfs-actions.pod:7840
22495 #: ../src/guestfs-actions.pod:7859 ../src/guestfs-actions.pod:7905
22496 #: ../src/guestfs-actions.pod:7924
22497 msgid ""
22498 "This function returns a NULL-terminated array of strings (like L<environ(3)"
22499 ">), or NULL if there was an error.  I<The caller must free the strings and "
22500 "the array after use>."
22501 msgstr ""
22502
22503 #. type: textblock
22504 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068
22505 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1496
22506 #: ../src/guestfs-actions.pod:3488 ../src/guestfs-actions.pod:3519
22507 #: ../src/guestfs-actions.pod:4177 ../src/guestfs-actions.pod:4227
22508 #: ../src/guestfs-actions.pod:4414 ../src/guestfs-actions.pod:4447
22509 #: ../src/guestfs-actions.pod:4610 ../src/guestfs-actions.pod:5107
22510 #: ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:6059
22511 #: ../src/guestfs-actions.pod:6073 ../src/guestfs-actions.pod:6085
22512 #: ../src/guestfs-actions.pod:6553 ../src/guestfs-actions.pod:7212
22513 #: ../src/guestfs-actions.pod:7225 ../src/guestfs-actions.pod:7458
22514 #: ../src/guestfs-actions.pod:7723
22515 msgid "(Added in 0.8)"
22516 msgstr ""
22517
22518 #. type: =head2
22519 #: ../src/guestfs-actions.pod:480
22520 msgid "guestfs_aug_match"
22521 msgstr ""
22522
22523 #. type: verbatim
22524 #: ../src/guestfs-actions.pod:482
22525 #, no-wrap
22526 msgid ""
22527 " char **\n"
22528 " guestfs_aug_match (guestfs_h *g,\n"
22529 "                    const char *augpath);\n"
22530 "\n"
22531 msgstr ""
22532
22533 #. type: =head2
22534 #: ../src/guestfs-actions.pod:496
22535 msgid "guestfs_aug_mv"
22536 msgstr ""
22537
22538 #. type: verbatim
22539 #: ../src/guestfs-actions.pod:498
22540 #, no-wrap
22541 msgid ""
22542 " int\n"
22543 " guestfs_aug_mv (guestfs_h *g,\n"
22544 "                 const char *src,\n"
22545 "                 const char *dest);\n"
22546 "\n"
22547 msgstr ""
22548
22549 #. type: =head2
22550 #: ../src/guestfs-actions.pod:510
22551 msgid "guestfs_aug_rm"
22552 msgstr ""
22553
22554 #. type: verbatim
22555 #: ../src/guestfs-actions.pod:512
22556 #, no-wrap
22557 msgid ""
22558 " int\n"
22559 " guestfs_aug_rm (guestfs_h *g,\n"
22560 "                 const char *augpath);\n"
22561 "\n"
22562 msgstr ""
22563
22564 #. type: =head2
22565 #: ../src/guestfs-actions.pod:524
22566 msgid "guestfs_aug_save"
22567 msgstr ""
22568
22569 #. type: verbatim
22570 #: ../src/guestfs-actions.pod:526
22571 #, no-wrap
22572 msgid ""
22573 " int\n"
22574 " guestfs_aug_save (guestfs_h *g);\n"
22575 "\n"
22576 msgstr ""
22577
22578 #. type: textblock
22579 #: ../src/guestfs-actions.pod:531
22580 msgid ""
22581 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
22582 "are saved."
22583 msgstr ""
22584
22585 #. type: =head2
22586 #: ../src/guestfs-actions.pod:538
22587 msgid "guestfs_aug_set"
22588 msgstr ""
22589
22590 #. type: verbatim
22591 #: ../src/guestfs-actions.pod:540
22592 #, no-wrap
22593 msgid ""
22594 " int\n"
22595 " guestfs_aug_set (guestfs_h *g,\n"
22596 "                  const char *augpath,\n"
22597 "                  const char *val);\n"
22598 "\n"
22599 msgstr ""
22600
22601 #. type: textblock
22602 #: ../src/guestfs-actions.pod:547
22603 msgid ""
22604 "In the Augeas API, it is possible to clear a node by setting the value to "
22605 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
22606 "this call.  Instead you must use the C<guestfs_aug_clear> call."
22607 msgstr ""
22608
22609 #. type: =head2
22610 #: ../src/guestfs-actions.pod:556
22611 msgid "guestfs_available"
22612 msgstr ""
22613
22614 #. type: verbatim
22615 #: ../src/guestfs-actions.pod:558
22616 #, no-wrap
22617 msgid ""
22618 " int\n"
22619 " guestfs_available (guestfs_h *g,\n"
22620 "                    char *const *groups);\n"
22621 "\n"
22622 msgstr ""
22623
22624 #. type: textblock
22625 #: ../src/guestfs-actions.pod:566
22626 msgid ""
22627 "The libguestfs groups, and the functions that those groups correspond to, "
22628 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
22629 "runtime by calling C<guestfs_available_all_groups>."
22630 msgstr ""
22631
22632 #. type: textblock
22633 #: ../src/guestfs-actions.pod:590
22634 msgid "You must call C<guestfs_launch> before calling this function."
22635 msgstr ""
22636
22637 #. type: textblock
22638 #: ../src/guestfs-actions.pod:612
22639 msgid ""
22640 "This call was added in version C<1.0.80>.  In previous versions of "
22641 "libguestfs all you could do would be to speculatively execute a command to "
22642 "find out if the daemon implemented it.  See also C<guestfs_version>."
22643 msgstr ""
22644
22645 #. type: textblock
22646 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1241
22647 msgid "(Added in 1.0.80)"
22648 msgstr ""
22649
22650 #. type: =head2
22651 #: ../src/guestfs-actions.pod:623
22652 msgid "guestfs_available_all_groups"
22653 msgstr ""
22654
22655 #. type: verbatim
22656 #: ../src/guestfs-actions.pod:625
22657 #, no-wrap
22658 msgid ""
22659 " char **\n"
22660 " guestfs_available_all_groups (guestfs_h *g);\n"
22661 "\n"
22662 msgstr ""
22663
22664 #. type: textblock
22665 #: ../src/guestfs-actions.pod:628
22666 msgid ""
22667 "This command returns a list of all optional groups that this daemon knows "
22668 "about.  Note this returns both supported and unsupported groups.  To find "
22669 "out which ones the daemon can actually support you have to call "
22670 "C<guestfs_available> on each member of the returned list."
22671 msgstr ""
22672
22673 #. type: textblock
22674 #: ../src/guestfs-actions.pod:634
22675 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
22676 msgstr ""
22677
22678 #. type: textblock
22679 #: ../src/guestfs-actions.pod:640
22680 msgid "(Added in 1.3.15)"
22681 msgstr ""
22682
22683 #. type: =head2
22684 #: ../src/guestfs-actions.pod:642
22685 msgid "guestfs_base64_in"
22686 msgstr ""
22687
22688 #. type: verbatim
22689 #: ../src/guestfs-actions.pod:644
22690 #, no-wrap
22691 msgid ""
22692 " int\n"
22693 " guestfs_base64_in (guestfs_h *g,\n"
22694 "                    const char *base64file,\n"
22695 "                    const char *filename);\n"
22696 "\n"
22697 msgstr ""
22698
22699 #. type: textblock
22700 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
22701 msgid "(Added in 1.3.5)"
22702 msgstr ""
22703
22704 #. type: =head2
22705 #: ../src/guestfs-actions.pod:656
22706 msgid "guestfs_base64_out"
22707 msgstr ""
22708
22709 #. type: verbatim
22710 #: ../src/guestfs-actions.pod:658
22711 #, no-wrap
22712 msgid ""
22713 " int\n"
22714 " guestfs_base64_out (guestfs_h *g,\n"
22715 "                     const char *filename,\n"
22716 "                     const char *base64file);\n"
22717 "\n"
22718 msgstr ""
22719
22720 #. type: =head2
22721 #: ../src/guestfs-actions.pod:670
22722 msgid "guestfs_blockdev_flushbufs"
22723 msgstr ""
22724
22725 #. type: verbatim
22726 #: ../src/guestfs-actions.pod:672
22727 #, no-wrap
22728 msgid ""
22729 " int\n"
22730 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
22731 "                             const char *device);\n"
22732 "\n"
22733 msgstr ""
22734
22735 #. type: textblock
22736 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700
22737 #: ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731
22738 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768
22739 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
22740 #: ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
22741 msgid "(Added in 0.9.3)"
22742 msgstr ""
22743
22744 #. type: =head2
22745 #: ../src/guestfs-actions.pod:685
22746 msgid "guestfs_blockdev_getbsz"
22747 msgstr ""
22748
22749 #. type: verbatim
22750 #: ../src/guestfs-actions.pod:687
22751 #, no-wrap
22752 msgid ""
22753 " int\n"
22754 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
22755 "                          const char *device);\n"
22756 "\n"
22757 msgstr ""
22758
22759 #. type: =head2
22760 #: ../src/guestfs-actions.pod:702
22761 msgid "guestfs_blockdev_getro"
22762 msgstr ""
22763
22764 #. type: verbatim
22765 #: ../src/guestfs-actions.pod:704
22766 #, no-wrap
22767 msgid ""
22768 " int\n"
22769 " guestfs_blockdev_getro (guestfs_h *g,\n"
22770 "                         const char *device);\n"
22771 "\n"
22772 msgstr ""
22773
22774 #. type: textblock
22775 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1479
22776 #: ../src/guestfs-actions.pod:1494 ../src/guestfs-actions.pod:1983
22777 #: ../src/guestfs-actions.pod:1994 ../src/guestfs-actions.pod:2066
22778 #: ../src/guestfs-actions.pod:2092 ../src/guestfs-actions.pod:2132
22779 #: ../src/guestfs-actions.pod:2147 ../src/guestfs-actions.pod:2172
22780 #: ../src/guestfs-actions.pod:2195 ../src/guestfs-actions.pod:3231
22781 #: ../src/guestfs-actions.pod:3247 ../src/guestfs-actions.pod:3265
22782 #: ../src/guestfs-actions.pod:3427 ../src/guestfs-actions.pod:3441
22783 #: ../src/guestfs-actions.pod:3456 ../src/guestfs-actions.pod:3470
22784 #: ../src/guestfs-actions.pod:3486 ../src/guestfs-actions.pod:3501
22785 #: ../src/guestfs-actions.pod:3517 ../src/guestfs-actions.pod:3531
22786 #: ../src/guestfs-actions.pod:3544 ../src/guestfs-actions.pod:3558
22787 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3588
22788 #: ../src/guestfs-actions.pod:3601 ../src/guestfs-actions.pod:3615
22789 #: ../src/guestfs-actions.pod:5344
22790 msgid "This function returns a C truth value on success or -1 on error."
22791 msgstr ""
22792
22793 #. type: =head2
22794 #: ../src/guestfs-actions.pod:717
22795 msgid "guestfs_blockdev_getsize64"
22796 msgstr ""
22797
22798 #. type: verbatim
22799 #: ../src/guestfs-actions.pod:719
22800 #, no-wrap
22801 msgid ""
22802 " int64_t\n"
22803 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
22804 "                             const char *device);\n"
22805 "\n"
22806 msgstr ""
22807
22808 #. type: textblock
22809 #: ../src/guestfs-actions.pod:725
22810 msgid "See also C<guestfs_blockdev_getsz>."
22811 msgstr ""
22812
22813 #. type: =head2
22814 #: ../src/guestfs-actions.pod:733
22815 msgid "guestfs_blockdev_getss"
22816 msgstr ""
22817
22818 #. type: verbatim
22819 #: ../src/guestfs-actions.pod:735
22820 #, no-wrap
22821 msgid ""
22822 " int\n"
22823 " guestfs_blockdev_getss (guestfs_h *g,\n"
22824 "                         const char *device);\n"
22825 "\n"
22826 msgstr ""
22827
22828 #. type: textblock
22829 #: ../src/guestfs-actions.pod:742
22830 msgid ""
22831 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
22832 "that)."
22833 msgstr ""
22834
22835 #. type: =head2
22836 #: ../src/guestfs-actions.pod:751
22837 msgid "guestfs_blockdev_getsz"
22838 msgstr ""
22839
22840 #. type: verbatim
22841 #: ../src/guestfs-actions.pod:753
22842 #, no-wrap
22843 msgid ""
22844 " int64_t\n"
22845 " guestfs_blockdev_getsz (guestfs_h *g,\n"
22846 "                         const char *device);\n"
22847 "\n"
22848 msgstr ""
22849
22850 #. type: textblock
22851 #: ../src/guestfs-actions.pod:760
22852 msgid ""
22853 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
22854 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
22855 msgstr ""
22856
22857 #. type: =head2
22858 #: ../src/guestfs-actions.pod:770
22859 msgid "guestfs_blockdev_rereadpt"
22860 msgstr ""
22861
22862 #. type: verbatim
22863 #: ../src/guestfs-actions.pod:772
22864 #, no-wrap
22865 msgid ""
22866 " int\n"
22867 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
22868 "                            const char *device);\n"
22869 "\n"
22870 msgstr ""
22871
22872 #. type: =head2
22873 #: ../src/guestfs-actions.pod:784
22874 msgid "guestfs_blockdev_setbsz"
22875 msgstr ""
22876
22877 #. type: verbatim
22878 #: ../src/guestfs-actions.pod:786
22879 #, no-wrap
22880 msgid ""
22881 " int\n"
22882 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
22883 "                          const char *device,\n"
22884 "                          int blocksize);\n"
22885 "\n"
22886 msgstr ""
22887
22888 #. type: =head2
22889 #: ../src/guestfs-actions.pod:802
22890 msgid "guestfs_blockdev_setro"
22891 msgstr ""
22892
22893 #. type: verbatim
22894 #: ../src/guestfs-actions.pod:804
22895 #, no-wrap
22896 msgid ""
22897 " int\n"
22898 " guestfs_blockdev_setro (guestfs_h *g,\n"
22899 "                         const char *device);\n"
22900 "\n"
22901 msgstr ""
22902
22903 #. type: =head2
22904 #: ../src/guestfs-actions.pod:816
22905 msgid "guestfs_blockdev_setrw"
22906 msgstr ""
22907
22908 #. type: verbatim
22909 #: ../src/guestfs-actions.pod:818
22910 #, no-wrap
22911 msgid ""
22912 " int\n"
22913 " guestfs_blockdev_setrw (guestfs_h *g,\n"
22914 "                         const char *device);\n"
22915 "\n"
22916 msgstr ""
22917
22918 #. type: =head2
22919 #: ../src/guestfs-actions.pod:830
22920 msgid "guestfs_btrfs_filesystem_resize"
22921 msgstr ""
22922
22923 #. type: verbatim
22924 #: ../src/guestfs-actions.pod:832
22925 #, no-wrap
22926 msgid ""
22927 " int\n"
22928 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
22929 "                                  const char *mountpoint,\n"
22930 "                                  ...);\n"
22931 "\n"
22932 msgstr ""
22933
22934 #. type: verbatim
22935 #: ../src/guestfs-actions.pod:842
22936 #, no-wrap
22937 msgid ""
22938 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
22939 "\n"
22940 msgstr ""
22941
22942 #. type: textblock
22943 #: ../src/guestfs-actions.pod:865
22944 msgid "(Added in 1.11.17)"
22945 msgstr ""
22946
22947 #. type: =head2
22948 #: ../src/guestfs-actions.pod:867
22949 msgid "guestfs_btrfs_filesystem_resize_va"
22950 msgstr ""
22951
22952 #. type: verbatim
22953 #: ../src/guestfs-actions.pod:869
22954 #, no-wrap
22955 msgid ""
22956 " int\n"
22957 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
22958 "                                     const char *mountpoint,\n"
22959 "                                     va_list args);\n"
22960 "\n"
22961 msgstr ""
22962
22963 #. type: textblock
22964 #: ../src/guestfs-actions.pod:874
22965 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
22966 msgstr ""
22967
22968 #. type: =head2
22969 #: ../src/guestfs-actions.pod:878
22970 msgid "guestfs_btrfs_filesystem_resize_argv"
22971 msgstr ""
22972
22973 #. type: verbatim
22974 #: ../src/guestfs-actions.pod:880
22975 #, no-wrap
22976 msgid ""
22977 " int\n"
22978 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
22979 "                                       const char *mountpoint,\n"
22980 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
22981 "\n"
22982 msgstr ""
22983
22984 #. type: textblock
22985 #: ../src/guestfs-actions.pod:885
22986 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
22987 msgstr ""
22988
22989 #. type: =head2
22990 #: ../src/guestfs-actions.pod:889
22991 msgid "guestfs_case_sensitive_path"
22992 msgstr ""
22993
22994 #. type: verbatim
22995 #: ../src/guestfs-actions.pod:891
22996 #, no-wrap
22997 msgid ""
22998 " char *\n"
22999 " guestfs_case_sensitive_path (guestfs_h *g,\n"
23000 "                              const char *path);\n"
23001 "\n"
23002 msgstr ""
23003
23004 #. type: textblock
23005 #: ../src/guestfs-actions.pod:917
23006 msgid ""
23007 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
23008 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
23009 "how the directories were originally created under Windows)."
23010 msgstr ""
23011
23012 #. type: textblock
23013 #: ../src/guestfs-actions.pod:925
23014 msgid "See also C<guestfs_realpath>."
23015 msgstr ""
23016
23017 #. type: textblock
23018 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7392
23019 msgid "(Added in 1.0.75)"
23020 msgstr ""
23021
23022 #. type: =head2
23023 #: ../src/guestfs-actions.pod:932
23024 msgid "guestfs_cat"
23025 msgstr ""
23026
23027 #. type: verbatim
23028 #: ../src/guestfs-actions.pod:934
23029 #, no-wrap
23030 msgid ""
23031 " char *\n"
23032 " guestfs_cat (guestfs_h *g,\n"
23033 "              const char *path);\n"
23034 "\n"
23035 msgstr ""
23036
23037 #. type: textblock
23038 #: ../src/guestfs-actions.pod:940
23039 msgid ""
23040 "Note that this function cannot correctly handle binary files (specifically, "
23041 "files containing C<\\0> character which is treated as end of string).  For "
23042 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
23043 "functions which have a more complex interface."
23044 msgstr ""
23045
23046 #. type: textblock
23047 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3745
23048 #: ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:3844
23049 #: ../src/guestfs-actions.pod:3932 ../src/guestfs-actions.pod:4340
23050 #: ../src/guestfs-actions.pod:4354 ../src/guestfs-actions.pod:5725
23051 #: ../src/guestfs-actions.pod:5739 ../src/guestfs-actions.pod:7545
23052 #: ../src/guestfs-actions.pod:7559
23053 msgid "(Added in 0.4)"
23054 msgstr ""
23055
23056 #. type: =head2
23057 #: ../src/guestfs-actions.pod:953
23058 msgid "guestfs_checksum"
23059 msgstr ""
23060
23061 #. type: verbatim
23062 #: ../src/guestfs-actions.pod:955
23063 #, no-wrap
23064 msgid ""
23065 " char *\n"
23066 " guestfs_checksum (guestfs_h *g,\n"
23067 "                   const char *csumtype,\n"
23068 "                   const char *path);\n"
23069 "\n"
23070 msgstr ""
23071
23072 #. type: textblock
23073 #: ../src/guestfs-actions.pod:1001
23074 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
23075 msgstr ""
23076
23077 #. type: textblock
23078 #: ../src/guestfs-actions.pod:1003
23079 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
23080 msgstr ""
23081
23082 #. type: textblock
23083 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1316
23084 #: ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:3443
23085 #: ../src/guestfs-actions.pod:3472 ../src/guestfs-actions.pod:3533
23086 #: ../src/guestfs-actions.pod:3560 ../src/guestfs-actions.pod:7248
23087 msgid "(Added in 1.0.2)"
23088 msgstr ""
23089
23090 #. type: =head2
23091 #: ../src/guestfs-actions.pod:1010
23092 msgid "guestfs_checksum_device"
23093 msgstr ""
23094
23095 #. type: verbatim
23096 #: ../src/guestfs-actions.pod:1012
23097 #, no-wrap
23098 msgid ""
23099 " char *\n"
23100 " guestfs_checksum_device (guestfs_h *g,\n"
23101 "                          const char *csumtype,\n"
23102 "                          const char *device);\n"
23103 "\n"
23104 msgstr ""
23105
23106 #. type: textblock
23107 #: ../src/guestfs-actions.pod:1017
23108 msgid ""
23109 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
23110 "device named C<device>.  For the types of checksums supported see the "
23111 "C<guestfs_checksum> command."
23112 msgstr ""
23113
23114 #. type: textblock
23115 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5174
23116 #: ../src/guestfs-actions.pod:5309 ../src/guestfs-actions.pod:5346
23117 #: ../src/guestfs-actions.pod:5364 ../src/guestfs-actions.pod:5546
23118 #: ../src/guestfs-actions.pod:7157 ../src/guestfs-actions.pod:7171
23119 #: ../src/guestfs-actions.pod:7571
23120 msgid "(Added in 1.3.2)"
23121 msgstr ""
23122
23123 #. type: =head2
23124 #: ../src/guestfs-actions.pod:1026
23125 msgid "guestfs_checksums_out"
23126 msgstr ""
23127
23128 #. type: verbatim
23129 #: ../src/guestfs-actions.pod:1028
23130 #, no-wrap
23131 msgid ""
23132 " int\n"
23133 " guestfs_checksums_out (guestfs_h *g,\n"
23134 "                        const char *csumtype,\n"
23135 "                        const char *directory,\n"
23136 "                        const char *sumsfile);\n"
23137 "\n"
23138 msgstr ""
23139
23140 #. type: textblock
23141 #: ../src/guestfs-actions.pod:1048
23142 msgid "(Added in 1.3.7)"
23143 msgstr ""
23144
23145 #. type: =head2
23146 #: ../src/guestfs-actions.pod:1050
23147 msgid "guestfs_chmod"
23148 msgstr ""
23149
23150 #. type: verbatim
23151 #: ../src/guestfs-actions.pod:1052
23152 #, no-wrap
23153 msgid ""
23154 " int\n"
23155 " guestfs_chmod (guestfs_h *g,\n"
23156 "                int mode,\n"
23157 "                const char *path);\n"
23158 "\n"
23159 msgstr ""
23160
23161 #. type: =head2
23162 #: ../src/guestfs-actions.pod:1070
23163 msgid "guestfs_chown"
23164 msgstr ""
23165
23166 #. type: verbatim
23167 #: ../src/guestfs-actions.pod:1072
23168 #, no-wrap
23169 msgid ""
23170 " int\n"
23171 " guestfs_chown (guestfs_h *g,\n"
23172 "                int owner,\n"
23173 "                int group,\n"
23174 "                const char *path);\n"
23175 "\n"
23176 msgstr ""
23177
23178 #. type: =head2
23179 #: ../src/guestfs-actions.pod:1088
23180 msgid "guestfs_command"
23181 msgstr ""
23182
23183 #. type: verbatim
23184 #: ../src/guestfs-actions.pod:1090
23185 #, no-wrap
23186 msgid ""
23187 " char *\n"
23188 " guestfs_command (guestfs_h *g,\n"
23189 "                  char *const *arguments);\n"
23190 "\n"
23191 msgstr ""
23192
23193 #. type: textblock
23194 #: ../src/guestfs-actions.pod:1099
23195 msgid ""
23196 "The single parameter is an argv-style list of arguments.  The first element "
23197 "is the name of the program to run.  Subsequent elements are parameters.  The "
23198 "list must be non-empty (ie. must contain a program name).  Note that the "
23199 "command runs directly, and is I<not> invoked via the shell (see "
23200 "C<guestfs_sh>)."
23201 msgstr ""
23202
23203 #. type: textblock
23204 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150
23205 #: ../src/guestfs-actions.pod:1615
23206 msgid "(Added in 0.9.1)"
23207 msgstr ""
23208
23209 #. type: =head2
23210 #: ../src/guestfs-actions.pod:1132
23211 msgid "guestfs_command_lines"
23212 msgstr ""
23213
23214 #. type: verbatim
23215 #: ../src/guestfs-actions.pod:1134
23216 #, no-wrap
23217 msgid ""
23218 " char **\n"
23219 " guestfs_command_lines (guestfs_h *g,\n"
23220 "                        char *const *arguments);\n"
23221 "\n"
23222 msgstr ""
23223
23224 #. type: textblock
23225 #: ../src/guestfs-actions.pod:1138
23226 msgid ""
23227 "This is the same as C<guestfs_command>, but splits the result into a list of "
23228 "lines."
23229 msgstr ""
23230
23231 #. type: textblock
23232 #: ../src/guestfs-actions.pod:1141
23233 msgid "See also: C<guestfs_sh_lines>"
23234 msgstr ""
23235
23236 #. type: =head2
23237 #: ../src/guestfs-actions.pod:1152
23238 msgid "guestfs_config"
23239 msgstr ""
23240
23241 #. type: verbatim
23242 #: ../src/guestfs-actions.pod:1154
23243 #, no-wrap
23244 msgid ""
23245 " int\n"
23246 " guestfs_config (guestfs_h *g,\n"
23247 "                 const char *qemuparam,\n"
23248 "                 const char *qemuvalue);\n"
23249 "\n"
23250 msgstr ""
23251
23252 #. type: =head2
23253 #: ../src/guestfs-actions.pod:1172
23254 msgid "guestfs_copy_size"
23255 msgstr ""
23256
23257 #. type: verbatim
23258 #: ../src/guestfs-actions.pod:1174
23259 #, no-wrap
23260 msgid ""
23261 " int\n"
23262 " guestfs_copy_size (guestfs_h *g,\n"
23263 "                    const char *src,\n"
23264 "                    const char *dest,\n"
23265 "                    int64_t size);\n"
23266 "\n"
23267 msgstr ""
23268
23269 #. type: textblock
23270 #: ../src/guestfs-actions.pod:1188 ../src/guestfs-actions.pod:1311
23271 #: ../src/guestfs-actions.pod:1342 ../src/guestfs-actions.pod:1387
23272 #: ../src/guestfs-actions.pod:1764 ../src/guestfs-actions.pod:1786
23273 #: ../src/guestfs-actions.pod:3643 ../src/guestfs-actions.pod:7243
23274 #: ../src/guestfs-actions.pod:7277 ../src/guestfs-actions.pod:7780
23275 #: ../src/guestfs-actions.pod:7799
23276 msgid ""
23277 "This long-running command can generate progress notification messages so "
23278 "that the caller can display a progress bar or indicator.  To receive these "
23279 "messages, the caller must register a progress event callback.  See L<guestfs"
23280 "(3)/GUESTFS_EVENT_PROGRESS>."
23281 msgstr ""
23282
23283 #. type: textblock
23284 #: ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:4367
23285 #: ../src/guestfs-actions.pod:5752 ../src/guestfs-actions.pod:7478
23286 #: ../src/guestfs-actions.pod:7498 ../src/guestfs-actions.pod:7584
23287 msgid "(Added in 1.0.87)"
23288 msgstr ""
23289
23290 #. type: =head2
23291 #: ../src/guestfs-actions.pod:1195
23292 msgid "guestfs_cp"
23293 msgstr ""
23294
23295 #. type: verbatim
23296 #: ../src/guestfs-actions.pod:1197
23297 #, no-wrap
23298 msgid ""
23299 " int\n"
23300 " guestfs_cp (guestfs_h *g,\n"
23301 "             const char *src,\n"
23302 "             const char *dest);\n"
23303 "\n"
23304 msgstr ""
23305
23306 #. type: textblock
23307 #: ../src/guestfs-actions.pod:1207 ../src/guestfs-actions.pod:1221
23308 #: ../src/guestfs-actions.pod:1293 ../src/guestfs-actions.pod:1367
23309 #: ../src/guestfs-actions.pod:1481 ../src/guestfs-actions.pod:5121
23310 #: ../src/guestfs-actions.pod:5596
23311 msgid "(Added in 1.0.18)"
23312 msgstr ""
23313
23314 #. type: =head2
23315 #: ../src/guestfs-actions.pod:1209
23316 msgid "guestfs_cp_a"
23317 msgstr ""
23318
23319 #. type: verbatim
23320 #: ../src/guestfs-actions.pod:1211
23321 #, no-wrap
23322 msgid ""
23323 " int\n"
23324 " guestfs_cp_a (guestfs_h *g,\n"
23325 "               const char *src,\n"
23326 "               const char *dest);\n"
23327 "\n"
23328 msgstr ""
23329
23330 #. type: =head2
23331 #: ../src/guestfs-actions.pod:1223
23332 msgid "guestfs_dd"
23333 msgstr ""
23334
23335 #. type: verbatim
23336 #: ../src/guestfs-actions.pod:1225
23337 #, no-wrap
23338 msgid ""
23339 " int\n"
23340 " guestfs_dd (guestfs_h *g,\n"
23341 "             const char *src,\n"
23342 "             const char *dest);\n"
23343 "\n"
23344 msgstr ""
23345
23346 #. type: textblock
23347 #: ../src/guestfs-actions.pod:1235
23348 msgid ""
23349 "If the destination is a device, it must be as large or larger than the "
23350 "source file or device, otherwise the copy will fail.  This command cannot do "
23351 "partial copies (see C<guestfs_copy_size>)."
23352 msgstr ""
23353
23354 #. type: =head2
23355 #: ../src/guestfs-actions.pod:1243
23356 msgid "guestfs_df"
23357 msgstr ""
23358
23359 #. type: verbatim
23360 #: ../src/guestfs-actions.pod:1245
23361 #, no-wrap
23362 msgid ""
23363 " char *\n"
23364 " guestfs_df (guestfs_h *g);\n"
23365 "\n"
23366 msgstr ""
23367
23368 #. type: textblock
23369 #: ../src/guestfs-actions.pod:1250 ../src/guestfs-actions.pod:1267
23370 msgid ""
23371 "This command is mostly useful for interactive sessions.  It is I<not> "
23372 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
23373 "from programs."
23374 msgstr ""
23375
23376 #. type: textblock
23377 #: ../src/guestfs-actions.pod:1257 ../src/guestfs-actions.pod:1274
23378 #: ../src/guestfs-actions.pod:1392 ../src/guestfs-actions.pod:2366
23379 #: ../src/guestfs-actions.pod:2390 ../src/guestfs-actions.pod:2458
23380 #: ../src/guestfs-actions.pod:4477 ../src/guestfs-actions.pod:5021
23381 #: ../src/guestfs-actions.pod:6981 ../src/guestfs-actions.pod:7005
23382 #: ../src/guestfs-actions.pod:7624 ../src/guestfs-actions.pod:7637
23383 #: ../src/guestfs-actions.pod:7650
23384 msgid "(Added in 1.0.54)"
23385 msgstr ""
23386
23387 #. type: =head2
23388 #: ../src/guestfs-actions.pod:1259
23389 msgid "guestfs_df_h"
23390 msgstr ""
23391
23392 #. type: verbatim
23393 #: ../src/guestfs-actions.pod:1261
23394 #, no-wrap
23395 msgid ""
23396 " char *\n"
23397 " guestfs_df_h (guestfs_h *g);\n"
23398 "\n"
23399 msgstr ""
23400
23401 #. type: =head2
23402 #: ../src/guestfs-actions.pod:1276
23403 msgid "guestfs_dmesg"
23404 msgstr ""
23405
23406 #. type: verbatim
23407 #: ../src/guestfs-actions.pod:1278
23408 #, no-wrap
23409 msgid ""
23410 " char *\n"
23411 " guestfs_dmesg (guestfs_h *g);\n"
23412 "\n"
23413 msgstr ""
23414
23415 #. type: textblock
23416 #: ../src/guestfs-actions.pod:1285
23417 msgid ""
23418 "Another way to get the same information is to enable verbose messages with "
23419 "C<guestfs_set_verbose> or by setting the environment variable "
23420 "C<LIBGUESTFS_DEBUG=1> before running the program."
23421 msgstr ""
23422
23423 #. type: =head2
23424 #: ../src/guestfs-actions.pod:1295
23425 msgid "guestfs_download"
23426 msgstr ""
23427
23428 #. type: verbatim
23429 #: ../src/guestfs-actions.pod:1297
23430 #, no-wrap
23431 msgid ""
23432 " int\n"
23433 " guestfs_download (guestfs_h *g,\n"
23434 "                   const char *remotefilename,\n"
23435 "                   const char *filename);\n"
23436 "\n"
23437 msgstr ""
23438
23439 #. type: textblock
23440 #: ../src/guestfs-actions.pod:1307
23441 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
23442 msgstr ""
23443
23444 #. type: =head2
23445 #: ../src/guestfs-actions.pod:1318
23446 msgid "guestfs_download_offset"
23447 msgstr ""
23448
23449 #. type: verbatim
23450 #: ../src/guestfs-actions.pod:1320
23451 #, no-wrap
23452 msgid ""
23453 " int\n"
23454 " guestfs_download_offset (guestfs_h *g,\n"
23455 "                          const char *remotefilename,\n"
23456 "                          const char *filename,\n"
23457 "                          int64_t offset,\n"
23458 "                          int64_t size);\n"
23459 "\n"
23460 msgstr ""
23461
23462 #. type: textblock
23463 #: ../src/guestfs-actions.pod:1333
23464 msgid ""
23465 "Note that there is no limit on the amount of data that can be downloaded "
23466 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
23467 "full amount unless an error occurs."
23468 msgstr ""
23469
23470 #. type: textblock
23471 #: ../src/guestfs-actions.pod:1338
23472 msgid "See also C<guestfs_download>, C<guestfs_pread>."
23473 msgstr ""
23474
23475 #. type: textblock
23476 #: ../src/guestfs-actions.pod:1347 ../src/guestfs-actions.pod:7282
23477 msgid "(Added in 1.5.17)"
23478 msgstr ""
23479
23480 #. type: =head2
23481 #: ../src/guestfs-actions.pod:1349
23482 msgid "guestfs_drop_caches"
23483 msgstr ""
23484
23485 #. type: verbatim
23486 #: ../src/guestfs-actions.pod:1351
23487 #, no-wrap
23488 msgid ""
23489 " int\n"
23490 " guestfs_drop_caches (guestfs_h *g,\n"
23491 "                      int whattodrop);\n"
23492 "\n"
23493 msgstr ""
23494
23495 #. type: =head2
23496 #: ../src/guestfs-actions.pod:1369
23497 msgid "guestfs_du"
23498 msgstr ""
23499
23500 #. type: verbatim
23501 #: ../src/guestfs-actions.pod:1371
23502 #, no-wrap
23503 msgid ""
23504 " int64_t\n"
23505 " guestfs_du (guestfs_h *g,\n"
23506 "             const char *path);\n"
23507 "\n"
23508 msgstr ""
23509
23510 #. type: =head2
23511 #: ../src/guestfs-actions.pod:1394
23512 msgid "guestfs_e2fsck_f"
23513 msgstr ""
23514
23515 #. type: verbatim
23516 #: ../src/guestfs-actions.pod:1396
23517 #, no-wrap
23518 msgid ""
23519 " int\n"
23520 " guestfs_e2fsck_f (guestfs_h *g,\n"
23521 "                   const char *device);\n"
23522 "\n"
23523 msgstr ""
23524
23525 #. type: textblock
23526 #: ../src/guestfs-actions.pod:1404
23527 msgid ""
23528 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
23529 "Normally you should use C<guestfs_fsck>."
23530 msgstr ""
23531
23532 #. type: textblock
23533 #: ../src/guestfs-actions.pod:1409
23534 msgid "(Added in 1.0.29)"
23535 msgstr ""
23536
23537 #. type: =head2
23538 #: ../src/guestfs-actions.pod:1411
23539 msgid "guestfs_echo_daemon"
23540 msgstr ""
23541
23542 #. type: verbatim
23543 #: ../src/guestfs-actions.pod:1413
23544 #, no-wrap
23545 msgid ""
23546 " char *\n"
23547 " guestfs_echo_daemon (guestfs_h *g,\n"
23548 "                      char *const *words);\n"
23549 "\n"
23550 msgstr ""
23551
23552 #. type: textblock
23553 #: ../src/guestfs-actions.pod:1422
23554 msgid "See also C<guestfs_ping_daemon>."
23555 msgstr ""
23556
23557 #. type: textblock
23558 #: ../src/guestfs-actions.pod:1427 ../src/guestfs-actions.pod:2174
23559 #: ../src/guestfs-actions.pod:6453
23560 msgid "(Added in 1.0.69)"
23561 msgstr ""
23562
23563 #. type: =head2
23564 #: ../src/guestfs-actions.pod:1429
23565 msgid "guestfs_egrep"
23566 msgstr ""
23567
23568 #. type: verbatim
23569 #: ../src/guestfs-actions.pod:1431
23570 #, no-wrap
23571 msgid ""
23572 " char **\n"
23573 " guestfs_egrep (guestfs_h *g,\n"
23574 "                const char *regex,\n"
23575 "                const char *path);\n"
23576 "\n"
23577 msgstr ""
23578
23579 #. type: textblock
23580 #: ../src/guestfs-actions.pod:1446 ../src/guestfs-actions.pod:1465
23581 #: ../src/guestfs-actions.pod:1522 ../src/guestfs-actions.pod:1568
23582 #: ../src/guestfs-actions.pod:1587 ../src/guestfs-actions.pod:2304
23583 #: ../src/guestfs-actions.pod:2323 ../src/guestfs-actions.pod:2479
23584 #: ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2507
23585 #: ../src/guestfs-actions.pod:2553 ../src/guestfs-actions.pod:2575
23586 #: ../src/guestfs-actions.pod:2588 ../src/guestfs-actions.pod:3857
23587 #: ../src/guestfs-actions.pod:3871 ../src/guestfs-actions.pod:3884
23588 #: ../src/guestfs-actions.pod:3898 ../src/guestfs-actions.pod:4899
23589 #: ../src/guestfs-actions.pod:5930 ../src/guestfs-actions.pod:5979
23590 #: ../src/guestfs-actions.pod:6849 ../src/guestfs-actions.pod:6861
23591 #: ../src/guestfs-actions.pod:6874 ../src/guestfs-actions.pod:6887
23592 #: ../src/guestfs-actions.pod:6909 ../src/guestfs-actions.pod:6922
23593 #: ../src/guestfs-actions.pod:6935 ../src/guestfs-actions.pod:6948
23594 #: ../src/guestfs-actions.pod:7742 ../src/guestfs-actions.pod:7761
23595 #: ../src/guestfs-actions.pod:7847 ../src/guestfs-actions.pod:7866
23596 #: ../src/guestfs-actions.pod:7912 ../src/guestfs-actions.pod:7931
23597 msgid "(Added in 1.0.66)"
23598 msgstr ""
23599
23600 #. type: =head2
23601 #: ../src/guestfs-actions.pod:1448
23602 msgid "guestfs_egrepi"
23603 msgstr ""
23604
23605 #. type: verbatim
23606 #: ../src/guestfs-actions.pod:1450
23607 #, no-wrap
23608 msgid ""
23609 " char **\n"
23610 " guestfs_egrepi (guestfs_h *g,\n"
23611 "                 const char *regex,\n"
23612 "                 const char *path);\n"
23613 "\n"
23614 msgstr ""
23615
23616 #. type: =head2
23617 #: ../src/guestfs-actions.pod:1467
23618 msgid "guestfs_equal"
23619 msgstr ""
23620
23621 #. type: verbatim
23622 #: ../src/guestfs-actions.pod:1469
23623 #, no-wrap
23624 msgid ""
23625 " int\n"
23626 " guestfs_equal (guestfs_h *g,\n"
23627 "                const char *file1,\n"
23628 "                const char *file2);\n"
23629 "\n"
23630 msgstr ""
23631
23632 #. type: =head2
23633 #: ../src/guestfs-actions.pod:1483
23634 msgid "guestfs_exists"
23635 msgstr ""
23636
23637 #. type: verbatim
23638 #: ../src/guestfs-actions.pod:1485
23639 #, no-wrap
23640 msgid ""
23641 " int\n"
23642 " guestfs_exists (guestfs_h *g,\n"
23643 "                 const char *path);\n"
23644 "\n"
23645 msgstr ""
23646
23647 #. type: textblock
23648 #: ../src/guestfs-actions.pod:1492
23649 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
23650 msgstr ""
23651
23652 #. type: =head2
23653 #: ../src/guestfs-actions.pod:1498
23654 msgid "guestfs_fallocate"
23655 msgstr ""
23656
23657 #. type: verbatim
23658 #: ../src/guestfs-actions.pod:1500
23659 #, no-wrap
23660 msgid ""
23661 " int\n"
23662 " guestfs_fallocate (guestfs_h *g,\n"
23663 "                    const char *path,\n"
23664 "                    int len);\n"
23665 "\n"
23666 msgstr ""
23667
23668 #. type: textblock
23669 #: ../src/guestfs-actions.pod:1515
23670 msgid ""
23671 "This function is deprecated.  In new code, use the L</guestfs_fallocate64> "
23672 "call instead."
23673 msgstr ""
23674
23675 #. type: =head2
23676 #: ../src/guestfs-actions.pod:1524
23677 msgid "guestfs_fallocate64"
23678 msgstr ""
23679
23680 #. type: verbatim
23681 #: ../src/guestfs-actions.pod:1526
23682 #, no-wrap
23683 msgid ""
23684 " int\n"
23685 " guestfs_fallocate64 (guestfs_h *g,\n"
23686 "                      const char *path,\n"
23687 "                      int64_t len);\n"
23688 "\n"
23689 msgstr ""
23690
23691 #. type: textblock
23692 #: ../src/guestfs-actions.pod:1535
23693 msgid ""
23694 "Note that this call allocates disk blocks for the file.  To create a sparse "
23695 "file use C<guestfs_truncate_size> instead."
23696 msgstr ""
23697
23698 #. type: textblock
23699 #: ../src/guestfs-actions.pod:1538
23700 msgid ""
23701 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
23702 "oversight it only allowed 30 bit lengths to be specified, effectively "
23703 "limiting the maximum size of files created through that call to 1GB."
23704 msgstr ""
23705
23706 #. type: textblock
23707 #: ../src/guestfs-actions.pod:1549
23708 msgid "(Added in 1.3.17)"
23709 msgstr ""
23710
23711 #. type: =head2
23712 #: ../src/guestfs-actions.pod:1551
23713 msgid "guestfs_fgrep"
23714 msgstr ""
23715
23716 #. type: verbatim
23717 #: ../src/guestfs-actions.pod:1553
23718 #, no-wrap
23719 msgid ""
23720 " char **\n"
23721 " guestfs_fgrep (guestfs_h *g,\n"
23722 "                const char *pattern,\n"
23723 "                const char *path);\n"
23724 "\n"
23725 msgstr ""
23726
23727 #. type: =head2
23728 #: ../src/guestfs-actions.pod:1570
23729 msgid "guestfs_fgrepi"
23730 msgstr ""
23731
23732 #. type: verbatim
23733 #: ../src/guestfs-actions.pod:1572
23734 #, no-wrap
23735 msgid ""
23736 " char **\n"
23737 " guestfs_fgrepi (guestfs_h *g,\n"
23738 "                 const char *pattern,\n"
23739 "                 const char *path);\n"
23740 "\n"
23741 msgstr ""
23742
23743 #. type: =head2
23744 #: ../src/guestfs-actions.pod:1589
23745 msgid "guestfs_file"
23746 msgstr ""
23747
23748 #. type: verbatim
23749 #: ../src/guestfs-actions.pod:1591
23750 #, no-wrap
23751 msgid ""
23752 " char *\n"
23753 " guestfs_file (guestfs_h *g,\n"
23754 "               const char *path);\n"
23755 "\n"
23756 msgstr ""
23757
23758 #. type: textblock
23759 #: ../src/guestfs-actions.pod:1609
23760 msgid ""
23761 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
23762 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
23763 msgstr ""
23764
23765 #. type: =head2
23766 #: ../src/guestfs-actions.pod:1617
23767 msgid "guestfs_file_architecture"
23768 msgstr ""
23769
23770 #. type: verbatim
23771 #: ../src/guestfs-actions.pod:1619
23772 #, no-wrap
23773 msgid ""
23774 " char *\n"
23775 " guestfs_file_architecture (guestfs_h *g,\n"
23776 "                            const char *filename);\n"
23777 "\n"
23778 msgstr ""
23779
23780 #. type: textblock
23781 #: ../src/guestfs-actions.pod:1727 ../src/guestfs-actions.pod:1890
23782 #: ../src/guestfs-actions.pod:1907 ../src/guestfs-actions.pod:2608
23783 #: ../src/guestfs-actions.pod:2698 ../src/guestfs-actions.pod:2764
23784 #: ../src/guestfs-actions.pod:2951 ../src/guestfs-actions.pod:2969
23785 #: ../src/guestfs-actions.pod:3009 ../src/guestfs-actions.pod:3084
23786 #: ../src/guestfs-actions.pod:3177 ../src/guestfs-actions.pod:3414
23787 #: ../src/guestfs-actions.pod:3546
23788 msgid "(Added in 1.5.3)"
23789 msgstr ""
23790
23791 #. type: =head2
23792 #: ../src/guestfs-actions.pod:1729
23793 msgid "guestfs_filesize"
23794 msgstr ""
23795
23796 #. type: verbatim
23797 #: ../src/guestfs-actions.pod:1731
23798 #, no-wrap
23799 msgid ""
23800 " int64_t\n"
23801 " guestfs_filesize (guestfs_h *g,\n"
23802 "                   const char *file);\n"
23803 "\n"
23804 msgstr ""
23805
23806 #. type: textblock
23807 #: ../src/guestfs-actions.pod:1737
23808 msgid ""
23809 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
23810 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
23811 "devices, use C<guestfs_blockdev_getsize64>."
23812 msgstr ""
23813
23814 #. type: textblock
23815 #: ../src/guestfs-actions.pod:1743
23816 msgid "(Added in 1.0.82)"
23817 msgstr ""
23818
23819 #. type: =head2
23820 #: ../src/guestfs-actions.pod:1745
23821 msgid "guestfs_fill"
23822 msgstr ""
23823
23824 #. type: verbatim
23825 #: ../src/guestfs-actions.pod:1747
23826 #, no-wrap
23827 msgid ""
23828 " int\n"
23829 " guestfs_fill (guestfs_h *g,\n"
23830 "               int c,\n"
23831 "               int len,\n"
23832 "               const char *path);\n"
23833 "\n"
23834 msgstr ""
23835
23836 #. type: textblock
23837 #: ../src/guestfs-actions.pod:1757
23838 msgid ""
23839 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
23840 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
23841 "bytes use C<guestfs_fill_pattern>."
23842 msgstr ""
23843
23844 #. type: textblock
23845 #: ../src/guestfs-actions.pod:1769
23846 msgid "(Added in 1.0.79)"
23847 msgstr ""
23848
23849 #. type: =head2
23850 #: ../src/guestfs-actions.pod:1771
23851 msgid "guestfs_fill_pattern"
23852 msgstr ""
23853
23854 #. type: verbatim
23855 #: ../src/guestfs-actions.pod:1773
23856 #, no-wrap
23857 msgid ""
23858 " int\n"
23859 " guestfs_fill_pattern (guestfs_h *g,\n"
23860 "                       const char *pattern,\n"
23861 "                       int len,\n"
23862 "                       const char *path);\n"
23863 "\n"
23864 msgstr ""
23865
23866 #. type: textblock
23867 #: ../src/guestfs-actions.pod:1779
23868 msgid ""
23869 "This function is like C<guestfs_fill> except that it creates a new file of "
23870 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
23871 "pattern is truncated if necessary to ensure the length of the file is "
23872 "exactly C<len> bytes."
23873 msgstr ""
23874
23875 #. type: textblock
23876 #: ../src/guestfs-actions.pod:1791
23877 msgid "(Added in 1.3.12)"
23878 msgstr ""
23879
23880 #. type: =head2
23881 #: ../src/guestfs-actions.pod:1793
23882 msgid "guestfs_find"
23883 msgstr ""
23884
23885 #. type: verbatim
23886 #: ../src/guestfs-actions.pod:1795
23887 #, no-wrap
23888 msgid ""
23889 " char **\n"
23890 " guestfs_find (guestfs_h *g,\n"
23891 "               const char *directory);\n"
23892 "\n"
23893 msgstr ""
23894
23895 #. type: textblock
23896 #: ../src/guestfs-actions.pod:1811
23897 msgid ""
23898 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
23899 msgstr ""
23900
23901 #. type: textblock
23902 #: ../src/guestfs-actions.pod:1824
23903 msgid "See also C<guestfs_find0>."
23904 msgstr ""
23905
23906 #. type: textblock
23907 #: ../src/guestfs-actions.pod:1833 ../src/guestfs-actions.pod:4304
23908 #: ../src/guestfs-actions.pod:6014
23909 msgid "(Added in 1.0.27)"
23910 msgstr ""
23911
23912 #. type: =head2
23913 #: ../src/guestfs-actions.pod:1835
23914 msgid "guestfs_find0"
23915 msgstr ""
23916
23917 #. type: verbatim
23918 #: ../src/guestfs-actions.pod:1837
23919 #, no-wrap
23920 msgid ""
23921 " int\n"
23922 " guestfs_find0 (guestfs_h *g,\n"
23923 "                const char *directory,\n"
23924 "                const char *files);\n"
23925 "\n"
23926 msgstr ""
23927
23928 #. type: textblock
23929 #: ../src/guestfs-actions.pod:1846
23930 msgid ""
23931 "This command works the same way as C<guestfs_find> with the following "
23932 "exceptions:"
23933 msgstr ""
23934
23935 #. type: textblock
23936 #: ../src/guestfs-actions.pod:1873
23937 msgid "(Added in 1.0.74)"
23938 msgstr ""
23939
23940 #. type: =head2
23941 #: ../src/guestfs-actions.pod:1875
23942 msgid "guestfs_findfs_label"
23943 msgstr ""
23944
23945 #. type: verbatim
23946 #: ../src/guestfs-actions.pod:1877
23947 #, no-wrap
23948 msgid ""
23949 " char *\n"
23950 " guestfs_findfs_label (guestfs_h *g,\n"
23951 "                       const char *label);\n"
23952 "\n"
23953 msgstr ""
23954
23955 #. type: textblock
23956 #: ../src/guestfs-actions.pod:1885
23957 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
23958 msgstr ""
23959
23960 #. type: =head2
23961 #: ../src/guestfs-actions.pod:1892
23962 msgid "guestfs_findfs_uuid"
23963 msgstr ""
23964
23965 #. type: verbatim
23966 #: ../src/guestfs-actions.pod:1894
23967 #, no-wrap
23968 msgid ""
23969 " char *\n"
23970 " guestfs_findfs_uuid (guestfs_h *g,\n"
23971 "                      const char *uuid);\n"
23972 "\n"
23973 msgstr ""
23974
23975 #. type: textblock
23976 #: ../src/guestfs-actions.pod:1902
23977 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
23978 msgstr ""
23979
23980 #. type: =head2
23981 #: ../src/guestfs-actions.pod:1909
23982 msgid "guestfs_fsck"
23983 msgstr ""
23984
23985 #. type: verbatim
23986 #: ../src/guestfs-actions.pod:1911
23987 #, no-wrap
23988 msgid ""
23989 " int\n"
23990 " guestfs_fsck (guestfs_h *g,\n"
23991 "               const char *fstype,\n"
23992 "               const char *device);\n"
23993 "\n"
23994 msgstr ""
23995
23996 #. type: textblock
23997 #: ../src/guestfs-actions.pod:1946 ../src/guestfs-actions.pod:7785
23998 msgid "(Added in 1.0.16)"
23999 msgstr ""
24000
24001 #. type: =head2
24002 #: ../src/guestfs-actions.pod:1948
24003 msgid "guestfs_get_append"
24004 msgstr ""
24005
24006 #. type: verbatim
24007 #: ../src/guestfs-actions.pod:1950
24008 #, no-wrap
24009 msgid ""
24010 " const char *\n"
24011 " guestfs_get_append (guestfs_h *g);\n"
24012 "\n"
24013 msgstr ""
24014
24015 #. type: textblock
24016 #: ../src/guestfs-actions.pod:1958
24017 msgid ""
24018 "This function returns a string which may be NULL.  There is no way to return "
24019 "an error from this function.  The string is owned by the guest handle and "
24020 "must I<not> be freed."
24021 msgstr ""
24022
24023 #. type: textblock
24024 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:5692
24025 #: ../src/guestfs-actions.pod:6174 ../src/guestfs-actions.pod:6616
24026 #: ../src/guestfs-actions.pod:6635 ../src/guestfs-actions.pod:6651
24027 #: ../src/guestfs-actions.pod:6675 ../src/guestfs-actions.pod:7429
24028 #: ../src/guestfs-actions.pod:7444 ../src/guestfs-actions.pod:7828
24029 msgid "(Added in 1.0.26)"
24030 msgstr ""
24031
24032 #. type: =head2
24033 #: ../src/guestfs-actions.pod:1964
24034 msgid "guestfs_get_attach_method"
24035 msgstr ""
24036
24037 #. type: verbatim
24038 #: ../src/guestfs-actions.pod:1966
24039 #, no-wrap
24040 msgid ""
24041 " char *\n"
24042 " guestfs_get_attach_method (guestfs_h *g);\n"
24043 "\n"
24044 msgstr ""
24045
24046 #. type: textblock
24047 #: ../src/guestfs-actions.pod:1969
24048 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
24049 msgstr ""
24050
24051 #. type: textblock
24052 #: ../src/guestfs-actions.pod:1974 ../src/guestfs-actions.pod:6204
24053 msgid "(Added in 1.9.8)"
24054 msgstr ""
24055
24056 #. type: =head2
24057 #: ../src/guestfs-actions.pod:1976
24058 msgid "guestfs_get_autosync"
24059 msgstr ""
24060
24061 #. type: verbatim
24062 #: ../src/guestfs-actions.pod:1978
24063 #, no-wrap
24064 msgid ""
24065 " int\n"
24066 " guestfs_get_autosync (guestfs_h *g);\n"
24067 "\n"
24068 msgstr ""
24069
24070 #. type: =head2
24071 #: ../src/guestfs-actions.pod:1987
24072 msgid "guestfs_get_direct"
24073 msgstr ""
24074
24075 #. type: verbatim
24076 #: ../src/guestfs-actions.pod:1989
24077 #, no-wrap
24078 msgid ""
24079 " int\n"
24080 " guestfs_get_direct (guestfs_h *g);\n"
24081 "\n"
24082 msgstr ""
24083
24084 #. type: textblock
24085 #: ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:6245
24086 msgid "(Added in 1.0.72)"
24087 msgstr ""
24088
24089 #. type: =head2
24090 #: ../src/guestfs-actions.pod:1998
24091 msgid "guestfs_get_e2label"
24092 msgstr ""
24093
24094 #. type: verbatim
24095 #: ../src/guestfs-actions.pod:2000
24096 #, no-wrap
24097 msgid ""
24098 " char *\n"
24099 " guestfs_get_e2label (guestfs_h *g,\n"
24100 "                      const char *device);\n"
24101 "\n"
24102 msgstr ""
24103
24104 #. type: textblock
24105 #: ../src/guestfs-actions.pod:2010
24106 msgid ""
24107 "This function is deprecated.  In new code, use the L</guestfs_vfs_label> "
24108 "call instead."
24109 msgstr ""
24110
24111 #. type: textblock
24112 #: ../src/guestfs-actions.pod:2017 ../src/guestfs-actions.pod:2038
24113 #: ../src/guestfs-actions.pod:6263 ../src/guestfs-actions.pod:6282
24114 msgid "(Added in 1.0.15)"
24115 msgstr ""
24116
24117 #. type: =head2
24118 #: ../src/guestfs-actions.pod:2019
24119 msgid "guestfs_get_e2uuid"
24120 msgstr ""
24121
24122 #. type: verbatim
24123 #: ../src/guestfs-actions.pod:2021
24124 #, no-wrap
24125 msgid ""
24126 " char *\n"
24127 " guestfs_get_e2uuid (guestfs_h *g,\n"
24128 "                     const char *device);\n"
24129 "\n"
24130 msgstr ""
24131
24132 #. type: textblock
24133 #: ../src/guestfs-actions.pod:2031
24134 msgid ""
24135 "This function is deprecated.  In new code, use the L</guestfs_vfs_uuid> call "
24136 "instead."
24137 msgstr ""
24138
24139 #. type: =head2
24140 #: ../src/guestfs-actions.pod:2040
24141 msgid "guestfs_get_memsize"
24142 msgstr ""
24143
24144 #. type: verbatim
24145 #: ../src/guestfs-actions.pod:2042
24146 #, no-wrap
24147 msgid ""
24148 " int\n"
24149 " guestfs_get_memsize (guestfs_h *g);\n"
24150 "\n"
24151 msgstr ""
24152
24153 #. type: textblock
24154 #: ../src/guestfs-actions.pod:2048
24155 msgid ""
24156 "If C<guestfs_set_memsize> was not called on this handle, and if "
24157 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
24158 "value for memsize."
24159 msgstr ""
24160
24161 #. type: textblock
24162 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:4595
24163 #: ../src/guestfs-actions.pod:4804 ../src/guestfs-actions.pod:4823
24164 #: ../src/guestfs-actions.pod:4842 ../src/guestfs-actions.pod:4854
24165 #: ../src/guestfs-actions.pod:4871 ../src/guestfs-actions.pod:4884
24166 #: ../src/guestfs-actions.pod:5917 ../src/guestfs-actions.pod:6303
24167 #: ../src/guestfs-actions.pod:6583 ../src/guestfs-actions.pod:7198
24168 msgid "(Added in 1.0.55)"
24169 msgstr ""
24170
24171 #. type: =head2
24172 #: ../src/guestfs-actions.pod:2059
24173 msgid "guestfs_get_network"
24174 msgstr ""
24175
24176 #. type: verbatim
24177 #: ../src/guestfs-actions.pod:2061
24178 #, no-wrap
24179 msgid ""
24180 " int\n"
24181 " guestfs_get_network (guestfs_h *g);\n"
24182 "\n"
24183 msgstr ""
24184
24185 #. type: textblock
24186 #: ../src/guestfs-actions.pod:2068 ../src/guestfs-actions.pod:6322
24187 msgid "(Added in 1.5.4)"
24188 msgstr ""
24189
24190 #. type: =head2
24191 #: ../src/guestfs-actions.pod:2070
24192 msgid "guestfs_get_path"
24193 msgstr ""
24194
24195 #. type: verbatim
24196 #: ../src/guestfs-actions.pod:2072
24197 #, no-wrap
24198 msgid ""
24199 " const char *\n"
24200 " guestfs_get_path (guestfs_h *g);\n"
24201 "\n"
24202 msgstr ""
24203
24204 #. type: textblock
24205 #: ../src/guestfs-actions.pod:2080 ../src/guestfs-actions.pod:2120
24206 msgid ""
24207 "This function returns a string, or NULL on error.  The string is owned by "
24208 "the guest handle and must I<not> be freed."
24209 msgstr ""
24210
24211 #. type: =head2
24212 #: ../src/guestfs-actions.pod:2085
24213 msgid "guestfs_get_pgroup"
24214 msgstr ""
24215
24216 #. type: verbatim
24217 #: ../src/guestfs-actions.pod:2087
24218 #, no-wrap
24219 msgid ""
24220 " int\n"
24221 " guestfs_get_pgroup (guestfs_h *g);\n"
24222 "\n"
24223 msgstr ""
24224
24225 #. type: textblock
24226 #: ../src/guestfs-actions.pod:2094 ../src/guestfs-actions.pod:6358
24227 #: ../src/guestfs-actions.pod:7690
24228 msgid "(Added in 1.11.18)"
24229 msgstr ""
24230
24231 #. type: =head2
24232 #: ../src/guestfs-actions.pod:2096
24233 msgid "guestfs_get_pid"
24234 msgstr ""
24235
24236 #. type: verbatim
24237 #: ../src/guestfs-actions.pod:2098
24238 #, no-wrap
24239 msgid ""
24240 " int\n"
24241 " guestfs_get_pid (guestfs_h *g);\n"
24242 "\n"
24243 msgstr ""
24244
24245 #. type: textblock
24246 #: ../src/guestfs-actions.pod:2108
24247 msgid "(Added in 1.0.56)"
24248 msgstr ""
24249
24250 #. type: =head2
24251 #: ../src/guestfs-actions.pod:2110
24252 msgid "guestfs_get_qemu"
24253 msgstr ""
24254
24255 #. type: verbatim
24256 #: ../src/guestfs-actions.pod:2112
24257 #, no-wrap
24258 msgid ""
24259 " const char *\n"
24260 " guestfs_get_qemu (guestfs_h *g);\n"
24261 "\n"
24262 msgstr ""
24263
24264 #. type: textblock
24265 #: ../src/guestfs-actions.pod:2123 ../src/guestfs-actions.pod:6386
24266 msgid "(Added in 1.0.6)"
24267 msgstr ""
24268
24269 #. type: =head2
24270 #: ../src/guestfs-actions.pod:2125
24271 msgid "guestfs_get_recovery_proc"
24272 msgstr ""
24273
24274 #. type: verbatim
24275 #: ../src/guestfs-actions.pod:2127
24276 #, no-wrap
24277 msgid ""
24278 " int\n"
24279 " guestfs_get_recovery_proc (guestfs_h *g);\n"
24280 "\n"
24281 msgstr ""
24282
24283 #. type: textblock
24284 #: ../src/guestfs-actions.pod:2134 ../src/guestfs-actions.pod:3668
24285 #: ../src/guestfs-actions.pod:3999 ../src/guestfs-actions.pod:4402
24286 #: ../src/guestfs-actions.pod:4434 ../src/guestfs-actions.pod:5622
24287 #: ../src/guestfs-actions.pod:5965 ../src/guestfs-actions.pod:6410
24288 #: ../src/guestfs-actions.pod:7101 ../src/guestfs-actions.pod:7121
24289 #: ../src/guestfs-actions.pod:7313
24290 msgid "(Added in 1.0.77)"
24291 msgstr ""
24292
24293 #. type: =head2
24294 #: ../src/guestfs-actions.pod:2136
24295 msgid "guestfs_get_selinux"
24296 msgstr ""
24297
24298 #. type: verbatim
24299 #: ../src/guestfs-actions.pod:2138
24300 #, no-wrap
24301 msgid ""
24302 " int\n"
24303 " guestfs_get_selinux (guestfs_h *g);\n"
24304 "\n"
24305 msgstr ""
24306
24307 #. type: textblock
24308 #: ../src/guestfs-actions.pod:2141
24309 msgid ""
24310 "This returns the current setting of the selinux flag which is passed to the "
24311 "appliance at boot time.  See C<guestfs_set_selinux>."
24312 msgstr ""
24313
24314 #. type: textblock
24315 #: ../src/guestfs-actions.pod:2149 ../src/guestfs-actions.pod:2212
24316 #: ../src/guestfs-actions.pod:6429 ../src/guestfs-actions.pod:6487
24317 msgid "(Added in 1.0.67)"
24318 msgstr ""
24319
24320 #. type: =head2
24321 #: ../src/guestfs-actions.pod:2151
24322 msgid "guestfs_get_state"
24323 msgstr ""
24324
24325 #. type: verbatim
24326 #: ../src/guestfs-actions.pod:2153
24327 #, no-wrap
24328 msgid ""
24329 " int\n"
24330 " guestfs_get_state (guestfs_h *g);\n"
24331 "\n"
24332 msgstr ""
24333
24334 #. type: =head2
24335 #: ../src/guestfs-actions.pod:2165
24336 msgid "guestfs_get_trace"
24337 msgstr ""
24338
24339 #. type: verbatim
24340 #: ../src/guestfs-actions.pod:2167
24341 #, no-wrap
24342 msgid ""
24343 " int\n"
24344 " guestfs_get_trace (guestfs_h *g);\n"
24345 "\n"
24346 msgstr ""
24347
24348 #. type: =head2
24349 #: ../src/guestfs-actions.pod:2176
24350 msgid "guestfs_get_umask"
24351 msgstr ""
24352
24353 #. type: verbatim
24354 #: ../src/guestfs-actions.pod:2178
24355 #, no-wrap
24356 msgid ""
24357 " int\n"
24358 " guestfs_get_umask (guestfs_h *g);\n"
24359 "\n"
24360 msgstr ""
24361
24362 #. type: textblock
24363 #: ../src/guestfs-actions.pod:2181
24364 msgid ""
24365 "Return the current umask.  By default the umask is C<022> unless it has been "
24366 "set by calling C<guestfs_umask>."
24367 msgstr ""
24368
24369 #. type: =head2
24370 #: ../src/guestfs-actions.pod:2188
24371 msgid "guestfs_get_verbose"
24372 msgstr ""
24373
24374 #. type: verbatim
24375 #: ../src/guestfs-actions.pod:2190
24376 #, no-wrap
24377 msgid ""
24378 " int\n"
24379 " guestfs_get_verbose (guestfs_h *g);\n"
24380 "\n"
24381 msgstr ""
24382
24383 #. type: =head2
24384 #: ../src/guestfs-actions.pod:2199
24385 msgid "guestfs_getcon"
24386 msgstr ""
24387
24388 #. type: verbatim
24389 #: ../src/guestfs-actions.pod:2201
24390 #, no-wrap
24391 msgid ""
24392 " char *\n"
24393 " guestfs_getcon (guestfs_h *g);\n"
24394 "\n"
24395 msgstr ""
24396
24397 #. type: textblock
24398 #: ../src/guestfs-actions.pod:2206
24399 msgid ""
24400 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
24401 msgstr ""
24402
24403 #. type: =head2
24404 #: ../src/guestfs-actions.pod:2214
24405 msgid "guestfs_getxattr"
24406 msgstr ""
24407
24408 #. type: verbatim
24409 #: ../src/guestfs-actions.pod:2216
24410 #, no-wrap
24411 msgid ""
24412 " char *\n"
24413 " guestfs_getxattr (guestfs_h *g,\n"
24414 "                   const char *path,\n"
24415 "                   const char *name,\n"
24416 "                   size_t *size_r);\n"
24417 "\n"
24418 msgstr ""
24419
24420 #. type: textblock
24421 #: ../src/guestfs-actions.pod:2222
24422 msgid ""
24423 "Get a single extended attribute from file C<path> named C<name>.  This call "
24424 "follows symlinks.  If you want to lookup an extended attribute for the "
24425 "symlink itself, use C<guestfs_lgetxattr>."
24426 msgstr ""
24427
24428 #. type: textblock
24429 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:3682
24430 msgid ""
24431 "Normally it is better to get all extended attributes from a file in one go "
24432 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
24433 "implementations are buggy and do not provide a way to list out attributes.  "
24434 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
24435 "extended attributes you want in advance and call this function."
24436 msgstr ""
24437
24438 #. type: textblock
24439 #: ../src/guestfs-actions.pod:2236
24440 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
24441 msgstr ""
24442
24443 #. type: textblock
24444 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2429
24445 #: ../src/guestfs-actions.pod:2899 ../src/guestfs-actions.pod:3694
24446 #: ../src/guestfs-actions.pod:5615 ../src/guestfs-actions.pod:5641
24447 #: ../src/guestfs-actions.pod:5822
24448 msgid ""
24449 "This function returns a buffer, or NULL on error.  The size of the returned "
24450 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
24451 "after use>."
24452 msgstr ""
24453
24454 #. type: textblock
24455 #: ../src/guestfs-actions.pod:2242 ../src/guestfs-actions.pod:3698
24456 msgid "(Added in 1.7.24)"
24457 msgstr ""
24458
24459 #. type: =head2
24460 #: ../src/guestfs-actions.pod:2244
24461 msgid "guestfs_getxattrs"
24462 msgstr ""
24463
24464 #. type: verbatim
24465 #: ../src/guestfs-actions.pod:2246
24466 #, no-wrap
24467 msgid ""
24468 " struct guestfs_xattr_list *\n"
24469 " guestfs_getxattrs (guestfs_h *g,\n"
24470 "                    const char *path);\n"
24471 "\n"
24472 msgstr ""
24473
24474 #. type: textblock
24475 #: ../src/guestfs-actions.pod:2256
24476 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
24477 msgstr ""
24478
24479 #. type: textblock
24480 #: ../src/guestfs-actions.pod:2258 ../src/guestfs-actions.pod:3710
24481 #: ../src/guestfs-actions.pod:4398
24482 msgid ""
24483 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
24484 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
24485 msgstr ""
24486
24487 #. type: textblock
24488 #: ../src/guestfs-actions.pod:2262 ../src/guestfs-actions.pod:3714
24489 #: ../src/guestfs-actions.pod:3913 ../src/guestfs-actions.pod:3949
24490 #: ../src/guestfs-actions.pod:5995 ../src/guestfs-actions.pod:6506
24491 #: ../src/guestfs-actions.pod:7893
24492 msgid "(Added in 1.0.59)"
24493 msgstr ""
24494
24495 #. type: =head2
24496 #: ../src/guestfs-actions.pod:2264
24497 msgid "guestfs_glob_expand"
24498 msgstr ""
24499
24500 #. type: verbatim
24501 #: ../src/guestfs-actions.pod:2266
24502 #, no-wrap
24503 msgid ""
24504 " char **\n"
24505 " guestfs_glob_expand (guestfs_h *g,\n"
24506 "                      const char *pattern);\n"
24507 "\n"
24508 msgstr ""
24509
24510 #. type: textblock
24511 #: ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:6699
24512 #: ../src/guestfs-actions.pod:6716
24513 msgid "(Added in 1.0.50)"
24514 msgstr ""
24515
24516 #. type: =head2
24517 #: ../src/guestfs-actions.pod:2287
24518 msgid "guestfs_grep"
24519 msgstr ""
24520
24521 #. type: verbatim
24522 #: ../src/guestfs-actions.pod:2289
24523 #, no-wrap
24524 msgid ""
24525 " char **\n"
24526 " guestfs_grep (guestfs_h *g,\n"
24527 "               const char *regex,\n"
24528 "               const char *path);\n"
24529 "\n"
24530 msgstr ""
24531
24532 #. type: =head2
24533 #: ../src/guestfs-actions.pod:2306
24534 msgid "guestfs_grepi"
24535 msgstr ""
24536
24537 #. type: verbatim
24538 #: ../src/guestfs-actions.pod:2308
24539 #, no-wrap
24540 msgid ""
24541 " char **\n"
24542 " guestfs_grepi (guestfs_h *g,\n"
24543 "                const char *regex,\n"
24544 "                const char *path);\n"
24545 "\n"
24546 msgstr ""
24547
24548 #. type: =head2
24549 #: ../src/guestfs-actions.pod:2325
24550 msgid "guestfs_grub_install"
24551 msgstr ""
24552
24553 #. type: verbatim
24554 #: ../src/guestfs-actions.pod:2327
24555 #, no-wrap
24556 msgid ""
24557 " int\n"
24558 " guestfs_grub_install (guestfs_h *g,\n"
24559 "                       const char *root,\n"
24560 "                       const char *device);\n"
24561 "\n"
24562 msgstr ""
24563
24564 #. type: textblock
24565 #: ../src/guestfs-actions.pod:2348
24566 msgid "(Added in 1.0.17)"
24567 msgstr ""
24568
24569 #. type: =head2
24570 #: ../src/guestfs-actions.pod:2350
24571 msgid "guestfs_head"
24572 msgstr ""
24573
24574 #. type: verbatim
24575 #: ../src/guestfs-actions.pod:2352
24576 #, no-wrap
24577 msgid ""
24578 " char **\n"
24579 " guestfs_head (guestfs_h *g,\n"
24580 "               const char *path);\n"
24581 "\n"
24582 msgstr ""
24583
24584 #. type: =head2
24585 #: ../src/guestfs-actions.pod:2368
24586 msgid "guestfs_head_n"
24587 msgstr ""
24588
24589 #. type: verbatim
24590 #: ../src/guestfs-actions.pod:2370
24591 #, no-wrap
24592 msgid ""
24593 " char **\n"
24594 " guestfs_head_n (guestfs_h *g,\n"
24595 "                 int nrlines,\n"
24596 "                 const char *path);\n"
24597 "\n"
24598 msgstr ""
24599
24600 #. type: =head2
24601 #: ../src/guestfs-actions.pod:2392
24602 msgid "guestfs_hexdump"
24603 msgstr ""
24604
24605 #. type: verbatim
24606 #: ../src/guestfs-actions.pod:2394
24607 #, no-wrap
24608 msgid ""
24609 " char *\n"
24610 " guestfs_hexdump (guestfs_h *g,\n"
24611 "                  const char *path);\n"
24612 "\n"
24613 msgstr ""
24614
24615 #. type: textblock
24616 #: ../src/guestfs-actions.pod:2407 ../src/guestfs-actions.pod:6780
24617 #: ../src/guestfs-actions.pod:6835
24618 msgid "(Added in 1.0.22)"
24619 msgstr ""
24620
24621 #. type: =head2
24622 #: ../src/guestfs-actions.pod:2409
24623 msgid "guestfs_initrd_cat"
24624 msgstr ""
24625
24626 #. type: verbatim
24627 #: ../src/guestfs-actions.pod:2411
24628 #, no-wrap
24629 msgid ""
24630 " char *\n"
24631 " guestfs_initrd_cat (guestfs_h *g,\n"
24632 "                     const char *initrdpath,\n"
24633 "                     const char *filename,\n"
24634 "                     size_t *size_r);\n"
24635 "\n"
24636 msgstr ""
24637
24638 #. type: textblock
24639 #: ../src/guestfs-actions.pod:2427
24640 msgid "See also C<guestfs_initrd_list>."
24641 msgstr ""
24642
24643 #. type: =head2
24644 #: ../src/guestfs-actions.pod:2438
24645 msgid "guestfs_initrd_list"
24646 msgstr ""
24647
24648 #. type: verbatim
24649 #: ../src/guestfs-actions.pod:2440
24650 #, no-wrap
24651 msgid ""
24652 " char **\n"
24653 " guestfs_initrd_list (guestfs_h *g,\n"
24654 "                      const char *path);\n"
24655 "\n"
24656 msgstr ""
24657
24658 #. type: =head2
24659 #: ../src/guestfs-actions.pod:2460
24660 msgid "guestfs_inotify_add_watch"
24661 msgstr ""
24662
24663 #. type: verbatim
24664 #: ../src/guestfs-actions.pod:2462
24665 #, no-wrap
24666 msgid ""
24667 " int64_t\n"
24668 " guestfs_inotify_add_watch (guestfs_h *g,\n"
24669 "                            const char *path,\n"
24670 "                            int mask);\n"
24671 "\n"
24672 msgstr ""
24673
24674 #. type: =head2
24675 #: ../src/guestfs-actions.pod:2481
24676 msgid "guestfs_inotify_close"
24677 msgstr ""
24678
24679 #. type: verbatim
24680 #: ../src/guestfs-actions.pod:2483
24681 #, no-wrap
24682 msgid ""
24683 " int\n"
24684 " guestfs_inotify_close (guestfs_h *g);\n"
24685 "\n"
24686 msgstr ""
24687
24688 #. type: =head2
24689 #: ../src/guestfs-actions.pod:2494
24690 msgid "guestfs_inotify_files"
24691 msgstr ""
24692
24693 #. type: verbatim
24694 #: ../src/guestfs-actions.pod:2496
24695 #, no-wrap
24696 msgid ""
24697 " char **\n"
24698 " guestfs_inotify_files (guestfs_h *g);\n"
24699 "\n"
24700 msgstr ""
24701
24702 #. type: textblock
24703 #: ../src/guestfs-actions.pod:2499
24704 msgid ""
24705 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
24706 "returns a list of pathnames of objects that were touched.  The returned "
24707 "pathnames are sorted and deduplicated."
24708 msgstr ""
24709
24710 #. type: =head2
24711 #: ../src/guestfs-actions.pod:2509
24712 msgid "guestfs_inotify_init"
24713 msgstr ""
24714
24715 #. type: verbatim
24716 #: ../src/guestfs-actions.pod:2511
24717 #, no-wrap
24718 msgid ""
24719 " int\n"
24720 " guestfs_inotify_init (guestfs_h *g,\n"
24721 "                       int maxevents);\n"
24722 "\n"
24723 msgstr ""
24724
24725 #. type: textblock
24726 #: ../src/guestfs-actions.pod:2519
24727 msgid ""
24728 "C<maxevents> is the maximum number of events which will be queued up between "
24729 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
24730 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
24731 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
24732 "throws away events, but records the fact that it threw them away by setting "
24733 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
24734 "C<guestfs_inotify_read>)."
24735 msgstr ""
24736
24737 #. type: textblock
24738 #: ../src/guestfs-actions.pod:2529
24739 msgid ""
24740 "Before any events are generated, you have to add some watches to the "
24741 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
24742 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
24743 msgstr ""
24744
24745 #. type: textblock
24746 #: ../src/guestfs-actions.pod:2535
24747 msgid ""
24748 "Queued up events should be read periodically by calling "
24749 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
24750 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
24751 "often enough then you risk the internal queue overflowing."
24752 msgstr ""
24753
24754 #. type: textblock
24755 #: ../src/guestfs-actions.pod:2542
24756 msgid ""
24757 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
24758 "This also removes any watches automatically."
24759 msgstr ""
24760
24761 #. type: =head2
24762 #: ../src/guestfs-actions.pod:2555
24763 msgid "guestfs_inotify_read"
24764 msgstr ""
24765
24766 #. type: verbatim
24767 #: ../src/guestfs-actions.pod:2557
24768 #, no-wrap
24769 msgid ""
24770 " struct guestfs_inotify_event_list *\n"
24771 " guestfs_inotify_read (guestfs_h *g);\n"
24772 "\n"
24773 msgstr ""
24774
24775 #. type: textblock
24776 #: ../src/guestfs-actions.pod:2571
24777 msgid ""
24778 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
24779 "there was an error.  I<The caller must call "
24780 "C<guestfs_free_inotify_event_list> after use>."
24781 msgstr ""
24782
24783 #. type: =head2
24784 #: ../src/guestfs-actions.pod:2577
24785 msgid "guestfs_inotify_rm_watch"
24786 msgstr ""
24787
24788 #. type: verbatim
24789 #: ../src/guestfs-actions.pod:2579
24790 #, no-wrap
24791 msgid ""
24792 " int\n"
24793 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
24794 "                           int wd);\n"
24795 "\n"
24796 msgstr ""
24797
24798 #. type: textblock
24799 #: ../src/guestfs-actions.pod:2583
24800 msgid ""
24801 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
24802 msgstr ""
24803
24804 #. type: =head2
24805 #: ../src/guestfs-actions.pod:2590
24806 msgid "guestfs_inspect_get_arch"
24807 msgstr ""
24808
24809 #. type: verbatim
24810 #: ../src/guestfs-actions.pod:2592
24811 #, no-wrap
24812 msgid ""
24813 " char *\n"
24814 " guestfs_inspect_get_arch (guestfs_h *g,\n"
24815 "                           const char *root);\n"
24816 "\n"
24817 msgstr ""
24818
24819 #. type: textblock
24820 #: ../src/guestfs-actions.pod:2596
24821 msgid ""
24822 "This returns the architecture of the inspected operating system.  The "
24823 "possible return values are listed under C<guestfs_file_architecture>."
24824 msgstr ""
24825
24826 #. type: =head2
24827 #: ../src/guestfs-actions.pod:2610
24828 msgid "guestfs_inspect_get_distro"
24829 msgstr ""
24830
24831 #. type: verbatim
24832 #: ../src/guestfs-actions.pod:2612
24833 #, no-wrap
24834 msgid ""
24835 " char *\n"
24836 " guestfs_inspect_get_distro (guestfs_h *g,\n"
24837 "                             const char *root);\n"
24838 "\n"
24839 msgstr ""
24840
24841 #. type: =head2
24842 #: ../src/guestfs-actions.pod:2700
24843 msgid "guestfs_inspect_get_drive_mappings"
24844 msgstr ""
24845
24846 #. type: verbatim
24847 #: ../src/guestfs-actions.pod:2702
24848 #, no-wrap
24849 msgid ""
24850 " char **\n"
24851 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
24852 "                                     const char *root);\n"
24853 "\n"
24854 msgstr ""
24855
24856 #. type: textblock
24857 #: ../src/guestfs-actions.pod:2731
24858 msgid ""
24859 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24860 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
24861 msgstr ""
24862
24863 #. type: textblock
24864 #: ../src/guestfs-actions.pod:2735 ../src/guestfs-actions.pod:3003
24865 #: ../src/guestfs-actions.pod:3801 ../src/guestfs-actions.pod:5083
24866 #: ../src/guestfs-actions.pod:7137
24867 msgid ""
24868 "This function returns a NULL-terminated array of strings, or NULL if there "
24869 "was an error.  The array of strings will always have length C<2n+1>, where "
24870 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
24871 "caller must free the strings and the array after use>."
24872 msgstr ""
24873
24874 #. type: textblock
24875 #: ../src/guestfs-actions.pod:2741 ../src/guestfs-actions.pod:3197
24876 msgid "(Added in 1.9.17)"
24877 msgstr ""
24878
24879 #. type: =head2
24880 #: ../src/guestfs-actions.pod:2743
24881 msgid "guestfs_inspect_get_filesystems"
24882 msgstr ""
24883
24884 #. type: verbatim
24885 #: ../src/guestfs-actions.pod:2745
24886 #, no-wrap
24887 msgid ""
24888 " char **\n"
24889 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
24890 "                                  const char *root);\n"
24891 "\n"
24892 msgstr ""
24893
24894 #. type: textblock
24895 #: ../src/guestfs-actions.pod:2757
24896 msgid ""
24897 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24898 "C<guestfs_inspect_get_mountpoints>."
24899 msgstr ""
24900
24901 #. type: =head2
24902 #: ../src/guestfs-actions.pod:2766
24903 msgid "guestfs_inspect_get_format"
24904 msgstr ""
24905
24906 #. type: verbatim
24907 #: ../src/guestfs-actions.pod:2768
24908 #, no-wrap
24909 msgid ""
24910 " char *\n"
24911 " guestfs_inspect_get_format (guestfs_h *g,\n"
24912 "                             const char *root);\n"
24913 "\n"
24914 msgstr ""
24915
24916 #. type: textblock
24917 #: ../src/guestfs-actions.pod:2802 ../src/guestfs-actions.pod:3233
24918 #: ../src/guestfs-actions.pod:3249 ../src/guestfs-actions.pod:3267
24919 #: ../src/guestfs-actions.pod:6033
24920 msgid "(Added in 1.9.4)"
24921 msgstr ""
24922
24923 #. type: =head2
24924 #: ../src/guestfs-actions.pod:2804
24925 msgid "guestfs_inspect_get_hostname"
24926 msgstr ""
24927
24928 #. type: verbatim
24929 #: ../src/guestfs-actions.pod:2806
24930 #, no-wrap
24931 msgid ""
24932 " char *\n"
24933 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
24934 "                               const char *root);\n"
24935 "\n"
24936 msgstr ""
24937
24938 #. type: textblock
24939 #: ../src/guestfs-actions.pod:2821
24940 msgid "(Added in 1.7.9)"
24941 msgstr ""
24942
24943 #. type: =head2
24944 #: ../src/guestfs-actions.pod:2823
24945 msgid "guestfs_inspect_get_icon"
24946 msgstr ""
24947
24948 #. type: verbatim
24949 #: ../src/guestfs-actions.pod:2825
24950 #, no-wrap
24951 msgid ""
24952 " char *\n"
24953 " guestfs_inspect_get_icon (guestfs_h *g,\n"
24954 "                           const char *root,\n"
24955 "                           size_t *size_r,\n"
24956 "                           ...);\n"
24957 "\n"
24958 msgstr ""
24959
24960 #. type: verbatim
24961 #: ../src/guestfs-actions.pod:2836
24962 #, no-wrap
24963 msgid ""
24964 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
24965 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
24966 "\n"
24967 msgstr ""
24968
24969 #. type: textblock
24970 #: ../src/guestfs-actions.pod:2903 ../src/guestfs-actions.pod:3728
24971 #: ../src/guestfs-actions.pod:4982
24972 msgid "(Added in 1.11.12)"
24973 msgstr ""
24974
24975 #. type: =head2
24976 #: ../src/guestfs-actions.pod:2905
24977 msgid "guestfs_inspect_get_icon_va"
24978 msgstr ""
24979
24980 #. type: verbatim
24981 #: ../src/guestfs-actions.pod:2907
24982 #, no-wrap
24983 msgid ""
24984 " char *\n"
24985 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
24986 "                              const char *root,\n"
24987 "                              size_t *size_r,\n"
24988 "                              va_list args);\n"
24989 "\n"
24990 msgstr ""
24991
24992 #. type: textblock
24993 #: ../src/guestfs-actions.pod:2913
24994 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
24995 msgstr ""
24996
24997 #. type: =head2
24998 #: ../src/guestfs-actions.pod:2917
24999 msgid "guestfs_inspect_get_icon_argv"
25000 msgstr ""
25001
25002 #. type: verbatim
25003 #: ../src/guestfs-actions.pod:2919
25004 #, no-wrap
25005 msgid ""
25006 " char *\n"
25007 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
25008 "                                const char *root,\n"
25009 "                                size_t *size_r,\n"
25010 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
25011 "\n"
25012 msgstr ""
25013
25014 #. type: textblock
25015 #: ../src/guestfs-actions.pod:2925
25016 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
25017 msgstr ""
25018
25019 #. type: =head2
25020 #: ../src/guestfs-actions.pod:2929
25021 msgid "guestfs_inspect_get_major_version"
25022 msgstr ""
25023
25024 #. type: verbatim
25025 #: ../src/guestfs-actions.pod:2931
25026 #, no-wrap
25027 msgid ""
25028 " int\n"
25029 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
25030 "                                    const char *root);\n"
25031 "\n"
25032 msgstr ""
25033
25034 #. type: =head2
25035 #: ../src/guestfs-actions.pod:2953
25036 msgid "guestfs_inspect_get_minor_version"
25037 msgstr ""
25038
25039 #. type: verbatim
25040 #: ../src/guestfs-actions.pod:2955
25041 #, no-wrap
25042 msgid ""
25043 " int\n"
25044 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
25045 "                                    const char *root);\n"
25046 "\n"
25047 msgstr ""
25048
25049 #. type: textblock
25050 #: ../src/guestfs-actions.pod:2964
25051 msgid ""
25052 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25053 "C<guestfs_inspect_get_major_version>."
25054 msgstr ""
25055
25056 #. type: =head2
25057 #: ../src/guestfs-actions.pod:2971
25058 msgid "guestfs_inspect_get_mountpoints"
25059 msgstr ""
25060
25061 #. type: verbatim
25062 #: ../src/guestfs-actions.pod:2973
25063 #, no-wrap
25064 msgid ""
25065 " char **\n"
25066 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
25067 "                                  const char *root);\n"
25068 "\n"
25069 msgstr ""
25070
25071 #. type: textblock
25072 #: ../src/guestfs-actions.pod:2994
25073 msgid ""
25074 "For operating systems like Windows which still use drive letters, this call "
25075 "will only return an entry for the first drive \"mounted on\" C</>.  For "
25076 "information about the mapping of drive letters to partitions, see "
25077 "C<guestfs_inspect_get_drive_mappings>."
25078 msgstr ""
25079
25080 #. type: textblock
25081 #: ../src/guestfs-actions.pod:3000
25082 msgid ""
25083 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25084 "C<guestfs_inspect_get_filesystems>."
25085 msgstr ""
25086
25087 #. type: =head2
25088 #: ../src/guestfs-actions.pod:3011
25089 msgid "guestfs_inspect_get_package_format"
25090 msgstr ""
25091
25092 #. type: verbatim
25093 #: ../src/guestfs-actions.pod:3013
25094 #, no-wrap
25095 msgid ""
25096 " char *\n"
25097 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
25098 "                                     const char *root);\n"
25099 "\n"
25100 msgstr ""
25101
25102 #. type: textblock
25103 #: ../src/guestfs-actions.pod:3017
25104 msgid ""
25105 "This function and C<guestfs_inspect_get_package_management> return the "
25106 "package format and package management tool used by the inspected operating "
25107 "system.  For example for Fedora these functions would return C<rpm> (package "
25108 "format) and C<yum> (package management)."
25109 msgstr ""
25110
25111 #. type: textblock
25112 #: ../src/guestfs-actions.pod:3035 ../src/guestfs-actions.pod:3063
25113 msgid "(Added in 1.7.5)"
25114 msgstr ""
25115
25116 #. type: =head2
25117 #: ../src/guestfs-actions.pod:3037
25118 msgid "guestfs_inspect_get_package_management"
25119 msgstr ""
25120
25121 #. type: verbatim
25122 #: ../src/guestfs-actions.pod:3039
25123 #, no-wrap
25124 msgid ""
25125 " char *\n"
25126 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
25127 "                                         const char *root);\n"
25128 "\n"
25129 msgstr ""
25130
25131 #. type: textblock
25132 #: ../src/guestfs-actions.pod:3043
25133 msgid ""
25134 "C<guestfs_inspect_get_package_format> and this function return the package "
25135 "format and package management tool used by the inspected operating system.  "
25136 "For example for Fedora these functions would return C<rpm> (package format) "
25137 "and C<yum> (package management)."
25138 msgstr ""
25139
25140 #. type: =head2
25141 #: ../src/guestfs-actions.pod:3065
25142 msgid "guestfs_inspect_get_product_name"
25143 msgstr ""
25144
25145 #. type: verbatim
25146 #: ../src/guestfs-actions.pod:3067
25147 #, no-wrap
25148 msgid ""
25149 " char *\n"
25150 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
25151 "                                   const char *root);\n"
25152 "\n"
25153 msgstr ""
25154
25155 #. type: =head2
25156 #: ../src/guestfs-actions.pod:3086
25157 msgid "guestfs_inspect_get_product_variant"
25158 msgstr ""
25159
25160 #. type: verbatim
25161 #: ../src/guestfs-actions.pod:3088
25162 #, no-wrap
25163 msgid ""
25164 " char *\n"
25165 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
25166 "                                      const char *root);\n"
25167 "\n"
25168 msgstr ""
25169
25170 #. type: textblock
25171 #: ../src/guestfs-actions.pod:3111
25172 msgid ""
25173 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25174 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
25175 msgstr ""
25176
25177 #. type: textblock
25178 #: ../src/guestfs-actions.pod:3118
25179 msgid "(Added in 1.9.13)"
25180 msgstr ""
25181
25182 #. type: =head2
25183 #: ../src/guestfs-actions.pod:3120
25184 msgid "guestfs_inspect_get_roots"
25185 msgstr ""
25186
25187 #. type: verbatim
25188 #: ../src/guestfs-actions.pod:3122
25189 #, no-wrap
25190 msgid ""
25191 " char **\n"
25192 " guestfs_inspect_get_roots (guestfs_h *g);\n"
25193 "\n"
25194 msgstr ""
25195
25196 #. type: textblock
25197 #: ../src/guestfs-actions.pod:3125
25198 msgid ""
25199 "This function is a convenient way to get the list of root devices, as "
25200 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
25201 "the whole inspection process."
25202 msgstr ""
25203
25204 #. type: textblock
25205 #: ../src/guestfs-actions.pod:3129
25206 msgid ""
25207 "This returns an empty list if either no root devices were found or the "
25208 "caller has not called C<guestfs_inspect_os>."
25209 msgstr ""
25210
25211 #. type: textblock
25212 #: ../src/guestfs-actions.pod:3138
25213 msgid "(Added in 1.7.3)"
25214 msgstr ""
25215
25216 #. type: =head2
25217 #: ../src/guestfs-actions.pod:3140
25218 msgid "guestfs_inspect_get_type"
25219 msgstr ""
25220
25221 #. type: verbatim
25222 #: ../src/guestfs-actions.pod:3142
25223 #, no-wrap
25224 msgid ""
25225 " char *\n"
25226 " guestfs_inspect_get_type (guestfs_h *g,\n"
25227 "                           const char *root);\n"
25228 "\n"
25229 msgstr ""
25230
25231 #. type: =head2
25232 #: ../src/guestfs-actions.pod:3179
25233 msgid "guestfs_inspect_get_windows_current_control_set"
25234 msgstr ""
25235
25236 #. type: verbatim
25237 #: ../src/guestfs-actions.pod:3181
25238 #, no-wrap
25239 msgid ""
25240 " char *\n"
25241 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
25242 "                                                  const char *root);\n"
25243 "\n"
25244 msgstr ""
25245
25246 #. type: =head2
25247 #: ../src/guestfs-actions.pod:3199
25248 msgid "guestfs_inspect_get_windows_systemroot"
25249 msgstr ""
25250
25251 #. type: verbatim
25252 #: ../src/guestfs-actions.pod:3201
25253 #, no-wrap
25254 msgid ""
25255 " char *\n"
25256 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
25257 "                                         const char *root);\n"
25258 "\n"
25259 msgstr ""
25260
25261 #. type: textblock
25262 #: ../src/guestfs-actions.pod:3217
25263 msgid "(Added in 1.5.25)"
25264 msgstr ""
25265
25266 #. type: =head2
25267 #: ../src/guestfs-actions.pod:3219
25268 msgid "guestfs_inspect_is_live"
25269 msgstr ""
25270
25271 #. type: verbatim
25272 #: ../src/guestfs-actions.pod:3221
25273 #, no-wrap
25274 msgid ""
25275 " int\n"
25276 " guestfs_inspect_is_live (guestfs_h *g,\n"
25277 "                          const char *root);\n"
25278 "\n"
25279 msgstr ""
25280
25281 #. type: textblock
25282 #: ../src/guestfs-actions.pod:3225
25283 msgid ""
25284 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
25285 "disk), then this returns true if a live image was detected on the disk."
25286 msgstr ""
25287
25288 #. type: =head2
25289 #: ../src/guestfs-actions.pod:3235
25290 msgid "guestfs_inspect_is_multipart"
25291 msgstr ""
25292
25293 #. type: verbatim
25294 #: ../src/guestfs-actions.pod:3237
25295 #, no-wrap
25296 msgid ""
25297 " int\n"
25298 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
25299 "                               const char *root);\n"
25300 "\n"
25301 msgstr ""
25302
25303 #. type: textblock
25304 #: ../src/guestfs-actions.pod:3241
25305 msgid ""
25306 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
25307 "disk), then this returns true if the disk is part of a set."
25308 msgstr ""
25309
25310 #. type: =head2
25311 #: ../src/guestfs-actions.pod:3251
25312 msgid "guestfs_inspect_is_netinst"
25313 msgstr ""
25314
25315 #. type: verbatim
25316 #: ../src/guestfs-actions.pod:3253
25317 #, no-wrap
25318 msgid ""
25319 " int\n"
25320 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
25321 "                             const char *root);\n"
25322 "\n"
25323 msgstr ""
25324
25325 #. type: textblock
25326 #: ../src/guestfs-actions.pod:3257
25327 msgid ""
25328 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
25329 "disk), then this returns true if the disk is a network installer, ie. not a "
25330 "self-contained install CD but one which is likely to require network access "
25331 "to complete the install."
25332 msgstr ""
25333
25334 #. type: =head2
25335 #: ../src/guestfs-actions.pod:3269
25336 msgid "guestfs_inspect_list_applications"
25337 msgstr ""
25338
25339 #. type: verbatim
25340 #: ../src/guestfs-actions.pod:3271
25341 #, no-wrap
25342 msgid ""
25343 " struct guestfs_application_list *\n"
25344 " guestfs_inspect_list_applications (guestfs_h *g,\n"
25345 "                                    const char *root);\n"
25346 "\n"
25347 msgstr ""
25348
25349 #. type: textblock
25350 #: ../src/guestfs-actions.pod:3277
25351 msgid ""
25352 "I<Note:> This call works differently from other parts of the inspection "
25353 "API.  You have to call C<guestfs_inspect_os>, then "
25354 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
25355 "this.  Listing applications is a significantly more difficult operation "
25356 "which requires access to the full filesystem.  Also note that unlike the "
25357 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
25358 "the libguestfs handle, this call actually reads parts of the mounted "
25359 "filesystems during the call."
25360 msgstr ""
25361
25362 #. type: textblock
25363 #: ../src/guestfs-actions.pod:3367
25364 msgid ""
25365 "This function returns a C<struct guestfs_application_list *>, or NULL if "
25366 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
25367 "after use>."
25368 msgstr ""
25369
25370 #. type: textblock
25371 #: ../src/guestfs-actions.pod:3371
25372 msgid "(Added in 1.7.8)"
25373 msgstr ""
25374
25375 #. type: =head2
25376 #: ../src/guestfs-actions.pod:3373
25377 msgid "guestfs_inspect_os"
25378 msgstr ""
25379
25380 #. type: verbatim
25381 #: ../src/guestfs-actions.pod:3375
25382 #, no-wrap
25383 msgid ""
25384 " char **\n"
25385 " guestfs_inspect_os (guestfs_h *g);\n"
25386 "\n"
25387 msgstr ""
25388
25389 #. type: textblock
25390 #: ../src/guestfs-actions.pod:3391
25391 msgid ""
25392 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
25393 "functions in order to query further information about each operating system, "
25394 "such as the name and version."
25395 msgstr ""
25396
25397 #. type: textblock
25398 #: ../src/guestfs-actions.pod:3396
25399 msgid ""
25400 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
25401 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
25402 "the contents.  This should be called with no disks currently mounted.  The "
25403 "function may also use Augeas, so any existing Augeas handle will be closed."
25404 msgstr ""
25405
25406 #. type: textblock
25407 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3739
25408 #: ../src/guestfs-actions.pod:3821
25409 msgid "See also C<guestfs_list_filesystems>."
25410 msgstr ""
25411
25412 #. type: =head2
25413 #: ../src/guestfs-actions.pod:3416
25414 msgid "guestfs_is_blockdev"
25415 msgstr ""
25416
25417 #. type: verbatim
25418 #: ../src/guestfs-actions.pod:3418
25419 #, no-wrap
25420 msgid ""
25421 " int\n"
25422 " guestfs_is_blockdev (guestfs_h *g,\n"
25423 "                      const char *path);\n"
25424 "\n"
25425 msgstr ""
25426
25427 #. type: textblock
25428 #: ../src/guestfs-actions.pod:3425 ../src/guestfs-actions.pod:3454
25429 #: ../src/guestfs-actions.pod:3484 ../src/guestfs-actions.pod:3499
25430 #: ../src/guestfs-actions.pod:3515 ../src/guestfs-actions.pod:3571
25431 #: ../src/guestfs-actions.pod:3586
25432 msgid "See also C<guestfs_stat>."
25433 msgstr ""
25434
25435 #. type: textblock
25436 #: ../src/guestfs-actions.pod:3429 ../src/guestfs-actions.pod:3458
25437 #: ../src/guestfs-actions.pod:3503 ../src/guestfs-actions.pod:3575
25438 #: ../src/guestfs-actions.pod:3590
25439 msgid "(Added in 1.5.10)"
25440 msgstr ""
25441
25442 #. type: =head2
25443 #: ../src/guestfs-actions.pod:3431
25444 msgid "guestfs_is_busy"
25445 msgstr ""
25446
25447 #. type: verbatim
25448 #: ../src/guestfs-actions.pod:3433
25449 #, no-wrap
25450 msgid ""
25451 " int\n"
25452 " guestfs_is_busy (guestfs_h *g);\n"
25453 "\n"
25454 msgstr ""
25455
25456 #. type: =head2
25457 #: ../src/guestfs-actions.pod:3445
25458 msgid "guestfs_is_chardev"
25459 msgstr ""
25460
25461 #. type: verbatim
25462 #: ../src/guestfs-actions.pod:3447
25463 #, no-wrap
25464 msgid ""
25465 " int\n"
25466 " guestfs_is_chardev (guestfs_h *g,\n"
25467 "                     const char *path);\n"
25468 "\n"
25469 msgstr ""
25470
25471 #. type: =head2
25472 #: ../src/guestfs-actions.pod:3460
25473 msgid "guestfs_is_config"
25474 msgstr ""
25475
25476 #. type: verbatim
25477 #: ../src/guestfs-actions.pod:3462
25478 #, no-wrap
25479 msgid ""
25480 " int\n"
25481 " guestfs_is_config (guestfs_h *g);\n"
25482 "\n"
25483 msgstr ""
25484
25485 #. type: =head2
25486 #: ../src/guestfs-actions.pod:3474
25487 msgid "guestfs_is_dir"
25488 msgstr ""
25489
25490 #. type: verbatim
25491 #: ../src/guestfs-actions.pod:3476
25492 #, no-wrap
25493 msgid ""
25494 " int\n"
25495 " guestfs_is_dir (guestfs_h *g,\n"
25496 "                 const char *path);\n"
25497 "\n"
25498 msgstr ""
25499
25500 #. type: =head2
25501 #: ../src/guestfs-actions.pod:3490
25502 msgid "guestfs_is_fifo"
25503 msgstr ""
25504
25505 #. type: verbatim
25506 #: ../src/guestfs-actions.pod:3492
25507 #, no-wrap
25508 msgid ""
25509 " int\n"
25510 " guestfs_is_fifo (guestfs_h *g,\n"
25511 "                  const char *path);\n"
25512 "\n"
25513 msgstr ""
25514
25515 #. type: =head2
25516 #: ../src/guestfs-actions.pod:3505
25517 msgid "guestfs_is_file"
25518 msgstr ""
25519
25520 #. type: verbatim
25521 #: ../src/guestfs-actions.pod:3507
25522 #, no-wrap
25523 msgid ""
25524 " int\n"
25525 " guestfs_is_file (guestfs_h *g,\n"
25526 "                  const char *path);\n"
25527 "\n"
25528 msgstr ""
25529
25530 #. type: =head2
25531 #: ../src/guestfs-actions.pod:3521
25532 msgid "guestfs_is_launching"
25533 msgstr ""
25534
25535 #. type: verbatim
25536 #: ../src/guestfs-actions.pod:3523
25537 #, no-wrap
25538 msgid ""
25539 " int\n"
25540 " guestfs_is_launching (guestfs_h *g);\n"
25541 "\n"
25542 msgstr ""
25543
25544 #. type: =head2
25545 #: ../src/guestfs-actions.pod:3535
25546 msgid "guestfs_is_lv"
25547 msgstr ""
25548
25549 #. type: verbatim
25550 #: ../src/guestfs-actions.pod:3537
25551 #, no-wrap
25552 msgid ""
25553 " int\n"
25554 " guestfs_is_lv (guestfs_h *g,\n"
25555 "                const char *device);\n"
25556 "\n"
25557 msgstr ""
25558
25559 #. type: =head2
25560 #: ../src/guestfs-actions.pod:3548
25561 msgid "guestfs_is_ready"
25562 msgstr ""
25563
25564 #. type: verbatim
25565 #: ../src/guestfs-actions.pod:3550
25566 #, no-wrap
25567 msgid ""
25568 " int\n"
25569 " guestfs_is_ready (guestfs_h *g);\n"
25570 "\n"
25571 msgstr ""
25572
25573 #. type: =head2
25574 #: ../src/guestfs-actions.pod:3562
25575 msgid "guestfs_is_socket"
25576 msgstr ""
25577
25578 #. type: verbatim
25579 #: ../src/guestfs-actions.pod:3564
25580 #, no-wrap
25581 msgid ""
25582 " int\n"
25583 " guestfs_is_socket (guestfs_h *g,\n"
25584 "                    const char *path);\n"
25585 "\n"
25586 msgstr ""
25587
25588 #. type: =head2
25589 #: ../src/guestfs-actions.pod:3577
25590 msgid "guestfs_is_symlink"
25591 msgstr ""
25592
25593 #. type: verbatim
25594 #: ../src/guestfs-actions.pod:3579
25595 #, no-wrap
25596 msgid ""
25597 " int\n"
25598 " guestfs_is_symlink (guestfs_h *g,\n"
25599 "                     const char *path);\n"
25600 "\n"
25601 msgstr ""
25602
25603 #. type: =head2
25604 #: ../src/guestfs-actions.pod:3592
25605 msgid "guestfs_is_zero"
25606 msgstr ""
25607
25608 #. type: verbatim
25609 #: ../src/guestfs-actions.pod:3594
25610 #, no-wrap
25611 msgid ""
25612 " int\n"
25613 " guestfs_is_zero (guestfs_h *g,\n"
25614 "                  const char *path);\n"
25615 "\n"
25616 msgstr ""
25617
25618 #. type: textblock
25619 #: ../src/guestfs-actions.pod:3603 ../src/guestfs-actions.pod:3617
25620 msgid "(Added in 1.11.8)"
25621 msgstr ""
25622
25623 #. type: =head2
25624 #: ../src/guestfs-actions.pod:3605
25625 msgid "guestfs_is_zero_device"
25626 msgstr ""
25627
25628 #. type: verbatim
25629 #: ../src/guestfs-actions.pod:3607
25630 #, no-wrap
25631 msgid ""
25632 " int\n"
25633 " guestfs_is_zero_device (guestfs_h *g,\n"
25634 "                         const char *device);\n"
25635 "\n"
25636 msgstr ""
25637
25638 #. type: =head2
25639 #: ../src/guestfs-actions.pod:3619
25640 msgid "guestfs_kill_subprocess"
25641 msgstr ""
25642
25643 #. type: verbatim
25644 #: ../src/guestfs-actions.pod:3621
25645 #, no-wrap
25646 msgid ""
25647 " int\n"
25648 " guestfs_kill_subprocess (guestfs_h *g);\n"
25649 "\n"
25650 msgstr ""
25651
25652 #. type: =head2
25653 #: ../src/guestfs-actions.pod:3630
25654 msgid "guestfs_launch"
25655 msgstr ""
25656
25657 #. type: verbatim
25658 #: ../src/guestfs-actions.pod:3632
25659 #, no-wrap
25660 msgid ""
25661 " int\n"
25662 " guestfs_launch (guestfs_h *g);\n"
25663 "\n"
25664 msgstr ""
25665
25666 #. type: =head2
25667 #: ../src/guestfs-actions.pod:3650
25668 msgid "guestfs_lchown"
25669 msgstr ""
25670
25671 #. type: verbatim
25672 #: ../src/guestfs-actions.pod:3652
25673 #, no-wrap
25674 msgid ""
25675 " int\n"
25676 " guestfs_lchown (guestfs_h *g,\n"
25677 "                 int owner,\n"
25678 "                 int group,\n"
25679 "                 const char *path);\n"
25680 "\n"
25681 msgstr ""
25682
25683 #. type: textblock
25684 #: ../src/guestfs-actions.pod:3658
25685 msgid ""
25686 "Change the file owner to C<owner> and group to C<group>.  This is like "
25687 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
25688 "changed, not the target."
25689 msgstr ""
25690
25691 #. type: =head2
25692 #: ../src/guestfs-actions.pod:3670
25693 msgid "guestfs_lgetxattr"
25694 msgstr ""
25695
25696 #. type: verbatim
25697 #: ../src/guestfs-actions.pod:3672
25698 #, no-wrap
25699 msgid ""
25700 " char *\n"
25701 " guestfs_lgetxattr (guestfs_h *g,\n"
25702 "                    const char *path,\n"
25703 "                    const char *name,\n"
25704 "                    size_t *size_r);\n"
25705 "\n"
25706 msgstr ""
25707
25708 #. type: textblock
25709 #: ../src/guestfs-actions.pod:3692
25710 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
25711 msgstr ""
25712
25713 #. type: =head2
25714 #: ../src/guestfs-actions.pod:3700
25715 msgid "guestfs_lgetxattrs"
25716 msgstr ""
25717
25718 #. type: verbatim
25719 #: ../src/guestfs-actions.pod:3702
25720 #, no-wrap
25721 msgid ""
25722 " struct guestfs_xattr_list *\n"
25723 " guestfs_lgetxattrs (guestfs_h *g,\n"
25724 "                     const char *path);\n"
25725 "\n"
25726 msgstr ""
25727
25728 #. type: textblock
25729 #: ../src/guestfs-actions.pod:3706
25730 msgid ""
25731 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
25732 "then it returns the extended attributes of the link itself."
25733 msgstr ""
25734
25735 #. type: =head2
25736 #: ../src/guestfs-actions.pod:3716
25737 msgid "guestfs_list_9p"
25738 msgstr ""
25739
25740 #. type: verbatim
25741 #: ../src/guestfs-actions.pod:3718
25742 #, no-wrap
25743 msgid ""
25744 " char **\n"
25745 " guestfs_list_9p (guestfs_h *g);\n"
25746 "\n"
25747 msgstr ""
25748
25749 #. type: =head2
25750 #: ../src/guestfs-actions.pod:3730
25751 msgid "guestfs_list_devices"
25752 msgstr ""
25753
25754 #. type: verbatim
25755 #: ../src/guestfs-actions.pod:3732
25756 #, no-wrap
25757 msgid ""
25758 " char **\n"
25759 " guestfs_list_devices (guestfs_h *g);\n"
25760 "\n"
25761 msgstr ""
25762
25763 #. type: =head2
25764 #: ../src/guestfs-actions.pod:3747
25765 msgid "guestfs_list_dm_devices"
25766 msgstr ""
25767
25768 #. type: verbatim
25769 #: ../src/guestfs-actions.pod:3749
25770 #, no-wrap
25771 msgid ""
25772 " char **\n"
25773 " guestfs_list_dm_devices (guestfs_h *g);\n"
25774 "\n"
25775 msgstr ""
25776
25777 #. type: textblock
25778 #: ../src/guestfs-actions.pod:3754
25779 msgid ""
25780 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
25781 "previous call to C<guestfs_luks_open>."
25782 msgstr ""
25783
25784 #. type: textblock
25785 #: ../src/guestfs-actions.pod:3757
25786 msgid ""
25787 "Device mapper devices which correspond to logical volumes are I<not> "
25788 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
25789 "volumes."
25790 msgstr ""
25791
25792 #. type: textblock
25793 #: ../src/guestfs-actions.pod:3765 ../src/guestfs-actions.pod:5221
25794 msgid "(Added in 1.11.15)"
25795 msgstr ""
25796
25797 #. type: =head2
25798 #: ../src/guestfs-actions.pod:3767
25799 msgid "guestfs_list_filesystems"
25800 msgstr ""
25801
25802 #. type: verbatim
25803 #: ../src/guestfs-actions.pod:3769
25804 #, no-wrap
25805 msgid ""
25806 " char **\n"
25807 " guestfs_list_filesystems (guestfs_h *g);\n"
25808 "\n"
25809 msgstr ""
25810
25811 #. type: textblock
25812 #: ../src/guestfs-actions.pod:3789
25813 msgid ""
25814 "This command runs other libguestfs commands, which might include "
25815 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
25816 "soon after launch and only when nothing is mounted."
25817 msgstr ""
25818
25819 #. type: textblock
25820 #: ../src/guestfs-actions.pod:3793
25821 msgid ""
25822 "Not all of the filesystems returned will be mountable.  In particular, swap "
25823 "partitions are returned in the list.  Also this command does not check that "
25824 "each filesystem found is valid and mountable, and some filesystems might be "
25825 "mountable but require special options.  Filesystems may not all belong to a "
25826 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
25827 msgstr ""
25828
25829 #. type: textblock
25830 #: ../src/guestfs-actions.pod:3807 ../src/guestfs-actions.pod:5582
25831 msgid "(Added in 1.5.15)"
25832 msgstr ""
25833
25834 #. type: =head2
25835 #: ../src/guestfs-actions.pod:3809
25836 msgid "guestfs_list_partitions"
25837 msgstr ""
25838
25839 #. type: verbatim
25840 #: ../src/guestfs-actions.pod:3811
25841 #, no-wrap
25842 msgid ""
25843 " char **\n"
25844 " guestfs_list_partitions (guestfs_h *g);\n"
25845 "\n"
25846 msgstr ""
25847
25848 #. type: textblock
25849 #: ../src/guestfs-actions.pod:3818
25850 msgid ""
25851 "This does not return logical volumes.  For that you will need to call "
25852 "C<guestfs_lvs>."
25853 msgstr ""
25854
25855 #. type: =head2
25856 #: ../src/guestfs-actions.pod:3829
25857 msgid "guestfs_ll"
25858 msgstr ""
25859
25860 #. type: verbatim
25861 #: ../src/guestfs-actions.pod:3831
25862 #, no-wrap
25863 msgid ""
25864 " char *\n"
25865 " guestfs_ll (guestfs_h *g,\n"
25866 "             const char *directory);\n"
25867 "\n"
25868 msgstr ""
25869
25870 #. type: =head2
25871 #: ../src/guestfs-actions.pod:3846
25872 msgid "guestfs_ln"
25873 msgstr ""
25874
25875 #. type: verbatim
25876 #: ../src/guestfs-actions.pod:3848
25877 #, no-wrap
25878 msgid ""
25879 " int\n"
25880 " guestfs_ln (guestfs_h *g,\n"
25881 "             const char *target,\n"
25882 "             const char *linkname);\n"
25883 "\n"
25884 msgstr ""
25885
25886 #. type: =head2
25887 #: ../src/guestfs-actions.pod:3859
25888 msgid "guestfs_ln_f"
25889 msgstr ""
25890
25891 #. type: verbatim
25892 #: ../src/guestfs-actions.pod:3861
25893 #, no-wrap
25894 msgid ""
25895 " int\n"
25896 " guestfs_ln_f (guestfs_h *g,\n"
25897 "               const char *target,\n"
25898 "               const char *linkname);\n"
25899 "\n"
25900 msgstr ""
25901
25902 #. type: =head2
25903 #: ../src/guestfs-actions.pod:3873
25904 msgid "guestfs_ln_s"
25905 msgstr ""
25906
25907 #. type: verbatim
25908 #: ../src/guestfs-actions.pod:3875
25909 #, no-wrap
25910 msgid ""
25911 " int\n"
25912 " guestfs_ln_s (guestfs_h *g,\n"
25913 "               const char *target,\n"
25914 "               const char *linkname);\n"
25915 "\n"
25916 msgstr ""
25917
25918 #. type: =head2
25919 #: ../src/guestfs-actions.pod:3886
25920 msgid "guestfs_ln_sf"
25921 msgstr ""
25922
25923 #. type: verbatim
25924 #: ../src/guestfs-actions.pod:3888
25925 #, no-wrap
25926 msgid ""
25927 " int\n"
25928 " guestfs_ln_sf (guestfs_h *g,\n"
25929 "                const char *target,\n"
25930 "                const char *linkname);\n"
25931 "\n"
25932 msgstr ""
25933
25934 #. type: =head2
25935 #: ../src/guestfs-actions.pod:3900
25936 msgid "guestfs_lremovexattr"
25937 msgstr ""
25938
25939 #. type: verbatim
25940 #: ../src/guestfs-actions.pod:3902
25941 #, no-wrap
25942 msgid ""
25943 " int\n"
25944 " guestfs_lremovexattr (guestfs_h *g,\n"
25945 "                       const char *xattr,\n"
25946 "                       const char *path);\n"
25947 "\n"
25948 msgstr ""
25949
25950 #. type: textblock
25951 #: ../src/guestfs-actions.pod:3907
25952 msgid ""
25953 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
25954 "link, then it removes an extended attribute of the link itself."
25955 msgstr ""
25956
25957 #. type: =head2
25958 #: ../src/guestfs-actions.pod:3915
25959 msgid "guestfs_ls"
25960 msgstr ""
25961
25962 #. type: verbatim
25963 #: ../src/guestfs-actions.pod:3917
25964 #, no-wrap
25965 msgid ""
25966 " char **\n"
25967 " guestfs_ls (guestfs_h *g,\n"
25968 "             const char *directory);\n"
25969 "\n"
25970 msgstr ""
25971
25972 #. type: textblock
25973 #: ../src/guestfs-actions.pod:3925
25974 msgid ""
25975 "This command is mostly useful for interactive sessions.  Programs should "
25976 "probably use C<guestfs_readdir> instead."
25977 msgstr ""
25978
25979 #. type: =head2
25980 #: ../src/guestfs-actions.pod:3934
25981 msgid "guestfs_lsetxattr"
25982 msgstr ""
25983
25984 #. type: verbatim
25985 #: ../src/guestfs-actions.pod:3936
25986 #, no-wrap
25987 msgid ""
25988 " int\n"
25989 " guestfs_lsetxattr (guestfs_h *g,\n"
25990 "                    const char *xattr,\n"
25991 "                    const char *val,\n"
25992 "                    int vallen,\n"
25993 "                    const char *path);\n"
25994 "\n"
25995 msgstr ""
25996
25997 #. type: textblock
25998 #: ../src/guestfs-actions.pod:3943
25999 msgid ""
26000 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
26001 "then it sets an extended attribute of the link itself."
26002 msgstr ""
26003
26004 #. type: =head2
26005 #: ../src/guestfs-actions.pod:3951
26006 msgid "guestfs_lstat"
26007 msgstr ""
26008
26009 #. type: verbatim
26010 #: ../src/guestfs-actions.pod:3953
26011 #, no-wrap
26012 msgid ""
26013 " struct guestfs_stat *\n"
26014 " guestfs_lstat (guestfs_h *g,\n"
26015 "                const char *path);\n"
26016 "\n"
26017 msgstr ""
26018
26019 #. type: textblock
26020 #: ../src/guestfs-actions.pod:3959
26021 msgid ""
26022 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
26023 "link, then the link is stat-ed, not the file it refers to."
26024 msgstr ""
26025
26026 #. type: textblock
26027 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:6740
26028 msgid ""
26029 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
26030 "error.  I<The caller must call C<guestfs_free_stat> after use>."
26031 msgstr ""
26032
26033 #. type: textblock
26034 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:6744
26035 #: ../src/guestfs-actions.pod:6762 ../src/guestfs-actions.pod:7143
26036 msgid "(Added in 0.9.2)"
26037 msgstr ""
26038
26039 #. type: =head2
26040 #: ../src/guestfs-actions.pod:3971
26041 msgid "guestfs_lstatlist"
26042 msgstr ""
26043
26044 #. type: verbatim
26045 #: ../src/guestfs-actions.pod:3973
26046 #, no-wrap
26047 msgid ""
26048 " struct guestfs_stat_list *\n"
26049 " guestfs_lstatlist (guestfs_h *g,\n"
26050 "                    const char *path,\n"
26051 "                    char *const *names);\n"
26052 "\n"
26053 msgstr ""
26054
26055 #. type: textblock
26056 #: ../src/guestfs-actions.pod:3978
26057 msgid ""
26058 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
26059 "files, where all files are in the directory C<path>.  C<names> is the list "
26060 "of files from this directory."
26061 msgstr ""
26062
26063 #. type: textblock
26064 #: ../src/guestfs-actions.pod:3987
26065 msgid ""
26066 "This call is intended for programs that want to efficiently list a directory "
26067 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
26068 "for a similarly efficient call for getting extended attributes.  Very long "
26069 "directory listings might cause the protocol message size to be exceeded, "
26070 "causing this call to fail.  The caller must split up such requests into "
26071 "smaller groups of names."
26072 msgstr ""
26073
26074 #. type: textblock
26075 #: ../src/guestfs-actions.pod:3995
26076 msgid ""
26077 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
26078 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
26079 msgstr ""
26080
26081 #. type: =head2
26082 #: ../src/guestfs-actions.pod:4001
26083 msgid "guestfs_luks_add_key"
26084 msgstr ""
26085
26086 #. type: verbatim
26087 #: ../src/guestfs-actions.pod:4003
26088 #, no-wrap
26089 msgid ""
26090 " int\n"
26091 " guestfs_luks_add_key (guestfs_h *g,\n"
26092 "                       const char *device,\n"
26093 "                       const char *key,\n"
26094 "                       const char *newkey,\n"
26095 "                       int keyslot);\n"
26096 "\n"
26097 msgstr ""
26098
26099 #. type: textblock
26100 #: ../src/guestfs-actions.pod:4015
26101 msgid ""
26102 "Note that if C<keyslot> already contains a key, then this command will "
26103 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
26104 msgstr ""
26105
26106 #. type: textblock
26107 #: ../src/guestfs-actions.pod:4021 ../src/guestfs-actions.pod:4061
26108 #: ../src/guestfs-actions.pod:4084 ../src/guestfs-actions.pod:4104
26109 #: ../src/guestfs-actions.pod:4139 ../src/guestfs-actions.pod:4158
26110 msgid ""
26111 "This function takes a key or passphrase parameter which could contain "
26112 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
26113 "information."
26114 msgstr ""
26115
26116 #. type: textblock
26117 #: ../src/guestfs-actions.pod:4025 ../src/guestfs-actions.pod:4065
26118 #: ../src/guestfs-actions.pod:4088 ../src/guestfs-actions.pod:4108
26119 msgid "(Added in 1.5.2)"
26120 msgstr ""
26121
26122 #. type: =head2
26123 #: ../src/guestfs-actions.pod:4027
26124 msgid "guestfs_luks_close"
26125 msgstr ""
26126
26127 #. type: verbatim
26128 #: ../src/guestfs-actions.pod:4029
26129 #, no-wrap
26130 msgid ""
26131 " int\n"
26132 " guestfs_luks_close (guestfs_h *g,\n"
26133 "                     const char *device);\n"
26134 "\n"
26135 msgstr ""
26136
26137 #. type: textblock
26138 #: ../src/guestfs-actions.pod:4033
26139 msgid ""
26140 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
26141 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
26142 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
26143 "underlying block device."
26144 msgstr ""
26145
26146 #. type: textblock
26147 #: ../src/guestfs-actions.pod:4041 ../src/guestfs-actions.pod:4143
26148 #: ../src/guestfs-actions.pod:4162 ../src/guestfs-actions.pod:4212
26149 #: ../src/guestfs-actions.pod:4260
26150 msgid "(Added in 1.5.1)"
26151 msgstr ""
26152
26153 #. type: =head2
26154 #: ../src/guestfs-actions.pod:4043
26155 msgid "guestfs_luks_format"
26156 msgstr ""
26157
26158 #. type: verbatim
26159 #: ../src/guestfs-actions.pod:4045
26160 #, no-wrap
26161 msgid ""
26162 " int\n"
26163 " guestfs_luks_format (guestfs_h *g,\n"
26164 "                      const char *device,\n"
26165 "                      const char *key,\n"
26166 "                      int keyslot);\n"
26167 "\n"
26168 msgstr ""
26169
26170 #. type: =head2
26171 #: ../src/guestfs-actions.pod:4067
26172 msgid "guestfs_luks_format_cipher"
26173 msgstr ""
26174
26175 #. type: verbatim
26176 #: ../src/guestfs-actions.pod:4069
26177 #, no-wrap
26178 msgid ""
26179 " int\n"
26180 " guestfs_luks_format_cipher (guestfs_h *g,\n"
26181 "                             const char *device,\n"
26182 "                             const char *key,\n"
26183 "                             int keyslot,\n"
26184 "                             const char *cipher);\n"
26185 "\n"
26186 msgstr ""
26187
26188 #. type: textblock
26189 #: ../src/guestfs-actions.pod:4076
26190 msgid ""
26191 "This command is the same as C<guestfs_luks_format> but it also allows you to "
26192 "set the C<cipher> used."
26193 msgstr ""
26194
26195 #. type: =head2
26196 #: ../src/guestfs-actions.pod:4090
26197 msgid "guestfs_luks_kill_slot"
26198 msgstr ""
26199
26200 #. type: verbatim
26201 #: ../src/guestfs-actions.pod:4092
26202 #, no-wrap
26203 msgid ""
26204 " int\n"
26205 " guestfs_luks_kill_slot (guestfs_h *g,\n"
26206 "                         const char *device,\n"
26207 "                         const char *key,\n"
26208 "                         int keyslot);\n"
26209 "\n"
26210 msgstr ""
26211
26212 #. type: =head2
26213 #: ../src/guestfs-actions.pod:4110
26214 msgid "guestfs_luks_open"
26215 msgstr ""
26216
26217 #. type: verbatim
26218 #: ../src/guestfs-actions.pod:4112
26219 #, no-wrap
26220 msgid ""
26221 " int\n"
26222 " guestfs_luks_open (guestfs_h *g,\n"
26223 "                    const char *device,\n"
26224 "                    const char *key,\n"
26225 "                    const char *mapname);\n"
26226 "\n"
26227 msgstr ""
26228
26229 #. type: textblock
26230 #: ../src/guestfs-actions.pod:4130
26231 msgid ""
26232 "If this block device contains LVM volume groups, then calling "
26233 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
26234 "visible."
26235 msgstr ""
26236
26237 #. type: textblock
26238 #: ../src/guestfs-actions.pod:4134
26239 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
26240 msgstr ""
26241
26242 #. type: =head2
26243 #: ../src/guestfs-actions.pod:4145
26244 msgid "guestfs_luks_open_ro"
26245 msgstr ""
26246
26247 #. type: verbatim
26248 #: ../src/guestfs-actions.pod:4147
26249 #, no-wrap
26250 msgid ""
26251 " int\n"
26252 " guestfs_luks_open_ro (guestfs_h *g,\n"
26253 "                       const char *device,\n"
26254 "                       const char *key,\n"
26255 "                       const char *mapname);\n"
26256 "\n"
26257 msgstr ""
26258
26259 #. type: textblock
26260 #: ../src/guestfs-actions.pod:4153
26261 msgid ""
26262 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
26263 "created."
26264 msgstr ""
26265
26266 #. type: =head2
26267 #: ../src/guestfs-actions.pod:4164
26268 msgid "guestfs_lvcreate"
26269 msgstr ""
26270
26271 #. type: verbatim
26272 #: ../src/guestfs-actions.pod:4166
26273 #, no-wrap
26274 msgid ""
26275 " int\n"
26276 " guestfs_lvcreate (guestfs_h *g,\n"
26277 "                   const char *logvol,\n"
26278 "                   const char *volgroup,\n"
26279 "                   int mbytes);\n"
26280 "\n"
26281 msgstr ""
26282
26283 #. type: =head2
26284 #: ../src/guestfs-actions.pod:4179
26285 msgid "guestfs_lvm_canonical_lv_name"
26286 msgstr ""
26287
26288 #. type: verbatim
26289 #: ../src/guestfs-actions.pod:4181
26290 #, no-wrap
26291 msgid ""
26292 " char *\n"
26293 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
26294 "                                const char *lvname);\n"
26295 "\n"
26296 msgstr ""
26297
26298 #. type: textblock
26299 #: ../src/guestfs-actions.pod:4192
26300 msgid "See also C<guestfs_is_lv>."
26301 msgstr ""
26302
26303 #. type: textblock
26304 #: ../src/guestfs-actions.pod:4197
26305 msgid "(Added in 1.5.24)"
26306 msgstr ""
26307
26308 #. type: =head2
26309 #: ../src/guestfs-actions.pod:4199
26310 msgid "guestfs_lvm_clear_filter"
26311 msgstr ""
26312
26313 #. type: verbatim
26314 #: ../src/guestfs-actions.pod:4201
26315 #, no-wrap
26316 msgid ""
26317 " int\n"
26318 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
26319 "\n"
26320 msgstr ""
26321
26322 #. type: textblock
26323 #: ../src/guestfs-actions.pod:4204
26324 msgid ""
26325 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
26326 "see every block device."
26327 msgstr ""
26328
26329 #. type: =head2
26330 #: ../src/guestfs-actions.pod:4214
26331 msgid "guestfs_lvm_remove_all"
26332 msgstr ""
26333
26334 #. type: verbatim
26335 #: ../src/guestfs-actions.pod:4216
26336 #, no-wrap
26337 msgid ""
26338 " int\n"
26339 " guestfs_lvm_remove_all (guestfs_h *g);\n"
26340 "\n"
26341 msgstr ""
26342
26343 #. type: =head2
26344 #: ../src/guestfs-actions.pod:4229
26345 msgid "guestfs_lvm_set_filter"
26346 msgstr ""
26347
26348 #. type: verbatim
26349 #: ../src/guestfs-actions.pod:4231
26350 #, no-wrap
26351 msgid ""
26352 " int\n"
26353 " guestfs_lvm_set_filter (guestfs_h *g,\n"
26354 "                         char *const *devices);\n"
26355 "\n"
26356 msgstr ""
26357
26358 #. type: =head2
26359 #: ../src/guestfs-actions.pod:4262
26360 msgid "guestfs_lvremove"
26361 msgstr ""
26362
26363 #. type: verbatim
26364 #: ../src/guestfs-actions.pod:4264
26365 #, no-wrap
26366 msgid ""
26367 " int\n"
26368 " guestfs_lvremove (guestfs_h *g,\n"
26369 "                   const char *device);\n"
26370 "\n"
26371 msgstr ""
26372
26373 #. type: textblock
26374 #: ../src/guestfs-actions.pod:4276 ../src/guestfs-actions.pod:5679
26375 #: ../src/guestfs-actions.pod:7513
26376 msgid "(Added in 1.0.13)"
26377 msgstr ""
26378
26379 #. type: =head2
26380 #: ../src/guestfs-actions.pod:4278
26381 msgid "guestfs_lvrename"
26382 msgstr ""
26383
26384 #. type: verbatim
26385 #: ../src/guestfs-actions.pod:4280
26386 #, no-wrap
26387 msgid ""
26388 " int\n"
26389 " guestfs_lvrename (guestfs_h *g,\n"
26390 "                   const char *logvol,\n"
26391 "                   const char *newlogvol);\n"
26392 "\n"
26393 msgstr ""
26394
26395 #. type: textblock
26396 #: ../src/guestfs-actions.pod:4289 ../src/guestfs-actions.pod:7526
26397 msgid "(Added in 1.0.83)"
26398 msgstr ""
26399
26400 #. type: =head2
26401 #: ../src/guestfs-actions.pod:4291
26402 msgid "guestfs_lvresize"
26403 msgstr ""
26404
26405 #. type: verbatim
26406 #: ../src/guestfs-actions.pod:4293
26407 #, no-wrap
26408 msgid ""
26409 " int\n"
26410 " guestfs_lvresize (guestfs_h *g,\n"
26411 "                   const char *device,\n"
26412 "                   int mbytes);\n"
26413 "\n"
26414 msgstr ""
26415
26416 #. type: =head2
26417 #: ../src/guestfs-actions.pod:4306
26418 msgid "guestfs_lvresize_free"
26419 msgstr ""
26420
26421 #. type: verbatim
26422 #: ../src/guestfs-actions.pod:4308
26423 #, no-wrap
26424 msgid ""
26425 " int\n"
26426 " guestfs_lvresize_free (guestfs_h *g,\n"
26427 "                        const char *lv,\n"
26428 "                        int percent);\n"
26429 "\n"
26430 msgstr ""
26431
26432 #. type: textblock
26433 #: ../src/guestfs-actions.pod:4321
26434 msgid "(Added in 1.3.3)"
26435 msgstr ""
26436
26437 #. type: =head2
26438 #: ../src/guestfs-actions.pod:4323
26439 msgid "guestfs_lvs"
26440 msgstr ""
26441
26442 #. type: verbatim
26443 #: ../src/guestfs-actions.pod:4325
26444 #, no-wrap
26445 msgid ""
26446 " char **\n"
26447 " guestfs_lvs (guestfs_h *g);\n"
26448 "\n"
26449 msgstr ""
26450
26451 #. type: textblock
26452 #: ../src/guestfs-actions.pod:4334
26453 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
26454 msgstr ""
26455
26456 #. type: =head2
26457 #: ../src/guestfs-actions.pod:4342
26458 msgid "guestfs_lvs_full"
26459 msgstr ""
26460
26461 #. type: verbatim
26462 #: ../src/guestfs-actions.pod:4344
26463 #, no-wrap
26464 msgid ""
26465 " struct guestfs_lvm_lv_list *\n"
26466 " guestfs_lvs_full (guestfs_h *g);\n"
26467 "\n"
26468 msgstr ""
26469
26470 #. type: textblock
26471 #: ../src/guestfs-actions.pod:4350
26472 msgid ""
26473 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
26474 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
26475 msgstr ""
26476
26477 #. type: =head2
26478 #: ../src/guestfs-actions.pod:4356
26479 msgid "guestfs_lvuuid"
26480 msgstr ""
26481
26482 #. type: verbatim
26483 #: ../src/guestfs-actions.pod:4358
26484 #, no-wrap
26485 msgid ""
26486 " char *\n"
26487 " guestfs_lvuuid (guestfs_h *g,\n"
26488 "                 const char *device);\n"
26489 "\n"
26490 msgstr ""
26491
26492 #. type: =head2
26493 #: ../src/guestfs-actions.pod:4369
26494 msgid "guestfs_lxattrlist"
26495 msgstr ""
26496
26497 #. type: verbatim
26498 #: ../src/guestfs-actions.pod:4371
26499 #, no-wrap
26500 msgid ""
26501 " struct guestfs_xattr_list *\n"
26502 " guestfs_lxattrlist (guestfs_h *g,\n"
26503 "                     const char *path,\n"
26504 "                     char *const *names);\n"
26505 "\n"
26506 msgstr ""
26507
26508 #. type: textblock
26509 #: ../src/guestfs-actions.pod:4390
26510 msgid ""
26511 "This call is intended for programs that want to efficiently list a directory "
26512 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
26513 "a similarly efficient call for getting standard stats.  Very long directory "
26514 "listings might cause the protocol message size to be exceeded, causing this "
26515 "call to fail.  The caller must split up such requests into smaller groups of "
26516 "names."
26517 msgstr ""
26518
26519 #. type: =head2
26520 #: ../src/guestfs-actions.pod:4404
26521 msgid "guestfs_mkdir"
26522 msgstr ""
26523
26524 #. type: verbatim
26525 #: ../src/guestfs-actions.pod:4406
26526 #, no-wrap
26527 msgid ""
26528 " int\n"
26529 " guestfs_mkdir (guestfs_h *g,\n"
26530 "                const char *path);\n"
26531 "\n"
26532 msgstr ""
26533
26534 #. type: =head2
26535 #: ../src/guestfs-actions.pod:4416
26536 msgid "guestfs_mkdir_mode"
26537 msgstr ""
26538
26539 #. type: verbatim
26540 #: ../src/guestfs-actions.pod:4418
26541 #, no-wrap
26542 msgid ""
26543 " int\n"
26544 " guestfs_mkdir_mode (guestfs_h *g,\n"
26545 "                     const char *path,\n"
26546 "                     int mode);\n"
26547 "\n"
26548 msgstr ""
26549
26550 #. type: textblock
26551 #: ../src/guestfs-actions.pod:4430
26552 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
26553 msgstr ""
26554
26555 #. type: =head2
26556 #: ../src/guestfs-actions.pod:4436
26557 msgid "guestfs_mkdir_p"
26558 msgstr ""
26559
26560 #. type: verbatim
26561 #: ../src/guestfs-actions.pod:4438
26562 #, no-wrap
26563 msgid ""
26564 " int\n"
26565 " guestfs_mkdir_p (guestfs_h *g,\n"
26566 "                  const char *path);\n"
26567 "\n"
26568 msgstr ""
26569
26570 #. type: =head2
26571 #: ../src/guestfs-actions.pod:4449
26572 msgid "guestfs_mkdtemp"
26573 msgstr ""
26574
26575 #. type: verbatim
26576 #: ../src/guestfs-actions.pod:4451
26577 #, no-wrap
26578 msgid ""
26579 " char *\n"
26580 " guestfs_mkdtemp (guestfs_h *g,\n"
26581 "                  const char *template);\n"
26582 "\n"
26583 msgstr ""
26584
26585 #. type: =head2
26586 #: ../src/guestfs-actions.pod:4479
26587 msgid "guestfs_mke2fs_J"
26588 msgstr ""
26589
26590 #. type: verbatim
26591 #: ../src/guestfs-actions.pod:4481
26592 #, no-wrap
26593 msgid ""
26594 " int\n"
26595 " guestfs_mke2fs_J (guestfs_h *g,\n"
26596 "                   const char *fstype,\n"
26597 "                   int blocksize,\n"
26598 "                   const char *device,\n"
26599 "                   const char *journal);\n"
26600 "\n"
26601 msgstr ""
26602
26603 #. type: textblock
26604 #: ../src/guestfs-actions.pod:4494
26605 msgid "See also C<guestfs_mke2journal>."
26606 msgstr ""
26607
26608 #. type: textblock
26609 #: ../src/guestfs-actions.pod:4498 ../src/guestfs-actions.pod:4516
26610 #: ../src/guestfs-actions.pod:4534 ../src/guestfs-actions.pod:4550
26611 #: ../src/guestfs-actions.pod:4564 ../src/guestfs-actions.pod:4578
26612 #: ../src/guestfs-actions.pod:4637 ../src/guestfs-actions.pod:4914
26613 msgid "(Added in 1.0.68)"
26614 msgstr ""
26615
26616 #. type: =head2
26617 #: ../src/guestfs-actions.pod:4500
26618 msgid "guestfs_mke2fs_JL"
26619 msgstr ""
26620
26621 #. type: verbatim
26622 #: ../src/guestfs-actions.pod:4502
26623 #, no-wrap
26624 msgid ""
26625 " int\n"
26626 " guestfs_mke2fs_JL (guestfs_h *g,\n"
26627 "                    const char *fstype,\n"
26628 "                    int blocksize,\n"
26629 "                    const char *device,\n"
26630 "                    const char *label);\n"
26631 "\n"
26632 msgstr ""
26633
26634 #. type: textblock
26635 #: ../src/guestfs-actions.pod:4512
26636 msgid "See also C<guestfs_mke2journal_L>."
26637 msgstr ""
26638
26639 #. type: =head2
26640 #: ../src/guestfs-actions.pod:4518
26641 msgid "guestfs_mke2fs_JU"
26642 msgstr ""
26643
26644 #. type: verbatim
26645 #: ../src/guestfs-actions.pod:4520
26646 #, no-wrap
26647 msgid ""
26648 " int\n"
26649 " guestfs_mke2fs_JU (guestfs_h *g,\n"
26650 "                    const char *fstype,\n"
26651 "                    int blocksize,\n"
26652 "                    const char *device,\n"
26653 "                    const char *uuid);\n"
26654 "\n"
26655 msgstr ""
26656
26657 #. type: textblock
26658 #: ../src/guestfs-actions.pod:4530
26659 msgid "See also C<guestfs_mke2journal_U>."
26660 msgstr ""
26661
26662 #. type: =head2
26663 #: ../src/guestfs-actions.pod:4536
26664 msgid "guestfs_mke2journal"
26665 msgstr ""
26666
26667 #. type: verbatim
26668 #: ../src/guestfs-actions.pod:4538
26669 #, no-wrap
26670 msgid ""
26671 " int\n"
26672 " guestfs_mke2journal (guestfs_h *g,\n"
26673 "                      int blocksize,\n"
26674 "                      const char *device);\n"
26675 "\n"
26676 msgstr ""
26677
26678 #. type: =head2
26679 #: ../src/guestfs-actions.pod:4552
26680 msgid "guestfs_mke2journal_L"
26681 msgstr ""
26682
26683 #. type: verbatim
26684 #: ../src/guestfs-actions.pod:4554
26685 #, no-wrap
26686 msgid ""
26687 " int\n"
26688 " guestfs_mke2journal_L (guestfs_h *g,\n"
26689 "                        int blocksize,\n"
26690 "                        const char *label,\n"
26691 "                        const char *device);\n"
26692 "\n"
26693 msgstr ""
26694
26695 #. type: =head2
26696 #: ../src/guestfs-actions.pod:4566
26697 msgid "guestfs_mke2journal_U"
26698 msgstr ""
26699
26700 #. type: verbatim
26701 #: ../src/guestfs-actions.pod:4568
26702 #, no-wrap
26703 msgid ""
26704 " int\n"
26705 " guestfs_mke2journal_U (guestfs_h *g,\n"
26706 "                        int blocksize,\n"
26707 "                        const char *uuid,\n"
26708 "                        const char *device);\n"
26709 "\n"
26710 msgstr ""
26711
26712 #. type: =head2
26713 #: ../src/guestfs-actions.pod:4580
26714 msgid "guestfs_mkfifo"
26715 msgstr ""
26716
26717 #. type: verbatim
26718 #: ../src/guestfs-actions.pod:4582
26719 #, no-wrap
26720 msgid ""
26721 " int\n"
26722 " guestfs_mkfifo (guestfs_h *g,\n"
26723 "                 int mode,\n"
26724 "                 const char *path);\n"
26725 "\n"
26726 msgstr ""
26727
26728 #. type: textblock
26729 #: ../src/guestfs-actions.pod:4587
26730 msgid ""
26731 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
26732 "is just a convenient wrapper around C<guestfs_mknod>."
26733 msgstr ""
26734
26735 #. type: =head2
26736 #: ../src/guestfs-actions.pod:4597
26737 msgid "guestfs_mkfs"
26738 msgstr ""
26739
26740 #. type: verbatim
26741 #: ../src/guestfs-actions.pod:4599
26742 #, no-wrap
26743 msgid ""
26744 " int\n"
26745 " guestfs_mkfs (guestfs_h *g,\n"
26746 "               const char *fstype,\n"
26747 "               const char *device);\n"
26748 "\n"
26749 msgstr ""
26750
26751 #. type: =head2
26752 #: ../src/guestfs-actions.pod:4612
26753 msgid "guestfs_mkfs_b"
26754 msgstr ""
26755
26756 #. type: verbatim
26757 #: ../src/guestfs-actions.pod:4614
26758 #, no-wrap
26759 msgid ""
26760 " int\n"
26761 " guestfs_mkfs_b (guestfs_h *g,\n"
26762 "                 const char *fstype,\n"
26763 "                 int blocksize,\n"
26764 "                 const char *device);\n"
26765 "\n"
26766 msgstr ""
26767
26768 #. type: textblock
26769 #: ../src/guestfs-actions.pod:4620
26770 msgid ""
26771 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
26772 "block size of the resulting filesystem.  Supported block sizes depend on the "
26773 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
26774 msgstr ""
26775
26776 #. type: textblock
26777 #: ../src/guestfs-actions.pod:4630
26778 msgid ""
26779 "This function is deprecated.  In new code, use the L</guestfs_mkfs_opts> "
26780 "call instead."
26781 msgstr ""
26782
26783 #. type: =head2
26784 #: ../src/guestfs-actions.pod:4639
26785 msgid "guestfs_mkfs_opts"
26786 msgstr ""
26787
26788 #. type: verbatim
26789 #: ../src/guestfs-actions.pod:4641
26790 #, no-wrap
26791 msgid ""
26792 " int\n"
26793 " guestfs_mkfs_opts (guestfs_h *g,\n"
26794 "                    const char *fstype,\n"
26795 "                    const char *device,\n"
26796 "                    ...);\n"
26797 "\n"
26798 msgstr ""
26799
26800 #. type: verbatim
26801 #: ../src/guestfs-actions.pod:4652
26802 #, no-wrap
26803 msgid ""
26804 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
26805 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
26806 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
26807 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
26808 "\n"
26809 msgstr ""
26810
26811 #. type: textblock
26812 #: ../src/guestfs-actions.pod:4700
26813 msgid "(Added in 1.7.19)"
26814 msgstr ""
26815
26816 #. type: =head2
26817 #: ../src/guestfs-actions.pod:4702
26818 msgid "guestfs_mkfs_opts_va"
26819 msgstr ""
26820
26821 #. type: verbatim
26822 #: ../src/guestfs-actions.pod:4704
26823 #, no-wrap
26824 msgid ""
26825 " int\n"
26826 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
26827 "                       const char *fstype,\n"
26828 "                       const char *device,\n"
26829 "                       va_list args);\n"
26830 "\n"
26831 msgstr ""
26832
26833 #. type: textblock
26834 #: ../src/guestfs-actions.pod:4710
26835 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
26836 msgstr ""
26837
26838 #. type: =head2
26839 #: ../src/guestfs-actions.pod:4714
26840 msgid "guestfs_mkfs_opts_argv"
26841 msgstr ""
26842
26843 #. type: verbatim
26844 #: ../src/guestfs-actions.pod:4716
26845 #, no-wrap
26846 msgid ""
26847 " int\n"
26848 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
26849 "                         const char *fstype,\n"
26850 "                         const char *device,\n"
26851 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
26852 "\n"
26853 msgstr ""
26854
26855 #. type: textblock
26856 #: ../src/guestfs-actions.pod:4722
26857 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
26858 msgstr ""
26859
26860 #. type: =head2
26861 #: ../src/guestfs-actions.pod:4726
26862 msgid "guestfs_mkmountpoint"
26863 msgstr ""
26864
26865 #. type: verbatim
26866 #: ../src/guestfs-actions.pod:4728
26867 #, no-wrap
26868 msgid ""
26869 " int\n"
26870 " guestfs_mkmountpoint (guestfs_h *g,\n"
26871 "                       const char *exemptpath);\n"
26872 "\n"
26873 msgstr ""
26874
26875 #. type: textblock
26876 #: ../src/guestfs-actions.pod:4732
26877 msgid ""
26878 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
26879 "that can be used to create extra mountpoints before mounting the first "
26880 "filesystem."
26881 msgstr ""
26882
26883 #. type: textblock
26884 #: ../src/guestfs-actions.pod:4756
26885 msgid ""
26886 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
26887 "may get unexpected errors if you try to mix these calls.  It is safest to "
26888 "manually unmount filesystems and remove mountpoints after use."
26889 msgstr ""
26890
26891 #. type: textblock
26892 #: ../src/guestfs-actions.pod:4760
26893 msgid ""
26894 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
26895 "first, so for this to work for manual mountpoints, you must ensure that the "
26896 "innermost mountpoints have the longest pathnames, as in the example code "
26897 "above."
26898 msgstr ""
26899
26900 #. type: textblock
26901 #: ../src/guestfs-actions.pod:4767
26902 msgid ""
26903 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
26904 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
26905 "can also trigger these issues."
26906 msgstr ""
26907
26908 #. type: textblock
26909 #: ../src/guestfs-actions.pod:4773 ../src/guestfs-actions.pod:5089
26910 #: ../src/guestfs-actions.pod:6099
26911 msgid "(Added in 1.0.62)"
26912 msgstr ""
26913
26914 #. type: =head2
26915 #: ../src/guestfs-actions.pod:4775
26916 msgid "guestfs_mknod"
26917 msgstr ""
26918
26919 #. type: verbatim
26920 #: ../src/guestfs-actions.pod:4777
26921 #, no-wrap
26922 msgid ""
26923 " int\n"
26924 " guestfs_mknod (guestfs_h *g,\n"
26925 "                int mode,\n"
26926 "                int devmajor,\n"
26927 "                int devminor,\n"
26928 "                const char *path);\n"
26929 "\n"
26930 msgstr ""
26931
26932 #. type: textblock
26933 #: ../src/guestfs-actions.pod:4792
26934 msgid ""
26935 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
26936 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
26937 "regular file).  These constants are available in the standard Linux header "
26938 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
26939 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
26940 "the appropriate constant for you."
26941 msgstr ""
26942
26943 #. type: =head2
26944 #: ../src/guestfs-actions.pod:4806
26945 msgid "guestfs_mknod_b"
26946 msgstr ""
26947
26948 #. type: verbatim
26949 #: ../src/guestfs-actions.pod:4808
26950 #, no-wrap
26951 msgid ""
26952 " int\n"
26953 " guestfs_mknod_b (guestfs_h *g,\n"
26954 "                  int mode,\n"
26955 "                  int devmajor,\n"
26956 "                  int devminor,\n"
26957 "                  const char *path);\n"
26958 "\n"
26959 msgstr ""
26960
26961 #. type: textblock
26962 #: ../src/guestfs-actions.pod:4815
26963 msgid ""
26964 "This call creates a block device node called C<path> with mode C<mode> and "
26965 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
26966 "wrapper around C<guestfs_mknod>."
26967 msgstr ""
26968
26969 #. type: =head2
26970 #: ../src/guestfs-actions.pod:4825
26971 msgid "guestfs_mknod_c"
26972 msgstr ""
26973
26974 #. type: verbatim
26975 #: ../src/guestfs-actions.pod:4827
26976 #, no-wrap
26977 msgid ""
26978 " int\n"
26979 " guestfs_mknod_c (guestfs_h *g,\n"
26980 "                  int mode,\n"
26981 "                  int devmajor,\n"
26982 "                  int devminor,\n"
26983 "                  const char *path);\n"
26984 "\n"
26985 msgstr ""
26986
26987 #. type: textblock
26988 #: ../src/guestfs-actions.pod:4834
26989 msgid ""
26990 "This call creates a char device node called C<path> with mode C<mode> and "
26991 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
26992 "wrapper around C<guestfs_mknod>."
26993 msgstr ""
26994
26995 #. type: =head2
26996 #: ../src/guestfs-actions.pod:4844
26997 msgid "guestfs_mkswap"
26998 msgstr ""
26999
27000 #. type: verbatim
27001 #: ../src/guestfs-actions.pod:4846
27002 #, no-wrap
27003 msgid ""
27004 " int\n"
27005 " guestfs_mkswap (guestfs_h *g,\n"
27006 "                 const char *device);\n"
27007 "\n"
27008 msgstr ""
27009
27010 #. type: =head2
27011 #: ../src/guestfs-actions.pod:4856
27012 msgid "guestfs_mkswap_L"
27013 msgstr ""
27014
27015 #. type: verbatim
27016 #: ../src/guestfs-actions.pod:4858
27017 #, no-wrap
27018 msgid ""
27019 " int\n"
27020 " guestfs_mkswap_L (guestfs_h *g,\n"
27021 "                   const char *label,\n"
27022 "                   const char *device);\n"
27023 "\n"
27024 msgstr ""
27025
27026 #. type: =head2
27027 #: ../src/guestfs-actions.pod:4873
27028 msgid "guestfs_mkswap_U"
27029 msgstr ""
27030
27031 #. type: verbatim
27032 #: ../src/guestfs-actions.pod:4875
27033 #, no-wrap
27034 msgid ""
27035 " int\n"
27036 " guestfs_mkswap_U (guestfs_h *g,\n"
27037 "                   const char *uuid,\n"
27038 "                   const char *device);\n"
27039 "\n"
27040 msgstr ""
27041
27042 #. type: =head2
27043 #: ../src/guestfs-actions.pod:4886
27044 msgid "guestfs_mkswap_file"
27045 msgstr ""
27046
27047 #. type: verbatim
27048 #: ../src/guestfs-actions.pod:4888
27049 #, no-wrap
27050 msgid ""
27051 " int\n"
27052 " guestfs_mkswap_file (guestfs_h *g,\n"
27053 "                      const char *path);\n"
27054 "\n"
27055 msgstr ""
27056
27057 #. type: textblock
27058 #: ../src/guestfs-actions.pod:4894
27059 msgid ""
27060 "This command just writes a swap file signature to an existing file.  To "
27061 "create the file itself, use something like C<guestfs_fallocate>."
27062 msgstr ""
27063
27064 #. type: =head2
27065 #: ../src/guestfs-actions.pod:4901
27066 msgid "guestfs_modprobe"
27067 msgstr ""
27068
27069 #. type: verbatim
27070 #: ../src/guestfs-actions.pod:4903
27071 #, no-wrap
27072 msgid ""
27073 " int\n"
27074 " guestfs_modprobe (guestfs_h *g,\n"
27075 "                   const char *modulename);\n"
27076 "\n"
27077 msgstr ""
27078
27079 #. type: =head2
27080 #: ../src/guestfs-actions.pod:4916
27081 msgid "guestfs_mount"
27082 msgstr ""
27083
27084 #. type: verbatim
27085 #: ../src/guestfs-actions.pod:4918
27086 #, no-wrap
27087 msgid ""
27088 " int\n"
27089 " guestfs_mount (guestfs_h *g,\n"
27090 "                const char *device,\n"
27091 "                const char *mountpoint);\n"
27092 "\n"
27093 msgstr ""
27094
27095 #. type: textblock
27096 #: ../src/guestfs-actions.pod:4937
27097 msgid ""
27098 "B<Important note:> When you use this call, the filesystem options C<sync> "
27099 "and C<noatime> are set implicitly.  This was originally done because we "
27100 "thought it would improve reliability, but it turns out that I<-o sync> has a "
27101 "very large negative performance impact and negligible effect on "
27102 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
27103 "in any code that needs performance, and instead use C<guestfs_mount_options> "
27104 "(use an empty string for the first parameter if you don't want any options)."
27105 msgstr ""
27106
27107 #. type: textblock
27108 #: ../src/guestfs-actions.pod:4949
27109 msgid ""
27110 "This function is deprecated.  In new code, use the L</guestfs_mount_options> "
27111 "call instead."
27112 msgstr ""
27113
27114 #. type: =head2
27115 #: ../src/guestfs-actions.pod:4958
27116 msgid "guestfs_mount_9p"
27117 msgstr ""
27118
27119 #. type: verbatim
27120 #: ../src/guestfs-actions.pod:4960
27121 #, no-wrap
27122 msgid ""
27123 " int\n"
27124 " guestfs_mount_9p (guestfs_h *g,\n"
27125 "                   const char *mounttag,\n"
27126 "                   const char *mountpoint,\n"
27127 "                   ...);\n"
27128 "\n"
27129 msgstr ""
27130
27131 #. type: verbatim
27132 #: ../src/guestfs-actions.pod:4971
27133 #, no-wrap
27134 msgid ""
27135 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
27136 "\n"
27137 msgstr ""
27138
27139 #. type: =head2
27140 #: ../src/guestfs-actions.pod:4984
27141 msgid "guestfs_mount_9p_va"
27142 msgstr ""
27143
27144 #. type: verbatim
27145 #: ../src/guestfs-actions.pod:4986
27146 #, no-wrap
27147 msgid ""
27148 " int\n"
27149 " guestfs_mount_9p_va (guestfs_h *g,\n"
27150 "                      const char *mounttag,\n"
27151 "                      const char *mountpoint,\n"
27152 "                      va_list args);\n"
27153 "\n"
27154 msgstr ""
27155
27156 #. type: textblock
27157 #: ../src/guestfs-actions.pod:4992
27158 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
27159 msgstr ""
27160
27161 #. type: =head2
27162 #: ../src/guestfs-actions.pod:4996
27163 msgid "guestfs_mount_9p_argv"
27164 msgstr ""
27165
27166 #. type: verbatim
27167 #: ../src/guestfs-actions.pod:4998
27168 #, no-wrap
27169 msgid ""
27170 " int\n"
27171 " guestfs_mount_9p_argv (guestfs_h *g,\n"
27172 "                        const char *mounttag,\n"
27173 "                        const char *mountpoint,\n"
27174 "                        const struct guestfs_mount_9p_argv *optargs);\n"
27175 "\n"
27176 msgstr ""
27177
27178 #. type: textblock
27179 #: ../src/guestfs-actions.pod:5004
27180 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
27181 msgstr ""
27182
27183 #. type: =head2
27184 #: ../src/guestfs-actions.pod:5008
27185 msgid "guestfs_mount_loop"
27186 msgstr ""
27187
27188 #. type: verbatim
27189 #: ../src/guestfs-actions.pod:5010
27190 #, no-wrap
27191 msgid ""
27192 " int\n"
27193 " guestfs_mount_loop (guestfs_h *g,\n"
27194 "                     const char *file,\n"
27195 "                     const char *mountpoint);\n"
27196 "\n"
27197 msgstr ""
27198
27199 #. type: =head2
27200 #: ../src/guestfs-actions.pod:5023
27201 msgid "guestfs_mount_options"
27202 msgstr ""
27203
27204 #. type: verbatim
27205 #: ../src/guestfs-actions.pod:5025
27206 #, no-wrap
27207 msgid ""
27208 " int\n"
27209 " guestfs_mount_options (guestfs_h *g,\n"
27210 "                        const char *options,\n"
27211 "                        const char *device,\n"
27212 "                        const char *mountpoint);\n"
27213 "\n"
27214 msgstr ""
27215
27216 #. type: textblock
27217 #: ../src/guestfs-actions.pod:5031
27218 msgid ""
27219 "This is the same as the C<guestfs_mount> command, but it allows you to set "
27220 "the mount options as for the L<mount(8)> I<-o> flag."
27221 msgstr ""
27222
27223 #. type: textblock
27224 #: ../src/guestfs-actions.pod:5041 ../src/guestfs-actions.pod:5055
27225 #: ../src/guestfs-actions.pod:5072
27226 msgid "(Added in 1.0.10)"
27227 msgstr ""
27228
27229 #. type: =head2
27230 #: ../src/guestfs-actions.pod:5043
27231 msgid "guestfs_mount_ro"
27232 msgstr ""
27233
27234 #. type: verbatim
27235 #: ../src/guestfs-actions.pod:5045
27236 #, no-wrap
27237 msgid ""
27238 " int\n"
27239 " guestfs_mount_ro (guestfs_h *g,\n"
27240 "                   const char *device,\n"
27241 "                   const char *mountpoint);\n"
27242 "\n"
27243 msgstr ""
27244
27245 #. type: textblock
27246 #: ../src/guestfs-actions.pod:5050
27247 msgid ""
27248 "This is the same as the C<guestfs_mount> command, but it mounts the "
27249 "filesystem with the read-only (I<-o ro>) flag."
27250 msgstr ""
27251
27252 #. type: =head2
27253 #: ../src/guestfs-actions.pod:5057
27254 msgid "guestfs_mount_vfs"
27255 msgstr ""
27256
27257 #. type: verbatim
27258 #: ../src/guestfs-actions.pod:5059
27259 #, no-wrap
27260 msgid ""
27261 " int\n"
27262 " guestfs_mount_vfs (guestfs_h *g,\n"
27263 "                    const char *options,\n"
27264 "                    const char *vfstype,\n"
27265 "                    const char *device,\n"
27266 "                    const char *mountpoint);\n"
27267 "\n"
27268 msgstr ""
27269
27270 #. type: textblock
27271 #: ../src/guestfs-actions.pod:5066
27272 msgid ""
27273 "This is the same as the C<guestfs_mount> command, but it allows you to set "
27274 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
27275 "t> flags."
27276 msgstr ""
27277
27278 #. type: =head2
27279 #: ../src/guestfs-actions.pod:5074
27280 msgid "guestfs_mountpoints"
27281 msgstr ""
27282
27283 #. type: verbatim
27284 #: ../src/guestfs-actions.pod:5076
27285 #, no-wrap
27286 msgid ""
27287 " char **\n"
27288 " guestfs_mountpoints (guestfs_h *g);\n"
27289 "\n"
27290 msgstr ""
27291
27292 #. type: textblock
27293 #: ../src/guestfs-actions.pod:5079
27294 msgid ""
27295 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
27296 "devices.  This one returns a hash table (map) of device name to directory "
27297 "where the device is mounted."
27298 msgstr ""
27299
27300 #. type: =head2
27301 #: ../src/guestfs-actions.pod:5091
27302 msgid "guestfs_mounts"
27303 msgstr ""
27304
27305 #. type: verbatim
27306 #: ../src/guestfs-actions.pod:5093
27307 #, no-wrap
27308 msgid ""
27309 " char **\n"
27310 " guestfs_mounts (guestfs_h *g);\n"
27311 "\n"
27312 msgstr ""
27313
27314 #. type: textblock
27315 #: ../src/guestfs-actions.pod:5101
27316 msgid "See also: C<guestfs_mountpoints>"
27317 msgstr ""
27318
27319 #. type: =head2
27320 #: ../src/guestfs-actions.pod:5109
27321 msgid "guestfs_mv"
27322 msgstr ""
27323
27324 #. type: verbatim
27325 #: ../src/guestfs-actions.pod:5111
27326 #, no-wrap
27327 msgid ""
27328 " int\n"
27329 " guestfs_mv (guestfs_h *g,\n"
27330 "             const char *src,\n"
27331 "             const char *dest);\n"
27332 "\n"
27333 msgstr ""
27334
27335 #. type: =head2
27336 #: ../src/guestfs-actions.pod:5123
27337 msgid "guestfs_ntfs_3g_probe"
27338 msgstr ""
27339
27340 #. type: verbatim
27341 #: ../src/guestfs-actions.pod:5125
27342 #, no-wrap
27343 msgid ""
27344 " int\n"
27345 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
27346 "                        int rw,\n"
27347 "                        const char *device);\n"
27348 "\n"
27349 msgstr ""
27350
27351 #. type: textblock
27352 #: ../src/guestfs-actions.pod:5144
27353 msgid "(Added in 1.0.43)"
27354 msgstr ""
27355
27356 #. type: =head2
27357 #: ../src/guestfs-actions.pod:5146
27358 msgid "guestfs_ntfsresize"
27359 msgstr ""
27360
27361 #. type: verbatim
27362 #: ../src/guestfs-actions.pod:5148
27363 #, no-wrap
27364 msgid ""
27365 " int\n"
27366 " guestfs_ntfsresize (guestfs_h *g,\n"
27367 "                     const char *device);\n"
27368 "\n"
27369 msgstr ""
27370
27371 #. type: textblock
27372 #: ../src/guestfs-actions.pod:5167 ../src/guestfs-actions.pod:5257
27373 msgid ""
27374 "This function is deprecated.  In new code, use the L</"
27375 "guestfs_ntfsresize_opts> call instead."
27376 msgstr ""
27377
27378 #. type: =head2
27379 #: ../src/guestfs-actions.pod:5176
27380 msgid "guestfs_ntfsresize_opts"
27381 msgstr ""
27382
27383 #. type: verbatim
27384 #: ../src/guestfs-actions.pod:5178
27385 #, no-wrap
27386 msgid ""
27387 " int\n"
27388 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
27389 "                          const char *device,\n"
27390 "                          ...);\n"
27391 "\n"
27392 msgstr ""
27393
27394 #. type: verbatim
27395 #: ../src/guestfs-actions.pod:5188
27396 #, no-wrap
27397 msgid ""
27398 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
27399 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
27400 "\n"
27401 msgstr ""
27402
27403 #. type: textblock
27404 #: ../src/guestfs-actions.pod:5208
27405 msgid ""
27406 "After the resize operation, the filesystem is always marked as requiring a "
27407 "consistency check (for safety).  You have to boot into Windows to perform "
27408 "this check and clear this condition.  If you I<don't> set the C<force> "
27409 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
27410 "times on a single filesystem without booting into Windows between each "
27411 "resize."
27412 msgstr ""
27413
27414 #. type: =head2
27415 #: ../src/guestfs-actions.pod:5223
27416 msgid "guestfs_ntfsresize_opts_va"
27417 msgstr ""
27418
27419 #. type: verbatim
27420 #: ../src/guestfs-actions.pod:5225
27421 #, no-wrap
27422 msgid ""
27423 " int\n"
27424 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
27425 "                             const char *device,\n"
27426 "                             va_list args);\n"
27427 "\n"
27428 msgstr ""
27429
27430 #. type: textblock
27431 #: ../src/guestfs-actions.pod:5230
27432 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
27433 msgstr ""
27434
27435 #. type: =head2
27436 #: ../src/guestfs-actions.pod:5234
27437 msgid "guestfs_ntfsresize_opts_argv"
27438 msgstr ""
27439
27440 #. type: verbatim
27441 #: ../src/guestfs-actions.pod:5236
27442 #, no-wrap
27443 msgid ""
27444 " int\n"
27445 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
27446 "                               const char *device,\n"
27447 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
27448 "\n"
27449 msgstr ""
27450
27451 #. type: textblock
27452 #: ../src/guestfs-actions.pod:5241
27453 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
27454 msgstr ""
27455
27456 #. type: =head2
27457 #: ../src/guestfs-actions.pod:5245
27458 msgid "guestfs_ntfsresize_size"
27459 msgstr ""
27460
27461 #. type: verbatim
27462 #: ../src/guestfs-actions.pod:5247
27463 #, no-wrap
27464 msgid ""
27465 " int\n"
27466 " guestfs_ntfsresize_size (guestfs_h *g,\n"
27467 "                          const char *device,\n"
27468 "                          int64_t size);\n"
27469 "\n"
27470 msgstr ""
27471
27472 #. type: textblock
27473 #: ../src/guestfs-actions.pod:5252
27474 msgid ""
27475 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
27476 "to specify the new size (in bytes) explicitly."
27477 msgstr ""
27478
27479 #. type: textblock
27480 #: ../src/guestfs-actions.pod:5264 ../src/guestfs-actions.pod:5706
27481 #: ../src/guestfs-actions.pod:5779 ../src/guestfs-actions.pod:6047
27482 #: ../src/guestfs-actions.pod:7670
27483 msgid "(Added in 1.3.14)"
27484 msgstr ""
27485
27486 #. type: =head2
27487 #: ../src/guestfs-actions.pod:5266
27488 msgid "guestfs_part_add"
27489 msgstr ""
27490
27491 #. type: verbatim
27492 #: ../src/guestfs-actions.pod:5268
27493 #, no-wrap
27494 msgid ""
27495 " int\n"
27496 " guestfs_part_add (guestfs_h *g,\n"
27497 "                   const char *device,\n"
27498 "                   const char *prlogex,\n"
27499 "                   int64_t startsect,\n"
27500 "                   int64_t endsect);\n"
27501 "\n"
27502 msgstr ""
27503
27504 #. type: textblock
27505 #: ../src/guestfs-actions.pod:5275
27506 msgid ""
27507 "This command adds a partition to C<device>.  If there is no partition table "
27508 "on the device, call C<guestfs_part_init> first."
27509 msgstr ""
27510
27511 #. type: textblock
27512 #: ../src/guestfs-actions.pod:5287
27513 msgid ""
27514 "Creating a partition which covers the whole disk is not so easy.  Use "
27515 "C<guestfs_part_disk> to do that."
27516 msgstr ""
27517
27518 #. type: textblock
27519 #: ../src/guestfs-actions.pod:5292 ../src/guestfs-actions.pod:5330
27520 #: ../src/guestfs-actions.pod:5383 ../src/guestfs-actions.pod:5467
27521 #: ../src/guestfs-actions.pod:5505 ../src/guestfs-actions.pod:5524
27522 #: ../src/guestfs-actions.pod:5564
27523 msgid "(Added in 1.0.78)"
27524 msgstr ""
27525
27526 #. type: =head2
27527 #: ../src/guestfs-actions.pod:5294
27528 msgid "guestfs_part_del"
27529 msgstr ""
27530
27531 #. type: verbatim
27532 #: ../src/guestfs-actions.pod:5296
27533 #, no-wrap
27534 msgid ""
27535 " int\n"
27536 " guestfs_part_del (guestfs_h *g,\n"
27537 "                   const char *device,\n"
27538 "                   int partnum);\n"
27539 "\n"
27540 msgstr ""
27541
27542 #. type: =head2
27543 #: ../src/guestfs-actions.pod:5311
27544 msgid "guestfs_part_disk"
27545 msgstr ""
27546
27547 #. type: verbatim
27548 #: ../src/guestfs-actions.pod:5313
27549 #, no-wrap
27550 msgid ""
27551 " int\n"
27552 " guestfs_part_disk (guestfs_h *g,\n"
27553 "                    const char *device,\n"
27554 "                    const char *parttype);\n"
27555 "\n"
27556 msgstr ""
27557
27558 #. type: textblock
27559 #: ../src/guestfs-actions.pod:5318
27560 msgid ""
27561 "This command is simply a combination of C<guestfs_part_init> followed by "
27562 "C<guestfs_part_add> to create a single primary partition covering the whole "
27563 "disk."
27564 msgstr ""
27565
27566 #. type: textblock
27567 #: ../src/guestfs-actions.pod:5322
27568 msgid ""
27569 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
27570 "possible values are described in C<guestfs_part_init>."
27571 msgstr ""
27572
27573 #. type: =head2
27574 #: ../src/guestfs-actions.pod:5332
27575 msgid "guestfs_part_get_bootable"
27576 msgstr ""
27577
27578 #. type: verbatim
27579 #: ../src/guestfs-actions.pod:5334
27580 #, no-wrap
27581 msgid ""
27582 " int\n"
27583 " guestfs_part_get_bootable (guestfs_h *g,\n"
27584 "                            const char *device,\n"
27585 "                            int partnum);\n"
27586 "\n"
27587 msgstr ""
27588
27589 #. type: textblock
27590 #: ../src/guestfs-actions.pod:5342
27591 msgid "See also C<guestfs_part_set_bootable>."
27592 msgstr ""
27593
27594 #. type: =head2
27595 #: ../src/guestfs-actions.pod:5348
27596 msgid "guestfs_part_get_mbr_id"
27597 msgstr ""
27598
27599 #. type: verbatim
27600 #: ../src/guestfs-actions.pod:5350
27601 #, no-wrap
27602 msgid ""
27603 " int\n"
27604 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
27605 "                          const char *device,\n"
27606 "                          int partnum);\n"
27607 "\n"
27608 msgstr ""
27609
27610 #. type: textblock
27611 #: ../src/guestfs-actions.pod:5358 ../src/guestfs-actions.pod:5540
27612 msgid ""
27613 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
27614 "undefined results for other partition table types (see "
27615 "C<guestfs_part_get_parttype>)."
27616 msgstr ""
27617
27618 #. type: =head2
27619 #: ../src/guestfs-actions.pod:5366
27620 msgid "guestfs_part_get_parttype"
27621 msgstr ""
27622
27623 #. type: verbatim
27624 #: ../src/guestfs-actions.pod:5368
27625 #, no-wrap
27626 msgid ""
27627 " char *\n"
27628 " guestfs_part_get_parttype (guestfs_h *g,\n"
27629 "                            const char *device);\n"
27630 "\n"
27631 msgstr ""
27632
27633 #. type: textblock
27634 #: ../src/guestfs-actions.pod:5375
27635 msgid ""
27636 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
27637 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
27638 "possible, although unusual.  See C<guestfs_part_init> for a full list."
27639 msgstr ""
27640
27641 #. type: =head2
27642 #: ../src/guestfs-actions.pod:5385
27643 msgid "guestfs_part_init"
27644 msgstr ""
27645
27646 #. type: verbatim
27647 #: ../src/guestfs-actions.pod:5387
27648 #, no-wrap
27649 msgid ""
27650 " int\n"
27651 " guestfs_part_init (guestfs_h *g,\n"
27652 "                    const char *device,\n"
27653 "                    const char *parttype);\n"
27654 "\n"
27655 msgstr ""
27656
27657 #. type: textblock
27658 #: ../src/guestfs-actions.pod:5396
27659 msgid ""
27660 "Initially there are no partitions.  Following this, you should call "
27661 "C<guestfs_part_add> for each partition required."
27662 msgstr ""
27663
27664 #. type: =head2
27665 #: ../src/guestfs-actions.pod:5469
27666 msgid "guestfs_part_list"
27667 msgstr ""
27668
27669 #. type: verbatim
27670 #: ../src/guestfs-actions.pod:5471
27671 #, no-wrap
27672 msgid ""
27673 " struct guestfs_partition_list *\n"
27674 " guestfs_part_list (guestfs_h *g,\n"
27675 "                    const char *device);\n"
27676 "\n"
27677 msgstr ""
27678
27679 #. type: textblock
27680 #: ../src/guestfs-actions.pod:5488
27681 msgid ""
27682 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
27683 "the device's sector size, see C<guestfs_blockdev_getss>."
27684 msgstr ""
27685
27686 #. type: textblock
27687 #: ../src/guestfs-actions.pod:5501
27688 msgid ""
27689 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
27690 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
27691 "use>."
27692 msgstr ""
27693
27694 #. type: =head2
27695 #: ../src/guestfs-actions.pod:5507
27696 msgid "guestfs_part_set_bootable"
27697 msgstr ""
27698
27699 #. type: verbatim
27700 #: ../src/guestfs-actions.pod:5509
27701 #, no-wrap
27702 msgid ""
27703 " int\n"
27704 " guestfs_part_set_bootable (guestfs_h *g,\n"
27705 "                            const char *device,\n"
27706 "                            int partnum,\n"
27707 "                            int bootable);\n"
27708 "\n"
27709 msgstr ""
27710
27711 #. type: =head2
27712 #: ../src/guestfs-actions.pod:5526
27713 msgid "guestfs_part_set_mbr_id"
27714 msgstr ""
27715
27716 #. type: verbatim
27717 #: ../src/guestfs-actions.pod:5528
27718 #, no-wrap
27719 msgid ""
27720 " int\n"
27721 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
27722 "                          const char *device,\n"
27723 "                          int partnum,\n"
27724 "                          int idbyte);\n"
27725 "\n"
27726 msgstr ""
27727
27728 #. type: =head2
27729 #: ../src/guestfs-actions.pod:5548
27730 msgid "guestfs_part_set_name"
27731 msgstr ""
27732
27733 #. type: verbatim
27734 #: ../src/guestfs-actions.pod:5550
27735 #, no-wrap
27736 msgid ""
27737 " int\n"
27738 " guestfs_part_set_name (guestfs_h *g,\n"
27739 "                        const char *device,\n"
27740 "                        int partnum,\n"
27741 "                        const char *name);\n"
27742 "\n"
27743 msgstr ""
27744
27745 #. type: =head2
27746 #: ../src/guestfs-actions.pod:5566
27747 msgid "guestfs_part_to_dev"
27748 msgstr ""
27749
27750 #. type: verbatim
27751 #: ../src/guestfs-actions.pod:5568
27752 #, no-wrap
27753 msgid ""
27754 " char *\n"
27755 " guestfs_part_to_dev (guestfs_h *g,\n"
27756 "                      const char *partition);\n"
27757 "\n"
27758 msgstr ""
27759
27760 #. type: textblock
27761 #: ../src/guestfs-actions.pod:5576
27762 msgid ""
27763 "The named partition must exist, for example as a string returned from "
27764 "C<guestfs_list_partitions>."
27765 msgstr ""
27766
27767 #. type: =head2
27768 #: ../src/guestfs-actions.pod:5584
27769 msgid "guestfs_ping_daemon"
27770 msgstr ""
27771
27772 #. type: verbatim
27773 #: ../src/guestfs-actions.pod:5586
27774 #, no-wrap
27775 msgid ""
27776 " int\n"
27777 " guestfs_ping_daemon (guestfs_h *g);\n"
27778 "\n"
27779 msgstr ""
27780
27781 #. type: =head2
27782 #: ../src/guestfs-actions.pod:5598
27783 msgid "guestfs_pread"
27784 msgstr ""
27785
27786 #. type: verbatim
27787 #: ../src/guestfs-actions.pod:5600
27788 #, no-wrap
27789 msgid ""
27790 " char *\n"
27791 " guestfs_pread (guestfs_h *g,\n"
27792 "                const char *path,\n"
27793 "                int count,\n"
27794 "                int64_t offset,\n"
27795 "                size_t *size_r);\n"
27796 "\n"
27797 msgstr ""
27798
27799 #. type: textblock
27800 #: ../src/guestfs-actions.pod:5613
27801 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
27802 msgstr ""
27803
27804 #. type: =head2
27805 #: ../src/guestfs-actions.pod:5624
27806 msgid "guestfs_pread_device"
27807 msgstr ""
27808
27809 #. type: verbatim
27810 #: ../src/guestfs-actions.pod:5626
27811 #, no-wrap
27812 msgid ""
27813 " char *\n"
27814 " guestfs_pread_device (guestfs_h *g,\n"
27815 "                       const char *device,\n"
27816 "                       int count,\n"
27817 "                       int64_t offset,\n"
27818 "                       size_t *size_r);\n"
27819 "\n"
27820 msgstr ""
27821
27822 #. type: textblock
27823 #: ../src/guestfs-actions.pod:5639
27824 msgid "See also C<guestfs_pread>."
27825 msgstr ""
27826
27827 #. type: textblock
27828 #: ../src/guestfs-actions.pod:5648
27829 msgid "(Added in 1.5.21)"
27830 msgstr ""
27831
27832 #. type: =head2
27833 #: ../src/guestfs-actions.pod:5650
27834 msgid "guestfs_pvcreate"
27835 msgstr ""
27836
27837 #. type: verbatim
27838 #: ../src/guestfs-actions.pod:5652
27839 #, no-wrap
27840 msgid ""
27841 " int\n"
27842 " guestfs_pvcreate (guestfs_h *g,\n"
27843 "                   const char *device);\n"
27844 "\n"
27845 msgstr ""
27846
27847 #. type: =head2
27848 #: ../src/guestfs-actions.pod:5664
27849 msgid "guestfs_pvremove"
27850 msgstr ""
27851
27852 #. type: verbatim
27853 #: ../src/guestfs-actions.pod:5666
27854 #, no-wrap
27855 msgid ""
27856 " int\n"
27857 " guestfs_pvremove (guestfs_h *g,\n"
27858 "                   const char *device);\n"
27859 "\n"
27860 msgstr ""
27861
27862 #. type: =head2
27863 #: ../src/guestfs-actions.pod:5681
27864 msgid "guestfs_pvresize"
27865 msgstr ""
27866
27867 #. type: verbatim
27868 #: ../src/guestfs-actions.pod:5683
27869 #, no-wrap
27870 msgid ""
27871 " int\n"
27872 " guestfs_pvresize (guestfs_h *g,\n"
27873 "                   const char *device);\n"
27874 "\n"
27875 msgstr ""
27876
27877 #. type: =head2
27878 #: ../src/guestfs-actions.pod:5694
27879 msgid "guestfs_pvresize_size"
27880 msgstr ""
27881
27882 #. type: verbatim
27883 #: ../src/guestfs-actions.pod:5696
27884 #, no-wrap
27885 msgid ""
27886 " int\n"
27887 " guestfs_pvresize_size (guestfs_h *g,\n"
27888 "                        const char *device,\n"
27889 "                        int64_t size);\n"
27890 "\n"
27891 msgstr ""
27892
27893 #. type: textblock
27894 #: ../src/guestfs-actions.pod:5701
27895 msgid ""
27896 "This command is the same as C<guestfs_pvresize> except that it allows you to "
27897 "specify the new size (in bytes) explicitly."
27898 msgstr ""
27899
27900 #. type: =head2
27901 #: ../src/guestfs-actions.pod:5708
27902 msgid "guestfs_pvs"
27903 msgstr ""
27904
27905 #. type: verbatim
27906 #: ../src/guestfs-actions.pod:5710
27907 #, no-wrap
27908 msgid ""
27909 " char **\n"
27910 " guestfs_pvs (guestfs_h *g);\n"
27911 "\n"
27912 msgstr ""
27913
27914 #. type: textblock
27915 #: ../src/guestfs-actions.pod:5719
27916 msgid "See also C<guestfs_pvs_full>."
27917 msgstr ""
27918
27919 #. type: =head2
27920 #: ../src/guestfs-actions.pod:5727
27921 msgid "guestfs_pvs_full"
27922 msgstr ""
27923
27924 #. type: verbatim
27925 #: ../src/guestfs-actions.pod:5729
27926 #, no-wrap
27927 msgid ""
27928 " struct guestfs_lvm_pv_list *\n"
27929 " guestfs_pvs_full (guestfs_h *g);\n"
27930 "\n"
27931 msgstr ""
27932
27933 #. type: textblock
27934 #: ../src/guestfs-actions.pod:5735
27935 msgid ""
27936 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
27937 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
27938 msgstr ""
27939
27940 #. type: =head2
27941 #: ../src/guestfs-actions.pod:5741
27942 msgid "guestfs_pvuuid"
27943 msgstr ""
27944
27945 #. type: verbatim
27946 #: ../src/guestfs-actions.pod:5743
27947 #, no-wrap
27948 msgid ""
27949 " char *\n"
27950 " guestfs_pvuuid (guestfs_h *g,\n"
27951 "                 const char *device);\n"
27952 "\n"
27953 msgstr ""
27954
27955 #. type: =head2
27956 #: ../src/guestfs-actions.pod:5754
27957 msgid "guestfs_pwrite"
27958 msgstr ""
27959
27960 #. type: verbatim
27961 #: ../src/guestfs-actions.pod:5756
27962 #, no-wrap
27963 msgid ""
27964 " int\n"
27965 " guestfs_pwrite (guestfs_h *g,\n"
27966 "                 const char *path,\n"
27967 "                 const char *content,\n"
27968 "                 size_t content_size,\n"
27969 "                 int64_t offset);\n"
27970 "\n"
27971 msgstr ""
27972
27973 #. type: textblock
27974 #: ../src/guestfs-actions.pod:5772
27975 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
27976 msgstr ""
27977
27978 #. type: =head2
27979 #: ../src/guestfs-actions.pod:5781
27980 msgid "guestfs_pwrite_device"
27981 msgstr ""
27982
27983 #. type: verbatim
27984 #: ../src/guestfs-actions.pod:5783
27985 #, no-wrap
27986 msgid ""
27987 " int\n"
27988 " guestfs_pwrite_device (guestfs_h *g,\n"
27989 "                        const char *device,\n"
27990 "                        const char *content,\n"
27991 "                        size_t content_size,\n"
27992 "                        int64_t offset);\n"
27993 "\n"
27994 msgstr ""
27995
27996 #. type: textblock
27997 #: ../src/guestfs-actions.pod:5798
27998 msgid "See also C<guestfs_pwrite>."
27999 msgstr ""
28000
28001 #. type: textblock
28002 #: ../src/guestfs-actions.pod:5805
28003 msgid "(Added in 1.5.20)"
28004 msgstr ""
28005
28006 #. type: =head2
28007 #: ../src/guestfs-actions.pod:5807
28008 msgid "guestfs_read_file"
28009 msgstr ""
28010
28011 #. type: verbatim
28012 #: ../src/guestfs-actions.pod:5809
28013 #, no-wrap
28014 msgid ""
28015 " char *\n"
28016 " guestfs_read_file (guestfs_h *g,\n"
28017 "                    const char *path,\n"
28018 "                    size_t *size_r);\n"
28019 "\n"
28020 msgstr ""
28021
28022 #. type: textblock
28023 #: ../src/guestfs-actions.pod:5817
28024 msgid ""
28025 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
28026 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
28027 "function is limited in the total size of file that can be handled."
28028 msgstr ""
28029
28030 #. type: textblock
28031 #: ../src/guestfs-actions.pod:5829
28032 msgid "(Added in 1.0.63)"
28033 msgstr ""
28034
28035 #. type: =head2
28036 #: ../src/guestfs-actions.pod:5831
28037 msgid "guestfs_read_lines"
28038 msgstr ""
28039
28040 #. type: verbatim
28041 #: ../src/guestfs-actions.pod:5833
28042 #, no-wrap
28043 msgid ""
28044 " char **\n"
28045 " guestfs_read_lines (guestfs_h *g,\n"
28046 "                     const char *path);\n"
28047 "\n"
28048 msgstr ""
28049
28050 #. type: textblock
28051 #: ../src/guestfs-actions.pod:5842
28052 msgid ""
28053 "Note that this function cannot correctly handle binary files (specifically, "
28054 "files containing C<\\0> character which is treated as end of line).  For "
28055 "those you need to use the C<guestfs_read_file> function which has a more "
28056 "complex interface."
28057 msgstr ""
28058
28059 #. type: =head2
28060 #: ../src/guestfs-actions.pod:5853
28061 msgid "guestfs_readdir"
28062 msgstr ""
28063
28064 #. type: verbatim
28065 #: ../src/guestfs-actions.pod:5855
28066 #, no-wrap
28067 msgid ""
28068 " struct guestfs_dirent_list *\n"
28069 " guestfs_readdir (guestfs_h *g,\n"
28070 "                  const char *dir);\n"
28071 "\n"
28072 msgstr ""
28073
28074 #. type: textblock
28075 #: ../src/guestfs-actions.pod:5909
28076 msgid ""
28077 "This function is primarily intended for use by programs.  To get a simple "
28078 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
28079 "consumption, use C<guestfs_ll>."
28080 msgstr ""
28081
28082 #. type: textblock
28083 #: ../src/guestfs-actions.pod:5913
28084 msgid ""
28085 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
28086 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
28087 msgstr ""
28088
28089 #. type: =head2
28090 #: ../src/guestfs-actions.pod:5919
28091 msgid "guestfs_readlink"
28092 msgstr ""
28093
28094 #. type: verbatim
28095 #: ../src/guestfs-actions.pod:5921
28096 #, no-wrap
28097 msgid ""
28098 " char *\n"
28099 " guestfs_readlink (guestfs_h *g,\n"
28100 "                   const char *path);\n"
28101 "\n"
28102 msgstr ""
28103
28104 #. type: =head2
28105 #: ../src/guestfs-actions.pod:5932
28106 msgid "guestfs_readlinklist"
28107 msgstr ""
28108
28109 #. type: verbatim
28110 #: ../src/guestfs-actions.pod:5934
28111 #, no-wrap
28112 msgid ""
28113 " char **\n"
28114 " guestfs_readlinklist (guestfs_h *g,\n"
28115 "                       const char *path,\n"
28116 "                       char *const *names);\n"
28117 "\n"
28118 msgstr ""
28119
28120 #. type: =head2
28121 #: ../src/guestfs-actions.pod:5967
28122 msgid "guestfs_realpath"
28123 msgstr ""
28124
28125 #. type: verbatim
28126 #: ../src/guestfs-actions.pod:5969
28127 #, no-wrap
28128 msgid ""
28129 " char *\n"
28130 " guestfs_realpath (guestfs_h *g,\n"
28131 "                   const char *path);\n"
28132 "\n"
28133 msgstr ""
28134
28135 #. type: =head2
28136 #: ../src/guestfs-actions.pod:5981
28137 msgid "guestfs_removexattr"
28138 msgstr ""
28139
28140 #. type: verbatim
28141 #: ../src/guestfs-actions.pod:5983
28142 #, no-wrap
28143 msgid ""
28144 " int\n"
28145 " guestfs_removexattr (guestfs_h *g,\n"
28146 "                      const char *xattr,\n"
28147 "                      const char *path);\n"
28148 "\n"
28149 msgstr ""
28150
28151 #. type: textblock
28152 #: ../src/guestfs-actions.pod:5991
28153 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
28154 msgstr ""
28155
28156 #. type: =head2
28157 #: ../src/guestfs-actions.pod:5997
28158 msgid "guestfs_resize2fs"
28159 msgstr ""
28160
28161 #. type: verbatim
28162 #: ../src/guestfs-actions.pod:5999
28163 #, no-wrap
28164 msgid ""
28165 " int\n"
28166 " guestfs_resize2fs (guestfs_h *g,\n"
28167 "                    const char *device);\n"
28168 "\n"
28169 msgstr ""
28170
28171 #. type: textblock
28172 #: ../src/guestfs-actions.pod:6006
28173 msgid ""
28174 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
28175 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
28176 "sometimes gives an error about this and sometimes not.  In any case, it is "
28177 "always safe to call C<guestfs_e2fsck_f> before calling this function."
28178 msgstr ""
28179
28180 #. type: =head2
28181 #: ../src/guestfs-actions.pod:6016
28182 msgid "guestfs_resize2fs_M"
28183 msgstr ""
28184
28185 #. type: verbatim
28186 #: ../src/guestfs-actions.pod:6018
28187 #, no-wrap
28188 msgid ""
28189 " int\n"
28190 " guestfs_resize2fs_M (guestfs_h *g,\n"
28191 "                      const char *device);\n"
28192 "\n"
28193 msgstr ""
28194
28195 #. type: textblock
28196 #: ../src/guestfs-actions.pod:6022
28197 msgid ""
28198 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
28199 "resized to its minimum size.  This works like the I<-M> option to the "
28200 "C<resize2fs> command."
28201 msgstr ""
28202
28203 #. type: textblock
28204 #: ../src/guestfs-actions.pod:6026
28205 msgid ""
28206 "To get the resulting size of the filesystem you should call "
28207 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
28208 "These two numbers, multiplied together, give the resulting size of the "
28209 "minimal filesystem in bytes."
28210 msgstr ""
28211
28212 #. type: =head2
28213 #: ../src/guestfs-actions.pod:6035
28214 msgid "guestfs_resize2fs_size"
28215 msgstr ""
28216
28217 #. type: verbatim
28218 #: ../src/guestfs-actions.pod:6037
28219 #, no-wrap
28220 msgid ""
28221 " int\n"
28222 " guestfs_resize2fs_size (guestfs_h *g,\n"
28223 "                         const char *device,\n"
28224 "                         int64_t size);\n"
28225 "\n"
28226 msgstr ""
28227
28228 #. type: textblock
28229 #: ../src/guestfs-actions.pod:6042
28230 msgid ""
28231 "This command is the same as C<guestfs_resize2fs> except that it allows you "
28232 "to specify the new size (in bytes) explicitly."
28233 msgstr ""
28234
28235 #. type: =head2
28236 #: ../src/guestfs-actions.pod:6049
28237 msgid "guestfs_rm"
28238 msgstr ""
28239
28240 #. type: verbatim
28241 #: ../src/guestfs-actions.pod:6051
28242 #, no-wrap
28243 msgid ""
28244 " int\n"
28245 " guestfs_rm (guestfs_h *g,\n"
28246 "             const char *path);\n"
28247 "\n"
28248 msgstr ""
28249
28250 #. type: =head2
28251 #: ../src/guestfs-actions.pod:6061
28252 msgid "guestfs_rm_rf"
28253 msgstr ""
28254
28255 #. type: verbatim
28256 #: ../src/guestfs-actions.pod:6063
28257 #, no-wrap
28258 msgid ""
28259 " int\n"
28260 " guestfs_rm_rf (guestfs_h *g,\n"
28261 "                const char *path);\n"
28262 "\n"
28263 msgstr ""
28264
28265 #. type: =head2
28266 #: ../src/guestfs-actions.pod:6075
28267 msgid "guestfs_rmdir"
28268 msgstr ""
28269
28270 #. type: verbatim
28271 #: ../src/guestfs-actions.pod:6077
28272 #, no-wrap
28273 msgid ""
28274 " int\n"
28275 " guestfs_rmdir (guestfs_h *g,\n"
28276 "                const char *path);\n"
28277 "\n"
28278 msgstr ""
28279
28280 #. type: =head2
28281 #: ../src/guestfs-actions.pod:6087
28282 msgid "guestfs_rmmountpoint"
28283 msgstr ""
28284
28285 #. type: verbatim
28286 #: ../src/guestfs-actions.pod:6089
28287 #, no-wrap
28288 msgid ""
28289 " int\n"
28290 " guestfs_rmmountpoint (guestfs_h *g,\n"
28291 "                       const char *exemptpath);\n"
28292 "\n"
28293 msgstr ""
28294
28295 #. type: textblock
28296 #: ../src/guestfs-actions.pod:6093
28297 msgid ""
28298 "This calls removes a mountpoint that was previously created with "
28299 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
28300 msgstr ""
28301
28302 #. type: =head2
28303 #: ../src/guestfs-actions.pod:6101
28304 msgid "guestfs_scrub_device"
28305 msgstr ""
28306
28307 #. type: verbatim
28308 #: ../src/guestfs-actions.pod:6103
28309 #, no-wrap
28310 msgid ""
28311 " int\n"
28312 " guestfs_scrub_device (guestfs_h *g,\n"
28313 "                       const char *device);\n"
28314 "\n"
28315 msgstr ""
28316
28317 #. type: textblock
28318 #: ../src/guestfs-actions.pod:6118 ../src/guestfs-actions.pod:6136
28319 #: ../src/guestfs-actions.pod:6155
28320 msgid "(Added in 1.0.52)"
28321 msgstr ""
28322
28323 #. type: =head2
28324 #: ../src/guestfs-actions.pod:6120
28325 msgid "guestfs_scrub_file"
28326 msgstr ""
28327
28328 #. type: verbatim
28329 #: ../src/guestfs-actions.pod:6122
28330 #, no-wrap
28331 msgid ""
28332 " int\n"
28333 " guestfs_scrub_file (guestfs_h *g,\n"
28334 "                     const char *file);\n"
28335 "\n"
28336 msgstr ""
28337
28338 #. type: =head2
28339 #: ../src/guestfs-actions.pod:6138
28340 msgid "guestfs_scrub_freespace"
28341 msgstr ""
28342
28343 #. type: verbatim
28344 #: ../src/guestfs-actions.pod:6140
28345 #, no-wrap
28346 msgid ""
28347 " int\n"
28348 " guestfs_scrub_freespace (guestfs_h *g,\n"
28349 "                          const char *dir);\n"
28350 "\n"
28351 msgstr ""
28352
28353 #. type: textblock
28354 #: ../src/guestfs-actions.pod:6144
28355 msgid ""
28356 "This command creates the directory C<dir> and then fills it with files until "
28357 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
28358 "and deletes them.  The intention is to scrub any free space on the partition "
28359 "containing C<dir>."
28360 msgstr ""
28361
28362 #. type: =head2
28363 #: ../src/guestfs-actions.pod:6157
28364 msgid "guestfs_set_append"
28365 msgstr ""
28366
28367 #. type: verbatim
28368 #: ../src/guestfs-actions.pod:6159
28369 #, no-wrap
28370 msgid ""
28371 " int\n"
28372 " guestfs_set_append (guestfs_h *g,\n"
28373 "                     const char *append);\n"
28374 "\n"
28375 msgstr ""
28376
28377 #. type: =head2
28378 #: ../src/guestfs-actions.pod:6176
28379 msgid "guestfs_set_attach_method"
28380 msgstr ""
28381
28382 #. type: verbatim
28383 #: ../src/guestfs-actions.pod:6178
28384 #, no-wrap
28385 msgid ""
28386 " int\n"
28387 " guestfs_set_attach_method (guestfs_h *g,\n"
28388 "                            const char *attachmethod);\n"
28389 "\n"
28390 msgstr ""
28391
28392 #. type: =head2
28393 #: ../src/guestfs-actions.pod:6206
28394 msgid "guestfs_set_autosync"
28395 msgstr ""
28396
28397 #. type: verbatim
28398 #: ../src/guestfs-actions.pod:6208
28399 #, no-wrap
28400 msgid ""
28401 " int\n"
28402 " guestfs_set_autosync (guestfs_h *g,\n"
28403 "                       int autosync);\n"
28404 "\n"
28405 msgstr ""
28406
28407 #. type: =head2
28408 #: ../src/guestfs-actions.pod:6224
28409 msgid "guestfs_set_direct"
28410 msgstr ""
28411
28412 #. type: verbatim
28413 #: ../src/guestfs-actions.pod:6226
28414 #, no-wrap
28415 msgid ""
28416 " int\n"
28417 " guestfs_set_direct (guestfs_h *g,\n"
28418 "                     int direct);\n"
28419 "\n"
28420 msgstr ""
28421
28422 #. type: textblock
28423 #: ../src/guestfs-actions.pod:6234
28424 msgid ""
28425 "One consequence of this is that log messages aren't caught by the library "
28426 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
28427 "stdout."
28428 msgstr ""
28429
28430 #. type: =head2
28431 #: ../src/guestfs-actions.pod:6247
28432 msgid "guestfs_set_e2label"
28433 msgstr ""
28434
28435 #. type: verbatim
28436 #: ../src/guestfs-actions.pod:6249
28437 #, no-wrap
28438 msgid ""
28439 " int\n"
28440 " guestfs_set_e2label (guestfs_h *g,\n"
28441 "                      const char *device,\n"
28442 "                      const char *label);\n"
28443 "\n"
28444 msgstr ""
28445
28446 #. type: textblock
28447 #: ../src/guestfs-actions.pod:6258
28448 msgid ""
28449 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
28450 "the existing label on a filesystem."
28451 msgstr ""
28452
28453 #. type: =head2
28454 #: ../src/guestfs-actions.pod:6265
28455 msgid "guestfs_set_e2uuid"
28456 msgstr ""
28457
28458 #. type: verbatim
28459 #: ../src/guestfs-actions.pod:6267
28460 #, no-wrap
28461 msgid ""
28462 " int\n"
28463 " guestfs_set_e2uuid (guestfs_h *g,\n"
28464 "                     const char *device,\n"
28465 "                     const char *uuid);\n"
28466 "\n"
28467 msgstr ""
28468
28469 #. type: textblock
28470 #: ../src/guestfs-actions.pod:6277
28471 msgid ""
28472 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
28473 "the existing UUID of a filesystem."
28474 msgstr ""
28475
28476 #. type: =head2
28477 #: ../src/guestfs-actions.pod:6284
28478 msgid "guestfs_set_memsize"
28479 msgstr ""
28480
28481 #. type: verbatim
28482 #: ../src/guestfs-actions.pod:6286
28483 #, no-wrap
28484 msgid ""
28485 " int\n"
28486 " guestfs_set_memsize (guestfs_h *g,\n"
28487 "                      int memsize);\n"
28488 "\n"
28489 msgstr ""
28490
28491 #. type: textblock
28492 #: ../src/guestfs-actions.pod:6290
28493 msgid ""
28494 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
28495 "This only has any effect if called before C<guestfs_launch>."
28496 msgstr ""
28497
28498 #. type: =head2
28499 #: ../src/guestfs-actions.pod:6305
28500 msgid "guestfs_set_network"
28501 msgstr ""
28502
28503 #. type: verbatim
28504 #: ../src/guestfs-actions.pod:6307
28505 #, no-wrap
28506 msgid ""
28507 " int\n"
28508 " guestfs_set_network (guestfs_h *g,\n"
28509 "                      int network);\n"
28510 "\n"
28511 msgstr ""
28512
28513 #. type: textblock
28514 #: ../src/guestfs-actions.pod:6317
28515 msgid ""
28516 "You must call this before calling C<guestfs_launch>, otherwise it has no "
28517 "effect."
28518 msgstr ""
28519
28520 #. type: =head2
28521 #: ../src/guestfs-actions.pod:6324
28522 msgid "guestfs_set_path"
28523 msgstr ""
28524
28525 #. type: verbatim
28526 #: ../src/guestfs-actions.pod:6326
28527 #, no-wrap
28528 msgid ""
28529 " int\n"
28530 " guestfs_set_path (guestfs_h *g,\n"
28531 "                   const char *searchpath);\n"
28532 "\n"
28533 msgstr ""
28534
28535 #. type: =head2
28536 #: ../src/guestfs-actions.pod:6341
28537 msgid "guestfs_set_pgroup"
28538 msgstr ""
28539
28540 #. type: verbatim
28541 #: ../src/guestfs-actions.pod:6343
28542 #, no-wrap
28543 msgid ""
28544 " int\n"
28545 " guestfs_set_pgroup (guestfs_h *g,\n"
28546 "                     int pgroup);\n"
28547 "\n"
28548 msgstr ""
28549
28550 #. type: =head2
28551 #: ../src/guestfs-actions.pod:6360
28552 msgid "guestfs_set_qemu"
28553 msgstr ""
28554
28555 #. type: verbatim
28556 #: ../src/guestfs-actions.pod:6362
28557 #, no-wrap
28558 msgid ""
28559 " int\n"
28560 " guestfs_set_qemu (guestfs_h *g,\n"
28561 "                   const char *qemu);\n"
28562 "\n"
28563 msgstr ""
28564
28565 #. type: =head2
28566 #: ../src/guestfs-actions.pod:6388
28567 msgid "guestfs_set_recovery_proc"
28568 msgstr ""
28569
28570 #. type: verbatim
28571 #: ../src/guestfs-actions.pod:6390
28572 #, no-wrap
28573 msgid ""
28574 " int\n"
28575 " guestfs_set_recovery_proc (guestfs_h *g,\n"
28576 "                            int recoveryproc);\n"
28577 "\n"
28578 msgstr ""
28579
28580 #. type: textblock
28581 #: ../src/guestfs-actions.pod:6394
28582 msgid ""
28583 "If this is called with the parameter C<false> then C<guestfs_launch> does "
28584 "not create a recovery process.  The purpose of the recovery process is to "
28585 "stop runaway qemu processes in the case where the main program aborts "
28586 "abruptly."
28587 msgstr ""
28588
28589 #. type: textblock
28590 #: ../src/guestfs-actions.pod:6399
28591 msgid ""
28592 "This only has any effect if called before C<guestfs_launch>, and the default "
28593 "is true."
28594 msgstr ""
28595
28596 #. type: =head2
28597 #: ../src/guestfs-actions.pod:6412
28598 msgid "guestfs_set_selinux"
28599 msgstr ""
28600
28601 #. type: verbatim
28602 #: ../src/guestfs-actions.pod:6414
28603 #, no-wrap
28604 msgid ""
28605 " int\n"
28606 " guestfs_set_selinux (guestfs_h *g,\n"
28607 "                      int selinux);\n"
28608 "\n"
28609 msgstr ""
28610
28611 #. type: =head2
28612 #: ../src/guestfs-actions.pod:6431
28613 msgid "guestfs_set_trace"
28614 msgstr ""
28615
28616 #. type: verbatim
28617 #: ../src/guestfs-actions.pod:6433
28618 #, no-wrap
28619 msgid ""
28620 " int\n"
28621 " guestfs_set_trace (guestfs_h *g,\n"
28622 "                    int trace);\n"
28623 "\n"
28624 msgstr ""
28625
28626 #. type: textblock
28627 #: ../src/guestfs-actions.pod:6447
28628 msgid ""
28629 "Trace messages are normally sent to C<stderr>, unless you register a "
28630 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
28631 msgstr ""
28632
28633 #. type: =head2
28634 #: ../src/guestfs-actions.pod:6455
28635 msgid "guestfs_set_verbose"
28636 msgstr ""
28637
28638 #. type: verbatim
28639 #: ../src/guestfs-actions.pod:6457
28640 #, no-wrap
28641 msgid ""
28642 " int\n"
28643 " guestfs_set_verbose (guestfs_h *g,\n"
28644 "                      int verbose);\n"
28645 "\n"
28646 msgstr ""
28647
28648 #. type: textblock
28649 #: ../src/guestfs-actions.pod:6466
28650 msgid ""
28651 "Verbose messages are normally sent to C<stderr>, unless you register a "
28652 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
28653 msgstr ""
28654
28655 #. type: =head2
28656 #: ../src/guestfs-actions.pod:6474
28657 msgid "guestfs_setcon"
28658 msgstr ""
28659
28660 #. type: verbatim
28661 #: ../src/guestfs-actions.pod:6476
28662 #, no-wrap
28663 msgid ""
28664 " int\n"
28665 " guestfs_setcon (guestfs_h *g,\n"
28666 "                 const char *context);\n"
28667 "\n"
28668 msgstr ""
28669
28670 #. type: =head2
28671 #: ../src/guestfs-actions.pod:6489
28672 msgid "guestfs_setxattr"
28673 msgstr ""
28674
28675 #. type: verbatim
28676 #: ../src/guestfs-actions.pod:6491
28677 #, no-wrap
28678 msgid ""
28679 " int\n"
28680 " guestfs_setxattr (guestfs_h *g,\n"
28681 "                   const char *xattr,\n"
28682 "                   const char *val,\n"
28683 "                   int vallen,\n"
28684 "                   const char *path);\n"
28685 "\n"
28686 msgstr ""
28687
28688 #. type: textblock
28689 #: ../src/guestfs-actions.pod:6502
28690 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
28691 msgstr ""
28692
28693 #. type: =head2
28694 #: ../src/guestfs-actions.pod:6508
28695 msgid "guestfs_sfdisk"
28696 msgstr ""
28697
28698 #. type: verbatim
28699 #: ../src/guestfs-actions.pod:6510
28700 #, no-wrap
28701 msgid ""
28702 " int\n"
28703 " guestfs_sfdisk (guestfs_h *g,\n"
28704 "                 const char *device,\n"
28705 "                 int cyls,\n"
28706 "                 int heads,\n"
28707 "                 int sectors,\n"
28708 "                 char *const *lines);\n"
28709 "\n"
28710 msgstr ""
28711
28712 #. type: textblock
28713 #: ../src/guestfs-actions.pod:6538
28714 msgid ""
28715 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
28716 msgstr ""
28717
28718 #. type: textblock
28719 #: ../src/guestfs-actions.pod:6546 ../src/guestfs-actions.pod:6576
28720 #: ../src/guestfs-actions.pod:6609
28721 msgid ""
28722 "This function is deprecated.  In new code, use the L</guestfs_part_add> call "
28723 "instead."
28724 msgstr ""
28725
28726 #. type: =head2
28727 #: ../src/guestfs-actions.pod:6555
28728 msgid "guestfs_sfdiskM"
28729 msgstr ""
28730
28731 #. type: verbatim
28732 #: ../src/guestfs-actions.pod:6557
28733 #, no-wrap
28734 msgid ""
28735 " int\n"
28736 " guestfs_sfdiskM (guestfs_h *g,\n"
28737 "                  const char *device,\n"
28738 "                  char *const *lines);\n"
28739 "\n"
28740 msgstr ""
28741
28742 #. type: textblock
28743 #: ../src/guestfs-actions.pod:6562
28744 msgid ""
28745 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
28746 "partition sizes are specified in megabytes only (rounded to the nearest "
28747 "cylinder) and you don't need to specify the cyls, heads and sectors "
28748 "parameters which were rarely if ever used anyway."
28749 msgstr ""
28750
28751 #. type: textblock
28752 #: ../src/guestfs-actions.pod:6568
28753 msgid ""
28754 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
28755 "C<guestfs_part_disk>"
28756 msgstr ""
28757
28758 #. type: =head2
28759 #: ../src/guestfs-actions.pod:6585
28760 msgid "guestfs_sfdisk_N"
28761 msgstr ""
28762
28763 #. type: verbatim
28764 #: ../src/guestfs-actions.pod:6587
28765 #, no-wrap
28766 msgid ""
28767 " int\n"
28768 " guestfs_sfdisk_N (guestfs_h *g,\n"
28769 "                   const char *device,\n"
28770 "                   int partnum,\n"
28771 "                   int cyls,\n"
28772 "                   int heads,\n"
28773 "                   int sectors,\n"
28774 "                   const char *line);\n"
28775 "\n"
28776 msgstr ""
28777
28778 #. type: textblock
28779 #: ../src/guestfs-actions.pod:6599
28780 msgid ""
28781 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
28782 "for the cyls/heads/sectors parameters."
28783 msgstr ""
28784
28785 #. type: textblock
28786 #: ../src/guestfs-actions.pod:6602
28787 msgid "See also: C<guestfs_part_add>"
28788 msgstr ""
28789
28790 #. type: =head2
28791 #: ../src/guestfs-actions.pod:6618
28792 msgid "guestfs_sfdisk_disk_geometry"
28793 msgstr ""
28794
28795 #. type: verbatim
28796 #: ../src/guestfs-actions.pod:6620
28797 #, no-wrap
28798 msgid ""
28799 " char *\n"
28800 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
28801 "                               const char *device);\n"
28802 "\n"
28803 msgstr ""
28804
28805 #. type: textblock
28806 #: ../src/guestfs-actions.pod:6624
28807 msgid ""
28808 "This displays the disk geometry of C<device> read from the partition table.  "
28809 "Especially in the case where the underlying block device has been resized, "
28810 "this can be different from the kernel's idea of the geometry (see "
28811 "C<guestfs_sfdisk_kernel_geometry>)."
28812 msgstr ""
28813
28814 #. type: =head2
28815 #: ../src/guestfs-actions.pod:6637
28816 msgid "guestfs_sfdisk_kernel_geometry"
28817 msgstr ""
28818
28819 #. type: verbatim
28820 #: ../src/guestfs-actions.pod:6639
28821 #, no-wrap
28822 msgid ""
28823 " char *\n"
28824 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
28825 "                                 const char *device);\n"
28826 "\n"
28827 msgstr ""
28828
28829 #. type: =head2
28830 #: ../src/guestfs-actions.pod:6653
28831 msgid "guestfs_sfdisk_l"
28832 msgstr ""
28833
28834 #. type: verbatim
28835 #: ../src/guestfs-actions.pod:6655
28836 #, no-wrap
28837 msgid ""
28838 " char *\n"
28839 " guestfs_sfdisk_l (guestfs_h *g,\n"
28840 "                   const char *device);\n"
28841 "\n"
28842 msgstr ""
28843
28844 #. type: textblock
28845 #: ../src/guestfs-actions.pod:6663
28846 msgid "See also: C<guestfs_part_list>"
28847 msgstr ""
28848
28849 #. type: textblock
28850 #: ../src/guestfs-actions.pod:6668
28851 msgid ""
28852 "This function is deprecated.  In new code, use the L</guestfs_part_list> "
28853 "call instead."
28854 msgstr ""
28855
28856 #. type: =head2
28857 #: ../src/guestfs-actions.pod:6677
28858 msgid "guestfs_sh"
28859 msgstr ""
28860
28861 #. type: verbatim
28862 #: ../src/guestfs-actions.pod:6679
28863 #, no-wrap
28864 msgid ""
28865 " char *\n"
28866 " guestfs_sh (guestfs_h *g,\n"
28867 "             const char *command);\n"
28868 "\n"
28869 msgstr ""
28870
28871 #. type: textblock
28872 #: ../src/guestfs-actions.pod:6686
28873 msgid "This is like C<guestfs_command>, but passes the command to:"
28874 msgstr ""
28875
28876 #. type: textblock
28877 #: ../src/guestfs-actions.pod:6694
28878 msgid "All the provisos about C<guestfs_command> apply to this call."
28879 msgstr ""
28880
28881 #. type: =head2
28882 #: ../src/guestfs-actions.pod:6701
28883 msgid "guestfs_sh_lines"
28884 msgstr ""
28885
28886 #. type: verbatim
28887 #: ../src/guestfs-actions.pod:6703
28888 #, no-wrap
28889 msgid ""
28890 " char **\n"
28891 " guestfs_sh_lines (guestfs_h *g,\n"
28892 "                   const char *command);\n"
28893 "\n"
28894 msgstr ""
28895
28896 #. type: textblock
28897 #: ../src/guestfs-actions.pod:6707
28898 msgid ""
28899 "This is the same as C<guestfs_sh>, but splits the result into a list of "
28900 "lines."
28901 msgstr ""
28902
28903 #. type: textblock
28904 #: ../src/guestfs-actions.pod:6710
28905 msgid "See also: C<guestfs_command_lines>"
28906 msgstr ""
28907
28908 #. type: =head2
28909 #: ../src/guestfs-actions.pod:6718
28910 msgid "guestfs_sleep"
28911 msgstr ""
28912
28913 #. type: verbatim
28914 #: ../src/guestfs-actions.pod:6720
28915 #, no-wrap
28916 msgid ""
28917 " int\n"
28918 " guestfs_sleep (guestfs_h *g,\n"
28919 "                int secs);\n"
28920 "\n"
28921 msgstr ""
28922
28923 #. type: textblock
28924 #: ../src/guestfs-actions.pod:6728
28925 msgid "(Added in 1.0.41)"
28926 msgstr ""
28927
28928 #. type: =head2
28929 #: ../src/guestfs-actions.pod:6730 ../src/guestfs-structs.pod:109
28930 msgid "guestfs_stat"
28931 msgstr ""
28932
28933 #. type: verbatim
28934 #: ../src/guestfs-actions.pod:6732
28935 #, no-wrap
28936 msgid ""
28937 " struct guestfs_stat *\n"
28938 " guestfs_stat (guestfs_h *g,\n"
28939 "               const char *path);\n"
28940 "\n"
28941 msgstr ""
28942
28943 #. type: =head2
28944 #: ../src/guestfs-actions.pod:6746 ../src/guestfs-structs.pod:135
28945 msgid "guestfs_statvfs"
28946 msgstr ""
28947
28948 #. type: verbatim
28949 #: ../src/guestfs-actions.pod:6748
28950 #, no-wrap
28951 msgid ""
28952 " struct guestfs_statvfs *\n"
28953 " guestfs_statvfs (guestfs_h *g,\n"
28954 "                  const char *path);\n"
28955 "\n"
28956 msgstr ""
28957
28958 #. type: textblock
28959 #: ../src/guestfs-actions.pod:6758
28960 msgid ""
28961 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
28962 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
28963 msgstr ""
28964
28965 #. type: =head2
28966 #: ../src/guestfs-actions.pod:6764
28967 msgid "guestfs_strings"
28968 msgstr ""
28969
28970 #. type: verbatim
28971 #: ../src/guestfs-actions.pod:6766
28972 #, no-wrap
28973 msgid ""
28974 " char **\n"
28975 " guestfs_strings (guestfs_h *g,\n"
28976 "                  const char *path);\n"
28977 "\n"
28978 msgstr ""
28979
28980 #. type: =head2
28981 #: ../src/guestfs-actions.pod:6782
28982 msgid "guestfs_strings_e"
28983 msgstr ""
28984
28985 #. type: verbatim
28986 #: ../src/guestfs-actions.pod:6784
28987 #, no-wrap
28988 msgid ""
28989 " char **\n"
28990 " guestfs_strings_e (guestfs_h *g,\n"
28991 "                    const char *encoding,\n"
28992 "                    const char *path);\n"
28993 "\n"
28994 msgstr ""
28995
28996 #. type: textblock
28997 #: ../src/guestfs-actions.pod:6789
28998 msgid ""
28999 "This is like the C<guestfs_strings> command, but allows you to specify the "
29000 "encoding of strings that are looked for in the source file C<path>."
29001 msgstr ""
29002
29003 #. type: textblock
29004 #: ../src/guestfs-actions.pod:6799
29005 msgid ""
29006 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
29007 "ISO-8859-X (this is what C<guestfs_strings> uses)."
29008 msgstr ""
29009
29010 #. type: =head2
29011 #: ../src/guestfs-actions.pod:6837
29012 msgid "guestfs_swapoff_device"
29013 msgstr ""
29014
29015 #. type: verbatim
29016 #: ../src/guestfs-actions.pod:6839
29017 #, no-wrap
29018 msgid ""
29019 " int\n"
29020 " guestfs_swapoff_device (guestfs_h *g,\n"
29021 "                         const char *device);\n"
29022 "\n"
29023 msgstr ""
29024
29025 #. type: textblock
29026 #: ../src/guestfs-actions.pod:6843
29027 msgid ""
29028 "This command disables the libguestfs appliance swap device or partition "
29029 "named C<device>.  See C<guestfs_swapon_device>."
29030 msgstr ""
29031
29032 #. type: =head2
29033 #: ../src/guestfs-actions.pod:6851
29034 msgid "guestfs_swapoff_file"
29035 msgstr ""
29036
29037 #. type: verbatim
29038 #: ../src/guestfs-actions.pod:6853
29039 #, no-wrap
29040 msgid ""
29041 " int\n"
29042 " guestfs_swapoff_file (guestfs_h *g,\n"
29043 "                       const char *file);\n"
29044 "\n"
29045 msgstr ""
29046
29047 #. type: =head2
29048 #: ../src/guestfs-actions.pod:6863
29049 msgid "guestfs_swapoff_label"
29050 msgstr ""
29051
29052 #. type: verbatim
29053 #: ../src/guestfs-actions.pod:6865
29054 #, no-wrap
29055 msgid ""
29056 " int\n"
29057 " guestfs_swapoff_label (guestfs_h *g,\n"
29058 "                        const char *label);\n"
29059 "\n"
29060 msgstr ""
29061
29062 #. type: =head2
29063 #: ../src/guestfs-actions.pod:6876
29064 msgid "guestfs_swapoff_uuid"
29065 msgstr ""
29066
29067 #. type: verbatim
29068 #: ../src/guestfs-actions.pod:6878
29069 #, no-wrap
29070 msgid ""
29071 " int\n"
29072 " guestfs_swapoff_uuid (guestfs_h *g,\n"
29073 "                       const char *uuid);\n"
29074 "\n"
29075 msgstr ""
29076
29077 #. type: =head2
29078 #: ../src/guestfs-actions.pod:6889
29079 msgid "guestfs_swapon_device"
29080 msgstr ""
29081
29082 #. type: verbatim
29083 #: ../src/guestfs-actions.pod:6891
29084 #, no-wrap
29085 msgid ""
29086 " int\n"
29087 " guestfs_swapon_device (guestfs_h *g,\n"
29088 "                        const char *device);\n"
29089 "\n"
29090 msgstr ""
29091
29092 #. type: textblock
29093 #: ../src/guestfs-actions.pod:6895
29094 msgid ""
29095 "This command enables the libguestfs appliance to use the swap device or "
29096 "partition named C<device>.  The increased memory is made available for all "
29097 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
29098 msgstr ""
29099
29100 #. type: =head2
29101 #: ../src/guestfs-actions.pod:6911
29102 msgid "guestfs_swapon_file"
29103 msgstr ""
29104
29105 #. type: verbatim
29106 #: ../src/guestfs-actions.pod:6913
29107 #, no-wrap
29108 msgid ""
29109 " int\n"
29110 " guestfs_swapon_file (guestfs_h *g,\n"
29111 "                      const char *file);\n"
29112 "\n"
29113 msgstr ""
29114
29115 #. type: textblock
29116 #: ../src/guestfs-actions.pod:6917
29117 msgid ""
29118 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
29119 "notes."
29120 msgstr ""
29121
29122 #. type: =head2
29123 #: ../src/guestfs-actions.pod:6924
29124 msgid "guestfs_swapon_label"
29125 msgstr ""
29126
29127 #. type: verbatim
29128 #: ../src/guestfs-actions.pod:6926
29129 #, no-wrap
29130 msgid ""
29131 " int\n"
29132 " guestfs_swapon_label (guestfs_h *g,\n"
29133 "                       const char *label);\n"
29134 "\n"
29135 msgstr ""
29136
29137 #. type: textblock
29138 #: ../src/guestfs-actions.pod:6930
29139 msgid ""
29140 "This command enables swap to a labeled swap partition.  See "
29141 "C<guestfs_swapon_device> for other notes."
29142 msgstr ""
29143
29144 #. type: =head2
29145 #: ../src/guestfs-actions.pod:6937
29146 msgid "guestfs_swapon_uuid"
29147 msgstr ""
29148
29149 #. type: verbatim
29150 #: ../src/guestfs-actions.pod:6939
29151 #, no-wrap
29152 msgid ""
29153 " int\n"
29154 " guestfs_swapon_uuid (guestfs_h *g,\n"
29155 "                      const char *uuid);\n"
29156 "\n"
29157 msgstr ""
29158
29159 #. type: textblock
29160 #: ../src/guestfs-actions.pod:6943
29161 msgid ""
29162 "This command enables swap to a swap partition with the given UUID.  See "
29163 "C<guestfs_swapon_device> for other notes."
29164 msgstr ""
29165
29166 #. type: =head2
29167 #: ../src/guestfs-actions.pod:6950
29168 msgid "guestfs_sync"
29169 msgstr ""
29170
29171 #. type: verbatim
29172 #: ../src/guestfs-actions.pod:6952
29173 #, no-wrap
29174 msgid ""
29175 " int\n"
29176 " guestfs_sync (guestfs_h *g);\n"
29177 "\n"
29178 msgstr ""
29179
29180 #. type: =head2
29181 #: ../src/guestfs-actions.pod:6965
29182 msgid "guestfs_tail"
29183 msgstr ""
29184
29185 #. type: verbatim
29186 #: ../src/guestfs-actions.pod:6967
29187 #, no-wrap
29188 msgid ""
29189 " char **\n"
29190 " guestfs_tail (guestfs_h *g,\n"
29191 "               const char *path);\n"
29192 "\n"
29193 msgstr ""
29194
29195 #. type: =head2
29196 #: ../src/guestfs-actions.pod:6983
29197 msgid "guestfs_tail_n"
29198 msgstr ""
29199
29200 #. type: verbatim
29201 #: ../src/guestfs-actions.pod:6985
29202 #, no-wrap
29203 msgid ""
29204 " char **\n"
29205 " guestfs_tail_n (guestfs_h *g,\n"
29206 "                 int nrlines,\n"
29207 "                 const char *path);\n"
29208 "\n"
29209 msgstr ""
29210
29211 #. type: =head2
29212 #: ../src/guestfs-actions.pod:7007
29213 msgid "guestfs_tar_in"
29214 msgstr ""
29215
29216 #. type: verbatim
29217 #: ../src/guestfs-actions.pod:7009
29218 #, no-wrap
29219 msgid ""
29220 " int\n"
29221 " guestfs_tar_in (guestfs_h *g,\n"
29222 "                 const char *tarfile,\n"
29223 "                 const char *directory);\n"
29224 "\n"
29225 msgstr ""
29226
29227 #. type: textblock
29228 #: ../src/guestfs-actions.pod:7017
29229 msgid ""
29230 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
29231 msgstr ""
29232
29233 #. type: textblock
29234 #: ../src/guestfs-actions.pod:7022 ../src/guestfs-actions.pod:7039
29235 #: ../src/guestfs-actions.pod:7055 ../src/guestfs-actions.pod:7071
29236 msgid "(Added in 1.0.3)"
29237 msgstr ""
29238
29239 #. type: =head2
29240 #: ../src/guestfs-actions.pod:7024
29241 msgid "guestfs_tar_out"
29242 msgstr ""
29243
29244 #. type: verbatim
29245 #: ../src/guestfs-actions.pod:7026
29246 #, no-wrap
29247 msgid ""
29248 " int\n"
29249 " guestfs_tar_out (guestfs_h *g,\n"
29250 "                  const char *directory,\n"
29251 "                  const char *tarfile);\n"
29252 "\n"
29253 msgstr ""
29254
29255 #. type: textblock
29256 #: ../src/guestfs-actions.pod:7034
29257 msgid ""
29258 "To download a compressed tarball, use C<guestfs_tgz_out> or "
29259 "C<guestfs_txz_out>."
29260 msgstr ""
29261
29262 #. type: =head2
29263 #: ../src/guestfs-actions.pod:7041
29264 msgid "guestfs_tgz_in"
29265 msgstr ""
29266
29267 #. type: verbatim
29268 #: ../src/guestfs-actions.pod:7043
29269 #, no-wrap
29270 msgid ""
29271 " int\n"
29272 " guestfs_tgz_in (guestfs_h *g,\n"
29273 "                 const char *tarball,\n"
29274 "                 const char *directory);\n"
29275 "\n"
29276 msgstr ""
29277
29278 #. type: textblock
29279 #: ../src/guestfs-actions.pod:7051
29280 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
29281 msgstr ""
29282
29283 #. type: =head2
29284 #: ../src/guestfs-actions.pod:7057
29285 msgid "guestfs_tgz_out"
29286 msgstr ""
29287
29288 #. type: verbatim
29289 #: ../src/guestfs-actions.pod:7059
29290 #, no-wrap
29291 msgid ""
29292 " int\n"
29293 " guestfs_tgz_out (guestfs_h *g,\n"
29294 "                  const char *directory,\n"
29295 "                  const char *tarball);\n"
29296 "\n"
29297 msgstr ""
29298
29299 #. type: textblock
29300 #: ../src/guestfs-actions.pod:7067
29301 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
29302 msgstr ""
29303
29304 #. type: =head2
29305 #: ../src/guestfs-actions.pod:7073
29306 msgid "guestfs_touch"
29307 msgstr ""
29308
29309 #. type: verbatim
29310 #: ../src/guestfs-actions.pod:7075
29311 #, no-wrap
29312 msgid ""
29313 " int\n"
29314 " guestfs_touch (guestfs_h *g,\n"
29315 "                const char *path);\n"
29316 "\n"
29317 msgstr ""
29318
29319 #. type: =head2
29320 #: ../src/guestfs-actions.pod:7090
29321 msgid "guestfs_truncate"
29322 msgstr ""
29323
29324 #. type: verbatim
29325 #: ../src/guestfs-actions.pod:7092
29326 #, no-wrap
29327 msgid ""
29328 " int\n"
29329 " guestfs_truncate (guestfs_h *g,\n"
29330 "                   const char *path);\n"
29331 "\n"
29332 msgstr ""
29333
29334 #. type: =head2
29335 #: ../src/guestfs-actions.pod:7103
29336 msgid "guestfs_truncate_size"
29337 msgstr ""
29338
29339 #. type: verbatim
29340 #: ../src/guestfs-actions.pod:7105
29341 #, no-wrap
29342 msgid ""
29343 " int\n"
29344 " guestfs_truncate_size (guestfs_h *g,\n"
29345 "                        const char *path,\n"
29346 "                        int64_t size);\n"
29347 "\n"
29348 msgstr ""
29349
29350 #. type: textblock
29351 #: ../src/guestfs-actions.pod:7113
29352 msgid ""
29353 "If the current file size is less than C<size> then the file is extended to "
29354 "the required size with zero bytes.  This creates a sparse file (ie. disk "
29355 "blocks are not allocated for the file until you write to it).  To create a "
29356 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
29357 msgstr ""
29358
29359 #. type: =head2
29360 #: ../src/guestfs-actions.pod:7123
29361 msgid "guestfs_tune2fs_l"
29362 msgstr ""
29363
29364 #. type: verbatim
29365 #: ../src/guestfs-actions.pod:7125
29366 #, no-wrap
29367 msgid ""
29368 " char **\n"
29369 " guestfs_tune2fs_l (guestfs_h *g,\n"
29370 "                    const char *device);\n"
29371 "\n"
29372 msgstr ""
29373
29374 #. type: =head2
29375 #: ../src/guestfs-actions.pod:7145
29376 msgid "guestfs_txz_in"
29377 msgstr ""
29378
29379 #. type: verbatim
29380 #: ../src/guestfs-actions.pod:7147
29381 #, no-wrap
29382 msgid ""
29383 " int\n"
29384 " guestfs_txz_in (guestfs_h *g,\n"
29385 "                 const char *tarball,\n"
29386 "                 const char *directory);\n"
29387 "\n"
29388 msgstr ""
29389
29390 #. type: =head2
29391 #: ../src/guestfs-actions.pod:7159
29392 msgid "guestfs_txz_out"
29393 msgstr ""
29394
29395 #. type: verbatim
29396 #: ../src/guestfs-actions.pod:7161
29397 #, no-wrap
29398 msgid ""
29399 " int\n"
29400 " guestfs_txz_out (guestfs_h *g,\n"
29401 "                  const char *directory,\n"
29402 "                  const char *tarball);\n"
29403 "\n"
29404 msgstr ""
29405
29406 #. type: =head2
29407 #: ../src/guestfs-actions.pod:7173
29408 msgid "guestfs_umask"
29409 msgstr ""
29410
29411 #. type: verbatim
29412 #: ../src/guestfs-actions.pod:7175
29413 #, no-wrap
29414 msgid ""
29415 " int\n"
29416 " guestfs_umask (guestfs_h *g,\n"
29417 "                int mask);\n"
29418 "\n"
29419 msgstr ""
29420
29421 #. type: textblock
29422 #: ../src/guestfs-actions.pod:7191
29423 msgid ""
29424 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
29425 "C<guestfs_mkdir>."
29426 msgstr ""
29427
29428 #. type: =head2
29429 #: ../src/guestfs-actions.pod:7200
29430 msgid "guestfs_umount"
29431 msgstr ""
29432
29433 #. type: verbatim
29434 #: ../src/guestfs-actions.pod:7202
29435 #, no-wrap
29436 msgid ""
29437 " int\n"
29438 " guestfs_umount (guestfs_h *g,\n"
29439 "                 const char *pathordevice);\n"
29440 "\n"
29441 msgstr ""
29442
29443 #. type: =head2
29444 #: ../src/guestfs-actions.pod:7214
29445 msgid "guestfs_umount_all"
29446 msgstr ""
29447
29448 #. type: verbatim
29449 #: ../src/guestfs-actions.pod:7216
29450 #, no-wrap
29451 msgid ""
29452 " int\n"
29453 " guestfs_umount_all (guestfs_h *g);\n"
29454 "\n"
29455 msgstr ""
29456
29457 #. type: =head2
29458 #: ../src/guestfs-actions.pod:7227
29459 msgid "guestfs_upload"
29460 msgstr ""
29461
29462 #. type: verbatim
29463 #: ../src/guestfs-actions.pod:7229
29464 #, no-wrap
29465 msgid ""
29466 " int\n"
29467 " guestfs_upload (guestfs_h *g,\n"
29468 "                 const char *filename,\n"
29469 "                 const char *remotefilename);\n"
29470 "\n"
29471 msgstr ""
29472
29473 #. type: textblock
29474 #: ../src/guestfs-actions.pod:7239
29475 msgid "See also C<guestfs_download>."
29476 msgstr ""
29477
29478 #. type: =head2
29479 #: ../src/guestfs-actions.pod:7250
29480 msgid "guestfs_upload_offset"
29481 msgstr ""
29482
29483 #. type: verbatim
29484 #: ../src/guestfs-actions.pod:7252
29485 #, no-wrap
29486 msgid ""
29487 " int\n"
29488 " guestfs_upload_offset (guestfs_h *g,\n"
29489 "                        const char *filename,\n"
29490 "                        const char *remotefilename,\n"
29491 "                        int64_t offset);\n"
29492 "\n"
29493 msgstr ""
29494
29495 #. type: textblock
29496 #: ../src/guestfs-actions.pod:7268
29497 msgid ""
29498 "Note that there is no limit on the amount of data that can be uploaded with "
29499 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
29500 "full amount unless an error occurs."
29501 msgstr ""
29502
29503 #. type: textblock
29504 #: ../src/guestfs-actions.pod:7273
29505 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
29506 msgstr ""
29507
29508 #. type: =head2
29509 #: ../src/guestfs-actions.pod:7284
29510 msgid "guestfs_utimens"
29511 msgstr ""
29512
29513 #. type: verbatim
29514 #: ../src/guestfs-actions.pod:7286
29515 #, no-wrap
29516 msgid ""
29517 " int\n"
29518 " guestfs_utimens (guestfs_h *g,\n"
29519 "                  const char *path,\n"
29520 "                  int64_t atsecs,\n"
29521 "                  int64_t atnsecs,\n"
29522 "                  int64_t mtsecs,\n"
29523 "                  int64_t mtnsecs);\n"
29524 "\n"
29525 msgstr ""
29526
29527 #. type: =head2
29528 #: ../src/guestfs-actions.pod:7315 ../src/guestfs-structs.pod:175
29529 msgid "guestfs_version"
29530 msgstr ""
29531
29532 #. type: verbatim
29533 #: ../src/guestfs-actions.pod:7317
29534 #, no-wrap
29535 msgid ""
29536 " struct guestfs_version *\n"
29537 " guestfs_version (guestfs_h *g);\n"
29538 "\n"
29539 msgstr ""
29540
29541 #. type: textblock
29542 #: ../src/guestfs-actions.pod:7345
29543 msgid ""
29544 "I<Note:> Don't use this call to test for availability of features.  In "
29545 "enterprise distributions we backport features from later versions into "
29546 "earlier versions, making this an unreliable way to test for features.  Use "
29547 "C<guestfs_available> instead."
29548 msgstr ""
29549
29550 #. type: textblock
29551 #: ../src/guestfs-actions.pod:7351
29552 msgid ""
29553 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
29554 "error.  I<The caller must call C<guestfs_free_version> after use>."
29555 msgstr ""
29556
29557 #. type: textblock
29558 #: ../src/guestfs-actions.pod:7355
29559 msgid "(Added in 1.0.58)"
29560 msgstr ""
29561
29562 #. type: =head2
29563 #: ../src/guestfs-actions.pod:7357
29564 msgid "guestfs_vfs_label"
29565 msgstr ""
29566
29567 #. type: verbatim
29568 #: ../src/guestfs-actions.pod:7359
29569 #, no-wrap
29570 msgid ""
29571 " char *\n"
29572 " guestfs_vfs_label (guestfs_h *g,\n"
29573 "                    const char *device);\n"
29574 "\n"
29575 msgstr ""
29576
29577 #. type: textblock
29578 #: ../src/guestfs-actions.pod:7368
29579 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
29580 msgstr ""
29581
29582 #. type: textblock
29583 #: ../src/guestfs-actions.pod:7373 ../src/guestfs-actions.pod:7410
29584 msgid "(Added in 1.3.18)"
29585 msgstr ""
29586
29587 #. type: =head2
29588 #: ../src/guestfs-actions.pod:7375
29589 msgid "guestfs_vfs_type"
29590 msgstr ""
29591
29592 #. type: verbatim
29593 #: ../src/guestfs-actions.pod:7377
29594 #, no-wrap
29595 msgid ""
29596 " char *\n"
29597 " guestfs_vfs_type (guestfs_h *g,\n"
29598 "                   const char *device);\n"
29599 "\n"
29600 msgstr ""
29601
29602 #. type: =head2
29603 #: ../src/guestfs-actions.pod:7394
29604 msgid "guestfs_vfs_uuid"
29605 msgstr ""
29606
29607 #. type: verbatim
29608 #: ../src/guestfs-actions.pod:7396
29609 #, no-wrap
29610 msgid ""
29611 " char *\n"
29612 " guestfs_vfs_uuid (guestfs_h *g,\n"
29613 "                   const char *device);\n"
29614 "\n"
29615 msgstr ""
29616
29617 #. type: textblock
29618 #: ../src/guestfs-actions.pod:7405
29619 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
29620 msgstr ""
29621
29622 #. type: =head2
29623 #: ../src/guestfs-actions.pod:7412
29624 msgid "guestfs_vg_activate"
29625 msgstr ""
29626
29627 #. type: verbatim
29628 #: ../src/guestfs-actions.pod:7414
29629 #, no-wrap
29630 msgid ""
29631 " int\n"
29632 " guestfs_vg_activate (guestfs_h *g,\n"
29633 "                      int activate,\n"
29634 "                      char *const *volgroups);\n"
29635 "\n"
29636 msgstr ""
29637
29638 #. type: =head2
29639 #: ../src/guestfs-actions.pod:7431
29640 msgid "guestfs_vg_activate_all"
29641 msgstr ""
29642
29643 #. type: verbatim
29644 #: ../src/guestfs-actions.pod:7433
29645 #, no-wrap
29646 msgid ""
29647 " int\n"
29648 " guestfs_vg_activate_all (guestfs_h *g,\n"
29649 "                          int activate);\n"
29650 "\n"
29651 msgstr ""
29652
29653 #. type: =head2
29654 #: ../src/guestfs-actions.pod:7446
29655 msgid "guestfs_vgcreate"
29656 msgstr ""
29657
29658 #. type: verbatim
29659 #: ../src/guestfs-actions.pod:7448
29660 #, no-wrap
29661 msgid ""
29662 " int\n"
29663 " guestfs_vgcreate (guestfs_h *g,\n"
29664 "                   const char *volgroup,\n"
29665 "                   char *const *physvols);\n"
29666 "\n"
29667 msgstr ""
29668
29669 #. type: =head2
29670 #: ../src/guestfs-actions.pod:7460
29671 msgid "guestfs_vglvuuids"
29672 msgstr ""
29673
29674 #. type: verbatim
29675 #: ../src/guestfs-actions.pod:7462
29676 #, no-wrap
29677 msgid ""
29678 " char **\n"
29679 " guestfs_vglvuuids (guestfs_h *g,\n"
29680 "                    const char *vgname);\n"
29681 "\n"
29682 msgstr ""
29683
29684 #. type: textblock
29685 #: ../src/guestfs-actions.pod:7469
29686 msgid ""
29687 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
29688 "associate logical volumes and volume groups."
29689 msgstr ""
29690
29691 #. type: textblock
29692 #: ../src/guestfs-actions.pod:7472
29693 msgid "See also C<guestfs_vgpvuuids>."
29694 msgstr ""
29695
29696 #. type: =head2
29697 #: ../src/guestfs-actions.pod:7480
29698 msgid "guestfs_vgpvuuids"
29699 msgstr ""
29700
29701 #. type: verbatim
29702 #: ../src/guestfs-actions.pod:7482
29703 #, no-wrap
29704 msgid ""
29705 " char **\n"
29706 " guestfs_vgpvuuids (guestfs_h *g,\n"
29707 "                    const char *vgname);\n"
29708 "\n"
29709 msgstr ""
29710
29711 #. type: textblock
29712 #: ../src/guestfs-actions.pod:7489
29713 msgid ""
29714 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
29715 "associate physical volumes and volume groups."
29716 msgstr ""
29717
29718 #. type: textblock
29719 #: ../src/guestfs-actions.pod:7492
29720 msgid "See also C<guestfs_vglvuuids>."
29721 msgstr ""
29722
29723 #. type: =head2
29724 #: ../src/guestfs-actions.pod:7500
29725 msgid "guestfs_vgremove"
29726 msgstr ""
29727
29728 #. type: verbatim
29729 #: ../src/guestfs-actions.pod:7502
29730 #, no-wrap
29731 msgid ""
29732 " int\n"
29733 " guestfs_vgremove (guestfs_h *g,\n"
29734 "                   const char *vgname);\n"
29735 "\n"
29736 msgstr ""
29737
29738 #. type: =head2
29739 #: ../src/guestfs-actions.pod:7515
29740 msgid "guestfs_vgrename"
29741 msgstr ""
29742
29743 #. type: verbatim
29744 #: ../src/guestfs-actions.pod:7517
29745 #, no-wrap
29746 msgid ""
29747 " int\n"
29748 " guestfs_vgrename (guestfs_h *g,\n"
29749 "                   const char *volgroup,\n"
29750 "                   const char *newvolgroup);\n"
29751 "\n"
29752 msgstr ""
29753
29754 #. type: =head2
29755 #: ../src/guestfs-actions.pod:7528
29756 msgid "guestfs_vgs"
29757 msgstr ""
29758
29759 #. type: verbatim
29760 #: ../src/guestfs-actions.pod:7530
29761 #, no-wrap
29762 msgid ""
29763 " char **\n"
29764 " guestfs_vgs (guestfs_h *g);\n"
29765 "\n"
29766 msgstr ""
29767
29768 #. type: textblock
29769 #: ../src/guestfs-actions.pod:7539
29770 msgid "See also C<guestfs_vgs_full>."
29771 msgstr ""
29772
29773 #. type: =head2
29774 #: ../src/guestfs-actions.pod:7547
29775 msgid "guestfs_vgs_full"
29776 msgstr ""
29777
29778 #. type: verbatim
29779 #: ../src/guestfs-actions.pod:7549
29780 #, no-wrap
29781 msgid ""
29782 " struct guestfs_lvm_vg_list *\n"
29783 " guestfs_vgs_full (guestfs_h *g);\n"
29784 "\n"
29785 msgstr ""
29786
29787 #. type: textblock
29788 #: ../src/guestfs-actions.pod:7555
29789 msgid ""
29790 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
29791 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
29792 msgstr ""
29793
29794 #. type: =head2
29795 #: ../src/guestfs-actions.pod:7561
29796 msgid "guestfs_vgscan"
29797 msgstr ""
29798
29799 #. type: verbatim
29800 #: ../src/guestfs-actions.pod:7563
29801 #, no-wrap
29802 msgid ""
29803 " int\n"
29804 " guestfs_vgscan (guestfs_h *g);\n"
29805 "\n"
29806 msgstr ""
29807
29808 #. type: =head2
29809 #: ../src/guestfs-actions.pod:7573
29810 msgid "guestfs_vguuid"
29811 msgstr ""
29812
29813 #. type: verbatim
29814 #: ../src/guestfs-actions.pod:7575
29815 #, no-wrap
29816 msgid ""
29817 " char *\n"
29818 " guestfs_vguuid (guestfs_h *g,\n"
29819 "                 const char *vgname);\n"
29820 "\n"
29821 msgstr ""
29822
29823 #. type: =head2
29824 #: ../src/guestfs-actions.pod:7586
29825 msgid "guestfs_wait_ready"
29826 msgstr ""
29827
29828 #. type: verbatim
29829 #: ../src/guestfs-actions.pod:7588
29830 #, no-wrap
29831 msgid ""
29832 " int\n"
29833 " guestfs_wait_ready (guestfs_h *g);\n"
29834 "\n"
29835 msgstr ""
29836
29837 #. type: textblock
29838 #: ../src/guestfs-actions.pod:7591
29839 msgid "This function is a no op."
29840 msgstr ""
29841
29842 #. type: textblock
29843 #: ../src/guestfs-actions.pod:7593
29844 msgid ""
29845 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
29846 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
29847 "is no longer necessary because C<guestfs_launch> now does the waiting."
29848 msgstr ""
29849
29850 #. type: textblock
29851 #: ../src/guestfs-actions.pod:7598
29852 msgid ""
29853 "If you see any calls to this function in code then you can just remove them, "
29854 "unless you want to retain compatibility with older versions of the API."
29855 msgstr ""
29856
29857 #. type: textblock
29858 #: ../src/guestfs-actions.pod:7604
29859 msgid ""
29860 "This function is deprecated.  In new code, use the L</guestfs_launch> call "
29861 "instead."
29862 msgstr ""
29863
29864 #. type: =head2
29865 #: ../src/guestfs-actions.pod:7613
29866 msgid "guestfs_wc_c"
29867 msgstr ""
29868
29869 #. type: verbatim
29870 #: ../src/guestfs-actions.pod:7615
29871 #, no-wrap
29872 msgid ""
29873 " int\n"
29874 " guestfs_wc_c (guestfs_h *g,\n"
29875 "               const char *path);\n"
29876 "\n"
29877 msgstr ""
29878
29879 #. type: =head2
29880 #: ../src/guestfs-actions.pod:7626
29881 msgid "guestfs_wc_l"
29882 msgstr ""
29883
29884 #. type: verbatim
29885 #: ../src/guestfs-actions.pod:7628
29886 #, no-wrap
29887 msgid ""
29888 " int\n"
29889 " guestfs_wc_l (guestfs_h *g,\n"
29890 "               const char *path);\n"
29891 "\n"
29892 msgstr ""
29893
29894 #. type: =head2
29895 #: ../src/guestfs-actions.pod:7639
29896 msgid "guestfs_wc_w"
29897 msgstr ""
29898
29899 #. type: verbatim
29900 #: ../src/guestfs-actions.pod:7641
29901 #, no-wrap
29902 msgid ""
29903 " int\n"
29904 " guestfs_wc_w (guestfs_h *g,\n"
29905 "               const char *path);\n"
29906 "\n"
29907 msgstr ""
29908
29909 #. type: =head2
29910 #: ../src/guestfs-actions.pod:7652
29911 msgid "guestfs_write"
29912 msgstr ""
29913
29914 #. type: verbatim
29915 #: ../src/guestfs-actions.pod:7654
29916 #, no-wrap
29917 msgid ""
29918 " int\n"
29919 " guestfs_write (guestfs_h *g,\n"
29920 "                const char *path,\n"
29921 "                const char *content,\n"
29922 "                size_t content_size);\n"
29923 "\n"
29924 msgstr ""
29925
29926 #. type: textblock
29927 #: ../src/guestfs-actions.pod:7663
29928 msgid "See also C<guestfs_write_append>."
29929 msgstr ""
29930
29931 #. type: =head2
29932 #: ../src/guestfs-actions.pod:7672
29933 msgid "guestfs_write_append"
29934 msgstr ""
29935
29936 #. type: verbatim
29937 #: ../src/guestfs-actions.pod:7674
29938 #, no-wrap
29939 msgid ""
29940 " int\n"
29941 " guestfs_write_append (guestfs_h *g,\n"
29942 "                       const char *path,\n"
29943 "                       const char *content,\n"
29944 "                       size_t content_size);\n"
29945 "\n"
29946 msgstr ""
29947
29948 #. type: textblock
29949 #: ../src/guestfs-actions.pod:7683
29950 msgid "See also C<guestfs_write>."
29951 msgstr ""
29952
29953 #. type: =head2
29954 #: ../src/guestfs-actions.pod:7692
29955 msgid "guestfs_write_file"
29956 msgstr ""
29957
29958 #. type: verbatim
29959 #: ../src/guestfs-actions.pod:7694
29960 #, no-wrap
29961 msgid ""
29962 " int\n"
29963 " guestfs_write_file (guestfs_h *g,\n"
29964 "                     const char *path,\n"
29965 "                     const char *content,\n"
29966 "                     int size);\n"
29967 "\n"
29968 msgstr ""
29969
29970 #. type: textblock
29971 #: ../src/guestfs-actions.pod:7716
29972 msgid ""
29973 "This function is deprecated.  In new code, use the L</guestfs_write> call "
29974 "instead."
29975 msgstr ""
29976
29977 #. type: =head2
29978 #: ../src/guestfs-actions.pod:7725
29979 msgid "guestfs_zegrep"
29980 msgstr ""
29981
29982 #. type: verbatim
29983 #: ../src/guestfs-actions.pod:7727
29984 #, no-wrap
29985 msgid ""
29986 " char **\n"
29987 " guestfs_zegrep (guestfs_h *g,\n"
29988 "                 const char *regex,\n"
29989 "                 const char *path);\n"
29990 "\n"
29991 msgstr ""
29992
29993 #. type: =head2
29994 #: ../src/guestfs-actions.pod:7744
29995 msgid "guestfs_zegrepi"
29996 msgstr ""
29997
29998 #. type: verbatim
29999 #: ../src/guestfs-actions.pod:7746
30000 #, no-wrap
30001 msgid ""
30002 " char **\n"
30003 " guestfs_zegrepi (guestfs_h *g,\n"
30004 "                  const char *regex,\n"
30005 "                  const char *path);\n"
30006 "\n"
30007 msgstr ""
30008
30009 #. type: =head2
30010 #: ../src/guestfs-actions.pod:7763
30011 msgid "guestfs_zero"
30012 msgstr ""
30013
30014 #. type: verbatim
30015 #: ../src/guestfs-actions.pod:7765
30016 #, no-wrap
30017 msgid ""
30018 " int\n"
30019 " guestfs_zero (guestfs_h *g,\n"
30020 "               const char *device);\n"
30021 "\n"
30022 msgstr ""
30023
30024 #. type: textblock
30025 #: ../src/guestfs-actions.pod:7775
30026 msgid ""
30027 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
30028 "C<guestfs_is_zero_device>"
30029 msgstr ""
30030
30031 #. type: =head2
30032 #: ../src/guestfs-actions.pod:7787
30033 msgid "guestfs_zero_device"
30034 msgstr ""
30035
30036 #. type: verbatim
30037 #: ../src/guestfs-actions.pod:7789
30038 #, no-wrap
30039 msgid ""
30040 " int\n"
30041 " guestfs_zero_device (guestfs_h *g,\n"
30042 "                      const char *device);\n"
30043 "\n"
30044 msgstr ""
30045
30046 #. type: textblock
30047 #: ../src/guestfs-actions.pod:7793
30048 msgid ""
30049 "This command writes zeroes over the entire C<device>.  Compare with "
30050 "C<guestfs_zero> which just zeroes the first few blocks of a device."
30051 msgstr ""
30052
30053 #. type: textblock
30054 #: ../src/guestfs-actions.pod:7807
30055 msgid "(Added in 1.3.1)"
30056 msgstr ""
30057
30058 #. type: =head2
30059 #: ../src/guestfs-actions.pod:7809
30060 msgid "guestfs_zerofree"
30061 msgstr ""
30062
30063 #. type: verbatim
30064 #: ../src/guestfs-actions.pod:7811
30065 #, no-wrap
30066 msgid ""
30067 " int\n"
30068 " guestfs_zerofree (guestfs_h *g,\n"
30069 "                   const char *device);\n"
30070 "\n"
30071 msgstr ""
30072
30073 #. type: =head2
30074 #: ../src/guestfs-actions.pod:7830
30075 msgid "guestfs_zfgrep"
30076 msgstr ""
30077
30078 #. type: verbatim
30079 #: ../src/guestfs-actions.pod:7832
30080 #, no-wrap
30081 msgid ""
30082 " char **\n"
30083 " guestfs_zfgrep (guestfs_h *g,\n"
30084 "                 const char *pattern,\n"
30085 "                 const char *path);\n"
30086 "\n"
30087 msgstr ""
30088
30089 #. type: =head2
30090 #: ../src/guestfs-actions.pod:7849
30091 msgid "guestfs_zfgrepi"
30092 msgstr ""
30093
30094 #. type: verbatim
30095 #: ../src/guestfs-actions.pod:7851
30096 #, no-wrap
30097 msgid ""
30098 " char **\n"
30099 " guestfs_zfgrepi (guestfs_h *g,\n"
30100 "                  const char *pattern,\n"
30101 "                  const char *path);\n"
30102 "\n"
30103 msgstr ""
30104
30105 #. type: =head2
30106 #: ../src/guestfs-actions.pod:7868
30107 msgid "guestfs_zfile"
30108 msgstr ""
30109
30110 #. type: verbatim
30111 #: ../src/guestfs-actions.pod:7870
30112 #, no-wrap
30113 msgid ""
30114 " char *\n"
30115 " guestfs_zfile (guestfs_h *g,\n"
30116 "                const char *meth,\n"
30117 "                const char *path);\n"
30118 "\n"
30119 msgstr ""
30120
30121 #. type: textblock
30122 #: ../src/guestfs-actions.pod:7880
30123 msgid ""
30124 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
30125 "files."
30126 msgstr ""
30127
30128 #. type: textblock
30129 #: ../src/guestfs-actions.pod:7886
30130 msgid ""
30131 "This function is deprecated.  In new code, use the L</guestfs_file> call "
30132 "instead."
30133 msgstr ""
30134
30135 #. type: =head2
30136 #: ../src/guestfs-actions.pod:7895
30137 msgid "guestfs_zgrep"
30138 msgstr ""
30139
30140 #. type: verbatim
30141 #: ../src/guestfs-actions.pod:7897
30142 #, no-wrap
30143 msgid ""
30144 " char **\n"
30145 " guestfs_zgrep (guestfs_h *g,\n"
30146 "                const char *regex,\n"
30147 "                const char *path);\n"
30148 "\n"
30149 msgstr ""
30150
30151 #. type: =head2
30152 #: ../src/guestfs-actions.pod:7914
30153 msgid "guestfs_zgrepi"
30154 msgstr ""
30155
30156 #. type: verbatim
30157 #: ../src/guestfs-actions.pod:7916
30158 #, no-wrap
30159 msgid ""
30160 " char **\n"
30161 " guestfs_zgrepi (guestfs_h *g,\n"
30162 "                 const char *regex,\n"
30163 "                 const char *path);\n"
30164 "\n"
30165 msgstr ""
30166
30167 #. type: =item
30168 #: ../src/guestfs-availability.pod:3
30169 msgid "B<augeas>"
30170 msgstr ""
30171
30172 #. type: textblock
30173 #: ../src/guestfs-availability.pod:5
30174 msgid ""
30175 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
30176 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
30177 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
30178 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
30179 "L</guestfs_aug_save> L</guestfs_aug_set>"
30180 msgstr ""
30181
30182 #. type: =item
30183 #: ../src/guestfs-availability.pod:21
30184 msgid "B<btrfs>"
30185 msgstr ""
30186
30187 #. type: textblock
30188 #: ../src/guestfs-availability.pod:23
30189 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
30190 msgstr ""
30191
30192 #. type: =item
30193 #: ../src/guestfs-availability.pod:26
30194 msgid "B<inotify>"
30195 msgstr ""
30196
30197 #. type: textblock
30198 #: ../src/guestfs-availability.pod:28
30199 msgid ""
30200 "The following functions: L</guestfs_inotify_add_watch> L</"
30201 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
30202 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
30203 msgstr ""
30204
30205 #. type: =item
30206 #: ../src/guestfs-availability.pod:36
30207 msgid "B<linuxfsuuid>"
30208 msgstr ""
30209
30210 #. type: textblock
30211 #: ../src/guestfs-availability.pod:38
30212 msgid ""
30213 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
30214 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
30215 msgstr ""
30216
30217 #. type: =item
30218 #: ../src/guestfs-availability.pod:45
30219 msgid "B<linuxmodules>"
30220 msgstr ""
30221
30222 #. type: textblock
30223 #: ../src/guestfs-availability.pod:47
30224 msgid "The following functions: L</guestfs_modprobe>"
30225 msgstr ""
30226
30227 #. type: =item
30228 #: ../src/guestfs-availability.pod:50
30229 msgid "B<linuxxattrs>"
30230 msgstr ""
30231
30232 #. type: textblock
30233 #: ../src/guestfs-availability.pod:52
30234 msgid ""
30235 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
30236 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
30237 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
30238 "guestfs_setxattr>"
30239 msgstr ""
30240
30241 #. type: =item
30242 #: ../src/guestfs-availability.pod:63
30243 msgid "B<luks>"
30244 msgstr ""
30245
30246 #. type: textblock
30247 #: ../src/guestfs-availability.pod:65
30248 msgid ""
30249 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
30250 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
30251 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
30252 msgstr ""
30253
30254 #. type: =item
30255 #: ../src/guestfs-availability.pod:74
30256 msgid "B<lvm2>"
30257 msgstr ""
30258
30259 #. type: textblock
30260 #: ../src/guestfs-availability.pod:76
30261 msgid ""
30262 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
30263 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
30264 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
30265 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
30266 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
30267 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
30268 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
30269 msgstr ""
30270
30271 #. type: =item
30272 #: ../src/guestfs-availability.pod:99
30273 msgid "B<mknod>"
30274 msgstr ""
30275
30276 #. type: textblock
30277 #: ../src/guestfs-availability.pod:101
30278 msgid ""
30279 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
30280 "guestfs_mknod_b> L</guestfs_mknod_c>"
30281 msgstr ""
30282
30283 #. type: =item
30284 #: ../src/guestfs-availability.pod:107
30285 msgid "B<ntfs3g>"
30286 msgstr ""
30287
30288 #. type: textblock
30289 #: ../src/guestfs-availability.pod:109
30290 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
30291 msgstr ""
30292
30293 #. type: =item
30294 #: ../src/guestfs-availability.pod:112
30295 msgid "B<ntfsprogs>"
30296 msgstr ""
30297
30298 #. type: textblock
30299 #: ../src/guestfs-availability.pod:114
30300 msgid ""
30301 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
30302 "L</guestfs_ntfsresize_size>"
30303 msgstr ""
30304
30305 #. type: =item
30306 #: ../src/guestfs-availability.pod:119
30307 msgid "B<realpath>"
30308 msgstr ""
30309
30310 #. type: textblock
30311 #: ../src/guestfs-availability.pod:121
30312 msgid "The following functions: L</guestfs_realpath>"
30313 msgstr ""
30314
30315 #. type: =item
30316 #: ../src/guestfs-availability.pod:124
30317 msgid "B<scrub>"
30318 msgstr ""
30319
30320 #. type: textblock
30321 #: ../src/guestfs-availability.pod:126
30322 msgid ""
30323 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
30324 "guestfs_scrub_freespace>"
30325 msgstr ""
30326
30327 #. type: =item
30328 #: ../src/guestfs-availability.pod:131
30329 msgid "B<selinux>"
30330 msgstr ""
30331
30332 #. type: textblock
30333 #: ../src/guestfs-availability.pod:133
30334 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
30335 msgstr ""
30336
30337 #. type: =item
30338 #: ../src/guestfs-availability.pod:137
30339 msgid "B<xz>"
30340 msgstr ""
30341
30342 #. type: textblock
30343 #: ../src/guestfs-availability.pod:139
30344 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
30345 msgstr ""
30346
30347 #. type: =item
30348 #: ../src/guestfs-availability.pod:143
30349 msgid "B<zerofree>"
30350 msgstr ""
30351
30352 #. type: textblock
30353 #: ../src/guestfs-availability.pod:145
30354 msgid "The following functions: L</guestfs_zerofree>"
30355 msgstr ""
30356
30357 #. type: =head2
30358 #: ../src/guestfs-structs.pod:1
30359 msgid "guestfs_int_bool"
30360 msgstr ""
30361
30362 #. type: verbatim
30363 #: ../src/guestfs-structs.pod:3
30364 #, no-wrap
30365 msgid ""
30366 " struct guestfs_int_bool {\n"
30367 "   int32_t i;\n"
30368 "   int32_t b;\n"
30369 " };\n"
30370 " \n"
30371 msgstr ""
30372
30373 #. type: verbatim
30374 #: ../src/guestfs-structs.pod:8
30375 #, no-wrap
30376 msgid ""
30377 " struct guestfs_int_bool_list {\n"
30378 "   uint32_t len; /* Number of elements in list. */\n"
30379 "   struct guestfs_int_bool *val; /* Elements. */\n"
30380 " };\n"
30381 " \n"
30382 msgstr ""
30383
30384 #. type: verbatim
30385 #: ../src/guestfs-structs.pod:13
30386 #, no-wrap
30387 msgid ""
30388 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
30389 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
30390 "\n"
30391 msgstr ""
30392
30393 #. type: =head2
30394 #: ../src/guestfs-structs.pod:16
30395 msgid "guestfs_lvm_pv"
30396 msgstr ""
30397
30398 #. type: verbatim
30399 #: ../src/guestfs-structs.pod:18
30400 #, no-wrap
30401 msgid ""
30402 " struct guestfs_lvm_pv {\n"
30403 "   char *pv_name;\n"
30404 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
30405 "   char pv_uuid[32];\n"
30406 "   char *pv_fmt;\n"
30407 "   uint64_t pv_size;\n"
30408 "   uint64_t dev_size;\n"
30409 "   uint64_t pv_free;\n"
30410 "   uint64_t pv_used;\n"
30411 "   char *pv_attr;\n"
30412 "   int64_t pv_pe_count;\n"
30413 "   int64_t pv_pe_alloc_count;\n"
30414 "   char *pv_tags;\n"
30415 "   uint64_t pe_start;\n"
30416 "   int64_t pv_mda_count;\n"
30417 "   uint64_t pv_mda_free;\n"
30418 " };\n"
30419 " \n"
30420 msgstr ""
30421
30422 #. type: verbatim
30423 #: ../src/guestfs-structs.pod:36
30424 #, no-wrap
30425 msgid ""
30426 " struct guestfs_lvm_pv_list {\n"
30427 "   uint32_t len; /* Number of elements in list. */\n"
30428 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
30429 " };\n"
30430 " \n"
30431 msgstr ""
30432
30433 #. type: verbatim
30434 #: ../src/guestfs-structs.pod:41
30435 #, no-wrap
30436 msgid ""
30437 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
30438 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
30439 "\n"
30440 msgstr ""
30441
30442 #. type: =head2
30443 #: ../src/guestfs-structs.pod:44
30444 msgid "guestfs_lvm_vg"
30445 msgstr ""
30446
30447 #. type: verbatim
30448 #: ../src/guestfs-structs.pod:46
30449 #, no-wrap
30450 msgid ""
30451 " struct guestfs_lvm_vg {\n"
30452 "   char *vg_name;\n"
30453 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
30454 "   char vg_uuid[32];\n"
30455 "   char *vg_fmt;\n"
30456 "   char *vg_attr;\n"
30457 "   uint64_t vg_size;\n"
30458 "   uint64_t vg_free;\n"
30459 "   char *vg_sysid;\n"
30460 "   uint64_t vg_extent_size;\n"
30461 "   int64_t vg_extent_count;\n"
30462 "   int64_t vg_free_count;\n"
30463 "   int64_t max_lv;\n"
30464 "   int64_t max_pv;\n"
30465 "   int64_t pv_count;\n"
30466 "   int64_t lv_count;\n"
30467 "   int64_t snap_count;\n"
30468 "   int64_t vg_seqno;\n"
30469 "   char *vg_tags;\n"
30470 "   int64_t vg_mda_count;\n"
30471 "   uint64_t vg_mda_free;\n"
30472 " };\n"
30473 " \n"
30474 msgstr ""
30475
30476 #. type: verbatim
30477 #: ../src/guestfs-structs.pod:69
30478 #, no-wrap
30479 msgid ""
30480 " struct guestfs_lvm_vg_list {\n"
30481 "   uint32_t len; /* Number of elements in list. */\n"
30482 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
30483 " };\n"
30484 " \n"
30485 msgstr ""
30486
30487 #. type: verbatim
30488 #: ../src/guestfs-structs.pod:74
30489 #, no-wrap
30490 msgid ""
30491 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
30492 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
30493 "\n"
30494 msgstr ""
30495
30496 #. type: =head2
30497 #: ../src/guestfs-structs.pod:77
30498 msgid "guestfs_lvm_lv"
30499 msgstr ""
30500
30501 #. type: verbatim
30502 #: ../src/guestfs-structs.pod:79
30503 #, no-wrap
30504 msgid ""
30505 " struct guestfs_lvm_lv {\n"
30506 "   char *lv_name;\n"
30507 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
30508 "   char lv_uuid[32];\n"
30509 "   char *lv_attr;\n"
30510 "   int64_t lv_major;\n"
30511 "   int64_t lv_minor;\n"
30512 "   int64_t lv_kernel_major;\n"
30513 "   int64_t lv_kernel_minor;\n"
30514 "   uint64_t lv_size;\n"
30515 "   int64_t seg_count;\n"
30516 "   char *origin;\n"
30517 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
30518 "   float snap_percent;\n"
30519 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
30520 "   float copy_percent;\n"
30521 "   char *move_pv;\n"
30522 "   char *lv_tags;\n"
30523 "   char *mirror_log;\n"
30524 "   char *modules;\n"
30525 " };\n"
30526 " \n"
30527 msgstr ""
30528
30529 #. type: verbatim
30530 #: ../src/guestfs-structs.pod:101
30531 #, no-wrap
30532 msgid ""
30533 " struct guestfs_lvm_lv_list {\n"
30534 "   uint32_t len; /* Number of elements in list. */\n"
30535 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
30536 " };\n"
30537 " \n"
30538 msgstr ""
30539
30540 #. type: verbatim
30541 #: ../src/guestfs-structs.pod:106
30542 #, no-wrap
30543 msgid ""
30544 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
30545 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
30546 "\n"
30547 msgstr ""
30548
30549 #. type: verbatim
30550 #: ../src/guestfs-structs.pod:111
30551 #, no-wrap
30552 msgid ""
30553 " struct guestfs_stat {\n"
30554 "   int64_t dev;\n"
30555 "   int64_t ino;\n"
30556 "   int64_t mode;\n"
30557 "   int64_t nlink;\n"
30558 "   int64_t uid;\n"
30559 "   int64_t gid;\n"
30560 "   int64_t rdev;\n"
30561 "   int64_t size;\n"
30562 "   int64_t blksize;\n"
30563 "   int64_t blocks;\n"
30564 "   int64_t atime;\n"
30565 "   int64_t mtime;\n"
30566 "   int64_t ctime;\n"
30567 " };\n"
30568 " \n"
30569 msgstr ""
30570
30571 #. type: verbatim
30572 #: ../src/guestfs-structs.pod:127
30573 #, no-wrap
30574 msgid ""
30575 " struct guestfs_stat_list {\n"
30576 "   uint32_t len; /* Number of elements in list. */\n"
30577 "   struct guestfs_stat *val; /* Elements. */\n"
30578 " };\n"
30579 " \n"
30580 msgstr ""
30581
30582 #. type: verbatim
30583 #: ../src/guestfs-structs.pod:132
30584 #, no-wrap
30585 msgid ""
30586 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
30587 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
30588 "\n"
30589 msgstr ""
30590
30591 #. type: verbatim
30592 #: ../src/guestfs-structs.pod:137
30593 #, no-wrap
30594 msgid ""
30595 " struct guestfs_statvfs {\n"
30596 "   int64_t bsize;\n"
30597 "   int64_t frsize;\n"
30598 "   int64_t blocks;\n"
30599 "   int64_t bfree;\n"
30600 "   int64_t bavail;\n"
30601 "   int64_t files;\n"
30602 "   int64_t ffree;\n"
30603 "   int64_t favail;\n"
30604 "   int64_t fsid;\n"
30605 "   int64_t flag;\n"
30606 "   int64_t namemax;\n"
30607 " };\n"
30608 " \n"
30609 msgstr ""
30610
30611 #. type: verbatim
30612 #: ../src/guestfs-structs.pod:151
30613 #, no-wrap
30614 msgid ""
30615 " struct guestfs_statvfs_list {\n"
30616 "   uint32_t len; /* Number of elements in list. */\n"
30617 "   struct guestfs_statvfs *val; /* Elements. */\n"
30618 " };\n"
30619 " \n"
30620 msgstr ""
30621
30622 #. type: verbatim
30623 #: ../src/guestfs-structs.pod:156
30624 #, no-wrap
30625 msgid ""
30626 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
30627 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
30628 "\n"
30629 msgstr ""
30630
30631 #. type: =head2
30632 #: ../src/guestfs-structs.pod:159
30633 msgid "guestfs_dirent"
30634 msgstr ""
30635
30636 #. type: verbatim
30637 #: ../src/guestfs-structs.pod:161
30638 #, no-wrap
30639 msgid ""
30640 " struct guestfs_dirent {\n"
30641 "   int64_t ino;\n"
30642 "   char ftyp;\n"
30643 "   char *name;\n"
30644 " };\n"
30645 " \n"
30646 msgstr ""
30647
30648 #. type: verbatim
30649 #: ../src/guestfs-structs.pod:167
30650 #, no-wrap
30651 msgid ""
30652 " struct guestfs_dirent_list {\n"
30653 "   uint32_t len; /* Number of elements in list. */\n"
30654 "   struct guestfs_dirent *val; /* Elements. */\n"
30655 " };\n"
30656 " \n"
30657 msgstr ""
30658
30659 #. type: verbatim
30660 #: ../src/guestfs-structs.pod:172
30661 #, no-wrap
30662 msgid ""
30663 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
30664 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
30665 "\n"
30666 msgstr ""
30667
30668 #. type: verbatim
30669 #: ../src/guestfs-structs.pod:177
30670 #, no-wrap
30671 msgid ""
30672 " struct guestfs_version {\n"
30673 "   int64_t major;\n"
30674 "   int64_t minor;\n"
30675 "   int64_t release;\n"
30676 "   char *extra;\n"
30677 " };\n"
30678 " \n"
30679 msgstr ""
30680
30681 #. type: verbatim
30682 #: ../src/guestfs-structs.pod:184
30683 #, no-wrap
30684 msgid ""
30685 " struct guestfs_version_list {\n"
30686 "   uint32_t len; /* Number of elements in list. */\n"
30687 "   struct guestfs_version *val; /* Elements. */\n"
30688 " };\n"
30689 " \n"
30690 msgstr ""
30691
30692 #. type: verbatim
30693 #: ../src/guestfs-structs.pod:189
30694 #, no-wrap
30695 msgid ""
30696 " void guestfs_free_version (struct guestfs_free_version *);\n"
30697 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
30698 "\n"
30699 msgstr ""
30700
30701 #. type: =head2
30702 #: ../src/guestfs-structs.pod:192
30703 msgid "guestfs_xattr"
30704 msgstr ""
30705
30706 #. type: verbatim
30707 #: ../src/guestfs-structs.pod:194
30708 #, no-wrap
30709 msgid ""
30710 " struct guestfs_xattr {\n"
30711 "   char *attrname;\n"
30712 "   /* The next two fields describe a byte array. */\n"
30713 "   uint32_t attrval_len;\n"
30714 "   char *attrval;\n"
30715 " };\n"
30716 " \n"
30717 msgstr ""
30718
30719 #. type: verbatim
30720 #: ../src/guestfs-structs.pod:201
30721 #, no-wrap
30722 msgid ""
30723 " struct guestfs_xattr_list {\n"
30724 "   uint32_t len; /* Number of elements in list. */\n"
30725 "   struct guestfs_xattr *val; /* Elements. */\n"
30726 " };\n"
30727 " \n"
30728 msgstr ""
30729
30730 #. type: verbatim
30731 #: ../src/guestfs-structs.pod:206
30732 #, no-wrap
30733 msgid ""
30734 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
30735 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
30736 "\n"
30737 msgstr ""
30738
30739 #. type: =head2
30740 #: ../src/guestfs-structs.pod:209
30741 msgid "guestfs_inotify_event"
30742 msgstr ""
30743
30744 #. type: verbatim
30745 #: ../src/guestfs-structs.pod:211
30746 #, no-wrap
30747 msgid ""
30748 " struct guestfs_inotify_event {\n"
30749 "   int64_t in_wd;\n"
30750 "   uint32_t in_mask;\n"
30751 "   uint32_t in_cookie;\n"
30752 "   char *in_name;\n"
30753 " };\n"
30754 " \n"
30755 msgstr ""
30756
30757 #. type: verbatim
30758 #: ../src/guestfs-structs.pod:218
30759 #, no-wrap
30760 msgid ""
30761 " struct guestfs_inotify_event_list {\n"
30762 "   uint32_t len; /* Number of elements in list. */\n"
30763 "   struct guestfs_inotify_event *val; /* Elements. */\n"
30764 " };\n"
30765 " \n"
30766 msgstr ""
30767
30768 #. type: verbatim
30769 #: ../src/guestfs-structs.pod:223
30770 #, no-wrap
30771 msgid ""
30772 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
30773 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
30774 "\n"
30775 msgstr ""
30776
30777 #. type: =head2
30778 #: ../src/guestfs-structs.pod:226
30779 msgid "guestfs_partition"
30780 msgstr ""
30781
30782 #. type: verbatim
30783 #: ../src/guestfs-structs.pod:228
30784 #, no-wrap
30785 msgid ""
30786 " struct guestfs_partition {\n"
30787 "   int32_t part_num;\n"
30788 "   uint64_t part_start;\n"
30789 "   uint64_t part_end;\n"
30790 "   uint64_t part_size;\n"
30791 " };\n"
30792 " \n"
30793 msgstr ""
30794
30795 #. type: verbatim
30796 #: ../src/guestfs-structs.pod:235
30797 #, no-wrap
30798 msgid ""
30799 " struct guestfs_partition_list {\n"
30800 "   uint32_t len; /* Number of elements in list. */\n"
30801 "   struct guestfs_partition *val; /* Elements. */\n"
30802 " };\n"
30803 " \n"
30804 msgstr ""
30805
30806 #. type: verbatim
30807 #: ../src/guestfs-structs.pod:240
30808 #, no-wrap
30809 msgid ""
30810 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
30811 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
30812 "\n"
30813 msgstr ""
30814
30815 #. type: =head2
30816 #: ../src/guestfs-structs.pod:243
30817 msgid "guestfs_application"
30818 msgstr ""
30819
30820 #. type: verbatim
30821 #: ../src/guestfs-structs.pod:245
30822 #, no-wrap
30823 msgid ""
30824 " struct guestfs_application {\n"
30825 "   char *app_name;\n"
30826 "   char *app_display_name;\n"
30827 "   int32_t app_epoch;\n"
30828 "   char *app_version;\n"
30829 "   char *app_release;\n"
30830 "   char *app_install_path;\n"
30831 "   char *app_trans_path;\n"
30832 "   char *app_publisher;\n"
30833 "   char *app_url;\n"
30834 "   char *app_source_package;\n"
30835 "   char *app_summary;\n"
30836 "   char *app_description;\n"
30837 " };\n"
30838 " \n"
30839 msgstr ""
30840
30841 #. type: verbatim
30842 #: ../src/guestfs-structs.pod:260
30843 #, no-wrap
30844 msgid ""
30845 " struct guestfs_application_list {\n"
30846 "   uint32_t len; /* Number of elements in list. */\n"
30847 "   struct guestfs_application *val; /* Elements. */\n"
30848 " };\n"
30849 " \n"
30850 msgstr ""
30851
30852 #. type: verbatim
30853 #: ../src/guestfs-structs.pod:265
30854 #, no-wrap
30855 msgid ""
30856 " void guestfs_free_application (struct guestfs_free_application *);\n"
30857 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
30858 "\n"
30859 msgstr ""
30860
30861 #. type: textblock
30862 #: ../src/guestfs.pod:5
30863 msgid "guestfs - Library for accessing and modifying virtual machine images"
30864 msgstr ""
30865
30866 #. type: verbatim
30867 #: ../src/guestfs.pod:11
30868 #, no-wrap
30869 msgid ""
30870 " guestfs_h *g = guestfs_create ();\n"
30871 " guestfs_add_drive (g, \"guest.img\");\n"
30872 " guestfs_launch (g);\n"
30873 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
30874 " guestfs_touch (g, \"/hello\");\n"
30875 " guestfs_umount (g, \"/\");\n"
30876 " guestfs_close (g);\n"
30877 "\n"
30878 msgstr ""
30879
30880 #. type: textblock
30881 #: ../src/guestfs.pod:25
30882 msgid ""
30883 "Libguestfs is a library for accessing and modifying guest disk images.  "
30884 "Amongst the things this is good for: making batch configuration changes to "
30885 "guests, getting disk used/free statistics (see also: virt-df), migrating "
30886 "between virtualization systems (see also: virt-p2v), performing partial "
30887 "backups, performing partial guest clones, cloning guests and changing "
30888 "registry/UUID/hostname info, and much else besides."
30889 msgstr ""
30890
30891 #. type: textblock
30892 #: ../src/guestfs.pod:33
30893 msgid ""
30894 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
30895 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
30896 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
30897 "qcow2, vmdk."
30898 msgstr ""
30899
30900 #. type: textblock
30901 #: ../src/guestfs.pod:38
30902 msgid ""
30903 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
30904 "what filesystem is in each LV, etc.).  It can also run commands in the "
30905 "context of the guest.  Also you can access filesystems over FUSE."
30906 msgstr ""
30907
30908 #. type: textblock
30909 #: ../src/guestfs.pod:43
30910 msgid ""
30911 "Libguestfs is a library that can be linked with C and C++ management "
30912 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
30913 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
30914 "line."
30915 msgstr ""
30916
30917 #. type: textblock
30918 #: ../src/guestfs.pod:48
30919 msgid ""
30920 "You don't need to be root to use libguestfs, although obviously you do need "
30921 "enough permissions to access the disk images."
30922 msgstr ""
30923
30924 #. type: textblock
30925 #: ../src/guestfs.pod:51
30926 msgid ""
30927 "Libguestfs is a large API because it can do many things.  For a gentle "
30928 "introduction, please read the L</API OVERVIEW> section next."
30929 msgstr ""
30930
30931 #. type: textblock
30932 #: ../src/guestfs.pod:54
30933 msgid ""
30934 "There are also some example programs in the L<guestfs-examples(3)> manual "
30935 "page."
30936 msgstr ""
30937
30938 #. type: =head1
30939 #: ../src/guestfs.pod:57
30940 msgid "API OVERVIEW"
30941 msgstr ""
30942
30943 #. type: textblock
30944 #: ../src/guestfs.pod:59
30945 msgid ""
30946 "This section provides a gentler overview of the libguestfs API.  We also try "
30947 "to group API calls together, where that may not be obvious from reading "
30948 "about the individual calls in the main section of this manual."
30949 msgstr ""
30950
30951 #. type: =head2
30952 #: ../src/guestfs.pod:64
30953 msgid "HANDLES"
30954 msgstr ""
30955
30956 #. type: textblock
30957 #: ../src/guestfs.pod:66
30958 msgid ""
30959 "Before you can use libguestfs calls, you have to create a handle.  Then you "
30960 "must add at least one disk image to the handle, followed by launching the "
30961 "handle, then performing whatever operations you want, and finally closing "
30962 "the handle.  By convention we use the single letter C<g> for the name of the "
30963 "handle variable, although of course you can use any name you want."
30964 msgstr ""
30965
30966 #. type: textblock
30967 #: ../src/guestfs.pod:73
30968 msgid "The general structure of all libguestfs-using programs looks like this:"
30969 msgstr ""
30970
30971 #. type: verbatim
30972 #: ../src/guestfs.pod:76
30973 #, no-wrap
30974 msgid ""
30975 " guestfs_h *g = guestfs_create ();\n"
30976 " \n"
30977 msgstr ""
30978
30979 #. type: verbatim
30980 #: ../src/guestfs.pod:78
30981 #, no-wrap
30982 msgid ""
30983 " /* Call guestfs_add_drive additional times if there are\n"
30984 "  * multiple disk images.\n"
30985 "  */\n"
30986 " guestfs_add_drive (g, \"guest.img\");\n"
30987 " \n"
30988 msgstr ""
30989
30990 #. type: verbatim
30991 #: ../src/guestfs.pod:83
30992 #, no-wrap
30993 msgid ""
30994 " /* Most manipulation calls won't work until you've launched\n"
30995 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
30996 "  * and _before_ other commands.\n"
30997 "  */\n"
30998 " guestfs_launch (g);\n"
30999 " \n"
31000 msgstr ""
31001
31002 #. type: verbatim
31003 #: ../src/guestfs.pod:89
31004 #, no-wrap
31005 msgid ""
31006 " /* Now you can examine what partitions, LVs etc are available.\n"
31007 "  */\n"
31008 " char **partitions = guestfs_list_partitions (g);\n"
31009 " char **logvols = guestfs_lvs (g);\n"
31010 " \n"
31011 msgstr ""
31012
31013 #. type: verbatim
31014 #: ../src/guestfs.pod:94
31015 #, no-wrap
31016 msgid ""
31017 " /* To access a filesystem in the image, you must mount it.\n"
31018 "  */\n"
31019 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
31020 " \n"
31021 msgstr ""
31022
31023 #. type: verbatim
31024 #: ../src/guestfs.pod:98
31025 #, no-wrap
31026 msgid ""
31027 " /* Now you can perform filesystem actions on the guest\n"
31028 "  * disk image.\n"
31029 "  */\n"
31030 " guestfs_touch (g, \"/hello\");\n"
31031 " \n"
31032 msgstr ""
31033
31034 #. type: verbatim
31035 #: ../src/guestfs.pod:103
31036 #, no-wrap
31037 msgid ""
31038 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
31039 "  * it is done automatically when you close the handle.  See\n"
31040 "  * discussion of autosync in this page.\n"
31041 "  */\n"
31042 " guestfs_sync (g);\n"
31043 " \n"
31044 msgstr ""
31045
31046 #. type: verbatim
31047 #: ../src/guestfs.pod:109
31048 #, no-wrap
31049 msgid ""
31050 " /* Close the handle 'g'. */\n"
31051 " guestfs_close (g);\n"
31052 "\n"
31053 msgstr ""
31054
31055 #. type: textblock
31056 #: ../src/guestfs.pod:112
31057 msgid ""
31058 "The code above doesn't include any error checking.  In real code you should "
31059 "check return values carefully for errors.  In general all functions that "
31060 "return integers return C<-1> on error, and all functions that return "
31061 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
31062 "how to handle errors, and consult the documentation for each function call "
31063 "below to see precisely how they return error indications.  See L<guestfs-"
31064 "examples(3)> for fully worked examples."
31065 msgstr ""
31066
31067 #. type: =head2
31068 #: ../src/guestfs.pod:121
31069 msgid "DISK IMAGES"
31070 msgstr ""
31071
31072 #. type: textblock
31073 #: ../src/guestfs.pod:123
31074 msgid ""
31075 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
31076 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
31077 "actual block device, or simply an empty file of zeroes that you have created "
31078 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
31079 "of these."
31080 msgstr ""
31081
31082 #. type: textblock
31083 #: ../src/guestfs.pod:129
31084 msgid ""
31085 "The call you should use in modern code for adding drives is L</"
31086 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
31087 "specifying that the format is raw, do:"
31088 msgstr ""
31089
31090 #. type: verbatim
31091 #: ../src/guestfs.pod:133
31092 #, no-wrap
31093 msgid ""
31094 " guestfs_add_drive_opts (g, filename,\n"
31095 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
31096 "                         -1);\n"
31097 "\n"
31098 msgstr ""
31099
31100 #. type: textblock
31101 #: ../src/guestfs.pod:137
31102 msgid "You can add a disk read-only using:"
31103 msgstr ""
31104
31105 #. type: verbatim
31106 #: ../src/guestfs.pod:139
31107 #, no-wrap
31108 msgid ""
31109 " guestfs_add_drive_opts (g, filename,\n"
31110 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
31111 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
31112 "                         -1);\n"
31113 "\n"
31114 msgstr ""
31115
31116 #. type: textblock
31117 #: ../src/guestfs.pod:144
31118 msgid ""
31119 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
31120 "libguestfs won't modify the file."
31121 msgstr ""
31122
31123 #. type: textblock
31124 #: ../src/guestfs.pod:147
31125 msgid ""
31126 "Be extremely cautious if the disk image is in use, eg. if it is being used "
31127 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
31128 "corruption, but adding it read-only is safe."
31129 msgstr ""
31130
31131 #. type: textblock
31132 #: ../src/guestfs.pod:151
31133 msgid ""
31134 "You must add at least one disk image, and you may add multiple disk images.  "
31135 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
31136 "first one you added), C</dev/sdb> (for the second one you added), etc."
31137 msgstr ""
31138
31139 #. type: textblock
31140 #: ../src/guestfs.pod:156
31141 msgid ""
31142 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
31143 "can call L</guestfs_list_devices> to get a list of the device names, in the "
31144 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
31145 msgstr ""
31146
31147 #. type: =head2
31148 #: ../src/guestfs.pod:161
31149 msgid "MOUNTING"
31150 msgstr ""
31151
31152 #. type: textblock
31153 #: ../src/guestfs.pod:163
31154 msgid ""
31155 "Before you can read or write files, create directories and so on in a disk "
31156 "image that contains filesystems, you have to mount those filesystems using "
31157 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
31158 "a disk image contains (for example) one partition with a filesystem on that "
31159 "partition, then you can mount it directly:"
31160 msgstr ""
31161
31162 #. type: verbatim
31163 #: ../src/guestfs.pod:170
31164 #, no-wrap
31165 msgid ""
31166 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
31167 "\n"
31168 msgstr ""
31169
31170 #. type: textblock
31171 #: ../src/guestfs.pod:172
31172 msgid ""
31173 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
31174 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
31175 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
31176 "that these are libguestfs virtual devices, and are nothing to do with host "
31177 "devices."
31178 msgstr ""
31179
31180 #. type: textblock
31181 #: ../src/guestfs.pod:178
31182 msgid ""
31183 "If you are given a disk image and you don't know what it contains then you "
31184 "have to find out.  Libguestfs can do that too: use L</"
31185 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
31186 "LVs, and either try mounting each to see what is mountable, or else examine "
31187 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
31188 "filesystems, use L</guestfs_list_filesystems>."
31189 msgstr ""
31190
31191 #. type: textblock
31192 #: ../src/guestfs.pod:186
31193 msgid ""
31194 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
31195 "L</INSPECTION> below).  But you might find it easier to look at higher level "
31196 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
31197 msgstr ""
31198
31199 #. type: textblock
31200 #: ../src/guestfs.pod:191
31201 msgid ""
31202 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
31203 "several other variations of the C<guestfs_mount_*> call."
31204 msgstr ""
31205
31206 #. type: =head2
31207 #: ../src/guestfs.pod:194
31208 msgid "FILESYSTEM ACCESS AND MODIFICATION"
31209 msgstr ""
31210
31211 #. type: textblock
31212 #: ../src/guestfs.pod:196
31213 msgid ""
31214 "The majority of the libguestfs API consists of fairly low-level calls for "
31215 "accessing and modifying the files, directories, symlinks etc on mounted "
31216 "filesystems.  There are over a hundred such calls which you can find listed "
31217 "in detail below in this man page, and we don't even pretend to cover them "
31218 "all in this overview."
31219 msgstr ""
31220
31221 #. type: textblock
31222 #: ../src/guestfs.pod:202
31223 msgid ""
31224 "Specify filenames as full paths, starting with C<\"/\"> and including the "
31225 "mount point."
31226 msgstr ""
31227
31228 #. type: textblock
31229 #: ../src/guestfs.pod:205
31230 msgid ""
31231 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
31232 "the file called C<\"etc/passwd\"> then you could do:"
31233 msgstr ""
31234
31235 #. type: verbatim
31236 #: ../src/guestfs.pod:208
31237 #, no-wrap
31238 msgid ""
31239 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
31240 "\n"
31241 msgstr ""
31242
31243 #. type: textblock
31244 #: ../src/guestfs.pod:210
31245 msgid ""
31246 "This would return C<data> as a newly allocated buffer containing the full "
31247 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
31248 "or C<NULL> if there was an error."
31249 msgstr ""
31250
31251 #. type: textblock
31252 #: ../src/guestfs.pod:214
31253 msgid ""
31254 "As another example, to create a top-level directory on that filesystem "
31255 "called C<\"var\"> you would do:"
31256 msgstr ""
31257
31258 #. type: verbatim
31259 #: ../src/guestfs.pod:217
31260 #, no-wrap
31261 msgid ""
31262 " guestfs_mkdir (g, \"/var\");\n"
31263 "\n"
31264 msgstr ""
31265
31266 #. type: textblock
31267 #: ../src/guestfs.pod:219
31268 msgid "To create a symlink you could do:"
31269 msgstr ""
31270
31271 #. type: verbatim
31272 #: ../src/guestfs.pod:221
31273 #, no-wrap
31274 msgid ""
31275 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
31276 "               \"/etc/rc3.d/S30portmap\");\n"
31277 "\n"
31278 msgstr ""
31279
31280 #. type: textblock
31281 #: ../src/guestfs.pod:224
31282 msgid ""
31283 "Libguestfs will reject attempts to use relative paths and there is no "
31284 "concept of a current working directory."
31285 msgstr ""
31286
31287 #. type: textblock
31288 #: ../src/guestfs.pod:227
31289 msgid ""
31290 "Libguestfs can return errors in many situations: for example if the "
31291 "filesystem isn't writable, or if a file or directory that you requested "
31292 "doesn't exist.  If you are using the C API (documented here)  you have to "
31293 "check for those error conditions after each call.  (Other language bindings "
31294 "turn these errors into exceptions)."
31295 msgstr ""
31296
31297 #. type: textblock
31298 #: ../src/guestfs.pod:233
31299 msgid ""
31300 "File writes are affected by the per-handle umask, set by calling L</"
31301 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
31302 msgstr ""
31303
31304 #. type: =head2
31305 #: ../src/guestfs.pod:236
31306 msgid "PARTITIONING"
31307 msgstr ""
31308
31309 #. type: textblock
31310 #: ../src/guestfs.pod:238
31311 msgid ""
31312 "Libguestfs contains API calls to read, create and modify partition tables on "
31313 "disk images."
31314 msgstr ""
31315
31316 #. type: textblock
31317 #: ../src/guestfs.pod:241
31318 msgid ""
31319 "In the common case where you want to create a single partition covering the "
31320 "whole disk, you should use the L</guestfs_part_disk> call:"
31321 msgstr ""
31322
31323 #. type: verbatim
31324 #: ../src/guestfs.pod:245
31325 #, no-wrap
31326 msgid ""
31327 " const char *parttype = \"mbr\";\n"
31328 " if (disk_is_larger_than_2TB)\n"
31329 "   parttype = \"gpt\";\n"
31330 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
31331 "\n"
31332 msgstr ""
31333
31334 #. type: textblock
31335 #: ../src/guestfs.pod:250
31336 msgid ""
31337 "Obviously this effectively wipes anything that was on that disk image before."
31338 msgstr ""
31339
31340 #. type: =head2
31341 #: ../src/guestfs.pod:253
31342 msgid "LVM2"
31343 msgstr ""
31344
31345 #. type: textblock
31346 #: ../src/guestfs.pod:255
31347 msgid ""
31348 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
31349 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
31350 "you familiarize yourself with the concepts of physical volumes, volume "
31351 "groups and logical volumes."
31352 msgstr ""
31353
31354 #. type: textblock
31355 #: ../src/guestfs.pod:260
31356 msgid ""
31357 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
31358 "tldp.org/HOWTO/LVM-HOWTO/>."
31359 msgstr ""
31360
31361 #. type: =head2
31362 #: ../src/guestfs.pod:263
31363 msgid "DOWNLOADING"
31364 msgstr ""
31365
31366 #. type: textblock
31367 #: ../src/guestfs.pod:265
31368 msgid ""
31369 "Use L</guestfs_cat> to download small, text only files.  This call is "
31370 "limited to files which are less than 2 MB and which cannot contain any ASCII "
31371 "NUL (C<\\0>) characters.  However the API is very simple to use."
31372 msgstr ""
31373
31374 #. type: textblock
31375 #: ../src/guestfs.pod:269
31376 msgid ""
31377 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
31378 "bit data, since it returns a (pointer, size) pair.  However it is still "
31379 "limited to \"small\" files, less than 2 MB."
31380 msgstr ""
31381
31382 #. type: textblock
31383 #: ../src/guestfs.pod:273
31384 msgid ""
31385 "L</guestfs_download> can be used to download any file, with no limits on "
31386 "content or size (even files larger than 4 GB)."
31387 msgstr ""
31388
31389 #. type: textblock
31390 #: ../src/guestfs.pod:276
31391 msgid ""
31392 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
31393 msgstr ""
31394
31395 #. type: =head2
31396 #: ../src/guestfs.pod:279
31397 msgid "UPLOADING"
31398 msgstr ""
31399
31400 #. type: textblock
31401 #: ../src/guestfs.pod:281
31402 msgid ""
31403 "It's often the case that you want to write a file or files to the disk image."
31404 msgstr ""
31405
31406 #. type: textblock
31407 #: ../src/guestfs.pod:284
31408 msgid ""
31409 "To write a small file with fixed content, use L</guestfs_write>.  To create "
31410 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
31411 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
31412 "of other functions for creating test files, for example L</guestfs_fill> and "
31413 "L</guestfs_fill_pattern>."
31414 msgstr ""
31415
31416 #. type: textblock
31417 #: ../src/guestfs.pod:290
31418 msgid ""
31419 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
31420 "file content or size (even files larger than 4 GB)."
31421 msgstr ""
31422
31423 #. type: textblock
31424 #: ../src/guestfs.pod:293
31425 msgid ""
31426 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
31427 msgstr ""
31428
31429 #. type: textblock
31430 #: ../src/guestfs.pod:295
31431 msgid ""
31432 "However the fastest way to upload I<large numbers of arbitrary files> is to "
31433 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
31434 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
31435 "in a predictable way (eg. adding it last after all other drives) then you "
31436 "can get the device name from L</guestfs_list_devices> and mount it directly "
31437 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
31438 "portable between kernel versions, and they don't support labels or UUIDs.  "
31439 "If you want to pre-build an image or you need to mount it using a label or "
31440 "UUID, use an ISO image instead."
31441 msgstr ""
31442
31443 #. type: =head2
31444 #: ../src/guestfs.pod:306
31445 msgid "COPYING"
31446 msgstr ""
31447
31448 #. type: textblock
31449 #: ../src/guestfs.pod:308
31450 msgid ""
31451 "There are various different commands for copying between files and devices "
31452 "and in and out of the guest filesystem.  These are summarised in the table "
31453 "below."
31454 msgstr ""
31455
31456 #. type: =item
31457 #: ../src/guestfs.pod:314
31458 msgid "B<file> to B<file>"
31459 msgstr ""
31460
31461 #. type: textblock
31462 #: ../src/guestfs.pod:316
31463 msgid ""
31464 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
31465 "directories recursively."
31466 msgstr ""
31467
31468 #. type: =item
31469 #: ../src/guestfs.pod:319
31470 msgid "B<file or device> to B<file or device>"
31471 msgstr ""
31472
31473 #. type: textblock
31474 #: ../src/guestfs.pod:321
31475 msgid ""
31476 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
31477 "devices in the guest."
31478 msgstr ""
31479
31480 #. type: textblock
31481 #: ../src/guestfs.pod:324
31482 msgid "Example: duplicate the contents of an LV:"
31483 msgstr ""
31484
31485 #. type: verbatim
31486 #: ../src/guestfs.pod:326
31487 #, no-wrap
31488 msgid ""
31489 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
31490 "\n"
31491 msgstr ""
31492
31493 #. type: textblock
31494 #: ../src/guestfs.pod:328
31495 msgid ""
31496 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
31497 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
31498 "guestfs_copy_size>."
31499 msgstr ""
31500
31501 #. type: =item
31502 #: ../src/guestfs.pod:332
31503 msgid "B<file on the host> to B<file or device>"
31504 msgstr ""
31505
31506 #. type: textblock
31507 #: ../src/guestfs.pod:334
31508 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
31509 msgstr ""
31510
31511 #. type: =item
31512 #: ../src/guestfs.pod:336
31513 msgid "B<file or device> to B<file on the host>"
31514 msgstr ""
31515
31516 #. type: textblock
31517 #: ../src/guestfs.pod:338
31518 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
31519 msgstr ""
31520
31521 #. type: =head2
31522 #: ../src/guestfs.pod:342
31523 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
31524 msgstr ""
31525
31526 #. type: textblock
31527 #: ../src/guestfs.pod:344
31528 msgid ""
31529 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
31530 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
31531 "appears you can only upload and download to files.  However many Un*x-like "
31532 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
31533 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
31534 "and arbitrary file descriptor N."
31535 msgstr ""
31536
31537 #. type: textblock
31538 #: ../src/guestfs.pod:352
31539 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
31540 msgstr ""
31541
31542 #. type: verbatim
31543 #: ../src/guestfs.pod:355
31544 #, no-wrap
31545 msgid ""
31546 " guestfs_download (g, filename, \"/dev/stdout\");\n"
31547 "\n"
31548 msgstr ""
31549
31550 #. type: textblock
31551 #: ../src/guestfs.pod:357
31552 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
31553 msgstr ""
31554
31555 #. type: verbatim
31556 #: ../src/guestfs.pod:359
31557 #, no-wrap
31558 msgid ""
31559 " char devfd[64];\n"
31560 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
31561 " guestfs_tar_out (g, \"/\", devfd);\n"
31562 "\n"
31563 msgstr ""
31564
31565 #. type: =head2
31566 #: ../src/guestfs.pod:363
31567 msgid "LISTING FILES"
31568 msgstr ""
31569
31570 #. type: textblock
31571 #: ../src/guestfs.pod:365
31572 msgid ""
31573 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
31574 "L<guestfish(1)>-equivalent command C<ll>)."
31575 msgstr ""
31576
31577 #. type: textblock
31578 #: ../src/guestfs.pod:368
31579 msgid ""
31580 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
31581 "programs, as a flat list of strings."
31582 msgstr ""
31583
31584 #. type: textblock
31585 #: ../src/guestfs.pod:371
31586 msgid ""
31587 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
31588 "directory, plus additional information about each one.  It is more "
31589 "equivalent to using the L<readdir(3)> call on a local filesystem."
31590 msgstr ""
31591
31592 #. type: textblock
31593 #: ../src/guestfs.pod:375
31594 msgid ""
31595 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
31596 msgstr ""
31597
31598 #. type: =head2
31599 #: ../src/guestfs.pod:378
31600 msgid "RUNNING COMMANDS"
31601 msgstr ""
31602
31603 #. type: textblock
31604 #: ../src/guestfs.pod:380
31605 msgid ""
31606 "Although libguestfs is primarily an API for manipulating files inside guest "
31607 "images, we also provide some limited facilities for running commands inside "
31608 "guests."
31609 msgstr ""
31610
31611 #. type: textblock
31612 #: ../src/guestfs.pod:384
31613 msgid "There are many limitations to this:"
31614 msgstr ""
31615
31616 #. type: textblock
31617 #: ../src/guestfs.pod:390
31618 msgid ""
31619 "The kernel version that the command runs under will be different from what "
31620 "it expects."
31621 msgstr ""
31622
31623 #. type: textblock
31624 #: ../src/guestfs.pod:395
31625 msgid ""
31626 "If the command needs to communicate with daemons, then most likely they "
31627 "won't be running."
31628 msgstr ""
31629
31630 #. type: textblock
31631 #: ../src/guestfs.pod:400
31632 msgid "The command will be running in limited memory."
31633 msgstr ""
31634
31635 #. type: textblock
31636 #: ../src/guestfs.pod:404
31637 msgid ""
31638 "The network may not be available unless you enable it (see L</"
31639 "guestfs_set_network>)."
31640 msgstr ""
31641
31642 #. type: textblock
31643 #: ../src/guestfs.pod:409
31644 msgid "Only supports Linux guests (not Windows, BSD, etc)."
31645 msgstr ""
31646
31647 #. type: textblock
31648 #: ../src/guestfs.pod:413
31649 msgid ""
31650 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
31651 msgstr ""
31652
31653 #. type: textblock
31654 #: ../src/guestfs.pod:418
31655 msgid ""
31656 "For SELinux guests, you may need to enable SELinux and load policy first.  "
31657 "See L</SELINUX> in this manpage."
31658 msgstr ""
31659
31660 #. type: textblock
31661 #: ../src/guestfs.pod:423
31662 msgid ""
31663 "I<Security:> It is not safe to run commands from untrusted, possibly "
31664 "malicious guests.  These commands may attempt to exploit your program by "
31665 "sending unexpected output.  They could also try to exploit the Linux kernel "
31666 "or qemu provided by the libguestfs appliance.  They could use the network "
31667 "provided by the libguestfs appliance to bypass ordinary network partitions "
31668 "and firewalls.  They could use the elevated privileges or different SELinux "
31669 "context of your program to their advantage."
31670 msgstr ""
31671
31672 #. type: textblock
31673 #: ../src/guestfs.pod:432
31674 msgid ""
31675 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
31676 "(a script which runs when the guest next boots normally), and to have this "
31677 "script run the commands you want in the normal context of the running guest, "
31678 "network security and so on.  For information about other security issues, "
31679 "see L</SECURITY>."
31680 msgstr ""
31681
31682 #. type: textblock
31683 #: ../src/guestfs.pod:440
31684 msgid ""
31685 "The two main API calls to run commands are L</guestfs_command> and L</"
31686 "guestfs_sh> (there are also variations)."
31687 msgstr ""
31688
31689 #. type: textblock
31690 #: ../src/guestfs.pod:443
31691 msgid ""
31692 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
31693 "shell globs, redirections, etc will work."
31694 msgstr ""
31695
31696 #. type: =head2
31697 #: ../src/guestfs.pod:446
31698 msgid "CONFIGURATION FILES"
31699 msgstr ""
31700
31701 #. type: textblock
31702 #: ../src/guestfs.pod:448
31703 msgid ""
31704 "To read and write configuration files in Linux guest filesystems, we "
31705 "strongly recommend using Augeas.  For example, Augeas understands how to "
31706 "read and write, say, a Linux shadow password file or X.org configuration "
31707 "file, and so avoids you having to write that code."
31708 msgstr ""
31709
31710 #. type: textblock
31711 #: ../src/guestfs.pod:453
31712 msgid ""
31713 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
31714 "document Augeas itself here because there is excellent documentation on the "
31715 "L<http://augeas.net/> website."
31716 msgstr ""
31717
31718 #. type: textblock
31719 #: ../src/guestfs.pod:457
31720 msgid ""
31721 "If you don't want to use Augeas (you fool!) then try calling L</"
31722 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
31723 "over."
31724 msgstr ""
31725
31726 #. type: =head2
31727 #: ../src/guestfs.pod:461
31728 msgid "SELINUX"
31729 msgstr ""
31730
31731 #. type: textblock
31732 #: ../src/guestfs.pod:463
31733 msgid ""
31734 "We support SELinux guests.  To ensure that labeling happens correctly in "
31735 "SELinux guests, you need to enable SELinux and load the guest's policy:"
31736 msgstr ""
31737
31738 #. type: textblock
31739 #: ../src/guestfs.pod:471
31740 msgid "Before launching, do:"
31741 msgstr ""
31742
31743 #. type: verbatim
31744 #: ../src/guestfs.pod:473
31745 #, no-wrap
31746 msgid ""
31747 " guestfs_set_selinux (g, 1);\n"
31748 "\n"
31749 msgstr ""
31750
31751 #. type: textblock
31752 #: ../src/guestfs.pod:477
31753 msgid ""
31754 "After mounting the guest's filesystem(s), load the policy.  This is best "
31755 "done by running the L<load_policy(8)> command in the guest itself:"
31756 msgstr ""
31757
31758 #. type: verbatim
31759 #: ../src/guestfs.pod:481
31760 #, no-wrap
31761 msgid ""
31762 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
31763 "\n"
31764 msgstr ""
31765
31766 #. type: textblock
31767 #: ../src/guestfs.pod:483
31768 msgid ""
31769 "(Older versions of C<load_policy> require you to specify the name of the "
31770 "policy file)."
31771 msgstr ""
31772
31773 #. type: textblock
31774 #: ../src/guestfs.pod:488
31775 msgid ""
31776 "Optionally, set the security context for the API.  The correct security "
31777 "context to use can only be known by inspecting the guest.  As an example:"
31778 msgstr ""
31779
31780 #. type: verbatim
31781 #: ../src/guestfs.pod:492
31782 #, no-wrap
31783 msgid ""
31784 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
31785 "\n"
31786 msgstr ""
31787
31788 #. type: textblock
31789 #: ../src/guestfs.pod:496
31790 msgid "This will work for running commands and editing existing files."
31791 msgstr ""
31792
31793 #. type: textblock
31794 #: ../src/guestfs.pod:498
31795 msgid ""
31796 "When new files are created, you may need to label them explicitly, for "
31797 "example by running the external command C<restorecon pathname>."
31798 msgstr ""
31799
31800 #. type: =head2
31801 #: ../src/guestfs.pod:502
31802 msgid "UMASK"
31803 msgstr ""
31804
31805 #. type: textblock
31806 #: ../src/guestfs.pod:504
31807 msgid ""
31808 "Certain calls are affected by the current file mode creation mask (the "
31809 "\"umask\").  In particular ones which create files or directories, such as "
31810 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
31811 "either the default mode that the file is created with or modifies the mode "
31812 "that you supply."
31813 msgstr ""
31814
31815 #. type: textblock
31816 #: ../src/guestfs.pod:510
31817 msgid ""
31818 "The default umask is C<022>, so files are created with modes such as C<0644> "
31819 "and directories with C<0755>."
31820 msgstr ""
31821
31822 #. type: textblock
31823 #: ../src/guestfs.pod:513
31824 msgid ""
31825 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
31826 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
31827 "guestfs_chmod> after creating each file or directory."
31828 msgstr ""
31829
31830 #. type: textblock
31831 #: ../src/guestfs.pod:517
31832 msgid "For more information about umask, see L<umask(2)>."
31833 msgstr ""
31834
31835 #. type: textblock
31836 #: ../src/guestfs.pod:521
31837 msgid ""
31838 "Libguestfs allows you to access Linux guests which have been encrypted using "
31839 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
31840 "standard.  This includes nearly all whole disk encryption systems used by "
31841 "modern Linux guests."
31842 msgstr ""
31843
31844 #. type: textblock
31845 #: ../src/guestfs.pod:527
31846 msgid ""
31847 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
31848 "returns the string C<crypto_LUKS>)."
31849 msgstr ""
31850
31851 #. type: textblock
31852 #: ../src/guestfs.pod:530
31853 msgid ""
31854 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
31855 "will require the passphrase!"
31856 msgstr ""
31857
31858 #. type: textblock
31859 #: ../src/guestfs.pod:533
31860 msgid ""
31861 "Opening a LUKS device creates a new device mapper device called C</dev/"
31862 "mapper/mapname> (where C<mapname> is the string you supply to L</"
31863 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
31864 "from and encrypted to the underlying block device respectively."
31865 msgstr ""
31866
31867 #. type: textblock
31868 #: ../src/guestfs.pod:539
31869 msgid ""
31870 "LVM volume groups on the device can be made visible by calling L</"
31871 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
31872 "(s) can now be mounted in the usual way."
31873 msgstr ""
31874
31875 #. type: textblock
31876 #: ../src/guestfs.pod:543
31877 msgid ""
31878 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
31879 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
31880 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
31881 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
31882 "underlying encrypted block device)."
31883 msgstr ""
31884
31885 #. type: =head2
31886 #: ../src/guestfs.pod:550
31887 msgid "INSPECTION"
31888 msgstr ""
31889
31890 #. type: textblock
31891 #: ../src/guestfs.pod:552
31892 msgid ""
31893 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
31894 "contains operating systems, an install CD or a live CD.  (These APIs used to "
31895 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
31896 "version 1.5.3 the most frequently used part of this library has been "
31897 "rewritten in C and moved into the core code)."
31898 msgstr ""
31899
31900 #. type: textblock
31901 #: ../src/guestfs.pod:559
31902 msgid ""
31903 "Add all disks belonging to the unknown virtual machine and call L</"
31904 "guestfs_launch> in the usual way."
31905 msgstr ""
31906
31907 #. type: textblock
31908 #: ../src/guestfs.pod:562
31909 msgid ""
31910 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
31911 "and certain heuristics, and returns a list of operating systems that were "
31912 "found.  An empty list means none were found.  A single element is the root "
31913 "filesystem of the operating system.  For dual- or multi-boot guests, "
31914 "multiple roots can be returned, each one corresponding to a separate "
31915 "operating system.  (Multi-boot virtual machines are extremely rare in the "
31916 "world of virtualization, but since this scenario can happen, we have built "
31917 "libguestfs to deal with it.)"
31918 msgstr ""
31919
31920 #. type: textblock
31921 #: ../src/guestfs.pod:571
31922 msgid ""
31923 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
31924 "to get additional details about that operating system.  For example, call L</"
31925 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
31926 "Windows and Linux-based operating systems respectively."
31927 msgstr ""
31928
31929 #. type: textblock
31930 #: ../src/guestfs.pod:577
31931 msgid ""
31932 "Un*x-like and Linux-based operating systems usually consist of several "
31933 "filesystems which are mounted at boot time (for example, a separate boot "
31934 "partition mounted on C</boot>).  The inspection rules are able to detect how "
31935 "filesystems correspond to mount points.  Call "
31936 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
31937 "hash table like this example:"
31938 msgstr ""
31939
31940 #. type: verbatim
31941 #: ../src/guestfs.pod:584
31942 #, no-wrap
31943 msgid ""
31944 " /boot => /dev/sda1\n"
31945 " /     => /dev/vg_guest/lv_root\n"
31946 " /usr  => /dev/vg_guest/lv_usr\n"
31947 "\n"
31948 msgstr ""
31949
31950 #. type: textblock
31951 #: ../src/guestfs.pod:588
31952 msgid ""
31953 "The caller can then make calls to L</guestfs_mount_options> to mount the "
31954 "filesystems as suggested."
31955 msgstr ""
31956
31957 #. type: textblock
31958 #: ../src/guestfs.pod:591
31959 msgid ""
31960 "Be careful to mount filesystems in the right order (eg. C</> before C</"
31961 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
31962 msgstr ""
31963
31964 #. type: textblock
31965 #: ../src/guestfs.pod:595
31966 msgid ""
31967 "Inspection currently only works for some common operating systems.  "
31968 "Contributors are welcome to send patches for other operating systems that we "
31969 "currently cannot detect."
31970 msgstr ""
31971
31972 #. type: textblock
31973 #: ../src/guestfs.pod:599
31974 msgid ""
31975 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
31976 "for more details.  The L</guestfs_inspect_os> function just ignores any "
31977 "encrypted devices."
31978 msgstr ""
31979
31980 #. type: textblock
31981 #: ../src/guestfs.pod:603
31982 msgid ""
31983 "A note on the implementation: The call L</guestfs_inspect_os> performs "
31984 "inspection and caches the results in the guest handle.  Subsequent calls to "
31985 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
31986 "read the disks.  If you change the content of the guest disks, you can redo "
31987 "inspection by calling L</guestfs_inspect_os> again.  (L</"
31988 "guestfs_inspect_list_applications> works a little differently from the other "
31989 "calls and does read the disks.  See documentation for that function for "
31990 "details)."
31991 msgstr ""
31992
31993 #. type: =head3
31994 #: ../src/guestfs.pod:612
31995 msgid "INSPECTING INSTALL DISKS"
31996 msgstr ""
31997
31998 #. type: textblock
31999 #: ../src/guestfs.pod:614
32000 msgid ""
32001 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
32002 "CDs and more."
32003 msgstr ""
32004
32005 #. type: textblock
32006 #: ../src/guestfs.pod:617
32007 msgid ""
32008 "Call L</guestfs_inspect_get_format> to return the format of the operating "
32009 "system, which currently can be C<installed> (a regular operating system) or "
32010 "C<installer> (some sort of install disk)."
32011 msgstr ""
32012
32013 #. type: textblock
32014 #: ../src/guestfs.pod:621
32015 msgid ""
32016 "Further information is available about the operating system that can be "
32017 "installed using the regular inspection APIs like L</"
32018 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
32019 msgstr ""
32020
32021 #. type: textblock
32022 #: ../src/guestfs.pod:626
32023 msgid ""
32024 "Some additional information specific to installer disks is also available "
32025 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
32026 "guestfs_inspect_is_multipart> calls."
32027 msgstr ""
32028
32029 #. type: =head2
32030 #: ../src/guestfs.pod:631
32031 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
32032 msgstr ""
32033
32034 #. type: textblock
32035 #: ../src/guestfs.pod:633
32036 msgid ""
32037 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
32038 "ntfs-3g.org/> driver."
32039 msgstr ""
32040
32041 #. type: =head3
32042 #: ../src/guestfs.pod:636
32043 msgid "DRIVE LETTERS AND PATHS"
32044 msgstr ""
32045
32046 #. type: textblock
32047 #: ../src/guestfs.pod:638
32048 msgid ""
32049 "DOS and Windows still use drive letters, and the filesystems are always "
32050 "treated as case insensitive by Windows itself, and therefore you might find "
32051 "a Windows configuration file referring to a path like C<c:\\windows"
32052 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
32053 "might be referred to as C</WINDOWS/System32>."
32054 msgstr ""
32055
32056 #. type: textblock
32057 #: ../src/guestfs.pod:644
32058 msgid ""
32059 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
32060 "L</guestfs_inspect_get_drive_mappings>)"
32061 msgstr ""
32062
32063 #. type: textblock
32064 #: ../src/guestfs.pod:647
32065 msgid ""
32066 "Dealing with separator characters (backslash vs forward slash) is outside "
32067 "the scope of libguestfs, but usually a simple character replacement will "
32068 "work."
32069 msgstr ""
32070
32071 #. type: textblock
32072 #: ../src/guestfs.pod:651
32073 msgid ""
32074 "To resolve the case insensitivity of paths, call L</"
32075 "guestfs_case_sensitive_path>."
32076 msgstr ""
32077
32078 #. type: =head3
32079 #: ../src/guestfs.pod:654
32080 msgid "ACCESSING THE WINDOWS REGISTRY"
32081 msgstr ""
32082
32083 #. type: textblock
32084 #: ../src/guestfs.pod:656
32085 msgid ""
32086 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
32087 "files, through the library C<hivex> which is part of the libguestfs project "
32088 "although ships as a separate tarball.  You have to locate and download the "
32089 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
32090 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
32091 "reg(1)> for more help on this issue."
32092 msgstr ""
32093
32094 #. type: =head3
32095 #: ../src/guestfs.pod:664
32096 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
32097 msgstr ""
32098
32099 #. type: textblock
32100 #: ../src/guestfs.pod:666
32101 msgid ""
32102 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
32103 "provide something which looks like a Linux symlink.  The way it tries to do "
32104 "the rewriting is described here:"
32105 msgstr ""
32106
32107 #. type: textblock
32108 #: ../src/guestfs.pod:670
32109 msgid ""
32110 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
32111 "symbolic-links/>"
32112 msgstr ""
32113
32114 #. type: textblock
32115 #: ../src/guestfs.pod:672
32116 msgid ""
32117 "The essential problem is that ntfs-3g simply does not have enough "
32118 "information to do a correct job.  NTFS links can contain drive letters and "
32119 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
32120 "It is almost certainly the case that libguestfs callers should ignore what "
32121 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
32122 msgstr ""
32123
32124 #. type: textblock
32125 #: ../src/guestfs.pod:679
32126 msgid ""
32127 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
32128 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
32129 "attribute, and read the raw reparse data from that (you can find the format "
32130 "documented in various places around the web)."
32131 msgstr ""
32132
32133 #. type: =head3
32134 #: ../src/guestfs.pod:684
32135 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
32136 msgstr ""
32137
32138 #. type: textblock
32139 #: ../src/guestfs.pod:686
32140 msgid ""
32141 "There are other useful extended attributes that can be read from ntfs-3g "
32142 "filesystems (using L</guestfs_getxattr>).  See:"
32143 msgstr ""
32144
32145 #. type: textblock
32146 #: ../src/guestfs.pod:689
32147 msgid ""
32148 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
32149 msgstr ""
32150
32151 #. type: =head2
32152 #: ../src/guestfs.pod:691
32153 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
32154 msgstr ""
32155
32156 #. type: textblock
32157 #: ../src/guestfs.pod:693
32158 msgid ""
32159 "Although we don't want to discourage you from using the C API, we will "
32160 "mention here that the same API is also available in other languages."
32161 msgstr ""
32162
32163 #. type: textblock
32164 #: ../src/guestfs.pod:696
32165 msgid ""
32166 "The API is broadly identical in all supported languages.  This means that "
32167 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
32168 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
32169 "OCaml.  In other words, a straightforward, predictable isomorphism between "
32170 "each language."
32171 msgstr ""
32172
32173 #. type: textblock
32174 #: ../src/guestfs.pod:702
32175 msgid ""
32176 "Error messages are automatically transformed into exceptions if the language "
32177 "supports it."
32178 msgstr ""
32179
32180 #. type: textblock
32181 #: ../src/guestfs.pod:705
32182 msgid ""
32183 "We don't try to \"object orientify\" parts of the API in OO languages, "
32184 "although contributors are welcome to write higher level APIs above what we "
32185 "provide in their favourite languages if they wish."
32186 msgstr ""
32187
32188 #. type: =item
32189 #: ../src/guestfs.pod:711
32190 msgid "B<C++>"
32191 msgstr ""
32192
32193 #. type: textblock
32194 #: ../src/guestfs.pod:713
32195 msgid ""
32196 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
32197 "identical to the C API.  C++ classes and exceptions are not used."
32198 msgstr ""
32199
32200 #. type: =item
32201 #: ../src/guestfs.pod:717
32202 msgid "B<C#>"
32203 msgstr ""
32204
32205 #. type: textblock
32206 #: ../src/guestfs.pod:719
32207 msgid ""
32208 "The C# bindings are highly experimental.  Please read the warnings at the "
32209 "top of C<csharp/Libguestfs.cs>."
32210 msgstr ""
32211
32212 #. type: =item
32213 #: ../src/guestfs.pod:722
32214 msgid "B<Haskell>"
32215 msgstr ""
32216
32217 #. type: textblock
32218 #: ../src/guestfs.pod:724
32219 msgid ""
32220 "This is the only language binding that is working but incomplete.  Only "
32221 "calls which return simple integers have been bound in Haskell, and we are "
32222 "looking for help to complete this binding."
32223 msgstr ""
32224
32225 #. type: =item
32226 #: ../src/guestfs.pod:728
32227 msgid "B<Java>"
32228 msgstr ""
32229
32230 #. type: textblock
32231 #: ../src/guestfs.pod:730
32232 msgid ""
32233 "Full documentation is contained in the Javadoc which is distributed with "
32234 "libguestfs.  For examples, see L<guestfs-java(3)>."
32235 msgstr ""
32236
32237 #. type: =item
32238 #: ../src/guestfs.pod:733
32239 msgid "B<OCaml>"
32240 msgstr ""
32241
32242 #. type: textblock
32243 #: ../src/guestfs.pod:735
32244 msgid "See L<guestfs-ocaml(3)>."
32245 msgstr ""
32246
32247 #. type: =item
32248 #: ../src/guestfs.pod:737
32249 msgid "B<Perl>"
32250 msgstr ""
32251
32252 #. type: textblock
32253 #: ../src/guestfs.pod:739
32254 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
32255 msgstr ""
32256
32257 #. type: =item
32258 #: ../src/guestfs.pod:741
32259 msgid "B<PHP>"
32260 msgstr ""
32261
32262 #. type: textblock
32263 #: ../src/guestfs.pod:743
32264 msgid ""
32265 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
32266 "the php-libguestfs package for your distribution."
32267 msgstr ""
32268
32269 #. type: textblock
32270 #: ../src/guestfs.pod:746
32271 msgid "The PHP binding only works correctly on 64 bit machines."
32272 msgstr ""
32273
32274 #. type: =item
32275 #: ../src/guestfs.pod:748
32276 msgid "B<Python>"
32277 msgstr ""
32278
32279 #. type: textblock
32280 #: ../src/guestfs.pod:750
32281 msgid "See L<guestfs-python(3)>."
32282 msgstr ""
32283
32284 #. type: =item
32285 #: ../src/guestfs.pod:752
32286 msgid "B<Ruby>"
32287 msgstr ""
32288
32289 #. type: textblock
32290 #: ../src/guestfs.pod:754
32291 msgid "See L<guestfs-ruby(3)>."
32292 msgstr ""
32293
32294 #. type: =item
32295 #: ../src/guestfs.pod:756
32296 msgid "B<shell scripts>"
32297 msgstr ""
32298
32299 #. type: textblock
32300 #: ../src/guestfs.pod:758
32301 msgid "See L<guestfish(1)>."
32302 msgstr ""
32303
32304 #. type: =head2
32305 #: ../src/guestfs.pod:762
32306 msgid "LIBGUESTFS GOTCHAS"
32307 msgstr ""
32308
32309 #. type: textblock
32310 #: ../src/guestfs.pod:764
32311 msgid ""
32312 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
32313 "system [...] that works in the way it is documented but is counterintuitive "
32314 "and almost invites mistakes.\""
32315 msgstr ""
32316
32317 #. type: textblock
32318 #: ../src/guestfs.pod:768
32319 msgid ""
32320 "Since we developed libguestfs and the associated tools, there are several "
32321 "things we would have designed differently, but are now stuck with for "
32322 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
32323 "release, you can expect these to change.  Beware of them."
32324 msgstr ""
32325
32326 #. type: =item
32327 #: ../src/guestfs.pod:776
32328 msgid "Autosync / forgetting to sync."
32329 msgstr ""
32330
32331 #. type: textblock
32332 #: ../src/guestfs.pod:778
32333 msgid ""
32334 "I<Update:> Autosync is enabled by default for all API users starting from "
32335 "libguestfs 1.5.24.  This section only applies to older versions."
32336 msgstr ""
32337
32338 #. type: textblock
32339 #: ../src/guestfs.pod:781
32340 msgid ""
32341 "When modifying a filesystem from C or another language, you B<must> unmount "
32342 "all filesystems and call L</guestfs_sync> explicitly before you close the "
32343 "libguestfs handle.  You can also call:"
32344 msgstr ""
32345
32346 #. type: verbatim
32347 #: ../src/guestfs.pod:785
32348 #, no-wrap
32349 msgid ""
32350 " guestfs_set_autosync (g, 1);\n"
32351 "\n"
32352 msgstr ""
32353
32354 #. type: textblock
32355 #: ../src/guestfs.pod:787
32356 msgid ""
32357 "to have the unmount/sync done automatically for you when the handle 'g' is "
32358 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
32359 msgstr ""
32360
32361 #. type: textblock
32362 #: ../src/guestfs.pod:791
32363 msgid ""
32364 "If you forget to do this, then it is entirely possible that your changes "
32365 "won't be written out, or will be partially written, or (very rarely) that "
32366 "you'll get disk corruption."
32367 msgstr ""
32368
32369 #. type: textblock
32370 #: ../src/guestfs.pod:795
32371 msgid ""
32372 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
32373 "guestfish scripts that forget to sync will work just fine, which can make "
32374 "this very puzzling if you are trying to debug a problem."
32375 msgstr ""
32376
32377 #. type: =item
32378 #: ../src/guestfs.pod:799
32379 msgid "Mount option C<-o sync> should not be the default."
32380 msgstr ""
32381
32382 #. type: textblock
32383 #: ../src/guestfs.pod:801
32384 msgid ""
32385 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
32386 "However C<-o sync> does not add any reliability benefit, but does have a "
32387 "very large performance impact."
32388 msgstr ""
32389
32390 #. type: textblock
32391 #: ../src/guestfs.pod:805
32392 msgid ""
32393 "The work around is to use L</guestfs_mount_options> and set the mount "
32394 "options that you actually want to use."
32395 msgstr ""
32396
32397 #. type: =item
32398 #: ../src/guestfs.pod:808
32399 msgid "Read-only should be the default."
32400 msgstr ""
32401
32402 #. type: textblock
32403 #: ../src/guestfs.pod:810
32404 msgid ""
32405 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
32406 "specify I<--rw> if you want to make changes to the image."
32407 msgstr ""
32408
32409 #. type: textblock
32410 #: ../src/guestfs.pod:813
32411 msgid "This would reduce the potential to corrupt live VM images."
32412 msgstr ""
32413
32414 #. type: textblock
32415 #: ../src/guestfs.pod:815
32416 msgid ""
32417 "Note that many filesystems change the disk when you just mount and unmount, "
32418 "even if you didn't perform any writes.  You need to use L</"
32419 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
32420 msgstr ""
32421
32422 #. type: =item
32423 #: ../src/guestfs.pod:819
32424 msgid "guestfish command line is hard to use."
32425 msgstr ""
32426
32427 #. type: textblock
32428 #: ../src/guestfs.pod:821
32429 msgid ""
32430 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
32431 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
32432 "exist, so it fails.  In earlier versions of guestfish the error message was "
32433 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
32434 "we should have used C<guestfish -c command> to run commands."
32435 msgstr ""
32436
32437 #. type: =item
32438 #: ../src/guestfs.pod:828
32439 msgid "guestfish megabyte modifiers don't work right on all commands"
32440 msgstr ""
32441
32442 #. type: textblock
32443 #: ../src/guestfs.pod:830
32444 msgid ""
32445 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
32446 "other modifiers).  What guestfish actually does is to multiply the number "
32447 "part by the modifier part and pass the result to the C API.  However this "
32448 "doesn't work for a few APIs which aren't expecting bytes, but are already "
32449 "expecting some other unit (eg. megabytes)."
32450 msgstr ""
32451
32452 #. type: textblock
32453 #: ../src/guestfs.pod:837
32454 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
32455 msgstr ""
32456
32457 #. type: verbatim
32458 #: ../src/guestfs.pod:839
32459 #, no-wrap
32460 msgid ""
32461 " lvcreate LV VG 100M\n"
32462 "\n"
32463 msgstr ""
32464
32465 #. type: textblock
32466 #: ../src/guestfs.pod:841
32467 msgid ""
32468 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
32469 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
32470 "megabytes * megabytes) logical volume.  The error message you get from this "
32471 "is also a little obscure."
32472 msgstr ""
32473
32474 #. type: textblock
32475 #: ../src/guestfs.pod:846
32476 msgid ""
32477 "This could be fixed in the generator by specially marking parameters and "
32478 "return values which take bytes or other units."
32479 msgstr ""
32480
32481 #. type: =item
32482 #: ../src/guestfs.pod:849
32483 msgid "Ambiguity between devices and paths"
32484 msgstr ""
32485
32486 #. type: textblock
32487 #: ../src/guestfs.pod:851
32488 msgid ""
32489 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
32490 "sdb2>) and a similar pathname.  A file might just happen to be called "
32491 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
32492 msgstr ""
32493
32494 #. type: textblock
32495 #: ../src/guestfs.pod:856
32496 msgid ""
32497 "In the current API we usually resolve this ambiguity by having two separate "
32498 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
32499 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
32500 "detecting if the path supplied begins with C</dev/>."
32501 msgstr ""
32502
32503 #. type: textblock
32504 #: ../src/guestfs.pod:862
32505 msgid ""
32506 "To avoid both the ambiguity and the need to duplicate some calls, we could "
32507 "make paths/devices into structured names.  One way to do this would be to "
32508 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
32509 "aspect of grub.  Another way would be to use a structured type, equivalent "
32510 "to this OCaml type:"
32511 msgstr ""
32512
32513 #. type: verbatim
32514 #: ../src/guestfs.pod:868
32515 #, no-wrap
32516 msgid ""
32517 " type path = Path of string | Device of int | Partition of int * int\n"
32518 "\n"
32519 msgstr ""
32520
32521 #. type: textblock
32522 #: ../src/guestfs.pod:870
32523 msgid "which would allow you to pass arguments like:"
32524 msgstr ""
32525
32526 #. type: verbatim
32527 #: ../src/guestfs.pod:872
32528 #, no-wrap
32529 msgid ""
32530 " Path \"/foo/bar\"\n"
32531 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
32532 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
32533 " Path \"/dev/sdb2\"    (* not a device *)\n"
32534 "\n"
32535 msgstr ""
32536
32537 #. type: textblock
32538 #: ../src/guestfs.pod:877
32539 msgid ""
32540 "As you can see there are still problems to resolve even with this "
32541 "representation.  Also consider how it might work in guestfish."
32542 msgstr ""
32543
32544 #. type: =head2
32545 #: ../src/guestfs.pod:882
32546 msgid "KEYS AND PASSPHRASES"
32547 msgstr ""
32548
32549 #. type: textblock
32550 #: ../src/guestfs.pod:884
32551 msgid ""
32552 "Certain libguestfs calls take a parameter that contains sensitive key "
32553 "material, passed in as a C string."
32554 msgstr ""
32555
32556 #. type: textblock
32557 #: ../src/guestfs.pod:887
32558 msgid ""
32559 "In the future we would hope to change the libguestfs implementation so that "
32560 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
32561 "swap.  However this is I<not> done at the moment, because of the complexity "
32562 "of such an implementation."
32563 msgstr ""
32564
32565 #. type: textblock
32566 #: ../src/guestfs.pod:892
32567 msgid ""
32568 "Therefore you should be aware that any key parameter you pass to libguestfs "
32569 "might end up being written out to the swap partition.  If this is a concern, "
32570 "scrub the swap partition or don't use libguestfs on encrypted devices."
32571 msgstr ""
32572
32573 #. type: =head2
32574 #: ../src/guestfs.pod:897
32575 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
32576 msgstr ""
32577
32578 #. type: textblock
32579 #: ../src/guestfs.pod:899
32580 msgid ""
32581 "All high-level libguestfs actions are synchronous.  If you want to use "
32582 "libguestfs asynchronously then you must create a thread."
32583 msgstr ""
32584
32585 #. type: textblock
32586 #: ../src/guestfs.pod:902
32587 msgid ""
32588 "Only use the handle from a single thread.  Either use the handle exclusively "
32589 "from one thread, or provide your own mutex so that two threads cannot issue "
32590 "calls on the same handle at the same time."
32591 msgstr ""
32592
32593 #. type: textblock
32594 #: ../src/guestfs.pod:906
32595 msgid ""
32596 "See the graphical program guestfs-browser for one possible architecture for "
32597 "multithreaded programs using libvirt and libguestfs."
32598 msgstr ""
32599
32600 #. type: =head2
32601 #: ../src/guestfs.pod:909
32602 msgid "PATH"
32603 msgstr ""
32604
32605 #. type: textblock
32606 #: ../src/guestfs.pod:911
32607 msgid ""
32608 "Libguestfs needs a supermin appliance, which it finds by looking along an "
32609 "internal path."
32610 msgstr ""
32611
32612 #. type: textblock
32613 #: ../src/guestfs.pod:914
32614 msgid ""
32615 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
32616 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
32617 msgstr ""
32618
32619 #. type: textblock
32620 #: ../src/guestfs.pod:917
32621 msgid ""
32622 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
32623 "to change the directories that libguestfs will search in.  The value is a "
32624 "colon-separated list of paths.  The current directory is I<not> searched "
32625 "unless the path contains an empty element or C<.>.  For example "
32626 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
32627 "then C</usr/lib/guestfs>."
32628 msgstr ""
32629
32630 #. type: =head2
32631 #: ../src/guestfs.pod:924
32632 msgid "QEMU WRAPPERS"
32633 msgstr ""
32634
32635 #. type: textblock
32636 #: ../src/guestfs.pod:926
32637 msgid ""
32638 "If you want to compile your own qemu, run qemu from a non-standard location, "
32639 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
32640 "around qemu."
32641 msgstr ""
32642
32643 #. type: textblock
32644 #: ../src/guestfs.pod:930
32645 msgid ""
32646 "There is one important rule to remember: you I<must C<exec qemu>> as the "
32647 "last command in the shell script (so that qemu replaces the shell and "
32648 "becomes the direct child of the libguestfs-using program).  If you don't do "
32649 "this, then the qemu process won't be cleaned up correctly."
32650 msgstr ""
32651
32652 #. type: textblock
32653 #: ../src/guestfs.pod:935
32654 msgid ""
32655 "Here is an example of a wrapper, where I have built my own copy of qemu from "
32656 "source:"
32657 msgstr ""
32658
32659 #. type: verbatim
32660 #: ../src/guestfs.pod:938
32661 #, no-wrap
32662 msgid ""
32663 " #!/bin/sh -\n"
32664 " qemudir=/home/rjones/d/qemu\n"
32665 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
32666 "\n"
32667 msgstr ""
32668
32669 #. type: textblock
32670 #: ../src/guestfs.pod:942
32671 msgid ""
32672 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
32673 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
32674 "example:"
32675 msgstr ""
32676
32677 #. type: verbatim
32678 #: ../src/guestfs.pod:946
32679 #, no-wrap
32680 msgid ""
32681 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
32682 "\n"
32683 msgstr ""
32684
32685 #. type: textblock
32686 #: ../src/guestfs.pod:948
32687 msgid ""
32688 "Note that libguestfs also calls qemu with the -help and -version options in "
32689 "order to determine features."
32690 msgstr ""
32691
32692 #. type: =head2
32693 #: ../src/guestfs.pod:951
32694 msgid "ATTACHING TO RUNNING DAEMONS"
32695 msgstr ""
32696
32697 #. type: textblock
32698 #: ../src/guestfs.pod:953
32699 msgid ""
32700 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
32701 "babies.  Use with caution."
32702 msgstr ""
32703
32704 #. type: textblock
32705 #: ../src/guestfs.pod:956
32706 msgid ""
32707 "I<Note (2):> This section explains how to attach to a running daemon from a "
32708 "low level perspective.  For most users, simply using virt tools such as "
32709 "L<guestfish(1)> with the I<--live> option will \"just work\"."
32710 msgstr ""
32711
32712 #. type: =head3
32713 #: ../src/guestfs.pod:960
32714 msgid "Using guestfs_set_attach_method"
32715 msgstr ""
32716
32717 #. type: textblock
32718 #: ../src/guestfs.pod:962
32719 msgid ""
32720 "By calling L</guestfs_set_attach_method> you can change how the library "
32721 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
32722 "ARCHITECTURE> for some background)."
32723 msgstr ""
32724
32725 #. type: textblock
32726 #: ../src/guestfs.pod:966
32727 msgid ""
32728 "The normal attach method is C<appliance>, where a small appliance is created "
32729 "containing the daemon, and then the library connects to this."
32730 msgstr ""
32731
32732 #. type: textblock
32733 #: ../src/guestfs.pod:969
32734 msgid ""
32735 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
32736 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
32737 "daemon over the Unix domain socket."
32738 msgstr ""
32739
32740 #. type: textblock
32741 #: ../src/guestfs.pod:973
32742 msgid ""
32743 "The normal use for this is to connect to a running virtual machine that "
32744 "contains a C<guestfsd> daemon, and send commands so you can read and write "
32745 "files inside the live virtual machine."
32746 msgstr ""
32747
32748 #. type: =head3
32749 #: ../src/guestfs.pod:977
32750 msgid "Using guestfs_add_domain with live flag"
32751 msgstr ""
32752
32753 #. type: textblock
32754 #: ../src/guestfs.pod:979
32755 msgid ""
32756 "L</guestfs_add_domain> provides some help for getting the correct attach "
32757 "method.  If you pass the C<live> option to this function, then (if the "
32758 "virtual machine is running) it will examine the libvirt XML looking for a "
32759 "virtio-serial channel to connect to:"
32760 msgstr ""
32761
32762 #. type: verbatim
32763 #: ../src/guestfs.pod:985
32764 #, no-wrap
32765 msgid ""
32766 " <domain>\n"
32767 "   ...\n"
32768 "   <devices>\n"
32769 "     ...\n"
32770 "     <channel type='unix'>\n"
32771 "       <source mode='bind' path='/path/to/socket'/>\n"
32772 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
32773 "     </channel>\n"
32774 "     ...\n"
32775 "   </devices>\n"
32776 " </domain>\n"
32777 "\n"
32778 msgstr ""
32779
32780 #. type: textblock
32781 #: ../src/guestfs.pod:997
32782 msgid ""
32783 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
32784 "method to C<unix:/path/to/socket>."
32785 msgstr ""
32786
32787 #. type: textblock
32788 #: ../src/guestfs.pod:1000
32789 msgid ""
32790 "Some of the libguestfs tools (including guestfish) support a I<--live> "
32791 "option which is passed through to L</guestfs_add_domain> thus allowing you "
32792 "to attach to and modify live virtual machines."
32793 msgstr ""
32794
32795 #. type: textblock
32796 #: ../src/guestfs.pod:1004
32797 msgid ""
32798 "The virtual machine needs to have been set up beforehand so that it has the "
32799 "virtio-serial channel and so that guestfsd is running inside it."
32800 msgstr ""
32801
32802 #. type: =head2
32803 #: ../src/guestfs.pod:1008
32804 msgid "ABI GUARANTEE"
32805 msgstr ""
32806
32807 #. type: textblock
32808 #: ../src/guestfs.pod:1010
32809 msgid ""
32810 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
32811 "actions as outlined in this section.  Although we will deprecate some "
32812 "actions, for example if they get replaced by newer calls, we will keep the "
32813 "old actions forever.  This allows you the developer to program in confidence "
32814 "against the libguestfs API."
32815 msgstr ""
32816
32817 #. type: =head2
32818 #: ../src/guestfs.pod:1016
32819 msgid "BLOCK DEVICE NAMING"
32820 msgstr ""
32821
32822 #. type: textblock
32823 #: ../src/guestfs.pod:1018
32824 msgid ""
32825 "In the kernel there is now quite a profusion of schemata for naming block "
32826 "devices (in this context, by I<block device> I mean a physical or virtual "
32827 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
32828 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
32829 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
32830 "for the old IDE driver (particularly for SATA devices) those devices also "
32831 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
32832 "paravirtualized drivers.  This has created several different naming systems, "
32833 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
32834 msgstr ""
32835
32836 #. type: textblock
32837 #: ../src/guestfs.pod:1030
32838 msgid ""
32839 "As discussed above, libguestfs uses a qemu appliance running an embedded "
32840 "Linux kernel to access block devices.  We can run a variety of appliances "
32841 "based on a variety of Linux kernels."
32842 msgstr ""
32843
32844 #. type: textblock
32845 #: ../src/guestfs.pod:1034
32846 msgid ""
32847 "This causes a problem for libguestfs because many API calls use device or "
32848 "partition names.  Working scripts and the recipe (example) scripts that we "
32849 "make available over the internet could fail if the naming scheme changes."
32850 msgstr ""
32851
32852 #. type: textblock
32853 #: ../src/guestfs.pod:1039
32854 msgid ""
32855 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
32856 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
32857 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
32858 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
32859 msgstr ""
32860
32861 #. type: textblock
32862 #: ../src/guestfs.pod:1045
32863 msgid ""
32864 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
32865 "L</guestfs_list_partitions> and similar calls return the true names of the "
32866 "devices and partitions as known to the appliance."
32867 msgstr ""
32868
32869 #. type: =head3
32870 #: ../src/guestfs.pod:1050
32871 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
32872 msgstr ""
32873
32874 #. type: textblock
32875 #: ../src/guestfs.pod:1052
32876 msgid ""
32877 "Usually this translation is transparent.  However in some (very rare)  cases "
32878 "you may need to know the exact algorithm.  Such cases include where you use "
32879 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
32880 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
32881 msgstr ""
32882
32883 #. type: textblock
32884 #: ../src/guestfs.pod:1058
32885 msgid ""
32886 "The algorithm is applied only to I<parameters> which are known to be either "
32887 "device or partition names.  Return values from functions such as L</"
32888 "guestfs_list_devices> are never changed."
32889 msgstr ""
32890
32891 #. type: textblock
32892 #: ../src/guestfs.pod:1066
32893 msgid "Is the string a parameter which is a device or partition name?"
32894 msgstr ""
32895
32896 #. type: textblock
32897 #: ../src/guestfs.pod:1070
32898 msgid "Does the string begin with C</dev/sd>?"
32899 msgstr ""
32900
32901 #. type: textblock
32902 #: ../src/guestfs.pod:1074
32903 msgid ""
32904 "Does the named device exist? If so, we use that device.  However if I<not> "
32905 "then we continue with this algorithm."
32906 msgstr ""
32907
32908 #. type: textblock
32909 #: ../src/guestfs.pod:1079
32910 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
32911 msgstr ""
32912
32913 #. type: textblock
32914 #: ../src/guestfs.pod:1081
32915 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
32916 msgstr ""
32917
32918 #. type: textblock
32919 #: ../src/guestfs.pod:1083
32920 msgid "If that named device exists, use it.  If not, continue."
32921 msgstr ""
32922
32923 #. type: textblock
32924 #: ../src/guestfs.pod:1087
32925 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
32926 msgstr ""
32927
32928 #. type: textblock
32929 #: ../src/guestfs.pod:1089
32930 msgid "If that named device exists, use it.  If not, return an error."
32931 msgstr ""
32932
32933 #. type: =head3
32934 #: ../src/guestfs.pod:1093
32935 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
32936 msgstr ""
32937
32938 #. type: textblock
32939 #: ../src/guestfs.pod:1095
32940 msgid ""
32941 "Although the standard naming scheme and automatic translation is useful for "
32942 "simple programs and guestfish scripts, for larger programs it is best not to "
32943 "rely on this mechanism."
32944 msgstr ""
32945
32946 #. type: textblock
32947 #: ../src/guestfs.pod:1099
32948 msgid ""
32949 "Where possible for maximum future portability programs using libguestfs "
32950 "should use these future-proof techniques:"
32951 msgstr ""
32952
32953 #. type: textblock
32954 #: ../src/guestfs.pod:1106
32955 msgid ""
32956 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
32957 "device names, and then use those names directly."
32958 msgstr ""
32959
32960 #. type: textblock
32961 #: ../src/guestfs.pod:1109
32962 msgid ""
32963 "Since those device names exist by definition, they will never be translated."
32964 msgstr ""
32965
32966 #. type: textblock
32967 #: ../src/guestfs.pod:1114
32968 msgid ""
32969 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
32970 "filesystem labels."
32971 msgstr ""
32972
32973 #. type: =head1
32974 #: ../src/guestfs.pod:1119
32975 msgid "SECURITY"
32976 msgstr ""
32977
32978 #. type: textblock
32979 #: ../src/guestfs.pod:1121
32980 msgid ""
32981 "This section discusses security implications of using libguestfs, "
32982 "particularly with untrusted or malicious guests or disk images."
32983 msgstr ""
32984
32985 #. type: =head2
32986 #: ../src/guestfs.pod:1124
32987 msgid "GENERAL SECURITY CONSIDERATIONS"
32988 msgstr ""
32989
32990 #. type: textblock
32991 #: ../src/guestfs.pod:1126
32992 msgid ""
32993 "Be careful with any files or data that you download from a guest (by "
32994 "\"download\" we mean not just the L</guestfs_download> command but any "
32995 "command that reads files, filenames, directories or anything else from a "
32996 "disk image).  An attacker could manipulate the data to fool your program "
32997 "into doing the wrong thing.  Consider cases such as:"
32998 msgstr ""
32999
33000 #. type: textblock
33001 #: ../src/guestfs.pod:1136
33002 msgid "the data (file etc) not being present"
33003 msgstr ""
33004
33005 #. type: textblock
33006 #: ../src/guestfs.pod:1140
33007 msgid "being present but empty"
33008 msgstr ""
33009
33010 #. type: textblock
33011 #: ../src/guestfs.pod:1144
33012 msgid "being much larger than normal"
33013 msgstr ""
33014
33015 #. type: textblock
33016 #: ../src/guestfs.pod:1148
33017 msgid "containing arbitrary 8 bit data"
33018 msgstr ""
33019
33020 #. type: textblock
33021 #: ../src/guestfs.pod:1152
33022 msgid "being in an unexpected character encoding"
33023 msgstr ""
33024
33025 #. type: textblock
33026 #: ../src/guestfs.pod:1156
33027 msgid "containing homoglyphs."
33028 msgstr ""
33029
33030 #. type: =head2
33031 #: ../src/guestfs.pod:1160
33032 msgid "SECURITY OF MOUNTING FILESYSTEMS"
33033 msgstr ""
33034
33035 #. type: textblock
33036 #: ../src/guestfs.pod:1162
33037 msgid ""
33038 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
33039 "(VFS) module can sometimes be escalated into exploits by deliberately "
33040 "creating a malicious, malformed filesystem.  These exploits are very severe "
33041 "for two reasons.  Firstly there are very many filesystem drivers in the "
33042 "kernel, and many of them are infrequently used and not much developer "
33043 "attention has been paid to the code.  Linux userspace helps potential "
33044 "crackers by detecting the filesystem type and automatically choosing the "
33045 "right VFS driver, even if that filesystem type is obscure or unexpected for "
33046 "the administrator.  Secondly, a kernel-level exploit is like a local root "
33047 "exploit (worse in some ways), giving immediate and total access to the "
33048 "system right down to the hardware level."
33049 msgstr ""
33050
33051 #. type: textblock
33052 #: ../src/guestfs.pod:1175
33053 msgid ""
33054 "That explains why you should never mount a filesystem from an untrusted "
33055 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
33056 "inside a qemu virtual machine, usually running as a non-root user.  The "
33057 "attacker would need to write a filesystem which first exploited the kernel, "
33058 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
33059 "the libguestfs protocol, and finally to be as serious as the host kernel "
33060 "exploit it would need to escalate its privileges to root.  This multi-step "
33061 "escalation, performed by a static piece of data, is thought to be extremely "
33062 "hard to do, although we never say 'never' about security issues."
33063 msgstr ""
33064
33065 #. type: textblock
33066 #: ../src/guestfs.pod:1186
33067 msgid ""
33068 "In any case callers can reduce the attack surface by forcing the filesystem "
33069 "type when mounting (use L</guestfs_mount_vfs>)."
33070 msgstr ""
33071
33072 #. type: =head2
33073 #: ../src/guestfs.pod:1189
33074 msgid "PROTOCOL SECURITY"
33075 msgstr ""
33076
33077 #. type: textblock
33078 #: ../src/guestfs.pod:1191
33079 msgid ""
33080 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
33081 "defined upper message size.  However a program that uses libguestfs must "
33082 "also take care - for example you can write a program that downloads a binary "
33083 "from a disk image and executes it locally, and no amount of protocol "
33084 "security will save you from the consequences."
33085 msgstr ""
33086
33087 #. type: =head2
33088 #: ../src/guestfs.pod:1197
33089 msgid "INSPECTION SECURITY"
33090 msgstr ""
33091
33092 #. type: textblock
33093 #: ../src/guestfs.pod:1199
33094 msgid ""
33095 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
33096 "directly from the guest, and these could contain any 8 bit data.  Callers "
33097 "should be careful to escape these before printing them to a structured file "
33098 "(for example, use HTML escaping if creating a web page)."
33099 msgstr ""
33100
33101 #. type: textblock
33102 #: ../src/guestfs.pod:1205
33103 msgid ""
33104 "Guest configuration may be altered in unusual ways by the administrator of "
33105 "the virtual machine, and may not reflect reality (particularly for untrusted "
33106 "or actively malicious guests).  For example we parse the hostname from "
33107 "configuration files like C</etc/sysconfig/network> that we find in the "
33108 "guest, but the guest administrator can easily manipulate these files to "
33109 "provide the wrong hostname."
33110 msgstr ""
33111
33112 #. type: textblock
33113 #: ../src/guestfs.pod:1213
33114 msgid ""
33115 "The inspection API parses guest configuration using two external libraries: "
33116 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
33117 "designed to be robust in the face of malicious data, although denial of "
33118 "service attacks are still possible, for example with oversized configuration "
33119 "files."
33120 msgstr ""
33121
33122 #. type: =head2
33123 #: ../src/guestfs.pod:1219
33124 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
33125 msgstr ""
33126
33127 #. type: textblock
33128 #: ../src/guestfs.pod:1221
33129 msgid ""
33130 "Be very cautious about running commands from the guest.  By running a "
33131 "command in the guest, you are giving CPU time to a binary that you do not "
33132 "control, under the same user account as the library, albeit wrapped in qemu "
33133 "virtualization.  More information and alternatives can be found in the "
33134 "section L</RUNNING COMMANDS>."
33135 msgstr ""
33136
33137 #. type: =head2
33138 #: ../src/guestfs.pod:1227
33139 msgid "CVE-2010-3851"
33140 msgstr ""
33141
33142 #. type: textblock
33143 #: ../src/guestfs.pod:1229
33144 msgid "https://bugzilla.redhat.com/642934"
33145 msgstr ""
33146
33147 #. type: textblock
33148 #: ../src/guestfs.pod:1231
33149 msgid ""
33150 "This security bug concerns the automatic disk format detection that qemu "
33151 "does on disk images."
33152 msgstr ""
33153
33154 #. type: textblock
33155 #: ../src/guestfs.pod:1234
33156 msgid ""
33157 "A raw disk image is just the raw bytes, there is no header.  Other disk "
33158 "images like qcow2 contain a special header.  Qemu deals with this by looking "
33159 "for one of the known headers, and if none is found then assuming the disk "
33160 "image must be raw."
33161 msgstr ""
33162
33163 #. type: textblock
33164 #: ../src/guestfs.pod:1239
33165 msgid ""
33166 "This allows a guest which has been given a raw disk image to write some "
33167 "other header.  At next boot (or when the disk image is accessed by "
33168 "libguestfs) qemu would do autodetection and think the disk image format was, "
33169 "say, qcow2 based on the header written by the guest."
33170 msgstr ""
33171
33172 #. type: textblock
33173 #: ../src/guestfs.pod:1244
33174 msgid ""
33175 "This in itself would not be a problem, but qcow2 offers many features, one "
33176 "of which is to allow a disk image to refer to another image (called the "
33177 "\"backing disk\").  It does this by placing the path to the backing disk "
33178 "into the qcow2 header.  This path is not validated and could point to any "
33179 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
33180 "\"holes\" in the qcow2 disk image, which of course is completely under the "
33181 "control of the attacker."
33182 msgstr ""
33183
33184 #. type: textblock
33185 #: ../src/guestfs.pod:1252
33186 msgid ""
33187 "In libguestfs this is rather hard to exploit except under two circumstances:"
33188 msgstr ""
33189
33190 #. type: textblock
33191 #: ../src/guestfs.pod:1259
33192 msgid "You have enabled the network or have opened the disk in write mode."
33193 msgstr ""
33194
33195 #. type: textblock
33196 #: ../src/guestfs.pod:1263
33197 msgid ""
33198 "You are also running untrusted code from the guest (see L</RUNNING "
33199 "COMMANDS>)."
33200 msgstr ""
33201
33202 #. type: textblock
33203 #: ../src/guestfs.pod:1268
33204 msgid ""
33205 "The way to avoid this is to specify the expected disk format when adding "
33206 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
33207 "should always do this if the disk is raw format, and it's a good idea for "
33208 "other cases too."
33209 msgstr ""
33210
33211 #. type: textblock
33212 #: ../src/guestfs.pod:1273
33213 msgid ""
33214 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
33215 "format is fetched from libvirt and passed through."
33216 msgstr ""
33217
33218 #. type: textblock
33219 #: ../src/guestfs.pod:1276
33220 msgid ""
33221 "For libguestfs tools, use the I<--format> command line parameter as "
33222 "appropriate."
33223 msgstr ""
33224
33225 #. type: =head1
33226 #: ../src/guestfs.pod:1279
33227 msgid "CONNECTION MANAGEMENT"
33228 msgstr ""
33229
33230 #. type: =head2
33231 #: ../src/guestfs.pod:1281
33232 msgid "guestfs_h *"
33233 msgstr ""
33234
33235 #. type: textblock
33236 #: ../src/guestfs.pod:1283
33237 msgid ""
33238 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
33239 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
33240 "handle and release all resources used."
33241 msgstr ""
33242
33243 #. type: textblock
33244 #: ../src/guestfs.pod:1287
33245 msgid ""
33246 "For information on using multiple handles and threads, see the section L</"
33247 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
33248 msgstr ""
33249
33250 #. type: =head2
33251 #: ../src/guestfs.pod:1290
33252 msgid "guestfs_create"
33253 msgstr ""
33254
33255 #. type: verbatim
33256 #: ../src/guestfs.pod:1292
33257 #, no-wrap
33258 msgid ""
33259 " guestfs_h *guestfs_create (void);\n"
33260 "\n"
33261 msgstr ""
33262
33263 #. type: textblock
33264 #: ../src/guestfs.pod:1294
33265 msgid "Create a connection handle."
33266 msgstr ""
33267
33268 #. type: textblock
33269 #: ../src/guestfs.pod:1296
33270 msgid ""
33271 "On success this returns a non-NULL pointer to a handle.  On error it returns "
33272 "NULL."
33273 msgstr ""
33274
33275 #. type: textblock
33276 #: ../src/guestfs.pod:1299
33277 msgid ""
33278 "You have to \"configure\" the handle after creating it.  This includes "
33279 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
33280 "handle at least once."
33281 msgstr ""
33282
33283 #. type: textblock
33284 #: ../src/guestfs.pod:1303
33285 msgid "After configuring the handle, you have to call L</guestfs_launch>."
33286 msgstr ""
33287
33288 #. type: textblock
33289 #: ../src/guestfs.pod:1305
33290 msgid ""
33291 "You may also want to configure error handling for the handle.  See the L</"
33292 "ERROR HANDLING> section below."
33293 msgstr ""
33294
33295 #. type: =head2
33296 #: ../src/guestfs.pod:1308
33297 msgid "guestfs_close"
33298 msgstr ""
33299
33300 #. type: verbatim
33301 #: ../src/guestfs.pod:1310
33302 #, no-wrap
33303 msgid ""
33304 " void guestfs_close (guestfs_h *g);\n"
33305 "\n"
33306 msgstr ""
33307
33308 #. type: textblock
33309 #: ../src/guestfs.pod:1312
33310 msgid "This closes the connection handle and frees up all resources used."
33311 msgstr ""
33312
33313 #. type: textblock
33314 #: ../src/guestfs.pod:1314
33315 msgid ""
33316 "If autosync was set on the handle and the handle was launched, then this "
33317 "implicitly calls various functions to unmount filesystems and sync the "
33318 "disk.  See L</guestfs_set_autosync> for more details."
33319 msgstr ""
33320
33321 #. type: textblock
33322 #: ../src/guestfs.pod:1318
33323 msgid "If a close callback was set on the handle, then it is called."
33324 msgstr ""
33325
33326 #. type: =head1
33327 #: ../src/guestfs.pod:1320
33328 msgid "ERROR HANDLING"
33329 msgstr ""
33330
33331 #. type: textblock
33332 #: ../src/guestfs.pod:1322
33333 msgid ""
33334 "API functions can return errors.  For example, almost all functions that "
33335 "return C<int> will return C<-1> to indicate an error."
33336 msgstr ""
33337
33338 #. type: textblock
33339 #: ../src/guestfs.pod:1325
33340 msgid ""
33341 "Additional information is available for errors: an error message string and "
33342 "optionally an error number (errno) if the thing that failed was a system "
33343 "call."
33344 msgstr ""
33345
33346 #. type: textblock
33347 #: ../src/guestfs.pod:1329
33348 msgid ""
33349 "You can get at the additional information about the last error on the handle "
33350 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
33351 "up an error handler with L</guestfs_set_error_handler>."
33352 msgstr ""
33353
33354 #. type: textblock
33355 #: ../src/guestfs.pod:1334
33356 msgid ""
33357 "When the handle is created, a default error handler is installed which "
33358 "prints the error message string to C<stderr>.  For small short-running "
33359 "command line programs it is sufficient to do:"
33360 msgstr ""
33361
33362 #. type: verbatim
33363 #: ../src/guestfs.pod:1338
33364 #, no-wrap
33365 msgid ""
33366 " if (guestfs_launch (g) == -1)\n"
33367 "   exit (EXIT_FAILURE);\n"
33368 "\n"
33369 msgstr ""
33370
33371 #. type: textblock
33372 #: ../src/guestfs.pod:1341
33373 msgid ""
33374 "since the default error handler will ensure that an error message has been "
33375 "printed to C<stderr> before the program exits."
33376 msgstr ""
33377
33378 #. type: textblock
33379 #: ../src/guestfs.pod:1344
33380 msgid ""
33381 "For other programs the caller will almost certainly want to install an "
33382 "alternate error handler or do error handling in-line like this:"
33383 msgstr ""
33384
33385 #. type: verbatim
33386 #: ../src/guestfs.pod:1347
33387 #, no-wrap
33388 msgid ""
33389 " g = guestfs_create ();\n"
33390 " \n"
33391 msgstr ""
33392
33393 #. type: verbatim
33394 #: ../src/guestfs.pod:1349
33395 #, no-wrap
33396 msgid ""
33397 " /* This disables the default behaviour of printing errors\n"
33398 "    on stderr. */\n"
33399 " guestfs_set_error_handler (g, NULL, NULL);\n"
33400 " \n"
33401 msgstr ""
33402
33403 #. type: verbatim
33404 #: ../src/guestfs.pod:1353
33405 #, no-wrap
33406 msgid ""
33407 " if (guestfs_launch (g) == -1) {\n"
33408 "   /* Examine the error message and print it etc. */\n"
33409 "   char *msg = guestfs_last_error (g);\n"
33410 "   int errnum = guestfs_last_errno (g);\n"
33411 "   fprintf (stderr, \"%s\\n\", msg);\n"
33412 "   /* ... */\n"
33413 "  }\n"
33414 "\n"
33415 msgstr ""
33416
33417 #. type: textblock
33418 #: ../src/guestfs.pod:1361
33419 msgid ""
33420 "Out of memory errors are handled differently.  The default action is to call "
33421 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
33422 "guestfs_set_out_of_memory_handler>."
33423 msgstr ""
33424
33425 #. type: textblock
33426 #: ../src/guestfs.pod:1365
33427 msgid ""
33428 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
33429 "because there is no handle if this happens there is no way to get additional "
33430 "error information.  However L</guestfs_create> is supposed to be a "
33431 "lightweight operation which can only fail because of insufficient memory (it "
33432 "returns NULL in this case)."
33433 msgstr ""
33434
33435 #. type: =head2
33436 #: ../src/guestfs.pod:1371
33437 msgid "guestfs_last_error"
33438 msgstr ""
33439
33440 #. type: verbatim
33441 #: ../src/guestfs.pod:1373
33442 #, no-wrap
33443 msgid ""
33444 " const char *guestfs_last_error (guestfs_h *g);\n"
33445 "\n"
33446 msgstr ""
33447
33448 #. type: textblock
33449 #: ../src/guestfs.pod:1375
33450 msgid ""
33451 "This returns the last error message that happened on C<g>.  If there has not "
33452 "been an error since the handle was created, then this returns C<NULL>."
33453 msgstr ""
33454
33455 #. type: textblock
33456 #: ../src/guestfs.pod:1379
33457 msgid ""
33458 "The lifetime of the returned string is until the next error occurs, or L</"
33459 "guestfs_close> is called."
33460 msgstr ""
33461
33462 #. type: =head2
33463 #: ../src/guestfs.pod:1382
33464 msgid "guestfs_last_errno"
33465 msgstr ""
33466
33467 #. type: verbatim
33468 #: ../src/guestfs.pod:1384
33469 #, no-wrap
33470 msgid ""
33471 " int guestfs_last_errno (guestfs_h *g);\n"
33472 "\n"
33473 msgstr ""
33474
33475 #. type: textblock
33476 #: ../src/guestfs.pod:1386
33477 msgid "This returns the last error number (errno) that happened on C<g>."
33478 msgstr ""
33479
33480 #. type: textblock
33481 #: ../src/guestfs.pod:1388
33482 msgid "If successful, an errno integer not equal to zero is returned."
33483 msgstr ""
33484
33485 #. type: textblock
33486 #: ../src/guestfs.pod:1390
33487 msgid ""
33488 "If no error, this returns 0.  This call can return 0 in three situations:"
33489 msgstr ""
33490
33491 #. type: textblock
33492 #: ../src/guestfs.pod:1397
33493 msgid "There has not been any error on the handle."
33494 msgstr ""
33495
33496 #. type: textblock
33497 #: ../src/guestfs.pod:1401
33498 msgid ""
33499 "There has been an error but the errno was meaningless.  This corresponds to "
33500 "the case where the error did not come from a failed system call, but for "
33501 "some other reason."
33502 msgstr ""
33503
33504 #. type: textblock
33505 #: ../src/guestfs.pod:1407
33506 msgid ""
33507 "There was an error from a failed system call, but for some reason the errno "
33508 "was not captured and returned.  This usually indicates a bug in libguestfs."
33509 msgstr ""
33510
33511 #. type: textblock
33512 #: ../src/guestfs.pod:1413
33513 msgid ""
33514 "Libguestfs tries to convert the errno from inside the applicance into a "
33515 "corresponding errno for the caller (not entirely trivial: the appliance "
33516 "might be running a completely different operating system from the library "
33517 "and error numbers are not standardized across Un*xen).  If this could not be "
33518 "done, then the error is translated to C<EINVAL>.  In practice this should "
33519 "only happen in very rare circumstances."
33520 msgstr ""
33521
33522 #. type: =head2
33523 #: ../src/guestfs.pod:1421
33524 msgid "guestfs_set_error_handler"
33525 msgstr ""
33526
33527 #. type: verbatim
33528 #: ../src/guestfs.pod:1423
33529 #, no-wrap
33530 msgid ""
33531 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
33532 "                                           void *opaque,\n"
33533 "                                           const char *msg);\n"
33534 " void guestfs_set_error_handler (guestfs_h *g,\n"
33535 "                                 guestfs_error_handler_cb cb,\n"
33536 "                                 void *opaque);\n"
33537 "\n"
33538 msgstr ""
33539
33540 #. type: textblock
33541 #: ../src/guestfs.pod:1430
33542 msgid ""
33543 "The callback C<cb> will be called if there is an error.  The parameters "
33544 "passed to the callback are an opaque data pointer and the error message "
33545 "string."
33546 msgstr ""
33547
33548 #. type: textblock
33549 #: ../src/guestfs.pod:1434
33550 msgid ""
33551 "C<errno> is not passed to the callback.  To get that the callback must call "
33552 "L</guestfs_last_errno>."
33553 msgstr ""
33554
33555 #. type: textblock
33556 #: ../src/guestfs.pod:1437
33557 msgid ""
33558 "Note that the message string C<msg> is freed as soon as the callback "
33559 "function returns, so if you want to stash it somewhere you must make your "
33560 "own copy."
33561 msgstr ""
33562
33563 #. type: textblock
33564 #: ../src/guestfs.pod:1441
33565 msgid "The default handler prints messages on C<stderr>."
33566 msgstr ""
33567
33568 #. type: textblock
33569 #: ../src/guestfs.pod:1443
33570 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
33571 msgstr ""
33572
33573 #. type: =head2
33574 #: ../src/guestfs.pod:1445
33575 msgid "guestfs_get_error_handler"
33576 msgstr ""
33577
33578 #. type: verbatim
33579 #: ../src/guestfs.pod:1447
33580 #, no-wrap
33581 msgid ""
33582 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
33583 "                                                     void **opaque_rtn);\n"
33584 "\n"
33585 msgstr ""
33586
33587 #. type: textblock
33588 #: ../src/guestfs.pod:1450
33589 msgid "Returns the current error handler callback."
33590 msgstr ""
33591
33592 #. type: =head2
33593 #: ../src/guestfs.pod:1452
33594 msgid "guestfs_set_out_of_memory_handler"
33595 msgstr ""
33596
33597 #. type: verbatim
33598 #: ../src/guestfs.pod:1454
33599 #, no-wrap
33600 msgid ""
33601 " typedef void (*guestfs_abort_cb) (void);\n"
33602 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
33603 "                                         guestfs_abort_cb);\n"
33604 "\n"
33605 msgstr ""
33606
33607 #. type: textblock
33608 #: ../src/guestfs.pod:1458
33609 msgid ""
33610 "The callback C<cb> will be called if there is an out of memory situation.  "
33611 "I<Note this callback must not return>."
33612 msgstr ""
33613
33614 #. type: textblock
33615 #: ../src/guestfs.pod:1461
33616 msgid "The default is to call L<abort(3)>."
33617 msgstr ""
33618
33619 #. type: textblock
33620 #: ../src/guestfs.pod:1463
33621 msgid ""
33622 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
33623 msgstr ""
33624
33625 #. type: =head2
33626 #: ../src/guestfs.pod:1466
33627 msgid "guestfs_get_out_of_memory_handler"
33628 msgstr ""
33629
33630 #. type: verbatim
33631 #: ../src/guestfs.pod:1468
33632 #, no-wrap
33633 msgid ""
33634 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
33635 "\n"
33636 msgstr ""
33637
33638 #. type: textblock
33639 #: ../src/guestfs.pod:1470
33640 msgid "This returns the current out of memory handler."
33641 msgstr ""
33642
33643 #. type: =head1
33644 #: ../src/guestfs.pod:1472
33645 msgid "API CALLS"
33646 msgstr ""
33647
33648 #. type: =head1
33649 #: ../src/guestfs.pod:1476
33650 msgid "STRUCTURES"
33651 msgstr ""
33652
33653 #. type: textblock
33654 #: ../src/guestfs.pod:1478
33655 msgid "@STRUCTS@"
33656 msgstr ""
33657
33658 #. type: =head1
33659 #: ../src/guestfs.pod:1480
33660 msgid "AVAILABILITY"
33661 msgstr ""
33662
33663 #. type: =head2
33664 #: ../src/guestfs.pod:1482
33665 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
33666 msgstr ""
33667
33668 #. type: textblock
33669 #: ../src/guestfs.pod:1484
33670 msgid ""
33671 "Using L</guestfs_available> you can test availability of the following "
33672 "groups of functions.  This test queries the appliance to see if the "
33673 "appliance you are currently using supports the functionality."
33674 msgstr ""
33675
33676 #. type: textblock
33677 #: ../src/guestfs.pod:1489
33678 msgid "@AVAILABILITY@"
33679 msgstr ""
33680
33681 #. type: =head2
33682 #: ../src/guestfs.pod:1491
33683 msgid "GUESTFISH supported COMMAND"
33684 msgstr ""
33685
33686 #. type: textblock
33687 #: ../src/guestfs.pod:1493
33688 msgid ""
33689 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
33690 "prints out the available groups and whether they are supported by this build "
33691 "of libguestfs.  Note however that you have to do C<run> first."
33692 msgstr ""
33693
33694 #. type: =head2
33695 #: ../src/guestfs.pod:1498
33696 msgid "SINGLE CALLS AT COMPILE TIME"
33697 msgstr ""
33698
33699 #. type: textblock
33700 #: ../src/guestfs.pod:1500
33701 msgid ""
33702 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
33703 "function, such as:"
33704 msgstr ""
33705
33706 #. type: verbatim
33707 #: ../src/guestfs.pod:1503
33708 #, no-wrap
33709 msgid ""
33710 " #define LIBGUESTFS_HAVE_DD 1\n"
33711 "\n"
33712 msgstr ""
33713
33714 #. type: textblock
33715 #: ../src/guestfs.pod:1505
33716 msgid "if L</guestfs_dd> is available."
33717 msgstr ""
33718
33719 #. type: textblock
33720 #: ../src/guestfs.pod:1507
33721 msgid ""
33722 "Before version 1.5.8, if you needed to test whether a single libguestfs "
33723 "function is available at compile time, we recommended using build tools such "
33724 "as autoconf or cmake.  For example in autotools you could use:"
33725 msgstr ""
33726
33727 #. type: verbatim
33728 #: ../src/guestfs.pod:1512
33729 #, no-wrap
33730 msgid ""
33731 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
33732 " AC_CHECK_FUNCS([guestfs_dd])\n"
33733 "\n"
33734 msgstr ""
33735
33736 #. type: textblock
33737 #: ../src/guestfs.pod:1515
33738 msgid ""
33739 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
33740 "in your program."
33741 msgstr ""
33742
33743 #. type: =head2
33744 #: ../src/guestfs.pod:1518
33745 msgid "SINGLE CALLS AT RUN TIME"
33746 msgstr ""
33747
33748 #. type: textblock
33749 #: ../src/guestfs.pod:1520
33750 msgid ""
33751 "Testing at compile time doesn't guarantee that a function really exists in "
33752 "the library.  The reason is that you might be dynamically linked against a "
33753 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
33754 "This situation unfortunately results in a segmentation fault, which is a "
33755 "shortcoming of the C dynamic linking system itself."
33756 msgstr ""
33757
33758 #. type: textblock
33759 #: ../src/guestfs.pod:1527
33760 msgid ""
33761 "You can use L<dlopen(3)> to test if a function is available at run time, as "
33762 "in this example program (note that you still need the compile time check as "
33763 "well):"
33764 msgstr ""
33765
33766 #. type: verbatim
33767 #: ../src/guestfs.pod:1531
33768 #, no-wrap
33769 msgid ""
33770 " #include <stdio.h>\n"
33771 " #include <stdlib.h>\n"
33772 " #include <unistd.h>\n"
33773 " #include <dlfcn.h>\n"
33774 " #include <guestfs.h>\n"
33775 " \n"
33776 msgstr ""
33777
33778 #. type: verbatim
33779 #: ../src/guestfs.pod:1537
33780 #, no-wrap
33781 msgid ""
33782 " main ()\n"
33783 " {\n"
33784 " #ifdef LIBGUESTFS_HAVE_DD\n"
33785 "   void *dl;\n"
33786 "   int has_function;\n"
33787 " \n"
33788 msgstr ""
33789
33790 #. type: verbatim
33791 #: ../src/guestfs.pod:1543
33792 #, no-wrap
33793 msgid ""
33794 "   /* Test if the function guestfs_dd is really available. */\n"
33795 "   dl = dlopen (NULL, RTLD_LAZY);\n"
33796 "   if (!dl) {\n"
33797 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
33798 "     exit (EXIT_FAILURE);\n"
33799 "   }\n"
33800 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
33801 "   dlclose (dl);\n"
33802 " \n"
33803 msgstr ""
33804
33805 #. type: verbatim
33806 #: ../src/guestfs.pod:1552
33807 #, no-wrap
33808 msgid ""
33809 "   if (!has_function)\n"
33810 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
33811 "   else {\n"
33812 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
33813 "     /* Now it's safe to call\n"
33814 "     guestfs_dd (g, \"foo\", \"bar\");\n"
33815 "     */\n"
33816 "   }\n"
33817 " #else\n"
33818 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
33819 " #endif\n"
33820 "  }\n"
33821 "\n"
33822 msgstr ""
33823
33824 #. type: textblock
33825 #: ../src/guestfs.pod:1565
33826 msgid ""
33827 "You may think the above is an awful lot of hassle, and it is.  There are "
33828 "other ways outside of the C linking system to ensure that this kind of "
33829 "incompatibility never arises, such as using package versioning:"
33830 msgstr ""
33831
33832 #. type: verbatim
33833 #: ../src/guestfs.pod:1570
33834 #, no-wrap
33835 msgid ""
33836 " Requires: libguestfs >= 1.0.80\n"
33837 "\n"
33838 msgstr ""
33839
33840 #. type: =head1
33841 #: ../src/guestfs.pod:1572
33842 msgid "CALLS WITH OPTIONAL ARGUMENTS"
33843 msgstr ""
33844
33845 #. type: textblock
33846 #: ../src/guestfs.pod:1574
33847 msgid ""
33848 "A recent feature of the API is the introduction of calls which take optional "
33849 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
33850 "takes variable arguments (ie. C<...>), as in this example:"
33851 msgstr ""
33852
33853 #. type: verbatim
33854 #: ../src/guestfs.pod:1579
33855 #, no-wrap
33856 msgid ""
33857 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
33858 "\n"
33859 msgstr ""
33860
33861 #. type: textblock
33862 #: ../src/guestfs.pod:1581
33863 msgid ""
33864 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
33865 "call with no optional arguments specified:"
33866 msgstr ""
33867
33868 #. type: verbatim
33869 #: ../src/guestfs.pod:1584
33870 #, no-wrap
33871 msgid ""
33872 " guestfs_add_drive_opts (g, filename, -1);\n"
33873 "\n"
33874 msgstr ""
33875
33876 #. type: textblock
33877 #: ../src/guestfs.pod:1586
33878 msgid "With a single optional argument:"
33879 msgstr ""
33880
33881 #. type: verbatim
33882 #: ../src/guestfs.pod:1588
33883 #, no-wrap
33884 msgid ""
33885 " guestfs_add_drive_opts (g, filename,\n"
33886 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
33887 "                         -1);\n"
33888 "\n"
33889 msgstr ""
33890
33891 #. type: textblock
33892 #: ../src/guestfs.pod:1592
33893 msgid "With two:"
33894 msgstr ""
33895
33896 #. type: verbatim
33897 #: ../src/guestfs.pod:1594
33898 #, no-wrap
33899 msgid ""
33900 " guestfs_add_drive_opts (g, filename,\n"
33901 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
33902 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
33903 "                         -1);\n"
33904 "\n"
33905 msgstr ""
33906
33907 #. type: textblock
33908 #: ../src/guestfs.pod:1599
33909 msgid ""
33910 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
33911 "happen!"
33912 msgstr ""
33913
33914 #. type: =head2
33915 #: ../src/guestfs.pod:1602
33916 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
33917 msgstr ""
33918
33919 #. type: textblock
33920 #: ../src/guestfs.pod:1604
33921 msgid ""
33922 "The second variant has the same name with the suffix C<_va>, which works the "
33923 "same way but takes a C<va_list>.  See the C manual for details.  For the "
33924 "example function, this is declared:"
33925 msgstr ""
33926
33927 #. type: verbatim
33928 #: ../src/guestfs.pod:1608
33929 #, no-wrap
33930 msgid ""
33931 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
33932 "                                va_list args);\n"
33933 "\n"
33934 msgstr ""
33935
33936 #. type: =head2
33937 #: ../src/guestfs.pod:1611
33938 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
33939 msgstr ""
33940
33941 #. type: textblock
33942 #: ../src/guestfs.pod:1613
33943 msgid ""
33944 "The third variant is useful where you need to construct these calls.  You "
33945 "pass in a structure where you fill in the optional fields.  The structure "
33946 "has a bitmask as the first element which you must set to indicate which "
33947 "fields you have filled in.  For our example function the structure and call "
33948 "are declared:"
33949 msgstr ""
33950
33951 #. type: verbatim
33952 #: ../src/guestfs.pod:1619
33953 #, no-wrap
33954 msgid ""
33955 " struct guestfs_add_drive_opts_argv {\n"
33956 "   uint64_t bitmask;\n"
33957 "   int readonly;\n"
33958 "   const char *format;\n"
33959 "   /* ... */\n"
33960 " };\n"
33961 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
33962 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
33963 "\n"
33964 msgstr ""
33965
33966 #. type: textblock
33967 #: ../src/guestfs.pod:1628
33968 msgid "You could call it like this:"
33969 msgstr ""
33970
33971 #. type: verbatim
33972 #: ../src/guestfs.pod:1630
33973 #, no-wrap
33974 msgid ""
33975 " struct guestfs_add_drive_opts_argv optargs = {\n"
33976 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
33977 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
33978 "   .readonly = 1,\n"
33979 "   .format = \"qcow2\"\n"
33980 " };\n"
33981 " \n"
33982 msgstr ""
33983
33984 #. type: verbatim
33985 #: ../src/guestfs.pod:1637
33986 #, no-wrap
33987 msgid ""
33988 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
33989 "\n"
33990 msgstr ""
33991
33992 #. type: textblock
33993 #: ../src/guestfs.pod:1645
33994 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
33995 msgstr ""
33996
33997 #. type: textblock
33998 #: ../src/guestfs.pod:1650
33999 msgid "You do not need to fill in all fields of the structure."
34000 msgstr ""
34001
34002 #. type: textblock
34003 #: ../src/guestfs.pod:1654
34004 msgid ""
34005 "There must be a one-to-one correspondence between fields of the structure "
34006 "that are filled in, and bits set in the bitmask."
34007 msgstr ""
34008
34009 #. type: =head2
34010 #: ../src/guestfs.pod:1659
34011 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
34012 msgstr ""
34013
34014 #. type: textblock
34015 #: ../src/guestfs.pod:1661
34016 msgid ""
34017 "In other languages, optional arguments are expressed in the way that is "
34018 "natural for that language.  We refer you to the language-specific "
34019 "documentation for more details on that."
34020 msgstr ""
34021
34022 #. type: textblock
34023 #: ../src/guestfs.pod:1665
34024 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
34025 msgstr ""
34026
34027 #. type: =head2
34028 #: ../src/guestfs.pod:1667
34029 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
34030 msgstr ""
34031
34032 #. type: textblock
34033 #: ../src/guestfs.pod:1669
34034 msgid ""
34035 "B<Note:> This section documents the generic event mechanism introduced in "
34036 "libguestfs 1.10, which you should use in new code if possible.  The old "
34037 "functions C<guestfs_set_log_message_callback>, "
34038 "C<guestfs_set_subprocess_quit_callback>, "
34039 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
34040 "C<guestfs_set_progress_callback> are no longer documented in this manual "
34041 "page.  Because of the ABI guarantee, the old functions continue to work."
34042 msgstr ""
34043
34044 #. type: textblock
34045 #: ../src/guestfs.pod:1678
34046 msgid ""
34047 "Handles generate events when certain things happen, such as log messages "
34048 "being generated, progress messages during long-running operations, or the "
34049 "handle being closed.  The API calls described below let you register a "
34050 "callback to be called when events happen.  You can register multiple "
34051 "callbacks (for the same, different or overlapping sets of events), and "
34052 "individually remove callbacks.  If callbacks are not removed, then they "
34053 "remain in force until the handle is closed."
34054 msgstr ""
34055
34056 #. type: textblock
34057 #: ../src/guestfs.pod:1686
34058 msgid ""
34059 "In the current implementation, events are only generated synchronously: that "
34060 "means that events (and hence callbacks) can only happen while you are in the "
34061 "middle of making another libguestfs call.  The callback is called in the "
34062 "same thread."
34063 msgstr ""
34064
34065 #. type: textblock
34066 #: ../src/guestfs.pod:1691
34067 msgid ""
34068 "Events may contain a payload, usually nothing (void), an array of 64 bit "
34069 "unsigned integers, or a message buffer.  Payloads are discussed later on."
34070 msgstr ""
34071
34072 #. type: =head3
34073 #: ../src/guestfs.pod:1695
34074 msgid "CLASSES OF EVENTS"
34075 msgstr ""
34076
34077 #. type: =item
34078 #: ../src/guestfs.pod:1699
34079 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
34080 msgstr ""
34081
34082 #. type: textblock
34083 #: ../src/guestfs.pod:1702
34084 msgid ""
34085 "The callback function will be called while the handle is being closed "
34086 "(synchronously from L</guestfs_close>)."
34087 msgstr ""
34088
34089 #. type: textblock
34090 #: ../src/guestfs.pod:1705
34091 msgid ""
34092 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
34093 "handles that are open when the program exits.  This means that this callback "
34094 "might be called indirectly from L<exit(3)>, which can cause unexpected "
34095 "problems in higher-level languages (eg. if your HLL interpreter has already "
34096 "been cleaned up by the time this is called, and if your callback then jumps "
34097 "into some HLL function)."
34098 msgstr ""
34099
34100 #. type: textblock
34101 #: ../src/guestfs.pod:1712
34102 msgid ""
34103 "If no callback is registered: the handle is closed without any callback "
34104 "being invoked."
34105 msgstr ""
34106
34107 #. type: =item
34108 #: ../src/guestfs.pod:1715
34109 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
34110 msgstr ""
34111
34112 #. type: textblock
34113 #: ../src/guestfs.pod:1718
34114 msgid ""
34115 "The callback function will be called when the child process quits, either "
34116 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
34117 "corresponds to a transition from any state to the CONFIG state)."
34118 msgstr ""
34119
34120 #. type: textblock
34121 #: ../src/guestfs.pod:1722 ../src/guestfs.pod:1731
34122 msgid "If no callback is registered: the event is ignored."
34123 msgstr ""
34124
34125 #. type: =item
34126 #: ../src/guestfs.pod:1724
34127 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
34128 msgstr ""
34129
34130 #. type: textblock
34131 #: ../src/guestfs.pod:1727
34132 msgid ""
34133 "The callback function will be called when the child process becomes ready "
34134 "first time after it has been launched.  (This corresponds to a transition "
34135 "from LAUNCHING to the READY state)."
34136 msgstr ""
34137
34138 #. type: =item
34139 #: ../src/guestfs.pod:1733
34140 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
34141 msgstr ""
34142
34143 #. type: textblock
34144 #: ../src/guestfs.pod:1736
34145 msgid ""
34146 "Some long-running operations can generate progress messages.  If this "
34147 "callback is registered, then it will be called each time a progress message "
34148 "is generated (usually two seconds after the operation started, and three "
34149 "times per second thereafter until it completes, although the frequency may "
34150 "change in future versions)."
34151 msgstr ""
34152
34153 #. type: textblock
34154 #: ../src/guestfs.pod:1742
34155 msgid ""
34156 "The callback receives in the payload four unsigned 64 bit numbers which are "
34157 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
34158 msgstr ""
34159
34160 #. type: textblock
34161 #: ../src/guestfs.pod:1745
34162 msgid ""
34163 "The units of C<total> are not defined, although for some operations C<total> "
34164 "may relate in some way to the amount of data to be transferred (eg. in bytes "
34165 "or megabytes), and C<position> may be the portion which has been transferred."
34166 msgstr ""
34167
34168 #. type: textblock
34169 #: ../src/guestfs.pod:1750
34170 msgid "The only defined and stable parts of the API are:"
34171 msgstr ""
34172
34173 #. type: textblock
34174 #: ../src/guestfs.pod:1756
34175 msgid ""
34176 "The callback can display to the user some type of progress bar or indicator "
34177 "which shows the ratio of C<position>:C<total>."
34178 msgstr ""
34179
34180 #. type: textblock
34181 #: ../src/guestfs.pod:1761
34182 msgid "0 E<lt>= C<position> E<lt>= C<total>"
34183 msgstr ""
34184
34185 #. type: textblock
34186 #: ../src/guestfs.pod:1765
34187 msgid ""
34188 "If any progress notification is sent during a call, then a final progress "
34189 "notification is always sent when C<position> = C<total> (I<unless> the call "
34190 "fails with an error)."
34191 msgstr ""
34192
34193 #. type: textblock
34194 #: ../src/guestfs.pod:1769
34195 msgid ""
34196 "This is to simplify caller code, so callers can easily set the progress "
34197 "indicator to \"100%\" at the end of the operation, without requiring special "
34198 "code to detect this case."
34199 msgstr ""
34200
34201 #. type: textblock
34202 #: ../src/guestfs.pod:1775
34203 msgid ""
34204 "For some calls we are unable to estimate the progress of the call, but we "
34205 "can still generate progress messages to indicate activity.  This is known as "
34206 "\"pulse mode\", and is directly supported by certain progress bar "
34207 "implementations (eg. GtkProgressBar)."
34208 msgstr ""
34209
34210 #. type: textblock
34211 #: ../src/guestfs.pod:1780
34212 msgid ""
34213 "For these calls, zero or more progress messages are generated with "
34214 "C<position = 0> and C<total = 1>, followed by a final message with "
34215 "C<position = total = 1>."
34216 msgstr ""
34217
34218 #. type: textblock
34219 #: ../src/guestfs.pod:1784
34220 msgid ""
34221 "As noted above, if the call fails with an error then the final message may "
34222 "not be generated."
34223 msgstr ""
34224
34225 #. type: textblock
34226 #: ../src/guestfs.pod:1789
34227 msgid ""
34228 "The callback also receives the procedure number (C<proc_nr>) and serial "
34229 "number (C<serial>) of the call.  These are only useful for debugging "
34230 "protocol issues, and the callback can normally ignore them.  The callback "
34231 "may want to print these numbers in error messages or debugging messages."
34232 msgstr ""
34233
34234 #. type: textblock
34235 #: ../src/guestfs.pod:1795
34236 msgid "If no callback is registered: progress messages are discarded."
34237 msgstr ""
34238
34239 #. type: =item
34240 #: ../src/guestfs.pod:1797
34241 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
34242 msgstr ""
34243
34244 #. type: textblock
34245 #: ../src/guestfs.pod:1800
34246 msgid ""
34247 "The callback function is called whenever a log message is generated by qemu, "
34248 "the appliance kernel, guestfsd (daemon), or utility programs."
34249 msgstr ""
34250
34251 #. type: textblock
34252 #: ../src/guestfs.pod:1803
34253 msgid ""
34254 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
34255 "guestfs_launch>) then additional debug messages are generated."
34256 msgstr ""
34257
34258 #. type: textblock
34259 #: ../src/guestfs.pod:1806 ../src/guestfs.pod:1820
34260 msgid ""
34261 "If no callback is registered: the messages are discarded unless the verbose "
34262 "flag is set in which case they are sent to stderr.  You can override the "
34263 "printing of verbose messages to stderr by setting up a callback."
34264 msgstr ""
34265
34266 #. type: =item
34267 #: ../src/guestfs.pod:1811
34268 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
34269 msgstr ""
34270
34271 #. type: textblock
34272 #: ../src/guestfs.pod:1814
34273 msgid ""
34274 "The callback function is called whenever a log message is generated by the "
34275 "library part of libguestfs."
34276 msgstr ""
34277
34278 #. type: textblock
34279 #: ../src/guestfs.pod:1817
34280 msgid ""
34281 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
34282 "messages are generated."
34283 msgstr ""
34284
34285 #. type: =item
34286 #: ../src/guestfs.pod:1825
34287 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
34288 msgstr ""
34289
34290 #. type: textblock
34291 #: ../src/guestfs.pod:1828
34292 msgid ""
34293 "The callback function is called whenever a trace message is generated.  This "
34294 "only applies if the trace flag (L</guestfs_set_trace>) is set."
34295 msgstr ""
34296
34297 #. type: textblock
34298 #: ../src/guestfs.pod:1831
34299 msgid ""
34300 "If no callback is registered: the messages are sent to stderr.  You can "
34301 "override the printing of trace messages to stderr by setting up a callback."
34302 msgstr ""
34303
34304 #. type: =head3
34305 #: ../src/guestfs.pod:1837
34306 msgid "guestfs_set_event_callback"
34307 msgstr ""
34308
34309 #. type: verbatim
34310 #: ../src/guestfs.pod:1839
34311 #, no-wrap
34312 msgid ""
34313 " int guestfs_set_event_callback (guestfs_h *g,\n"
34314 "                                 guestfs_event_callback cb,\n"
34315 "                                 uint64_t event_bitmask,\n"
34316 "                                 int flags,\n"
34317 "                                 void *opaque);\n"
34318 "\n"
34319 msgstr ""
34320
34321 #. type: textblock
34322 #: ../src/guestfs.pod:1845
34323 msgid ""
34324 "This function registers a callback (C<cb>) for all event classes in the "
34325 "C<event_bitmask>."
34326 msgstr ""
34327
34328 #. type: textblock
34329 #: ../src/guestfs.pod:1848
34330 msgid ""
34331 "For example, to register for all log message events, you could call this "
34332 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
34333 "To register a single callback for all possible classes of events, use "
34334 "C<GUESTFS_EVENT_ALL>."
34335 msgstr ""
34336
34337 #. type: textblock
34338 #: ../src/guestfs.pod:1854
34339 msgid "C<flags> should always be passed as 0."
34340 msgstr ""
34341
34342 #. type: textblock
34343 #: ../src/guestfs.pod:1856
34344 msgid ""
34345 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
34346 "it for any purpose."
34347 msgstr ""
34348
34349 #. type: textblock
34350 #: ../src/guestfs.pod:1859
34351 msgid ""
34352 "The return value is the event handle (an integer) which you can use to "
34353 "delete the callback (see below)."
34354 msgstr ""
34355
34356 #. type: textblock
34357 #: ../src/guestfs.pod:1862
34358 msgid ""
34359 "If there is an error, this function returns C<-1>, and sets the error in the "
34360 "handle in the usual way (see L</guestfs_last_error> etc.)"
34361 msgstr ""
34362
34363 #. type: textblock
34364 #: ../src/guestfs.pod:1865
34365 msgid ""
34366 "Callbacks remain in effect until they are deleted, or until the handle is "
34367 "closed."
34368 msgstr ""
34369
34370 #. type: textblock
34371 #: ../src/guestfs.pod:1868
34372 msgid ""
34373 "In the case where multiple callbacks are registered for a particular event "
34374 "class, all of the callbacks are called.  The order in which multiple "
34375 "callbacks are called is not defined."
34376 msgstr ""
34377
34378 #. type: =head3
34379 #: ../src/guestfs.pod:1872
34380 msgid "guestfs_delete_event_callback"
34381 msgstr ""
34382
34383 #. type: verbatim
34384 #: ../src/guestfs.pod:1874
34385 #, no-wrap
34386 msgid ""
34387 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
34388 "\n"
34389 msgstr ""
34390
34391 #. type: textblock
34392 #: ../src/guestfs.pod:1876
34393 msgid ""
34394 "Delete a callback that was previously registered.  C<event_handle> should be "
34395 "the integer that was returned by a previous call to "
34396 "C<guestfs_set_event_callback> on the same handle."
34397 msgstr ""
34398
34399 #. type: =head3
34400 #: ../src/guestfs.pod:1880
34401 msgid "guestfs_event_callback"
34402 msgstr ""
34403
34404 #. type: verbatim
34405 #: ../src/guestfs.pod:1882
34406 #, no-wrap
34407 msgid ""
34408 " typedef void (*guestfs_event_callback) (\n"
34409 "                  guestfs_h *g,\n"
34410 "                  void *opaque,\n"
34411 "                  uint64_t event,\n"
34412 "                  int event_handle,\n"
34413 "                  int flags,\n"
34414 "                  const char *buf, size_t buf_len,\n"
34415 "                  const uint64_t *array, size_t array_len);\n"
34416 "\n"
34417 msgstr ""
34418
34419 #. type: textblock
34420 #: ../src/guestfs.pod:1891
34421 msgid ""
34422 "This is the type of the event callback function that you have to provide."
34423 msgstr ""
34424
34425 #. type: textblock
34426 #: ../src/guestfs.pod:1894
34427 msgid ""
34428 "The basic parameters are: the handle (C<g>), the opaque user pointer "
34429 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
34430 "handle, and C<flags> which in the current API you should ignore."
34431 msgstr ""
34432
34433 #. type: textblock
34434 #: ../src/guestfs.pod:1898
34435 msgid ""
34436 "The remaining parameters contain the event payload (if any).  Each event may "
34437 "contain a payload, which usually relates to the event class, but for future "
34438 "proofing your code should be written to handle any payload for any event "
34439 "class."
34440 msgstr ""
34441
34442 #. type: textblock
34443 #: ../src/guestfs.pod:1903
34444 msgid ""
34445 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
34446 "there is no message buffer).  Note that this message buffer can contain "
34447 "arbitrary 8 bit data, including NUL bytes."
34448 msgstr ""
34449
34450 #. type: textblock
34451 #: ../src/guestfs.pod:1907
34452 msgid ""
34453 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
34454 "moment this is only used for progress messages."
34455 msgstr ""
34456
34457 #. type: =head3
34458 #: ../src/guestfs.pod:1910
34459 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
34460 msgstr ""
34461
34462 #. type: textblock
34463 #: ../src/guestfs.pod:1912
34464 msgid ""
34465 "One motivation for the generic event API was to allow GUI programs to "
34466 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
34467 "unconditionally to C<stderr>."
34468 msgstr ""
34469
34470 #. type: textblock
34471 #: ../src/guestfs.pod:1916
34472 msgid ""
34473 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
34474 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
34475 "messages are not events; you must capture error messages separately)."
34476 msgstr ""
34477
34478 #. type: textblock
34479 #: ../src/guestfs.pod:1921
34480 msgid ""
34481 "Programs have to set up a callback to capture the classes of events of "
34482 "interest:"
34483 msgstr ""
34484
34485 #. type: verbatim
34486 #: ../src/guestfs.pod:1924
34487 #, no-wrap
34488 msgid ""
34489 " int eh =\n"
34490 "   guestfs_set_event_callback\n"
34491 "     (g, message_callback,\n"
34492 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
34493 "      GUESTFS_EVENT_TRACE,\n"
34494 "      0, NULL) == -1)\n"
34495 " if (eh == -1) {\n"
34496 "   // handle error in the usual way\n"
34497 " }\n"
34498 "\n"
34499 msgstr ""
34500
34501 #. type: textblock
34502 #: ../src/guestfs.pod:1934
34503 msgid ""
34504 "The callback can then direct messages to the appropriate place.  In this "
34505 "example, messages are directed to syslog:"
34506 msgstr ""
34507
34508 #. type: verbatim
34509 #: ../src/guestfs.pod:1937
34510 #, no-wrap
34511 msgid ""
34512 " static void\n"
34513 " message_callback (\n"
34514 "         guestfs_h *g,\n"
34515 "         void *opaque,\n"
34516 "         uint64_t event,\n"
34517 "         int event_handle,\n"
34518 "         int flags,\n"
34519 "         const char *buf, size_t buf_len,\n"
34520 "         const uint64_t *array, size_t array_len)\n"
34521 " {\n"
34522 "   const int priority = LOG_USER|LOG_INFO;\n"
34523 "   if (buf_len > 0)\n"
34524 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
34525 " }\n"
34526 "\n"
34527 msgstr ""
34528
34529 #. type: =head1
34530 #: ../src/guestfs.pod:1952
34531 msgid "CANCELLING LONG TRANSFERS"
34532 msgstr ""
34533
34534 #. type: textblock
34535 #: ../src/guestfs.pod:1954
34536 msgid ""
34537 "Some operations can be cancelled by the caller while they are in progress.  "
34538 "Currently only operations that involve uploading or downloading data can be "
34539 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
34540 "parameters in the generator)."
34541 msgstr ""
34542
34543 #. type: =head2
34544 #: ../src/guestfs.pod:1959
34545 msgid "guestfs_user_cancel"
34546 msgstr ""
34547
34548 #. type: verbatim
34549 #: ../src/guestfs.pod:1961
34550 #, no-wrap
34551 msgid ""
34552 " void guestfs_user_cancel (guestfs_h *g);\n"
34553 "\n"
34554 msgstr ""
34555
34556 #. type: textblock
34557 #: ../src/guestfs.pod:1963
34558 msgid ""
34559 "C<guestfs_user_cancel> cancels the current upload or download operation."
34560 msgstr ""
34561
34562 #. type: textblock
34563 #: ../src/guestfs.pod:1966
34564 msgid ""
34565 "Unlike most other libguestfs calls, this function is signal safe and thread "
34566 "safe.  You can call it from a signal handler or from another thread, without "
34567 "needing to do any locking."
34568 msgstr ""
34569
34570 #. type: textblock
34571 #: ../src/guestfs.pod:1970
34572 msgid ""
34573 "The transfer that was in progress (if there is one) will stop shortly "
34574 "afterwards, and will return an error.  The errno (see L</"
34575 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
34576 "out if the operation was cancelled or failed because of another error."
34577 msgstr ""
34578
34579 #. type: textblock
34580 #: ../src/guestfs.pod:1976
34581 msgid ""
34582 "No cleanup is performed: for example, if a file was being uploaded then "
34583 "after cancellation there may be a partially uploaded file.  It is the "
34584 "caller's responsibility to clean up if necessary."
34585 msgstr ""
34586
34587 #. type: textblock
34588 #: ../src/guestfs.pod:1980
34589 msgid "There are two common places that you might call C<guestfs_user_cancel>."
34590 msgstr ""
34591
34592 #. type: textblock
34593 #: ../src/guestfs.pod:1982
34594 msgid ""
34595 "In an interactive text-based program, you might call it from a C<SIGINT> "
34596 "signal handler so that pressing C<^C> cancels the current operation.  (You "
34597 "also need to call L</guestfs_set_pgroup> so that child processes don't "
34598 "receive the C<^C> signal)."
34599 msgstr ""
34600
34601 #. type: textblock
34602 #: ../src/guestfs.pod:1987
34603 msgid ""
34604 "In a graphical program, when the main thread is displaying a progress bar "
34605 "with a cancel button, wire up the cancel button to call this function."
34606 msgstr ""
34607
34608 #. type: =head1
34609 #: ../src/guestfs.pod:1991
34610 msgid "PRIVATE DATA AREA"
34611 msgstr ""
34612
34613 #. type: textblock
34614 #: ../src/guestfs.pod:1993
34615 msgid ""
34616 "You can attach named pieces of private data to the libguestfs handle, fetch "
34617 "them by name, and walk over them, for the lifetime of the handle.  This is "
34618 "called the private data area and is only available from the C API."
34619 msgstr ""
34620
34621 #. type: textblock
34622 #: ../src/guestfs.pod:1998
34623 msgid "To attach a named piece of data, use the following call:"
34624 msgstr ""
34625
34626 #. type: verbatim
34627 #: ../src/guestfs.pod:2000
34628 #, no-wrap
34629 msgid ""
34630 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
34631 "\n"
34632 msgstr ""
34633
34634 #. type: textblock
34635 #: ../src/guestfs.pod:2002
34636 msgid ""
34637 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
34638 "pointer (which can be C<NULL>).  Any previous item with the same key is "
34639 "overwritten."
34640 msgstr ""
34641
34642 #. type: textblock
34643 #: ../src/guestfs.pod:2006
34644 msgid ""
34645 "You can use any C<key> you want, but your key should I<not> start with an "
34646 "underscore character.  Keys beginning with an underscore character are "
34647 "reserved for internal libguestfs purposes (eg. for implementing language "
34648 "bindings).  It is recommended that you prefix the key with some unique "
34649 "string to avoid collisions with other users."
34650 msgstr ""
34651
34652 #. type: textblock
34653 #: ../src/guestfs.pod:2012
34654 msgid "To retrieve the pointer, use:"
34655 msgstr ""
34656
34657 #. type: verbatim
34658 #: ../src/guestfs.pod:2014
34659 #, no-wrap
34660 msgid ""
34661 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
34662 "\n"
34663 msgstr ""
34664
34665 #. type: textblock
34666 #: ../src/guestfs.pod:2016
34667 msgid ""
34668 "This function returns C<NULL> if either no data is found associated with "
34669 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
34670 "C<NULL>."
34671 msgstr ""
34672
34673 #. type: textblock
34674 #: ../src/guestfs.pod:2020
34675 msgid ""
34676 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
34677 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
34678 "all.  In particular, libguestfs does I<not> try to free the data when the "
34679 "handle is closed.  If the data must be freed, then the caller must either "
34680 "free it before calling L</guestfs_close> or must set up a close callback to "
34681 "do it (see L</GUESTFS_EVENT_CLOSE>)."
34682 msgstr ""
34683
34684 #. type: textblock
34685 #: ../src/guestfs.pod:2027
34686 msgid "To walk over all entries, use these two functions:"
34687 msgstr ""
34688
34689 #. type: verbatim
34690 #: ../src/guestfs.pod:2029
34691 #, no-wrap
34692 msgid ""
34693 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
34694 "\n"
34695 msgstr ""
34696
34697 #. type: verbatim
34698 #: ../src/guestfs.pod:2031
34699 #, no-wrap
34700 msgid ""
34701 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
34702 "\n"
34703 msgstr ""
34704
34705 #. type: textblock
34706 #: ../src/guestfs.pod:2033
34707 msgid ""
34708 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
34709 "not have any particular meaning -- keys are not returned in any defined "
34710 "order).  A pointer to the key is returned in C<*key_rtn> and the "
34711 "corresponding data pointer is returned from the function.  C<NULL> is "
34712 "returned if there are no keys stored in the handle."
34713 msgstr ""
34714
34715 #. type: textblock
34716 #: ../src/guestfs.pod:2039
34717 msgid ""
34718 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
34719 "value of this function is also C<NULL> is there are no further entries to "
34720 "return."
34721 msgstr ""
34722
34723 #. type: textblock
34724 #: ../src/guestfs.pod:2043
34725 msgid "Notes about walking over entries:"
34726 msgstr ""
34727
34728 #. type: textblock
34729 #: ../src/guestfs.pod:2049
34730 msgid ""
34731 "You must not call C<guestfs_set_private> while walking over the entries."
34732 msgstr ""
34733
34734 #. type: textblock
34735 #: ../src/guestfs.pod:2054
34736 msgid ""
34737 "The handle maintains an internal iterator which is reset when you call "
34738 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
34739 "call C<guestfs_set_private>."
34740 msgstr ""
34741
34742 #. type: textblock
34743 #: ../src/guestfs.pod:2060
34744 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
34745 msgstr ""
34746
34747 #. type: verbatim
34748 #: ../src/guestfs.pod:2062
34749 #, no-wrap
34750 msgid ""
34751 " guestfs_set_private (g, key, NULL);\n"
34752 "\n"
34753 msgstr ""
34754
34755 #. type: textblock
34756 #: ../src/guestfs.pod:2064
34757 msgid "then that C<key> is not returned when walking."
34758 msgstr ""
34759
34760 #. type: textblock
34761 #: ../src/guestfs.pod:2068
34762 msgid ""
34763 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
34764 "C<guestfs_next_private> or C<guestfs_set_private>."
34765 msgstr ""
34766
34767 #. type: textblock
34768 #: ../src/guestfs.pod:2074
34769 msgid ""
34770 "The following example code shows how to print all keys and data pointers "
34771 "that are associated with the handle C<g>:"
34772 msgstr ""
34773
34774 #. type: verbatim
34775 #: ../src/guestfs.pod:2077
34776 #, no-wrap
34777 msgid ""
34778 " const char *key;\n"
34779 " void *data = guestfs_first_private (g, &key);\n"
34780 " while (data != NULL)\n"
34781 "   {\n"
34782 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
34783 "     data = guestfs_next_private (g, &key);\n"
34784 "   }\n"
34785 "\n"
34786 msgstr ""
34787
34788 #. type: textblock
34789 #: ../src/guestfs.pod:2085
34790 msgid ""
34791 "More commonly you are only interested in keys that begin with an application-"
34792 "specific prefix C<foo_>.  Modify the loop like so:"
34793 msgstr ""
34794
34795 #. type: verbatim
34796 #: ../src/guestfs.pod:2088
34797 #, no-wrap
34798 msgid ""
34799 " const char *key;\n"
34800 " void *data = guestfs_first_private (g, &key);\n"
34801 " while (data != NULL)\n"
34802 "   {\n"
34803 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
34804 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
34805 "     data = guestfs_next_private (g, &key);\n"
34806 "   }\n"
34807 "\n"
34808 msgstr ""
34809
34810 #. type: textblock
34811 #: ../src/guestfs.pod:2097
34812 msgid ""
34813 "If you need to modify keys while walking, then you have to jump back to the "
34814 "beginning of the loop.  For example, to delete all keys prefixed with "
34815 "C<foo_>:"
34816 msgstr ""
34817
34818 #. type: verbatim
34819 #: ../src/guestfs.pod:2101
34820 #, no-wrap
34821 msgid ""
34822 "  const char *key;\n"
34823 "  void *data;\n"
34824 " again:\n"
34825 "  data = guestfs_first_private (g, &key);\n"
34826 "  while (data != NULL)\n"
34827 "    {\n"
34828 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
34829 "        {\n"
34830 "          guestfs_set_private (g, key, NULL);\n"
34831 "          /* note that 'key' pointer is now invalid, and so is\n"
34832 "             the internal iterator */\n"
34833 "          goto again;\n"
34834 "        }\n"
34835 "      data = guestfs_next_private (g, &key);\n"
34836 "    }\n"
34837 "\n"
34838 msgstr ""
34839
34840 #. type: textblock
34841 #: ../src/guestfs.pod:2117
34842 msgid ""
34843 "Note that the above loop is guaranteed to terminate because the keys are "
34844 "being deleted, but other manipulations of keys within the loop might not "
34845 "terminate unless you also maintain an indication of which keys have been "
34846 "visited."
34847 msgstr ""
34848
34849 #. type: =end
34850 #: ../src/guestfs.pod:2122 ../src/guestfs.pod:2127
34851 msgid "html"
34852 msgstr ""
34853
34854 #. type: textblock
34855 #: ../src/guestfs.pod:2124
34856 msgid ""
34857 "<!-- old anchor for the next section --> <a name="
34858 "\"state_machine_and_low_level_event_api\"/>"
34859 msgstr ""
34860
34861 #. type: =head1
34862 #: ../src/guestfs.pod:2129
34863 msgid "ARCHITECTURE"
34864 msgstr ""
34865
34866 #. type: textblock
34867 #: ../src/guestfs.pod:2131
34868 msgid ""
34869 "Internally, libguestfs is implemented by running an appliance (a special "
34870 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
34871 "process of the main program."
34872 msgstr ""
34873
34874 #. type: verbatim
34875 #: ../src/guestfs.pod:2135
34876 #, no-wrap
34877 msgid ""
34878 "  ___________________\n"
34879 " /                   \\\n"
34880 " | main program      |\n"
34881 " |                   |\n"
34882 " |                   |           child process / appliance\n"
34883 " |                   |           __________________________\n"
34884 " |                   |          / qemu                     \\\n"
34885 " +-------------------+   RPC    |      +-----------------+ |\n"
34886 " | libguestfs     <--------------------> guestfsd        | |\n"
34887 " |                   |          |      +-----------------+ |\n"
34888 " \\___________________/          |      | Linux kernel    | |\n"
34889 "                                |      +--^--------------+ |\n"
34890 "                                \\_________|________________/\n"
34891 "                                          |\n"
34892 "                                   _______v______\n"
34893 "                                  /              \\\n"
34894 "                                  | Device or    |\n"
34895 "                                  | disk image   |\n"
34896 "                                  \\______________/\n"
34897 "\n"
34898 msgstr ""
34899
34900 #. type: textblock
34901 #: ../src/guestfs.pod:2155
34902 msgid ""
34903 "The library, linked to the main program, creates the child process and hence "
34904 "the appliance in the L</guestfs_launch> function."
34905 msgstr ""
34906
34907 #. type: textblock
34908 #: ../src/guestfs.pod:2158
34909 msgid ""
34910 "Inside the appliance is a Linux kernel and a complete stack of userspace "
34911 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
34912 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
34913 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
34914 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
34915 "attached to the qemu process which translates device access by the "
34916 "appliance's Linux kernel into accesses to the image."
34917 msgstr ""
34918
34919 #. type: textblock
34920 #: ../src/guestfs.pod:2167
34921 msgid ""
34922 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
34923 "Although the disk image you are attached to might also be used by some "
34924 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
34925 "care if both libguestfs's qemu process and your virtual machine are trying "
34926 "to update the disk image at the same time, since these usually results in "
34927 "massive disk corruption)."
34928 msgstr ""
34929
34930 #. type: =head1
34931 #: ../src/guestfs.pod:2174
34932 msgid "STATE MACHINE"
34933 msgstr ""
34934
34935 #. type: textblock
34936 #: ../src/guestfs.pod:2176
34937 msgid "libguestfs uses a state machine to model the child process:"
34938 msgstr ""
34939
34940 #. type: verbatim
34941 #: ../src/guestfs.pod:2178
34942 #, no-wrap
34943 msgid ""
34944 "                         |\n"
34945 "                    guestfs_create\n"
34946 "                         |\n"
34947 "                         |\n"
34948 "                     ____V_____\n"
34949 "                    /          \\\n"
34950 "                    |  CONFIG  |\n"
34951 "                    \\__________/\n"
34952 "                     ^ ^   ^  \\\n"
34953 "                    /  |    \\  \\ guestfs_launch\n"
34954 "                   /   |    _\\__V______\n"
34955 "                  /    |   /           \\\n"
34956 "                 /     |   | LAUNCHING |\n"
34957 "                /      |   \\___________/\n"
34958 "               /       |       /\n"
34959 "              /        |  guestfs_launch\n"
34960 "             /         |     /\n"
34961 "    ______  /        __|____V\n"
34962 "   /      \\ ------> /        \\\n"
34963 "   | BUSY |         | READY  |\n"
34964 "   \\______/ <------ \\________/\n"
34965 "\n"
34966 msgstr ""
34967
34968 #. type: textblock
34969 #: ../src/guestfs.pod:2200
34970 msgid ""
34971 "The normal transitions are (1) CONFIG (when the handle is created, but there "
34972 "is no child process), (2) LAUNCHING (when the child process is booting up), "
34973 "(3) alternating between READY and BUSY as commands are issued to, and "
34974 "carried out by, the child process."
34975 msgstr ""
34976
34977 #. type: textblock
34978 #: ../src/guestfs.pod:2205
34979 msgid ""
34980 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
34981 "asynchronously at any time (eg. due to some internal error), and that causes "
34982 "the state to transition back to CONFIG."
34983 msgstr ""
34984
34985 #. type: textblock
34986 #: ../src/guestfs.pod:2209
34987 msgid ""
34988 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
34989 "issued when in the CONFIG state."
34990 msgstr ""
34991
34992 #. type: textblock
34993 #: ../src/guestfs.pod:2212
34994 msgid ""
34995 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
34996 "L</guestfs_launch> blocks until the child process is READY to accept "
34997 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
34998 "moves the state from CONFIG to LAUNCHING while it is running."
34999 msgstr ""
35000
35001 #. type: textblock
35002 #: ../src/guestfs.pod:2218
35003 msgid ""
35004 "API actions such as L</guestfs_mount> can only be issued when in the READY "
35005 "state.  These API calls block waiting for the command to be carried out (ie. "
35006 "the state to transition to BUSY and then back to READY).  There are no non-"
35007 "blocking versions, and no way to issue more than one command per handle at "
35008 "the same time."
35009 msgstr ""
35010
35011 #. type: textblock
35012 #: ../src/guestfs.pod:2224
35013 msgid ""
35014 "Finally, the child process sends asynchronous messages back to the main "
35015 "program, such as kernel log messages.  You can register a callback to "
35016 "receive these messages."
35017 msgstr ""
35018
35019 #. type: =head1
35020 #: ../src/guestfs.pod:2228
35021 msgid "INTERNALS"
35022 msgstr ""
35023
35024 #. type: =head2
35025 #: ../src/guestfs.pod:2230
35026 msgid "COMMUNICATION PROTOCOL"
35027 msgstr ""
35028
35029 #. type: textblock
35030 #: ../src/guestfs.pod:2232
35031 msgid ""
35032 "Don't rely on using this protocol directly.  This section documents how it "
35033 "currently works, but it may change at any time."
35034 msgstr ""
35035
35036 #. type: textblock
35037 #: ../src/guestfs.pod:2235
35038 msgid ""
35039 "The protocol used to talk between the library and the daemon running inside "
35040 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
35041 "1014, RFC 1832, RFC 4506)."
35042 msgstr ""
35043
35044 #. type: textblock
35045 #: ../src/guestfs.pod:2239
35046 msgid ""
35047 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
35048 "this file is automatically generated)."
35049 msgstr ""
35050
35051 #. type: textblock
35052 #: ../src/guestfs.pod:2242
35053 msgid ""
35054 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
35055 "and C<FileOut> parameters, which are handled with very simple request/reply "
35056 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
35057 "parameters, which use the same request and reply messages, but they may also "
35058 "be followed by files sent using a chunked encoding."
35059 msgstr ""
35060
35061 #. type: =head3
35062 #: ../src/guestfs.pod:2249
35063 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
35064 msgstr ""
35065
35066 #. type: textblock
35067 #: ../src/guestfs.pod:2251
35068 msgid "For ordinary functions, the request message is:"
35069 msgstr ""
35070
35071 #. type: verbatim
35072 #: ../src/guestfs.pod:2253
35073 #, no-wrap
35074 msgid ""
35075 " total length (header + arguments,\n"
35076 "      but not including the length word itself)\n"
35077 " struct guestfs_message_header (encoded as XDR)\n"
35078 " struct guestfs_<foo>_args (encoded as XDR)\n"
35079 "\n"
35080 msgstr ""
35081
35082 #. type: textblock
35083 #: ../src/guestfs.pod:2258
35084 msgid ""
35085 "The total length field allows the daemon to allocate a fixed size buffer "
35086 "into which it slurps the rest of the message.  As a result, the total length "
35087 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
35088 "effective size of any request is limited to somewhere under this size."
35089 msgstr ""
35090
35091 #. type: textblock
35092 #: ../src/guestfs.pod:2264
35093 msgid ""
35094 "Note also that many functions don't take any arguments, in which case the "
35095 "C<guestfs_I<foo>_args> is completely omitted."
35096 msgstr ""
35097
35098 #. type: textblock
35099 #: ../src/guestfs.pod:2267
35100 msgid ""
35101 "The header contains the procedure number (C<guestfs_proc>) which is how the "
35102 "receiver knows what type of args structure to expect, or none at all."
35103 msgstr ""
35104
35105 #. type: textblock
35106 #: ../src/guestfs.pod:2271
35107 msgid ""
35108 "For functions that take optional arguments, the optional arguments are "
35109 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
35110 "arguments.  A bitmask in the header indicates which optional arguments are "
35111 "meaningful.  The bitmask is also checked to see if it contains bits set "
35112 "which the daemon does not know about (eg. if more optional arguments were "
35113 "added in a later version of the library), and this causes the call to be "
35114 "rejected."
35115 msgstr ""
35116
35117 #. type: textblock
35118 #: ../src/guestfs.pod:2279
35119 msgid "The reply message for ordinary functions is:"
35120 msgstr ""
35121
35122 #. type: verbatim
35123 #: ../src/guestfs.pod:2281
35124 #, no-wrap
35125 msgid ""
35126 " total length (header + ret,\n"
35127 "      but not including the length word itself)\n"
35128 " struct guestfs_message_header (encoded as XDR)\n"
35129 " struct guestfs_<foo>_ret (encoded as XDR)\n"
35130 "\n"
35131 msgstr ""
35132
35133 #. type: textblock
35134 #: ../src/guestfs.pod:2286
35135 msgid ""
35136 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
35137 "functions that return no formal return values."
35138 msgstr ""
35139
35140 #. type: textblock
35141 #: ../src/guestfs.pod:2289
35142 msgid ""
35143 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
35144 msgstr ""
35145
35146 #. type: textblock
35147 #: ../src/guestfs.pod:2292
35148 msgid ""
35149 "In the case of an error, a flag is set in the header, and the reply message "
35150 "is slightly changed:"
35151 msgstr ""
35152
35153 #. type: verbatim
35154 #: ../src/guestfs.pod:2295
35155 #, no-wrap
35156 msgid ""
35157 " total length (header + error,\n"
35158 "      but not including the length word itself)\n"
35159 " struct guestfs_message_header (encoded as XDR)\n"
35160 " struct guestfs_message_error (encoded as XDR)\n"
35161 "\n"
35162 msgstr ""
35163
35164 #. type: textblock
35165 #: ../src/guestfs.pod:2300
35166 msgid ""
35167 "The C<guestfs_message_error> structure contains the error message as a "
35168 "string."
35169 msgstr ""
35170
35171 #. type: =head3
35172 #: ../src/guestfs.pod:2303
35173 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
35174 msgstr ""
35175
35176 #. type: textblock
35177 #: ../src/guestfs.pod:2305
35178 msgid ""
35179 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
35180 "The normal request message is sent (see above).  However this is followed by "
35181 "a sequence of file chunks."
35182 msgstr ""
35183
35184 #. type: verbatim
35185 #: ../src/guestfs.pod:2309
35186 #, no-wrap
35187 msgid ""
35188 " total length (header + arguments,\n"
35189 "      but not including the length word itself,\n"
35190 "      and not including the chunks)\n"
35191 " struct guestfs_message_header (encoded as XDR)\n"
35192 " struct guestfs_<foo>_args (encoded as XDR)\n"
35193 " sequence of chunks for FileIn param #0\n"
35194 " sequence of chunks for FileIn param #1 etc.\n"
35195 "\n"
35196 msgstr ""
35197
35198 #. type: textblock
35199 #: ../src/guestfs.pod:2317
35200 msgid "The \"sequence of chunks\" is:"
35201 msgstr ""
35202
35203 #. type: verbatim
35204 #: ../src/guestfs.pod:2319
35205 #, no-wrap
35206 msgid ""
35207 " length of chunk (not including length word itself)\n"
35208 " struct guestfs_chunk (encoded as XDR)\n"
35209 " length of chunk\n"
35210 " struct guestfs_chunk (encoded as XDR)\n"
35211 "   ...\n"
35212 " length of chunk\n"
35213 " struct guestfs_chunk (with data.data_len == 0)\n"
35214 "\n"
35215 msgstr ""
35216
35217 #. type: textblock
35218 #: ../src/guestfs.pod:2327
35219 msgid ""
35220 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
35221 "is set in the final chunk to indicate either successful completion or early "
35222 "cancellation."
35223 msgstr ""
35224
35225 #. type: textblock
35226 #: ../src/guestfs.pod:2331
35227 msgid ""
35228 "At time of writing there are no functions that have more than one FileIn "
35229 "parameter.  However this is (theoretically) supported, by sending the "
35230 "sequence of chunks for each FileIn parameter one after another (from left to "
35231 "right)."
35232 msgstr ""
35233
35234 #. type: textblock
35235 #: ../src/guestfs.pod:2336
35236 msgid ""
35237 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
35238 "transfer.  The library does this by sending a chunk with a special flag set "
35239 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
35240 "RPC, does I<not> send any reply, and goes back to reading the next request."
35241 msgstr ""
35242
35243 #. type: textblock
35244 #: ../src/guestfs.pod:2342
35245 msgid ""
35246 "The daemon may also cancel.  It does this by writing a special word "
35247 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
35248 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
35249 "cancel chunk).  The special word is chosen so that even if cancellation "
35250 "happens right at the end of the transfer (after the library has finished "
35251 "writing and has started listening for the reply), the \"spurious\" cancel "
35252 "flag will not be confused with the reply message."
35253 msgstr ""
35254
35255 #. type: textblock
35256 #: ../src/guestfs.pod:2351
35257 msgid ""
35258 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
35259 "limit), and also files where the size is not known in advance (eg. from "
35260 "pipes or sockets).  However the chunks are rather small "
35261 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
35262 "to keep much in memory."
35263 msgstr ""
35264
35265 #. type: =head3
35266 #: ../src/guestfs.pod:2357
35267 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
35268 msgstr ""
35269
35270 #. type: textblock
35271 #: ../src/guestfs.pod:2359
35272 msgid ""
35273 "The protocol for FileOut parameters is exactly the same as for FileIn "
35274 "parameters, but with the roles of daemon and library reversed."
35275 msgstr ""
35276
35277 #. type: verbatim
35278 #: ../src/guestfs.pod:2362
35279 #, no-wrap
35280 msgid ""
35281 " total length (header + ret,\n"
35282 "      but not including the length word itself,\n"
35283 "      and not including the chunks)\n"
35284 " struct guestfs_message_header (encoded as XDR)\n"
35285 " struct guestfs_<foo>_ret (encoded as XDR)\n"
35286 " sequence of chunks for FileOut param #0\n"
35287 " sequence of chunks for FileOut param #1 etc.\n"
35288 "\n"
35289 msgstr ""
35290
35291 #. type: =head3
35292 #: ../src/guestfs.pod:2370
35293 msgid "INITIAL MESSAGE"
35294 msgstr ""
35295
35296 #. type: textblock
35297 #: ../src/guestfs.pod:2372
35298 msgid ""
35299 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
35300 "which indicates that the guest and daemon is alive.  This is what L</"
35301 "guestfs_launch> waits for."
35302 msgstr ""
35303
35304 #. type: =head3
35305 #: ../src/guestfs.pod:2376
35306 msgid "PROGRESS NOTIFICATION MESSAGES"
35307 msgstr ""
35308
35309 #. type: textblock
35310 #: ../src/guestfs.pod:2378
35311 msgid ""
35312 "The daemon may send progress notification messages at any time.  These are "
35313 "distinguished by the normal length word being replaced by "
35314 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
35315 msgstr ""
35316
35317 #. type: textblock
35318 #: ../src/guestfs.pod:2382
35319 msgid ""
35320 "The library turns them into progress callbacks (see L</"
35321 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
35322 "if not."
35323 msgstr ""
35324
35325 #. type: textblock
35326 #: ../src/guestfs.pod:2386
35327 msgid ""
35328 "The daemon self-limits the frequency of progress messages it sends (see "
35329 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
35330 "messages."
35331 msgstr ""
35332
35333 #. type: =head1
35334 #: ../src/guestfs.pod:2390
35335 msgid "LIBGUESTFS VERSION NUMBERS"
35336 msgstr ""
35337
35338 #. type: textblock
35339 #: ../src/guestfs.pod:2392
35340 msgid ""
35341 "Since April 2010, libguestfs has started to make separate development and "
35342 "stable releases, along with corresponding branches in our git repository.  "
35343 "These separate releases can be identified by version number:"
35344 msgstr ""
35345
35346 #. type: verbatim
35347 #: ../src/guestfs.pod:2397
35348 #, no-wrap
35349 msgid ""
35350 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
35351 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
35352 "       |\n"
35353 "       v\n"
35354 " 1  .  3  .  5\n"
35355 " ^           ^\n"
35356 " |           |\n"
35357 " |           `-------- sub-version\n"
35358 " |\n"
35359 " `------ always '1' because we don't change the ABI\n"
35360 "\n"
35361 msgstr ""
35362
35363 #. type: textblock
35364 #: ../src/guestfs.pod:2408
35365 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
35366 msgstr ""
35367
35368 #. type: textblock
35369 #: ../src/guestfs.pod:2410
35370 msgid ""
35371 "As time passes we cherry pick fixes from the development branch and backport "
35372 "those into the stable branch, the effect being that the stable branch should "
35373 "get more stable and less buggy over time.  So the stable releases are ideal "
35374 "for people who don't need new features but would just like the software to "
35375 "work."
35376 msgstr ""
35377
35378 #. type: textblock
35379 #: ../src/guestfs.pod:2416
35380 msgid "Our criteria for backporting changes are:"
35381 msgstr ""
35382
35383 #. type: textblock
35384 #: ../src/guestfs.pod:2422
35385 msgid ""
35386 "Documentation changes which don't affect any code are backported unless the "
35387 "documentation refers to a future feature which is not in stable."
35388 msgstr ""
35389
35390 #. type: textblock
35391 #: ../src/guestfs.pod:2428
35392 msgid ""
35393 "Bug fixes which are not controversial, fix obvious problems, and have been "
35394 "well tested are backported."
35395 msgstr ""
35396
35397 #. type: textblock
35398 #: ../src/guestfs.pod:2433
35399 msgid ""
35400 "Simple rearrangements of code which shouldn't affect how it works get "
35401 "backported.  This is so that the code in the two branches doesn't get too "
35402 "far out of step, allowing us to backport future fixes more easily."
35403 msgstr ""
35404
35405 #. type: textblock
35406 #: ../src/guestfs.pod:2439
35407 msgid ""
35408 "We I<don't> backport new features, new APIs, new tools etc, except in one "
35409 "exceptional case: the new feature is required in order to implement an "
35410 "important bug fix."
35411 msgstr ""
35412
35413 #. type: textblock
35414 #: ../src/guestfs.pod:2445
35415 msgid ""
35416 "A new stable branch starts when we think the new features in development are "
35417 "substantial and compelling enough over the current stable branch to warrant "
35418 "it.  When that happens we create new stable and development versions 1.N.0 "
35419 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
35420 "stable at this point, but by backporting fixes from development, that branch "
35421 "will stabilize over time."
35422 msgstr ""
35423
35424 #. type: =head1
35425 #: ../src/guestfs.pod:2453
35426 msgid "EXTENDING LIBGUESTFS"
35427 msgstr ""
35428
35429 #. type: =head2
35430 #: ../src/guestfs.pod:2455
35431 msgid "ADDING A NEW API ACTION"
35432 msgstr ""
35433
35434 #. type: textblock
35435 #: ../src/guestfs.pod:2457
35436 msgid ""
35437 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
35438 "documentation) are generated, and this makes it easy to extend the "
35439 "libguestfs API."
35440 msgstr ""
35441
35442 #. type: textblock
35443 #: ../src/guestfs.pod:2461
35444 msgid "To add a new API action there are two changes:"
35445 msgstr ""
35446
35447 #. type: textblock
35448 #: ../src/guestfs.pod:2467
35449 msgid ""
35450 "You need to add a description of the call (name, parameters, return type, "
35451 "tests, documentation) to C<generator/generator_actions.ml>."
35452 msgstr ""
35453
35454 #. type: textblock
35455 #: ../src/guestfs.pod:2470
35456 msgid ""
35457 "There are two sorts of API action, depending on whether the call goes "
35458 "through to the daemon in the appliance, or is serviced entirely by the "
35459 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
35460 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
35461 "an example of the latter, since a trace flag is maintained in the handle and "
35462 "all tracing is done on the library side."
35463 msgstr ""
35464
35465 #. type: textblock
35466 #: ../src/guestfs.pod:2478
35467 msgid ""
35468 "Most new actions are of the first type, and get added to the "
35469 "C<daemon_functions> list.  Each function has a unique procedure number used "
35470 "in the RPC protocol which is assigned to that action when we publish "
35471 "libguestfs and cannot be reused.  Take the latest procedure number and "
35472 "increment it."
35473 msgstr ""
35474
35475 #. type: textblock
35476 #: ../src/guestfs.pod:2484
35477 msgid ""
35478 "For library-only actions of the second type, add to the "
35479 "C<non_daemon_functions> list.  Since these functions are serviced by the "
35480 "library and do not travel over the RPC mechanism to the daemon, these "
35481 "functions do not need a procedure number, and so the procedure number is set "
35482 "to C<-1>."
35483 msgstr ""
35484
35485 #. type: textblock
35486 #: ../src/guestfs.pod:2492
35487 msgid "Implement the action (in C):"
35488 msgstr ""
35489
35490 #. type: textblock
35491 #: ../src/guestfs.pod:2494
35492 msgid ""
35493 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
35494 "C<daemon/> directory."
35495 msgstr ""
35496
35497 #. type: textblock
35498 #: ../src/guestfs.pod:2497
35499 msgid ""
35500 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
35501 "(note: double underscore) in the C<src/> directory."
35502 msgstr ""
35503
35504 #. type: textblock
35505 #: ../src/guestfs.pod:2500
35506 msgid "In either case, use another function as an example of what to do."
35507 msgstr ""
35508
35509 #. type: textblock
35510 #: ../src/guestfs.pod:2504
35511 msgid "After making these changes, use C<make> to compile."
35512 msgstr ""
35513
35514 #. type: textblock
35515 #: ../src/guestfs.pod:2506
35516 msgid ""
35517 "Note that you don't need to implement the RPC, language bindings, manual "
35518 "pages or anything else.  It's all automatically generated from the OCaml "
35519 "description."
35520 msgstr ""
35521
35522 #. type: =head2
35523 #: ../src/guestfs.pod:2510
35524 msgid "ADDING TESTS FOR AN API ACTION"
35525 msgstr ""
35526
35527 #. type: textblock
35528 #: ../src/guestfs.pod:2512
35529 msgid ""
35530 "You can supply zero or as many tests as you want per API call.  The tests "
35531 "can either be added as part of the API description (C<generator/"
35532 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
35533 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
35534 "slower, so if possible use the first method."
35535 msgstr ""
35536
35537 #. type: textblock
35538 #: ../src/guestfs.pod:2518
35539 msgid ""
35540 "The following describes the test environment used when you add an API test "
35541 "in C<generator_actions.ml>."
35542 msgstr ""
35543
35544 #. type: textblock
35545 #: ../src/guestfs.pod:2521
35546 msgid "The test environment has 4 block devices:"
35547 msgstr ""
35548
35549 #. type: =item
35550 #: ../src/guestfs.pod:2525
35551 msgid "C</dev/sda> 500MB"
35552 msgstr ""
35553
35554 #. type: textblock
35555 #: ../src/guestfs.pod:2527
35556 msgid "General block device for testing."
35557 msgstr ""
35558
35559 #. type: =item
35560 #: ../src/guestfs.pod:2529
35561 msgid "C</dev/sdb> 50MB"
35562 msgstr ""
35563
35564 #. type: textblock
35565 #: ../src/guestfs.pod:2531
35566 msgid ""
35567 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
35568 "operations."
35569 msgstr ""
35570
35571 #. type: =item
35572 #: ../src/guestfs.pod:2534
35573 msgid "C</dev/sdc> 10MB"
35574 msgstr ""
35575
35576 #. type: textblock
35577 #: ../src/guestfs.pod:2536
35578 msgid "Used in a few tests where two block devices are needed."
35579 msgstr ""
35580
35581 #. type: =item
35582 #: ../src/guestfs.pod:2538
35583 msgid "C</dev/sdd>"
35584 msgstr ""
35585
35586 #. type: textblock
35587 #: ../src/guestfs.pod:2540
35588 msgid "ISO with fixed content (see C<images/test.iso>)."
35589 msgstr ""
35590
35591 #. type: textblock
35592 #: ../src/guestfs.pod:2544
35593 msgid ""
35594 "To be able to run the tests in a reasonable amount of time, the libguestfs "
35595 "appliance and block devices are reused between tests.  So don't try testing "
35596 "L</guestfs_kill_subprocess> :-x"
35597 msgstr ""
35598
35599 #. type: textblock
35600 #: ../src/guestfs.pod:2548
35601 msgid ""
35602 "Each test starts with an initial scenario, selected using one of the "
35603 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
35604 "initialize the disks mentioned above in a particular way as documented in "
35605 "C<generator_types.ml>.  You should not assume anything about the previous "
35606 "contents of other disks that are not initialized."
35607 msgstr ""
35608
35609 #. type: textblock
35610 #: ../src/guestfs.pod:2554
35611 msgid ""
35612 "You can add a prerequisite clause to any individual test.  This is a run-"
35613 "time check, which, if it fails, causes the test to be skipped.  Useful if "
35614 "testing a command which might not work on all variations of libguestfs "
35615 "builds.  A test that has prerequisite of C<Always> means to run "
35616 "unconditionally."
35617 msgstr ""
35618
35619 #. type: textblock
35620 #: ../src/guestfs.pod:2560
35621 msgid ""
35622 "In addition, packagers can skip individual tests by setting environment "
35623 "variables before running C<make check>."
35624 msgstr ""
35625
35626 #. type: verbatim
35627 #: ../src/guestfs.pod:2563
35628 #, no-wrap
35629 msgid ""
35630 " SKIP_TEST_<CMD>_<NUM>=1\n"
35631 "\n"
35632 msgstr ""
35633
35634 #. type: textblock
35635 #: ../src/guestfs.pod:2565
35636 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
35637 msgstr ""
35638
35639 #. type: textblock
35640 #: ../src/guestfs.pod:2567
35641 msgid "or:"
35642 msgstr ""
35643
35644 #. type: verbatim
35645 #: ../src/guestfs.pod:2569
35646 #, no-wrap
35647 msgid ""
35648 " SKIP_TEST_<CMD>=1\n"
35649 "\n"
35650 msgstr ""
35651
35652 #. type: textblock
35653 #: ../src/guestfs.pod:2571
35654 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
35655 msgstr ""
35656
35657 #. type: textblock
35658 #: ../src/guestfs.pod:2573
35659 msgid "Packagers can run only certain tests by setting for example:"
35660 msgstr ""
35661
35662 #. type: verbatim
35663 #: ../src/guestfs.pod:2575
35664 #, no-wrap
35665 msgid ""
35666 " TEST_ONLY=\"vfs_type zerofree\"\n"
35667 "\n"
35668 msgstr ""
35669
35670 #. type: textblock
35671 #: ../src/guestfs.pod:2577
35672 msgid ""
35673 "See C<capitests/tests.c> for more details of how these environment variables "
35674 "work."
35675 msgstr ""
35676
35677 #. type: =head2
35678 #: ../src/guestfs.pod:2580
35679 msgid "DEBUGGING NEW API ACTIONS"
35680 msgstr ""
35681
35682 #. type: textblock
35683 #: ../src/guestfs.pod:2582
35684 msgid "Test new actions work before submitting them."
35685 msgstr ""
35686
35687 #. type: textblock
35688 #: ../src/guestfs.pod:2584
35689 msgid "You can use guestfish to try out new commands."
35690 msgstr ""
35691
35692 #. type: textblock
35693 #: ../src/guestfs.pod:2586
35694 msgid ""
35695 "Debugging the daemon is a problem because it runs inside a minimal "
35696 "environment.  However you can fprintf messages in the daemon to stderr, and "
35697 "they will show up if you use C<guestfish -v>."
35698 msgstr ""
35699
35700 #. type: =head2
35701 #: ../src/guestfs.pod:2590
35702 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
35703 msgstr ""
35704
35705 #. type: textblock
35706 #: ../src/guestfs.pod:2592
35707 msgid ""
35708 "Our C source code generally adheres to some basic code-formatting "
35709 "conventions.  The existing code base is not totally consistent on this "
35710 "front, but we do prefer that contributed code be formatted similarly.  In "
35711 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
35712 "indentation level, and other than that, follow the K&R style."
35713 msgstr ""
35714
35715 #. type: textblock
35716 #: ../src/guestfs.pod:2598
35717 msgid ""
35718 "If you use Emacs, add the following to one of one of your start-up files (e."
35719 "g., ~/.emacs), to help ensure that you get indentation right:"
35720 msgstr ""
35721
35722 #. type: verbatim
35723 #: ../src/guestfs.pod:2601
35724 #, no-wrap
35725 msgid ""
35726 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
35727 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
35728 " (add-hook 'find-file-hook\n"
35729 "     '(lambda () (if (and buffer-file-name\n"
35730 "                          (string-match \"/libguestfs\\\\>\"\n"
35731 "                              (buffer-file-name))\n"
35732 "                          (not (string-equal mode-name \"Change Log\"))\n"
35733 "                          (not (string-equal mode-name \"Makefile\")))\n"
35734 "                     (setq indent-tabs-mode nil))))\n"
35735 " \n"
35736 msgstr ""
35737
35738 #. type: verbatim
35739 #: ../src/guestfs.pod:2611
35740 #, no-wrap
35741 msgid ""
35742 " ;;; When editing C sources in libguestfs, use this style.\n"
35743 " (defun libguestfs-c-mode ()\n"
35744 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
35745 "   (interactive)\n"
35746 "   (c-set-style \"K&R\")\n"
35747 "   (setq c-indent-level 2)\n"
35748 "   (setq c-basic-offset 2))\n"
35749 " (add-hook 'c-mode-hook\n"
35750 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
35751 "                               (buffer-file-name))\n"
35752 "                           (libguestfs-c-mode))))\n"
35753 "\n"
35754 msgstr ""
35755
35756 #. type: textblock
35757 #: ../src/guestfs.pod:2623
35758 msgid "Enable warnings when compiling (and fix any problems this finds):"
35759 msgstr ""
35760
35761 #. type: verbatim
35762 #: ../src/guestfs.pod:2626
35763 #, no-wrap
35764 msgid ""
35765 " ./configure --enable-gcc-warnings\n"
35766 "\n"
35767 msgstr ""
35768
35769 #. type: textblock
35770 #: ../src/guestfs.pod:2628
35771 msgid "Useful targets are:"
35772 msgstr ""
35773
35774 #. type: verbatim
35775 #: ../src/guestfs.pod:2630
35776 #, no-wrap
35777 msgid ""
35778 " make syntax-check  # checks the syntax of the C code\n"
35779 " make check         # runs the test suite\n"
35780 "\n"
35781 msgstr ""
35782
35783 #. type: =head2
35784 #: ../src/guestfs.pod:2633
35785 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
35786 msgstr ""
35787
35788 #. type: textblock
35789 #: ../src/guestfs.pod:2635
35790 msgid ""
35791 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
35792 "which are used to do shell quoting."
35793 msgstr ""
35794
35795 #. type: =item
35796 #: ../src/guestfs.pod:2640
35797 msgid "%Q"
35798 msgstr ""
35799
35800 #. type: textblock
35801 #: ../src/guestfs.pod:2642
35802 msgid ""
35803 "Simple shell quoted string.  Any spaces or other shell characters are "
35804 "escaped for you."
35805 msgstr ""
35806
35807 #. type: =item
35808 #: ../src/guestfs.pod:2645
35809 msgid "%R"
35810 msgstr ""
35811
35812 #. type: textblock
35813 #: ../src/guestfs.pod:2647
35814 msgid ""
35815 "Same as C<%Q> except the string is treated as a path which is prefixed by "
35816 "the sysroot."
35817 msgstr ""
35818
35819 #. type: verbatim
35820 #: ../src/guestfs.pod:2654
35821 #, no-wrap
35822 msgid ""
35823 " asprintf (&cmd, \"cat %R\", path);\n"
35824 "\n"
35825 msgstr ""
35826
35827 #. type: textblock
35828 #: ../src/guestfs.pod:2656
35829 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
35830 msgstr ""
35831
35832 #. type: textblock
35833 #: ../src/guestfs.pod:2658
35834 msgid ""
35835 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
35836 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
35837 "they are not passed via the shell (instead, straight to exec).  You probably "
35838 "want to use the C<sysroot_path()> function however."
35839 msgstr ""
35840
35841 #. type: =head2
35842 #: ../src/guestfs.pod:2664
35843 msgid "SUBMITTING YOUR NEW API ACTIONS"
35844 msgstr ""
35845
35846 #. type: textblock
35847 #: ../src/guestfs.pod:2666
35848 msgid ""
35849 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
35850 "libguestfs> and CC to L<rjones@redhat.com>."
35851 msgstr ""
35852
35853 #. type: =head2
35854 #: ../src/guestfs.pod:2670
35855 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
35856 msgstr ""
35857
35858 #. type: textblock
35859 #: ../src/guestfs.pod:2672
35860 msgid "We support i18n (gettext anyhow) in the library."
35861 msgstr ""
35862
35863 #. type: textblock
35864 #: ../src/guestfs.pod:2674
35865 msgid ""
35866 "However many messages come from the daemon, and we don't translate those at "
35867 "the moment.  One reason is that the appliance generally has all locale files "
35868 "removed from it, because they take up a lot of space.  So we'd have to readd "
35869 "some of those, as well as copying our PO files into the appliance."
35870 msgstr ""
35871
35872 #. type: textblock
35873 #: ../src/guestfs.pod:2680
35874 msgid ""
35875 "Debugging messages are never translated, since they are intended for the "
35876 "programmers."
35877 msgstr ""
35878
35879 #. type: =head2
35880 #: ../src/guestfs.pod:2683
35881 msgid "SOURCE CODE SUBDIRECTORIES"
35882 msgstr ""
35883
35884 #. type: textblock
35885 #: ../src/guestfs.pod:2689
35886 msgid "The libguestfs appliance, build scripts and so on."
35887 msgstr ""
35888
35889 #. type: =item
35890 #: ../src/guestfs.pod:2691
35891 msgid "C<capitests>"
35892 msgstr ""
35893
35894 #. type: textblock
35895 #: ../src/guestfs.pod:2693
35896 msgid "Automated tests of the C API."
35897 msgstr ""
35898
35899 #. type: =item
35900 #: ../src/guestfs.pod:2695
35901 msgid "C<cat>"
35902 msgstr ""
35903
35904 #. type: textblock
35905 #: ../src/guestfs.pod:2697
35906 msgid ""
35907 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
35908 "documentation."
35909 msgstr ""
35910
35911 #. type: =item
35912 #: ../src/guestfs.pod:2700
35913 msgid "C<caution>"
35914 msgstr ""
35915
35916 #. type: textblock
35917 #: ../src/guestfs.pod:2702
35918 msgid ""
35919 "Safety and liveness tests of components that libguestfs depends upon (not of "
35920 "libguestfs itself).  Mainly this is for qemu and the kernel."
35921 msgstr ""
35922
35923 #. type: =item
35924 #: ../src/guestfs.pod:2705
35925 msgid "C<contrib>"
35926 msgstr ""
35927
35928 #. type: textblock
35929 #: ../src/guestfs.pod:2707
35930 msgid "Outside contributions, experimental parts."
35931 msgstr ""
35932
35933 #. type: =item
35934 #: ../src/guestfs.pod:2709
35935 msgid "C<daemon>"
35936 msgstr ""
35937
35938 #. type: textblock
35939 #: ../src/guestfs.pod:2711
35940 msgid ""
35941 "The daemon that runs inside the libguestfs appliance and carries out actions."
35942 msgstr ""
35943
35944 #. type: =item
35945 #: ../src/guestfs.pod:2714
35946 msgid "C<df>"
35947 msgstr ""
35948
35949 #. type: textblock
35950 #: ../src/guestfs.pod:2716
35951 msgid "L<virt-df(1)> command and documentation."
35952 msgstr ""
35953
35954 #. type: =item
35955 #: ../src/guestfs.pod:2718
35956 msgid "C<edit>"
35957 msgstr ""
35958
35959 #. type: textblock
35960 #: ../src/guestfs.pod:2720
35961 msgid "L<virt-edit(1)> command and documentation."
35962 msgstr ""
35963
35964 #. type: =item
35965 #: ../src/guestfs.pod:2722
35966 msgid "C<examples>"
35967 msgstr ""
35968
35969 #. type: textblock
35970 #: ../src/guestfs.pod:2724
35971 msgid "C API example code."
35972 msgstr ""
35973
35974 #. type: =item
35975 #: ../src/guestfs.pod:2726
35976 msgid "C<fish>"
35977 msgstr ""
35978
35979 #. type: textblock
35980 #: ../src/guestfs.pod:2728
35981 msgid ""
35982 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
35983 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
35984 "L<virt-tar-out(1)>."
35985 msgstr ""
35986
35987 #. type: =item
35988 #: ../src/guestfs.pod:2732
35989 msgid "C<fuse>"
35990 msgstr ""
35991
35992 #. type: textblock
35993 #: ../src/guestfs.pod:2734
35994 msgid ""
35995 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
35996 msgstr ""
35997
35998 #. type: =item
35999 #: ../src/guestfs.pod:2736
36000 msgid "C<generator>"
36001 msgstr ""
36002
36003 #. type: textblock
36004 #: ../src/guestfs.pod:2738
36005 msgid ""
36006 "The crucially important generator, used to automatically generate large "
36007 "amounts of boilerplate C code for things like RPC and bindings."
36008 msgstr ""
36009
36010 #. type: =item
36011 #: ../src/guestfs.pod:2741
36012 msgid "C<images>"
36013 msgstr ""
36014
36015 #. type: textblock
36016 #: ../src/guestfs.pod:2743
36017 msgid "Files used by the test suite."
36018 msgstr ""
36019
36020 #. type: textblock
36021 #: ../src/guestfs.pod:2745
36022 msgid "Some \"phony\" guest images which we test against."
36023 msgstr ""
36024
36025 #. type: =item
36026 #: ../src/guestfs.pod:2747
36027 msgid "C<inspector>"
36028 msgstr ""
36029
36030 #. type: textblock
36031 #: ../src/guestfs.pod:2749
36032 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
36033 msgstr ""
36034
36035 #. type: =item
36036 #: ../src/guestfs.pod:2751
36037 msgid "C<logo>"
36038 msgstr ""
36039
36040 #. type: textblock
36041 #: ../src/guestfs.pod:2753
36042 msgid "Logo used on the website.  The fish is called Arthur by the way."
36043 msgstr ""
36044
36045 #. type: =item
36046 #: ../src/guestfs.pod:2755
36047 msgid "C<m4>"
36048 msgstr ""
36049
36050 #. type: textblock
36051 #: ../src/guestfs.pod:2757
36052 msgid "M4 macros used by autoconf."
36053 msgstr ""
36054
36055 #. type: =item
36056 #: ../src/guestfs.pod:2759
36057 msgid "C<po>"
36058 msgstr ""
36059
36060 #. type: textblock
36061 #: ../src/guestfs.pod:2761
36062 msgid "Translations of simple gettext strings."
36063 msgstr ""
36064
36065 #. type: =item
36066 #: ../src/guestfs.pod:2763
36067 msgid "C<po-docs>"
36068 msgstr ""
36069
36070 #. type: textblock
36071 #: ../src/guestfs.pod:2765
36072 msgid ""
36073 "The build infrastructure and PO files for translations of manpages and POD "
36074 "files.  Eventually this will be combined with the C<po> directory, but that "
36075 "is rather complicated."
36076 msgstr ""
36077
36078 #. type: =item
36079 #: ../src/guestfs.pod:2769
36080 msgid "C<regressions>"
36081 msgstr ""
36082
36083 #. type: textblock
36084 #: ../src/guestfs.pod:2771
36085 msgid "Regression tests."
36086 msgstr ""
36087
36088 #. type: =item
36089 #: ../src/guestfs.pod:2773
36090 msgid "C<rescue>"
36091 msgstr ""
36092
36093 #. type: textblock
36094 #: ../src/guestfs.pod:2775
36095 msgid "L<virt-rescue(1)> command and documentation."
36096 msgstr ""
36097
36098 #. type: =item
36099 #: ../src/guestfs.pod:2777
36100 msgid "C<src>"
36101 msgstr ""
36102
36103 #. type: textblock
36104 #: ../src/guestfs.pod:2779
36105 msgid "Source code to the C library."
36106 msgstr ""
36107
36108 #. type: =item
36109 #: ../src/guestfs.pod:2781
36110 msgid "C<tools>"
36111 msgstr ""
36112
36113 #. type: textblock
36114 #: ../src/guestfs.pod:2783
36115 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
36116 msgstr ""
36117
36118 #. type: =item
36119 #: ../src/guestfs.pod:2785
36120 msgid "C<test-tool>"
36121 msgstr ""
36122
36123 #. type: textblock
36124 #: ../src/guestfs.pod:2787
36125 msgid ""
36126 "Test tool for end users to test if their qemu/kernel combination will work "
36127 "with libguestfs."
36128 msgstr ""
36129
36130 #. type: =item
36131 #: ../src/guestfs.pod:2790
36132 msgid "C<csharp>"
36133 msgstr ""
36134
36135 #. type: =item
36136 #: ../src/guestfs.pod:2792
36137 msgid "C<haskell>"
36138 msgstr ""
36139
36140 #. type: =item
36141 #: ../src/guestfs.pod:2794
36142 msgid "C<java>"
36143 msgstr ""
36144
36145 #. type: =item
36146 #: ../src/guestfs.pod:2796
36147 msgid "C<ocaml>"
36148 msgstr ""
36149
36150 #. type: =item
36151 #: ../src/guestfs.pod:2798
36152 msgid "C<php>"
36153 msgstr ""
36154
36155 #. type: =item
36156 #: ../src/guestfs.pod:2800
36157 msgid "C<perl>"
36158 msgstr ""
36159
36160 #. type: =item
36161 #: ../src/guestfs.pod:2802
36162 msgid "C<python>"
36163 msgstr ""
36164
36165 #. type: =item
36166 #: ../src/guestfs.pod:2804
36167 msgid "C<ruby>"
36168 msgstr ""
36169
36170 #. type: textblock
36171 #: ../src/guestfs.pod:2806
36172 msgid "Language bindings."
36173 msgstr ""
36174
36175 #. type: =head2
36176 #: ../src/guestfs.pod:2810
36177 msgid "MAKING A STABLE RELEASE"
36178 msgstr ""
36179
36180 #. type: textblock
36181 #: ../src/guestfs.pod:2812
36182 msgid ""
36183 "When we make a stable release, there are several steps documented here.  See "
36184 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
36185 "branch policy."
36186 msgstr ""
36187
36188 #. type: textblock
36189 #: ../src/guestfs.pod:2820
36190 msgid ""
36191 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
36192 msgstr ""
36193
36194 #. type: textblock
36195 #: ../src/guestfs.pod:2825
36196 msgid "Finalize RELEASE-NOTES."
36197 msgstr ""
36198
36199 #. type: textblock
36200 #: ../src/guestfs.pod:2829
36201 msgid "Update ROADMAP."
36202 msgstr ""
36203
36204 #. type: textblock
36205 #: ../src/guestfs.pod:2833
36206 msgid "Run C<src/api-support/update-from-tarballs.sh>."
36207 msgstr ""
36208
36209 #. type: textblock
36210 #: ../src/guestfs.pod:2837
36211 msgid "Push and pull from Transifex."
36212 msgstr ""
36213
36214 #. type: textblock
36215 #: ../src/guestfs.pod:2839
36216 msgid "Run:"
36217 msgstr ""
36218
36219 #. type: verbatim
36220 #: ../src/guestfs.pod:2841
36221 #, no-wrap
36222 msgid ""
36223 " tx push -s\n"
36224 "\n"
36225 msgstr ""
36226
36227 #. type: textblock
36228 #: ../src/guestfs.pod:2843
36229 msgid "to push the latest POT files to Transifex.  Then run:"
36230 msgstr ""
36231
36232 #. type: verbatim
36233 #: ../src/guestfs.pod:2845
36234 #, no-wrap
36235 msgid ""
36236 " ./tx-pull.sh\n"
36237 "\n"
36238 msgstr ""
36239
36240 #. type: textblock
36241 #: ../src/guestfs.pod:2847
36242 msgid "which is a wrapper to pull the latest translated C<*.po> files."
36243 msgstr ""
36244
36245 #. type: textblock
36246 #: ../src/guestfs.pod:2851
36247 msgid ""
36248 "Create new stable and development directories under L<http://libguestfs.org/"
36249 "download>."
36250 msgstr ""
36251
36252 #. type: textblock
36253 #: ../src/guestfs.pod:2856
36254 msgid "Create the branch in git:"
36255 msgstr ""
36256
36257 #. type: verbatim
36258 #: ../src/guestfs.pod:2858
36259 #, no-wrap
36260 msgid ""
36261 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
36262 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
36263 " git branch stable-1.XX\n"
36264 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
36265 "\n"
36266 msgstr ""
36267
36268 #. type: =head1
36269 #: ../src/guestfs.pod:2865
36270 msgid "LIMITS"
36271 msgstr ""
36272
36273 #. type: =head2
36274 #: ../src/guestfs.pod:2867
36275 msgid "PROTOCOL LIMITS"
36276 msgstr ""
36277
36278 #. type: textblock
36279 #: ../src/guestfs.pod:2869
36280 msgid ""
36281 "Internally libguestfs uses a message-based protocol to pass API calls and "
36282 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
36283 "plenty more detail about this).  The maximum message size used by the "
36284 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
36285 "aware of this limit.  The API calls which may be affected are individually "
36286 "documented, with a link back to this section of the documentation."
36287 msgstr ""
36288
36289 #. type: textblock
36290 #: ../src/guestfs.pod:2877
36291 msgid ""
36292 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
36293 "a simple string.  Because this string is at some point internally encoded as "
36294 "a message, the maximum size that it can return is slightly under 4 MB.  If "
36295 "the requested file is larger than this then you will get an error."
36296 msgstr ""
36297
36298 #. type: textblock
36299 #: ../src/guestfs.pod:2883
36300 msgid ""
36301 "In order to transfer large files into and out of the guest filesystem, you "
36302 "need to use particular calls that support this.  The sections L</UPLOADING> "
36303 "and L</DOWNLOADING> document how to do this."
36304 msgstr ""
36305
36306 #. type: textblock
36307 #: ../src/guestfs.pod:2887
36308 msgid ""
36309 "You might also consider mounting the disk image using our FUSE filesystem "
36310 "support (L<guestmount(1)>)."
36311 msgstr ""
36312
36313 #. type: =head2
36314 #: ../src/guestfs.pod:2890
36315 msgid "MAXIMUM NUMBER OF DISKS"
36316 msgstr ""
36317
36318 #. type: textblock
36319 #: ../src/guestfs.pod:2892
36320 msgid "When using virtio disks (the default) the current limit is B<25> disks."
36321 msgstr ""
36322
36323 #. type: textblock
36324 #: ../src/guestfs.pod:2895
36325 msgid ""
36326 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
36327 "slots.  However febootstrap only understands disks with names C</dev/vda> "
36328 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
36329 "purposes."
36330 msgstr ""
36331
36332 #. type: textblock
36333 #: ../src/guestfs.pod:2900
36334 msgid ""
36335 "We are working to substantially raise this limit in future versions but it "
36336 "requires complex changes to qemu."
36337 msgstr ""
36338
36339 #. type: textblock
36340 #: ../src/guestfs.pod:2903
36341 msgid ""
36342 "In future versions of libguestfs it should also be possible to \"hot plug\" "
36343 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
36344 "requires changes to qemu."
36345 msgstr ""
36346
36347 #. type: =head2
36348 #: ../src/guestfs.pod:2907
36349 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
36350 msgstr ""
36351
36352 #. type: textblock
36353 #: ../src/guestfs.pod:2909
36354 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
36355 msgstr ""
36356
36357 #. type: textblock
36358 #: ../src/guestfs.pod:2911
36359 msgid ""
36360 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
36361 "vda>, and C</dev/vda1> through C</dev/vda15>)."
36362 msgstr ""
36363
36364 #. type: textblock
36365 #: ../src/guestfs.pod:2914
36366 msgid ""
36367 "If you attach a disk with more than 15 partitions, the extra partitions are "
36368 "ignored by libguestfs."
36369 msgstr ""
36370
36371 #. type: =head2
36372 #: ../src/guestfs.pod:2917
36373 msgid "MAXIMUM SIZE OF A DISK"
36374 msgstr ""
36375
36376 #. type: textblock
36377 #: ../src/guestfs.pod:2919
36378 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
36379 msgstr ""
36380
36381 #. type: textblock
36382 #: ../src/guestfs.pod:2921
36383 msgid ""
36384 "We have tested block devices up to 1 exabyte (2**60 or "
36385 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
36386 "filesystem."
36387 msgstr ""
36388
36389 #. type: textblock
36390 #: ../src/guestfs.pod:2925
36391 msgid ""
36392 "Although libguestfs probably does not impose any limit, the underlying host "
36393 "storage will.  If you store disk images on a host ext4 filesystem, then the "
36394 "maximum size will be limited by the maximum ext4 file size (currently 16 "
36395 "TB).  If you store disk images as host logical volumes then you are limited "
36396 "by the maximum size of an LV."
36397 msgstr ""
36398
36399 #. type: textblock
36400 #: ../src/guestfs.pod:2931
36401 msgid ""
36402 "For the hugest disk image files, we recommend using XFS on the host for "
36403 "storage."
36404 msgstr ""
36405
36406 #. type: =head2
36407 #: ../src/guestfs.pod:2934
36408 msgid "MAXIMUM SIZE OF A PARTITION"
36409 msgstr ""
36410
36411 #. type: textblock
36412 #: ../src/guestfs.pod:2936
36413 msgid ""
36414 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
36415 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
36416 "address a partition located beyond 2 TB on the disk."
36417 msgstr ""
36418
36419 #. type: textblock
36420 #: ../src/guestfs.pod:2940
36421 msgid ""
36422 "It is recommended that you use GPT partitions on disks which are larger than "
36423 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
36424 "which are theoretically larger than the largest disk we could support."
36425 msgstr ""
36426
36427 #. type: =head2
36428 #: ../src/guestfs.pod:2945
36429 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
36430 msgstr ""
36431
36432 #. type: textblock
36433 #: ../src/guestfs.pod:2947
36434 msgid ""
36435 "This depends on the filesystem type.  libguestfs itself does not impose any "
36436 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
36437 "what these limits are."
36438 msgstr ""
36439
36440 #. type: =head2
36441 #: ../src/guestfs.pod:2951
36442 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
36443 msgstr ""
36444
36445 #. type: textblock
36446 #: ../src/guestfs.pod:2953
36447 msgid ""
36448 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
36449 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
36450 "uploads and downloads."
36451 msgstr ""
36452
36453 #. type: =head2
36454 #: ../src/guestfs.pod:2957
36455 msgid "INSPECTION LIMITS"
36456 msgstr ""
36457
36458 #. type: textblock
36459 #: ../src/guestfs.pod:2959
36460 msgid ""
36461 "The inspection code has several arbitrary limits on things like the size of "
36462 "Windows Registry hive it will read, and the length of product name.  These "
36463 "are intended to stop a malicious guest from consuming arbitrary amounts of "
36464 "memory and disk space on the host, and should not be reached in practice.  "
36465 "See the source code for more information."
36466 msgstr ""
36467
36468 #. type: textblock
36469 #: ../src/guestfs.pod:2985
36470 msgid ""
36471 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
36472 "effect as calling C<guestfs_set_verbose (g, 1)>."
36473 msgstr ""
36474
36475 #. type: textblock
36476 #: ../src/guestfs.pod:2997
36477 msgid ""
36478 "Set the path that libguestfs uses to search for a supermin appliance.  See "
36479 "the discussion of paths in section L</PATH> above."
36480 msgstr ""
36481
36482 #. type: textblock
36483 #: ../src/guestfs.pod:3006
36484 msgid "See also L</QEMU WRAPPERS> above."
36485 msgstr ""
36486
36487 #. type: textblock
36488 #: ../src/guestfs.pod:3010
36489 msgid ""
36490 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
36491 "effect as calling C<guestfs_set_trace (g, 1)>."
36492 msgstr ""
36493
36494 #. type: textblock
36495 #: ../src/guestfs.pod:3028
36496 msgid ""
36497 "L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-"
36498 "perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, L<guestfish(1)>, "
36499 "L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
36500 "L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)"
36501 ">, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
36502 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
36503 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, "
36504 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://libguestfs.org/>."
36505 msgstr ""
36506
36507 #. type: textblock
36508 #: ../src/guestfs.pod:3058
36509 msgid ""
36510 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
36511 "(8)>, L<disktype(1)>."
36512 msgstr ""
36513
36514 #. type: =head1
36515 #: ../src/guestfs.pod:3065 ../tools/virt-make-fs.pl:553
36516 #: ../tools/virt-win-reg.pl:761
36517 msgid "BUGS"
36518 msgstr ""
36519
36520 #. type: textblock
36521 #: ../src/guestfs.pod:3067
36522 msgid "To get a list of bugs against libguestfs use this link:"
36523 msgstr ""
36524
36525 #. type: textblock
36526 #: ../src/guestfs.pod:3069
36527 msgid ""
36528 "L<https://bugzilla.redhat.com/buglist.cgi?"
36529 "component=libguestfs&product=Virtualization+Tools>"
36530 msgstr ""
36531
36532 #. type: textblock
36533 #: ../src/guestfs.pod:3071
36534 msgid "To report a new bug against libguestfs use this link:"
36535 msgstr ""
36536
36537 #. type: textblock
36538 #: ../src/guestfs.pod:3073
36539 msgid ""
36540 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
36541 "component=libguestfs&product=Virtualization+Tools>"
36542 msgstr ""
36543
36544 #. type: textblock
36545 #: ../src/guestfs.pod:3075
36546 msgid "When reporting a bug, please check:"
36547 msgstr ""
36548
36549 #. type: textblock
36550 #: ../src/guestfs.pod:3081
36551 msgid "That the bug hasn't been reported already."
36552 msgstr ""
36553
36554 #. type: textblock
36555 #: ../src/guestfs.pod:3085
36556 msgid "That you are testing a recent version."
36557 msgstr ""
36558
36559 #. type: textblock
36560 #: ../src/guestfs.pod:3089
36561 msgid "Describe the bug accurately, and give a way to reproduce it."
36562 msgstr ""
36563
36564 #. type: textblock
36565 #: ../src/guestfs.pod:3093
36566 msgid ""
36567 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
36568 "bug report."
36569 msgstr ""
36570
36571 #. type: textblock
36572 #: ../test-tool/libguestfs-test-tool.pod:5
36573 msgid "libguestfs-test-tool - End user tests for libguestfs"
36574 msgstr ""
36575
36576 #. type: verbatim
36577 #: ../test-tool/libguestfs-test-tool.pod:9
36578 #, no-wrap
36579 msgid ""
36580 " libguestfs-test-tool [--options]\n"
36581 "\n"
36582 msgstr ""
36583
36584 #. type: textblock
36585 #: ../test-tool/libguestfs-test-tool.pod:13
36586 msgid ""
36587 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
36588 "and developers, to allow them to check basic libguestfs functionality is "
36589 "working.  This is needed because libguestfs occasionally breaks for reasons "
36590 "beyond our control: usually because of changes in the underlying qemu or "
36591 "kernel packages, or the host environment."
36592 msgstr ""
36593
36594 #. type: textblock
36595 #: ../test-tool/libguestfs-test-tool.pod:20
36596 msgid "If you suspect a problem in libguestfs, then just run:"
36597 msgstr ""
36598
36599 #. type: verbatim
36600 #: ../test-tool/libguestfs-test-tool.pod:22
36601 #, no-wrap
36602 msgid ""
36603 " libguestfs-test-tool\n"
36604 "\n"
36605 msgstr ""
36606
36607 #. type: textblock
36608 #: ../test-tool/libguestfs-test-tool.pod:24
36609 msgid "It will print lots of diagnostic messages."
36610 msgstr ""
36611
36612 #. type: textblock
36613 #: ../test-tool/libguestfs-test-tool.pod:26
36614 msgid "If it runs to completion successfully, you will see this near the end:"
36615 msgstr ""
36616
36617 #. type: verbatim
36618 #: ../test-tool/libguestfs-test-tool.pod:28
36619 #, no-wrap
36620 msgid ""
36621 " ===== TEST FINISHED OK =====\n"
36622 "\n"
36623 msgstr ""
36624
36625 #. type: textblock
36626 #: ../test-tool/libguestfs-test-tool.pod:30
36627 msgid "and the test tool will exit with code 0."
36628 msgstr ""
36629
36630 #. type: textblock
36631 #: ../test-tool/libguestfs-test-tool.pod:32
36632 msgid ""
36633 "If it fails (and/or exits with non-zero error code), please paste the "
36634 "B<complete, unedited> output of the test tool into a bug report.  More "
36635 "information about reporting bugs can be found on the L<http://libguestfs.org/"
36636 "> website."
36637 msgstr ""
36638
36639 #. type: =item
36640 #: ../test-tool/libguestfs-test-tool.pod:41
36641 msgid "I<--help>"
36642 msgstr ""
36643
36644 #. type: textblock
36645 #: ../test-tool/libguestfs-test-tool.pod:43
36646 msgid "Display short usage information and exit."
36647 msgstr ""
36648
36649 #. type: =item
36650 #: ../test-tool/libguestfs-test-tool.pod:45
36651 msgid "I<--qemu qemu_binary>"
36652 msgstr ""
36653
36654 #. type: textblock
36655 #: ../test-tool/libguestfs-test-tool.pod:47
36656 msgid ""
36657 "If you have downloaded another qemu binary, point this option at the full "
36658 "path of the binary to try it."
36659 msgstr ""
36660
36661 #. type: =item
36662 #: ../test-tool/libguestfs-test-tool.pod:50
36663 msgid "I<--qemudir qemu_source_dir>"
36664 msgstr ""
36665
36666 #. type: textblock
36667 #: ../test-tool/libguestfs-test-tool.pod:52
36668 msgid ""
36669 "If you have compiled qemu from source, point this option at the source "
36670 "directory to try it."
36671 msgstr ""
36672
36673 #. type: =item
36674 #: ../test-tool/libguestfs-test-tool.pod:55
36675 msgid "I<--timeout N>"
36676 msgstr ""
36677
36678 #. type: textblock
36679 #: ../test-tool/libguestfs-test-tool.pod:57
36680 msgid ""
36681 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
36682 "does not usually need to be adjusted unless your machine is very slow."
36683 msgstr ""
36684
36685 #. type: =head1
36686 #: ../test-tool/libguestfs-test-tool.pod:63
36687 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
36688 msgstr ""
36689
36690 #. type: textblock
36691 #: ../test-tool/libguestfs-test-tool.pod:65
36692 msgid ""
36693 "If you have compiled another version of qemu from source and would like to "
36694 "try that, then you can use the I<--qemudir> option to point to the qemu "
36695 "source directory."
36696 msgstr ""
36697
36698 #. type: textblock
36699 #: ../test-tool/libguestfs-test-tool.pod:69
36700 msgid ""
36701 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
36702 "option to point to the binary."
36703 msgstr ""
36704
36705 #. type: textblock
36706 #: ../test-tool/libguestfs-test-tool.pod:72
36707 msgid ""
36708 "When using an alternate qemu with libguestfs, usually you would need to "
36709 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
36710 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
36711 "use either of the I<--qemudir> or I<--qemu> options."
36712 msgstr ""
36713
36714 #. type: textblock
36715 #: ../test-tool/libguestfs-test-tool.pod:79
36716 msgid ""
36717 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
36718 "I<1> if there was an error."
36719 msgstr ""
36720
36721 #. type: textblock
36722 #: ../test-tool/libguestfs-test-tool.pod:84
36723 msgid ""
36724 "For the full list of environment variables which may affect libguestfs, "
36725 "please see the L<guestfs(3)> manual page."
36726 msgstr ""
36727
36728 #. type: textblock
36729 #: ../test-tool/libguestfs-test-tool.pod:89
36730 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
36731 msgstr ""
36732
36733 #. type: textblock
36734 #: ../tools/virt-list-filesystems.pl:32
36735 msgid ""
36736 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
36737 msgstr ""
36738
36739 #. type: verbatim
36740 #: ../tools/virt-list-filesystems.pl:36
36741 #, no-wrap
36742 msgid ""
36743 " virt-list-filesystems [--options] domname\n"
36744 "\n"
36745 msgstr ""
36746
36747 #. type: verbatim
36748 #: ../tools/virt-list-filesystems.pl:38
36749 #, no-wrap
36750 msgid ""
36751 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
36752 "\n"
36753 msgstr ""
36754
36755 #. type: textblock
36756 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
36757 msgid ""
36758 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
36759 "replacement."
36760 msgstr ""
36761
36762 #. type: textblock
36763 #: ../tools/virt-list-filesystems.pl:45
36764 msgid ""
36765 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
36766 "are contained in a virtual machine or disk image."
36767 msgstr ""
36768
36769 #. type: textblock
36770 #: ../tools/virt-list-filesystems.pl:49
36771 msgid ""
36772 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
36773 "functionality.  For more complex cases you should look at the L<guestfish(1)"
36774 "> tool."
36775 msgstr ""
36776
36777 #. type: textblock
36778 #: ../tools/virt-list-filesystems.pl:112
36779 msgid ""
36780 "With this option, C<virt-list-filesystems> displays the type of each "
36781 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
36782 msgstr ""
36783
36784 #. type: =item
36785 #: ../tools/virt-list-filesystems.pl:119
36786 msgid "B<-a>"
36787 msgstr ""
36788
36789 #. type: textblock
36790 #: ../tools/virt-list-filesystems.pl:123
36791 msgid ""
36792 "Normally we only show mountable filesystems.  If this option is given then "
36793 "swap devices are shown too."
36794 msgstr ""
36795
36796 #. type: textblock
36797 #: ../tools/virt-list-filesystems.pl:197
36798 msgid ""
36799 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
36800 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
36801 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
36802 msgstr ""
36803
36804 #. type: textblock
36805 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
36806 msgid "Copyright (C) 2009 Red Hat Inc."
36807 msgstr ""
36808
36809 #. type: textblock
36810 #: ../tools/virt-list-partitions.pl:32
36811 msgid ""
36812 "virt-list-partitions - List partitions in a virtual machine or disk image"
36813 msgstr ""
36814
36815 #. type: verbatim
36816 #: ../tools/virt-list-partitions.pl:36
36817 #, no-wrap
36818 msgid ""
36819 " virt-list-partitions [--options] domname\n"
36820 "\n"
36821 msgstr ""
36822
36823 #. type: verbatim
36824 #: ../tools/virt-list-partitions.pl:38
36825 #, no-wrap
36826 msgid ""
36827 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
36828 "\n"
36829 msgstr ""
36830
36831 #. type: textblock
36832 #: ../tools/virt-list-partitions.pl:45
36833 msgid ""
36834 "C<virt-list-partitions> is a command line tool to list the partitions that "
36835 "are contained in a virtual machine or disk image.  It is mainly useful as a "
36836 "first step to using L<virt-resize(1)>."
36837 msgstr ""
36838
36839 #. type: textblock
36840 #: ../tools/virt-list-partitions.pl:50
36841 msgid ""
36842 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
36843 "functionality.  For more complex cases you should look at the L<guestfish(1)"
36844 "> tool."
36845 msgstr ""
36846
36847 #. type: textblock
36848 #: ../tools/virt-list-partitions.pl:113
36849 msgid "Show sizes in human-readable form (eg. \"1G\")."
36850 msgstr ""
36851
36852 #. type: textblock
36853 #: ../tools/virt-list-partitions.pl:123
36854 msgid ""
36855 "With this option, C<virt-list-partitions> displays the type and size of each "
36856 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
36857 msgstr ""
36858
36859 #. type: =item
36860 #: ../tools/virt-list-partitions.pl:130
36861 msgid "B<-t>"
36862 msgstr ""
36863
36864 #. type: =item
36865 #: ../tools/virt-list-partitions.pl:132
36866 msgid "B<--total>"
36867 msgstr ""
36868
36869 #. type: textblock
36870 #: ../tools/virt-list-partitions.pl:134
36871 msgid ""
36872 "Display the total size of each block device (as a separate row or rows)."
36873 msgstr ""
36874
36875 #. type: textblock
36876 #: ../tools/virt-list-partitions.pl:267
36877 msgid ""
36878 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
36879 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
36880 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
36881 msgstr ""
36882
36883 #. type: textblock
36884 #: ../tools/virt-list-partitions.pl:283
36885 msgid "Copyright (C) 2009-2010 Red Hat Inc."
36886 msgstr ""
36887
36888 #. type: textblock
36889 #: ../tools/virt-make-fs.pl:37
36890 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
36891 msgstr ""
36892
36893 #. type: verbatim
36894 #: ../tools/virt-make-fs.pl:41
36895 #, no-wrap
36896 msgid ""
36897 " virt-make-fs [--options] input.tar output.img\n"
36898 "\n"
36899 msgstr ""
36900
36901 #. type: verbatim
36902 #: ../tools/virt-make-fs.pl:43
36903 #, no-wrap
36904 msgid ""
36905 " virt-make-fs [--options] input.tar.gz output.img\n"
36906 "\n"
36907 msgstr ""
36908
36909 #. type: verbatim
36910 #: ../tools/virt-make-fs.pl:45
36911 #, no-wrap
36912 msgid ""
36913 " virt-make-fs [--options] directory output.img\n"
36914 "\n"
36915 msgstr ""
36916
36917 #. type: textblock
36918 #: ../tools/virt-make-fs.pl:49
36919 msgid ""
36920 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
36921 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
36922 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
36923 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
36924 "you want to attach these filesystems to existing virtual machines (eg. to "
36925 "import large amounts of read-only data to a VM)."
36926 msgstr ""
36927
36928 #. type: textblock
36929 #: ../tools/virt-make-fs.pl:57
36930 msgid "Basic usage is:"
36931 msgstr ""
36932
36933 #. type: verbatim
36934 #: ../tools/virt-make-fs.pl:59
36935 #, no-wrap
36936 msgid ""
36937 " virt-make-fs input output\n"
36938 "\n"
36939 msgstr ""
36940
36941 #. type: textblock
36942 #: ../tools/virt-make-fs.pl:61
36943 msgid ""
36944 "where C<input> is either a directory containing files that you want to add, "
36945 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
36946 "C<output> is a disk image.  The input type is detected automatically.  The "
36947 "output disk image defaults to a raw ext2 image unless you specify extra "
36948 "flags (see L</OPTIONS> below)."
36949 msgstr ""
36950
36951 #. type: =head2
36952 #: ../tools/virt-make-fs.pl:67
36953 msgid "EXTRA SPACE"
36954 msgstr ""
36955
36956 #. type: textblock
36957 #: ../tools/virt-make-fs.pl:69
36958 msgid ""
36959 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
36960 "the files that it contains, but might have extra space.  Depending on how "
36961 "you are going to use the output, you might think this extra space is wasted "
36962 "and want to minimize it, or you might want to leave space so that more files "
36963 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
36964 "but you can use the I<--size> flag to leave space in the filesystem if you "
36965 "want it."
36966 msgstr ""
36967
36968 #. type: textblock
36969 #: ../tools/virt-make-fs.pl:77
36970 msgid ""
36971 "An alternative way to leave extra space but not make the output image any "
36972 "bigger is to use an alternative disk image format (instead of the default "
36973 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
36974 "image format (check your hypervisor supports this before using it).  This "
36975 "allows you to choose a large I<--size> but the extra space won't actually be "
36976 "allocated in the image until you try to store something in it."
36977 msgstr ""
36978
36979 #. type: textblock
36980 #: ../tools/virt-make-fs.pl:85
36981 msgid ""
36982 "Don't forget that you can also use local commands including L<resize2fs(8)> "
36983 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
36984 "to build another image from scratch."
36985 msgstr ""
36986
36987 #. type: =head3
36988 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
36989 #: ../tools/virt-make-fs.pl:142
36990 msgid "EXAMPLE"
36991 msgstr ""
36992
36993 #. type: verbatim
36994 #: ../tools/virt-make-fs.pl:91
36995 #, no-wrap
36996 msgid ""
36997 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
36998 "\n"
36999 msgstr ""
37000
37001 #. type: =head2
37002 #: ../tools/virt-make-fs.pl:93
37003 msgid "FILESYSTEM TYPE"
37004 msgstr ""
37005
37006 #. type: textblock
37007 #: ../tools/virt-make-fs.pl:95
37008 msgid ""
37009 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
37010 "libguestfs supports can be used (but I<not> read-only formats like "
37011 "ISO9660).  Here are some of the more common choices:"
37012 msgstr ""
37013
37014 #. type: =item
37015 #: ../tools/virt-make-fs.pl:101
37016 msgid "I<ext3>"
37017 msgstr ""
37018
37019 #. type: textblock
37020 #: ../tools/virt-make-fs.pl:103
37021 msgid ""
37022 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
37023 "you are not going to use the filesystem in a way that requires the journal, "
37024 "then this is just wasted overhead."
37025 msgstr ""
37026
37027 #. type: =item
37028 #: ../tools/virt-make-fs.pl:107
37029 msgid "I<ntfs> or I<vfat>"
37030 msgstr ""
37031
37032 #. type: textblock
37033 #: ../tools/virt-make-fs.pl:109
37034 msgid "Useful if exporting data to a Windows guest."
37035 msgstr ""
37036
37037 #. type: textblock
37038 #: ../tools/virt-make-fs.pl:111
37039 msgid ""
37040 "I<Note for vfat>: The tar archive or local directory must only contain files "
37041 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
37042 "program running within libguestfs is unable to change the ownership of non-"
37043 "root files, since vfat itself does not support this."
37044 msgstr ""
37045
37046 #. type: =item
37047 #: ../tools/virt-make-fs.pl:116
37048 msgid "I<minix>"
37049 msgstr ""
37050
37051 #. type: textblock
37052 #: ../tools/virt-make-fs.pl:118
37053 msgid ""
37054 "Lower overhead than C<ext2>, but certain limitations on filename length and "
37055 "total filesystem size."
37056 msgstr ""
37057
37058 #. type: verbatim
37059 #: ../tools/virt-make-fs.pl:125
37060 #, no-wrap
37061 msgid ""
37062 " virt-make-fs --type=minix input minixfs.img\n"
37063 "\n"
37064 msgstr ""
37065
37066 #. type: =head2
37067 #: ../tools/virt-make-fs.pl:127
37068 msgid "TO PARTITION OR NOT TO PARTITION"
37069 msgstr ""
37070
37071 #. type: textblock
37072 #: ../tools/virt-make-fs.pl:129
37073 msgid "Optionally virt-make-fs can add a partition table to the output disk."
37074 msgstr ""
37075
37076 #. type: textblock
37077 #: ../tools/virt-make-fs.pl:131
37078 msgid ""
37079 "Adding a partition can make the disk image more compatible with certain "
37080 "virtualized operating systems which don't expect to see a filesystem "
37081 "directly located on a block device (Linux doesn't care and will happily "
37082 "handle both types)."
37083 msgstr ""
37084
37085 #. type: textblock
37086 #: ../tools/virt-make-fs.pl:136
37087 msgid ""
37088 "On the other hand, if you have a partition table then the output image is no "
37089 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
37090 "directly on a partitioned disk image.  (However libguestfs tools such as "
37091 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
37092 msgstr ""
37093
37094 #. type: textblock
37095 #: ../tools/virt-make-fs.pl:144
37096 msgid "Add an MBR partition:"
37097 msgstr ""
37098
37099 #. type: verbatim
37100 #: ../tools/virt-make-fs.pl:146
37101 #, no-wrap
37102 msgid ""
37103 " virt-make-fs --partition -- input disk.img\n"
37104 "\n"
37105 msgstr ""
37106
37107 #. type: textblock
37108 #: ../tools/virt-make-fs.pl:148
37109 msgid ""
37110 "If the output disk image could be terabyte-sized or larger, it's better to "
37111 "use an EFI/GPT-compatible partition table:"
37112 msgstr ""
37113
37114 #. type: verbatim
37115 #: ../tools/virt-make-fs.pl:151
37116 #, no-wrap
37117 msgid ""
37118 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
37119 "\n"
37120 msgstr ""
37121
37122 #. type: textblock
37123 #: ../tools/virt-make-fs.pl:179
37124 msgid "Enable debugging information."
37125 msgstr ""
37126
37127 #. type: =item
37128 #: ../tools/virt-make-fs.pl:185
37129 msgid "B<--size=E<lt>NE<gt>>"
37130 msgstr ""
37131
37132 #. type: =item
37133 #: ../tools/virt-make-fs.pl:187
37134 msgid "B<--size=+E<lt>NE<gt>>"
37135 msgstr ""
37136
37137 #. type: =item
37138 #: ../tools/virt-make-fs.pl:189
37139 msgid "B<-s E<lt>NE<gt>>"
37140 msgstr ""
37141
37142 #. type: =item
37143 #: ../tools/virt-make-fs.pl:191
37144 msgid "B<-s +E<lt>NE<gt>>"
37145 msgstr ""
37146
37147 #. type: textblock
37148 #: ../tools/virt-make-fs.pl:193
37149 msgid ""
37150 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
37151 msgstr ""
37152
37153 #. type: textblock
37154 #: ../tools/virt-make-fs.pl:196
37155 msgid ""
37156 "If this option is I<not> given, then the output image will be just large "
37157 "enough to contain all the files, with not much wasted space."
37158 msgstr ""
37159
37160 #. type: textblock
37161 #: ../tools/virt-make-fs.pl:199
37162 msgid ""
37163 "To choose a fixed size output disk, specify an absolute number followed by b/"
37164 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
37165 "Petabytes or Exabytes.  This must be large enough to contain all the input "
37166 "files, else you will get an error."
37167 msgstr ""
37168
37169 #. type: textblock
37170 #: ../tools/virt-make-fs.pl:204
37171 msgid ""
37172 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
37173 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
37174 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
37175 "the input files, and (approximately) an extra 200 MB free space."
37176 msgstr ""
37177
37178 #. type: textblock
37179 #: ../tools/virt-make-fs.pl:210
37180 msgid ""
37181 "Note that virt-make-fs estimates free space, and therefore will not produce "
37182 "filesystems containing precisely the free space requested.  (It is much more "
37183 "expensive and time-consuming to produce a filesystem which has precisely the "
37184 "desired free space)."
37185 msgstr ""
37186
37187 #. type: =item
37188 #: ../tools/virt-make-fs.pl:219
37189 msgid "B<--format=E<lt>fmtE<gt>>"
37190 msgstr ""
37191
37192 #. type: =item
37193 #: ../tools/virt-make-fs.pl:221
37194 msgid "B<-F E<lt>fmtE<gt>>"
37195 msgstr ""
37196
37197 #. type: textblock
37198 #: ../tools/virt-make-fs.pl:223
37199 msgid "Choose the output disk image format."
37200 msgstr ""
37201
37202 #. type: textblock
37203 #: ../tools/virt-make-fs.pl:225
37204 msgid "The default is C<raw> (raw disk image)."
37205 msgstr ""
37206
37207 #. type: textblock
37208 #: ../tools/virt-make-fs.pl:227
37209 msgid ""
37210 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
37211 "that would really make sense here is C<qcow2>."
37212 msgstr ""
37213
37214 #. type: =item
37215 #: ../tools/virt-make-fs.pl:234
37216 msgid "B<--type=E<lt>fsE<gt>>"
37217 msgstr ""
37218
37219 #. type: =item
37220 #: ../tools/virt-make-fs.pl:236
37221 msgid "B<-t E<lt>fsE<gt>>"
37222 msgstr ""
37223
37224 #. type: textblock
37225 #: ../tools/virt-make-fs.pl:238
37226 msgid "Choose the output filesystem type."
37227 msgstr ""
37228
37229 #. type: textblock
37230 #: ../tools/virt-make-fs.pl:240
37231 msgid "The default is C<ext2>."
37232 msgstr ""
37233
37234 #. type: textblock
37235 #: ../tools/virt-make-fs.pl:242
37236 msgid ""
37237 "Any filesystem which is supported read-write by libguestfs can be used here."
37238 msgstr ""
37239
37240 #. type: =item
37241 #: ../tools/virt-make-fs.pl:249
37242 msgid "B<--partition>"
37243 msgstr ""
37244
37245 #. type: =item
37246 #: ../tools/virt-make-fs.pl:251
37247 msgid "B<--partition=E<lt>parttypeE<gt>>"
37248 msgstr ""
37249
37250 #. type: textblock
37251 #: ../tools/virt-make-fs.pl:253
37252 msgid ""
37253 "If specified, this flag adds an MBR partition table to the output disk image."
37254 msgstr ""
37255
37256 #. type: textblock
37257 #: ../tools/virt-make-fs.pl:256
37258 msgid ""
37259 "You can change the partition table type, eg. I<--partition=gpt> for large "
37260 "disks."
37261 msgstr ""
37262
37263 #. type: textblock
37264 #: ../tools/virt-make-fs.pl:259
37265 msgid ""
37266 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
37267 "might consider the next parameter to be the partition type.  For example:"
37268 msgstr ""
37269
37270 #. type: verbatim
37271 #: ../tools/virt-make-fs.pl:263
37272 #, no-wrap
37273 msgid ""
37274 " virt-make-fs --partition input.tar ...\n"
37275 "\n"
37276 msgstr ""
37277
37278 #. type: textblock
37279 #: ../tools/virt-make-fs.pl:265
37280 msgid ""
37281 "would cause virt-make-fs to think you wanted to use a partition type of "
37282 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
37283 "dash) between options and the input file argument:"
37284 msgstr ""
37285
37286 #. type: verbatim
37287 #: ../tools/virt-make-fs.pl:269
37288 #, no-wrap
37289 msgid ""
37290 " virt-make-fs --partition -- input.tar ...\n"
37291 "\n"
37292 msgstr ""
37293
37294 #. type: textblock
37295 #: ../tools/virt-make-fs.pl:541
37296 msgid ""
37297 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
37298 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
37299 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
37300 msgstr ""
37301
37302 #. type: textblock
37303 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
37304 msgid ""
37305 "When reporting bugs, please enable debugging and capture the I<complete> "
37306 "output:"
37307 msgstr ""
37308
37309 #. type: verbatim
37310 #: ../tools/virt-make-fs.pl:558
37311 #, no-wrap
37312 msgid ""
37313 " export LIBGUESTFS_DEBUG=1\n"
37314 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
37315 "\n"
37316 msgstr ""
37317
37318 #. type: textblock
37319 #: ../tools/virt-make-fs.pl:561
37320 msgid ""
37321 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
37322 "redhat.com/>"
37323 msgstr ""
37324
37325 #. type: textblock
37326 #: ../tools/virt-tar.pl:33
37327 msgid "virt-tar - Extract or upload files to a virtual machine"
37328 msgstr ""
37329
37330 #. type: verbatim
37331 #: ../tools/virt-tar.pl:37
37332 #, no-wrap
37333 msgid ""
37334 " virt-tar [--options] -x domname directory tarball\n"
37335 "\n"
37336 msgstr ""
37337
37338 #. type: verbatim
37339 #: ../tools/virt-tar.pl:39
37340 #, no-wrap
37341 msgid ""
37342 " virt-tar [--options] -u domname tarball directory\n"
37343 "\n"
37344 msgstr ""
37345
37346 #. type: verbatim
37347 #: ../tools/virt-tar.pl:41
37348 #, no-wrap
37349 msgid ""
37350 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
37351 "\n"
37352 msgstr ""
37353
37354 #. type: verbatim
37355 #: ../tools/virt-tar.pl:43
37356 #, no-wrap
37357 msgid ""
37358 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
37359 "\n"
37360 msgstr ""
37361
37362 #. type: =head2
37363 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
37364 msgid "NOTE"
37365 msgstr ""
37366
37367 #. type: textblock
37368 #: ../tools/virt-tar.pl:47
37369 msgid ""
37370 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
37371 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
37372 msgstr ""
37373
37374 #. type: textblock
37375 #: ../tools/virt-tar.pl:52
37376 msgid "Download C</home> from the VM into a local tarball:"
37377 msgstr ""
37378
37379 #. type: verbatim
37380 #: ../tools/virt-tar.pl:54
37381 #, no-wrap
37382 msgid ""
37383 " virt-tar -x domname /home home.tar\n"
37384 "\n"
37385 msgstr ""
37386
37387 #. type: verbatim
37388 #: ../tools/virt-tar.pl:56
37389 #, no-wrap
37390 msgid ""
37391 " virt-tar -zx domname /home home.tar.gz\n"
37392 "\n"
37393 msgstr ""
37394
37395 #. type: textblock
37396 #: ../tools/virt-tar.pl:58
37397 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
37398 msgstr ""
37399
37400 #. type: verbatim
37401 #: ../tools/virt-tar.pl:60
37402 #, no-wrap
37403 msgid ""
37404 " virt-tar -u domname uploadstuff.tar /tmp\n"
37405 "\n"
37406 msgstr ""
37407
37408 #. type: verbatim
37409 #: ../tools/virt-tar.pl:62
37410 #, no-wrap
37411 msgid ""
37412 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
37413 "\n"
37414 msgstr ""
37415
37416 #. type: textblock
37417 #: ../tools/virt-tar.pl:66
37418 msgid ""
37419 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
37420 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
37421 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
37422 msgstr ""
37423
37424 #. type: textblock
37425 #: ../tools/virt-tar.pl:71
37426 msgid ""
37427 "You can use I<-x> (extract) on live virtual machines, but you might get "
37428 "inconsistent results or errors if there is filesystem activity inside the "
37429 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
37430 "work, but the only way to guarantee consistent results is if the virtual "
37431 "machine is shut down."
37432 msgstr ""
37433
37434 #. type: textblock
37435 #: ../tools/virt-tar.pl:79
37436 msgid ""
37437 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
37438 "parts of a guest filesystem.  There are many possibilities: making backups, "
37439 "uploading data files, snooping on guest activity, fixing or customizing "
37440 "guests, etc."
37441 msgstr ""
37442
37443 #. type: textblock
37444 #: ../tools/virt-tar.pl:84
37445 msgid ""
37446 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
37447 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
37448 "should look at the L<guestfish(1)> tool."
37449 msgstr ""
37450
37451 #. type: textblock
37452 #: ../tools/virt-tar.pl:88
37453 msgid ""
37454 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
37455 "its contents (recursively) from the virtual machine into a local tarball.  "
37456 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
37457 "virtual machine.  You cannot use these two options together."
37458 msgstr ""
37459
37460 #. type: textblock
37461 #: ../tools/virt-tar.pl:94
37462 msgid ""
37463 "In addition, you may need to use the I<-z> (gZip) option to enable "
37464 "compression.  When uploading, you have to specify I<-z> if the upload file "
37465 "is compressed because virt-tar won't detect this on its own."
37466 msgstr ""
37467
37468 #. type: textblock
37469 #: ../tools/virt-tar.pl:98
37470 msgid ""
37471 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
37472 "example it cannot do PKZip files or bzip2 compression.  If you want that "
37473 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
37474 "the L<libguestfs(3)> API)."
37475 msgstr ""
37476
37477 #. type: =item
37478 #: ../tools/virt-tar.pl:160
37479 msgid "B<--extract>"
37480 msgstr ""
37481
37482 #. type: =item
37483 #: ../tools/virt-tar.pl:162
37484 msgid "B<--download>"
37485 msgstr ""
37486
37487 #. type: =item
37488 #: ../tools/virt-tar.pl:164
37489 msgid "B<-u>"
37490 msgstr ""
37491
37492 #. type: =item
37493 #: ../tools/virt-tar.pl:166
37494 msgid "B<--upload>"
37495 msgstr ""
37496
37497 #. type: textblock
37498 #: ../tools/virt-tar.pl:168
37499 msgid ""
37500 "Use I<-x> to extract (download) a directory from a virtual machine to a "
37501 "local tarball."
37502 msgstr ""
37503
37504 #. type: textblock
37505 #: ../tools/virt-tar.pl:171
37506 msgid ""
37507 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
37508 "Please read the L</WARNING> section above before using this option."
37509 msgstr ""
37510
37511 #. type: textblock
37512 #: ../tools/virt-tar.pl:175
37513 msgid "You must specify exactly one of these options."
37514 msgstr ""
37515
37516 #. type: =item
37517 #: ../tools/virt-tar.pl:181
37518 msgid "B<-z>"
37519 msgstr ""
37520
37521 #. type: =item
37522 #: ../tools/virt-tar.pl:183
37523 msgid "B<--gzip>"
37524 msgstr ""
37525
37526 #. type: textblock
37527 #: ../tools/virt-tar.pl:185
37528 msgid "Specify that the input or output tarball is gzip-compressed."
37529 msgstr ""
37530
37531 #. type: textblock
37532 #: ../tools/virt-tar.pl:298
37533 msgid ""
37534 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
37535 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
37536 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
37537 "org/>."
37538 msgstr ""
37539
37540 #. type: textblock
37541 #: ../tools/virt-win-reg.pl:37
37542 msgid ""
37543 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
37544 msgstr ""
37545
37546 #. type: verbatim
37547 #: ../tools/virt-win-reg.pl:41
37548 #, no-wrap
37549 msgid ""
37550 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
37551 "\n"
37552 msgstr ""
37553
37554 #. type: verbatim
37555 #: ../tools/virt-win-reg.pl:43
37556 #, no-wrap
37557 msgid ""
37558 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
37559 "\n"
37560 msgstr ""
37561
37562 #. type: verbatim
37563 #: ../tools/virt-win-reg.pl:45
37564 #, no-wrap
37565 msgid ""
37566 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
37567 "\n"
37568 msgstr ""
37569
37570 #. type: verbatim
37571 #: ../tools/virt-win-reg.pl:47
37572 #, no-wrap
37573 msgid ""
37574 " virt-win-reg --merge domname [input.reg ...]\n"
37575 "\n"
37576 msgstr ""
37577
37578 #. type: verbatim
37579 #: ../tools/virt-win-reg.pl:49
37580 #, no-wrap
37581 msgid ""
37582 " virt-win-reg [--options] disk.img ... # instead of domname\n"
37583 "\n"
37584 msgstr ""
37585
37586 #. type: textblock
37587 #: ../tools/virt-win-reg.pl:53
37588 msgid ""
37589 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
37590 "virtual machines.  If you do this, you I<will> get irreversible disk "
37591 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
37592 "but doesn't catch all cases."
37593 msgstr ""
37594
37595 #. type: textblock
37596 #: ../tools/virt-win-reg.pl:58
37597 msgid ""
37598 "Modifying the Windows Registry is an inherently risky operation.  The format "
37599 "is deliberately obscure and undocumented, and Registry changes can leave the "
37600 "system unbootable.  Therefore when using the I<--merge> option, make sure "
37601 "you have a reliable backup first."
37602 msgstr ""
37603
37604 #. type: textblock
37605 #: ../tools/virt-win-reg.pl:65
37606 msgid ""
37607 "This program can export and merge Windows Registry entries from a Windows "
37608 "guest."
37609 msgstr ""
37610
37611 #. type: textblock
37612 #: ../tools/virt-win-reg.pl:68
37613 msgid ""
37614 "The first parameter is the libvirt guest name or the raw disk image of a "
37615 "Windows guest."
37616 msgstr ""
37617
37618 #. type: textblock
37619 #: ../tools/virt-win-reg.pl:71
37620 msgid ""
37621 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
37622 "exported (recursively).  For example:"
37623 msgstr ""
37624
37625 #. type: verbatim
37626 #: ../tools/virt-win-reg.pl:74
37627 #, no-wrap
37628 msgid ""
37629 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
37630 "\n"
37631 msgstr ""
37632
37633 #. type: textblock
37634 #: ../tools/virt-win-reg.pl:76
37635 msgid ""
37636 "You can also display single values from within registry keys, for example:"
37637 msgstr ""
37638
37639 #. type: verbatim
37640 #: ../tools/virt-win-reg.pl:79
37641 #, no-wrap
37642 msgid ""
37643 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
37644 " $ virt-win-reg Windows7 $cvkey ProductName\n"
37645 " Windows 7 Enterprise\n"
37646 "\n"
37647 msgstr ""
37648
37649 #. type: textblock
37650 #: ../tools/virt-win-reg.pl:83
37651 msgid ""
37652 "With I<--merge>, you can merge a textual regedit file into the Windows "
37653 "Registry:"
37654 msgstr ""
37655
37656 #. type: verbatim
37657 #: ../tools/virt-win-reg.pl:86
37658 #, no-wrap
37659 msgid ""
37660 " $ virt-win-reg --merge Windows7 changes.reg\n"
37661 "\n"
37662 msgstr ""
37663
37664 #. type: textblock
37665 #: ../tools/virt-win-reg.pl:90
37666 msgid ""
37667 "This program is only meant for simple access to the registry.  If you want "
37668 "to do complicated things with the registry, we suggest you download the "
37669 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
37670 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
37671 "L<hivexregedit(1)>."
37672 msgstr ""
37673
37674 #. type: =item
37675 #: ../tools/virt-win-reg.pl:159
37676 msgid "B<--merge>"
37677 msgstr ""
37678
37679 #. type: textblock
37680 #: ../tools/virt-win-reg.pl:161
37681 msgid ""
37682 "In merge mode, this merges a textual regedit file into the Windows Registry "
37683 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
37684 "displays or exports Registry entries instead."
37685 msgstr ""
37686
37687 #. type: textblock
37688 #: ../tools/virt-win-reg.pl:165
37689 msgid ""
37690 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
37691 "result in disk corruption.  However exporting (without this flag)  is always "
37692 "safe."
37693 msgstr ""
37694
37695 #. type: =item
37696 #: ../tools/virt-win-reg.pl:173
37697 msgid "B<--encoding> UTF-16LE|ASCII"
37698 msgstr ""
37699
37700 #. type: textblock
37701 #: ../tools/virt-win-reg.pl:175
37702 msgid ""
37703 "When merging (only), you may need to specify the encoding for strings to be "
37704 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
37705 "(3)/ENCODING STRINGS>."
37706 msgstr ""
37707
37708 #. type: textblock
37709 #: ../tools/virt-win-reg.pl:179
37710 msgid ""
37711 "The default is to use UTF-16LE, which should work with recent versions of "
37712 "Windows."
37713 msgstr ""
37714
37715 #. type: =item
37716 #: ../tools/virt-win-reg.pl:186
37717 msgid "B<--unsafe-printable-strings>"
37718 msgstr ""
37719
37720 #. type: textblock
37721 #: ../tools/virt-win-reg.pl:188
37722 msgid ""
37723 "When exporting (only), assume strings are UTF-16LE and print them as strings "
37724 "instead of hex sequences.  Remove the final zero codepoint from strings if "
37725 "present."
37726 msgstr ""
37727
37728 #. type: textblock
37729 #: ../tools/virt-win-reg.pl:192
37730 msgid ""
37731 "This is unsafe and does not preserve the fidelity of strings in the original "
37732 "Registry for various reasons:"
37733 msgstr ""
37734
37735 #. type: textblock
37736 #: ../tools/virt-win-reg.pl:199
37737 msgid ""
37738 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
37739 "other encodings will be corrupted by this transformation."
37740 msgstr ""
37741
37742 #. type: textblock
37743 #: ../tools/virt-win-reg.pl:204
37744 msgid ""
37745 "Assumes that everything which has type 1 or 2 is really a string and that "
37746 "everything else is not a string, but the type field in real Registries is "
37747 "not reliable."
37748 msgstr ""
37749
37750 #. type: textblock
37751 #: ../tools/virt-win-reg.pl:210
37752 msgid ""
37753 "Loses information about whether a zero codepoint followed the string in the "
37754 "Registry or not."
37755 msgstr ""
37756
37757 #. type: textblock
37758 #: ../tools/virt-win-reg.pl:215
37759 msgid ""
37760 "This all happens because the Registry itself contains no information about "
37761 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
37762 msgstr ""
37763
37764 #. type: textblock
37765 #: ../tools/virt-win-reg.pl:219
37766 msgid ""
37767 "You should only use this option for quick hacking and debugging of the "
37768 "Registry contents, and I<never> use it if the output is going to be passed "
37769 "into another program or stored in another Registry."
37770 msgstr ""
37771
37772 #. type: =head1
37773 #: ../tools/virt-win-reg.pl:556
37774 msgid "SUPPORTED SYSTEMS"
37775 msgstr ""
37776
37777 #. type: textblock
37778 #: ../tools/virt-win-reg.pl:558
37779 msgid ""
37780 "The program currently supports Windows NT-derived guests starting with "
37781 "Windows XP through to at least Windows 7."
37782 msgstr ""
37783
37784 #. type: textblock
37785 #: ../tools/virt-win-reg.pl:561
37786 msgid "The following Registry keys are supported:"
37787 msgstr ""
37788
37789 #. type: =item
37790 #: ../tools/virt-win-reg.pl:565
37791 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
37792 msgstr ""
37793
37794 #. type: =item
37795 #: ../tools/virt-win-reg.pl:567
37796 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
37797 msgstr ""
37798
37799 #. type: =item
37800 #: ../tools/virt-win-reg.pl:569
37801 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
37802 msgstr ""
37803
37804 #. type: =item
37805 #: ../tools/virt-win-reg.pl:571
37806 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
37807 msgstr ""
37808
37809 #. type: =item
37810 #: ../tools/virt-win-reg.pl:573
37811 msgid "C<HKEY_USERS\\.DEFAULT>"
37812 msgstr ""
37813
37814 #. type: =item
37815 #: ../tools/virt-win-reg.pl:575
37816 msgid "C<HKEY_USERS\\I<SID>>"
37817 msgstr ""
37818
37819 #. type: textblock
37820 #: ../tools/virt-win-reg.pl:577
37821 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
37822 msgstr ""
37823
37824 #. type: =item
37825 #: ../tools/virt-win-reg.pl:579
37826 msgid "C<HKEY_USERS\\I<username>>"
37827 msgstr ""
37828
37829 #. type: textblock
37830 #: ../tools/virt-win-reg.pl:581
37831 msgid ""
37832 "where I<username> is a local user name (this is a libguestfs extension)."
37833 msgstr ""
37834
37835 #. type: textblock
37836 #: ../tools/virt-win-reg.pl:585
37837 msgid ""
37838 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
37839 "C<HKEY_USERS>."
37840 msgstr ""
37841
37842 #. type: textblock
37843 #: ../tools/virt-win-reg.pl:588
37844 msgid ""
37845 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
37846 "supported (there is no \"current user\")."
37847 msgstr ""
37848
37849 #. type: =head1
37850 #: ../tools/virt-win-reg.pl:591
37851 msgid "ENCODING"
37852 msgstr ""
37853
37854 #. type: textblock
37855 #: ../tools/virt-win-reg.pl:593
37856 msgid ""
37857 "C<virt-win-reg> expects that regedit files have already been reencoded in "
37858 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
37859 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
37860 "Windows-style line endings, you may need to reencode the whole file before "
37861 "or after processing."
37862 msgstr ""
37863
37864 #. type: textblock
37865 #: ../tools/virt-win-reg.pl:599
37866 msgid ""
37867 "To reencode a file from Windows format to Linux (before processing it with "
37868 "the I<--merge> option), you would do something like this:"
37869 msgstr ""
37870
37871 #. type: verbatim
37872 #: ../tools/virt-win-reg.pl:602
37873 #, no-wrap
37874 msgid ""
37875 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
37876 "\n"
37877 msgstr ""
37878
37879 #. type: textblock
37880 #: ../tools/virt-win-reg.pl:604
37881 msgid ""
37882 "To go in the opposite direction, after exporting and before sending the file "
37883 "to a Windows user, do something like this:"
37884 msgstr ""
37885
37886 #. type: verbatim
37887 #: ../tools/virt-win-reg.pl:607
37888 #, no-wrap
37889 msgid ""
37890 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
37891 "\n"
37892 msgstr ""
37893
37894 #. type: textblock
37895 #: ../tools/virt-win-reg.pl:609
37896 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
37897 msgstr ""
37898
37899 #. type: textblock
37900 #: ../tools/virt-win-reg.pl:611
37901 msgid ""
37902 "If you are unsure about the current encoding, use the L<file(1)> command.  "
37903 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
37904 "style (CRLF) line endings, like this:"
37905 msgstr ""
37906
37907 #. type: verbatim
37908 #: ../tools/virt-win-reg.pl:615
37909 #, no-wrap
37910 msgid ""
37911 " $ file software.reg\n"
37912 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
37913 " with CRLF line terminators\n"
37914 "\n"
37915 msgstr ""
37916
37917 #. type: textblock
37918 #: ../tools/virt-win-reg.pl:619
37919 msgid "This file would need conversion before you could I<--merge> it."
37920 msgstr ""
37921
37922 #. type: =head1
37923 #: ../tools/virt-win-reg.pl:621
37924 msgid "CurrentControlSet etc."
37925 msgstr ""
37926
37927 #. type: textblock
37928 #: ../tools/virt-win-reg.pl:623
37929 msgid ""
37930 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
37931 "Registry at the level of the hive file, and therefore you cannot modify "
37932 "these."
37933 msgstr ""
37934
37935 #. type: textblock
37936 #: ../tools/virt-win-reg.pl:627
37937 msgid ""
37938 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
37939 "circumstances it might refer to another control set.  The way to find out is "
37940 "to look at the C<HKLM\\SYSTEM\\Select> key:"
37941 msgstr ""
37942
37943 #. type: verbatim
37944 #: ../tools/virt-win-reg.pl:631
37945 #, no-wrap
37946 msgid ""
37947 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
37948 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
37949 " \"Current\"=dword:00000001\n"
37950 " \"Default\"=dword:00000001\n"
37951 " \"Failed\"=dword:00000000\n"
37952 " \"LastKnownGood\"=dword:00000002\n"
37953 "\n"
37954 msgstr ""
37955
37956 #. type: textblock
37957 #: ../tools/virt-win-reg.pl:638
37958 msgid "\"Current\" is the one which Windows will choose when it boots."
37959 msgstr ""
37960
37961 #. type: textblock
37962 #: ../tools/virt-win-reg.pl:640
37963 msgid ""
37964 "Similarly, other C<Current...> keys in the path may need to be replaced."
37965 msgstr ""
37966
37967 #. type: =head1
37968 #: ../tools/virt-win-reg.pl:643
37969 msgid "WINDOWS TIPS"
37970 msgstr ""
37971
37972 #. type: textblock
37973 #: ../tools/virt-win-reg.pl:645
37974 msgid ""
37975 "Note that some of these tips modify the guest disk image.  The guest I<must> "
37976 "be shut off, else you will get disk corruption."
37977 msgstr ""
37978
37979 #. type: =head2
37980 #: ../tools/virt-win-reg.pl:648
37981 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
37982 msgstr ""
37983
37984 #. type: textblock
37985 #: ../tools/virt-win-reg.pl:650
37986 msgid ""
37987 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
37988 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
37989 "is uploaded into C<C:\\>:"
37990 msgstr ""
37991
37992 #. type: verbatim
37993 #: ../tools/virt-win-reg.pl:654
37994 #, no-wrap
37995 msgid ""
37996 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
37997 "\n"
37998 msgstr ""
37999
38000 #. type: textblock
38001 #: ../tools/virt-win-reg.pl:656
38002 msgid "Prepare a regedit file containing the registry change:"
38003 msgstr ""
38004
38005 #. type: verbatim
38006 #: ../tools/virt-win-reg.pl:658
38007 #, no-wrap
38008 msgid ""
38009 " cat > test.reg <<'EOF'\n"
38010 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
38011 " \"Test\"=\"c:\\\\test.bat\"\n"
38012 " EOF\n"
38013 "\n"
38014 msgstr ""
38015
38016 #. type: textblock
38017 #: ../tools/virt-win-reg.pl:663
38018 msgid ""
38019 "In this example we use the key C<RunOnce> which means that the script will "
38020 "run precisely once when the first user logs in.  If you want it to run every "
38021 "time a user logs in, replace C<RunOnce> with C<Run>."
38022 msgstr ""
38023
38024 #. type: textblock
38025 #: ../tools/virt-win-reg.pl:667
38026 msgid "Now update the registry:"
38027 msgstr ""
38028
38029 #. type: verbatim
38030 #: ../tools/virt-win-reg.pl:669
38031 #, no-wrap
38032 msgid ""
38033 " virt-win-reg --merge WindowsGuest test.reg\n"
38034 "\n"
38035 msgstr ""
38036
38037 #. type: =head2
38038 #: ../tools/virt-win-reg.pl:671
38039 msgid "INSTALLING A SERVICE"
38040 msgstr ""
38041
38042 #. type: textblock
38043 #: ../tools/virt-win-reg.pl:673
38044 msgid ""
38045 "This section assumes you are familiar with Windows services, and you either "
38046 "have a program which handles the Windows Service Control Protocol directly "
38047 "or you want to run any program using a service wrapper like SrvAny or the "
38048 "free RHSrvAny."
38049 msgstr ""
38050
38051 #. type: textblock
38052 #: ../tools/virt-win-reg.pl:678
38053 msgid ""
38054 "First upload the program and optionally the service wrapper.  In this case "
38055 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
38056 msgstr ""
38057
38058 #. type: verbatim
38059 #: ../tools/virt-win-reg.pl:682
38060 #, no-wrap
38061 msgid ""
38062 " guestfish -i -d WindowsGuest <<EOF\n"
38063 "   upload rhsrvany.exe /rhsrvany.exe\n"
38064 "   upload test.exe /test.exe\n"
38065 " EOF\n"
38066 "\n"
38067 msgstr ""
38068
38069 #. type: textblock
38070 #: ../tools/virt-win-reg.pl:687
38071 msgid ""
38072 "Prepare a regedit file containing the registry changes.  In this example, "
38073 "the first registry change is needed for the service itself or the service "
38074 "wrapper (if used).  The second registry change is only needed because I am "
38075 "using the RHSrvAny service wrapper."
38076 msgstr ""
38077
38078 #. type: verbatim
38079 #: ../tools/virt-win-reg.pl:692
38080 #, no-wrap
38081 msgid ""
38082 " cat > service.reg <<'EOF'\n"
38083 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
38084 " \"Type\"=dword:00000010\n"
38085 " \"Start\"=dword:00000002\n"
38086 " \"ErrorControl\"=dword:00000001\n"
38087 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
38088 " \"DisplayName\"=\"RHSrvAny\"\n"
38089 " \"ObjectName\"=\"NetworkService\"\n"
38090 " \n"
38091 msgstr ""
38092
38093 #. type: verbatim
38094 #: ../tools/virt-win-reg.pl:701
38095 #, no-wrap
38096 msgid ""
38097 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
38098 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
38099 " \"PWD\"=\"c:\\\\Temp\"\n"
38100 " EOF\n"
38101 "\n"
38102 msgstr ""
38103
38104 #. type: textblock
38105 #: ../tools/virt-win-reg.pl:712
38106 msgid ""
38107 "For use of C<ControlSet001> see the section above in this manual page.  You "
38108 "may need to adjust this according to the control set that is in use by the "
38109 "guest."
38110 msgstr ""
38111
38112 #. type: textblock
38113 #: ../tools/virt-win-reg.pl:718
38114 msgid ""
38115 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
38116 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
38117 "privileged account."
38118 msgstr ""
38119
38120 #. type: textblock
38121 #: ../tools/virt-win-reg.pl:724
38122 msgid ""
38123 "For the meaning of the magic numbers, see this Microsoft KB article: "
38124 "L<http://support.microsoft.com/kb/103000>."
38125 msgstr ""
38126
38127 #. type: textblock
38128 #: ../tools/virt-win-reg.pl:729
38129 msgid "Update the registry:"
38130 msgstr ""
38131
38132 #. type: verbatim
38133 #: ../tools/virt-win-reg.pl:731
38134 #, no-wrap
38135 msgid ""
38136 " virt-win-reg --merge WindowsGuest service.reg\n"
38137 "\n"
38138 msgstr ""
38139
38140 #. type: textblock
38141 #: ../tools/virt-win-reg.pl:735
38142 msgid ""
38143 "Be careful when passing parameters containing C<\\> (backslash) in the "
38144 "shell.  Usually you will have to use 'single quotes' or double backslashes "
38145 "(but not both) to protect them from the shell."
38146 msgstr ""
38147
38148 #. type: textblock
38149 #: ../tools/virt-win-reg.pl:739
38150 msgid "Paths and value names are case-insensitive."
38151 msgstr ""
38152
38153 #. type: textblock
38154 #: ../tools/virt-win-reg.pl:748
38155 msgid ""
38156 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
38157 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
38158 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38159 msgstr ""
38160
38161 #. type: verbatim
38162 #: ../tools/virt-win-reg.pl:766
38163 #, no-wrap
38164 msgid ""
38165 " export LIBGUESTFS_DEBUG=1\n"
38166 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
38167 "\n"
38168 msgstr ""
38169
38170 #. type: textblock
38171 #: ../tools/virt-win-reg.pl:769
38172 msgid ""
38173 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
38174 "redhat.com/>"
38175 msgstr ""